diff --git a/web/settings/assets/ChargeLog-be6ba638.js b/web/settings/assets/ChargeLog-0999e18c.js
similarity index 51%
rename from web/settings/assets/ChargeLog-be6ba638.js
rename to web/settings/assets/ChargeLog-0999e18c.js
index 94f47bf962..0adf03b8c9 100644
--- a/web/settings/assets/ChargeLog-be6ba638.js
+++ b/web/settings/assets/ChargeLog-0999e18c.js
@@ -1,2 +1,2 @@
-import{l as C,N as q,O as R,F as k}from"./vendor-fortawesome-ad83e535.js";import{_ as x,$ as E,p as l,k as h,l as m,q as g,A as r,L as s,y as V,z as L,u as d,x as y,Q as F,R as B}from"./vendor-94ac8c48.js";import{C as N}from"./index-cbcca7a0.js";import"./vendor-sortablejs-dbc23470.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";C.add(q,R);const S={name:"OpenwbChargeLog",components:{Vue3TableLite:E,FontAwesomeIcon:k},mixins:[N],emits:["sendCommand"],data(){return{dateTimeFormat:new Intl.DateTimeFormat("de-DE",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}),mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentMonth:"",chargeLogRequestData:{month:"",year:"",filter:{chargepoint:{id:[]},vehicle:{id:[],chargemode:[],prio:void 0}}},downloadFile:null,table:{messages:{pagingInfo:"Einträge {0}-{1} von {2}",pageSizeChangeLabel:"Einträge:",gotoPageLabel:" Gehe zu:",noDataAvailable:"Keine Einträge gefunden."},pageOptions:[{value:5,text:"5"},{value:10,text:"10"},{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"}],columns:[{label:"Beginn",field:"time_begin",sortable:!0},{label:"Ende",field:"time_end",sortable:!0},{label:"Fahrzeug",field:"vehicle_name",sortable:!0},{label:"Dauer",field:"time_time_charged",sortable:!0,display:e=>this.alignEnd(e.time_time_charged)},{label:"Energie",field:"data_imported_since_mode_switch",sortable:!0,display:e=>this.alignEnd(this.formatNumber(e.data_imported_since_mode_switch/1e3,2)+"&nbsp;kWh / "+this.formatNumber(e.data_range_charged,0)+"&nbsp;km")},{label:"Kosten",field:"data_costs",sortable:!0,display:e=>this.alignEnd(this.formatNumber(e.data_costs,2)+"&nbsp;€")},{label:"Lademodus",field:"vehicle_chargemode",sortable:!0,display:e=>'<div class="td-center tag '+this.getChargeModeClass(e.vehicle_chargemode)+'">'+e.vehicle_chargemode+"</div>"},{label:"Ladepunkt",field:"chargepoint_name",sortable:!0},{label:"Priorität",field:"vehicle_prio",display:e=>this.translateBool(e.vehicle_prio)}],sortable:{order:"timestamp_begin",sort:"asc"}},totals:{columns:[{label:"Dauer",field:"time_charged",sortable:!1,display:e=>this.alignEnd(e.time_charged)},{label:"Energie",field:"imported_since_mode_switch",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.imported_since_mode_switch/1e3,2)+"&nbsp;kWh")},{label:"Reichweite",field:"range_charged",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.range_charged,0)+"&nbsp;km")},{label:"Kosten",field:"costs",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.costs,2)+"&nbsp;€")}]}}},computed:{downloadUrl(){const e=parseInt(location.port)||(location.protocol=="https:"?443:80);return`${location.protocol}//${location.hostname}:${e}/openWB/web/settings/downloadChargeLog.php`+`?year=${this.chargeLogRequestData.year}&month=${this.chargeLogRequestData.month}`},chargeLogDate:{get(){return this.chargeLogRequestData.year+"-"+this.chargeLogRequestData.month},set(e){let t=e.split("-");this.chargeLogRequestData.year=t[0],this.chargeLogRequestData.month=t[1]}},chargeLogTotals(){return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"]?[this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].totals]:[]},chargeLogDataset:{get(){try{return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].entries.map(e=>{var t=Date.parse(e.time.begin),n=Date.parse(e.time.end);return{chargepoint_id:e.chargepoint.id,chargepoint_name:e.chargepoint.name,vehicle_id:e.vehicle.id,vehicle_name:e.vehicle.name,vehicle_chargemode:this.translateChargeMode(e.vehicle.chargemode),vehicle_rfid:e.vehicle.rfid,vehicle_prio:e.vehicle.prio,timestamp_begin:t/1e3,time_begin:this.dateTimeFormat.format(new Date(t)),timestamp_end:n/1e3,time_end:this.dateTimeFormat.format(new Date(n)),time_time_charged:e.time.time_charged,data_power:e.data.power,data_range_charged:e.data.range_charged,data_costs:e.data.costs,data_imported_since_plugged:e.data.imported_since_plugged,data_imported_since_mode_switch:e.data.imported_since_mode_switch}})}catch{return[]}}},chargeLogCsv:{get(){return[["Ladepunkt-ID","Ladepunkt","Fahrzeug-ID","Fahrzeug","Lademodus","Priorität","Beginn","Ende","Zeitstempel Beginn","Zeitstempel Ende","Dauer","Leistung","Energie","Reichweite","Kosten"],...this.chargeLogDataset.map(t=>[t.chargepoint_id,'"'+t.chargepoint_name+'"',t.vehicle_id,'"'+t.vehicle_name+'"','"'+t.vehicle_chargemode+'"','"'+this.translateBool(t.vehicle_prio,!1)+'"','"'+t.time_begin+'"','"'+t.time_end+'"','"'+t.timestamp_begin+'"','"'+t.timestamp_end+'"','"'+t.time_time_charged+'"',this.formatNumber(t.data_power/1e3,3),this.formatNumber(t.data_imported_since_mode_switch/1e3,2),this.formatNumber(t.data_range_charged,0),this.formatNumber(t.data_costs,2)])].map(t=>t.join(";")).join(`
-`)}},chargeLogRead:{get(){return this.chargeLogDataset!=null}},chargeLogHasEntries:{get(){return this.chargeLogDataset==null?!1:this.chargeLogDataset.length>0}},totalRecordCount(){return this.chargeLogDataset.length},chargeModeList(){let e=this.chargeModes.map(t=>({value:t,text:this.translateChargeMode(t)}));return e.unshift({value:void 0,text:"Alle"}),e},chargePointList(){let e=this.getWildcardTopics("openWB/chargepoint/+/config");var t=[{value:void 0,text:"Alle"}];for(const[,n]of Object.entries(e))t.push({value:n.id,text:n.name});return t},vehicleList(){let e=this.getWildcardTopics("openWB/vehicle/+/name");var t=[{value:void 0,text:"Alle"}];for(const[n,c]of Object.entries(e)){let i=parseInt(n.match(/\/([0-9]+)\/name$/)[1]);t.push({value:i,text:c})}return t}},methods:{cleanRequestData(){"id"in this.chargeLogRequestData.filter.chargepoint&&(this.chargeLogRequestData.filter.chargepoint.id=this.chargeLogRequestData.filter.chargepoint.id.filter(e=>e!=null)),"chargemode"in this.chargeLogRequestData.filter.vehicle&&(this.chargeLogRequestData.filter.vehicle.chargemode=this.chargeLogRequestData.filter.vehicle.chargemode.filter(e=>e!=null)),"id"in this.chargeLogRequestData.filter.vehicle&&(this.chargeLogRequestData.filter.vehicle.id=this.chargeLogRequestData.filter.vehicle.id.filter(e=>e!=null))},requestChargeLog(){if(document.forms.chargeLogForm.reportValidity())this.cleanRequestData(),this.$emit("sendCommand",{command:"getChargeLog",data:this.chargeLogRequestData});else{console.log("form invalid");return}},makeTextFile(e){var t=new Blob([e],{type:"text/csv"});return this.downloadFile!==null&&window.URL.revokeObjectURL(this.downloadFile),this.downloadFile=window.URL.createObjectURL(t),this.downloadFile},downloadChargeLog(){this.$refs.downloadChargeLogLink.setAttribute("download","Ladeprotokoll-"+this.chargeLogDate+".csv"),this.$refs.downloadChargeLogLink.href=this.makeTextFile(this.chargeLogCsv),this.$refs.downloadChargeLogLink.dispatchEvent(new MouseEvent("click"))},alignEnd(e){return'<div class="td-end">'+e+"</div>"},alignCenter(e){return'<div class="td-center">'+e+"</div>"},translateBool(e,t=!0){let n="Nein",c="bg-danger";return e&&(n="Ja",c="bg-success"),t?'<div class="td-center tag '+c+'">'+n+"</div>":n},getChargeModeClass(e){switch(e){case"Sofort":return"bg-danger";case"PV":return"bg-success";case"Zielladen":return"bg-primary";case"Zeitladen":return"bg-warning";case"Standby":return"bg-secondary";case"Stop":return"bg-dark";default:return console.warn("unknown charge mode:",e),"bg-light"}},translateHeading(e){switch(e){case"time_charged":return"Dauer";case"range_charged":return"Reichweite";case"imported_since_mode_switch":return"Energie im Lademodus";case"imported_since_plugged":return"Energie seit Anstecken";case"power":return"Leistung";case"costs":return"Kosten";default:return console.warn("unknown heading:",e),e}}},mounted(){const e=new Date;this.currentMonth=this.chargeLogDate=e.getFullYear()+"-"+String(e.getMonth()+1).padStart(2,"0"),this.requestChargeLog()}},T=e=>(F("data-v-8607e7e7"),e=e(),B(),e),U={class:"chargeLog"},I={name:"chargeLogForm"},W=["href"],M={key:1},A={key:0},O={class:"row justify-content-center"},P={class:"hide",ref:"downloadChargeLogLink"},j=T(()=>g("div",{class:"row"},[g("div",{class:"col"},[g("h2",null,"Summe")])],-1));function z(e,t,n,c,i,a){const v=l("openwb-base-text-input"),p=l("font-awesome-icon"),w=l("openwb-base-button-group-input"),u=l("openwb-base-select-input"),_=l("openwb-base-card"),b=l("openwb-base-alert"),f=l("vue3-table-lite"),D=l("openwb-base-click-button");return h(),m("div",U,[g("form",I,[r(_,{title:"Filter"},{default:s(()=>[r(v,{title:"Zeitraum",subtype:"month",min:"2018-01",showQuickButtons:!0,max:i.currentMonth,modelValue:a.chargeLogDate,"onUpdate:modelValue":[t[0]||(t[0]=o=>a.chargeLogDate=o),t[1]||(t[1]=o=>a.requestChargeLog())]},null,8,["max","modelValue"]),r(_,{title:"Erweiterte Optionen",collapsible:!0,collapsed:!0},{header:s(()=>[r(p,{"fixed-width":"",icon:["fas","filter"]}),d(" Erweiterte Optionen ")]),default:s(()=>[r(w,{title:"Priorität",buttons:[{buttonValue:void 0,text:"Alle"},{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:i.chargeLogRequestData.filter.vehicle.prio,"onUpdate:modelValue":[t[2]||(t[2]=o=>i.chargeLogRequestData.filter.vehicle.prio=o),t[3]||(t[3]=o=>a.requestChargeLog())]},null,8,["modelValue"]),r(u,{title:"Lademodus",multiple:"",options:a.chargeModeList,modelValue:i.chargeLogRequestData.filter.vehicle.chargemode,"onUpdate:modelValue":[t[4]||(t[4]=o=>i.chargeLogRequestData.filter.vehicle.chargemode=o),t[5]||(t[5]=o=>a.requestChargeLog())]},{help:s(()=>[d(" Es können mehrere Elemente ausgewählt werden. ")]),_:1},8,["options","modelValue"]),r(u,{title:"Ladepunkt",multiple:"",options:a.chargePointList,modelValue:i.chargeLogRequestData.filter.chargepoint.id,"onUpdate:modelValue":[t[6]||(t[6]=o=>i.chargeLogRequestData.filter.chargepoint.id=o),t[7]||(t[7]=o=>a.requestChargeLog())]},{help:s(()=>[d(" Es können mehrere Elemente ausgewählt werden. ")]),_:1},8,["options","modelValue"]),r(u,{title:"Fahrzeug",multiple:"",options:a.vehicleList,modelValue:i.chargeLogRequestData.filter.vehicle.id,"onUpdate:modelValue":[t[8]||(t[8]=o=>i.chargeLogRequestData.filter.vehicle.id=o),t[9]||(t[9]=o=>a.requestChargeLog())]},{help:s(()=>[d(" Es können mehrere Elemente ausgewählt werden. ")]),_:1},8,["options","modelValue"])]),_:1})]),_:1}),r(b,{subtype:"info"},{default:s(()=>[d(" Das komplette Ladeprotokoll kann automatisiert über folgende URL abgerufen werden: "),g("a",{href:a.downloadUrl},y(a.downloadUrl),9,W)]),_:1}),a.chargeLogRead?(h(),m("div",M,[r(f,{class:"charge-log-table","is-static-mode":!0,columns:i.table.columns,rows:a.chargeLogDataset,total:a.totalRecordCount,sortable:i.table.sortable,messages:i.table.messages,"page-options":i.table.pageOptions,limit:25},null,8,["columns","rows","total","sortable","messages","page-options"]),a.totalRecordCount>0?(h(),m("div",A,[g("div",O,[r(D,{class:"col-4 btn-success",onButtonClicked:t[10]||(t[10]=o=>a.downloadChargeLog())},{default:s(()=>[d(" Als CSV exportieren "),r(p,{"fixed-width":"",icon:["fas","download"]})]),_:1}),g("a",P,null,512)]),j,L(" ToDo: build a table component "),r(f,{class:"charge-log-totals","is-static-mode":!0,"is-hide-paging":!0,columns:i.totals.columns,rows:a.chargeLogTotals,total:1},null,8,["columns","rows"])])):L("v-if",!0)])):(h(),V(b,{key:0,subtype:"info"},{default:s(()=>[d(" Es wurden noch keine Daten abgerufen. ")]),_:1}))])])}const X=x(S,[["render",z],["__scopeId","data-v-8607e7e7"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ChargeLog.vue"]]);export{X as default};
+import{l as C,N as q,O as R,F as k}from"./vendor-fortawesome-838df0c9.js";import{_ as x,$ as E,p as l,k as h,l as m,q as g,A as r,L as s,y as V,z as L,u as d,x as y,Q as F,R as B}from"./vendor-20bb207d.js";import{C as N}from"./index-f08a7306.js";import"./vendor-sortablejs-ad1d2cc8.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";C.add(q,R);const S={name:"OpenwbChargeLog",components:{Vue3TableLite:E,FontAwesomeIcon:k},mixins:[N],emits:["sendCommand"],data(){return{dateTimeFormat:new Intl.DateTimeFormat("de-DE",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}),mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentMonth:"",chargeLogRequestData:{month:"",year:"",filter:{chargepoint:{id:[]},vehicle:{id:[],chargemode:[],prio:void 0}}},downloadFile:null,table:{messages:{pagingInfo:"Einträge {0}-{1} von {2}",pageSizeChangeLabel:"Einträge:",gotoPageLabel:" Gehe zu:",noDataAvailable:"Keine Einträge gefunden."},pageOptions:[{value:5,text:"5"},{value:10,text:"10"},{value:25,text:"25"},{value:50,text:"50"},{value:100,text:"100"}],columns:[{label:"Beginn",field:"time_begin",sortable:!0},{label:"Ende",field:"time_end",sortable:!0},{label:"Fahrzeug",field:"vehicle_name",sortable:!0},{label:"Dauer",field:"time_time_charged",sortable:!0,display:e=>this.alignEnd(e.time_time_charged)},{label:"Energie",field:"data_imported_since_mode_switch",sortable:!0,display:e=>this.alignEnd(this.formatNumber(e.data_imported_since_mode_switch/1e3,2)+"&nbsp;kWh / "+this.formatNumber(e.data_range_charged,0)+"&nbsp;km")},{label:"Kosten",field:"data_costs",sortable:!0,display:e=>this.alignEnd(this.formatNumber(e.data_costs,2)+"&nbsp;€")},{label:"Lademodus",field:"vehicle_chargemode",sortable:!0,display:e=>'<div class="td-center tag '+this.getChargeModeClass(e.vehicle_chargemode)+'">'+e.vehicle_chargemode+"</div>"},{label:"Ladepunkt",field:"chargepoint_name",sortable:!0},{label:"Priorität",field:"vehicle_prio",display:e=>this.translateBool(e.vehicle_prio)}],sortable:{order:"timestamp_begin",sort:"asc"}},totals:{columns:[{label:"Dauer",field:"time_charged",sortable:!1,display:e=>this.alignEnd(e.time_charged)},{label:"Energie",field:"imported_since_mode_switch",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.imported_since_mode_switch/1e3,2)+"&nbsp;kWh")},{label:"Reichweite",field:"range_charged",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.range_charged,0)+"&nbsp;km")},{label:"Kosten",field:"costs",sortable:!1,display:e=>this.alignEnd(this.formatNumber(e.costs,2)+"&nbsp;€")}]}}},computed:{downloadUrl(){const e=parseInt(location.port)||(location.protocol=="https:"?443:80);return`${location.protocol}//${location.hostname}:${e}/openWB/web/settings/downloadChargeLog.php`+`?year=${this.chargeLogRequestData.year}&month=${this.chargeLogRequestData.month}`},chargeLogDate:{get(){return this.chargeLogRequestData.year+"-"+this.chargeLogRequestData.month},set(e){let t=e.split("-");this.chargeLogRequestData.year=t[0],this.chargeLogRequestData.month=t[1]}},chargeLogTotals(){return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"]?[this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].totals]:[]},chargeLogDataset:{get(){try{return this.$store.state.mqtt["openWB/log/"+this.mqttClientId+"/data"].entries.map(e=>{var t=Date.parse(e.time.begin),n=Date.parse(e.time.end);return{chargepoint_id:e.chargepoint.id,chargepoint_name:e.chargepoint.name,vehicle_id:e.vehicle.id,vehicle_name:e.vehicle.name,vehicle_chargemode:this.translateChargeMode(e.vehicle.chargemode),vehicle_rfid:e.vehicle.rfid,vehicle_prio:e.vehicle.prio,timestamp_begin:t/1e3,time_begin:this.dateTimeFormat.format(new Date(t)),timestamp_end:n/1e3,time_end:this.dateTimeFormat.format(new Date(n)),time_time_charged:e.time.time_charged,data_power:e.data.power,data_range_charged:e.data.range_charged,data_costs:e.data.costs,data_imported_since_plugged:e.data.imported_since_plugged,data_imported_since_mode_switch:e.data.imported_since_mode_switch}})}catch{return[]}}},chargeLogCsv:{get(){return[["Ladepunkt-ID","Ladepunkt","Fahrzeug-ID","Fahrzeug","Lademodus","Priorität","Beginn","Ende","Zeitstempel Beginn","Zeitstempel Ende","Dauer","Leistung","Energie","Reichweite","Kosten"],...this.chargeLogDataset.map(t=>[t.chargepoint_id,'"'+t.chargepoint_name+'"',t.vehicle_id,'"'+t.vehicle_name+'"','"'+t.vehicle_chargemode+'"','"'+this.translateBool(t.vehicle_prio,!1)+'"','"'+t.time_begin+'"','"'+t.time_end+'"','"'+t.timestamp_begin+'"','"'+t.timestamp_end+'"','"'+t.time_time_charged+'"',this.formatNumber(t.data_power/1e3,3),this.formatNumber(t.data_imported_since_mode_switch/1e3,2),this.formatNumber(t.data_range_charged,0),this.formatNumber(t.data_costs,2)])].map(t=>t.join(";")).join(`
+`)}},chargeLogRead:{get(){return this.chargeLogDataset!=null}},chargeLogHasEntries:{get(){return this.chargeLogDataset==null?!1:this.chargeLogDataset.length>0}},totalRecordCount(){return this.chargeLogDataset.length},chargeModeList(){let e=this.chargeModes.map(t=>({value:t,text:this.translateChargeMode(t)}));return e.unshift({value:void 0,text:"Alle"}),e},chargePointList(){let e=this.getWildcardTopics("openWB/chargepoint/+/config");var t=[{value:void 0,text:"Alle"}];for(const[,n]of Object.entries(e))t.push({value:n.id,text:n.name});return t},vehicleList(){let e=this.getWildcardTopics("openWB/vehicle/+/name");var t=[{value:void 0,text:"Alle"}];for(const[n,c]of Object.entries(e)){let i=parseInt(n.match(/\/([0-9]+)\/name$/)[1]);t.push({value:i,text:c})}return t}},methods:{cleanRequestData(){"id"in this.chargeLogRequestData.filter.chargepoint&&(this.chargeLogRequestData.filter.chargepoint.id=this.chargeLogRequestData.filter.chargepoint.id.filter(e=>e!=null)),"chargemode"in this.chargeLogRequestData.filter.vehicle&&(this.chargeLogRequestData.filter.vehicle.chargemode=this.chargeLogRequestData.filter.vehicle.chargemode.filter(e=>e!=null)),"id"in this.chargeLogRequestData.filter.vehicle&&(this.chargeLogRequestData.filter.vehicle.id=this.chargeLogRequestData.filter.vehicle.id.filter(e=>e!=null))},requestChargeLog(){if(document.forms.chargeLogForm.reportValidity())this.cleanRequestData(),this.$emit("sendCommand",{command:"getChargeLog",data:this.chargeLogRequestData});else{console.warn("form invalid");return}},makeTextFile(e){var t=new Blob([e],{type:"text/csv"});return this.downloadFile!==null&&window.URL.revokeObjectURL(this.downloadFile),this.downloadFile=window.URL.createObjectURL(t),this.downloadFile},downloadChargeLog(){this.$refs.downloadChargeLogLink.setAttribute("download","Ladeprotokoll-"+this.chargeLogDate+".csv"),this.$refs.downloadChargeLogLink.href=this.makeTextFile(this.chargeLogCsv),this.$refs.downloadChargeLogLink.dispatchEvent(new MouseEvent("click"))},alignEnd(e){return'<div class="td-end">'+e+"</div>"},alignCenter(e){return'<div class="td-center">'+e+"</div>"},translateBool(e,t=!0){let n="Nein",c="bg-danger";return e&&(n="Ja",c="bg-success"),t?'<div class="td-center tag '+c+'">'+n+"</div>":n},getChargeModeClass(e){switch(e){case"Sofort":return"bg-danger";case"PV":return"bg-success";case"Zielladen":return"bg-primary";case"Zeitladen":return"bg-warning";case"Standby":return"bg-secondary";case"Stop":return"bg-dark";default:return console.warn("unknown charge mode:",e),"bg-light"}},translateHeading(e){switch(e){case"time_charged":return"Dauer";case"range_charged":return"Reichweite";case"imported_since_mode_switch":return"Energie im Lademodus";case"imported_since_plugged":return"Energie seit Anstecken";case"power":return"Leistung";case"costs":return"Kosten";default:return console.warn("unknown heading:",e),e}}},mounted(){const e=new Date;this.currentMonth=this.chargeLogDate=e.getFullYear()+"-"+String(e.getMonth()+1).padStart(2,"0"),this.requestChargeLog()}},T=e=>(F("data-v-8607e7e7"),e=e(),B(),e),U={class:"chargeLog"},I={name:"chargeLogForm"},W=["href"],M={key:1},A={key:0},O={class:"row justify-content-center"},P={class:"hide",ref:"downloadChargeLogLink"},j=T(()=>g("div",{class:"row"},[g("div",{class:"col"},[g("h2",null,"Summe")])],-1));function z(e,t,n,c,i,a){const v=l("openwb-base-text-input"),p=l("font-awesome-icon"),w=l("openwb-base-button-group-input"),u=l("openwb-base-select-input"),_=l("openwb-base-card"),b=l("openwb-base-alert"),f=l("vue3-table-lite"),D=l("openwb-base-click-button");return h(),m("div",U,[g("form",I,[r(_,{title:"Filter"},{default:s(()=>[r(v,{title:"Zeitraum",subtype:"month",min:"2018-01",showQuickButtons:!0,max:i.currentMonth,modelValue:a.chargeLogDate,"onUpdate:modelValue":[t[0]||(t[0]=o=>a.chargeLogDate=o),t[1]||(t[1]=o=>a.requestChargeLog())]},null,8,["max","modelValue"]),r(_,{title:"Erweiterte Optionen",collapsible:!0,collapsed:!0},{header:s(()=>[r(p,{"fixed-width":"",icon:["fas","filter"]}),d(" Erweiterte Optionen ")]),default:s(()=>[r(w,{title:"Priorität",buttons:[{buttonValue:void 0,text:"Alle"},{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:i.chargeLogRequestData.filter.vehicle.prio,"onUpdate:modelValue":[t[2]||(t[2]=o=>i.chargeLogRequestData.filter.vehicle.prio=o),t[3]||(t[3]=o=>a.requestChargeLog())]},null,8,["modelValue"]),r(u,{title:"Lademodus",multiple:"",options:a.chargeModeList,modelValue:i.chargeLogRequestData.filter.vehicle.chargemode,"onUpdate:modelValue":[t[4]||(t[4]=o=>i.chargeLogRequestData.filter.vehicle.chargemode=o),t[5]||(t[5]=o=>a.requestChargeLog())]},{help:s(()=>[d(" Es können mehrere Elemente ausgewählt werden. ")]),_:1},8,["options","modelValue"]),r(u,{title:"Ladepunkt",multiple:"",options:a.chargePointList,modelValue:i.chargeLogRequestData.filter.chargepoint.id,"onUpdate:modelValue":[t[6]||(t[6]=o=>i.chargeLogRequestData.filter.chargepoint.id=o),t[7]||(t[7]=o=>a.requestChargeLog())]},{help:s(()=>[d(" Es können mehrere Elemente ausgewählt werden. ")]),_:1},8,["options","modelValue"]),r(u,{title:"Fahrzeug",multiple:"",options:a.vehicleList,modelValue:i.chargeLogRequestData.filter.vehicle.id,"onUpdate:modelValue":[t[8]||(t[8]=o=>i.chargeLogRequestData.filter.vehicle.id=o),t[9]||(t[9]=o=>a.requestChargeLog())]},{help:s(()=>[d(" Es können mehrere Elemente ausgewählt werden. ")]),_:1},8,["options","modelValue"])]),_:1})]),_:1}),r(b,{subtype:"info"},{default:s(()=>[d(" Das komplette Ladeprotokoll kann automatisiert über folgende URL abgerufen werden: "),g("a",{href:a.downloadUrl},y(a.downloadUrl),9,W)]),_:1}),a.chargeLogRead?(h(),m("div",M,[r(f,{class:"charge-log-table","is-static-mode":!0,columns:i.table.columns,rows:a.chargeLogDataset,total:a.totalRecordCount,sortable:i.table.sortable,messages:i.table.messages,"page-options":i.table.pageOptions,limit:25},null,8,["columns","rows","total","sortable","messages","page-options"]),a.totalRecordCount>0?(h(),m("div",A,[g("div",O,[r(D,{class:"col-4 btn-success",onButtonClicked:t[10]||(t[10]=o=>a.downloadChargeLog())},{default:s(()=>[d(" Als CSV exportieren "),r(p,{"fixed-width":"",icon:["fas","download"]})]),_:1}),g("a",P,null,512)]),j,L(" ToDo: build a table component "),r(f,{class:"charge-log-totals","is-static-mode":!0,"is-hide-paging":!0,columns:i.totals.columns,rows:a.chargeLogTotals,total:1},null,8,["columns","rows"])])):L("v-if",!0)])):(h(),V(b,{key:0,subtype:"info"},{default:s(()=>[d(" Es wurden noch keine Daten abgerufen. ")]),_:1}))])])}const X=x(S,[["render",z],["__scopeId","data-v-8607e7e7"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ChargeLog.vue"]]);export{X as default};
diff --git a/web/settings/assets/ChargePointInstallation-0b5b847e.js b/web/settings/assets/ChargePointInstallation-0b5b847e.js
new file mode 100644
index 0000000000..de99e91da3
--- /dev/null
+++ b/web/settings/assets/ChargePointInstallation-0b5b847e.js
@@ -0,0 +1 @@
+import{l as J,d as G,S as Q,A as X,T as Y,U as K,J as ee,V as te,F as ne,W as ae}from"./vendor-fortawesome-838df0c9.js";import{_ as L,C as oe}from"./index-f08a7306.js";import{_ as E}from"./dynamic-import-helper-be004503.js";import{_ as U,p as h,k as l,l as g,A as n,L as o,u as i,x as k,q as u,a0 as D,y as w,a1 as F,G as T,z as c,I,n as M,a2 as O,Q as ie,R as le}from"./vendor-20bb207d.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";const re={name:"ChargePointConfigFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0},chargePointType:String},methods:{updateConfiguration(e,a=void 0){this.$emit("update:configuration",{value:e,object:a})}}},se={class:"device-fallback"};function de(e,a,m,y,p,d){const C=h("openwb-base-alert"),b=h("openwb-base-textarea");return l(),g("div",se,[n(C,{subtype:"warning"},{default:o(()=>[i(' Es wurde keine Konfigurationsseite für den Ladepunkt-Typ "'+k(m.chargePointType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(b,{title:"Konfiguration",subtype:"json","model-value":m.configuration,"onUpdate:modelValue":a[0]||(a[0]=B=>d.updateConfiguration(B,"configuration"))},{help:o(()=>[i(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(C,{subtype:"info"},{default:o(()=>[u("pre",null,k(JSON.stringify(m.configuration,void 0,2)),1)]),_:1})])}const ue=U(re,[["render",de],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointConfigFallback.vue"]]),me={name:"ChargePointCommandsFallback",props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0},chargePointType:String}},pe={class:"charge-point-commands-fallback"};function ce(e,a,m,y,p,d){const C=h("openwb-base-alert");return l(),g("div",pe,[n(C,{subtype:"secondary"},{default:o(()=>[i(' Der Ladepunkt-Typ "'+k(m.chargePointType)+'" bietet keine Befehle an. ',1)]),_:1})])}const ge=U(me,[["render",ce],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointCommandsFallback.vue"]]),he={name:"OpenwbChargePointProxy",emits:["update:configuration"],props:{chargePointId:{required:!0},chargePointType:{type:String,required:!0},configuration:{type:Object,required:!0},moduleName:{type:String,required:!1,default:void 0}},computed:{myChargePointSettingsComponent(){return console.debug(`loading charge point settings: ${this.chargePointType}`),D({loader:()=>E(Object.assign({"./external_openwb/chargePoint.vue":()=>L(()=>import("./chargePoint-9ab109c4.js"),["assets/chargePoint-9ab109c4.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./internal_openwb/chargePoint.vue":()=>L(()=>import("./chargePoint-75b0bdf9.js"),["assets/chargePoint-75b0bdf9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./mqtt/chargePoint.vue":()=>L(()=>import("./chargePoint-9f9283b5.js"),["assets/chargePoint-9f9283b5.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_pro/chargePoint.vue":()=>L(()=>import("./chargePoint-792da849.js"),["assets/chargePoint-792da849.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_series2_satellit/chargePoint.vue":()=>L(()=>import("./chargePoint-83d3ee27.js"),["assets/chargePoint-83d3ee27.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./smartwb/chargePoint.vue":()=>L(()=>import("./chargePoint-47a32a91.js"),["assets/chargePoint-47a32a91.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"])}),`./${this.chargePointType}/chargePoint.vue`),errorComponent:ue})},myChargePointCommandsComponent(){return console.debug(`loading charge point commands: ${this.chargePointType}`),D({loader:()=>E(Object.assign({"./openwb_pro/commands.vue":()=>L(()=>import("./commands-dfab65eb.js"),["assets/commands-dfab65eb.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"])}),`./${this.chargePointType}/commands.vue`),errorComponent:ge})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}},fe=u("hr",null,null,-1);function be(e,a,m,y,p,d){const C=h("openwb-base-heading");return l(),g(T,null,[n(C,null,{default:o(()=>[i(" Einstellungen für Ladepunkt "+k(m.moduleName),1)]),_:1}),(l(),w(F(d.myChargePointSettingsComponent),{configuration:m.configuration,chargePointId:m.chargePointId,chargePointType:m.chargePointType,"onUpdate:configuration":a[0]||(a[0]=b=>d.updateConfiguration(b))},null,40,["configuration","chargePointId","chargePointType"])),fe,n(C,null,{default:o(()=>[i(" Befehle für Ladepunkt "+k(m.moduleName),1)]),_:1}),(l(),w(F(d.myChargePointCommandsComponent),{configuration:m.configuration,chargePointId:m.chargePointId,chargePointType:m.chargePointType},null,8,["configuration","chargePointId","chargePointType"]))],64)}const _e=U(he,[["render",be],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointProxy.vue"]]);J.add(G,Q,X,Y,K,ee,te);const ve={name:"OpenwbChargePointInstallation",mixins:[oe],emits:["sendCommand"],components:{FontAwesomeIcon:ne,FontAwesomeLayers:ae,OpenwbChargePointProxy:_e},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/rfid/active","openWB/chargepoint/+/config","openWB/chargepoint/template/+","openWB/chargepoint/template/+/autolock/+","openWB/system/configurable/chargepoints","openWB/system/configurable/chargepoints_internal"],chargePointToAdd:void 0,showChargePointModal:!1,modalChargePointIndex:void 0,showChargePointTemplateModal:!1,modalChargePointTemplateIndex:void 0,showChargePointTemplateAutolockPlanModal:!1,modalChargePointTemplateAutolockPlanIndex:void 0}},computed:{installedChargePoints:{get(){let e=this.getWildcardTopics("openWB/chargepoint/+/config"),a={};for(const[m,y]of Object.entries(e))(y.type==="internal_openwb"||this.$store.state.mqtt["openWB/general/extern"]===!1)&&(a[m]=y);return a}},chargePointTemplates:{get(){return this.getWildcardTopics("openWB/chargepoint/template/+")}},chargePointTemplateList:{get(){let e=[];return Object.keys(this.chargePointTemplates).forEach(a=>{let m=parseInt(a.match(/([0-9]+)/g)[0]),y=this.$store.state.mqtt["openWB/chargepoint/template/"+m].name;e.push({value:m,text:y})}),e}}},methods:{addChargePoint(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addChargepoint",data:{type:this.chargePointToAdd}})},removeChargePointModal(e,a){a.stopPropagation(),this.modalChargePointIndex=parseInt(e.match(/(?:\/)(\d+)(?=\/)/)[1]),this.showChargePointModal=!0},removeChargePoint(e,a){this.showChargePointModal=!1,a=="confirm"&&(console.debug("request removal of charge point '"+e+"'"),this.$emit("sendCommand",{command:"removeChargepoint",data:{id:e}}))},getChargePointList(){return this.$store.state.mqtt["openWB/general/extern"]===!1?this.$store.state.mqtt["openWB/system/configurable/chargepoints"]:this.$store.state.mqtt["openWB/system/configurable/chargepoints_internal"]},getChargePointName(e){return this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"]?this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"].name:"Ladepunkt "+e},getChargePointTemplateName(e){return this.$store.state.mqtt["openWB/chargepoint/template/"+e]?this.$store.state.mqtt["openWB/chargepoint/template/"+e].name:"Profil "+e},addChargePointTemplate(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addChargepointTemplate",data:{}})},getChargePointTemplateIndex(e){return parseInt(e.match(/([^/]+)$/)[0])},removeChargePointTemplateModal(e,a){a.stopPropagation(),this.modalChargePointTemplateIndex=this.getChargePointTemplateIndex(e),this.showChargePointTemplateModal=!0},removeChargePointTemplate(e,a){this.showChargePointTemplateModal=!1,a=="confirm"&&(console.info("request removal of chargePoint template '"+e+"'"),this.$emit("sendCommand",{command:"removeChargepointTemplate",data:{id:e}}))},addChargePointTemplateAutolockPlan(e,a){a.stopPropagation(),console.info("requesting new charge point template autolock plan...");let m=this.getChargePointTemplateIndex(e);this.$emit("sendCommand",{command:"addAutolockPlan",data:{template:m}})},removeChargePointTemplateAutolockPlanModal(e,a,m){m.stopPropagation(),this.modalChargePointTemplateIndex=this.getChargePointTemplateIndex(e),this.modalChargePointTemplateAutolockPlanIndex=parseInt(a.match(/([^/]+)$/)[0]),this.showChargePointTemplateAutolockPlanModal=!0},removeChargePointTemplateAutolockPlan(e,a,m){this.showChargePointTemplateAutolockPlanModal=!1,m=="confirm"&&(console.info("request removal of chargePoint template '"+e+"' autolock plan '"+a+"'"),this.$emit("sendCommand",{command:"removeAutolockPlan",data:{template:e,plan:a}}))},getChargePointTemplateAutolockPlanName(e,a){return this.$store.state.mqtt["openWB/chargepoint/template/"+e+"/autolock/"+a]?this.$store.state.mqtt["openWB/chargepoint/template/"+e+"/autolock/"+a].name:"Autolock Zeitplan "+e+"/"+a},getChargePointTemplateAutolockPlans(e){let a=this.getChargePointTemplateIndex(e);return this.getWildcardTopics("openWB/chargepoint/template/"+a+"/autolock/+")},updateConfiguration(e,a){console.debug("updateConfiguration",e,a),this.updateState(e,a.value,a.object)}}},_=e=>(ie("data-v-75fe5743"),e=e(),le(),e),we={class:"chargePointInstallation"},ke={name:"chargePointInstallationForm"},Ce={key:0},Pe=_(()=>u("hr",null,null,-1)),ye={key:1},Ve=_(()=>u("hr",null,null,-1)),Le=_(()=>u("br",null,null,-1)),We=_(()=>u("br",null,null,-1)),Te=_(()=>u("br",null,null,-1)),Be=_(()=>u("br",null,null,-1)),Se={key:1},Ae={class:"col-1"},xe=_(()=>u("br",null,null,-1)),Ie=_(()=>u("ul",null,[u("li",null," Interne openWB - wenn diese openWB über einen verbauten Ladepunkt mit Regelcontroller verfügt (z.B. Standard(+), Custom, Duo, Buchse, NICHT Standalone); ansonsten immer anlegen, egal ob diese openWB steuert = primary oder ferngesteuert wird = secondary "),u("li",null," Externe openWB - wenn diese openWB (primary) die Fernsteuerung von externen openWB (secondary) übernimmt "),u("li",null," MQTT-Ladepunkt - nur zur Nutzung des openWB-Simulators zugelassen "),u("li",null," openWB Pro - wenn diese openWB (primary) die Fernsteuerung einer openWB Pro (secondary) übernimmt "),u("li",null," openWB series2 Satellit/Satellit Duo - wenn diese openWB (primary) die Fernsteuerung einer openWB series2 Satellit/Satellit Duo (secondary) übernimmt "),u("li",null," smartWB/EVSE-Wifi - wenn diese openWB (primary) die Fernsteuerung einer smartWB/EVSE-Wifi übernimmt ")],-1)),Ue=_(()=>u("hr",{class:"border-secondary"},null,-1)),ze={key:0},qe={key:1},Ee=_(()=>u("hr",null,null,-1)),De={key:0},Fe=_(()=>u("br",null,null,-1)),Me=["innerHTML"],Oe=_(()=>u("hr",null,null,-1)),Ne=_(()=>u("br",null,null,-1)),je=_(()=>u("br",null,null,-1)),Re=_(()=>u("a",{href:"https://github.com/openWB/core/wiki/Lastmanagement-und-kaskadierte-Z%C3%A4hler",target:"_blank",rel:"noopener noreferrer"},"Wiki zum Lastmanagement",-1)),Ze=_(()=>u("hr",null,null,-1)),$e={key:0},He={key:1},Je={key:2},Ge={key:2};function Qe(e,a,m,y,p,d){const C=h("openwb-base-modal-dialog"),b=h("font-awesome-icon"),B=h("openwb-base-alert"),S=h("openwb-base-avatar"),V=h("openwb-base-text-input"),z=h("openwb-base-select-input"),N=h("openwb-charge-point-proxy"),W=h("openwb-base-heading"),P=h("openwb-base-button-group-input"),A=h("openwb-base-card"),j=h("openwb-base-click-button"),R=h("font-awesome-layers"),Z=h("openwb-base-array-input"),q=h("openwb-base-range-input"),$=h("openwb-base-submit-buttons");return l(),g(T,null,[c(" modal dialogs "),n(C,{show:p.showChargePointModal,title:"Ladepunkt löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[0]||(a[0]=r=>d.removeChargePoint(p.modalChargePointIndex,r))},{default:o(()=>[i(' Wollen Sie den Ladepunkt "'+k(d.getChargePointName(p.modalChargePointIndex))+'" (ID: '+k(p.modalChargePointIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),n(C,{show:p.showChargePointTemplateModal,title:"Ladepunkt-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[1]||(a[1]=r=>d.removeChargePointTemplate(p.modalChargePointTemplateIndex,r))},{default:o(()=>[i(' Wollen Sie das Ladepunkt-Profil "'+k(d.getChargePointTemplateName(p.modalChargePointTemplateIndex))+'" (ID: '+k(p.modalChargePointTemplateIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),n(C,{show:p.showChargePointTemplateAutolockPlanModal,title:"Autolock Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[2]||(a[2]=r=>d.removeChargePointTemplateAutolockPlan(p.modalChargePointTemplateIndex,p.modalChargePointTemplateAutolockPlanIndex,r))},{default:o(()=>[i(' Wollen Sie den Autolock Zeitplan "'+k(d.getChargePointTemplateAutolockPlanName(p.modalChargePointTemplateIndex,p.modalChargePointTemplateAutolockPlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),c(" main content "),u("div",we,[u("form",ke,[c(" charge point card "),n(A,{title:"Ladepunkte",subtype:"primary",collapsible:!0,collapsed:!0},{header:o(()=>[n(b,{"fixed-width":"",icon:["fas","charging-station"]}),i(" Ladepunkte ")]),default:o(()=>[Object.keys(d.installedChargePoints).length>1?(l(),w(B,{key:0,subtype:"danger"},{default:o(()=>[i(' Wenn mehrere Ladepunkte mit unterschiedlichen Lademodi genutzt werden, so ist für jeden Ladepunkt ein eigenes "Fahrzeug" (mit eigenem "Ladeprofil") anzulegen und dem jeweiligen LP auf der Hauptseite zuzuordnen. Diese Abhängigkeit wird mittelfristig noch bereinigt. ')]),_:1})):c("v-if",!0),(l(!0),g(T,null,I(d.installedChargePoints,(r,s)=>(l(),w(A,{key:s,title:r.name+" (ID: "+r.id+")",collapsible:!0,collapsed:!0,subtype:"primary"},{actions:o(t=>[t.collapsed?c("v-if",!0):(l(),w(S,{key:0,class:"bg-danger clickable",onClick:v=>d.removeChargePointModal(s,v)},{default:o(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[n(V,{title:"Bezeichnung",subtype:"text","model-value":r.name,"onUpdate:modelValue":t=>e.updateState(s,t,"name")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Modul",subtype:"text",disabled:"",readonly:"","model-value":e.$store.state.mqtt[s].type},null,8,["model-value"]),r.type!=="internal_openwb"||e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),g("span",Ce,[n(z,{title:"Ladepunkt-Profil",options:d.chargePointTemplateList,"model-value":e.$store.state.mqtt[s].template,"onUpdate:modelValue":t=>e.updateState(s,t,"template")},null,8,["options","model-value","onUpdate:modelValue"])])):c("v-if",!0),Pe,n(N,{chargePointId:r.id,chargePointType:e.$store.state.mqtt[s].type,moduleName:e.$store.state.mqtt[s].name,configuration:r.configuration,"onUpdate:configuration":t=>d.updateConfiguration(s,t)},null,8,["chargePointId","chargePointType","moduleName","configuration","onUpdate:configuration"]),r.type!=="internal_openwb"||e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),g("div",ye,[Ve,n(W,null,{default:o(()=>[i("Hardware-Optionen")]),_:1}),n(P,{title:"automatische Phasenumschaltung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.auto_phase_switch_hw,"onUpdate:modelValue":t=>e.updateState(s,t,"auto_phase_switch_hw")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Control-Pilot-Unterbrechung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.control_pilot_interruption_hw,"onUpdate:modelValue":t=>e.updateState(s,t,"control_pilot_interruption_hw")},{help:o(()=>[i(' Die Control-Pilot-Leitung ist im Ladekabel integriert und dient der Steuerung der Fahrzeugladung (An/Aus/Stromvorgaben). Bei einigen Fahrzeugen können durch die Regelung erzwungene, längere Ladestopps (z.B. beim PV-Laden) zu unerwünschten "Einschlaf"-Effekten des Fahrzeuges führen. Mit diesem feature, welches hardwareseitig verbaut sein muss, kann ein Abstecken des Ladesteckers simuliert werden, um ein Aufwecken des Fahrzeuges zu ermöglichen. Die Funktion hängt immer auch vom Fahrzeugtyp ab. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(W,null,{default:o(()=>[i(" Elektrischer Anschluss ")]),_:1}),n(P,{title:"Anzahl angeschlossener Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":r.connected_phases,"onUpdate:modelValue":t=>e.updateState(s,t,"connected_phases")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Phase 1 des Ladekabels",buttons:[{buttonValue:0,text:"unbekannt",class:"btn-outline-danger"},{buttonValue:1,text:"EVU L1",class:"btn-outline-success"},{buttonValue:2,text:"EVU L2",class:"btn-outline-success"},{buttonValue:3,text:"EVU L3",class:"btn-outline-success"}],"model-value":r.phase_1,"onUpdate:modelValue":t=>e.updateState(s,t,"phase_1")},{help:o(()=>[i(" Hier ist anzugeben, an welcher Phase des Hausanschlusses (EVU-Punkt) die Phase 1 dieses Ladepunktes angeschlossen ist. Diese Information wird für das Lastmanagement benötigt, um bei einer Schieflast gezielt einzelne Ladepunkte zu drosseln."),Le,i(' Bei mehreren Ladepunkten macht es Sinn, die Phasen der LP rotierend anzuschließen, damit mehrere "nicht-dreiphasig" ladende Fahrzeuge mit optimaler Leistung laden können, bevor das Lastmanagement eingreift.'),We,i(" Es wird vorausgesetzt, dass das Drehfeld innerhalb der Installation gleich bleibt. Wenn z.B. L1 des Ladepunktes auf EVU-L2 liegt, muss L2 des Ladepunktes auf EVU-L3 aufgelegt sein (und L3 des Ladepunktes auf EVU-L1)."),Te,i(" Eine Möglichkeit, die zur Ladepunktphase L1 zugehörige EVU-Phase zu ermitteln, ist eine einphasige Ladung zu starten und die Phasenströme am EVU-Zähler zu beobachten. Mit einem zweiphasig ladenden Fahrzeug kann danach auch der Anschluss von L2 ermittelt und so das Drehfeld kontrolliert werden."),Be,i(" Im Zweifel bitte das Drehfeld von einer Fachkraft prüfen und korrigieren lassen. ")]),_:2},1032,["model-value","onUpdate:modelValue"])])):c("v-if",!0)]),_:2},1032,["title"]))),128)),Object.keys(d.installedChargePoints).length>0?(l(),g("hr",Se)):c("v-if",!0),n(z,{class:"mb-2",title:"Verfügbare Ladepunkte",notSelected:"Bitte auswählen",options:d.getChargePointList(),"model-value":p.chargePointToAdd,"onUpdate:modelValue":a[3]||(a[3]=r=>p.chargePointToAdd=r)},{append:o(()=>[u("span",Ae,[n(j,{class:M(p.chargePointToAdd===void 0?"btn-outline-success":"btn-success"),disabled:p.chargePointToAdd===void 0,onButtonClicked:d.addChargePoint},{default:o(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["class","disabled","onButtonClicked"])])]),help:o(()=>[i(" Bitte einen Ladepunkt auswählen, der der openWB-Regelung hinzugefügt werden soll."),xe,Ie]),_:1},8,["options","model-value"])]),_:1}),Ue,c(" charge point template card "),n(A,{title:"Ladepunkt-Profile",collapsible:!0,collapsed:!0},{header:o(()=>[n(R,{"fixed-width":"",class:"fa-lg"},{default:o(()=>[n(b,{"fixed-width":"",icon:["far","file"]}),n(b,{"fixed-width":"",icon:["fas","charging-station"],transform:"shrink-8"})]),_:1}),i(" Ladepunkt-Profile ")]),actions:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),w(S,{key:0,class:"bg-success clickable",onClick:d.addChargePointTemplate},{default:o(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):c("v-if",!0)]),default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),g("div",ze,[n(B,{subtype:"info"},{default:o(()=>[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),g("div",qe,[(l(!0),g(T,null,I(d.chargePointTemplates,(r,s)=>(l(),w(A,{key:s,title:r.name+" (ID: "+d.getChargePointTemplateIndex(s)+")",collapsible:!0,collapsed:!0},O({default:o(()=>[n(V,{title:"Bezeichnung",subtype:"text","model-value":r.name,"onUpdate:modelValue":t=>e.updateState(s,t,"name"),disabled:s.endsWith("/0")},O({_:2},[s.endsWith("/0")?{name:"help",fn:o(()=>[i(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),Ee,e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(l(),g("div",De,[n(W,null,{default:o(()=>[i(" Zugangskontrolle ")]),_:1}),n(P,{title:"Freigabe mit RFID",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.rfid_enabling,"onUpdate:modelValue":t=>e.updateState(s,t,"rfid_enabling")},null,8,["model-value","onUpdate:modelValue"]),n(Z,{title:"Zugeordnete Tags",noElementsMessage:"Keine Tags zugeordnet.","model-value":r.valid_tags,"onUpdate:modelValue":t=>e.updateState(s,t,"valid_tags")},{help:o(()=>[i(" An allen Ladepunkten, denen dieses Ladepunkt-Profil zugeordnet ist, können die hier eingetragenen Tags verwendet werden."),Fe,u("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,Me)]),_:2},1032,["model-value","onUpdate:modelValue"]),Oe])):c("v-if",!0),n(W,null,{default:o(()=>[i("Angaben zum konfigurierten Ladestrom der openWB ")]),_:1}),n(B,{subtype:"info"},{default:o(()=>[i(" Hier werden die maximalen Ladeströme entsprechend den in der zugeordneten Wallbox genutzten Phasen eingestellt."),Ne,i(" Generell gilt, dass diese Werte entsprechend der Ausführung der Wallbox und des elektrischen Anschlusses bzw. der Absicherung zu wählen sind. Bei einer openWB mit 22kW Maximalleistung sind hier jeweils 32A einzustellen. Ist die openWB beispielsweise auf 11kW begrenzt (KfW-Förderung oder die Zuleitung ist mit 16A abgesichert), dann sind hier jeweils 16A einzustellen."),je,i(" Komplexere Installationen mit mehreren Wallboxen werden im "),Re,i(" beschrieben. ")]),_:1}),n(q,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":r.max_current_single_phase,"onUpdate:modelValue":t=>e.updateState(s,t,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),n(q,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":r.max_current_multi_phases,"onUpdate:modelValue":t=>e.updateState(s,t,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"]),Ze,n(W,null,{default:o(()=>[i("Automatische Sperre")]),_:1}),n(P,{title:"Automatische Sperre aktiv",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.autolock.active,"onUpdate:modelValue":t=>e.updateState(s,t,"autolock.active")},{help:o(()=>[i(" Wird die automatische Sperre aktiviert, können Fahrzeugladungen mittels Zeitplan auf gewünschte Zeitbereiche eingeschränkt werden. Dies kann z.B. bei Zugänglichkeiten zu Ladepunkten in öffentlichen oder halb-öffentlichen Bereichen sinnvoll sein. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(P,{title:"Erst nach Ladeende sperren",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.autolock.wait_for_charging_end,"onUpdate:modelValue":t=>e.updateState(s,t,"autolock.wait_for_charging_end")},{help:o(()=>[i(' Wenn ein Zeitplan die automatische Sperre aktiviert, werden alle Ladepunkte direkt gesperrt und laufende Ladevorgänge beendet. Wird hier "Ja" ausgewählt, dann werden laufende Ladevorgänge NICHT beendet und diese Ladepunkte erst nach abgeschlossener Ladung gesperrt. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(W,null,{actions:o(()=>[n(S,{class:"bg-success clickable",onClick:t=>d.addChargePointTemplateAutolockPlan(s,t)},{default:o(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),default:o(()=>[i(" Zeitpläne für die automatische Sperre ")]),_:2},1024),(l(!0),g(T,null,I(d.getChargePointTemplateAutolockPlans(s),(t,v)=>(l(),w(A,{key:v,title:t.name,collapsible:!0,collapsed:!0},{actions:o(f=>[f.collapsed==!0?(l(),g("span",{key:0,class:M(["subheader pill",t.active?"bg-success":"bg-danger"])},[n(b,{"fixed-width":"",icon:["fas","clock"]}),i(" "+k(t.time[0])+" - "+k(t.time[1])+" ",1),t.frequency.selected=="once"?(l(),g("span",$e,[n(b,{"fixed-width":"",icon:["fas","calendar-day"]}),i(" "+k(e.formatDate(t.frequency.once[0])==e.formatDate(t.frequency.once[1])?e.formatDate(t.frequency.once[0]):e.formatDate(t.frequency.once[0])+" - "+e.formatDate(t.frequency.once[1])),1)])):c("v-if",!0),t.frequency.selected=="daily"?(l(),g("span",He,[n(b,{"fixed-width":"",icon:["fas","calendar-week"]})])):c("v-if",!0),t.frequency.selected=="weekly"?(l(),g("span",Je,[n(b,{"fixed-width":"",icon:["fas","calendar-alt"]})])):c("v-if",!0)],2)):c("v-if",!0),f.collapsed==!1?(l(),w(S,{key:1,class:"bg-danger clickable",onClick:x=>d.removeChargePointTemplateAutolockPlanModal(s,v,x)},{default:o(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):c("v-if",!0)]),default:o(()=>[n(V,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":f=>e.updateState(v,f,"name")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":f=>e.updateState(v,f,"active")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Sperren um",subtype:"time","model-value":t.time[0],"onUpdate:modelValue":f=>e.updateState(v,f,"time.0")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Freigeben um",subtype:"time","model-value":t.time[1],"onUpdate:modelValue":f=>e.updateState(v,f,"time.1")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":f=>e.updateState(v,f,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(l(),w(V,{key:0,title:"Sperren ab ...",subtype:"date","model-value":t.frequency.once[0],"onUpdate:modelValue":f=>e.updateState(v,f,"frequency.once.0")},null,8,["model-value","onUpdate:modelValue"])):c("v-if",!0),t.frequency.selected=="once"?(l(),w(V,{key:1,title:"... bis",subtype:"date",min:t.frequency.once[0],"model-value":t.frequency.once[1],"onUpdate:modelValue":f=>e.updateState(v,f,"frequency.once.1")},null,8,["min","model-value","onUpdate:modelValue"])):c("v-if",!0),t.frequency.selected=="weekly"?(l(),g("div",Ge,[(l(!0),g(T,null,I(e.weekdays,(f,x)=>(l(),w(P,{key:x,title:f,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[x],"onUpdate:modelValue":H=>e.updateState(v,H,"frequency.weekly."+x)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):c("v-if",!0)]),_:2},1032,["title"]))),128))]),_:2},[s.endsWith("/0")?void 0:{name:"actions",fn:o(t=>[t.collapsed?c("v-if",!0):(l(),w(S,{key:0,class:"bg-danger clickable",onClick:v=>d.removeChargePointTemplateModal(s,v)},{default:o(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}]),1032,["title"]))),128))]))]),_:1}),n($,{formName:"chargePointInstallationForm",onSave:a[4]||(a[4]=r=>e.$emit("save")),onReset:a[5]||(a[5]=r=>e.$emit("reset")),onDefaults:a[6]||(a[6]=r=>e.$emit("defaults"))})])])],64)}const it=U(ve,[["render",Qe],["__scopeId","data-v-75fe5743"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ChargePointInstallation.vue"]]);export{it as default};
diff --git a/web/settings/assets/ChargePointInstallation-40572ce1.js b/web/settings/assets/ChargePointInstallation-40572ce1.js
deleted file mode 100644
index cd6f1f0033..0000000000
--- a/web/settings/assets/ChargePointInstallation-40572ce1.js
+++ /dev/null
@@ -1 +0,0 @@
-import{l as J,d as G,S as Q,A as X,T as Y,U as K,J as ee,V as te,F as ne,W as ae}from"./vendor-fortawesome-ad83e535.js";import{_ as L,C as oe}from"./index-cbcca7a0.js";import{_ as E}from"./dynamic-import-helper-be004503.js";import{_ as U,p as h,k as l,l as g,A as n,L as o,u as i,x as k,q as u,a0 as D,y as w,a1 as F,G as T,z as c,I,n as M,a2 as O,Q as ie,R as le}from"./vendor-94ac8c48.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";const re={name:"ChargePointConfigFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0},chargePointType:String},methods:{updateConfiguration(e,a=void 0){this.$emit("update:configuration",{value:e,object:a})}}},se={class:"device-fallback"};function de(e,a,m,y,p,d){const C=h("openwb-base-alert"),b=h("openwb-base-textarea");return l(),g("div",se,[n(C,{subtype:"warning"},{default:o(()=>[i(' Es wurde keine Konfigurationsseite für den Ladepunkt-Typ "'+k(m.chargePointType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),n(b,{title:"Konfiguration",subtype:"json","model-value":m.configuration,"onUpdate:modelValue":a[0]||(a[0]=B=>d.updateConfiguration(B,"configuration"))},{help:o(()=>[i(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(C,{subtype:"info"},{default:o(()=>[u("pre",null,k(JSON.stringify(m.configuration,void 0,2)),1)]),_:1})])}const ue=U(re,[["render",de],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointConfigFallback.vue"]]),me={name:"ChargePointCommandsFallback",props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0},chargePointType:String}},pe={class:"charge-point-commands-fallback"};function ce(e,a,m,y,p,d){const C=h("openwb-base-alert");return l(),g("div",pe,[n(C,{subtype:"secondary"},{default:o(()=>[i(' Der Ladepunkt-Typ "'+k(m.chargePointType)+'" bietet keine Befehle an. ',1)]),_:1})])}const ge=U(me,[["render",ce],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointCommandsFallback.vue"]]),he={name:"OpenwbChargePointProxy",emits:["update:configuration"],props:{chargePointId:{required:!0},chargePointType:{type:String,required:!0},configuration:{type:Object,required:!0},moduleName:{type:String,required:!1,default:void 0}},computed:{myChargePointSettingsComponent(){return console.debug(`loading charge point settings: ${this.chargePointType}`),D({loader:()=>E(Object.assign({"./external_openwb/chargePoint.vue":()=>L(()=>import("./chargePoint-07057692.js"),["assets/chargePoint-07057692.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./internal_openwb/chargePoint.vue":()=>L(()=>import("./chargePoint-a56bc604.js"),["assets/chargePoint-a56bc604.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./mqtt/chargePoint.vue":()=>L(()=>import("./chargePoint-7200a105.js"),["assets/chargePoint-7200a105.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_pro/chargePoint.vue":()=>L(()=>import("./chargePoint-80e648c2.js"),["assets/chargePoint-80e648c2.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_series2_satellit/chargePoint.vue":()=>L(()=>import("./chargePoint-4a124bb9.js"),["assets/chargePoint-4a124bb9.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./smartwb/chargePoint.vue":()=>L(()=>import("./chargePoint-10f32a1a.js"),["assets/chargePoint-10f32a1a.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"])}),`./${this.chargePointType}/chargePoint.vue`),errorComponent:ue})},myChargePointCommandsComponent(){return console.debug(`loading charge point commands: ${this.chargePointType}`),D({loader:()=>E(Object.assign({"./openwb_pro/commands.vue":()=>L(()=>import("./commands-516069c3.js"),["assets/commands-516069c3.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"])}),`./${this.chargePointType}/commands.vue`),errorComponent:ge})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}},fe=u("hr",null,null,-1);function be(e,a,m,y,p,d){const C=h("openwb-base-heading");return l(),g(T,null,[n(C,null,{default:o(()=>[i(" Einstellungen für Ladepunkt "+k(m.moduleName),1)]),_:1}),(l(),w(F(d.myChargePointSettingsComponent),{configuration:m.configuration,chargePointId:m.chargePointId,chargePointType:m.chargePointType,"onUpdate:configuration":a[0]||(a[0]=b=>d.updateConfiguration(b))},null,40,["configuration","chargePointId","chargePointType"])),fe,n(C,null,{default:o(()=>[i(" Befehle für Ladepunkt "+k(m.moduleName),1)]),_:1}),(l(),w(F(d.myChargePointCommandsComponent),{configuration:m.configuration,chargePointId:m.chargePointId,chargePointType:m.chargePointType},null,8,["configuration","chargePointId","chargePointType"]))],64)}const _e=U(he,[["render",be],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/OpenwbChargePointProxy.vue"]]);J.add(G,Q,X,Y,K,ee,te);const ve={name:"OpenwbChargePointInstallation",mixins:[oe],emits:["sendCommand"],components:{FontAwesomeIcon:ne,FontAwesomeLayers:ae,OpenwbChargePointProxy:_e},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/rfid/active","openWB/chargepoint/+/config","openWB/chargepoint/template/+","openWB/chargepoint/template/+/autolock/+","openWB/system/configurable/chargepoints","openWB/system/configurable/chargepoints_internal"],chargePointToAdd:void 0,showChargePointModal:!1,modalChargePointIndex:void 0,showChargePointTemplateModal:!1,modalChargePointTemplateIndex:void 0,showChargePointTemplateAutolockPlanModal:!1,modalChargePointTemplateAutolockPlanIndex:void 0}},computed:{installedChargePoints:{get(){let e=this.getWildcardTopics("openWB/chargepoint/+/config");console.log(e);let a={};for(const[m,y]of Object.entries(e))(y.type==="internal_openwb"||this.$store.state.mqtt["openWB/general/extern"]===!1)&&(a[m]=y);return console.log(a),a}},chargePointTemplates:{get(){return this.getWildcardTopics("openWB/chargepoint/template/+")}},chargePointTemplateList:{get(){let e=[];return Object.keys(this.chargePointTemplates).forEach(a=>{let m=parseInt(a.match(/([0-9]+)/g)[0]),y=this.$store.state.mqtt["openWB/chargepoint/template/"+m].name;e.push({value:m,text:y})}),e}}},methods:{addChargePoint(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addChargepoint",data:{type:this.chargePointToAdd}})},removeChargePointModal(e,a){a.stopPropagation(),this.modalChargePointIndex=parseInt(e.match(/(?:\/)(\d+)(?=\/)/)[1]),this.showChargePointModal=!0},removeChargePoint(e,a){this.showChargePointModal=!1,a=="confirm"&&(console.debug("request removal of charge point '"+e+"'"),this.$emit("sendCommand",{command:"removeChargepoint",data:{id:e}}))},getChargePointList(){return this.$store.state.mqtt["openWB/general/extern"]===!1?this.$store.state.mqtt["openWB/system/configurable/chargepoints"]:this.$store.state.mqtt["openWB/system/configurable/chargepoints_internal"]},getChargePointName(e){return this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"]?this.$store.state.mqtt["openWB/chargepoint/"+e+"/config"].name:"Ladepunkt "+e},getChargePointTemplateName(e){return this.$store.state.mqtt["openWB/chargepoint/template/"+e]?this.$store.state.mqtt["openWB/chargepoint/template/"+e].name:"Profil "+e},addChargePointTemplate(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addChargepointTemplate",data:{}})},getChargePointTemplateIndex(e){return parseInt(e.match(/([^/]+)$/)[0])},removeChargePointTemplateModal(e,a){a.stopPropagation(),this.modalChargePointTemplateIndex=this.getChargePointTemplateIndex(e),this.showChargePointTemplateModal=!0},removeChargePointTemplate(e,a){this.showChargePointTemplateModal=!1,a=="confirm"&&(console.info("request removal of chargePoint template '"+e+"'"),this.$emit("sendCommand",{command:"removeChargepointTemplate",data:{id:e}}))},addChargePointTemplateAutolockPlan(e,a){a.stopPropagation(),console.info("requesting new charge point template autolock plan...");let m=this.getChargePointTemplateIndex(e);this.$emit("sendCommand",{command:"addAutolockPlan",data:{template:m}})},removeChargePointTemplateAutolockPlanModal(e,a,m){m.stopPropagation(),this.modalChargePointTemplateIndex=this.getChargePointTemplateIndex(e),this.modalChargePointTemplateAutolockPlanIndex=parseInt(a.match(/([^/]+)$/)[0]),this.showChargePointTemplateAutolockPlanModal=!0},removeChargePointTemplateAutolockPlan(e,a,m){this.showChargePointTemplateAutolockPlanModal=!1,m=="confirm"&&(console.info("request removal of chargePoint template '"+e+"' autolock plan '"+a+"'"),this.$emit("sendCommand",{command:"removeAutolockPlan",data:{template:e,plan:a}}))},getChargePointTemplateAutolockPlanName(e,a){return this.$store.state.mqtt["openWB/chargepoint/template/"+e+"/autolock/"+a]?this.$store.state.mqtt["openWB/chargepoint/template/"+e+"/autolock/"+a].name:"Autolock Zeitplan "+e+"/"+a},getChargePointTemplateAutolockPlans(e){let a=this.getChargePointTemplateIndex(e);return this.getWildcardTopics("openWB/chargepoint/template/"+a+"/autolock/+")},updateConfiguration(e,a){console.debug("updateConfiguration",e,a),this.updateState(e,a.value,a.object)}}},_=e=>(ie("data-v-75fe5743"),e=e(),le(),e),we={class:"chargePointInstallation"},ke={name:"chargePointInstallationForm"},Ce={key:0},Pe=_(()=>u("hr",null,null,-1)),ye={key:1},Ve=_(()=>u("hr",null,null,-1)),Le=_(()=>u("br",null,null,-1)),We=_(()=>u("br",null,null,-1)),Te=_(()=>u("br",null,null,-1)),Be=_(()=>u("br",null,null,-1)),Se={key:1},Ae={class:"col-1"},xe=_(()=>u("br",null,null,-1)),Ie=_(()=>u("ul",null,[u("li",null," Interne openWB - wenn diese openWB über einen verbauten Ladepunkt mit Regelcontroller verfügt (z.B. Standard(+), Custom, Duo, Buchse, NICHT Standalone); ansonsten immer anlegen, egal ob diese openWB steuert = primary oder ferngesteuert wird = secondary "),u("li",null," Externe openWB - wenn diese openWB (primary) die Fernsteuerung von externen openWB (secondary) übernimmt "),u("li",null," MQTT-Ladepunkt - nur zur Nutzung des openWB-Simulators zugelassen "),u("li",null," openWB Pro - wenn diese openWB (primary) die Fernsteuerung einer openWB Pro (secondary) übernimmt "),u("li",null," openWB series2 Satellit/Satellit Duo - wenn diese openWB (primary) die Fernsteuerung einer openWB series2 Satellit/Satellit Duo (secondary) übernimmt "),u("li",null," smartWB/EVSE-Wifi - wenn diese openWB (primary) die Fernsteuerung einer smartWB/EVSE-Wifi übernimmt ")],-1)),Ue=_(()=>u("hr",{class:"border-secondary"},null,-1)),ze={key:0},qe={key:1},Ee=_(()=>u("hr",null,null,-1)),De={key:0},Fe=_(()=>u("br",null,null,-1)),Me=["innerHTML"],Oe=_(()=>u("hr",null,null,-1)),Ne=_(()=>u("br",null,null,-1)),je=_(()=>u("br",null,null,-1)),Re=_(()=>u("a",{href:"https://github.com/openWB/core/wiki/Lastmanagement-und-kaskadierte-Z%C3%A4hler",target:"_blank",rel:"noopener noreferrer"},"Wiki zum Lastmanagement",-1)),Ze=_(()=>u("hr",null,null,-1)),$e={key:0},He={key:1},Je={key:2},Ge={key:2};function Qe(e,a,m,y,p,d){const C=h("openwb-base-modal-dialog"),b=h("font-awesome-icon"),B=h("openwb-base-alert"),S=h("openwb-base-avatar"),V=h("openwb-base-text-input"),z=h("openwb-base-select-input"),N=h("openwb-charge-point-proxy"),W=h("openwb-base-heading"),P=h("openwb-base-button-group-input"),A=h("openwb-base-card"),j=h("openwb-base-click-button"),R=h("font-awesome-layers"),Z=h("openwb-base-array-input"),q=h("openwb-base-range-input"),$=h("openwb-base-submit-buttons");return l(),g(T,null,[c(" modal dialogs "),n(C,{show:p.showChargePointModal,title:"Ladepunkt löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[0]||(a[0]=r=>d.removeChargePoint(p.modalChargePointIndex,r))},{default:o(()=>[i(' Wollen Sie den Ladepunkt "'+k(d.getChargePointName(p.modalChargePointIndex))+'" (ID: '+k(p.modalChargePointIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),n(C,{show:p.showChargePointTemplateModal,title:"Ladepunkt-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[1]||(a[1]=r=>d.removeChargePointTemplate(p.modalChargePointTemplateIndex,r))},{default:o(()=>[i(' Wollen Sie das Ladepunkt-Profil "'+k(d.getChargePointTemplateName(p.modalChargePointTemplateIndex))+'" (ID: '+k(p.modalChargePointTemplateIndex)+") wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ",1)]),_:1},8,["show"]),n(C,{show:p.showChargePointTemplateAutolockPlanModal,title:"Autolock Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:a[2]||(a[2]=r=>d.removeChargePointTemplateAutolockPlan(p.modalChargePointTemplateIndex,p.modalChargePointTemplateAutolockPlanIndex,r))},{default:o(()=>[i(' Wollen Sie den Autolock Zeitplan "'+k(d.getChargePointTemplateAutolockPlanName(p.modalChargePointTemplateIndex,p.modalChargePointTemplateAutolockPlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),c(" main content "),u("div",we,[u("form",ke,[c(" charge point card "),n(A,{title:"Ladepunkte",subtype:"primary",collapsible:!0,collapsed:!0},{header:o(()=>[n(b,{"fixed-width":"",icon:["fas","charging-station"]}),i(" Ladepunkte ")]),default:o(()=>[Object.keys(d.installedChargePoints).length>1?(l(),w(B,{key:0,subtype:"danger"},{default:o(()=>[i(' Wenn mehrere Ladepunkte mit unterschiedlichen Lademodi genutzt werden, so ist für jeden Ladepunkt ein eigenes "Fahrzeug" (mit eigenem "Ladeprofil") anzulegen und dem jeweiligen LP auf der Hauptseite zuzuordnen. Diese Abhängigkeit wird mittelfristig noch bereinigt. ')]),_:1})):c("v-if",!0),(l(!0),g(T,null,I(d.installedChargePoints,(r,s)=>(l(),w(A,{key:s,title:r.name+" (ID: "+r.id+")",collapsible:!0,collapsed:!0,subtype:"primary"},{actions:o(t=>[t.collapsed?c("v-if",!0):(l(),w(S,{key:0,class:"bg-danger clickable",onClick:v=>d.removeChargePointModal(s,v)},{default:o(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:o(()=>[n(V,{title:"Bezeichnung",subtype:"text","model-value":r.name,"onUpdate:modelValue":t=>e.updateState(s,t,"name")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Modul",subtype:"text",disabled:"",readonly:"","model-value":e.$store.state.mqtt[s].type},null,8,["model-value"]),r.type!=="internal_openwb"||e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),g("span",Ce,[n(z,{title:"Ladepunkt-Profil",options:d.chargePointTemplateList,"model-value":e.$store.state.mqtt[s].template,"onUpdate:modelValue":t=>e.updateState(s,t,"template")},null,8,["options","model-value","onUpdate:modelValue"])])):c("v-if",!0),Pe,n(N,{chargePointId:r.id,chargePointType:e.$store.state.mqtt[s].type,moduleName:e.$store.state.mqtt[s].name,configuration:r.configuration,"onUpdate:configuration":t=>d.updateConfiguration(s,t)},null,8,["chargePointId","chargePointType","moduleName","configuration","onUpdate:configuration"]),r.type!=="internal_openwb"||e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),g("div",ye,[Ve,n(W,null,{default:o(()=>[i("Hardware-Optionen")]),_:1}),n(P,{title:"automatische Phasenumschaltung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.auto_phase_switch_hw,"onUpdate:modelValue":t=>e.updateState(s,t,"auto_phase_switch_hw")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Control-Pilot-Unterbrechung vorhanden",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.control_pilot_interruption_hw,"onUpdate:modelValue":t=>e.updateState(s,t,"control_pilot_interruption_hw")},{help:o(()=>[i(' Die Control-Pilot-Leitung ist im Ladekabel integriert und dient der Steuerung der Fahrzeugladung (An/Aus/Stromvorgaben). Bei einigen Fahrzeugen können durch die Regelung erzwungene, längere Ladestopps (z.B. beim PV-Laden) zu unerwünschten "Einschlaf"-Effekten des Fahrzeuges führen. Mit diesem feature, welches hardwareseitig verbaut sein muss, kann ein Abstecken des Ladesteckers simuliert werden, um ein Aufwecken des Fahrzeuges zu ermöglichen. Die Funktion hängt immer auch vom Fahrzeugtyp ab. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(W,null,{default:o(()=>[i(" Elektrischer Anschluss ")]),_:1}),n(P,{title:"Anzahl angeschlossener Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":r.connected_phases,"onUpdate:modelValue":t=>e.updateState(s,t,"connected_phases")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Phase 1 des Ladekabels",buttons:[{buttonValue:0,text:"unbekannt",class:"btn-outline-danger"},{buttonValue:1,text:"EVU L1",class:"btn-outline-success"},{buttonValue:2,text:"EVU L2",class:"btn-outline-success"},{buttonValue:3,text:"EVU L3",class:"btn-outline-success"}],"model-value":r.phase_1,"onUpdate:modelValue":t=>e.updateState(s,t,"phase_1")},{help:o(()=>[i(" Hier ist anzugeben, an welcher Phase des Hausanschlusses (EVU-Punkt) die Phase 1 dieses Ladepunktes angeschlossen ist. Diese Information wird für das Lastmanagement benötigt, um bei einer Schieflast gezielt einzelne Ladepunkte zu drosseln."),Le,i(' Bei mehreren Ladepunkten macht es Sinn, die Phasen der LP rotierend anzuschließen, damit mehrere "nicht-dreiphasig" ladende Fahrzeuge mit optimaler Leistung laden können, bevor das Lastmanagement eingreift.'),We,i(" Es wird vorausgesetzt, dass das Drehfeld innerhalb der Installation gleich bleibt. Wenn z.B. L1 des Ladepunktes auf EVU-L2 liegt, muss L2 des Ladepunktes auf EVU-L3 aufgelegt sein (und L3 des Ladepunktes auf EVU-L1)."),Te,i(" Eine Möglichkeit, die zur Ladepunktphase L1 zugehörige EVU-Phase zu ermitteln, ist eine einphasige Ladung zu starten und die Phasenströme am EVU-Zähler zu beobachten. Mit einem zweiphasig ladenden Fahrzeug kann danach auch der Anschluss von L2 ermittelt und so das Drehfeld kontrolliert werden."),Be,i(" Im Zweifel bitte das Drehfeld von einer Fachkraft prüfen und korrigieren lassen. ")]),_:2},1032,["model-value","onUpdate:modelValue"])])):c("v-if",!0)]),_:2},1032,["title"]))),128)),Object.keys(d.installedChargePoints).length>0?(l(),g("hr",Se)):c("v-if",!0),n(z,{class:"mb-2",title:"Verfügbare Ladepunkte",notSelected:"Bitte auswählen",options:d.getChargePointList(),"model-value":p.chargePointToAdd,"onUpdate:modelValue":a[3]||(a[3]=r=>p.chargePointToAdd=r)},{append:o(()=>[u("span",Ae,[n(j,{class:M(p.chargePointToAdd===void 0?"btn-outline-success":"btn-success"),disabled:p.chargePointToAdd===void 0,onButtonClicked:d.addChargePoint},{default:o(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["class","disabled","onButtonClicked"])])]),help:o(()=>[i(" Bitte einen Ladepunkt auswählen, der der openWB-Regelung hinzugefügt werden soll."),xe,Ie]),_:1},8,["options","model-value"])]),_:1}),Ue,c(" charge point template card "),n(A,{title:"Ladepunkt-Profile",collapsible:!0,collapsed:!0},{header:o(()=>[n(R,{"fixed-width":"",class:"fa-lg"},{default:o(()=>[n(b,{"fixed-width":"",icon:["far","file"]}),n(b,{"fixed-width":"",icon:["fas","charging-station"],transform:"shrink-8"})]),_:1}),i(" Ladepunkt-Profile ")]),actions:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(l(),w(S,{key:0,class:"bg-success clickable",onClick:d.addChargePointTemplate},{default:o(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):c("v-if",!0)]),default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),g("div",ze,[n(B,{subtype:"info"},{default:o(()=>[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),g("div",qe,[(l(!0),g(T,null,I(d.chargePointTemplates,(r,s)=>(l(),w(A,{key:s,title:r.name+" (ID: "+d.getChargePointTemplateIndex(s)+")",collapsible:!0,collapsed:!0},O({default:o(()=>[n(V,{title:"Bezeichnung",subtype:"text","model-value":r.name,"onUpdate:modelValue":t=>e.updateState(s,t,"name"),disabled:s.endsWith("/0")},O({_:2},[s.endsWith("/0")?{name:"help",fn:o(()=>[i(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),Ee,e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(l(),g("div",De,[n(W,null,{default:o(()=>[i(" Zugangskontrolle ")]),_:1}),n(P,{title:"Freigabe mit RFID",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.rfid_enabling,"onUpdate:modelValue":t=>e.updateState(s,t,"rfid_enabling")},null,8,["model-value","onUpdate:modelValue"]),n(Z,{title:"Zugeordnete Tags",noElementsMessage:"Keine Tags zugeordnet.","model-value":r.valid_tags,"onUpdate:modelValue":t=>e.updateState(s,t,"valid_tags")},{help:o(()=>[i(" An allen Ladepunkten, denen dieses Ladepunkt-Profil zugeordnet ist, können die hier eingetragenen Tags verwendet werden."),Fe,u("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,Me)]),_:2},1032,["model-value","onUpdate:modelValue"]),Oe])):c("v-if",!0),n(W,null,{default:o(()=>[i("Angaben zum konfigurierten Ladestrom der openWB ")]),_:1}),n(B,{subtype:"info"},{default:o(()=>[i(" Hier werden die maximalen Ladeströme entsprechend den in der zugeordneten Wallbox genutzten Phasen eingestellt."),Ne,i(" Generell gilt, dass diese Werte entsprechend der Ausführung der Wallbox und des elektrischen Anschlusses bzw. der Absicherung zu wählen sind. Bei einer openWB mit 22kW Maximalleistung sind hier jeweils 32A einzustellen. Ist die openWB beispielsweise auf 11kW begrenzt (KfW-Förderung oder die Zuleitung ist mit 16A abgesichert), dann sind hier jeweils 16A einzustellen."),je,i(" Komplexere Installationen mit mehreren Wallboxen werden im "),Re,i(" beschrieben. ")]),_:1}),n(q,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":r.max_current_single_phase,"onUpdate:modelValue":t=>e.updateState(s,t,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),n(q,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":r.max_current_multi_phases,"onUpdate:modelValue":t=>e.updateState(s,t,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"]),Ze,n(W,null,{default:o(()=>[i("Automatische Sperre")]),_:1}),n(P,{title:"Automatische Sperre aktiv",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.autolock.active,"onUpdate:modelValue":t=>e.updateState(s,t,"autolock.active")},{help:o(()=>[i(" Wird die automatische Sperre aktiviert, können Fahrzeugladungen mittels Zeitplan auf gewünschte Zeitbereiche eingeschränkt werden. Dies kann z.B. bei Zugänglichkeiten zu Ladepunkten in öffentlichen oder halb-öffentlichen Bereichen sinnvoll sein. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(P,{title:"Erst nach Ladeende sperren",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":r.autolock.wait_for_charging_end,"onUpdate:modelValue":t=>e.updateState(s,t,"autolock.wait_for_charging_end")},{help:o(()=>[i(' Wenn ein Zeitplan die automatische Sperre aktiviert, werden alle Ladepunkte direkt gesperrt und laufende Ladevorgänge beendet. Wird hier "Ja" ausgewählt, dann werden laufende Ladevorgänge NICHT beendet und diese Ladepunkte erst nach abgeschlossener Ladung gesperrt. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(W,null,{actions:o(()=>[n(S,{class:"bg-success clickable",onClick:t=>d.addChargePointTemplateAutolockPlan(s,t)},{default:o(()=>[n(b,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),default:o(()=>[i(" Zeitpläne für die automatische Sperre ")]),_:2},1024),(l(!0),g(T,null,I(d.getChargePointTemplateAutolockPlans(s),(t,v)=>(l(),w(A,{key:v,title:t.name,collapsible:!0,collapsed:!0},{actions:o(f=>[f.collapsed==!0?(l(),g("span",{key:0,class:M(["subheader pill",t.active?"bg-success":"bg-danger"])},[n(b,{"fixed-width":"",icon:["fas","clock"]}),i(" "+k(t.time[0])+" - "+k(t.time[1])+" ",1),t.frequency.selected=="once"?(l(),g("span",$e,[n(b,{"fixed-width":"",icon:["fas","calendar-day"]}),i(" "+k(e.formatDate(t.frequency.once[0])==e.formatDate(t.frequency.once[1])?e.formatDate(t.frequency.once[0]):e.formatDate(t.frequency.once[0])+" - "+e.formatDate(t.frequency.once[1])),1)])):c("v-if",!0),t.frequency.selected=="daily"?(l(),g("span",He,[n(b,{"fixed-width":"",icon:["fas","calendar-week"]})])):c("v-if",!0),t.frequency.selected=="weekly"?(l(),g("span",Je,[n(b,{"fixed-width":"",icon:["fas","calendar-alt"]})])):c("v-if",!0)],2)):c("v-if",!0),f.collapsed==!1?(l(),w(S,{key:1,class:"bg-danger clickable",onClick:x=>d.removeChargePointTemplateAutolockPlanModal(s,v,x)},{default:o(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):c("v-if",!0)]),default:o(()=>[n(V,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":f=>e.updateState(v,f,"name")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":f=>e.updateState(v,f,"active")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Sperren um",subtype:"time","model-value":t.time[0],"onUpdate:modelValue":f=>e.updateState(v,f,"time.0")},null,8,["model-value","onUpdate:modelValue"]),n(V,{title:"Freigeben um",subtype:"time","model-value":t.time[1],"onUpdate:modelValue":f=>e.updateState(v,f,"time.1")},null,8,["model-value","onUpdate:modelValue"]),n(P,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":f=>e.updateState(v,f,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(l(),w(V,{key:0,title:"Sperren ab ...",subtype:"date","model-value":t.frequency.once[0],"onUpdate:modelValue":f=>e.updateState(v,f,"frequency.once.0")},null,8,["model-value","onUpdate:modelValue"])):c("v-if",!0),t.frequency.selected=="once"?(l(),w(V,{key:1,title:"... bis",subtype:"date",min:t.frequency.once[0],"model-value":t.frequency.once[1],"onUpdate:modelValue":f=>e.updateState(v,f,"frequency.once.1")},null,8,["min","model-value","onUpdate:modelValue"])):c("v-if",!0),t.frequency.selected=="weekly"?(l(),g("div",Ge,[(l(!0),g(T,null,I(e.weekdays,(f,x)=>(l(),w(P,{key:x,title:f,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[x],"onUpdate:modelValue":H=>e.updateState(v,H,"frequency.weekly."+x)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):c("v-if",!0)]),_:2},1032,["title"]))),128))]),_:2},[s.endsWith("/0")?void 0:{name:"actions",fn:o(t=>[t.collapsed?c("v-if",!0):(l(),w(S,{key:0,class:"bg-danger clickable",onClick:v=>d.removeChargePointTemplateModal(s,v)},{default:o(()=>[n(b,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}]),1032,["title"]))),128))]))]),_:1}),n($,{formName:"chargePointInstallationForm",onSave:a[4]||(a[4]=r=>e.$emit("save")),onReset:a[5]||(a[5]=r=>e.$emit("reset")),onDefaults:a[6]||(a[6]=r=>e.$emit("defaults"))})])])],64)}const it=U(ve,[["render",Qe],["__scopeId","data-v-75fe5743"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ChargePointInstallation.vue"]]);export{it as default};
diff --git a/web/settings/assets/Chart-372a98ba.js b/web/settings/assets/Chart-73a93152.js
similarity index 97%
rename from web/settings/assets/Chart-372a98ba.js
rename to web/settings/assets/Chart-73a93152.js
index 70cc78adc8..aba5c0b49b 100644
--- a/web/settings/assets/Chart-372a98ba.js
+++ b/web/settings/assets/Chart-73a93152.js
@@ -1 +1 @@
-import{l as T,J as L,K as q,L as H,M as j,P as O,Q as M,F as z}from"./vendor-fortawesome-ad83e535.js";import{C as E}from"./index-cbcca7a0.js";import{C as V,p as B,a as F,L as P,b as N,P as $,c as J,T as X,i as Z,d as K,e as G,g as Q}from"./vendor-chartjs-dd3fd71e.js";import{_ as U,p,k as n,l as o,q as v,A as c,L as d,y as g,u as y,G as x,I as k,x as C,z as R}from"./vendor-94ac8c48.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";import"./vendor-luxon-1af9332f.js";T.add(L,q,H,j,O,M);V.register(B,F,P,N,$,J,X,Z,K);const Y={name:"OpenwbChart",components:{ChartjsLine:G,FontAwesomeIcon:z},mixins:[E],emits:["sendCommand"],props:{initialChartRange:{type:String,required:!1,validator:function(e){return["day","month","year"].indexOf(e)!==-1},default:"day"},initialDate:{type:String,required:!1,validator:function(e){return e.match(/^(([0-9]{4})(-[0-9]{2}(-[0-9]{2})?)?)?$/g)},default:""}},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/log/daily/#","openWB/log/monthly/#","openWB/log/yearly/#","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentDate:"",chartRange:"day",blockChartInit:!1,chartRequestDate:{day:"",month:"",year:""},datasetTemplates:{"counter-power_average":{label:"Zähler",unit:"kW",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_imported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_exported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 255, 105, 0.7)",backgroundColor:"rgba(0, 255, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-power_exported":{label:"PV",unit:"kW",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"inverter-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-energy_exported":{label:"PV",unit:"kWh",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"inverter-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-power_average":{label:"Speicher",unit:"kW",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"battery-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_imported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_exported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-soc":{label:"Speicher SoC",unit:"%",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-power_average":{label:"Ladepunkt",unit:"kW",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"charge-point-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported":{label:"Ladepunkt",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"charge-point-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"ev-soc":{label:"Fahrzeug SoC",unit:"%",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-power_average":{label:"SmartHome",unit:"kW",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_imported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_exported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-power_imported":{label:"Hausverbrauch",unit:"kW",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported":{label:"Hausverbrauch",unit:"kWh",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}}},chartOptions:{plugins:{title:{display:!1},tooltip:{enabled:!0,callbacks:{label:e=>`${e.dataset.label}: ${e.formattedValue} ${e.dataset.unit}`}},legend:{display:!0},zoom:{pan:{enabled:!0,mode:"x",threshold:5},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},elements:{point:{radius:2}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{x:{type:"time",time:{unit:"",tooltipFormat:""},display:!0,title:{display:!0,text:""},ticks:{source:"timestamp",font:{size:12},maxTicksLimit:0},grid:{}},y:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Leistung [kW]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y2:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Energie [kWh]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y3:{position:"right",type:"linear",display:"auto",suggestedMin:0,suggestedMax:100,title:{font:{size:12},display:!0,text:"SoC [%]"},grid:{display:!1},ticks:{font:{size:12},stepSize:10,maxTicksLimit:11}}}},chartDatasets:{datasets:[]}}},computed:{dateInput(){var e={title:"Datum",type:"date",min:"2018-01-01"};switch(this.chartRange){case"month":e={title:"Monat",type:"month",min:"2018-01"};break;case"year":e={title:"Jahr",type:"year",min:"2018"};break}return e},chartDate:{get(){var e=this.chartRequestDate.year;return this.chartRange!="year"&&(e=e+"-"+this.chartRequestDate.month),this.chartRange=="day"&&(e=e+"-"+this.chartRequestDate.day),e},set(e){let a=e.split("-");this.chartRequestDate.year=a[0],a.length>1?this.chartRequestDate.month=a[1]:this.chartRequestDate.month="",a.length>2?this.chartRequestDate.day=a[2]:this.chartRequestDate.day=""}},chartScaleX(){var e={unit:"minute",tooltipFormat:"DD T",text:"Zeit",maxTicksLimit:24};switch(this.chartRange){case"month":e={unit:"day",tooltipFormat:"DD",text:"Tag",maxTicksLimit:31};break;case"year":e={unit:"month",tooltipFormat:"LLLL yyyy",text:"Monat",maxTicksLimit:12};break}return e},commandData(){var e={date:this.chartRequestDate.year+this.chartRequestDate.month+this.chartRequestDate.day,day:this.chartRequestDate.year+this.chartRequestDate.month+this.chartRequestDate.day};switch(this.chartRange){case"month":e={date:this.chartRequestDate.year+this.chartRequestDate.month,month:this.chartRequestDate.year+this.chartRequestDate.month};break;case"year":e={date:this.chartRequestDate.year,year:this.chartRequestDate.year};break}return e},baseTopic(){var e="openWB/log/";switch(this.chartRange){case"day":e=e+"daily/";break;case"month":e=e+"monthly/";break;case"year":e=e+"yearly/";break}return e},chartDataRead(){return this.chartDataObject!=null},chartDataHasEntries(){return this.chartDataObject?this.chartDataObject.length>0:!1},chartTotals(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"totals"))return this.$store.state.mqtt[this.baseTopic+this.commandData.date].totals},chartDataObject(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]){var e=this.$store.state.mqtt[this.baseTopic+this.commandData.date];Object.prototype.hasOwnProperty.call(e,"entries")&&(e=e.entries);var a=JSON.parse(JSON.stringify(e)).map(r=>(r.timestamp=r.timestamp*1e3,r));return a}},chartData(){if(this.chartDataObject){var e=["pv","counter","bat","cp","sh","ev","hc"];const a=this.chartDataObject[this.chartDataObject.length-1];return a&&e.forEach(r=>{Object.prototype.hasOwnProperty.call(a,r)&&Object.entries(a[r]).forEach(([s,i])=>{Object.keys(i).forEach(t=>{this.initDataset(r,s,t)})})}),this.chartDatasets}}},methods:{handleChartClick(e){if(this.chartRange=="day")return;const a=this.$refs.myChart.chart;if(!a)return;const r=Q(a,e);if(!r.length)return;const{datasetIndex:s,index:i}=r[0],t=this.chartData.datasets[s].data[i].date;var l="",b="";switch(this.chartRange){case"month":l=t.substring(0,4)+"-"+t.substring(4,6)+"-"+t.substring(6),b="day";break;case"year":l=t.substring(0,4)+"-"+t.substring(4,6),b="month";break}this.blockChartInit=!0,this.chartDate=l,this.chartRange=b},getCardSubtype(e){switch(e){case"bat":return"warning";case"counter":return"danger";case"cp":return"primary";case"pv":return"success";case"sh":return"pink";default:return"secondary"}},getCardIcon(e){switch(e){case"bat":return["fas","car-battery"];case"counter":return["fas","gauge-high"];case"cp":return["fas","charging-station"];case"pv":return["fas","solar-panel"];case"sh":return["fas","house-signal"];case"hc":return["fas","house"];default:return}},getDatasetHidden(e,a){return console.debug("getDatasetHidden",e,a),!1},getTotalsLabel(e,a=void 0,r=void 0){var s="*test*";if(!a&&!r){switch(e){case"bat":return"Speicher";case"counter":return"Zähler";case"pv":return"Wechselrichter";case"cp":return"Ladepunkte";case"sh":return"SmartHome-Geräte";case"hc":return"Hausverbrauch";default:console.warn("unknown group key:",e)}return"*"+e+"*"}if(a&&!r){if(a=="all")return"Summe";if(Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names"))return this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[a]}if(a&&r){switch(e){case"bat":case"cp":switch(r){case"imported":case"energy_imported":return"Ladung";case"exported":case"energy_exported":return"Entladung";default:console.warn("unknown measurement key:",e,r)}break;case"counter":switch(r){case"imported":case"energy_imported":return"Bezug/Verbrauch";case"exported":case"energy_exported":return"Einspeisung/Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"pv":switch(r){case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"sh":switch(r){case"imported":case"energy_imported":return"Verbrauch";case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"hc":switch(r){case"imported":case"energy_imported":return"Verbrauch";default:console.warn("unknown measurement key:",e,r)}break;default:console.warn("unknown group key:",e)}return"*"+e+"+"+a+"+"+r+"*"}return s},getDatasetLabel(e,a,r,s){var i=["*"+s],t=[];if(a=="all")switch(e!=="hc"&&t.push("Summe"),e){case"pv":i=["PV"];break;case"bat":switch(i=["Speicher"],r){case"soc":i.push("SoC");break}break;case"cp":i=["Ladepunkte"];break;case"hc":i=["Hausverbrauch"]}else Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names")&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date].names,a)&&(i=[this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[a]]);switch(e){case"bat":case"ev":case"cp":switch(r){case"soc":t.push("SoC");break;case"energy_imported":t.push("Ladung");break;case"energy_exported":t.push("Entladung");break}break;case"counter":switch(r){case"energy_imported":t.push("Bezug/Verbrauch");break;case"energy_exported":t.push("Einspeisung/Erzeugung");break}break;case"sh":switch(r){case"energy_imported":t.push("Verbrauch");break;case"energy_exported":t.push("Erzeugung");break}break}return`${i.join(" ")}${t.length?" ("+t.join(", ")+")":""}`},getDatasetIndex(e){let a=this.chartDatasets.datasets.findIndex(r=>r.jsonKey==e);if(a!=-1)return a},addDataset(e,a,r,s){var i=e+"-"+r;if(this.datasetTemplates[i]){var t=JSON.parse(JSON.stringify(this.datasetTemplates[i]));return t.parsing.yAxisKey=s,t.jsonKey=s,t.data=this.chartDataObject,t.label=this.getDatasetLabel(e,a,r,s),t.labelSuffix!=null&&(t.label=t.label+t.labelSuffix),a=="all"&&(t.hidden=!1,delete t.stack),this.chartDatasets.datasets.push(t)-1}else console.warn("no matching template found for: "+s+" with template: "+i)},initDataset(e,a,r){var s=[];this.chartRange=="day"?s={counter:["power_average"],pv:["power_exported"],bat:["power_average","soc"],cp:["power_average"],sh:["power_average"],ev:["soc"],hc:["power_imported"]}:s={counter:["energy_imported","energy_exported"],pv:["energy_exported"],bat:["energy_imported","energy_exported"],cp:["energy_imported"],sh:["energy_imported","energy_exported"],ev:[],hc:["energy_imported"]};const i=e+"."+a+"."+r;if(s[e].includes(r)){var t=this.getDatasetIndex(i);const l=this.getDatasetHidden(e,a);t==null&&!l&&(t=this.addDataset(e,a,r,i)),t!=null&&l&&this.chartDatasets.datasets.splice(t,1)}else console.debug("skipping dataset:",i)},setupScaleX(){this.chartOptions.scales.x.time.unit=this.chartScaleX.unit,this.chartOptions.scales.x.time.tooltipFormat=this.chartScaleX.tooltipFormat,this.chartOptions.scales.x.title.text=this.chartScaleX.text,this.chartOptions.scales.x.ticks.maxTicksLimit=this.chartScaleX.maxTicksLimit},requestChart(){if(document.forms.chartForm.reportValidity()){this.setupScaleX(),this.chartDatasets.datasets=[];var a="";switch(this.chartRange){case"day":a="getDailyLog";break;case"month":a="getMonthlyLog";break;case"year":a="getYearlyLog";break}this.$emit("sendCommand",{command:a,data:this.commandData})}else{console.warn("form invalid");return}},clearChartData(){this.getWildcardIndexList(this.baseTopic+"+").forEach(e=>{this.$store.commit("removeTopic",`${this.baseTopic}${e}`)})},updateChart(){this.clearChartData(),this.requestChart()},init(){const e=new Date;this.currentDate=String(e.getFullYear()),this.chartRange!="year"&&(this.currentDate=this.currentDate+"-"+String(e.getMonth()+1).padStart(2,"0")),this.chartRange=="day"&&(this.currentDate=this.currentDate+"-"+String(e.getDate()).padStart(2,"0")),this.blockChartInit?this.blockChartInit=!1:this.initialDate==null||this.initialDate==""?this.chartDate=this.currentDate:this.chartDate=this.initialDate,this.updateChart()}},watch:{chartRange(){this.init()}},mounted(){this.init()}},ee={class:"chart"},te={name:"chartForm"},ae={key:1},re={key:1},ie={class:"openwb-chart"};function se(e,a,r,s,i,t){const l=p("openwb-base-select-input"),b=p("openwb-base-text-input"),m=p("openwb-base-card"),D=p("openwb-base-alert"),w=p("chartjs-line"),S=p("font-awesome-icon"),A=p("openwb-base-heading");return n(),o("div",ee,[v("form",te,[c(m,{title:"Filter",collapsible:!0,collapsed:!1},{default:d(()=>[c(l,{title:"Zeitraum",modelValue:i.chartRange,"onUpdate:modelValue":a[0]||(a[0]=u=>i.chartRange=u),options:[{value:"day",text:"Tag"},{value:"month",text:"Monat"},{value:"year",text:"Jahr"}]},null,8,["modelValue"]),c(b,{title:t.dateInput.title,subtype:t.dateInput.type,min:t.dateInput.min,max:i.currentDate,showQuickButtons:!0,modelValue:t.chartDate,"onUpdate:modelValue":[a[1]||(a[1]=u=>t.chartDate=u),a[2]||(a[2]=u=>t.updateChart())]},null,8,["title","subtype","min","max","modelValue"])]),_:1}),t.chartDataRead?(n(),o("div",ae,[t.chartDataHasEntries?(n(),o("div",re,[c(m,{title:"Diagramm",collapsible:!0,collapsed:!1},{default:d(()=>[v("div",ie,[c(w,{ref:"myChart",data:t.chartData,options:i.chartOptions,onClick:t.handleChartClick},null,8,["data","options","onClick"])])]),_:1}),c(m,{title:"Summen",collapsible:!0,collapsed:!0},{default:d(()=>[(n(!0),o(x,null,k(t.chartTotals,(u,h)=>(n(),o("div",{key:h},[Object.keys(u).length>0?(n(),g(m,{key:0,collapsible:!0,collapsed:!0,subtype:t.getCardSubtype(h)},{header:d(()=>[c(S,{"fixed-width":"",icon:t.getCardIcon(h)},null,8,["icon"]),y(" "+C(t.getTotalsLabel(h)),1)]),default:d(()=>[(n(!0),o(x,null,k(u,(I,f)=>(n(),o("div",{key:f},[h!=="hc"?(n(),g(A,{key:0},{default:d(()=>[y(C(t.getTotalsLabel(h,f)),1)]),_:2},1024)):R("v-if",!0),(n(!0),o(x,null,k(I,(W,_)=>(n(),o("div",{key:_},[c(b,{title:t.getTotalsLabel(h,f,_),readonly:"",class:"text-right",unit:"kWh","model-value":e.formatNumber(W/1e3,3)},null,8,["title","model-value"])]))),128))]))),128))]),_:2},1032,["subtype"])):R("v-if",!0)]))),128))]),_:1})])):(n(),g(D,{key:0,subtype:"info"},{default:d(()=>[y(" Es konnten keine Daten für diesen Zeitraum gefunden werden. ")]),_:1}))])):(n(),g(D,{key:0,subtype:"info"},{default:d(()=>[y(" Es wurden noch keine Daten abgerufen. ")]),_:1}))])])}const me=U(Y,[["render",se],["__scopeId","data-v-e00a7cd5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Chart.vue"]]);export{me as default};
+import{l as T,J as L,K as q,L as H,M as j,P as O,Q as M,F as z}from"./vendor-fortawesome-838df0c9.js";import{C as E}from"./index-f08a7306.js";import{C as V,p as B,a as F,L as P,b as N,P as $,c as J,T as X,i as Z,d as K,e as G,g as Q}from"./vendor-chartjs-93103a11.js";import{_ as U,p,k as n,l as o,q as v,A as c,L as d,y as g,u as y,G as x,I as k,x as C,z as R}from"./vendor-20bb207d.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";import"./vendor-luxon-1af9332f.js";T.add(L,q,H,j,O,M);V.register(B,F,P,N,$,J,X,Z,K);const Y={name:"OpenwbChart",components:{ChartjsLine:G,FontAwesomeIcon:z},mixins:[E],emits:["sendCommand"],props:{initialChartRange:{type:String,required:!1,validator:function(e){return["day","month","year"].indexOf(e)!==-1},default:"day"},initialDate:{type:String,required:!1,validator:function(e){return e.match(/^(([0-9]{4})(-[0-9]{2}(-[0-9]{2})?)?)?$/g)},default:""}},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/log/daily/#","openWB/log/monthly/#","openWB/log/yearly/#","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/vehicle/+/name"],currentDate:"",chartRange:"day",blockChartInit:!1,chartRequestDate:{day:"",month:"",year:""},datasetTemplates:{"counter-power_average":{label:"Zähler",unit:"kW",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_imported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(255, 0, 0, 0.7)",backgroundColor:"rgba(255, 10, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"counter-energy_exported":{label:"Zähler",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 255, 105, 0.7)",backgroundColor:"rgba(0, 255, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-power_exported":{label:"PV",unit:"kW",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"inverter-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"pv-energy_exported":{label:"PV",unit:"kWh",jsonKey:null,borderColor:"rgba(40, 167, 69, 0.7)",backgroundColor:"rgba(10, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"inverter-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-power_average":{label:"Speicher",unit:"kW",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"battery-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_imported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-energy_exported":{label:"Speicher",unit:"kWh",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"battery-exported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"bat-soc":{label:"Speicher SoC",unit:"%",jsonKey:null,borderColor:"rgba(253, 126, 20, 0.7)",backgroundColor:"rgba(200, 255, 13, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-power_average":{label:"Ladepunkt",unit:"kW",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",stack:"charge-point-power",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"cp-energy_imported":{label:"Ladepunkt",unit:"kWh",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",stack:"charge-point-imported",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"ev-soc":{label:"Fahrzeug SoC",unit:"%",jsonKey:null,borderColor:"rgba(0, 0, 255, 0.7)",backgroundColor:"rgba(0, 0, 255, 0.3)",borderDash:[10,5],hidden:!0,fill:!1,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",borderWidth:2,data:null,yAxisID:"y3",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-power_average":{label:"SmartHome",unit:"kW",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_imported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"sh-energy_exported":{label:"SmartHome",unit:"kWh",jsonKey:null,borderColor:"rgba(232, 62, 140, 0.7)",backgroundColor:"rgba(232, 72, 150, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!1,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-power_imported":{label:"Hausverbrauch",unit:"kW",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y",parsing:{xAxisKey:"timestamp",yAxisKey:null}},"hc-energy_imported":{label:"Hausverbrauch",unit:"kWh",jsonKey:null,borderColor:"rgba(120, 122, 124, 0.7)",backgroundColor:"rgba(120, 122, 124, 0.3)",fill:!0,pointStyle:"circle",pointRadius:0,pointHoverRadius:4,cubicInterpolationMode:"monotone",hidden:!0,borderWidth:1,data:null,yAxisID:"y2",parsing:{xAxisKey:"timestamp",yAxisKey:null}}},chartOptions:{plugins:{title:{display:!1},tooltip:{enabled:!0,callbacks:{label:e=>`${e.dataset.label}: ${e.formattedValue} ${e.dataset.unit}`}},legend:{display:!0},zoom:{pan:{enabled:!0,mode:"x",threshold:5},zoom:{wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}},elements:{point:{radius:2}},responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},scales:{x:{type:"time",time:{unit:"",tooltipFormat:""},display:!0,title:{display:!0,text:""},ticks:{source:"timestamp",font:{size:12},maxTicksLimit:0},grid:{}},y:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Leistung [kW]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y2:{position:"left",type:"linear",display:"auto",suggestedMin:0,suggestedMax:0,title:{font:{size:12},display:!0,text:"Energie [kWh]"},grid:{},ticks:{font:{size:12},stepSize:.2,maxTicksLimit:11}},y3:{position:"right",type:"linear",display:"auto",suggestedMin:0,suggestedMax:100,title:{font:{size:12},display:!0,text:"SoC [%]"},grid:{display:!1},ticks:{font:{size:12},stepSize:10,maxTicksLimit:11}}}},chartDatasets:{datasets:[]}}},computed:{dateInput(){var e={title:"Datum",type:"date",min:"2018-01-01"};switch(this.chartRange){case"month":e={title:"Monat",type:"month",min:"2018-01"};break;case"year":e={title:"Jahr",type:"year",min:"2018"};break}return e},chartDate:{get(){var e=this.chartRequestDate.year;return this.chartRange!="year"&&(e=e+"-"+this.chartRequestDate.month),this.chartRange=="day"&&(e=e+"-"+this.chartRequestDate.day),e},set(e){let a=e.split("-");this.chartRequestDate.year=a[0],a.length>1?this.chartRequestDate.month=a[1]:this.chartRequestDate.month="",a.length>2?this.chartRequestDate.day=a[2]:this.chartRequestDate.day=""}},chartScaleX(){var e={unit:"minute",tooltipFormat:"DD T",text:"Zeit",maxTicksLimit:24};switch(this.chartRange){case"month":e={unit:"day",tooltipFormat:"DD",text:"Tag",maxTicksLimit:31};break;case"year":e={unit:"month",tooltipFormat:"LLLL yyyy",text:"Monat",maxTicksLimit:12};break}return e},commandData(){var e={date:this.chartRequestDate.year+this.chartRequestDate.month+this.chartRequestDate.day,day:this.chartRequestDate.year+this.chartRequestDate.month+this.chartRequestDate.day};switch(this.chartRange){case"month":e={date:this.chartRequestDate.year+this.chartRequestDate.month,month:this.chartRequestDate.year+this.chartRequestDate.month};break;case"year":e={date:this.chartRequestDate.year,year:this.chartRequestDate.year};break}return e},baseTopic(){var e="openWB/log/";switch(this.chartRange){case"day":e=e+"daily/";break;case"month":e=e+"monthly/";break;case"year":e=e+"yearly/";break}return e},chartDataRead(){return this.chartDataObject!=null},chartDataHasEntries(){return this.chartDataObject?this.chartDataObject.length>0:!1},chartTotals(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"totals"))return this.$store.state.mqtt[this.baseTopic+this.commandData.date].totals},chartDataObject(){if(this.$store.state.mqtt[this.baseTopic+this.commandData.date]){var e=this.$store.state.mqtt[this.baseTopic+this.commandData.date];Object.prototype.hasOwnProperty.call(e,"entries")&&(e=e.entries);var a=JSON.parse(JSON.stringify(e)).map(r=>(r.timestamp=r.timestamp*1e3,r));return a}},chartData(){if(this.chartDataObject){var e=["pv","counter","bat","cp","sh","ev","hc"];const a=this.chartDataObject[this.chartDataObject.length-1];return a&&e.forEach(r=>{Object.prototype.hasOwnProperty.call(a,r)&&Object.entries(a[r]).forEach(([s,i])=>{Object.keys(i).forEach(t=>{this.initDataset(r,s,t)})})}),this.chartDatasets}}},methods:{handleChartClick(e){if(this.chartRange=="day")return;const a=this.$refs.myChart.chart;if(!a)return;const r=Q(a,e);if(!r.length)return;const{datasetIndex:s,index:i}=r[0],t=this.chartData.datasets[s].data[i].date;var l="",b="";switch(this.chartRange){case"month":l=t.substring(0,4)+"-"+t.substring(4,6)+"-"+t.substring(6),b="day";break;case"year":l=t.substring(0,4)+"-"+t.substring(4,6),b="month";break}this.blockChartInit=!0,this.chartDate=l,this.chartRange=b},getCardSubtype(e){switch(e){case"bat":return"warning";case"counter":return"danger";case"cp":return"primary";case"pv":return"success";case"sh":return"pink";default:return"secondary"}},getCardIcon(e){switch(e){case"bat":return["fas","car-battery"];case"counter":return["fas","gauge-high"];case"cp":return["fas","charging-station"];case"pv":return["fas","solar-panel"];case"sh":return["fas","house-signal"];case"hc":return["fas","house"];default:return}},getDatasetHidden(e,a){return console.debug("getDatasetHidden",e,a),!1},getTotalsLabel(e,a=void 0,r=void 0){var s="*test*";if(!a&&!r){switch(e){case"bat":return"Speicher";case"counter":return"Zähler";case"pv":return"Wechselrichter";case"cp":return"Ladepunkte";case"sh":return"SmartHome-Geräte";case"hc":return"Hausverbrauch";default:console.warn("unknown group key:",e)}return"*"+e+"*"}if(a&&!r){if(a=="all")return"Summe";if(Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names"))return this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[a]}if(a&&r){switch(e){case"bat":case"cp":switch(r){case"imported":case"energy_imported":return"Ladung";case"exported":case"energy_exported":return"Entladung";default:console.warn("unknown measurement key:",e,r)}break;case"counter":switch(r){case"imported":case"energy_imported":return"Bezug/Verbrauch";case"exported":case"energy_exported":return"Einspeisung/Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"pv":switch(r){case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"sh":switch(r){case"imported":case"energy_imported":return"Verbrauch";case"exported":case"energy_exported":return"Erzeugung";default:console.warn("unknown measurement key:",e,r)}break;case"hc":switch(r){case"imported":case"energy_imported":return"Verbrauch";default:console.warn("unknown measurement key:",e,r)}break;default:console.warn("unknown group key:",e)}return"*"+e+"+"+a+"+"+r+"*"}return s},getDatasetLabel(e,a,r,s){var i=["*"+s],t=[];if(a=="all")switch(e!=="hc"&&t.push("Summe"),e){case"pv":i=["PV"];break;case"bat":switch(i=["Speicher"],r){case"soc":i.push("SoC");break}break;case"cp":i=["Ladepunkte"];break;case"hc":i=["Hausverbrauch"]}else Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date],"names")&&Object.prototype.hasOwnProperty.call(this.$store.state.mqtt[this.baseTopic+this.commandData.date].names,a)&&(i=[this.$store.state.mqtt[this.baseTopic+this.commandData.date].names[a]]);switch(e){case"bat":case"ev":case"cp":switch(r){case"soc":t.push("SoC");break;case"energy_imported":t.push("Ladung");break;case"energy_exported":t.push("Entladung");break}break;case"counter":switch(r){case"energy_imported":t.push("Bezug/Verbrauch");break;case"energy_exported":t.push("Einspeisung/Erzeugung");break}break;case"sh":switch(r){case"energy_imported":t.push("Verbrauch");break;case"energy_exported":t.push("Erzeugung");break}break}return`${i.join(" ")}${t.length?" ("+t.join(", ")+")":""}`},getDatasetIndex(e){let a=this.chartDatasets.datasets.findIndex(r=>r.jsonKey==e);if(a!=-1)return a},addDataset(e,a,r,s){var i=e+"-"+r;if(this.datasetTemplates[i]){var t=JSON.parse(JSON.stringify(this.datasetTemplates[i]));return t.parsing.yAxisKey=s,t.jsonKey=s,t.data=this.chartDataObject,t.label=this.getDatasetLabel(e,a,r,s),t.labelSuffix!=null&&(t.label=t.label+t.labelSuffix),a=="all"&&(t.hidden=!1,delete t.stack),this.chartDatasets.datasets.push(t)-1}else console.warn("no matching template found for: "+s+" with template: "+i)},initDataset(e,a,r){var s=[];this.chartRange=="day"?s={counter:["power_average"],pv:["power_exported"],bat:["power_average","soc"],cp:["power_average"],sh:["power_average"],ev:["soc"],hc:["power_imported"]}:s={counter:["energy_imported","energy_exported"],pv:["energy_exported"],bat:["energy_imported","energy_exported"],cp:["energy_imported"],sh:["energy_imported","energy_exported"],ev:[],hc:["energy_imported"]};const i=e+"."+a+"."+r;if(s[e].includes(r)){var t=this.getDatasetIndex(i);const l=this.getDatasetHidden(e,a);t==null&&!l&&(t=this.addDataset(e,a,r,i)),t!=null&&l&&this.chartDatasets.datasets.splice(t,1)}else console.debug("skipping dataset:",i)},setupScaleX(){this.chartOptions.scales.x.time.unit=this.chartScaleX.unit,this.chartOptions.scales.x.time.tooltipFormat=this.chartScaleX.tooltipFormat,this.chartOptions.scales.x.title.text=this.chartScaleX.text,this.chartOptions.scales.x.ticks.maxTicksLimit=this.chartScaleX.maxTicksLimit},requestChart(){if(document.forms.chartForm.reportValidity()){this.setupScaleX(),this.chartDatasets.datasets=[];var a="";switch(this.chartRange){case"day":a="getDailyLog";break;case"month":a="getMonthlyLog";break;case"year":a="getYearlyLog";break}this.$emit("sendCommand",{command:a,data:this.commandData})}else{console.warn("form invalid");return}},clearChartData(){this.getWildcardIndexList(this.baseTopic+"+").forEach(e=>{this.$store.commit("removeTopic",`${this.baseTopic}${e}`)})},updateChart(){this.clearChartData(),this.requestChart()},init(){const e=new Date;this.currentDate=String(e.getFullYear()),this.chartRange!="year"&&(this.currentDate=this.currentDate+"-"+String(e.getMonth()+1).padStart(2,"0")),this.chartRange=="day"&&(this.currentDate=this.currentDate+"-"+String(e.getDate()).padStart(2,"0")),this.blockChartInit?this.blockChartInit=!1:this.initialDate==null||this.initialDate==""?this.chartDate=this.currentDate:this.chartDate=this.initialDate,this.updateChart()}},watch:{chartRange(){this.init()}},mounted(){this.init()}},ee={class:"chart"},te={name:"chartForm"},ae={key:1},re={key:1},ie={class:"openwb-chart"};function se(e,a,r,s,i,t){const l=p("openwb-base-select-input"),b=p("openwb-base-text-input"),m=p("openwb-base-card"),D=p("openwb-base-alert"),w=p("chartjs-line"),S=p("font-awesome-icon"),A=p("openwb-base-heading");return n(),o("div",ee,[v("form",te,[c(m,{title:"Filter",collapsible:!0,collapsed:!1},{default:d(()=>[c(l,{title:"Zeitraum",modelValue:i.chartRange,"onUpdate:modelValue":a[0]||(a[0]=u=>i.chartRange=u),options:[{value:"day",text:"Tag"},{value:"month",text:"Monat"},{value:"year",text:"Jahr"}]},null,8,["modelValue"]),c(b,{title:t.dateInput.title,subtype:t.dateInput.type,min:t.dateInput.min,max:i.currentDate,showQuickButtons:!0,modelValue:t.chartDate,"onUpdate:modelValue":[a[1]||(a[1]=u=>t.chartDate=u),a[2]||(a[2]=u=>t.updateChart())]},null,8,["title","subtype","min","max","modelValue"])]),_:1}),t.chartDataRead?(n(),o("div",ae,[t.chartDataHasEntries?(n(),o("div",re,[c(m,{title:"Diagramm",collapsible:!0,collapsed:!1},{default:d(()=>[v("div",ie,[c(w,{ref:"myChart",data:t.chartData,options:i.chartOptions,onClick:t.handleChartClick},null,8,["data","options","onClick"])])]),_:1}),c(m,{title:"Summen",collapsible:!0,collapsed:!0},{default:d(()=>[(n(!0),o(x,null,k(t.chartTotals,(u,h)=>(n(),o("div",{key:h},[Object.keys(u).length>0?(n(),g(m,{key:0,collapsible:!0,collapsed:!0,subtype:t.getCardSubtype(h)},{header:d(()=>[c(S,{"fixed-width":"",icon:t.getCardIcon(h)},null,8,["icon"]),y(" "+C(t.getTotalsLabel(h)),1)]),default:d(()=>[(n(!0),o(x,null,k(u,(I,f)=>(n(),o("div",{key:f},[h!=="hc"?(n(),g(A,{key:0},{default:d(()=>[y(C(t.getTotalsLabel(h,f)),1)]),_:2},1024)):R("v-if",!0),(n(!0),o(x,null,k(I,(W,_)=>(n(),o("div",{key:_},[c(b,{title:t.getTotalsLabel(h,f,_),readonly:"",class:"text-right",unit:"kWh","model-value":e.formatNumber(W/1e3,3)},null,8,["title","model-value"])]))),128))]))),128))]),_:2},1032,["subtype"])):R("v-if",!0)]))),128))]),_:1})])):(n(),g(D,{key:0,subtype:"info"},{default:d(()=>[y(" Es konnten keine Daten für diesen Zeitraum gefunden werden. ")]),_:1}))])):(n(),g(D,{key:0,subtype:"info"},{default:d(()=>[y(" Es wurden noch keine Daten abgerufen. ")]),_:1}))])])}const me=U(Y,[["render",se],["__scopeId","data-v-e00a7cd5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Chart.vue"]]);export{me as default};
diff --git a/web/settings/assets/CloudConfig-fb035176.js b/web/settings/assets/CloudConfig-4d98a70d.js
similarity index 96%
rename from web/settings/assets/CloudConfig-fb035176.js
rename to web/settings/assets/CloudConfig-4d98a70d.js
index d0578f7eed..d96c89a506 100644
--- a/web/settings/assets/CloudConfig-fb035176.js
+++ b/web/settings/assets/CloudConfig-4d98a70d.js
@@ -1,4 +1,4 @@
-import{C as W}from"./index-cbcca7a0.js";import{_ as S,p as m,k as l,l as c,z as a,A as o,L as t,q as g,y as p,a2 as y,G as D,u as s,n as k}from"./vendor-94ac8c48.js";import"./vendor-fortawesome-ad83e535.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";const Z={name:"OpenwbCloudConfig",mixins:[W],emits:["sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged","openWB/system/mqtt/bridge/+"],enableNewCloudButton:!0,newCloudData:{email:"",username:"",partner:!1},enableCloudConnectButton:!0,connectCloudData:{username:"",password:"",partner:!1},enableRemoveCloudButton:!0,showCloudRemoveModal:!1}},computed:{cloudBridge:{get(){let u=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[e,B]of Object.entries(u))B.remote.is_openwb_cloud||delete u[e];return u}},cloudBridgeKey:{get(){for(const[u,e]of Object.entries(this.cloudBridge))if(e.remote.is_openwb_cloud)return u}},cloudSettings:{get(){return{username:this.cloudBridge[this.cloudBridgeKey].remote.username,password:this.cloudBridge[this.cloudBridgeKey].remote.password,partner:this.cloudBridge[this.cloudBridgeKey].access?this.cloudBridge[this.cloudBridgeKey].access.partner:!1}}}},methods:{getMqttBridgeIndex(u){return parseInt(u.match(/(?:\/)(\d+)$/)[1])},createCloud(){document.forms.cloudConfigCreateForm.reportValidity()&&(this.$emit("sendCommand",{command:"initCloud",data:this.newCloudData}),this.enableNewCloudButton=!1)},connectCloud(){document.forms.cloudConfigConnectForm.reportValidity()&&(this.$emit("sendCommand",{command:"connectCloud",data:this.connectCloudData}),this.enableCloudConnectButton=!1)},removeCloudModal(u){u.stopPropagation(),this.showCloudRemoveModal=!0},removeCloud(u){this.showCloudRemoveModal=!1,u=="confirm"&&(console.info("request removal of cloud"),this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:this.getMqttBridgeIndex(this.cloudBridgeKey)}}),this.enableCloudConnectButton=!0)}}},q={class:"cloud-config"},z={key:1},M={key:1,name:"cloudConfigCreateForm"},N=g("a",{href:"mailto:support@openwb.de",subject:"Cloud Zugangsdaten"}," support@openwb.de ",-1),x={key:0},K={key:1},R={class:"row justify-content-center"},A={key:2,name:"cloudConfigConnectForm"},P={key:0},T={key:1},U={class:"row justify-content-center"},F={key:3,name:"cloudConfigured"},j=g("span",null,[s(" Mit diesen Zugangsdaten können Sie sich in der "),g("a",{href:"https://web.openwb.de/",target:"_blank",rel:"noopener noreferrer"},"openWB Cloud "),s(" anmelden. ")],-1),E=g("hr",null,null,-1),L={class:"row justify-content-center"};function I(u,e,B,O,d,r){const h=m("openwb-base-modal-dialog"),i=m("openwb-base-alert"),_=m("router-link"),b=m("openwb-base-text-input"),f=m("openwb-base-button-group-input"),C=m("openwb-base-click-button"),w=m("openwb-base-card"),v=m("openwb-base-heading"),V=m("openwb-base-submit-buttons");return l(),c(D,null,[a(" modal dialogs "),o(h,{show:d.showCloudRemoveModal,title:"Cloud Zugang löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=n=>r.removeCloud(n))},{default:t(()=>[s(" Wollen Sie den vorhandenen Cloud Zugang wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ")]),_:1},8,["show"]),a(" main content "),g("div",q,[o(i,{subtype:"danger"},{default:t(()=>[s(" Für diese Version gibt es noch keine Weboberfläche in der Cloud! Wenn der Zugang eingerichtet wurde, können z. B. Daten mit einem MQTT-Client von dem MQTT-Broker web.openwb.de abgerufen werden. Ebenfalls kann ein Support-Tunnel aufgebaut werden. Weitere Funktionen sind in der Entwicklung. ")]),_:1}),u.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]!==!0?(l(),p(i,{key:0,subtype:"danger"},{default:t(()=>[s(" Sie müssen der "),o(_,{to:"/System/LegalSettings"},{default:t(()=>[s(" Datenschutzerklärung ")]),_:1}),s(" zustimmen, um die openWB Cloud nutzen zu können. ")]),_:1})):(l(),c("div",z,[o(i,{subtype:"success"},{default:t(()=>[s(" Sie haben der "),o(_,{to:"/System/LegalSettings"},{default:t(()=>[s(" Datenschutzerklärung ")]),_:1}),s(" zugestimmt und können die openWB Cloud nutzen. ")]),_:1}),d.enableRemoveCloudButton?a("v-if",!0):(l(),p(i,{key:0,subtype:"warning"},{default:t(()=>[s(" Der Zugang wurde entfernt. Bitte starten Sie die openWB neu, um die Änderungen anzuwenden! ")]),_:1})),r.cloudBridgeKey?a("v-if",!0):(l(),c("form",M,[o(w,{title:"Neuen Zugang erstellen"},y({default:t(()=>[o(i,{subtype:"warning"},{default:t(()=>[s(" Derzeit können keine neuen Zugänge für die openWB Cloud angelegt werden. Bitte nutzen Sie die in/an der openWB notierten Zugangsdaten im unteren Bereich dieser Seite. Wenn bei einer gekauften openWB keine Zugangsdaten vorhanden sind, schreiben Sie bitte eine Mail unter Angabe der Bestell- und/oder Seriennummer an "),N,s(" . ")]),_:1}),u.$store.state.mqtt["openWB/general/extern"]===!0?(l(),c("div",x,[o(i,{subtype:"info"},{default:t(()=>[s(' Diese openWB befindet sich im Steuerungsmodus "secondary". Bitte richten Sie die openWB Cloud auf der regelnden openWB ein. ')]),_:1})])):(l(),c("div",K,[o(b,{title:"Benutzername",required:"",subtype:"user",pattern:"[a-zA-Z]+",modelValue:d.newCloudData.username,"onUpdate:modelValue":e[1]||(e[1]=n=>d.newCloudData.username=n),disabled:""},null,8,["modelValue"]),o(b,{title:"E-Mail",required:"",subtype:"email",modelValue:d.newCloudData.email,"onUpdate:modelValue":e[2]||(e[2]=n=>d.newCloudData.email=n),disabled:""},null,8,["modelValue"]),o(f,{disabled:"",title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],modelValue:d.newCloudData.partner,"onUpdate:modelValue":e[3]||(e[3]=n=>d.newCloudData.partner=n)},{help:t(()=>[s(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ")]),_:1},8,["modelValue"])]))]),_:2},[u.$store.state.mqtt["openWB/general/extern"]===!1&&u.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:t(()=>[g("div",R,[a(` <openwb-base-click-button
+import{C as W}from"./index-f08a7306.js";import{_ as S,p as m,k as l,l as c,z as a,A as o,L as t,q as g,y as p,a2 as y,G as D,u as s,n as k}from"./vendor-20bb207d.js";import"./vendor-fortawesome-838df0c9.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";const Z={name:"OpenwbCloudConfig",mixins:[W],emits:["sendCommand"],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged","openWB/system/mqtt/bridge/+"],enableNewCloudButton:!0,newCloudData:{email:"",username:"",partner:!1},enableCloudConnectButton:!0,connectCloudData:{username:"",password:"",partner:!1},enableRemoveCloudButton:!0,showCloudRemoveModal:!1}},computed:{cloudBridge:{get(){let u=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[e,B]of Object.entries(u))B.remote.is_openwb_cloud||delete u[e];return u}},cloudBridgeKey:{get(){for(const[u,e]of Object.entries(this.cloudBridge))if(e.remote.is_openwb_cloud)return u}},cloudSettings:{get(){return{username:this.cloudBridge[this.cloudBridgeKey].remote.username,password:this.cloudBridge[this.cloudBridgeKey].remote.password,partner:this.cloudBridge[this.cloudBridgeKey].access?this.cloudBridge[this.cloudBridgeKey].access.partner:!1}}}},methods:{getMqttBridgeIndex(u){return parseInt(u.match(/(?:\/)(\d+)$/)[1])},createCloud(){document.forms.cloudConfigCreateForm.reportValidity()&&(this.$emit("sendCommand",{command:"initCloud",data:this.newCloudData}),this.enableNewCloudButton=!1)},connectCloud(){document.forms.cloudConfigConnectForm.reportValidity()&&(this.$emit("sendCommand",{command:"connectCloud",data:this.connectCloudData}),this.enableCloudConnectButton=!1)},removeCloudModal(u){u.stopPropagation(),this.showCloudRemoveModal=!0},removeCloud(u){this.showCloudRemoveModal=!1,u=="confirm"&&(console.info("request removal of cloud"),this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:this.getMqttBridgeIndex(this.cloudBridgeKey)}}),this.enableCloudConnectButton=!0)}}},q={class:"cloud-config"},z={key:1},M={key:1,name:"cloudConfigCreateForm"},N=g("a",{href:"mailto:support@openwb.de",subject:"Cloud Zugangsdaten"}," support@openwb.de ",-1),x={key:0},K={key:1},R={class:"row justify-content-center"},A={key:2,name:"cloudConfigConnectForm"},P={key:0},T={key:1},U={class:"row justify-content-center"},F={key:3,name:"cloudConfigured"},j=g("span",null,[s(" Mit diesen Zugangsdaten können Sie sich in der "),g("a",{href:"https://web.openwb.de/",target:"_blank",rel:"noopener noreferrer"},"openWB Cloud "),s(" anmelden. ")],-1),E=g("hr",null,null,-1),L={class:"row justify-content-center"};function I(u,e,B,O,d,r){const h=m("openwb-base-modal-dialog"),i=m("openwb-base-alert"),_=m("router-link"),b=m("openwb-base-text-input"),f=m("openwb-base-button-group-input"),C=m("openwb-base-click-button"),w=m("openwb-base-card"),v=m("openwb-base-heading"),V=m("openwb-base-submit-buttons");return l(),c(D,null,[a(" modal dialogs "),o(h,{show:d.showCloudRemoveModal,title:"Cloud Zugang löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:e[0]||(e[0]=n=>r.removeCloud(n))},{default:t(()=>[s(" Wollen Sie den vorhandenen Cloud Zugang wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ")]),_:1},8,["show"]),a(" main content "),g("div",q,[o(i,{subtype:"danger"},{default:t(()=>[s(" Für diese Version gibt es noch keine Weboberfläche in der Cloud! Wenn der Zugang eingerichtet wurde, können z. B. Daten mit einem MQTT-Client von dem MQTT-Broker web.openwb.de abgerufen werden. Ebenfalls kann ein Support-Tunnel aufgebaut werden. Weitere Funktionen sind in der Entwicklung. ")]),_:1}),u.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]!==!0?(l(),p(i,{key:0,subtype:"danger"},{default:t(()=>[s(" Sie müssen der "),o(_,{to:"/System/LegalSettings"},{default:t(()=>[s(" Datenschutzerklärung ")]),_:1}),s(" zustimmen, um die openWB Cloud nutzen zu können. ")]),_:1})):(l(),c("div",z,[o(i,{subtype:"success"},{default:t(()=>[s(" Sie haben der "),o(_,{to:"/System/LegalSettings"},{default:t(()=>[s(" Datenschutzerklärung ")]),_:1}),s(" zugestimmt und können die openWB Cloud nutzen. ")]),_:1}),d.enableRemoveCloudButton?a("v-if",!0):(l(),p(i,{key:0,subtype:"warning"},{default:t(()=>[s(" Der Zugang wurde entfernt. Bitte starten Sie die openWB neu, um die Änderungen anzuwenden! ")]),_:1})),r.cloudBridgeKey?a("v-if",!0):(l(),c("form",M,[o(w,{title:"Neuen Zugang erstellen"},y({default:t(()=>[o(i,{subtype:"warning"},{default:t(()=>[s(" Derzeit können keine neuen Zugänge für die openWB Cloud angelegt werden. Bitte nutzen Sie die in/an der openWB notierten Zugangsdaten im unteren Bereich dieser Seite. Wenn bei einer gekauften openWB keine Zugangsdaten vorhanden sind, schreiben Sie bitte eine Mail unter Angabe der Bestell- und/oder Seriennummer an "),N,s(" . ")]),_:1}),u.$store.state.mqtt["openWB/general/extern"]===!0?(l(),c("div",x,[o(i,{subtype:"info"},{default:t(()=>[s(' Diese openWB befindet sich im Steuerungsmodus "secondary". Bitte richten Sie die openWB Cloud auf der regelnden openWB ein. ')]),_:1})])):(l(),c("div",K,[o(b,{title:"Benutzername",required:"",subtype:"user",pattern:"[a-zA-Z]+",modelValue:d.newCloudData.username,"onUpdate:modelValue":e[1]||(e[1]=n=>d.newCloudData.username=n),disabled:""},null,8,["modelValue"]),o(b,{title:"E-Mail",required:"",subtype:"email",modelValue:d.newCloudData.email,"onUpdate:modelValue":e[2]||(e[2]=n=>d.newCloudData.email=n),disabled:""},null,8,["modelValue"]),o(f,{disabled:"",title:"Zugang für Partner",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],modelValue:d.newCloudData.partner,"onUpdate:modelValue":e[3]||(e[3]=n=>d.newCloudData.partner=n)},{help:t(()=>[s(" Wenn diese openWB über einen Partner erworben wurde, kann hier ein Support-Zugang für diesen freigegeben werden. ")]),_:1},8,["modelValue"])]))]),_:2},[u.$store.state.mqtt["openWB/general/extern"]===!1&&u.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:t(()=>[g("div",R,[a(` <openwb-base-click-button
 								class="col-4"
 								:class="
 									enableNewCloudButton
diff --git a/web/settings/assets/DataManagement-f7a0955c.js b/web/settings/assets/DataManagement-f38afa86.js
similarity index 96%
rename from web/settings/assets/DataManagement-f7a0955c.js
rename to web/settings/assets/DataManagement-f38afa86.js
index a38c1651da..0143047e70 100644
--- a/web/settings/assets/DataManagement-f7a0955c.js
+++ b/web/settings/assets/DataManagement-f38afa86.js
@@ -1 +1 @@
-import{l as z,a0 as V,a1 as H,a2 as j,a3 as A,a4 as P,F as R}from"./vendor-fortawesome-ad83e535.js";import{_ as D,C as N}from"./index-cbcca7a0.js";import{_ as U}from"./dynamic-import-helper-be004503.js";import{_ as C,p as d,k as f,l as _,A as o,L as u,u as a,x as k,q as n,a0 as E,y as W,a1 as q,z as S,n as v,G as T,I as F,a2 as G}from"./vendor-94ac8c48.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";const I={name:"BackupCloudConfigFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},backupCloudType:String},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},Z={class:"backup-cloud-fallback"};function K(t,e,r,c,s,i){const p=d("openwb-base-alert"),m=d("openwb-base-textarea");return f(),_("div",Z,[o(p,{subtype:"warning"},{default:u(()=>[a(' Es wurde keine Konfigurationsseite für die Backup-Cloud "'+k(r.backupCloudType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),o(m,{title:"Konfiguration",subtype:"json","model-value":r.configuration,"onUpdate:modelValue":e[0]||(e[0]=h=>i.updateConfiguration(h,"configuration"))},{help:u(()=>[a(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),o(p,{subtype:"info"},{default:u(()=>[n("pre",null,k(JSON.stringify(r.configuration,void 0,2)),1)]),_:1})])}const $=C(I,[["render",K],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudConfigFallback.vue"]]),J={name:"OpenwbBackupCloudProxy",emits:["update:configuration"],props:{backupCloudType:{type:String,required:!0},configuration:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading backup cloud: ${this.backupCloudType}`),E({loader:()=>U(Object.assign({"./nextcloud/backup_cloud.vue":()=>D(()=>import("./backup_cloud-e0f3013d.js"),["assets/backup_cloud-e0f3013d.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./onedrive/backup_cloud.vue":()=>D(()=>import("./backup_cloud-f1ce5010.js"),["assets/backup_cloud-f1ce5010.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"])}),`./${this.backupCloudType}/backup_cloud.vue`),errorComponent:$})}},methods:{updateConfiguration(t){this.$emit("update:configuration",t)}}};function Q(t,e,r,c,s,i){return f(),W(q(i.myComponent),{configuration:r.configuration,backupCloudType:r.backupCloudType,"onUpdate:configuration":e[0]||(e[0]=p=>i.updateConfiguration(p))},null,40,["configuration","backupCloudType"])}const X=C(J,[["render",Q],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudProxy.vue"]]);z.add(V,H,j,A,P);const Y={name:"OpenwbSystem",mixins:[N],emits:["sendCommand"],components:{FontAwesomeIcon:R,OpenwbBackupCloudProxy:X},data(){return{mqttTopicsToSubscribe:["openWB/system/configurable/backup_clouds","openWB/system/backup_cloud/config","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/vehicle/+/name","openWB/LegacySmartHome/config/get/Devices/+/device_configured","openWB/LegacySmartHome/config/get/Devices/+/device_name"],warningAcknowledged:!1,selectedRestoreFile:void 0,restoreUploadDone:!1,selectedDataMigrationFile:void 0,dataMigrationUploadDone:!1,dataMigrationConfig:[{sectionName:"Ladepunkte",sectionComponents:[{key:"cp1",label:"Ladepunkt 1",validTypes:["chargePoint"]},{key:"cp2",label:"Ladepunkt 2",validTypes:["chargePoint"]},{key:"cp3",label:"Ladepunkt 3",validTypes:["chargePoint"]},{key:"cp4",label:"Ladepunkt 4",validTypes:["chargePoint"]},{key:"cp5",label:"Ladepunkt 5",validTypes:["chargePoint"]},{key:"cp6",label:"Ladepunkt 6",validTypes:["chargePoint"]},{key:"cp7",label:"Ladepunkt 7",validTypes:["chargePoint"]},{key:"cp8",label:"Ladepunkt 8",validTypes:["chargePoint"]}]},{sectionName:"Zähler",sectionComponents:[{key:"evu",label:"EVU",validTypes:["counter"]},{key:"consumer1",label:"Verbraucher 1",validTypes:["counter"]},{key:"consumer2",label:"Verbraucher 2",validTypes:["counter"]},{key:"consumer3",label:"Verbraucher 3",validTypes:["counter"]}]},{sectionName:"Wechselrichter",sectionComponents:[{key:"pvAll",label:"Wechselrichter (Summe)",validTypes:["inverter"],help:"Die 1.9er Version von openWB speichert lediglich die Summen-Leistung aller Wechselrichter."}]},{sectionName:"Batteriespeicher",sectionComponents:[{key:"bat",label:"Speicher 1",validTypes:["battery"]}]},{sectionName:"Fahrzeuge",sectionComponents:[{key:"ev1",label:"Fahrzeug von Ladepunkt 1",validTypes:["vehicle"]},{key:"ev2",label:"Fahrzeug von Ladepunkt 2",validTypes:["vehicle"]}]},{sectionName:"SmartHome 2.0",sectionComponents:[{key:"sh1",label:"Gerät 1",validTypes:["smartHome"]},{key:"sh2",label:"Gerät 2",validTypes:["smartHome"]},{key:"sh3",label:"Gerät 3",validTypes:["smartHome"]},{key:"sh4",label:"Gerät 4",validTypes:["smartHome"]},{key:"sh5",label:"Gerät 5",validTypes:["smartHome"]},{key:"sh6",label:"Gerät 6",validTypes:["smartHome"]},{key:"sh7",label:"Gerät 7",validTypes:["smartHome"]},{key:"sh8",label:"Gerät 8",validTypes:["smartHome"]},{key:"sh9",label:"Gerät 9",validTypes:["smartHome"]},{key:"sh10",label:"Gerät 10",validTypes:["smartHome"]}]}],dataMigrationMapping:{cp1:void 0,cp2:void 0,cp3:void 0,cp4:void 0,cp5:void 0,cp6:void 0,cp7:void 0,cp8:void 0,evu:void 0,pvAll:void 0,bat:void 0,consumer1:void 0,consumer2:void 0,consumer3:void 0,sh1:void 0,sh2:void 0,sh3:void 0,sh4:void 0,sh5:void 0,sh6:void 0,sh7:void 0,sh8:void 0,sh9:void 0,sh10:void 0,ev1:void 0,ev2:void 0}}},computed:{backupCloudList(){return this.$store.state.mqtt["openWB/system/configurable/backup_clouds"]},componentConfigurations(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")},chargePointOptions(){let t=this.getWildcardTopics("openWB/chargepoint/+/config");var e=[];for(const r of Object.values(t))e.push({value:r.id,text:r.name});return e},counterOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"counter")&&t.push({value:e.id,text:e.name});return t},inverterOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"inverter")&&t.push({value:e.id,text:e.name});return t},batteryOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"bat")&&t.push({value:e.id,text:e.name});return t},vehicleOptions(){let t=this.getWildcardTopics("openWB/vehicle/+/name");var e=[];for(const[r,c]of Object.entries(t)){let s=parseInt(r.match(/\/(\d\d?)\//)[1]);e.push({value:s,text:c})}return e},smartHomeOptions(){let t=this.getWildcardTopics("openWB/LegacySmartHome/config/get/Devices/+/device_configured");var e=[];for(const[r,c]of Object.entries(t))if(c==1){let s=parseInt(r.match(/\/(\d\d?)\//)[1]);e.push({value:s,text:this.$store.state.mqtt[`openWB/LegacySmartHome/config/get/Devices/${s}/device_name`]})}return e}},methods:{isComponentType(t,e){return t.split("_").includes(e)},getBackupCloudDefaultConfiguration(t){const e=this.backupCloudList.find(r=>r.value==t);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...e.defaults}:(console.warn("no default configuration found for backup cloud type!",t),{})},sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})},getMigrationOptions(t){var e=[{value:void 0,text:"-- nicht übernehmen --"}];return t.includes("chargePoint")&&e.push(...this.chargePointOptions),t.includes("counter")&&e.push(...this.counterOptions),t.includes("inverter")&&e.push(...this.inverterOptions),t.includes("battery")&&e.push(...this.batteryOptions),t.includes("vehicle")&&e.push(...this.vehicleOptions),t.includes("smartHome")&&e.push(...this.smartHomeOptions),e},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)},updateSelectedBackupCloud(t){this.updateState("openWB/system/backup_cloud/config",t,"type"),this.updateState("openWB/system/backup_cloud/config",this.getBackupCloudDefaultConfiguration(t))},updateSelectedRestoreFile(t){this.selectedRestoreFile=t.target.files[0]},updateSelectedDataMigrationFile(t){this.selectedDataMigrationFile=t.target.files[0]},uploadFile(t,e,r){return new Promise(c=>{if(e!==void 0){let s=new FormData;s.append("file",e),s.append("target",t),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/uploadFile.php",s,{headers:{"Content-Type":"multipart/form-data"}}).then(()=>{this.$root.postClientMessage(r,"success"),c(!0)}).catch(i=>{if(i.response){console.error(i.response.status,i.response.data);var p="Hochladen der Datei fehlgeschlagen!<br />"+i.response.status+": "+i.response.data}else i.request?(console.error(i.request),p+="Es wurde keine Antwort vom Server empfangen."):(console.error("Error",i.message),p+="Es ist ein unbekannter Fehler aufgetreten.");this.$root.postClientMessage(p,"danger"),c(!1)})}else console.error("no file selected for upload"),c(!1)})},async uploadRestoreFile(){const t="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können die Wiederherstellung jetzt starten.";this.restoreUploadDone=await this.uploadFile("restore",this.selectedRestoreFile,t)},async uploadDataMigrationFile(){const t="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können den Import jetzt starten.";this.dataMigrationUploadDone=await this.uploadFile("migrate",this.selectedDataMigrationFile,t)},restoreBackup(){this.sendSystemCommand("restoreBackup"),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})},dataMigration(){this.sendSystemCommand("dataMigration",this.dataMigrationMapping)}}},ee={class:"system"},te=n("h2",null,"Achtung!",-1),ne=n("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1),oe={key:0},ie={name:"backupForm"},se=n("a",{href:"/openWB/data/backup/",target:"_blank"},"hier",-1),ae={class:"row justify-content-center"},le={class:"col-md-4 d-flex py-1 justify-content-center"},ue=n("hr",null,null,-1),re={name:"restoreForm"},de=n("br",null,null,-1),ce={class:"input-group"},pe={class:"input-group-prepend"},me={class:"input-group-text"},ge={class:"custom-file"},fe={id:"input-file-label",class:"custom-file-label",for:"input-file","data-browse":"Suchen"},he={class:"input-group-append"},be=["disabled"],_e={class:"row justify-content-center"},ke={class:"col-md-4 d-flex py-1 justify-content-center"},ye=n("hr",null,null,-1),ve={name:"cloudBackupForm"},we=n("br",null,null,-1),Ce=n("a",{href:"https://github.com/openWB/core/wiki/Cloud-Sicherung",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),Be={key:0},De={name:"dataMigrationForm"},Se=n("br",null,null,-1),Te=n("br",null,null,-1),Fe={class:"input-group"},We={class:"input-group-prepend"},Oe={class:"input-group-text"},xe={class:"custom-file"},Me={id:"data-migration-file-label",class:"custom-file-label",for:"data-migration-file","data-browse":"Suchen"},Le={class:"input-group-append"},ze=["disabled"],Ve={class:"row justify-content-center"},He={class:"col-md-4 d-flex py-1 justify-content-center"},je={name:"resetForm"},Ae={class:"row justify-content-center"},Pe={class:"col-md-4 d-flex py-1 justify-content-center"};function Re(t,e,r,c,s,i){const p=d("openwb-base-button-group-input"),m=d("openwb-base-alert"),h=d("openwb-base-heading"),g=d("font-awesome-icon"),y=d("openwb-base-click-button"),B=d("openwb-base-select-input"),O=d("openwb-base-button-input"),x=d("openwb-backup-cloud-proxy"),M=d("openwb-base-submit-buttons"),w=d("openwb-base-card");return f(),_("div",ee,[o(m,{subtype:"danger"},{default:u(()=>[te,ne,o(p,{title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:this.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=l=>this.warningAcknowledged=l)},null,8,["modelValue"])]),_:1}),s.warningAcknowledged?(f(),_("div",oe,[o(w,{title:"Sicherung / Wiederherstellung",subtype:"success",collapsible:!0,collapsed:!0},{default:u(()=>[n("form",ie,[o(h,null,{default:u(()=>[a("Sicherung")]),_:1}),o(m,{subtype:"danger"},{default:u(()=>[a(' Aktuell können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ')]),_:1}),o(m,{subtype:"info"},{default:u(()=>[a(" Nachdem die Sicherung abgeschlossen ist, kann die erstellte Datei über den Link in der Benachrichtigung oder "),se,a(" heruntergeladen werden. ")]),_:1}),n("div",ae,[n("div",le,[o(y,{class:"btn-success clickable",onButtonClicked:e[1]||(e[1]=l=>i.sendSystemCommand("createBackup",{use_extended_filename:!0}))},{default:u(()=>[a(" Sicherung erstellen "),o(g,{"fixed-width":"",icon:["fas","archive"]})]),_:1})])])]),ue,n("form",re,[o(h,null,{default:u(()=>[a("Wiederherstellung")]),_:1}),o(m,{subtype:"danger"},{default:u(()=>[a(" Für die Wiederherstellung wird eine aktive Internetverbindung benötigt."),de,a(' Aktuell können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ')]),_:1}),n("div",ce,[n("div",pe,[n("div",me,[o(g,{"fixed-width":"",icon:["fas","file-archive"]})])]),n("div",ge,[n("input",{id:"input-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[2]||(e[2]=l=>i.updateSelectedRestoreFile(l))},null,32),n("label",fe,k(s.selectedRestoreFile?s.selectedRestoreFile.name:"Bitte eine Datei auswählen"),1)]),n("div",he,[n("button",{class:v(["btn",s.selectedRestoreFile?"btn-success clickable":"btn-outline-success"]),disabled:!s.selectedRestoreFile,type:"button",onClick:e[3]||(e[3]=l=>i.uploadRestoreFile())},[a(" Hochladen "),o(g,{"fixed-width":"",icon:["fas","upload"]})],10,be)])]),n("div",_e,[n("div",ke,[o(y,{class:v(s.restoreUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!s.restoreUploadDone,onButtonClicked:e[4]||(e[4]=l=>i.restoreBackup())},{default:u(()=>[a(" Wiederherstellung starten "),o(g,{"fixed-width":"",icon:["fas","box-open"]})]),_:1},8,["class","disabled"])])])]),ye,n("form",ve,[o(h,null,{default:u(()=>[a(" Automatische Sicherung in einen Cloud-Dienst ")]),_:1}),o(m,{subtype:"info"},{default:u(()=>[a(" Zwischen Mitternacht und 5:00 Uhr wird automatisch eine Sicherung erstellt und in den angegebenen Cloud-Dienst (nicht openWB Cloud!) hochgeladen. Ist kein Cloud-Dienst konfiguriert, wird keine automatische Sicherung erstellt. Die automatische Sicherung kann unabhängig von der openWB Cloud genutzt werden."),we,a(" Die Anleitung zur Konfiguration des Cloud-Dienstes findest Du "),Ce,a(" . ")]),_:1}),o(B,{class:"mb-2",title:"Backup-Cloud",options:i.backupCloudList,"model-value":t.$store.state.mqtt["openWB/system/backup_cloud/config"].type,"onUpdate:modelValue":e[5]||(e[5]=l=>i.updateSelectedBackupCloud(l))},null,8,["options","model-value"]),t.$store.state.mqtt["openWB/system/backup_cloud/config"].type?(f(),_("div",Be,[o(O,{title:"Manuelle Cloud-Sicherung",buttonText:"Sicherung erstellen und hochladen",subtype:"success",onButtonClicked:e[6]||(e[6]=l=>i.sendSystemCommand("createCloudBackup",{}))}),o(x,{backupCloudType:t.$store.state.mqtt["openWB/system/backup_cloud/config"].type,configuration:t.$store.state.mqtt["openWB/system/backup_cloud/config"].configuration,"onUpdate:configuration":e[7]||(e[7]=l=>i.updateConfiguration("openWB/system/backup_cloud/config",l)),onSendCommand:e[8]||(e[8]=l=>i.sendSystemCommand(l.command,l.args))},null,8,["backupCloudType","configuration"])])):S("v-if",!0),o(M,{formName:"cloudBackupForm",hideReset:!0,hideDefaults:!0,onSave:e[9]||(e[9]=l=>t.$emit("save")),onReset:e[10]||(e[10]=l=>t.$emit("reset")),onDefaults:e[11]||(e[11]=l=>t.$emit("defaults"))})])]),_:1}),o(w,{title:"Datenübernahme",subtype:"success",collapsible:!0,collapsed:!0},{default:u(()=>[n("form",De,[o(m,{subtype:"info"},{default:u(()=>[a(" Hier kann die Sicherung einer älteren 1.9er Version hochgeladen werden, um vorhandene historische Daten (Diagramme und Ladeprotokolle) sowie Cloud-Daten und Seriennummer in diese Installation zu importieren. Die Zuordnung zwischen den alten und neuen Komponenten muss manuell durchgeführt werden."),Se,a(" Die Portierung kann einige Minuten dauern. Du erhältst eine Meldung, wenn die Datenübernahme abgeschlossen ist. ")]),_:1}),o(m,{subtype:"danger"},{default:u(()=>[a(" Vor der Datenübernahme unbedingt eine Sicherung erstellen."),Te,a(" Die Datenübernahme kann nur durch Einspielen einer Sicherung rückgängig gemacht werden! ")]),_:1}),n("div",Fe,[n("div",We,[n("div",Oe,[o(g,{"fixed-width":"",icon:["fas","file-archive"]})])]),n("div",xe,[n("input",{id:"data-migration-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[12]||(e[12]=l=>i.updateSelectedDataMigrationFile(l))},null,32),n("label",Me,k(s.selectedDataMigrationFile?s.selectedDataMigrationFile.name:"Bitte eine Datei auswählen"),1)]),n("div",Le,[n("button",{class:v(["btn",s.selectedDataMigrationFile?"btn-success clickable":"btn-outline-success"]),disabled:!s.selectedDataMigrationFile,type:"button",onClick:e[13]||(e[13]=l=>i.uploadDataMigrationFile())},[a(" Hochladen "),o(g,{"fixed-width":"",icon:["fas","upload"]})],10,ze)])]),o(h,null,{default:u(()=>[a("Zuordnung der Komponenten")]),_:1}),(f(!0),_(T,null,F(s.dataMigrationConfig,l=>(f(),_("div",{key:l.sectionName},[o(h,null,{default:u(()=>[a(k(l.sectionName),1)]),_:2},1024),(f(!0),_(T,null,F(l.sectionComponents,b=>(f(),W(B,{key:b.key,title:b.label,options:i.getMigrationOptions(b.validTypes),modelValue:s.dataMigrationMapping[b.key],"onUpdate:modelValue":L=>s.dataMigrationMapping[b.key]=L},G({_:2},[b.help?{name:"help",fn:u(()=>[a(k(b.help),1)]),key:"0"}:void 0]),1032,["title","options","modelValue","onUpdate:modelValue"]))),128))]))),128)),n("div",Ve,[n("div",He,[o(y,{class:v(s.dataMigrationUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!s.dataMigrationUploadDone,onButtonClicked:e[14]||(e[14]=l=>i.dataMigration())},{default:u(()=>[a(" Datenübernahme starten "),o(g,{"fixed-width":"",icon:["fas","box-open"]})]),_:1},8,["class","disabled"])])])])]),_:1}),n("form",je,[o(w,{title:"Zurücksetzen",subtype:"danger",collapsible:!0,collapsed:!0},{footer:u(()=>[n("div",Ae,[n("div",Pe,[o(y,{class:"btn-danger clickable",onButtonClicked:e[15]||(e[15]=l=>i.sendSystemCommand("factoryReset",{}))},{default:u(()=>[o(g,{"fixed-width":"",icon:["fas","skull-crossbones"]}),a(" Zurücksetzen "),o(g,{"fixed-width":"",icon:["fas","skull-crossbones"]})]),_:1})])])]),default:u(()=>[o(m,{subtype:"danger"},{default:u(()=>[a(" Alle Einstellungen, angelegte Geräte/Komponenten, Ladepunkte und Fahrzeuge, etc, Tages-, Monats- und Jahresauswertungen sowie das Ladeprotokoll werden unwiederbringlich gelöscht. Auch die Vorkonfiguration im Auslieferungszustand wird gelöscht. Die openWB muss danach komplett neu eingerichtet werden. Die openWB wird hierfür automatisch neu gestartet. Bitte erstelle vor dem Zurücksetzen eine Sicherung! ")]),_:1})]),_:1})])])):S("v-if",!0)])}const $e=C(Y,[["render",Re],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/DataManagement.vue"]]);export{$e as default};
+import{l as z,a0 as V,a1 as H,a2 as j,a3 as A,a4 as P,F as R}from"./vendor-fortawesome-838df0c9.js";import{_ as D,C as N}from"./index-f08a7306.js";import{_ as U}from"./dynamic-import-helper-be004503.js";import{_ as C,p as d,k as f,l as _,A as o,L as u,u as a,x as k,q as n,a0 as E,y as W,a1 as q,z as S,n as v,G as T,I as F,a2 as G}from"./vendor-20bb207d.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";const I={name:"BackupCloudConfigFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},backupCloudType:String},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},Z={class:"backup-cloud-fallback"};function K(t,e,r,c,s,i){const p=d("openwb-base-alert"),m=d("openwb-base-textarea");return f(),_("div",Z,[o(p,{subtype:"warning"},{default:u(()=>[a(' Es wurde keine Konfigurationsseite für die Backup-Cloud "'+k(r.backupCloudType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),o(m,{title:"Konfiguration",subtype:"json","model-value":r.configuration,"onUpdate:modelValue":e[0]||(e[0]=h=>i.updateConfiguration(h,"configuration"))},{help:u(()=>[a(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),o(p,{subtype:"info"},{default:u(()=>[n("pre",null,k(JSON.stringify(r.configuration,void 0,2)),1)]),_:1})])}const $=C(I,[["render",K],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudConfigFallback.vue"]]),J={name:"OpenwbBackupCloudProxy",emits:["update:configuration"],props:{backupCloudType:{type:String,required:!0},configuration:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading backup cloud: ${this.backupCloudType}`),E({loader:()=>U(Object.assign({"./nextcloud/backup_cloud.vue":()=>D(()=>import("./backup_cloud-e0e3e868.js"),["assets/backup_cloud-e0e3e868.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./onedrive/backup_cloud.vue":()=>D(()=>import("./backup_cloud-6519f98a.js"),["assets/backup_cloud-6519f98a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"])}),`./${this.backupCloudType}/backup_cloud.vue`),errorComponent:$})}},methods:{updateConfiguration(t){this.$emit("update:configuration",t)}}};function Q(t,e,r,c,s,i){return f(),W(q(i.myComponent),{configuration:r.configuration,backupCloudType:r.backupCloudType,"onUpdate:configuration":e[0]||(e[0]=p=>i.updateConfiguration(p))},null,40,["configuration","backupCloudType"])}const X=C(J,[["render",Q],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/OpenwbBackupCloudProxy.vue"]]);z.add(V,H,j,A,P);const Y={name:"OpenwbSystem",mixins:[N],emits:["sendCommand"],components:{FontAwesomeIcon:R,OpenwbBackupCloudProxy:X},data(){return{mqttTopicsToSubscribe:["openWB/system/configurable/backup_clouds","openWB/system/backup_cloud/config","openWB/system/device/+/component/+/config","openWB/chargepoint/+/config","openWB/vehicle/+/name","openWB/LegacySmartHome/config/get/Devices/+/device_configured","openWB/LegacySmartHome/config/get/Devices/+/device_name"],warningAcknowledged:!1,selectedRestoreFile:void 0,restoreUploadDone:!1,selectedDataMigrationFile:void 0,dataMigrationUploadDone:!1,dataMigrationConfig:[{sectionName:"Ladepunkte",sectionComponents:[{key:"cp1",label:"Ladepunkt 1",validTypes:["chargePoint"]},{key:"cp2",label:"Ladepunkt 2",validTypes:["chargePoint"]},{key:"cp3",label:"Ladepunkt 3",validTypes:["chargePoint"]},{key:"cp4",label:"Ladepunkt 4",validTypes:["chargePoint"]},{key:"cp5",label:"Ladepunkt 5",validTypes:["chargePoint"]},{key:"cp6",label:"Ladepunkt 6",validTypes:["chargePoint"]},{key:"cp7",label:"Ladepunkt 7",validTypes:["chargePoint"]},{key:"cp8",label:"Ladepunkt 8",validTypes:["chargePoint"]}]},{sectionName:"Zähler",sectionComponents:[{key:"evu",label:"EVU",validTypes:["counter"]},{key:"consumer1",label:"Verbraucher 1",validTypes:["counter"]},{key:"consumer2",label:"Verbraucher 2",validTypes:["counter"]},{key:"consumer3",label:"Verbraucher 3",validTypes:["counter"]}]},{sectionName:"Wechselrichter",sectionComponents:[{key:"pvAll",label:"Wechselrichter (Summe)",validTypes:["inverter"],help:"Die 1.9er Version von openWB speichert lediglich die Summen-Leistung aller Wechselrichter."}]},{sectionName:"Batteriespeicher",sectionComponents:[{key:"bat",label:"Speicher 1",validTypes:["battery"]}]},{sectionName:"Fahrzeuge",sectionComponents:[{key:"ev1",label:"Fahrzeug von Ladepunkt 1",validTypes:["vehicle"]},{key:"ev2",label:"Fahrzeug von Ladepunkt 2",validTypes:["vehicle"]}]},{sectionName:"SmartHome 2.0",sectionComponents:[{key:"sh1",label:"Gerät 1",validTypes:["smartHome"]},{key:"sh2",label:"Gerät 2",validTypes:["smartHome"]},{key:"sh3",label:"Gerät 3",validTypes:["smartHome"]},{key:"sh4",label:"Gerät 4",validTypes:["smartHome"]},{key:"sh5",label:"Gerät 5",validTypes:["smartHome"]},{key:"sh6",label:"Gerät 6",validTypes:["smartHome"]},{key:"sh7",label:"Gerät 7",validTypes:["smartHome"]},{key:"sh8",label:"Gerät 8",validTypes:["smartHome"]},{key:"sh9",label:"Gerät 9",validTypes:["smartHome"]},{key:"sh10",label:"Gerät 10",validTypes:["smartHome"]}]}],dataMigrationMapping:{cp1:void 0,cp2:void 0,cp3:void 0,cp4:void 0,cp5:void 0,cp6:void 0,cp7:void 0,cp8:void 0,evu:void 0,pvAll:void 0,bat:void 0,consumer1:void 0,consumer2:void 0,consumer3:void 0,sh1:void 0,sh2:void 0,sh3:void 0,sh4:void 0,sh5:void 0,sh6:void 0,sh7:void 0,sh8:void 0,sh9:void 0,sh10:void 0,ev1:void 0,ev2:void 0}}},computed:{backupCloudList(){return this.$store.state.mqtt["openWB/system/configurable/backup_clouds"]},componentConfigurations(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")},chargePointOptions(){let t=this.getWildcardTopics("openWB/chargepoint/+/config");var e=[];for(const r of Object.values(t))e.push({value:r.id,text:r.name});return e},counterOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"counter")&&t.push({value:e.id,text:e.name});return t},inverterOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"inverter")&&t.push({value:e.id,text:e.name});return t},batteryOptions(){var t=[];for(const e of Object.values(this.componentConfigurations))this.isComponentType(e.type,"bat")&&t.push({value:e.id,text:e.name});return t},vehicleOptions(){let t=this.getWildcardTopics("openWB/vehicle/+/name");var e=[];for(const[r,c]of Object.entries(t)){let s=parseInt(r.match(/\/(\d\d?)\//)[1]);e.push({value:s,text:c})}return e},smartHomeOptions(){let t=this.getWildcardTopics("openWB/LegacySmartHome/config/get/Devices/+/device_configured");var e=[];for(const[r,c]of Object.entries(t))if(c==1){let s=parseInt(r.match(/\/(\d\d?)\//)[1]);e.push({value:s,text:this.$store.state.mqtt[`openWB/LegacySmartHome/config/get/Devices/${s}/device_name`]})}return e}},methods:{isComponentType(t,e){return t.split("_").includes(e)},getBackupCloudDefaultConfiguration(t){const e=this.backupCloudList.find(r=>r.value==t);return Object.prototype.hasOwnProperty.call(e,"defaults")?{...e.defaults}:(console.warn("no default configuration found for backup cloud type!",t),{})},sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})},getMigrationOptions(t){var e=[{value:void 0,text:"-- nicht übernehmen --"}];return t.includes("chargePoint")&&e.push(...this.chargePointOptions),t.includes("counter")&&e.push(...this.counterOptions),t.includes("inverter")&&e.push(...this.inverterOptions),t.includes("battery")&&e.push(...this.batteryOptions),t.includes("vehicle")&&e.push(...this.vehicleOptions),t.includes("smartHome")&&e.push(...this.smartHomeOptions),e},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)},updateSelectedBackupCloud(t){this.updateState("openWB/system/backup_cloud/config",t,"type"),this.updateState("openWB/system/backup_cloud/config",this.getBackupCloudDefaultConfiguration(t))},updateSelectedRestoreFile(t){this.selectedRestoreFile=t.target.files[0]},updateSelectedDataMigrationFile(t){this.selectedDataMigrationFile=t.target.files[0]},uploadFile(t,e,r){return new Promise(c=>{if(e!==void 0){let s=new FormData;s.append("file",e),s.append("target",t),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/uploadFile.php",s,{headers:{"Content-Type":"multipart/form-data"}}).then(()=>{this.$root.postClientMessage(r,"success"),c(!0)}).catch(i=>{if(i.response){console.error(i.response.status,i.response.data);var p="Hochladen der Datei fehlgeschlagen!<br />"+i.response.status+": "+i.response.data}else i.request?(console.error(i.request),p+="Es wurde keine Antwort vom Server empfangen."):(console.error("Error",i.message),p+="Es ist ein unbekannter Fehler aufgetreten.");this.$root.postClientMessage(p,"danger"),c(!1)})}else console.error("no file selected for upload"),c(!1)})},async uploadRestoreFile(){const t="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können die Wiederherstellung jetzt starten.";this.restoreUploadDone=await this.uploadFile("restore",this.selectedRestoreFile,t)},async uploadDataMigrationFile(){const t="Die Sicherungsdatei wurde erfolgreich hochgeladen. Sie können den Import jetzt starten.";this.dataMigrationUploadDone=await this.uploadFile("migrate",this.selectedDataMigrationFile,t)},restoreBackup(){this.sendSystemCommand("restoreBackup"),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})},dataMigration(){this.sendSystemCommand("dataMigration",this.dataMigrationMapping)}}},ee={class:"system"},te=n("h2",null,"Achtung!",-1),ne=n("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1),oe={key:0},ie={name:"backupForm"},se=n("a",{href:"/openWB/data/backup/",target:"_blank"},"hier",-1),ae={class:"row justify-content-center"},le={class:"col-md-4 d-flex py-1 justify-content-center"},ue=n("hr",null,null,-1),re={name:"restoreForm"},de=n("br",null,null,-1),ce={class:"input-group"},pe={class:"input-group-prepend"},me={class:"input-group-text"},ge={class:"custom-file"},fe={id:"input-file-label",class:"custom-file-label",for:"input-file","data-browse":"Suchen"},he={class:"input-group-append"},be=["disabled"],_e={class:"row justify-content-center"},ke={class:"col-md-4 d-flex py-1 justify-content-center"},ye=n("hr",null,null,-1),ve={name:"cloudBackupForm"},we=n("br",null,null,-1),Ce=n("a",{href:"https://github.com/openWB/core/wiki/Cloud-Sicherung",target:"_blank",rel:"noopener noreferrer"}," hier ",-1),Be={key:0},De={name:"dataMigrationForm"},Se=n("br",null,null,-1),Te=n("br",null,null,-1),Fe={class:"input-group"},We={class:"input-group-prepend"},Oe={class:"input-group-text"},xe={class:"custom-file"},Me={id:"data-migration-file-label",class:"custom-file-label",for:"data-migration-file","data-browse":"Suchen"},Le={class:"input-group-append"},ze=["disabled"],Ve={class:"row justify-content-center"},He={class:"col-md-4 d-flex py-1 justify-content-center"},je={name:"resetForm"},Ae={class:"row justify-content-center"},Pe={class:"col-md-4 d-flex py-1 justify-content-center"};function Re(t,e,r,c,s,i){const p=d("openwb-base-button-group-input"),m=d("openwb-base-alert"),h=d("openwb-base-heading"),g=d("font-awesome-icon"),y=d("openwb-base-click-button"),B=d("openwb-base-select-input"),O=d("openwb-base-button-input"),x=d("openwb-backup-cloud-proxy"),M=d("openwb-base-submit-buttons"),w=d("openwb-base-card");return f(),_("div",ee,[o(m,{subtype:"danger"},{default:u(()=>[te,ne,o(p,{title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:this.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=l=>this.warningAcknowledged=l)},null,8,["modelValue"])]),_:1}),s.warningAcknowledged?(f(),_("div",oe,[o(w,{title:"Sicherung / Wiederherstellung",subtype:"success",collapsible:!0,collapsed:!0},{default:u(()=>[n("form",ie,[o(h,null,{default:u(()=>[a("Sicherung")]),_:1}),o(m,{subtype:"danger"},{default:u(()=>[a(' Aktuell können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ')]),_:1}),o(m,{subtype:"info"},{default:u(()=>[a(" Nachdem die Sicherung abgeschlossen ist, kann die erstellte Datei über den Link in der Benachrichtigung oder "),se,a(" heruntergeladen werden. ")]),_:1}),n("div",ae,[n("div",le,[o(y,{class:"btn-success clickable",onButtonClicked:e[1]||(e[1]=l=>i.sendSystemCommand("createBackup",{use_extended_filename:!0}))},{default:u(()=>[a(" Sicherung erstellen "),o(g,{"fixed-width":"",icon:["fas","archive"]})]),_:1})])])]),ue,n("form",re,[o(h,null,{default:u(()=>[a("Wiederherstellung")]),_:1}),o(m,{subtype:"danger"},{default:u(()=>[a(" Für die Wiederherstellung wird eine aktive Internetverbindung benötigt."),de,a(' Aktuell können nur Sicherungen wiederhergestellt werden, die in den Entwicklungszweigen "master", "Beta" oder "Release" erstellt wurden! ')]),_:1}),n("div",ce,[n("div",pe,[n("div",me,[o(g,{"fixed-width":"",icon:["fas","file-archive"]})])]),n("div",ge,[n("input",{id:"input-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[2]||(e[2]=l=>i.updateSelectedRestoreFile(l))},null,32),n("label",fe,k(s.selectedRestoreFile?s.selectedRestoreFile.name:"Bitte eine Datei auswählen"),1)]),n("div",he,[n("button",{class:v(["btn",s.selectedRestoreFile?"btn-success clickable":"btn-outline-success"]),disabled:!s.selectedRestoreFile,type:"button",onClick:e[3]||(e[3]=l=>i.uploadRestoreFile())},[a(" Hochladen "),o(g,{"fixed-width":"",icon:["fas","upload"]})],10,be)])]),n("div",_e,[n("div",ke,[o(y,{class:v(s.restoreUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!s.restoreUploadDone,onButtonClicked:e[4]||(e[4]=l=>i.restoreBackup())},{default:u(()=>[a(" Wiederherstellung starten "),o(g,{"fixed-width":"",icon:["fas","box-open"]})]),_:1},8,["class","disabled"])])])]),ye,n("form",ve,[o(h,null,{default:u(()=>[a(" Automatische Sicherung in einen Cloud-Dienst ")]),_:1}),o(m,{subtype:"info"},{default:u(()=>[a(" Zwischen Mitternacht und 5:00 Uhr wird automatisch eine Sicherung erstellt und in den angegebenen Cloud-Dienst (nicht openWB Cloud!) hochgeladen. Ist kein Cloud-Dienst konfiguriert, wird keine automatische Sicherung erstellt. Die automatische Sicherung kann unabhängig von der openWB Cloud genutzt werden."),we,a(" Die Anleitung zur Konfiguration des Cloud-Dienstes findest Du "),Ce,a(" . ")]),_:1}),o(B,{class:"mb-2",title:"Backup-Cloud",options:i.backupCloudList,"model-value":t.$store.state.mqtt["openWB/system/backup_cloud/config"].type,"onUpdate:modelValue":e[5]||(e[5]=l=>i.updateSelectedBackupCloud(l))},null,8,["options","model-value"]),t.$store.state.mqtt["openWB/system/backup_cloud/config"].type?(f(),_("div",Be,[o(O,{title:"Manuelle Cloud-Sicherung",buttonText:"Sicherung erstellen und hochladen",subtype:"success",onButtonClicked:e[6]||(e[6]=l=>i.sendSystemCommand("createCloudBackup",{}))}),o(x,{backupCloudType:t.$store.state.mqtt["openWB/system/backup_cloud/config"].type,configuration:t.$store.state.mqtt["openWB/system/backup_cloud/config"].configuration,"onUpdate:configuration":e[7]||(e[7]=l=>i.updateConfiguration("openWB/system/backup_cloud/config",l)),onSendCommand:e[8]||(e[8]=l=>i.sendSystemCommand(l.command,l.args))},null,8,["backupCloudType","configuration"])])):S("v-if",!0),o(M,{formName:"cloudBackupForm",hideReset:!0,hideDefaults:!0,onSave:e[9]||(e[9]=l=>t.$emit("save")),onReset:e[10]||(e[10]=l=>t.$emit("reset")),onDefaults:e[11]||(e[11]=l=>t.$emit("defaults"))})])]),_:1}),o(w,{title:"Datenübernahme",subtype:"success",collapsible:!0,collapsed:!0},{default:u(()=>[n("form",De,[o(m,{subtype:"info"},{default:u(()=>[a(" Hier kann die Sicherung einer älteren 1.9er Version hochgeladen werden, um vorhandene historische Daten (Diagramme und Ladeprotokolle) sowie Cloud-Daten und Seriennummer in diese Installation zu importieren. Die Zuordnung zwischen den alten und neuen Komponenten muss manuell durchgeführt werden."),Se,a(" Die Portierung kann einige Minuten dauern. Du erhältst eine Meldung, wenn die Datenübernahme abgeschlossen ist. ")]),_:1}),o(m,{subtype:"danger"},{default:u(()=>[a(" Vor der Datenübernahme unbedingt eine Sicherung erstellen."),Te,a(" Die Datenübernahme kann nur durch Einspielen einer Sicherung rückgängig gemacht werden! ")]),_:1}),n("div",Fe,[n("div",We,[n("div",Oe,[o(g,{"fixed-width":"",icon:["fas","file-archive"]})])]),n("div",xe,[n("input",{id:"data-migration-file",type:"file",class:"custom-file-input",accept:".tar.gz,application/gzip,application/tar+gzip",onChange:e[12]||(e[12]=l=>i.updateSelectedDataMigrationFile(l))},null,32),n("label",Me,k(s.selectedDataMigrationFile?s.selectedDataMigrationFile.name:"Bitte eine Datei auswählen"),1)]),n("div",Le,[n("button",{class:v(["btn",s.selectedDataMigrationFile?"btn-success clickable":"btn-outline-success"]),disabled:!s.selectedDataMigrationFile,type:"button",onClick:e[13]||(e[13]=l=>i.uploadDataMigrationFile())},[a(" Hochladen "),o(g,{"fixed-width":"",icon:["fas","upload"]})],10,ze)])]),o(h,null,{default:u(()=>[a("Zuordnung der Komponenten")]),_:1}),(f(!0),_(T,null,F(s.dataMigrationConfig,l=>(f(),_("div",{key:l.sectionName},[o(h,null,{default:u(()=>[a(k(l.sectionName),1)]),_:2},1024),(f(!0),_(T,null,F(l.sectionComponents,b=>(f(),W(B,{key:b.key,title:b.label,options:i.getMigrationOptions(b.validTypes),modelValue:s.dataMigrationMapping[b.key],"onUpdate:modelValue":L=>s.dataMigrationMapping[b.key]=L},G({_:2},[b.help?{name:"help",fn:u(()=>[a(k(b.help),1)]),key:"0"}:void 0]),1032,["title","options","modelValue","onUpdate:modelValue"]))),128))]))),128)),n("div",Ve,[n("div",He,[o(y,{class:v(s.dataMigrationUploadDone?"btn-success clickable":"btn-outline-success"),disabled:!s.dataMigrationUploadDone,onButtonClicked:e[14]||(e[14]=l=>i.dataMigration())},{default:u(()=>[a(" Datenübernahme starten "),o(g,{"fixed-width":"",icon:["fas","box-open"]})]),_:1},8,["class","disabled"])])])])]),_:1}),n("form",je,[o(w,{title:"Zurücksetzen",subtype:"danger",collapsible:!0,collapsed:!0},{footer:u(()=>[n("div",Ae,[n("div",Pe,[o(y,{class:"btn-danger clickable",onButtonClicked:e[15]||(e[15]=l=>i.sendSystemCommand("factoryReset",{}))},{default:u(()=>[o(g,{"fixed-width":"",icon:["fas","skull-crossbones"]}),a(" Zurücksetzen "),o(g,{"fixed-width":"",icon:["fas","skull-crossbones"]})]),_:1})])])]),default:u(()=>[o(m,{subtype:"danger"},{default:u(()=>[a(" Alle Einstellungen, angelegte Geräte/Komponenten, Ladepunkte und Fahrzeuge, etc, Tages-, Monats- und Jahresauswertungen sowie das Ladeprotokoll werden unwiederbringlich gelöscht. Auch die Vorkonfiguration im Auslieferungszustand wird gelöscht. Die openWB muss danach komplett neu eingerichtet werden. Die openWB wird hierfür automatisch neu gestartet. Bitte erstelle vor dem Zurücksetzen eine Sicherung! ")]),_:1})]),_:1})])])):S("v-if",!0)])}const $e=C(Y,[["render",Re],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/DataManagement.vue"]]);export{$e as default};
diff --git a/web/settings/assets/DebugConfig-0afeacb4.js b/web/settings/assets/DebugConfig-8fb43a78.js
similarity index 92%
rename from web/settings/assets/DebugConfig-0afeacb4.js
rename to web/settings/assets/DebugConfig-8fb43a78.js
index eacbdd3ddf..5f34186446 100644
--- a/web/settings/assets/DebugConfig-0afeacb4.js
+++ b/web/settings/assets/DebugConfig-8fb43a78.js
@@ -1,2 +1,2 @@
-import{l as h,Z as w,F as L}from"./vendor-fortawesome-ad83e535.js";import{C as _}from"./index-cbcca7a0.js";import{_ as k,p as a,k as v,l as C,q as l,A as t,L as o,u as c,x as p}from"./vendor-94ac8c48.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";h.add(w);const B={name:"OpenwbDebugging",mixins:[_],components:{FontAwesomeIcon:L},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/debug_level"],mainLog:"-- noch nicht geladen --",internalChargepointLog:"-- noch nicht geladen --",mqttLog:"-- noch nicht geladen --",socLog:"-- noch nicht geladen --",updateLog:"-- noch nicht geladen --"}},methods:{async getFilePromise(n){return this.axios.get(location.protocol+"//"+location.host+n).then(e=>e.data).catch(e=>e.response?`A 404 is expected if running node.js dev server!
+import{l as h,Z as w,F as L}from"./vendor-fortawesome-838df0c9.js";import{C as _}from"./index-f08a7306.js";import{_ as k,p as a,k as v,l as C,q as l,A as t,L as o,u as c,x as p}from"./vendor-20bb207d.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";h.add(w);const B={name:"OpenwbDebugging",mixins:[_],components:{FontAwesomeIcon:L},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/debug_level"],mainLog:"-- noch nicht geladen --",internalChargepointLog:"-- noch nicht geladen --",mqttLog:"-- noch nicht geladen --",socLog:"-- noch nicht geladen --",updateLog:"-- noch nicht geladen --"}},methods:{async getFilePromise(n){return this.axios.get(location.protocol+"//"+location.host+n).then(e=>e.data).catch(e=>e.response?`A 404 is expected if running node.js dev server!
 `+e.response.data:e.request?e.request:e.message)},loadMainLog(n){n.stopPropagation(),this.mainLog="wird aktualisiert...",this.getFilePromise("/openWB/ramdisk/main.log").then(e=>{this.mainLog=e})},loadInternalChargepointLog(n){n.stopPropagation(),this.internalChargepointLog="wird aktualisiert...",this.getFilePromise("/openWB/ramdisk/internal_chargepoint.log").then(e=>{this.internalChargepointLog=e})},loadMqttLog(n){n.stopPropagation(),this.mqttLog="wird aktualisiert...",this.getFilePromise("/openWB/ramdisk/mqtt.log").then(e=>{this.mqttLog=e})},loadSocLog(n){n.stopPropagation(),this.socLog="wird aktualisiert...",this.getFilePromise("/openWB/ramdisk/soc.log").then(e=>{this.socLog=e})},loadUpdateLog(n){n.stopPropagation(),this.updateLog="wird aktualisiert...",this.getFilePromise("/openWB/data/log/update.log").then(e=>{this.updateLog=e})}}},x={class:"debugging"},P={name:"debugConfigForm"};function D(n,e,F,W,r,d){const m=a("openwb-base-button-group-input"),b=a("openwb-base-alert"),i=a("openwb-base-card"),f=a("openwb-base-submit-buttons"),u=a("font-awesome-icon"),g=a("openwb-base-avatar");return v(),C("div",x,[l("form",P,[t(i,{title:"Protokollierung"},{default:o(()=>[t(m,{title:"Debug Level",buttons:[{buttonValue:30,text:"Warnungen und Fehler"},{buttonValue:20,text:"Info"},{buttonValue:10,text:"Details"}],"model-value":n.$store.state.mqtt["openWB/system/debug_level"],"onUpdate:modelValue":e[0]||(e[0]=s=>n.updateState("openWB/system/debug_level",s))},{help:o(()=>[c(' Wenn der Debug Level auf "Info" oder "Details" gesetzt wird, werden mehr Informationen in die Logdateien geschrieben. Im normalen Betrieb sollte immer "Warnungen und Fehler" gewählt werden, um die Schreibvorgänge auf der SD-Karte zu reduzieren. ')]),_:1},8,["model-value"]),t(b,{subtype:"warning"},{default:o(()=>[c(' Achtung! In den Einstellungen "Info" und "Details" können in den Logdateien sensible Daten wie Benutzernamen und Kennwörter enthalten sein. Diese sollten vor dem Veröffentlichen z.B. im Forum unkenntlich gemacht werden. Private IP-Adressen (z.B. 192.168.x.x) müssen nicht maskiert werden, da diese nicht über das Internet erreichbar sind. ')]),_:1})]),_:1}),t(f,{formName:"debugConfigForm",onSave:e[1]||(e[1]=s=>n.$emit("save")),onReset:e[2]||(e[2]=s=>n.$emit("reset")),onDefaults:e[3]||(e[3]=s=>n.$emit("defaults"))})]),t(i,{title:"Main-Log",class:"mt-3",collapsible:!0,collapsed:!0},{actions:o(()=>[t(g,{class:"bg-success clickable",onClick:e[4]||(e[4]=s=>d.loadMainLog(s))},{default:o(()=>[t(u,{"fixed-width":"",icon:["fas","file-download"]})]),_:1})]),default:o(()=>[l("pre",null,p(r.mainLog),1)]),_:1}),t(i,{title:"Log des internen Ladepunktes",class:"mt-3",collapsible:!0,collapsed:!0},{actions:o(()=>[t(g,{class:"bg-success clickable",onClick:e[5]||(e[5]=s=>d.loadInternalChargepointLog(s))},{default:o(()=>[t(u,{"fixed-width":"",icon:["fas","file-download"]})]),_:1})]),default:o(()=>[l("pre",null,p(r.internalChargepointLog),1)]),_:1}),t(i,{title:"MQTT-Log",class:"mt-3",collapsible:!0,collapsed:!0},{actions:o(()=>[t(g,{class:"bg-success clickable",onClick:e[6]||(e[6]=s=>d.loadMqttLog(s))},{default:o(()=>[t(u,{"fixed-width":"",icon:["fas","file-download"]})]),_:1})]),default:o(()=>[l("pre",null,p(r.mqttLog),1)]),_:1}),t(i,{title:"SoC-Log",class:"mt-3",collapsible:!0,collapsed:!0},{actions:o(()=>[t(g,{class:"bg-success clickable",onClick:e[7]||(e[7]=s=>d.loadSocLog(s))},{default:o(()=>[t(u,{"fixed-width":"",icon:["fas","file-download"]})]),_:1})]),default:o(()=>[l("pre",null,p(r.socLog),1)]),_:1}),t(i,{title:"Protokoll des letzten Updates",class:"mt-3",collapsible:!0,collapsed:!0},{actions:o(()=>[t(g,{class:"bg-success clickable",onClick:e[8]||(e[8]=s=>d.loadUpdateLog(s))},{default:o(()=>[t(u,{"fixed-width":"",icon:["fas","file-download"]})]),_:1})]),default:o(()=>[l("pre",null,p(r.updateLog),1)]),_:1})])}const A=k(B,[["render",D],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/DebugConfig.vue"]]);export{A as default};
diff --git a/web/settings/assets/GeneralChargeConfig-6358761f.js b/web/settings/assets/GeneralChargeConfig-48509d36.js
similarity index 87%
rename from web/settings/assets/GeneralChargeConfig-6358761f.js
rename to web/settings/assets/GeneralChargeConfig-48509d36.js
index dc9f48382f..52f65b4129 100644
--- a/web/settings/assets/GeneralChargeConfig-6358761f.js
+++ b/web/settings/assets/GeneralChargeConfig-48509d36.js
@@ -1 +1 @@
-import{C as c}from"./index-cbcca7a0.js";import{_ as h,p as a,k as o,l,q as u,A as s,L as r,u as i,y as _,z as f}from"./vendor-94ac8c48.js";import"./vendor-fortawesome-ad83e535.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";const w={name:"OpenwbGeneralChargeConfig",mixins:[c],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/unbalanced_load","openWB/general/chargemode_config/unbalanced_load_limit"]}}},v={class:"generalChargeConfig"},B={name:"generalChargeConfigForm"},C={key:0},z={key:1},k=u("br",null,null,-1);function $(n,e,W,V,S,N){const d=a("openwb-base-alert"),g=a("openwb-base-button-group-input"),m=a("openwb-base-range-input"),p=a("openwb-base-card"),b=a("openwb-base-submit-buttons");return o(),l("div",v,[u("form",B,[s(p,{title:"Allgemein"},{default:r(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(o(),l("div",C,[s(d,{subtype:"info"},{default:r(()=>[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(o(),l("div",z,[s(g,{title:"Begrenzung der Schieflast",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"],"onUpdate:modelValue":e[0]||(e[0]=t=>n.updateState("openWB/general/chargemode_config/unbalanced_load",t))},{help:r(()=>[i(" Wenn diese Option aktiviert ist, werden nicht-dreiphasige Ladevorgänge so geregelt, dass am Netzanschlusspunkt (EVU-Zähler) die eingestellte Grenze für die Schieflast nicht überschritten wird. Hierfür muss der EVU-Zähler einzelne Phasenströme bereitstellen!"),k,i(' Weiterhin müssen bei den Ladepunkten sowie Fahrzeugen sämtliche Angaben zur Anzahl angeschlossener/unterstützter Phasen und der Phasenrotation hinterlegt werden, damit der Regelung bekannt ist, welcher Ladevorgang welche Phase am Netzanschluss beeinflusst. siehe "Konfiguration - Ladepunkte -> elektrischer Anschluss - Phase 1" und "Konfiguration - Fahrzeuge -> Fahrzeug-Profile" ')]),_:1},8,["model-value"]),n.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"]?(o(),_(m,{key:0,title:"Erlaubte Schieflast",min:10,max:32,step:1,unit:"A","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load_limit"],"onUpdate:modelValue":e[1]||(e[1]=t=>n.updateState("openWB/general/chargemode_config/unbalanced_load_limit",t))},{help:r(()=>[i("Hiermit wird festgelegt, welche Schieflast am Netzanschlusspunkt erlaubt ist. Bei Überschreitung werden gezielt einzelne Ladevorgänge in der Leistung begrenzt.")]),_:1},8,["model-value"])):f("v-if",!0)]))]),_:1}),s(b,{formName:"generalChargeConfigForm",onSave:e[2]||(e[2]=t=>n.$emit("save")),onReset:e[3]||(e[3]=t=>n.$emit("reset")),onDefaults:e[4]||(e[4]=t=>n.$emit("defaults"))})])])}const G=h(w,[["render",$],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/GeneralChargeConfig.vue"]]);export{G as default};
+import{C as c}from"./index-f08a7306.js";import{_ as h,p as a,k as o,l,q as u,A as s,L as r,u as i,y as _,z as f}from"./vendor-20bb207d.js";import"./vendor-fortawesome-838df0c9.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";const w={name:"OpenwbGeneralChargeConfig",mixins:[c],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/unbalanced_load","openWB/general/chargemode_config/unbalanced_load_limit"]}}},v={class:"generalChargeConfig"},B={name:"generalChargeConfigForm"},C={key:0},z={key:1},k=u("br",null,null,-1);function $(n,e,W,V,S,N){const d=a("openwb-base-alert"),g=a("openwb-base-button-group-input"),m=a("openwb-base-range-input"),p=a("openwb-base-card"),b=a("openwb-base-submit-buttons");return o(),l("div",v,[u("form",B,[s(p,{title:"Allgemein"},{default:r(()=>[n.$store.state.mqtt["openWB/general/extern"]===!0?(o(),l("div",C,[s(d,{subtype:"info"},{default:r(()=>[i(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(o(),l("div",z,[s(g,{title:"Begrenzung der Schieflast",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":n.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"],"onUpdate:modelValue":e[0]||(e[0]=t=>n.updateState("openWB/general/chargemode_config/unbalanced_load",t))},{help:r(()=>[i(" Wenn diese Option aktiviert ist, werden nicht-dreiphasige Ladevorgänge so geregelt, dass am Netzanschlusspunkt (EVU-Zähler) die eingestellte Grenze für die Schieflast nicht überschritten wird. Hierfür muss der EVU-Zähler einzelne Phasenströme bereitstellen!"),k,i(' Weiterhin müssen bei den Ladepunkten sowie Fahrzeugen sämtliche Angaben zur Anzahl angeschlossener/unterstützter Phasen und der Phasenrotation hinterlegt werden, damit der Regelung bekannt ist, welcher Ladevorgang welche Phase am Netzanschluss beeinflusst. siehe "Konfiguration - Ladepunkte -> elektrischer Anschluss - Phase 1" und "Konfiguration - Fahrzeuge -> Fahrzeug-Profile" ')]),_:1},8,["model-value"]),n.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load"]?(o(),_(m,{key:0,title:"Erlaubte Schieflast",min:10,max:32,step:1,unit:"A","model-value":n.$store.state.mqtt["openWB/general/chargemode_config/unbalanced_load_limit"],"onUpdate:modelValue":e[1]||(e[1]=t=>n.updateState("openWB/general/chargemode_config/unbalanced_load_limit",t))},{help:r(()=>[i("Hiermit wird festgelegt, welche Schieflast am Netzanschlusspunkt erlaubt ist. Bei Überschreitung werden gezielt einzelne Ladevorgänge in der Leistung begrenzt.")]),_:1},8,["model-value"])):f("v-if",!0)]))]),_:1}),s(b,{formName:"generalChargeConfigForm",onSave:e[2]||(e[2]=t=>n.$emit("save")),onReset:e[3]||(e[3]=t=>n.$emit("reset")),onDefaults:e[4]||(e[4]=t=>n.$emit("defaults"))})])])}const G=h(w,[["render",$],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/GeneralChargeConfig.vue"]]);export{G as default};
diff --git a/web/settings/assets/GeneralConfig-ce149f67.js b/web/settings/assets/GeneralConfig-f5ba108a.js
similarity index 97%
rename from web/settings/assets/GeneralConfig-ce149f67.js
rename to web/settings/assets/GeneralConfig-f5ba108a.js
index 8b992c5c34..a369c921ef 100644
--- a/web/settings/assets/GeneralConfig-ce149f67.js
+++ b/web/settings/assets/GeneralConfig-f5ba108a.js
@@ -1,4 +1,4 @@
-import{C as f}from"./index-cbcca7a0.js";import{_ as h,p as r,k as u,l,q as i,A as o,L as s,z as b,u as a}from"./vendor-94ac8c48.js";import"./vendor-fortawesome-ad83e535.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"OpenwbGeneralConfig",mixins:[f],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/control_interval","openWB/general/grid_protection_configured","openWB/general/external_buttons_hw","openWB/general/notifications/selected","openWB/general/notifications/configuration","openWB/general/notifications/start_charging","openWB/general/notifications/stop_charging","openWB/general/notifications/plug","openWB/general/notifications/smart_home","openWB/general/price_kwh","openWB/general/range_unit"]}}},B={class:"generalConfig"},w={name:"generalConfigForm"},_=i("br",null,null,-1),W=i("br",null,null,-1),k=i("br",null,null,-1),z=i("a",{href:"https://openwb.de/main/?page_id=1025",target:"_blank",rel:"noopener noreferrer"}," Homepage ",-1),S={key:0},$={key:1},V=i("br",null,null,-1),y=i("span",{class:"text-danger"},' Nicht nur die Regelung der PV geführten Ladung, sondern auch die Ladestromänderung, beispielsweise “Stop“ etc., werden dann nur noch in diesem Intervall ausgeführt. Die Regelung wird insgesamt träger. Solange es keinen triftigen Grund gibt, sollte "Normal" gewählt werden. ',-1),x=i("br",null,null,-1),P=i("span",{class:"text-danger"}," Die Option ist nur aktiv, wenn der EVU-Zähler die Frequenz übermittelt. ",-1),q={key:0},L={key:1},N=i("br",null,null,-1);function E(e,t,A,D,T,I){const p=r("openwb-base-alert"),d=r("openwb-base-button-group-input"),g=r("openwb-base-card"),m=r("openwb-base-number-input"),c=r("openwb-base-submit-buttons");return u(),l("div",B,[i("form",w,[o(g,{title:"Steuerungsmodus"},{default:s(()=>[o(p,{subtype:"info"},{default:s(()=>[a(' Wird für den Steuerungsmodus "primary" gewählt, übernimmt diese openWB die alleinige Regelung und steuert ggf. vorhandene weitere openWB (z.B. externe openWB im Steuermodus secondary, openWB Pro, Satellit u.a.) fern. Sie werden in den Ladepunkt-Einstellungen der primary-openWB hinzugefügt. '),_,W,a(' Wird für den Steuerungsmodus "secondary" gewählt, übernimmt diese openWB keine Regelung und muss von einer anderen primary openWB ferngesteuert werden. Wichtig ist, dass in der secondary-openWB eine "interne openWB" mit der korrekten Bauart (= openWB-Hardwarevariante z.B. "Custom, Standard, Standard+, Duo, Buchse") konfiguriert ist. Bei einer Duo sind zwei "interne openWB" zu konfigurieren. Im "secondary"-Modus bleiben alle ausgeblendeten Einstellungen unbeachtet.'),k,a(" Eine bebilderte Anleitung zur Konfiguration der Ladepunkte findest Du auf der "),z,a(". ")]),_:1}),o(d,{title:"Steuerungsmodus",buttons:[{buttonValue:!1,text:"primary",class:"btn-outline-danger"},{buttonValue:!0,text:"secondary",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/extern"],"onUpdate:modelValue":t[0]||(t[0]=n=>e.updateState("openWB/general/extern",n))},null,8,["model-value"])]),_:1}),o(g,{title:"Hardware"},{default:s(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(u(),l("div",S,[o(p,{subtype:"info"},{default:s(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(u(),l("div",$,[o(d,{title:"Geschwindigkeit Regelintervall",buttons:[{buttonValue:10,text:"Normal",class:"btn-outline-success"},{buttonValue:20,text:"Langsam",class:"btn-outline-warning"},{buttonValue:60,text:"Sehr Langsam",class:"btn-outline-danger"}],"model-value":e.$store.state.mqtt["openWB/general/control_interval"],"onUpdate:modelValue":t[1]||(t[1]=n=>e.updateState("openWB/general/control_interval",n))},{help:s(()=>[a(' Sollten Probleme oder Fehlermeldungen auftauchen, stelle bitte zunächst das Regelintervall auf "Normal". Werden Module genutzt, welche z.B. eine Online-API zur Abfrage nutzen (höhere Latenzzeiten) oder möchte man weniger Regeleingriffe, so kann man das Regelintervall auf "Langsam" (20 Sekunden) herabsetzen. Die Einstellung „Sehr Langsam“ führt zu einer Regelzeit von 60 Sekunden.'),V,y]),_:1},8,["model-value"]),o(d,{title:"Netzschutz",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/grid_protection_configured"],"onUpdate:modelValue":t[2]||(t[2]=n=>e.updateState("openWB/general/grid_protection_configured",n))},{help:s(()=>[a(' Diese Option ist standardmäßig aktiviert und sollte so belassen werden. Bei Unterschreitung einer kritischen Frequenz des Stromnetzes wird die Ladung nach einer zufälligen Zeit zwischen 1 und 90 Sekunden pausiert. Der Lademodus wechselt auf "Stop". Sobald die Frequenz wieder in einem normalen Bereich ist wird automatisch der zuletzt gewählte Lademodus wieder aktiviert. Ebenso wird die Ladung bei Überschreiten von 51,8 Hz unterbrochen. Dies ist dann der Fall, wenn der Energieversorger Wartungsarbeiten am (Teil-)Netz durchführt und auf einen vorübergehenden Generator-Betrieb umschaltet. Die Erhöhung der Frequenz wird durchgeführt, um die PV Anlagen abzuschalten.'),x,P]),_:1},8,["model-value"]),b(` <openwb-base-button-group-input
+import{C as f}from"./index-f08a7306.js";import{_ as h,p as r,k as u,l,q as i,A as o,L as s,z as b,u as a}from"./vendor-20bb207d.js";import"./vendor-fortawesome-838df0c9.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"OpenwbGeneralConfig",mixins:[f],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/control_interval","openWB/general/grid_protection_configured","openWB/general/external_buttons_hw","openWB/general/notifications/selected","openWB/general/notifications/configuration","openWB/general/notifications/start_charging","openWB/general/notifications/stop_charging","openWB/general/notifications/plug","openWB/general/notifications/smart_home","openWB/general/price_kwh","openWB/general/range_unit"]}}},B={class:"generalConfig"},w={name:"generalConfigForm"},_=i("br",null,null,-1),W=i("br",null,null,-1),k=i("br",null,null,-1),z=i("a",{href:"https://openwb.de/main/?page_id=1025",target:"_blank",rel:"noopener noreferrer"}," Homepage ",-1),S={key:0},$={key:1},V=i("br",null,null,-1),y=i("span",{class:"text-danger"},' Nicht nur die Regelung der PV geführten Ladung, sondern auch die Ladestromänderung, beispielsweise “Stop“ etc., werden dann nur noch in diesem Intervall ausgeführt. Die Regelung wird insgesamt träger. Solange es keinen triftigen Grund gibt, sollte "Normal" gewählt werden. ',-1),x=i("br",null,null,-1),P=i("span",{class:"text-danger"}," Die Option ist nur aktiv, wenn der EVU-Zähler die Frequenz übermittelt. ",-1),q={key:0},L={key:1},N=i("br",null,null,-1);function E(e,t,A,D,T,I){const p=r("openwb-base-alert"),d=r("openwb-base-button-group-input"),g=r("openwb-base-card"),m=r("openwb-base-number-input"),c=r("openwb-base-submit-buttons");return u(),l("div",B,[i("form",w,[o(g,{title:"Steuerungsmodus"},{default:s(()=>[o(p,{subtype:"info"},{default:s(()=>[a(' Wird für den Steuerungsmodus "primary" gewählt, übernimmt diese openWB die alleinige Regelung und steuert ggf. vorhandene weitere openWB (z.B. externe openWB im Steuermodus secondary, openWB Pro, Satellit u.a.) fern. Sie werden in den Ladepunkt-Einstellungen der primary-openWB hinzugefügt. '),_,W,a(' Wird für den Steuerungsmodus "secondary" gewählt, übernimmt diese openWB keine Regelung und muss von einer anderen primary openWB ferngesteuert werden. Wichtig ist, dass in der secondary-openWB eine "interne openWB" mit der korrekten Bauart (= openWB-Hardwarevariante z.B. "Custom, Standard, Standard+, Duo, Buchse") konfiguriert ist. Bei einer Duo sind zwei "interne openWB" zu konfigurieren. Im "secondary"-Modus bleiben alle ausgeblendeten Einstellungen unbeachtet.'),k,a(" Eine bebilderte Anleitung zur Konfiguration der Ladepunkte findest Du auf der "),z,a(". ")]),_:1}),o(d,{title:"Steuerungsmodus",buttons:[{buttonValue:!1,text:"primary",class:"btn-outline-danger"},{buttonValue:!0,text:"secondary",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/extern"],"onUpdate:modelValue":t[0]||(t[0]=n=>e.updateState("openWB/general/extern",n))},null,8,["model-value"])]),_:1}),o(g,{title:"Hardware"},{default:s(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(u(),l("div",S,[o(p,{subtype:"info"},{default:s(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(u(),l("div",$,[o(d,{title:"Geschwindigkeit Regelintervall",buttons:[{buttonValue:10,text:"Normal",class:"btn-outline-success"},{buttonValue:20,text:"Langsam",class:"btn-outline-warning"},{buttonValue:60,text:"Sehr Langsam",class:"btn-outline-danger"}],"model-value":e.$store.state.mqtt["openWB/general/control_interval"],"onUpdate:modelValue":t[1]||(t[1]=n=>e.updateState("openWB/general/control_interval",n))},{help:s(()=>[a(' Sollten Probleme oder Fehlermeldungen auftauchen, stelle bitte zunächst das Regelintervall auf "Normal". Werden Module genutzt, welche z.B. eine Online-API zur Abfrage nutzen (höhere Latenzzeiten) oder möchte man weniger Regeleingriffe, so kann man das Regelintervall auf "Langsam" (20 Sekunden) herabsetzen. Die Einstellung „Sehr Langsam“ führt zu einer Regelzeit von 60 Sekunden.'),V,y]),_:1},8,["model-value"]),o(d,{title:"Netzschutz",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/general/grid_protection_configured"],"onUpdate:modelValue":t[2]||(t[2]=n=>e.updateState("openWB/general/grid_protection_configured",n))},{help:s(()=>[a(' Diese Option ist standardmäßig aktiviert und sollte so belassen werden. Bei Unterschreitung einer kritischen Frequenz des Stromnetzes wird die Ladung nach einer zufälligen Zeit zwischen 1 und 90 Sekunden pausiert. Der Lademodus wechselt auf "Stop". Sobald die Frequenz wieder in einem normalen Bereich ist wird automatisch der zuletzt gewählte Lademodus wieder aktiviert. Ebenso wird die Ladung bei Überschreiten von 51,8 Hz unterbrochen. Dies ist dann der Fall, wenn der Energieversorger Wartungsarbeiten am (Teil-)Netz durchführt und auf einen vorübergehenden Generator-Betrieb umschaltet. Die Erhöhung der Frequenz wird durchgeführt, um die PV Anlagen abzuschalten.'),x,P]),_:1},8,["model-value"]),b(` <openwb-base-button-group-input
 						title="Taster-Eingänge"
 						:model-value="
 							$store.state.mqtt[
diff --git a/web/settings/assets/HardwareInstallation-02a629c9.js b/web/settings/assets/HardwareInstallation-02a629c9.js
new file mode 100644
index 0000000000..8d76c30fe6
--- /dev/null
+++ b/web/settings/assets/HardwareInstallation-02a629c9.js
@@ -0,0 +1 @@
+import{l as N,d as U,t as G,R as F,S as H,K as J,L as Z,M as Q,F as $}from"./vendor-fortawesome-838df0c9.js";import{_ as e,C as X}from"./index-f08a7306.js";import{_ as M}from"./dynamic-import-helper-be004503.js";import{_ as y,p,k as a,l as c,A as n,L as i,u as v,x as A,q as m,a0 as W,y as l,a1 as Y,z as P,G as L,I as h,n as w,Q as ee,R as _e}from"./vendor-20bb207d.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";const te={name:"DeviceFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},deviceType:String,componentId:{default:void 0},componentType:String},methods:{updateConfiguration(_,o=void 0){this.$emit("update:configuration",{value:_,object:o})}}},oe={class:"device-fallback"},ie={key:0},re={key:1};function ne(_,o,u,O,s,r){const I=p("openwb-base-alert"),g=p("openwb-base-textarea");return a(),c("div",oe,[n(I,{subtype:"warning"},{default:i(()=>[v(" Es wurde keine Konfigurationsseite für den "),u.componentType?(a(),c("span",ie,' Komponenten-Typ "'+A(u.componentType)+'" ',1)):(a(),c("span",re,'Geräte-Typ "'+A(u.deviceType)+'"',1)),v(" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ")]),_:1}),n(g,{title:"Konfiguration",subtype:"json","model-value":u.configuration,"onUpdate:modelValue":o[0]||(o[0]=R=>r.updateConfiguration(R,"configuration"))},{help:i(()=>[v(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(I,{subtype:"info"},{default:i(()=>[m("pre",null,A(JSON.stringify(u.configuration,void 0,2)),1)]),_:1})])}const S=y(te,[["render",ne],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbDeviceConfigFallback.vue"]]),ue={name:"OpenwbConfigProxy",emits:["update:configuration"],props:{deviceId:{required:!0},deviceType:{type:String,required:!0},componentId:{default:void 0},componentType:{type:String,default:void 0},configuration:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading component: ${this.deviceType} / ${this.componentType}`),this.componentType!==void 0?W({loader:()=>M(Object.assign({"./alpha_ess/bat.vue":()=>e(()=>import("./bat-d94203e2.js"),["assets/bat-d94203e2.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./alpha_ess/counter.vue":()=>e(()=>import("./counter-16bcb8fc.js"),["assets/counter-16bcb8fc.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./alpha_ess/device.vue":()=>e(()=>import("./device-509acf7c.js"),["assets/device-509acf7c.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./alpha_ess/inverter.vue":()=>e(()=>import("./inverter-eef610e6.js"),["assets/inverter-eef610e6.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./batterx/bat.vue":()=>e(()=>import("./bat-17d0ebe7.js"),["assets/bat-17d0ebe7.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./batterx/counter.vue":()=>e(()=>import("./counter-d1489ce8.js"),["assets/counter-d1489ce8.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./batterx/device.vue":()=>e(()=>import("./device-9444169d.js"),["assets/device-9444169d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./batterx/external_inverter.vue":()=>e(()=>import("./external_inverter-21044b75.js"),["assets/external_inverter-21044b75.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./batterx/inverter.vue":()=>e(()=>import("./inverter-267fccce.js"),["assets/inverter-267fccce.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./byd/bat.vue":()=>e(()=>import("./bat-39b4c6ba.js"),["assets/bat-39b4c6ba.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./byd/device.vue":()=>e(()=>import("./device-cc75d571.js"),["assets/device-cc75d571.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./carlo_gavazzi/counter.vue":()=>e(()=>import("./counter-08f8d2f2.js"),["assets/counter-08f8d2f2.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./carlo_gavazzi/device.vue":()=>e(()=>import("./device-e67da7c1.js"),["assets/device-e67da7c1.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./discovergy/counter.vue":()=>e(()=>import("./counter-0d09b23e.js"),["assets/counter-0d09b23e.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./discovergy/device.vue":()=>e(()=>import("./device-d57c20ac.js"),["assets/device-d57c20ac.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./discovergy/inverter.vue":()=>e(()=>import("./inverter-96db7f1d.js"),["assets/inverter-96db7f1d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./e3dc/bat.vue":()=>e(()=>import("./bat-d04d3f5b.js"),["assets/bat-d04d3f5b.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./e3dc/counter.vue":()=>e(()=>import("./counter-969297fa.js"),["assets/counter-969297fa.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./e3dc/device.vue":()=>e(()=>import("./device-f356c73d.js"),["assets/device-f356c73d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./e3dc/external_inverter.vue":()=>e(()=>import("./external_inverter-5c208b04.js"),["assets/external_inverter-5c208b04.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./e3dc/inverter.vue":()=>e(()=>import("./inverter-be6aac70.js"),["assets/inverter-be6aac70.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./enphase/counter.vue":()=>e(()=>import("./counter-2524acf0.js"),["assets/counter-2524acf0.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./enphase/device.vue":()=>e(()=>import("./device-1548812a.js"),["assets/device-1548812a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./enphase/inverter.vue":()=>e(()=>import("./inverter-c90183ae.js"),["assets/inverter-c90183ae.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./fems/bat.vue":()=>e(()=>import("./bat-3f0ca072.js"),["assets/bat-3f0ca072.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./fems/counter.vue":()=>e(()=>import("./counter-57c9333b.js"),["assets/counter-57c9333b.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./fems/device.vue":()=>e(()=>import("./device-e95c0504.js"),["assets/device-e95c0504.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./fems/inverter.vue":()=>e(()=>import("./inverter-1c1592c9.js"),["assets/inverter-1c1592c9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./fronius/bat.vue":()=>e(()=>import("./bat-514861df.js"),["assets/bat-514861df.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./fronius/counter_s0.vue":()=>e(()=>import("./counter_s0-ba7ae169.js"),["assets/counter_s0-ba7ae169.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./fronius/counter_sm.vue":()=>e(()=>import("./counter_sm-ccecb663.js"),["assets/counter_sm-ccecb663.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./fronius/device.vue":()=>e(()=>import("./device-c7f104f4.js"),["assets/device-c7f104f4.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./fronius/inverter.vue":()=>e(()=>import("./inverter-0fd0b224.js"),["assets/inverter-0fd0b224.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./good_we/bat.vue":()=>e(()=>import("./bat-874f748e.js"),["assets/bat-874f748e.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./good_we/counter.vue":()=>e(()=>import("./counter-a3e434aa.js"),["assets/counter-a3e434aa.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./good_we/device.vue":()=>e(()=>import("./device-1a05e97a.js"),["assets/device-1a05e97a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./good_we/inverter.vue":()=>e(()=>import("./inverter-08367390.js"),["assets/inverter-08367390.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./http/bat.vue":()=>e(()=>import("./bat-0e028baf.js"),["assets/bat-0e028baf.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./http/counter.vue":()=>e(()=>import("./counter-75ce0061.js"),["assets/counter-75ce0061.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./http/device.vue":()=>e(()=>import("./device-e41e1249.js"),["assets/device-e41e1249.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./http/inverter.vue":()=>e(()=>import("./inverter-15408a2b.js"),["assets/inverter-15408a2b.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./huawei/bat.vue":()=>e(()=>import("./bat-46c566c9.js"),["assets/bat-46c566c9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./huawei/counter.vue":()=>e(()=>import("./counter-45ecd9ff.js"),["assets/counter-45ecd9ff.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./huawei/device.vue":()=>e(()=>import("./device-bfd97b22.js"),["assets/device-bfd97b22.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./huawei/inverter.vue":()=>e(()=>import("./inverter-86ab0f22.js"),["assets/inverter-86ab0f22.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./huawei_smartlogger/bat.vue":()=>e(()=>import("./bat-5b22e35d.js"),["assets/bat-5b22e35d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./huawei_smartlogger/counter.vue":()=>e(()=>import("./counter-6247163c.js"),["assets/counter-6247163c.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./huawei_smartlogger/device.vue":()=>e(()=>import("./device-3f5084e0.js"),["assets/device-3f5084e0.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./huawei_smartlogger/inverter.vue":()=>e(()=>import("./inverter-4c98a82a.js"),["assets/inverter-4c98a82a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./janitza/counter.vue":()=>e(()=>import("./counter-1ddce36f.js"),["assets/counter-1ddce36f.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./janitza/device.vue":()=>e(()=>import("./device-a2d2f22a.js"),["assets/device-a2d2f22a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./json/bat.vue":()=>e(()=>import("./bat-268a0365.js"),["assets/bat-268a0365.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./json/counter.vue":()=>e(()=>import("./counter-e3807695.js"),["assets/counter-e3807695.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./json/device.vue":()=>e(()=>import("./device-d3107147.js"),["assets/device-d3107147.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./json/inverter.vue":()=>e(()=>import("./inverter-5b0c8748.js"),["assets/inverter-5b0c8748.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_piko/counter.vue":()=>e(()=>import("./counter-b4f1d52c.js"),["assets/counter-b4f1d52c.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_piko/device.vue":()=>e(()=>import("./device-a81f5544.js"),["assets/device-a81f5544.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_piko/inverter.vue":()=>e(()=>import("./inverter-1f399f0d.js"),["assets/inverter-1f399f0d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_piko_old/device.vue":()=>e(()=>import("./device-5b3585a3.js"),["assets/device-5b3585a3.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_piko_old/inverter.vue":()=>e(()=>import("./inverter-8c6dadd9.js"),["assets/inverter-8c6dadd9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_plenticore/bat.vue":()=>e(()=>import("./bat-ec698ff1.js"),["assets/bat-ec698ff1.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_plenticore/counter.vue":()=>e(()=>import("./counter-9a41f79b.js"),["assets/counter-9a41f79b.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_plenticore/device.vue":()=>e(()=>import("./device-28066804.js"),["assets/device-28066804.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_plenticore/inverter.vue":()=>e(()=>import("./inverter-f9807fb1.js"),["assets/inverter-f9807fb1.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_sem/counter.vue":()=>e(()=>import("./counter-ed28bc4b.js"),["assets/counter-ed28bc4b.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_sem/device.vue":()=>e(()=>import("./device-e97ebded.js"),["assets/device-e97ebded.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_steca/device.vue":()=>e(()=>import("./device-895b9b05.js"),["assets/device-895b9b05.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_steca/inverter.vue":()=>e(()=>import("./inverter-508f415f.js"),["assets/inverter-508f415f.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./lg/bat.vue":()=>e(()=>import("./bat-0eeeca9c.js"),["assets/bat-0eeeca9c.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./lg/counter.vue":()=>e(()=>import("./counter-cf4834fd.js"),["assets/counter-cf4834fd.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./lg/device.vue":()=>e(()=>import("./device-e5846fb7.js"),["assets/device-e5846fb7.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./lg/inverter.vue":()=>e(()=>import("./inverter-e5461fd3.js"),["assets/inverter-e5461fd3.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./mqtt/bat.vue":()=>e(()=>import("./bat-3af1a10a.js"),["assets/bat-3af1a10a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./mqtt/counter.vue":()=>e(()=>import("./counter-1516cbf4.js"),["assets/counter-1516cbf4.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./mqtt/device.vue":()=>e(()=>import("./device-49750792.js"),["assets/device-49750792.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./mqtt/inverter.vue":()=>e(()=>import("./inverter-40f5b027.js"),["assets/inverter-40f5b027.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_bat_kit/bat.vue":()=>e(()=>import("./bat-bbb09227.js"),["assets/bat-bbb09227.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_bat_kit/device.vue":()=>e(()=>import("./device-a88fff7e.js"),["assets/device-a88fff7e.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_evu_kit/bat.vue":()=>e(()=>import("./bat-27edc2dc.js"),["assets/bat-27edc2dc.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_evu_kit/counter.vue":()=>e(()=>import("./counter-4fb4e495.js"),["assets/counter-4fb4e495.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_evu_kit/device.vue":()=>e(()=>import("./device-e690bc67.js"),["assets/device-e690bc67.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_evu_kit/inverter.vue":()=>e(()=>import("./inverter-a4741525.js"),["assets/inverter-a4741525.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_flex/bat.vue":()=>e(()=>import("./bat-aaf46348.js"),["assets/bat-aaf46348.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_flex/counter.vue":()=>e(()=>import("./counter-0abbb386.js"),["assets/counter-0abbb386.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_flex/device.vue":()=>e(()=>import("./device-0ec37631.js"),["assets/device-0ec37631.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_flex/inverter.vue":()=>e(()=>import("./inverter-d02eb41e.js"),["assets/inverter-d02eb41e.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_pv_kit/device.vue":()=>e(()=>import("./device-4005e628.js"),["assets/device-4005e628.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_pv_kit/inverter.vue":()=>e(()=>import("./inverter-1b75ddba.js"),["assets/inverter-1b75ddba.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./powerdog/counter.vue":()=>e(()=>import("./counter-c9dc9c81.js"),["assets/counter-c9dc9c81.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./powerdog/device.vue":()=>e(()=>import("./device-b1434489.js"),["assets/device-b1434489.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./powerdog/inverter.vue":()=>e(()=>import("./inverter-f7d9af29.js"),["assets/inverter-f7d9af29.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./powerfox/counter.vue":()=>e(()=>import("./counter-b804ace4.js"),["assets/counter-b804ace4.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./powerfox/device.vue":()=>e(()=>import("./device-8715b56d.js"),["assets/device-8715b56d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./powerfox/inverter.vue":()=>e(()=>import("./inverter-3d45d55a.js"),["assets/inverter-3d45d55a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./qcells/bat.vue":()=>e(()=>import("./bat-df8e198a.js"),["assets/bat-df8e198a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./qcells/counter.vue":()=>e(()=>import("./counter-e15f2c06.js"),["assets/counter-e15f2c06.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./qcells/device.vue":()=>e(()=>import("./device-8271ebf3.js"),["assets/device-8271ebf3.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./qcells/inverter.vue":()=>e(()=>import("./inverter-326280ce.js"),["assets/inverter-326280ce.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./rct/bat.vue":()=>e(()=>import("./bat-f963a986.js"),["assets/bat-f963a986.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./rct/counter.vue":()=>e(()=>import("./counter-83354bca.js"),["assets/counter-83354bca.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./rct/device.vue":()=>e(()=>import("./device-3fe4b5f3.js"),["assets/device-3fe4b5f3.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./rct/inverter.vue":()=>e(()=>import("./inverter-8ca711bc.js"),["assets/inverter-8ca711bc.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./saxpower/bat.vue":()=>e(()=>import("./bat-595642c8.js"),["assets/bat-595642c8.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./saxpower/device.vue":()=>e(()=>import("./device-a394c36e.js"),["assets/device-a394c36e.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./shelly/device.vue":()=>e(()=>import("./device-e8e7a237.js"),["assets/device-e8e7a237.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./shelly/inverter.vue":()=>e(()=>import("./inverter-3d819a6f.js"),["assets/inverter-3d819a6f.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./siemens/bat.vue":()=>e(()=>import("./bat-e62d7b1e.js"),["assets/bat-e62d7b1e.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./siemens/counter.vue":()=>e(()=>import("./counter-0524aa8c.js"),["assets/counter-0524aa8c.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./siemens/device.vue":()=>e(()=>import("./device-bf858f4d.js"),["assets/device-bf858f4d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./siemens/inverter.vue":()=>e(()=>import("./inverter-47bedabe.js"),["assets/inverter-47bedabe.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./siemens_sentron/counter.vue":()=>e(()=>import("./counter-00e8bfb9.js"),["assets/counter-00e8bfb9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./siemens_sentron/device.vue":()=>e(()=>import("./device-7e999eff.js"),["assets/device-7e999eff.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_shm/counter.vue":()=>e(()=>import("./counter-25d1e220.js"),["assets/counter-25d1e220.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_shm/device.vue":()=>e(()=>import("./device-3711a41a.js"),["assets/device-3711a41a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_shm/inverter.vue":()=>e(()=>import("./inverter-6ce20d89.js"),["assets/inverter-6ce20d89.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_boy/bat.vue":()=>e(()=>import("./bat-e8cdd332.js"),["assets/bat-e8cdd332.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_boy/bat_smart_energy.vue":()=>e(()=>import("./bat_smart_energy-5d29a479.js"),["assets/bat_smart_energy-5d29a479.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_boy/counter.vue":()=>e(()=>import("./counter-107b4963.js"),["assets/counter-107b4963.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_boy/device.vue":()=>e(()=>import("./device-6422d305.js"),["assets/device-6422d305.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_boy/inverter.vue":()=>e(()=>import("./inverter-89491124.js"),["assets/inverter-89491124.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_island/bat.vue":()=>e(()=>import("./bat-ce4aa848.js"),["assets/bat-ce4aa848.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_island/device.vue":()=>e(()=>import("./device-d4d23cd7.js"),["assets/device-d4d23cd7.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_webbox/device.vue":()=>e(()=>import("./device-c365f5a7.js"),["assets/device-c365f5a7.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_webbox/inverter.vue":()=>e(()=>import("./inverter-92eb5977.js"),["assets/inverter-92eb5977.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./smart_me/counter.vue":()=>e(()=>import("./counter-9c24dc5c.js"),["assets/counter-9c24dc5c.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./smart_me/device.vue":()=>e(()=>import("./device-95bb6ed4.js"),["assets/device-95bb6ed4.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./smart_me/inverter.vue":()=>e(()=>import("./inverter-af852271.js"),["assets/inverter-af852271.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./smartfox/counter.vue":()=>e(()=>import("./counter-cd290a98.js"),["assets/counter-cd290a98.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./smartfox/device.vue":()=>e(()=>import("./device-d6905669.js"),["assets/device-d6905669.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_log/counter.vue":()=>e(()=>import("./counter-b09d3ede.js"),["assets/counter-b09d3ede.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_log/device.vue":()=>e(()=>import("./device-52389f33.js"),["assets/device-52389f33.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_log/inverter.vue":()=>e(()=>import("./inverter-b1415371.js"),["assets/inverter-b1415371.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_view/counter.vue":()=>e(()=>import("./counter-fca60eb6.js"),["assets/counter-fca60eb6.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_view/device.vue":()=>e(()=>import("./device-3330c205.js"),["assets/device-3330c205.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_view/inverter.vue":()=>e(()=>import("./inverter-7f5cbd1f.js"),["assets/inverter-7f5cbd1f.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_watt/bat.vue":()=>e(()=>import("./bat-4b1f210f.js"),["assets/bat-4b1f210f.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_watt/counter.vue":()=>e(()=>import("./counter-32007d3e.js"),["assets/counter-32007d3e.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_watt/device.vue":()=>e(()=>import("./device-11080b2d.js"),["assets/device-11080b2d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_watt/inverter.vue":()=>e(()=>import("./inverter-90b5924d.js"),["assets/inverter-90b5924d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_world/counter.vue":()=>e(()=>import("./counter-2fda105e.js"),["assets/counter-2fda105e.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_world/device.vue":()=>e(()=>import("./device-72498906.js"),["assets/device-72498906.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_world/inverter.vue":()=>e(()=>import("./inverter-e3d31521.js"),["assets/inverter-e3d31521.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solaredge/bat.vue":()=>e(()=>import("./bat-f2ff4071.js"),["assets/bat-f2ff4071.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solaredge/counter.vue":()=>e(()=>import("./counter-71a69a0f.js"),["assets/counter-71a69a0f.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solaredge/device.vue":()=>e(()=>import("./device-eb39e5e3.js"),["assets/device-eb39e5e3.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solaredge/external_inverter.vue":()=>e(()=>import("./external_inverter-af9b2b79.js"),["assets/external_inverter-af9b2b79.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solaredge/inverter.vue":()=>e(()=>import("./inverter-5d68f662.js"),["assets/inverter-5d68f662.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solarmax/bat.vue":()=>e(()=>import("./bat-b2de0630.js"),["assets/bat-b2de0630.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solarmax/device.vue":()=>e(()=>import("./device-e304fcca.js"),["assets/device-e304fcca.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solarmax/inverter.vue":()=>e(()=>import("./inverter-a532223b.js"),["assets/inverter-a532223b.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solax/bat.vue":()=>e(()=>import("./bat-93524d1b.js"),["assets/bat-93524d1b.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solax/counter.vue":()=>e(()=>import("./counter-09b39d2d.js"),["assets/counter-09b39d2d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solax/device.vue":()=>e(()=>import("./device-4c8d99b2.js"),["assets/device-4c8d99b2.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solax/inverter.vue":()=>e(()=>import("./inverter-5cfbe42d.js"),["assets/inverter-5cfbe42d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sonnenbatterie/bat.vue":()=>e(()=>import("./bat-8c7d349e.js"),["assets/bat-8c7d349e.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sonnenbatterie/counter.vue":()=>e(()=>import("./counter-e7921fa4.js"),["assets/counter-e7921fa4.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sonnenbatterie/device.vue":()=>e(()=>import("./device-0be142e9.js"),["assets/device-0be142e9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sonnenbatterie/inverter.vue":()=>e(()=>import("./inverter-a6e26156.js"),["assets/inverter-a6e26156.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./studer/bat.vue":()=>e(()=>import("./bat-22a2eeff.js"),["assets/bat-22a2eeff.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./studer/device.vue":()=>e(()=>import("./device-f422a199.js"),["assets/device-f422a199.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./studer/inverter.vue":()=>e(()=>import("./inverter-d2ccf27d.js"),["assets/inverter-d2ccf27d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sungrow/bat.vue":()=>e(()=>import("./bat-7500700f.js"),["assets/bat-7500700f.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sungrow/counter.vue":()=>e(()=>import("./counter-9513e8db.js"),["assets/counter-9513e8db.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sungrow/device.vue":()=>e(()=>import("./device-69672183.js"),["assets/device-69672183.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sungrow/inverter.vue":()=>e(()=>import("./inverter-3fdb1742.js"),["assets/inverter-3fdb1742.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sunways/device.vue":()=>e(()=>import("./device-1034f28e.js"),["assets/device-1034f28e.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sunways/inverter.vue":()=>e(()=>import("./inverter-b959eebb.js"),["assets/inverter-b959eebb.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./tesla/bat.vue":()=>e(()=>import("./bat-9894d537.js"),["assets/bat-9894d537.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./tesla/counter.vue":()=>e(()=>import("./counter-25dcea49.js"),["assets/counter-25dcea49.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./tesla/device.vue":()=>e(()=>import("./device-ac3bc5b3.js"),["assets/device-ac3bc5b3.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./tesla/inverter.vue":()=>e(()=>import("./inverter-c08d4e42.js"),["assets/inverter-c08d4e42.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./varta/bat_api.vue":()=>e(()=>import("./bat_api-bbcd36bc.js"),["assets/bat_api-bbcd36bc.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./varta/bat_modbus.vue":()=>e(()=>import("./bat_modbus-7b1ae23d.js"),["assets/bat_modbus-7b1ae23d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./varta/counter.vue":()=>e(()=>import("./counter-5cb15a92.js"),["assets/counter-5cb15a92.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./varta/device.vue":()=>e(()=>import("./device-246d5e43.js"),["assets/device-246d5e43.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./victron/bat.vue":()=>e(()=>import("./bat-6c62c4f0.js"),["assets/bat-6c62c4f0.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./victron/counter.vue":()=>e(()=>import("./counter-9a77fa00.js"),["assets/counter-9a77fa00.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./victron/device.vue":()=>e(()=>import("./device-84570e67.js"),["assets/device-84570e67.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./victron/inverter.vue":()=>e(()=>import("./inverter-135f51a3.js"),["assets/inverter-135f51a3.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./virtual/counter.vue":()=>e(()=>import("./counter-a13ecb51.js"),["assets/counter-a13ecb51.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./virtual/device.vue":()=>e(()=>import("./device-81934251.js"),["assets/device-81934251.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./vzlogger/counter.vue":()=>e(()=>import("./counter-6264518e.js"),["assets/counter-6264518e.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./vzlogger/device.vue":()=>e(()=>import("./device-4a98b784.js"),["assets/device-4a98b784.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./vzlogger/inverter.vue":()=>e(()=>import("./inverter-9962a05f.js"),["assets/inverter-9962a05f.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./youless/device.vue":()=>e(()=>import("./device-3ddc3e24.js"),["assets/device-3ddc3e24.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./youless/inverter.vue":()=>e(()=>import("./inverter-a028ca0c.js"),["assets/inverter-a028ca0c.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"])}),`./${this.deviceType}/${this.componentType}.vue`),errorComponent:S}):W({loader:()=>M(Object.assign({"./alpha_ess/device.vue":()=>e(()=>import("./device-509acf7c.js"),["assets/device-509acf7c.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./batterx/device.vue":()=>e(()=>import("./device-9444169d.js"),["assets/device-9444169d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./byd/device.vue":()=>e(()=>import("./device-cc75d571.js"),["assets/device-cc75d571.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./carlo_gavazzi/device.vue":()=>e(()=>import("./device-e67da7c1.js"),["assets/device-e67da7c1.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./discovergy/device.vue":()=>e(()=>import("./device-d57c20ac.js"),["assets/device-d57c20ac.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./e3dc/device.vue":()=>e(()=>import("./device-f356c73d.js"),["assets/device-f356c73d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./enphase/device.vue":()=>e(()=>import("./device-1548812a.js"),["assets/device-1548812a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./fems/device.vue":()=>e(()=>import("./device-e95c0504.js"),["assets/device-e95c0504.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./fronius/device.vue":()=>e(()=>import("./device-c7f104f4.js"),["assets/device-c7f104f4.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./good_we/device.vue":()=>e(()=>import("./device-1a05e97a.js"),["assets/device-1a05e97a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./http/device.vue":()=>e(()=>import("./device-e41e1249.js"),["assets/device-e41e1249.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./huawei/device.vue":()=>e(()=>import("./device-bfd97b22.js"),["assets/device-bfd97b22.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./huawei_smartlogger/device.vue":()=>e(()=>import("./device-3f5084e0.js"),["assets/device-3f5084e0.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./janitza/device.vue":()=>e(()=>import("./device-a2d2f22a.js"),["assets/device-a2d2f22a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./json/device.vue":()=>e(()=>import("./device-d3107147.js"),["assets/device-d3107147.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_piko/device.vue":()=>e(()=>import("./device-a81f5544.js"),["assets/device-a81f5544.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_piko_old/device.vue":()=>e(()=>import("./device-5b3585a3.js"),["assets/device-5b3585a3.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_plenticore/device.vue":()=>e(()=>import("./device-28066804.js"),["assets/device-28066804.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_sem/device.vue":()=>e(()=>import("./device-e97ebded.js"),["assets/device-e97ebded.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kostal_steca/device.vue":()=>e(()=>import("./device-895b9b05.js"),["assets/device-895b9b05.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./lg/device.vue":()=>e(()=>import("./device-e5846fb7.js"),["assets/device-e5846fb7.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./mqtt/device.vue":()=>e(()=>import("./device-49750792.js"),["assets/device-49750792.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_bat_kit/device.vue":()=>e(()=>import("./device-a88fff7e.js"),["assets/device-a88fff7e.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_evu_kit/device.vue":()=>e(()=>import("./device-e690bc67.js"),["assets/device-e690bc67.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_flex/device.vue":()=>e(()=>import("./device-0ec37631.js"),["assets/device-0ec37631.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./openwb_pv_kit/device.vue":()=>e(()=>import("./device-4005e628.js"),["assets/device-4005e628.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./powerdog/device.vue":()=>e(()=>import("./device-b1434489.js"),["assets/device-b1434489.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./powerfox/device.vue":()=>e(()=>import("./device-8715b56d.js"),["assets/device-8715b56d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./qcells/device.vue":()=>e(()=>import("./device-8271ebf3.js"),["assets/device-8271ebf3.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./rct/device.vue":()=>e(()=>import("./device-3fe4b5f3.js"),["assets/device-3fe4b5f3.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./saxpower/device.vue":()=>e(()=>import("./device-a394c36e.js"),["assets/device-a394c36e.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./shelly/device.vue":()=>e(()=>import("./device-e8e7a237.js"),["assets/device-e8e7a237.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./siemens/device.vue":()=>e(()=>import("./device-bf858f4d.js"),["assets/device-bf858f4d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./siemens_sentron/device.vue":()=>e(()=>import("./device-7e999eff.js"),["assets/device-7e999eff.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_shm/device.vue":()=>e(()=>import("./device-3711a41a.js"),["assets/device-3711a41a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_boy/device.vue":()=>e(()=>import("./device-6422d305.js"),["assets/device-6422d305.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_island/device.vue":()=>e(()=>import("./device-d4d23cd7.js"),["assets/device-d4d23cd7.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sma_webbox/device.vue":()=>e(()=>import("./device-c365f5a7.js"),["assets/device-c365f5a7.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./smart_me/device.vue":()=>e(()=>import("./device-95bb6ed4.js"),["assets/device-95bb6ed4.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./smartfox/device.vue":()=>e(()=>import("./device-d6905669.js"),["assets/device-d6905669.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_log/device.vue":()=>e(()=>import("./device-52389f33.js"),["assets/device-52389f33.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_view/device.vue":()=>e(()=>import("./device-3330c205.js"),["assets/device-3330c205.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_watt/device.vue":()=>e(()=>import("./device-11080b2d.js"),["assets/device-11080b2d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solar_world/device.vue":()=>e(()=>import("./device-72498906.js"),["assets/device-72498906.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solaredge/device.vue":()=>e(()=>import("./device-eb39e5e3.js"),["assets/device-eb39e5e3.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solarmax/device.vue":()=>e(()=>import("./device-e304fcca.js"),["assets/device-e304fcca.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./solax/device.vue":()=>e(()=>import("./device-4c8d99b2.js"),["assets/device-4c8d99b2.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sonnenbatterie/device.vue":()=>e(()=>import("./device-0be142e9.js"),["assets/device-0be142e9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./studer/device.vue":()=>e(()=>import("./device-f422a199.js"),["assets/device-f422a199.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sungrow/device.vue":()=>e(()=>import("./device-69672183.js"),["assets/device-69672183.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./sunways/device.vue":()=>e(()=>import("./device-1034f28e.js"),["assets/device-1034f28e.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./tesla/device.vue":()=>e(()=>import("./device-ac3bc5b3.js"),["assets/device-ac3bc5b3.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./varta/device.vue":()=>e(()=>import("./device-246d5e43.js"),["assets/device-246d5e43.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./victron/device.vue":()=>e(()=>import("./device-84570e67.js"),["assets/device-84570e67.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./virtual/device.vue":()=>e(()=>import("./device-81934251.js"),["assets/device-81934251.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./vzlogger/device.vue":()=>e(()=>import("./device-4a98b784.js"),["assets/device-4a98b784.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./youless/device.vue":()=>e(()=>import("./device-3ddc3e24.js"),["assets/device-3ddc3e24.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"])}),`./${this.deviceType}/device.vue`),errorComponent:S})}},methods:{updateConfiguration(_){this.$emit("update:configuration",_)}}};function de(_,o,u,O,s,r){return a(),l(Y(r.myComponent),{configuration:u.configuration,deviceId:u.deviceId,deviceType:u.deviceType,componentId:u.componentId,componentType:u.componentType,"onUpdate:configuration":o[0]||(o[0]=I=>r.updateConfiguration(I))},null,40,["configuration","deviceId","deviceType","componentId","componentType"])}const ve=y(ue,[["render",de],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbConfigProxy.vue"]]);N.add(U,G,F,H,J,Z,Q);const ae={name:"OpenwbHardwareInstallation",mixins:[X],emits:["sendCommand"],components:{FontAwesomeIcon:$,OpenwbConfigProxy:ve},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/get/hierarchy","openWB/system/device/+/config","openWB/system/device/+/component/+/config","openWB/system/configurable/devices_components"],deviceToAdd:void 0,showDeviceRemoveModal:!1,modalDevice:void 0,modalDeviceName:"",componentToAdd:[],showComponentRemoveModal:!1,modalComponent:void 0,modalComponentName:""}},computed:{installedDevices:{get(){return this.getWildcardTopics("openWB/system/device/+/config")}},installedComponents:{get(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")}}},methods:{getComponentTypeClass(_){return _.match(/^(.+_)?counter(_.+)?$/)?"danger":_.match(/^(.+_)?inverter(_.+)?$/)?"success":_.match(/^(.+_)?bat(_.+)?$/)?"warning":"dark"},getComponentTypeIcon(_){return _.match(/^(.+_)?counter(_.+)?$/)?["fas","fa-gauge-high"]:_.match(/^(.+_)?inverter(_.+)?$/)?["fas","fa-solar-panel"]:_.match(/^(.+_)?bat(_.+)?$/)?["fas","fa-car-battery"]:["fas","fa-microchip"]},getMyInstalledComponents(_){return this.getWildcardTopics("openWB/system/device/"+_+"/component/+/config")},deviceHasConfiguredComponents(_){return Object.keys(this.getMyInstalledComponents(_)).length>0},addDevice(){this.$emit("sendCommand",{command:"addDevice",data:{type:this.deviceToAdd}})},removeDeviceModal(_,o,u){u.stopPropagation(),this.modalDevice=_,this.modalDeviceName=o,this.showDeviceRemoveModal=!0},removeDevice(_){this.showDeviceRemoveModal=!1,_=="confirm"&&(console.info("request removal of device '"+this.modalDevice+"'"),this.$emit("sendCommand",{command:"removeDevice",data:{id:this.modalDevice}}))},getDeviceList(){return this.$store.state.mqtt["openWB/system/configurable/devices_components"]},addComponent(_,o,u){this.$emit("sendCommand",{command:"addComponent",data:{deviceId:_,deviceType:o,type:u}})},removeComponentModal(_,o,u,O,s){s.stopPropagation(),this.modalComponent={deviceId:_,id:o,type:u},this.modalComponentName=O,this.showComponentRemoveModal=!0},removeComponent(_){this.showComponentRemoveModal=!1,_=="confirm"&&(console.info("request removal of component '"+this.modalComponent.id+"' from device '"+this.modalComponent.deviceId+"' type '"+this.modalComponent.type+"'"),this.$emit("sendCommand",{command:"removeComponent",data:this.modalComponent}))},getComponentList(_){return _===void 0?[]:(console.debug("finding components for '"+_+"'"),this.$store.state.mqtt["openWB/system/configurable/devices_components"].find(u=>u.value===_).component)},updateConfiguration(_,o){console.debug("updateConfiguration",_,o),this.updateState(_,o.value,o.object)}}},E=_=>(ee("data-v-8595d6ae"),_=_(),_e(),_),se={class:"hardwareInstallation"},me={name:"hardwareInstallationForm"},pe={key:0},ce={key:1},Ee={key:1},le=E(()=>m("hr",null,null,-1)),Te=E(()=>m("hr",null,null,-1)),Ie=E(()=>m("hr",null,null,-1)),Ve=E(()=>m("hr",null,null,-1)),Ae={class:"col-1"},Re={key:0},De={class:"col-1"},Pe=E(()=>m("br",null,null,-1)),Oe=E(()=>m("br",null,null,-1)),Le=E(()=>m("br",null,null,-1)),ge=E(()=>m("br",null,null,-1)),be=E(()=>m("br",null,null,-1)),fe=E(()=>m("br",null,null,-1));function he(_,o,u,O,s,r){const I=p("openwb-base-modal-dialog"),g=p("router-link"),R=p("openwb-base-alert"),V=p("font-awesome-icon"),b=p("openwb-base-avatar"),k=p("openwb-base-text-input"),C=p("openwb-config-proxy"),q=p("openwb-base-heading"),f=p("openwb-base-card"),x=p("openwb-base-click-button"),B=p("openwb-base-select-input"),j=p("openwb-base-submit-buttons");return a(),c(L,null,[P(" modal dialogs "),n(I,{show:s.showDeviceRemoveModal,title:"Gerät löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:r.removeDevice},{default:i(()=>[v(' Wollen Sie das Gerät "'+A(s.modalDeviceName)+'" inklusive aller Komponenten wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),n(I,{show:s.showComponentRemoveModal,title:"Komponente löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:r.removeComponent},{default:i(()=>[v(' Wollen Sie die Komponente "'+A(s.modalComponentName)+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),P(" main content "),m("div",se,[m("form",me,[n(R,{subtype:"info"},{default:i(()=>[v(" Wenn neue Komponenten - insbesondere Zähler - konfiguriert wurden, ist auch das "),n(g,{to:"/LoadManagementConfiguration"},{default:i(()=>[v(" Lastmanagement ")]),_:1}),v(" zu prüfen! ")]),_:1}),n(f,{title:"Geräte und Komponenten"},{default:i(()=>[_.$store.state.mqtt["openWB/general/extern"]===!0?(a(),c("div",pe,[n(R,{subtype:"info"},{default:i(()=>[v(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),c("div",ce,[(a(!0),c(L,null,h(r.installedDevices,(t,z)=>(a(),l(f,{key:t.id,collapsible:!0,collapsed:!0,subtype:"dark"},{header:i(()=>[n(V,{"fixed-width":"",icon:["fas","network-wired"]}),v(" "+A(t.name),1)]),actions:i(d=>[d.collapsed?(a(),c("div",Ee,[(a(!0),c(L,null,h(r.getMyInstalledComponents(t.id),T=>(a(),l(b,{key:T.id,class:w("ml-1 bg-"+r.getComponentTypeClass(T.type))},{default:i(()=>[n(V,{"fixed-width":"",icon:r.getComponentTypeIcon(T.type)},null,8,["icon"])]),_:2},1032,["class"]))),128))])):(a(),l(b,{key:0,class:"bg-danger clickable",onClick:T=>r.removeDeviceModal(t.id,t.name,T)},{default:i(()=>[n(V,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:i(()=>[n(k,{title:"Bezeichnung",subtype:"text","model-value":t.name,"onUpdate:modelValue":d=>_.updateState(z,d,"name")},null,8,["model-value","onUpdate:modelValue"]),le,n(C,{deviceId:t.id,deviceType:t.type,configuration:t.configuration,"onUpdate:configuration":d=>r.updateConfiguration(z,d)},null,8,["deviceId","deviceType","configuration","onUpdate:configuration"]),Te,n(q,null,{default:i(()=>[v("Komponenten")]),_:1}),r.deviceHasConfiguredComponents(t.id)?P("v-if",!0):(a(),l(R,{key:0,subtype:"warning"},{default:i(()=>[v(" Es wurden noch keine Komponenten zu diesem Gerät angelegt. ")]),_:1})),(a(!0),c(L,null,h(r.getMyInstalledComponents(t.id),(d,T)=>(a(),l(f,{key:d.id,collapsible:!0,collapsed:!0,subtype:r.getComponentTypeClass(d.type)},{header:i(()=>[n(V,{"fixed-width":"",icon:r.getComponentTypeIcon(d.type)},null,8,["icon"]),v(" "+A(d.name),1)]),actions:i(D=>[D.collapsed?P("v-if",!0):(a(),l(b,{key:0,class:"bg-danger clickable",onClick:K=>r.removeComponentModal(t.id,d.id,d.type,d.name,K)},{default:i(()=>[n(V,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:i(()=>[n(k,{title:"Bezeichnung",subtype:"text","model-value":d.name,"onUpdate:modelValue":D=>_.updateState(T,D,"name")},null,8,["model-value","onUpdate:modelValue"]),Ie,n(C,{deviceId:t.id,deviceType:t.type,componentId:d.id,componentType:d.type,configuration:d.configuration,"onUpdate:configuration":D=>r.updateConfiguration(T,D)},null,8,["deviceId","deviceType","componentId","componentType","configuration","onUpdate:configuration"])]),_:2},1032,["subtype"]))),128)),Ve,r.getComponentList(t.type).length?(a(),l(B,{key:1,class:"mb-2",title:"Verfügbare Komponenten",notSelected:"Bitte auswählen",options:r.getComponentList(t.type),"model-value":s.componentToAdd[t.id],"onUpdate:modelValue":d=>s.componentToAdd[t.id]=d},{append:i(()=>[m("span",Ae,[n(x,{class:w(s.componentToAdd[t.id]===void 0?"btn-outline-success":"btn-success clickable"),disabled:s.componentToAdd[t.id]===void 0,onButtonClicked:d=>r.addComponent(t.id,t.type,s.componentToAdd[t.id])},{default:i(()=>[n(V,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["class","disabled","onButtonClicked"])])]),help:i(()=>[v(" Bitte eine Komponente auswählen, die hinzugefügt werden soll. Für jeden Datensatz, z.B. Wechselrichter- und Batteriedaten, muss eine Wechselrichter- und eine Batteriekomponente hinzugefügt werden. ")]),_:2},1032,["options","model-value","onUpdate:modelValue"])):(a(),l(R,{key:2,subtype:"info"},{default:i(()=>[v(" Dieses System bietet keine Komponenten zur Installation an. ")]),_:1}))]),_:2},1024))),128)),Object.keys(r.installedDevices).length>0?(a(),c("hr",Re)):P("v-if",!0),n(B,{class:"mb-2",title:"Verfügbare Geräte",notSelected:"Bitte auswählen",options:r.getDeviceList(),"model-value":s.deviceToAdd,"onUpdate:modelValue":o[0]||(o[0]=t=>s.deviceToAdd=t)},{append:i(()=>[m("span",De,[n(x,{class:w(s.deviceToAdd===void 0?"btn-outline-success":"btn-success clickable"),disabled:s.deviceToAdd===void 0,onButtonClicked:r.addDevice},{default:i(()=>[n(V,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["class","disabled","onButtonClicked"])])]),help:i(()=>[v(' Die openWB-Regelung ist auf Werte von MESSPUNKTEN (Zähler, Energy Meter usw.) angewiesen. Hierfür werden "Geräte" und "Komponenten" verwendet.'),Pe,v(' Ein "Gerät" wird hierbei durch seine IP-Adresse spezifiziert (häufig durch manuelle Eingabe oder manchmal automatisch ermittelt) und kann über mehrere untergeordnete "Komponenten" verfügen, z.B. einen Messpunkt für PV-Erzeugung, einen Messpunkt für Netzeinspeisung/-bezug am EVU-Punkt usw.. Ein "Gerät" bedingt somit immer mindestens eine zugehörige "Komponente".'),Oe,Le,v(' Bsp: Werden die Werte von verschiedenen Messpunkten (z.B. PV und EVU) über die gleiche IP-Adresse abgefragt, wird dafür ein "Gerät" mit zwei "Komponenten" für PV- und EVU- Messpunkt angelegt.'),ge,v(' Verfügt dagegen jeder Messpunkt über eine eigene IP-Adresse, wird jeder Messpunkt als eigenes "Gerät" mit nur einer "Komponente" angelegt.'),be,fe,v(' Das "Gerät" wird in der dropdown-Liste ausgewählt und mit "+" der Regelung hinzugefügt. Im Anschluss erfolgt die Konfiguration des "Gerätes" innerhalb des schwarzen "Geräte"-Reiters. ')]),_:1},8,["options","model-value"])]))]),_:1}),n(j,{formName:"hardwareInstallationForm",onSave:o[1]||(o[1]=t=>_.$emit("save")),onReset:o[2]||(o[2]=t=>_.$emit("reset")),onDefaults:o[3]||(o[3]=t=>_.$emit("defaults"))})])])],64)}const We=y(ae,[["render",he],["__scopeId","data-v-8595d6ae"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/HardwareInstallation.vue"]]);export{We as default};
diff --git a/web/settings/assets/HardwareInstallation-053ec617.js b/web/settings/assets/HardwareInstallation-053ec617.js
deleted file mode 100644
index 4ff052996b..0000000000
--- a/web/settings/assets/HardwareInstallation-053ec617.js
+++ /dev/null
@@ -1 +0,0 @@
-import{l as N,d as U,t as G,R as F,S as H,K as J,L as Z,M as Q,F as $}from"./vendor-fortawesome-ad83e535.js";import{_ as e,C as X}from"./index-cbcca7a0.js";import{_ as M}from"./dynamic-import-helper-be004503.js";import{_ as y,p,k as a,l as c,A as n,L as i,u as v,x as A,q as m,a0 as W,y as l,a1 as Y,z as P,G as L,I as h,n as w,Q as ee,R as _e}from"./vendor-94ac8c48.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";const te={name:"DeviceFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},deviceType:String,componentId:{default:void 0},componentType:String},methods:{updateConfiguration(_,o=void 0){this.$emit("update:configuration",{value:_,object:o})}}},oe={class:"device-fallback"},ie={key:0},re={key:1};function ne(_,o,u,O,s,r){const I=p("openwb-base-alert"),g=p("openwb-base-textarea");return a(),c("div",oe,[n(I,{subtype:"warning"},{default:i(()=>[v(" Es wurde keine Konfigurationsseite für den "),u.componentType?(a(),c("span",ie,' Komponenten-Typ "'+A(u.componentType)+'" ',1)):(a(),c("span",re,'Geräte-Typ "'+A(u.deviceType)+'"',1)),v(" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ")]),_:1}),n(g,{title:"Konfiguration",subtype:"json","model-value":u.configuration,"onUpdate:modelValue":o[0]||(o[0]=R=>r.updateConfiguration(R,"configuration"))},{help:i(()=>[v(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),n(I,{subtype:"info"},{default:i(()=>[m("pre",null,A(JSON.stringify(u.configuration,void 0,2)),1)]),_:1})])}const S=y(te,[["render",ne],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbDeviceConfigFallback.vue"]]),ue={name:"OpenwbConfigProxy",emits:["update:configuration"],props:{deviceId:{required:!0},deviceType:{type:String,required:!0},componentId:{default:void 0},componentType:{type:String,default:void 0},configuration:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading component: ${this.deviceType} / ${this.componentType}`),this.componentType!==void 0?W({loader:()=>M(Object.assign({"./alpha_ess/bat.vue":()=>e(()=>import("./bat-a92f022e.js"),["assets/bat-a92f022e.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./alpha_ess/counter.vue":()=>e(()=>import("./counter-60655200.js"),["assets/counter-60655200.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./alpha_ess/device.vue":()=>e(()=>import("./device-03a0ce90.js"),["assets/device-03a0ce90.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./alpha_ess/inverter.vue":()=>e(()=>import("./inverter-b47e8b65.js"),["assets/inverter-b47e8b65.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./batterx/bat.vue":()=>e(()=>import("./bat-3980db8f.js"),["assets/bat-3980db8f.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./batterx/counter.vue":()=>e(()=>import("./counter-fcc6cfc8.js"),["assets/counter-fcc6cfc8.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./batterx/device.vue":()=>e(()=>import("./device-48b82d13.js"),["assets/device-48b82d13.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./batterx/external_inverter.vue":()=>e(()=>import("./external_inverter-c6cc5286.js"),["assets/external_inverter-c6cc5286.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./batterx/inverter.vue":()=>e(()=>import("./inverter-57f7e67c.js"),["assets/inverter-57f7e67c.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./byd/bat.vue":()=>e(()=>import("./bat-d1af67af.js"),["assets/bat-d1af67af.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./byd/device.vue":()=>e(()=>import("./device-44e40f8a.js"),["assets/device-44e40f8a.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./carlo_gavazzi/counter.vue":()=>e(()=>import("./counter-7b85a5b2.js"),["assets/counter-7b85a5b2.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./carlo_gavazzi/device.vue":()=>e(()=>import("./device-d5aedcd9.js"),["assets/device-d5aedcd9.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./discovergy/counter.vue":()=>e(()=>import("./counter-d335a007.js"),["assets/counter-d335a007.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./discovergy/device.vue":()=>e(()=>import("./device-ae65393a.js"),["assets/device-ae65393a.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./discovergy/inverter.vue":()=>e(()=>import("./inverter-91521524.js"),["assets/inverter-91521524.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./e3dc/bat.vue":()=>e(()=>import("./bat-4320b5cc.js"),["assets/bat-4320b5cc.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./e3dc/counter.vue":()=>e(()=>import("./counter-fbf1efa1.js"),["assets/counter-fbf1efa1.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./e3dc/device.vue":()=>e(()=>import("./device-c7a69fb7.js"),["assets/device-c7a69fb7.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./e3dc/external_inverter.vue":()=>e(()=>import("./external_inverter-debacbf1.js"),["assets/external_inverter-debacbf1.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./e3dc/inverter.vue":()=>e(()=>import("./inverter-35d50734.js"),["assets/inverter-35d50734.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./enphase/counter.vue":()=>e(()=>import("./counter-af942561.js"),["assets/counter-af942561.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./enphase/device.vue":()=>e(()=>import("./device-c5eaae23.js"),["assets/device-c5eaae23.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./enphase/inverter.vue":()=>e(()=>import("./inverter-b35ac71f.js"),["assets/inverter-b35ac71f.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./fems/bat.vue":()=>e(()=>import("./bat-ac5ee104.js"),["assets/bat-ac5ee104.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./fems/counter.vue":()=>e(()=>import("./counter-da58c807.js"),["assets/counter-da58c807.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./fems/device.vue":()=>e(()=>import("./device-76b564cb.js"),["assets/device-76b564cb.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./fems/inverter.vue":()=>e(()=>import("./inverter-0a8a02aa.js"),["assets/inverter-0a8a02aa.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./fronius/bat.vue":()=>e(()=>import("./bat-80bc8859.js"),["assets/bat-80bc8859.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./fronius/counter_s0.vue":()=>e(()=>import("./counter_s0-0068172e.js"),["assets/counter_s0-0068172e.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./fronius/counter_sm.vue":()=>e(()=>import("./counter_sm-802e0059.js"),["assets/counter_sm-802e0059.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./fronius/device.vue":()=>e(()=>import("./device-333a1847.js"),["assets/device-333a1847.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./fronius/inverter.vue":()=>e(()=>import("./inverter-fb25d42c.js"),["assets/inverter-fb25d42c.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./good_we/bat.vue":()=>e(()=>import("./bat-fd9f4fe4.js"),["assets/bat-fd9f4fe4.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./good_we/counter.vue":()=>e(()=>import("./counter-9097a073.js"),["assets/counter-9097a073.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./good_we/device.vue":()=>e(()=>import("./device-5442f3f8.js"),["assets/device-5442f3f8.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./good_we/inverter.vue":()=>e(()=>import("./inverter-d63a850e.js"),["assets/inverter-d63a850e.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./http/bat.vue":()=>e(()=>import("./bat-2f8005f2.js"),["assets/bat-2f8005f2.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./http/counter.vue":()=>e(()=>import("./counter-6d0620dd.js"),["assets/counter-6d0620dd.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./http/device.vue":()=>e(()=>import("./device-9c25dea2.js"),["assets/device-9c25dea2.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./http/inverter.vue":()=>e(()=>import("./inverter-735276eb.js"),["assets/inverter-735276eb.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./huawei/bat.vue":()=>e(()=>import("./bat-ccba567b.js"),["assets/bat-ccba567b.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./huawei/counter.vue":()=>e(()=>import("./counter-8d4f402a.js"),["assets/counter-8d4f402a.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./huawei/device.vue":()=>e(()=>import("./device-7700d0d1.js"),["assets/device-7700d0d1.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./huawei/inverter.vue":()=>e(()=>import("./inverter-be294b52.js"),["assets/inverter-be294b52.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./huawei_smartlogger/bat.vue":()=>e(()=>import("./bat-815fdbb1.js"),["assets/bat-815fdbb1.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./huawei_smartlogger/counter.vue":()=>e(()=>import("./counter-a2c453f6.js"),["assets/counter-a2c453f6.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./huawei_smartlogger/device.vue":()=>e(()=>import("./device-91520693.js"),["assets/device-91520693.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./huawei_smartlogger/inverter.vue":()=>e(()=>import("./inverter-aba6e6d2.js"),["assets/inverter-aba6e6d2.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./janitza/counter.vue":()=>e(()=>import("./counter-7a7be3d3.js"),["assets/counter-7a7be3d3.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./janitza/device.vue":()=>e(()=>import("./device-ff4b5125.js"),["assets/device-ff4b5125.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./json/bat.vue":()=>e(()=>import("./bat-f9178e22.js"),["assets/bat-f9178e22.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./json/counter.vue":()=>e(()=>import("./counter-46a15c2b.js"),["assets/counter-46a15c2b.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./json/device.vue":()=>e(()=>import("./device-f3520fbc.js"),["assets/device-f3520fbc.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./json/inverter.vue":()=>e(()=>import("./inverter-da627431.js"),["assets/inverter-da627431.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_piko/counter.vue":()=>e(()=>import("./counter-ad208981.js"),["assets/counter-ad208981.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_piko/device.vue":()=>e(()=>import("./device-f186e4bf.js"),["assets/device-f186e4bf.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_piko/inverter.vue":()=>e(()=>import("./inverter-d7dcc616.js"),["assets/inverter-d7dcc616.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_piko_old/device.vue":()=>e(()=>import("./device-efcbb283.js"),["assets/device-efcbb283.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_piko_old/inverter.vue":()=>e(()=>import("./inverter-b6d89f35.js"),["assets/inverter-b6d89f35.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_plenticore/bat.vue":()=>e(()=>import("./bat-45b559ec.js"),["assets/bat-45b559ec.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_plenticore/counter.vue":()=>e(()=>import("./counter-f56715cd.js"),["assets/counter-f56715cd.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_plenticore/device.vue":()=>e(()=>import("./device-23fbc413.js"),["assets/device-23fbc413.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_plenticore/inverter.vue":()=>e(()=>import("./inverter-3515d2b5.js"),["assets/inverter-3515d2b5.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_sem/counter.vue":()=>e(()=>import("./counter-5b0b9661.js"),["assets/counter-5b0b9661.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_sem/device.vue":()=>e(()=>import("./device-5e36d94b.js"),["assets/device-5e36d94b.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_steca/device.vue":()=>e(()=>import("./device-10d2c4c1.js"),["assets/device-10d2c4c1.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_steca/inverter.vue":()=>e(()=>import("./inverter-66b1df21.js"),["assets/inverter-66b1df21.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./lg/bat.vue":()=>e(()=>import("./bat-904c9172.js"),["assets/bat-904c9172.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./lg/counter.vue":()=>e(()=>import("./counter-2e4fa5c2.js"),["assets/counter-2e4fa5c2.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./lg/device.vue":()=>e(()=>import("./device-b04bd256.js"),["assets/device-b04bd256.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./lg/inverter.vue":()=>e(()=>import("./inverter-f266f49d.js"),["assets/inverter-f266f49d.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./mqtt/bat.vue":()=>e(()=>import("./bat-212960fc.js"),["assets/bat-212960fc.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./mqtt/counter.vue":()=>e(()=>import("./counter-816c921e.js"),["assets/counter-816c921e.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./mqtt/device.vue":()=>e(()=>import("./device-cdede991.js"),["assets/device-cdede991.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./mqtt/inverter.vue":()=>e(()=>import("./inverter-e383405a.js"),["assets/inverter-e383405a.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_bat_kit/bat.vue":()=>e(()=>import("./bat-3e58123d.js"),["assets/bat-3e58123d.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_bat_kit/device.vue":()=>e(()=>import("./device-1ebd188c.js"),["assets/device-1ebd188c.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_evu_kit/bat.vue":()=>e(()=>import("./bat-3d2b7acc.js"),["assets/bat-3d2b7acc.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_evu_kit/counter.vue":()=>e(()=>import("./counter-21f55471.js"),["assets/counter-21f55471.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_evu_kit/device.vue":()=>e(()=>import("./device-68cea660.js"),["assets/device-68cea660.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_evu_kit/inverter.vue":()=>e(()=>import("./inverter-09d68c12.js"),["assets/inverter-09d68c12.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_flex/bat.vue":()=>e(()=>import("./bat-ba791935.js"),["assets/bat-ba791935.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_flex/counter.vue":()=>e(()=>import("./counter-6369ff43.js"),["assets/counter-6369ff43.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_flex/device.vue":()=>e(()=>import("./device-3c66abac.js"),["assets/device-3c66abac.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_flex/inverter.vue":()=>e(()=>import("./inverter-0daad30f.js"),["assets/inverter-0daad30f.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_pv_kit/device.vue":()=>e(()=>import("./device-5c559131.js"),["assets/device-5c559131.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_pv_kit/inverter.vue":()=>e(()=>import("./inverter-c0320c10.js"),["assets/inverter-c0320c10.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./powerdog/counter.vue":()=>e(()=>import("./counter-3df9b0e7.js"),["assets/counter-3df9b0e7.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./powerdog/device.vue":()=>e(()=>import("./device-f581669c.js"),["assets/device-f581669c.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./powerdog/inverter.vue":()=>e(()=>import("./inverter-f0ad6bcd.js"),["assets/inverter-f0ad6bcd.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./powerfox/counter.vue":()=>e(()=>import("./counter-46b207f3.js"),["assets/counter-46b207f3.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./powerfox/device.vue":()=>e(()=>import("./device-e88cb248.js"),["assets/device-e88cb248.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./powerfox/inverter.vue":()=>e(()=>import("./inverter-4ed4378e.js"),["assets/inverter-4ed4378e.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./qcells/bat.vue":()=>e(()=>import("./bat-557284f3.js"),["assets/bat-557284f3.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./qcells/counter.vue":()=>e(()=>import("./counter-77841659.js"),["assets/counter-77841659.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./qcells/device.vue":()=>e(()=>import("./device-2fc1a957.js"),["assets/device-2fc1a957.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./qcells/inverter.vue":()=>e(()=>import("./inverter-3b84e31d.js"),["assets/inverter-3b84e31d.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./rct/bat.vue":()=>e(()=>import("./bat-61bcf2f8.js"),["assets/bat-61bcf2f8.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./rct/counter.vue":()=>e(()=>import("./counter-d03b355d.js"),["assets/counter-d03b355d.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./rct/device.vue":()=>e(()=>import("./device-7fbce287.js"),["assets/device-7fbce287.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./rct/inverter.vue":()=>e(()=>import("./inverter-42feff92.js"),["assets/inverter-42feff92.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./saxpower/bat.vue":()=>e(()=>import("./bat-12170e78.js"),["assets/bat-12170e78.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./saxpower/device.vue":()=>e(()=>import("./device-e2dad607.js"),["assets/device-e2dad607.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./shelly/device.vue":()=>e(()=>import("./device-fcd34186.js"),["assets/device-fcd34186.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./shelly/inverter.vue":()=>e(()=>import("./inverter-f900cffa.js"),["assets/inverter-f900cffa.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./siemens/bat.vue":()=>e(()=>import("./bat-cbc92919.js"),["assets/bat-cbc92919.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./siemens/counter.vue":()=>e(()=>import("./counter-82a793a2.js"),["assets/counter-82a793a2.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./siemens/device.vue":()=>e(()=>import("./device-2a7fcdcd.js"),["assets/device-2a7fcdcd.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./siemens/inverter.vue":()=>e(()=>import("./inverter-89a115de.js"),["assets/inverter-89a115de.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./siemens_sentron/counter.vue":()=>e(()=>import("./counter-b30c239d.js"),["assets/counter-b30c239d.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./siemens_sentron/device.vue":()=>e(()=>import("./device-11808744.js"),["assets/device-11808744.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_shm/counter.vue":()=>e(()=>import("./counter-70b9e720.js"),["assets/counter-70b9e720.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_shm/device.vue":()=>e(()=>import("./device-060ee4fd.js"),["assets/device-060ee4fd.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_shm/inverter.vue":()=>e(()=>import("./inverter-6afece8c.js"),["assets/inverter-6afece8c.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_boy/bat.vue":()=>e(()=>import("./bat-cb226603.js"),["assets/bat-cb226603.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_boy/bat_smart_energy.vue":()=>e(()=>import("./bat_smart_energy-817c3655.js"),["assets/bat_smart_energy-817c3655.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_boy/counter.vue":()=>e(()=>import("./counter-fb6b0fb9.js"),["assets/counter-fb6b0fb9.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_boy/device.vue":()=>e(()=>import("./device-9f1d6204.js"),["assets/device-9f1d6204.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_boy/inverter.vue":()=>e(()=>import("./inverter-8ebf65c2.js"),["assets/inverter-8ebf65c2.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_island/bat.vue":()=>e(()=>import("./bat-4b5ddf83.js"),["assets/bat-4b5ddf83.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_island/device.vue":()=>e(()=>import("./device-6223df3d.js"),["assets/device-6223df3d.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_webbox/device.vue":()=>e(()=>import("./device-c0377afe.js"),["assets/device-c0377afe.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_webbox/inverter.vue":()=>e(()=>import("./inverter-bce80bd5.js"),["assets/inverter-bce80bd5.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./smart_me/counter.vue":()=>e(()=>import("./counter-eab5abf7.js"),["assets/counter-eab5abf7.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./smart_me/device.vue":()=>e(()=>import("./device-71f6eb4f.js"),["assets/device-71f6eb4f.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./smart_me/inverter.vue":()=>e(()=>import("./inverter-5500500b.js"),["assets/inverter-5500500b.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./smartfox/counter.vue":()=>e(()=>import("./counter-57df9eec.js"),["assets/counter-57df9eec.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./smartfox/device.vue":()=>e(()=>import("./device-b59b9c77.js"),["assets/device-b59b9c77.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_log/counter.vue":()=>e(()=>import("./counter-18fd3233.js"),["assets/counter-18fd3233.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_log/device.vue":()=>e(()=>import("./device-9f8cfcd3.js"),["assets/device-9f8cfcd3.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_log/inverter.vue":()=>e(()=>import("./inverter-39afe3b5.js"),["assets/inverter-39afe3b5.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_view/counter.vue":()=>e(()=>import("./counter-1c5a2313.js"),["assets/counter-1c5a2313.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_view/device.vue":()=>e(()=>import("./device-84c0ab33.js"),["assets/device-84c0ab33.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_view/inverter.vue":()=>e(()=>import("./inverter-b33414cf.js"),["assets/inverter-b33414cf.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_watt/bat.vue":()=>e(()=>import("./bat-8af3358d.js"),["assets/bat-8af3358d.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_watt/counter.vue":()=>e(()=>import("./counter-b2081459.js"),["assets/counter-b2081459.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_watt/device.vue":()=>e(()=>import("./device-0c072e3b.js"),["assets/device-0c072e3b.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_watt/inverter.vue":()=>e(()=>import("./inverter-973593c5.js"),["assets/inverter-973593c5.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_world/counter.vue":()=>e(()=>import("./counter-4dc3cbd5.js"),["assets/counter-4dc3cbd5.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_world/device.vue":()=>e(()=>import("./device-d971bed6.js"),["assets/device-d971bed6.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_world/inverter.vue":()=>e(()=>import("./inverter-22be4ed9.js"),["assets/inverter-22be4ed9.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solaredge/bat.vue":()=>e(()=>import("./bat-e1949609.js"),["assets/bat-e1949609.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solaredge/counter.vue":()=>e(()=>import("./counter-2365410a.js"),["assets/counter-2365410a.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solaredge/device.vue":()=>e(()=>import("./device-368b885c.js"),["assets/device-368b885c.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solaredge/external_inverter.vue":()=>e(()=>import("./external_inverter-4989c79d.js"),["assets/external_inverter-4989c79d.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solaredge/inverter.vue":()=>e(()=>import("./inverter-983f9bf4.js"),["assets/inverter-983f9bf4.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solarmax/bat.vue":()=>e(()=>import("./bat-b91f4e63.js"),["assets/bat-b91f4e63.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solarmax/device.vue":()=>e(()=>import("./device-eded82a1.js"),["assets/device-eded82a1.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solarmax/inverter.vue":()=>e(()=>import("./inverter-2b727919.js"),["assets/inverter-2b727919.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solax/bat.vue":()=>e(()=>import("./bat-9ff121c5.js"),["assets/bat-9ff121c5.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solax/counter.vue":()=>e(()=>import("./counter-f322702a.js"),["assets/counter-f322702a.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solax/device.vue":()=>e(()=>import("./device-eed5fccd.js"),["assets/device-eed5fccd.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solax/inverter.vue":()=>e(()=>import("./inverter-a4f4de69.js"),["assets/inverter-a4f4de69.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sonnenbatterie/bat.vue":()=>e(()=>import("./bat-f30697e9.js"),["assets/bat-f30697e9.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sonnenbatterie/counter.vue":()=>e(()=>import("./counter-df3e561f.js"),["assets/counter-df3e561f.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sonnenbatterie/device.vue":()=>e(()=>import("./device-9114b4f4.js"),["assets/device-9114b4f4.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sonnenbatterie/inverter.vue":()=>e(()=>import("./inverter-3e855a0b.js"),["assets/inverter-3e855a0b.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./studer/bat.vue":()=>e(()=>import("./bat-6fcf71db.js"),["assets/bat-6fcf71db.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./studer/device.vue":()=>e(()=>import("./device-736742cc.js"),["assets/device-736742cc.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./studer/inverter.vue":()=>e(()=>import("./inverter-3df75149.js"),["assets/inverter-3df75149.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sungrow/bat.vue":()=>e(()=>import("./bat-3dbfaf1b.js"),["assets/bat-3dbfaf1b.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sungrow/counter.vue":()=>e(()=>import("./counter-478d9577.js"),["assets/counter-478d9577.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sungrow/device.vue":()=>e(()=>import("./device-ae9d7f6e.js"),["assets/device-ae9d7f6e.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sungrow/inverter.vue":()=>e(()=>import("./inverter-ae905211.js"),["assets/inverter-ae905211.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sunways/device.vue":()=>e(()=>import("./device-c49a0ced.js"),["assets/device-c49a0ced.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sunways/inverter.vue":()=>e(()=>import("./inverter-1a27b5a2.js"),["assets/inverter-1a27b5a2.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./tesla/bat.vue":()=>e(()=>import("./bat-f75dd877.js"),["assets/bat-f75dd877.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./tesla/counter.vue":()=>e(()=>import("./counter-2a189926.js"),["assets/counter-2a189926.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./tesla/device.vue":()=>e(()=>import("./device-24f0a9e0.js"),["assets/device-24f0a9e0.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./tesla/inverter.vue":()=>e(()=>import("./inverter-bc54ef72.js"),["assets/inverter-bc54ef72.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./varta/bat_api.vue":()=>e(()=>import("./bat_api-e58852af.js"),["assets/bat_api-e58852af.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./varta/bat_modbus.vue":()=>e(()=>import("./bat_modbus-260d9b94.js"),["assets/bat_modbus-260d9b94.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./varta/counter.vue":()=>e(()=>import("./counter-73783603.js"),["assets/counter-73783603.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./varta/device.vue":()=>e(()=>import("./device-2b476100.js"),["assets/device-2b476100.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./victron/bat.vue":()=>e(()=>import("./bat-180a64ef.js"),["assets/bat-180a64ef.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./victron/counter.vue":()=>e(()=>import("./counter-1905ec77.js"),["assets/counter-1905ec77.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./victron/device.vue":()=>e(()=>import("./device-34d66ae0.js"),["assets/device-34d66ae0.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./victron/inverter.vue":()=>e(()=>import("./inverter-d5ca1a80.js"),["assets/inverter-d5ca1a80.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./virtual/counter.vue":()=>e(()=>import("./counter-c0f3f4ac.js"),["assets/counter-c0f3f4ac.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./virtual/device.vue":()=>e(()=>import("./device-554ac70d.js"),["assets/device-554ac70d.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./vzlogger/counter.vue":()=>e(()=>import("./counter-00ec4a93.js"),["assets/counter-00ec4a93.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./vzlogger/device.vue":()=>e(()=>import("./device-94f0ef9b.js"),["assets/device-94f0ef9b.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./vzlogger/inverter.vue":()=>e(()=>import("./inverter-ba59974f.js"),["assets/inverter-ba59974f.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./youless/device.vue":()=>e(()=>import("./device-c553c1ee.js"),["assets/device-c553c1ee.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./youless/inverter.vue":()=>e(()=>import("./inverter-98ed6e35.js"),["assets/inverter-98ed6e35.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"])}),`./${this.deviceType}/${this.componentType}.vue`),errorComponent:S}):W({loader:()=>M(Object.assign({"./alpha_ess/device.vue":()=>e(()=>import("./device-03a0ce90.js"),["assets/device-03a0ce90.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./batterx/device.vue":()=>e(()=>import("./device-48b82d13.js"),["assets/device-48b82d13.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./byd/device.vue":()=>e(()=>import("./device-44e40f8a.js"),["assets/device-44e40f8a.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./carlo_gavazzi/device.vue":()=>e(()=>import("./device-d5aedcd9.js"),["assets/device-d5aedcd9.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./discovergy/device.vue":()=>e(()=>import("./device-ae65393a.js"),["assets/device-ae65393a.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./e3dc/device.vue":()=>e(()=>import("./device-c7a69fb7.js"),["assets/device-c7a69fb7.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./enphase/device.vue":()=>e(()=>import("./device-c5eaae23.js"),["assets/device-c5eaae23.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./fems/device.vue":()=>e(()=>import("./device-76b564cb.js"),["assets/device-76b564cb.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./fronius/device.vue":()=>e(()=>import("./device-333a1847.js"),["assets/device-333a1847.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./good_we/device.vue":()=>e(()=>import("./device-5442f3f8.js"),["assets/device-5442f3f8.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./http/device.vue":()=>e(()=>import("./device-9c25dea2.js"),["assets/device-9c25dea2.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./huawei/device.vue":()=>e(()=>import("./device-7700d0d1.js"),["assets/device-7700d0d1.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./huawei_smartlogger/device.vue":()=>e(()=>import("./device-91520693.js"),["assets/device-91520693.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./janitza/device.vue":()=>e(()=>import("./device-ff4b5125.js"),["assets/device-ff4b5125.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./json/device.vue":()=>e(()=>import("./device-f3520fbc.js"),["assets/device-f3520fbc.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_piko/device.vue":()=>e(()=>import("./device-f186e4bf.js"),["assets/device-f186e4bf.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_piko_old/device.vue":()=>e(()=>import("./device-efcbb283.js"),["assets/device-efcbb283.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_plenticore/device.vue":()=>e(()=>import("./device-23fbc413.js"),["assets/device-23fbc413.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_sem/device.vue":()=>e(()=>import("./device-5e36d94b.js"),["assets/device-5e36d94b.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kostal_steca/device.vue":()=>e(()=>import("./device-10d2c4c1.js"),["assets/device-10d2c4c1.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./lg/device.vue":()=>e(()=>import("./device-b04bd256.js"),["assets/device-b04bd256.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./mqtt/device.vue":()=>e(()=>import("./device-cdede991.js"),["assets/device-cdede991.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_bat_kit/device.vue":()=>e(()=>import("./device-1ebd188c.js"),["assets/device-1ebd188c.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_evu_kit/device.vue":()=>e(()=>import("./device-68cea660.js"),["assets/device-68cea660.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_flex/device.vue":()=>e(()=>import("./device-3c66abac.js"),["assets/device-3c66abac.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./openwb_pv_kit/device.vue":()=>e(()=>import("./device-5c559131.js"),["assets/device-5c559131.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./powerdog/device.vue":()=>e(()=>import("./device-f581669c.js"),["assets/device-f581669c.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./powerfox/device.vue":()=>e(()=>import("./device-e88cb248.js"),["assets/device-e88cb248.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./qcells/device.vue":()=>e(()=>import("./device-2fc1a957.js"),["assets/device-2fc1a957.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./rct/device.vue":()=>e(()=>import("./device-7fbce287.js"),["assets/device-7fbce287.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./saxpower/device.vue":()=>e(()=>import("./device-e2dad607.js"),["assets/device-e2dad607.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./shelly/device.vue":()=>e(()=>import("./device-fcd34186.js"),["assets/device-fcd34186.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./siemens/device.vue":()=>e(()=>import("./device-2a7fcdcd.js"),["assets/device-2a7fcdcd.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./siemens_sentron/device.vue":()=>e(()=>import("./device-11808744.js"),["assets/device-11808744.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_shm/device.vue":()=>e(()=>import("./device-060ee4fd.js"),["assets/device-060ee4fd.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_boy/device.vue":()=>e(()=>import("./device-9f1d6204.js"),["assets/device-9f1d6204.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_sunny_island/device.vue":()=>e(()=>import("./device-6223df3d.js"),["assets/device-6223df3d.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sma_webbox/device.vue":()=>e(()=>import("./device-c0377afe.js"),["assets/device-c0377afe.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./smart_me/device.vue":()=>e(()=>import("./device-71f6eb4f.js"),["assets/device-71f6eb4f.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./smartfox/device.vue":()=>e(()=>import("./device-b59b9c77.js"),["assets/device-b59b9c77.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_log/device.vue":()=>e(()=>import("./device-9f8cfcd3.js"),["assets/device-9f8cfcd3.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_view/device.vue":()=>e(()=>import("./device-84c0ab33.js"),["assets/device-84c0ab33.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_watt/device.vue":()=>e(()=>import("./device-0c072e3b.js"),["assets/device-0c072e3b.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solar_world/device.vue":()=>e(()=>import("./device-d971bed6.js"),["assets/device-d971bed6.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solaredge/device.vue":()=>e(()=>import("./device-368b885c.js"),["assets/device-368b885c.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solarmax/device.vue":()=>e(()=>import("./device-eded82a1.js"),["assets/device-eded82a1.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./solax/device.vue":()=>e(()=>import("./device-eed5fccd.js"),["assets/device-eed5fccd.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sonnenbatterie/device.vue":()=>e(()=>import("./device-9114b4f4.js"),["assets/device-9114b4f4.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./studer/device.vue":()=>e(()=>import("./device-736742cc.js"),["assets/device-736742cc.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sungrow/device.vue":()=>e(()=>import("./device-ae9d7f6e.js"),["assets/device-ae9d7f6e.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./sunways/device.vue":()=>e(()=>import("./device-c49a0ced.js"),["assets/device-c49a0ced.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./tesla/device.vue":()=>e(()=>import("./device-24f0a9e0.js"),["assets/device-24f0a9e0.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./varta/device.vue":()=>e(()=>import("./device-2b476100.js"),["assets/device-2b476100.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./victron/device.vue":()=>e(()=>import("./device-34d66ae0.js"),["assets/device-34d66ae0.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./virtual/device.vue":()=>e(()=>import("./device-554ac70d.js"),["assets/device-554ac70d.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./vzlogger/device.vue":()=>e(()=>import("./device-94f0ef9b.js"),["assets/device-94f0ef9b.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./youless/device.vue":()=>e(()=>import("./device-c553c1ee.js"),["assets/device-c553c1ee.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"])}),`./${this.deviceType}/device.vue`),errorComponent:S})}},methods:{updateConfiguration(_){this.$emit("update:configuration",_)}}};function de(_,o,u,O,s,r){return a(),l(Y(r.myComponent),{configuration:u.configuration,deviceId:u.deviceId,deviceType:u.deviceType,componentId:u.componentId,componentType:u.componentType,"onUpdate:configuration":o[0]||(o[0]=I=>r.updateConfiguration(I))},null,40,["configuration","deviceId","deviceType","componentId","componentType"])}const ve=y(ue,[["render",de],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/OpenwbConfigProxy.vue"]]);N.add(U,G,F,H,J,Z,Q);const ae={name:"OpenwbHardwareInstallation",mixins:[X],emits:["sendCommand"],components:{FontAwesomeIcon:$,OpenwbConfigProxy:ve},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/get/hierarchy","openWB/system/device/+/config","openWB/system/device/+/component/+/config","openWB/system/configurable/devices_components"],deviceToAdd:void 0,showDeviceRemoveModal:!1,modalDevice:void 0,modalDeviceName:"",componentToAdd:[],showComponentRemoveModal:!1,modalComponent:void 0,modalComponentName:""}},computed:{installedDevices:{get(){return this.getWildcardTopics("openWB/system/device/+/config")}},installedComponents:{get(){return this.getWildcardTopics("openWB/system/device/+/component/+/config")}}},methods:{getComponentTypeClass(_){return _.match(/^(.+_)?counter(_.+)?$/)?"danger":_.match(/^(.+_)?inverter(_.+)?$/)?"success":_.match(/^(.+_)?bat(_.+)?$/)?"warning":"dark"},getComponentTypeIcon(_){return _.match(/^(.+_)?counter(_.+)?$/)?["fas","fa-gauge-high"]:_.match(/^(.+_)?inverter(_.+)?$/)?["fas","fa-solar-panel"]:_.match(/^(.+_)?bat(_.+)?$/)?["fas","fa-car-battery"]:["fas","fa-microchip"]},getMyInstalledComponents(_){return this.getWildcardTopics("openWB/system/device/"+_+"/component/+/config")},deviceHasConfiguredComponents(_){return Object.keys(this.getMyInstalledComponents(_)).length>0},addDevice(){this.$emit("sendCommand",{command:"addDevice",data:{type:this.deviceToAdd}})},removeDeviceModal(_,o,u){u.stopPropagation(),this.modalDevice=_,this.modalDeviceName=o,this.showDeviceRemoveModal=!0},removeDevice(_){this.showDeviceRemoveModal=!1,_=="confirm"&&(console.info("request removal of device '"+this.modalDevice+"'"),this.$emit("sendCommand",{command:"removeDevice",data:{id:this.modalDevice}}))},getDeviceList(){return this.$store.state.mqtt["openWB/system/configurable/devices_components"]},addComponent(_,o,u){this.$emit("sendCommand",{command:"addComponent",data:{deviceId:_,deviceType:o,type:u}})},removeComponentModal(_,o,u,O,s){s.stopPropagation(),this.modalComponent={deviceId:_,id:o,type:u},this.modalComponentName=O,this.showComponentRemoveModal=!0},removeComponent(_){this.showComponentRemoveModal=!1,_=="confirm"&&(console.info("request removal of component '"+this.modalComponent.id+"' from device '"+this.modalComponent.deviceId+"' type '"+this.modalComponent.type+"'"),this.$emit("sendCommand",{command:"removeComponent",data:this.modalComponent}))},getComponentList(_){return _===void 0?[]:(console.debug("finding components for '"+_+"'"),this.$store.state.mqtt["openWB/system/configurable/devices_components"].find(u=>u.value===_).component)},updateConfiguration(_,o){console.debug("updateConfiguration",_,o),this.updateState(_,o.value,o.object)}}},E=_=>(ee("data-v-8595d6ae"),_=_(),_e(),_),se={class:"hardwareInstallation"},me={name:"hardwareInstallationForm"},pe={key:0},ce={key:1},Ee={key:1},le=E(()=>m("hr",null,null,-1)),Te=E(()=>m("hr",null,null,-1)),Ie=E(()=>m("hr",null,null,-1)),Ve=E(()=>m("hr",null,null,-1)),Ae={class:"col-1"},Re={key:0},De={class:"col-1"},Pe=E(()=>m("br",null,null,-1)),Oe=E(()=>m("br",null,null,-1)),Le=E(()=>m("br",null,null,-1)),ge=E(()=>m("br",null,null,-1)),be=E(()=>m("br",null,null,-1)),fe=E(()=>m("br",null,null,-1));function he(_,o,u,O,s,r){const I=p("openwb-base-modal-dialog"),g=p("router-link"),R=p("openwb-base-alert"),V=p("font-awesome-icon"),b=p("openwb-base-avatar"),k=p("openwb-base-text-input"),C=p("openwb-config-proxy"),q=p("openwb-base-heading"),f=p("openwb-base-card"),x=p("openwb-base-click-button"),B=p("openwb-base-select-input"),j=p("openwb-base-submit-buttons");return a(),c(L,null,[P(" modal dialogs "),n(I,{show:s.showDeviceRemoveModal,title:"Gerät löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:r.removeDevice},{default:i(()=>[v(' Wollen Sie das Gerät "'+A(s.modalDeviceName)+'" inklusive aller Komponenten wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),n(I,{show:s.showComponentRemoveModal,title:"Komponente löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:r.removeComponent},{default:i(()=>[v(' Wollen Sie die Komponente "'+A(s.modalComponentName)+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show","onModalResult"]),P(" main content "),m("div",se,[m("form",me,[n(R,{subtype:"info"},{default:i(()=>[v(" Wenn neue Komponenten - insbesondere Zähler - konfiguriert wurden, ist auch das "),n(g,{to:"/LoadManagementConfiguration"},{default:i(()=>[v(" Lastmanagement ")]),_:1}),v(" zu prüfen! ")]),_:1}),n(f,{title:"Geräte und Komponenten"},{default:i(()=>[_.$store.state.mqtt["openWB/general/extern"]===!0?(a(),c("div",pe,[n(R,{subtype:"info"},{default:i(()=>[v(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),c("div",ce,[(a(!0),c(L,null,h(r.installedDevices,(t,z)=>(a(),l(f,{key:t.id,collapsible:!0,collapsed:!0,subtype:"dark"},{header:i(()=>[n(V,{"fixed-width":"",icon:["fas","network-wired"]}),v(" "+A(t.name),1)]),actions:i(d=>[d.collapsed?(a(),c("div",Ee,[(a(!0),c(L,null,h(r.getMyInstalledComponents(t.id),T=>(a(),l(b,{key:T.id,class:w("ml-1 bg-"+r.getComponentTypeClass(T.type))},{default:i(()=>[n(V,{"fixed-width":"",icon:r.getComponentTypeIcon(T.type)},null,8,["icon"])]),_:2},1032,["class"]))),128))])):(a(),l(b,{key:0,class:"bg-danger clickable",onClick:T=>r.removeDeviceModal(t.id,t.name,T)},{default:i(()=>[n(V,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:i(()=>[n(k,{title:"Bezeichnung",subtype:"text","model-value":t.name,"onUpdate:modelValue":d=>_.updateState(z,d,"name")},null,8,["model-value","onUpdate:modelValue"]),le,n(C,{deviceId:t.id,deviceType:t.type,configuration:t.configuration,"onUpdate:configuration":d=>r.updateConfiguration(z,d)},null,8,["deviceId","deviceType","configuration","onUpdate:configuration"]),Te,n(q,null,{default:i(()=>[v("Komponenten")]),_:1}),r.deviceHasConfiguredComponents(t.id)?P("v-if",!0):(a(),l(R,{key:0,subtype:"warning"},{default:i(()=>[v(" Es wurden noch keine Komponenten zu diesem Gerät angelegt. ")]),_:1})),(a(!0),c(L,null,h(r.getMyInstalledComponents(t.id),(d,T)=>(a(),l(f,{key:d.id,collapsible:!0,collapsed:!0,subtype:r.getComponentTypeClass(d.type)},{header:i(()=>[n(V,{"fixed-width":"",icon:r.getComponentTypeIcon(d.type)},null,8,["icon"]),v(" "+A(d.name),1)]),actions:i(D=>[D.collapsed?P("v-if",!0):(a(),l(b,{key:0,class:"bg-danger clickable",onClick:K=>r.removeComponentModal(t.id,d.id,d.type,d.name,K)},{default:i(()=>[n(V,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),default:i(()=>[n(k,{title:"Bezeichnung",subtype:"text","model-value":d.name,"onUpdate:modelValue":D=>_.updateState(T,D,"name")},null,8,["model-value","onUpdate:modelValue"]),Ie,n(C,{deviceId:t.id,deviceType:t.type,componentId:d.id,componentType:d.type,configuration:d.configuration,"onUpdate:configuration":D=>r.updateConfiguration(T,D)},null,8,["deviceId","deviceType","componentId","componentType","configuration","onUpdate:configuration"])]),_:2},1032,["subtype"]))),128)),Ve,r.getComponentList(t.type).length?(a(),l(B,{key:1,class:"mb-2",title:"Verfügbare Komponenten",notSelected:"Bitte auswählen",options:r.getComponentList(t.type),"model-value":s.componentToAdd[t.id],"onUpdate:modelValue":d=>s.componentToAdd[t.id]=d},{append:i(()=>[m("span",Ae,[n(x,{class:w(s.componentToAdd[t.id]===void 0?"btn-outline-success":"btn-success clickable"),disabled:s.componentToAdd[t.id]===void 0,onButtonClicked:d=>r.addComponent(t.id,t.type,s.componentToAdd[t.id])},{default:i(()=>[n(V,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["class","disabled","onButtonClicked"])])]),help:i(()=>[v(" Bitte eine Komponente auswählen, die hinzugefügt werden soll. Für jeden Datensatz, z.B. Wechselrichter- und Batteriedaten, muss eine Wechselrichter- und eine Batteriekomponente hinzugefügt werden. ")]),_:2},1032,["options","model-value","onUpdate:modelValue"])):(a(),l(R,{key:2,subtype:"info"},{default:i(()=>[v(" Dieses System bietet keine Komponenten zur Installation an. ")]),_:1}))]),_:2},1024))),128)),Object.keys(r.installedDevices).length>0?(a(),c("hr",Re)):P("v-if",!0),n(B,{class:"mb-2",title:"Verfügbare Geräte",notSelected:"Bitte auswählen",options:r.getDeviceList(),"model-value":s.deviceToAdd,"onUpdate:modelValue":o[0]||(o[0]=t=>s.deviceToAdd=t)},{append:i(()=>[m("span",De,[n(x,{class:w(s.deviceToAdd===void 0?"btn-outline-success":"btn-success clickable"),disabled:s.deviceToAdd===void 0,onButtonClicked:r.addDevice},{default:i(()=>[n(V,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["class","disabled","onButtonClicked"])])]),help:i(()=>[v(' Die openWB-Regelung ist auf Werte von MESSPUNKTEN (Zähler, Energy Meter usw.) angewiesen. Hierfür werden "Geräte" und "Komponenten" verwendet.'),Pe,v(' Ein "Gerät" wird hierbei durch seine IP-Adresse spezifiziert (häufig durch manuelle Eingabe oder manchmal automatisch ermittelt) und kann über mehrere untergeordnete "Komponenten" verfügen, z.B. einen Messpunkt für PV-Erzeugung, einen Messpunkt für Netzeinspeisung/-bezug am EVU-Punkt usw.. Ein "Gerät" bedingt somit immer mindestens eine zugehörige "Komponente".'),Oe,Le,v(' Bsp: Werden die Werte von verschiedenen Messpunkten (z.B. PV und EVU) über die gleiche IP-Adresse abgefragt, wird dafür ein "Gerät" mit zwei "Komponenten" für PV- und EVU- Messpunkt angelegt.'),ge,v(' Verfügt dagegen jeder Messpunkt über eine eigene IP-Adresse, wird jeder Messpunkt als eigenes "Gerät" mit nur einer "Komponente" angelegt.'),be,fe,v(' Das "Gerät" wird in der dropdown-Liste ausgewählt und mit "+" der Regelung hinzugefügt. Im Anschluss erfolgt die Konfiguration des "Gerätes" innerhalb des schwarzen "Geräte"-Reiters. ')]),_:1},8,["options","model-value"])]))]),_:1}),n(j,{formName:"hardwareInstallationForm",onSave:o[1]||(o[1]=t=>_.$emit("save")),onReset:o[2]||(o[2]=t=>_.$emit("reset")),onDefaults:o[3]||(o[3]=t=>_.$emit("defaults"))})])])],64)}const We=y(ae,[["render",he],["__scopeId","data-v-8595d6ae"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/HardwareInstallation.vue"]]);export{We as default};
diff --git a/web/settings/assets/InstantChargeConfig-1646b158.js b/web/settings/assets/InstantChargeConfig-30b13a1a.js
similarity index 84%
rename from web/settings/assets/InstantChargeConfig-1646b158.js
rename to web/settings/assets/InstantChargeConfig-30b13a1a.js
index af8d8f6fa3..7ad55973c4 100644
--- a/web/settings/assets/InstantChargeConfig-1646b158.js
+++ b/web/settings/assets/InstantChargeConfig-30b13a1a.js
@@ -1 +1 @@
-import{C as l}from"./index-cbcca7a0.js";import{_,p as o,k as a,l as i,q as b,A as s,L as r,u}from"./vendor-94ac8c48.js";import"./vendor-fortawesome-ad83e535.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";const h={name:"OpenwbInstantChargeConfig",mixins:[l],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/instant_charging/phases_to_use"]}}},c={class:"instantChargeConfig"},f={name:"instantChargeConfigForm"},v={key:0},C={key:1};function w(t,e,$,B,k,V){const p=o("openwb-base-alert"),m=o("openwb-base-button-group-input"),g=o("openwb-base-card"),d=o("openwb-base-submit-buttons");return a(),i("div",c,[b("form",f,[s(g,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(p,{subtype:"info"},{default:r(()=>[u(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",C,[s(m,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/instant_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/instant_charging/phases_to_use",n))},{help:r(()=>[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Sofortladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(d,{formName:"instantChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const A=_(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/InstantChargeConfig.vue"]]);export{A as default};
+import{C as l}from"./index-f08a7306.js";import{_,p as o,k as a,l as i,q as b,A as s,L as r,u}from"./vendor-20bb207d.js";import"./vendor-fortawesome-838df0c9.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";const h={name:"OpenwbInstantChargeConfig",mixins:[l],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/instant_charging/phases_to_use"]}}},c={class:"instantChargeConfig"},f={name:"instantChargeConfigForm"},v={key:0},C={key:1};function w(t,e,$,B,k,V){const p=o("openwb-base-alert"),m=o("openwb-base-button-group-input"),g=o("openwb-base-card"),d=o("openwb-base-submit-buttons");return a(),i("div",c,[b("form",f,[s(g,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(p,{subtype:"info"},{default:r(()=>[u(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",C,[s(m,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/instant_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/instant_charging/phases_to_use",n))},{help:r(()=>[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Sofortladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(d,{formName:"instantChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const A=_(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/InstantChargeConfig.vue"]]);export{A as default};
diff --git a/web/settings/assets/LegalSettings-c100c109.js b/web/settings/assets/LegalSettings-f8ef4166.js
similarity index 84%
rename from web/settings/assets/LegalSettings-c100c109.js
rename to web/settings/assets/LegalSettings-f8ef4166.js
index dbef7554cd..e5b6f0b585 100644
--- a/web/settings/assets/LegalSettings-c100c109.js
+++ b/web/settings/assets/LegalSettings-f8ef4166.js
@@ -1 +1 @@
-import{C as g}from"./index-cbcca7a0.js";import{_,p as o,k as r,l as w,q as u,A as s,L as a,y as d,u as p,z as m}from"./vendor-94ac8c48.js";import"./vendor-fortawesome-ad83e535.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";const f={name:"OpenwbDataProtection",mixins:[g],data(){return{mqttTopicsToSubscribe:["openWB/system/dataprotection_acknowledged"]}}},k={class:"dataProtection"},h={name:"dataProtectionForm"},v=u("iframe",{src:"dataProtection-usageTerms.html",width:"100%",height:"400px",class:"bg-light"},null,-1),B=u("hr",null,null,-1);function y(e,t,z,V,W,$){const i=o("openwb-base-button-group-input"),l=o("openwb-base-alert"),c=o("openwb-base-submit-buttons"),b=o("openwb-base-card");return r(),w("div",k,[u("form",h,[s(b,{title:"Nutzungsbedingungen & Datenschutzerklärung"},{footer:a(()=>[s(c,{formName:"dataProtectionForm",hideReset:!0,hideDefaults:!0,onSave:t[2]||(t[2]=n=>e.$emit("save"))})]),default:a(()=>[v,B,s(i,{title:"Nutzungsbedingungen",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/system/usage_terms_acknowledged"],"onUpdate:modelValue":t[0]||(t[0]=n=>e.updateState("openWB/system/usage_terms_acknowledged",n))},null,8,["model-value"]),e.$store.state.mqtt["openWB/system/usage_terms_acknowledged"]?m("v-if",!0):(r(),d(l,{key:0,subtype:"danger"},{default:a(()=>[p(" Sie müssen die Nutzungsbedingungen akzeptieren, bevor openWB eingesetzt werden kann. ")]),_:1})),s(i,{title:"Datenschutzerklärung",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/system/dataprotection_acknowledged"],"onUpdate:modelValue":t[1]||(t[1]=n=>e.updateState("openWB/system/dataprotection_acknowledged",n))},null,8,["model-value"]),e.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]?m("v-if",!0):(r(),d(l,{key:1,subtype:"warning"},{default:a(()=>[p(" Wenn sie nicht einwilligen, wird eine ggf. konfigurierte Cloud Anbindung gelöscht. Die openWB arbeitet autark wie gewohnt weiter. Fernzugriff und Remote Support sind dann nicht mehr möglich! ")]),_:1}))]),_:1})])])}const x=_(f,[["render",y],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LegalSettings.vue"]]);export{x as default};
+import{C as g}from"./index-f08a7306.js";import{_,p as o,k as r,l as w,q as u,A as s,L as a,y as d,u as p,z as m}from"./vendor-20bb207d.js";import"./vendor-fortawesome-838df0c9.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";const f={name:"OpenwbDataProtection",mixins:[g],data(){return{mqttTopicsToSubscribe:["openWB/system/dataprotection_acknowledged"]}}},k={class:"dataProtection"},h={name:"dataProtectionForm"},v=u("iframe",{src:"dataProtection-usageTerms.html",width:"100%",height:"400px",class:"bg-light"},null,-1),B=u("hr",null,null,-1);function y(e,t,z,V,W,$){const i=o("openwb-base-button-group-input"),l=o("openwb-base-alert"),c=o("openwb-base-submit-buttons"),b=o("openwb-base-card");return r(),w("div",k,[u("form",h,[s(b,{title:"Nutzungsbedingungen & Datenschutzerklärung"},{footer:a(()=>[s(c,{formName:"dataProtectionForm",hideReset:!0,hideDefaults:!0,onSave:t[2]||(t[2]=n=>e.$emit("save"))})]),default:a(()=>[v,B,s(i,{title:"Nutzungsbedingungen",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/system/usage_terms_acknowledged"],"onUpdate:modelValue":t[0]||(t[0]=n=>e.updateState("openWB/system/usage_terms_acknowledged",n))},null,8,["model-value"]),e.$store.state.mqtt["openWB/system/usage_terms_acknowledged"]?m("v-if",!0):(r(),d(l,{key:0,subtype:"danger"},{default:a(()=>[p(" Sie müssen die Nutzungsbedingungen akzeptieren, bevor openWB eingesetzt werden kann. ")]),_:1})),s(i,{title:"Datenschutzerklärung",buttons:[{buttonValue:!1,text:"Ablehnen",class:"btn-outline-danger"},{buttonValue:!0,text:"Akzeptieren",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/system/dataprotection_acknowledged"],"onUpdate:modelValue":t[1]||(t[1]=n=>e.updateState("openWB/system/dataprotection_acknowledged",n))},null,8,["model-value"]),e.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]?m("v-if",!0):(r(),d(l,{key:1,subtype:"warning"},{default:a(()=>[p(" Wenn sie nicht einwilligen, wird eine ggf. konfigurierte Cloud Anbindung gelöscht. Die openWB arbeitet autark wie gewohnt weiter. Fernzugriff und Remote Support sind dann nicht mehr möglich! ")]),_:1}))]),_:1})])])}const x=_(f,[["render",y],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LegalSettings.vue"]]);export{x as default};
diff --git a/web/settings/assets/LoadManagementConfig-8a4d7343.js b/web/settings/assets/LoadManagementConfig-ca6e28c3.js
similarity index 95%
rename from web/settings/assets/LoadManagementConfig-8a4d7343.js
rename to web/settings/assets/LoadManagementConfig-ca6e28c3.js
index 372f593632..4fbddbfc3a 100644
--- a/web/settings/assets/LoadManagementConfig-8a4d7343.js
+++ b/web/settings/assets/LoadManagementConfig-ca6e28c3.js
@@ -1 +1 @@
-import{l as z,L as S,M as C,F as L}from"./vendor-fortawesome-ad83e535.js";import{C as $}from"./index-cbcca7a0.js";import{S as x}from"./OpenwbSortableList-8561f9a9.js";import{_ as V,p as u,k as l,l as m,q as d,A as s,L as r,u as o,G as _,I as v,y as w,x as k,z as M}from"./vendor-94ac8c48.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";z.add(S,C);const q={name:"OpenwbLoadManagementConfig",mixins:[$],emits:["sendCommand"],components:{SortableList:x,FontAwesomeIcon:L},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/config/reserve_for_not_charging","openWB/counter/get/hierarchy","openWB/system/device/+/component/+/config","openWB/counter/+/config/max_currents","openWB/counter/+/config/max_total_power","openWB/pv/+/config/max_ac_out","openWB/chargepoint/+/config"]}},computed:{counterConfigs:{get(){let e=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(e).filter(t=>e[t].type.includes("counter")).reduce((t,i)=>({...t,[i]:e[i]}),{})}},inverterConfigs:{get(){let e=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(e).filter(t=>e[t].type.includes("inverter")).reduce((t,i)=>({...t,[i]:e[i]}),{})}},hierarchyLabels:{get(){let e={};for(const t of Object.values(this.$store.state.mqtt["openWB/counter/get/hierarchy"]))e={...e,...this.getElementTreeNames(t)};return e}}},methods:{getElementTreeNames(e){let t={};if(e.type=="cp"){let i=this.getChargePoint(e.id);i&&(t[e.id]=i.name)}else{let i=this.getComponent(e.id);i&&(t[e.id]=i.name)}return e.children.forEach(i=>{t={...t,...this.getElementTreeNames(i)}}),t},getComponent(e){let t;return Object.keys(this.$store.state.mqtt).forEach(i=>{i.match("^openWB/system/device/[0-9]+/component/"+e+"/config$")&&(t=this.$store.state.mqtt[i])}),t},getChargePoint(e){let t;return Object.keys(this.$store.state.mqtt).forEach(i=>{i.match("^openWB/chargepoint/"+e+"/config$")&&(t=this.$store.state.mqtt[i])}),t}}},F={class:"loadManagementConfig"},Z={name:"loadManagementConfigForm"},A={key:0},D={key:1},E=d("br",null,null,-1),U=d("br",null,null,-1),N=d("br",null,null,-1),P=d("br",null,null,-1),T=d("br",null,null,-1),O={key:0},j={key:1},R=d("br",null,null,-1),G=d("br",null,null,-1),K=d("br",null,null,-1);function H(e,t,i,I,J,g){const h=u("openwb-base-alert"),W=u("openwb-base-button-group-input"),f=u("openwb-base-heading"),b=u("font-awesome-icon"),c=u("openwb-base-number-input"),p=u("openwb-base-card"),B=u("sortable-list"),y=u("openwb-base-submit-buttons");return l(),m("div",F,[d("form",Z,[s(p,{title:"Einstellungen",collapsible:!0,collapsed:!1},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),m("div",A,[s(h,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),m("div",D,[s(W,{title:"Nicht-ladende Fahrzeuge",buttons:[{buttonValue:!1,text:"nicht berücksichtigen",class:"btn-outline-danger"},{buttonValue:!0,text:"berücksichtigen",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/counter/config/reserve_for_not_charging"],"onUpdate:modelValue":t[0]||(t[0]=n=>e.updateState("openWB/counter/config/reserve_for_not_charging",n))},{help:r(()=>[o(" Wenn angesteckte Fahrzeuge, die nicht laden, im Lastmanagement berücksichtigt werden, wird für diese der Fahrzeug-Mindeststrom bei vorliegender Ladefreigabe reserviert. Dadurch können bei Eingreifen des Lastmanagements andere Fahrzeuge möglicherweise nur mit reduzierter Stromstärke laden und der reservierte Strom wird nicht genutzt."),E,o(" Wenn die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, nutzen sie den für sie reservierten Strom."),U,N,o(" Wenn angesteckte Fahrzeuge, die nicht laden, nicht im Lastmanagement berücksichtigt werden, wird für diese auch kein Strom bei vorliegender Ladefreigabe reserviert. Andere Fahrzeuge können dadurch mit höherer Stromstärke laden."),P,o(" Wenn die maximalen Lastmanagement-Grenzen fast erreicht sind und die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, kann es zu einer kurzzeitigen Überschreitung der Lastmanagement-Grenzen kommen, bis im nächsten Zyklus die Stromstärken ALLER Ladepunkte an die neue Situation angepasst wurden."),T,o(" Das kurzzeitige Überschreiten der Maximal-Werte stellt für die Sicherungen in der Regel kein Problem dar. ")]),_:1},8,["model-value"]),s(f,null,{default:r(()=>[o(" Vorhandene Zählermodule ")]),_:1}),s(h,{subtype:"info"},{default:r(()=>[o(" Die maximale Leistung wird nur für den EVU-Zähler berücksichtigt. Bei Zwischenzählern begrenzt das Lastmanagement rein anhand der maximalen Phasenströme. ")]),_:1}),(l(!0),m(_,null,v(g.counterConfigs,n=>(l(),w(p,{key:n.id,collapsible:!0,collapsed:!0,subtype:"danger"},{header:r(()=>[s(b,{"fixed-width":"",icon:["fas","gauge-high"]}),o(" "+k(n.name),1)]),default:r(()=>[s(c,{title:"Maximale Leistung",min:1,step:1,unit:"kW","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_total_power"]/1e3,"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_total_power",a*1e3)},{help:r(()=>[o(" Maximal zulässige Leistung für diesen (Zwischen-)Zähler. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L1",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][0],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"0")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 1 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L2",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][1],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"1")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 2 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L3",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][2],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"2")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 3 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128)),s(f,null,{default:r(()=>[o(" Vorhandene Wechselrichtermodule ")]),_:1}),(l(!0),m(_,null,v(g.inverterConfigs,n=>(l(),w(p,{key:n.id,collapsible:!0,collapsed:!0,subtype:"success"},{header:r(()=>[s(b,{"fixed-width":"",icon:["fas","solar-panel"]}),o(" "+k(n.name),1)]),default:r(()=>[s(c,{title:"Maximale Ausgangsleistung des Wechselrichters",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/pv/"+n.id+"/config/max_ac_out"]/1e3,"onUpdate:modelValue":a=>e.updateState("openWB/pv/"+n.id+"/config/max_ac_out",a*1e3)},{help:r(()=>[o(" Relevant bei Hybrid-Systemen mit DC-Speicher. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128))]))]),_:1}),s(p,{title:"Struktur",collapsible:!0,collapsed:!0},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),m("div",O,[s(h,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),m("div",j,[M(" ToDo: Fix: nested lists bypass store commits! "),s(B,{title:"Anordnung der Komponenten","model-value":e.$store.state.mqtt["openWB/counter/get/hierarchy"],"onUpdate:modelValue":t[1]||(t[1]=n=>e.updateState("openWB/counter/get/hierarchy",n)),labels:g.hierarchyLabels},{help:r(()=>[o(" Durch die Anordnung der Komponenten werden Abhängigkeiten abgebildet."),R,o(" An erster Stelle muss eine Zählerkomponente stehen, die den Netzanschlusspunkt erfasst. Dafür kann auch ein virtueller Zähler genutzt werden."),G,o(" Die weiteren Komponenten müssen hierarchisch so angeordnet werden, wie sie auch physisch im Stromnetz angeschlossen werden."),K,o(" Bei DC-gekoppelten Speichern sind diese hinter dem zugehörigen Wechselrichter zu platzieren, damit die Abhängigkeit in der Regelung berücksichtigt werden kann. ")]),_:1},8,["model-value","labels"])]))]),_:1}),s(y,{formName:"loadManagementConfigForm",onSave:t[2]||(t[2]=n=>e.$emit("save")),onReset:t[3]||(t[3]=n=>e.$emit("reset")),onDefaults:t[4]||(t[4]=n=>e.$emit("defaults"))})])])}const re=V(q,[["render",H],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LoadManagementConfig.vue"]]);export{re as default};
+import{l as z,L as S,M as C,F as L}from"./vendor-fortawesome-838df0c9.js";import{C as $}from"./index-f08a7306.js";import{S as x}from"./OpenwbSortableList-ac8ac331.js";import{_ as V,p as u,k as l,l as m,q as d,A as s,L as r,u as o,G as _,I as v,y as w,x as k,z as M}from"./vendor-20bb207d.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";z.add(S,C);const q={name:"OpenwbLoadManagementConfig",mixins:[$],emits:["sendCommand"],components:{SortableList:x,FontAwesomeIcon:L},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/counter/config/reserve_for_not_charging","openWB/counter/get/hierarchy","openWB/system/device/+/component/+/config","openWB/counter/+/config/max_currents","openWB/counter/+/config/max_total_power","openWB/pv/+/config/max_ac_out","openWB/chargepoint/+/config"]}},computed:{counterConfigs:{get(){let e=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(e).filter(t=>e[t].type.includes("counter")).reduce((t,i)=>({...t,[i]:e[i]}),{})}},inverterConfigs:{get(){let e=this.getWildcardTopics("openWB/system/device/+/component/+/config");return Object.keys(e).filter(t=>e[t].type.includes("inverter")).reduce((t,i)=>({...t,[i]:e[i]}),{})}},hierarchyLabels:{get(){let e={};for(const t of Object.values(this.$store.state.mqtt["openWB/counter/get/hierarchy"]))e={...e,...this.getElementTreeNames(t)};return e}}},methods:{getElementTreeNames(e){let t={};if(e.type=="cp"){let i=this.getChargePoint(e.id);i&&(t[e.id]=i.name)}else{let i=this.getComponent(e.id);i&&(t[e.id]=i.name)}return e.children.forEach(i=>{t={...t,...this.getElementTreeNames(i)}}),t},getComponent(e){let t;return Object.keys(this.$store.state.mqtt).forEach(i=>{i.match("^openWB/system/device/[0-9]+/component/"+e+"/config$")&&(t=this.$store.state.mqtt[i])}),t},getChargePoint(e){let t;return Object.keys(this.$store.state.mqtt).forEach(i=>{i.match("^openWB/chargepoint/"+e+"/config$")&&(t=this.$store.state.mqtt[i])}),t}}},F={class:"loadManagementConfig"},Z={name:"loadManagementConfigForm"},A={key:0},D={key:1},E=d("br",null,null,-1),U=d("br",null,null,-1),N=d("br",null,null,-1),P=d("br",null,null,-1),T=d("br",null,null,-1),O={key:0},j={key:1},R=d("br",null,null,-1),G=d("br",null,null,-1),K=d("br",null,null,-1);function H(e,t,i,I,J,g){const h=u("openwb-base-alert"),W=u("openwb-base-button-group-input"),f=u("openwb-base-heading"),b=u("font-awesome-icon"),c=u("openwb-base-number-input"),p=u("openwb-base-card"),B=u("sortable-list"),y=u("openwb-base-submit-buttons");return l(),m("div",F,[d("form",Z,[s(p,{title:"Einstellungen",collapsible:!0,collapsed:!1},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),m("div",A,[s(h,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),m("div",D,[s(W,{title:"Nicht-ladende Fahrzeuge",buttons:[{buttonValue:!1,text:"nicht berücksichtigen",class:"btn-outline-danger"},{buttonValue:!0,text:"berücksichtigen",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/counter/config/reserve_for_not_charging"],"onUpdate:modelValue":t[0]||(t[0]=n=>e.updateState("openWB/counter/config/reserve_for_not_charging",n))},{help:r(()=>[o(" Wenn angesteckte Fahrzeuge, die nicht laden, im Lastmanagement berücksichtigt werden, wird für diese der Fahrzeug-Mindeststrom bei vorliegender Ladefreigabe reserviert. Dadurch können bei Eingreifen des Lastmanagements andere Fahrzeuge möglicherweise nur mit reduzierter Stromstärke laden und der reservierte Strom wird nicht genutzt."),E,o(" Wenn die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, nutzen sie den für sie reservierten Strom."),U,N,o(" Wenn angesteckte Fahrzeuge, die nicht laden, nicht im Lastmanagement berücksichtigt werden, wird für diese auch kein Strom bei vorliegender Ladefreigabe reserviert. Andere Fahrzeuge können dadurch mit höherer Stromstärke laden."),P,o(" Wenn die maximalen Lastmanagement-Grenzen fast erreicht sind und die Fahrzeuge wieder Leistung beziehen, z.B. um vorzuklimatisieren, kann es zu einer kurzzeitigen Überschreitung der Lastmanagement-Grenzen kommen, bis im nächsten Zyklus die Stromstärken ALLER Ladepunkte an die neue Situation angepasst wurden."),T,o(" Das kurzzeitige Überschreiten der Maximal-Werte stellt für die Sicherungen in der Regel kein Problem dar. ")]),_:1},8,["model-value"]),s(f,null,{default:r(()=>[o(" Vorhandene Zählermodule ")]),_:1}),s(h,{subtype:"info"},{default:r(()=>[o(" Die maximale Leistung wird nur für den EVU-Zähler berücksichtigt. Bei Zwischenzählern begrenzt das Lastmanagement rein anhand der maximalen Phasenströme. ")]),_:1}),(l(!0),m(_,null,v(g.counterConfigs,n=>(l(),w(p,{key:n.id,collapsible:!0,collapsed:!0,subtype:"danger"},{header:r(()=>[s(b,{"fixed-width":"",icon:["fas","gauge-high"]}),o(" "+k(n.name),1)]),default:r(()=>[s(c,{title:"Maximale Leistung",min:1,step:1,unit:"kW","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_total_power"]/1e3,"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_total_power",a*1e3)},{help:r(()=>[o(" Maximal zulässige Leistung für diesen (Zwischen-)Zähler. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L1",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][0],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"0")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 1 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L2",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][1],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"1")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 2 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),s(c,{title:"Maximaler Strom L3",min:16,step:1,unit:"A","model-value":e.$store.state.mqtt["openWB/counter/"+n.id+"/config/max_currents"][2],"onUpdate:modelValue":a=>e.updateState("openWB/counter/"+n.id+"/config/max_currents",a,"2")},{help:r(()=>[o(" Maximal zulässiger Strom für die Phase 3 dieses (Zwischen-)Zählers. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128)),s(f,null,{default:r(()=>[o(" Vorhandene Wechselrichtermodule ")]),_:1}),(l(!0),m(_,null,v(g.inverterConfigs,n=>(l(),w(p,{key:n.id,collapsible:!0,collapsed:!0,subtype:"success"},{header:r(()=>[s(b,{"fixed-width":"",icon:["fas","solar-panel"]}),o(" "+k(n.name),1)]),default:r(()=>[s(c,{title:"Maximale Ausgangsleistung des Wechselrichters",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/pv/"+n.id+"/config/max_ac_out"]/1e3,"onUpdate:modelValue":a=>e.updateState("openWB/pv/"+n.id+"/config/max_ac_out",a*1e3)},{help:r(()=>[o(" Relevant bei Hybrid-Systemen mit DC-Speicher. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1024))),128))]))]),_:1}),s(p,{title:"Struktur",collapsible:!0,collapsed:!0},{default:r(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(l(),m("div",O,[s(h,{subtype:"info"},{default:r(()=>[o(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(l(),m("div",j,[M(" ToDo: Fix: nested lists bypass store commits! "),s(B,{title:"Anordnung der Komponenten","model-value":e.$store.state.mqtt["openWB/counter/get/hierarchy"],"onUpdate:modelValue":t[1]||(t[1]=n=>e.updateState("openWB/counter/get/hierarchy",n)),labels:g.hierarchyLabels},{help:r(()=>[o(" Durch die Anordnung der Komponenten werden Abhängigkeiten abgebildet."),R,o(" An erster Stelle muss eine Zählerkomponente stehen, die den Netzanschlusspunkt erfasst. Dafür kann auch ein virtueller Zähler genutzt werden."),G,o(" Die weiteren Komponenten müssen hierarchisch so angeordnet werden, wie sie auch physisch im Stromnetz angeschlossen werden."),K,o(" Bei DC-gekoppelten Speichern sind diese hinter dem zugehörigen Wechselrichter zu platzieren, damit die Abhängigkeit in der Regelung berücksichtigt werden kann. ")]),_:1},8,["model-value","labels"])]))]),_:1}),s(y,{formName:"loadManagementConfigForm",onSave:t[2]||(t[2]=n=>e.$emit("save")),onReset:t[3]||(t[3]=n=>e.$emit("reset")),onDefaults:t[4]||(t[4]=n=>e.$emit("defaults"))})])])}const re=V(q,[["render",H],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/LoadManagementConfig.vue"]]);export{re as default};
diff --git a/web/settings/assets/MqttBridgeConfig-5474c1b1.js b/web/settings/assets/MqttBridgeConfig-5474c1b1.js
new file mode 100644
index 0000000000..4869a45726
--- /dev/null
+++ b/web/settings/assets/MqttBridgeConfig-5474c1b1.js
@@ -0,0 +1 @@
+import{l as C,d as q,S as A,F as z}from"./vendor-fortawesome-838df0c9.js";import{C as D}from"./index-f08a7306.js";import{_ as I,p as r,k as m,l as c,z as b,A as n,L as o,q as f,G as T,u as s,x as y,y as S,I as W,Q as E,R as Q}from"./vendor-20bb207d.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";C.add(q,A);const N={name:"OpenwbMqttBridgeConfiguration",mixins:[D],emits:["sendCommand"],components:{FontAwesomeIcon:z},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/mqtt/bridge/+"],showMqttBridgeModal:!1,modalMqttBridgeIndex:void 0}},computed:{configuredMqttBridges:{get(){let e=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[u,v]of Object.entries(e))v.remote.is_openwb_cloud&&delete e[u];return e}}},methods:{addMqttBridge(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addMqttBridge",data:{}})},getMqttBridgeIndex(e){return parseInt(e.match(/(?:\/)(\d+)$/)[1])},removeMqttBridgeModal(e,u){u.stopPropagation(),this.modalMqttBridgeIndex=this.getMqttBridgeIndex(e),this.showMqttBridgeModal=!0},removeMqttBridge(e,u){this.showMqttBridgeModal=!1,u=="confirm"&&(console.info("request removal of mqtt bridge '"+e+"'"),this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:e}}))},getMqttBridgeName(e){return this.$store.state.mqtt["openWB/system/mqtt/bridge/"+e]?this.$store.state.mqtt["openWB/system/mqtt/bridge/"+e].name:e}}},g=e=>(E("data-v-1ec2f2f5"),e=e(),Q(),e),P={class:"mqttBridgeConfiguration"},Z=g(()=>f("br",null,null,-1)),L={key:0},F={key:1},$=["name"],O=g(()=>f("hr",null,null,-1)),R=g(()=>f("hr",null,null,-1));function j(e,u,v,G,h,i){const U=r("openwb-base-modal-dialog"),_=r("openwb-base-alert"),w=r("font-awesome-icon"),V=r("openwb-base-avatar"),p=r("openwb-base-text-input"),d=r("openwb-base-button-group-input"),k=r("openwb-base-heading"),B=r("openwb-base-number-input"),x=r("openwb-base-submit-buttons"),M=r("openwb-base-card");return m(),c(T,null,[b(" modal dialogs "),n(U,{show:h.showMqttBridgeModal,title:"MQTT-Brücke löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:u[0]||(u[0]=l=>i.removeMqttBridge(h.modalMqttBridgeIndex,l))},{default:o(()=>[s(' Wollen Sie die MQTT-Brücke "'+y(i.getMqttBridgeName(h.modalMqttBridgeIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),b(" main content "),f("div",P,[n(_,{subtype:"danger"},{default:o(()=>[s(" ACHTUNG: Die Konfiguration einer MQTT-Brücke erlaubt allen Nutzern mit Zugang zum entfernten MQTT-Server alle weitergeleiteten Daten dieser openWB einzusehen!"),Z,s(' Es wird dringend empfohlen, dies nur für nicht-öffentliche MQTT-Server unter Verwendung starker Transport-Verschlüsselung (TLS) mit persönlichem Login und strenger Zugriffskontrolle (zumindest für die MQTT-Thema unterhalb von "Entfernter Präfix") zu aktivieren! ')]),_:1}),n(M,{title:"Konfigurierte MQTT-Brücken"},{actions:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(m(),S(V,{key:0,class:"bg-success clickable",onClick:i.addMqttBridge},{default:o(()=>[n(w,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):b("v-if",!0)]),default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(m(),c("div",L,[n(_,{subtype:"info"},{default:o(()=>[s(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(m(),c("div",F,[Object.keys(i.configuredMqttBridges).length===0?(m(),S(_,{key:0,subtype:"info"},{default:o(()=>[s(" Es wurde noch keine MQTT Brücke konfiguriert. ")]),_:1})):b("v-if",!0),(m(!0),c(T,null,W(i.configuredMqttBridges,(l,a)=>(m(),c("form",{key:a,name:"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(a)},[n(M,{title:l.name,collapsible:!0,collapsed:!0,subtype:"primary"},{actions:o(()=>[n(V,{class:"bg-danger clickable",onClick:t=>i.removeMqttBridgeModal(a,t)},{default:o(()=>[n(w,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])]),footer:o(()=>[n(x,{formName:"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(a),hideDefaults:!0,onSave:t=>e.$emit("save",[a]),onReset:t=>e.$emit("reset",[a])},null,8,["formName","onSave","onReset"])]),default:o(()=>[n(p,{title:"Bezeichnung",subtype:"text",required:"",pattern:"[A-Za-z0-9]+","model-value":l.name,"onUpdate:modelValue":t=>e.updateState(a,t,"name")},{help:o(()=>[s(" Die Bezeichnung darf nur aus Buchstaben ohne Umlaute und Zahlen bestehen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Brücke aktivieren",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":l.active,"onUpdate:modelValue":t=>e.updateState(a,t,"active")},null,8,["model-value","onUpdate:modelValue"]),O,n(k,null,{default:o(()=>[s(" Einstellungen zur Verbindung ")]),_:1}),n(p,{title:"Entfernter Server",subtype:"host",required:"","model-value":l.remote.host,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.host")},null,8,["model-value","onUpdate:modelValue"]),n(B,{title:"Entfernter Port",required:"",min:1,max:65535,"model-value":l.remote.port,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.port")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Benutzername",subtype:"user",required:"",pattern:"[a-zA-Z0-9_\\-+.]+","model-value":l.remote.username,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.username")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Passwort",subtype:"password",required:"","model-value":l.remote.password,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.password")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Präfix",subtype:"text",pattern:"[A-Za-z0-9_\\-]+(\\/[A-Za-z0-9_\\-]+)?\\/","model-value":l.remote.prefix,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.prefix")},{help:o(()=>[s(' Das Präfix darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. Optional kann mit einem Schrägstrich "/" eine Topic-Struktur abgebildet werden. Am Ende des Präfix muss ein Schrägstrich "/" stehen. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(p,{title:"Client ID",subtype:"text",required:"",pattern:"[A-Za-z0-9_\\-]+","model-value":l.remote.client_id,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.client_id")},{help:o(()=>[s(" Die Client ID darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"MQTT Protokoll",required:"required",buttons:[{buttonValue:"mqttv31",text:"v3.1"},{buttonValue:"mqttv311",text:"v3.1.1"}],"model-value":l.remote.protocol,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.protocol")},null,8,["model-value","onUpdate:modelValue"]),n(d,{title:"TLS Version",buttons:[{buttonValue:"auto",text:"Automatisch",class:"btn-outline-success"},{buttonValue:"tlsv1.0",text:"v1.0",class:"btn-outline-warning"},{buttonValue:"tlsv1.1",text:"v1.1",class:"btn-outline-warning"},{buttonValue:"tlsv1.2",text:"v1.2"}],"model-value":l.remote.tls_version,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.tls_version")},{help:o(()=>[s(' In der Einstellung "Automatisch" wird die Version zwischen Client und Server ausgehandelt. Wenn erforderlich, kann eine spezielle Version erzwungen werden. Versionen kleiner 1.2 gelten als veraltet und sollten nicht mehr verwendet werden. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Brücke signalisieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.remote.try_private,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.try_private")},{help:o(()=>[s(" Aktiviert eine proprietäre Protokoll-Erweiterung des Mosquitto Brokers, welche dem entfernten Broker signalisiert dass es sich um eine MQTT Brücke handelt. Ergibt bessere Leistung mit Mosquitto-Brokern, ist jedoch inkompatibel mit vielen anderen MQTT-Brokern. Daher bitte nur aktivieren, wenn der Ziel-Broker sicher ein Mosquitto-Broker ist. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),R,n(k,null,{default:o(()=>[s("Datenübertragung")]),_:1}),n(d,{title:"Alle Statusdaten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.status,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.status")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Datenserien für Diagramme",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.graph,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.graph")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Fernkonfiguration ermöglichen",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.configuration,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.configuration")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1032,["title"])],8,$))),128))]))]),_:1})])],64)}const ne=I(N,[["render",j],["__scopeId","data-v-1ec2f2f5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/MqttBridgeConfig.vue"]]);export{ne as default};
diff --git a/web/settings/assets/MqttBridgeConfig-9fb8ed69.js b/web/settings/assets/MqttBridgeConfig-9fb8ed69.js
deleted file mode 100644
index dbcc7de430..0000000000
--- a/web/settings/assets/MqttBridgeConfig-9fb8ed69.js
+++ /dev/null
@@ -1 +0,0 @@
-import{l as C,d as q,S as A,F as z}from"./vendor-fortawesome-ad83e535.js";import{C as D}from"./index-cbcca7a0.js";import{_ as I,p as r,k as m,l as c,z as b,A as n,L as o,q as f,G as T,u as s,x as y,y as S,I as W,Q as E,R as Q}from"./vendor-94ac8c48.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";C.add(q,A);const N={name:"OpenwbMqttBridgeConfiguration",mixins:[D],emits:["sendCommand"],components:{FontAwesomeIcon:z},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/mqtt/bridge/+"],showMqttBridgeModal:!1,modalMqttBridgeIndex:void 0}},computed:{configuredMqttBridges:{get(){let e=this.getWildcardTopics("openWB/system/mqtt/bridge/+");for(const[u,g]of Object.entries(e))g.remote.is_openwb_cloud&&(console.log("filtering bridge "+u,g),delete e[u]);return e}}},methods:{addMqttBridge(e){e.stopPropagation(),this.$emit("sendCommand",{command:"addMqttBridge",data:{}})},getMqttBridgeIndex(e){return parseInt(e.match(/(?:\/)(\d+)$/)[1])},removeMqttBridgeModal(e,u){u.stopPropagation(),console.log("removeMqttBridgeModal",e),this.modalMqttBridgeIndex=this.getMqttBridgeIndex(e),this.showMqttBridgeModal=!0},removeMqttBridge(e,u){this.showMqttBridgeModal=!1,u=="confirm"&&(console.info("request removal of mqtt bridge '"+e+"'"),this.$emit("sendCommand",{command:"removeMqttBridge",data:{bridge:e}}))},getMqttBridgeName(e){return this.$store.state.mqtt["openWB/system/mqtt/bridge/"+e]?this.$store.state.mqtt["openWB/system/mqtt/bridge/"+e].name:e}}},v=e=>(E("data-v-1ec2f2f5"),e=e(),Q(),e),P={class:"mqttBridgeConfiguration"},Z=v(()=>f("br",null,null,-1)),L={key:0},F={key:1},$=["name"],O=v(()=>f("hr",null,null,-1)),R=v(()=>f("hr",null,null,-1));function j(e,u,g,G,h,i){const U=r("openwb-base-modal-dialog"),_=r("openwb-base-alert"),w=r("font-awesome-icon"),V=r("openwb-base-avatar"),p=r("openwb-base-text-input"),d=r("openwb-base-button-group-input"),M=r("openwb-base-heading"),B=r("openwb-base-number-input"),x=r("openwb-base-submit-buttons"),k=r("openwb-base-card");return m(),c(T,null,[b(" modal dialogs "),n(U,{show:h.showMqttBridgeModal,title:"MQTT-Brücke löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:u[0]||(u[0]=l=>i.removeMqttBridge(h.modalMqttBridgeIndex,l))},{default:o(()=>[s(' Wollen Sie die MQTT-Brücke "'+y(i.getMqttBridgeName(h.modalMqttBridgeIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),b(" main content "),f("div",P,[n(_,{subtype:"danger"},{default:o(()=>[s(" ACHTUNG: Die Konfiguration einer MQTT-Brücke erlaubt allen Nutzern mit Zugang zum entfernten MQTT-Server alle weitergeleiteten Daten dieser openWB einzusehen!"),Z,s(' Es wird dringend empfohlen, dies nur für nicht-öffentliche MQTT-Server unter Verwendung starker Transport-Verschlüsselung (TLS) mit persönlichem Login und strenger Zugriffskontrolle (zumindest für die MQTT-Thema unterhalb von "Entfernter Präfix") zu aktivieren! ')]),_:1}),n(k,{title:"Konfigurierte MQTT-Brücken"},{actions:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(m(),S(V,{key:0,class:"bg-success clickable",onClick:i.addMqttBridge},{default:o(()=>[n(w,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):b("v-if",!0)]),default:o(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(m(),c("div",L,[n(_,{subtype:"info"},{default:o(()=>[s(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(m(),c("div",F,[Object.keys(i.configuredMqttBridges).length===0?(m(),S(_,{key:0,subtype:"info"},{default:o(()=>[s(" Es wurde noch keine MQTT Brücke konfiguriert. ")]),_:1})):b("v-if",!0),(m(!0),c(T,null,W(i.configuredMqttBridges,(l,a)=>(m(),c("form",{key:a,name:"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(a)},[n(k,{title:l.name,collapsible:!0,collapsed:!0,subtype:"primary"},{actions:o(()=>[n(V,{class:"bg-danger clickable",onClick:t=>i.removeMqttBridgeModal(a,t)},{default:o(()=>[n(w,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])]),footer:o(()=>[n(x,{formName:"mqttBridgeConfigurationForm"+i.getMqttBridgeIndex(a),hideDefaults:!0,onSave:t=>e.$emit("save",[a]),onReset:t=>e.$emit("reset",[a])},null,8,["formName","onSave","onReset"])]),default:o(()=>[n(p,{title:"Bezeichnung",subtype:"text",required:"",pattern:"[A-Za-z0-9]+","model-value":l.name,"onUpdate:modelValue":t=>e.updateState(a,t,"name")},{help:o(()=>[s(" Die Bezeichnung darf nur aus Buchstaben ohne Umlaute und Zahlen bestehen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Brücke aktivieren",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":l.active,"onUpdate:modelValue":t=>e.updateState(a,t,"active")},null,8,["model-value","onUpdate:modelValue"]),O,n(M,null,{default:o(()=>[s(" Einstellungen zur Verbindung ")]),_:1}),n(p,{title:"Entfernter Server",subtype:"host",required:"","model-value":l.remote.host,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.host")},null,8,["model-value","onUpdate:modelValue"]),n(B,{title:"Entfernter Port",required:"",min:1,max:65535,"model-value":l.remote.port,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.port")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Benutzername",subtype:"user",required:"",pattern:"[a-zA-Z0-9_\\-+.]+","model-value":l.remote.username,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.username")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Passwort",subtype:"password",required:"","model-value":l.remote.password,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.password")},null,8,["model-value","onUpdate:modelValue"]),n(p,{title:"Präfix",subtype:"text",pattern:"[A-Za-z0-9_\\-]+(\\/[A-Za-z0-9_\\-]+)?\\/","model-value":l.remote.prefix,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.prefix")},{help:o(()=>[s(' Das Präfix darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. Optional kann mit einem Schrägstrich "/" eine Topic-Struktur abgebildet werden. Am Ende des Präfix muss ein Schrägstrich "/" stehen. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(p,{title:"Client ID",subtype:"text",required:"",pattern:"[A-Za-z0-9_\\-]+","model-value":l.remote.client_id,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.client_id")},{help:o(()=>[s(" Die Client ID darf nur aus Buchstaben ohne Umlaute, Zahlen, Binde- und Unterstrichen bestehen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"MQTT Protokoll",required:"required",buttons:[{buttonValue:"mqttv31",text:"v3.1"},{buttonValue:"mqttv311",text:"v3.1.1"}],"model-value":l.remote.protocol,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.protocol")},null,8,["model-value","onUpdate:modelValue"]),n(d,{title:"TLS Version",buttons:[{buttonValue:"auto",text:"Automatisch",class:"btn-outline-success"},{buttonValue:"tlsv1.0",text:"v1.0",class:"btn-outline-warning"},{buttonValue:"tlsv1.1",text:"v1.1",class:"btn-outline-warning"},{buttonValue:"tlsv1.2",text:"v1.2"}],"model-value":l.remote.tls_version,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.tls_version")},{help:o(()=>[s(' In der Einstellung "Automatisch" wird die Version zwischen Client und Server ausgehandelt. Wenn erforderlich, kann eine spezielle Version erzwungen werden. Versionen kleiner 1.2 gelten als veraltet und sollten nicht mehr verwendet werden. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Brücke signalisieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.remote.try_private,"onUpdate:modelValue":t=>e.updateState(a,t,"remote.try_private")},{help:o(()=>[s(" Aktiviert eine proprietäre Protokoll-Erweiterung des Mosquitto Brokers, welche dem entfernten Broker signalisiert dass es sich um eine MQTT Brücke handelt. Ergibt bessere Leistung mit Mosquitto-Brokern, ist jedoch inkompatibel mit vielen anderen MQTT-Brokern. Daher bitte nur aktivieren, wenn der Ziel-Broker sicher ein Mosquitto-Broker ist. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),R,n(M,null,{default:o(()=>[s("Datenübertragung")]),_:1}),n(d,{title:"Alle Statusdaten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.status,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.status")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Datenserien für Diagramme",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.graph,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.graph")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"]),n(d,{title:"Fernkonfiguration ermöglichen",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":l.data_transfer.configuration,"onUpdate:modelValue":t=>e.updateState(a,t,"data_transfer.configuration")},{help:o(()=>[s("ToDo...")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},1032,["title"])],8,$))),128))]))]),_:1})])],64)}const ne=I(N,[["render",j],["__scopeId","data-v-1ec2f2f5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/MqttBridgeConfig.vue"]]);export{ne as default};
diff --git a/web/settings/assets/OpenwbSortableList-8561f9a9.js b/web/settings/assets/OpenwbSortableList-ac8ac331.js
similarity index 52%
rename from web/settings/assets/OpenwbSortableList-8561f9a9.js
rename to web/settings/assets/OpenwbSortableList-ac8ac331.js
index 861577c200..8b5866db21 100644
--- a/web/settings/assets/OpenwbSortableList-8561f9a9.js
+++ b/web/settings/assets/OpenwbSortableList-ac8ac331.js
@@ -1,12 +1,7 @@
-import{_ as b,a3 as L,p as c,k as a,y as u,L as x,q as l,n as h,A as _,z as p,u as g,x as w,l as f,m as C}from"./vendor-94ac8c48.js";import{l as v,a5 as H,J as O,K as S,L as N,M as B,F as y,f as E,a as A}from"./vendor-fortawesome-ad83e535.js";v.add(H,O,S,N,B);const j={name:"OpenwbNestedList",props:{list:{type:Object},labels:{type:Object}},components:{draggable:L,FontAwesomeIcon:y},methods:{classes(e){var t="";switch(e.type){case"bat":t+="battery";break;case"cp":t+="charge-point";break;default:t+=e.type;break}return t},getElementLabel(e){return this.labels&&e in this.labels?this.labels[e]:e},getElementIcon(e){switch(e.type){case"bat":return["fas","car-battery"];case"counter":return["fas","gauge-high"];case"cp":return["fas","charging-station"];case"inverter":return["fas","solar-panel"];default:return}}}};function q(e,t,o,k,r,s){const d=c("font-awesome-icon"),m=c("openwb-nested-list",!0),i=c("draggable");return a(),u(i,{class:"dragArea w-100 mb-0",tag:"ul",list:o.list,group:{name:"g1"},"item-key":"id",handle:".handle"},{item:x(({element:n})=>[l("li",null,[l("div",{class:h(["element-titel",s.classes(n)])},[l("span",null,[_(d,{class:"handle","fixed-width":"",icon:["fas","arrows-alt"]}),s.getElementIcon(n)?(a(),u(d,{key:0,"fixed-width":"",icon:s.getElementIcon(n)},null,8,["icon"])):p("v-if",!0),g(" "+w(s.getElementLabel(n.id)),1)]),p(` <span class="element-actions">
+import{_ as b,a3 as L,p as r,k as a,y as u,L as x,q as n,n as g,A as _,z as p,u as h,x as w,l as f,m as C}from"./vendor-20bb207d.js";import{l as v,a5 as H,J as O,K as S,L as N,M as B,F as y,f as E,a as A}from"./vendor-fortawesome-838df0c9.js";v.add(H,O,S,N,B);const j={name:"OpenwbNestedList",props:{list:{type:Object},labels:{type:Object}},components:{draggable:L,FontAwesomeIcon:y},methods:{classes(e){var t="";switch(e.type){case"bat":t+="battery";break;case"cp":t+="charge-point";break;default:t+=e.type;break}return t},getElementLabel(e){return this.labels&&e in this.labels?this.labels[e]:e},getElementIcon(e){switch(e.type){case"bat":return["fas","car-battery"];case"counter":return["fas","gauge-high"];case"cp":return["fas","charging-station"];case"inverter":return["fas","solar-panel"];default:return}}}};function q(e,t,o,k,c,s){const d=r("font-awesome-icon"),m=r("openwb-nested-list",!0),i=r("draggable");return a(),u(i,{class:"dragArea w-100 mb-0",tag:"ul",list:o.list,group:{name:"g1"},"item-key":"id",handle:".handle"},{item:x(({element:l})=>[n("li",null,[n("div",{class:g(["element-titel",s.classes(l)])},[n("span",null,[_(d,{class:"handle","fixed-width":"",icon:["fas","arrows-alt"]}),s.getElementIcon(l)?(a(),u(d,{key:0,"fixed-width":"",icon:s.getElementIcon(l)},null,8,["icon"])):p("v-if",!0),h(" "+w(s.getElementLabel(l.id)),1)]),p(` <span class="element-actions">
 						<font-awesome-icon
 							fixed-width
 							:icon="['fas', 'edit']"
 							@click="elementEdit(element.id)"
 						/>
-						<font-awesome-icon
-							fixed-width
-							:icon="['fas', 'trash']"
-							@click="elementDelete(element.id)"
-						/>
-					</span> `)],2),_(m,{modelValue:n.children,"onUpdate:modelValue":V=>n.children=V,labels:o.labels},null,8,["modelValue","onUpdate:modelValue","labels"])])]),_:1},8,["list"])}const D=b(j,[["render",q],["__scopeId","data-v-82c9421a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbNestedList.vue"]]);v.add(E,A);const I={name:"OpenwbSortableList",props:{id:String,title:String,modelValue:Object,labels:{type:Object,default:void 0}},emits:["update:modelValue"],components:{FontAwesomeIcon:y,OpenwbNestedList:D},data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){console.debug("update in sortableList",e),this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}}},U={class:"form-row mb-1"},W={class:"col-md-8"},z={class:"form-row"},F={key:1},Q={key:0,class:"form-row alert alert-info my-1 small"};function G(e,t,o,k,r,s){const d=c("font-awesome-icon"),m=c("openwb-nested-list");return a(),f("div",U,[l("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[g(w(o.title)+" ",1),e.$slots.help?(a(),u(d,{key:0,icon:r.showHelp?["fas","question-circle"]:["far","question-circle"],class:h(r.showHelp?"text-info":"")},null,8,["icon","class"])):p("v-if",!0)]),l("div",W,[l("div",z,[s.value!==void 0?(a(),u(m,{key:0,modelValue:s.value,"onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i),labels:o.labels},null,8,["modelValue","labels"])):(a(),f("div",F,"Warte auf Daten..."))]),r.showHelp?(a(),f("span",Q,[C(e.$slots,"help")])):p("v-if",!0)])])}const M=b(I,[["render",G],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbSortableList.vue"]]);export{M as S};
+					</span> `)],2),_(m,{modelValue:l.children,"onUpdate:modelValue":V=>l.children=V,labels:o.labels},null,8,["modelValue","onUpdate:modelValue","labels"])])]),_:1},8,["list"])}const I=b(j,[["render",q],["__scopeId","data-v-82c9421a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbNestedList.vue"]]);v.add(E,A);const U={name:"OpenwbSortableList",props:{id:String,title:String,modelValue:Object,labels:{type:Object,default:void 0}},emits:["update:modelValue"],components:{FontAwesomeIcon:y,OpenwbNestedList:I},data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){console.debug("update in sortableList",e),this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}}},W={class:"form-row mb-1"},z={class:"col-md-8"},D={class:"form-row"},F={key:1},Q={key:0,class:"form-row alert alert-info my-1 small"};function G(e,t,o,k,c,s){const d=r("font-awesome-icon"),m=r("openwb-nested-list");return a(),f("div",W,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[h(w(o.title)+" ",1),e.$slots.help?(a(),u(d,{key:0,icon:c.showHelp?["fas","question-circle"]:["far","question-circle"],class:g(c.showHelp?"text-info":"")},null,8,["icon","class"])):p("v-if",!0)]),n("div",z,[n("div",D,[s.value!==void 0?(a(),u(m,{key:0,modelValue:s.value,"onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i),labels:o.labels},null,8,["modelValue","labels"])):(a(),f("div",F,"Warte auf Daten..."))]),c.showHelp?(a(),f("span",Q,[C(e.$slots,"help")])):p("v-if",!0)])])}const M=b(U,[["render",G],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbSortableList.vue"]]);export{M as S};
diff --git a/web/settings/assets/OptionalComponents-df4003ba.js b/web/settings/assets/OptionalComponents-4617e1d7.js
similarity index 98%
rename from web/settings/assets/OptionalComponents-df4003ba.js
rename to web/settings/assets/OptionalComponents-4617e1d7.js
index a59e7dda26..9fc8d7c774 100644
--- a/web/settings/assets/OptionalComponents-df4003ba.js
+++ b/web/settings/assets/OptionalComponents-4617e1d7.js
@@ -1,4 +1,4 @@
-import{_ as w,C as B}from"./index-cbcca7a0.js";import{_ as W}from"./dynamic-import-helper-be004503.js";import{_ as D,p as s,k as f,l as b,A as o,L as a,u as l,x,q as i,a0 as T,y as _,a1 as $,z as r}from"./vendor-94ac8c48.js";import"./vendor-fortawesome-ad83e535.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";const S={name:"DisplayThemeFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},displayThemeType:{type:String}},methods:{updateConfiguration(t,n=void 0){this.$emit("update:configuration",{value:t,object:n})}}},q={class:"display-theme-fallback"};function V(t,n,u,c,g,d){const p=s("openwb-base-alert"),v=s("openwb-base-textarea");return f(),b("div",q,[o(p,{subtype:"warning"},{default:a(()=>[l(' Es wurde keine Konfigurationsseite für das Display Theme "'+x(u.displayThemeType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),o(v,{title:"Konfiguration",subtype:"json","model-value":u.configuration,"onUpdate:modelValue":n[0]||(n[0]=m=>d.updateConfiguration(m,"configuration"))},{help:a(()=>[l(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),o(p,{subtype:"info"},{default:a(()=>[i("pre",null,x(JSON.stringify(u.configuration,void 0,2)),1)]),_:1})])}const A=D(S,[["render",V],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeFallback.vue"]]),z={name:"OpenwbDisplayThemeProxy",emits:["update:configuration"],props:{displayThemeType:{type:String,required:!0},configuration:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading display theme: ${this.displayThemeType}`),T({loader:()=>W(Object.assign({"./cards/displayTheme.vue":()=>w(()=>import("./displayTheme-af0ce411.js"),["assets/displayTheme-af0ce411.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"])}),`./${this.displayThemeType}/displayTheme.vue`),errorComponent:A})}},methods:{updateConfiguration(t){this.$emit("update:configuration",t)}}};function C(t,n,u,c,g,d){return f(),_($(d.myComponent),{configuration:u.configuration,displayThemeType:u.displayThemeType,"onUpdate:configuration":n[0]||(n[0]=p=>d.updateConfiguration(p))},null,40,["configuration","displayThemeType"])}const O=D(z,[["render",C],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeProxy.vue"]]),I={name:"OpenwbOptionalComponents",mixins:[B],components:{OpenwbDisplayThemeProxy:O},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/extern_display_mode","openWB/optional/rfid/active","openWB/optional/led/active","ToDo/optional/led/instant_blocked","ToDo/optional/led/pv_blocked","ToDo/optional/led/scheduled_blocked","ToDo/optional/led/standby_blocked","ToDo/optional/led/stop_blocked","ToDo/optional/led/instant","ToDo/optional/led/pv","ToDo/optional/led/scheduled","ToDo/optional/led/standby","ToDo/optional/led/stop","openWB/optional/int_display/active","openWB/optional/int_display/standby","openWB/optional/int_display/rotation","openWB/optional/int_display/on_if_plugged_in","openWB/optional/int_display/pin_active","openWB/optional/int_display/pin_code","openWB/optional/int_display/theme","openWB/optional/int_display/only_local_charge_points","openWB/system/configurable/display_themes","openWB/optional/et/active","openWB/optional/et/config/provider","openWB/optional/et/config/max_price"]}},computed:{displayThemeList:{get(){return this.$store.state.mqtt["openWB/system/configurable/display_themes"]}}},methods:{getDisplayThemeDefaultConfiguration(t){const n=this.displayThemeList.find(u=>u.value==t);return Object.prototype.hasOwnProperty.call(n,"defaults")?{...n.defaults.configuration}:(console.warn("no default configuration found for display theme type!",t),{})},updateSelectedDisplayTheme(t){this.updateState("openWB/optional/int_display/theme",t,"type"),this.updateState("openWB/optional/int_display/theme",this.getDisplayThemeDefaultConfiguration(t),"configuration")},updateConfiguration(t,n){console.debug("updateConfiguration",t,n),this.updateState(t,n.value,n.object)}}},N={class:"optionalComponents"},P={name:"optionalComponentsForm"},F={key:0},R=i("br",null,null,-1),M=i("br",null,null,-1),U=["innerHTML"],j={key:0},H=i("br",null,null,-1),J=i("hr",null,null,-1),Z={key:1},K=i("hr",null,null,-1),G=i("br",null,null,-1),Q=i("hr",null,null,-1),X={key:2},Y=i("hr",null,null,-1),tt=i("hr",null,null,-1),nt={key:0};function et(t,n,u,c,g,d){const p=s("openwb-base-button-group-input"),v=s("openwb-base-alert"),m=s("openwb-base-card"),y=s("openwb-base-heading"),h=s("openwb-base-range-input"),k=s("openwb-base-select-input"),L=s("openwb-display-theme-proxy"),E=s("openwb-base-submit-buttons");return f(),b("div",N,[i("form",P,[o(m,{title:"RFID"},{default:a(()=>[o(p,{title:"RFID aktivieren","model-value":t.$store.state.mqtt["openWB/optional/rfid/active"],"onUpdate:modelValue":n[0]||(n[0]=e=>t.updateState("openWB/optional/rfid/active",e)),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},{help:a(()=>[l(" Dies bedingt das Vorhandensein eines RFID-Readers in deiner openWB. Bitte prüfe zuerst die Hardwareausstattung deiner openWB (z.B. Lieferschein). ")]),_:1},8,["model-value"]),t.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(f(),b("div",F,[o(v,{subtype:"info"},{default:a(()=>[l(" Die RFID-Tags, die an dem jeweiligen Ladepunkt gültig sind, müssen in dem Ladepunkt-Profil hinterlegt werden. Der RFID-Tag muss in den Einstellungen des Fahrzeugs diesem zugeordnet werden."),R,l(" Es kann zuerst angesteckt und dann der RFID-Tag gescannt werden oder zuerst der RFID-Tag gescannt werden. Dann muss innerhalb von 5 Minuten ein Auto angesteckt werden, sonst wird der RFID-Tag verworfen. Das Auto wird erst nach dem Anstecken zugeordnet."),M,i("span",{innerHTML:t.$store.state.text.rfidWiki},null,8,U)]),_:1})])):r("v-if",!0)]),_:1}),r(` <openwb-base-card title="LED-Ausgänge">
+import{_ as w,C as B}from"./index-f08a7306.js";import{_ as W}from"./dynamic-import-helper-be004503.js";import{_ as D,p as s,k as f,l as b,A as o,L as a,u as l,x,q as i,a0 as T,y as _,a1 as $,z as r}from"./vendor-20bb207d.js";import"./vendor-fortawesome-838df0c9.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";const S={name:"DisplayThemeFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},displayThemeType:{type:String}},methods:{updateConfiguration(t,n=void 0){this.$emit("update:configuration",{value:t,object:n})}}},q={class:"display-theme-fallback"};function V(t,n,u,c,g,d){const p=s("openwb-base-alert"),v=s("openwb-base-textarea");return f(),b("div",q,[o(p,{subtype:"warning"},{default:a(()=>[l(' Es wurde keine Konfigurationsseite für das Display Theme "'+x(u.displayThemeType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),o(v,{title:"Konfiguration",subtype:"json","model-value":u.configuration,"onUpdate:modelValue":n[0]||(n[0]=m=>d.updateConfiguration(m,"configuration"))},{help:a(()=>[l(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),o(p,{subtype:"info"},{default:a(()=>[i("pre",null,x(JSON.stringify(u.configuration,void 0,2)),1)]),_:1})])}const A=D(S,[["render",V],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeFallback.vue"]]),z={name:"OpenwbDisplayThemeProxy",emits:["update:configuration"],props:{displayThemeType:{type:String,required:!0},configuration:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading display theme: ${this.displayThemeType}`),T({loader:()=>W(Object.assign({"./cards/displayTheme.vue":()=>w(()=>import("./displayTheme-35595a93.js"),["assets/displayTheme-35595a93.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"])}),`./${this.displayThemeType}/displayTheme.vue`),errorComponent:A})}},methods:{updateConfiguration(t){this.$emit("update:configuration",t)}}};function C(t,n,u,c,g,d){return f(),_($(d.myComponent),{configuration:u.configuration,displayThemeType:u.displayThemeType,"onUpdate:configuration":n[0]||(n[0]=p=>d.updateConfiguration(p))},null,40,["configuration","displayThemeType"])}const O=D(z,[["render",C],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/display_themes/OpenwbDisplayThemeProxy.vue"]]),I={name:"OpenwbOptionalComponents",mixins:[B],components:{OpenwbDisplayThemeProxy:O},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/extern_display_mode","openWB/optional/rfid/active","openWB/optional/led/active","ToDo/optional/led/instant_blocked","ToDo/optional/led/pv_blocked","ToDo/optional/led/scheduled_blocked","ToDo/optional/led/standby_blocked","ToDo/optional/led/stop_blocked","ToDo/optional/led/instant","ToDo/optional/led/pv","ToDo/optional/led/scheduled","ToDo/optional/led/standby","ToDo/optional/led/stop","openWB/optional/int_display/active","openWB/optional/int_display/standby","openWB/optional/int_display/rotation","openWB/optional/int_display/on_if_plugged_in","openWB/optional/int_display/pin_active","openWB/optional/int_display/pin_code","openWB/optional/int_display/theme","openWB/optional/int_display/only_local_charge_points","openWB/system/configurable/display_themes","openWB/optional/et/active","openWB/optional/et/config/provider","openWB/optional/et/config/max_price"]}},computed:{displayThemeList:{get(){return this.$store.state.mqtt["openWB/system/configurable/display_themes"]}}},methods:{getDisplayThemeDefaultConfiguration(t){const n=this.displayThemeList.find(u=>u.value==t);return Object.prototype.hasOwnProperty.call(n,"defaults")?{...n.defaults.configuration}:(console.warn("no default configuration found for display theme type!",t),{})},updateSelectedDisplayTheme(t){this.updateState("openWB/optional/int_display/theme",t,"type"),this.updateState("openWB/optional/int_display/theme",this.getDisplayThemeDefaultConfiguration(t),"configuration")},updateConfiguration(t,n){console.debug("updateConfiguration",t,n),this.updateState(t,n.value,n.object)}}},N={class:"optionalComponents"},P={name:"optionalComponentsForm"},F={key:0},R=i("br",null,null,-1),M=i("br",null,null,-1),U=["innerHTML"],j={key:0},H=i("br",null,null,-1),J=i("hr",null,null,-1),Z={key:1},K=i("hr",null,null,-1),G=i("br",null,null,-1),Q=i("hr",null,null,-1),X={key:2},Y=i("hr",null,null,-1),tt=i("hr",null,null,-1),nt={key:0};function et(t,n,u,c,g,d){const p=s("openwb-base-button-group-input"),v=s("openwb-base-alert"),m=s("openwb-base-card"),y=s("openwb-base-heading"),h=s("openwb-base-range-input"),k=s("openwb-base-select-input"),L=s("openwb-display-theme-proxy"),E=s("openwb-base-submit-buttons");return f(),b("div",N,[i("form",P,[o(m,{title:"RFID"},{default:a(()=>[o(p,{title:"RFID aktivieren","model-value":t.$store.state.mqtt["openWB/optional/rfid/active"],"onUpdate:modelValue":n[0]||(n[0]=e=>t.updateState("openWB/optional/rfid/active",e)),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},{help:a(()=>[l(" Dies bedingt das Vorhandensein eines RFID-Readers in deiner openWB. Bitte prüfe zuerst die Hardwareausstattung deiner openWB (z.B. Lieferschein). ")]),_:1},8,["model-value"]),t.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(f(),b("div",F,[o(v,{subtype:"info"},{default:a(()=>[l(" Die RFID-Tags, die an dem jeweiligen Ladepunkt gültig sind, müssen in dem Ladepunkt-Profil hinterlegt werden. Der RFID-Tag muss in den Einstellungen des Fahrzeugs diesem zugeordnet werden."),R,l(" Es kann zuerst angesteckt und dann der RFID-Tag gescannt werden oder zuerst der RFID-Tag gescannt werden. Dann muss innerhalb von 5 Minuten ein Auto angesteckt werden, sonst wird der RFID-Tag verworfen. Das Auto wird erst nach dem Anstecken zugeordnet."),M,i("span",{innerHTML:t.$store.state.text.rfidWiki},null,8,U)]),_:1})])):r("v-if",!0)]),_:1}),r(` <openwb-base-card title="LED-Ausgänge">
 				<openwb-base-button-group-input
 					title="LED-Ausgänge aktivieren"
 					:model-value="
diff --git a/web/settings/assets/PVChargeConfig-3851cc53.js b/web/settings/assets/PVChargeConfig-3851cc53.js
deleted file mode 100644
index 51329dabe3..0000000000
--- a/web/settings/assets/PVChargeConfig-3851cc53.js
+++ /dev/null
@@ -1 +0,0 @@
-import{C as w}from"./index-cbcca7a0.js";import{_ as W,p as g,k as o,l as d,q as r,A as i,L as l,u as a,y as _,z as v}from"./vendor-94ac8c48.js";import"./vendor-fortawesome-ad83e535.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";const B={name:"OpenwbPVChargeConfig",mixins:[w],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/pv_charging/control_range","openWB/general/chargemode_config/pv_charging/feed_in_yield","openWB/general/chargemode_config/pv_charging/switch_on_threshold","openWB/general/chargemode_config/pv_charging/switch_on_delay","openWB/general/chargemode_config/pv_charging/switch_off_threshold","openWB/general/chargemode_config/pv_charging/switch_off_delay","openWB/general/chargemode_config/pv_charging/phases_to_use","openWB/general/chargemode_config/pv_charging/phase_switch_delay","openWB/general/chargemode_config/pv_charging/bat_prio","openWB/general/chargemode_config/pv_charging/switch_on_soc","openWB/general/chargemode_config/pv_charging/switch_off_soc","openWB/general/chargemode_config/pv_charging/charging_power_reserve","openWB/general/chargemode_config/pv_charging/rundown_power","openWB/general/chargemode_config/pv_charging/rundown_soc"]}},methods:{calculateControlMode(){const e="openWB/general/chargemode_config/pv_charging/control_range";let n=this.$store.state.mqtt[e];if(typeof n<"u")return n[0]===-230&&n[1]===0?"export":n[0]===0&&n[1]===230?"import":"individual"},setControlMode(e){const n="openWB/general/chargemode_config/pv_charging/control_range";switch(console.debug("set controlMode",e),e){case"export":this.updateState(n,[-230,0]);break;case"import":this.updateState(n,[0,230]);break;case"individual":this.updateState(n,[-230,230]);break}},updateBatterySwitchOnSoc(e){this.updateState("openWB/general/chargemode_config/pv_charging/switch_on_soc",e),e<=this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_soc"]&&this.updateState("openWB/general/chargemode_config/pv_charging/switch_off_soc",Math.max(0,e-5))},updateBatterySwitchOffSoc(e){this.updateState("openWB/general/chargemode_config/pv_charging/switch_off_soc",e),e>=this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_soc"]&&this.updateState("openWB/general/chargemode_config/pv_charging/switch_on_soc",e+5)}}},S={class:"pvChargeConfig"},V={name:"pvChargeConfigForm"},z={key:0},k={key:1},E=r("hr",null,null,-1),C=r("br",null,null,-1),L=r("hr",null,null,-1),y=r("br",null,null,-1),M=r("hr",null,null,-1),U=r("br",null,null,-1),P=r("br",null,null,-1),$=r("br",null,null,-1),q={key:0},R={key:1},A={key:0},I={key:1},F=r("br",null,null,-1),N=r("br",null,null,-1),D=r("br",null,null,-1),O=r("br",null,null,-1),Z=r("br",null,null,-1),T=r("br",null,null,-1),H=r("hr",null,null,-1);function G(e,n,K,j,J,u){const p=g("openwb-base-alert"),c=g("openwb-base-button-group-input"),s=g("openwb-base-number-input"),m=g("openwb-base-card"),h=g("openwb-base-range-input"),b=g("openwb-base-heading"),f=g("openwb-base-submit-buttons");return o(),d("div",S,[r("form",V,[i(m,{title:"Regelparameter"},{default:l(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(o(),d("div",z,[i(p,{subtype:"info"},{default:l(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(o(),d("div",k,[i(c,{title:"Regelmodus",buttons:[{buttonValue:"export",text:"Einspeisung"},{buttonValue:"import",text:"Bezug"},{buttonValue:"individual",text:"Individuell"}],"model-value":u.calculateControlMode(),"onUpdate:modelValue":n[0]||(n[0]=t=>u.setControlMode(t))},{help:l(()=>[a(' Mit dieser Einstellung wird der angestrebte Regelbereich festgelegt. "Einspeisung" und "Bezug" definieren einen Bereich mit minimaler Einspeisung (-230W, 0W) bzw. minimalem Netzbezug (0W, 230W). Mit der Auswahl "individuell" kann ein eigener Regelbereich definiert werden. ')]),_:1},8,["model-value"]),u.calculateControlMode()==="individual"?(o(),_(s,{key:0,title:"Minimum",step:.01,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][0]/1e3,"onUpdate:modelValue":n[1]||(n[1]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/control_range",t*1e3,"0"))},{help:l(()=>[a(" Untere Grenze des Regelbereichs. ")]),_:1},8,["model-value"])):v("v-if",!0),u.calculateControlMode()==="individual"?(o(),_(s,{key:1,title:"Maximum",step:.01,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][1]/1e3,"onUpdate:modelValue":n[2]||(n[2]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/control_range",t*1e3,"1"))},{help:l(()=>[a("Obere Grenze des Regelbereichs.")]),_:1},8,["model-value"])):v("v-if",!0),E,i(s,{title:"Einschaltschwelle",min:0,step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_threshold"]/1e3,"onUpdate:modelValue":n[3]||(n[3]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_on_threshold",t*1e3))},{help:l(()=>[a(" Wird der Regelbereich in Richtung Einspeisung um diese Leistung überschritten, so wird der Ladevorgang gestartet. ")]),_:1},8,["model-value"]),i(s,{title:"Einschaltverzögerung",min:0,step:1,unit:"s","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_delay"],"onUpdate:modelValue":n[4]||(n[4]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_on_delay",t))},{help:l(()=>[a(" Die Einschaltschwelle muss für die hier angegebene Zeit dauerhaft überschritten werden, bevor ein Ladevorgang gestartet wird."),C,a(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird weiter geladen, wenn die Abschaltschwelle nicht unterschritten wird. ")]),_:1},8,["model-value"]),L,i(s,{title:"Abschaltschwelle",min:0,step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_threshold"]/1e3,"onUpdate:modelValue":n[5]||(n[5]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_off_threshold",t*1e3))},{help:l(()=>[a(" Wird der Regelbereich in Richtung Netzbezug um diese Leistung überschritten, so wird der Ladevorgang beendet. ")]),_:1},8,["model-value"]),i(s,{title:"Abschaltverzögerung",min:0,step:1,unit:"s","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_delay"],"onUpdate:modelValue":n[6]||(n[6]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_off_delay",t))},{help:l(()=>[a(" Die Abschaltschwelle muss für die hier angegebene Zeit dauerhaft unterschritten werden, bevor ein Ladevorgang beendet wird."),y,a(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird die Ladung sofort beendet, wenn die Abschaltschwelle unterschritten wird. ")]),_:1},8,["model-value"]),M,i(s,{title:"Regelpunkt Einspeisegrenze",min:0,step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/feed_in_yield"]/1e3,"onUpdate:modelValue":n[7]||(n[7]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/feed_in_yield",t*1e3))},{help:l(()=>[a(" Die Nutzung dieser Option ergibt nur Sinn, wenn ein Wechselrichter mit separatem Smart-Meter am EVU-Punkt verbaut ist (nicht der originale Zähler des Versorgers!), welches eine dynamische Begrenzung der Einspeiseleistung am EVU-Punkt durch den PV-Wechselrichter bietet (bitte bei ev. Problemen immer vorab prüfen lassen)."),U,a(' Ist eine Einspeiseleistungsreduzierung verbaut (in vielen älteren, privaten Einspeiseverträgen z.B. als 70% Regelung bekannt), wird mit Eingabe des Wertes "Regelpunkt Einspeisegrenze" ein eigenverbrauchsoptimiertes Fahrzeugladen mit PV-Überschussenergie möglich, die sonst abgeregelt werden würde (Nutzung der PV-Peaks).'),P,a(' Wird in einem "Ladeprofil" die Option "Einspeisegrenze beachten" eingeschaltet, so wird der Regelpunkt auf diesen Wert verschoben und die Ladung startet erst, wenn der hinterlegte Wert "Regelpunkt Einspeisegrenze" überschritten wird.'),$,a(" Zur optimalen Eigenverbrauchssteuerung sollte der Wert einige hundert Watt UNTER der im Wechselrichter hinterlegten EVU-Einspeiseleistungsgrenze liegen, damit openWB die Ladung freigibt, BEVOR der Wechselrichter begrenzt wird. ")]),_:1},8,["model-value"])]))]),_:1}),i(m,{title:"Phasenumschaltung"},{default:l(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(o(),d("div",q,[i(p,{subtype:"info"},{default:l(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(o(),d("div",R,[i(c,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phases_to_use"],"onUpdate:modelValue":n[8]||(n[8]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/phases_to_use",t))},{help:l(()=>[a(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "PV-Laden" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um den verfügbaren Überschuss in die Fahrzeuge zu laden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phases_to_use"]==0?(o(),_(h,{key:0,title:"Verzögerung automat. Phasenumschaltung",min:1,max:15,step:1,unit:"Min.","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phase_switch_delay"],"onUpdate:modelValue":n[9]||(n[9]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/phase_switch_delay",t))},{help:l(()=>[a(" Um zu viele Umschaltungen zu vermeiden, wird Anhand dieses Wertes definiert, wann die Umschaltung erfolgen soll. Ist für durchgehend x Minuten die Maximalstromstärke erreicht, wird auf mehrphasige Ladung umgestellt. Ist die Ladung nur für ein Intervall unterhalb der Maximalstromstärke, beginnt das Intervall für die Umschaltung erneut. Ist die Ladung im mehrphasigen Modus für 16 - x Minuten auf der Minimalstromstärke, wird wieder auf einphasige Ladung gewechselt. ")]),_:1},8,["model-value"])):v("v-if",!0)]))]),_:1}),i(m,{title:"Speicher-Beachtung"},{default:l(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(o(),d("div",A,[i(p,{subtype:"info"},{default:l(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(o(),d("div",I,[i(c,{title:"Priorisierung",buttons:[{buttonValue:!1,text:"Fahrzeuge"},{buttonValue:!0,text:"Speicher"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_prio"],"onUpdate:modelValue":n[10]||(n[10]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/bat_prio",t))},{help:l(()=>[a(' Sofern ein Hausstromspeicher (im Folgenden "Speicher" genannt) im Energiesystem verbaut ist, kann dieser beim Fahrzeugladen mit berücksichtigt werden. Dies erfolgt passiv über die Berücksichtigung der Speicherleistungswerte und des Speicher-SoC. Eine aktive Speichersteuerung durch openWB ist aktuell mangels Speicherschnittstelle nicht möglich.'),F,N,a(' Bei Priorisierung "Fahrzeuge" wird die gesamte PV-Leistung ABZÜGLICH der "reservierten Ladeleistung" des Speichers zum Fahrzeugladen verwendet.'),D,O,a(' Bei Priorisierung "Speicher" wird die gesamte PV-Leistung und ZUSÄTZLICH die "erlaubte Entladeleistung" des Speichers (bis zum Erreichen des "minimalen Entlade-SoC" des Speichers) zum Fahrzeugladen verwendet.'),Z,T,a(" Beide Modi lassen sich mit den zusätzlichen Einstellungen an die eigenen Bedürfnisse anpassen, so dass auch ein Mischbetrieb möglich ist. ")]),_:1},8,["model-value"]),i(s,{title:"Reservierte Ladeleistung",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/charging_power_reserve"]/1e3,"onUpdate:modelValue":n[11]||(n[11]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/charging_power_reserve",t*1e3))},{help:l(()=>[a(' Die "reservierte Ladeleistung" des Speichers wird von der Regelung auch bei "Fahrzeuge"-Vorrang NICHT für das Fahrzeugladen verwendet und bleibt immer dem Speicher vorbehalten. ')]),_:1},8,["model-value"]),i(s,{title:"Erlaubte Entladeleistung",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/rundown_power"]/1e3,"onUpdate:modelValue":n[12]||(n[12]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/rundown_power",t*1e3))},{help:l(()=>[a(' Die "erlaubte Entladeleistung" des Speichers wird von der Regelung bei "Speicher"-Vorrang ZUSÄTZLICH zur PV-Leistung für das Fahrzeugladen verwendet, solange der Speicher-SoC über dem "minimalen Entlade-SoC" liegt. ')]),_:1},8,["model-value"]),i(h,{title:"Minimaler Entlade-SoC",min:0,max:20,step:1,unit:"%",labels:[{label:0,value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95},{label:"Aus",value:100}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/rundown_soc"],"onUpdate:modelValue":n[13]||(n[13]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/rundown_soc",t))},{help:l(()=>[a(" Ein vorhandener Speicher wird im Modus PV-Laden mit der erlaubten Entladeleistung höchstens bis zu dem hier eingestellten Ladestand entladen. ")]),_:1},8,["model-value"]),H,i(b,null,{default:l(()=>[a(" Laden mit Mindeststrom ")]),_:1}),i(h,{title:"Einschalt-SoC",min:0,max:18,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_soc"],"onUpdate:modelValue":n[14]||(n[14]=t=>u.updateBatterySwitchOnSoc(t))},{help:l(()=>[a('Ist der Speicher-SoC größer oder gleich dem "Einschalt-SoC", wird der Speicher im Modus "PV-Laden" bei aktiviertem Mindeststrom bis zum "Ausschalt-SoC" entladen, auch wenn KEIN Überschuss vorhanden ist. Der "Einschalt-SoC" muss größer oder gleich dem "Ausschalt-SoC" sein.')]),_:1},8,["model-value"]),i(h,{title:"Ausschalt-SoC",min:0,max:18,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_soc"],"onUpdate:modelValue":n[15]||(n[15]=t=>u.updateBatterySwitchOffSoc(t))},{help:l(()=>[a('Ist der Speicher-SoC größer oder gleich dem "Einschalt-SoC", wird der Speicher im Modus "PV-Laden" bei aktiviertem Mindeststrom bis zum "Ausschalt-SoC" entladen, auch wenn KEIN Überschuss vorhanden ist. Der "Einschalt-SoC" muss größer oder gleich dem "Ausschalt-SoC" sein.')]),_:1},8,["model-value"])]))]),_:1}),i(f,{formName:"pvChargeConfigForm",onSave:n[16]||(n[16]=t=>e.$emit("save")),onReset:n[17]||(n[17]=t=>e.$emit("reset")),onDefaults:n[18]||(n[18]=t=>e.$emit("defaults"))})])])}const ae=W(B,[["render",G],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/PVChargeConfig.vue"]]);export{ae as default};
diff --git a/web/settings/assets/PVChargeConfig-7b09b63a.js b/web/settings/assets/PVChargeConfig-7b09b63a.js
new file mode 100644
index 0000000000..7de33bd966
--- /dev/null
+++ b/web/settings/assets/PVChargeConfig-7b09b63a.js
@@ -0,0 +1 @@
+import{C as f}from"./index-f08a7306.js";import{_ as w,p as g,k as d,l as u,q as r,A as l,L as i,u as a,y as W,z as B}from"./vendor-20bb207d.js";import"./vendor-fortawesome-838df0c9.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";const S={name:"OpenwbPVChargeConfig",mixins:[f],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/pv_charging/control_range","openWB/general/chargemode_config/pv_charging/feed_in_yield","openWB/general/chargemode_config/pv_charging/switch_on_threshold","openWB/general/chargemode_config/pv_charging/switch_on_delay","openWB/general/chargemode_config/pv_charging/switch_off_threshold","openWB/general/chargemode_config/pv_charging/switch_off_delay","openWB/general/chargemode_config/pv_charging/phases_to_use","openWB/general/chargemode_config/pv_charging/phase_switch_delay","openWB/general/chargemode_config/pv_charging/bat_prio","openWB/general/chargemode_config/pv_charging/switch_on_soc","openWB/general/chargemode_config/pv_charging/switch_off_soc","openWB/general/chargemode_config/pv_charging/charging_power_reserve","openWB/general/chargemode_config/pv_charging/rundown_power","openWB/general/chargemode_config/pv_charging/rundown_soc"],calculatedControlMode:void 0}},computed:{controlMode:{get(){if(this.calculatedControlMode!==void 0)return this.calculatedControlMode;const e="openWB/general/chargemode_config/pv_charging/control_range";let n=this.$store.state.mqtt[e];var h="individual";return typeof n<"u"&&(n[0]===-230&&n[1]===0?h="export":n[0]===0&&n[1]===230?h="import":h="individual"),h},set(e){const n="openWB/general/chargemode_config/pv_charging/control_range";switch(this.calculatedControlMode=e,e){case"export":this.updateState(n,[-230,0]);break;case"import":this.updateState(n,[0,230]);break}}}},methods:{updateBatterySwitchOnSoc(e){this.updateState("openWB/general/chargemode_config/pv_charging/switch_on_soc",e),e<=this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_soc"]&&this.updateState("openWB/general/chargemode_config/pv_charging/switch_off_soc",Math.max(0,e-5))},updateBatterySwitchOffSoc(e){this.updateState("openWB/general/chargemode_config/pv_charging/switch_off_soc",e),e>=this.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_soc"]&&this.updateState("openWB/general/chargemode_config/pv_charging/switch_on_soc",e+5)}},watch:{controlMode(e){this.calculatedControlMode=e}}},V={class:"pvChargeConfig"},z={name:"pvChargeConfigForm"},E={key:0},k={key:1},C=r("hr",null,null,-1),y=r("br",null,null,-1),M=r("hr",null,null,-1),L=r("br",null,null,-1),U=r("hr",null,null,-1),q=r("br",null,null,-1),P=r("br",null,null,-1),$=r("br",null,null,-1),A={key:0},R={key:1},I={key:0},F={key:1},N=r("br",null,null,-1),D=r("br",null,null,-1),O=r("br",null,null,-1),Z=r("br",null,null,-1),T=r("br",null,null,-1),H=r("br",null,null,-1),G=r("hr",null,null,-1);function K(e,n,h,j,J,s){const p=g("openwb-base-alert"),m=g("openwb-base-button-group-input"),o=g("openwb-base-number-input"),_=g("openwb-base-card"),c=g("openwb-base-range-input"),v=g("openwb-base-heading"),b=g("openwb-base-submit-buttons");return d(),u("div",V,[r("form",z,[l(_,{title:"Regelparameter"},{default:i(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(d(),u("div",E,[l(p,{subtype:"info"},{default:i(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),u("div",k,[l(m,{title:"Regelmodus",buttons:[{buttonValue:"export",text:"Einspeisung"},{buttonValue:"import",text:"Bezug"},{buttonValue:"individual",text:"Individuell"}],modelValue:s.controlMode,"onUpdate:modelValue":n[0]||(n[0]=t=>s.controlMode=t)},{help:i(()=>[a(' Mit dieser Einstellung wird der angestrebte Regelbereich festgelegt. "Einspeisung" und "Bezug" definieren einen Bereich mit minimaler Einspeisung (-230W, 0W) bzw. minimalem Netzbezug (0W, 230W). Mit der Auswahl "individuell" kann ein eigener Regelbereich definiert werden. ')]),_:1},8,["modelValue"]),l(o,{disabled:s.controlMode!=="individual",readonly:s.controlMode!=="individual",title:"Minimum",step:.01,unit:"kW","model-value":Array.isArray(e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"])?e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][0]/1e3:void 0,"onUpdate:modelValue":n[1]||(n[1]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/control_range",t*1e3,"0"))},{help:i(()=>[a(" Untere Grenze des Regelbereichs. ")]),_:1},8,["disabled","readonly","model-value"]),l(o,{disabled:s.controlMode!=="individual",readonly:s.controlMode!=="individual",title:"Maximum",step:.01,unit:"kW","model-value":Array.isArray(e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"])?e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/control_range"][1]/1e3:void 0,"onUpdate:modelValue":n[2]||(n[2]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/control_range",t*1e3,"1"))},{help:i(()=>[a("Obere Grenze des Regelbereichs.")]),_:1},8,["disabled","readonly","model-value"]),C,l(o,{title:"Einschaltschwelle",min:0,step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_threshold"]/1e3,"onUpdate:modelValue":n[3]||(n[3]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_on_threshold",t*1e3))},{help:i(()=>[a(" Wird der Regelbereich in Richtung Einspeisung um diese Leistung überschritten, so wird der Ladevorgang gestartet. ")]),_:1},8,["model-value"]),l(o,{title:"Einschaltverzögerung",min:0,step:1,unit:"s","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_delay"],"onUpdate:modelValue":n[4]||(n[4]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_on_delay",t))},{help:i(()=>[a(" Die Einschaltschwelle muss für die hier angegebene Zeit dauerhaft überschritten werden, bevor ein Ladevorgang gestartet wird."),y,a(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird weiter geladen, wenn die Abschaltschwelle nicht unterschritten wird. ")]),_:1},8,["model-value"]),M,l(o,{title:"Abschaltschwelle",min:0,step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_threshold"]/1e3,"onUpdate:modelValue":n[5]||(n[5]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_off_threshold",t*1e3))},{help:i(()=>[a(" Wird der Regelbereich in Richtung Netzbezug um diese Leistung überschritten, so wird der Ladevorgang beendet. ")]),_:1},8,["model-value"]),l(o,{title:"Abschaltverzögerung",min:0,step:1,unit:"s","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_delay"],"onUpdate:modelValue":n[6]||(n[6]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/switch_off_delay",t))},{help:i(()=>[a(" Die Abschaltschwelle muss für die hier angegebene Zeit dauerhaft unterschritten werden, bevor ein Ladevorgang beendet wird."),L,a(" Wenn ein Ladevorgang aktiv ist und auf PV-Laden umgeschaltet wird, wird die Ladung sofort beendet, wenn die Abschaltschwelle unterschritten wird. ")]),_:1},8,["model-value"]),U,l(o,{title:"Regelpunkt Einspeisegrenze",min:0,step:.05,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/feed_in_yield"]/1e3,"onUpdate:modelValue":n[7]||(n[7]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/feed_in_yield",t*1e3))},{help:i(()=>[a(" Die Nutzung dieser Option ergibt nur Sinn, wenn ein Wechselrichter mit separatem Smart-Meter am EVU-Punkt verbaut ist (nicht der originale Zähler des Versorgers!), welches eine dynamische Begrenzung der Einspeiseleistung am EVU-Punkt durch den PV-Wechselrichter bietet (bitte bei ev. Problemen immer vorab prüfen lassen)."),q,a(' Ist eine Einspeiseleistungsreduzierung verbaut (in vielen älteren, privaten Einspeiseverträgen z.B. als 70% Regelung bekannt), wird mit Eingabe des Wertes "Regelpunkt Einspeisegrenze" ein eigenverbrauchsoptimiertes Fahrzeugladen mit PV-Überschussenergie möglich, die sonst abgeregelt werden würde (Nutzung der PV-Peaks).'),P,a(' Wird in einem "Ladeprofil" die Option "Einspeisegrenze beachten" eingeschaltet, so wird der Regelpunkt auf diesen Wert verschoben und die Ladung startet erst, wenn der hinterlegte Wert "Regelpunkt Einspeisegrenze" überschritten wird.'),$,a(" Zur optimalen Eigenverbrauchssteuerung sollte der Wert einige hundert Watt UNTER der im Wechselrichter hinterlegten EVU-Einspeiseleistungsgrenze liegen, damit openWB die Ladung freigibt, BEVOR der Wechselrichter begrenzt wird. ")]),_:1},8,["model-value"])]))]),_:1}),l(_,{title:"Phasenumschaltung"},{default:i(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(d(),u("div",A,[l(p,{subtype:"info"},{default:i(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),u("div",R,[l(m,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phases_to_use"],"onUpdate:modelValue":n[8]||(n[8]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/phases_to_use",t))},{help:i(()=>[a(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "PV-Laden" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um den verfügbaren Überschuss in die Fahrzeuge zu laden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"]),e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phases_to_use"]==0?(d(),W(c,{key:0,title:"Verzögerung automat. Phasenumschaltung",min:1,max:15,step:1,unit:"Min.","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/phase_switch_delay"],"onUpdate:modelValue":n[9]||(n[9]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/phase_switch_delay",t))},{help:i(()=>[a(" Um zu viele Umschaltungen zu vermeiden, wird Anhand dieses Wertes definiert, wann die Umschaltung erfolgen soll. Ist für durchgehend x Minuten die Maximalstromstärke erreicht, wird auf mehrphasige Ladung umgestellt. Ist die Ladung nur für ein Intervall unterhalb der Maximalstromstärke, beginnt das Intervall für die Umschaltung erneut. Ist die Ladung im mehrphasigen Modus für 16 - x Minuten auf der Minimalstromstärke, wird wieder auf einphasige Ladung gewechselt. ")]),_:1},8,["model-value"])):B("v-if",!0)]))]),_:1}),l(_,{title:"Speicher-Beachtung"},{default:i(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(d(),u("div",I,[l(p,{subtype:"info"},{default:i(()=>[a(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(d(),u("div",F,[l(m,{title:"Priorisierung",buttons:[{buttonValue:!1,text:"Fahrzeuge"},{buttonValue:!0,text:"Speicher"}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/bat_prio"],"onUpdate:modelValue":n[10]||(n[10]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/bat_prio",t))},{help:i(()=>[a(' Sofern ein Hausstromspeicher (im Folgenden "Speicher" genannt) im Energiesystem verbaut ist, kann dieser beim Fahrzeugladen mit berücksichtigt werden. Dies erfolgt passiv über die Berücksichtigung der Speicherleistungswerte und des Speicher-SoC. Eine aktive Speichersteuerung durch openWB ist aktuell mangels Speicherschnittstelle nicht möglich.'),N,D,a(' Bei Priorisierung "Fahrzeuge" wird die gesamte PV-Leistung ABZÜGLICH der "reservierten Ladeleistung" des Speichers zum Fahrzeugladen verwendet.'),O,Z,a(' Bei Priorisierung "Speicher" wird die gesamte PV-Leistung und ZUSÄTZLICH die "erlaubte Entladeleistung" des Speichers (bis zum Erreichen des "minimalen Entlade-SoC" des Speichers) zum Fahrzeugladen verwendet.'),T,H,a(" Beide Modi lassen sich mit den zusätzlichen Einstellungen an die eigenen Bedürfnisse anpassen, so dass auch ein Mischbetrieb möglich ist. ")]),_:1},8,["model-value"]),l(o,{title:"Reservierte Ladeleistung",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/charging_power_reserve"]/1e3,"onUpdate:modelValue":n[11]||(n[11]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/charging_power_reserve",t*1e3))},{help:i(()=>[a(' Die "reservierte Ladeleistung" des Speichers wird von der Regelung auch bei "Fahrzeuge"-Vorrang NICHT für das Fahrzeugladen verwendet und bleibt immer dem Speicher vorbehalten. ')]),_:1},8,["model-value"]),l(o,{title:"Erlaubte Entladeleistung",min:0,step:.1,unit:"kW","model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/rundown_power"]/1e3,"onUpdate:modelValue":n[12]||(n[12]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/rundown_power",t*1e3))},{help:i(()=>[a(' Die "erlaubte Entladeleistung" des Speichers wird von der Regelung bei "Speicher"-Vorrang ZUSÄTZLICH zur PV-Leistung für das Fahrzeugladen verwendet, solange der Speicher-SoC über dem "minimalen Entlade-SoC" liegt. ')]),_:1},8,["model-value"]),l(c,{title:"Minimaler Entlade-SoC",min:0,max:20,step:1,unit:"%",labels:[{label:0,value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95},{label:"Aus",value:100}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/rundown_soc"],"onUpdate:modelValue":n[13]||(n[13]=t=>e.updateState("openWB/general/chargemode_config/pv_charging/rundown_soc",t))},{help:i(()=>[a(" Ein vorhandener Speicher wird im Modus PV-Laden mit der erlaubten Entladeleistung höchstens bis zu dem hier eingestellten Ladestand entladen. ")]),_:1},8,["model-value"]),G,l(v,null,{default:i(()=>[a(" Laden mit Mindeststrom ")]),_:1}),l(c,{title:"Einschalt-SoC",min:0,max:18,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_on_soc"],"onUpdate:modelValue":n[14]||(n[14]=t=>s.updateBatterySwitchOnSoc(t))},{help:i(()=>[a('Ist der Speicher-SoC größer oder gleich dem "Einschalt-SoC", wird der Speicher im Modus "PV-Laden" bei aktiviertem Mindeststrom bis zum "Ausschalt-SoC" entladen, auch wenn KEIN Überschuss vorhanden ist. Der "Einschalt-SoC" muss größer oder gleich dem "Ausschalt-SoC" sein.')]),_:1},8,["model-value"]),l(c,{title:"Ausschalt-SoC",min:0,max:18,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90}],"model-value":e.$store.state.mqtt["openWB/general/chargemode_config/pv_charging/switch_off_soc"],"onUpdate:modelValue":n[15]||(n[15]=t=>s.updateBatterySwitchOffSoc(t))},{help:i(()=>[a('Ist der Speicher-SoC größer oder gleich dem "Einschalt-SoC", wird der Speicher im Modus "PV-Laden" bei aktiviertem Mindeststrom bis zum "Ausschalt-SoC" entladen, auch wenn KEIN Überschuss vorhanden ist. Der "Einschalt-SoC" muss größer oder gleich dem "Ausschalt-SoC" sein.')]),_:1},8,["model-value"])]))]),_:1}),l(b,{formName:"pvChargeConfigForm",onSave:n[16]||(n[16]=t=>e.$emit("save")),onReset:n[17]||(n[17]=t=>e.$emit("reset")),onDefaults:n[18]||(n[18]=t=>e.$emit("defaults"))})])])}const ae=w(S,[["render",K],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/PVChargeConfig.vue"]]);export{ae as default};
diff --git a/web/settings/assets/ScheduledChargeConfig-ff0252cd.js b/web/settings/assets/ScheduledChargeConfig-5a41484d.js
similarity index 85%
rename from web/settings/assets/ScheduledChargeConfig-ff0252cd.js
rename to web/settings/assets/ScheduledChargeConfig-5a41484d.js
index aab64f86d1..8e98155baa 100644
--- a/web/settings/assets/ScheduledChargeConfig-ff0252cd.js
+++ b/web/settings/assets/ScheduledChargeConfig-5a41484d.js
@@ -1 +1 @@
-import{C as g}from"./index-cbcca7a0.js";import{_ as h,p as o,k as a,l as i,q as c,A as s,L as r,u}from"./vendor-94ac8c48.js";import"./vendor-fortawesome-ad83e535.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"OpenwbScheduledChargeConfig",mixins:[g],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/scheduled_charging/phases_to_use"]}}},b={class:"scheduledChargeConfig"},f={name:"scheduledChargeConfigForm"},v={key:0},w={key:1};function C(t,e,$,k,B,V){const d=o("openwb-base-alert"),l=o("openwb-base-button-group-input"),m=o("openwb-base-card"),p=o("openwb-base-submit-buttons");return a(),i("div",b,[c("form",f,[s(m,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(d,{subtype:"info"},{default:r(()=>[u(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",w,[s(l,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/scheduled_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/scheduled_charging/phases_to_use",n))},{help:r(()=>[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zielladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um das Ziel zu erreichen. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(p,{formName:"scheduledChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const E=h(_,[["render",C],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ScheduledChargeConfig.vue"]]);export{E as default};
+import{C as g}from"./index-f08a7306.js";import{_ as h,p as o,k as a,l as i,q as c,A as s,L as r,u}from"./vendor-20bb207d.js";import"./vendor-fortawesome-838df0c9.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"OpenwbScheduledChargeConfig",mixins:[g],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/scheduled_charging/phases_to_use"]}}},b={class:"scheduledChargeConfig"},f={name:"scheduledChargeConfigForm"},v={key:0},w={key:1};function C(t,e,$,k,B,V){const d=o("openwb-base-alert"),l=o("openwb-base-button-group-input"),m=o("openwb-base-card"),p=o("openwb-base-submit-buttons");return a(),i("div",b,[c("form",f,[s(m,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(d,{subtype:"info"},{default:r(()=>[u(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",w,[s(l,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"},{buttonValue:0,text:"Automatik"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/scheduled_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/scheduled_charging/phases_to_use",n))},{help:r(()=>[u(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zielladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Im Modus "Automatik" entscheidet die Regelung, welche Einstellung genutzt wird, um das Ziel zu erreichen. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(p,{formName:"scheduledChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const E=h(_,[["render",C],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/ScheduledChargeConfig.vue"]]);export{E as default};
diff --git a/web/settings/assets/Status-b79c5fd8.js b/web/settings/assets/Status-954adcf7.js
similarity index 98%
rename from web/settings/assets/Status-b79c5fd8.js
rename to web/settings/assets/Status-954adcf7.js
index aee058e963..ed59831af4 100644
--- a/web/settings/assets/Status-b79c5fd8.js
+++ b/web/settings/assets/Status-954adcf7.js
@@ -1 +1 @@
-import{l as N,G as q,H as C,c as L,I as S,J as A,K as P,L as V,M as z,F as H}from"./vendor-fortawesome-ad83e535.js";import{C as Z}from"./index-cbcca7a0.js";import{_ as D,p as f,k as i,l as b,z as c,y as u,L as n,G as B,I as y,A as t,u as r,x as p,Q as M,R as E,q as v}from"./vendor-94ac8c48.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";N.add(q,C,L,S,A,P,V,z);const F={name:"OpenwbStatus",mixins:[Z],components:{FontAwesomeIcon:H},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/get/power","openWB/chargepoint/get/imported","openWB/chargepoint/get/exported","openWB/chargepoint/get/daily_imported","openWB/chargepoint/get/daily_exported","openWB/chargepoint/+/config","openWB/chargepoint/+/get/+","openWB/chargepoint/+/get/connected_vehicle/info","openWB/chargepoint/+/set/+","openWB/system/device/+/component/+/config","openWB/counter/+/get/+","openWB/pv/get/+","openWB/pv/+/get/+","openWB/bat/get/+","openWB/bat/+/get/+","openWB/vehicle/+/name","openWB/vehicle/+/get/+"],statusLevel:["success","warning","danger"]}},computed:{installedChargePoints:{get(){return this.getWildcardTopics("openWB/chargepoint/+/config")}},numChargePointsInstalled:{get(){return Object.keys(this.installedChargePoints).length}},counterConfigs:{get(){return this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"counter")}},numInvertersInstalled:{get(){return Object.keys(this.inverterConfigs).length}},inverterConfigs:{get(){return this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"inverter")}},numBatteriesInstalled:{get(){return Object.keys(this.batteryConfigs).length}},batteryConfigs:{get(){return this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"bat")}},vehicleNames:{get(){return this.getWildcardTopics("openWB/vehicle/+/name")}}},methods:{filterComponentsByType(e,I){return Object.keys(e).filter(k=>e[k].type.includes(I)).reduce((k,w)=>({...k,[w]:e[w]}),{})},getChargePointIndex(e){return parseInt(e.match(/(?:\/)(\d+)(?=\/)/)[1])},getComponentIndex(e){return parseInt(e.match(/(?:\/)(\d+)(?=\/)/)[1])},getVehicleIndex(e){return parseInt(e.match(/(?:\/)(\d+)(?=\/)/)[1])}}},W=e=>(M("data-v-051028a3"),e=e(),E(),e),O={class:"status"},j=W(()=>v("br",null,null,-1)),G=W(()=>v("br",null,null,-1)),J=W(()=>v("br",null,null,-1)),R=W(()=>v("br",null,null,-1)),Q=W(()=>v("br",null,null,-1)),U=W(()=>v("br",null,null,-1)),X=W(()=>v("br",null,null,-1));function Y(e,I,k,w,x,o){const d=f("font-awesome-icon"),a=f("openwb-base-text-input"),m=f("openwb-base-heading"),g=f("openwb-base-card"),h=f("openwb-base-alert"),T=f("openwb-base-checkbox-input"),_=f("openwb-base-number-input");return i(),b("div",O,[c(" all charge points "),o.numChargePointsInstalled>1?(i(),u(g,{key:0,subtype:"primary",collapsible:!0,collapsed:!0},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","charging-station"]}),r(" Alle Ladepunkte ")]),default:n(()=>[t(a,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/chargepoint/get/power",3,3,.001)},null,8,["model-value"]),t(a,{title:"Zählerstand laden",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/imported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Zählerstand entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/exported",3,3,.001)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Historie")]),_:1}),t(a,{title:"Heute geladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Heute entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/daily_exported",3,3,.001)},null,8,["model-value"])]),_:1})):c("v-if",!0),c(" individual charge points "),(i(!0),b(B,null,y(o.installedChargePoints,(l,s)=>(i(),u(g,{key:s,collapsible:!0,collapsed:!0,subtype:"primary"},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","charging-station"]}),r(" "+p(l.name)+" (ID: "+p(o.getChargePointIndex(s))+") ",1)]),default:n(()=>[t(h,{subtype:x.statusLevel[e.$store.state.mqtt["openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/fault_state"]]},{default:n(()=>[e.$store.state.mqtt["openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/fault_state"]==1?(i(),u(d,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/fault_state"]==2?(i(),u(d,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(i(),u(d,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),r(" Modulmeldung:"),j,r(" "+p(e.$store.state.mqtt["openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/fault_str"]),1)]),_:2},1032,["subtype"]),t(h,{subtype:"info"},{default:n(()=>[r(" Statusmeldung:"),G,r(" "+p(e.$store.state.mqtt["openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/state_str"]),1)]),_:2},1024),t(T,{title:"Fahrzeug angesteckt",disabled:"","model-value":e.$store.state.mqtt["openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/plug_state"]==1},null,8,["model-value"]),t(T,{title:"Ladevorgang aktiv",disabled:"","model-value":e.$store.state.mqtt["openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/charge_state"]==1},null,8,["model-value"]),t(a,{title:"Zählerstand laden",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/imported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Zählerstand entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/exported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Heute geladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Heute entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/power",3,3,.001)},null,8,["model-value"]),t(a,{title:"Ladestromvorgabe",readonly:"",class:"text-right text-monospace",step:"0.01",unit:"A","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/set/current",2)},null,8,["model-value"]),t(a,{title:"Netzfrequenz",readonly:"",class:"text-right text-monospace",step:"0.01",unit:"Hz","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/frequency",2)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Werte pro Phase")]),_:1}),t(a,{title:"Spannung",readonly:"",class:"text-right text-monospace",unit:"V","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/voltages",1)},null,8,["model-value"]),t(a,{title:"Strom",readonly:"",class:"text-right text-monospace",unit:"A","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/currents",2)},null,8,["model-value"]),t(a,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",unit:"kW","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/powers",3,3,.001)},null,8,["model-value"]),t(a,{title:"Leistungsfaktor",readonly:"",class:"text-right text-monospace","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/power_factors",2)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Phasen")]),_:1}),t(a,{title:"Vorgabe",readonly:"",class:"text-right text-monospace","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/set/phases_to_use")},null,8,["model-value"]),t(a,{title:"Aktuell",readonly:"",class:"text-right text-monospace","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/phases_in_use")},null,8,["model-value"])]),_:2},1024))),128)),c(" counters "),(i(!0),b(B,null,y(o.counterConfigs,l=>(i(),u(g,{key:l.id,title:l.name+" (ID: "+l.id+")",collapsible:!0,collapsed:!0,subtype:"danger"},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","gauge-high"]}),r(" "+p(l.name)+" (ID: "+p(l.id)+") ",1)]),default:n(()=>[t(h,{subtype:x.statusLevel[e.$store.state.mqtt["openWB/counter/"+l.id+"/get/fault_state"]]},{default:n(()=>[e.$store.state.mqtt["openWB/counter/"+l.id+"/get/fault_state"]==1?(i(),u(d,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/counter/"+l.id+"/get/fault_state"]==2?(i(),u(d,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(i(),u(d,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),r(" Modulmeldung:"),J,r(" "+p(e.$store.state.mqtt["openWB/counter/"+l.id+"/get/fault_str"]),1)]),_:2},1032,["subtype"]),e.$store.state.mqtt["openWB/counter/"+l.id+"/get/state_str"]!=null?(i(),u(h,{key:0,subtype:"info"},{default:n(()=>[r(" Statusmeldung:"),R,r(" "+p(e.$store.state.mqtt["openWB/counter/"+l.id+"/get/state_str"]),1)]),_:2},1024)):c("v-if",!0),t(m,null,{default:n(()=>[r("Zählerstände")]),_:1}),t(a,{title:"Export",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/counter/"+l.id+"/get/exported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Import",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/counter/"+l.id+"/get/imported",3,3,.001)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Saldierte Werte")]),_:1}),t(a,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/counter/"+l.id+"/get/power",3,3,.001)},null,8,["model-value"]),t(a,{title:"Netzfrequenz",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"Hz","model-value":e.formatNumberTopic("openWB/counter/"+l.id+"/get/frequency",3)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Werte pro Phase")]),_:1}),t(a,{title:"Spannung",readonly:"",class:"text-right text-monospace",unit:"V","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+l.id+"/get/voltages",1)},null,8,["model-value"]),t(a,{title:"Strom",readonly:"",class:"text-right text-monospace",unit:"A","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+l.id+"/get/currents",2)},null,8,["model-value"]),t(a,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",unit:"kW","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+l.id+"/get/powers",3,3,.001)},null,8,["model-value"]),t(a,{title:"Leistungsfaktor",readonly:"",class:"text-right text-monospace","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+l.id+"/get/power_factors",2)},null,8,["model-value"])]),_:2},1032,["title"]))),128)),c(" all inverters "),o.numInvertersInstalled>1?(i(),u(g,{key:1,subtype:"success",collapsible:!0,collapsed:!0},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","solar-panel"]}),r(" Alle Wechselrichter ")]),default:n(()=>[t(a,{title:"Zählerstand",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/exported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/pv/get/power",3,3,.001)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Erträge")]),_:1}),t(a,{title:"Heute",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Dieser Monat",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/monthly_exported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Dieses Jahr",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/yearly_exported",3,3,.001)},null,8,["model-value"])]),_:1})):c("v-if",!0),c(" individual inverters "),(i(!0),b(B,null,y(o.inverterConfigs,l=>(i(),u(g,{key:l.id,collapsible:!0,collapsed:!0,subtype:"success"},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","solar-panel"]}),r(" "+p(l.name)+" (ID: "+p(l.id)+") ",1)]),default:n(()=>[t(h,{subtype:x.statusLevel[e.$store.state.mqtt["openWB/pv/"+l.id+"/get/fault_state"]]},{default:n(()=>[e.$store.state.mqtt["openWB/pv/"+l.id+"/get/fault_state"]==1?(i(),u(d,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/pv/"+l.id+"/get/fault_state"]==2?(i(),u(d,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(i(),u(d,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),r(" Modulmeldung:"),Q,r(" "+p(e.$store.state.mqtt["openWB/pv/"+l.id+"/get/fault_str"]),1)]),_:2},1032,["subtype"]),t(a,{title:"Zählerstand",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/"+l.id+"/get/exported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/pv/"+l.id+"/get/power",3,3,.001)},null,8,["model-value"])]),_:2},1024))),128)),c(" all batteries "),o.numBatteriesInstalled>1?(i(),u(g,{key:2,subtype:"warning",collapsible:!0,collapsed:!0},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","car-battery"]}),r(" Alle Speicher ")]),default:n(()=>[t(m,null,{default:n(()=>[r("Zählerstände")]),_:1}),t(a,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/imported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/exported",3,3,.001)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Tageswerte")]),_:1}),t(a,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Saldierte Werte")]),_:1}),t(a,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/bat/get/power",3,3,.001)},null,8,["model-value"]),t(_,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/bat/get/soc"]},null,8,["model-value"])]),_:1})):c("v-if",!0),c(" individual batteries "),(i(!0),b(B,null,y(o.batteryConfigs,l=>(i(),u(g,{key:l.id,collapsible:!0,collapsed:!0,subtype:"warning"},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","car-battery"]}),r(" "+p(l.name)+" (ID: "+p(l.id)+") ",1)]),default:n(()=>[t(h,{subtype:x.statusLevel[e.$store.state.mqtt["openWB/bat/"+l.id+"/get/fault_state"]]},{default:n(()=>[e.$store.state.mqtt["openWB/bat/"+l.id+"/get/fault_state"]==1?(i(),u(d,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/bat/"+l.id+"/get/fault_state"]==2?(i(),u(d,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(i(),u(d,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),r(" Modulmeldung:"),U,r(" "+p(e.$store.state.mqtt["openWB/bat/"+l.id+"/get/fault_str"]),1)]),_:2},1032,["subtype"]),t(m,null,{default:n(()=>[r("Aktuelle Werte")]),_:1}),t(a,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/bat/"+l.id+"/get/power",3,3,.001)},null,8,["model-value"]),t(_,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/bat/"+l.id+"/get/soc"]},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Zählerstände")]),_:1}),t(a,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/"+l.id+"/get/imported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/"+l.id+"/get/exported",3,3,.001)},null,8,["model-value"])]),_:2},1024))),128)),c(" vehicles "),(i(!0),b(B,null,y(o.vehicleNames,(l,s)=>(i(),u(g,{key:s,collapsible:!0,collapsed:!0,subtype:"info"},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","car"]}),r(" "+p(l)+" (ID: "+p(o.getVehicleIndex(s))+") ",1)]),default:n(()=>[e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/fault_state"]!==void 0?(i(),u(h,{key:0,subtype:x.statusLevel[e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/fault_state"]]},{default:n(()=>[e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/fault_state"]==1?(i(),u(d,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/fault_state"]==2?(i(),u(d,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(i(),u(d,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),r(" Modulmeldung:"),X,r(" "+p(e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/fault_str"]),1)]),_:2},1032,["subtype"])):c("v-if",!0),t(m,null,{default:n(()=>[r("Fahrzeugdaten")]),_:1}),t(_,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/soc"]},null,8,["model-value"]),t(_,{title:"Reichweite",readonly:"",class:"text-right text-monospace",unit:"km","model-value":Math.round(e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/range"])},null,8,["model-value"]),t(a,{title:"Letzter Zeitstempel",readonly:"",class:"text-right text-monospace","model-value":e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/soc_timestamp"]},null,8,["model-value"])]),_:2},1024))),128))])}const ne=D(F,[["render",Y],["__scopeId","data-v-051028a3"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Status.vue"]]);export{ne as default};
+import{l as N,G as q,H as C,c as L,I as S,J as A,K as P,L as V,M as z,F as H}from"./vendor-fortawesome-838df0c9.js";import{C as Z}from"./index-f08a7306.js";import{_ as D,p as f,k as i,l as b,z as c,y as u,L as n,G as B,I as y,A as t,u as r,x as p,Q as M,R as E,q as v}from"./vendor-20bb207d.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";N.add(q,C,L,S,A,P,V,z);const F={name:"OpenwbStatus",mixins:[Z],components:{FontAwesomeIcon:H},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/chargepoint/get/power","openWB/chargepoint/get/imported","openWB/chargepoint/get/exported","openWB/chargepoint/get/daily_imported","openWB/chargepoint/get/daily_exported","openWB/chargepoint/+/config","openWB/chargepoint/+/get/+","openWB/chargepoint/+/get/connected_vehicle/info","openWB/chargepoint/+/set/+","openWB/system/device/+/component/+/config","openWB/counter/+/get/+","openWB/pv/get/+","openWB/pv/+/get/+","openWB/bat/get/+","openWB/bat/+/get/+","openWB/vehicle/+/name","openWB/vehicle/+/get/+"],statusLevel:["success","warning","danger"]}},computed:{installedChargePoints:{get(){return this.getWildcardTopics("openWB/chargepoint/+/config")}},numChargePointsInstalled:{get(){return Object.keys(this.installedChargePoints).length}},counterConfigs:{get(){return this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"counter")}},numInvertersInstalled:{get(){return Object.keys(this.inverterConfigs).length}},inverterConfigs:{get(){return this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"inverter")}},numBatteriesInstalled:{get(){return Object.keys(this.batteryConfigs).length}},batteryConfigs:{get(){return this.filterComponentsByType(this.getWildcardTopics("openWB/system/device/+/component/+/config"),"bat")}},vehicleNames:{get(){return this.getWildcardTopics("openWB/vehicle/+/name")}}},methods:{filterComponentsByType(e,I){return Object.keys(e).filter(k=>e[k].type.includes(I)).reduce((k,w)=>({...k,[w]:e[w]}),{})},getChargePointIndex(e){return parseInt(e.match(/(?:\/)(\d+)(?=\/)/)[1])},getComponentIndex(e){return parseInt(e.match(/(?:\/)(\d+)(?=\/)/)[1])},getVehicleIndex(e){return parseInt(e.match(/(?:\/)(\d+)(?=\/)/)[1])}}},W=e=>(M("data-v-051028a3"),e=e(),E(),e),O={class:"status"},j=W(()=>v("br",null,null,-1)),G=W(()=>v("br",null,null,-1)),J=W(()=>v("br",null,null,-1)),R=W(()=>v("br",null,null,-1)),Q=W(()=>v("br",null,null,-1)),U=W(()=>v("br",null,null,-1)),X=W(()=>v("br",null,null,-1));function Y(e,I,k,w,x,o){const d=f("font-awesome-icon"),a=f("openwb-base-text-input"),m=f("openwb-base-heading"),g=f("openwb-base-card"),h=f("openwb-base-alert"),T=f("openwb-base-checkbox-input"),_=f("openwb-base-number-input");return i(),b("div",O,[c(" all charge points "),o.numChargePointsInstalled>1?(i(),u(g,{key:0,subtype:"primary",collapsible:!0,collapsed:!0},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","charging-station"]}),r(" Alle Ladepunkte ")]),default:n(()=>[t(a,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/chargepoint/get/power",3,3,.001)},null,8,["model-value"]),t(a,{title:"Zählerstand laden",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/imported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Zählerstand entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/exported",3,3,.001)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Historie")]),_:1}),t(a,{title:"Heute geladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Heute entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/get/daily_exported",3,3,.001)},null,8,["model-value"])]),_:1})):c("v-if",!0),c(" individual charge points "),(i(!0),b(B,null,y(o.installedChargePoints,(l,s)=>(i(),u(g,{key:s,collapsible:!0,collapsed:!0,subtype:"primary"},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","charging-station"]}),r(" "+p(l.name)+" (ID: "+p(o.getChargePointIndex(s))+") ",1)]),default:n(()=>[t(h,{subtype:x.statusLevel[e.$store.state.mqtt["openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/fault_state"]]},{default:n(()=>[e.$store.state.mqtt["openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/fault_state"]==1?(i(),u(d,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/fault_state"]==2?(i(),u(d,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(i(),u(d,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),r(" Modulmeldung:"),j,r(" "+p(e.$store.state.mqtt["openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/fault_str"]),1)]),_:2},1032,["subtype"]),t(h,{subtype:"info"},{default:n(()=>[r(" Statusmeldung:"),G,r(" "+p(e.$store.state.mqtt["openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/state_str"]),1)]),_:2},1024),t(T,{title:"Fahrzeug angesteckt",disabled:"","model-value":e.$store.state.mqtt["openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/plug_state"]==1},null,8,["model-value"]),t(T,{title:"Ladevorgang aktiv",disabled:"","model-value":e.$store.state.mqtt["openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/charge_state"]==1},null,8,["model-value"]),t(a,{title:"Zählerstand laden",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/imported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Zählerstand entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/exported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Heute geladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Heute entladen",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/power",3,3,.001)},null,8,["model-value"]),t(a,{title:"Ladestromvorgabe",readonly:"",class:"text-right text-monospace",step:"0.01",unit:"A","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/set/current",2)},null,8,["model-value"]),t(a,{title:"Netzfrequenz",readonly:"",class:"text-right text-monospace",step:"0.01",unit:"Hz","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/frequency",2)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Werte pro Phase")]),_:1}),t(a,{title:"Spannung",readonly:"",class:"text-right text-monospace",unit:"V","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/voltages",1)},null,8,["model-value"]),t(a,{title:"Strom",readonly:"",class:"text-right text-monospace",unit:"A","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/currents",2)},null,8,["model-value"]),t(a,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",unit:"kW","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/powers",3,3,.001)},null,8,["model-value"]),t(a,{title:"Leistungsfaktor",readonly:"",class:"text-right text-monospace","model-value":e.formatPhaseArrayNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/power_factors",2)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Phasen")]),_:1}),t(a,{title:"Vorgabe",readonly:"",class:"text-right text-monospace","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/set/phases_to_use")},null,8,["model-value"]),t(a,{title:"Aktuell",readonly:"",class:"text-right text-monospace","model-value":e.formatNumberTopic("openWB/chargepoint/"+o.getChargePointIndex(s)+"/get/phases_in_use")},null,8,["model-value"])]),_:2},1024))),128)),c(" counters "),(i(!0),b(B,null,y(o.counterConfigs,l=>(i(),u(g,{key:l.id,title:l.name+" (ID: "+l.id+")",collapsible:!0,collapsed:!0,subtype:"danger"},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","gauge-high"]}),r(" "+p(l.name)+" (ID: "+p(l.id)+") ",1)]),default:n(()=>[t(h,{subtype:x.statusLevel[e.$store.state.mqtt["openWB/counter/"+l.id+"/get/fault_state"]]},{default:n(()=>[e.$store.state.mqtt["openWB/counter/"+l.id+"/get/fault_state"]==1?(i(),u(d,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/counter/"+l.id+"/get/fault_state"]==2?(i(),u(d,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(i(),u(d,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),r(" Modulmeldung:"),J,r(" "+p(e.$store.state.mqtt["openWB/counter/"+l.id+"/get/fault_str"]),1)]),_:2},1032,["subtype"]),e.$store.state.mqtt["openWB/counter/"+l.id+"/get/state_str"]!=null?(i(),u(h,{key:0,subtype:"info"},{default:n(()=>[r(" Statusmeldung:"),R,r(" "+p(e.$store.state.mqtt["openWB/counter/"+l.id+"/get/state_str"]),1)]),_:2},1024)):c("v-if",!0),t(m,null,{default:n(()=>[r("Zählerstände")]),_:1}),t(a,{title:"Export",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/counter/"+l.id+"/get/exported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Import",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/counter/"+l.id+"/get/imported",3,3,.001)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Saldierte Werte")]),_:1}),t(a,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/counter/"+l.id+"/get/power",3,3,.001)},null,8,["model-value"]),t(a,{title:"Netzfrequenz",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"Hz","model-value":e.formatNumberTopic("openWB/counter/"+l.id+"/get/frequency",3)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Werte pro Phase")]),_:1}),t(a,{title:"Spannung",readonly:"",class:"text-right text-monospace",unit:"V","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+l.id+"/get/voltages",1)},null,8,["model-value"]),t(a,{title:"Strom",readonly:"",class:"text-right text-monospace",unit:"A","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+l.id+"/get/currents",2)},null,8,["model-value"]),t(a,{title:"Wirkleistung",readonly:"",class:"text-right text-monospace",unit:"kW","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+l.id+"/get/powers",3,3,.001)},null,8,["model-value"]),t(a,{title:"Leistungsfaktor",readonly:"",class:"text-right text-monospace","model-value":e.formatPhaseArrayNumberTopic("openWB/counter/"+l.id+"/get/power_factors",2)},null,8,["model-value"])]),_:2},1032,["title"]))),128)),c(" all inverters "),o.numInvertersInstalled>1?(i(),u(g,{key:1,subtype:"success",collapsible:!0,collapsed:!0},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","solar-panel"]}),r(" Alle Wechselrichter ")]),default:n(()=>[t(a,{title:"Zählerstand",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/exported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/pv/get/power",3,3,.001)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Erträge")]),_:1}),t(a,{title:"Heute",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Dieser Monat",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/monthly_exported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Dieses Jahr",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/get/yearly_exported",3,3,.001)},null,8,["model-value"])]),_:1})):c("v-if",!0),c(" individual inverters "),(i(!0),b(B,null,y(o.inverterConfigs,l=>(i(),u(g,{key:l.id,collapsible:!0,collapsed:!0,subtype:"success"},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","solar-panel"]}),r(" "+p(l.name)+" (ID: "+p(l.id)+") ",1)]),default:n(()=>[t(h,{subtype:x.statusLevel[e.$store.state.mqtt["openWB/pv/"+l.id+"/get/fault_state"]]},{default:n(()=>[e.$store.state.mqtt["openWB/pv/"+l.id+"/get/fault_state"]==1?(i(),u(d,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/pv/"+l.id+"/get/fault_state"]==2?(i(),u(d,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(i(),u(d,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),r(" Modulmeldung:"),Q,r(" "+p(e.$store.state.mqtt["openWB/pv/"+l.id+"/get/fault_str"]),1)]),_:2},1032,["subtype"]),t(a,{title:"Zählerstand",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/pv/"+l.id+"/get/exported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/pv/"+l.id+"/get/power",3,3,.001)},null,8,["model-value"])]),_:2},1024))),128)),c(" all batteries "),o.numBatteriesInstalled>1?(i(),u(g,{key:2,subtype:"warning",collapsible:!0,collapsed:!0},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","car-battery"]}),r(" Alle Speicher ")]),default:n(()=>[t(m,null,{default:n(()=>[r("Zählerstände")]),_:1}),t(a,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/imported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/exported",3,3,.001)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Tageswerte")]),_:1}),t(a,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/daily_imported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/get/daily_exported",3,3,.001)},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Saldierte Werte")]),_:1}),t(a,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/bat/get/power",3,3,.001)},null,8,["model-value"]),t(_,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/bat/get/soc"]},null,8,["model-value"])]),_:1})):c("v-if",!0),c(" individual batteries "),(i(!0),b(B,null,y(o.batteryConfigs,l=>(i(),u(g,{key:l.id,collapsible:!0,collapsed:!0,subtype:"warning"},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","car-battery"]}),r(" "+p(l.name)+" (ID: "+p(l.id)+") ",1)]),default:n(()=>[t(h,{subtype:x.statusLevel[e.$store.state.mqtt["openWB/bat/"+l.id+"/get/fault_state"]]},{default:n(()=>[e.$store.state.mqtt["openWB/bat/"+l.id+"/get/fault_state"]==1?(i(),u(d,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/bat/"+l.id+"/get/fault_state"]==2?(i(),u(d,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(i(),u(d,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),r(" Modulmeldung:"),U,r(" "+p(e.$store.state.mqtt["openWB/bat/"+l.id+"/get/fault_str"]),1)]),_:2},1032,["subtype"]),t(m,null,{default:n(()=>[r("Aktuelle Werte")]),_:1}),t(a,{title:"Leistung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kW","model-value":e.formatNumberTopic("openWB/bat/"+l.id+"/get/power",3,3,.001)},null,8,["model-value"]),t(_,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/bat/"+l.id+"/get/soc"]},null,8,["model-value"]),t(m,null,{default:n(()=>[r("Zählerstände")]),_:1}),t(a,{title:"Ladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/"+l.id+"/get/imported",3,3,.001)},null,8,["model-value"]),t(a,{title:"Entladung",readonly:"",class:"text-right text-monospace",step:"0.001",unit:"kWh","model-value":e.formatNumberTopic("openWB/bat/"+l.id+"/get/exported",3,3,.001)},null,8,["model-value"])]),_:2},1024))),128)),c(" vehicles "),(i(!0),b(B,null,y(o.vehicleNames,(l,s)=>(i(),u(g,{key:s,collapsible:!0,collapsed:!0,subtype:"info"},{header:n(()=>[t(d,{"fixed-width":"",icon:["fas","car"]}),r(" "+p(l)+" (ID: "+p(o.getVehicleIndex(s))+") ",1)]),default:n(()=>[e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/fault_state"]!==void 0?(i(),u(h,{key:0,subtype:x.statusLevel[e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/fault_state"]]},{default:n(()=>[e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/fault_state"]==1?(i(),u(d,{key:0,"fixed-width":"",icon:["fas","exclamation-triangle"]})):e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/fault_state"]==2?(i(),u(d,{key:1,"fixed-width":"",icon:["fas","times-circle"]})):(i(),u(d,{key:2,"fixed-width":"",icon:["fas","check-circle"]})),r(" Modulmeldung:"),X,r(" "+p(e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/fault_str"]),1)]),_:2},1032,["subtype"])):c("v-if",!0),t(m,null,{default:n(()=>[r("Fahrzeugdaten")]),_:1}),t(_,{title:"Ladestand",readonly:"",class:"text-right text-monospace",unit:"%","model-value":e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/soc"]},null,8,["model-value"]),t(_,{title:"Reichweite",readonly:"",class:"text-right text-monospace",unit:"km","model-value":Math.round(e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/range"])},null,8,["model-value"]),t(a,{title:"Letzter Zeitstempel",readonly:"",class:"text-right text-monospace","model-value":e.$store.state.mqtt["openWB/vehicle/"+o.getVehicleIndex(s)+"/get/soc_timestamp"]},null,8,["model-value"])]),_:2},1024))),128))])}const ne=D(F,[["render",Y],["__scopeId","data-v-051028a3"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Status.vue"]]);export{ne as default};
diff --git a/web/settings/assets/Support-bee6b474.js b/web/settings/assets/Support-bee6b474.js
new file mode 100644
index 0000000000..317e020746
--- /dev/null
+++ b/web/settings/assets/Support-bee6b474.js
@@ -0,0 +1 @@
+import{l as w,g as y,F as V}from"./vendor-fortawesome-838df0c9.js";import{C as B}from"./index-f08a7306.js";import{_ as v,p as a,k as r,l as c,q as l,y as h,L as s,A as n,a2 as z,z as g,u as t,n as F}from"./vendor-20bb207d.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";w.add(y);const x={name:"OpenwbSupport",mixins:[B],emits:["sendCommand"],components:{FontAwesomeIcon:V},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged"],sendDebugData:{email:"",serialNumber:"",installedComponents:"",vehicles:"",message:""},enableSendDebugButton:!0}},methods:{sendDebugMessage(){if(document.forms.supportForm.reportValidity())this.$emit("sendCommand",{command:"sendDebug",data:this.sendDebugData}),this.enableSendDebugButton=!1;else{console.warn("form invalid");return}}}},C={class:"support"},q={name:"supportForm"},A={key:1},W={key:0},N=l("li",null,' Vergewissern Sie sich, dass mindestens die aktuelle "Stable" Version installiert ist. ',-1),L=l("li",null," Stellen Sie beim Absenden des Berichtes die Fehlerkonditionen her. Lädt ein Fahrzeug nicht, sollte es angeschlossen und nicht voll geladen sein. Ist PV laden betroffen, sollte die Sonne auch scheinen. Der Systembericht muss dann versendet werden, wenn der Fehler aktuell vorliegt. ",-1),M=l("li",null," Stellen Sie sicher, dass der Lademodus korrekt gewählt ist und im Falle von nicht ladenden Fahrzeugen, dass der Ladepunkt auch entsperrt wurde. ",-1),U=l("li",null," Das Auslesen der Systemkonfiguration erfolgt direkt nach den Klick auf Absenden und kann einige Zeit in Anspruch nehmen. Sie erhalten ca. 15 bis 30 Minuten nach Versand des Systemberichtes von uns automatisch eine E-Mail mit der Ticketnummer unter der die Anfrage bei uns registriert wurde. Wir melden uns bei ihnen. Bitte kontrollieren Sie daher immer auch den Spam Ordner auf eingehende Nachrichten. Erhalten Sie trotzdem keine Ticketnummer, ist das Versenden des Systemberichtes fehlgeschlagen. ",-1),E={class:"row justify-content-center"};function G(d,o,T,H,e,_){const b=a("router-link"),u=a("openwb-base-alert"),f=a("FontAwesomeIcon"),p=a("openwb-base-text-input"),m=a("openwb-base-textarea"),S=a("openwb-base-click-button"),k=a("openwb-base-card"),D=a("font-awesome-icon");return r(),c("div",C,[l("form",q,[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]!==!0?(r(),h(u,{key:0,subtype:"danger"},{default:s(()=>[t(" Sie müssen der "),n(b,{to:"/System/LegalSettings"},{default:s(()=>[t(" Datenschutzerklärung ")]),_:1}),t(" zustimmen, um einen Systembericht senden zu können. ")]),_:1})):(r(),c("div",A,[n(u,{subtype:"success"},{default:s(()=>[t(" Sie haben der "),n(b,{to:"/System/LegalSettings"},{default:s(()=>[t(" Datenschutzerklärung ")]),_:1}),t(" zugestimmt und können Systemberichte senden. ")]),_:1}),n(k,{title:"Systembericht"},z({default:s(()=>[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?(r(),c("div",W,[n(u,{subtype:"info"},{default:s(()=>[l("ul",null,[l("li",null,[t(" Lesen Sie den Hilfetext, der durch Klick auf das "),n(f,{icon:["far","question-circle"]}),t(" angezeigt wird. Nehmen Sie das Wiki zur Hilfe. ")]),N,L,M,U])]),_:1}),n(p,{title:"E-Mail",required:"",subtype:"email",modelValue:e.sendDebugData.email,"onUpdate:modelValue":o[0]||(o[0]=i=>e.sendDebugData.email=i)},null,8,["modelValue"]),n(p,{title:"openWB Seriennummer",required:"",modelValue:e.sendDebugData.serialNumber,"onUpdate:modelValue":o[1]||(o[1]=i=>e.sendDebugData.serialNumber=i)},{help:s(()=>[t(" Die Seriennummer der openWB finden Sie außen am Gehäuse - bei Älteren innen im Gehäuse. Sie können uns aber auch eine Bestellnummer oder Rechnungsnummer übermitteln. Das Gehäuse muss nicht extra geöffnet werden! ")]),_:1},8,["modelValue"]),n(m,{title:"Verwendete Komponenten",required:"",minlength:"3",maxlength:"500",modelValue:e.sendDebugData.installedComponents,"onUpdate:modelValue":o[2]||(o[2]=i=>e.sendDebugData.installedComponents=i)},{help:s(()=>[t(" Geben Sie hier möglichst detailliert an, welche Anlagenkomponenten (EVU, PV, Speicher) angebunden sind. ")]),_:1},8,["modelValue"]),n(m,{title:"Fahrzeuge",required:"",minlength:"3",maxlength:"500",modelValue:e.sendDebugData.vehicles,"onUpdate:modelValue":o[3]||(o[3]=i=>e.sendDebugData.vehicles=i)},{help:s(()=>[t(" Geben Sie hier an, welche Fahrzeuge geladen werden (Hersteller, Modell, Baujahr). ")]),_:1},8,["modelValue"]),n(m,{title:"Problembeschreibung",required:"",minlength:"20",maxlength:"500",modelValue:e.sendDebugData.message,"onUpdate:modelValue":o[4]||(o[4]=i=>e.sendDebugData.message=i)},null,8,["modelValue"])])):g("v-if",!0)]),_:2},[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:s(()=>[l("div",E,[n(S,{class:F(["col-4",e.enableSendDebugButton?"btn-success":"btn-outline-success"]),disabled:!e.enableSendDebugButton,onButtonClicked:_.sendDebugMessage},{default:s(()=>[t(" Absenden ")]),_:1},8,["class","disabled","onButtonClicked"])])]),key:"0"}:void 0]),1024),e.enableSendDebugButton?g("v-if",!0):(r(),h(u,{key:0,subtype:"success"},{default:s(()=>[t(" Die Daten für den Fehlerbericht werden im Hintergrund zusammengestellt. Sie können diese Seite jetzt verlassen. "),n(D,{"fixed-width":"",icon:["fas","check"]})]),_:1}))]))])])}const J=v(x,[["render",G],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Support.vue"]]);export{J as default};
diff --git a/web/settings/assets/Support-d2984420.js b/web/settings/assets/Support-d2984420.js
deleted file mode 100644
index cbc941a212..0000000000
--- a/web/settings/assets/Support-d2984420.js
+++ /dev/null
@@ -1 +0,0 @@
-import{l as w,g as y,F as V}from"./vendor-fortawesome-ad83e535.js";import{C as B}from"./index-cbcca7a0.js";import{_ as v,p as l,k as r,l as c,q as a,y as h,L as s,A as n,a2 as z,z as g,u as t,n as F}from"./vendor-94ac8c48.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";w.add(y);const x={name:"OpenwbSupport",mixins:[B],emits:["sendCommand"],components:{FontAwesomeIcon:V},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/system/dataprotection_acknowledged"],sendDebugData:{email:"",serialNumber:"",installedComponents:"",vehicles:"",message:""},enableSendDebugButton:!0}},methods:{sendDebugMessage(){if(document.forms.supportForm.reportValidity())this.$emit("sendCommand",{command:"sendDebug",data:this.sendDebugData}),this.enableSendDebugButton=!1;else{console.log("form invalid");return}}}},C={class:"support"},q={name:"supportForm"},A={key:1},W={key:0},N=a("li",null,' Vergewissern Sie sich, dass mindestens die aktuelle "Stable" Version installiert ist. ',-1),L=a("li",null," Stellen Sie beim Absenden des Berichtes die Fehlerkonditionen her. Lädt ein Fahrzeug nicht, sollte es angeschlossen und nicht voll geladen sein. Ist PV laden betroffen, sollte die Sonne auch scheinen. Der Systembericht muss dann versendet werden, wenn der Fehler aktuell vorliegt. ",-1),M=a("li",null," Stellen Sie sicher, dass der Lademodus korrekt gewählt ist und im Falle von nicht ladenden Fahrzeugen, dass der Ladepunkt auch entsperrt wurde. ",-1),U=a("li",null," Das Auslesen der Systemkonfiguration erfolgt direkt nach den Klick auf Absenden und kann einige Zeit in Anspruch nehmen. Sie erhalten ca. 15 bis 30 Minuten nach Versand des Systemberichtes von uns automatisch eine E-Mail mit der Ticketnummer unter der die Anfrage bei uns registriert wurde. Wir melden uns bei ihnen. Bitte kontrollieren Sie daher immer auch den Spam Ordner auf eingehende Nachrichten. Erhalten Sie trotzdem keine Ticketnummer, ist das Versenden des Systemberichtes fehlgeschlagen. ",-1),E={class:"row justify-content-center"};function G(d,o,T,H,e,_){const b=l("router-link"),u=l("openwb-base-alert"),f=l("FontAwesomeIcon"),p=l("openwb-base-text-input"),m=l("openwb-base-textarea"),S=l("openwb-base-click-button"),k=l("openwb-base-card"),D=l("font-awesome-icon");return r(),c("div",C,[a("form",q,[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]!==!0?(r(),h(u,{key:0,subtype:"danger"},{default:s(()=>[t(" Sie müssen der "),n(b,{to:"/System/LegalSettings"},{default:s(()=>[t(" Datenschutzerklärung ")]),_:1}),t(" zustimmen, um einen Systembericht senden zu können. ")]),_:1})):(r(),c("div",A,[n(u,{subtype:"success"},{default:s(()=>[t(" Sie haben der "),n(b,{to:"/System/LegalSettings"},{default:s(()=>[t(" Datenschutzerklärung ")]),_:1}),t(" zugestimmt und können Systemberichte senden. ")]),_:1}),n(k,{title:"Systembericht"},z({default:s(()=>[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?(r(),c("div",W,[n(u,{subtype:"info"},{default:s(()=>[a("ul",null,[a("li",null,[t(" Lesen Sie den Hilfetext, der durch Klick auf das "),n(f,{icon:["far","question-circle"]}),t(" angezeigt wird. Nehmen Sie das Wiki zur Hilfe. ")]),N,L,M,U])]),_:1}),n(p,{title:"E-Mail",required:"",subtype:"email",modelValue:e.sendDebugData.email,"onUpdate:modelValue":o[0]||(o[0]=i=>e.sendDebugData.email=i)},null,8,["modelValue"]),n(p,{title:"openWB Seriennummer",required:"",modelValue:e.sendDebugData.serialNumber,"onUpdate:modelValue":o[1]||(o[1]=i=>e.sendDebugData.serialNumber=i)},{help:s(()=>[t(" Die Seriennummer der openWB finden Sie außen am Gehäuse - bei Älteren innen im Gehäuse. Sie können uns aber auch eine Bestellnummer oder Rechnungsnummer übermitteln. Das Gehäuse muss nicht extra geöffnet werden! ")]),_:1},8,["modelValue"]),n(m,{title:"Verwendete Komponenten",required:"",minlength:"3",maxlength:"500",modelValue:e.sendDebugData.installedComponents,"onUpdate:modelValue":o[2]||(o[2]=i=>e.sendDebugData.installedComponents=i)},{help:s(()=>[t(" Geben Sie hier möglichst detailliert an, welche Anlagenkomponenten (EVU, PV, Speicher) angebunden sind. ")]),_:1},8,["modelValue"]),n(m,{title:"Fahrzeuge",required:"",minlength:"3",maxlength:"500",modelValue:e.sendDebugData.vehicles,"onUpdate:modelValue":o[3]||(o[3]=i=>e.sendDebugData.vehicles=i)},{help:s(()=>[t(" Geben Sie hier an, welche Fahrzeuge geladen werden (Hersteller, Modell, Baujahr). ")]),_:1},8,["modelValue"]),n(m,{title:"Problembeschreibung",required:"",minlength:"20",maxlength:"500",modelValue:e.sendDebugData.message,"onUpdate:modelValue":o[4]||(o[4]=i=>e.sendDebugData.message=i)},null,8,["modelValue"])])):g("v-if",!0)]),_:2},[d.$store.state.mqtt["openWB/system/dataprotection_acknowledged"]===!0?{name:"footer",fn:s(()=>[a("div",E,[n(S,{class:F(["col-4",e.enableSendDebugButton?"btn-success":"btn-outline-success"]),disabled:!e.enableSendDebugButton,onButtonClicked:_.sendDebugMessage},{default:s(()=>[t(" Absenden ")]),_:1},8,["class","disabled","onButtonClicked"])])]),key:"0"}:void 0]),1024),e.enableSendDebugButton?g("v-if",!0):(r(),h(u,{key:0,subtype:"success"},{default:s(()=>[t(" Die Daten für den Fehlerbericht werden im Hintergrund zusammengestellt. Sie können diese Seite jetzt verlassen. "),n(D,{"fixed-width":"",icon:["fas","check"]})]),_:1}))]))])])}const J=v(x,[["render",G],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/Support.vue"]]);export{J as default};
diff --git a/web/settings/assets/System-d604c488.js b/web/settings/assets/System-c57d9a74.js
similarity index 96%
rename from web/settings/assets/System-d604c488.js
rename to web/settings/assets/System-c57d9a74.js
index d250b8b245..882bf9aa8e 100644
--- a/web/settings/assets/System-d604c488.js
+++ b/web/settings/assets/System-c57d9a74.js
@@ -1 +1 @@
-import{l as W,_ as S,p as q,$ as C,O as A,a0 as x,F as $}from"./vendor-fortawesome-ad83e535.js";import{C as E}from"./index-cbcca7a0.js";import{_ as U,p as c,k as g,l as y,A as s,L as o,q as a,z as k,u as d,n as v,y as z,G as F,I as T,x as j,Q as D,R as I}from"./vendor-94ac8c48.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";W.add(S,q,C,A,x);const L={name:"OpenwbSystem",mixins:[E],emits:["sendCommand"],components:{FontAwesomeIcon:$},data(){return{mqttTopicsToSubscribe:["openWB/system/current_commit","openWB/system/current_branch_commit","openWB/system/current_missing_commits","openWB/system/available_branches","openWB/system/current_branch"],warningAcknowledged:!1,selectedTag:"*HEAD*"}},computed:{updateAvailable(){return this.$store.state.mqtt["openWB/system/current_branch_commit"]&&this.$store.state.mqtt["openWB/system/current_branch_commit"]!=this.$store.state.mqtt["openWB/system/current_commit"]},releaseChangeValid(){return this.$store.state.mqtt["openWB/system/current_branch"]in this.$store.state.mqtt["openWB/system/available_branches"]&&"tags"in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]]&&(this.selectedTag in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]].tags||this.selectedTag=="*HEAD*")}},methods:{sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})},getBranchGroups(){const t="Release",e="Beta",m="master",w=[t,e,m],p=(l,i)=>l.value==i.value?0:l.value==t?-1:i.value==t?1:l.value==e?-1:i.value==e?1:l.value==m?-1:i.value==m||l.value>i.value?1:l.value<i.value?-1:0;var r=this.$store.state.mqtt["openWB/system/available_branches"],h=[{label:"Allgemein",options:[]},{label:"Experimentell",options:[]}];if(r!==void 0){var u=0;for(const[l,i]of Object.entries(r))w.includes(l)?u=0:u=1,h[u].options.push({value:l,text:l+" ("+i.commit+")"});h[0].options.sort(p),h[1].options.sort(p)}return h},getBranchTagOptions(){if(!(this.$store.state.mqtt["openWB/system/current_branch"]in this.$store.state.mqtt["openWB/system/available_branches"]))return[];var t=this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]].tags,e=[];if(t!==void 0)for(const[m,w]of Object.entries(t))e.unshift({value:m,text:w});return e.unshift({value:"*HEAD*",text:"Aktuellster Stand"}),e},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)},systemUpdate(){this.sendSystemCommand("systemUpdate",{}),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})},switchBranch(){this.sendSystemCommand("systemUpdate",{branch:this.$store.state.mqtt["openWB/system/current_branch"],tag:this.selectedTag}),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})}}},f=t=>(D("data-v-059847f6"),t=t(),I(),t),N={class:"system"},O=f(()=>a("h2",null,"Achtung!",-1)),R=f(()=>a("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1)),Z={key:0},G={name:"versionInfoForm"},H={class:"missing-commits"},P={class:"row justify-content-center"},J={class:"col-md-4 d-flex py-1 justify-content-center"},Q={class:"col-md-4 d-flex py-1 justify-content-center"},K={name:"powerForm"},M={class:"row justify-content-center"},X={class:"col-md-4 d-flex py-1 justify-content-center"},Y={class:"col-md-4 d-flex py-1 justify-content-center"},ee={name:"releaseChangeForm"},te=f(()=>a("br",null,null,-1)),se=f(()=>a("br",null,null,-1)),ne=f(()=>a("br",null,null,-1)),ae=f(()=>a("br",null,null,-1)),oe={class:"row justify-content-center"},re={class:"col-md-4 d-flex py-1 justify-content-center"};function le(t,e,m,w,p,r){const h=c("openwb-base-button-group-input"),u=c("openwb-base-alert"),l=c("openwb-base-text-input"),i=c("openwb-base-card"),b=c("font-awesome-icon"),_=c("openwb-base-click-button"),B=c("openwb-base-select-input");return g(),y("div",N,[s(u,{subtype:"danger"},{default:o(()=>[O,R,s(h,{title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:this.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=n=>this.warningAcknowledged=n)},null,8,["modelValue"])]),_:1}),p.warningAcknowledged?(g(),y("div",Z,[a("form",G,[s(i,{title:"Versions-Informationen / Aktualisierung",subtype:"success",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",P,[a("div",J,[s(_,{class:"btn-info",onButtonClicked:e[4]||(e[4]=n=>r.sendSystemCommand("systemFetchVersions"))},{default:o(()=>[d(" Informationen aktualisieren "),s(b,{"fixed-width":"",icon:["fas","download"]})]),_:1})]),a("div",Q,[s(_,{class:v(r.updateAvailable?"btn-success clickable":"btn-outline-success"),disabled:!r.updateAvailable,onButtonClicked:e[5]||(e[5]=n=>r.systemUpdate())},{default:o(()=>[d(" Update "),s(b,{"fixed-width":"",icon:["fas","arrow-alt-circle-up"]})]),_:1},8,["class","disabled"])])])]),default:o(()=>[s(l,{title:"Entwicklungszweig",readonly:"",modelValue:t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[1]||(e[1]=n=>t.$store.state.mqtt["openWB/system/current_branch"]=n)},null,8,["modelValue"]),s(l,{title:"installierte Version",readonly:"",class:v(r.updateAvailable?"text-danger":"text-success"),modelValue:t.$store.state.mqtt["openWB/system/current_commit"],"onUpdate:modelValue":e[2]||(e[2]=n=>t.$store.state.mqtt["openWB/system/current_commit"]=n)},null,8,["class","modelValue"]),s(l,{title:"aktuellste Version",readonly:"",modelValue:t.$store.state.mqtt["openWB/system/current_branch_commit"],"onUpdate:modelValue":e[3]||(e[3]=n=>t.$store.state.mqtt["openWB/system/current_branch_commit"]=n)},null,8,["modelValue"]),r.updateAvailable?(g(),z(i,{key:0,title:"Änderungen",subtype:"info",collapsible:!0,collapsed:!0},{default:o(()=>[a("ul",H,[(g(!0),y(F,null,T(t.$store.state.mqtt["openWB/system/current_missing_commits"],(n,V)=>(g(),y("li",{key:V},j(n),1))),128))])]),_:1})):k("v-if",!0),s(u,{subtype:"danger"},{default:o(()=>[d(" Nach einem Update wird die Ladestation direkt neu gestartet! Es werden alle eventuell vorhandenen lokalen Änderungen am Programmcode mit dem Update verworfen! ")]),_:1})]),_:1})]),a("form",K,[s(i,{title:"Betrieb",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",M,[a("div",X,[s(_,{class:"btn-warning",onButtonClicked:e[6]||(e[6]=n=>r.sendSystemCommand("systemReboot"))},{default:o(()=>[d(" Neustart "),s(b,{"fixed-width":"",icon:["fas","undo"]})]),_:1})]),a("div",Y,[s(_,{class:"btn-danger",onButtonClicked:e[7]||(e[7]=n=>r.sendSystemCommand("systemShutdown"))},{default:o(()=>[d(" Ausschalten "),s(b,{"fixed-width":"",icon:["fas","power-off"]})]),_:1})])])]),default:o(()=>[s(u,{subtype:"danger"},{default:o(()=>[d(" Wenn die Ladestation ausgeschaltet wird, muss sie komplett spannungsfrei geschaltet werden. Erst beim erneuten Zuschalten der Spannung fährt das System wieder hoch. ")]),_:1})]),_:1})]),a("form",ee,[s(i,{title:"Entwicklungszweig",subtype:"danger",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",oe,[a("div",re,[s(_,{class:v(r.releaseChangeValid?"btn-danger clickable":"btn-outline-danger"),disabled:!r.releaseChangeValid,onButtonClicked:e[10]||(e[10]=n=>r.switchBranch())},{default:o(()=>[s(b,{"fixed-width":"",icon:["fas","skull-crossbones"]}),d(" Branch und Tag wechseln "),s(b,{"fixed-width":"",icon:["fas","skull-crossbones"]})]),_:1},8,["class","disabled"])])])]),default:o(()=>[s(u,{subtype:"danger"},{default:o(()=>[d(" Nach einem Wechsel wird die Ladestation direkt neu gestartet! Es werden alle lokalen Änderungen mit dem Wechsel verworfen! ")]),_:1}),s(u,{subtype:"warning"},{default:o(()=>[d(" Bevor auf einen neuen Entwicklungszweig gewechselt wird sollte immer eine Sicherung erstellt werden! Es kann zwar wieder auf eine ältere Version gewechselt werden, jedoch ist nicht sichergestellt, dass es dabei keine Probleme gibt. Gerade wenn das Datenformat in der neuen Version angepasst wurde, wird eine ältere damit Fehler produzieren."),te,d(' Für den normalen Betrieb wird der Zweig "Release" empfohlen. Der Softwarestand wurde ausgiebig getestet, sodass ein Fehlverhalten relativ unwahrscheinlich ist.'),se,d(' Der "Beta" Zweig beinhaltet Vorabversionen, bei denen die Entwicklung soweit abgeschlossen ist. Die enthaltenen Anpassungen wurden rudimentär getestet, können aber durchaus noch Fehler enthalten.'),ne,d(' Die aktuelle Softwareentwicklung findet im Zweig "master" statt. Die enthaltenen Anpassungen sind teilweise noch nicht getestet und enthalten potentiell Fehler.'),ae,d(' Einträge, die mit "feature" beginnen, sind experimentelle Entwicklungszweige, die nicht für den allgemeinen Gebrauch gedacht sind. ')]),_:1}),s(B,{title:"Entwicklungszweig",groups:r.getBranchGroups(),"model-value":t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[8]||(e[8]=n=>t.updateState("openWB/system/current_branch",n))},null,8,["groups","model-value"]),s(B,{title:"Tag",options:r.getBranchTagOptions(),modelValue:p.selectedTag,"onUpdate:modelValue":e[9]||(e[9]=n=>p.selectedTag=n)},null,8,["options","modelValue"])]),_:1})])])):k("v-if",!0)])}const be=U(L,[["render",le],["__scopeId","data-v-059847f6"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/System.vue"]]);export{be as default};
+import{l as W,_ as S,p as q,$ as C,O as A,a0 as x,F as $}from"./vendor-fortawesome-838df0c9.js";import{C as E}from"./index-f08a7306.js";import{_ as U,p as c,k as g,l as y,A as s,L as o,q as a,z as k,u as d,n as v,y as z,G as F,I as T,x as j,Q as D,R as I}from"./vendor-20bb207d.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";W.add(S,q,C,A,x);const L={name:"OpenwbSystem",mixins:[E],emits:["sendCommand"],components:{FontAwesomeIcon:$},data(){return{mqttTopicsToSubscribe:["openWB/system/current_commit","openWB/system/current_branch_commit","openWB/system/current_missing_commits","openWB/system/available_branches","openWB/system/current_branch"],warningAcknowledged:!1,selectedTag:"*HEAD*"}},computed:{updateAvailable(){return this.$store.state.mqtt["openWB/system/current_branch_commit"]&&this.$store.state.mqtt["openWB/system/current_branch_commit"]!=this.$store.state.mqtt["openWB/system/current_commit"]},releaseChangeValid(){return this.$store.state.mqtt["openWB/system/current_branch"]in this.$store.state.mqtt["openWB/system/available_branches"]&&"tags"in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]]&&(this.selectedTag in this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]].tags||this.selectedTag=="*HEAD*")}},methods:{sendSystemCommand(t,e={}){this.$emit("sendCommand",{command:t,data:e})},getBranchGroups(){const t="Release",e="Beta",m="master",w=[t,e,m],p=(l,i)=>l.value==i.value?0:l.value==t?-1:i.value==t?1:l.value==e?-1:i.value==e?1:l.value==m?-1:i.value==m||l.value>i.value?1:l.value<i.value?-1:0;var r=this.$store.state.mqtt["openWB/system/available_branches"],h=[{label:"Allgemein",options:[]},{label:"Experimentell",options:[]}];if(r!==void 0){var u=0;for(const[l,i]of Object.entries(r))w.includes(l)?u=0:u=1,h[u].options.push({value:l,text:l+" ("+i.commit+")"});h[0].options.sort(p),h[1].options.sort(p)}return h},getBranchTagOptions(){if(!(this.$store.state.mqtt["openWB/system/current_branch"]in this.$store.state.mqtt["openWB/system/available_branches"]))return[];var t=this.$store.state.mqtt["openWB/system/available_branches"][this.$store.state.mqtt["openWB/system/current_branch"]].tags,e=[];if(t!==void 0)for(const[m,w]of Object.entries(t))e.unshift({value:m,text:w});return e.unshift({value:"*HEAD*",text:"Aktuellster Stand"}),e},updateConfiguration(t,e){console.debug("updateConfiguration",t,e),this.updateState(t,e.value,e.object)},systemUpdate(){this.sendSystemCommand("systemUpdate",{}),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})},switchBranch(){this.sendSystemCommand("systemUpdate",{branch:this.$store.state.mqtt["openWB/system/current_branch"],tag:this.selectedTag}),this.$store.commit("storeLocal",{name:"reloadRequired",value:!0})}}},f=t=>(D("data-v-059847f6"),t=t(),I(),t),N={class:"system"},O=f(()=>a("h2",null,"Achtung!",-1)),R=f(()=>a("p",null," Vor allen Aktionen auf dieser Seite ist sicherzustellen, dass kein Ladevorgang aktiv ist! Zur Sicherheit bitte zusätzlich alle Fahrzeuge von der Ladestation / den Ladestationen abstecken! ",-1)),Z={key:0},G={name:"versionInfoForm"},H={class:"missing-commits"},P={class:"row justify-content-center"},J={class:"col-md-4 d-flex py-1 justify-content-center"},Q={class:"col-md-4 d-flex py-1 justify-content-center"},K={name:"powerForm"},M={class:"row justify-content-center"},X={class:"col-md-4 d-flex py-1 justify-content-center"},Y={class:"col-md-4 d-flex py-1 justify-content-center"},ee={name:"releaseChangeForm"},te=f(()=>a("br",null,null,-1)),se=f(()=>a("br",null,null,-1)),ne=f(()=>a("br",null,null,-1)),ae=f(()=>a("br",null,null,-1)),oe={class:"row justify-content-center"},re={class:"col-md-4 d-flex py-1 justify-content-center"};function le(t,e,m,w,p,r){const h=c("openwb-base-button-group-input"),u=c("openwb-base-alert"),l=c("openwb-base-text-input"),i=c("openwb-base-card"),b=c("font-awesome-icon"),_=c("openwb-base-click-button"),B=c("openwb-base-select-input");return g(),y("div",N,[s(u,{subtype:"danger"},{default:o(()=>[O,R,s(h,{title:"Ich habe die Warnung verstanden",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],modelValue:this.warningAcknowledged,"onUpdate:modelValue":e[0]||(e[0]=n=>this.warningAcknowledged=n)},null,8,["modelValue"])]),_:1}),p.warningAcknowledged?(g(),y("div",Z,[a("form",G,[s(i,{title:"Versions-Informationen / Aktualisierung",subtype:"success",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",P,[a("div",J,[s(_,{class:"btn-info",onButtonClicked:e[4]||(e[4]=n=>r.sendSystemCommand("systemFetchVersions"))},{default:o(()=>[d(" Informationen aktualisieren "),s(b,{"fixed-width":"",icon:["fas","download"]})]),_:1})]),a("div",Q,[s(_,{class:v(r.updateAvailable?"btn-success clickable":"btn-outline-success"),disabled:!r.updateAvailable,onButtonClicked:e[5]||(e[5]=n=>r.systemUpdate())},{default:o(()=>[d(" Update "),s(b,{"fixed-width":"",icon:["fas","arrow-alt-circle-up"]})]),_:1},8,["class","disabled"])])])]),default:o(()=>[s(l,{title:"Entwicklungszweig",readonly:"",modelValue:t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[1]||(e[1]=n=>t.$store.state.mqtt["openWB/system/current_branch"]=n)},null,8,["modelValue"]),s(l,{title:"installierte Version",readonly:"",class:v(r.updateAvailable?"text-danger":"text-success"),modelValue:t.$store.state.mqtt["openWB/system/current_commit"],"onUpdate:modelValue":e[2]||(e[2]=n=>t.$store.state.mqtt["openWB/system/current_commit"]=n)},null,8,["class","modelValue"]),s(l,{title:"aktuellste Version",readonly:"",modelValue:t.$store.state.mqtt["openWB/system/current_branch_commit"],"onUpdate:modelValue":e[3]||(e[3]=n=>t.$store.state.mqtt["openWB/system/current_branch_commit"]=n)},null,8,["modelValue"]),r.updateAvailable?(g(),z(i,{key:0,title:"Änderungen",subtype:"info",collapsible:!0,collapsed:!0},{default:o(()=>[a("ul",H,[(g(!0),y(F,null,T(t.$store.state.mqtt["openWB/system/current_missing_commits"],(n,V)=>(g(),y("li",{key:V},j(n),1))),128))])]),_:1})):k("v-if",!0),s(u,{subtype:"danger"},{default:o(()=>[d(" Nach einem Update wird die Ladestation direkt neu gestartet! Es werden alle eventuell vorhandenen lokalen Änderungen am Programmcode mit dem Update verworfen! ")]),_:1})]),_:1})]),a("form",K,[s(i,{title:"Betrieb",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",M,[a("div",X,[s(_,{class:"btn-warning",onButtonClicked:e[6]||(e[6]=n=>r.sendSystemCommand("systemReboot"))},{default:o(()=>[d(" Neustart "),s(b,{"fixed-width":"",icon:["fas","undo"]})]),_:1})]),a("div",Y,[s(_,{class:"btn-danger",onButtonClicked:e[7]||(e[7]=n=>r.sendSystemCommand("systemShutdown"))},{default:o(()=>[d(" Ausschalten "),s(b,{"fixed-width":"",icon:["fas","power-off"]})]),_:1})])])]),default:o(()=>[s(u,{subtype:"danger"},{default:o(()=>[d(" Wenn die Ladestation ausgeschaltet wird, muss sie komplett spannungsfrei geschaltet werden. Erst beim erneuten Zuschalten der Spannung fährt das System wieder hoch. ")]),_:1})]),_:1})]),a("form",ee,[s(i,{title:"Entwicklungszweig",subtype:"danger",collapsible:!0,collapsed:!0},{footer:o(()=>[a("div",oe,[a("div",re,[s(_,{class:v(r.releaseChangeValid?"btn-danger clickable":"btn-outline-danger"),disabled:!r.releaseChangeValid,onButtonClicked:e[10]||(e[10]=n=>r.switchBranch())},{default:o(()=>[s(b,{"fixed-width":"",icon:["fas","skull-crossbones"]}),d(" Branch und Tag wechseln "),s(b,{"fixed-width":"",icon:["fas","skull-crossbones"]})]),_:1},8,["class","disabled"])])])]),default:o(()=>[s(u,{subtype:"danger"},{default:o(()=>[d(" Nach einem Wechsel wird die Ladestation direkt neu gestartet! Es werden alle lokalen Änderungen mit dem Wechsel verworfen! ")]),_:1}),s(u,{subtype:"warning"},{default:o(()=>[d(" Bevor auf einen neuen Entwicklungszweig gewechselt wird sollte immer eine Sicherung erstellt werden! Es kann zwar wieder auf eine ältere Version gewechselt werden, jedoch ist nicht sichergestellt, dass es dabei keine Probleme gibt. Gerade wenn das Datenformat in der neuen Version angepasst wurde, wird eine ältere damit Fehler produzieren."),te,d(' Für den normalen Betrieb wird der Zweig "Release" empfohlen. Der Softwarestand wurde ausgiebig getestet, sodass ein Fehlverhalten relativ unwahrscheinlich ist.'),se,d(' Der "Beta" Zweig beinhaltet Vorabversionen, bei denen die Entwicklung soweit abgeschlossen ist. Die enthaltenen Anpassungen wurden rudimentär getestet, können aber durchaus noch Fehler enthalten.'),ne,d(' Die aktuelle Softwareentwicklung findet im Zweig "master" statt. Die enthaltenen Anpassungen sind teilweise noch nicht getestet und enthalten potentiell Fehler.'),ae,d(' Einträge, die mit "feature" beginnen, sind experimentelle Entwicklungszweige, die nicht für den allgemeinen Gebrauch gedacht sind. ')]),_:1}),s(B,{title:"Entwicklungszweig",groups:r.getBranchGroups(),"model-value":t.$store.state.mqtt["openWB/system/current_branch"],"onUpdate:modelValue":e[8]||(e[8]=n=>t.updateState("openWB/system/current_branch",n))},null,8,["groups","model-value"]),s(B,{title:"Tag",options:r.getBranchTagOptions(),modelValue:p.selectedTag,"onUpdate:modelValue":e[9]||(e[9]=n=>p.selectedTag=n)},null,8,["options","modelValue"])]),_:1})])])):k("v-if",!0)])}const be=U(L,[["render",le],["__scopeId","data-v-059847f6"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/System.vue"]]);export{be as default};
diff --git a/web/settings/assets/TestingStore-082dc7f3.js b/web/settings/assets/TestingStore-1048cc3b.js
similarity index 95%
rename from web/settings/assets/TestingStore-082dc7f3.js
rename to web/settings/assets/TestingStore-1048cc3b.js
index 5ae9632f4e..1366880435 100644
--- a/web/settings/assets/TestingStore-082dc7f3.js
+++ b/web/settings/assets/TestingStore-1048cc3b.js
@@ -1 +1 @@
-import{C as h}from"./index-cbcca7a0.js";import{S as y}from"./OpenwbSortableList-8561f9a9.js";import{_ as U,p as s,k as T,l as E,q as p,A as o,L as a,u as n,x as v,z as _}from"./vendor-94ac8c48.js";import"./vendor-fortawesome-ad83e535.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";const N={name:"OpenwbTestingStore",mixins:[h],components:{SortableList:y},data(){return{mqttTopicsToSubscribe:[]}}},k={class:"testingStore"},O={name:"testingStoreForm"},Z=p("hr",null,null,-1),j=p("hr",null,null,-1),L=p("hr",null,null,-1),J=p("hr",null,null,-1),D=p("hr",null,null,-1),z=p("span",{style:{"text-decoration":"underline","font-style":"italic"}},[n(" Styled "),p("span",{style:{"font-weight":"initial"}},"Header"),n(" Slot ")],-1);function B(e,t,G,R,A,C){const u=s("openwb-base-text-input"),d=s("openwb-base-number-input"),f=s("openwb-base-textarea"),i=s("openwb-base-card"),r=s("openwb-base-range-input"),b=s("openwb-base-select-input"),g=s("openwb-base-button-group-input"),S=s("openwb-base-checkbox-input"),x=s("openwb-base-array-input"),w=s("openwb-base-heading"),m=s("openwb-base-alert"),$=s("sortable-list"),V=s("openwb-base-submit-buttons");return T(),E("div",k,[p("form",O,[o(i,{title:"Einfache Eingabefelder"},{default:a(()=>[o(u,{title:"1. Text","model-value":e.$store.state.examples.text1,"onUpdate:modelValue":t[0]||(t[0]=l=>e.updateState("text1",l))},{help:a(()=>[n("Einfacher Text")]),_:1},8,["model-value"]),o(u,{title:"2. Text (E-Mail)",subtype:"email","model-value":e.$store.state.examples.text2,"onUpdate:modelValue":t[1]||(t[1]=l=>e.updateState("text2",l))},{help:a(()=>[n("Eingabefeld für E-Mailadressen")]),_:1},8,["model-value"]),o(u,{title:"3. Text (Host)",subtype:"host","model-value":e.$store.state.examples.text3,"onUpdate:modelValue":t[2]||(t[2]=l=>e.updateState("text3",l))},{help:a(()=>[n(" Eingabefeld für Hosts (IP oder Namen) ")]),_:1},8,["model-value"]),o(u,{title:"4. Text (URL)",subtype:"url","model-value":e.$store.state.examples.text4,"onUpdate:modelValue":t[3]||(t[3]=l=>e.updateState("text4",l))},{help:a(()=>[n("Eingabefeld für URLs")]),_:1},8,["model-value"]),o(u,{title:"5. Text (User)",subtype:"user","model-value":e.$store.state.examples.text5,"onUpdate:modelValue":t[4]||(t[4]=l=>e.updateState("text5",l))},{help:a(()=>[n("Eingabefeld für Benutzernamen")]),_:1},8,["model-value"]),o(u,{title:"6. Text (Time)",subtype:"time","model-value":e.$store.state.examples.text6,"onUpdate:modelValue":t[5]||(t[5]=l=>e.updateState("text6",l))},{help:a(()=>[n("Eingabefeld für Zeiten")]),_:1},8,["model-value"]),o(u,{title:"7. Text (Date)",subtype:"date","model-value":e.$store.state.examples.text7,"onUpdate:modelValue":t[6]||(t[6]=l=>e.updateState("text7",l))},{help:a(()=>[n("Eingabefeld für ein Datum")]),_:1},8,["model-value"]),Z,o(d,{title:"1. Zahl",min:5,max:9,step:2,unit:"kW","model-value":e.$store.state.examples.number1,"onUpdate:modelValue":t[7]||(t[7]=l=>e.updateState("number1",l))},{help:a(()=>[n("Zahl mit Einheit")]),_:1},8,["model-value"]),o(d,{title:"2. Zahl",min:10,max:32,step:2,"model-value":e.$store.state.examples.number2,"onUpdate:modelValue":t[8]||(t[8]=l=>e.updateState("number2",l))},{help:a(()=>[n("Eingabefeld für Zahlen ohne Einheit")]),_:1},8,["model-value"]),o(u,{title:"1. Passwort",subtype:"password","model-value":e.$store.state.examples.password1,"onUpdate:modelValue":t[9]||(t[9]=l=>e.updateState("password1",l))},{help:a(()=>[n(" Das Passwort kann per Klick auf das Auge angezeigt werden. ")]),_:1},8,["model-value"]),j,o(f,{title:"1. Textarea",maxlength:"50","model-value":e.$store.state.examples.textarea1,"onUpdate:modelValue":t[10]||(t[10]=l=>e.updateState("textarea1",l))},{help:a(()=>[n(" Textarea mit maximaler Länge von 50 Zeichen. ")]),_:1},8,["model-value"])]),_:1}),o(i,{title:"Spezielle Elemente"},{default:a(()=>[o(r,{title:"1. Range",min:6,max:32,step:1,unit:"A","model-value":e.$store.state.examples.range1,"onUpdate:modelValue":t[11]||(t[11]=l=>e.updateState("range1",l))},{help:a(()=>[n("Range ohne spezielle Labels")]),_:1},8,["model-value"]),o(r,{title:"2. Range",min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":e.$store.state.examples.range2,"onUpdate:modelValue":t[12]||(t[12]=l=>e.updateState("range2",l))},{help:a(()=>[n("Range mit speziellen Labels")]),_:1},8,["model-value"]),L,o(b,{title:"1. Select",notSelected:"Bitte auswählen",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}],"model-value":e.$store.state.examples.select1,"onUpdate:modelValue":t[13]||(t[13]=l=>e.updateState("select1",l))},{help:a(()=>[n("Select mit einfachen Optionen")]),_:1},8,["model-value"]),o(b,{title:"2. Select",groups:[{label:"Gruppe 1 (Number)",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}]},{label:"Gruppe 2 (String)",options:[{value:"three",text:"Drei"},{value:"four",text:"Vier"}]}],"model-value":e.$store.state.examples.select2,"onUpdate:modelValue":t[14]||(t[14]=l=>e.updateState("select2",l))},{help:a(()=>[n("Select mit Gruppen")]),_:1},8,["groups","model-value"]),J,o(g,{title:"1. Button-Group",buttons:[{buttonValue:1,text:"Eins"},{buttonValue:2,text:"Zwei"}],"model-value":e.$store.state.examples.buttonGroup1,"onUpdate:modelValue":t[15]||(t[15]=l=>e.updateState("buttonGroup1",l))},{help:a(()=>[n("Hilfetext")]),_:1},8,["model-value"]),D,o(S,{title:"1. Checkbox","model-value":e.$store.state.examples.checkbox1,"onUpdate:modelValue":t[16]||(t[16]=l=>e.updateState("checkbox1",l))},{help:a(()=>[n("Hilfetext")]),_:1},8,["model-value"])]),_:1}),o(i,{title:"JSON Gruppe"},{default:a(()=>[o(u,{title:"JSON 1",subtype:"json","model-value":e.$store.state.examples.json1,"onUpdate:modelValue":t[17]||(t[17]=l=>e.updateState("json1",l))},{help:a(()=>[n("JSON Objekt")]),_:1},8,["model-value"]),o(u,{title:"JSON 1 Text","model-value":e.$store.state.examples.json1.text,"onUpdate:modelValue":t[18]||(t[18]=l=>e.updateState("json1",l,"text"))},{help:a(()=>[n("Text im JSON Objekt")]),_:1},8,["model-value"]),o(d,{title:"JSON 1 Zahl","model-value":e.$store.state.examples.json1.number,"onUpdate:modelValue":t[19]||(t[19]=l=>e.updateState("json1",l,"number"))},{help:a(()=>[n("Zahl im JSON Objekt")]),_:1},8,["model-value"]),o(x,{title:"Tag Array","model-value":e.$store.state.examples.tags,"onUpdate:modelValue":t[20]||(t[20]=l=>e.updateState("tags",l))},{help:a(()=>[p("pre",null,v(JSON.stringify(e.$store.state.examples.tags,void 0,2)),1)]),_:1},8,["model-value"])]),_:1}),o(i,{title:"Meldungen"},{header:a(()=>[z]),default:a(()=>[o(w,null,{help:a(()=>[n(" Es sind auch Hilfetexte im #help Slot möglich. ")]),default:a(()=>[n(" Das ist eine Überschrift ")]),_:1}),o(m,null,{default:a(()=>[n(" Meldung ohne speziellen Subtype. ")]),_:1}),o(m,{subtype:"info"},{default:a(()=>[n("Infomeldung")]),_:1}),o(m,{subtype:"warning"},{default:a(()=>[n("Warnmeldung")]),_:1}),o(m,{subtype:"danger"},{default:a(()=>[n(" Fehlermeldung ")]),_:1})]),_:1}),o(i,{title:"Listen"},{default:a(()=>[_(" ToDo: Fix: nested lists bypass store commits! "),o($,{title:"Liste 1",modelValue:e.$store.state.examples.hierarchy1,"onUpdate:modelValue":t[21]||(t[21]=l=>e.$store.state.examples.hierarchy1=l),labels:e.$store.state.examples.hierarchy1Labels},{help:a(()=>[p("pre",null,v(JSON.stringify(e.$store.state.examples.hierarchy1,void 0,2)),1)]),_:1},8,["modelValue","labels"])]),_:1}),o(V,{formName:"testingStoreForm",onSave:t[22]||(t[22]=l=>e.$emit("save")),onReset:t[23]||(t[23]=l=>e.$emit("reset")),onDefaults:t[24]||(t[24]=l=>e.$emit("defaults"))})])])}const Q=U(N,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/TestingStore.vue"]]);export{Q as default};
+import{C as h}from"./index-f08a7306.js";import{S as y}from"./OpenwbSortableList-ac8ac331.js";import{_ as U,p as s,k as T,l as E,q as p,A as o,L as a,u as n,x as v,z as _}from"./vendor-20bb207d.js";import"./vendor-fortawesome-838df0c9.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";const N={name:"OpenwbTestingStore",mixins:[h],components:{SortableList:y},data(){return{mqttTopicsToSubscribe:[]}}},k={class:"testingStore"},O={name:"testingStoreForm"},Z=p("hr",null,null,-1),j=p("hr",null,null,-1),L=p("hr",null,null,-1),J=p("hr",null,null,-1),D=p("hr",null,null,-1),z=p("span",{style:{"text-decoration":"underline","font-style":"italic"}},[n(" Styled "),p("span",{style:{"font-weight":"initial"}},"Header"),n(" Slot ")],-1);function B(e,t,G,R,A,C){const u=s("openwb-base-text-input"),d=s("openwb-base-number-input"),f=s("openwb-base-textarea"),i=s("openwb-base-card"),r=s("openwb-base-range-input"),b=s("openwb-base-select-input"),g=s("openwb-base-button-group-input"),S=s("openwb-base-checkbox-input"),x=s("openwb-base-array-input"),w=s("openwb-base-heading"),m=s("openwb-base-alert"),$=s("sortable-list"),V=s("openwb-base-submit-buttons");return T(),E("div",k,[p("form",O,[o(i,{title:"Einfache Eingabefelder"},{default:a(()=>[o(u,{title:"1. Text","model-value":e.$store.state.examples.text1,"onUpdate:modelValue":t[0]||(t[0]=l=>e.updateState("text1",l))},{help:a(()=>[n("Einfacher Text")]),_:1},8,["model-value"]),o(u,{title:"2. Text (E-Mail)",subtype:"email","model-value":e.$store.state.examples.text2,"onUpdate:modelValue":t[1]||(t[1]=l=>e.updateState("text2",l))},{help:a(()=>[n("Eingabefeld für E-Mailadressen")]),_:1},8,["model-value"]),o(u,{title:"3. Text (Host)",subtype:"host","model-value":e.$store.state.examples.text3,"onUpdate:modelValue":t[2]||(t[2]=l=>e.updateState("text3",l))},{help:a(()=>[n(" Eingabefeld für Hosts (IP oder Namen) ")]),_:1},8,["model-value"]),o(u,{title:"4. Text (URL)",subtype:"url","model-value":e.$store.state.examples.text4,"onUpdate:modelValue":t[3]||(t[3]=l=>e.updateState("text4",l))},{help:a(()=>[n("Eingabefeld für URLs")]),_:1},8,["model-value"]),o(u,{title:"5. Text (User)",subtype:"user","model-value":e.$store.state.examples.text5,"onUpdate:modelValue":t[4]||(t[4]=l=>e.updateState("text5",l))},{help:a(()=>[n("Eingabefeld für Benutzernamen")]),_:1},8,["model-value"]),o(u,{title:"6. Text (Time)",subtype:"time","model-value":e.$store.state.examples.text6,"onUpdate:modelValue":t[5]||(t[5]=l=>e.updateState("text6",l))},{help:a(()=>[n("Eingabefeld für Zeiten")]),_:1},8,["model-value"]),o(u,{title:"7. Text (Date)",subtype:"date","model-value":e.$store.state.examples.text7,"onUpdate:modelValue":t[6]||(t[6]=l=>e.updateState("text7",l))},{help:a(()=>[n("Eingabefeld für ein Datum")]),_:1},8,["model-value"]),Z,o(d,{title:"1. Zahl",min:5,max:9,step:2,unit:"kW","model-value":e.$store.state.examples.number1,"onUpdate:modelValue":t[7]||(t[7]=l=>e.updateState("number1",l))},{help:a(()=>[n("Zahl mit Einheit")]),_:1},8,["model-value"]),o(d,{title:"2. Zahl",min:10,max:32,step:2,"model-value":e.$store.state.examples.number2,"onUpdate:modelValue":t[8]||(t[8]=l=>e.updateState("number2",l))},{help:a(()=>[n("Eingabefeld für Zahlen ohne Einheit")]),_:1},8,["model-value"]),o(u,{title:"1. Passwort",subtype:"password","model-value":e.$store.state.examples.password1,"onUpdate:modelValue":t[9]||(t[9]=l=>e.updateState("password1",l))},{help:a(()=>[n(" Das Passwort kann per Klick auf das Auge angezeigt werden. ")]),_:1},8,["model-value"]),j,o(f,{title:"1. Textarea",maxlength:"50","model-value":e.$store.state.examples.textarea1,"onUpdate:modelValue":t[10]||(t[10]=l=>e.updateState("textarea1",l))},{help:a(()=>[n(" Textarea mit maximaler Länge von 50 Zeichen. ")]),_:1},8,["model-value"])]),_:1}),o(i,{title:"Spezielle Elemente"},{default:a(()=>[o(r,{title:"1. Range",min:6,max:32,step:1,unit:"A","model-value":e.$store.state.examples.range1,"onUpdate:modelValue":t[11]||(t[11]=l=>e.updateState("range1",l))},{help:a(()=>[n("Range ohne spezielle Labels")]),_:1},8,["model-value"]),o(r,{title:"2. Range",min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":e.$store.state.examples.range2,"onUpdate:modelValue":t[12]||(t[12]=l=>e.updateState("range2",l))},{help:a(()=>[n("Range mit speziellen Labels")]),_:1},8,["model-value"]),L,o(b,{title:"1. Select",notSelected:"Bitte auswählen",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}],"model-value":e.$store.state.examples.select1,"onUpdate:modelValue":t[13]||(t[13]=l=>e.updateState("select1",l))},{help:a(()=>[n("Select mit einfachen Optionen")]),_:1},8,["model-value"]),o(b,{title:"2. Select",groups:[{label:"Gruppe 1 (Number)",options:[{value:1,text:"Eins"},{value:2,text:"Zwei"}]},{label:"Gruppe 2 (String)",options:[{value:"three",text:"Drei"},{value:"four",text:"Vier"}]}],"model-value":e.$store.state.examples.select2,"onUpdate:modelValue":t[14]||(t[14]=l=>e.updateState("select2",l))},{help:a(()=>[n("Select mit Gruppen")]),_:1},8,["groups","model-value"]),J,o(g,{title:"1. Button-Group",buttons:[{buttonValue:1,text:"Eins"},{buttonValue:2,text:"Zwei"}],"model-value":e.$store.state.examples.buttonGroup1,"onUpdate:modelValue":t[15]||(t[15]=l=>e.updateState("buttonGroup1",l))},{help:a(()=>[n("Hilfetext")]),_:1},8,["model-value"]),D,o(S,{title:"1. Checkbox","model-value":e.$store.state.examples.checkbox1,"onUpdate:modelValue":t[16]||(t[16]=l=>e.updateState("checkbox1",l))},{help:a(()=>[n("Hilfetext")]),_:1},8,["model-value"])]),_:1}),o(i,{title:"JSON Gruppe"},{default:a(()=>[o(u,{title:"JSON 1",subtype:"json","model-value":e.$store.state.examples.json1,"onUpdate:modelValue":t[17]||(t[17]=l=>e.updateState("json1",l))},{help:a(()=>[n("JSON Objekt")]),_:1},8,["model-value"]),o(u,{title:"JSON 1 Text","model-value":e.$store.state.examples.json1.text,"onUpdate:modelValue":t[18]||(t[18]=l=>e.updateState("json1",l,"text"))},{help:a(()=>[n("Text im JSON Objekt")]),_:1},8,["model-value"]),o(d,{title:"JSON 1 Zahl","model-value":e.$store.state.examples.json1.number,"onUpdate:modelValue":t[19]||(t[19]=l=>e.updateState("json1",l,"number"))},{help:a(()=>[n("Zahl im JSON Objekt")]),_:1},8,["model-value"]),o(x,{title:"Tag Array","model-value":e.$store.state.examples.tags,"onUpdate:modelValue":t[20]||(t[20]=l=>e.updateState("tags",l))},{help:a(()=>[p("pre",null,v(JSON.stringify(e.$store.state.examples.tags,void 0,2)),1)]),_:1},8,["model-value"])]),_:1}),o(i,{title:"Meldungen"},{header:a(()=>[z]),default:a(()=>[o(w,null,{help:a(()=>[n(" Es sind auch Hilfetexte im #help Slot möglich. ")]),default:a(()=>[n(" Das ist eine Überschrift ")]),_:1}),o(m,null,{default:a(()=>[n(" Meldung ohne speziellen Subtype. ")]),_:1}),o(m,{subtype:"info"},{default:a(()=>[n("Infomeldung")]),_:1}),o(m,{subtype:"warning"},{default:a(()=>[n("Warnmeldung")]),_:1}),o(m,{subtype:"danger"},{default:a(()=>[n(" Fehlermeldung ")]),_:1})]),_:1}),o(i,{title:"Listen"},{default:a(()=>[_(" ToDo: Fix: nested lists bypass store commits! "),o($,{title:"Liste 1",modelValue:e.$store.state.examples.hierarchy1,"onUpdate:modelValue":t[21]||(t[21]=l=>e.$store.state.examples.hierarchy1=l),labels:e.$store.state.examples.hierarchy1Labels},{help:a(()=>[p("pre",null,v(JSON.stringify(e.$store.state.examples.hierarchy1,void 0,2)),1)]),_:1},8,["modelValue","labels"])]),_:1}),o(V,{formName:"testingStoreForm",onSave:t[22]||(t[22]=l=>e.$emit("save")),onReset:t[23]||(t[23]=l=>e.$emit("reset")),onDefaults:t[24]||(t[24]=l=>e.$emit("defaults"))})])])}const Q=U(N,[["render",B],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/TestingStore.vue"]]);export{Q as default};
diff --git a/web/settings/assets/TimeChargeConfig-6ea9f121.js b/web/settings/assets/TimeChargeConfig-3a55662f.js
similarity index 84%
rename from web/settings/assets/TimeChargeConfig-6ea9f121.js
rename to web/settings/assets/TimeChargeConfig-3a55662f.js
index 3bb32765f6..ba5e6ad509 100644
--- a/web/settings/assets/TimeChargeConfig-6ea9f121.js
+++ b/web/settings/assets/TimeChargeConfig-3a55662f.js
@@ -1 +1 @@
-import{C as l}from"./index-cbcca7a0.js";import{_,p as o,k as a,l as i,q as b,A as s,L as r,u as m}from"./vendor-94ac8c48.js";import"./vendor-fortawesome-ad83e535.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";const h={name:"OpenwbTimeChargeConfig",mixins:[l],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/time_charging/phases_to_use"]}}},c={class:"timeChargeConfig"},f={name:"timeChargeConfigForm"},v={key:0},C={key:1};function w(t,e,$,B,k,V){const u=o("openwb-base-alert"),p=o("openwb-base-button-group-input"),g=o("openwb-base-card"),d=o("openwb-base-submit-buttons");return a(),i("div",c,[b("form",f,[s(g,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(u,{subtype:"info"},{default:r(()=>[m(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",C,[s(p,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/time_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/time_charging/phases_to_use",n))},{help:r(()=>[m(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zeitladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(d,{formName:"timeChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const N=_(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/TimeChargeConfig.vue"]]);export{N as default};
+import{C as l}from"./index-f08a7306.js";import{_,p as o,k as a,l as i,q as b,A as s,L as r,u as m}from"./vendor-20bb207d.js";import"./vendor-fortawesome-838df0c9.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";const h={name:"OpenwbTimeChargeConfig",mixins:[l],data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/general/chargemode_config/time_charging/phases_to_use"]}}},c={class:"timeChargeConfig"},f={name:"timeChargeConfigForm"},v={key:0},C={key:1};function w(t,e,$,B,k,V){const u=o("openwb-base-alert"),p=o("openwb-base-button-group-input"),g=o("openwb-base-card"),d=o("openwb-base-submit-buttons");return a(),i("div",c,[b("form",f,[s(g,{title:"Phasenumschaltung"},{default:r(()=>[t.$store.state.mqtt["openWB/general/extern"]===!0?(a(),i("div",v,[s(u,{subtype:"info"},{default:r(()=>[m(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(a(),i("div",C,[s(p,{title:"Anzahl Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:3,text:"Maximum"}],"model-value":t.$store.state.mqtt["openWB/general/chargemode_config/time_charging/phases_to_use"],"onUpdate:modelValue":e[0]||(e[0]=n=>t.updateState("openWB/general/chargemode_config/time_charging/phases_to_use",n))},{help:r(()=>[m(' Hier kann eingestellt werden, ob Ladevorgänge im Modus "Zeitladen" mit nur einer Phase oder dem möglichen Maximum in Abhängigkeit der "Ladepunkt"- und "Fahrzeug"-Einstellungen durchgeführt werden. Voraussetzung ist die verbaute Umschaltmöglichkeit zwischen 1- und 3-phasig (s.g. 1p3p). ')]),_:1},8,["model-value"])]))]),_:1}),s(d,{formName:"timeChargeConfigForm",onSave:e[1]||(e[1]=n=>t.$emit("save")),onReset:e[2]||(e[2]=n=>t.$emit("reset")),onDefaults:e[3]||(e[3]=n=>t.$emit("defaults"))})])])}const N=_(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/TimeChargeConfig.vue"]]);export{N as default};
diff --git a/web/settings/assets/VehicleConfig-1e731d22.js b/web/settings/assets/VehicleConfig-2663db55.js
similarity index 94%
rename from web/settings/assets/VehicleConfig-1e731d22.js
rename to web/settings/assets/VehicleConfig-2663db55.js
index e19492da1a..dcdffee0df 100644
--- a/web/settings/assets/VehicleConfig-1e731d22.js
+++ b/web/settings/assets/VehicleConfig-2663db55.js
@@ -1 +1 @@
-import{l as $,d as H,S as j,A as J,T as G,U as Q,z as X,K as Y,X as K,I as ee,V as te,Y as ae,F as ne,W as le}from"./vendor-fortawesome-ad83e535.js";import{_ as S,C as ie}from"./index-cbcca7a0.js";import{_ as oe}from"./dynamic-import-helper-be004503.js";import{_ as D,p as V,k as r,l as g,A as a,L as n,u as l,x as k,q as c,a0 as de,y as b,a1 as re,z as s,G as B,I as A,a2 as M,n as I,Q as ue,R as se}from"./vendor-94ac8c48.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";import"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";const me={name:"VehicleConfigFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{default:void 0},vehicleType:String},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},ce={class:"vehicle-fallback"};function he(e,o,p,E,v,m){const W=V("openwb-base-alert"),f=V("openwb-base-textarea");return r(),g("div",ce,[a(W,{subtype:"warning"},{default:n(()=>[l(' Es wurde keine Konfigurationsseite für den Fahrzeug-Typ "'+k(p.vehicleType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),a(f,{title:"Konfiguration",subtype:"json","model-value":p.configuration,"onUpdate:modelValue":o[0]||(o[0]=z=>m.updateConfiguration(z,"configuration"))},{help:n(()=>[l(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),a(W,{subtype:"info"},{default:n(()=>[c("pre",null,k(JSON.stringify(p.configuration,void 0,2)),1)]),_:1})])}const ge=D(me,[["render",he],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleConfigFallback.vue"]]),pe={name:"OpenwbVehicleProxy",emits:["update:configuration"],props:{vehicleId:{required:!0},vehicleType:{type:String,required:!0},configuration:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading vehicle: ${this.vehicleType}`),de({loader:()=>oe(Object.assign({"./bmw/vehicle.vue":()=>S(()=>import("./vehicle-c865f314.js"),["assets/vehicle-c865f314.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./evnotify/vehicle.vue":()=>S(()=>import("./vehicle-2c5d967c.js"),["assets/vehicle-2c5d967c.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./http/vehicle.vue":()=>S(()=>import("./vehicle-b76d2976.js"),["assets/vehicle-b76d2976.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./kia/vehicle.vue":()=>S(()=>import("./vehicle-0247f03c.js"),["assets/vehicle-0247f03c.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./manual/vehicle.vue":()=>S(()=>import("./vehicle-189fc2cb.js"),["assets/vehicle-189fc2cb.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./mercedeseq/vehicle.vue":()=>S(()=>import("./vehicle-8bdcc244.js"),["assets/vehicle-8bdcc244.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./mqtt/vehicle.vue":()=>S(()=>import("./vehicle-6f02cb37.js"),["assets/vehicle-6f02cb37.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./psa/vehicle.vue":()=>S(()=>import("./vehicle-84dd6d0d.js"),["assets/vehicle-84dd6d0d.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./renault/vehicle.vue":()=>S(()=>import("./vehicle-174df8ec.js"),["assets/vehicle-174df8ec.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./skodaconnect/vehicle.vue":()=>S(()=>import("./vehicle-316d265a.js"),["assets/vehicle-316d265a.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./smarteq/vehicle.vue":()=>S(()=>import("./vehicle-0969da15.js"),["assets/vehicle-0969da15.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"]),"./tesla/vehicle.vue":()=>S(()=>import("./vehicle-839ee3de.js"),["assets/vehicle-839ee3de.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-axios-dc63434e.js","assets/index-cbcca7a0.js","assets/vendor-fortawesome-ad83e535.js","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/index-27f04b3e.css"]),"./vwid/vehicle.vue":()=>S(()=>import("./vehicle-f74618cf.js"),["assets/vehicle-f74618cf.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css"])}),`./${this.vehicleType}/vehicle.vue`),errorComponent:ge})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function fe(e,o,p,E,v,m){return r(),b(re(m.myComponent),{configuration:p.configuration,vehicleId:p.vehicleId,vehicleType:p.vehicleType,"onUpdate:configuration":o[0]||(o[0]=W=>m.updateConfiguration(W))},null,40,["configuration","vehicleId","vehicleType"])}const be=D(pe,[["render",fe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleProxy.vue"]]);$.add(H,j,J,G,Q,X,Y,K,ee,te,ae);const ve={name:"OpenwbVehicleConfig",mixins:[ie],emits:["sendCommand"],components:{FontAwesomeIcon:ne,FontAwesomeLayers:le,OpenwbVehicleProxy:be},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/rfid/active","openWB/vehicle/template/ev_template/+","openWB/vehicle/template/charge_template/+","openWB/vehicle/template/charge_template/+/chargemode/scheduled_charging/plans/+","openWB/vehicle/template/charge_template/+/time_charging/plans/+","openWB/vehicle/+/name","openWB/vehicle/+/charge_template","openWB/vehicle/+/ev_template","openWB/vehicle/+/tag_id","openWB/system/configurable/soc_modules","openWB/vehicle/+/soc_module/config","openWB/vehicle/+/soc_module/interval_config"],showVehicleModal:!1,modalVehicleIndex:void 0,showEvTemplateModal:!1,modalEvTemplateIndex:void 0,showChargeTemplateModal:!1,modalChargeTemplateIndex:void 0,showChargeTemplateSchedulePlanModal:!1,modalChargeTemplateSchedulePlanIndex:void 0,showChargeTemplateTimeChargingPlanModal:!1,modalChargeTemplateTimeChargingPlanIndex:void 0}},computed:{vehicleIndexes:{get(){return this.getWildcardIndexList("openWB/vehicle/+/name")}},evTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/ev_template/+")}},evTemplateList:{get(){let e=[];return Object.keys(this.evTemplates).forEach(o=>{let p=parseInt(o.match(/([0-9]+)$/g)[0]),E=this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+p].name;e.push({value:p,text:E})}),e}},chargeTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/charge_template/+")}},chargeTemplateList:{get(){let e=[];return Object.keys(this.chargeTemplates).forEach(o=>{let p=parseInt(o.match(/([0-9]+)$/g)[0]),E=this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+p].name;e.push({value:p,text:E})}),e}},socModuleList:{get(){return this.$store.state.mqtt["openWB/system/configurable/soc_modules"]}}},methods:{getChargeTemplateScheduledChargingPlans(e){let o=e.match(/([^/]+)$/)[0];return this.getWildcardTopics("openWB/vehicle/template/charge_template/"+o+"/chargemode/scheduled_charging/plans/+")},getChargeTemplateTimeChargingPlans(e){let o=e.match(/([^/]+)$/)[0];return this.getWildcardTopics("openWB/vehicle/template/charge_template/"+o+"/time_charging/plans/+")},addVehicle(e){e.stopPropagation(),console.info("requesting new vehicle..."),this.$emit("sendCommand",{command:"addVehicle",data:{}})},removeVehicleModal(e,o){o.stopPropagation(),this.modalVehicleIndex=e,this.showVehicleModal=!0},removeVehicle(e,o){this.showVehicleModal=!1,o=="confirm"&&(console.info("request removal of vehicle '"+e+"'"),this.$emit("sendCommand",{command:"removeVehicle",data:{id:e}}))},getVehicleName(e){return this.$store.state.mqtt["openWB/vehicle/"+e+"/name"]?this.$store.state.mqtt["openWB/vehicle/"+e+"/name"]:"Fahrzeug "+e},getSocDefaultConfiguration(e){const o=this.socModuleList.find(p=>p.value==e);return Object.prototype.hasOwnProperty.call(o,"defaults")?{...o.defaults}:(console.warn("no default configuration found for soc type!",e),{})},updateSelectedSocModule(e,o){this.updateState("openWB/vehicle/"+e+"/soc_module/config",o,"type"),this.updateState("openWB/vehicle/"+e+"/soc_module/config",this.getSocDefaultConfiguration(o))},updateConfiguration(e,o){console.debug("updateConfiguration",e,o),this.updateState(e,o.value,o.object)},addEvTemplate(e){e.stopPropagation(),console.info("requesting new ev template..."),this.$emit("sendCommand",{command:"addEvTemplate",data:{}})},removeEvTemplateModal(e,o){o.stopPropagation(),this.modalEvTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.showEvTemplateModal=!0},removeEvTemplate(e,o){this.showEvTemplateModal=!1,o=="confirm"&&(console.info("request removal of ev template '"+e+"'"),this.$emit("sendCommand",{command:"removeEvTemplate",data:{id:e}}))},getEvTemplateName(e){return this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+e]?this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+e].name:"Fahrzeug-Profil "+e},addChargeTemplate(e){e.stopPropagation(),console.info("requesting new charge template..."),this.$emit("sendCommand",{command:"addChargeTemplate",data:{}})},getChargeTemplateIndex(e){return parseInt(e.match(/([^/]+)$/)[0])},removeChargeTemplateModal(e,o){o.stopPropagation(),this.modalChargeTemplateIndex=this.getChargeTemplateIndex(e),this.showChargeTemplateModal=!0},removeChargeTemplate(e,o){this.showChargeTemplateModal=!1,o=="confirm"&&(console.info("request removal of charge template '"+e+"'"),this.$emit("sendCommand",{command:"removeChargeTemplate",data:{id:e}}))},getChargeTemplateName(e){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e].name:"Lade-Profil "+e},getChargeTemplateSchedulePlanName(e,o){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/chargemode/scheduled_charging/plans/"+o]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/chargemode/scheduled_charging/plans/"+o].name:"Zielladen Zeitplan "+e+"/"+o},addChargeTemplateSchedulePlan(e,o){o.stopPropagation(),console.info("requesting new charge template schedule plan...");let p=parseInt(e.match(/([^/]+)$/)[0]);this.$emit("sendCommand",{command:"addChargeTemplateSchedulePlan",data:{template:p}})},removeChargeTemplateSchedulePlanModal(e,o,p){p.stopPropagation(),this.modalChargeTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.modalChargeTemplateSchedulePlanIndex=parseInt(o.match(/([^/]+)$/)[0]),this.showChargeTemplateSchedulePlanModal=!0},removeChargeTemplateSchedulePlan(e,o,p){this.showChargeTemplateSchedulePlanModal=!1,p=="confirm"&&(console.info("request removal of charge template '"+e+"' schedule plan '"+o+"'"),this.$emit("sendCommand",{command:"removeChargeTemplateSchedulePlan",data:{template:e,plan:o}}))},getChargeTemplateTimeChargingPlanName(e,o){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/time_charging/plans/"+o]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/time_charging/plans/"+o].name:"Zeitladen Zeitplan "+e+"/"+o},addChargeTemplateTimeChargingPlan(e,o){o.stopPropagation(),console.info("requesting new charge template time charging plan...");let p=parseInt(e.match(/([^/]+)$/)[0]);this.$emit("sendCommand",{command:"addChargeTemplateTimeChargingPlan",data:{template:p}})},removeChargeTemplateTimeChargingPlanModal(e,o,p){p.stopPropagation(),this.modalChargeTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.modalChargeTemplateTimeChargingPlanIndex=parseInt(o.match(/([^/]+)$/)[0]),this.showChargeTemplateTimeChargingPlanModal=!0},removeChargeTemplateTimeChargingPlan(e,o,p){this.showChargeTemplateTimeChargingPlanModal=!1,p=="confirm"&&(console.info("request removal of charge template '"+e+"' time charging plan '"+o+"'"),this.$emit("sendCommand",{command:"removeChargeTemplateTimeChargingPlan",data:{template:e,plan:o}}))}}},w=e=>(ue("data-v-d7193cf0"),e=e(),se(),e),_e={class:"vehicleConfig"},we={name:"vehicleConfigForm"},Ve={key:0},ke={key:1},Ce=w(()=>c("hr",null,null,-1)),Se={key:0},ze=w(()=>c("br",null,null,-1)),Te=["innerHTML"],Ue=w(()=>c("hr",null,null,-1)),Pe=w(()=>c("br",null,null,-1)),We=w(()=>c("br",null,null,-1)),ye=w(()=>c("br",null,null,-1)),Le={key:1},Be={key:0},Ae=w(()=>c("hr",{class:"border-secondary"},null,-1)),Ee={key:0},qe={key:1},Me={key:0},Fe={key:1},xe=w(()=>c("br",null,null,-1)),De=w(()=>c("br",null,null,-1)),Ze=w(()=>c("ol",null,[c("li",null," Zielladen (Sofortladen) mit Priorität "),c("li",null,"Zielladen (Sofortladen)"),c("li",null,"Zeitladen mit Priorität"),c("li",null,"Zeitladen"),c("li",null,"Sofortladen mit Priorität"),c("li",null,"Sofortladen"),c("li",null,"PV (Min-Anteil) mit Priorität"),c("li",null,"PV (Min-Anteil)"),c("li",null,"Zielladen (PV) mit Priorität"),c("li",null,"Zielladen (PV)"),c("li",null,"PV (PV-Anteil) mit Priorität"),c("li",null,"PV (PV-Anteil)")],-1)),Ie=w(()=>c("hr",null,null,-1)),Ne=w(()=>c("hr",null,null,-1)),Oe=w(()=>c("br",null,null,-1)),Re=w(()=>c("br",null,null,-1)),$e=w(()=>c("hr",null,null,-1)),He=w(()=>c("br",null,null,-1)),je=w(()=>c("br",null,null,-1)),Je={key:0},Ge={key:1},Qe={key:2},Xe={key:3},Ye={key:4},Ke={key:4},et=w(()=>c("hr",null,null,-1)),tt={key:0},at={key:1},nt={key:2},lt={key:3},it={key:4},ot={key:4};function dt(e,o,p,E,v,m){const W=V("openwb-base-modal-dialog"),f=V("font-awesome-icon"),z=V("openwb-base-avatar"),q=V("openwb-base-alert"),T=V("openwb-base-text-input"),F=V("openwb-base-select-input"),N=V("openwb-base-array-input"),O=V("openwb-vehicle-proxy"),y=V("openwb-base-heading"),U=V("openwb-base-number-input"),_=V("openwb-base-button-group-input"),L=V("openwb-base-card"),Z=V("font-awesome-layers"),C=V("openwb-base-range-input"),R=V("openwb-base-submit-buttons");return r(),g(B,null,[s(" modal dialogs "),a(W,{show:v.showVehicleModal,title:"Fahrzeug löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[0]||(o[0]=i=>m.removeVehicle(v.modalVehicleIndex,i))},{default:n(()=>[l(' Wollen Sie das Fahrzeug "'+k(m.getVehicleName(v.modalVehicleIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),a(W,{show:v.showEvTemplateModal,title:"Fahrzeug-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[1]||(o[1]=i=>m.removeEvTemplate(v.modalEvTemplateIndex,i))},{default:n(()=>[l(' Wollen Sie das Fahrzeug-Profil "'+k(m.getEvTemplateName(v.modalEvTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),a(W,{show:v.showChargeTemplateModal,title:"Lade-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[2]||(o[2]=i=>m.removeChargeTemplate(v.modalChargeTemplateIndex,i))},{default:n(()=>[l(' Wollen Sie das Lade-Profil "'+k(m.getChargeTemplateName(v.modalChargeTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),a(W,{show:v.showChargeTemplateSchedulePlanModal,title:"Zielladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[3]||(o[3]=i=>m.removeChargeTemplateSchedulePlan(v.modalChargeTemplateIndex,v.modalChargeTemplateSchedulePlanIndex,i))},{default:n(()=>[l(' Wollen Sie den Zielladen Zeitplan "'+k(m.getChargeTemplateSchedulePlanName(v.modalChargeTemplateIndex,v.modalChargeTemplateSchedulePlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),a(W,{show:v.showChargeTemplateTimeChargingPlanModal,title:"Zeitladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[4]||(o[4]=i=>m.removeChargeTemplateTimeChargingPlan(v.modalChargeTemplateIndex,v.modalChargeTemplateTimeChargingPlanIndex,i))},{default:n(()=>[l(' Wollen Sie den Zeitladen Zeitplan "'+k(m.getChargeTemplateTimeChargingPlanName(v.modalChargeTemplateIndex,v.modalChargeTemplateTimeChargingPlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),s(" main content "),c("div",_e,[c("form",we,[s(" vehicle card "),a(L,{subtype:"info",collapsible:!0,collapsed:e.$route.params.section!="vehicle"},{header:n(()=>[a(f,{"fixed-width":"",icon:["fas","car"]}),l(" Fahrzeuge ")]),actions:n(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),b(z,{key:0,class:"bg-success clickable",onClick:m.addVehicle},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):s("v-if",!0)]),default:n(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),g("div",Ve,[a(q,{subtype:"info"},{default:n(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),g("div",ke,[(r(!0),g(B,null,A(m.vehicleIndexes,i=>(r(),b(L,{key:i,title:m.getVehicleName(i),collapsible:!0,collapsed:!(e.$route.params.section=="vehicle"&&parseInt(e.$route.params.section_index)==i),subtype:"info"},M({default:n(()=>[a(T,{title:"Bezeichnung","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/name"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/name",d),disabled:i===0},M({_:2},[i===0?{name:"help",fn:n(()=>[l(" Das Standard-Fahrzeug kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),a(q,{subtype:"info"},{default:n(()=>[l(" Ein anderes Fahrzeug-Profil wird erst NACH dem Abstecken übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ")]),_:1}),a(F,{title:"Fahrzeug-Profil",options:m.evTemplateList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/ev_template"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/ev_template",d)},null,8,["options","model-value","onUpdate:modelValue"]),a(F,{title:"Lade-Profil",options:m.chargeTemplateList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/charge_template"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/charge_template",d)},null,8,["options","model-value","onUpdate:modelValue"]),Ce,e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(r(),g("div",Se,[a(N,{title:"Zugeordnete Tags","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/tag_id"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/tag_id",d)},null,8,["model-value","onUpdate:modelValue"]),a(q,{subtype:"info"},{default:n(()=>[l(" Der/die RFID-Tag(s) müssen in dem Ladepunkt-Profil eingetragen werden, um zuzuordnen, an welchem Ladepunkt die Tags verwendet werden dürfen."),ze,c("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,Te)]),_:1}),Ue])):s("v-if",!0),a(F,{class:"mb-2",title:"SoC-Modul",options:m.socModuleList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].type,"onUpdate:modelValue":d=>m.updateSelectedSocModule(i,d)},{help:n(()=>[l(" Mit einem SoC-Modul kann der Ladestand des Fahrzeugs ermittelt und geregelt werden. Z.B. lassen sich unabhängig vom Fahrzeug bestimmte SoC-Werte einstellen, um den Fahrzeugakku zu schonen. Aktuell werden die SoC-Werte mittels der App-Zugangsdaten aus dem Herstellerserver des Fahrzeuges ausgelesen. Zukünftig soll auch eine direkte SoC-Auslesung aus dem Fahrzeug möglich werden (openWB Pro)."),Pe,l(" Die SoC-Abfrage erfolgt automatisch beim Anstecken des Fahrzeuges und zusätzlich über einstellbare Abfrageintervalle während des Ladens und Nichtladens. Die Abfrage kann auch manuell durch Klick auf den Reload-Pfeil auf der Hauptseite ausgelöst werden."),We,l(" Wenn eine Abfrage fehlschlägt, wird noch drei weitere Male im Abstand von 5 Minuten versucht, den SoC abzufragen. Wenn dies nicht erfolgreich ist, wird der SoC auf 0% gesetzt um zu vermeiden, dass ein Auto beim SoC-basierten Laden nicht geladen wird. Die Abfrage erfolgt dann wieder in den oben genannten Intervallen."),ye,l(" Da aktuell die SoC-Abfragen über Onlineserver der Fahrzeughersteller laufen, ist infolge möglicher Umstellungen/Wartungen keine 100%-ig sichere SoC-Abfrage garantiert. Auch kann es zu SoC-Abweichungen infolge von zeitlicher Verzögerungen kommen. Hilfestellung erfolgt primär im openWB-Forum. ")]),_:2},1032,["options","model-value","onUpdate:modelValue"]),e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].type?(r(),g("div",Le,[a(O,{vehicleId:i,vehicleType:e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].type,configuration:e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].configuration,"onUpdate:configuration":d=>m.updateConfiguration("openWB/vehicle/"+i+"/soc_module/config",d)},null,8,["vehicleId","vehicleType","configuration","onUpdate:configuration"]),e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/interval_config"]?(r(),g("div",Be,[a(y,null,{help:n(()=>[l(" Einige Hersteller begrenzen die möglichen Abfragen. Sobald ein gewisses Limit in einem Zeitraum überschritten wird, werden weitere Anfragen blockiert. Die Zeitintervalle sollten daher nicht zu klein gewählt werden. ")]),default:n(()=>[l(" Aktualisierung der Fahrzeugdaten ")]),_:1}),a(U,{title:"Während der Ladung",unit:"Min.","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/interval_config"].request_interval_charging,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/interval_config",d,"request_interval_charging")},{help:n(()=>[l(" Der Ladestand des Fahrzeugs (SoC) wird bei einem laufenden Ladevorgang in dem hier eingestellten Intervall in Minuten abgefragt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(U,{title:"Ohne laufende Ladung",unit:"Min.","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/interval_config"].request_interval_not_charging,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/interval_config",d,"request_interval_not_charging")},{help:n(()=>[l(" Der Ladestand des Fahrzeugs (SoC) wird in dem hier eingestellten Intervall in Minuten abgefragt, falls kein Ladevorgang aktiv ist. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Nur aktualisieren wenn angesteckt",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/interval_config"].request_only_plugged,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/interval_config",d,"request_only_plugged")},{help:n(()=>[l(' Wird hier "Ja" ausgewählt, dann wird der Ladestand des Fahrzeugs nur abgefragt, wenn das Ladekabel angesteckt ist. ')]),_:2},1032,["model-value","onUpdate:modelValue"])])):s("v-if",!0)])):s("v-if",!0)]),_:2},[i!==0?{name:"actions",fn:n(d=>[d.collapsed?s("v-if",!0):(r(),b(z,{key:0,class:"bg-danger clickable",onClick:t=>m.removeVehicleModal(i,t)},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}:void 0]),1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),Ae,a(y,null,{default:n(()=>[l("Profile")]),_:1}),s(" vehicle template card "),a(L,{collapsible:!0,collapsed:!0},{header:n(()=>[a(Z,{"fixed-width":"",class:"fa-lg"},{default:n(()=>[a(f,{"fixed-width":"",icon:["far","file"]}),a(f,{"fixed-width":"",icon:["fas","car"],transform:"shrink-8"})]),_:1}),l(" Fahrzeug-Profile ")]),actions:n(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),b(z,{key:0,class:"bg-success clickable",onClick:m.addEvTemplate},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):s("v-if",!0)]),default:n(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),g("div",Ee,[a(q,{subtype:"info"},{default:n(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),g("div",qe,[a(q,{subtype:"info"},{default:n(()=>[l(" Ein anderes Fahrzeug-Profil wird erst NACH dem Abstecken übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ")]),_:1}),(r(!0),g(B,null,A(m.evTemplates,(i,d)=>(r(),b(L,{key:d,title:i.name?i.name:d,collapsible:!0,collapsed:!0},M({default:n(()=>[a(T,{title:"Bezeichnung","model-value":i.name,"onUpdate:modelValue":t=>e.updateState(d,t,"name"),disabled:d.endsWith("/0")},M({_:2},[d.endsWith("/0")?{name:"help",fn:n(()=>[l(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),a(y,null,{default:n(()=>[l(" Angaben zum Ladestrom ")]),_:1}),a(C,{title:"Mindeststrom",min:6,max:16,step:1,unit:"A","model-value":i.min_current,"onUpdate:modelValue":t=>e.updateState(d,t,"min_current")},null,8,["model-value","onUpdate:modelValue"]),a(C,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":i.max_current_single_phase,"onUpdate:modelValue":t=>e.updateState(d,t,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),a(C,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":i.max_current_multi_phases,"onUpdate:modelValue":t=>e.updateState(d,t,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"]),a(U,{title:"Erlaubte Stromabweichung",step:.1,unit:"A","model-value":i.nominal_difference,"onUpdate:modelValue":t=>e.updateState(d,t,"nominal_difference")},{help:n(()=>[l(" In manchen Lademodi, z.B. bei der automatischen Phasenumschaltung, wird geprüft, ob das Fahrzeug mit der vorgegebenen Stromstärke lädt. Manche Fahrzeuge laden nicht exakt mit der vorgegebenen Stromstärke. Die erlaubte Abweichung kann hier eingestellt werden. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(y,null,{default:n(()=>[l(" Angaben zur Batterie ")]),_:1}),a(U,{title:"Kapazität der Batterie",unit:"kWh",min:10,step:1,"model-value":i.battery_capacity/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"battery_capacity")},{help:n(()=>[l(" Angabe der Netto-Kapazität der Fahrzeugbatterie. Dient zur Berechnung des manuellen SoC und der geladenen Reichweite. Die Netto-Kapazität unterscheidet sich meist von den Angaben der Fahrzeughersteller. So besitzt ein Tesla Model S 90 z. B. nur ca. 83kWh und nicht die durch die Typenbezeichnung suggerierten 90kWh. Andere Hersteller begrenzen die nutzbare Kapazität absichtlich, um eine höhere Lebensdauer der Akkus zu erreichen. Gängig sind eine Drosselung auf 90% der angegebenen Brutto-Kapazität. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(U,{title:"Durchschnittsverbrauch",unit:"kWh / 100km",min:0,step:.1,"model-value":i.average_consump/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"average_consump")},null,8,["model-value","onUpdate:modelValue"]),a(y,null,{default:n(()=>[l(" Angaben zur Handhabung von Phasen ")]),_:1}),a(_,{title:"Unterstützte Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":i.max_phases,"onUpdate:modelValue":t=>e.updateState(d,t,"max_phases")},{help:n(()=>[l(" Anzahl der Phasen, die der Fahrzeuglader (s.g. OBC - OnboardCharger) bereitstellt. Plugin-Hybride haben meist nur eine Phase, reine E-Autos meist 2 bis 3 Phasen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"CP-Unterbrechung",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.control_pilot_interruption,"onUpdate:modelValue":t=>e.updateState(d,t,"control_pilot_interruption")},{help:n(()=>[l(' Erläuterung siehe "Konfiguration - Ladepunkte" -> Hardware-Optionen ')]),_:2},1032,["model-value","onUpdate:modelValue"]),i.control_pilot_interruption?(r(),b(U,{key:0,title:"Dauer der CP-Unterbrechung",min:4,step:1,unit:"s","model-value":i.control_pilot_interruption_duration,"onUpdate:modelValue":t=>e.updateState(d,t,"control_pilot_interruption_duration")},null,8,["model-value","onUpdate:modelValue"])):s("v-if",!0),a(_,{title:"Phasenumschaltung blockieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.prevent_phase_switch,"onUpdate:modelValue":t=>e.updateState(d,t,"prevent_phase_switch")},{help:n(()=>[l(' Erläuterung zu 1p3p siehe "Ladeeinstellungen" ')]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Ladung aktiv halten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.prevent_charge_stop,"onUpdate:modelValue":t=>e.updateState(d,t,"prevent_charge_stop")},{help:n(()=>[l(" In den Lademodi PV- und Zielladen wird die Abschaltverzögerung ausgesetzt und nach Ladebeginn der Ladevorgang nicht unterbrochen. Diese Einstellung sollte bei Fahrzeugen aktiviert werden, die nach Unterbrechen der Ladung keine Ladung mehr starten. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(U,{title:"Pause bei Phasenumschaltung",unit:"s",min:2,step:1,"model-value":i.phase_switch_pause,"onUpdate:modelValue":t=>e.updateState(d,t,"phase_switch_pause")},null,8,["model-value","onUpdate:modelValue"]),a(U,{title:"Mindestzeit zwischen Umschaltungen",unit:"s",min:2,step:1,"model-value":i.keep_charge_active_duration,"onUpdate:modelValue":t=>e.updateState(d,t,"keep_charge_active_duration")},{help:n(()=>[l(" Manche Fahrzeuge benötigen nach der Umschaltung einige Zeit, bis sie mit der vorgegebenen Phasenzahl laden. In dieser Zeit wird keine neue Phasenumschaltung angestoßen. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},[d.endsWith("/0")?void 0:{name:"actions",fn:n(t=>[e.$store.state.mqtt["openWB/general/extern"]===!1&&!t.collapsed?(r(),b(z,{key:0,class:"bg-danger clickable",onClick:h=>m.removeEvTemplateModal(d,h)},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):s("v-if",!0)]),key:"0"}]),1032,["title"]))),128))]))]),_:1}),s(" charge template card "),a(L,{collapsible:!0,collapsed:e.$route.params.section!="charge_template"},{header:n(()=>[a(Z,{"fixed-width":"",class:"fa-lg"},{default:n(()=>[a(f,{"fixed-width":"",icon:["far","file"]}),a(f,{"fixed-width":"",icon:["fas","plug"],transform:"shrink-8"})]),_:1}),l(" Lade-Profile ")]),actions:n(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),b(z,{key:0,class:"bg-success clickable",onClick:m.addChargeTemplate},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):s("v-if",!0)]),default:n(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),g("div",Me,[a(q,{subtype:"info"},{default:n(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),g("div",Fe,[(r(!0),g(B,null,A(m.chargeTemplates,(i,d)=>(r(),b(L,{key:d,title:i.name?i.name:d,collapsible:!0,collapsed:!(e.$route.params.section=="charge_template"&&parseInt(e.$route.params.section_index)==m.getChargeTemplateIndex(d))},M({default:n(()=>[a(T,{title:"Bezeichnung","model-value":i.name,"onUpdate:modelValue":t=>e.updateState(d,t,"name"),disabled:d.endsWith("/0")},M({_:2},[d.endsWith("/0")?{name:"help",fn:n(()=>[l(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),a(y,null,{default:n(()=>[l(" Allgemeine Optionen ")]),_:1}),a(_,{title:"Aktiver Lademodus",buttons:[{buttonValue:"instant_charging",text:"Sofortladen",class:"btn-outline-danger"},{buttonValue:"pv_charging",text:"PV",class:"btn-outline-success"},{buttonValue:"scheduled_charging",text:"Zielladen",class:"btn-outline-primary"},{buttonValue:"standby",text:"Standby",class:"btn-outline-secondary"},{buttonValue:"stop",text:"Stop",class:"btn-outline-dark"}],"model-value":i.chargemode.selected,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.selected")},{help:n(()=>[l(" Diese Einstellung entspricht dem gewählten Lademodus auf der Hauptseite und ist aktiv, wenn ein zugehöriges Fahrzeug angesteckt ist."),xe,l(" Die zur Verfügung stehende Leistung wird intern anhand folgender Prioritätenliste auf die Fahrzeuge bzw. Ladepunkte verteilt:"),De,Ze]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Priorität",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.prio,"onUpdate:modelValue":t=>e.updateState(d,t,"prio")},{help:n(()=>[l(" Die Ladefreigabe mit dem jeweils eingestellten Mindeststrom erfolgt für alle Fahrzeuge, soweit die verfügbare Leistung ausreicht. Fahrzeuge mit Priorität werden bevorzugt mit mehr Leistung geladen, falls verfügbar. Erst wenn alle priorisierten Fahrzeuge die maximale Ladeleistung bekommen und noch zusätzlicher Überschuss vorhanden ist, wird auch für Fahrzeuge ohne Priorität mehr Leistung freigegeben. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Zeitladen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.time_charging.active,"onUpdate:modelValue":t=>e.updateState(d,t,"time_charging.active")},{help:n(()=>[l(' Der Lademodus Zeitladen kann parallel zu einem der anderen Lademodi aktiviert werden. Die Auswahl des Lademodus, der in der Regelung genutzt wird, erfolgt anhand der Übersicht in der Hilfe bei "Aktiver Lademodus". Wenn kein Zeitplan aktiv ist oder das Limit des Zeitplans erreicht wurde, wird der Lademodus verwendet, der bei "Aktiver Lademodus" ausgewählt ist. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Sperre nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.disable_after_unplug,"onUpdate:modelValue":t=>e.updateState(d,t,"disable_after_unplug")},{help:n(()=>[l(" Wird ein Fahrzeug mit diesem Profil abgesteckt, dann wird der betroffene Ladepunkt automatisch deaktiviert. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Standard nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.load_default,"onUpdate:modelValue":t=>e.updateState(d,t,"load_default")},{help:n(()=>[l(" Falls diese Option aktiviert ist, wird der betroffene Ladepunkt nach dem Abstecken auf das Standard Ladeprofil zurückgesetzt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),Ie,a(y,null,{default:n(()=>[l("Sofortladen")]),_:1}),a(C,{title:"Soll-Ladestrom",min:6,max:32,step:1,unit:"A","model-value":i.chargemode.instant_charging.current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.current")},null,8,["model-value","onUpdate:modelValue"]),a(_,{title:"Begrenzung",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":i.chargemode.instant_charging.limit.selected,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.limit.selected")},{help:n(()=>[l(" Sofortladen kann ohne Fahrzeug-SoC-Begrenzung (Aus), mit Begrenzung des Fahrzeug-SoC (SoC) bei konfiguriertem SoC-Auslesemodul oder mittels Vorgabe eine gewünschten Energiemenge in kWh (Energie) genutzt werden. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(C,{title:"SoC-Limit",min:5,max:100,step:5,unit:"%","model-value":i.chargemode.instant_charging.limit.soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.limit.soc")},{help:n(()=>[l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),a(U,{title:"Energie-Limit",unit:"kWh",min:1,max:100,step:1,"model-value":i.chargemode.instant_charging.limit.amount/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"chargemode.instant_charging.limit.amount")},{help:n(()=>[l(" Die geladene Energiemenge wird beim Wechsel des Lademodus oder nach dem Anstecken, wenn Sofortladen schon ausgewählt ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),Ne,a(y,null,{default:n(()=>[l("PV-Laden")]),_:1}),a(C,{title:"Mindeststrom",min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":i.chargemode.pv_charging.min_current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_current")},{help:n(()=>[l(' Hier kann ein Mindeststrom eingestellt werden, mit dem unabhängig vom vorhandenen Überschuss durchgeladen wird. Hierdurch wird z.B. an Tagen mit häufigem Sonne/Wolken-Wechsel oder mit nur wenig PV-Ertrag ein Laden ohne Unterbrechung ermöglicht. Folglich kann auch Netzbezug für das Fahrzeugladen entstehen, weshalb der niedrigste Stromwert empfohlen wird. Diese Einstellung entspricht weitestgehend dem Lademodus "Min+PV" der Version 1.x. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),a(C,{title:"SoC-Limit",min:0,max:20,step:1,unit:"%",labels:[{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95},{label:100,value:100},{label:"Aus",value:101}],"model-value":i.chargemode.pv_charging.max_soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.max_soc")},{help:n(()=>[l(' Bei der Einstellung "100%" wird die Ladung sofort mit Erreichen der 100% beendet. Dadurch erfolgt KEIN Balancing der Batteriezellen. Ist dies gewünscht (sollte ab und an durchgeführt werden), muss hier "Aus" gewählt werden (Schieberegler ganz nach rechts stellen), um die Ladung MIT Balancing bis zur Beendigung durch das Fahrzeug weiterlaufen zu lassen.'),Oe,l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),a(C,{title:"Mindest-SoC",min:0,max:19,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":i.chargemode.pv_charging.min_soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_soc")},{help:n(()=>[l(' Liegt der Fahrzeug-Ladestand (SoC) unter dem hier eingestellten Wert, dann wird bis zum Erreichen dieses Wertes mit dem eingestellten "Mindest-SoC-Strom" geladen. Dies dient der Sicherstellung eines "Mindest-SoC" - z.B. für eine immer abzudeckende Fahrzeugreichweite - auch wenn kein oder zu wenig Überschuss verfügbar ist (=> Laden mit anteilig Netzstrom). Nach dem Erreichen des "Mindest-SoC" wird bei verfügbarem Überschuss geladen.'),Re,l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),a(C,{title:"Mindest-SoC-Strom",min:6,max:32,step:1,unit:"A","model-value":i.chargemode.pv_charging.min_soc_current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_soc_current")},{help:n(()=>[l(' Wird der oben eingestellte "Mindest-SoC" des Fahrzeuges unterschritten, dann wird unabhängig vom Überschuss ein Ladevorgang mit dem hier festgelegten "Mindest-SoC-Strom" initiiert (ggf. mit anteilig Netzbezug). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Einspeisegrenze beachten",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.chargemode.pv_charging.feed_in_limit,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.feed_in_limit")},{help:n(()=>[l(' Erläuterung siehe "Ladeeinstellungen" -> "PV-Laden" -> "Regelparameter" -> "Regelpunkt Einspeisegrenze" ')]),_:2},1032,["model-value","onUpdate:modelValue"]),$e,a(y,null,{actions:n(()=>[a(z,{class:"bg-success clickable",onClick:t=>m.addChargeTemplateSchedulePlan(d,t)},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),help:n(()=>[l(' Im Lademodus "Zielladen" wird der Ladestrom so angepasst, dass das Fahrzeug zum angegebenen Zeitpunkt den eingestellten SoC bzw. die einzuladende Energiemenge erreicht. Anhand des vorgegebenen Ladestroms wird der Zeitpunkt berechnet, an dem die Ladung spätestens starten muss.'),He,l(' Ist der berechnete Zeitpunkt des Ladestarts noch nicht erreicht, wird mit Überschuss geladen. Auch nach Erreichen des Ziel-SoCs wird mit Überschuss geladen, solange bis das "SoC-Limit" erreicht wird.'),je,l(" Kann der Ziel-SoC bzw. die Energiemenge NICHT erreicht werden, z.B. weil das Auto zu spät angesteckt wurde oder das Lastmanagement eingegriffen hat, wird bis 20 Minuten nach dem angegebenen Termin mit der Maximalstromstärke geladen. Danach wird der Termin verworfen und mit Überschuss geladen. ")]),default:n(()=>[l(" Zielladen ")]),_:2},1024),(r(!0),g(B,null,A(m.getChargeTemplateScheduledChargingPlans(d),(t,h)=>(r(),b(L,{key:h,title:t.name,collapsible:!0,collapsed:!0},{actions:n(u=>[u.collapsed==!0?(r(),g("span",{key:0,class:I(["subheader pill",t.active?"bg-success":"bg-danger"])},[t.limit.selected=="soc"?(r(),g("span",Je,[a(f,{"fixed-width":"",icon:["fas","car-battery"]}),l(" "+k(t.limit.soc_scheduled)+"% ",1)])):s("v-if",!0),t.limit.selected=="amount"?(r(),g("span",Ge,[a(f,{"fixed-width":"",icon:["fas","bolt"]}),l(" "+k(t.limit.amount/1e3)+"kWh ",1)])):s("v-if",!0),a(f,{"fixed-width":"",icon:["fas","clock"]}),l(" "+k(t.time)+" ",1),t.frequency.selected=="once"?(r(),g("span",Qe,[a(f,{"fixed-width":"",icon:["fas","calendar-day"]}),l(" "+k(e.formatDate(t.frequency.once)),1)])):s("v-if",!0),t.frequency.selected=="daily"?(r(),g("span",Xe,[a(f,{"fixed-width":"",icon:["fas","calendar-week"]})])):s("v-if",!0),t.frequency.selected=="weekly"?(r(),g("span",Ye,[a(f,{"fixed-width":"",icon:["fas","calendar-alt"]})])):s("v-if",!0)],2)):s("v-if",!0),u.collapsed==!1?(r(),b(z,{key:1,class:"bg-danger clickable",onClick:P=>m.removeChargeTemplateSchedulePlanModal(d,h,P)},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):s("v-if",!0)]),default:n(()=>[a(T,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":u=>e.updateState(h,u,"name")},null,8,["model-value","onUpdate:modelValue"]),a(_,{title:"Zeitpunkt aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":u=>e.updateState(h,u,"active")},null,8,["model-value","onUpdate:modelValue"]),a(T,{title:"Ziel-Uhrzeit",subtype:"time","model-value":t.time,"onUpdate:modelValue":u=>e.updateState(h,u,"time")},{help:n(()=>[l(" Hier ist die gewünschte Uhrzeit einzustellen, zu welcher das Fahrzeug den gewünschten SoC bzw. die zu ladende Energiemenge BEREITS ERREICHT haben soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(C,{title:"Ladestrom",min:6,max:32,step:1,unit:"A","model-value":t.current,"onUpdate:modelValue":u=>e.updateState(h,u,"current")},{help:n(()=>[l(" Mit dieser Stromstärke wird der Zeitpunkt berechnet, wann die Ladung mit Netzbezug gestartet werden muss. Wird der Ziel-SoC nicht zum angegebenen Termin erreicht, weil z.B. das Auto erst später angesteckt wurde, wird auch mit einer höheren Stromstärke geladen. Um etwas Puffer zu haben, empfiehlt es sich, etwas weniger als die Maximalstromstärke des Fahrzeugs zu wählen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Ziel",buttons:[{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":t.limit.selected,"onUpdate:modelValue":u=>e.updateState(h,u,"limit.selected")},{help:n(()=>[l(" Bestimmt die Art der Grenze für den Ladevorgang. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),t.limit.selected=="soc"?(r(),b(C,{key:0,title:"Ziel-SoC",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc_scheduled,"onUpdate:modelValue":u=>e.updateState(h,u,"limit.soc_scheduled")},{help:n(()=>[l(" SoC, der zum angegebenen Zeitpunkt erreicht werden soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):s("v-if",!0),t.limit.selected=="soc"?(r(),b(C,{key:1,title:"SoC-Limit",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc_limit,"onUpdate:modelValue":u=>e.updateState(h,u,"limit.soc_limit")},{help:n(()=>[l(" Nach Erreichen des Ziel-SoCs wird mit Überschuss weiter geladen, bis das SoC-Limit erreicht wird. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):s("v-if",!0),t.limit.selected=="amount"?(r(),b(U,{key:2,title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":t.limit.amount/1e3,"onUpdate:modelValue":u=>e.updateState(h,u*1e3,"limit.amount")},{help:n(()=>[l(" Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zielladen schon ausgewählt ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):s("v-if",!0),a(_,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":u=>e.updateState(h,u,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(r(),b(T,{key:3,title:"Datum",subtype:"date","model-value":t.frequency.once,"onUpdate:modelValue":u=>e.updateState(h,u,"frequency.once")},null,8,["model-value","onUpdate:modelValue"])):s("v-if",!0),t.frequency.selected=="weekly"?(r(),g("div",Ke,[(r(!0),g(B,null,A(e.weekdays,(u,P)=>(r(),b(_,{key:P,title:u,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[P],"onUpdate:modelValue":x=>e.updateState(h,x,"frequency.weekly."+P)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):s("v-if",!0)]),_:2},1032,["title"]))),128)),et,a(y,null,{actions:n(()=>[a(z,{class:"bg-success clickable",onClick:t=>m.addChargeTemplateTimeChargingPlan(d,t)},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),help:n(()=>[l(" Mit einem Zeitplan kann ein klar abgegrenzter Zeitbereich zum Fahrzeugladen definiert werden. Dies wird häufig genutzt, um einem Fahrzeug kurz vor der Abfahrt Strom anzubieten, damit dessen Vorklimatisierung nicht aus dem Fahrzeugakku, sondern aus der openWB bezogen wird (Enteisung, Vorwärmung, Abkühlung). Nicht von der Vorklimatisierung benötigter Strom erhöht dabei den Fahrzeug-SoC. Um das Stromnetz am Morgen nicht unnötig zu strapazieren, sollte eine moderate Stromvorgabe und ein beschränkter Zeitbereich vorgegeben werden (z.B. max. 10A; 30min - in Übereinstimmung mit den Fahrzeug-App-Vorklimatisierungsvorgaben). ")]),default:n(()=>[l(" Laden nach Zeitplan ")]),_:2},1024),(r(!0),g(B,null,A(m.getChargeTemplateTimeChargingPlans(d),(t,h)=>(r(),b(L,{key:h,title:t.name,collapsible:!0,collapsed:!0},{actions:n(u=>[u.collapsed==!0?(r(),g("span",{key:0,class:I(["subheader pill",t.active?"bg-success":"bg-danger"])},[t.limit.selected=="soc"?(r(),g("span",tt,[a(f,{"fixed-width":"",icon:["fas","car-battery"]}),l(" "+k(t.limit.soc)+"% ",1)])):s("v-if",!0),t.limit.selected=="amount"?(r(),g("span",at,[a(f,{"fixed-width":"",icon:["fas","bolt"]}),l(" "+k(t.limit.amount/1e3)+"kWh ",1)])):s("v-if",!0),a(f,{"fixed-width":"",icon:["fas","clock"]}),l(" "+k(t.time[0])+" - "+k(t.time[1])+" ",1),t.frequency.selected=="once"?(r(),g("span",nt,[a(f,{"fixed-width":"",icon:["fas","calendar-day"]}),l(" "+k(e.formatDate(t.frequency.once[0])==e.formatDate(t.frequency.once[1])?e.formatDate(t.frequency.once[0]):e.formatDate(t.frequency.once[0])+" - "+e.formatDate(t.frequency.once[1])),1)])):s("v-if",!0),t.frequency.selected=="daily"?(r(),g("span",lt,[a(f,{"fixed-width":"",icon:["fas","calendar-week"]})])):s("v-if",!0),t.frequency.selected=="weekly"?(r(),g("span",it,[a(f,{"fixed-width":"",icon:["fas","calendar-alt"]})])):s("v-if",!0)],2)):s("v-if",!0),u.collapsed==!1?(r(),b(z,{key:1,class:"bg-danger clickable",onClick:P=>m.removeChargeTemplateTimeChargingPlanModal(d,h,P)},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):s("v-if",!0)]),default:n(()=>[a(T,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":u=>e.updateState(h,u,"name")},null,8,["model-value","onUpdate:modelValue"]),a(_,{title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":u=>e.updateState(h,u,"active")},null,8,["model-value","onUpdate:modelValue"]),a(C,{title:"Ladestrom",min:6,max:32,step:1,unit:"A","model-value":t.current,"onUpdate:modelValue":u=>e.updateState(h,u,"current")},null,8,["model-value","onUpdate:modelValue"]),a(_,{title:"Ziel",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":t.limit.selected,"onUpdate:modelValue":u=>e.updateState(h,u,"limit.selected")},{help:n(()=>[l(" Bestimmt die Art der Grenze für den Ladevorgang. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),t.limit.selected=="soc"?(r(),b(C,{key:0,title:"Ziel-SoC",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc,"onUpdate:modelValue":u=>e.updateState(h,u,"limit.soc")},{help:n(()=>[l(" Ladestand des Akku (State of Charge, SoC), bis zu welchem maximal geladen werden soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):s("v-if",!0),t.limit.selected=="amount"?(r(),b(U,{key:1,title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":t.limit.amount/1e3,"onUpdate:modelValue":u=>e.updateState(h,u*1e3,"limit.amount")},{help:n(()=>[l(" Maximal zu ladende Energie innerhalb des Zeitfensters. Eignet sich immer dann wenn kein SoC zur Verfügung steht. Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zeitladen schon aktiv ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):s("v-if",!0),a(T,{title:"Zeitpunkt des Ladebeginns",subtype:"time","model-value":t.time[0],"onUpdate:modelValue":u=>e.updateState(h,u,"time.0")},null,8,["model-value","onUpdate:modelValue"]),a(T,{title:"Zeitpunkt des Ladeendes",subtype:"time","model-value":t.time[1],"onUpdate:modelValue":u=>e.updateState(h,u,"time.1")},null,8,["model-value","onUpdate:modelValue"]),a(_,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":u=>e.updateState(h,u,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(r(),b(T,{key:2,title:"Gültig ab",subtype:"date","model-value":t.frequency.once[0],"onUpdate:modelValue":u=>e.updateState(h,u,"frequency.once.0")},null,8,["model-value","onUpdate:modelValue"])):s("v-if",!0),t.frequency.selected=="once"?(r(),b(T,{key:3,title:"Gültig bis",subtype:"date",min:t.frequency.once[0],"model-value":t.frequency.once[1],"onUpdate:modelValue":u=>e.updateState(h,u,"frequency.once.1")},null,8,["min","model-value","onUpdate:modelValue"])):s("v-if",!0),t.frequency.selected=="weekly"?(r(),g("div",ot,[(r(!0),g(B,null,A(e.weekdays,(u,P)=>(r(),b(_,{key:P,title:u,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[P],"onUpdate:modelValue":x=>e.updateState(h,x,"frequency.weekly."+P)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):s("v-if",!0)]),_:2},1032,["title"]))),128))]),_:2},[d.endsWith("/0")?void 0:{name:"actions",fn:n(t=>[t.collapsed?s("v-if",!0):(r(),b(z,{key:0,class:"bg-danger clickable",onClick:h=>m.removeChargeTemplateModal(d,h)},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}]),1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),a(R,{formName:"vehicleConfigForm",onSave:o[5]||(o[5]=i=>e.$emit("save")),onReset:o[6]||(o[6]=i=>e.$emit("reset")),onDefaults:o[7]||(o[7]=i=>e.$emit("defaults"))})])])],64)}const ft=D(ve,[["render",dt],["__scopeId","data-v-d7193cf0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/VehicleConfig.vue"]]);export{ft as default};
+import{l as $,d as H,S as j,A as J,T as G,U as Q,z as X,K as Y,X as K,I as ee,V as te,Y as ae,F as ne,W as le}from"./vendor-fortawesome-838df0c9.js";import{_ as S,C as ie}from"./index-f08a7306.js";import{_ as oe}from"./dynamic-import-helper-be004503.js";import{_ as D,p as V,k as r,l as g,A as a,L as n,u as l,x as k,q as c,a0 as de,y as b,a1 as re,z as s,G as B,I as A,a2 as M,n as I,Q as ue,R as se}from"./vendor-20bb207d.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";import"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";const me={name:"VehicleConfigFallback",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{default:void 0},vehicleType:String},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},ce={class:"vehicle-fallback"};function he(e,o,p,E,v,m){const W=V("openwb-base-alert"),f=V("openwb-base-textarea");return r(),g("div",ce,[a(W,{subtype:"warning"},{default:n(()=>[l(' Es wurde keine Konfigurationsseite für den Fahrzeug-Typ "'+k(p.vehicleType)+'" gefunden. Die Einstellungen können als JSON direkt bearbeitet werden. ',1)]),_:1}),a(f,{title:"Konfiguration",subtype:"json","model-value":p.configuration,"onUpdate:modelValue":o[0]||(o[0]=z=>m.updateConfiguration(z,"configuration"))},{help:n(()=>[l(" Bitte prüfen Sie, ob die Eingaben richtig interpretiert werden. ")]),_:1},8,["model-value"]),a(W,{subtype:"info"},{default:n(()=>[c("pre",null,k(JSON.stringify(p.configuration,void 0,2)),1)]),_:1})])}const ge=D(me,[["render",he],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleConfigFallback.vue"]]),pe={name:"OpenwbVehicleProxy",emits:["update:configuration"],props:{vehicleId:{required:!0},vehicleType:{type:String,required:!0},configuration:{type:Object,required:!0}},computed:{myComponent(){return console.debug(`loading vehicle: ${this.vehicleType}`),de({loader:()=>oe(Object.assign({"./bmw/vehicle.vue":()=>S(()=>import("./vehicle-11ffdccd.js"),["assets/vehicle-11ffdccd.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./evnotify/vehicle.vue":()=>S(()=>import("./vehicle-82a4990a.js"),["assets/vehicle-82a4990a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./http/vehicle.vue":()=>S(()=>import("./vehicle-344c6660.js"),["assets/vehicle-344c6660.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./kia/vehicle.vue":()=>S(()=>import("./vehicle-0ea9ae58.js"),["assets/vehicle-0ea9ae58.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./manual/vehicle.vue":()=>S(()=>import("./vehicle-0e30b50e.js"),["assets/vehicle-0e30b50e.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./mercedeseq/vehicle.vue":()=>S(()=>import("./vehicle-ebf7e590.js"),["assets/vehicle-ebf7e590.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./mqtt/vehicle.vue":()=>S(()=>import("./vehicle-8cbf750d.js"),["assets/vehicle-8cbf750d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./psa/vehicle.vue":()=>S(()=>import("./vehicle-34ce6cc8.js"),["assets/vehicle-34ce6cc8.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./renault/vehicle.vue":()=>S(()=>import("./vehicle-c74f02d0.js"),["assets/vehicle-c74f02d0.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./skodaconnect/vehicle.vue":()=>S(()=>import("./vehicle-ef079f93.js"),["assets/vehicle-ef079f93.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./smarteq/vehicle.vue":()=>S(()=>import("./vehicle-cbd74ad8.js"),["assets/vehicle-cbd74ad8.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"]),"./tesla/vehicle.vue":()=>S(()=>import("./vehicle-e7320818.js"),["assets/vehicle-e7320818.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-axios-13ef03ae.js","assets/index-f08a7306.js","assets/vendor-fortawesome-838df0c9.js","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/index-27f04b3e.css"]),"./vwid/vehicle.vue":()=>S(()=>import("./vehicle-677f2094.js"),["assets/vehicle-677f2094.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css"])}),`./${this.vehicleType}/vehicle.vue`),errorComponent:ge})}},methods:{updateConfiguration(e){this.$emit("update:configuration",e)}}};function fe(e,o,p,E,v,m){return r(),b(re(m.myComponent),{configuration:p.configuration,vehicleId:p.vehicleId,vehicleType:p.vehicleType,"onUpdate:configuration":o[0]||(o[0]=W=>m.updateConfiguration(W))},null,40,["configuration","vehicleId","vehicleType"])}const be=D(pe,[["render",fe],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/OpenwbVehicleProxy.vue"]]);$.add(H,j,J,G,Q,X,Y,K,ee,te,ae);const ve={name:"OpenwbVehicleConfig",mixins:[ie],emits:["sendCommand"],components:{FontAwesomeIcon:ne,FontAwesomeLayers:le,OpenwbVehicleProxy:be},data(){return{mqttTopicsToSubscribe:["openWB/general/extern","openWB/optional/rfid/active","openWB/vehicle/template/ev_template/+","openWB/vehicle/template/charge_template/+","openWB/vehicle/template/charge_template/+/chargemode/scheduled_charging/plans/+","openWB/vehicle/template/charge_template/+/time_charging/plans/+","openWB/vehicle/+/name","openWB/vehicle/+/charge_template","openWB/vehicle/+/ev_template","openWB/vehicle/+/tag_id","openWB/system/configurable/soc_modules","openWB/vehicle/+/soc_module/config","openWB/vehicle/+/soc_module/interval_config"],showVehicleModal:!1,modalVehicleIndex:void 0,showEvTemplateModal:!1,modalEvTemplateIndex:void 0,showChargeTemplateModal:!1,modalChargeTemplateIndex:void 0,showChargeTemplateSchedulePlanModal:!1,modalChargeTemplateSchedulePlanIndex:void 0,showChargeTemplateTimeChargingPlanModal:!1,modalChargeTemplateTimeChargingPlanIndex:void 0}},computed:{vehicleIndexes:{get(){return this.getWildcardIndexList("openWB/vehicle/+/name")}},evTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/ev_template/+")}},evTemplateList:{get(){let e=[];return Object.keys(this.evTemplates).forEach(o=>{let p=parseInt(o.match(/([0-9]+)$/g)[0]),E=this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+p].name;e.push({value:p,text:E})}),e}},chargeTemplates:{get(){return this.getWildcardTopics("openWB/vehicle/template/charge_template/+")}},chargeTemplateList:{get(){let e=[];return Object.keys(this.chargeTemplates).forEach(o=>{let p=parseInt(o.match(/([0-9]+)$/g)[0]),E=this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+p].name;e.push({value:p,text:E})}),e}},socModuleList:{get(){return this.$store.state.mqtt["openWB/system/configurable/soc_modules"]}}},methods:{getChargeTemplateScheduledChargingPlans(e){let o=e.match(/([^/]+)$/)[0];return this.getWildcardTopics("openWB/vehicle/template/charge_template/"+o+"/chargemode/scheduled_charging/plans/+")},getChargeTemplateTimeChargingPlans(e){let o=e.match(/([^/]+)$/)[0];return this.getWildcardTopics("openWB/vehicle/template/charge_template/"+o+"/time_charging/plans/+")},addVehicle(e){e.stopPropagation(),console.info("requesting new vehicle..."),this.$emit("sendCommand",{command:"addVehicle",data:{}})},removeVehicleModal(e,o){o.stopPropagation(),this.modalVehicleIndex=e,this.showVehicleModal=!0},removeVehicle(e,o){this.showVehicleModal=!1,o=="confirm"&&(console.info("request removal of vehicle '"+e+"'"),this.$emit("sendCommand",{command:"removeVehicle",data:{id:e}}))},getVehicleName(e){return this.$store.state.mqtt["openWB/vehicle/"+e+"/name"]?this.$store.state.mqtt["openWB/vehicle/"+e+"/name"]:"Fahrzeug "+e},getSocDefaultConfiguration(e){const o=this.socModuleList.find(p=>p.value==e);return Object.prototype.hasOwnProperty.call(o,"defaults")?{...o.defaults}:(console.warn("no default configuration found for soc type!",e),{})},updateSelectedSocModule(e,o){this.updateState("openWB/vehicle/"+e+"/soc_module/config",o,"type"),this.updateState("openWB/vehicle/"+e+"/soc_module/config",this.getSocDefaultConfiguration(o))},updateConfiguration(e,o){console.debug("updateConfiguration",e,o),this.updateState(e,o.value,o.object)},addEvTemplate(e){e.stopPropagation(),console.info("requesting new ev template..."),this.$emit("sendCommand",{command:"addEvTemplate",data:{}})},removeEvTemplateModal(e,o){o.stopPropagation(),this.modalEvTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.showEvTemplateModal=!0},removeEvTemplate(e,o){this.showEvTemplateModal=!1,o=="confirm"&&(console.info("request removal of ev template '"+e+"'"),this.$emit("sendCommand",{command:"removeEvTemplate",data:{id:e}}))},getEvTemplateName(e){return this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+e]?this.$store.state.mqtt["openWB/vehicle/template/ev_template/"+e].name:"Fahrzeug-Profil "+e},addChargeTemplate(e){e.stopPropagation(),console.info("requesting new charge template..."),this.$emit("sendCommand",{command:"addChargeTemplate",data:{}})},getChargeTemplateIndex(e){return parseInt(e.match(/([^/]+)$/)[0])},removeChargeTemplateModal(e,o){o.stopPropagation(),this.modalChargeTemplateIndex=this.getChargeTemplateIndex(e),this.showChargeTemplateModal=!0},removeChargeTemplate(e,o){this.showChargeTemplateModal=!1,o=="confirm"&&(console.info("request removal of charge template '"+e+"'"),this.$emit("sendCommand",{command:"removeChargeTemplate",data:{id:e}}))},getChargeTemplateName(e){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e].name:"Lade-Profil "+e},getChargeTemplateSchedulePlanName(e,o){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/chargemode/scheduled_charging/plans/"+o]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/chargemode/scheduled_charging/plans/"+o].name:"Zielladen Zeitplan "+e+"/"+o},addChargeTemplateSchedulePlan(e,o){o.stopPropagation(),console.info("requesting new charge template schedule plan...");let p=parseInt(e.match(/([^/]+)$/)[0]);this.$emit("sendCommand",{command:"addChargeTemplateSchedulePlan",data:{template:p}})},removeChargeTemplateSchedulePlanModal(e,o,p){p.stopPropagation(),this.modalChargeTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.modalChargeTemplateSchedulePlanIndex=parseInt(o.match(/([^/]+)$/)[0]),this.showChargeTemplateSchedulePlanModal=!0},removeChargeTemplateSchedulePlan(e,o,p){this.showChargeTemplateSchedulePlanModal=!1,p=="confirm"&&(console.info("request removal of charge template '"+e+"' schedule plan '"+o+"'"),this.$emit("sendCommand",{command:"removeChargeTemplateSchedulePlan",data:{template:e,plan:o}}))},getChargeTemplateTimeChargingPlanName(e,o){return this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/time_charging/plans/"+o]?this.$store.state.mqtt["openWB/vehicle/template/charge_template/"+e+"/time_charging/plans/"+o].name:"Zeitladen Zeitplan "+e+"/"+o},addChargeTemplateTimeChargingPlan(e,o){o.stopPropagation(),console.info("requesting new charge template time charging plan...");let p=parseInt(e.match(/([^/]+)$/)[0]);this.$emit("sendCommand",{command:"addChargeTemplateTimeChargingPlan",data:{template:p}})},removeChargeTemplateTimeChargingPlanModal(e,o,p){p.stopPropagation(),this.modalChargeTemplateIndex=parseInt(e.match(/([^/]+)$/)[0]),this.modalChargeTemplateTimeChargingPlanIndex=parseInt(o.match(/([^/]+)$/)[0]),this.showChargeTemplateTimeChargingPlanModal=!0},removeChargeTemplateTimeChargingPlan(e,o,p){this.showChargeTemplateTimeChargingPlanModal=!1,p=="confirm"&&(console.info("request removal of charge template '"+e+"' time charging plan '"+o+"'"),this.$emit("sendCommand",{command:"removeChargeTemplateTimeChargingPlan",data:{template:e,plan:o}}))}}},w=e=>(ue("data-v-d7193cf0"),e=e(),se(),e),_e={class:"vehicleConfig"},we={name:"vehicleConfigForm"},Ve={key:0},ke={key:1},Ce=w(()=>c("hr",null,null,-1)),Se={key:0},ze=w(()=>c("br",null,null,-1)),Te=["innerHTML"],Ue=w(()=>c("hr",null,null,-1)),Pe=w(()=>c("br",null,null,-1)),We=w(()=>c("br",null,null,-1)),ye=w(()=>c("br",null,null,-1)),Le={key:1},Be={key:0},Ae=w(()=>c("hr",{class:"border-secondary"},null,-1)),Ee={key:0},qe={key:1},Me={key:0},Fe={key:1},xe=w(()=>c("br",null,null,-1)),De=w(()=>c("br",null,null,-1)),Ze=w(()=>c("ol",null,[c("li",null," Zielladen (Sofortladen) mit Priorität "),c("li",null,"Zielladen (Sofortladen)"),c("li",null,"Zeitladen mit Priorität"),c("li",null,"Zeitladen"),c("li",null,"Sofortladen mit Priorität"),c("li",null,"Sofortladen"),c("li",null,"PV (Min-Anteil) mit Priorität"),c("li",null,"PV (Min-Anteil)"),c("li",null,"Zielladen (PV) mit Priorität"),c("li",null,"Zielladen (PV)"),c("li",null,"PV (PV-Anteil) mit Priorität"),c("li",null,"PV (PV-Anteil)")],-1)),Ie=w(()=>c("hr",null,null,-1)),Ne=w(()=>c("hr",null,null,-1)),Oe=w(()=>c("br",null,null,-1)),Re=w(()=>c("br",null,null,-1)),$e=w(()=>c("hr",null,null,-1)),He=w(()=>c("br",null,null,-1)),je=w(()=>c("br",null,null,-1)),Je={key:0},Ge={key:1},Qe={key:2},Xe={key:3},Ye={key:4},Ke={key:4},et=w(()=>c("hr",null,null,-1)),tt={key:0},at={key:1},nt={key:2},lt={key:3},it={key:4},ot={key:4};function dt(e,o,p,E,v,m){const W=V("openwb-base-modal-dialog"),f=V("font-awesome-icon"),z=V("openwb-base-avatar"),q=V("openwb-base-alert"),T=V("openwb-base-text-input"),F=V("openwb-base-select-input"),N=V("openwb-base-array-input"),O=V("openwb-vehicle-proxy"),y=V("openwb-base-heading"),U=V("openwb-base-number-input"),_=V("openwb-base-button-group-input"),L=V("openwb-base-card"),Z=V("font-awesome-layers"),C=V("openwb-base-range-input"),R=V("openwb-base-submit-buttons");return r(),g(B,null,[s(" modal dialogs "),a(W,{show:v.showVehicleModal,title:"Fahrzeug löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[0]||(o[0]=i=>m.removeVehicle(v.modalVehicleIndex,i))},{default:n(()=>[l(' Wollen Sie das Fahrzeug "'+k(m.getVehicleName(v.modalVehicleIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),a(W,{show:v.showEvTemplateModal,title:"Fahrzeug-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[1]||(o[1]=i=>m.removeEvTemplate(v.modalEvTemplateIndex,i))},{default:n(()=>[l(' Wollen Sie das Fahrzeug-Profil "'+k(m.getEvTemplateName(v.modalEvTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),a(W,{show:v.showChargeTemplateModal,title:"Lade-Profil löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[2]||(o[2]=i=>m.removeChargeTemplate(v.modalChargeTemplateIndex,i))},{default:n(()=>[l(' Wollen Sie das Lade-Profil "'+k(m.getChargeTemplateName(v.modalChargeTemplateIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),a(W,{show:v.showChargeTemplateSchedulePlanModal,title:"Zielladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[3]||(o[3]=i=>m.removeChargeTemplateSchedulePlan(v.modalChargeTemplateIndex,v.modalChargeTemplateSchedulePlanIndex,i))},{default:n(()=>[l(' Wollen Sie den Zielladen Zeitplan "'+k(m.getChargeTemplateSchedulePlanName(v.modalChargeTemplateIndex,v.modalChargeTemplateSchedulePlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),a(W,{show:v.showChargeTemplateTimeChargingPlanModal,title:"Zeitladen Zeitplan löschen",subtype:"danger",buttons:[{text:"Löschen",event:"confirm",subtype:"danger"}],onModalResult:o[4]||(o[4]=i=>m.removeChargeTemplateTimeChargingPlan(v.modalChargeTemplateIndex,v.modalChargeTemplateTimeChargingPlanIndex,i))},{default:n(()=>[l(' Wollen Sie den Zeitladen Zeitplan "'+k(m.getChargeTemplateTimeChargingPlanName(v.modalChargeTemplateIndex,v.modalChargeTemplateTimeChargingPlanIndex))+'" wirklich entfernen? Dieser Vorgang kann nicht rückgängig gemacht werden! ',1)]),_:1},8,["show"]),s(" main content "),c("div",_e,[c("form",we,[s(" vehicle card "),a(L,{subtype:"info",collapsible:!0,collapsed:e.$route.params.section!="vehicle"},{header:n(()=>[a(f,{"fixed-width":"",icon:["fas","car"]}),l(" Fahrzeuge ")]),actions:n(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),b(z,{key:0,class:"bg-success clickable",onClick:m.addVehicle},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):s("v-if",!0)]),default:n(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),g("div",Ve,[a(q,{subtype:"info"},{default:n(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),g("div",ke,[(r(!0),g(B,null,A(m.vehicleIndexes,i=>(r(),b(L,{key:i,title:m.getVehicleName(i),collapsible:!0,collapsed:!(e.$route.params.section=="vehicle"&&parseInt(e.$route.params.section_index)==i),subtype:"info"},M({default:n(()=>[a(T,{title:"Bezeichnung","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/name"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/name",d),disabled:i===0},M({_:2},[i===0?{name:"help",fn:n(()=>[l(" Das Standard-Fahrzeug kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),a(q,{subtype:"info"},{default:n(()=>[l(" Ein anderes Fahrzeug-Profil wird erst NACH dem Abstecken übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ")]),_:1}),a(F,{title:"Fahrzeug-Profil",options:m.evTemplateList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/ev_template"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/ev_template",d)},null,8,["options","model-value","onUpdate:modelValue"]),a(F,{title:"Lade-Profil",options:m.chargeTemplateList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/charge_template"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/charge_template",d)},null,8,["options","model-value","onUpdate:modelValue"]),Ce,e.$store.state.mqtt["openWB/optional/rfid/active"]===!0?(r(),g("div",Se,[a(N,{title:"Zugeordnete Tags","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/tag_id"],"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/tag_id",d)},null,8,["model-value","onUpdate:modelValue"]),a(q,{subtype:"info"},{default:n(()=>[l(" Der/die RFID-Tag(s) müssen in dem Ladepunkt-Profil eingetragen werden, um zuzuordnen, an welchem Ladepunkt die Tags verwendet werden dürfen."),ze,c("span",{innerHTML:e.$store.state.text.rfidWiki},null,8,Te)]),_:1}),Ue])):s("v-if",!0),a(F,{class:"mb-2",title:"SoC-Modul",options:m.socModuleList,"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].type,"onUpdate:modelValue":d=>m.updateSelectedSocModule(i,d)},{help:n(()=>[l(" Mit einem SoC-Modul kann der Ladestand des Fahrzeugs ermittelt und geregelt werden. Z.B. lassen sich unabhängig vom Fahrzeug bestimmte SoC-Werte einstellen, um den Fahrzeugakku zu schonen. Aktuell werden die SoC-Werte mittels der App-Zugangsdaten aus dem Herstellerserver des Fahrzeuges ausgelesen. Zukünftig soll auch eine direkte SoC-Auslesung aus dem Fahrzeug möglich werden (openWB Pro)."),Pe,l(" Die SoC-Abfrage erfolgt automatisch beim Anstecken des Fahrzeuges und zusätzlich über einstellbare Abfrageintervalle während des Ladens und Nichtladens. Die Abfrage kann auch manuell durch Klick auf den Reload-Pfeil auf der Hauptseite ausgelöst werden."),We,l(" Wenn eine Abfrage fehlschlägt, wird noch drei weitere Male im Abstand von 5 Minuten versucht, den SoC abzufragen. Wenn dies nicht erfolgreich ist, wird der SoC auf 0% gesetzt um zu vermeiden, dass ein Auto beim SoC-basierten Laden nicht geladen wird. Die Abfrage erfolgt dann wieder in den oben genannten Intervallen."),ye,l(" Da aktuell die SoC-Abfragen über Onlineserver der Fahrzeughersteller laufen, ist infolge möglicher Umstellungen/Wartungen keine 100%-ig sichere SoC-Abfrage garantiert. Auch kann es zu SoC-Abweichungen infolge von zeitlicher Verzögerungen kommen. Hilfestellung erfolgt primär im openWB-Forum. ")]),_:2},1032,["options","model-value","onUpdate:modelValue"]),e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].type?(r(),g("div",Le,[a(O,{vehicleId:i,vehicleType:e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].type,configuration:e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/config"].configuration,"onUpdate:configuration":d=>m.updateConfiguration("openWB/vehicle/"+i+"/soc_module/config",d)},null,8,["vehicleId","vehicleType","configuration","onUpdate:configuration"]),e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/interval_config"]?(r(),g("div",Be,[a(y,null,{help:n(()=>[l(" Einige Hersteller begrenzen die möglichen Abfragen. Sobald ein gewisses Limit in einem Zeitraum überschritten wird, werden weitere Anfragen blockiert. Die Zeitintervalle sollten daher nicht zu klein gewählt werden. ")]),default:n(()=>[l(" Aktualisierung der Fahrzeugdaten ")]),_:1}),a(U,{title:"Während der Ladung",unit:"Min.","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/interval_config"].request_interval_charging,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/interval_config",d,"request_interval_charging")},{help:n(()=>[l(" Der Ladestand des Fahrzeugs (SoC) wird bei einem laufenden Ladevorgang in dem hier eingestellten Intervall in Minuten abgefragt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(U,{title:"Ohne laufende Ladung",unit:"Min.","model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/interval_config"].request_interval_not_charging,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/interval_config",d,"request_interval_not_charging")},{help:n(()=>[l(" Der Ladestand des Fahrzeugs (SoC) wird in dem hier eingestellten Intervall in Minuten abgefragt, falls kein Ladevorgang aktiv ist. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Nur aktualisieren wenn angesteckt",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":e.$store.state.mqtt["openWB/vehicle/"+i+"/soc_module/interval_config"].request_only_plugged,"onUpdate:modelValue":d=>e.updateState("openWB/vehicle/"+i+"/soc_module/interval_config",d,"request_only_plugged")},{help:n(()=>[l(' Wird hier "Ja" ausgewählt, dann wird der Ladestand des Fahrzeugs nur abgefragt, wenn das Ladekabel angesteckt ist. ')]),_:2},1032,["model-value","onUpdate:modelValue"])])):s("v-if",!0)])):s("v-if",!0)]),_:2},[i!==0?{name:"actions",fn:n(d=>[d.collapsed?s("v-if",!0):(r(),b(z,{key:0,class:"bg-danger clickable",onClick:t=>m.removeVehicleModal(i,t)},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}:void 0]),1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),Ae,a(y,null,{default:n(()=>[l("Profile")]),_:1}),s(" vehicle template card "),a(L,{collapsible:!0,collapsed:!0},{header:n(()=>[a(Z,{"fixed-width":"",class:"fa-lg"},{default:n(()=>[a(f,{"fixed-width":"",icon:["far","file"]}),a(f,{"fixed-width":"",icon:["fas","car"],transform:"shrink-8"})]),_:1}),l(" Fahrzeug-Profile ")]),actions:n(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),b(z,{key:0,class:"bg-success clickable",onClick:m.addEvTemplate},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):s("v-if",!0)]),default:n(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),g("div",Ee,[a(q,{subtype:"info"},{default:n(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),g("div",qe,[a(q,{subtype:"info"},{default:n(()=>[l(" Ein anderes Fahrzeug-Profil wird erst NACH dem Abstecken übernommen, da es sonst durch die Änderung bestimmter Einstellungen im laufenden Ladevorgang zu Widersprüchen kommen kann. ")]),_:1}),(r(!0),g(B,null,A(m.evTemplates,(i,d)=>(r(),b(L,{key:d,title:i.name?i.name:d,collapsible:!0,collapsed:!0},M({default:n(()=>[a(T,{title:"Bezeichnung","model-value":i.name,"onUpdate:modelValue":t=>e.updateState(d,t,"name"),disabled:d.endsWith("/0")},M({_:2},[d.endsWith("/0")?{name:"help",fn:n(()=>[l(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),a(y,null,{default:n(()=>[l(" Angaben zum Ladestrom ")]),_:1}),a(C,{title:"Mindeststrom",min:6,max:16,step:1,unit:"A","model-value":i.min_current,"onUpdate:modelValue":t=>e.updateState(d,t,"min_current")},null,8,["model-value","onUpdate:modelValue"]),a(C,{title:"Maximalstrom bei einer Phase",min:6,max:32,step:1,unit:"A","model-value":i.max_current_single_phase,"onUpdate:modelValue":t=>e.updateState(d,t,"max_current_single_phase")},null,8,["model-value","onUpdate:modelValue"]),a(C,{title:"Maximalstrom mehrere Phasen",min:6,max:32,step:1,unit:"A","model-value":i.max_current_multi_phases,"onUpdate:modelValue":t=>e.updateState(d,t,"max_current_multi_phases")},null,8,["model-value","onUpdate:modelValue"]),a(U,{title:"Erlaubte Stromabweichung",step:.1,unit:"A","model-value":i.nominal_difference,"onUpdate:modelValue":t=>e.updateState(d,t,"nominal_difference")},{help:n(()=>[l(" In manchen Lademodi, z.B. bei der automatischen Phasenumschaltung, wird geprüft, ob das Fahrzeug mit der vorgegebenen Stromstärke lädt. Manche Fahrzeuge laden nicht exakt mit der vorgegebenen Stromstärke. Die erlaubte Abweichung kann hier eingestellt werden. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(y,null,{default:n(()=>[l(" Angaben zur Batterie ")]),_:1}),a(U,{title:"Kapazität der Batterie",unit:"kWh",min:10,step:1,"model-value":i.battery_capacity/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"battery_capacity")},{help:n(()=>[l(" Angabe der Netto-Kapazität der Fahrzeugbatterie. Dient zur Berechnung des manuellen SoC und der geladenen Reichweite. Die Netto-Kapazität unterscheidet sich meist von den Angaben der Fahrzeughersteller. So besitzt ein Tesla Model S 90 z. B. nur ca. 83kWh und nicht die durch die Typenbezeichnung suggerierten 90kWh. Andere Hersteller begrenzen die nutzbare Kapazität absichtlich, um eine höhere Lebensdauer der Akkus zu erreichen. Gängig sind eine Drosselung auf 90% der angegebenen Brutto-Kapazität. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(U,{title:"Durchschnittsverbrauch",unit:"kWh / 100km",min:0,step:.1,"model-value":i.average_consump/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"average_consump")},null,8,["model-value","onUpdate:modelValue"]),a(y,null,{default:n(()=>[l(" Angaben zur Handhabung von Phasen ")]),_:1}),a(_,{title:"Unterstützte Phasen",buttons:[{buttonValue:1,text:"1"},{buttonValue:2,text:"2"},{buttonValue:3,text:"3"}],"model-value":i.max_phases,"onUpdate:modelValue":t=>e.updateState(d,t,"max_phases")},{help:n(()=>[l(" Anzahl der Phasen, die der Fahrzeuglader (s.g. OBC - OnboardCharger) bereitstellt. Plugin-Hybride haben meist nur eine Phase, reine E-Autos meist 2 bis 3 Phasen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"CP-Unterbrechung",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.control_pilot_interruption,"onUpdate:modelValue":t=>e.updateState(d,t,"control_pilot_interruption")},{help:n(()=>[l(' Erläuterung siehe "Konfiguration - Ladepunkte" -> Hardware-Optionen ')]),_:2},1032,["model-value","onUpdate:modelValue"]),i.control_pilot_interruption?(r(),b(U,{key:0,title:"Dauer der CP-Unterbrechung",min:4,step:1,unit:"s","model-value":i.control_pilot_interruption_duration,"onUpdate:modelValue":t=>e.updateState(d,t,"control_pilot_interruption_duration")},null,8,["model-value","onUpdate:modelValue"])):s("v-if",!0),a(_,{title:"Phasenumschaltung blockieren",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.prevent_phase_switch,"onUpdate:modelValue":t=>e.updateState(d,t,"prevent_phase_switch")},{help:n(()=>[l(' Erläuterung zu 1p3p siehe "Ladeeinstellungen" ')]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Ladung aktiv halten",buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":i.prevent_charge_stop,"onUpdate:modelValue":t=>e.updateState(d,t,"prevent_charge_stop")},{help:n(()=>[l(" In den Lademodi PV- und Zielladen wird die Abschaltverzögerung ausgesetzt und nach Ladebeginn der Ladevorgang nicht unterbrochen. Diese Einstellung sollte bei Fahrzeugen aktiviert werden, die nach Unterbrechen der Ladung keine Ladung mehr starten. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(U,{title:"Pause bei Phasenumschaltung",unit:"s",min:2,step:1,"model-value":i.phase_switch_pause,"onUpdate:modelValue":t=>e.updateState(d,t,"phase_switch_pause")},null,8,["model-value","onUpdate:modelValue"]),a(U,{title:"Mindestzeit zwischen Umschaltungen",unit:"s",min:2,step:1,"model-value":i.keep_charge_active_duration,"onUpdate:modelValue":t=>e.updateState(d,t,"keep_charge_active_duration")},{help:n(()=>[l(" Manche Fahrzeuge benötigen nach der Umschaltung einige Zeit, bis sie mit der vorgegebenen Phasenzahl laden. In dieser Zeit wird keine neue Phasenumschaltung angestoßen. ")]),_:2},1032,["model-value","onUpdate:modelValue"])]),_:2},[d.endsWith("/0")?void 0:{name:"actions",fn:n(t=>[e.$store.state.mqtt["openWB/general/extern"]===!1&&!t.collapsed?(r(),b(z,{key:0,class:"bg-danger clickable",onClick:h=>m.removeEvTemplateModal(d,h)},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):s("v-if",!0)]),key:"0"}]),1032,["title"]))),128))]))]),_:1}),s(" charge template card "),a(L,{collapsible:!0,collapsed:e.$route.params.section!="charge_template"},{header:n(()=>[a(Z,{"fixed-width":"",class:"fa-lg"},{default:n(()=>[a(f,{"fixed-width":"",icon:["far","file"]}),a(f,{"fixed-width":"",icon:["fas","plug"],transform:"shrink-8"})]),_:1}),l(" Lade-Profile ")]),actions:n(()=>[e.$store.state.mqtt["openWB/general/extern"]===!1?(r(),b(z,{key:0,class:"bg-success clickable",onClick:m.addChargeTemplate},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","plus"]})]),_:1},8,["onClick"])):s("v-if",!0)]),default:n(()=>[e.$store.state.mqtt["openWB/general/extern"]===!0?(r(),g("div",Me,[a(q,{subtype:"info"},{default:n(()=>[l(' Diese Einstellungen sind nicht verfügbar, solange sich diese openWB im Steuerungsmodus "secondary" befindet. ')]),_:1})])):(r(),g("div",Fe,[(r(!0),g(B,null,A(m.chargeTemplates,(i,d)=>(r(),b(L,{key:d,title:i.name?i.name:d,collapsible:!0,collapsed:!(e.$route.params.section=="charge_template"&&parseInt(e.$route.params.section_index)==m.getChargeTemplateIndex(d))},M({default:n(()=>[a(T,{title:"Bezeichnung","model-value":i.name,"onUpdate:modelValue":t=>e.updateState(d,t,"name"),disabled:d.endsWith("/0")},M({_:2},[d.endsWith("/0")?{name:"help",fn:n(()=>[l(" Das Standard-Profil kann nicht umbenannt werden. ")]),key:"0"}:void 0]),1032,["model-value","onUpdate:modelValue","disabled"]),a(y,null,{default:n(()=>[l(" Allgemeine Optionen ")]),_:1}),a(_,{title:"Aktiver Lademodus",buttons:[{buttonValue:"instant_charging",text:"Sofortladen",class:"btn-outline-danger"},{buttonValue:"pv_charging",text:"PV",class:"btn-outline-success"},{buttonValue:"scheduled_charging",text:"Zielladen",class:"btn-outline-primary"},{buttonValue:"standby",text:"Standby",class:"btn-outline-secondary"},{buttonValue:"stop",text:"Stop",class:"btn-outline-dark"}],"model-value":i.chargemode.selected,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.selected")},{help:n(()=>[l(" Diese Einstellung entspricht dem gewählten Lademodus auf der Hauptseite und ist aktiv, wenn ein zugehöriges Fahrzeug angesteckt ist."),xe,l(" Die zur Verfügung stehende Leistung wird intern anhand folgender Prioritätenliste auf die Fahrzeuge bzw. Ladepunkte verteilt:"),De,Ze]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Priorität",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.prio,"onUpdate:modelValue":t=>e.updateState(d,t,"prio")},{help:n(()=>[l(" Die Ladefreigabe mit dem jeweils eingestellten Mindeststrom erfolgt für alle Fahrzeuge, soweit die verfügbare Leistung ausreicht. Fahrzeuge mit Priorität werden bevorzugt mit mehr Leistung geladen, falls verfügbar. Erst wenn alle priorisierten Fahrzeuge die maximale Ladeleistung bekommen und noch zusätzlicher Überschuss vorhanden ist, wird auch für Fahrzeuge ohne Priorität mehr Leistung freigegeben. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Zeitladen",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.time_charging.active,"onUpdate:modelValue":t=>e.updateState(d,t,"time_charging.active")},{help:n(()=>[l(' Der Lademodus Zeitladen kann parallel zu einem der anderen Lademodi aktiviert werden. Die Auswahl des Lademodus, der in der Regelung genutzt wird, erfolgt anhand der Übersicht in der Hilfe bei "Aktiver Lademodus". Wenn kein Zeitplan aktiv ist oder das Limit des Zeitplans erreicht wurde, wird der Lademodus verwendet, der bei "Aktiver Lademodus" ausgewählt ist. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Sperre nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.disable_after_unplug,"onUpdate:modelValue":t=>e.updateState(d,t,"disable_after_unplug")},{help:n(()=>[l(" Wird ein Fahrzeug mit diesem Profil abgesteckt, dann wird der betroffene Ladepunkt automatisch deaktiviert. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Standard nach Abstecken",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.load_default,"onUpdate:modelValue":t=>e.updateState(d,t,"load_default")},{help:n(()=>[l(" Falls diese Option aktiviert ist, wird der betroffene Ladepunkt nach dem Abstecken auf das Standard Ladeprofil zurückgesetzt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),Ie,a(y,null,{default:n(()=>[l("Sofortladen")]),_:1}),a(C,{title:"Soll-Ladestrom",min:6,max:32,step:1,unit:"A","model-value":i.chargemode.instant_charging.current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.current")},null,8,["model-value","onUpdate:modelValue"]),a(_,{title:"Begrenzung",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":i.chargemode.instant_charging.limit.selected,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.limit.selected")},{help:n(()=>[l(" Sofortladen kann ohne Fahrzeug-SoC-Begrenzung (Aus), mit Begrenzung des Fahrzeug-SoC (SoC) bei konfiguriertem SoC-Auslesemodul oder mittels Vorgabe eine gewünschten Energiemenge in kWh (Energie) genutzt werden. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(C,{title:"SoC-Limit",min:5,max:100,step:5,unit:"%","model-value":i.chargemode.instant_charging.limit.soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.instant_charging.limit.soc")},{help:n(()=>[l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),a(U,{title:"Energie-Limit",unit:"kWh",min:1,max:100,step:1,"model-value":i.chargemode.instant_charging.limit.amount/1e3,"onUpdate:modelValue":t=>e.updateState(d,t*1e3,"chargemode.instant_charging.limit.amount")},{help:n(()=>[l(" Die geladene Energiemenge wird beim Wechsel des Lademodus oder nach dem Anstecken, wenn Sofortladen schon ausgewählt ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),Ne,a(y,null,{default:n(()=>[l("PV-Laden")]),_:1}),a(C,{title:"Mindeststrom",min:0,max:11,step:1,unit:"A",labels:[{label:"Aus",value:0},{label:6,value:6},{label:7,value:7},{label:8,value:8},{label:9,value:9},{label:10,value:10},{label:11,value:11},{label:12,value:12},{label:13,value:13},{label:14,value:14},{label:15,value:15},{label:16,value:16}],"model-value":i.chargemode.pv_charging.min_current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_current")},{help:n(()=>[l(' Hier kann ein Mindeststrom eingestellt werden, mit dem unabhängig vom vorhandenen Überschuss durchgeladen wird. Hierdurch wird z.B. an Tagen mit häufigem Sonne/Wolken-Wechsel oder mit nur wenig PV-Ertrag ein Laden ohne Unterbrechung ermöglicht. Folglich kann auch Netzbezug für das Fahrzeugladen entstehen, weshalb der niedrigste Stromwert empfohlen wird. Diese Einstellung entspricht weitestgehend dem Lademodus "Min+PV" der Version 1.x. ')]),_:2},1032,["model-value","onUpdate:modelValue"]),a(C,{title:"SoC-Limit",min:0,max:20,step:1,unit:"%",labels:[{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95},{label:100,value:100},{label:"Aus",value:101}],"model-value":i.chargemode.pv_charging.max_soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.max_soc")},{help:n(()=>[l(' Bei der Einstellung "100%" wird die Ladung sofort mit Erreichen der 100% beendet. Dadurch erfolgt KEIN Balancing der Batteriezellen. Ist dies gewünscht (sollte ab und an durchgeführt werden), muss hier "Aus" gewählt werden (Schieberegler ganz nach rechts stellen), um die Ladung MIT Balancing bis zur Beendigung durch das Fahrzeug weiterlaufen zu lassen.'),Oe,l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),a(C,{title:"Mindest-SoC",min:0,max:19,step:1,unit:"%",labels:[{label:"Aus",value:0},{label:5,value:5},{label:10,value:10},{label:15,value:15},{label:20,value:20},{label:25,value:25},{label:30,value:30},{label:35,value:35},{label:40,value:40},{label:45,value:45},{label:50,value:50},{label:55,value:55},{label:60,value:60},{label:65,value:65},{label:70,value:70},{label:75,value:75},{label:80,value:80},{label:85,value:85},{label:90,value:90},{label:95,value:95}],"model-value":i.chargemode.pv_charging.min_soc,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_soc")},{help:n(()=>[l(' Liegt der Fahrzeug-Ladestand (SoC) unter dem hier eingestellten Wert, dann wird bis zum Erreichen dieses Wertes mit dem eingestellten "Mindest-SoC-Strom" geladen. Dies dient der Sicherstellung eines "Mindest-SoC" - z.B. für eine immer abzudeckende Fahrzeugreichweite - auch wenn kein oder zu wenig Überschuss verfügbar ist (=> Laden mit anteilig Netzstrom). Nach dem Erreichen des "Mindest-SoC" wird bei verfügbarem Überschuss geladen.'),Re,l(' Um die Fahrzeug-SoC-Begrenzung nutzen zu können, muss ein SoC-Modul für das jeweilige Fahrzeug eingerichtet sein (siehe "Konfiguration" -> "Fahrzeuge" -> "SoC-Modul"). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),a(C,{title:"Mindest-SoC-Strom",min:6,max:32,step:1,unit:"A","model-value":i.chargemode.pv_charging.min_soc_current,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.min_soc_current")},{help:n(()=>[l(' Wird der oben eingestellte "Mindest-SoC" des Fahrzeuges unterschritten, dann wird unabhängig vom Überschuss ein Ladevorgang mit dem hier festgelegten "Mindest-SoC-Strom" initiiert (ggf. mit anteilig Netzbezug). ')]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Einspeisegrenze beachten",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":i.chargemode.pv_charging.feed_in_limit,"onUpdate:modelValue":t=>e.updateState(d,t,"chargemode.pv_charging.feed_in_limit")},{help:n(()=>[l(' Erläuterung siehe "Ladeeinstellungen" -> "PV-Laden" -> "Regelparameter" -> "Regelpunkt Einspeisegrenze" ')]),_:2},1032,["model-value","onUpdate:modelValue"]),$e,a(y,null,{actions:n(()=>[a(z,{class:"bg-success clickable",onClick:t=>m.addChargeTemplateSchedulePlan(d,t)},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),help:n(()=>[l(' Im Lademodus "Zielladen" wird der Ladestrom so angepasst, dass das Fahrzeug zum angegebenen Zeitpunkt den eingestellten SoC bzw. die einzuladende Energiemenge erreicht. Anhand des vorgegebenen Ladestroms wird der Zeitpunkt berechnet, an dem die Ladung spätestens starten muss.'),He,l(' Ist der berechnete Zeitpunkt des Ladestarts noch nicht erreicht, wird mit Überschuss geladen. Auch nach Erreichen des Ziel-SoCs wird mit Überschuss geladen, solange bis das "SoC-Limit" erreicht wird.'),je,l(" Kann der Ziel-SoC bzw. die Energiemenge NICHT erreicht werden, z.B. weil das Auto zu spät angesteckt wurde oder das Lastmanagement eingegriffen hat, wird bis 20 Minuten nach dem angegebenen Termin mit der Maximalstromstärke geladen. Danach wird der Termin verworfen und mit Überschuss geladen. ")]),default:n(()=>[l(" Zielladen ")]),_:2},1024),(r(!0),g(B,null,A(m.getChargeTemplateScheduledChargingPlans(d),(t,h)=>(r(),b(L,{key:h,title:t.name,collapsible:!0,collapsed:!0},{actions:n(u=>[u.collapsed==!0?(r(),g("span",{key:0,class:I(["subheader pill",t.active?"bg-success":"bg-danger"])},[t.limit.selected=="soc"?(r(),g("span",Je,[a(f,{"fixed-width":"",icon:["fas","car-battery"]}),l(" "+k(t.limit.soc_scheduled)+"% ",1)])):s("v-if",!0),t.limit.selected=="amount"?(r(),g("span",Ge,[a(f,{"fixed-width":"",icon:["fas","bolt"]}),l(" "+k(t.limit.amount/1e3)+"kWh ",1)])):s("v-if",!0),a(f,{"fixed-width":"",icon:["fas","clock"]}),l(" "+k(t.time)+" ",1),t.frequency.selected=="once"?(r(),g("span",Qe,[a(f,{"fixed-width":"",icon:["fas","calendar-day"]}),l(" "+k(e.formatDate(t.frequency.once)),1)])):s("v-if",!0),t.frequency.selected=="daily"?(r(),g("span",Xe,[a(f,{"fixed-width":"",icon:["fas","calendar-week"]})])):s("v-if",!0),t.frequency.selected=="weekly"?(r(),g("span",Ye,[a(f,{"fixed-width":"",icon:["fas","calendar-alt"]})])):s("v-if",!0)],2)):s("v-if",!0),u.collapsed==!1?(r(),b(z,{key:1,class:"bg-danger clickable",onClick:P=>m.removeChargeTemplateSchedulePlanModal(d,h,P)},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):s("v-if",!0)]),default:n(()=>[a(T,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":u=>e.updateState(h,u,"name")},null,8,["model-value","onUpdate:modelValue"]),a(_,{title:"Zeitpunkt aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":u=>e.updateState(h,u,"active")},null,8,["model-value","onUpdate:modelValue"]),a(T,{title:"Ziel-Uhrzeit",subtype:"time","model-value":t.time,"onUpdate:modelValue":u=>e.updateState(h,u,"time")},{help:n(()=>[l(" Hier ist die gewünschte Uhrzeit einzustellen, zu welcher das Fahrzeug den gewünschten SoC bzw. die zu ladende Energiemenge BEREITS ERREICHT haben soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(C,{title:"Ladestrom",min:6,max:32,step:1,unit:"A","model-value":t.current,"onUpdate:modelValue":u=>e.updateState(h,u,"current")},{help:n(()=>[l(" Mit dieser Stromstärke wird der Zeitpunkt berechnet, wann die Ladung mit Netzbezug gestartet werden muss. Wird der Ziel-SoC nicht zum angegebenen Termin erreicht, weil z.B. das Auto erst später angesteckt wurde, wird auch mit einer höheren Stromstärke geladen. Um etwas Puffer zu haben, empfiehlt es sich, etwas weniger als die Maximalstromstärke des Fahrzeugs zu wählen. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),a(_,{title:"Ziel",buttons:[{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":t.limit.selected,"onUpdate:modelValue":u=>e.updateState(h,u,"limit.selected")},{help:n(()=>[l(" Bestimmt die Art der Grenze für den Ladevorgang. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),t.limit.selected=="soc"?(r(),b(C,{key:0,title:"Ziel-SoC",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc_scheduled,"onUpdate:modelValue":u=>e.updateState(h,u,"limit.soc_scheduled")},{help:n(()=>[l(" SoC, der zum angegebenen Zeitpunkt erreicht werden soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):s("v-if",!0),t.limit.selected=="soc"?(r(),b(C,{key:1,title:"SoC-Limit",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc_limit,"onUpdate:modelValue":u=>e.updateState(h,u,"limit.soc_limit")},{help:n(()=>[l(" Nach Erreichen des Ziel-SoCs wird mit Überschuss weiter geladen, bis das SoC-Limit erreicht wird. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):s("v-if",!0),t.limit.selected=="amount"?(r(),b(U,{key:2,title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":t.limit.amount/1e3,"onUpdate:modelValue":u=>e.updateState(h,u*1e3,"limit.amount")},{help:n(()=>[l(" Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zielladen schon ausgewählt ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):s("v-if",!0),a(_,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":u=>e.updateState(h,u,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(r(),b(T,{key:3,title:"Datum",subtype:"date","model-value":t.frequency.once,"onUpdate:modelValue":u=>e.updateState(h,u,"frequency.once")},null,8,["model-value","onUpdate:modelValue"])):s("v-if",!0),t.frequency.selected=="weekly"?(r(),g("div",Ke,[(r(!0),g(B,null,A(e.weekdays,(u,P)=>(r(),b(_,{key:P,title:u,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[P],"onUpdate:modelValue":x=>e.updateState(h,x,"frequency.weekly."+P)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):s("v-if",!0)]),_:2},1032,["title"]))),128)),et,a(y,null,{actions:n(()=>[a(z,{class:"bg-success clickable",onClick:t=>m.addChargeTemplateTimeChargingPlan(d,t)},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","plus"]})]),_:2},1032,["onClick"])]),help:n(()=>[l(" Mit einem Zeitplan kann ein klar abgegrenzter Zeitbereich zum Fahrzeugladen definiert werden. Dies wird häufig genutzt, um einem Fahrzeug kurz vor der Abfahrt Strom anzubieten, damit dessen Vorklimatisierung nicht aus dem Fahrzeugakku, sondern aus der openWB bezogen wird (Enteisung, Vorwärmung, Abkühlung). Nicht von der Vorklimatisierung benötigter Strom erhöht dabei den Fahrzeug-SoC. Um das Stromnetz am Morgen nicht unnötig zu strapazieren, sollte eine moderate Stromvorgabe und ein beschränkter Zeitbereich vorgegeben werden (z.B. max. 10A; 30min - in Übereinstimmung mit den Fahrzeug-App-Vorklimatisierungsvorgaben). ")]),default:n(()=>[l(" Laden nach Zeitplan ")]),_:2},1024),(r(!0),g(B,null,A(m.getChargeTemplateTimeChargingPlans(d),(t,h)=>(r(),b(L,{key:h,title:t.name,collapsible:!0,collapsed:!0},{actions:n(u=>[u.collapsed==!0?(r(),g("span",{key:0,class:I(["subheader pill",t.active?"bg-success":"bg-danger"])},[t.limit.selected=="soc"?(r(),g("span",tt,[a(f,{"fixed-width":"",icon:["fas","car-battery"]}),l(" "+k(t.limit.soc)+"% ",1)])):s("v-if",!0),t.limit.selected=="amount"?(r(),g("span",at,[a(f,{"fixed-width":"",icon:["fas","bolt"]}),l(" "+k(t.limit.amount/1e3)+"kWh ",1)])):s("v-if",!0),a(f,{"fixed-width":"",icon:["fas","clock"]}),l(" "+k(t.time[0])+" - "+k(t.time[1])+" ",1),t.frequency.selected=="once"?(r(),g("span",nt,[a(f,{"fixed-width":"",icon:["fas","calendar-day"]}),l(" "+k(e.formatDate(t.frequency.once[0])==e.formatDate(t.frequency.once[1])?e.formatDate(t.frequency.once[0]):e.formatDate(t.frequency.once[0])+" - "+e.formatDate(t.frequency.once[1])),1)])):s("v-if",!0),t.frequency.selected=="daily"?(r(),g("span",lt,[a(f,{"fixed-width":"",icon:["fas","calendar-week"]})])):s("v-if",!0),t.frequency.selected=="weekly"?(r(),g("span",it,[a(f,{"fixed-width":"",icon:["fas","calendar-alt"]})])):s("v-if",!0)],2)):s("v-if",!0),u.collapsed==!1?(r(),b(z,{key:1,class:"bg-danger clickable",onClick:P=>m.removeChargeTemplateTimeChargingPlanModal(d,h,P)},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"])):s("v-if",!0)]),default:n(()=>[a(T,{title:"Bezeichnung","model-value":t.name,"onUpdate:modelValue":u=>e.updateState(h,u,"name")},null,8,["model-value","onUpdate:modelValue"]),a(_,{title:"Zeitplan aktiv",buttons:[{buttonValue:!1,text:"Nein",class:"btn-outline-danger"},{buttonValue:!0,text:"Ja",class:"btn-outline-success"}],"model-value":t.active,"onUpdate:modelValue":u=>e.updateState(h,u,"active")},null,8,["model-value","onUpdate:modelValue"]),a(C,{title:"Ladestrom",min:6,max:32,step:1,unit:"A","model-value":t.current,"onUpdate:modelValue":u=>e.updateState(h,u,"current")},null,8,["model-value","onUpdate:modelValue"]),a(_,{title:"Ziel",buttons:[{buttonValue:"none",text:"Aus"},{buttonValue:"soc",text:"SoC"},{buttonValue:"amount",text:"Energie"}],"model-value":t.limit.selected,"onUpdate:modelValue":u=>e.updateState(h,u,"limit.selected")},{help:n(()=>[l(" Bestimmt die Art der Grenze für den Ladevorgang. ")]),_:2},1032,["model-value","onUpdate:modelValue"]),t.limit.selected=="soc"?(r(),b(C,{key:0,title:"Ziel-SoC",min:5,max:100,step:5,unit:"%","model-value":t.limit.soc,"onUpdate:modelValue":u=>e.updateState(h,u,"limit.soc")},{help:n(()=>[l(" Ladestand des Akku (State of Charge, SoC), bis zu welchem maximal geladen werden soll. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):s("v-if",!0),t.limit.selected=="amount"?(r(),b(U,{key:1,title:"Ziel-Energie",unit:"kWh",min:1,step:.5,"model-value":t.limit.amount/1e3,"onUpdate:modelValue":u=>e.updateState(h,u*1e3,"limit.amount")},{help:n(()=>[l(" Maximal zu ladende Energie innerhalb des Zeitfensters. Eignet sich immer dann wenn kein SoC zur Verfügung steht. Die geladene Energiemenge wird beim Wechsel des Lademodus, Wechsel des Plans oder nach dem Anstecken, wenn Zeitladen schon aktiv ist, neu gezählt. ")]),_:2},1032,["model-value","onUpdate:modelValue"])):s("v-if",!0),a(T,{title:"Zeitpunkt des Ladebeginns",subtype:"time","model-value":t.time[0],"onUpdate:modelValue":u=>e.updateState(h,u,"time.0")},null,8,["model-value","onUpdate:modelValue"]),a(T,{title:"Zeitpunkt des Ladeendes",subtype:"time","model-value":t.time[1],"onUpdate:modelValue":u=>e.updateState(h,u,"time.1")},null,8,["model-value","onUpdate:modelValue"]),a(_,{title:"Wiederholungen",buttons:[{buttonValue:"once",text:"Einmalig",class:"btn-outline-info"},{buttonValue:"daily",text:"Täglich",class:"btn-outline-info"},{buttonValue:"weekly",text:"Wöchentlich",class:"btn-outline-info"}],"model-value":t.frequency.selected,"onUpdate:modelValue":u=>e.updateState(h,u,"frequency.selected")},null,8,["model-value","onUpdate:modelValue"]),t.frequency.selected=="once"?(r(),b(T,{key:2,title:"Gültig ab",subtype:"date","model-value":t.frequency.once[0],"onUpdate:modelValue":u=>e.updateState(h,u,"frequency.once.0")},null,8,["model-value","onUpdate:modelValue"])):s("v-if",!0),t.frequency.selected=="once"?(r(),b(T,{key:3,title:"Gültig bis",subtype:"date",min:t.frequency.once[0],"model-value":t.frequency.once[1],"onUpdate:modelValue":u=>e.updateState(h,u,"frequency.once.1")},null,8,["min","model-value","onUpdate:modelValue"])):s("v-if",!0),t.frequency.selected=="weekly"?(r(),g("div",ot,[(r(!0),g(B,null,A(e.weekdays,(u,P)=>(r(),b(_,{key:P,title:u,buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}],"model-value":t.frequency.weekly[P],"onUpdate:modelValue":x=>e.updateState(h,x,"frequency.weekly."+P)},null,8,["title","model-value","onUpdate:modelValue"]))),128))])):s("v-if",!0)]),_:2},1032,["title"]))),128))]),_:2},[d.endsWith("/0")?void 0:{name:"actions",fn:n(t=>[t.collapsed?s("v-if",!0):(r(),b(z,{key:0,class:"bg-danger clickable",onClick:h=>m.removeChargeTemplateModal(d,h)},{default:n(()=>[a(f,{"fixed-width":"",icon:["fas","trash"]})]),_:2},1032,["onClick"]))]),key:"0"}]),1032,["title","collapsed"]))),128))]))]),_:1},8,["collapsed"]),a(R,{formName:"vehicleConfigForm",onSave:o[5]||(o[5]=i=>e.$emit("save")),onReset:o[6]||(o[6]=i=>e.$emit("reset")),onDefaults:o[7]||(o[7]=i=>e.$emit("defaults"))})])])],64)}const ft=D(ve,[["render",dt],["__scopeId","data-v-d7193cf0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/views/VehicleConfig.vue"]]);export{ft as default};
diff --git a/web/settings/assets/backup_cloud-f1ce5010.js b/web/settings/assets/backup_cloud-6519f98a.js
similarity index 96%
rename from web/settings/assets/backup_cloud-f1ce5010.js
rename to web/settings/assets/backup_cloud-6519f98a.js
index 022420779a..ca7ab6e8d0 100644
--- a/web/settings/assets/backup_cloud-f1ce5010.js
+++ b/web/settings/assets/backup_cloud-6519f98a.js
@@ -1 +1 @@
-import{_ as b,p as d,k as g,l as f,A as t,L as o,u as e,q as u,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const h={name:"BackupCloudOneDrive",emits:["update:configuration","sendCommand"],props:{configuration:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(i,n=void 0){this.$emit("update:configuration",{value:i,object:n})},sendSystemCommand(i,n={}){this.$emit("sendCommand",{command:i,data:n})}}},v={class:"backup-cloud-onedrive"},k={class:"small"},w=u("br",null,null,-1),B=u("br",null,null,-1),C=u("br",null,null,-1),y=u("br",null,null,-1);function A(i,n,a,x,z,s){const c=d("openwb-base-heading"),m=d("openwb-base-alert"),r=d("openwb-base-text-input"),p=d("openwb-base-button-input");return g(),f("div",v,[t(c,null,{default:o(()=>[e(" Einstellungen für Onedrive Backup "),u("span",k,"(Modul: "+_(i.$options.name)+")",1)]),_:1}),t(m,{subtype:"info"},{default:o(()=>[e(" Zum Abruf der Zugangsberechtigung bitte die Konfiguration speichern, dann die Schritte 1-4 durchführen und danach die Konfiguration erneut speichern. "),w,e(" Auth Code und URL werden nur einmal benötigt werden nach erfolgreicher Autorisierung wieder gelöscht. ")]),_:1}),t(r,{title:"Backupverzeichnis in Onedrive",subtype:"text",required:"",pattern:"^/(.*/)*","model-value":a.configuration.backuppath,"onUpdate:modelValue":n[0]||(n[0]=l=>s.updateConfiguration(l,"configuration.backuppath"))},{help:o(()=>[e(" In diesem Verzeichnis werden die Backupdateien erstellt. Bitte den Pfad mit / beenden. "),B,e("Beispiel: /openWB/Backup/ ")]),_:1},8,["model-value"]),t(r,{title:"Anmeldedaten auf openWB gespeichert",readonly:"","model-value":a.configuration.persistent_tokencache?"Ja":"Nein"},null,8,["model-value"]),t(c,null,{default:o(()=>[e("Zugang zu Onedrive für diese openWB autorisieren")]),_:1}),t(p,{title:"1. Anmeldeanforderung erstellen",buttonText:"Autorisierungs-Code anfordern",subtype:"success",onButtonClicked:n[1]||(n[1]=l=>s.sendSystemCommand("requestMSALAuthCode",{}))},{help:o(()=>[e(" Es werden Zugangstokens für Onedrive angefordert. Diese werden nur lokal auf dieser openWB gespeichert. Genutzt wird Device Flow mit public application. "),C,e(" https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-device-code "),y,e(" https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-client-applications ")]),_:1}),t(r,{title:"2. Diesen Code kopieren",subtype:"text",readonly:"","model-value":a.configuration.authcode},null,8,["model-value"]),t(r,{title:"3. Anmelde-URL aufrufen",subtype:"url",readonly:"","model-value":a.configuration.authurl},{help:o(()=>[e(" Diese URL im Browser öffnen und den Code eingeben. Dies erzeugt die notwendigen Zugangsberechtigung für diese openWB. ")]),_:1},8,["model-value"]),t(p,{title:"4. Token abrufen und speichern",buttonText:"Autorisierungs-Token abrufen",subtype:"success",onButtonClicked:n[2]||(n[2]=l=>s.sendSystemCommand("retrieveMSALTokens",{}))},{help:o(()=>[e(" Zugangstoken wird abgerufen und gespeichert, damit das Backup durchgeführt werden kann. Zugangstoken werden nur lokal auf dieser openWB gespeichert. ")]),_:1})])}const W=b(h,[["render",A],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/onedrive/backup_cloud.vue"]]);export{W as default};
+import{_ as b,p as d,k as g,l as f,A as t,L as o,u as e,q as u,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const h={name:"BackupCloudOneDrive",emits:["update:configuration","sendCommand"],props:{configuration:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(i,n=void 0){this.$emit("update:configuration",{value:i,object:n})},sendSystemCommand(i,n={}){this.$emit("sendCommand",{command:i,data:n})}}},v={class:"backup-cloud-onedrive"},k={class:"small"},w=u("br",null,null,-1),B=u("br",null,null,-1),C=u("br",null,null,-1),y=u("br",null,null,-1);function A(i,n,a,x,z,s){const c=d("openwb-base-heading"),m=d("openwb-base-alert"),r=d("openwb-base-text-input"),p=d("openwb-base-button-input");return g(),f("div",v,[t(c,null,{default:o(()=>[e(" Einstellungen für Onedrive Backup "),u("span",k,"(Modul: "+_(i.$options.name)+")",1)]),_:1}),t(m,{subtype:"info"},{default:o(()=>[e(" Zum Abruf der Zugangsberechtigung bitte die Konfiguration speichern, dann die Schritte 1-4 durchführen und danach die Konfiguration erneut speichern. "),w,e(" Auth Code und URL werden nur einmal benötigt werden nach erfolgreicher Autorisierung wieder gelöscht. ")]),_:1}),t(r,{title:"Backupverzeichnis in Onedrive",subtype:"text",required:"",pattern:"^/(.*/)*","model-value":a.configuration.backuppath,"onUpdate:modelValue":n[0]||(n[0]=l=>s.updateConfiguration(l,"configuration.backuppath"))},{help:o(()=>[e(" In diesem Verzeichnis werden die Backupdateien erstellt. Bitte den Pfad mit / beenden. "),B,e("Beispiel: /openWB/Backup/ ")]),_:1},8,["model-value"]),t(r,{title:"Anmeldedaten auf openWB gespeichert",readonly:"","model-value":a.configuration.persistent_tokencache?"Ja":"Nein"},null,8,["model-value"]),t(c,null,{default:o(()=>[e("Zugang zu Onedrive für diese openWB autorisieren")]),_:1}),t(p,{title:"1. Anmeldeanforderung erstellen",buttonText:"Autorisierungs-Code anfordern",subtype:"success",onButtonClicked:n[1]||(n[1]=l=>s.sendSystemCommand("requestMSALAuthCode",{}))},{help:o(()=>[e(" Es werden Zugangstokens für Onedrive angefordert. Diese werden nur lokal auf dieser openWB gespeichert. Genutzt wird Device Flow mit public application. "),C,e(" https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-device-code "),y,e(" https://learn.microsoft.com/en-us/azure/active-directory/develop/msal-client-applications ")]),_:1}),t(r,{title:"2. Diesen Code kopieren",subtype:"text",readonly:"","model-value":a.configuration.authcode},null,8,["model-value"]),t(r,{title:"3. Anmelde-URL aufrufen",subtype:"url",readonly:"","model-value":a.configuration.authurl},{help:o(()=>[e(" Diese URL im Browser öffnen und den Code eingeben. Dies erzeugt die notwendigen Zugangsberechtigung für diese openWB. ")]),_:1},8,["model-value"]),t(p,{title:"4. Token abrufen und speichern",buttonText:"Autorisierungs-Token abrufen",subtype:"success",onButtonClicked:n[2]||(n[2]=l=>s.sendSystemCommand("retrieveMSALTokens",{}))},{help:o(()=>[e(" Zugangstoken wird abgerufen und gespeichert, damit das Backup durchgeführt werden kann. Zugangstoken werden nur lokal auf dieser openWB gespeichert. ")]),_:1})])}const W=b(h,[["render",A],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/onedrive/backup_cloud.vue"]]);export{W as default};
diff --git a/web/settings/assets/backup_cloud-e0f3013d.js b/web/settings/assets/backup_cloud-e0e3e868.js
similarity index 92%
rename from web/settings/assets/backup_cloud-e0f3013d.js
rename to web/settings/assets/backup_cloud-e0e3e868.js
index fc2a8560b3..e76537d187 100644
--- a/web/settings/assets/backup_cloud-e0f3013d.js
+++ b/web/settings/assets/backup_cloud-e0e3e868.js
@@ -1 +1 @@
-import{_ as p,p as d,k as c,l as m,A as o,L as l,u as i,q as _,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"BackupCloudNextCloud",emits:["update:configuration"],props:{configuration:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},b={class:"backup-cloud-nextcloud"},x={class:"small"};function k(n,e,u,C,w,a){const r=d("openwb-base-heading"),s=d("openwb-base-text-input");return c(),m("div",b,[o(r,null,{default:l(()=>[i(" Einstellungen für NextCloud-Backup Cloud "),_("span",x,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(s,{title:"Cloud-URL",subtype:"host",required:"","model-value":u.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.ip_address"))},{help:l(()=>[i(" Die Cloud-URL wird in der Form 'https://nextcloud-url' und Benutzername im Eingabefeld oder mit Zugangstoken erwartet. Die URL kann je nach NextCloud Installation so 'https://nextcloud-url/s/user_token' oder so 'https://nextcloud-url/index.php/s/user_token' aussehen. ")]),_:1},8,["model-value"]),o(s,{title:"Benutzername",subtype:"user","model-value":u.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),o(s,{title:"Passwort",subtype:"password","model-value":u.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>a.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const B=p(g,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/nextcloud/backup_cloud.vue"]]);export{B as default};
+import{_ as p,p as d,k as c,l as m,A as o,L as l,u as i,q as _,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"BackupCloudNextCloud",emits:["update:configuration"],props:{configuration:{type:Object,required:!0}},data(){return{}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},b={class:"backup-cloud-nextcloud"},x={class:"small"};function k(n,e,u,C,w,a){const r=d("openwb-base-heading"),s=d("openwb-base-text-input");return c(),m("div",b,[o(r,null,{default:l(()=>[i(" Einstellungen für NextCloud-Backup Cloud "),_("span",x,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(s,{title:"Cloud-URL",subtype:"host",required:"","model-value":u.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.ip_address"))},{help:l(()=>[i(" Die Cloud-URL wird in der Form 'https://nextcloud-url' und Benutzername im Eingabefeld oder mit Zugangstoken erwartet. Die URL kann je nach NextCloud Installation so 'https://nextcloud-url/s/user_token' oder so 'https://nextcloud-url/index.php/s/user_token' aussehen. ")]),_:1},8,["model-value"]),o(s,{title:"Benutzername",subtype:"user","model-value":u.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),o(s,{title:"Passwort",subtype:"password","model-value":u.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>a.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const B=p(g,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/backup_clouds/nextcloud/backup_cloud.vue"]]);export{B as default};
diff --git a/web/settings/assets/bat-2f8005f2.js b/web/settings/assets/bat-0e028baf.js
similarity index 96%
rename from web/settings/assets/bat-2f8005f2.js
rename to web/settings/assets/bat-0e028baf.js
index eb2fbcf9ce..f1414eb413 100644
--- a/web/settings/assets/bat-2f8005f2.js
+++ b/web/settings/assets/bat-0e028baf.js
@@ -1 +1 @@
-import{_ as h,p as u,k as p,l as c,A as i,L as r,u as e,q as a,x as g}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceHttpBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(s,t=void 0){this.$emit("update:configuration",{value:s,object:t})}}},b={class:"device-http-bat"},f={class:"small"},v=a("br",null,null,-1),w=a("br",null,null,-1),k=a("br",null,null,-1),S=a("br",null,null,-1),x=a("br",null,null,-1),z=a("br",null,null,-1);function Z(s,t,l,L,P,o){const m=u("openwb-base-heading"),d=u("openwb-base-text-input");return p(),c("div",b,[i(m,null,{default:r(()=>[e(" Einstellungen für Http Batteriespeicher "),a("span",f,"(Modul: "+g(s.$options.name)+")",1)]),_:1}),i(d,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":l.configuration.power_path,"onUpdate:modelValue":t[0]||(t[0]=n=>o.updateConfiguration(n,"configuration.power_path"))},{help:r(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),v,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ")]),_:1},8,["model-value"]),i(d,{title:"Pfad für Ladestand",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":l.configuration.soc_path,"onUpdate:modelValue":t[1]||(t[1]=n=>o.updateConfiguration(n,"configuration.soc_path"))},{help:r(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),w,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen Ladestand (SoC) in Prozent darstellt. ")]),_:1},8,["model-value"]),i(d,{title:"Pfad für Zählerstand laden",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":l.configuration.imported_path,"onUpdate:modelValue":t[2]||(t[2]=n=>o.updateConfiguration(n,"configuration.imported_path"))},{help:r(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),k,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),S,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"]),i(d,{title:"Pfad für Zählerstand entladen",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":l.configuration.exported_path,"onUpdate:modelValue":t[3]||(t[3]=n=>o.updateConfiguration(n,"configuration.exported_path"))},{help:r(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),x,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),z,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"])])}const C=h(_,[["render",Z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/bat.vue"]]);export{C as default};
+import{_ as h,p as u,k as p,l as c,A as i,L as r,u as e,q as a,x as g}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceHttpBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(s,t=void 0){this.$emit("update:configuration",{value:s,object:t})}}},b={class:"device-http-bat"},f={class:"small"},v=a("br",null,null,-1),w=a("br",null,null,-1),k=a("br",null,null,-1),S=a("br",null,null,-1),x=a("br",null,null,-1),z=a("br",null,null,-1);function Z(s,t,l,L,P,o){const m=u("openwb-base-heading"),d=u("openwb-base-text-input");return p(),c("div",b,[i(m,null,{default:r(()=>[e(" Einstellungen für Http Batteriespeicher "),a("span",f,"(Modul: "+g(s.$options.name)+")",1)]),_:1}),i(d,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":l.configuration.power_path,"onUpdate:modelValue":t[0]||(t[0]=n=>o.updateConfiguration(n,"configuration.power_path"))},{help:r(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),v,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ")]),_:1},8,["model-value"]),i(d,{title:"Pfad für Ladestand",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":l.configuration.soc_path,"onUpdate:modelValue":t[1]||(t[1]=n=>o.updateConfiguration(n,"configuration.soc_path"))},{help:r(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),w,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen Ladestand (SoC) in Prozent darstellt. ")]),_:1},8,["model-value"]),i(d,{title:"Pfad für Zählerstand laden",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":l.configuration.imported_path,"onUpdate:modelValue":t[2]||(t[2]=n=>o.updateConfiguration(n,"configuration.imported_path"))},{help:r(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),k,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),S,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"]),i(d,{title:"Pfad für Zählerstand entladen",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":l.configuration.exported_path,"onUpdate:modelValue":t[3]||(t[3]=n=>o.updateConfiguration(n,"configuration.exported_path"))},{help:r(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),x,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),z,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"])])}const C=h(_,[["render",Z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/bat.vue"]]);export{C as default};
diff --git a/web/settings/assets/bat-904c9172.js b/web/settings/assets/bat-0eeeca9c.js
similarity index 85%
rename from web/settings/assets/bat-904c9172.js
rename to web/settings/assets/bat-0eeeca9c.js
index 45e732be06..919c115297 100644
--- a/web/settings/assets/bat-904c9172.js
+++ b/web/settings/assets/bat-0eeeca9c.js
@@ -1 +1 @@
-import{_ as r,p as n,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceLGBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-lg-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für LG ESS V1.0 Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/bat.vue"]]);export{x as default};
+import{_ as r,p as n,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceLGBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-lg-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für LG ESS V1.0 Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/bat.vue"]]);export{x as default};
diff --git a/web/settings/assets/bat-3980db8f.js b/web/settings/assets/bat-17d0ebe7.js
similarity index 86%
rename from web/settings/assets/bat-3980db8f.js
rename to web/settings/assets/bat-17d0ebe7.js
index db69e69cf2..2eab1a3c13 100644
--- a/web/settings/assets/bat-3980db8f.js
+++ b/web/settings/assets/bat-17d0ebe7.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as d,A as o,L as a,u as s,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceBatterXBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-batterx-bat"},f={class:"small"};function m(e,t,g,h,v,B){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",b,[o(i,null,{default:a(()=>[s(" Einstellungen für BatterX Batteriespeicher "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/bat.vue"]]);export{$ as default};
+import{_ as c,p as n,k as p,l as d,A as o,L as a,u as s,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceBatterXBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-batterx-bat"},f={class:"small"};function m(e,t,g,h,v,B){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",b,[o(i,null,{default:a(()=>[s(" Einstellungen für BatterX Batteriespeicher "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/bat.vue"]]);export{$ as default};
diff --git a/web/settings/assets/bat-6fcf71db.js b/web/settings/assets/bat-22a2eeff.js
similarity index 86%
rename from web/settings/assets/bat-6fcf71db.js
rename to web/settings/assets/bat-22a2eeff.js
index c24006c1c6..e892c99cb4 100644
--- a/web/settings/assets/bat-6fcf71db.js
+++ b/web/settings/assets/bat-22a2eeff.js
@@ -1 +1 @@
-import{_ as d,p as n,k as c,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceStuderBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-studer-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return c(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Studer Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=d(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/bat.vue"]]);export{x as default};
+import{_ as d,p as n,k as c,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceStuderBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-studer-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return c(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Studer Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=d(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/bat.vue"]]);export{x as default};
diff --git a/web/settings/assets/bat-f9178e22.js b/web/settings/assets/bat-268a0365.js
similarity index 94%
rename from web/settings/assets/bat-f9178e22.js
rename to web/settings/assets/bat-268a0365.js
index 4b716ad31c..f05cbdfff0 100644
--- a/web/settings/assets/bat-f9178e22.js
+++ b/web/settings/assets/bat-268a0365.js
@@ -1 +1 @@
-import{_ as m,p as u,k as f,l as g,A as n,L as d,u as o,q as s,x as c}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceJsonBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(l,e=void 0){this.$emit("update:configuration",{value:l,object:e})}}},b={class:"device-json-bat"},v={class:"small"},w=s("br",null,null,-1);function h(l,e,a,j,q,i){const p=u("openwb-base-heading"),r=u("openwb-base-text-input");return f(),g("div",b,[n(p,null,{default:d(()=>[o(" Einstellungen für JSON Batteriespeicher "),s("span",v,"(Modul: "+c(l.$options.name)+")",1)]),_:1}),n(r,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":a.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"configuration.jq_power"))},{help:d(()=>[o(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. '),w,o(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt (positiv Ladung, negativ Entladung) darstellt. ")]),_:1},8,["model-value"]),n(r,{title:"Abfrage für Ladestand",subtype:"text",required:"","model-value":a.configuration.jq_soc,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"configuration.jq_soc"))},null,8,["model-value"]),n(r,{title:"Abfrage für Zählerstand Ladung",subtype:"text","model-value":a.configuration.jq_imported,"onUpdate:modelValue":e[2]||(e[2]=t=>i.updateConfiguration(t,"configuration.jq_imported"))},{help:d(()=>[o(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"]),n(r,{title:"Abfrage für Zählerstand Entladung",subtype:"text","model-value":a.configuration.jq_exported,"onUpdate:modelValue":e[3]||(e[3]=t=>i.updateConfiguration(t,"configuration.jq_exported"))},{help:d(()=>[o(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"])])}const P=m(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/bat.vue"]]);export{P as default};
+import{_ as m,p as u,k as f,l as g,A as n,L as d,u as o,q as s,x as c}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceJsonBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(l,e=void 0){this.$emit("update:configuration",{value:l,object:e})}}},b={class:"device-json-bat"},v={class:"small"},w=s("br",null,null,-1);function h(l,e,a,j,q,i){const p=u("openwb-base-heading"),r=u("openwb-base-text-input");return f(),g("div",b,[n(p,null,{default:d(()=>[o(" Einstellungen für JSON Batteriespeicher "),s("span",v,"(Modul: "+c(l.$options.name)+")",1)]),_:1}),n(r,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":a.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"configuration.jq_power"))},{help:d(()=>[o(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. '),w,o(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt (positiv Ladung, negativ Entladung) darstellt. ")]),_:1},8,["model-value"]),n(r,{title:"Abfrage für Ladestand",subtype:"text",required:"","model-value":a.configuration.jq_soc,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"configuration.jq_soc"))},null,8,["model-value"]),n(r,{title:"Abfrage für Zählerstand Ladung",subtype:"text","model-value":a.configuration.jq_imported,"onUpdate:modelValue":e[2]||(e[2]=t=>i.updateConfiguration(t,"configuration.jq_imported"))},{help:d(()=>[o(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"]),n(r,{title:"Abfrage für Zählerstand Entladung",subtype:"text","model-value":a.configuration.jq_exported,"onUpdate:modelValue":e[3]||(e[3]=t=>i.updateConfiguration(t,"configuration.jq_exported"))},{help:d(()=>[o(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"])])}const P=m(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/bat.vue"]]);export{P as default};
diff --git a/web/settings/assets/bat-3d2b7acc.js b/web/settings/assets/bat-27edc2dc.js
similarity index 88%
rename from web/settings/assets/bat-3d2b7acc.js
rename to web/settings/assets/bat-27edc2dc.js
index 12b06b8e58..2c328ac44d 100644
--- a/web/settings/assets/bat-3d2b7acc.js
+++ b/web/settings/assets/bat-27edc2dc.js
@@ -1 +1 @@
-import{_ as d,p as n,k as p,l as r,A as o,L as c,u as _,q as m,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceOpenwbEvukitBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-evukit-bat"},g={class:"small"};function w(t,e,a,h,x,i){const s=n("openwb-base-heading"),u=n("openwb-base-select-input");return p(),r("div",b,[o(s,null,{default:c(()=>[_(" Einstellungen für openWB EVU-Kit Batteriespeicher "),m("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(u,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>i.updateConfiguration(l,"configuration.version"))},null,8,["model-value"])])}const k=d(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/bat.vue"]]);export{k as default};
+import{_ as d,p as n,k as p,l as r,A as o,L as c,u as _,q as m,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceOpenwbEvukitBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-evukit-bat"},g={class:"small"};function w(t,e,a,h,x,i){const s=n("openwb-base-heading"),u=n("openwb-base-select-input");return p(),r("div",b,[o(s,null,{default:c(()=>[_(" Einstellungen für openWB EVU-Kit Batteriespeicher "),m("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(u,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>i.updateConfiguration(l,"configuration.version"))},null,8,["model-value"])])}const k=d(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/bat.vue"]]);export{k as default};
diff --git a/web/settings/assets/bat-d1af67af.js b/web/settings/assets/bat-39b4c6ba.js
similarity index 85%
rename from web/settings/assets/bat-d1af67af.js
rename to web/settings/assets/bat-39b4c6ba.js
index 44165f8fe1..b40184f075 100644
--- a/web/settings/assets/bat-d1af67af.js
+++ b/web/settings/assets/bat-39b4c6ba.js
@@ -1 +1 @@
-import{_ as r,p as n,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceBYDBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-byd-bat"},f={class:"small"};function m(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return d(),p("div",b,[o(i,null,{default:s(()=>[a(" Einstellungen für BYD Batteriespeicher "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=r(_,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/byd/bat.vue"]]);export{x as default};
+import{_ as r,p as n,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceBYDBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-byd-bat"},f={class:"small"};function m(e,t,g,h,v,B){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return d(),p("div",b,[o(i,null,{default:s(()=>[a(" Einstellungen für BYD Batteriespeicher "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=r(_,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/byd/bat.vue"]]);export{x as default};
diff --git a/web/settings/assets/bat-212960fc.js b/web/settings/assets/bat-3af1a10a.js
similarity index 94%
rename from web/settings/assets/bat-212960fc.js
rename to web/settings/assets/bat-3af1a10a.js
index fe61d44def..6cb034705e 100644
--- a/web/settings/assets/bat-212960fc.js
+++ b/web/settings/assets/bat-3af1a10a.js
@@ -1 +1 @@
-import{_ as u,p as c,k as _,l as m,A as n,L as o,u as t,q as e,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const h={name:"DeviceMqttBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(a,d=void 0){this.$emit("update:configuration",{value:a,object:d})}}},b={class:"device-mqtt-bat"},f={class:"small"},g=e("br",null,null,-1),k=e("br",null,null,-1),x=e("span",{class:"text-info"},"-123",-1),B=e("br",null,null,-1),v=e("br",null,null,-1),I=e("span",{class:"text-info"},"123.45",-1),w=e("br",null,null,-1),W=e("br",null,null,-1),z=e("span",{class:"text-info"},"123.45",-1),N=e("br",null,null,-1),T=e("br",null,null,-1),q=e("span",{class:"text-info"},"95",-1);function D(a,d,i,E,y,F){const p=c("openwb-base-heading"),s=c("openwb-base-copy-to-clipboard"),r=c("openwb-base-alert");return _(),m("div",b,[n(p,null,{default:o(()=>[t(" Einstellungen für MQTT Batteriespeicher "),e("span",f,"(Modul: "+l(a.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:o(()=>[e("ul",null,[e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/power",1)]),_:1}),g,t(" Speicherleistung in Watt, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, positiv Ladung, negativ Entladung"),k,t(" Beispiel: "),x]),e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/imported",1)]),_:1}),B,t(" Geladene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),v,t(" Beispiel: "),I]),e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/exported",1)]),_:1}),w,t(" Entladene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),W,t(" Beispiel: "),z]),e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/soc",1)]),_:1}),N,t(" Ladestand des Speichers, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, gültige Werte 0 bis 100"),T,t(" Beispiel: "),q])])]),_:1})])}const C=u(h,[["render",D],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/bat.vue"]]);export{C as default};
+import{_ as u,p as c,k as _,l as m,A as n,L as o,u as t,q as e,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const h={name:"DeviceMqttBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(a,d=void 0){this.$emit("update:configuration",{value:a,object:d})}}},b={class:"device-mqtt-bat"},f={class:"small"},g=e("br",null,null,-1),k=e("br",null,null,-1),x=e("span",{class:"text-info"},"-123",-1),B=e("br",null,null,-1),v=e("br",null,null,-1),I=e("span",{class:"text-info"},"123.45",-1),w=e("br",null,null,-1),W=e("br",null,null,-1),z=e("span",{class:"text-info"},"123.45",-1),N=e("br",null,null,-1),T=e("br",null,null,-1),q=e("span",{class:"text-info"},"95",-1);function D(a,d,i,E,y,F){const p=c("openwb-base-heading"),s=c("openwb-base-copy-to-clipboard"),r=c("openwb-base-alert");return _(),m("div",b,[n(p,null,{default:o(()=>[t(" Einstellungen für MQTT Batteriespeicher "),e("span",f,"(Modul: "+l(a.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:o(()=>[e("ul",null,[e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/power",1)]),_:1}),g,t(" Speicherleistung in Watt, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, positiv Ladung, negativ Entladung"),k,t(" Beispiel: "),x]),e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/imported",1)]),_:1}),B,t(" Geladene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),v,t(" Beispiel: "),I]),e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/exported",1)]),_:1}),w,t(" Entladene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),W,t(" Beispiel: "),z]),e("li",null,[n(s,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/bat/"+l(i.componentId)+"/get/soc",1)]),_:1}),N,t(" Ladestand des Speichers, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, gültige Werte 0 bis 100"),T,t(" Beispiel: "),q])])]),_:1})])}const C=u(h,[["render",D],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/bat.vue"]]);export{C as default};
diff --git a/web/settings/assets/bat-ac5ee104.js b/web/settings/assets/bat-3f0ca072.js
similarity index 87%
rename from web/settings/assets/bat-ac5ee104.js
rename to web/settings/assets/bat-3f0ca072.js
index 6010f5cbb2..ed5cf761ec 100644
--- a/web/settings/assets/bat-ac5ee104.js
+++ b/web/settings/assets/bat-3f0ca072.js
@@ -1 +1 @@
-import{_ as d,p as t,k as c,l as p,A as o,L as l,u as m,q as _,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceFemsBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-fems-bat"},v={class:"small"};function h(n,e,a,w,x,i){const s=t("openwb-base-heading"),r=t("openwb-base-number-input");return c(),p("div",g,[o(s,null,{default:l(()=>[m(" Einstellungen für openEMS, Fenecon FEMS, Kaco Hy-Control Batteriespeicher "),_("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(r,{title:"Anzahl der verbauten Speicher",required:"",min:1,max:2,"model-value":a.configuration.num,"onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.num"))},null,8,["model-value"])])}const q=d(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/bat.vue"]]);export{q as default};
+import{_ as d,p as t,k as c,l as p,A as o,L as l,u as m,q as _,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceFemsBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-fems-bat"},v={class:"small"};function h(n,e,a,w,x,i){const s=t("openwb-base-heading"),r=t("openwb-base-number-input");return c(),p("div",g,[o(s,null,{default:l(()=>[m(" Einstellungen für openEMS, Fenecon FEMS, Kaco Hy-Control Batteriespeicher "),_("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(r,{title:"Anzahl der verbauten Speicher",required:"",min:1,max:2,"model-value":a.configuration.num,"onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.num"))},null,8,["model-value"])])}const q=d(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/bat.vue"]]);export{q as default};
diff --git a/web/settings/assets/bat-ccba567b.js b/web/settings/assets/bat-46c566c9.js
similarity index 86%
rename from web/settings/assets/bat-ccba567b.js
rename to web/settings/assets/bat-46c566c9.js
index fa4a7c0253..0c3051bc97 100644
--- a/web/settings/assets/bat-ccba567b.js
+++ b/web/settings/assets/bat-46c566c9.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as d,A as o,L as a,u as s,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceHuaweiBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-huawei-bat"},m={class:"small"};function b(e,t,h,g,w,v){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Huawei Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/bat.vue"]]);export{x as default};
+import{_ as c,p as n,k as p,l as d,A as o,L as a,u as s,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceHuaweiBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-huawei-bat"},m={class:"small"};function b(e,t,h,g,w,v){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Huawei Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/bat.vue"]]);export{x as default};
diff --git a/web/settings/assets/bat-8af3358d.js b/web/settings/assets/bat-4b1f210f.js
similarity index 86%
rename from web/settings/assets/bat-8af3358d.js
rename to web/settings/assets/bat-4b1f210f.js
index 51c0da0e7a..8713f83f3f 100644
--- a/web/settings/assets/bat-8af3358d.js
+++ b/web/settings/assets/bat-4b1f210f.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as d,A as o,L as a,u as s,q as l,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSolarwattBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solarwatt-bat"},m={class:"small"};function b(e,t,g,v,w,h){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Solarwatt/My Reserve Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/bat.vue"]]);export{x as default};
+import{_ as c,p as n,k as p,l as d,A as o,L as a,u as s,q as l,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSolarwattBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solarwatt-bat"},m={class:"small"};function b(e,t,g,v,w,h){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Solarwatt/My Reserve Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/bat.vue"]]);export{x as default};
diff --git a/web/settings/assets/bat-80bc8859.js b/web/settings/assets/bat-514861df.js
similarity index 87%
rename from web/settings/assets/bat-80bc8859.js
rename to web/settings/assets/bat-514861df.js
index f39ba7fd7c..a3a7a1a2bc 100644
--- a/web/settings/assets/bat-80bc8859.js
+++ b/web/settings/assets/bat-514861df.js
@@ -1 +1 @@
-import{_ as d,p as n,k as c,l as p,A as o,L as l,u as m,q as _,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceFroniusBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-fronius-bat"},v={class:"small"};function h(t,e,a,w,x,i){const s=n("openwb-base-heading"),r=n("openwb-base-number-input");return c(),p("div",g,[o(s,null,{default:l(()=>[m(" Einstellungen für Fronius Batteriespeicher "),_("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(r,{title:"Meter ID",required:"",min:"0",max:"65535","model-value":a.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.meter_id"))},null,8,["model-value"])])}const C=d(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/bat.vue"]]);export{C as default};
+import{_ as d,p as n,k as c,l as p,A as o,L as l,u as m,q as _,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceFroniusBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-fronius-bat"},v={class:"small"};function h(t,e,a,w,x,i){const s=n("openwb-base-heading"),r=n("openwb-base-number-input");return c(),p("div",g,[o(s,null,{default:l(()=>[m(" Einstellungen für Fronius Batteriespeicher "),_("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(r,{title:"Meter ID",required:"",min:"0",max:"65535","model-value":a.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.meter_id"))},null,8,["model-value"])])}const C=d(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/bat.vue"]]);export{C as default};
diff --git a/web/settings/assets/bat-12170e78.js b/web/settings/assets/bat-595642c8.js
similarity index 86%
rename from web/settings/assets/bat-12170e78.js
rename to web/settings/assets/bat-595642c8.js
index deec001c7a..e0d56cb380 100644
--- a/web/settings/assets/bat-12170e78.js
+++ b/web/settings/assets/bat-595642c8.js
@@ -1 +1 @@
-import{_ as p,p as o,k as c,l as d,A as n,L as a,u as s,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSaxpowerBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-saxpower-bat"},m={class:"small"};function b(e,t,g,w,h,v){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return c(),d("div",f,[n(i,null,{default:a(()=>[s(" Einstellungen für Saxpower Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const $=p(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/saxpower/bat.vue"]]);export{$ as default};
+import{_ as p,p as o,k as c,l as d,A as n,L as a,u as s,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSaxpowerBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-saxpower-bat"},m={class:"small"};function b(e,t,g,w,h,v){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return c(),d("div",f,[n(i,null,{default:a(()=>[s(" Einstellungen für Saxpower Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const $=p(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/saxpower/bat.vue"]]);export{$ as default};
diff --git a/web/settings/assets/bat-815fdbb1.js b/web/settings/assets/bat-5b22e35d.js
similarity index 88%
rename from web/settings/assets/bat-815fdbb1.js
rename to web/settings/assets/bat-5b22e35d.js
index c29059d65d..7a56796c9e 100644
--- a/web/settings/assets/bat-815fdbb1.js
+++ b/web/settings/assets/bat-5b22e35d.js
@@ -1 +1 @@
-import{_ as d,p as o,k as c,l as p,A as n,L as l,u as m,q as _,x as g}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceHuaweiSmartLoggerBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},f={class:"device-huawei-smart-logger-bat"},v={class:"small"};function w(t,e,a,h,x,i){const s=o("openwb-base-heading"),r=o("openwb-base-number-input");return c(),p("div",f,[n(s,null,{default:l(()=>[m(" Einstellungen für Huawei SmartLogger Batteriespeicher "),_("span",v,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),n(r,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.modbus_id"))},null,8,["model-value"])])}const V=d(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/bat.vue"]]);export{V as default};
+import{_ as d,p as o,k as c,l as p,A as n,L as l,u as m,q as _,x as g}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceHuaweiSmartLoggerBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},f={class:"device-huawei-smart-logger-bat"},v={class:"small"};function w(t,e,a,h,x,i){const s=o("openwb-base-heading"),r=o("openwb-base-number-input");return c(),p("div",f,[n(s,null,{default:l(()=>[m(" Einstellungen für Huawei SmartLogger Batteriespeicher "),_("span",v,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),n(r,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.modbus_id"))},null,8,["model-value"])])}const V=d(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/bat.vue"]]);export{V as default};
diff --git a/web/settings/assets/bat-180a64ef.js b/web/settings/assets/bat-6c62c4f0.js
similarity index 87%
rename from web/settings/assets/bat-180a64ef.js
rename to web/settings/assets/bat-6c62c4f0.js
index ecf82c57ba..aeea08efa9 100644
--- a/web/settings/assets/bat-180a64ef.js
+++ b/web/settings/assets/bat-6c62c4f0.js
@@ -1 +1 @@
-import{_ as u,p as n,k as c,l as p,A as o,L as l,u as m,q as _,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const f={name:"DeviceVictronBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-victron-bat"},g={class:"small"};function h(t,e,a,w,x,i){const s=n("openwb-base-heading"),r=n("openwb-base-number-input");return c(),p("div",v,[o(s,null,{default:l(()=>[m(" Einstellungen für Victron Batteriespeicher "),_("span",g,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(r,{title:"Modbus-ID",min:1,max:255,required:"","model-value":a.configuration.modbus_id,"onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const q=u(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/bat.vue"]]);export{q as default};
+import{_ as u,p as n,k as c,l as p,A as o,L as l,u as m,q as _,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const f={name:"DeviceVictronBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-victron-bat"},g={class:"small"};function h(t,e,a,w,x,i){const s=n("openwb-base-heading"),r=n("openwb-base-number-input");return c(),p("div",v,[o(s,null,{default:l(()=>[m(" Einstellungen für Victron Batteriespeicher "),_("span",g,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(r,{title:"Modbus-ID",min:1,max:255,required:"","model-value":a.configuration.modbus_id,"onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const q=u(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/bat.vue"]]);export{q as default};
diff --git a/web/settings/assets/bat-3dbfaf1b.js b/web/settings/assets/bat-7500700f.js
similarity index 86%
rename from web/settings/assets/bat-3dbfaf1b.js
rename to web/settings/assets/bat-7500700f.js
index ef094f8082..57e6ebcc73 100644
--- a/web/settings/assets/bat-3dbfaf1b.js
+++ b/web/settings/assets/bat-7500700f.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSungrowBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-sungrow-bat"},m={class:"small"};function b(e,t,g,w,h,v){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Sungrow Speicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/bat.vue"]]);export{B as default};
+import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSungrowBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-sungrow-bat"},m={class:"small"};function b(e,t,g,w,h,v){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Sungrow Speicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/bat.vue"]]);export{B as default};
diff --git a/web/settings/assets/bat-fd9f4fe4.js b/web/settings/assets/bat-874f748e.js
similarity index 86%
rename from web/settings/assets/bat-fd9f4fe4.js
rename to web/settings/assets/bat-874f748e.js
index a11993f1ff..d5606f7edd 100644
--- a/web/settings/assets/bat-fd9f4fe4.js
+++ b/web/settings/assets/bat-874f748e.js
@@ -1 +1 @@
-import{_ as c,p as o,k as r,l as p,A as n,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceGoodWeBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-goodwe-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=o("openwb-base-heading"),d=o("openwb-base-alert");return r(),p("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für GoodWe Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(d,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/bat.vue"]]);export{x as default};
+import{_ as c,p as o,k as r,l as p,A as n,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceGoodWeBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-goodwe-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=o("openwb-base-heading"),d=o("openwb-base-alert");return r(),p("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für GoodWe Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(d,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/bat.vue"]]);export{x as default};
diff --git a/web/settings/assets/bat-f30697e9.js b/web/settings/assets/bat-8c7d349e.js
similarity index 86%
rename from web/settings/assets/bat-f30697e9.js
rename to web/settings/assets/bat-8c7d349e.js
index e4923320df..5af2d39614 100644
--- a/web/settings/assets/bat-f30697e9.js
+++ b/web/settings/assets/bat-8c7d349e.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as d,A as o,L as a,u as s,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSonnenbatterieBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-sonnenbatterie-bat"},b={class:"small"};function m(e,t,g,h,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für SonnenBatterie Speicher "),u("span",b,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/bat.vue"]]);export{x as default};
+import{_ as c,p as n,k as p,l as d,A as o,L as a,u as s,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSonnenbatterieBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-sonnenbatterie-bat"},b={class:"small"};function m(e,t,g,h,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für SonnenBatterie Speicher "),u("span",b,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/bat.vue"]]);export{x as default};
diff --git a/web/settings/assets/bat-9ff121c5.js b/web/settings/assets/bat-93524d1b.js
similarity index 86%
rename from web/settings/assets/bat-9ff121c5.js
rename to web/settings/assets/bat-93524d1b.js
index 32f773d874..4afcc48dd6 100644
--- a/web/settings/assets/bat-9ff121c5.js
+++ b/web/settings/assets/bat-93524d1b.js
@@ -1 +1 @@
-import{_ as c,p as o,k as p,l as d,A as n,L as a,u as s,q as l,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSolaxBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solax-bat"},m={class:"small"};function b(e,t,g,h,v,x){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return p(),d("div",f,[n(i,null,{default:a(()=>[s(" Einstellungen für Solax Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/bat.vue"]]);export{$ as default};
+import{_ as c,p as o,k as p,l as d,A as n,L as a,u as s,q as l,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSolaxBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solax-bat"},m={class:"small"};function b(e,t,g,h,v,x){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return p(),d("div",f,[n(i,null,{default:a(()=>[s(" Einstellungen für Solax Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/bat.vue"]]);export{$ as default};
diff --git a/web/settings/assets/bat-f75dd877.js b/web/settings/assets/bat-9894d537.js
similarity index 86%
rename from web/settings/assets/bat-f75dd877.js
rename to web/settings/assets/bat-9894d537.js
index 6d8c8c9075..d3b68b5ff1 100644
--- a/web/settings/assets/bat-f75dd877.js
+++ b/web/settings/assets/bat-9894d537.js
@@ -1 +1 @@
-import{_ as r,p as n,k as p,l as d,A as o,L as s,u as a,q as l,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceTeslaBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-tesla-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Tesla Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/bat.vue"]]);export{x as default};
+import{_ as r,p as n,k as p,l as d,A as o,L as s,u as a,q as l,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceTeslaBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-tesla-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Tesla Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/bat.vue"]]);export{x as default};
diff --git a/web/settings/assets/bat-ba791935.js b/web/settings/assets/bat-aaf46348.js
similarity index 90%
rename from web/settings/assets/bat-ba791935.js
rename to web/settings/assets/bat-aaf46348.js
index 2903f3ec33..d075a824d0 100644
--- a/web/settings/assets/bat-ba791935.js
+++ b/web/settings/assets/bat-aaf46348.js
@@ -1 +1 @@
-import{_ as r,p as o,k as p,l as c,A as a,L as m,u as _,q as b,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceOpenwbFlexBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-openwb-flex-bat"},x={class:"small"};function w(t,e,i,M,B,s){const u=o("openwb-base-heading"),l=o("openwb-base-select-input"),d=o("openwb-base-number-input");return p(),c("div",g,[a(u,null,{default:m(()=>[_(" Einstellungen für openWB-Flex Batteriespeicher "),b("span",x,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),a(l,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.version"))},null,8,["model-value"]),a(d,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":i.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.id"))},null,8,["model-value"])])}const C=r(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/bat.vue"]]);export{C as default};
+import{_ as r,p as o,k as p,l as c,A as a,L as m,u as _,q as b,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceOpenwbFlexBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-openwb-flex-bat"},x={class:"small"};function w(t,e,i,M,B,s){const u=o("openwb-base-heading"),l=o("openwb-base-select-input"),d=o("openwb-base-number-input");return p(),c("div",g,[a(u,null,{default:m(()=>[_(" Einstellungen für openWB-Flex Batteriespeicher "),b("span",x,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),a(l,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.version"))},null,8,["model-value"]),a(d,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":i.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.id"))},null,8,["model-value"])])}const C=r(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/bat.vue"]]);export{C as default};
diff --git a/web/settings/assets/bat-b91f4e63.js b/web/settings/assets/bat-b2de0630.js
similarity index 90%
rename from web/settings/assets/bat-b91f4e63.js
rename to web/settings/assets/bat-b2de0630.js
index d8cb8ea4dc..5ad08e372b 100644
--- a/web/settings/assets/bat-b91f4e63.js
+++ b/web/settings/assets/bat-b2de0630.js
@@ -1 +1 @@
-import{_ as p,p as n,k as m,l as _,A as o,L as a,u as s,q as b,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceSolarmaxBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},h={class:"device-solarmax-bat"},v={class:"small"};function x(t,e,i,w,A,r){const d=n("openwb-base-heading"),u=n("openwb-base-alert"),l=n("openwb-base-number-input");return m(),_("div",h,[o(d,null,{default:a(()=>[s(" Einstellungen für Solarmax MAX.STORAGE / MAX.STORAGE Ultimate Batteriespeicher "),b("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:a(()=>[s(" Solarmax MAX.STORAGE / MAX.STORAGE Ultimate Batteriespeicher sind Teil eines Hybridsystems. Daher muss auch eine Komponente Wechselrichter angelegt werden. ")]),_:1}),o(l,{title:"Modbus ID","model-value":i.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.modbus_id"))},null,8,["model-value"])])}const E=p(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/bat.vue"]]);export{E as default};
+import{_ as p,p as n,k as m,l as _,A as o,L as a,u as s,q as b,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceSolarmaxBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},h={class:"device-solarmax-bat"},v={class:"small"};function x(t,e,i,w,A,r){const d=n("openwb-base-heading"),u=n("openwb-base-alert"),l=n("openwb-base-number-input");return m(),_("div",h,[o(d,null,{default:a(()=>[s(" Einstellungen für Solarmax MAX.STORAGE / MAX.STORAGE Ultimate Batteriespeicher "),b("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:a(()=>[s(" Solarmax MAX.STORAGE / MAX.STORAGE Ultimate Batteriespeicher sind Teil eines Hybridsystems. Daher muss auch eine Komponente Wechselrichter angelegt werden. ")]),_:1}),o(l,{title:"Modbus ID","model-value":i.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.modbus_id"))},null,8,["model-value"])])}const E=p(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/bat.vue"]]);export{E as default};
diff --git a/web/settings/assets/bat-3e58123d.js b/web/settings/assets/bat-bbb09227.js
similarity index 88%
rename from web/settings/assets/bat-3e58123d.js
rename to web/settings/assets/bat-bbb09227.js
index 2a91e5a279..048346b8c8 100644
--- a/web/settings/assets/bat-3e58123d.js
+++ b/web/settings/assets/bat-bbb09227.js
@@ -1 +1 @@
-import{_ as d,p as n,k as p,l as r,A as o,L as c,u as _,q as m,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const f={name:"DeviceOpenwbEvukitBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-openwb-batkit-bat"},g={class:"small"};function w(t,e,a,h,x,i){const s=n("openwb-base-heading"),u=n("openwb-base-select-input");return p(),r("div",v,[o(s,null,{default:c(()=>[_(" Einstellungen für openWB EVU-Kit Batteriespeicher "),m("span",g,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(u,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>i.updateConfiguration(l,"configuration.version"))},null,8,["model-value"])])}const k=d(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_bat_kit/bat.vue"]]);export{k as default};
+import{_ as d,p as n,k as p,l as r,A as o,L as c,u as _,q as m,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const f={name:"DeviceOpenwbEvukitBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-openwb-batkit-bat"},g={class:"small"};function w(t,e,a,h,x,i){const s=n("openwb-base-heading"),u=n("openwb-base-select-input");return p(),r("div",v,[o(s,null,{default:c(()=>[_(" Einstellungen für openWB EVU-Kit Batteriespeicher "),m("span",g,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(u,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"SDM120"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>i.updateConfiguration(l,"configuration.version"))},null,8,["model-value"])])}const k=d(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_bat_kit/bat.vue"]]);export{k as default};
diff --git a/web/settings/assets/bat-4b5ddf83.js b/web/settings/assets/bat-ce4aa848.js
similarity index 86%
rename from web/settings/assets/bat-4b5ddf83.js
rename to web/settings/assets/bat-ce4aa848.js
index 73960395ed..019ccae4e5 100644
--- a/web/settings/assets/bat-4b5ddf83.js
+++ b/web/settings/assets/bat-ce4aa848.js
@@ -1 +1 @@
-import{_ as d,p as t,k as c,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSunnyIslandBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sunnyisland-bat"},m={class:"small"};function b(e,n,g,h,v,y){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return c(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Sunny Island Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const $=d(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_island/bat.vue"]]);export{$ as default};
+import{_ as d,p as t,k as c,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSunnyIslandBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sunnyisland-bat"},m={class:"small"};function b(e,n,g,h,v,y){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return c(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Sunny Island Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const $=d(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_island/bat.vue"]]);export{$ as default};
diff --git a/web/settings/assets/bat-4320b5cc.js b/web/settings/assets/bat-d04d3f5b.js
similarity index 85%
rename from web/settings/assets/bat-4320b5cc.js
rename to web/settings/assets/bat-d04d3f5b.js
index 369fb80979..6e7bf64c51 100644
--- a/web/settings/assets/bat-4320b5cc.js
+++ b/web/settings/assets/bat-d04d3f5b.js
@@ -1 +1 @@
-import{_ as d,p as n,k as r,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceE3dcBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return r(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für E3DC Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=d(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/bat.vue"]]);export{x as default};
+import{_ as d,p as n,k as r,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceE3dcBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return r(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für E3DC Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=d(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/bat.vue"]]);export{x as default};
diff --git a/web/settings/assets/bat-a92f022e.js b/web/settings/assets/bat-d94203e2.js
similarity index 86%
rename from web/settings/assets/bat-a92f022e.js
rename to web/settings/assets/bat-d94203e2.js
index 6237fab3e0..c52e9795d4 100644
--- a/web/settings/assets/bat-a92f022e.js
+++ b/web/settings/assets/bat-d94203e2.js
@@ -1 +1 @@
-import{_ as c,p as n,k as r,l as d,A as o,L as s,u as a,q as l,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceAlphaessBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-alphaess-bat"},m={class:"small"};function b(e,t,h,g,v,w){const i=n("openwb-base-heading"),p=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Alpha ESS Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/bat.vue"]]);export{x as default};
+import{_ as c,p as n,k as r,l as d,A as o,L as s,u as a,q as l,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceAlphaessBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-alphaess-bat"},m={class:"small"};function b(e,t,h,g,v,w){const i=n("openwb-base-heading"),p=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Alpha ESS Batteriespeicher "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/bat.vue"]]);export{x as default};
diff --git a/web/settings/assets/bat-557284f3.js b/web/settings/assets/bat-df8e198a.js
similarity index 86%
rename from web/settings/assets/bat-557284f3.js
rename to web/settings/assets/bat-df8e198a.js
index 859f6b4c1b..573eabf98d 100644
--- a/web/settings/assets/bat-557284f3.js
+++ b/web/settings/assets/bat-df8e198a.js
@@ -1 +1 @@
-import{_ as r,p as n,k as l,l as p,A as o,L as s,u as a,q as d,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceQCelllsBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-qcells-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return l(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für QCells ESS Batteriespeicher "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const q=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/bat.vue"]]);export{q as default};
+import{_ as r,p as n,k as l,l as p,A as o,L as s,u as a,q as d,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceQCelllsBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-qcells-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return l(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für QCells ESS Batteriespeicher "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const q=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/bat.vue"]]);export{q as default};
diff --git a/web/settings/assets/bat-cbc92919.js b/web/settings/assets/bat-e62d7b1e.js
similarity index 86%
rename from web/settings/assets/bat-cbc92919.js
rename to web/settings/assets/bat-e62d7b1e.js
index 3e76c6784c..9f0356aaa4 100644
--- a/web/settings/assets/bat-cbc92919.js
+++ b/web/settings/assets/bat-e62d7b1e.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSiemensBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-siemens-bat"},f={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für Siemens Batteriespeicher "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/bat.vue"]]);export{x as default};
+import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSiemensBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-siemens-bat"},f={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für Siemens Batteriespeicher "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/bat.vue"]]);export{x as default};
diff --git a/web/settings/assets/bat-cb226603.js b/web/settings/assets/bat-e8cdd332.js
similarity index 86%
rename from web/settings/assets/bat-cb226603.js
rename to web/settings/assets/bat-e8cdd332.js
index 97c760edad..07ab66395c 100644
--- a/web/settings/assets/bat-cb226603.js
+++ b/web/settings/assets/bat-e8cdd332.js
@@ -1 +1 @@
-import{_ as c,p as t,k as p,l as u,A as o,L as s,u as a,q as d,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const l={name:"DeviceSunnyBoyBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},b={class:"device-sunnyboy-bat"},f={class:"small"};function m(e,n,g,y,h,v){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return p(),u("div",b,[o(i,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy/Tripower Batteriespeicher "),d("span",f,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/bat.vue"]]);export{$ as default};
+import{_ as c,p as t,k as p,l as u,A as o,L as s,u as a,q as d,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const l={name:"DeviceSunnyBoyBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},b={class:"device-sunnyboy-bat"},f={class:"small"};function m(e,n,g,y,h,v){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return p(),u("div",b,[o(i,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy/Tripower Batteriespeicher "),d("span",f,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/bat.vue"]]);export{$ as default};
diff --git a/web/settings/assets/bat-45b559ec.js b/web/settings/assets/bat-ec698ff1.js
similarity index 93%
rename from web/settings/assets/bat-45b559ec.js
rename to web/settings/assets/bat-ec698ff1.js
index 5a71bfd621..92a998e72b 100644
--- a/web/settings/assets/bat-45b559ec.js
+++ b/web/settings/assets/bat-ec698ff1.js
@@ -1 +1 @@
-import{_ as r,p as n,k as p,l,A as o,L as s,u as a,q as d,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceKostalPlenticoreBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-kostalplenticore-bat"},m={class:"small"};function b(e,t,g,h,v,k){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),l("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Kostal Plenticore Batteriespeicher "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/bat.vue"]]);export{$ as default};
+import{_ as r,p as n,k as p,l,A as o,L as s,u as a,q as d,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceKostalPlenticoreBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-kostalplenticore-bat"},m={class:"small"};function b(e,t,g,h,v,k){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),l("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Kostal Plenticore Batteriespeicher "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/bat.vue"]]);export{$ as default};
diff --git a/web/settings/assets/bat-e1949609.js b/web/settings/assets/bat-f2ff4071.js
similarity index 93%
rename from web/settings/assets/bat-e1949609.js
rename to web/settings/assets/bat-f2ff4071.js
index b216abc34a..40cd8acb0c 100644
--- a/web/settings/assets/bat-e1949609.js
+++ b/web/settings/assets/bat-f2ff4071.js
@@ -1 +1 @@
-import{_ as u,p as t,k as c,l,A as n,L as p,u as m,q as _,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const f={name:"DeviceSolarEdgeBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-solaredge-bat"},v={class:"small"};function h(o,e,a,w,x,s){const i=t("openwb-base-heading"),d=t("openwb-base-number-input");return c(),l("div",g,[n(i,null,{default:p(()=>[m(" Einstellungen für SolarEdge Batteriespeicher "),_("span",v,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(d,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const E=u(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/bat.vue"]]);export{E as default};
+import{_ as u,p as t,k as c,l,A as n,L as p,u as m,q as _,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const f={name:"DeviceSolarEdgeBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-solaredge-bat"},v={class:"small"};function h(o,e,a,w,x,s){const i=t("openwb-base-heading"),d=t("openwb-base-number-input");return c(),l("div",g,[n(i,null,{default:p(()=>[m(" Einstellungen für SolarEdge Batteriespeicher "),_("span",v,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(d,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const E=u(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/bat.vue"]]);export{E as default};
diff --git a/web/settings/assets/bat-61bcf2f8.js b/web/settings/assets/bat-f963a986.js
similarity index 85%
rename from web/settings/assets/bat-61bcf2f8.js
rename to web/settings/assets/bat-f963a986.js
index 28302202c1..840a0f185b 100644
--- a/web/settings/assets/bat-61bcf2f8.js
+++ b/web/settings/assets/bat-f963a986.js
@@ -1 +1 @@
-import{_ as r,p as n,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceRCTBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-rct-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für RCT Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/bat.vue"]]);export{x as default};
+import{_ as r,p as n,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceRCTBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-rct-bat"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für RCT Batteriespeicher "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/bat.vue"]]);export{x as default};
diff --git a/web/settings/assets/bat_api-e58852af.js b/web/settings/assets/bat_api-bbcd36bc.js
similarity index 86%
rename from web/settings/assets/bat_api-e58852af.js
rename to web/settings/assets/bat_api-bbcd36bc.js
index 8355ece399..1aa7361804 100644
--- a/web/settings/assets/bat_api-e58852af.js
+++ b/web/settings/assets/bat_api-bbcd36bc.js
@@ -1 +1 @@
-import{_ as p,p as n,k as c,l as d,A as a,L as o,u as s,q as u,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const l={name:"DeviceVartaAPIBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-varta-bat"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return c(),d("div",f,[a(i,null,{default:o(()=>[s(" Einstellungen für Varta API Batteriespeicher "),u("span",m,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),a(r,{subtype:"info"},{default:o(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=p(l,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/bat_api.vue"]]);export{x as default};
+import{_ as p,p as n,k as c,l as d,A as a,L as o,u as s,q as u,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const l={name:"DeviceVartaAPIBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-varta-bat"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return c(),d("div",f,[a(i,null,{default:o(()=>[s(" Einstellungen für Varta API Batteriespeicher "),u("span",m,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),a(r,{subtype:"info"},{default:o(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=p(l,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/bat_api.vue"]]);export{x as default};
diff --git a/web/settings/assets/bat_modbus-260d9b94.js b/web/settings/assets/bat_modbus-7b1ae23d.js
similarity index 86%
rename from web/settings/assets/bat_modbus-260d9b94.js
rename to web/settings/assets/bat_modbus-7b1ae23d.js
index 5968b04745..8d4c01398a 100644
--- a/web/settings/assets/bat_modbus-260d9b94.js
+++ b/web/settings/assets/bat_modbus-7b1ae23d.js
@@ -1 +1 @@
-import{_ as d,p as n,k as c,l as p,A as o,L as a,u as s,q as u,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const l={name:"DeviceVartaModbusBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-varta-bat"},m={class:"small"};function f(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return c(),p("div",b,[o(i,null,{default:a(()=>[s(" Einstellungen für Varta Modbus Batteriespeicher "),u("span",m,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=d(l,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/bat_modbus.vue"]]);export{x as default};
+import{_ as d,p as n,k as c,l as p,A as o,L as a,u as s,q as u,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const l={name:"DeviceVartaModbusBat",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-varta-bat"},m={class:"small"};function f(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return c(),p("div",b,[o(i,null,{default:a(()=>[s(" Einstellungen für Varta Modbus Batteriespeicher "),u("span",m,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=d(l,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/bat_modbus.vue"]]);export{x as default};
diff --git a/web/settings/assets/bat_smart_energy-817c3655.js b/web/settings/assets/bat_smart_energy-5d29a479.js
similarity index 87%
rename from web/settings/assets/bat_smart_energy-817c3655.js
rename to web/settings/assets/bat_smart_energy-5d29a479.js
index ac63323d5e..eec205eb62 100644
--- a/web/settings/assets/bat_smart_energy-817c3655.js
+++ b/web/settings/assets/bat_smart_energy-5d29a479.js
@@ -1 +1 @@
-import{_ as c,p as t,k as p,l as u,A as o,L as s,u as a,q as d,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const l={name:"DeviceSunnyBoyBatSmartEnergy",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-sunnyboy-bat-smart-energy"},b={class:"small"};function f(e,n,g,y,h,v){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return p(),u("div",m,[o(r,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy Smart Energy Batteriespeicher "),d("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const S=c(l,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/bat_smart_energy.vue"]]);export{S as default};
+import{_ as c,p as t,k as p,l as u,A as o,L as s,u as a,q as d,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const l={name:"DeviceSunnyBoyBatSmartEnergy",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-sunnyboy-bat-smart-energy"},b={class:"small"};function f(e,n,g,y,h,v){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return p(),u("div",m,[o(r,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy Smart Energy Batteriespeicher "),d("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const S=c(l,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/bat_smart_energy.vue"]]);export{S as default};
diff --git a/web/settings/assets/chargePoint-10f32a1a.js b/web/settings/assets/chargePoint-47a32a91.js
similarity index 94%
rename from web/settings/assets/chargePoint-10f32a1a.js
rename to web/settings/assets/chargePoint-47a32a91.js
index 7eeae1a9d7..af7f1d5de4 100644
--- a/web/settings/assets/chargePoint-10f32a1a.js
+++ b/web/settings/assets/chargePoint-47a32a91.js
@@ -1 +1 @@
-import{_ as d,p as a,k as p,l as m,A as r,L as c,u as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"ChargePointSmartwb",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:n,object:e})}}},f={class:"charge-point-smartwb"};function g(n,e,o,b,w,i){const u=a("openwb-base-text-input"),s=a("openwb-base-number-input");return p(),m("div",f,[r(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"ip_address"))},null,8,["model-value"]),r(s,{title:"Wartezeit",required:"",min:2,max:10,unit:"s","model-value":o.configuration.timeout,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"timeout"))},{help:c(()=>[l(" Zeitangabe in Sekunden, für die auf eine Antwort des Ladepunktes gewartet wird. Wird diese Zeit überschritten, so wird von einer Kommunikationsstörung ausgegangen. ")]),_:1},8,["model-value"])])}const h=d(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/smartwb/chargePoint.vue"]]);export{h as default};
+import{_ as d,p as a,k as p,l as m,A as r,L as c,u as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"ChargePointSmartwb",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:n,object:e})}}},f={class:"charge-point-smartwb"};function g(n,e,o,b,w,i){const u=a("openwb-base-text-input"),s=a("openwb-base-number-input");return p(),m("div",f,[r(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"ip_address"))},null,8,["model-value"]),r(s,{title:"Wartezeit",required:"",min:2,max:10,unit:"s","model-value":o.configuration.timeout,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"timeout"))},{help:c(()=>[l(" Zeitangabe in Sekunden, für die auf eine Antwort des Ladepunktes gewartet wird. Wird diese Zeit überschritten, so wird von einer Kommunikationsstörung ausgegangen. ")]),_:1},8,["model-value"])])}const h=d(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/smartwb/chargePoint.vue"]]);export{h as default};
diff --git a/web/settings/assets/chargePoint-a56bc604.js b/web/settings/assets/chargePoint-75b0bdf9.js
similarity index 92%
rename from web/settings/assets/chargePoint-a56bc604.js
rename to web/settings/assets/chargePoint-75b0bdf9.js
index 0dcf487e77..e6f7035e89 100644
--- a/web/settings/assets/chargePoint-a56bc604.js
+++ b/web/settings/assets/chargePoint-75b0bdf9.js
@@ -1 +1 @@
-import{_ as d,p as a,k as u,l as c,A as l,y as p,L as m,u as f,z as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"ChargePointInternalOpenwb",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){e&&(e==="mode"&&(n=="series"||n=="socket")&&this.updateConfiguration(0,"duo_num"),e="configuration."+e),this.$emit("update:configuration",{value:n,object:e})}}},b={class:"charge-point-internalopenwb"};function h(n,e,t,w,B,i){const r=a("openwb-base-select-input"),s=a("openwb-base-number-input");return u(),c("div",b,[l(r,{title:"Bauart",notSelected:"Bitte auswählen",options:[{value:"series",text:"openWB series1/2 in den Varianten custom, standard & standard+"},{value:"duo",text:"openWB series1/2 Duo"},{value:"socket",text:"openWB series1/2 Buchse"}],"model-value":t.configuration.mode,"onUpdate:modelValue":e[0]||(e[0]=o=>i.updateConfiguration(o,"mode"))},null,8,["model-value"]),t.configuration.mode=="duo"?(u(),p(s,{key:0,title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":t.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=o=>i.updateConfiguration(o-1,"duo_num"))},{help:m(()=>[f(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ')]),_:1},8,["model-value"])):_("v-if",!0)])}const x=d(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/internal_openwb/chargePoint.vue"]]);export{x as default};
+import{_ as d,p as a,k as u,l as c,A as l,y as p,L as m,u as f,z as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"ChargePointInternalOpenwb",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){e&&(e==="mode"&&(n=="series"||n=="socket")&&this.updateConfiguration(0,"duo_num"),e="configuration."+e),this.$emit("update:configuration",{value:n,object:e})}}},b={class:"charge-point-internalopenwb"};function h(n,e,t,w,B,i){const r=a("openwb-base-select-input"),s=a("openwb-base-number-input");return u(),c("div",b,[l(r,{title:"Bauart",notSelected:"Bitte auswählen",options:[{value:"series",text:"openWB series1/2 in den Varianten custom, standard & standard+"},{value:"duo",text:"openWB series1/2 Duo"},{value:"socket",text:"openWB series1/2 Buchse"}],"model-value":t.configuration.mode,"onUpdate:modelValue":e[0]||(e[0]=o=>i.updateConfiguration(o,"mode"))},null,8,["model-value"]),t.configuration.mode=="duo"?(u(),p(s,{key:0,title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":t.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=o=>i.updateConfiguration(o-1,"duo_num"))},{help:m(()=>[f(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ')]),_:1},8,["model-value"])):_("v-if",!0)])}const x=d(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/internal_openwb/chargePoint.vue"]]);export{x as default};
diff --git a/web/settings/assets/chargePoint-80e648c2.js b/web/settings/assets/chargePoint-792da849.js
similarity index 84%
rename from web/settings/assets/chargePoint-80e648c2.js
rename to web/settings/assets/chargePoint-792da849.js
index a80df6148f..d690fb57ed 100644
--- a/web/settings/assets/chargePoint-80e648c2.js
+++ b/web/settings/assets/chargePoint-792da849.js
@@ -1 +1 @@
-import{_ as a,p as s,k as p,l as u,A as d}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const c={name:"ChargePointOpenwbPro",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:o,object:e})}}},_={class:"charge-point-openwbpro"};function l(o,e,t,f,m,n){const i=s("openwb-base-text-input");return p(),u("div",_,[d(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":t.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>n.updateConfiguration(r,"ip_address"))},null,8,["model-value"])])}const v=a(c,[["render",l],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_pro/chargePoint.vue"]]);export{v as default};
+import{_ as a,p as s,k as p,l as u,A as d}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const c={name:"ChargePointOpenwbPro",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:o,object:e})}}},_={class:"charge-point-openwbpro"};function l(o,e,t,f,m,n){const i=s("openwb-base-text-input");return p(),u("div",_,[d(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":t.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>n.updateConfiguration(r,"ip_address"))},null,8,["model-value"])])}const v=a(c,[["render",l],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_pro/chargePoint.vue"]]);export{v as default};
diff --git a/web/settings/assets/chargePoint-4a124bb9.js b/web/settings/assets/chargePoint-83d3ee27.js
similarity index 95%
rename from web/settings/assets/chargePoint-4a124bb9.js
rename to web/settings/assets/chargePoint-83d3ee27.js
index e75e5342ac..4fc0ae01c4 100644
--- a/web/settings/assets/chargePoint-4a124bb9.js
+++ b/web/settings/assets/chargePoint-83d3ee27.js
@@ -1 +1 @@
-import{_ as s,p as a,k as p,l,A as u,L as m,u as c}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"ChargePointSatellite",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:t,object:e})}}},f={class:"charge-point-satellite"};function g(t,e,o,b,h,i){const r=a("openwb-base-text-input"),d=a("openwb-base-number-input");return p(),l("div",f,[u(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"ip_address"))},null,8,["model-value"]),u(d,{title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":o.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n-1,"duo_num"))},{help:m(()=>[c(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ')]),_:1},8,["model-value"])])}const x=s(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_series2_satellit/chargePoint.vue"]]);export{x as default};
+import{_ as s,p as a,k as p,l,A as u,L as m,u as c}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"ChargePointSatellite",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:t,object:e})}}},f={class:"charge-point-satellite"};function g(t,e,o,b,h,i){const r=a("openwb-base-text-input"),d=a("openwb-base-number-input");return p(),l("div",f,[u(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"ip_address"))},null,8,["model-value"]),u(d,{title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":o.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n-1,"duo_num"))},{help:m(()=>[c(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ')]),_:1},8,["model-value"])])}const x=s(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_series2_satellit/chargePoint.vue"]]);export{x as default};
diff --git a/web/settings/assets/chargePoint-07057692.js b/web/settings/assets/chargePoint-9ab109c4.js
similarity index 95%
rename from web/settings/assets/chargePoint-07057692.js
rename to web/settings/assets/chargePoint-9ab109c4.js
index 74208d95d8..6d20f66091 100644
--- a/web/settings/assets/chargePoint-07057692.js
+++ b/web/settings/assets/chargePoint-9ab109c4.js
@@ -1 +1 @@
-import{_ as s,p as a,k as p,l,A as r,L as m,u as c}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"ChargePointExternalOpenwb",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:t,object:e})}}},f={class:"charge-point-externalopenwb"};function g(t,e,o,b,h,i){const u=a("openwb-base-text-input"),d=a("openwb-base-number-input");return p(),l("div",f,[r(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"ip_address"))},null,8,["model-value"]),r(d,{title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":o.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n-1,"duo_num"))},{help:m(()=>[c(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ')]),_:1},8,["model-value"])])}const v=s(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/external_openwb/chargePoint.vue"]]);export{v as default};
+import{_ as s,p as a,k as p,l,A as r,L as m,u as c}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"ChargePointExternalOpenwb",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){e&&(e="configuration."+e),this.$emit("update:configuration",{value:t,object:e})}}},f={class:"charge-point-externalopenwb"};function g(t,e,o,b,h,i){const u=a("openwb-base-text-input"),d=a("openwb-base-number-input");return p(),l("div",f,[r(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"ip_address"))},null,8,["model-value"]),r(d,{title:"Ladepunkt-Nummer",required:"",min:1,max:2,"model-value":o.configuration.duo_num+1,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n-1,"duo_num"))},{help:m(()=>[c(' Bei einfachen Ladepunkten ist hier immer eine "1" einzutragen. Lediglich bei einer openWB Duo kann mit "2" der zweite enthaltene Ladepunkt angesprochen werden. ')]),_:1},8,["model-value"])])}const v=s(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/external_openwb/chargePoint.vue"]]);export{v as default};
diff --git a/web/settings/assets/chargePoint-7200a105.js b/web/settings/assets/chargePoint-9f9283b5.js
similarity index 98%
rename from web/settings/assets/chargePoint-7200a105.js
rename to web/settings/assets/chargePoint-9f9283b5.js
index 96dfc7ae80..43a39e5e43 100644
--- a/web/settings/assets/chargePoint-7200a105.js
+++ b/web/settings/assets/chargePoint-9f9283b5.js
@@ -1 +1 @@
-import{_ as c,p as u,k as p,l as _,A as n,L as l,u as t,q as e,x as s}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const h={name:"ChargePointMqtt",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(a,r=void 0){this.$emit("update:configuration",{value:a,object:r})}}},g={class:"charge-point-mqtt"},f=e("br",null,null,-1),b=e("br",null,null,-1),m=e("br",null,null,-1),k=e("span",{class:"text-info"},"12.34",-1),B=e("br",null,null,-1),x=e("br",null,null,-1),v=e("span",{class:"text-info"},"1",-1),w=e("br",null,null,-1),W=e("br",null,null,-1),T=e("span",{class:"text-info"},"[6.78,6.89,6.94]",-1),P=e("br",null,null,-1),z=e("br",null,null,-1),L=e("span",{class:"text-info"},"123.45",-1),I=e("br",null,null,-1),y=e("br",null,null,-1),F=e("span",{class:"text-info"},"true",-1),A=e("br",null,null,-1),N=e("br",null,null,-1),Z=e("span",{class:"text-info"},"true",-1),D=e("br",null,null,-1),S=e("br",null,null,-1),E=e("span",{class:"text-info"},"3",-1),q=e("br",null,null,-1),M=e("br",null,null,-1),V=e("br",null,null,-1),C=e("span",{class:"text-info"},"123.45",-1),G=e("br",null,null,-1),j=e("br",null,null,-1),O=e("br",null,null,-1),J=e("span",{class:"text-info"},"123.45",-1),K=e("br",null,null,-1),Q=e("br",null,null,-1),H=e("br",null,null,-1),R=e("span",{class:"text-info"},"[230.12,231.08,232.54]",-1),U=e("br",null,null,-1),X=e("br",null,null,-1),Y=e("br",null,null,-1),$=e("span",{class:"text-info"},"[-0.87,0.96,1.0]",-1),ee=e("br",null,null,-1),te=e("br",null,null,-1),ne=e("span",{class:"text-info"},'"123654"',-1);function le(a,r,i,ie,oe,se){const d=u("openwb-base-alert"),o=u("openwb-base-copy-to-clipboard");return p(),_("div",g,[n(d,{subtype:"danger"},{default:l(()=>[t(" Dieser Ladepunkt-Typ darf nur in Kombination mit dem Simulator zur Fehleranalyse genutzt werden. Eine andere Verwendung ist laut den Nutzungsbedingungen untersagt. ")]),_:1}),n(d,{subtype:"info"},{default:l(()=>[t(" Das MQTT Modul stellt keine aktive Verbindung her, sondern erwartet, dass die Daten von speziellen Topics im Broker gelesen bzw. geschrieben werden."),f,t(" Alle Daten werden als gültiges JSON gesendet und auch so erwartet! Zahlen mit Nachkommastellen (Float) verwenden einen Punkt als Dezimaltrenner (internationales Format). "),e("ol",null,[e("li",null,[t(" von openWB gesendete Topics "),e("ul",null,[e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/chargepoint/"+s(i.chargePointId)+"/set/current",1)]),_:1}),b,t(" Sollwert des Ladestroms, mit Nachkommastellen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt)."),m,t(" Beispiel: "),k]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/chargepoint/"+s(i.chargePointId)+"/set/phases_to_use",1)]),_:1}),B,t(" Sollwert für die Anzahl Phasen als Ganzzahl (Integer). Mögliche Werte: 1 oder 3"),x,t(" Beispiel: "),v])])]),e("li",null,[t(" von openWB zwingend erwartete Topics "),e("ul",null,[e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/currents",1)]),_:1}),w,t(" Aktuelle Phasenströme des Ladepunktes, Array mit drei Zahlen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt)."),W,t(" Beispiel: "),T]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/power",1)]),_:1}),P,t(" Leistung in Watt, mit Nachkommastellen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt)."),z,t(" Beispiel: "),L]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/plug_state",1)]),_:1}),I,t(" Zeigt an, ob aktuell ein Fahrzeug angesteckt ist, Wahrheitswert (Bool)."),y,t(" Beispiel: "),F]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/charge_state",1)]),_:1}),A,t(" Zeigt an, ob ein Ladevorgang aktiv ist, Wahrheitswert (Bool)."),N,t(" Beispiel: "),Z]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/phases_in_use",1)]),_:1}),D,t(" Anzahl der Phasen, mit denen geladen wird, Ganzzahl (Integer). Mögliche Werte: 0 bis 3"),S,t(" Beispiel: "),E])])]),e("li",null,[t(" optionale Topics "),e("ul",null,[e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/imported",1)]),_:1}),q,t(" Geladene Energie in Wh, mit Nachkommastellen (Float), nur positiv"),M,t(" Wird dieses Topic nicht vom Ladepunkt gesendet, so wird intern ein Zählerstand anhand der Leistung simuliert."),V,t(" Beispiel: "),C]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/exported",1)]),_:1}),G,t(" Entladene Energie in Wh, mit Nachkommastellen (Float), nur positiv"),j,t(" Wird dieses Topic nicht vom Ladepunkt gesendet, so wird intern ein Zählerstand anhand der Leistung simuliert."),O,t(" Beispiel: "),J]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/voltages",1)]),_:1}),K,t(" Aktuelle Phasenspannungen des Ladepunktes, Array mit drei Zahlen (Float), nur positiv."),Q,t(" Die Spannungen werden nicht verarbeitet, sondern lediglich im Status angezeigt."),H,t(" Beispiel: "),R]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/power_factors",1)]),_:1}),U,t(" Aktuelle Leistungsfaktoren des Ladepunktes, Array mit drei Zahlen (Float), Wertebereich von -1 bis 1."),X,t(" Die Leistungsfaktoren werden nicht verarbeitet, sondern lediglich im Status angezeigt."),Y,t(" Beispiel: "),$]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/rfid_tag",1)]),_:1}),ee,t(" Eine Zeichenfolge, die einen eingelesenen Tag für openWB repräsentiert."),te,t(" Beispiel: "),ne])])])])]),_:1})])}const de=c(h,[["render",le],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/mqtt/chargePoint.vue"]]);export{de as default};
+import{_ as c,p as u,k as p,l as _,A as n,L as l,u as t,q as e,x as s}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const h={name:"ChargePointMqtt",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{updateConfiguration(a,r=void 0){this.$emit("update:configuration",{value:a,object:r})}}},g={class:"charge-point-mqtt"},f=e("br",null,null,-1),b=e("br",null,null,-1),m=e("br",null,null,-1),k=e("span",{class:"text-info"},"12.34",-1),B=e("br",null,null,-1),x=e("br",null,null,-1),v=e("span",{class:"text-info"},"1",-1),w=e("br",null,null,-1),W=e("br",null,null,-1),T=e("span",{class:"text-info"},"[6.78,6.89,6.94]",-1),P=e("br",null,null,-1),z=e("br",null,null,-1),L=e("span",{class:"text-info"},"123.45",-1),I=e("br",null,null,-1),y=e("br",null,null,-1),F=e("span",{class:"text-info"},"true",-1),A=e("br",null,null,-1),N=e("br",null,null,-1),Z=e("span",{class:"text-info"},"true",-1),D=e("br",null,null,-1),S=e("br",null,null,-1),E=e("span",{class:"text-info"},"3",-1),q=e("br",null,null,-1),M=e("br",null,null,-1),V=e("br",null,null,-1),C=e("span",{class:"text-info"},"123.45",-1),G=e("br",null,null,-1),j=e("br",null,null,-1),O=e("br",null,null,-1),J=e("span",{class:"text-info"},"123.45",-1),K=e("br",null,null,-1),Q=e("br",null,null,-1),H=e("br",null,null,-1),R=e("span",{class:"text-info"},"[230.12,231.08,232.54]",-1),U=e("br",null,null,-1),X=e("br",null,null,-1),Y=e("br",null,null,-1),$=e("span",{class:"text-info"},"[-0.87,0.96,1.0]",-1),ee=e("br",null,null,-1),te=e("br",null,null,-1),ne=e("span",{class:"text-info"},'"123654"',-1);function le(a,r,i,ie,oe,se){const d=u("openwb-base-alert"),o=u("openwb-base-copy-to-clipboard");return p(),_("div",g,[n(d,{subtype:"danger"},{default:l(()=>[t(" Dieser Ladepunkt-Typ darf nur in Kombination mit dem Simulator zur Fehleranalyse genutzt werden. Eine andere Verwendung ist laut den Nutzungsbedingungen untersagt. ")]),_:1}),n(d,{subtype:"info"},{default:l(()=>[t(" Das MQTT Modul stellt keine aktive Verbindung her, sondern erwartet, dass die Daten von speziellen Topics im Broker gelesen bzw. geschrieben werden."),f,t(" Alle Daten werden als gültiges JSON gesendet und auch so erwartet! Zahlen mit Nachkommastellen (Float) verwenden einen Punkt als Dezimaltrenner (internationales Format). "),e("ol",null,[e("li",null,[t(" von openWB gesendete Topics "),e("ul",null,[e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/chargepoint/"+s(i.chargePointId)+"/set/current",1)]),_:1}),b,t(" Sollwert des Ladestroms, mit Nachkommastellen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt)."),m,t(" Beispiel: "),k]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/chargepoint/"+s(i.chargePointId)+"/set/phases_to_use",1)]),_:1}),B,t(" Sollwert für die Anzahl Phasen als Ganzzahl (Integer). Mögliche Werte: 1 oder 3"),x,t(" Beispiel: "),v])])]),e("li",null,[t(" von openWB zwingend erwartete Topics "),e("ul",null,[e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/currents",1)]),_:1}),w,t(" Aktuelle Phasenströme des Ladepunktes, Array mit drei Zahlen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt)."),W,t(" Beispiel: "),T]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/power",1)]),_:1}),P,t(" Leistung in Watt, mit Nachkommastellen (Float), positiv (laden) oder negativ (entladen, falls vom Ladepunkt unterstützt)."),z,t(" Beispiel: "),L]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/plug_state",1)]),_:1}),I,t(" Zeigt an, ob aktuell ein Fahrzeug angesteckt ist, Wahrheitswert (Bool)."),y,t(" Beispiel: "),F]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/charge_state",1)]),_:1}),A,t(" Zeigt an, ob ein Ladevorgang aktiv ist, Wahrheitswert (Bool)."),N,t(" Beispiel: "),Z]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/phases_in_use",1)]),_:1}),D,t(" Anzahl der Phasen, mit denen geladen wird, Ganzzahl (Integer). Mögliche Werte: 0 bis 3"),S,t(" Beispiel: "),E])])]),e("li",null,[t(" optionale Topics "),e("ul",null,[e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/imported",1)]),_:1}),q,t(" Geladene Energie in Wh, mit Nachkommastellen (Float), nur positiv"),M,t(" Wird dieses Topic nicht vom Ladepunkt gesendet, so wird intern ein Zählerstand anhand der Leistung simuliert."),V,t(" Beispiel: "),C]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/exported",1)]),_:1}),G,t(" Entladene Energie in Wh, mit Nachkommastellen (Float), nur positiv"),j,t(" Wird dieses Topic nicht vom Ladepunkt gesendet, so wird intern ein Zählerstand anhand der Leistung simuliert."),O,t(" Beispiel: "),J]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/voltages",1)]),_:1}),K,t(" Aktuelle Phasenspannungen des Ladepunktes, Array mit drei Zahlen (Float), nur positiv."),Q,t(" Die Spannungen werden nicht verarbeitet, sondern lediglich im Status angezeigt."),H,t(" Beispiel: "),R]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/power_factors",1)]),_:1}),U,t(" Aktuelle Leistungsfaktoren des Ladepunktes, Array mit drei Zahlen (Float), Wertebereich von -1 bis 1."),X,t(" Die Leistungsfaktoren werden nicht verarbeitet, sondern lediglich im Status angezeigt."),Y,t(" Beispiel: "),$]),e("li",null,[n(o,{class:"text-info",tooltip:"Topic kopieren"},{default:l(()=>[t(" openWB/set/chargepoint/"+s(i.chargePointId)+"/get/rfid_tag",1)]),_:1}),ee,t(" Eine Zeichenfolge, die einen eingelesenen Tag für openWB repräsentiert."),te,t(" Beispiel: "),ne])])])])]),_:1})])}const de=c(h,[["render",le],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/mqtt/chargePoint.vue"]]);export{de as default};
diff --git a/web/settings/assets/commands-516069c3.js b/web/settings/assets/commands-516069c3.js
deleted file mode 100644
index 639407fad1..0000000000
--- a/web/settings/assets/commands-516069c3.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as i,p as r,k as p,l as c,A as d,L as u,u as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"ChargePointCommandsOpenwbPro",props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{async triggerUpdate(){let s=new FormData;s.append("command","update"),s.append("data",'{"ip_address":"'+this.configuration.ip_address+'"}');const o="Die Aktualisierung der openWB Pro wird gestartet...";this.$root.postClientMessage(o,"info"),console.log(location),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/charge_points/openwb_pro/commands.php",s,{timeout:5e3}).then(e=>{console.log("POST response",e.data);const t="Die Aktualisierung der openWB Pro wurde erfolgreich gestartet.";this.$root.postClientMessage(t,"success")}).catch(e=>{var t="Aktualisierung fehlgeschlagen!<br />";e.response?(console.log(e.response.status,e.response.data),t+=e.response.status+": "+e.response.data):e.request?(console.log(e.request),t+="Es wurde keine Antwort vom Server empfangen."):(console.log("Error",e.message),t+="Es ist ein unbekannter Fehler aufgetreten."),this.$root.postClientMessage(t,"danger")})}}},m={class:"charge-point-commands-openwbpro"};function h(s,o,e,t,_,n){const a=r("openwb-base-button-input");return p(),c("div",m,[d(a,{title:"Ladepunkt aktualisieren",buttonText:"Update anfordern",subtype:"success",disabled:e.configuration.ip_address==null,onButtonClicked:n.triggerUpdate},{help:u(()=>[l(" Mit diesem Befehl können Sie die Aktualisierung der openWB Pro anstoßen. Bitte beachten Sie, dass kein Fahrzeug angesteckt ist. ")]),_:1},8,["disabled","onButtonClicked"])])}const k=i(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_pro/commands.vue"]]);export{k as default};
diff --git a/web/settings/assets/commands-dfab65eb.js b/web/settings/assets/commands-dfab65eb.js
new file mode 100644
index 0000000000..175a5957f3
--- /dev/null
+++ b/web/settings/assets/commands-dfab65eb.js
@@ -0,0 +1 @@
+import{_ as i,p as r,k as p,l as d,A as c,L as u,u as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"ChargePointCommandsOpenwbPro",props:{configuration:{type:Object,required:!0},chargePointId:{default:void 0}},methods:{async triggerUpdate(){let s=new FormData;s.append("command","update"),s.append("data",'{"ip_address":"'+this.configuration.ip_address+'"}');const n="Die Aktualisierung der openWB Pro wird gestartet...";this.$root.postClientMessage(n,"info"),console.debug(location),this.axios.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/charge_points/openwb_pro/commands.php",s,{timeout:5e3}).then(()=>{const e="Die Aktualisierung der openWB Pro wurde erfolgreich gestartet.";this.$root.postClientMessage(e,"success")}).catch(e=>{var t="Aktualisierung fehlgeschlagen!<br />";e.response?(console.error(e.response.status,e.response.data),t+=e.response.status+": "+e.response.data):e.request?(console.error(e.request),t+="Es wurde keine Antwort vom Server empfangen."):(console.error("Error",e.message),t+="Es ist ein unbekannter Fehler aufgetreten."),this.$root.postClientMessage(t,"danger")})}}},m={class:"charge-point-commands-openwbpro"};function h(s,n,e,t,_,o){const a=r("openwb-base-button-input");return p(),d("div",m,[c(a,{title:"Ladepunkt aktualisieren",buttonText:"Update anfordern",subtype:"success",disabled:e.configuration.ip_address==null,onButtonClicked:o.triggerUpdate},{help:u(()=>[l(" Mit diesem Befehl können Sie die Aktualisierung der openWB Pro anstoßen. Bitte beachten Sie, dass kein Fahrzeug angesteckt ist. ")]),_:1},8,["disabled","onButtonClicked"])])}const k=i(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/charge_points/openwb_pro/commands.vue"]]);export{k as default};
diff --git a/web/settings/assets/counter-b30c239d.js b/web/settings/assets/counter-00e8bfb9.js
similarity index 86%
rename from web/settings/assets/counter-b30c239d.js
rename to web/settings/assets/counter-00e8bfb9.js
index 7f7dfdf3d0..8b5565fe15 100644
--- a/web/settings/assets/counter-b30c239d.js
+++ b/web/settings/assets/counter-00e8bfb9.js
@@ -1 +1 @@
-import{_ as c,p as t,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSiemensSentronCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-siemens-sentron-counter"},f={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return p(),u("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für Siemens Sentron Zähler "),d("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const S=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens_sentron/counter.vue"]]);export{S as default};
+import{_ as c,p as t,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSiemensSentronCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-siemens-sentron-counter"},f={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return p(),u("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für Siemens Sentron Zähler "),d("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const S=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens_sentron/counter.vue"]]);export{S as default};
diff --git a/web/settings/assets/counter-82a793a2.js b/web/settings/assets/counter-0524aa8c.js
similarity index 86%
rename from web/settings/assets/counter-82a793a2.js
rename to web/settings/assets/counter-0524aa8c.js
index f978233fb3..4d1dea7576 100644
--- a/web/settings/assets/counter-82a793a2.js
+++ b/web/settings/assets/counter-0524aa8c.js
@@ -1 +1 @@
-import{_ as c,p as t,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSiemensCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-siemens-counter"},f={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),p("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für Siemens Zähler "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/counter.vue"]]);export{k as default};
+import{_ as c,p as t,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSiemensCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-siemens-counter"},f={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),p("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für Siemens Zähler "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/counter.vue"]]);export{k as default};
diff --git a/web/settings/assets/counter-7b85a5b2.js b/web/settings/assets/counter-08f8d2f2.js
similarity index 86%
rename from web/settings/assets/counter-7b85a5b2.js
rename to web/settings/assets/counter-08f8d2f2.js
index 939dcd124b..81b7c884ca 100644
--- a/web/settings/assets/counter-7b85a5b2.js
+++ b/web/settings/assets/counter-08f8d2f2.js
@@ -1 +1 @@
-import{_ as c,p as t,k as u,l as d,A as n,L as a,u as s,q as p,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceCarloGavazziCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-carlogavazzi-counter"},m={class:"small"};function v(e,o,b,g,h,z){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return u(),d("div",f,[n(i,null,{default:a(()=>[s(" Einstellungen für Carlo Gavazzi EM24 LAN "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:a(()=>[s(" ModbusTCP muss aktiviert sein. Ausgelesen wird ID 1 auf Port 502. ")]),_:1})])}const $=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/carlo_gavazzi/counter.vue"]]);export{$ as default};
+import{_ as c,p as t,k as u,l as d,A as n,L as a,u as s,q as p,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceCarloGavazziCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-carlogavazzi-counter"},m={class:"small"};function v(e,o,b,g,h,z){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return u(),d("div",f,[n(i,null,{default:a(()=>[s(" Einstellungen für Carlo Gavazzi EM24 LAN "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:a(()=>[s(" ModbusTCP muss aktiviert sein. Ausgelesen wird ID 1 auf Port 502. ")]),_:1})])}const $=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/carlo_gavazzi/counter.vue"]]);export{$ as default};
diff --git a/web/settings/assets/counter-f322702a.js b/web/settings/assets/counter-09b39d2d.js
similarity index 86%
rename from web/settings/assets/counter-f322702a.js
rename to web/settings/assets/counter-09b39d2d.js
index 2c725e9a30..2c29bc736e 100644
--- a/web/settings/assets/counter-f322702a.js
+++ b/web/settings/assets/counter-09b39d2d.js
@@ -1 +1 @@
-import{_ as c,p as t,k as d,l as p,A as n,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSolaxCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-solax-counter"},m={class:"small"};function b(e,o,g,h,v,x){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),p("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für Solax Zähler "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/counter.vue"]]);export{k as default};
+import{_ as c,p as t,k as d,l as p,A as n,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSolaxCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-solax-counter"},m={class:"small"};function b(e,o,g,h,v,x){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),p("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für Solax Zähler "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/counter.vue"]]);export{k as default};
diff --git a/web/settings/assets/counter-6369ff43.js b/web/settings/assets/counter-0abbb386.js
similarity index 90%
rename from web/settings/assets/counter-6369ff43.js
rename to web/settings/assets/counter-0abbb386.js
index db0d8c931d..8061f8b00a 100644
--- a/web/settings/assets/counter-6369ff43.js
+++ b/web/settings/assets/counter-0abbb386.js
@@ -1 +1 @@
-import{_ as r,p as o,k as p,l as c,A as a,L as m,u as _,q as f,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceOpenwbFlexCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-openwb-flex-counter"},x={class:"small"};function w(n,e,i,M,h,u){const s=o("openwb-base-heading"),l=o("openwb-base-select-input"),d=o("openwb-base-number-input");return p(),c("div",g,[a(s,null,{default:m(()=>[_(" Einstellungen für openWB-Flex Zähler "),f("span",x,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),a(l,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=t=>u.updateConfiguration(t,"configuration.version"))},null,8,["model-value"]),a(d,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":i.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=t=>u.updateConfiguration(t,"configuration.id"))},null,8,["model-value"])])}const D=r(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/counter.vue"]]);export{D as default};
+import{_ as r,p as o,k as p,l as c,A as a,L as m,u as _,q as f,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceOpenwbFlexCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-openwb-flex-counter"},x={class:"small"};function w(n,e,i,M,h,u){const s=o("openwb-base-heading"),l=o("openwb-base-select-input"),d=o("openwb-base-number-input");return p(),c("div",g,[a(s,null,{default:m(()=>[_(" Einstellungen für openWB-Flex Zähler "),f("span",x,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),a(l,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=t=>u.updateConfiguration(t,"configuration.version"))},null,8,["model-value"]),a(d,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":i.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=t=>u.updateConfiguration(t,"configuration.id"))},null,8,["model-value"])])}const D=r(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/counter.vue"]]);export{D as default};
diff --git a/web/settings/assets/counter-d335a007.js b/web/settings/assets/counter-0d09b23e.js
similarity index 90%
rename from web/settings/assets/counter-d335a007.js
rename to web/settings/assets/counter-0d09b23e.js
index 5d32805921..ee4413142e 100644
--- a/web/settings/assets/counter-d335a007.js
+++ b/web/settings/assets/counter-0d09b23e.js
@@ -1 +1 @@
-import{_ as l,p as o,k as m,l as _,A as r,L as i,u as n,q as s,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceDiscovergyCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-discovergy-counter"},b={class:"small"},h=s("a",{href:"https://api.discovergy.com/public/v1/meters",target:"_blank",rel:"noopener noreferrer"}," https://api.discovergy.com/public/v1/meters ",-1);function w(t,e,a,y,x,d){const u=o("openwb-base-heading"),c=o("openwb-base-text-input");return m(),_("div",v,[r(u,null,{default:i(()=>[n(" Einstellungen für Discovergy Zähler "),s("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),r(c,{title:"Meter-ID",required:"","model-value":a.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.meter_id"))},{help:i(()=>[n(" Um die ID herauszufinden mit dem Browser die Adresse "),h,n(" aufrufen und dort Benutzername und Passwort eingeben. Hier wird nun u.a. die ID des Zählers angezeigt. ")]),_:1},8,["model-value"])])}const C=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/counter.vue"]]);export{C as default};
+import{_ as l,p as o,k as m,l as _,A as r,L as i,u as n,q as s,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceDiscovergyCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-discovergy-counter"},b={class:"small"},h=s("a",{href:"https://api.discovergy.com/public/v1/meters",target:"_blank",rel:"noopener noreferrer"}," https://api.discovergy.com/public/v1/meters ",-1);function w(t,e,a,y,x,d){const u=o("openwb-base-heading"),c=o("openwb-base-text-input");return m(),_("div",v,[r(u,null,{default:i(()=>[n(" Einstellungen für Discovergy Zähler "),s("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),r(c,{title:"Meter-ID",required:"","model-value":a.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.meter_id"))},{help:i(()=>[n(" Um die ID herauszufinden mit dem Browser die Adresse "),h,n(" aufrufen und dort Benutzername und Passwort eingeben. Hier wird nun u.a. die ID des Zählers angezeigt. ")]),_:1},8,["model-value"])])}const C=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/counter.vue"]]);export{C as default};
diff --git a/web/settings/assets/counter-fb6b0fb9.js b/web/settings/assets/counter-107b4963.js
similarity index 86%
rename from web/settings/assets/counter-fb6b0fb9.js
rename to web/settings/assets/counter-107b4963.js
index 51b0eafcd7..b5410fd0ae 100644
--- a/web/settings/assets/counter-fb6b0fb9.js
+++ b/web/settings/assets/counter-107b4963.js
@@ -1 +1 @@
-import{_ as c,p as o,k as u,l as p,A as t,L as s,u as a,q as d,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSunnyBoyCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sunnyboy-counter"},m={class:"small"};function b(e,n,g,y,h,v){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return u(),p("div",f,[t(i,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy/Tripower Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),t(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/counter.vue"]]);export{$ as default};
+import{_ as c,p as o,k as u,l as p,A as t,L as s,u as a,q as d,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSunnyBoyCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sunnyboy-counter"},m={class:"small"};function b(e,n,g,y,h,v){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return u(),p("div",f,[t(i,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy/Tripower Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),t(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/counter.vue"]]);export{$ as default};
diff --git a/web/settings/assets/counter-816c921e.js b/web/settings/assets/counter-1516cbf4.js
similarity index 96%
rename from web/settings/assets/counter-816c921e.js
rename to web/settings/assets/counter-1516cbf4.js
index 6e377493d4..9f6cf209a3 100644
--- a/web/settings/assets/counter-816c921e.js
+++ b/web/settings/assets/counter-1516cbf4.js
@@ -1 +1 @@
-import{_ as d,p as c,k as _,l as m,A as n,L as o,u as t,q as e,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const h={name:"DeviceMqttCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(a,u=void 0){this.$emit("update:configuration",{value:a,object:u})}}},f={class:"device-mqtt-counter"},g={class:"small"},b=e("br",null,null,-1),k=e("br",null,null,-1),B=e("span",{class:"text-info"},"-123.45",-1),x=e("br",null,null,-1),v=e("br",null,null,-1),z=e("span",{class:"text-info"},"123.45",-1),I=e("br",null,null,-1),W=e("br",null,null,-1),N=e("span",{class:"text-info"},"123.45",-1),w=e("br",null,null,-1),T=e("br",null,null,-1),y=e("span",{class:"text-info"},"50.12",-1),q=e("br",null,null,-1),F=e("br",null,null,-1),P=e("span",{class:"text-info"},"[1.2,2.3,-2.1]",-1),E=e("br",null,null,-1),j=e("br",null,null,-1),A=e("span",{class:"text-info"},"[222.2,223.3,222.3]",-1),D=e("br",null,null,-1),Z=e("br",null,null,-1),C=e("span",{class:"text-info"},"[12.3,23.4,-12.3]",-1),V=e("br",null,null,-1),L=e("br",null,null,-1),M=e("span",{class:"text-info"},"[0.95,0.96,-0.95]",-1);function S(a,u,s,H,O,Q){const r=c("openwb-base-heading"),i=c("openwb-base-copy-to-clipboard"),p=c("openwb-base-alert");return _(),m("div",f,[n(r,null,{default:o(()=>[t(" Einstellungen für MQTT Zähler "),e("span",g,"(Modul: "+l(a.$options.name)+")",1)]),_:1}),n(p,{subtype:"info"},{default:o(()=>[e("ul",null,[e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/power",1)]),_:1}),b,t(" Bezugsleistung in Watt, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, positiv Bezug, negativ Einspeisung"),k,t(" Beispiel: "),B]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/imported",1)]),_:1}),x,t(" Bezogene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),v,t(" Beispiel: "),z]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/exported",1)]),_:1}),I,t(" Eingespeiste Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),W,t(" Beispiel: "),N]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/frequency",1)]),_:1}),w,t(" Netzfrequenz in Hz, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen"),T,t(" Beispiel: "),y]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/currents",1)]),_:1}),q,t(" Array mit den Strömen je Phase in Ampere, mit Nachkommastellen (Float), positiv Bezug, negativ Einspeisung"),F,t(" Beispiel: "),P]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/voltages",1)]),_:1}),E,t(" Array mit den Spannungen je Phase in Volt, mit Nachkommastellen (Float)"),j,t(" Beispiel: "),A]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/powers",1)]),_:1}),D,t(" Array mit den Leistungen je Phase in Watt, mit Nachkommastellen (Float)"),Z,t(" Beispiel: "),C]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/power_factors",1)]),_:1}),V,t(" Array mit den Leistungsfaktoren je Phase, mit Nachkommastellen (Float), Wertebereich -1 bis 1"),L,t(" Beispiel: "),M])])]),_:1})])}const K=d(h,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/counter.vue"]]);export{K as default};
+import{_ as d,p as c,k as _,l as m,A as n,L as o,u as t,q as e,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const h={name:"DeviceMqttCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(a,u=void 0){this.$emit("update:configuration",{value:a,object:u})}}},f={class:"device-mqtt-counter"},g={class:"small"},b=e("br",null,null,-1),k=e("br",null,null,-1),B=e("span",{class:"text-info"},"-123.45",-1),x=e("br",null,null,-1),v=e("br",null,null,-1),z=e("span",{class:"text-info"},"123.45",-1),I=e("br",null,null,-1),W=e("br",null,null,-1),N=e("span",{class:"text-info"},"123.45",-1),w=e("br",null,null,-1),T=e("br",null,null,-1),y=e("span",{class:"text-info"},"50.12",-1),q=e("br",null,null,-1),F=e("br",null,null,-1),P=e("span",{class:"text-info"},"[1.2,2.3,-2.1]",-1),E=e("br",null,null,-1),j=e("br",null,null,-1),A=e("span",{class:"text-info"},"[222.2,223.3,222.3]",-1),D=e("br",null,null,-1),Z=e("br",null,null,-1),C=e("span",{class:"text-info"},"[12.3,23.4,-12.3]",-1),V=e("br",null,null,-1),L=e("br",null,null,-1),M=e("span",{class:"text-info"},"[0.95,0.96,-0.95]",-1);function S(a,u,s,H,O,Q){const r=c("openwb-base-heading"),i=c("openwb-base-copy-to-clipboard"),p=c("openwb-base-alert");return _(),m("div",f,[n(r,null,{default:o(()=>[t(" Einstellungen für MQTT Zähler "),e("span",g,"(Modul: "+l(a.$options.name)+")",1)]),_:1}),n(p,{subtype:"info"},{default:o(()=>[e("ul",null,[e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/power",1)]),_:1}),b,t(" Bezugsleistung in Watt, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, positiv Bezug, negativ Einspeisung"),k,t(" Beispiel: "),B]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/imported",1)]),_:1}),x,t(" Bezogene Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),v,t(" Beispiel: "),z]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/exported",1)]),_:1}),I,t(" Eingespeiste Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),W,t(" Beispiel: "),N]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/frequency",1)]),_:1}),w,t(" Netzfrequenz in Hz, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen"),T,t(" Beispiel: "),y]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/currents",1)]),_:1}),q,t(" Array mit den Strömen je Phase in Ampere, mit Nachkommastellen (Float), positiv Bezug, negativ Einspeisung"),F,t(" Beispiel: "),P]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/voltages",1)]),_:1}),E,t(" Array mit den Spannungen je Phase in Volt, mit Nachkommastellen (Float)"),j,t(" Beispiel: "),A]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/powers",1)]),_:1}),D,t(" Array mit den Leistungen je Phase in Watt, mit Nachkommastellen (Float)"),Z,t(" Beispiel: "),C]),e("li",null,[n(i,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/counter/"+l(s.componentId)+"/get/power_factors",1)]),_:1}),V,t(" Array mit den Leistungsfaktoren je Phase, mit Nachkommastellen (Float), Wertebereich -1 bis 1"),L,t(" Beispiel: "),M])])]),_:1})])}const K=d(h,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/counter.vue"]]);export{K as default};
diff --git a/web/settings/assets/counter-60655200.js b/web/settings/assets/counter-16bcb8fc.js
similarity index 86%
rename from web/settings/assets/counter-60655200.js
rename to web/settings/assets/counter-16bcb8fc.js
index cd01ce739c..9f93447e86 100644
--- a/web/settings/assets/counter-60655200.js
+++ b/web/settings/assets/counter-16bcb8fc.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceAlphaessCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-alphaess-counter"},m={class:"small"};function b(e,t,h,g,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Alpha ESS Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/counter.vue"]]);export{k as default};
+import{_ as c,p as n,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceAlphaessCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-alphaess-counter"},m={class:"small"};function b(e,t,h,g,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Alpha ESS Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/counter.vue"]]);export{k as default};
diff --git a/web/settings/assets/counter-7a7be3d3.js b/web/settings/assets/counter-1ddce36f.js
similarity index 86%
rename from web/settings/assets/counter-7a7be3d3.js
rename to web/settings/assets/counter-1ddce36f.js
index beaad797b1..049a6ff015 100644
--- a/web/settings/assets/counter-7a7be3d3.js
+++ b/web/settings/assets/counter-1ddce36f.js
@@ -1 +1 @@
-import{_ as c,p as n,k as u,l as d,A as o,L as a,u as s,q as p,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceJanitzaCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-janitza-counter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Janitza Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(' ModbusTCP muss im Janitza auf Port 502 aktiv und die ID auf "1" eingestellt sein. ')]),_:1})])}const z=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/janitza/counter.vue"]]);export{z as default};
+import{_ as c,p as n,k as u,l as d,A as o,L as a,u as s,q as p,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceJanitzaCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-janitza-counter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Janitza Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(' ModbusTCP muss im Janitza auf Port 502 aktiv und die ID auf "1" eingestellt sein. ')]),_:1})])}const z=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/janitza/counter.vue"]]);export{z as default};
diff --git a/web/settings/assets/counter-af942561.js b/web/settings/assets/counter-2524acf0.js
similarity index 88%
rename from web/settings/assets/counter-af942561.js
rename to web/settings/assets/counter-2524acf0.js
index 6805ab1be9..2356dcd250 100644
--- a/web/settings/assets/counter-af942561.js
+++ b/web/settings/assets/counter-2524acf0.js
@@ -1 +1 @@
-import{_ as c,p as t,k as l,l as _,A as o,L as a,u as s,q as m,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceEnphaseCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-enphase-counter"},h={class:"small"};function v(n,e,i,w,E,r){const u=t("openwb-base-heading"),d=t("openwb-base-number-input");return l(),_("div",g,[o(u,null,{default:a(()=>[s(" Einstellungen für Enphase Envoy / IQ Gateway Zähler "),m("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"EID",required:"","model-value":i.configuration.eid,"onUpdate:modelValue":e[0]||(e[0]=p=>r.updateConfiguration(p,"configuration.eid"))},{help:a(()=>[s(' EID für "net-consumption" ')]),_:1},8,["model-value"])])}const I=c(b,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/counter.vue"]]);export{I as default};
+import{_ as c,p as t,k as l,l as _,A as o,L as a,u as s,q as m,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceEnphaseCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-enphase-counter"},h={class:"small"};function v(n,e,i,w,E,r){const u=t("openwb-base-heading"),d=t("openwb-base-number-input");return l(),_("div",g,[o(u,null,{default:a(()=>[s(" Einstellungen für Enphase Envoy / IQ Gateway Zähler "),m("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"EID",required:"","model-value":i.configuration.eid,"onUpdate:modelValue":e[0]||(e[0]=p=>r.updateConfiguration(p,"configuration.eid"))},{help:a(()=>[s(' EID für "net-consumption" ')]),_:1},8,["model-value"])])}const I=c(b,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/counter.vue"]]);export{I as default};
diff --git a/web/settings/assets/counter-70b9e720.js b/web/settings/assets/counter-25d1e220.js
similarity index 89%
rename from web/settings/assets/counter-70b9e720.js
rename to web/settings/assets/counter-25d1e220.js
index 391ada4a1a..3f6ab7b419 100644
--- a/web/settings/assets/counter-70b9e720.js
+++ b/web/settings/assets/counter-25d1e220.js
@@ -1 +1 @@
-import{_ as m,p as o,k as p,l as _,A as a,L as i,u as t,q as r,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceSmahmCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-smahm-counter"},h={class:"small"},v=r("br",null,null,-1);function M(n,e,s,w,S,u){const d=o("openwb-base-heading"),c=o("openwb-base-number-input");return p(),_("div",g,[a(d,null,{default:i(()=>[t(" Einstellungen für SMA-HM/EM Zähler "),r("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),a(c,{title:"Seriennummer","model-value":s.configuration.serials,"onUpdate:modelValue":e[0]||(e[0]=l=>u.updateConfiguration(l,"configuration.serials"))},{help:i(()=>[t(" Eine Seriennummer ist nur erforderlich, wenn mehrere SMA HomeManager in Betrieb sind."),v,t(" Funktioniert auch mit Energy Meter statt Home Manager. ")]),_:1},8,["model-value"])])}const C=m(b,[["render",M],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_shm/counter.vue"]]);export{C as default};
+import{_ as m,p as o,k as p,l as _,A as a,L as i,u as t,q as r,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceSmahmCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-smahm-counter"},h={class:"small"},v=r("br",null,null,-1);function M(n,e,s,w,S,u){const d=o("openwb-base-heading"),c=o("openwb-base-number-input");return p(),_("div",g,[a(d,null,{default:i(()=>[t(" Einstellungen für SMA-HM/EM Zähler "),r("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),a(c,{title:"Seriennummer","model-value":s.configuration.serials,"onUpdate:modelValue":e[0]||(e[0]=l=>u.updateConfiguration(l,"configuration.serials"))},{help:i(()=>[t(" Eine Seriennummer ist nur erforderlich, wenn mehrere SMA HomeManager in Betrieb sind."),v,t(" Funktioniert auch mit Energy Meter statt Home Manager. ")]),_:1},8,["model-value"])])}const C=m(b,[["render",M],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_shm/counter.vue"]]);export{C as default};
diff --git a/web/settings/assets/counter-2a189926.js b/web/settings/assets/counter-25dcea49.js
similarity index 87%
rename from web/settings/assets/counter-2a189926.js
rename to web/settings/assets/counter-25dcea49.js
index b861c73281..11e5cbdba0 100644
--- a/web/settings/assets/counter-2a189926.js
+++ b/web/settings/assets/counter-25dcea49.js
@@ -1 +1 @@
-import{_ as c,p as t,k as d,l as u,A as o,L as a,u as s,q as l,x as p}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceTeslaCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-tesla-counter"},f={class:"small"};function h(e,n,b,g,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),u("div",m,[o(i,null,{default:a(()=>[s(" Einstellungen für Tesla Zähler "),l("span",f,"(Modul: "+p(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Je nach Firmware-Version ist nur ein Lastmanagement anhand der Gesamtleistung möglich, da nicht alle Firmware-Versionen Phasenströme liefern. ")]),_:1})])}const V=c(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/counter.vue"]]);export{V as default};
+import{_ as c,p as t,k as d,l as u,A as o,L as a,u as s,q as l,x as p}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceTeslaCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-tesla-counter"},f={class:"small"};function h(e,n,b,g,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),u("div",m,[o(i,null,{default:a(()=>[s(" Einstellungen für Tesla Zähler "),l("span",f,"(Modul: "+p(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Je nach Firmware-Version ist nur ein Lastmanagement anhand der Gesamtleistung möglich, da nicht alle Firmware-Versionen Phasenströme liefern. ")]),_:1})])}const V=c(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/counter.vue"]]);export{V as default};
diff --git a/web/settings/assets/counter-4dc3cbd5.js b/web/settings/assets/counter-2fda105e.js
similarity index 93%
rename from web/settings/assets/counter-4dc3cbd5.js
rename to web/settings/assets/counter-2fda105e.js
index 027b62ede2..6ef2b58b3f 100644
--- a/web/settings/assets/counter-4dc3cbd5.js
+++ b/web/settings/assets/counter-2fda105e.js
@@ -1 +1 @@
-import{_ as c,p as t,k as d,l,A as n,L as s,u as a,q as p,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSolarWorldCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-solar_world-counter"},m={class:"small"};function b(e,o,g,h,v,w){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),l("div",f,[n(r,null,{default:s(()=>[a(" Einstellungen für SolarWorld Zähler "),p("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),n(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_world/counter.vue"]]);export{k as default};
+import{_ as c,p as t,k as d,l,A as n,L as s,u as a,q as p,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSolarWorldCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-solar_world-counter"},m={class:"small"};function b(e,o,g,h,v,w){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),l("div",f,[n(r,null,{default:s(()=>[a(" Einstellungen für SolarWorld Zähler "),p("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),n(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_world/counter.vue"]]);export{k as default};
diff --git a/web/settings/assets/counter-b2081459.js b/web/settings/assets/counter-32007d3e.js
similarity index 86%
rename from web/settings/assets/counter-b2081459.js
rename to web/settings/assets/counter-32007d3e.js
index a9faaacd25..6a2562f2ca 100644
--- a/web/settings/assets/counter-b2081459.js
+++ b/web/settings/assets/counter-32007d3e.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as u,A as o,L as a,u as s,q as d,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSolarwattCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solarwatt-counter"},m={class:"small"};function b(e,t,g,v,w,h){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return p(),u("div",f,[o(r,null,{default:a(()=>[s(" Einstellungen für Solarwatt/My Reserve Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/counter.vue"]]);export{k as default};
+import{_ as c,p as n,k as p,l as u,A as o,L as a,u as s,q as d,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSolarwattCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solarwatt-counter"},m={class:"small"};function b(e,t,g,v,w,h){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return p(),u("div",f,[o(r,null,{default:a(()=>[s(" Einstellungen für Solarwatt/My Reserve Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/counter.vue"]]);export{k as default};
diff --git a/web/settings/assets/counter-8d4f402a.js b/web/settings/assets/counter-45ecd9ff.js
similarity index 86%
rename from web/settings/assets/counter-8d4f402a.js
rename to web/settings/assets/counter-45ecd9ff.js
index cfdd8f17e6..440c9083dd 100644
--- a/web/settings/assets/counter-8d4f402a.js
+++ b/web/settings/assets/counter-45ecd9ff.js
@@ -1 +1 @@
-import{_ as c,p as n,k as u,l as d,A as o,L as s,u as a,q as p,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceHuaweiCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-huawei-counter"},m={class:"small"};function b(e,t,h,g,w,v){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Huawei Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/counter.vue"]]);export{k as default};
+import{_ as c,p as n,k as u,l as d,A as o,L as s,u as a,q as p,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceHuaweiCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-huawei-counter"},m={class:"small"};function b(e,t,h,g,w,v){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return u(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Huawei Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/counter.vue"]]);export{k as default};
diff --git a/web/settings/assets/counter-21f55471.js b/web/settings/assets/counter-4fb4e495.js
similarity index 88%
rename from web/settings/assets/counter-21f55471.js
rename to web/settings/assets/counter-4fb4e495.js
index 54bfdac8a3..0877b67ae7 100644
--- a/web/settings/assets/counter-21f55471.js
+++ b/web/settings/assets/counter-4fb4e495.js
@@ -1 +1 @@
-import{_ as l,p as o,k as c,l as d,A as n,L as p,u as _,q as m,x as v}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const f={name:"DeviceOpenwbEvukitCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-evukit-counter"},g={class:"small"};function w(t,e,a,h,x,i){const s=o("openwb-base-heading"),u=o("openwb-base-select-input");return c(),d("div",b,[n(s,null,{default:p(()=>[_(" Einstellungen für openWB EVU-Kit Zähler "),m("span",g,"(Modul: "+v(t.$options.name)+")",1)]),_:1}),n(u,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=r=>i.updateConfiguration(r,"configuration.version"))},null,8,["model-value"])])}const B=l(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/counter.vue"]]);export{B as default};
+import{_ as l,p as o,k as c,l as d,A as n,L as p,u as _,q as m,x as v}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const f={name:"DeviceOpenwbEvukitCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-evukit-counter"},g={class:"small"};function w(t,e,a,h,x,i){const s=o("openwb-base-heading"),u=o("openwb-base-select-input");return c(),d("div",b,[n(s,null,{default:p(()=>[_(" Einstellungen für openWB EVU-Kit Zähler "),m("span",g,"(Modul: "+v(t.$options.name)+")",1)]),_:1}),n(u,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=r=>i.updateConfiguration(r,"configuration.version"))},null,8,["model-value"])])}const B=l(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/counter.vue"]]);export{B as default};
diff --git a/web/settings/assets/counter-da58c807.js b/web/settings/assets/counter-57c9333b.js
similarity index 86%
rename from web/settings/assets/counter-da58c807.js
rename to web/settings/assets/counter-57c9333b.js
index 08962e40a1..971610add6 100644
--- a/web/settings/assets/counter-da58c807.js
+++ b/web/settings/assets/counter-57c9333b.js
@@ -1 +1 @@
-import{_ as r,p as t,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceFemsCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fems-counter"},m={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),c=t("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openEMS, Fenecon FEMS, Kaco Hy-Control Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const C=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/counter.vue"]]);export{C as default};
+import{_ as r,p as t,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceFemsCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fems-counter"},m={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),c=t("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openEMS, Fenecon FEMS, Kaco Hy-Control Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const C=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/counter.vue"]]);export{C as default};
diff --git a/web/settings/assets/counter-73783603.js b/web/settings/assets/counter-5cb15a92.js
similarity index 86%
rename from web/settings/assets/counter-73783603.js
rename to web/settings/assets/counter-5cb15a92.js
index 5adc1a7640..d81719360d 100644
--- a/web/settings/assets/counter-73783603.js
+++ b/web/settings/assets/counter-5cb15a92.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as u,A as o,L as a,u as s,q as d,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceVartaCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-varta-counter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Varta Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const V=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/counter.vue"]]);export{V as default};
+import{_ as c,p as n,k as p,l as u,A as o,L as a,u as s,q as d,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceVartaCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-varta-counter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:a(()=>[s(" Einstellungen für Varta Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:a(()=>[s(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const V=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/counter.vue"]]);export{V as default};
diff --git a/web/settings/assets/counter-a2c453f6.js b/web/settings/assets/counter-6247163c.js
similarity index 94%
rename from web/settings/assets/counter-a2c453f6.js
rename to web/settings/assets/counter-6247163c.js
index 850c055673..c0c13cba9e 100644
--- a/web/settings/assets/counter-a2c453f6.js
+++ b/web/settings/assets/counter-6247163c.js
@@ -1 +1 @@
-import{_ as d,p as t,k as c,l,A as n,L as p,u as m,q as _,x as g}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const f={name:"DeviceHuaweiSmartLoggerCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},b={class:"device-huawei-smart-logger-counter"},v={class:"small"};function w(o,e,a,h,x,i){const s=t("openwb-base-heading"),u=t("openwb-base-number-input");return c(),l("div",b,[n(s,null,{default:p(()=>[m(" Einstellungen für Huawei SmartLogger Zähler "),_("span",v,"(Modul: "+g(o.$options.name)+")",1)]),_:1}),n(u,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>i.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const V=d(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/counter.vue"]]);export{V as default};
+import{_ as d,p as t,k as c,l,A as n,L as p,u as m,q as _,x as g}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const f={name:"DeviceHuaweiSmartLoggerCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},b={class:"device-huawei-smart-logger-counter"},v={class:"small"};function w(o,e,a,h,x,i){const s=t("openwb-base-heading"),u=t("openwb-base-number-input");return c(),l("div",b,[n(s,null,{default:p(()=>[m(" Einstellungen für Huawei SmartLogger Zähler "),_("span",v,"(Modul: "+g(o.$options.name)+")",1)]),_:1}),n(u,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=r=>i.updateConfiguration(r,"configuration.modbus_id"))},null,8,["model-value"])])}const V=d(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/counter.vue"]]);export{V as default};
diff --git a/web/settings/assets/counter-00ec4a93.js b/web/settings/assets/counter-6264518e.js
similarity index 92%
rename from web/settings/assets/counter-00ec4a93.js
rename to web/settings/assets/counter-6264518e.js
index 454d06a30f..fd9e47c3fb 100644
--- a/web/settings/assets/counter-00ec4a93.js
+++ b/web/settings/assets/counter-6264518e.js
@@ -1 +1 @@
-import{_ as c,p as r,k as m,l as g,A as t,L as u,u as d,q as f,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceVZLoggerCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-vzlogger-counter"},w={class:"small"};function h(o,e,i,Z,V,a){const s=r("openwb-base-heading"),p=r("openwb-base-alert"),l=r("openwb-base-number-input");return m(),g("div",v,[t(s,null,{default:u(()=>[d(" Einstellungen für VZLogger Zähler "),f("span",w,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),t(p,{subtype:"info"},{default:u(()=>[d(' Bitte auf der Shell ausführen: "curl -s IPdesVZLogger:Port | jq .|cat -n" Zählen, in welcher Zeile der gesuchte Wert steht. Bei der ersten Zeile mit 1 anfangen zu zählen. ')]),_:1}),t(l,{title:"Zeile der Leistung",required:"",min:0,"model-value":i.configuration.line_power,"onUpdate:modelValue":e[0]||(e[0]=n=>a.updateConfiguration(n,"configuration.line_power"))},null,8,["model-value"]),t(l,{title:"Zeile der Einspeisung",min:0,"model-value":i.configuration.line_exported,"onUpdate:modelValue":e[1]||(e[1]=n=>a.updateConfiguration(n,"configuration.line_exported"))},null,8,["model-value"]),t(l,{title:"Zeile des Bezugs",min:0,"model-value":i.configuration.line_imported,"onUpdate:modelValue":e[2]||(e[2]=n=>a.updateConfiguration(n,"configuration.line_imported"))},null,8,["model-value"])])}const C=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/counter.vue"]]);export{C as default};
+import{_ as c,p as r,k as m,l as g,A as t,L as u,u as d,q as f,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceVZLoggerCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-vzlogger-counter"},w={class:"small"};function h(o,e,i,Z,V,a){const s=r("openwb-base-heading"),p=r("openwb-base-alert"),l=r("openwb-base-number-input");return m(),g("div",v,[t(s,null,{default:u(()=>[d(" Einstellungen für VZLogger Zähler "),f("span",w,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),t(p,{subtype:"info"},{default:u(()=>[d(' Bitte auf der Shell ausführen: "curl -s IPdesVZLogger:Port | jq .|cat -n" Zählen, in welcher Zeile der gesuchte Wert steht. Bei der ersten Zeile mit 1 anfangen zu zählen. ')]),_:1}),t(l,{title:"Zeile der Leistung",required:"",min:0,"model-value":i.configuration.line_power,"onUpdate:modelValue":e[0]||(e[0]=n=>a.updateConfiguration(n,"configuration.line_power"))},null,8,["model-value"]),t(l,{title:"Zeile der Einspeisung",min:0,"model-value":i.configuration.line_exported,"onUpdate:modelValue":e[1]||(e[1]=n=>a.updateConfiguration(n,"configuration.line_exported"))},null,8,["model-value"]),t(l,{title:"Zeile des Bezugs",min:0,"model-value":i.configuration.line_imported,"onUpdate:modelValue":e[2]||(e[2]=n=>a.updateConfiguration(n,"configuration.line_imported"))},null,8,["model-value"])])}const C=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/counter.vue"]]);export{C as default};
diff --git a/web/settings/assets/counter-2365410a.js b/web/settings/assets/counter-71a69a0f.js
similarity index 91%
rename from web/settings/assets/counter-2365410a.js
rename to web/settings/assets/counter-71a69a0f.js
index f6fc1cdafb..a2897dc85c 100644
--- a/web/settings/assets/counter-2365410a.js
+++ b/web/settings/assets/counter-71a69a0f.js
@@ -1 +1 @@
-import{_ as m,p as a,k as p,l as _,A as n,L as u,u as d,q as f,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceSolarEdgeCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-solaredge-counter"},h={class:"small"};function w(o,e,i,x,C,r){const l=a("openwb-base-heading"),c=a("openwb-base-alert"),s=a("openwb-base-number-input");return p(),_("div",v,[n(l,null,{default:u(()=>[d(" Einstellungen für SolarEdge Zähler "),f("span",h,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(c,{subtype:"info"},{default:u(()=>[d(" Hierfür muss ein EVU-Zähler am SolarEdge Wechselrichter per Modbus angebunden sein. Der Zähler muss an erster Position im Wechselrichter konfiguriert sein. ")]),_:1}),n(s,{title:"Modbus ID","model-value":i.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=t=>r.updateConfiguration(t,"configuration.modbus_id"))},null,8,["model-value"]),n(s,{title:"Meter ID","model-value":i.configuration.meter_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=t=>r.updateConfiguration(t,"configuration.meter_id"))},null,8,["model-value"])])}const D=m(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/counter.vue"]]);export{D as default};
+import{_ as m,p as a,k as p,l as _,A as n,L as u,u as d,q as f,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceSolarEdgeCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-solaredge-counter"},h={class:"small"};function w(o,e,i,x,C,r){const l=a("openwb-base-heading"),c=a("openwb-base-alert"),s=a("openwb-base-number-input");return p(),_("div",v,[n(l,null,{default:u(()=>[d(" Einstellungen für SolarEdge Zähler "),f("span",h,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(c,{subtype:"info"},{default:u(()=>[d(" Hierfür muss ein EVU-Zähler am SolarEdge Wechselrichter per Modbus angebunden sein. Der Zähler muss an erster Position im Wechselrichter konfiguriert sein. ")]),_:1}),n(s,{title:"Modbus ID","model-value":i.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=t=>r.updateConfiguration(t,"configuration.modbus_id"))},null,8,["model-value"]),n(s,{title:"Meter ID","model-value":i.configuration.meter_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=t=>r.updateConfiguration(t,"configuration.meter_id"))},null,8,["model-value"])])}const D=m(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/counter.vue"]]);export{D as default};
diff --git a/web/settings/assets/counter-6d0620dd.js b/web/settings/assets/counter-75ce0061.js
similarity index 97%
rename from web/settings/assets/counter-6d0620dd.js
rename to web/settings/assets/counter-75ce0061.js
index 2722b37d5e..2340defb72 100644
--- a/web/settings/assets/counter-6d0620dd.js
+++ b/web/settings/assets/counter-75ce0061.js
@@ -1 +1 @@
-import{_ as h,p as u,k as c,l as g,A as a,L as l,u as e,q as t,x as p}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceHttpCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(s,n=void 0){this.$emit("update:configuration",{value:s,object:n})}}},f={class:"device-http-counter"},b={class:"small"},w=t("br",null,null,-1),v=t("br",null,null,-1),k=t("br",null,null,-1),S=t("br",null,null,-1),P=t("br",null,null,-1),z=t("br",null,null,-1),Z=t("br",null,null,-1),A=t("br",null,null,-1),x=t("br",null,null,-1),D=t("br",null,null,-1),L=t("br",null,null,-1);function U(s,n,i,F,C,d){const m=u("openwb-base-heading"),o=u("openwb-base-text-input");return c(),g("div",f,[a(m,null,{default:l(()=>[e(" Einstellungen für Http Zähler "),t("span",b,"(Modul: "+p(s.$options.name)+")",1)]),_:1}),a(o,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":i.configuration.power_path,"onUpdate:modelValue":n[0]||(n[0]=r=>d.updateConfiguration(r,"configuration.power_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),w,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Zählerstand Bezug",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.imported_path,"onUpdate:modelValue":n[1]||(n[1]=r=>d.updateConfiguration(r,"configuration.imported_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),v,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),k,e(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Zählerstand Einspeisung",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.exported_path,"onUpdate:modelValue":n[2]||(n[2]=r=>d.updateConfiguration(r,"configuration.exported_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),S,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),P,e(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Strom Phase 1",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.current_l1_path,"onUpdate:modelValue":n[3]||(n[3]=r=>d.updateConfiguration(r,"configuration.current_l1_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),z,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 1. Phase in Ampere darstellt."),Z,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Strom Phase 2",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.current_l2_path,"onUpdate:modelValue":n[4]||(n[4]=r=>d.updateConfiguration(r,"configuration.current_l2_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),A,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 2. Phase in Ampere darstellt."),x,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Strom Phase 3",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.current_l3_path,"onUpdate:modelValue":n[5]||(n[5]=r=>d.updateConfiguration(r,"configuration.current_l3_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),D,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 3. Phase in Ampere darstellt."),L,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"])])}const V=h(_,[["render",U],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/counter.vue"]]);export{V as default};
+import{_ as h,p as u,k as c,l as g,A as a,L as l,u as e,q as t,x as p}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceHttpCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(s,n=void 0){this.$emit("update:configuration",{value:s,object:n})}}},f={class:"device-http-counter"},b={class:"small"},w=t("br",null,null,-1),v=t("br",null,null,-1),k=t("br",null,null,-1),S=t("br",null,null,-1),P=t("br",null,null,-1),z=t("br",null,null,-1),Z=t("br",null,null,-1),A=t("br",null,null,-1),x=t("br",null,null,-1),D=t("br",null,null,-1),L=t("br",null,null,-1);function U(s,n,i,F,C,d){const m=u("openwb-base-heading"),o=u("openwb-base-text-input");return c(),g("div",f,[a(m,null,{default:l(()=>[e(" Einstellungen für Http Zähler "),t("span",b,"(Modul: "+p(s.$options.name)+")",1)]),_:1}),a(o,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":i.configuration.power_path,"onUpdate:modelValue":n[0]||(n[0]=r=>d.updateConfiguration(r,"configuration.power_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),w,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Zählerstand Bezug",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.imported_path,"onUpdate:modelValue":n[1]||(n[1]=r=>d.updateConfiguration(r,"configuration.imported_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),v,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),k,e(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Zählerstand Einspeisung",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.exported_path,"onUpdate:modelValue":n[2]||(n[2]=r=>d.updateConfiguration(r,"configuration.exported_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),S,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),P,e(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Strom Phase 1",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.current_l1_path,"onUpdate:modelValue":n[3]||(n[3]=r=>d.updateConfiguration(r,"configuration.current_l1_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),z,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 1. Phase in Ampere darstellt."),Z,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Strom Phase 2",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.current_l2_path,"onUpdate:modelValue":n[4]||(n[4]=r=>d.updateConfiguration(r,"configuration.current_l2_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),A,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 2. Phase in Ampere darstellt."),x,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"]),a(o,{title:"Pfad für Strom Phase 3",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":i.configuration.current_l3_path,"onUpdate:modelValue":n[5]||(n[5]=r=>d.updateConfiguration(r,"configuration.current_l3_path"))},{help:l(()=>[e(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),D,e(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Stromstärke der 3. Phase in Ampere darstellt."),L,e(" Wird dieses Feld leer gelassen, werden keine Phasenströme ermittelt und es kann kein Lastmanagement berechnet werden! ")]),_:1},8,["model-value"])])}const V=h(_,[["render",U],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/counter.vue"]]);export{V as default};
diff --git a/web/settings/assets/counter-d03b355d.js b/web/settings/assets/counter-83354bca.js
similarity index 85%
rename from web/settings/assets/counter-d03b355d.js
rename to web/settings/assets/counter-83354bca.js
index 8220673d78..0974be2dd9 100644
--- a/web/settings/assets/counter-d03b355d.js
+++ b/web/settings/assets/counter-83354bca.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceRCTCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-rct-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für RCT Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/counter.vue"]]);export{x as default};
+import{_ as c,p as n,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceRCTCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-rct-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für RCT Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/counter.vue"]]);export{x as default};
diff --git a/web/settings/assets/counter-478d9577.js b/web/settings/assets/counter-9513e8db.js
similarity index 90%
rename from web/settings/assets/counter-478d9577.js
rename to web/settings/assets/counter-9513e8db.js
index e5aecd1845..026f0641c2 100644
--- a/web/settings/assets/counter-478d9577.js
+++ b/web/settings/assets/counter-9513e8db.js
@@ -1 +1 @@
-import{_ as c,p as t,k as p,l as m,A as o,L as i,u as s,q as _,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceSungrowCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},b={class:"device-sungrow-counter"},v={class:"small"};function h(n,e,a,w,S,r){const u=t("openwb-base-heading"),d=t("openwb-base-select-input");return p(),m("div",b,[o(u,null,{default:i(()=>[s(" Einstellungen für Sungrow Zähler "),_("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"Version",options:[{value:0,text:"SH (Hybrid)"},{value:1,text:"SG (kein Hybrid)"},{value:2,text:"SG (kein Hybrid) mit WiNet Dongle"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>r.updateConfiguration(l,"configuration.version"))},{help:i(()=>[s(" Die Variante SH ist nur über die LAN-IP mit openWB nutzbar. Hierzu hinter dem WiNet-S Dongle den Lan Anschluss nutzen. Den WiNet-S Dongle zusätzlich ins Heimnetz (per Lan oder Wlan) einbinden, um ISolarCloud nutzen zu können. ")]),_:1},8,["options","model-value"])])}const D=c(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/counter.vue"]]);export{D as default};
+import{_ as c,p as t,k as p,l as m,A as o,L as i,u as s,q as _,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceSungrowCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},b={class:"device-sungrow-counter"},v={class:"small"};function h(n,e,a,w,S,r){const u=t("openwb-base-heading"),d=t("openwb-base-select-input");return p(),m("div",b,[o(u,null,{default:i(()=>[s(" Einstellungen für Sungrow Zähler "),_("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"Version",options:[{value:0,text:"SH (Hybrid)"},{value:1,text:"SG (kein Hybrid)"},{value:2,text:"SG (kein Hybrid) mit WiNet Dongle"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>r.updateConfiguration(l,"configuration.version"))},{help:i(()=>[s(" Die Variante SH ist nur über die LAN-IP mit openWB nutzbar. Hierzu hinter dem WiNet-S Dongle den Lan Anschluss nutzen. Den WiNet-S Dongle zusätzlich ins Heimnetz (per Lan oder Wlan) einbinden, um ISolarCloud nutzen zu können. ")]),_:1},8,["options","model-value"])])}const D=c(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/counter.vue"]]);export{D as default};
diff --git a/web/settings/assets/counter-fbf1efa1.js b/web/settings/assets/counter-969297fa.js
similarity index 85%
rename from web/settings/assets/counter-fbf1efa1.js
rename to web/settings/assets/counter-969297fa.js
index 437ec022b5..78d0ae0b99 100644
--- a/web/settings/assets/counter-fbf1efa1.js
+++ b/web/settings/assets/counter-969297fa.js
@@ -1 +1 @@
-import{_ as r,p as n,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceE3dcCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für E3DC Zähler "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const C=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/counter.vue"]]);export{C as default};
+import{_ as r,p as n,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceE3dcCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für E3DC Zähler "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const C=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/counter.vue"]]);export{C as default};
diff --git a/web/settings/assets/counter-f56715cd.js b/web/settings/assets/counter-9a41f79b.js
similarity index 89%
rename from web/settings/assets/counter-f56715cd.js
rename to web/settings/assets/counter-9a41f79b.js
index 0789f7aac9..fff671027c 100644
--- a/web/settings/assets/counter-f56715cd.js
+++ b/web/settings/assets/counter-9a41f79b.js
@@ -1 +1 @@
-import{_ as u,p as n,k as l,l as d,A as r,L as s,u as t,q as a,x as p}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceKostalPlenticoreCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-kostalplenticore-counter"},h={class:"small"},m=a("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Zähler",target:"_blank",rel:"noopener noreferrer"},"Wiki für Hausverbrauchs-Zähler",-1);function b(e,o,g,v,w,k){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return l(),d("div",f,[r(i,null,{default:s(()=>[t(" Einstellungen für Kostal Plenticore Zähler "),a("span",h,"(Modul: "+p(e.$options.name)+")",1)]),_:1}),r(c,{subtype:"info"},{default:s(()=>[t(" Wenn der Zähler im Hausverbrauchs-Zweig installiert ist, muss die Hierarchie wie im "),m,t(" beschrieben, angeordnet werden. ")]),_:1})])}const B=u(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/counter.vue"]]);export{B as default};
+import{_ as u,p as n,k as l,l as d,A as r,L as s,u as t,q as a,x as p}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceKostalPlenticoreCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-kostalplenticore-counter"},h={class:"small"},m=a("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Zähler",target:"_blank",rel:"noopener noreferrer"},"Wiki für Hausverbrauchs-Zähler",-1);function b(e,o,g,v,w,k){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return l(),d("div",f,[r(i,null,{default:s(()=>[t(" Einstellungen für Kostal Plenticore Zähler "),a("span",h,"(Modul: "+p(e.$options.name)+")",1)]),_:1}),r(c,{subtype:"info"},{default:s(()=>[t(" Wenn der Zähler im Hausverbrauchs-Zweig installiert ist, muss die Hierarchie wie im "),m,t(" beschrieben, angeordnet werden. ")]),_:1})])}const B=u(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/counter.vue"]]);export{B as default};
diff --git a/web/settings/assets/counter-1905ec77.js b/web/settings/assets/counter-9a77fa00.js
similarity index 90%
rename from web/settings/assets/counter-1905ec77.js
rename to web/settings/assets/counter-9a77fa00.js
index be423eae70..8793235fac 100644
--- a/web/settings/assets/counter-1905ec77.js
+++ b/web/settings/assets/counter-9a77fa00.js
@@ -1 +1 @@
-import{_ as l,p as o,k as c,l as p,A as u,L as m,u as _,q as b,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceVictronCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-victron-counter"},V={class:"small"};function w(t,e,i,x,C,a){const r=o("openwb-base-heading"),s=o("openwb-base-number-input"),d=o("openwb-base-button-group-input");return c(),p("div",v,[u(r,null,{default:m(()=>[_(" Einstellungen für Victron Zähler "),b("span",V,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),u(s,{title:"Modbus-ID",min:1,max:255,required:"","model-value":i.configuration.modbus_id,"onUpdate:modelValue":e[0]||(e[0]=n=>a.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),u(d,{title:"Messgerät",buttons:[{buttonValue:!1,text:"AC-In Victron GX"},{buttonValue:!0,text:"Energy Meter"}],"model-value":i.configuration.energy_meter,"onUpdate:modelValue":e[1]||(e[1]=n=>a.updateConfiguration(n,"configuration.energy_meter"))},null,8,["model-value"])])}const q=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/counter.vue"]]);export{q as default};
+import{_ as l,p as o,k as c,l as p,A as u,L as m,u as _,q as b,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceVictronCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-victron-counter"},V={class:"small"};function w(t,e,i,x,C,a){const r=o("openwb-base-heading"),s=o("openwb-base-number-input"),d=o("openwb-base-button-group-input");return c(),p("div",v,[u(r,null,{default:m(()=>[_(" Einstellungen für Victron Zähler "),b("span",V,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),u(s,{title:"Modbus-ID",min:1,max:255,required:"","model-value":i.configuration.modbus_id,"onUpdate:modelValue":e[0]||(e[0]=n=>a.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),u(d,{title:"Messgerät",buttons:[{buttonValue:!1,text:"AC-In Victron GX"},{buttonValue:!0,text:"Energy Meter"}],"model-value":i.configuration.energy_meter,"onUpdate:modelValue":e[1]||(e[1]=n=>a.updateConfiguration(n,"configuration.energy_meter"))},null,8,["model-value"])])}const q=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/counter.vue"]]);export{q as default};
diff --git a/web/settings/assets/counter-eab5abf7.js b/web/settings/assets/counter-9c24dc5c.js
similarity index 87%
rename from web/settings/assets/counter-eab5abf7.js
rename to web/settings/assets/counter-9c24dc5c.js
index c658d8811e..4d1a514b54 100644
--- a/web/settings/assets/counter-eab5abf7.js
+++ b/web/settings/assets/counter-9c24dc5c.js
@@ -1 +1 @@
-import{_ as d,p as n,k as c,l as p,A as o,L as l,u as m,q as _,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceSmartMeCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-smart-me-counter"},v={class:"small"};function h(t,e,a,x,w,s){const i=n("openwb-base-heading"),r=n("openwb-base-text-input");return c(),p("div",b,[o(i,null,{default:l(()=>[m(" Einstellungen für smart-me Zähler "),_("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(r,{title:"Geräte-ID",required:"","model-value":a.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=u=>s.updateConfiguration(u,"configuration.id"))},null,8,["model-value"])])}const B=d(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/counter.vue"]]);export{B as default};
+import{_ as d,p as n,k as c,l as p,A as o,L as l,u as m,q as _,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceSmartMeCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-smart-me-counter"},v={class:"small"};function h(t,e,a,x,w,s){const i=n("openwb-base-heading"),r=n("openwb-base-text-input");return c(),p("div",b,[o(i,null,{default:l(()=>[m(" Einstellungen für smart-me Zähler "),_("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(r,{title:"Geräte-ID",required:"","model-value":a.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=u=>s.updateConfiguration(u,"configuration.id"))},null,8,["model-value"])])}const B=d(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/counter.vue"]]);export{B as default};
diff --git a/web/settings/assets/counter-c0f3f4ac.js b/web/settings/assets/counter-a13ecb51.js
similarity index 90%
rename from web/settings/assets/counter-c0f3f4ac.js
rename to web/settings/assets/counter-a13ecb51.js
index 6262fffc03..8b39fea13e 100644
--- a/web/settings/assets/counter-c0f3f4ac.js
+++ b/web/settings/assets/counter-a13ecb51.js
@@ -1 +1 @@
-import{_ as l,p as t,k as p,l as m,A as o,L as i,u as r,q as _,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceVirtualCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},h={class:"device-virtual-counter"},b={class:"small"};function v(n,e,a,w,x,s){const u=t("openwb-base-heading"),d=t("openwb-base-number-input");return p(),m("div",h,[o(u,null,{default:i(()=>[r(" Einstellungen für virtuelle Zähler "),_("span",b,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"Zusätzlicher Verbrauch",min:0,step:.05,unit:"kW",required:"","model-value":a.configuration.external_consumption/1e3,"onUpdate:modelValue":e[0]||(e[0]=c=>s.updateConfiguration(c*1e3,"configuration.external_consumption"))},{help:i(()=>[r(" Die hier angegebene Leistung wird pauschal zu dem Leistungen der hinter dem Zähler liegenden Komponenten addiert. Damit lässt sich z. B. eine Reserve für nicht erfasste Verbraucher einstellen. ")]),_:1},8,["model-value"])])}const C=l(g,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/virtual/counter.vue"]]);export{C as default};
+import{_ as l,p as t,k as p,l as m,A as o,L as i,u as r,q as _,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceVirtualCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},h={class:"device-virtual-counter"},b={class:"small"};function v(n,e,a,w,x,s){const u=t("openwb-base-heading"),d=t("openwb-base-number-input");return p(),m("div",h,[o(u,null,{default:i(()=>[r(" Einstellungen für virtuelle Zähler "),_("span",b,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"Zusätzlicher Verbrauch",min:0,step:.05,unit:"kW",required:"","model-value":a.configuration.external_consumption/1e3,"onUpdate:modelValue":e[0]||(e[0]=c=>s.updateConfiguration(c*1e3,"configuration.external_consumption"))},{help:i(()=>[r(" Die hier angegebene Leistung wird pauschal zu dem Leistungen der hinter dem Zähler liegenden Komponenten addiert. Damit lässt sich z. B. eine Reserve für nicht erfasste Verbraucher einstellen. ")]),_:1},8,["model-value"])])}const C=l(g,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/virtual/counter.vue"]]);export{C as default};
diff --git a/web/settings/assets/counter-9097a073.js b/web/settings/assets/counter-a3e434aa.js
similarity index 86%
rename from web/settings/assets/counter-9097a073.js
rename to web/settings/assets/counter-a3e434aa.js
index 82e303d217..7c70d0aabf 100644
--- a/web/settings/assets/counter-9097a073.js
+++ b/web/settings/assets/counter-a3e434aa.js
@@ -1 +1 @@
-import{_ as c,p as t,k as d,l as p,A as n,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceGoodWeCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-goodwe-counter"},m={class:"small"};function b(e,o,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),p("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für GoodWe Zähler "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/counter.vue"]]);export{k as default};
+import{_ as c,p as t,k as d,l as p,A as n,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceGoodWeCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-goodwe-counter"},m={class:"small"};function b(e,o,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),p("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für GoodWe Zähler "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/counter.vue"]]);export{k as default};
diff --git a/web/settings/assets/counter-18fd3233.js b/web/settings/assets/counter-b09d3ede.js
similarity index 90%
rename from web/settings/assets/counter-18fd3233.js
rename to web/settings/assets/counter-b09d3ede.js
index 930c8d9c35..f50bce910a 100644
--- a/web/settings/assets/counter-18fd3233.js
+++ b/web/settings/assets/counter-b09d3ede.js
@@ -1 +1 @@
-import{_ as u,p as r,k as c,l as d,A as s,L as a,u as e,q as o,x as p}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSolarLogCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,n=void 0){this.$emit("update:configuration",{value:t,object:n})}}},m={class:"device-solar_log-counter"},h={class:"small"},f=o("span",{class:"text-danger"},[e(" Solar-Log Zähler geben keine Ströme aus, sodass kein Lastmanagement möglich ist."),o("br")],-1),g=o("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Z%C3%A4hler",target:"_blank",rel:"noopener noreferrer"}," Wiki für Hausverbrauchs-Zähler ",-1);function b(t,n,v,k,w,Z){const i=r("openwb-base-heading"),l=r("openwb-base-alert");return c(),d("div",m,[s(i,null,{default:a(()=>[e(" Einstellungen für Solar-Log Zähler "),o("span",h,"(Modul: "+p(t.$options.name)+")",1)]),_:1}),s(l,{subtype:"info"},{default:a(()=>[f,e(" Solar-Log Zähler sind Hausverbrauchs-Zähler. Um die Werte am EVU-Punkt zu ermitteln, muss ein virtueller Zähler konfiguriert werden. Eine Beispiel-Konfiguration mit Solar-Log Zähler findest Du im "),g,e(". ")]),_:1})])}const x=u(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/counter.vue"]]);export{x as default};
+import{_ as u,p as r,k as c,l as d,A as s,L as a,u as e,q as o,x as p}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSolarLogCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,n=void 0){this.$emit("update:configuration",{value:t,object:n})}}},m={class:"device-solar_log-counter"},h={class:"small"},f=o("span",{class:"text-danger"},[e(" Solar-Log Zähler geben keine Ströme aus, sodass kein Lastmanagement möglich ist."),o("br")],-1),g=o("a",{href:"https://github.com/openWB/core/wiki/Hausverbrauchs-Z%C3%A4hler",target:"_blank",rel:"noopener noreferrer"}," Wiki für Hausverbrauchs-Zähler ",-1);function b(t,n,v,k,w,Z){const i=r("openwb-base-heading"),l=r("openwb-base-alert");return c(),d("div",m,[s(i,null,{default:a(()=>[e(" Einstellungen für Solar-Log Zähler "),o("span",h,"(Modul: "+p(t.$options.name)+")",1)]),_:1}),s(l,{subtype:"info"},{default:a(()=>[f,e(" Solar-Log Zähler sind Hausverbrauchs-Zähler. Um die Werte am EVU-Punkt zu ermitteln, muss ein virtueller Zähler konfiguriert werden. Eine Beispiel-Konfiguration mit Solar-Log Zähler findest Du im "),g,e(". ")]),_:1})])}const x=u(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/counter.vue"]]);export{x as default};
diff --git a/web/settings/assets/counter-ad208981.js b/web/settings/assets/counter-b4f1d52c.js
similarity index 85%
rename from web/settings/assets/counter-ad208981.js
rename to web/settings/assets/counter-b4f1d52c.js
index 0a31e209f2..1ce1ddecfa 100644
--- a/web/settings/assets/counter-ad208981.js
+++ b/web/settings/assets/counter-b4f1d52c.js
@@ -1 +1 @@
-import{_ as c,p as t,k as p,l as u,A as n,L as s,u as a,q as d,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceKostalPikoCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-kostalpiko-counter"},m={class:"small"};function b(e,o,h,v,g,k){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return p(),u("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für Kostal Piko Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Hausverbrauchszähler ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko/counter.vue"]]);export{x as default};
+import{_ as c,p as t,k as p,l as u,A as n,L as s,u as a,q as d,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceKostalPikoCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-kostalpiko-counter"},m={class:"small"};function b(e,o,h,v,g,k){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return p(),u("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für Kostal Piko Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Hausverbrauchszähler ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko/counter.vue"]]);export{x as default};
diff --git a/web/settings/assets/counter-46b207f3.js b/web/settings/assets/counter-b804ace4.js
similarity index 91%
rename from web/settings/assets/counter-46b207f3.js
rename to web/settings/assets/counter-b804ace4.js
index b195691698..ef37e159c7 100644
--- a/web/settings/assets/counter-46b207f3.js
+++ b/web/settings/assets/counter-b804ace4.js
@@ -1 +1 @@
-import{_ as l,p as o,k as f,l as _,A as r,L as i,u as t,q as a,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DevicePowerfoxCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-powerfox-counter"},h={class:"small"},w=a("a",{href:"https://backend.powerfox.energy/api/2.0/my/all/devices",target:"_blank",rel:"noopener noreferrer"}," https://backend.powerfox.energy/api/2.0/my/all/devices ",-1);function v(n,e,s,x,D,d){const u=o("openwb-base-heading"),c=o("openwb-base-text-input");return f(),_("div",g,[r(u,null,{default:i(()=>[t(" Einstellungen für Powerfox Zähler "),a("span",h,"(Modul: "+m(n.$options.name)+")",1)]),_:1}),r(c,{title:"ID",required:"","model-value":s.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.id"))},{help:i(()=>[t(" Um die ID herauszufinden mit dem Browser die Adresse "),w,t(" aufrufen und dort Benutzername und Passwort eingeben. Die Device ID ist exakt so einzutragen, wie in der Antwort des Servers. Das bedeutet insbesondere auch, die Groß-/KLeinschreibung ist zu beachten! ")]),_:1},8,["model-value"])])}const B=l(b,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/counter.vue"]]);export{B as default};
+import{_ as l,p as o,k as f,l as _,A as r,L as i,u as t,q as a,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DevicePowerfoxCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-powerfox-counter"},h={class:"small"},w=a("a",{href:"https://backend.powerfox.energy/api/2.0/my/all/devices",target:"_blank",rel:"noopener noreferrer"}," https://backend.powerfox.energy/api/2.0/my/all/devices ",-1);function v(n,e,s,x,D,d){const u=o("openwb-base-heading"),c=o("openwb-base-text-input");return f(),_("div",g,[r(u,null,{default:i(()=>[t(" Einstellungen für Powerfox Zähler "),a("span",h,"(Modul: "+m(n.$options.name)+")",1)]),_:1}),r(c,{title:"ID",required:"","model-value":s.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.id"))},{help:i(()=>[t(" Um die ID herauszufinden mit dem Browser die Adresse "),w,t(" aufrufen und dort Benutzername und Passwort eingeben. Die Device ID ist exakt so einzutragen, wie in der Antwort des Servers. Das bedeutet insbesondere auch, die Groß-/KLeinschreibung ist zu beachten! ")]),_:1},8,["model-value"])])}const B=l(b,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/counter.vue"]]);export{B as default};
diff --git a/web/settings/assets/counter-3df9b0e7.js b/web/settings/assets/counter-c9dc9c81.js
similarity index 88%
rename from web/settings/assets/counter-3df9b0e7.js
rename to web/settings/assets/counter-c9dc9c81.js
index 8d0b95711e..be8ec3b14a 100644
--- a/web/settings/assets/counter-3df9b0e7.js
+++ b/web/settings/assets/counter-c9dc9c81.js
@@ -1 +1 @@
-import{_ as d,p as t,k as p,l as c,A as n,L as l,u as _,q as f,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DevicePowerdogCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-powerdog-counter"},v={class:"small"};function w(o,e,u,h,x,a){const i=t("openwb-base-heading"),s=t("openwb-base-button-group-input");return p(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für Powerdog Zähler "),f("span",v,"(Modul: "+m(o.$options.name)+")",1)]),_:1}),n(s,{title:"Einbau-Position",buttons:[{buttonValue:!1,text:"Hausverbrauch"},{buttonValue:!0,text:"EVU-Punkt"}],"model-value":u.configuration.position_evu,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.position_evu"))},null,8,["model-value"])])}const k=d(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/counter.vue"]]);export{k as default};
+import{_ as d,p as t,k as p,l as c,A as n,L as l,u as _,q as f,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DevicePowerdogCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-powerdog-counter"},v={class:"small"};function w(o,e,u,h,x,a){const i=t("openwb-base-heading"),s=t("openwb-base-button-group-input");return p(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für Powerdog Zähler "),f("span",v,"(Modul: "+m(o.$options.name)+")",1)]),_:1}),n(s,{title:"Einbau-Position",buttons:[{buttonValue:!1,text:"Hausverbrauch"},{buttonValue:!0,text:"EVU-Punkt"}],"model-value":u.configuration.position_evu,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.position_evu"))},null,8,["model-value"])])}const k=d(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/counter.vue"]]);export{k as default};
diff --git a/web/settings/assets/counter-57df9eec.js b/web/settings/assets/counter-cd290a98.js
similarity index 86%
rename from web/settings/assets/counter-57df9eec.js
rename to web/settings/assets/counter-cd290a98.js
index 27bcf0f7c4..8cbe1a2f77 100644
--- a/web/settings/assets/counter-57df9eec.js
+++ b/web/settings/assets/counter-cd290a98.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSmartfoxCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-smartfox-counter"},m={class:"small"};function b(e,t,g,h,v,x){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Smartfox Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smartfox/counter.vue"]]);export{k as default};
+import{_ as c,p as n,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSmartfoxCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-smartfox-counter"},m={class:"small"};function b(e,t,g,h,v,x){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Smartfox Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smartfox/counter.vue"]]);export{k as default};
diff --git a/web/settings/assets/counter-2e4fa5c2.js b/web/settings/assets/counter-cf4834fd.js
similarity index 86%
rename from web/settings/assets/counter-2e4fa5c2.js
rename to web/settings/assets/counter-cf4834fd.js
index b35644d58b..47dd0037a0 100644
--- a/web/settings/assets/counter-2e4fa5c2.js
+++ b/web/settings/assets/counter-cf4834fd.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceLGCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-lg-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für LG ESS V1.0 Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/counter.vue"]]);export{k as default};
+import{_ as c,p as n,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceLGCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-lg-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für LG ESS V1.0 Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/counter.vue"]]);export{k as default};
diff --git a/web/settings/assets/counter-fcc6cfc8.js b/web/settings/assets/counter-d1489ce8.js
similarity index 86%
rename from web/settings/assets/counter-fcc6cfc8.js
rename to web/settings/assets/counter-d1489ce8.js
index c8bc40bb41..7e699603e4 100644
--- a/web/settings/assets/counter-fcc6cfc8.js
+++ b/web/settings/assets/counter-d1489ce8.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceBatterXCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-batterx-counter"},m={class:"small"};function b(e,t,g,h,v,x){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für BatterX Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/counter.vue"]]);export{$ as default};
+import{_ as c,p as n,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceBatterXCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-batterx-counter"},m={class:"small"};function b(e,t,g,h,v,x){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für BatterX Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/counter.vue"]]);export{$ as default};
diff --git a/web/settings/assets/counter-77841659.js b/web/settings/assets/counter-e15f2c06.js
similarity index 86%
rename from web/settings/assets/counter-77841659.js
rename to web/settings/assets/counter-e15f2c06.js
index 89d12a83c3..009e42c869 100644
--- a/web/settings/assets/counter-77841659.js
+++ b/web/settings/assets/counter-e15f2c06.js
@@ -1 +1 @@
-import{_ as r,p as n,k as l,l as p,A as o,L as s,u as a,q as u,x as d}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceQCelllsCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-qcells-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return l(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für QCells ESS Zähler "),u("span",m,"(Modul: "+d(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const q=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/counter.vue"]]);export{q as default};
+import{_ as r,p as n,k as l,l as p,A as o,L as s,u as a,q as u,x as d}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceQCelllsCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-qcells-counter"},m={class:"small"};function b(e,t,g,h,v,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return l(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für QCells ESS Zähler "),u("span",m,"(Modul: "+d(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const q=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/counter.vue"]]);export{q as default};
diff --git a/web/settings/assets/counter-46a15c2b.js b/web/settings/assets/counter-e3807695.js
similarity index 96%
rename from web/settings/assets/counter-46a15c2b.js
rename to web/settings/assets/counter-e3807695.js
index a33b0a7594..cd1f32fcca 100644
--- a/web/settings/assets/counter-46a15c2b.js
+++ b/web/settings/assets/counter-e3807695.js
@@ -1 +1 @@
-import{_ as g,p as d,k as p,l as _,A as n,L as u,u as r,q as s,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const c={name:"DeviceJsonCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},w={class:"device-json-counter"},v={class:"small"},j=s("br",null,null,-1);function q(i,e,o,h,x,a){const f=d("openwb-base-heading"),l=d("openwb-base-text-input"),m=d("openwb-base-alert");return p(),_("div",w,[n(f,null,{default:u(()=>[r(" Einstellungen für JSON Zähler "),s("span",v,"(Modul: "+b(i.$options.name)+")",1)]),_:1}),n(l,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":o.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.jq_power"))},{help:u(()=>[r(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. '),j,r(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ")]),_:1},8,["model-value"]),n(l,{title:"Abfrage für Zählerstand Bezug",subtype:"text","model-value":o.configuration.jq_imported,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.jq_imported"))},{help:u(()=>[r(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"]),n(l,{title:"Abfrage für Zählerstand Einspeisung",subtype:"text","model-value":o.configuration.jq_exported,"onUpdate:modelValue":e[2]||(e[2]=t=>a.updateConfiguration(t,"configuration.jq_exported"))},{help:u(()=>[r(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"]),n(m,{subtype:"info"},{default:u(()=>[r(" Werden sowohl Leistung als auch Strom auf den Einzelphasen leer gelassen, erfolgt das Lastmanagement am EVU-Punkt nur anhand der Gesamtleistung am EVU-Punkt. Wird der Zähler als Zwischenzähler verwendet, wird in diesem Fall kein Lastmanagement durchgeführt. ")]),_:1}),n(l,{title:"Abfrage für Leistung auf Phase 1",subtype:"text","model-value":o.configuration.jq_power_l1,"onUpdate:modelValue":e[3]||(e[3]=t=>a.updateConfiguration(t,"configuration.jq_power_l1"))},null,8,["model-value"]),n(l,{title:"Abfrage für Leistung auf Phase 2",subtype:"text","model-value":o.configuration.jq_power_l2,"onUpdate:modelValue":e[4]||(e[4]=t=>a.updateConfiguration(t,"configuration.jq_power_l2"))},null,8,["model-value"]),n(l,{title:"Abfrage für Leistung auf Phase 3",subtype:"text","model-value":o.configuration.jq_power_l3,"onUpdate:modelValue":e[5]||(e[5]=t=>a.updateConfiguration(t,"configuration.jq_power_l3"))},null,8,["model-value"]),n(l,{title:"Abfrage für Strom auf Phase 1",subtype:"text","model-value":o.configuration.jq_current_l1,"onUpdate:modelValue":e[6]||(e[6]=t=>a.updateConfiguration(t,"configuration.jq_current_l1"))},null,8,["model-value"]),n(l,{title:"Abfrage für Strom auf Phase 2",subtype:"text","model-value":o.configuration.jq_current_l2,"onUpdate:modelValue":e[7]||(e[7]=t=>a.updateConfiguration(t,"configuration.jq_current_l2"))},null,8,["model-value"]),n(l,{title:"Abfrage für Strom auf Phase 3",subtype:"text","model-value":o.configuration.jq_current_l3,"onUpdate:modelValue":e[8]||(e[8]=t=>a.updateConfiguration(t,"configuration.jq_current_l3"))},null,8,["model-value"])])}const y=g(c,[["render",q],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/counter.vue"]]);export{y as default};
+import{_ as g,p as d,k as p,l as _,A as n,L as u,u as r,q as s,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const c={name:"DeviceJsonCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},w={class:"device-json-counter"},v={class:"small"},j=s("br",null,null,-1);function q(i,e,o,h,x,a){const f=d("openwb-base-heading"),l=d("openwb-base-text-input"),m=d("openwb-base-alert");return p(),_("div",w,[n(f,null,{default:u(()=>[r(" Einstellungen für JSON Zähler "),s("span",v,"(Modul: "+b(i.$options.name)+")",1)]),_:1}),n(l,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":o.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.jq_power"))},{help:u(()=>[r(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. '),j,r(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. ")]),_:1},8,["model-value"]),n(l,{title:"Abfrage für Zählerstand Bezug",subtype:"text","model-value":o.configuration.jq_imported,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.jq_imported"))},{help:u(()=>[r(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"]),n(l,{title:"Abfrage für Zählerstand Einspeisung",subtype:"text","model-value":o.configuration.jq_exported,"onUpdate:modelValue":e[2]||(e[2]=t=>a.updateConfiguration(t,"configuration.jq_exported"))},{help:u(()=>[r(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"]),n(m,{subtype:"info"},{default:u(()=>[r(" Werden sowohl Leistung als auch Strom auf den Einzelphasen leer gelassen, erfolgt das Lastmanagement am EVU-Punkt nur anhand der Gesamtleistung am EVU-Punkt. Wird der Zähler als Zwischenzähler verwendet, wird in diesem Fall kein Lastmanagement durchgeführt. ")]),_:1}),n(l,{title:"Abfrage für Leistung auf Phase 1",subtype:"text","model-value":o.configuration.jq_power_l1,"onUpdate:modelValue":e[3]||(e[3]=t=>a.updateConfiguration(t,"configuration.jq_power_l1"))},null,8,["model-value"]),n(l,{title:"Abfrage für Leistung auf Phase 2",subtype:"text","model-value":o.configuration.jq_power_l2,"onUpdate:modelValue":e[4]||(e[4]=t=>a.updateConfiguration(t,"configuration.jq_power_l2"))},null,8,["model-value"]),n(l,{title:"Abfrage für Leistung auf Phase 3",subtype:"text","model-value":o.configuration.jq_power_l3,"onUpdate:modelValue":e[5]||(e[5]=t=>a.updateConfiguration(t,"configuration.jq_power_l3"))},null,8,["model-value"]),n(l,{title:"Abfrage für Strom auf Phase 1",subtype:"text","model-value":o.configuration.jq_current_l1,"onUpdate:modelValue":e[6]||(e[6]=t=>a.updateConfiguration(t,"configuration.jq_current_l1"))},null,8,["model-value"]),n(l,{title:"Abfrage für Strom auf Phase 2",subtype:"text","model-value":o.configuration.jq_current_l2,"onUpdate:modelValue":e[7]||(e[7]=t=>a.updateConfiguration(t,"configuration.jq_current_l2"))},null,8,["model-value"]),n(l,{title:"Abfrage für Strom auf Phase 3",subtype:"text","model-value":o.configuration.jq_current_l3,"onUpdate:modelValue":e[8]||(e[8]=t=>a.updateConfiguration(t,"configuration.jq_current_l3"))},null,8,["model-value"])])}const y=g(c,[["render",q],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/counter.vue"]]);export{y as default};
diff --git a/web/settings/assets/counter-df3e561f.js b/web/settings/assets/counter-e7921fa4.js
similarity index 87%
rename from web/settings/assets/counter-df3e561f.js
rename to web/settings/assets/counter-e7921fa4.js
index 3f8614da99..b11d2f34ac 100644
--- a/web/settings/assets/counter-df3e561f.js
+++ b/web/settings/assets/counter-e7921fa4.js
@@ -1 +1 @@
-import{_ as c,p as t,k as d,l as u,A as o,L as s,u as a,q as p,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSonnenbatterieCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-sonnenbatterie-counter"},f={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),u("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für SonnenBatterie Zähler "),p("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Mit diesem Modul ist kein Lastmanagement möglich, da keine Ströme der einzelnen Phasen gemessen werden. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/counter.vue"]]);export{x as default};
+import{_ as c,p as t,k as d,l as u,A as o,L as s,u as a,q as p,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSonnenbatterieCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-sonnenbatterie-counter"},f={class:"small"};function b(e,n,g,h,v,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),u("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für SonnenBatterie Zähler "),p("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Mit diesem Modul ist kein Lastmanagement möglich, da keine Ströme der einzelnen Phasen gemessen werden. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/counter.vue"]]);export{x as default};
diff --git a/web/settings/assets/counter-5b0b9661.js b/web/settings/assets/counter-ed28bc4b.js
similarity index 88%
rename from web/settings/assets/counter-5b0b9661.js
rename to web/settings/assets/counter-ed28bc4b.js
index 37f5fdbaba..2f0cdcf241 100644
--- a/web/settings/assets/counter-5b0b9661.js
+++ b/web/settings/assets/counter-ed28bc4b.js
@@ -1 +1 @@
-import{_ as c,p as n,k as d,l as u,A as o,L as s,u as a,q as p,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceKostalSEMCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-kostal-sem-counter"},f={class:"small"};function h(e,t,g,b,v,w){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),u("div",m,[o(r,null,{default:s(()=>[a(" Einstellungen für Kostal Smart Energy Meter oder TQ EM 410 Zähler "),p("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente ist nur richtig, wenn der Zähler NICHT direkt am Wechselrichter (Kostal Plenticore) angeschlossen ist und daher separat abgefragt werden muss. ")]),_:1})])}const x=c(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_sem/counter.vue"]]);export{x as default};
+import{_ as c,p as n,k as d,l as u,A as o,L as s,u as a,q as p,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceKostalSEMCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-kostal-sem-counter"},f={class:"small"};function h(e,t,g,b,v,w){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),u("div",m,[o(r,null,{default:s(()=>[a(" Einstellungen für Kostal Smart Energy Meter oder TQ EM 410 Zähler "),p("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente ist nur richtig, wenn der Zähler NICHT direkt am Wechselrichter (Kostal Plenticore) angeschlossen ist und daher separat abgefragt werden muss. ")]),_:1})])}const x=c(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_sem/counter.vue"]]);export{x as default};
diff --git a/web/settings/assets/counter-1c5a2313.js b/web/settings/assets/counter-fca60eb6.js
similarity index 86%
rename from web/settings/assets/counter-1c5a2313.js
rename to web/settings/assets/counter-fca60eb6.js
index 1709da4472..7d5659770c 100644
--- a/web/settings/assets/counter-1c5a2313.js
+++ b/web/settings/assets/counter-fca60eb6.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSolarViewCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solar-view-counter"},m={class:"small"};function b(e,t,g,v,w,h){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für SolarView Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const V=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/counter.vue"]]);export{V as default};
+import{_ as c,p as n,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSolarViewCounter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solar-view-counter"},m={class:"small"};function b(e,t,g,v,w,h){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für SolarView Zähler "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const V=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/counter.vue"]]);export{V as default};
diff --git a/web/settings/assets/counter_s0-0068172e.js b/web/settings/assets/counter_s0-ba7ae169.js
similarity index 86%
rename from web/settings/assets/counter_s0-0068172e.js
rename to web/settings/assets/counter_s0-ba7ae169.js
index fef736146a..33abaade46 100644
--- a/web/settings/assets/counter_s0-0068172e.js
+++ b/web/settings/assets/counter_s0-ba7ae169.js
@@ -1 +1 @@
-import{_ as c,p as o,k as u,l as d,A as t,L as s,u as a,q as p,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceFroniusCounterS0",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fronius-counter-s0"},m={class:"small"};function b(e,n,g,h,v,w){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return u(),d("div",f,[t(i,null,{default:s(()=>[a(" Einstellungen für Fronius S0 Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),t(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/counter_s0.vue"]]);export{k as default};
+import{_ as c,p as o,k as u,l as d,A as t,L as s,u as a,q as p,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceFroniusCounterS0",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fronius-counter-s0"},m={class:"small"};function b(e,n,g,h,v,w){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return u(),d("div",f,[t(i,null,{default:s(()=>[a(" Einstellungen für Fronius S0 Zähler "),p("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),t(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/counter_s0.vue"]]);export{k as default};
diff --git a/web/settings/assets/counter_sm-802e0059.js b/web/settings/assets/counter_sm-ccecb663.js
similarity index 96%
rename from web/settings/assets/counter_sm-802e0059.js
rename to web/settings/assets/counter_sm-ccecb663.js
index db07db686c..e0c49161d8 100644
--- a/web/settings/assets/counter_sm-802e0059.js
+++ b/web/settings/assets/counter_sm-ccecb663.js
@@ -1 +1 @@
-import{_ as p,p as o,k as m,l as _,A as a,L as s,u,q as f,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceFroniusCounterSM",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-fronius-counter-sm"},h={class:"small"};function w(n,e,i,x,V,r){const l=o("openwb-base-heading"),d=o("openwb-base-number-input"),c=o("openwb-base-select-input");return m(),_("div",v,[a(l,null,{default:s(()=>[u(" Einstellungen für Fronius SmartMeter "),f("span",h,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),a(d,{title:"Meter ID",required:"",min:"0",max:"65535","model-value":i.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=t=>r.updateConfiguration(t,"configuration.meter_id"))},null,8,["model-value"]),a(c,{title:"Kompatibilitätsmodus",notSelected:"Bitte auswählen",options:[{value:0,text:"Aus"},{value:1,text:"Variante 1"},{value:2,text:"Variante 2"}],"model-value":i.configuration.variant,"onUpdate:modelValue":e[1]||(e[1]=t=>r.updateConfiguration(t,"configuration.variant"))},{help:s(()=>[u(" Gegebenenfalls auch für alte Modelle nach einem Softwareupdate erforderlich. Fronius hat derzeit keine Konsistente Schnittstelle. Speziell beim Gen24 kann Variante 1 oder 2 erforderlich sein. Nach speichern sollten nach etwa 10-20 Sekunden Daten angezeigt werden. Ist dies nicht der Fall die andere Variante ausprobieren. ")]),_:1},8,["model-value"])])}const C=p(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/counter_sm.vue"]]);export{C as default};
+import{_ as p,p as o,k as m,l as _,A as a,L as s,u,q as f,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceFroniusCounterSM",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-fronius-counter-sm"},h={class:"small"};function w(n,e,i,x,V,r){const l=o("openwb-base-heading"),d=o("openwb-base-number-input"),c=o("openwb-base-select-input");return m(),_("div",v,[a(l,null,{default:s(()=>[u(" Einstellungen für Fronius SmartMeter "),f("span",h,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),a(d,{title:"Meter ID",required:"",min:"0",max:"65535","model-value":i.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=t=>r.updateConfiguration(t,"configuration.meter_id"))},null,8,["model-value"]),a(c,{title:"Kompatibilitätsmodus",notSelected:"Bitte auswählen",options:[{value:0,text:"Aus"},{value:1,text:"Variante 1"},{value:2,text:"Variante 2"}],"model-value":i.configuration.variant,"onUpdate:modelValue":e[1]||(e[1]=t=>r.updateConfiguration(t,"configuration.variant"))},{help:s(()=>[u(" Gegebenenfalls auch für alte Modelle nach einem Softwareupdate erforderlich. Fronius hat derzeit keine Konsistente Schnittstelle. Speziell beim Gen24 kann Variante 1 oder 2 erforderlich sein. Nach speichern sollten nach etwa 10-20 Sekunden Daten angezeigt werden. Ist dies nicht der Fall die andere Variante ausprobieren. ")]),_:1},8,["model-value"])])}const C=p(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/counter_sm.vue"]]);export{C as default};
diff --git a/web/settings/assets/device-9114b4f4.js b/web/settings/assets/device-0be142e9.js
similarity index 95%
rename from web/settings/assets/device-9114b4f4.js
rename to web/settings/assets/device-0be142e9.js
index 694217ef9d..05a628df65 100644
--- a/web/settings/assets/device-9114b4f4.js
+++ b/web/settings/assets/device-0be142e9.js
@@ -1 +1 @@
-import{_ as b,p as o,k as h,l as g,A as s,L as u,u as t,q as n,x as i}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const m={name:"DeviceSonnenbatterie",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},computed:{linkRestApi1(){return"http://"+this.configuration.ip_address+":7979/rest/devices/battery"},linkRestApi2(){return"http://"+this.configuration.ip_address+":7979/rest/devices/battery/M05"},linkJsonApi1(){return"http://"+this.configuration.ip_address+"/api/v1/status"},linkJsonApi2(){return"http://"+this.configuration.ip_address+"/api/v2/status"}},methods:{updateConfiguration(a,r=void 0){this.$emit("update:configuration",{value:a,object:r})}}},v={class:"device-sonnenbatterie"},A={class:"small"},k={style:{display:"block"}},w=n("br",null,null,-1),B=["href"],I=n("br",null,null,-1),J=["href"],R=n("br",null,null,-1),x=["href"],P=n("br",null,null,-1),O=["href"];function S(a,r,d,C,y,e){const p=o("openwb-base-heading"),c=o("openwb-base-alert"),_=o("openwb-base-text-input"),f=o("openwb-base-select-input");return h(),g("div",v,[s(p,null,{default:u(()=>[t(" Einstellungen für SonnenBatterie "),n("span",A,"(Modul: "+i(a.$options.name)+")",1)]),_:1}),s(c,{subtype:"info"},{default:u(()=>[t(' Die Leistung steht nur in den Varianten "Rest-API 2" und "JSON-API" zur Verfügung. ')]),_:1}),s(_,{title:"IP oder Hostname",subtype:"host",required:"","model-value":d.configuration.ip_address,"onUpdate:modelValue":r[0]||(r[0]=l=>e.updateConfiguration(l,"configuration.ip_address"))},null,8,["model-value"]),s(f,{title:"Datenverbindung",required:"",notSelected:"Bitte auswählen",options:[{value:0,text:"Rest-API 1 (z.B. ECO 4)"},{value:2,text:"Rest-API 2 (z.B. ECO 6)"},{value:1,text:"JSON-API v1(z.B. ECO 8 oder 10)"},{value:3,text:"JSON-API v2(z.B. ECO 8 oder 10)"}],"model-value":d.configuration.variant,"onUpdate:modelValue":r[1]||(r[1]=l=>e.updateConfiguration(l,"configuration.variant"))},{help:u(()=>[n("span",k,[t(" Je nach Sonnen Batterie muss die richtige Datenverbindung ausgewählt werden. Folgende URLs werden zum Abruf der Daten genutzt und können auch manuell über einen Browser abgefragt werden, um die richtige Einstellung zu finden:"),w,t(" Rest-API 1: "),n("a",{href:e.linkRestApi1,target:"_blank",rel:"noopener noreferrer"},i(e.linkRestApi1),9,B),I,t(" Rest-API 2: "),n("a",{href:e.linkRestApi2,target:"_blank",rel:"noopener noreferrer"},i(e.linkRestApi2),9,J),R,t(" JSON-API v1: "),n("a",{href:e.linkJsonApi1,target:"_blank",rel:"noopener noreferrer"},i(e.linkJsonApi1),9,x),P,t(" JSON-API v2: "),n("a",{href:e.linkJsonApi2,target:"_blank",rel:"noopener noreferrer"},i(e.linkJsonApi2),9,O)])]),_:1},8,["options","model-value"])])}const E=b(m,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/device.vue"]]);export{E as default};
+import{_ as b,p as o,k as h,l as g,A as s,L as u,u as t,q as n,x as i}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const m={name:"DeviceSonnenbatterie",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},computed:{linkRestApi1(){return"http://"+this.configuration.ip_address+":7979/rest/devices/battery"},linkRestApi2(){return"http://"+this.configuration.ip_address+":7979/rest/devices/battery/M05"},linkJsonApi1(){return"http://"+this.configuration.ip_address+"/api/v1/status"},linkJsonApi2(){return"http://"+this.configuration.ip_address+"/api/v2/status"}},methods:{updateConfiguration(a,r=void 0){this.$emit("update:configuration",{value:a,object:r})}}},v={class:"device-sonnenbatterie"},A={class:"small"},k={style:{display:"block"}},w=n("br",null,null,-1),B=["href"],I=n("br",null,null,-1),J=["href"],R=n("br",null,null,-1),x=["href"],P=n("br",null,null,-1),O=["href"];function S(a,r,d,C,y,e){const p=o("openwb-base-heading"),c=o("openwb-base-alert"),_=o("openwb-base-text-input"),f=o("openwb-base-select-input");return h(),g("div",v,[s(p,null,{default:u(()=>[t(" Einstellungen für SonnenBatterie "),n("span",A,"(Modul: "+i(a.$options.name)+")",1)]),_:1}),s(c,{subtype:"info"},{default:u(()=>[t(' Die Leistung steht nur in den Varianten "Rest-API 2" und "JSON-API" zur Verfügung. ')]),_:1}),s(_,{title:"IP oder Hostname",subtype:"host",required:"","model-value":d.configuration.ip_address,"onUpdate:modelValue":r[0]||(r[0]=l=>e.updateConfiguration(l,"configuration.ip_address"))},null,8,["model-value"]),s(f,{title:"Datenverbindung",required:"",notSelected:"Bitte auswählen",options:[{value:0,text:"Rest-API 1 (z.B. ECO 4)"},{value:2,text:"Rest-API 2 (z.B. ECO 6)"},{value:1,text:"JSON-API v1(z.B. ECO 8 oder 10)"},{value:3,text:"JSON-API v2(z.B. ECO 8 oder 10)"}],"model-value":d.configuration.variant,"onUpdate:modelValue":r[1]||(r[1]=l=>e.updateConfiguration(l,"configuration.variant"))},{help:u(()=>[n("span",k,[t(" Je nach Sonnen Batterie muss die richtige Datenverbindung ausgewählt werden. Folgende URLs werden zum Abruf der Daten genutzt und können auch manuell über einen Browser abgefragt werden, um die richtige Einstellung zu finden:"),w,t(" Rest-API 1: "),n("a",{href:e.linkRestApi1,target:"_blank",rel:"noopener noreferrer"},i(e.linkRestApi1),9,B),I,t(" Rest-API 2: "),n("a",{href:e.linkRestApi2,target:"_blank",rel:"noopener noreferrer"},i(e.linkRestApi2),9,J),R,t(" JSON-API v1: "),n("a",{href:e.linkJsonApi1,target:"_blank",rel:"noopener noreferrer"},i(e.linkJsonApi1),9,x),P,t(" JSON-API v2: "),n("a",{href:e.linkJsonApi2,target:"_blank",rel:"noopener noreferrer"},i(e.linkJsonApi2),9,O)])]),_:1},8,["options","model-value"])])}const E=b(m,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/device.vue"]]);export{E as default};
diff --git a/web/settings/assets/device-3c66abac.js b/web/settings/assets/device-0ec37631.js
similarity index 89%
rename from web/settings/assets/device-3c66abac.js
rename to web/settings/assets/device-0ec37631.js
index 34b1dfc41e..1104bea5f4 100644
--- a/web/settings/assets/device-3c66abac.js
+++ b/web/settings/assets/device-0ec37631.js
@@ -1 +1 @@
-import{_ as p,p as t,k as l,l as c,A as a,L as _,u as m,q as f,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceOpenwbFlex",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-openwb-flex"},w={class:"small"};function x(o,e,i,h,q,s){const u=t("openwb-base-heading"),r=t("openwb-base-text-input"),d=t("openwb-base-number-input");return l(),c("div",v,[a(u,null,{default:_(()=>[m(" Einstellungen für openWB-Flex "),f("span",w,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),a(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(d,{title:"Port",required:"","model-value":i.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const V=p(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/device.vue"]]);export{V as default};
+import{_ as p,p as t,k as l,l as c,A as a,L as _,u as m,q as f,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceOpenwbFlex",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-openwb-flex"},w={class:"small"};function x(o,e,i,h,q,s){const u=t("openwb-base-heading"),r=t("openwb-base-text-input"),d=t("openwb-base-number-input");return l(),c("div",v,[a(u,null,{default:_(()=>[m(" Einstellungen für openWB-Flex "),f("span",w,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),a(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(d,{title:"Port",required:"","model-value":i.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.port"))},null,8,["model-value"])])}const V=p(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/device.vue"]]);export{V as default};
diff --git a/web/settings/assets/device-c49a0ced.js b/web/settings/assets/device-1034f28e.js
similarity index 94%
rename from web/settings/assets/device-c49a0ced.js
rename to web/settings/assets/device-1034f28e.js
index feedad292a..34a8645f49 100644
--- a/web/settings/assets/device-c49a0ced.js
+++ b/web/settings/assets/device-1034f28e.js
@@ -1 +1 @@
-import{_ as r,p as u,k as p,l,A as n,L as c,u as m,q as _,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceSunways",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-sunways"},w={class:"small"};function b(t,e,s,y,x,a){const d=u("openwb-base-heading"),i=u("openwb-base-text-input");return p(),l("div",v,[n(d,null,{default:c(()=>[m(" Einstellungen für Sunways "),_("span",w,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":s.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])])}const C=r(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sunways/device.vue"]]);export{C as default};
+import{_ as r,p as u,k as p,l,A as n,L as c,u as m,q as _,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceSunways",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-sunways"},w={class:"small"};function b(t,e,s,y,x,a){const d=u("openwb-base-heading"),i=u("openwb-base-text-input");return p(),l("div",v,[n(d,null,{default:c(()=>[m(" Einstellungen für Sunways "),_("span",w,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":s.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])])}const C=r(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sunways/device.vue"]]);export{C as default};
diff --git a/web/settings/assets/device-0c072e3b.js b/web/settings/assets/device-11080b2d.js
similarity index 91%
rename from web/settings/assets/device-0c072e3b.js
rename to web/settings/assets/device-11080b2d.js
index 12ae12e2d9..6d956204d5 100644
--- a/web/settings/assets/device-0c072e3b.js
+++ b/web/settings/assets/device-11080b2d.js
@@ -1 +1 @@
-import{_ as c,p as o,k as _,l as m,A as a,L as d,u as r,q as f,x as g}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceSolarwatt",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-solarwatt"},w={class:"small"};function h(t,e,s,x,y,i){const l=o("openwb-base-heading"),u=o("openwb-base-text-input"),p=o("openwb-base-select-input");return _(),m("div",v,[a(l,null,{default:d(()=>[r(" Einstellungen für Solarwatt/My Reserve "),f("span",w,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(p,{title:"Abrufmethode",notSelected:"Bitte auswählen",options:[{value:0,text:"Gateway"},{value:1,text:"Energy Manager"}],"model-value":s.configuration.energy_manager,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n,"configuration.energy_manager"))},{help:d(()=>[r(" Wenn beide Abrufmethoden verwendet werden sollen, muss für jede Methode ein Gerät erstellt werden. ")]),_:1},8,["model-value"])])}const V=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/device.vue"]]);export{V as default};
+import{_ as c,p as o,k as _,l as m,A as a,L as d,u as r,q as f,x as g}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceSolarwatt",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-solarwatt"},w={class:"small"};function h(t,e,s,x,y,i){const l=o("openwb-base-heading"),u=o("openwb-base-text-input"),p=o("openwb-base-select-input");return _(),m("div",v,[a(l,null,{default:d(()=>[r(" Einstellungen für Solarwatt/My Reserve "),f("span",w,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(p,{title:"Abrufmethode",notSelected:"Bitte auswählen",options:[{value:0,text:"Gateway"},{value:1,text:"Energy Manager"}],"model-value":s.configuration.energy_manager,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n,"configuration.energy_manager"))},{help:d(()=>[r(" Wenn beide Abrufmethoden verwendet werden sollen, muss für jede Methode ein Gerät erstellt werden. ")]),_:1},8,["model-value"])])}const V=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/device.vue"]]);export{V as default};
diff --git a/web/settings/assets/device-c5eaae23.js b/web/settings/assets/device-1548812a.js
similarity index 89%
rename from web/settings/assets/device-c5eaae23.js
rename to web/settings/assets/device-1548812a.js
index 9a9f916647..23b9d732e1 100644
--- a/web/settings/assets/device-c5eaae23.js
+++ b/web/settings/assets/device-1548812a.js
@@ -1 +1 @@
-import{_ as l,p as n,k as _,l as m,A as o,L as a,u as s,q as f,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const h={name:"DeviceEnphase",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-enphase"},g={class:"small"};function w(t,e,i,x,y,r){const p=n("openwb-base-heading"),u=n("openwb-base-alert"),d=n("openwb-base-text-input");return _(),m("div",v,[o(p,null,{default:a(()=>[s(" Einstellungen für Enphase Envoy / IQ Gateway "),f("span",g,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:a(()=>[s(" Geräte mit Firmware-Versionen 7.0 oder neuer werden derzeit nicht unterstützt. ")]),_:1}),o(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.hostname,"onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.hostname"))},null,8,["model-value"])])}const q=l(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/device.vue"]]);export{q as default};
+import{_ as l,p as n,k as _,l as m,A as o,L as a,u as s,q as f,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const h={name:"DeviceEnphase",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-enphase"},g={class:"small"};function w(t,e,i,x,y,r){const p=n("openwb-base-heading"),u=n("openwb-base-alert"),d=n("openwb-base-text-input");return _(),m("div",v,[o(p,null,{default:a(()=>[s(" Einstellungen für Enphase Envoy / IQ Gateway "),f("span",g,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:a(()=>[s(" Geräte mit Firmware-Versionen 7.0 oder neuer werden derzeit nicht unterstützt. ")]),_:1}),o(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.hostname,"onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.hostname"))},null,8,["model-value"])])}const q=l(h,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/device.vue"]]);export{q as default};
diff --git a/web/settings/assets/device-5442f3f8.js b/web/settings/assets/device-1a05e97a.js
similarity index 89%
rename from web/settings/assets/device-5442f3f8.js
rename to web/settings/assets/device-1a05e97a.js
index a267fcb9ca..14555751db 100644
--- a/web/settings/assets/device-5442f3f8.js
+++ b/web/settings/assets/device-1a05e97a.js
@@ -1 +1 @@
-import{_ as l,p as t,k as p,l as c,A as a,L as _,u as m,q as f,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceGoodWe",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-goodwe"},w={class:"small"};function x(o,e,i,h,C,s){const d=t("openwb-base-heading"),u=t("openwb-base-text-input"),r=t("openwb-base-number-input");return p(),c("div",v,[a(d,null,{default:_(()=>[m(" Einstellungen für GoodWe "),f("span",w,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(r,{title:"Modbus ID","model-value":i.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const k=l(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/device.vue"]]);export{k as default};
+import{_ as l,p as t,k as p,l as c,A as a,L as _,u as m,q as f,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceGoodWe",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-goodwe"},w={class:"small"};function x(o,e,i,h,C,s){const d=t("openwb-base-heading"),u=t("openwb-base-text-input"),r=t("openwb-base-number-input");return p(),c("div",v,[a(d,null,{default:_(()=>[m(" Einstellungen für GoodWe "),f("span",w,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(r,{title:"Modbus ID","model-value":i.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const k=l(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/device.vue"]]);export{k as default};
diff --git a/web/settings/assets/device-2b476100.js b/web/settings/assets/device-246d5e43.js
similarity index 87%
rename from web/settings/assets/device-2b476100.js
rename to web/settings/assets/device-246d5e43.js
index 5a9b7ad084..466ed6dafc 100644
--- a/web/settings/assets/device-2b476100.js
+++ b/web/settings/assets/device-246d5e43.js
@@ -1 +1 @@
-import{_ as u,p as o,k as p,l as c,A as n,L as l,u as _,q as f,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceVarta",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-varta"},g={class:"small"};function h(t,e,a,x,w,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Varta "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=u(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/device.vue"]]);export{C as default};
+import{_ as u,p as o,k as p,l as c,A as n,L as l,u as _,q as f,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceVarta",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-varta"},g={class:"small"};function h(t,e,a,x,w,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Varta "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=u(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/varta/device.vue"]]);export{C as default};
diff --git a/web/settings/assets/device-23fbc413.js b/web/settings/assets/device-28066804.js
similarity index 90%
rename from web/settings/assets/device-23fbc413.js
rename to web/settings/assets/device-28066804.js
index 58c6ee2b36..124312c519 100644
--- a/web/settings/assets/device-23fbc413.js
+++ b/web/settings/assets/device-28066804.js
@@ -1 +1 @@
-import{_ as u,p as n,k as _,l as m,A as o,L as s,u as a,q as f,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceKostalPlenticore",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},h={class:"device-kostalplenticore"},v={class:"small"};function w(t,e,i,x,K,r){const l=n("openwb-base-heading"),d=n("openwb-base-alert"),c=n("openwb-base-text-input");return _(),m("div",h,[o(l,null,{default:s(()=>[a(" Einstellungen für Kostal Plenticore "),f("span",v,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(d,{subtype:"info"},{default:s(()=>[a(" Wenn am Kostal Plenticore-Wechselrichter ein EM300 oder Kostal Energy Smart Meter (KSEM) angeschlossen ist, muss eine Zähler-und eine Wechselrichter-Komponente angelegt werden. ")]),_:1}),o(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=p=>r.updateConfiguration(p,"configuration.ip_address"))},null,8,["model-value"])])}const E=u(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/device.vue"]]);export{E as default};
+import{_ as u,p as n,k as _,l as m,A as o,L as s,u as a,q as f,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceKostalPlenticore",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},h={class:"device-kostalplenticore"},v={class:"small"};function w(t,e,i,x,K,r){const l=n("openwb-base-heading"),d=n("openwb-base-alert"),c=n("openwb-base-text-input");return _(),m("div",h,[o(l,null,{default:s(()=>[a(" Einstellungen für Kostal Plenticore "),f("span",v,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(d,{subtype:"info"},{default:s(()=>[a(" Wenn am Kostal Plenticore-Wechselrichter ein EM300 oder Kostal Energy Smart Meter (KSEM) angeschlossen ist, muss eine Zähler-und eine Wechselrichter-Komponente angelegt werden. ")]),_:1}),o(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=p=>r.updateConfiguration(p,"configuration.ip_address"))},null,8,["model-value"])])}const E=u(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/device.vue"]]);export{E as default};
diff --git a/web/settings/assets/device-84c0ab33.js b/web/settings/assets/device-3330c205.js
similarity index 90%
rename from web/settings/assets/device-84c0ab33.js
rename to web/settings/assets/device-3330c205.js
index f612ae973a..40ab131990 100644
--- a/web/settings/assets/device-84c0ab33.js
+++ b/web/settings/assets/device-3330c205.js
@@ -1 +1 @@
-import{_ as l,p as u,k as p,l as m,A as t,L as c,u as _,q as f,x as v}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceSolarView",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-solar-view"},w={class:"small"};function x(n,e,i,V,C,a){const s=u("openwb-base-heading"),r=u("openwb-base-text-input"),d=u("openwb-base-number-input");return p(),m("div",g,[t(s,null,{default:c(()=>[_(" Einstellungen für SolarView "),f("span",w,"(Modul: "+v(n.$options.name)+")",1)]),_:1}),t(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),t(d,{title:"Port",required:"",min:1,max:65535,"model-value":i.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.port"))},null,8,["model-value"]),t(d,{title:"Timeout",required:"","model-value":i.configuration.timeout,"onUpdate:modelValue":e[2]||(e[2]=o=>a.updateConfiguration(o,"configuration.timeout"))},null,8,["model-value"])])}const h=l(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/device.vue"]]);export{h as default};
+import{_ as l,p as u,k as p,l as m,A as t,L as c,u as _,q as f,x as v}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceSolarView",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-solar-view"},w={class:"small"};function x(n,e,i,V,C,a){const s=u("openwb-base-heading"),r=u("openwb-base-text-input"),d=u("openwb-base-number-input");return p(),m("div",g,[t(s,null,{default:c(()=>[_(" Einstellungen für SolarView "),f("span",w,"(Modul: "+v(n.$options.name)+")",1)]),_:1}),t(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),t(d,{title:"Port",required:"",min:1,max:65535,"model-value":i.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.port"))},null,8,["model-value"]),t(d,{title:"Timeout",required:"","model-value":i.configuration.timeout,"onUpdate:modelValue":e[2]||(e[2]=o=>a.updateConfiguration(o,"configuration.timeout"))},null,8,["model-value"])])}const h=l(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/device.vue"]]);export{h as default};
diff --git a/web/settings/assets/device-060ee4fd.js b/web/settings/assets/device-3711a41a.js
similarity index 85%
rename from web/settings/assets/device-060ee4fd.js
rename to web/settings/assets/device-3711a41a.js
index 5be779b1dc..557be142ce 100644
--- a/web/settings/assets/device-060ee4fd.js
+++ b/web/settings/assets/device-3711a41a.js
@@ -1 +1 @@
-import{_ as r,p as n,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSmaHm",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-smahm"},f={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return d(),p("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für SMA Home Manager / Energy Meter "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät benötigt keine Einstellungen. ")]),_:1})])}const k=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_shm/device.vue"]]);export{k as default};
+import{_ as r,p as n,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSmaHm",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-smahm"},f={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return d(),p("div",m,[o(i,null,{default:s(()=>[a(" Einstellungen für SMA Home Manager / Energy Meter "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät benötigt keine Einstellungen. ")]),_:1})])}const k=r(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_shm/device.vue"]]);export{k as default};
diff --git a/web/settings/assets/device-c553c1ee.js b/web/settings/assets/device-3ddc3e24.js
similarity index 87%
rename from web/settings/assets/device-c553c1ee.js
rename to web/settings/assets/device-3ddc3e24.js
index 6b2900d195..f32acce687 100644
--- a/web/settings/assets/device-c553c1ee.js
+++ b/web/settings/assets/device-3ddc3e24.js
@@ -1 +1 @@
-import{_ as r,p as o,k as p,l as c,A as n,L as l,u as _,q as f,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceYouless",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-youless"},g={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Youless "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>a.updateConfiguration(u,"configuration.ip_address"))},null,8,["model-value"])])}const C=r(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/youless/device.vue"]]);export{C as default};
+import{_ as r,p as o,k as p,l as c,A as n,L as l,u as _,q as f,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceYouless",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-youless"},g={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Youless "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>a.updateConfiguration(u,"configuration.ip_address"))},null,8,["model-value"])])}const C=r(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/youless/device.vue"]]);export{C as default};
diff --git a/web/settings/assets/device-91520693.js b/web/settings/assets/device-3f5084e0.js
similarity index 87%
rename from web/settings/assets/device-91520693.js
rename to web/settings/assets/device-3f5084e0.js
index fd9910526e..b1855dc34b 100644
--- a/web/settings/assets/device-91520693.js
+++ b/web/settings/assets/device-3f5084e0.js
@@ -1 +1 @@
-import{_ as d,p as o,k as p,l as c,A as n,L as l,u as _,q as m,x as g}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const f={name:"DeviceHuaweiSmartLogger",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-huawei-smart-logger"},v={class:"small"};function w(t,e,a,h,x,s){const i=o("openwb-base-heading"),r=o("openwb-base-text-input");return p(),c("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Huawei SmartLogger "),m("span",v,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),n(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>s.updateConfiguration(u,"configuration.ip_address"))},null,8,["model-value"])])}const C=d(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/device.vue"]]);export{C as default};
+import{_ as d,p as o,k as p,l as c,A as n,L as l,u as _,q as m,x as g}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const f={name:"DeviceHuaweiSmartLogger",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-huawei-smart-logger"},v={class:"small"};function w(t,e,a,h,x,s){const i=o("openwb-base-heading"),r=o("openwb-base-text-input");return p(),c("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Huawei SmartLogger "),m("span",v,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),n(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>s.updateConfiguration(u,"configuration.ip_address"))},null,8,["model-value"])])}const C=d(f,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/device.vue"]]);export{C as default};
diff --git a/web/settings/assets/device-7fbce287.js b/web/settings/assets/device-3fe4b5f3.js
similarity index 86%
rename from web/settings/assets/device-7fbce287.js
rename to web/settings/assets/device-3fe4b5f3.js
index eaad5563d4..003addbf60 100644
--- a/web/settings/assets/device-7fbce287.js
+++ b/web/settings/assets/device-3fe4b5f3.js
@@ -1 +1 @@
-import{_ as u,p as o,k as c,l as p,A as n,L as l,u as _,q as f,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceRCT",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-rct"},g={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),p("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für RCT "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const V=u(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/device.vue"]]);export{V as default};
+import{_ as u,p as o,k as c,l as p,A as n,L as l,u as _,q as f,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceRCT",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-rct"},g={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return c(),p("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für RCT "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const V=u(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/device.vue"]]);export{V as default};
diff --git a/web/settings/assets/device-5c559131.js b/web/settings/assets/device-4005e628.js
similarity index 85%
rename from web/settings/assets/device-5c559131.js
rename to web/settings/assets/device-4005e628.js
index a8a5cb28c9..f102483d68 100644
--- a/web/settings/assets/device-5c559131.js
+++ b/web/settings/assets/device-4005e628.js
@@ -1 +1 @@
-import{_ as c,p as n,k as r,l as d,A as o,L as s,u as a,q as u,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const l={name:"DeviceOpenwbPvKit",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-openwb-pvkit"},b={class:"small"};function m(e,t,v,g,w,h){const i=n("openwb-base-heading"),p=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openWB PV-Kit "),u("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const x=c(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_pv_kit/device.vue"]]);export{x as default};
+import{_ as c,p as n,k as r,l as d,A as o,L as s,u as a,q as u,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const l={name:"DeviceOpenwbPvKit",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-openwb-pvkit"},b={class:"small"};function m(e,t,v,g,w,h){const i=n("openwb-base-heading"),p=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openWB PV-Kit "),u("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const x=c(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_pv_kit/device.vue"]]);export{x as default};
diff --git a/web/settings/assets/device-cdede991.js b/web/settings/assets/device-49750792.js
similarity index 88%
rename from web/settings/assets/device-cdede991.js
rename to web/settings/assets/device-49750792.js
index 487b23fe1a..7c503c5b08 100644
--- a/web/settings/assets/device-cdede991.js
+++ b/web/settings/assets/device-49750792.js
@@ -1 +1 @@
-import{_ as l,p as s,k as c,l as p,A as o,L as a,u as n,q as i,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceMqtt",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-mqtt"},f={class:"small"},b=i("br",null,null,-1);function g(e,t,v,h,w,k){const r=s("openwb-base-heading"),d=s("openwb-base-alert");return c(),p("div",m,[o(r,null,{default:a(()=>[n(" Einstellungen für MQTT "),i("span",f,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(d,{subtype:"info"},{default:a(()=>[n(" Das MQTT Modul stellt keine aktive Verbindung her, sondern erwartet, dass die Daten an spezielle Topics im Broker gesendet werden."),b,n(" Alle Daten sind als gültiges JSON zu senden! Zahlen mit Nachkommastellen (Float) müssen einen Punkt als Dezimaltrenner verwenden (internationales Format). ")]),_:1})])}const $=l(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/device.vue"]]);export{$ as default};
+import{_ as l,p as s,k as c,l as p,A as o,L as a,u as n,q as i,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceMqtt",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},m={class:"device-mqtt"},f={class:"small"},b=i("br",null,null,-1);function g(e,t,v,h,w,k){const r=s("openwb-base-heading"),d=s("openwb-base-alert");return c(),p("div",m,[o(r,null,{default:a(()=>[n(" Einstellungen für MQTT "),i("span",f,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(d,{subtype:"info"},{default:a(()=>[n(" Das MQTT Modul stellt keine aktive Verbindung her, sondern erwartet, dass die Daten an spezielle Topics im Broker gesendet werden."),b,n(" Alle Daten sind als gültiges JSON zu senden! Zahlen mit Nachkommastellen (Float) müssen einen Punkt als Dezimaltrenner verwenden (internationales Format). ")]),_:1})])}const $=l(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/device.vue"]]);export{$ as default};
diff --git a/web/settings/assets/device-94f0ef9b.js b/web/settings/assets/device-4a98b784.js
similarity index 88%
rename from web/settings/assets/device-94f0ef9b.js
rename to web/settings/assets/device-4a98b784.js
index 71ef7b5369..1682927efe 100644
--- a/web/settings/assets/device-94f0ef9b.js
+++ b/web/settings/assets/device-4a98b784.js
@@ -1 +1 @@
-import{_ as c,p as o,k as l,l as _,A as n,L as s,u as a,q as g,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const f={name:"DeviceVZLogger",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-vzlogger"},b={class:"small"};function h(t,e,i,w,x,d){const r=o("openwb-base-heading"),p=o("openwb-base-text-input");return l(),_("div",v,[n(r,null,{default:s(()=>[a(" Einstellungen für VZLogger "),g("span",b,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>d.updateConfiguration(u,"configuration.ip_address"))},{help:s(()=>[a(" Bei Angabe des Ports muss auch das Schema mit angegeben werden: http://ip:port ")]),_:1},8,["model-value"])])}const C=c(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/device.vue"]]);export{C as default};
+import{_ as c,p as o,k as l,l as _,A as n,L as s,u as a,q as g,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const f={name:"DeviceVZLogger",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-vzlogger"},b={class:"small"};function h(t,e,i,w,x,d){const r=o("openwb-base-heading"),p=o("openwb-base-text-input");return l(),_("div",v,[n(r,null,{default:s(()=>[a(" Einstellungen für VZLogger "),g("span",b,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>d.updateConfiguration(u,"configuration.ip_address"))},{help:s(()=>[a(" Bei Angabe des Ports muss auch das Schema mit angegeben werden: http://ip:port ")]),_:1},8,["model-value"])])}const C=c(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/device.vue"]]);export{C as default};
diff --git a/web/settings/assets/device-eed5fccd.js b/web/settings/assets/device-4c8d99b2.js
similarity index 90%
rename from web/settings/assets/device-eed5fccd.js
rename to web/settings/assets/device-4c8d99b2.js
index 43fe5ca4d2..4d1e0d5738 100644
--- a/web/settings/assets/device-eed5fccd.js
+++ b/web/settings/assets/device-4c8d99b2.js
@@ -1 +1 @@
-import{_ as c,p as t,k as m,l as _,A as a,L as u,u as d,q as b,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceSolax",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-solax"},x={class:"small"};function w(o,e,i,h,q,s){const r=t("openwb-base-heading"),l=t("openwb-base-text-input"),p=t("openwb-base-number-input");return m(),_("div",v,[a(r,null,{default:u(()=>[d(" Einstellungen für Solax "),b("span",x,"(Modul: "+f(o.$options.name)+")",1)]),_:1}),a(l,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(p,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":i.configuration.modbus_id,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.modbus_id"))},{help:u(()=>[d(" Für Gen3 ID=0, für Gen4 meistens > 2. ")]),_:1},8,["model-value"])])}const B=c(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/device.vue"]]);export{B as default};
+import{_ as c,p as t,k as m,l as _,A as a,L as u,u as d,q as b,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceSolax",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-solax"},x={class:"small"};function w(o,e,i,h,q,s){const r=t("openwb-base-heading"),l=t("openwb-base-text-input"),p=t("openwb-base-number-input");return m(),_("div",v,[a(r,null,{default:u(()=>[d(" Einstellungen für Solax "),b("span",x,"(Modul: "+f(o.$options.name)+")",1)]),_:1}),a(l,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(p,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":i.configuration.modbus_id,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.modbus_id"))},{help:u(()=>[d(" Für Gen3 ID=0, für Gen4 meistens > 2. ")]),_:1},8,["model-value"])])}const B=c(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/device.vue"]]);export{B as default};
diff --git a/web/settings/assets/device-03a0ce90.js b/web/settings/assets/device-509acf7c.js
similarity index 92%
rename from web/settings/assets/device-03a0ce90.js
rename to web/settings/assets/device-509acf7c.js
index 406a712114..efedc872a3 100644
--- a/web/settings/assets/device-03a0ce90.js
+++ b/web/settings/assets/device-509acf7c.js
@@ -1 +1 @@
-import{_ as c,p as i,k as l,l as p,A as s,L as m,u as f,q as _,x as v,y as g,z as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const w={name:"DeviceAlphaess",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},x={class:"device-alphaess"},h={class:"small"};function V(n,e,o,S,B,a){const d=i("openwb-base-heading"),u=i("openwb-base-select-input"),r=i("openwb-base-text-input");return l(),p("div",x,[s(d,null,{default:m(()=>[f(" Einstellungen für Alpha ESS "),_("span",h,"(Modul: "+v(n.$options.name)+")",1)]),_:1}),s(u,{title:"Ausleseart",notSelected:"Bitte auswählen",options:[{value:0,text:"Alpha ESS-Kit"},{value:1,text:"Hi 5/10"}],"model-value":o.configuration.source,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.source"))},null,8,["model-value"]),o.configuration.source==1?(l(),g(r,{key:0,title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"])):b("v-if",!0),s(u,{title:"Firmware Version",notSelected:"Bitte auswählen",options:[{value:0,text:"EMS älter als 1.23V"},{value:1,text:"EMS 1.23V oder neuer"}],"model-value":o.configuration.version,"onUpdate:modelValue":e[2]||(e[2]=t=>a.updateConfiguration(t,"configuration.version"))},null,8,["model-value"])])}const k=c(w,[["render",V],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/device.vue"]]);export{k as default};
+import{_ as c,p as i,k as l,l as p,A as s,L as m,u as f,q as _,x as v,y as g,z as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const w={name:"DeviceAlphaess",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},x={class:"device-alphaess"},h={class:"small"};function V(n,e,o,S,B,a){const d=i("openwb-base-heading"),u=i("openwb-base-select-input"),r=i("openwb-base-text-input");return l(),p("div",x,[s(d,null,{default:m(()=>[f(" Einstellungen für Alpha ESS "),_("span",h,"(Modul: "+v(n.$options.name)+")",1)]),_:1}),s(u,{title:"Ausleseart",notSelected:"Bitte auswählen",options:[{value:0,text:"Alpha ESS-Kit"},{value:1,text:"Hi 5/10"}],"model-value":o.configuration.source,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.source"))},null,8,["model-value"]),o.configuration.source==1?(l(),g(r,{key:0,title:"IP oder Hostname",subtype:"host",required:"","model-value":o.configuration.ip_address,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"])):b("v-if",!0),s(u,{title:"Firmware Version",notSelected:"Bitte auswählen",options:[{value:0,text:"EMS älter als 1.23V"},{value:1,text:"EMS 1.23V oder neuer"}],"model-value":o.configuration.version,"onUpdate:modelValue":e[2]||(e[2]=t=>a.updateConfiguration(t,"configuration.version"))},null,8,["model-value"])])}const k=c(w,[["render",V],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/device.vue"]]);export{k as default};
diff --git a/web/settings/assets/device-9f8cfcd3.js b/web/settings/assets/device-52389f33.js
similarity index 87%
rename from web/settings/assets/device-9f8cfcd3.js
rename to web/settings/assets/device-52389f33.js
index 796be96bcd..58935203b4 100644
--- a/web/settings/assets/device-9f8cfcd3.js
+++ b/web/settings/assets/device-52389f33.js
@@ -1 +1 @@
-import{_ as u,p as t,k as l,l as p,A as n,L as c,u as _,q as f,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceSolarLog",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-solar_log"},b={class:"small"};function h(o,e,a,x,w,s){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return l(),p("div",v,[n(i,null,{default:c(()=>[_(" Einstellungen für Solar-Log "),f("span",b,"(Modul: "+m(o.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const V=u(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/device.vue"]]);export{V as default};
+import{_ as u,p as t,k as l,l as p,A as n,L as c,u as _,q as f,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceSolarLog",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-solar_log"},b={class:"small"};function h(o,e,a,x,w,s){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return l(),p("div",v,[n(i,null,{default:c(()=>[_(" Einstellungen für Solar-Log "),f("span",b,"(Modul: "+m(o.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const V=u(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/device.vue"]]);export{V as default};
diff --git a/web/settings/assets/device-efcbb283.js b/web/settings/assets/device-5b3585a3.js
similarity index 91%
rename from web/settings/assets/device-efcbb283.js
rename to web/settings/assets/device-5b3585a3.js
index a35fb715d6..928ba3fece 100644
--- a/web/settings/assets/device-efcbb283.js
+++ b/web/settings/assets/device-5b3585a3.js
@@ -1 +1 @@
-import{_ as l,p as d,k as r,l as p,A as t,L as c,u as m,q as f,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceKostalPikoOld",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-kostal-piko-old"},b={class:"small"};function w(n,e,a,k,x,i){const u=d("openwb-base-heading"),s=d("openwb-base-text-input");return r(),p("div",v,[t(u,null,{default:c(()=>[m(" Einstellungen für Kostal Piko (alte Generation) "),f("span",b,"(Modul: "+_(n.$options.name)+")",1)]),_:1}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>i.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),t(s,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=o=>i.updateConfiguration(o,"configuration.user"))},null,8,["model-value"]),t(s,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=o=>i.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])])}const q=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko_old/device.vue"]]);export{q as default};
+import{_ as l,p as d,k as r,l as p,A as t,L as c,u as m,q as f,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceKostalPikoOld",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-kostal-piko-old"},b={class:"small"};function w(n,e,a,k,x,i){const u=d("openwb-base-heading"),s=d("openwb-base-text-input");return r(),p("div",v,[t(u,null,{default:c(()=>[m(" Einstellungen für Kostal Piko (alte Generation) "),f("span",b,"(Modul: "+_(n.$options.name)+")",1)]),_:1}),t(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>i.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),t(s,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=o=>i.updateConfiguration(o,"configuration.user"))},null,8,["model-value"]),t(s,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=o=>i.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])])}const q=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko_old/device.vue"]]);export{q as default};
diff --git a/web/settings/assets/device-9f1d6204.js b/web/settings/assets/device-6422d305.js
similarity index 89%
rename from web/settings/assets/device-9f1d6204.js
rename to web/settings/assets/device-6422d305.js
index 6ec69ae43d..cbe5fc2624 100644
--- a/web/settings/assets/device-9f1d6204.js
+++ b/web/settings/assets/device-6422d305.js
@@ -1 +1 @@
-import{_ as l,p as n,k as _,l as m,A as o,L as s,u as a,q as b,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceSunnyBoy",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},y={class:"device-sunnyboy"},g={class:"small"};function w(t,e,i,h,x,r){const d=n("openwb-base-heading"),u=n("openwb-base-alert"),p=n("openwb-base-text-input");return _(),m("div",y,[o(d,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy/Tripower "),b("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:s(()=>[a(' ModbusTCP muss entweder direkt am Wechselrichter, per Sunny Portal oder über das Tool "Sunny Explorer" aktiviert werden. Dies ist standardmäßig deaktiviert. ')]),_:1}),o(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const S=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/device.vue"]]);export{S as default};
+import{_ as l,p as n,k as _,l as m,A as o,L as s,u as a,q as b,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceSunnyBoy",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},y={class:"device-sunnyboy"},g={class:"small"};function w(t,e,i,h,x,r){const d=n("openwb-base-heading"),u=n("openwb-base-alert"),p=n("openwb-base-text-input");return _(),m("div",y,[o(d,null,{default:s(()=>[a(" Einstellungen für SMA Sunny Boy/Tripower "),b("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:s(()=>[a(' ModbusTCP muss entweder direkt am Wechselrichter, per Sunny Portal oder über das Tool "Sunny Explorer" aktiviert werden. Dies ist standardmäßig deaktiviert. ')]),_:1}),o(p,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const S=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/device.vue"]]);export{S as default};
diff --git a/web/settings/assets/device-ae9d7f6e.js b/web/settings/assets/device-69672183.js
similarity index 92%
rename from web/settings/assets/device-ae9d7f6e.js
rename to web/settings/assets/device-69672183.js
index 3b865577fd..43d487441e 100644
--- a/web/settings/assets/device-ae9d7f6e.js
+++ b/web/settings/assets/device-69672183.js
@@ -1 +1 @@
-import{_ as c,p as t,k as _,l as b,A as o,L as s,u as d,q as f,x as g}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceSungrow",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(a,e=void 0){this.$emit("update:configuration",{value:a,object:e})}}},w={class:"device-sungrow"},x={class:"small"};function h(a,e,i,q,C,u){const l=t("openwb-base-heading"),p=t("openwb-base-alert"),m=t("openwb-base-text-input"),r=t("openwb-base-number-input");return _(),b("div",w,[o(l,null,{default:s(()=>[d(" Einstellungen für Sungrow "),f("span",x,"(Modul: "+g(a.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[d(" Bitte zur Fehlervermeidung die Firmware des Sungrow Wechselrichters und WiNet-S Dongels aktuell halten. ")]),_:1}),o(m,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),o(r,{title:"Port",required:"",min:1,max:65535,"model-value":i.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),o(r,{title:"Geräteadresse",required:"",min:1,max:255,"model-value":i.configuration.modbus_id,"onUpdate:modelValue":e[2]||(e[2]=n=>u.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const S=c(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/device.vue"]]);export{S as default};
+import{_ as c,p as t,k as _,l as b,A as o,L as s,u as d,q as f,x as g}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceSungrow",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(a,e=void 0){this.$emit("update:configuration",{value:a,object:e})}}},w={class:"device-sungrow"},x={class:"small"};function h(a,e,i,q,C,u){const l=t("openwb-base-heading"),p=t("openwb-base-alert"),m=t("openwb-base-text-input"),r=t("openwb-base-number-input");return _(),b("div",w,[o(l,null,{default:s(()=>[d(" Einstellungen für Sungrow "),f("span",x,"(Modul: "+g(a.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[d(" Bitte zur Fehlervermeidung die Firmware des Sungrow Wechselrichters und WiNet-S Dongels aktuell halten. ")]),_:1}),o(m,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),o(r,{title:"Port",required:"",min:1,max:65535,"model-value":i.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.port"))},null,8,["model-value"]),o(r,{title:"Geräteadresse",required:"",min:1,max:255,"model-value":i.configuration.modbus_id,"onUpdate:modelValue":e[2]||(e[2]=n=>u.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"])])}const S=c(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/device.vue"]]);export{S as default};
diff --git a/web/settings/assets/device-d971bed6.js b/web/settings/assets/device-72498906.js
similarity index 87%
rename from web/settings/assets/device-d971bed6.js
rename to web/settings/assets/device-72498906.js
index 11c4f382da..6a8bca9997 100644
--- a/web/settings/assets/device-d971bed6.js
+++ b/web/settings/assets/device-72498906.js
@@ -1 +1 @@
-import{_ as l,p as t,k as u,l as p,A as n,L as c,u as _,q as f,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceSolarWorld",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},b={class:"device-solar_world"},g={class:"small"};function w(o,e,a,h,x,s){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return u(),p("div",b,[n(i,null,{default:c(()=>[_(" Einstellungen für SolarWorld "),f("span",g,"(Modul: "+m(o.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const V=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_world/device.vue"]]);export{V as default};
+import{_ as l,p as t,k as u,l as p,A as n,L as c,u as _,q as f,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceSolarWorld",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},b={class:"device-solar_world"},g={class:"small"};function w(o,e,a,h,x,s){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return u(),p("div",b,[n(i,null,{default:c(()=>[_(" Einstellungen für SolarWorld "),f("span",g,"(Modul: "+m(o.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const V=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_world/device.vue"]]);export{V as default};
diff --git a/web/settings/assets/device-11808744.js b/web/settings/assets/device-7e999eff.js
similarity index 89%
rename from web/settings/assets/device-11808744.js
rename to web/settings/assets/device-7e999eff.js
index 886cb9257f..ab024b7c25 100644
--- a/web/settings/assets/device-11808744.js
+++ b/web/settings/assets/device-7e999eff.js
@@ -1 +1 @@
-import{_ as l,p as n,k as _,l as m,A as o,L as s,u as a,q as f,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceSiemensSentron",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-siemens-sentron"},h={class:"small"};function w(t,e,i,x,S,r){const d=n("openwb-base-heading"),p=n("openwb-base-alert"),u=n("openwb-base-text-input");return _(),m("div",v,[o(d,null,{default:s(()=>[a(" Einstellungen für Siemens Sentron "),f("span",h,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[a(' Derzeit werden nur Messgeräte vom Typ "7KM PAC2200" mit Ethernet-Schnittstelle unterstützt. ')]),_:1}),o(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const q=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens_sentron/device.vue"]]);export{q as default};
+import{_ as l,p as n,k as _,l as m,A as o,L as s,u as a,q as f,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceSiemensSentron",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-siemens-sentron"},h={class:"small"};function w(t,e,i,x,S,r){const d=n("openwb-base-heading"),p=n("openwb-base-alert"),u=n("openwb-base-text-input");return _(),m("div",v,[o(d,null,{default:s(()=>[a(" Einstellungen für Siemens Sentron "),f("span",h,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[a(' Derzeit werden nur Messgeräte vom Typ "7KM PAC2200" mit Ethernet-Schnittstelle unterstützt. ')]),_:1}),o(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>r.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const q=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens_sentron/device.vue"]]);export{q as default};
diff --git a/web/settings/assets/device-554ac70d.js b/web/settings/assets/device-81934251.js
similarity index 85%
rename from web/settings/assets/device-554ac70d.js
rename to web/settings/assets/device-81934251.js
index 3842b88b20..72fb67ea82 100644
--- a/web/settings/assets/device-554ac70d.js
+++ b/web/settings/assets/device-81934251.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceVirtual",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-virtual"},m={class:"small"};function v(e,t,b,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für virtuelle Geräte "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/virtual/device.vue"]]);export{k as default};
+import{_ as c,p as n,k as p,l as u,A as o,L as s,u as a,q as d,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceVirtual",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-virtual"},m={class:"small"};function v(e,t,b,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),u("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für virtuelle Geräte "),d("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/virtual/device.vue"]]);export{k as default};
diff --git a/web/settings/assets/device-2fc1a957.js b/web/settings/assets/device-8271ebf3.js
similarity index 89%
rename from web/settings/assets/device-2fc1a957.js
rename to web/settings/assets/device-8271ebf3.js
index 1597914acf..35c22388f3 100644
--- a/web/settings/assets/device-2fc1a957.js
+++ b/web/settings/assets/device-8271ebf3.js
@@ -1 +1 @@
-import{_ as r,p as t,k as p,l as c,A as a,L as m,u as _,q as f,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceQCellls",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-qcells"},w={class:"small"};function x(n,e,s,C,h,i){const d=t("openwb-base-heading"),u=t("openwb-base-text-input"),l=t("openwb-base-number-input");return p(),c("div",v,[a(d,null,{default:m(()=>[_(" Einstellungen für QCells ESS "),f("span",w,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>i.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),a(l,{title:"Modbus ID","model-value":s.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=o=>i.updateConfiguration(o,"configuration.modbus_id"))},null,8,["model-value"])])}const B=r(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/device.vue"]]);export{B as default};
+import{_ as r,p as t,k as p,l as c,A as a,L as m,u as _,q as f,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceQCellls",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-qcells"},w={class:"small"};function x(n,e,s,C,h,i){const d=t("openwb-base-heading"),u=t("openwb-base-text-input"),l=t("openwb-base-number-input");return p(),c("div",v,[a(d,null,{default:m(()=>[_(" Einstellungen für QCells ESS "),f("span",w,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>i.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),a(l,{title:"Modbus ID","model-value":s.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=o=>i.updateConfiguration(o,"configuration.modbus_id"))},null,8,["model-value"])])}const B=r(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/device.vue"]]);export{B as default};
diff --git a/web/settings/assets/device-34d66ae0.js b/web/settings/assets/device-84570e67.js
similarity index 87%
rename from web/settings/assets/device-34d66ae0.js
rename to web/settings/assets/device-84570e67.js
index 236939d0ab..8a823c8b35 100644
--- a/web/settings/assets/device-34d66ae0.js
+++ b/web/settings/assets/device-84570e67.js
@@ -1 +1 @@
-import{_ as c,p as o,k as u,l as p,A as n,L as l,u as _,q as m,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceVictron",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-victron"},g={class:"small"};function h(t,e,s,x,w,i){const a=o("openwb-base-heading"),r=o("openwb-base-text-input");return u(),p("div",b,[n(a,null,{default:l(()=>[_(" Einstellungen für Victron "),m("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.ip_address"))},null,8,["model-value"])])}const B=c(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/device.vue"]]);export{B as default};
+import{_ as c,p as o,k as u,l as p,A as n,L as l,u as _,q as m,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceVictron",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-victron"},g={class:"small"};function h(t,e,s,x,w,i){const a=o("openwb-base-heading"),r=o("openwb-base-text-input");return u(),p("div",b,[n(a,null,{default:l(()=>[_(" Einstellungen für Victron "),m("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.ip_address"))},null,8,["model-value"])])}const B=c(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/device.vue"]]);export{B as default};
diff --git a/web/settings/assets/device-e88cb248.js b/web/settings/assets/device-8715b56d.js
similarity index 89%
rename from web/settings/assets/device-e88cb248.js
rename to web/settings/assets/device-8715b56d.js
index da761fb243..56c40f92f9 100644
--- a/web/settings/assets/device-e88cb248.js
+++ b/web/settings/assets/device-8715b56d.js
@@ -1 +1 @@
-import{_ as d,p as u,k as l,l as p,A as n,L as c,u as f,q as m,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DevicePowerfox",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-powerfox"},w={class:"small"};function b(o,e,a,x,B,s){const r=u("openwb-base-heading"),i=u("openwb-base-text-input");return l(),p("div",v,[n(r,null,{default:c(()=>[f(" Einstellungen für Powerfox "),m("span",w,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=t=>s.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>s.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const h=d(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/device.vue"]]);export{h as default};
+import{_ as d,p as u,k as l,l as p,A as n,L as c,u as f,q as m,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DevicePowerfox",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-powerfox"},w={class:"small"};function b(o,e,a,x,B,s){const r=u("openwb-base-heading"),i=u("openwb-base-text-input");return l(),p("div",v,[n(r,null,{default:c(()=>[f(" Einstellungen für Powerfox "),m("span",w,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=t=>s.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>s.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const h=d(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/device.vue"]]);export{h as default};
diff --git a/web/settings/assets/device-10d2c4c1.js b/web/settings/assets/device-895b9b05.js
similarity index 87%
rename from web/settings/assets/device-10d2c4c1.js
rename to web/settings/assets/device-895b9b05.js
index 3534d08ee6..43a691c5f8 100644
--- a/web/settings/assets/device-10d2c4c1.js
+++ b/web/settings/assets/device-895b9b05.js
@@ -1 +1 @@
-import{_ as r,p as o,k as u,l as p,A as n,L as l,u as _,q as f,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceKostalSteca",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-kostal-steca"},g={class:"small"};function h(t,e,a,x,k,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return u(),p("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Kostal Piko MP oder Steca Grid Coolcept "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>s.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const B=r(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_steca/device.vue"]]);export{B as default};
+import{_ as r,p as o,k as u,l as p,A as n,L as l,u as _,q as f,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceKostalSteca",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-kostal-steca"},g={class:"small"};function h(t,e,a,x,k,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return u(),p("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Kostal Piko MP oder Steca Grid Coolcept "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>s.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const B=r(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_steca/device.vue"]]);export{B as default};
diff --git a/web/settings/assets/device-48b82d13.js b/web/settings/assets/device-9444169d.js
similarity index 87%
rename from web/settings/assets/device-48b82d13.js
rename to web/settings/assets/device-9444169d.js
index 9c26f4a08d..035fe86c79 100644
--- a/web/settings/assets/device-48b82d13.js
+++ b/web/settings/assets/device-9444169d.js
@@ -1 +1 @@
-import{_ as u,p as o,k as p,l as c,A as n,L as l,u as _,q as f,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceBatterX",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-batterx"},g={class:"small"};function x(t,e,a,h,w,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",v,[n(i,null,{default:l(()=>[_(" Einstellungen für BatterX "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const V=u(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/device.vue"]]);export{V as default};
+import{_ as u,p as o,k as p,l as c,A as n,L as l,u as _,q as f,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceBatterX",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-batterx"},g={class:"small"};function x(t,e,a,h,w,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",v,[n(i,null,{default:l(()=>[_(" Einstellungen für BatterX "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const V=u(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/device.vue"]]);export{V as default};
diff --git a/web/settings/assets/device-71f6eb4f.js b/web/settings/assets/device-95bb6ed4.js
similarity index 89%
rename from web/settings/assets/device-71f6eb4f.js
rename to web/settings/assets/device-95bb6ed4.js
index 8324d75d3b..cdce175734 100644
--- a/web/settings/assets/device-71f6eb4f.js
+++ b/web/settings/assets/device-95bb6ed4.js
@@ -1 +1 @@
-import{_ as d,p as u,k as l,l as p,A as n,L as c,u as m,q as f,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceSmartMe",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-smart-me"},b={class:"small"};function w(t,e,a,x,B,s){const r=u("openwb-base-heading"),i=u("openwb-base-text-input");return l(),p("div",v,[n(r,null,{default:c(()=>[m(" Einstellungen für smart-me "),f("span",b,"(Modul: "+_(t.$options.name)+")",1)]),_:1}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=o=>s.updateConfiguration(o,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=o=>s.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])])}const h=d(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/device.vue"]]);export{h as default};
+import{_ as d,p as u,k as l,l as p,A as n,L as c,u as m,q as f,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceSmartMe",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-smart-me"},b={class:"small"};function w(t,e,a,x,B,s){const r=u("openwb-base-heading"),i=u("openwb-base-text-input");return l(),p("div",v,[n(r,null,{default:c(()=>[m(" Einstellungen für smart-me "),f("span",b,"(Modul: "+_(t.$options.name)+")",1)]),_:1}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=o=>s.updateConfiguration(o,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=o=>s.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])])}const h=d(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/device.vue"]]);export{h as default};
diff --git a/web/settings/assets/device-ff4b5125.js b/web/settings/assets/device-a2d2f22a.js
similarity index 87%
rename from web/settings/assets/device-ff4b5125.js
rename to web/settings/assets/device-a2d2f22a.js
index 5146d1c67b..6dddfc6080 100644
--- a/web/settings/assets/device-ff4b5125.js
+++ b/web/settings/assets/device-a2d2f22a.js
@@ -1 +1 @@
-import{_ as u,p as n,k as p,l as c,A as o,L as l,u as _,q as m,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceJanitza",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-janitza"},v={class:"small"};function h(t,e,a,x,w,s){const i=n("openwb-base-heading"),d=n("openwb-base-text-input");return p(),c("div",g,[o(i,null,{default:l(()=>[_(" Einstellungen für Janitza "),m("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const z=u(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/janitza/device.vue"]]);export{z as default};
+import{_ as u,p as n,k as p,l as c,A as o,L as l,u as _,q as m,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceJanitza",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-janitza"},v={class:"small"};function h(t,e,a,x,w,s){const i=n("openwb-base-heading"),d=n("openwb-base-text-input");return p(),c("div",g,[o(i,null,{default:l(()=>[_(" Einstellungen für Janitza "),m("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const z=u(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/janitza/device.vue"]]);export{z as default};
diff --git a/web/settings/assets/device-e2dad607.js b/web/settings/assets/device-a394c36e.js
similarity index 87%
rename from web/settings/assets/device-e2dad607.js
rename to web/settings/assets/device-a394c36e.js
index f108b49ff4..6e32b20767 100644
--- a/web/settings/assets/device-e2dad607.js
+++ b/web/settings/assets/device-a394c36e.js
@@ -1 +1 @@
-import{_ as p,p as t,k as u,l as c,A as n,L as l,u as _,q as m,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceSaxpower",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-saxpower"},v={class:"small"};function x(o,e,a,w,h,s){const i=t("openwb-base-heading"),r=t("openwb-base-text-input");return u(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für Saxpower "),m("span",v,"(Modul: "+f(o.$options.name)+")",1)]),_:1}),n(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=d=>s.updateConfiguration(d,"configuration.ip_address"))},null,8,["model-value"])])}const C=p(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/saxpower/device.vue"]]);export{C as default};
+import{_ as p,p as t,k as u,l as c,A as n,L as l,u as _,q as m,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceSaxpower",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-saxpower"},v={class:"small"};function x(o,e,a,w,h,s){const i=t("openwb-base-heading"),r=t("openwb-base-text-input");return u(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für Saxpower "),m("span",v,"(Modul: "+f(o.$options.name)+")",1)]),_:1}),n(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=d=>s.updateConfiguration(d,"configuration.ip_address"))},null,8,["model-value"])])}const C=p(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/saxpower/device.vue"]]);export{C as default};
diff --git a/web/settings/assets/device-f186e4bf.js b/web/settings/assets/device-a81f5544.js
similarity index 89%
rename from web/settings/assets/device-f186e4bf.js
rename to web/settings/assets/device-a81f5544.js
index 740c2d0345..6d444349b6 100644
--- a/web/settings/assets/device-f186e4bf.js
+++ b/web/settings/assets/device-a81f5544.js
@@ -1 +1 @@
-import{_ as p,p as n,k as _,l as f,A as o,L as s,u as a,q as m,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const h={name:"DeviceKostalPiko",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-kostalpiko"},v={class:"small"};function k(t,e,i,w,x,r){const d=n("openwb-base-heading"),u=n("openwb-base-alert"),c=n("openwb-base-text-input");return _(),f("div",g,[o(d,null,{default:s(()=>[a(" Einstellungen für Kostal Piko "),m("span",v,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:s(()=>[a(" Der Wechselrichter liefert Werte nur, solange er auch PV-Leistung liefert. Nachts geht er in den Standby. Die Hausanschlussüberwachung ist nur aktiv, wenn der Wechselrichter auch aktiv ist. ")]),_:1}),o(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=l=>r.updateConfiguration(l,"configuration.ip_address"))},null,8,["model-value"])])}const B=p(h,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko/device.vue"]]);export{B as default};
+import{_ as p,p as n,k as _,l as f,A as o,L as s,u as a,q as m,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const h={name:"DeviceKostalPiko",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-kostalpiko"},v={class:"small"};function k(t,e,i,w,x,r){const d=n("openwb-base-heading"),u=n("openwb-base-alert"),c=n("openwb-base-text-input");return _(),f("div",g,[o(d,null,{default:s(()=>[a(" Einstellungen für Kostal Piko "),m("span",v,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(u,{subtype:"info"},{default:s(()=>[a(" Der Wechselrichter liefert Werte nur, solange er auch PV-Leistung liefert. Nachts geht er in den Standby. Die Hausanschlussüberwachung ist nur aktiv, wenn der Wechselrichter auch aktiv ist. ")]),_:1}),o(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=l=>r.updateConfiguration(l,"configuration.ip_address"))},null,8,["model-value"])])}const B=p(h,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko/device.vue"]]);export{B as default};
diff --git a/web/settings/assets/device-1ebd188c.js b/web/settings/assets/device-a88fff7e.js
similarity index 85%
rename from web/settings/assets/device-1ebd188c.js
rename to web/settings/assets/device-a88fff7e.js
index 012fe5679e..84996cab92 100644
--- a/web/settings/assets/device-1ebd188c.js
+++ b/web/settings/assets/device-a88fff7e.js
@@ -1 +1 @@
-import{_ as p,p as n,k as r,l as d,A as o,L as s,u as a,q as u,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const l={name:"DeviceOpenwbBatKit",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-openwb-batkit"},b={class:"small"};function m(e,t,v,g,h,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openWB Speicher-Kit "),u("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const $=p(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_bat_kit/device.vue"]]);export{$ as default};
+import{_ as p,p as n,k as r,l as d,A as o,L as s,u as a,q as u,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const l={name:"DeviceOpenwbBatKit",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-openwb-batkit"},b={class:"small"};function m(e,t,v,g,h,w){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openWB Speicher-Kit "),u("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const $=p(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_bat_kit/device.vue"]]);export{$ as default};
diff --git a/web/settings/assets/device-24f0a9e0.js b/web/settings/assets/device-ac3bc5b3.js
similarity index 90%
rename from web/settings/assets/device-24f0a9e0.js
rename to web/settings/assets/device-ac3bc5b3.js
index 5cf3a33359..af45027b7b 100644
--- a/web/settings/assets/device-24f0a9e0.js
+++ b/web/settings/assets/device-ac3bc5b3.js
@@ -1 +1 @@
-import{_ as l,p as d,k as r,l as p,A as o,L as c,u as m,q as f,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceTesla",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-tesla"},b={class:"small"};function w(n,e,a,x,C,i){const u=d("openwb-base-heading"),s=d("openwb-base-text-input");return r(),p("div",v,[o(u,null,{default:c(()=>[m(" Einstellungen für Tesla "),f("span",b,"(Modul: "+_(n.$options.name)+")",1)]),_:1}),o(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),o(s,{title:"E-Mail",subtype:"email",required:"","model-value":a.configuration.email,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"configuration.email"))},null,8,["model-value"]),o(s,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>i.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const y=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/device.vue"]]);export{y as default};
+import{_ as l,p as d,k as r,l as p,A as o,L as c,u as m,q as f,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceTesla",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-tesla"},b={class:"small"};function w(n,e,a,x,C,i){const u=d("openwb-base-heading"),s=d("openwb-base-text-input");return r(),p("div",v,[o(u,null,{default:c(()=>[m(" Einstellungen für Tesla "),f("span",b,"(Modul: "+_(n.$options.name)+")",1)]),_:1}),o(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),o(s,{title:"E-Mail",subtype:"email",required:"","model-value":a.configuration.email,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"configuration.email"))},null,8,["model-value"]),o(s,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>i.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const y=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/device.vue"]]);export{y as default};
diff --git a/web/settings/assets/device-f581669c.js b/web/settings/assets/device-b1434489.js
similarity index 88%
rename from web/settings/assets/device-f581669c.js
rename to web/settings/assets/device-b1434489.js
index 91d25845b1..18c00979e4 100644
--- a/web/settings/assets/device-f581669c.js
+++ b/web/settings/assets/device-b1434489.js
@@ -1 +1 @@
-import{_ as l,p as t,k as _,l as m,A as n,L as s,u as a,q as f,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DevicePowerdog",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-powerdog"},w={class:"small"};function h(o,e,i,x,C,d){const r=t("openwb-base-heading"),p=t("openwb-base-alert"),u=t("openwb-base-text-input");return _(),m("div",v,[n(r,null,{default:s(()=>[a(" Einstellungen für Powerdog "),f("span",w,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(p,{subtype:"info"},{default:s(()=>[a(" ModbusTCP muss aktiviert sein. ")]),_:1}),n(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>d.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const y=l(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/device.vue"]]);export{y as default};
+import{_ as l,p as t,k as _,l as m,A as n,L as s,u as a,q as f,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DevicePowerdog",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-powerdog"},w={class:"small"};function h(o,e,i,x,C,d){const r=t("openwb-base-heading"),p=t("openwb-base-alert"),u=t("openwb-base-text-input");return _(),m("div",v,[n(r,null,{default:s(()=>[a(" Einstellungen für Powerdog "),f("span",w,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(p,{subtype:"info"},{default:s(()=>[a(" ModbusTCP muss aktiviert sein. ")]),_:1}),n(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>d.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const y=l(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/device.vue"]]);export{y as default};
diff --git a/web/settings/assets/device-2a7fcdcd.js b/web/settings/assets/device-bf858f4d.js
similarity index 88%
rename from web/settings/assets/device-2a7fcdcd.js
rename to web/settings/assets/device-bf858f4d.js
index 900d341b65..54e96be01d 100644
--- a/web/settings/assets/device-2a7fcdcd.js
+++ b/web/settings/assets/device-bf858f4d.js
@@ -1 +1 @@
-import{_ as l,p as n,k as _,l as m,A as o,L as s,u as i,q as f,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceSiemens",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-siemens"},h={class:"small"};function w(t,e,a,x,S,d){const r=n("openwb-base-heading"),p=n("openwb-base-alert"),u=n("openwb-base-text-input");return _(),m("div",v,[o(r,null,{default:s(()=>[i(" Einstellungen für Siemens "),f("span",h,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[i(" Im Siemens-Speicher muss die Schnittstelle openWB gewählt werden. ")]),_:1}),o(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>d.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const y=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/device.vue"]]);export{y as default};
+import{_ as l,p as n,k as _,l as m,A as o,L as s,u as i,q as f,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceSiemens",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-siemens"},h={class:"small"};function w(t,e,a,x,S,d){const r=n("openwb-base-heading"),p=n("openwb-base-alert"),u=n("openwb-base-text-input");return _(),m("div",v,[o(r,null,{default:s(()=>[i(" Einstellungen für Siemens "),f("span",h,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),o(p,{subtype:"info"},{default:s(()=>[i(" Im Siemens-Speicher muss die Schnittstelle openWB gewählt werden. ")]),_:1}),o(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=c=>d.updateConfiguration(c,"configuration.ip_address"))},null,8,["model-value"])])}const y=l(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/device.vue"]]);export{y as default};
diff --git a/web/settings/assets/device-7700d0d1.js b/web/settings/assets/device-bfd97b22.js
similarity index 91%
rename from web/settings/assets/device-7700d0d1.js
rename to web/settings/assets/device-bfd97b22.js
index 38e8c2c868..d1ed6d4ed4 100644
--- a/web/settings/assets/device-7700d0d1.js
+++ b/web/settings/assets/device-bfd97b22.js
@@ -1 +1 @@
-import{_ as m,p as o,k as _,l as b,A as i,L as u,u as a,q as d,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceHuawei",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-huawei"},h={class:"small"},w=d("br",null,null,-1);function x(n,e,s,D,I,r){const l=o("openwb-base-heading"),c=o("openwb-base-text-input"),p=o("openwb-base-number-input");return _(),b("div",v,[i(l,null,{default:u(()=>[a(" Einstellungen für Huawei "),d("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),i(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>r.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Modbus ID","model-value":s.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=t=>r.updateConfiguration(t,"configuration.modbus_id"))},{help:u(()=>[a(' Sind mehrere Huawei Wechselrichter als "Schwarm" verbunden, dann besitzt der Master vermutlich die ID "16". Über diese ID werden dann alle Daten in Summe zur Verfügung gestellt.'),w,a(" Die IDs 1 bis 15 sind für einzelne Wechselrichter reserviert. ")]),_:1},8,["model-value"])])}const q=m(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/device.vue"]]);export{q as default};
+import{_ as m,p as o,k as _,l as b,A as i,L as u,u as a,q as d,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceHuawei",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-huawei"},h={class:"small"},w=d("br",null,null,-1);function x(n,e,s,D,I,r){const l=o("openwb-base-heading"),c=o("openwb-base-text-input"),p=o("openwb-base-number-input");return _(),b("div",v,[i(l,null,{default:u(()=>[a(" Einstellungen für Huawei "),d("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),i(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>r.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),i(p,{title:"Modbus ID","model-value":s.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=t=>r.updateConfiguration(t,"configuration.modbus_id"))},{help:u(()=>[a(' Sind mehrere Huawei Wechselrichter als "Schwarm" verbunden, dann besitzt der Master vermutlich die ID "16". Über diese ID werden dann alle Daten in Summe zur Verfügung gestellt.'),w,a(" Die IDs 1 bis 15 sind für einzelne Wechselrichter reserviert. ")]),_:1},8,["model-value"])])}const q=m(g,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/device.vue"]]);export{q as default};
diff --git a/web/settings/assets/device-c0377afe.js b/web/settings/assets/device-c365f5a7.js
similarity index 87%
rename from web/settings/assets/device-c0377afe.js
rename to web/settings/assets/device-c365f5a7.js
index 9f25fa773b..7197e8bdcf 100644
--- a/web/settings/assets/device-c0377afe.js
+++ b/web/settings/assets/device-c365f5a7.js
@@ -1 +1 @@
-import{_ as u,p as t,k as p,l as c,A as n,L as l,u as _,q as m,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const f={name:"DeviceSmaWebbox",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-sma-webbox"},v={class:"small"};function x(o,e,s,w,h,a){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return p(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für SMA Webbox "),m("span",v,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=u(f,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_webbox/device.vue"]]);export{C as default};
+import{_ as u,p as t,k as p,l as c,A as n,L as l,u as _,q as m,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const f={name:"DeviceSmaWebbox",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-sma-webbox"},v={class:"small"};function x(o,e,s,w,h,a){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return p(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für SMA Webbox "),m("span",v,"(Modul: "+b(o.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=u(f,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_webbox/device.vue"]]);export{C as default};
diff --git a/web/settings/assets/device-333a1847.js b/web/settings/assets/device-c7f104f4.js
similarity index 91%
rename from web/settings/assets/device-333a1847.js
rename to web/settings/assets/device-c7f104f4.js
index b2bf3c4d98..2ebd87d817 100644
--- a/web/settings/assets/device-333a1847.js
+++ b/web/settings/assets/device-c7f104f4.js
@@ -1 +1 @@
-import{_ as m,p as t,k as _,l as f,A as o,L as i,u as s,q as r,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceFronius",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},h={class:"device-fronius"},v={class:"small"},w=r("br",null,null,-1);function S(n,e,a,y,x,d){const u=t("openwb-base-heading"),l=t("openwb-base-alert"),c=t("openwb-base-text-input");return _(),f("div",h,[o(u,null,{default:i(()=>[s(" Einstellungen für Fronius "),r("span",v,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),o(l,{subtype:"info"},{default:i(()=>[s(" Die Fronius API muss aktiviert sein."),w,s(" Sind nur Symos in Nutzung, welche über Fronius Solar Net / DATCOM miteinander verbunden sind, muss nur ein Gerät mit einer Komponente Wechselrichter angelegt werden. Sind aber z.B. Symo und Symo Hybrid im Einsatz, muss für jeden Wechselrichter ein Gerät mit einer Komponente Wechselrichter angelegt werden. Die Zähler-Komponente für das Smart-Meter wird in dem Gerät angelegt, dass den Wechselrichter enthält, an den das SmartMeter angeschlossen ist. ")]),_:1}),o(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.ip_address"))},null,8,["model-value"])])}const D=m(g,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/device.vue"]]);export{D as default};
+import{_ as m,p as t,k as _,l as f,A as o,L as i,u as s,q as r,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceFronius",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},h={class:"device-fronius"},v={class:"small"},w=r("br",null,null,-1);function S(n,e,a,y,x,d){const u=t("openwb-base-heading"),l=t("openwb-base-alert"),c=t("openwb-base-text-input");return _(),f("div",h,[o(u,null,{default:i(()=>[s(" Einstellungen für Fronius "),r("span",v,"(Modul: "+b(n.$options.name)+")",1)]),_:1}),o(l,{subtype:"info"},{default:i(()=>[s(" Die Fronius API muss aktiviert sein."),w,s(" Sind nur Symos in Nutzung, welche über Fronius Solar Net / DATCOM miteinander verbunden sind, muss nur ein Gerät mit einer Komponente Wechselrichter angelegt werden. Sind aber z.B. Symo und Symo Hybrid im Einsatz, muss für jeden Wechselrichter ein Gerät mit einer Komponente Wechselrichter angelegt werden. Die Zähler-Komponente für das Smart-Meter wird in dem Gerät angelegt, dass den Wechselrichter enthält, an den das SmartMeter angeschlossen ist. ")]),_:1}),o(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.ip_address"))},null,8,["model-value"])])}const D=m(g,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/device.vue"]]);export{D as default};
diff --git a/web/settings/assets/device-44e40f8a.js b/web/settings/assets/device-cc75d571.js
similarity index 90%
rename from web/settings/assets/device-44e40f8a.js
rename to web/settings/assets/device-cc75d571.js
index 9a21c57676..fd0da022a0 100644
--- a/web/settings/assets/device-44e40f8a.js
+++ b/web/settings/assets/device-cc75d571.js
@@ -1 +1 @@
-import{_ as r,p as u,k as l,l as p,A as o,L as c,u as m,q as f,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceBYD",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-byd"},b={class:"small"};function w(n,e,a,x,y,i){const d=u("openwb-base-heading"),s=u("openwb-base-text-input");return l(),p("div",v,[o(d,null,{default:c(()=>[m(" Einstellungen für BYD "),f("span",b,"(Modul: "+_(n.$options.name)+")",1)]),_:1}),o(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),o(s,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),o(s,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>i.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const V=r(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/byd/device.vue"]]);export{V as default};
+import{_ as r,p as u,k as l,l as p,A as o,L as c,u as m,q as f,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceBYD",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-byd"},b={class:"small"};function w(n,e,a,x,y,i){const d=u("openwb-base-heading"),s=u("openwb-base-text-input");return l(),p("div",v,[o(d,null,{default:c(()=>[m(" Einstellungen für BYD "),f("span",b,"(Modul: "+_(n.$options.name)+")",1)]),_:1}),o(s,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>i.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),o(s,{title:"Benutzername",subtype:"user",required:"","model-value":a.configuration.user,"onUpdate:modelValue":e[1]||(e[1]=t=>i.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),o(s,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[2]||(e[2]=t=>i.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const V=r(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/byd/device.vue"]]);export{V as default};
diff --git a/web/settings/assets/device-f3520fbc.js b/web/settings/assets/device-d3107147.js
similarity index 89%
rename from web/settings/assets/device-f3520fbc.js
rename to web/settings/assets/device-d3107147.js
index c115a4d6ac..be9e2ad191 100644
--- a/web/settings/assets/device-f3520fbc.js
+++ b/web/settings/assets/device-d3107147.js
@@ -1 +1 @@
-import{_ as c,p as o,k as m,l as _,A as s,L as i,u as n,q as a,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceJson",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-json"},v={class:"small"},h=a("br",null,null,-1);function w(t,e,r,j,x,u){const d=o("openwb-base-heading"),l=o("openwb-base-text-input");return m(),_("div",g,[s(d,null,{default:i(()=>[n(" Einstellungen für JSON "),a("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),s(l,{title:"URL",subtype:"url",required:"","model-value":r.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=p=>u.updateConfiguration(p,"configuration.url"))},{help:i(()=>[n(" Es wird eine komplette URL erwartet mit Angaben zum Protokoll, IP oder Hostnamen, optional einem Port und einem Pfad. Die Antwort muss ein json-Objekt sein."),h,n(" Beispiel: http://192.168.1.1:8080/json?data=1 ")]),_:1},8,["model-value"])])}const q=c(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/device.vue"]]);export{q as default};
+import{_ as c,p as o,k as m,l as _,A as s,L as i,u as n,q as a,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceJson",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-json"},v={class:"small"},h=a("br",null,null,-1);function w(t,e,r,j,x,u){const d=o("openwb-base-heading"),l=o("openwb-base-text-input");return m(),_("div",g,[s(d,null,{default:i(()=>[n(" Einstellungen für JSON "),a("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),s(l,{title:"URL",subtype:"url",required:"","model-value":r.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=p=>u.updateConfiguration(p,"configuration.url"))},{help:i(()=>[n(" Es wird eine komplette URL erwartet mit Angaben zum Protokoll, IP oder Hostnamen, optional einem Port und einem Pfad. Die Antwort muss ein json-Objekt sein."),h,n(" Beispiel: http://192.168.1.1:8080/json?data=1 ")]),_:1},8,["model-value"])])}const q=c(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/device.vue"]]);export{q as default};
diff --git a/web/settings/assets/device-6223df3d.js b/web/settings/assets/device-d4d23cd7.js
similarity index 87%
rename from web/settings/assets/device-6223df3d.js
rename to web/settings/assets/device-d4d23cd7.js
index b26d6989d6..ce1ce15f5e 100644
--- a/web/settings/assets/device-6223df3d.js
+++ b/web/settings/assets/device-d4d23cd7.js
@@ -1 +1 @@
-import{_ as r,p as t,k as p,l as c,A as o,L as l,u as _,q as m,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceSunnyIsland",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-sunnyisland"},v={class:"small"};function h(n,e,s,x,y,a){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return p(),c("div",g,[o(i,null,{default:l(()=>[_(" Einstellungen für Sunny Island "),m("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>a.updateConfiguration(u,"configuration.ip_address"))},null,8,["model-value"])])}const B=r(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_island/device.vue"]]);export{B as default};
+import{_ as r,p as t,k as p,l as c,A as o,L as l,u as _,q as m,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceSunnyIsland",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-sunnyisland"},v={class:"small"};function h(n,e,s,x,y,a){const i=t("openwb-base-heading"),d=t("openwb-base-text-input");return p(),c("div",g,[o(i,null,{default:l(()=>[_(" Einstellungen für Sunny Island "),m("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=u=>a.updateConfiguration(u,"configuration.ip_address"))},null,8,["model-value"])])}const B=r(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_island/device.vue"]]);export{B as default};
diff --git a/web/settings/assets/device-ae65393a.js b/web/settings/assets/device-d57c20ac.js
similarity index 89%
rename from web/settings/assets/device-ae65393a.js
rename to web/settings/assets/device-d57c20ac.js
index 67dffb0425..afaa74207e 100644
--- a/web/settings/assets/device-ae65393a.js
+++ b/web/settings/assets/device-d57c20ac.js
@@ -1 +1 @@
-import{_ as r,p as u,k as l,l as c,A as n,L as p,u as f,q as m,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceDiscovergy",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-discovergy"},b={class:"small"};function w(o,e,s,y,x,a){const d=u("openwb-base-heading"),i=u("openwb-base-text-input");return l(),c("div",v,[n(d,null,{default:p(()=>[f(" Einstellungen für Discovergy "),m("span",b,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":s.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":s.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const V=r(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/device.vue"]]);export{V as default};
+import{_ as r,p as u,k as l,l as c,A as n,L as p,u as f,q as m,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceDiscovergy",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-discovergy"},b={class:"small"};function w(o,e,s,y,x,a){const d=u("openwb-base-heading"),i=u("openwb-base-text-input");return l(),c("div",v,[n(d,null,{default:p(()=>[f(" Einstellungen für Discovergy "),m("span",b,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),n(i,{title:"Benutzername",subtype:"user",required:"","model-value":s.configuration.user,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.user"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":s.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.password"))},null,8,["model-value"])])}const V=r(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/device.vue"]]);export{V as default};
diff --git a/web/settings/assets/device-b59b9c77.js b/web/settings/assets/device-d6905669.js
similarity index 87%
rename from web/settings/assets/device-b59b9c77.js
rename to web/settings/assets/device-d6905669.js
index d0f64b8f58..212be1a2e0 100644
--- a/web/settings/assets/device-b59b9c77.js
+++ b/web/settings/assets/device-d6905669.js
@@ -1 +1 @@
-import{_ as u,p as o,k as p,l as c,A as n,L as l,u as _,q as f,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceSmartfox",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-smartfox"},g={class:"small"};function x(t,e,a,h,w,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Smartfox "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const V=u(v,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smartfox/device.vue"]]);export{V as default};
+import{_ as u,p as o,k as p,l as c,A as n,L as l,u as _,q as f,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceSmartfox",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-smartfox"},g={class:"small"};function x(t,e,a,h,w,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Smartfox "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const V=u(v,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smartfox/device.vue"]]);export{V as default};
diff --git a/web/settings/assets/device-eded82a1.js b/web/settings/assets/device-e304fcca.js
similarity index 87%
rename from web/settings/assets/device-eded82a1.js
rename to web/settings/assets/device-e304fcca.js
index be5b8425c5..6225212b00 100644
--- a/web/settings/assets/device-eded82a1.js
+++ b/web/settings/assets/device-e304fcca.js
@@ -1 +1 @@
-import{_ as u,p as o,k as p,l as c,A as n,L as l,u as _,q as m,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceSolarmax",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-solarmax"},g={class:"small"};function x(t,e,a,h,w,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Solarmax "),m("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const V=u(v,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/device.vue"]]);export{V as default};
+import{_ as u,p as o,k as p,l as c,A as n,L as l,u as _,q as m,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceSolarmax",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-solarmax"},g={class:"small"};function x(t,e,a,h,w,s){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",b,[n(i,null,{default:l(()=>[_(" Einstellungen für Solarmax "),m("span",g,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>s.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const V=u(v,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/device.vue"]]);export{V as default};
diff --git a/web/settings/assets/device-9c25dea2.js b/web/settings/assets/device-e41e1249.js
similarity index 89%
rename from web/settings/assets/device-9c25dea2.js
rename to web/settings/assets/device-e41e1249.js
index aa802e44af..72590ae02f 100644
--- a/web/settings/assets/device-9c25dea2.js
+++ b/web/settings/assets/device-e41e1249.js
@@ -1 +1 @@
-import{_ as c,p as o,k as _,l as m,A as i,L as r,u as n,q as a,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceHttp",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-http"},v={class:"small"},h=a("br",null,null,-1);function w(t,e,s,x,B,d){const p=o("openwb-base-heading"),u=o("openwb-base-text-input");return _(),m("div",b,[i(p,null,{default:r(()=>[n(" Einstellungen für Http "),a("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),i(u,{title:"Server-URL",subtype:"url",required:"","model-value":s.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=l=>d.updateConfiguration(l,"configuration.url"))},{help:r(()=>[n(" Hier sind die Verbindungsangaben für den Http-Server einzutragen. Der Pfad für die einzelnen Daten wird in der Komponente hinterlegt."),h,n(" Beispiel: http://mein.server:8080 ")]),_:1},8,["model-value"])])}const C=c(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/device.vue"]]);export{C as default};
+import{_ as c,p as o,k as _,l as m,A as i,L as r,u as n,q as a,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceHttp",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-http"},v={class:"small"},h=a("br",null,null,-1);function w(t,e,s,x,B,d){const p=o("openwb-base-heading"),u=o("openwb-base-text-input");return _(),m("div",b,[i(p,null,{default:r(()=>[n(" Einstellungen für Http "),a("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),i(u,{title:"Server-URL",subtype:"url",required:"","model-value":s.configuration.url,"onUpdate:modelValue":e[0]||(e[0]=l=>d.updateConfiguration(l,"configuration.url"))},{help:r(()=>[n(" Hier sind die Verbindungsangaben für den Http-Server einzutragen. Der Pfad für die einzelnen Daten wird in der Komponente hinterlegt."),h,n(" Beispiel: http://mein.server:8080 ")]),_:1},8,["model-value"])])}const C=c(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/device.vue"]]);export{C as default};
diff --git a/web/settings/assets/device-b04bd256.js b/web/settings/assets/device-e5846fb7.js
similarity index 89%
rename from web/settings/assets/device-b04bd256.js
rename to web/settings/assets/device-e5846fb7.js
index fee952a876..01fea14b36 100644
--- a/web/settings/assets/device-b04bd256.js
+++ b/web/settings/assets/device-e5846fb7.js
@@ -1 +1 @@
-import{_ as r,p as d,k as l,l as p,A as n,L as c,u as f,q as m,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceLG",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-lg"},b={class:"small"};function w(t,e,a,x,V,s){const u=d("openwb-base-heading"),i=d("openwb-base-text-input");return l(),p("div",v,[n(u,null,{default:c(()=>[f(" Einstellungen für LG ESS V1.0 "),m("span",b,"(Modul: "+_(t.$options.name)+")",1)]),_:1}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>s.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=o=>s.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])])}const q=r(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/device.vue"]]);export{q as default};
+import{_ as r,p as d,k as l,l as p,A as n,L as c,u as f,q as m,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceLG",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-lg"},b={class:"small"};function w(t,e,a,x,V,s){const u=d("openwb-base-heading"),i=d("openwb-base-text-input");return l(),p("div",v,[n(u,null,{default:c(()=>[f(" Einstellungen für LG ESS V1.0 "),m("span",b,"(Modul: "+_(t.$options.name)+")",1)]),_:1}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":a.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=o=>s.updateConfiguration(o,"configuration.ip_address"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":a.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=o=>s.updateConfiguration(o,"configuration.password"))},null,8,["model-value"])])}const q=r(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/device.vue"]]);export{q as default};
diff --git a/web/settings/assets/device-d5aedcd9.js b/web/settings/assets/device-e67da7c1.js
similarity index 87%
rename from web/settings/assets/device-d5aedcd9.js
rename to web/settings/assets/device-e67da7c1.js
index d9d0dc119f..cabe4ab9b0 100644
--- a/web/settings/assets/device-d5aedcd9.js
+++ b/web/settings/assets/device-e67da7c1.js
@@ -1 +1 @@
-import{_ as u,p as t,k as c,l as p,A as a,L as l,u as _,q as m,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceCarloGavazzi",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-carlogavazzi"},b={class:"small"};function z(o,e,n,h,x,s){const i=t("openwb-base-heading"),r=t("openwb-base-text-input");return c(),p("div",g,[a(i,null,{default:l(()=>[_(" Einstellungen für Carlo Gavazzi "),m("span",b,"(Modul: "+f(o.$options.name)+")",1)]),_:1}),a(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=d=>s.updateConfiguration(d,"configuration.ip_address"))},null,8,["model-value"])])}const q=u(v,[["render",z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/carlo_gavazzi/device.vue"]]);export{q as default};
+import{_ as u,p as t,k as c,l as p,A as a,L as l,u as _,q as m,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceCarloGavazzi",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},g={class:"device-carlogavazzi"},b={class:"small"};function z(o,e,n,h,x,s){const i=t("openwb-base-heading"),r=t("openwb-base-text-input");return c(),p("div",g,[a(i,null,{default:l(()=>[_(" Einstellungen für Carlo Gavazzi "),m("span",b,"(Modul: "+f(o.$options.name)+")",1)]),_:1}),a(r,{title:"IP oder Hostname",subtype:"host",required:"","model-value":n.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=d=>s.updateConfiguration(d,"configuration.ip_address"))},null,8,["model-value"])])}const q=u(v,[["render",z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/carlo_gavazzi/device.vue"]]);export{q as default};
diff --git a/web/settings/assets/device-68cea660.js b/web/settings/assets/device-e690bc67.js
similarity index 85%
rename from web/settings/assets/device-68cea660.js
rename to web/settings/assets/device-e690bc67.js
index 13549c0b07..b2ec44ef1c 100644
--- a/web/settings/assets/device-68cea660.js
+++ b/web/settings/assets/device-e690bc67.js
@@ -1 +1 @@
-import{_ as p,p as n,k as r,l as d,A as o,L as s,u as a,q as u,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const l={name:"DeviceOpenwbEvuKit",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-openwb-evukit"},b={class:"small"};function m(e,t,v,g,w,h){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openWB EVU-Kit "),u("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const x=p(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/device.vue"]]);export{x as default};
+import{_ as p,p as n,k as r,l as d,A as o,L as s,u as a,q as u,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const l={name:"DeviceOpenwbEvuKit",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-openwb-evukit"},b={class:"small"};function m(e,t,v,g,w,h){const i=n("openwb-base-heading"),c=n("openwb-base-alert");return r(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openWB EVU-Kit "),u("span",b,"(Modul: "+_(e.$options.name)+")",1)]),_:1}),o(c,{subtype:"info"},{default:s(()=>[a(" Dieses Gerät erfordert keine Einstellungen. ")]),_:1})])}const x=p(l,[["render",m],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/device.vue"]]);export{x as default};
diff --git a/web/settings/assets/device-fcd34186.js b/web/settings/assets/device-e8e7a237.js
similarity index 90%
rename from web/settings/assets/device-fcd34186.js
rename to web/settings/assets/device-e8e7a237.js
index 6cd1ea324c..5a9181fb08 100644
--- a/web/settings/assets/device-fcd34186.js
+++ b/web/settings/assets/device-e8e7a237.js
@@ -1 +1 @@
-import{_ as p,p as o,k as r,l as c,A as a,L as _,u as m,q as f,x as g}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceShelly",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-shelly"},h={class:"small"};function w(t,e,i,x,y,s){const l=o("openwb-base-heading"),u=o("openwb-base-text-input"),d=o("openwb-base-select-input");return r(),c("div",b,[a(l,null,{default:_(()=>[m(" Einstellungen für Shelly "),f("span",h,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(d,{title:"Generation",notSelected:"Bitte auswählen",options:[{value:1,text:"Shelly 1pm"},{value:2,text:"Shelly 1pm plus"}],"model-value":i.configuration.generation,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.generation"))},null,8,["model-value"])])}const C=p(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/shelly/device.vue"]]);export{C as default};
+import{_ as p,p as o,k as r,l as c,A as a,L as _,u as m,q as f,x as g}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceShelly",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-shelly"},h={class:"small"};function w(t,e,i,x,y,s){const l=o("openwb-base-heading"),u=o("openwb-base-text-input"),d=o("openwb-base-select-input");return r(),c("div",b,[a(l,null,{default:_(()=>[m(" Einstellungen für Shelly "),f("span",h,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),a(u,{title:"IP oder Hostname",subtype:"host",required:"","model-value":i.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.ip_address"))},null,8,["model-value"]),a(d,{title:"Generation",notSelected:"Bitte auswählen",options:[{value:1,text:"Shelly 1pm"},{value:2,text:"Shelly 1pm plus"}],"model-value":i.configuration.generation,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.generation"))},null,8,["model-value"])])}const C=p(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/shelly/device.vue"]]);export{C as default};
diff --git a/web/settings/assets/device-76b564cb.js b/web/settings/assets/device-e95c0504.js
similarity index 95%
rename from web/settings/assets/device-76b564cb.js
rename to web/settings/assets/device-e95c0504.js
index 5d498f8d95..fbb49bde05 100644
--- a/web/settings/assets/device-76b564cb.js
+++ b/web/settings/assets/device-e95c0504.js
@@ -1 +1 @@
-import{_ as p,p as d,k as c,l as m,A as n,L as r,u,q as f,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceFems",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-fems"},b={class:"small"};function w(o,e,s,x,C,a){const l=d("openwb-base-heading"),i=d("openwb-base-text-input");return c(),m("div",v,[n(l,null,{default:r(()=>[u(" Einstellungen für openEMS, Fenecon FEMS, Kaco Hy-Control "),f("span",b,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":s.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.password"))},{help:r(()=>[u(" Bei Nutzung von Fenecon FEMS ist das Passwort im Normalfall user, bei Kaco mit Hy-Control ist das Passwort meist admin. ")]),_:1},8,["model-value"])])}const B=p(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/device.vue"]]);export{B as default};
+import{_ as p,p as d,k as c,l as m,A as n,L as r,u,q as f,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceFems",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(o,e=void 0){this.$emit("update:configuration",{value:o,object:e})}}},v={class:"device-fems"},b={class:"small"};function w(o,e,s,x,C,a){const l=d("openwb-base-heading"),i=d("openwb-base-text-input");return c(),m("div",v,[n(l,null,{default:r(()=>[u(" Einstellungen für openEMS, Fenecon FEMS, Kaco Hy-Control "),f("span",b,"(Modul: "+_(o.$options.name)+")",1)]),_:1}),n(i,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.ip_address"))},null,8,["model-value"]),n(i,{title:"Passwort",subtype:"password",required:"","model-value":s.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.password"))},{help:r(()=>[u(" Bei Nutzung von Fenecon FEMS ist das Passwort im Normalfall user, bei Kaco mit Hy-Control ist das Passwort meist admin. ")]),_:1},8,["model-value"])])}const B=p(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/device.vue"]]);export{B as default};
diff --git a/web/settings/assets/device-5e36d94b.js b/web/settings/assets/device-e97ebded.js
similarity index 87%
rename from web/settings/assets/device-5e36d94b.js
rename to web/settings/assets/device-e97ebded.js
index 4aa3b382ec..4dec93ed92 100644
--- a/web/settings/assets/device-5e36d94b.js
+++ b/web/settings/assets/device-e97ebded.js
@@ -1 +1 @@
-import{_ as u,p as o,k as p,l as c,A as n,L as l,u as _,q as m,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceKostalSEM",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-kostal-sem"},b={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",v,[n(i,null,{default:l(()=>[_(" Einstellungen für Kostal Smart Energy Meter oder TQ EM 410 "),m("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const y=u(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_sem/device.vue"]]);export{y as default};
+import{_ as u,p as o,k as p,l as c,A as n,L as l,u as _,q as m,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceKostalSEM",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-kostal-sem"},b={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",v,[n(i,null,{default:l(()=>[_(" Einstellungen für Kostal Smart Energy Meter oder TQ EM 410 "),m("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const y=u(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_sem/device.vue"]]);export{y as default};
diff --git a/web/settings/assets/device-368b885c.js b/web/settings/assets/device-eb39e5e3.js
similarity index 96%
rename from web/settings/assets/device-368b885c.js
rename to web/settings/assets/device-eb39e5e3.js
index 42dd92744a..c45fa3f6af 100644
--- a/web/settings/assets/device-368b885c.js
+++ b/web/settings/assets/device-eb39e5e3.js
@@ -1 +1 @@
-import{_,p as n,k as b,l as f,A as t,L as a,u as o,q as u,x as g}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const h={name:"DeviceSolarEdge",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},v={class:"device-solaredge"},w={class:"small"},B=u("br",null,null,-1);function S(i,e,s,k,W,d){const l=n("openwb-base-heading"),p=n("openwb-base-alert"),c=n("openwb-base-text-input"),m=n("openwb-base-number-input");return b(),f("div",v,[t(l,null,{default:a(()=>[o(" Einstellungen für SolarEdge "),u("span",w,"(Modul: "+g(i.$options.name)+")",1)]),_:1}),t(p,{subtype:"info"},{default:a(()=>[o(" ModbusTCP muss im Wechselrichter aktiviert werden und der Wechselrichter per LAN angebunden sein."),B,o(" SolarEdge lässt nur eine ModbusTCP-Verbindung zu. Wenn Sie mit einem weiteren Smarthome-System, wie z.B. ioBroker oder openHAB, den SolarEdge-Wechselrichter abfragen, kann dies die Abfrage durch die openWB stören oder verhindern. ")]),_:1}),t(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>d.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"]),t(m,{title:"Port",required:"","model-value":s.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=r=>d.updateConfiguration(r,"configuration.port"))},{help:a(()=>[o(" Je nach Produktionsdatum und Softwareversion ist 502 oder 1502 ab Werk eingestellt. Bitte im Wechselrichter überprüfen. ")]),_:1},8,["model-value"])])}const E=_(h,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/device.vue"]]);export{E as default};
+import{_,p as n,k as b,l as f,A as t,L as a,u as o,q as u,x as g}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const h={name:"DeviceSolarEdge",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},v={class:"device-solaredge"},w={class:"small"},B=u("br",null,null,-1);function S(i,e,s,k,W,d){const l=n("openwb-base-heading"),p=n("openwb-base-alert"),c=n("openwb-base-text-input"),m=n("openwb-base-number-input");return b(),f("div",v,[t(l,null,{default:a(()=>[o(" Einstellungen für SolarEdge "),u("span",w,"(Modul: "+g(i.$options.name)+")",1)]),_:1}),t(p,{subtype:"info"},{default:a(()=>[o(" ModbusTCP muss im Wechselrichter aktiviert werden und der Wechselrichter per LAN angebunden sein."),B,o(" SolarEdge lässt nur eine ModbusTCP-Verbindung zu. Wenn Sie mit einem weiteren Smarthome-System, wie z.B. ioBroker oder openHAB, den SolarEdge-Wechselrichter abfragen, kann dies die Abfrage durch die openWB stören oder verhindern. ")]),_:1}),t(c,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>d.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"]),t(m,{title:"Port",required:"","model-value":s.configuration.port,"onUpdate:modelValue":e[1]||(e[1]=r=>d.updateConfiguration(r,"configuration.port"))},{help:a(()=>[o(" Je nach Produktionsdatum und Softwareversion ist 502 oder 1502 ab Werk eingestellt. Bitte im Wechselrichter überprüfen. ")]),_:1},8,["model-value"])])}const E=_(h,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/device.vue"]]);export{E as default};
diff --git a/web/settings/assets/device-c7a69fb7.js b/web/settings/assets/device-f356c73d.js
similarity index 86%
rename from web/settings/assets/device-c7a69fb7.js
rename to web/settings/assets/device-f356c73d.js
index 5b06f4c7fb..43287f748a 100644
--- a/web/settings/assets/device-c7a69fb7.js
+++ b/web/settings/assets/device-f356c73d.js
@@ -1 +1 @@
-import{_ as c,p as o,k as u,l as p,A as n,L as l,u as _,q as m,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceE3dc",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-e3dc"},v={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return u(),p("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für E3DC "),m("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.address"))},null,8,["model-value"])])}const B=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/device.vue"]]);export{B as default};
+import{_ as c,p as o,k as u,l as p,A as n,L as l,u as _,q as m,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceE3dc",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-e3dc"},v={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return u(),p("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für E3DC "),m("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.address"))},null,8,["model-value"])])}const B=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/device.vue"]]);export{B as default};
diff --git a/web/settings/assets/device-736742cc.js b/web/settings/assets/device-f422a199.js
similarity index 87%
rename from web/settings/assets/device-736742cc.js
rename to web/settings/assets/device-f422a199.js
index 659afb50be..47dd5cf1f7 100644
--- a/web/settings/assets/device-736742cc.js
+++ b/web/settings/assets/device-f422a199.js
@@ -1 +1 @@
-import{_ as u,p as o,k as p,l as c,A as n,L as l,u as _,q as m,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceStuder",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-studer"},v={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für Studer "),m("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=u(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/device.vue"]]);export{C as default};
+import{_ as u,p as o,k as p,l as c,A as n,L as l,u as _,q as m,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceStuder",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-studer"},v={class:"small"};function h(t,e,s,x,w,a){const i=o("openwb-base-heading"),d=o("openwb-base-text-input");return p(),c("div",g,[n(i,null,{default:l(()=>[_(" Einstellungen für Studer "),m("span",v,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(d,{title:"IP oder Hostname",subtype:"host",required:"","model-value":s.configuration.ip_address,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.ip_address"))},null,8,["model-value"])])}const C=u(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/device.vue"]]);export{C as default};
diff --git a/web/settings/assets/displayTheme-af0ce411.js b/web/settings/assets/displayTheme-35595a93.js
similarity index 97%
rename from web/settings/assets/displayTheme-af0ce411.js
rename to web/settings/assets/displayTheme-35595a93.js
index 7ba29f6cb3..b7ca9046e1 100644
--- a/web/settings/assets/displayTheme-af0ce411.js
+++ b/web/settings/assets/displayTheme-35595a93.js
@@ -1,4 +1,4 @@
-import{_ as f,p as _,k as o,l as m,A as l,L as d,u as r,q as p,x as v,y as i,z as s}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const h={name:"DisplayThemeCards",emits:["update:configuration"],props:{configuration:{type:Object,required:!0}},methods:{updateConfiguration(c,e=void 0){this.$emit("update:configuration",{value:c,object:e})}}},V={class:"display-theme-cards"},x={class:"small"};function w(c,e,n,A,k,a){const b=_("openwb-base-heading"),u=_("openwb-base-button-group-input"),g=_("openwb-base-text-input");return o(),m("div",V,[l(b,null,{default:d(()=>[r(" Einstellungen für Display Theme Cards "),p("span",x,"(Modul: "+v(c.$options.name)+")",1)]),_:1}),l(b,null,{default:d(()=>[r("Bediensperre")]),_:1}),l(u,{title:"Bedienung sperren","model-value":n.configuration.lock_changes,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.lock_changes")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"]),n.configuration.lock_changes?(o(),i(g,{key:0,title:"PIN zur Freigabe",subtype:"password",required:"",pattern:"[0-9]{4,10}","model-value":n.configuration.lock_changes_code,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.lock_changes_code"))},{help:d(()=>[r(" Der PIN muss aus 4 bis 10 Zahlen bestehen. ")]),_:1},8,["model-value"])):s("v-if",!0),l(b,null,{default:d(()=>[r('Ansicht "Übersicht"')]),_:1}),l(u,{title:"Übersicht anzeigen","model-value":n.configuration.enable_dashboard_view,"onUpdate:modelValue":e[2]||(e[2]=t=>a.updateConfiguration(t,"configuration.enable_dashboard_view")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"]),n.configuration.enable_dashboard_view?(o(),i(u,{key:1,title:"EVU anzeigen","model-value":n.configuration.enable_dashboard_card_grid,"onUpdate:modelValue":e[3]||(e[3]=t=>a.updateConfiguration(t,"configuration.enable_dashboard_card_grid")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):s("v-if",!0),n.configuration.enable_dashboard_view?(o(),i(u,{key:2,title:"Hausverbrauch anzeigen","model-value":n.configuration.enable_dashboard_card_home_consumption,"onUpdate:modelValue":e[4]||(e[4]=t=>a.updateConfiguration(t,"configuration.enable_dashboard_card_home_consumption")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):s("v-if",!0),n.configuration.enable_dashboard_view?(o(),i(u,{key:3,title:"Batteriespeicher anzeigen","model-value":n.configuration.enable_dashboard_card_battery_sum,"onUpdate:modelValue":e[5]||(e[5]=t=>a.updateConfiguration(t,"configuration.enable_dashboard_card_battery_sum")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):s("v-if",!0),n.configuration.enable_dashboard_view?(o(),i(u,{key:4,title:"Ladepunkte anzeigen","model-value":n.configuration.enable_dashboard_card_charge_point_sum,"onUpdate:modelValue":e[6]||(e[6]=t=>a.updateConfiguration(t,"configuration.enable_dashboard_card_charge_point_sum")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):s("v-if",!0),n.configuration.enable_dashboard_view?(o(),i(u,{key:5,title:"PV anzeigen","model-value":n.configuration.enable_dashboard_card_inverter_sum,"onUpdate:modelValue":e[7]||(e[7]=t=>a.updateConfiguration(t,"configuration.enable_dashboard_card_inverter_sum")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):s("v-if",!0),l(b,null,{default:d(()=>[r('Ansicht "Ladepunkte"')]),_:1}),l(u,{title:"Ladepunkte anzeigen","model-value":n.configuration.enable_charge_points_view,"onUpdate:modelValue":e[8]||(e[8]=t=>a.updateConfiguration(t,"configuration.enable_charge_points_view")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"]),s(` <openwb-base-heading>Ansicht "Status"</openwb-base-heading>
+import{_ as f,p as _,k as o,l as m,A as l,L as d,u as r,q as p,x as v,y as i,z as s}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const h={name:"DisplayThemeCards",emits:["update:configuration"],props:{configuration:{type:Object,required:!0}},methods:{updateConfiguration(c,e=void 0){this.$emit("update:configuration",{value:c,object:e})}}},V={class:"display-theme-cards"},x={class:"small"};function w(c,e,n,A,k,a){const b=_("openwb-base-heading"),u=_("openwb-base-button-group-input"),g=_("openwb-base-text-input");return o(),m("div",V,[l(b,null,{default:d(()=>[r(" Einstellungen für Display Theme Cards "),p("span",x,"(Modul: "+v(c.$options.name)+")",1)]),_:1}),l(b,null,{default:d(()=>[r("Bediensperre")]),_:1}),l(u,{title:"Bedienung sperren","model-value":n.configuration.lock_changes,"onUpdate:modelValue":e[0]||(e[0]=t=>a.updateConfiguration(t,"configuration.lock_changes")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"]),n.configuration.lock_changes?(o(),i(g,{key:0,title:"PIN zur Freigabe",subtype:"password",required:"",pattern:"[0-9]{4,10}","model-value":n.configuration.lock_changes_code,"onUpdate:modelValue":e[1]||(e[1]=t=>a.updateConfiguration(t,"configuration.lock_changes_code"))},{help:d(()=>[r(" Der PIN muss aus 4 bis 10 Zahlen bestehen. ")]),_:1},8,["model-value"])):s("v-if",!0),l(b,null,{default:d(()=>[r('Ansicht "Übersicht"')]),_:1}),l(u,{title:"Übersicht anzeigen","model-value":n.configuration.enable_dashboard_view,"onUpdate:modelValue":e[2]||(e[2]=t=>a.updateConfiguration(t,"configuration.enable_dashboard_view")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"]),n.configuration.enable_dashboard_view?(o(),i(u,{key:1,title:"EVU anzeigen","model-value":n.configuration.enable_dashboard_card_grid,"onUpdate:modelValue":e[3]||(e[3]=t=>a.updateConfiguration(t,"configuration.enable_dashboard_card_grid")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):s("v-if",!0),n.configuration.enable_dashboard_view?(o(),i(u,{key:2,title:"Hausverbrauch anzeigen","model-value":n.configuration.enable_dashboard_card_home_consumption,"onUpdate:modelValue":e[4]||(e[4]=t=>a.updateConfiguration(t,"configuration.enable_dashboard_card_home_consumption")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):s("v-if",!0),n.configuration.enable_dashboard_view?(o(),i(u,{key:3,title:"Batteriespeicher anzeigen","model-value":n.configuration.enable_dashboard_card_battery_sum,"onUpdate:modelValue":e[5]||(e[5]=t=>a.updateConfiguration(t,"configuration.enable_dashboard_card_battery_sum")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):s("v-if",!0),n.configuration.enable_dashboard_view?(o(),i(u,{key:4,title:"Ladepunkte anzeigen","model-value":n.configuration.enable_dashboard_card_charge_point_sum,"onUpdate:modelValue":e[6]||(e[6]=t=>a.updateConfiguration(t,"configuration.enable_dashboard_card_charge_point_sum")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):s("v-if",!0),n.configuration.enable_dashboard_view?(o(),i(u,{key:5,title:"PV anzeigen","model-value":n.configuration.enable_dashboard_card_inverter_sum,"onUpdate:modelValue":e[7]||(e[7]=t=>a.updateConfiguration(t,"configuration.enable_dashboard_card_inverter_sum")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"])):s("v-if",!0),l(b,null,{default:d(()=>[r('Ansicht "Ladepunkte"')]),_:1}),l(u,{title:"Ladepunkte anzeigen","model-value":n.configuration.enable_charge_points_view,"onUpdate:modelValue":e[8]||(e[8]=t=>a.updateConfiguration(t,"configuration.enable_charge_points_view")),buttons:[{buttonValue:!1,text:"Aus",class:"btn-outline-danger"},{buttonValue:!0,text:"An",class:"btn-outline-success"}]},null,8,["model-value"]),s(` <openwb-base-heading>Ansicht "Status"</openwb-base-heading>
 		<openwb-base-button-group-input
 			title="Status anzeigen"
 			:model-value="configuration.enable_status_view"
diff --git a/web/settings/assets/external_inverter-c6cc5286.js b/web/settings/assets/external_inverter-21044b75.js
similarity index 86%
rename from web/settings/assets/external_inverter-c6cc5286.js
rename to web/settings/assets/external_inverter-21044b75.js
index 382210ec23..7023e51931 100644
--- a/web/settings/assets/external_inverter-c6cc5286.js
+++ b/web/settings/assets/external_inverter-21044b75.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as d,A as o,L as a,u as r,q as l,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceBatterXExternalInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-batterx-external-inverter"},m={class:"small"};function b(e,t,v,x,g,h){const s=n("openwb-base-heading"),i=n("openwb-base-alert");return p(),d("div",f,[o(s,null,{default:a(()=>[r(" Einstellungen für externen BatterX Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:a(()=>[r(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/external_inverter.vue"]]);export{$ as default};
+import{_ as c,p as n,k as p,l as d,A as o,L as a,u as r,q as l,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceBatterXExternalInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-batterx-external-inverter"},m={class:"small"};function b(e,t,v,x,g,h){const s=n("openwb-base-heading"),i=n("openwb-base-alert");return p(),d("div",f,[o(s,null,{default:a(()=>[r(" Einstellungen für externen BatterX Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:a(()=>[r(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/external_inverter.vue"]]);export{$ as default};
diff --git a/web/settings/assets/external_inverter-debacbf1.js b/web/settings/assets/external_inverter-5c208b04.js
similarity index 86%
rename from web/settings/assets/external_inverter-debacbf1.js
rename to web/settings/assets/external_inverter-5c208b04.js
index 672641bb7e..ca81ad2af4 100644
--- a/web/settings/assets/external_inverter-debacbf1.js
+++ b/web/settings/assets/external_inverter-5c208b04.js
@@ -1 +1 @@
-import{_ as c,p as n,k as d,l as p,A as o,L as s,u as a,q as l,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceE3dcExternalInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-external-inverter"},m={class:"small"};function b(e,t,v,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für externe E3DC Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/external_inverter.vue"]]);export{$ as default};
+import{_ as c,p as n,k as d,l as p,A as o,L as s,u as a,q as l,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceE3dcExternalInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-external-inverter"},m={class:"small"};function b(e,t,v,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für externe E3DC Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/external_inverter.vue"]]);export{$ as default};
diff --git a/web/settings/assets/external_inverter-4989c79d.js b/web/settings/assets/external_inverter-af9b2b79.js
similarity index 92%
rename from web/settings/assets/external_inverter-4989c79d.js
rename to web/settings/assets/external_inverter-af9b2b79.js
index 33954b70f9..0c47e1ff5e 100644
--- a/web/settings/assets/external_inverter-4989c79d.js
+++ b/web/settings/assets/external_inverter-af9b2b79.js
@@ -1 +1 @@
-import{_ as c,p as i,k as p,l as _,A as n,L as u,u as d,q as f,x as g}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceSolarEdgeExternalInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-solaredge-external-inverter"},h={class:"small"};function x(t,e,a,w,B,r){const l=i("openwb-base-heading"),m=i("openwb-base-alert"),s=i("openwb-base-number-input");return p(),_("div",v,[n(l,null,{default:u(()=>[d(" Einstellungen für SolarEdge externen Wechselrichter "),f("span",h,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),n(m,{subtype:"info"},{default:u(()=>[d(' Diese Komponente nur konfigurieren, wenn ein weiteres Solaredge SmartMeter verbaut ist, welches z.B. die Leistung einer vorhandenen Bestands-PV-Anlage erfasst. Dieses zusätzliche SmartMeter muss dann als "Zähler 2" / "Position 2" im Wechselrichter-Konfigurationsmenü konfiguriert sein. ')]),_:1}),n(s,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=o=>r.updateConfiguration(o,"configuration.modbus_id"))},null,8,["model-value"]),n(s,{title:"Meter ID","model-value":a.configuration.meter_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=o=>r.updateConfiguration(o,"configuration.meter_id"))},null,8,["model-value"])])}const V=c(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/external_inverter.vue"]]);export{V as default};
+import{_ as c,p as i,k as p,l as _,A as n,L as u,u as d,q as f,x as g}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceSolarEdgeExternalInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-solaredge-external-inverter"},h={class:"small"};function x(t,e,a,w,B,r){const l=i("openwb-base-heading"),m=i("openwb-base-alert"),s=i("openwb-base-number-input");return p(),_("div",v,[n(l,null,{default:u(()=>[d(" Einstellungen für SolarEdge externen Wechselrichter "),f("span",h,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),n(m,{subtype:"info"},{default:u(()=>[d(' Diese Komponente nur konfigurieren, wenn ein weiteres Solaredge SmartMeter verbaut ist, welches z.B. die Leistung einer vorhandenen Bestands-PV-Anlage erfasst. Dieses zusätzliche SmartMeter muss dann als "Zähler 2" / "Position 2" im Wechselrichter-Konfigurationsmenü konfiguriert sein. ')]),_:1}),n(s,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=o=>r.updateConfiguration(o,"configuration.modbus_id"))},null,8,["model-value"]),n(s,{title:"Meter ID","model-value":a.configuration.meter_id,min:"1",max:"255","onUpdate:modelValue":e[1]||(e[1]=o=>r.updateConfiguration(o,"configuration.meter_id"))},null,8,["model-value"])])}const V=c(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/external_inverter.vue"]]);export{V as default};
diff --git a/web/settings/assets/index-cbcca7a0.js b/web/settings/assets/index-cbcca7a0.js
deleted file mode 100644
index 522ba28e5d..0000000000
--- a/web/settings/assets/index-cbcca7a0.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as b,k as r,l as d,m as w,n as k,p as h,q as n,u as p,x as _,y as v,z as u,A as m,B as C,D as $,E as S,F as K,G as x,I as M,J as Q,K as Y,L as f,M as Z,N as X,T as ee,O as te,P as W,Q as A,R as q,S as se,U as oe,V as ne,W as ae,X as ie,Y as le,Z as re}from"./vendor-94ac8c48.js";import{l as B,f as I,a as V,b as de,c as ce,d as ue,e as pe,F as O,g as E,h as me,i as fe,j as _e,k as he,m as ge,n as be,o as ve,p as we,q as ye,r as ke,s as Se,t as Ce,u as Be,v as Oe,w as $e,x as Te,y as xe,z as Ie,A as Ve,B as Pe,C as He,D as Me,E as De}from"./vendor-fortawesome-ad83e535.js";import"./vendor-bootstrap-9f620114.js";import{p as Ae,a as qe}from"./vendor-axios-dc63434e.js";import"./vendor-sortablejs-dbc23470.js";import"./vendor-jquery-f7104ff8.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))c(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&c(a)}).observe(document,{childList:!0,subtree:!0});function o(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function c(l){if(l.ep)return;l.ep=!0;const s=o(l);fetch(l.href,s)}})();const Ee={name:"OpenwbAlert",props:{subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}}};function Le(e,t,o,c,l,s){return r(),d("div",{class:k(["card-text alert","alert-"+o.subtype])},[w(e.$slots,"default")],2)}const je=b(Ee,[["render",Le],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAlert.vue"]]),We=Object.freeze(Object.defineProperty({__proto__:null,default:je},Symbol.toStringTag,{value:"Module"}));B.add(I,V,de,ce,ue,pe);const Re={name:"OpenwbArrayInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Array,default:()=>[]},noElementsMessage:{type:String,default:()=>"Keine Elemente zugeordnet."}},emits:["update:modelValue"],data(){return{newTag:"",showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},newTagValid:{get(){return this.newTag.length>0&&this.value.indexOf(this.newTag)==-1}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},addTag(){if(this.newTagValid){let e=this.value;e.push(this.newTag),e.sort(),this.value=e,this.newTag=""}this.$refs.tagInput.focus()},removeTag(e){let t=this.value;t.splice(e,1),this.value=t}},components:{FontAwesomeIcon:O}},Ne={class:"form-row mb-1"},Ue={class:"col-md-8"},ze={class:"form-row"},Fe={class:"input-group"},Ge={class:"input-group-prepend"},Je={class:"input-group-text"},Ke={class:"input-group-append"},Qe={class:"form-row tagList mt-1"},Ye={key:0,class:"noTag"},Ze={key:0,class:"form-row alert alert-info my-1 small"};function Xe(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",Ne,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",Ue,[n("div",ze,[n("div",Fe,[n("div",Ge,[n("div",Je,[m(a,{"fixed-width":"",icon:["fas","tag"]})])]),C(n("input",S({ref:"tagInput",type:"text",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>l.newTag=i)},e.$attrs,{onKeyup:t[2]||(t[2]=K((...i)=>s.addTag&&s.addTag(...i),["enter"]))}),null,16),[[$,l.newTag]]),n("div",Ke,[n("div",{class:k(["input-group-text",s.newTagValid?"bg-success clickable":"notClickable"]),onClick:t[3]||(t[3]=(...i)=>s.addTag&&s.addTag(...i))},[m(a,{"fixed-width":"",icon:["fas","plus"]})],2)])])]),n("div",Qe,[s.value.length==0?(r(),d("span",Ye,[m(a,{icon:["fas","info-circle"]}),p(" "+_(o.noElementsMessage),1)])):u("v-if",!0),(r(!0),d(x,null,M(s.value,(i,g)=>(r(),d("span",{class:"tag",key:g},[m(a,{icon:["fas","tag"]}),p(" "+_(i)+" ",1),m(a,{class:"clickable",icon:["fas","times-circle"],onClick:T=>s.removeTag(g)},null,8,["onClick"])]))),128))]),l.showHelp?(r(),d("span",Ze,[w(e.$slots,"help",{},void 0,!0)])):u("v-if",!0)])])}const et=b(Re,[["render",Xe],["__scopeId","data-v-9de93d37"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseArrayInput.vue"]]),tt=Object.freeze(Object.defineProperty({__proto__:null,default:et},Symbol.toStringTag,{value:"Module"}));const st={name:"OpenwbAvatar"},ot={class:"avatar"};function nt(e,t,o,c,l,s){return r(),d("div",ot,[w(e.$slots,"default",{},()=>[p("?")],!0)])}const at=b(st,[["render",nt],["__scopeId","data-v-06082a1a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAvatar.vue"]]),it=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"}));B.add(I,V,E);const lt={name:"OpenwbButtonGroupInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Number,Boolean]},buttons:Object},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},rt={class:"form-row mb-1"},dt={class:"col-md-8"},ct={class:"form-row"},ut={class:"btn-group btn-block btn-group-toggle"},pt=["value"],mt={key:0,class:"form-row alert alert-info my-1 small"};function ft(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",rt,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",dt,[n("div",ct,[n("div",ut,[(r(!0),d(x,null,M(o.buttons,i=>(r(),d("label",{key:i.value,class:k(["btn",[s.value==i.buttonValue?"active":"",i.class?i.class:"btn-outline-info"]])},[C(n("input",S({type:"radio","onUpdate:modelValue":t[1]||(t[1]=g=>s.value=g),value:i.buttonValue},e.$attrs),null,16,pt),[[Q,s.value]]),p(" "+_(i.text)+" ",1),m(a,{icon:["fas","check"],style:Y([s.value==i.buttonValue?"visibility: visible":"visibility: hidden"])},null,8,["style"])],2))),128))])]),l.showHelp?(r(),d("span",mt,[w(e.$slots,"help")])):u("v-if",!0)])])}const _t=b(lt,[["render",ft],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonGroupInput.vue"]]),ht=Object.freeze(Object.defineProperty({__proto__:null,default:_t},Symbol.toStringTag,{value:"Module"}));B.add(I,V);const gt={name:"OpenwbButtonInput",inheritAttrs:!1,props:{title:String,buttonText:String,disabled:{type:Boolean,default:!1},subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}},data(){return{showHelp:!1}},emits:["buttonClicked"],methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},handleClick(e){this.$emit("buttonClicked",e)}},components:{FontAwesomeIcon:O}},bt={class:"form-row mb-1"},vt={class:"col-md-8"},wt={class:"form-row"},yt={key:0,class:"form-row alert alert-info my-1 small"};function kt(e,t,o,c,l,s){const a=h("font-awesome-icon"),i=h("openwb-base-click-button");return r(),d("div",bt,[n("label",{onClick:t[0]||(t[0]=(...g)=>s.toggleHelp&&s.toggleHelp(...g)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",vt,[n("div",wt,[m(i,S({class:(o.disabled?"btn-outline-":"btn-")+o.subtype,disabled:o.disabled},e.$attrs,{onButtonClicked:s.handleClick}),{default:f(()=>[w(e.$slots,"default",{},()=>[p(_(o.buttonText),1)])]),_:3},16,["class","disabled","onButtonClicked"])]),l.showHelp?(r(),d("span",yt,[w(e.$slots,"help")])):u("v-if",!0)])])}const St=b(gt,[["render",kt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonInput.vue"]]),Ct=Object.freeze(Object.defineProperty({__proto__:null,default:St},Symbol.toStringTag,{value:"Module"}));B.add(me,fe);const Bt={name:"OpenwbCard",components:{FontAwesomeIcon:O},props:{title:{type:String,default:"# no title set #"},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark","pink"].indexOf(e)!==-1},default:"secondary"},collapsible:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1}},data(){return{isCollapsed:this.collapsible&&this.collapsed}},methods:{toggleBody(){this.collapsible===!0&&(this.isCollapsed=!this.isCollapsed)}}},Ot={class:"form-group mb-0"},$t={class:"form-row vaRow mb-0 py-2"},Tt={class:"col"},xt={class:"card-actions ml-4"},It={key:0,class:"card-actions mr-4"},Vt={key:0,class:"card-body"},Pt={key:1,class:"card-footer"};function Ht(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",{class:k(["card","border-"+o.subtype])},[n("div",{class:k(["card-header py-1","bg-"+o.subtype]),onClick:t[0]||(t[0]=(...i)=>s.toggleBody&&s.toggleBody(...i))},[n("div",Ot,[n("div",$t,[n("div",Tt,[w(e.$slots,"header",{collapsed:l.isCollapsed},()=>[p(_(o.title),1)])])])]),n("span",xt,[e.$slots.actions?(r(),d("span",It,[w(e.$slots,"actions",{collapsed:l.isCollapsed})])):u("v-if",!0),o.collapsible?(r(),v(a,{key:1,"fixed-width":"",icon:l.isCollapsed?["fas","chevron-right"]:["fas","chevron-down"]},null,8,["icon"])):u("v-if",!0)])],2),l.isCollapsed===!1?(r(),d("div",Vt,[w(e.$slots,"default")])):u("v-if",!0),e.$slots.footer&&l.isCollapsed===!1?(r(),d("div",Pt,[w(e.$slots,"footer")])):u("v-if",!0)],2)}const Mt=b(Bt,[["render",Ht],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCard.vue"]]),Dt=Object.freeze(Object.defineProperty({__proto__:null,default:Mt},Symbol.toStringTag,{value:"Module"}));B.add(I,V);const At={name:"OpenwbCheckboxInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Boolean}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},qt={class:"form-row mb-1"},Et={class:"col-md-8"},Lt={class:"form-row"},jt={key:0,class:"form-row alert alert-info my-1 small"};function Wt(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",qt,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",Et,[n("div",Lt,[C(n("input",S({class:"form-control",type:"checkbox","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16),[[Z,s.value]])]),l.showHelp?(r(),d("span",jt,[w(e.$slots,"help")])):u("v-if",!0)])])}const Rt=b(At,[["render",Wt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCheckboxInput.vue"]]),Nt=Object.freeze(Object.defineProperty({__proto__:null,default:Rt},Symbol.toStringTag,{value:"Module"}));const Ut={name:"OpenwbClickButton",props:{title:String},emits:["buttonClicked"],methods:{click(e){this.$emit("buttonClicked",e)}}};function zt(e,t,o,c,l,s){return r(),d("button",{type:"button",class:"btn btn-block",onClick:t[0]||(t[0]=X((...a)=>s.click&&s.click(...a),["prevent"]))},[w(e.$slots,"default",{},()=>[p(_(o.title),1)],!0)])}const Ft=b(Ut,[["render",zt],["__scopeId","data-v-2e9c095b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseClickButton.vue"]]),Gt=Object.freeze(Object.defineProperty({__proto__:null,default:Ft},Symbol.toStringTag,{value:"Module"}));B.add(_e,he);const Jt={name:"OpenwbCopyToClipboard",components:{FontAwesomeIcon:O},props:{tooltip:{type:String,default:"Wert kopieren"}},data(){return{clipboardApiAvailable:navigator.clipboard!=null,isCopied:!1}},methods:{click(){if(console.debug(this.$refs["slot-wrapper"].innerText),this.clipboardApiAvailable)navigator.clipboard.writeText(this.$refs["slot-wrapper"].innerText).then(()=>{this.isCopied=!0},()=>{console.error("copy to clipboard failed")});else{if(console.debug("clipboard api not supported/enabled, fallback to select"),window.getSelection){console.debug("using 'window.getSelection'");const e=window.getSelection(),t=document.createRange();t.selectNodeContents(this.$refs["slot-wrapper"]),e.removeAllRanges(),e.addRange(t);return}if(document.body.createTextRange){console.debug("using 'document.body.createTextRange'");const e=document.body.createTextRange();e.moveToElementText(this.$refs["slot-wrapper"]),e.select()}else console.warn("could not select text, unsupported browser")}}}},Kt=["title"];function Qt(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("span",{ref:"slot-wrapper",title:o.tooltip,class:"copy-me",onClick:t[0]||(t[0]=(...i)=>s.click&&s.click(...i))},[w(e.$slots,"default",{},void 0,!0),m(a,{"fixed-width":"",icon:l.isCopied?["fas","clipboard-check"]:["fas","clipboard"]},null,8,["icon"])],8,Kt)}const Yt=b(Jt,[["render",Qt],["__scopeId","data-v-81826ebe"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCopyToClipboard.vue"]]),Zt=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"}));B.add(I,V,E);const Xt={name:"OpenwbHeading",components:{FontAwesomeIcon:O},data(){return{showHelp:!1}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}}},es={class:"card-text card-text-heading"},ts={key:0,class:"actions"},ss={class:""},os={key:0,class:"form-row alert alert-info small"};function ns(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d(x,null,[n("div",es,[n("div",{class:"heading-text",onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i))},[w(e.$slots,"default",{},void 0,!0),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),e.$slots.actions?(r(),d("span",ts,[w(e.$slots,"actions",{},void 0,!0)])):u("v-if",!0)]),n("div",ss,[l.showHelp?(r(),d("span",os,[w(e.$slots,"help",{},void 0,!0)])):u("v-if",!0)])],64)}const as=b(Xt,[["render",ns],["__scopeId","data-v-cbe4e96e"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseHeading.vue"]]),is=Object.freeze(Object.defineProperty({__proto__:null,default:as},Symbol.toStringTag,{value:"Module"})),ls={name:"OpenwbModalDialog",emits:["modal-result"],props:{title:String,subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},buttons:{type:Array,default:void 0},footerAlignment:{type:String,validator:function(e){return["around","between","center","end","start"].indexOf(e)!==-1},default:"end"},preventClose:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},computed:{myButtons(){var e=[];return this.buttons!==void 0&&(e=this.buttons),this.preventClose||e.push({text:"Schließen",event:"close"}),e}},methods:{handleClick(e){e.stopPropagation();let t=e.target.getAttribute("data-event");t===null&&(t="close"),(t!="close"||!this.preventClose)&&this.$emit("modal-result",t)}}},rs=n("div",{class:"modal-backdrop fade show"},null,-1),ds={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},cs={class:"modal-content"},us={class:"modal-title"},ps={class:"modal-body"},ms=["data-event"];function fs(e,t,o,c,l,s){return o.show?(r(),v(ee,{key:0,to:"body"},[rs,n("div",{class:"modal fade d-block show",role:"dialog",onClick:t[2]||(t[2]=(...a)=>s.handleClick&&s.handleClick(...a))},[n("div",ds,[n("div",cs,[u(" modal header "),n("div",{class:k(["modal-header","bg-"+o.subtype])},[n("h4",us,_(o.title),1),o.preventClose?u("v-if",!0):(r(),d("button",{key:0,type:"button",class:"close",onClick:t[0]||(t[0]=(...a)=>s.handleClick&&s.handleClick(...a))}," × "))],2),u(" modal body "),n("div",ps,[w(e.$slots,"default",{},()=>[p("# Body #")])]),u(" modal footer "),s.myButtons.length>0?(r(),d("div",{key:0,class:k(["modal-footer d-flex","justify-content-"+o.footerAlignment])},[(r(!0),d(x,null,M(s.myButtons,a=>(r(),d("button",{key:a.text,type:"button",class:k(["btn",a.subtype?"btn-"+a.subtype:"btn-secondary"]),"data-dismiss":"modal","data-event":a.event?a.event:"close",onClick:t[1]||(t[1]=(...i)=>s.handleClick&&s.handleClick(...i))},_(a.text),11,ms))),128))],2)):u("v-if",!0)])])])])):u("v-if",!0)}const _s=b(ls,[["render",fs],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseModalDialog.vue"]]),hs=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"}));B.add(I,V,ge);const gs={name:"OpenwbNumberInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Number},unit:String,emptyValue:{required:!1,default:null}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){(isNaN(e)||typeof e!="number")&&(e=this.emptyValue),this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},bs={class:"form-row mb-1"},vs={class:"col-md-8"},ws={class:"form-row"},ys={class:"input-group"},ks={class:"input-group-prepend"},Ss={class:"input-group-text"},Cs={key:0,class:"input-group-append"},Bs={class:"input-group-text"},Os={key:0,class:"form-row alert alert-info my-1 small"};function $s(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",bs,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",vs,[n("div",ws,[n("div",ys,[n("div",ks,[n("div",Ss,[m(a,{"fixed-width":"",icon:["fas","calculator"]})])]),C(n("input",S({type:"number",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16),[[$,s.value,void 0,{number:!0}]]),o.unit?(r(),d("div",Cs,[n("div",Bs,_(o.unit),1)])):u("v-if",!0)])]),l.showHelp?(r(),d("span",Os,[w(e.$slots,"help",{},void 0,!0)])):u("v-if",!0)])])}const Ts=b(gs,[["render",$s],["__scopeId","data-v-c2fb7eef"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseNumberInput.vue"]]),xs=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"}));B.add(I,V,be,ve);const Is={name:"OpenwbRangeInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Number},unit:String,min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},labels:{type:Array}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{label(){var e;return this.labels&&this.sliderValue!=null?this.sliderValue<this.labels.length?e=this.labels[this.sliderValue].label:console.error("index out of bounds: "+this.sliderValue):e=this.sliderValue,typeof e=="number"&&(e=e.toLocaleString(void 0,{minimumFractionDigits:this.precision,maximumFractionDigits:this.precision}),this.unit&&(e+=" "+this.unit)),e},precision(){if(!isFinite(this.step))return 0;for(var e=1,t=0;Math.round(this.step*e)/e!==this.step;)e*=10,t++;return t},sliderValue:{get(){if(this.labels){var e=void 0;for(let t=0;t<this.labels.length;t++)if(this.labels[t].value==this.modelValue){e=t;break}return e===void 0&&this.modelValue!==void 0?(console.warn("sliderValue: not found in values: ",this.modelValue,"using min as default: ",this.min),this.min):e}return this.modelValue},set(e){if(this.labels){var t=this.labels[e].value;this.$emit("update:modelValue",t)}else this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},increment(){var e=Math.min(this.sliderValue+this.step,this.max);this.sliderValue=Math.round(e*Math.pow(10,this.precision))/Math.pow(10,this.precision)},decrement(){var e=Math.max(this.sliderValue-this.step,this.min);this.sliderValue=Math.round(e*Math.pow(10,this.precision))/Math.pow(10,this.precision)}},components:{FontAwesomeIcon:O}},Vs={class:"form-row mb-1"},Ps={class:"col-md-8"},Hs={class:"form-row vaRow mb-1"},Ms={key:0,class:"col-2 col-form-label valueLabel"},Ds={class:"col"},As=["min","max","step"],qs={key:0,class:"form-row alert alert-info my-1 small"},Es={class:"col"};function Ls(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",Vs,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",Ps,[n("div",Hs,[s.label?(r(),d("label",Ms,_(s.label),1)):u("v-if",!0),n("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[1]||(t[1]=(...i)=>s.decrement&&s.decrement(...i))},[m(a,{icon:["fas","step-backward"]})]),n("div",Ds,[C(n("input",S({type:"range",class:"form-control-range rangeInput",min:o.min,max:o.max,step:o.step,"onUpdate:modelValue":t[2]||(t[2]=i=>s.sliderValue=i)},e.$attrs),null,16,As),[[$,s.sliderValue,void 0,{number:!0}]])]),n("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[3]||(t[3]=(...i)=>s.increment&&s.increment(...i))},[m(a,{icon:["fas","step-forward"]})])]),l.showHelp?(r(),d("div",qs,[n("div",Es,[w(e.$slots,"help",{},void 0,!0)])])):u("v-if",!0)])])}const js=b(Is,[["render",Ls],["__scopeId","data-v-449fb0a5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseRangeInput.vue"]]),Ws=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"}));B.add(I,V);const Rs={name:"OpenwbSelectInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Number,Array]},groups:Object,options:Object,notSelected:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},Ns={class:"form-row mb-1"},Us={class:"col-md-8"},zs={class:"form-row"},Fs={key:0,value:void 0,disabled:""},Gs=["value"],Js=["label"],Ks=["value"],Qs={key:0,class:"form-row alert alert-info my-1 small"};function Ys(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",Ns,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",Us,[n("div",zs,[C(n("select",S({class:"col form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),[o.notSelected!==void 0?(r(),d("option",Fs," -- "+_(o.notSelected)+" -- ",1)):u("v-if",!0),u(" select elements without option groups "),(r(!0),d(x,null,M(o.options,i=>(r(),d("option",{key:i.value,value:i.value},_(i.text),9,Gs))),128)),u(" option groups with options "),(r(!0),d(x,null,M(o.groups,i=>(r(),d("optgroup",{key:i.label,label:i.label},[(r(!0),d(x,null,M(i.options,g=>(r(),d("option",{key:g.value,value:g.value},_(g.text),9,Ks))),128))],8,Js))),128))],16),[[te,s.value]]),w(e.$slots,"append")]),l.showHelp?(r(),d("span",Qs,[w(e.$slots,"help")])):u("v-if",!0)])])}const Zs=b(Rs,[["render",Ys],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSelectInput.vue"]]),Xs=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"}));B.add(E,we,ye);const eo={name:"OpenwbSubmitButtons",components:{FontAwesomeIcon:O},props:{formName:{type:String,default:void 0},hideReset:{type:Boolean,default:!1},hideDefaults:{type:Boolean,default:!0}},data(){return{showModalSave:!1,showModalReset:!1,showModalDefaults:!1}},emits:["reset","defaults","save"],methods:{showResetModal(){this.showModalReset=!0},handleModalReset(e){this.showModalReset=!1,e=="confirm"&&this.$emit("reset")},showDefaultsModal(){this.showModalDefaults=!0},handleModalDefaults(e){this.showModalDefaults=!1,e=="confirm"&&this.$emit("defaults")},saveSettings(){if(this.formName){if(!document.forms[this.formName].reportValidity()){console.debug("form invalid");return}}else console.debug("no form to validate");this.showModalSave=!0,this.$emit("save"),window.setTimeout(()=>this.showModalSave=!1,3e3)}}},to={class:"row justify-content-center mb-1"},so={class:"col-md-4 d-flex py-1 justify-content-center"},oo={key:0,class:"col-md-4 d-flex py-1 justify-content-center"},no={key:1,class:"col-md-4 d-flex py-1 justify-content-center"};function ao(e,t,o,c,l,s){const a=h("openwb-base-modal-dialog"),i=h("font-awesome-icon");return r(),d(x,null,[m(a,{show:l.showModalSave,title:"Speichern",subtype:"success",preventClose:!0},{default:f(()=>[p(" Einstellungen werden gespeichert... ")]),_:1},8,["show"]),m(a,{show:l.showModalReset,title:"Änderungen verwerfen",subtype:"warning",buttons:[{text:"Ok",event:"confirm",subtype:"warning"}],onModalResult:s.handleModalReset},{default:f(()=>[p(" Wollen Sie die nicht gespeicherten Änderungen wirklich verwerfen? ")]),_:1},8,["show","onModalResult"]),m(a,{show:l.showModalDefaults,title:"Werkseinstellungen",subtype:"danger",buttons:[{text:"Ok",event:"confirm",subtype:"danger"}],onModalResult:s.handleModalDefaults},{default:f(()=>[p(" Wollen Sie wirklich alle Werte dieser Seite auf die Werkseinstellungen zurücksetzen? ")]),_:1},8,["show","onModalResult"]),n("div",to,[n("div",so,[n("button",{id:"saveSettingsBtn",type:"button",class:"btn btn-block btn-success",onClick:t[0]||(t[0]=(...g)=>s.saveSettings&&s.saveSettings(...g))},[p(" Speichern "),m(i,{"fixed-width":"",icon:["fas","check"]})])]),o.hideReset?u("v-if",!0):(r(),d("div",oo,[n("button",{id:"modalResetBtn",type:"button",class:"btn btn-block btn-warning",onClick:t[1]||(t[1]=(...g)=>s.showResetModal&&s.showResetModal(...g))},[p(" Änderungen verwerfen "),m(i,{"fixed-width":"",icon:["fas","undo"]})])])),o.hideDefaults?u("v-if",!0):(r(),d("div",no,[n("button",{id:"modalDefaultsBtn",type:"button",class:"btn btn-block btn-danger",onClick:t[2]||(t[2]=(...g)=>s.showDefaultsModal&&s.showDefaultsModal(...g))},[p(" Werkseinstellungen "),m(i,{"fixed-width":"",icon:["fas","times"]})])]))])],64)}const io=b(eo,[["render",ao],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSubmitButtons.vue"]]),lo=Object.freeze(Object.defineProperty({__proto__:null,default:io},Symbol.toStringTag,{value:"Module"}));B.add(I,V,ke,Se,Ce,Be,Oe,$e,Te,xe,Ie,Ve,Pe,He);const ro={name:"OpenwbTextInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Object]},subtype:{validator:function(e){return["text","email","host","url","user","json","password","time","date","month","year"].indexOf(e)!==-1},default:"text"},pattern:String,unit:String,emptyValue:{required:!1,default:null},showQuickButtons:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{showHelp:!1,showPassword:!1,inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.warn("returning invalid String"),this.tempValue):JSON.stringify(this.tempValue):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch{console.error("parsing JSON failed: "+e),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else e==""&&(console.log(this.emptyValue),e=this.emptyValue),this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},togglePassword(){this.showPassword=!this.showPassword},modify(e){var t,o,c=new Date(this.modelValue);switch(this.subtype){case"date":c.setDate(c.getDate()+e),o=String(c.getFullYear())+"-"+String(c.getMonth()+1).padStart(2,"0")+"-"+String(c.getDate()).padStart(2,"0"),t=this.$refs.dateInput;break;case"month":c.setMonth(c.getMonth()+e),o=String(c.getFullYear())+"-"+String(c.getMonth()+1).padStart(2,"0"),t=this.$refs.monthInput;break;case"year":c.setYear(c.getFullYear()+e),o=String(c.getFullYear()),t=this.$refs.yearInput;break;default:console.warn(`cannot modify input of subtype '${this.subtype}'`);return}o>t.max||o<t.min||(this.value=o)}},components:{FontAwesomeIcon:O}},N=e=>(A("data-v-6927d479"),e=e(),q(),e),co={class:"form-row mb-1"},uo={class:"col-md-8"},po={class:"form-row"},mo={class:"input-group"},fo={class:"input-group-prepend"},_o={class:"input-group-text"},ho=["pattern"],go=["pattern"],bo=["type","pattern"],vo=["type"],wo={class:"input-group-text"},yo={key:10,class:"input-group-append"},ko={class:"input-group-text"},So=N(()=>n("div",{class:"input-group-text"},"-",-1)),Co=[So],Bo=N(()=>n("div",{class:"input-group-text"},"+",-1)),Oo=[Bo],$o={key:0,class:"form-row alert alert-info my-1 small"};function To(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",co,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",uo,[n("div",po,[n("div",mo,[n("div",fo,[n("div",_o,[o.subtype=="text"?(r(),v(a,{key:0,"fixed-width":"",icon:["fas","keyboard"]})):u("v-if",!0),o.subtype=="email"?(r(),v(a,{key:1,"fixed-width":"",icon:["fas","envelope"]})):u("v-if",!0),o.subtype=="host"?(r(),v(a,{key:2,"fixed-width":"",icon:["fas","network-wired"]})):u("v-if",!0),o.subtype=="url"?(r(),v(a,{key:3,"fixed-width":"",icon:["fas","globe"]})):u("v-if",!0),o.subtype=="user"?(r(),v(a,{key:4,"fixed-width":"",icon:["fas","user"]})):u("v-if",!0),o.subtype=="json"?(r(),v(a,{key:5,"fixed-width":"",icon:["fas","code"]})):u("v-if",!0),o.subtype=="password"?(r(),v(a,{key:6,"fixed-width":"",icon:l.showPassword?["fas","unlock"]:["fas","lock"]},null,8,["icon"])):u("v-if",!0),o.subtype=="time"?(r(),v(a,{key:7,"fixed-width":"",icon:["fas","clock"]})):u("v-if",!0),o.subtype=="date"||o.subtype=="month"||o.subtype=="year"?(r(),v(a,{key:8,"fixed-width":"",icon:["fas","calendar-day"]})):u("v-if",!0)])]),["text","user"].includes(o.subtype)?C((r(),d("input",S({key:0,type:"text",class:["form-control",{invalid:l.inputInvalid}],"onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs,{pattern:o.pattern}),null,16,ho)),[[$,s.value]]):u("v-if",!0),o.subtype=="json"?C((r(),d("input",S({key:1,ref:"jsonInput",type:"text",class:"form-control","onUpdate:modelValue":t[2]||(t[2]=i=>s.value=i)},e.$attrs,{pattern:o.pattern}),null,16,go)),[[$,s.value]]):u("v-if",!0),o.subtype=="password"?C((r(),d("input",S({key:2,type:l.showPassword?"text":"password",class:"form-control","onUpdate:modelValue":t[3]||(t[3]=i=>s.value=i)},e.$attrs,{pattern:o.pattern}),null,16,bo)),[[W,s.value]]):u("v-if",!0),o.subtype=="host"?C((r(),d("input",S({key:3,type:"text",class:"form-control","onUpdate:modelValue":t[4]||(t[4]=i=>s.value=i)},e.$attrs),null,16)),[[$,s.value]]):u("v-if",!0),["email","url"].includes(o.subtype)?C((r(),d("input",S({key:4,type:o.subtype,class:"form-control","onUpdate:modelValue":t[5]||(t[5]=i=>s.value=i)},e.$attrs),null,16,vo)),[[W,s.value]]):u("v-if",!0),o.subtype=="password"?(r(),d("div",{key:5,class:"input-group-append clickable",onClick:t[6]||(t[6]=(...i)=>s.togglePassword&&s.togglePassword(...i))},[n("div",wo,[m(a,{"fixed-width":"",icon:l.showPassword?["far","eye"]:["far","eye-slash"]},null,8,["icon"])])])):u("v-if",!0),o.subtype=="time"?C((r(),d("input",S({key:6,type:"time",class:"form-control","onUpdate:modelValue":t[7]||(t[7]=i=>s.value=i)},e.$attrs),null,16)),[[$,s.value]]):u("v-if",!0),o.subtype=="date"?C((r(),d("input",S({key:7,type:"date",ref:"dateInput",class:"form-control","onUpdate:modelValue":t[8]||(t[8]=i=>s.value=i)},e.$attrs),null,16)),[[$,s.value]]):u("v-if",!0),o.subtype=="month"?C((r(),d("input",S({key:8,type:"month",ref:"monthInput",class:"form-control","onUpdate:modelValue":t[9]||(t[9]=i=>s.value=i)},e.$attrs),null,16)),[[$,s.value]]):u("v-if",!0),o.subtype=="year"?C((r(),d("input",S({key:9,type:"number",ref:"yearInput",class:"form-control","onUpdate:modelValue":t[10]||(t[10]=i=>s.value=i)},e.$attrs),null,16)),[[$,s.value]]):u("v-if",!0),o.unit?(r(),d("div",yo,[n("div",ko,_(o.unit),1)])):u("v-if",!0),o.showQuickButtons&&(o.subtype=="date"||o.subtype=="month"||o.subtype=="year")?(r(),d("div",{key:11,class:"input-group-append clickable",onClick:t[11]||(t[11]=i=>s.modify(-1))},Co)):u("v-if",!0),o.showQuickButtons&&(o.subtype=="date"||o.subtype=="month"||o.subtype=="year")?(r(),d("div",{key:12,class:"input-group-append clickable",onClick:t[12]||(t[12]=i=>s.modify(1))},Oo)):u("v-if",!0)])]),l.showHelp?(r(),d("span",$o,[w(e.$slots,"help",{},void 0,!0)])):u("v-if",!0)])])}const xo=b(ro,[["render",To],["__scopeId","data-v-6927d479"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextInput.vue"]]),Io=Object.freeze(Object.defineProperty({__proto__:null,default:xo},Symbol.toStringTag,{value:"Module"}));B.add(I,V);const Vo={name:"OpenwbTextareaInput",inheritAttrs:!1,props:{title:String,modelValue:{String,Object},subtype:{validator:function(e){return["text","json"].indexOf(e)!==-1},default:"text"}},emits:["update:modelValue"],data(){return{showHelp:!1,inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.debug("returning invalid String"),this.tempValue):JSON.stringify(this.tempValue,void 0,2):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch{console.warn("parsing JSON failed: "+e),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else this.$emit("update:modelValue",e)}},length:{get(){return this.value!==void 0?this.value.length:0}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},Po={class:"form-row mb-1"},Ho={class:"col-md-8"},Mo={class:"form-row"},Do={class:"input-group"},Ao={class:"input-group-prepend"},qo={class:"input-group-text"},Eo={key:2,class:"input-group-append"},Lo={class:"input-group-text"},jo={class:"form-text text-muted text-right"},Wo={key:0,class:"form-row alert alert-info my-1 small"};function Ro(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",Po,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",Ho,[n("div",Mo,[n("div",Do,[n("div",Ao,[n("div",qo,[o.subtype=="text"?(r(),v(a,{key:0,"fixed-width":"",icon:["fas","keyboard"]})):u("v-if",!0),o.subtype=="json"?(r(),v(a,{key:1,"fixed-width":"",icon:["fas","code"]})):u("v-if",!0)])]),o.subtype==="json"?C((r(),d("textarea",S({key:0,ref:"jsonInput",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16)),[[$,s.value,void 0,{lazy:!0}]]):C((r(),d("textarea",S({key:1,class:"form-control","onUpdate:modelValue":t[2]||(t[2]=i=>s.value=i)},e.$attrs),null,16)),[[$,s.value]]),e.$attrs.maxlength?(r(),d("div",Eo,[n("div",Lo,[n("small",jo,_(s.length)+" / "+_(e.$attrs.maxlength),1)])])):u("v-if",!0)])]),l.showHelp?(r(),d("span",Wo,[w(e.$slots,"help",{},void 0,!0)])):u("v-if",!0)])])}const No=b(Vo,[["render",Ro],["__scopeId","data-v-3d93046b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextarea.vue"]]),Uo=Object.freeze(Object.defineProperty({__proto__:null,default:No},Symbol.toStringTag,{value:"Module"}));const zo={name:"OpenwbToast",emits:["dismiss"],props:{topic:{type:String,required:!0},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},source:{validator:function(e){return["system","client","command"].indexOf(e)!==-1}},timestamp:{type:Number}},data(){return{handle:void 0,relativeTime:void 0}},methods:{dismiss(){this.$emit("dismiss",{topic:this.topic})},updateRelativeTime(){const e={year:31536e6,month:2628e6,day:864e5,hour:36e5,minute:6e4,second:1e3};var t=new Intl.RelativeTimeFormat("de",{numeric:"auto"});const o=new Date,c=this.timestamp*1e3-o;for(var l in e)if(Math.abs(c)>e[l]){this.relativeTime=t.format(Math.round(c/e[l]),l);break}}},mounted(){this.handle=window.setInterval(this.updateRelativeTime,1e3)},unmounted(){window.clearInterval(this.handle)}},U=e=>(A("data-v-c51b5764"),e=e(),q(),e),Fo=U(()=>n("strong",{class:"pr-2 mr-auto"},"OpenWB",-1)),Go={key:0,class:"time-diff"},Jo=U(()=>n("span",{"aria-hidden":"true"},"×",-1)),Ko=[Jo],Qo={class:"toast-body"};function Yo(e,t,o,c,l,s){return r(),d("div",{class:k(["toast","border-"+o.subtype]),role:"alert"},[n("div",{class:k(["toast-header","bg-"+o.subtype])},[Fo,o.timestamp?(r(),d("small",Go,_(l.relativeTime),1)):u("v-if",!0),n("button",{type:"button",class:"ml-2 mb-1 close","data-dismiss":"toast","aria-label":"Close",onClick:t[0]||(t[0]=(...a)=>s.dismiss&&s.dismiss(...a))},Ko)],2),n("div",Qo,[w(e.$slots,"default",{},void 0,!0)])],2)}const Zo=b(zo,[["render",Yo],["__scopeId","data-v-c51b5764"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseToast.vue"]]),Xo=Object.freeze(Object.defineProperty({__proto__:null,default:Zo},Symbol.toStringTag,{value:"Module"}));B.add(Me);const en={name:"OpenwbNavBar",components:{FontAwesomeIcon:O},computed:{nodeEnv(){return"development"}},watch:{$route(){this.$refs.collapsibleNavbar.classList.remove("show"),this.$refs.navbarButton.classList.add("collapsed"),this.$refs.navbarButton.setAttribute("aria-expanded",!1)}}},P=e=>(A("data-v-e7a6d0c0"),e=e(),q(),e),tn={class:"navbar navbar-expand-lg bg-dark navbar-dark fixed-top"},sn=P(()=>n("a",{class:"navbar-brand",href:"/openWB/web/"},[n("span",null,"openWB")],-1)),on={class:"navbar-toggler",type:"button","data-toggle":"collapse","data-target":"#collapsibleNavbar",ref:"navbarButton"},nn=P(()=>n("span",{class:"navbar-toggler-icon"},null,-1)),an=[nn],ln={class:"collapse navbar-collapse",id:"collapsibleNavbar",ref:"collapsibleNavbar"},rn={class:"navbar-nav"},dn={class:"nav-item"},cn={class:"nav-item dropdown nav-separator-after"},un=P(()=>n("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Auswertungen ",-1)),pn={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},mn={class:"nav-item dropdown"},fn=P(()=>n("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Einstellungen ",-1)),_n={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},hn={class:"nav-item dropdown"},gn=P(()=>n("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Ladeeinstellungen ",-1)),bn={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},vn={class:"nav-item dropdown"},wn=P(()=>n("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Konfiguration ",-1)),yn={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},kn=P(()=>n("div",{class:"dropdown-divider"},null,-1)),Sn=P(()=>n("a",{href:"modules/legacy_smart_home/smarthomeconfig.php",class:"dropdown-item",target:"_blank"}," SmartHome ",-1)),Cn={class:"nav-item dropdown"},Bn=P(()=>n("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," System ",-1)),On={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},$n={key:0,class:"nav-item dropdown nav-separator-before"},Tn=P(()=>n("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Beispiele ",-1)),xn={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},In={class:"nav-item nav-separator-before"},Vn={class:"nav-link",href:"https://github.com/openWB/core/wiki",target:"_blank"};function Pn(e,t,o,c,l,s){const a=h("router-link"),i=h("font-awesome-icon");return r(),d("nav",tn,[sn,n("button",on,an,512),n("div",ln,[n("ul",rn,[n("li",dn,[m(a,{to:"/Status",class:"nav-link","active-class":"active disabled"},{default:f(()=>[p(" Status ")]),_:1})]),n("li",cn,[un,n("div",pn,[m(a,{to:"/Logging/ChargeLog",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Ladeprotokoll ")]),_:1}),m(a,{to:"/Logging/Chart",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Diagramme ")]),_:1})])]),n("li",mn,[fn,n("div",_n,[m(a,{to:"/GeneralConfig",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Allgemein ")]),_:1}),m(a,{to:"/OptionalComponents",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Optionale Hardware ")]),_:1})])]),n("li",hn,[gn,n("div",bn,[m(a,{to:"/GeneralChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Übergreifendes ")]),_:1}),m(a,{to:"/InstantChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Sofortladen ")]),_:1}),m(a,{to:"/PVChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" PV-Laden ")]),_:1}),m(a,{to:"/TimeChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Zeitladen ")]),_:1}),m(a,{to:"/ScheduledChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Zielladen ")]),_:1})])]),n("li",vn,[wn,n("div",yn,[m(a,{to:"/HardwareInstallation",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Geräte und Komponenten ")]),_:1}),m(a,{to:"/LoadManagementConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Lastmanagement ")]),_:1}),m(a,{to:"/ChargePointInstallation",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Ladepunkte ")]),_:1}),m(a,{to:"/VehicleConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Fahrzeuge ")]),_:1}),kn,Sn])]),n("li",Cn,[Bn,n("div",On,[m(a,{to:"/System/CloudConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" openWB Cloud ")]),_:1}),m(a,{to:"/System/MqttBridgeConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" MQTT-Brücken ")]),_:1}),m(a,{to:"/System/DebugConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Fehlersuche ")]),_:1}),m(a,{to:"/System/Support",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Support ")]),_:1}),m(a,{to:"/System/DataManagement",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Datenverwaltung ")]),_:1}),m(a,{to:"/System/SystemConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" System ")]),_:1}),m(a,{to:"/System/LegalSettings",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Rechtliches ")]),_:1})])]),s.nodeEnv!=="production"?(r(),d("li",$n,[Tn,n("div",xn,[m(a,{to:"/TestingStore",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" VUEX Store ")]),_:1})])])):u("v-if",!0),n("li",In,[n("a",Vn,[p(" Wiki "),m(i,{"fixed-width":"",icon:["fas","external-link-alt"]})])])])],512)])}const Hn=b(en,[["render",Pn],["__scopeId","data-v-e7a6d0c0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageNavbar.vue"]]);const Mn={name:"OpenwbPageFooter"},Dn={id:"footer",class:"footer bg-dark text-light font-small"},An={class:"container text-center"};function qn(e,t,o,c,l,s){return r(),d("footer",Dn,[n("div",An,[n("small",null," Sie befinden sich hier: Einstellungen / "+_(e.$route.meta.heading),1)])])}const En=b(Mn,[["render",qn],["__scopeId","data-v-3c9a239a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageFooter.vue"]]);B.add(De);const Ln={name:"OpenwbDonationBanner",components:{FontAwesomeIcon:O}},jn={class:"mt-3 alert alert-dark text-center"},Wn=n("br",null,null,-1),Rn=n("br",null,null,-1),Nn={action:"https://www.paypal.com/cgi-bin/webscr",method:"post",target:"_blank"},Un=n("input",{type:"hidden",name:"cmd",value:"_s-xclick"},null,-1),zn=n("input",{type:"hidden",name:"hosted_button_id",value:"2K8C4Y2JTGH7U"},null,-1),Fn={type:"submit",class:"btn btn-primary"};function Gn(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",jn,[p(" Open Source made with love!"),Wn,p(" Jede Spende hilft die Weiterentwicklung von openWB voranzutreiben"),Rn,n("form",Nn,[Un,zn,n("button",Fn,[p(" Spenden "),m(a,{icon:["fab","paypal"]})])])])}const Jn=b(Ln,[["render",Gn],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageDonationBanner.vue"]]),Kn={name:"ComponentState",data(){return{mqttTopicsToSubscribe:[]}},emits:["reset","defaults","save"],computed:{weekdays(){return["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"]},chargeModes(){return["instant_charging","pv_charging","scheduled_charging","time_charging","standby","stop"]},mqttClientId(){return this.$root.mqttClientId}},methods:{updateState(e,t,o=void 0){console.debug("updateState:",e,t,o),this.$store.commit({type:"updateTopic",topic:e,objectPath:o,payload:t})},getWildcardIndexList(e,t=!1){let o=e;t||(o="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$");let c=Object.keys(this.$store.state.mqtt).filter(l=>l.match(o));return c.forEach((l,s,a)=>{a[s]=parseInt(l.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,""))}),c},getWildcardTopics(e,t=!1){let o=e;return t||(o="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$"),Object.keys(this.$store.state.mqtt).filter(c=>c.match(o)).reduce((c,l)=>({...c,[l]:this.$store.state.mqtt[l]}),{})},formatDate(e,t={year:"numeric",month:"2-digit",day:"2-digit"}){return new Date(e).toLocaleDateString(void 0,t)},formatNumber(e,t=0,o=t,c=1){return(e*c).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:o})},formatNumberTopic(e,t=0,o=t,c=1){return this.$store.state.mqtt[e]?this.formatNumber(this.$store.state.mqtt[e],t,o,c):"-"},formatPhaseArrayNumberTopic(e,t=0,o=t,c=1){return this.$store.state.mqtt[e]?this.$store.state.mqtt[e].map(l=>this.formatNumber(l,t,o,c)).join(" / "):"- / - / -"},translateChargeMode(e){switch(e){case"instant_charging":return"Sofort";case"pv_charging":return"PV";case"scheduled_charging":return"Zielladen";case"time_charging":return"Zeitladen";case"standby":return"Standby";case"stop":return"Stop";default:return console.warn("unknown charge mode:",e),e}}},mounted(){this.mqttTopicsToSubscribe.push("openWB/log/"+this.mqttClientId+"/data"),this.mqttTopicsToSubscribe.forEach(e=>{e.includes("#")||e.includes("+")?console.debug("skipping init of wildcard topic:",e):Object.keys(this.$store.state.mqtt).includes(e)?console.error("multiple subscriptions of topic!",e):this.$store.commit("addTopic",{topic:e,payload:void 0})}),this.$root.doSubscribe(this.mqttTopicsToSubscribe)},unmounted(){this.$root.doUnsubscribe(this.mqttTopicsToSubscribe),this.mqttTopicsToSubscribe.forEach(e=>{e.includes("#")||e.includes("+")?(console.debug("expanding wildcard topic:",e),Object.keys(this.getWildcardTopics(e)).forEach(t=>{console.debug("removing wildcardTopic:",t),this.$store.commit("removeTopic",t)})):this.$store.commit("removeTopic",e)})}},z=b(Kn,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/mixins/ComponentState.vue"]]);const Qn={name:"OpenwbPageMessages",mixins:[z],data(){return{mqttTopicsToSubscribe:["openWB/system/messages/+","openWB/command/"+this.$root.mqttClientId+"/messages/+","openWB/command/"+this.$root.mqttClientId+"/error"]}},computed:{messages(){const e=[];return this.alertData&&e.push({topic:"openWB/command/"+this.$root.mqttClientId+"/error",source:"command",type:"danger",message:`Bei der Verarbeitung des Befehls '<span class="font-weight-bold">`+this.alertData.command+`</span>' mit den Parametern '<span class="font-weight-bold">`+this.alertData.data+"</span>' ist ein Fehler aufgetreten:<br /><pre class='font-weight-bold'>"+this.alertData.error+"</pre>"}),this.systemMessages.forEach(t=>{e.push(t)}),this.clientMessages.forEach(t=>{e.push(t)}),e},alertData(){return this.$store.state.mqtt["openWB/command/"+this.$root.mqttClientId+"/error"]},systemMessages(){let e=this.getWildcardTopics("openWB/system/messages/+");var t=[];for(const[o,c]of Object.entries(e))t.push({topic:o,...c});return t},clientMessages(){let e=this.getWildcardTopics("openWB/command/"+this.$root.mqttClientId+"/messages/+");var t=[];for(const[o,c]of Object.entries(e))t.push({topic:o,...c});return t}},methods:{clearTopic(e){this.$root.doPublish(e,void 0)},dismissError(){this.clearTopic("openWB/command/"+this.$root.mqttClientId+"/error")},dismiss(e){console.debug("removing message: "+e.topic),this.clearTopic(e.topic)}}},Yn={class:"openwb-toast position-fixed bottom-0 right-0 p-3"},Zn=["innerHTML"];function Xn(e,t,o,c,l,s){const a=h("openwb-base-toast");return r(),d("div",Yn,[(r(!0),d(x,null,M(s.messages,i=>(r(),v(a,{key:i.topic,topic:i.topic,source:i.source,subtype:i.type,timestamp:i.timestamp,onDismiss:s.dismiss},{default:f(()=>[n("span",{innerHTML:i.message},null,8,Zn)]),_:2},1032,["topic","source","subtype","timestamp","onDismiss"]))),128))])}const ea=b(Qn,[["render",Xn],["__scopeId","data-v-2c25f0d0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageMessages.vue"]]),ta={name:"OpenwbPageBlocker",mixins:[z],data(){return{mqttTopicsToSubscribe:["openWB/system/boot_done","openWB/system/update_in_progress"]}},computed:{title(){return this.bootInProgress||this.updateInProgress?"openWB ist noch nicht bereit":this.reloadRequired?"Neues Laden der Seite erforderlich":"???"},myButtons(){return!(this.bootInProgress||this.updateInProgress)&&this.reloadRequired?[{text:"Jetzt neu laden",subtype:"success",event:"reload"}]:[]},bootInProgress(){return this.$store.state.mqtt["openWB/system/boot_done"]==null?!0:!this.$store.state.mqtt["openWB/system/boot_done"]},updateInProgress(){return this.$store.state.mqtt["openWB/system/update_in_progress"]==null?!1:this.$store.state.mqtt["openWB/system/update_in_progress"]},reloadRequired(){return this.$store.state.local.reloadRequired},showModalBlocker(){return this.bootInProgress||this.updateInProgress||this.reloadRequired}},methods:{handleModalResult(e){e=="reload"?location.reload():console.warn("unknown event",e)}}},sa={class:"openwb-blocker"},oa={key:0},na={key:1},aa={key:2},ia={key:3};function la(e,t,o,c,l,s){const a=h("openwb-base-modal-dialog");return r(),d("div",sa,[m(a,{show:s.showModalBlocker,title:s.title,subtype:"dark",preventClose:!0,buttons:s.myButtons,onModalResult:t[0]||(t[0]=i=>s.handleModalResult(i))},{default:f(()=>[s.bootInProgress?(r(),d("p",oa," Der Systemstart ist noch nicht abgeschlossen. ")):u("v-if",!0),s.updateInProgress?(r(),d("p",na," Es wird eine Systemaktualisierung ausgeführt. ")):u("v-if",!0),!(s.bootInProgress||s.updateInProgress)&&s.reloadRequired?(r(),d("p",aa," Bitte die Seite neu laden. ")):(r(),d("p",ia,"Bitte warten..."))]),_:1},8,["show","title","buttons"])])}const ra=b(ta,[["render",la],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageBlocker.vue"]]);const da={name:"settings-app",components:{NavBar:Hn,PageFooter:En,DonationBanner:Jn,Messages:ea,Blocker:ra},data(){return{client:{connected:!1},connection:{protocol:location.protocol=="https:"?"wss":"ws",host:location.hostname,port:parseInt(location.port)||(location.protocol=="https:"?443:80),endpoint:"/ws",connectTimeout:4e3,reconnectPeriod:4e3}}},computed:{mqttClientId(){try{return this.client.options.clientId}catch{return}},topicList(){return Object.keys(this.$store.state.mqtt)}},methods:{saveValues(e=void 0){console.debug("saving values...");let t={};e===void 0?t=this.$store.state.mqtt:Array.isArray(e)?e.forEach(o=>{t[o]=this.$store.state.mqtt[o]}):console.error("expected array, got ",typeof e);for(const[o,c]of Object.entries(t)){let l=o.replace("openWB/","openWB/set/");console.debug("saving data:",l,c),this.doPublish(l,c)}},resetValues(e=this.topicList){console.debug("resetting values..."),console.debug("topics: ",e),this.doUnsubscribe(e),this.doSubscribe(e)},setDefaultValues(){console.debug("setting default values... (ToDo)")},sendCommand(e){this.doPublish("openWB/set/command/"+this.client.options.clientId+"/todo",e,!1)},createConnection(){const{protocol:e,host:t,port:o,endpoint:c,...l}=this.connection,s=`${e}://${t}:${o}${c}`;console.debug("connecting to broker:",s);try{this.client=se.connect(s,l)}catch(a){console.error("mqtt.connect error",a)}this.client.on("connect",()=>{console.debug("Connection succeeded! ClientId: ",this.client.options.clientId),this.doSubscribe(["openWB/system/usage_terms_acknowledged"])}),this.client.on("error",a=>{console.error("Connection failed",a)}),this.client.on("message",(a,i)=>{if(i.toString().length>0){let g;try{g=JSON.parse(i.toString())}catch{console.debug("Json parsing failed, fallback to string: ",a),g=i.toString()}this.$store.commit("addTopic",{topic:a,payload:g})}else this.$store.commit("removeTopic",a)})},doSubscribe(e){this.client.subscribe(e,{},t=>{if(t){console.error("Subscribe to topics error",t);return}})},doUnsubscribe(e){this.client.unsubscribe(e,t=>{t&&console.error("Unsubscribe error",t)})},doPublish(e,t,o=!0,c=2){let l={qos:c,retain:o};this.client.publish(e,JSON.stringify(t),l,s=>{s&&console.log("Publish error",s)})},postClientMessage(e,t="secondary"){console.debug("postMessage:",e,t);const o=Date.now(),c="openWB/command/"+this.mqttClientId+"/messages/"+o;this.$store.commit({type:"addTopic",topic:c,payload:{message:e,type:t,source:"client",timestamp:Math.floor(o/1e3)}})}},created(){this.createConnection()}},ca={role:"main",class:"container"},ua={id:"content"};function pa(e,t,o,c,l,s){const a=h("nav-bar"),i=h("router-view"),g=h("donation-banner"),T=h("page-footer"),H=h("messages"),D=h("blocker");return r(),d(x,null,[n("header",null,[m(a)]),n("div",ca,[n("div",ua,[n("h1",null,_(e.$route.meta.heading),1),m(i,{onSave:s.saveValues,onReset:s.resetValues,onDefaults:s.setDefaultValues,onSendCommand:s.sendCommand},null,8,["onSave","onReset","onDefaults","onSendCommand"])]),m(g)]),m(T),m(H),m(D)],64)}const ma=b(da,[["render",pa],["__file","/opt/openWB-dev/openwb-ui-settings/src/App.vue"]]),fa="modulepreload",_a=function(e){return"/openWB/web/settings/"+e},R={},y=function(t,o,c){if(!o||o.length===0)return t();const l=document.getElementsByTagName("link");return Promise.all(o.map(s=>{if(s=_a(s),s in R)return;R[s]=!0;const a=s.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(!!c)for(let H=l.length-1;H>=0;H--){const D=l[H];if(D.href===s&&(!a||D.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const T=document.createElement("link");if(T.rel=a?"stylesheet":fa,a||(T.as="script",T.crossOrigin=""),T.href=s,document.head.appendChild(T),a)return new Promise((H,D)=>{T.addEventListener("load",H),T.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())};let F={mqtt:{},local:{reloadRequired:!1},text:{rfidWiki:'Bitte auch hiervon abhängige Einstellungen beachten. Eine Übersicht gibt es im <a href="https://github.com/openWB/core/wiki/Ladung-nur-nach-Freischaltung" target="_blank" rel="noopener noreferrer">Wiki</a>.'}};F.examples={text1:"Text...",text2:"mail@domain.com",text3:"openwb.local",text4:"http://www.openwb.de",text5:"Benutzername",text6:"12:34",text7:"2021-10-31",number1:5,number2:10,password1:"GeHeiM!",textarea1:"Langer Text...",range1:6,range2:10,select1:1,select2:"three",buttonGroup1:1,checkbox1:!0,json1:{text:"Text",number:123},hierarchy1:[{id:0,type:"counter",children:[{id:3,type:"inverter",children:[]},{id:4,type:"bat",children:[]},{id:1,type:"cp",children:[]},{id:2,type:"cp",children:[]}]}],hierarchy1Labels:{0:"EVU",1:"Ladepunkt 1",2:"Ladepunkt 2",3:"Wechselrichter",4:"Batteriespeicher"},tags:["1234","2345","3456"]};const G=oe({state:F,mutations:{storeLocal(e,t){console.log(t),e.local[t.name]=t.value},addTopic(e,t){e.mqtt[t.topic]=t.payload},removeTopic(e,t){delete e.mqtt[t]},updateTopic(e,t){const o=(c,l,s)=>l.split(".").reduce((a,i,g)=>a[i]=l.split(".").length===++g?s:a[i]||{},c);t.topic in e.mqtt?t.objectPath!=null?o(e.mqtt[t.topic],t.objectPath,t.payload):e.mqtt[t.topic]=t.payload:(console.debug("topic not found in state.mqtt: ",t.topic),t.topic in e.examples?t.objectPath!=null?o(e.examples[t.topic],t.objectPath,t.payload):e.examples[t.topic]=t.payload:console.warn("topic not found in state: ",t.topic," giving up"))}},actions:{},modules:{},getters:{usageTermsAcknowledged(e){return new Promise(t=>{if(e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0)t(e.mqtt["openWB/system/usage_terms_acknowledged"]);else{var o,c;o=setTimeout(()=>{clearInterval(c),t(!1)},5e3),c=setInterval(()=>{e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0&&(clearTimeout(o),clearInterval(c),t(e.mqtt["openWB/system/usage_terms_acknowledged"]))},100)}})}}}),J=[{path:"/",redirect:"/GeneralConfig"},{path:"/Status",name:"Status",meta:{heading:"Status"},component:()=>y(()=>import("./Status-b79c5fd8.js"),["assets/Status-b79c5fd8.js","assets/vendor-fortawesome-ad83e535.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js","assets/Status-49744ef3.css"])},{path:"/Logging/ChargeLog",name:"ChargeLog",meta:{heading:"Auswertungen - Ladeprotokoll"},component:()=>y(()=>import("./ChargeLog-be6ba638.js"),["assets/ChargeLog-be6ba638.js","assets/vendor-fortawesome-ad83e535.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js","assets/ChargeLog-eab2275c.css"])},{path:"/Logging/Chart/:chartRange?/:initialDate?",name:"DailyChart",meta:{heading:"Auswertungen - Diagramme"},component:()=>y(()=>import("./Chart-372a98ba.js"),["assets/Chart-372a98ba.js","assets/vendor-fortawesome-ad83e535.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-chartjs-dd3fd71e.js","assets/vendor-luxon-1af9332f.js","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js","assets/Chart-e20451b4.css"])},{path:"/GeneralConfig",name:"GeneralConfig",meta:{heading:"Einstellungen - Allgemein"},component:()=>y(()=>import("./GeneralConfig-ce149f67.js"),["assets/GeneralConfig-ce149f67.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-ad83e535.js","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js"])},{path:"/OptionalComponents",name:"OptionalComponents",meta:{heading:"Einstellungen - Optionale Hardware"},component:()=>y(()=>import("./OptionalComponents-df4003ba.js"),["assets/OptionalComponents-df4003ba.js","assets/dynamic-import-helper-be004503.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-ad83e535.js","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js"])},{path:"/GeneralChargeConfig",name:"GeneralChargeConfig",meta:{heading:"Ladeeinstellungen - Übergreifendes"},component:()=>y(()=>import("./GeneralChargeConfig-6358761f.js"),["assets/GeneralChargeConfig-6358761f.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-ad83e535.js","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js"])},{path:"/InstantChargeConfig",name:"InstantChargeConfig",meta:{heading:"Ladeeinstellungen - Sofortladen"},component:()=>y(()=>import("./InstantChargeConfig-1646b158.js"),["assets/InstantChargeConfig-1646b158.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-ad83e535.js","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js"])},{path:"/PVChargeConfig",name:"PVChargeConfig",meta:{heading:"Ladeeinstellungen - PV-Laden"},component:()=>y(()=>import("./PVChargeConfig-3851cc53.js"),["assets/PVChargeConfig-3851cc53.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-ad83e535.js","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js"])},{path:"/TimeChargeConfig",name:"TimeChargeConfig",meta:{heading:"Ladeeinstellungen - Zeitladen"},component:()=>y(()=>import("./TimeChargeConfig-6ea9f121.js"),["assets/TimeChargeConfig-6ea9f121.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-ad83e535.js","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js"])},{path:"/ScheduledChargeConfig",name:"ScheduledChargeConfig",meta:{heading:"Ladeeinstellungen - Zielladen"},component:()=>y(()=>import("./ScheduledChargeConfig-ff0252cd.js"),["assets/ScheduledChargeConfig-ff0252cd.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-ad83e535.js","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js"])},{path:"/HardwareInstallation",name:"HardwareInstallation",meta:{heading:"Konfiguration - Geräte und Komponenten"},component:()=>y(()=>import("./HardwareInstallation-053ec617.js"),["assets/HardwareInstallation-053ec617.js","assets/vendor-fortawesome-ad83e535.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js","assets/HardwareInstallation-1ee9693f.css"])},{path:"/LoadManagementConfiguration",name:"LoadManagementConfiguration",meta:{heading:"Konfiguration - Lastmanagement"},component:()=>y(()=>import("./LoadManagementConfig-8a4d7343.js"),["assets/LoadManagementConfig-8a4d7343.js","assets/vendor-fortawesome-ad83e535.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/OpenwbSortableList-8561f9a9.js","assets/OpenwbSortableList-15b0be17.css","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js"])},{path:"/ChargePointInstallation",name:"ChargePointInstallation",meta:{heading:"Konfiguration - Ladepunkte"},component:()=>y(()=>import("./ChargePointInstallation-40572ce1.js"),["assets/ChargePointInstallation-40572ce1.js","assets/vendor-fortawesome-ad83e535.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js","assets/ChargePointInstallation-ed6a5c7e.css"])},{path:"/VehicleConfiguration/:section?/:section_index?/:section_part?/:action?",name:"VehicleConfiguration",meta:{heading:"Konfiguration - Fahrzeuge"},component:()=>y(()=>import("./VehicleConfig-1e731d22.js"),["assets/VehicleConfig-1e731d22.js","assets/vendor-fortawesome-ad83e535.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js","assets/VehicleConfig-4aeda6ca.css"])},{path:"/System/CloudConfiguration",name:"CloudConfig",meta:{heading:"System - openWB Cloud"},component:()=>y(()=>import("./CloudConfig-fb035176.js"),["assets/CloudConfig-fb035176.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-ad83e535.js","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js"])},{path:"/System/MqttBridgeConfiguration",name:"MqttBridgeConfig",meta:{heading:"System - MQTT-Brücken"},component:()=>y(()=>import("./MqttBridgeConfig-9fb8ed69.js"),["assets/MqttBridgeConfig-9fb8ed69.js","assets/vendor-fortawesome-ad83e535.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js","assets/MqttBridgeConfig-3471079a.css"])},{path:"/System/DebugConfiguration",name:"Debugging",meta:{heading:"System - Fehlersuche"},component:()=>y(()=>import("./DebugConfig-0afeacb4.js"),["assets/DebugConfig-0afeacb4.js","assets/vendor-fortawesome-ad83e535.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js"])},{path:"/System/Support",name:"Support",meta:{heading:"System - Support"},component:()=>y(()=>import("./Support-d2984420.js"),["assets/Support-d2984420.js","assets/vendor-fortawesome-ad83e535.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js"])},{path:"/System/LegalSettings",name:"LegalSettings",meta:{heading:"System - Rechtliches"},component:()=>y(()=>import("./LegalSettings-c100c109.js"),["assets/LegalSettings-c100c109.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-ad83e535.js","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js"])},{path:"/System/SystemConfiguration",name:"SystemConfig",meta:{heading:"System - System"},component:()=>y(()=>import("./System-d604c488.js"),["assets/System-d604c488.js","assets/vendor-fortawesome-ad83e535.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js","assets/System-0f1d217b.css"])},{path:"/System/DataManagement",name:"DataManagement",meta:{heading:"System - Datenverwaltung"},component:()=>y(()=>import("./DataManagement-f7a0955c.js"),["assets/DataManagement-f7a0955c.js","assets/vendor-fortawesome-ad83e535.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js"])}];J.push({path:"/TestingStore",name:"VUEX Store",meta:{heading:"Beispiele - VUEX Store"},component:()=>y(()=>import("./TestingStore-082dc7f3.js"),["assets/TestingStore-082dc7f3.js","assets/OpenwbSortableList-8561f9a9.js","assets/vendor-94ac8c48.js","assets/vendor-sortablejs-dbc23470.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-ad83e535.js","assets/OpenwbSortableList-15b0be17.css","assets/vendor-bootstrap-9f620114.js","assets/vendor-jquery-f7104ff8.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-dc63434e.js"])});const L=ne({history:ae(),routes:J});L.beforeEach(async e=>{if(e.name!=="LegalSettings"&&!await G.getters.usageTermsAcknowledged)return{name:"LegalSettings"}});L.afterEach(e=>{e.meta.heading?document.title="openWB | "+e.meta.heading:document.title="openWB"});const j=ie(ma);j.use(G).use(L).use(Ae,qe);const ha=Object.assign({"./components/OpenwbBaseAlert.vue":We,"./components/OpenwbBaseArrayInput.vue":tt,"./components/OpenwbBaseAvatar.vue":it,"./components/OpenwbBaseButtonGroupInput.vue":ht,"./components/OpenwbBaseButtonInput.vue":Ct,"./components/OpenwbBaseCard.vue":Dt,"./components/OpenwbBaseCheckboxInput.vue":Nt,"./components/OpenwbBaseClickButton.vue":Gt,"./components/OpenwbBaseCopyToClipboard.vue":Zt,"./components/OpenwbBaseHeading.vue":is,"./components/OpenwbBaseModalDialog.vue":hs,"./components/OpenwbBaseNumberInput.vue":xs,"./components/OpenwbBaseRangeInput.vue":Ws,"./components/OpenwbBaseSelectInput.vue":Xs,"./components/OpenwbBaseSubmitButtons.vue":lo,"./components/OpenwbBaseTextInput.vue":Io,"./components/OpenwbBaseTextarea.vue":Uo,"./components/OpenwbBaseToast.vue":Xo});Object.entries(ha).forEach(([e,t])=>{const o=le(re(e.split("/").pop().replace(/\.\w+$/,"")));j.component(o,t.default)});j.mount("#app");export{z as C,y as _};
diff --git a/web/settings/assets/index-f08a7306.js b/web/settings/assets/index-f08a7306.js
new file mode 100644
index 0000000000..aedaebc326
--- /dev/null
+++ b/web/settings/assets/index-f08a7306.js
@@ -0,0 +1 @@
+import{_ as b,k as r,l as d,m as w,n as k,p as h,q as n,u as p,x as _,y as v,z as u,A as m,B as C,D as $,E as S,F as K,G as x,I as M,J as Q,K as Y,L as f,M as Z,N as X,T as ee,O as te,P as W,Q as A,R as q,S as se,U as oe,V as ne,W as ae,X as ie,Y as le,Z as re}from"./vendor-20bb207d.js";import{l as B,f as I,a as V,b as de,c as ce,d as ue,e as pe,F as O,g as E,h as me,i as fe,j as _e,k as he,m as ge,n as be,o as ve,p as we,q as ye,r as ke,s as Se,t as Ce,u as Be,v as Oe,w as $e,x as Te,y as xe,z as Ie,A as Ve,B as Pe,C as He,D as Me,E as De}from"./vendor-fortawesome-838df0c9.js";import"./vendor-bootstrap-d275de6c.js";import{p as Ae,a as qe}from"./vendor-axios-13ef03ae.js";import"./vendor-sortablejs-ad1d2cc8.js";import"./vendor-jquery-89b63fca.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))c(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&c(a)}).observe(document,{childList:!0,subtree:!0});function o(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function c(l){if(l.ep)return;l.ep=!0;const s=o(l);fetch(l.href,s)}})();const Ee={name:"OpenwbAlert",props:{subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}}};function Le(e,t,o,c,l,s){return r(),d("div",{class:k(["card-text alert","alert-"+o.subtype])},[w(e.$slots,"default")],2)}const je=b(Ee,[["render",Le],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAlert.vue"]]),We=Object.freeze(Object.defineProperty({__proto__:null,default:je},Symbol.toStringTag,{value:"Module"}));B.add(I,V,de,ce,ue,pe);const Re={name:"OpenwbArrayInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Array,default:()=>[]},noElementsMessage:{type:String,default:()=>"Keine Elemente zugeordnet."}},emits:["update:modelValue"],data(){return{newTag:"",showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}},newTagValid:{get(){return this.newTag.length>0&&this.value.indexOf(this.newTag)==-1}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},addTag(){if(this.newTagValid){let e=this.value;e.push(this.newTag),e.sort(),this.value=e,this.newTag=""}this.$refs.tagInput.focus()},removeTag(e){let t=this.value;t.splice(e,1),this.value=t}},components:{FontAwesomeIcon:O}},Ne={class:"form-row mb-1"},Ue={class:"col-md-8"},ze={class:"form-row"},Fe={class:"input-group"},Ge={class:"input-group-prepend"},Je={class:"input-group-text"},Ke={class:"input-group-append"},Qe={class:"form-row tagList mt-1"},Ye={key:0,class:"noTag"},Ze={key:0,class:"form-row alert alert-info my-1 small"};function Xe(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",Ne,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",Ue,[n("div",ze,[n("div",Fe,[n("div",Ge,[n("div",Je,[m(a,{"fixed-width":"",icon:["fas","tag"]})])]),C(n("input",S({ref:"tagInput",type:"text",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>l.newTag=i)},e.$attrs,{onKeyup:t[2]||(t[2]=K((...i)=>s.addTag&&s.addTag(...i),["enter"]))}),null,16),[[$,l.newTag]]),n("div",Ke,[n("div",{class:k(["input-group-text",s.newTagValid?"bg-success clickable":"notClickable"]),onClick:t[3]||(t[3]=(...i)=>s.addTag&&s.addTag(...i))},[m(a,{"fixed-width":"",icon:["fas","plus"]})],2)])])]),n("div",Qe,[s.value.length==0?(r(),d("span",Ye,[m(a,{icon:["fas","info-circle"]}),p(" "+_(o.noElementsMessage),1)])):u("v-if",!0),(r(!0),d(x,null,M(s.value,(i,g)=>(r(),d("span",{class:"tag",key:g},[m(a,{icon:["fas","tag"]}),p(" "+_(i)+" ",1),m(a,{class:"clickable",icon:["fas","times-circle"],onClick:T=>s.removeTag(g)},null,8,["onClick"])]))),128))]),l.showHelp?(r(),d("span",Ze,[w(e.$slots,"help",{},void 0,!0)])):u("v-if",!0)])])}const et=b(Re,[["render",Xe],["__scopeId","data-v-9de93d37"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseArrayInput.vue"]]),tt=Object.freeze(Object.defineProperty({__proto__:null,default:et},Symbol.toStringTag,{value:"Module"}));const st={name:"OpenwbAvatar"},ot={class:"avatar"};function nt(e,t,o,c,l,s){return r(),d("div",ot,[w(e.$slots,"default",{},()=>[p("?")],!0)])}const at=b(st,[["render",nt],["__scopeId","data-v-06082a1a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseAvatar.vue"]]),it=Object.freeze(Object.defineProperty({__proto__:null,default:at},Symbol.toStringTag,{value:"Module"}));B.add(I,V,E);const lt={name:"OpenwbButtonGroupInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Number,Boolean]},buttons:Object},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},rt={class:"form-row mb-1"},dt={class:"col-md-8"},ct={class:"form-row"},ut={class:"btn-group btn-block btn-group-toggle"},pt=["value"],mt={key:0,class:"form-row alert alert-info my-1 small"};function ft(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",rt,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",dt,[n("div",ct,[n("div",ut,[(r(!0),d(x,null,M(o.buttons,i=>(r(),d("label",{key:i.value,class:k(["btn",[s.value==i.buttonValue?"active":"",i.class?i.class:"btn-outline-info"]])},[C(n("input",S({type:"radio","onUpdate:modelValue":t[1]||(t[1]=g=>s.value=g),value:i.buttonValue},e.$attrs),null,16,pt),[[Q,s.value]]),p(" "+_(i.text)+" ",1),m(a,{icon:["fas","check"],style:Y([s.value==i.buttonValue?"visibility: visible":"visibility: hidden"])},null,8,["style"])],2))),128))])]),l.showHelp?(r(),d("span",mt,[w(e.$slots,"help")])):u("v-if",!0)])])}const _t=b(lt,[["render",ft],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonGroupInput.vue"]]),ht=Object.freeze(Object.defineProperty({__proto__:null,default:_t},Symbol.toStringTag,{value:"Module"}));B.add(I,V);const gt={name:"OpenwbButtonInput",inheritAttrs:!1,props:{title:String,buttonText:String,disabled:{type:Boolean,default:!1},subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"}},data(){return{showHelp:!1}},emits:["buttonClicked"],methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},handleClick(e){this.$emit("buttonClicked",e)}},components:{FontAwesomeIcon:O}},bt={class:"form-row mb-1"},vt={class:"col-md-8"},wt={class:"form-row"},yt={key:0,class:"form-row alert alert-info my-1 small"};function kt(e,t,o,c,l,s){const a=h("font-awesome-icon"),i=h("openwb-base-click-button");return r(),d("div",bt,[n("label",{onClick:t[0]||(t[0]=(...g)=>s.toggleHelp&&s.toggleHelp(...g)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",vt,[n("div",wt,[m(i,S({class:(o.disabled?"btn-outline-":"btn-")+o.subtype,disabled:o.disabled},e.$attrs,{onButtonClicked:s.handleClick}),{default:f(()=>[w(e.$slots,"default",{},()=>[p(_(o.buttonText),1)])]),_:3},16,["class","disabled","onButtonClicked"])]),l.showHelp?(r(),d("span",yt,[w(e.$slots,"help")])):u("v-if",!0)])])}const St=b(gt,[["render",kt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseButtonInput.vue"]]),Ct=Object.freeze(Object.defineProperty({__proto__:null,default:St},Symbol.toStringTag,{value:"Module"}));B.add(me,fe);const Bt={name:"OpenwbCard",components:{FontAwesomeIcon:O},props:{title:{type:String,default:"# no title set #"},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark","pink"].indexOf(e)!==-1},default:"secondary"},collapsible:{type:Boolean,default:!1},collapsed:{type:Boolean,default:!1}},data(){return{isCollapsed:this.collapsible&&this.collapsed}},methods:{toggleBody(){this.collapsible===!0&&(this.isCollapsed=!this.isCollapsed)}}},Ot={class:"form-group mb-0"},$t={class:"form-row vaRow mb-0 py-2"},Tt={class:"col"},xt={class:"card-actions ml-4"},It={key:0,class:"card-actions mr-4"},Vt={key:0,class:"card-body"},Pt={key:1,class:"card-footer"};function Ht(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",{class:k(["card","border-"+o.subtype])},[n("div",{class:k(["card-header py-1","bg-"+o.subtype]),onClick:t[0]||(t[0]=(...i)=>s.toggleBody&&s.toggleBody(...i))},[n("div",Ot,[n("div",$t,[n("div",Tt,[w(e.$slots,"header",{collapsed:l.isCollapsed},()=>[p(_(o.title),1)])])])]),n("span",xt,[e.$slots.actions?(r(),d("span",It,[w(e.$slots,"actions",{collapsed:l.isCollapsed})])):u("v-if",!0),o.collapsible?(r(),v(a,{key:1,"fixed-width":"",icon:l.isCollapsed?["fas","chevron-right"]:["fas","chevron-down"]},null,8,["icon"])):u("v-if",!0)])],2),l.isCollapsed===!1?(r(),d("div",Vt,[w(e.$slots,"default")])):u("v-if",!0),e.$slots.footer&&l.isCollapsed===!1?(r(),d("div",Pt,[w(e.$slots,"footer")])):u("v-if",!0)],2)}const Mt=b(Bt,[["render",Ht],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCard.vue"]]),Dt=Object.freeze(Object.defineProperty({__proto__:null,default:Mt},Symbol.toStringTag,{value:"Module"}));B.add(I,V);const At={name:"OpenwbCheckboxInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Boolean}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},qt={class:"form-row mb-1"},Et={class:"col-md-8"},Lt={class:"form-row"},jt={key:0,class:"form-row alert alert-info my-1 small"};function Wt(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",qt,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",Et,[n("div",Lt,[C(n("input",S({class:"form-control",type:"checkbox","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16),[[Z,s.value]])]),l.showHelp?(r(),d("span",jt,[w(e.$slots,"help")])):u("v-if",!0)])])}const Rt=b(At,[["render",Wt],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCheckboxInput.vue"]]),Nt=Object.freeze(Object.defineProperty({__proto__:null,default:Rt},Symbol.toStringTag,{value:"Module"}));const Ut={name:"OpenwbClickButton",props:{title:String},emits:["buttonClicked"],methods:{click(e){this.$emit("buttonClicked",e)}}};function zt(e,t,o,c,l,s){return r(),d("button",{type:"button",class:"btn btn-block",onClick:t[0]||(t[0]=X((...a)=>s.click&&s.click(...a),["prevent"]))},[w(e.$slots,"default",{},()=>[p(_(o.title),1)],!0)])}const Ft=b(Ut,[["render",zt],["__scopeId","data-v-2e9c095b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseClickButton.vue"]]),Gt=Object.freeze(Object.defineProperty({__proto__:null,default:Ft},Symbol.toStringTag,{value:"Module"}));B.add(_e,he);const Jt={name:"OpenwbCopyToClipboard",components:{FontAwesomeIcon:O},props:{tooltip:{type:String,default:"Wert kopieren"}},data(){return{clipboardApiAvailable:navigator.clipboard!=null,isCopied:!1}},methods:{click(){if(console.debug(this.$refs["slot-wrapper"].innerText),this.clipboardApiAvailable)navigator.clipboard.writeText(this.$refs["slot-wrapper"].innerText).then(()=>{this.isCopied=!0},()=>{console.error("copy to clipboard failed")});else{if(console.debug("clipboard api not supported/enabled, fallback to select"),window.getSelection){console.debug("using 'window.getSelection'");const e=window.getSelection(),t=document.createRange();t.selectNodeContents(this.$refs["slot-wrapper"]),e.removeAllRanges(),e.addRange(t);return}if(document.body.createTextRange){console.debug("using 'document.body.createTextRange'");const e=document.body.createTextRange();e.moveToElementText(this.$refs["slot-wrapper"]),e.select()}else console.warn("could not select text, unsupported browser")}}}},Kt=["title"];function Qt(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("span",{ref:"slot-wrapper",title:o.tooltip,class:"copy-me",onClick:t[0]||(t[0]=(...i)=>s.click&&s.click(...i))},[w(e.$slots,"default",{},void 0,!0),m(a,{"fixed-width":"",icon:l.isCopied?["fas","clipboard-check"]:["fas","clipboard"]},null,8,["icon"])],8,Kt)}const Yt=b(Jt,[["render",Qt],["__scopeId","data-v-81826ebe"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseCopyToClipboard.vue"]]),Zt=Object.freeze(Object.defineProperty({__proto__:null,default:Yt},Symbol.toStringTag,{value:"Module"}));B.add(I,V,E);const Xt={name:"OpenwbHeading",components:{FontAwesomeIcon:O},data(){return{showHelp:!1}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}}},es={class:"card-text card-text-heading"},ts={key:0,class:"actions"},ss={class:""},os={key:0,class:"form-row alert alert-info small"};function ns(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d(x,null,[n("div",es,[n("div",{class:"heading-text",onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i))},[w(e.$slots,"default",{},void 0,!0),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),e.$slots.actions?(r(),d("span",ts,[w(e.$slots,"actions",{},void 0,!0)])):u("v-if",!0)]),n("div",ss,[l.showHelp?(r(),d("span",os,[w(e.$slots,"help",{},void 0,!0)])):u("v-if",!0)])],64)}const as=b(Xt,[["render",ns],["__scopeId","data-v-cbe4e96e"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseHeading.vue"]]),is=Object.freeze(Object.defineProperty({__proto__:null,default:as},Symbol.toStringTag,{value:"Module"})),ls={name:"OpenwbModalDialog",emits:["modal-result"],props:{title:String,subtype:{type:String,validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},buttons:{type:Array,default:void 0},footerAlignment:{type:String,validator:function(e){return["around","between","center","end","start"].indexOf(e)!==-1},default:"end"},preventClose:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},computed:{myButtons(){var e=[];return this.buttons!==void 0&&(e=this.buttons),this.preventClose||e.push({text:"Schließen",event:"close"}),e}},methods:{handleClick(e){e.stopPropagation();let t=e.target.getAttribute("data-event");t===null&&(t="close"),(t!="close"||!this.preventClose)&&this.$emit("modal-result",t)}}},rs=n("div",{class:"modal-backdrop fade show"},null,-1),ds={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},cs={class:"modal-content"},us={class:"modal-title"},ps={class:"modal-body"},ms=["data-event"];function fs(e,t,o,c,l,s){return o.show?(r(),v(ee,{key:0,to:"body"},[rs,n("div",{class:"modal fade d-block show",role:"dialog",onClick:t[2]||(t[2]=(...a)=>s.handleClick&&s.handleClick(...a))},[n("div",ds,[n("div",cs,[u(" modal header "),n("div",{class:k(["modal-header","bg-"+o.subtype])},[n("h4",us,_(o.title),1),o.preventClose?u("v-if",!0):(r(),d("button",{key:0,type:"button",class:"close",onClick:t[0]||(t[0]=(...a)=>s.handleClick&&s.handleClick(...a))}," × "))],2),u(" modal body "),n("div",ps,[w(e.$slots,"default",{},()=>[p("# Body #")])]),u(" modal footer "),s.myButtons.length>0?(r(),d("div",{key:0,class:k(["modal-footer d-flex","justify-content-"+o.footerAlignment])},[(r(!0),d(x,null,M(s.myButtons,a=>(r(),d("button",{key:a.text,type:"button",class:k(["btn",a.subtype?"btn-"+a.subtype:"btn-secondary"]),"data-dismiss":"modal","data-event":a.event?a.event:"close",onClick:t[1]||(t[1]=(...i)=>s.handleClick&&s.handleClick(...i))},_(a.text),11,ms))),128))],2)):u("v-if",!0)])])])])):u("v-if",!0)}const _s=b(ls,[["render",fs],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseModalDialog.vue"]]),hs=Object.freeze(Object.defineProperty({__proto__:null,default:_s},Symbol.toStringTag,{value:"Module"}));B.add(I,V,ge);const gs={name:"OpenwbNumberInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Number},unit:String,emptyValue:{required:!1,default:null}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){(isNaN(e)||typeof e!="number")&&(e=this.emptyValue),this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},bs={class:"form-row mb-1"},vs={class:"col-md-8"},ws={class:"form-row"},ys={class:"input-group"},ks={class:"input-group-prepend"},Ss={class:"input-group-text"},Cs={key:0,class:"input-group-append"},Bs={class:"input-group-text"},Os={key:0,class:"form-row alert alert-info my-1 small"};function $s(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",bs,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",vs,[n("div",ws,[n("div",ys,[n("div",ks,[n("div",Ss,[m(a,{"fixed-width":"",icon:["fas","calculator"]})])]),C(n("input",S({type:"number",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16),[[$,s.value,void 0,{number:!0}]]),o.unit?(r(),d("div",Cs,[n("div",Bs,_(o.unit),1)])):u("v-if",!0)])]),l.showHelp?(r(),d("span",Os,[w(e.$slots,"help",{},void 0,!0)])):u("v-if",!0)])])}const Ts=b(gs,[["render",$s],["__scopeId","data-v-c2fb7eef"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseNumberInput.vue"]]),xs=Object.freeze(Object.defineProperty({__proto__:null,default:Ts},Symbol.toStringTag,{value:"Module"}));B.add(I,V,be,ve);const Is={name:"OpenwbRangeInput",inheritAttrs:!1,props:{title:String,modelValue:{type:Number},unit:String,min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},labels:{type:Array}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{label(){var e;return this.labels&&this.sliderValue!=null?this.sliderValue<this.labels.length?e=this.labels[this.sliderValue].label:console.error("index out of bounds: "+this.sliderValue):e=this.sliderValue,typeof e=="number"&&(e=e.toLocaleString(void 0,{minimumFractionDigits:this.precision,maximumFractionDigits:this.precision}),this.unit&&(e+=" "+this.unit)),e},precision(){if(!isFinite(this.step))return 0;for(var e=1,t=0;Math.round(this.step*e)/e!==this.step;)e*=10,t++;return t},sliderValue:{get(){if(this.labels){var e=void 0;for(let t=0;t<this.labels.length;t++)if(this.labels[t].value==this.modelValue){e=t;break}return e===void 0&&this.modelValue!==void 0?(console.warn("sliderValue: not found in values: ",this.modelValue,"using min as default: ",this.min),this.min):e}return this.modelValue},set(e){if(this.labels){var t=this.labels[e].value;this.$emit("update:modelValue",t)}else this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},increment(){var e=Math.min(this.sliderValue+this.step,this.max);this.sliderValue=Math.round(e*Math.pow(10,this.precision))/Math.pow(10,this.precision)},decrement(){var e=Math.max(this.sliderValue-this.step,this.min);this.sliderValue=Math.round(e*Math.pow(10,this.precision))/Math.pow(10,this.precision)}},components:{FontAwesomeIcon:O}},Vs={class:"form-row mb-1"},Ps={class:"col-md-8"},Hs={class:"form-row vaRow mb-1"},Ms={key:0,class:"col-2 col-form-label valueLabel"},Ds={class:"col"},As=["min","max","step"],qs={key:0,class:"form-row alert alert-info my-1 small"},Es={class:"col"};function Ls(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",Vs,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",Ps,[n("div",Hs,[s.label?(r(),d("label",Ms,_(s.label),1)):u("v-if",!0),n("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[1]||(t[1]=(...i)=>s.decrement&&s.decrement(...i))},[m(a,{icon:["fas","step-backward"]})]),n("div",Ds,[C(n("input",S({type:"range",class:"form-control-range rangeInput",min:o.min,max:o.max,step:o.step,"onUpdate:modelValue":t[2]||(t[2]=i=>s.sliderValue=i)},e.$attrs),null,16,As),[[$,s.sliderValue,void 0,{number:!0}]])]),n("button",{class:"col-1 btn btn-block btn-info",type:"button",onClick:t[3]||(t[3]=(...i)=>s.increment&&s.increment(...i))},[m(a,{icon:["fas","step-forward"]})])]),l.showHelp?(r(),d("div",qs,[n("div",Es,[w(e.$slots,"help",{},void 0,!0)])])):u("v-if",!0)])])}const js=b(Is,[["render",Ls],["__scopeId","data-v-449fb0a5"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseRangeInput.vue"]]),Ws=Object.freeze(Object.defineProperty({__proto__:null,default:js},Symbol.toStringTag,{value:"Module"}));B.add(I,V);const Rs={name:"OpenwbSelectInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Number,Array]},groups:Object,options:Object,notSelected:{type:String,default:void 0}},emits:["update:modelValue"],data(){return{showHelp:!1}},computed:{value:{get(){return this.modelValue},set(e){this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},Ns={class:"form-row mb-1"},Us={class:"col-md-8"},zs={class:"form-row"},Fs={key:0,value:void 0,disabled:""},Gs=["value"],Js=["label"],Ks=["value"],Qs={key:0,class:"form-row alert alert-info my-1 small"};function Ys(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",Ns,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",Us,[n("div",zs,[C(n("select",S({class:"col form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),[o.notSelected!==void 0?(r(),d("option",Fs," -- "+_(o.notSelected)+" -- ",1)):u("v-if",!0),u(" select elements without option groups "),(r(!0),d(x,null,M(o.options,i=>(r(),d("option",{key:i.value,value:i.value},_(i.text),9,Gs))),128)),u(" option groups with options "),(r(!0),d(x,null,M(o.groups,i=>(r(),d("optgroup",{key:i.label,label:i.label},[(r(!0),d(x,null,M(i.options,g=>(r(),d("option",{key:g.value,value:g.value},_(g.text),9,Ks))),128))],8,Js))),128))],16),[[te,s.value]]),w(e.$slots,"append")]),l.showHelp?(r(),d("span",Qs,[w(e.$slots,"help")])):u("v-if",!0)])])}const Zs=b(Rs,[["render",Ys],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSelectInput.vue"]]),Xs=Object.freeze(Object.defineProperty({__proto__:null,default:Zs},Symbol.toStringTag,{value:"Module"}));B.add(E,we,ye);const eo={name:"OpenwbSubmitButtons",components:{FontAwesomeIcon:O},props:{formName:{type:String,default:void 0},hideReset:{type:Boolean,default:!1},hideDefaults:{type:Boolean,default:!0}},data(){return{showModalSave:!1,showModalReset:!1,showModalDefaults:!1}},emits:["reset","defaults","save"],methods:{showResetModal(){this.showModalReset=!0},handleModalReset(e){this.showModalReset=!1,e=="confirm"&&this.$emit("reset")},showDefaultsModal(){this.showModalDefaults=!0},handleModalDefaults(e){this.showModalDefaults=!1,e=="confirm"&&this.$emit("defaults")},saveSettings(){if(this.formName){if(!document.forms[this.formName].reportValidity()){console.debug("form invalid");return}}else console.debug("no form to validate");this.showModalSave=!0,this.$emit("save"),window.setTimeout(()=>this.showModalSave=!1,3e3)}}},to={class:"row justify-content-center mb-1"},so={class:"col-md-4 d-flex py-1 justify-content-center"},oo={key:0,class:"col-md-4 d-flex py-1 justify-content-center"},no={key:1,class:"col-md-4 d-flex py-1 justify-content-center"};function ao(e,t,o,c,l,s){const a=h("openwb-base-modal-dialog"),i=h("font-awesome-icon");return r(),d(x,null,[m(a,{show:l.showModalSave,title:"Speichern",subtype:"success",preventClose:!0},{default:f(()=>[p(" Einstellungen werden gespeichert... ")]),_:1},8,["show"]),m(a,{show:l.showModalReset,title:"Änderungen verwerfen",subtype:"warning",buttons:[{text:"Ok",event:"confirm",subtype:"warning"}],onModalResult:s.handleModalReset},{default:f(()=>[p(" Wollen Sie die nicht gespeicherten Änderungen wirklich verwerfen? ")]),_:1},8,["show","onModalResult"]),m(a,{show:l.showModalDefaults,title:"Werkseinstellungen",subtype:"danger",buttons:[{text:"Ok",event:"confirm",subtype:"danger"}],onModalResult:s.handleModalDefaults},{default:f(()=>[p(" Wollen Sie wirklich alle Werte dieser Seite auf die Werkseinstellungen zurücksetzen? ")]),_:1},8,["show","onModalResult"]),n("div",to,[n("div",so,[n("button",{id:"saveSettingsBtn",type:"button",class:"btn btn-block btn-success",onClick:t[0]||(t[0]=(...g)=>s.saveSettings&&s.saveSettings(...g))},[p(" Speichern "),m(i,{"fixed-width":"",icon:["fas","check"]})])]),o.hideReset?u("v-if",!0):(r(),d("div",oo,[n("button",{id:"modalResetBtn",type:"button",class:"btn btn-block btn-warning",onClick:t[1]||(t[1]=(...g)=>s.showResetModal&&s.showResetModal(...g))},[p(" Änderungen verwerfen "),m(i,{"fixed-width":"",icon:["fas","undo"]})])])),o.hideDefaults?u("v-if",!0):(r(),d("div",no,[n("button",{id:"modalDefaultsBtn",type:"button",class:"btn btn-block btn-danger",onClick:t[2]||(t[2]=(...g)=>s.showDefaultsModal&&s.showDefaultsModal(...g))},[p(" Werkseinstellungen "),m(i,{"fixed-width":"",icon:["fas","times"]})])]))])],64)}const io=b(eo,[["render",ao],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseSubmitButtons.vue"]]),lo=Object.freeze(Object.defineProperty({__proto__:null,default:io},Symbol.toStringTag,{value:"Module"}));B.add(I,V,ke,Se,Ce,Be,Oe,$e,Te,xe,Ie,Ve,Pe,He);const ro={name:"OpenwbTextInput",inheritAttrs:!1,props:{title:String,modelValue:{type:[String,Object]},subtype:{validator:function(e){return["text","email","host","url","user","json","password","time","date","month","year"].indexOf(e)!==-1},default:"text"},pattern:String,unit:String,emptyValue:{required:!1,default:null},showQuickButtons:{type:Boolean,default:!1}},emits:["update:modelValue"],data(){return{showHelp:!1,showPassword:!1,inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.warn("returning invalid String"),this.tempValue):JSON.stringify(this.tempValue):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch{console.error("parsing JSON failed: "+e),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else e==""&&(e=this.emptyValue),this.$emit("update:modelValue",e)}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0},togglePassword(){this.showPassword=!this.showPassword},modify(e){var t,o,c=new Date(this.modelValue);switch(this.subtype){case"date":c.setDate(c.getDate()+e),o=String(c.getFullYear())+"-"+String(c.getMonth()+1).padStart(2,"0")+"-"+String(c.getDate()).padStart(2,"0"),t=this.$refs.dateInput;break;case"month":c.setMonth(c.getMonth()+e),o=String(c.getFullYear())+"-"+String(c.getMonth()+1).padStart(2,"0"),t=this.$refs.monthInput;break;case"year":c.setYear(c.getFullYear()+e),o=String(c.getFullYear()),t=this.$refs.yearInput;break;default:console.warn(`cannot modify input of subtype '${this.subtype}'`);return}o>t.max||o<t.min||(this.value=o)}},components:{FontAwesomeIcon:O}},N=e=>(A("data-v-6927d479"),e=e(),q(),e),co={class:"form-row mb-1"},uo={class:"col-md-8"},po={class:"form-row"},mo={class:"input-group"},fo={class:"input-group-prepend"},_o={class:"input-group-text"},ho=["pattern"],go=["pattern"],bo=["type","pattern"],vo=["type"],wo={class:"input-group-text"},yo={key:10,class:"input-group-append"},ko={class:"input-group-text"},So=N(()=>n("div",{class:"input-group-text"},"-",-1)),Co=[So],Bo=N(()=>n("div",{class:"input-group-text"},"+",-1)),Oo=[Bo],$o={key:0,class:"form-row alert alert-info my-1 small"};function To(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",co,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",uo,[n("div",po,[n("div",mo,[n("div",fo,[n("div",_o,[o.subtype=="text"?(r(),v(a,{key:0,"fixed-width":"",icon:["fas","keyboard"]})):u("v-if",!0),o.subtype=="email"?(r(),v(a,{key:1,"fixed-width":"",icon:["fas","envelope"]})):u("v-if",!0),o.subtype=="host"?(r(),v(a,{key:2,"fixed-width":"",icon:["fas","network-wired"]})):u("v-if",!0),o.subtype=="url"?(r(),v(a,{key:3,"fixed-width":"",icon:["fas","globe"]})):u("v-if",!0),o.subtype=="user"?(r(),v(a,{key:4,"fixed-width":"",icon:["fas","user"]})):u("v-if",!0),o.subtype=="json"?(r(),v(a,{key:5,"fixed-width":"",icon:["fas","code"]})):u("v-if",!0),o.subtype=="password"?(r(),v(a,{key:6,"fixed-width":"",icon:l.showPassword?["fas","unlock"]:["fas","lock"]},null,8,["icon"])):u("v-if",!0),o.subtype=="time"?(r(),v(a,{key:7,"fixed-width":"",icon:["fas","clock"]})):u("v-if",!0),o.subtype=="date"||o.subtype=="month"||o.subtype=="year"?(r(),v(a,{key:8,"fixed-width":"",icon:["fas","calendar-day"]})):u("v-if",!0)])]),["text","user"].includes(o.subtype)?C((r(),d("input",S({key:0,type:"text",class:["form-control",{invalid:l.inputInvalid}],"onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs,{pattern:o.pattern}),null,16,ho)),[[$,s.value]]):u("v-if",!0),o.subtype=="json"?C((r(),d("input",S({key:1,ref:"jsonInput",type:"text",class:"form-control","onUpdate:modelValue":t[2]||(t[2]=i=>s.value=i)},e.$attrs,{pattern:o.pattern}),null,16,go)),[[$,s.value]]):u("v-if",!0),o.subtype=="password"?C((r(),d("input",S({key:2,type:l.showPassword?"text":"password",class:"form-control","onUpdate:modelValue":t[3]||(t[3]=i=>s.value=i)},e.$attrs,{pattern:o.pattern}),null,16,bo)),[[W,s.value]]):u("v-if",!0),o.subtype=="host"?C((r(),d("input",S({key:3,type:"text",class:"form-control","onUpdate:modelValue":t[4]||(t[4]=i=>s.value=i)},e.$attrs),null,16)),[[$,s.value]]):u("v-if",!0),["email","url"].includes(o.subtype)?C((r(),d("input",S({key:4,type:o.subtype,class:"form-control","onUpdate:modelValue":t[5]||(t[5]=i=>s.value=i)},e.$attrs),null,16,vo)),[[W,s.value]]):u("v-if",!0),o.subtype=="password"?(r(),d("div",{key:5,class:"input-group-append clickable",onClick:t[6]||(t[6]=(...i)=>s.togglePassword&&s.togglePassword(...i))},[n("div",wo,[m(a,{"fixed-width":"",icon:l.showPassword?["far","eye"]:["far","eye-slash"]},null,8,["icon"])])])):u("v-if",!0),o.subtype=="time"?C((r(),d("input",S({key:6,type:"time",class:"form-control","onUpdate:modelValue":t[7]||(t[7]=i=>s.value=i)},e.$attrs),null,16)),[[$,s.value]]):u("v-if",!0),o.subtype=="date"?C((r(),d("input",S({key:7,type:"date",ref:"dateInput",class:"form-control","onUpdate:modelValue":t[8]||(t[8]=i=>s.value=i)},e.$attrs),null,16)),[[$,s.value]]):u("v-if",!0),o.subtype=="month"?C((r(),d("input",S({key:8,type:"month",ref:"monthInput",class:"form-control","onUpdate:modelValue":t[9]||(t[9]=i=>s.value=i)},e.$attrs),null,16)),[[$,s.value]]):u("v-if",!0),o.subtype=="year"?C((r(),d("input",S({key:9,type:"number",ref:"yearInput",class:"form-control","onUpdate:modelValue":t[10]||(t[10]=i=>s.value=i)},e.$attrs),null,16)),[[$,s.value]]):u("v-if",!0),o.unit?(r(),d("div",yo,[n("div",ko,_(o.unit),1)])):u("v-if",!0),o.showQuickButtons&&(o.subtype=="date"||o.subtype=="month"||o.subtype=="year")?(r(),d("div",{key:11,class:"input-group-append clickable",onClick:t[11]||(t[11]=i=>s.modify(-1))},Co)):u("v-if",!0),o.showQuickButtons&&(o.subtype=="date"||o.subtype=="month"||o.subtype=="year")?(r(),d("div",{key:12,class:"input-group-append clickable",onClick:t[12]||(t[12]=i=>s.modify(1))},Oo)):u("v-if",!0)])]),l.showHelp?(r(),d("span",$o,[w(e.$slots,"help",{},void 0,!0)])):u("v-if",!0)])])}const xo=b(ro,[["render",To],["__scopeId","data-v-6927d479"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextInput.vue"]]),Io=Object.freeze(Object.defineProperty({__proto__:null,default:xo},Symbol.toStringTag,{value:"Module"}));B.add(I,V);const Vo={name:"OpenwbTextareaInput",inheritAttrs:!1,props:{title:String,modelValue:{String,Object},subtype:{validator:function(e){return["text","json"].indexOf(e)!==-1},default:"text"}},emits:["update:modelValue"],data(){return{showHelp:!1,inputInvalid:!1,tempValue:this.modelValue}},computed:{value:{get(){return this.subtype=="json"?this.inputInvalid?(console.debug("returning invalid String"),this.tempValue):JSON.stringify(this.tempValue,void 0,2):this.modelValue},set(e){if(this.subtype=="json")try{let t=JSON.parse(e);this.inputInvalid=!1,this.$refs.jsonInput.setCustomValidity(""),this.tempValue=t,this.$emit("update:modelValue",t)}catch{console.warn("parsing JSON failed: "+e),this.inputInvalid=!0,this.$refs.jsonInput.setCustomValidity("Ungültiger JSON Ausdruck!"),this.tempValue=e}else this.$emit("update:modelValue",e)}},length:{get(){return this.value!==void 0?this.value.length:0}}},methods:{toggleHelp(){this.showHelp=!this.showHelp&&this.$slots.help!==void 0}},components:{FontAwesomeIcon:O}},Po={class:"form-row mb-1"},Ho={class:"col-md-8"},Mo={class:"form-row"},Do={class:"input-group"},Ao={class:"input-group-prepend"},qo={class:"input-group-text"},Eo={key:2,class:"input-group-append"},Lo={class:"input-group-text"},jo={class:"form-text text-muted text-right"},Wo={key:0,class:"form-row alert alert-info my-1 small"};function Ro(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",Po,[n("label",{onClick:t[0]||(t[0]=(...i)=>s.toggleHelp&&s.toggleHelp(...i)),class:"col-md-4 col-form-label"},[p(_(o.title)+" ",1),e.$slots.help?(r(),v(a,{key:0,icon:l.showHelp?["fas","question-circle"]:["far","question-circle"],class:k(l.showHelp?"text-info":"")},null,8,["icon","class"])):u("v-if",!0)]),n("div",Ho,[n("div",Mo,[n("div",Do,[n("div",Ao,[n("div",qo,[o.subtype=="text"?(r(),v(a,{key:0,"fixed-width":"",icon:["fas","keyboard"]})):u("v-if",!0),o.subtype=="json"?(r(),v(a,{key:1,"fixed-width":"",icon:["fas","code"]})):u("v-if",!0)])]),o.subtype==="json"?C((r(),d("textarea",S({key:0,ref:"jsonInput",class:"form-control","onUpdate:modelValue":t[1]||(t[1]=i=>s.value=i)},e.$attrs),null,16)),[[$,s.value,void 0,{lazy:!0}]]):C((r(),d("textarea",S({key:1,class:"form-control","onUpdate:modelValue":t[2]||(t[2]=i=>s.value=i)},e.$attrs),null,16)),[[$,s.value]]),e.$attrs.maxlength?(r(),d("div",Eo,[n("div",Lo,[n("small",jo,_(s.length)+" / "+_(e.$attrs.maxlength),1)])])):u("v-if",!0)])]),l.showHelp?(r(),d("span",Wo,[w(e.$slots,"help",{},void 0,!0)])):u("v-if",!0)])])}const No=b(Vo,[["render",Ro],["__scopeId","data-v-3d93046b"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseTextarea.vue"]]),Uo=Object.freeze(Object.defineProperty({__proto__:null,default:No},Symbol.toStringTag,{value:"Module"}));const zo={name:"OpenwbToast",emits:["dismiss"],props:{topic:{type:String,required:!0},subtype:{validator:function(e){return["info","success","warning","danger","primary","secondary","light","dark"].indexOf(e)!==-1},default:"secondary"},source:{validator:function(e){return["system","client","command"].indexOf(e)!==-1}},timestamp:{type:Number}},data(){return{handle:void 0,relativeTime:void 0}},methods:{dismiss(){this.$emit("dismiss",{topic:this.topic})},updateRelativeTime(){const e={year:31536e6,month:2628e6,day:864e5,hour:36e5,minute:6e4,second:1e3};var t=new Intl.RelativeTimeFormat("de",{numeric:"auto"});const o=new Date,c=this.timestamp*1e3-o;for(var l in e)if(Math.abs(c)>e[l]){this.relativeTime=t.format(Math.round(c/e[l]),l);break}}},mounted(){this.handle=window.setInterval(this.updateRelativeTime,1e3)},unmounted(){window.clearInterval(this.handle)}},U=e=>(A("data-v-c51b5764"),e=e(),q(),e),Fo=U(()=>n("strong",{class:"pr-2 mr-auto"},"OpenWB",-1)),Go={key:0,class:"time-diff"},Jo=U(()=>n("span",{"aria-hidden":"true"},"×",-1)),Ko=[Jo],Qo={class:"toast-body"};function Yo(e,t,o,c,l,s){return r(),d("div",{class:k(["toast","border-"+o.subtype]),role:"alert"},[n("div",{class:k(["toast-header","bg-"+o.subtype])},[Fo,o.timestamp?(r(),d("small",Go,_(l.relativeTime),1)):u("v-if",!0),n("button",{type:"button",class:"ml-2 mb-1 close","data-dismiss":"toast","aria-label":"Close",onClick:t[0]||(t[0]=(...a)=>s.dismiss&&s.dismiss(...a))},Ko)],2),n("div",Qo,[w(e.$slots,"default",{},void 0,!0)])],2)}const Zo=b(zo,[["render",Yo],["__scopeId","data-v-c51b5764"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbBaseToast.vue"]]),Xo=Object.freeze(Object.defineProperty({__proto__:null,default:Zo},Symbol.toStringTag,{value:"Module"}));B.add(Me);const en={name:"OpenwbNavBar",components:{FontAwesomeIcon:O},computed:{nodeEnv(){return"development"}},watch:{$route(){this.$refs.collapsibleNavbar.classList.remove("show"),this.$refs.navbarButton.classList.add("collapsed"),this.$refs.navbarButton.setAttribute("aria-expanded",!1)}}},P=e=>(A("data-v-e7a6d0c0"),e=e(),q(),e),tn={class:"navbar navbar-expand-lg bg-dark navbar-dark fixed-top"},sn=P(()=>n("a",{class:"navbar-brand",href:"/openWB/web/"},[n("span",null,"openWB")],-1)),on={class:"navbar-toggler",type:"button","data-toggle":"collapse","data-target":"#collapsibleNavbar",ref:"navbarButton"},nn=P(()=>n("span",{class:"navbar-toggler-icon"},null,-1)),an=[nn],ln={class:"collapse navbar-collapse",id:"collapsibleNavbar",ref:"collapsibleNavbar"},rn={class:"navbar-nav"},dn={class:"nav-item"},cn={class:"nav-item dropdown nav-separator-after"},un=P(()=>n("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Auswertungen ",-1)),pn={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},mn={class:"nav-item dropdown"},fn=P(()=>n("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Einstellungen ",-1)),_n={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},hn={class:"nav-item dropdown"},gn=P(()=>n("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Ladeeinstellungen ",-1)),bn={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},vn={class:"nav-item dropdown"},wn=P(()=>n("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Konfiguration ",-1)),yn={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},kn=P(()=>n("div",{class:"dropdown-divider"},null,-1)),Sn=P(()=>n("a",{href:"modules/legacy_smart_home/smarthomeconfig.php",class:"dropdown-item",target:"_blank"}," SmartHome ",-1)),Cn={class:"nav-item dropdown"},Bn=P(()=>n("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," System ",-1)),On={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},$n={key:0,class:"nav-item dropdown nav-separator-before"},Tn=P(()=>n("a",{class:"nav-link dropdown-toggle",href:"#",role:"button","data-toggle":"dropdown","aria-expanded":"false"}," Beispiele ",-1)),xn={class:"dropdown-menu","aria-labelledby":"navbarDropdown"},In={class:"nav-item nav-separator-before"},Vn={class:"nav-link",href:"https://github.com/openWB/core/wiki",target:"_blank"};function Pn(e,t,o,c,l,s){const a=h("router-link"),i=h("font-awesome-icon");return r(),d("nav",tn,[sn,n("button",on,an,512),n("div",ln,[n("ul",rn,[n("li",dn,[m(a,{to:"/Status",class:"nav-link","active-class":"active disabled"},{default:f(()=>[p(" Status ")]),_:1})]),n("li",cn,[un,n("div",pn,[m(a,{to:"/Logging/ChargeLog",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Ladeprotokoll ")]),_:1}),m(a,{to:"/Logging/Chart",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Diagramme ")]),_:1})])]),n("li",mn,[fn,n("div",_n,[m(a,{to:"/GeneralConfig",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Allgemein ")]),_:1}),m(a,{to:"/OptionalComponents",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Optionale Hardware ")]),_:1})])]),n("li",hn,[gn,n("div",bn,[m(a,{to:"/GeneralChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Übergreifendes ")]),_:1}),m(a,{to:"/InstantChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Sofortladen ")]),_:1}),m(a,{to:"/PVChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" PV-Laden ")]),_:1}),m(a,{to:"/TimeChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Zeitladen ")]),_:1}),m(a,{to:"/ScheduledChargeConfig",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Zielladen ")]),_:1})])]),n("li",vn,[wn,n("div",yn,[m(a,{to:"/HardwareInstallation",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Geräte und Komponenten ")]),_:1}),m(a,{to:"/LoadManagementConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Lastmanagement ")]),_:1}),m(a,{to:"/ChargePointInstallation",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Ladepunkte ")]),_:1}),m(a,{to:"/VehicleConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Fahrzeuge ")]),_:1}),kn,Sn])]),n("li",Cn,[Bn,n("div",On,[m(a,{to:"/System/CloudConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" openWB Cloud ")]),_:1}),m(a,{to:"/System/MqttBridgeConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" MQTT-Brücken ")]),_:1}),m(a,{to:"/System/DebugConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Fehlersuche ")]),_:1}),m(a,{to:"/System/Support",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Support ")]),_:1}),m(a,{to:"/System/DataManagement",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Datenverwaltung ")]),_:1}),m(a,{to:"/System/SystemConfiguration",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" System ")]),_:1}),m(a,{to:"/System/LegalSettings",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" Rechtliches ")]),_:1})])]),s.nodeEnv!=="production"?(r(),d("li",$n,[Tn,n("div",xn,[m(a,{to:"/TestingStore",class:"dropdown-item","active-class":"active disabled"},{default:f(()=>[p(" VUEX Store ")]),_:1})])])):u("v-if",!0),n("li",In,[n("a",Vn,[p(" Wiki "),m(i,{"fixed-width":"",icon:["fas","external-link-alt"]})])])])],512)])}const Hn=b(en,[["render",Pn],["__scopeId","data-v-e7a6d0c0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageNavbar.vue"]]);const Mn={name:"OpenwbPageFooter"},Dn={id:"footer",class:"footer bg-dark text-light font-small"},An={class:"container text-center"};function qn(e,t,o,c,l,s){return r(),d("footer",Dn,[n("div",An,[n("small",null," Sie befinden sich hier: Einstellungen / "+_(e.$route.meta.heading),1)])])}const En=b(Mn,[["render",qn],["__scopeId","data-v-3c9a239a"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageFooter.vue"]]);B.add(De);const Ln={name:"OpenwbDonationBanner",components:{FontAwesomeIcon:O}},jn={class:"mt-3 alert alert-dark text-center"},Wn=n("br",null,null,-1),Rn=n("br",null,null,-1),Nn={action:"https://www.paypal.com/cgi-bin/webscr",method:"post",target:"_blank"},Un=n("input",{type:"hidden",name:"cmd",value:"_s-xclick"},null,-1),zn=n("input",{type:"hidden",name:"hosted_button_id",value:"2K8C4Y2JTGH7U"},null,-1),Fn={type:"submit",class:"btn btn-primary"};function Gn(e,t,o,c,l,s){const a=h("font-awesome-icon");return r(),d("div",jn,[p(" Open Source made with love!"),Wn,p(" Jede Spende hilft die Weiterentwicklung von openWB voranzutreiben"),Rn,n("form",Nn,[Un,zn,n("button",Fn,[p(" Spenden "),m(a,{icon:["fab","paypal"]})])])])}const Jn=b(Ln,[["render",Gn],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageDonationBanner.vue"]]),Kn={name:"ComponentState",data(){return{mqttTopicsToSubscribe:[]}},emits:["reset","defaults","save"],computed:{weekdays(){return["Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag","Sonntag"]},chargeModes(){return["instant_charging","pv_charging","scheduled_charging","time_charging","standby","stop"]},mqttClientId(){return this.$root.mqttClientId}},methods:{updateState(e,t,o=void 0){console.debug("updateState:",e,t,o),this.$store.commit({type:"updateTopic",topic:e,objectPath:o,payload:t})},getWildcardIndexList(e,t=!1){let o=e;t||(o="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$");let c=Object.keys(this.$store.state.mqtt).filter(l=>l.match(o));return c.forEach((l,s,a)=>{a[s]=parseInt(l.match(/(?:\/)([0-9]+)(?=\/)*/g)[0].replace(/[^0-9]+/g,""))}),c},getWildcardTopics(e,t=!1){let o=e;return t||(o="^"+e.replaceAll("/","\\/").replaceAll("+","[^+/]+").replaceAll("#","[^#/]+")+"$"),Object.keys(this.$store.state.mqtt).filter(c=>c.match(o)).reduce((c,l)=>({...c,[l]:this.$store.state.mqtt[l]}),{})},formatDate(e,t={year:"numeric",month:"2-digit",day:"2-digit"}){return new Date(e).toLocaleDateString(void 0,t)},formatNumber(e,t=0,o=t,c=1){return(e*c).toLocaleString(void 0,{minimumFractionDigits:t,maximumFractionDigits:o})},formatNumberTopic(e,t=0,o=t,c=1){return this.$store.state.mqtt[e]?this.formatNumber(this.$store.state.mqtt[e],t,o,c):"-"},formatPhaseArrayNumberTopic(e,t=0,o=t,c=1){return this.$store.state.mqtt[e]?this.$store.state.mqtt[e].map(l=>this.formatNumber(l,t,o,c)).join(" / "):"- / - / -"},translateChargeMode(e){switch(e){case"instant_charging":return"Sofort";case"pv_charging":return"PV";case"scheduled_charging":return"Zielladen";case"time_charging":return"Zeitladen";case"standby":return"Standby";case"stop":return"Stop";default:return console.warn("unknown charge mode:",e),e}}},mounted(){this.mqttTopicsToSubscribe.push("openWB/log/"+this.mqttClientId+"/data"),this.mqttTopicsToSubscribe.forEach(e=>{e.includes("#")||e.includes("+")?console.debug("skipping init of wildcard topic:",e):Object.keys(this.$store.state.mqtt).includes(e)?console.error("multiple subscriptions of topic!",e):this.$store.commit("addTopic",{topic:e,payload:void 0})}),this.$root.doSubscribe(this.mqttTopicsToSubscribe)},unmounted(){this.$root.doUnsubscribe(this.mqttTopicsToSubscribe),this.mqttTopicsToSubscribe.forEach(e=>{e.includes("#")||e.includes("+")?(console.debug("expanding wildcard topic:",e),Object.keys(this.getWildcardTopics(e)).forEach(t=>{console.debug("removing wildcardTopic:",t),this.$store.commit("removeTopic",t)})):this.$store.commit("removeTopic",e)})}},z=b(Kn,[["__file","/opt/openWB-dev/openwb-ui-settings/src/components/mixins/ComponentState.vue"]]);const Qn={name:"OpenwbPageMessages",mixins:[z],data(){return{mqttTopicsToSubscribe:["openWB/system/messages/+","openWB/command/"+this.$root.mqttClientId+"/messages/+","openWB/command/"+this.$root.mqttClientId+"/error"]}},computed:{messages(){const e=[];return this.alertData&&e.push({topic:"openWB/command/"+this.$root.mqttClientId+"/error",source:"command",type:"danger",message:`Bei der Verarbeitung des Befehls '<span class="font-weight-bold">`+this.alertData.command+`</span>' mit den Parametern '<span class="font-weight-bold">`+this.alertData.data+"</span>' ist ein Fehler aufgetreten:<br /><pre class='font-weight-bold'>"+this.alertData.error+"</pre>"}),this.systemMessages.forEach(t=>{e.push(t)}),this.clientMessages.forEach(t=>{e.push(t)}),e},alertData(){return this.$store.state.mqtt["openWB/command/"+this.$root.mqttClientId+"/error"]},systemMessages(){let e=this.getWildcardTopics("openWB/system/messages/+");var t=[];for(const[o,c]of Object.entries(e))t.push({topic:o,...c});return t},clientMessages(){let e=this.getWildcardTopics("openWB/command/"+this.$root.mqttClientId+"/messages/+");var t=[];for(const[o,c]of Object.entries(e))t.push({topic:o,...c});return t}},methods:{clearTopic(e){this.$root.doPublish(e,void 0)},dismissError(){this.clearTopic("openWB/command/"+this.$root.mqttClientId+"/error")},dismiss(e){console.debug("removing message: "+e.topic),this.clearTopic(e.topic)}}},Yn={class:"openwb-toast position-fixed bottom-0 right-0 p-3"},Zn=["innerHTML"];function Xn(e,t,o,c,l,s){const a=h("openwb-base-toast");return r(),d("div",Yn,[(r(!0),d(x,null,M(s.messages,i=>(r(),v(a,{key:i.topic,topic:i.topic,source:i.source,subtype:i.type,timestamp:i.timestamp,onDismiss:s.dismiss},{default:f(()=>[n("span",{innerHTML:i.message},null,8,Zn)]),_:2},1032,["topic","source","subtype","timestamp","onDismiss"]))),128))])}const ea=b(Qn,[["render",Xn],["__scopeId","data-v-2c25f0d0"],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageMessages.vue"]]),ta={name:"OpenwbPageBlocker",mixins:[z],data(){return{mqttTopicsToSubscribe:["openWB/system/boot_done","openWB/system/update_in_progress"]}},computed:{title(){return this.bootInProgress||this.updateInProgress?"openWB ist noch nicht bereit":this.reloadRequired?"Neues Laden der Seite erforderlich":"???"},myButtons(){return!(this.bootInProgress||this.updateInProgress)&&this.reloadRequired?[{text:"Jetzt neu laden",subtype:"success",event:"reload"}]:[]},bootInProgress(){return this.$store.state.mqtt["openWB/system/boot_done"]==null?!0:!this.$store.state.mqtt["openWB/system/boot_done"]},updateInProgress(){return this.$store.state.mqtt["openWB/system/update_in_progress"]==null?!1:this.$store.state.mqtt["openWB/system/update_in_progress"]},reloadRequired(){return this.$store.state.local.reloadRequired},showModalBlocker(){return this.bootInProgress||this.updateInProgress||this.reloadRequired}},methods:{handleModalResult(e){e=="reload"?location.reload():console.warn("unknown event",e)}}},sa={class:"openwb-blocker"},oa={key:0},na={key:1},aa={key:2},ia={key:3};function la(e,t,o,c,l,s){const a=h("openwb-base-modal-dialog");return r(),d("div",sa,[m(a,{show:s.showModalBlocker,title:s.title,subtype:"dark",preventClose:!0,buttons:s.myButtons,onModalResult:t[0]||(t[0]=i=>s.handleModalResult(i))},{default:f(()=>[s.bootInProgress?(r(),d("p",oa," Der Systemstart ist noch nicht abgeschlossen. ")):u("v-if",!0),s.updateInProgress?(r(),d("p",na," Es wird eine Systemaktualisierung ausgeführt. ")):u("v-if",!0),!(s.bootInProgress||s.updateInProgress)&&s.reloadRequired?(r(),d("p",aa," Bitte die Seite neu laden. ")):(r(),d("p",ia,"Bitte warten..."))]),_:1},8,["show","title","buttons"])])}const ra=b(ta,[["render",la],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/OpenwbPageBlocker.vue"]]);const da={name:"settings-app",components:{NavBar:Hn,PageFooter:En,DonationBanner:Jn,Messages:ea,Blocker:ra},data(){return{client:{connected:!1},connection:{protocol:location.protocol=="https:"?"wss":"ws",host:location.hostname,port:parseInt(location.port)||(location.protocol=="https:"?443:80),endpoint:"/ws",connectTimeout:4e3,reconnectPeriod:4e3}}},computed:{mqttClientId(){try{return this.client.options.clientId}catch{return}},topicList(){return Object.keys(this.$store.state.mqtt)}},methods:{saveValues(e=void 0){console.debug("saving values...");let t={};e===void 0?t=this.$store.state.mqtt:Array.isArray(e)?e.forEach(o=>{t[o]=this.$store.state.mqtt[o]}):console.error("expected array, got ",typeof e);for(const[o,c]of Object.entries(t)){let l=o.replace("openWB/","openWB/set/");console.debug("saving data:",l,c),this.doPublish(l,c)}},resetValues(e=this.topicList){console.debug("resetting values..."),console.debug("topics: ",e),this.doUnsubscribe(e),this.doSubscribe(e)},setDefaultValues(){console.debug("setting default values... (ToDo)")},sendCommand(e){this.doPublish("openWB/set/command/"+this.client.options.clientId+"/todo",e,!1)},createConnection(){const{protocol:e,host:t,port:o,endpoint:c,...l}=this.connection,s=`${e}://${t}:${o}${c}`;console.debug("connecting to broker:",s);try{this.client=se.connect(s,l)}catch(a){console.error("mqtt.connect error",a)}this.client.on("connect",()=>{console.debug("Connection succeeded! ClientId: ",this.client.options.clientId),this.doSubscribe(["openWB/system/usage_terms_acknowledged"])}),this.client.on("error",a=>{console.error("Connection failed",a)}),this.client.on("message",(a,i)=>{if(i.toString().length>0){let g;try{g=JSON.parse(i.toString())}catch{console.debug("Json parsing failed, fallback to string: ",a),g=i.toString()}this.$store.commit("addTopic",{topic:a,payload:g})}else this.$store.commit("removeTopic",a)})},doSubscribe(e){this.client.subscribe(e,{},t=>{if(t){console.error("Subscribe to topics error",t);return}})},doUnsubscribe(e){this.client.unsubscribe(e,t=>{t&&console.error("Unsubscribe error",t)})},doPublish(e,t,o=!0,c=2){let l={qos:c,retain:o};this.client.publish(e,JSON.stringify(t),l,s=>{s&&console.error("Publish error",s)})},postClientMessage(e,t="secondary"){console.debug("postMessage:",e,t);const o=Date.now(),c="openWB/command/"+this.mqttClientId+"/messages/"+o;this.$store.commit({type:"addTopic",topic:c,payload:{message:e,type:t,source:"client",timestamp:Math.floor(o/1e3)}})}},created(){this.createConnection()}},ca={role:"main",class:"container"},ua={id:"content"};function pa(e,t,o,c,l,s){const a=h("nav-bar"),i=h("router-view"),g=h("donation-banner"),T=h("page-footer"),H=h("messages"),D=h("blocker");return r(),d(x,null,[n("header",null,[m(a)]),n("div",ca,[n("div",ua,[n("h1",null,_(e.$route.meta.heading),1),m(i,{onSave:s.saveValues,onReset:s.resetValues,onDefaults:s.setDefaultValues,onSendCommand:s.sendCommand},null,8,["onSave","onReset","onDefaults","onSendCommand"])]),m(g)]),m(T),m(H),m(D)],64)}const ma=b(da,[["render",pa],["__file","/opt/openWB-dev/openwb-ui-settings/src/App.vue"]]),fa="modulepreload",_a=function(e){return"/openWB/web/settings/"+e},R={},y=function(t,o,c){if(!o||o.length===0)return t();const l=document.getElementsByTagName("link");return Promise.all(o.map(s=>{if(s=_a(s),s in R)return;R[s]=!0;const a=s.endsWith(".css"),i=a?'[rel="stylesheet"]':"";if(!!c)for(let H=l.length-1;H>=0;H--){const D=l[H];if(D.href===s&&(!a||D.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const T=document.createElement("link");if(T.rel=a?"stylesheet":fa,a||(T.as="script",T.crossOrigin=""),T.href=s,document.head.appendChild(T),a)return new Promise((H,D)=>{T.addEventListener("load",H),T.addEventListener("error",()=>D(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())};let F={mqtt:{},local:{reloadRequired:!1},text:{rfidWiki:'Bitte auch hiervon abhängige Einstellungen beachten. Eine Übersicht gibt es im <a href="https://github.com/openWB/core/wiki/Ladung-nur-nach-Freischaltung" target="_blank" rel="noopener noreferrer">Wiki</a>.'}};F.examples={text1:"Text...",text2:"mail@domain.com",text3:"openwb.local",text4:"http://www.openwb.de",text5:"Benutzername",text6:"12:34",text7:"2021-10-31",number1:5,number2:10,password1:"GeHeiM!",textarea1:"Langer Text...",range1:6,range2:10,select1:1,select2:"three",buttonGroup1:1,checkbox1:!0,json1:{text:"Text",number:123},hierarchy1:[{id:0,type:"counter",children:[{id:3,type:"inverter",children:[]},{id:4,type:"bat",children:[]},{id:1,type:"cp",children:[]},{id:2,type:"cp",children:[]}]}],hierarchy1Labels:{0:"EVU",1:"Ladepunkt 1",2:"Ladepunkt 2",3:"Wechselrichter",4:"Batteriespeicher"},tags:["1234","2345","3456"]};const G=oe({state:F,mutations:{storeLocal(e,t){e.local[t.name]=t.value},addTopic(e,t){e.mqtt[t.topic]=t.payload},removeTopic(e,t){delete e.mqtt[t]},updateTopic(e,t){const o=(c,l,s)=>l.split(".").reduce((a,i,g)=>a[i]=l.split(".").length===++g?s:a[i]||{},c);t.topic in e.mqtt?t.objectPath!=null?o(e.mqtt[t.topic],t.objectPath,t.payload):e.mqtt[t.topic]=t.payload:(console.debug("topic not found in state.mqtt: ",t.topic),t.topic in e.examples?t.objectPath!=null?o(e.examples[t.topic],t.objectPath,t.payload):e.examples[t.topic]=t.payload:console.warn("topic not found in state: ",t.topic," giving up"))}},actions:{},modules:{},getters:{usageTermsAcknowledged(e){return new Promise(t=>{if(e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0)t(e.mqtt["openWB/system/usage_terms_acknowledged"]);else{var o,c;o=setTimeout(()=>{clearInterval(c),t(!1)},5e3),c=setInterval(()=>{e.mqtt["openWB/system/usage_terms_acknowledged"]!==void 0&&(clearTimeout(o),clearInterval(c),t(e.mqtt["openWB/system/usage_terms_acknowledged"]))},100)}})}}}),J=[{path:"/",redirect:"/GeneralConfig"},{path:"/Status",name:"Status",meta:{heading:"Status"},component:()=>y(()=>import("./Status-954adcf7.js"),["assets/Status-954adcf7.js","assets/vendor-fortawesome-838df0c9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js","assets/Status-49744ef3.css"])},{path:"/Logging/ChargeLog",name:"ChargeLog",meta:{heading:"Auswertungen - Ladeprotokoll"},component:()=>y(()=>import("./ChargeLog-0999e18c.js"),["assets/ChargeLog-0999e18c.js","assets/vendor-fortawesome-838df0c9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js","assets/ChargeLog-eab2275c.css"])},{path:"/Logging/Chart/:chartRange?/:initialDate?",name:"DailyChart",meta:{heading:"Auswertungen - Diagramme"},component:()=>y(()=>import("./Chart-73a93152.js"),["assets/Chart-73a93152.js","assets/vendor-fortawesome-838df0c9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-chartjs-93103a11.js","assets/vendor-luxon-1af9332f.js","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js","assets/Chart-e20451b4.css"])},{path:"/GeneralConfig",name:"GeneralConfig",meta:{heading:"Einstellungen - Allgemein"},component:()=>y(()=>import("./GeneralConfig-f5ba108a.js"),["assets/GeneralConfig-f5ba108a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-838df0c9.js","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js"])},{path:"/OptionalComponents",name:"OptionalComponents",meta:{heading:"Einstellungen - Optionale Hardware"},component:()=>y(()=>import("./OptionalComponents-4617e1d7.js"),["assets/OptionalComponents-4617e1d7.js","assets/dynamic-import-helper-be004503.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-838df0c9.js","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js"])},{path:"/GeneralChargeConfig",name:"GeneralChargeConfig",meta:{heading:"Ladeeinstellungen - Übergreifendes"},component:()=>y(()=>import("./GeneralChargeConfig-48509d36.js"),["assets/GeneralChargeConfig-48509d36.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-838df0c9.js","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js"])},{path:"/InstantChargeConfig",name:"InstantChargeConfig",meta:{heading:"Ladeeinstellungen - Sofortladen"},component:()=>y(()=>import("./InstantChargeConfig-30b13a1a.js"),["assets/InstantChargeConfig-30b13a1a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-838df0c9.js","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js"])},{path:"/PVChargeConfig",name:"PVChargeConfig",meta:{heading:"Ladeeinstellungen - PV-Laden"},component:()=>y(()=>import("./PVChargeConfig-7b09b63a.js"),["assets/PVChargeConfig-7b09b63a.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-838df0c9.js","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js"])},{path:"/TimeChargeConfig",name:"TimeChargeConfig",meta:{heading:"Ladeeinstellungen - Zeitladen"},component:()=>y(()=>import("./TimeChargeConfig-3a55662f.js"),["assets/TimeChargeConfig-3a55662f.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-838df0c9.js","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js"])},{path:"/ScheduledChargeConfig",name:"ScheduledChargeConfig",meta:{heading:"Ladeeinstellungen - Zielladen"},component:()=>y(()=>import("./ScheduledChargeConfig-5a41484d.js"),["assets/ScheduledChargeConfig-5a41484d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-838df0c9.js","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js"])},{path:"/HardwareInstallation",name:"HardwareInstallation",meta:{heading:"Konfiguration - Geräte und Komponenten"},component:()=>y(()=>import("./HardwareInstallation-02a629c9.js"),["assets/HardwareInstallation-02a629c9.js","assets/vendor-fortawesome-838df0c9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js","assets/HardwareInstallation-1ee9693f.css"])},{path:"/LoadManagementConfiguration",name:"LoadManagementConfiguration",meta:{heading:"Konfiguration - Lastmanagement"},component:()=>y(()=>import("./LoadManagementConfig-ca6e28c3.js"),["assets/LoadManagementConfig-ca6e28c3.js","assets/vendor-fortawesome-838df0c9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/OpenwbSortableList-ac8ac331.js","assets/OpenwbSortableList-15b0be17.css","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js"])},{path:"/ChargePointInstallation",name:"ChargePointInstallation",meta:{heading:"Konfiguration - Ladepunkte"},component:()=>y(()=>import("./ChargePointInstallation-0b5b847e.js"),["assets/ChargePointInstallation-0b5b847e.js","assets/vendor-fortawesome-838df0c9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js","assets/ChargePointInstallation-ed6a5c7e.css"])},{path:"/VehicleConfiguration/:section?/:section_index?/:section_part?/:action?",name:"VehicleConfiguration",meta:{heading:"Konfiguration - Fahrzeuge"},component:()=>y(()=>import("./VehicleConfig-2663db55.js"),["assets/VehicleConfig-2663db55.js","assets/vendor-fortawesome-838df0c9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js","assets/VehicleConfig-4aeda6ca.css"])},{path:"/System/CloudConfiguration",name:"CloudConfig",meta:{heading:"System - openWB Cloud"},component:()=>y(()=>import("./CloudConfig-4d98a70d.js"),["assets/CloudConfig-4d98a70d.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-838df0c9.js","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js"])},{path:"/System/MqttBridgeConfiguration",name:"MqttBridgeConfig",meta:{heading:"System - MQTT-Brücken"},component:()=>y(()=>import("./MqttBridgeConfig-5474c1b1.js"),["assets/MqttBridgeConfig-5474c1b1.js","assets/vendor-fortawesome-838df0c9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js","assets/MqttBridgeConfig-3471079a.css"])},{path:"/System/DebugConfiguration",name:"Debugging",meta:{heading:"System - Fehlersuche"},component:()=>y(()=>import("./DebugConfig-8fb43a78.js"),["assets/DebugConfig-8fb43a78.js","assets/vendor-fortawesome-838df0c9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js"])},{path:"/System/Support",name:"Support",meta:{heading:"System - Support"},component:()=>y(()=>import("./Support-bee6b474.js"),["assets/Support-bee6b474.js","assets/vendor-fortawesome-838df0c9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js"])},{path:"/System/LegalSettings",name:"LegalSettings",meta:{heading:"System - Rechtliches"},component:()=>y(()=>import("./LegalSettings-f8ef4166.js"),["assets/LegalSettings-f8ef4166.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-838df0c9.js","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js"])},{path:"/System/SystemConfiguration",name:"SystemConfig",meta:{heading:"System - System"},component:()=>y(()=>import("./System-c57d9a74.js"),["assets/System-c57d9a74.js","assets/vendor-fortawesome-838df0c9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js","assets/System-0f1d217b.css"])},{path:"/System/DataManagement",name:"DataManagement",meta:{heading:"System - Datenverwaltung"},component:()=>y(()=>import("./DataManagement-f38afa86.js"),["assets/DataManagement-f38afa86.js","assets/vendor-fortawesome-838df0c9.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/dynamic-import-helper-be004503.js","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js"])}];J.push({path:"/TestingStore",name:"VUEX Store",meta:{heading:"Beispiele - VUEX Store"},component:()=>y(()=>import("./TestingStore-1048cc3b.js"),["assets/TestingStore-1048cc3b.js","assets/OpenwbSortableList-ac8ac331.js","assets/vendor-20bb207d.js","assets/vendor-sortablejs-ad1d2cc8.js","assets/vendor-7b9e30aa.css","assets/vendor-fortawesome-838df0c9.js","assets/OpenwbSortableList-15b0be17.css","assets/vendor-bootstrap-d275de6c.js","assets/vendor-jquery-89b63fca.js","assets/vendor-bootstrap-e99e333f.css","assets/vendor-axios-13ef03ae.js"])});const L=ne({history:ae(),routes:J});L.beforeEach(async e=>{if(e.name!=="LegalSettings"&&!await G.getters.usageTermsAcknowledged)return{name:"LegalSettings"}});L.afterEach(e=>{e.meta.heading?document.title="openWB | "+e.meta.heading:document.title="openWB"});const j=ie(ma);j.use(G).use(L).use(Ae,qe);const ha=Object.assign({"./components/OpenwbBaseAlert.vue":We,"./components/OpenwbBaseArrayInput.vue":tt,"./components/OpenwbBaseAvatar.vue":it,"./components/OpenwbBaseButtonGroupInput.vue":ht,"./components/OpenwbBaseButtonInput.vue":Ct,"./components/OpenwbBaseCard.vue":Dt,"./components/OpenwbBaseCheckboxInput.vue":Nt,"./components/OpenwbBaseClickButton.vue":Gt,"./components/OpenwbBaseCopyToClipboard.vue":Zt,"./components/OpenwbBaseHeading.vue":is,"./components/OpenwbBaseModalDialog.vue":hs,"./components/OpenwbBaseNumberInput.vue":xs,"./components/OpenwbBaseRangeInput.vue":Ws,"./components/OpenwbBaseSelectInput.vue":Xs,"./components/OpenwbBaseSubmitButtons.vue":lo,"./components/OpenwbBaseTextInput.vue":Io,"./components/OpenwbBaseTextarea.vue":Uo,"./components/OpenwbBaseToast.vue":Xo});Object.entries(ha).forEach(([e,t])=>{const o=le(re(e.split("/").pop().replace(/\.\w+$/,"")));j.component(o,t.default)});j.mount("#app");export{z as C,y as _};
diff --git a/web/settings/assets/inverter-d63a850e.js b/web/settings/assets/inverter-08367390.js
similarity index 86%
rename from web/settings/assets/inverter-d63a850e.js
rename to web/settings/assets/inverter-08367390.js
index 581d38bcca..0df08313ca 100644
--- a/web/settings/assets/inverter-d63a850e.js
+++ b/web/settings/assets/inverter-08367390.js
@@ -1 +1 @@
-import{_ as c,p as n,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceGoodWeInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-goodwe-inverter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für GoodWe Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/inverter.vue"]]);export{k as default};
+import{_ as c,p as n,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceGoodWeInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-goodwe-inverter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für GoodWe Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/good_we/inverter.vue"]]);export{k as default};
diff --git a/web/settings/assets/inverter-fb25d42c.js b/web/settings/assets/inverter-0fd0b224.js
similarity index 86%
rename from web/settings/assets/inverter-fb25d42c.js
rename to web/settings/assets/inverter-0fd0b224.js
index 945ff453a9..4ca392e360 100644
--- a/web/settings/assets/inverter-fb25d42c.js
+++ b/web/settings/assets/inverter-0fd0b224.js
@@ -1 +1 @@
-import{_ as c,p as t,k as d,l as p,A as o,L as s,u as r,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceFroniusInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fronius-inverter"},m={class:"small"};function v(e,n,b,g,h,w){const i=t("openwb-base-heading"),a=t("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[r(" Einstellungen für Fronius Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(a,{subtype:"info"},{default:s(()=>[r(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/inverter.vue"]]);export{k as default};
+import{_ as c,p as t,k as d,l as p,A as o,L as s,u as r,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceFroniusInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fronius-inverter"},m={class:"small"};function v(e,n,b,g,h,w){const i=t("openwb-base-heading"),a=t("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[r(" Einstellungen für Fronius Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(a,{subtype:"info"},{default:s(()=>[r(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fronius/inverter.vue"]]);export{k as default};
diff --git a/web/settings/assets/inverter-d5ca1a80.js b/web/settings/assets/inverter-135f51a3.js
similarity index 90%
rename from web/settings/assets/inverter-d5ca1a80.js
rename to web/settings/assets/inverter-135f51a3.js
index a160bd4235..044e690288 100644
--- a/web/settings/assets/inverter-d5ca1a80.js
+++ b/web/settings/assets/inverter-135f51a3.js
@@ -1 +1 @@
-import{_ as l,p as o,k as p,l as c,A as i,L as m,u as _,q as b,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceVictronInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-victron-inverter"},V={class:"small"};function w(t,e,a,x,h,u){const r=o("openwb-base-heading"),s=o("openwb-base-number-input"),d=o("openwb-base-button-group-input");return p(),c("div",g,[i(r,null,{default:m(()=>[_(" Einstellungen für Victron Wechselrichter "),b("span",V,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),i(s,{title:"Modbus-ID",min:1,max:255,required:"","model-value":a.configuration.modbus_id,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),i(d,{title:"MPPT",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":a.configuration.mppt,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.mppt"))},null,8,["model-value"])])}const B=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/inverter.vue"]]);export{B as default};
+import{_ as l,p as o,k as p,l as c,A as i,L as m,u as _,q as b,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceVictronInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-victron-inverter"},V={class:"small"};function w(t,e,a,x,h,u){const r=o("openwb-base-heading"),s=o("openwb-base-number-input"),d=o("openwb-base-button-group-input");return p(),c("div",g,[i(r,null,{default:m(()=>[_(" Einstellungen für Victron Wechselrichter "),b("span",V,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),i(s,{title:"Modbus-ID",min:1,max:255,required:"","model-value":a.configuration.modbus_id,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.modbus_id"))},null,8,["model-value"]),i(d,{title:"MPPT",buttons:[{buttonValue:!1,text:"Nein"},{buttonValue:!0,text:"Ja"}],"model-value":a.configuration.mppt,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.mppt"))},null,8,["model-value"])])}const B=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/victron/inverter.vue"]]);export{B as default};
diff --git a/web/settings/assets/inverter-735276eb.js b/web/settings/assets/inverter-15408a2b.js
similarity index 94%
rename from web/settings/assets/inverter-735276eb.js
rename to web/settings/assets/inverter-15408a2b.js
index dc7953b221..fd96a443b1 100644
--- a/web/settings/assets/inverter-735276eb.js
+++ b/web/settings/assets/inverter-15408a2b.js
@@ -1 +1 @@
-import{_ as c,p as u,k as m,l as h,A as a,L as o,u as t,q as n,x as g}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceHttpInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},f={class:"device-http-inverter"},b={class:"small"},v=n("br",null,null,-1),w=n("br",null,null,-1),z=n("br",null,null,-1);function x(i,e,s,k,L,l){const p=u("openwb-base-heading"),d=u("openwb-base-text-input");return m(),h("div",f,[a(p,null,{default:o(()=>[t(" Einstellungen für Http Wechselrichter "),n("span",b,"(Modul: "+g(i.$options.name)+")",1)]),_:1}),a(d,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":s.configuration.power_path,"onUpdate:modelValue":e[0]||(e[0]=r=>l.updateConfiguration(r,"configuration.power_path"))},{help:o(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),v,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) ")]),_:1},8,["model-value"]),a(d,{title:"Pfad für Zählerstand Erzeugung",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":s.configuration.exported_path,"onUpdate:modelValue":e[1]||(e[1]=r=>l.updateConfiguration(r,"configuration.exported_path"))},{help:o(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),w,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),z,t(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ")]),_:1},8,["model-value"])])}const Z=c(_,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/inverter.vue"]]);export{Z as default};
+import{_ as c,p as u,k as m,l as h,A as a,L as o,u as t,q as n,x as g}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceHttpInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},f={class:"device-http-inverter"},b={class:"small"},v=n("br",null,null,-1),w=n("br",null,null,-1),z=n("br",null,null,-1);function x(i,e,s,k,L,l){const p=u("openwb-base-heading"),d=u("openwb-base-text-input");return m(),h("div",f,[a(p,null,{default:o(()=>[t(" Einstellungen für Http Wechselrichter "),n("span",b,"(Modul: "+g(i.$options.name)+")",1)]),_:1}),a(d,{title:"Pfad für Leistung",subtype:"text",required:"",pattern:"^/[-a-zA-Z0-9@:%_\\+.~#?&/=]*","model-value":s.configuration.power_path,"onUpdate:modelValue":e[0]||(e[0]=r=>l.updateConfiguration(r,"configuration.power_path"))},{help:o(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),v,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) ")]),_:1},8,["model-value"]),a(d,{title:"Pfad für Zählerstand Erzeugung",subtype:"text",pattern:"^(/[-a-zA-Z0-9@:%_\\+.~#?&/=]*)","model-value":s.configuration.exported_path,"onUpdate:modelValue":e[1]||(e[1]=r=>l.updateConfiguration(r,"configuration.exported_path"))},{help:o(()=>[t(' Diese Angabe wird an die Server-URL angehängt und muss mit einem Schrägstrich "/" beginnen.'),w,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche den aktuellen absoluten Zählerstand in Wh darstellt."),z,t(" Wird dieses Feld leer gelassen, wird der Zählerstand intern simuliert. ")]),_:1},8,["model-value"])])}const Z=c(_,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/http/inverter.vue"]]);export{Z as default};
diff --git a/web/settings/assets/inverter-c0320c10.js b/web/settings/assets/inverter-1b75ddba.js
similarity index 88%
rename from web/settings/assets/inverter-c0320c10.js
rename to web/settings/assets/inverter-1b75ddba.js
index d9943510b8..1f40dad3b3 100644
--- a/web/settings/assets/inverter-c0320c10.js
+++ b/web/settings/assets/inverter-1b75ddba.js
@@ -1 +1 @@
-import{_ as u,p as n,k as p,l as d,A as o,L as c,u as v,q as _,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const f={name:"DeviceOpenwbPvkitInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-pvkit-inverter"},g={class:"small"};function h(t,e,i,w,x,a){const s=n("openwb-base-heading"),r=n("openwb-base-select-input");return p(),d("div",b,[o(s,null,{default:c(()=>[v(" Einstellungen für openWB PV-Kit Wechselrichter "),_("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),o(r,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>a.updateConfiguration(l,"configuration.version"))},null,8,["model-value"])])}const B=u(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_pv_kit/inverter.vue"]]);export{B as default};
+import{_ as u,p as n,k as p,l as d,A as o,L as c,u as v,q as _,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const f={name:"DeviceOpenwbPvkitInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-pvkit-inverter"},g={class:"small"};function h(t,e,i,w,x,a){const s=n("openwb-base-heading"),r=n("openwb-base-select-input");return p(),d("div",b,[o(s,null,{default:c(()=>[v(" Einstellungen für openWB PV-Kit Wechselrichter "),_("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),o(r,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=l=>a.updateConfiguration(l,"configuration.version"))},null,8,["model-value"])])}const B=u(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_pv_kit/inverter.vue"]]);export{B as default};
diff --git a/web/settings/assets/inverter-0a8a02aa.js b/web/settings/assets/inverter-1c1592c9.js
similarity index 86%
rename from web/settings/assets/inverter-0a8a02aa.js
rename to web/settings/assets/inverter-1c1592c9.js
index 0c80c472c8..981944bec0 100644
--- a/web/settings/assets/inverter-0a8a02aa.js
+++ b/web/settings/assets/inverter-1c1592c9.js
@@ -1 +1 @@
-import{_ as c,p as t,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceFemsInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fems-inverter"},m={class:"small"};function b(e,n,v,g,h,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openEMS, Fenecon FEMS, Kaco Hy-Control Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const E=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/inverter.vue"]]);export{E as default};
+import{_ as c,p as t,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceFemsInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-fems-inverter"},m={class:"small"};function b(e,n,v,g,h,w){const i=t("openwb-base-heading"),r=t("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für openEMS, Fenecon FEMS, Kaco Hy-Control Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const E=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/fems/inverter.vue"]]);export{E as default};
diff --git a/web/settings/assets/inverter-d7dcc616.js b/web/settings/assets/inverter-1f399f0d.js
similarity index 94%
rename from web/settings/assets/inverter-d7dcc616.js
rename to web/settings/assets/inverter-1f399f0d.js
index 2242b9955d..0c27a0da4a 100644
--- a/web/settings/assets/inverter-d7dcc616.js
+++ b/web/settings/assets/inverter-1f399f0d.js
@@ -1 +1 @@
-import{_ as d,p as o,k as c,l,A as n,L as p,u as _,q as f,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceKostalPikoInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-kostalpiko-inverter"},g={class:"small"};function h(t,e,a,k,x,i){const s=o("openwb-base-heading"),r=o("openwb-base-button-group-input");return c(),l("div",v,[n(s,null,{default:p(()=>[_(" Einstellungen für Kostal Piko Wechselrichter "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(r,{title:"Speicher",buttons:[{buttonValue:!1,text:"nicht vorhanden"},{buttonValue:!0,text:"vorhanden"}],"model-value":a.configuration.bat_configured,"onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.bat_configured"))},null,8,["model-value"])])}const B=d(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko/inverter.vue"]]);export{B as default};
+import{_ as d,p as o,k as c,l,A as n,L as p,u as _,q as f,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceKostalPikoInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-kostalpiko-inverter"},g={class:"small"};function h(t,e,a,k,x,i){const s=o("openwb-base-heading"),r=o("openwb-base-button-group-input");return c(),l("div",v,[n(s,null,{default:p(()=>[_(" Einstellungen für Kostal Piko Wechselrichter "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(r,{title:"Speicher",buttons:[{buttonValue:!1,text:"nicht vorhanden"},{buttonValue:!0,text:"vorhanden"}],"model-value":a.configuration.bat_configured,"onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.bat_configured"))},null,8,["model-value"])])}const B=d(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko/inverter.vue"]]);export{B as default};
diff --git a/web/settings/assets/inverter-57f7e67c.js b/web/settings/assets/inverter-267fccce.js
similarity index 86%
rename from web/settings/assets/inverter-57f7e67c.js
rename to web/settings/assets/inverter-267fccce.js
index 9c3a0f3888..537134ccc5 100644
--- a/web/settings/assets/inverter-57f7e67c.js
+++ b/web/settings/assets/inverter-267fccce.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceBatterXInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-batterx-inverter"},m={class:"small"};function b(e,t,v,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return p(),d("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für BatterX Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/inverter.vue"]]);export{$ as default};
+import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceBatterXInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-batterx-inverter"},m={class:"small"};function b(e,t,v,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return p(),d("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für BatterX Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const $=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/batterx/inverter.vue"]]);export{$ as default};
diff --git a/web/settings/assets/inverter-3b84e31d.js b/web/settings/assets/inverter-326280ce.js
similarity index 86%
rename from web/settings/assets/inverter-3b84e31d.js
rename to web/settings/assets/inverter-326280ce.js
index b0599a5871..b18980b680 100644
--- a/web/settings/assets/inverter-3b84e31d.js
+++ b/web/settings/assets/inverter-326280ce.js
@@ -1 +1 @@
-import{_ as c,p as n,k as l,l as p,A as o,L as s,u as a,q as d,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceQCelllsInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-qcells-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return l(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für QCells ESS Wechselrichter "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/inverter.vue"]]);export{x as default};
+import{_ as c,p as n,k as l,l as p,A as o,L as s,u as a,q as d,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceQCelllsInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-qcells-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return l(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für QCells ESS Wechselrichter "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/qcells/inverter.vue"]]);export{x as default};
diff --git a/web/settings/assets/inverter-4ed4378e.js b/web/settings/assets/inverter-3d45d55a.js
similarity index 91%
rename from web/settings/assets/inverter-4ed4378e.js
rename to web/settings/assets/inverter-3d45d55a.js
index 133551988a..9645690a31 100644
--- a/web/settings/assets/inverter-4ed4378e.js
+++ b/web/settings/assets/inverter-3d45d55a.js
@@ -1 +1 @@
-import{_ as l,p as o,k as f,l as _,A as r,L as i,u as t,q as s,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DevicePowerfoxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-powerfox-inverter"},g={class:"small"},h=s("a",{href:"https://backend.powerfox.energy/api/2.0/my/all/devices",target:"_blank",rel:"noopener noreferrer"}," https://backend.powerfox.energy/api/2.0/my/all/devices ",-1);function w(n,e,a,x,D,d){const u=o("openwb-base-heading"),c=o("openwb-base-text-input");return f(),_("div",v,[r(u,null,{default:i(()=>[t(" Einstellungen für Powerfox Wechselrichter "),s("span",g,"(Modul: "+m(n.$options.name)+")",1)]),_:1}),r(c,{title:"ID",required:"","model-value":a.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.id"))},{help:i(()=>[t(" Um die ID herauszufinden mit dem Browser die Adresse "),h,t(" aufrufen und dort Benutzername und Passwort eingeben. Die Device ID ist exakt so einzutragen, wie in der Antwort des Servers. Das bedeutet insbesondere auch, die Groß-/KLeinschreibung ist zu beachten! ")]),_:1},8,["model-value"])])}const B=l(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/inverter.vue"]]);export{B as default};
+import{_ as l,p as o,k as f,l as _,A as r,L as i,u as t,q as s,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DevicePowerfoxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-powerfox-inverter"},g={class:"small"},h=s("a",{href:"https://backend.powerfox.energy/api/2.0/my/all/devices",target:"_blank",rel:"noopener noreferrer"}," https://backend.powerfox.energy/api/2.0/my/all/devices ",-1);function w(n,e,a,x,D,d){const u=o("openwb-base-heading"),c=o("openwb-base-text-input");return f(),_("div",v,[r(u,null,{default:i(()=>[t(" Einstellungen für Powerfox Wechselrichter "),s("span",g,"(Modul: "+m(n.$options.name)+")",1)]),_:1}),r(c,{title:"ID",required:"","model-value":a.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.id"))},{help:i(()=>[t(" Um die ID herauszufinden mit dem Browser die Adresse "),h,t(" aufrufen und dort Benutzername und Passwort eingeben. Die Device ID ist exakt so einzutragen, wie in der Antwort des Servers. Das bedeutet insbesondere auch, die Groß-/KLeinschreibung ist zu beachten! ")]),_:1},8,["model-value"])])}const B=l(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerfox/inverter.vue"]]);export{B as default};
diff --git a/web/settings/assets/inverter-f900cffa.js b/web/settings/assets/inverter-3d819a6f.js
similarity index 86%
rename from web/settings/assets/inverter-f900cffa.js
rename to web/settings/assets/inverter-3d819a6f.js
index d39def9f2d..c03a3127ff 100644
--- a/web/settings/assets/inverter-f900cffa.js
+++ b/web/settings/assets/inverter-3d819a6f.js
@@ -1 +1 @@
-import{_ as c,p as n,k as l,l as p,A as o,L as s,u as a,q as d,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceShellyInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-shelly-inverter"},m={class:"small"};function h(e,t,b,v,g,y){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return l(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Shelly Wechselrichter "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/shelly/inverter.vue"]]);export{x as default};
+import{_ as c,p as n,k as l,l as p,A as o,L as s,u as a,q as d,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceShellyInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-shelly-inverter"},m={class:"small"};function h(e,t,b,v,g,y){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return l(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Shelly Wechselrichter "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/shelly/inverter.vue"]]);export{x as default};
diff --git a/web/settings/assets/inverter-ae905211.js b/web/settings/assets/inverter-3fdb1742.js
similarity index 86%
rename from web/settings/assets/inverter-ae905211.js
rename to web/settings/assets/inverter-3fdb1742.js
index fde29c139d..7a85e975fc 100644
--- a/web/settings/assets/inverter-ae905211.js
+++ b/web/settings/assets/inverter-3fdb1742.js
@@ -1 +1 @@
-import{_ as c,p as t,k as d,l as p,A as o,L as s,u as r,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSungrowInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sungrow-inverter"},m={class:"small"};function g(e,n,v,b,h,w){const a=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),p("div",f,[o(a,null,{default:s(()=>[r(" Einstellungen für Sungrow Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[r(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/inverter.vue"]]);export{k as default};
+import{_ as c,p as t,k as d,l as p,A as o,L as s,u as r,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSungrowInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sungrow-inverter"},m={class:"small"};function g(e,n,v,b,h,w){const a=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),p("div",f,[o(a,null,{default:s(()=>[r(" Einstellungen für Sungrow Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[r(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sungrow/inverter.vue"]]);export{k as default};
diff --git a/web/settings/assets/inverter-e383405a.js b/web/settings/assets/inverter-40f5b027.js
similarity index 93%
rename from web/settings/assets/inverter-e383405a.js
rename to web/settings/assets/inverter-40f5b027.js
index b3d7d1d7ee..64ec704cdf 100644
--- a/web/settings/assets/inverter-e383405a.js
+++ b/web/settings/assets/inverter-40f5b027.js
@@ -1 +1 @@
-import{_ as u,p as s,k as _,l as m,A as t,L as o,u as n,q as e,x as a}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const h={name:"DeviceMqttInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(i,l=void 0){this.$emit("update:configuration",{value:i,object:l})}}},b={class:"device-mqtt-inverter"},f={class:"small"},g=e("br",null,null,-1),v=e("span",{class:"text-info"},"-123",-1),w=e("br",null,null,-1),x=e("br",null,null,-1),z=e("span",{class:"text-info"},"123.45",-1);function k(i,l,r,B,I,y){const p=s("openwb-base-heading"),c=s("openwb-base-copy-to-clipboard"),d=s("openwb-base-alert");return _(),m("div",b,[t(p,null,{default:o(()=>[n(" Einstellungen für MQTT Wechselrichter "),e("span",f,"(Modul: "+a(i.$options.name)+")",1)]),_:1}),t(d,{subtype:"info"},{default:o(()=>[e("ul",null,[e("li",null,[t(c,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[n("openWB/set/pv/"+a(r.componentId)+"/get/power",1)]),_:1}),g,n(" PV-Leistung in Watt als Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) Beispiel: "),v]),e("li",null,[t(c,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[n("openWB/set/pv/"+a(r.componentId)+"/get/exported",1)]),_:1}),w,n(" Erzeugte Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),x,n(" Beispiel: "),z])])]),_:1})])}const V=u(h,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/inverter.vue"]]);export{V as default};
+import{_ as u,p as s,k as _,l as m,A as t,L as o,u as n,q as e,x as a}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const h={name:"DeviceMqttInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(i,l=void 0){this.$emit("update:configuration",{value:i,object:l})}}},b={class:"device-mqtt-inverter"},f={class:"small"},g=e("br",null,null,-1),v=e("span",{class:"text-info"},"-123",-1),w=e("br",null,null,-1),x=e("br",null,null,-1),z=e("span",{class:"text-info"},"123.45",-1);function k(i,l,r,B,I,y){const p=s("openwb-base-heading"),c=s("openwb-base-copy-to-clipboard"),d=s("openwb-base-alert");return _(),m("div",b,[t(p,null,{default:o(()=>[n(" Einstellungen für MQTT Wechselrichter "),e("span",f,"(Modul: "+a(i.$options.name)+")",1)]),_:1}),t(d,{subtype:"info"},{default:o(()=>[e("ul",null,[e("li",null,[t(c,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[n("openWB/set/pv/"+a(r.componentId)+"/get/power",1)]),_:1}),g,n(" PV-Leistung in Watt als Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) Beispiel: "),v]),e("li",null,[t(c,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[n("openWB/set/pv/"+a(r.componentId)+"/get/exported",1)]),_:1}),w,n(" Erzeugte Energie in Wh, Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen, nur positiv"),x,n(" Beispiel: "),z])])]),_:1})])}const V=u(h,[["render",k],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/mqtt/inverter.vue"]]);export{V as default};
diff --git a/web/settings/assets/inverter-89a115de.js b/web/settings/assets/inverter-47bedabe.js
similarity index 86%
rename from web/settings/assets/inverter-89a115de.js
rename to web/settings/assets/inverter-47bedabe.js
index 9d109c2ac2..ba4d11449e 100644
--- a/web/settings/assets/inverter-89a115de.js
+++ b/web/settings/assets/inverter-47bedabe.js
@@ -1 +1 @@
-import{_ as c,p as t,k as d,l as p,A as o,L as s,u as i,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSiemensInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-siemens-inverter"},f={class:"small"};function v(e,n,b,g,h,w){const a=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),p("div",m,[o(a,null,{default:s(()=>[i(" Einstellungen für Siemens Wechselrichter "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[i(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/inverter.vue"]]);export{k as default};
+import{_ as c,p as t,k as d,l as p,A as o,L as s,u as i,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSiemensInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},m={class:"device-siemens-inverter"},f={class:"small"};function v(e,n,b,g,h,w){const a=t("openwb-base-heading"),r=t("openwb-base-alert");return d(),p("div",m,[o(a,null,{default:s(()=>[i(" Einstellungen für Siemens Wechselrichter "),u("span",f,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[i(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/siemens/inverter.vue"]]);export{k as default};
diff --git a/web/settings/assets/inverter-aba6e6d2.js b/web/settings/assets/inverter-4c98a82a.js
similarity index 94%
rename from web/settings/assets/inverter-aba6e6d2.js
rename to web/settings/assets/inverter-4c98a82a.js
index 0025066b00..ffbbc83d4b 100644
--- a/web/settings/assets/inverter-aba6e6d2.js
+++ b/web/settings/assets/inverter-4c98a82a.js
@@ -1 +1 @@
-import{_ as d,p as n,k as c,l,A as o,L as p,u as m,q as _,x as g}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const f={name:"DeviceHuaweiSmartLoggerInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-huawei-smart-logger-inverter"},v={class:"small"};function h(t,e,a,w,x,i){const r=n("openwb-base-heading"),s=n("openwb-base-number-input");return c(),l("div",b,[o(r,null,{default:p(()=>[m(" Einstellungen für Huawei SmartLogger Wechselrichter "),_("span",v,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),o(s,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.modbus_id"))},null,8,["model-value"])])}const I=d(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/inverter.vue"]]);export{I as default};
+import{_ as d,p as n,k as c,l,A as o,L as p,u as m,q as _,x as g}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const f={name:"DeviceHuaweiSmartLoggerInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-huawei-smart-logger-inverter"},v={class:"small"};function h(t,e,a,w,x,i){const r=n("openwb-base-heading"),s=n("openwb-base-number-input");return c(),l("div",b,[o(r,null,{default:p(()=>[m(" Einstellungen für Huawei SmartLogger Wechselrichter "),_("span",v,"(Modul: "+g(t.$options.name)+")",1)]),_:1}),o(s,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=u=>i.updateConfiguration(u,"configuration.modbus_id"))},null,8,["model-value"])])}const I=d(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei_smartlogger/inverter.vue"]]);export{I as default};
diff --git a/web/settings/assets/inverter-66b1df21.js b/web/settings/assets/inverter-508f415f.js
similarity index 89%
rename from web/settings/assets/inverter-66b1df21.js
rename to web/settings/assets/inverter-508f415f.js
index 40e718c06a..ae515d5550 100644
--- a/web/settings/assets/inverter-66b1df21.js
+++ b/web/settings/assets/inverter-508f415f.js
@@ -1 +1 @@
-import{_ as c,p as o,k as l,l as d,A as n,L as p,u as _,q as f,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceKostalStecaInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-kostal-steca-inverter"},g={class:"small"};function h(t,e,a,k,x,s){const i=o("openwb-base-heading"),r=o("openwb-base-button-group-input");return l(),d("div",v,[n(i,null,{default:p(()=>[_(" Einstellungen für Kostal Piko MP oder Steca Grid Coolcept Wechselrichter "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(r,{title:"Variante",buttons:[{buttonValue:!1,text:"Kostal Piko MP (non-plus)"},{buttonValue:!0,text:"Kostal Piko MP oder Steca Grid Coolcept"}],"model-value":a.configuration.variant_steca,"onUpdate:modelValue":e[0]||(e[0]=u=>s.updateConfiguration(u,"configuration.variant_steca"))},null,8,["buttons","model-value"])])}const C=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_steca/inverter.vue"]]);export{C as default};
+import{_ as c,p as o,k as l,l as d,A as n,L as p,u as _,q as f,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceKostalStecaInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-kostal-steca-inverter"},g={class:"small"};function h(t,e,a,k,x,s){const i=o("openwb-base-heading"),r=o("openwb-base-button-group-input");return l(),d("div",v,[n(i,null,{default:p(()=>[_(" Einstellungen für Kostal Piko MP oder Steca Grid Coolcept Wechselrichter "),f("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),n(r,{title:"Variante",buttons:[{buttonValue:!1,text:"Kostal Piko MP (non-plus)"},{buttonValue:!0,text:"Kostal Piko MP oder Steca Grid Coolcept"}],"model-value":a.configuration.variant_steca,"onUpdate:modelValue":e[0]||(e[0]=u=>s.updateConfiguration(u,"configuration.variant_steca"))},null,8,["buttons","model-value"])])}const C=c(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_steca/inverter.vue"]]);export{C as default};
diff --git a/web/settings/assets/inverter-da627431.js b/web/settings/assets/inverter-5b0c8748.js
similarity index 93%
rename from web/settings/assets/inverter-da627431.js
rename to web/settings/assets/inverter-5b0c8748.js
index 6cf8869c19..8fd1584fc1 100644
--- a/web/settings/assets/inverter-da627431.js
+++ b/web/settings/assets/inverter-5b0c8748.js
@@ -1 +1 @@
-import{_ as c,p as l,k as m,l as _,A as i,L as r,u as t,q as u,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceJsonInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},h={class:"device-json-inverter"},w={class:"small"},b=u("br",null,null,-1);function v(n,e,s,j,x,a){const p=l("openwb-base-heading"),d=l("openwb-base-text-input");return m(),_("div",h,[i(p,null,{default:r(()=>[t(" Einstellungen für JSON Wechselrichter "),u("span",w,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),i(d,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":s.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.jq_power"))},{help:r(()=>[t(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. '),b,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) ")]),_:1},8,["model-value"]),i(d,{title:"Abfrage für Zählerstand",subtype:"text","model-value":s.configuration.jq_exported,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.jq_exported"))},{help:r(()=>[t(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"])])}const P=c(g,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/inverter.vue"]]);export{P as default};
+import{_ as c,p as l,k as m,l as _,A as i,L as r,u as t,q as u,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceJsonInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},h={class:"device-json-inverter"},w={class:"small"},b=u("br",null,null,-1);function v(n,e,s,j,x,a){const p=l("openwb-base-heading"),d=l("openwb-base-text-input");return m(),_("div",h,[i(p,null,{default:r(()=>[t(" Einstellungen für JSON Wechselrichter "),u("span",w,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),i(d,{title:"Abfrage für Leistung",subtype:"text",required:"","model-value":s.configuration.jq_power,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.jq_power"))},{help:r(()=>[t(' Zur Analyse der Werte aus dem json-Objekt wird jq benutzt. Ist die Json Antwort z.B. {"PowerInstalledPeak":4655, "PowerProduced":132, "PowerOut":897.08172362555717, "PowerSelfSupplied":234.9182763744428} So muss hier .PowerOut eingetragen werden. '),b,t(" Es wird vom Server eine Zahl mit oder ohne Nachkommastellen (Float, Integer) und einem Punkt als Dezimaltrennzeichen erwartet, welche die aktuelle Leistung in Watt darstellt. Produzierte Leistung muss ein negatives Vorzeichen haben. (In bestimmten Konstellationen, z.B. wenn ein Hybridsystem über einen zweiten Wechselrichter geladen wird, hat die Leistung ein positives Vorzeichen.) ")]),_:1},8,["model-value"]),i(d,{title:"Abfrage für Zählerstand",subtype:"text","model-value":s.configuration.jq_exported,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.jq_exported"))},{help:r(()=>[t(" Wird dieses Feld leer gelassen, dann werden Zählerstände intern simuliert. ")]),_:1},8,["model-value"])])}const P=c(g,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/json/inverter.vue"]]);export{P as default};
diff --git a/web/settings/assets/inverter-a4f4de69.js b/web/settings/assets/inverter-5cfbe42d.js
similarity index 86%
rename from web/settings/assets/inverter-a4f4de69.js
rename to web/settings/assets/inverter-5cfbe42d.js
index a44fea1536..f17d6ee39d 100644
--- a/web/settings/assets/inverter-a4f4de69.js
+++ b/web/settings/assets/inverter-5cfbe42d.js
@@ -1 +1 @@
-import{_ as c,p as n,k as d,l as p,A as o,L as s,u as a,q as l,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSolaxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solax-inverter"},m={class:"small"};function v(e,t,b,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Solax Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/inverter.vue"]]);export{k as default};
+import{_ as c,p as n,k as d,l as p,A as o,L as s,u as a,q as l,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSolaxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solax-inverter"},m={class:"small"};function v(e,t,b,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Solax Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solax/inverter.vue"]]);export{k as default};
diff --git a/web/settings/assets/inverter-983f9bf4.js b/web/settings/assets/inverter-5d68f662.js
similarity index 93%
rename from web/settings/assets/inverter-983f9bf4.js
rename to web/settings/assets/inverter-5d68f662.js
index 09d5a29ac5..ec89542a32 100644
--- a/web/settings/assets/inverter-983f9bf4.js
+++ b/web/settings/assets/inverter-5d68f662.js
@@ -1 +1 @@
-import{_ as u,p as o,k as c,l,A as t,L as p,u as m,q as _,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceSolarEdgeInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-solaredge-inverter"},v={class:"small"};function h(n,e,a,w,x,i){const s=o("openwb-base-heading"),r=o("openwb-base-number-input");return c(),l("div",g,[t(s,null,{default:p(()=>[m(" Einstellungen für SolarEdge Wechselrichter "),_("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),t(r,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const E=u(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/inverter.vue"]]);export{E as default};
+import{_ as u,p as o,k as c,l,A as t,L as p,u as m,q as _,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceSolarEdgeInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-solaredge-inverter"},v={class:"small"};function h(n,e,a,w,x,i){const s=o("openwb-base-heading"),r=o("openwb-base-number-input");return c(),l("div",g,[t(s,null,{default:p(()=>[m(" Einstellungen für SolarEdge Wechselrichter "),_("span",v,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),t(r,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const E=u(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solaredge/inverter.vue"]]);export{E as default};
diff --git a/web/settings/assets/inverter-6afece8c.js b/web/settings/assets/inverter-6ce20d89.js
similarity index 90%
rename from web/settings/assets/inverter-6afece8c.js
rename to web/settings/assets/inverter-6ce20d89.js
index 70be004d48..a2decfca8c 100644
--- a/web/settings/assets/inverter-6afece8c.js
+++ b/web/settings/assets/inverter-6ce20d89.js
@@ -1 +1 @@
-import{_ as p,p as t,k as m,l as _,A as o,L as s,u as i,q as f,x as h}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceSmahmInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-smahm-inverter"},v={class:"small"};function w(n,e,r,M,x,a){const u=t("openwb-base-heading"),d=t("openwb-base-alert"),c=t("openwb-base-number-input");return m(),_("div",g,[o(u,null,{default:s(()=>[i(" Einstellungen für SMA-HM/EM Wechselrichter "),f("span",v,"(Modul: "+h(n.$options.name)+")",1)]),_:1}),o(d,{subtype:"info"},{default:s(()=>[i(' Dies ist nur die richtige Komponente, wenn ein extra EnergyMeter ausschließlich für die PV-Messung vorhanden ist. Wenn nur ein HomeManager vorhanden ist, muss ein Gerät "SMA Sunny Boy" mit der entsprechenden Wechselrichter-Komponente angelegt werden. ')]),_:1}),o(c,{title:"Seriennummer",required:"","model-value":r.configuration.serials,"onUpdate:modelValue":e[0]||(e[0]=l=>a.updateConfiguration(l,"configuration.serials"))},null,8,["model-value"])])}const B=p(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_shm/inverter.vue"]]);export{B as default};
+import{_ as p,p as t,k as m,l as _,A as o,L as s,u as i,q as f,x as h}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceSmahmInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},g={class:"device-smahm-inverter"},v={class:"small"};function w(n,e,r,M,x,a){const u=t("openwb-base-heading"),d=t("openwb-base-alert"),c=t("openwb-base-number-input");return m(),_("div",g,[o(u,null,{default:s(()=>[i(" Einstellungen für SMA-HM/EM Wechselrichter "),f("span",v,"(Modul: "+h(n.$options.name)+")",1)]),_:1}),o(d,{subtype:"info"},{default:s(()=>[i(' Dies ist nur die richtige Komponente, wenn ein extra EnergyMeter ausschließlich für die PV-Messung vorhanden ist. Wenn nur ein HomeManager vorhanden ist, muss ein Gerät "SMA Sunny Boy" mit der entsprechenden Wechselrichter-Komponente angelegt werden. ')]),_:1}),o(c,{title:"Seriennummer",required:"","model-value":r.configuration.serials,"onUpdate:modelValue":e[0]||(e[0]=l=>a.updateConfiguration(l,"configuration.serials"))},null,8,["model-value"])])}const B=p(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_shm/inverter.vue"]]);export{B as default};
diff --git a/web/settings/assets/inverter-b33414cf.js b/web/settings/assets/inverter-7f5cbd1f.js
similarity index 89%
rename from web/settings/assets/inverter-b33414cf.js
rename to web/settings/assets/inverter-7f5cbd1f.js
index 941e5fd81c..ca85de6e7c 100644
--- a/web/settings/assets/inverter-b33414cf.js
+++ b/web/settings/assets/inverter-7f5cbd1f.js
@@ -1 +1 @@
-import{_ as u,p as o,k as p,l as m,A as n,L as a,u as i,q as _,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceSolarViewInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-solar-view-inverter"},h={class:"small"};function b(t,e,r,w,x,s){const d=o("openwb-base-heading"),c=o("openwb-base-text-input");return p(),m("div",g,[n(d,null,{default:a(()=>[i(" Einstellungen für SolarView Wechselrichter "),_("span",h,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(c,{title:"Kommando für die Abfrage",required:"","model-value":r.configuration.command,"onUpdate:modelValue":e[0]||(e[0]=l=>s.updateConfiguration(l,"configuration.command"))},{help:a(()=>[i(" Kommandos gemäß SolarView-Dokumentation, z.B.: 00* (gesamte Anlage), 01* (Wechselrichter 1), 02* (Wechselrichter 2) ")]),_:1},8,["model-value"])])}const k=u(v,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/inverter.vue"]]);export{k as default};
+import{_ as u,p as o,k as p,l as m,A as n,L as a,u as i,q as _,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceSolarViewInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-solar-view-inverter"},h={class:"small"};function b(t,e,r,w,x,s){const d=o("openwb-base-heading"),c=o("openwb-base-text-input");return p(),m("div",g,[n(d,null,{default:a(()=>[i(" Einstellungen für SolarView Wechselrichter "),_("span",h,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(c,{title:"Kommando für die Abfrage",required:"","model-value":r.configuration.command,"onUpdate:modelValue":e[0]||(e[0]=l=>s.updateConfiguration(l,"configuration.command"))},{help:a(()=>[i(" Kommandos gemäß SolarView-Dokumentation, z.B.: 00* (gesamte Anlage), 01* (Wechselrichter 1), 02* (Wechselrichter 2) ")]),_:1},8,["model-value"])])}const k=u(v,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_view/inverter.vue"]]);export{k as default};
diff --git a/web/settings/assets/inverter-be294b52.js b/web/settings/assets/inverter-86ab0f22.js
similarity index 86%
rename from web/settings/assets/inverter-be294b52.js
rename to web/settings/assets/inverter-86ab0f22.js
index 6eef22d36d..45e482b584 100644
--- a/web/settings/assets/inverter-be294b52.js
+++ b/web/settings/assets/inverter-86ab0f22.js
@@ -1 +1 @@
-import{_ as c,p as n,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceHuaweiInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-huawei-inverter"},m={class:"small"};function v(e,t,b,h,g,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Huawei Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/inverter.vue"]]);export{k as default};
+import{_ as c,p as n,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceHuaweiInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-huawei-inverter"},m={class:"small"};function v(e,t,b,h,g,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Huawei Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/huawei/inverter.vue"]]);export{k as default};
diff --git a/web/settings/assets/inverter-8ebf65c2.js b/web/settings/assets/inverter-89491124.js
similarity index 96%
rename from web/settings/assets/inverter-8ebf65c2.js
rename to web/settings/assets/inverter-89491124.js
index 6cbe4c2afb..1d3b0d5534 100644
--- a/web/settings/assets/inverter-8ebf65c2.js
+++ b/web/settings/assets/inverter-89491124.js
@@ -1 +1 @@
-import{_ as c,p as o,k as _,l as m,A as a,L as s,u,q as b,x as v}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const f={name:"DeviceSunnyBoyInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-sunnyboy-inverter"},y={class:"small"};function h(t,e,i,w,S,r){const d=o("openwb-base-heading"),l=o("openwb-base-button-group-input"),p=o("openwb-base-select-input");return _(),m("div",g,[a(d,null,{default:s(()=>[u(" Einstellungen für SMA Sunny Boy/Tripower Wechselrichter "),b("span",y,"(Modul: "+v(t.$options.name)+")",1)]),_:1}),a(l,{title:"Hybrid-System",buttons:[{buttonValue:!1,text:"nicht vorhanden"},{buttonValue:!0,text:"vorhanden"}],"model-value":i.configuration.hybrid,"onUpdate:modelValue":e[0]||(e[0]=n=>r.updateConfiguration(n,"configuration.hybrid"))},{help:s(()=>[u(" Diese Option aktivieren, wenn ein Tripower Smart Energy, Sunny Boy Smart Energy oder ein anderes Hybrid-System verbaut ist. ")]),_:1},8,["model-value"]),a(p,{title:"Version",notSelected:"Bitte auswählen",options:[{value:0,text:"Standard"},{value:1,text:"Core-2"},{value:2,text:"Data Manager/Cluster Controller"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[1]||(e[1]=n=>r.updateConfiguration(n,"configuration.version"))},null,8,["model-value"])])}const C=c(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/inverter.vue"]]);export{C as default};
+import{_ as c,p as o,k as _,l as m,A as a,L as s,u,q as b,x as v}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const f={name:"DeviceSunnyBoyInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-sunnyboy-inverter"},y={class:"small"};function h(t,e,i,w,S,r){const d=o("openwb-base-heading"),l=o("openwb-base-button-group-input"),p=o("openwb-base-select-input");return _(),m("div",g,[a(d,null,{default:s(()=>[u(" Einstellungen für SMA Sunny Boy/Tripower Wechselrichter "),b("span",y,"(Modul: "+v(t.$options.name)+")",1)]),_:1}),a(l,{title:"Hybrid-System",buttons:[{buttonValue:!1,text:"nicht vorhanden"},{buttonValue:!0,text:"vorhanden"}],"model-value":i.configuration.hybrid,"onUpdate:modelValue":e[0]||(e[0]=n=>r.updateConfiguration(n,"configuration.hybrid"))},{help:s(()=>[u(" Diese Option aktivieren, wenn ein Tripower Smart Energy, Sunny Boy Smart Energy oder ein anderes Hybrid-System verbaut ist. ")]),_:1},8,["model-value"]),a(p,{title:"Version",notSelected:"Bitte auswählen",options:[{value:0,text:"Standard"},{value:1,text:"Core-2"},{value:2,text:"Data Manager/Cluster Controller"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[1]||(e[1]=n=>r.updateConfiguration(n,"configuration.version"))},null,8,["model-value"])])}const C=c(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_sunny_boy/inverter.vue"]]);export{C as default};
diff --git a/web/settings/assets/inverter-b6d89f35.js b/web/settings/assets/inverter-8c6dadd9.js
similarity index 86%
rename from web/settings/assets/inverter-b6d89f35.js
rename to web/settings/assets/inverter-8c6dadd9.js
index f41f140db7..0762908243 100644
--- a/web/settings/assets/inverter-b6d89f35.js
+++ b/web/settings/assets/inverter-8c6dadd9.js
@@ -1 +1 @@
-import{_ as c,p as o,k as d,l as p,A as n,L as s,u as a,q as l,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceKostalPikoOldInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-kostal-piko-old-inverter"},m={class:"small"};function b(e,t,v,g,h,k){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return d(),p("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für Kostal Piko Wechselrichter (alte Generation) "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko_old/inverter.vue"]]);export{x as default};
+import{_ as c,p as o,k as d,l as p,A as n,L as s,u as a,q as l,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceKostalPikoOldInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-kostal-piko-old-inverter"},m={class:"small"};function b(e,t,v,g,h,k){const i=o("openwb-base-heading"),r=o("openwb-base-alert");return d(),p("div",f,[n(i,null,{default:s(()=>[a(" Einstellungen für Kostal Piko Wechselrichter (alte Generation) "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),n(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_piko_old/inverter.vue"]]);export{x as default};
diff --git a/web/settings/assets/inverter-42feff92.js b/web/settings/assets/inverter-8ca711bc.js
similarity index 86%
rename from web/settings/assets/inverter-42feff92.js
rename to web/settings/assets/inverter-8ca711bc.js
index 85e55b1389..c05bc7c5db 100644
--- a/web/settings/assets/inverter-42feff92.js
+++ b/web/settings/assets/inverter-8ca711bc.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceRCTInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-rct-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für RCT Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const C=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/inverter.vue"]]);export{C as default};
+import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceRCTInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-rct-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für RCT Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const C=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/rct/inverter.vue"]]);export{C as default};
diff --git a/web/settings/assets/inverter-973593c5.js b/web/settings/assets/inverter-90b5924d.js
similarity index 86%
rename from web/settings/assets/inverter-973593c5.js
rename to web/settings/assets/inverter-90b5924d.js
index 48438568c2..0ebfa3025a 100644
--- a/web/settings/assets/inverter-973593c5.js
+++ b/web/settings/assets/inverter-90b5924d.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as l,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSolarwattInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solarwatt-inverter"},m={class:"small"};function v(e,t,b,g,h,w){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return p(),d("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Solarwatt/My Reserve Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/inverter.vue"]]);export{k as default};
+import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as l,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSolarwattInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solarwatt-inverter"},m={class:"small"};function v(e,t,b,g,h,w){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return p(),d("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Solarwatt/My Reserve Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_watt/inverter.vue"]]);export{k as default};
diff --git a/web/settings/assets/inverter-bce80bd5.js b/web/settings/assets/inverter-92eb5977.js
similarity index 86%
rename from web/settings/assets/inverter-bce80bd5.js
rename to web/settings/assets/inverter-92eb5977.js
index 8a64d22552..c6d8b6f3bb 100644
--- a/web/settings/assets/inverter-bce80bd5.js
+++ b/web/settings/assets/inverter-92eb5977.js
@@ -1 +1 @@
-import{_ as c,p as n,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSmaWebboxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-sma-webbox-inverter"},m={class:"small"};function f(e,t,v,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",b,[o(r,null,{default:s(()=>[a(" Einstellungen für SMA Webbox Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_webbox/inverter.vue"]]);export{k as default};
+import{_ as c,p as n,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSmaWebboxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},b={class:"device-sma-webbox-inverter"},m={class:"small"};function f(e,t,v,g,h,x){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),p("div",b,[o(r,null,{default:s(()=>[a(" Einstellungen für SMA Webbox Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",f],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sma_webbox/inverter.vue"]]);export{k as default};
diff --git a/web/settings/assets/inverter-91521524.js b/web/settings/assets/inverter-96db7f1d.js
similarity index 90%
rename from web/settings/assets/inverter-91521524.js
rename to web/settings/assets/inverter-96db7f1d.js
index 7c5e5e9089..4ba8fe52eb 100644
--- a/web/settings/assets/inverter-91521524.js
+++ b/web/settings/assets/inverter-96db7f1d.js
@@ -1 +1 @@
-import{_ as l,p as o,k as m,l as _,A as r,L as i,u as n,q as s,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceDiscovergyInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-discovergy-inverter"},b={class:"small"},h=s("a",{href:"https://api.discovergy.com/public/v1/meters",target:"_blank",rel:"noopener noreferrer"}," https://api.discovergy.com/public/v1/meters ",-1);function w(t,e,a,y,x,d){const u=o("openwb-base-heading"),c=o("openwb-base-text-input");return m(),_("div",g,[r(u,null,{default:i(()=>[n(" Einstellungen für Discovergy Wechselrichter "),s("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),r(c,{title:"Meter-ID",required:"","model-value":a.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.meter_id"))},{help:i(()=>[n(" Um die ID herauszufinden mit dem Browser die Adresse "),h,n(" aufrufen und dort Benutzername und Passwort eingeben. Hier wird nun u.a. die ID des Zählers angezeigt. ")]),_:1},8,["model-value"])])}const I=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/inverter.vue"]]);export{I as default};
+import{_ as l,p as o,k as m,l as _,A as r,L as i,u as n,q as s,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceDiscovergyInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-discovergy-inverter"},b={class:"small"},h=s("a",{href:"https://api.discovergy.com/public/v1/meters",target:"_blank",rel:"noopener noreferrer"}," https://api.discovergy.com/public/v1/meters ",-1);function w(t,e,a,y,x,d){const u=o("openwb-base-heading"),c=o("openwb-base-text-input");return m(),_("div",g,[r(u,null,{default:i(()=>[n(" Einstellungen für Discovergy Wechselrichter "),s("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),r(c,{title:"Meter-ID",required:"","model-value":a.configuration.meter_id,"onUpdate:modelValue":e[0]||(e[0]=p=>d.updateConfiguration(p,"configuration.meter_id"))},{help:i(()=>[n(" Um die ID herauszufinden mit dem Browser die Adresse "),h,n(" aufrufen und dort Benutzername und Passwort eingeben. Hier wird nun u.a. die ID des Zählers angezeigt. ")]),_:1},8,["model-value"])])}const I=l(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/discovergy/inverter.vue"]]);export{I as default};
diff --git a/web/settings/assets/inverter-ba59974f.js b/web/settings/assets/inverter-9962a05f.js
similarity index 95%
rename from web/settings/assets/inverter-ba59974f.js
rename to web/settings/assets/inverter-9962a05f.js
index a183a7ca61..528fad947a 100644
--- a/web/settings/assets/inverter-ba59974f.js
+++ b/web/settings/assets/inverter-9962a05f.js
@@ -1 +1 @@
-import{_ as c,p as r,k as g,l as _,A as n,L as s,u,q as m,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceVZLoggerInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-vzlogger-inverter"},h={class:"small"};function w(t,e,i,x,V,a){const d=r("openwb-base-heading"),p=r("openwb-base-alert"),l=r("openwb-base-number-input");return g(),_("div",b,[n(d,null,{default:s(()=>[u(" Einstellungen für VZLogger Wechselrichter "),m("span",h,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(p,{subtype:"info"},{default:s(()=>[u(' Bitte auf der Shell ausführen: "curl -s IPdesVZLogger:Port | jq .|cat -n" Zählen, in welcher Zeile der gesuchte Wert steht. Bei der ersten Zeile mit 1 anfangen zu zählen. ')]),_:1}),n(l,{title:"Zeile der Leistung",required:"",min:0,"model-value":i.configuration.line_power,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.line_power"))},null,8,["model-value"]),n(l,{title:"Zeile der exportierten Energie (Ertrag)",min:0,"model-value":i.configuration.line_exported,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.line_exported"))},null,8,["model-value"])])}const q=c(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/inverter.vue"]]);export{q as default};
+import{_ as c,p as r,k as g,l as _,A as n,L as s,u,q as m,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceVZLoggerInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-vzlogger-inverter"},h={class:"small"};function w(t,e,i,x,V,a){const d=r("openwb-base-heading"),p=r("openwb-base-alert"),l=r("openwb-base-number-input");return g(),_("div",b,[n(d,null,{default:s(()=>[u(" Einstellungen für VZLogger Wechselrichter "),m("span",h,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),n(p,{subtype:"info"},{default:s(()=>[u(' Bitte auf der Shell ausführen: "curl -s IPdesVZLogger:Port | jq .|cat -n" Zählen, in welcher Zeile der gesuchte Wert steht. Bei der ersten Zeile mit 1 anfangen zu zählen. ')]),_:1}),n(l,{title:"Zeile der Leistung",required:"",min:0,"model-value":i.configuration.line_power,"onUpdate:modelValue":e[0]||(e[0]=o=>a.updateConfiguration(o,"configuration.line_power"))},null,8,["model-value"]),n(l,{title:"Zeile der exportierten Energie (Ertrag)",min:0,"model-value":i.configuration.line_exported,"onUpdate:modelValue":e[1]||(e[1]=o=>a.updateConfiguration(o,"configuration.line_exported"))},null,8,["model-value"])])}const q=c(v,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/vzlogger/inverter.vue"]]);export{q as default};
diff --git a/web/settings/assets/inverter-98ed6e35.js b/web/settings/assets/inverter-a028ca0c.js
similarity index 88%
rename from web/settings/assets/inverter-98ed6e35.js
rename to web/settings/assets/inverter-a028ca0c.js
index cbf05f9439..94402753f0 100644
--- a/web/settings/assets/inverter-98ed6e35.js
+++ b/web/settings/assets/inverter-a028ca0c.js
@@ -1 +1 @@
-import{_ as l,p as n,k as c,l as d,A as o,L as p,u as _,q as f,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceYoulessInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-youless-inverter"},v={class:"small"};function h(t,e,s,x,w,a){const u=n("openwb-base-heading"),i=n("openwb-base-button-group-input");return c(),d("div",g,[o(u,null,{default:p(()=>[_(" Einstellungen für Youless LS120 Wechselrichter "),f("span",v,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),o(i,{title:"S0-Eingang auslesen",buttons:[{buttonValue:!1,text:"nein"},{buttonValue:!0,text:"ja"}],"model-value":s.configuration.source_s0,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.source_s0"))},null,8,["model-value"])])}const B=l(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/youless/inverter.vue"]]);export{B as default};
+import{_ as l,p as n,k as c,l as d,A as o,L as p,u as _,q as f,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceYoulessInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-youless-inverter"},v={class:"small"};function h(t,e,s,x,w,a){const u=n("openwb-base-heading"),i=n("openwb-base-button-group-input");return c(),d("div",g,[o(u,null,{default:p(()=>[_(" Einstellungen für Youless LS120 Wechselrichter "),f("span",v,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),o(i,{title:"S0-Eingang auslesen",buttons:[{buttonValue:!1,text:"nein"},{buttonValue:!0,text:"ja"}],"model-value":s.configuration.source_s0,"onUpdate:modelValue":e[0]||(e[0]=r=>a.updateConfiguration(r,"configuration.source_s0"))},null,8,["model-value"])])}const B=l(b,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/youless/inverter.vue"]]);export{B as default};
diff --git a/web/settings/assets/inverter-09d68c12.js b/web/settings/assets/inverter-a4741525.js
similarity index 89%
rename from web/settings/assets/inverter-09d68c12.js
rename to web/settings/assets/inverter-a4741525.js
index 1aad5941ed..ef47c37cca 100644
--- a/web/settings/assets/inverter-09d68c12.js
+++ b/web/settings/assets/inverter-a4741525.js
@@ -1 +1 @@
-import{_ as l,p as n,k as d,l as c,A as o,L as p,u as v,q as _,x as m}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const f={name:"DeviceOpenwbEvukitInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-evukit-inverter"},g={class:"small"};function h(t,e,i,w,x,a){const s=n("openwb-base-heading"),r=n("openwb-base-select-input");return d(),c("div",b,[o(s,null,{default:p(()=>[v(" Einstellungen für openWB EVU-Kit Wechselrichter "),_("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),o(r,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=u=>a.updateConfiguration(u,"configuration.version"))},null,8,["model-value"])])}const B=l(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/inverter.vue"]]);export{B as default};
+import{_ as l,p as n,k as d,l as c,A as o,L as p,u as v,q as _,x as m}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const f={name:"DeviceOpenwbEvukitInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"device-openwb-evukit-inverter"},g={class:"small"};function h(t,e,i,w,x,a){const s=n("openwb-base-heading"),r=n("openwb-base-select-input");return d(),c("div",b,[o(s,null,{default:p(()=>[v(" Einstellungen für openWB EVU-Kit Wechselrichter "),_("span",g,"(Modul: "+m(t.$options.name)+")",1)]),_:1}),o(r,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"}],"model-value":i.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=u=>a.updateConfiguration(u,"configuration.version"))},null,8,["model-value"])])}const B=l(f,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_evu_kit/inverter.vue"]]);export{B as default};
diff --git a/web/settings/assets/inverter-2b727919.js b/web/settings/assets/inverter-a532223b.js
similarity index 93%
rename from web/settings/assets/inverter-2b727919.js
rename to web/settings/assets/inverter-a532223b.js
index 432a6aad38..8a0ebd42d5 100644
--- a/web/settings/assets/inverter-2b727919.js
+++ b/web/settings/assets/inverter-a532223b.js
@@ -1 +1 @@
-import{_ as u,p as o,k as c,l,A as t,L as p,u as m,q as _,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceSolarmaxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-solarmax-inverter"},g={class:"small"};function x(n,e,a,h,w,i){const s=o("openwb-base-heading"),r=o("openwb-base-number-input");return c(),l("div",v,[t(s,null,{default:p(()=>[m(" Einstellungen für Solarmax Wechselrichter "),_("span",g,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),t(r,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const I=u(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/inverter.vue"]]);export{I as default};
+import{_ as u,p as o,k as c,l,A as t,L as p,u as m,q as _,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceSolarmaxInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},v={class:"device-solarmax-inverter"},g={class:"small"};function x(n,e,a,h,w,i){const s=o("openwb-base-heading"),r=o("openwb-base-number-input");return c(),l("div",v,[t(s,null,{default:p(()=>[m(" Einstellungen für Solarmax Wechselrichter "),_("span",g,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),t(r,{title:"Modbus ID","model-value":a.configuration.modbus_id,min:"1",max:"255","onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.modbus_id"))},null,8,["model-value"])])}const I=u(b,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solarmax/inverter.vue"]]);export{I as default};
diff --git a/web/settings/assets/inverter-3e855a0b.js b/web/settings/assets/inverter-a6e26156.js
similarity index 86%
rename from web/settings/assets/inverter-3e855a0b.js
rename to web/settings/assets/inverter-a6e26156.js
index d9d6636f5d..d49dfb1386 100644
--- a/web/settings/assets/inverter-3e855a0b.js
+++ b/web/settings/assets/inverter-a6e26156.js
@@ -1 +1 @@
-import{_ as c,p as t,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSonnenbatterieInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sonnenbatterie-inverter"},m={class:"small"};function b(e,n,v,g,h,w){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für SonnenBatterie Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/inverter.vue"]]);export{B as default};
+import{_ as c,p as t,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSonnenbatterieInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sonnenbatterie-inverter"},m={class:"small"};function b(e,n,v,g,h,w){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für SonnenBatterie Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const B=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sonnenbatterie/inverter.vue"]]);export{B as default};
diff --git a/web/settings/assets/inverter-5500500b.js b/web/settings/assets/inverter-af852271.js
similarity index 87%
rename from web/settings/assets/inverter-5500500b.js
rename to web/settings/assets/inverter-af852271.js
index 46f2917125..d01b195988 100644
--- a/web/settings/assets/inverter-5500500b.js
+++ b/web/settings/assets/inverter-af852271.js
@@ -1 +1 @@
-import{_ as u,p as n,k as c,l as p,A as o,L as l,u as m,q as _,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceSmartMeInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-smart-me-inverter"},b={class:"small"};function h(t,e,a,x,w,i){const r=n("openwb-base-heading"),s=n("openwb-base-text-input");return c(),p("div",g,[o(r,null,{default:l(()=>[m(" Einstellungen für smart-me Wechselrichter "),_("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(s,{title:"Geräte-ID",required:"","model-value":a.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.id"))},null,8,["model-value"])])}const C=u(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/inverter.vue"]]);export{C as default};
+import{_ as u,p as n,k as c,l as p,A as o,L as l,u as m,q as _,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceSmartMeInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-smart-me-inverter"},b={class:"small"};function h(t,e,a,x,w,i){const r=n("openwb-base-heading"),s=n("openwb-base-text-input");return c(),p("div",g,[o(r,null,{default:l(()=>[m(" Einstellungen für smart-me Wechselrichter "),_("span",b,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),o(s,{title:"Geräte-ID",required:"","model-value":a.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=d=>i.updateConfiguration(d,"configuration.id"))},null,8,["model-value"])])}const C=u(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/smart_me/inverter.vue"]]);export{C as default};
diff --git a/web/settings/assets/inverter-39afe3b5.js b/web/settings/assets/inverter-b1415371.js
similarity index 86%
rename from web/settings/assets/inverter-39afe3b5.js
rename to web/settings/assets/inverter-b1415371.js
index 2d010ef11f..4d110a8b5d 100644
--- a/web/settings/assets/inverter-39afe3b5.js
+++ b/web/settings/assets/inverter-b1415371.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as l,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSolarLogInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solar_log-inverter"},m={class:"small"};function g(e,t,b,v,h,w){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return p(),d("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Solar-Log Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/inverter.vue"]]);export{k as default};
+import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as l,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSolarLogInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solar_log-inverter"},m={class:"small"};function g(e,t,b,v,h,w){const r=n("openwb-base-heading"),i=n("openwb-base-alert");return p(),d("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Solar-Log Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_log/inverter.vue"]]);export{k as default};
diff --git a/web/settings/assets/inverter-1a27b5a2.js b/web/settings/assets/inverter-b959eebb.js
similarity index 86%
rename from web/settings/assets/inverter-1a27b5a2.js
rename to web/settings/assets/inverter-b959eebb.js
index 7951b213ba..91c0f47d7d 100644
--- a/web/settings/assets/inverter-1a27b5a2.js
+++ b/web/settings/assets/inverter-b959eebb.js
@@ -1 +1 @@
-import{_ as c,p as t,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSunwaysInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sunways-inverter"},m={class:"small"};function v(e,n,b,g,h,w){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Sunways Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sunways/inverter.vue"]]);export{x as default};
+import{_ as c,p as t,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSunwaysInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})}}},f={class:"device-sunways-inverter"},m={class:"small"};function v(e,n,b,g,h,w){const r=t("openwb-base-heading"),i=t("openwb-base-alert");return d(),p("div",f,[o(r,null,{default:s(()=>[a(" Einstellungen für Sunways Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[a(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",v],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/sunways/inverter.vue"]]);export{x as default};
diff --git a/web/settings/assets/inverter-35d50734.js b/web/settings/assets/inverter-be6aac70.js
similarity index 86%
rename from web/settings/assets/inverter-35d50734.js
rename to web/settings/assets/inverter-be6aac70.js
index 9de9f05f9b..01d2322610 100644
--- a/web/settings/assets/inverter-35d50734.js
+++ b/web/settings/assets/inverter-be6aac70.js
@@ -1 +1 @@
-import{_ as c,p as n,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceE3dcInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für E3DC Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const E=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/inverter.vue"]]);export{E as default};
+import{_ as c,p as n,k as d,l as p,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceE3dcInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-e3dc-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return d(),p("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für E3DC Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const E=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/e3dc/inverter.vue"]]);export{E as default};
diff --git a/web/settings/assets/inverter-bc54ef72.js b/web/settings/assets/inverter-c08d4e42.js
similarity index 86%
rename from web/settings/assets/inverter-bc54ef72.js
rename to web/settings/assets/inverter-c08d4e42.js
index 899d1873c2..a0e1e15f37 100644
--- a/web/settings/assets/inverter-bc54ef72.js
+++ b/web/settings/assets/inverter-c08d4e42.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as l,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceTeslaInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-tesla-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Tesla Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/inverter.vue"]]);export{k as default};
+import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as l,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceTeslaInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-tesla-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Tesla Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/tesla/inverter.vue"]]);export{k as default};
diff --git a/web/settings/assets/inverter-b35ac71f.js b/web/settings/assets/inverter-c90183ae.js
similarity index 88%
rename from web/settings/assets/inverter-b35ac71f.js
rename to web/settings/assets/inverter-c90183ae.js
index b146057765..5845b79c8b 100644
--- a/web/settings/assets/inverter-b35ac71f.js
+++ b/web/settings/assets/inverter-c90183ae.js
@@ -1 +1 @@
-import{_ as c,p as t,k as l,l as _,A as o,L as a,u as i,q as m,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"DeviceEnphaseInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},b={class:"device-enphase-inverter"},h={class:"small"};function g(n,e,s,w,E,r){const d=t("openwb-base-heading"),u=t("openwb-base-number-input");return l(),_("div",b,[o(d,null,{default:a(()=>[i(" Einstellungen für Enphase Envoy / IQ Gateway Wechselrichter "),m("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(u,{title:"EID",required:"","model-value":s.configuration.eid,"onUpdate:modelValue":e[0]||(e[0]=p=>r.updateConfiguration(p,"configuration.eid"))},{help:a(()=>[i(' EID für "production" ')]),_:1},8,["model-value"])])}const q=c(v,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/inverter.vue"]]);export{q as default};
+import{_ as c,p as t,k as l,l as _,A as o,L as a,u as i,q as m,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"DeviceEnphaseInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(n,e=void 0){this.$emit("update:configuration",{value:n,object:e})}}},b={class:"device-enphase-inverter"},h={class:"small"};function g(n,e,s,w,E,r){const d=t("openwb-base-heading"),u=t("openwb-base-number-input");return l(),_("div",b,[o(d,null,{default:a(()=>[i(" Einstellungen für Enphase Envoy / IQ Gateway Wechselrichter "),m("span",h,"(Modul: "+f(n.$options.name)+")",1)]),_:1}),o(u,{title:"EID",required:"","model-value":s.configuration.eid,"onUpdate:modelValue":e[0]||(e[0]=p=>r.updateConfiguration(p,"configuration.eid"))},{help:a(()=>[i(' EID für "production" ')]),_:1},8,["model-value"])])}const q=c(v,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/enphase/inverter.vue"]]);export{q as default};
diff --git a/web/settings/assets/inverter-0daad30f.js b/web/settings/assets/inverter-d02eb41e.js
similarity index 90%
rename from web/settings/assets/inverter-0daad30f.js
rename to web/settings/assets/inverter-d02eb41e.js
index df86c9e769..423c3a1bc0 100644
--- a/web/settings/assets/inverter-0daad30f.js
+++ b/web/settings/assets/inverter-d02eb41e.js
@@ -1 +1 @@
-import{_ as d,p as o,k as p,l as c,A as i,L as m,u as _,q as f,x as v}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const b={name:"DeviceOpenwbFlexInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-openwb-flex-inverter"},x={class:"small"};function w(t,e,a,M,h,s){const u=o("openwb-base-heading"),l=o("openwb-base-select-input"),r=o("openwb-base-number-input");return p(),c("div",g,[i(u,null,{default:m(()=>[_(" Einstellungen für openWB-Flex Wechselrichter "),f("span",x,"(Modul: "+v(t.$options.name)+")",1)]),_:1}),i(l,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"},{value:3,text:"SDM120"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.version"))},null,8,["model-value"]),i(r,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":a.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.id"))},null,8,["model-value"])])}const C=d(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/inverter.vue"]]);export{C as default};
+import{_ as d,p as o,k as p,l as c,A as i,L as m,u as _,q as f,x as v}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const b={name:"DeviceOpenwbFlexInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},g={class:"device-openwb-flex-inverter"},x={class:"small"};function w(t,e,a,M,h,s){const u=o("openwb-base-heading"),l=o("openwb-base-select-input"),r=o("openwb-base-number-input");return p(),c("div",g,[i(u,null,{default:m(()=>[_(" Einstellungen für openWB-Flex Wechselrichter "),f("span",x,"(Modul: "+v(t.$options.name)+")",1)]),_:1}),i(l,{title:"Zählermodell",notSelected:"Bitte auswählen",options:[{value:0,text:"MPM3PM"},{value:1,text:"Lovato"},{value:2,text:"SDM630/SDM72D-M"},{value:3,text:"SDM120"}],"model-value":a.configuration.version,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.version"))},null,8,["model-value"]),i(r,{title:"Modbus-ID",required:"",min:1,max:255,"model-value":a.configuration.id,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.id"))},null,8,["model-value"])])}const C=d(b,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/openwb_flex/inverter.vue"]]);export{C as default};
diff --git a/web/settings/assets/inverter-3df75149.js b/web/settings/assets/inverter-d2ccf27d.js
similarity index 91%
rename from web/settings/assets/inverter-3df75149.js
rename to web/settings/assets/inverter-d2ccf27d.js
index 50a6b4a958..64fd7254dc 100644
--- a/web/settings/assets/inverter-3df75149.js
+++ b/web/settings/assets/inverter-d2ccf27d.js
@@ -1 +1 @@
-import{_ as c,p as o,k as _,l as m,A as a,L as i,u as s,q as b,x as f}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"DeviceStuderInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-studer-inverter"},V={class:"small"};function S(t,e,r,T,h,u){const d=o("openwb-base-heading"),l=o("openwb-base-button-group-input"),p=o("openwb-base-number-input");return _(),m("div",v,[a(d,null,{default:i(()=>[s(" Einstellungen für Studer Wechselrichter "),b("span",V,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),a(l,{title:"Typ der MPPT Solarladeregler",buttons:[{buttonValue:"VT",text:"Variotrack (VT-40/VT-65/VT-80)"},{buttonValue:"VS",text:"VarioString (VS-70/VS-120)"}],"model-value":r.configuration.vc_type,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.vc_type"))},null,8,["buttons","model-value"]),a(p,{title:"Anzahl MPPT Solarladeregler",required:"",min:1,max:9,"model-value":r.configuration.vc_count,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.vc_count"))},{help:i(()=>[s(" Anzahl (1-9) der Studer MPPT Solarladeregler im System (VS/VT) ")]),_:1},8,["model-value"])])}const y=c(g,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/inverter.vue"]]);export{y as default};
+import{_ as c,p as o,k as _,l as m,A as a,L as i,u as s,q as b,x as f}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"DeviceStuderInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},v={class:"device-studer-inverter"},V={class:"small"};function S(t,e,r,T,h,u){const d=o("openwb-base-heading"),l=o("openwb-base-button-group-input"),p=o("openwb-base-number-input");return _(),m("div",v,[a(d,null,{default:i(()=>[s(" Einstellungen für Studer Wechselrichter "),b("span",V,"(Modul: "+f(t.$options.name)+")",1)]),_:1}),a(l,{title:"Typ der MPPT Solarladeregler",buttons:[{buttonValue:"VT",text:"Variotrack (VT-40/VT-65/VT-80)"},{buttonValue:"VS",text:"VarioString (VS-70/VS-120)"}],"model-value":r.configuration.vc_type,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.vc_type"))},null,8,["buttons","model-value"]),a(p,{title:"Anzahl MPPT Solarladeregler",required:"",min:1,max:9,"model-value":r.configuration.vc_count,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.vc_count"))},{help:i(()=>[s(" Anzahl (1-9) der Studer MPPT Solarladeregler im System (VS/VT) ")]),_:1},8,["model-value"])])}const y=c(g,[["render",S],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/studer/inverter.vue"]]);export{y as default};
diff --git a/web/settings/assets/inverter-22be4ed9.js b/web/settings/assets/inverter-e3d31521.js
similarity index 93%
rename from web/settings/assets/inverter-22be4ed9.js
rename to web/settings/assets/inverter-e3d31521.js
index b1004887c8..c4d20eac8b 100644
--- a/web/settings/assets/inverter-22be4ed9.js
+++ b/web/settings/assets/inverter-e3d31521.js
@@ -1 +1 @@
-import{_ as c,p as n,k as d,l,A as o,L as s,u as r,q as p,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceSolarWorldInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solar_world-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const a=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),l("div",f,[o(a,null,{default:s(()=>[r(" Einstellungen für SolarWorld Wechselrichter "),p("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[r(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_world/inverter.vue"]]);export{k as default};
+import{_ as c,p as n,k as d,l,A as o,L as s,u as r,q as p,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceSolarWorldInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-solar_world-inverter"},m={class:"small"};function b(e,t,v,g,h,w){const a=n("openwb-base-heading"),i=n("openwb-base-alert");return d(),l("div",f,[o(a,null,{default:s(()=>[r(" Einstellungen für SolarWorld Wechselrichter "),p("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(i,{subtype:"info"},{default:s(()=>[r(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/solar_world/inverter.vue"]]);export{k as default};
diff --git a/web/settings/assets/inverter-f266f49d.js b/web/settings/assets/inverter-e5461fd3.js
similarity index 86%
rename from web/settings/assets/inverter-f266f49d.js
rename to web/settings/assets/inverter-e5461fd3.js
index 32a1e4c073..9e46ffc796 100644
--- a/web/settings/assets/inverter-f266f49d.js
+++ b/web/settings/assets/inverter-e5461fd3.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceLGInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-lg-inverter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für LG ESS V1.0 Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/inverter.vue"]]);export{k as default};
+import{_ as c,p as n,k as p,l as d,A as o,L as s,u as a,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceLGInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-lg-inverter"},m={class:"small"};function b(e,t,g,v,h,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für LG ESS V1.0 Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/lg/inverter.vue"]]);export{k as default};
diff --git a/web/settings/assets/inverter-b47e8b65.js b/web/settings/assets/inverter-eef610e6.js
similarity index 86%
rename from web/settings/assets/inverter-b47e8b65.js
rename to web/settings/assets/inverter-eef610e6.js
index 44bdefb92b..427f9ebe2f 100644
--- a/web/settings/assets/inverter-b47e8b65.js
+++ b/web/settings/assets/inverter-eef610e6.js
@@ -1 +1 @@
-import{_ as p,p as n,k as c,l as d,A as o,L as s,u as a,q as l,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceAlphaessInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-alphaess-inverter"},m={class:"small"};function h(e,t,b,v,g,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return c(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Alpha ESS Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=p(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/inverter.vue"]]);export{k as default};
+import{_ as p,p as n,k as c,l as d,A as o,L as s,u as a,q as l,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceAlphaessInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-alphaess-inverter"},m={class:"small"};function h(e,t,b,v,g,w){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return c(),d("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Alpha ESS Wechselrichter "),l("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const k=p(_,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/alpha_ess/inverter.vue"]]);export{k as default};
diff --git a/web/settings/assets/inverter-f0ad6bcd.js b/web/settings/assets/inverter-f7d9af29.js
similarity index 86%
rename from web/settings/assets/inverter-f0ad6bcd.js
rename to web/settings/assets/inverter-f7d9af29.js
index 00141006d6..8b2f813498 100644
--- a/web/settings/assets/inverter-f0ad6bcd.js
+++ b/web/settings/assets/inverter-f7d9af29.js
@@ -1 +1 @@
-import{_ as d,p as t,k as c,l as p,A as n,L as s,u as r,q as u,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DevicePowerdogInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-powerdog-inverter"},m={class:"small"};function g(e,o,v,b,h,w){const a=t("openwb-base-heading"),i=t("openwb-base-alert");return c(),p("div",f,[n(a,null,{default:s(()=>[r(" Einstellungen für Powerdog Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(i,{subtype:"info"},{default:s(()=>[r(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=d(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/inverter.vue"]]);export{k as default};
+import{_ as d,p as t,k as c,l as p,A as n,L as s,u as r,q as u,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DevicePowerdogInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,o=void 0){this.$emit("update:configuration",{value:e,object:o})}}},f={class:"device-powerdog-inverter"},m={class:"small"};function g(e,o,v,b,h,w){const a=t("openwb-base-heading"),i=t("openwb-base-alert");return c(),p("div",f,[n(a,null,{default:s(()=>[r(" Einstellungen für Powerdog Wechselrichter "),u("span",m,"(Modul: "+l(e.$options.name)+")",1)]),_:1}),n(i,{subtype:"info"},{default:s(()=>[r(" Diese Komponente erfordert keine Einstellungen. ")]),_:1})])}const k=d(_,[["render",g],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/powerdog/inverter.vue"]]);export{k as default};
diff --git a/web/settings/assets/inverter-3515d2b5.js b/web/settings/assets/inverter-f9807fb1.js
similarity index 93%
rename from web/settings/assets/inverter-3515d2b5.js
rename to web/settings/assets/inverter-f9807fb1.js
index 9eb3674999..028aa96230 100644
--- a/web/settings/assets/inverter-3515d2b5.js
+++ b/web/settings/assets/inverter-f9807fb1.js
@@ -1 +1 @@
-import{_ as c,p as n,k as p,l,A as o,L as s,u as a,q as d,x as u}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"DeviceKostalPlenticoreInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-kostalplenticore-inverter"},m={class:"small"};function b(e,t,v,g,h,k){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),l("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Kostal Plenticore Wechselrichter "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/inverter.vue"]]);export{x as default};
+import{_ as c,p as n,k as p,l,A as o,L as s,u as a,q as d,x as u}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"DeviceKostalPlenticoreInverter",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},deviceId:{default:void 0},componentId:{required:!0}},methods:{updateConfiguration(e,t=void 0){this.$emit("update:configuration",{value:e,object:t})}}},f={class:"device-kostalplenticore-inverter"},m={class:"small"};function b(e,t,v,g,h,k){const i=n("openwb-base-heading"),r=n("openwb-base-alert");return p(),l("div",f,[o(i,null,{default:s(()=>[a(" Einstellungen für Kostal Plenticore Wechselrichter "),d("span",m,"(Modul: "+u(e.$options.name)+")",1)]),_:1}),o(r,{subtype:"info"},{default:s(()=>[a(" Diese Komponente benötigt keine Einstellungen. ")]),_:1})])}const x=c(_,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/devices/kostal_plenticore/inverter.vue"]]);export{x as default};
diff --git a/web/settings/assets/vehicle-189fc2cb.js b/web/settings/assets/vehicle-0e30b50e.js
similarity index 94%
rename from web/settings/assets/vehicle-189fc2cb.js
rename to web/settings/assets/vehicle-0e30b50e.js
index 4104b9c93e..08e081528e 100644
--- a/web/settings/assets/vehicle-189fc2cb.js
+++ b/web/settings/assets/vehicle-0e30b50e.js
@@ -1 +1 @@
-import{_ as p,p as i,k as h,l as m,A as r,L as o,u as e,q as n,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const _={name:"VehicleSocManual",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(t,a=void 0){this.$emit("update:configuration",{value:t,object:a})}}},f={class:"vehicle-soc-tesla"},k={class:"small"},w=n("br",null,null,-1),z=n("br",null,null,-1),v=n("br",null,null,-1),W=n("br",null,null,-1);function x(t,a,l,C,B,s){const d=i("openwb-base-heading"),u=i("openwb-base-alert"),c=i("openwb-base-number-input");return h(),m("div",f,[r(d,null,{default:o(()=>[e(" Einstellungen für manuellen SoC "),n("span",k,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),r(u,{subtype:"info"},{default:o(()=>[e(' Beim Anstecken des Fahrzeugs muss der aktuelle SoC über die Hauptseite angegeben werden. Anhand des Zählers im Ladepunkt wird dann der aktuelle SoC errechnet. Ausschlaggebend für die Qualität dieses Moduls sind die beiden Einstellungen "Kapazität der Batterie" in dem Fahrzeug-Profil und "Wirkungsgrad der Ladeelektronik". ')]),_:1}),r(c,{title:"Wirkungsgrad der Ladeelektronik",unit:"%",required:"","model-value":l.configuration.efficiency*100,"onUpdate:modelValue":a[0]||(a[0]=g=>s.updateConfiguration(g/100,"configuration.efficiency"))},{help:o(()=>[e(" Durch Verluste in der Ladeelektronik (z. B. Umwandlung Wechselspannung in Gleichspannung) gelangt nicht die komplette Energie, welche durch den Zähler in der Wallbox gemessen wird, in den Akku des Fahrzeugs. Der anzugebende Wert liegt bei gängigen Fahrzeugen im Bereich 90-95%. Eine Ausnahme stellt der Zoe dar, dessen Chameleonlader je nach Modellversion und freigegebener Leistung der Wallbox teilweise nur auf ca. 50% kommt."),w,e(" Liegen die Angaben der Wallbox und des Fahrzeugs nach der Ladung mehrere Prozent auseinander, dann kann mit dieser Einstellung eine Feinabstimmung erfolgen: "),z,e(" SoC an der Wallbox zu hoch: Wirkungsgrad um ein paar Prozent reduzieren"),v,e(" SoC an der Wallbox zu gering: Wirkungsgrad um ein paar Prozent erhöhen"),W]),_:1},8,["model-value"])])}const S=p(_,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/manual/vehicle.vue"]]);export{S as default};
+import{_ as p,p as i,k as h,l as m,A as r,L as o,u as e,q as n,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const _={name:"VehicleSocManual",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(t,a=void 0){this.$emit("update:configuration",{value:t,object:a})}}},f={class:"vehicle-soc-tesla"},k={class:"small"},w=n("br",null,null,-1),z=n("br",null,null,-1),v=n("br",null,null,-1),W=n("br",null,null,-1);function x(t,a,l,C,B,s){const d=i("openwb-base-heading"),u=i("openwb-base-alert"),c=i("openwb-base-number-input");return h(),m("div",f,[r(d,null,{default:o(()=>[e(" Einstellungen für manuellen SoC "),n("span",k,"(Modul: "+b(t.$options.name)+")",1)]),_:1}),r(u,{subtype:"info"},{default:o(()=>[e(' Beim Anstecken des Fahrzeugs muss der aktuelle SoC über die Hauptseite angegeben werden. Anhand des Zählers im Ladepunkt wird dann der aktuelle SoC errechnet. Ausschlaggebend für die Qualität dieses Moduls sind die beiden Einstellungen "Kapazität der Batterie" in dem Fahrzeug-Profil und "Wirkungsgrad der Ladeelektronik". ')]),_:1}),r(c,{title:"Wirkungsgrad der Ladeelektronik",unit:"%",required:"","model-value":l.configuration.efficiency*100,"onUpdate:modelValue":a[0]||(a[0]=g=>s.updateConfiguration(g/100,"configuration.efficiency"))},{help:o(()=>[e(" Durch Verluste in der Ladeelektronik (z. B. Umwandlung Wechselspannung in Gleichspannung) gelangt nicht die komplette Energie, welche durch den Zähler in der Wallbox gemessen wird, in den Akku des Fahrzeugs. Der anzugebende Wert liegt bei gängigen Fahrzeugen im Bereich 90-95%. Eine Ausnahme stellt der Zoe dar, dessen Chameleonlader je nach Modellversion und freigegebener Leistung der Wallbox teilweise nur auf ca. 50% kommt."),w,e(" Liegen die Angaben der Wallbox und des Fahrzeugs nach der Ladung mehrere Prozent auseinander, dann kann mit dieser Einstellung eine Feinabstimmung erfolgen: "),z,e(" SoC an der Wallbox zu hoch: Wirkungsgrad um ein paar Prozent reduzieren"),v,e(" SoC an der Wallbox zu gering: Wirkungsgrad um ein paar Prozent erhöhen"),W]),_:1},8,["model-value"])])}const S=p(_,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/manual/vehicle.vue"]]);export{S as default};
diff --git a/web/settings/assets/vehicle-0247f03c.js b/web/settings/assets/vehicle-0ea9ae58.js
similarity index 93%
rename from web/settings/assets/vehicle-0247f03c.js
rename to web/settings/assets/vehicle-0ea9ae58.js
index ef0d198b23..e48c00ae01 100644
--- a/web/settings/assets/vehicle-0247f03c.js
+++ b/web/settings/assets/vehicle-0ea9ae58.js
@@ -1 +1 @@
-import{_ as p,p as l,k as m,l as c,A as t,L as o,u as a,q as f,x as g}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"VehicleSocKia",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},_={class:"vehicle-soc-kia"},b={class:"small"};function h(d,e,i,w,V,r){const s=l("openwb-base-heading"),u=l("openwb-base-text-input");return m(),c("div",_,[t(s,null,{default:o(()=>[a(" Einstellungen für Kia/Hyundai SoC "),f("span",b,"(Modul: "+g(d.$options.name)+")",1)]),_:1}),t(u,{title:"Benutzername",required:"",subtype:"user","model-value":i.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>r.updateConfiguration(n,"configuration.user_id"))},{help:o(()=>[a(" Der Benutzername für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),t(u,{title:"Kennwort",required:"",subtype:"password","model-value":i.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>r.updateConfiguration(n,"configuration.password"))},{help:o(()=>[a(" Das Passwort für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),t(u,{title:"PIN",required:"",subtype:"password","model-value":i.configuration.pin,"onUpdate:modelValue":e[2]||(e[2]=n=>r.updateConfiguration(n,"configuration.pin"))},{help:o(()=>[a(" Die PIN für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),t(u,{title:"VIN",required:"","model-value":i.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=n=>r.updateConfiguration(n,"configuration.vin"))},{help:o(()=>[a(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const x=p(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/kia/vehicle.vue"]]);export{x as default};
+import{_ as p,p as l,k as m,l as c,A as t,L as o,u as a,q as f,x as g}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"VehicleSocKia",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(d,e=void 0){this.$emit("update:configuration",{value:d,object:e})}}},_={class:"vehicle-soc-kia"},b={class:"small"};function h(d,e,i,w,V,r){const s=l("openwb-base-heading"),u=l("openwb-base-text-input");return m(),c("div",_,[t(s,null,{default:o(()=>[a(" Einstellungen für Kia/Hyundai SoC "),f("span",b,"(Modul: "+g(d.$options.name)+")",1)]),_:1}),t(u,{title:"Benutzername",required:"",subtype:"user","model-value":i.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>r.updateConfiguration(n,"configuration.user_id"))},{help:o(()=>[a(" Der Benutzername für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),t(u,{title:"Kennwort",required:"",subtype:"password","model-value":i.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>r.updateConfiguration(n,"configuration.password"))},{help:o(()=>[a(" Das Passwort für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),t(u,{title:"PIN",required:"",subtype:"password","model-value":i.configuration.pin,"onUpdate:modelValue":e[2]||(e[2]=n=>r.updateConfiguration(n,"configuration.pin"))},{help:o(()=>[a(" Die PIN für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),t(u,{title:"VIN",required:"","model-value":i.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=n=>r.updateConfiguration(n,"configuration.vin"))},{help:o(()=>[a(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const x=p(v,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/kia/vehicle.vue"]]);export{x as default};
diff --git a/web/settings/assets/vehicle-c865f314.js b/web/settings/assets/vehicle-11ffdccd.js
similarity index 91%
rename from web/settings/assets/vehicle-c865f314.js
rename to web/settings/assets/vehicle-11ffdccd.js
index f02776c353..fa98122fda 100644
--- a/web/settings/assets/vehicle-c865f314.js
+++ b/web/settings/assets/vehicle-11ffdccd.js
@@ -1 +1 @@
-import{_ as p,p as d,k as m,l as c,A as t,L as o,u as a,q as f,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"VehicleSocBmw",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},v={class:"vehicle-soc-bmw"},b={class:"small"};function w(i,e,r,h,B,u){const l=d("openwb-base-heading"),s=d("openwb-base-text-input");return m(),c("div",v,[t(l,null,{default:o(()=>[a(" Einstellungen für BMW SoC "),f("span",b,"(Modul: "+_(i.$options.name)+")",1)]),_:1}),t(s,{title:"Benutzername",required:"",subtype:"user","model-value":r.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.user_id"))},{help:o(()=>[a(" Der Benutzername für die Anmeldung an den BMW-Servern. ")]),_:1},8,["model-value"]),t(s,{title:"Kennwort",required:"",subtype:"password","model-value":r.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.password"))},{help:o(()=>[a(" Das Passwort für die Anmeldung an den BMW-Servern. ")]),_:1},8,["model-value"]),t(s,{title:"VIN",required:"","model-value":r.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=n=>u.updateConfiguration(n,"configuration.vin"))},{help:o(()=>[a(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const C=p(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/bmw/vehicle.vue"]]);export{C as default};
+import{_ as p,p as d,k as m,l as c,A as t,L as o,u as a,q as f,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"VehicleSocBmw",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},v={class:"vehicle-soc-bmw"},b={class:"small"};function w(i,e,r,h,B,u){const l=d("openwb-base-heading"),s=d("openwb-base-text-input");return m(),c("div",v,[t(l,null,{default:o(()=>[a(" Einstellungen für BMW SoC "),f("span",b,"(Modul: "+_(i.$options.name)+")",1)]),_:1}),t(s,{title:"Benutzername",required:"",subtype:"user","model-value":r.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.user_id"))},{help:o(()=>[a(" Der Benutzername für die Anmeldung an den BMW-Servern. ")]),_:1},8,["model-value"]),t(s,{title:"Kennwort",required:"",subtype:"password","model-value":r.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.password"))},{help:o(()=>[a(" Das Passwort für die Anmeldung an den BMW-Servern. ")]),_:1},8,["model-value"]),t(s,{title:"VIN",required:"","model-value":r.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=n=>u.updateConfiguration(n,"configuration.vin"))},{help:o(()=>[a(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const C=p(g,[["render",w],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/bmw/vehicle.vue"]]);export{C as default};
diff --git a/web/settings/assets/vehicle-b76d2976.js b/web/settings/assets/vehicle-344c6660.js
similarity index 91%
rename from web/settings/assets/vehicle-b76d2976.js
rename to web/settings/assets/vehicle-344c6660.js
index 90cf6cfa74..0171ceeba3 100644
--- a/web/settings/assets/vehicle-b76d2976.js
+++ b/web/settings/assets/vehicle-344c6660.js
@@ -1 +1 @@
-import{_ as c,p as u,k as p,l as m,A as o,L as i,u as a,q as _,x as h}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"VehicleSocHttp",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},f={class:"vehicle-soc-http"},v={class:"small"};function b(t,e,r,w,k,l){const d=u("openwb-base-heading"),s=u("openwb-base-text-input");return p(),m("div",f,[o(d,null,{default:i(()=>[a(" Einstellungen für HTTP SoC "),_("span",v,"(Modul: "+h(t.$options.name)+")",1)]),_:1}),o(s,{title:"SoC URL",subtype:"url",required:"","model-value":r.configuration.soc_url,"onUpdate:modelValue":e[0]||(e[0]=n=>l.updateConfiguration(n,"configuration.soc_url"))},{help:i(()=>[a(" Es wird vom Server eine Zahl (Float mit Punkt als Dezimaltrennzeichen oder Integer) erwartet, welche den aktuellen Ladestand in Prozent (0 bis 100) zurückgibt. ")]),_:1},8,["model-value"]),o(s,{title:"Reichweiten URL",subtype:"url","model-value":r.configuration.range_url,"onUpdate:modelValue":e[1]||(e[1]=n=>l.updateConfiguration(n,"configuration.range_url"))},{help:i(()=>[a(" Es wird vom Server eine Zahl (Float mit Punkt als Dezimaltrennzeichen oder Integer) erwartet, welche die aktuelle Reichweite in Kilometern darstellt. Diese Angabe ist optional. ")]),_:1},8,["model-value"])])}const z=c(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/http/vehicle.vue"]]);export{z as default};
+import{_ as c,p as u,k as p,l as m,A as o,L as i,u as a,q as _,x as h}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"VehicleSocHttp",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},f={class:"vehicle-soc-http"},v={class:"small"};function b(t,e,r,w,k,l){const d=u("openwb-base-heading"),s=u("openwb-base-text-input");return p(),m("div",f,[o(d,null,{default:i(()=>[a(" Einstellungen für HTTP SoC "),_("span",v,"(Modul: "+h(t.$options.name)+")",1)]),_:1}),o(s,{title:"SoC URL",subtype:"url",required:"","model-value":r.configuration.soc_url,"onUpdate:modelValue":e[0]||(e[0]=n=>l.updateConfiguration(n,"configuration.soc_url"))},{help:i(()=>[a(" Es wird vom Server eine Zahl (Float mit Punkt als Dezimaltrennzeichen oder Integer) erwartet, welche den aktuellen Ladestand in Prozent (0 bis 100) zurückgibt. ")]),_:1},8,["model-value"]),o(s,{title:"Reichweiten URL",subtype:"url","model-value":r.configuration.range_url,"onUpdate:modelValue":e[1]||(e[1]=n=>l.updateConfiguration(n,"configuration.range_url"))},{help:i(()=>[a(" Es wird vom Server eine Zahl (Float mit Punkt als Dezimaltrennzeichen oder Integer) erwartet, welche die aktuelle Reichweite in Kilometern darstellt. Diese Angabe ist optional. ")]),_:1},8,["model-value"])])}const z=c(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/http/vehicle.vue"]]);export{z as default};
diff --git a/web/settings/assets/vehicle-84dd6d0d.js b/web/settings/assets/vehicle-34ce6cc8.js
similarity index 95%
rename from web/settings/assets/vehicle-84dd6d0d.js
rename to web/settings/assets/vehicle-34ce6cc8.js
index 43b35b64c7..672a88aa0a 100644
--- a/web/settings/assets/vehicle-84dd6d0d.js
+++ b/web/settings/assets/vehicle-34ce6cc8.js
@@ -1 +1 @@
-import{_ as g,p as r,k as f,l as _,A as t,L as a,u as o,q as v,x as b}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const h={name:"VehicleSocPSA",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!1}},data(){return{}},methods:{updateConfiguration(s,e=void 0){this.$emit("update:configuration",{value:s,object:e})}}},w={class:"vehicle-soc-psa"},S={class:"small"};function C(s,e,i,x,A,l){const d=r("openwb-base-heading"),p=r("openwb-base-alert"),u=r("openwb-base-text-input"),c=r("openwb-base-select-input"),m=r("openwb-base-card");return f(),_("div",w,[t(d,null,{default:a(()=>[o(" Einstellungen für PSA SoC "),v("span",S,"(Modul: "+b(s.$options.name)+")",1)]),_:1}),t(p,{subtype:"info"},{default:a(()=>[o(" PSA liefert während eines Ladevorgangs keine Aktualisierung des Ladestands. Die manuelle Berechnung des Ladestands ist derzeit noch nicht implementiert, SoC-gesteuerte Ladung ist daher noch nicht möglich. ")]),_:1}),t(u,{title:"Benutzername",required:"",subtype:"user","model-value":i.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>l.updateConfiguration(n,"configuration.user_id"))},{help:a(()=>[o(" Der Benutzername für die Anmeldung an den PSA-Servern. ")]),_:1},8,["model-value"]),t(u,{title:"Kennwort",required:"",subtype:"password","model-value":i.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>l.updateConfiguration(n,"configuration.password"))},{help:a(()=>[o(" Das Passwort für die Anmeldung an den PSA-Servern. ")]),_:1},8,["model-value"]),t(c,{title:"Marke",required:"",notSelected:"Bitte auswählen",options:[{value:"Peugeot",text:"Peugeot"},{value:"Citroen",text:"Citroen"},{value:"DS",text:"DS"},{value:"Opel",text:"Opel"},{value:"Vauxhall",text:"Vauxhall"}],"model-value":i.configuration.manufacturer,"onUpdate:modelValue":e[2]||(e[2]=n=>l.updateConfiguration(n,"configuration.manufacturer"))},{help:a(()=>[o(" Marke aus des Fahrzeugs.")]),_:1},8,["model-value"]),t(u,{title:"VIN","model-value":i.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=n=>l.updateConfiguration(n,"configuration.vin"))},{help:a(()=>[o(" Die Fahrgestellnummer des Fahrzeugs. Nur notwendig falls mehrere Fahrzeuge im selben Account vorhanden sind. ")]),_:1},8,["model-value"]),t(m,{title:"Erweiterte Einstellungen",subtype:"info",collapsible:!0,collapsed:!0},{default:a(()=>[t(u,{title:"Client ID",subtype:"user","model-value":i.configuration.client_id,"onUpdate:modelValue":e[4]||(e[4]=n=>l.updateConfiguration(n,"configuration.client_id"))},{help:a(()=>[o(" Die Client-ID für die Anmeldung an den PSA-Servern, muss normalerweise nicht angegeben werden. ")]),_:1},8,["model-value"]),t(u,{title:"Client Secret",subtype:"password","model-value":i.configuration.client_secret,"onUpdate:modelValue":e[5]||(e[5]=n=>l.updateConfiguration(n,"configuration.client_secret"))},{help:a(()=>[o(" Das Client-Secret für die Anmeldung an den PSA-Servern, muss normalerweise nicht angegeben werden. ")]),_:1},8,["model-value"])]),_:1})])}const P=g(h,[["render",C],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/psa/vehicle.vue"]]);export{P as default};
+import{_ as g,p as r,k as f,l as _,A as t,L as a,u as o,q as v,x as b}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const h={name:"VehicleSocPSA",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!1}},data(){return{}},methods:{updateConfiguration(s,e=void 0){this.$emit("update:configuration",{value:s,object:e})}}},w={class:"vehicle-soc-psa"},S={class:"small"};function C(s,e,i,x,A,l){const d=r("openwb-base-heading"),p=r("openwb-base-alert"),u=r("openwb-base-text-input"),c=r("openwb-base-select-input"),m=r("openwb-base-card");return f(),_("div",w,[t(d,null,{default:a(()=>[o(" Einstellungen für PSA SoC "),v("span",S,"(Modul: "+b(s.$options.name)+")",1)]),_:1}),t(p,{subtype:"info"},{default:a(()=>[o(" PSA liefert während eines Ladevorgangs keine Aktualisierung des Ladestands. Die manuelle Berechnung des Ladestands ist derzeit noch nicht implementiert, SoC-gesteuerte Ladung ist daher noch nicht möglich. ")]),_:1}),t(u,{title:"Benutzername",required:"",subtype:"user","model-value":i.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>l.updateConfiguration(n,"configuration.user_id"))},{help:a(()=>[o(" Der Benutzername für die Anmeldung an den PSA-Servern. ")]),_:1},8,["model-value"]),t(u,{title:"Kennwort",required:"",subtype:"password","model-value":i.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>l.updateConfiguration(n,"configuration.password"))},{help:a(()=>[o(" Das Passwort für die Anmeldung an den PSA-Servern. ")]),_:1},8,["model-value"]),t(c,{title:"Marke",required:"",notSelected:"Bitte auswählen",options:[{value:"Peugeot",text:"Peugeot"},{value:"Citroen",text:"Citroen"},{value:"DS",text:"DS"},{value:"Opel",text:"Opel"},{value:"Vauxhall",text:"Vauxhall"}],"model-value":i.configuration.manufacturer,"onUpdate:modelValue":e[2]||(e[2]=n=>l.updateConfiguration(n,"configuration.manufacturer"))},{help:a(()=>[o(" Marke aus des Fahrzeugs.")]),_:1},8,["model-value"]),t(u,{title:"VIN","model-value":i.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=n=>l.updateConfiguration(n,"configuration.vin"))},{help:a(()=>[o(" Die Fahrgestellnummer des Fahrzeugs. Nur notwendig falls mehrere Fahrzeuge im selben Account vorhanden sind. ")]),_:1},8,["model-value"]),t(m,{title:"Erweiterte Einstellungen",subtype:"info",collapsible:!0,collapsed:!0},{default:a(()=>[t(u,{title:"Client ID",subtype:"user","model-value":i.configuration.client_id,"onUpdate:modelValue":e[4]||(e[4]=n=>l.updateConfiguration(n,"configuration.client_id"))},{help:a(()=>[o(" Die Client-ID für die Anmeldung an den PSA-Servern, muss normalerweise nicht angegeben werden. ")]),_:1},8,["model-value"]),t(u,{title:"Client Secret",subtype:"password","model-value":i.configuration.client_secret,"onUpdate:modelValue":e[5]||(e[5]=n=>l.updateConfiguration(n,"configuration.client_secret"))},{help:a(()=>[o(" Das Client-Secret für die Anmeldung an den PSA-Servern, muss normalerweise nicht angegeben werden. ")]),_:1},8,["model-value"])]),_:1})])}const P=g(h,[["render",C],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/psa/vehicle.vue"]]);export{P as default};
diff --git a/web/settings/assets/vehicle-f74618cf.js b/web/settings/assets/vehicle-677f2094.js
similarity index 91%
rename from web/settings/assets/vehicle-f74618cf.js
rename to web/settings/assets/vehicle-677f2094.js
index 2a9f92b0dd..d3c9c744b9 100644
--- a/web/settings/assets/vehicle-f74618cf.js
+++ b/web/settings/assets/vehicle-677f2094.js
@@ -1 +1 @@
-import{_ as p,p as d,k as c,l as m,A as t,L as o,u as a,q as f,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"VehicleSocVwid",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},v={class:"vehicle-soc-vwid"},w={class:"small"};function b(i,e,r,h,V,u){const l=d("openwb-base-heading"),s=d("openwb-base-text-input");return c(),m("div",v,[t(l,null,{default:o(()=>[a(" Einstellungen für VW ID SoC "),f("span",w,"(Modul: "+_(i.$options.name)+")",1)]),_:1}),t(s,{title:"Benutzername",required:"",subtype:"user","model-value":r.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.user_id"))},{help:o(()=>[a(" Der Benutzername für die Anmeldung an den VW-Servern. ")]),_:1},8,["model-value"]),t(s,{title:"Kennwort",required:"",subtype:"password","model-value":r.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.password"))},{help:o(()=>[a(" Das Passwort für die Anmeldung an den VW-Servern. ")]),_:1},8,["model-value"]),t(s,{title:"VIN",required:"","model-value":r.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=n=>u.updateConfiguration(n,"configuration.vin"))},{help:o(()=>[a(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const q=p(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/vwid/vehicle.vue"]]);export{q as default};
+import{_ as p,p as d,k as c,l as m,A as t,L as o,u as a,q as f,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"VehicleSocVwid",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},v={class:"vehicle-soc-vwid"},w={class:"small"};function b(i,e,r,h,V,u){const l=d("openwb-base-heading"),s=d("openwb-base-text-input");return c(),m("div",v,[t(l,null,{default:o(()=>[a(" Einstellungen für VW ID SoC "),f("span",w,"(Modul: "+_(i.$options.name)+")",1)]),_:1}),t(s,{title:"Benutzername",required:"",subtype:"user","model-value":r.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>u.updateConfiguration(n,"configuration.user_id"))},{help:o(()=>[a(" Der Benutzername für die Anmeldung an den VW-Servern. ")]),_:1},8,["model-value"]),t(s,{title:"Kennwort",required:"",subtype:"password","model-value":r.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>u.updateConfiguration(n,"configuration.password"))},{help:o(()=>[a(" Das Passwort für die Anmeldung an den VW-Servern. ")]),_:1},8,["model-value"]),t(s,{title:"VIN",required:"","model-value":r.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=n=>u.updateConfiguration(n,"configuration.vin"))},{help:o(()=>[a(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const q=p(g,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/vwid/vehicle.vue"]]);export{q as default};
diff --git a/web/settings/assets/vehicle-2c5d967c.js b/web/settings/assets/vehicle-82a4990a.js
similarity index 90%
rename from web/settings/assets/vehicle-2c5d967c.js
rename to web/settings/assets/vehicle-82a4990a.js
index 24addf0f73..24d90a00b6 100644
--- a/web/settings/assets/vehicle-2c5d967c.js
+++ b/web/settings/assets/vehicle-82a4990a.js
@@ -1 +1 @@
-import{_ as d,p as u,k as p,l as c,A as o,L as m,u as f,q as _,x as v}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"VehicleSocEvnotify",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"vehicle-soc-evnotify"},y={class:"small"};function h(t,e,i,k,w,a){const r=u("openwb-base-heading"),s=u("openwb-base-number-input"),l=u("openwb-base-text-input");return p(),c("div",b,[o(r,null,{default:m(()=>[f(" Einstellungen für EVnotify SoC "),_("span",y,"(Modul: "+v(t.$options.name)+")",1)]),_:1}),o(s,{title:"ID",required:"",min:0,"model-value":i.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=n=>a.updateConfiguration(n,"configuration.id"))},null,8,["model-value"]),o(l,{title:"AKey",required:"","model-value":i.configuration.akey,"onUpdate:modelValue":e[1]||(e[1]=n=>a.updateConfiguration(n,"configuration.akey"))},null,8,["model-value"]),o(l,{title:"Token",required:"","model-value":i.configuration.token,"onUpdate:modelValue":e[2]||(e[2]=n=>a.updateConfiguration(n,"configuration.token"))},null,8,["model-value"])])}const C=d(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/evnotify/vehicle.vue"]]);export{C as default};
+import{_ as d,p as u,k as p,l as c,A as o,L as m,u as f,q as _,x as v}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"VehicleSocEvnotify",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(t,e=void 0){this.$emit("update:configuration",{value:t,object:e})}}},b={class:"vehicle-soc-evnotify"},y={class:"small"};function h(t,e,i,k,w,a){const r=u("openwb-base-heading"),s=u("openwb-base-number-input"),l=u("openwb-base-text-input");return p(),c("div",b,[o(r,null,{default:m(()=>[f(" Einstellungen für EVnotify SoC "),_("span",y,"(Modul: "+v(t.$options.name)+")",1)]),_:1}),o(s,{title:"ID",required:"",min:0,"model-value":i.configuration.id,"onUpdate:modelValue":e[0]||(e[0]=n=>a.updateConfiguration(n,"configuration.id"))},null,8,["model-value"]),o(l,{title:"AKey",required:"","model-value":i.configuration.akey,"onUpdate:modelValue":e[1]||(e[1]=n=>a.updateConfiguration(n,"configuration.akey"))},null,8,["model-value"]),o(l,{title:"Token",required:"","model-value":i.configuration.token,"onUpdate:modelValue":e[2]||(e[2]=n=>a.updateConfiguration(n,"configuration.token"))},null,8,["model-value"])])}const C=d(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/evnotify/vehicle.vue"]]);export{C as default};
diff --git a/web/settings/assets/vehicle-839ee3de.js b/web/settings/assets/vehicle-839ee3de.js
deleted file mode 100644
index a8837cde18..0000000000
--- a/web/settings/assets/vehicle-839ee3de.js
+++ /dev/null
@@ -1 +0,0 @@
-import{_ as f,a4 as g,a5 as h,a6 as b,p as l,k,l as w,A as a,L as i,u as s,q as m,x as v}from"./vendor-94ac8c48.js";import{a as y}from"./vendor-axios-dc63434e.js";import{C}from"./index-cbcca7a0.js";import"./vendor-sortablejs-dbc23470.js";import"./vendor-fortawesome-ad83e535.js";import"./vendor-bootstrap-9f620114.js";import"./vendor-jquery-f7104ff8.js";const T={name:"VehicleSocTesla",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{tesla_api_oauth2:"https://auth.tesla.com/oauth2/v3",tesla_api_redirect:"https://auth.tesla.com/void/callback",tesla_api_owners:"https://owner-api.teslamotors.com/oauth/token",user_agent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",code_challenge:null,code_verifier:null,page_not_found_url:""}},mixins:[C],methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})},tesla_login_window(){this.tesla_gen_challenge();var e=window.open(this.tesla_gen_url(),"TeslaLogin","width=800,height=600,status=yes,scrollbars=yes,resizable=yes");e.focus()},tesla_gen_challenge(){this.code_verifier=g.encode(h.randomBytes(86)).replace(/[^a-zA-Z0-9]/gi,"").substring(0,86);const e=h.createHash("sha256").update(this.code_verifier).digest();this.code_challenge=g.encode(e),console.log(this.code_verifier,this.code_verifier.length,this.code_challenge,this.code_challenge.length)},tesla_gen_url(){const e=new URL(this.tesla_api_oauth2+"/authorize/");return e.searchParams.append("client_id","ownerapi"),e.searchParams.append("code_challenge",this.code_challenge),e.searchParams.append("code_challenge_method","S256"),e.searchParams.append("redirect_uri",this.tesla_api_redirect),e.searchParams.append("response_type","code"),e.searchParams.append("scope","openid email offline_access"),e.searchParams.append("state","myteslaapp"),e},async tesla_login(){const e=b.parse(this.page_not_found_url,!0).query;if(console.debug("queryObject",e),!e.code){console.error("Something is wrong... Code does not exist in URL"),this.$root.postClientMessage("Die eingegebene URL ist ungültig.","danger");return}const n={url:this.tesla_api_owners,user_agent:this.user_agent,data:{grant_type:"authorization_code",client_id:"ownerapi",code:e.code,code_verifier:this.code_verifier,redirect_uri:this.tesla_api_redirect}};try{const t=await y.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/vehicles/tesla/tesla.php",JSON.parse(JSON.stringify(n)),{headers:{"Content-Type":"application/json",Accept:"application/json"}});console.debug("response",t),this.updateConfiguration({access_token:t.data.access_token,refresh_token:t.data.refresh_token,created_at:t.data.created_at,expires_in:t.data.expires_in},"configuration.token"),this.$root.postClientMessage("Token erfolgreich abgerufen.","success")}catch(t){console.error(t),this.$root.postClientMessage("Beim Abruf der Token ist ein Fehler aufgetreten!<pre>"+t+"</pre>","danger")}}}},x={class:"vehicle-soc-tesla"},U={class:"small"},B=m("hr",null,null,-1);function z(e,n,t,V,u,r){const _=l("openwb-base-heading"),d=l("openwb-base-number-input"),p=l("openwb-base-button-input"),c=l("openwb-base-text-input");return k(),w("div",x,[a(_,null,{default:i(()=>[s(" Einstellungen für Tesla SoC "),m("span",U,"(Modul: "+v(e.$options.name)+")",1)]),_:1}),a(d,{title:"Fahrzeug-ID",required:"",min:0,"model-value":t.configuration.tesla_ev_num,"onUpdate:modelValue":n[0]||(n[0]=o=>r.updateConfiguration(o,"configuration.tesla_ev_num"))},{help:i(()=>[s(' Die ID des Fahrzeugs bei Tesla. Normalerweise "0" bei nur einem Fahrzeug im Konto. ')]),_:1},8,["model-value"]),a(_,null,{default:i(()=>[s("Token abrufen oder eingeben")]),_:1}),a(p,{title:"1. Anmelden",buttonText:"Bei Tesla Anmelden",subtype:"success",onButtonClicked:r.tesla_login_window},{help:i(()=>[s(" Es wird ein neues Browserfenster geöffnet, in dem Sie sich bei Tesla mit Ihren Zugangsdaten anmelden können. ")]),_:1},8,["onButtonClicked"]),a(c,{title:"2. URL kopieren",subtype:"url",emptyValue:"",modelValue:u.page_not_found_url,"onUpdate:modelValue":n[1]||(n[1]=o=>u.page_not_found_url=o)},{help:i(()=>[s(' Hier die komplette URL (Text in der Adresszeile) aus dem geöffneten Browserfenster einfügen, wenn dort "Page Not Found" angezeigt wird. ')]),_:1},8,["modelValue"]),a(p,{title:"3. Token abrufen",buttonText:"Jetzt abrufen",subtype:"success",disabled:u.page_not_found_url.length==0,onButtonClicked:r.tesla_login},{help:i(()=>[s(" Der in der eingegebenen URL enthaltene Code wird genutzt, um ein Anmeldetoken bei Tesla abzurufen. Ist dies erfolgreich, so werden die Daten des Token in den weiteren Feldern automatisch eingegeben. ")]),_:1},8,["disabled","onButtonClicked"]),B,a(c,{title:"Access Token",pattern:"^(ey).*",required:"","model-value":t.configuration.token?t.configuration.token.access_token:"","onUpdate:modelValue":n[2]||(n[2]=o=>r.updateConfiguration(o,"configuration.token.access_token"))},null,8,["model-value"]),a(c,{title:"Refresh Token",pattern:"^(ey).*",required:"","model-value":t.configuration.token?t.configuration.token.refresh_token:"","onUpdate:modelValue":n[3]||(n[3]=o=>r.updateConfiguration(o,"configuration.token.refresh_token"))},null,8,["model-value"]),a(d,{title:"Erstellt um",required:"","model-value":t.configuration.token?t.configuration.token.created_at:0,"onUpdate:modelValue":n[4]||(n[4]=o=>r.updateConfiguration(o,"configuration.token.created_at"))},{help:i(()=>[s(" Unix Timestamp des Zeitpunktes, an dem das Token erzeugt wurde. ")]),_:1},8,["model-value"]),a(d,{title:"Ungültig in",unit:"s",required:"","model-value":t.configuration.token?t.configuration.token.expires_in:0,"onUpdate:modelValue":n[5]||(n[5]=o=>r.updateConfiguration(o,"configuration.token.expires_in"))},{help:i(()=>[s(" Zeitspanne in Sekunden, nach der das Token ungültig wird. ")]),_:1},8,["model-value"])])}const N=f(T,[["render",z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/tesla/vehicle.vue"]]);export{N as default};
diff --git a/web/settings/assets/vehicle-6f02cb37.js b/web/settings/assets/vehicle-8cbf750d.js
similarity index 92%
rename from web/settings/assets/vehicle-6f02cb37.js
rename to web/settings/assets/vehicle-8cbf750d.js
index cfe713b672..df388cf068 100644
--- a/web/settings/assets/vehicle-6f02cb37.js
+++ b/web/settings/assets/vehicle-8cbf750d.js
@@ -1 +1 @@
-import{_ as u,p as i,k as _,l as h,A as n,L as o,u as t,q as e,x as l}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const m={name:"VehicleSocMqtt",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(s,a=void 0){this.$emit("update:configuration",{value:s,object:a})}}},f={class:"vehicle-soc-mqtt"},b={class:"small"},g=e("br",null,null,-1),v=e("br",null,null,-1),w=e("span",{class:"text-info"},"89.5",-1),k=e("br",null,null,-1),x=e("br",null,null,-1),B=e("br",null,null,-1),q=e("span",{class:"text-info"},"356.5",-1);function z(s,a,c,C,T,y){const d=i("openwb-base-heading"),r=i("openwb-base-copy-to-clipboard"),p=i("openwb-base-alert");return _(),h("div",f,[n(d,null,{default:o(()=>[t(" Einstellungen für MQTT SoC "),e("span",b,"(Modul: "+l(s.$options.name)+")",1)]),_:1}),n(p,{subtype:"info"},{default:o(()=>[t(" Die Daten werden immer dann aktualisiert, wenn das Topic veröffentlicht wird. Die Abfrageintervalle werden nicht berücksichtigt, da das Intervall vom sendenden Client festgelegt wird. "),e("ul",null,[e("li",null,[n(r,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/vehicle/"+l(c.vehicleId)+"/get/soc",1)]),_:1}),g,t(" Fahrzeug-SoC mit Nachkommastellen (Float) oder Ganzzahl"),v,t(" Beispiel: "),w]),e("li",null,[n(r,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/vehicle/"+l(c.vehicleId)+"/get/range",1)]),_:1}),k,t(" Reichweite des Fahrzeugs in km mit Nachkommastellen (Float) oder Ganzzahl"),x,t(" Diese Info ist optional."),B,t(" Beispiel: "),q])])]),_:1})])}const N=u(m,[["render",z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/mqtt/vehicle.vue"]]);export{N as default};
+import{_ as u,p as i,k as _,l as h,A as n,L as o,u as t,q as e,x as l}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const m={name:"VehicleSocMqtt",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(s,a=void 0){this.$emit("update:configuration",{value:s,object:a})}}},f={class:"vehicle-soc-mqtt"},b={class:"small"},g=e("br",null,null,-1),v=e("br",null,null,-1),w=e("span",{class:"text-info"},"89.5",-1),k=e("br",null,null,-1),x=e("br",null,null,-1),B=e("br",null,null,-1),q=e("span",{class:"text-info"},"356.5",-1);function z(s,a,c,C,T,y){const d=i("openwb-base-heading"),r=i("openwb-base-copy-to-clipboard"),p=i("openwb-base-alert");return _(),h("div",f,[n(d,null,{default:o(()=>[t(" Einstellungen für MQTT SoC "),e("span",b,"(Modul: "+l(s.$options.name)+")",1)]),_:1}),n(p,{subtype:"info"},{default:o(()=>[t(" Die Daten werden immer dann aktualisiert, wenn das Topic veröffentlicht wird. Die Abfrageintervalle werden nicht berücksichtigt, da das Intervall vom sendenden Client festgelegt wird. "),e("ul",null,[e("li",null,[n(r,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/vehicle/"+l(c.vehicleId)+"/get/soc",1)]),_:1}),g,t(" Fahrzeug-SoC mit Nachkommastellen (Float) oder Ganzzahl"),v,t(" Beispiel: "),w]),e("li",null,[n(r,{class:"text-info",tooltip:"Topic kopieren"},{default:o(()=>[t("openWB/set/vehicle/"+l(c.vehicleId)+"/get/range",1)]),_:1}),k,t(" Reichweite des Fahrzeugs in km mit Nachkommastellen (Float) oder Ganzzahl"),x,t(" Diese Info ist optional."),B,t(" Beispiel: "),q])])]),_:1})])}const N=u(m,[["render",z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/mqtt/vehicle.vue"]]);export{N as default};
diff --git a/web/settings/assets/vehicle-174df8ec.js b/web/settings/assets/vehicle-c74f02d0.js
similarity index 93%
rename from web/settings/assets/vehicle-174df8ec.js
rename to web/settings/assets/vehicle-c74f02d0.js
index a2ec255f57..dae07ed8b9 100644
--- a/web/settings/assets/vehicle-174df8ec.js
+++ b/web/settings/assets/vehicle-c74f02d0.js
@@ -1 +1 @@
-import{_ as p,p as d,k as m,l as c,A as t,L as o,u as a,q as f,x as g}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"VehicleSocRenault",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!1}},data(){return{}},methods:{updateConfiguration(l,e=void 0){this.$emit("update:configuration",{value:l,object:e})}}},_={class:"vehicle-soc-renault"},h={class:"small"};function b(l,e,u,w,V,i){const s=d("openwb-base-heading"),r=d("openwb-base-text-input");return m(),c("div",_,[t(s,null,{default:o(()=>[a(" Einstellungen für Renault SoC "),f("span",h,"(Modul: "+g(l.$options.name)+")",1)]),_:1}),t(r,{title:"Benutzername",required:"",subtype:"user","model-value":u.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"configuration.user_id"))},{help:o(()=>[a(" Der Benutzername für die Anmeldung an den Renault-Servern. ")]),_:1},8,["model-value"]),t(r,{title:"Kennwort",required:"",subtype:"password","model-value":u.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n,"configuration.password"))},{help:o(()=>[a(" Das Passwort für die Anmeldung an den Renault-Servern. ")]),_:1},8,["model-value"]),t(r,{title:"Land",required:"","model-value":u.configuration.country,"onUpdate:modelValue":e[2]||(e[2]=n=>i.updateConfiguration(n,"configuration.country"))},{help:o(()=>[a(" Land des Fahrzeugs, z.b. DE für Deutschland. ")]),_:1},8,["model-value"]),t(r,{title:"VIN","model-value":u.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=n=>i.updateConfiguration(n,"configuration.vin"))},{help:o(()=>[a(" Die Fahrgestellnummer des Fahrzeugs falls mehrere Fahrzeuge im Account vorhanden sind. ")]),_:1},8,["model-value"])])}const q=p(v,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/renault/vehicle.vue"]]);export{q as default};
+import{_ as p,p as d,k as m,l as c,A as t,L as o,u as a,q as f,x as g}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"VehicleSocRenault",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!1}},data(){return{}},methods:{updateConfiguration(l,e=void 0){this.$emit("update:configuration",{value:l,object:e})}}},_={class:"vehicle-soc-renault"},h={class:"small"};function b(l,e,u,w,V,i){const s=d("openwb-base-heading"),r=d("openwb-base-text-input");return m(),c("div",_,[t(s,null,{default:o(()=>[a(" Einstellungen für Renault SoC "),f("span",h,"(Modul: "+g(l.$options.name)+")",1)]),_:1}),t(r,{title:"Benutzername",required:"",subtype:"user","model-value":u.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>i.updateConfiguration(n,"configuration.user_id"))},{help:o(()=>[a(" Der Benutzername für die Anmeldung an den Renault-Servern. ")]),_:1},8,["model-value"]),t(r,{title:"Kennwort",required:"",subtype:"password","model-value":u.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>i.updateConfiguration(n,"configuration.password"))},{help:o(()=>[a(" Das Passwort für die Anmeldung an den Renault-Servern. ")]),_:1},8,["model-value"]),t(r,{title:"Land",required:"","model-value":u.configuration.country,"onUpdate:modelValue":e[2]||(e[2]=n=>i.updateConfiguration(n,"configuration.country"))},{help:o(()=>[a(" Land des Fahrzeugs, z.b. DE für Deutschland. ")]),_:1},8,["model-value"]),t(r,{title:"VIN","model-value":u.configuration.vin,"onUpdate:modelValue":e[3]||(e[3]=n=>i.updateConfiguration(n,"configuration.vin"))},{help:o(()=>[a(" Die Fahrgestellnummer des Fahrzeugs falls mehrere Fahrzeuge im Account vorhanden sind. ")]),_:1},8,["model-value"])])}const q=p(v,[["render",b],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/renault/vehicle.vue"]]);export{q as default};
diff --git a/web/settings/assets/vehicle-0969da15.js b/web/settings/assets/vehicle-cbd74ad8.js
similarity index 91%
rename from web/settings/assets/vehicle-0969da15.js
rename to web/settings/assets/vehicle-cbd74ad8.js
index 194ca25dbd..0b62f749fc 100644
--- a/web/settings/assets/vehicle-0969da15.js
+++ b/web/settings/assets/vehicle-cbd74ad8.js
@@ -1 +1 @@
-import{_ as p,p as d,k as m,l as c,A as t,L as o,u as a,q as f,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"VehicleSocSmarteq",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(r,e=void 0){this.$emit("update:configuration",{value:r,object:e})}}},v={class:"vehicle-soc-smarteq"},b={class:"small"};function h(r,e,i,w,q,s){const l=d("openwb-base-heading"),u=d("openwb-base-text-input");return m(),c("div",v,[t(l,null,{default:o(()=>[a(" Einstellungen für SmartEQ SoC "),f("span",b,"(Modul: "+_(r.$options.name)+")",1)]),_:1}),t(u,{title:"Benutzername",required:"",subtype:"user","model-value":i.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.user_id"))},{help:o(()=>[a(" Der Benutzername für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),t(u,{title:"Kennwort",required:"",subtype:"password","model-value":i.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.password"))},{help:o(()=>[a(" Das Passwort für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),t(u,{title:"VIN",required:"","model-value":i.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=n=>s.updateConfiguration(n,"configuration.vin"))},{help:o(()=>[a(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const C=p(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/smarteq/vehicle.vue"]]);export{C as default};
+import{_ as p,p as d,k as m,l as c,A as t,L as o,u as a,q as f,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"VehicleSocSmarteq",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(r,e=void 0){this.$emit("update:configuration",{value:r,object:e})}}},v={class:"vehicle-soc-smarteq"},b={class:"small"};function h(r,e,i,w,q,s){const l=d("openwb-base-heading"),u=d("openwb-base-text-input");return m(),c("div",v,[t(l,null,{default:o(()=>[a(" Einstellungen für SmartEQ SoC "),f("span",b,"(Modul: "+_(r.$options.name)+")",1)]),_:1}),t(u,{title:"Benutzername",required:"",subtype:"user","model-value":i.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.user_id"))},{help:o(()=>[a(" Der Benutzername für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),t(u,{title:"Kennwort",required:"",subtype:"password","model-value":i.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.password"))},{help:o(()=>[a(" Das Passwort für die Anmeldung an den Servern. ")]),_:1},8,["model-value"]),t(u,{title:"VIN",required:"","model-value":i.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=n=>s.updateConfiguration(n,"configuration.vin"))},{help:o(()=>[a(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const C=p(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/smarteq/vehicle.vue"]]);export{C as default};
diff --git a/web/settings/assets/vehicle-e7320818.js b/web/settings/assets/vehicle-e7320818.js
new file mode 100644
index 0000000000..3a8fe77ca5
--- /dev/null
+++ b/web/settings/assets/vehicle-e7320818.js
@@ -0,0 +1 @@
+import{_ as f,a4 as g,a5 as h,a6 as b,p as l,k,l as w,A as a,L as i,u as s,q as m,x as v}from"./vendor-20bb207d.js";import{a as y}from"./vendor-axios-13ef03ae.js";import{C}from"./index-f08a7306.js";import"./vendor-sortablejs-ad1d2cc8.js";import"./vendor-fortawesome-838df0c9.js";import"./vendor-bootstrap-d275de6c.js";import"./vendor-jquery-89b63fca.js";const T={name:"VehicleSocTesla",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{tesla_api_oauth2:"https://auth.tesla.com/oauth2/v3",tesla_api_redirect:"https://auth.tesla.com/void/callback",tesla_api_owners:"https://owner-api.teslamotors.com/oauth/token",user_agent:"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148",code_challenge:null,code_verifier:null,page_not_found_url:""}},mixins:[C],methods:{updateConfiguration(e,n=void 0){this.$emit("update:configuration",{value:e,object:n})},tesla_login_window(){this.tesla_gen_challenge();var e=window.open(this.tesla_gen_url(),"TeslaLogin","width=800,height=600,status=yes,scrollbars=yes,resizable=yes");e.focus()},tesla_gen_challenge(){this.code_verifier=g.encode(h.randomBytes(86)).replace(/[^a-zA-Z0-9]/gi,"").substring(0,86);const e=h.createHash("sha256").update(this.code_verifier).digest();this.code_challenge=g.encode(e),console.debug(this.code_verifier,this.code_verifier.length,this.code_challenge,this.code_challenge.length)},tesla_gen_url(){const e=new URL(this.tesla_api_oauth2+"/authorize/");return e.searchParams.append("client_id","ownerapi"),e.searchParams.append("code_challenge",this.code_challenge),e.searchParams.append("code_challenge_method","S256"),e.searchParams.append("redirect_uri",this.tesla_api_redirect),e.searchParams.append("response_type","code"),e.searchParams.append("scope","openid email offline_access"),e.searchParams.append("state","myteslaapp"),e},async tesla_login(){const e=b.parse(this.page_not_found_url,!0).query;if(console.debug("queryObject",e),!e.code){console.error("Something is wrong... Code does not exist in URL"),this.$root.postClientMessage("Die eingegebene URL ist ungültig.","danger");return}const n={url:this.tesla_api_owners,user_agent:this.user_agent,data:{grant_type:"authorization_code",client_id:"ownerapi",code:e.code,code_verifier:this.code_verifier,redirect_uri:this.tesla_api_redirect}};try{const t=await y.post(location.protocol+"//"+location.host+"/openWB/web/settings/modules/vehicles/tesla/tesla.php",JSON.parse(JSON.stringify(n)),{headers:{"Content-Type":"application/json",Accept:"application/json"}});console.debug("response",t),this.updateConfiguration({access_token:t.data.access_token,refresh_token:t.data.refresh_token,created_at:t.data.created_at,expires_in:t.data.expires_in},"configuration.token"),this.$root.postClientMessage("Token erfolgreich abgerufen.","success")}catch(t){console.error(t),this.$root.postClientMessage("Beim Abruf der Token ist ein Fehler aufgetreten!<pre>"+t+"</pre>","danger")}}}},x={class:"vehicle-soc-tesla"},U={class:"small"},B=m("hr",null,null,-1);function z(e,n,t,V,u,r){const _=l("openwb-base-heading"),d=l("openwb-base-number-input"),p=l("openwb-base-button-input"),c=l("openwb-base-text-input");return k(),w("div",x,[a(_,null,{default:i(()=>[s(" Einstellungen für Tesla SoC "),m("span",U,"(Modul: "+v(e.$options.name)+")",1)]),_:1}),a(d,{title:"Fahrzeug-ID",required:"",min:0,"model-value":t.configuration.tesla_ev_num,"onUpdate:modelValue":n[0]||(n[0]=o=>r.updateConfiguration(o,"configuration.tesla_ev_num"))},{help:i(()=>[s(' Die ID des Fahrzeugs bei Tesla. Normalerweise "0" bei nur einem Fahrzeug im Konto. ')]),_:1},8,["model-value"]),a(_,null,{default:i(()=>[s("Token abrufen oder eingeben")]),_:1}),a(p,{title:"1. Anmelden",buttonText:"Bei Tesla Anmelden",subtype:"success",onButtonClicked:r.tesla_login_window},{help:i(()=>[s(" Es wird ein neues Browserfenster geöffnet, in dem Sie sich bei Tesla mit Ihren Zugangsdaten anmelden können. ")]),_:1},8,["onButtonClicked"]),a(c,{title:"2. URL kopieren",subtype:"url",emptyValue:"",modelValue:u.page_not_found_url,"onUpdate:modelValue":n[1]||(n[1]=o=>u.page_not_found_url=o)},{help:i(()=>[s(' Hier die komplette URL (Text in der Adresszeile) aus dem geöffneten Browserfenster einfügen, wenn dort "Page Not Found" angezeigt wird. ')]),_:1},8,["modelValue"]),a(p,{title:"3. Token abrufen",buttonText:"Jetzt abrufen",subtype:"success",disabled:u.page_not_found_url.length==0,onButtonClicked:r.tesla_login},{help:i(()=>[s(" Der in der eingegebenen URL enthaltene Code wird genutzt, um ein Anmeldetoken bei Tesla abzurufen. Ist dies erfolgreich, so werden die Daten des Token in den weiteren Feldern automatisch eingegeben. ")]),_:1},8,["disabled","onButtonClicked"]),B,a(c,{title:"Access Token",pattern:"^(ey).*",required:"","model-value":t.configuration.token?t.configuration.token.access_token:"","onUpdate:modelValue":n[2]||(n[2]=o=>r.updateConfiguration(o,"configuration.token.access_token"))},null,8,["model-value"]),a(c,{title:"Refresh Token",pattern:"^(ey).*",required:"","model-value":t.configuration.token?t.configuration.token.refresh_token:"","onUpdate:modelValue":n[3]||(n[3]=o=>r.updateConfiguration(o,"configuration.token.refresh_token"))},null,8,["model-value"]),a(d,{title:"Erstellt um",required:"","model-value":t.configuration.token?t.configuration.token.created_at:0,"onUpdate:modelValue":n[4]||(n[4]=o=>r.updateConfiguration(o,"configuration.token.created_at"))},{help:i(()=>[s(" Unix Timestamp des Zeitpunktes, an dem das Token erzeugt wurde. ")]),_:1},8,["model-value"]),a(d,{title:"Ungültig in",unit:"s",required:"","model-value":t.configuration.token?t.configuration.token.expires_in:0,"onUpdate:modelValue":n[5]||(n[5]=o=>r.updateConfiguration(o,"configuration.token.expires_in"))},{help:i(()=>[s(" Zeitspanne in Sekunden, nach der das Token ungültig wird. ")]),_:1},8,["model-value"])])}const N=f(T,[["render",z],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/tesla/vehicle.vue"]]);export{N as default};
diff --git a/web/settings/assets/vehicle-8bdcc244.js b/web/settings/assets/vehicle-ebf7e590.js
similarity index 95%
rename from web/settings/assets/vehicle-8bdcc244.js
rename to web/settings/assets/vehicle-ebf7e590.js
index 405327e7fb..f5b78d9b9d 100644
--- a/web/settings/assets/vehicle-8bdcc244.js
+++ b/web/settings/assets/vehicle-ebf7e590.js
@@ -1 +1 @@
-import{_ as g,p as a,k as h,l as f,A as n,L as o,u as t,q as r,x as d}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const v={name:"VehicleSocMercedesEq",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},computed:{callback_url(){return`${location.origin}/openWB/web/settings/modules/vehicles/mercedeseq/callback_vehicle.php`},login_url(){return`https://ssoalpha.dvb.corpinter.net/v1/auth?response_type=code&state=${this.vehicleId}&client_id=${this.configuration.client_id}&redirect_uri=${this.callback_url}&scope=mb:vehicle:mbdata:evstatus%20offline_access%20openid`},input_complete(){return this.configuration.client_id&&this.configuration.client_secret&&this.configuration.vin}},methods:{updateConfiguration(l,e=void 0){this.$emit("update:configuration",{value:l,object:e})},login_window(){console.debug("callback url",this.callback_url),console.debug("login url",this.login_url);var l=window.open(this.login_url,"MercedesLogin","width=800,height=600,status=yes,scrollbars=yes,resizable=yes");l.focus()}}},w={class:"vehicle-soc-mercedeseq"},k={class:"small"},C=r("br",null,null,-1),y=r("br",null,null,-1),q=r("br",null,null,-1);function x(l,e,c,B,D,i){const p=a("openwb-base-heading"),u=a("openwb-base-text-input"),_=a("openwb-base-copy-to-clipboard"),b=a("openwb-base-alert"),m=a("openwb-base-button-input");return h(),f("div",w,[n(p,null,{default:o(()=>[t(" Einstellungen für Mercedes EQ SoC "),r("span",k,"(Modul: "+d(l.$options.name)+")",1)]),_:1}),n(u,{title:"Client-ID",required:"",subtype:"user","model-value":c.configuration.client_id,"onUpdate:modelValue":e[0]||(e[0]=s=>i.updateConfiguration(s,"configuration.client_id"))},{help:o(()=>[t(" Die im Developer Portal angelegte Client-ID. ")]),_:1},8,["model-value"]),n(u,{title:"Client Secret",required:"",subtype:"password","model-value":c.configuration.client_secret,"onUpdate:modelValue":e[1]||(e[1]=s=>i.updateConfiguration(s,"configuration.client_secret"))},{help:o(()=>[t(" Das im Developer Portal angelegte Client Secret. ")]),_:1},8,["model-value"]),n(u,{title:"VIN",required:"","model-value":c.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=s=>i.updateConfiguration(s,"configuration.vin"))},{help:o(()=>[t(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"]),n(b,{subtype:"info"},{default:o(()=>[t(" Vor dem Anmelden bitte die Angaben speichern."),C,t(" Die Callback-URL für die Anmeldung lautet:"),y,n(_,{class:"text-info",tooltip:"URL kopieren"},{default:o(()=>[t(d(i.callback_url),1)]),_:1})]),_:1}),n(m,{title:"Anmelden",buttonText:"Bei Mercedes Anmelden",subtype:"success",disabled:!i.input_complete,onButtonClicked:i.login_window},{help:o(()=>[t(" Es wird ein neues Browserfenster geöffnet, in dem Sie sich bei Mercedes mit Ihren Zugangsdaten anmelden können."),q]),_:1},8,["disabled","onButtonClicked"])])}const I=g(v,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/mercedeseq/vehicle.vue"]]);export{I as default};
+import{_ as g,p as a,k as h,l as f,A as n,L as o,u as t,q as r,x as d}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const v={name:"VehicleSocMercedesEq",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},computed:{callback_url(){return`${location.origin}/openWB/web/settings/modules/vehicles/mercedeseq/callback_vehicle.php`},login_url(){return`https://ssoalpha.dvb.corpinter.net/v1/auth?response_type=code&state=${this.vehicleId}&client_id=${this.configuration.client_id}&redirect_uri=${this.callback_url}&scope=mb:vehicle:mbdata:evstatus%20offline_access%20openid`},input_complete(){return this.configuration.client_id&&this.configuration.client_secret&&this.configuration.vin}},methods:{updateConfiguration(l,e=void 0){this.$emit("update:configuration",{value:l,object:e})},login_window(){console.debug("callback url",this.callback_url),console.debug("login url",this.login_url);var l=window.open(this.login_url,"MercedesLogin","width=800,height=600,status=yes,scrollbars=yes,resizable=yes");l.focus()}}},w={class:"vehicle-soc-mercedeseq"},k={class:"small"},C=r("br",null,null,-1),y=r("br",null,null,-1),q=r("br",null,null,-1);function x(l,e,c,B,D,i){const p=a("openwb-base-heading"),u=a("openwb-base-text-input"),_=a("openwb-base-copy-to-clipboard"),b=a("openwb-base-alert"),m=a("openwb-base-button-input");return h(),f("div",w,[n(p,null,{default:o(()=>[t(" Einstellungen für Mercedes EQ SoC "),r("span",k,"(Modul: "+d(l.$options.name)+")",1)]),_:1}),n(u,{title:"Client-ID",required:"",subtype:"user","model-value":c.configuration.client_id,"onUpdate:modelValue":e[0]||(e[0]=s=>i.updateConfiguration(s,"configuration.client_id"))},{help:o(()=>[t(" Die im Developer Portal angelegte Client-ID. ")]),_:1},8,["model-value"]),n(u,{title:"Client Secret",required:"",subtype:"password","model-value":c.configuration.client_secret,"onUpdate:modelValue":e[1]||(e[1]=s=>i.updateConfiguration(s,"configuration.client_secret"))},{help:o(()=>[t(" Das im Developer Portal angelegte Client Secret. ")]),_:1},8,["model-value"]),n(u,{title:"VIN",required:"","model-value":c.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=s=>i.updateConfiguration(s,"configuration.vin"))},{help:o(()=>[t(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"]),n(b,{subtype:"info"},{default:o(()=>[t(" Vor dem Anmelden bitte die Angaben speichern."),C,t(" Die Callback-URL für die Anmeldung lautet:"),y,n(_,{class:"text-info",tooltip:"URL kopieren"},{default:o(()=>[t(d(i.callback_url),1)]),_:1})]),_:1}),n(m,{title:"Anmelden",buttonText:"Bei Mercedes Anmelden",subtype:"success",disabled:!i.input_complete,onButtonClicked:i.login_window},{help:o(()=>[t(" Es wird ein neues Browserfenster geöffnet, in dem Sie sich bei Mercedes mit Ihren Zugangsdaten anmelden können."),q]),_:1},8,["disabled","onButtonClicked"])])}const I=g(v,[["render",x],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/mercedeseq/vehicle.vue"]]);export{I as default};
diff --git a/web/settings/assets/vehicle-316d265a.js b/web/settings/assets/vehicle-ef079f93.js
similarity index 92%
rename from web/settings/assets/vehicle-316d265a.js
rename to web/settings/assets/vehicle-ef079f93.js
index 224ae41541..acdc2a41c7 100644
--- a/web/settings/assets/vehicle-316d265a.js
+++ b/web/settings/assets/vehicle-ef079f93.js
@@ -1 +1 @@
-import{_ as c,p as d,k as p,l as m,A as o,L as t,u as a,q as f,x as _}from"./vendor-94ac8c48.js";import"./vendor-sortablejs-dbc23470.js";const g={name:"VehicleSocSkodaconnect",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},v={class:"vehicle-soc-skodaconnect"},b={class:"small"};function h(i,e,r,w,k,s){const l=d("openwb-base-heading"),u=d("openwb-base-text-input");return p(),m("div",v,[o(l,null,{default:t(()=>[a(" Einstellungen für Skoda iV SoC "),f("span",b,"(Modul: "+_(i.$options.name)+")",1)]),_:1}),o(u,{title:"Benutzername",required:"",subtype:"user","model-value":r.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.user_id"))},{help:t(()=>[a(" Der Benutzername für die Anmeldung an den SkodaConnect-Servern. ")]),_:1},8,["model-value"]),o(u,{title:"Kennwort",required:"",subtype:"password","model-value":r.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.password"))},{help:t(()=>[a(" Das Passwort für die Anmeldung an den SkodaConnect-Servern. ")]),_:1},8,["model-value"]),o(u,{title:"VIN",required:"","model-value":r.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=n=>s.updateConfiguration(n,"configuration.vin"))},{help:t(()=>[a(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const V=c(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/skodaconnect/vehicle.vue"]]);export{V as default};
+import{_ as c,p as d,k as p,l as m,A as o,L as t,u as a,q as f,x as _}from"./vendor-20bb207d.js";import"./vendor-sortablejs-ad1d2cc8.js";const g={name:"VehicleSocSkodaconnect",emits:["update:configuration"],props:{configuration:{type:Object,required:!0},vehicleId:{required:!0}},data(){return{}},methods:{updateConfiguration(i,e=void 0){this.$emit("update:configuration",{value:i,object:e})}}},v={class:"vehicle-soc-skodaconnect"},b={class:"small"};function h(i,e,r,w,k,s){const l=d("openwb-base-heading"),u=d("openwb-base-text-input");return p(),m("div",v,[o(l,null,{default:t(()=>[a(" Einstellungen für Skoda iV SoC "),f("span",b,"(Modul: "+_(i.$options.name)+")",1)]),_:1}),o(u,{title:"Benutzername",required:"",subtype:"user","model-value":r.configuration.user_id,"onUpdate:modelValue":e[0]||(e[0]=n=>s.updateConfiguration(n,"configuration.user_id"))},{help:t(()=>[a(" Der Benutzername für die Anmeldung an den SkodaConnect-Servern. ")]),_:1},8,["model-value"]),o(u,{title:"Kennwort",required:"",subtype:"password","model-value":r.configuration.password,"onUpdate:modelValue":e[1]||(e[1]=n=>s.updateConfiguration(n,"configuration.password"))},{help:t(()=>[a(" Das Passwort für die Anmeldung an den SkodaConnect-Servern. ")]),_:1},8,["model-value"]),o(u,{title:"VIN",required:"","model-value":r.configuration.vin,"onUpdate:modelValue":e[2]||(e[2]=n=>s.updateConfiguration(n,"configuration.vin"))},{help:t(()=>[a(" Die Fahrgestellnummer des Fahrzeugs. ")]),_:1},8,["model-value"])])}const V=c(g,[["render",h],["__file","/opt/openWB-dev/openwb-ui-settings/src/components/vehicles/skodaconnect/vehicle.vue"]]);export{V as default};
diff --git a/web/settings/assets/vendor-20bb207d.js b/web/settings/assets/vendor-20bb207d.js
new file mode 100644
index 0000000000..0e0c5264c8
--- /dev/null
+++ b/web/settings/assets/vendor-20bb207d.js
@@ -0,0 +1,100 @@
+import{r as N4}from"./vendor-sortablejs-ad1d2cc8.js";var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){if(this instanceof i){var a=[null];a.push.apply(a,arguments);var n=Function.bind.apply(t,a);return new n}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var ke={},nh={};nh.byteLength=D4;nh.toByteArray=j4;nh.fromByteArray=q4;var Xi=[],ui=[],k4=typeof Uint8Array<"u"?Uint8Array:Array,Tc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Ca=0,$4=Tc.length;Ca<$4;++Ca)Xi[Ca]=Tc[Ca],ui[Tc.charCodeAt(Ca)]=Ca;ui["-".charCodeAt(0)]=62;ui["_".charCodeAt(0)]=63;function $w(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function D4(e){var t=$w(e),r=t[0],i=t[1];return(r+i)*3/4-i}function F4(e,t,r){return(t+r)*3/4-r}function j4(e){var t,r=$w(e),i=r[0],a=r[1],n=new k4(F4(e,i,a)),u=0,c=a>0?i-4:i,d;for(d=0;d<c;d+=4)t=ui[e.charCodeAt(d)]<<18|ui[e.charCodeAt(d+1)]<<12|ui[e.charCodeAt(d+2)]<<6|ui[e.charCodeAt(d+3)],n[u++]=t>>16&255,n[u++]=t>>8&255,n[u++]=t&255;return a===2&&(t=ui[e.charCodeAt(d)]<<2|ui[e.charCodeAt(d+1)]>>4,n[u++]=t&255),a===1&&(t=ui[e.charCodeAt(d)]<<10|ui[e.charCodeAt(d+1)]<<4|ui[e.charCodeAt(d+2)]>>2,n[u++]=t>>8&255,n[u++]=t&255),n}function U4(e){return Xi[e>>18&63]+Xi[e>>12&63]+Xi[e>>6&63]+Xi[e&63]}function H4(e,t,r){for(var i,a=[],n=t;n<r;n+=3)i=(e[n]<<16&16711680)+(e[n+1]<<8&65280)+(e[n+2]&255),a.push(U4(i));return a.join("")}function q4(e){for(var t,r=e.length,i=r%3,a=[],n=16383,u=0,c=r-i;u<c;u+=n)a.push(H4(e,u,u+n>c?c:u+n));return i===1?(t=e[r-1],a.push(Xi[t>>2]+Xi[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],a.push(Xi[t>>10]+Xi[t>>4&63]+Xi[t<<2&63]+"=")),a.join("")}var rv={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */rv.read=function(e,t,r,i,a){var n,u,c=a*8-i-1,d=(1<<c)-1,m=d>>1,M=-7,S=r?a-1:0,R=r?-1:1,C=e[t+S];for(S+=R,n=C&(1<<-M)-1,C>>=-M,M+=c;M>0;n=n*256+e[t+S],S+=R,M-=8);for(u=n&(1<<-M)-1,n>>=-M,M+=i;M>0;u=u*256+e[t+S],S+=R,M-=8);if(n===0)n=1-m;else{if(n===d)return u?NaN:(C?-1:1)*(1/0);u=u+Math.pow(2,i),n=n-m}return(C?-1:1)*u*Math.pow(2,n-i)};rv.write=function(e,t,r,i,a,n){var u,c,d,m=n*8-a-1,M=(1<<m)-1,S=M>>1,R=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:n-1,P=i?1:-1,k=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,u=M):(u=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-u))<1&&(u--,d*=2),u+S>=1?t+=R/d:t+=R*Math.pow(2,1-S),t*d>=2&&(u++,d/=2),u+S>=M?(c=0,u=M):u+S>=1?(c=(t*d-1)*Math.pow(2,a),u=u+S):(c=t*Math.pow(2,S-1)*Math.pow(2,a),u=0));a>=8;e[r+C]=c&255,C+=P,c/=256,a-=8);for(u=u<<a|c,m+=a;m>0;e[r+C]=u&255,C+=P,u/=256,m-=8);e[r+C-P]|=k*128};/*!
+ * The buffer module from node.js, for the browser.
+ *
+ * @author   Feross Aboukhadijeh <https://feross.org>
+ * @license  MIT
+ */(function(e){var t=nh,r=rv,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=B,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=n(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function n(){try{var D=new Uint8Array(1),N={foo:function(){return 42}};return Object.setPrototypeOf(N,Uint8Array.prototype),Object.setPrototypeOf(D,N),D.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function u(D){if(D>a)throw new RangeError('The value "'+D+'" is invalid for option "size"');var N=new Uint8Array(D);return Object.setPrototypeOf(N,c.prototype),N}function c(D,N,j){if(typeof D=="number"){if(typeof N=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(D)}return d(D,N,j)}c.poolSize=8192;function d(D,N,j){if(typeof D=="string")return R(D,N);if(ArrayBuffer.isView(D))return P(D);if(D==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof D);if(O(D,ArrayBuffer)||D&&O(D.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(O(D,SharedArrayBuffer)||D&&O(D.buffer,SharedArrayBuffer)))return k(D,N,j);if(typeof D=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var z=D.valueOf&&D.valueOf();if(z!=null&&z!==D)return c.from(z,N,j);var se=L(D);if(se)return se;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof D[Symbol.toPrimitive]=="function")return c.from(D[Symbol.toPrimitive]("string"),N,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof D)}c.from=function(D,N,j){return d(D,N,j)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function m(D){if(typeof D!="number")throw new TypeError('"size" argument must be of type number');if(D<0)throw new RangeError('The value "'+D+'" is invalid for option "size"')}function M(D,N,j){return m(D),D<=0?u(D):N!==void 0?typeof j=="string"?u(D).fill(N,j):u(D).fill(N):u(D)}c.alloc=function(D,N,j){return M(D,N,j)};function S(D){return m(D),u(D<0?0:I(D)|0)}c.allocUnsafe=function(D){return S(D)},c.allocUnsafeSlow=function(D){return S(D)};function R(D,N){if((typeof N!="string"||N==="")&&(N="utf8"),!c.isEncoding(N))throw new TypeError("Unknown encoding: "+N);var j=H(D,N)|0,z=u(j),se=z.write(D,N);return se!==j&&(z=z.slice(0,se)),z}function C(D){for(var N=D.length<0?0:I(D.length)|0,j=u(N),z=0;z<N;z+=1)j[z]=D[z]&255;return j}function P(D){if(O(D,Uint8Array)){var N=new Uint8Array(D);return k(N.buffer,N.byteOffset,N.byteLength)}return C(D)}function k(D,N,j){if(N<0||D.byteLength<N)throw new RangeError('"offset" is outside of buffer bounds');if(D.byteLength<N+(j||0))throw new RangeError('"length" is outside of buffer bounds');var z;return N===void 0&&j===void 0?z=new Uint8Array(D):j===void 0?z=new Uint8Array(D,N):z=new Uint8Array(D,N,j),Object.setPrototypeOf(z,c.prototype),z}function L(D){if(c.isBuffer(D)){var N=I(D.length)|0,j=u(N);return j.length===0||D.copy(j,0,0,N),j}if(D.length!==void 0)return typeof D.length!="number"||q(D.length)?u(0):C(D);if(D.type==="Buffer"&&Array.isArray(D.data))return C(D.data)}function I(D){if(D>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return D|0}function B(D){return+D!=D&&(D=0),c.alloc(+D)}c.isBuffer=function(N){return N!=null&&N._isBuffer===!0&&N!==c.prototype},c.compare=function(N,j){if(O(N,Uint8Array)&&(N=c.from(N,N.offset,N.byteLength)),O(j,Uint8Array)&&(j=c.from(j,j.offset,j.byteLength)),!c.isBuffer(N)||!c.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(N===j)return 0;for(var z=N.length,se=j.length,te=0,ne=Math.min(z,se);te<ne;++te)if(N[te]!==j[te]){z=N[te],se=j[te];break}return z<se?-1:se<z?1:0},c.isEncoding=function(N){switch(String(N).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(N,j){if(!Array.isArray(N))throw new TypeError('"list" argument must be an Array of Buffers');if(N.length===0)return c.alloc(0);var z;if(j===void 0)for(j=0,z=0;z<N.length;++z)j+=N[z].length;var se=c.allocUnsafe(j),te=0;for(z=0;z<N.length;++z){var ne=N[z];if(O(ne,Uint8Array))te+ne.length>se.length?c.from(ne).copy(se,te):Uint8Array.prototype.set.call(se,ne,te);else if(c.isBuffer(ne))ne.copy(se,te);else throw new TypeError('"list" argument must be an Array of Buffers');te+=ne.length}return se};function H(D,N){if(c.isBuffer(D))return D.length;if(ArrayBuffer.isView(D)||O(D,ArrayBuffer))return D.byteLength;if(typeof D!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof D);var j=D.length,z=arguments.length>2&&arguments[2]===!0;if(!z&&j===0)return 0;for(var se=!1;;)switch(N){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return U(D).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j*2;case"hex":return j>>>1;case"base64":return b(D).length;default:if(se)return z?-1:U(D).length;N=(""+N).toLowerCase(),se=!0}}c.byteLength=H;function F(D,N,j){var z=!1;if((N===void 0||N<0)&&(N=0),N>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0,N>>>=0,j<=N))return"";for(D||(D="utf8");;)switch(D){case"hex":return g(this,N,j);case"utf8":case"utf-8":return l(this,N,j);case"ascii":return w(this,N,j);case"latin1":case"binary":return x(this,N,j);case"base64":return f(this,N,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s(this,N,j);default:if(z)throw new TypeError("Unknown encoding: "+D);D=(D+"").toLowerCase(),z=!0}}c.prototype._isBuffer=!0;function W(D,N,j){var z=D[N];D[N]=D[j],D[j]=z}c.prototype.swap16=function(){var N=this.length;if(N%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var j=0;j<N;j+=2)W(this,j,j+1);return this},c.prototype.swap32=function(){var N=this.length;if(N%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var j=0;j<N;j+=4)W(this,j,j+3),W(this,j+1,j+2);return this},c.prototype.swap64=function(){var N=this.length;if(N%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var j=0;j<N;j+=8)W(this,j,j+7),W(this,j+1,j+6),W(this,j+2,j+5),W(this,j+3,j+4);return this},c.prototype.toString=function(){var N=this.length;return N===0?"":arguments.length===0?l(this,0,N):F.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(N){if(!c.isBuffer(N))throw new TypeError("Argument must be a Buffer");return this===N?!0:c.compare(this,N)===0},c.prototype.inspect=function(){var N="",j=e.INSPECT_MAX_BYTES;return N=this.toString("hex",0,j).replace(/(.{2})/g,"$1 ").trim(),this.length>j&&(N+=" ... "),"<Buffer "+N+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(N,j,z,se,te){if(O(N,Uint8Array)&&(N=c.from(N,N.offset,N.byteLength)),!c.isBuffer(N))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof N);if(j===void 0&&(j=0),z===void 0&&(z=N?N.length:0),se===void 0&&(se=0),te===void 0&&(te=this.length),j<0||z>N.length||se<0||te>this.length)throw new RangeError("out of range index");if(se>=te&&j>=z)return 0;if(se>=te)return-1;if(j>=z)return 1;if(j>>>=0,z>>>=0,se>>>=0,te>>>=0,this===N)return 0;for(var ne=te-se,Ee=z-j,Q=Math.min(ne,Ee),ue=this.slice(se,te),le=N.slice(j,z),ce=0;ce<Q;++ce)if(ue[ce]!==le[ce]){ne=ue[ce],Ee=le[ce];break}return ne<Ee?-1:Ee<ne?1:0};function Y(D,N,j,z,se){if(D.length===0)return-1;if(typeof j=="string"?(z=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),j=+j,q(j)&&(j=se?0:D.length-1),j<0&&(j=D.length+j),j>=D.length){if(se)return-1;j=D.length-1}else if(j<0)if(se)j=0;else return-1;if(typeof N=="string"&&(N=c.from(N,z)),c.isBuffer(N))return N.length===0?-1:ie(D,N,j,z,se);if(typeof N=="number")return N=N&255,typeof Uint8Array.prototype.indexOf=="function"?se?Uint8Array.prototype.indexOf.call(D,N,j):Uint8Array.prototype.lastIndexOf.call(D,N,j):ie(D,[N],j,z,se);throw new TypeError("val must be string, number or Buffer")}function ie(D,N,j,z,se){var te=1,ne=D.length,Ee=N.length;if(z!==void 0&&(z=String(z).toLowerCase(),z==="ucs2"||z==="ucs-2"||z==="utf16le"||z==="utf-16le")){if(D.length<2||N.length<2)return-1;te=2,ne/=2,Ee/=2,j/=2}function Q(de,ae){return te===1?de[ae]:de.readUInt16BE(ae*te)}var ue;if(se){var le=-1;for(ue=j;ue<ne;ue++)if(Q(D,ue)===Q(N,le===-1?0:ue-le)){if(le===-1&&(le=ue),ue-le+1===Ee)return le*te}else le!==-1&&(ue-=ue-le),le=-1}else for(j+Ee>ne&&(j=ne-Ee),ue=j;ue>=0;ue--){for(var ce=!0,pe=0;pe<Ee;pe++)if(Q(D,ue+pe)!==Q(N,pe)){ce=!1;break}if(ce)return ue}return-1}c.prototype.includes=function(N,j,z){return this.indexOf(N,j,z)!==-1},c.prototype.indexOf=function(N,j,z){return Y(this,N,j,z,!0)},c.prototype.lastIndexOf=function(N,j,z){return Y(this,N,j,z,!1)};function J(D,N,j,z){j=Number(j)||0;var se=D.length-j;z?(z=Number(z),z>se&&(z=se)):z=se;var te=N.length;z>te/2&&(z=te/2);for(var ne=0;ne<z;++ne){var Ee=parseInt(N.substr(ne*2,2),16);if(q(Ee))return ne;D[j+ne]=Ee}return ne}function V(D,N,j,z){return y(U(N,D.length-j),D,j,z)}function oe(D,N,j,z){return y(K(N),D,j,z)}function _(D,N,j,z){return y(b(N),D,j,z)}function o(D,N,j,z){return y(Z(N,D.length-j),D,j,z)}c.prototype.write=function(N,j,z,se){if(j===void 0)se="utf8",z=this.length,j=0;else if(z===void 0&&typeof j=="string")se=j,z=this.length,j=0;else if(isFinite(j))j=j>>>0,isFinite(z)?(z=z>>>0,se===void 0&&(se="utf8")):(se=z,z=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var te=this.length-j;if((z===void 0||z>te)&&(z=te),N.length>0&&(z<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");se||(se="utf8");for(var ne=!1;;)switch(se){case"hex":return J(this,N,j,z);case"utf8":case"utf-8":return V(this,N,j,z);case"ascii":case"latin1":case"binary":return oe(this,N,j,z);case"base64":return _(this,N,j,z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o(this,N,j,z);default:if(ne)throw new TypeError("Unknown encoding: "+se);se=(""+se).toLowerCase(),ne=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function f(D,N,j){return N===0&&j===D.length?t.fromByteArray(D):t.fromByteArray(D.slice(N,j))}function l(D,N,j){j=Math.min(D.length,j);for(var z=[],se=N;se<j;){var te=D[se],ne=null,Ee=te>239?4:te>223?3:te>191?2:1;if(se+Ee<=j){var Q,ue,le,ce;switch(Ee){case 1:te<128&&(ne=te);break;case 2:Q=D[se+1],(Q&192)===128&&(ce=(te&31)<<6|Q&63,ce>127&&(ne=ce));break;case 3:Q=D[se+1],ue=D[se+2],(Q&192)===128&&(ue&192)===128&&(ce=(te&15)<<12|(Q&63)<<6|ue&63,ce>2047&&(ce<55296||ce>57343)&&(ne=ce));break;case 4:Q=D[se+1],ue=D[se+2],le=D[se+3],(Q&192)===128&&(ue&192)===128&&(le&192)===128&&(ce=(te&15)<<18|(Q&63)<<12|(ue&63)<<6|le&63,ce>65535&&ce<1114112&&(ne=ce))}}ne===null?(ne=65533,Ee=1):ne>65535&&(ne-=65536,z.push(ne>>>10&1023|55296),ne=56320|ne&1023),z.push(ne),se+=Ee}return p(z)}var h=4096;function p(D){var N=D.length;if(N<=h)return String.fromCharCode.apply(String,D);for(var j="",z=0;z<N;)j+=String.fromCharCode.apply(String,D.slice(z,z+=h));return j}function w(D,N,j){var z="";j=Math.min(D.length,j);for(var se=N;se<j;++se)z+=String.fromCharCode(D[se]&127);return z}function x(D,N,j){var z="";j=Math.min(D.length,j);for(var se=N;se<j;++se)z+=String.fromCharCode(D[se]);return z}function g(D,N,j){var z=D.length;(!N||N<0)&&(N=0),(!j||j<0||j>z)&&(j=z);for(var se="",te=N;te<j;++te)se+=X[D[te]];return se}function s(D,N,j){for(var z=D.slice(N,j),se="",te=0;te<z.length-1;te+=2)se+=String.fromCharCode(z[te]+z[te+1]*256);return se}c.prototype.slice=function(N,j){var z=this.length;N=~~N,j=j===void 0?z:~~j,N<0?(N+=z,N<0&&(N=0)):N>z&&(N=z),j<0?(j+=z,j<0&&(j=0)):j>z&&(j=z),j<N&&(j=N);var se=this.subarray(N,j);return Object.setPrototypeOf(se,c.prototype),se};function v(D,N,j){if(D%1!==0||D<0)throw new RangeError("offset is not uint");if(D+N>j)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(N,j,z){N=N>>>0,j=j>>>0,z||v(N,j,this.length);for(var se=this[N],te=1,ne=0;++ne<j&&(te*=256);)se+=this[N+ne]*te;return se},c.prototype.readUintBE=c.prototype.readUIntBE=function(N,j,z){N=N>>>0,j=j>>>0,z||v(N,j,this.length);for(var se=this[N+--j],te=1;j>0&&(te*=256);)se+=this[N+--j]*te;return se},c.prototype.readUint8=c.prototype.readUInt8=function(N,j){return N=N>>>0,j||v(N,1,this.length),this[N]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(N,j){return N=N>>>0,j||v(N,2,this.length),this[N]|this[N+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(N,j){return N=N>>>0,j||v(N,2,this.length),this[N]<<8|this[N+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(N,j){return N=N>>>0,j||v(N,4,this.length),(this[N]|this[N+1]<<8|this[N+2]<<16)+this[N+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(N,j){return N=N>>>0,j||v(N,4,this.length),this[N]*16777216+(this[N+1]<<16|this[N+2]<<8|this[N+3])},c.prototype.readIntLE=function(N,j,z){N=N>>>0,j=j>>>0,z||v(N,j,this.length);for(var se=this[N],te=1,ne=0;++ne<j&&(te*=256);)se+=this[N+ne]*te;return te*=128,se>=te&&(se-=Math.pow(2,8*j)),se},c.prototype.readIntBE=function(N,j,z){N=N>>>0,j=j>>>0,z||v(N,j,this.length);for(var se=j,te=1,ne=this[N+--se];se>0&&(te*=256);)ne+=this[N+--se]*te;return te*=128,ne>=te&&(ne-=Math.pow(2,8*j)),ne},c.prototype.readInt8=function(N,j){return N=N>>>0,j||v(N,1,this.length),this[N]&128?(255-this[N]+1)*-1:this[N]},c.prototype.readInt16LE=function(N,j){N=N>>>0,j||v(N,2,this.length);var z=this[N]|this[N+1]<<8;return z&32768?z|4294901760:z},c.prototype.readInt16BE=function(N,j){N=N>>>0,j||v(N,2,this.length);var z=this[N+1]|this[N]<<8;return z&32768?z|4294901760:z},c.prototype.readInt32LE=function(N,j){return N=N>>>0,j||v(N,4,this.length),this[N]|this[N+1]<<8|this[N+2]<<16|this[N+3]<<24},c.prototype.readInt32BE=function(N,j){return N=N>>>0,j||v(N,4,this.length),this[N]<<24|this[N+1]<<16|this[N+2]<<8|this[N+3]},c.prototype.readFloatLE=function(N,j){return N=N>>>0,j||v(N,4,this.length),r.read(this,N,!0,23,4)},c.prototype.readFloatBE=function(N,j){return N=N>>>0,j||v(N,4,this.length),r.read(this,N,!1,23,4)},c.prototype.readDoubleLE=function(N,j){return N=N>>>0,j||v(N,8,this.length),r.read(this,N,!0,52,8)},c.prototype.readDoubleBE=function(N,j){return N=N>>>0,j||v(N,8,this.length),r.read(this,N,!1,52,8)};function T(D,N,j,z,se,te){if(!c.isBuffer(D))throw new TypeError('"buffer" argument must be a Buffer instance');if(N>se||N<te)throw new RangeError('"value" argument is out of bounds');if(j+z>D.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(N,j,z,se){if(N=+N,j=j>>>0,z=z>>>0,!se){var te=Math.pow(2,8*z)-1;T(this,N,j,z,te,0)}var ne=1,Ee=0;for(this[j]=N&255;++Ee<z&&(ne*=256);)this[j+Ee]=N/ne&255;return j+z},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(N,j,z,se){if(N=+N,j=j>>>0,z=z>>>0,!se){var te=Math.pow(2,8*z)-1;T(this,N,j,z,te,0)}var ne=z-1,Ee=1;for(this[j+ne]=N&255;--ne>=0&&(Ee*=256);)this[j+ne]=N/Ee&255;return j+z},c.prototype.writeUint8=c.prototype.writeUInt8=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,1,255,0),this[j]=N&255,j+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,2,65535,0),this[j]=N&255,this[j+1]=N>>>8,j+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,2,65535,0),this[j]=N>>>8,this[j+1]=N&255,j+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,4,4294967295,0),this[j+3]=N>>>24,this[j+2]=N>>>16,this[j+1]=N>>>8,this[j]=N&255,j+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,4,4294967295,0),this[j]=N>>>24,this[j+1]=N>>>16,this[j+2]=N>>>8,this[j+3]=N&255,j+4},c.prototype.writeIntLE=function(N,j,z,se){if(N=+N,j=j>>>0,!se){var te=Math.pow(2,8*z-1);T(this,N,j,z,te-1,-te)}var ne=0,Ee=1,Q=0;for(this[j]=N&255;++ne<z&&(Ee*=256);)N<0&&Q===0&&this[j+ne-1]!==0&&(Q=1),this[j+ne]=(N/Ee>>0)-Q&255;return j+z},c.prototype.writeIntBE=function(N,j,z,se){if(N=+N,j=j>>>0,!se){var te=Math.pow(2,8*z-1);T(this,N,j,z,te-1,-te)}var ne=z-1,Ee=1,Q=0;for(this[j+ne]=N&255;--ne>=0&&(Ee*=256);)N<0&&Q===0&&this[j+ne+1]!==0&&(Q=1),this[j+ne]=(N/Ee>>0)-Q&255;return j+z},c.prototype.writeInt8=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,1,127,-128),N<0&&(N=255+N+1),this[j]=N&255,j+1},c.prototype.writeInt16LE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,2,32767,-32768),this[j]=N&255,this[j+1]=N>>>8,j+2},c.prototype.writeInt16BE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,2,32767,-32768),this[j]=N>>>8,this[j+1]=N&255,j+2},c.prototype.writeInt32LE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,4,2147483647,-2147483648),this[j]=N&255,this[j+1]=N>>>8,this[j+2]=N>>>16,this[j+3]=N>>>24,j+4},c.prototype.writeInt32BE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,4,2147483647,-2147483648),N<0&&(N=4294967295+N+1),this[j]=N>>>24,this[j+1]=N>>>16,this[j+2]=N>>>8,this[j+3]=N&255,j+4};function $(D,N,j,z,se,te){if(j+z>D.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function G(D,N,j,z,se){return N=+N,j=j>>>0,se||$(D,N,j,4),r.write(D,N,j,z,23,4),j+4}c.prototype.writeFloatLE=function(N,j,z){return G(this,N,j,!0,z)},c.prototype.writeFloatBE=function(N,j,z){return G(this,N,j,!1,z)};function ee(D,N,j,z,se){return N=+N,j=j>>>0,se||$(D,N,j,8),r.write(D,N,j,z,52,8),j+8}c.prototype.writeDoubleLE=function(N,j,z){return ee(this,N,j,!0,z)},c.prototype.writeDoubleBE=function(N,j,z){return ee(this,N,j,!1,z)},c.prototype.copy=function(N,j,z,se){if(!c.isBuffer(N))throw new TypeError("argument should be a Buffer");if(z||(z=0),!se&&se!==0&&(se=this.length),j>=N.length&&(j=N.length),j||(j=0),se>0&&se<z&&(se=z),se===z||N.length===0||this.length===0)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(z<0||z>=this.length)throw new RangeError("Index out of range");if(se<0)throw new RangeError("sourceEnd out of bounds");se>this.length&&(se=this.length),N.length-j<se-z&&(se=N.length-j+z);var te=se-z;return this===N&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(j,z,se):Uint8Array.prototype.set.call(N,this.subarray(z,se),j),te},c.prototype.fill=function(N,j,z,se){if(typeof N=="string"){if(typeof j=="string"?(se=j,j=0,z=this.length):typeof z=="string"&&(se=z,z=this.length),se!==void 0&&typeof se!="string")throw new TypeError("encoding must be a string");if(typeof se=="string"&&!c.isEncoding(se))throw new TypeError("Unknown encoding: "+se);if(N.length===1){var te=N.charCodeAt(0);(se==="utf8"&&te<128||se==="latin1")&&(N=te)}}else typeof N=="number"?N=N&255:typeof N=="boolean"&&(N=Number(N));if(j<0||this.length<j||this.length<z)throw new RangeError("Out of range index");if(z<=j)return this;j=j>>>0,z=z===void 0?this.length:z>>>0,N||(N=0);var ne;if(typeof N=="number")for(ne=j;ne<z;++ne)this[ne]=N;else{var Ee=c.isBuffer(N)?N:c.from(N,se),Q=Ee.length;if(Q===0)throw new TypeError('The value "'+N+'" is invalid for argument "value"');for(ne=0;ne<z-j;++ne)this[ne+j]=Ee[ne%Q]}return this};var A=/[^+/0-9A-Za-z-_]/g;function E(D){if(D=D.split("=")[0],D=D.trim().replace(A,""),D.length<2)return"";for(;D.length%4!==0;)D=D+"=";return D}function U(D,N){N=N||1/0;for(var j,z=D.length,se=null,te=[],ne=0;ne<z;++ne){if(j=D.charCodeAt(ne),j>55295&&j<57344){if(!se){if(j>56319){(N-=3)>-1&&te.push(239,191,189);continue}else if(ne+1===z){(N-=3)>-1&&te.push(239,191,189);continue}se=j;continue}if(j<56320){(N-=3)>-1&&te.push(239,191,189),se=j;continue}j=(se-55296<<10|j-56320)+65536}else se&&(N-=3)>-1&&te.push(239,191,189);if(se=null,j<128){if((N-=1)<0)break;te.push(j)}else if(j<2048){if((N-=2)<0)break;te.push(j>>6|192,j&63|128)}else if(j<65536){if((N-=3)<0)break;te.push(j>>12|224,j>>6&63|128,j&63|128)}else if(j<1114112){if((N-=4)<0)break;te.push(j>>18|240,j>>12&63|128,j>>6&63|128,j&63|128)}else throw new Error("Invalid code point")}return te}function K(D){for(var N=[],j=0;j<D.length;++j)N.push(D.charCodeAt(j)&255);return N}function Z(D,N){for(var j,z,se,te=[],ne=0;ne<D.length&&!((N-=2)<0);++ne)j=D.charCodeAt(ne),z=j>>8,se=j%256,te.push(se),te.push(z);return te}function b(D){return t.toByteArray(E(D))}function y(D,N,j,z){for(var se=0;se<z&&!(se+j>=N.length||se>=D.length);++se)N[se+j]=D[se];return se}function O(D,N){return D instanceof N||D!=null&&D.constructor!=null&&D.constructor.name!=null&&D.constructor.name===N.name}function q(D){return D!==D}var X=function(){for(var D="0123456789abcdef",N=new Array(256),j=0;j<16;++j)for(var z=j*16,se=0;se<16;++se)N[z+se]=D[j]+D[se];return N}()})(ke);var Dw={exports:{}},ir=Dw.exports={},Gi,Yi;function P0(){throw new Error("setTimeout has not been defined")}function C0(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Gi=setTimeout:Gi=P0}catch{Gi=P0}try{typeof clearTimeout=="function"?Yi=clearTimeout:Yi=C0}catch{Yi=C0}})();function Fw(e){if(Gi===setTimeout)return setTimeout(e,0);if((Gi===P0||!Gi)&&setTimeout)return Gi=setTimeout,setTimeout(e,0);try{return Gi(e,0)}catch{try{return Gi.call(null,e,0)}catch{return Gi.call(this,e,0)}}}function W4(e){if(Yi===clearTimeout)return clearTimeout(e);if((Yi===C0||!Yi)&&clearTimeout)return Yi=clearTimeout,clearTimeout(e);try{return Yi(e)}catch{try{return Yi.call(null,e)}catch{return Yi.call(this,e)}}}var In=[],za=!1,Go,rl=-1;function K4(){!za||!Go||(za=!1,Go.length?In=Go.concat(In):rl=-1,In.length&&jw())}function jw(){if(!za){var e=Fw(K4);za=!0;for(var t=In.length;t;){for(Go=In,In=[];++rl<t;)Go&&Go[rl].run();rl=-1,t=In.length}Go=null,za=!1,W4(e)}}ir.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];In.push(new Uw(e,t)),In.length===1&&!za&&Fw(jw)};function Uw(e,t){this.fun=e,this.array=t}Uw.prototype.run=function(){this.fun.apply(null,this.array)};ir.title="browser";ir.browser=!0;ir.env={};ir.argv=[];ir.version="";ir.versions={};function Wn(){}ir.on=Wn;ir.addListener=Wn;ir.once=Wn;ir.off=Wn;ir.removeListener=Wn;ir.removeAllListeners=Wn;ir.emit=Wn;ir.prependListener=Wn;ir.prependOnceListener=Wn;ir.listeners=function(e){return[]};ir.binding=function(e){throw new Error("process.binding is not supported")};ir.cwd=function(){return"/"};ir.chdir=function(e){throw new Error("process.chdir is not supported")};ir.umask=function(){return 0};var V4=Dw.exports;const we=Lo(V4);var z4=function(e){function t(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object),om=z4;const ho=typeof om<"u"?om:typeof self<"u"?self:typeof window<"u"?window:{};function Kn(e,t){const r=Object.create(null),i=e.split(",");for(let a=0;a<i.length;a++)r[i[a]]=!0;return t?a=>!!r[a.toLowerCase()]:a=>!!r[a]}const $t=Object.freeze({}),Ga=Object.freeze([]),qr=()=>{},Hw=()=>!1,G4=/^on[^a-z]/,Ps=e=>G4.test(e),Sl=e=>e.startsWith("onUpdate:"),Pt=Object.assign,iv=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Y4=Object.prototype.hasOwnProperty,wt=(e,t)=>Y4.call(e,t),ze=Array.isArray,Qo=e=>Cs(e)==="[object Map]",ga=e=>Cs(e)==="[object Set]",am=e=>Cs(e)==="[object Date]",Z4=e=>Cs(e)==="[object RegExp]",Qe=e=>typeof e=="function",Vt=e=>typeof e=="string",Uf=e=>typeof e=="symbol",Rt=e=>e!==null&&typeof e=="object",oh=e=>Rt(e)&&Qe(e.then)&&Qe(e.catch),qw=Object.prototype.toString,Cs=e=>qw.call(e),nv=e=>Cs(e).slice(8,-1),Ww=e=>Cs(e)==="[object Object]",ov=e=>Vt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Af=Kn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),X4=Kn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),ah=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},J4=/-(\w)/g,Kr=ah(e=>e.replace(J4,(t,r)=>r?r.toUpperCase():"")),Q4=/\B([A-Z])/g,Hr=ah(e=>e.replace(Q4,"-$1").toLowerCase()),_o=ah(e=>e.charAt(0).toUpperCase()+e.slice(1)),xn=ah(e=>e?`on${_o(e)}`:""),as=(e,t)=>!Object.is(e,t),so=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},xl=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},El=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Rl=e=>{const t=Vt(e)?Number(e):NaN;return isNaN(t)?e:t};let sm;const Al=()=>sm||(sm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof ho<"u"?ho:{}),eE="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",tE=Kn(eE);function Pn(e){if(ze(e)){const t={};for(let r=0;r<e.length;r++){const i=e[r],a=Vt(i)?oE(i):Pn(i);if(a)for(const n in a)t[n]=a[n]}return t}else{if(Vt(e))return e;if(Rt(e))return e}}const rE=/;(?![^(]*\))/g,iE=/:([^]+)/,nE=/\/\*[^]*?\*\//g;function oE(e){const t={};return e.replace(nE,"").split(rE).forEach(r=>{if(r){const i=r.split(iE);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function vr(e){let t="";if(Vt(e))t=e;else if(ze(e))for(let r=0;r<e.length;r++){const i=vr(e[r]);i&&(t+=i+" ")}else if(Rt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function aE(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Vt(t)&&(e.class=vr(t)),r&&(e.style=Pn(r)),e}const sE="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",fE="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",uE=Kn(sE),lE=Kn(fE),hE="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",cE=Kn(hE);function Kw(e){return!!e||e===""}function dE(e,t){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=Mo(e[i],t[i]);return r}function Mo(e,t){if(e===t)return!0;let r=am(e),i=am(t);if(r||i)return r&&i?e.getTime()===t.getTime():!1;if(r=Uf(e),i=Uf(t),r||i)return e===t;if(r=ze(e),i=ze(t),r||i)return r&&i?dE(e,t):!1;if(r=Rt(e),i=Rt(t),r||i){if(!r||!i)return!1;const a=Object.keys(e).length,n=Object.keys(t).length;if(a!==n)return!1;for(const u in e){const c=e.hasOwnProperty(u),d=t.hasOwnProperty(u);if(c&&!d||!c&&d||!Mo(e[u],t[u]))return!1}}return String(e)===String(t)}function sh(e,t){return e.findIndex(r=>Mo(r,t))}const si=e=>Vt(e)?e:e==null?"":ze(e)||Rt(e)&&(e.toString===qw||!Qe(e.toString))?JSON.stringify(e,Vw,2):String(e),Vw=(e,t)=>t&&t.__v_isRef?Vw(e,t.value):Qo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[i,a])=>(r[`${i} =>`]=a,r),{})}:ga(t)?{[`Set(${t.size})`]:[...t.values()]}:Rt(t)&&!ze(t)&&!Ww(t)?String(t):t;function Tl(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Yr;class av{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Yr,!t&&Yr&&(this.index=(Yr.scopes||(Yr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Yr;try{return Yr=this,t()}finally{Yr=r}}else Tl("cannot run an inactive effect scope.")}on(){Yr=this}off(){Yr=this.parent}stop(t){if(this._active){let r,i;for(r=0,i=this.effects.length;r<i;r++)this.effects[r].stop();for(r=0,i=this.cleanups.length;r<i;r++)this.cleanups[r]();if(this.scopes)for(r=0,i=this.scopes.length;r<i;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function zw(e){return new av(e)}function Gw(e,t=Yr){t&&t.active&&t.effects.push(e)}function Yw(){return Yr}function pE(e){Yr?Yr.cleanups.push(e):Tl("onScopeDispose() is called when there is no active effect scope to be associated with.")}const sv=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Zw=e=>(e.w&So)>0,Xw=e=>(e.n&So)>0,vE=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=So},gE=e=>{const{deps:t}=e;if(t.length){let r=0;for(let i=0;i<t.length;i++){const a=t[i];Zw(a)&&!Xw(a)?a.delete(e):t[r++]=a,a.w&=~So,a.n&=~So}t.length=r}},Ol=new WeakMap;let bf=0,So=1;const B0=30;let Br;const ea=Symbol("iterate"),L0=Symbol("Map key iterate");class uu{constructor(t,r=null,i){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,Gw(this,i)}run(){if(!this.active)return this.fn();let t=Br,r=co;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Br,Br=this,co=!0,So=1<<++bf,bf<=B0?vE(this):fm(this),this.fn()}finally{bf<=B0&&gE(this),So=1<<--bf,Br=this.parent,co=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Br===this?this.deferStop=!0:this.active&&(fm(this),this.onStop&&this.onStop(),this.active=!1)}}function fm(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}function mE(e,t){e.effect&&(e=e.effect.fn);const r=new uu(e);t&&(Pt(r,t),t.scope&&Gw(r,t.scope)),(!t||!t.lazy)&&r.run();const i=r.run.bind(r);return i.effect=r,i}function yE(e){e.effect.stop()}let co=!0;const Jw=[];function ma(){Jw.push(co),co=!1}function ya(){const e=Jw.pop();co=e===void 0?!0:e}function Tr(e,t,r){if(co&&Br){let i=Ol.get(e);i||Ol.set(e,i=new Map);let a=i.get(r);a||i.set(r,a=sv()),Qw(a,{effect:Br,target:e,type:t,key:r})}}function Qw(e,t){let r=!1;bf<=B0?Xw(e)||(e.n|=So,r=!Zw(e)):r=!e.has(Br),r&&(e.add(Br),Br.deps.push(e),Br.onTrack&&Br.onTrack(Pt({effect:Br},t)))}function an(e,t,r,i,a,n){const u=Ol.get(e);if(!u)return;let c=[];if(t==="clear")c=[...u.values()];else if(r==="length"&&ze(e)){const m=Number(i);u.forEach((M,S)=>{(S==="length"||S>=m)&&c.push(M)})}else switch(r!==void 0&&c.push(u.get(r)),t){case"add":ze(e)?ov(r)&&c.push(u.get("length")):(c.push(u.get(ea)),Qo(e)&&c.push(u.get(L0)));break;case"delete":ze(e)||(c.push(u.get(ea)),Qo(e)&&c.push(u.get(L0)));break;case"set":Qo(e)&&c.push(u.get(ea));break}const d={target:e,type:t,key:r,newValue:i,oldValue:a,oldTarget:n};if(c.length===1)c[0]&&N0(c[0],d);else{const m=[];for(const M of c)M&&m.push(...M);N0(sv(m),d)}}function N0(e,t){const r=ze(e)?e:[...e];for(const i of r)i.computed&&um(i,t);for(const i of r)i.computed||um(i,t)}function um(e,t){(e!==Br||e.allowRecurse)&&(e.onTrigger&&e.onTrigger(Pt({effect:e},t)),e.scheduler?e.scheduler():e.run())}function bE(e,t){var r;return(r=Ol.get(e))==null?void 0:r.get(t)}const wE=Kn("__proto__,__v_isRef,__isVue"),e2=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Uf)),_E=fh(),ME=fh(!1,!0),SE=fh(!0),xE=fh(!0,!0),lm=EE();function EE(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const i=lt(this);for(let n=0,u=this.length;n<u;n++)Tr(i,"get",n+"");const a=i[t](...r);return a===-1||a===!1?i[t](...r.map(lt)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){ma();const i=lt(this)[t].apply(this,r);return ya(),i}}),e}function RE(e){const t=lt(this);return Tr(t,"has",e),t.hasOwnProperty(e)}function fh(e=!1,t=!1){return function(i,a,n){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_isShallow")return t;if(a==="__v_raw"&&n===(e?t?f2:s2:t?a2:o2).get(i))return i;const u=ze(i);if(!e){if(u&&wt(lm,a))return Reflect.get(lm,a,n);if(a==="hasOwnProperty")return RE}const c=Reflect.get(i,a,n);return(Uf(a)?e2.has(a):wE(a))||(e||Tr(i,"get",a),t)?c:Xt(c)?u&&ov(a)?c:c.value:Rt(c)?e?uv(c):No(c):c}}const AE=t2(),TE=t2(!0);function t2(e=!1){return function(r,i,a,n){let u=r[i];if(Ln(u)&&Xt(u)&&!Xt(a))return!1;if(!e&&(!Hf(a)&&!Ln(a)&&(u=lt(u),a=lt(a)),!ze(r)&&Xt(u)&&!Xt(a)))return u.value=a,!0;const c=ze(r)&&ov(i)?Number(i)<r.length:wt(r,i),d=Reflect.set(r,i,a,n);return r===lt(n)&&(c?as(a,u)&&an(r,"set",i,a,u):an(r,"add",i,a)),d}}function OE(e,t){const r=wt(e,t),i=e[t],a=Reflect.deleteProperty(e,t);return a&&r&&an(e,"delete",t,void 0,i),a}function IE(e,t){const r=Reflect.has(e,t);return(!Uf(t)||!e2.has(t))&&Tr(e,"has",t),r}function PE(e){return Tr(e,"iterate",ze(e)?"length":ea),Reflect.ownKeys(e)}const r2={get:_E,set:AE,deleteProperty:OE,has:IE,ownKeys:PE},i2={get:SE,set(e,t){return Tl(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return Tl(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},CE=Pt({},r2,{get:ME,set:TE}),BE=Pt({},i2,{get:xE}),fv=e=>e,uh=e=>Reflect.getPrototypeOf(e);function Du(e,t,r=!1,i=!1){e=e.__v_raw;const a=lt(e),n=lt(t);r||(t!==n&&Tr(a,"get",t),Tr(a,"get",n));const{has:u}=uh(a),c=i?fv:r?hv:Wf;if(u.call(a,t))return c(e.get(t));if(u.call(a,n))return c(e.get(n));e!==a&&e.get(t)}function Fu(e,t=!1){const r=this.__v_raw,i=lt(r),a=lt(e);return t||(e!==a&&Tr(i,"has",e),Tr(i,"has",a)),e===a?r.has(e):r.has(e)||r.has(a)}function ju(e,t=!1){return e=e.__v_raw,!t&&Tr(lt(e),"iterate",ea),Reflect.get(e,"size",e)}function hm(e){e=lt(e);const t=lt(this);return uh(t).has.call(t,e)||(t.add(e),an(t,"add",e,e)),this}function cm(e,t){t=lt(t);const r=lt(this),{has:i,get:a}=uh(r);let n=i.call(r,e);n?n2(r,i,e):(e=lt(e),n=i.call(r,e));const u=a.call(r,e);return r.set(e,t),n?as(t,u)&&an(r,"set",e,t,u):an(r,"add",e,t),this}function dm(e){const t=lt(this),{has:r,get:i}=uh(t);let a=r.call(t,e);a?n2(t,r,e):(e=lt(e),a=r.call(t,e));const n=i?i.call(t,e):void 0,u=t.delete(e);return a&&an(t,"delete",e,void 0,n),u}function pm(){const e=lt(this),t=e.size!==0,r=Qo(e)?new Map(e):new Set(e),i=e.clear();return t&&an(e,"clear",void 0,void 0,r),i}function Uu(e,t){return function(i,a){const n=this,u=n.__v_raw,c=lt(u),d=t?fv:e?hv:Wf;return!e&&Tr(c,"iterate",ea),u.forEach((m,M)=>i.call(a,d(m),d(M),n))}}function Hu(e,t,r){return function(...i){const a=this.__v_raw,n=lt(a),u=Qo(n),c=e==="entries"||e===Symbol.iterator&&u,d=e==="keys"&&u,m=a[e](...i),M=r?fv:t?hv:Wf;return!t&&Tr(n,"iterate",d?L0:ea),{next(){const{value:S,done:R}=m.next();return R?{value:S,done:R}:{value:c?[M(S[0]),M(S[1])]:M(S),done:R}},[Symbol.iterator](){return this}}}}function Xn(e){return function(...t){{const r=t[0]?`on key "${t[0]}" `:"";console.warn(`${_o(e)} operation ${r}failed: target is readonly.`,lt(this))}return e==="delete"?!1:this}}function LE(){const e={get(n){return Du(this,n)},get size(){return ju(this)},has:Fu,add:hm,set:cm,delete:dm,clear:pm,forEach:Uu(!1,!1)},t={get(n){return Du(this,n,!1,!0)},get size(){return ju(this)},has:Fu,add:hm,set:cm,delete:dm,clear:pm,forEach:Uu(!1,!0)},r={get(n){return Du(this,n,!0)},get size(){return ju(this,!0)},has(n){return Fu.call(this,n,!0)},add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear"),forEach:Uu(!0,!1)},i={get(n){return Du(this,n,!0,!0)},get size(){return ju(this,!0)},has(n){return Fu.call(this,n,!0)},add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear"),forEach:Uu(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{e[n]=Hu(n,!1,!1),r[n]=Hu(n,!0,!1),t[n]=Hu(n,!1,!0),i[n]=Hu(n,!0,!0)}),[e,r,t,i]}const[NE,kE,$E,DE]=LE();function lh(e,t){const r=t?e?DE:$E:e?kE:NE;return(i,a,n)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?i:Reflect.get(wt(r,a)&&a in i?r:i,a,n)}const FE={get:lh(!1,!1)},jE={get:lh(!1,!0)},UE={get:lh(!0,!1)},HE={get:lh(!0,!0)};function n2(e,t,r){const i=lt(r);if(i!==r&&t.call(e,i)){const a=nv(e);console.warn(`Reactive ${a} contains both the raw and reactive versions of the same object${a==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const o2=new WeakMap,a2=new WeakMap,s2=new WeakMap,f2=new WeakMap;function qE(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function WE(e){return e.__v_skip||!Object.isExtensible(e)?0:qE(nv(e))}function No(e){return Ln(e)?e:hh(e,!1,r2,FE,o2)}function u2(e){return hh(e,!1,CE,jE,a2)}function uv(e){return hh(e,!0,i2,UE,s2)}function Wa(e){return hh(e,!0,BE,HE,f2)}function hh(e,t,r,i,a){if(!Rt(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const n=a.get(e);if(n)return n;const u=WE(e);if(u===0)return e;const c=new Proxy(e,u===2?i:r);return a.set(e,c),c}function po(e){return Ln(e)?po(e.__v_raw):!!(e&&e.__v_isReactive)}function Ln(e){return!!(e&&e.__v_isReadonly)}function Hf(e){return!!(e&&e.__v_isShallow)}function qf(e){return po(e)||Ln(e)}function lt(e){const t=e&&e.__v_raw;return t?lt(t):e}function lv(e){return xl(e,"__v_skip",!0),e}const Wf=e=>Rt(e)?No(e):e,hv=e=>Rt(e)?uv(e):e;function cv(e){co&&Br&&(e=lt(e),Qw(e.dep||(e.dep=sv()),{target:e,type:"get",key:"value"}))}function ch(e,t){e=lt(e);const r=e.dep;r&&N0(r,{target:e,type:"set",key:"value",newValue:t})}function Xt(e){return!!(e&&e.__v_isRef===!0)}function mr(e){return h2(e,!1)}function l2(e){return h2(e,!0)}function h2(e,t){return Xt(e)?e:new KE(e,t)}class KE{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:lt(t),this._value=r?t:Wf(t)}get value(){return cv(this),this._value}set value(t){const r=this.__v_isShallow||Hf(t)||Ln(t);t=r?t:lt(t),as(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Wf(t),ch(this,t))}}function VE(e){ch(e,e.value)}function vo(e){return Xt(e)?e.value:e}function zE(e){return Qe(e)?e():vo(e)}const GE={get:(e,t,r)=>vo(Reflect.get(e,t,r)),set:(e,t,r,i)=>{const a=e[t];return Xt(a)&&!Xt(r)?(a.value=r,!0):Reflect.set(e,t,r,i)}};function dv(e){return po(e)?e:new Proxy(e,GE)}class YE{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:i}=t(()=>cv(this),()=>ch(this));this._get=r,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function ZE(e){return new YE(e)}function XE(e){qf(e)||console.warn("toRefs() expects a reactive object but received a plain one.");const t=ze(e)?new Array(e.length):{};for(const r in e)t[r]=c2(e,r);return t}class JE{constructor(t,r,i){this._object=t,this._key=r,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return bE(lt(this._object),this._key)}}class QE{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function e8(e,t,r){return Xt(e)?e:Qe(e)?new QE(e):Rt(e)&&arguments.length>1?c2(e,t,r):mr(e)}function c2(e,t,r){const i=e[t];return Xt(i)?i:new JE(e,t,r)}class t8{constructor(t,r,i,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new uu(t,()=>{this._dirty||(this._dirty=!0,ch(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=i}get value(){const t=lt(this);return cv(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function r8(e,t,r=!1){let i,a;const n=Qe(e);n?(i=e,a=()=>{console.warn("Write operation failed: computed value is readonly")}):(i=e.get,a=e.set);const u=new t8(i,a,n||!a,r);return t&&!r&&(u.effect.onTrack=t.onTrack,u.effect.onTrigger=t.onTrigger),u}const ta=[];function Tf(e){ta.push(e)}function Of(){ta.pop()}function Ue(e,...t){ma();const r=ta.length?ta[ta.length-1].component:null,i=r&&r.appContext.config.warnHandler,a=i8();if(i)en(i,r,11,[e+t.join(""),r&&r.proxy,a.map(({vnode:n})=>`at <${Sh(r,n.type)}>`).join(`
+`),a]);else{const n=[`[Vue warn]: ${e}`,...t];a.length&&n.push(`
+`,...n8(a)),console.warn(...n)}ya()}function i8(){let e=ta[ta.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const i=e.component&&e.component.parent;e=i&&i.vnode}return t}function n8(e){const t=[];return e.forEach((r,i)=>{t.push(...i===0?[]:[`
+`],...o8(r))}),t}function o8({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",i=e.component?e.component.parent==null:!1,a=` at <${Sh(e.component,e.type,i)}`,n=">"+r;return e.props?[a,...a8(e.props),n]:[a+n]}function a8(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(i=>{t.push(...d2(i,e[i]))}),r.length>3&&t.push(" ..."),t}function d2(e,t,r){return Vt(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:Xt(t)?(t=d2(e,lt(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):Qe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=lt(t),r?t:[`${e}=`,t])}function pv(e,t){e!==void 0&&(typeof e!="number"?Ue(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&Ue(`${t} is NaN - the duration expression might be incorrect.`))}const vv={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function en(e,t,r,i){let a;try{a=i?e(...i):e()}catch(n){ba(n,t,r)}return a}function Zr(e,t,r,i){if(Qe(e)){const n=en(e,t,r,i);return n&&oh(n)&&n.catch(u=>{ba(u,t,r)}),n}const a=[];for(let n=0;n<e.length;n++)a.push(Zr(e[n],t,r,i));return a}function ba(e,t,r,i=!0){const a=t?t.vnode:null;if(t){let n=t.parent;const u=t.proxy,c=vv[r];for(;n;){const m=n.ec;if(m){for(let M=0;M<m.length;M++)if(m[M](e,u,c)===!1)return}n=n.parent}const d=t.appContext.config.errorHandler;if(d){en(d,null,10,[e,u,c]);return}}s8(e,r,a,i)}function s8(e,t,r,i=!0){{const a=vv[t];if(r&&Tf(r),Ue(`Unhandled error${a?` during execution of ${a}`:""}`),r&&Of(),i)throw e;console.error(e)}}let Kf=!1,k0=!1;const Er=[];let Ji=0;const Ya=[];let zi=null,io=0;const p2=Promise.resolve();let gv=null;const f8=100;function uo(e){const t=gv||p2;return e?t.then(this?e.bind(this):e):t}function u8(e){let t=Ji+1,r=Er.length;for(;t<r;){const i=t+r>>>1;Vf(Er[i])<e?t=i+1:r=i}return t}function lu(e){(!Er.length||!Er.includes(e,Kf&&e.allowRecurse?Ji+1:Ji))&&(e.id==null?Er.push(e):Er.splice(u8(e.id),0,e),v2())}function v2(){!Kf&&!k0&&(k0=!0,gv=p2.then(g2))}function l8(e){const t=Er.indexOf(e);t>Ji&&Er.splice(t,1)}function dh(e){ze(e)?Ya.push(...e):(!zi||!zi.includes(e,e.allowRecurse?io+1:io))&&Ya.push(e),v2()}function vm(e,t=Kf?Ji+1:0){for(e=e||new Map;t<Er.length;t++){const r=Er[t];if(r&&r.pre){if(mv(e,r))continue;Er.splice(t,1),t--,r()}}}function Il(e){if(Ya.length){const t=[...new Set(Ya)];if(Ya.length=0,zi){zi.push(...t);return}for(zi=t,e=e||new Map,zi.sort((r,i)=>Vf(r)-Vf(i)),io=0;io<zi.length;io++)mv(e,zi[io])||zi[io]();zi=null,io=0}}const Vf=e=>e.id==null?1/0:e.id,h8=(e,t)=>{const r=Vf(e)-Vf(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function g2(e){k0=!1,Kf=!0,e=e||new Map,Er.sort(h8);const t=r=>mv(e,r);try{for(Ji=0;Ji<Er.length;Ji++){const r=Er[Ji];if(r&&r.active!==!1){if(t(r))continue;en(r,null,14)}}}finally{Ji=0,Er.length=0,Il(e),Kf=!1,gv=null,(Er.length||Ya.length)&&g2(e)}}function mv(e,t){if(!e.has(t))e.set(t,1);else{const r=e.get(t);if(r>f8){const i=t.ownerInstance,a=i&&Xf(i.type);return Ue(`Maximum recursive updates exceeded${a?` in component <${a}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,r+1)}}let go=!1;const ja=new Set;Al().__VUE_HMR_RUNTIME__={createRecord:Oc(m2),rerender:Oc(p8),reload:Oc(v8)};const sa=new Map;function c8(e){const t=e.type.__hmrId;let r=sa.get(t);r||(m2(t,e.type),r=sa.get(t)),r.instances.add(e)}function d8(e){sa.get(e.type.__hmrId).instances.delete(e)}function m2(e,t){return sa.has(e)?!1:(sa.set(e,{initialDef:If(t),instances:new Set}),!0)}function If(e){return h_(e)?e.__vccOpts:e}function p8(e,t){const r=sa.get(e);r&&(r.initialDef.render=t,[...r.instances].forEach(i=>{t&&(i.render=t,If(i.type).render=t),i.renderCache=[],go=!0,i.update(),go=!1}))}function v8(e,t){const r=sa.get(e);if(!r)return;t=If(t),gm(r.initialDef,t);const i=[...r.instances];for(const a of i){const n=If(a.type);ja.has(n)||(n!==r.initialDef&&gm(n,t),ja.add(n)),a.appContext.propsCache.delete(a.type),a.appContext.emitsCache.delete(a.type),a.appContext.optionsCache.delete(a.type),a.ceReload?(ja.add(n),a.ceReload(t.styles),ja.delete(n)):a.parent?lu(a.parent.update):a.appContext.reload?a.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}dh(()=>{for(const a of i)ja.delete(If(a.type))})}function gm(e,t){Pt(e,t);for(const r in e)r!=="__file"&&!(r in t)&&delete e[r]}function Oc(e){return(t,r)=>{try{return e(t,r)}catch(i){console.error(i),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Bi,wf=[],$0=!1;function hu(e,...t){Bi?Bi.emit(e,...t):$0||wf.push({event:e,args:t})}function yv(e,t){var r,i;Bi=e,Bi?(Bi.enabled=!0,wf.forEach(({event:a,args:n})=>Bi.emit(a,...n)),wf=[]):typeof window<"u"&&window.HTMLElement&&!((i=(r=window.navigator)==null?void 0:r.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(n=>{yv(n,t)}),setTimeout(()=>{Bi||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,$0=!0,wf=[])},3e3)):($0=!0,wf=[])}function g8(e,t){hu("app:init",e,t,{Fragment:Lt,Text:xo,Comment:rr,Static:mo})}function m8(e){hu("app:unmount",e)}const D0=bv("component:added"),y2=bv("component:updated"),y8=bv("component:removed"),b8=e=>{Bi&&typeof Bi.cleanupBuffer=="function"&&!Bi.cleanupBuffer(e)&&y8(e)};function bv(e){return t=>{hu(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const w8=b2("perf:start"),_8=b2("perf:end");function b2(e){return(t,r,i)=>{hu(e,t.appContext.app,t.uid,t,r,i)}}function M8(e,t,r){hu("component:emit",e.appContext.app,e,t,r)}function S8(e,t,...r){if(e.isUnmounted)return;const i=e.vnode.props||$t;{const{emitsOptions:M,propsOptions:[S]}=e;if(M)if(!(t in M))(!S||!(xn(t)in S))&&Ue(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${xn(t)}" prop.`);else{const R=M[t];Qe(R)&&(R(...r)||Ue(`Invalid event arguments: event validation failed for event "${t}".`))}}let a=r;const n=t.startsWith("update:"),u=n&&t.slice(7);if(u&&u in i){const M=`${u==="modelValue"?"model":u}Modifiers`,{number:S,trim:R}=i[M]||$t;R&&(a=r.map(C=>Vt(C)?C.trim():C)),S&&(a=r.map(El))}M8(e,t,a);{const M=t.toLowerCase();M!==t&&i[xn(M)]&&Ue(`Event "${M}" is emitted in component ${Sh(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Hr(t)}" instead of "${t}".`)}let c,d=i[c=xn(t)]||i[c=xn(Kr(t))];!d&&n&&(d=i[c=xn(Hr(t))]),d&&Zr(d,e,6,a);const m=i[c+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Zr(m,e,6,a)}}function w2(e,t,r=!1){const i=t.emitsCache,a=i.get(e);if(a!==void 0)return a;const n=e.emits;let u={},c=!1;if(!Qe(e)){const d=m=>{const M=w2(m,t,!0);M&&(c=!0,Pt(u,M))};!r&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!n&&!c?(Rt(e)&&i.set(e,null),null):(ze(n)?n.forEach(d=>u[d]=null):Pt(u,n),Rt(e)&&i.set(e,u),u)}function ph(e,t){return!e||!Ps(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,Hr(t))||wt(e,t))}let tr=null,vh=null;function zf(e){const t=tr;return tr=e,vh=e&&e.type.__scopeId||null,t}function _2(e){vh=e}function M2(){vh=null}const x8=e=>wv;function wv(e,t=tr,r){if(!t||e._n)return e;const i=(...a)=>{i._d&&z0(-1);const n=zf(t);let u;try{u=e(...a)}finally{zf(n),i._d&&z0(1)}return y2(t),u};return i._n=!0,i._c=!0,i._d=!0,i}let F0=!1;function Pl(){F0=!0}function il(e){const{type:t,vnode:r,proxy:i,withProxy:a,props:n,propsOptions:[u],slots:c,attrs:d,emit:m,render:M,renderCache:S,data:R,setupState:C,ctx:P,inheritAttrs:k}=e;let L,I;const B=zf(e);F0=!1;try{if(r.shapeFlag&4){const W=a||i;L=Ur(M.call(W,W,S,n,C,R,P)),I=d}else{const W=t;d===n&&Pl(),L=Ur(W.length>1?W(n,{get attrs(){return Pl(),d},slots:c,emit:m}):W(n,null)),I=t.props?d:R8(d)}}catch(W){Bf.length=0,ba(W,e,1),L=Zt(rr)}let H=L,F;if(L.patchFlag>0&&L.patchFlag&2048&&([H,F]=E8(L)),I&&k!==!1){const W=Object.keys(I),{shapeFlag:Y}=H;if(W.length){if(Y&7)u&&W.some(Sl)&&(I=A8(I,u)),H=di(H,I);else if(!F0&&H.type!==rr){const ie=Object.keys(d),J=[],V=[];for(let oe=0,_=ie.length;oe<_;oe++){const o=ie[oe];Ps(o)?Sl(o)||J.push(o[2].toLowerCase()+o.slice(3)):V.push(o)}V.length&&Ue(`Extraneous non-props attributes (${V.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),J.length&&Ue(`Extraneous non-emits event listeners (${J.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return r.dirs&&(mm(H)||Ue("Runtime directive used on component with non-element root node. The directives will not function as intended."),H=di(H),H.dirs=H.dirs?H.dirs.concat(r.dirs):r.dirs),r.transition&&(mm(H)||Ue("Component inside <Transition> renders non-element root node that cannot be animated."),H.transition=r.transition),F?F(H):L=H,zf(B),L}const E8=e=>{const t=e.children,r=e.dynamicChildren,i=_v(t);if(!i)return[e,void 0];const a=t.indexOf(i),n=r?r.indexOf(i):-1,u=c=>{t[a]=c,r&&(n>-1?r[n]=c:c.patchFlag>0&&(e.dynamicChildren=[...r,c]))};return[Ur(i),u]};function _v(e){let t;for(let r=0;r<e.length;r++){const i=e[r];if(Nn(i)){if(i.type!==rr||i.children==="v-if"){if(t)return;t=i}}else return}return t}const R8=e=>{let t;for(const r in e)(r==="class"||r==="style"||Ps(r))&&((t||(t={}))[r]=e[r]);return t},A8=(e,t)=>{const r={};for(const i in e)(!Sl(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r},mm=e=>e.shapeFlag&7||e.type===rr;function T8(e,t,r){const{props:i,children:a,component:n}=e,{props:u,children:c,patchFlag:d}=t,m=n.emitsOptions;if((a||c)&&go||t.dirs||t.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return i?ym(i,u,m):!!u;if(d&8){const M=t.dynamicProps;for(let S=0;S<M.length;S++){const R=M[S];if(u[R]!==i[R]&&!ph(m,R))return!0}}}else return(a||c)&&(!c||!c.$stable)?!0:i===u?!1:i?u?ym(i,u,m):!0:!!u;return!1}function ym(e,t,r){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let a=0;a<i.length;a++){const n=i[a];if(t[n]!==e[n]&&!ph(r,n))return!0}return!1}function Mv({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const S2=e=>e.__isSuspense,O8={name:"Suspense",__isSuspense:!0,process(e,t,r,i,a,n,u,c,d,m){e==null?P8(t,r,i,a,n,u,c,d,m):C8(e,t,r,i,a,u,c,d,m)},hydrate:B8,create:Sv,normalize:L8},I8=O8;function Gf(e,t){const r=e.props&&e.props[t];Qe(r)&&r()}function P8(e,t,r,i,a,n,u,c,d){const{p:m,o:{createElement:M}}=d,S=M("div"),R=e.suspense=Sv(e,a,i,t,S,r,n,u,c,d);m(null,R.pendingBranch=e.ssContent,S,null,i,R,n,u),R.deps>0?(Gf(e,"onPending"),Gf(e,"onFallback"),m(null,e.ssFallback,t,r,i,null,n,u),Za(R,e.ssFallback)):R.resolve(!1,!0)}function C8(e,t,r,i,a,n,u,c,{p:d,um:m,o:{createElement:M}}){const S=t.suspense=e.suspense;S.vnode=t,t.el=e.el;const R=t.ssContent,C=t.ssFallback,{activeBranch:P,pendingBranch:k,isInFallback:L,isHydrating:I}=S;if(k)S.pendingBranch=R,Li(R,k)?(d(k,R,S.hiddenContainer,null,a,S,n,u,c),S.deps<=0?S.resolve():L&&(d(P,C,r,i,a,null,n,u,c),Za(S,C))):(S.pendingId++,I?(S.isHydrating=!1,S.activeBranch=k):m(k,a,S),S.deps=0,S.effects.length=0,S.hiddenContainer=M("div"),L?(d(null,R,S.hiddenContainer,null,a,S,n,u,c),S.deps<=0?S.resolve():(d(P,C,r,i,a,null,n,u,c),Za(S,C))):P&&Li(R,P)?(d(P,R,r,i,a,S,n,u,c),S.resolve(!0)):(d(null,R,S.hiddenContainer,null,a,S,n,u,c),S.deps<=0&&S.resolve()));else if(P&&Li(R,P))d(P,R,r,i,a,S,n,u,c),Za(S,R);else if(Gf(t,"onPending"),S.pendingBranch=R,S.pendingId++,d(null,R,S.hiddenContainer,null,a,S,n,u,c),S.deps<=0)S.resolve();else{const{timeout:B,pendingId:H}=S;B>0?setTimeout(()=>{S.pendingId===H&&S.fallback(C)},B):B===0&&S.fallback(C)}}let bm=!1;function Sv(e,t,r,i,a,n,u,c,d,m,M=!1){bm||(bm=!0,console[console.info?"info":"log"]("<Suspense> is an experimental feature and its API will likely change."));const{p:S,m:R,um:C,n:P,o:{parentNode:k,remove:L}}=m;let I;const B=N8(e);B&&t!=null&&t.pendingBranch&&(I=t.pendingId,t.deps++);const H=e.props?Rl(e.props.timeout):void 0;pv(H,"Suspense timeout");const F={vnode:e,parent:t,parentComponent:r,isSVG:u,container:i,hiddenContainer:a,anchor:n,deps:0,pendingId:0,timeout:typeof H=="number"?H:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:M,isUnmounted:!1,effects:[],resolve(W=!1,Y=!1){{if(!W&&!F.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(F.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:ie,activeBranch:J,pendingBranch:V,pendingId:oe,effects:_,parentComponent:o,container:f}=F;if(F.isHydrating)F.isHydrating=!1;else if(!W){const p=J&&V.transition&&V.transition.mode==="out-in";p&&(J.transition.afterLeave=()=>{oe===F.pendingId&&R(V,f,w,0)});let{anchor:w}=F;J&&(w=P(J),C(J,o,F,!0)),p||R(V,f,w,0)}Za(F,V),F.pendingBranch=null,F.isInFallback=!1;let l=F.parent,h=!1;for(;l;){if(l.pendingBranch){l.effects.push(..._),h=!0;break}l=l.parent}h||dh(_),F.effects=[],B&&t&&t.pendingBranch&&I===t.pendingId&&(t.deps--,t.deps===0&&!Y&&t.resolve()),Gf(ie,"onResolve")},fallback(W){if(!F.pendingBranch)return;const{vnode:Y,activeBranch:ie,parentComponent:J,container:V,isSVG:oe}=F;Gf(Y,"onFallback");const _=P(ie),o=()=>{F.isInFallback&&(S(null,W,V,_,J,null,oe,c,d),Za(F,W))},f=W.transition&&W.transition.mode==="out-in";f&&(ie.transition.afterLeave=o),F.isInFallback=!0,C(ie,J,null,!0),f||o()},move(W,Y,ie){F.activeBranch&&R(F.activeBranch,W,Y,ie),F.container=W},next(){return F.activeBranch&&P(F.activeBranch)},registerDep(W,Y){const ie=!!F.pendingBranch;ie&&F.deps++;const J=W.vnode.el;W.asyncDep.catch(V=>{ba(V,W,0)}).then(V=>{if(W.isUnmounted||F.isUnmounted||F.pendingId!==W.suspenseId)return;W.asyncResolved=!0;const{vnode:oe}=W;Tf(oe),Z0(W,V,!1),J&&(oe.el=J);const _=!J&&W.subTree.el;Y(W,oe,k(J||W.subTree.el),J?null:P(W.subTree),F,u,d),_&&L(_),Mv(W,oe.el),Of(),ie&&--F.deps===0&&F.resolve()})},unmount(W,Y){F.isUnmounted=!0,F.activeBranch&&C(F.activeBranch,r,W,Y),F.pendingBranch&&C(F.pendingBranch,r,W,Y)}};return F}function B8(e,t,r,i,a,n,u,c,d){const m=t.suspense=Sv(t,i,r,e.parentNode,document.createElement("div"),null,a,n,u,c,!0),M=d(e,m.pendingBranch=t.ssContent,r,m,n,u);return m.deps===0&&m.resolve(!1,!0),M}function L8(e){const{shapeFlag:t,children:r}=e,i=t&32;e.ssContent=wm(i?r.default:r),e.ssFallback=i?wm(r.fallback):Zt(rr)}function wm(e){let t;if(Qe(e)){const r=ua&&e._c;r&&(e._d=!1,tt()),e=e(),r&&(e._d=!0,t=Wr,e_())}if(ze(e)){const r=_v(e);r||Ue("<Suspense> slots expect a single root node."),e=r}return e=Ur(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function x2(e,t){t&&t.pendingBranch?ze(e)?t.effects.push(...e):t.effects.push(e):dh(e)}function Za(e,t){e.activeBranch=t;const{vnode:r,parentComponent:i}=e,a=r.el=t.el;i&&i.subTree===r&&(i.vnode.el=a,Mv(i,a))}function N8(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function E2(e,t){return cu(e,null,t)}function R2(e,t){return cu(e,null,Pt({},t,{flush:"post"}))}function k8(e,t){return cu(e,null,Pt({},t,{flush:"sync"}))}const qu={};function lr(e,t,r){return Qe(t)||Ue("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),cu(e,t,r)}function cu(e,t,{immediate:r,deep:i,flush:a,onTrack:n,onTrigger:u}=$t){var c;t||(r!==void 0&&Ue('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&Ue('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const d=W=>{Ue("Invalid watch source: ",W,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},m=Yw()===((c=er)==null?void 0:c.scope)?er:null;let M,S=!1,R=!1;if(Xt(e)?(M=()=>e.value,S=Hf(e)):po(e)?(M=()=>e,i=!0):ze(e)?(R=!0,S=e.some(W=>po(W)||Hf(W)),M=()=>e.map(W=>{if(Xt(W))return W.value;if(po(W))return Yo(W);if(Qe(W))return en(W,m,2);d(W)})):Qe(e)?t?M=()=>en(e,m,2):M=()=>{if(!(m&&m.isUnmounted))return C&&C(),Zr(e,m,3,[P])}:(M=qr,d(e)),t&&i){const W=M;M=()=>Yo(W())}let C,P=W=>{C=H.onStop=()=>{en(W,m,4)}},k;if(fs)if(P=qr,t?r&&Zr(t,m,3,[M(),R?[]:void 0,P]):M(),a==="sync"){const W=d_();k=W.__watcherHandles||(W.__watcherHandles=[])}else return qr;let L=R?new Array(e.length).fill(qu):qu;const I=()=>{if(H.active)if(t){const W=H.run();(i||S||(R?W.some((Y,ie)=>as(Y,L[ie])):as(W,L)))&&(C&&C(),Zr(t,m,3,[W,L===qu?void 0:R&&L[0]===qu?[]:L,P]),L=W)}else H.run()};I.allowRecurse=!!t;let B;a==="sync"?B=I:a==="post"?B=()=>gr(I,m&&m.suspense):(I.pre=!0,m&&(I.id=m.uid),B=()=>lu(I));const H=new uu(M,B);H.onTrack=n,H.onTrigger=u,t?r?I():L=H.run():a==="post"?gr(H.run.bind(H),m&&m.suspense):H.run();const F=()=>{H.stop(),m&&m.scope&&iv(m.scope.effects,H)};return k&&k.push(F),F}function $8(e,t,r){const i=this.proxy,a=Vt(e)?e.includes(".")?A2(i,e):()=>i[e]:e.bind(i,i);let n;Qe(t)?n=t:(n=t.handler,r=t);const u=er;Eo(this);const c=cu(a,n.bind(i),r);return u?Eo(u):yo(),c}function A2(e,t){const r=t.split(".");return()=>{let i=e;for(let a=0;a<r.length&&i;a++)i=i[r[a]];return i}}function Yo(e,t){if(!Rt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Xt(e))Yo(e.value,t);else if(ze(e))for(let r=0;r<e.length;r++)Yo(e[r],t);else if(ga(e)||Qo(e))e.forEach(r=>{Yo(r,t)});else if(Ww(e))for(const r in e)Yo(e[r],t);return e}function T2(e){X4(e)&&Ue("Do not use built-in directive ids as custom directive id: "+e)}function nl(e,t){const r=tr;if(r===null)return Ue("withDirectives can only be used inside render functions."),e;const i=Mh(r)||r.proxy,a=e.dirs||(e.dirs=[]);for(let n=0;n<t.length;n++){let[u,c,d,m=$t]=t[n];u&&(Qe(u)&&(u={mounted:u,updated:u}),u.deep&&Yo(c),a.push({dir:u,instance:i,value:c,oldValue:void 0,arg:d,modifiers:m}))}return e}function Zi(e,t,r,i){const a=e.dirs,n=t&&t.dirs;for(let u=0;u<a.length;u++){const c=a[u];n&&(c.oldValue=n[u].value);let d=c.dir[i];d&&(ma(),Zr(d,r,8,[e.el,c,e,t]),ya())}}function xv(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ns(()=>{e.isMounted=!0}),bh(()=>{e.isUnmounting=!0}),e}const ni=[Function,Array],Ev={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ni,onEnter:ni,onAfterEnter:ni,onEnterCancelled:ni,onBeforeLeave:ni,onLeave:ni,onAfterLeave:ni,onLeaveCancelled:ni,onBeforeAppear:ni,onAppear:ni,onAfterAppear:ni,onAppearCancelled:ni},D8={name:"BaseTransition",props:Ev,setup(e,{slots:t}){const r=Fi(),i=xv();let a;return()=>{const n=t.default&&gh(t.default(),!0);if(!n||!n.length)return;let u=n[0];if(n.length>1){let k=!1;for(const L of n)if(L.type!==rr){if(k){Ue("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}u=L,k=!0}}const c=lt(e),{mode:d}=c;if(d&&d!=="in-out"&&d!=="out-in"&&d!=="default"&&Ue(`invalid <transition> mode: ${d}`),i.isLeaving)return Ic(u);const m=_m(u);if(!m)return Ic(u);const M=ss(m,c,i,r);fa(m,M);const S=r.subTree,R=S&&_m(S);let C=!1;const{getTransitionKey:P}=m.type;if(P){const k=P();a===void 0?a=k:k!==a&&(a=k,C=!0)}if(R&&R.type!==rr&&(!Li(m,R)||C)){const k=ss(R,c,i,r);if(fa(R,k),d==="out-in")return i.isLeaving=!0,k.afterLeave=()=>{i.isLeaving=!1,r.update.active!==!1&&r.update()},Ic(u);d==="in-out"&&m.type!==rr&&(k.delayLeave=(L,I,B)=>{const H=I2(i,R);H[String(R.key)]=R,L._leaveCb=()=>{I(),L._leaveCb=void 0,delete M.delayedLeave},M.delayedLeave=B})}return u}}},O2=D8;function I2(e,t){const{leavingVNodes:r}=e;let i=r.get(t.type);return i||(i=Object.create(null),r.set(t.type,i)),i}function ss(e,t,r,i){const{appear:a,mode:n,persisted:u=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:m,onEnterCancelled:M,onBeforeLeave:S,onLeave:R,onAfterLeave:C,onLeaveCancelled:P,onBeforeAppear:k,onAppear:L,onAfterAppear:I,onAppearCancelled:B}=t,H=String(e.key),F=I2(r,e),W=(J,V)=>{J&&Zr(J,i,9,V)},Y=(J,V)=>{const oe=V[1];W(J,V),ze(J)?J.every(_=>_.length<=1)&&oe():J.length<=1&&oe()},ie={mode:n,persisted:u,beforeEnter(J){let V=c;if(!r.isMounted)if(a)V=k||c;else return;J._leaveCb&&J._leaveCb(!0);const oe=F[H];oe&&Li(e,oe)&&oe.el._leaveCb&&oe.el._leaveCb(),W(V,[J])},enter(J){let V=d,oe=m,_=M;if(!r.isMounted)if(a)V=L||d,oe=I||m,_=B||M;else return;let o=!1;const f=J._enterCb=l=>{o||(o=!0,l?W(_,[J]):W(oe,[J]),ie.delayedLeave&&ie.delayedLeave(),J._enterCb=void 0)};V?Y(V,[J,f]):f()},leave(J,V){const oe=String(e.key);if(J._enterCb&&J._enterCb(!0),r.isUnmounting)return V();W(S,[J]);let _=!1;const o=J._leaveCb=f=>{_||(_=!0,V(),f?W(P,[J]):W(C,[J]),J._leaveCb=void 0,F[oe]===e&&delete F[oe])};F[oe]=e,R?Y(R,[J,o]):o()},clone(J){return ss(J,t,r,i)}};return ie}function Ic(e){if(Ls(e))return e=di(e),e.children=null,e}function _m(e){return Ls(e)?e.children?e.children[0]:void 0:e}function fa(e,t){e.shapeFlag&6&&e.component?fa(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gh(e,t=!1,r){let i=[],a=0;for(let n=0;n<e.length;n++){let u=e[n];const c=r==null?u.key:String(r)+String(u.key!=null?u.key:n);u.type===Lt?(u.patchFlag&128&&a++,i=i.concat(gh(u.children,t,c))):(t||u.type!==rr)&&i.push(c!=null?di(u,{key:c}):u)}if(a>1)for(let n=0;n<i.length;n++)i[n].patchFlag=-2;return i}function Bs(e,t){return Qe(e)?(()=>Pt({name:e.name},t,{setup:e}))():e}const ra=e=>!!e.type.__asyncLoader;function F8(e){Qe(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:i,delay:a=200,timeout:n,suspensible:u=!0,onError:c}=e;let d=null,m,M=0;const S=()=>(M++,d=null,R()),R=()=>{let C;return d||(C=d=t().catch(P=>{if(P=P instanceof Error?P:new Error(String(P)),c)return new Promise((k,L)=>{c(P,()=>k(S()),()=>L(P),M+1)});throw P}).then(P=>{if(C!==d&&d)return d;if(P||Ue("Async component loader resolved to undefined. If you are using retry(), make sure to return its return value."),P&&(P.__esModule||P[Symbol.toStringTag]==="Module")&&(P=P.default),P&&!Rt(P)&&!Qe(P))throw new Error(`Invalid async component load result: ${P}`);return m=P,P}))};return Bs({name:"AsyncComponentWrapper",__asyncLoader:R,get __asyncResolved(){return m},setup(){const C=er;if(m)return()=>Pc(m,C);const P=B=>{d=null,ba(B,C,13,!i)};if(u&&C.suspense||fs)return R().then(B=>()=>Pc(B,C)).catch(B=>(P(B),()=>i?Zt(i,{error:B}):null));const k=mr(!1),L=mr(),I=mr(!!a);return a&&setTimeout(()=>{I.value=!1},a),n!=null&&setTimeout(()=>{if(!k.value&&!L.value){const B=new Error(`Async component timed out after ${n}ms.`);P(B),L.value=B}},n),R().then(()=>{k.value=!0,C.parent&&Ls(C.parent.vnode)&&lu(C.parent.update)}).catch(B=>{P(B),L.value=B}),()=>{if(k.value&&m)return Pc(m,C);if(L.value&&i)return Zt(i,{error:L.value});if(r&&!I.value)return Zt(r)}}})}function Pc(e,t){const{ref:r,props:i,children:a,ce:n}=t.vnode,u=Zt(e,i,a);return u.ref=r,u.ce=n,delete t.vnode.ce,u}const Ls=e=>e.type.__isKeepAlive,j8={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=Fi(),i=r.ctx;if(!i.renderer)return()=>{const B=t.default&&t.default();return B&&B.length===1?B[0]:B};const a=new Map,n=new Set;let u=null;r.__v_cache=a;const c=r.suspense,{renderer:{p:d,m,um:M,o:{createElement:S}}}=i,R=S("div");i.activate=(B,H,F,W,Y)=>{const ie=B.component;m(B,H,F,0,c),d(ie.vnode,B,H,F,ie,c,W,B.slotScopeIds,Y),gr(()=>{ie.isDeactivated=!1,ie.a&&so(ie.a);const J=B.props&&B.props.onVnodeMounted;J&&Dr(J,ie.parent,B)},c),D0(ie)},i.deactivate=B=>{const H=B.component;m(B,R,null,1,c),gr(()=>{H.da&&so(H.da);const F=B.props&&B.props.onVnodeUnmounted;F&&Dr(F,H.parent,B),H.isDeactivated=!0},c),D0(H)};function C(B){Cc(B),M(B,r,c,!0)}function P(B){a.forEach((H,F)=>{const W=Xf(H.type);W&&(!B||!B(W))&&k(F)})}function k(B){const H=a.get(B);!u||!Li(H,u)?C(H):u&&Cc(u),a.delete(B),n.delete(B)}lr(()=>[e.include,e.exclude],([B,H])=>{B&&P(F=>_f(B,F)),H&&P(F=>!_f(H,F))},{flush:"post",deep:!0});let L=null;const I=()=>{L!=null&&a.set(L,Bc(r.subTree))};return Ns(I),yh(I),bh(()=>{a.forEach(B=>{const{subTree:H,suspense:F}=r,W=Bc(H);if(B.type===W.type&&B.key===W.key){Cc(W);const Y=W.component.da;Y&&gr(Y,F);return}C(B)})}),()=>{if(L=null,!t.default)return null;const B=t.default(),H=B[0];if(B.length>1)return Ue("KeepAlive should contain exactly one component child."),u=null,B;if(!Nn(H)||!(H.shapeFlag&4)&&!(H.shapeFlag&128))return u=null,H;let F=Bc(H);const W=F.type,Y=Xf(ra(F)?F.type.__asyncResolved||{}:W),{include:ie,exclude:J,max:V}=e;if(ie&&(!Y||!_f(ie,Y))||J&&Y&&_f(J,Y))return u=F,H;const oe=F.key==null?W:F.key,_=a.get(oe);return F.el&&(F=di(F),H.shapeFlag&128&&(H.ssContent=F)),L=oe,_?(F.el=_.el,F.component=_.component,F.transition&&fa(F,F.transition),F.shapeFlag|=512,n.delete(oe),n.add(oe)):(n.add(oe),V&&n.size>parseInt(V,10)&&k(n.values().next().value)),F.shapeFlag|=256,u=F,S2(H.type)?H:F}}},U8=j8;function _f(e,t){return ze(e)?e.some(r=>_f(r,t)):Vt(e)?e.split(",").includes(t):Z4(e)?e.test(t):!1}function P2(e,t){B2(e,"a",t)}function C2(e,t){B2(e,"da",t)}function B2(e,t,r=er){const i=e.__wdc||(e.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(mh(t,i,r),r){let a=r.parent;for(;a&&a.parent;)Ls(a.parent.vnode)&&H8(i,t,r,a),a=a.parent}}function H8(e,t,r,i){const a=mh(t,e,i,!0);wh(()=>{iv(i[t],a)},r)}function Cc(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Bc(e){return e.shapeFlag&128?e.ssContent:e}function mh(e,t,r=er,i=!1){if(r){const a=r[e]||(r[e]=[]),n=t.__weh||(t.__weh=(...u)=>{if(r.isUnmounted)return;ma(),Eo(r);const c=Zr(t,r,e,u);return yo(),ya(),c});return i?a.unshift(n):a.push(n),n}else{const a=xn(vv[e].replace(/ hook$/,""));Ue(`${a} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Vn=e=>(t,r=er)=>(!fs||e==="sp")&&mh(e,(...i)=>t(...i),r),L2=Vn("bm"),Ns=Vn("m"),Rv=Vn("bu"),yh=Vn("u"),bh=Vn("bum"),wh=Vn("um"),N2=Vn("sp"),k2=Vn("rtg"),$2=Vn("rtc");function D2(e,t=er){mh("ec",e,t)}const Cl="components",q8="directives";function W8(e,t){return Av(Cl,e,!0,t)||e}const F2=Symbol.for("v-ndc");function K8(e){return Vt(e)?Av(Cl,e,!1)||e:e||F2}function V8(e){return Av(q8,e)}function Av(e,t,r=!0,i=!1){const a=tr||er;if(a){const n=a.type;if(e===Cl){const c=Xf(n,!1);if(c&&(c===t||c===Kr(t)||c===_o(Kr(t))))return n}const u=Mm(a[e]||n[e],t)||Mm(a.appContext[e],t);if(!u&&i)return n;if(r&&!u){const c=e===Cl?`
+If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";Ue(`Failed to resolve ${e.slice(0,-1)}: ${t}${c}`)}return u}else Ue(`resolve${_o(e.slice(0,-1))} can only be used in render() or setup().`)}function Mm(e,t){return e&&(e[t]||e[Kr(t)]||e[_o(Kr(t))])}function Ii(e,t,r,i){let a;const n=r&&r[i];if(ze(e)||Vt(e)){a=new Array(e.length);for(let u=0,c=e.length;u<c;u++)a[u]=t(e[u],u,void 0,n&&n[u])}else if(typeof e=="number"){Number.isInteger(e)||Ue(`The v-for range expect an integer value but got ${e}.`),a=new Array(e);for(let u=0;u<e;u++)a[u]=t(u+1,u,void 0,n&&n[u])}else if(Rt(e))if(e[Symbol.iterator])a=Array.from(e,(u,c)=>t(u,c,void 0,n&&n[c]));else{const u=Object.keys(e);a=new Array(u.length);for(let c=0,d=u.length;c<d;c++){const m=u[c];a[c]=t(e[m],m,c,n&&n[c])}}else a=[];return r&&(r[i]=a),a}function z8(e,t){for(let r=0;r<t.length;r++){const i=t[r];if(ze(i))for(let a=0;a<i.length;a++)e[i[a].name]=i[a].fn;else i&&(e[i.name]=i.key?(...a)=>{const n=i.fn(...a);return n&&(n.key=i.key),n}:i.fn)}return e}function j0(e,t,r={},i,a){if(tr.isCE||tr.parent&&ra(tr.parent)&&tr.parent.isCE)return t!=="default"&&(r.name=t),Zt("slot",r,i&&i());let n=e[t];n&&n.length>1&&(Ue("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),n=()=>[]),n&&n._c&&(n._d=!1),tt();const u=n&&j2(n(r)),c=Pv(Lt,{key:r.key||u&&u.key||`_${t}`},u||(i?i():[]),u&&e._===1?64:-2);return!a&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),n&&n._c&&(n._d=!0),c}function j2(e){return e.some(t=>Nn(t)?!(t.type===rr||t.type===Lt&&!j2(t.children)):!0)?e:null}function G8(e,t){const r={};if(!Rt(e))return Ue("v-on with no argument expects an object value."),r;for(const i in e)r[t&&/[A-Z]/.test(i)?`on:${i}`:xn(i)]=e[i];return r}const U0=e=>e?s_(e)?Mh(e)||e.proxy:U0(e.parent):null,ia=Pt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>Wa(e.props),$attrs:e=>Wa(e.attrs),$slots:e=>Wa(e.slots),$refs:e=>Wa(e.refs),$parent:e=>U0(e.parent),$root:e=>U0(e.root),$emit:e=>e.emit,$options:e=>Ov(e),$forceUpdate:e=>e.f||(e.f=()=>lu(e.update)),$nextTick:e=>e.n||(e.n=uo.bind(e.proxy)),$watch:e=>$8.bind(e)}),Tv=e=>e==="_"||e==="$",Lc=(e,t)=>e!==$t&&!e.__isScriptSetup&&wt(e,t),Pf={get({_:e},t){const{ctx:r,setupState:i,data:a,props:n,accessCache:u,type:c,appContext:d}=e;if(t==="__isVue")return!0;let m;if(t[0]!=="$"){const C=u[t];if(C!==void 0)switch(C){case 1:return i[t];case 2:return a[t];case 4:return r[t];case 3:return n[t]}else{if(Lc(i,t))return u[t]=1,i[t];if(a!==$t&&wt(a,t))return u[t]=2,a[t];if((m=e.propsOptions[0])&&wt(m,t))return u[t]=3,n[t];if(r!==$t&&wt(r,t))return u[t]=4,r[t];H0&&(u[t]=0)}}const M=ia[t];let S,R;if(M)return t==="$attrs"?(Tr(e,"get",t),Pl()):t==="$slots"&&Tr(e,"get",t),M(e);if((S=c.__cssModules)&&(S=S[t]))return S;if(r!==$t&&wt(r,t))return u[t]=4,r[t];if(R=d.config.globalProperties,wt(R,t))return R[t];tr&&(!Vt(t)||t.indexOf("__v")!==0)&&(a!==$t&&Tv(t[0])&&wt(a,t)?Ue(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===tr&&Ue(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,r){const{data:i,setupState:a,ctx:n}=e;return Lc(a,t)?(a[t]=r,!0):a.__isScriptSetup&&wt(a,t)?(Ue(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):i!==$t&&wt(i,t)?(i[t]=r,!0):wt(e.props,t)?(Ue(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(Ue(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(n,t,{enumerable:!0,configurable:!0,value:r}):n[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:a,propsOptions:n}},u){let c;return!!r[u]||e!==$t&&wt(e,u)||Lc(t,u)||(c=n[0])&&wt(c,u)||wt(i,u)||wt(ia,u)||wt(a.config.globalProperties,u)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};Pf.ownKeys=e=>(Ue("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e));const Y8=Pt({},Pf,{get(e,t){if(t!==Symbol.unscopables)return Pf.get(e,t,e)},has(e,t){const r=t[0]!=="_"&&!tE(t);return!r&&Pf.has(e,t)&&Ue(`Property ${JSON.stringify(t)} should not start with _ which is a reserved prefix for Vue internals.`),r}});function Z8(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(ia).forEach(r=>{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,get:()=>ia[r](e),set:qr})}),t}function X8(e){const{ctx:t,propsOptions:[r]}=e;r&&Object.keys(r).forEach(i=>{Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>e.props[i],set:qr})})}function J8(e){const{ctx:t,setupState:r}=e;Object.keys(lt(r)).forEach(i=>{if(!r.__isScriptSetup){if(Tv(i[0])){Ue(`setup() return property ${JSON.stringify(i)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r[i],set:qr})}})}const wa=e=>Ue(`${e}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`);function Q8(){return wa("defineProps"),null}function e5(){return wa("defineEmits"),null}function t5(e){wa("defineExpose")}function r5(e){wa("defineOptions")}function i5(){return wa("defineSlots"),null}function n5(){wa("defineModel")}function o5(e,t){return wa("withDefaults"),null}function a5(){return U2().slots}function s5(){return U2().attrs}function f5(e,t,r){const i=Fi();if(!i)return Ue("useModel() called without active instance."),mr();if(!i.propsOptions[0][t])return Ue(`useModel() called with prop "${t}" which is not declared.`),mr();if(r&&r.local){const a=mr(e[t]);return lr(()=>e[t],n=>a.value=n),lr(a,n=>{n!==e[t]&&i.emit(`update:${t}`,n)}),a}else return{__v_isRef:!0,get value(){return e[t]},set value(a){i.emit(`update:${t}`,a)}}}function U2(){const e=Fi();return e||Ue("useContext() called without active instance."),e.setupContext||(e.setupContext=l_(e))}function Yf(e){return ze(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function u5(e,t){const r=Yf(e);for(const i in t){if(i.startsWith("__skip"))continue;let a=r[i];a?ze(a)||Qe(a)?a=r[i]={type:a,default:t[i]}:a.default=t[i]:a===null?a=r[i]={default:t[i]}:Ue(`props default key "${i}" has no corresponding declaration.`),a&&t[`__skip_${i}`]&&(a.skipFactory=!0)}return r}function l5(e,t){return!e||!t?e||t:ze(e)&&ze(t)?e.concat(t):Pt({},Yf(e),Yf(t))}function h5(e,t){const r={};for(const i in e)t.includes(i)||Object.defineProperty(r,i,{enumerable:!0,get:()=>e[i]});return r}function c5(e){const t=Fi();t||Ue("withAsyncContext called without active current instance. This is likely a bug.");let r=e();return yo(),oh(r)&&(r=r.catch(i=>{throw Eo(t),i})),[r,()=>Eo(t)]}function d5(){const e=Object.create(null);return(t,r)=>{e[r]?Ue(`${t} property "${r}" is already defined in ${e[r]}.`):e[r]=t}}let H0=!0;function p5(e){const t=Ov(e),r=e.proxy,i=e.ctx;H0=!1,t.beforeCreate&&Sm(t.beforeCreate,e,"bc");const{data:a,computed:n,methods:u,watch:c,provide:d,inject:m,created:M,beforeMount:S,mounted:R,beforeUpdate:C,updated:P,activated:k,deactivated:L,beforeDestroy:I,beforeUnmount:B,destroyed:H,unmounted:F,render:W,renderTracked:Y,renderTriggered:ie,errorCaptured:J,serverPrefetch:V,expose:oe,inheritAttrs:_,components:o,directives:f,filters:l}=t,h=d5();{const[w]=e.propsOptions;if(w)for(const x in w)h("Props",x)}if(m&&v5(m,i,h),u)for(const w in u){const x=u[w];Qe(x)?(Object.defineProperty(i,w,{value:x.bind(r),configurable:!0,enumerable:!0,writable:!0}),h("Methods",w)):Ue(`Method "${w}" has type "${typeof x}" in the component definition. Did you reference the function correctly?`)}if(a){Qe(a)||Ue("The data option must be a function. Plain object usage is no longer supported.");const w=a.call(r,r);if(oh(w)&&Ue("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Rt(w))Ue("data() should return an object.");else{e.data=No(w);for(const x in w)h("Data",x),Tv(x[0])||Object.defineProperty(i,x,{configurable:!0,enumerable:!0,get:()=>w[x],set:qr})}}if(H0=!0,n)for(const w in n){const x=n[w],g=Qe(x)?x.bind(r,r):Qe(x.get)?x.get.bind(r,r):qr;g===qr&&Ue(`Computed property "${w}" has no getter.`);const s=!Qe(x)&&Qe(x.set)?x.set.bind(r):()=>{Ue(`Write operation failed: computed property "${w}" is readonly.`)},v=Qt({get:g,set:s});Object.defineProperty(i,w,{enumerable:!0,configurable:!0,get:()=>v.value,set:T=>v.value=T}),h("Computed",w)}if(c)for(const w in c)H2(c[w],i,r,w);if(d){const w=Qe(d)?d.call(r):d;Reflect.ownKeys(w).forEach(x=>{Cf(x,w[x])})}M&&Sm(M,e,"c");function p(w,x){ze(x)?x.forEach(g=>w(g.bind(r))):x&&w(x.bind(r))}if(p(L2,S),p(Ns,R),p(Rv,C),p(yh,P),p(P2,k),p(C2,L),p(D2,J),p($2,Y),p(k2,ie),p(bh,B),p(wh,F),p(N2,V),ze(oe))if(oe.length){const w=e.exposed||(e.exposed={});oe.forEach(x=>{Object.defineProperty(w,x,{get:()=>r[x],set:g=>r[x]=g})})}else e.exposed||(e.exposed={});W&&e.render===qr&&(e.render=W),_!=null&&(e.inheritAttrs=_),o&&(e.components=o),f&&(e.directives=f)}function v5(e,t,r=qr){ze(e)&&(e=q0(e));for(const i in e){const a=e[i];let n;Rt(a)?"default"in a?n=tn(a.from||i,a.default,!0):n=tn(a.from||i):n=tn(a),Xt(n)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>n.value,set:u=>n.value=u}):t[i]=n,r("Inject",i)}}function Sm(e,t,r){Zr(ze(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,r)}function H2(e,t,r,i){const a=i.includes(".")?A2(r,i):()=>r[i];if(Vt(e)){const n=t[e];Qe(n)?lr(a,n):Ue(`Invalid watch handler specified by key "${e}"`,n)}else if(Qe(e))lr(a,e.bind(r));else if(Rt(e))if(ze(e))e.forEach(n=>H2(n,t,r,i));else{const n=Qe(e.handler)?e.handler.bind(r):t[e.handler];Qe(n)?lr(a,n,e):Ue(`Invalid watch handler specified by key "${e.handler}"`,n)}else Ue(`Invalid watch option: "${i}"`,e)}function Ov(e){const t=e.type,{mixins:r,extends:i}=t,{mixins:a,optionsCache:n,config:{optionMergeStrategies:u}}=e.appContext,c=n.get(t);let d;return c?d=c:!a.length&&!r&&!i?d=t:(d={},a.length&&a.forEach(m=>Bl(d,m,u,!0)),Bl(d,t,u)),Rt(t)&&n.set(t,d),d}function Bl(e,t,r,i=!1){const{mixins:a,extends:n}=t;n&&Bl(e,n,r,!0),a&&a.forEach(u=>Bl(e,u,r,!0));for(const u in t)if(i&&u==="expose")Ue('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const c=g5[u]||r&&r[u];e[u]=c?c(e[u],t[u]):t[u]}return e}const g5={data:xm,props:Em,emits:Em,methods:Mf,computed:Mf,beforeCreate:Cr,created:Cr,beforeMount:Cr,mounted:Cr,beforeUpdate:Cr,updated:Cr,beforeDestroy:Cr,beforeUnmount:Cr,destroyed:Cr,unmounted:Cr,activated:Cr,deactivated:Cr,errorCaptured:Cr,serverPrefetch:Cr,components:Mf,directives:Mf,watch:y5,provide:xm,inject:m5};function xm(e,t){return t?e?function(){return Pt(Qe(e)?e.call(this,this):e,Qe(t)?t.call(this,this):t)}:t:e}function m5(e,t){return Mf(q0(e),q0(t))}function q0(e){if(ze(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Cr(e,t){return e?[...new Set([].concat(e,t))]:t}function Mf(e,t){return e?Pt(Object.create(null),e,t):t}function Em(e,t){return e?ze(e)&&ze(t)?[...new Set([...e,...t])]:Pt(Object.create(null),Yf(e),Yf(t??{})):t}function y5(e,t){if(!e)return t;if(!t)return e;const r=Pt(Object.create(null),e);for(const i in t)r[i]=Cr(e[i],t[i]);return r}function q2(){return{app:null,config:{isNativeTag:Hw,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let b5=0;function w5(e,t){return function(i,a=null){Qe(i)||(i=Pt({},i)),a!=null&&!Rt(a)&&(Ue("root props passed to app.mount() must be an object."),a=null);const n=q2();Object.defineProperty(n.config,"unwrapInjectedRef",{get(){return!0},set(){Ue("app.config.unwrapInjectedRef has been deprecated. 3.3 now alawys unwraps injected refs in Options API.")}});const u=new Set;let c=!1;const d=n.app={_uid:b5++,_component:i,_props:a,_container:null,_context:n,_instance:null,version:J0,get config(){return n.config},set config(m){Ue("app.config cannot be replaced. Modify individual options instead.")},use(m,...M){return u.has(m)?Ue("Plugin has already been applied to target app."):m&&Qe(m.install)?(u.add(m),m.install(d,...M)):Qe(m)?(u.add(m),m(d,...M)):Ue('A plugin must either be a function or an object with an "install" function.'),d},mixin(m){return n.mixins.includes(m)?Ue("Mixin has already been applied to target app"+(m.name?`: ${m.name}`:"")):n.mixins.push(m),d},component(m,M){return Y0(m,n.config),M?(n.components[m]&&Ue(`Component "${m}" has already been registered in target app.`),n.components[m]=M,d):n.components[m]},directive(m,M){return T2(m),M?(n.directives[m]&&Ue(`Directive "${m}" has already been registered in target app.`),n.directives[m]=M,d):n.directives[m]},mount(m,M,S){if(c)Ue("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{m.__vue_app__&&Ue("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const R=Zt(i,a);return R.appContext=n,n.reload=()=>{e(di(R),m,S)},M&&t?t(R,m):e(R,m,S),c=!0,d._container=m,m.__vue_app__=d,d._instance=R.component,g8(d,J0),Mh(R.component)||R.component.proxy}},unmount(){c?(e(null,d._container),d._instance=null,m8(d),delete d._container.__vue_app__):Ue("Cannot unmount an app that is not mounted.")},provide(m,M){return m in n.provides&&Ue(`App already provides property with key "${String(m)}". It will be overwritten with the new value.`),n.provides[m]=M,d},runWithContext(m){Zf=d;try{return m()}finally{Zf=null}}};return d}}let Zf=null;function Cf(e,t){if(!er)Ue("provide() can only be used inside setup().");else{let r=er.provides;const i=er.parent&&er.parent.provides;i===r&&(r=er.provides=Object.create(i)),r[e]=t}}function tn(e,t,r=!1){const i=er||tr;if(i||Zf){const a=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:Zf._context.provides;if(a&&e in a)return a[e];if(arguments.length>1)return r&&Qe(t)?t.call(i&&i.proxy):t;Ue(`injection "${String(e)}" not found.`)}else Ue("inject() can only be used inside setup() or functional components.")}function _5(){return!!(er||tr||Zf)}function M5(e,t,r,i=!1){const a={},n={};xl(n,_h,1),e.propsDefaults=Object.create(null),W2(e,t,a,n);for(const u in e.propsOptions[0])u in a||(a[u]=void 0);V2(t||{},a,e),r?e.props=i?a:u2(a):e.type.props?e.props=a:e.props=n,e.attrs=n}function S5(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function x5(e,t,r,i){const{props:a,attrs:n,vnode:{patchFlag:u}}=e,c=lt(a),[d]=e.propsOptions;let m=!1;if(!S5(e)&&(i||u>0)&&!(u&16)){if(u&8){const M=e.vnode.dynamicProps;for(let S=0;S<M.length;S++){let R=M[S];if(ph(e.emitsOptions,R))continue;const C=t[R];if(d)if(wt(n,R))C!==n[R]&&(n[R]=C,m=!0);else{const P=Kr(R);a[P]=W0(d,c,P,C,e,!1)}else C!==n[R]&&(n[R]=C,m=!0)}}}else{W2(e,t,a,n)&&(m=!0);let M;for(const S in c)(!t||!wt(t,S)&&((M=Hr(S))===S||!wt(t,M)))&&(d?r&&(r[S]!==void 0||r[M]!==void 0)&&(a[S]=W0(d,c,S,void 0,e,!0)):delete a[S]);if(n!==c)for(const S in n)(!t||!wt(t,S))&&(delete n[S],m=!0)}m&&an(e,"set","$attrs"),V2(t||{},a,e)}function W2(e,t,r,i){const[a,n]=e.propsOptions;let u=!1,c;if(t)for(let d in t){if(Af(d))continue;const m=t[d];let M;a&&wt(a,M=Kr(d))?!n||!n.includes(M)?r[M]=m:(c||(c={}))[M]=m:ph(e.emitsOptions,d)||(!(d in i)||m!==i[d])&&(i[d]=m,u=!0)}if(n){const d=lt(r),m=c||$t;for(let M=0;M<n.length;M++){const S=n[M];r[S]=W0(a,d,S,m[S],e,!wt(m,S))}}return u}function W0(e,t,r,i,a,n){const u=e[r];if(u!=null){const c=wt(u,"default");if(c&&i===void 0){const d=u.default;if(u.type!==Function&&!u.skipFactory&&Qe(d)){const{propsDefaults:m}=a;r in m?i=m[r]:(Eo(a),i=m[r]=d.call(null,t),yo())}else i=d}u[0]&&(n&&!c?i=!1:u[1]&&(i===""||i===Hr(r))&&(i=!0))}return i}function K2(e,t,r=!1){const i=t.propsCache,a=i.get(e);if(a)return a;const n=e.props,u={},c=[];let d=!1;if(!Qe(e)){const M=S=>{d=!0;const[R,C]=K2(S,t,!0);Pt(u,R),C&&c.push(...C)};!r&&t.mixins.length&&t.mixins.forEach(M),e.extends&&M(e.extends),e.mixins&&e.mixins.forEach(M)}if(!n&&!d)return Rt(e)&&i.set(e,Ga),Ga;if(ze(n))for(let M=0;M<n.length;M++){Vt(n[M])||Ue("props must be strings when using array syntax.",n[M]);const S=Kr(n[M]);Rm(S)&&(u[S]=$t)}else if(n){Rt(n)||Ue("invalid props options",n);for(const M in n){const S=Kr(M);if(Rm(S)){const R=n[M],C=u[S]=ze(R)||Qe(R)?{type:R}:Pt({},R);if(C){const P=Tm(Boolean,C.type),k=Tm(String,C.type);C[0]=P>-1,C[1]=k<0||P<k,(P>-1||wt(C,"default"))&&c.push(S)}}}}const m=[u,c];return Rt(e)&&i.set(e,m),m}function Rm(e){return e[0]!=="$"?!0:(Ue(`Invalid prop name: "${e}" is a reserved property.`),!1)}function K0(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Am(e,t){return K0(e)===K0(t)}function Tm(e,t){return ze(t)?t.findIndex(r=>Am(r,e)):Qe(t)&&Am(t,e)?0:-1}function V2(e,t,r){const i=lt(t),a=r.propsOptions[0];for(const n in a){let u=a[n];u!=null&&E5(n,i[n],u,!wt(e,n)&&!wt(e,Hr(n)))}}function E5(e,t,r,i){const{type:a,required:n,validator:u,skipCheck:c}=r;if(n&&i){Ue('Missing required prop: "'+e+'"');return}if(!(t==null&&!n)){if(a!=null&&a!==!0&&!c){let d=!1;const m=ze(a)?a:[a],M=[];for(let S=0;S<m.length&&!d;S++){const{valid:R,expectedType:C}=A5(t,m[S]);M.push(C||""),d=R}if(!d){Ue(T5(e,t,M));return}}u&&!u(t)&&Ue('Invalid prop: custom validator check failed for prop "'+e+'".')}}const R5=Kn("String,Number,Boolean,Function,Symbol,BigInt");function A5(e,t){let r;const i=K0(t);if(R5(i)){const a=typeof e;r=a===i.toLowerCase(),!r&&a==="object"&&(r=e instanceof t)}else i==="Object"?r=Rt(e):i==="Array"?r=ze(e):i==="null"?r=e===null:r=e instanceof t;return{valid:r,expectedType:i}}function T5(e,t,r){let i=`Invalid prop: type check failed for prop "${e}". Expected ${r.map(_o).join(" | ")}`;const a=r[0],n=nv(t),u=Om(t,a),c=Om(t,n);return r.length===1&&Im(a)&&!O5(a,n)&&(i+=` with value ${u}`),i+=`, got ${n} `,Im(n)&&(i+=`with value ${c}.`),i}function Om(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function Im(e){return["string","number","boolean"].some(r=>e.toLowerCase()===r)}function O5(...e){return e.some(t=>t.toLowerCase()==="boolean")}const z2=e=>e[0]==="_"||e==="$stable",Iv=e=>ze(e)?e.map(Ur):[Ur(e)],I5=(e,t,r)=>{if(t._n)return t;const i=wv((...a)=>(er&&Ue(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Iv(t(...a))),r);return i._c=!1,i},G2=(e,t,r)=>{const i=e._ctx;for(const a in e){if(z2(a))continue;const n=e[a];if(Qe(n))t[a]=I5(a,n,i);else if(n!=null){Ue(`Non-function value encountered for slot "${a}". Prefer function slots for better performance.`);const u=Iv(n);t[a]=()=>u}}},Y2=(e,t)=>{Ls(e.vnode)||Ue("Non-function value encountered for default slot. Prefer function slots for better performance.");const r=Iv(t);e.slots.default=()=>r},P5=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=lt(t),xl(t,"_",r)):G2(t,e.slots={})}else e.slots={},t&&Y2(e,t);xl(e.slots,_h,1)},C5=(e,t,r)=>{const{vnode:i,slots:a}=e;let n=!0,u=$t;if(i.shapeFlag&32){const c=t._;c?go?(Pt(a,t),an(e,"set","$slots")):r&&c===1?n=!1:(Pt(a,t),!r&&c===1&&delete a._):(n=!t.$stable,G2(t,a)),u=t}else t&&(Y2(e,t),u={default:1});if(n)for(const c in a)!z2(c)&&!(c in u)&&delete a[c]};function Ll(e,t,r,i,a=!1){if(ze(e)){e.forEach((R,C)=>Ll(R,t&&(ze(t)?t[C]:t),r,i,a));return}if(ra(i)&&!a)return;const n=i.shapeFlag&4?Mh(i.component)||i.component.proxy:i.el,u=a?null:n,{i:c,r:d}=e;if(!c){Ue("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const m=t&&t.r,M=c.refs===$t?c.refs={}:c.refs,S=c.setupState;if(m!=null&&m!==d&&(Vt(m)?(M[m]=null,wt(S,m)&&(S[m]=null)):Xt(m)&&(m.value=null)),Qe(d))en(d,c,12,[u,M]);else{const R=Vt(d),C=Xt(d);if(R||C){const P=()=>{if(e.f){const k=R?wt(S,d)?S[d]:M[d]:d.value;a?ze(k)&&iv(k,n):ze(k)?k.includes(n)||k.push(n):R?(M[d]=[n],wt(S,d)&&(S[d]=M[d])):(d.value=[n],e.k&&(M[e.k]=d.value))}else R?(M[d]=u,wt(S,d)&&(S[d]=u)):C?(d.value=u,e.k&&(M[e.k]=u)):Ue("Invalid template ref type:",d,`(${typeof d})`)};u?(P.id=-1,gr(P,r)):P()}else Ue("Invalid template ref type:",d,`(${typeof d})`)}}let Jn=!1;const Wu=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Gs=e=>e.nodeType===8;function B5(e){const{mt:t,p:r,o:{patchProp:i,createText:a,nextSibling:n,parentNode:u,remove:c,insert:d,createComment:m}}=e,M=(I,B)=>{if(!B.hasChildNodes()){Ue("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),r(null,I,B),Il(),B._vnode=I;return}Jn=!1,S(B.firstChild,I,null,null,null),Il(),B._vnode=I,Jn&&console.error("Hydration completed but contains mismatches.")},S=(I,B,H,F,W,Y=!1)=>{const ie=Gs(I)&&I.data==="[",J=()=>k(I,B,H,F,W,ie),{type:V,ref:oe,shapeFlag:_,patchFlag:o}=B;let f=I.nodeType;B.el=I,o===-2&&(Y=!1,B.dynamicChildren=null);let l=null;switch(V){case xo:f!==3?B.children===""?(d(B.el=a(""),u(I),I),l=I):l=J():(I.data!==B.children&&(Jn=!0,Ue(`Hydration text mismatch:
+- Client: ${JSON.stringify(I.data)}
+- Server: ${JSON.stringify(B.children)}`),I.data=B.children),l=n(I));break;case rr:f!==8||ie?l=J():l=n(I);break;case mo:if(ie&&(I=n(I),f=I.nodeType),f===1||f===3){l=I;const h=!B.children.length;for(let p=0;p<B.staticCount;p++)h&&(B.children+=l.nodeType===1?l.outerHTML:l.data),p===B.staticCount-1&&(B.anchor=l),l=n(l);return ie?n(l):l}else J();break;case Lt:ie?l=P(I,B,H,F,W,Y):l=J();break;default:if(_&1)f!==1||B.type.toLowerCase()!==I.tagName.toLowerCase()?l=J():l=R(I,B,H,F,W,Y);else if(_&6){B.slotScopeIds=W;const h=u(I);if(t(B,h,null,H,F,Wu(h),Y),l=ie?L(I):n(I),l&&Gs(l)&&l.data==="teleport end"&&(l=n(l)),ra(B)){let p;ie?(p=Zt(Lt),p.anchor=l?l.previousSibling:h.lastChild):p=I.nodeType===3?Cv(""):Zt("div"),p.el=I,B.component.subTree=p}}else _&64?f!==8?l=J():l=B.type.hydrate(I,B,H,F,W,Y,e,C):_&128?l=B.type.hydrate(I,B,H,F,Wu(u(I)),W,Y,e,S):Ue("Invalid HostVNode type:",V,`(${typeof V})`)}return oe!=null&&Ll(oe,null,F,B),l},R=(I,B,H,F,W,Y)=>{Y=Y||!!B.dynamicChildren;const{type:ie,props:J,patchFlag:V,shapeFlag:oe,dirs:_}=B,o=ie==="input"&&_||ie==="option";{if(_&&Zi(B,null,H,"created"),J)if(o||!Y||V&48)for(const l in J)(o&&l.endsWith("value")||Ps(l)&&!Af(l))&&i(I,l,null,J[l],!1,void 0,H);else J.onClick&&i(I,"onClick",null,J.onClick,!1,void 0,H);let f;if((f=J&&J.onVnodeBeforeMount)&&Dr(f,H,B),_&&Zi(B,null,H,"beforeMount"),((f=J&&J.onVnodeMounted)||_)&&x2(()=>{f&&Dr(f,H,B),_&&Zi(B,null,H,"mounted")},F),oe&16&&!(J&&(J.innerHTML||J.textContent))){let l=C(I.firstChild,B,I,H,F,W,Y),h=!1;for(;l;){Jn=!0,h||(Ue(`Hydration children mismatch in <${B.type}>: server rendered element contains more child nodes than client vdom.`),h=!0);const p=l;l=l.nextSibling,c(p)}}else oe&8&&I.textContent!==B.children&&(Jn=!0,Ue(`Hydration text content mismatch in <${B.type}>:
+- Client: ${I.textContent}
+- Server: ${B.children}`),I.textContent=B.children)}return I.nextSibling},C=(I,B,H,F,W,Y,ie)=>{ie=ie||!!B.dynamicChildren;const J=B.children,V=J.length;let oe=!1;for(let _=0;_<V;_++){const o=ie?J[_]:J[_]=Ur(J[_]);if(I)I=S(I,o,F,W,Y,ie);else{if(o.type===xo&&!o.children)continue;Jn=!0,oe||(Ue(`Hydration children mismatch in <${H.tagName.toLowerCase()}>: server rendered element contains fewer child nodes than client vdom.`),oe=!0),r(null,o,H,null,F,W,Wu(H),Y)}}return I},P=(I,B,H,F,W,Y)=>{const{slotScopeIds:ie}=B;ie&&(W=W?W.concat(ie):ie);const J=u(I),V=C(n(I),B,J,H,F,W,Y);return V&&Gs(V)&&V.data==="]"?n(B.anchor=V):(Jn=!0,d(B.anchor=m("]"),J,V),V)},k=(I,B,H,F,W,Y)=>{if(Jn=!0,Ue(`Hydration node mismatch:
+- Client vnode:`,B.type,`
+- Server rendered DOM:`,I,I.nodeType===3?"(text)":Gs(I)&&I.data==="["?"(start of fragment)":""),B.el=null,Y){const V=L(I);for(;;){const oe=n(I);if(oe&&oe!==V)c(oe);else break}}const ie=n(I),J=u(I);return c(I),r(null,B,J,ie,H,F,Wu(J),W),ie},L=I=>{let B=0;for(;I;)if(I=n(I),I&&Gs(I)&&(I.data==="["&&B++,I.data==="]")){if(B===0)return n(I);B--}return I};return[M,S]}let Ys,fo;function bn(e,t){e.appContext.config.performance&&Nl()&&fo.mark(`vue-${t}-${e.uid}`),w8(e,t,Nl()?fo.now():Date.now())}function wn(e,t){if(e.appContext.config.performance&&Nl()){const r=`vue-${t}-${e.uid}`,i=r+":end";fo.mark(i),fo.measure(`<${Sh(e,e.type)}> ${t}`,r,i),fo.clearMarks(r),fo.clearMarks(i)}_8(e,t,Nl()?fo.now():Date.now())}function Nl(){return Ys!==void 0||(typeof window<"u"&&window.performance?(Ys=!0,fo=window.performance):Ys=!1),Ys}function L5(){const e=[];if(e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
+
+For more details, see https://link.vuejs.org/feature-flags.`)}}const gr=x2;function Z2(e){return J2(e)}function X2(e){return J2(e,B5)}function J2(e,t){L5();const r=Al();r.__VUE__=!0,yv(r.__VUE_DEVTOOLS_GLOBAL_HOOK__,r);const{insert:i,remove:a,patchProp:n,createElement:u,createText:c,createComment:d,setText:m,setElementText:M,parentNode:S,nextSibling:R,setScopeId:C=qr,insertStaticContent:P}=e,k=(O,q,X,D=null,N=null,j=null,z=!1,se=null,te=go?!1:!!q.dynamicChildren)=>{if(O===q)return;O&&!Li(O,q)&&(D=U(O),$(O,N,j,!0),O=null),q.patchFlag===-2&&(te=!1,q.dynamicChildren=null);const{type:ne,ref:Ee,shapeFlag:Q}=q;switch(ne){case xo:L(O,q,X,D);break;case rr:I(O,q,X,D);break;case mo:O==null?B(q,X,D,z):H(O,q,X,z);break;case Lt:f(O,q,X,D,N,j,z,se,te);break;default:Q&1?Y(O,q,X,D,N,j,z,se,te):Q&6?l(O,q,X,D,N,j,z,se,te):Q&64||Q&128?ne.process(O,q,X,D,N,j,z,se,te,Z):Ue("Invalid VNode type:",ne,`(${typeof ne})`)}Ee!=null&&N&&Ll(Ee,O&&O.ref,j,q||O,!q)},L=(O,q,X,D)=>{if(O==null)i(q.el=c(q.children),X,D);else{const N=q.el=O.el;q.children!==O.children&&m(N,q.children)}},I=(O,q,X,D)=>{O==null?i(q.el=d(q.children||""),X,D):q.el=O.el},B=(O,q,X,D)=>{[O.el,O.anchor]=P(O.children,q,X,D,O.el,O.anchor)},H=(O,q,X,D)=>{if(q.children!==O.children){const N=R(O.anchor);W(O),[q.el,q.anchor]=P(q.children,X,N,D)}else q.el=O.el,q.anchor=O.anchor},F=({el:O,anchor:q},X,D)=>{let N;for(;O&&O!==q;)N=R(O),i(O,X,D),O=N;i(q,X,D)},W=({el:O,anchor:q})=>{let X;for(;O&&O!==q;)X=R(O),a(O),O=X;a(q)},Y=(O,q,X,D,N,j,z,se,te)=>{z=z||q.type==="svg",O==null?ie(q,X,D,N,j,z,se,te):oe(O,q,N,j,z,se,te)},ie=(O,q,X,D,N,j,z,se)=>{let te,ne;const{type:Ee,props:Q,shapeFlag:ue,transition:le,dirs:ce}=O;if(te=O.el=u(O.type,j,Q&&Q.is,Q),ue&8?M(te,O.children):ue&16&&V(O.children,te,null,D,N,j&&Ee!=="foreignObject",z,se),ce&&Zi(O,null,D,"created"),J(te,O,O.scopeId,z,D),Q){for(const de in Q)de!=="value"&&!Af(de)&&n(te,de,null,Q[de],j,O.children,D,N,E);"value"in Q&&n(te,"value",null,Q.value),(ne=Q.onVnodeBeforeMount)&&Dr(ne,D,O)}Object.defineProperty(te,"__vnode",{value:O,enumerable:!1}),Object.defineProperty(te,"__vueParentComponent",{value:D,enumerable:!1}),ce&&Zi(O,null,D,"beforeMount");const pe=(!N||N&&!N.pendingBranch)&&le&&!le.persisted;pe&&le.beforeEnter(te),i(te,q,X),((ne=Q&&Q.onVnodeMounted)||pe||ce)&&gr(()=>{ne&&Dr(ne,D,O),pe&&le.enter(te),ce&&Zi(O,null,D,"mounted")},N)},J=(O,q,X,D,N)=>{if(X&&C(O,X),D)for(let j=0;j<D.length;j++)C(O,D[j]);if(N){let j=N.subTree;if(j.patchFlag>0&&j.patchFlag&2048&&(j=_v(j.children)||j),q===j){const z=N.vnode;J(O,z,z.scopeId,z.slotScopeIds,N.parent)}}},V=(O,q,X,D,N,j,z,se,te=0)=>{for(let ne=te;ne<O.length;ne++){const Ee=O[ne]=se?no(O[ne]):Ur(O[ne]);k(null,Ee,q,X,D,N,j,z,se)}},oe=(O,q,X,D,N,j,z)=>{const se=q.el=O.el;let{patchFlag:te,dynamicChildren:ne,dirs:Ee}=q;te|=O.patchFlag&16;const Q=O.props||$t,ue=q.props||$t;let le;X&&Fo(X,!1),(le=ue.onVnodeBeforeUpdate)&&Dr(le,X,q,O),Ee&&Zi(q,O,X,"beforeUpdate"),X&&Fo(X,!0),go&&(te=0,z=!1,ne=null);const ce=N&&q.type!=="foreignObject";if(ne?(_(O.dynamicChildren,ne,se,X,D,ce,j),kl(O,q)):z||g(O,q,se,null,X,D,ce,j,!1),te>0){if(te&16)o(se,q,Q,ue,X,D,N);else if(te&2&&Q.class!==ue.class&&n(se,"class",null,ue.class,N),te&4&&n(se,"style",Q.style,ue.style,N),te&8){const pe=q.dynamicProps;for(let de=0;de<pe.length;de++){const ae=pe[de],fe=Q[ae],Te=ue[ae];(Te!==fe||ae==="value")&&n(se,ae,fe,Te,N,O.children,X,D,E)}}te&1&&O.children!==q.children&&M(se,q.children)}else!z&&ne==null&&o(se,q,Q,ue,X,D,N);((le=ue.onVnodeUpdated)||Ee)&&gr(()=>{le&&Dr(le,X,q,O),Ee&&Zi(q,O,X,"updated")},D)},_=(O,q,X,D,N,j,z)=>{for(let se=0;se<q.length;se++){const te=O[se],ne=q[se],Ee=te.el&&(te.type===Lt||!Li(te,ne)||te.shapeFlag&70)?S(te.el):X;k(te,ne,Ee,null,D,N,j,z,!0)}},o=(O,q,X,D,N,j,z)=>{if(X!==D){if(X!==$t)for(const se in X)!Af(se)&&!(se in D)&&n(O,se,X[se],null,z,q.children,N,j,E);for(const se in D){if(Af(se))continue;const te=D[se],ne=X[se];te!==ne&&se!=="value"&&n(O,se,ne,te,z,q.children,N,j,E)}"value"in D&&n(O,"value",X.value,D.value)}},f=(O,q,X,D,N,j,z,se,te)=>{const ne=q.el=O?O.el:c(""),Ee=q.anchor=O?O.anchor:c("");let{patchFlag:Q,dynamicChildren:ue,slotScopeIds:le}=q;(go||Q&2048)&&(Q=0,te=!1,ue=null),le&&(se=se?se.concat(le):le),O==null?(i(ne,X,D),i(Ee,X,D),V(q.children,X,Ee,N,j,z,se,te)):Q>0&&Q&64&&ue&&O.dynamicChildren?(_(O.dynamicChildren,ue,X,N,j,z,se),kl(O,q)):g(O,q,X,Ee,N,j,z,se,te)},l=(O,q,X,D,N,j,z,se,te)=>{q.slotScopeIds=se,O==null?q.shapeFlag&512?N.ctx.activate(q,X,D,z,te):h(q,X,D,N,j,z,te):p(O,q,te)},h=(O,q,X,D,N,j,z)=>{const se=O.component=a_(O,D,N);if(se.type.__hmrId&&c8(se),Tf(O),bn(se,"mount"),Ls(O)&&(se.ctx.renderer=Z),bn(se,"init"),f_(se),wn(se,"init"),se.asyncDep){if(N&&N.registerDep(se,w),!O.el){const te=se.subTree=Zt(rr);I(null,te,q,X)}return}w(se,O,q,X,N,j,z),Of(),wn(se,"mount")},p=(O,q,X)=>{const D=q.component=O.component;if(T8(O,q,X))if(D.asyncDep&&!D.asyncResolved){Tf(q),x(D,q,X),Of();return}else D.next=q,l8(D.update),D.update();else q.el=O.el,D.vnode=q},w=(O,q,X,D,N,j,z)=>{const se=()=>{if(O.isMounted){let{next:Ee,bu:Q,u:ue,parent:le,vnode:ce}=O,pe=Ee,de;Tf(Ee||O.vnode),Fo(O,!1),Ee?(Ee.el=ce.el,x(O,Ee,z)):Ee=ce,Q&&so(Q),(de=Ee.props&&Ee.props.onVnodeBeforeUpdate)&&Dr(de,le,Ee,ce),Fo(O,!0),bn(O,"render");const ae=il(O);wn(O,"render");const fe=O.subTree;O.subTree=ae,bn(O,"patch"),k(fe,ae,S(fe.el),U(fe),O,N,j),wn(O,"patch"),Ee.el=ae.el,pe===null&&Mv(O,ae.el),ue&&gr(ue,N),(de=Ee.props&&Ee.props.onVnodeUpdated)&&gr(()=>Dr(de,le,Ee,ce),N),y2(O),Of()}else{let Ee;const{el:Q,props:ue}=q,{bm:le,m:ce,parent:pe}=O,de=ra(q);if(Fo(O,!1),le&&so(le),!de&&(Ee=ue&&ue.onVnodeBeforeMount)&&Dr(Ee,pe,q),Fo(O,!0),Q&&y){const ae=()=>{bn(O,"render"),O.subTree=il(O),wn(O,"render"),bn(O,"hydrate"),y(Q,O.subTree,O,N,null),wn(O,"hydrate")};de?q.type.__asyncLoader().then(()=>!O.isUnmounted&&ae()):ae()}else{bn(O,"render");const ae=O.subTree=il(O);wn(O,"render"),bn(O,"patch"),k(null,ae,X,D,O,N,j),wn(O,"patch"),q.el=ae.el}if(ce&&gr(ce,N),!de&&(Ee=ue&&ue.onVnodeMounted)){const ae=q;gr(()=>Dr(Ee,pe,ae),N)}(q.shapeFlag&256||pe&&ra(pe.vnode)&&pe.vnode.shapeFlag&256)&&O.a&&gr(O.a,N),O.isMounted=!0,D0(O),q=X=D=null}},te=O.effect=new uu(se,()=>lu(ne),O.scope),ne=O.update=()=>te.run();ne.id=O.uid,Fo(O,!0),te.onTrack=O.rtc?Ee=>so(O.rtc,Ee):void 0,te.onTrigger=O.rtg?Ee=>so(O.rtg,Ee):void 0,ne.ownerInstance=O,ne()},x=(O,q,X)=>{q.component=O;const D=O.vnode.props;O.vnode=q,O.next=null,x5(O,q.props,D,X),C5(O,q.children,X),ma(),vm(),ya()},g=(O,q,X,D,N,j,z,se,te=!1)=>{const ne=O&&O.children,Ee=O?O.shapeFlag:0,Q=q.children,{patchFlag:ue,shapeFlag:le}=q;if(ue>0){if(ue&128){v(ne,Q,X,D,N,j,z,se,te);return}else if(ue&256){s(ne,Q,X,D,N,j,z,se,te);return}}le&8?(Ee&16&&E(ne,N,j),Q!==ne&&M(X,Q)):Ee&16?le&16?v(ne,Q,X,D,N,j,z,se,te):E(ne,N,j,!0):(Ee&8&&M(X,""),le&16&&V(Q,X,D,N,j,z,se,te))},s=(O,q,X,D,N,j,z,se,te)=>{O=O||Ga,q=q||Ga;const ne=O.length,Ee=q.length,Q=Math.min(ne,Ee);let ue;for(ue=0;ue<Q;ue++){const le=q[ue]=te?no(q[ue]):Ur(q[ue]);k(O[ue],le,X,null,N,j,z,se,te)}ne>Ee?E(O,N,j,!0,!1,Q):V(q,X,D,N,j,z,se,te,Q)},v=(O,q,X,D,N,j,z,se,te)=>{let ne=0;const Ee=q.length;let Q=O.length-1,ue=Ee-1;for(;ne<=Q&&ne<=ue;){const le=O[ne],ce=q[ne]=te?no(q[ne]):Ur(q[ne]);if(Li(le,ce))k(le,ce,X,null,N,j,z,se,te);else break;ne++}for(;ne<=Q&&ne<=ue;){const le=O[Q],ce=q[ue]=te?no(q[ue]):Ur(q[ue]);if(Li(le,ce))k(le,ce,X,null,N,j,z,se,te);else break;Q--,ue--}if(ne>Q){if(ne<=ue){const le=ue+1,ce=le<Ee?q[le].el:D;for(;ne<=ue;)k(null,q[ne]=te?no(q[ne]):Ur(q[ne]),X,ce,N,j,z,se,te),ne++}}else if(ne>ue)for(;ne<=Q;)$(O[ne],N,j,!0),ne++;else{const le=ne,ce=ne,pe=new Map;for(ne=ce;ne<=ue;ne++){const be=q[ne]=te?no(q[ne]):Ur(q[ne]);be.key!=null&&(pe.has(be.key)&&Ue("Duplicate keys found during update:",JSON.stringify(be.key),"Make sure keys are unique."),pe.set(be.key,ne))}let de,ae=0;const fe=ue-ce+1;let Te=!1,ve=0;const Me=new Array(fe);for(ne=0;ne<fe;ne++)Me[ne]=0;for(ne=le;ne<=Q;ne++){const be=O[ne];if(ae>=fe){$(be,N,j,!0);continue}let Se;if(be.key!=null)Se=pe.get(be.key);else for(de=ce;de<=ue;de++)if(Me[de-ce]===0&&Li(be,q[de])){Se=de;break}Se===void 0?$(be,N,j,!0):(Me[Se-ce]=ne+1,Se>=ve?ve=Se:Te=!0,k(be,q[Se],X,null,N,j,z,se,te),ae++)}const Ke=Te?N5(Me):Ga;for(de=Ke.length-1,ne=fe-1;ne>=0;ne--){const be=ce+ne,Se=q[be],qe=be+1<Ee?q[be+1].el:D;Me[ne]===0?k(null,Se,X,qe,N,j,z,se,te):Te&&(de<0||ne!==Ke[de]?T(Se,X,qe,2):de--)}}},T=(O,q,X,D,N=null)=>{const{el:j,type:z,transition:se,children:te,shapeFlag:ne}=O;if(ne&6){T(O.component.subTree,q,X,D);return}if(ne&128){O.suspense.move(q,X,D);return}if(ne&64){z.move(O,q,X,Z);return}if(z===Lt){i(j,q,X);for(let Q=0;Q<te.length;Q++)T(te[Q],q,X,D);i(O.anchor,q,X);return}if(z===mo){F(O,q,X);return}if(D!==2&&ne&1&&se)if(D===0)se.beforeEnter(j),i(j,q,X),gr(()=>se.enter(j),N);else{const{leave:Q,delayLeave:ue,afterLeave:le}=se,ce=()=>i(j,q,X),pe=()=>{Q(j,()=>{ce(),le&&le()})};ue?ue(j,ce,pe):pe()}else i(j,q,X)},$=(O,q,X,D=!1,N=!1)=>{const{type:j,props:z,ref:se,children:te,dynamicChildren:ne,shapeFlag:Ee,patchFlag:Q,dirs:ue}=O;if(se!=null&&Ll(se,null,X,O,!0),Ee&256){q.ctx.deactivate(O);return}const le=Ee&1&&ue,ce=!ra(O);let pe;if(ce&&(pe=z&&z.onVnodeBeforeUnmount)&&Dr(pe,q,O),Ee&6)A(O.component,X,D);else{if(Ee&128){O.suspense.unmount(X,D);return}le&&Zi(O,null,q,"beforeUnmount"),Ee&64?O.type.remove(O,q,X,N,Z,D):ne&&(j!==Lt||Q>0&&Q&64)?E(ne,q,X,!1,!0):(j===Lt&&Q&384||!N&&Ee&16)&&E(te,q,X),D&&G(O)}(ce&&(pe=z&&z.onVnodeUnmounted)||le)&&gr(()=>{pe&&Dr(pe,q,O),le&&Zi(O,null,q,"unmounted")},X)},G=O=>{const{type:q,el:X,anchor:D,transition:N}=O;if(q===Lt){O.patchFlag>0&&O.patchFlag&2048&&N&&!N.persisted?O.children.forEach(z=>{z.type===rr?a(z.el):G(z)}):ee(X,D);return}if(q===mo){W(O);return}const j=()=>{a(X),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(O.shapeFlag&1&&N&&!N.persisted){const{leave:z,delayLeave:se}=N,te=()=>z(X,j);se?se(O.el,j,te):te()}else j()},ee=(O,q)=>{let X;for(;O!==q;)X=R(O),a(O),O=X;a(q)},A=(O,q,X)=>{O.type.__hmrId&&d8(O);const{bum:D,scope:N,update:j,subTree:z,um:se}=O;D&&so(D),N.stop(),j&&(j.active=!1,$(z,O,q,X)),se&&gr(se,q),gr(()=>{O.isUnmounted=!0},q),q&&q.pendingBranch&&!q.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===q.pendingId&&(q.deps--,q.deps===0&&q.resolve()),b8(O)},E=(O,q,X,D=!1,N=!1,j=0)=>{for(let z=j;z<O.length;z++)$(O[z],q,X,D,N)},U=O=>O.shapeFlag&6?U(O.component.subTree):O.shapeFlag&128?O.suspense.next():R(O.anchor||O.el),K=(O,q,X)=>{O==null?q._vnode&&$(q._vnode,null,null,!0):k(q._vnode||null,O,q,null,null,null,X),vm(),Il(),q._vnode=O},Z={p:k,um:$,m:T,r:G,mt:h,mc:V,pc:g,pbc:_,n:U,o:e};let b,y;return t&&([b,y]=t(Z)),{render:K,hydrate:b,createApp:w5(K,b)}}function Fo({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function kl(e,t,r=!1){const i=e.children,a=t.children;if(ze(i)&&ze(a))for(let n=0;n<i.length;n++){const u=i[n];let c=a[n];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=a[n]=no(a[n]),c.el=u.el),r||kl(u,c)),c.type===xo&&(c.el=u.el),c.type===rr&&!c.el&&(c.el=u.el)}}function N5(e){const t=e.slice(),r=[0];let i,a,n,u,c;const d=e.length;for(i=0;i<d;i++){const m=e[i];if(m!==0){if(a=r[r.length-1],e[a]<m){t[i]=a,r.push(i);continue}for(n=0,u=r.length-1;n<u;)c=n+u>>1,e[r[c]]<m?n=c+1:u=c;m<e[r[n]]&&(n>0&&(t[i]=r[n-1]),r[n]=i)}}for(n=r.length,u=r[n-1];n-- >0;)r[n]=u,u=t[u];return r}const k5=e=>e.__isTeleport,Xa=e=>e&&(e.disabled||e.disabled===""),Pm=e=>typeof SVGElement<"u"&&e instanceof SVGElement,V0=(e,t)=>{const r=e&&e.to;if(Vt(r))if(t){const i=t(r);return i||Ue(`Failed to locate Teleport target with selector "${r}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),i}else return Ue("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return!r&&!Xa(e)&&Ue(`Invalid Teleport target: ${r}`),r},$5={__isTeleport:!0,process(e,t,r,i,a,n,u,c,d,m){const{mc:M,pc:S,pbc:R,o:{insert:C,querySelector:P,createText:k,createComment:L}}=m,I=Xa(t.props);let{shapeFlag:B,children:H,dynamicChildren:F}=t;if(go&&(d=!1,F=null),e==null){const W=t.el=L("teleport start"),Y=t.anchor=L("teleport end");C(W,r,i),C(Y,r,i);const ie=t.target=V0(t.props,P),J=t.targetAnchor=k("");ie?(C(J,ie),u=u||Pm(ie)):I||Ue("Invalid Teleport target on mount:",ie,`(${typeof ie})`);const V=(oe,_)=>{B&16&&M(H,oe,_,a,n,u,c,d)};I?V(r,Y):ie&&V(ie,J)}else{t.el=e.el;const W=t.anchor=e.anchor,Y=t.target=e.target,ie=t.targetAnchor=e.targetAnchor,J=Xa(e.props),V=J?r:Y,oe=J?W:ie;if(u=u||Pm(Y),F?(R(e.dynamicChildren,F,V,a,n,u,c),kl(e,t,!0)):d||S(e,t,V,oe,a,n,u,c,!1),I)J||Ku(t,r,W,m,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const _=t.target=V0(t.props,P);_?Ku(t,_,null,m,0):Ue("Invalid Teleport target on update:",Y,`(${typeof Y})`)}else J&&Ku(t,Y,ie,m,1)}Q2(t)},remove(e,t,r,i,{um:a,o:{remove:n}},u){const{shapeFlag:c,children:d,anchor:m,targetAnchor:M,target:S,props:R}=e;if(S&&n(M),(u||!Xa(R))&&(n(m),c&16))for(let C=0;C<d.length;C++){const P=d[C];a(P,t,r,!0,!!P.dynamicChildren)}},move:Ku,hydrate:D5};function Ku(e,t,r,{o:{insert:i},m:a},n=2){n===0&&i(e.targetAnchor,t,r);const{el:u,anchor:c,shapeFlag:d,children:m,props:M}=e,S=n===2;if(S&&i(u,t,r),(!S||Xa(M))&&d&16)for(let R=0;R<m.length;R++)a(m[R],t,r,2);S&&i(c,t,r)}function D5(e,t,r,i,a,n,{o:{nextSibling:u,parentNode:c,querySelector:d}},m){const M=t.target=V0(t.props,d);if(M){const S=M._lpa||M.firstChild;if(t.shapeFlag&16)if(Xa(t.props))t.anchor=m(u(e),t,c(e),r,i,a,n),t.targetAnchor=S;else{t.anchor=u(e);let R=S;for(;R;)if(R=u(R),R&&R.nodeType===8&&R.data==="teleport anchor"){t.targetAnchor=R,M._lpa=t.targetAnchor&&u(t.targetAnchor);break}m(S,t,M,r,i,a,n)}Q2(t)}return t.anchor&&u(t.anchor)}const F5=$5;function Q2(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const Lt=Symbol.for("v-fgt"),xo=Symbol.for("v-txt"),rr=Symbol.for("v-cmt"),mo=Symbol.for("v-stc"),Bf=[];let Wr=null;function tt(e=!1){Bf.push(Wr=e?null:[])}function e_(){Bf.pop(),Wr=Bf[Bf.length-1]||null}let ua=1;function z0(e){ua+=e}function t_(e){return e.dynamicChildren=ua>0?Wr||Ga:null,e_(),ua>0&&Wr&&Wr.push(e),e}function ft(e,t,r,i,a,n){return t_(Je(e,t,r,i,a,n,!0))}function Pv(e,t,r,i,a){return t_(Zt(e,t,r,i,a,!0))}function Nn(e){return e?e.__v_isVNode===!0:!1}function Li(e,t){return t.shapeFlag&6&&ja.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}let G0;function j5(e){G0=e}const U5=(...e)=>H5(...G0?G0(e,tr):e),_h="__vInternal",r_=({key:e})=>e??null,ol=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Vt(e)||Xt(e)||Qe(e)?{i:tr,r:e,k:t,f:!!r}:e:null);function Je(e,t=null,r=null,i=0,a=null,n=e===Lt?0:1,u=!1,c=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&r_(t),ref:t&&ol(t),scopeId:vh,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:i,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:tr};return c?(Bv(d,r),n&128&&e.normalize(d)):r&&(d.shapeFlag|=Vt(r)?8:16),d.key!==d.key&&Ue("VNode created with invalid key (NaN). VNode type:",d.type),ua>0&&!u&&Wr&&(d.patchFlag>0||n&6)&&d.patchFlag!==32&&Wr.push(d),d}const Zt=U5;function H5(e,t=null,r=null,i=0,a=null,n=!1){if((!e||e===F2)&&(e||Ue(`Invalid vnode type when creating vnode: ${e}.`),e=rr),Nn(e)){const c=di(e,t,!0);return r&&Bv(c,r),ua>0&&!n&&Wr&&(c.shapeFlag&6?Wr[Wr.indexOf(e)]=c:Wr.push(c)),c.patchFlag|=-2,c}if(h_(e)&&(e=e.__vccOpts),t){t=i_(t);let{class:c,style:d}=t;c&&!Vt(c)&&(t.class=vr(c)),Rt(d)&&(qf(d)&&!ze(d)&&(d=Pt({},d)),t.style=Pn(d))}const u=Vt(e)?1:S2(e)?128:k5(e)?64:Rt(e)?4:Qe(e)?2:0;return u&4&&qf(e)&&(e=lt(e),Ue("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
+Component that was made reactive: `,e)),Je(e,t,r,i,a,u,n,!0)}function i_(e){return e?qf(e)||_h in e?Pt({},e):e:null}function di(e,t,r=!1){const{props:i,ref:a,patchFlag:n,children:u}=e,c=t?o_(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&r_(c),ref:t&&t.ref?r&&a?ze(a)?a.concat(ol(t)):[a,ol(t)]:ol(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:n===-1&&ze(u)?u.map(n_):u,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Lt?n===-1?16:n|16:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&di(e.ssContent),ssFallback:e.ssFallback&&di(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function n_(e){const t=di(e);return ze(e.children)&&(t.children=e.children.map(n_)),t}function Cv(e=" ",t=0){return Zt(xo,null,e,t)}function q5(e,t){const r=Zt(mo,null,e);return r.staticCount=t,r}function fi(e="",t=!1){return t?(tt(),Pv(rr,null,e)):Zt(rr,null,e)}function Ur(e){return e==null||typeof e=="boolean"?Zt(rr):ze(e)?Zt(Lt,null,e.slice()):typeof e=="object"?no(e):Zt(xo,null,String(e))}function no(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:di(e)}function Bv(e,t){let r=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(ze(t))r=16;else if(typeof t=="object")if(i&65){const a=t.default;a&&(a._c&&(a._d=!1),Bv(e,a()),a._c&&(a._d=!0));return}else{r=32;const a=t._;!a&&!(_h in t)?t._ctx=tr:a===3&&tr&&(tr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Qe(t)?(t={default:t,_ctx:tr},r=32):(t=String(t),i&64?(r=16,t=[Cv(t)]):r=8);e.children=t,e.shapeFlag|=r}function o_(...e){const t={};for(let r=0;r<e.length;r++){const i=e[r];for(const a in i)if(a==="class")t.class!==i.class&&(t.class=vr([t.class,i.class]));else if(a==="style")t.style=Pn([t.style,i.style]);else if(Ps(a)){const n=t[a],u=i[a];u&&n!==u&&!(ze(n)&&n.includes(u))&&(t[a]=n?[].concat(n,u):u)}else a!==""&&(t[a]=i[a])}return t}function Dr(e,t,r,i=null){Zr(e,t,7,[r,i])}const W5=q2();let K5=0;function a_(e,t,r){const i=e.type,a=(t?t.appContext:e.appContext)||W5,n={uid:K5++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new av(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:K2(i,a),emitsOptions:w2(i,a),emit:null,emitted:null,propsDefaults:$t,inheritAttrs:i.inheritAttrs,ctx:$t,data:$t,props:$t,attrs:$t,slots:$t,refs:$t,setupState:$t,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return n.ctx=Z8(n),n.root=t?t.root:n,n.emit=S8.bind(null,n),e.ce&&e.ce(n),n}let er=null;const Fi=()=>er||tr;let Lv,Ba,Cm="__VUE_INSTANCE_SETTERS__";(Ba=Al()[Cm])||(Ba=Al()[Cm]=[]),Ba.push(e=>er=e),Lv=e=>{Ba.length>1?Ba.forEach(t=>t(e)):Ba[0](e)};const Eo=e=>{Lv(e),e.scope.on()},yo=()=>{er&&er.scope.off(),Lv(null)},V5=Kn("slot,component");function Y0(e,t){const r=t.isNativeTag||Hw;(V5(e)||r(e))&&Ue("Do not use built-in or reserved HTML elements as component id: "+e)}function s_(e){return e.vnode.shapeFlag&4}let fs=!1;function f_(e,t=!1){fs=t;const{props:r,children:i}=e.vnode,a=s_(e);M5(e,r,a,t),P5(e,i);const n=a?z5(e,t):void 0;return fs=!1,n}function z5(e,t){var r;const i=e.type;{if(i.name&&Y0(i.name,e.appContext.config),i.components){const n=Object.keys(i.components);for(let u=0;u<n.length;u++)Y0(n[u],e.appContext.config)}if(i.directives){const n=Object.keys(i.directives);for(let u=0;u<n.length;u++)T2(n[u])}i.compilerOptions&&Nv()&&Ue('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=lv(new Proxy(e.ctx,Pf)),X8(e);const{setup:a}=i;if(a){const n=e.setupContext=a.length>1?l_(e):null;Eo(e),ma();const u=en(a,e,0,[Wa(e.props),n]);if(ya(),yo(),oh(u)){if(u.then(yo,yo),t)return u.then(c=>{Z0(e,c,t)}).catch(c=>{ba(c,e,0)});if(e.asyncDep=u,!e.suspense){const c=(r=i.name)!=null?r:"Anonymous";Ue(`Component <${c}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else Z0(e,u,t)}else u_(e,t)}function Z0(e,t,r){Qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Rt(t)?(Nn(t)&&Ue("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=dv(t),J8(e)):t!==void 0&&Ue(`setup() should return an object. Received: ${t===null?"null":typeof t}`),u_(e,r)}let Lf,X0;function G5(e){Lf=e,X0=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Y8))}}const Nv=()=>!Lf;function u_(e,t,r){const i=e.type;if(!e.render){if(!t&&Lf&&!i.render){const a=i.template||Ov(e).template;if(a){bn(e,"compile");const{isCustomElement:n,compilerOptions:u}=e.appContext.config,{delimiters:c,compilerOptions:d}=i,m=Pt(Pt({isCustomElement:n,delimiters:c},u),d);i.render=Lf(a,m),wn(e,"compile")}}e.render=i.render||qr,X0&&X0(e)}Eo(e),ma(),p5(e),ya(),yo(),!i.render&&e.render===qr&&!t&&(!Lf&&i.template?Ue('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):Ue("Component is missing template or render function."))}function Y5(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return Pl(),Tr(e,"get","$attrs"),t[r]},set(){return Ue("setupContext.attrs is readonly."),!1},deleteProperty(){return Ue("setupContext.attrs is readonly."),!1}}))}function Z5(e){return e.slotsProxy||(e.slotsProxy=new Proxy(e.slots,{get(t,r){return Tr(e,"get","$slots"),t[r]}}))}function l_(e){return Object.freeze({get attrs(){return Y5(e)},get slots(){return Z5(e)},get emit(){return(r,...i)=>e.emit(r,...i)},expose:r=>{if(e.exposed&&Ue("expose() should be called only once per setup()."),r!=null){let i=typeof r;i==="object"&&(ze(r)?i="array":Xt(r)&&(i="ref")),i!=="object"&&Ue(`expose() should be passed a plain object, received ${i}.`)}e.exposed=r||{}}})}function Mh(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(dv(lv(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in ia)return ia[r](e)},has(t,r){return r in t||r in ia}}))}const X5=/(?:^|[-_])(\w)/g,J5=e=>e.replace(X5,t=>t.toUpperCase()).replace(/[-_]/g,"");function Xf(e,t=!0){return Qe(e)?e.displayName||e.name:e.name||t&&e.__name}function Sh(e,t,r=!1){let i=Xf(t);if(!i&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(i=a[1])}if(!i&&e&&e.parent){const a=n=>{for(const u in n)if(n[u]===t)return u};i=a(e.components||e.parent.type.components)||a(e.appContext.components)}return i?J5(i):r?"App":"Anonymous"}function h_(e){return Qe(e)&&"__vccOpts"in e}const Qt=(e,t)=>r8(e,t,fs);function xh(e,t,r){const i=arguments.length;return i===2?Rt(t)&&!ze(t)?Nn(t)?Zt(e,null,[t]):Zt(e,t):Zt(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&Nn(r)&&(r=[r]),Zt(e,t,r))}const c_=Symbol.for("v-scx"),d_=()=>{{const e=tn(c_);return e||Ue("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Nc(e){return!!(e&&e.__v_isShallow)}function p_(){if(typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},r={style:"color:#b62e24"},i={style:"color:#9d288c"},a={header(S){return Rt(S)?S.__isVue?["div",e,"VueInstance"]:Xt(S)?["div",{},["span",e,M(S)],"<",c(S.value),">"]:po(S)?["div",{},["span",e,Nc(S)?"ShallowReactive":"Reactive"],"<",c(S),`>${Ln(S)?" (readonly)":""}`]:Ln(S)?["div",{},["span",e,Nc(S)?"ShallowReadonly":"Readonly"],"<",c(S),">"]:null:null},hasBody(S){return S&&S.__isVue},body(S){if(S&&S.__isVue)return["div",{},...n(S.$)]}};function n(S){const R=[];S.type.props&&S.props&&R.push(u("props",lt(S.props))),S.setupState!==$t&&R.push(u("setup",S.setupState)),S.data!==$t&&R.push(u("data",lt(S.data)));const C=d(S,"computed");C&&R.push(u("computed",C));const P=d(S,"inject");return P&&R.push(u("injected",P)),R.push(["div",{},["span",{style:i.style+";opacity:0.66"},"$ (internal): "],["object",{object:S}]]),R}function u(S,R){return R=Pt({},R),Object.keys(R).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},S],["div",{style:"padding-left:1.25em"},...Object.keys(R).map(C=>["div",{},["span",i,C+": "],c(R[C],!1)])]]:["span",{}]}function c(S,R=!0){return typeof S=="number"?["span",t,S]:typeof S=="string"?["span",r,JSON.stringify(S)]:typeof S=="boolean"?["span",i,S]:Rt(S)?["object",{object:R?lt(S):S}]:["span",r,String(S)]}function d(S,R){const C=S.type;if(Qe(C))return;const P={};for(const k in S.ctx)m(C,k,R)&&(P[k]=S.ctx[k]);return P}function m(S,R,C){const P=S[C];if(ze(P)&&P.includes(R)||Rt(P)&&R in P||S.extends&&m(S.extends,R,C)||S.mixins&&S.mixins.some(k=>m(k,R,C)))return!0}function M(S){return Nc(S)?"ShallowRef":S.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(a):window.devtoolsFormatters=[a]}function Q5(e,t,r,i){const a=r[i];if(a&&v_(a,e))return a;const n=t();return n.memo=e.slice(),r[i]=n}function v_(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let i=0;i<r.length;i++)if(as(r[i],t[i]))return!1;return ua>0&&Wr&&Wr.push(e),!0}const J0="3.3.4",eR={createComponentInstance:a_,setupComponent:f_,renderComponentRoot:il,setCurrentRenderingInstance:zf,isVNode:Nn,normalizeVNode:Ur},tR=eR,rR=null,iR=null,nR="http://www.w3.org/2000/svg",Ko=typeof document<"u"?document:null,Bm=Ko&&Ko.createElement("template"),oR={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{const a=t?Ko.createElementNS(nR,e):Ko.createElement(e,r?{is:r}:void 0);return e==="select"&&i&&i.multiple!=null&&a.setAttribute("multiple",i.multiple),a},createText:e=>Ko.createTextNode(e),createComment:e=>Ko.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ko.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,i,a,n){const u=r?r.previousSibling:t.lastChild;if(a&&(a===n||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),r),!(a===n||!(a=a.nextSibling)););else{Bm.innerHTML=i?`<svg>${e}</svg>`:e;const c=Bm.content;if(i){const d=c.firstChild;for(;d.firstChild;)c.appendChild(d.firstChild);c.removeChild(d)}t.insertBefore(c,r)}return[u?u.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function aR(e,t,r){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function sR(e,t,r){const i=e.style,a=Vt(r);if(r&&!a){if(t&&!Vt(t))for(const n in t)r[n]==null&&Q0(i,n,"");for(const n in r)Q0(i,n,r[n])}else{const n=i.display;a?t!==r&&(i.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=n)}}const fR=/[^\\];\s*$/,Lm=/\s*!important$/;function Q0(e,t,r){if(ze(r))r.forEach(i=>Q0(e,t,i));else if(r==null&&(r=""),fR.test(r)&&Ue(`Unexpected semicolon at the end of '${t}' style value: '${r}'`),t.startsWith("--"))e.setProperty(t,r);else{const i=uR(e,t);Lm.test(r)?e.setProperty(Hr(i),r.replace(Lm,""),"important"):e[i]=r}}const Nm=["Webkit","Moz","ms"],kc={};function uR(e,t){const r=kc[t];if(r)return r;let i=Kr(t);if(i!=="filter"&&i in e)return kc[t]=i;i=_o(i);for(let a=0;a<Nm.length;a++){const n=Nm[a]+i;if(n in e)return kc[t]=n}return t}const km="http://www.w3.org/1999/xlink";function lR(e,t,r,i,a){if(i&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(km,t.slice(6,t.length)):e.setAttributeNS(km,t,r);else{const n=cE(t);r==null||n&&!Kw(r)?e.removeAttribute(t):e.setAttribute(t,n?"":r)}}function hR(e,t,r,i,a,n,u){if(t==="innerHTML"||t==="textContent"){i&&u(i,a,n),e[t]=r??"";return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){e._value=r;const m=c==="OPTION"?e.getAttribute("value"):e.value,M=r??"";m!==M&&(e.value=M),r==null&&e.removeAttribute(t);return}let d=!1;if(r===""||r==null){const m=typeof e[t];m==="boolean"?r=Kw(r):r==null&&m==="string"?(r="",d=!0):m==="number"&&(r=0,d=!0)}try{e[t]=r}catch(m){d||Ue(`Failed setting prop "${t}" on <${c.toLowerCase()}>: value ${r} is invalid.`,m)}d&&e.removeAttribute(t)}function Tn(e,t,r,i){e.addEventListener(t,r,i)}function cR(e,t,r,i){e.removeEventListener(t,r,i)}function dR(e,t,r,i,a=null){const n=e._vei||(e._vei={}),u=n[t];if(i&&u)u.value=i;else{const[c,d]=pR(t);if(i){const m=n[t]=mR(i,a);Tn(e,c,m,d)}else u&&(cR(e,c,u,d),n[t]=void 0)}}const $m=/(?:Once|Passive|Capture)$/;function pR(e){let t;if($m.test(e)){t={};let i;for(;i=e.match($m);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Hr(e.slice(2)),t]}let $c=0;const vR=Promise.resolve(),gR=()=>$c||(vR.then(()=>$c=0),$c=Date.now());function mR(e,t){const r=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=r.attached)return;Zr(yR(i,r.value),t,5,[i])};return r.value=e,r.attached=gR(),r}function yR(e,t){if(ze(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(i=>a=>!a._stopped&&i&&i(a))}else return t}const Dm=/^on[a-z]/,bR=(e,t,r,i,a=!1,n,u,c,d)=>{t==="class"?aR(e,i,a):t==="style"?sR(e,r,i):Ps(t)?Sl(t)||dR(e,t,r,i,u):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wR(e,t,i,a))?hR(e,t,i,n,u,c,d):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),lR(e,t,i,a))};function wR(e,t,r,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&Dm.test(t)&&Qe(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Dm.test(t)&&Vt(r)?!1:t in e}function g_(e,t){const r=Bs(e);class i extends Eh{constructor(n){super(r,n,t)}}return i.def=r,i}const _R=e=>g_(e,P_),MR=typeof HTMLElement<"u"?HTMLElement:class{};class Eh extends MR{constructor(t,r={},i){super(),this._def=t,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&i?i(this._createVNode(),this.shadowRoot):(this.shadowRoot&&Ue("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,uo(()=>{this._connected||(rp(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);new MutationObserver(i=>{for(const a of i)this._setAttr(a.attributeName)}).observe(this,{attributes:!0});const t=(i,a=!1)=>{const{props:n,styles:u}=i;let c;if(n&&!ze(n))for(const d in n){const m=n[d];(m===Number||m&&m.type===Number)&&(d in this._props&&(this._props[d]=Rl(this._props[d])),(c||(c=Object.create(null)))[Kr(d)]=!0)}this._numberProps=c,a&&this._resolveProps(i),this._applyStyles(u),this._update()},r=this._def.__asyncLoader;r?r().then(i=>t(i,!0)):t(this._def)}_resolveProps(t){const{props:r}=t,i=ze(r)?r:Object.keys(r||{});for(const a of Object.keys(this))a[0]!=="_"&&i.includes(a)&&this._setProp(a,this[a],!0,!1);for(const a of i.map(Kr))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(n){this._setProp(a,n)}})}_setAttr(t){let r=this.getAttribute(t);const i=Kr(t);this._numberProps&&this._numberProps[i]&&(r=Rl(r)),this._setProp(i,r,!1)}_getProp(t){return this._props[t]}_setProp(t,r,i=!0,a=!0){r!==this._props[t]&&(this._props[t]=r,a&&this._instance&&this._update(),i&&(r===!0?this.setAttribute(Hr(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Hr(t),r+""):r||this.removeAttribute(Hr(t))))}_update(){rp(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Zt(this._def,Pt({},this._props));return this._instance||(t.ce=r=>{this._instance=r,r.isCE=!0,r.ceReload=n=>{this._styles&&(this._styles.forEach(u=>this.shadowRoot.removeChild(u)),this._styles.length=0),this._applyStyles(n),this._instance=null,this._update()};const i=(n,u)=>{this.dispatchEvent(new CustomEvent(n,{detail:u}))};r.emit=(n,...u)=>{i(n,u),Hr(n)!==n&&i(Hr(n),u)};let a=this;for(;a=a&&(a.parentNode||a.host);)if(a instanceof Eh){r.parent=a._instance,r.provides=a._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(r=>{const i=document.createElement("style");i.textContent=r,this.shadowRoot.appendChild(i),(this._styles||(this._styles=[])).push(i)})}}function SR(e="$style"){{const t=Fi();if(!t)return Ue("useCssModule must be called inside setup()"),$t;const r=t.type.__cssModules;if(!r)return Ue("Current instance does not have CSS modules injected."),$t;const i=r[e];return i||(Ue(`Current instance does not have CSS module named "${e}".`),$t)}}function xR(e){const t=Fi();if(!t){Ue("useCssVars is called without current active component instance.");return}const r=t.ut=(a=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(n=>tp(n,a))},i=()=>{const a=e(t.proxy);ep(t.subTree,a),r(a)};R2(i),Ns(()=>{const a=new MutationObserver(i);a.observe(t.subTree.el.parentNode,{childList:!0}),wh(()=>a.disconnect())})}function ep(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{ep(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)tp(e.el,t);else if(e.type===Lt)e.children.forEach(r=>ep(r,t));else if(e.type===mo){let{el:r,anchor:i}=e;for(;r&&(tp(r,t),r!==i);)r=r.nextSibling}}function tp(e,t){if(e.nodeType===1){const r=e.style;for(const i in t)r.setProperty(`--${i}`,t[i])}}const Qn="transition",Zs="animation",kv=(e,{slots:t})=>xh(O2,y_(e),t);kv.displayName="Transition";const m_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ER=kv.props=Pt({},Ev,m_),jo=(e,t=[])=>{ze(e)?e.forEach(r=>r(...t)):e&&e(...t)},Fm=e=>e?ze(e)?e.some(t=>t.length>1):e.length>1:!1;function y_(e){const t={};for(const o in e)o in m_||(t[o]=e[o]);if(e.css===!1)return t;const{name:r="v",type:i,duration:a,enterFromClass:n=`${r}-enter-from`,enterActiveClass:u=`${r}-enter-active`,enterToClass:c=`${r}-enter-to`,appearFromClass:d=n,appearActiveClass:m=u,appearToClass:M=c,leaveFromClass:S=`${r}-leave-from`,leaveActiveClass:R=`${r}-leave-active`,leaveToClass:C=`${r}-leave-to`}=e,P=RR(a),k=P&&P[0],L=P&&P[1],{onBeforeEnter:I,onEnter:B,onEnterCancelled:H,onLeave:F,onLeaveCancelled:W,onBeforeAppear:Y=I,onAppear:ie=B,onAppearCancelled:J=H}=t,V=(o,f,l)=>{ro(o,f?M:c),ro(o,f?m:u),l&&l()},oe=(o,f)=>{o._isLeaving=!1,ro(o,S),ro(o,C),ro(o,R),f&&f()},_=o=>(f,l)=>{const h=o?ie:B,p=()=>V(f,o,l);jo(h,[f,p]),jm(()=>{ro(f,o?d:n),_n(f,o?M:c),Fm(h)||Um(f,i,k,p)})};return Pt(t,{onBeforeEnter(o){jo(I,[o]),_n(o,n),_n(o,u)},onBeforeAppear(o){jo(Y,[o]),_n(o,d),_n(o,m)},onEnter:_(!1),onAppear:_(!0),onLeave(o,f){o._isLeaving=!0;const l=()=>oe(o,f);_n(o,S),w_(),_n(o,R),jm(()=>{o._isLeaving&&(ro(o,S),_n(o,C),Fm(F)||Um(o,i,L,l))}),jo(F,[o,l])},onEnterCancelled(o){V(o,!1),jo(H,[o])},onAppearCancelled(o){V(o,!0),jo(J,[o])},onLeaveCancelled(o){oe(o),jo(W,[o])}})}function RR(e){if(e==null)return null;if(Rt(e))return[Dc(e.enter),Dc(e.leave)];{const t=Dc(e);return[t,t]}}function Dc(e){const t=Rl(e);return pv(t,"<transition> explicit duration"),t}function _n(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function ro(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function jm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let AR=0;function Um(e,t,r,i){const a=e._endId=++AR,n=()=>{a===e._endId&&i()};if(r)return setTimeout(n,r);const{type:u,timeout:c,propCount:d}=b_(e,t);if(!u)return i();const m=u+"end";let M=0;const S=()=>{e.removeEventListener(m,R),n()},R=C=>{C.target===e&&++M>=d&&S()};setTimeout(()=>{M<d&&S()},c+1),e.addEventListener(m,R)}function b_(e,t){const r=window.getComputedStyle(e),i=P=>(r[P]||"").split(", "),a=i(`${Qn}Delay`),n=i(`${Qn}Duration`),u=Hm(a,n),c=i(`${Zs}Delay`),d=i(`${Zs}Duration`),m=Hm(c,d);let M=null,S=0,R=0;t===Qn?u>0&&(M=Qn,S=u,R=n.length):t===Zs?m>0&&(M=Zs,S=m,R=d.length):(S=Math.max(u,m),M=S>0?u>m?Qn:Zs:null,R=M?M===Qn?n.length:d.length:0);const C=M===Qn&&/\b(transform|all)(,|$)/.test(i(`${Qn}Property`).toString());return{type:M,timeout:S,propCount:R,hasTransform:C}}function Hm(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,i)=>qm(r)+qm(e[i])))}function qm(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function w_(){return document.body.offsetHeight}const __=new WeakMap,M_=new WeakMap,S_={name:"TransitionGroup",props:Pt({},ER,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Fi(),i=xv();let a,n;return yh(()=>{if(!a.length)return;const u=e.moveClass||`${e.name||"v"}-move`;if(!BR(a[0].el,r.vnode.el,u))return;a.forEach(IR),a.forEach(PR);const c=a.filter(CR);w_(),c.forEach(d=>{const m=d.el,M=m.style;_n(m,u),M.transform=M.webkitTransform=M.transitionDuration="";const S=m._moveCb=R=>{R&&R.target!==m||(!R||/transform$/.test(R.propertyName))&&(m.removeEventListener("transitionend",S),m._moveCb=null,ro(m,u))};m.addEventListener("transitionend",S)})}),()=>{const u=lt(e),c=y_(u);let d=u.tag||Lt;a=n,n=t.default?gh(t.default()):[];for(let m=0;m<n.length;m++){const M=n[m];M.key!=null?fa(M,ss(M,c,i,r)):Ue("<TransitionGroup> children must be keyed.")}if(a)for(let m=0;m<a.length;m++){const M=a[m];fa(M,ss(M,c,i,r)),__.set(M,M.el.getBoundingClientRect())}return Zt(d,null,n)}}},TR=e=>delete e.mode;S_.props;const OR=S_;function IR(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function PR(e){M_.set(e,e.el.getBoundingClientRect())}function CR(e){const t=__.get(e),r=M_.get(e),i=t.left-r.left,a=t.top-r.top;if(i||a){const n=e.el.style;return n.transform=n.webkitTransform=`translate(${i}px,${a}px)`,n.transitionDuration="0s",e}}function BR(e,t,r){const i=e.cloneNode();e._vtc&&e._vtc.forEach(u=>{u.split(/\s+/).forEach(c=>c&&i.classList.remove(c))}),r.split(/\s+/).forEach(u=>u&&i.classList.add(u)),i.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(i);const{hasTransform:n}=b_(i);return a.removeChild(i),n}const Ro=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ze(t)?r=>so(t,r):t};function LR(e){e.target.composing=!0}function Wm(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const $l={created(e,{modifiers:{lazy:t,trim:r,number:i}},a){e._assign=Ro(a);const n=i||a.props&&a.props.type==="number";Tn(e,t?"change":"input",u=>{if(u.target.composing)return;let c=e.value;r&&(c=c.trim()),n&&(c=El(c)),e._assign(c)}),r&&Tn(e,"change",()=>{e.value=e.value.trim()}),t||(Tn(e,"compositionstart",LR),Tn(e,"compositionend",Wm),Tn(e,"change",Wm))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:i,number:a}},n){if(e._assign=Ro(n),e.composing||document.activeElement===e&&e.type!=="range"&&(r||i&&e.value.trim()===t||(a||e.type==="number")&&El(e.value)===t))return;const u=t??"";e.value!==u&&(e.value=u)}},Rh={deep:!0,created(e,t,r){e._assign=Ro(r),Tn(e,"change",()=>{const i=e._modelValue,a=us(e),n=e.checked,u=e._assign;if(ze(i)){const c=sh(i,a),d=c!==-1;if(n&&!d)u(i.concat(a));else if(!n&&d){const m=[...i];m.splice(c,1),u(m)}}else if(ga(i)){const c=new Set(i);n?c.add(a):c.delete(a),u(c)}else u(x_(e,n))})},mounted:Km,beforeUpdate(e,t,r){e._assign=Ro(r),Km(e,t,r)}};function Km(e,{value:t,oldValue:r},i){e._modelValue=t,ze(t)?e.checked=sh(t,i.props.value)>-1:ga(t)?e.checked=t.has(i.props.value):t!==r&&(e.checked=Mo(t,x_(e,!0)))}const $v={created(e,{value:t},r){e.checked=Mo(t,r.props.value),e._assign=Ro(r),Tn(e,"change",()=>{e._assign(us(e))})},beforeUpdate(e,{value:t,oldValue:r},i){e._assign=Ro(i),t!==r&&(e.checked=Mo(t,i.props.value))}},Dl={deep:!0,created(e,{value:t,modifiers:{number:r}},i){const a=ga(t);Tn(e,"change",()=>{const n=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>r?El(us(u)):us(u));e._assign(e.multiple?a?new Set(n):n:n[0])}),e._assign=Ro(i)},mounted(e,{value:t}){Vm(e,t)},beforeUpdate(e,t,r){e._assign=Ro(r)},updated(e,{value:t}){Vm(e,t)}};function Vm(e,t){const r=e.multiple;if(r&&!ze(t)&&!ga(t)){Ue(`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(t).slice(8,-1)}.`);return}for(let i=0,a=e.options.length;i<a;i++){const n=e.options[i],u=us(n);if(r)ze(t)?n.selected=sh(t,u)>-1:n.selected=t.has(u);else if(Mo(us(n),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}function us(e){return"_value"in e?e._value:e.value}function x_(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const E_={created(e,t,r){Vu(e,t,r,null,"created")},mounted(e,t,r){Vu(e,t,r,null,"mounted")},beforeUpdate(e,t,r,i){Vu(e,t,r,i,"beforeUpdate")},updated(e,t,r,i){Vu(e,t,r,i,"updated")}};function R_(e,t){switch(e){case"SELECT":return Dl;case"TEXTAREA":return $l;default:switch(t){case"checkbox":return Rh;case"radio":return $v;default:return $l}}}function Vu(e,t,r,i,a){const u=R_(e.tagName,r.props&&r.props.type)[a];u&&u(e,t,r,i)}function NR(){$l.getSSRProps=({value:e})=>({value:e}),$v.getSSRProps=({value:e},t)=>{if(t.props&&Mo(t.props.value,e))return{checked:!0}},Rh.getSSRProps=({value:e},t)=>{if(ze(e)){if(t.props&&sh(e,t.props.value)>-1)return{checked:!0}}else if(ga(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},E_.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=R_(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}const kR=["ctrl","shift","alt","meta"],$R={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>kR.some(r=>e[`${r}Key`]&&!t.includes(r))},Mn=(e,t)=>(r,...i)=>{for(let a=0;a<t.length;a++){const n=$R[t[a]];if(n&&n(r,t))return}return e(r,...i)},DR={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},FR=(e,t)=>r=>{if(!("key"in r))return;const i=Hr(r.key);if(t.some(a=>a===i||DR[a]===i))return e(r)},A_={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Xs(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:i}){!t!=!r&&(i?t?(i.beforeEnter(e),Xs(e,!0),i.enter(e)):i.leave(e,()=>{Xs(e,!1)}):Xs(e,t))},beforeUnmount(e,{value:t}){Xs(e,t)}};function Xs(e,t){e.style.display=t?e._vod:"none"}function jR(){A_.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const T_=Pt({patchProp:bR},oR);let Nf,zm=!1;function O_(){return Nf||(Nf=Z2(T_))}function I_(){return Nf=zm?Nf:X2(T_),zm=!0,Nf}const rp=(...e)=>{O_().render(...e)},P_=(...e)=>{I_().hydrate(...e)},UR=(...e)=>{const t=O_().createApp(...e);C_(t),B_(t);const{mount:r}=t;return t.mount=i=>{const a=L_(i);if(!a)return;const n=t._component;!Qe(n)&&!n.render&&!n.template&&(n.template=a.innerHTML),a.innerHTML="";const u=r(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),u},t},HR=(...e)=>{const t=I_().createApp(...e);C_(t),B_(t);const{mount:r}=t;return t.mount=i=>{const a=L_(i);if(a)return r(a,!0,a instanceof SVGElement)},t};function C_(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>uE(t)||lE(t),writable:!1})}function B_(e){if(Nv()){const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){Ue("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const r=e.config.compilerOptions,i='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return Ue(i),r},set(){Ue(i)}})}}function L_(e){if(Vt(e)){const t=document.querySelector(e);return t||Ue(`Failed to mount app: mount target selector "${e}" returned null.`),t}return window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&Ue('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}let Gm=!1;const qR=()=>{Gm||(Gm=!0,NR(),jR())};function WR(){p_()}WR();const KR=()=>{Ue('Runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".')},VR=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:O2,BaseTransitionPropsValidators:Ev,Comment:rr,EffectScope:av,Fragment:Lt,KeepAlive:U8,ReactiveEffect:uu,Static:mo,Suspense:I8,Teleport:F5,Text:xo,Transition:kv,TransitionGroup:OR,VueElement:Eh,assertNumber:pv,callWithAsyncErrorHandling:Zr,callWithErrorHandling:en,camelize:Kr,capitalize:_o,cloneVNode:di,compatUtils:iR,compile:KR,computed:Qt,createApp:UR,createBlock:Pv,createCommentVNode:fi,createElementBlock:ft,createElementVNode:Je,createHydrationRenderer:X2,createPropsRestProxy:h5,createRenderer:Z2,createSSRApp:HR,createSlots:z8,createStaticVNode:q5,createTextVNode:Cv,createVNode:Zt,customRef:ZE,defineAsyncComponent:F8,defineComponent:Bs,defineCustomElement:g_,defineEmits:e5,defineExpose:t5,defineModel:n5,defineOptions:r5,defineProps:Q8,defineSSRCustomElement:_R,defineSlots:i5,get devtools(){return Bi},effect:mE,effectScope:zw,getCurrentInstance:Fi,getCurrentScope:Yw,getTransitionRawChildren:gh,guardReactiveProps:i_,h:xh,handleError:ba,hasInjectionContext:_5,hydrate:P_,initCustomFormatter:p_,initDirectivesForSSR:qR,inject:tn,isMemoSame:v_,isProxy:qf,isReactive:po,isReadonly:Ln,isRef:Xt,isRuntimeOnly:Nv,isShallow:Hf,isVNode:Nn,markRaw:lv,mergeDefaults:u5,mergeModels:l5,mergeProps:o_,nextTick:uo,normalizeClass:vr,normalizeProps:aE,normalizeStyle:Pn,onActivated:P2,onBeforeMount:L2,onBeforeUnmount:bh,onBeforeUpdate:Rv,onDeactivated:C2,onErrorCaptured:D2,onMounted:Ns,onRenderTracked:$2,onRenderTriggered:k2,onScopeDispose:pE,onServerPrefetch:N2,onUnmounted:wh,onUpdated:yh,openBlock:tt,popScopeId:M2,provide:Cf,proxyRefs:dv,pushScopeId:_2,queuePostFlushCb:dh,reactive:No,readonly:uv,ref:mr,registerRuntimeCompiler:G5,render:rp,renderList:Ii,renderSlot:j0,resolveComponent:W8,resolveDirective:V8,resolveDynamicComponent:K8,resolveFilter:rR,resolveTransitionHooks:ss,setBlockTracking:z0,setDevtoolsHook:yv,setTransitionHooks:fa,shallowReactive:u2,shallowReadonly:Wa,shallowRef:l2,ssrContextKey:c_,ssrUtils:tR,stop:yE,toDisplayString:si,toHandlerKey:xn,toHandlers:G8,toRaw:lt,toRef:e8,toRefs:XE,toValue:zE,transformVNodeArgs:j5,triggerRef:VE,unref:vo,useAttrs:s5,useCssModule:SR,useCssVars:xR,useModel:f5,useSSRContext:d_,useSlots:a5,useTransitionState:xv,vModelCheckbox:Rh,vModelDynamic:E_,vModelRadio:$v,vModelSelect:Dl,vModelText:$l,vShow:A_,version:J0,warn:Ue,watch:lr,watchEffect:E2,watchPostEffect:R2,watchSyncEffect:k8,withAsyncContext:c5,withCtx:wv,withDefaults:o5,withDirectives:nl,withKeys:FR,withMemo:Q5,withModifiers:Mn,withScopeId:x8},Symbol.toStringTag,{value:"Module"})),zR=(e,t)=>{const r=e.__vccOpts||e;for(const[i,a]of t)r[i]=a;return r};var du={exports:{}},Dv={exports:{}},Ja=typeof Reflect=="object"?Reflect:null,Ym=Ja&&typeof Ja.apply=="function"?Ja.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},al;Ja&&typeof Ja.ownKeys=="function"?al=Ja.ownKeys:Object.getOwnPropertySymbols?al=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:al=function(t){return Object.getOwnPropertyNames(t)};function GR(e){console&&console.warn&&console.warn(e)}var N_=Number.isNaN||function(t){return t!==t};function Wt(){Wt.init.call(this)}Dv.exports=Wt;Dv.exports.once=JR;Wt.EventEmitter=Wt;Wt.prototype._events=void 0;Wt.prototype._eventsCount=0;Wt.prototype._maxListeners=void 0;var Zm=10;function Ah(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Wt,"defaultMaxListeners",{enumerable:!0,get:function(){return Zm},set:function(e){if(typeof e!="number"||e<0||N_(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Zm=e}});Wt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Wt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||N_(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function k_(e){return e._maxListeners===void 0?Wt.defaultMaxListeners:e._maxListeners}Wt.prototype.getMaxListeners=function(){return k_(this)};Wt.prototype.emit=function(t){for(var r=[],i=1;i<arguments.length;i++)r.push(arguments[i]);var a=t==="error",n=this._events;if(n!==void 0)a=a&&n.error===void 0;else if(!a)return!1;if(a){var u;if(r.length>0&&(u=r[0]),u instanceof Error)throw u;var c=new Error("Unhandled error."+(u?" ("+u.message+")":""));throw c.context=u,c}var d=n[t];if(d===void 0)return!1;if(typeof d=="function")Ym(d,this,r);else for(var m=d.length,M=U_(d,m),i=0;i<m;++i)Ym(M[i],this,r);return!0};function $_(e,t,r,i){var a,n,u;if(Ah(r),n=e._events,n===void 0?(n=e._events=Object.create(null),e._eventsCount=0):(n.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),n=e._events),u=n[t]),u===void 0)u=n[t]=r,++e._eventsCount;else if(typeof u=="function"?u=n[t]=i?[r,u]:[u,r]:i?u.unshift(r):u.push(r),a=k_(e),a>0&&u.length>a&&!u.warned){u.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=u.length,GR(c)}return e}Wt.prototype.addListener=function(t,r){return $_(this,t,r,!1)};Wt.prototype.on=Wt.prototype.addListener;Wt.prototype.prependListener=function(t,r){return $_(this,t,r,!0)};function YR(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function D_(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=YR.bind(i);return a.listener=r,i.wrapFn=a,a}Wt.prototype.once=function(t,r){return Ah(r),this.on(t,D_(this,t,r)),this};Wt.prototype.prependOnceListener=function(t,r){return Ah(r),this.prependListener(t,D_(this,t,r)),this};Wt.prototype.removeListener=function(t,r){var i,a,n,u,c;if(Ah(r),a=this._events,a===void 0)return this;if(i=a[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(n=-1,u=i.length-1;u>=0;u--)if(i[u]===r||i[u].listener===r){c=i[u].listener,n=u;break}if(n<0)return this;n===0?i.shift():ZR(i,n),i.length===1&&(a[t]=i[0]),a.removeListener!==void 0&&this.emit("removeListener",t,c||r)}return this};Wt.prototype.off=Wt.prototype.removeListener;Wt.prototype.removeAllListeners=function(t){var r,i,a;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var n=Object.keys(i),u;for(a=0;a<n.length;++a)u=n[a],u!=="removeListener"&&this.removeAllListeners(u);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=i[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(a=r.length-1;a>=0;a--)this.removeListener(t,r[a]);return this};function F_(e,t,r){var i=e._events;if(i===void 0)return[];var a=i[t];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?XR(a):U_(a,a.length)}Wt.prototype.listeners=function(t){return F_(this,t,!0)};Wt.prototype.rawListeners=function(t){return F_(this,t,!1)};Wt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):j_.call(e,t)};Wt.prototype.listenerCount=j_;function j_(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Wt.prototype.eventNames=function(){return this._eventsCount>0?al(this._events):[]};function U_(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}function ZR(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function XR(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function JR(e,t){return new Promise(function(r,i){function a(u){e.removeListener(t,n),i(u)}function n(){typeof e.removeListener=="function"&&e.removeListener("error",a),r([].slice.call(arguments))}H_(e,t,n,{once:!0}),t!=="error"&&QR(e,a,{once:!0})})}function QR(e,t,r){typeof e.on=="function"&&H_(e,"error",t,r)}function H_(e,t,r,i){if(typeof e.on=="function")i.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function a(n){i.once&&e.removeEventListener(t,a),r(n)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var Or=Dv.exports,Fv=t7,e7=Object.prototype.hasOwnProperty;function t7(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)e7.call(r,i)&&(e[i]=r[i])}return e}var ip={exports:{}},q_=Or.EventEmitter,ei={},W_={},K_=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==a||u.enumerable!==!0)return!1}return!0},r7=K_,Th=function(){return r7()&&!!Symbol.toStringTag},Xm=typeof Symbol<"u"&&Symbol,i7=K_,n7=function(){return typeof Xm!="function"||typeof Symbol!="function"||typeof Xm("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:i7()},Jm={foo:{}},o7=Object,a7=function(){return{__proto__:Jm}.foo===Jm.foo&&!({__proto__:null}instanceof o7)},s7="Function.prototype.bind called on incompatible ",Fc=Array.prototype.slice,f7=Object.prototype.toString,u7="[object Function]",l7=function(t){var r=this;if(typeof r!="function"||f7.call(r)!==u7)throw new TypeError(s7+r);for(var i=Fc.call(arguments,1),a,n=function(){if(this instanceof a){var M=r.apply(this,i.concat(Fc.call(arguments)));return Object(M)===M?M:this}else return r.apply(t,i.concat(Fc.call(arguments)))},u=Math.max(0,r.length-i.length),c=[],d=0;d<u;d++)c.push("$"+d);if(a=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(n),r.prototype){var m=function(){};m.prototype=r.prototype,a.prototype=new m,m.prototype=null}return a},h7=l7,jv=Function.prototype.bind||h7,c7=jv,d7=c7.call(Function.call,Object.prototype.hasOwnProperty),Mt,ls=SyntaxError,V_=Function,Qa=TypeError,jc=function(e){try{return V_('"use strict"; return ('+e+").constructor;")()}catch{}},na=Object.getOwnPropertyDescriptor;if(na)try{na({},"")}catch{na=null}var Uc=function(){throw new Qa},p7=na?function(){try{return arguments.callee,Uc}catch{try{return na(arguments,"callee").get}catch{return Uc}}}():Uc,La=n7(),v7=a7(),ur=Object.getPrototypeOf||(v7?function(e){return e.__proto__}:null),Ua={},g7=typeof Uint8Array>"u"||!ur?Mt:ur(Uint8Array),oa={"%AggregateError%":typeof AggregateError>"u"?Mt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Mt:ArrayBuffer,"%ArrayIteratorPrototype%":La&&ur?ur([][Symbol.iterator]()):Mt,"%AsyncFromSyncIteratorPrototype%":Mt,"%AsyncFunction%":Ua,"%AsyncGenerator%":Ua,"%AsyncGeneratorFunction%":Ua,"%AsyncIteratorPrototype%":Ua,"%Atomics%":typeof Atomics>"u"?Mt:Atomics,"%BigInt%":typeof BigInt>"u"?Mt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Mt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Mt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Mt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Mt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Mt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Mt:FinalizationRegistry,"%Function%":V_,"%GeneratorFunction%":Ua,"%Int8Array%":typeof Int8Array>"u"?Mt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Mt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Mt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":La&&ur?ur(ur([][Symbol.iterator]())):Mt,"%JSON%":typeof JSON=="object"?JSON:Mt,"%Map%":typeof Map>"u"?Mt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!La||!ur?Mt:ur(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Mt:Promise,"%Proxy%":typeof Proxy>"u"?Mt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Mt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Mt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!La||!ur?Mt:ur(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Mt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":La&&ur?ur(""[Symbol.iterator]()):Mt,"%Symbol%":La?Symbol:Mt,"%SyntaxError%":ls,"%ThrowTypeError%":p7,"%TypedArray%":g7,"%TypeError%":Qa,"%Uint8Array%":typeof Uint8Array>"u"?Mt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Mt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Mt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Mt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Mt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Mt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Mt:WeakSet};if(ur)try{null.error}catch(e){var m7=ur(ur(e));oa["%Error.prototype%"]=m7}var y7=function e(t){var r;if(t==="%AsyncFunction%")r=jc("async function () {}");else if(t==="%GeneratorFunction%")r=jc("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=jc("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&ur&&(r=ur(a.prototype))}return oa[t]=r,r},Qm={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},pu=jv,Fl=d7,b7=pu.call(Function.call,Array.prototype.concat),w7=pu.call(Function.apply,Array.prototype.splice),e1=pu.call(Function.call,String.prototype.replace),jl=pu.call(Function.call,String.prototype.slice),_7=pu.call(Function.call,RegExp.prototype.exec),M7=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S7=/\\(\\)?/g,x7=function(t){var r=jl(t,0,1),i=jl(t,-1);if(r==="%"&&i!=="%")throw new ls("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new ls("invalid intrinsic syntax, expected opening `%`");var a=[];return e1(t,M7,function(n,u,c,d){a[a.length]=c?e1(d,S7,"$1"):u||n}),a},E7=function(t,r){var i=t,a;if(Fl(Qm,i)&&(a=Qm[i],i="%"+a[0]+"%"),Fl(oa,i)){var n=oa[i];if(n===Ua&&(n=y7(i)),typeof n>"u"&&!r)throw new Qa("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:n}}throw new ls("intrinsic "+t+" does not exist!")},Uv=function(t,r){if(typeof t!="string"||t.length===0)throw new Qa("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Qa('"allowMissing" argument must be a boolean');if(_7(/^%?[^%]*%?$/,t)===null)throw new ls("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=x7(t),a=i.length>0?i[0]:"",n=E7("%"+a+"%",r),u=n.name,c=n.value,d=!1,m=n.alias;m&&(a=m[0],w7(i,b7([0,1],m)));for(var M=1,S=!0;M<i.length;M+=1){var R=i[M],C=jl(R,0,1),P=jl(R,-1);if((C==='"'||C==="'"||C==="`"||P==='"'||P==="'"||P==="`")&&C!==P)throw new ls("property names with quotes must have matching quotes");if((R==="constructor"||!S)&&(d=!0),a+="."+R,u="%"+a+"%",Fl(oa,u))c=oa[u];else if(c!=null){if(!(R in c)){if(!r)throw new Qa("base intrinsic for "+t+" exists, but the property is not available.");return}if(na&&M+1>=i.length){var k=na(c,R);S=!!k,S&&"get"in k&&!("originalValue"in k.get)?c=k.get:c=c[R]}else S=Fl(c,R),c=c[R];S&&!d&&(oa[u]=c)}}return c},z_={exports:{}};(function(e){var t=jv,r=Uv,i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),n=r("%Reflect.apply%",!0)||t.call(a,i),u=r("%Object.getOwnPropertyDescriptor%",!0),c=r("%Object.defineProperty%",!0),d=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}e.exports=function(S){var R=n(t,a,arguments);if(u&&c){var C=u(R,"length");C.configurable&&c(R,"length",{value:1+d(0,S.length-(arguments.length-1))})}return R};var m=function(){return n(t,i,arguments)};c?c(e.exports,"apply",{value:m}):e.exports.apply=m})(z_);var R7=z_.exports,G_=Uv,Y_=R7,A7=Y_(G_("String.prototype.indexOf")),Hv=function(t,r){var i=G_(t,!!r);return typeof i=="function"&&A7(t,".prototype.")>-1?Y_(i):i},T7=Th(),O7=Hv,np=O7("Object.prototype.toString"),Oh=function(t){return T7&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:np(t)==="[object Arguments]"},Z_=function(t){return Oh(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&np(t)!=="[object Array]"&&np(t.callee)==="[object Function]"},I7=function(){return Oh(arguments)}();Oh.isLegacyArguments=Z_;var P7=I7?Oh:Z_,C7=Object.prototype.toString,B7=Function.prototype.toString,L7=/^\s*(?:function)?\*/,X_=Th(),Hc=Object.getPrototypeOf,N7=function(){if(!X_)return!1;try{return Function("return function*() {}")()}catch{}},qc,k7=function(t){if(typeof t!="function")return!1;if(L7.test(B7.call(t)))return!0;if(!X_){var r=C7.call(t);return r==="[object GeneratorFunction]"}if(!Hc)return!1;if(typeof qc>"u"){var i=N7();qc=i?Hc(i):!1}return Hc(t)===qc},J_=Function.prototype.toString,Ka=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,op,sl;if(typeof Ka=="function"&&typeof Object.defineProperty=="function")try{op=Object.defineProperty({},"length",{get:function(){throw sl}}),sl={},Ka(function(){throw 42},null,op)}catch(e){e!==sl&&(Ka=null)}else Ka=null;var $7=/^\s*class\b/,ap=function(t){try{var r=J_.call(t);return $7.test(r)}catch{return!1}},Wc=function(t){try{return ap(t)?!1:(J_.call(t),!0)}catch{return!1}},fl=Object.prototype.toString,D7="[object Object]",F7="[object Function]",j7="[object GeneratorFunction]",U7="[object HTMLAllCollection]",H7="[object HTML document.all class]",q7="[object HTMLCollection]",W7=typeof Symbol=="function"&&!!Symbol.toStringTag,K7=!(0 in[,]),sp=function(){return!1};if(typeof document=="object"){var V7=document.all;fl.call(V7)===fl.call(document.all)&&(sp=function(t){if((K7||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=fl.call(t);return(r===U7||r===H7||r===q7||r===D7)&&t("")==null}catch{}return!1})}var z7=Ka?function(t){if(sp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ka(t,null,op)}catch(r){if(r!==sl)return!1}return!ap(t)&&Wc(t)}:function(t){if(sp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(W7)return Wc(t);if(ap(t))return!1;var r=fl.call(t);return r!==F7&&r!==j7&&!/^\[object HTML/.test(r)?!1:Wc(t)},G7=z7,Y7=Object.prototype.toString,Q_=Object.prototype.hasOwnProperty,Z7=function(t,r,i){for(var a=0,n=t.length;a<n;a++)Q_.call(t,a)&&(i==null?r(t[a],a,t):r.call(i,t[a],a,t))},X7=function(t,r,i){for(var a=0,n=t.length;a<n;a++)i==null?r(t.charAt(a),a,t):r.call(i,t.charAt(a),a,t)},J7=function(t,r,i){for(var a in t)Q_.call(t,a)&&(i==null?r(t[a],a,t):r.call(i,t[a],a,t))},Q7=function(t,r,i){if(!G7(r))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=i),Y7.call(t)==="[object Array]"?Z7(t,r,a):typeof t=="string"?X7(t,r,a):J7(t,r,a)},eM=Q7,Kc=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],e9=typeof globalThis>"u"?Ye:globalThis,tM=function(){for(var t=[],r=0;r<Kc.length;r++)typeof e9[Kc[r]]=="function"&&(t[t.length]=Kc[r]);return t},t9=Uv,ul=t9("%Object.getOwnPropertyDescriptor%",!0);if(ul)try{ul([],"length")}catch{ul=null}var rM=ul,iM=eM,r9=tM,qv=Hv,i9=qv("Object.prototype.toString"),nM=Th(),ll=rM,n9=typeof globalThis>"u"?Ye:globalThis,oM=r9(),o9=qv("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i<t.length;i+=1)if(t[i]===r)return i;return-1},a9=qv("String.prototype.slice"),aM={},Vc=Object.getPrototypeOf;nM&&ll&&Vc&&iM(oM,function(e){var t=new n9[e];if(Symbol.toStringTag in t){var r=Vc(t),i=ll(r,Symbol.toStringTag);if(!i){var a=Vc(r);i=ll(a,Symbol.toStringTag)}aM[e]=i.get}});var s9=function(t){var r=!1;return iM(aM,function(i,a){if(!r)try{r=i.call(t)===a}catch{}}),r},sM=function(t){if(!t||typeof t!="object")return!1;if(!nM||!(Symbol.toStringTag in t)){var r=a9(i9(t),8,-1);return o9(oM,r)>-1}return ll?s9(t):!1},fM=eM,f9=tM,uM=Hv,zc=rM,u9=uM("Object.prototype.toString"),lM=Th(),t1=typeof globalThis>"u"?Ye:globalThis,l9=f9(),h9=uM("String.prototype.slice"),hM={},Gc=Object.getPrototypeOf;lM&&zc&&Gc&&fM(l9,function(e){if(typeof t1[e]=="function"){var t=new t1[e];if(Symbol.toStringTag in t){var r=Gc(t),i=zc(r,Symbol.toStringTag);if(!i){var a=Gc(r);i=zc(a,Symbol.toStringTag)}hM[e]=i.get}}});var c9=function(t){var r=!1;return fM(hM,function(i,a){if(!r)try{var n=i.call(t);n===a&&(r=n)}catch{}}),r},d9=sM,p9=function(t){return d9(t)?!lM||!(Symbol.toStringTag in t)?h9(u9(t),8,-1):c9(t):!1};(function(e){var t=P7,r=k7,i=p9,a=sM;function n(z){return z.call.bind(z)}var u=typeof BigInt<"u",c=typeof Symbol<"u",d=n(Object.prototype.toString),m=n(Number.prototype.valueOf),M=n(String.prototype.valueOf),S=n(Boolean.prototype.valueOf);if(u)var R=n(BigInt.prototype.valueOf);if(c)var C=n(Symbol.prototype.valueOf);function P(z,se){if(typeof z!="object")return!1;try{return se(z),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=a;function k(z){return typeof Promise<"u"&&z instanceof Promise||z!==null&&typeof z=="object"&&typeof z.then=="function"&&typeof z.catch=="function"}e.isPromise=k;function L(z){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(z):a(z)||$(z)}e.isArrayBufferView=L;function I(z){return i(z)==="Uint8Array"}e.isUint8Array=I;function B(z){return i(z)==="Uint8ClampedArray"}e.isUint8ClampedArray=B;function H(z){return i(z)==="Uint16Array"}e.isUint16Array=H;function F(z){return i(z)==="Uint32Array"}e.isUint32Array=F;function W(z){return i(z)==="Int8Array"}e.isInt8Array=W;function Y(z){return i(z)==="Int16Array"}e.isInt16Array=Y;function ie(z){return i(z)==="Int32Array"}e.isInt32Array=ie;function J(z){return i(z)==="Float32Array"}e.isFloat32Array=J;function V(z){return i(z)==="Float64Array"}e.isFloat64Array=V;function oe(z){return i(z)==="BigInt64Array"}e.isBigInt64Array=oe;function _(z){return i(z)==="BigUint64Array"}e.isBigUint64Array=_;function o(z){return d(z)==="[object Map]"}o.working=typeof Map<"u"&&o(new Map);function f(z){return typeof Map>"u"?!1:o.working?o(z):z instanceof Map}e.isMap=f;function l(z){return d(z)==="[object Set]"}l.working=typeof Set<"u"&&l(new Set);function h(z){return typeof Set>"u"?!1:l.working?l(z):z instanceof Set}e.isSet=h;function p(z){return d(z)==="[object WeakMap]"}p.working=typeof WeakMap<"u"&&p(new WeakMap);function w(z){return typeof WeakMap>"u"?!1:p.working?p(z):z instanceof WeakMap}e.isWeakMap=w;function x(z){return d(z)==="[object WeakSet]"}x.working=typeof WeakSet<"u"&&x(new WeakSet);function g(z){return x(z)}e.isWeakSet=g;function s(z){return d(z)==="[object ArrayBuffer]"}s.working=typeof ArrayBuffer<"u"&&s(new ArrayBuffer);function v(z){return typeof ArrayBuffer>"u"?!1:s.working?s(z):z instanceof ArrayBuffer}e.isArrayBuffer=v;function T(z){return d(z)==="[object DataView]"}T.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&T(new DataView(new ArrayBuffer(1),0,1));function $(z){return typeof DataView>"u"?!1:T.working?T(z):z instanceof DataView}e.isDataView=$;var G=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ee(z){return d(z)==="[object SharedArrayBuffer]"}function A(z){return typeof G>"u"?!1:(typeof ee.working>"u"&&(ee.working=ee(new G)),ee.working?ee(z):z instanceof G)}e.isSharedArrayBuffer=A;function E(z){return d(z)==="[object AsyncFunction]"}e.isAsyncFunction=E;function U(z){return d(z)==="[object Map Iterator]"}e.isMapIterator=U;function K(z){return d(z)==="[object Set Iterator]"}e.isSetIterator=K;function Z(z){return d(z)==="[object Generator]"}e.isGeneratorObject=Z;function b(z){return d(z)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=b;function y(z){return P(z,m)}e.isNumberObject=y;function O(z){return P(z,M)}e.isStringObject=O;function q(z){return P(z,S)}e.isBooleanObject=q;function X(z){return u&&P(z,R)}e.isBigIntObject=X;function D(z){return c&&P(z,C)}e.isSymbolObject=D;function N(z){return y(z)||O(z)||q(z)||X(z)||D(z)}e.isBoxedPrimitive=N;function j(z){return typeof Uint8Array<"u"&&(v(z)||A(z))}e.isAnyArrayBuffer=j,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(z){Object.defineProperty(e,z,{enumerable:!1,value:function(){throw new Error(z+" is not supported in userland")}})})})(W_);var v9=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"},fp={exports:{}};typeof Object.create=="function"?fp.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:fp.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}};var Ze=fp.exports;(function(e){var t=Object.getOwnPropertyDescriptors||function($){for(var G=Object.keys($),ee={},A=0;A<G.length;A++)ee[G[A]]=Object.getOwnPropertyDescriptor($,G[A]);return ee},r=/%[sdj%]/g;e.format=function(T){if(!W(T)){for(var $=[],G=0;G<arguments.length;G++)$.push(u(arguments[G]));return $.join(" ")}for(var G=1,ee=arguments,A=ee.length,E=String(T).replace(r,function(K){if(K==="%%")return"%";if(G>=A)return K;switch(K){case"%s":return String(ee[G++]);case"%d":return Number(ee[G++]);case"%j":try{return JSON.stringify(ee[G++])}catch{return"[Circular]"}default:return K}}),U=ee[G];G<A;U=ee[++G])B(U)||!V(U)?E+=" "+U:E+=" "+u(U);return E},e.deprecate=function(T,$){if(typeof we<"u"&&we.noDeprecation===!0)return T;if(typeof we>"u")return function(){return e.deprecate(T,$).apply(this,arguments)};var G=!1;function ee(){if(!G){if(we.throwDeprecation)throw new Error($);we.traceDeprecation?console.trace($):console.error($),G=!0}return T.apply(this,arguments)}return ee};var i={},a=/^$/;if({}.NODE_DEBUG){var n={}.NODE_DEBUG;n=n.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+n+"$","i")}e.debuglog=function(T){if(T=T.toUpperCase(),!i[T])if(a.test(T)){var $=we.pid;i[T]=function(){var G=e.format.apply(e,arguments);console.error("%s %d: %s",T,$,G)}}else i[T]=function(){};return i[T]};function u(T,$){var G={seen:[],stylize:d};return arguments.length>=3&&(G.depth=arguments[2]),arguments.length>=4&&(G.colors=arguments[3]),I($)?G.showHidden=$:$&&e._extend(G,$),ie(G.showHidden)&&(G.showHidden=!1),ie(G.depth)&&(G.depth=2),ie(G.colors)&&(G.colors=!1),ie(G.customInspect)&&(G.customInspect=!0),G.colors&&(G.stylize=c),M(G,T,G.depth)}e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(T,$){var G=u.styles[$];return G?"\x1B["+u.colors[G][0]+"m"+T+"\x1B["+u.colors[G][1]+"m":T}function d(T,$){return T}function m(T){var $={};return T.forEach(function(G,ee){$[G]=!0}),$}function M(T,$,G){if(T.customInspect&&$&&o($.inspect)&&$.inspect!==e.inspect&&!($.constructor&&$.constructor.prototype===$)){var ee=$.inspect(G,T);return W(ee)||(ee=M(T,ee,G)),ee}var A=S(T,$);if(A)return A;var E=Object.keys($),U=m(E);if(T.showHidden&&(E=Object.getOwnPropertyNames($)),_($)&&(E.indexOf("message")>=0||E.indexOf("description")>=0))return R($);if(E.length===0){if(o($)){var K=$.name?": "+$.name:"";return T.stylize("[Function"+K+"]","special")}if(J($))return T.stylize(RegExp.prototype.toString.call($),"regexp");if(oe($))return T.stylize(Date.prototype.toString.call($),"date");if(_($))return R($)}var Z="",b=!1,y=["{","}"];if(L($)&&(b=!0,y=["[","]"]),o($)){var O=$.name?": "+$.name:"";Z=" [Function"+O+"]"}if(J($)&&(Z=" "+RegExp.prototype.toString.call($)),oe($)&&(Z=" "+Date.prototype.toUTCString.call($)),_($)&&(Z=" "+R($)),E.length===0&&(!b||$.length==0))return y[0]+Z+y[1];if(G<0)return J($)?T.stylize(RegExp.prototype.toString.call($),"regexp"):T.stylize("[Object]","special");T.seen.push($);var q;return b?q=C(T,$,G,U,E):q=E.map(function(X){return P(T,$,G,U,X,b)}),T.seen.pop(),k(q,Z,y)}function S(T,$){if(ie($))return T.stylize("undefined","undefined");if(W($)){var G="'"+JSON.stringify($).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return T.stylize(G,"string")}if(F($))return T.stylize(""+$,"number");if(I($))return T.stylize(""+$,"boolean");if(B($))return T.stylize("null","null")}function R(T){return"["+Error.prototype.toString.call(T)+"]"}function C(T,$,G,ee,A){for(var E=[],U=0,K=$.length;U<K;++U)x($,String(U))?E.push(P(T,$,G,ee,String(U),!0)):E.push("");return A.forEach(function(Z){Z.match(/^\d+$/)||E.push(P(T,$,G,ee,Z,!0))}),E}function P(T,$,G,ee,A,E){var U,K,Z;if(Z=Object.getOwnPropertyDescriptor($,A)||{value:$[A]},Z.get?Z.set?K=T.stylize("[Getter/Setter]","special"):K=T.stylize("[Getter]","special"):Z.set&&(K=T.stylize("[Setter]","special")),x(ee,A)||(U="["+A+"]"),K||(T.seen.indexOf(Z.value)<0?(B(G)?K=M(T,Z.value,null):K=M(T,Z.value,G-1),K.indexOf(`
+`)>-1&&(E?K=K.split(`
+`).map(function(b){return"  "+b}).join(`
+`).slice(2):K=`
+`+K.split(`
+`).map(function(b){return"   "+b}).join(`
+`))):K=T.stylize("[Circular]","special")),ie(U)){if(E&&A.match(/^\d+$/))return K;U=JSON.stringify(""+A),U.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(U=U.slice(1,-1),U=T.stylize(U,"name")):(U=U.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),U=T.stylize(U,"string"))}return U+": "+K}function k(T,$,G){var ee=T.reduce(function(A,E){return E.indexOf(`
+`)>=0,A+E.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ee>60?G[0]+($===""?"":$+`
+ `)+" "+T.join(`,
+  `)+" "+G[1]:G[0]+$+" "+T.join(", ")+" "+G[1]}e.types=W_;function L(T){return Array.isArray(T)}e.isArray=L;function I(T){return typeof T=="boolean"}e.isBoolean=I;function B(T){return T===null}e.isNull=B;function H(T){return T==null}e.isNullOrUndefined=H;function F(T){return typeof T=="number"}e.isNumber=F;function W(T){return typeof T=="string"}e.isString=W;function Y(T){return typeof T=="symbol"}e.isSymbol=Y;function ie(T){return T===void 0}e.isUndefined=ie;function J(T){return V(T)&&l(T)==="[object RegExp]"}e.isRegExp=J,e.types.isRegExp=J;function V(T){return typeof T=="object"&&T!==null}e.isObject=V;function oe(T){return V(T)&&l(T)==="[object Date]"}e.isDate=oe,e.types.isDate=oe;function _(T){return V(T)&&(l(T)==="[object Error]"||T instanceof Error)}e.isError=_,e.types.isNativeError=_;function o(T){return typeof T=="function"}e.isFunction=o;function f(T){return T===null||typeof T=="boolean"||typeof T=="number"||typeof T=="string"||typeof T=="symbol"||typeof T>"u"}e.isPrimitive=f,e.isBuffer=v9;function l(T){return Object.prototype.toString.call(T)}function h(T){return T<10?"0"+T.toString(10):T.toString(10)}var p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function w(){var T=new Date,$=[h(T.getHours()),h(T.getMinutes()),h(T.getSeconds())].join(":");return[T.getDate(),p[T.getMonth()],$].join(" ")}e.log=function(){console.log("%s - %s",w(),e.format.apply(e,arguments))},e.inherits=Ze,e._extend=function(T,$){if(!$||!V($))return T;for(var G=Object.keys($),ee=G.length;ee--;)T[G[ee]]=$[G[ee]];return T};function x(T,$){return Object.prototype.hasOwnProperty.call(T,$)}var g=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');if(g&&$[g]){var G=$[g];if(typeof G!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(G,g,{value:G,enumerable:!1,writable:!1,configurable:!0}),G}function G(){for(var ee,A,E=new Promise(function(Z,b){ee=Z,A=b}),U=[],K=0;K<arguments.length;K++)U.push(arguments[K]);U.push(function(Z,b){Z?A(Z):ee(b)});try{$.apply(this,U)}catch(Z){A(Z)}return E}return Object.setPrototypeOf(G,Object.getPrototypeOf($)),g&&Object.defineProperty(G,g,{value:G,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(G,t($))},e.promisify.custom=g;function s(T,$){if(!T){var G=new Error("Promise was rejected with a falsy value");G.reason=T,T=G}return $(T)}function v(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');function $(){for(var G=[],ee=0;ee<arguments.length;ee++)G.push(arguments[ee]);var A=G.pop();if(typeof A!="function")throw new TypeError("The last argument must be of type Function");var E=this,U=function(){return A.apply(E,arguments)};T.apply(this,G).then(function(K){we.nextTick(U.bind(null,null,K))},function(K){we.nextTick(s.bind(null,K,U))})}return Object.setPrototypeOf($,Object.getPrototypeOf(T)),Object.defineProperties($,t(T)),$}e.callbackify=v})(ei);var Yc,r1;function g9(){if(r1)return Yc;r1=1;function e(P,k){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(P);k&&(I=I.filter(function(B){return Object.getOwnPropertyDescriptor(P,B).enumerable})),L.push.apply(L,I)}return L}function t(P){for(var k=1;k<arguments.length;k++){var L=arguments[k]!=null?arguments[k]:{};k%2?e(Object(L),!0).forEach(function(I){r(P,I,L[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):e(Object(L)).forEach(function(I){Object.defineProperty(P,I,Object.getOwnPropertyDescriptor(L,I))})}return P}function r(P,k,L){return k=u(k),k in P?Object.defineProperty(P,k,{value:L,enumerable:!0,configurable:!0,writable:!0}):P[k]=L,P}function i(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}function a(P,k){for(var L=0;L<k.length;L++){var I=k[L];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(P,u(I.key),I)}}function n(P,k,L){return k&&a(P.prototype,k),L&&a(P,L),Object.defineProperty(P,"prototype",{writable:!1}),P}function u(P){var k=c(P,"string");return typeof k=="symbol"?k:String(k)}function c(P,k){if(typeof P!="object"||P===null)return P;var L=P[Symbol.toPrimitive];if(L!==void 0){var I=L.call(P,k||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(P)}var d=ke,m=d.Buffer,M=ei,S=M.inspect,R=S&&S.custom||"inspect";function C(P,k,L){m.prototype.copy.call(P,k,L)}return Yc=function(){function P(){i(this,P),this.head=null,this.tail=null,this.length=0}return n(P,[{key:"push",value:function(L){var I={data:L,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(L){var I={data:L,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var I=this.head,B=""+I.data;I=I.next;)B+=L+I.data;return B}},{key:"concat",value:function(L){if(this.length===0)return m.alloc(0);for(var I=m.allocUnsafe(L>>>0),B=this.head,H=0;B;)C(B.data,I,H),H+=B.data.length,B=B.next;return I}},{key:"consume",value:function(L,I){var B;return L<this.head.data.length?(B=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?B=this.shift():B=I?this._getString(L):this._getBuffer(L),B}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var I=this.head,B=1,H=I.data;for(L-=H.length;I=I.next;){var F=I.data,W=L>F.length?F.length:L;if(W===F.length?H+=F:H+=F.slice(0,L),L-=W,L===0){W===F.length?(++B,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=F.slice(W));break}++B}return this.length-=B,H}},{key:"_getBuffer",value:function(L){var I=m.allocUnsafe(L),B=this.head,H=1;for(B.data.copy(I),L-=B.data.length;B=B.next;){var F=B.data,W=L>F.length?F.length:L;if(F.copy(I,I.length-L,0,W),L-=W,L===0){W===F.length?(++H,B.next?this.head=B.next:this.head=this.tail=null):(this.head=B,B.data=F.slice(W));break}++H}return this.length-=H,I}},{key:R,value:function(L,I){return S(this,t(t({},I),{},{depth:0,customInspect:!1}))}}]),P}(),Yc}function m9(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,we.nextTick(up,this,e)):we.nextTick(up,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(n){!t&&n?r._writableState?r._writableState.errorEmitted?we.nextTick(hl,r):(r._writableState.errorEmitted=!0,we.nextTick(i1,r,n)):we.nextTick(i1,r,n):t?(we.nextTick(hl,r),t(n)):we.nextTick(hl,r)}),this)}function i1(e,t){up(e,t),hl(e)}function hl(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function y9(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function up(e,t){e.emit("error",t)}function b9(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}var cM={destroy:m9,undestroy:y9,errorOrDestroy:b9},_a={};function w9(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var dM={};function yi(e,t,r){r||(r=Error);function i(n,u,c){return typeof t=="string"?t:t(n,u,c)}var a=function(n){w9(u,n);function u(c,d,m){return n.call(this,i(c,d,m))||this}return u}(r);a.prototype.name=r.name,a.prototype.code=e,dM[e]=a}function n1(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function _9(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function M9(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function S9(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}yi("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);yi("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&_9(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var a;if(M9(e," argument"))a="The ".concat(e," ").concat(i," ").concat(n1(t,"type"));else{var n=S9(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(n," ").concat(i," ").concat(n1(t,"type"))}return a+=". Received type ".concat(typeof r),a},TypeError);yi("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");yi("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});yi("ERR_STREAM_PREMATURE_CLOSE","Premature close");yi("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});yi("ERR_MULTIPLE_CALLBACK","Callback called multiple times");yi("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");yi("ERR_STREAM_WRITE_AFTER_END","write after end");yi("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);yi("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);yi("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");_a.codes=dM;var x9=_a.codes.ERR_INVALID_OPT_VALUE;function E9(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function R9(e,t,r,i){var a=E9(t,i,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var n=i?r:"highWaterMark";throw new x9(n,a)}return Math.floor(a)}return e.objectMode?16:16*1024}var pM={getHighWaterMark:R9},ks=A9;function A9(e,t){if(Zc("noDeprecation"))return e;var r=!1;function i(){if(!r){if(Zc("throwDeprecation"))throw new Error(t);Zc("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function Zc(e){try{if(!Ye.localStorage)return!1}catch{return!1}var t=Ye.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var Xc,o1;function vM(){if(o1)return Xc;o1=1,Xc=J;function e(A){var E=this;this.next=null,this.entry=null,this.finish=function(){ee(E,A)}}var t;J.WritableState=Y;var r={deprecate:ks},i=q_,a=ke.Buffer,n=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(A){return a.from(A)}function c(A){return a.isBuffer(A)||A instanceof n}var d=cM,m=pM,M=m.getHighWaterMark,S=_a.codes,R=S.ERR_INVALID_ARG_TYPE,C=S.ERR_METHOD_NOT_IMPLEMENTED,P=S.ERR_MULTIPLE_CALLBACK,k=S.ERR_STREAM_CANNOT_PIPE,L=S.ERR_STREAM_DESTROYED,I=S.ERR_STREAM_NULL_VALUES,B=S.ERR_STREAM_WRITE_AFTER_END,H=S.ERR_UNKNOWN_ENCODING,F=d.errorOrDestroy;Ze(J,i);function W(){}function Y(A,E,U){t=t||hs(),A=A||{},typeof U!="boolean"&&(U=E instanceof t),this.objectMode=!!A.objectMode,U&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=M(this,A,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=A.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){p(E,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}Y.prototype.getBuffer=function(){for(var E=this.bufferedRequest,U=[];E;)U.push(E),E=E.next;return U},function(){try{Object.defineProperty(Y.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ie;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ie=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(E){return ie.call(this,E)?!0:this!==J?!1:E&&E._writableState instanceof Y}})):ie=function(E){return E instanceof this};function J(A){t=t||hs();var E=this instanceof t;if(!E&&!ie.call(J,this))return new J(A);this._writableState=new Y(A,this,E),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),i.call(this)}J.prototype.pipe=function(){F(this,new k)};function V(A,E){var U=new B;F(A,U),we.nextTick(E,U)}function oe(A,E,U,K){var Z;return U===null?Z=new I:typeof U!="string"&&!E.objectMode&&(Z=new R("chunk",["string","Buffer"],U)),Z?(F(A,Z),we.nextTick(K,Z),!1):!0}J.prototype.write=function(A,E,U){var K=this._writableState,Z=!1,b=!K.objectMode&&c(A);return b&&!a.isBuffer(A)&&(A=u(A)),typeof E=="function"&&(U=E,E=null),b?E="buffer":E||(E=K.defaultEncoding),typeof U!="function"&&(U=W),K.ending?V(this,U):(b||oe(this,K,A,U))&&(K.pendingcb++,Z=o(this,K,b,A,E,U)),Z},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&g(this,A))},J.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new H(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _(A,E,U){return!A.objectMode&&A.decodeStrings!==!1&&typeof E=="string"&&(E=a.from(E,U)),E}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(A,E,U,K,Z,b){if(!U){var y=_(E,K,Z);K!==y&&(U=!0,Z="buffer",K=y)}var O=E.objectMode?1:K.length;E.length+=O;var q=E.length<E.highWaterMark;if(q||(E.needDrain=!0),E.writing||E.corked){var X=E.lastBufferedRequest;E.lastBufferedRequest={chunk:K,encoding:Z,isBuf:U,callback:b,next:null},X?X.next=E.lastBufferedRequest:E.bufferedRequest=E.lastBufferedRequest,E.bufferedRequestCount+=1}else f(A,E,!1,O,K,Z,b);return q}function f(A,E,U,K,Z,b,y){E.writelen=K,E.writecb=y,E.writing=!0,E.sync=!0,E.destroyed?E.onwrite(new L("write")):U?A._writev(Z,E.onwrite):A._write(Z,b,E.onwrite),E.sync=!1}function l(A,E,U,K,Z){--E.pendingcb,U?(we.nextTick(Z,K),we.nextTick($,A,E),A._writableState.errorEmitted=!0,F(A,K)):(Z(K),A._writableState.errorEmitted=!0,F(A,K),$(A,E))}function h(A){A.writing=!1,A.writecb=null,A.length-=A.writelen,A.writelen=0}function p(A,E){var U=A._writableState,K=U.sync,Z=U.writecb;if(typeof Z!="function")throw new P;if(h(U),E)l(A,U,K,E,Z);else{var b=s(U)||A.destroyed;!b&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&g(A,U),K?we.nextTick(w,A,U,b,Z):w(A,U,b,Z)}}function w(A,E,U,K){U||x(A,E),E.pendingcb--,K(),$(A,E)}function x(A,E){E.length===0&&E.needDrain&&(E.needDrain=!1,A.emit("drain"))}function g(A,E){E.bufferProcessing=!0;var U=E.bufferedRequest;if(A._writev&&U&&U.next){var K=E.bufferedRequestCount,Z=new Array(K),b=E.corkedRequestsFree;b.entry=U;for(var y=0,O=!0;U;)Z[y]=U,U.isBuf||(O=!1),U=U.next,y+=1;Z.allBuffers=O,f(A,E,!0,E.length,Z,"",b.finish),E.pendingcb++,E.lastBufferedRequest=null,b.next?(E.corkedRequestsFree=b.next,b.next=null):E.corkedRequestsFree=new e(E),E.bufferedRequestCount=0}else{for(;U;){var q=U.chunk,X=U.encoding,D=U.callback,N=E.objectMode?1:q.length;if(f(A,E,!1,N,q,X,D),U=U.next,E.bufferedRequestCount--,E.writing)break}U===null&&(E.lastBufferedRequest=null)}E.bufferedRequest=U,E.bufferProcessing=!1}J.prototype._write=function(A,E,U){U(new C("_write()"))},J.prototype._writev=null,J.prototype.end=function(A,E,U){var K=this._writableState;return typeof A=="function"?(U=A,A=null,E=null):typeof E=="function"&&(U=E,E=null),A!=null&&this.write(A,E),K.corked&&(K.corked=1,this.uncork()),K.ending||G(this,K,U),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function v(A,E){A._final(function(U){E.pendingcb--,U&&F(A,U),E.prefinished=!0,A.emit("prefinish"),$(A,E)})}function T(A,E){!E.prefinished&&!E.finalCalled&&(typeof A._final=="function"&&!E.destroyed?(E.pendingcb++,E.finalCalled=!0,we.nextTick(v,A,E)):(E.prefinished=!0,A.emit("prefinish")))}function $(A,E){var U=s(E);if(U&&(T(A,E),E.pendingcb===0&&(E.finished=!0,A.emit("finish"),E.autoDestroy))){var K=A._readableState;(!K||K.autoDestroy&&K.endEmitted)&&A.destroy()}return U}function G(A,E,U){E.ending=!0,$(A,E),U&&(E.finished?we.nextTick(U):A.once("finish",U)),E.ended=!0,A.writable=!1}function ee(A,E,U){var K=A.entry;for(A.entry=null;K;){var Z=K.callback;E.pendingcb--,Z(U),K=K.next}E.corkedRequestsFree.next=A}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),J.prototype.destroy=d.destroy,J.prototype._undestroy=d.undestroy,J.prototype._destroy=function(A,E){E(A)},Xc}var Jc,a1;function hs(){if(a1)return Jc;a1=1;var e=Object.keys||function(m){var M=[];for(var S in m)M.push(S);return M};Jc=u;var t=mM(),r=vM();Ze(u,t);for(var i=e(r.prototype),a=0;a<i.length;a++){var n=i[a];u.prototype[n]||(u.prototype[n]=r.prototype[n])}function u(m){if(!(this instanceof u))return new u(m);t.call(this,m),r.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||we.nextTick(d,this)}function d(m){m.end()}return Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(M){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=M,this._writableState.destroyed=M)}}),Jc}var Qc={},lp={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=ke,i=r.Buffer;function a(u,c){for(var d in u)c[d]=u[d]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=n);function n(u,c,d){return i(u,c,d)}n.prototype=Object.create(i.prototype),a(i,n),n.from=function(u,c,d){if(typeof u=="number")throw new TypeError("Argument must not be a number");return i(u,c,d)},n.alloc=function(u,c,d){if(typeof u!="number")throw new TypeError("Argument must be a number");var m=i(u);return c!==void 0?typeof d=="string"?m.fill(c,d):m.fill(c):m.fill(0),m},n.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return i(u)},n.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(u)}})(lp,lp.exports);var pt=lp.exports,s1;function Xr(){if(s1)return Qc;s1=1;var e=pt.Buffer,t=e.isEncoding||function(I){switch(I=""+I,I&&I.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(I){if(!I)return"utf8";for(var B;;)switch(I){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return I;default:if(B)return;I=(""+I).toLowerCase(),B=!0}}function i(I){var B=r(I);if(typeof B!="string"&&(e.isEncoding===t||!t(I)))throw new Error("Unknown encoding: "+I);return B||I}Qc.StringDecoder=a;function a(I){this.encoding=i(I);var B;switch(this.encoding){case"utf16le":this.text=S,this.end=R,B=4;break;case"utf8":this.fillLast=d,B=4;break;case"base64":this.text=C,this.end=P,B=3;break;default:this.write=k,this.end=L;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(B)}a.prototype.write=function(I){if(I.length===0)return"";var B,H;if(this.lastNeed){if(B=this.fillLast(I),B===void 0)return"";H=this.lastNeed,this.lastNeed=0}else H=0;return H<I.length?B?B+this.text(I,H):this.text(I,H):B||""},a.prototype.end=M,a.prototype.text=m,a.prototype.fillLast=function(I){if(this.lastNeed<=I.length)return I.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);I.copy(this.lastChar,this.lastTotal-this.lastNeed,0,I.length),this.lastNeed-=I.length};function n(I){return I<=127?0:I>>5===6?2:I>>4===14?3:I>>3===30?4:I>>6===2?-1:-2}function u(I,B,H){var F=B.length-1;if(F<H)return 0;var W=n(B[F]);return W>=0?(W>0&&(I.lastNeed=W-1),W):--F<H||W===-2?0:(W=n(B[F]),W>=0?(W>0&&(I.lastNeed=W-2),W):--F<H||W===-2?0:(W=n(B[F]),W>=0?(W>0&&(W===2?W=0:I.lastNeed=W-3),W):0))}function c(I,B,H){if((B[0]&192)!==128)return I.lastNeed=0,"�";if(I.lastNeed>1&&B.length>1){if((B[1]&192)!==128)return I.lastNeed=1,"�";if(I.lastNeed>2&&B.length>2&&(B[2]&192)!==128)return I.lastNeed=2,"�"}}function d(I){var B=this.lastTotal-this.lastNeed,H=c(this,I);if(H!==void 0)return H;if(this.lastNeed<=I.length)return I.copy(this.lastChar,B,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);I.copy(this.lastChar,B,0,I.length),this.lastNeed-=I.length}function m(I,B){var H=u(this,I,B);if(!this.lastNeed)return I.toString("utf8",B);this.lastTotal=H;var F=I.length-(H-this.lastNeed);return I.copy(this.lastChar,0,F),I.toString("utf8",B,F)}function M(I){var B=I&&I.length?this.write(I):"";return this.lastNeed?B+"�":B}function S(I,B){if((I.length-B)%2===0){var H=I.toString("utf16le",B);if(H){var F=H.charCodeAt(H.length-1);if(F>=55296&&F<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1],H.slice(0,-1)}return H}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=I[I.length-1],I.toString("utf16le",B,I.length-1)}function R(I){var B=I&&I.length?this.write(I):"";if(this.lastNeed){var H=this.lastTotal-this.lastNeed;return B+this.lastChar.toString("utf16le",0,H)}return B}function C(I,B){var H=(I.length-B)%3;return H===0?I.toString("base64",B):(this.lastNeed=3-H,this.lastTotal=3,H===1?this.lastChar[0]=I[I.length-1]:(this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1]),I.toString("base64",B,I.length-H))}function P(I){var B=I&&I.length?this.write(I):"";return this.lastNeed?B+this.lastChar.toString("base64",0,3-this.lastNeed):B}function k(I){return I.toString(this.encoding)}function L(I){return I&&I.length?this.write(I):""}return Qc}var f1=_a.codes.ERR_STREAM_PREMATURE_CLOSE;function T9(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];e.apply(this,i)}}}function O9(){}function I9(e){return e.setHeader&&typeof e.abort=="function"}function gM(e,t,r){if(typeof t=="function")return gM(e,null,t);t||(t={}),r=T9(r||O9);var i=t.readable||t.readable!==!1&&e.readable,a=t.writable||t.writable!==!1&&e.writable,n=function(){e.writable||c()},u=e._writableState&&e._writableState.finished,c=function(){a=!1,u=!0,i||r.call(e)},d=e._readableState&&e._readableState.endEmitted,m=function(){i=!1,d=!0,a||r.call(e)},M=function(P){r.call(e,P)},S=function(){var P;if(i&&!d)return(!e._readableState||!e._readableState.ended)&&(P=new f1),r.call(e,P);if(a&&!u)return(!e._writableState||!e._writableState.ended)&&(P=new f1),r.call(e,P)},R=function(){e.req.on("finish",c)};return I9(e)?(e.on("complete",c),e.on("abort",S),e.req?R():e.on("request",R)):a&&!e._writableState&&(e.on("end",n),e.on("close",n)),e.on("end",m),e.on("finish",c),t.error!==!1&&e.on("error",M),e.on("close",S),function(){e.removeListener("complete",c),e.removeListener("abort",S),e.removeListener("request",R),e.req&&e.req.removeListener("finish",c),e.removeListener("end",n),e.removeListener("close",n),e.removeListener("finish",c),e.removeListener("end",m),e.removeListener("error",M),e.removeListener("close",S)}}var Wv=gM,ed,u1;function P9(){if(u1)return ed;u1=1;var e;function t(H,F,W){return F=r(F),F in H?Object.defineProperty(H,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):H[F]=W,H}function r(H){var F=i(H,"string");return typeof F=="symbol"?F:String(F)}function i(H,F){if(typeof H!="object"||H===null)return H;var W=H[Symbol.toPrimitive];if(W!==void 0){var Y=W.call(H,F||"default");if(typeof Y!="object")return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(H)}var a=Wv,n=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),M=Symbol("handlePromise"),S=Symbol("stream");function R(H,F){return{value:H,done:F}}function C(H){var F=H[n];if(F!==null){var W=H[S].read();W!==null&&(H[m]=null,H[n]=null,H[u]=null,F(R(W,!1)))}}function P(H){we.nextTick(C,H)}function k(H,F){return function(W,Y){H.then(function(){if(F[d]){W(R(void 0,!0));return}F[M](W,Y)},Y)}}var L=Object.getPrototypeOf(function(){}),I=Object.setPrototypeOf((e={get stream(){return this[S]},next:function(){var F=this,W=this[c];if(W!==null)return Promise.reject(W);if(this[d])return Promise.resolve(R(void 0,!0));if(this[S].destroyed)return new Promise(function(V,oe){we.nextTick(function(){F[c]?oe(F[c]):V(R(void 0,!0))})});var Y=this[m],ie;if(Y)ie=new Promise(k(Y,this));else{var J=this[S].read();if(J!==null)return Promise.resolve(R(J,!1));ie=new Promise(this[M])}return this[m]=ie,ie}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var F=this;return new Promise(function(W,Y){F[S].destroy(null,function(ie){if(ie){Y(ie);return}W(R(void 0,!0))})})}),e),L),B=function(F){var W,Y=Object.create(I,(W={},t(W,S,{value:F,writable:!0}),t(W,n,{value:null,writable:!0}),t(W,u,{value:null,writable:!0}),t(W,c,{value:null,writable:!0}),t(W,d,{value:F._readableState.endEmitted,writable:!0}),t(W,M,{value:function(J,V){var oe=Y[S].read();oe?(Y[m]=null,Y[n]=null,Y[u]=null,J(R(oe,!1))):(Y[n]=J,Y[u]=V)},writable:!0}),W));return Y[m]=null,a(F,function(ie){if(ie&&ie.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=Y[u];J!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,J(ie)),Y[c]=ie;return}var V=Y[n];V!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,V(R(void 0,!0))),Y[d]=!0}),F.on("readable",P.bind(null,Y)),Y};return ed=B,ed}var td,l1;function C9(){return l1||(l1=1,td=function(){throw new Error("Readable.from is not available in the browser")}),td}var rd,h1;function mM(){if(h1)return rd;h1=1,rd=V;var e;V.ReadableState=J,Or.EventEmitter;var t=function(y,O){return y.listeners(O).length},r=q_,i=ke.Buffer,a=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function n(b){return i.from(b)}function u(b){return i.isBuffer(b)||b instanceof a}var c=ei,d;c&&c.debuglog?d=c.debuglog("stream"):d=function(){};var m=g9(),M=cM,S=pM,R=S.getHighWaterMark,C=_a.codes,P=C.ERR_INVALID_ARG_TYPE,k=C.ERR_STREAM_PUSH_AFTER_EOF,L=C.ERR_METHOD_NOT_IMPLEMENTED,I=C.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,B,H,F;Ze(V,r);var W=M.errorOrDestroy,Y=["error","close","destroy","pause","resume"];function ie(b,y,O){if(typeof b.prependListener=="function")return b.prependListener(y,O);!b._events||!b._events[y]?b.on(y,O):Array.isArray(b._events[y])?b._events[y].unshift(O):b._events[y]=[O,b._events[y]]}function J(b,y,O){e=e||hs(),b=b||{},typeof O!="boolean"&&(O=y instanceof e),this.objectMode=!!b.objectMode,O&&(this.objectMode=this.objectMode||!!b.readableObjectMode),this.highWaterMark=R(this,b,"readableHighWaterMark",O),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=b.emitClose!==!1,this.autoDestroy=!!b.autoDestroy,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(B||(B=Xr().StringDecoder),this.decoder=new B(b.encoding),this.encoding=b.encoding)}function V(b){if(e=e||hs(),!(this instanceof V))return new V(b);var y=this instanceof e;this._readableState=new J(b,this,y),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),r.call(this)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(y){this._readableState&&(this._readableState.destroyed=y)}}),V.prototype.destroy=M.destroy,V.prototype._undestroy=M.undestroy,V.prototype._destroy=function(b,y){y(b)},V.prototype.push=function(b,y){var O=this._readableState,q;return O.objectMode?q=!0:typeof b=="string"&&(y=y||O.defaultEncoding,y!==O.encoding&&(b=i.from(b,y),y=""),q=!0),oe(this,b,y,!1,q)},V.prototype.unshift=function(b){return oe(this,b,null,!0,!1)};function oe(b,y,O,q,X){d("readableAddChunk",y);var D=b._readableState;if(y===null)D.reading=!1,p(b,D);else{var N;if(X||(N=o(D,y)),N)W(b,N);else if(D.objectMode||y&&y.length>0)if(typeof y!="string"&&!D.objectMode&&Object.getPrototypeOf(y)!==i.prototype&&(y=n(y)),q)D.endEmitted?W(b,new I):_(b,D,y,!0);else if(D.ended)W(b,new k);else{if(D.destroyed)return!1;D.reading=!1,D.decoder&&!O?(y=D.decoder.write(y),D.objectMode||y.length!==0?_(b,D,y,!1):g(b,D)):_(b,D,y,!1)}else q||(D.reading=!1,g(b,D))}return!D.ended&&(D.length<D.highWaterMark||D.length===0)}function _(b,y,O,q){y.flowing&&y.length===0&&!y.sync?(y.awaitDrain=0,b.emit("data",O)):(y.length+=y.objectMode?1:O.length,q?y.buffer.unshift(O):y.buffer.push(O),y.needReadable&&w(b)),g(b,y)}function o(b,y){var O;return!u(y)&&typeof y!="string"&&y!==void 0&&!b.objectMode&&(O=new P("chunk",["string","Buffer","Uint8Array"],y)),O}V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(b){B||(B=Xr().StringDecoder);var y=new B(b);this._readableState.decoder=y,this._readableState.encoding=this._readableState.decoder.encoding;for(var O=this._readableState.buffer.head,q="";O!==null;)q+=y.write(O.data),O=O.next;return this._readableState.buffer.clear(),q!==""&&this._readableState.buffer.push(q),this._readableState.length=q.length,this};var f=1073741824;function l(b){return b>=f?b=f:(b--,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,b|=b>>>16,b++),b}function h(b,y){return b<=0||y.length===0&&y.ended?0:y.objectMode?1:b!==b?y.flowing&&y.length?y.buffer.head.data.length:y.length:(b>y.highWaterMark&&(y.highWaterMark=l(b)),b<=y.length?b:y.ended?y.length:(y.needReadable=!0,0))}V.prototype.read=function(b){d("read",b),b=parseInt(b,10);var y=this._readableState,O=b;if(b!==0&&(y.emittedReadable=!1),b===0&&y.needReadable&&((y.highWaterMark!==0?y.length>=y.highWaterMark:y.length>0)||y.ended))return d("read: emitReadable",y.length,y.ended),y.length===0&&y.ended?U(this):w(this),null;if(b=h(b,y),b===0&&y.ended)return y.length===0&&U(this),null;var q=y.needReadable;d("need readable",q),(y.length===0||y.length-b<y.highWaterMark)&&(q=!0,d("length less than watermark",q)),y.ended||y.reading?(q=!1,d("reading or ended",q)):q&&(d("do read"),y.reading=!0,y.sync=!0,y.length===0&&(y.needReadable=!0),this._read(y.highWaterMark),y.sync=!1,y.reading||(b=h(O,y)));var X;return b>0?X=E(b,y):X=null,X===null?(y.needReadable=y.length<=y.highWaterMark,b=0):(y.length-=b,y.awaitDrain=0),y.length===0&&(y.ended||(y.needReadable=!0),O!==b&&y.ended&&U(this)),X!==null&&this.emit("data",X),X};function p(b,y){if(d("onEofChunk"),!y.ended){if(y.decoder){var O=y.decoder.end();O&&O.length&&(y.buffer.push(O),y.length+=y.objectMode?1:O.length)}y.ended=!0,y.sync?w(b):(y.needReadable=!1,y.emittedReadable||(y.emittedReadable=!0,x(b)))}}function w(b){var y=b._readableState;d("emitReadable",y.needReadable,y.emittedReadable),y.needReadable=!1,y.emittedReadable||(d("emitReadable",y.flowing),y.emittedReadable=!0,we.nextTick(x,b))}function x(b){var y=b._readableState;d("emitReadable_",y.destroyed,y.length,y.ended),!y.destroyed&&(y.length||y.ended)&&(b.emit("readable"),y.emittedReadable=!1),y.needReadable=!y.flowing&&!y.ended&&y.length<=y.highWaterMark,A(b)}function g(b,y){y.readingMore||(y.readingMore=!0,we.nextTick(s,b,y))}function s(b,y){for(;!y.reading&&!y.ended&&(y.length<y.highWaterMark||y.flowing&&y.length===0);){var O=y.length;if(d("maybeReadMore read 0"),b.read(0),O===y.length)break}y.readingMore=!1}V.prototype._read=function(b){W(this,new L("_read()"))},V.prototype.pipe=function(b,y){var O=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=b;break;case 1:q.pipes=[q.pipes,b];break;default:q.pipes.push(b);break}q.pipesCount+=1,d("pipe count=%d opts=%j",q.pipesCount,y);var X=(!y||y.end!==!1)&&b!==we.stdout&&b!==we.stderr,D=X?j:le;q.endEmitted?we.nextTick(D):O.once("end",D),b.on("unpipe",N);function N(ce,pe){d("onunpipe"),ce===O&&pe&&pe.hasUnpiped===!1&&(pe.hasUnpiped=!0,te())}function j(){d("onend"),b.end()}var z=v(O);b.on("drain",z);var se=!1;function te(){d("cleanup"),b.removeListener("close",Q),b.removeListener("finish",ue),b.removeListener("drain",z),b.removeListener("error",Ee),b.removeListener("unpipe",N),O.removeListener("end",j),O.removeListener("end",le),O.removeListener("data",ne),se=!0,q.awaitDrain&&(!b._writableState||b._writableState.needDrain)&&z()}O.on("data",ne);function ne(ce){d("ondata");var pe=b.write(ce);d("dest.write",pe),pe===!1&&((q.pipesCount===1&&q.pipes===b||q.pipesCount>1&&Z(q.pipes,b)!==-1)&&!se&&(d("false write response, pause",q.awaitDrain),q.awaitDrain++),O.pause())}function Ee(ce){d("onerror",ce),le(),b.removeListener("error",Ee),t(b,"error")===0&&W(b,ce)}ie(b,"error",Ee);function Q(){b.removeListener("finish",ue),le()}b.once("close",Q);function ue(){d("onfinish"),b.removeListener("close",Q),le()}b.once("finish",ue);function le(){d("unpipe"),O.unpipe(b)}return b.emit("pipe",O),q.flowing||(d("pipe resume"),O.resume()),b};function v(b){return function(){var O=b._readableState;d("pipeOnDrain",O.awaitDrain),O.awaitDrain&&O.awaitDrain--,O.awaitDrain===0&&t(b,"data")&&(O.flowing=!0,A(b))}}V.prototype.unpipe=function(b){var y=this._readableState,O={hasUnpiped:!1};if(y.pipesCount===0)return this;if(y.pipesCount===1)return b&&b!==y.pipes?this:(b||(b=y.pipes),y.pipes=null,y.pipesCount=0,y.flowing=!1,b&&b.emit("unpipe",this,O),this);if(!b){var q=y.pipes,X=y.pipesCount;y.pipes=null,y.pipesCount=0,y.flowing=!1;for(var D=0;D<X;D++)q[D].emit("unpipe",this,{hasUnpiped:!1});return this}var N=Z(y.pipes,b);return N===-1?this:(y.pipes.splice(N,1),y.pipesCount-=1,y.pipesCount===1&&(y.pipes=y.pipes[0]),b.emit("unpipe",this,O),this)},V.prototype.on=function(b,y){var O=r.prototype.on.call(this,b,y),q=this._readableState;return b==="data"?(q.readableListening=this.listenerCount("readable")>0,q.flowing!==!1&&this.resume()):b==="readable"&&!q.endEmitted&&!q.readableListening&&(q.readableListening=q.needReadable=!0,q.flowing=!1,q.emittedReadable=!1,d("on readable",q.length,q.reading),q.length?w(this):q.reading||we.nextTick($,this)),O},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(b,y){var O=r.prototype.removeListener.call(this,b,y);return b==="readable"&&we.nextTick(T,this),O},V.prototype.removeAllListeners=function(b){var y=r.prototype.removeAllListeners.apply(this,arguments);return(b==="readable"||b===void 0)&&we.nextTick(T,this),y};function T(b){var y=b._readableState;y.readableListening=b.listenerCount("readable")>0,y.resumeScheduled&&!y.paused?y.flowing=!0:b.listenerCount("data")>0&&b.resume()}function $(b){d("readable nexttick read 0"),b.read(0)}V.prototype.resume=function(){var b=this._readableState;return b.flowing||(d("resume"),b.flowing=!b.readableListening,G(this,b)),b.paused=!1,this};function G(b,y){y.resumeScheduled||(y.resumeScheduled=!0,we.nextTick(ee,b,y))}function ee(b,y){d("resume",y.reading),y.reading||b.read(0),y.resumeScheduled=!1,b.emit("resume"),A(b),y.flowing&&!y.reading&&b.read(0)}V.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function A(b){var y=b._readableState;for(d("flow",y.flowing);y.flowing&&b.read()!==null;);}V.prototype.wrap=function(b){var y=this,O=this._readableState,q=!1;b.on("end",function(){if(d("wrapped end"),O.decoder&&!O.ended){var N=O.decoder.end();N&&N.length&&y.push(N)}y.push(null)}),b.on("data",function(N){if(d("wrapped data"),O.decoder&&(N=O.decoder.write(N)),!(O.objectMode&&N==null)&&!(!O.objectMode&&(!N||!N.length))){var j=y.push(N);j||(q=!0,b.pause())}});for(var X in b)this[X]===void 0&&typeof b[X]=="function"&&(this[X]=function(j){return function(){return b[j].apply(b,arguments)}}(X));for(var D=0;D<Y.length;D++)b.on(Y[D],this.emit.bind(this,Y[D]));return this._read=function(N){d("wrapped _read",N),q&&(q=!1,b.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return H===void 0&&(H=P9()),H(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(y){this._readableState&&(this._readableState.flowing=y)}}),V._fromList=E,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function E(b,y){if(y.length===0)return null;var O;return y.objectMode?O=y.buffer.shift():!b||b>=y.length?(y.decoder?O=y.buffer.join(""):y.buffer.length===1?O=y.buffer.first():O=y.buffer.concat(y.length),y.buffer.clear()):O=y.buffer.consume(b,y.decoder),O}function U(b){var y=b._readableState;d("endReadable",y.endEmitted),y.endEmitted||(y.ended=!0,we.nextTick(K,y,b))}function K(b,y){if(d("endReadableNT",b.endEmitted,b.length),!b.endEmitted&&b.length===0&&(b.endEmitted=!0,y.readable=!1,y.emit("end"),b.autoDestroy)){var O=y._writableState;(!O||O.autoDestroy&&O.finished)&&y.destroy()}}typeof Symbol=="function"&&(V.from=function(b,y){return F===void 0&&(F=C9()),F(V,b,y)});function Z(b,y){for(var O=0,q=b.length;O<q;O++)if(b[O]===y)return O;return-1}return rd}var yM=kn,Ih=_a.codes,B9=Ih.ERR_METHOD_NOT_IMPLEMENTED,L9=Ih.ERR_MULTIPLE_CALLBACK,N9=Ih.ERR_TRANSFORM_ALREADY_TRANSFORMING,k9=Ih.ERR_TRANSFORM_WITH_LENGTH_0,Ph=hs();Ze(kn,Ph);function $9(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new L9);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function kn(e){if(!(this instanceof kn))return new kn(e);Ph.call(this,e),this._transformState={afterTransform:$9.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",D9)}function D9(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){c1(e,t,r)}):c1(this,null,null)}kn.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ph.prototype.push.call(this,e,t)};kn.prototype._transform=function(e,t,r){r(new B9("_transform()"))};kn.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};kn.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};kn.prototype._destroy=function(e,t){Ph.prototype._destroy.call(this,e,function(r){t(r)})};function c1(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new k9;if(e._transformState.transforming)throw new N9;return e.push(null)}var F9=Jf,bM=yM;Ze(Jf,bM);function Jf(e){if(!(this instanceof Jf))return new Jf(e);bM.call(this,e)}Jf.prototype._transform=function(e,t,r){r(null,e)};var id;function j9(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var wM=_a.codes,U9=wM.ERR_MISSING_ARGS,H9=wM.ERR_STREAM_DESTROYED;function d1(e){if(e)throw e}function q9(e){return e.setHeader&&typeof e.abort=="function"}function W9(e,t,r,i){i=j9(i);var a=!1;e.on("close",function(){a=!0}),id===void 0&&(id=Wv),id(e,{readable:t,writable:r},function(u){if(u)return i(u);a=!0,i()});var n=!1;return function(u){if(!a&&!n){if(n=!0,q9(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(u||new H9("pipe"))}}}function p1(e){e()}function K9(e,t){return e.pipe(t)}function V9(e){return!e.length||typeof e[e.length-1]!="function"?d1:e.pop()}function z9(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=V9(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new U9("streams");var a,n=t.map(function(u,c){var d=c<t.length-1,m=c>0;return W9(u,d,m,function(M){a||(a=M),M&&n.forEach(p1),!d&&(n.forEach(p1),i(a))})});return t.reduce(K9)}var G9=z9;(function(e,t){t=e.exports=mM(),t.Stream=t,t.Readable=t,t.Writable=vM(),t.Duplex=hs(),t.Transform=yM,t.PassThrough=F9,t.finished=Wv,t.pipeline=G9})(ip,ip.exports);var vu=ip.exports;const Y9=Fv,Z9=vu.Readable,X9={objectMode:!0},J9={clean:!0};function Ao(e){if(!(this instanceof Ao))return new Ao(e);this.options=e||{},this.options=Y9(J9,e),this._inflights=new Map}Ao.prototype.put=function(e,t){return this._inflights.set(e.messageId,e),t&&t(),this};Ao.prototype.createStream=function(){const e=new Z9(X9),t=[];let r=!1,i=0;return this._inflights.forEach(function(a,n){t.push(a)}),e._read=function(){!r&&i<t.length?this.push(t[i++]):this.push(null)},e.destroy=function(){if(r)return;const a=this;r=!0,setTimeout(function(){a.emit("close")},0)},e};Ao.prototype.del=function(e,t){return e=this._inflights.get(e.messageId),e?(this._inflights.delete(e.messageId),t(null,e)):t&&t(new Error("missing packet")),this};Ao.prototype.get=function(e,t){return e=this._inflights.get(e.messageId),e?t(null,e):t&&t(new Error("missing packet")),this};Ao.prototype.close=function(e){this.options.clean&&(this._inflights=null),e&&e()};var _M=Ao;function cs(e){if(!(this instanceof cs))return new cs(e);this.aliasToTopic={},this.max=e}cs.prototype.put=function(e,t){return t===0||t>this.max?!1:(this.aliasToTopic[t]=e,this.length=Object.keys(this.aliasToTopic).length,!0)};cs.prototype.getTopicByAlias=function(e){return this.aliasToTopic[e]};cs.prototype.clear=function(){this.aliasToTopic={}};var Q9=cs,nd,v1;function eA(){return v1||(v1=1,nd=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),nd}var tA=Nt;Nt.Node=la;Nt.create=Nt;function Nt(e){var t=this;if(t instanceof Nt||(t=new Nt),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(a){t.push(a)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}Nt.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};Nt.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};Nt.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};Nt.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)iA(this,arguments[e]);return this.length};Nt.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)nA(this,arguments[e]);return this.length};Nt.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};Nt.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};Nt.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,i=0;r!==null;i++)e.call(t,r.value,i,this),r=r.next};Nt.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,i=this.length-1;r!==null;i--)e.call(t,r.value,i,this),r=r.prev};Nt.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};Nt.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};Nt.prototype.map=function(e,t){t=t||this;for(var r=new Nt,i=this.head;i!==null;)r.push(e.call(t,i.value,this)),i=i.next;return r};Nt.prototype.mapReverse=function(e,t){t=t||this;for(var r=new Nt,i=this.tail;i!==null;)r.push(e.call(t,i.value,this)),i=i.prev;return r};Nt.prototype.reduce=function(e,t){var r,i=this.head;if(arguments.length>1)r=t;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;i!==null;a++)r=e(r,i.value,a),i=i.next;return r};Nt.prototype.reduceReverse=function(e,t){var r,i=this.tail;if(arguments.length>1)r=t;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;i!==null;a--)r=e(r,i.value,a),i=i.prev;return r};Nt.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};Nt.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};Nt.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new Nt;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,a=this.head;a!==null&&i<e;i++)a=a.next;for(;a!==null&&i<t;i++,a=a.next)r.push(a.value);return r};Nt.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new Nt;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,a=this.tail;a!==null&&i>t;i--)a=a.prev;for(;a!==null&&i>e;i--,a=a.prev)r.push(a.value);return r};Nt.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,a=this.head;a!==null&&i<e;i++)a=a.next;for(var n=[],i=0;a&&i<t;i++)n.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var i=0;i<r.length;i++)a=rA(this,a,r[i]);return n};Nt.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=t,this.tail=e,this};function rA(e,t,r){var i=t===e.head?new la(r,null,t,e):new la(r,t,t.next,e);return i.next===null&&(e.tail=i),i.prev===null&&(e.head=i),e.length++,i}function iA(e,t){e.tail=new la(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function nA(e,t){e.head=new la(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function la(e,t,r,i){if(!(this instanceof la))return new la(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{eA()(Nt)}catch{}const oA=tA,Vo=Symbol("max"),En=Symbol("length"),Na=Symbol("lengthCalculator"),kf=Symbol("allowStale"),Zo=Symbol("maxAge"),Sn=Symbol("dispose"),g1=Symbol("noDisposeOnSet"),fr=Symbol("lruList"),Pi=Symbol("cache"),MM=Symbol("updateAgeOnGet"),od=()=>1;class aA{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Vo]=t.max||1/0;const r=t.length||od;if(this[Na]=typeof r!="function"?od:r,this[kf]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Zo]=t.maxAge||0,this[Sn]=t.dispose,this[g1]=t.noDisposeOnSet||!1,this[MM]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Vo]=t||1/0,Js(this)}get max(){return this[Vo]}set allowStale(t){this[kf]=!!t}get allowStale(){return this[kf]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Zo]=t,Js(this)}get maxAge(){return this[Zo]}set lengthCalculator(t){typeof t!="function"&&(t=od),t!==this[Na]&&(this[Na]=t,this[En]=0,this[fr].forEach(r=>{r.length=this[Na](r.value,r.key),this[En]+=r.length})),Js(this)}get lengthCalculator(){return this[Na]}get length(){return this[En]}get itemCount(){return this[fr].length}rforEach(t,r){r=r||this;for(let i=this[fr].tail;i!==null;){const a=i.prev;m1(this,t,i,r),i=a}}forEach(t,r){r=r||this;for(let i=this[fr].head;i!==null;){const a=i.next;m1(this,t,i,r),i=a}}keys(){return this[fr].toArray().map(t=>t.key)}values(){return this[fr].toArray().map(t=>t.value)}reset(){this[Sn]&&this[fr]&&this[fr].length&&this[fr].forEach(t=>this[Sn](t.key,t.value)),this[Pi]=new Map,this[fr]=new oA,this[En]=0}dump(){return this[fr].map(t=>Ul(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[fr]}set(t,r,i){if(i=i||this[Zo],i&&typeof i!="number")throw new TypeError("maxAge must be a number");const a=i?Date.now():0,n=this[Na](r,t);if(this[Pi].has(t)){if(n>this[Vo])return es(this,this[Pi].get(t)),!1;const d=this[Pi].get(t).value;return this[Sn]&&(this[g1]||this[Sn](t,d.value)),d.now=a,d.maxAge=i,d.value=r,this[En]+=n-d.length,d.length=n,this.get(t),Js(this),!0}const u=new sA(t,r,n,a,i);return u.length>this[Vo]?(this[Sn]&&this[Sn](t,r),!1):(this[En]+=u.length,this[fr].unshift(u),this[Pi].set(t,this[fr].head),Js(this),!0)}has(t){if(!this[Pi].has(t))return!1;const r=this[Pi].get(t).value;return!Ul(this,r)}get(t){return ad(this,t,!0)}peek(t){return ad(this,t,!1)}pop(){const t=this[fr].tail;return t?(es(this,t),t.value):null}del(t){es(this,this[Pi].get(t))}load(t){this.reset();const r=Date.now();for(let i=t.length-1;i>=0;i--){const a=t[i],n=a.e||0;if(n===0)this.set(a.k,a.v);else{const u=n-r;u>0&&this.set(a.k,a.v,u)}}}prune(){this[Pi].forEach((t,r)=>ad(this,r,!1))}}const ad=(e,t,r)=>{const i=e[Pi].get(t);if(i){const a=i.value;if(Ul(e,a)){if(es(e,i),!e[kf])return}else r&&(e[MM]&&(i.value.now=Date.now()),e[fr].unshiftNode(i));return a.value}},Ul=(e,t)=>{if(!t||!t.maxAge&&!e[Zo])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[Zo]&&r>e[Zo]},Js=e=>{if(e[En]>e[Vo])for(let t=e[fr].tail;e[En]>e[Vo]&&t!==null;){const r=t.prev;es(e,t),t=r}},es=(e,t)=>{if(t){const r=t.value;e[Sn]&&e[Sn](r.key,r.value),e[En]-=r.length,e[Pi].delete(r.key),e[fr].removeNode(t)}};class sA{constructor(t,r,i,a,n){this.key=t,this.value=r,this.length=i,this.now=a,this.maxAge=n||0}}const m1=(e,t,r,i)=>{let a=r.value;Ul(e,a)&&(es(e,r),e[kf]||(a=void 0)),a&&t.call(i,a.value,a.key,e)};var fA=aA,SM={},uA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),Ch=function(){function e(t){t===void 0&&(t=0),this.iteratorType=t}return e.prototype.equals=function(t){return this.o===t.o},e}(),Bh=function(){function e(){this.M=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this.M},enumerable:!1,configurable:!0}),e.prototype.size=function(){return this.M},e.prototype.empty=function(){return this.M===0},e}(),Kv=function(e){uA(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Bh),lA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),hA=function(e){lA(t,e);function t(r){r===void 0&&(r=[]);var i=e.call(this)||this;i.nt=[];var a=i;return r.forEach(function(n){a.push(n)}),i}return t.prototype.clear=function(){this.M=0,this.nt=[]},t.prototype.push=function(r){return this.nt.push(r),this.M+=1,this.M},t.prototype.pop=function(){if(this.M!==0)return this.M-=1,this.nt.pop()},t.prototype.top=function(){return this.nt[this.M-1]},t}(Bh);const cA=hA;var dA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),pA=function(e){dA(t,e);function t(r){r===void 0&&(r=[]);var i=e.call(this)||this;i.A=0,i.tt=[];var a=i;return r.forEach(function(n){a.push(n)}),i}return t.prototype.clear=function(){this.tt=[],this.M=this.A=0},t.prototype.push=function(r){var i=this.tt.length;if(this.A/i>.5&&this.A+this.M>=i&&i>4096){for(var a=this.M,n=0;n<a;++n)this.tt[n]=this.tt[this.A+n];this.A=0,this.tt[this.M]=r}else this.tt[this.A+this.M]=r;return++this.M},t.prototype.pop=function(){if(this.M!==0){var r=this.tt[this.A++];return this.M-=1,r}},t.prototype.front=function(){if(this.M!==0)return this.tt[this.A]},t}(Bh);const vA=pA;var gA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),y1=globalThis&&globalThis.q||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,n=[],u;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)n.push(a.value)}catch(c){u={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return n},b1=globalThis&&globalThis.D||function(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,n;i<a;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},mA=function(e){gA(t,e);function t(r,i,a){r===void 0&&(r=[]),i===void 0&&(i=function(m,M){return m>M?-1:m<M?1:0}),a===void 0&&(a=!0);var n=e.call(this)||this;if(n.$=i,Array.isArray(r))n.ii=a?b1([],y1(r),!1):r;else{n.ii=[];var u=n;r.forEach(function(m){u.ii.push(m)})}n.M=n.ii.length;for(var c=n.M>>1,d=n.M-1>>1;d>=0;--d)n.ri(d,c);return n}return t.prototype.ti=function(r){for(var i=this.ii[r];r>0;){var a=r-1>>1,n=this.ii[a];if(this.$(n,i)<=0)break;this.ii[r]=n,r=a}this.ii[r]=i},t.prototype.ri=function(r,i){for(var a=this.ii[r];r<i;){var n=r<<1|1,u=n+1,c=this.ii[n];if(u<this.M&&this.$(c,this.ii[u])>0&&(n=u,c=this.ii[u]),this.$(c,a)>=0)break;this.ii[r]=c,r=n}this.ii[r]=a},t.prototype.clear=function(){this.M=0,this.ii.length=0},t.prototype.push=function(r){this.ii.push(r),this.ti(this.M),this.M+=1},t.prototype.pop=function(){if(this.M!==0){var r=this.ii[0],i=this.ii.pop();return this.M-=1,this.M&&(this.ii[0]=i,this.ri(0,this.M>>1)),r}},t.prototype.top=function(){return this.ii[0]},t.prototype.find=function(r){return this.ii.indexOf(r)>=0},t.prototype.remove=function(r){var i=this.ii.indexOf(r);return i<0?!1:(i===0?this.pop():i===this.M-1?(this.ii.pop(),this.M-=1):(this.ii.splice(i,1,this.ii.pop()),this.M-=1,this.ti(i),this.ri(i,this.M>>1)),!0)},t.prototype.updateItem=function(r){var i=this.ii.indexOf(r);return i<0?!1:(this.ti(i),this.ri(i,this.M>>1),!0)},t.prototype.toArray=function(){return b1([],y1(this.ii),!1)},t}(Bh);const yA=mA;var bA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),wA=function(e){bA(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Kv);const Vv=wA;function zt(){throw new RangeError("Iterator access denied!")}var _A=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),xM=function(e){_A(t,e);function t(r,i){var a=e.call(this,i)||this;return a.o=r,a.iteratorType===0?(a.pre=function(){return this.o===0&&zt(),this.o-=1,this},a.next=function(){return this.o===this.container.size()&&zt(),this.o+=1,this}):(a.pre=function(){return this.o===this.container.size()-1&&zt(),this.o+=1,this},a.next=function(){return this.o===-1&&zt(),this.o-=1,this}),a}return Object.defineProperty(t.prototype,"pointer",{get:function(){return this.container.getElementByPos(this.o)},set:function(r){this.container.setElementByPos(this.o,r)},enumerable:!1,configurable:!0}),t}(Ch),EM=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),MA=globalThis&&globalThis.i||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(m){return function(M){return d([m,M])}}function d(m){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=m[0]&2?a.return:m[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,m[1])).done)return n;switch(a=0,n&&(m=[m[0]&2,n.value]),m[0]){case 0:case 1:n=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!n||m[1]>n[0]&&m[1]<n[3])){r.label=m[1];break}if(m[0]===6&&r.label<n[1]){r.label=n[1],n=m;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(m);break}n[2]&&r.ops.pop(),r.trys.pop();continue}m=t.call(e,r)}catch(M){m=[6,M],a=0}finally{i=n=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},w1=globalThis&&globalThis.q||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,n=[],u;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)n.push(a.value)}catch(c){u={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return n},_1=globalThis&&globalThis.D||function(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,n;i<a;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},SA=globalThis&&globalThis.V||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Qs=function(e){EM(t,e);function t(r,i,a){var n=e.call(this,r,a)||this;return n.container=i,n}return t.prototype.copy=function(){return new t(this.o,this.container,this.iteratorType)},t}(xM),xA=function(e){EM(t,e);function t(r,i){r===void 0&&(r=[]),i===void 0&&(i=!0);var a=e.call(this)||this;if(Array.isArray(r))a.J=i?_1([],w1(r),!1):r,a.M=r.length;else{a.J=[];var n=a;r.forEach(function(u){n.pushBack(u)})}return a}return t.prototype.clear=function(){this.M=0,this.J.length=0},t.prototype.begin=function(){return new Qs(0,this)},t.prototype.end=function(){return new Qs(this.M,this)},t.prototype.rBegin=function(){return new Qs(this.M-1,this,1)},t.prototype.rEnd=function(){return new Qs(-1,this,1)},t.prototype.front=function(){return this.J[0]},t.prototype.back=function(){return this.J[this.M-1]},t.prototype.getElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;return this.J[r]},t.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;return this.J.splice(r,1),this.M-=1,this.M},t.prototype.eraseElementByValue=function(r){for(var i=0,a=0;a<this.M;++a)this.J[a]!==r&&(this.J[i++]=this.J[a]);return this.M=this.J.length=i,this.M},t.prototype.eraseElementByIterator=function(r){var i=r.o;return r=r.next(),this.eraseElementByPos(i),r},t.prototype.pushBack=function(r){return this.J.push(r),this.M+=1,this.M},t.prototype.popBack=function(){if(this.M!==0)return this.M-=1,this.J.pop()},t.prototype.setElementByPos=function(r,i){if(r<0||r>this.M-1)throw new RangeError;this.J[r]=i},t.prototype.insert=function(r,i,a){var n;if(a===void 0&&(a=1),r<0||r>this.M)throw new RangeError;return(n=this.J).splice.apply(n,_1([r,0],w1(new Array(a).fill(i)),!1)),this.M+=a,this.M},t.prototype.find=function(r){for(var i=0;i<this.M;++i)if(this.J[i]===r)return new Qs(i,this);return this.end()},t.prototype.reverse=function(){this.J.reverse()},t.prototype.unique=function(){for(var r=1,i=1;i<this.M;++i)this.J[i]!==this.J[i-1]&&(this.J[r++]=this.J[i]);return this.M=this.J.length=r,this.M},t.prototype.sort=function(r){this.J.sort(r)},t.prototype.forEach=function(r){for(var i=0;i<this.M;++i)r(this.J[i],i,this)},t.prototype[Symbol.iterator]=function(){return function(){return MA(this,function(r){switch(r.label){case 0:return[5,SA(this.J)];case 1:return r.sent(),[2]}})}.bind(this)()},t}(Vv);const EA=xA;var RM=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),RA=globalThis&&globalThis.i||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(m){return function(M){return d([m,M])}}function d(m){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=m[0]&2?a.return:m[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,m[1])).done)return n;switch(a=0,n&&(m=[m[0]&2,n.value]),m[0]){case 0:case 1:n=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!n||m[1]>n[0]&&m[1]<n[3])){r.label=m[1];break}if(m[0]===6&&r.label<n[1]){r.label=n[1],n=m;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(m);break}n[2]&&r.ops.pop(),r.trys.pop();continue}m=t.call(e,r)}catch(M){m=[6,M],a=0}finally{i=n=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},ef=function(e){RM(t,e);function t(r,i,a,n){var u=e.call(this,n)||this;return u.o=r,u.h=i,u.container=a,u.iteratorType===0?(u.pre=function(){return this.o.L===this.h&&zt(),this.o=this.o.L,this},u.next=function(){return this.o===this.h&&zt(),this.o=this.o.m,this}):(u.pre=function(){return this.o.m===this.h&&zt(),this.o=this.o.m,this},u.next=function(){return this.o===this.h&&zt(),this.o=this.o.L,this}),u}return Object.defineProperty(t.prototype,"pointer",{get:function(){return this.o===this.h&&zt(),this.o.p},set:function(r){this.o===this.h&&zt(),this.o.p=r},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(Ch),AA=function(e){RM(t,e);function t(r){r===void 0&&(r=[]);var i=e.call(this)||this;i.h={},i.H=i.l=i.h.L=i.h.m=i.h;var a=i;return r.forEach(function(n){a.pushBack(n)}),i}return t.prototype.G=function(r){var i=r.L,a=r.m;i.m=a,a.L=i,r===this.H&&(this.H=a),r===this.l&&(this.l=i),this.M-=1},t.prototype.F=function(r,i){var a=i.m,n={p:r,L:i,m:a};i.m=n,a.L=n,i===this.h&&(this.H=n),a===this.h&&(this.l=n),this.M+=1},t.prototype.clear=function(){this.M=0,this.H=this.l=this.h.L=this.h.m=this.h},t.prototype.begin=function(){return new ef(this.H,this.h,this)},t.prototype.end=function(){return new ef(this.h,this.h,this)},t.prototype.rBegin=function(){return new ef(this.l,this.h,this,1)},t.prototype.rEnd=function(){return new ef(this.h,this.h,this,1)},t.prototype.front=function(){return this.H.p},t.prototype.back=function(){return this.l.p},t.prototype.getElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;for(var i=this.H;r--;)i=i.m;return i.p},t.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;for(var i=this.H;r--;)i=i.m;return this.G(i),this.M},t.prototype.eraseElementByValue=function(r){for(var i=this.H;i!==this.h;)i.p===r&&this.G(i),i=i.m;return this.M},t.prototype.eraseElementByIterator=function(r){var i=r.o;return i===this.h&&zt(),r=r.next(),this.G(i),r},t.prototype.pushBack=function(r){return this.F(r,this.l),this.M},t.prototype.popBack=function(){if(this.M!==0){var r=this.l.p;return this.G(this.l),r}},t.prototype.pushFront=function(r){return this.F(r,this.h),this.M},t.prototype.popFront=function(){if(this.M!==0){var r=this.H.p;return this.G(this.H),r}},t.prototype.setElementByPos=function(r,i){if(r<0||r>this.M-1)throw new RangeError;for(var a=this.H;r--;)a=a.m;a.p=i},t.prototype.insert=function(r,i,a){if(a===void 0&&(a=1),r<0||r>this.M)throw new RangeError;if(a<=0)return this.M;if(r===0)for(;a--;)this.pushFront(i);else if(r===this.M)for(;a--;)this.pushBack(i);else{for(var n=this.H,u=1;u<r;++u)n=n.m;var c=n.m;for(this.M+=a;a--;)n.m={p:i,L:n},n.m.L=n,n=n.m;n.m=c,c.L=n}return this.M},t.prototype.find=function(r){for(var i=this.H;i!==this.h;){if(i.p===r)return new ef(i,this.h,this);i=i.m}return this.end()},t.prototype.reverse=function(){if(!(this.M<=1))for(var r=this.H,i=this.l,a=0;a<<1<this.M;){var n=r.p;r.p=i.p,i.p=n,r=r.m,i=i.L,a+=1}},t.prototype.unique=function(){if(this.M<=1)return this.M;for(var r=this.H;r!==this.h;){for(var i=r;i.m!==this.h&&i.p===i.m.p;)i=i.m,this.M-=1;r.m=i.m,r.m.L=r,r=r.m}return this.M},t.prototype.sort=function(r){if(!(this.M<=1)){var i=[];this.forEach(function(n){i.push(n)}),i.sort(r);var a=this.H;i.forEach(function(n){a.p=n,a=a.m})}},t.prototype.merge=function(r){var i=this;if(this.M===0)r.forEach(function(n){i.pushBack(n)});else{var a=this.H;r.forEach(function(n){for(;a!==i.h&&a.p<=n;)a=a.m;i.F(n,a.L)})}return this.M},t.prototype.forEach=function(r){for(var i=this.H,a=0;i!==this.h;)r(i.p,a++,this),i=i.m},t.prototype[Symbol.iterator]=function(){return function(){var r;return RA(this,function(i){switch(i.label){case 0:if(this.M===0)return[2];r=this.H,i.label=1;case 1:return r===this.h?[3,3]:[4,r.p];case 2:return i.sent(),r=r.m,[3,1];case 3:return[2]}})}.bind(this)()},t}(Vv);const TA=AA;var AM=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),OA=globalThis&&globalThis.i||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(m){return function(M){return d([m,M])}}function d(m){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=m[0]&2?a.return:m[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,m[1])).done)return n;switch(a=0,n&&(m=[m[0]&2,n.value]),m[0]){case 0:case 1:n=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!n||m[1]>n[0]&&m[1]<n[3])){r.label=m[1];break}if(m[0]===6&&r.label<n[1]){r.label=n[1],n=m;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(m);break}n[2]&&r.ops.pop(),r.trys.pop();continue}m=t.call(e,r)}catch(M){m=[6,M],a=0}finally{i=n=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},IA=globalThis&&globalThis.q||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,n=[],u;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)n.push(a.value)}catch(c){u={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return n},PA=globalThis&&globalThis.D||function(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,n;i<a;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},tf=function(e){AM(t,e);function t(r,i,a){var n=e.call(this,r,a)||this;return n.container=i,n}return t.prototype.copy=function(){return new t(this.o,this.container,this.iteratorType)},t}(xM),CA=function(e){AM(t,e);function t(r,i){r===void 0&&(r=[]),i===void 0&&(i=4096);var a=e.call(this)||this;a.A=0,a.S=0,a.R=0,a.k=0,a.C=0,a.j=[];var n=function(){if(typeof r.length=="number")return r.length;if(typeof r.size=="number")return r.size;if(typeof r.size=="function")return r.size();throw new TypeError("Cannot get the length or size of the container")}();a.B=i,a.C=Math.max(Math.ceil(n/a.B),1);for(var u=0;u<a.C;++u)a.j.push(new Array(a.B));var c=Math.ceil(n/a.B);a.A=a.R=(a.C>>1)-(c>>1),a.S=a.k=a.B-n%a.B>>1;var d=a;return r.forEach(function(m){d.pushBack(m)}),a}return t.prototype.O=function(){for(var r=[],i=Math.max(this.C>>1,1),a=0;a<i;++a)r[a]=new Array(this.B);for(var a=this.A;a<this.C;++a)r[r.length]=this.j[a];for(var a=0;a<this.R;++a)r[r.length]=this.j[a];r[r.length]=PA([],IA(this.j[this.R]),!1),this.A=i,this.R=r.length-1;for(var a=0;a<i;++a)r[r.length]=new Array(this.B);this.j=r,this.C=r.length},t.prototype.T=function(r){var i=this.S+r+1,a=i%this.B,n=a-1,u=this.A+(i-a)/this.B;return a===0&&(u-=1),u%=this.C,n<0&&(n+=this.B),{curNodeBucketIndex:u,curNodePointerIndex:n}},t.prototype.clear=function(){this.j=[new Array(this.B)],this.C=1,this.A=this.R=this.M=0,this.S=this.k=this.B>>1},t.prototype.begin=function(){return new tf(0,this)},t.prototype.end=function(){return new tf(this.M,this)},t.prototype.rBegin=function(){return new tf(this.M-1,this,1)},t.prototype.rEnd=function(){return new tf(-1,this,1)},t.prototype.front=function(){if(this.M!==0)return this.j[this.A][this.S]},t.prototype.back=function(){if(this.M!==0)return this.j[this.R][this.k]},t.prototype.pushBack=function(r){return this.M&&(this.k<this.B-1?this.k+=1:this.R<this.C-1?(this.R+=1,this.k=0):(this.R=0,this.k=0),this.R===this.A&&this.k===this.S&&this.O()),this.M+=1,this.j[this.R][this.k]=r,this.M},t.prototype.popBack=function(){if(this.M!==0){var r=this.j[this.R][this.k];return this.M!==1&&(this.k>0?this.k-=1:this.R>0?(this.R-=1,this.k=this.B-1):(this.R=this.C-1,this.k=this.B-1)),this.M-=1,r}},t.prototype.pushFront=function(r){return this.M&&(this.S>0?this.S-=1:this.A>0?(this.A-=1,this.S=this.B-1):(this.A=this.C-1,this.S=this.B-1),this.A===this.R&&this.S===this.k&&this.O()),this.M+=1,this.j[this.A][this.S]=r,this.M},t.prototype.popFront=function(){if(this.M!==0){var r=this.j[this.A][this.S];return this.M!==1&&(this.S<this.B-1?this.S+=1:this.A<this.C-1?(this.A+=1,this.S=0):(this.A=0,this.S=0)),this.M-=1,r}},t.prototype.getElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;var i=this.T(r),a=i.curNodeBucketIndex,n=i.curNodePointerIndex;return this.j[a][n]},t.prototype.setElementByPos=function(r,i){if(r<0||r>this.M-1)throw new RangeError;var a=this.T(r),n=a.curNodeBucketIndex,u=a.curNodePointerIndex;this.j[n][u]=i},t.prototype.insert=function(r,i,a){if(a===void 0&&(a=1),r<0||r>this.M)throw new RangeError;if(r===0)for(;a--;)this.pushFront(i);else if(r===this.M)for(;a--;)this.pushBack(i);else{for(var n=[],u=r;u<this.M;++u)n.push(this.getElementByPos(u));this.cut(r-1);for(var u=0;u<a;++u)this.pushBack(i);for(var u=0;u<n.length;++u)this.pushBack(n[u])}return this.M},t.prototype.cut=function(r){if(r<0)return this.clear(),0;var i=this.T(r),a=i.curNodeBucketIndex,n=i.curNodePointerIndex;return this.R=a,this.k=n,this.M=r+1,this.M},t.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;if(r===0)this.popFront();else if(r===this.M-1)this.popBack();else{for(var i=[],a=r+1;a<this.M;++a)i.push(this.getElementByPos(a));this.cut(r),this.popBack();var n=this;i.forEach(function(u){n.pushBack(u)})}return this.M},t.prototype.eraseElementByValue=function(r){if(this.M===0)return 0;for(var i=[],a=0;a<this.M;++a){var n=this.getElementByPos(a);n!==r&&i.push(n)}for(var u=i.length,a=0;a<u;++a)this.setElementByPos(a,i[a]);return this.cut(u-1)},t.prototype.eraseElementByIterator=function(r){var i=r.o;return this.eraseElementByPos(i),r=r.next(),r},t.prototype.find=function(r){for(var i=0;i<this.M;++i)if(this.getElementByPos(i)===r)return new tf(i,this);return this.end()},t.prototype.reverse=function(){for(var r=0,i=this.M-1;r<i;){var a=this.getElementByPos(r);this.setElementByPos(r,this.getElementByPos(i)),this.setElementByPos(i,a),r+=1,i-=1}},t.prototype.unique=function(){if(this.M<=1)return this.M;for(var r=1,i=this.getElementByPos(0),a=1;a<this.M;++a){var n=this.getElementByPos(a);n!==i&&(i=n,this.setElementByPos(r++,n))}for(;this.M>r;)this.popBack();return this.M},t.prototype.sort=function(r){for(var i=[],a=0;a<this.M;++a)i.push(this.getElementByPos(a));i.sort(r);for(var a=0;a<this.M;++a)this.setElementByPos(a,i[a])},t.prototype.shrinkToFit=function(){if(this.M!==0){var r=[];this.forEach(function(a){r.push(a)}),this.C=Math.max(Math.ceil(this.M/this.B),1),this.M=this.A=this.R=this.S=this.k=0,this.j=[];for(var i=0;i<this.C;++i)this.j.push(new Array(this.B));for(var i=0;i<r.length;++i)this.pushBack(r[i])}},t.prototype.forEach=function(r){for(var i=0;i<this.M;++i)r(this.getElementByPos(i),i,this)},t.prototype[Symbol.iterator]=function(){return function(){var r;return OA(this,function(i){switch(i.label){case 0:r=0,i.label=1;case 1:return r<this.M?[4,this.getElementByPos(r)]:[3,4];case 2:i.sent(),i.label=3;case 3:return++r,[3,1];case 4:return[2]}})}.bind(this)()},t}(Vv);const BA=CA;var LA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),TM=function(){function e(t,r){this.ee=1,this.u=void 0,this.p=void 0,this.K=void 0,this.N=void 0,this.rr=void 0,this.u=t,this.p=r}return e.prototype.L=function(){var t=this;if(t.ee===1&&t.rr.rr===t)t=t.N;else if(t.K)for(t=t.K;t.N;)t=t.N;else{for(var r=t.rr;r.K===t;)t=r,r=t.rr;t=r}return t},e.prototype.m=function(){var t=this;if(t.N){for(t=t.N;t.K;)t=t.K;return t}else{for(var r=t.rr;r.N===t;)t=r,r=t.rr;return t.N!==r?r:t}},e.prototype.ne=function(){var t=this.rr,r=this.N,i=r.K;return t.rr===this?t.rr=r:t.K===this?t.K=r:t.N=r,r.rr=t,r.K=this,this.rr=r,this.N=i,i&&(i.rr=this),r},e.prototype.te=function(){var t=this.rr,r=this.K,i=r.N;return t.rr===this?t.rr=r:t.K===this?t.K=r:t.N=r,r.rr=t,r.N=this,this.rr=r,this.K=i,i&&(i.rr=this),r},e}(),NA=function(e){LA(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.tr=1,r}return t.prototype.ne=function(){var r=e.prototype.ne.call(this);return this.ie(),r.ie(),r},t.prototype.te=function(){var r=e.prototype.te.call(this);return this.ie(),r.ie(),r},t.prototype.ie=function(){this.tr=1,this.K&&(this.tr+=this.K.tr),this.N&&(this.tr+=this.N.tr)},t}(TM),kA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),M1=globalThis&&globalThis.q||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,n=[],u;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)n.push(a.value)}catch(c){u={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return n},S1=globalThis&&globalThis.V||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},$A=function(e){kA(t,e);function t(r,i){r===void 0&&(r=function(n,u){return n<u?-1:n>u?1:0}),i===void 0&&(i=!1);var a=e.call(this)||this;return a.W=void 0,a.$=r,i?(a.re=NA,a.v=function(n,u,c){var d=this.se(n,u,c);if(d){for(var m=d.rr;m!==this.h;)m.tr+=1,m=m.rr;var M=this.fe(d);if(M){var S=M,R=S.parentNode,C=S.grandParent,P=S.curNode;R.ie(),C.ie(),P.ie()}}return this.M},a.G=function(n){for(var u=this.he(n);u!==this.h;)u.tr-=1,u=u.rr}):(a.re=TM,a.v=function(n,u,c){var d=this.se(n,u,c);return d&&this.fe(d),this.M},a.G=a.he),a.h=new a.re,a}return t.prototype.U=function(r,i){for(var a=this.h;r;){var n=this.$(r.u,i);if(n<0)r=r.N;else if(n>0)a=r,r=r.K;else return r}return a},t.prototype.X=function(r,i){for(var a=this.h;r;){var n=this.$(r.u,i);n<=0?r=r.N:(a=r,r=r.K)}return a},t.prototype.Y=function(r,i){for(var a=this.h;r;){var n=this.$(r.u,i);if(n<0)a=r,r=r.N;else if(n>0)r=r.K;else return r}return a},t.prototype.Z=function(r,i){for(var a=this.h;r;){var n=this.$(r.u,i);n<0?(a=r,r=r.N):r=r.K}return a},t.prototype.ue=function(r){for(;;){var i=r.rr;if(i===this.h)return;if(r.ee===1){r.ee=0;return}if(r===i.K){var a=i.N;if(a.ee===1)a.ee=0,i.ee=1,i===this.W?this.W=i.ne():i.ne();else if(a.N&&a.N.ee===1){a.ee=i.ee,i.ee=0,a.N.ee=0,i===this.W?this.W=i.ne():i.ne();return}else a.K&&a.K.ee===1?(a.ee=1,a.K.ee=0,a.te()):(a.ee=1,r=i)}else{var a=i.K;if(a.ee===1)a.ee=0,i.ee=1,i===this.W?this.W=i.te():i.te();else if(a.K&&a.K.ee===1){a.ee=i.ee,i.ee=0,a.K.ee=0,i===this.W?this.W=i.te():i.te();return}else a.N&&a.N.ee===1?(a.ee=1,a.N.ee=0,a.ne()):(a.ee=1,r=i)}}},t.prototype.he=function(r){var i,a;if(this.M===1)return this.clear(),this.h;for(var n=r;n.K||n.N;){if(n.N)for(n=n.N;n.K;)n=n.K;else n=n.K;i=M1([n.u,r.u],2),r.u=i[0],n.u=i[1],a=M1([n.p,r.p],2),r.p=a[0],n.p=a[1],r=n}this.h.K===n?this.h.K=n.rr:this.h.N===n&&(this.h.N=n.rr),this.ue(n);var u=n.rr;return n===u.K?u.K=void 0:u.N=void 0,this.M-=1,this.W.ee=0,u},t.prototype.ae=function(r,i){if(r===void 0)return!1;var a=this.ae(r.K,i);return a||i(r)?!0:this.ae(r.N,i)},t.prototype.fe=function(r){for(;;){var i=r.rr;if(i.ee===0)return;var a=i.rr;if(i===a.K){var n=a.N;if(n&&n.ee===1){if(n.ee=i.ee=0,a===this.W)return;a.ee=1,r=a;continue}else if(r===i.N){if(r.ee=0,r.K&&(r.K.rr=i),r.N&&(r.N.rr=a),i.N=r.K,a.K=r.N,r.K=i,r.N=a,a===this.W)this.W=r,this.h.rr=r;else{var u=a.rr;u.K===a?u.K=r:u.N=r}return r.rr=a.rr,i.rr=r,a.rr=r,a.ee=1,{parentNode:i,grandParent:a,curNode:r}}else i.ee=0,a===this.W?this.W=a.te():a.te(),a.ee=1}else{var n=a.K;if(n&&n.ee===1){if(n.ee=i.ee=0,a===this.W)return;a.ee=1,r=a;continue}else if(r===i.K){if(r.ee=0,r.K&&(r.K.rr=a),r.N&&(r.N.rr=i),a.N=r.K,i.K=r.N,r.K=a,r.N=i,a===this.W)this.W=r,this.h.rr=r;else{var u=a.rr;u.K===a?u.K=r:u.N=r}return r.rr=a.rr,i.rr=r,a.rr=r,a.ee=1,{parentNode:i,grandParent:a,curNode:r}}else i.ee=0,a===this.W?this.W=a.ne():a.ne(),a.ee=1}return}},t.prototype.se=function(r,i,a){if(this.W===void 0){this.M+=1,this.W=new this.re(r,i),this.W.ee=0,this.W.rr=this.h,this.h.rr=this.W,this.h.K=this.W,this.h.N=this.W;return}var n,u=this.h.K,c=this.$(u.u,r);if(c===0){u.p=i;return}else if(c>0)u.K=new this.re(r,i),u.K.rr=u,n=u.K,this.h.K=n;else{var d=this.h.N,m=this.$(d.u,r);if(m===0){d.p=i;return}else if(m<0)d.N=new this.re(r,i),d.N.rr=d,n=d.N,this.h.N=n;else{if(a!==void 0){var M=a.o;if(M!==this.h){var S=this.$(M.u,r);if(S===0){M.p=i;return}else if(S>0){var R=M.L(),C=this.$(R.u,r);if(C===0){R.p=i;return}else C<0&&(n=new this.re(r,i),R.N===void 0?(R.N=n,n.rr=R):(M.K=n,n.rr=M))}}}if(n===void 0)for(n=this.W;;){var P=this.$(n.u,r);if(P>0){if(n.K===void 0){n.K=new this.re(r,i),n.K.rr=n,n=n.K;break}n=n.K}else if(P<0){if(n.N===void 0){n.N=new this.re(r,i),n.N.rr=n,n=n.N;break}n=n.N}else{n.p=i;return}}}}return this.M+=1,n},t.prototype.g=function(r,i){for(;r;){var a=this.$(r.u,i);if(a<0)r=r.N;else if(a>0)r=r.K;else return r}return r||this.h},t.prototype.clear=function(){this.M=0,this.W=void 0,this.h.rr=void 0,this.h.K=this.h.N=void 0},t.prototype.updateKeyByIterator=function(r,i){var a=r.o;if(a===this.h&&zt(),this.M===1)return a.u=i,!0;if(a===this.h.K)return this.$(a.m().u,i)>0?(a.u=i,!0):!1;if(a===this.h.N)return this.$(a.L().u,i)<0?(a.u=i,!0):!1;var n=a.L().u;if(this.$(n,i)>=0)return!1;var u=a.m().u;return this.$(u,i)<=0?!1:(a.u=i,!0)},t.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;var i=0,a=this;return this.ae(this.W,function(n){return r===i?(a.G(n),!0):(i+=1,!1)}),this.M},t.prototype.eraseElementByKey=function(r){if(this.M===0)return!1;var i=this.g(this.W,r);return i===this.h?!1:(this.G(i),!0)},t.prototype.eraseElementByIterator=function(r){var i=r.o;i===this.h&&zt();var a=i.N===void 0,n=r.iteratorType===0;return n?a&&r.next():(!a||i.K===void 0)&&r.next(),this.G(i),r},t.prototype.forEach=function(r){var i,a,n=0;try{for(var u=S1(this),c=u.next();!c.done;c=u.next()){var d=c.value;r(d,n++,this)}}catch(m){i={error:m}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}},t.prototype.getElementByPos=function(r){var i,a;if(r<0||r>this.M-1)throw new RangeError;var n,u=0;try{for(var c=S1(this),d=c.next();!d.done;d=c.next()){var m=d.value;if(u===r){n=m;break}u+=1}}catch(M){i={error:M}}finally{try{d&&!d.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return n},t.prototype.getHeight=function(){if(this.M===0)return 0;var r=function(i){return i?Math.max(r(i.K),r(i.N))+1:0};return r(this.W)},t}(Kv);const OM=$A;var DA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),FA=function(e){DA(t,e);function t(r,i,a){var n=e.call(this,a)||this;return n.o=r,n.h=i,n.iteratorType===0?(n.pre=function(){return this.o===this.h.K&&zt(),this.o=this.o.L(),this},n.next=function(){return this.o===this.h&&zt(),this.o=this.o.m(),this}):(n.pre=function(){return this.o===this.h.N&&zt(),this.o=this.o.m(),this},n.next=function(){return this.o===this.h&&zt(),this.o=this.o.L(),this}),n}return Object.defineProperty(t.prototype,"index",{get:function(){var r=this.o,i=this.h.rr;if(r===this.h)return i?i.tr-1:0;var a=0;for(r.K&&(a+=r.K.tr);r!==i;){var n=r.rr;r===n.N&&(a+=1,n.K&&(a+=n.K.tr)),r=n}return a},enumerable:!1,configurable:!0}),t}(Ch);const IM=FA;var PM=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),jA=globalThis&&globalThis.i||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(m){return function(M){return d([m,M])}}function d(m){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=m[0]&2?a.return:m[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,m[1])).done)return n;switch(a=0,n&&(m=[m[0]&2,n.value]),m[0]){case 0:case 1:n=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!n||m[1]>n[0]&&m[1]<n[3])){r.label=m[1];break}if(m[0]===6&&r.label<n[1]){r.label=n[1],n=m;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(m);break}n[2]&&r.ops.pop(),r.trys.pop();continue}m=t.call(e,r)}catch(M){m=[6,M],a=0}finally{i=n=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},x1=globalThis&&globalThis.V||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},vn=function(e){PM(t,e);function t(r,i,a,n){var u=e.call(this,r,i,n)||this;return u.container=a,u}return Object.defineProperty(t.prototype,"pointer",{get:function(){return this.o===this.h&&zt(),this.o.u},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(IM),UA=function(e){PM(t,e);function t(r,i,a){r===void 0&&(r=[]);var n=e.call(this,i,a)||this,u=n;return r.forEach(function(c){u.insert(c)}),n}return t.prototype.P=function(r){return jA(this,function(i){switch(i.label){case 0:return r===void 0?[2]:[5,x1(this.P(r.K))];case 1:return i.sent(),[4,r.u];case 2:return i.sent(),[5,x1(this.P(r.N))];case 3:return i.sent(),[2]}})},t.prototype.begin=function(){return new vn(this.h.K||this.h,this.h,this)},t.prototype.end=function(){return new vn(this.h,this.h,this)},t.prototype.rBegin=function(){return new vn(this.h.N||this.h,this.h,this,1)},t.prototype.rEnd=function(){return new vn(this.h,this.h,this,1)},t.prototype.front=function(){return this.h.K?this.h.K.u:void 0},t.prototype.back=function(){return this.h.N?this.h.N.u:void 0},t.prototype.insert=function(r,i){return this.v(r,void 0,i)},t.prototype.find=function(r){var i=this.g(this.W,r);return new vn(i,this.h,this)},t.prototype.lowerBound=function(r){var i=this.U(this.W,r);return new vn(i,this.h,this)},t.prototype.upperBound=function(r){var i=this.X(this.W,r);return new vn(i,this.h,this)},t.prototype.reverseLowerBound=function(r){var i=this.Y(this.W,r);return new vn(i,this.h,this)},t.prototype.reverseUpperBound=function(r){var i=this.Z(this.W,r);return new vn(i,this.h,this)},t.prototype.union=function(r){var i=this;return r.forEach(function(a){i.insert(a)}),this.M},t.prototype[Symbol.iterator]=function(){return this.P(this.W)},t}(OM);const HA=UA;var CM=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),qA=globalThis&&globalThis.i||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(m){return function(M){return d([m,M])}}function d(m){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=m[0]&2?a.return:m[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,m[1])).done)return n;switch(a=0,n&&(m=[m[0]&2,n.value]),m[0]){case 0:case 1:n=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!n||m[1]>n[0]&&m[1]<n[3])){r.label=m[1];break}if(m[0]===6&&r.label<n[1]){r.label=n[1],n=m;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(m);break}n[2]&&r.ops.pop(),r.trys.pop();continue}m=t.call(e,r)}catch(M){m=[6,M],a=0}finally{i=n=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},E1=globalThis&&globalThis.V||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},gn=function(e){CM(t,e);function t(r,i,a,n){var u=e.call(this,r,i,n)||this;return u.container=a,u}return Object.defineProperty(t.prototype,"pointer",{get:function(){this.o===this.h&&zt();var r=this;return new Proxy([],{get:function(i,a){if(a==="0")return r.o.u;if(a==="1")return r.o.p},set:function(i,a,n){if(a!=="1")throw new TypeError("props must be 1");return r.o.p=n,!0}})},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(IM),WA=function(e){CM(t,e);function t(r,i,a){r===void 0&&(r=[]);var n=e.call(this,i,a)||this,u=n;return r.forEach(function(c){u.setElement(c[0],c[1])}),n}return t.prototype.P=function(r){return qA(this,function(i){switch(i.label){case 0:return r===void 0?[2]:[5,E1(this.P(r.K))];case 1:return i.sent(),[4,[r.u,r.p]];case 2:return i.sent(),[5,E1(this.P(r.N))];case 3:return i.sent(),[2]}})},t.prototype.begin=function(){return new gn(this.h.K||this.h,this.h,this)},t.prototype.end=function(){return new gn(this.h,this.h,this)},t.prototype.rBegin=function(){return new gn(this.h.N||this.h,this.h,this,1)},t.prototype.rEnd=function(){return new gn(this.h,this.h,this,1)},t.prototype.front=function(){if(this.M!==0){var r=this.h.K;return[r.u,r.p]}},t.prototype.back=function(){if(this.M!==0){var r=this.h.N;return[r.u,r.p]}},t.prototype.lowerBound=function(r){var i=this.U(this.W,r);return new gn(i,this.h,this)},t.prototype.upperBound=function(r){var i=this.X(this.W,r);return new gn(i,this.h,this)},t.prototype.reverseLowerBound=function(r){var i=this.Y(this.W,r);return new gn(i,this.h,this)},t.prototype.reverseUpperBound=function(r){var i=this.Z(this.W,r);return new gn(i,this.h,this)},t.prototype.setElement=function(r,i,a){return this.v(r,i,a)},t.prototype.find=function(r){var i=this.g(this.W,r);return new gn(i,this.h,this)},t.prototype.getElementByKey=function(r){var i=this.g(this.W,r);return i.p},t.prototype.union=function(r){var i=this;return r.forEach(function(a){i.setElement(a[0],a[1])}),this.M},t.prototype[Symbol.iterator]=function(){return this.P(this.W)},t}(OM);const KA=WA;function cl(e){var t=typeof e;return t==="object"&&e!==null||t==="function"}var BM=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),LM=function(e){BM(t,e);function t(r,i,a){var n=e.call(this,a)||this;return n.o=r,n.h=i,n.iteratorType===0?(n.pre=function(){return this.o.L===this.h&&zt(),this.o=this.o.L,this},n.next=function(){return this.o===this.h&&zt(),this.o=this.o.m,this}):(n.pre=function(){return this.o.m===this.h&&zt(),this.o=this.o.m,this},n.next=function(){return this.o===this.h&&zt(),this.o=this.o.L,this}),n}return t}(Ch),NM=function(e){BM(t,e);function t(){var r=e.call(this)||this;return r._=[],r.I={},r.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(r.I,null),r.h={},r.h.L=r.h.m=r.H=r.l=r.h,r}return t.prototype.G=function(r){var i=r.L,a=r.m;i.m=a,a.L=i,r===this.H&&(this.H=a),r===this.l&&(this.l=i),this.M-=1},t.prototype.v=function(r,i,a){a===void 0&&(a=cl(r));var n;if(a){var u=r[this.HASH_TAG];if(u!==void 0)return this._[u].p=i,this.M;Object.defineProperty(r,this.HASH_TAG,{value:this._.length,configurable:!0}),n={u:r,p:i,L:this.l,m:this.h},this._.push(n)}else{var c=this.I[r];if(c)return c.p=i,this.M;n={u:r,p:i,L:this.l,m:this.h},this.I[r]=n}return this.M===0?(this.H=n,this.h.m=n):this.l.m=n,this.l=n,this.h.L=n,++this.M},t.prototype.g=function(r,i){if(i===void 0&&(i=cl(r)),i){var a=r[this.HASH_TAG];return a===void 0?this.h:this._[a]}else return this.I[r]||this.h},t.prototype.clear=function(){var r=this.HASH_TAG;this._.forEach(function(i){delete i.u[r]}),this._=[],this.I={},Object.setPrototypeOf(this.I,null),this.M=0,this.H=this.l=this.h.L=this.h.m=this.h},t.prototype.eraseElementByKey=function(r,i){var a;if(i===void 0&&(i=cl(r)),i){var n=r[this.HASH_TAG];if(n===void 0)return!1;delete r[this.HASH_TAG],a=this._[n],delete this._[n]}else{if(a=this.I[r],a===void 0)return!1;delete this.I[r]}return this.G(a),!0},t.prototype.eraseElementByIterator=function(r){var i=r.o;return i===this.h&&zt(),this.G(i),r.next()},t.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;for(var i=this.H;r--;)i=i.m;return this.G(i),this.M},t}(Kv),kM=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),VA=globalThis&&globalThis.i||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(m){return function(M){return d([m,M])}}function d(m){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=m[0]&2?a.return:m[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,m[1])).done)return n;switch(a=0,n&&(m=[m[0]&2,n.value]),m[0]){case 0:case 1:n=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!n||m[1]>n[0]&&m[1]<n[3])){r.label=m[1];break}if(m[0]===6&&r.label<n[1]){r.label=n[1],n=m;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(m);break}n[2]&&r.ops.pop(),r.trys.pop();continue}m=t.call(e,r)}catch(M){m=[6,M],a=0}finally{i=n=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},rf=function(e){kM(t,e);function t(r,i,a,n){var u=e.call(this,r,i,n)||this;return u.container=a,u}return Object.defineProperty(t.prototype,"pointer",{get:function(){return this.o===this.h&&zt(),this.o.u},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(LM),zA=function(e){kM(t,e);function t(r){r===void 0&&(r=[]);var i=e.call(this)||this,a=i;return r.forEach(function(n){a.insert(n)}),i}return t.prototype.begin=function(){return new rf(this.H,this.h,this)},t.prototype.end=function(){return new rf(this.h,this.h,this)},t.prototype.rBegin=function(){return new rf(this.l,this.h,this,1)},t.prototype.rEnd=function(){return new rf(this.h,this.h,this,1)},t.prototype.front=function(){return this.H.u},t.prototype.back=function(){return this.l.u},t.prototype.insert=function(r,i){return this.v(r,void 0,i)},t.prototype.getElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;for(var i=this.H;r--;)i=i.m;return i.u},t.prototype.find=function(r,i){var a=this.g(r,i);return new rf(a,this.h,this)},t.prototype.forEach=function(r){for(var i=0,a=this.H;a!==this.h;)r(a.u,i++,this),a=a.m},t.prototype[Symbol.iterator]=function(){return function(){var r;return VA(this,function(i){switch(i.label){case 0:r=this.H,i.label=1;case 1:return r===this.h?[3,3]:[4,r.u];case 2:return i.sent(),r=r.m,[3,1];case 3:return[2]}})}.bind(this)()},t}(NM);const GA=zA;var $M=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),YA=globalThis&&globalThis.i||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(m){return function(M){return d([m,M])}}function d(m){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=m[0]&2?a.return:m[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,m[1])).done)return n;switch(a=0,n&&(m=[m[0]&2,n.value]),m[0]){case 0:case 1:n=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!n||m[1]>n[0]&&m[1]<n[3])){r.label=m[1];break}if(m[0]===6&&r.label<n[1]){r.label=n[1],n=m;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(m);break}n[2]&&r.ops.pop(),r.trys.pop();continue}m=t.call(e,r)}catch(M){m=[6,M],a=0}finally{i=n=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},nf=function(e){$M(t,e);function t(r,i,a,n){var u=e.call(this,r,i,n)||this;return u.container=a,u}return Object.defineProperty(t.prototype,"pointer",{get:function(){this.o===this.h&&zt();var r=this;return new Proxy([],{get:function(i,a){if(a==="0")return r.o.u;if(a==="1")return r.o.p},set:function(i,a,n){if(a!=="1")throw new TypeError("props must be 1");return r.o.p=n,!0}})},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(LM),ZA=function(e){$M(t,e);function t(r){r===void 0&&(r=[]);var i=e.call(this)||this,a=i;return r.forEach(function(n){a.setElement(n[0],n[1])}),i}return t.prototype.begin=function(){return new nf(this.H,this.h,this)},t.prototype.end=function(){return new nf(this.h,this.h,this)},t.prototype.rBegin=function(){return new nf(this.l,this.h,this,1)},t.prototype.rEnd=function(){return new nf(this.h,this.h,this,1)},t.prototype.front=function(){if(this.M!==0)return[this.H.u,this.H.p]},t.prototype.back=function(){if(this.M!==0)return[this.l.u,this.l.p]},t.prototype.setElement=function(r,i,a){return this.v(r,i,a)},t.prototype.getElementByKey=function(r,i){if(i===void 0&&(i=cl(r)),i){var a=r[this.HASH_TAG];return a!==void 0?this._[a].p:void 0}var n=this.I[r];return n?n.p:void 0},t.prototype.getElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;for(var i=this.H;r--;)i=i.m;return[i.u,i.p]},t.prototype.find=function(r,i){var a=this.g(r,i);return new nf(a,this.h,this)},t.prototype.forEach=function(r){for(var i=0,a=this.H;a!==this.h;)r([a.u,a.p],i++,this),a=a.m},t.prototype[Symbol.iterator]=function(){return function(){var r;return YA(this,function(i){switch(i.label){case 0:r=this.H,i.label=1;case 1:return r===this.h?[3,3]:[4,[r.u,r.p]];case 2:return i.sent(),r=r.m,[3,1];case 3:return[2]}})}.bind(this)()},t}(NM);const XA=ZA,JA=Object.freeze(Object.defineProperty({__proto__:null,Deque:BA,HashMap:XA,HashSet:GA,LinkList:TA,OrderedMap:KA,OrderedSet:HA,PriorityQueue:yA,Queue:vA,Stack:cA,Vector:EA},Symbol.toStringTag,{value:"Module"})),QA=tv(JA);var hp={exports:{}},sd,R1;function eT(){if(R1)return sd;R1=1;var e=1e3,t=e*60,r=t*60,i=r*24,a=i*7,n=i*365.25;sd=function(M,S){S=S||{};var R=typeof M;if(R==="string"&&M.length>0)return u(M);if(R==="number"&&isFinite(M))return S.long?d(M):c(M);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(M))};function u(M){if(M=String(M),!(M.length>100)){var S=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(M);if(S){var R=parseFloat(S[1]),C=(S[2]||"ms").toLowerCase();switch(C){case"years":case"year":case"yrs":case"yr":case"y":return R*n;case"weeks":case"week":case"w":return R*a;case"days":case"day":case"d":return R*i;case"hours":case"hour":case"hrs":case"hr":case"h":return R*r;case"minutes":case"minute":case"mins":case"min":case"m":return R*t;case"seconds":case"second":case"secs":case"sec":case"s":return R*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return R;default:return}}}}function c(M){var S=Math.abs(M);return S>=i?Math.round(M/i)+"d":S>=r?Math.round(M/r)+"h":S>=t?Math.round(M/t)+"m":S>=e?Math.round(M/e)+"s":M+"ms"}function d(M){var S=Math.abs(M);return S>=i?m(M,S,i,"day"):S>=r?m(M,S,r,"hour"):S>=t?m(M,S,t,"minute"):S>=e?m(M,S,e,"second"):M+" ms"}function m(M,S,R,C){var P=S>=R*1.5;return Math.round(M/R)+" "+C+(P?"s":"")}return sd}function tT(e){r.debug=r,r.default=r,r.coerce=d,r.disable=n,r.enable=a,r.enabled=u,r.humanize=eT(),r.destroy=m,Object.keys(e).forEach(M=>{r[M]=e[M]}),r.names=[],r.skips=[],r.formatters={};function t(M){let S=0;for(let R=0;R<M.length;R++)S=(S<<5)-S+M.charCodeAt(R),S|=0;return r.colors[Math.abs(S)%r.colors.length]}r.selectColor=t;function r(M){let S,R=null,C,P;function k(...L){if(!k.enabled)return;const I=k,B=Number(new Date),H=B-(S||B);I.diff=H,I.prev=S,I.curr=B,S=B,L[0]=r.coerce(L[0]),typeof L[0]!="string"&&L.unshift("%O");let F=0;L[0]=L[0].replace(/%([a-zA-Z%])/g,(Y,ie)=>{if(Y==="%%")return"%";F++;const J=r.formatters[ie];if(typeof J=="function"){const V=L[F];Y=J.call(I,V),L.splice(F,1),F--}return Y}),r.formatArgs.call(I,L),(I.log||r.log).apply(I,L)}return k.namespace=M,k.useColors=r.useColors(),k.color=r.selectColor(M),k.extend=i,k.destroy=r.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>R!==null?R:(C!==r.namespaces&&(C=r.namespaces,P=r.enabled(M)),P),set:L=>{R=L}}),typeof r.init=="function"&&r.init(k),k}function i(M,S){const R=r(this.namespace+(typeof S>"u"?":":S)+M);return R.log=this.log,R}function a(M){r.save(M),r.namespaces=M,r.names=[],r.skips=[];let S;const R=(typeof M=="string"?M:"").split(/[\s,]+/),C=R.length;for(S=0;S<C;S++)R[S]&&(M=R[S].replace(/\*/g,".*?"),M[0]==="-"?r.skips.push(new RegExp("^"+M.slice(1)+"$")):r.names.push(new RegExp("^"+M+"$")))}function n(){const M=[...r.names.map(c),...r.skips.map(c).map(S=>"-"+S)].join(",");return r.enable(""),M}function u(M){if(M[M.length-1]==="*")return!0;let S,R;for(S=0,R=r.skips.length;S<R;S++)if(r.skips[S].test(M))return!1;for(S=0,R=r.names.length;S<R;S++)if(r.names[S].test(M))return!0;return!1}function c(M){return M.toString().substring(2,M.toString().length-2).replace(/\.\*\?$/,"*")}function d(M){return M instanceof Error?M.stack||M.message:M}function m(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}var rT=tT;(function(e,t){t.formatArgs=i,t.save=a,t.load=n,t.useColors=r,t.storage=u(),t.destroy=(()=>{let d=!1;return()=>{d||(d=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(d){if(d[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+d[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const m="color: "+this.color;d.splice(1,0,m,"color: inherit");let M=0,S=0;d[0].replace(/%[a-zA-Z%]/g,R=>{R!=="%%"&&(M++,R==="%c"&&(S=M))}),d.splice(S,0,m)}t.log=console.debug||console.log||(()=>{});function a(d){try{d?t.storage.setItem("debug",d):t.storage.removeItem("debug")}catch{}}function n(){let d;try{d=t.storage.getItem("debug")}catch{}return!d&&typeof we<"u"&&"env"in we&&(d={}.DEBUG),d}function u(){try{return localStorage}catch{}}e.exports=rT(t);const{formatters:c}=e.exports;c.j=function(d){try{return JSON.stringify(d)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}}})(hp,hp.exports);var zn=hp.exports;const iT=QA.OrderedSet,Qi=zn("number-allocator:trace"),nT=zn("number-allocator:error");function Lr(e,t){this.low=e,this.high=t}Lr.prototype.equals=function(e){return this.low===e.low&&this.high===e.high};Lr.prototype.compare=function(e){return this.low<e.low&&this.high<e.low?-1:e.low<this.low&&e.high<this.low?1:0};function sn(e,t){if(!(this instanceof sn))return new sn(e,t);this.min=e,this.max=t,this.ss=new iT([],(r,i)=>r.compare(i)),Qi("Create"),this.clear()}sn.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low};sn.prototype.alloc=function(){if(this.ss.size()===0)return Qi("alloc():empty"),null;const e=this.ss.begin(),t=e.pointer.low,r=e.pointer.high,i=t;return i+1<=r?this.ss.updateKeyByIterator(e,new Lr(t+1,r)):this.ss.eraseElementByPos(0),Qi("alloc():"+i),i};sn.prototype.use=function(e){const t=new Lr(e,e),r=this.ss.lowerBound(t);if(!r.equals(this.ss.end())){const i=r.pointer.low,a=r.pointer.high;return r.pointer.equals(t)?(this.ss.eraseElementByIterator(r),Qi("use():"+e),!0):i>e?!1:i===e?(this.ss.updateKeyByIterator(r,new Lr(i+1,a)),Qi("use():"+e),!0):a===e?(this.ss.updateKeyByIterator(r,new Lr(i,a-1)),Qi("use():"+e),!0):(this.ss.updateKeyByIterator(r,new Lr(e+1,a)),this.ss.insert(new Lr(i,e-1)),Qi("use():"+e),!0)}return Qi("use():failed"),!1};sn.prototype.free=function(e){if(e<this.min||e>this.max){nT("free():"+e+" is out of range");return}const t=new Lr(e,e),r=this.ss.upperBound(t);if(r.equals(this.ss.end())){if(r.equals(this.ss.begin())){this.ss.insert(t);return}r.pre();const i=r.pointer.high;r.pointer.high+1===e?this.ss.updateKeyByIterator(r,new Lr(i,e)):this.ss.insert(t)}else if(r.equals(this.ss.begin()))if(e+1===r.pointer.low){const i=r.pointer.high;this.ss.updateKeyByIterator(r,new Lr(e,i))}else this.ss.insert(t);else{const i=r.pointer.low,a=r.pointer.high;r.pre();const n=r.pointer.low;r.pointer.high+1===e?e+1===i?(this.ss.eraseElementByIterator(r),this.ss.updateKeyByIterator(r,new Lr(n,a))):this.ss.updateKeyByIterator(r,new Lr(n,e)):e+1===i?(this.ss.eraseElementByIterator(r.next()),this.ss.insert(new Lr(e,a))):this.ss.insert(t)}Qi("free():"+e)};sn.prototype.clear=function(){Qi("clear()"),this.ss.clear(),this.ss.insert(new Lr(this.min,this.max))};sn.prototype.intervalCount=function(){return this.ss.size()};sn.prototype.dump=function(){console.log("length:"+this.ss.size());for(const e of this.ss)console.log(e)};var oT=sn;const aT=oT;SM.NumberAllocator=aT;const sT=fA,fT=SM.NumberAllocator;function To(e){if(!(this instanceof To))return new To(e);e>0&&(this.aliasToTopic=new sT({max:e}),this.topicToAlias={},this.numberAllocator=new fT(1,e),this.max=e,this.length=0)}To.prototype.put=function(e,t){if(t===0||t>this.max)return!1;const r=this.aliasToTopic.get(t);return r&&delete this.topicToAlias[r],this.aliasToTopic.set(t,e),this.topicToAlias[e]=t,this.numberAllocator.use(t),this.length=this.aliasToTopic.length,!0};To.prototype.getTopicByAlias=function(e){return this.aliasToTopic.get(e)};To.prototype.getAliasByTopic=function(e){const t=this.topicToAlias[e];return typeof t<"u"&&this.aliasToTopic.get(t),t};To.prototype.clear=function(){this.aliasToTopic.reset(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0};To.prototype.getLruAlias=function(){const e=this.numberAllocator.firstVacant();return e||this.aliasToTopic.keys()[this.aliasToTopic.length-1]};var uT=To,Lh={},Nh={exports:{}},cp={exports:{}},DM=Or.EventEmitter,fd,A1;function lT(){if(A1)return fd;A1=1;function e(P,k){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(P);k&&(I=I.filter(function(B){return Object.getOwnPropertyDescriptor(P,B).enumerable})),L.push.apply(L,I)}return L}function t(P){for(var k=1;k<arguments.length;k++){var L=arguments[k]!=null?arguments[k]:{};k%2?e(Object(L),!0).forEach(function(I){r(P,I,L[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):e(Object(L)).forEach(function(I){Object.defineProperty(P,I,Object.getOwnPropertyDescriptor(L,I))})}return P}function r(P,k,L){return k=u(k),k in P?Object.defineProperty(P,k,{value:L,enumerable:!0,configurable:!0,writable:!0}):P[k]=L,P}function i(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}function a(P,k){for(var L=0;L<k.length;L++){var I=k[L];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(P,u(I.key),I)}}function n(P,k,L){return k&&a(P.prototype,k),L&&a(P,L),Object.defineProperty(P,"prototype",{writable:!1}),P}function u(P){var k=c(P,"string");return typeof k=="symbol"?k:String(k)}function c(P,k){if(typeof P!="object"||P===null)return P;var L=P[Symbol.toPrimitive];if(L!==void 0){var I=L.call(P,k||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(P)}var d=ke,m=d.Buffer,M=ei,S=M.inspect,R=S&&S.custom||"inspect";function C(P,k,L){m.prototype.copy.call(P,k,L)}return fd=function(){function P(){i(this,P),this.head=null,this.tail=null,this.length=0}return n(P,[{key:"push",value:function(L){var I={data:L,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(L){var I={data:L,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var I=this.head,B=""+I.data;I=I.next;)B+=L+I.data;return B}},{key:"concat",value:function(L){if(this.length===0)return m.alloc(0);for(var I=m.allocUnsafe(L>>>0),B=this.head,H=0;B;)C(B.data,I,H),H+=B.data.length,B=B.next;return I}},{key:"consume",value:function(L,I){var B;return L<this.head.data.length?(B=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?B=this.shift():B=I?this._getString(L):this._getBuffer(L),B}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var I=this.head,B=1,H=I.data;for(L-=H.length;I=I.next;){var F=I.data,W=L>F.length?F.length:L;if(W===F.length?H+=F:H+=F.slice(0,L),L-=W,L===0){W===F.length?(++B,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=F.slice(W));break}++B}return this.length-=B,H}},{key:"_getBuffer",value:function(L){var I=m.allocUnsafe(L),B=this.head,H=1;for(B.data.copy(I),L-=B.data.length;B=B.next;){var F=B.data,W=L>F.length?F.length:L;if(F.copy(I,I.length-L,0,W),L-=W,L===0){W===F.length?(++H,B.next?this.head=B.next:this.head=this.tail=null):(this.head=B,B.data=F.slice(W));break}++H}return this.length-=H,I}},{key:R,value:function(L,I){return S(this,t(t({},I),{},{depth:0,customInspect:!1}))}}]),P}(),fd}function hT(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,we.nextTick(dp,this,e)):we.nextTick(dp,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(n){!t&&n?r._writableState?r._writableState.errorEmitted?we.nextTick(dl,r):(r._writableState.errorEmitted=!0,we.nextTick(T1,r,n)):we.nextTick(T1,r,n):t?(we.nextTick(dl,r),t(n)):we.nextTick(dl,r)}),this)}function T1(e,t){dp(e,t),dl(e)}function dl(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function cT(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function dp(e,t){e.emit("error",t)}function dT(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}var FM={destroy:hT,undestroy:cT,errorOrDestroy:dT},Ma={};function pT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var jM={};function bi(e,t,r){r||(r=Error);function i(n,u,c){return typeof t=="string"?t:t(n,u,c)}var a=function(n){pT(u,n);function u(c,d,m){return n.call(this,i(c,d,m))||this}return u}(r);a.prototype.name=r.name,a.prototype.code=e,jM[e]=a}function O1(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function vT(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function gT(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function mT(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}bi("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);bi("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&vT(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var a;if(gT(e," argument"))a="The ".concat(e," ").concat(i," ").concat(O1(t,"type"));else{var n=mT(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(n," ").concat(i," ").concat(O1(t,"type"))}return a+=". Received type ".concat(typeof r),a},TypeError);bi("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");bi("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});bi("ERR_STREAM_PREMATURE_CLOSE","Premature close");bi("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});bi("ERR_MULTIPLE_CALLBACK","Callback called multiple times");bi("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");bi("ERR_STREAM_WRITE_AFTER_END","write after end");bi("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);bi("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);bi("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Ma.codes=jM;var yT=Ma.codes.ERR_INVALID_OPT_VALUE;function bT(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function wT(e,t,r,i){var a=bT(t,i,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var n=i?r:"highWaterMark";throw new yT(n,a)}return Math.floor(a)}return e.objectMode?16:16*1024}var UM={getHighWaterMark:wT},ud,I1;function HM(){if(I1)return ud;I1=1,ud=J;function e(A){var E=this;this.next=null,this.entry=null,this.finish=function(){ee(E,A)}}var t;J.WritableState=Y;var r={deprecate:ks},i=DM,a=ke.Buffer,n=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(A){return a.from(A)}function c(A){return a.isBuffer(A)||A instanceof n}var d=FM,m=UM,M=m.getHighWaterMark,S=Ma.codes,R=S.ERR_INVALID_ARG_TYPE,C=S.ERR_METHOD_NOT_IMPLEMENTED,P=S.ERR_MULTIPLE_CALLBACK,k=S.ERR_STREAM_CANNOT_PIPE,L=S.ERR_STREAM_DESTROYED,I=S.ERR_STREAM_NULL_VALUES,B=S.ERR_STREAM_WRITE_AFTER_END,H=S.ERR_UNKNOWN_ENCODING,F=d.errorOrDestroy;Ze(J,i);function W(){}function Y(A,E,U){t=t||ds(),A=A||{},typeof U!="boolean"&&(U=E instanceof t),this.objectMode=!!A.objectMode,U&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=M(this,A,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=A.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){p(E,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}Y.prototype.getBuffer=function(){for(var E=this.bufferedRequest,U=[];E;)U.push(E),E=E.next;return U},function(){try{Object.defineProperty(Y.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ie;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ie=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(E){return ie.call(this,E)?!0:this!==J?!1:E&&E._writableState instanceof Y}})):ie=function(E){return E instanceof this};function J(A){t=t||ds();var E=this instanceof t;if(!E&&!ie.call(J,this))return new J(A);this._writableState=new Y(A,this,E),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),i.call(this)}J.prototype.pipe=function(){F(this,new k)};function V(A,E){var U=new B;F(A,U),we.nextTick(E,U)}function oe(A,E,U,K){var Z;return U===null?Z=new I:typeof U!="string"&&!E.objectMode&&(Z=new R("chunk",["string","Buffer"],U)),Z?(F(A,Z),we.nextTick(K,Z),!1):!0}J.prototype.write=function(A,E,U){var K=this._writableState,Z=!1,b=!K.objectMode&&c(A);return b&&!a.isBuffer(A)&&(A=u(A)),typeof E=="function"&&(U=E,E=null),b?E="buffer":E||(E=K.defaultEncoding),typeof U!="function"&&(U=W),K.ending?V(this,U):(b||oe(this,K,A,U))&&(K.pendingcb++,Z=o(this,K,b,A,E,U)),Z},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&g(this,A))},J.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new H(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _(A,E,U){return!A.objectMode&&A.decodeStrings!==!1&&typeof E=="string"&&(E=a.from(E,U)),E}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(A,E,U,K,Z,b){if(!U){var y=_(E,K,Z);K!==y&&(U=!0,Z="buffer",K=y)}var O=E.objectMode?1:K.length;E.length+=O;var q=E.length<E.highWaterMark;if(q||(E.needDrain=!0),E.writing||E.corked){var X=E.lastBufferedRequest;E.lastBufferedRequest={chunk:K,encoding:Z,isBuf:U,callback:b,next:null},X?X.next=E.lastBufferedRequest:E.bufferedRequest=E.lastBufferedRequest,E.bufferedRequestCount+=1}else f(A,E,!1,O,K,Z,b);return q}function f(A,E,U,K,Z,b,y){E.writelen=K,E.writecb=y,E.writing=!0,E.sync=!0,E.destroyed?E.onwrite(new L("write")):U?A._writev(Z,E.onwrite):A._write(Z,b,E.onwrite),E.sync=!1}function l(A,E,U,K,Z){--E.pendingcb,U?(we.nextTick(Z,K),we.nextTick($,A,E),A._writableState.errorEmitted=!0,F(A,K)):(Z(K),A._writableState.errorEmitted=!0,F(A,K),$(A,E))}function h(A){A.writing=!1,A.writecb=null,A.length-=A.writelen,A.writelen=0}function p(A,E){var U=A._writableState,K=U.sync,Z=U.writecb;if(typeof Z!="function")throw new P;if(h(U),E)l(A,U,K,E,Z);else{var b=s(U)||A.destroyed;!b&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&g(A,U),K?we.nextTick(w,A,U,b,Z):w(A,U,b,Z)}}function w(A,E,U,K){U||x(A,E),E.pendingcb--,K(),$(A,E)}function x(A,E){E.length===0&&E.needDrain&&(E.needDrain=!1,A.emit("drain"))}function g(A,E){E.bufferProcessing=!0;var U=E.bufferedRequest;if(A._writev&&U&&U.next){var K=E.bufferedRequestCount,Z=new Array(K),b=E.corkedRequestsFree;b.entry=U;for(var y=0,O=!0;U;)Z[y]=U,U.isBuf||(O=!1),U=U.next,y+=1;Z.allBuffers=O,f(A,E,!0,E.length,Z,"",b.finish),E.pendingcb++,E.lastBufferedRequest=null,b.next?(E.corkedRequestsFree=b.next,b.next=null):E.corkedRequestsFree=new e(E),E.bufferedRequestCount=0}else{for(;U;){var q=U.chunk,X=U.encoding,D=U.callback,N=E.objectMode?1:q.length;if(f(A,E,!1,N,q,X,D),U=U.next,E.bufferedRequestCount--,E.writing)break}U===null&&(E.lastBufferedRequest=null)}E.bufferedRequest=U,E.bufferProcessing=!1}J.prototype._write=function(A,E,U){U(new C("_write()"))},J.prototype._writev=null,J.prototype.end=function(A,E,U){var K=this._writableState;return typeof A=="function"?(U=A,A=null,E=null):typeof E=="function"&&(U=E,E=null),A!=null&&this.write(A,E),K.corked&&(K.corked=1,this.uncork()),K.ending||G(this,K,U),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function v(A,E){A._final(function(U){E.pendingcb--,U&&F(A,U),E.prefinished=!0,A.emit("prefinish"),$(A,E)})}function T(A,E){!E.prefinished&&!E.finalCalled&&(typeof A._final=="function"&&!E.destroyed?(E.pendingcb++,E.finalCalled=!0,we.nextTick(v,A,E)):(E.prefinished=!0,A.emit("prefinish")))}function $(A,E){var U=s(E);if(U&&(T(A,E),E.pendingcb===0&&(E.finished=!0,A.emit("finish"),E.autoDestroy))){var K=A._readableState;(!K||K.autoDestroy&&K.endEmitted)&&A.destroy()}return U}function G(A,E,U){E.ending=!0,$(A,E),U&&(E.finished?we.nextTick(U):A.once("finish",U)),E.ended=!0,A.writable=!1}function ee(A,E,U){var K=A.entry;for(A.entry=null;K;){var Z=K.callback;E.pendingcb--,Z(U),K=K.next}E.corkedRequestsFree.next=A}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),J.prototype.destroy=d.destroy,J.prototype._undestroy=d.undestroy,J.prototype._destroy=function(A,E){E(A)},ud}var ld,P1;function ds(){if(P1)return ld;P1=1;var e=Object.keys||function(m){var M=[];for(var S in m)M.push(S);return M};ld=u;var t=WM(),r=HM();Ze(u,t);for(var i=e(r.prototype),a=0;a<i.length;a++){var n=i[a];u.prototype[n]||(u.prototype[n]=r.prototype[n])}function u(m){if(!(this instanceof u))return new u(m);t.call(this,m),r.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||we.nextTick(d,this)}function d(m){m.end()}return Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(M){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=M,this._writableState.destroyed=M)}}),ld}var C1=Ma.codes.ERR_STREAM_PREMATURE_CLOSE;function _T(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];e.apply(this,i)}}}function MT(){}function ST(e){return e.setHeader&&typeof e.abort=="function"}function qM(e,t,r){if(typeof t=="function")return qM(e,null,t);t||(t={}),r=_T(r||MT);var i=t.readable||t.readable!==!1&&e.readable,a=t.writable||t.writable!==!1&&e.writable,n=function(){e.writable||c()},u=e._writableState&&e._writableState.finished,c=function(){a=!1,u=!0,i||r.call(e)},d=e._readableState&&e._readableState.endEmitted,m=function(){i=!1,d=!0,a||r.call(e)},M=function(P){r.call(e,P)},S=function(){var P;if(i&&!d)return(!e._readableState||!e._readableState.ended)&&(P=new C1),r.call(e,P);if(a&&!u)return(!e._writableState||!e._writableState.ended)&&(P=new C1),r.call(e,P)},R=function(){e.req.on("finish",c)};return ST(e)?(e.on("complete",c),e.on("abort",S),e.req?R():e.on("request",R)):a&&!e._writableState&&(e.on("end",n),e.on("close",n)),e.on("end",m),e.on("finish",c),t.error!==!1&&e.on("error",M),e.on("close",S),function(){e.removeListener("complete",c),e.removeListener("abort",S),e.removeListener("request",R),e.req&&e.req.removeListener("finish",c),e.removeListener("end",n),e.removeListener("close",n),e.removeListener("finish",c),e.removeListener("end",m),e.removeListener("error",M),e.removeListener("close",S)}}var zv=qM,hd,B1;function xT(){if(B1)return hd;B1=1;var e;function t(H,F,W){return F=r(F),F in H?Object.defineProperty(H,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):H[F]=W,H}function r(H){var F=i(H,"string");return typeof F=="symbol"?F:String(F)}function i(H,F){if(typeof H!="object"||H===null)return H;var W=H[Symbol.toPrimitive];if(W!==void 0){var Y=W.call(H,F||"default");if(typeof Y!="object")return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(H)}var a=zv,n=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),M=Symbol("handlePromise"),S=Symbol("stream");function R(H,F){return{value:H,done:F}}function C(H){var F=H[n];if(F!==null){var W=H[S].read();W!==null&&(H[m]=null,H[n]=null,H[u]=null,F(R(W,!1)))}}function P(H){we.nextTick(C,H)}function k(H,F){return function(W,Y){H.then(function(){if(F[d]){W(R(void 0,!0));return}F[M](W,Y)},Y)}}var L=Object.getPrototypeOf(function(){}),I=Object.setPrototypeOf((e={get stream(){return this[S]},next:function(){var F=this,W=this[c];if(W!==null)return Promise.reject(W);if(this[d])return Promise.resolve(R(void 0,!0));if(this[S].destroyed)return new Promise(function(V,oe){we.nextTick(function(){F[c]?oe(F[c]):V(R(void 0,!0))})});var Y=this[m],ie;if(Y)ie=new Promise(k(Y,this));else{var J=this[S].read();if(J!==null)return Promise.resolve(R(J,!1));ie=new Promise(this[M])}return this[m]=ie,ie}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var F=this;return new Promise(function(W,Y){F[S].destroy(null,function(ie){if(ie){Y(ie);return}W(R(void 0,!0))})})}),e),L),B=function(F){var W,Y=Object.create(I,(W={},t(W,S,{value:F,writable:!0}),t(W,n,{value:null,writable:!0}),t(W,u,{value:null,writable:!0}),t(W,c,{value:null,writable:!0}),t(W,d,{value:F._readableState.endEmitted,writable:!0}),t(W,M,{value:function(J,V){var oe=Y[S].read();oe?(Y[m]=null,Y[n]=null,Y[u]=null,J(R(oe,!1))):(Y[n]=J,Y[u]=V)},writable:!0}),W));return Y[m]=null,a(F,function(ie){if(ie&&ie.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=Y[u];J!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,J(ie)),Y[c]=ie;return}var V=Y[n];V!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,V(R(void 0,!0))),Y[d]=!0}),F.on("readable",P.bind(null,Y)),Y};return hd=B,hd}var cd,L1;function ET(){return L1||(L1=1,cd=function(){throw new Error("Readable.from is not available in the browser")}),cd}var dd,N1;function WM(){if(N1)return dd;N1=1,dd=V;var e;V.ReadableState=J,Or.EventEmitter;var t=function(y,O){return y.listeners(O).length},r=DM,i=ke.Buffer,a=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function n(b){return i.from(b)}function u(b){return i.isBuffer(b)||b instanceof a}var c=ei,d;c&&c.debuglog?d=c.debuglog("stream"):d=function(){};var m=lT(),M=FM,S=UM,R=S.getHighWaterMark,C=Ma.codes,P=C.ERR_INVALID_ARG_TYPE,k=C.ERR_STREAM_PUSH_AFTER_EOF,L=C.ERR_METHOD_NOT_IMPLEMENTED,I=C.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,B,H,F;Ze(V,r);var W=M.errorOrDestroy,Y=["error","close","destroy","pause","resume"];function ie(b,y,O){if(typeof b.prependListener=="function")return b.prependListener(y,O);!b._events||!b._events[y]?b.on(y,O):Array.isArray(b._events[y])?b._events[y].unshift(O):b._events[y]=[O,b._events[y]]}function J(b,y,O){e=e||ds(),b=b||{},typeof O!="boolean"&&(O=y instanceof e),this.objectMode=!!b.objectMode,O&&(this.objectMode=this.objectMode||!!b.readableObjectMode),this.highWaterMark=R(this,b,"readableHighWaterMark",O),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=b.emitClose!==!1,this.autoDestroy=!!b.autoDestroy,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(B||(B=Xr().StringDecoder),this.decoder=new B(b.encoding),this.encoding=b.encoding)}function V(b){if(e=e||ds(),!(this instanceof V))return new V(b);var y=this instanceof e;this._readableState=new J(b,this,y),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),r.call(this)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(y){this._readableState&&(this._readableState.destroyed=y)}}),V.prototype.destroy=M.destroy,V.prototype._undestroy=M.undestroy,V.prototype._destroy=function(b,y){y(b)},V.prototype.push=function(b,y){var O=this._readableState,q;return O.objectMode?q=!0:typeof b=="string"&&(y=y||O.defaultEncoding,y!==O.encoding&&(b=i.from(b,y),y=""),q=!0),oe(this,b,y,!1,q)},V.prototype.unshift=function(b){return oe(this,b,null,!0,!1)};function oe(b,y,O,q,X){d("readableAddChunk",y);var D=b._readableState;if(y===null)D.reading=!1,p(b,D);else{var N;if(X||(N=o(D,y)),N)W(b,N);else if(D.objectMode||y&&y.length>0)if(typeof y!="string"&&!D.objectMode&&Object.getPrototypeOf(y)!==i.prototype&&(y=n(y)),q)D.endEmitted?W(b,new I):_(b,D,y,!0);else if(D.ended)W(b,new k);else{if(D.destroyed)return!1;D.reading=!1,D.decoder&&!O?(y=D.decoder.write(y),D.objectMode||y.length!==0?_(b,D,y,!1):g(b,D)):_(b,D,y,!1)}else q||(D.reading=!1,g(b,D))}return!D.ended&&(D.length<D.highWaterMark||D.length===0)}function _(b,y,O,q){y.flowing&&y.length===0&&!y.sync?(y.awaitDrain=0,b.emit("data",O)):(y.length+=y.objectMode?1:O.length,q?y.buffer.unshift(O):y.buffer.push(O),y.needReadable&&w(b)),g(b,y)}function o(b,y){var O;return!u(y)&&typeof y!="string"&&y!==void 0&&!b.objectMode&&(O=new P("chunk",["string","Buffer","Uint8Array"],y)),O}V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(b){B||(B=Xr().StringDecoder);var y=new B(b);this._readableState.decoder=y,this._readableState.encoding=this._readableState.decoder.encoding;for(var O=this._readableState.buffer.head,q="";O!==null;)q+=y.write(O.data),O=O.next;return this._readableState.buffer.clear(),q!==""&&this._readableState.buffer.push(q),this._readableState.length=q.length,this};var f=1073741824;function l(b){return b>=f?b=f:(b--,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,b|=b>>>16,b++),b}function h(b,y){return b<=0||y.length===0&&y.ended?0:y.objectMode?1:b!==b?y.flowing&&y.length?y.buffer.head.data.length:y.length:(b>y.highWaterMark&&(y.highWaterMark=l(b)),b<=y.length?b:y.ended?y.length:(y.needReadable=!0,0))}V.prototype.read=function(b){d("read",b),b=parseInt(b,10);var y=this._readableState,O=b;if(b!==0&&(y.emittedReadable=!1),b===0&&y.needReadable&&((y.highWaterMark!==0?y.length>=y.highWaterMark:y.length>0)||y.ended))return d("read: emitReadable",y.length,y.ended),y.length===0&&y.ended?U(this):w(this),null;if(b=h(b,y),b===0&&y.ended)return y.length===0&&U(this),null;var q=y.needReadable;d("need readable",q),(y.length===0||y.length-b<y.highWaterMark)&&(q=!0,d("length less than watermark",q)),y.ended||y.reading?(q=!1,d("reading or ended",q)):q&&(d("do read"),y.reading=!0,y.sync=!0,y.length===0&&(y.needReadable=!0),this._read(y.highWaterMark),y.sync=!1,y.reading||(b=h(O,y)));var X;return b>0?X=E(b,y):X=null,X===null?(y.needReadable=y.length<=y.highWaterMark,b=0):(y.length-=b,y.awaitDrain=0),y.length===0&&(y.ended||(y.needReadable=!0),O!==b&&y.ended&&U(this)),X!==null&&this.emit("data",X),X};function p(b,y){if(d("onEofChunk"),!y.ended){if(y.decoder){var O=y.decoder.end();O&&O.length&&(y.buffer.push(O),y.length+=y.objectMode?1:O.length)}y.ended=!0,y.sync?w(b):(y.needReadable=!1,y.emittedReadable||(y.emittedReadable=!0,x(b)))}}function w(b){var y=b._readableState;d("emitReadable",y.needReadable,y.emittedReadable),y.needReadable=!1,y.emittedReadable||(d("emitReadable",y.flowing),y.emittedReadable=!0,we.nextTick(x,b))}function x(b){var y=b._readableState;d("emitReadable_",y.destroyed,y.length,y.ended),!y.destroyed&&(y.length||y.ended)&&(b.emit("readable"),y.emittedReadable=!1),y.needReadable=!y.flowing&&!y.ended&&y.length<=y.highWaterMark,A(b)}function g(b,y){y.readingMore||(y.readingMore=!0,we.nextTick(s,b,y))}function s(b,y){for(;!y.reading&&!y.ended&&(y.length<y.highWaterMark||y.flowing&&y.length===0);){var O=y.length;if(d("maybeReadMore read 0"),b.read(0),O===y.length)break}y.readingMore=!1}V.prototype._read=function(b){W(this,new L("_read()"))},V.prototype.pipe=function(b,y){var O=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=b;break;case 1:q.pipes=[q.pipes,b];break;default:q.pipes.push(b);break}q.pipesCount+=1,d("pipe count=%d opts=%j",q.pipesCount,y);var X=(!y||y.end!==!1)&&b!==we.stdout&&b!==we.stderr,D=X?j:le;q.endEmitted?we.nextTick(D):O.once("end",D),b.on("unpipe",N);function N(ce,pe){d("onunpipe"),ce===O&&pe&&pe.hasUnpiped===!1&&(pe.hasUnpiped=!0,te())}function j(){d("onend"),b.end()}var z=v(O);b.on("drain",z);var se=!1;function te(){d("cleanup"),b.removeListener("close",Q),b.removeListener("finish",ue),b.removeListener("drain",z),b.removeListener("error",Ee),b.removeListener("unpipe",N),O.removeListener("end",j),O.removeListener("end",le),O.removeListener("data",ne),se=!0,q.awaitDrain&&(!b._writableState||b._writableState.needDrain)&&z()}O.on("data",ne);function ne(ce){d("ondata");var pe=b.write(ce);d("dest.write",pe),pe===!1&&((q.pipesCount===1&&q.pipes===b||q.pipesCount>1&&Z(q.pipes,b)!==-1)&&!se&&(d("false write response, pause",q.awaitDrain),q.awaitDrain++),O.pause())}function Ee(ce){d("onerror",ce),le(),b.removeListener("error",Ee),t(b,"error")===0&&W(b,ce)}ie(b,"error",Ee);function Q(){b.removeListener("finish",ue),le()}b.once("close",Q);function ue(){d("onfinish"),b.removeListener("close",Q),le()}b.once("finish",ue);function le(){d("unpipe"),O.unpipe(b)}return b.emit("pipe",O),q.flowing||(d("pipe resume"),O.resume()),b};function v(b){return function(){var O=b._readableState;d("pipeOnDrain",O.awaitDrain),O.awaitDrain&&O.awaitDrain--,O.awaitDrain===0&&t(b,"data")&&(O.flowing=!0,A(b))}}V.prototype.unpipe=function(b){var y=this._readableState,O={hasUnpiped:!1};if(y.pipesCount===0)return this;if(y.pipesCount===1)return b&&b!==y.pipes?this:(b||(b=y.pipes),y.pipes=null,y.pipesCount=0,y.flowing=!1,b&&b.emit("unpipe",this,O),this);if(!b){var q=y.pipes,X=y.pipesCount;y.pipes=null,y.pipesCount=0,y.flowing=!1;for(var D=0;D<X;D++)q[D].emit("unpipe",this,{hasUnpiped:!1});return this}var N=Z(y.pipes,b);return N===-1?this:(y.pipes.splice(N,1),y.pipesCount-=1,y.pipesCount===1&&(y.pipes=y.pipes[0]),b.emit("unpipe",this,O),this)},V.prototype.on=function(b,y){var O=r.prototype.on.call(this,b,y),q=this._readableState;return b==="data"?(q.readableListening=this.listenerCount("readable")>0,q.flowing!==!1&&this.resume()):b==="readable"&&!q.endEmitted&&!q.readableListening&&(q.readableListening=q.needReadable=!0,q.flowing=!1,q.emittedReadable=!1,d("on readable",q.length,q.reading),q.length?w(this):q.reading||we.nextTick($,this)),O},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(b,y){var O=r.prototype.removeListener.call(this,b,y);return b==="readable"&&we.nextTick(T,this),O},V.prototype.removeAllListeners=function(b){var y=r.prototype.removeAllListeners.apply(this,arguments);return(b==="readable"||b===void 0)&&we.nextTick(T,this),y};function T(b){var y=b._readableState;y.readableListening=b.listenerCount("readable")>0,y.resumeScheduled&&!y.paused?y.flowing=!0:b.listenerCount("data")>0&&b.resume()}function $(b){d("readable nexttick read 0"),b.read(0)}V.prototype.resume=function(){var b=this._readableState;return b.flowing||(d("resume"),b.flowing=!b.readableListening,G(this,b)),b.paused=!1,this};function G(b,y){y.resumeScheduled||(y.resumeScheduled=!0,we.nextTick(ee,b,y))}function ee(b,y){d("resume",y.reading),y.reading||b.read(0),y.resumeScheduled=!1,b.emit("resume"),A(b),y.flowing&&!y.reading&&b.read(0)}V.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function A(b){var y=b._readableState;for(d("flow",y.flowing);y.flowing&&b.read()!==null;);}V.prototype.wrap=function(b){var y=this,O=this._readableState,q=!1;b.on("end",function(){if(d("wrapped end"),O.decoder&&!O.ended){var N=O.decoder.end();N&&N.length&&y.push(N)}y.push(null)}),b.on("data",function(N){if(d("wrapped data"),O.decoder&&(N=O.decoder.write(N)),!(O.objectMode&&N==null)&&!(!O.objectMode&&(!N||!N.length))){var j=y.push(N);j||(q=!0,b.pause())}});for(var X in b)this[X]===void 0&&typeof b[X]=="function"&&(this[X]=function(j){return function(){return b[j].apply(b,arguments)}}(X));for(var D=0;D<Y.length;D++)b.on(Y[D],this.emit.bind(this,Y[D]));return this._read=function(N){d("wrapped _read",N),q&&(q=!1,b.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return H===void 0&&(H=xT()),H(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(y){this._readableState&&(this._readableState.flowing=y)}}),V._fromList=E,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function E(b,y){if(y.length===0)return null;var O;return y.objectMode?O=y.buffer.shift():!b||b>=y.length?(y.decoder?O=y.buffer.join(""):y.buffer.length===1?O=y.buffer.first():O=y.buffer.concat(y.length),y.buffer.clear()):O=y.buffer.consume(b,y.decoder),O}function U(b){var y=b._readableState;d("endReadable",y.endEmitted),y.endEmitted||(y.ended=!0,we.nextTick(K,y,b))}function K(b,y){if(d("endReadableNT",b.endEmitted,b.length),!b.endEmitted&&b.length===0&&(b.endEmitted=!0,y.readable=!1,y.emit("end"),b.autoDestroy)){var O=y._writableState;(!O||O.autoDestroy&&O.finished)&&y.destroy()}}typeof Symbol=="function"&&(V.from=function(b,y){return F===void 0&&(F=ET()),F(V,b,y)});function Z(b,y){for(var O=0,q=b.length;O<q;O++)if(b[O]===y)return O;return-1}return dd}var KM=$n,kh=Ma.codes,RT=kh.ERR_METHOD_NOT_IMPLEMENTED,AT=kh.ERR_MULTIPLE_CALLBACK,TT=kh.ERR_TRANSFORM_ALREADY_TRANSFORMING,OT=kh.ERR_TRANSFORM_WITH_LENGTH_0,$h=ds();Ze($n,$h);function IT(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new AT);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function $n(e){if(!(this instanceof $n))return new $n(e);$h.call(this,e),this._transformState={afterTransform:IT.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",PT)}function PT(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){k1(e,t,r)}):k1(this,null,null)}$n.prototype.push=function(e,t){return this._transformState.needTransform=!1,$h.prototype.push.call(this,e,t)};$n.prototype._transform=function(e,t,r){r(new RT("_transform()"))};$n.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};$n.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};$n.prototype._destroy=function(e,t){$h.prototype._destroy.call(this,e,function(r){t(r)})};function k1(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new OT;if(e._transformState.transforming)throw new TT;return e.push(null)}var CT=Qf,VM=KM;Ze(Qf,VM);function Qf(e){if(!(this instanceof Qf))return new Qf(e);VM.call(this,e)}Qf.prototype._transform=function(e,t,r){r(null,e)};var pd;function BT(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var zM=Ma.codes,LT=zM.ERR_MISSING_ARGS,NT=zM.ERR_STREAM_DESTROYED;function $1(e){if(e)throw e}function kT(e){return e.setHeader&&typeof e.abort=="function"}function $T(e,t,r,i){i=BT(i);var a=!1;e.on("close",function(){a=!0}),pd===void 0&&(pd=zv),pd(e,{readable:t,writable:r},function(u){if(u)return i(u);a=!0,i()});var n=!1;return function(u){if(!a&&!n){if(n=!0,kT(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(u||new NT("pipe"))}}}function D1(e){e()}function DT(e,t){return e.pipe(t)}function FT(e){return!e.length||typeof e[e.length-1]!="function"?$1:e.pop()}function jT(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=FT(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new LT("streams");var a,n=t.map(function(u,c){var d=c<t.length-1,m=c>0;return $T(u,d,m,function(M){a||(a=M),M&&n.forEach(D1),!d&&(n.forEach(D1),i(a))})});return t.reduce(DT)}var UT=jT;(function(e,t){t=e.exports=WM(),t.Stream=t,t.Readable=t,t.Writable=HM(),t.Duplex=ds(),t.Transform=KM,t.PassThrough=CT,t.finished=zv,t.pipeline=UT})(cp,cp.exports);var HT=cp.exports;const{Buffer:Ni}=ke,GM=Symbol.for("BufferList");function Gt(e){if(!(this instanceof Gt))return new Gt(e);Gt._init.call(this,e)}Gt._init=function(t){Object.defineProperty(this,GM,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};Gt.prototype._new=function(t){return new Gt(t)};Gt.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let i=0;i<this._bufs.length;i++){const a=r+this._bufs[i].length;if(t<a||i===this._bufs.length-1)return[i,t-r];r=a}};Gt.prototype._reverseOffset=function(e){const t=e[0];let r=e[1];for(let i=0;i<t;i++)r+=this._bufs[i].length;return r};Gt.prototype.get=function(t){if(t>this.length||t<0)return;const r=this._offset(t);return this._bufs[r[0]][r[1]]};Gt.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};Gt.prototype.copy=function(t,r,i,a){if((typeof i!="number"||i<0)&&(i=0),(typeof a!="number"||a>this.length)&&(a=this.length),i>=this.length||a<=0)return t||Ni.alloc(0);const n=!!t,u=this._offset(i),c=a-i;let d=c,m=n&&r||0,M=u[1];if(i===0&&a===this.length){if(!n)return this._bufs.length===1?this._bufs[0]:Ni.concat(this._bufs,this.length);for(let S=0;S<this._bufs.length;S++)this._bufs[S].copy(t,m),m+=this._bufs[S].length;return t}if(d<=this._bufs[u[0]].length-M)return n?this._bufs[u[0]].copy(t,r,M,M+d):this._bufs[u[0]].slice(M,M+d);n||(t=Ni.allocUnsafe(c));for(let S=u[0];S<this._bufs.length;S++){const R=this._bufs[S].length-M;if(d>R)this._bufs[S].copy(t,m,M),m+=R;else{this._bufs[S].copy(t,m,M,M+d),m+=R;break}d-=R,M&&(M=0)}return t.length>m?t.slice(0,m):t};Gt.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();const i=this._offset(t),a=this._offset(r),n=this._bufs.slice(i[0],a[0]+1);return a[1]===0?n.pop():n[n.length-1]=n[n.length-1].slice(0,a[1]),i[1]!==0&&(n[0]=n[0].slice(i[1])),this._new(n)};Gt.prototype.toString=function(t,r,i){return this.slice(r,i).toString(t)};Gt.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};Gt.prototype.duplicate=function(){const t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};Gt.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(Ni.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(Ni.from(t));return this};Gt.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};Gt.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=Ni.from([e]):typeof e=="string"?e=Ni.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=Ni.from(e.buffer,e.byteOffset,e.byteLength):Ni.isBuffer(e)||(e=Ni.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;const i=this._offset(t);let a=i[0],n=i[1];for(;a<this._bufs.length;a++){const u=this._bufs[a];for(;n<u.length;)if(u.length-n>=e.length){const d=u.indexOf(e,n);if(d!==-1)return this._reverseOffset([a,d]);n=u.length-e.length+1}else{const d=this._reverseOffset([a,n]);if(this._match(d,e))return d;n++}n=0}return-1};Gt.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){const e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(const t in e)(function(r){e[r]===null?Gt.prototype[r]=function(i,a){return this.slice(i,i+a)[r](0,a)}:Gt.prototype[r]=function(i=0){return this.slice(i,i+e[r])[r](0)}})(t)})();Gt.prototype._isBufferList=function(t){return t instanceof Gt||Gt.isBufferList(t)};Gt.isBufferList=function(t){return t!=null&&t[GM]};var qT=Gt;const Gv=HT.Duplex,WT=Ze,gu=qT;function Rr(e){if(!(this instanceof Rr))return new Rr(e);if(typeof e=="function"){this._callback=e;const t=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on("pipe",function(i){i.on("error",t)}),this.on("unpipe",function(i){i.removeListener("error",t)}),e=null}gu._init.call(this,e),Gv.call(this)}WT(Rr,Gv);Object.assign(Rr.prototype,gu.prototype);Rr.prototype._new=function(t){return new Rr(t)};Rr.prototype._write=function(t,r,i){this._appendBuffer(t),typeof i=="function"&&i()};Rr.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};Rr.prototype.end=function(t){Gv.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};Rr.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};Rr.prototype._isBufferList=function(t){return t instanceof Rr||t instanceof gu||Rr.isBufferList(t)};Rr.isBufferList=gu.isBufferList;Nh.exports=Rr;Nh.exports.BufferListStream=Rr;Nh.exports.BufferList=gu;var KT=Nh.exports;let VT=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};var zT=VT,YM={exports:{}};(function(e){const t=e.exports;t.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},t.codes={};for(const i in t.types){const a=t.types[i];t.codes[a]=i}t.CMD_SHIFT=4,t.CMD_MASK=240,t.DUP_MASK=8,t.QOS_MASK=3,t.QOS_SHIFT=1,t.RETAIN_MASK=1,t.VARBYTEINT_MASK=127,t.VARBYTEINT_FIN_MASK=128,t.VARBYTEINT_MAX=268435455,t.SESSIONPRESENT_MASK=1,t.SESSIONPRESENT_HEADER=ke.Buffer.from([t.SESSIONPRESENT_MASK]),t.CONNACK_HEADER=ke.Buffer.from([t.codes.connack<<t.CMD_SHIFT]),t.USERNAME_MASK=128,t.PASSWORD_MASK=64,t.WILL_RETAIN_MASK=32,t.WILL_QOS_MASK=24,t.WILL_QOS_SHIFT=3,t.WILL_FLAG_MASK=4,t.CLEAN_SESSION_MASK=2,t.CONNECT_HEADER=ke.Buffer.from([t.codes.connect<<t.CMD_SHIFT]),t.properties={sessionExpiryInterval:17,willDelayInterval:24,receiveMaximum:33,maximumPacketSize:39,topicAliasMaximum:34,requestResponseInformation:25,requestProblemInformation:23,userProperties:38,authenticationMethod:21,authenticationData:22,payloadFormatIndicator:1,messageExpiryInterval:2,contentType:3,responseTopic:8,correlationData:9,maximumQoS:36,retainAvailable:37,assignedClientIdentifier:18,reasonString:31,wildcardSubscriptionAvailable:40,subscriptionIdentifiersAvailable:41,sharedSubscriptionAvailable:42,serverKeepAlive:19,responseInformation:26,serverReference:28,topicAlias:35,subscriptionIdentifier:11},t.propertiesCodes={};for(const i in t.properties){const a=t.properties[i];t.propertiesCodes[a]=i}t.propertiesTypes={sessionExpiryInterval:"int32",willDelayInterval:"int32",receiveMaximum:"int16",maximumPacketSize:"int32",topicAliasMaximum:"int16",requestResponseInformation:"byte",requestProblemInformation:"byte",userProperties:"pair",authenticationMethod:"string",authenticationData:"binary",payloadFormatIndicator:"byte",messageExpiryInterval:"int32",contentType:"string",responseTopic:"string",correlationData:"binary",maximumQoS:"int8",retainAvailable:"byte",assignedClientIdentifier:"string",reasonString:"string",wildcardSubscriptionAvailable:"byte",subscriptionIdentifiersAvailable:"byte",sharedSubscriptionAvailable:"byte",serverKeepAlive:"int16",responseInformation:"string",serverReference:"string",topicAlias:"int16",subscriptionIdentifier:"var"};function r(i){return[0,1,2].map(a=>[0,1].map(n=>[0,1].map(u=>{const c=ke.Buffer.alloc(1);return c.writeUInt8(t.codes[i]<<t.CMD_SHIFT|(n?t.DUP_MASK:0)|a<<t.QOS_SHIFT|u,0,!0),c})))}t.PUBLISH_HEADER=r("publish"),t.SUBSCRIBE_HEADER=r("subscribe"),t.SUBSCRIBE_OPTIONS_QOS_MASK=3,t.SUBSCRIBE_OPTIONS_NL_MASK=1,t.SUBSCRIBE_OPTIONS_NL_SHIFT=2,t.SUBSCRIBE_OPTIONS_RAP_MASK=1,t.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,t.SUBSCRIBE_OPTIONS_RH_MASK=3,t.SUBSCRIBE_OPTIONS_RH_SHIFT=4,t.SUBSCRIBE_OPTIONS_RH=[0,16,32],t.SUBSCRIBE_OPTIONS_NL=4,t.SUBSCRIBE_OPTIONS_RAP=8,t.SUBSCRIBE_OPTIONS_QOS=[0,1,2],t.UNSUBSCRIBE_HEADER=r("unsubscribe"),t.ACKS={unsuback:r("unsuback"),puback:r("puback"),pubcomp:r("pubcomp"),pubrel:r("pubrel"),pubrec:r("pubrec")},t.SUBACK_HEADER=ke.Buffer.from([t.codes.suback<<t.CMD_SHIFT]),t.VERSION3=ke.Buffer.from([3]),t.VERSION4=ke.Buffer.from([4]),t.VERSION5=ke.Buffer.from([5]),t.VERSION131=ke.Buffer.from([131]),t.VERSION132=ke.Buffer.from([132]),t.QOS=[0,1,2].map(i=>ke.Buffer.from([i])),t.EMPTY={pingreq:ke.Buffer.from([t.codes.pingreq<<4,0]),pingresp:ke.Buffer.from([t.codes.pingresp<<4,0]),disconnect:ke.Buffer.from([t.codes.disconnect<<4,0])}})(YM);var ZM=YM.exports;const GT=KT,YT=Or,F1=zT,qt=ZM,ot=zn("mqtt-packet:parser");class Hl extends YT{constructor(){super(),this.parser=this.constructor.parser}static parser(t){return this instanceof Hl?(this.settings=t||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new Hl().parser(t)}_resetState(){ot("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new F1,this.error=null,this._list=GT(),this._stateCounter=0}parse(t){for(this.error&&this._resetState(),this._list.append(t),ot("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,ot("parse: state complete. _stateCounter is now: %d",this._stateCounter),ot("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return ot("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const t=this._list.readUInt8(0);return this.packet.cmd=qt.types[t>>qt.CMD_SHIFT],this.packet.retain=(t&qt.RETAIN_MASK)!==0,this.packet.qos=t>>qt.QOS_SHIFT&qt.QOS_MASK,this.packet.dup=(t&qt.DUP_MASK)!==0,ot("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0}_parseLength(){const t=this._parseVarByteNum(!0);return t&&(this.packet.length=t.value,this._list.consume(t.bytes)),ot("_parseLength %d",t.value),!!t}_parsePayload(){ot("_parsePayload: payload %O",this._list);let t=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}t=!0}return ot("_parsePayload complete result: %s",t),t}_parseConnect(){ot("_parseConnect");let t,r,i,a;const n={},u=this.packet,c=this._parseString();if(c===null)return this._emitError(new Error("Cannot parse protocolId"));if(c!=="MQTT"&&c!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(u.protocolId=c,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(u.protocolVersion=this._list.readUInt8(this._pos),u.protocolVersion>=128&&(u.bridgeMode=!0,u.protocolVersion=u.protocolVersion-128),u.protocolVersion!==3&&u.protocolVersion!==4&&u.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(n.username=this._list.readUInt8(this._pos)&qt.USERNAME_MASK,n.password=this._list.readUInt8(this._pos)&qt.PASSWORD_MASK,n.will=this._list.readUInt8(this._pos)&qt.WILL_FLAG_MASK,n.will&&(u.will={},u.will.retain=(this._list.readUInt8(this._pos)&qt.WILL_RETAIN_MASK)!==0,u.will.qos=(this._list.readUInt8(this._pos)&qt.WILL_QOS_MASK)>>qt.WILL_QOS_SHIFT),u.clean=(this._list.readUInt8(this._pos)&qt.CLEAN_SESSION_MASK)!==0,this._pos++,u.keepalive=this._parseNum(),u.keepalive===-1)return this._emitError(new Error("Packet too short"));if(u.protocolVersion===5){const m=this._parseProperties();Object.getOwnPropertyNames(m).length&&(u.properties=m)}const d=this._parseString();if(d===null)return this._emitError(new Error("Packet too short"));if(u.clientId=d,ot("_parseConnect: packet.clientId: %s",u.clientId),n.will){if(u.protocolVersion===5){const m=this._parseProperties();Object.getOwnPropertyNames(m).length&&(u.will.properties=m)}if(t=this._parseString(),t===null)return this._emitError(new Error("Cannot parse will topic"));if(u.will.topic=t,ot("_parseConnect: packet.will.topic: %s",u.will.topic),r=this._parseBuffer(),r===null)return this._emitError(new Error("Cannot parse will payload"));u.will.payload=r,ot("_parseConnect: packet.will.paylaod: %s",u.will.payload)}if(n.username){if(a=this._parseString(),a===null)return this._emitError(new Error("Cannot parse username"));u.username=a,ot("_parseConnect: packet.username: %s",u.username)}if(n.password){if(i=this._parseBuffer(),i===null)return this._emitError(new Error("Cannot parse password"));u.password=i}return this.settings=u,ot("_parseConnect: complete"),u}_parseConnack(){ot("_parseConnack");const t=this.packet;if(this._list.length<1)return null;if(t.sessionPresent=!!(this._list.readUInt8(this._pos++)&qt.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?t.reasonCode=this._list.readUInt8(this._pos++):t.reasonCode=0;else{if(this._list.length<2)return null;t.returnCode=this._list.readUInt8(this._pos++)}if(t.returnCode===-1||t.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(t.properties=r)}ot("_parseConnack: complete")}_parsePublish(){ot("_parsePublish");const t=this.packet;if(t.topic=this._parseString(),t.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(t.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(t.properties=r)}t.payload=this._list.slice(this._pos,t.length),ot("_parsePublish: payload from buffer list: %o",t.payload)}}_parseSubscribe(){ot("_parseSubscribe");const t=this.packet;let r,i,a,n,u,c,d;if(t.qos!==1)return this._emitError(new Error("Wrong subscribe header"));if(t.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const m=this._parseProperties();Object.getOwnPropertyNames(m).length&&(t.properties=m)}for(;this._pos<t.length;){if(r=this._parseString(),r===null)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=t.length)return this._emitError(new Error("Malformed Subscribe Payload"));i=this._parseByte(),a=i&qt.SUBSCRIBE_OPTIONS_QOS_MASK,c=(i>>qt.SUBSCRIBE_OPTIONS_NL_SHIFT&qt.SUBSCRIBE_OPTIONS_NL_MASK)!==0,u=(i>>qt.SUBSCRIBE_OPTIONS_RAP_SHIFT&qt.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,n=i>>qt.SUBSCRIBE_OPTIONS_RH_SHIFT&qt.SUBSCRIBE_OPTIONS_RH_MASK,d={topic:r,qos:a},this.settings.protocolVersion===5?(d.nl=c,d.rap=u,d.rh=n):this.settings.bridgeMode&&(d.rh=0,d.rap=!0,d.nl=!0),ot("_parseSubscribe: push subscription `%s` to subscription",d),t.subscriptions.push(d)}}}_parseSuback(){ot("_parseSuback");const t=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(t.properties=r)}for(;this._pos<this.packet.length;)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseUnsubscribe(){ot("_parseUnsubscribe");const t=this.packet;if(t.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(t.properties=r)}for(;this._pos<t.length;){const r=this._parseString();if(r===null)return this._emitError(new Error("Cannot parse topic"));ot("_parseUnsubscribe: push topic `%s` to unsubscriptions",r),t.unsubscriptions.push(r)}}}_parseUnsuback(){ot("_parseUnsuback");const t=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if(this.settings.protocolVersion===5){const r=this._parseProperties();for(Object.getOwnPropertyNames(r).length&&(t.properties=r),t.granted=[];this._pos<this.packet.length;)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseConfirmation(){ot("_parseConfirmation: packet.cmd: `%s`",this.packet.cmd);const t=this.packet;if(this._parseMessageId(),this.settings.protocolVersion===5&&(t.length>2?(t.reasonCode=this._parseByte(),ot("_parseConfirmation: packet.reasonCode `%d`",t.reasonCode)):t.reasonCode=0,t.length>3)){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(t.properties=r)}return!0}_parseDisconnect(){const t=this.packet;if(ot("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?t.reasonCode=this._parseByte():t.reasonCode=0;const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(t.properties=r)}return ot("_parseDisconnect result: true"),!0}_parseAuth(){ot("_parseAuth");const t=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));t.reasonCode=this._parseByte();const r=this._parseProperties();return Object.getOwnPropertyNames(r).length&&(t.properties=r),ot("_parseAuth: result: true"),!0}_parseMessageId(){const t=this.packet;return t.messageId=this._parseNum(),t.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(ot("_parseMessageId: packet.messageId %d",t.messageId),!0)}_parseString(t){const r=this._parseNum(),i=r+this._pos;if(r===-1||i>this._list.length||i>this.packet.length)return null;const a=this._list.toString("utf8",this._pos,i);return this._pos+=r,ot("_parseString: result: %s",a),a}_parseStringPair(){return ot("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const t=this._parseNum(),r=t+this._pos;if(t===-1||r>this._list.length||r>this.packet.length)return null;const i=this._list.slice(this._pos,r);return this._pos+=t,ot("_parseBuffer: result: %o",i),i}_parseNum(){if(this._list.length-this._pos<2)return-1;const t=this._list.readUInt16BE(this._pos);return this._pos+=2,ot("_parseNum: result: %s",t),t}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const t=this._list.readUInt32BE(this._pos);return this._pos+=4,ot("_parse4ByteNum: result: %s",t),t}_parseVarByteNum(t){ot("_parseVarByteNum");const r=4;let i=0,a=1,n=0,u=!1,c;const d=this._pos?this._pos:0;for(;i<r&&d+i<this._list.length;){if(c=this._list.readUInt8(d+i++),n+=a*(c&qt.VARBYTEINT_MASK),a*=128,!(c&qt.VARBYTEINT_FIN_MASK)){u=!0;break}if(this._list.length<=i)break}return!u&&i===r&&this._list.length>=i&&this._emitError(new Error("Invalid variable byte integer")),d&&(this._pos+=i),u=u?t?{bytes:i,value:n}:n:!1,ot("_parseVarByteNum: result: %o",u),u}_parseByte(){let t;return this._pos<this._list.length&&(t=this._list.readUInt8(this._pos),this._pos++),ot("_parseByte: result: %o",t),t}_parseByType(t){switch(ot("_parseByType: type: %s",t),t){case"byte":return this._parseByte()!==0;case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}}_parseProperties(){ot("_parseProperties");const t=this._parseVarByteNum(),i=this._pos+t,a={};for(;this._pos<i;){const n=this._parseByte();if(!n)return this._emitError(new Error("Cannot parse property code type")),!1;const u=qt.propertiesCodes[n];if(!u)return this._emitError(new Error("Unknown property")),!1;if(u==="userProperties"){a[u]||(a[u]=Object.create(null));const c=this._parseByType(qt.propertiesTypes[u]);if(a[u][c.name])if(Array.isArray(a[u][c.name]))a[u][c.name].push(c.value);else{const d=a[u][c.name];a[u][c.name]=[d],a[u][c.name].push(c.value)}else a[u][c.name]=c.value;continue}a[u]?Array.isArray(a[u])?a[u].push(this._parseByType(qt.propertiesTypes[u])):(a[u]=[a[u]],a[u].push(this._parseByType(qt.propertiesTypes[u]))):a[u]=this._parseByType(qt.propertiesTypes[u])}return a}_newPacket(){return ot("_newPacket"),this.packet&&(this._list.consume(this.packet.length),ot("_newPacket: parser emit packet: packet.cmd: %s, packet.payload: %s, packet.length: %d",this.packet.cmd,this.packet.payload,this.packet.length),this.emit("packet",this.packet)),ot("_newPacket: new packet"),this.packet=new F1,this._pos=0,!0}_emitError(t){ot("_emitError"),this.error=t,this.emit("error",t)}}var ZT=Hl;const XT=65536,XM={},JT=ke.Buffer.isBuffer(ke.Buffer.from([1,2]).subarray(0,1));function JM(e){const t=ke.Buffer.allocUnsafe(2);return t.writeUInt8(e>>8,0),t.writeUInt8(e&255,0+1),t}function QT(){for(let e=0;e<XT;e++)XM[e]=JM(e)}function eO(e){let r=0,i=0;const a=ke.Buffer.allocUnsafe(4);do r=e%128|0,e=e/128|0,e>0&&(r=r|128),a.writeUInt8(r,i++);while(e>0&&i<4);return e>0&&(i=0),JT?a.subarray(0,i):a.slice(0,i)}function tO(e){const t=ke.Buffer.allocUnsafe(4);return t.writeUInt32BE(e,0),t}var rO={cache:XM,generateCache:QT,generateNumber:JM,genBufVariableByteInt:eO,generate4ByteBuffer:tO},pp={exports:{}};typeof we>"u"||!we.version||we.version.indexOf("v0.")===0||we.version.indexOf("v1.")===0&&we.version.indexOf("v1.8.")!==0?pp.exports={nextTick:iO}:pp.exports=we;function iO(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var a=arguments.length,n,u;switch(a){case 0:case 1:return we.nextTick(e);case 2:return we.nextTick(function(){e.call(null,t)});case 3:return we.nextTick(function(){e.call(null,t,r)});case 4:return we.nextTick(function(){e.call(null,t,r,i)});default:for(n=new Array(a-1),u=0;u<n.length;)n[u++]=arguments[u];return we.nextTick(function(){e.apply(null,n)})}}var nO=pp.exports;const ut=ZM,oO=ke.Buffer.allocUnsafe(0),aO=ke.Buffer.from([0]),mu=rO,sO=nO.nextTick,pi=zn("mqtt-packet:writeToStream"),ql=mu.cache,fO=mu.generateNumber,uO=mu.generateCache,vp=mu.genBufVariableByteInt,lO=mu.generate4ByteBuffer;let Nr=gp,Wl=!0;function QM(e,t,r){switch(pi("generate called"),t.cork&&(t.cork(),sO(hO,t)),Wl&&(Wl=!1,uO()),pi("generate: packet.cmd: %s",e.cmd),e.cmd){case"connect":return cO(e,t);case"connack":return dO(e,t,r);case"publish":return pO(e,t,r);case"puback":case"pubrec":case"pubrel":case"pubcomp":return vO(e,t,r);case"subscribe":return gO(e,t,r);case"suback":return mO(e,t,r);case"unsubscribe":return yO(e,t,r);case"unsuback":return bO(e,t,r);case"pingreq":case"pingresp":return wO(e,t);case"disconnect":return _O(e,t,r);case"auth":return MO(e,t,r);default:return t.emit("error",new Error("Unknown command")),!1}}Object.defineProperty(QM,"cacheNumbers",{get(){return Nr===gp},set(e){e?((!ql||Object.keys(ql).length===0)&&(Wl=!0),Nr=gp):(Wl=!1,Nr=SO)}});function hO(e){e.uncork()}function cO(e,t,r){const i=e||{},a=i.protocolId||"MQTT";let n=i.protocolVersion||4;const u=i.will;let c=i.clean;const d=i.keepalive||0,m=i.clientId||"",M=i.username,S=i.password,R=i.properties;c===void 0&&(c=!0);let C=0;if(!a||typeof a!="string"&&!ke.Buffer.isBuffer(a))return t.emit("error",new Error("Invalid protocolId")),!1;if(C+=a.length+2,n!==3&&n!==4&&n!==5)return t.emit("error",new Error("Invalid protocol version")),!1;if(C+=1,(typeof m=="string"||ke.Buffer.isBuffer(m))&&(m||n>=4)&&(m||c))C+=ke.Buffer.byteLength(m)+2;else{if(n<4)return t.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(c*1===0)return t.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof d!="number"||d<0||d>65535||d%1!==0)return t.emit("error",new Error("Invalid keepalive")),!1;if(C+=2,C+=1,n===5){var P=Oo(t,R);if(!P)return!1;C+=P.length}if(u){if(typeof u!="object")return t.emit("error",new Error("Invalid will")),!1;if(!u.topic||typeof u.topic!="string")return t.emit("error",new Error("Invalid will topic")),!1;if(C+=ke.Buffer.byteLength(u.topic)+2,C+=2,u.payload)if(u.payload.length>=0)typeof u.payload=="string"?C+=ke.Buffer.byteLength(u.payload):C+=u.payload.length;else return t.emit("error",new Error("Invalid will payload")),!1;var k={};if(n===5){if(k=Oo(t,u.properties),!k)return!1;C+=k.length}}let L=!1;if(M!=null)if(W1(M))L=!0,C+=ke.Buffer.byteLength(M)+2;else return t.emit("error",new Error("Invalid username")),!1;if(S!=null){if(!L)return t.emit("error",new Error("Username is required to use password")),!1;if(W1(S))C+=e3(S)+2;else return t.emit("error",new Error("Invalid password")),!1}t.write(ut.CONNECT_HEADER),wi(t,C),Ha(t,a),i.bridgeMode&&(n+=128),t.write(n===131?ut.VERSION131:n===132?ut.VERSION132:n===4?ut.VERSION4:n===5?ut.VERSION5:ut.VERSION3);let I=0;return I|=M!=null?ut.USERNAME_MASK:0,I|=S!=null?ut.PASSWORD_MASK:0,I|=u&&u.retain?ut.WILL_RETAIN_MASK:0,I|=u&&u.qos?u.qos<<ut.WILL_QOS_SHIFT:0,I|=u?ut.WILL_FLAG_MASK:0,I|=c?ut.CLEAN_SESSION_MASK:0,t.write(ke.Buffer.from([I])),Nr(t,d),n===5&&P.write(),Ha(t,m),u&&(n===5&&k.write(),ha(t,u.topic),Ha(t,u.payload)),M!=null&&Ha(t,M),S!=null&&Ha(t,S),!0}function dO(e,t,r){const i=r?r.protocolVersion:4,a=e||{},n=i===5?a.reasonCode:a.returnCode,u=a.properties;let c=2;if(typeof n!="number")return t.emit("error",new Error("Invalid return code")),!1;let d=null;if(i===5){if(d=Oo(t,u),!d)return!1;c+=d.length}return t.write(ut.CONNACK_HEADER),wi(t,c),t.write(a.sessionPresent?ut.SESSIONPRESENT_HEADER:aO),t.write(ke.Buffer.from([n])),d!=null&&d.write(),!0}function pO(e,t,r){pi("publish: packet: %o",e);const i=r?r.protocolVersion:4,a=e||{},n=a.qos||0,u=a.retain?ut.RETAIN_MASK:0,c=a.topic,d=a.payload||oO,m=a.messageId,M=a.properties;let S=0;if(typeof c=="string")S+=ke.Buffer.byteLength(c)+2;else if(ke.Buffer.isBuffer(c))S+=c.length+2;else return t.emit("error",new Error("Invalid topic")),!1;if(ke.Buffer.isBuffer(d)?S+=d.length:S+=ke.Buffer.byteLength(d),n&&typeof m!="number")return t.emit("error",new Error("Invalid messageId")),!1;n&&(S+=2);let R=null;if(i===5){if(R=Oo(t,M),!R)return!1;S+=R.length}return t.write(ut.PUBLISH_HEADER[n][a.dup?1:0][u?1:0]),wi(t,S),Nr(t,e3(c)),t.write(c),n>0&&Nr(t,m),R!=null&&R.write(),pi("publish: payload: %o",d),t.write(d)}function vO(e,t,r){const i=r?r.protocolVersion:4,a=e||{},n=a.cmd||"puback",u=a.messageId,c=a.dup&&n==="pubrel"?ut.DUP_MASK:0;let d=0;const m=a.reasonCode,M=a.properties;let S=i===5?3:2;if(n==="pubrel"&&(d=1),typeof u!="number")return t.emit("error",new Error("Invalid messageId")),!1;let R=null;if(i===5&&typeof M=="object"){if(R=yu(t,M,r,S),!R)return!1;S+=R.length}return t.write(ut.ACKS[n][d][c][0]),wi(t,S),Nr(t,u),i===5&&t.write(ke.Buffer.from([m])),R!==null&&R.write(),!0}function gO(e,t,r){pi("subscribe: packet: ");const i=r?r.protocolVersion:4,a=e||{},n=a.dup?ut.DUP_MASK:0,u=a.messageId,c=a.subscriptions,d=a.properties;let m=0;if(typeof u!="number")return t.emit("error",new Error("Invalid messageId")),!1;m+=2;let M=null;if(i===5){if(M=Oo(t,d),!M)return!1;m+=M.length}if(typeof c=="object"&&c.length)for(let R=0;R<c.length;R+=1){const C=c[R].topic,P=c[R].qos;if(typeof C!="string")return t.emit("error",new Error("Invalid subscriptions - invalid topic")),!1;if(typeof P!="number")return t.emit("error",new Error("Invalid subscriptions - invalid qos")),!1;if(i===5){if(typeof(c[R].nl||!1)!="boolean")return t.emit("error",new Error("Invalid subscriptions - invalid No Local")),!1;if(typeof(c[R].rap||!1)!="boolean")return t.emit("error",new Error("Invalid subscriptions - invalid Retain as Published")),!1;const I=c[R].rh||0;if(typeof I!="number"||I>2)return t.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}m+=ke.Buffer.byteLength(C)+2+1}else return t.emit("error",new Error("Invalid subscriptions")),!1;pi("subscribe: writing to stream: %o",ut.SUBSCRIBE_HEADER),t.write(ut.SUBSCRIBE_HEADER[1][n?1:0][0]),wi(t,m),Nr(t,u),M!==null&&M.write();let S=!0;for(const R of c){const C=R.topic,P=R.qos,k=+R.nl,L=+R.rap,I=R.rh;let B;ha(t,C),B=ut.SUBSCRIBE_OPTIONS_QOS[P],i===5&&(B|=k?ut.SUBSCRIBE_OPTIONS_NL:0,B|=L?ut.SUBSCRIBE_OPTIONS_RAP:0,B|=I?ut.SUBSCRIBE_OPTIONS_RH[I]:0),S=t.write(ke.Buffer.from([B]))}return S}function mO(e,t,r){const i=r?r.protocolVersion:4,a=e||{},n=a.messageId,u=a.granted,c=a.properties;let d=0;if(typeof n!="number")return t.emit("error",new Error("Invalid messageId")),!1;if(d+=2,typeof u=="object"&&u.length)for(let M=0;M<u.length;M+=1){if(typeof u[M]!="number")return t.emit("error",new Error("Invalid qos vector")),!1;d+=1}else return t.emit("error",new Error("Invalid qos vector")),!1;let m=null;if(i===5){if(m=yu(t,c,r,d),!m)return!1;d+=m.length}return t.write(ut.SUBACK_HEADER),wi(t,d),Nr(t,n),m!==null&&m.write(),t.write(ke.Buffer.from(u))}function yO(e,t,r){const i=r?r.protocolVersion:4,a=e||{},n=a.messageId,u=a.dup?ut.DUP_MASK:0,c=a.unsubscriptions,d=a.properties;let m=0;if(typeof n!="number")return t.emit("error",new Error("Invalid messageId")),!1;if(m+=2,typeof c=="object"&&c.length)for(let R=0;R<c.length;R+=1){if(typeof c[R]!="string")return t.emit("error",new Error("Invalid unsubscriptions")),!1;m+=ke.Buffer.byteLength(c[R])+2}else return t.emit("error",new Error("Invalid unsubscriptions")),!1;let M=null;if(i===5){if(M=Oo(t,d),!M)return!1;m+=M.length}t.write(ut.UNSUBSCRIBE_HEADER[1][u?1:0][0]),wi(t,m),Nr(t,n),M!==null&&M.write();let S=!0;for(let R=0;R<c.length;R++)S=ha(t,c[R]);return S}function bO(e,t,r){const i=r?r.protocolVersion:4,a=e||{},n=a.messageId,u=a.dup?ut.DUP_MASK:0,c=a.granted,d=a.properties,m=a.cmd,M=0;let S=2;if(typeof n!="number")return t.emit("error",new Error("Invalid messageId")),!1;if(i===5)if(typeof c=="object"&&c.length)for(let C=0;C<c.length;C+=1){if(typeof c[C]!="number")return t.emit("error",new Error("Invalid qos vector")),!1;S+=1}else return t.emit("error",new Error("Invalid qos vector")),!1;let R=null;if(i===5){if(R=yu(t,d,r,S),!R)return!1;S+=R.length}return t.write(ut.ACKS[m][M][u][0]),wi(t,S),Nr(t,n),R!==null&&R.write(),i===5&&t.write(ke.Buffer.from(c)),!0}function wO(e,t,r){return t.write(ut.EMPTY[e.cmd])}function _O(e,t,r){const i=r?r.protocolVersion:4,a=e||{},n=a.reasonCode,u=a.properties;let c=i===5?1:0,d=null;if(i===5){if(d=yu(t,u,r,c),!d)return!1;c+=d.length}return t.write(ke.Buffer.from([ut.codes.disconnect<<4])),wi(t,c),i===5&&t.write(ke.Buffer.from([n])),d!==null&&d.write(),!0}function MO(e,t,r){const i=r?r.protocolVersion:4,a=e||{},n=a.reasonCode,u=a.properties;let c=i===5?1:0;i!==5&&t.emit("error",new Error("Invalid mqtt version for auth packet"));const d=yu(t,u,r,c);return d?(c+=d.length,t.write(ke.Buffer.from([ut.codes.auth<<4])),wi(t,c),t.write(ke.Buffer.from([n])),d!==null&&d.write(),!0):!1}const j1={};function wi(e,t){if(t>ut.VARBYTEINT_MAX)return e.emit("error",new Error(`Invalid variable byte integer: ${t}`)),!1;let r=j1[t];return r||(r=vp(t),t<16384&&(j1[t]=r)),pi("writeVarByteInt: writing to stream: %o",r),e.write(r)}function ha(e,t){const r=ke.Buffer.byteLength(t);return Nr(e,r),pi("writeString: %s",t),e.write(t,"utf8")}function U1(e,t,r){ha(e,t),ha(e,r)}function gp(e,t){return pi("writeNumberCached: number: %d",t),pi("writeNumberCached: %o",ql[t]),e.write(ql[t])}function SO(e,t){const r=fO(t);return pi("writeNumberGenerated: %o",r),e.write(r)}function xO(e,t){const r=lO(t);return pi("write4ByteNumber: %o",r),e.write(r)}function Ha(e,t){typeof t=="string"?ha(e,t):t?(Nr(e,t.length),e.write(t)):Nr(e,0)}function Oo(e,t){if(typeof t!="object"||t.length!=null)return{length:1,write(){q1(e,{},0)}};let r=0;function i(n,u){const c=ut.propertiesTypes[n];let d=0;switch(c){case"byte":{if(typeof u!="boolean")return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=1+1;break}case"int8":{if(typeof u!="number"||u<0||u>255)return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=1+1;break}case"binary":{if(u&&u===null)return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=1+ke.Buffer.byteLength(u)+2;break}case"int16":{if(typeof u!="number"||u<0||u>65535)return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=1+2;break}case"int32":{if(typeof u!="number"||u<0||u>4294967295)return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=1+4;break}case"var":{if(typeof u!="number"||u<0||u>268435455)return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=1+ke.Buffer.byteLength(vp(u));break}case"string":{if(typeof u!="string")return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=1+2+ke.Buffer.byteLength(u.toString());break}case"pair":{if(typeof u!="object")return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=Object.getOwnPropertyNames(u).reduce((m,M)=>{const S=u[M];return Array.isArray(S)?m+=S.reduce((R,C)=>(R+=1+2+ke.Buffer.byteLength(M.toString())+2+ke.Buffer.byteLength(C.toString()),R),0):m+=1+2+ke.Buffer.byteLength(M.toString())+2+ke.Buffer.byteLength(u[M].toString()),m},0);break}default:return e.emit("error",new Error(`Invalid property ${n}: ${u}`)),!1}return d}if(t)for(const n in t){let u=0,c=0;const d=t[n];if(Array.isArray(d))for(let m=0;m<d.length;m++){if(c=i(n,d[m]),!c)return!1;u+=c}else{if(c=i(n,d),!c)return!1;u=c}if(!u)return!1;r+=u}return{length:ke.Buffer.byteLength(vp(r))+r,write(){q1(e,t,r)}}}function yu(e,t,r,i){const a=["reasonString","userProperties"],n=r&&r.properties&&r.properties.maximumPacketSize?r.properties.maximumPacketSize:0;let u=Oo(e,t);if(n)for(;i+u.length>n;){const c=a.shift();if(c&&t[c])delete t[c],u=Oo(e,t);else return!1}return u}function H1(e,t,r){switch(ut.propertiesTypes[t]){case"byte":{e.write(ke.Buffer.from([ut.properties[t]])),e.write(ke.Buffer.from([+r]));break}case"int8":{e.write(ke.Buffer.from([ut.properties[t]])),e.write(ke.Buffer.from([r]));break}case"binary":{e.write(ke.Buffer.from([ut.properties[t]])),Ha(e,r);break}case"int16":{e.write(ke.Buffer.from([ut.properties[t]])),Nr(e,r);break}case"int32":{e.write(ke.Buffer.from([ut.properties[t]])),xO(e,r);break}case"var":{e.write(ke.Buffer.from([ut.properties[t]])),wi(e,r);break}case"string":{e.write(ke.Buffer.from([ut.properties[t]])),ha(e,r);break}case"pair":{Object.getOwnPropertyNames(r).forEach(a=>{const n=r[a];Array.isArray(n)?n.forEach(u=>{e.write(ke.Buffer.from([ut.properties[t]])),U1(e,a.toString(),u.toString())}):(e.write(ke.Buffer.from([ut.properties[t]])),U1(e,a.toString(),n.toString()))});break}default:return e.emit("error",new Error(`Invalid property ${t} value: ${r}`)),!1}}function q1(e,t,r){wi(e,r);for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&t[i]!==null){const a=t[i];if(Array.isArray(a))for(let n=0;n<a.length;n++)H1(e,i,a[n]);else H1(e,i,a)}}function e3(e){return e?e instanceof ke.Buffer?e.length:ke.Buffer.byteLength(e):0}function W1(e){return typeof e=="string"||e instanceof ke.Buffer}var t3=QM;const EO=t3,RO=Or;function AO(e,t){const r=new TO;return EO(e,r,t),r.concat()}class TO extends RO{constructor(){super(),this._array=new Array(20),this._i=0}write(t){return this._array[this._i++]=t,!0}concat(){let t=0;const r=new Array(this._array.length),i=this._array;let a=0,n;for(n=0;n<i.length&&i[n]!==void 0;n++)typeof i[n]!="string"?r[n]=i[n].length:r[n]=ke.Buffer.byteLength(i[n]),t+=r[n];const u=ke.Buffer.allocUnsafe(t);for(n=0;n<i.length&&i[n]!==void 0;n++)typeof i[n]!="string"?(i[n].copy(u,a),a+=r[n]):(u.write(i[n],a),a+=r[n]);return u}}var OO=AO;Lh.parser=ZT.parser;Lh.generate=OO;Lh.writeToStream=t3;function Io(){if(!(this instanceof Io))return new Io;this.nextId=Math.max(1,Math.floor(Math.random()*65535))}Io.prototype.allocate=function(){const e=this.nextId++;return this.nextId===65536&&(this.nextId=1),e};Io.prototype.getLastAllocated=function(){return this.nextId===1?65535:this.nextId-1};Io.prototype.register=function(e){return!0};Io.prototype.deallocate=function(e){};Io.prototype.clear=function(){};var IO=Io;function PO(e,t,r){var i=this;this._callback=e,this._args=r,this._interval=setInterval(e,t,this._args),this.reschedule=function(a){a||(a=i._interval),i._interval&&clearInterval(i._interval),i._interval=setInterval(i._callback,a,i._args)},this.clear=function(){i._interval&&(clearInterval(i._interval),i._interval=void 0)},this.destroy=function(){i._interval&&clearInterval(i._interval),i._callback=void 0,i._interval=void 0,i._args=void 0}}function CO(){if(typeof arguments[0]!="function")throw new Error("callback needed");if(typeof arguments[1]!="number")throw new Error("interval needed");var e;if(arguments.length>0){e=new Array(arguments.length-2);for(var t=0;t<e.length;t++)e[t]=arguments[t+2]}return new PO(arguments[0],arguments[1],e)}var BO=CO,LO=NO;function ts(e){return e instanceof ke.Buffer?ke.Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function NO(e){if(e=e||{},e.circles)return kO(e);return e.proto?i:r;function t(a,n){for(var u=Object.keys(a),c=new Array(u.length),d=0;d<u.length;d++){var m=u[d],M=a[m];typeof M!="object"||M===null?c[m]=M:M instanceof Date?c[m]=new Date(M):ArrayBuffer.isView(M)?c[m]=ts(M):c[m]=n(M)}return c}function r(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,r);if(a instanceof Map)return new Map(t(Array.from(a),r));if(a instanceof Set)return new Set(t(Array.from(a),r));var n={};for(var u in a)if(Object.hasOwnProperty.call(a,u)!==!1){var c=a[u];typeof c!="object"||c===null?n[u]=c:c instanceof Date?n[u]=new Date(c):c instanceof Map?n[u]=new Map(t(Array.from(c),r)):c instanceof Set?n[u]=new Set(t(Array.from(c),r)):ArrayBuffer.isView(c)?n[u]=ts(c):n[u]=r(c)}return n}function i(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,i);if(a instanceof Map)return new Map(t(Array.from(a),i));if(a instanceof Set)return new Set(t(Array.from(a),i));var n={};for(var u in a){var c=a[u];typeof c!="object"||c===null?n[u]=c:c instanceof Date?n[u]=new Date(c):c instanceof Map?n[u]=new Map(t(Array.from(c),i)):c instanceof Set?n[u]=new Set(t(Array.from(c),i)):ArrayBuffer.isView(c)?n[u]=ts(c):n[u]=i(c)}return n}}function kO(e){var t=[],r=[];return e.proto?n:a;function i(u,c){for(var d=Object.keys(u),m=new Array(d.length),M=0;M<d.length;M++){var S=d[M],R=u[S];if(typeof R!="object"||R===null)m[S]=R;else if(R instanceof Date)m[S]=new Date(R);else if(ArrayBuffer.isView(R))m[S]=ts(R);else{var C=t.indexOf(R);C!==-1?m[S]=r[C]:m[S]=c(R)}}return m}function a(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return i(u,a);if(u instanceof Map)return new Map(i(Array.from(u),a));if(u instanceof Set)return new Set(i(Array.from(u),a));var c={};t.push(u),r.push(c);for(var d in u)if(Object.hasOwnProperty.call(u,d)!==!1){var m=u[d];if(typeof m!="object"||m===null)c[d]=m;else if(m instanceof Date)c[d]=new Date(m);else if(m instanceof Map)c[d]=new Map(i(Array.from(m),a));else if(m instanceof Set)c[d]=new Set(i(Array.from(m),a));else if(ArrayBuffer.isView(m))c[d]=ts(m);else{var M=t.indexOf(m);M!==-1?c[d]=r[M]:c[d]=a(m)}}return t.pop(),r.pop(),c}function n(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return i(u,n);if(u instanceof Map)return new Map(i(Array.from(u),n));if(u instanceof Set)return new Set(i(Array.from(u),n));var c={};t.push(u),r.push(c);for(var d in u){var m=u[d];if(typeof m!="object"||m===null)c[d]=m;else if(m instanceof Date)c[d]=new Date(m);else if(m instanceof Map)c[d]=new Map(i(Array.from(m),n));else if(m instanceof Set)c[d]=new Set(i(Array.from(m),n));else if(ArrayBuffer.isView(m))c[d]=ts(m);else{var M=t.indexOf(m);M!==-1?c[d]=r[M]:c[d]=n(m)}}return t.pop(),r.pop(),c}}var $O=LO();function DO(e){const t=e.split("/");for(let r=0;r<t.length;r++)if(t[r]!=="+"){if(t[r]==="#")return r===t.length-1;if(t[r].indexOf("+")!==-1||t[r].indexOf("#")!==-1)return!1}return!0}function FO(e){if(e.length===0)return"empty_topic_list";for(let t=0;t<e.length;t++)if(!DO(e[t]))return e[t];return null}var jO={validateTopics:FO};const r3=Or.EventEmitter,Kl=_M,UO=Q9,HO=uT,i3=Lh,qO=IO,WO=vu.Writable,KO=Ze,VO=BO,n3=$O,o3=jO,Dh=Fv,He=zn("mqttjs:client"),Yv=we?we.nextTick:function(e){setTimeout(e,0)},Zv=Ye.setImmediate||function(e){Yv(e)},K1={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0},zO=["ECONNREFUSED","EADDRINUSE","ECONNRESET","ENOTFOUND"],Vl={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};function GO(){return"mqttjs_"+Math.random().toString(16).substr(2,8)}function YO(e,t){if(e.options.protocolVersion===5&&t.cmd==="publish"){let r;t.properties&&(r=t.properties.topicAlias);const i=t.topic.toString();if(e.topicAliasSend)if(r){if(i.length!==0&&(He("applyTopicAlias :: register topic: %s - alias: %d",i,r),!e.topicAliasSend.put(i,r)))return He("applyTopicAlias :: error out of range. topic: %s - alias: %d",i,r),new Error("Sending Topic Alias out of range")}else i.length!==0&&(e.options.autoAssignTopicAlias?(r=e.topicAliasSend.getAliasByTopic(i),r?(t.topic="",t.properties={...t.properties,topicAlias:r},He("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",i,r)):(r=e.topicAliasSend.getLruAlias(),e.topicAliasSend.put(i,r),t.properties={...t.properties,topicAlias:r},He("applyTopicAlias :: auto assign topic: %s - alias: %d",i,r))):e.options.autoUseTopicAlias&&(r=e.topicAliasSend.getAliasByTopic(i),r&&(t.topic="",t.properties={...t.properties,topicAlias:r},He("applyTopicAlias :: auto use topic: %s - alias: %d",i,r))));else if(r)return He("applyTopicAlias :: error out of range. topic: %s - alias: %d",i,r),new Error("Sending Topic Alias out of range")}}function a3(e,t){let r;t.properties&&(r=t.properties.topicAlias);let i=t.topic.toString();if(i.length===0){if(typeof r>"u")return new Error("Unregistered Topic Alias");if(i=e.topicAliasSend.getTopicByAlias(r),typeof i>"u")return new Error("Unregistered Topic Alias");t.topic=i}r&&delete t.properties.topicAlias}function rs(e,t,r){He("sendPacket :: packet: %O",t),He("sendPacket :: emitting `packetsend`"),e.emit("packetsend",t),He("sendPacket :: writing to stream");const i=i3.writeToStream(t,e.stream,e.options);He("sendPacket :: writeToStream result %s",i),!i&&r&&r!==yr?(He("sendPacket :: handle events on `drain` once through callback."),e.stream.once("drain",r)):r&&(He("sendPacket :: invoking cb"),r())}function ZO(e){e&&(He("flush: queue exists? %b",!!e),Object.keys(e).forEach(function(t){typeof e[t].cb=="function"&&(e[t].cb(new Error("Connection closed")),delete e[t])}))}function XO(e){e&&(He("flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(e).forEach(function(t){e[t].volatile&&typeof e[t].cb=="function"&&(e[t].cb(new Error("Connection closed")),delete e[t])}))}function V1(e,t,r,i){He("storeAndSend :: store packet with cmd %s to outgoingStore",t.cmd);let a=t,n;if(a.cmd==="publish"&&(a=n3(t),n=a3(e,a),n))return r&&r(n);e.outgoingStore.put(a,function(c){if(c)return r&&r(c);i(),rs(e,t,r)})}function yr(e){He("nop ::",e)}function gt(e,t){let r;const i=this;if(!(this instanceof gt))return new gt(e,t);this.options=t||{};for(r in K1)typeof this.options[r]>"u"?this.options[r]=K1[r]:this.options[r]=t[r];He("MqttClient :: options.protocol",t.protocol),He("MqttClient :: options.protocolVersion",t.protocolVersion),He("MqttClient :: options.username",t.username),He("MqttClient :: options.keepalive",t.keepalive),He("MqttClient :: options.reconnectPeriod",t.reconnectPeriod),He("MqttClient :: options.rejectUnauthorized",t.rejectUnauthorized),He("MqttClient :: options.topicAliasMaximum",t.topicAliasMaximum),this.options.clientId=typeof t.clientId=="string"?t.clientId:GO(),He("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=t.protocolVersion===5&&t.customHandleAcks?t.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=e,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new qO:this.options.messageIdProvider,this.outgoingStore=t.outgoingStore||new Kl,this.incomingStore=t.incomingStore||new Kl,this.queueQoSZero=t.queueQoSZero===void 0?!0:t.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,t.topicAliasMaximum>0&&(t.topicAliasMaximum>65535?He("MqttClient :: options.topicAliasMaximum is out of range"):this.topicAliasRecv=new UO(t.topicAliasMaximum)),this.on("connect",function(){const a=this.queue;function n(){const u=a.shift();He("deliver :: entry %o",u);let c=null;if(!u){i._resubscribe();return}c=u.packet,He("deliver :: call _sendPacket for %o",c);let d=!0;c.messageId&&c.messageId!==0&&(i.messageIdProvider.register(c.messageId)||(d=!1)),d?i._sendPacket(c,function(m){u.cb&&u.cb(m),n()}):(He("messageId: %d has already used. The message is skipped and removed.",c.messageId),n())}He("connect :: sending queued packets"),n()}),this.on("close",function(){He("close :: connected set to `false`"),this.connected=!1,He("close :: clearing connackTimer"),clearTimeout(this.connackTimer),He("close :: clearing ping timer"),i.pingTimer!==null&&(i.pingTimer.clear(),i.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),He("close :: calling _setupReconnect"),this._setupReconnect()}),r3.call(this),He("MqttClient :: setting up stream"),this._setupStream()}KO(gt,r3);gt.prototype._setupStream=function(){const e=this,t=new WO,r=i3.parser(this.options);let i=null;const a=[];He("_setupStream :: calling method to clear reconnect"),this._clearReconnect(),He("_setupStream :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),r.on("packet",function(m){He("parser :: on packet push to packets array."),a.push(m)});function n(){if(a.length)Yv(u);else{const m=i;i=null,m()}}function u(){He("work :: getting next packet in queue");const m=a.shift();if(m)He("work :: packet pulled from queue"),e._handlePacket(m,n);else{He("work :: no packets in queue");const M=i;i=null,He("work :: done flag is %s",!!M),M&&M()}}t._write=function(m,M,S){i=S,He("writable stream :: parsing buffer"),r.parse(m),u()};function c(m){He("streamErrorHandler :: error",m.message),zO.includes(m.code)?(He("streamErrorHandler :: emitting error"),e.emit("error",m)):yr(m)}He("_setupStream :: pipe stream to writable stream"),this.stream.pipe(t),this.stream.on("error",c),this.stream.on("close",function(){He("(%s)stream :: on close",e.options.clientId),XO(e.outgoing),He("stream: emit close to MqttClient"),e.emit("close")}),He("_setupStream: sending packet `connect`");const d=Object.create(this.options);if(d.cmd="connect",this.topicAliasRecv&&(d.properties||(d.properties={}),this.topicAliasRecv&&(d.properties.topicAliasMaximum=this.topicAliasRecv.max)),rs(this,d),r.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return e.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){const m=Dh({cmd:"auth",reasonCode:0},this.options.authPacket);rs(this,m)}}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(function(){He("!!connectTimeout hit!! Calling _cleanUp with force `true`"),e._cleanUp(!0)},this.options.connectTimeout)};gt.prototype._handlePacket=function(e,t){const r=this.options;if(r.protocolVersion===5&&r.properties&&r.properties.maximumPacketSize&&r.properties.maximumPacketSize<e.length)return this.emit("error",new Error("exceeding packets size "+e.cmd)),this.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),this;switch(He("_handlePacket :: emitting packetreceive"),this.emit("packetreceive",e),e.cmd){case"publish":this._handlePublish(e,t);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":this._handleAck(e),t();break;case"pubrel":this._handlePubrel(e,t);break;case"connack":this._handleConnack(e),t();break;case"auth":this._handleAuth(e),t();break;case"pingresp":this._handlePingresp(e),t();break;case"disconnect":this._handleDisconnect(e),t();break}};gt.prototype._checkDisconnecting=function(e){return this.disconnecting&&(e&&e!==yr?e(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting};gt.prototype.publish=function(e,t,r,i){He("publish :: message `%s` to topic `%s`",t,e);const a=this.options;if(typeof r=="function"&&(i=r,r=null),r=Dh({qos:0,retain:!1,dup:!1},r),this._checkDisconnecting(i))return this;const u=this,c=function(){let d=0;if((r.qos===1||r.qos===2)&&(d=u._nextId(),d===null))return He("No messageId left"),!1;const m={cmd:"publish",topic:e,payload:t,qos:r.qos,retain:r.retain,messageId:d,dup:r.dup};switch(a.protocolVersion===5&&(m.properties=r.properties),He("publish :: qos",r.qos),r.qos){case 1:case 2:u.outgoing[m.messageId]={volatile:!1,cb:i||yr},He("MqttClient:publish: packet cmd: %s",m.cmd),u._sendPacket(m,void 0,r.cbStorePut);break;default:He("MqttClient:publish: packet cmd: %s",m.cmd),u._sendPacket(m,i,r.cbStorePut);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!c())&&this._storeProcessingQueue.push({invoke:c,cbStorePut:r.cbStorePut,callback:i}),this};gt.prototype.subscribe=function(){const e=this,t=new Array(arguments.length);for(let S=0;S<arguments.length;S++)t[S]=arguments[S];const r=[];let i=t.shift();const a=i.resubscribe;let n=t.pop()||yr,u=t.pop();const c=this.options.protocolVersion;delete i.resubscribe,typeof i=="string"&&(i=[i]),typeof n!="function"&&(u=n,n=yr);const d=o3.validateTopics(i);if(d!==null)return Zv(n,new Error("Invalid topic "+d)),this;if(this._checkDisconnecting(n))return He("subscribe: discconecting true"),this;const m={qos:0};if(c===5&&(m.nl=!1,m.rap=!1,m.rh=0),u=Dh(m,u),Array.isArray(i)?i.forEach(function(S){if(He("subscribe: array topic %s",S),!Object.prototype.hasOwnProperty.call(e._resubscribeTopics,S)||e._resubscribeTopics[S].qos<u.qos||a){const R={topic:S,qos:u.qos};c===5&&(R.nl=u.nl,R.rap=u.rap,R.rh=u.rh,R.properties=u.properties),He("subscribe: pushing topic `%s` and qos `%s` to subs list",R.topic,R.qos),r.push(R)}}):Object.keys(i).forEach(function(S){if(He("subscribe: object topic %s",S),!Object.prototype.hasOwnProperty.call(e._resubscribeTopics,S)||e._resubscribeTopics[S].qos<i[S].qos||a){const R={topic:S,qos:i[S].qos};c===5&&(R.nl=i[S].nl,R.rap=i[S].rap,R.rh=i[S].rh,R.properties=u.properties),He("subscribe: pushing `%s` to subs list",R),r.push(R)}}),!r.length)return n(null,[]),this;const M=function(){const S=e._nextId();if(S===null)return He("No messageId left"),!1;const R={cmd:"subscribe",subscriptions:r,qos:1,retain:!1,dup:!1,messageId:S};if(u.properties&&(R.properties=u.properties),e.options.resubscribe){He("subscribe :: resubscribe true");const C=[];r.forEach(function(P){if(e.options.reconnectPeriod>0){const k={qos:P.qos};c===5&&(k.nl=P.nl||!1,k.rap=P.rap||!1,k.rh=P.rh||0,k.properties=P.properties),e._resubscribeTopics[P.topic]=k,C.push(P.topic)}}),e.messageIdToTopic[R.messageId]=C}return e.outgoing[R.messageId]={volatile:!0,cb:function(C,P){if(!C){const k=P.granted;for(let L=0;L<k.length;L+=1)r[L].qos=k[L]}n(C,r)}},He("subscribe :: call _sendPacket"),e._sendPacket(R),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!M())&&this._storeProcessingQueue.push({invoke:M,callback:n}),this};gt.prototype.unsubscribe=function(){const e=this,t=new Array(arguments.length);for(let c=0;c<arguments.length;c++)t[c]=arguments[c];let r=t.shift(),i=t.pop()||yr,a=t.pop();typeof r=="string"&&(r=[r]),typeof i!="function"&&(a=i,i=yr);const n=o3.validateTopics(r);if(n!==null)return Zv(i,new Error("Invalid topic "+n)),this;if(e._checkDisconnecting(i))return this;const u=function(){const c=e._nextId();if(c===null)return He("No messageId left"),!1;const d={cmd:"unsubscribe",qos:1,messageId:c};return typeof r=="string"?d.unsubscriptions=[r]:Array.isArray(r)&&(d.unsubscriptions=r),e.options.resubscribe&&d.unsubscriptions.forEach(function(m){delete e._resubscribeTopics[m]}),typeof a=="object"&&a.properties&&(d.properties=a.properties),e.outgoing[d.messageId]={volatile:!0,cb:i},He("unsubscribe: call _sendPacket"),e._sendPacket(d),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!u())&&this._storeProcessingQueue.push({invoke:u,callback:i}),this};gt.prototype.end=function(e,t,r){const i=this;He("end :: (%s)",this.options.clientId),(e==null||typeof e!="boolean")&&(r=t||yr,t=e,e=!1,typeof t!="object"&&(r=t,t=null,typeof r!="function"&&(r=yr))),typeof t!="object"&&(r=t,t=null),He("end :: cb? %s",!!r),r=r||yr;function a(){He("end :: closeStores: closing incoming and outgoing stores"),i.disconnected=!0,i.incomingStore.close(function(u){i.outgoingStore.close(function(c){if(He("end :: closeStores: emitting end"),i.emit("end"),r){const d=u||c;He("end :: closeStores: invoking callback with args"),r(d)}})}),i._deferredReconnect&&i._deferredReconnect()}function n(){He("end :: (%s) :: finish :: calling _cleanUp with force %s",i.options.clientId,e),i._cleanUp(e,()=>{He("end :: finish :: calling process.nextTick on closeStores"),Yv(a.bind(i))},t)}return this.disconnecting?(r(),this):(this._clearReconnect(),this.disconnecting=!0,!e&&Object.keys(this.outgoing).length>0?(He("end :: (%s) :: calling finish in 10ms once outgoing is empty",i.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,n,10))):(He("end :: (%s) :: immediately calling finish",i.options.clientId),n()),this)};gt.prototype.removeOutgoingMessage=function(e){const t=this.outgoing[e]?this.outgoing[e].cb:null;return delete this.outgoing[e],this.outgoingStore.del({messageId:e},function(){t(new Error("Message removed"))}),this};gt.prototype.reconnect=function(e){He("client reconnect");const t=this,r=function(){e?(t.options.incomingStore=e.incomingStore,t.options.outgoingStore=e.outgoingStore):(t.options.incomingStore=null,t.options.outgoingStore=null),t.incomingStore=t.options.incomingStore||new Kl,t.outgoingStore=t.options.outgoingStore||new Kl,t.disconnecting=!1,t.disconnected=!1,t._deferredReconnect=null,t._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=r:r(),this};gt.prototype._reconnect=function(){He("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this._setupStream()}),He("client already connected. disconnecting first.")):(He("_reconnect: calling _setupStream"),this._setupStream())};gt.prototype._setupReconnect=function(){const e=this;!e.disconnecting&&!e.reconnectTimer&&e.options.reconnectPeriod>0?(this.reconnecting||(He("_setupReconnect :: emit `offline` state"),this.emit("offline"),He("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),He("_setupReconnect :: setting reconnectTimer for %d ms",e.options.reconnectPeriod),e.reconnectTimer=setInterval(function(){He("reconnectTimer :: reconnect triggered!"),e._reconnect()},e.options.reconnectPeriod)):He("_setupReconnect :: doing nothing...")};gt.prototype._clearReconnect=function(){He("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)};gt.prototype._cleanUp=function(e,t){const r=arguments[2];if(t&&(He("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",t)),He("_cleanUp :: forced? %s",e),e)this.options.reconnectPeriod===0&&this.options.clean&&ZO(this.outgoing),He("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{const i=Dh({cmd:"disconnect"},r);He("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(i,Zv.bind(null,this.stream.end.bind(this.stream)))}this.disconnecting||(He("_cleanUp :: client not disconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this.pingTimer!==null&&(He("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),t&&!this.connected&&(He("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",t),t())};gt.prototype._sendPacket=function(e,t,r){He("_sendPacket :: (%s) ::  start",this.options.clientId),r=r||yr,t=t||yr;const i=YO(this,e);if(i){t(i);return}if(!this.connected){if(e.cmd==="auth"){this._shiftPingInterval(),rs(this,e,t);return}He("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(e,t,r);return}switch(this._shiftPingInterval(),e.cmd){case"publish":break;case"pubrel":V1(this,e,t,r);return;default:rs(this,e,t);return}switch(e.qos){case 2:case 1:V1(this,e,t,r);break;case 0:default:rs(this,e,t);break}He("_sendPacket :: (%s) ::  end",this.options.clientId)};gt.prototype._storePacket=function(e,t,r){He("_storePacket :: packet: %o",e),He("_storePacket :: cb? %s",!!t),r=r||yr;let i=e;if(i.cmd==="publish"){i=n3(e);const a=a3(this,i);if(a)return t&&t(a)}(i.qos||0)===0&&this.queueQoSZero||i.cmd!=="publish"?this.queue.push({packet:i,cb:t}):i.qos>0?(t=this.outgoing[i.messageId]?this.outgoing[i.messageId].cb:null,this.outgoingStore.put(i,function(a){if(a)return t&&t(a);r()})):t&&t(new Error("No connection to broker"))};gt.prototype._setupPingTimer=function(){He("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive);const e=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=VO(function(){e._checkPing()},this.options.keepalive*1e3))};gt.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(this.options.keepalive*1e3)};gt.prototype._checkPing=function(){He("_checkPing :: checking ping..."),this.pingResp?(He("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(He("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))};gt.prototype._handlePingresp=function(){this.pingResp=!0};gt.prototype._handleConnack=function(e){He("_handleConnack");const t=this.options,i=t.protocolVersion===5?e.reasonCode:e.returnCode;if(clearTimeout(this.connackTimer),delete this.topicAliasSend,e.properties){if(e.properties.topicAliasMaximum){if(e.properties.topicAliasMaximum>65535){this.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}e.properties.topicAliasMaximum>0&&(this.topicAliasSend=new HO(e.properties.topicAliasMaximum))}e.properties.serverKeepAlive&&t.keepalive&&(t.keepalive=e.properties.serverKeepAlive,this._shiftPingInterval()),e.properties.maximumPacketSize&&(t.properties||(t.properties={}),t.properties.maximumPacketSize=e.properties.maximumPacketSize)}if(i===0)this.reconnecting=!1,this._onConnect(e);else if(i>0){const a=new Error("Connection refused: "+Vl[i]);a.code=i,this.emit("error",a)}};gt.prototype._handleAuth=function(e){const r=this.options.protocolVersion,i=r===5?e.reasonCode:e.returnCode;if(r!==5){const n=new Error("Protocol error: Auth packets are only supported in MQTT 5. Your version:"+r);n.code=i,this.emit("error",n);return}const a=this;this.handleAuth(e,function(n,u){if(n){a.emit("error",n);return}if(i===24)a.reconnecting=!1,a._sendPacket(u);else{const c=new Error("Connection refused: "+Vl[i]);n.code=i,a.emit("error",c)}})};gt.prototype.handleAuth=function(e,t){t()};gt.prototype._handlePublish=function(e,t){He("_handlePublish: packet %o",e),t=typeof t<"u"?t:yr;let r=e.topic.toString();const i=e.payload,a=e.qos,n=e.messageId,u=this,c=this.options,d=[0,16,128,131,135,144,145,151,153];if(this.options.protocolVersion===5){let m;if(e.properties&&(m=e.properties.topicAlias),typeof m<"u")if(r.length===0)if(m>0&&m<=65535){const M=this.topicAliasRecv.getTopicByAlias(m);if(M)r=M,He("_handlePublish :: topic complemented by alias. topic: %s - alias: %d",r,m);else{He("_handlePublish :: unregistered topic alias. alias: %d",m),this.emit("error",new Error("Received unregistered Topic Alias"));return}}else{He("_handlePublish :: topic alias out of range. alias: %d",m),this.emit("error",new Error("Received Topic Alias is out of range"));return}else if(this.topicAliasRecv.put(r,m))He("_handlePublish :: registered topic: %s - alias: %d",r,m);else{He("_handlePublish :: topic alias out of range. alias: %d",m),this.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(He("_handlePublish: qos %d",a),a){case 2:{c.customHandleAcks(r,i,e,function(m,M){if(m instanceof Error||(M=m,m=null),m)return u.emit("error",m);if(d.indexOf(M)===-1)return u.emit("error",new Error("Wrong reason code for pubrec"));M?u._sendPacket({cmd:"pubrec",messageId:n,reasonCode:M},t):u.incomingStore.put(e,function(){u._sendPacket({cmd:"pubrec",messageId:n},t)})});break}case 1:{c.customHandleAcks(r,i,e,function(m,M){if(m instanceof Error||(M=m,m=null),m)return u.emit("error",m);if(d.indexOf(M)===-1)return u.emit("error",new Error("Wrong reason code for puback"));M||u.emit("message",r,i,e),u.handleMessage(e,function(S){if(S)return t&&t(S);u._sendPacket({cmd:"puback",messageId:n,reasonCode:M},t)})});break}case 0:this.emit("message",r,i,e),this.handleMessage(e,t);break;default:He("_handlePublish: unknown QoS. Doing nothing.");break}};gt.prototype.handleMessage=function(e,t){t()};gt.prototype._handleAck=function(e){const t=e.messageId,r=e.cmd;let i=null;const a=this.outgoing[t]?this.outgoing[t].cb:null,n=this;let u;if(!a){He("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(He("_handleAck :: packet type",r),r){case"pubcomp":case"puback":{const c=e.reasonCode;c&&c>0&&c!==16&&(u=new Error("Publish error: "+Vl[c]),u.code=c,a(u,e)),delete this.outgoing[t],this.outgoingStore.del(e,a),this.messageIdProvider.deallocate(t),this._invokeStoreProcessingQueue();break}case"pubrec":{i={cmd:"pubrel",qos:2,messageId:t};const c=e.reasonCode;c&&c>0&&c!==16?(u=new Error("Publish error: "+Vl[c]),u.code=c,a(u,e)):this._sendPacket(i);break}case"suback":{delete this.outgoing[t],this.messageIdProvider.deallocate(t);for(let c=0;c<e.granted.length;c++)if(e.granted[c]&128){const d=this.messageIdToTopic[t];d&&d.forEach(function(m){delete n._resubscribeTopics[m]})}this._invokeStoreProcessingQueue(),a(null,e);break}case"unsuback":{delete this.outgoing[t],this.messageIdProvider.deallocate(t),this._invokeStoreProcessingQueue(),a(null);break}default:n.emit("error",new Error("unrecognized packet type"))}this.disconnecting&&Object.keys(this.outgoing).length===0&&this.emit("outgoingEmpty")};gt.prototype._handlePubrel=function(e,t){He("handling pubrel packet"),t=typeof t<"u"?t:yr;const r=e.messageId,i=this,a={cmd:"pubcomp",messageId:r};i.incomingStore.get(e,function(n,u){n?i._sendPacket(a,t):(i.emit("message",u.topic,u.payload,u),i.handleMessage(u,function(c){if(c)return t(c);i.incomingStore.del(u,yr),i._sendPacket(a,t)}))})};gt.prototype._handleDisconnect=function(e){this.emit("disconnect",e)};gt.prototype._nextId=function(){return this.messageIdProvider.allocate()};gt.prototype.getLastMessageId=function(){return this.messageIdProvider.getLastAllocated()};gt.prototype._resubscribe=function(){He("_resubscribe");const e=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion===5&&!this.connackPacket.sessionPresent)&&e.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){He("_resubscribe: protocolVersion 5");for(let t=0;t<e.length;t++){const r={};r[e[t]]=this._resubscribeTopics[e[t]],r.resubscribe=!0,this.subscribe(r,{properties:r[e[t]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1};gt.prototype._onConnect=function(e){if(this.disconnected){this.emit("connect",e);return}const t=this;this.connackPacket=e,this.messageIdProvider.clear(),this._setupPingTimer(),this.connected=!0;function r(){let i=t.outgoingStore.createStream();function a(){t._storeProcessing=!1,t._packetIdsDuringStoreProcessing={}}t.once("close",n),i.on("error",function(c){a(),t._flushStoreProcessingQueue(),t.removeListener("close",n),t.emit("error",c)});function n(){i.destroy(),i=null,t._flushStoreProcessingQueue(),a()}function u(){if(!i)return;t._storeProcessing=!0;const c=i.read(1);let d;if(!c){i.once("readable",u);return}if(t._packetIdsDuringStoreProcessing[c.messageId]){u();return}!t.disconnecting&&!t.reconnectTimer?(d=t.outgoing[c.messageId]?t.outgoing[c.messageId].cb:null,t.outgoing[c.messageId]={volatile:!1,cb:function(m,M){d&&d(m,M),u()}},t._packetIdsDuringStoreProcessing[c.messageId]=!0,t.messageIdProvider.register(c.messageId)?t._sendPacket(c):He("messageId: %d has already used.",c.messageId)):i.destroy&&i.destroy()}i.on("end",function(){let c=!0;for(const d in t._packetIdsDuringStoreProcessing)if(!t._packetIdsDuringStoreProcessing[d]){c=!1;break}c?(a(),t.removeListener("close",n),t._invokeAllStoreProcessingQueue(),t.emit("connect",e)):r()}),u()}r()};gt.prototype._invokeStoreProcessingQueue=function(){if(this._storeProcessingQueue.length>0){const e=this._storeProcessingQueue[0];if(e&&e.invoke())return this._storeProcessingQueue.shift(),!0}return!1};gt.prototype._invokeAllStoreProcessingQueue=function(){for(;this._invokeStoreProcessingQueue(););};gt.prototype._flushStoreProcessingQueue=function(){for(const e of this._storeProcessingQueue)e.cbStorePut&&e.cbStorePut(new Error("Connection closed")),e.callback&&e.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)};var JO=gt,mp={exports:{}},zl={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */zl.exports;(function(e,t){(function(r){var i=t&&!t.nodeType&&t,a=e&&!e.nodeType&&e,n=typeof Ye=="object"&&Ye;(n.global===n||n.window===n||n.self===n)&&(r=n);var u,c=2147483647,d=36,m=1,M=26,S=38,R=700,C=72,P=128,k="-",L=/^xn--/,I=/[^\x20-\x7E]/,B=/[\x2E\u3002\uFF0E\uFF61]/g,H={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=d-m,W=Math.floor,Y=String.fromCharCode,ie;function J(s){throw new RangeError(H[s])}function V(s,v){for(var T=s.length,$=[];T--;)$[T]=v(s[T]);return $}function oe(s,v){var T=s.split("@"),$="";T.length>1&&($=T[0]+"@",s=T[1]),s=s.replace(B,".");var G=s.split("."),ee=V(G,v).join(".");return $+ee}function _(s){for(var v=[],T=0,$=s.length,G,ee;T<$;)G=s.charCodeAt(T++),G>=55296&&G<=56319&&T<$?(ee=s.charCodeAt(T++),(ee&64512)==56320?v.push(((G&1023)<<10)+(ee&1023)+65536):(v.push(G),T--)):v.push(G);return v}function o(s){return V(s,function(v){var T="";return v>65535&&(v-=65536,T+=Y(v>>>10&1023|55296),v=56320|v&1023),T+=Y(v),T}).join("")}function f(s){return s-48<10?s-22:s-65<26?s-65:s-97<26?s-97:d}function l(s,v){return s+22+75*(s<26)-((v!=0)<<5)}function h(s,v,T){var $=0;for(s=T?W(s/R):s>>1,s+=W(s/v);s>F*M>>1;$+=d)s=W(s/F);return W($+(F+1)*s/(s+S))}function p(s){var v=[],T=s.length,$,G=0,ee=P,A=C,E,U,K,Z,b,y,O,q,X;for(E=s.lastIndexOf(k),E<0&&(E=0),U=0;U<E;++U)s.charCodeAt(U)>=128&&J("not-basic"),v.push(s.charCodeAt(U));for(K=E>0?E+1:0;K<T;){for(Z=G,b=1,y=d;K>=T&&J("invalid-input"),O=f(s.charCodeAt(K++)),(O>=d||O>W((c-G)/b))&&J("overflow"),G+=O*b,q=y<=A?m:y>=A+M?M:y-A,!(O<q);y+=d)X=d-q,b>W(c/X)&&J("overflow"),b*=X;$=v.length+1,A=h(G-Z,$,Z==0),W(G/$)>c-ee&&J("overflow"),ee+=W(G/$),G%=$,v.splice(G++,0,ee)}return o(v)}function w(s){var v,T,$,G,ee,A,E,U,K,Z,b,y=[],O,q,X,D;for(s=_(s),O=s.length,v=P,T=0,ee=C,A=0;A<O;++A)b=s[A],b<128&&y.push(Y(b));for($=G=y.length,G&&y.push(k);$<O;){for(E=c,A=0;A<O;++A)b=s[A],b>=v&&b<E&&(E=b);for(q=$+1,E-v>W((c-T)/q)&&J("overflow"),T+=(E-v)*q,v=E,A=0;A<O;++A)if(b=s[A],b<v&&++T>c&&J("overflow"),b==v){for(U=T,K=d;Z=K<=ee?m:K>=ee+M?M:K-ee,!(U<Z);K+=d)D=U-Z,X=d-Z,y.push(Y(l(Z+D%X,0))),U=W(D/X);y.push(Y(l(U,0))),ee=h(T,q,$==G),T=0,++$}++T,++v}return y.join("")}function x(s){return oe(s,function(v){return L.test(v)?p(v.slice(4).toLowerCase()):v})}function g(s){return oe(s,function(v){return I.test(v)?"xn--"+w(v):v})}if(u={version:"1.4.1",ucs2:{decode:_,encode:o},decode:p,encode:w,toASCII:g,toUnicode:x},i&&a)if(e.exports==i)a.exports=u;else for(ie in u)u.hasOwnProperty(ie)&&(i[ie]=u[ie]);else r.punycode=u})(Ye)})(zl,zl.exports);var QO=zl.exports,yp={exports:{}},eu={};function eI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var tI=function(e,t,r,i){t=t||"&",r=r||"=";var a={};if(typeof e!="string"||e.length===0)return a;var n=/\+/g;e=e.split(t);var u=1e3;i&&typeof i.maxKeys=="number"&&(u=i.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var d=0;d<c;++d){var m=e[d].replace(n,"%20"),M=m.indexOf(r),S,R,C,P;M>=0?(S=m.substr(0,M),R=m.substr(M+1)):(S=m,R=""),C=decodeURIComponent(S),P=decodeURIComponent(R),eI(a,C)?rI(a[C])?a[C].push(P):a[C]=[a[C],P]:a[C]=P}return a},rI=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},of=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},iI=function(e,t,r,i){return t=t||"&",r=r||"=",e===null&&(e=void 0),typeof e=="object"?z1(oI(e),function(a){var n=encodeURIComponent(of(a))+r;return nI(e[a])?z1(e[a],function(u){return n+encodeURIComponent(of(u))}).join(t):n+encodeURIComponent(of(e[a]))}).join(t):i?encodeURIComponent(of(i))+r+encodeURIComponent(of(e)):""},nI=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function z1(e,t){if(e.map)return e.map(t);for(var r=[],i=0;i<e.length;i++)r.push(t(e[i],i));return r}var oI=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t};eu.decode=eu.parse=tI;eu.encode=eu.stringify=iI;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=eu;function i(u){return encodeURIComponent(u)}function a(u){return decodeURIComponent(u)}var n={decode:r.decode,encode:r.encode,parse:r.parse,stringify:r.stringify,escape:i,unescape:a};Object.defineProperty(t,"decode",{enumerable:!0,get:function(){return r.decode}}),Object.defineProperty(t,"encode",{enumerable:!0,get:function(){return r.encode}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.parse}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return r.stringify}}),t.default=n,t.escape=i,t.unescape=a,t=e.exports=n})(yp,yp.exports);var aI=yp.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=QO,i=aI;function a(Q){return Q&&typeof Q=="object"&&"default"in Q?Q:{default:Q}}var n=a(r),u=a(i),c={isString:function(Q){return typeof Q=="string"},isObject:function(Q){return typeof Q=="object"&&Q!==null},isNull:function(Q){return Q===null},isNullOrUndefined:function(Q){return Q==null}},d=n.default,m=c,M=h,S=w,R=x,C=p,P=k;function k(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var L=/^([a-z0-9.+-]+:)/i,I=/:[0-9]*$/,B=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,H=["<",">",'"',"`"," ","\r",`
+`,"	"],F=["{","}","|","\\","^","`"].concat(H),W=["'"].concat(F),Y=["%","/","?",";","#"].concat(W),ie=["/","?","#"],J=255,V=/^[+a-z0-9A-Z_-]{0,63}$/,oe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},o={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},l=u.default;function h(Q,ue,le){if(Q&&m.isObject(Q)&&Q instanceof k)return Q;var ce=new k;return ce.parse(Q,ue,le),ce}k.prototype.parse=function(Q,ue,le){if(!m.isString(Q))throw new TypeError("Parameter 'url' must be a string, not "+typeof Q);var ce=Q.indexOf("?"),pe=ce!==-1&&ce<Q.indexOf("#")?"?":"#",de=Q.split(pe),ae=/\\/g;de[0]=de[0].replace(ae,"/"),Q=de.join(pe);var fe=Q;if(fe=fe.trim(),!le&&Q.split("#").length===1){var Te=B.exec(fe);if(Te)return this.path=fe,this.href=fe,this.pathname=Te[1],Te[2]?(this.search=Te[2],ue?this.query=l.parse(this.search.substr(1)):this.query=this.search.substr(1)):ue&&(this.search="",this.query={}),this}var ve=L.exec(fe);if(ve){ve=ve[0];var Me=ve.toLowerCase();this.protocol=Me,fe=fe.substr(ve.length)}if(le||ve||fe.match(/^\/\/[^@\/]+@[^@\/]+/)){var Ke=fe.substr(0,2)==="//";Ke&&!(ve&&o[ve])&&(fe=fe.substr(2),this.slashes=!0)}if(!o[ve]&&(Ke||ve&&!f[ve])){for(var be=-1,Se=0;Se<ie.length;Se++){var qe=fe.indexOf(ie[Se]);qe!==-1&&(be===-1||qe<be)&&(be=qe)}var ye,_e;be===-1?_e=fe.lastIndexOf("@"):_e=fe.lastIndexOf("@",be),_e!==-1&&(ye=fe.slice(0,_e),fe=fe.slice(_e+1),this.auth=decodeURIComponent(ye)),be=-1;for(var Se=0;Se<Y.length;Se++){var qe=fe.indexOf(Y[Se]);qe!==-1&&(be===-1||qe<be)&&(be=qe)}be===-1&&(be=fe.length),this.host=fe.slice(0,be),fe=fe.slice(be),this.parseHost(),this.hostname=this.hostname||"";var Ve=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Ve)for(var ge=this.hostname.split(/\./),Se=0,xe=ge.length;Se<xe;Se++){var Xe=ge[Se];if(Xe&&!Xe.match(V)){for(var Re="",Le=0,at=Xe.length;Le<at;Le++)Xe.charCodeAt(Le)>127?Re+="x":Re+=Xe[Le];if(!Re.match(V)){var Ae=ge.slice(0,Se),Ne=ge.slice(Se+1),rt=Xe.match(oe);rt&&(Ae.push(rt[1]),Ne.unshift(rt[2])),Ne.length&&(fe="/"+Ne.join(".")+fe),this.hostname=Ae.join(".");break}}}this.hostname.length>J?this.hostname="":this.hostname=this.hostname.toLowerCase(),Ve||(this.hostname=d.toASCII(this.hostname));var Oe=this.port?":"+this.port:"",De=this.hostname||"";this.host=De+Oe,this.href+=this.host,Ve&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),fe[0]!=="/"&&(fe="/"+fe))}if(!_[Me])for(var Se=0,xe=W.length;Se<xe;Se++){var nt=W[Se];if(fe.indexOf(nt)!==-1){var Ie=encodeURIComponent(nt);Ie===nt&&(Ie=escape(nt)),fe=fe.split(nt).join(Ie)}}var $e=fe.indexOf("#");$e!==-1&&(this.hash=fe.substr($e),fe=fe.slice(0,$e));var st=fe.indexOf("?");if(st!==-1?(this.search=fe.substr(st),this.query=fe.substr(st+1),ue&&(this.query=l.parse(this.query)),fe=fe.slice(0,st)):ue&&(this.search="",this.query={}),fe&&(this.pathname=fe),f[Me]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Oe=this.pathname||"",Pe=this.search||"";this.path=Oe+Pe}return this.href=this.format(),this};function p(Q){return m.isString(Q)&&(Q=h(Q)),Q instanceof k?Q.format():k.prototype.format.call(Q)}k.prototype.format=function(){var Q=this.auth||"";Q&&(Q=encodeURIComponent(Q),Q=Q.replace(/%3A/i,":"),Q+="@");var ue=this.protocol||"",le=this.pathname||"",ce=this.hash||"",pe=!1,de="";this.host?pe=Q+this.host:this.hostname&&(pe=Q+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(pe+=":"+this.port)),this.query&&m.isObject(this.query)&&Object.keys(this.query).length&&(de=l.stringify(this.query));var ae=this.search||de&&"?"+de||"";return ue&&ue.substr(-1)!==":"&&(ue+=":"),this.slashes||(!ue||f[ue])&&pe!==!1?(pe="//"+(pe||""),le&&le.charAt(0)!=="/"&&(le="/"+le)):pe||(pe=""),ce&&ce.charAt(0)!=="#"&&(ce="#"+ce),ae&&ae.charAt(0)!=="?"&&(ae="?"+ae),le=le.replace(/[?#]/g,function(fe){return encodeURIComponent(fe)}),ae=ae.replace("#","%23"),ue+pe+le+ae+ce};function w(Q,ue){return h(Q,!1,!0).resolve(ue)}k.prototype.resolve=function(Q){return this.resolveObject(h(Q,!1,!0)).format()};function x(Q,ue){return Q?h(Q,!1,!0).resolveObject(ue):ue}k.prototype.resolveObject=function(Q){if(m.isString(Q)){var ue=new k;ue.parse(Q,!1,!0),Q=ue}for(var le=new k,ce=Object.keys(this),pe=0;pe<ce.length;pe++){var de=ce[pe];le[de]=this[de]}if(le.hash=Q.hash,Q.href==="")return le.href=le.format(),le;if(Q.slashes&&!Q.protocol){for(var ae=Object.keys(Q),fe=0;fe<ae.length;fe++){var Te=ae[fe];Te!=="protocol"&&(le[Te]=Q[Te])}return f[le.protocol]&&le.hostname&&!le.pathname&&(le.path=le.pathname="/"),le.href=le.format(),le}if(Q.protocol&&Q.protocol!==le.protocol){if(!f[Q.protocol]){for(var ve=Object.keys(Q),Me=0;Me<ve.length;Me++){var Ke=ve[Me];le[Ke]=Q[Ke]}return le.href=le.format(),le}if(le.protocol=Q.protocol,!Q.host&&!o[Q.protocol]){for(var xe=(Q.pathname||"").split("/");xe.length&&!(Q.host=xe.shift()););Q.host||(Q.host=""),Q.hostname||(Q.hostname=""),xe[0]!==""&&xe.unshift(""),xe.length<2&&xe.unshift(""),le.pathname=xe.join("/")}else le.pathname=Q.pathname;if(le.search=Q.search,le.query=Q.query,le.host=Q.host||"",le.auth=Q.auth,le.hostname=Q.hostname||Q.host,le.port=Q.port,le.pathname||le.search){var be=le.pathname||"",Se=le.search||"";le.path=be+Se}return le.slashes=le.slashes||Q.slashes,le.href=le.format(),le}var qe=le.pathname&&le.pathname.charAt(0)==="/",ye=Q.host||Q.pathname&&Q.pathname.charAt(0)==="/",_e=ye||qe||le.host&&Q.pathname,Ve=_e,ge=le.pathname&&le.pathname.split("/")||[],xe=Q.pathname&&Q.pathname.split("/")||[],Xe=le.protocol&&!f[le.protocol];if(Xe&&(le.hostname="",le.port=null,le.host&&(ge[0]===""?ge[0]=le.host:ge.unshift(le.host)),le.host="",Q.protocol&&(Q.hostname=null,Q.port=null,Q.host&&(xe[0]===""?xe[0]=Q.host:xe.unshift(Q.host)),Q.host=null),_e=_e&&(xe[0]===""||ge[0]==="")),ye)le.host=Q.host||Q.host===""?Q.host:le.host,le.hostname=Q.hostname||Q.hostname===""?Q.hostname:le.hostname,le.search=Q.search,le.query=Q.query,ge=xe;else if(xe.length)ge||(ge=[]),ge.pop(),ge=ge.concat(xe),le.search=Q.search,le.query=Q.query;else if(!m.isNullOrUndefined(Q.search)){if(Xe){le.hostname=le.host=ge.shift();var Re=le.host&&le.host.indexOf("@")>0?le.host.split("@"):!1;Re&&(le.auth=Re.shift(),le.host=le.hostname=Re.shift())}return le.search=Q.search,le.query=Q.query,(!m.isNull(le.pathname)||!m.isNull(le.search))&&(le.path=(le.pathname?le.pathname:"")+(le.search?le.search:"")),le.href=le.format(),le}if(!ge.length)return le.pathname=null,le.search?le.path="/"+le.search:le.path=null,le.href=le.format(),le;for(var Le=ge.slice(-1)[0],at=(le.host||Q.host||ge.length>1)&&(Le==="."||Le==="..")||Le==="",Ae=0,Ne=ge.length;Ne>=0;Ne--)Le=ge[Ne],Le==="."?ge.splice(Ne,1):Le===".."?(ge.splice(Ne,1),Ae++):Ae&&(ge.splice(Ne,1),Ae--);if(!_e&&!Ve)for(;Ae--;Ae)ge.unshift("..");_e&&ge[0]!==""&&(!ge[0]||ge[0].charAt(0)!=="/")&&ge.unshift(""),at&&ge.join("/").substr(-1)!=="/"&&ge.push("");var rt=ge[0]===""||ge[0]&&ge[0].charAt(0)==="/";if(Xe){le.hostname=le.host=rt?"":ge.length?ge.shift():"";var Re=le.host&&le.host.indexOf("@")>0?le.host.split("@"):!1;Re&&(le.auth=Re.shift(),le.host=le.hostname=Re.shift())}return _e=_e||le.host&&ge.length,_e&&!rt&&ge.unshift(""),ge.length?le.pathname=ge.join("/"):(le.pathname=null,le.path=null),(!m.isNull(le.pathname)||!m.isNull(le.search))&&(le.path=(le.pathname?le.pathname:"")+(le.search?le.search:"")),le.auth=Q.auth||le.auth,le.slashes=le.slashes||Q.slashes,le.href=le.format(),le},k.prototype.parseHost=function(){var Q=this.host,ue=I.exec(Q);ue&&(ue=ue[0],ue!==":"&&(this.port=ue.substr(1)),Q=Q.substr(0,Q.length-ue.length)),Q&&(this.hostname=Q)};function g(Q,ue){for(var le=0,ce=Q.length-1;ce>=0;ce--){var pe=Q[ce];pe==="."?Q.splice(ce,1):pe===".."?(Q.splice(ce,1),le++):le&&(Q.splice(ce,1),le--)}if(ue)for(;le--;le)Q.unshift("..");return Q}function s(){for(var Q="",ue=!1,le=arguments.length-1;le>=-1&&!ue;le--){var ce=le>=0?arguments[le]:"/";if(typeof ce!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!ce)continue;Q=ce+"/"+Q,ue=ce.charAt(0)==="/"}return Q=g(v(Q.split("/"),function(pe){return!!pe}),!ue).join("/"),(ue?"/":"")+Q||"."}function v(Q,ue){if(Q.filter)return Q.filter(ue);for(var le=[],ce=0;ce<Q.length;ce++)ue(Q[ce],ce,Q)&&le.push(Q[ce]);return le}var T=function(Q){function ue(){var ce=this||self;return delete Q.prototype.__magic__,ce}if(typeof globalThis=="object")return globalThis;if(this)return ue();Q.defineProperty(Q.prototype,"__magic__",{configurable:!0,get:ue});var le=__magic__;return le}(Object),$=C,G=M,ee=S,A=P,E=T.URL,U=T.URLSearchParams,K=/%/g,Z=/\\/g,b=/\n/g,y=/\r/g,O=/\t/g,q=47;function X(Q){var ue=Q??null;return!!(ue!==null&&(ue!=null&&ue.href)&&(ue!=null&&ue.origin))}function D(Q){if(Q.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var ue=Q.pathname,le=0;le<ue.length;le++)if(ue[le]==="%"){var ce=ue.codePointAt(le+2)|32;if(ue[le+1]==="2"&&ce===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(ue)}function N(Q){return Q.includes("%")&&(Q=Q.replace(K,"%25")),Q.includes("\\")&&(Q=Q.replace(Z,"%5C")),Q.includes(`
+`)&&(Q=Q.replace(b,"%0A")),Q.includes("\r")&&(Q=Q.replace(y,"%0D")),Q.includes("	")&&(Q=Q.replace(O,"%09")),Q}var j=function(ue){if(typeof ue>"u")throw new TypeError('The "domain" argument must be specified');return new E("http://"+ue).hostname},z=function(ue){if(typeof ue>"u")throw new TypeError('The "domain" argument must be specified');return new E("http://"+ue).hostname},se=function(ue){var le=new E("file://"),ce=s(ue),pe=ue.charCodeAt(ue.length-1);return pe===q&&ce[ce.length-1]!=="/"&&(ce+="/"),le.pathname=N(ce),le},te=function(ue){if(!X(ue)&&typeof ue!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof ue+" ("+ue+")");var le=new E(ue);if(le.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return D(le)},ne=function(ue,le){var ce,pe,de;if(le===void 0&&(le={}),!(ue instanceof E))return $(ue);if(typeof le!="object"||le===null)throw new TypeError('The "options" argument must be of type object.');var ae=(ce=le.auth)!=null?ce:!0,fe=(pe=le.fragment)!=null?pe:!0,Te=(de=le.search)!=null?de:!0,ve=new E(ue.toString());return ae||(ve.username="",ve.password=""),fe||(ve.hash=""),Te||(ve.search=""),ve.toString()},Ee={format:ne,parse:G,resolve:ee,resolveObject:R,Url:A,URL:E,URLSearchParams:U,domainToASCII:j,domainToUnicode:z,pathToFileURL:se,fileURLToPath:te};t.URL=E,t.URLSearchParams=U,t.Url=A,t.default=Ee,t.domainToASCII=j,t.domainToUnicode=z,t.fileURLToPath=te,t.format=ne,t.parse=G,t.pathToFileURL=se,t.resolve=ee,t.resolveObject=R,t=e.exports=Ee})(mp,mp.exports);var s3=mp.exports;const PV=Lo(s3);var vd,G1;function bp(){if(G1)return vd;G1=1;var e=null;return vd=e,vd}var gd,Y1;function Z1(){if(Y1)return gd;Y1=1;const e=bp(),t=zn("mqttjs:tcp");function r(i,a){a.port=a.port||1883,a.hostname=a.hostname||a.host||"localhost";const n=a.port,u=a.hostname;return t("port %d and host %s",n,u),e.createConnection(n,u)}return gd=r,gd}var md,X1;function yd(){if(X1)return md;X1=1;const e=bp(),t=bp(),r=zn("mqttjs:tls");function i(a,n){n.port=n.port||8883,n.host=n.hostname||n.host||"localhost",t.isIP(n.host)===0&&(n.servername=n.host),n.rejectUnauthorized=n.rejectUnauthorized!==!1,delete n.path,r("port %d host %s rejectUnauthorized %b",n.port,n.host,n.rejectUnauthorized);const u=e.connect(n);u.on("secureConnect",function(){n.rejectUnauthorized&&!u.authorized?u.emit("error",new Error("TLS not authorized")):u.removeListener("error",c)});function c(d){n.rejectUnauthorized&&a.emit("error",d),u.end()}return u.on("error",c),u}return md=i,md}var wp={exports:{}},f3=Or.EventEmitter,bd,J1;function sI(){if(J1)return bd;J1=1;function e(P,k){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(P);k&&(I=I.filter(function(B){return Object.getOwnPropertyDescriptor(P,B).enumerable})),L.push.apply(L,I)}return L}function t(P){for(var k=1;k<arguments.length;k++){var L=arguments[k]!=null?arguments[k]:{};k%2?e(Object(L),!0).forEach(function(I){r(P,I,L[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):e(Object(L)).forEach(function(I){Object.defineProperty(P,I,Object.getOwnPropertyDescriptor(L,I))})}return P}function r(P,k,L){return k=u(k),k in P?Object.defineProperty(P,k,{value:L,enumerable:!0,configurable:!0,writable:!0}):P[k]=L,P}function i(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}function a(P,k){for(var L=0;L<k.length;L++){var I=k[L];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(P,u(I.key),I)}}function n(P,k,L){return k&&a(P.prototype,k),L&&a(P,L),Object.defineProperty(P,"prototype",{writable:!1}),P}function u(P){var k=c(P,"string");return typeof k=="symbol"?k:String(k)}function c(P,k){if(typeof P!="object"||P===null)return P;var L=P[Symbol.toPrimitive];if(L!==void 0){var I=L.call(P,k||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(P)}var d=ke,m=d.Buffer,M=ei,S=M.inspect,R=S&&S.custom||"inspect";function C(P,k,L){m.prototype.copy.call(P,k,L)}return bd=function(){function P(){i(this,P),this.head=null,this.tail=null,this.length=0}return n(P,[{key:"push",value:function(L){var I={data:L,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(L){var I={data:L,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var I=this.head,B=""+I.data;I=I.next;)B+=L+I.data;return B}},{key:"concat",value:function(L){if(this.length===0)return m.alloc(0);for(var I=m.allocUnsafe(L>>>0),B=this.head,H=0;B;)C(B.data,I,H),H+=B.data.length,B=B.next;return I}},{key:"consume",value:function(L,I){var B;return L<this.head.data.length?(B=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?B=this.shift():B=I?this._getString(L):this._getBuffer(L),B}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var I=this.head,B=1,H=I.data;for(L-=H.length;I=I.next;){var F=I.data,W=L>F.length?F.length:L;if(W===F.length?H+=F:H+=F.slice(0,L),L-=W,L===0){W===F.length?(++B,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=F.slice(W));break}++B}return this.length-=B,H}},{key:"_getBuffer",value:function(L){var I=m.allocUnsafe(L),B=this.head,H=1;for(B.data.copy(I),L-=B.data.length;B=B.next;){var F=B.data,W=L>F.length?F.length:L;if(F.copy(I,I.length-L,0,W),L-=W,L===0){W===F.length?(++H,B.next?this.head=B.next:this.head=this.tail=null):(this.head=B,B.data=F.slice(W));break}++H}return this.length-=H,I}},{key:R,value:function(L,I){return S(this,t(t({},I),{},{depth:0,customInspect:!1}))}}]),P}(),bd}function fI(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,we.nextTick(_p,this,e)):we.nextTick(_p,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(n){!t&&n?r._writableState?r._writableState.errorEmitted?we.nextTick(pl,r):(r._writableState.errorEmitted=!0,we.nextTick(Q1,r,n)):we.nextTick(Q1,r,n):t?(we.nextTick(pl,r),t(n)):we.nextTick(pl,r)}),this)}function Q1(e,t){_p(e,t),pl(e)}function pl(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function uI(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function _p(e,t){e.emit("error",t)}function lI(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}var u3={destroy:fI,undestroy:uI,errorOrDestroy:lI},Sa={};function hI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var l3={};function _i(e,t,r){r||(r=Error);function i(n,u,c){return typeof t=="string"?t:t(n,u,c)}var a=function(n){hI(u,n);function u(c,d,m){return n.call(this,i(c,d,m))||this}return u}(r);a.prototype.name=r.name,a.prototype.code=e,l3[e]=a}function ey(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function cI(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function dI(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function pI(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}_i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);_i("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&cI(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var a;if(dI(e," argument"))a="The ".concat(e," ").concat(i," ").concat(ey(t,"type"));else{var n=pI(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(n," ").concat(i," ").concat(ey(t,"type"))}return a+=". Received type ".concat(typeof r),a},TypeError);_i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");_i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});_i("ERR_STREAM_PREMATURE_CLOSE","Premature close");_i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});_i("ERR_MULTIPLE_CALLBACK","Callback called multiple times");_i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");_i("ERR_STREAM_WRITE_AFTER_END","write after end");_i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);_i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);_i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Sa.codes=l3;var vI=Sa.codes.ERR_INVALID_OPT_VALUE;function gI(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function mI(e,t,r,i){var a=gI(t,i,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var n=i?r:"highWaterMark";throw new vI(n,a)}return Math.floor(a)}return e.objectMode?16:16*1024}var h3={getHighWaterMark:mI},wd,ty;function c3(){if(ty)return wd;ty=1,wd=J;function e(A){var E=this;this.next=null,this.entry=null,this.finish=function(){ee(E,A)}}var t;J.WritableState=Y;var r={deprecate:ks},i=f3,a=ke.Buffer,n=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(A){return a.from(A)}function c(A){return a.isBuffer(A)||A instanceof n}var d=u3,m=h3,M=m.getHighWaterMark,S=Sa.codes,R=S.ERR_INVALID_ARG_TYPE,C=S.ERR_METHOD_NOT_IMPLEMENTED,P=S.ERR_MULTIPLE_CALLBACK,k=S.ERR_STREAM_CANNOT_PIPE,L=S.ERR_STREAM_DESTROYED,I=S.ERR_STREAM_NULL_VALUES,B=S.ERR_STREAM_WRITE_AFTER_END,H=S.ERR_UNKNOWN_ENCODING,F=d.errorOrDestroy;Ze(J,i);function W(){}function Y(A,E,U){t=t||ps(),A=A||{},typeof U!="boolean"&&(U=E instanceof t),this.objectMode=!!A.objectMode,U&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=M(this,A,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=A.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){p(E,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}Y.prototype.getBuffer=function(){for(var E=this.bufferedRequest,U=[];E;)U.push(E),E=E.next;return U},function(){try{Object.defineProperty(Y.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ie;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ie=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(E){return ie.call(this,E)?!0:this!==J?!1:E&&E._writableState instanceof Y}})):ie=function(E){return E instanceof this};function J(A){t=t||ps();var E=this instanceof t;if(!E&&!ie.call(J,this))return new J(A);this._writableState=new Y(A,this,E),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),i.call(this)}J.prototype.pipe=function(){F(this,new k)};function V(A,E){var U=new B;F(A,U),we.nextTick(E,U)}function oe(A,E,U,K){var Z;return U===null?Z=new I:typeof U!="string"&&!E.objectMode&&(Z=new R("chunk",["string","Buffer"],U)),Z?(F(A,Z),we.nextTick(K,Z),!1):!0}J.prototype.write=function(A,E,U){var K=this._writableState,Z=!1,b=!K.objectMode&&c(A);return b&&!a.isBuffer(A)&&(A=u(A)),typeof E=="function"&&(U=E,E=null),b?E="buffer":E||(E=K.defaultEncoding),typeof U!="function"&&(U=W),K.ending?V(this,U):(b||oe(this,K,A,U))&&(K.pendingcb++,Z=o(this,K,b,A,E,U)),Z},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&g(this,A))},J.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new H(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _(A,E,U){return!A.objectMode&&A.decodeStrings!==!1&&typeof E=="string"&&(E=a.from(E,U)),E}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(A,E,U,K,Z,b){if(!U){var y=_(E,K,Z);K!==y&&(U=!0,Z="buffer",K=y)}var O=E.objectMode?1:K.length;E.length+=O;var q=E.length<E.highWaterMark;if(q||(E.needDrain=!0),E.writing||E.corked){var X=E.lastBufferedRequest;E.lastBufferedRequest={chunk:K,encoding:Z,isBuf:U,callback:b,next:null},X?X.next=E.lastBufferedRequest:E.bufferedRequest=E.lastBufferedRequest,E.bufferedRequestCount+=1}else f(A,E,!1,O,K,Z,b);return q}function f(A,E,U,K,Z,b,y){E.writelen=K,E.writecb=y,E.writing=!0,E.sync=!0,E.destroyed?E.onwrite(new L("write")):U?A._writev(Z,E.onwrite):A._write(Z,b,E.onwrite),E.sync=!1}function l(A,E,U,K,Z){--E.pendingcb,U?(we.nextTick(Z,K),we.nextTick($,A,E),A._writableState.errorEmitted=!0,F(A,K)):(Z(K),A._writableState.errorEmitted=!0,F(A,K),$(A,E))}function h(A){A.writing=!1,A.writecb=null,A.length-=A.writelen,A.writelen=0}function p(A,E){var U=A._writableState,K=U.sync,Z=U.writecb;if(typeof Z!="function")throw new P;if(h(U),E)l(A,U,K,E,Z);else{var b=s(U)||A.destroyed;!b&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&g(A,U),K?we.nextTick(w,A,U,b,Z):w(A,U,b,Z)}}function w(A,E,U,K){U||x(A,E),E.pendingcb--,K(),$(A,E)}function x(A,E){E.length===0&&E.needDrain&&(E.needDrain=!1,A.emit("drain"))}function g(A,E){E.bufferProcessing=!0;var U=E.bufferedRequest;if(A._writev&&U&&U.next){var K=E.bufferedRequestCount,Z=new Array(K),b=E.corkedRequestsFree;b.entry=U;for(var y=0,O=!0;U;)Z[y]=U,U.isBuf||(O=!1),U=U.next,y+=1;Z.allBuffers=O,f(A,E,!0,E.length,Z,"",b.finish),E.pendingcb++,E.lastBufferedRequest=null,b.next?(E.corkedRequestsFree=b.next,b.next=null):E.corkedRequestsFree=new e(E),E.bufferedRequestCount=0}else{for(;U;){var q=U.chunk,X=U.encoding,D=U.callback,N=E.objectMode?1:q.length;if(f(A,E,!1,N,q,X,D),U=U.next,E.bufferedRequestCount--,E.writing)break}U===null&&(E.lastBufferedRequest=null)}E.bufferedRequest=U,E.bufferProcessing=!1}J.prototype._write=function(A,E,U){U(new C("_write()"))},J.prototype._writev=null,J.prototype.end=function(A,E,U){var K=this._writableState;return typeof A=="function"?(U=A,A=null,E=null):typeof E=="function"&&(U=E,E=null),A!=null&&this.write(A,E),K.corked&&(K.corked=1,this.uncork()),K.ending||G(this,K,U),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function v(A,E){A._final(function(U){E.pendingcb--,U&&F(A,U),E.prefinished=!0,A.emit("prefinish"),$(A,E)})}function T(A,E){!E.prefinished&&!E.finalCalled&&(typeof A._final=="function"&&!E.destroyed?(E.pendingcb++,E.finalCalled=!0,we.nextTick(v,A,E)):(E.prefinished=!0,A.emit("prefinish")))}function $(A,E){var U=s(E);if(U&&(T(A,E),E.pendingcb===0&&(E.finished=!0,A.emit("finish"),E.autoDestroy))){var K=A._readableState;(!K||K.autoDestroy&&K.endEmitted)&&A.destroy()}return U}function G(A,E,U){E.ending=!0,$(A,E),U&&(E.finished?we.nextTick(U):A.once("finish",U)),E.ended=!0,A.writable=!1}function ee(A,E,U){var K=A.entry;for(A.entry=null;K;){var Z=K.callback;E.pendingcb--,Z(U),K=K.next}E.corkedRequestsFree.next=A}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),J.prototype.destroy=d.destroy,J.prototype._undestroy=d.undestroy,J.prototype._destroy=function(A,E){E(A)},wd}var _d,ry;function ps(){if(ry)return _d;ry=1;var e=Object.keys||function(m){var M=[];for(var S in m)M.push(S);return M};_d=u;var t=p3(),r=c3();Ze(u,t);for(var i=e(r.prototype),a=0;a<i.length;a++){var n=i[a];u.prototype[n]||(u.prototype[n]=r.prototype[n])}function u(m){if(!(this instanceof u))return new u(m);t.call(this,m),r.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||we.nextTick(d,this)}function d(m){m.end()}return Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(M){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=M,this._writableState.destroyed=M)}}),_d}var iy=Sa.codes.ERR_STREAM_PREMATURE_CLOSE;function yI(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];e.apply(this,i)}}}function bI(){}function wI(e){return e.setHeader&&typeof e.abort=="function"}function d3(e,t,r){if(typeof t=="function")return d3(e,null,t);t||(t={}),r=yI(r||bI);var i=t.readable||t.readable!==!1&&e.readable,a=t.writable||t.writable!==!1&&e.writable,n=function(){e.writable||c()},u=e._writableState&&e._writableState.finished,c=function(){a=!1,u=!0,i||r.call(e)},d=e._readableState&&e._readableState.endEmitted,m=function(){i=!1,d=!0,a||r.call(e)},M=function(P){r.call(e,P)},S=function(){var P;if(i&&!d)return(!e._readableState||!e._readableState.ended)&&(P=new iy),r.call(e,P);if(a&&!u)return(!e._writableState||!e._writableState.ended)&&(P=new iy),r.call(e,P)},R=function(){e.req.on("finish",c)};return wI(e)?(e.on("complete",c),e.on("abort",S),e.req?R():e.on("request",R)):a&&!e._writableState&&(e.on("end",n),e.on("close",n)),e.on("end",m),e.on("finish",c),t.error!==!1&&e.on("error",M),e.on("close",S),function(){e.removeListener("complete",c),e.removeListener("abort",S),e.removeListener("request",R),e.req&&e.req.removeListener("finish",c),e.removeListener("end",n),e.removeListener("close",n),e.removeListener("finish",c),e.removeListener("end",m),e.removeListener("error",M),e.removeListener("close",S)}}var Xv=d3,Md,ny;function _I(){if(ny)return Md;ny=1;var e;function t(H,F,W){return F=r(F),F in H?Object.defineProperty(H,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):H[F]=W,H}function r(H){var F=i(H,"string");return typeof F=="symbol"?F:String(F)}function i(H,F){if(typeof H!="object"||H===null)return H;var W=H[Symbol.toPrimitive];if(W!==void 0){var Y=W.call(H,F||"default");if(typeof Y!="object")return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(H)}var a=Xv,n=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),M=Symbol("handlePromise"),S=Symbol("stream");function R(H,F){return{value:H,done:F}}function C(H){var F=H[n];if(F!==null){var W=H[S].read();W!==null&&(H[m]=null,H[n]=null,H[u]=null,F(R(W,!1)))}}function P(H){we.nextTick(C,H)}function k(H,F){return function(W,Y){H.then(function(){if(F[d]){W(R(void 0,!0));return}F[M](W,Y)},Y)}}var L=Object.getPrototypeOf(function(){}),I=Object.setPrototypeOf((e={get stream(){return this[S]},next:function(){var F=this,W=this[c];if(W!==null)return Promise.reject(W);if(this[d])return Promise.resolve(R(void 0,!0));if(this[S].destroyed)return new Promise(function(V,oe){we.nextTick(function(){F[c]?oe(F[c]):V(R(void 0,!0))})});var Y=this[m],ie;if(Y)ie=new Promise(k(Y,this));else{var J=this[S].read();if(J!==null)return Promise.resolve(R(J,!1));ie=new Promise(this[M])}return this[m]=ie,ie}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var F=this;return new Promise(function(W,Y){F[S].destroy(null,function(ie){if(ie){Y(ie);return}W(R(void 0,!0))})})}),e),L),B=function(F){var W,Y=Object.create(I,(W={},t(W,S,{value:F,writable:!0}),t(W,n,{value:null,writable:!0}),t(W,u,{value:null,writable:!0}),t(W,c,{value:null,writable:!0}),t(W,d,{value:F._readableState.endEmitted,writable:!0}),t(W,M,{value:function(J,V){var oe=Y[S].read();oe?(Y[m]=null,Y[n]=null,Y[u]=null,J(R(oe,!1))):(Y[n]=J,Y[u]=V)},writable:!0}),W));return Y[m]=null,a(F,function(ie){if(ie&&ie.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=Y[u];J!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,J(ie)),Y[c]=ie;return}var V=Y[n];V!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,V(R(void 0,!0))),Y[d]=!0}),F.on("readable",P.bind(null,Y)),Y};return Md=B,Md}var Sd,oy;function MI(){return oy||(oy=1,Sd=function(){throw new Error("Readable.from is not available in the browser")}),Sd}var xd,ay;function p3(){if(ay)return xd;ay=1,xd=V;var e;V.ReadableState=J,Or.EventEmitter;var t=function(y,O){return y.listeners(O).length},r=f3,i=ke.Buffer,a=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function n(b){return i.from(b)}function u(b){return i.isBuffer(b)||b instanceof a}var c=ei,d;c&&c.debuglog?d=c.debuglog("stream"):d=function(){};var m=sI(),M=u3,S=h3,R=S.getHighWaterMark,C=Sa.codes,P=C.ERR_INVALID_ARG_TYPE,k=C.ERR_STREAM_PUSH_AFTER_EOF,L=C.ERR_METHOD_NOT_IMPLEMENTED,I=C.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,B,H,F;Ze(V,r);var W=M.errorOrDestroy,Y=["error","close","destroy","pause","resume"];function ie(b,y,O){if(typeof b.prependListener=="function")return b.prependListener(y,O);!b._events||!b._events[y]?b.on(y,O):Array.isArray(b._events[y])?b._events[y].unshift(O):b._events[y]=[O,b._events[y]]}function J(b,y,O){e=e||ps(),b=b||{},typeof O!="boolean"&&(O=y instanceof e),this.objectMode=!!b.objectMode,O&&(this.objectMode=this.objectMode||!!b.readableObjectMode),this.highWaterMark=R(this,b,"readableHighWaterMark",O),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=b.emitClose!==!1,this.autoDestroy=!!b.autoDestroy,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(B||(B=Xr().StringDecoder),this.decoder=new B(b.encoding),this.encoding=b.encoding)}function V(b){if(e=e||ps(),!(this instanceof V))return new V(b);var y=this instanceof e;this._readableState=new J(b,this,y),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),r.call(this)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(y){this._readableState&&(this._readableState.destroyed=y)}}),V.prototype.destroy=M.destroy,V.prototype._undestroy=M.undestroy,V.prototype._destroy=function(b,y){y(b)},V.prototype.push=function(b,y){var O=this._readableState,q;return O.objectMode?q=!0:typeof b=="string"&&(y=y||O.defaultEncoding,y!==O.encoding&&(b=i.from(b,y),y=""),q=!0),oe(this,b,y,!1,q)},V.prototype.unshift=function(b){return oe(this,b,null,!0,!1)};function oe(b,y,O,q,X){d("readableAddChunk",y);var D=b._readableState;if(y===null)D.reading=!1,p(b,D);else{var N;if(X||(N=o(D,y)),N)W(b,N);else if(D.objectMode||y&&y.length>0)if(typeof y!="string"&&!D.objectMode&&Object.getPrototypeOf(y)!==i.prototype&&(y=n(y)),q)D.endEmitted?W(b,new I):_(b,D,y,!0);else if(D.ended)W(b,new k);else{if(D.destroyed)return!1;D.reading=!1,D.decoder&&!O?(y=D.decoder.write(y),D.objectMode||y.length!==0?_(b,D,y,!1):g(b,D)):_(b,D,y,!1)}else q||(D.reading=!1,g(b,D))}return!D.ended&&(D.length<D.highWaterMark||D.length===0)}function _(b,y,O,q){y.flowing&&y.length===0&&!y.sync?(y.awaitDrain=0,b.emit("data",O)):(y.length+=y.objectMode?1:O.length,q?y.buffer.unshift(O):y.buffer.push(O),y.needReadable&&w(b)),g(b,y)}function o(b,y){var O;return!u(y)&&typeof y!="string"&&y!==void 0&&!b.objectMode&&(O=new P("chunk",["string","Buffer","Uint8Array"],y)),O}V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(b){B||(B=Xr().StringDecoder);var y=new B(b);this._readableState.decoder=y,this._readableState.encoding=this._readableState.decoder.encoding;for(var O=this._readableState.buffer.head,q="";O!==null;)q+=y.write(O.data),O=O.next;return this._readableState.buffer.clear(),q!==""&&this._readableState.buffer.push(q),this._readableState.length=q.length,this};var f=1073741824;function l(b){return b>=f?b=f:(b--,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,b|=b>>>16,b++),b}function h(b,y){return b<=0||y.length===0&&y.ended?0:y.objectMode?1:b!==b?y.flowing&&y.length?y.buffer.head.data.length:y.length:(b>y.highWaterMark&&(y.highWaterMark=l(b)),b<=y.length?b:y.ended?y.length:(y.needReadable=!0,0))}V.prototype.read=function(b){d("read",b),b=parseInt(b,10);var y=this._readableState,O=b;if(b!==0&&(y.emittedReadable=!1),b===0&&y.needReadable&&((y.highWaterMark!==0?y.length>=y.highWaterMark:y.length>0)||y.ended))return d("read: emitReadable",y.length,y.ended),y.length===0&&y.ended?U(this):w(this),null;if(b=h(b,y),b===0&&y.ended)return y.length===0&&U(this),null;var q=y.needReadable;d("need readable",q),(y.length===0||y.length-b<y.highWaterMark)&&(q=!0,d("length less than watermark",q)),y.ended||y.reading?(q=!1,d("reading or ended",q)):q&&(d("do read"),y.reading=!0,y.sync=!0,y.length===0&&(y.needReadable=!0),this._read(y.highWaterMark),y.sync=!1,y.reading||(b=h(O,y)));var X;return b>0?X=E(b,y):X=null,X===null?(y.needReadable=y.length<=y.highWaterMark,b=0):(y.length-=b,y.awaitDrain=0),y.length===0&&(y.ended||(y.needReadable=!0),O!==b&&y.ended&&U(this)),X!==null&&this.emit("data",X),X};function p(b,y){if(d("onEofChunk"),!y.ended){if(y.decoder){var O=y.decoder.end();O&&O.length&&(y.buffer.push(O),y.length+=y.objectMode?1:O.length)}y.ended=!0,y.sync?w(b):(y.needReadable=!1,y.emittedReadable||(y.emittedReadable=!0,x(b)))}}function w(b){var y=b._readableState;d("emitReadable",y.needReadable,y.emittedReadable),y.needReadable=!1,y.emittedReadable||(d("emitReadable",y.flowing),y.emittedReadable=!0,we.nextTick(x,b))}function x(b){var y=b._readableState;d("emitReadable_",y.destroyed,y.length,y.ended),!y.destroyed&&(y.length||y.ended)&&(b.emit("readable"),y.emittedReadable=!1),y.needReadable=!y.flowing&&!y.ended&&y.length<=y.highWaterMark,A(b)}function g(b,y){y.readingMore||(y.readingMore=!0,we.nextTick(s,b,y))}function s(b,y){for(;!y.reading&&!y.ended&&(y.length<y.highWaterMark||y.flowing&&y.length===0);){var O=y.length;if(d("maybeReadMore read 0"),b.read(0),O===y.length)break}y.readingMore=!1}V.prototype._read=function(b){W(this,new L("_read()"))},V.prototype.pipe=function(b,y){var O=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=b;break;case 1:q.pipes=[q.pipes,b];break;default:q.pipes.push(b);break}q.pipesCount+=1,d("pipe count=%d opts=%j",q.pipesCount,y);var X=(!y||y.end!==!1)&&b!==we.stdout&&b!==we.stderr,D=X?j:le;q.endEmitted?we.nextTick(D):O.once("end",D),b.on("unpipe",N);function N(ce,pe){d("onunpipe"),ce===O&&pe&&pe.hasUnpiped===!1&&(pe.hasUnpiped=!0,te())}function j(){d("onend"),b.end()}var z=v(O);b.on("drain",z);var se=!1;function te(){d("cleanup"),b.removeListener("close",Q),b.removeListener("finish",ue),b.removeListener("drain",z),b.removeListener("error",Ee),b.removeListener("unpipe",N),O.removeListener("end",j),O.removeListener("end",le),O.removeListener("data",ne),se=!0,q.awaitDrain&&(!b._writableState||b._writableState.needDrain)&&z()}O.on("data",ne);function ne(ce){d("ondata");var pe=b.write(ce);d("dest.write",pe),pe===!1&&((q.pipesCount===1&&q.pipes===b||q.pipesCount>1&&Z(q.pipes,b)!==-1)&&!se&&(d("false write response, pause",q.awaitDrain),q.awaitDrain++),O.pause())}function Ee(ce){d("onerror",ce),le(),b.removeListener("error",Ee),t(b,"error")===0&&W(b,ce)}ie(b,"error",Ee);function Q(){b.removeListener("finish",ue),le()}b.once("close",Q);function ue(){d("onfinish"),b.removeListener("close",Q),le()}b.once("finish",ue);function le(){d("unpipe"),O.unpipe(b)}return b.emit("pipe",O),q.flowing||(d("pipe resume"),O.resume()),b};function v(b){return function(){var O=b._readableState;d("pipeOnDrain",O.awaitDrain),O.awaitDrain&&O.awaitDrain--,O.awaitDrain===0&&t(b,"data")&&(O.flowing=!0,A(b))}}V.prototype.unpipe=function(b){var y=this._readableState,O={hasUnpiped:!1};if(y.pipesCount===0)return this;if(y.pipesCount===1)return b&&b!==y.pipes?this:(b||(b=y.pipes),y.pipes=null,y.pipesCount=0,y.flowing=!1,b&&b.emit("unpipe",this,O),this);if(!b){var q=y.pipes,X=y.pipesCount;y.pipes=null,y.pipesCount=0,y.flowing=!1;for(var D=0;D<X;D++)q[D].emit("unpipe",this,{hasUnpiped:!1});return this}var N=Z(y.pipes,b);return N===-1?this:(y.pipes.splice(N,1),y.pipesCount-=1,y.pipesCount===1&&(y.pipes=y.pipes[0]),b.emit("unpipe",this,O),this)},V.prototype.on=function(b,y){var O=r.prototype.on.call(this,b,y),q=this._readableState;return b==="data"?(q.readableListening=this.listenerCount("readable")>0,q.flowing!==!1&&this.resume()):b==="readable"&&!q.endEmitted&&!q.readableListening&&(q.readableListening=q.needReadable=!0,q.flowing=!1,q.emittedReadable=!1,d("on readable",q.length,q.reading),q.length?w(this):q.reading||we.nextTick($,this)),O},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(b,y){var O=r.prototype.removeListener.call(this,b,y);return b==="readable"&&we.nextTick(T,this),O},V.prototype.removeAllListeners=function(b){var y=r.prototype.removeAllListeners.apply(this,arguments);return(b==="readable"||b===void 0)&&we.nextTick(T,this),y};function T(b){var y=b._readableState;y.readableListening=b.listenerCount("readable")>0,y.resumeScheduled&&!y.paused?y.flowing=!0:b.listenerCount("data")>0&&b.resume()}function $(b){d("readable nexttick read 0"),b.read(0)}V.prototype.resume=function(){var b=this._readableState;return b.flowing||(d("resume"),b.flowing=!b.readableListening,G(this,b)),b.paused=!1,this};function G(b,y){y.resumeScheduled||(y.resumeScheduled=!0,we.nextTick(ee,b,y))}function ee(b,y){d("resume",y.reading),y.reading||b.read(0),y.resumeScheduled=!1,b.emit("resume"),A(b),y.flowing&&!y.reading&&b.read(0)}V.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function A(b){var y=b._readableState;for(d("flow",y.flowing);y.flowing&&b.read()!==null;);}V.prototype.wrap=function(b){var y=this,O=this._readableState,q=!1;b.on("end",function(){if(d("wrapped end"),O.decoder&&!O.ended){var N=O.decoder.end();N&&N.length&&y.push(N)}y.push(null)}),b.on("data",function(N){if(d("wrapped data"),O.decoder&&(N=O.decoder.write(N)),!(O.objectMode&&N==null)&&!(!O.objectMode&&(!N||!N.length))){var j=y.push(N);j||(q=!0,b.pause())}});for(var X in b)this[X]===void 0&&typeof b[X]=="function"&&(this[X]=function(j){return function(){return b[j].apply(b,arguments)}}(X));for(var D=0;D<Y.length;D++)b.on(Y[D],this.emit.bind(this,Y[D]));return this._read=function(N){d("wrapped _read",N),q&&(q=!1,b.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return H===void 0&&(H=_I()),H(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(y){this._readableState&&(this._readableState.flowing=y)}}),V._fromList=E,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function E(b,y){if(y.length===0)return null;var O;return y.objectMode?O=y.buffer.shift():!b||b>=y.length?(y.decoder?O=y.buffer.join(""):y.buffer.length===1?O=y.buffer.first():O=y.buffer.concat(y.length),y.buffer.clear()):O=y.buffer.consume(b,y.decoder),O}function U(b){var y=b._readableState;d("endReadable",y.endEmitted),y.endEmitted||(y.ended=!0,we.nextTick(K,y,b))}function K(b,y){if(d("endReadableNT",b.endEmitted,b.length),!b.endEmitted&&b.length===0&&(b.endEmitted=!0,y.readable=!1,y.emit("end"),b.autoDestroy)){var O=y._writableState;(!O||O.autoDestroy&&O.finished)&&y.destroy()}}typeof Symbol=="function"&&(V.from=function(b,y){return F===void 0&&(F=MI()),F(V,b,y)});function Z(b,y){for(var O=0,q=b.length;O<q;O++)if(b[O]===y)return O;return-1}return xd}var v3=Dn,Fh=Sa.codes,SI=Fh.ERR_METHOD_NOT_IMPLEMENTED,xI=Fh.ERR_MULTIPLE_CALLBACK,EI=Fh.ERR_TRANSFORM_ALREADY_TRANSFORMING,RI=Fh.ERR_TRANSFORM_WITH_LENGTH_0,jh=ps();Ze(Dn,jh);function AI(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new xI);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function Dn(e){if(!(this instanceof Dn))return new Dn(e);jh.call(this,e),this._transformState={afterTransform:AI.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",TI)}function TI(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){sy(e,t,r)}):sy(this,null,null)}Dn.prototype.push=function(e,t){return this._transformState.needTransform=!1,jh.prototype.push.call(this,e,t)};Dn.prototype._transform=function(e,t,r){r(new SI("_transform()"))};Dn.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};Dn.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Dn.prototype._destroy=function(e,t){jh.prototype._destroy.call(this,e,function(r){t(r)})};function sy(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new RI;if(e._transformState.transforming)throw new EI;return e.push(null)}var OI=tu,g3=v3;Ze(tu,g3);function tu(e){if(!(this instanceof tu))return new tu(e);g3.call(this,e)}tu.prototype._transform=function(e,t,r){r(null,e)};var Ed;function II(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var m3=Sa.codes,PI=m3.ERR_MISSING_ARGS,CI=m3.ERR_STREAM_DESTROYED;function fy(e){if(e)throw e}function BI(e){return e.setHeader&&typeof e.abort=="function"}function LI(e,t,r,i){i=II(i);var a=!1;e.on("close",function(){a=!0}),Ed===void 0&&(Ed=Xv),Ed(e,{readable:t,writable:r},function(u){if(u)return i(u);a=!0,i()});var n=!1;return function(u){if(!a&&!n){if(n=!0,BI(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(u||new CI("pipe"))}}}function uy(e){e()}function NI(e,t){return e.pipe(t)}function kI(e){return!e.length||typeof e[e.length-1]!="function"?fy:e.pop()}function $I(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=kI(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new PI("streams");var a,n=t.map(function(u,c){var d=c<t.length-1,m=c>0;return LI(u,d,m,function(M){a||(a=M),M&&n.forEach(uy),!d&&(n.forEach(uy),i(a))})});return t.reduce(NI)}var DI=$I;(function(e,t){t=e.exports=p3(),t.Stream=t,t.Readable=t,t.Writable=c3(),t.Duplex=ps(),t.Transform=v3,t.PassThrough=OI,t.finished=Xv,t.pipeline=DI})(wp,wp.exports);var FI=wp.exports,Jv={exports:{}},jI=y3;function y3(e,t){if(e&&t)return y3(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(i){r[i]=e[i]}),r;function r(){for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];var n=e.apply(this,i),u=i[i.length-1];return typeof n=="function"&&n!==u&&Object.keys(u).forEach(function(c){n[c]=u[c]}),n}}var b3=jI;Jv.exports=b3(vl);Jv.exports.strict=b3(w3);vl.proto=vl(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return vl(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return w3(this)},configurable:!0})});function vl(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function w3(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}var UI=Jv.exports,HI=UI,qI=function(){},WI=function(e){return e.setHeader&&typeof e.abort=="function"},KI=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},_3=function(e,t,r){if(typeof t=="function")return _3(e,null,t);t||(t={}),r=HI(r||qI);var i=e._writableState,a=e._readableState,n=t.readable||t.readable!==!1&&e.readable,u=t.writable||t.writable!==!1&&e.writable,c=!1,d=function(){e.writable||m()},m=function(){u=!1,n||r.call(e)},M=function(){n=!1,u||r.call(e)},S=function(L){r.call(e,L?new Error("exited with error code: "+L):null)},R=function(L){r.call(e,L)},C=function(){we.nextTick(P)},P=function(){if(!c){if(n&&!(a&&a.ended&&!a.destroyed))return r.call(e,new Error("premature close"));if(u&&!(i&&i.ended&&!i.destroyed))return r.call(e,new Error("premature close"))}},k=function(){e.req.on("finish",m)};return WI(e)?(e.on("complete",m),e.on("abort",C),e.req?k():e.on("request",k)):u&&!i&&(e.on("end",d),e.on("close",d)),KI(e)&&e.on("exit",S),e.on("end",M),e.on("finish",m),t.error!==!1&&e.on("error",R),e.on("close",C),function(){c=!0,e.removeListener("complete",m),e.removeListener("abort",C),e.removeListener("request",k),e.req&&e.req.removeListener("finish",m),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",m),e.removeListener("exit",S),e.removeListener("end",M),e.removeListener("error",R),e.removeListener("close",C)}},VI=_3,zI=GI;function GI(e){var t=e._readableState;return t?t.objectMode||typeof e._duplexState=="number"?e.read():e.read(YI(t)):null}function YI(e){return e.buffer.length?e.buffer.head?e.buffer.head.data.length:e.buffer[0].length:e.length}var Uh=FI,M3=VI,ZI=Ze,XI=zI,S3=ke.Buffer.from&&ke.Buffer.from!==Uint8Array.from?ke.Buffer.from([0]):new ke.Buffer([0]),Mp=function(e,t){e._corked?e.once("uncork",t):t()},JI=function(e,t){e._autoDestroy&&e.destroy(t)},x3=function(e,t){return function(r){r?JI(e,r.message==="premature close"?null:r):t&&!e._ended&&e.end()}},QI=function(e,t){if(!e||e._writableState&&e._writableState.finished)return t();if(e._writableState)return e.end(t);e.end(),t()},eP=function(){},tP=function(e){return new Uh.Readable({objectMode:!0,highWaterMark:16}).wrap(e)},br=function(e,t,r){if(!(this instanceof br))return new br(e,t,r);Uh.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||r.autoDestroy!==!1,this._forwardDestroy=!r||r.destroy!==!1,this._forwardEnd=!r||r.end!==!1,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};ZI(br,Uh.Duplex);br.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new br(e,t,r)};br.prototype.cork=function(){++this._corked===1&&this.emit("cork")};br.prototype.uncork=function(){this._corked&&--this._corked===0&&this.emit("uncork")};br.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.end();return}var t=this,r=M3(e,{writable:!0,readable:!1},x3(this,this._forwardEnd)),i=function(){var n=t._ondrain;t._ondrain=null,n&&n()},a=function(){t._writable.removeListener("drain",i),r()};this._unwrite&&we.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=a,this.uncork()};br.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.push(null),this.resume();return}var t=this,r=M3(e,{writable:!1,readable:!0},x3(this)),i=function(){t._forward()},a=function(){t.push(null)},n=function(){t._readable2.removeListener("readable",i),t._readable2.removeListener("end",a),r()};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:tP(e),this._readable2.on("readable",i),this._readable2.on("end",a),this._unread=n,this._forward()};br.prototype._read=function(){this._drained=!0,this._forward()};br.prototype._forward=function(){if(!(this._forwarding||!this._readable2||!this._drained)){this._forwarding=!0;for(var e;this._drained&&(e=XI(this._readable2))!==null;)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}};br.prototype.destroy=function(e,t){if(t||(t=eP),this.destroyed)return t(null);this.destroyed=!0;var r=this;we.nextTick(function(){r._destroy(e),t(null)})};br.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")};br.prototype._write=function(e,t,r){if(!this.destroyed){if(this._corked)return Mp(this,this._write.bind(this,e,t,r));if(e===S3)return this._finish(r);if(!this._writable)return r();this._writable.write(e)===!1?this._ondrain=r:this.destroyed||r()}};br.prototype._finish=function(e){var t=this;this.emit("preend"),Mp(this,function(){QI(t._forwardEnd&&t._writable,function(){t._writableState.prefinished===!1&&(t._writableState.prefinished=!0),t.emit("prefinish"),Mp(t,e)})})};br.prototype.end=function(e,t,r){return typeof e=="function"?this.end(null,null,e):typeof t=="function"?this.end(e,null,t):(this._ended=!0,e&&this.write(e),!this._writableState.ending&&!this._writableState.destroyed&&this.write(S3),Uh.Writable.prototype.end.call(this,r))};var Qv=br,Rd,ly;function hy(){if(ly)return Rd;ly=1;const{Buffer:e}=ke,t=vu.Transform,r=Qv;let i,a,n;function u(){const S=new t;return S._write=function(R,C,P){i.send({data:R.buffer,success:function(){P()},fail:function(k){P(new Error(k))}})},S._flush=function(C){i.close({success:function(){C()}})},S}function c(S){S.hostname||(S.hostname="localhost"),S.path||(S.path="/"),S.wsOptions||(S.wsOptions={})}function d(S,R){const C=S.protocol==="wxs"?"wss":"ws";let P=C+"://"+S.hostname+S.path;return S.port&&S.port!==80&&S.port!==443&&(P=C+"://"+S.hostname+":"+S.port+S.path),typeof S.transformWsUrl=="function"&&(P=S.transformWsUrl(P,S,R)),P}function m(){i.onOpen(function(){n.setReadable(a),n.setWritable(a),n.emit("connect")}),i.onMessage(function(S){let R=S.data;R instanceof ArrayBuffer?R=e.from(R):R=e.from(R,"utf8"),a.push(R)}),i.onClose(function(){n.end(),n.destroy()}),i.onError(function(S){n.destroy(new Error(S.errMsg))})}function M(S,R){if(R.hostname=R.hostname||R.host,!R.hostname)throw new Error("Could not determine host. Specify host manually.");const C=R.protocolId==="MQIsdp"&&R.protocolVersion===3?"mqttv3.1":"mqtt";c(R);const P=d(R,S);i=wx.connectSocket({url:P,protocols:[C]}),a=u(),n=r.obj(),n._destroy=function(L,I){i.close({success:function(){I&&I(L)}})};const k=n.destroy;return n.destroy=function(){n.destroy=k;const L=this;setTimeout(function(){i.close({fail:function(){L._destroy(new Error)}})},0)}.bind(n),m(),n}return Rd=M,Rd}var Ad,cy;function dy(){if(cy)return Ad;cy=1;const{Buffer:e}=ke,t=vu.Transform,r=Qv;let i,a,n,u=!1;function c(){const R=new t;return R._write=function(C,P,k){i.sendSocketMessage({data:C.buffer,success:function(){k()},fail:function(){k(new Error)}})},R._flush=function(P){i.closeSocket({success:function(){P()}})},R}function d(R){R.hostname||(R.hostname="localhost"),R.path||(R.path="/"),R.wsOptions||(R.wsOptions={})}function m(R,C){const P=R.protocol==="alis"?"wss":"ws";let k=P+"://"+R.hostname+R.path;return R.port&&R.port!==80&&R.port!==443&&(k=P+"://"+R.hostname+":"+R.port+R.path),typeof R.transformWsUrl=="function"&&(k=R.transformWsUrl(k,R,C)),k}function M(){u||(u=!0,i.onSocketOpen(function(){n.setReadable(a),n.setWritable(a),n.emit("connect")}),i.onSocketMessage(function(R){if(typeof R.data=="string"){const C=e.from(R.data,"base64");a.push(C)}else{const C=new FileReader;C.addEventListener("load",function(){let P=C.result;P instanceof ArrayBuffer?P=e.from(P):P=e.from(P,"utf8"),a.push(P)}),C.readAsArrayBuffer(R.data)}}),i.onSocketClose(function(){n.end(),n.destroy()}),i.onSocketError(function(R){n.destroy(R)}))}function S(R,C){if(C.hostname=C.hostname||C.host,!C.hostname)throw new Error("Could not determine host. Specify host manually.");const P=C.protocolId==="MQIsdp"&&C.protocolVersion===3?"mqttv3.1":"mqtt";d(C);const k=m(C,R);return i=C.my,i.connectSocket({url:k,protocols:P}),a=c(),n=r.obj(),M(),n}return Ad=S,Ad}var Sp={exports:{}},rP=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")};const{Buffer:af}=ke,E3=rP,$f=zn("mqttjs:ws"),iP=Qv,nP=vu.Transform,oP=["rejectUnauthorized","ca","cert","key","pfx","passphrase"],R3=typeof we<"u"&&we.title==="browser"||typeof __webpack_require__=="function";function A3(e,t){let r=e.protocol+"://"+e.hostname+":"+e.port+e.path;return typeof e.transformWsUrl=="function"&&(r=e.transformWsUrl(r,e,t)),r}function T3(e){const t=e;return e.hostname||(t.hostname="localhost"),e.port||(e.protocol==="wss"?t.port=443:t.port=80),e.path||(t.path="/"),e.wsOptions||(t.wsOptions={}),!R3&&e.protocol==="wss"&&oP.forEach(function(r){Object.prototype.hasOwnProperty.call(e,r)&&!Object.prototype.hasOwnProperty.call(e.wsOptions,r)&&(t.wsOptions[r]=e[r])}),t}function aP(e){const t=T3(e);if(t.hostname||(t.hostname=t.host),!t.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");const r=new URL(document.URL);t.hostname=r.hostname,t.port||(t.port=r.port)}return t.objectMode===void 0&&(t.objectMode=!(t.binary===!0||t.binary===void 0)),t}function sP(e,t,r){$f("createWebSocket"),$f("protocol: "+r.protocolId+" "+r.protocolVersion);const i=r.protocolId==="MQIsdp"&&r.protocolVersion===3?"mqttv3.1":"mqtt";return $f("creating new Websocket for url: "+t+" and protocol: "+i),new E3(t,[i],r.wsOptions)}function fP(e,t){const r=t.protocolId==="MQIsdp"&&t.protocolVersion===3?"mqttv3.1":"mqtt",i=A3(t,e),a=new WebSocket(i,[r]);return a.binaryType="arraybuffer",a}function uP(e,t){$f("streamBuilder");const r=T3(t),i=A3(r,e),a=sP(e,i,r),n=E3.createWebSocketStream(a,r.wsOptions);return n.url=i,a.on("close",()=>{n.destroy()}),n}function lP(e,t){$f("browserStreamBuilder");let r;const a=aP(t).browserBufferSize||1024*512,n=t.browserBufferTimeout||1e3,u=!t.objectMode,c=fP(e,t),d=M(t,L,I);t.objectMode||(d._writev=k),d.on("close",()=>{c.close()});const m=typeof c.addEventListener<"u";c.readyState===c.OPEN?r=d:(r=r=iP(void 0,void 0,t),t.objectMode||(r._writev=k),m?c.addEventListener("open",S):c.onopen=S),r.socket=c,m?(c.addEventListener("close",R),c.addEventListener("error",C),c.addEventListener("message",P)):(c.onclose=R,c.onerror=C,c.onmessage=P);function M(B,H,F){const W=new nP({objectModeMode:B.objectMode});return W._write=H,W._flush=F,W}function S(){r.setReadable(d),r.setWritable(d),r.emit("connect")}function R(){r.end(),r.destroy()}function C(B){r.destroy(B)}function P(B){let H=B.data;H instanceof ArrayBuffer?H=af.from(H):H=af.from(H,"utf8"),d.push(H)}function k(B,H){const F=new Array(B.length);for(let W=0;W<B.length;W++)typeof B[W].chunk=="string"?F[W]=af.from(B[W],"utf8"):F[W]=B[W].chunk;this._write(af.concat(F),"binary",H)}function L(B,H,F){c.bufferedAmount>a&&setTimeout(L,n,B,H,F),u&&typeof B=="string"&&(B=af.from(B,"utf8"));try{c.send(B)}catch(W){return F(W)}F()}function I(B){c.close(),B()}return r}R3?Sp.exports=lP:Sp.exports=uP;var O3=Sp.exports;const I3=JO,hP=_M,cP=s3,dP=Fv,py=zn("mqttjs"),Fr={};typeof we<"u"&&we.title!=="browser"||typeof __webpack_require__!="function"?(Fr.mqtt=Z1(),Fr.tcp=Z1(),Fr.ssl=yd(),Fr.tls=yd(),Fr.mqtts=yd()):(Fr.wx=hy(),Fr.wxs=hy(),Fr.ali=dy(),Fr.alis=dy());Fr.ws=O3;Fr.wss=O3;function pP(e){let t;e.auth&&(t=e.auth.match(/^(.+):(.+)$/),t?(e.username=t[1],e.password=t[2]):e.username=e.auth)}function P3(e,t){if(py("connecting to an MQTT broker..."),typeof e=="object"&&!t&&(t=e,e=null),t=t||{},e){const a=cP.parse(e,!0);if(a.port!=null&&(a.port=Number(a.port)),t=dP(a,t),t.protocol===null)throw new Error("Missing protocol");t.protocol=t.protocol.replace(/:$/,"")}if(pP(t),t.query&&typeof t.query.clientId=="string"&&(t.clientId=t.query.clientId),t.cert&&t.key)if(t.protocol){if(["mqtts","wss","wxs","alis"].indexOf(t.protocol)===-1)switch(t.protocol){case"mqtt":t.protocol="mqtts";break;case"ws":t.protocol="wss";break;case"wx":t.protocol="wxs";break;case"ali":t.protocol="alis";break;default:throw new Error('Unknown protocol for secure connection: "'+t.protocol+'"!')}}else throw new Error("Missing secure protocol key");if(!Fr[t.protocol]){const a=["mqtts","wss"].indexOf(t.protocol)!==-1;t.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter(function(n,u){return a&&u%2===0?!1:typeof Fr[n]=="function"})[0]}if(t.clean===!1&&!t.clientId)throw new Error("Missing clientId for unclean clients");t.protocol&&(t.defaultProtocol=t.protocol);function r(a){return t.servers&&((!a._reconnectCount||a._reconnectCount===t.servers.length)&&(a._reconnectCount=0),t.host=t.servers[a._reconnectCount].host,t.port=t.servers[a._reconnectCount].port,t.protocol=t.servers[a._reconnectCount].protocol?t.servers[a._reconnectCount].protocol:t.defaultProtocol,t.hostname=t.host,a._reconnectCount++),py("calling streambuilder for",t.protocol),Fr[t.protocol](a,t)}const i=new I3(r,t);return i.on("error",function(){}),i}du.exports=P3;du.exports.connect=P3;du.exports.MqttClient=I3;du.exports.Store=hP;var vP=du.exports;const CV=Lo(vP);function gP(){return C3().__VUE_DEVTOOLS_GLOBAL_HOOK__}function C3(){return typeof navigator<"u"&&typeof window<"u"?window:typeof ho<"u"?ho:{}}const mP=typeof Proxy=="function",yP="devtools-plugin:setup",bP="plugin:settings:set";let ka,xp;function wP(){var e;return ka!==void 0||(typeof window<"u"&&window.performance?(ka=!0,xp=window.performance):typeof ho<"u"&&(!((e=ho.perf_hooks)===null||e===void 0)&&e.performance)?(ka=!0,xp=ho.perf_hooks.performance):ka=!1),ka}function _P(){return wP()?xp.now():Date.now()}class MP{constructor(t,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=r;const i={};if(t.settings)for(const u in t.settings){const c=t.settings[u];i[u]=c.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let n=Object.assign({},i);try{const u=localStorage.getItem(a),c=JSON.parse(u);Object.assign(n,c)}catch{}this.fallbacks={getSettings(){return n},setSettings(u){try{localStorage.setItem(a,JSON.stringify(u))}catch{}n=u},now(){return _P()}},r&&r.on(bP,(u,c)=>{u===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(u,c)=>this.target?this.target.on[c]:(...d)=>{this.onQueue.push({method:c,args:d})}}),this.proxiedTarget=new Proxy({},{get:(u,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...d)=>(this.targetQueue.push({method:c,args:d,resolve:()=>{}}),this.fallbacks[c](...d)):(...d)=>new Promise(m=>{this.targetQueue.push({method:c,args:d,resolve:m})})})}async setRealTarget(t){this.target=t;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function B3(e,t){const r=e,i=C3(),a=gP(),n=mP&&r.enableEarlyProxy;if(a&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!n))a.emit(yP,e,t);else{const u=n?new MP(r,a):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:u}),u&&t(u.proxiedTarget)}}/*!
+  * vue-router v4.2.2
+  * (c) 2023 Eduardo San Martin Morote
+  * @license MIT
+  */const Rn=typeof window<"u";function SP(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const jt=Object.assign;function Td(e,t){const r={};for(const i in t){const a=t[i];r[i]=Jr(a)?a.map(e):e(a)}return r}const Df=()=>{},Jr=Array.isArray;function Et(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const xP=/\/$/,EP=e=>e.replace(xP,"");function Od(e,t,r="/"){let i,a={},n="",u="";const c=t.indexOf("#");let d=t.indexOf("?");return c<d&&c>=0&&(d=-1),d>-1&&(i=t.slice(0,d),n=t.slice(d+1,c>-1?c:t.length),a=e(n)),c>-1&&(i=i||t.slice(0,c),u=t.slice(c,t.length)),i=TP(i??t,r),{fullPath:i+(n&&"?")+n+u,path:i,query:a,hash:u}}function RP(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function vy(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function gy(e,t,r){const i=t.matched.length-1,a=r.matched.length-1;return i>-1&&i===a&&Po(t.matched[i],r.matched[a])&&L3(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Po(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function L3(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!AP(e[r],t[r]))return!1;return!0}function AP(e,t){return Jr(e)?my(e,t):Jr(t)?my(t,e):e===t}function my(e,t){return Jr(t)?e.length===t.length&&e.every((r,i)=>r===t[i]):e.length===1&&e[0]===t}function TP(e,t){if(e.startsWith("/"))return e;if(!t.startsWith("/"))return Et(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const r=t.split("/"),i=e.split("/"),a=i[i.length-1];(a===".."||a===".")&&i.push("");let n=r.length-1,u,c;for(u=0;u<i.length;u++)if(c=i[u],c!==".")if(c==="..")n>1&&n--;else break;return r.slice(0,n).join("/")+"/"+i.slice(u-(u===i.length?1:0)).join("/")}var ru;(function(e){e.pop="pop",e.push="push"})(ru||(ru={}));var Ff;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ff||(Ff={}));function OP(e){if(!e)if(Rn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),EP(e)}const IP=/^[^#]+#/;function PP(e,t){return e.replace(IP,"#")+t}function CP(e,t){const r=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-r.left-(t.left||0),top:i.top-r.top-(t.top||0)}}const Hh=()=>({left:window.pageXOffset,top:window.pageYOffset});function BP(e){let t;if("el"in e){const r=e.el,i=typeof r=="string"&&r.startsWith("#");if(typeof e.el=="string"&&(!i||!document.getElementById(e.el.slice(1))))try{const n=document.querySelector(e.el);if(i&&n){Et(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{Et(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const a=typeof r=="string"?i?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a){Et(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=CP(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function yy(e,t){return(history.state?history.state.position-t:-1)+e}const Ep=new Map;function LP(e,t){Ep.set(e,t)}function NP(e){const t=Ep.get(e);return Ep.delete(e),t}let kP=()=>location.protocol+"//"+location.host;function N3(e,t){const{pathname:r,search:i,hash:a}=t,n=e.indexOf("#");if(n>-1){let c=a.includes(e.slice(n))?e.slice(n).length:1,d=a.slice(c);return d[0]!=="/"&&(d="/"+d),vy(d,"")}return vy(r,e)+i+a}function $P(e,t,r,i){let a=[],n=[],u=null;const c=({state:R})=>{const C=N3(e,location),P=r.value,k=t.value;let L=0;if(R){if(r.value=C,t.value=R,u&&u===P){u=null;return}L=k?R.position-k.position:0}else i(C);a.forEach(I=>{I(r.value,P,{delta:L,type:ru.pop,direction:L?L>0?Ff.forward:Ff.back:Ff.unknown})})};function d(){u=r.value}function m(R){a.push(R);const C=()=>{const P=a.indexOf(R);P>-1&&a.splice(P,1)};return n.push(C),C}function M(){const{history:R}=window;R.state&&R.replaceState(jt({},R.state,{scroll:Hh()}),"")}function S(){for(const R of n)R();n=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",M)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",M,{passive:!0}),{pauseListeners:d,listen:m,destroy:S}}function by(e,t,r,i=!1,a=!1){return{back:e,current:t,forward:r,replaced:i,position:window.history.length,scroll:a?Hh():null}}function DP(e){const{history:t,location:r}=window,i={value:N3(e,r)},a={value:t.state};a.value||n(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function n(d,m,M){const S=e.indexOf("#"),R=S>-1?(r.host&&document.querySelector("base")?e:e.slice(S))+d:kP()+e+d;try{t[M?"replaceState":"pushState"](m,"",R),a.value=m}catch(C){Et("Error with push/replace State",C),r[M?"replace":"assign"](R)}}function u(d,m){const M=jt({},t.state,by(a.value.back,d,a.value.forward,!0),m,{position:a.value.position});n(d,M,!0),i.value=d}function c(d,m){const M=jt({},a.value,t.state,{forward:d,scroll:Hh()});t.state||Et(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
+
+history.replaceState(history.state, '', url)
+
+You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),n(M.current,M,!0);const S=jt({},by(i.value,d,null),{position:M.position+1},m);n(d,S,!1),i.value=d}return{location:i,state:a,push:c,replace:u}}function FP(e){e=OP(e);const t=DP(e),r=$P(e,t.state,t.location,t.replace);function i(n,u=!0){u||r.pauseListeners(),history.go(n)}const a=jt({location:"",base:e,go:i,createHref:PP.bind(null,e)},t,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function BV(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),!e.endsWith("#/")&&!e.endsWith("#")&&Et(`A hash base must end with a "#":
+"${e}" should be "${e.replace(/#.*$/,"#")}".`),FP(e)}function jP(e){return typeof e=="string"||e&&typeof e=="object"}function k3(e){return typeof e=="string"||typeof e=="symbol"}const eo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},$3=Symbol("navigation failure");var wy;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(wy||(wy={}));const UP={[1]({location:e,currentLocation:t}){return`No match for
+ ${JSON.stringify(e)}${t?`
+while being at
+`+JSON.stringify(t):""}`},[2]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${qP(t)}" via a navigation guard.`},[4]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[8]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[16]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function vs(e,t){return jt(new Error(UP[e](t)),{type:e,[$3]:!0},t)}function mn(e,t){return e instanceof Error&&$3 in e&&(t==null||!!(e.type&t))}const HP=["params","query","hash"];function qP(e){if(typeof e=="string")return e;if("path"in e)return e.path;const t={};for(const r of HP)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}const _y="[^/]+?",WP={sensitive:!1,strict:!1,start:!0,end:!0},KP=/[.+*?^${}()[\]/\\]/g;function VP(e,t){const r=jt({},WP,t),i=[];let a=r.start?"^":"";const n=[];for(const m of e){const M=m.length?[]:[90];r.strict&&!m.length&&(a+="/");for(let S=0;S<m.length;S++){const R=m[S];let C=40+(r.sensitive?.25:0);if(R.type===0)S||(a+="/"),a+=R.value.replace(KP,"\\$&"),C+=40;else if(R.type===1){const{value:P,repeatable:k,optional:L,regexp:I}=R;n.push({name:P,repeatable:k,optional:L});const B=I||_y;if(B!==_y){C+=10;try{new RegExp(`(${B})`)}catch(F){throw new Error(`Invalid custom RegExp for param "${P}" (${B}): `+F.message)}}let H=k?`((?:${B})(?:/(?:${B}))*)`:`(${B})`;S||(H=L&&m.length<2?`(?:/${H})`:"/"+H),L&&(H+="?"),a+=H,C+=20,L&&(C+=-8),k&&(C+=-20),B===".*"&&(C+=-50)}M.push(C)}i.push(M)}if(r.strict&&r.end){const m=i.length-1;i[m][i[m].length-1]+=.7000000000000001}r.strict||(a+="/?"),r.end?a+="$":r.strict&&(a+="(?:/|$)");const u=new RegExp(a,r.sensitive?"":"i");function c(m){const M=m.match(u),S={};if(!M)return null;for(let R=1;R<M.length;R++){const C=M[R]||"",P=n[R-1];S[P.name]=C&&P.repeatable?C.split("/"):C}return S}function d(m){let M="",S=!1;for(const R of e){(!S||!M.endsWith("/"))&&(M+="/"),S=!1;for(const C of R)if(C.type===0)M+=C.value;else if(C.type===1){const{value:P,repeatable:k,optional:L}=C,I=P in m?m[P]:"";if(Jr(I)&&!k)throw new Error(`Provided param "${P}" is an array but it is not repeatable (* or + modifiers)`);const B=Jr(I)?I.join("/"):I;if(!B)if(L)R.length<2&&(M.endsWith("/")?M=M.slice(0,-1):S=!0);else throw new Error(`Missing required param "${P}"`);M+=B}}return M||"/"}return{re:u,score:i,keys:n,parse:c,stringify:d}}function zP(e,t){let r=0;for(;r<e.length&&r<t.length;){const i=t[r]-e[r];if(i)return i;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function GP(e,t){let r=0;const i=e.score,a=t.score;for(;r<i.length&&r<a.length;){const n=zP(i[r],a[r]);if(n)return n;r++}if(Math.abs(a.length-i.length)===1){if(My(i))return 1;if(My(a))return-1}return a.length-i.length}function My(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const YP={type:0,value:""},ZP=/[a-zA-Z0-9_]/;function XP(e){if(!e)return[[]];if(e==="/")return[[YP]];if(!e.startsWith("/"))throw new Error(`Route paths should start with a "/": "${e}" should be "/${e}".`);function t(C){throw new Error(`ERR (${r})/"${m}": ${C}`)}let r=0,i=r;const a=[];let n;function u(){n&&a.push(n),n=[]}let c=0,d,m="",M="";function S(){m&&(r===0?n.push({type:0,value:m}):r===1||r===2||r===3?(n.length>1&&(d==="*"||d==="+")&&t(`A repeatable param (${m}) must be alone in its segment. eg: '/:ids+.`),n.push({type:1,value:m,regexp:M,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):t("Invalid state to consume buffer"),m="")}function R(){m+=d}for(;c<e.length;){if(d=e[c++],d==="\\"&&r!==2){i=r,r=4;continue}switch(r){case 0:d==="/"?(m&&S(),u()):d===":"?(S(),r=1):R();break;case 4:R(),r=i;break;case 1:d==="("?r=2:ZP.test(d)?R():(S(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&c--);break;case 2:d===")"?M[M.length-1]=="\\"?M=M.slice(0,-1)+d:r=3:M+=d;break;case 3:S(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&c--,M="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${m}"`),S(),u(),a}function JP(e,t,r){const i=VP(XP(e.path),r);{const n=new Set;for(const u of i.keys)n.has(u.name)&&Et(`Found duplicated params with name "${u.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),n.add(u.name)}const a=jt(i,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function QP(e,t){const r=[],i=new Map;t=Ey({strict:!1,end:!0,sensitive:!1},t);function a(M){return i.get(M)}function n(M,S,R){const C=!R,P=eC(M);nC(P,S),P.aliasOf=R&&R.record;const k=Ey(t,M),L=[P];if("alias"in M){const H=typeof M.alias=="string"?[M.alias]:M.alias;for(const F of H)L.push(jt({},P,{components:R?R.record.components:P.components,path:F,aliasOf:R?R.record:P}))}let I,B;for(const H of L){const{path:F}=H;if(S&&F[0]!=="/"){const W=S.record.path,Y=W[W.length-1]==="/"?"":"/";H.path=S.record.path+(F&&Y+F)}if(H.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
+See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(I=JP(H,S,k),S&&F[0]==="/"&&oC(I,S),R?(R.alias.push(I),iC(R,I)):(B=B||I,B!==I&&B.alias.push(I),C&&M.name&&!xy(I)&&u(M.name)),P.children){const W=P.children;for(let Y=0;Y<W.length;Y++)n(W[Y],I,R&&R.children[Y])}R=R||I,(I.record.components&&Object.keys(I.record.components).length||I.record.name||I.record.redirect)&&d(I)}return B?()=>{u(B)}:Df}function u(M){if(k3(M)){const S=i.get(M);S&&(i.delete(M),r.splice(r.indexOf(S),1),S.children.forEach(u),S.alias.forEach(u))}else{const S=r.indexOf(M);S>-1&&(r.splice(S,1),M.record.name&&i.delete(M.record.name),M.children.forEach(u),M.alias.forEach(u))}}function c(){return r}function d(M){let S=0;for(;S<r.length&&GP(M,r[S])>=0&&(M.record.path!==r[S].record.path||!D3(M,r[S]));)S++;r.splice(S,0,M),M.record.name&&!xy(M)&&i.set(M.record.name,M)}function m(M,S){let R,C={},P,k;if("name"in M&&M.name){if(R=i.get(M.name),!R)throw vs(1,{location:M});{const B=Object.keys(M.params||{}).filter(H=>!R.keys.find(F=>F.name===H));B.length&&Et(`Discarded invalid param(s) "${B.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}k=R.record.name,C=jt(Sy(S.params,R.keys.filter(B=>!B.optional).map(B=>B.name)),M.params&&Sy(M.params,R.keys.map(B=>B.name))),P=R.stringify(C)}else if("path"in M)P=M.path,P.startsWith("/")||Et(`The Matcher cannot resolve relative paths but received "${P}". Unless you directly called \`matcher.resolve("${P}")\`, this is probably a bug in vue-router. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/router.`),R=r.find(B=>B.re.test(P)),R&&(C=R.parse(P),k=R.record.name);else{if(R=S.name?i.get(S.name):r.find(B=>B.re.test(S.path)),!R)throw vs(1,{location:M,currentLocation:S});k=R.record.name,C=jt({},S.params,M.params),P=R.stringify(C)}const L=[];let I=R;for(;I;)L.unshift(I.record),I=I.parent;return{name:k,path:P,params:C,matched:L,meta:rC(L)}}return e.forEach(M=>n(M)),{addRoute:n,resolve:m,removeRoute:u,getRoutes:c,getRecordMatcher:a}}function Sy(e,t){const r={};for(const i of t)i in e&&(r[i]=e[i]);return r}function eC(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:tC(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function tC(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const i in e.components)t[i]=typeof r=="boolean"?r:r[i];return t}function xy(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function rC(e){return e.reduce((t,r)=>jt(t,r.meta),{})}function Ey(e,t){const r={};for(const i in e)r[i]=i in t?t[i]:e[i];return r}function Rp(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function iC(e,t){for(const r of e.keys)if(!r.optional&&!t.keys.find(Rp.bind(null,r)))return Et(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${r.name}"`);for(const r of t.keys)if(!r.optional&&!e.keys.find(Rp.bind(null,r)))return Et(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${r.name}"`)}function nC(e,t){t&&t.record.name&&!e.name&&!e.path&&Et(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function oC(e,t){for(const r of t.keys)if(!e.keys.find(Rp.bind(null,r)))return Et(`Absolute path "${e.record.path}" must have the exact same param named "${r.name}" as its parent "${t.record.path}".`)}function D3(e,t){return t.children.some(r=>r===e||D3(e,r))}const F3=/#/g,aC=/&/g,sC=/\//g,fC=/=/g,uC=/\?/g,j3=/\+/g,lC=/%5B/g,hC=/%5D/g,U3=/%5E/g,cC=/%60/g,H3=/%7B/g,dC=/%7C/g,q3=/%7D/g,pC=/%20/g;function eg(e){return encodeURI(""+e).replace(dC,"|").replace(lC,"[").replace(hC,"]")}function vC(e){return eg(e).replace(H3,"{").replace(q3,"}").replace(U3,"^")}function Ap(e){return eg(e).replace(j3,"%2B").replace(pC,"+").replace(F3,"%23").replace(aC,"%26").replace(cC,"`").replace(H3,"{").replace(q3,"}").replace(U3,"^")}function gC(e){return Ap(e).replace(fC,"%3D")}function mC(e){return eg(e).replace(F3,"%23").replace(uC,"%3F")}function yC(e){return e==null?"":mC(e).replace(sC,"%2F")}function iu(e){try{return decodeURIComponent(""+e)}catch{Et(`Error decoding "${e}". Using original value`)}return""+e}function bC(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;a<i.length;++a){const n=i[a].replace(j3," "),u=n.indexOf("="),c=iu(u<0?n:n.slice(0,u)),d=u<0?null:iu(n.slice(u+1));if(c in t){let m=t[c];Jr(m)||(m=t[c]=[m]),m.push(d)}else t[c]=d}return t}function Ry(e){let t="";for(let r in e){const i=e[r];if(r=gC(r),i==null){i!==void 0&&(t+=(t.length?"&":"")+r);continue}(Jr(i)?i.map(n=>n&&Ap(n)):[i&&Ap(i)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+r,n!=null&&(t+="="+n))})}return t}function wC(e){const t={};for(const r in e){const i=e[r];i!==void 0&&(t[r]=Jr(i)?i.map(a=>a==null?null:""+a):i==null?i:""+i)}return t}const _C=Symbol("router view location matched"),Ay=Symbol("router view depth"),tg=Symbol("router"),W3=Symbol("route location"),Tp=Symbol("router view location");function sf(){let e=[];function t(i){return e.push(i),()=>{const a=e.indexOf(i);a>-1&&e.splice(a,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function oo(e,t,r,i,a){const n=i&&(i.enterCallbacks[a]=i.enterCallbacks[a]||[]);return()=>new Promise((u,c)=>{const d=S=>{S===!1?c(vs(4,{from:r,to:t})):S instanceof Error?c(S):jP(S)?c(vs(2,{from:t,to:S})):(n&&i.enterCallbacks[a]===n&&typeof S=="function"&&n.push(S),u())},m=e.call(i&&i.instances[a],t,r,MC(d,t,r));let M=Promise.resolve(m);if(e.length<3&&(M=M.then(d)),e.length>2){const S=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
+${e.toString()}
+. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof m=="object"&&"then"in m)M=M.then(R=>d._called?R:(Et(S),Promise.reject(new Error("Invalid navigation guard"))));else if(m!==void 0&&!d._called){Et(S),c(new Error("Invalid navigation guard"));return}}M.catch(S=>c(S))})}function MC(e,t,r){let i=0;return function(){i++===1&&Et(`The "next" callback was called more than once in one navigation guard when going from "${r.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,i===1&&e.apply(null,arguments)}}function Id(e,t,r,i){const a=[];for(const n of e){!n.components&&!n.children.length&&Et(`Record with path "${n.path}" is either missing a "component(s)" or "children" property.`);for(const u in n.components){let c=n.components[u];{if(!c||typeof c!="object"&&typeof c!="function")throw Et(`Component "${u}" in record with path "${n.path}" is not a valid component. Received "${String(c)}".`),new Error("Invalid route component");if("then"in c){Et(`Component "${u}" in record with path "${n.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const d=c;c=()=>d}else c.__asyncLoader&&!c.__warnedDefineAsync&&(c.__warnedDefineAsync=!0,Et(`Component "${u}" in record with path "${n.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!n.instances[u]))if(SC(c)){const m=(c.__vccOpts||c)[t];m&&a.push(oo(m,r,i,n,u))}else{let d=c();"catch"in d||(Et(`Component "${u}" in record with path "${n.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),d=Promise.resolve(d)),a.push(()=>d.then(m=>{if(!m)return Promise.reject(new Error(`Couldn't resolve component "${u}" at "${n.path}"`));const M=SP(m)?m.default:m;n.components[u]=M;const R=(M.__vccOpts||M)[t];return R&&oo(R,r,i,n,u)()}))}}}return a}function SC(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ty(e){const t=tn(tg),r=tn(W3),i=Qt(()=>t.resolve(vo(e.to))),a=Qt(()=>{const{matched:d}=i.value,{length:m}=d,M=d[m-1],S=r.matched;if(!M||!S.length)return-1;const R=S.findIndex(Po.bind(null,M));if(R>-1)return R;const C=Oy(d[m-2]);return m>1&&Oy(M)===C&&S[S.length-1].path!==C?S.findIndex(Po.bind(null,d[m-2])):R}),n=Qt(()=>a.value>-1&&AC(r.params,i.value.params)),u=Qt(()=>a.value>-1&&a.value===r.matched.length-1&&L3(r.params,i.value.params));function c(d={}){return RC(d)?t[vo(e.replace)?"replace":"push"](vo(e.to)).catch(Df):Promise.resolve()}if(Rn){const d=Fi();if(d){const m={route:i.value,isActive:n.value,isExactActive:u.value};d.__vrl_devtools=d.__vrl_devtools||[],d.__vrl_devtools.push(m),E2(()=>{m.route=i.value,m.isActive=n.value,m.isExactActive=u.value},{flush:"post"})}}return{route:i,href:Qt(()=>i.value.href),isActive:n,isExactActive:u,navigate:c}}const xC=Bs({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ty,setup(e,{slots:t}){const r=No(Ty(e)),{options:i}=tn(tg),a=Qt(()=>({[Iy(e.activeClass,i.linkActiveClass,"router-link-active")]:r.isActive,[Iy(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const n=t.default&&t.default(r);return e.custom?n:xh("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},n)}}}),EC=xC;function RC(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function AC(e,t){for(const r in t){const i=t[r],a=e[r];if(typeof i=="string"){if(i!==a)return!1}else if(!Jr(a)||a.length!==i.length||i.some((n,u)=>n!==a[u]))return!1}return!0}function Oy(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Iy=(e,t,r)=>e??t??r,TC=Bs({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){IC();const i=tn(Tp),a=Qt(()=>e.route||i.value),n=tn(Ay,0),u=Qt(()=>{let m=vo(n);const{matched:M}=a.value;let S;for(;(S=M[m])&&!S.components;)m++;return m}),c=Qt(()=>a.value.matched[u.value]);Cf(Ay,Qt(()=>u.value+1)),Cf(_C,c),Cf(Tp,a);const d=mr();return lr(()=>[d.value,c.value,e.name],([m,M,S],[R,C,P])=>{M&&(M.instances[S]=m,C&&C!==M&&m&&m===R&&(M.leaveGuards.size||(M.leaveGuards=C.leaveGuards),M.updateGuards.size||(M.updateGuards=C.updateGuards))),m&&M&&(!C||!Po(M,C)||!R)&&(M.enterCallbacks[S]||[]).forEach(k=>k(m))},{flush:"post"}),()=>{const m=a.value,M=e.name,S=c.value,R=S&&S.components[M];if(!R)return Py(r.default,{Component:R,route:m});const C=S.props[M],P=C?C===!0?m.params:typeof C=="function"?C(m):C:null,L=xh(R,jt({},P,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(S.instances[M]=null)},ref:d}));if(Rn&&L.ref){const I={depth:u.value,name:S.name,path:S.path,meta:S.meta};(Jr(L.ref)?L.ref.map(H=>H.i):[L.ref.i]).forEach(H=>{H.__vrv_devtools=I})}return Py(r.default,{Component:L,route:m})||L}}});function Py(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const OC=TC;function IC(){const e=Fi(),t=e.parent&&e.parent.type.name,r=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof r=="object"&&r.name==="RouterView"){const i=t==="KeepAlive"?"keep-alive":"transition";Et(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
+Use slot props instead:
+
+<router-view v-slot="{ Component }">
+  <${i}>
+    <component :is="Component" />
+  </${i}>
+</router-view>`)}}function ff(e,t){const r=jt({},e,{matched:e.matched.map(i=>FC(i,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:r}}}function zu(e){return{_custom:{display:e}}}let PC=0;function CC(e,t,r){if(t.__hasDevtools)return;t.__hasDevtools=!0;const i=PC++;B3({id:"org.vuejs.router"+(i?"."+i:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},a=>{typeof a.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),a.on.inspectComponent((M,S)=>{M.instanceData&&M.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:ff(t.currentRoute.value,"Current Route")})}),a.on.visitComponentTree(({treeNode:M,componentInstance:S})=>{if(S.__vrv_devtools){const R=S.__vrv_devtools;M.tags.push({label:(R.name?`${R.name.toString()}: `:"")+R.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:K3})}Jr(S.__vrl_devtools)&&(S.__devtoolsApi=a,S.__vrl_devtools.forEach(R=>{let C=G3,P="";R.isExactActive?(C=z3,P="This is exactly active"):R.isActive&&(C=V3,P="This link is active"),M.tags.push({label:R.route.path,textColor:0,tooltip:P,backgroundColor:C})}))}),lr(t.currentRoute,()=>{d(),a.notifyComponentUpdate(),a.sendInspectorTree(c),a.sendInspectorState(c)});const n="router:navigations:"+i;a.addTimelineLayer({id:n,label:`Router${i?" "+i:""} Navigations`,color:4237508}),t.onError((M,S)=>{a.addTimelineEvent({layerId:n,event:{title:"Error during Navigation",subtitle:S.fullPath,logType:"error",time:a.now(),data:{error:M},groupId:S.meta.__navigationId}})});let u=0;t.beforeEach((M,S)=>{const R={guard:zu("beforeEach"),from:ff(S,"Current Location during this navigation"),to:ff(M,"Target location")};Object.defineProperty(M.meta,"__navigationId",{value:u++}),a.addTimelineEvent({layerId:n,event:{time:a.now(),title:"Start of navigation",subtitle:M.fullPath,data:R,groupId:M.meta.__navigationId}})}),t.afterEach((M,S,R)=>{const C={guard:zu("afterEach")};R?(C.failure={_custom:{type:Error,readOnly:!0,display:R?R.message:"",tooltip:"Navigation Failure",value:R}},C.status=zu("❌")):C.status=zu("✅"),C.from=ff(S,"Current Location during this navigation"),C.to=ff(M,"Target location"),a.addTimelineEvent({layerId:n,event:{title:"End of navigation",subtitle:M.fullPath,time:a.now(),data:C,logType:R?"warning":"default",groupId:M.meta.__navigationId}})});const c="router-inspector:"+i;a.addInspector({id:c,label:"Routes"+(i?" "+i:""),icon:"book",treeFilterPlaceholder:"Search routes"});function d(){if(!m)return;const M=m;let S=r.getRoutes().filter(R=>!R.parent);S.forEach(X3),M.filter&&(S=S.filter(R=>Op(R,M.filter.toLowerCase()))),S.forEach(R=>Z3(R,t.currentRoute.value)),M.rootNodes=S.map(Y3)}let m;a.on.getInspectorTree(M=>{m=M,M.app===e&&M.inspectorId===c&&d()}),a.on.getInspectorState(M=>{if(M.app===e&&M.inspectorId===c){const R=r.getRoutes().find(C=>C.record.__vd_id===M.nodeId);R&&(M.state={options:LC(R)})}}),a.sendInspectorTree(c),a.sendInspectorState(c)})}function BC(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function LC(e){const{record:t}=e,r=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&r.push({editable:!1,key:"name",value:t.name}),r.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&r.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(i=>`${i.name}${BC(i)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&r.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&r.push({editable:!1,key:"aliases",value:e.alias.map(i=>i.record.path)}),Object.keys(e.record.meta).length&&r.push({editable:!1,key:"meta",value:e.record.meta}),r.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(i=>i.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),r}const K3=15485081,V3=2450411,z3=8702998,NC=2282478,G3=16486972,kC=6710886;function Y3(e){const t=[],{record:r}=e;r.name!=null&&t.push({label:String(r.name),textColor:0,backgroundColor:NC}),r.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:G3}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:K3}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:z3}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:V3}),r.redirect&&t.push({label:typeof r.redirect=="string"?`redirect: ${r.redirect}`:"redirects",textColor:16777215,backgroundColor:kC});let i=r.__vd_id;return i==null&&(i=String($C++),r.__vd_id=i),{id:i,label:r.path,tags:t,children:e.children.map(Y3)}}let $C=0;const DC=/^\/(.*)\/([a-z]*)$/;function Z3(e,t){const r=t.matched.length&&Po(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=r,r||(e.__vd_active=t.matched.some(i=>Po(i,e.record))),e.children.forEach(i=>Z3(i,t))}function X3(e){e.__vd_match=!1,e.children.forEach(X3)}function Op(e,t){const r=String(e.re).match(DC);if(e.__vd_match=!1,!r||r.length<3)return!1;if(new RegExp(r[1].replace(/\$$/,""),r[2]).test(t))return e.children.forEach(u=>Op(u,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const a=e.record.path.toLowerCase(),n=iu(a);return!t.startsWith("/")&&(n.includes(t)||a.includes(t))||n.startsWith(t)||a.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(u=>Op(u,t))}function FC(e,t){const r={};for(const i in e)t.includes(i)||(r[i]=e[i]);return r}function LV(e){const t=QP(e.routes,e),r=e.parseQuery||bC,i=e.stringifyQuery||Ry,a=e.history;if(!a)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const n=sf(),u=sf(),c=sf(),d=l2(eo);let m=eo;Rn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const M=Td.bind(null,E=>""+E),S=Td.bind(null,yC),R=Td.bind(null,iu);function C(E,U){let K,Z;return k3(E)?(K=t.getRecordMatcher(E),Z=U):Z=E,t.addRoute(Z,K)}function P(E){const U=t.getRecordMatcher(E);U?t.removeRoute(U):Et(`Cannot remove non-existent route "${String(E)}"`)}function k(){return t.getRoutes().map(E=>E.record)}function L(E){return!!t.getRecordMatcher(E)}function I(E,U){if(U=jt({},U||d.value),typeof E=="string"){const q=Od(r,E,U.path),X=t.resolve({path:q.path},U),D=a.createHref(q.fullPath);return D.startsWith("//")?Et(`Location "${E}" resolved to "${D}". A resolved location cannot start with multiple slashes.`):X.matched.length||Et(`No match found for location with path "${E}"`),jt(q,X,{params:R(X.params),hash:iu(q.hash),redirectedFrom:void 0,href:D})}let K;if("path"in E)"params"in E&&!("name"in E)&&Object.keys(E.params).length&&Et(`Path "${E.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),K=jt({},E,{path:Od(r,E.path,U.path).path});else{const q=jt({},E.params);for(const X in q)q[X]==null&&delete q[X];K=jt({},E,{params:S(q)}),U.params=S(U.params)}const Z=t.resolve(K,U),b=E.hash||"";b&&!b.startsWith("#")&&Et(`A \`hash\` should always start with the character "#". Replace "${b}" with "#${b}".`),Z.params=M(R(Z.params));const y=RP(i,jt({},E,{hash:vC(b),path:Z.path})),O=a.createHref(y);return O.startsWith("//")?Et(`Location "${E}" resolved to "${O}". A resolved location cannot start with multiple slashes.`):Z.matched.length||Et(`No match found for location with path "${"path"in E?E.path:E}"`),jt({fullPath:y,hash:b,query:i===Ry?wC(E.query):E.query||{}},Z,{redirectedFrom:void 0,href:O})}function B(E){return typeof E=="string"?Od(r,E,d.value.path):jt({},E)}function H(E,U){if(m!==E)return vs(8,{from:U,to:E})}function F(E){return ie(E)}function W(E){return F(jt(B(E),{replace:!0}))}function Y(E){const U=E.matched[E.matched.length-1];if(U&&U.redirect){const{redirect:K}=U;let Z=typeof K=="function"?K(E):K;if(typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=B(Z):{path:Z},Z.params={}),!("path"in Z)&&!("name"in Z))throw Et(`Invalid redirect found:
+${JSON.stringify(Z,null,2)}
+ when navigating to "${E.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return jt({query:E.query,hash:E.hash,params:"path"in Z?{}:E.params},Z)}}function ie(E,U){const K=m=I(E),Z=d.value,b=E.state,y=E.force,O=E.replace===!0,q=Y(K);if(q)return ie(jt(B(q),{state:typeof q=="object"?jt({},b,q.state):b,force:y,replace:O}),U||K);const X=K;X.redirectedFrom=U;let D;return!y&&gy(i,Z,K)&&(D=vs(16,{to:X,from:Z}),v(Z,Z,!0,!1)),(D?Promise.resolve(D):oe(X,Z)).catch(N=>mn(N)?mn(N,2)?N:s(N):x(N,X,Z)).then(N=>{if(N){if(mn(N,2))return gy(i,I(N.to),X)&&U&&(U._count=U._count?U._count+1:1)>30?(Et(`Detected a possibly infinite redirection in a navigation guard when going from "${Z.fullPath}" to "${X.fullPath}". Aborting to avoid a Stack Overflow.
+ Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):ie(jt({replace:O},B(N.to),{state:typeof N.to=="object"?jt({},b,N.to.state):b,force:y}),U||X)}else N=o(X,Z,!0,O,b);return _(X,Z,N),N})}function J(E,U){const K=H(E,U);return K?Promise.reject(K):Promise.resolve()}function V(E){const U=G.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(E):E()}function oe(E,U){let K;const[Z,b,y]=jC(E,U);K=Id(Z.reverse(),"beforeRouteLeave",E,U);for(const q of Z)q.leaveGuards.forEach(X=>{K.push(oo(X,E,U))});const O=J.bind(null,E,U);return K.push(O),A(K).then(()=>{K=[];for(const q of n.list())K.push(oo(q,E,U));return K.push(O),A(K)}).then(()=>{K=Id(b,"beforeRouteUpdate",E,U);for(const q of b)q.updateGuards.forEach(X=>{K.push(oo(X,E,U))});return K.push(O),A(K)}).then(()=>{K=[];for(const q of E.matched)if(q.beforeEnter&&!U.matched.includes(q))if(Jr(q.beforeEnter))for(const X of q.beforeEnter)K.push(oo(X,E,U));else K.push(oo(q.beforeEnter,E,U));return K.push(O),A(K)}).then(()=>(E.matched.forEach(q=>q.enterCallbacks={}),K=Id(y,"beforeRouteEnter",E,U),K.push(O),A(K))).then(()=>{K=[];for(const q of u.list())K.push(oo(q,E,U));return K.push(O),A(K)}).catch(q=>mn(q,8)?q:Promise.reject(q))}function _(E,U,K){for(const Z of c.list())V(()=>Z(E,U,K))}function o(E,U,K,Z,b){const y=H(E,U);if(y)return y;const O=U===eo,q=Rn?history.state:{};K&&(Z||O?a.replace(E.fullPath,jt({scroll:O&&q&&q.scroll},b)):a.push(E.fullPath,b)),d.value=E,v(E,U,K,O),s()}let f;function l(){f||(f=a.listen((E,U,K)=>{if(!ee.listening)return;const Z=I(E),b=Y(Z);if(b){ie(jt(b,{replace:!0}),Z).catch(Df);return}m=Z;const y=d.value;Rn&&LP(yy(y.fullPath,K.delta),Hh()),oe(Z,y).catch(O=>mn(O,12)?O:mn(O,2)?(ie(O.to,Z).then(q=>{mn(q,20)&&!K.delta&&K.type===ru.pop&&a.go(-1,!1)}).catch(Df),Promise.reject()):(K.delta&&a.go(-K.delta,!1),x(O,Z,y))).then(O=>{O=O||o(Z,y,!1),O&&(K.delta&&!mn(O,8)?a.go(-K.delta,!1):K.type===ru.pop&&mn(O,20)&&a.go(-1,!1)),_(Z,y,O)}).catch(Df)}))}let h=sf(),p=sf(),w;function x(E,U,K){s(E);const Z=p.list();return Z.length?Z.forEach(b=>b(E,U,K)):(Et("uncaught error during route navigation:"),console.error(E)),Promise.reject(E)}function g(){return w&&d.value!==eo?Promise.resolve():new Promise((E,U)=>{h.add([E,U])})}function s(E){return w||(w=!E,l(),h.list().forEach(([U,K])=>E?K(E):U()),h.reset()),E}function v(E,U,K,Z){const{scrollBehavior:b}=e;if(!Rn||!b)return Promise.resolve();const y=!K&&NP(yy(E.fullPath,0))||(Z||!K)&&history.state&&history.state.scroll||null;return uo().then(()=>b(E,U,y)).then(O=>O&&BP(O)).catch(O=>x(O,E,U))}const T=E=>a.go(E);let $;const G=new Set,ee={currentRoute:d,listening:!0,addRoute:C,removeRoute:P,hasRoute:L,getRoutes:k,resolve:I,options:e,push:F,replace:W,go:T,back:()=>T(-1),forward:()=>T(1),beforeEach:n.add,beforeResolve:u.add,afterEach:c.add,onError:p.add,isReady:g,install(E){const U=this;E.component("RouterLink",EC),E.component("RouterView",OC),E.config.globalProperties.$router=U,Object.defineProperty(E.config.globalProperties,"$route",{enumerable:!0,get:()=>vo(d)}),Rn&&!$&&d.value===eo&&($=!0,F(a.location).catch(b=>{Et("Unexpected error when starting the router:",b)}));const K={};for(const b in eo)K[b]=Qt(()=>d.value[b]);E.provide(tg,U),E.provide(W3,No(K)),E.provide(Tp,d);const Z=E.unmount;G.add(E),E.unmount=function(){G.delete(E),G.size<1&&(m=eo,f&&f(),f=null,d.value=eo,$=!1,w=!1),Z()},Rn&&CC(E,U,t)}};function A(E){return E.reduce((U,K)=>U.then(()=>V(K)),Promise.resolve())}return ee}function jC(e,t){const r=[],i=[],a=[],n=Math.max(t.matched.length,e.matched.length);for(let u=0;u<n;u++){const c=t.matched[u];c&&(e.matched.find(m=>Po(m,c))?i.push(c):r.push(c));const d=e.matched[u];d&&(t.matched.find(m=>Po(m,d))||a.push(d))}return[r,i,a]}/*!
+ * vuex v4.1.0
+ * (c) 2022 Evan You
+ * @license MIT
+ */var UC="store";function xa(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function HC(e){return e!==null&&typeof e=="object"}function qC(e){return e&&typeof e.then=="function"}function ki(e,t){if(!e)throw new Error("[vuex] "+t)}function WC(e,t){return function(){return e(t)}}function J3(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var i=t.indexOf(e);i>-1&&t.splice(i,1)}}function Q3(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;qh(e,r,[],e._modules.root,!0),rg(e,r,t)}function rg(e,t,r){var i=e._state,a=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var n=e._wrappedGetters,u={},c={},d=zw(!0);d.run(function(){xa(n,function(m,M){u[M]=WC(m,e),c[M]=Qt(function(){return u[M]()}),Object.defineProperty(e.getters,M,{get:function(){return c[M].value},enumerable:!0})})}),e._state=No({data:t}),e._scope=d,e.strict&&YC(e),i&&r&&e._withCommit(function(){i.data=null}),a&&a.stop()}function qh(e,t,r,i,a){var n=!r.length,u=e._modules.getNamespace(r);if(i.namespaced&&(e._modulesNamespaceMap[u]&&console.error("[vuex] duplicate namespace "+u+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[u]=i),!n&&!a){var c=ig(t,r.slice(0,-1)),d=r[r.length-1];e._withCommit(function(){d in c&&console.warn('[vuex] state field "'+d+'" was overridden by a module with the same name at "'+r.join(".")+'"'),c[d]=i.state})}var m=i.context=KC(e,u,r);i.forEachMutation(function(M,S){var R=u+S;VC(e,R,M,m)}),i.forEachAction(function(M,S){var R=M.root?S:u+S,C=M.handler||M;zC(e,R,C,m)}),i.forEachGetter(function(M,S){var R=u+S;GC(e,R,M,m)}),i.forEachChild(function(M,S){qh(e,t,r.concat(S),M,a)})}function KC(e,t,r){var i=t==="",a={dispatch:i?e.dispatch:function(n,u,c){var d=Gl(n,u,c),m=d.payload,M=d.options,S=d.type;if((!M||!M.root)&&(S=t+S,!e._actions[S])){console.error("[vuex] unknown local action type: "+d.type+", global type: "+S);return}return e.dispatch(S,m)},commit:i?e.commit:function(n,u,c){var d=Gl(n,u,c),m=d.payload,M=d.options,S=d.type;if((!M||!M.root)&&(S=t+S,!e._mutations[S])){console.error("[vuex] unknown local mutation type: "+d.type+", global type: "+S);return}e.commit(S,m,M)}};return Object.defineProperties(a,{getters:{get:i?function(){return e.getters}:function(){return e6(e,t)}},state:{get:function(){return ig(e.state,r)}}}),a}function e6(e,t){if(!e._makeLocalGettersCache[t]){var r={},i=t.length;Object.keys(e.getters).forEach(function(a){if(a.slice(0,i)===t){var n=a.slice(i);Object.defineProperty(r,n,{get:function(){return e.getters[a]},enumerable:!0})}}),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function VC(e,t,r,i){var a=e._mutations[t]||(e._mutations[t]=[]);a.push(function(u){r.call(e,i.state,u)})}function zC(e,t,r,i){var a=e._actions[t]||(e._actions[t]=[]);a.push(function(u){var c=r.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},u);return qC(c)||(c=Promise.resolve(c)),e._devtoolHook?c.catch(function(d){throw e._devtoolHook.emit("vuex:error",d),d}):c})}function GC(e,t,r,i){if(e._wrappedGetters[t]){console.error("[vuex] duplicate getter key: "+t);return}e._wrappedGetters[t]=function(n){return r(i.state,i.getters,n.state,n.getters)}}function YC(e){lr(function(){return e._state.data},function(){ki(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function ig(e,t){return t.reduce(function(r,i){return r[i]},e)}function Gl(e,t,r){return HC(e)&&e.type&&(r=t,t=e,e=e.type),ki(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:r}}var ZC="vuex bindings",Cy="vuex:mutations",Pd="vuex:actions",$a="vuex",XC=0;function JC(e,t){B3({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[ZC]},function(r){r.addTimelineLayer({id:Cy,label:"Vuex Mutations",color:By}),r.addTimelineLayer({id:Pd,label:"Vuex Actions",color:By}),r.addInspector({id:$a,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(i){if(i.app===e&&i.inspectorId===$a)if(i.filter){var a=[];n6(a,t._modules.root,i.filter,""),i.rootNodes=a}else i.rootNodes=[i6(t._modules.root,"")]}),r.on.getInspectorState(function(i){if(i.app===e&&i.inspectorId===$a){var a=i.nodeId;e6(t,a),i.state=tB(iB(t._modules,a),a==="root"?t.getters:t._makeLocalGettersCache,a)}}),r.on.editInspectorState(function(i){if(i.app===e&&i.inspectorId===$a){var a=i.nodeId,n=i.path;a!=="root"&&(n=a.split("/").filter(Boolean).concat(n)),t._withCommit(function(){i.set(t._state.data,n,i.state.value)})}}),t.subscribe(function(i,a){var n={};i.payload&&(n.payload=i.payload),n.state=a,r.notifyComponentUpdate(),r.sendInspectorTree($a),r.sendInspectorState($a),r.addTimelineEvent({layerId:Cy,event:{time:Date.now(),title:i.type,data:n}})}),t.subscribeAction({before:function(i,a){var n={};i.payload&&(n.payload=i.payload),i._id=XC++,i._time=Date.now(),n.state=a,r.addTimelineEvent({layerId:Pd,event:{time:i._time,title:i.type,groupId:i._id,subtitle:"start",data:n}})},after:function(i,a){var n={},u=Date.now()-i._time;n.duration={_custom:{type:"duration",display:u+"ms",tooltip:"Action duration",value:u}},i.payload&&(n.payload=i.payload),n.state=a,r.addTimelineEvent({layerId:Pd,event:{time:Date.now(),title:i.type,groupId:i._id,subtitle:"end",data:n}})}})})}var By=8702998,QC=6710886,eB=16777215,t6={label:"namespaced",textColor:eB,backgroundColor:QC};function r6(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function i6(e,t){return{id:t||"root",label:r6(t),tags:e.namespaced?[t6]:[],children:Object.keys(e._children).map(function(r){return i6(e._children[r],t+r+"/")})}}function n6(e,t,r,i){i.includes(r)&&e.push({id:i||"root",label:i.endsWith("/")?i.slice(0,i.length-1):i||"Root",tags:t.namespaced?[t6]:[]}),Object.keys(t._children).forEach(function(a){n6(e,t._children[a],r,i+a+"/")})}function tB(e,t,r){t=r==="root"?t:t[r];var i=Object.keys(t),a={state:Object.keys(e.state).map(function(u){return{key:u,editable:!0,value:e.state[u]}})};if(i.length){var n=rB(t);a.getters=Object.keys(n).map(function(u){return{key:u.endsWith("/")?r6(u):u,editable:!1,value:Ip(function(){return n[u]})}})}return a}function rB(e){var t={};return Object.keys(e).forEach(function(r){var i=r.split("/");if(i.length>1){var a=t,n=i.pop();i.forEach(function(u){a[u]||(a[u]={_custom:{value:{},display:u,tooltip:"Module",abstract:!0}}),a=a[u]._custom.value}),a[n]=Ip(function(){return e[r]})}else t[r]=Ip(function(){return e[r]})}),t}function iB(e,t){var r=t.split("/").filter(function(i){return i});return r.reduce(function(i,a,n){var u=i[a];if(!u)throw new Error('Missing module "'+a+'" for path "'+t+'".');return n===r.length-1?u:u._children},t==="root"?e:e.root._children)}function Ip(e){try{return e()}catch(t){return t}}var ji=function(t,r){this.runtime=r,this._children=Object.create(null),this._rawModule=t;var i=t.state;this.state=(typeof i=="function"?i():i)||{}},o6={namespaced:{configurable:!0}};o6.namespaced.get=function(){return!!this._rawModule.namespaced};ji.prototype.addChild=function(t,r){this._children[t]=r};ji.prototype.removeChild=function(t){delete this._children[t]};ji.prototype.getChild=function(t){return this._children[t]};ji.prototype.hasChild=function(t){return t in this._children};ji.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};ji.prototype.forEachChild=function(t){xa(this._children,t)};ji.prototype.forEachGetter=function(t){this._rawModule.getters&&xa(this._rawModule.getters,t)};ji.prototype.forEachAction=function(t){this._rawModule.actions&&xa(this._rawModule.actions,t)};ji.prototype.forEachMutation=function(t){this._rawModule.mutations&&xa(this._rawModule.mutations,t)};Object.defineProperties(ji.prototype,o6);var Ea=function(t){this.register([],t,!1)};Ea.prototype.get=function(t){return t.reduce(function(r,i){return r.getChild(i)},this.root)};Ea.prototype.getNamespace=function(t){var r=this.root;return t.reduce(function(i,a){return r=r.getChild(a),i+(r.namespaced?a+"/":"")},"")};Ea.prototype.update=function(t){a6([],this.root,t)};Ea.prototype.register=function(t,r,i){var a=this;i===void 0&&(i=!0),s6(t,r);var n=new ji(r,i);if(t.length===0)this.root=n;else{var u=this.get(t.slice(0,-1));u.addChild(t[t.length-1],n)}r.modules&&xa(r.modules,function(c,d){a.register(t.concat(d),c,i)})};Ea.prototype.unregister=function(t){var r=this.get(t.slice(0,-1)),i=t[t.length-1],a=r.getChild(i);if(!a){console.warn("[vuex] trying to unregister module '"+i+"', which is not registered");return}a.runtime&&r.removeChild(i)};Ea.prototype.isRegistered=function(t){var r=this.get(t.slice(0,-1)),i=t[t.length-1];return r?r.hasChild(i):!1};function a6(e,t,r){if(s6(e,r),t.update(r),r.modules)for(var i in r.modules){if(!t.getChild(i)){console.warn("[vuex] trying to add a new module '"+i+"' on hot reloading, manual reload is needed");return}a6(e.concat(i),t.getChild(i),r.modules[i])}}var Ly={assert:function(e){return typeof e=="function"},expected:"function"},nB={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},Ny={getters:Ly,mutations:Ly,actions:nB};function s6(e,t){Object.keys(Ny).forEach(function(r){if(t[r]){var i=Ny[r];xa(t[r],function(a,n){ki(i.assert(a),oB(e,r,n,a,i.expected))})}})}function oB(e,t,r,i,a){var n=t+" should be "+a+' but "'+t+"."+r+'"';return e.length>0&&(n+=' in module "'+e.join(".")+'"'),n+=" is "+JSON.stringify(i)+".",n}function NV(e){return new Gr(e)}var Gr=function e(t){var r=this;t===void 0&&(t={}),ki(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),ki(this instanceof e,"store must be called with the new operator.");var i=t.plugins;i===void 0&&(i=[]);var a=t.strict;a===void 0&&(a=!1);var n=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Ea(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=n;var u=this,c=this,d=c.dispatch,m=c.commit;this.dispatch=function(R,C){return d.call(u,R,C)},this.commit=function(R,C,P){return m.call(u,R,C,P)},this.strict=a;var M=this._modules.root.state;qh(this,M,[],this._modules.root),rg(this,M),i.forEach(function(S){return S(r)})},ng={state:{configurable:!0}};Gr.prototype.install=function(t,r){t.provide(r||UC,this),t.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:!0;i&&JC(t,this)};ng.state.get=function(){return this._state.data};ng.state.set=function(e){ki(!1,"use store.replaceState() to explicit replace store state.")};Gr.prototype.commit=function(t,r,i){var a=this,n=Gl(t,r,i),u=n.type,c=n.payload,d=n.options,m={type:u,payload:c},M=this._mutations[u];if(!M){console.error("[vuex] unknown mutation type: "+u);return}this._withCommit(function(){M.forEach(function(R){R(c)})}),this._subscribers.slice().forEach(function(S){return S(m,a.state)}),d&&d.silent&&console.warn("[vuex] mutation type: "+u+". Silent option has been removed. Use the filter functionality in the vue-devtools")};Gr.prototype.dispatch=function(t,r){var i=this,a=Gl(t,r),n=a.type,u=a.payload,c={type:n,payload:u},d=this._actions[n];if(!d){console.error("[vuex] unknown action type: "+n);return}try{this._actionSubscribers.slice().filter(function(M){return M.before}).forEach(function(M){return M.before(c,i.state)})}catch(M){console.warn("[vuex] error in before action subscribers: "),console.error(M)}var m=d.length>1?Promise.all(d.map(function(M){return M(u)})):d[0](u);return new Promise(function(M,S){m.then(function(R){try{i._actionSubscribers.filter(function(C){return C.after}).forEach(function(C){return C.after(c,i.state)})}catch(C){console.warn("[vuex] error in after action subscribers: "),console.error(C)}M(R)},function(R){try{i._actionSubscribers.filter(function(C){return C.error}).forEach(function(C){return C.error(c,i.state,R)})}catch(C){console.warn("[vuex] error in error action subscribers: "),console.error(C)}S(R)})})};Gr.prototype.subscribe=function(t,r){return J3(t,this._subscribers,r)};Gr.prototype.subscribeAction=function(t,r){var i=typeof t=="function"?{before:t}:t;return J3(i,this._actionSubscribers,r)};Gr.prototype.watch=function(t,r,i){var a=this;return ki(typeof t=="function","store.watch only accepts a function."),lr(function(){return t(a.state,a.getters)},r,Object.assign({},i))};Gr.prototype.replaceState=function(t){var r=this;this._withCommit(function(){r._state.data=t})};Gr.prototype.registerModule=function(t,r,i){i===void 0&&(i={}),typeof t=="string"&&(t=[t]),ki(Array.isArray(t),"module path must be a string or an Array."),ki(t.length>0,"cannot register the root module by using registerModule."),this._modules.register(t,r),qh(this,this.state,t,this._modules.get(t),i.preserveState),rg(this,this.state)};Gr.prototype.unregisterModule=function(t){var r=this;typeof t=="string"&&(t=[t]),ki(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var i=ig(r.state,t.slice(0,-1));delete i[t[t.length-1]]}),Q3(this)};Gr.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),ki(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)};Gr.prototype.hotUpdate=function(t){this._modules.update(t),Q3(this,!0)};Gr.prototype._withCommit=function(t){var r=this._committing;this._committing=!0,t(),this._committing=r};Object.defineProperties(Gr.prototype,ng);function aB(e,t,r){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var n=Array(a);++i<a;)n[i]=e[i+t];return n}var sB=aB,fB=sB;function uB(e,t,r){var i=e.length;return r=r===void 0?i:r,!t&&r>=i?e:fB(e,t,r)}var lB=uB,hB="\\ud800-\\udfff",cB="\\u0300-\\u036f",dB="\\ufe20-\\ufe2f",pB="\\u20d0-\\u20ff",vB=cB+dB+pB,gB="\\ufe0e\\ufe0f",mB="\\u200d",yB=RegExp("["+mB+hB+vB+gB+"]");function bB(e){return yB.test(e)}var f6=bB;function wB(e){return e.split("")}var _B=wB,u6="\\ud800-\\udfff",MB="\\u0300-\\u036f",SB="\\ufe20-\\ufe2f",xB="\\u20d0-\\u20ff",EB=MB+SB+xB,RB="\\ufe0e\\ufe0f",AB="["+u6+"]",Pp="["+EB+"]",Cp="\\ud83c[\\udffb-\\udfff]",TB="(?:"+Pp+"|"+Cp+")",l6="[^"+u6+"]",h6="(?:\\ud83c[\\udde6-\\uddff]){2}",c6="[\\ud800-\\udbff][\\udc00-\\udfff]",OB="\\u200d",d6=TB+"?",p6="["+RB+"]?",IB="(?:"+OB+"(?:"+[l6,h6,c6].join("|")+")"+p6+d6+")*",PB=p6+d6+IB,CB="(?:"+[l6+Pp+"?",Pp,h6,c6,AB].join("|")+")",BB=RegExp(Cp+"(?="+Cp+")|"+CB+PB,"g");function LB(e){return e.match(BB)||[]}var NB=LB,kB=_B,$B=f6,DB=NB;function FB(e){return $B(e)?DB(e):kB(e)}var jB=FB,UB=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,HB=UB,qB=HB,WB=typeof self=="object"&&self&&self.Object===Object&&self,KB=qB||WB||Function("return this")(),VB=KB,zB=VB,GB=zB.Symbol,og=GB;function YB(e,t){for(var r=-1,i=e==null?0:e.length,a=Array(i);++r<i;)a[r]=t(e[r],r,e);return a}var ZB=YB,XB=Array.isArray,JB=XB,ky=og,v6=Object.prototype,QB=v6.hasOwnProperty,eL=v6.toString,uf=ky?ky.toStringTag:void 0;function tL(e){var t=QB.call(e,uf),r=e[uf];try{e[uf]=void 0;var i=!0}catch{}var a=eL.call(e);return i&&(t?e[uf]=r:delete e[uf]),a}var rL=tL,iL=Object.prototype,nL=iL.toString;function oL(e){return nL.call(e)}var aL=oL,$y=og,sL=rL,fL=aL,uL="[object Null]",lL="[object Undefined]",Dy=$y?$y.toStringTag:void 0;function hL(e){return e==null?e===void 0?lL:uL:Dy&&Dy in Object(e)?sL(e):fL(e)}var cL=hL;function dL(e){return e!=null&&typeof e=="object"}var pL=dL,vL=cL,gL=pL,mL="[object Symbol]";function yL(e){return typeof e=="symbol"||gL(e)&&vL(e)==mL}var bL=yL,Fy=og,wL=ZB,_L=JB,ML=bL,SL=1/0,jy=Fy?Fy.prototype:void 0,Uy=jy?jy.toString:void 0;function g6(e){if(typeof e=="string")return e;if(_L(e))return wL(e,g6)+"";if(ML(e))return Uy?Uy.call(e):"";var t=e+"";return t=="0"&&1/e==-SL?"-0":t}var xL=g6,EL=xL;function RL(e){return e==null?"":EL(e)}var Wh=RL,AL=lB,TL=f6,OL=jB,IL=Wh;function PL(e){return function(t){t=IL(t);var r=TL(t)?OL(t):void 0,i=r?r[0]:t.charAt(0),a=r?AL(r,1).join(""):t.slice(1);return i[e]()+a}}var CL=PL,BL=CL,LL=BL("toUpperCase"),m6=LL;const kV=Lo(m6);var NL=Wh,kL=m6;function $L(e){return kL(NL(e).toLowerCase())}var DL=$L;function FL(e,t,r,i){var a=-1,n=e==null?0:e.length;for(i&&n&&(r=e[++a]);++a<n;)r=t(r,e[a],a,e);return r}var jL=FL;function UL(e){return function(t){return e==null?void 0:e[t]}}var HL=UL,qL=HL,WL={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},KL=qL(WL),VL=KL,zL=VL,GL=Wh,YL=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ZL="\\u0300-\\u036f",XL="\\ufe20-\\ufe2f",JL="\\u20d0-\\u20ff",QL=ZL+XL+JL,eN="["+QL+"]",tN=RegExp(eN,"g");function rN(e){return e=GL(e),e&&e.replace(YL,zL).replace(tN,"")}var iN=rN,nN=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function oN(e){return e.match(nN)||[]}var aN=oN,sN=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function fN(e){return sN.test(e)}var uN=fN,y6="\\ud800-\\udfff",lN="\\u0300-\\u036f",hN="\\ufe20-\\ufe2f",cN="\\u20d0-\\u20ff",dN=lN+hN+cN,b6="\\u2700-\\u27bf",w6="a-z\\xdf-\\xf6\\xf8-\\xff",pN="\\xac\\xb1\\xd7\\xf7",vN="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gN="\\u2000-\\u206f",mN=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",_6="A-Z\\xc0-\\xd6\\xd8-\\xde",yN="\\ufe0e\\ufe0f",M6=pN+vN+gN+mN,S6="['’]",Hy="["+M6+"]",bN="["+dN+"]",x6="\\d+",wN="["+b6+"]",E6="["+w6+"]",R6="[^"+y6+M6+x6+b6+w6+_6+"]",_N="\\ud83c[\\udffb-\\udfff]",MN="(?:"+bN+"|"+_N+")",SN="[^"+y6+"]",A6="(?:\\ud83c[\\udde6-\\uddff]){2}",T6="[\\ud800-\\udbff][\\udc00-\\udfff]",qa="["+_6+"]",xN="\\u200d",qy="(?:"+E6+"|"+R6+")",EN="(?:"+qa+"|"+R6+")",Wy="(?:"+S6+"(?:d|ll|m|re|s|t|ve))?",Ky="(?:"+S6+"(?:D|LL|M|RE|S|T|VE))?",O6=MN+"?",I6="["+yN+"]?",RN="(?:"+xN+"(?:"+[SN,A6,T6].join("|")+")"+I6+O6+")*",AN="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",TN="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ON=I6+O6+RN,IN="(?:"+[wN,A6,T6].join("|")+")"+ON,PN=RegExp([qa+"?"+E6+"+"+Wy+"(?="+[Hy,qa,"$"].join("|")+")",EN+"+"+Ky+"(?="+[Hy,qa+qy,"$"].join("|")+")",qa+"?"+qy+"+"+Wy,qa+"+"+Ky,TN,AN,x6,IN].join("|"),"g");function CN(e){return e.match(PN)||[]}var BN=CN,LN=aN,NN=uN,kN=Wh,$N=BN;function DN(e,t,r){return e=kN(e),t=r?void 0:t,t===void 0?NN(e)?$N(e):LN(e):e.match(t)||[]}var FN=DN,jN=jL,UN=iN,HN=FN,qN="['’]",WN=RegExp(qN,"g");function KN(e){return function(t){return jN(HN(UN(t).replace(WN,"")),e,"")}}var VN=KN,zN=DL,GN=VN,YN=GN(function(e,t,r){return t=t.toLowerCase(),e+(r?zN(t):t)}),ZN=YN;const $V=Lo(ZN);/**!
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
+ * @version 1.16.1
+ * @license
+ * Copyright (c) 2016 Federico Zivolo and contributors
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ */var bu=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",XN=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(bu&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function JN(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function QN(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},XN))}}var ek=bu&&window.Promise,tk=ek?JN:QN;function P6(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Ra(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,i=r.getComputedStyle(e,null);return t?i[t]:i}function ag(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function wu(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ra(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(r+a+i)?e:wu(ag(e))}function C6(e){return e&&e.referenceNode?e.referenceNode:e}var Vy=bu&&!!(window.MSInputMethodContext&&document.documentMode),zy=bu&&/MSIE 10/.test(navigator.userAgent);function $s(e){return e===11?Vy:e===10?zy:Vy||zy}function gs(e){if(!e)return document.documentElement;for(var t=$s(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var i=r&&r.nodeName;return!i||i==="BODY"||i==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&Ra(r,"position")==="static"?gs(r):r}function rk(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||gs(e.firstElementChild)===e}function Bp(e){return e.parentNode!==null?Bp(e.parentNode):e}function Yl(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=r?e:t,a=r?t:e,n=document.createRange();n.setStart(i,0),n.setEnd(a,0);var u=n.commonAncestorContainer;if(e!==u&&t!==u||i.contains(a))return rk(u)?u:gs(u);var c=Bp(e);return c.host?Yl(c.host,t):Yl(e,Bp(t).host)}function ms(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",i=e.nodeName;if(i==="BODY"||i==="HTML"){var a=e.ownerDocument.documentElement,n=e.ownerDocument.scrollingElement||a;return n[r]}return e[r]}function ik(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=ms(t,"top"),a=ms(t,"left"),n=r?-1:1;return e.top+=i*n,e.bottom+=i*n,e.left+=a*n,e.right+=a*n,e}function Gy(e,t){var r=t==="x"?"Left":"Top",i=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+i+"Width"])}function Yy(e,t,r,i){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],$s(10)?parseInt(r["offset"+e])+parseInt(i["margin"+(e==="Height"?"Top":"Left")])+parseInt(i["margin"+(e==="Height"?"Bottom":"Right")]):0)}function B6(e){var t=e.body,r=e.documentElement,i=$s(10)&&getComputedStyle(r);return{height:Yy("Height",t,r,i),width:Yy("Width",t,r,i)}}var nk=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ok=function(){function e(t,r){for(var i=0;i<r.length;i++){var a=r[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),ys=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},ci=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e};function Co(e){return ci({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Lp(e){var t={};try{if($s(10)){t=e.getBoundingClientRect();var r=ms(e,"top"),i=ms(e,"left");t.top+=r,t.left+=i,t.bottom+=r,t.right+=i}else t=e.getBoundingClientRect()}catch{}var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},n=e.nodeName==="HTML"?B6(e.ownerDocument):{},u=n.width||e.clientWidth||a.width,c=n.height||e.clientHeight||a.height,d=e.offsetWidth-u,m=e.offsetHeight-c;if(d||m){var M=Ra(e);d-=Gy(M,"x"),m-=Gy(M,"y"),a.width-=d,a.height-=m}return Co(a)}function sg(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=$s(10),a=t.nodeName==="HTML",n=Lp(e),u=Lp(t),c=wu(e),d=Ra(t),m=parseFloat(d.borderTopWidth),M=parseFloat(d.borderLeftWidth);r&&a&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var S=Co({top:n.top-u.top-m,left:n.left-u.left-M,width:n.width,height:n.height});if(S.marginTop=0,S.marginLeft=0,!i&&a){var R=parseFloat(d.marginTop),C=parseFloat(d.marginLeft);S.top-=m-R,S.bottom-=m-R,S.left-=M-C,S.right-=M-C,S.marginTop=R,S.marginLeft=C}return(i&&!r?t.contains(c):t===c&&c.nodeName!=="BODY")&&(S=ik(S,t)),S}function ak(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,i=sg(e,r),a=Math.max(r.clientWidth,window.innerWidth||0),n=Math.max(r.clientHeight,window.innerHeight||0),u=t?0:ms(r),c=t?0:ms(r,"left"),d={top:u-i.top+i.marginTop,left:c-i.left+i.marginLeft,width:a,height:n};return Co(d)}function L6(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Ra(e,"position")==="fixed")return!0;var r=ag(e);return r?L6(r):!1}function N6(e){if(!e||!e.parentElement||$s())return document.documentElement;for(var t=e.parentElement;t&&Ra(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function fg(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,n={top:0,left:0},u=a?N6(e):Yl(e,C6(t));if(i==="viewport")n=ak(u,a);else{var c=void 0;i==="scrollParent"?(c=wu(ag(t)),c.nodeName==="BODY"&&(c=e.ownerDocument.documentElement)):i==="window"?c=e.ownerDocument.documentElement:c=i;var d=sg(c,u,a);if(c.nodeName==="HTML"&&!L6(u)){var m=B6(e.ownerDocument),M=m.height,S=m.width;n.top+=d.top-d.marginTop,n.bottom=M+d.top,n.left+=d.left-d.marginLeft,n.right=S+d.left}else n=d}r=r||0;var R=typeof r=="number";return n.left+=R?r:r.left||0,n.top+=R?r:r.top||0,n.right-=R?r:r.right||0,n.bottom-=R?r:r.bottom||0,n}function sk(e){var t=e.width,r=e.height;return t*r}function k6(e,t,r,i,a){var n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var u=fg(r,i,n,a),c={top:{width:u.width,height:t.top-u.top},right:{width:u.right-t.right,height:u.height},bottom:{width:u.width,height:u.bottom-t.bottom},left:{width:t.left-u.left,height:u.height}},d=Object.keys(c).map(function(R){return ci({key:R},c[R],{area:sk(c[R])})}).sort(function(R,C){return C.area-R.area}),m=d.filter(function(R){var C=R.width,P=R.height;return C>=r.clientWidth&&P>=r.clientHeight}),M=m.length>0?m[0].key:d[0].key,S=e.split("-")[1];return M+(S?"-"+S:"")}function $6(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=i?N6(t):Yl(t,C6(r));return sg(r,a,i)}function D6(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),i=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),a=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),n={width:e.offsetWidth+a,height:e.offsetHeight+i};return n}function Zl(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}function F6(e,t,r){r=r.split("-")[0];var i=D6(e),a={width:i.width,height:i.height},n=["right","left"].indexOf(r)!==-1,u=n?"top":"left",c=n?"left":"top",d=n?"height":"width",m=n?"width":"height";return a[u]=t[u]+t[d]/2-i[d]/2,r===c?a[c]=t[c]-i[m]:a[c]=t[Zl(c)],a}function _u(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function fk(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(a){return a[t]===r});var i=_u(e,function(a){return a[t]===r});return e.indexOf(i)}function j6(e,t,r){var i=r===void 0?e:e.slice(0,fk(e,"name",r));return i.forEach(function(a){a.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=a.function||a.fn;a.enabled&&P6(n)&&(t.offsets.popper=Co(t.offsets.popper),t.offsets.reference=Co(t.offsets.reference),t=n(t,a))}),t}function uk(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=$6(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=k6(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=F6(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=j6(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function U6(e,t){return e.some(function(r){var i=r.name,a=r.enabled;return a&&i===t})}function ug(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var a=t[i],n=a?""+a+r:e;if(typeof document.body.style[n]<"u")return n}return null}function lk(){return this.state.isDestroyed=!0,U6(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ug("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function H6(e){var t=e.ownerDocument;return t?t.defaultView:window}function q6(e,t,r,i){var a=e.nodeName==="BODY",n=a?e.ownerDocument.defaultView:e;n.addEventListener(t,r,{passive:!0}),a||q6(wu(n.parentNode),t,r,i),i.push(n)}function hk(e,t,r,i){r.updateBound=i,H6(e).addEventListener("resize",r.updateBound,{passive:!0});var a=wu(e);return q6(a,"scroll",r.updateBound,r.scrollParents),r.scrollElement=a,r.eventsEnabled=!0,r}function ck(){this.state.eventsEnabled||(this.state=hk(this.reference,this.options,this.state,this.scheduleUpdate))}function dk(e,t){return H6(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(r){r.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function pk(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=dk(this.reference,this.state))}function lg(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Np(e,t){Object.keys(t).forEach(function(r){var i="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&lg(t[r])&&(i="px"),e.style[r]=t[r]+i})}function vk(e,t){Object.keys(t).forEach(function(r){var i=t[r];i!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function gk(e){return Np(e.instance.popper,e.styles),vk(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Np(e.arrowElement,e.arrowStyles),e}function mk(e,t,r,i,a){var n=$6(a,t,e,r.positionFixed),u=k6(r.placement,n,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",u),Np(t,{position:r.positionFixed?"fixed":"absolute"}),r}function yk(e,t){var r=e.offsets,i=r.popper,a=r.reference,n=Math.round,u=Math.floor,c=function(I){return I},d=n(a.width),m=n(i.width),M=["left","right"].indexOf(e.placement)!==-1,S=e.placement.indexOf("-")!==-1,R=d%2===m%2,C=d%2===1&&m%2===1,P=t?M||S||R?n:u:c,k=t?n:c;return{left:P(C&&!S&&t?i.left-1:i.left),top:k(i.top),bottom:k(i.bottom),right:P(i.right)}}var bk=bu&&/Firefox/i.test(navigator.userAgent);function wk(e,t){var r=t.x,i=t.y,a=e.offsets.popper,n=_u(e.instance.modifiers,function(H){return H.name==="applyStyle"}).gpuAcceleration;n!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var u=n!==void 0?n:t.gpuAcceleration,c=gs(e.instance.popper),d=Lp(c),m={position:a.position},M=yk(e,window.devicePixelRatio<2||!bk),S=r==="bottom"?"top":"bottom",R=i==="right"?"left":"right",C=ug("transform"),P=void 0,k=void 0;if(S==="bottom"?c.nodeName==="HTML"?k=-c.clientHeight+M.bottom:k=-d.height+M.bottom:k=M.top,R==="right"?c.nodeName==="HTML"?P=-c.clientWidth+M.right:P=-d.width+M.right:P=M.left,u&&C)m[C]="translate3d("+P+"px, "+k+"px, 0)",m[S]=0,m[R]=0,m.willChange="transform";else{var L=S==="bottom"?-1:1,I=R==="right"?-1:1;m[S]=k*L,m[R]=P*I,m.willChange=S+", "+R}var B={"x-placement":e.placement};return e.attributes=ci({},B,e.attributes),e.styles=ci({},m,e.styles),e.arrowStyles=ci({},e.offsets.arrow,e.arrowStyles),e}function W6(e,t,r){var i=_u(e,function(c){var d=c.name;return d===t}),a=!!i&&e.some(function(c){return c.name===r&&c.enabled&&c.order<i.order});if(!a){var n="`"+t+"`",u="`"+r+"`";console.warn(u+" modifier is required by "+n+" modifier in order to work, be sure to include it before "+n+"!")}return a}function _k(e,t){var r;if(!W6(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if(typeof i=="string"){if(i=e.instance.popper.querySelector(i),!i)return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var a=e.placement.split("-")[0],n=e.offsets,u=n.popper,c=n.reference,d=["left","right"].indexOf(a)!==-1,m=d?"height":"width",M=d?"Top":"Left",S=M.toLowerCase(),R=d?"left":"top",C=d?"bottom":"right",P=D6(i)[m];c[C]-P<u[S]&&(e.offsets.popper[S]-=u[S]-(c[C]-P)),c[S]+P>u[C]&&(e.offsets.popper[S]+=c[S]+P-u[C]),e.offsets.popper=Co(e.offsets.popper);var k=c[S]+c[m]/2-P/2,L=Ra(e.instance.popper),I=parseFloat(L["margin"+M]),B=parseFloat(L["border"+M+"Width"]),H=k-e.offsets.popper[S]-I-B;return H=Math.max(Math.min(u[m]-P,H),0),e.arrowElement=i,e.offsets.arrow=(r={},ys(r,S,Math.round(H)),ys(r,R,""),r),e}function Mk(e){return e==="end"?"start":e==="start"?"end":e}var K6=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Cd=K6.slice(3);function Zy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Cd.indexOf(e),i=Cd.slice(r+1).concat(Cd.slice(0,r));return t?i.reverse():i}var Bd={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Sk(e,t){if(U6(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=fg(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],a=Zl(i),n=e.placement.split("-")[1]||"",u=[];switch(t.behavior){case Bd.FLIP:u=[i,a];break;case Bd.CLOCKWISE:u=Zy(i);break;case Bd.COUNTERCLOCKWISE:u=Zy(i,!0);break;default:u=t.behavior}return u.forEach(function(c,d){if(i!==c||u.length===d+1)return e;i=e.placement.split("-")[0],a=Zl(i);var m=e.offsets.popper,M=e.offsets.reference,S=Math.floor,R=i==="left"&&S(m.right)>S(M.left)||i==="right"&&S(m.left)<S(M.right)||i==="top"&&S(m.bottom)>S(M.top)||i==="bottom"&&S(m.top)<S(M.bottom),C=S(m.left)<S(r.left),P=S(m.right)>S(r.right),k=S(m.top)<S(r.top),L=S(m.bottom)>S(r.bottom),I=i==="left"&&C||i==="right"&&P||i==="top"&&k||i==="bottom"&&L,B=["top","bottom"].indexOf(i)!==-1,H=!!t.flipVariations&&(B&&n==="start"&&C||B&&n==="end"&&P||!B&&n==="start"&&k||!B&&n==="end"&&L),F=!!t.flipVariationsByContent&&(B&&n==="start"&&P||B&&n==="end"&&C||!B&&n==="start"&&L||!B&&n==="end"&&k),W=H||F;(R||I||W)&&(e.flipped=!0,(R||I)&&(i=u[d+1]),W&&(n=Mk(n)),e.placement=i+(n?"-"+n:""),e.offsets.popper=ci({},e.offsets.popper,F6(e.instance.popper,e.offsets.reference,e.placement)),e=j6(e.instance.modifiers,e,"flip"))}),e}function xk(e){var t=e.offsets,r=t.popper,i=t.reference,a=e.placement.split("-")[0],n=Math.floor,u=["top","bottom"].indexOf(a)!==-1,c=u?"right":"bottom",d=u?"left":"top",m=u?"width":"height";return r[c]<n(i[d])&&(e.offsets.popper[d]=n(i[d])-r[m]),r[d]>n(i[c])&&(e.offsets.popper[d]=n(i[c])),e}function Ek(e,t,r,i){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),n=+a[1],u=a[2];if(!n)return e;if(u.indexOf("%")===0){var c=void 0;switch(u){case"%p":c=r;break;case"%":case"%r":default:c=i}var d=Co(c);return d[t]/100*n}else if(u==="vh"||u==="vw"){var m=void 0;return u==="vh"?m=Math.max(document.documentElement.clientHeight,window.innerHeight||0):m=Math.max(document.documentElement.clientWidth,window.innerWidth||0),m/100*n}else return n}function Rk(e,t,r,i){var a=[0,0],n=["right","left"].indexOf(i)!==-1,u=e.split(/(\+|\-)/).map(function(M){return M.trim()}),c=u.indexOf(_u(u,function(M){return M.search(/,|\s/)!==-1}));u[c]&&u[c].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var d=/\s*,\s*|\s+/,m=c!==-1?[u.slice(0,c).concat([u[c].split(d)[0]]),[u[c].split(d)[1]].concat(u.slice(c+1))]:[u];return m=m.map(function(M,S){var R=(S===1?!n:n)?"height":"width",C=!1;return M.reduce(function(P,k){return P[P.length-1]===""&&["+","-"].indexOf(k)!==-1?(P[P.length-1]=k,C=!0,P):C?(P[P.length-1]+=k,C=!1,P):P.concat(k)},[]).map(function(P){return Ek(P,R,t,r)})}),m.forEach(function(M,S){M.forEach(function(R,C){lg(R)&&(a[S]+=R*(M[C-1]==="-"?-1:1))})}),a}function Ak(e,t){var r=t.offset,i=e.placement,a=e.offsets,n=a.popper,u=a.reference,c=i.split("-")[0],d=void 0;return lg(+r)?d=[+r,0]:d=Rk(r,n,u,c),c==="left"?(n.top+=d[0],n.left-=d[1]):c==="right"?(n.top+=d[0],n.left+=d[1]):c==="top"?(n.left+=d[0],n.top-=d[1]):c==="bottom"&&(n.left+=d[0],n.top+=d[1]),e.popper=n,e}function Tk(e,t){var r=t.boundariesElement||gs(e.instance.popper);e.instance.reference===r&&(r=gs(r));var i=ug("transform"),a=e.instance.popper.style,n=a.top,u=a.left,c=a[i];a.top="",a.left="",a[i]="";var d=fg(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);a.top=n,a.left=u,a[i]=c,t.boundaries=d;var m=t.priority,M=e.offsets.popper,S={primary:function(C){var P=M[C];return M[C]<d[C]&&!t.escapeWithReference&&(P=Math.max(M[C],d[C])),ys({},C,P)},secondary:function(C){var P=C==="right"?"left":"top",k=M[P];return M[C]>d[C]&&!t.escapeWithReference&&(k=Math.min(M[P],d[C]-(C==="right"?M.width:M.height))),ys({},P,k)}};return m.forEach(function(R){var C=["left","top"].indexOf(R)!==-1?"primary":"secondary";M=ci({},M,S[C](R))}),e.offsets.popper=M,e}function Ok(e){var t=e.placement,r=t.split("-")[0],i=t.split("-")[1];if(i){var a=e.offsets,n=a.reference,u=a.popper,c=["bottom","top"].indexOf(r)!==-1,d=c?"left":"top",m=c?"width":"height",M={start:ys({},d,n[d]),end:ys({},d,n[d]+n[m]-u[m])};e.offsets.popper=ci({},u,M[i])}return e}function Ik(e){if(!W6(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=_u(e.instance.modifiers,function(i){return i.name==="preventOverflow"}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function Pk(e){var t=e.placement,r=t.split("-")[0],i=e.offsets,a=i.popper,n=i.reference,u=["left","right"].indexOf(r)!==-1,c=["top","left"].indexOf(r)===-1;return a[u?"left":"top"]=n[r]-(c?a[u?"width":"height"]:0),e.placement=Zl(t),e.offsets.popper=Co(a),e}var Ck={shift:{order:100,enabled:!0,fn:Ok},offset:{order:200,enabled:!0,fn:Ak,offset:0},preventOverflow:{order:300,enabled:!0,fn:Tk,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:xk},arrow:{order:500,enabled:!0,fn:_k,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:Sk,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Pk},hide:{order:800,enabled:!0,fn:Ik},computeStyle:{order:850,enabled:!0,fn:wk,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:gk,onLoad:mk,gpuAcceleration:void 0}},Bk={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ck},Kh=function(){function e(t,r){var i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};nk(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=tk(this.update.bind(this)),this.options=ci({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(ci({},e.Defaults.modifiers,a.modifiers)).forEach(function(u){i.options.modifiers[u]=ci({},e.Defaults.modifiers[u]||{},a.modifiers?a.modifiers[u]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(u){return ci({name:u},i.options.modifiers[u])}).sort(function(u,c){return u.order-c.order}),this.modifiers.forEach(function(u){u.enabled&&P6(u.onLoad)&&u.onLoad(i.reference,i.popper,i.options,u,i.state)}),this.update();var n=this.options.eventsEnabled;n&&this.enableEventListeners(),this.state.eventsEnabled=n}return ok(e,[{key:"update",value:function(){return uk.call(this)}},{key:"destroy",value:function(){return lk.call(this)}},{key:"enableEventListeners",value:function(){return ck.call(this)}},{key:"disableEventListeners",value:function(){return pk.call(this)}}]),e}();Kh.Utils=(typeof window<"u"?window:ho).PopperUtils;Kh.placements=K6;Kh.Defaults=Bk;const Lk=Object.freeze(Object.defineProperty({__proto__:null,default:Kh},Symbol.toStringTag,{value:"Module"})),DV=tv(Lk);const Nk=Bs({name:"my-table",emits:["return-checked-rows","do-search","is-finished","get-now-page","row-clicked","row-toggled"],props:{isLoading:{type:Boolean,require:!0},isReSearch:{type:Boolean,require:!0},hasCheckbox:{type:Boolean,default:!1},checkedReturnType:{type:String,default:"key"},title:{type:String,default:""},isFixedFirstColumn:{type:Boolean,default:!1},columns:{type:Array,default:()=>[]},rows:{type:Array,default:()=>[]},rowClasses:{type:[Array,Function],default:()=>[]},pageSize:{type:Number,default:10},total:{type:Number,default:100},page:{type:Number,default:1},sortable:{type:Object,default:()=>({order:"id",sort:"asc"})},messages:{type:Object,default:()=>({pagingInfo:"Showing {0}-{1} of {2}",pageSizeChangeLabel:"Row count:",gotoPageLabel:"Go to page:",noDataAvailable:"No data"})},isStaticMode:{type:Boolean,default:!1},isSlotMode:{type:Boolean,default:!1},isHidePaging:{type:Boolean,default:!1},pageOptions:{type:Array,default:()=>[{value:10,text:10},{value:25,text:25},{value:50,text:50}]},groupingKey:{type:String,default:""},hasGroupToggle:{type:Boolean,default:!1},groupingDisplay:{type:Function,default:null},maxHeight:{default:"auto"},startCollapsed:{type:Boolean,default:!1},isKeepCollapsed:{type:Boolean,default:!1}},setup(e,{emit:t,slots:r}){let i=mr(null),a=e.pageOptions.length>0?mr(e.pageOptions[0].value):mr(e.pageSize);e.pageOptions.length>0&&e.pageOptions.forEach(oe=>{Object.prototype.hasOwnProperty.call(oe,"value")&&Object.prototype.hasOwnProperty.call(oe,"text")&&e.pageSize==oe.value&&(a.value=oe.value)});const n=No({isSlotMode:e.isSlotMode,isCheckAll:!1,isHidePaging:e.isHidePaging,keyColumn:Qt(()=>{let oe="";return Object.assign(e.columns).forEach(_=>{_.isKey&&(oe=_.field)}),oe}),page:e.page,pageSize:a.value,maxPage:Qt(()=>{if(e.total<=0)return 0;let oe=Math.floor(e.total/n.pageSize);return e.total%n.pageSize>0&&oe++,oe}),offset:Qt(()=>(n.page-1)*n.pageSize+1),limit:Qt(()=>{let oe=n.page*n.pageSize;return e.total>=oe?oe:e.total}),paging:Qt(()=>{let oe=n.page-2<=0?1:n.page-2;n.maxPage-n.page<=2&&(oe=n.maxPage-4),oe=oe<=0?1:oe;let _=[];for(let o=oe;o<=n.maxPage;o++)_.length<5&&_.push(o);return _}),order:e.sortable.order,sort:e.sortable.sort,pageOptions:e.pageOptions}),u=mr([]),c=Qt(()=>{let oe=e.rows;var _=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});let o=n.sort==="desc"?-1:1;oe.sort(function(l,h){return _.compare(l[n.order],h[n.order])*o});let f=null;if(e.groupingKey){let l={};oe.forEach(h=>{l[h[e.groupingKey]]||(l[h[e.groupingKey]]=[]),l[h[e.groupingKey]].push(h)}),f={};for(let h=n.offset-1;h<n.limit;h++)f[oe[h][e.groupingKey]]=l[oe[h][e.groupingKey]]}else{f=[];for(let l=n.offset-1;l<n.limit;l++)f.push(oe[l])}return uo(function(){B()}),f}),d=mr([]);Rv(()=>{d.value=[]}),lr(()=>n.isCheckAll,oe=>{if(e.hasCheckbox){if(u.value=[],oe){let _=e.isStaticMode?e.rows.slice(n.offset-1,n.limit):e.rows;e.checkedReturnType=="row"?u.value=_:_.forEach(o=>{u.value.push(o[n.keyColumn])})}d.value.forEach(_=>{_&&(_.checked=oe)}),t("return-checked-rows",u.value)}}),lr(()=>e.hasCheckbox,oe=>{oe||(n.isCheckAll=!1)});const m=(oe,_)=>{_.stopPropagation();let o=oe[n.keyColumn];if(e.checkedReturnType=="row"&&(o=oe),_.target.checked)u.value.push(o);else{const f=u.value.indexOf(o);f>=0&&u.value.splice(f,1)}u.value.length==e.rows.length?n.isCheckAll=!0:t("return-checked-rows",u.value)},M=()=>{u.value=[],d.value.forEach(oe=>{oe&&oe.checked&&(oe.checked=!1)}),t("return-checked-rows",u.value)},S=oe=>{let _="asc";oe==n.order&&n.sort=="asc"&&(_="desc");let o=(n.page-1)*n.pageSize,f=n.pageSize;n.order=oe,n.sort=_,t("do-search",o,f,oe,_),n.isCheckAll?n.isCheckAll=!1:e.hasCheckbox&&M()},R=(oe,_)=>{n.isCheckAll=!1,e.hasCheckbox&&(u.value=[]);let o=n.order,f=n.sort,l=(oe-1)*n.pageSize,h=n.pageSize;(!e.isReSearch||oe>1||oe==_)&&t("do-search",l,h,o,f)};lr(()=>n.page,R),lr(()=>e.page,oe=>{oe<=1?(n.page=1,t("get-now-page",n.page)):oe>=n.maxPage?(n.page=n.maxPage,t("get-now-page",n.page)):n.page=oe}),lr(()=>n.pageSize,()=>{n.page===1?R(n.page,n.page):(n.page=1,n.isCheckAll=!1)}),lr(()=>e.pageSize,oe=>{n.pageSize=oe});const P=()=>{if(n.page==1)return!1;n.page--},k=oe=>{n.page=oe},L=()=>{if(n.page>=n.maxPage)return!1;n.page++};lr(()=>e.rows,()=>{(e.isReSearch||e.isStaticMode)&&(n.page=1),uo(function(){e.isStaticMode||B()})});const I=(oe,..._)=>oe.replace(/{(\d+)}/g,function(o,f){return typeof _[f]<"u"?_[f]:o}),B=()=>{if(i.value){let oe=i.value.getElementsByClassName("is-rows-el");t("is-finished",oe)}t("get-now-page",n.page)},H=mr({}),F=mr({}),W=mr({}),Y=Qt(()=>{let oe={};return e.rows.forEach(_=>{oe[_[e.groupingKey]]||(oe[_[e.groupingKey]]=[]),oe[_[e.groupingKey]].push(_)}),uo(function(){if(e.startCollapsed||e.isKeepCollapsed){for(const[_,o]of Object.entries(H.value))if(o){let f=!e.startCollapsed;e.isKeepCollapsed&&W.value[_]!==void 0&&(f=!W.value[_]),(f&&o.parentElement.classList.contains("rotated-90")||!f&&!o.parentElement.classList.contains("rotated-90"))&&o.parentElement.classList.toggle("rotated-90"),f||F.value[_].forEach(l=>{l&&l.classList.add("hidden")})}}B()}),oe}),ie=oe=>{let _=H.value[oe];if(_){_.parentElement.classList.toggle("rotated-90");const o=_.parentElement.classList.contains("rotated-90");F.value[oe].forEach(f=>{f&&(o?f.classList.add("hidden"):f.classList.remove("hidden"))}),W.value[oe]=o,t("row-toggled",Y.value[oe],o)}},J=oe=>{oe.target.classList.add("hover")},V=oe=>{oe.target.classList.remove("hover")};return Ns(()=>{uo(()=>{e.rows.length>0&&B()})}),{slots:r,localTable:i,localRows:c,setting:n,rowCheckbox:d,checked:m,clearChecked:M,doSort:S,prevPage:P,movePage:k,nextPage:L,stringFormat:I,toggleButtonRefs:H,groupingRowsRefs:F,groupingRows:Y,toggleGroup:ie,addHoverClassToTr:J,removeHoverClassFromTr:V}}}),Gn=e=>(_2("data-v-30c302e9"),e=e(),M2(),e),kk={class:"vtl vtl-card"},$k={key:0,class:"vtl-card-title"},Dk={class:"vtl-card-body"},Fk={class:"vtl-row"},jk={key:0,class:"vtl-loading-mask"},Uk=Gn(()=>Je("div",{class:"vtl-loading-content"},[Je("span",{style:{color:"white"}},"Loading...")],-1)),Hk=[Uk],qk={class:"vtl-thead"},Wk={class:"vtl-thead-tr"},Kk={key:0,class:"vtl-thead-th vtl-checkbox-th"},Vk=["onClick"],zk=["set"],Gk={key:0,class:"vtl-tbody-tr vtl-group-tr"},Yk=["colspan"],Zk={class:"flex"},Xk={key:0,class:"animation"},Jk=["onClick"],Qk=["innerHTML"],e$=["name","onClick"],t$={key:0,class:"vtl-tbody-td vtl-checkbox-td"},r$=["value","onClick"],i$=["innerHTML"],n$={key:1},o$={key:0},a$={key:1},s$=["set"],f$={key:0,class:"vtl-tbody-tr vtl-group-tr"},u$=["colspan"],l$={class:"flex"},h$={key:0,class:"animation"},c$=["onClick"],d$=["innerHTML"],p$=["name","onClick"],v$={key:0,class:"vtl-tbody-td vtl-checkbox-td"},g$=["value","onClick"],m$=["innerHTML"],y$={key:1},b$={key:0},w$={key:1},_$={key:0,class:"vtl-paging vtl-row"},M$={class:"vtl-paging-info col-sm-12 col-md-4"},S$={role:"status","aria-live":"polite"},x$={class:"vtl-paging-change-div col-sm-12 col-md-4"},E$={class:"vtl-paging-count-label"},R$=["value"],A$={class:"vtl-paging-page-label"},T$=["value"],O$={class:"vtl-paging-pagination-div col-sm-12 col-md-4"},I$={class:"dataTables_paginate"},P$={class:"vtl-paging-pagination-ul vtl-pagination"},C$=Gn(()=>Je("span",{"aria-hidden":"true"},"«",-1)),B$=Gn(()=>Je("span",{class:"sr-only"},"First",-1)),L$=[C$,B$],N$=Gn(()=>Je("span",{"aria-hidden":"true"},"<",-1)),k$=Gn(()=>Je("span",{class:"sr-only"},"Prev",-1)),$$=[N$,k$],D$=["onClick"],F$=Gn(()=>Je("span",{"aria-hidden":"true"},">",-1)),j$=Gn(()=>Je("span",{class:"sr-only"},"Next",-1)),U$=[F$,j$],H$=Gn(()=>Je("span",{"aria-hidden":"true"},"»",-1)),q$=Gn(()=>Je("span",{class:"sr-only"},"Last",-1)),W$=[H$,q$],K$={key:1,class:"vtl-row"},V$={class:"vtl-empty-msg col-sm-12 text-center"};function z$(e,t,r,i,a,n){return tt(),ft("div",kk,[e.title?(tt(),ft("div",$k,si(e.title),1)):fi("v-if",!0),Je("div",Dk,[Je("div",Fk,[Je("div",{class:vr(["col-sm-12",{"fixed-first-column":e.isFixedFirstColumn,"fixed-first-second-column":e.isFixedFirstColumn&&e.hasCheckbox}])},[e.isLoading?(tt(),ft("div",jk,Hk)):fi("v-if",!0),Je("table",{class:"vtl-table vtl-table-hover vtl-table-bordered vtl-table-responsive vtl-table-responsive-sm",ref:"localTable",style:Pn("max-height: "+e.maxHeight+"px;")},[Je("thead",qk,[Je("tr",Wk,[e.hasCheckbox?(tt(),ft("th",Kk,[Je("div",null,[nl(Je("input",{type:"checkbox",class:"vtl-thead-checkbox","onUpdate:modelValue":t[0]||(t[0]=u=>e.setting.isCheckAll=u)},null,512),[[Rh,e.setting.isCheckAll]])])])):fi("v-if",!0),(tt(!0),ft(Lt,null,Ii(e.columns,(u,c)=>(tt(),ft("th",{class:vr(["vtl-thead-th",u.headerClasses]),key:c,style:Pn(Object.assign({width:u.width?u.width:"auto"},u.headerStyles))},[Je("div",{class:vr(["vtl-thead-column",{"vtl-sortable":u.sortable,"vtl-both":u.sortable,"vtl-asc":e.setting.order===u.field&&e.setting.sort==="asc","vtl-desc":e.setting.order===u.field&&e.setting.sort==="desc"}]),onClick:Mn(d=>u.sortable?e.doSort(u.field):!1,["prevent"])},si(u.label),11,Vk)],6))),128))])]),e.rows.length>0?(tt(),ft(Lt,{key:0},[e.isStaticMode?(tt(),ft("tbody",{key:0,class:"vtl-tbody",set:e.templateRows=e.groupingKey==""?[e.localRows]:e.localRows},[(tt(!0),ft(Lt,null,Ii(e.templateRows,(u,c)=>(tt(),ft(Lt,{key:c},[e.groupingKey!=""?(tt(),ft("tr",Gk,[Je("td",{colspan:e.hasCheckbox?e.columns.length+1:e.columns.length,class:"vtl-tbody-td vtl-group-td"},[Je("div",Zk,[e.hasGroupToggle?(tt(),ft("div",Xk,[Je("a",{ref_for:!0,ref:d=>e.toggleButtonRefs[c]=d,class:"cursor-pointer",onClick:Mn(d=>e.toggleGroup(c),["prevent"])},"▼",8,Jk)])):fi("v-if",!0),Je("div",{class:"ml-2",innerHTML:e.groupingDisplay?e.groupingDisplay(c):c},null,8,Qk)])],8,Yk)])):fi("v-if",!0),(tt(!0),ft(Lt,null,Ii(u,(d,m)=>(tt(),ft("tr",{key:d[e.setting.keyColumn]?d[e.setting.keyColumn]:m,ref_for:!0,ref:M=>{e.groupingRowsRefs[c]||(e.groupingRowsRefs[c]=[]),e.groupingRowsRefs[c][m]=M},name:"vtl-group-"+c,class:vr(["vtl-tbody-tr",typeof e.rowClasses=="function"?e.rowClasses(d):e.rowClasses]),onMouseenter:t[1]||(t[1]=(...M)=>e.addHoverClassToTr&&e.addHoverClassToTr(...M)),onMouseleave:t[2]||(t[2]=(...M)=>e.removeHoverClassFromTr&&e.removeHoverClassFromTr(...M)),onClick:M=>e.$emit("row-clicked",d)},[e.hasCheckbox?(tt(),ft("td",t$,[Je("div",null,[Je("input",{type:"checkbox",class:"vtl-tbody-checkbox",ref_for:!0,ref:M=>{e.rowCheckbox.push(M)},value:d[e.setting.keyColumn],onClick:M=>e.checked(d,M)},null,8,r$)])])):fi("v-if",!0),(tt(!0),ft(Lt,null,Ii(e.columns,(M,S)=>(tt(),ft("td",{key:S,class:vr(["vtl-tbody-td",M.columnClasses]),style:Pn(M.columnStyles)},[M.display?(tt(),ft("div",{key:0,innerHTML:M.display(d)},null,8,i$)):(tt(),ft("div",n$,[e.setting.isSlotMode&&e.slots[M.field]?(tt(),ft("div",o$,[j0(e.$slots,M.field,{value:d},void 0,!0)])):(tt(),ft("span",a$,si(d[M.field]),1))]))],6))),128))],42,e$))),128))],64))),128))],8,zk)):(tt(),ft("tbody",{key:1,set:e.templateRows=e.groupingKey==""?[e.rows]:e.groupingRows},[(tt(!0),ft(Lt,null,Ii(e.templateRows,(u,c)=>(tt(),ft(Lt,{key:c},[e.groupingKey!=""?(tt(),ft("tr",f$,[Je("td",{colspan:e.hasCheckbox?e.columns.length+1:e.columns.length,class:"vtl-tbody-td vtl-group-td"},[Je("div",l$,[e.hasGroupToggle?(tt(),ft("div",h$,[Je("a",{ref_for:!0,ref:d=>e.toggleButtonRefs[c]=d,class:"cursor-pointer",onClick:Mn(d=>e.toggleGroup(c),["prevent"])},"▼",8,c$)])):fi("v-if",!0),Je("div",{class:"ml-2",innerHTML:e.groupingDisplay?e.groupingDisplay(c):c},null,8,d$)])],8,u$)])):fi("v-if",!0),(tt(!0),ft(Lt,null,Ii(u,(d,m)=>(tt(),ft("tr",{ref_for:!0,ref:M=>{e.groupingRowsRefs[c]||(e.groupingRowsRefs[c]=[]),e.groupingRowsRefs[c][m]=M},name:"vtl-group-"+c,key:d[e.setting.keyColumn]?d[e.setting.keyColumn]:m,class:vr(["vtl-tbody-tr",typeof e.rowClasses=="function"?e.rowClasses(d):e.rowClasses]),onMouseenter:t[3]||(t[3]=(...M)=>e.addHoverClassToTr&&e.addHoverClassToTr(...M)),onMouseleave:t[4]||(t[4]=(...M)=>e.removeHoverClassFromTr&&e.removeHoverClassFromTr(...M)),onClick:M=>e.$emit("row-clicked",d)},[e.hasCheckbox?(tt(),ft("td",v$,[Je("div",null,[Je("input",{type:"checkbox",class:"vtl-tbody-checkbox",ref_for:!0,ref:M=>{e.rowCheckbox.push(M)},value:d[e.setting.keyColumn],onClick:M=>e.checked(d,M)},null,8,g$)])])):fi("v-if",!0),(tt(!0),ft(Lt,null,Ii(e.columns,(M,S)=>(tt(),ft("td",{key:S,class:vr(["vtl-tbody-td",M.columnClasses]),style:Pn(M.columnStyles)},[M.display?(tt(),ft("div",{key:0,innerHTML:M.display(d)},null,8,m$)):(tt(),ft("div",y$,[e.setting.isSlotMode&&e.slots[M.field]?(tt(),ft("div",b$,[j0(e.$slots,M.field,{value:d},void 0,!0)])):(tt(),ft("span",w$,si(d[M.field]),1))]))],6))),128))],42,p$))),128))],64))),128))],8,s$))],64)):fi("v-if",!0)],4)],2)]),e.rows.length>0?(tt(),ft("div",_$,[e.setting.isHidePaging?fi("v-if",!0):(tt(),ft(Lt,{key:0},[Je("div",M$,[Je("div",S$,si(e.stringFormat(e.messages.pagingInfo,e.setting.offset,e.setting.limit,e.total)),1)]),Je("div",x$,[Je("span",E$,si(e.messages.pageSizeChangeLabel),1),nl(Je("select",{class:"vtl-paging-count-dropdown","onUpdate:modelValue":t[5]||(t[5]=u=>e.setting.pageSize=u)},[(tt(!0),ft(Lt,null,Ii(e.pageOptions,u=>(tt(),ft("option",{value:u.value,key:u.value},si(u.text),9,R$))),128))],512),[[Dl,e.setting.pageSize]]),Je("span",A$,si(e.messages.gotoPageLabel),1),nl(Je("select",{class:"vtl-paging-page-dropdown","onUpdate:modelValue":t[6]||(t[6]=u=>e.setting.page=u)},[(tt(!0),ft(Lt,null,Ii(e.setting.maxPage,u=>(tt(),ft("option",{key:u,value:parseInt(u)},si(u),9,T$))),128))],512),[[Dl,e.setting.page]])]),Je("div",O$,[Je("div",I$,[Je("ul",P$,[Je("li",{class:vr(["vtl-paging-pagination-page-li vtl-paging-pagination-page-li-first page-item",{disabled:e.setting.page<=1}])},[Je("a",{class:"vtl-paging-pagination-page-link vtl-paging-pagination-page-link-first page-link cursor-pointer","aria-label":"Previous",onClick:t[7]||(t[7]=Mn(u=>e.setting.page=1,["prevent"]))},L$)],2),Je("li",{class:vr(["vtl-paging-pagination-page-li vtl-paging-pagination-page-li-prev page-item",{disabled:e.setting.page<=1}])},[Je("a",{class:"vtl-paging-pagination-page-link vtl-paging-pagination-page-link-prev page-link cursor-pointer","aria-label":"Previous",onClick:t[8]||(t[8]=Mn((...u)=>e.prevPage&&e.prevPage(...u),["prevent"]))},$$)],2),(tt(!0),ft(Lt,null,Ii(e.setting.paging,u=>(tt(),ft("li",{class:vr(["vtl-paging-pagination-page-li vtl-paging-pagination-page-li-number page-item",{disabled:e.setting.page===u}]),key:u},[Je("a",{class:"vtl-paging-pagination-page-link vtl-paging-pagination-page-link-number page-link cursor-pointer",onClick:Mn(c=>e.movePage(u),["prevent"])},si(u),9,D$)],2))),128)),Je("li",{class:vr(["vtl-paging-pagination-page-li vtl-paging-pagination-page-li-next page-item",{disabled:e.setting.page>=e.setting.maxPage}])},[Je("a",{class:"vtl-paging-pagination-page-link vtl-paging-pagination-page-link-next page-link cursor-pointer","aria-label":"Next",onClick:t[9]||(t[9]=Mn((...u)=>e.nextPage&&e.nextPage(...u),["prevent"]))},U$)],2),Je("li",{class:vr(["vtl-paging-pagination-page-li vtl-paging-pagination-page-li-last page-item",{disabled:e.setting.page>=e.setting.maxPage}])},[Je("a",{class:"vtl-paging-pagination-page-link vtl-paging-pagination-page-link-last page-link cursor-pointer","aria-label":"Next",onClick:t[10]||(t[10]=Mn(u=>e.setting.page=e.setting.maxPage,["prevent"]))},W$)],2)])])])],64))])):(tt(),ft("div",K$,[Je("div",V$,si(e.messages.noDataAvailable),1)]))])])}const FV=zR(Nk,[["render",z$],["__scopeId","data-v-30c302e9"],["__file","/opt/openWB-dev/openwb-ui-settings/node_modules/vue3-table-lite/src/components/TableLite.vue"]]);/*!
+ * @kurkle/color v0.3.2
+ * https://github.com/kurkle/color#readme
+ * (c) 2023 Jukka Kurkela
+ * Released under the MIT License
+ */function Mu(e){return e+.5|0}const lo=(e,t,r)=>Math.max(Math.min(e,r),t);function Sf(e){return lo(Mu(e*2.55),0,255)}function bo(e){return lo(Mu(e*255),0,255)}function An(e){return lo(Mu(e/2.55)/100,0,1)}function Xy(e){return lo(Mu(e*100),0,100)}const oi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},kp=[..."0123456789ABCDEF"],G$=e=>kp[e&15],Y$=e=>kp[(e&240)>>4]+kp[e&15],Gu=e=>(e&240)>>4===(e&15),Z$=e=>Gu(e.r)&&Gu(e.g)&&Gu(e.b)&&Gu(e.a);function X$(e){var t=e.length,r;return e[0]==="#"&&(t===4||t===5?r={r:255&oi[e[1]]*17,g:255&oi[e[2]]*17,b:255&oi[e[3]]*17,a:t===5?oi[e[4]]*17:255}:(t===7||t===9)&&(r={r:oi[e[1]]<<4|oi[e[2]],g:oi[e[3]]<<4|oi[e[4]],b:oi[e[5]]<<4|oi[e[6]],a:t===9?oi[e[7]]<<4|oi[e[8]]:255})),r}const J$=(e,t)=>e<255?t(e):"";function Q$(e){var t=Z$(e)?G$:Y$;return e?"#"+t(e.r)+t(e.g)+t(e.b)+J$(e.a,t):void 0}const eD=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function V6(e,t,r){const i=t*Math.min(r,1-r),a=(n,u=(n+e/30)%12)=>r-i*Math.max(Math.min(u-3,9-u,1),-1);return[a(0),a(8),a(4)]}function tD(e,t,r){const i=(a,n=(a+e/60)%6)=>r-r*t*Math.max(Math.min(n,4-n,1),0);return[i(5),i(3),i(1)]}function rD(e,t,r){const i=V6(e,1,.5);let a;for(t+r>1&&(a=1/(t+r),t*=a,r*=a),a=0;a<3;a++)i[a]*=1-t-r,i[a]+=t;return i}function iD(e,t,r,i,a){return e===a?(t-r)/i+(t<r?6:0):t===a?(r-e)/i+2:(e-t)/i+4}function hg(e){const r=e.r/255,i=e.g/255,a=e.b/255,n=Math.max(r,i,a),u=Math.min(r,i,a),c=(n+u)/2;let d,m,M;return n!==u&&(M=n-u,m=c>.5?M/(2-n-u):M/(n+u),d=iD(r,i,a,M,n),d=d*60+.5),[d|0,m||0,c]}function cg(e,t,r,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,r,i)).map(bo)}function dg(e,t,r){return cg(V6,e,t,r)}function nD(e,t,r){return cg(rD,e,t,r)}function oD(e,t,r){return cg(tD,e,t,r)}function z6(e){return(e%360+360)%360}function aD(e){const t=eD.exec(e);let r=255,i;if(!t)return;t[5]!==i&&(r=t[6]?Sf(+t[5]):bo(+t[5]));const a=z6(+t[2]),n=+t[3]/100,u=+t[4]/100;return t[1]==="hwb"?i=nD(a,n,u):t[1]==="hsv"?i=oD(a,n,u):i=dg(a,n,u),{r:i[0],g:i[1],b:i[2],a:r}}function sD(e,t){var r=hg(e);r[0]=z6(r[0]+t),r=dg(r),e.r=r[0],e.g=r[1],e.b=r[2]}function fD(e){if(!e)return;const t=hg(e),r=t[0],i=Xy(t[1]),a=Xy(t[2]);return e.a<255?`hsla(${r}, ${i}%, ${a}%, ${An(e.a)})`:`hsl(${r}, ${i}%, ${a}%)`}const Jy={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Qy={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function uD(){const e={},t=Object.keys(Qy),r=Object.keys(Jy);let i,a,n,u,c;for(i=0;i<t.length;i++){for(u=c=t[i],a=0;a<r.length;a++)n=r[a],c=c.replace(n,Jy[n]);n=parseInt(Qy[u],16),e[c]=[n>>16&255,n>>8&255,n&255]}return e}let Yu;function lD(e){Yu||(Yu=uD(),Yu.transparent=[0,0,0,0]);const t=Yu[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const hD=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function cD(e){const t=hD.exec(e);let r=255,i,a,n;if(t){if(t[7]!==i){const u=+t[7];r=t[8]?Sf(u):lo(u*255,0,255)}return i=+t[1],a=+t[3],n=+t[5],i=255&(t[2]?Sf(i):lo(i,0,255)),a=255&(t[4]?Sf(a):lo(a,0,255)),n=255&(t[6]?Sf(n):lo(n,0,255)),{r:i,g:a,b:n,a:r}}}function dD(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${An(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Ld=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Da=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function pD(e,t,r){const i=Da(An(e.r)),a=Da(An(e.g)),n=Da(An(e.b));return{r:bo(Ld(i+r*(Da(An(t.r))-i))),g:bo(Ld(a+r*(Da(An(t.g))-a))),b:bo(Ld(n+r*(Da(An(t.b))-n))),a:e.a+r*(t.a-e.a)}}function Zu(e,t,r){if(e){let i=hg(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*r,t===0?360:1)),i=dg(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function G6(e,t){return e&&Object.assign(t||{},e)}function eb(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=bo(e[3]))):(t=G6(e,{r:0,g:0,b:0,a:1}),t.a=bo(t.a)),t}function vD(e){return e.charAt(0)==="r"?cD(e):aD(e)}class $p{constructor(t){if(t instanceof $p)return t;const r=typeof t;let i;r==="object"?i=eb(t):r==="string"&&(i=X$(t)||lD(t)||vD(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=G6(this._rgb);return t&&(t.a=An(t.a)),t}set rgb(t){this._rgb=eb(t)}rgbString(){return this._valid?dD(this._rgb):void 0}hexString(){return this._valid?Q$(this._rgb):void 0}hslString(){return this._valid?fD(this._rgb):void 0}mix(t,r){if(t){const i=this.rgb,a=t.rgb;let n;const u=r===n?.5:r,c=2*u-1,d=i.a-a.a,m=((c*d===-1?c:(c+d)/(1+c*d))+1)/2;n=1-m,i.r=255&m*i.r+n*a.r+.5,i.g=255&m*i.g+n*a.g+.5,i.b=255&m*i.b+n*a.b+.5,i.a=u*i.a+(1-u)*a.a,this.rgb=i}return this}interpolate(t,r){return t&&(this._rgb=pD(this._rgb,t._rgb,r)),this}clone(){return new $p(this.rgb)}alpha(t){return this._rgb.a=bo(t),this}clearer(t){const r=this._rgb;return r.a*=1-t,this}greyscale(){const t=this._rgb,r=Mu(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=r,this}opaquer(t){const r=this._rgb;return r.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Zu(this._rgb,2,t),this}darken(t){return Zu(this._rgb,2,-t),this}saturate(t){return Zu(this._rgb,1,t),this}desaturate(t){return Zu(this._rgb,1,-t),this}rotate(t){return sD(this._rgb,t),this}}var Y6={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
+ * http://hammerjs.github.io/
+ *
+ * Copyright (c) 2016 Jorik Tangelder;
+ * Licensed under the MIT license */(function(e){(function(t,r,i,a){var n=["","webkit","Moz","MS","ms","o"],u=r.createElement("div"),c="function",d=Math.round,m=Math.abs,M=Date.now;function S(re,he,me){return setTimeout(H(re,me),he)}function R(re,he,me){return Array.isArray(re)?(C(re,me[he],me),!0):!1}function C(re,he,me){var Be;if(re)if(re.forEach)re.forEach(he,me);else if(re.length!==a)for(Be=0;Be<re.length;)he.call(me,re[Be],Be,re),Be++;else for(Be in re)re.hasOwnProperty(Be)&&he.call(me,re[Be],Be,re)}function P(re,he,me){var Be="DEPRECATED METHOD: "+he+`
+`+me+` AT 
+`;return function(){var We=new Error("get-stack-trace"),Ge=We&&We.stack?We.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",bt=t.console&&(t.console.warn||t.console.log);return bt&&bt.call(t.console,Be,Ge),re.apply(this,arguments)}}var k;typeof Object.assign!="function"?k=function(he){if(he===a||he===null)throw new TypeError("Cannot convert undefined or null to object");for(var me=Object(he),Be=1;Be<arguments.length;Be++){var We=arguments[Be];if(We!==a&&We!==null)for(var Ge in We)We.hasOwnProperty(Ge)&&(me[Ge]=We[Ge])}return me}:k=Object.assign;var L=P(function(he,me,Be){for(var We=Object.keys(me),Ge=0;Ge<We.length;)(!Be||Be&&he[We[Ge]]===a)&&(he[We[Ge]]=me[We[Ge]]),Ge++;return he},"extend","Use `assign`."),I=P(function(he,me){return L(he,me,!0)},"merge","Use `assign`.");function B(re,he,me){var Be=he.prototype,We;We=re.prototype=Object.create(Be),We.constructor=re,We._super=Be,me&&k(We,me)}function H(re,he){return function(){return re.apply(he,arguments)}}function F(re,he){return typeof re==c?re.apply(he&&he[0]||a,he):re}function W(re,he){return re===a?he:re}function Y(re,he,me){C(oe(he),function(Be){re.addEventListener(Be,me,!1)})}function ie(re,he,me){C(oe(he),function(Be){re.removeEventListener(Be,me,!1)})}function J(re,he){for(;re;){if(re==he)return!0;re=re.parentNode}return!1}function V(re,he){return re.indexOf(he)>-1}function oe(re){return re.trim().split(/\s+/g)}function _(re,he,me){if(re.indexOf&&!me)return re.indexOf(he);for(var Be=0;Be<re.length;){if(me&&re[Be][me]==he||!me&&re[Be]===he)return Be;Be++}return-1}function o(re){return Array.prototype.slice.call(re,0)}function f(re,he,me){for(var Be=[],We=[],Ge=0;Ge<re.length;){var bt=he?re[Ge][he]:re[Ge];_(We,bt)<0&&Be.push(re[Ge]),We[Ge]=bt,Ge++}return me&&(he?Be=Be.sort(function(pr,Pr){return pr[he]>Pr[he]}):Be=Be.sort()),Be}function l(re,he){for(var me,Be,We=he[0].toUpperCase()+he.slice(1),Ge=0;Ge<n.length;){if(me=n[Ge],Be=me?me+We:he,Be in re)return Be;Ge++}return a}var h=1;function p(){return h++}function w(re){var he=re.ownerDocument||re;return he.defaultView||he.parentWindow||t}var x=/mobile|tablet|ip(ad|hone|od)|android/i,g="ontouchstart"in t,s=l(t,"PointerEvent")!==a,v=g&&x.test(navigator.userAgent),T="touch",$="pen",G="mouse",ee="kinect",A=25,E=1,U=2,K=4,Z=8,b=1,y=2,O=4,q=8,X=16,D=y|O,N=q|X,j=D|N,z=["x","y"],se=["clientX","clientY"];function te(re,he){var me=this;this.manager=re,this.callback=he,this.element=re.element,this.target=re.options.inputTarget,this.domHandler=function(Be){F(re.options.enable,[re])&&me.handler(Be)},this.init()}te.prototype={handler:function(){},init:function(){this.evEl&&Y(this.element,this.evEl,this.domHandler),this.evTarget&&Y(this.target,this.evTarget,this.domHandler),this.evWin&&Y(w(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&ie(this.element,this.evEl,this.domHandler),this.evTarget&&ie(this.target,this.evTarget,this.domHandler),this.evWin&&ie(w(this.element),this.evWin,this.domHandler)}};function ne(re){var he,me=re.options.inputClass;return me?he=me:s?he=xe:v?he=Oe:g?he=$e:he=qe,new he(re,Ee)}function Ee(re,he,me){var Be=me.pointers.length,We=me.changedPointers.length,Ge=he&E&&Be-We===0,bt=he&(K|Z)&&Be-We===0;me.isFirst=!!Ge,me.isFinal=!!bt,Ge&&(re.session={}),me.eventType=he,Q(re,me),re.emit("hammer.input",me),re.recognize(me),re.session.prevInput=me}function Q(re,he){var me=re.session,Be=he.pointers,We=Be.length;me.firstInput||(me.firstInput=ce(he)),We>1&&!me.firstMultiple?me.firstMultiple=ce(he):We===1&&(me.firstMultiple=!1);var Ge=me.firstInput,bt=me.firstMultiple,ar=bt?bt.center:Ge.center,pr=he.center=pe(Be);he.timeStamp=M(),he.deltaTime=he.timeStamp-Ge.timeStamp,he.angle=Te(ar,pr),he.distance=fe(ar,pr),ue(me,he),he.offsetDirection=ae(he.deltaX,he.deltaY);var Pr=de(he.deltaTime,he.deltaX,he.deltaY);he.overallVelocityX=Pr.x,he.overallVelocityY=Pr.y,he.overallVelocity=m(Pr.x)>m(Pr.y)?Pr.x:Pr.y,he.scale=bt?Me(bt.pointers,Be):1,he.rotation=bt?ve(bt.pointers,Be):0,he.maxPointers=me.prevInput?he.pointers.length>me.prevInput.maxPointers?he.pointers.length:me.prevInput.maxPointers:he.pointers.length,le(me,he);var Vi=re.element;J(he.srcEvent.target,Vi)&&(Vi=he.srcEvent.target),he.target=Vi}function ue(re,he){var me=he.center,Be=re.offsetDelta||{},We=re.prevDelta||{},Ge=re.prevInput||{};(he.eventType===E||Ge.eventType===K)&&(We=re.prevDelta={x:Ge.deltaX||0,y:Ge.deltaY||0},Be=re.offsetDelta={x:me.x,y:me.y}),he.deltaX=We.x+(me.x-Be.x),he.deltaY=We.y+(me.y-Be.y)}function le(re,he){var me=re.lastInterval||he,Be=he.timeStamp-me.timeStamp,We,Ge,bt,ar;if(he.eventType!=Z&&(Be>A||me.velocity===a)){var pr=he.deltaX-me.deltaX,Pr=he.deltaY-me.deltaY,Vi=de(Be,pr,Pr);Ge=Vi.x,bt=Vi.y,We=m(Vi.x)>m(Vi.y)?Vi.x:Vi.y,ar=ae(pr,Pr),re.lastInterval=he}else We=me.velocity,Ge=me.velocityX,bt=me.velocityY,ar=me.direction;he.velocity=We,he.velocityX=Ge,he.velocityY=bt,he.direction=ar}function ce(re){for(var he=[],me=0;me<re.pointers.length;)he[me]={clientX:d(re.pointers[me].clientX),clientY:d(re.pointers[me].clientY)},me++;return{timeStamp:M(),pointers:he,center:pe(he),deltaX:re.deltaX,deltaY:re.deltaY}}function pe(re){var he=re.length;if(he===1)return{x:d(re[0].clientX),y:d(re[0].clientY)};for(var me=0,Be=0,We=0;We<he;)me+=re[We].clientX,Be+=re[We].clientY,We++;return{x:d(me/he),y:d(Be/he)}}function de(re,he,me){return{x:he/re||0,y:me/re||0}}function ae(re,he){return re===he?b:m(re)>=m(he)?re<0?y:O:he<0?q:X}function fe(re,he,me){me||(me=z);var Be=he[me[0]]-re[me[0]],We=he[me[1]]-re[me[1]];return Math.sqrt(Be*Be+We*We)}function Te(re,he,me){me||(me=z);var Be=he[me[0]]-re[me[0]],We=he[me[1]]-re[me[1]];return Math.atan2(We,Be)*180/Math.PI}function ve(re,he){return Te(he[1],he[0],se)+Te(re[1],re[0],se)}function Me(re,he){return fe(he[0],he[1],se)/fe(re[0],re[1],se)}var Ke={mousedown:E,mousemove:U,mouseup:K},be="mousedown",Se="mousemove mouseup";function qe(){this.evEl=be,this.evWin=Se,this.pressed=!1,te.apply(this,arguments)}B(qe,te,{handler:function(he){var me=Ke[he.type];me&E&&he.button===0&&(this.pressed=!0),me&U&&he.which!==1&&(me=K),this.pressed&&(me&K&&(this.pressed=!1),this.callback(this.manager,me,{pointers:[he],changedPointers:[he],pointerType:G,srcEvent:he}))}});var ye={pointerdown:E,pointermove:U,pointerup:K,pointercancel:Z,pointerout:Z},_e={2:T,3:$,4:G,5:ee},Ve="pointerdown",ge="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Ve="MSPointerDown",ge="MSPointerMove MSPointerUp MSPointerCancel");function xe(){this.evEl=Ve,this.evWin=ge,te.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}B(xe,te,{handler:function(he){var me=this.store,Be=!1,We=he.type.toLowerCase().replace("ms",""),Ge=ye[We],bt=_e[he.pointerType]||he.pointerType,ar=bt==T,pr=_(me,he.pointerId,"pointerId");Ge&E&&(he.button===0||ar)?pr<0&&(me.push(he),pr=me.length-1):Ge&(K|Z)&&(Be=!0),!(pr<0)&&(me[pr]=he,this.callback(this.manager,Ge,{pointers:me,changedPointers:[he],pointerType:bt,srcEvent:he}),Be&&me.splice(pr,1))}});var Xe={touchstart:E,touchmove:U,touchend:K,touchcancel:Z},Re="touchstart",Le="touchstart touchmove touchend touchcancel";function at(){this.evTarget=Re,this.evWin=Le,this.started=!1,te.apply(this,arguments)}B(at,te,{handler:function(he){var me=Xe[he.type];if(me===E&&(this.started=!0),!!this.started){var Be=Ae.call(this,he,me);me&(K|Z)&&Be[0].length-Be[1].length===0&&(this.started=!1),this.callback(this.manager,me,{pointers:Be[0],changedPointers:Be[1],pointerType:T,srcEvent:he})}}});function Ae(re,he){var me=o(re.touches),Be=o(re.changedTouches);return he&(K|Z)&&(me=f(me.concat(Be),"identifier",!0)),[me,Be]}var Ne={touchstart:E,touchmove:U,touchend:K,touchcancel:Z},rt="touchstart touchmove touchend touchcancel";function Oe(){this.evTarget=rt,this.targetIds={},te.apply(this,arguments)}B(Oe,te,{handler:function(he){var me=Ne[he.type],Be=De.call(this,he,me);Be&&this.callback(this.manager,me,{pointers:Be[0],changedPointers:Be[1],pointerType:T,srcEvent:he})}});function De(re,he){var me=o(re.touches),Be=this.targetIds;if(he&(E|U)&&me.length===1)return Be[me[0].identifier]=!0,[me,me];var We,Ge,bt=o(re.changedTouches),ar=[],pr=this.target;if(Ge=me.filter(function(Pr){return J(Pr.target,pr)}),he===E)for(We=0;We<Ge.length;)Be[Ge[We].identifier]=!0,We++;for(We=0;We<bt.length;)Be[bt[We].identifier]&&ar.push(bt[We]),he&(K|Z)&&delete Be[bt[We].identifier],We++;if(ar.length)return[f(Ge.concat(ar),"identifier",!0),ar]}var nt=2500,Ie=25;function $e(){te.apply(this,arguments);var re=H(this.handler,this);this.touch=new Oe(this.manager,re),this.mouse=new qe(this.manager,re),this.primaryTouch=null,this.lastTouches=[]}B($e,te,{handler:function(he,me,Be){var We=Be.pointerType==T,Ge=Be.pointerType==G;if(!(Ge&&Be.sourceCapabilities&&Be.sourceCapabilities.firesTouchEvents)){if(We)st.call(this,me,Be);else if(Ge&&je.call(this,Be))return;this.callback(he,me,Be)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function st(re,he){re&E?(this.primaryTouch=he.changedPointers[0].identifier,Pe.call(this,he)):re&(K|Z)&&Pe.call(this,he)}function Pe(re){var he=re.changedPointers[0];if(he.identifier===this.primaryTouch){var me={x:he.clientX,y:he.clientY};this.lastTouches.push(me);var Be=this.lastTouches,We=function(){var Ge=Be.indexOf(me);Ge>-1&&Be.splice(Ge,1)};setTimeout(We,nt)}}function je(re){for(var he=re.srcEvent.clientX,me=re.srcEvent.clientY,Be=0;Be<this.lastTouches.length;Be++){var We=this.lastTouches[Be],Ge=Math.abs(he-We.x),bt=Math.abs(me-We.y);if(Ge<=Ie&&bt<=Ie)return!0}return!1}var ht=l(u.style,"touchAction"),Ce=ht!==a,Fe="compute",it="auto",et="manipulation",xt="none",Tt="pan-x",Ot="pan-y",Ct=Ht();function kt(re,he){this.manager=re,this.set(he)}kt.prototype={set:function(re){re==Fe&&(re=this.compute()),Ce&&this.manager.element.style&&Ct[re]&&(this.manager.element.style[ht]=re),this.actions=re.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var re=[];return C(this.manager.recognizers,function(he){F(he.options.enable,[he])&&(re=re.concat(he.getTouchAction()))}),Ut(re.join(" "))},preventDefaults:function(re){var he=re.srcEvent,me=re.offsetDirection;if(this.manager.session.prevented){he.preventDefault();return}var Be=this.actions,We=V(Be,xt)&&!Ct[xt],Ge=V(Be,Ot)&&!Ct[Ot],bt=V(Be,Tt)&&!Ct[Tt];if(We){var ar=re.pointers.length===1,pr=re.distance<2,Pr=re.deltaTime<250;if(ar&&pr&&Pr)return}if(!(bt&&Ge)&&(We||Ge&&me&D||bt&&me&N))return this.preventSrc(he)},preventSrc:function(re){this.manager.session.prevented=!0,re.preventDefault()}};function Ut(re){if(V(re,xt))return xt;var he=V(re,Tt),me=V(re,Ot);return he&&me?xt:he||me?he?Tt:Ot:V(re,et)?et:it}function Ht(){if(!Ce)return!1;var re={},he=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(me){re[me]=he?t.CSS.supports("touch-action",me):!0}),re}var Bt=1,dt=2,At=4,_t=8,mt=_t,It=16,vt=32;function yt(re){this.options=k({},this.defaults,re||{}),this.id=p(),this.manager=null,this.options.enable=W(this.options.enable,!0),this.state=Bt,this.simultaneous={},this.requireFail=[]}yt.prototype={defaults:{},set:function(re){return k(this.options,re),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(re){if(R(re,"recognizeWith",this))return this;var he=this.simultaneous;return re=Zn(re,this),he[re.id]||(he[re.id]=re,re.recognizeWith(this)),this},dropRecognizeWith:function(re){return R(re,"dropRecognizeWith",this)?this:(re=Zn(re,this),delete this.simultaneous[re.id],this)},requireFailure:function(re){if(R(re,"requireFailure",this))return this;var he=this.requireFail;return re=Zn(re,this),_(he,re)===-1&&(he.push(re),re.requireFailure(this)),this},dropRequireFailure:function(re){if(R(re,"dropRequireFailure",this))return this;re=Zn(re,this);var he=_(this.requireFail,re);return he>-1&&this.requireFail.splice(he,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(re){return!!this.simultaneous[re.id]},emit:function(re){var he=this,me=this.state;function Be(We){he.manager.emit(We,re)}me<_t&&Be(he.options.event+Dt(me)),Be(he.options.event),re.additionalEvent&&Be(re.additionalEvent),me>=_t&&Be(he.options.event+Dt(me))},tryEmit:function(re){if(this.canEmit())return this.emit(re);this.state=vt},canEmit:function(){for(var re=0;re<this.requireFail.length;){if(!(this.requireFail[re].state&(vt|Bt)))return!1;re++}return!0},recognize:function(re){var he=k({},re);if(!F(this.options.enable,[this,he])){this.reset(),this.state=vt;return}this.state&(mt|It|vt)&&(this.state=Bt),this.state=this.process(he),this.state&(dt|At|_t|It)&&this.tryEmit(he)},process:function(re){},getTouchAction:function(){},reset:function(){}};function Dt(re){return re&It?"cancel":re&_t?"end":re&At?"move":re&dt?"start":""}function Ft(re){return re==X?"down":re==q?"up":re==y?"left":re==O?"right":""}function Zn(re,he){var me=he.manager;return me?me.get(re):re}function Ir(){yt.apply(this,arguments)}B(Ir,yt,{defaults:{pointers:1},attrTest:function(re){var he=this.options.pointers;return he===0||re.pointers.length===he},process:function(re){var he=this.state,me=re.eventType,Be=he&(dt|At),We=this.attrTest(re);return Be&&(me&Z||!We)?he|It:Be||We?me&K?he|_t:he&dt?he|At:dt:vt}});function ku(){Ir.apply(this,arguments),this.pX=null,this.pY=null}B(ku,Ir,{defaults:{event:"pan",threshold:10,pointers:1,direction:j},getTouchAction:function(){var re=this.options.direction,he=[];return re&D&&he.push(Ot),re&N&&he.push(Tt),he},directionTest:function(re){var he=this.options,me=!0,Be=re.distance,We=re.direction,Ge=re.deltaX,bt=re.deltaY;return We&he.direction||(he.direction&D?(We=Ge===0?b:Ge<0?y:O,me=Ge!=this.pX,Be=Math.abs(re.deltaX)):(We=bt===0?b:bt<0?q:X,me=bt!=this.pY,Be=Math.abs(re.deltaY))),re.direction=We,me&&Be>he.threshold&&We&he.direction},attrTest:function(re){return Ir.prototype.attrTest.call(this,re)&&(this.state&dt||!(this.state&dt)&&this.directionTest(re))},emit:function(re){this.pX=re.deltaX,this.pY=re.deltaY;var he=Ft(re.direction);he&&(re.additionalEvent=this.options.event+he),this._super.emit.call(this,re)}});function Sc(){Ir.apply(this,arguments)}B(Sc,Ir,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[xt]},attrTest:function(re){return this._super.attrTest.call(this,re)&&(Math.abs(re.scale-1)>this.options.threshold||this.state&dt)},emit:function(re){if(re.scale!==1){var he=re.scale<1?"in":"out";re.additionalEvent=this.options.event+he}this._super.emit.call(this,re)}});function xc(){yt.apply(this,arguments),this._timer=null,this._input=null}B(xc,yt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[it]},process:function(re){var he=this.options,me=re.pointers.length===he.pointers,Be=re.distance<he.threshold,We=re.deltaTime>he.time;if(this._input=re,!Be||!me||re.eventType&(K|Z)&&!We)this.reset();else if(re.eventType&E)this.reset(),this._timer=S(function(){this.state=mt,this.tryEmit()},he.time,this);else if(re.eventType&K)return mt;return vt},reset:function(){clearTimeout(this._timer)},emit:function(re){this.state===mt&&(re&&re.eventType&K?this.manager.emit(this.options.event+"up",re):(this._input.timeStamp=M(),this.manager.emit(this.options.event,this._input)))}});function Ec(){Ir.apply(this,arguments)}B(Ec,Ir,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[xt]},attrTest:function(re){return this._super.attrTest.call(this,re)&&(Math.abs(re.rotation)>this.options.threshold||this.state&dt)}});function Rc(){Ir.apply(this,arguments)}B(Rc,Ir,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:D|N,pointers:1},getTouchAction:function(){return ku.prototype.getTouchAction.call(this)},attrTest:function(re){var he=this.options.direction,me;return he&(D|N)?me=re.overallVelocity:he&D?me=re.overallVelocityX:he&N&&(me=re.overallVelocityY),this._super.attrTest.call(this,re)&&he&re.offsetDirection&&re.distance>this.options.threshold&&re.maxPointers==this.options.pointers&&m(me)>this.options.velocity&&re.eventType&K},emit:function(re){var he=Ft(re.offsetDirection);he&&this.manager.emit(this.options.event+he,re),this.manager.emit(this.options.event,re)}});function $u(){yt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}B($u,yt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[et]},process:function(re){var he=this.options,me=re.pointers.length===he.pointers,Be=re.distance<he.threshold,We=re.deltaTime<he.time;if(this.reset(),re.eventType&E&&this.count===0)return this.failTimeout();if(Be&&We&&me){if(re.eventType!=K)return this.failTimeout();var Ge=this.pTime?re.timeStamp-this.pTime<he.interval:!0,bt=!this.pCenter||fe(this.pCenter,re.center)<he.posThreshold;this.pTime=re.timeStamp,this.pCenter=re.center,!bt||!Ge?this.count=1:this.count+=1,this._input=re;var ar=this.count%he.taps;if(ar===0)return this.hasRequireFailures()?(this._timer=S(function(){this.state=mt,this.tryEmit()},he.interval,this),dt):mt}return vt},failTimeout:function(){return this._timer=S(function(){this.state=vt},this.options.interval,this),vt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==mt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function pn(re,he){return he=he||{},he.recognizers=W(he.recognizers,pn.defaults.preset),new Ac(re,he)}pn.VERSION="2.0.7",pn.defaults={domEvents:!1,touchAction:Fe,enable:!0,inputTarget:null,inputClass:null,preset:[[Ec,{enable:!1}],[Sc,{enable:!1},["rotate"]],[Rc,{direction:D}],[ku,{direction:D},["swipe"]],[$u],[$u,{event:"doubletap",taps:2},["tap"]],[xc]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var C4=1,im=2;function Ac(re,he){this.options=k({},pn.defaults,he||{}),this.options.inputTarget=this.options.inputTarget||re,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=re,this.input=ne(this),this.touchAction=new kt(this,this.options.touchAction),nm(this,!0),C(this.options.recognizers,function(me){var Be=this.add(new me[0](me[1]));me[2]&&Be.recognizeWith(me[2]),me[3]&&Be.requireFailure(me[3])},this)}Ac.prototype={set:function(re){return k(this.options,re),re.touchAction&&this.touchAction.update(),re.inputTarget&&(this.input.destroy(),this.input.target=re.inputTarget,this.input.init()),this},stop:function(re){this.session.stopped=re?im:C4},recognize:function(re){var he=this.session;if(!he.stopped){this.touchAction.preventDefaults(re);var me,Be=this.recognizers,We=he.curRecognizer;(!We||We&&We.state&mt)&&(We=he.curRecognizer=null);for(var Ge=0;Ge<Be.length;)me=Be[Ge],he.stopped!==im&&(!We||me==We||me.canRecognizeWith(We))?me.recognize(re):me.reset(),!We&&me.state&(dt|At|_t)&&(We=he.curRecognizer=me),Ge++}},get:function(re){if(re instanceof yt)return re;for(var he=this.recognizers,me=0;me<he.length;me++)if(he[me].options.event==re)return he[me];return null},add:function(re){if(R(re,"add",this))return this;var he=this.get(re.options.event);return he&&this.remove(he),this.recognizers.push(re),re.manager=this,this.touchAction.update(),re},remove:function(re){if(R(re,"remove",this))return this;if(re=this.get(re),re){var he=this.recognizers,me=_(he,re);me!==-1&&(he.splice(me,1),this.touchAction.update())}return this},on:function(re,he){if(re!==a&&he!==a){var me=this.handlers;return C(oe(re),function(Be){me[Be]=me[Be]||[],me[Be].push(he)}),this}},off:function(re,he){if(re!==a){var me=this.handlers;return C(oe(re),function(Be){he?me[Be]&&me[Be].splice(_(me[Be],he),1):delete me[Be]}),this}},emit:function(re,he){this.options.domEvents&&B4(re,he);var me=this.handlers[re]&&this.handlers[re].slice();if(!(!me||!me.length)){he.type=re,he.preventDefault=function(){he.srcEvent.preventDefault()};for(var Be=0;Be<me.length;)me[Be](he),Be++}},destroy:function(){this.element&&nm(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function nm(re,he){var me=re.element;if(me.style){var Be;C(re.options.cssProps,function(We,Ge){Be=l(me.style,Ge),he?(re.oldCssProps[Be]=me.style[Be],me.style[Be]=We):me.style[Be]=re.oldCssProps[Be]||""}),he||(re.oldCssProps={})}}function B4(re,he){var me=r.createEvent("Event");me.initEvent(re,!0,!0),me.gesture=he,he.target.dispatchEvent(me)}k(pn,{INPUT_START:E,INPUT_MOVE:U,INPUT_END:K,INPUT_CANCEL:Z,STATE_POSSIBLE:Bt,STATE_BEGAN:dt,STATE_CHANGED:At,STATE_ENDED:_t,STATE_RECOGNIZED:mt,STATE_CANCELLED:It,STATE_FAILED:vt,DIRECTION_NONE:b,DIRECTION_LEFT:y,DIRECTION_RIGHT:O,DIRECTION_UP:q,DIRECTION_DOWN:X,DIRECTION_HORIZONTAL:D,DIRECTION_VERTICAL:N,DIRECTION_ALL:j,Manager:Ac,Input:te,TouchAction:kt,TouchInput:Oe,MouseInput:qe,PointerEventInput:xe,TouchMouseInput:$e,SingleTouchInput:at,Recognizer:yt,AttrRecognizer:Ir,Tap:$u,Pan:ku,Swipe:Rc,Pinch:Sc,Rotate:Ec,Press:xc,on:Y,off:ie,each:C,merge:I,extend:L,assign:k,inherit:B,bindFn:H,prefixed:l});var L4=typeof t<"u"?t:typeof self<"u"?self:{};L4.Hammer=pn,typeof a=="function"&&a.amd?a(function(){return pn}):e.exports?e.exports=pn:t[i]=pn})(window,document,"Hammer")})(Y6);var gD=Y6.exports;const jV=Lo(gD);var Z6={exports:{}};const mD=tv(VR);(function(e,t){(function(i,a){e.exports=a(mD,N4)})(typeof self<"u"?self:Ye,function(r,i){return function(a){var n={};function u(c){if(n[c])return n[c].exports;var d=n[c]={i:c,l:!1,exports:{}};return a[c].call(d.exports,d,d.exports,u),d.l=!0,d.exports}return u.m=a,u.c=n,u.d=function(c,d,m){u.o(c,d)||Object.defineProperty(c,d,{enumerable:!0,get:m})},u.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},u.t=function(c,d){if(d&1&&(c=u(c)),d&8||d&4&&typeof c=="object"&&c&&c.__esModule)return c;var m=Object.create(null);if(u.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:c}),d&2&&typeof c!="string")for(var M in c)u.d(m,M,function(S){return c[S]}.bind(null,M));return m},u.n=function(c){var d=c&&c.__esModule?function(){return c.default}:function(){return c};return u.d(d,"a",d),d},u.o=function(c,d){return Object.prototype.hasOwnProperty.call(c,d)},u.p="",u(u.s="fb15")}({"00ee":function(a,n,u){var c=u("b622"),d=c("toStringTag"),m={};m[d]="z",a.exports=String(m)==="[object z]"},"0366":function(a,n,u){var c=u("1c0b");a.exports=function(d,m,M){if(c(d),m===void 0)return d;switch(M){case 0:return function(){return d.call(m)};case 1:return function(S){return d.call(m,S)};case 2:return function(S,R){return d.call(m,S,R)};case 3:return function(S,R,C){return d.call(m,S,R,C)}}return function(){return d.apply(m,arguments)}}},"057f":function(a,n,u){var c=u("fc6a"),d=u("241c").f,m={}.toString,M=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],S=function(R){try{return d(R)}catch{return M.slice()}};a.exports.f=function(C){return M&&m.call(C)=="[object Window]"?S(C):d(c(C))}},"06cf":function(a,n,u){var c=u("83ab"),d=u("d1e7"),m=u("5c6c"),M=u("fc6a"),S=u("c04e"),R=u("5135"),C=u("0cfb"),P=Object.getOwnPropertyDescriptor;n.f=c?P:function(L,I){if(L=M(L),I=S(I,!0),C)try{return P(L,I)}catch{}if(R(L,I))return m(!d.f.call(L,I),L[I])}},"0cfb":function(a,n,u){var c=u("83ab"),d=u("d039"),m=u("cc12");a.exports=!c&&!d(function(){return Object.defineProperty(m("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(a,n,u){var c=u("23e7"),d=u("d58f").left,m=u("a640"),M=u("ae40"),S=m("reduce"),R=M("reduce",{1:0});c({target:"Array",proto:!0,forced:!S||!R},{reduce:function(P){return d(this,P,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(a,n,u){var c=u("c6b6"),d=u("9263");a.exports=function(m,M){var S=m.exec;if(typeof S=="function"){var R=S.call(m,M);if(typeof R!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return R}if(c(m)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(m,M)}},"159b":function(a,n,u){var c=u("da84"),d=u("fdbc"),m=u("17c2"),M=u("9112");for(var S in d){var R=c[S],C=R&&R.prototype;if(C&&C.forEach!==m)try{M(C,"forEach",m)}catch{C.forEach=m}}},"17c2":function(a,n,u){var c=u("b727").forEach,d=u("a640"),m=u("ae40"),M=d("forEach"),S=m("forEach");a.exports=!M||!S?function(C){return c(this,C,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(a,n,u){var c=u("d066");a.exports=c("document","documentElement")},"1c0b":function(a,n){a.exports=function(u){if(typeof u!="function")throw TypeError(String(u)+" is not a function");return u}},"1c7e":function(a,n,u){var c=u("b622"),d=c("iterator"),m=!1;try{var M=0,S={next:function(){return{done:!!M++}},return:function(){m=!0}};S[d]=function(){return this},Array.from(S,function(){throw 2})}catch{}a.exports=function(R,C){if(!C&&!m)return!1;var P=!1;try{var k={};k[d]=function(){return{next:function(){return{done:P=!0}}}},R(k)}catch{}return P}},"1d80":function(a,n){a.exports=function(u){if(u==null)throw TypeError("Can't call method on "+u);return u}},"1dde":function(a,n,u){var c=u("d039"),d=u("b622"),m=u("2d00"),M=d("species");a.exports=function(S){return m>=51||!c(function(){var R=[],C=R.constructor={};return C[M]=function(){return{foo:1}},R[S](Boolean).foo!==1})}},"23cb":function(a,n,u){var c=u("a691"),d=Math.max,m=Math.min;a.exports=function(M,S){var R=c(M);return R<0?d(R+S,0):m(R,S)}},"23e7":function(a,n,u){var c=u("da84"),d=u("06cf").f,m=u("9112"),M=u("6eeb"),S=u("ce4e"),R=u("e893"),C=u("94ca");a.exports=function(P,k){var L=P.target,I=P.global,B=P.stat,H,F,W,Y,ie,J;if(I?F=c:B?F=c[L]||S(L,{}):F=(c[L]||{}).prototype,F)for(W in k){if(ie=k[W],P.noTargetGet?(J=d(F,W),Y=J&&J.value):Y=F[W],H=C(I?W:L+(B?".":"#")+W,P.forced),!H&&Y!==void 0){if(typeof ie==typeof Y)continue;R(ie,Y)}(P.sham||Y&&Y.sham)&&m(ie,"sham",!0),M(F,W,ie,P)}}},"241c":function(a,n,u){var c=u("ca84"),d=u("7839"),m=d.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(S){return c(S,m)}},"25f0":function(a,n,u){var c=u("6eeb"),d=u("825a"),m=u("d039"),M=u("ad6d"),S="toString",R=RegExp.prototype,C=R[S],P=m(function(){return C.call({source:"a",flags:"b"})!="/a/b"}),k=C.name!=S;(P||k)&&c(RegExp.prototype,S,function(){var I=d(this),B=String(I.source),H=I.flags,F=String(H===void 0&&I instanceof RegExp&&!("flags"in R)?M.call(I):H);return"/"+B+"/"+F},{unsafe:!0})},"2ca0":function(a,n,u){var c=u("23e7"),d=u("06cf").f,m=u("50c4"),M=u("5a34"),S=u("1d80"),R=u("ab13"),C=u("c430"),P="".startsWith,k=Math.min,L=R("startsWith"),I=!C&&!L&&!!function(){var B=d(String.prototype,"startsWith");return B&&!B.writable}();c({target:"String",proto:!0,forced:!I&&!L},{startsWith:function(H){var F=String(S(this));M(H);var W=m(k(arguments.length>1?arguments[1]:void 0,F.length)),Y=String(H);return P?P.call(F,Y,W):F.slice(W,W+Y.length)===Y}})},"2d00":function(a,n,u){var c=u("da84"),d=u("342f"),m=c.process,M=m&&m.versions,S=M&&M.v8,R,C;S?(R=S.split("."),C=R[0]+R[1]):d&&(R=d.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=d.match(/Chrome\/(\d+)/),R&&(C=R[1]))),a.exports=C&&+C},"342f":function(a,n,u){var c=u("d066");a.exports=c("navigator","userAgent")||""},"35a1":function(a,n,u){var c=u("f5df"),d=u("3f8c"),m=u("b622"),M=m("iterator");a.exports=function(S){if(S!=null)return S[M]||S["@@iterator"]||d[c(S)]}},"37e8":function(a,n,u){var c=u("83ab"),d=u("9bf2"),m=u("825a"),M=u("df75");a.exports=c?Object.defineProperties:function(R,C){m(R);for(var P=M(C),k=P.length,L=0,I;k>L;)d.f(R,I=P[L++],C[I]);return R}},"3bbe":function(a,n,u){var c=u("861d");a.exports=function(d){if(!c(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},"3ca3":function(a,n,u){var c=u("6547").charAt,d=u("69f3"),m=u("7dd0"),M="String Iterator",S=d.set,R=d.getterFor(M);m(String,"String",function(C){S(this,{type:M,string:String(C),index:0})},function(){var P=R(this),k=P.string,L=P.index,I;return L>=k.length?{value:void 0,done:!0}:(I=c(k,L),P.index+=I.length,{value:I,done:!1})})},"3f8c":function(a,n){a.exports={}},4160:function(a,n,u){var c=u("23e7"),d=u("17c2");c({target:"Array",proto:!0,forced:[].forEach!=d},{forEach:d})},"428f":function(a,n,u){var c=u("da84");a.exports=c},"44ad":function(a,n,u){var c=u("d039"),d=u("c6b6"),m="".split;a.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(M){return d(M)=="String"?m.call(M,""):Object(M)}:Object},"44d2":function(a,n,u){var c=u("b622"),d=u("7c73"),m=u("9bf2"),M=c("unscopables"),S=Array.prototype;S[M]==null&&m.f(S,M,{configurable:!0,value:d(null)}),a.exports=function(R){S[M][R]=!0}},"44e7":function(a,n,u){var c=u("861d"),d=u("c6b6"),m=u("b622"),M=m("match");a.exports=function(S){var R;return c(S)&&((R=S[M])!==void 0?!!R:d(S)=="RegExp")}},4930:function(a,n,u){var c=u("d039");a.exports=!!Object.getOwnPropertySymbols&&!c(function(){return!String(Symbol())})},"4d64":function(a,n,u){var c=u("fc6a"),d=u("50c4"),m=u("23cb"),M=function(S){return function(R,C,P){var k=c(R),L=d(k.length),I=m(P,L),B;if(S&&C!=C){for(;L>I;)if(B=k[I++],B!=B)return!0}else for(;L>I;I++)if((S||I in k)&&k[I]===C)return S||I||0;return!S&&-1}};a.exports={includes:M(!0),indexOf:M(!1)}},"4de4":function(a,n,u){var c=u("23e7"),d=u("b727").filter,m=u("1dde"),M=u("ae40"),S=m("filter"),R=M("filter");c({target:"Array",proto:!0,forced:!S||!R},{filter:function(P){return d(this,P,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(a,n,u){var c=u("0366"),d=u("7b0b"),m=u("9bdd"),M=u("e95a"),S=u("50c4"),R=u("8418"),C=u("35a1");a.exports=function(k){var L=d(k),I=typeof this=="function"?this:Array,B=arguments.length,H=B>1?arguments[1]:void 0,F=H!==void 0,W=C(L),Y=0,ie,J,V,oe,_,o;if(F&&(H=c(H,B>2?arguments[2]:void 0,2)),W!=null&&!(I==Array&&M(W)))for(oe=W.call(L),_=oe.next,J=new I;!(V=_.call(oe)).done;Y++)o=F?m(oe,H,[V.value,Y],!0):V.value,R(J,Y,o);else for(ie=S(L.length),J=new I(ie);ie>Y;Y++)o=F?H(L[Y],Y):L[Y],R(J,Y,o);return J.length=Y,J}},"4fad":function(a,n,u){var c=u("23e7"),d=u("6f53").entries;c({target:"Object",stat:!0},{entries:function(M){return d(M)}})},"50c4":function(a,n,u){var c=u("a691"),d=Math.min;a.exports=function(m){return m>0?d(c(m),9007199254740991):0}},5135:function(a,n){var u={}.hasOwnProperty;a.exports=function(c,d){return u.call(c,d)}},5319:function(a,n,u){var c=u("d784"),d=u("825a"),m=u("7b0b"),M=u("50c4"),S=u("a691"),R=u("1d80"),C=u("8aa5"),P=u("14c3"),k=Math.max,L=Math.min,I=Math.floor,B=/\$([$&'`]|\d\d?|<[^>]*>)/g,H=/\$([$&'`]|\d\d?)/g,F=function(W){return W===void 0?W:String(W)};c("replace",2,function(W,Y,ie,J){var V=J.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,oe=J.REPLACE_KEEPS_$0,_=V?"$":"$0";return[function(l,h){var p=R(this),w=l==null?void 0:l[W];return w!==void 0?w.call(l,p,h):Y.call(String(p),l,h)},function(f,l){if(!V&&oe||typeof l=="string"&&l.indexOf(_)===-1){var h=ie(Y,f,this,l);if(h.done)return h.value}var p=d(f),w=String(this),x=typeof l=="function";x||(l=String(l));var g=p.global;if(g){var s=p.unicode;p.lastIndex=0}for(var v=[];;){var T=P(p,w);if(T===null||(v.push(T),!g))break;var $=String(T[0]);$===""&&(p.lastIndex=C(w,M(p.lastIndex),s))}for(var G="",ee=0,A=0;A<v.length;A++){T=v[A];for(var E=String(T[0]),U=k(L(S(T.index),w.length),0),K=[],Z=1;Z<T.length;Z++)K.push(F(T[Z]));var b=T.groups;if(x){var y=[E].concat(K,U,w);b!==void 0&&y.push(b);var O=String(l.apply(void 0,y))}else O=o(E,w,U,K,b,l);U>=ee&&(G+=w.slice(ee,U)+O,ee=U+E.length)}return G+w.slice(ee)}];function o(f,l,h,p,w,x){var g=h+f.length,s=p.length,v=H;return w!==void 0&&(w=m(w),v=B),Y.call(x,v,function(T,$){var G;switch($.charAt(0)){case"$":return"$";case"&":return f;case"`":return l.slice(0,h);case"'":return l.slice(g);case"<":G=w[$.slice(1,-1)];break;default:var ee=+$;if(ee===0)return T;if(ee>s){var A=I(ee/10);return A===0?T:A<=s?p[A-1]===void 0?$.charAt(1):p[A-1]+$.charAt(1):T}G=p[ee-1]}return G===void 0?"":G})}})},5692:function(a,n,u){var c=u("c430"),d=u("c6cd");(a.exports=function(m,M){return d[m]||(d[m]=M!==void 0?M:{})})("versions",[]).push({version:"3.6.5",mode:c?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(a,n,u){var c=u("d066"),d=u("241c"),m=u("7418"),M=u("825a");a.exports=c("Reflect","ownKeys")||function(R){var C=d.f(M(R)),P=m.f;return P?C.concat(P(R)):C}},"5a34":function(a,n,u){var c=u("44e7");a.exports=function(d){if(c(d))throw TypeError("The method doesn't accept regular expressions");return d}},"5c6c":function(a,n){a.exports=function(u,c){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:c}}},"5db7":function(a,n,u){var c=u("23e7"),d=u("a2bf"),m=u("7b0b"),M=u("50c4"),S=u("1c0b"),R=u("65f0");c({target:"Array",proto:!0},{flatMap:function(P){var k=m(this),L=M(k.length),I;return S(P),I=R(k,0),I.length=d(I,k,k,L,0,1,P,arguments.length>1?arguments[1]:void 0),I}})},6547:function(a,n,u){var c=u("a691"),d=u("1d80"),m=function(M){return function(S,R){var C=String(d(S)),P=c(R),k=C.length,L,I;return P<0||P>=k?M?"":void 0:(L=C.charCodeAt(P),L<55296||L>56319||P+1===k||(I=C.charCodeAt(P+1))<56320||I>57343?M?C.charAt(P):L:M?C.slice(P,P+2):(L-55296<<10)+(I-56320)+65536)}};a.exports={codeAt:m(!1),charAt:m(!0)}},"65f0":function(a,n,u){var c=u("861d"),d=u("e8b5"),m=u("b622"),M=m("species");a.exports=function(S,R){var C;return d(S)&&(C=S.constructor,typeof C=="function"&&(C===Array||d(C.prototype))?C=void 0:c(C)&&(C=C[M],C===null&&(C=void 0))),new(C===void 0?Array:C)(R===0?0:R)}},"69f3":function(a,n,u){var c=u("7f9a"),d=u("da84"),m=u("861d"),M=u("9112"),S=u("5135"),R=u("f772"),C=u("d012"),P=d.WeakMap,k,L,I,B=function(V){return I(V)?L(V):k(V,{})},H=function(V){return function(oe){var _;if(!m(oe)||(_=L(oe)).type!==V)throw TypeError("Incompatible receiver, "+V+" required");return _}};if(c){var F=new P,W=F.get,Y=F.has,ie=F.set;k=function(V,oe){return ie.call(F,V,oe),oe},L=function(V){return W.call(F,V)||{}},I=function(V){return Y.call(F,V)}}else{var J=R("state");C[J]=!0,k=function(V,oe){return M(V,J,oe),oe},L=function(V){return S(V,J)?V[J]:{}},I=function(V){return S(V,J)}}a.exports={set:k,get:L,has:I,enforce:B,getterFor:H}},"6eeb":function(a,n,u){var c=u("da84"),d=u("9112"),m=u("5135"),M=u("ce4e"),S=u("8925"),R=u("69f3"),C=R.get,P=R.enforce,k=String(String).split("String");(a.exports=function(L,I,B,H){var F=H?!!H.unsafe:!1,W=H?!!H.enumerable:!1,Y=H?!!H.noTargetGet:!1;if(typeof B=="function"&&(typeof I=="string"&&!m(B,"name")&&d(B,"name",I),P(B).source=k.join(typeof I=="string"?I:"")),L===c){W?L[I]=B:M(I,B);return}else F?!Y&&L[I]&&(W=!0):delete L[I];W?L[I]=B:d(L,I,B)})(Function.prototype,"toString",function(){return typeof this=="function"&&C(this).source||S(this)})},"6f53":function(a,n,u){var c=u("83ab"),d=u("df75"),m=u("fc6a"),M=u("d1e7").f,S=function(R){return function(C){for(var P=m(C),k=d(P),L=k.length,I=0,B=[],H;L>I;)H=k[I++],(!c||M.call(P,H))&&B.push(R?[H,P[H]]:P[H]);return B}};a.exports={entries:S(!0),values:S(!1)}},"73d9":function(a,n,u){var c=u("44d2");c("flatMap")},7418:function(a,n){n.f=Object.getOwnPropertySymbols},"746f":function(a,n,u){var c=u("428f"),d=u("5135"),m=u("e538"),M=u("9bf2").f;a.exports=function(S){var R=c.Symbol||(c.Symbol={});d(R,S)||M(R,S,{value:m.f(S)})}},7839:function(a,n){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(a,n,u){var c=u("1d80");a.exports=function(d){return Object(c(d))}},"7c73":function(a,n,u){var c=u("825a"),d=u("37e8"),m=u("7839"),M=u("d012"),S=u("1be4"),R=u("cc12"),C=u("f772"),P=">",k="<",L="prototype",I="script",B=C("IE_PROTO"),H=function(){},F=function(V){return k+I+P+V+k+"/"+I+P},W=function(V){V.write(F("")),V.close();var oe=V.parentWindow.Object;return V=null,oe},Y=function(){var V=R("iframe"),oe="java"+I+":",_;return V.style.display="none",S.appendChild(V),V.src=String(oe),_=V.contentWindow.document,_.open(),_.write(F("document.F=Object")),_.close(),_.F},ie,J=function(){try{ie=document.domain&&new ActiveXObject("htmlfile")}catch{}J=ie?W(ie):Y();for(var V=m.length;V--;)delete J[L][m[V]];return J()};M[B]=!0,a.exports=Object.create||function(oe,_){var o;return oe!==null?(H[L]=c(oe),o=new H,H[L]=null,o[B]=oe):o=J(),_===void 0?o:d(o,_)}},"7dd0":function(a,n,u){var c=u("23e7"),d=u("9ed3"),m=u("e163"),M=u("d2bb"),S=u("d44e"),R=u("9112"),C=u("6eeb"),P=u("b622"),k=u("c430"),L=u("3f8c"),I=u("ae93"),B=I.IteratorPrototype,H=I.BUGGY_SAFARI_ITERATORS,F=P("iterator"),W="keys",Y="values",ie="entries",J=function(){return this};a.exports=function(V,oe,_,o,f,l,h){d(_,oe,o);var p=function(A){if(A===f&&v)return v;if(!H&&A in g)return g[A];switch(A){case W:return function(){return new _(this,A)};case Y:return function(){return new _(this,A)};case ie:return function(){return new _(this,A)}}return function(){return new _(this)}},w=oe+" Iterator",x=!1,g=V.prototype,s=g[F]||g["@@iterator"]||f&&g[f],v=!H&&s||p(f),T=oe=="Array"&&g.entries||s,$,G,ee;if(T&&($=m(T.call(new V)),B!==Object.prototype&&$.next&&(!k&&m($)!==B&&(M?M($,B):typeof $[F]!="function"&&R($,F,J)),S($,w,!0,!0),k&&(L[w]=J))),f==Y&&s&&s.name!==Y&&(x=!0,v=function(){return s.call(this)}),(!k||h)&&g[F]!==v&&R(g,F,v),L[oe]=v,f)if(G={values:p(Y),keys:l?v:p(W),entries:p(ie)},h)for(ee in G)(H||x||!(ee in g))&&C(g,ee,G[ee]);else c({target:oe,proto:!0,forced:H||x},G);return G}},"7f9a":function(a,n,u){var c=u("da84"),d=u("8925"),m=c.WeakMap;a.exports=typeof m=="function"&&/native code/.test(d(m))},"825a":function(a,n,u){var c=u("861d");a.exports=function(d){if(!c(d))throw TypeError(String(d)+" is not an object");return d}},"83ab":function(a,n,u){var c=u("d039");a.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(a,n,u){var c=u("c04e"),d=u("9bf2"),m=u("5c6c");a.exports=function(M,S,R){var C=c(S);C in M?d.f(M,C,m(0,R)):M[C]=R}},"861d":function(a,n){a.exports=function(u){return typeof u=="object"?u!==null:typeof u=="function"}},8875:function(a,n,u){var c,d,m;(function(M,S){d=[],c=S,m=typeof c=="function"?c.apply(n,d):c,m!==void 0&&(a.exports=m)})(typeof self<"u"?self:this,function(){function M(){var S=Object.getOwnPropertyDescriptor(document,"currentScript");if(!S&&"currentScript"in document&&document.currentScript||S&&S.get!==M&&document.currentScript)return document.currentScript;try{throw new Error}catch(ie){var R=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,C=/@([^@]*):(\d+):(\d+)\s*$/ig,P=R.exec(ie.stack)||C.exec(ie.stack),k=P&&P[1]||!1,L=P&&P[2]||!1,I=document.location.href.replace(document.location.hash,""),B,H,F,W=document.getElementsByTagName("script");k===I&&(B=document.documentElement.outerHTML,H=new RegExp("(?:[^\\n]+?\\n){0,"+(L-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),F=B.replace(H,"$1").trim());for(var Y=0;Y<W.length;Y++)if(W[Y].readyState==="interactive"||W[Y].src===k||k===I&&W[Y].innerHTML&&W[Y].innerHTML.trim()===F)return W[Y];return null}}return M})},8925:function(a,n,u){var c=u("c6cd"),d=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(m){return d.call(m)}),a.exports=c.inspectSource},"8aa5":function(a,n,u){var c=u("6547").charAt;a.exports=function(d,m,M){return m+(M?c(d,m).length:1)}},"8bbf":function(a,n){a.exports=r},"90e3":function(a,n){var u=0,c=Math.random();a.exports=function(d){return"Symbol("+String(d===void 0?"":d)+")_"+(++u+c).toString(36)}},9112:function(a,n,u){var c=u("83ab"),d=u("9bf2"),m=u("5c6c");a.exports=c?function(M,S,R){return d.f(M,S,m(1,R))}:function(M,S,R){return M[S]=R,M}},9263:function(a,n,u){var c=u("ad6d"),d=u("9f7f"),m=RegExp.prototype.exec,M=String.prototype.replace,S=m,R=function(){var L=/a/,I=/b*/g;return m.call(L,"a"),m.call(I,"a"),L.lastIndex!==0||I.lastIndex!==0}(),C=d.UNSUPPORTED_Y||d.BROKEN_CARET,P=/()??/.exec("")[1]!==void 0,k=R||P||C;k&&(S=function(I){var B=this,H,F,W,Y,ie=C&&B.sticky,J=c.call(B),V=B.source,oe=0,_=I;return ie&&(J=J.replace("y",""),J.indexOf("g")===-1&&(J+="g"),_=String(I).slice(B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&I[B.lastIndex-1]!==`
+`)&&(V="(?: "+V+")",_=" "+_,oe++),F=new RegExp("^(?:"+V+")",J)),P&&(F=new RegExp("^"+V+"$(?!\\s)",J)),R&&(H=B.lastIndex),W=m.call(ie?F:B,_),ie?W?(W.input=W.input.slice(oe),W[0]=W[0].slice(oe),W.index=B.lastIndex,B.lastIndex+=W[0].length):B.lastIndex=0:R&&W&&(B.lastIndex=B.global?W.index+W[0].length:H),P&&W&&W.length>1&&M.call(W[0],F,function(){for(Y=1;Y<arguments.length-2;Y++)arguments[Y]===void 0&&(W[Y]=void 0)}),W}),a.exports=S},"94ca":function(a,n,u){var c=u("d039"),d=/#|\.prototype\./,m=function(P,k){var L=S[M(P)];return L==C?!0:L==R?!1:typeof k=="function"?c(k):!!k},M=m.normalize=function(P){return String(P).replace(d,".").toLowerCase()},S=m.data={},R=m.NATIVE="N",C=m.POLYFILL="P";a.exports=m},"99af":function(a,n,u){var c=u("23e7"),d=u("d039"),m=u("e8b5"),M=u("861d"),S=u("7b0b"),R=u("50c4"),C=u("8418"),P=u("65f0"),k=u("1dde"),L=u("b622"),I=u("2d00"),B=L("isConcatSpreadable"),H=9007199254740991,F="Maximum allowed index exceeded",W=I>=51||!d(function(){var V=[];return V[B]=!1,V.concat()[0]!==V}),Y=k("concat"),ie=function(V){if(!M(V))return!1;var oe=V[B];return oe!==void 0?!!oe:m(V)},J=!W||!Y;c({target:"Array",proto:!0,forced:J},{concat:function(oe){var _=S(this),o=P(_,0),f=0,l,h,p,w,x;for(l=-1,p=arguments.length;l<p;l++)if(x=l===-1?_:arguments[l],ie(x)){if(w=R(x.length),f+w>H)throw TypeError(F);for(h=0;h<w;h++,f++)h in x&&C(o,f,x[h])}else{if(f>=H)throw TypeError(F);C(o,f++,x)}return o.length=f,o}})},"9bdd":function(a,n,u){var c=u("825a");a.exports=function(d,m,M,S){try{return S?m(c(M)[0],M[1]):m(M)}catch(C){var R=d.return;throw R!==void 0&&c(R.call(d)),C}}},"9bf2":function(a,n,u){var c=u("83ab"),d=u("0cfb"),m=u("825a"),M=u("c04e"),S=Object.defineProperty;n.f=c?S:function(C,P,k){if(m(C),P=M(P,!0),m(k),d)try{return S(C,P,k)}catch{}if("get"in k||"set"in k)throw TypeError("Accessors not supported");return"value"in k&&(C[P]=k.value),C}},"9ed3":function(a,n,u){var c=u("ae93").IteratorPrototype,d=u("7c73"),m=u("5c6c"),M=u("d44e"),S=u("3f8c"),R=function(){return this};a.exports=function(C,P,k){var L=P+" Iterator";return C.prototype=d(c,{next:m(1,k)}),M(C,L,!1,!0),S[L]=R,C}},"9f7f":function(a,n,u){var c=u("d039");function d(m,M){return RegExp(m,M)}n.UNSUPPORTED_Y=c(function(){var m=d("a","y");return m.lastIndex=2,m.exec("abcd")!=null}),n.BROKEN_CARET=c(function(){var m=d("^r","gy");return m.lastIndex=2,m.exec("str")!=null})},a2bf:function(a,n,u){var c=u("e8b5"),d=u("50c4"),m=u("0366"),M=function(S,R,C,P,k,L,I,B){for(var H=k,F=0,W=I?m(I,B,3):!1,Y;F<P;){if(F in C){if(Y=W?W(C[F],F,R):C[F],L>0&&c(Y))H=M(S,R,Y,d(Y.length),H,L-1)-1;else{if(H>=9007199254740991)throw TypeError("Exceed the acceptable array length");S[H]=Y}H++}F++}return H};a.exports=M},a352:function(a,n){a.exports=i},a434:function(a,n,u){var c=u("23e7"),d=u("23cb"),m=u("a691"),M=u("50c4"),S=u("7b0b"),R=u("65f0"),C=u("8418"),P=u("1dde"),k=u("ae40"),L=P("splice"),I=k("splice",{ACCESSORS:!0,0:0,1:2}),B=Math.max,H=Math.min,F=9007199254740991,W="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!L||!I},{splice:function(ie,J){var V=S(this),oe=M(V.length),_=d(ie,oe),o=arguments.length,f,l,h,p,w,x;if(o===0?f=l=0:o===1?(f=0,l=oe-_):(f=o-2,l=H(B(m(J),0),oe-_)),oe+f-l>F)throw TypeError(W);for(h=R(V,l),p=0;p<l;p++)w=_+p,w in V&&C(h,p,V[w]);if(h.length=l,f<l){for(p=_;p<oe-l;p++)w=p+l,x=p+f,w in V?V[x]=V[w]:delete V[x];for(p=oe;p>oe-l+f;p--)delete V[p-1]}else if(f>l)for(p=oe-l;p>_;p--)w=p+l-1,x=p+f-1,w in V?V[x]=V[w]:delete V[x];for(p=0;p<f;p++)V[p+_]=arguments[p+2];return V.length=oe-l+f,h}})},a4d3:function(a,n,u){var c=u("23e7"),d=u("da84"),m=u("d066"),M=u("c430"),S=u("83ab"),R=u("4930"),C=u("fdbf"),P=u("d039"),k=u("5135"),L=u("e8b5"),I=u("861d"),B=u("825a"),H=u("7b0b"),F=u("fc6a"),W=u("c04e"),Y=u("5c6c"),ie=u("7c73"),J=u("df75"),V=u("241c"),oe=u("057f"),_=u("7418"),o=u("06cf"),f=u("9bf2"),l=u("d1e7"),h=u("9112"),p=u("6eeb"),w=u("5692"),x=u("f772"),g=u("d012"),s=u("90e3"),v=u("b622"),T=u("e538"),$=u("746f"),G=u("d44e"),ee=u("69f3"),A=u("b727").forEach,E=x("hidden"),U="Symbol",K="prototype",Z=v("toPrimitive"),b=ee.set,y=ee.getterFor(U),O=Object[K],q=d.Symbol,X=m("JSON","stringify"),D=o.f,N=f.f,j=oe.f,z=l.f,se=w("symbols"),te=w("op-symbols"),ne=w("string-to-symbol-registry"),Ee=w("symbol-to-string-registry"),Q=w("wks"),ue=d.QObject,le=!ue||!ue[K]||!ue[K].findChild,ce=S&&P(function(){return ie(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a!=7})?function(qe,ye,_e){var Ve=D(O,ye);Ve&&delete O[ye],N(qe,ye,_e),Ve&&qe!==O&&N(O,ye,Ve)}:N,pe=function(qe,ye){var _e=se[qe]=ie(q[K]);return b(_e,{type:U,tag:qe,description:ye}),S||(_e.description=ye),_e},de=C?function(qe){return typeof qe=="symbol"}:function(qe){return Object(qe)instanceof q},ae=function(ye,_e,Ve){ye===O&&ae(te,_e,Ve),B(ye);var ge=W(_e,!0);return B(Ve),k(se,ge)?(Ve.enumerable?(k(ye,E)&&ye[E][ge]&&(ye[E][ge]=!1),Ve=ie(Ve,{enumerable:Y(0,!1)})):(k(ye,E)||N(ye,E,Y(1,{})),ye[E][ge]=!0),ce(ye,ge,Ve)):N(ye,ge,Ve)},fe=function(ye,_e){B(ye);var Ve=F(_e),ge=J(Ve).concat(be(Ve));return A(ge,function(xe){(!S||ve.call(Ve,xe))&&ae(ye,xe,Ve[xe])}),ye},Te=function(ye,_e){return _e===void 0?ie(ye):fe(ie(ye),_e)},ve=function(ye){var _e=W(ye,!0),Ve=z.call(this,_e);return this===O&&k(se,_e)&&!k(te,_e)?!1:Ve||!k(this,_e)||!k(se,_e)||k(this,E)&&this[E][_e]?Ve:!0},Me=function(ye,_e){var Ve=F(ye),ge=W(_e,!0);if(!(Ve===O&&k(se,ge)&&!k(te,ge))){var xe=D(Ve,ge);return xe&&k(se,ge)&&!(k(Ve,E)&&Ve[E][ge])&&(xe.enumerable=!0),xe}},Ke=function(ye){var _e=j(F(ye)),Ve=[];return A(_e,function(ge){!k(se,ge)&&!k(g,ge)&&Ve.push(ge)}),Ve},be=function(ye){var _e=ye===O,Ve=j(_e?te:F(ye)),ge=[];return A(Ve,function(xe){k(se,xe)&&(!_e||k(O,xe))&&ge.push(se[xe])}),ge};if(R||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var ye=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),_e=s(ye),Ve=function(ge){this===O&&Ve.call(te,ge),k(this,E)&&k(this[E],_e)&&(this[E][_e]=!1),ce(this,_e,Y(1,ge))};return S&&le&&ce(O,_e,{configurable:!0,set:Ve}),pe(_e,ye)},p(q[K],"toString",function(){return y(this).tag}),p(q,"withoutSetter",function(qe){return pe(s(qe),qe)}),l.f=ve,f.f=ae,o.f=Me,V.f=oe.f=Ke,_.f=be,T.f=function(qe){return pe(v(qe),qe)},S&&(N(q[K],"description",{configurable:!0,get:function(){return y(this).description}}),M||p(O,"propertyIsEnumerable",ve,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!R,sham:!R},{Symbol:q}),A(J(Q),function(qe){$(qe)}),c({target:U,stat:!0,forced:!R},{for:function(qe){var ye=String(qe);if(k(ne,ye))return ne[ye];var _e=q(ye);return ne[ye]=_e,Ee[_e]=ye,_e},keyFor:function(ye){if(!de(ye))throw TypeError(ye+" is not a symbol");if(k(Ee,ye))return Ee[ye]},useSetter:function(){le=!0},useSimple:function(){le=!1}}),c({target:"Object",stat:!0,forced:!R,sham:!S},{create:Te,defineProperty:ae,defineProperties:fe,getOwnPropertyDescriptor:Me}),c({target:"Object",stat:!0,forced:!R},{getOwnPropertyNames:Ke,getOwnPropertySymbols:be}),c({target:"Object",stat:!0,forced:P(function(){_.f(1)})},{getOwnPropertySymbols:function(ye){return _.f(H(ye))}}),X){var Se=!R||P(function(){var qe=q();return X([qe])!="[null]"||X({a:qe})!="{}"||X(Object(qe))!="{}"});c({target:"JSON",stat:!0,forced:Se},{stringify:function(ye,_e,Ve){for(var ge=[ye],xe=1,Xe;arguments.length>xe;)ge.push(arguments[xe++]);if(Xe=_e,!(!I(_e)&&ye===void 0||de(ye)))return L(_e)||(_e=function(Re,Le){if(typeof Xe=="function"&&(Le=Xe.call(this,Re,Le)),!de(Le))return Le}),ge[1]=_e,X.apply(null,ge)}})}q[K][Z]||h(q[K],Z,q[K].valueOf),G(q,U),g[E]=!0},a630:function(a,n,u){var c=u("23e7"),d=u("4df4"),m=u("1c7e"),M=!m(function(S){Array.from(S)});c({target:"Array",stat:!0,forced:M},{from:d})},a640:function(a,n,u){var c=u("d039");a.exports=function(d,m){var M=[][d];return!!M&&c(function(){M.call(null,m||function(){throw 1},1)})}},a691:function(a,n){var u=Math.ceil,c=Math.floor;a.exports=function(d){return isNaN(d=+d)?0:(d>0?c:u)(d)}},ab13:function(a,n,u){var c=u("b622"),d=c("match");a.exports=function(m){var M=/./;try{"/./"[m](M)}catch{try{return M[d]=!1,"/./"[m](M)}catch{}}return!1}},ac1f:function(a,n,u){var c=u("23e7"),d=u("9263");c({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},ad6d:function(a,n,u){var c=u("825a");a.exports=function(){var d=c(this),m="";return d.global&&(m+="g"),d.ignoreCase&&(m+="i"),d.multiline&&(m+="m"),d.dotAll&&(m+="s"),d.unicode&&(m+="u"),d.sticky&&(m+="y"),m}},ae40:function(a,n,u){var c=u("83ab"),d=u("d039"),m=u("5135"),M=Object.defineProperty,S={},R=function(C){throw C};a.exports=function(C,P){if(m(S,C))return S[C];P||(P={});var k=[][C],L=m(P,"ACCESSORS")?P.ACCESSORS:!1,I=m(P,0)?P[0]:R,B=m(P,1)?P[1]:void 0;return S[C]=!!k&&!d(function(){if(L&&!c)return!0;var H={length:-1};L?M(H,1,{enumerable:!0,get:R}):H[1]=1,k.call(H,I,B)})}},ae93:function(a,n,u){var c=u("e163"),d=u("9112"),m=u("5135"),M=u("b622"),S=u("c430"),R=M("iterator"),C=!1,P=function(){return this},k,L,I;[].keys&&(I=[].keys(),"next"in I?(L=c(c(I)),L!==Object.prototype&&(k=L)):C=!0),k==null&&(k={}),!S&&!m(k,R)&&d(k,R,P),a.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:C}},b041:function(a,n,u){var c=u("00ee"),d=u("f5df");a.exports=c?{}.toString:function(){return"[object "+d(this)+"]"}},b0c0:function(a,n,u){var c=u("83ab"),d=u("9bf2").f,m=Function.prototype,M=m.toString,S=/^\s*function ([^ (]*)/,R="name";c&&!(R in m)&&d(m,R,{configurable:!0,get:function(){try{return M.call(this).match(S)[1]}catch{return""}}})},b622:function(a,n,u){var c=u("da84"),d=u("5692"),m=u("5135"),M=u("90e3"),S=u("4930"),R=u("fdbf"),C=d("wks"),P=c.Symbol,k=R?P:P&&P.withoutSetter||M;a.exports=function(L){return m(C,L)||(S&&m(P,L)?C[L]=P[L]:C[L]=k("Symbol."+L)),C[L]}},b64b:function(a,n,u){var c=u("23e7"),d=u("7b0b"),m=u("df75"),M=u("d039"),S=M(function(){m(1)});c({target:"Object",stat:!0,forced:S},{keys:function(C){return m(d(C))}})},b727:function(a,n,u){var c=u("0366"),d=u("44ad"),m=u("7b0b"),M=u("50c4"),S=u("65f0"),R=[].push,C=function(P){var k=P==1,L=P==2,I=P==3,B=P==4,H=P==6,F=P==5||H;return function(W,Y,ie,J){for(var V=m(W),oe=d(V),_=c(Y,ie,3),o=M(oe.length),f=0,l=J||S,h=k?l(W,o):L?l(W,0):void 0,p,w;o>f;f++)if((F||f in oe)&&(p=oe[f],w=_(p,f,V),P)){if(k)h[f]=w;else if(w)switch(P){case 3:return!0;case 5:return p;case 6:return f;case 2:R.call(h,p)}else if(B)return!1}return H?-1:I||B?B:h}};a.exports={forEach:C(0),map:C(1),filter:C(2),some:C(3),every:C(4),find:C(5),findIndex:C(6)}},c04e:function(a,n,u){var c=u("861d");a.exports=function(d,m){if(!c(d))return d;var M,S;if(m&&typeof(M=d.toString)=="function"&&!c(S=M.call(d))||typeof(M=d.valueOf)=="function"&&!c(S=M.call(d))||!m&&typeof(M=d.toString)=="function"&&!c(S=M.call(d)))return S;throw TypeError("Can't convert object to primitive value")}},c430:function(a,n){a.exports=!1},c6b6:function(a,n){var u={}.toString;a.exports=function(c){return u.call(c).slice(8,-1)}},c6cd:function(a,n,u){var c=u("da84"),d=u("ce4e"),m="__core-js_shared__",M=c[m]||d(m,{});a.exports=M},c740:function(a,n,u){var c=u("23e7"),d=u("b727").findIndex,m=u("44d2"),M=u("ae40"),S="findIndex",R=!0,C=M(S);S in[]&&Array(1)[S](function(){R=!1}),c({target:"Array",proto:!0,forced:R||!C},{findIndex:function(k){return d(this,k,arguments.length>1?arguments[1]:void 0)}}),m(S)},c8ba:function(a,n){var u;u=function(){return this}();try{u=u||new Function("return this")()}catch{typeof window=="object"&&(u=window)}a.exports=u},c975:function(a,n,u){var c=u("23e7"),d=u("4d64").indexOf,m=u("a640"),M=u("ae40"),S=[].indexOf,R=!!S&&1/[1].indexOf(1,-0)<0,C=m("indexOf"),P=M("indexOf",{ACCESSORS:!0,1:0});c({target:"Array",proto:!0,forced:R||!C||!P},{indexOf:function(L){return R?S.apply(this,arguments)||0:d(this,L,arguments.length>1?arguments[1]:void 0)}})},ca84:function(a,n,u){var c=u("5135"),d=u("fc6a"),m=u("4d64").indexOf,M=u("d012");a.exports=function(S,R){var C=d(S),P=0,k=[],L;for(L in C)!c(M,L)&&c(C,L)&&k.push(L);for(;R.length>P;)c(C,L=R[P++])&&(~m(k,L)||k.push(L));return k}},caad:function(a,n,u){var c=u("23e7"),d=u("4d64").includes,m=u("44d2"),M=u("ae40"),S=M("indexOf",{ACCESSORS:!0,1:0});c({target:"Array",proto:!0,forced:!S},{includes:function(C){return d(this,C,arguments.length>1?arguments[1]:void 0)}}),m("includes")},cc12:function(a,n,u){var c=u("da84"),d=u("861d"),m=c.document,M=d(m)&&d(m.createElement);a.exports=function(S){return M?m.createElement(S):{}}},ce4e:function(a,n,u){var c=u("da84"),d=u("9112");a.exports=function(m,M){try{d(c,m,M)}catch{c[m]=M}return M}},d012:function(a,n){a.exports={}},d039:function(a,n){a.exports=function(u){try{return!!u()}catch{return!0}}},d066:function(a,n,u){var c=u("428f"),d=u("da84"),m=function(M){return typeof M=="function"?M:void 0};a.exports=function(M,S){return arguments.length<2?m(c[M])||m(d[M]):c[M]&&c[M][S]||d[M]&&d[M][S]}},d1e7:function(a,n,u){var c={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,m=d&&!c.call({1:2},1);n.f=m?function(S){var R=d(this,S);return!!R&&R.enumerable}:c},d28b:function(a,n,u){var c=u("746f");c("iterator")},d2bb:function(a,n,u){var c=u("825a"),d=u("3bbe");a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,M={},S;try{S=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,S.call(M,[]),m=M instanceof Array}catch{}return function(C,P){return c(C),d(P),m?S.call(C,P):C.__proto__=P,C}}():void 0)},d3b7:function(a,n,u){var c=u("00ee"),d=u("6eeb"),m=u("b041");c||d(Object.prototype,"toString",m,{unsafe:!0})},d44e:function(a,n,u){var c=u("9bf2").f,d=u("5135"),m=u("b622"),M=m("toStringTag");a.exports=function(S,R,C){S&&!d(S=C?S:S.prototype,M)&&c(S,M,{configurable:!0,value:R})}},d58f:function(a,n,u){var c=u("1c0b"),d=u("7b0b"),m=u("44ad"),M=u("50c4"),S=function(R){return function(C,P,k,L){c(P);var I=d(C),B=m(I),H=M(I.length),F=R?H-1:0,W=R?-1:1;if(k<2)for(;;){if(F in B){L=B[F],F+=W;break}if(F+=W,R?F<0:H<=F)throw TypeError("Reduce of empty array with no initial value")}for(;R?F>=0:H>F;F+=W)F in B&&(L=P(L,B[F],F,I));return L}};a.exports={left:S(!1),right:S(!0)}},d784:function(a,n,u){u("ac1f");var c=u("6eeb"),d=u("d039"),m=u("b622"),M=u("9263"),S=u("9112"),R=m("species"),C=!d(function(){var B=/./;return B.exec=function(){var H=[];return H.groups={a:"7"},H},"".replace(B,"$<a>")!=="7"}),P=function(){return"a".replace(/./,"$0")==="$0"}(),k=m("replace"),L=function(){return/./[k]?/./[k]("a","$0")==="":!1}(),I=!d(function(){var B=/(?:)/,H=B.exec;B.exec=function(){return H.apply(this,arguments)};var F="ab".split(B);return F.length!==2||F[0]!=="a"||F[1]!=="b"});a.exports=function(B,H,F,W){var Y=m(B),ie=!d(function(){var f={};return f[Y]=function(){return 7},""[B](f)!=7}),J=ie&&!d(function(){var f=!1,l=/a/;return B==="split"&&(l={},l.constructor={},l.constructor[R]=function(){return l},l.flags="",l[Y]=/./[Y]),l.exec=function(){return f=!0,null},l[Y](""),!f});if(!ie||!J||B==="replace"&&!(C&&P&&!L)||B==="split"&&!I){var V=/./[Y],oe=F(Y,""[B],function(f,l,h,p,w){return l.exec===M?ie&&!w?{done:!0,value:V.call(l,h,p)}:{done:!0,value:f.call(h,l,p)}:{done:!1}},{REPLACE_KEEPS_$0:P,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:L}),_=oe[0],o=oe[1];c(String.prototype,B,_),c(RegExp.prototype,Y,H==2?function(f,l){return o.call(f,this,l)}:function(f){return o.call(f,this)})}W&&S(RegExp.prototype[Y],"sham",!0)}},d81d:function(a,n,u){var c=u("23e7"),d=u("b727").map,m=u("1dde"),M=u("ae40"),S=m("map"),R=M("map");c({target:"Array",proto:!0,forced:!S||!R},{map:function(P){return d(this,P,arguments.length>1?arguments[1]:void 0)}})},da84:function(a,n,u){(function(c){var d=function(m){return m&&m.Math==Math&&m};a.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof c=="object"&&c)||Function("return this")()}).call(this,u("c8ba"))},dbb4:function(a,n,u){var c=u("23e7"),d=u("83ab"),m=u("56ef"),M=u("fc6a"),S=u("06cf"),R=u("8418");c({target:"Object",stat:!0,sham:!d},{getOwnPropertyDescriptors:function(P){for(var k=M(P),L=S.f,I=m(k),B={},H=0,F,W;I.length>H;)W=L(k,F=I[H++]),W!==void 0&&R(B,F,W);return B}})},dbf1:function(a,n,u){(function(c){u.d(n,"a",function(){return m});function d(){return typeof window<"u"?window.console:c.console}var m=d()}).call(this,u("c8ba"))},ddb0:function(a,n,u){var c=u("da84"),d=u("fdbc"),m=u("e260"),M=u("9112"),S=u("b622"),R=S("iterator"),C=S("toStringTag"),P=m.values;for(var k in d){var L=c[k],I=L&&L.prototype;if(I){if(I[R]!==P)try{M(I,R,P)}catch{I[R]=P}if(I[C]||M(I,C,k),d[k]){for(var B in m)if(I[B]!==m[B])try{M(I,B,m[B])}catch{I[B]=m[B]}}}}},df75:function(a,n,u){var c=u("ca84"),d=u("7839");a.exports=Object.keys||function(M){return c(M,d)}},e01a:function(a,n,u){var c=u("23e7"),d=u("83ab"),m=u("da84"),M=u("5135"),S=u("861d"),R=u("9bf2").f,C=u("e893"),P=m.Symbol;if(d&&typeof P=="function"&&(!("description"in P.prototype)||P().description!==void 0)){var k={},L=function(){var Y=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),ie=this instanceof L?new P(Y):Y===void 0?P():P(Y);return Y===""&&(k[ie]=!0),ie};C(L,P);var I=L.prototype=P.prototype;I.constructor=L;var B=I.toString,H=String(P("test"))=="Symbol(test)",F=/^Symbol\((.*)\)[^)]+$/;R(I,"description",{configurable:!0,get:function(){var Y=S(this)?this.valueOf():this,ie=B.call(Y);if(M(k,Y))return"";var J=H?ie.slice(7,-1):ie.replace(F,"$1");return J===""?void 0:J}}),c({global:!0,forced:!0},{Symbol:L})}},e163:function(a,n,u){var c=u("5135"),d=u("7b0b"),m=u("f772"),M=u("e177"),S=m("IE_PROTO"),R=Object.prototype;a.exports=M?Object.getPrototypeOf:function(C){return C=d(C),c(C,S)?C[S]:typeof C.constructor=="function"&&C instanceof C.constructor?C.constructor.prototype:C instanceof Object?R:null}},e177:function(a,n,u){var c=u("d039");a.exports=!c(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},e260:function(a,n,u){var c=u("fc6a"),d=u("44d2"),m=u("3f8c"),M=u("69f3"),S=u("7dd0"),R="Array Iterator",C=M.set,P=M.getterFor(R);a.exports=S(Array,"Array",function(k,L){C(this,{type:R,target:c(k),index:0,kind:L})},function(){var k=P(this),L=k.target,I=k.kind,B=k.index++;return!L||B>=L.length?(k.target=void 0,{value:void 0,done:!0}):I=="keys"?{value:B,done:!1}:I=="values"?{value:L[B],done:!1}:{value:[B,L[B]],done:!1}},"values"),m.Arguments=m.Array,d("keys"),d("values"),d("entries")},e439:function(a,n,u){var c=u("23e7"),d=u("d039"),m=u("fc6a"),M=u("06cf").f,S=u("83ab"),R=d(function(){M(1)}),C=!S||R;c({target:"Object",stat:!0,forced:C,sham:!S},{getOwnPropertyDescriptor:function(k,L){return M(m(k),L)}})},e538:function(a,n,u){var c=u("b622");n.f=c},e893:function(a,n,u){var c=u("5135"),d=u("56ef"),m=u("06cf"),M=u("9bf2");a.exports=function(S,R){for(var C=d(R),P=M.f,k=m.f,L=0;L<C.length;L++){var I=C[L];c(S,I)||P(S,I,k(R,I))}}},e8b5:function(a,n,u){var c=u("c6b6");a.exports=Array.isArray||function(m){return c(m)=="Array"}},e95a:function(a,n,u){var c=u("b622"),d=u("3f8c"),m=c("iterator"),M=Array.prototype;a.exports=function(S){return S!==void 0&&(d.Array===S||M[m]===S)}},f5df:function(a,n,u){var c=u("00ee"),d=u("c6b6"),m=u("b622"),M=m("toStringTag"),S=d(function(){return arguments}())=="Arguments",R=function(C,P){try{return C[P]}catch{}};a.exports=c?d:function(C){var P,k,L;return C===void 0?"Undefined":C===null?"Null":typeof(k=R(P=Object(C),M))=="string"?k:S?d(P):(L=d(P))=="Object"&&typeof P.callee=="function"?"Arguments":L}},f772:function(a,n,u){var c=u("5692"),d=u("90e3"),m=c("keys");a.exports=function(M){return m[M]||(m[M]=d(M))}},fb15:function(a,n,u){if(u.r(n),typeof window<"u"){var c=window.document.currentScript;{var d=u("8875");c=d(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:d})}var m=c&&c.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);m&&(u.p=m[1])}u("99af"),u("4de4"),u("4160"),u("c975"),u("d81d"),u("a434"),u("159b"),u("a4d3"),u("e439"),u("dbb4"),u("b64b");function M(de,ae,fe){return ae in de?Object.defineProperty(de,ae,{value:fe,enumerable:!0,configurable:!0,writable:!0}):de[ae]=fe,de}function S(de,ae){var fe=Object.keys(de);if(Object.getOwnPropertySymbols){var Te=Object.getOwnPropertySymbols(de);ae&&(Te=Te.filter(function(ve){return Object.getOwnPropertyDescriptor(de,ve).enumerable})),fe.push.apply(fe,Te)}return fe}function R(de){for(var ae=1;ae<arguments.length;ae++){var fe=arguments[ae]!=null?arguments[ae]:{};ae%2?S(Object(fe),!0).forEach(function(Te){M(de,Te,fe[Te])}):Object.getOwnPropertyDescriptors?Object.defineProperties(de,Object.getOwnPropertyDescriptors(fe)):S(Object(fe)).forEach(function(Te){Object.defineProperty(de,Te,Object.getOwnPropertyDescriptor(fe,Te))})}return de}function C(de){if(Array.isArray(de))return de}u("e01a"),u("d28b"),u("e260"),u("d3b7"),u("3ca3"),u("ddb0");function P(de,ae){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(de)))){var fe=[],Te=!0,ve=!1,Me=void 0;try{for(var Ke=de[Symbol.iterator](),be;!(Te=(be=Ke.next()).done)&&(fe.push(be.value),!(ae&&fe.length===ae));Te=!0);}catch(Se){ve=!0,Me=Se}finally{try{!Te&&Ke.return!=null&&Ke.return()}finally{if(ve)throw Me}}return fe}}u("a630"),u("fb6a"),u("b0c0"),u("25f0");function k(de,ae){(ae==null||ae>de.length)&&(ae=de.length);for(var fe=0,Te=new Array(ae);fe<ae;fe++)Te[fe]=de[fe];return Te}function L(de,ae){if(de){if(typeof de=="string")return k(de,ae);var fe=Object.prototype.toString.call(de).slice(8,-1);if(fe==="Object"&&de.constructor&&(fe=de.constructor.name),fe==="Map"||fe==="Set")return Array.from(de);if(fe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(fe))return k(de,ae)}}function I(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B(de,ae){return C(de)||P(de,ae)||L(de,ae)||I()}function H(de){if(Array.isArray(de))return k(de)}function F(de){if(typeof Symbol<"u"&&Symbol.iterator in Object(de))return Array.from(de)}function W(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y(de){return H(de)||F(de)||L(de)||W()}var ie=u("a352"),J=u.n(ie);function V(de){de.parentElement!==null&&de.parentElement.removeChild(de)}function oe(de,ae,fe){var Te=fe===0?de.children[0]:de.children[fe-1].nextSibling;de.insertBefore(ae,Te)}var _=u("dbf1");u("13d5"),u("4fad"),u("ac1f"),u("5319");function o(de){var ae=Object.create(null);return function(Te){var ve=ae[Te];return ve||(ae[Te]=de(Te))}}var f=/-(\w)/g,l=o(function(de){return de.replace(f,function(ae,fe){return fe.toUpperCase()})});u("5db7"),u("73d9");var h=["Start","Add","Remove","Update","End"],p=["Choose","Unchoose","Sort","Filter","Clone"],w=["Move"],x=[w,h,p].flatMap(function(de){return de}).map(function(de){return"on".concat(de)}),g={manage:w,manageAndEmit:h,emit:p};function s(de){return x.indexOf(de)!==-1}u("caad"),u("2ca0");var v=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function T(de){return v.includes(de)}function $(de){return["transition-group","TransitionGroup"].includes(de)}function G(de){return["id","class","role","style"].includes(de)||de.startsWith("data-")||de.startsWith("aria-")||de.startsWith("on")}function ee(de){return de.reduce(function(ae,fe){var Te=B(fe,2),ve=Te[0],Me=Te[1];return ae[ve]=Me,ae},{})}function A(de){var ae=de.$attrs,fe=de.componentData,Te=fe===void 0?{}:fe,ve=ee(Object.entries(ae).filter(function(Me){var Ke=B(Me,2),be=Ke[0];return Ke[1],G(be)}));return R(R({},ve),Te)}function E(de){var ae=de.$attrs,fe=de.callBackBuilder,Te=ee(U(ae));Object.entries(fe).forEach(function(Me){var Ke=B(Me,2),be=Ke[0],Se=Ke[1];g[be].forEach(function(qe){Te["on".concat(qe)]=Se(qe)})});var ve="[data-draggable]".concat(Te.draggable||"");return R(R({},Te),{},{draggable:ve})}function U(de){return Object.entries(de).filter(function(ae){var fe=B(ae,2),Te=fe[0];return fe[1],!G(Te)}).map(function(ae){var fe=B(ae,2),Te=fe[0],ve=fe[1];return[l(Te),ve]}).filter(function(ae){var fe=B(ae,2),Te=fe[0];return fe[1],!s(Te)})}u("c740");function K(de,ae){if(!(de instanceof ae))throw new TypeError("Cannot call a class as a function")}function Z(de,ae){for(var fe=0;fe<ae.length;fe++){var Te=ae[fe];Te.enumerable=Te.enumerable||!1,Te.configurable=!0,"value"in Te&&(Te.writable=!0),Object.defineProperty(de,Te.key,Te)}}function b(de,ae,fe){return ae&&Z(de.prototype,ae),fe&&Z(de,fe),de}var y=function(ae){var fe=ae.el;return fe},O=function(ae,fe){return ae.__draggable_context=fe},q=function(ae){return ae.__draggable_context},X=function(){function de(ae){var fe=ae.nodes,Te=fe.header,ve=fe.default,Me=fe.footer,Ke=ae.root,be=ae.realList;K(this,de),this.defaultNodes=ve,this.children=[].concat(Y(Te),Y(ve),Y(Me)),this.externalComponent=Ke.externalComponent,this.rootTransition=Ke.transition,this.tag=Ke.tag,this.realList=be}return b(de,[{key:"render",value:function(fe,Te){var ve=this.tag,Me=this.children,Ke=this._isRootComponent,be=Ke?{default:function(){return Me}}:Me;return fe(ve,Te,be)}},{key:"updated",value:function(){var fe=this.defaultNodes,Te=this.realList;fe.forEach(function(ve,Me){O(y(ve),{element:Te[Me],index:Me})})}},{key:"getUnderlyingVm",value:function(fe){return q(fe)}},{key:"getVmIndexFromDomIndex",value:function(fe,Te){var ve=this.defaultNodes,Me=ve.length,Ke=Te.children,be=Ke.item(fe);if(be===null)return Me;var Se=q(be);if(Se)return Se.index;if(Me===0)return 0;var qe=y(ve[0]),ye=Y(Ke).findIndex(function(_e){return _e===qe});return fe<ye?0:Me}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),de}(),D=u("8bbf");function N(de,ae){var fe=de[ae];return fe?fe():[]}function j(de){var ae=de.$slots,fe=de.realList,Te=de.getKey,ve=fe||[],Me=["header","footer"].map(function(_e){return N(ae,_e)}),Ke=B(Me,2),be=Ke[0],Se=Ke[1],qe=ae.item;if(!qe)throw new Error("draggable element must have an item slot");var ye=ve.flatMap(function(_e,Ve){return qe({element:_e,index:Ve}).map(function(ge){return ge.key=Te(_e),ge.props=R(R({},ge.props||{}),{},{"data-draggable":!0}),ge})});if(ye.length!==ve.length)throw new Error("Item slot must have only one child");return{header:be,footer:Se,default:ye}}function z(de){var ae=$(de),fe=!T(de)&&!ae;return{transition:ae,externalComponent:fe,tag:fe?Object(D.resolveComponent)(de):ae?D.TransitionGroup:de}}function se(de){var ae=de.$slots,fe=de.tag,Te=de.realList,ve=de.getKey,Me=j({$slots:ae,realList:Te,getKey:ve}),Ke=z(fe);return new X({nodes:Me,root:Ke,realList:Te})}function te(de,ae){var fe=this;Object(D.nextTick)(function(){return fe.$emit(de.toLowerCase(),ae)})}function ne(de){var ae=this;return function(fe,Te){if(ae.realList!==null)return ae["onDrag".concat(de)](fe,Te)}}function Ee(de){var ae=this,fe=ne.call(this,de);return function(Te,ve){fe.call(ae,Te,ve),te.call(ae,de,Te)}}var Q=null,ue={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(ae){return ae}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},le=["update:modelValue","change"].concat(Y([].concat(Y(g.manageAndEmit),Y(g.emit)).map(function(de){return de.toLowerCase()}))),ce=Object(D.defineComponent)({name:"draggable",inheritAttrs:!1,props:ue,emits:le,data:function(){return{error:!1}},render:function(){try{this.error=!1;var ae=this.$slots,fe=this.$attrs,Te=this.tag,ve=this.componentData,Me=this.realList,Ke=this.getKey,be=se({$slots:ae,tag:Te,realList:Me,getKey:Ke});this.componentStructure=be;var Se=A({$attrs:fe,componentData:ve});return be.render(D.h,Se)}catch(qe){return this.error=!0,Object(D.h)("pre",{style:{color:"red"}},qe.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&_.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var ae=this;if(!this.error){var fe=this.$attrs,Te=this.$el,ve=this.componentStructure;ve.updated();var Me=E({$attrs:fe,callBackBuilder:{manageAndEmit:function(Se){return Ee.call(ae,Se)},emit:function(Se){return te.bind(ae,Se)},manage:function(Se){return ne.call(ae,Se)}}}),Ke=Te.nodeType===1?Te:Te.parentElement;this._sortable=new J.a(Ke,Me),this.targetDomElement=Ke,Ke.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var ae=this.list;return ae||this.modelValue},getKey:function(){var ae=this.itemKey;return typeof ae=="function"?ae:function(fe){return fe[ae]}}},watch:{$attrs:{handler:function(ae){var fe=this._sortable;fe&&U(ae).forEach(function(Te){var ve=B(Te,2),Me=ve[0],Ke=ve[1];fe.option(Me,Ke)})},deep:!0}},methods:{getUnderlyingVm:function(ae){return this.componentStructure.getUnderlyingVm(ae)||null},getUnderlyingPotencialDraggableComponent:function(ae){return ae.__draggable_component__},emitChanges:function(ae){var fe=this;Object(D.nextTick)(function(){return fe.$emit("change",ae)})},alterList:function(ae){if(this.list){ae(this.list);return}var fe=Y(this.modelValue);ae(fe),this.$emit("update:modelValue",fe)},spliceList:function(){var ae=arguments,fe=function(ve){return ve.splice.apply(ve,Y(ae))};this.alterList(fe)},updatePosition:function(ae,fe){var Te=function(Me){return Me.splice(fe,0,Me.splice(ae,1)[0])};this.alterList(Te)},getRelatedContextFromMoveEvent:function(ae){var fe=ae.to,Te=ae.related,ve=this.getUnderlyingPotencialDraggableComponent(fe);if(!ve)return{component:ve};var Me=ve.realList,Ke={list:Me,component:ve};if(fe!==Te&&Me){var be=ve.getUnderlyingVm(Te)||{};return R(R({},be),Ke)}return Ke},getVmIndexFromDomIndex:function(ae){return this.componentStructure.getVmIndexFromDomIndex(ae,this.targetDomElement)},onDragStart:function(ae){this.context=this.getUnderlyingVm(ae.item),ae.item._underlying_vm_=this.clone(this.context.element),Q=ae.item},onDragAdd:function(ae){var fe=ae.item._underlying_vm_;if(fe!==void 0){V(ae.item);var Te=this.getVmIndexFromDomIndex(ae.newIndex);this.spliceList(Te,0,fe);var ve={element:fe,newIndex:Te};this.emitChanges({added:ve})}},onDragRemove:function(ae){if(oe(this.$el,ae.item,ae.oldIndex),ae.pullMode==="clone"){V(ae.clone);return}var fe=this.context,Te=fe.index,ve=fe.element;this.spliceList(Te,1);var Me={element:ve,oldIndex:Te};this.emitChanges({removed:Me})},onDragUpdate:function(ae){V(ae.item),oe(ae.from,ae.item,ae.oldIndex);var fe=this.context.index,Te=this.getVmIndexFromDomIndex(ae.newIndex);this.updatePosition(fe,Te);var ve={element:this.context.element,oldIndex:fe,newIndex:Te};this.emitChanges({moved:ve})},computeFutureIndex:function(ae,fe){if(!ae.element)return 0;var Te=Y(fe.to.children).filter(function(be){return be.style.display!=="none"}),ve=Te.indexOf(fe.related),Me=ae.component.getVmIndexFromDomIndex(ve),Ke=Te.indexOf(Q)!==-1;return Ke||!fe.willInsertAfter?Me:Me+1},onDragMove:function(ae,fe){var Te=this.move,ve=this.realList;if(!Te||!ve)return!0;var Me=this.getRelatedContextFromMoveEvent(ae),Ke=this.computeFutureIndex(Me,ae),be=R(R({},this.context),{},{futureIndex:Ke}),Se=R(R({},ae),{},{relatedContext:Me,draggedContext:be});return Te(Se,fe)},onDragEnd:function(){Q=null}}}),pe=ce;n.default=pe},fb6a:function(a,n,u){var c=u("23e7"),d=u("861d"),m=u("e8b5"),M=u("23cb"),S=u("50c4"),R=u("fc6a"),C=u("8418"),P=u("b622"),k=u("1dde"),L=u("ae40"),I=k("slice"),B=L("slice",{ACCESSORS:!0,0:0,1:2}),H=P("species"),F=[].slice,W=Math.max;c({target:"Array",proto:!0,forced:!I||!B},{slice:function(ie,J){var V=R(this),oe=S(V.length),_=M(ie,oe),o=M(J===void 0?oe:J,oe),f,l,h;if(m(V)&&(f=V.constructor,typeof f=="function"&&(f===Array||m(f.prototype))?f=void 0:d(f)&&(f=f[H],f===null&&(f=void 0)),f===Array||f===void 0))return F.call(V,_,o);for(l=new(f===void 0?Array:f)(W(o-_,0)),h=0;_<o;_++,h++)_ in V&&C(l,h,V[_]);return l.length=h,l}})},fc6a:function(a,n,u){var c=u("44ad"),d=u("1d80");a.exports=function(m){return c(d(m))}},fdbc:function(a,n){a.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(a,n,u){var c=u("4930");a.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(Z6);var yD=Z6.exports;const UV=Lo(yD);var Su={};Su.version="1.0.0";Su.encode=function(t){return t.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")};Su.decode=function(t){return t+=Array(5-t.length%4).join("="),t=t.replace(/\-/g,"+").replace(/\_/g,"/"),new ke.Buffer(t,"base64")};Su.validate=function(t){return/^[A-Za-z0-9\-_]+$/.test(t)};var HV=Su,ct={},Dp={exports:{}},Nd=65536,bD=4294967295;function wD(){throw new Error(`Secure random number generation is not supported by this browser.
+Use Chrome, Firefox or Internet Explorer 11`)}var _D=pt.Buffer,Xl=Ye.crypto||Ye.msCrypto;Xl&&Xl.getRandomValues?Dp.exports=MD:Dp.exports=wD;function MD(e,t){if(e>bD)throw new RangeError("requested too many random bytes");var r=_D.allocUnsafe(e);if(e>0)if(e>Nd)for(var i=0;i<e;i+=Nd)Xl.getRandomValues(r.slice(i,i+Nd));else Xl.getRandomValues(r);return typeof t=="function"?we.nextTick(function(){t(null,r)}):r}var Ds=Dp.exports,Fp={exports:{}},X6=Or.EventEmitter,kd,tb;function SD(){if(tb)return kd;tb=1;function e(P,k){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(P);k&&(I=I.filter(function(B){return Object.getOwnPropertyDescriptor(P,B).enumerable})),L.push.apply(L,I)}return L}function t(P){for(var k=1;k<arguments.length;k++){var L=arguments[k]!=null?arguments[k]:{};k%2?e(Object(L),!0).forEach(function(I){r(P,I,L[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):e(Object(L)).forEach(function(I){Object.defineProperty(P,I,Object.getOwnPropertyDescriptor(L,I))})}return P}function r(P,k,L){return k=u(k),k in P?Object.defineProperty(P,k,{value:L,enumerable:!0,configurable:!0,writable:!0}):P[k]=L,P}function i(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}function a(P,k){for(var L=0;L<k.length;L++){var I=k[L];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(P,u(I.key),I)}}function n(P,k,L){return k&&a(P.prototype,k),L&&a(P,L),Object.defineProperty(P,"prototype",{writable:!1}),P}function u(P){var k=c(P,"string");return typeof k=="symbol"?k:String(k)}function c(P,k){if(typeof P!="object"||P===null)return P;var L=P[Symbol.toPrimitive];if(L!==void 0){var I=L.call(P,k||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(P)}var d=ke,m=d.Buffer,M=ei,S=M.inspect,R=S&&S.custom||"inspect";function C(P,k,L){m.prototype.copy.call(P,k,L)}return kd=function(){function P(){i(this,P),this.head=null,this.tail=null,this.length=0}return n(P,[{key:"push",value:function(L){var I={data:L,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(L){var I={data:L,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var I=this.head,B=""+I.data;I=I.next;)B+=L+I.data;return B}},{key:"concat",value:function(L){if(this.length===0)return m.alloc(0);for(var I=m.allocUnsafe(L>>>0),B=this.head,H=0;B;)C(B.data,I,H),H+=B.data.length,B=B.next;return I}},{key:"consume",value:function(L,I){var B;return L<this.head.data.length?(B=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?B=this.shift():B=I?this._getString(L):this._getBuffer(L),B}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var I=this.head,B=1,H=I.data;for(L-=H.length;I=I.next;){var F=I.data,W=L>F.length?F.length:L;if(W===F.length?H+=F:H+=F.slice(0,L),L-=W,L===0){W===F.length?(++B,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=F.slice(W));break}++B}return this.length-=B,H}},{key:"_getBuffer",value:function(L){var I=m.allocUnsafe(L),B=this.head,H=1;for(B.data.copy(I),L-=B.data.length;B=B.next;){var F=B.data,W=L>F.length?F.length:L;if(F.copy(I,I.length-L,0,W),L-=W,L===0){W===F.length?(++H,B.next?this.head=B.next:this.head=this.tail=null):(this.head=B,B.data=F.slice(W));break}++H}return this.length-=H,I}},{key:R,value:function(L,I){return S(this,t(t({},I),{},{depth:0,customInspect:!1}))}}]),P}(),kd}function xD(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,we.nextTick(jp,this,e)):we.nextTick(jp,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(n){!t&&n?r._writableState?r._writableState.errorEmitted?we.nextTick(gl,r):(r._writableState.errorEmitted=!0,we.nextTick(rb,r,n)):we.nextTick(rb,r,n):t?(we.nextTick(gl,r),t(n)):we.nextTick(gl,r)}),this)}function rb(e,t){jp(e,t),gl(e)}function gl(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function ED(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function jp(e,t){e.emit("error",t)}function RD(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}var J6={destroy:xD,undestroy:ED,errorOrDestroy:RD},Aa={};function AD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Q6={};function Mi(e,t,r){r||(r=Error);function i(n,u,c){return typeof t=="string"?t:t(n,u,c)}var a=function(n){AD(u,n);function u(c,d,m){return n.call(this,i(c,d,m))||this}return u}(r);a.prototype.name=r.name,a.prototype.code=e,Q6[e]=a}function ib(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function TD(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function OD(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function ID(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Mi("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Mi("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&TD(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var a;if(OD(e," argument"))a="The ".concat(e," ").concat(i," ").concat(ib(t,"type"));else{var n=ID(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(n," ").concat(i," ").concat(ib(t,"type"))}return a+=". Received type ".concat(typeof r),a},TypeError);Mi("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Mi("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Mi("ERR_STREAM_PREMATURE_CLOSE","Premature close");Mi("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Mi("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Mi("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Mi("ERR_STREAM_WRITE_AFTER_END","write after end");Mi("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Mi("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Mi("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Aa.codes=Q6;var PD=Aa.codes.ERR_INVALID_OPT_VALUE;function CD(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function BD(e,t,r,i){var a=CD(t,i,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var n=i?r:"highWaterMark";throw new PD(n,a)}return Math.floor(a)}return e.objectMode?16:16*1024}var eS={getHighWaterMark:BD},$d,nb;function tS(){if(nb)return $d;nb=1,$d=J;function e(A){var E=this;this.next=null,this.entry=null,this.finish=function(){ee(E,A)}}var t;J.WritableState=Y;var r={deprecate:ks},i=X6,a=ke.Buffer,n=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(A){return a.from(A)}function c(A){return a.isBuffer(A)||A instanceof n}var d=J6,m=eS,M=m.getHighWaterMark,S=Aa.codes,R=S.ERR_INVALID_ARG_TYPE,C=S.ERR_METHOD_NOT_IMPLEMENTED,P=S.ERR_MULTIPLE_CALLBACK,k=S.ERR_STREAM_CANNOT_PIPE,L=S.ERR_STREAM_DESTROYED,I=S.ERR_STREAM_NULL_VALUES,B=S.ERR_STREAM_WRITE_AFTER_END,H=S.ERR_UNKNOWN_ENCODING,F=d.errorOrDestroy;Ze(J,i);function W(){}function Y(A,E,U){t=t||bs(),A=A||{},typeof U!="boolean"&&(U=E instanceof t),this.objectMode=!!A.objectMode,U&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=M(this,A,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=A.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){p(E,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}Y.prototype.getBuffer=function(){for(var E=this.bufferedRequest,U=[];E;)U.push(E),E=E.next;return U},function(){try{Object.defineProperty(Y.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ie;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ie=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(E){return ie.call(this,E)?!0:this!==J?!1:E&&E._writableState instanceof Y}})):ie=function(E){return E instanceof this};function J(A){t=t||bs();var E=this instanceof t;if(!E&&!ie.call(J,this))return new J(A);this._writableState=new Y(A,this,E),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),i.call(this)}J.prototype.pipe=function(){F(this,new k)};function V(A,E){var U=new B;F(A,U),we.nextTick(E,U)}function oe(A,E,U,K){var Z;return U===null?Z=new I:typeof U!="string"&&!E.objectMode&&(Z=new R("chunk",["string","Buffer"],U)),Z?(F(A,Z),we.nextTick(K,Z),!1):!0}J.prototype.write=function(A,E,U){var K=this._writableState,Z=!1,b=!K.objectMode&&c(A);return b&&!a.isBuffer(A)&&(A=u(A)),typeof E=="function"&&(U=E,E=null),b?E="buffer":E||(E=K.defaultEncoding),typeof U!="function"&&(U=W),K.ending?V(this,U):(b||oe(this,K,A,U))&&(K.pendingcb++,Z=o(this,K,b,A,E,U)),Z},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&g(this,A))},J.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new H(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _(A,E,U){return!A.objectMode&&A.decodeStrings!==!1&&typeof E=="string"&&(E=a.from(E,U)),E}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(A,E,U,K,Z,b){if(!U){var y=_(E,K,Z);K!==y&&(U=!0,Z="buffer",K=y)}var O=E.objectMode?1:K.length;E.length+=O;var q=E.length<E.highWaterMark;if(q||(E.needDrain=!0),E.writing||E.corked){var X=E.lastBufferedRequest;E.lastBufferedRequest={chunk:K,encoding:Z,isBuf:U,callback:b,next:null},X?X.next=E.lastBufferedRequest:E.bufferedRequest=E.lastBufferedRequest,E.bufferedRequestCount+=1}else f(A,E,!1,O,K,Z,b);return q}function f(A,E,U,K,Z,b,y){E.writelen=K,E.writecb=y,E.writing=!0,E.sync=!0,E.destroyed?E.onwrite(new L("write")):U?A._writev(Z,E.onwrite):A._write(Z,b,E.onwrite),E.sync=!1}function l(A,E,U,K,Z){--E.pendingcb,U?(we.nextTick(Z,K),we.nextTick($,A,E),A._writableState.errorEmitted=!0,F(A,K)):(Z(K),A._writableState.errorEmitted=!0,F(A,K),$(A,E))}function h(A){A.writing=!1,A.writecb=null,A.length-=A.writelen,A.writelen=0}function p(A,E){var U=A._writableState,K=U.sync,Z=U.writecb;if(typeof Z!="function")throw new P;if(h(U),E)l(A,U,K,E,Z);else{var b=s(U)||A.destroyed;!b&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&g(A,U),K?we.nextTick(w,A,U,b,Z):w(A,U,b,Z)}}function w(A,E,U,K){U||x(A,E),E.pendingcb--,K(),$(A,E)}function x(A,E){E.length===0&&E.needDrain&&(E.needDrain=!1,A.emit("drain"))}function g(A,E){E.bufferProcessing=!0;var U=E.bufferedRequest;if(A._writev&&U&&U.next){var K=E.bufferedRequestCount,Z=new Array(K),b=E.corkedRequestsFree;b.entry=U;for(var y=0,O=!0;U;)Z[y]=U,U.isBuf||(O=!1),U=U.next,y+=1;Z.allBuffers=O,f(A,E,!0,E.length,Z,"",b.finish),E.pendingcb++,E.lastBufferedRequest=null,b.next?(E.corkedRequestsFree=b.next,b.next=null):E.corkedRequestsFree=new e(E),E.bufferedRequestCount=0}else{for(;U;){var q=U.chunk,X=U.encoding,D=U.callback,N=E.objectMode?1:q.length;if(f(A,E,!1,N,q,X,D),U=U.next,E.bufferedRequestCount--,E.writing)break}U===null&&(E.lastBufferedRequest=null)}E.bufferedRequest=U,E.bufferProcessing=!1}J.prototype._write=function(A,E,U){U(new C("_write()"))},J.prototype._writev=null,J.prototype.end=function(A,E,U){var K=this._writableState;return typeof A=="function"?(U=A,A=null,E=null):typeof E=="function"&&(U=E,E=null),A!=null&&this.write(A,E),K.corked&&(K.corked=1,this.uncork()),K.ending||G(this,K,U),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function v(A,E){A._final(function(U){E.pendingcb--,U&&F(A,U),E.prefinished=!0,A.emit("prefinish"),$(A,E)})}function T(A,E){!E.prefinished&&!E.finalCalled&&(typeof A._final=="function"&&!E.destroyed?(E.pendingcb++,E.finalCalled=!0,we.nextTick(v,A,E)):(E.prefinished=!0,A.emit("prefinish")))}function $(A,E){var U=s(E);if(U&&(T(A,E),E.pendingcb===0&&(E.finished=!0,A.emit("finish"),E.autoDestroy))){var K=A._readableState;(!K||K.autoDestroy&&K.endEmitted)&&A.destroy()}return U}function G(A,E,U){E.ending=!0,$(A,E),U&&(E.finished?we.nextTick(U):A.once("finish",U)),E.ended=!0,A.writable=!1}function ee(A,E,U){var K=A.entry;for(A.entry=null;K;){var Z=K.callback;E.pendingcb--,Z(U),K=K.next}E.corkedRequestsFree.next=A}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),J.prototype.destroy=d.destroy,J.prototype._undestroy=d.undestroy,J.prototype._destroy=function(A,E){E(A)},$d}var Dd,ob;function bs(){if(ob)return Dd;ob=1;var e=Object.keys||function(m){var M=[];for(var S in m)M.push(S);return M};Dd=u;var t=iS(),r=tS();Ze(u,t);for(var i=e(r.prototype),a=0;a<i.length;a++){var n=i[a];u.prototype[n]||(u.prototype[n]=r.prototype[n])}function u(m){if(!(this instanceof u))return new u(m);t.call(this,m),r.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||we.nextTick(d,this)}function d(m){m.end()}return Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(M){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=M,this._writableState.destroyed=M)}}),Dd}var ab=Aa.codes.ERR_STREAM_PREMATURE_CLOSE;function LD(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];e.apply(this,i)}}}function ND(){}function kD(e){return e.setHeader&&typeof e.abort=="function"}function rS(e,t,r){if(typeof t=="function")return rS(e,null,t);t||(t={}),r=LD(r||ND);var i=t.readable||t.readable!==!1&&e.readable,a=t.writable||t.writable!==!1&&e.writable,n=function(){e.writable||c()},u=e._writableState&&e._writableState.finished,c=function(){a=!1,u=!0,i||r.call(e)},d=e._readableState&&e._readableState.endEmitted,m=function(){i=!1,d=!0,a||r.call(e)},M=function(P){r.call(e,P)},S=function(){var P;if(i&&!d)return(!e._readableState||!e._readableState.ended)&&(P=new ab),r.call(e,P);if(a&&!u)return(!e._writableState||!e._writableState.ended)&&(P=new ab),r.call(e,P)},R=function(){e.req.on("finish",c)};return kD(e)?(e.on("complete",c),e.on("abort",S),e.req?R():e.on("request",R)):a&&!e._writableState&&(e.on("end",n),e.on("close",n)),e.on("end",m),e.on("finish",c),t.error!==!1&&e.on("error",M),e.on("close",S),function(){e.removeListener("complete",c),e.removeListener("abort",S),e.removeListener("request",R),e.req&&e.req.removeListener("finish",c),e.removeListener("end",n),e.removeListener("close",n),e.removeListener("finish",c),e.removeListener("end",m),e.removeListener("error",M),e.removeListener("close",S)}}var pg=rS,Fd,sb;function $D(){if(sb)return Fd;sb=1;var e;function t(H,F,W){return F=r(F),F in H?Object.defineProperty(H,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):H[F]=W,H}function r(H){var F=i(H,"string");return typeof F=="symbol"?F:String(F)}function i(H,F){if(typeof H!="object"||H===null)return H;var W=H[Symbol.toPrimitive];if(W!==void 0){var Y=W.call(H,F||"default");if(typeof Y!="object")return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(H)}var a=pg,n=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),M=Symbol("handlePromise"),S=Symbol("stream");function R(H,F){return{value:H,done:F}}function C(H){var F=H[n];if(F!==null){var W=H[S].read();W!==null&&(H[m]=null,H[n]=null,H[u]=null,F(R(W,!1)))}}function P(H){we.nextTick(C,H)}function k(H,F){return function(W,Y){H.then(function(){if(F[d]){W(R(void 0,!0));return}F[M](W,Y)},Y)}}var L=Object.getPrototypeOf(function(){}),I=Object.setPrototypeOf((e={get stream(){return this[S]},next:function(){var F=this,W=this[c];if(W!==null)return Promise.reject(W);if(this[d])return Promise.resolve(R(void 0,!0));if(this[S].destroyed)return new Promise(function(V,oe){we.nextTick(function(){F[c]?oe(F[c]):V(R(void 0,!0))})});var Y=this[m],ie;if(Y)ie=new Promise(k(Y,this));else{var J=this[S].read();if(J!==null)return Promise.resolve(R(J,!1));ie=new Promise(this[M])}return this[m]=ie,ie}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var F=this;return new Promise(function(W,Y){F[S].destroy(null,function(ie){if(ie){Y(ie);return}W(R(void 0,!0))})})}),e),L),B=function(F){var W,Y=Object.create(I,(W={},t(W,S,{value:F,writable:!0}),t(W,n,{value:null,writable:!0}),t(W,u,{value:null,writable:!0}),t(W,c,{value:null,writable:!0}),t(W,d,{value:F._readableState.endEmitted,writable:!0}),t(W,M,{value:function(J,V){var oe=Y[S].read();oe?(Y[m]=null,Y[n]=null,Y[u]=null,J(R(oe,!1))):(Y[n]=J,Y[u]=V)},writable:!0}),W));return Y[m]=null,a(F,function(ie){if(ie&&ie.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=Y[u];J!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,J(ie)),Y[c]=ie;return}var V=Y[n];V!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,V(R(void 0,!0))),Y[d]=!0}),F.on("readable",P.bind(null,Y)),Y};return Fd=B,Fd}var jd,fb;function DD(){return fb||(fb=1,jd=function(){throw new Error("Readable.from is not available in the browser")}),jd}var Ud,ub;function iS(){if(ub)return Ud;ub=1,Ud=V;var e;V.ReadableState=J,Or.EventEmitter;var t=function(y,O){return y.listeners(O).length},r=X6,i=ke.Buffer,a=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function n(b){return i.from(b)}function u(b){return i.isBuffer(b)||b instanceof a}var c=ei,d;c&&c.debuglog?d=c.debuglog("stream"):d=function(){};var m=SD(),M=J6,S=eS,R=S.getHighWaterMark,C=Aa.codes,P=C.ERR_INVALID_ARG_TYPE,k=C.ERR_STREAM_PUSH_AFTER_EOF,L=C.ERR_METHOD_NOT_IMPLEMENTED,I=C.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,B,H,F;Ze(V,r);var W=M.errorOrDestroy,Y=["error","close","destroy","pause","resume"];function ie(b,y,O){if(typeof b.prependListener=="function")return b.prependListener(y,O);!b._events||!b._events[y]?b.on(y,O):Array.isArray(b._events[y])?b._events[y].unshift(O):b._events[y]=[O,b._events[y]]}function J(b,y,O){e=e||bs(),b=b||{},typeof O!="boolean"&&(O=y instanceof e),this.objectMode=!!b.objectMode,O&&(this.objectMode=this.objectMode||!!b.readableObjectMode),this.highWaterMark=R(this,b,"readableHighWaterMark",O),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=b.emitClose!==!1,this.autoDestroy=!!b.autoDestroy,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(B||(B=Xr().StringDecoder),this.decoder=new B(b.encoding),this.encoding=b.encoding)}function V(b){if(e=e||bs(),!(this instanceof V))return new V(b);var y=this instanceof e;this._readableState=new J(b,this,y),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),r.call(this)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(y){this._readableState&&(this._readableState.destroyed=y)}}),V.prototype.destroy=M.destroy,V.prototype._undestroy=M.undestroy,V.prototype._destroy=function(b,y){y(b)},V.prototype.push=function(b,y){var O=this._readableState,q;return O.objectMode?q=!0:typeof b=="string"&&(y=y||O.defaultEncoding,y!==O.encoding&&(b=i.from(b,y),y=""),q=!0),oe(this,b,y,!1,q)},V.prototype.unshift=function(b){return oe(this,b,null,!0,!1)};function oe(b,y,O,q,X){d("readableAddChunk",y);var D=b._readableState;if(y===null)D.reading=!1,p(b,D);else{var N;if(X||(N=o(D,y)),N)W(b,N);else if(D.objectMode||y&&y.length>0)if(typeof y!="string"&&!D.objectMode&&Object.getPrototypeOf(y)!==i.prototype&&(y=n(y)),q)D.endEmitted?W(b,new I):_(b,D,y,!0);else if(D.ended)W(b,new k);else{if(D.destroyed)return!1;D.reading=!1,D.decoder&&!O?(y=D.decoder.write(y),D.objectMode||y.length!==0?_(b,D,y,!1):g(b,D)):_(b,D,y,!1)}else q||(D.reading=!1,g(b,D))}return!D.ended&&(D.length<D.highWaterMark||D.length===0)}function _(b,y,O,q){y.flowing&&y.length===0&&!y.sync?(y.awaitDrain=0,b.emit("data",O)):(y.length+=y.objectMode?1:O.length,q?y.buffer.unshift(O):y.buffer.push(O),y.needReadable&&w(b)),g(b,y)}function o(b,y){var O;return!u(y)&&typeof y!="string"&&y!==void 0&&!b.objectMode&&(O=new P("chunk",["string","Buffer","Uint8Array"],y)),O}V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(b){B||(B=Xr().StringDecoder);var y=new B(b);this._readableState.decoder=y,this._readableState.encoding=this._readableState.decoder.encoding;for(var O=this._readableState.buffer.head,q="";O!==null;)q+=y.write(O.data),O=O.next;return this._readableState.buffer.clear(),q!==""&&this._readableState.buffer.push(q),this._readableState.length=q.length,this};var f=1073741824;function l(b){return b>=f?b=f:(b--,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,b|=b>>>16,b++),b}function h(b,y){return b<=0||y.length===0&&y.ended?0:y.objectMode?1:b!==b?y.flowing&&y.length?y.buffer.head.data.length:y.length:(b>y.highWaterMark&&(y.highWaterMark=l(b)),b<=y.length?b:y.ended?y.length:(y.needReadable=!0,0))}V.prototype.read=function(b){d("read",b),b=parseInt(b,10);var y=this._readableState,O=b;if(b!==0&&(y.emittedReadable=!1),b===0&&y.needReadable&&((y.highWaterMark!==0?y.length>=y.highWaterMark:y.length>0)||y.ended))return d("read: emitReadable",y.length,y.ended),y.length===0&&y.ended?U(this):w(this),null;if(b=h(b,y),b===0&&y.ended)return y.length===0&&U(this),null;var q=y.needReadable;d("need readable",q),(y.length===0||y.length-b<y.highWaterMark)&&(q=!0,d("length less than watermark",q)),y.ended||y.reading?(q=!1,d("reading or ended",q)):q&&(d("do read"),y.reading=!0,y.sync=!0,y.length===0&&(y.needReadable=!0),this._read(y.highWaterMark),y.sync=!1,y.reading||(b=h(O,y)));var X;return b>0?X=E(b,y):X=null,X===null?(y.needReadable=y.length<=y.highWaterMark,b=0):(y.length-=b,y.awaitDrain=0),y.length===0&&(y.ended||(y.needReadable=!0),O!==b&&y.ended&&U(this)),X!==null&&this.emit("data",X),X};function p(b,y){if(d("onEofChunk"),!y.ended){if(y.decoder){var O=y.decoder.end();O&&O.length&&(y.buffer.push(O),y.length+=y.objectMode?1:O.length)}y.ended=!0,y.sync?w(b):(y.needReadable=!1,y.emittedReadable||(y.emittedReadable=!0,x(b)))}}function w(b){var y=b._readableState;d("emitReadable",y.needReadable,y.emittedReadable),y.needReadable=!1,y.emittedReadable||(d("emitReadable",y.flowing),y.emittedReadable=!0,we.nextTick(x,b))}function x(b){var y=b._readableState;d("emitReadable_",y.destroyed,y.length,y.ended),!y.destroyed&&(y.length||y.ended)&&(b.emit("readable"),y.emittedReadable=!1),y.needReadable=!y.flowing&&!y.ended&&y.length<=y.highWaterMark,A(b)}function g(b,y){y.readingMore||(y.readingMore=!0,we.nextTick(s,b,y))}function s(b,y){for(;!y.reading&&!y.ended&&(y.length<y.highWaterMark||y.flowing&&y.length===0);){var O=y.length;if(d("maybeReadMore read 0"),b.read(0),O===y.length)break}y.readingMore=!1}V.prototype._read=function(b){W(this,new L("_read()"))},V.prototype.pipe=function(b,y){var O=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=b;break;case 1:q.pipes=[q.pipes,b];break;default:q.pipes.push(b);break}q.pipesCount+=1,d("pipe count=%d opts=%j",q.pipesCount,y);var X=(!y||y.end!==!1)&&b!==we.stdout&&b!==we.stderr,D=X?j:le;q.endEmitted?we.nextTick(D):O.once("end",D),b.on("unpipe",N);function N(ce,pe){d("onunpipe"),ce===O&&pe&&pe.hasUnpiped===!1&&(pe.hasUnpiped=!0,te())}function j(){d("onend"),b.end()}var z=v(O);b.on("drain",z);var se=!1;function te(){d("cleanup"),b.removeListener("close",Q),b.removeListener("finish",ue),b.removeListener("drain",z),b.removeListener("error",Ee),b.removeListener("unpipe",N),O.removeListener("end",j),O.removeListener("end",le),O.removeListener("data",ne),se=!0,q.awaitDrain&&(!b._writableState||b._writableState.needDrain)&&z()}O.on("data",ne);function ne(ce){d("ondata");var pe=b.write(ce);d("dest.write",pe),pe===!1&&((q.pipesCount===1&&q.pipes===b||q.pipesCount>1&&Z(q.pipes,b)!==-1)&&!se&&(d("false write response, pause",q.awaitDrain),q.awaitDrain++),O.pause())}function Ee(ce){d("onerror",ce),le(),b.removeListener("error",Ee),t(b,"error")===0&&W(b,ce)}ie(b,"error",Ee);function Q(){b.removeListener("finish",ue),le()}b.once("close",Q);function ue(){d("onfinish"),b.removeListener("close",Q),le()}b.once("finish",ue);function le(){d("unpipe"),O.unpipe(b)}return b.emit("pipe",O),q.flowing||(d("pipe resume"),O.resume()),b};function v(b){return function(){var O=b._readableState;d("pipeOnDrain",O.awaitDrain),O.awaitDrain&&O.awaitDrain--,O.awaitDrain===0&&t(b,"data")&&(O.flowing=!0,A(b))}}V.prototype.unpipe=function(b){var y=this._readableState,O={hasUnpiped:!1};if(y.pipesCount===0)return this;if(y.pipesCount===1)return b&&b!==y.pipes?this:(b||(b=y.pipes),y.pipes=null,y.pipesCount=0,y.flowing=!1,b&&b.emit("unpipe",this,O),this);if(!b){var q=y.pipes,X=y.pipesCount;y.pipes=null,y.pipesCount=0,y.flowing=!1;for(var D=0;D<X;D++)q[D].emit("unpipe",this,{hasUnpiped:!1});return this}var N=Z(y.pipes,b);return N===-1?this:(y.pipes.splice(N,1),y.pipesCount-=1,y.pipesCount===1&&(y.pipes=y.pipes[0]),b.emit("unpipe",this,O),this)},V.prototype.on=function(b,y){var O=r.prototype.on.call(this,b,y),q=this._readableState;return b==="data"?(q.readableListening=this.listenerCount("readable")>0,q.flowing!==!1&&this.resume()):b==="readable"&&!q.endEmitted&&!q.readableListening&&(q.readableListening=q.needReadable=!0,q.flowing=!1,q.emittedReadable=!1,d("on readable",q.length,q.reading),q.length?w(this):q.reading||we.nextTick($,this)),O},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(b,y){var O=r.prototype.removeListener.call(this,b,y);return b==="readable"&&we.nextTick(T,this),O},V.prototype.removeAllListeners=function(b){var y=r.prototype.removeAllListeners.apply(this,arguments);return(b==="readable"||b===void 0)&&we.nextTick(T,this),y};function T(b){var y=b._readableState;y.readableListening=b.listenerCount("readable")>0,y.resumeScheduled&&!y.paused?y.flowing=!0:b.listenerCount("data")>0&&b.resume()}function $(b){d("readable nexttick read 0"),b.read(0)}V.prototype.resume=function(){var b=this._readableState;return b.flowing||(d("resume"),b.flowing=!b.readableListening,G(this,b)),b.paused=!1,this};function G(b,y){y.resumeScheduled||(y.resumeScheduled=!0,we.nextTick(ee,b,y))}function ee(b,y){d("resume",y.reading),y.reading||b.read(0),y.resumeScheduled=!1,b.emit("resume"),A(b),y.flowing&&!y.reading&&b.read(0)}V.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function A(b){var y=b._readableState;for(d("flow",y.flowing);y.flowing&&b.read()!==null;);}V.prototype.wrap=function(b){var y=this,O=this._readableState,q=!1;b.on("end",function(){if(d("wrapped end"),O.decoder&&!O.ended){var N=O.decoder.end();N&&N.length&&y.push(N)}y.push(null)}),b.on("data",function(N){if(d("wrapped data"),O.decoder&&(N=O.decoder.write(N)),!(O.objectMode&&N==null)&&!(!O.objectMode&&(!N||!N.length))){var j=y.push(N);j||(q=!0,b.pause())}});for(var X in b)this[X]===void 0&&typeof b[X]=="function"&&(this[X]=function(j){return function(){return b[j].apply(b,arguments)}}(X));for(var D=0;D<Y.length;D++)b.on(Y[D],this.emit.bind(this,Y[D]));return this._read=function(N){d("wrapped _read",N),q&&(q=!1,b.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return H===void 0&&(H=$D()),H(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(y){this._readableState&&(this._readableState.flowing=y)}}),V._fromList=E,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function E(b,y){if(y.length===0)return null;var O;return y.objectMode?O=y.buffer.shift():!b||b>=y.length?(y.decoder?O=y.buffer.join(""):y.buffer.length===1?O=y.buffer.first():O=y.buffer.concat(y.length),y.buffer.clear()):O=y.buffer.consume(b,y.decoder),O}function U(b){var y=b._readableState;d("endReadable",y.endEmitted),y.endEmitted||(y.ended=!0,we.nextTick(K,y,b))}function K(b,y){if(d("endReadableNT",b.endEmitted,b.length),!b.endEmitted&&b.length===0&&(b.endEmitted=!0,y.readable=!1,y.emit("end"),b.autoDestroy)){var O=y._writableState;(!O||O.autoDestroy&&O.finished)&&y.destroy()}}typeof Symbol=="function"&&(V.from=function(b,y){return F===void 0&&(F=DD()),F(V,b,y)});function Z(b,y){for(var O=0,q=b.length;O<q;O++)if(b[O]===y)return O;return-1}return Ud}var nS=Fn,Vh=Aa.codes,FD=Vh.ERR_METHOD_NOT_IMPLEMENTED,jD=Vh.ERR_MULTIPLE_CALLBACK,UD=Vh.ERR_TRANSFORM_ALREADY_TRANSFORMING,HD=Vh.ERR_TRANSFORM_WITH_LENGTH_0,zh=bs();Ze(Fn,zh);function qD(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new jD);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function Fn(e){if(!(this instanceof Fn))return new Fn(e);zh.call(this,e),this._transformState={afterTransform:qD.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",WD)}function WD(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){lb(e,t,r)}):lb(this,null,null)}Fn.prototype.push=function(e,t){return this._transformState.needTransform=!1,zh.prototype.push.call(this,e,t)};Fn.prototype._transform=function(e,t,r){r(new FD("_transform()"))};Fn.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};Fn.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Fn.prototype._destroy=function(e,t){zh.prototype._destroy.call(this,e,function(r){t(r)})};function lb(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new HD;if(e._transformState.transforming)throw new UD;return e.push(null)}var KD=nu,oS=nS;Ze(nu,oS);function nu(e){if(!(this instanceof nu))return new nu(e);oS.call(this,e)}nu.prototype._transform=function(e,t,r){r(null,e)};var Hd;function VD(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var aS=Aa.codes,zD=aS.ERR_MISSING_ARGS,GD=aS.ERR_STREAM_DESTROYED;function hb(e){if(e)throw e}function YD(e){return e.setHeader&&typeof e.abort=="function"}function ZD(e,t,r,i){i=VD(i);var a=!1;e.on("close",function(){a=!0}),Hd===void 0&&(Hd=pg),Hd(e,{readable:t,writable:r},function(u){if(u)return i(u);a=!0,i()});var n=!1;return function(u){if(!a&&!n){if(n=!0,YD(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(u||new GD("pipe"))}}}function cb(e){e()}function XD(e,t){return e.pipe(t)}function JD(e){return!e.length||typeof e[e.length-1]!="function"?hb:e.pop()}function QD(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=JD(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new zD("streams");var a,n=t.map(function(u,c){var d=c<t.length-1,m=c>0;return ZD(u,d,m,function(M){a||(a=M),M&&n.forEach(cb),!d&&(n.forEach(cb),i(a))})});return t.reduce(XD)}var eF=QD;(function(e,t){t=e.exports=iS(),t.Stream=t,t.Readable=t,t.Writable=tS(),t.Duplex=bs(),t.Transform=nS,t.PassThrough=KD,t.finished=pg,t.pipeline=eF})(Fp,Fp.exports);var tF=Fp.exports,Jl=pt.Buffer,sS=tF.Transform,rF=Ze;function iF(e,t){if(!Jl.isBuffer(e)&&typeof e!="string")throw new TypeError(t+" must be a string or a buffer")}function ko(e){sS.call(this),this._block=Jl.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}rF(ko,sS);ko.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(a){i=a}r(i)};ko.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};ko.prototype.update=function(e,t){if(iF(e,"Data"),this._finalized)throw new Error("Digest already called");Jl.isBuffer(e)||(e=Jl.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)r[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var n=0,u=e.length*8;u>0;++n)this._length[n]+=u,u=this._length[n]/4294967296|0,u>0&&(this._length[n]-=4294967296*u);return this};ko.prototype._update=function(){throw new Error("_update is not implemented")};ko.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t};ko.prototype._digest=function(){throw new Error("_digest is not implemented")};var fS=ko,nF=Ze,uS=fS,oF=pt.Buffer,aF=new Array(16);function Gh(){uS.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}nF(Gh,uS);Gh.prototype._update=function(){for(var e=aF,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var r=this._a,i=this._b,a=this._c,n=this._d;r=_r(r,i,a,n,e[0],3614090360,7),n=_r(n,r,i,a,e[1],3905402710,12),a=_r(a,n,r,i,e[2],606105819,17),i=_r(i,a,n,r,e[3],3250441966,22),r=_r(r,i,a,n,e[4],4118548399,7),n=_r(n,r,i,a,e[5],1200080426,12),a=_r(a,n,r,i,e[6],2821735955,17),i=_r(i,a,n,r,e[7],4249261313,22),r=_r(r,i,a,n,e[8],1770035416,7),n=_r(n,r,i,a,e[9],2336552879,12),a=_r(a,n,r,i,e[10],4294925233,17),i=_r(i,a,n,r,e[11],2304563134,22),r=_r(r,i,a,n,e[12],1804603682,7),n=_r(n,r,i,a,e[13],4254626195,12),a=_r(a,n,r,i,e[14],2792965006,17),i=_r(i,a,n,r,e[15],1236535329,22),r=Mr(r,i,a,n,e[1],4129170786,5),n=Mr(n,r,i,a,e[6],3225465664,9),a=Mr(a,n,r,i,e[11],643717713,14),i=Mr(i,a,n,r,e[0],3921069994,20),r=Mr(r,i,a,n,e[5],3593408605,5),n=Mr(n,r,i,a,e[10],38016083,9),a=Mr(a,n,r,i,e[15],3634488961,14),i=Mr(i,a,n,r,e[4],3889429448,20),r=Mr(r,i,a,n,e[9],568446438,5),n=Mr(n,r,i,a,e[14],3275163606,9),a=Mr(a,n,r,i,e[3],4107603335,14),i=Mr(i,a,n,r,e[8],1163531501,20),r=Mr(r,i,a,n,e[13],2850285829,5),n=Mr(n,r,i,a,e[2],4243563512,9),a=Mr(a,n,r,i,e[7],1735328473,14),i=Mr(i,a,n,r,e[12],2368359562,20),r=Sr(r,i,a,n,e[5],4294588738,4),n=Sr(n,r,i,a,e[8],2272392833,11),a=Sr(a,n,r,i,e[11],1839030562,16),i=Sr(i,a,n,r,e[14],4259657740,23),r=Sr(r,i,a,n,e[1],2763975236,4),n=Sr(n,r,i,a,e[4],1272893353,11),a=Sr(a,n,r,i,e[7],4139469664,16),i=Sr(i,a,n,r,e[10],3200236656,23),r=Sr(r,i,a,n,e[13],681279174,4),n=Sr(n,r,i,a,e[0],3936430074,11),a=Sr(a,n,r,i,e[3],3572445317,16),i=Sr(i,a,n,r,e[6],76029189,23),r=Sr(r,i,a,n,e[9],3654602809,4),n=Sr(n,r,i,a,e[12],3873151461,11),a=Sr(a,n,r,i,e[15],530742520,16),i=Sr(i,a,n,r,e[2],3299628645,23),r=xr(r,i,a,n,e[0],4096336452,6),n=xr(n,r,i,a,e[7],1126891415,10),a=xr(a,n,r,i,e[14],2878612391,15),i=xr(i,a,n,r,e[5],4237533241,21),r=xr(r,i,a,n,e[12],1700485571,6),n=xr(n,r,i,a,e[3],2399980690,10),a=xr(a,n,r,i,e[10],4293915773,15),i=xr(i,a,n,r,e[1],2240044497,21),r=xr(r,i,a,n,e[8],1873313359,6),n=xr(n,r,i,a,e[15],4264355552,10),a=xr(a,n,r,i,e[6],2734768916,15),i=xr(i,a,n,r,e[13],1309151649,21),r=xr(r,i,a,n,e[4],4149444226,6),n=xr(n,r,i,a,e[11],3174756917,10),a=xr(a,n,r,i,e[2],718787259,15),i=xr(i,a,n,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+a|0,this._d=this._d+n|0};Gh.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=oF.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};function Yh(e,t){return e<<t|e>>>32-t}function _r(e,t,r,i,a,n,u){return Yh(e+(t&r|~t&i)+a+n|0,u)+t|0}function Mr(e,t,r,i,a,n,u){return Yh(e+(t&i|r&~i)+a+n|0,u)+t|0}function Sr(e,t,r,i,a,n,u){return Yh(e+(t^r^i)+a+n|0,u)+t|0}function xr(e,t,r,i,a,n,u){return Yh(e+(r^(t|~i))+a+n|0,u)+t|0}var vg=Gh,qd=ke.Buffer,sF=Ze,lS=fS,fF=new Array(16),lf=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],hf=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],cf=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],df=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],pf=[0,1518500249,1859775393,2400959708,2840853838],vf=[1352829926,1548603684,1836072691,2053994217,0];function Zh(){lS.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}sF(Zh,lS);Zh.prototype._update=function(){for(var e=fF,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);for(var r=this._a|0,i=this._b|0,a=this._c|0,n=this._d|0,u=this._e|0,c=this._a|0,d=this._b|0,m=this._c|0,M=this._d|0,S=this._e|0,R=0;R<80;R+=1){var C,P;R<16?(C=db(r,i,a,n,u,e[lf[R]],pf[0],cf[R]),P=mb(c,d,m,M,S,e[hf[R]],vf[0],df[R])):R<32?(C=pb(r,i,a,n,u,e[lf[R]],pf[1],cf[R]),P=gb(c,d,m,M,S,e[hf[R]],vf[1],df[R])):R<48?(C=vb(r,i,a,n,u,e[lf[R]],pf[2],cf[R]),P=vb(c,d,m,M,S,e[hf[R]],vf[2],df[R])):R<64?(C=gb(r,i,a,n,u,e[lf[R]],pf[3],cf[R]),P=pb(c,d,m,M,S,e[hf[R]],vf[3],df[R])):(C=mb(r,i,a,n,u,e[lf[R]],pf[4],cf[R]),P=db(c,d,m,M,S,e[hf[R]],vf[4],df[R])),r=u,u=n,n=ca(a,10),a=i,i=C,c=S,S=M,M=ca(m,10),m=d,d=P}var k=this._b+a+M|0;this._b=this._c+n+S|0,this._c=this._d+u+c|0,this._d=this._e+r+d|0,this._e=this._a+i+m|0,this._a=k};Zh.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=qd.alloc?qd.alloc(20):new qd(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};function ca(e,t){return e<<t|e>>>32-t}function db(e,t,r,i,a,n,u,c){return ca(e+(t^r^i)+n+u|0,c)+a|0}function pb(e,t,r,i,a,n,u,c){return ca(e+(t&r|~t&i)+n+u|0,c)+a|0}function vb(e,t,r,i,a,n,u,c){return ca(e+((t|~r)^i)+n+u|0,c)+a|0}function gb(e,t,r,i,a,n,u,c){return ca(e+(t&i|r&~i)+n+u|0,c)+a|0}function mb(e,t,r,i,a,n,u,c){return ca(e+(t^(r|~i))+n+u|0,c)+a|0}var gg=Zh,hS={exports:{}},cS=pt.Buffer;function Xh(e,t){this._block=cS.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Xh.prototype.update=function(e,t){typeof e=="string"&&(t=t||"utf8",e=cS.from(e,t));for(var r=this._block,i=this._blockSize,a=e.length,n=this._len,u=0;u<a;){for(var c=n%i,d=Math.min(a-u,i-c),m=0;m<d;m++)r[c+m]=e[u+m];n+=d,u+=d,n%i===0&&this._update(r)}return this._len+=a,this};Xh.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(r&4294967295)>>>0,a=(r-i)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var n=this._hash();return e?n.toString(e):n};Xh.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Fs=Xh,uF=Ze,dS=Fs,lF=pt.Buffer,hF=[1518500249,1859775393,-1894007588,-899497514],cF=new Array(80);function xu(){this.init(),this._w=cF,dS.call(this,64,56)}uF(xu,dS);xu.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function dF(e){return e<<5|e>>>27}function pF(e){return e<<30|e>>>2}function vF(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}xu.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,a=this._c|0,n=this._d|0,u=this._e|0,c=0;c<16;++c)t[c]=e.readInt32BE(c*4);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var d=0;d<80;++d){var m=~~(d/20),M=dF(r)+vF(m,i,a,n)+u+t[d]+hF[m]|0;u=n,n=a,a=pF(i),i=r,r=M}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=n+this._d|0,this._e=u+this._e|0};xu.prototype._hash=function(){var e=lF.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var gF=xu,mF=Ze,pS=Fs,yF=pt.Buffer,bF=[1518500249,1859775393,-1894007588,-899497514],wF=new Array(80);function Eu(){this.init(),this._w=wF,pS.call(this,64,56)}mF(Eu,pS);Eu.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function _F(e){return e<<1|e>>>31}function MF(e){return e<<5|e>>>27}function SF(e){return e<<30|e>>>2}function xF(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}Eu.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,a=this._c|0,n=this._d|0,u=this._e|0,c=0;c<16;++c)t[c]=e.readInt32BE(c*4);for(;c<80;++c)t[c]=_F(t[c-3]^t[c-8]^t[c-14]^t[c-16]);for(var d=0;d<80;++d){var m=~~(d/20),M=MF(r)+xF(m,i,a,n)+u+t[d]+bF[m]|0;u=n,n=a,a=SF(i),i=r,r=M}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=n+this._d|0,this._e=u+this._e|0};Eu.prototype._hash=function(){var e=yF.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var EF=Eu,RF=Ze,vS=Fs,AF=pt.Buffer,TF=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OF=new Array(64);function Ru(){this.init(),this._w=OF,vS.call(this,64,56)}RF(Ru,vS);Ru.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function IF(e,t,r){return r^e&(t^r)}function PF(e,t,r){return e&t|r&(e|t)}function CF(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function BF(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function LF(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function NF(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}Ru.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,a=this._c|0,n=this._d|0,u=this._e|0,c=this._f|0,d=this._g|0,m=this._h|0,M=0;M<16;++M)t[M]=e.readInt32BE(M*4);for(;M<64;++M)t[M]=NF(t[M-2])+t[M-7]+LF(t[M-15])+t[M-16]|0;for(var S=0;S<64;++S){var R=m+BF(u)+IF(u,c,d)+TF[S]+t[S]|0,C=CF(r)+PF(r,i,a)|0;m=d,d=c,c=u,u=n+R|0,n=a,a=i,i=r,r=R+C|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=n+this._d|0,this._e=u+this._e|0,this._f=c+this._f|0,this._g=d+this._g|0,this._h=m+this._h|0};Ru.prototype._hash=function(){var e=AF.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var gS=Ru,kF=Ze,$F=gS,DF=Fs,FF=pt.Buffer,jF=new Array(64);function Jh(){this.init(),this._w=jF,DF.call(this,64,56)}kF(Jh,$F);Jh.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Jh.prototype._hash=function(){var e=FF.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var UF=Jh,HF=Ze,mS=Fs,qF=pt.Buffer,yb=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],WF=new Array(160);function Au(){this.init(),this._w=WF,mS.call(this,128,112)}HF(Au,mS);Au.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function bb(e,t,r){return r^e&(t^r)}function wb(e,t,r){return e&t|r&(e|t)}function _b(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function Mb(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function KF(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function VF(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function zF(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function GF(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function sr(e,t){return e>>>0<t>>>0?1:0}Au.prototype._update=function(e){for(var t=this._w,r=this._ah|0,i=this._bh|0,a=this._ch|0,n=this._dh|0,u=this._eh|0,c=this._fh|0,d=this._gh|0,m=this._hh|0,M=this._al|0,S=this._bl|0,R=this._cl|0,C=this._dl|0,P=this._el|0,k=this._fl|0,L=this._gl|0,I=this._hl|0,B=0;B<32;B+=2)t[B]=e.readInt32BE(B*4),t[B+1]=e.readInt32BE(B*4+4);for(;B<160;B+=2){var H=t[B-30],F=t[B-15*2+1],W=KF(H,F),Y=VF(F,H);H=t[B-2*2],F=t[B-2*2+1];var ie=zF(H,F),J=GF(F,H),V=t[B-7*2],oe=t[B-7*2+1],_=t[B-16*2],o=t[B-16*2+1],f=Y+oe|0,l=W+V+sr(f,Y)|0;f=f+J|0,l=l+ie+sr(f,J)|0,f=f+o|0,l=l+_+sr(f,o)|0,t[B]=l,t[B+1]=f}for(var h=0;h<160;h+=2){l=t[h],f=t[h+1];var p=wb(r,i,a),w=wb(M,S,R),x=_b(r,M),g=_b(M,r),s=Mb(u,P),v=Mb(P,u),T=yb[h],$=yb[h+1],G=bb(u,c,d),ee=bb(P,k,L),A=I+v|0,E=m+s+sr(A,I)|0;A=A+ee|0,E=E+G+sr(A,ee)|0,A=A+$|0,E=E+T+sr(A,$)|0,A=A+f|0,E=E+l+sr(A,f)|0;var U=g+w|0,K=x+p+sr(U,g)|0;m=d,I=L,d=c,L=k,c=u,k=P,P=C+A|0,u=n+E+sr(P,C)|0,n=a,C=R,a=i,R=S,i=r,S=M,M=A+U|0,r=E+K+sr(M,A)|0}this._al=this._al+M|0,this._bl=this._bl+S|0,this._cl=this._cl+R|0,this._dl=this._dl+C|0,this._el=this._el+P|0,this._fl=this._fl+k|0,this._gl=this._gl+L|0,this._hl=this._hl+I|0,this._ah=this._ah+r+sr(this._al,M)|0,this._bh=this._bh+i+sr(this._bl,S)|0,this._ch=this._ch+a+sr(this._cl,R)|0,this._dh=this._dh+n+sr(this._dl,C)|0,this._eh=this._eh+u+sr(this._el,P)|0,this._fh=this._fh+c+sr(this._fl,k)|0,this._gh=this._gh+d+sr(this._gl,L)|0,this._hh=this._hh+m+sr(this._hl,I)|0};Au.prototype._hash=function(){var e=qF.allocUnsafe(64);function t(r,i,a){e.writeInt32BE(r,a),e.writeInt32BE(i,a+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var yS=Au,YF=Ze,ZF=yS,XF=Fs,JF=pt.Buffer,QF=new Array(160);function Qh(){this.init(),this._w=QF,XF.call(this,128,112)}YF(Qh,ZF);Qh.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Qh.prototype._hash=function(){var e=JF.allocUnsafe(48);function t(r,i,a){e.writeInt32BE(r,a),e.writeInt32BE(i,a+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var ej=Qh,Ta=hS.exports=function(t){t=t.toLowerCase();var r=Ta[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r};Ta.sha=gF;Ta.sha1=EF;Ta.sha224=UF;Ta.sha256=gS;Ta.sha384=ej;Ta.sha512=yS;var mg=hS.exports,Wd,Sb;function bS(){return Sb||(Sb=1,Wd=Or.EventEmitter),Wd}var Kd,xb;function tj(){if(xb)return Kd;xb=1;function e(P,k){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(P);k&&(I=I.filter(function(B){return Object.getOwnPropertyDescriptor(P,B).enumerable})),L.push.apply(L,I)}return L}function t(P){for(var k=1;k<arguments.length;k++){var L=arguments[k]!=null?arguments[k]:{};k%2?e(Object(L),!0).forEach(function(I){r(P,I,L[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):e(Object(L)).forEach(function(I){Object.defineProperty(P,I,Object.getOwnPropertyDescriptor(L,I))})}return P}function r(P,k,L){return k=u(k),k in P?Object.defineProperty(P,k,{value:L,enumerable:!0,configurable:!0,writable:!0}):P[k]=L,P}function i(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}function a(P,k){for(var L=0;L<k.length;L++){var I=k[L];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(P,u(I.key),I)}}function n(P,k,L){return k&&a(P.prototype,k),L&&a(P,L),Object.defineProperty(P,"prototype",{writable:!1}),P}function u(P){var k=c(P,"string");return typeof k=="symbol"?k:String(k)}function c(P,k){if(typeof P!="object"||P===null)return P;var L=P[Symbol.toPrimitive];if(L!==void 0){var I=L.call(P,k||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(P)}var d=ke,m=d.Buffer,M=ei,S=M.inspect,R=S&&S.custom||"inspect";function C(P,k,L){m.prototype.copy.call(P,k,L)}return Kd=function(){function P(){i(this,P),this.head=null,this.tail=null,this.length=0}return n(P,[{key:"push",value:function(L){var I={data:L,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(L){var I={data:L,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var I=this.head,B=""+I.data;I=I.next;)B+=L+I.data;return B}},{key:"concat",value:function(L){if(this.length===0)return m.alloc(0);for(var I=m.allocUnsafe(L>>>0),B=this.head,H=0;B;)C(B.data,I,H),H+=B.data.length,B=B.next;return I}},{key:"consume",value:function(L,I){var B;return L<this.head.data.length?(B=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?B=this.shift():B=I?this._getString(L):this._getBuffer(L),B}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var I=this.head,B=1,H=I.data;for(L-=H.length;I=I.next;){var F=I.data,W=L>F.length?F.length:L;if(W===F.length?H+=F:H+=F.slice(0,L),L-=W,L===0){W===F.length?(++B,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=F.slice(W));break}++B}return this.length-=B,H}},{key:"_getBuffer",value:function(L){var I=m.allocUnsafe(L),B=this.head,H=1;for(B.data.copy(I),L-=B.data.length;B=B.next;){var F=B.data,W=L>F.length?F.length:L;if(F.copy(I,I.length-L,0,W),L-=W,L===0){W===F.length?(++H,B.next?this.head=B.next:this.head=this.tail=null):(this.head=B,B.data=F.slice(W));break}++H}return this.length-=H,I}},{key:R,value:function(L,I){return S(this,t(t({},I),{},{depth:0,customInspect:!1}))}}]),P}(),Kd}var Vd,Eb;function wS(){if(Eb)return Vd;Eb=1;function e(u,c){var d=this,m=this._readableState&&this._readableState.destroyed,M=this._writableState&&this._writableState.destroyed;return m||M?(c?c(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,we.nextTick(a,this,u)):we.nextTick(a,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,function(S){!c&&S?d._writableState?d._writableState.errorEmitted?we.nextTick(r,d):(d._writableState.errorEmitted=!0,we.nextTick(t,d,S)):we.nextTick(t,d,S):c?(we.nextTick(r,d),c(S)):we.nextTick(r,d)}),this)}function t(u,c){a(u,c),r(u)}function r(u){u._writableState&&!u._writableState.emitClose||u._readableState&&!u._readableState.emitClose||u.emit("close")}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(u,c){u.emit("error",c)}function n(u,c){var d=u._readableState,m=u._writableState;d&&d.autoDestroy||m&&m.autoDestroy?u.destroy(c):u.emit("error",c)}return Vd={destroy:e,undestroy:i,errorOrDestroy:n},Vd}var zd={},Rb;function js(){if(Rb)return zd;Rb=1;function e(c,d){c.prototype=Object.create(d.prototype),c.prototype.constructor=c,c.__proto__=d}var t={};function r(c,d,m){m||(m=Error);function M(R,C,P){return typeof d=="string"?d:d(R,C,P)}var S=function(R){e(C,R);function C(P,k,L){return R.call(this,M(P,k,L))||this}return C}(m);S.prototype.name=m.name,S.prototype.code=c,t[c]=S}function i(c,d){if(Array.isArray(c)){var m=c.length;return c=c.map(function(M){return String(M)}),m>2?"one of ".concat(d," ").concat(c.slice(0,m-1).join(", "),", or ")+c[m-1]:m===2?"one of ".concat(d," ").concat(c[0]," or ").concat(c[1]):"of ".concat(d," ").concat(c[0])}else return"of ".concat(d," ").concat(String(c))}function a(c,d,m){return c.substr(!m||m<0?0:+m,d.length)===d}function n(c,d,m){return(m===void 0||m>c.length)&&(m=c.length),c.substring(m-d.length,m)===d}function u(c,d,m){return typeof m!="number"&&(m=0),m+d.length>c.length?!1:c.indexOf(d,m)!==-1}return r("ERR_INVALID_OPT_VALUE",function(c,d){return'The value "'+d+'" is invalid for option "'+c+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(c,d,m){var M;typeof d=="string"&&a(d,"not ")?(M="must not be",d=d.replace(/^not /,"")):M="must be";var S;if(n(c," argument"))S="The ".concat(c," ").concat(M," ").concat(i(d,"type"));else{var R=u(c,".")?"property":"argument";S='The "'.concat(c,'" ').concat(R," ").concat(M," ").concat(i(d,"type"))}return S+=". Received type ".concat(typeof m),S},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(c){return"The "+c+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(c){return"Cannot call "+c+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(c){return"Unknown encoding: "+c},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),zd.codes=t,zd}var Gd,Ab;function _S(){if(Ab)return Gd;Ab=1;var e=js().codes.ERR_INVALID_OPT_VALUE;function t(i,a,n){return i.highWaterMark!=null?i.highWaterMark:a?i[n]:null}function r(i,a,n,u){var c=t(a,u,n);if(c!=null){if(!(isFinite(c)&&Math.floor(c)===c)||c<0){var d=u?n:"highWaterMark";throw new e(d,c)}return Math.floor(c)}return i.objectMode?16:16*1024}return Gd={getHighWaterMark:r},Gd}var Yd,Tb;function MS(){if(Tb)return Yd;Tb=1,Yd=J;function e(A){var E=this;this.next=null,this.entry=null,this.finish=function(){ee(E,A)}}var t;J.WritableState=Y;var r={deprecate:ks},i=bS(),a=ke.Buffer,n=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(A){return a.from(A)}function c(A){return a.isBuffer(A)||A instanceof n}var d=wS(),m=_S(),M=m.getHighWaterMark,S=js().codes,R=S.ERR_INVALID_ARG_TYPE,C=S.ERR_METHOD_NOT_IMPLEMENTED,P=S.ERR_MULTIPLE_CALLBACK,k=S.ERR_STREAM_CANNOT_PIPE,L=S.ERR_STREAM_DESTROYED,I=S.ERR_STREAM_NULL_VALUES,B=S.ERR_STREAM_WRITE_AFTER_END,H=S.ERR_UNKNOWN_ENCODING,F=d.errorOrDestroy;Ze(J,i);function W(){}function Y(A,E,U){t=t||ws(),A=A||{},typeof U!="boolean"&&(U=E instanceof t),this.objectMode=!!A.objectMode,U&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=M(this,A,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=A.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){p(E,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}Y.prototype.getBuffer=function(){for(var E=this.bufferedRequest,U=[];E;)U.push(E),E=E.next;return U},function(){try{Object.defineProperty(Y.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ie;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ie=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(E){return ie.call(this,E)?!0:this!==J?!1:E&&E._writableState instanceof Y}})):ie=function(E){return E instanceof this};function J(A){t=t||ws();var E=this instanceof t;if(!E&&!ie.call(J,this))return new J(A);this._writableState=new Y(A,this,E),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),i.call(this)}J.prototype.pipe=function(){F(this,new k)};function V(A,E){var U=new B;F(A,U),we.nextTick(E,U)}function oe(A,E,U,K){var Z;return U===null?Z=new I:typeof U!="string"&&!E.objectMode&&(Z=new R("chunk",["string","Buffer"],U)),Z?(F(A,Z),we.nextTick(K,Z),!1):!0}J.prototype.write=function(A,E,U){var K=this._writableState,Z=!1,b=!K.objectMode&&c(A);return b&&!a.isBuffer(A)&&(A=u(A)),typeof E=="function"&&(U=E,E=null),b?E="buffer":E||(E=K.defaultEncoding),typeof U!="function"&&(U=W),K.ending?V(this,U):(b||oe(this,K,A,U))&&(K.pendingcb++,Z=o(this,K,b,A,E,U)),Z},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&g(this,A))},J.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new H(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _(A,E,U){return!A.objectMode&&A.decodeStrings!==!1&&typeof E=="string"&&(E=a.from(E,U)),E}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(A,E,U,K,Z,b){if(!U){var y=_(E,K,Z);K!==y&&(U=!0,Z="buffer",K=y)}var O=E.objectMode?1:K.length;E.length+=O;var q=E.length<E.highWaterMark;if(q||(E.needDrain=!0),E.writing||E.corked){var X=E.lastBufferedRequest;E.lastBufferedRequest={chunk:K,encoding:Z,isBuf:U,callback:b,next:null},X?X.next=E.lastBufferedRequest:E.bufferedRequest=E.lastBufferedRequest,E.bufferedRequestCount+=1}else f(A,E,!1,O,K,Z,b);return q}function f(A,E,U,K,Z,b,y){E.writelen=K,E.writecb=y,E.writing=!0,E.sync=!0,E.destroyed?E.onwrite(new L("write")):U?A._writev(Z,E.onwrite):A._write(Z,b,E.onwrite),E.sync=!1}function l(A,E,U,K,Z){--E.pendingcb,U?(we.nextTick(Z,K),we.nextTick($,A,E),A._writableState.errorEmitted=!0,F(A,K)):(Z(K),A._writableState.errorEmitted=!0,F(A,K),$(A,E))}function h(A){A.writing=!1,A.writecb=null,A.length-=A.writelen,A.writelen=0}function p(A,E){var U=A._writableState,K=U.sync,Z=U.writecb;if(typeof Z!="function")throw new P;if(h(U),E)l(A,U,K,E,Z);else{var b=s(U)||A.destroyed;!b&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&g(A,U),K?we.nextTick(w,A,U,b,Z):w(A,U,b,Z)}}function w(A,E,U,K){U||x(A,E),E.pendingcb--,K(),$(A,E)}function x(A,E){E.length===0&&E.needDrain&&(E.needDrain=!1,A.emit("drain"))}function g(A,E){E.bufferProcessing=!0;var U=E.bufferedRequest;if(A._writev&&U&&U.next){var K=E.bufferedRequestCount,Z=new Array(K),b=E.corkedRequestsFree;b.entry=U;for(var y=0,O=!0;U;)Z[y]=U,U.isBuf||(O=!1),U=U.next,y+=1;Z.allBuffers=O,f(A,E,!0,E.length,Z,"",b.finish),E.pendingcb++,E.lastBufferedRequest=null,b.next?(E.corkedRequestsFree=b.next,b.next=null):E.corkedRequestsFree=new e(E),E.bufferedRequestCount=0}else{for(;U;){var q=U.chunk,X=U.encoding,D=U.callback,N=E.objectMode?1:q.length;if(f(A,E,!1,N,q,X,D),U=U.next,E.bufferedRequestCount--,E.writing)break}U===null&&(E.lastBufferedRequest=null)}E.bufferedRequest=U,E.bufferProcessing=!1}J.prototype._write=function(A,E,U){U(new C("_write()"))},J.prototype._writev=null,J.prototype.end=function(A,E,U){var K=this._writableState;return typeof A=="function"?(U=A,A=null,E=null):typeof E=="function"&&(U=E,E=null),A!=null&&this.write(A,E),K.corked&&(K.corked=1,this.uncork()),K.ending||G(this,K,U),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function v(A,E){A._final(function(U){E.pendingcb--,U&&F(A,U),E.prefinished=!0,A.emit("prefinish"),$(A,E)})}function T(A,E){!E.prefinished&&!E.finalCalled&&(typeof A._final=="function"&&!E.destroyed?(E.pendingcb++,E.finalCalled=!0,we.nextTick(v,A,E)):(E.prefinished=!0,A.emit("prefinish")))}function $(A,E){var U=s(E);if(U&&(T(A,E),E.pendingcb===0&&(E.finished=!0,A.emit("finish"),E.autoDestroy))){var K=A._readableState;(!K||K.autoDestroy&&K.endEmitted)&&A.destroy()}return U}function G(A,E,U){E.ending=!0,$(A,E),U&&(E.finished?we.nextTick(U):A.once("finish",U)),E.ended=!0,A.writable=!1}function ee(A,E,U){var K=A.entry;for(A.entry=null;K;){var Z=K.callback;E.pendingcb--,Z(U),K=K.next}E.corkedRequestsFree.next=A}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),J.prototype.destroy=d.destroy,J.prototype._undestroy=d.undestroy,J.prototype._destroy=function(A,E){E(A)},Yd}var Zd,Ob;function ws(){if(Ob)return Zd;Ob=1;var e=Object.keys||function(m){var M=[];for(var S in m)M.push(S);return M};Zd=u;var t=SS(),r=MS();Ze(u,t);for(var i=e(r.prototype),a=0;a<i.length;a++){var n=i[a];u.prototype[n]||(u.prototype[n]=r.prototype[n])}function u(m){if(!(this instanceof u))return new u(m);t.call(this,m),r.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||we.nextTick(d,this)}function d(m){m.end()}return Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(M){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=M,this._writableState.destroyed=M)}}),Zd}var Xd,Ib;function yg(){if(Ib)return Xd;Ib=1;var e=js().codes.ERR_STREAM_PREMATURE_CLOSE;function t(n){var u=!1;return function(){if(!u){u=!0;for(var c=arguments.length,d=new Array(c),m=0;m<c;m++)d[m]=arguments[m];n.apply(this,d)}}}function r(){}function i(n){return n.setHeader&&typeof n.abort=="function"}function a(n,u,c){if(typeof u=="function")return a(n,null,u);u||(u={}),c=t(c||r);var d=u.readable||u.readable!==!1&&n.readable,m=u.writable||u.writable!==!1&&n.writable,M=function(){n.writable||R()},S=n._writableState&&n._writableState.finished,R=function(){m=!1,S=!0,d||c.call(n)},C=n._readableState&&n._readableState.endEmitted,P=function(){d=!1,C=!0,m||c.call(n)},k=function(H){c.call(n,H)},L=function(){var H;if(d&&!C)return(!n._readableState||!n._readableState.ended)&&(H=new e),c.call(n,H);if(m&&!S)return(!n._writableState||!n._writableState.ended)&&(H=new e),c.call(n,H)},I=function(){n.req.on("finish",R)};return i(n)?(n.on("complete",R),n.on("abort",L),n.req?I():n.on("request",I)):m&&!n._writableState&&(n.on("end",M),n.on("close",M)),n.on("end",P),n.on("finish",R),u.error!==!1&&n.on("error",k),n.on("close",L),function(){n.removeListener("complete",R),n.removeListener("abort",L),n.removeListener("request",I),n.req&&n.req.removeListener("finish",R),n.removeListener("end",M),n.removeListener("close",M),n.removeListener("finish",R),n.removeListener("end",P),n.removeListener("error",k),n.removeListener("close",L)}}return Xd=a,Xd}var Jd,Pb;function rj(){if(Pb)return Jd;Pb=1;var e;function t(H,F,W){return F=r(F),F in H?Object.defineProperty(H,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):H[F]=W,H}function r(H){var F=i(H,"string");return typeof F=="symbol"?F:String(F)}function i(H,F){if(typeof H!="object"||H===null)return H;var W=H[Symbol.toPrimitive];if(W!==void 0){var Y=W.call(H,F||"default");if(typeof Y!="object")return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(H)}var a=yg(),n=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),M=Symbol("handlePromise"),S=Symbol("stream");function R(H,F){return{value:H,done:F}}function C(H){var F=H[n];if(F!==null){var W=H[S].read();W!==null&&(H[m]=null,H[n]=null,H[u]=null,F(R(W,!1)))}}function P(H){we.nextTick(C,H)}function k(H,F){return function(W,Y){H.then(function(){if(F[d]){W(R(void 0,!0));return}F[M](W,Y)},Y)}}var L=Object.getPrototypeOf(function(){}),I=Object.setPrototypeOf((e={get stream(){return this[S]},next:function(){var F=this,W=this[c];if(W!==null)return Promise.reject(W);if(this[d])return Promise.resolve(R(void 0,!0));if(this[S].destroyed)return new Promise(function(V,oe){we.nextTick(function(){F[c]?oe(F[c]):V(R(void 0,!0))})});var Y=this[m],ie;if(Y)ie=new Promise(k(Y,this));else{var J=this[S].read();if(J!==null)return Promise.resolve(R(J,!1));ie=new Promise(this[M])}return this[m]=ie,ie}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var F=this;return new Promise(function(W,Y){F[S].destroy(null,function(ie){if(ie){Y(ie);return}W(R(void 0,!0))})})}),e),L),B=function(F){var W,Y=Object.create(I,(W={},t(W,S,{value:F,writable:!0}),t(W,n,{value:null,writable:!0}),t(W,u,{value:null,writable:!0}),t(W,c,{value:null,writable:!0}),t(W,d,{value:F._readableState.endEmitted,writable:!0}),t(W,M,{value:function(J,V){var oe=Y[S].read();oe?(Y[m]=null,Y[n]=null,Y[u]=null,J(R(oe,!1))):(Y[n]=J,Y[u]=V)},writable:!0}),W));return Y[m]=null,a(F,function(ie){if(ie&&ie.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=Y[u];J!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,J(ie)),Y[c]=ie;return}var V=Y[n];V!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,V(R(void 0,!0))),Y[d]=!0}),F.on("readable",P.bind(null,Y)),Y};return Jd=B,Jd}var Qd,Cb;function ij(){return Cb||(Cb=1,Qd=function(){throw new Error("Readable.from is not available in the browser")}),Qd}var e0,Bb;function SS(){if(Bb)return e0;Bb=1,e0=V;var e;V.ReadableState=J,Or.EventEmitter;var t=function(y,O){return y.listeners(O).length},r=bS(),i=ke.Buffer,a=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function n(b){return i.from(b)}function u(b){return i.isBuffer(b)||b instanceof a}var c=ei,d;c&&c.debuglog?d=c.debuglog("stream"):d=function(){};var m=tj(),M=wS(),S=_S(),R=S.getHighWaterMark,C=js().codes,P=C.ERR_INVALID_ARG_TYPE,k=C.ERR_STREAM_PUSH_AFTER_EOF,L=C.ERR_METHOD_NOT_IMPLEMENTED,I=C.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,B,H,F;Ze(V,r);var W=M.errorOrDestroy,Y=["error","close","destroy","pause","resume"];function ie(b,y,O){if(typeof b.prependListener=="function")return b.prependListener(y,O);!b._events||!b._events[y]?b.on(y,O):Array.isArray(b._events[y])?b._events[y].unshift(O):b._events[y]=[O,b._events[y]]}function J(b,y,O){e=e||ws(),b=b||{},typeof O!="boolean"&&(O=y instanceof e),this.objectMode=!!b.objectMode,O&&(this.objectMode=this.objectMode||!!b.readableObjectMode),this.highWaterMark=R(this,b,"readableHighWaterMark",O),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=b.emitClose!==!1,this.autoDestroy=!!b.autoDestroy,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(B||(B=Xr().StringDecoder),this.decoder=new B(b.encoding),this.encoding=b.encoding)}function V(b){if(e=e||ws(),!(this instanceof V))return new V(b);var y=this instanceof e;this._readableState=new J(b,this,y),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),r.call(this)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(y){this._readableState&&(this._readableState.destroyed=y)}}),V.prototype.destroy=M.destroy,V.prototype._undestroy=M.undestroy,V.prototype._destroy=function(b,y){y(b)},V.prototype.push=function(b,y){var O=this._readableState,q;return O.objectMode?q=!0:typeof b=="string"&&(y=y||O.defaultEncoding,y!==O.encoding&&(b=i.from(b,y),y=""),q=!0),oe(this,b,y,!1,q)},V.prototype.unshift=function(b){return oe(this,b,null,!0,!1)};function oe(b,y,O,q,X){d("readableAddChunk",y);var D=b._readableState;if(y===null)D.reading=!1,p(b,D);else{var N;if(X||(N=o(D,y)),N)W(b,N);else if(D.objectMode||y&&y.length>0)if(typeof y!="string"&&!D.objectMode&&Object.getPrototypeOf(y)!==i.prototype&&(y=n(y)),q)D.endEmitted?W(b,new I):_(b,D,y,!0);else if(D.ended)W(b,new k);else{if(D.destroyed)return!1;D.reading=!1,D.decoder&&!O?(y=D.decoder.write(y),D.objectMode||y.length!==0?_(b,D,y,!1):g(b,D)):_(b,D,y,!1)}else q||(D.reading=!1,g(b,D))}return!D.ended&&(D.length<D.highWaterMark||D.length===0)}function _(b,y,O,q){y.flowing&&y.length===0&&!y.sync?(y.awaitDrain=0,b.emit("data",O)):(y.length+=y.objectMode?1:O.length,q?y.buffer.unshift(O):y.buffer.push(O),y.needReadable&&w(b)),g(b,y)}function o(b,y){var O;return!u(y)&&typeof y!="string"&&y!==void 0&&!b.objectMode&&(O=new P("chunk",["string","Buffer","Uint8Array"],y)),O}V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(b){B||(B=Xr().StringDecoder);var y=new B(b);this._readableState.decoder=y,this._readableState.encoding=this._readableState.decoder.encoding;for(var O=this._readableState.buffer.head,q="";O!==null;)q+=y.write(O.data),O=O.next;return this._readableState.buffer.clear(),q!==""&&this._readableState.buffer.push(q),this._readableState.length=q.length,this};var f=1073741824;function l(b){return b>=f?b=f:(b--,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,b|=b>>>16,b++),b}function h(b,y){return b<=0||y.length===0&&y.ended?0:y.objectMode?1:b!==b?y.flowing&&y.length?y.buffer.head.data.length:y.length:(b>y.highWaterMark&&(y.highWaterMark=l(b)),b<=y.length?b:y.ended?y.length:(y.needReadable=!0,0))}V.prototype.read=function(b){d("read",b),b=parseInt(b,10);var y=this._readableState,O=b;if(b!==0&&(y.emittedReadable=!1),b===0&&y.needReadable&&((y.highWaterMark!==0?y.length>=y.highWaterMark:y.length>0)||y.ended))return d("read: emitReadable",y.length,y.ended),y.length===0&&y.ended?U(this):w(this),null;if(b=h(b,y),b===0&&y.ended)return y.length===0&&U(this),null;var q=y.needReadable;d("need readable",q),(y.length===0||y.length-b<y.highWaterMark)&&(q=!0,d("length less than watermark",q)),y.ended||y.reading?(q=!1,d("reading or ended",q)):q&&(d("do read"),y.reading=!0,y.sync=!0,y.length===0&&(y.needReadable=!0),this._read(y.highWaterMark),y.sync=!1,y.reading||(b=h(O,y)));var X;return b>0?X=E(b,y):X=null,X===null?(y.needReadable=y.length<=y.highWaterMark,b=0):(y.length-=b,y.awaitDrain=0),y.length===0&&(y.ended||(y.needReadable=!0),O!==b&&y.ended&&U(this)),X!==null&&this.emit("data",X),X};function p(b,y){if(d("onEofChunk"),!y.ended){if(y.decoder){var O=y.decoder.end();O&&O.length&&(y.buffer.push(O),y.length+=y.objectMode?1:O.length)}y.ended=!0,y.sync?w(b):(y.needReadable=!1,y.emittedReadable||(y.emittedReadable=!0,x(b)))}}function w(b){var y=b._readableState;d("emitReadable",y.needReadable,y.emittedReadable),y.needReadable=!1,y.emittedReadable||(d("emitReadable",y.flowing),y.emittedReadable=!0,we.nextTick(x,b))}function x(b){var y=b._readableState;d("emitReadable_",y.destroyed,y.length,y.ended),!y.destroyed&&(y.length||y.ended)&&(b.emit("readable"),y.emittedReadable=!1),y.needReadable=!y.flowing&&!y.ended&&y.length<=y.highWaterMark,A(b)}function g(b,y){y.readingMore||(y.readingMore=!0,we.nextTick(s,b,y))}function s(b,y){for(;!y.reading&&!y.ended&&(y.length<y.highWaterMark||y.flowing&&y.length===0);){var O=y.length;if(d("maybeReadMore read 0"),b.read(0),O===y.length)break}y.readingMore=!1}V.prototype._read=function(b){W(this,new L("_read()"))},V.prototype.pipe=function(b,y){var O=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=b;break;case 1:q.pipes=[q.pipes,b];break;default:q.pipes.push(b);break}q.pipesCount+=1,d("pipe count=%d opts=%j",q.pipesCount,y);var X=(!y||y.end!==!1)&&b!==we.stdout&&b!==we.stderr,D=X?j:le;q.endEmitted?we.nextTick(D):O.once("end",D),b.on("unpipe",N);function N(ce,pe){d("onunpipe"),ce===O&&pe&&pe.hasUnpiped===!1&&(pe.hasUnpiped=!0,te())}function j(){d("onend"),b.end()}var z=v(O);b.on("drain",z);var se=!1;function te(){d("cleanup"),b.removeListener("close",Q),b.removeListener("finish",ue),b.removeListener("drain",z),b.removeListener("error",Ee),b.removeListener("unpipe",N),O.removeListener("end",j),O.removeListener("end",le),O.removeListener("data",ne),se=!0,q.awaitDrain&&(!b._writableState||b._writableState.needDrain)&&z()}O.on("data",ne);function ne(ce){d("ondata");var pe=b.write(ce);d("dest.write",pe),pe===!1&&((q.pipesCount===1&&q.pipes===b||q.pipesCount>1&&Z(q.pipes,b)!==-1)&&!se&&(d("false write response, pause",q.awaitDrain),q.awaitDrain++),O.pause())}function Ee(ce){d("onerror",ce),le(),b.removeListener("error",Ee),t(b,"error")===0&&W(b,ce)}ie(b,"error",Ee);function Q(){b.removeListener("finish",ue),le()}b.once("close",Q);function ue(){d("onfinish"),b.removeListener("close",Q),le()}b.once("finish",ue);function le(){d("unpipe"),O.unpipe(b)}return b.emit("pipe",O),q.flowing||(d("pipe resume"),O.resume()),b};function v(b){return function(){var O=b._readableState;d("pipeOnDrain",O.awaitDrain),O.awaitDrain&&O.awaitDrain--,O.awaitDrain===0&&t(b,"data")&&(O.flowing=!0,A(b))}}V.prototype.unpipe=function(b){var y=this._readableState,O={hasUnpiped:!1};if(y.pipesCount===0)return this;if(y.pipesCount===1)return b&&b!==y.pipes?this:(b||(b=y.pipes),y.pipes=null,y.pipesCount=0,y.flowing=!1,b&&b.emit("unpipe",this,O),this);if(!b){var q=y.pipes,X=y.pipesCount;y.pipes=null,y.pipesCount=0,y.flowing=!1;for(var D=0;D<X;D++)q[D].emit("unpipe",this,{hasUnpiped:!1});return this}var N=Z(y.pipes,b);return N===-1?this:(y.pipes.splice(N,1),y.pipesCount-=1,y.pipesCount===1&&(y.pipes=y.pipes[0]),b.emit("unpipe",this,O),this)},V.prototype.on=function(b,y){var O=r.prototype.on.call(this,b,y),q=this._readableState;return b==="data"?(q.readableListening=this.listenerCount("readable")>0,q.flowing!==!1&&this.resume()):b==="readable"&&!q.endEmitted&&!q.readableListening&&(q.readableListening=q.needReadable=!0,q.flowing=!1,q.emittedReadable=!1,d("on readable",q.length,q.reading),q.length?w(this):q.reading||we.nextTick($,this)),O},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(b,y){var O=r.prototype.removeListener.call(this,b,y);return b==="readable"&&we.nextTick(T,this),O},V.prototype.removeAllListeners=function(b){var y=r.prototype.removeAllListeners.apply(this,arguments);return(b==="readable"||b===void 0)&&we.nextTick(T,this),y};function T(b){var y=b._readableState;y.readableListening=b.listenerCount("readable")>0,y.resumeScheduled&&!y.paused?y.flowing=!0:b.listenerCount("data")>0&&b.resume()}function $(b){d("readable nexttick read 0"),b.read(0)}V.prototype.resume=function(){var b=this._readableState;return b.flowing||(d("resume"),b.flowing=!b.readableListening,G(this,b)),b.paused=!1,this};function G(b,y){y.resumeScheduled||(y.resumeScheduled=!0,we.nextTick(ee,b,y))}function ee(b,y){d("resume",y.reading),y.reading||b.read(0),y.resumeScheduled=!1,b.emit("resume"),A(b),y.flowing&&!y.reading&&b.read(0)}V.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function A(b){var y=b._readableState;for(d("flow",y.flowing);y.flowing&&b.read()!==null;);}V.prototype.wrap=function(b){var y=this,O=this._readableState,q=!1;b.on("end",function(){if(d("wrapped end"),O.decoder&&!O.ended){var N=O.decoder.end();N&&N.length&&y.push(N)}y.push(null)}),b.on("data",function(N){if(d("wrapped data"),O.decoder&&(N=O.decoder.write(N)),!(O.objectMode&&N==null)&&!(!O.objectMode&&(!N||!N.length))){var j=y.push(N);j||(q=!0,b.pause())}});for(var X in b)this[X]===void 0&&typeof b[X]=="function"&&(this[X]=function(j){return function(){return b[j].apply(b,arguments)}}(X));for(var D=0;D<Y.length;D++)b.on(Y[D],this.emit.bind(this,Y[D]));return this._read=function(N){d("wrapped _read",N),q&&(q=!1,b.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return H===void 0&&(H=rj()),H(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(y){this._readableState&&(this._readableState.flowing=y)}}),V._fromList=E,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function E(b,y){if(y.length===0)return null;var O;return y.objectMode?O=y.buffer.shift():!b||b>=y.length?(y.decoder?O=y.buffer.join(""):y.buffer.length===1?O=y.buffer.first():O=y.buffer.concat(y.length),y.buffer.clear()):O=y.buffer.consume(b,y.decoder),O}function U(b){var y=b._readableState;d("endReadable",y.endEmitted),y.endEmitted||(y.ended=!0,we.nextTick(K,y,b))}function K(b,y){if(d("endReadableNT",b.endEmitted,b.length),!b.endEmitted&&b.length===0&&(b.endEmitted=!0,y.readable=!1,y.emit("end"),b.autoDestroy)){var O=y._writableState;(!O||O.autoDestroy&&O.finished)&&y.destroy()}}typeof Symbol=="function"&&(V.from=function(b,y){return F===void 0&&(F=ij()),F(V,b,y)});function Z(b,y){for(var O=0,q=b.length;O<q;O++)if(b[O]===y)return O;return-1}return e0}var t0,Lb;function xS(){if(Lb)return t0;Lb=1,t0=c;var e=js().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,i=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=e.ERR_TRANSFORM_WITH_LENGTH_0,n=ws();Ze(c,n);function u(M,S){var R=this._transformState;R.transforming=!1;var C=R.writecb;if(C===null)return this.emit("error",new r);R.writechunk=null,R.writecb=null,S!=null&&this.push(S),C(M);var P=this._readableState;P.reading=!1,(P.needReadable||P.length<P.highWaterMark)&&this._read(P.highWaterMark)}function c(M){if(!(this instanceof c))return new c(M);n.call(this,M),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,M&&(typeof M.transform=="function"&&(this._transform=M.transform),typeof M.flush=="function"&&(this._flush=M.flush)),this.on("prefinish",d)}function d(){var M=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(S,R){m(M,S,R)}):m(this,null,null)}c.prototype.push=function(M,S){return this._transformState.needTransform=!1,n.prototype.push.call(this,M,S)},c.prototype._transform=function(M,S,R){R(new t("_transform()"))},c.prototype._write=function(M,S,R){var C=this._transformState;if(C.writecb=R,C.writechunk=M,C.writeencoding=S,!C.transforming){var P=this._readableState;(C.needTransform||P.needReadable||P.length<P.highWaterMark)&&this._read(P.highWaterMark)}},c.prototype._read=function(M){var S=this._transformState;S.writechunk!==null&&!S.transforming?(S.transforming=!0,this._transform(S.writechunk,S.writeencoding,S.afterTransform)):S.needTransform=!0},c.prototype._destroy=function(M,S){n.prototype._destroy.call(this,M,function(R){S(R)})};function m(M,S,R){if(S)return M.emit("error",S);if(R!=null&&M.push(R),M._writableState.length)throw new a;if(M._transformState.transforming)throw new i;return M.push(null)}return t0}var r0,Nb;function nj(){if(Nb)return r0;Nb=1,r0=t;var e=xS();Ze(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,i,a){a(null,r)},r0}var i0,kb;function oj(){if(kb)return i0;kb=1;var e;function t(R){var C=!1;return function(){C||(C=!0,R.apply(void 0,arguments))}}var r=js().codes,i=r.ERR_MISSING_ARGS,a=r.ERR_STREAM_DESTROYED;function n(R){if(R)throw R}function u(R){return R.setHeader&&typeof R.abort=="function"}function c(R,C,P,k){k=t(k);var L=!1;R.on("close",function(){L=!0}),e===void 0&&(e=yg()),e(R,{readable:C,writable:P},function(B){if(B)return k(B);L=!0,k()});var I=!1;return function(B){if(!L&&!I){if(I=!0,u(R))return R.abort();if(typeof R.destroy=="function")return R.destroy();k(B||new a("pipe"))}}}function d(R){R()}function m(R,C){return R.pipe(C)}function M(R){return!R.length||typeof R[R.length-1]!="function"?n:R.pop()}function S(){for(var R=arguments.length,C=new Array(R),P=0;P<R;P++)C[P]=arguments[P];var k=M(C);if(Array.isArray(C[0])&&(C=C[0]),C.length<2)throw new i("streams");var L,I=C.map(function(B,H){var F=H<C.length-1,W=H>0;return c(B,F,W,function(Y){L||(L=Y),Y&&I.forEach(d),!F&&(I.forEach(d),k(L))})});return C.reduce(m)}return i0=S,i0}var aj=vi,bg=Or.EventEmitter,sj=Ze;sj(vi,bg);vi.Readable=SS();vi.Writable=MS();vi.Duplex=ws();vi.Transform=xS();vi.PassThrough=nj();vi.finished=yg();vi.pipeline=oj();vi.Stream=vi;function vi(){bg.call(this)}vi.prototype.pipe=function(e,t){var r=this;function i(M){e.writable&&e.write(M)===!1&&r.pause&&r.pause()}r.on("data",i);function a(){r.readable&&r.resume&&r.resume()}e.on("drain",a),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",u),r.on("close",c));var n=!1;function u(){n||(n=!0,e.end())}function c(){n||(n=!0,typeof e.destroy=="function"&&e.destroy())}function d(M){if(m(),bg.listenerCount(this,"error")===0)throw M}r.on("error",d),e.on("error",d);function m(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",u),r.removeListener("close",c),r.removeListener("error",d),e.removeListener("error",d),r.removeListener("end",m),r.removeListener("close",m),e.removeListener("close",m)}return r.on("end",m),r.on("close",m),e.on("close",m),e.emit("pipe",r),e};var ES=pt.Buffer,RS=aj.Transform,fj=Xr().StringDecoder,uj=Ze;function Ui(e){RS.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}uj(Ui,RS);Ui.prototype.update=function(e,t,r){typeof e=="string"&&(e=ES.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)};Ui.prototype.setAutoPadding=function(){};Ui.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};Ui.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};Ui.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};Ui.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(a){i=a}finally{r(i)}};Ui.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)};Ui.prototype._finalOrDigest=function(e){var t=this.__final()||ES.alloc(0);return e&&(t=this._toString(t,e,!0)),t};Ui.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new fj(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i};var $o=Ui,lj=Ze,hj=vg,cj=gg,dj=mg,AS=$o;function ec(e){AS.call(this,"digest"),this._hash=e}lj(ec,AS);ec.prototype._update=function(e){this._hash.update(e)};ec.prototype._final=function(){return this._hash.digest()};var Tu=function(t){return t=t.toLowerCase(),t==="md5"?new hj:t==="rmd160"||t==="ripemd160"?new cj:new ec(dj(t))},pj=Ze,Xo=pt.Buffer,TS=$o,vj=Xo.alloc(128),Fa=64;function tc(e,t){TS.call(this,"digest"),typeof t=="string"&&(t=Xo.from(t)),this._alg=e,this._key=t,t.length>Fa?t=e(t):t.length<Fa&&(t=Xo.concat([t,vj],Fa));for(var r=this._ipad=Xo.allocUnsafe(Fa),i=this._opad=Xo.allocUnsafe(Fa),a=0;a<Fa;a++)r[a]=t[a]^54,i[a]=t[a]^92;this._hash=[r]}pj(tc,TS);tc.prototype._update=function(e){this._hash.push(e)};tc.prototype._final=function(){var e=this._alg(Xo.concat(this._hash));return this._alg(Xo.concat([this._opad,e]))};var gj=tc,mj=vg,OS=function(e){return new mj().update(e).digest()},yj=Ze,bj=gj,IS=$o,xf=pt.Buffer,wj=OS,Up=gg,Hp=mg,_j=xf.alloc(128);function ou(e,t){IS.call(this,"digest"),typeof t=="string"&&(t=xf.from(t));var r=e==="sha512"||e==="sha384"?128:64;if(this._alg=e,this._key=t,t.length>r){var i=e==="rmd160"?new Up:Hp(e);t=i.update(t).digest()}else t.length<r&&(t=xf.concat([t,_j],r));for(var a=this._ipad=xf.allocUnsafe(r),n=this._opad=xf.allocUnsafe(r),u=0;u<r;u++)a[u]=t[u]^54,n[u]=t[u]^92;this._hash=e==="rmd160"?new Up:Hp(e),this._hash.update(a)}yj(ou,IS);ou.prototype._update=function(e){this._hash.update(e)};ou.prototype._final=function(){var e=this._hash.digest(),t=this._alg==="rmd160"?new Up:Hp(this._alg);return t.update(this._opad).update(e).digest()};var PS=function(t,r){return t=t.toLowerCase(),t==="rmd160"||t==="ripemd160"?new ou("rmd160",r):t==="md5"?new bj(wj,r):new ou(t,r)};const Mj={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},Sj={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},xj={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},Ej={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},Rj={sign:"ecdsa",hash:"sha256",id:""},Aj={sign:"ecdsa",hash:"sha224",id:""},Tj={sign:"ecdsa",hash:"sha384",id:""},Oj={sign:"ecdsa",hash:"sha512",id:""},Ij={sign:"dsa",hash:"sha1",id:""},Pj={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},Cj={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},CS={sha224WithRSAEncryption:Mj,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:Sj,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:xj,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:Ej,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:Rj,sha224:Aj,sha384:Tj,sha512:Oj,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:Ij,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:Pj,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:Cj,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var Bj=CS,rc={},Lj=Math.pow(2,30)-1,BS=function(e,t){if(typeof e!="number")throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if(typeof t!="number")throw new TypeError("Key length not a number");if(t<0||t>Lj||t!==t)throw new TypeError("Bad key length")},ml;if(Ye.process&&Ye.process.browser)ml="utf-8";else if(Ye.process&&Ye.process.version){var Nj=parseInt(we.version.split(".")[0].slice(1),10);ml=Nj>=6?"utf-8":"binary"}else ml="utf-8";var LS=ml,n0=pt.Buffer,NS=function(e,t,r){if(n0.isBuffer(e))return e;if(typeof e=="string")return n0.from(e,t);if(ArrayBuffer.isView(e))return n0.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")},kj=OS,$j=gg,Dj=mg,Jo=pt.Buffer,Fj=BS,$b=LS,Db=NS,jj=Jo.alloc(128),yl={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function kS(e,t,r){var i=Uj(e),a=e==="sha512"||e==="sha384"?128:64;t.length>a?t=i(t):t.length<a&&(t=Jo.concat([t,jj],a));for(var n=Jo.allocUnsafe(a+yl[e]),u=Jo.allocUnsafe(a+yl[e]),c=0;c<a;c++)n[c]=t[c]^54,u[c]=t[c]^92;var d=Jo.allocUnsafe(a+r+4);n.copy(d,0,0,a),this.ipad1=d,this.ipad2=n,this.opad=u,this.alg=e,this.blocksize=a,this.hash=i,this.size=yl[e]}kS.prototype.run=function(e,t){e.copy(t,this.blocksize);var r=this.hash(t);return r.copy(this.opad,this.blocksize),this.hash(this.opad)};function Uj(e){function t(i){return Dj(e).update(i).digest()}function r(i){return new $j().update(i).digest()}return e==="rmd160"||e==="ripemd160"?r:e==="md5"?kj:t}function Hj(e,t,r,i,a){Fj(r,i),e=Db(e,$b,"Password"),t=Db(t,$b,"Salt"),a=a||"sha1";var n=new kS(a,e,t.length),u=Jo.allocUnsafe(i),c=Jo.allocUnsafe(t.length+4);t.copy(c,0,0,t.length);for(var d=0,m=yl[a],M=Math.ceil(i/m),S=1;S<=M;S++){c.writeUInt32BE(S,t.length);for(var R=n.run(c,n.ipad1),C=R,P=1;P<r;P++){C=n.run(C,n.ipad2);for(var k=0;k<m;k++)R[k]^=C[k]}R.copy(u,d),d+=m}return u}var $S=Hj,DS=pt.Buffer,qj=BS,Fb=LS,jb=$S,Ub=NS,Xu,jf=Ye.crypto&&Ye.crypto.subtle,Wj={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},o0=[];function Kj(e){if(Ye.process&&!Ye.process.browser||!jf||!jf.importKey||!jf.deriveBits)return Promise.resolve(!1);if(o0[e]!==void 0)return o0[e];Xu=Xu||DS.alloc(8);var t=FS(Xu,Xu,10,128,e).then(function(){return!0}).catch(function(){return!1});return o0[e]=t,t}var Uo;function qp(){return Uo||(Ye.process&&Ye.process.nextTick?Uo=Ye.process.nextTick:Ye.queueMicrotask?Uo=Ye.queueMicrotask:Ye.setImmediate?Uo=Ye.setImmediate:Uo=Ye.setTimeout,Uo)}function FS(e,t,r,i,a){return jf.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(n){return jf.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:a}},n,i<<3)}).then(function(n){return DS.from(n)})}function Vj(e,t){e.then(function(r){qp()(function(){t(null,r)})},function(r){qp()(function(){t(r)})})}var zj=function(e,t,r,i,a,n){typeof a=="function"&&(n=a,a=void 0),a=a||"sha1";var u=Wj[a.toLowerCase()];if(!u||typeof Ye.Promise!="function"){qp()(function(){var c;try{c=jb(e,t,r,i,a)}catch(d){return n(d)}n(null,c)});return}if(qj(r,i),e=Ub(e,Fb,"Password"),t=Ub(t,Fb,"Salt"),typeof n!="function")throw new Error("No callback provided to pbkdf2");Vj(Kj(u).then(function(c){return c?FS(e,t,r,i,u):jb(e,t,r,i,a)}),n)};rc.pbkdf2=zj;rc.pbkdf2Sync=$S;var $i={},Us={},ti={};ti.readUInt32BE=function(t,r){var i=t[0+r]<<24|t[1+r]<<16|t[2+r]<<8|t[3+r];return i>>>0};ti.writeUInt32BE=function(t,r,i){t[0+i]=r>>>24,t[1+i]=r>>>16&255,t[2+i]=r>>>8&255,t[3+i]=r&255};ti.ip=function(t,r,i,a){for(var n=0,u=0,c=6;c>=0;c-=2){for(var d=0;d<=24;d+=8)n<<=1,n|=r>>>d+c&1;for(var d=0;d<=24;d+=8)n<<=1,n|=t>>>d+c&1}for(var c=6;c>=0;c-=2){for(var d=1;d<=25;d+=8)u<<=1,u|=r>>>d+c&1;for(var d=1;d<=25;d+=8)u<<=1,u|=t>>>d+c&1}i[a+0]=n>>>0,i[a+1]=u>>>0};ti.rip=function(t,r,i,a){for(var n=0,u=0,c=0;c<4;c++)for(var d=24;d>=0;d-=8)n<<=1,n|=r>>>d+c&1,n<<=1,n|=t>>>d+c&1;for(var c=4;c<8;c++)for(var d=24;d>=0;d-=8)u<<=1,u|=r>>>d+c&1,u<<=1,u|=t>>>d+c&1;i[a+0]=n>>>0,i[a+1]=u>>>0};ti.pc1=function(t,r,i,a){for(var n=0,u=0,c=7;c>=5;c--){for(var d=0;d<=24;d+=8)n<<=1,n|=r>>d+c&1;for(var d=0;d<=24;d+=8)n<<=1,n|=t>>d+c&1}for(var d=0;d<=24;d+=8)n<<=1,n|=r>>d+c&1;for(var c=1;c<=3;c++){for(var d=0;d<=24;d+=8)u<<=1,u|=r>>d+c&1;for(var d=0;d<=24;d+=8)u<<=1,u|=t>>d+c&1}for(var d=0;d<=24;d+=8)u<<=1,u|=t>>d+c&1;i[a+0]=n>>>0,i[a+1]=u>>>0};ti.r28shl=function(t,r){return t<<r&268435455|t>>>28-r};var Ju=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];ti.pc2=function(t,r,i,a){for(var n=0,u=0,c=Ju.length>>>1,d=0;d<c;d++)n<<=1,n|=t>>>Ju[d]&1;for(var d=c;d<Ju.length;d++)u<<=1,u|=r>>>Ju[d]&1;i[a+0]=n>>>0,i[a+1]=u>>>0};ti.expand=function(t,r,i){var a=0,n=0;a=(t&1)<<5|t>>>27;for(var u=23;u>=15;u-=4)a<<=6,a|=t>>>u&63;for(var u=11;u>=3;u-=4)n|=t>>>u&63,n<<=6;n|=(t&31)<<1|t>>>31,r[i+0]=a>>>0,r[i+1]=n>>>0};var Hb=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];ti.substitute=function(t,r){for(var i=0,a=0;a<4;a++){var n=t>>>18-a*6&63,u=Hb[a*64+n];i<<=4,i|=u}for(var a=0;a<4;a++){var n=r>>>18-a*6&63,u=Hb[4*64+a*64+n];i<<=4,i|=u}return i>>>0};var qb=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];ti.permute=function(t){for(var r=0,i=0;i<qb.length;i++)r<<=1,r|=t>>>qb[i]&1;return r>>>0};ti.padSplit=function(t,r,i){for(var a=t.toString(2);a.length<r;)a="0"+a;for(var n=[],u=0;u<r;u+=i)n.push(a.slice(u,u+i));return n.join(" ")};var Si=jS;function jS(e,t){if(!e)throw new Error(t||"Assertion failed")}jS.equal=function(t,r,i){if(t!=r)throw new Error(i||"Assertion failed: "+t+" != "+r)};var Gj=Si;function xi(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=e.padding!==!1}var wg=xi;xi.prototype._init=function(){};xi.prototype.update=function(t){return t.length===0?[]:this.type==="decrypt"?this._updateDecrypt(t):this._updateEncrypt(t)};xi.prototype._buffer=function(t,r){for(var i=Math.min(this.buffer.length-this.bufferOff,t.length-r),a=0;a<i;a++)this.buffer[this.bufferOff+a]=t[r+a];return this.bufferOff+=i,i};xi.prototype._flushBuffer=function(t,r){return this._update(this.buffer,0,t,r),this.bufferOff=0,this.blockSize};xi.prototype._updateEncrypt=function(t){var r=0,i=0,a=(this.bufferOff+t.length)/this.blockSize|0,n=new Array(a*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(t,r),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(n,i)));for(var u=t.length-(t.length-r)%this.blockSize;r<u;r+=this.blockSize)this._update(t,r,n,i),i+=this.blockSize;for(;r<t.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=t[r];return n};xi.prototype._updateDecrypt=function(t){for(var r=0,i=0,a=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,n=new Array(a*this.blockSize);a>0;a--)r+=this._buffer(t,r),i+=this._flushBuffer(n,i);return r+=this._buffer(t,r),n};xi.prototype.final=function(t){var r;t&&(r=this.update(t));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),r?r.concat(i):i};xi.prototype._pad=function(t,r){if(r===0)return!1;for(;r<t.length;)t[r++]=0;return!0};xi.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t};xi.prototype._unpad=function(t){return t};xi.prototype._finalDecrypt=function(){Gj.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)};var US=Si,Yj=Ze,or=ti,HS=wg;function Zj(){this.tmp=new Array(2),this.keys=null}function fn(e){HS.call(this,e);var t=new Zj;this._desState=t,this.deriveKeys(t,e.key)}Yj(fn,HS);var qS=fn;fn.create=function(t){return new fn(t)};var Xj=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];fn.prototype.deriveKeys=function(t,r){t.keys=new Array(16*2),US.equal(r.length,this.blockSize,"Invalid key length");var i=or.readUInt32BE(r,0),a=or.readUInt32BE(r,4);or.pc1(i,a,t.tmp,0),i=t.tmp[0],a=t.tmp[1];for(var n=0;n<t.keys.length;n+=2){var u=Xj[n>>>1];i=or.r28shl(i,u),a=or.r28shl(a,u),or.pc2(i,a,t.keys,n)}};fn.prototype._update=function(t,r,i,a){var n=this._desState,u=or.readUInt32BE(t,r),c=or.readUInt32BE(t,r+4);or.ip(u,c,n.tmp,0),u=n.tmp[0],c=n.tmp[1],this.type==="encrypt"?this._encrypt(n,u,c,n.tmp,0):this._decrypt(n,u,c,n.tmp,0),u=n.tmp[0],c=n.tmp[1],or.writeUInt32BE(i,u,a),or.writeUInt32BE(i,c,a+4)};fn.prototype._pad=function(t,r){if(this.padding===!1)return!1;for(var i=t.length-r,a=r;a<t.length;a++)t[a]=i;return!0};fn.prototype._unpad=function(t){if(this.padding===!1)return t;for(var r=t[t.length-1],i=t.length-r;i<t.length;i++)US.equal(t[i],r);return t.slice(0,t.length-r)};fn.prototype._encrypt=function(t,r,i,a,n){for(var u=r,c=i,d=0;d<t.keys.length;d+=2){var m=t.keys[d],M=t.keys[d+1];or.expand(c,t.tmp,0),m^=t.tmp[0],M^=t.tmp[1];var S=or.substitute(m,M),R=or.permute(S),C=c;c=(u^R)>>>0,u=C}or.rip(c,u,a,n)};fn.prototype._decrypt=function(t,r,i,a,n){for(var u=i,c=r,d=t.keys.length-2;d>=0;d-=2){var m=t.keys[d],M=t.keys[d+1];or.expand(u,t.tmp,0),m^=t.tmp[0],M^=t.tmp[1];var S=or.substitute(m,M),R=or.permute(S),C=u;u=(c^R)>>>0,c=C}or.rip(u,c,a,n)};var WS={},Jj=Si,Qj=Ze,Ql={};function eU(e){Jj.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}function tU(e){function t(n){e.call(this,n),this._cbcInit()}Qj(t,e);for(var r=Object.keys(Ql),i=0;i<r.length;i++){var a=r[i];t.prototype[a]=Ql[a]}return t.create=function(u){return new t(u)},t}WS.instantiate=tU;Ql._cbcInit=function(){var t=new eU(this.options.iv);this._cbcState=t};Ql._update=function(t,r,i,a){var n=this._cbcState,u=this.constructor.super_.prototype,c=n.iv;if(this.type==="encrypt"){for(var d=0;d<this.blockSize;d++)c[d]^=t[r+d];u._update.call(this,c,0,i,a);for(var d=0;d<this.blockSize;d++)c[d]=i[a+d]}else{u._update.call(this,t,r,i,a);for(var d=0;d<this.blockSize;d++)i[a+d]^=c[d];for(var d=0;d<this.blockSize;d++)c[d]=t[r+d]}};var rU=Si,iU=Ze,KS=wg,ao=qS;function nU(e,t){rU.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),a=t.slice(16,24);e==="encrypt"?this.ciphers=[ao.create({type:"encrypt",key:r}),ao.create({type:"decrypt",key:i}),ao.create({type:"encrypt",key:a})]:this.ciphers=[ao.create({type:"decrypt",key:a}),ao.create({type:"encrypt",key:i}),ao.create({type:"decrypt",key:r})]}function da(e){KS.call(this,e);var t=new nU(this.type,this.options.key);this._edeState=t}iU(da,KS);var oU=da;da.create=function(t){return new da(t)};da.prototype._update=function(t,r,i,a){var n=this._edeState;n.ciphers[0]._update(t,r,i,a),n.ciphers[1]._update(i,a,i,a),n.ciphers[2]._update(i,a,i,a)};da.prototype._pad=ao.prototype._pad;da.prototype._unpad=ao.prototype._unpad;Us.utils=ti;Us.Cipher=wg;Us.DES=qS;Us.CBC=WS;Us.EDE=oU;var VS=$o,yn=Us,aU=Ze,zo=pt.Buffer,au={"des-ede3-cbc":yn.CBC.instantiate(yn.EDE),"des-ede3":yn.EDE,"des-ede-cbc":yn.CBC.instantiate(yn.EDE),"des-ede":yn.EDE,"des-cbc":yn.CBC.instantiate(yn.DES),"des-ecb":yn.DES};au.des=au["des-cbc"];au.des3=au["des-ede3-cbc"];var sU=ic;aU(ic,VS);function ic(e){VS.call(this);var t=e.mode.toLowerCase(),r=au[t],i;e.decrypt?i="decrypt":i="encrypt";var a=e.key;zo.isBuffer(a)||(a=zo.from(a)),(t==="des-ede"||t==="des-ede-cbc")&&(a=zo.concat([a,a.slice(0,8)]));var n=e.iv;zo.isBuffer(n)||(n=zo.from(n)),this._des=r.create({key:a,iv:n,type:i})}ic.prototype._update=function(e){return zo.from(this._des.update(e))};ic.prototype._final=function(){return zo.from(this._des.final())};var Qr={},_g={},Mg={};Mg.encrypt=function(e,t){return e._cipher.encryptBlock(t)};Mg.decrypt=function(e,t){return e._cipher.decryptBlock(t)};var Sg={},Ou=function(t,r){for(var i=Math.min(t.length,r.length),a=new ke.Buffer(i),n=0;n<i;++n)a[n]=t[n]^r[n];return a},zS=Ou;Sg.encrypt=function(e,t){var r=zS(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev};Sg.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return zS(i,r)};var GS={},Ef=pt.Buffer,fU=Ou;function Wb(e,t,r){var i=t.length,a=fU(t,e._cache);return e._cache=e._cache.slice(i),e._prev=Ef.concat([e._prev,r?t:a]),a}GS.encrypt=function(e,t,r){for(var i=Ef.allocUnsafe(0),a;t.length;)if(e._cache.length===0&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=Ef.allocUnsafe(0)),e._cache.length<=t.length)a=e._cache.length,i=Ef.concat([i,Wb(e,t.slice(0,a),r)]),t=t.slice(a);else{i=Ef.concat([i,Wb(e,t,r)]);break}return i};var YS={},Wp=pt.Buffer;function uU(e,t,r){var i=e._cipher.encryptBlock(e._prev),a=i[0]^t;return e._prev=Wp.concat([e._prev.slice(1),Wp.from([r?t:a])]),a}YS.encrypt=function(e,t,r){for(var i=t.length,a=Wp.allocUnsafe(i),n=-1;++n<i;)a[n]=uU(e,t[n],r);return a};var ZS={},bl=pt.Buffer;function lU(e,t,r){for(var i,a=-1,n=8,u=0,c,d;++a<n;)i=e._cipher.encryptBlock(e._prev),c=t&1<<7-a?128:0,d=i[0]^c,u+=(d&128)>>a%8,e._prev=hU(e._prev,r?c:d);return u}function hU(e,t){var r=e.length,i=-1,a=bl.allocUnsafe(e.length);for(e=bl.concat([e,bl.from([t])]);++i<r;)a[i]=e[i]<<1|e[i+1]>>7;return a}ZS.encrypt=function(e,t,r){for(var i=t.length,a=bl.allocUnsafe(i),n=-1;++n<i;)a[n]=lU(e,t[n],r);return a};var XS={},cU=Ou;function dU(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}XS.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=ke.Buffer.concat([e._cache,dU(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),cU(t,r)};var Kp={};function pU(e){for(var t=e.length,r;t--;)if(r=e.readUInt8(t),r===255)e.writeUInt8(0,t);else{r++,e.writeUInt8(r,t);break}}var JS=pU,vU=Ou,Kb=pt.Buffer,gU=JS;function mU(e){var t=e._cipher.encryptBlockRaw(e._prev);return gU(e._prev),t}var a0=16;Kp.encrypt=function(e,t){var r=Math.ceil(t.length/a0),i=e._cache.length;e._cache=Kb.concat([e._cache,Kb.allocUnsafe(r*a0)]);for(var a=0;a<r;a++){var n=mU(e),u=i+a*a0;e._cache.writeUInt32BE(n[0],u+0),e._cache.writeUInt32BE(n[1],u+4),e._cache.writeUInt32BE(n[2],u+8),e._cache.writeUInt32BE(n[3],u+12)}var c=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),vU(t,c)};const yU={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},bU={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},wU={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},QS={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:yU,aes192:bU,aes256:wU,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var _U={ECB:Mg,CBC:Sg,CFB:GS,CFB8:YS,CFB1:ZS,OFB:XS,CTR:Kp,GCM:Kp},wl=QS;for(var Vb in wl)wl[Vb].module=_U[wl[Vb].mode];var xg=wl,Iu={},eh=pt.Buffer;function Eg(e){eh.isBuffer(e)||(e=eh.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(i*4);return r}function s0(e){for(var t=0;t<e.length;e++)e[t]=0}function ex(e,t,r,i,a){for(var n=r[0],u=r[1],c=r[2],d=r[3],m=e[0]^t[0],M=e[1]^t[1],S=e[2]^t[2],R=e[3]^t[3],C,P,k,L,I=4,B=1;B<a;B++)C=n[m>>>24]^u[M>>>16&255]^c[S>>>8&255]^d[R&255]^t[I++],P=n[M>>>24]^u[S>>>16&255]^c[R>>>8&255]^d[m&255]^t[I++],k=n[S>>>24]^u[R>>>16&255]^c[m>>>8&255]^d[M&255]^t[I++],L=n[R>>>24]^u[m>>>16&255]^c[M>>>8&255]^d[S&255]^t[I++],m=C,M=P,S=k,R=L;return C=(i[m>>>24]<<24|i[M>>>16&255]<<16|i[S>>>8&255]<<8|i[R&255])^t[I++],P=(i[M>>>24]<<24|i[S>>>16&255]<<16|i[R>>>8&255]<<8|i[m&255])^t[I++],k=(i[S>>>24]<<24|i[R>>>16&255]<<16|i[m>>>8&255]<<8|i[M&255])^t[I++],L=(i[R>>>24]<<24|i[m>>>16&255]<<16|i[M>>>8&255]<<8|i[S&255])^t[I++],C=C>>>0,P=P>>>0,k=k>>>0,L=L>>>0,[C,P,k,L]}var MU=[0,1,2,4,8,16,32,64,128,27,54],nr=function(){for(var e=new Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],i=[],a=[[],[],[],[]],n=[[],[],[],[]],u=0,c=0,d=0;d<256;++d){var m=c^c<<1^c<<2^c<<3^c<<4;m=m>>>8^m&255^99,r[u]=m,i[m]=u;var M=e[u],S=e[M],R=e[S],C=e[m]*257^m*16843008;a[0][u]=C<<24|C>>>8,a[1][u]=C<<16|C>>>16,a[2][u]=C<<8|C>>>24,a[3][u]=C,C=R*16843009^S*65537^M*257^u*16843008,n[0][m]=C<<24|C>>>8,n[1][m]=C<<16|C>>>16,n[2][m]=C<<8|C>>>24,n[3][m]=C,u===0?u=c=1:(u=M^e[e[e[R^M]]],c^=e[e[c]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:a,INV_SUB_MIX:n}}();function gi(e){this._key=Eg(e),this._reset()}gi.blockSize=4*4;gi.keySize=256/8;gi.prototype.blockSize=gi.blockSize;gi.prototype.keySize=gi.keySize;gi.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,i=(r+1)*4,a=[],n=0;n<t;n++)a[n]=e[n];for(n=t;n<i;n++){var u=a[n-1];n%t===0?(u=u<<8|u>>>24,u=nr.SBOX[u>>>24]<<24|nr.SBOX[u>>>16&255]<<16|nr.SBOX[u>>>8&255]<<8|nr.SBOX[u&255],u^=MU[n/t|0]<<24):t>6&&n%t===4&&(u=nr.SBOX[u>>>24]<<24|nr.SBOX[u>>>16&255]<<16|nr.SBOX[u>>>8&255]<<8|nr.SBOX[u&255]),a[n]=a[n-t]^u}for(var c=[],d=0;d<i;d++){var m=i-d,M=a[m-(d%4?0:4)];d<4||m<=4?c[d]=M:c[d]=nr.INV_SUB_MIX[0][nr.SBOX[M>>>24]]^nr.INV_SUB_MIX[1][nr.SBOX[M>>>16&255]]^nr.INV_SUB_MIX[2][nr.SBOX[M>>>8&255]]^nr.INV_SUB_MIX[3][nr.SBOX[M&255]]}this._nRounds=r,this._keySchedule=a,this._invKeySchedule=c};gi.prototype.encryptBlockRaw=function(e){return e=Eg(e),ex(e,this._keySchedule,nr.SUB_MIX,nr.SBOX,this._nRounds)};gi.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=eh.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r};gi.prototype.decryptBlock=function(e){e=Eg(e);var t=e[1];e[1]=e[3],e[3]=t;var r=ex(e,this._invKeySchedule,nr.INV_SUB_MIX,nr.INV_SBOX,this._nRounds),i=eh.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i};gi.prototype.scrub=function(){s0(this._keySchedule),s0(this._invKeySchedule),s0(this._key)};Iu.AES=gi;var _s=pt.Buffer,SU=_s.alloc(16,0);function xU(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function tx(e){var t=_s.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function Pu(e){this.h=e,this.state=_s.alloc(16,0),this.cache=_s.allocUnsafe(0)}Pu.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()};Pu.prototype._multiply=function(){for(var e=xU(this.h),t=[0,0,0,0],r,i,a,n=-1;++n<128;){for(i=(this.state[~~(n/8)]&1<<7-n%8)!==0,i&&(t[0]^=e[0],t[1]^=e[1],t[2]^=e[2],t[3]^=e[3]),a=(e[3]&1)!==0,r=3;r>0;r--)e[r]=e[r]>>>1|(e[r-1]&1)<<31;e[0]=e[0]>>>1,a&&(e[0]=e[0]^225<<24)}this.state=tx(t)};Pu.prototype.update=function(e){this.cache=_s.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)};Pu.prototype.final=function(e,t){return this.cache.length&&this.ghash(_s.concat([this.cache,SU],16)),this.ghash(tx([0,e,0,t])),this.state};var EU=Pu,RU=Iu,jr=pt.Buffer,rx=$o,AU=Ze,ix=EU,TU=Ou,OU=JS;function IU(e,t){var r=0;e.length!==t.length&&r++;for(var i=Math.min(e.length,t.length),a=0;a<i;++a)r+=e[a]^t[a];return r}function PU(e,t,r){if(t.length===12)return e._finID=jr.concat([t,jr.from([0,0,0,1])]),jr.concat([t,jr.from([0,0,0,2])]);var i=new ix(r),a=t.length,n=a%16;i.update(t),n&&(n=16-n,i.update(jr.alloc(n,0))),i.update(jr.alloc(8,0));var u=a*8,c=jr.alloc(8);c.writeUIntBE(u,0,8),i.update(c),e._finID=i.state;var d=jr.from(e._finID);return OU(d),d}function Oa(e,t,r,i){rx.call(this);var a=jr.alloc(4,0);this._cipher=new RU.AES(t);var n=this._cipher.encryptBlock(a);this._ghash=new ix(n),r=PU(this,r,n),this._prev=jr.from(r),this._cache=jr.allocUnsafe(0),this._secCache=jr.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}AU(Oa,rx);Oa.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=jr.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r};Oa.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=TU(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&IU(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()};Oa.prototype.getAuthTag=function(){if(this._decrypt||!jr.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};Oa.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t};Oa.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length};var nx=Oa,CU=Iu,f0=pt.Buffer,ox=$o,BU=Ze;function nc(e,t,r,i){ox.call(this),this._cipher=new CU.AES(t),this._prev=f0.from(r),this._cache=f0.allocUnsafe(0),this._secCache=f0.allocUnsafe(0),this._decrypt=i,this._mode=e}BU(nc,ox);nc.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)};nc.prototype._final=function(){this._cipher.scrub()};var ax=nc,Ho=pt.Buffer,LU=vg;function NU(e,t,r,i){if(Ho.isBuffer(e)||(e=Ho.from(e,"binary")),t&&(Ho.isBuffer(t)||(t=Ho.from(t,"binary")),t.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,n=Ho.alloc(a),u=Ho.alloc(i||0),c=Ho.alloc(0);a>0||i>0;){var d=new LU;d.update(c),d.update(e),t&&d.update(t),c=d.digest();var m=0;if(a>0){var M=n.length-a;m=Math.min(a,c.length),c.copy(n,M,0,m),a-=m}if(m<c.length&&i>0){var S=u.length-i,R=Math.min(i,c.length-m);c.copy(u,S,m,m+R),i-=R}}return c.fill(0),{key:n,iv:u}}var oc=NU,sx=xg,kU=nx,jn=pt.Buffer,$U=ax,fx=$o,DU=Iu,FU=oc,jU=Ze;function Cu(e,t,r){fx.call(this),this._cache=new ac,this._cipher=new DU.AES(t),this._prev=jn.from(r),this._mode=e,this._autopadding=!0}jU(Cu,fx);Cu.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get();)r=this._mode.encrypt(this,t),i.push(r);return jn.concat(i)};var UU=jn.alloc(16,16);Cu.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(UU))throw this._cipher.scrub(),new Error("data not multiple of block length")};Cu.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function ac(){this.cache=jn.allocUnsafe(0)}ac.prototype.add=function(e){this.cache=jn.concat([this.cache,e])};ac.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null};ac.prototype.flush=function(){for(var e=16-this.cache.length,t=jn.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return jn.concat([this.cache,t])};function ux(e,t,r){var i=sx[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof t=="string"&&(t=jn.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);if(typeof r=="string"&&(r=jn.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);return i.type==="stream"?new $U(i.module,t,r):i.type==="auth"?new kU(i.module,t,r):new Cu(i.module,t,r)}function HU(e,t){var r=sx[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=FU(t,!1,r.key,r.iv);return ux(e,i.key,i.iv)}_g.createCipheriv=ux;_g.createCipher=HU;var Rg={},qU=nx,Ms=pt.Buffer,lx=xg,WU=ax,hx=$o,KU=Iu,VU=oc,zU=Ze;function Bu(e,t,r){hx.call(this),this._cache=new sc,this._last=void 0,this._cipher=new KU.AES(t),this._prev=Ms.from(r),this._mode=e,this._autopadding=!0}zU(Bu,hx);Bu.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return Ms.concat(i)};Bu.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return GU(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")};Bu.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function sc(){this.cache=Ms.allocUnsafe(0)}sc.prototype.add=function(e){this.cache=Ms.concat([this.cache,e])};sc.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null};sc.prototype.flush=function(){if(this.cache.length)return this.cache};function GU(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(t!==16)return e.slice(0,16-t)}function cx(e,t,r){var i=lx[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof r=="string"&&(r=Ms.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if(typeof t=="string"&&(t=Ms.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);return i.type==="stream"?new WU(i.module,t,r,!0):i.type==="auth"?new qU(i.module,t,r,!0):new Bu(i.module,t,r)}function YU(e,t){var r=lx[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=VU(t,!1,r.key,r.iv);return cx(e,i.key,i.iv)}Rg.createDecipher=YU;Rg.createDecipheriv=cx;var dx=_g,px=Rg,ZU=QS;function XU(){return Object.keys(ZU)}Qr.createCipher=Qr.Cipher=dx.createCipher;Qr.createCipheriv=Qr.Cipheriv=dx.createCipheriv;Qr.createDecipher=Qr.Decipher=px.createDecipher;Qr.createDecipheriv=Qr.Decipheriv=px.createDecipheriv;Qr.listCiphers=Qr.getCiphers=XU;var vx={};(function(e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}})(vx);var gx=sU,Ag=Qr,wo=xg,Bn=vx,mx=oc;function JU(e,t){e=e.toLowerCase();var r,i;if(wo[e])r=wo[e].key,i=wo[e].iv;else if(Bn[e])r=Bn[e].key*8,i=Bn[e].iv;else throw new TypeError("invalid suite type");var a=mx(t,!1,r,i);return yx(e,a.key,a.iv)}function QU(e,t){e=e.toLowerCase();var r,i;if(wo[e])r=wo[e].key,i=wo[e].iv;else if(Bn[e])r=Bn[e].key*8,i=Bn[e].iv;else throw new TypeError("invalid suite type");var a=mx(t,!1,r,i);return bx(e,a.key,a.iv)}function yx(e,t,r){if(e=e.toLowerCase(),wo[e])return Ag.createCipheriv(e,t,r);if(Bn[e])return new gx({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function bx(e,t,r){if(e=e.toLowerCase(),wo[e])return Ag.createDecipheriv(e,t,r);if(Bn[e])return new gx({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function eH(){return Object.keys(Bn).concat(Ag.getCiphers())}$i.createCipher=$i.Cipher=JU;$i.createCipheriv=$i.Cipheriv=yx;$i.createDecipher=$i.Decipher=QU;$i.createDecipheriv=$i.Decipheriv=bx;$i.listCiphers=$i.getCiphers=eH;var qo={},Tg={exports:{}};Tg.exports;(function(e){(function(t,r){function i(_,o){if(!_)throw new Error(o||"Assertion failed")}function a(_,o){_.super_=o;var f=function(){};f.prototype=o.prototype,_.prototype=new f,_.prototype.constructor=_}function n(_,o,f){if(n.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((o==="le"||o==="be")&&(f=o,o=10),this._init(_||0,o||10,f||"be"))}typeof t=="object"?t.exports=n:r.BN=n,n.BN=n,n.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=ke.Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,f){return o.cmp(f)>0?o:f},n.min=function(o,f){return o.cmp(f)<0?o:f},n.prototype._init=function(o,f,l){if(typeof o=="number")return this._initNumber(o,f,l);if(typeof o=="object")return this._initArray(o,f,l);f==="hex"&&(f=16),i(f===(f|0)&&f>=2&&f<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h<o.length&&(f===16?this._parseHex(o,h,l):(this._parseBase(o,f,h),l==="le"&&this._initArray(this.toArray(),f,l)))},n.prototype._initNumber=function(o,f,l){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(i(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),f,l)},n.prototype._initArray=function(o,f,l){if(i(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p,w,x=0;if(l==="be")for(h=o.length-1,p=0;h>=0;h-=3)w=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);else if(l==="le")for(h=0,p=0;h<o.length;h+=3)w=o[h]|o[h+1]<<8|o[h+2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);return this.strip()};function c(_,o){var f=_.charCodeAt(o);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function d(_,o,f){var l=c(_,f);return f-1>=o&&(l|=c(_,f-1)<<4),l}n.prototype._parseHex=function(o,f,l){this.length=Math.ceil((o.length-f)/6),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p=0,w=0,x;if(l==="be")for(h=o.length-1;h>=f;h-=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8;else{var g=o.length-f;for(h=g%2===0?f+1:f;h<o.length;h+=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8}this.strip()};function m(_,o,f,l){for(var h=0,p=Math.min(_.length,f),w=o;w<p;w++){var x=_.charCodeAt(w)-48;h*=l,x>=49?h+=x-49+10:x>=17?h+=x-17+10:h+=x}return h}n.prototype._parseBase=function(o,f,l){this.words=[0],this.length=1;for(var h=0,p=1;p<=67108863;p*=f)h++;h--,p=p/f|0;for(var w=o.length-l,x=w%h,g=Math.min(w,w-x)+l,s=0,v=l;v<g;v+=h)s=m(o,v,v+h,f),this.imuln(p),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(x!==0){var T=1;for(s=m(o,v,o.length,f),v=0;v<x;v++)T*=f;this.imuln(T),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},n.prototype.copy=function(o){o.words=new Array(this.length);for(var f=0;f<this.length;f++)o.words[f]=this.words[f];o.length=this.length,o.negative=this.negative,o.red=this.red},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],R=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,f){o=o||10,f=f|0||1;var l;if(o===16||o==="hex"){l="";for(var h=0,p=0,w=0;w<this.length;w++){var x=this.words[w],g=((x<<h|p)&16777215).toString(16);p=x>>>24-h&16777215,p!==0||w!==this.length-1?l=M[6-g.length]+g+l:l=g+l,h+=2,h>=26&&(h-=26,w--)}for(p!==0&&(l=p.toString(16)+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(o===(o|0)&&o>=2&&o<=36){var s=S[o],v=R[o];l="";var T=this.clone();for(T.negative=0;!T.isZero();){var $=T.modn(v).toString(o);T=T.idivn(v),T.isZero()?l=$+l:l=M[s-$.length]+$+l}for(this.isZero()&&(l="0"+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(o,f){return i(typeof u<"u"),this.toArrayLike(u,o,f)},n.prototype.toArray=function(o,f){return this.toArrayLike(Array,o,f)},n.prototype.toArrayLike=function(o,f,l){var h=this.byteLength(),p=l||Math.max(1,h);i(h<=p,"byte array longer than desired length"),i(p>0,"Requested array length <= 0"),this.strip();var w=f==="le",x=new o(p),g,s,v=this.clone();if(w){for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[s]=g;for(;s<p;s++)x[s]=0}else{for(s=0;s<p-h;s++)x[s]=0;for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[p-s-1]=g}return x},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var f=o,l=0;return f>=4096&&(l+=13,f>>>=13),f>=64&&(l+=7,f>>>=7),f>=8&&(l+=4,f>>>=4),f>=2&&(l+=2,f>>>=2),l+f},n.prototype._zeroBits=function(o){if(o===0)return 26;var f=o,l=0;return f&8191||(l+=13,f>>>=13),f&127||(l+=7,f>>>=7),f&15||(l+=4,f>>>=4),f&3||(l+=2,f>>>=2),f&1||l++,l},n.prototype.bitLength=function(){var o=this.words[this.length-1],f=this._countBits(o);return(this.length-1)*26+f};function C(_){for(var o=new Array(_.bitLength()),f=0;f<o.length;f++){var l=f/26|0,h=f%26;o[f]=(_.words[l]&1<<h)>>>h}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,f=0;f<this.length;f++){var l=this._zeroBits(this.words[f]);if(o+=l,l!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var f=0;f<o.length;f++)this.words[f]=this.words[f]|o.words[f];return this.strip()},n.prototype.ior=function(o){return i((this.negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},n.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},n.prototype.iuand=function(o){var f;this.length>o.length?f=o:f=this;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]&o.words[l];return this.length=f.length,this.strip()},n.prototype.iand=function(o){return i((this.negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},n.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},n.prototype.iuxor=function(o){var f,l;this.length>o.length?(f=this,l=o):(f=o,l=this);for(var h=0;h<l.length;h++)this.words[h]=f.words[h]^l.words[h];if(this!==f)for(;h<f.length;h++)this.words[h]=f.words[h];return this.length=f.length,this.strip()},n.prototype.ixor=function(o){return i((this.negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},n.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},n.prototype.inotn=function(o){i(typeof o=="number"&&o>=0);var f=Math.ceil(o/26)|0,l=o%26;this._expand(f),l>0&&f--;for(var h=0;h<f;h++)this.words[h]=~this.words[h]&67108863;return l>0&&(this.words[h]=~this.words[h]&67108863>>26-l),this.strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,f){i(typeof o=="number"&&o>=0);var l=o/26|0,h=o%26;return this._expand(l+1),f?this.words[l]=this.words[l]|1<<h:this.words[l]=this.words[l]&~(1<<h),this.strip()},n.prototype.iadd=function(o){var f;if(this.negative!==0&&o.negative===0)return this.negative=0,f=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,f=this.isub(o),o.negative=1,f._normSign();var l,h;this.length>o.length?(l=this,h=o):(l=o,h=this);for(var p=0,w=0;w<h.length;w++)f=(l.words[w]|0)+(h.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;for(;p!==0&&w<l.length;w++)f=(l.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;if(this.length=l.length,p!==0)this.words[this.length]=p,this.length++;else if(l!==this)for(;w<l.length;w++)this.words[w]=l.words[w];return this},n.prototype.add=function(o){var f;return o.negative!==0&&this.negative===0?(o.negative=0,f=this.sub(o),o.negative^=1,f):o.negative===0&&this.negative!==0?(this.negative=0,f=o.sub(this),this.negative=1,f):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var f=this.iadd(o);return o.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var l=this.cmp(o);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,p;l>0?(h=this,p=o):(h=o,p=this);for(var w=0,x=0;x<p.length;x++)f=(h.words[x]|0)-(p.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;for(;w!==0&&x<h.length;x++)f=(h.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;if(w===0&&x<h.length&&h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this.length=Math.max(this.length,x),h!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function P(_,o,f){f.negative=o.negative^_.negative;var l=_.length+o.length|0;f.length=l,l=l-1|0;var h=_.words[0]|0,p=o.words[0]|0,w=h*p,x=w&67108863,g=w/67108864|0;f.words[0]=x;for(var s=1;s<l;s++){for(var v=g>>>26,T=g&67108863,$=Math.min(s,o.length-1),G=Math.max(0,s-_.length+1);G<=$;G++){var ee=s-G|0;h=_.words[ee]|0,p=o.words[G]|0,w=h*p+T,v+=w/67108864|0,T=w&67108863}f.words[s]=T|0,g=v|0}return g!==0?f.words[s]=g|0:f.length--,f.strip()}var k=function(o,f,l){var h=o.words,p=f.words,w=l.words,x=0,g,s,v,T=h[0]|0,$=T&8191,G=T>>>13,ee=h[1]|0,A=ee&8191,E=ee>>>13,U=h[2]|0,K=U&8191,Z=U>>>13,b=h[3]|0,y=b&8191,O=b>>>13,q=h[4]|0,X=q&8191,D=q>>>13,N=h[5]|0,j=N&8191,z=N>>>13,se=h[6]|0,te=se&8191,ne=se>>>13,Ee=h[7]|0,Q=Ee&8191,ue=Ee>>>13,le=h[8]|0,ce=le&8191,pe=le>>>13,de=h[9]|0,ae=de&8191,fe=de>>>13,Te=p[0]|0,ve=Te&8191,Me=Te>>>13,Ke=p[1]|0,be=Ke&8191,Se=Ke>>>13,qe=p[2]|0,ye=qe&8191,_e=qe>>>13,Ve=p[3]|0,ge=Ve&8191,xe=Ve>>>13,Xe=p[4]|0,Re=Xe&8191,Le=Xe>>>13,at=p[5]|0,Ae=at&8191,Ne=at>>>13,rt=p[6]|0,Oe=rt&8191,De=rt>>>13,nt=p[7]|0,Ie=nt&8191,$e=nt>>>13,st=p[8]|0,Pe=st&8191,je=st>>>13,ht=p[9]|0,Ce=ht&8191,Fe=ht>>>13;l.negative=o.negative^f.negative,l.length=19,g=Math.imul($,ve),s=Math.imul($,Me),s=s+Math.imul(G,ve)|0,v=Math.imul(G,Me);var it=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(it>>>26)|0,it&=67108863,g=Math.imul(A,ve),s=Math.imul(A,Me),s=s+Math.imul(E,ve)|0,v=Math.imul(E,Me),g=g+Math.imul($,be)|0,s=s+Math.imul($,Se)|0,s=s+Math.imul(G,be)|0,v=v+Math.imul(G,Se)|0;var et=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(et>>>26)|0,et&=67108863,g=Math.imul(K,ve),s=Math.imul(K,Me),s=s+Math.imul(Z,ve)|0,v=Math.imul(Z,Me),g=g+Math.imul(A,be)|0,s=s+Math.imul(A,Se)|0,s=s+Math.imul(E,be)|0,v=v+Math.imul(E,Se)|0,g=g+Math.imul($,ye)|0,s=s+Math.imul($,_e)|0,s=s+Math.imul(G,ye)|0,v=v+Math.imul(G,_e)|0;var xt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(xt>>>26)|0,xt&=67108863,g=Math.imul(y,ve),s=Math.imul(y,Me),s=s+Math.imul(O,ve)|0,v=Math.imul(O,Me),g=g+Math.imul(K,be)|0,s=s+Math.imul(K,Se)|0,s=s+Math.imul(Z,be)|0,v=v+Math.imul(Z,Se)|0,g=g+Math.imul(A,ye)|0,s=s+Math.imul(A,_e)|0,s=s+Math.imul(E,ye)|0,v=v+Math.imul(E,_e)|0,g=g+Math.imul($,ge)|0,s=s+Math.imul($,xe)|0,s=s+Math.imul(G,ge)|0,v=v+Math.imul(G,xe)|0;var Tt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,g=Math.imul(X,ve),s=Math.imul(X,Me),s=s+Math.imul(D,ve)|0,v=Math.imul(D,Me),g=g+Math.imul(y,be)|0,s=s+Math.imul(y,Se)|0,s=s+Math.imul(O,be)|0,v=v+Math.imul(O,Se)|0,g=g+Math.imul(K,ye)|0,s=s+Math.imul(K,_e)|0,s=s+Math.imul(Z,ye)|0,v=v+Math.imul(Z,_e)|0,g=g+Math.imul(A,ge)|0,s=s+Math.imul(A,xe)|0,s=s+Math.imul(E,ge)|0,v=v+Math.imul(E,xe)|0,g=g+Math.imul($,Re)|0,s=s+Math.imul($,Le)|0,s=s+Math.imul(G,Re)|0,v=v+Math.imul(G,Le)|0;var Ot=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,g=Math.imul(j,ve),s=Math.imul(j,Me),s=s+Math.imul(z,ve)|0,v=Math.imul(z,Me),g=g+Math.imul(X,be)|0,s=s+Math.imul(X,Se)|0,s=s+Math.imul(D,be)|0,v=v+Math.imul(D,Se)|0,g=g+Math.imul(y,ye)|0,s=s+Math.imul(y,_e)|0,s=s+Math.imul(O,ye)|0,v=v+Math.imul(O,_e)|0,g=g+Math.imul(K,ge)|0,s=s+Math.imul(K,xe)|0,s=s+Math.imul(Z,ge)|0,v=v+Math.imul(Z,xe)|0,g=g+Math.imul(A,Re)|0,s=s+Math.imul(A,Le)|0,s=s+Math.imul(E,Re)|0,v=v+Math.imul(E,Le)|0,g=g+Math.imul($,Ae)|0,s=s+Math.imul($,Ne)|0,s=s+Math.imul(G,Ae)|0,v=v+Math.imul(G,Ne)|0;var Ct=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,g=Math.imul(te,ve),s=Math.imul(te,Me),s=s+Math.imul(ne,ve)|0,v=Math.imul(ne,Me),g=g+Math.imul(j,be)|0,s=s+Math.imul(j,Se)|0,s=s+Math.imul(z,be)|0,v=v+Math.imul(z,Se)|0,g=g+Math.imul(X,ye)|0,s=s+Math.imul(X,_e)|0,s=s+Math.imul(D,ye)|0,v=v+Math.imul(D,_e)|0,g=g+Math.imul(y,ge)|0,s=s+Math.imul(y,xe)|0,s=s+Math.imul(O,ge)|0,v=v+Math.imul(O,xe)|0,g=g+Math.imul(K,Re)|0,s=s+Math.imul(K,Le)|0,s=s+Math.imul(Z,Re)|0,v=v+Math.imul(Z,Le)|0,g=g+Math.imul(A,Ae)|0,s=s+Math.imul(A,Ne)|0,s=s+Math.imul(E,Ae)|0,v=v+Math.imul(E,Ne)|0,g=g+Math.imul($,Oe)|0,s=s+Math.imul($,De)|0,s=s+Math.imul(G,Oe)|0,v=v+Math.imul(G,De)|0;var kt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(kt>>>26)|0,kt&=67108863,g=Math.imul(Q,ve),s=Math.imul(Q,Me),s=s+Math.imul(ue,ve)|0,v=Math.imul(ue,Me),g=g+Math.imul(te,be)|0,s=s+Math.imul(te,Se)|0,s=s+Math.imul(ne,be)|0,v=v+Math.imul(ne,Se)|0,g=g+Math.imul(j,ye)|0,s=s+Math.imul(j,_e)|0,s=s+Math.imul(z,ye)|0,v=v+Math.imul(z,_e)|0,g=g+Math.imul(X,ge)|0,s=s+Math.imul(X,xe)|0,s=s+Math.imul(D,ge)|0,v=v+Math.imul(D,xe)|0,g=g+Math.imul(y,Re)|0,s=s+Math.imul(y,Le)|0,s=s+Math.imul(O,Re)|0,v=v+Math.imul(O,Le)|0,g=g+Math.imul(K,Ae)|0,s=s+Math.imul(K,Ne)|0,s=s+Math.imul(Z,Ae)|0,v=v+Math.imul(Z,Ne)|0,g=g+Math.imul(A,Oe)|0,s=s+Math.imul(A,De)|0,s=s+Math.imul(E,Oe)|0,v=v+Math.imul(E,De)|0,g=g+Math.imul($,Ie)|0,s=s+Math.imul($,$e)|0,s=s+Math.imul(G,Ie)|0,v=v+Math.imul(G,$e)|0;var Ut=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,g=Math.imul(ce,ve),s=Math.imul(ce,Me),s=s+Math.imul(pe,ve)|0,v=Math.imul(pe,Me),g=g+Math.imul(Q,be)|0,s=s+Math.imul(Q,Se)|0,s=s+Math.imul(ue,be)|0,v=v+Math.imul(ue,Se)|0,g=g+Math.imul(te,ye)|0,s=s+Math.imul(te,_e)|0,s=s+Math.imul(ne,ye)|0,v=v+Math.imul(ne,_e)|0,g=g+Math.imul(j,ge)|0,s=s+Math.imul(j,xe)|0,s=s+Math.imul(z,ge)|0,v=v+Math.imul(z,xe)|0,g=g+Math.imul(X,Re)|0,s=s+Math.imul(X,Le)|0,s=s+Math.imul(D,Re)|0,v=v+Math.imul(D,Le)|0,g=g+Math.imul(y,Ae)|0,s=s+Math.imul(y,Ne)|0,s=s+Math.imul(O,Ae)|0,v=v+Math.imul(O,Ne)|0,g=g+Math.imul(K,Oe)|0,s=s+Math.imul(K,De)|0,s=s+Math.imul(Z,Oe)|0,v=v+Math.imul(Z,De)|0,g=g+Math.imul(A,Ie)|0,s=s+Math.imul(A,$e)|0,s=s+Math.imul(E,Ie)|0,v=v+Math.imul(E,$e)|0,g=g+Math.imul($,Pe)|0,s=s+Math.imul($,je)|0,s=s+Math.imul(G,Pe)|0,v=v+Math.imul(G,je)|0;var Ht=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,g=Math.imul(ae,ve),s=Math.imul(ae,Me),s=s+Math.imul(fe,ve)|0,v=Math.imul(fe,Me),g=g+Math.imul(ce,be)|0,s=s+Math.imul(ce,Se)|0,s=s+Math.imul(pe,be)|0,v=v+Math.imul(pe,Se)|0,g=g+Math.imul(Q,ye)|0,s=s+Math.imul(Q,_e)|0,s=s+Math.imul(ue,ye)|0,v=v+Math.imul(ue,_e)|0,g=g+Math.imul(te,ge)|0,s=s+Math.imul(te,xe)|0,s=s+Math.imul(ne,ge)|0,v=v+Math.imul(ne,xe)|0,g=g+Math.imul(j,Re)|0,s=s+Math.imul(j,Le)|0,s=s+Math.imul(z,Re)|0,v=v+Math.imul(z,Le)|0,g=g+Math.imul(X,Ae)|0,s=s+Math.imul(X,Ne)|0,s=s+Math.imul(D,Ae)|0,v=v+Math.imul(D,Ne)|0,g=g+Math.imul(y,Oe)|0,s=s+Math.imul(y,De)|0,s=s+Math.imul(O,Oe)|0,v=v+Math.imul(O,De)|0,g=g+Math.imul(K,Ie)|0,s=s+Math.imul(K,$e)|0,s=s+Math.imul(Z,Ie)|0,v=v+Math.imul(Z,$e)|0,g=g+Math.imul(A,Pe)|0,s=s+Math.imul(A,je)|0,s=s+Math.imul(E,Pe)|0,v=v+Math.imul(E,je)|0,g=g+Math.imul($,Ce)|0,s=s+Math.imul($,Fe)|0,s=s+Math.imul(G,Ce)|0,v=v+Math.imul(G,Fe)|0;var Bt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,g=Math.imul(ae,be),s=Math.imul(ae,Se),s=s+Math.imul(fe,be)|0,v=Math.imul(fe,Se),g=g+Math.imul(ce,ye)|0,s=s+Math.imul(ce,_e)|0,s=s+Math.imul(pe,ye)|0,v=v+Math.imul(pe,_e)|0,g=g+Math.imul(Q,ge)|0,s=s+Math.imul(Q,xe)|0,s=s+Math.imul(ue,ge)|0,v=v+Math.imul(ue,xe)|0,g=g+Math.imul(te,Re)|0,s=s+Math.imul(te,Le)|0,s=s+Math.imul(ne,Re)|0,v=v+Math.imul(ne,Le)|0,g=g+Math.imul(j,Ae)|0,s=s+Math.imul(j,Ne)|0,s=s+Math.imul(z,Ae)|0,v=v+Math.imul(z,Ne)|0,g=g+Math.imul(X,Oe)|0,s=s+Math.imul(X,De)|0,s=s+Math.imul(D,Oe)|0,v=v+Math.imul(D,De)|0,g=g+Math.imul(y,Ie)|0,s=s+Math.imul(y,$e)|0,s=s+Math.imul(O,Ie)|0,v=v+Math.imul(O,$e)|0,g=g+Math.imul(K,Pe)|0,s=s+Math.imul(K,je)|0,s=s+Math.imul(Z,Pe)|0,v=v+Math.imul(Z,je)|0,g=g+Math.imul(A,Ce)|0,s=s+Math.imul(A,Fe)|0,s=s+Math.imul(E,Ce)|0,v=v+Math.imul(E,Fe)|0;var dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(dt>>>26)|0,dt&=67108863,g=Math.imul(ae,ye),s=Math.imul(ae,_e),s=s+Math.imul(fe,ye)|0,v=Math.imul(fe,_e),g=g+Math.imul(ce,ge)|0,s=s+Math.imul(ce,xe)|0,s=s+Math.imul(pe,ge)|0,v=v+Math.imul(pe,xe)|0,g=g+Math.imul(Q,Re)|0,s=s+Math.imul(Q,Le)|0,s=s+Math.imul(ue,Re)|0,v=v+Math.imul(ue,Le)|0,g=g+Math.imul(te,Ae)|0,s=s+Math.imul(te,Ne)|0,s=s+Math.imul(ne,Ae)|0,v=v+Math.imul(ne,Ne)|0,g=g+Math.imul(j,Oe)|0,s=s+Math.imul(j,De)|0,s=s+Math.imul(z,Oe)|0,v=v+Math.imul(z,De)|0,g=g+Math.imul(X,Ie)|0,s=s+Math.imul(X,$e)|0,s=s+Math.imul(D,Ie)|0,v=v+Math.imul(D,$e)|0,g=g+Math.imul(y,Pe)|0,s=s+Math.imul(y,je)|0,s=s+Math.imul(O,Pe)|0,v=v+Math.imul(O,je)|0,g=g+Math.imul(K,Ce)|0,s=s+Math.imul(K,Fe)|0,s=s+Math.imul(Z,Ce)|0,v=v+Math.imul(Z,Fe)|0;var At=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(At>>>26)|0,At&=67108863,g=Math.imul(ae,ge),s=Math.imul(ae,xe),s=s+Math.imul(fe,ge)|0,v=Math.imul(fe,xe),g=g+Math.imul(ce,Re)|0,s=s+Math.imul(ce,Le)|0,s=s+Math.imul(pe,Re)|0,v=v+Math.imul(pe,Le)|0,g=g+Math.imul(Q,Ae)|0,s=s+Math.imul(Q,Ne)|0,s=s+Math.imul(ue,Ae)|0,v=v+Math.imul(ue,Ne)|0,g=g+Math.imul(te,Oe)|0,s=s+Math.imul(te,De)|0,s=s+Math.imul(ne,Oe)|0,v=v+Math.imul(ne,De)|0,g=g+Math.imul(j,Ie)|0,s=s+Math.imul(j,$e)|0,s=s+Math.imul(z,Ie)|0,v=v+Math.imul(z,$e)|0,g=g+Math.imul(X,Pe)|0,s=s+Math.imul(X,je)|0,s=s+Math.imul(D,Pe)|0,v=v+Math.imul(D,je)|0,g=g+Math.imul(y,Ce)|0,s=s+Math.imul(y,Fe)|0,s=s+Math.imul(O,Ce)|0,v=v+Math.imul(O,Fe)|0;var _t=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(_t>>>26)|0,_t&=67108863,g=Math.imul(ae,Re),s=Math.imul(ae,Le),s=s+Math.imul(fe,Re)|0,v=Math.imul(fe,Le),g=g+Math.imul(ce,Ae)|0,s=s+Math.imul(ce,Ne)|0,s=s+Math.imul(pe,Ae)|0,v=v+Math.imul(pe,Ne)|0,g=g+Math.imul(Q,Oe)|0,s=s+Math.imul(Q,De)|0,s=s+Math.imul(ue,Oe)|0,v=v+Math.imul(ue,De)|0,g=g+Math.imul(te,Ie)|0,s=s+Math.imul(te,$e)|0,s=s+Math.imul(ne,Ie)|0,v=v+Math.imul(ne,$e)|0,g=g+Math.imul(j,Pe)|0,s=s+Math.imul(j,je)|0,s=s+Math.imul(z,Pe)|0,v=v+Math.imul(z,je)|0,g=g+Math.imul(X,Ce)|0,s=s+Math.imul(X,Fe)|0,s=s+Math.imul(D,Ce)|0,v=v+Math.imul(D,Fe)|0;var mt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(mt>>>26)|0,mt&=67108863,g=Math.imul(ae,Ae),s=Math.imul(ae,Ne),s=s+Math.imul(fe,Ae)|0,v=Math.imul(fe,Ne),g=g+Math.imul(ce,Oe)|0,s=s+Math.imul(ce,De)|0,s=s+Math.imul(pe,Oe)|0,v=v+Math.imul(pe,De)|0,g=g+Math.imul(Q,Ie)|0,s=s+Math.imul(Q,$e)|0,s=s+Math.imul(ue,Ie)|0,v=v+Math.imul(ue,$e)|0,g=g+Math.imul(te,Pe)|0,s=s+Math.imul(te,je)|0,s=s+Math.imul(ne,Pe)|0,v=v+Math.imul(ne,je)|0,g=g+Math.imul(j,Ce)|0,s=s+Math.imul(j,Fe)|0,s=s+Math.imul(z,Ce)|0,v=v+Math.imul(z,Fe)|0;var It=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(It>>>26)|0,It&=67108863,g=Math.imul(ae,Oe),s=Math.imul(ae,De),s=s+Math.imul(fe,Oe)|0,v=Math.imul(fe,De),g=g+Math.imul(ce,Ie)|0,s=s+Math.imul(ce,$e)|0,s=s+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,$e)|0,g=g+Math.imul(Q,Pe)|0,s=s+Math.imul(Q,je)|0,s=s+Math.imul(ue,Pe)|0,v=v+Math.imul(ue,je)|0,g=g+Math.imul(te,Ce)|0,s=s+Math.imul(te,Fe)|0,s=s+Math.imul(ne,Ce)|0,v=v+Math.imul(ne,Fe)|0;var vt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(vt>>>26)|0,vt&=67108863,g=Math.imul(ae,Ie),s=Math.imul(ae,$e),s=s+Math.imul(fe,Ie)|0,v=Math.imul(fe,$e),g=g+Math.imul(ce,Pe)|0,s=s+Math.imul(ce,je)|0,s=s+Math.imul(pe,Pe)|0,v=v+Math.imul(pe,je)|0,g=g+Math.imul(Q,Ce)|0,s=s+Math.imul(Q,Fe)|0,s=s+Math.imul(ue,Ce)|0,v=v+Math.imul(ue,Fe)|0;var yt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(yt>>>26)|0,yt&=67108863,g=Math.imul(ae,Pe),s=Math.imul(ae,je),s=s+Math.imul(fe,Pe)|0,v=Math.imul(fe,je),g=g+Math.imul(ce,Ce)|0,s=s+Math.imul(ce,Fe)|0,s=s+Math.imul(pe,Ce)|0,v=v+Math.imul(pe,Fe)|0;var Dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,g=Math.imul(ae,Ce),s=Math.imul(ae,Fe),s=s+Math.imul(fe,Ce)|0,v=Math.imul(fe,Fe);var Ft=(x+g|0)+((s&8191)<<13)|0;return x=(v+(s>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,w[0]=it,w[1]=et,w[2]=xt,w[3]=Tt,w[4]=Ot,w[5]=Ct,w[6]=kt,w[7]=Ut,w[8]=Ht,w[9]=Bt,w[10]=dt,w[11]=At,w[12]=_t,w[13]=mt,w[14]=It,w[15]=vt,w[16]=yt,w[17]=Dt,w[18]=Ft,x!==0&&(w[19]=x,l.length++),l};Math.imul||(k=P);function L(_,o,f){f.negative=o.negative^_.negative,f.length=_.length+o.length;for(var l=0,h=0,p=0;p<f.length-1;p++){var w=h;h=0;for(var x=l&67108863,g=Math.min(p,o.length-1),s=Math.max(0,p-_.length+1);s<=g;s++){var v=p-s,T=_.words[v]|0,$=o.words[s]|0,G=T*$,ee=G&67108863;w=w+(G/67108864|0)|0,ee=ee+x|0,x=ee&67108863,w=w+(ee>>>26)|0,h+=w>>>26,w&=67108863}f.words[p]=x,l=w,w=h}return l!==0?f.words[p]=l:f.length--,f.strip()}function I(_,o,f){var l=new B;return l.mulp(_,o,f)}n.prototype.mulTo=function(o,f){var l,h=this.length+o.length;return this.length===10&&o.length===10?l=k(this,o,f):h<63?l=P(this,o,f):h<1024?l=L(this,o,f):l=I(this,o,f),l};function B(_,o){this.x=_,this.y=o}B.prototype.makeRBT=function(o){for(var f=new Array(o),l=n.prototype._countBits(o)-1,h=0;h<o;h++)f[h]=this.revBin(h,l,o);return f},B.prototype.revBin=function(o,f,l){if(o===0||o===l-1)return o;for(var h=0,p=0;p<f;p++)h|=(o&1)<<f-p-1,o>>=1;return h},B.prototype.permute=function(o,f,l,h,p,w){for(var x=0;x<w;x++)h[x]=f[o[x]],p[x]=l[o[x]]},B.prototype.transform=function(o,f,l,h,p,w){this.permute(w,o,f,l,h,p);for(var x=1;x<p;x<<=1)for(var g=x<<1,s=Math.cos(2*Math.PI/g),v=Math.sin(2*Math.PI/g),T=0;T<p;T+=g)for(var $=s,G=v,ee=0;ee<x;ee++){var A=l[T+ee],E=h[T+ee],U=l[T+ee+x],K=h[T+ee+x],Z=$*U-G*K;K=$*K+G*U,U=Z,l[T+ee]=A+U,h[T+ee]=E+K,l[T+ee+x]=A-U,h[T+ee+x]=E-K,ee!==g&&(Z=s*$-v*G,G=s*G+v*$,$=Z)}},B.prototype.guessLen13b=function(o,f){var l=Math.max(f,o)|1,h=l&1,p=0;for(l=l/2|0;l;l=l>>>1)p++;return 1<<p+1+h},B.prototype.conjugate=function(o,f,l){if(!(l<=1))for(var h=0;h<l/2;h++){var p=o[h];o[h]=o[l-h-1],o[l-h-1]=p,p=f[h],f[h]=-f[l-h-1],f[l-h-1]=-p}},B.prototype.normalize13b=function(o,f){for(var l=0,h=0;h<f/2;h++){var p=Math.round(o[2*h+1]/f)*8192+Math.round(o[2*h]/f)+l;o[h]=p&67108863,p<67108864?l=0:l=p/67108864|0}return o},B.prototype.convert13b=function(o,f,l,h){for(var p=0,w=0;w<f;w++)p=p+(o[w]|0),l[2*w]=p&8191,p=p>>>13,l[2*w+1]=p&8191,p=p>>>13;for(w=2*f;w<h;++w)l[w]=0;i(p===0),i((p&-8192)===0)},B.prototype.stub=function(o){for(var f=new Array(o),l=0;l<o;l++)f[l]=0;return f},B.prototype.mulp=function(o,f,l){var h=2*this.guessLen13b(o.length,f.length),p=this.makeRBT(h),w=this.stub(h),x=new Array(h),g=new Array(h),s=new Array(h),v=new Array(h),T=new Array(h),$=new Array(h),G=l.words;G.length=h,this.convert13b(o.words,o.length,x,h),this.convert13b(f.words,f.length,v,h),this.transform(x,w,g,s,h,p),this.transform(v,w,T,$,h,p);for(var ee=0;ee<h;ee++){var A=g[ee]*T[ee]-s[ee]*$[ee];s[ee]=g[ee]*$[ee]+s[ee]*T[ee],g[ee]=A}return this.conjugate(g,s,h),this.transform(g,s,G,w,h,p),this.conjugate(G,w,h),this.normalize13b(G,h),l.negative=o.negative^f.negative,l.length=o.length+f.length,l.strip()},n.prototype.mul=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),this.mulTo(o,f)},n.prototype.mulf=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),I(this,o,f)},n.prototype.imul=function(o){return this.clone().mulTo(o,this)},n.prototype.imuln=function(o){i(typeof o=="number"),i(o<67108864);for(var f=0,l=0;l<this.length;l++){var h=(this.words[l]|0)*o,p=(h&67108863)+(f&67108863);f>>=26,f+=h/67108864|0,f+=p>>>26,this.words[l]=p&67108863}return f!==0&&(this.words[l]=f,this.length++),this},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var f=C(o);if(f.length===0)return new n(1);for(var l=this,h=0;h<f.length&&f[h]===0;h++,l=l.sqr());if(++h<f.length)for(var p=l.sqr();h<f.length;h++,p=p.sqr())f[h]!==0&&(l=l.mul(p));return l},n.prototype.iushln=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=67108863>>>26-f<<26-f,p;if(f!==0){var w=0;for(p=0;p<this.length;p++){var x=this.words[p]&h,g=(this.words[p]|0)-x<<f;this.words[p]=g|w,w=x>>>26-f}w&&(this.words[p]=w,this.length++)}if(l!==0){for(p=this.length-1;p>=0;p--)this.words[p+l]=this.words[p];for(p=0;p<l;p++)this.words[p]=0;this.length+=l}return this.strip()},n.prototype.ishln=function(o){return i(this.negative===0),this.iushln(o)},n.prototype.iushrn=function(o,f,l){i(typeof o=="number"&&o>=0);var h;f?h=(f-f%26)/26:h=0;var p=o%26,w=Math.min((o-p)/26,this.length),x=67108863^67108863>>>p<<p,g=l;if(h-=w,h=Math.max(0,h),g){for(var s=0;s<w;s++)g.words[s]=this.words[s];g.length=w}if(w!==0)if(this.length>w)for(this.length-=w,s=0;s<this.length;s++)this.words[s]=this.words[s+w];else this.words[0]=0,this.length=1;var v=0;for(s=this.length-1;s>=0&&(v!==0||s>=h);s--){var T=this.words[s]|0;this.words[s]=v<<26-p|T>>>p,v=T&x}return g&&v!==0&&(g.words[g.length++]=v),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(o,f,l){return i(this.negative===0),this.iushrn(o,f,l)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return!1;var p=this.words[l];return!!(p&h)},n.prototype.imaskn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(f!==0&&l++,this.length=Math.min(l,this.length),f!==0){var h=67108863^67108863>>>f<<f;this.words[this.length-1]&=h}return this.strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return i(typeof o=="number"),i(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},n.prototype._iaddn=function(o){this.words[0]+=o;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},n.prototype.isubn=function(o){if(i(typeof o=="number"),i(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,f,l){var h=o.length+l,p;this._expand(h);var w,x=0;for(p=0;p<o.length;p++){w=(this.words[p+l]|0)+x;var g=(o.words[p]|0)*f;w-=g&67108863,x=(w>>26)-(g/67108864|0),this.words[p+l]=w&67108863}for(;p<this.length-l;p++)w=(this.words[p+l]|0)+x,x=w>>26,this.words[p+l]=w&67108863;if(x===0)return this.strip();for(i(x===-1),x=0,p=0;p<this.length;p++)w=-(this.words[p]|0)+x,x=w>>26,this.words[p]=w&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(o,f){var l=this.length-o.length,h=this.clone(),p=o,w=p.words[p.length-1]|0,x=this._countBits(w);l=26-x,l!==0&&(p=p.ushln(l),h.iushln(l),w=p.words[p.length-1]|0);var g=h.length-p.length,s;if(f!=="mod"){s=new n(null),s.length=g+1,s.words=new Array(s.length);for(var v=0;v<s.length;v++)s.words[v]=0}var T=h.clone()._ishlnsubmul(p,1,g);T.negative===0&&(h=T,s&&(s.words[g]=1));for(var $=g-1;$>=0;$--){var G=(h.words[p.length+$]|0)*67108864+(h.words[p.length+$-1]|0);for(G=Math.min(G/w|0,67108863),h._ishlnsubmul(p,G,$);h.negative!==0;)G--,h.negative=0,h._ishlnsubmul(p,1,$),h.isZero()||(h.negative^=1);s&&(s.words[$]=G)}return s&&s.strip(),h.strip(),f!=="div"&&l!==0&&h.iushrn(l),{div:s||null,mod:h}},n.prototype.divmod=function(o,f,l){if(i(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,p,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,f),f!=="mod"&&(h=w.div.neg()),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.iadd(o)),{div:h,mod:p}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),f),f!=="mod"&&(h=w.div.neg()),{div:h,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),f),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.isub(o)),{div:w.div,mod:p}):o.length>this.length||this.cmp(o)<0?{div:new n(0),mod:this}:o.length===1?f==="div"?{div:this.divn(o.words[0]),mod:null}:f==="mod"?{div:null,mod:new n(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modn(o.words[0]))}:this._wordDiv(o,f)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var f=this.divmod(o);if(f.mod.isZero())return f.div;var l=f.div.negative!==0?f.mod.isub(o):f.mod,h=o.ushrn(1),p=o.andln(1),w=l.cmp(h);return w<0||p===1&&w===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},n.prototype.modn=function(o){i(o<=67108863);for(var f=(1<<26)%o,l=0,h=this.length-1;h>=0;h--)l=(f*l+(this.words[h]|0))%o;return l},n.prototype.idivn=function(o){i(o<=67108863);for(var f=0,l=this.length-1;l>=0;l--){var h=(this.words[l]|0)+f*67108864;this.words[l]=h/o|0,f=h%o}return this.strip()},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=new n(0),x=new n(1),g=0;f.isEven()&&l.isEven();)f.iushrn(1),l.iushrn(1),++g;for(var s=l.clone(),v=f.clone();!f.isZero();){for(var T=0,$=1;!(f.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(f.iushrn(T);T-- >0;)(h.isOdd()||p.isOdd())&&(h.iadd(s),p.isub(v)),h.iushrn(1),p.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(s),x.isub(v)),w.iushrn(1),x.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(w),p.isub(x)):(l.isub(f),w.isub(h),x.isub(p))}return{a:w,b:x,gcd:l.iushln(g)}},n.prototype._invmp=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=l.clone();f.cmpn(1)>0&&l.cmpn(1)>0;){for(var x=0,g=1;!(f.words[0]&g)&&x<26;++x,g<<=1);if(x>0)for(f.iushrn(x);x-- >0;)h.isOdd()&&h.iadd(w),h.iushrn(1);for(var s=0,v=1;!(l.words[0]&v)&&s<26;++s,v<<=1);if(s>0)for(l.iushrn(s);s-- >0;)p.isOdd()&&p.iadd(w),p.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(p)):(l.isub(f),p.isub(h))}var T;return f.cmpn(1)===0?T=h:T=p,T.cmpn(0)<0&&T.iadd(o),T},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var f=this.clone(),l=o.clone();f.negative=0,l.negative=0;for(var h=0;f.isEven()&&l.isEven();h++)f.iushrn(1),l.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;l.isEven();)l.iushrn(1);var p=f.cmp(l);if(p<0){var w=f;f=l,l=w}else if(p===0||l.cmpn(1)===0)break;f.isub(l)}while(!0);return l.iushln(h)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(o){return this.words[0]&o},n.prototype.bincn=function(o){i(typeof o=="number");var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return this._expand(l+1),this.words[l]|=h,this;for(var p=h,w=l;p!==0&&w<this.length;w++){var x=this.words[w]|0;x+=p,p=x>>>26,x&=67108863,this.words[w]=x}return p!==0&&(this.words[w]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(o){var f=o<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var l;if(this.length>1)l=1;else{f&&(o=-o),i(o<=67108863,"Number is too big");var h=this.words[0]|0;l=h===o?0:h<o?-1:1}return this.negative!==0?-l|0:l},n.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var f=this.ucmp(o);return this.negative!==0?-f|0:f},n.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var f=0,l=this.length-1;l>=0;l--){var h=this.words[l]|0,p=o.words[l]|0;if(h!==p){h<p?f=-1:h>p&&(f=1);break}}return f},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new V(o)},n.prototype.toRed=function(o){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},n.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(o){return this.red=o,this},n.prototype.forceRed=function(o){return i(!this.red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},n.prototype.redIAdd=function(o){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},n.prototype.redSub=function(o){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},n.prototype.redISub=function(o){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},n.prototype.redShl=function(o){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},n.prototype.redMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},n.prototype.redIMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},n.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(o){return i(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var H={k256:null,p224:null,p192:null,p25519:null};function F(_,o){this.name=_,this.p=new n(o,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil(this.n/13)),o},F.prototype.ireduce=function(o){var f=o,l;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),l=f.bitLength();while(l>this.n);var h=l<this.n?-1:f.ucmp(this.p);return h===0?(f.words[0]=0,f.length=1):h>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},F.prototype.split=function(o,f){o.iushrn(this.n,0,f)},F.prototype.imulK=function(o){return o.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(W,F),W.prototype.split=function(o,f){for(var l=4194303,h=Math.min(o.length,9),p=0;p<h;p++)f.words[p]=o.words[p];if(f.length=h,o.length<=9){o.words[0]=0,o.length=1;return}var w=o.words[9];for(f.words[f.length++]=w&l,p=10;p<o.length;p++){var x=o.words[p]|0;o.words[p-10]=(x&l)<<4|w>>>22,w=x}w>>>=22,o.words[p-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},W.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var f=0,l=0;l<o.length;l++){var h=o.words[l]|0;f+=h*977,o.words[l]=f&67108863,f=h*64+(f/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Y(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(Y,F);function ie(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(ie,F);function J(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(J,F),J.prototype.imulK=function(o){for(var f=0,l=0;l<o.length;l++){var h=(o.words[l]|0)*19+f,p=h&67108863;h>>>=26,o.words[l]=p,f=h}return f!==0&&(o.words[o.length++]=f),o},n._prime=function(o){if(H[o])return H[o];var f;if(o==="k256")f=new W;else if(o==="p224")f=new Y;else if(o==="p192")f=new ie;else if(o==="p25519")f=new J;else throw new Error("Unknown prime "+o);return H[o]=f,f};function V(_){if(typeof _=="string"){var o=n._prime(_);this.m=o.p,this.prime=o}else i(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}V.prototype._verify1=function(o){i(o.negative===0,"red works only with positives"),i(o.red,"red works only with red numbers")},V.prototype._verify2=function(o,f){i((o.negative|f.negative)===0,"red works only with positives"),i(o.red&&o.red===f.red,"red works only with red numbers")},V.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},V.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},V.prototype.add=function(o,f){this._verify2(o,f);var l=o.add(f);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},V.prototype.iadd=function(o,f){this._verify2(o,f);var l=o.iadd(f);return l.cmp(this.m)>=0&&l.isub(this.m),l},V.prototype.sub=function(o,f){this._verify2(o,f);var l=o.sub(f);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},V.prototype.isub=function(o,f){this._verify2(o,f);var l=o.isub(f);return l.cmpn(0)<0&&l.iadd(this.m),l},V.prototype.shl=function(o,f){return this._verify1(o),this.imod(o.ushln(f))},V.prototype.imul=function(o,f){return this._verify2(o,f),this.imod(o.imul(f))},V.prototype.mul=function(o,f){return this._verify2(o,f),this.imod(o.mul(f))},V.prototype.isqr=function(o){return this.imul(o,o.clone())},V.prototype.sqr=function(o){return this.mul(o,o)},V.prototype.sqrt=function(o){if(o.isZero())return o.clone();var f=this.m.andln(3);if(i(f%2===1),f===3){var l=this.m.add(new n(1)).iushrn(2);return this.pow(o,l)}for(var h=this.m.subn(1),p=0;!h.isZero()&&h.andln(1)===0;)p++,h.iushrn(1);i(!h.isZero());var w=new n(1).toRed(this),x=w.redNeg(),g=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new n(2*s*s).toRed(this);this.pow(s,g).cmp(x)!==0;)s.redIAdd(x);for(var v=this.pow(s,h),T=this.pow(o,h.addn(1).iushrn(1)),$=this.pow(o,h),G=p;$.cmp(w)!==0;){for(var ee=$,A=0;ee.cmp(w)!==0;A++)ee=ee.redSqr();i(A<G);var E=this.pow(v,new n(1).iushln(G-A-1));T=T.redMul(E),v=E.redSqr(),$=$.redMul(v),G=A}return T},V.prototype.invm=function(o){var f=o._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},V.prototype.pow=function(o,f){if(f.isZero())return new n(1).toRed(this);if(f.cmpn(1)===0)return o.clone();var l=4,h=new Array(1<<l);h[0]=new n(1).toRed(this),h[1]=o;for(var p=2;p<h.length;p++)h[p]=this.mul(h[p-1],o);var w=h[0],x=0,g=0,s=f.bitLength()%26;for(s===0&&(s=26),p=f.length-1;p>=0;p--){for(var v=f.words[p],T=s-1;T>=0;T--){var $=v>>T&1;if(w!==h[0]&&(w=this.sqr(w)),$===0&&x===0){g=0;continue}x<<=1,x|=$,g++,!(g!==l&&(p!==0||T!==0))&&(w=this.mul(w,h[x]),g=0,x=0)}s=26}return w},V.prototype.convertTo=function(o){var f=o.umod(this.m);return f===o?f.clone():f},V.prototype.convertFrom=function(o){var f=o.clone();return f.red=null,f},n.mont=function(o){return new oe(o)};function oe(_){V.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(oe,V),oe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},oe.prototype.convertFrom=function(o){var f=this.imod(o.mul(this.rinv));return f.red=null,f},oe.prototype.imul=function(o,f){if(o.isZero()||f.isZero())return o.words[0]=0,o.length=1,o;var l=o.imul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.mul=function(o,f){if(o.isZero()||f.isZero())return new n(0)._forceRed(this);var l=o.mul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.invm=function(o){var f=this.imod(o._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,Ye)})(Tg);var _x=Tg.exports,Og={exports:{}};Og.exports;(function(e){(function(t,r){function i(_,o){if(!_)throw new Error(o||"Assertion failed")}function a(_,o){_.super_=o;var f=function(){};f.prototype=o.prototype,_.prototype=new f,_.prototype.constructor=_}function n(_,o,f){if(n.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((o==="le"||o==="be")&&(f=o,o=10),this._init(_||0,o||10,f||"be"))}typeof t=="object"?t.exports=n:r.BN=n,n.BN=n,n.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=ke.Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,f){return o.cmp(f)>0?o:f},n.min=function(o,f){return o.cmp(f)<0?o:f},n.prototype._init=function(o,f,l){if(typeof o=="number")return this._initNumber(o,f,l);if(typeof o=="object")return this._initArray(o,f,l);f==="hex"&&(f=16),i(f===(f|0)&&f>=2&&f<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h<o.length&&(f===16?this._parseHex(o,h,l):(this._parseBase(o,f,h),l==="le"&&this._initArray(this.toArray(),f,l)))},n.prototype._initNumber=function(o,f,l){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(i(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),f,l)},n.prototype._initArray=function(o,f,l){if(i(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p,w,x=0;if(l==="be")for(h=o.length-1,p=0;h>=0;h-=3)w=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);else if(l==="le")for(h=0,p=0;h<o.length;h+=3)w=o[h]|o[h+1]<<8|o[h+2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);return this.strip()};function c(_,o){var f=_.charCodeAt(o);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function d(_,o,f){var l=c(_,f);return f-1>=o&&(l|=c(_,f-1)<<4),l}n.prototype._parseHex=function(o,f,l){this.length=Math.ceil((o.length-f)/6),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p=0,w=0,x;if(l==="be")for(h=o.length-1;h>=f;h-=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8;else{var g=o.length-f;for(h=g%2===0?f+1:f;h<o.length;h+=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8}this.strip()};function m(_,o,f,l){for(var h=0,p=Math.min(_.length,f),w=o;w<p;w++){var x=_.charCodeAt(w)-48;h*=l,x>=49?h+=x-49+10:x>=17?h+=x-17+10:h+=x}return h}n.prototype._parseBase=function(o,f,l){this.words=[0],this.length=1;for(var h=0,p=1;p<=67108863;p*=f)h++;h--,p=p/f|0;for(var w=o.length-l,x=w%h,g=Math.min(w,w-x)+l,s=0,v=l;v<g;v+=h)s=m(o,v,v+h,f),this.imuln(p),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(x!==0){var T=1;for(s=m(o,v,o.length,f),v=0;v<x;v++)T*=f;this.imuln(T),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},n.prototype.copy=function(o){o.words=new Array(this.length);for(var f=0;f<this.length;f++)o.words[f]=this.words[f];o.length=this.length,o.negative=this.negative,o.red=this.red},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],R=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,f){o=o||10,f=f|0||1;var l;if(o===16||o==="hex"){l="";for(var h=0,p=0,w=0;w<this.length;w++){var x=this.words[w],g=((x<<h|p)&16777215).toString(16);p=x>>>24-h&16777215,p!==0||w!==this.length-1?l=M[6-g.length]+g+l:l=g+l,h+=2,h>=26&&(h-=26,w--)}for(p!==0&&(l=p.toString(16)+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(o===(o|0)&&o>=2&&o<=36){var s=S[o],v=R[o];l="";var T=this.clone();for(T.negative=0;!T.isZero();){var $=T.modn(v).toString(o);T=T.idivn(v),T.isZero()?l=$+l:l=M[s-$.length]+$+l}for(this.isZero()&&(l="0"+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(o,f){return i(typeof u<"u"),this.toArrayLike(u,o,f)},n.prototype.toArray=function(o,f){return this.toArrayLike(Array,o,f)},n.prototype.toArrayLike=function(o,f,l){var h=this.byteLength(),p=l||Math.max(1,h);i(h<=p,"byte array longer than desired length"),i(p>0,"Requested array length <= 0"),this.strip();var w=f==="le",x=new o(p),g,s,v=this.clone();if(w){for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[s]=g;for(;s<p;s++)x[s]=0}else{for(s=0;s<p-h;s++)x[s]=0;for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[p-s-1]=g}return x},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var f=o,l=0;return f>=4096&&(l+=13,f>>>=13),f>=64&&(l+=7,f>>>=7),f>=8&&(l+=4,f>>>=4),f>=2&&(l+=2,f>>>=2),l+f},n.prototype._zeroBits=function(o){if(o===0)return 26;var f=o,l=0;return f&8191||(l+=13,f>>>=13),f&127||(l+=7,f>>>=7),f&15||(l+=4,f>>>=4),f&3||(l+=2,f>>>=2),f&1||l++,l},n.prototype.bitLength=function(){var o=this.words[this.length-1],f=this._countBits(o);return(this.length-1)*26+f};function C(_){for(var o=new Array(_.bitLength()),f=0;f<o.length;f++){var l=f/26|0,h=f%26;o[f]=(_.words[l]&1<<h)>>>h}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,f=0;f<this.length;f++){var l=this._zeroBits(this.words[f]);if(o+=l,l!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var f=0;f<o.length;f++)this.words[f]=this.words[f]|o.words[f];return this.strip()},n.prototype.ior=function(o){return i((this.negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},n.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},n.prototype.iuand=function(o){var f;this.length>o.length?f=o:f=this;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]&o.words[l];return this.length=f.length,this.strip()},n.prototype.iand=function(o){return i((this.negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},n.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},n.prototype.iuxor=function(o){var f,l;this.length>o.length?(f=this,l=o):(f=o,l=this);for(var h=0;h<l.length;h++)this.words[h]=f.words[h]^l.words[h];if(this!==f)for(;h<f.length;h++)this.words[h]=f.words[h];return this.length=f.length,this.strip()},n.prototype.ixor=function(o){return i((this.negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},n.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},n.prototype.inotn=function(o){i(typeof o=="number"&&o>=0);var f=Math.ceil(o/26)|0,l=o%26;this._expand(f),l>0&&f--;for(var h=0;h<f;h++)this.words[h]=~this.words[h]&67108863;return l>0&&(this.words[h]=~this.words[h]&67108863>>26-l),this.strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,f){i(typeof o=="number"&&o>=0);var l=o/26|0,h=o%26;return this._expand(l+1),f?this.words[l]=this.words[l]|1<<h:this.words[l]=this.words[l]&~(1<<h),this.strip()},n.prototype.iadd=function(o){var f;if(this.negative!==0&&o.negative===0)return this.negative=0,f=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,f=this.isub(o),o.negative=1,f._normSign();var l,h;this.length>o.length?(l=this,h=o):(l=o,h=this);for(var p=0,w=0;w<h.length;w++)f=(l.words[w]|0)+(h.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;for(;p!==0&&w<l.length;w++)f=(l.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;if(this.length=l.length,p!==0)this.words[this.length]=p,this.length++;else if(l!==this)for(;w<l.length;w++)this.words[w]=l.words[w];return this},n.prototype.add=function(o){var f;return o.negative!==0&&this.negative===0?(o.negative=0,f=this.sub(o),o.negative^=1,f):o.negative===0&&this.negative!==0?(this.negative=0,f=o.sub(this),this.negative=1,f):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var f=this.iadd(o);return o.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var l=this.cmp(o);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,p;l>0?(h=this,p=o):(h=o,p=this);for(var w=0,x=0;x<p.length;x++)f=(h.words[x]|0)-(p.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;for(;w!==0&&x<h.length;x++)f=(h.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;if(w===0&&x<h.length&&h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this.length=Math.max(this.length,x),h!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function P(_,o,f){f.negative=o.negative^_.negative;var l=_.length+o.length|0;f.length=l,l=l-1|0;var h=_.words[0]|0,p=o.words[0]|0,w=h*p,x=w&67108863,g=w/67108864|0;f.words[0]=x;for(var s=1;s<l;s++){for(var v=g>>>26,T=g&67108863,$=Math.min(s,o.length-1),G=Math.max(0,s-_.length+1);G<=$;G++){var ee=s-G|0;h=_.words[ee]|0,p=o.words[G]|0,w=h*p+T,v+=w/67108864|0,T=w&67108863}f.words[s]=T|0,g=v|0}return g!==0?f.words[s]=g|0:f.length--,f.strip()}var k=function(o,f,l){var h=o.words,p=f.words,w=l.words,x=0,g,s,v,T=h[0]|0,$=T&8191,G=T>>>13,ee=h[1]|0,A=ee&8191,E=ee>>>13,U=h[2]|0,K=U&8191,Z=U>>>13,b=h[3]|0,y=b&8191,O=b>>>13,q=h[4]|0,X=q&8191,D=q>>>13,N=h[5]|0,j=N&8191,z=N>>>13,se=h[6]|0,te=se&8191,ne=se>>>13,Ee=h[7]|0,Q=Ee&8191,ue=Ee>>>13,le=h[8]|0,ce=le&8191,pe=le>>>13,de=h[9]|0,ae=de&8191,fe=de>>>13,Te=p[0]|0,ve=Te&8191,Me=Te>>>13,Ke=p[1]|0,be=Ke&8191,Se=Ke>>>13,qe=p[2]|0,ye=qe&8191,_e=qe>>>13,Ve=p[3]|0,ge=Ve&8191,xe=Ve>>>13,Xe=p[4]|0,Re=Xe&8191,Le=Xe>>>13,at=p[5]|0,Ae=at&8191,Ne=at>>>13,rt=p[6]|0,Oe=rt&8191,De=rt>>>13,nt=p[7]|0,Ie=nt&8191,$e=nt>>>13,st=p[8]|0,Pe=st&8191,je=st>>>13,ht=p[9]|0,Ce=ht&8191,Fe=ht>>>13;l.negative=o.negative^f.negative,l.length=19,g=Math.imul($,ve),s=Math.imul($,Me),s=s+Math.imul(G,ve)|0,v=Math.imul(G,Me);var it=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(it>>>26)|0,it&=67108863,g=Math.imul(A,ve),s=Math.imul(A,Me),s=s+Math.imul(E,ve)|0,v=Math.imul(E,Me),g=g+Math.imul($,be)|0,s=s+Math.imul($,Se)|0,s=s+Math.imul(G,be)|0,v=v+Math.imul(G,Se)|0;var et=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(et>>>26)|0,et&=67108863,g=Math.imul(K,ve),s=Math.imul(K,Me),s=s+Math.imul(Z,ve)|0,v=Math.imul(Z,Me),g=g+Math.imul(A,be)|0,s=s+Math.imul(A,Se)|0,s=s+Math.imul(E,be)|0,v=v+Math.imul(E,Se)|0,g=g+Math.imul($,ye)|0,s=s+Math.imul($,_e)|0,s=s+Math.imul(G,ye)|0,v=v+Math.imul(G,_e)|0;var xt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(xt>>>26)|0,xt&=67108863,g=Math.imul(y,ve),s=Math.imul(y,Me),s=s+Math.imul(O,ve)|0,v=Math.imul(O,Me),g=g+Math.imul(K,be)|0,s=s+Math.imul(K,Se)|0,s=s+Math.imul(Z,be)|0,v=v+Math.imul(Z,Se)|0,g=g+Math.imul(A,ye)|0,s=s+Math.imul(A,_e)|0,s=s+Math.imul(E,ye)|0,v=v+Math.imul(E,_e)|0,g=g+Math.imul($,ge)|0,s=s+Math.imul($,xe)|0,s=s+Math.imul(G,ge)|0,v=v+Math.imul(G,xe)|0;var Tt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,g=Math.imul(X,ve),s=Math.imul(X,Me),s=s+Math.imul(D,ve)|0,v=Math.imul(D,Me),g=g+Math.imul(y,be)|0,s=s+Math.imul(y,Se)|0,s=s+Math.imul(O,be)|0,v=v+Math.imul(O,Se)|0,g=g+Math.imul(K,ye)|0,s=s+Math.imul(K,_e)|0,s=s+Math.imul(Z,ye)|0,v=v+Math.imul(Z,_e)|0,g=g+Math.imul(A,ge)|0,s=s+Math.imul(A,xe)|0,s=s+Math.imul(E,ge)|0,v=v+Math.imul(E,xe)|0,g=g+Math.imul($,Re)|0,s=s+Math.imul($,Le)|0,s=s+Math.imul(G,Re)|0,v=v+Math.imul(G,Le)|0;var Ot=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,g=Math.imul(j,ve),s=Math.imul(j,Me),s=s+Math.imul(z,ve)|0,v=Math.imul(z,Me),g=g+Math.imul(X,be)|0,s=s+Math.imul(X,Se)|0,s=s+Math.imul(D,be)|0,v=v+Math.imul(D,Se)|0,g=g+Math.imul(y,ye)|0,s=s+Math.imul(y,_e)|0,s=s+Math.imul(O,ye)|0,v=v+Math.imul(O,_e)|0,g=g+Math.imul(K,ge)|0,s=s+Math.imul(K,xe)|0,s=s+Math.imul(Z,ge)|0,v=v+Math.imul(Z,xe)|0,g=g+Math.imul(A,Re)|0,s=s+Math.imul(A,Le)|0,s=s+Math.imul(E,Re)|0,v=v+Math.imul(E,Le)|0,g=g+Math.imul($,Ae)|0,s=s+Math.imul($,Ne)|0,s=s+Math.imul(G,Ae)|0,v=v+Math.imul(G,Ne)|0;var Ct=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,g=Math.imul(te,ve),s=Math.imul(te,Me),s=s+Math.imul(ne,ve)|0,v=Math.imul(ne,Me),g=g+Math.imul(j,be)|0,s=s+Math.imul(j,Se)|0,s=s+Math.imul(z,be)|0,v=v+Math.imul(z,Se)|0,g=g+Math.imul(X,ye)|0,s=s+Math.imul(X,_e)|0,s=s+Math.imul(D,ye)|0,v=v+Math.imul(D,_e)|0,g=g+Math.imul(y,ge)|0,s=s+Math.imul(y,xe)|0,s=s+Math.imul(O,ge)|0,v=v+Math.imul(O,xe)|0,g=g+Math.imul(K,Re)|0,s=s+Math.imul(K,Le)|0,s=s+Math.imul(Z,Re)|0,v=v+Math.imul(Z,Le)|0,g=g+Math.imul(A,Ae)|0,s=s+Math.imul(A,Ne)|0,s=s+Math.imul(E,Ae)|0,v=v+Math.imul(E,Ne)|0,g=g+Math.imul($,Oe)|0,s=s+Math.imul($,De)|0,s=s+Math.imul(G,Oe)|0,v=v+Math.imul(G,De)|0;var kt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(kt>>>26)|0,kt&=67108863,g=Math.imul(Q,ve),s=Math.imul(Q,Me),s=s+Math.imul(ue,ve)|0,v=Math.imul(ue,Me),g=g+Math.imul(te,be)|0,s=s+Math.imul(te,Se)|0,s=s+Math.imul(ne,be)|0,v=v+Math.imul(ne,Se)|0,g=g+Math.imul(j,ye)|0,s=s+Math.imul(j,_e)|0,s=s+Math.imul(z,ye)|0,v=v+Math.imul(z,_e)|0,g=g+Math.imul(X,ge)|0,s=s+Math.imul(X,xe)|0,s=s+Math.imul(D,ge)|0,v=v+Math.imul(D,xe)|0,g=g+Math.imul(y,Re)|0,s=s+Math.imul(y,Le)|0,s=s+Math.imul(O,Re)|0,v=v+Math.imul(O,Le)|0,g=g+Math.imul(K,Ae)|0,s=s+Math.imul(K,Ne)|0,s=s+Math.imul(Z,Ae)|0,v=v+Math.imul(Z,Ne)|0,g=g+Math.imul(A,Oe)|0,s=s+Math.imul(A,De)|0,s=s+Math.imul(E,Oe)|0,v=v+Math.imul(E,De)|0,g=g+Math.imul($,Ie)|0,s=s+Math.imul($,$e)|0,s=s+Math.imul(G,Ie)|0,v=v+Math.imul(G,$e)|0;var Ut=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,g=Math.imul(ce,ve),s=Math.imul(ce,Me),s=s+Math.imul(pe,ve)|0,v=Math.imul(pe,Me),g=g+Math.imul(Q,be)|0,s=s+Math.imul(Q,Se)|0,s=s+Math.imul(ue,be)|0,v=v+Math.imul(ue,Se)|0,g=g+Math.imul(te,ye)|0,s=s+Math.imul(te,_e)|0,s=s+Math.imul(ne,ye)|0,v=v+Math.imul(ne,_e)|0,g=g+Math.imul(j,ge)|0,s=s+Math.imul(j,xe)|0,s=s+Math.imul(z,ge)|0,v=v+Math.imul(z,xe)|0,g=g+Math.imul(X,Re)|0,s=s+Math.imul(X,Le)|0,s=s+Math.imul(D,Re)|0,v=v+Math.imul(D,Le)|0,g=g+Math.imul(y,Ae)|0,s=s+Math.imul(y,Ne)|0,s=s+Math.imul(O,Ae)|0,v=v+Math.imul(O,Ne)|0,g=g+Math.imul(K,Oe)|0,s=s+Math.imul(K,De)|0,s=s+Math.imul(Z,Oe)|0,v=v+Math.imul(Z,De)|0,g=g+Math.imul(A,Ie)|0,s=s+Math.imul(A,$e)|0,s=s+Math.imul(E,Ie)|0,v=v+Math.imul(E,$e)|0,g=g+Math.imul($,Pe)|0,s=s+Math.imul($,je)|0,s=s+Math.imul(G,Pe)|0,v=v+Math.imul(G,je)|0;var Ht=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,g=Math.imul(ae,ve),s=Math.imul(ae,Me),s=s+Math.imul(fe,ve)|0,v=Math.imul(fe,Me),g=g+Math.imul(ce,be)|0,s=s+Math.imul(ce,Se)|0,s=s+Math.imul(pe,be)|0,v=v+Math.imul(pe,Se)|0,g=g+Math.imul(Q,ye)|0,s=s+Math.imul(Q,_e)|0,s=s+Math.imul(ue,ye)|0,v=v+Math.imul(ue,_e)|0,g=g+Math.imul(te,ge)|0,s=s+Math.imul(te,xe)|0,s=s+Math.imul(ne,ge)|0,v=v+Math.imul(ne,xe)|0,g=g+Math.imul(j,Re)|0,s=s+Math.imul(j,Le)|0,s=s+Math.imul(z,Re)|0,v=v+Math.imul(z,Le)|0,g=g+Math.imul(X,Ae)|0,s=s+Math.imul(X,Ne)|0,s=s+Math.imul(D,Ae)|0,v=v+Math.imul(D,Ne)|0,g=g+Math.imul(y,Oe)|0,s=s+Math.imul(y,De)|0,s=s+Math.imul(O,Oe)|0,v=v+Math.imul(O,De)|0,g=g+Math.imul(K,Ie)|0,s=s+Math.imul(K,$e)|0,s=s+Math.imul(Z,Ie)|0,v=v+Math.imul(Z,$e)|0,g=g+Math.imul(A,Pe)|0,s=s+Math.imul(A,je)|0,s=s+Math.imul(E,Pe)|0,v=v+Math.imul(E,je)|0,g=g+Math.imul($,Ce)|0,s=s+Math.imul($,Fe)|0,s=s+Math.imul(G,Ce)|0,v=v+Math.imul(G,Fe)|0;var Bt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,g=Math.imul(ae,be),s=Math.imul(ae,Se),s=s+Math.imul(fe,be)|0,v=Math.imul(fe,Se),g=g+Math.imul(ce,ye)|0,s=s+Math.imul(ce,_e)|0,s=s+Math.imul(pe,ye)|0,v=v+Math.imul(pe,_e)|0,g=g+Math.imul(Q,ge)|0,s=s+Math.imul(Q,xe)|0,s=s+Math.imul(ue,ge)|0,v=v+Math.imul(ue,xe)|0,g=g+Math.imul(te,Re)|0,s=s+Math.imul(te,Le)|0,s=s+Math.imul(ne,Re)|0,v=v+Math.imul(ne,Le)|0,g=g+Math.imul(j,Ae)|0,s=s+Math.imul(j,Ne)|0,s=s+Math.imul(z,Ae)|0,v=v+Math.imul(z,Ne)|0,g=g+Math.imul(X,Oe)|0,s=s+Math.imul(X,De)|0,s=s+Math.imul(D,Oe)|0,v=v+Math.imul(D,De)|0,g=g+Math.imul(y,Ie)|0,s=s+Math.imul(y,$e)|0,s=s+Math.imul(O,Ie)|0,v=v+Math.imul(O,$e)|0,g=g+Math.imul(K,Pe)|0,s=s+Math.imul(K,je)|0,s=s+Math.imul(Z,Pe)|0,v=v+Math.imul(Z,je)|0,g=g+Math.imul(A,Ce)|0,s=s+Math.imul(A,Fe)|0,s=s+Math.imul(E,Ce)|0,v=v+Math.imul(E,Fe)|0;var dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(dt>>>26)|0,dt&=67108863,g=Math.imul(ae,ye),s=Math.imul(ae,_e),s=s+Math.imul(fe,ye)|0,v=Math.imul(fe,_e),g=g+Math.imul(ce,ge)|0,s=s+Math.imul(ce,xe)|0,s=s+Math.imul(pe,ge)|0,v=v+Math.imul(pe,xe)|0,g=g+Math.imul(Q,Re)|0,s=s+Math.imul(Q,Le)|0,s=s+Math.imul(ue,Re)|0,v=v+Math.imul(ue,Le)|0,g=g+Math.imul(te,Ae)|0,s=s+Math.imul(te,Ne)|0,s=s+Math.imul(ne,Ae)|0,v=v+Math.imul(ne,Ne)|0,g=g+Math.imul(j,Oe)|0,s=s+Math.imul(j,De)|0,s=s+Math.imul(z,Oe)|0,v=v+Math.imul(z,De)|0,g=g+Math.imul(X,Ie)|0,s=s+Math.imul(X,$e)|0,s=s+Math.imul(D,Ie)|0,v=v+Math.imul(D,$e)|0,g=g+Math.imul(y,Pe)|0,s=s+Math.imul(y,je)|0,s=s+Math.imul(O,Pe)|0,v=v+Math.imul(O,je)|0,g=g+Math.imul(K,Ce)|0,s=s+Math.imul(K,Fe)|0,s=s+Math.imul(Z,Ce)|0,v=v+Math.imul(Z,Fe)|0;var At=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(At>>>26)|0,At&=67108863,g=Math.imul(ae,ge),s=Math.imul(ae,xe),s=s+Math.imul(fe,ge)|0,v=Math.imul(fe,xe),g=g+Math.imul(ce,Re)|0,s=s+Math.imul(ce,Le)|0,s=s+Math.imul(pe,Re)|0,v=v+Math.imul(pe,Le)|0,g=g+Math.imul(Q,Ae)|0,s=s+Math.imul(Q,Ne)|0,s=s+Math.imul(ue,Ae)|0,v=v+Math.imul(ue,Ne)|0,g=g+Math.imul(te,Oe)|0,s=s+Math.imul(te,De)|0,s=s+Math.imul(ne,Oe)|0,v=v+Math.imul(ne,De)|0,g=g+Math.imul(j,Ie)|0,s=s+Math.imul(j,$e)|0,s=s+Math.imul(z,Ie)|0,v=v+Math.imul(z,$e)|0,g=g+Math.imul(X,Pe)|0,s=s+Math.imul(X,je)|0,s=s+Math.imul(D,Pe)|0,v=v+Math.imul(D,je)|0,g=g+Math.imul(y,Ce)|0,s=s+Math.imul(y,Fe)|0,s=s+Math.imul(O,Ce)|0,v=v+Math.imul(O,Fe)|0;var _t=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(_t>>>26)|0,_t&=67108863,g=Math.imul(ae,Re),s=Math.imul(ae,Le),s=s+Math.imul(fe,Re)|0,v=Math.imul(fe,Le),g=g+Math.imul(ce,Ae)|0,s=s+Math.imul(ce,Ne)|0,s=s+Math.imul(pe,Ae)|0,v=v+Math.imul(pe,Ne)|0,g=g+Math.imul(Q,Oe)|0,s=s+Math.imul(Q,De)|0,s=s+Math.imul(ue,Oe)|0,v=v+Math.imul(ue,De)|0,g=g+Math.imul(te,Ie)|0,s=s+Math.imul(te,$e)|0,s=s+Math.imul(ne,Ie)|0,v=v+Math.imul(ne,$e)|0,g=g+Math.imul(j,Pe)|0,s=s+Math.imul(j,je)|0,s=s+Math.imul(z,Pe)|0,v=v+Math.imul(z,je)|0,g=g+Math.imul(X,Ce)|0,s=s+Math.imul(X,Fe)|0,s=s+Math.imul(D,Ce)|0,v=v+Math.imul(D,Fe)|0;var mt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(mt>>>26)|0,mt&=67108863,g=Math.imul(ae,Ae),s=Math.imul(ae,Ne),s=s+Math.imul(fe,Ae)|0,v=Math.imul(fe,Ne),g=g+Math.imul(ce,Oe)|0,s=s+Math.imul(ce,De)|0,s=s+Math.imul(pe,Oe)|0,v=v+Math.imul(pe,De)|0,g=g+Math.imul(Q,Ie)|0,s=s+Math.imul(Q,$e)|0,s=s+Math.imul(ue,Ie)|0,v=v+Math.imul(ue,$e)|0,g=g+Math.imul(te,Pe)|0,s=s+Math.imul(te,je)|0,s=s+Math.imul(ne,Pe)|0,v=v+Math.imul(ne,je)|0,g=g+Math.imul(j,Ce)|0,s=s+Math.imul(j,Fe)|0,s=s+Math.imul(z,Ce)|0,v=v+Math.imul(z,Fe)|0;var It=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(It>>>26)|0,It&=67108863,g=Math.imul(ae,Oe),s=Math.imul(ae,De),s=s+Math.imul(fe,Oe)|0,v=Math.imul(fe,De),g=g+Math.imul(ce,Ie)|0,s=s+Math.imul(ce,$e)|0,s=s+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,$e)|0,g=g+Math.imul(Q,Pe)|0,s=s+Math.imul(Q,je)|0,s=s+Math.imul(ue,Pe)|0,v=v+Math.imul(ue,je)|0,g=g+Math.imul(te,Ce)|0,s=s+Math.imul(te,Fe)|0,s=s+Math.imul(ne,Ce)|0,v=v+Math.imul(ne,Fe)|0;var vt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(vt>>>26)|0,vt&=67108863,g=Math.imul(ae,Ie),s=Math.imul(ae,$e),s=s+Math.imul(fe,Ie)|0,v=Math.imul(fe,$e),g=g+Math.imul(ce,Pe)|0,s=s+Math.imul(ce,je)|0,s=s+Math.imul(pe,Pe)|0,v=v+Math.imul(pe,je)|0,g=g+Math.imul(Q,Ce)|0,s=s+Math.imul(Q,Fe)|0,s=s+Math.imul(ue,Ce)|0,v=v+Math.imul(ue,Fe)|0;var yt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(yt>>>26)|0,yt&=67108863,g=Math.imul(ae,Pe),s=Math.imul(ae,je),s=s+Math.imul(fe,Pe)|0,v=Math.imul(fe,je),g=g+Math.imul(ce,Ce)|0,s=s+Math.imul(ce,Fe)|0,s=s+Math.imul(pe,Ce)|0,v=v+Math.imul(pe,Fe)|0;var Dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,g=Math.imul(ae,Ce),s=Math.imul(ae,Fe),s=s+Math.imul(fe,Ce)|0,v=Math.imul(fe,Fe);var Ft=(x+g|0)+((s&8191)<<13)|0;return x=(v+(s>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,w[0]=it,w[1]=et,w[2]=xt,w[3]=Tt,w[4]=Ot,w[5]=Ct,w[6]=kt,w[7]=Ut,w[8]=Ht,w[9]=Bt,w[10]=dt,w[11]=At,w[12]=_t,w[13]=mt,w[14]=It,w[15]=vt,w[16]=yt,w[17]=Dt,w[18]=Ft,x!==0&&(w[19]=x,l.length++),l};Math.imul||(k=P);function L(_,o,f){f.negative=o.negative^_.negative,f.length=_.length+o.length;for(var l=0,h=0,p=0;p<f.length-1;p++){var w=h;h=0;for(var x=l&67108863,g=Math.min(p,o.length-1),s=Math.max(0,p-_.length+1);s<=g;s++){var v=p-s,T=_.words[v]|0,$=o.words[s]|0,G=T*$,ee=G&67108863;w=w+(G/67108864|0)|0,ee=ee+x|0,x=ee&67108863,w=w+(ee>>>26)|0,h+=w>>>26,w&=67108863}f.words[p]=x,l=w,w=h}return l!==0?f.words[p]=l:f.length--,f.strip()}function I(_,o,f){var l=new B;return l.mulp(_,o,f)}n.prototype.mulTo=function(o,f){var l,h=this.length+o.length;return this.length===10&&o.length===10?l=k(this,o,f):h<63?l=P(this,o,f):h<1024?l=L(this,o,f):l=I(this,o,f),l};function B(_,o){this.x=_,this.y=o}B.prototype.makeRBT=function(o){for(var f=new Array(o),l=n.prototype._countBits(o)-1,h=0;h<o;h++)f[h]=this.revBin(h,l,o);return f},B.prototype.revBin=function(o,f,l){if(o===0||o===l-1)return o;for(var h=0,p=0;p<f;p++)h|=(o&1)<<f-p-1,o>>=1;return h},B.prototype.permute=function(o,f,l,h,p,w){for(var x=0;x<w;x++)h[x]=f[o[x]],p[x]=l[o[x]]},B.prototype.transform=function(o,f,l,h,p,w){this.permute(w,o,f,l,h,p);for(var x=1;x<p;x<<=1)for(var g=x<<1,s=Math.cos(2*Math.PI/g),v=Math.sin(2*Math.PI/g),T=0;T<p;T+=g)for(var $=s,G=v,ee=0;ee<x;ee++){var A=l[T+ee],E=h[T+ee],U=l[T+ee+x],K=h[T+ee+x],Z=$*U-G*K;K=$*K+G*U,U=Z,l[T+ee]=A+U,h[T+ee]=E+K,l[T+ee+x]=A-U,h[T+ee+x]=E-K,ee!==g&&(Z=s*$-v*G,G=s*G+v*$,$=Z)}},B.prototype.guessLen13b=function(o,f){var l=Math.max(f,o)|1,h=l&1,p=0;for(l=l/2|0;l;l=l>>>1)p++;return 1<<p+1+h},B.prototype.conjugate=function(o,f,l){if(!(l<=1))for(var h=0;h<l/2;h++){var p=o[h];o[h]=o[l-h-1],o[l-h-1]=p,p=f[h],f[h]=-f[l-h-1],f[l-h-1]=-p}},B.prototype.normalize13b=function(o,f){for(var l=0,h=0;h<f/2;h++){var p=Math.round(o[2*h+1]/f)*8192+Math.round(o[2*h]/f)+l;o[h]=p&67108863,p<67108864?l=0:l=p/67108864|0}return o},B.prototype.convert13b=function(o,f,l,h){for(var p=0,w=0;w<f;w++)p=p+(o[w]|0),l[2*w]=p&8191,p=p>>>13,l[2*w+1]=p&8191,p=p>>>13;for(w=2*f;w<h;++w)l[w]=0;i(p===0),i((p&-8192)===0)},B.prototype.stub=function(o){for(var f=new Array(o),l=0;l<o;l++)f[l]=0;return f},B.prototype.mulp=function(o,f,l){var h=2*this.guessLen13b(o.length,f.length),p=this.makeRBT(h),w=this.stub(h),x=new Array(h),g=new Array(h),s=new Array(h),v=new Array(h),T=new Array(h),$=new Array(h),G=l.words;G.length=h,this.convert13b(o.words,o.length,x,h),this.convert13b(f.words,f.length,v,h),this.transform(x,w,g,s,h,p),this.transform(v,w,T,$,h,p);for(var ee=0;ee<h;ee++){var A=g[ee]*T[ee]-s[ee]*$[ee];s[ee]=g[ee]*$[ee]+s[ee]*T[ee],g[ee]=A}return this.conjugate(g,s,h),this.transform(g,s,G,w,h,p),this.conjugate(G,w,h),this.normalize13b(G,h),l.negative=o.negative^f.negative,l.length=o.length+f.length,l.strip()},n.prototype.mul=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),this.mulTo(o,f)},n.prototype.mulf=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),I(this,o,f)},n.prototype.imul=function(o){return this.clone().mulTo(o,this)},n.prototype.imuln=function(o){i(typeof o=="number"),i(o<67108864);for(var f=0,l=0;l<this.length;l++){var h=(this.words[l]|0)*o,p=(h&67108863)+(f&67108863);f>>=26,f+=h/67108864|0,f+=p>>>26,this.words[l]=p&67108863}return f!==0&&(this.words[l]=f,this.length++),this},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var f=C(o);if(f.length===0)return new n(1);for(var l=this,h=0;h<f.length&&f[h]===0;h++,l=l.sqr());if(++h<f.length)for(var p=l.sqr();h<f.length;h++,p=p.sqr())f[h]!==0&&(l=l.mul(p));return l},n.prototype.iushln=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=67108863>>>26-f<<26-f,p;if(f!==0){var w=0;for(p=0;p<this.length;p++){var x=this.words[p]&h,g=(this.words[p]|0)-x<<f;this.words[p]=g|w,w=x>>>26-f}w&&(this.words[p]=w,this.length++)}if(l!==0){for(p=this.length-1;p>=0;p--)this.words[p+l]=this.words[p];for(p=0;p<l;p++)this.words[p]=0;this.length+=l}return this.strip()},n.prototype.ishln=function(o){return i(this.negative===0),this.iushln(o)},n.prototype.iushrn=function(o,f,l){i(typeof o=="number"&&o>=0);var h;f?h=(f-f%26)/26:h=0;var p=o%26,w=Math.min((o-p)/26,this.length),x=67108863^67108863>>>p<<p,g=l;if(h-=w,h=Math.max(0,h),g){for(var s=0;s<w;s++)g.words[s]=this.words[s];g.length=w}if(w!==0)if(this.length>w)for(this.length-=w,s=0;s<this.length;s++)this.words[s]=this.words[s+w];else this.words[0]=0,this.length=1;var v=0;for(s=this.length-1;s>=0&&(v!==0||s>=h);s--){var T=this.words[s]|0;this.words[s]=v<<26-p|T>>>p,v=T&x}return g&&v!==0&&(g.words[g.length++]=v),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(o,f,l){return i(this.negative===0),this.iushrn(o,f,l)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return!1;var p=this.words[l];return!!(p&h)},n.prototype.imaskn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(f!==0&&l++,this.length=Math.min(l,this.length),f!==0){var h=67108863^67108863>>>f<<f;this.words[this.length-1]&=h}return this.strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return i(typeof o=="number"),i(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},n.prototype._iaddn=function(o){this.words[0]+=o;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},n.prototype.isubn=function(o){if(i(typeof o=="number"),i(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,f,l){var h=o.length+l,p;this._expand(h);var w,x=0;for(p=0;p<o.length;p++){w=(this.words[p+l]|0)+x;var g=(o.words[p]|0)*f;w-=g&67108863,x=(w>>26)-(g/67108864|0),this.words[p+l]=w&67108863}for(;p<this.length-l;p++)w=(this.words[p+l]|0)+x,x=w>>26,this.words[p+l]=w&67108863;if(x===0)return this.strip();for(i(x===-1),x=0,p=0;p<this.length;p++)w=-(this.words[p]|0)+x,x=w>>26,this.words[p]=w&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(o,f){var l=this.length-o.length,h=this.clone(),p=o,w=p.words[p.length-1]|0,x=this._countBits(w);l=26-x,l!==0&&(p=p.ushln(l),h.iushln(l),w=p.words[p.length-1]|0);var g=h.length-p.length,s;if(f!=="mod"){s=new n(null),s.length=g+1,s.words=new Array(s.length);for(var v=0;v<s.length;v++)s.words[v]=0}var T=h.clone()._ishlnsubmul(p,1,g);T.negative===0&&(h=T,s&&(s.words[g]=1));for(var $=g-1;$>=0;$--){var G=(h.words[p.length+$]|0)*67108864+(h.words[p.length+$-1]|0);for(G=Math.min(G/w|0,67108863),h._ishlnsubmul(p,G,$);h.negative!==0;)G--,h.negative=0,h._ishlnsubmul(p,1,$),h.isZero()||(h.negative^=1);s&&(s.words[$]=G)}return s&&s.strip(),h.strip(),f!=="div"&&l!==0&&h.iushrn(l),{div:s||null,mod:h}},n.prototype.divmod=function(o,f,l){if(i(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,p,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,f),f!=="mod"&&(h=w.div.neg()),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.iadd(o)),{div:h,mod:p}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),f),f!=="mod"&&(h=w.div.neg()),{div:h,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),f),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.isub(o)),{div:w.div,mod:p}):o.length>this.length||this.cmp(o)<0?{div:new n(0),mod:this}:o.length===1?f==="div"?{div:this.divn(o.words[0]),mod:null}:f==="mod"?{div:null,mod:new n(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modn(o.words[0]))}:this._wordDiv(o,f)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var f=this.divmod(o);if(f.mod.isZero())return f.div;var l=f.div.negative!==0?f.mod.isub(o):f.mod,h=o.ushrn(1),p=o.andln(1),w=l.cmp(h);return w<0||p===1&&w===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},n.prototype.modn=function(o){i(o<=67108863);for(var f=(1<<26)%o,l=0,h=this.length-1;h>=0;h--)l=(f*l+(this.words[h]|0))%o;return l},n.prototype.idivn=function(o){i(o<=67108863);for(var f=0,l=this.length-1;l>=0;l--){var h=(this.words[l]|0)+f*67108864;this.words[l]=h/o|0,f=h%o}return this.strip()},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=new n(0),x=new n(1),g=0;f.isEven()&&l.isEven();)f.iushrn(1),l.iushrn(1),++g;for(var s=l.clone(),v=f.clone();!f.isZero();){for(var T=0,$=1;!(f.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(f.iushrn(T);T-- >0;)(h.isOdd()||p.isOdd())&&(h.iadd(s),p.isub(v)),h.iushrn(1),p.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(s),x.isub(v)),w.iushrn(1),x.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(w),p.isub(x)):(l.isub(f),w.isub(h),x.isub(p))}return{a:w,b:x,gcd:l.iushln(g)}},n.prototype._invmp=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=l.clone();f.cmpn(1)>0&&l.cmpn(1)>0;){for(var x=0,g=1;!(f.words[0]&g)&&x<26;++x,g<<=1);if(x>0)for(f.iushrn(x);x-- >0;)h.isOdd()&&h.iadd(w),h.iushrn(1);for(var s=0,v=1;!(l.words[0]&v)&&s<26;++s,v<<=1);if(s>0)for(l.iushrn(s);s-- >0;)p.isOdd()&&p.iadd(w),p.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(p)):(l.isub(f),p.isub(h))}var T;return f.cmpn(1)===0?T=h:T=p,T.cmpn(0)<0&&T.iadd(o),T},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var f=this.clone(),l=o.clone();f.negative=0,l.negative=0;for(var h=0;f.isEven()&&l.isEven();h++)f.iushrn(1),l.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;l.isEven();)l.iushrn(1);var p=f.cmp(l);if(p<0){var w=f;f=l,l=w}else if(p===0||l.cmpn(1)===0)break;f.isub(l)}while(!0);return l.iushln(h)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(o){return this.words[0]&o},n.prototype.bincn=function(o){i(typeof o=="number");var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return this._expand(l+1),this.words[l]|=h,this;for(var p=h,w=l;p!==0&&w<this.length;w++){var x=this.words[w]|0;x+=p,p=x>>>26,x&=67108863,this.words[w]=x}return p!==0&&(this.words[w]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(o){var f=o<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var l;if(this.length>1)l=1;else{f&&(o=-o),i(o<=67108863,"Number is too big");var h=this.words[0]|0;l=h===o?0:h<o?-1:1}return this.negative!==0?-l|0:l},n.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var f=this.ucmp(o);return this.negative!==0?-f|0:f},n.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var f=0,l=this.length-1;l>=0;l--){var h=this.words[l]|0,p=o.words[l]|0;if(h!==p){h<p?f=-1:h>p&&(f=1);break}}return f},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new V(o)},n.prototype.toRed=function(o){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},n.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(o){return this.red=o,this},n.prototype.forceRed=function(o){return i(!this.red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},n.prototype.redIAdd=function(o){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},n.prototype.redSub=function(o){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},n.prototype.redISub=function(o){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},n.prototype.redShl=function(o){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},n.prototype.redMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},n.prototype.redIMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},n.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(o){return i(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var H={k256:null,p224:null,p192:null,p25519:null};function F(_,o){this.name=_,this.p=new n(o,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil(this.n/13)),o},F.prototype.ireduce=function(o){var f=o,l;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),l=f.bitLength();while(l>this.n);var h=l<this.n?-1:f.ucmp(this.p);return h===0?(f.words[0]=0,f.length=1):h>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},F.prototype.split=function(o,f){o.iushrn(this.n,0,f)},F.prototype.imulK=function(o){return o.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(W,F),W.prototype.split=function(o,f){for(var l=4194303,h=Math.min(o.length,9),p=0;p<h;p++)f.words[p]=o.words[p];if(f.length=h,o.length<=9){o.words[0]=0,o.length=1;return}var w=o.words[9];for(f.words[f.length++]=w&l,p=10;p<o.length;p++){var x=o.words[p]|0;o.words[p-10]=(x&l)<<4|w>>>22,w=x}w>>>=22,o.words[p-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},W.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var f=0,l=0;l<o.length;l++){var h=o.words[l]|0;f+=h*977,o.words[l]=f&67108863,f=h*64+(f/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Y(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(Y,F);function ie(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(ie,F);function J(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(J,F),J.prototype.imulK=function(o){for(var f=0,l=0;l<o.length;l++){var h=(o.words[l]|0)*19+f,p=h&67108863;h>>>=26,o.words[l]=p,f=h}return f!==0&&(o.words[o.length++]=f),o},n._prime=function(o){if(H[o])return H[o];var f;if(o==="k256")f=new W;else if(o==="p224")f=new Y;else if(o==="p192")f=new ie;else if(o==="p25519")f=new J;else throw new Error("Unknown prime "+o);return H[o]=f,f};function V(_){if(typeof _=="string"){var o=n._prime(_);this.m=o.p,this.prime=o}else i(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}V.prototype._verify1=function(o){i(o.negative===0,"red works only with positives"),i(o.red,"red works only with red numbers")},V.prototype._verify2=function(o,f){i((o.negative|f.negative)===0,"red works only with positives"),i(o.red&&o.red===f.red,"red works only with red numbers")},V.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},V.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},V.prototype.add=function(o,f){this._verify2(o,f);var l=o.add(f);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},V.prototype.iadd=function(o,f){this._verify2(o,f);var l=o.iadd(f);return l.cmp(this.m)>=0&&l.isub(this.m),l},V.prototype.sub=function(o,f){this._verify2(o,f);var l=o.sub(f);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},V.prototype.isub=function(o,f){this._verify2(o,f);var l=o.isub(f);return l.cmpn(0)<0&&l.iadd(this.m),l},V.prototype.shl=function(o,f){return this._verify1(o),this.imod(o.ushln(f))},V.prototype.imul=function(o,f){return this._verify2(o,f),this.imod(o.imul(f))},V.prototype.mul=function(o,f){return this._verify2(o,f),this.imod(o.mul(f))},V.prototype.isqr=function(o){return this.imul(o,o.clone())},V.prototype.sqr=function(o){return this.mul(o,o)},V.prototype.sqrt=function(o){if(o.isZero())return o.clone();var f=this.m.andln(3);if(i(f%2===1),f===3){var l=this.m.add(new n(1)).iushrn(2);return this.pow(o,l)}for(var h=this.m.subn(1),p=0;!h.isZero()&&h.andln(1)===0;)p++,h.iushrn(1);i(!h.isZero());var w=new n(1).toRed(this),x=w.redNeg(),g=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new n(2*s*s).toRed(this);this.pow(s,g).cmp(x)!==0;)s.redIAdd(x);for(var v=this.pow(s,h),T=this.pow(o,h.addn(1).iushrn(1)),$=this.pow(o,h),G=p;$.cmp(w)!==0;){for(var ee=$,A=0;ee.cmp(w)!==0;A++)ee=ee.redSqr();i(A<G);var E=this.pow(v,new n(1).iushln(G-A-1));T=T.redMul(E),v=E.redSqr(),$=$.redMul(v),G=A}return T},V.prototype.invm=function(o){var f=o._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},V.prototype.pow=function(o,f){if(f.isZero())return new n(1).toRed(this);if(f.cmpn(1)===0)return o.clone();var l=4,h=new Array(1<<l);h[0]=new n(1).toRed(this),h[1]=o;for(var p=2;p<h.length;p++)h[p]=this.mul(h[p-1],o);var w=h[0],x=0,g=0,s=f.bitLength()%26;for(s===0&&(s=26),p=f.length-1;p>=0;p--){for(var v=f.words[p],T=s-1;T>=0;T--){var $=v>>T&1;if(w!==h[0]&&(w=this.sqr(w)),$===0&&x===0){g=0;continue}x<<=1,x|=$,g++,!(g!==l&&(p!==0||T!==0))&&(w=this.mul(w,h[x]),g=0,x=0)}s=26}return w},V.prototype.convertTo=function(o){var f=o.umod(this.m);return f===o?f.clone():f},V.prototype.convertFrom=function(o){var f=o.clone();return f.red=null,f},n.mont=function(o){return new oe(o)};function oe(_){V.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(oe,V),oe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},oe.prototype.convertFrom=function(o){var f=this.imod(o.mul(this.rinv));return f.red=null,f},oe.prototype.imul=function(o,f){if(o.isZero()||f.isZero())return o.words[0]=0,o.length=1,o;var l=o.imul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.mul=function(o,f){if(o.isZero()||f.isZero())return new n(0)._forceRed(this);var l=o.mul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.invm=function(o){var f=this.imod(o._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,Ye)})(Og);var tH=Og.exports,Qu={exports:{}},zb;function Ig(){if(zb)return Qu.exports;zb=1;var e;Qu.exports=function(a){return e||(e=new t(null)),e.generate(a)};function t(i){this.rand=i}if(Qu.exports.Rand=t,t.prototype.generate=function(a){return this._rand(a)},t.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var n=new Uint8Array(a),u=0;u<n.length;u++)n[u]=this.rand.getByte();return n},typeof self=="object")self.crypto&&self.crypto.getRandomValues?t.prototype._rand=function(a){var n=new Uint8Array(a);return self.crypto.getRandomValues(n),n}:self.msCrypto&&self.msCrypto.getRandomValues?t.prototype._rand=function(a){var n=new Uint8Array(a);return self.msCrypto.getRandomValues(n),n}:typeof window=="object"&&(t.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var r=P4();if(typeof r.randomBytes!="function")throw new Error("Not supported");t.prototype._rand=function(a){return r.randomBytes(a)}}catch{}return Qu.exports}var u0,Gb;function Mx(){if(Gb)return u0;Gb=1;var e=tH,t=Ig();function r(i){this.rand=i||new t.Rand}return u0=r,r.create=function(a){return new r(a)},r.prototype._randbelow=function(a){var n=a.bitLength(),u=Math.ceil(n/8);do var c=new e(this.rand.generate(u));while(c.cmp(a)>=0);return c},r.prototype._randrange=function(a,n){var u=n.sub(a);return a.add(this._randbelow(u))},r.prototype.test=function(a,n,u){var c=a.bitLength(),d=e.mont(a),m=new e(1).toRed(d);n||(n=Math.max(1,c/48|0));for(var M=a.subn(1),S=0;!M.testn(S);S++);for(var R=a.shrn(S),C=M.toRed(d),P=!0;n>0;n--){var k=this._randrange(new e(2),M);u&&u(k);var L=k.toRed(d).redPow(R);if(!(L.cmp(m)===0||L.cmp(C)===0)){for(var I=1;I<S;I++){if(L=L.redSqr(),L.cmp(m)===0)return!1;if(L.cmp(C)===0)break}if(I===S)return!1}}return P},r.prototype.getDivisor=function(a,n){var u=a.bitLength(),c=e.mont(a),d=new e(1).toRed(c);n||(n=Math.max(1,u/48|0));for(var m=a.subn(1),M=0;!m.testn(M);M++);for(var S=a.shrn(M),R=m.toRed(c);n>0;n--){var C=this._randrange(new e(2),m),P=a.gcd(C);if(P.cmpn(1)!==0)return P;var k=C.toRed(c).redPow(S);if(!(k.cmp(d)===0||k.cmp(R)===0)){for(var L=1;L<M;L++){if(k=k.redSqr(),k.cmp(d)===0)return k.fromRed().subn(1).gcd(a);if(k.cmp(R)===0)break}if(L===M)return k=k.redSqr(),k.fromRed().subn(1).gcd(a)}}return!1},u0}var l0,Yb;function Sx(){if(Yb)return l0;Yb=1;var e=Ds;l0=L,L.simpleSieve=P,L.fermatTest=k;var t=_x,r=new t(24),i=Mx(),a=new i,n=new t(1),u=new t(2),c=new t(5);new t(16),new t(8);var d=new t(10),m=new t(3);new t(7);var M=new t(11),S=new t(4);new t(12);var R=null;function C(){if(R!==null)return R;var I=1048576,B=[];B[0]=2;for(var H=1,F=3;F<I;F+=2){for(var W=Math.ceil(Math.sqrt(F)),Y=0;Y<H&&B[Y]<=W&&F%B[Y]!==0;Y++);H!==Y&&B[Y]<=W||(B[H++]=F)}return R=B,B}function P(I){for(var B=C(),H=0;H<B.length;H++)if(I.modn(B[H])===0)return I.cmpn(B[H])===0;return!0}function k(I){var B=t.mont(I);return u.toRed(B).redPow(I.subn(1)).fromRed().cmpn(1)===0}function L(I,B){if(I<16)return B===2||B===5?new t([140,123]):new t([140,39]);B=new t(B);for(var H,F;;){for(H=new t(e(Math.ceil(I/8)));H.bitLength()>I;)H.ishrn(1);if(H.isEven()&&H.iadd(n),H.testn(1)||H.iadd(u),B.cmp(u)){if(!B.cmp(c))for(;H.mod(d).cmp(m);)H.iadd(S)}else for(;H.mod(r).cmp(M);)H.iadd(S);if(F=H.shrn(1),P(F)&&P(H)&&k(F)&&k(H)&&a.test(F)&&a.test(H))return H}}return l0}const rH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},iH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},nH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},oH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},aH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},sH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},fH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},uH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},lH={modp1:rH,modp2:iH,modp5:nH,modp14:oH,modp15:aH,modp16:sH,modp17:fH,modp18:uH};var h0,Zb;function hH(){if(Zb)return h0;Zb=1;var e=_x,t=Mx(),r=new t,i=new e(24),a=new e(11),n=new e(10),u=new e(3),c=new e(7),d=Sx(),m=Ds;h0=P;function M(L,I){return I=I||"utf8",ke.Buffer.isBuffer(L)||(L=new ke.Buffer(L,I)),this._pub=new e(L),this}function S(L,I){return I=I||"utf8",ke.Buffer.isBuffer(L)||(L=new ke.Buffer(L,I)),this._priv=new e(L),this}var R={};function C(L,I){var B=I.toString("hex"),H=[B,L.toString(16)].join("_");if(H in R)return R[H];var F=0;if(L.isEven()||!d.simpleSieve||!d.fermatTest(L)||!r.test(L))return F+=1,B==="02"||B==="05"?F+=8:F+=4,R[H]=F,F;r.test(L.shrn(1))||(F+=2);var W;switch(B){case"02":L.mod(i).cmp(a)&&(F+=8);break;case"05":W=L.mod(n),W.cmp(u)&&W.cmp(c)&&(F+=8);break;default:F+=4}return R[H]=F,F}function P(L,I,B){this.setGenerator(I),this.__prime=new e(L),this._prime=e.mont(this.__prime),this._primeLen=L.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,B?(this.setPublicKey=M,this.setPrivateKey=S):this._primeCode=8}Object.defineProperty(P.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=C(this.__prime,this.__gen)),this._primeCode}}),P.prototype.generateKeys=function(){return this._priv||(this._priv=new e(m(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},P.prototype.computeSecret=function(L){L=new e(L),L=L.toRed(this._prime);var I=L.redPow(this._priv).fromRed(),B=new ke.Buffer(I.toArray()),H=this.getPrime();if(B.length<H.length){var F=new ke.Buffer(H.length-B.length);F.fill(0),B=ke.Buffer.concat([F,B])}return B},P.prototype.getPublicKey=function(I){return k(this._pub,I)},P.prototype.getPrivateKey=function(I){return k(this._priv,I)},P.prototype.getPrime=function(L){return k(this.__prime,L)},P.prototype.getGenerator=function(L){return k(this._gen,L)},P.prototype.setGenerator=function(L,I){return I=I||"utf8",ke.Buffer.isBuffer(L)||(L=new ke.Buffer(L,I)),this.__gen=L,this._gen=new e(L),this};function k(L,I){var B=new ke.Buffer(L.toArray());return I?B.toString(I):B}return h0}var Xb;function cH(){if(Xb)return qo;Xb=1;var e=Sx(),t=lH,r=hH();function i(u){var c=new ke.Buffer(t[u].prime,"hex"),d=new ke.Buffer(t[u].gen,"hex");return new r(c,d)}var a={binary:!0,hex:!0,base64:!0};function n(u,c,d,m){return ke.Buffer.isBuffer(c)||a[c]===void 0?n(u,"binary",c,d):(c=c||"binary",m=m||"binary",d=d||new ke.Buffer([2]),ke.Buffer.isBuffer(d)||(d=new ke.Buffer(d,m)),typeof u=="number"?new r(e(u,d),d,!0):(ke.Buffer.isBuffer(u)||(u=new ke.Buffer(u,c)),new r(u,d,!0)))}return qo.DiffieHellmanGroup=qo.createDiffieHellmanGroup=qo.getDiffieHellman=i,qo.createDiffieHellman=qo.DiffieHellman=n,qo}var Vp={exports:{}},xx=Or.EventEmitter,c0,Jb;function dH(){if(Jb)return c0;Jb=1;function e(P,k){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(P);k&&(I=I.filter(function(B){return Object.getOwnPropertyDescriptor(P,B).enumerable})),L.push.apply(L,I)}return L}function t(P){for(var k=1;k<arguments.length;k++){var L=arguments[k]!=null?arguments[k]:{};k%2?e(Object(L),!0).forEach(function(I){r(P,I,L[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):e(Object(L)).forEach(function(I){Object.defineProperty(P,I,Object.getOwnPropertyDescriptor(L,I))})}return P}function r(P,k,L){return k=u(k),k in P?Object.defineProperty(P,k,{value:L,enumerable:!0,configurable:!0,writable:!0}):P[k]=L,P}function i(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}function a(P,k){for(var L=0;L<k.length;L++){var I=k[L];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(P,u(I.key),I)}}function n(P,k,L){return k&&a(P.prototype,k),L&&a(P,L),Object.defineProperty(P,"prototype",{writable:!1}),P}function u(P){var k=c(P,"string");return typeof k=="symbol"?k:String(k)}function c(P,k){if(typeof P!="object"||P===null)return P;var L=P[Symbol.toPrimitive];if(L!==void 0){var I=L.call(P,k||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(P)}var d=ke,m=d.Buffer,M=ei,S=M.inspect,R=S&&S.custom||"inspect";function C(P,k,L){m.prototype.copy.call(P,k,L)}return c0=function(){function P(){i(this,P),this.head=null,this.tail=null,this.length=0}return n(P,[{key:"push",value:function(L){var I={data:L,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(L){var I={data:L,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var I=this.head,B=""+I.data;I=I.next;)B+=L+I.data;return B}},{key:"concat",value:function(L){if(this.length===0)return m.alloc(0);for(var I=m.allocUnsafe(L>>>0),B=this.head,H=0;B;)C(B.data,I,H),H+=B.data.length,B=B.next;return I}},{key:"consume",value:function(L,I){var B;return L<this.head.data.length?(B=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?B=this.shift():B=I?this._getString(L):this._getBuffer(L),B}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var I=this.head,B=1,H=I.data;for(L-=H.length;I=I.next;){var F=I.data,W=L>F.length?F.length:L;if(W===F.length?H+=F:H+=F.slice(0,L),L-=W,L===0){W===F.length?(++B,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=F.slice(W));break}++B}return this.length-=B,H}},{key:"_getBuffer",value:function(L){var I=m.allocUnsafe(L),B=this.head,H=1;for(B.data.copy(I),L-=B.data.length;B=B.next;){var F=B.data,W=L>F.length?F.length:L;if(F.copy(I,I.length-L,0,W),L-=W,L===0){W===F.length?(++H,B.next?this.head=B.next:this.head=this.tail=null):(this.head=B,B.data=F.slice(W));break}++H}return this.length-=H,I}},{key:R,value:function(L,I){return S(this,t(t({},I),{},{depth:0,customInspect:!1}))}}]),P}(),c0}function pH(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,we.nextTick(zp,this,e)):we.nextTick(zp,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(n){!t&&n?r._writableState?r._writableState.errorEmitted?we.nextTick(_l,r):(r._writableState.errorEmitted=!0,we.nextTick(Qb,r,n)):we.nextTick(Qb,r,n):t?(we.nextTick(_l,r),t(n)):we.nextTick(_l,r)}),this)}function Qb(e,t){zp(e,t),_l(e)}function _l(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function vH(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function zp(e,t){e.emit("error",t)}function gH(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}var Ex={destroy:pH,undestroy:vH,errorOrDestroy:gH},Ia={};function mH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Rx={};function Ei(e,t,r){r||(r=Error);function i(n,u,c){return typeof t=="string"?t:t(n,u,c)}var a=function(n){mH(u,n);function u(c,d,m){return n.call(this,i(c,d,m))||this}return u}(r);a.prototype.name=r.name,a.prototype.code=e,Rx[e]=a}function ew(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function yH(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function bH(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function wH(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Ei("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Ei("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&yH(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var a;if(bH(e," argument"))a="The ".concat(e," ").concat(i," ").concat(ew(t,"type"));else{var n=wH(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(n," ").concat(i," ").concat(ew(t,"type"))}return a+=". Received type ".concat(typeof r),a},TypeError);Ei("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ei("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Ei("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ei("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Ei("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ei("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ei("ERR_STREAM_WRITE_AFTER_END","write after end");Ei("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ei("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Ei("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Ia.codes=Rx;var _H=Ia.codes.ERR_INVALID_OPT_VALUE;function MH(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function SH(e,t,r,i){var a=MH(t,i,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var n=i?r:"highWaterMark";throw new _H(n,a)}return Math.floor(a)}return e.objectMode?16:16*1024}var Ax={getHighWaterMark:SH},d0,tw;function Tx(){if(tw)return d0;tw=1,d0=J;function e(A){var E=this;this.next=null,this.entry=null,this.finish=function(){ee(E,A)}}var t;J.WritableState=Y;var r={deprecate:ks},i=xx,a=ke.Buffer,n=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(A){return a.from(A)}function c(A){return a.isBuffer(A)||A instanceof n}var d=Ex,m=Ax,M=m.getHighWaterMark,S=Ia.codes,R=S.ERR_INVALID_ARG_TYPE,C=S.ERR_METHOD_NOT_IMPLEMENTED,P=S.ERR_MULTIPLE_CALLBACK,k=S.ERR_STREAM_CANNOT_PIPE,L=S.ERR_STREAM_DESTROYED,I=S.ERR_STREAM_NULL_VALUES,B=S.ERR_STREAM_WRITE_AFTER_END,H=S.ERR_UNKNOWN_ENCODING,F=d.errorOrDestroy;Ze(J,i);function W(){}function Y(A,E,U){t=t||Ss(),A=A||{},typeof U!="boolean"&&(U=E instanceof t),this.objectMode=!!A.objectMode,U&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=M(this,A,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=A.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){p(E,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}Y.prototype.getBuffer=function(){for(var E=this.bufferedRequest,U=[];E;)U.push(E),E=E.next;return U},function(){try{Object.defineProperty(Y.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ie;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ie=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(E){return ie.call(this,E)?!0:this!==J?!1:E&&E._writableState instanceof Y}})):ie=function(E){return E instanceof this};function J(A){t=t||Ss();var E=this instanceof t;if(!E&&!ie.call(J,this))return new J(A);this._writableState=new Y(A,this,E),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),i.call(this)}J.prototype.pipe=function(){F(this,new k)};function V(A,E){var U=new B;F(A,U),we.nextTick(E,U)}function oe(A,E,U,K){var Z;return U===null?Z=new I:typeof U!="string"&&!E.objectMode&&(Z=new R("chunk",["string","Buffer"],U)),Z?(F(A,Z),we.nextTick(K,Z),!1):!0}J.prototype.write=function(A,E,U){var K=this._writableState,Z=!1,b=!K.objectMode&&c(A);return b&&!a.isBuffer(A)&&(A=u(A)),typeof E=="function"&&(U=E,E=null),b?E="buffer":E||(E=K.defaultEncoding),typeof U!="function"&&(U=W),K.ending?V(this,U):(b||oe(this,K,A,U))&&(K.pendingcb++,Z=o(this,K,b,A,E,U)),Z},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&g(this,A))},J.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new H(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _(A,E,U){return!A.objectMode&&A.decodeStrings!==!1&&typeof E=="string"&&(E=a.from(E,U)),E}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(A,E,U,K,Z,b){if(!U){var y=_(E,K,Z);K!==y&&(U=!0,Z="buffer",K=y)}var O=E.objectMode?1:K.length;E.length+=O;var q=E.length<E.highWaterMark;if(q||(E.needDrain=!0),E.writing||E.corked){var X=E.lastBufferedRequest;E.lastBufferedRequest={chunk:K,encoding:Z,isBuf:U,callback:b,next:null},X?X.next=E.lastBufferedRequest:E.bufferedRequest=E.lastBufferedRequest,E.bufferedRequestCount+=1}else f(A,E,!1,O,K,Z,b);return q}function f(A,E,U,K,Z,b,y){E.writelen=K,E.writecb=y,E.writing=!0,E.sync=!0,E.destroyed?E.onwrite(new L("write")):U?A._writev(Z,E.onwrite):A._write(Z,b,E.onwrite),E.sync=!1}function l(A,E,U,K,Z){--E.pendingcb,U?(we.nextTick(Z,K),we.nextTick($,A,E),A._writableState.errorEmitted=!0,F(A,K)):(Z(K),A._writableState.errorEmitted=!0,F(A,K),$(A,E))}function h(A){A.writing=!1,A.writecb=null,A.length-=A.writelen,A.writelen=0}function p(A,E){var U=A._writableState,K=U.sync,Z=U.writecb;if(typeof Z!="function")throw new P;if(h(U),E)l(A,U,K,E,Z);else{var b=s(U)||A.destroyed;!b&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&g(A,U),K?we.nextTick(w,A,U,b,Z):w(A,U,b,Z)}}function w(A,E,U,K){U||x(A,E),E.pendingcb--,K(),$(A,E)}function x(A,E){E.length===0&&E.needDrain&&(E.needDrain=!1,A.emit("drain"))}function g(A,E){E.bufferProcessing=!0;var U=E.bufferedRequest;if(A._writev&&U&&U.next){var K=E.bufferedRequestCount,Z=new Array(K),b=E.corkedRequestsFree;b.entry=U;for(var y=0,O=!0;U;)Z[y]=U,U.isBuf||(O=!1),U=U.next,y+=1;Z.allBuffers=O,f(A,E,!0,E.length,Z,"",b.finish),E.pendingcb++,E.lastBufferedRequest=null,b.next?(E.corkedRequestsFree=b.next,b.next=null):E.corkedRequestsFree=new e(E),E.bufferedRequestCount=0}else{for(;U;){var q=U.chunk,X=U.encoding,D=U.callback,N=E.objectMode?1:q.length;if(f(A,E,!1,N,q,X,D),U=U.next,E.bufferedRequestCount--,E.writing)break}U===null&&(E.lastBufferedRequest=null)}E.bufferedRequest=U,E.bufferProcessing=!1}J.prototype._write=function(A,E,U){U(new C("_write()"))},J.prototype._writev=null,J.prototype.end=function(A,E,U){var K=this._writableState;return typeof A=="function"?(U=A,A=null,E=null):typeof E=="function"&&(U=E,E=null),A!=null&&this.write(A,E),K.corked&&(K.corked=1,this.uncork()),K.ending||G(this,K,U),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function v(A,E){A._final(function(U){E.pendingcb--,U&&F(A,U),E.prefinished=!0,A.emit("prefinish"),$(A,E)})}function T(A,E){!E.prefinished&&!E.finalCalled&&(typeof A._final=="function"&&!E.destroyed?(E.pendingcb++,E.finalCalled=!0,we.nextTick(v,A,E)):(E.prefinished=!0,A.emit("prefinish")))}function $(A,E){var U=s(E);if(U&&(T(A,E),E.pendingcb===0&&(E.finished=!0,A.emit("finish"),E.autoDestroy))){var K=A._readableState;(!K||K.autoDestroy&&K.endEmitted)&&A.destroy()}return U}function G(A,E,U){E.ending=!0,$(A,E),U&&(E.finished?we.nextTick(U):A.once("finish",U)),E.ended=!0,A.writable=!1}function ee(A,E,U){var K=A.entry;for(A.entry=null;K;){var Z=K.callback;E.pendingcb--,Z(U),K=K.next}E.corkedRequestsFree.next=A}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),J.prototype.destroy=d.destroy,J.prototype._undestroy=d.undestroy,J.prototype._destroy=function(A,E){E(A)},d0}var p0,rw;function Ss(){if(rw)return p0;rw=1;var e=Object.keys||function(m){var M=[];for(var S in m)M.push(S);return M};p0=u;var t=Ix(),r=Tx();Ze(u,t);for(var i=e(r.prototype),a=0;a<i.length;a++){var n=i[a];u.prototype[n]||(u.prototype[n]=r.prototype[n])}function u(m){if(!(this instanceof u))return new u(m);t.call(this,m),r.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||we.nextTick(d,this)}function d(m){m.end()}return Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(M){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=M,this._writableState.destroyed=M)}}),p0}var iw=Ia.codes.ERR_STREAM_PREMATURE_CLOSE;function xH(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];e.apply(this,i)}}}function EH(){}function RH(e){return e.setHeader&&typeof e.abort=="function"}function Ox(e,t,r){if(typeof t=="function")return Ox(e,null,t);t||(t={}),r=xH(r||EH);var i=t.readable||t.readable!==!1&&e.readable,a=t.writable||t.writable!==!1&&e.writable,n=function(){e.writable||c()},u=e._writableState&&e._writableState.finished,c=function(){a=!1,u=!0,i||r.call(e)},d=e._readableState&&e._readableState.endEmitted,m=function(){i=!1,d=!0,a||r.call(e)},M=function(P){r.call(e,P)},S=function(){var P;if(i&&!d)return(!e._readableState||!e._readableState.ended)&&(P=new iw),r.call(e,P);if(a&&!u)return(!e._writableState||!e._writableState.ended)&&(P=new iw),r.call(e,P)},R=function(){e.req.on("finish",c)};return RH(e)?(e.on("complete",c),e.on("abort",S),e.req?R():e.on("request",R)):a&&!e._writableState&&(e.on("end",n),e.on("close",n)),e.on("end",m),e.on("finish",c),t.error!==!1&&e.on("error",M),e.on("close",S),function(){e.removeListener("complete",c),e.removeListener("abort",S),e.removeListener("request",R),e.req&&e.req.removeListener("finish",c),e.removeListener("end",n),e.removeListener("close",n),e.removeListener("finish",c),e.removeListener("end",m),e.removeListener("error",M),e.removeListener("close",S)}}var Pg=Ox,v0,nw;function AH(){if(nw)return v0;nw=1;var e;function t(H,F,W){return F=r(F),F in H?Object.defineProperty(H,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):H[F]=W,H}function r(H){var F=i(H,"string");return typeof F=="symbol"?F:String(F)}function i(H,F){if(typeof H!="object"||H===null)return H;var W=H[Symbol.toPrimitive];if(W!==void 0){var Y=W.call(H,F||"default");if(typeof Y!="object")return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(H)}var a=Pg,n=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),M=Symbol("handlePromise"),S=Symbol("stream");function R(H,F){return{value:H,done:F}}function C(H){var F=H[n];if(F!==null){var W=H[S].read();W!==null&&(H[m]=null,H[n]=null,H[u]=null,F(R(W,!1)))}}function P(H){we.nextTick(C,H)}function k(H,F){return function(W,Y){H.then(function(){if(F[d]){W(R(void 0,!0));return}F[M](W,Y)},Y)}}var L=Object.getPrototypeOf(function(){}),I=Object.setPrototypeOf((e={get stream(){return this[S]},next:function(){var F=this,W=this[c];if(W!==null)return Promise.reject(W);if(this[d])return Promise.resolve(R(void 0,!0));if(this[S].destroyed)return new Promise(function(V,oe){we.nextTick(function(){F[c]?oe(F[c]):V(R(void 0,!0))})});var Y=this[m],ie;if(Y)ie=new Promise(k(Y,this));else{var J=this[S].read();if(J!==null)return Promise.resolve(R(J,!1));ie=new Promise(this[M])}return this[m]=ie,ie}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var F=this;return new Promise(function(W,Y){F[S].destroy(null,function(ie){if(ie){Y(ie);return}W(R(void 0,!0))})})}),e),L),B=function(F){var W,Y=Object.create(I,(W={},t(W,S,{value:F,writable:!0}),t(W,n,{value:null,writable:!0}),t(W,u,{value:null,writable:!0}),t(W,c,{value:null,writable:!0}),t(W,d,{value:F._readableState.endEmitted,writable:!0}),t(W,M,{value:function(J,V){var oe=Y[S].read();oe?(Y[m]=null,Y[n]=null,Y[u]=null,J(R(oe,!1))):(Y[n]=J,Y[u]=V)},writable:!0}),W));return Y[m]=null,a(F,function(ie){if(ie&&ie.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=Y[u];J!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,J(ie)),Y[c]=ie;return}var V=Y[n];V!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,V(R(void 0,!0))),Y[d]=!0}),F.on("readable",P.bind(null,Y)),Y};return v0=B,v0}var g0,ow;function TH(){return ow||(ow=1,g0=function(){throw new Error("Readable.from is not available in the browser")}),g0}var m0,aw;function Ix(){if(aw)return m0;aw=1,m0=V;var e;V.ReadableState=J,Or.EventEmitter;var t=function(y,O){return y.listeners(O).length},r=xx,i=ke.Buffer,a=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function n(b){return i.from(b)}function u(b){return i.isBuffer(b)||b instanceof a}var c=ei,d;c&&c.debuglog?d=c.debuglog("stream"):d=function(){};var m=dH(),M=Ex,S=Ax,R=S.getHighWaterMark,C=Ia.codes,P=C.ERR_INVALID_ARG_TYPE,k=C.ERR_STREAM_PUSH_AFTER_EOF,L=C.ERR_METHOD_NOT_IMPLEMENTED,I=C.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,B,H,F;Ze(V,r);var W=M.errorOrDestroy,Y=["error","close","destroy","pause","resume"];function ie(b,y,O){if(typeof b.prependListener=="function")return b.prependListener(y,O);!b._events||!b._events[y]?b.on(y,O):Array.isArray(b._events[y])?b._events[y].unshift(O):b._events[y]=[O,b._events[y]]}function J(b,y,O){e=e||Ss(),b=b||{},typeof O!="boolean"&&(O=y instanceof e),this.objectMode=!!b.objectMode,O&&(this.objectMode=this.objectMode||!!b.readableObjectMode),this.highWaterMark=R(this,b,"readableHighWaterMark",O),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=b.emitClose!==!1,this.autoDestroy=!!b.autoDestroy,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(B||(B=Xr().StringDecoder),this.decoder=new B(b.encoding),this.encoding=b.encoding)}function V(b){if(e=e||Ss(),!(this instanceof V))return new V(b);var y=this instanceof e;this._readableState=new J(b,this,y),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),r.call(this)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(y){this._readableState&&(this._readableState.destroyed=y)}}),V.prototype.destroy=M.destroy,V.prototype._undestroy=M.undestroy,V.prototype._destroy=function(b,y){y(b)},V.prototype.push=function(b,y){var O=this._readableState,q;return O.objectMode?q=!0:typeof b=="string"&&(y=y||O.defaultEncoding,y!==O.encoding&&(b=i.from(b,y),y=""),q=!0),oe(this,b,y,!1,q)},V.prototype.unshift=function(b){return oe(this,b,null,!0,!1)};function oe(b,y,O,q,X){d("readableAddChunk",y);var D=b._readableState;if(y===null)D.reading=!1,p(b,D);else{var N;if(X||(N=o(D,y)),N)W(b,N);else if(D.objectMode||y&&y.length>0)if(typeof y!="string"&&!D.objectMode&&Object.getPrototypeOf(y)!==i.prototype&&(y=n(y)),q)D.endEmitted?W(b,new I):_(b,D,y,!0);else if(D.ended)W(b,new k);else{if(D.destroyed)return!1;D.reading=!1,D.decoder&&!O?(y=D.decoder.write(y),D.objectMode||y.length!==0?_(b,D,y,!1):g(b,D)):_(b,D,y,!1)}else q||(D.reading=!1,g(b,D))}return!D.ended&&(D.length<D.highWaterMark||D.length===0)}function _(b,y,O,q){y.flowing&&y.length===0&&!y.sync?(y.awaitDrain=0,b.emit("data",O)):(y.length+=y.objectMode?1:O.length,q?y.buffer.unshift(O):y.buffer.push(O),y.needReadable&&w(b)),g(b,y)}function o(b,y){var O;return!u(y)&&typeof y!="string"&&y!==void 0&&!b.objectMode&&(O=new P("chunk",["string","Buffer","Uint8Array"],y)),O}V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(b){B||(B=Xr().StringDecoder);var y=new B(b);this._readableState.decoder=y,this._readableState.encoding=this._readableState.decoder.encoding;for(var O=this._readableState.buffer.head,q="";O!==null;)q+=y.write(O.data),O=O.next;return this._readableState.buffer.clear(),q!==""&&this._readableState.buffer.push(q),this._readableState.length=q.length,this};var f=1073741824;function l(b){return b>=f?b=f:(b--,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,b|=b>>>16,b++),b}function h(b,y){return b<=0||y.length===0&&y.ended?0:y.objectMode?1:b!==b?y.flowing&&y.length?y.buffer.head.data.length:y.length:(b>y.highWaterMark&&(y.highWaterMark=l(b)),b<=y.length?b:y.ended?y.length:(y.needReadable=!0,0))}V.prototype.read=function(b){d("read",b),b=parseInt(b,10);var y=this._readableState,O=b;if(b!==0&&(y.emittedReadable=!1),b===0&&y.needReadable&&((y.highWaterMark!==0?y.length>=y.highWaterMark:y.length>0)||y.ended))return d("read: emitReadable",y.length,y.ended),y.length===0&&y.ended?U(this):w(this),null;if(b=h(b,y),b===0&&y.ended)return y.length===0&&U(this),null;var q=y.needReadable;d("need readable",q),(y.length===0||y.length-b<y.highWaterMark)&&(q=!0,d("length less than watermark",q)),y.ended||y.reading?(q=!1,d("reading or ended",q)):q&&(d("do read"),y.reading=!0,y.sync=!0,y.length===0&&(y.needReadable=!0),this._read(y.highWaterMark),y.sync=!1,y.reading||(b=h(O,y)));var X;return b>0?X=E(b,y):X=null,X===null?(y.needReadable=y.length<=y.highWaterMark,b=0):(y.length-=b,y.awaitDrain=0),y.length===0&&(y.ended||(y.needReadable=!0),O!==b&&y.ended&&U(this)),X!==null&&this.emit("data",X),X};function p(b,y){if(d("onEofChunk"),!y.ended){if(y.decoder){var O=y.decoder.end();O&&O.length&&(y.buffer.push(O),y.length+=y.objectMode?1:O.length)}y.ended=!0,y.sync?w(b):(y.needReadable=!1,y.emittedReadable||(y.emittedReadable=!0,x(b)))}}function w(b){var y=b._readableState;d("emitReadable",y.needReadable,y.emittedReadable),y.needReadable=!1,y.emittedReadable||(d("emitReadable",y.flowing),y.emittedReadable=!0,we.nextTick(x,b))}function x(b){var y=b._readableState;d("emitReadable_",y.destroyed,y.length,y.ended),!y.destroyed&&(y.length||y.ended)&&(b.emit("readable"),y.emittedReadable=!1),y.needReadable=!y.flowing&&!y.ended&&y.length<=y.highWaterMark,A(b)}function g(b,y){y.readingMore||(y.readingMore=!0,we.nextTick(s,b,y))}function s(b,y){for(;!y.reading&&!y.ended&&(y.length<y.highWaterMark||y.flowing&&y.length===0);){var O=y.length;if(d("maybeReadMore read 0"),b.read(0),O===y.length)break}y.readingMore=!1}V.prototype._read=function(b){W(this,new L("_read()"))},V.prototype.pipe=function(b,y){var O=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=b;break;case 1:q.pipes=[q.pipes,b];break;default:q.pipes.push(b);break}q.pipesCount+=1,d("pipe count=%d opts=%j",q.pipesCount,y);var X=(!y||y.end!==!1)&&b!==we.stdout&&b!==we.stderr,D=X?j:le;q.endEmitted?we.nextTick(D):O.once("end",D),b.on("unpipe",N);function N(ce,pe){d("onunpipe"),ce===O&&pe&&pe.hasUnpiped===!1&&(pe.hasUnpiped=!0,te())}function j(){d("onend"),b.end()}var z=v(O);b.on("drain",z);var se=!1;function te(){d("cleanup"),b.removeListener("close",Q),b.removeListener("finish",ue),b.removeListener("drain",z),b.removeListener("error",Ee),b.removeListener("unpipe",N),O.removeListener("end",j),O.removeListener("end",le),O.removeListener("data",ne),se=!0,q.awaitDrain&&(!b._writableState||b._writableState.needDrain)&&z()}O.on("data",ne);function ne(ce){d("ondata");var pe=b.write(ce);d("dest.write",pe),pe===!1&&((q.pipesCount===1&&q.pipes===b||q.pipesCount>1&&Z(q.pipes,b)!==-1)&&!se&&(d("false write response, pause",q.awaitDrain),q.awaitDrain++),O.pause())}function Ee(ce){d("onerror",ce),le(),b.removeListener("error",Ee),t(b,"error")===0&&W(b,ce)}ie(b,"error",Ee);function Q(){b.removeListener("finish",ue),le()}b.once("close",Q);function ue(){d("onfinish"),b.removeListener("close",Q),le()}b.once("finish",ue);function le(){d("unpipe"),O.unpipe(b)}return b.emit("pipe",O),q.flowing||(d("pipe resume"),O.resume()),b};function v(b){return function(){var O=b._readableState;d("pipeOnDrain",O.awaitDrain),O.awaitDrain&&O.awaitDrain--,O.awaitDrain===0&&t(b,"data")&&(O.flowing=!0,A(b))}}V.prototype.unpipe=function(b){var y=this._readableState,O={hasUnpiped:!1};if(y.pipesCount===0)return this;if(y.pipesCount===1)return b&&b!==y.pipes?this:(b||(b=y.pipes),y.pipes=null,y.pipesCount=0,y.flowing=!1,b&&b.emit("unpipe",this,O),this);if(!b){var q=y.pipes,X=y.pipesCount;y.pipes=null,y.pipesCount=0,y.flowing=!1;for(var D=0;D<X;D++)q[D].emit("unpipe",this,{hasUnpiped:!1});return this}var N=Z(y.pipes,b);return N===-1?this:(y.pipes.splice(N,1),y.pipesCount-=1,y.pipesCount===1&&(y.pipes=y.pipes[0]),b.emit("unpipe",this,O),this)},V.prototype.on=function(b,y){var O=r.prototype.on.call(this,b,y),q=this._readableState;return b==="data"?(q.readableListening=this.listenerCount("readable")>0,q.flowing!==!1&&this.resume()):b==="readable"&&!q.endEmitted&&!q.readableListening&&(q.readableListening=q.needReadable=!0,q.flowing=!1,q.emittedReadable=!1,d("on readable",q.length,q.reading),q.length?w(this):q.reading||we.nextTick($,this)),O},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(b,y){var O=r.prototype.removeListener.call(this,b,y);return b==="readable"&&we.nextTick(T,this),O},V.prototype.removeAllListeners=function(b){var y=r.prototype.removeAllListeners.apply(this,arguments);return(b==="readable"||b===void 0)&&we.nextTick(T,this),y};function T(b){var y=b._readableState;y.readableListening=b.listenerCount("readable")>0,y.resumeScheduled&&!y.paused?y.flowing=!0:b.listenerCount("data")>0&&b.resume()}function $(b){d("readable nexttick read 0"),b.read(0)}V.prototype.resume=function(){var b=this._readableState;return b.flowing||(d("resume"),b.flowing=!b.readableListening,G(this,b)),b.paused=!1,this};function G(b,y){y.resumeScheduled||(y.resumeScheduled=!0,we.nextTick(ee,b,y))}function ee(b,y){d("resume",y.reading),y.reading||b.read(0),y.resumeScheduled=!1,b.emit("resume"),A(b),y.flowing&&!y.reading&&b.read(0)}V.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function A(b){var y=b._readableState;for(d("flow",y.flowing);y.flowing&&b.read()!==null;);}V.prototype.wrap=function(b){var y=this,O=this._readableState,q=!1;b.on("end",function(){if(d("wrapped end"),O.decoder&&!O.ended){var N=O.decoder.end();N&&N.length&&y.push(N)}y.push(null)}),b.on("data",function(N){if(d("wrapped data"),O.decoder&&(N=O.decoder.write(N)),!(O.objectMode&&N==null)&&!(!O.objectMode&&(!N||!N.length))){var j=y.push(N);j||(q=!0,b.pause())}});for(var X in b)this[X]===void 0&&typeof b[X]=="function"&&(this[X]=function(j){return function(){return b[j].apply(b,arguments)}}(X));for(var D=0;D<Y.length;D++)b.on(Y[D],this.emit.bind(this,Y[D]));return this._read=function(N){d("wrapped _read",N),q&&(q=!1,b.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return H===void 0&&(H=AH()),H(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(y){this._readableState&&(this._readableState.flowing=y)}}),V._fromList=E,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function E(b,y){if(y.length===0)return null;var O;return y.objectMode?O=y.buffer.shift():!b||b>=y.length?(y.decoder?O=y.buffer.join(""):y.buffer.length===1?O=y.buffer.first():O=y.buffer.concat(y.length),y.buffer.clear()):O=y.buffer.consume(b,y.decoder),O}function U(b){var y=b._readableState;d("endReadable",y.endEmitted),y.endEmitted||(y.ended=!0,we.nextTick(K,y,b))}function K(b,y){if(d("endReadableNT",b.endEmitted,b.length),!b.endEmitted&&b.length===0&&(b.endEmitted=!0,y.readable=!1,y.emit("end"),b.autoDestroy)){var O=y._writableState;(!O||O.autoDestroy&&O.finished)&&y.destroy()}}typeof Symbol=="function"&&(V.from=function(b,y){return F===void 0&&(F=TH()),F(V,b,y)});function Z(b,y){for(var O=0,q=b.length;O<q;O++)if(b[O]===y)return O;return-1}return m0}var Px=Un,fc=Ia.codes,OH=fc.ERR_METHOD_NOT_IMPLEMENTED,IH=fc.ERR_MULTIPLE_CALLBACK,PH=fc.ERR_TRANSFORM_ALREADY_TRANSFORMING,CH=fc.ERR_TRANSFORM_WITH_LENGTH_0,uc=Ss();Ze(Un,uc);function BH(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new IH);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function Un(e){if(!(this instanceof Un))return new Un(e);uc.call(this,e),this._transformState={afterTransform:BH.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",LH)}function LH(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){sw(e,t,r)}):sw(this,null,null)}Un.prototype.push=function(e,t){return this._transformState.needTransform=!1,uc.prototype.push.call(this,e,t)};Un.prototype._transform=function(e,t,r){r(new OH("_transform()"))};Un.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};Un.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Un.prototype._destroy=function(e,t){uc.prototype._destroy.call(this,e,function(r){t(r)})};function sw(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new CH;if(e._transformState.transforming)throw new PH;return e.push(null)}var NH=su,Cx=Px;Ze(su,Cx);function su(e){if(!(this instanceof su))return new su(e);Cx.call(this,e)}su.prototype._transform=function(e,t,r){r(null,e)};var y0;function kH(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Bx=Ia.codes,$H=Bx.ERR_MISSING_ARGS,DH=Bx.ERR_STREAM_DESTROYED;function fw(e){if(e)throw e}function FH(e){return e.setHeader&&typeof e.abort=="function"}function jH(e,t,r,i){i=kH(i);var a=!1;e.on("close",function(){a=!0}),y0===void 0&&(y0=Pg),y0(e,{readable:t,writable:r},function(u){if(u)return i(u);a=!0,i()});var n=!1;return function(u){if(!a&&!n){if(n=!0,FH(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(u||new DH("pipe"))}}}function uw(e){e()}function UH(e,t){return e.pipe(t)}function HH(e){return!e.length||typeof e[e.length-1]!="function"?fw:e.pop()}function qH(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=HH(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new $H("streams");var a,n=t.map(function(u,c){var d=c<t.length-1,m=c>0;return jH(u,d,m,function(M){a||(a=M),M&&n.forEach(uw),!d&&(n.forEach(uw),i(a))})});return t.reduce(UH)}var WH=qH;(function(e,t){t=e.exports=Ix(),t.Stream=t,t.Readable=t,t.Writable=Tx(),t.Duplex=Ss(),t.Transform=Px,t.PassThrough=NH,t.finished=Pg,t.pipeline=WH})(Vp,Vp.exports);var KH=Vp.exports,gf={exports:{}},Cg={exports:{}};Cg.exports;(function(e){(function(t,r){function i(f,l){if(!f)throw new Error(l||"Assertion failed")}function a(f,l){f.super_=l;var h=function(){};h.prototype=l.prototype,f.prototype=new h,f.prototype.constructor=f}function n(f,l,h){if(n.isBN(f))return f;this.negative=0,this.words=null,this.length=0,this.red=null,f!==null&&((l==="le"||l==="be")&&(h=l,l=10),this._init(f||0,l||10,h||"be"))}typeof t=="object"?t.exports=n:r.BN=n,n.BN=n,n.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=ke.Buffer}catch{}n.isBN=function(l){return l instanceof n?!0:l!==null&&typeof l=="object"&&l.constructor.wordSize===n.wordSize&&Array.isArray(l.words)},n.max=function(l,h){return l.cmp(h)>0?l:h},n.min=function(l,h){return l.cmp(h)<0?l:h},n.prototype._init=function(l,h,p){if(typeof l=="number")return this._initNumber(l,h,p);if(typeof l=="object")return this._initArray(l,h,p);h==="hex"&&(h=16),i(h===(h|0)&&h>=2&&h<=36),l=l.toString().replace(/\s+/g,"");var w=0;l[0]==="-"&&(w++,this.negative=1),w<l.length&&(h===16?this._parseHex(l,w,p):(this._parseBase(l,h,w),p==="le"&&this._initArray(this.toArray(),h,p)))},n.prototype._initNumber=function(l,h,p){l<0&&(this.negative=1,l=-l),l<67108864?(this.words=[l&67108863],this.length=1):l<4503599627370496?(this.words=[l&67108863,l/67108864&67108863],this.length=2):(i(l<9007199254740992),this.words=[l&67108863,l/67108864&67108863,1],this.length=3),p==="le"&&this._initArray(this.toArray(),h,p)},n.prototype._initArray=function(l,h,p){if(i(typeof l.length=="number"),l.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(l.length/3),this.words=new Array(this.length);for(var w=0;w<this.length;w++)this.words[w]=0;var x,g,s=0;if(p==="be")for(w=l.length-1,x=0;w>=0;w-=3)g=l[w]|l[w-1]<<8|l[w-2]<<16,this.words[x]|=g<<s&67108863,this.words[x+1]=g>>>26-s&67108863,s+=24,s>=26&&(s-=26,x++);else if(p==="le")for(w=0,x=0;w<l.length;w+=3)g=l[w]|l[w+1]<<8|l[w+2]<<16,this.words[x]|=g<<s&67108863,this.words[x+1]=g>>>26-s&67108863,s+=24,s>=26&&(s-=26,x++);return this._strip()};function c(f,l){var h=f.charCodeAt(l);if(h>=48&&h<=57)return h-48;if(h>=65&&h<=70)return h-55;if(h>=97&&h<=102)return h-87;i(!1,"Invalid character in "+f)}function d(f,l,h){var p=c(f,h);return h-1>=l&&(p|=c(f,h-1)<<4),p}n.prototype._parseHex=function(l,h,p){this.length=Math.ceil((l.length-h)/6),this.words=new Array(this.length);for(var w=0;w<this.length;w++)this.words[w]=0;var x=0,g=0,s;if(p==="be")for(w=l.length-1;w>=h;w-=2)s=d(l,h,w)<<x,this.words[g]|=s&67108863,x>=18?(x-=18,g+=1,this.words[g]|=s>>>26):x+=8;else{var v=l.length-h;for(w=v%2===0?h+1:h;w<l.length;w+=2)s=d(l,h,w)<<x,this.words[g]|=s&67108863,x>=18?(x-=18,g+=1,this.words[g]|=s>>>26):x+=8}this._strip()};function m(f,l,h,p){for(var w=0,x=0,g=Math.min(f.length,h),s=l;s<g;s++){var v=f.charCodeAt(s)-48;w*=p,v>=49?x=v-49+10:v>=17?x=v-17+10:x=v,i(v>=0&&x<p,"Invalid character"),w+=x}return w}n.prototype._parseBase=function(l,h,p){this.words=[0],this.length=1;for(var w=0,x=1;x<=67108863;x*=h)w++;w--,x=x/h|0;for(var g=l.length-p,s=g%w,v=Math.min(g,g-s)+p,T=0,$=p;$<v;$+=w)T=m(l,$,$+w,h),this.imuln(x),this.words[0]+T<67108864?this.words[0]+=T:this._iaddn(T);if(s!==0){var G=1;for(T=m(l,$,l.length,h),$=0;$<s;$++)G*=h;this.imuln(G),this.words[0]+T<67108864?this.words[0]+=T:this._iaddn(T)}this._strip()},n.prototype.copy=function(l){l.words=new Array(this.length);for(var h=0;h<this.length;h++)l.words[h]=this.words[h];l.length=this.length,l.negative=this.negative,l.red=this.red};function M(f,l){f.words=l.words,f.length=l.length,f.negative=l.negative,f.red=l.red}if(n.prototype._move=function(l){M(l,this)},n.prototype.clone=function(){var l=new n(null);return this.copy(l),l},n.prototype._expand=function(l){for(;this.length<l;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=S}catch{n.prototype.inspect=S}else n.prototype.inspect=S;function S(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var R=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(l,h){l=l||10,h=h|0||1;var p;if(l===16||l==="hex"){p="";for(var w=0,x=0,g=0;g<this.length;g++){var s=this.words[g],v=((s<<w|x)&16777215).toString(16);x=s>>>24-w&16777215,w+=2,w>=26&&(w-=26,g--),x!==0||g!==this.length-1?p=R[6-v.length]+v+p:p=v+p}for(x!==0&&(p=x.toString(16)+p);p.length%h!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(l===(l|0)&&l>=2&&l<=36){var T=C[l],$=P[l];p="";var G=this.clone();for(G.negative=0;!G.isZero();){var ee=G.modrn($).toString(l);G=G.idivn($),G.isZero()?p=ee+p:p=R[T-ee.length]+ee+p}for(this.isZero()&&(p="0"+p);p.length%h!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}i(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var l=this.words[0];return this.length===2?l+=this.words[1]*67108864:this.length===3&&this.words[2]===1?l+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-l:l},n.prototype.toJSON=function(){return this.toString(16,2)},u&&(n.prototype.toBuffer=function(l,h){return this.toArrayLike(u,l,h)}),n.prototype.toArray=function(l,h){return this.toArrayLike(Array,l,h)};var k=function(l,h){return l.allocUnsafe?l.allocUnsafe(h):new l(h)};n.prototype.toArrayLike=function(l,h,p){this._strip();var w=this.byteLength(),x=p||Math.max(1,w);i(w<=x,"byte array longer than desired length"),i(x>0,"Requested array length <= 0");var g=k(l,x),s=h==="le"?"LE":"BE";return this["_toArrayLike"+s](g,w),g},n.prototype._toArrayLikeLE=function(l,h){for(var p=0,w=0,x=0,g=0;x<this.length;x++){var s=this.words[x]<<g|w;l[p++]=s&255,p<l.length&&(l[p++]=s>>8&255),p<l.length&&(l[p++]=s>>16&255),g===6?(p<l.length&&(l[p++]=s>>24&255),w=0,g=0):(w=s>>>24,g+=2)}if(p<l.length)for(l[p++]=w;p<l.length;)l[p++]=0},n.prototype._toArrayLikeBE=function(l,h){for(var p=l.length-1,w=0,x=0,g=0;x<this.length;x++){var s=this.words[x]<<g|w;l[p--]=s&255,p>=0&&(l[p--]=s>>8&255),p>=0&&(l[p--]=s>>16&255),g===6?(p>=0&&(l[p--]=s>>24&255),w=0,g=0):(w=s>>>24,g+=2)}if(p>=0)for(l[p--]=w;p>=0;)l[p--]=0},Math.clz32?n.prototype._countBits=function(l){return 32-Math.clz32(l)}:n.prototype._countBits=function(l){var h=l,p=0;return h>=4096&&(p+=13,h>>>=13),h>=64&&(p+=7,h>>>=7),h>=8&&(p+=4,h>>>=4),h>=2&&(p+=2,h>>>=2),p+h},n.prototype._zeroBits=function(l){if(l===0)return 26;var h=l,p=0;return h&8191||(p+=13,h>>>=13),h&127||(p+=7,h>>>=7),h&15||(p+=4,h>>>=4),h&3||(p+=2,h>>>=2),h&1||p++,p},n.prototype.bitLength=function(){var l=this.words[this.length-1],h=this._countBits(l);return(this.length-1)*26+h};function L(f){for(var l=new Array(f.bitLength()),h=0;h<l.length;h++){var p=h/26|0,w=h%26;l[h]=f.words[p]>>>w&1}return l}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var l=0,h=0;h<this.length;h++){var p=this._zeroBits(this.words[h]);if(l+=p,p!==26)break}return l},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(l){return this.negative!==0?this.abs().inotn(l).iaddn(1):this.clone()},n.prototype.fromTwos=function(l){return this.testn(l-1)?this.notn(l).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(l){for(;this.length<l.length;)this.words[this.length++]=0;for(var h=0;h<l.length;h++)this.words[h]=this.words[h]|l.words[h];return this._strip()},n.prototype.ior=function(l){return i((this.negative|l.negative)===0),this.iuor(l)},n.prototype.or=function(l){return this.length>l.length?this.clone().ior(l):l.clone().ior(this)},n.prototype.uor=function(l){return this.length>l.length?this.clone().iuor(l):l.clone().iuor(this)},n.prototype.iuand=function(l){var h;this.length>l.length?h=l:h=this;for(var p=0;p<h.length;p++)this.words[p]=this.words[p]&l.words[p];return this.length=h.length,this._strip()},n.prototype.iand=function(l){return i((this.negative|l.negative)===0),this.iuand(l)},n.prototype.and=function(l){return this.length>l.length?this.clone().iand(l):l.clone().iand(this)},n.prototype.uand=function(l){return this.length>l.length?this.clone().iuand(l):l.clone().iuand(this)},n.prototype.iuxor=function(l){var h,p;this.length>l.length?(h=this,p=l):(h=l,p=this);for(var w=0;w<p.length;w++)this.words[w]=h.words[w]^p.words[w];if(this!==h)for(;w<h.length;w++)this.words[w]=h.words[w];return this.length=h.length,this._strip()},n.prototype.ixor=function(l){return i((this.negative|l.negative)===0),this.iuxor(l)},n.prototype.xor=function(l){return this.length>l.length?this.clone().ixor(l):l.clone().ixor(this)},n.prototype.uxor=function(l){return this.length>l.length?this.clone().iuxor(l):l.clone().iuxor(this)},n.prototype.inotn=function(l){i(typeof l=="number"&&l>=0);var h=Math.ceil(l/26)|0,p=l%26;this._expand(h),p>0&&h--;for(var w=0;w<h;w++)this.words[w]=~this.words[w]&67108863;return p>0&&(this.words[w]=~this.words[w]&67108863>>26-p),this._strip()},n.prototype.notn=function(l){return this.clone().inotn(l)},n.prototype.setn=function(l,h){i(typeof l=="number"&&l>=0);var p=l/26|0,w=l%26;return this._expand(p+1),h?this.words[p]=this.words[p]|1<<w:this.words[p]=this.words[p]&~(1<<w),this._strip()},n.prototype.iadd=function(l){var h;if(this.negative!==0&&l.negative===0)return this.negative=0,h=this.isub(l),this.negative^=1,this._normSign();if(this.negative===0&&l.negative!==0)return l.negative=0,h=this.isub(l),l.negative=1,h._normSign();var p,w;this.length>l.length?(p=this,w=l):(p=l,w=this);for(var x=0,g=0;g<w.length;g++)h=(p.words[g]|0)+(w.words[g]|0)+x,this.words[g]=h&67108863,x=h>>>26;for(;x!==0&&g<p.length;g++)h=(p.words[g]|0)+x,this.words[g]=h&67108863,x=h>>>26;if(this.length=p.length,x!==0)this.words[this.length]=x,this.length++;else if(p!==this)for(;g<p.length;g++)this.words[g]=p.words[g];return this},n.prototype.add=function(l){var h;return l.negative!==0&&this.negative===0?(l.negative=0,h=this.sub(l),l.negative^=1,h):l.negative===0&&this.negative!==0?(this.negative=0,h=l.sub(this),this.negative=1,h):this.length>l.length?this.clone().iadd(l):l.clone().iadd(this)},n.prototype.isub=function(l){if(l.negative!==0){l.negative=0;var h=this.iadd(l);return l.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(l),this.negative=1,this._normSign();var p=this.cmp(l);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var w,x;p>0?(w=this,x=l):(w=l,x=this);for(var g=0,s=0;s<x.length;s++)h=(w.words[s]|0)-(x.words[s]|0)+g,g=h>>26,this.words[s]=h&67108863;for(;g!==0&&s<w.length;s++)h=(w.words[s]|0)+g,g=h>>26,this.words[s]=h&67108863;if(g===0&&s<w.length&&w!==this)for(;s<w.length;s++)this.words[s]=w.words[s];return this.length=Math.max(this.length,s),w!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(l){return this.clone().isub(l)};function I(f,l,h){h.negative=l.negative^f.negative;var p=f.length+l.length|0;h.length=p,p=p-1|0;var w=f.words[0]|0,x=l.words[0]|0,g=w*x,s=g&67108863,v=g/67108864|0;h.words[0]=s;for(var T=1;T<p;T++){for(var $=v>>>26,G=v&67108863,ee=Math.min(T,l.length-1),A=Math.max(0,T-f.length+1);A<=ee;A++){var E=T-A|0;w=f.words[E]|0,x=l.words[A]|0,g=w*x+G,$+=g/67108864|0,G=g&67108863}h.words[T]=G|0,v=$|0}return v!==0?h.words[T]=v|0:h.length--,h._strip()}var B=function(l,h,p){var w=l.words,x=h.words,g=p.words,s=0,v,T,$,G=w[0]|0,ee=G&8191,A=G>>>13,E=w[1]|0,U=E&8191,K=E>>>13,Z=w[2]|0,b=Z&8191,y=Z>>>13,O=w[3]|0,q=O&8191,X=O>>>13,D=w[4]|0,N=D&8191,j=D>>>13,z=w[5]|0,se=z&8191,te=z>>>13,ne=w[6]|0,Ee=ne&8191,Q=ne>>>13,ue=w[7]|0,le=ue&8191,ce=ue>>>13,pe=w[8]|0,de=pe&8191,ae=pe>>>13,fe=w[9]|0,Te=fe&8191,ve=fe>>>13,Me=x[0]|0,Ke=Me&8191,be=Me>>>13,Se=x[1]|0,qe=Se&8191,ye=Se>>>13,_e=x[2]|0,Ve=_e&8191,ge=_e>>>13,xe=x[3]|0,Xe=xe&8191,Re=xe>>>13,Le=x[4]|0,at=Le&8191,Ae=Le>>>13,Ne=x[5]|0,rt=Ne&8191,Oe=Ne>>>13,De=x[6]|0,nt=De&8191,Ie=De>>>13,$e=x[7]|0,st=$e&8191,Pe=$e>>>13,je=x[8]|0,ht=je&8191,Ce=je>>>13,Fe=x[9]|0,it=Fe&8191,et=Fe>>>13;p.negative=l.negative^h.negative,p.length=19,v=Math.imul(ee,Ke),T=Math.imul(ee,be),T=T+Math.imul(A,Ke)|0,$=Math.imul(A,be);var xt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(xt>>>26)|0,xt&=67108863,v=Math.imul(U,Ke),T=Math.imul(U,be),T=T+Math.imul(K,Ke)|0,$=Math.imul(K,be),v=v+Math.imul(ee,qe)|0,T=T+Math.imul(ee,ye)|0,T=T+Math.imul(A,qe)|0,$=$+Math.imul(A,ye)|0;var Tt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,v=Math.imul(b,Ke),T=Math.imul(b,be),T=T+Math.imul(y,Ke)|0,$=Math.imul(y,be),v=v+Math.imul(U,qe)|0,T=T+Math.imul(U,ye)|0,T=T+Math.imul(K,qe)|0,$=$+Math.imul(K,ye)|0,v=v+Math.imul(ee,Ve)|0,T=T+Math.imul(ee,ge)|0,T=T+Math.imul(A,Ve)|0,$=$+Math.imul(A,ge)|0;var Ot=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,v=Math.imul(q,Ke),T=Math.imul(q,be),T=T+Math.imul(X,Ke)|0,$=Math.imul(X,be),v=v+Math.imul(b,qe)|0,T=T+Math.imul(b,ye)|0,T=T+Math.imul(y,qe)|0,$=$+Math.imul(y,ye)|0,v=v+Math.imul(U,Ve)|0,T=T+Math.imul(U,ge)|0,T=T+Math.imul(K,Ve)|0,$=$+Math.imul(K,ge)|0,v=v+Math.imul(ee,Xe)|0,T=T+Math.imul(ee,Re)|0,T=T+Math.imul(A,Xe)|0,$=$+Math.imul(A,Re)|0;var Ct=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,v=Math.imul(N,Ke),T=Math.imul(N,be),T=T+Math.imul(j,Ke)|0,$=Math.imul(j,be),v=v+Math.imul(q,qe)|0,T=T+Math.imul(q,ye)|0,T=T+Math.imul(X,qe)|0,$=$+Math.imul(X,ye)|0,v=v+Math.imul(b,Ve)|0,T=T+Math.imul(b,ge)|0,T=T+Math.imul(y,Ve)|0,$=$+Math.imul(y,ge)|0,v=v+Math.imul(U,Xe)|0,T=T+Math.imul(U,Re)|0,T=T+Math.imul(K,Xe)|0,$=$+Math.imul(K,Re)|0,v=v+Math.imul(ee,at)|0,T=T+Math.imul(ee,Ae)|0,T=T+Math.imul(A,at)|0,$=$+Math.imul(A,Ae)|0;var kt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(kt>>>26)|0,kt&=67108863,v=Math.imul(se,Ke),T=Math.imul(se,be),T=T+Math.imul(te,Ke)|0,$=Math.imul(te,be),v=v+Math.imul(N,qe)|0,T=T+Math.imul(N,ye)|0,T=T+Math.imul(j,qe)|0,$=$+Math.imul(j,ye)|0,v=v+Math.imul(q,Ve)|0,T=T+Math.imul(q,ge)|0,T=T+Math.imul(X,Ve)|0,$=$+Math.imul(X,ge)|0,v=v+Math.imul(b,Xe)|0,T=T+Math.imul(b,Re)|0,T=T+Math.imul(y,Xe)|0,$=$+Math.imul(y,Re)|0,v=v+Math.imul(U,at)|0,T=T+Math.imul(U,Ae)|0,T=T+Math.imul(K,at)|0,$=$+Math.imul(K,Ae)|0,v=v+Math.imul(ee,rt)|0,T=T+Math.imul(ee,Oe)|0,T=T+Math.imul(A,rt)|0,$=$+Math.imul(A,Oe)|0;var Ut=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,v=Math.imul(Ee,Ke),T=Math.imul(Ee,be),T=T+Math.imul(Q,Ke)|0,$=Math.imul(Q,be),v=v+Math.imul(se,qe)|0,T=T+Math.imul(se,ye)|0,T=T+Math.imul(te,qe)|0,$=$+Math.imul(te,ye)|0,v=v+Math.imul(N,Ve)|0,T=T+Math.imul(N,ge)|0,T=T+Math.imul(j,Ve)|0,$=$+Math.imul(j,ge)|0,v=v+Math.imul(q,Xe)|0,T=T+Math.imul(q,Re)|0,T=T+Math.imul(X,Xe)|0,$=$+Math.imul(X,Re)|0,v=v+Math.imul(b,at)|0,T=T+Math.imul(b,Ae)|0,T=T+Math.imul(y,at)|0,$=$+Math.imul(y,Ae)|0,v=v+Math.imul(U,rt)|0,T=T+Math.imul(U,Oe)|0,T=T+Math.imul(K,rt)|0,$=$+Math.imul(K,Oe)|0,v=v+Math.imul(ee,nt)|0,T=T+Math.imul(ee,Ie)|0,T=T+Math.imul(A,nt)|0,$=$+Math.imul(A,Ie)|0;var Ht=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,v=Math.imul(le,Ke),T=Math.imul(le,be),T=T+Math.imul(ce,Ke)|0,$=Math.imul(ce,be),v=v+Math.imul(Ee,qe)|0,T=T+Math.imul(Ee,ye)|0,T=T+Math.imul(Q,qe)|0,$=$+Math.imul(Q,ye)|0,v=v+Math.imul(se,Ve)|0,T=T+Math.imul(se,ge)|0,T=T+Math.imul(te,Ve)|0,$=$+Math.imul(te,ge)|0,v=v+Math.imul(N,Xe)|0,T=T+Math.imul(N,Re)|0,T=T+Math.imul(j,Xe)|0,$=$+Math.imul(j,Re)|0,v=v+Math.imul(q,at)|0,T=T+Math.imul(q,Ae)|0,T=T+Math.imul(X,at)|0,$=$+Math.imul(X,Ae)|0,v=v+Math.imul(b,rt)|0,T=T+Math.imul(b,Oe)|0,T=T+Math.imul(y,rt)|0,$=$+Math.imul(y,Oe)|0,v=v+Math.imul(U,nt)|0,T=T+Math.imul(U,Ie)|0,T=T+Math.imul(K,nt)|0,$=$+Math.imul(K,Ie)|0,v=v+Math.imul(ee,st)|0,T=T+Math.imul(ee,Pe)|0,T=T+Math.imul(A,st)|0,$=$+Math.imul(A,Pe)|0;var Bt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,v=Math.imul(de,Ke),T=Math.imul(de,be),T=T+Math.imul(ae,Ke)|0,$=Math.imul(ae,be),v=v+Math.imul(le,qe)|0,T=T+Math.imul(le,ye)|0,T=T+Math.imul(ce,qe)|0,$=$+Math.imul(ce,ye)|0,v=v+Math.imul(Ee,Ve)|0,T=T+Math.imul(Ee,ge)|0,T=T+Math.imul(Q,Ve)|0,$=$+Math.imul(Q,ge)|0,v=v+Math.imul(se,Xe)|0,T=T+Math.imul(se,Re)|0,T=T+Math.imul(te,Xe)|0,$=$+Math.imul(te,Re)|0,v=v+Math.imul(N,at)|0,T=T+Math.imul(N,Ae)|0,T=T+Math.imul(j,at)|0,$=$+Math.imul(j,Ae)|0,v=v+Math.imul(q,rt)|0,T=T+Math.imul(q,Oe)|0,T=T+Math.imul(X,rt)|0,$=$+Math.imul(X,Oe)|0,v=v+Math.imul(b,nt)|0,T=T+Math.imul(b,Ie)|0,T=T+Math.imul(y,nt)|0,$=$+Math.imul(y,Ie)|0,v=v+Math.imul(U,st)|0,T=T+Math.imul(U,Pe)|0,T=T+Math.imul(K,st)|0,$=$+Math.imul(K,Pe)|0,v=v+Math.imul(ee,ht)|0,T=T+Math.imul(ee,Ce)|0,T=T+Math.imul(A,ht)|0,$=$+Math.imul(A,Ce)|0;var dt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(dt>>>26)|0,dt&=67108863,v=Math.imul(Te,Ke),T=Math.imul(Te,be),T=T+Math.imul(ve,Ke)|0,$=Math.imul(ve,be),v=v+Math.imul(de,qe)|0,T=T+Math.imul(de,ye)|0,T=T+Math.imul(ae,qe)|0,$=$+Math.imul(ae,ye)|0,v=v+Math.imul(le,Ve)|0,T=T+Math.imul(le,ge)|0,T=T+Math.imul(ce,Ve)|0,$=$+Math.imul(ce,ge)|0,v=v+Math.imul(Ee,Xe)|0,T=T+Math.imul(Ee,Re)|0,T=T+Math.imul(Q,Xe)|0,$=$+Math.imul(Q,Re)|0,v=v+Math.imul(se,at)|0,T=T+Math.imul(se,Ae)|0,T=T+Math.imul(te,at)|0,$=$+Math.imul(te,Ae)|0,v=v+Math.imul(N,rt)|0,T=T+Math.imul(N,Oe)|0,T=T+Math.imul(j,rt)|0,$=$+Math.imul(j,Oe)|0,v=v+Math.imul(q,nt)|0,T=T+Math.imul(q,Ie)|0,T=T+Math.imul(X,nt)|0,$=$+Math.imul(X,Ie)|0,v=v+Math.imul(b,st)|0,T=T+Math.imul(b,Pe)|0,T=T+Math.imul(y,st)|0,$=$+Math.imul(y,Pe)|0,v=v+Math.imul(U,ht)|0,T=T+Math.imul(U,Ce)|0,T=T+Math.imul(K,ht)|0,$=$+Math.imul(K,Ce)|0,v=v+Math.imul(ee,it)|0,T=T+Math.imul(ee,et)|0,T=T+Math.imul(A,it)|0,$=$+Math.imul(A,et)|0;var At=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(At>>>26)|0,At&=67108863,v=Math.imul(Te,qe),T=Math.imul(Te,ye),T=T+Math.imul(ve,qe)|0,$=Math.imul(ve,ye),v=v+Math.imul(de,Ve)|0,T=T+Math.imul(de,ge)|0,T=T+Math.imul(ae,Ve)|0,$=$+Math.imul(ae,ge)|0,v=v+Math.imul(le,Xe)|0,T=T+Math.imul(le,Re)|0,T=T+Math.imul(ce,Xe)|0,$=$+Math.imul(ce,Re)|0,v=v+Math.imul(Ee,at)|0,T=T+Math.imul(Ee,Ae)|0,T=T+Math.imul(Q,at)|0,$=$+Math.imul(Q,Ae)|0,v=v+Math.imul(se,rt)|0,T=T+Math.imul(se,Oe)|0,T=T+Math.imul(te,rt)|0,$=$+Math.imul(te,Oe)|0,v=v+Math.imul(N,nt)|0,T=T+Math.imul(N,Ie)|0,T=T+Math.imul(j,nt)|0,$=$+Math.imul(j,Ie)|0,v=v+Math.imul(q,st)|0,T=T+Math.imul(q,Pe)|0,T=T+Math.imul(X,st)|0,$=$+Math.imul(X,Pe)|0,v=v+Math.imul(b,ht)|0,T=T+Math.imul(b,Ce)|0,T=T+Math.imul(y,ht)|0,$=$+Math.imul(y,Ce)|0,v=v+Math.imul(U,it)|0,T=T+Math.imul(U,et)|0,T=T+Math.imul(K,it)|0,$=$+Math.imul(K,et)|0;var _t=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(_t>>>26)|0,_t&=67108863,v=Math.imul(Te,Ve),T=Math.imul(Te,ge),T=T+Math.imul(ve,Ve)|0,$=Math.imul(ve,ge),v=v+Math.imul(de,Xe)|0,T=T+Math.imul(de,Re)|0,T=T+Math.imul(ae,Xe)|0,$=$+Math.imul(ae,Re)|0,v=v+Math.imul(le,at)|0,T=T+Math.imul(le,Ae)|0,T=T+Math.imul(ce,at)|0,$=$+Math.imul(ce,Ae)|0,v=v+Math.imul(Ee,rt)|0,T=T+Math.imul(Ee,Oe)|0,T=T+Math.imul(Q,rt)|0,$=$+Math.imul(Q,Oe)|0,v=v+Math.imul(se,nt)|0,T=T+Math.imul(se,Ie)|0,T=T+Math.imul(te,nt)|0,$=$+Math.imul(te,Ie)|0,v=v+Math.imul(N,st)|0,T=T+Math.imul(N,Pe)|0,T=T+Math.imul(j,st)|0,$=$+Math.imul(j,Pe)|0,v=v+Math.imul(q,ht)|0,T=T+Math.imul(q,Ce)|0,T=T+Math.imul(X,ht)|0,$=$+Math.imul(X,Ce)|0,v=v+Math.imul(b,it)|0,T=T+Math.imul(b,et)|0,T=T+Math.imul(y,it)|0,$=$+Math.imul(y,et)|0;var mt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(mt>>>26)|0,mt&=67108863,v=Math.imul(Te,Xe),T=Math.imul(Te,Re),T=T+Math.imul(ve,Xe)|0,$=Math.imul(ve,Re),v=v+Math.imul(de,at)|0,T=T+Math.imul(de,Ae)|0,T=T+Math.imul(ae,at)|0,$=$+Math.imul(ae,Ae)|0,v=v+Math.imul(le,rt)|0,T=T+Math.imul(le,Oe)|0,T=T+Math.imul(ce,rt)|0,$=$+Math.imul(ce,Oe)|0,v=v+Math.imul(Ee,nt)|0,T=T+Math.imul(Ee,Ie)|0,T=T+Math.imul(Q,nt)|0,$=$+Math.imul(Q,Ie)|0,v=v+Math.imul(se,st)|0,T=T+Math.imul(se,Pe)|0,T=T+Math.imul(te,st)|0,$=$+Math.imul(te,Pe)|0,v=v+Math.imul(N,ht)|0,T=T+Math.imul(N,Ce)|0,T=T+Math.imul(j,ht)|0,$=$+Math.imul(j,Ce)|0,v=v+Math.imul(q,it)|0,T=T+Math.imul(q,et)|0,T=T+Math.imul(X,it)|0,$=$+Math.imul(X,et)|0;var It=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(It>>>26)|0,It&=67108863,v=Math.imul(Te,at),T=Math.imul(Te,Ae),T=T+Math.imul(ve,at)|0,$=Math.imul(ve,Ae),v=v+Math.imul(de,rt)|0,T=T+Math.imul(de,Oe)|0,T=T+Math.imul(ae,rt)|0,$=$+Math.imul(ae,Oe)|0,v=v+Math.imul(le,nt)|0,T=T+Math.imul(le,Ie)|0,T=T+Math.imul(ce,nt)|0,$=$+Math.imul(ce,Ie)|0,v=v+Math.imul(Ee,st)|0,T=T+Math.imul(Ee,Pe)|0,T=T+Math.imul(Q,st)|0,$=$+Math.imul(Q,Pe)|0,v=v+Math.imul(se,ht)|0,T=T+Math.imul(se,Ce)|0,T=T+Math.imul(te,ht)|0,$=$+Math.imul(te,Ce)|0,v=v+Math.imul(N,it)|0,T=T+Math.imul(N,et)|0,T=T+Math.imul(j,it)|0,$=$+Math.imul(j,et)|0;var vt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(vt>>>26)|0,vt&=67108863,v=Math.imul(Te,rt),T=Math.imul(Te,Oe),T=T+Math.imul(ve,rt)|0,$=Math.imul(ve,Oe),v=v+Math.imul(de,nt)|0,T=T+Math.imul(de,Ie)|0,T=T+Math.imul(ae,nt)|0,$=$+Math.imul(ae,Ie)|0,v=v+Math.imul(le,st)|0,T=T+Math.imul(le,Pe)|0,T=T+Math.imul(ce,st)|0,$=$+Math.imul(ce,Pe)|0,v=v+Math.imul(Ee,ht)|0,T=T+Math.imul(Ee,Ce)|0,T=T+Math.imul(Q,ht)|0,$=$+Math.imul(Q,Ce)|0,v=v+Math.imul(se,it)|0,T=T+Math.imul(se,et)|0,T=T+Math.imul(te,it)|0,$=$+Math.imul(te,et)|0;var yt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(yt>>>26)|0,yt&=67108863,v=Math.imul(Te,nt),T=Math.imul(Te,Ie),T=T+Math.imul(ve,nt)|0,$=Math.imul(ve,Ie),v=v+Math.imul(de,st)|0,T=T+Math.imul(de,Pe)|0,T=T+Math.imul(ae,st)|0,$=$+Math.imul(ae,Pe)|0,v=v+Math.imul(le,ht)|0,T=T+Math.imul(le,Ce)|0,T=T+Math.imul(ce,ht)|0,$=$+Math.imul(ce,Ce)|0,v=v+Math.imul(Ee,it)|0,T=T+Math.imul(Ee,et)|0,T=T+Math.imul(Q,it)|0,$=$+Math.imul(Q,et)|0;var Dt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,v=Math.imul(Te,st),T=Math.imul(Te,Pe),T=T+Math.imul(ve,st)|0,$=Math.imul(ve,Pe),v=v+Math.imul(de,ht)|0,T=T+Math.imul(de,Ce)|0,T=T+Math.imul(ae,ht)|0,$=$+Math.imul(ae,Ce)|0,v=v+Math.imul(le,it)|0,T=T+Math.imul(le,et)|0,T=T+Math.imul(ce,it)|0,$=$+Math.imul(ce,et)|0;var Ft=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,v=Math.imul(Te,ht),T=Math.imul(Te,Ce),T=T+Math.imul(ve,ht)|0,$=Math.imul(ve,Ce),v=v+Math.imul(de,it)|0,T=T+Math.imul(de,et)|0,T=T+Math.imul(ae,it)|0,$=$+Math.imul(ae,et)|0;var Zn=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,v=Math.imul(Te,it),T=Math.imul(Te,et),T=T+Math.imul(ve,it)|0,$=Math.imul(ve,et);var Ir=(s+v|0)+((T&8191)<<13)|0;return s=($+(T>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,g[0]=xt,g[1]=Tt,g[2]=Ot,g[3]=Ct,g[4]=kt,g[5]=Ut,g[6]=Ht,g[7]=Bt,g[8]=dt,g[9]=At,g[10]=_t,g[11]=mt,g[12]=It,g[13]=vt,g[14]=yt,g[15]=Dt,g[16]=Ft,g[17]=Zn,g[18]=Ir,s!==0&&(g[19]=s,p.length++),p};Math.imul||(B=I);function H(f,l,h){h.negative=l.negative^f.negative,h.length=f.length+l.length;for(var p=0,w=0,x=0;x<h.length-1;x++){var g=w;w=0;for(var s=p&67108863,v=Math.min(x,l.length-1),T=Math.max(0,x-f.length+1);T<=v;T++){var $=x-T,G=f.words[$]|0,ee=l.words[T]|0,A=G*ee,E=A&67108863;g=g+(A/67108864|0)|0,E=E+s|0,s=E&67108863,g=g+(E>>>26)|0,w+=g>>>26,g&=67108863}h.words[x]=s,p=g,g=w}return p!==0?h.words[x]=p:h.length--,h._strip()}function F(f,l,h){return H(f,l,h)}n.prototype.mulTo=function(l,h){var p,w=this.length+l.length;return this.length===10&&l.length===10?p=B(this,l,h):w<63?p=I(this,l,h):w<1024?p=H(this,l,h):p=F(this,l,h),p},n.prototype.mul=function(l){var h=new n(null);return h.words=new Array(this.length+l.length),this.mulTo(l,h)},n.prototype.mulf=function(l){var h=new n(null);return h.words=new Array(this.length+l.length),F(this,l,h)},n.prototype.imul=function(l){return this.clone().mulTo(l,this)},n.prototype.imuln=function(l){var h=l<0;h&&(l=-l),i(typeof l=="number"),i(l<67108864);for(var p=0,w=0;w<this.length;w++){var x=(this.words[w]|0)*l,g=(x&67108863)+(p&67108863);p>>=26,p+=x/67108864|0,p+=g>>>26,this.words[w]=g&67108863}return p!==0&&(this.words[w]=p,this.length++),h?this.ineg():this},n.prototype.muln=function(l){return this.clone().imuln(l)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(l){var h=L(l);if(h.length===0)return new n(1);for(var p=this,w=0;w<h.length&&h[w]===0;w++,p=p.sqr());if(++w<h.length)for(var x=p.sqr();w<h.length;w++,x=x.sqr())h[w]!==0&&(p=p.mul(x));return p},n.prototype.iushln=function(l){i(typeof l=="number"&&l>=0);var h=l%26,p=(l-h)/26,w=67108863>>>26-h<<26-h,x;if(h!==0){var g=0;for(x=0;x<this.length;x++){var s=this.words[x]&w,v=(this.words[x]|0)-s<<h;this.words[x]=v|g,g=s>>>26-h}g&&(this.words[x]=g,this.length++)}if(p!==0){for(x=this.length-1;x>=0;x--)this.words[x+p]=this.words[x];for(x=0;x<p;x++)this.words[x]=0;this.length+=p}return this._strip()},n.prototype.ishln=function(l){return i(this.negative===0),this.iushln(l)},n.prototype.iushrn=function(l,h,p){i(typeof l=="number"&&l>=0);var w;h?w=(h-h%26)/26:w=0;var x=l%26,g=Math.min((l-x)/26,this.length),s=67108863^67108863>>>x<<x,v=p;if(w-=g,w=Math.max(0,w),v){for(var T=0;T<g;T++)v.words[T]=this.words[T];v.length=g}if(g!==0)if(this.length>g)for(this.length-=g,T=0;T<this.length;T++)this.words[T]=this.words[T+g];else this.words[0]=0,this.length=1;var $=0;for(T=this.length-1;T>=0&&($!==0||T>=w);T--){var G=this.words[T]|0;this.words[T]=$<<26-x|G>>>x,$=G&s}return v&&$!==0&&(v.words[v.length++]=$),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(l,h,p){return i(this.negative===0),this.iushrn(l,h,p)},n.prototype.shln=function(l){return this.clone().ishln(l)},n.prototype.ushln=function(l){return this.clone().iushln(l)},n.prototype.shrn=function(l){return this.clone().ishrn(l)},n.prototype.ushrn=function(l){return this.clone().iushrn(l)},n.prototype.testn=function(l){i(typeof l=="number"&&l>=0);var h=l%26,p=(l-h)/26,w=1<<h;if(this.length<=p)return!1;var x=this.words[p];return!!(x&w)},n.prototype.imaskn=function(l){i(typeof l=="number"&&l>=0);var h=l%26,p=(l-h)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(h!==0&&p++,this.length=Math.min(p,this.length),h!==0){var w=67108863^67108863>>>h<<h;this.words[this.length-1]&=w}return this._strip()},n.prototype.maskn=function(l){return this.clone().imaskn(l)},n.prototype.iaddn=function(l){return i(typeof l=="number"),i(l<67108864),l<0?this.isubn(-l):this.negative!==0?this.length===1&&(this.words[0]|0)<=l?(this.words[0]=l-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(l),this.negative=1,this):this._iaddn(l)},n.prototype._iaddn=function(l){this.words[0]+=l;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},n.prototype.isubn=function(l){if(i(typeof l=="number"),i(l<67108864),l<0)return this.iaddn(-l);if(this.negative!==0)return this.negative=0,this.iaddn(l),this.negative=1,this;if(this.words[0]-=l,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this._strip()},n.prototype.addn=function(l){return this.clone().iaddn(l)},n.prototype.subn=function(l){return this.clone().isubn(l)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(l,h,p){var w=l.length+p,x;this._expand(w);var g,s=0;for(x=0;x<l.length;x++){g=(this.words[x+p]|0)+s;var v=(l.words[x]|0)*h;g-=v&67108863,s=(g>>26)-(v/67108864|0),this.words[x+p]=g&67108863}for(;x<this.length-p;x++)g=(this.words[x+p]|0)+s,s=g>>26,this.words[x+p]=g&67108863;if(s===0)return this._strip();for(i(s===-1),s=0,x=0;x<this.length;x++)g=-(this.words[x]|0)+s,s=g>>26,this.words[x]=g&67108863;return this.negative=1,this._strip()},n.prototype._wordDiv=function(l,h){var p=this.length-l.length,w=this.clone(),x=l,g=x.words[x.length-1]|0,s=this._countBits(g);p=26-s,p!==0&&(x=x.ushln(p),w.iushln(p),g=x.words[x.length-1]|0);var v=w.length-x.length,T;if(h!=="mod"){T=new n(null),T.length=v+1,T.words=new Array(T.length);for(var $=0;$<T.length;$++)T.words[$]=0}var G=w.clone()._ishlnsubmul(x,1,v);G.negative===0&&(w=G,T&&(T.words[v]=1));for(var ee=v-1;ee>=0;ee--){var A=(w.words[x.length+ee]|0)*67108864+(w.words[x.length+ee-1]|0);for(A=Math.min(A/g|0,67108863),w._ishlnsubmul(x,A,ee);w.negative!==0;)A--,w.negative=0,w._ishlnsubmul(x,1,ee),w.isZero()||(w.negative^=1);T&&(T.words[ee]=A)}return T&&T._strip(),w._strip(),h!=="div"&&p!==0&&w.iushrn(p),{div:T||null,mod:w}},n.prototype.divmod=function(l,h,p){if(i(!l.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var w,x,g;return this.negative!==0&&l.negative===0?(g=this.neg().divmod(l,h),h!=="mod"&&(w=g.div.neg()),h!=="div"&&(x=g.mod.neg(),p&&x.negative!==0&&x.iadd(l)),{div:w,mod:x}):this.negative===0&&l.negative!==0?(g=this.divmod(l.neg(),h),h!=="mod"&&(w=g.div.neg()),{div:w,mod:g.mod}):this.negative&l.negative?(g=this.neg().divmod(l.neg(),h),h!=="div"&&(x=g.mod.neg(),p&&x.negative!==0&&x.isub(l)),{div:g.div,mod:x}):l.length>this.length||this.cmp(l)<0?{div:new n(0),mod:this}:l.length===1?h==="div"?{div:this.divn(l.words[0]),mod:null}:h==="mod"?{div:null,mod:new n(this.modrn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new n(this.modrn(l.words[0]))}:this._wordDiv(l,h)},n.prototype.div=function(l){return this.divmod(l,"div",!1).div},n.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod},n.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod},n.prototype.divRound=function(l){var h=this.divmod(l);if(h.mod.isZero())return h.div;var p=h.div.negative!==0?h.mod.isub(l):h.mod,w=l.ushrn(1),x=l.andln(1),g=p.cmp(w);return g<0||x===1&&g===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},n.prototype.modrn=function(l){var h=l<0;h&&(l=-l),i(l<=67108863);for(var p=(1<<26)%l,w=0,x=this.length-1;x>=0;x--)w=(p*w+(this.words[x]|0))%l;return h?-w:w},n.prototype.modn=function(l){return this.modrn(l)},n.prototype.idivn=function(l){var h=l<0;h&&(l=-l),i(l<=67108863);for(var p=0,w=this.length-1;w>=0;w--){var x=(this.words[w]|0)+p*67108864;this.words[w]=x/l|0,p=x%l}return this._strip(),h?this.ineg():this},n.prototype.divn=function(l){return this.clone().idivn(l)},n.prototype.egcd=function(l){i(l.negative===0),i(!l.isZero());var h=this,p=l.clone();h.negative!==0?h=h.umod(l):h=h.clone();for(var w=new n(1),x=new n(0),g=new n(0),s=new n(1),v=0;h.isEven()&&p.isEven();)h.iushrn(1),p.iushrn(1),++v;for(var T=p.clone(),$=h.clone();!h.isZero();){for(var G=0,ee=1;!(h.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(h.iushrn(G);G-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(T),x.isub($)),w.iushrn(1),x.iushrn(1);for(var A=0,E=1;!(p.words[0]&E)&&A<26;++A,E<<=1);if(A>0)for(p.iushrn(A);A-- >0;)(g.isOdd()||s.isOdd())&&(g.iadd(T),s.isub($)),g.iushrn(1),s.iushrn(1);h.cmp(p)>=0?(h.isub(p),w.isub(g),x.isub(s)):(p.isub(h),g.isub(w),s.isub(x))}return{a:g,b:s,gcd:p.iushln(v)}},n.prototype._invmp=function(l){i(l.negative===0),i(!l.isZero());var h=this,p=l.clone();h.negative!==0?h=h.umod(l):h=h.clone();for(var w=new n(1),x=new n(0),g=p.clone();h.cmpn(1)>0&&p.cmpn(1)>0;){for(var s=0,v=1;!(h.words[0]&v)&&s<26;++s,v<<=1);if(s>0)for(h.iushrn(s);s-- >0;)w.isOdd()&&w.iadd(g),w.iushrn(1);for(var T=0,$=1;!(p.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(p.iushrn(T);T-- >0;)x.isOdd()&&x.iadd(g),x.iushrn(1);h.cmp(p)>=0?(h.isub(p),w.isub(x)):(p.isub(h),x.isub(w))}var G;return h.cmpn(1)===0?G=w:G=x,G.cmpn(0)<0&&G.iadd(l),G},n.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var h=this.clone(),p=l.clone();h.negative=0,p.negative=0;for(var w=0;h.isEven()&&p.isEven();w++)h.iushrn(1),p.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;p.isEven();)p.iushrn(1);var x=h.cmp(p);if(x<0){var g=h;h=p,p=g}else if(x===0||p.cmpn(1)===0)break;h.isub(p)}while(!0);return p.iushln(w)},n.prototype.invm=function(l){return this.egcd(l).a.umod(l)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(l){return this.words[0]&l},n.prototype.bincn=function(l){i(typeof l=="number");var h=l%26,p=(l-h)/26,w=1<<h;if(this.length<=p)return this._expand(p+1),this.words[p]|=w,this;for(var x=w,g=p;x!==0&&g<this.length;g++){var s=this.words[g]|0;s+=x,x=s>>>26,s&=67108863,this.words[g]=s}return x!==0&&(this.words[g]=x,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(l){var h=l<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this._strip();var p;if(this.length>1)p=1;else{h&&(l=-l),i(l<=67108863,"Number is too big");var w=this.words[0]|0;p=w===l?0:w<l?-1:1}return this.negative!==0?-p|0:p},n.prototype.cmp=function(l){if(this.negative!==0&&l.negative===0)return-1;if(this.negative===0&&l.negative!==0)return 1;var h=this.ucmp(l);return this.negative!==0?-h|0:h},n.prototype.ucmp=function(l){if(this.length>l.length)return 1;if(this.length<l.length)return-1;for(var h=0,p=this.length-1;p>=0;p--){var w=this.words[p]|0,x=l.words[p]|0;if(w!==x){w<x?h=-1:w>x&&(h=1);break}}return h},n.prototype.gtn=function(l){return this.cmpn(l)===1},n.prototype.gt=function(l){return this.cmp(l)===1},n.prototype.gten=function(l){return this.cmpn(l)>=0},n.prototype.gte=function(l){return this.cmp(l)>=0},n.prototype.ltn=function(l){return this.cmpn(l)===-1},n.prototype.lt=function(l){return this.cmp(l)===-1},n.prototype.lten=function(l){return this.cmpn(l)<=0},n.prototype.lte=function(l){return this.cmp(l)<=0},n.prototype.eqn=function(l){return this.cmpn(l)===0},n.prototype.eq=function(l){return this.cmp(l)===0},n.red=function(l){return new _(l)},n.prototype.toRed=function(l){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),l.convertTo(this)._forceRed(l)},n.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(l){return this.red=l,this},n.prototype.forceRed=function(l){return i(!this.red,"Already a number in reduction context"),this._forceRed(l)},n.prototype.redAdd=function(l){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,l)},n.prototype.redIAdd=function(l){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,l)},n.prototype.redSub=function(l){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,l)},n.prototype.redISub=function(l){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,l)},n.prototype.redShl=function(l){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,l)},n.prototype.redMul=function(l){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.mul(this,l)},n.prototype.redIMul=function(l){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.imul(this,l)},n.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(l){return i(this.red&&!l.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,l)};var W={k256:null,p224:null,p192:null,p25519:null};function Y(f,l){this.name=f,this.p=new n(l,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Y.prototype._tmp=function(){var l=new n(null);return l.words=new Array(Math.ceil(this.n/13)),l},Y.prototype.ireduce=function(l){var h=l,p;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),p=h.bitLength();while(p>this.n);var w=p<this.n?-1:h.ucmp(this.p);return w===0?(h.words[0]=0,h.length=1):w>0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},Y.prototype.split=function(l,h){l.iushrn(this.n,0,h)},Y.prototype.imulK=function(l){return l.imul(this.k)};function ie(){Y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(ie,Y),ie.prototype.split=function(l,h){for(var p=4194303,w=Math.min(l.length,9),x=0;x<w;x++)h.words[x]=l.words[x];if(h.length=w,l.length<=9){l.words[0]=0,l.length=1;return}var g=l.words[9];for(h.words[h.length++]=g&p,x=10;x<l.length;x++){var s=l.words[x]|0;l.words[x-10]=(s&p)<<4|g>>>22,g=s}g>>>=22,l.words[x-10]=g,g===0&&l.length>10?l.length-=10:l.length-=9},ie.prototype.imulK=function(l){l.words[l.length]=0,l.words[l.length+1]=0,l.length+=2;for(var h=0,p=0;p<l.length;p++){var w=l.words[p]|0;h+=w*977,l.words[p]=h&67108863,h=w*64+(h/67108864|0)}return l.words[l.length-1]===0&&(l.length--,l.words[l.length-1]===0&&l.length--),l};function J(){Y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(J,Y);function V(){Y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(V,Y);function oe(){Y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(oe,Y),oe.prototype.imulK=function(l){for(var h=0,p=0;p<l.length;p++){var w=(l.words[p]|0)*19+h,x=w&67108863;w>>>=26,l.words[p]=x,h=w}return h!==0&&(l.words[l.length++]=h),l},n._prime=function(l){if(W[l])return W[l];var h;if(l==="k256")h=new ie;else if(l==="p224")h=new J;else if(l==="p192")h=new V;else if(l==="p25519")h=new oe;else throw new Error("Unknown prime "+l);return W[l]=h,h};function _(f){if(typeof f=="string"){var l=n._prime(f);this.m=l.p,this.prime=l}else i(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}_.prototype._verify1=function(l){i(l.negative===0,"red works only with positives"),i(l.red,"red works only with red numbers")},_.prototype._verify2=function(l,h){i((l.negative|h.negative)===0,"red works only with positives"),i(l.red&&l.red===h.red,"red works only with red numbers")},_.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):(M(l,l.umod(this.m)._forceRed(this)),l)},_.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)},_.prototype.add=function(l,h){this._verify2(l,h);var p=l.add(h);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},_.prototype.iadd=function(l,h){this._verify2(l,h);var p=l.iadd(h);return p.cmp(this.m)>=0&&p.isub(this.m),p},_.prototype.sub=function(l,h){this._verify2(l,h);var p=l.sub(h);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},_.prototype.isub=function(l,h){this._verify2(l,h);var p=l.isub(h);return p.cmpn(0)<0&&p.iadd(this.m),p},_.prototype.shl=function(l,h){return this._verify1(l),this.imod(l.ushln(h))},_.prototype.imul=function(l,h){return this._verify2(l,h),this.imod(l.imul(h))},_.prototype.mul=function(l,h){return this._verify2(l,h),this.imod(l.mul(h))},_.prototype.isqr=function(l){return this.imul(l,l.clone())},_.prototype.sqr=function(l){return this.mul(l,l)},_.prototype.sqrt=function(l){if(l.isZero())return l.clone();var h=this.m.andln(3);if(i(h%2===1),h===3){var p=this.m.add(new n(1)).iushrn(2);return this.pow(l,p)}for(var w=this.m.subn(1),x=0;!w.isZero()&&w.andln(1)===0;)x++,w.iushrn(1);i(!w.isZero());var g=new n(1).toRed(this),s=g.redNeg(),v=this.m.subn(1).iushrn(1),T=this.m.bitLength();for(T=new n(2*T*T).toRed(this);this.pow(T,v).cmp(s)!==0;)T.redIAdd(s);for(var $=this.pow(T,w),G=this.pow(l,w.addn(1).iushrn(1)),ee=this.pow(l,w),A=x;ee.cmp(g)!==0;){for(var E=ee,U=0;E.cmp(g)!==0;U++)E=E.redSqr();i(U<A);var K=this.pow($,new n(1).iushln(A-U-1));G=G.redMul(K),$=K.redSqr(),ee=ee.redMul($),A=U}return G},_.prototype.invm=function(l){var h=l._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},_.prototype.pow=function(l,h){if(h.isZero())return new n(1).toRed(this);if(h.cmpn(1)===0)return l.clone();var p=4,w=new Array(1<<p);w[0]=new n(1).toRed(this),w[1]=l;for(var x=2;x<w.length;x++)w[x]=this.mul(w[x-1],l);var g=w[0],s=0,v=0,T=h.bitLength()%26;for(T===0&&(T=26),x=h.length-1;x>=0;x--){for(var $=h.words[x],G=T-1;G>=0;G--){var ee=$>>G&1;if(g!==w[0]&&(g=this.sqr(g)),ee===0&&s===0){v=0;continue}s<<=1,s|=ee,v++,!(v!==p&&(x!==0||G!==0))&&(g=this.mul(g,w[s]),v=0,s=0)}T=26}return g},_.prototype.convertTo=function(l){var h=l.umod(this.m);return h===l?h.clone():h},_.prototype.convertFrom=function(l){var h=l.clone();return h.red=null,h},n.mont=function(l){return new o(l)};function o(f){_.call(this,f),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(o,_),o.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))},o.prototype.convertFrom=function(l){var h=this.imod(l.mul(this.rinv));return h.red=null,h},o.prototype.imul=function(l,h){if(l.isZero()||h.isZero())return l.words[0]=0,l.length=1,l;var p=l.imul(h),w=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(w).iushrn(this.shift),g=x;return x.cmp(this.m)>=0?g=x.isub(this.m):x.cmpn(0)<0&&(g=x.iadd(this.m)),g._forceRed(this)},o.prototype.mul=function(l,h){if(l.isZero()||h.isZero())return new n(0)._forceRed(this);var p=l.mul(h),w=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(w).iushrn(this.shift),g=x;return x.cmp(this.m)>=0?g=x.isub(this.m):x.cmpn(0)<0&&(g=x.iadd(this.m)),g._forceRed(this)},o.prototype.invm=function(l){var h=this.imod(l._invmp(this.m).mul(this.r2));return h._forceRed(this)}})(e,Ye)})(Cg);var Bg=Cg.exports,is=Bg,VH=Ds;function zH(e){var t=Lx(e),r=t.toRed(is.mont(e.modulus)).redPow(new is(e.publicExponent)).fromRed();return{blinder:r,unblinder:t.invm(e.modulus)}}function Lx(e){var t=e.modulus.byteLength(),r;do r=new is(VH(t));while(r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2));return r}function Nx(e,t){var r=zH(t),i=t.modulus.byteLength(),a=new is(e).mul(r.blinder).umod(t.modulus),n=a.toRed(is.mont(t.prime1)),u=a.toRed(is.mont(t.prime2)),c=t.coefficient,d=t.prime1,m=t.prime2,M=n.redPow(t.exponent1).fromRed(),S=u.redPow(t.exponent2).fromRed(),R=M.isub(S).imul(c).umod(d).imul(m);return S.iadd(R).imul(r.unblinder).umod(t.modulus).toArrayLike(ke.Buffer,"be",i)}Nx.getr=Lx;var Lg=Nx,b0={};const GH="elliptic",YH="6.5.4",ZH="EC cryptography",XH="lib/elliptic.js",JH=["lib"],QH={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},eq={type:"git",url:"git@github.com:indutny/elliptic"},tq=["EC","Elliptic","curve","Cryptography"],rq="Fedor Indutny <fedor@indutny.com>",iq="MIT",nq={url:"https://github.com/indutny/elliptic/issues"},oq="https://github.com/indutny/elliptic",aq={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},sq={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},fq={name:GH,version:YH,description:ZH,main:XH,files:JH,scripts:QH,repository:eq,keywords:tq,author:rq,license:iq,bugs:nq,homepage:oq,devDependencies:aq,dependencies:sq};var ri={},Ng={exports:{}};Ng.exports;(function(e){(function(t,r){function i(_,o){if(!_)throw new Error(o||"Assertion failed")}function a(_,o){_.super_=o;var f=function(){};f.prototype=o.prototype,_.prototype=new f,_.prototype.constructor=_}function n(_,o,f){if(n.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((o==="le"||o==="be")&&(f=o,o=10),this._init(_||0,o||10,f||"be"))}typeof t=="object"?t.exports=n:r.BN=n,n.BN=n,n.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=ke.Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,f){return o.cmp(f)>0?o:f},n.min=function(o,f){return o.cmp(f)<0?o:f},n.prototype._init=function(o,f,l){if(typeof o=="number")return this._initNumber(o,f,l);if(typeof o=="object")return this._initArray(o,f,l);f==="hex"&&(f=16),i(f===(f|0)&&f>=2&&f<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h<o.length&&(f===16?this._parseHex(o,h,l):(this._parseBase(o,f,h),l==="le"&&this._initArray(this.toArray(),f,l)))},n.prototype._initNumber=function(o,f,l){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(i(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),f,l)},n.prototype._initArray=function(o,f,l){if(i(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p,w,x=0;if(l==="be")for(h=o.length-1,p=0;h>=0;h-=3)w=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);else if(l==="le")for(h=0,p=0;h<o.length;h+=3)w=o[h]|o[h+1]<<8|o[h+2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);return this.strip()};function c(_,o){var f=_.charCodeAt(o);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function d(_,o,f){var l=c(_,f);return f-1>=o&&(l|=c(_,f-1)<<4),l}n.prototype._parseHex=function(o,f,l){this.length=Math.ceil((o.length-f)/6),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p=0,w=0,x;if(l==="be")for(h=o.length-1;h>=f;h-=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8;else{var g=o.length-f;for(h=g%2===0?f+1:f;h<o.length;h+=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8}this.strip()};function m(_,o,f,l){for(var h=0,p=Math.min(_.length,f),w=o;w<p;w++){var x=_.charCodeAt(w)-48;h*=l,x>=49?h+=x-49+10:x>=17?h+=x-17+10:h+=x}return h}n.prototype._parseBase=function(o,f,l){this.words=[0],this.length=1;for(var h=0,p=1;p<=67108863;p*=f)h++;h--,p=p/f|0;for(var w=o.length-l,x=w%h,g=Math.min(w,w-x)+l,s=0,v=l;v<g;v+=h)s=m(o,v,v+h,f),this.imuln(p),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(x!==0){var T=1;for(s=m(o,v,o.length,f),v=0;v<x;v++)T*=f;this.imuln(T),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},n.prototype.copy=function(o){o.words=new Array(this.length);for(var f=0;f<this.length;f++)o.words[f]=this.words[f];o.length=this.length,o.negative=this.negative,o.red=this.red},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],R=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,f){o=o||10,f=f|0||1;var l;if(o===16||o==="hex"){l="";for(var h=0,p=0,w=0;w<this.length;w++){var x=this.words[w],g=((x<<h|p)&16777215).toString(16);p=x>>>24-h&16777215,p!==0||w!==this.length-1?l=M[6-g.length]+g+l:l=g+l,h+=2,h>=26&&(h-=26,w--)}for(p!==0&&(l=p.toString(16)+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(o===(o|0)&&o>=2&&o<=36){var s=S[o],v=R[o];l="";var T=this.clone();for(T.negative=0;!T.isZero();){var $=T.modn(v).toString(o);T=T.idivn(v),T.isZero()?l=$+l:l=M[s-$.length]+$+l}for(this.isZero()&&(l="0"+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(o,f){return i(typeof u<"u"),this.toArrayLike(u,o,f)},n.prototype.toArray=function(o,f){return this.toArrayLike(Array,o,f)},n.prototype.toArrayLike=function(o,f,l){var h=this.byteLength(),p=l||Math.max(1,h);i(h<=p,"byte array longer than desired length"),i(p>0,"Requested array length <= 0"),this.strip();var w=f==="le",x=new o(p),g,s,v=this.clone();if(w){for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[s]=g;for(;s<p;s++)x[s]=0}else{for(s=0;s<p-h;s++)x[s]=0;for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[p-s-1]=g}return x},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var f=o,l=0;return f>=4096&&(l+=13,f>>>=13),f>=64&&(l+=7,f>>>=7),f>=8&&(l+=4,f>>>=4),f>=2&&(l+=2,f>>>=2),l+f},n.prototype._zeroBits=function(o){if(o===0)return 26;var f=o,l=0;return f&8191||(l+=13,f>>>=13),f&127||(l+=7,f>>>=7),f&15||(l+=4,f>>>=4),f&3||(l+=2,f>>>=2),f&1||l++,l},n.prototype.bitLength=function(){var o=this.words[this.length-1],f=this._countBits(o);return(this.length-1)*26+f};function C(_){for(var o=new Array(_.bitLength()),f=0;f<o.length;f++){var l=f/26|0,h=f%26;o[f]=(_.words[l]&1<<h)>>>h}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,f=0;f<this.length;f++){var l=this._zeroBits(this.words[f]);if(o+=l,l!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var f=0;f<o.length;f++)this.words[f]=this.words[f]|o.words[f];return this.strip()},n.prototype.ior=function(o){return i((this.negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},n.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},n.prototype.iuand=function(o){var f;this.length>o.length?f=o:f=this;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]&o.words[l];return this.length=f.length,this.strip()},n.prototype.iand=function(o){return i((this.negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},n.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},n.prototype.iuxor=function(o){var f,l;this.length>o.length?(f=this,l=o):(f=o,l=this);for(var h=0;h<l.length;h++)this.words[h]=f.words[h]^l.words[h];if(this!==f)for(;h<f.length;h++)this.words[h]=f.words[h];return this.length=f.length,this.strip()},n.prototype.ixor=function(o){return i((this.negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},n.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},n.prototype.inotn=function(o){i(typeof o=="number"&&o>=0);var f=Math.ceil(o/26)|0,l=o%26;this._expand(f),l>0&&f--;for(var h=0;h<f;h++)this.words[h]=~this.words[h]&67108863;return l>0&&(this.words[h]=~this.words[h]&67108863>>26-l),this.strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,f){i(typeof o=="number"&&o>=0);var l=o/26|0,h=o%26;return this._expand(l+1),f?this.words[l]=this.words[l]|1<<h:this.words[l]=this.words[l]&~(1<<h),this.strip()},n.prototype.iadd=function(o){var f;if(this.negative!==0&&o.negative===0)return this.negative=0,f=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,f=this.isub(o),o.negative=1,f._normSign();var l,h;this.length>o.length?(l=this,h=o):(l=o,h=this);for(var p=0,w=0;w<h.length;w++)f=(l.words[w]|0)+(h.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;for(;p!==0&&w<l.length;w++)f=(l.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;if(this.length=l.length,p!==0)this.words[this.length]=p,this.length++;else if(l!==this)for(;w<l.length;w++)this.words[w]=l.words[w];return this},n.prototype.add=function(o){var f;return o.negative!==0&&this.negative===0?(o.negative=0,f=this.sub(o),o.negative^=1,f):o.negative===0&&this.negative!==0?(this.negative=0,f=o.sub(this),this.negative=1,f):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var f=this.iadd(o);return o.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var l=this.cmp(o);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,p;l>0?(h=this,p=o):(h=o,p=this);for(var w=0,x=0;x<p.length;x++)f=(h.words[x]|0)-(p.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;for(;w!==0&&x<h.length;x++)f=(h.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;if(w===0&&x<h.length&&h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this.length=Math.max(this.length,x),h!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function P(_,o,f){f.negative=o.negative^_.negative;var l=_.length+o.length|0;f.length=l,l=l-1|0;var h=_.words[0]|0,p=o.words[0]|0,w=h*p,x=w&67108863,g=w/67108864|0;f.words[0]=x;for(var s=1;s<l;s++){for(var v=g>>>26,T=g&67108863,$=Math.min(s,o.length-1),G=Math.max(0,s-_.length+1);G<=$;G++){var ee=s-G|0;h=_.words[ee]|0,p=o.words[G]|0,w=h*p+T,v+=w/67108864|0,T=w&67108863}f.words[s]=T|0,g=v|0}return g!==0?f.words[s]=g|0:f.length--,f.strip()}var k=function(o,f,l){var h=o.words,p=f.words,w=l.words,x=0,g,s,v,T=h[0]|0,$=T&8191,G=T>>>13,ee=h[1]|0,A=ee&8191,E=ee>>>13,U=h[2]|0,K=U&8191,Z=U>>>13,b=h[3]|0,y=b&8191,O=b>>>13,q=h[4]|0,X=q&8191,D=q>>>13,N=h[5]|0,j=N&8191,z=N>>>13,se=h[6]|0,te=se&8191,ne=se>>>13,Ee=h[7]|0,Q=Ee&8191,ue=Ee>>>13,le=h[8]|0,ce=le&8191,pe=le>>>13,de=h[9]|0,ae=de&8191,fe=de>>>13,Te=p[0]|0,ve=Te&8191,Me=Te>>>13,Ke=p[1]|0,be=Ke&8191,Se=Ke>>>13,qe=p[2]|0,ye=qe&8191,_e=qe>>>13,Ve=p[3]|0,ge=Ve&8191,xe=Ve>>>13,Xe=p[4]|0,Re=Xe&8191,Le=Xe>>>13,at=p[5]|0,Ae=at&8191,Ne=at>>>13,rt=p[6]|0,Oe=rt&8191,De=rt>>>13,nt=p[7]|0,Ie=nt&8191,$e=nt>>>13,st=p[8]|0,Pe=st&8191,je=st>>>13,ht=p[9]|0,Ce=ht&8191,Fe=ht>>>13;l.negative=o.negative^f.negative,l.length=19,g=Math.imul($,ve),s=Math.imul($,Me),s=s+Math.imul(G,ve)|0,v=Math.imul(G,Me);var it=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(it>>>26)|0,it&=67108863,g=Math.imul(A,ve),s=Math.imul(A,Me),s=s+Math.imul(E,ve)|0,v=Math.imul(E,Me),g=g+Math.imul($,be)|0,s=s+Math.imul($,Se)|0,s=s+Math.imul(G,be)|0,v=v+Math.imul(G,Se)|0;var et=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(et>>>26)|0,et&=67108863,g=Math.imul(K,ve),s=Math.imul(K,Me),s=s+Math.imul(Z,ve)|0,v=Math.imul(Z,Me),g=g+Math.imul(A,be)|0,s=s+Math.imul(A,Se)|0,s=s+Math.imul(E,be)|0,v=v+Math.imul(E,Se)|0,g=g+Math.imul($,ye)|0,s=s+Math.imul($,_e)|0,s=s+Math.imul(G,ye)|0,v=v+Math.imul(G,_e)|0;var xt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(xt>>>26)|0,xt&=67108863,g=Math.imul(y,ve),s=Math.imul(y,Me),s=s+Math.imul(O,ve)|0,v=Math.imul(O,Me),g=g+Math.imul(K,be)|0,s=s+Math.imul(K,Se)|0,s=s+Math.imul(Z,be)|0,v=v+Math.imul(Z,Se)|0,g=g+Math.imul(A,ye)|0,s=s+Math.imul(A,_e)|0,s=s+Math.imul(E,ye)|0,v=v+Math.imul(E,_e)|0,g=g+Math.imul($,ge)|0,s=s+Math.imul($,xe)|0,s=s+Math.imul(G,ge)|0,v=v+Math.imul(G,xe)|0;var Tt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,g=Math.imul(X,ve),s=Math.imul(X,Me),s=s+Math.imul(D,ve)|0,v=Math.imul(D,Me),g=g+Math.imul(y,be)|0,s=s+Math.imul(y,Se)|0,s=s+Math.imul(O,be)|0,v=v+Math.imul(O,Se)|0,g=g+Math.imul(K,ye)|0,s=s+Math.imul(K,_e)|0,s=s+Math.imul(Z,ye)|0,v=v+Math.imul(Z,_e)|0,g=g+Math.imul(A,ge)|0,s=s+Math.imul(A,xe)|0,s=s+Math.imul(E,ge)|0,v=v+Math.imul(E,xe)|0,g=g+Math.imul($,Re)|0,s=s+Math.imul($,Le)|0,s=s+Math.imul(G,Re)|0,v=v+Math.imul(G,Le)|0;var Ot=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,g=Math.imul(j,ve),s=Math.imul(j,Me),s=s+Math.imul(z,ve)|0,v=Math.imul(z,Me),g=g+Math.imul(X,be)|0,s=s+Math.imul(X,Se)|0,s=s+Math.imul(D,be)|0,v=v+Math.imul(D,Se)|0,g=g+Math.imul(y,ye)|0,s=s+Math.imul(y,_e)|0,s=s+Math.imul(O,ye)|0,v=v+Math.imul(O,_e)|0,g=g+Math.imul(K,ge)|0,s=s+Math.imul(K,xe)|0,s=s+Math.imul(Z,ge)|0,v=v+Math.imul(Z,xe)|0,g=g+Math.imul(A,Re)|0,s=s+Math.imul(A,Le)|0,s=s+Math.imul(E,Re)|0,v=v+Math.imul(E,Le)|0,g=g+Math.imul($,Ae)|0,s=s+Math.imul($,Ne)|0,s=s+Math.imul(G,Ae)|0,v=v+Math.imul(G,Ne)|0;var Ct=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,g=Math.imul(te,ve),s=Math.imul(te,Me),s=s+Math.imul(ne,ve)|0,v=Math.imul(ne,Me),g=g+Math.imul(j,be)|0,s=s+Math.imul(j,Se)|0,s=s+Math.imul(z,be)|0,v=v+Math.imul(z,Se)|0,g=g+Math.imul(X,ye)|0,s=s+Math.imul(X,_e)|0,s=s+Math.imul(D,ye)|0,v=v+Math.imul(D,_e)|0,g=g+Math.imul(y,ge)|0,s=s+Math.imul(y,xe)|0,s=s+Math.imul(O,ge)|0,v=v+Math.imul(O,xe)|0,g=g+Math.imul(K,Re)|0,s=s+Math.imul(K,Le)|0,s=s+Math.imul(Z,Re)|0,v=v+Math.imul(Z,Le)|0,g=g+Math.imul(A,Ae)|0,s=s+Math.imul(A,Ne)|0,s=s+Math.imul(E,Ae)|0,v=v+Math.imul(E,Ne)|0,g=g+Math.imul($,Oe)|0,s=s+Math.imul($,De)|0,s=s+Math.imul(G,Oe)|0,v=v+Math.imul(G,De)|0;var kt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(kt>>>26)|0,kt&=67108863,g=Math.imul(Q,ve),s=Math.imul(Q,Me),s=s+Math.imul(ue,ve)|0,v=Math.imul(ue,Me),g=g+Math.imul(te,be)|0,s=s+Math.imul(te,Se)|0,s=s+Math.imul(ne,be)|0,v=v+Math.imul(ne,Se)|0,g=g+Math.imul(j,ye)|0,s=s+Math.imul(j,_e)|0,s=s+Math.imul(z,ye)|0,v=v+Math.imul(z,_e)|0,g=g+Math.imul(X,ge)|0,s=s+Math.imul(X,xe)|0,s=s+Math.imul(D,ge)|0,v=v+Math.imul(D,xe)|0,g=g+Math.imul(y,Re)|0,s=s+Math.imul(y,Le)|0,s=s+Math.imul(O,Re)|0,v=v+Math.imul(O,Le)|0,g=g+Math.imul(K,Ae)|0,s=s+Math.imul(K,Ne)|0,s=s+Math.imul(Z,Ae)|0,v=v+Math.imul(Z,Ne)|0,g=g+Math.imul(A,Oe)|0,s=s+Math.imul(A,De)|0,s=s+Math.imul(E,Oe)|0,v=v+Math.imul(E,De)|0,g=g+Math.imul($,Ie)|0,s=s+Math.imul($,$e)|0,s=s+Math.imul(G,Ie)|0,v=v+Math.imul(G,$e)|0;var Ut=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,g=Math.imul(ce,ve),s=Math.imul(ce,Me),s=s+Math.imul(pe,ve)|0,v=Math.imul(pe,Me),g=g+Math.imul(Q,be)|0,s=s+Math.imul(Q,Se)|0,s=s+Math.imul(ue,be)|0,v=v+Math.imul(ue,Se)|0,g=g+Math.imul(te,ye)|0,s=s+Math.imul(te,_e)|0,s=s+Math.imul(ne,ye)|0,v=v+Math.imul(ne,_e)|0,g=g+Math.imul(j,ge)|0,s=s+Math.imul(j,xe)|0,s=s+Math.imul(z,ge)|0,v=v+Math.imul(z,xe)|0,g=g+Math.imul(X,Re)|0,s=s+Math.imul(X,Le)|0,s=s+Math.imul(D,Re)|0,v=v+Math.imul(D,Le)|0,g=g+Math.imul(y,Ae)|0,s=s+Math.imul(y,Ne)|0,s=s+Math.imul(O,Ae)|0,v=v+Math.imul(O,Ne)|0,g=g+Math.imul(K,Oe)|0,s=s+Math.imul(K,De)|0,s=s+Math.imul(Z,Oe)|0,v=v+Math.imul(Z,De)|0,g=g+Math.imul(A,Ie)|0,s=s+Math.imul(A,$e)|0,s=s+Math.imul(E,Ie)|0,v=v+Math.imul(E,$e)|0,g=g+Math.imul($,Pe)|0,s=s+Math.imul($,je)|0,s=s+Math.imul(G,Pe)|0,v=v+Math.imul(G,je)|0;var Ht=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,g=Math.imul(ae,ve),s=Math.imul(ae,Me),s=s+Math.imul(fe,ve)|0,v=Math.imul(fe,Me),g=g+Math.imul(ce,be)|0,s=s+Math.imul(ce,Se)|0,s=s+Math.imul(pe,be)|0,v=v+Math.imul(pe,Se)|0,g=g+Math.imul(Q,ye)|0,s=s+Math.imul(Q,_e)|0,s=s+Math.imul(ue,ye)|0,v=v+Math.imul(ue,_e)|0,g=g+Math.imul(te,ge)|0,s=s+Math.imul(te,xe)|0,s=s+Math.imul(ne,ge)|0,v=v+Math.imul(ne,xe)|0,g=g+Math.imul(j,Re)|0,s=s+Math.imul(j,Le)|0,s=s+Math.imul(z,Re)|0,v=v+Math.imul(z,Le)|0,g=g+Math.imul(X,Ae)|0,s=s+Math.imul(X,Ne)|0,s=s+Math.imul(D,Ae)|0,v=v+Math.imul(D,Ne)|0,g=g+Math.imul(y,Oe)|0,s=s+Math.imul(y,De)|0,s=s+Math.imul(O,Oe)|0,v=v+Math.imul(O,De)|0,g=g+Math.imul(K,Ie)|0,s=s+Math.imul(K,$e)|0,s=s+Math.imul(Z,Ie)|0,v=v+Math.imul(Z,$e)|0,g=g+Math.imul(A,Pe)|0,s=s+Math.imul(A,je)|0,s=s+Math.imul(E,Pe)|0,v=v+Math.imul(E,je)|0,g=g+Math.imul($,Ce)|0,s=s+Math.imul($,Fe)|0,s=s+Math.imul(G,Ce)|0,v=v+Math.imul(G,Fe)|0;var Bt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,g=Math.imul(ae,be),s=Math.imul(ae,Se),s=s+Math.imul(fe,be)|0,v=Math.imul(fe,Se),g=g+Math.imul(ce,ye)|0,s=s+Math.imul(ce,_e)|0,s=s+Math.imul(pe,ye)|0,v=v+Math.imul(pe,_e)|0,g=g+Math.imul(Q,ge)|0,s=s+Math.imul(Q,xe)|0,s=s+Math.imul(ue,ge)|0,v=v+Math.imul(ue,xe)|0,g=g+Math.imul(te,Re)|0,s=s+Math.imul(te,Le)|0,s=s+Math.imul(ne,Re)|0,v=v+Math.imul(ne,Le)|0,g=g+Math.imul(j,Ae)|0,s=s+Math.imul(j,Ne)|0,s=s+Math.imul(z,Ae)|0,v=v+Math.imul(z,Ne)|0,g=g+Math.imul(X,Oe)|0,s=s+Math.imul(X,De)|0,s=s+Math.imul(D,Oe)|0,v=v+Math.imul(D,De)|0,g=g+Math.imul(y,Ie)|0,s=s+Math.imul(y,$e)|0,s=s+Math.imul(O,Ie)|0,v=v+Math.imul(O,$e)|0,g=g+Math.imul(K,Pe)|0,s=s+Math.imul(K,je)|0,s=s+Math.imul(Z,Pe)|0,v=v+Math.imul(Z,je)|0,g=g+Math.imul(A,Ce)|0,s=s+Math.imul(A,Fe)|0,s=s+Math.imul(E,Ce)|0,v=v+Math.imul(E,Fe)|0;var dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(dt>>>26)|0,dt&=67108863,g=Math.imul(ae,ye),s=Math.imul(ae,_e),s=s+Math.imul(fe,ye)|0,v=Math.imul(fe,_e),g=g+Math.imul(ce,ge)|0,s=s+Math.imul(ce,xe)|0,s=s+Math.imul(pe,ge)|0,v=v+Math.imul(pe,xe)|0,g=g+Math.imul(Q,Re)|0,s=s+Math.imul(Q,Le)|0,s=s+Math.imul(ue,Re)|0,v=v+Math.imul(ue,Le)|0,g=g+Math.imul(te,Ae)|0,s=s+Math.imul(te,Ne)|0,s=s+Math.imul(ne,Ae)|0,v=v+Math.imul(ne,Ne)|0,g=g+Math.imul(j,Oe)|0,s=s+Math.imul(j,De)|0,s=s+Math.imul(z,Oe)|0,v=v+Math.imul(z,De)|0,g=g+Math.imul(X,Ie)|0,s=s+Math.imul(X,$e)|0,s=s+Math.imul(D,Ie)|0,v=v+Math.imul(D,$e)|0,g=g+Math.imul(y,Pe)|0,s=s+Math.imul(y,je)|0,s=s+Math.imul(O,Pe)|0,v=v+Math.imul(O,je)|0,g=g+Math.imul(K,Ce)|0,s=s+Math.imul(K,Fe)|0,s=s+Math.imul(Z,Ce)|0,v=v+Math.imul(Z,Fe)|0;var At=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(At>>>26)|0,At&=67108863,g=Math.imul(ae,ge),s=Math.imul(ae,xe),s=s+Math.imul(fe,ge)|0,v=Math.imul(fe,xe),g=g+Math.imul(ce,Re)|0,s=s+Math.imul(ce,Le)|0,s=s+Math.imul(pe,Re)|0,v=v+Math.imul(pe,Le)|0,g=g+Math.imul(Q,Ae)|0,s=s+Math.imul(Q,Ne)|0,s=s+Math.imul(ue,Ae)|0,v=v+Math.imul(ue,Ne)|0,g=g+Math.imul(te,Oe)|0,s=s+Math.imul(te,De)|0,s=s+Math.imul(ne,Oe)|0,v=v+Math.imul(ne,De)|0,g=g+Math.imul(j,Ie)|0,s=s+Math.imul(j,$e)|0,s=s+Math.imul(z,Ie)|0,v=v+Math.imul(z,$e)|0,g=g+Math.imul(X,Pe)|0,s=s+Math.imul(X,je)|0,s=s+Math.imul(D,Pe)|0,v=v+Math.imul(D,je)|0,g=g+Math.imul(y,Ce)|0,s=s+Math.imul(y,Fe)|0,s=s+Math.imul(O,Ce)|0,v=v+Math.imul(O,Fe)|0;var _t=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(_t>>>26)|0,_t&=67108863,g=Math.imul(ae,Re),s=Math.imul(ae,Le),s=s+Math.imul(fe,Re)|0,v=Math.imul(fe,Le),g=g+Math.imul(ce,Ae)|0,s=s+Math.imul(ce,Ne)|0,s=s+Math.imul(pe,Ae)|0,v=v+Math.imul(pe,Ne)|0,g=g+Math.imul(Q,Oe)|0,s=s+Math.imul(Q,De)|0,s=s+Math.imul(ue,Oe)|0,v=v+Math.imul(ue,De)|0,g=g+Math.imul(te,Ie)|0,s=s+Math.imul(te,$e)|0,s=s+Math.imul(ne,Ie)|0,v=v+Math.imul(ne,$e)|0,g=g+Math.imul(j,Pe)|0,s=s+Math.imul(j,je)|0,s=s+Math.imul(z,Pe)|0,v=v+Math.imul(z,je)|0,g=g+Math.imul(X,Ce)|0,s=s+Math.imul(X,Fe)|0,s=s+Math.imul(D,Ce)|0,v=v+Math.imul(D,Fe)|0;var mt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(mt>>>26)|0,mt&=67108863,g=Math.imul(ae,Ae),s=Math.imul(ae,Ne),s=s+Math.imul(fe,Ae)|0,v=Math.imul(fe,Ne),g=g+Math.imul(ce,Oe)|0,s=s+Math.imul(ce,De)|0,s=s+Math.imul(pe,Oe)|0,v=v+Math.imul(pe,De)|0,g=g+Math.imul(Q,Ie)|0,s=s+Math.imul(Q,$e)|0,s=s+Math.imul(ue,Ie)|0,v=v+Math.imul(ue,$e)|0,g=g+Math.imul(te,Pe)|0,s=s+Math.imul(te,je)|0,s=s+Math.imul(ne,Pe)|0,v=v+Math.imul(ne,je)|0,g=g+Math.imul(j,Ce)|0,s=s+Math.imul(j,Fe)|0,s=s+Math.imul(z,Ce)|0,v=v+Math.imul(z,Fe)|0;var It=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(It>>>26)|0,It&=67108863,g=Math.imul(ae,Oe),s=Math.imul(ae,De),s=s+Math.imul(fe,Oe)|0,v=Math.imul(fe,De),g=g+Math.imul(ce,Ie)|0,s=s+Math.imul(ce,$e)|0,s=s+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,$e)|0,g=g+Math.imul(Q,Pe)|0,s=s+Math.imul(Q,je)|0,s=s+Math.imul(ue,Pe)|0,v=v+Math.imul(ue,je)|0,g=g+Math.imul(te,Ce)|0,s=s+Math.imul(te,Fe)|0,s=s+Math.imul(ne,Ce)|0,v=v+Math.imul(ne,Fe)|0;var vt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(vt>>>26)|0,vt&=67108863,g=Math.imul(ae,Ie),s=Math.imul(ae,$e),s=s+Math.imul(fe,Ie)|0,v=Math.imul(fe,$e),g=g+Math.imul(ce,Pe)|0,s=s+Math.imul(ce,je)|0,s=s+Math.imul(pe,Pe)|0,v=v+Math.imul(pe,je)|0,g=g+Math.imul(Q,Ce)|0,s=s+Math.imul(Q,Fe)|0,s=s+Math.imul(ue,Ce)|0,v=v+Math.imul(ue,Fe)|0;var yt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(yt>>>26)|0,yt&=67108863,g=Math.imul(ae,Pe),s=Math.imul(ae,je),s=s+Math.imul(fe,Pe)|0,v=Math.imul(fe,je),g=g+Math.imul(ce,Ce)|0,s=s+Math.imul(ce,Fe)|0,s=s+Math.imul(pe,Ce)|0,v=v+Math.imul(pe,Fe)|0;var Dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,g=Math.imul(ae,Ce),s=Math.imul(ae,Fe),s=s+Math.imul(fe,Ce)|0,v=Math.imul(fe,Fe);var Ft=(x+g|0)+((s&8191)<<13)|0;return x=(v+(s>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,w[0]=it,w[1]=et,w[2]=xt,w[3]=Tt,w[4]=Ot,w[5]=Ct,w[6]=kt,w[7]=Ut,w[8]=Ht,w[9]=Bt,w[10]=dt,w[11]=At,w[12]=_t,w[13]=mt,w[14]=It,w[15]=vt,w[16]=yt,w[17]=Dt,w[18]=Ft,x!==0&&(w[19]=x,l.length++),l};Math.imul||(k=P);function L(_,o,f){f.negative=o.negative^_.negative,f.length=_.length+o.length;for(var l=0,h=0,p=0;p<f.length-1;p++){var w=h;h=0;for(var x=l&67108863,g=Math.min(p,o.length-1),s=Math.max(0,p-_.length+1);s<=g;s++){var v=p-s,T=_.words[v]|0,$=o.words[s]|0,G=T*$,ee=G&67108863;w=w+(G/67108864|0)|0,ee=ee+x|0,x=ee&67108863,w=w+(ee>>>26)|0,h+=w>>>26,w&=67108863}f.words[p]=x,l=w,w=h}return l!==0?f.words[p]=l:f.length--,f.strip()}function I(_,o,f){var l=new B;return l.mulp(_,o,f)}n.prototype.mulTo=function(o,f){var l,h=this.length+o.length;return this.length===10&&o.length===10?l=k(this,o,f):h<63?l=P(this,o,f):h<1024?l=L(this,o,f):l=I(this,o,f),l};function B(_,o){this.x=_,this.y=o}B.prototype.makeRBT=function(o){for(var f=new Array(o),l=n.prototype._countBits(o)-1,h=0;h<o;h++)f[h]=this.revBin(h,l,o);return f},B.prototype.revBin=function(o,f,l){if(o===0||o===l-1)return o;for(var h=0,p=0;p<f;p++)h|=(o&1)<<f-p-1,o>>=1;return h},B.prototype.permute=function(o,f,l,h,p,w){for(var x=0;x<w;x++)h[x]=f[o[x]],p[x]=l[o[x]]},B.prototype.transform=function(o,f,l,h,p,w){this.permute(w,o,f,l,h,p);for(var x=1;x<p;x<<=1)for(var g=x<<1,s=Math.cos(2*Math.PI/g),v=Math.sin(2*Math.PI/g),T=0;T<p;T+=g)for(var $=s,G=v,ee=0;ee<x;ee++){var A=l[T+ee],E=h[T+ee],U=l[T+ee+x],K=h[T+ee+x],Z=$*U-G*K;K=$*K+G*U,U=Z,l[T+ee]=A+U,h[T+ee]=E+K,l[T+ee+x]=A-U,h[T+ee+x]=E-K,ee!==g&&(Z=s*$-v*G,G=s*G+v*$,$=Z)}},B.prototype.guessLen13b=function(o,f){var l=Math.max(f,o)|1,h=l&1,p=0;for(l=l/2|0;l;l=l>>>1)p++;return 1<<p+1+h},B.prototype.conjugate=function(o,f,l){if(!(l<=1))for(var h=0;h<l/2;h++){var p=o[h];o[h]=o[l-h-1],o[l-h-1]=p,p=f[h],f[h]=-f[l-h-1],f[l-h-1]=-p}},B.prototype.normalize13b=function(o,f){for(var l=0,h=0;h<f/2;h++){var p=Math.round(o[2*h+1]/f)*8192+Math.round(o[2*h]/f)+l;o[h]=p&67108863,p<67108864?l=0:l=p/67108864|0}return o},B.prototype.convert13b=function(o,f,l,h){for(var p=0,w=0;w<f;w++)p=p+(o[w]|0),l[2*w]=p&8191,p=p>>>13,l[2*w+1]=p&8191,p=p>>>13;for(w=2*f;w<h;++w)l[w]=0;i(p===0),i((p&-8192)===0)},B.prototype.stub=function(o){for(var f=new Array(o),l=0;l<o;l++)f[l]=0;return f},B.prototype.mulp=function(o,f,l){var h=2*this.guessLen13b(o.length,f.length),p=this.makeRBT(h),w=this.stub(h),x=new Array(h),g=new Array(h),s=new Array(h),v=new Array(h),T=new Array(h),$=new Array(h),G=l.words;G.length=h,this.convert13b(o.words,o.length,x,h),this.convert13b(f.words,f.length,v,h),this.transform(x,w,g,s,h,p),this.transform(v,w,T,$,h,p);for(var ee=0;ee<h;ee++){var A=g[ee]*T[ee]-s[ee]*$[ee];s[ee]=g[ee]*$[ee]+s[ee]*T[ee],g[ee]=A}return this.conjugate(g,s,h),this.transform(g,s,G,w,h,p),this.conjugate(G,w,h),this.normalize13b(G,h),l.negative=o.negative^f.negative,l.length=o.length+f.length,l.strip()},n.prototype.mul=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),this.mulTo(o,f)},n.prototype.mulf=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),I(this,o,f)},n.prototype.imul=function(o){return this.clone().mulTo(o,this)},n.prototype.imuln=function(o){i(typeof o=="number"),i(o<67108864);for(var f=0,l=0;l<this.length;l++){var h=(this.words[l]|0)*o,p=(h&67108863)+(f&67108863);f>>=26,f+=h/67108864|0,f+=p>>>26,this.words[l]=p&67108863}return f!==0&&(this.words[l]=f,this.length++),this},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var f=C(o);if(f.length===0)return new n(1);for(var l=this,h=0;h<f.length&&f[h]===0;h++,l=l.sqr());if(++h<f.length)for(var p=l.sqr();h<f.length;h++,p=p.sqr())f[h]!==0&&(l=l.mul(p));return l},n.prototype.iushln=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=67108863>>>26-f<<26-f,p;if(f!==0){var w=0;for(p=0;p<this.length;p++){var x=this.words[p]&h,g=(this.words[p]|0)-x<<f;this.words[p]=g|w,w=x>>>26-f}w&&(this.words[p]=w,this.length++)}if(l!==0){for(p=this.length-1;p>=0;p--)this.words[p+l]=this.words[p];for(p=0;p<l;p++)this.words[p]=0;this.length+=l}return this.strip()},n.prototype.ishln=function(o){return i(this.negative===0),this.iushln(o)},n.prototype.iushrn=function(o,f,l){i(typeof o=="number"&&o>=0);var h;f?h=(f-f%26)/26:h=0;var p=o%26,w=Math.min((o-p)/26,this.length),x=67108863^67108863>>>p<<p,g=l;if(h-=w,h=Math.max(0,h),g){for(var s=0;s<w;s++)g.words[s]=this.words[s];g.length=w}if(w!==0)if(this.length>w)for(this.length-=w,s=0;s<this.length;s++)this.words[s]=this.words[s+w];else this.words[0]=0,this.length=1;var v=0;for(s=this.length-1;s>=0&&(v!==0||s>=h);s--){var T=this.words[s]|0;this.words[s]=v<<26-p|T>>>p,v=T&x}return g&&v!==0&&(g.words[g.length++]=v),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(o,f,l){return i(this.negative===0),this.iushrn(o,f,l)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return!1;var p=this.words[l];return!!(p&h)},n.prototype.imaskn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(f!==0&&l++,this.length=Math.min(l,this.length),f!==0){var h=67108863^67108863>>>f<<f;this.words[this.length-1]&=h}return this.strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return i(typeof o=="number"),i(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},n.prototype._iaddn=function(o){this.words[0]+=o;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},n.prototype.isubn=function(o){if(i(typeof o=="number"),i(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,f,l){var h=o.length+l,p;this._expand(h);var w,x=0;for(p=0;p<o.length;p++){w=(this.words[p+l]|0)+x;var g=(o.words[p]|0)*f;w-=g&67108863,x=(w>>26)-(g/67108864|0),this.words[p+l]=w&67108863}for(;p<this.length-l;p++)w=(this.words[p+l]|0)+x,x=w>>26,this.words[p+l]=w&67108863;if(x===0)return this.strip();for(i(x===-1),x=0,p=0;p<this.length;p++)w=-(this.words[p]|0)+x,x=w>>26,this.words[p]=w&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(o,f){var l=this.length-o.length,h=this.clone(),p=o,w=p.words[p.length-1]|0,x=this._countBits(w);l=26-x,l!==0&&(p=p.ushln(l),h.iushln(l),w=p.words[p.length-1]|0);var g=h.length-p.length,s;if(f!=="mod"){s=new n(null),s.length=g+1,s.words=new Array(s.length);for(var v=0;v<s.length;v++)s.words[v]=0}var T=h.clone()._ishlnsubmul(p,1,g);T.negative===0&&(h=T,s&&(s.words[g]=1));for(var $=g-1;$>=0;$--){var G=(h.words[p.length+$]|0)*67108864+(h.words[p.length+$-1]|0);for(G=Math.min(G/w|0,67108863),h._ishlnsubmul(p,G,$);h.negative!==0;)G--,h.negative=0,h._ishlnsubmul(p,1,$),h.isZero()||(h.negative^=1);s&&(s.words[$]=G)}return s&&s.strip(),h.strip(),f!=="div"&&l!==0&&h.iushrn(l),{div:s||null,mod:h}},n.prototype.divmod=function(o,f,l){if(i(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,p,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,f),f!=="mod"&&(h=w.div.neg()),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.iadd(o)),{div:h,mod:p}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),f),f!=="mod"&&(h=w.div.neg()),{div:h,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),f),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.isub(o)),{div:w.div,mod:p}):o.length>this.length||this.cmp(o)<0?{div:new n(0),mod:this}:o.length===1?f==="div"?{div:this.divn(o.words[0]),mod:null}:f==="mod"?{div:null,mod:new n(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modn(o.words[0]))}:this._wordDiv(o,f)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var f=this.divmod(o);if(f.mod.isZero())return f.div;var l=f.div.negative!==0?f.mod.isub(o):f.mod,h=o.ushrn(1),p=o.andln(1),w=l.cmp(h);return w<0||p===1&&w===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},n.prototype.modn=function(o){i(o<=67108863);for(var f=(1<<26)%o,l=0,h=this.length-1;h>=0;h--)l=(f*l+(this.words[h]|0))%o;return l},n.prototype.idivn=function(o){i(o<=67108863);for(var f=0,l=this.length-1;l>=0;l--){var h=(this.words[l]|0)+f*67108864;this.words[l]=h/o|0,f=h%o}return this.strip()},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=new n(0),x=new n(1),g=0;f.isEven()&&l.isEven();)f.iushrn(1),l.iushrn(1),++g;for(var s=l.clone(),v=f.clone();!f.isZero();){for(var T=0,$=1;!(f.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(f.iushrn(T);T-- >0;)(h.isOdd()||p.isOdd())&&(h.iadd(s),p.isub(v)),h.iushrn(1),p.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(s),x.isub(v)),w.iushrn(1),x.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(w),p.isub(x)):(l.isub(f),w.isub(h),x.isub(p))}return{a:w,b:x,gcd:l.iushln(g)}},n.prototype._invmp=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=l.clone();f.cmpn(1)>0&&l.cmpn(1)>0;){for(var x=0,g=1;!(f.words[0]&g)&&x<26;++x,g<<=1);if(x>0)for(f.iushrn(x);x-- >0;)h.isOdd()&&h.iadd(w),h.iushrn(1);for(var s=0,v=1;!(l.words[0]&v)&&s<26;++s,v<<=1);if(s>0)for(l.iushrn(s);s-- >0;)p.isOdd()&&p.iadd(w),p.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(p)):(l.isub(f),p.isub(h))}var T;return f.cmpn(1)===0?T=h:T=p,T.cmpn(0)<0&&T.iadd(o),T},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var f=this.clone(),l=o.clone();f.negative=0,l.negative=0;for(var h=0;f.isEven()&&l.isEven();h++)f.iushrn(1),l.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;l.isEven();)l.iushrn(1);var p=f.cmp(l);if(p<0){var w=f;f=l,l=w}else if(p===0||l.cmpn(1)===0)break;f.isub(l)}while(!0);return l.iushln(h)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(o){return this.words[0]&o},n.prototype.bincn=function(o){i(typeof o=="number");var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return this._expand(l+1),this.words[l]|=h,this;for(var p=h,w=l;p!==0&&w<this.length;w++){var x=this.words[w]|0;x+=p,p=x>>>26,x&=67108863,this.words[w]=x}return p!==0&&(this.words[w]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(o){var f=o<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var l;if(this.length>1)l=1;else{f&&(o=-o),i(o<=67108863,"Number is too big");var h=this.words[0]|0;l=h===o?0:h<o?-1:1}return this.negative!==0?-l|0:l},n.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var f=this.ucmp(o);return this.negative!==0?-f|0:f},n.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var f=0,l=this.length-1;l>=0;l--){var h=this.words[l]|0,p=o.words[l]|0;if(h!==p){h<p?f=-1:h>p&&(f=1);break}}return f},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new V(o)},n.prototype.toRed=function(o){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},n.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(o){return this.red=o,this},n.prototype.forceRed=function(o){return i(!this.red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},n.prototype.redIAdd=function(o){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},n.prototype.redSub=function(o){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},n.prototype.redISub=function(o){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},n.prototype.redShl=function(o){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},n.prototype.redMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},n.prototype.redIMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},n.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(o){return i(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var H={k256:null,p224:null,p192:null,p25519:null};function F(_,o){this.name=_,this.p=new n(o,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil(this.n/13)),o},F.prototype.ireduce=function(o){var f=o,l;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),l=f.bitLength();while(l>this.n);var h=l<this.n?-1:f.ucmp(this.p);return h===0?(f.words[0]=0,f.length=1):h>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},F.prototype.split=function(o,f){o.iushrn(this.n,0,f)},F.prototype.imulK=function(o){return o.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(W,F),W.prototype.split=function(o,f){for(var l=4194303,h=Math.min(o.length,9),p=0;p<h;p++)f.words[p]=o.words[p];if(f.length=h,o.length<=9){o.words[0]=0,o.length=1;return}var w=o.words[9];for(f.words[f.length++]=w&l,p=10;p<o.length;p++){var x=o.words[p]|0;o.words[p-10]=(x&l)<<4|w>>>22,w=x}w>>>=22,o.words[p-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},W.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var f=0,l=0;l<o.length;l++){var h=o.words[l]|0;f+=h*977,o.words[l]=f&67108863,f=h*64+(f/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Y(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(Y,F);function ie(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(ie,F);function J(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(J,F),J.prototype.imulK=function(o){for(var f=0,l=0;l<o.length;l++){var h=(o.words[l]|0)*19+f,p=h&67108863;h>>>=26,o.words[l]=p,f=h}return f!==0&&(o.words[o.length++]=f),o},n._prime=function(o){if(H[o])return H[o];var f;if(o==="k256")f=new W;else if(o==="p224")f=new Y;else if(o==="p192")f=new ie;else if(o==="p25519")f=new J;else throw new Error("Unknown prime "+o);return H[o]=f,f};function V(_){if(typeof _=="string"){var o=n._prime(_);this.m=o.p,this.prime=o}else i(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}V.prototype._verify1=function(o){i(o.negative===0,"red works only with positives"),i(o.red,"red works only with red numbers")},V.prototype._verify2=function(o,f){i((o.negative|f.negative)===0,"red works only with positives"),i(o.red&&o.red===f.red,"red works only with red numbers")},V.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},V.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},V.prototype.add=function(o,f){this._verify2(o,f);var l=o.add(f);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},V.prototype.iadd=function(o,f){this._verify2(o,f);var l=o.iadd(f);return l.cmp(this.m)>=0&&l.isub(this.m),l},V.prototype.sub=function(o,f){this._verify2(o,f);var l=o.sub(f);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},V.prototype.isub=function(o,f){this._verify2(o,f);var l=o.isub(f);return l.cmpn(0)<0&&l.iadd(this.m),l},V.prototype.shl=function(o,f){return this._verify1(o),this.imod(o.ushln(f))},V.prototype.imul=function(o,f){return this._verify2(o,f),this.imod(o.imul(f))},V.prototype.mul=function(o,f){return this._verify2(o,f),this.imod(o.mul(f))},V.prototype.isqr=function(o){return this.imul(o,o.clone())},V.prototype.sqr=function(o){return this.mul(o,o)},V.prototype.sqrt=function(o){if(o.isZero())return o.clone();var f=this.m.andln(3);if(i(f%2===1),f===3){var l=this.m.add(new n(1)).iushrn(2);return this.pow(o,l)}for(var h=this.m.subn(1),p=0;!h.isZero()&&h.andln(1)===0;)p++,h.iushrn(1);i(!h.isZero());var w=new n(1).toRed(this),x=w.redNeg(),g=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new n(2*s*s).toRed(this);this.pow(s,g).cmp(x)!==0;)s.redIAdd(x);for(var v=this.pow(s,h),T=this.pow(o,h.addn(1).iushrn(1)),$=this.pow(o,h),G=p;$.cmp(w)!==0;){for(var ee=$,A=0;ee.cmp(w)!==0;A++)ee=ee.redSqr();i(A<G);var E=this.pow(v,new n(1).iushln(G-A-1));T=T.redMul(E),v=E.redSqr(),$=$.redMul(v),G=A}return T},V.prototype.invm=function(o){var f=o._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},V.prototype.pow=function(o,f){if(f.isZero())return new n(1).toRed(this);if(f.cmpn(1)===0)return o.clone();var l=4,h=new Array(1<<l);h[0]=new n(1).toRed(this),h[1]=o;for(var p=2;p<h.length;p++)h[p]=this.mul(h[p-1],o);var w=h[0],x=0,g=0,s=f.bitLength()%26;for(s===0&&(s=26),p=f.length-1;p>=0;p--){for(var v=f.words[p],T=s-1;T>=0;T--){var $=v>>T&1;if(w!==h[0]&&(w=this.sqr(w)),$===0&&x===0){g=0;continue}x<<=1,x|=$,g++,!(g!==l&&(p!==0||T!==0))&&(w=this.mul(w,h[x]),g=0,x=0)}s=26}return w},V.prototype.convertTo=function(o){var f=o.umod(this.m);return f===o?f.clone():f},V.prototype.convertFrom=function(o){var f=o.clone();return f.red=null,f},n.mont=function(o){return new oe(o)};function oe(_){V.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(oe,V),oe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},oe.prototype.convertFrom=function(o){var f=this.imod(o.mul(this.rinv));return f.red=null,f},oe.prototype.imul=function(o,f){if(o.isZero()||f.isZero())return o.words[0]=0,o.length=1,o;var l=o.imul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.mul=function(o,f){if(o.isZero()||f.isZero())return new n(0)._forceRed(this);var l=o.mul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.invm=function(o){var f=this.imod(o._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,Ye)})(Ng);var Yn=Ng.exports,kg={};(function(e){var t=e;function r(n,u){if(Array.isArray(n))return n.slice();if(!n)return[];var c=[];if(typeof n!="string"){for(var d=0;d<n.length;d++)c[d]=n[d]|0;return c}if(u==="hex"){n=n.replace(/[^a-z0-9]+/ig,""),n.length%2!==0&&(n="0"+n);for(var d=0;d<n.length;d+=2)c.push(parseInt(n[d]+n[d+1],16))}else for(var d=0;d<n.length;d++){var m=n.charCodeAt(d),M=m>>8,S=m&255;M?c.push(M,S):c.push(S)}return c}t.toArray=r;function i(n){return n.length===1?"0"+n:n}t.zero2=i;function a(n){for(var u="",c=0;c<n.length;c++)u+=i(n[c].toString(16));return u}t.toHex=a,t.encode=function(u,c){return c==="hex"?a(u):u}})(kg);(function(e){var t=e,r=Yn,i=Si,a=kg;t.assert=i,t.toArray=a.toArray,t.zero2=a.zero2,t.toHex=a.toHex,t.encode=a.encode;function n(M,S,R){var C=new Array(Math.max(M.bitLength(),R)+1);C.fill(0);for(var P=1<<S+1,k=M.clone(),L=0;L<C.length;L++){var I,B=k.andln(P-1);k.isOdd()?(B>(P>>1)-1?I=(P>>1)-B:I=B,k.isubn(I)):I=0,C[L]=I,k.iushrn(1)}return C}t.getNAF=n;function u(M,S){var R=[[],[]];M=M.clone(),S=S.clone();for(var C=0,P=0,k;M.cmpn(-C)>0||S.cmpn(-P)>0;){var L=M.andln(3)+C&3,I=S.andln(3)+P&3;L===3&&(L=-1),I===3&&(I=-1);var B;L&1?(k=M.andln(7)+C&7,(k===3||k===5)&&I===2?B=-L:B=L):B=0,R[0].push(B);var H;I&1?(k=S.andln(7)+P&7,(k===3||k===5)&&L===2?H=-I:H=I):H=0,R[1].push(H),2*C===B+1&&(C=1-C),2*P===H+1&&(P=1-P),M.iushrn(1),S.iushrn(1)}return R}t.getJSF=u;function c(M,S,R){var C="_"+S;M.prototype[S]=function(){return this[C]!==void 0?this[C]:this[C]=R.call(this)}}t.cachedProperty=c;function d(M){return typeof M=="string"?t.toArray(M,"hex"):M}t.parseBytes=d;function m(M){return new r(M,"hex","le")}t.intFromLE=m})(ri);var $g={},Wo=Yn,Lu=ri,th=Lu.getNAF,uq=Lu.getJSF,rh=Lu.assert;function Do(e,t){this.type=e,this.p=new Wo(t.p,16),this.red=t.prime?Wo.red(t.prime):Wo.mont(this.p),this.zero=new Wo(0).toRed(this.red),this.one=new Wo(1).toRed(this.red),this.two=new Wo(2).toRed(this.red),this.n=t.n&&new Wo(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var lc=Do;Do.prototype.point=function(){throw new Error("Not implemented")};Do.prototype.validate=function(){throw new Error("Not implemented")};Do.prototype._fixedNafMul=function(t,r){rh(t.precomputed);var i=t._getDoubles(),a=th(r,1,this._bitLength),n=(1<<i.step+1)-(i.step%2===0?2:1);n/=3;var u=[],c,d;for(c=0;c<a.length;c+=i.step){d=0;for(var m=c+i.step-1;m>=c;m--)d=(d<<1)+a[m];u.push(d)}for(var M=this.jpoint(null,null,null),S=this.jpoint(null,null,null),R=n;R>0;R--){for(c=0;c<u.length;c++)d=u[c],d===R?S=S.mixedAdd(i.points[c]):d===-R&&(S=S.mixedAdd(i.points[c].neg()));M=M.add(S)}return M.toP()};Do.prototype._wnafMul=function(t,r){var i=4,a=t._getNAFPoints(i);i=a.wnd;for(var n=a.points,u=th(r,i,this._bitLength),c=this.jpoint(null,null,null),d=u.length-1;d>=0;d--){for(var m=0;d>=0&&u[d]===0;d--)m++;if(d>=0&&m++,c=c.dblp(m),d<0)break;var M=u[d];rh(M!==0),t.type==="affine"?M>0?c=c.mixedAdd(n[M-1>>1]):c=c.mixedAdd(n[-M-1>>1].neg()):M>0?c=c.add(n[M-1>>1]):c=c.add(n[-M-1>>1].neg())}return t.type==="affine"?c.toP():c};Do.prototype._wnafMulAdd=function(t,r,i,a,n){var u=this._wnafT1,c=this._wnafT2,d=this._wnafT3,m=0,M,S,R;for(M=0;M<a;M++){R=r[M];var C=R._getNAFPoints(t);u[M]=C.wnd,c[M]=C.points}for(M=a-1;M>=1;M-=2){var P=M-1,k=M;if(u[P]!==1||u[k]!==1){d[P]=th(i[P],u[P],this._bitLength),d[k]=th(i[k],u[k],this._bitLength),m=Math.max(d[P].length,m),m=Math.max(d[k].length,m);continue}var L=[r[P],null,null,r[k]];r[P].y.cmp(r[k].y)===0?(L[1]=r[P].add(r[k]),L[2]=r[P].toJ().mixedAdd(r[k].neg())):r[P].y.cmp(r[k].y.redNeg())===0?(L[1]=r[P].toJ().mixedAdd(r[k]),L[2]=r[P].add(r[k].neg())):(L[1]=r[P].toJ().mixedAdd(r[k]),L[2]=r[P].toJ().mixedAdd(r[k].neg()));var I=[-3,-1,-5,-7,0,7,5,1,3],B=uq(i[P],i[k]);for(m=Math.max(B[0].length,m),d[P]=new Array(m),d[k]=new Array(m),S=0;S<m;S++){var H=B[0][S]|0,F=B[1][S]|0;d[P][S]=I[(H+1)*3+(F+1)],d[k][S]=0,c[P]=L}}var W=this.jpoint(null,null,null),Y=this._wnafT4;for(M=m;M>=0;M--){for(var ie=0;M>=0;){var J=!0;for(S=0;S<a;S++)Y[S]=d[S][M]|0,Y[S]!==0&&(J=!1);if(!J)break;ie++,M--}if(M>=0&&ie++,W=W.dblp(ie),M<0)break;for(S=0;S<a;S++){var V=Y[S];V!==0&&(V>0?R=c[S][V-1>>1]:V<0&&(R=c[S][-V-1>>1].neg()),R.type==="affine"?W=W.mixedAdd(R):W=W.add(R))}}for(M=0;M<a;M++)c[M]=null;return n?W:W.toP()};function Ri(e,t){this.curve=e,this.type=t,this.precomputed=null}Do.BasePoint=Ri;Ri.prototype.eq=function(){throw new Error("Not implemented")};Ri.prototype.validate=function(){return this.curve.validate(this)};Do.prototype.decodePoint=function(t,r){t=Lu.toArray(t,r);var i=this.p.byteLength();if((t[0]===4||t[0]===6||t[0]===7)&&t.length-1===2*i){t[0]===6?rh(t[t.length-1]%2===0):t[0]===7&&rh(t[t.length-1]%2===1);var a=this.point(t.slice(1,1+i),t.slice(1+i,1+2*i));return a}else if((t[0]===2||t[0]===3)&&t.length-1===i)return this.pointFromX(t.slice(1,1+i),t[0]===3);throw new Error("Unknown point format")};Ri.prototype.encodeCompressed=function(t){return this.encode(t,!0)};Ri.prototype._encode=function(t){var r=this.curve.p.byteLength(),i=this.getX().toArray("be",r);return t?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",r))};Ri.prototype.encode=function(t,r){return Lu.encode(this._encode(r),t)};Ri.prototype.precompute=function(t){if(this.precomputed)return this;var r={doubles:null,naf:null,beta:null};return r.naf=this._getNAFPoints(8),r.doubles=this._getDoubles(4,t),r.beta=this._getBeta(),this.precomputed=r,this};Ri.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var r=this.precomputed.doubles;return r?r.points.length>=Math.ceil((t.bitLength()+1)/r.step):!1};Ri.prototype._getDoubles=function(t,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],a=this,n=0;n<r;n+=t){for(var u=0;u<t;u++)a=a.dbl();i.push(a)}return{step:t,points:i}};Ri.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var r=[this],i=(1<<t)-1,a=i===1?null:this.dbl(),n=1;n<i;n++)r[n]=r[n-1].add(a);return{wnd:t,points:r}};Ri.prototype._getBeta=function(){return null};Ri.prototype.dblp=function(t){for(var r=this,i=0;i<t;i++)r=r.dbl();return r};var lq=ri,Jt=Yn,Dg=Ze,Hs=lc,hq=lq.assert;function Ai(e){Hs.call(this,"short",e),this.a=new Jt(e.a,16).toRed(this.red),this.b=new Jt(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Dg(Ai,Hs);var cq=Ai;Ai.prototype._getEndomorphism=function(t){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var r,i;if(t.beta)r=new Jt(t.beta,16).toRed(this.red);else{var a=this._getEndoRoots(this.p);r=a[0].cmp(a[1])<0?a[0]:a[1],r=r.toRed(this.red)}if(t.lambda)i=new Jt(t.lambda,16);else{var n=this._getEndoRoots(this.n);this.g.mul(n[0]).x.cmp(this.g.x.redMul(r))===0?i=n[0]:(i=n[1],hq(this.g.mul(i).x.cmp(this.g.x.redMul(r))===0))}var u;return t.basis?u=t.basis.map(function(c){return{a:new Jt(c.a,16),b:new Jt(c.b,16)}}):u=this._getEndoBasis(i),{beta:r,lambda:i,basis:u}}};Ai.prototype._getEndoRoots=function(t){var r=t===this.p?this.red:Jt.mont(t),i=new Jt(2).toRed(r).redInvm(),a=i.redNeg(),n=new Jt(3).toRed(r).redNeg().redSqrt().redMul(i),u=a.redAdd(n).fromRed(),c=a.redSub(n).fromRed();return[u,c]};Ai.prototype._getEndoBasis=function(t){for(var r=this.n.ushrn(Math.floor(this.n.bitLength()/2)),i=t,a=this.n.clone(),n=new Jt(1),u=new Jt(0),c=new Jt(0),d=new Jt(1),m,M,S,R,C,P,k,L=0,I,B;i.cmpn(0)!==0;){var H=a.div(i);I=a.sub(H.mul(i)),B=c.sub(H.mul(n));var F=d.sub(H.mul(u));if(!S&&I.cmp(r)<0)m=k.neg(),M=n,S=I.neg(),R=B;else if(S&&++L===2)break;k=I,a=i,i=I,c=n,n=B,d=u,u=F}C=I.neg(),P=B;var W=S.sqr().add(R.sqr()),Y=C.sqr().add(P.sqr());return Y.cmp(W)>=0&&(C=m,P=M),S.negative&&(S=S.neg(),R=R.neg()),C.negative&&(C=C.neg(),P=P.neg()),[{a:S,b:R},{a:C,b:P}]};Ai.prototype._endoSplit=function(t){var r=this.endo.basis,i=r[0],a=r[1],n=a.b.mul(t).divRound(this.n),u=i.b.neg().mul(t).divRound(this.n),c=n.mul(i.a),d=u.mul(a.a),m=n.mul(i.b),M=u.mul(a.b),S=t.sub(c).sub(d),R=m.add(M).neg();return{k1:S,k2:R}};Ai.prototype.pointFromX=function(t,r){t=new Jt(t,16),t.red||(t=t.toRed(this.red));var i=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),a=i.redSqrt();if(a.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");var n=a.fromRed().isOdd();return(r&&!n||!r&&n)&&(a=a.redNeg()),this.point(t,a)};Ai.prototype.validate=function(t){if(t.inf)return!0;var r=t.x,i=t.y,a=this.a.redMul(r),n=r.redSqr().redMul(r).redIAdd(a).redIAdd(this.b);return i.redSqr().redISub(n).cmpn(0)===0};Ai.prototype._endoWnafMulAdd=function(t,r,i){for(var a=this._endoWnafT1,n=this._endoWnafT2,u=0;u<t.length;u++){var c=this._endoSplit(r[u]),d=t[u],m=d._getBeta();c.k1.negative&&(c.k1.ineg(),d=d.neg(!0)),c.k2.negative&&(c.k2.ineg(),m=m.neg(!0)),a[u*2]=d,a[u*2+1]=m,n[u*2]=c.k1,n[u*2+1]=c.k2}for(var M=this._wnafMulAdd(1,a,n,u*2,i),S=0;S<u*2;S++)a[S]=null,n[S]=null;return M};function dr(e,t,r,i){Hs.BasePoint.call(this,e,"affine"),t===null&&r===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Jt(t,16),this.y=new Jt(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}Dg(dr,Hs.BasePoint);Ai.prototype.point=function(t,r,i){return new dr(this,t,r,i)};Ai.prototype.pointFromJSON=function(t,r){return dr.fromJSON(this,t,r)};dr.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var r=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var i=this.curve,a=function(n){return i.point(n.x.redMul(i.endo.beta),n.y)};t.beta=r,r.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(a)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(a)}}}return r}};dr.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};dr.fromJSON=function(t,r,i){typeof r=="string"&&(r=JSON.parse(r));var a=t.point(r[0],r[1],i);if(!r[2])return a;function n(c){return t.point(c[0],c[1],i)}var u=r[2];return a.precomputed={beta:null,doubles:u.doubles&&{step:u.doubles.step,points:[a].concat(u.doubles.points.map(n))},naf:u.naf&&{wnd:u.naf.wnd,points:[a].concat(u.naf.points.map(n))}},a};dr.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};dr.prototype.isInfinity=function(){return this.inf};dr.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(this.x.cmp(t.x)===0)return this.curve.point(null,null);var r=this.y.redSub(t.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(t.x).redInvm()));var i=r.redSqr().redISub(this.x).redISub(t.x),a=r.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,a)};dr.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(t.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,i=this.x.redSqr(),a=t.redInvm(),n=i.redAdd(i).redIAdd(i).redIAdd(r).redMul(a),u=n.redSqr().redISub(this.x.redAdd(this.x)),c=n.redMul(this.x.redSub(u)).redISub(this.y);return this.curve.point(u,c)};dr.prototype.getX=function(){return this.x.fromRed()};dr.prototype.getY=function(){return this.y.fromRed()};dr.prototype.mul=function(t){return t=new Jt(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)};dr.prototype.mulAdd=function(t,r,i){var a=[this,r],n=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(a,n):this.curve._wnafMulAdd(1,a,n,2)};dr.prototype.jmulAdd=function(t,r,i){var a=[this,r],n=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(a,n,!0):this.curve._wnafMulAdd(1,a,n,2,!0)};dr.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||this.x.cmp(t.x)===0&&this.y.cmp(t.y)===0)};dr.prototype.neg=function(t){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var i=this.precomputed,a=function(n){return n.neg()};r.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(a)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(a)}}}return r};dr.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t};function wr(e,t,r,i){Hs.BasePoint.call(this,e,"jacobian"),t===null&&r===null&&i===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Jt(0)):(this.x=new Jt(t,16),this.y=new Jt(r,16),this.z=new Jt(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Dg(wr,Hs.BasePoint);Ai.prototype.jpoint=function(t,r,i){return new wr(this,t,r,i)};wr.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),r=t.redSqr(),i=this.x.redMul(r),a=this.y.redMul(r).redMul(t);return this.curve.point(i,a)};wr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};wr.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var r=t.z.redSqr(),i=this.z.redSqr(),a=this.x.redMul(r),n=t.x.redMul(i),u=this.y.redMul(r.redMul(t.z)),c=t.y.redMul(i.redMul(this.z)),d=a.redSub(n),m=u.redSub(c);if(d.cmpn(0)===0)return m.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var M=d.redSqr(),S=M.redMul(d),R=a.redMul(M),C=m.redSqr().redIAdd(S).redISub(R).redISub(R),P=m.redMul(R.redISub(C)).redISub(u.redMul(S)),k=this.z.redMul(t.z).redMul(d);return this.curve.jpoint(C,P,k)};wr.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var r=this.z.redSqr(),i=this.x,a=t.x.redMul(r),n=this.y,u=t.y.redMul(r).redMul(this.z),c=i.redSub(a),d=n.redSub(u);if(c.cmpn(0)===0)return d.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var m=c.redSqr(),M=m.redMul(c),S=i.redMul(m),R=d.redSqr().redIAdd(M).redISub(S).redISub(S),C=d.redMul(S.redISub(R)).redISub(n.redMul(M)),P=this.z.redMul(c);return this.curve.jpoint(R,C,P)};wr.prototype.dblp=function(t){if(t===0)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var i=this;for(r=0;r<t;r++)i=i.dbl();return i}var a=this.curve.a,n=this.curve.tinv,u=this.x,c=this.y,d=this.z,m=d.redSqr().redSqr(),M=c.redAdd(c);for(r=0;r<t;r++){var S=u.redSqr(),R=M.redSqr(),C=R.redSqr(),P=S.redAdd(S).redIAdd(S).redIAdd(a.redMul(m)),k=u.redMul(R),L=P.redSqr().redISub(k.redAdd(k)),I=k.redISub(L),B=P.redMul(I);B=B.redIAdd(B).redISub(C);var H=M.redMul(d);r+1<t&&(m=m.redMul(C)),u=L,d=H,M=B}return this.curve.jpoint(u,M.redMul(n),d)};wr.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};wr.prototype._zeroDbl=function(){var t,r,i;if(this.zOne){var a=this.x.redSqr(),n=this.y.redSqr(),u=n.redSqr(),c=this.x.redAdd(n).redSqr().redISub(a).redISub(u);c=c.redIAdd(c);var d=a.redAdd(a).redIAdd(a),m=d.redSqr().redISub(c).redISub(c),M=u.redIAdd(u);M=M.redIAdd(M),M=M.redIAdd(M),t=m,r=d.redMul(c.redISub(m)).redISub(M),i=this.y.redAdd(this.y)}else{var S=this.x.redSqr(),R=this.y.redSqr(),C=R.redSqr(),P=this.x.redAdd(R).redSqr().redISub(S).redISub(C);P=P.redIAdd(P);var k=S.redAdd(S).redIAdd(S),L=k.redSqr(),I=C.redIAdd(C);I=I.redIAdd(I),I=I.redIAdd(I),t=L.redISub(P).redISub(P),r=k.redMul(P.redISub(t)).redISub(I),i=this.y.redMul(this.z),i=i.redIAdd(i)}return this.curve.jpoint(t,r,i)};wr.prototype._threeDbl=function(){var t,r,i;if(this.zOne){var a=this.x.redSqr(),n=this.y.redSqr(),u=n.redSqr(),c=this.x.redAdd(n).redSqr().redISub(a).redISub(u);c=c.redIAdd(c);var d=a.redAdd(a).redIAdd(a).redIAdd(this.curve.a),m=d.redSqr().redISub(c).redISub(c);t=m;var M=u.redIAdd(u);M=M.redIAdd(M),M=M.redIAdd(M),r=d.redMul(c.redISub(m)).redISub(M),i=this.y.redAdd(this.y)}else{var S=this.z.redSqr(),R=this.y.redSqr(),C=this.x.redMul(R),P=this.x.redSub(S).redMul(this.x.redAdd(S));P=P.redAdd(P).redIAdd(P);var k=C.redIAdd(C);k=k.redIAdd(k);var L=k.redAdd(k);t=P.redSqr().redISub(L),i=this.y.redAdd(this.z).redSqr().redISub(R).redISub(S);var I=R.redSqr();I=I.redIAdd(I),I=I.redIAdd(I),I=I.redIAdd(I),r=P.redMul(k.redISub(t)).redISub(I)}return this.curve.jpoint(t,r,i)};wr.prototype._dbl=function(){var t=this.curve.a,r=this.x,i=this.y,a=this.z,n=a.redSqr().redSqr(),u=r.redSqr(),c=i.redSqr(),d=u.redAdd(u).redIAdd(u).redIAdd(t.redMul(n)),m=r.redAdd(r);m=m.redIAdd(m);var M=m.redMul(c),S=d.redSqr().redISub(M.redAdd(M)),R=M.redISub(S),C=c.redSqr();C=C.redIAdd(C),C=C.redIAdd(C),C=C.redIAdd(C);var P=d.redMul(R).redISub(C),k=i.redAdd(i).redMul(a);return this.curve.jpoint(S,P,k)};wr.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),r=this.y.redSqr(),i=this.z.redSqr(),a=r.redSqr(),n=t.redAdd(t).redIAdd(t),u=n.redSqr(),c=this.x.redAdd(r).redSqr().redISub(t).redISub(a);c=c.redIAdd(c),c=c.redAdd(c).redIAdd(c),c=c.redISub(u);var d=c.redSqr(),m=a.redIAdd(a);m=m.redIAdd(m),m=m.redIAdd(m),m=m.redIAdd(m);var M=n.redIAdd(c).redSqr().redISub(u).redISub(d).redISub(m),S=r.redMul(M);S=S.redIAdd(S),S=S.redIAdd(S);var R=this.x.redMul(d).redISub(S);R=R.redIAdd(R),R=R.redIAdd(R);var C=this.y.redMul(M.redMul(m.redISub(M)).redISub(c.redMul(d)));C=C.redIAdd(C),C=C.redIAdd(C),C=C.redIAdd(C);var P=this.z.redAdd(c).redSqr().redISub(i).redISub(d);return this.curve.jpoint(R,C,P)};wr.prototype.mul=function(t,r){return t=new Jt(t,r),this.curve._wnafMul(this,t)};wr.prototype.eq=function(t){if(t.type==="affine")return this.eq(t.toJ());if(this===t)return!0;var r=this.z.redSqr(),i=t.z.redSqr();if(this.x.redMul(i).redISub(t.x.redMul(r)).cmpn(0)!==0)return!1;var a=r.redMul(this.z),n=i.redMul(t.z);return this.y.redMul(n).redISub(t.y.redMul(a)).cmpn(0)===0};wr.prototype.eqXToP=function(t){var r=this.z.redSqr(),i=t.toRed(this.curve.red).redMul(r);if(this.x.cmp(i)===0)return!0;for(var a=t.clone(),n=this.curve.redN.redMul(r);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(n),this.x.cmp(i)===0)return!0}};wr.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};wr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Va=Yn,kx=Ze,hc=lc,dq=ri;function qs(e){hc.call(this,"mont",e),this.a=new Va(e.a,16).toRed(this.red),this.b=new Va(e.b,16).toRed(this.red),this.i4=new Va(4).toRed(this.red).redInvm(),this.two=new Va(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}kx(qs,hc);var pq=qs;qs.prototype.validate=function(t){var r=t.normalize().x,i=r.redSqr(),a=i.redMul(r).redAdd(i.redMul(this.a)).redAdd(r),n=a.redSqrt();return n.redSqr().cmp(a)===0};function cr(e,t,r){hc.BasePoint.call(this,e,"projective"),t===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Va(t,16),this.z=new Va(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}kx(cr,hc.BasePoint);qs.prototype.decodePoint=function(t,r){return this.point(dq.toArray(t,r),1)};qs.prototype.point=function(t,r){return new cr(this,t,r)};qs.prototype.pointFromJSON=function(t){return cr.fromJSON(this,t)};cr.prototype.precompute=function(){};cr.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};cr.fromJSON=function(t,r){return new cr(t,r[0],r[1]||t.one)};cr.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};cr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};cr.prototype.dbl=function(){var t=this.x.redAdd(this.z),r=t.redSqr(),i=this.x.redSub(this.z),a=i.redSqr(),n=r.redSub(a),u=r.redMul(a),c=n.redMul(a.redAdd(this.curve.a24.redMul(n)));return this.curve.point(u,c)};cr.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};cr.prototype.diffAdd=function(t,r){var i=this.x.redAdd(this.z),a=this.x.redSub(this.z),n=t.x.redAdd(t.z),u=t.x.redSub(t.z),c=u.redMul(i),d=n.redMul(a),m=r.z.redMul(c.redAdd(d).redSqr()),M=r.x.redMul(c.redISub(d).redSqr());return this.curve.point(m,M)};cr.prototype.mul=function(t){for(var r=t.clone(),i=this,a=this.curve.point(null,null),n=this,u=[];r.cmpn(0)!==0;r.iushrn(1))u.push(r.andln(1));for(var c=u.length-1;c>=0;c--)u[c]===0?(i=i.diffAdd(a,n),a=a.dbl()):(a=i.diffAdd(a,n),i=i.dbl());return a};cr.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};cr.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};cr.prototype.eq=function(t){return this.getX().cmp(t.getX())===0};cr.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};cr.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var vq=ri,Cn=Yn,$x=Ze,cc=lc,gq=vq.assert;function cn(e){this.twisted=(e.a|0)!==1,this.mOneA=this.twisted&&(e.a|0)===-1,this.extended=this.mOneA,cc.call(this,"edwards",e),this.a=new Cn(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Cn(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Cn(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),gq(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(e.c|0)===1}$x(cn,cc);var mq=cn;cn.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)};cn.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)};cn.prototype.jpoint=function(t,r,i,a){return this.point(t,r,i,a)};cn.prototype.pointFromX=function(t,r){t=new Cn(t,16),t.red||(t=t.toRed(this.red));var i=t.redSqr(),a=this.c2.redSub(this.a.redMul(i)),n=this.one.redSub(this.c2.redMul(this.d).redMul(i)),u=a.redMul(n.redInvm()),c=u.redSqrt();if(c.redSqr().redSub(u).cmp(this.zero)!==0)throw new Error("invalid point");var d=c.fromRed().isOdd();return(r&&!d||!r&&d)&&(c=c.redNeg()),this.point(t,c)};cn.prototype.pointFromY=function(t,r){t=new Cn(t,16),t.red||(t=t.toRed(this.red));var i=t.redSqr(),a=i.redSub(this.c2),n=i.redMul(this.d).redMul(this.c2).redSub(this.a),u=a.redMul(n.redInvm());if(u.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,t)}var c=u.redSqrt();if(c.redSqr().redSub(u).cmp(this.zero)!==0)throw new Error("invalid point");return c.fromRed().isOdd()!==r&&(c=c.redNeg()),this.point(c,t)};cn.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var r=t.x.redSqr(),i=t.y.redSqr(),a=r.redMul(this.a).redAdd(i),n=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(i)));return a.cmp(n)===0};function Yt(e,t,r,i,a){cc.BasePoint.call(this,e,"projective"),t===null&&r===null&&i===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Cn(t,16),this.y=new Cn(r,16),this.z=i?new Cn(i,16):this.curve.one,this.t=a&&new Cn(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}$x(Yt,cc.BasePoint);cn.prototype.pointFromJSON=function(t){return Yt.fromJSON(this,t)};cn.prototype.point=function(t,r,i,a){return new Yt(this,t,r,i,a)};Yt.fromJSON=function(t,r){return new Yt(t,r[0],r[1],r[2])};Yt.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};Yt.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Yt.prototype._extDbl=function(){var t=this.x.redSqr(),r=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var a=this.curve._mulA(t),n=this.x.redAdd(this.y).redSqr().redISub(t).redISub(r),u=a.redAdd(r),c=u.redSub(i),d=a.redSub(r),m=n.redMul(c),M=u.redMul(d),S=n.redMul(d),R=c.redMul(u);return this.curve.point(m,M,R,S)};Yt.prototype._projDbl=function(){var t=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),i=this.y.redSqr(),a,n,u,c,d,m;if(this.curve.twisted){c=this.curve._mulA(r);var M=c.redAdd(i);this.zOne?(a=t.redSub(r).redSub(i).redMul(M.redSub(this.curve.two)),n=M.redMul(c.redSub(i)),u=M.redSqr().redSub(M).redSub(M)):(d=this.z.redSqr(),m=M.redSub(d).redISub(d),a=t.redSub(r).redISub(i).redMul(m),n=M.redMul(c.redSub(i)),u=M.redMul(m))}else c=r.redAdd(i),d=this.curve._mulC(this.z).redSqr(),m=c.redSub(d).redSub(d),a=this.curve._mulC(t.redISub(c)).redMul(m),n=this.curve._mulC(c).redMul(r.redISub(i)),u=c.redMul(m);return this.curve.point(a,n,u)};Yt.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Yt.prototype._extAdd=function(t){var r=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),i=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),a=this.t.redMul(this.curve.dd).redMul(t.t),n=this.z.redMul(t.z.redAdd(t.z)),u=i.redSub(r),c=n.redSub(a),d=n.redAdd(a),m=i.redAdd(r),M=u.redMul(c),S=d.redMul(m),R=u.redMul(m),C=c.redMul(d);return this.curve.point(M,S,C,R)};Yt.prototype._projAdd=function(t){var r=this.z.redMul(t.z),i=r.redSqr(),a=this.x.redMul(t.x),n=this.y.redMul(t.y),u=this.curve.d.redMul(a).redMul(n),c=i.redSub(u),d=i.redAdd(u),m=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(a).redISub(n),M=r.redMul(c).redMul(m),S,R;return this.curve.twisted?(S=r.redMul(d).redMul(n.redSub(this.curve._mulA(a))),R=c.redMul(d)):(S=r.redMul(d).redMul(n.redSub(a)),R=this.curve._mulC(c).redMul(d)),this.curve.point(M,S,R)};Yt.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)};Yt.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)};Yt.prototype.mulAdd=function(t,r,i){return this.curve._wnafMulAdd(1,[this,r],[t,i],2,!1)};Yt.prototype.jmulAdd=function(t,r,i){return this.curve._wnafMulAdd(1,[this,r],[t,i],2,!0)};Yt.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this};Yt.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Yt.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Yt.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Yt.prototype.eq=function(t){return this===t||this.getX().cmp(t.getX())===0&&this.getY().cmp(t.getY())===0};Yt.prototype.eqXToP=function(t){var r=t.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var i=t.clone(),a=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(a),this.x.cmp(r)===0)return!0}};Yt.prototype.toP=Yt.prototype.normalize;Yt.prototype.mixedAdd=Yt.prototype.add;(function(e){var t=e;t.base=lc,t.short=cq,t.mont=pq,t.edwards=mq})($g);var dc={},pc={},St={},yq=Si,bq=Ze;St.inherits=bq;function wq(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function _q(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),a=0;a<e.length;a+=2)r.push(parseInt(e[a]+e[a+1],16))}else for(var i=0,a=0;a<e.length;a++){var n=e.charCodeAt(a);n<128?r[i++]=n:n<2048?(r[i++]=n>>6|192,r[i++]=n&63|128):wq(e,a)?(n=65536+((n&1023)<<10)+(e.charCodeAt(++a)&1023),r[i++]=n>>18|240,r[i++]=n>>12&63|128,r[i++]=n>>6&63|128,r[i++]=n&63|128):(r[i++]=n>>12|224,r[i++]=n>>6&63|128,r[i++]=n&63|128)}else for(a=0;a<e.length;a++)r[a]=e[a]|0;return r}St.toArray=_q;function Mq(e){for(var t="",r=0;r<e.length;r++)t+=Fx(e[r].toString(16));return t}St.toHex=Mq;function Dx(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}St.htonl=Dx;function Sq(e,t){for(var r="",i=0;i<e.length;i++){var a=e[i];t==="little"&&(a=Dx(a)),r+=jx(a.toString(16))}return r}St.toHex32=Sq;function Fx(e){return e.length===1?"0"+e:e}St.zero2=Fx;function jx(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}St.zero8=jx;function xq(e,t,r,i){var a=r-t;yq(a%4===0);for(var n=new Array(a/4),u=0,c=t;u<n.length;u++,c+=4){var d;i==="big"?d=e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:d=e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],n[u]=d>>>0}return n}St.join32=xq;function Eq(e,t){for(var r=new Array(e.length*4),i=0,a=0;i<e.length;i++,a+=4){var n=e[i];t==="big"?(r[a]=n>>>24,r[a+1]=n>>>16&255,r[a+2]=n>>>8&255,r[a+3]=n&255):(r[a+3]=n>>>24,r[a+2]=n>>>16&255,r[a+1]=n>>>8&255,r[a]=n&255)}return r}St.split32=Eq;function Rq(e,t){return e>>>t|e<<32-t}St.rotr32=Rq;function Aq(e,t){return e<<t|e>>>32-t}St.rotl32=Aq;function Tq(e,t){return e+t>>>0}St.sum32=Tq;function Oq(e,t,r){return e+t+r>>>0}St.sum32_3=Oq;function Iq(e,t,r,i){return e+t+r+i>>>0}St.sum32_4=Iq;function Pq(e,t,r,i,a){return e+t+r+i+a>>>0}St.sum32_5=Pq;function Cq(e,t,r,i){var a=e[t],n=e[t+1],u=i+n>>>0,c=(u<i?1:0)+r+a;e[t]=c>>>0,e[t+1]=u}St.sum64=Cq;function Bq(e,t,r,i){var a=t+i>>>0,n=(a<t?1:0)+e+r;return n>>>0}St.sum64_hi=Bq;function Lq(e,t,r,i){var a=t+i;return a>>>0}St.sum64_lo=Lq;function Nq(e,t,r,i,a,n,u,c){var d=0,m=t;m=m+i>>>0,d+=m<t?1:0,m=m+n>>>0,d+=m<n?1:0,m=m+c>>>0,d+=m<c?1:0;var M=e+r+a+u+d;return M>>>0}St.sum64_4_hi=Nq;function kq(e,t,r,i,a,n,u,c){var d=t+i+n+c;return d>>>0}St.sum64_4_lo=kq;function $q(e,t,r,i,a,n,u,c,d,m){var M=0,S=t;S=S+i>>>0,M+=S<t?1:0,S=S+n>>>0,M+=S<n?1:0,S=S+c>>>0,M+=S<c?1:0,S=S+m>>>0,M+=S<m?1:0;var R=e+r+a+u+d+M;return R>>>0}St.sum64_5_hi=$q;function Dq(e,t,r,i,a,n,u,c,d,m){var M=t+i+n+c+m;return M>>>0}St.sum64_5_lo=Dq;function Fq(e,t,r){var i=t<<32-r|e>>>r;return i>>>0}St.rotr64_hi=Fq;function jq(e,t,r){var i=e<<32-r|t>>>r;return i>>>0}St.rotr64_lo=jq;function Uq(e,t,r){return e>>>r}St.shr64_hi=Uq;function Hq(e,t,r){var i=e<<32-r|t>>>r;return i>>>0}St.shr64_lo=Hq;var Ws={},lw=St,qq=Si;function vc(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Ws.BlockHash=vc;vc.prototype.update=function(t,r){if(t=lw.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var i=t.length%this._delta8;this.pending=t.slice(t.length-i,t.length),this.pending.length===0&&(this.pending=null),t=lw.join32(t,0,t.length-i,this.endian);for(var a=0;a<t.length;a+=this._delta32)this._update(t,a,a+this._delta32)}return this};vc.prototype.digest=function(t){return this.update(this._pad()),qq(this.pending===null),this._digest(t)};vc.prototype._pad=function(){var t=this.pendingTotal,r=this._delta8,i=r-(t+this.padLength)%r,a=new Array(i+this.padLength);a[0]=128;for(var n=1;n<i;n++)a[n]=0;if(t<<=3,this.endian==="big"){for(var u=8;u<this.padLength;u++)a[n++]=0;a[n++]=0,a[n++]=0,a[n++]=0,a[n++]=0,a[n++]=t>>>24&255,a[n++]=t>>>16&255,a[n++]=t>>>8&255,a[n++]=t&255}else for(a[n++]=t&255,a[n++]=t>>>8&255,a[n++]=t>>>16&255,a[n++]=t>>>24&255,a[n++]=0,a[n++]=0,a[n++]=0,a[n++]=0,u=8;u<this.padLength;u++)a[n++]=0;return a};var Ks={},dn={},Wq=St,rn=Wq.rotr32;function Kq(e,t,r,i){if(e===0)return Ux(t,r,i);if(e===1||e===3)return qx(t,r,i);if(e===2)return Hx(t,r,i)}dn.ft_1=Kq;function Ux(e,t,r){return e&t^~e&r}dn.ch32=Ux;function Hx(e,t,r){return e&t^e&r^t&r}dn.maj32=Hx;function qx(e,t,r){return e^t^r}dn.p32=qx;function Vq(e){return rn(e,2)^rn(e,13)^rn(e,22)}dn.s0_256=Vq;function zq(e){return rn(e,6)^rn(e,11)^rn(e,25)}dn.s1_256=zq;function Gq(e){return rn(e,7)^rn(e,18)^e>>>3}dn.g0_256=Gq;function Yq(e){return rn(e,17)^rn(e,19)^e>>>10}dn.g1_256=Yq;var xs=St,Zq=Ws,Xq=dn,w0=xs.rotl32,mf=xs.sum32,Jq=xs.sum32_5,Qq=Xq.ft_1,Wx=Zq.BlockHash,eW=[1518500249,1859775393,2400959708,3395469782];function un(){if(!(this instanceof un))return new un;Wx.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}xs.inherits(un,Wx);var tW=un;un.blockSize=512;un.outSize=160;un.hmacStrength=80;un.padLength=64;un.prototype._update=function(t,r){for(var i=this.W,a=0;a<16;a++)i[a]=t[r+a];for(;a<i.length;a++)i[a]=w0(i[a-3]^i[a-8]^i[a-14]^i[a-16],1);var n=this.h[0],u=this.h[1],c=this.h[2],d=this.h[3],m=this.h[4];for(a=0;a<i.length;a++){var M=~~(a/20),S=Jq(w0(n,5),Qq(M,u,c,d),m,i[a],eW[M]);m=d,d=c,c=w0(u,30),u=n,n=S}this.h[0]=mf(this.h[0],n),this.h[1]=mf(this.h[1],u),this.h[2]=mf(this.h[2],c),this.h[3]=mf(this.h[3],d),this.h[4]=mf(this.h[4],m)};un.prototype._digest=function(t){return t==="hex"?xs.toHex32(this.h,"big"):xs.split32(this.h,"big")};var Es=St,rW=Ws,Vs=dn,iW=Si,Oi=Es.sum32,nW=Es.sum32_4,oW=Es.sum32_5,aW=Vs.ch32,sW=Vs.maj32,fW=Vs.s0_256,uW=Vs.s1_256,lW=Vs.g0_256,hW=Vs.g1_256,Kx=rW.BlockHash,cW=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function ln(){if(!(this instanceof ln))return new ln;Kx.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=cW,this.W=new Array(64)}Es.inherits(ln,Kx);var Vx=ln;ln.blockSize=512;ln.outSize=256;ln.hmacStrength=192;ln.padLength=64;ln.prototype._update=function(t,r){for(var i=this.W,a=0;a<16;a++)i[a]=t[r+a];for(;a<i.length;a++)i[a]=nW(hW(i[a-2]),i[a-7],lW(i[a-15]),i[a-16]);var n=this.h[0],u=this.h[1],c=this.h[2],d=this.h[3],m=this.h[4],M=this.h[5],S=this.h[6],R=this.h[7];for(iW(this.k.length===i.length),a=0;a<i.length;a++){var C=oW(R,uW(m),aW(m,M,S),this.k[a],i[a]),P=Oi(fW(n),sW(n,u,c));R=S,S=M,M=m,m=Oi(d,C),d=c,c=u,u=n,n=Oi(C,P)}this.h[0]=Oi(this.h[0],n),this.h[1]=Oi(this.h[1],u),this.h[2]=Oi(this.h[2],c),this.h[3]=Oi(this.h[3],d),this.h[4]=Oi(this.h[4],m),this.h[5]=Oi(this.h[5],M),this.h[6]=Oi(this.h[6],S),this.h[7]=Oi(this.h[7],R)};ln.prototype._digest=function(t){return t==="hex"?Es.toHex32(this.h,"big"):Es.split32(this.h,"big")};var Gp=St,zx=Vx;function Hn(){if(!(this instanceof Hn))return new Hn;zx.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Gp.inherits(Hn,zx);var dW=Hn;Hn.blockSize=512;Hn.outSize=224;Hn.hmacStrength=192;Hn.padLength=64;Hn.prototype._digest=function(t){return t==="hex"?Gp.toHex32(this.h.slice(0,7),"big"):Gp.split32(this.h.slice(0,7),"big")};var Vr=St,pW=Ws,vW=Si,nn=Vr.rotr64_hi,on=Vr.rotr64_lo,Gx=Vr.shr64_hi,Yx=Vr.shr64_lo,to=Vr.sum64,_0=Vr.sum64_hi,M0=Vr.sum64_lo,gW=Vr.sum64_4_hi,mW=Vr.sum64_4_lo,yW=Vr.sum64_5_hi,bW=Vr.sum64_5_lo,Zx=pW.BlockHash,wW=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Di(){if(!(this instanceof Di))return new Di;Zx.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=wW,this.W=new Array(160)}Vr.inherits(Di,Zx);var Xx=Di;Di.blockSize=1024;Di.outSize=512;Di.hmacStrength=192;Di.padLength=128;Di.prototype._prepareBlock=function(t,r){for(var i=this.W,a=0;a<32;a++)i[a]=t[r+a];for(;a<i.length;a+=2){var n=PW(i[a-4],i[a-3]),u=CW(i[a-4],i[a-3]),c=i[a-14],d=i[a-13],m=OW(i[a-30],i[a-29]),M=IW(i[a-30],i[a-29]),S=i[a-32],R=i[a-31];i[a]=gW(n,u,c,d,m,M,S,R),i[a+1]=mW(n,u,c,d,m,M,S,R)}};Di.prototype._update=function(t,r){this._prepareBlock(t,r);var i=this.W,a=this.h[0],n=this.h[1],u=this.h[2],c=this.h[3],d=this.h[4],m=this.h[5],M=this.h[6],S=this.h[7],R=this.h[8],C=this.h[9],P=this.h[10],k=this.h[11],L=this.h[12],I=this.h[13],B=this.h[14],H=this.h[15];vW(this.k.length===i.length);for(var F=0;F<i.length;F+=2){var W=B,Y=H,ie=AW(R,C),J=TW(R,C),V=_W(R,C,P,k,L),oe=MW(R,C,P,k,L,I),_=this.k[F],o=this.k[F+1],f=i[F],l=i[F+1],h=yW(W,Y,ie,J,V,oe,_,o,f,l),p=bW(W,Y,ie,J,V,oe,_,o,f,l);W=EW(a,n),Y=RW(a,n),ie=SW(a,n,u,c,d),J=xW(a,n,u,c,d,m);var w=_0(W,Y,ie,J),x=M0(W,Y,ie,J);B=L,H=I,L=P,I=k,P=R,k=C,R=_0(M,S,h,p),C=M0(S,S,h,p),M=d,S=m,d=u,m=c,u=a,c=n,a=_0(h,p,w,x),n=M0(h,p,w,x)}to(this.h,0,a,n),to(this.h,2,u,c),to(this.h,4,d,m),to(this.h,6,M,S),to(this.h,8,R,C),to(this.h,10,P,k),to(this.h,12,L,I),to(this.h,14,B,H)};Di.prototype._digest=function(t){return t==="hex"?Vr.toHex32(this.h,"big"):Vr.split32(this.h,"big")};function _W(e,t,r,i,a){var n=e&r^~e&a;return n<0&&(n+=4294967296),n}function MW(e,t,r,i,a,n){var u=t&i^~t&n;return u<0&&(u+=4294967296),u}function SW(e,t,r,i,a){var n=e&r^e&a^r&a;return n<0&&(n+=4294967296),n}function xW(e,t,r,i,a,n){var u=t&i^t&n^i&n;return u<0&&(u+=4294967296),u}function EW(e,t){var r=nn(e,t,28),i=nn(t,e,2),a=nn(t,e,7),n=r^i^a;return n<0&&(n+=4294967296),n}function RW(e,t){var r=on(e,t,28),i=on(t,e,2),a=on(t,e,7),n=r^i^a;return n<0&&(n+=4294967296),n}function AW(e,t){var r=nn(e,t,14),i=nn(e,t,18),a=nn(t,e,9),n=r^i^a;return n<0&&(n+=4294967296),n}function TW(e,t){var r=on(e,t,14),i=on(e,t,18),a=on(t,e,9),n=r^i^a;return n<0&&(n+=4294967296),n}function OW(e,t){var r=nn(e,t,1),i=nn(e,t,8),a=Gx(e,t,7),n=r^i^a;return n<0&&(n+=4294967296),n}function IW(e,t){var r=on(e,t,1),i=on(e,t,8),a=Yx(e,t,7),n=r^i^a;return n<0&&(n+=4294967296),n}function PW(e,t){var r=nn(e,t,19),i=nn(t,e,29),a=Gx(e,t,6),n=r^i^a;return n<0&&(n+=4294967296),n}function CW(e,t){var r=on(e,t,19),i=on(t,e,29),a=Yx(e,t,6),n=r^i^a;return n<0&&(n+=4294967296),n}var Yp=St,Jx=Xx;function qn(){if(!(this instanceof qn))return new qn;Jx.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Yp.inherits(qn,Jx);var BW=qn;qn.blockSize=1024;qn.outSize=384;qn.hmacStrength=192;qn.padLength=128;qn.prototype._digest=function(t){return t==="hex"?Yp.toHex32(this.h.slice(0,12),"big"):Yp.split32(this.h.slice(0,12),"big")};Ks.sha1=tW;Ks.sha224=dW;Ks.sha256=Vx;Ks.sha384=BW;Ks.sha512=Xx;var Qx={},pa=St,LW=Ws,el=pa.rotl32,hw=pa.sum32,yf=pa.sum32_3,cw=pa.sum32_4,e4=LW.BlockHash;function hn(){if(!(this instanceof hn))return new hn;e4.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}pa.inherits(hn,e4);Qx.ripemd160=hn;hn.blockSize=512;hn.outSize=160;hn.hmacStrength=192;hn.padLength=64;hn.prototype._update=function(t,r){for(var i=this.h[0],a=this.h[1],n=this.h[2],u=this.h[3],c=this.h[4],d=i,m=a,M=n,S=u,R=c,C=0;C<80;C++){var P=hw(el(cw(i,dw(C,a,n,u),t[$W[C]+r],NW(C)),FW[C]),c);i=c,c=u,u=el(n,10),n=a,a=P,P=hw(el(cw(d,dw(79-C,m,M,S),t[DW[C]+r],kW(C)),jW[C]),R),d=R,R=S,S=el(M,10),M=m,m=P}P=yf(this.h[1],n,S),this.h[1]=yf(this.h[2],u,R),this.h[2]=yf(this.h[3],c,d),this.h[3]=yf(this.h[4],i,m),this.h[4]=yf(this.h[0],a,M),this.h[0]=P};hn.prototype._digest=function(t){return t==="hex"?pa.toHex32(this.h,"little"):pa.split32(this.h,"little")};function dw(e,t,r,i){return e<=15?t^r^i:e<=31?t&r|~t&i:e<=47?(t|~r)^i:e<=63?t&i|r&~i:t^(r|~i)}function NW(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function kW(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var $W=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],DW=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],FW=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],jW=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],UW=St,HW=Si;function Rs(e,t,r){if(!(this instanceof Rs))return new Rs(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(UW.toArray(t,r))}var qW=Rs;Rs.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),HW(t.length<=this.blockSize);for(var r=t.length;r<this.blockSize;r++)t.push(0);for(r=0;r<t.length;r++)t[r]^=54;for(this.inner=new this.Hash().update(t),r=0;r<t.length;r++)t[r]^=106;this.outer=new this.Hash().update(t)};Rs.prototype.update=function(t,r){return this.inner.update(t,r),this};Rs.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};(function(e){var t=e;t.utils=St,t.common=Ws,t.sha=Ks,t.ripemd=Qx,t.hmac=qW,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})(pc);var S0,pw;function WW(){return pw||(pw=1,S0={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),S0}(function(e){var t=e,r=pc,i=$g,a=ri,n=a.assert;function u(m){m.type==="short"?this.curve=new i.short(m):m.type==="edwards"?this.curve=new i.edwards(m):this.curve=new i.mont(m),this.g=this.curve.g,this.n=this.curve.n,this.hash=m.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}t.PresetCurve=u;function c(m,M){Object.defineProperty(t,m,{configurable:!0,enumerable:!0,get:function(){var S=new u(M);return Object.defineProperty(t,m,{configurable:!0,enumerable:!0,value:S}),S}})}c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var d;try{d=WW()}catch{d=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",d]})})(dc);var KW=pc,aa=kg,t4=Si;function Bo(e){if(!(this instanceof Bo))return new Bo(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=aa.toArray(e.entropy,e.entropyEnc||"hex"),r=aa.toArray(e.nonce,e.nonceEnc||"hex"),i=aa.toArray(e.pers,e.persEnc||"hex");t4(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}var VW=Bo;Bo.prototype._init=function(t,r,i){var a=t.concat(r).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(a),this._reseed=1,this.reseedInterval=281474976710656};Bo.prototype._hmac=function(){return new KW.hmac(this.hash,this.K)};Bo.prototype._update=function(t){var r=this._hmac().update(this.V).update([0]);t&&(r=r.update(t)),this.K=r.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())};Bo.prototype.reseed=function(t,r,i,a){typeof r!="string"&&(a=i,i=r,r=null),t=aa.toArray(t,r),i=aa.toArray(i,a),t4(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1};Bo.prototype.generate=function(t,r,i,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(a=i,i=r,r=null),i&&(i=aa.toArray(i,a||"hex"),this._update(i));for(var n=[];n.length<t;)this.V=this._hmac().update(this.V).digest(),n=n.concat(this.V);var u=n.slice(0,t);return this._update(i),this._reseed++,aa.encode(u,r)};var zW=Yn,GW=ri,Zp=GW.assert;function Ar(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var YW=Ar;Ar.fromPublic=function(t,r,i){return r instanceof Ar?r:new Ar(t,{pub:r,pubEnc:i})};Ar.fromPrivate=function(t,r,i){return r instanceof Ar?r:new Ar(t,{priv:r,privEnc:i})};Ar.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};Ar.prototype.getPublic=function(t,r){return typeof t=="string"&&(r=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),r?this.pub.encode(r,t):this.pub};Ar.prototype.getPrivate=function(t){return t==="hex"?this.priv.toString(16,2):this.priv};Ar.prototype._importPrivate=function(t,r){this.priv=new zW(t,r||16),this.priv=this.priv.umod(this.ec.curve.n)};Ar.prototype._importPublic=function(t,r){if(t.x||t.y){this.ec.curve.type==="mont"?Zp(t.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&Zp(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,r)};Ar.prototype.derive=function(t){return t.validate()||Zp(t.validate(),"public point not validated"),t.mul(this.priv).getX()};Ar.prototype.sign=function(t,r,i){return this.ec.sign(t,this,r,i)};Ar.prototype.verify=function(t,r){return this.ec.verify(t,r,this)};Ar.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var ih=Yn,Fg=ri,ZW=Fg.assert;function gc(e,t){if(e instanceof gc)return e;this._importDER(e,t)||(ZW(e.r&&e.s,"Signature without r or s"),this.r=new ih(e.r,16),this.s=new ih(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var XW=gc;function JW(){this.place=0}function x0(e,t){var r=e[t.place++];if(!(r&128))return r;var i=r&15;if(i===0||i>4)return!1;for(var a=0,n=0,u=t.place;n<i;n++,u++)a<<=8,a|=e[u],a>>>=0;return a<=127?!1:(t.place=u,a)}function vw(e){for(var t=0,r=e.length-1;!e[t]&&!(e[t+1]&128)&&t<r;)t++;return t===0?e:e.slice(t)}gc.prototype._importDER=function(t,r){t=Fg.toArray(t,r);var i=new JW;if(t[i.place++]!==48)return!1;var a=x0(t,i);if(a===!1||a+i.place!==t.length||t[i.place++]!==2)return!1;var n=x0(t,i);if(n===!1)return!1;var u=t.slice(i.place,n+i.place);if(i.place+=n,t[i.place++]!==2)return!1;var c=x0(t,i);if(c===!1||t.length!==c+i.place)return!1;var d=t.slice(i.place,c+i.place);if(u[0]===0)if(u[1]&128)u=u.slice(1);else return!1;if(d[0]===0)if(d[1]&128)d=d.slice(1);else return!1;return this.r=new ih(u),this.s=new ih(d),this.recoveryParam=null,!0};function E0(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(r|128);--r;)e.push(t>>>(r<<3)&255);e.push(t)}gc.prototype.toDER=function(t){var r=this.r.toArray(),i=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),i[0]&128&&(i=[0].concat(i)),r=vw(r),i=vw(i);!i[0]&&!(i[1]&128);)i=i.slice(1);var a=[2];E0(a,r.length),a=a.concat(r),a.push(2),E0(a,i.length);var n=a.concat(i),u=[48];return E0(u,n.length),u=u.concat(n),Fg.encode(u,t)};var R0,gw;function QW(){if(gw)return R0;gw=1;var e=Yn,t=VW,r=ri,i=dc,a=Ig(),n=r.assert,u=YW,c=XW;function d(m){if(!(this instanceof d))return new d(m);typeof m=="string"&&(n(Object.prototype.hasOwnProperty.call(i,m),"Unknown curve "+m),m=i[m]),m instanceof i.PresetCurve&&(m={curve:m}),this.curve=m.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=m.curve.g,this.g.precompute(m.curve.n.bitLength()+1),this.hash=m.hash||m.curve.hash}return R0=d,d.prototype.keyPair=function(M){return new u(this,M)},d.prototype.keyFromPrivate=function(M,S){return u.fromPrivate(this,M,S)},d.prototype.keyFromPublic=function(M,S){return u.fromPublic(this,M,S)},d.prototype.genKeyPair=function(M){M||(M={});for(var S=new t({hash:this.hash,pers:M.pers,persEnc:M.persEnc||"utf8",entropy:M.entropy||a(this.hash.hmacStrength),entropyEnc:M.entropy&&M.entropyEnc||"utf8",nonce:this.n.toArray()}),R=this.n.byteLength(),C=this.n.sub(new e(2));;){var P=new e(S.generate(R));if(!(P.cmp(C)>0))return P.iaddn(1),this.keyFromPrivate(P)}},d.prototype._truncateToN=function(M,S){var R=M.byteLength()*8-this.n.bitLength();return R>0&&(M=M.ushrn(R)),!S&&M.cmp(this.n)>=0?M.sub(this.n):M},d.prototype.sign=function(M,S,R,C){typeof R=="object"&&(C=R,R=null),C||(C={}),S=this.keyFromPrivate(S,R),M=this._truncateToN(new e(M,16));for(var P=this.n.byteLength(),k=S.getPrivate().toArray("be",P),L=M.toArray("be",P),I=new t({hash:this.hash,entropy:k,nonce:L,pers:C.pers,persEnc:C.persEnc||"utf8"}),B=this.n.sub(new e(1)),H=0;;H++){var F=C.k?C.k(H):new e(I.generate(this.n.byteLength()));if(F=this._truncateToN(F,!0),!(F.cmpn(1)<=0||F.cmp(B)>=0)){var W=this.g.mul(F);if(!W.isInfinity()){var Y=W.getX(),ie=Y.umod(this.n);if(ie.cmpn(0)!==0){var J=F.invm(this.n).mul(ie.mul(S.getPrivate()).iadd(M));if(J=J.umod(this.n),J.cmpn(0)!==0){var V=(W.getY().isOdd()?1:0)|(Y.cmp(ie)!==0?2:0);return C.canonical&&J.cmp(this.nh)>0&&(J=this.n.sub(J),V^=1),new c({r:ie,s:J,recoveryParam:V})}}}}}},d.prototype.verify=function(M,S,R,C){M=this._truncateToN(new e(M,16)),R=this.keyFromPublic(R,C),S=new c(S,"hex");var P=S.r,k=S.s;if(P.cmpn(1)<0||P.cmp(this.n)>=0||k.cmpn(1)<0||k.cmp(this.n)>=0)return!1;var L=k.invm(this.n),I=L.mul(M).umod(this.n),B=L.mul(P).umod(this.n),H;return this.curve._maxwellTrick?(H=this.g.jmulAdd(I,R.getPublic(),B),H.isInfinity()?!1:H.eqXToP(P)):(H=this.g.mulAdd(I,R.getPublic(),B),H.isInfinity()?!1:H.getX().umod(this.n).cmp(P)===0)},d.prototype.recoverPubKey=function(m,M,S,R){n((3&S)===S,"The recovery param is more than two bits"),M=new c(M,R);var C=this.n,P=new e(m),k=M.r,L=M.s,I=S&1,B=S>>1;if(k.cmp(this.curve.p.umod(this.curve.n))>=0&&B)throw new Error("Unable to find sencond key candinate");B?k=this.curve.pointFromX(k.add(this.curve.n),I):k=this.curve.pointFromX(k,I);var H=M.r.invm(C),F=C.sub(P).mul(H).umod(C),W=L.mul(H).umod(C);return this.g.mulAdd(F,k,W)},d.prototype.getKeyRecoveryParam=function(m,M,S,R){if(M=new c(M,R),M.recoveryParam!==null)return M.recoveryParam;for(var C=0;C<4;C++){var P;try{P=this.recoverPubKey(m,M,C)}catch{continue}if(P.eq(S))return C}throw new Error("Unable to find valid recovery factor")},R0}var Nu=ri,r4=Nu.assert,mw=Nu.parseBytes,zs=Nu.cachedProperty;function hr(e,t){this.eddsa=e,this._secret=mw(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=mw(t.pub)}hr.fromPublic=function(t,r){return r instanceof hr?r:new hr(t,{pub:r})};hr.fromSecret=function(t,r){return r instanceof hr?r:new hr(t,{secret:r})};hr.prototype.secret=function(){return this._secret};zs(hr,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});zs(hr,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});zs(hr,"privBytes",function(){var t=this.eddsa,r=this.hash(),i=t.encodingLength-1,a=r.slice(0,t.encodingLength);return a[0]&=248,a[i]&=127,a[i]|=64,a});zs(hr,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});zs(hr,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});zs(hr,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});hr.prototype.sign=function(t){return r4(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)};hr.prototype.verify=function(t,r){return this.eddsa.verify(t,r,this)};hr.prototype.getSecret=function(t){return r4(this._secret,"KeyPair is public only"),Nu.encode(this.secret(),t)};hr.prototype.getPublic=function(t){return Nu.encode(this.pubBytes(),t)};var eK=hr,tK=Yn,mc=ri,rK=mc.assert,yc=mc.cachedProperty,iK=mc.parseBytes;function Pa(e,t){this.eddsa=e,typeof t!="object"&&(t=iK(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),rK(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof tK&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}yc(Pa,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});yc(Pa,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});yc(Pa,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});yc(Pa,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Pa.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Pa.prototype.toHex=function(){return mc.encode(this.toBytes(),"hex").toUpperCase()};var nK=Pa,oK=pc,aK=dc,As=ri,sK=As.assert,i4=As.parseBytes,n4=eK,yw=nK;function zr(e){if(sK(e==="ed25519","only tested with ed25519 so far"),!(this instanceof zr))return new zr(e);e=aK[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=oK.sha512}var fK=zr;zr.prototype.sign=function(t,r){t=i4(t);var i=this.keyFromSecret(r),a=this.hashInt(i.messagePrefix(),t),n=this.g.mul(a),u=this.encodePoint(n),c=this.hashInt(u,i.pubBytes(),t).mul(i.priv()),d=a.add(c).umod(this.curve.n);return this.makeSignature({R:n,S:d,Rencoded:u})};zr.prototype.verify=function(t,r,i){t=i4(t),r=this.makeSignature(r);var a=this.keyFromPublic(i),n=this.hashInt(r.Rencoded(),a.pubBytes(),t),u=this.g.mul(r.S()),c=r.R().add(a.pub().mul(n));return c.eq(u)};zr.prototype.hashInt=function(){for(var t=this.hash(),r=0;r<arguments.length;r++)t.update(arguments[r]);return As.intFromLE(t.digest()).umod(this.curve.n)};zr.prototype.keyFromPublic=function(t){return n4.fromPublic(this,t)};zr.prototype.keyFromSecret=function(t){return n4.fromSecret(this,t)};zr.prototype.makeSignature=function(t){return t instanceof yw?t:new yw(this,t)};zr.prototype.encodePoint=function(t){var r=t.getY().toArray("le",this.encodingLength);return r[this.encodingLength-1]|=t.getX().isOdd()?128:0,r};zr.prototype.decodePoint=function(t){t=As.parseBytes(t);var r=t.length-1,i=t.slice(0,r).concat(t[r]&-129),a=(t[r]&128)!==0,n=As.intFromLE(i);return this.curve.pointFromY(n,a)};zr.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)};zr.prototype.decodeInt=function(t){return As.intFromLE(t)};zr.prototype.isPoint=function(t){return t instanceof this.pointClass};var bw;function jg(){return bw||(bw=1,function(e){var t=e;t.version=fq.version,t.utils=ri,t.rand=Ig(),t.curve=$g,t.curves=dc,t.ec=QW(),t.eddsa=fK}(b0)),b0}var Hi={},Ug={},Hg={exports:{}};Hg.exports;(function(e){(function(t,r){function i(_,o){if(!_)throw new Error(o||"Assertion failed")}function a(_,o){_.super_=o;var f=function(){};f.prototype=o.prototype,_.prototype=new f,_.prototype.constructor=_}function n(_,o,f){if(n.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((o==="le"||o==="be")&&(f=o,o=10),this._init(_||0,o||10,f||"be"))}typeof t=="object"?t.exports=n:r.BN=n,n.BN=n,n.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=ke.Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,f){return o.cmp(f)>0?o:f},n.min=function(o,f){return o.cmp(f)<0?o:f},n.prototype._init=function(o,f,l){if(typeof o=="number")return this._initNumber(o,f,l);if(typeof o=="object")return this._initArray(o,f,l);f==="hex"&&(f=16),i(f===(f|0)&&f>=2&&f<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h<o.length&&(f===16?this._parseHex(o,h,l):(this._parseBase(o,f,h),l==="le"&&this._initArray(this.toArray(),f,l)))},n.prototype._initNumber=function(o,f,l){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(i(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),f,l)},n.prototype._initArray=function(o,f,l){if(i(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p,w,x=0;if(l==="be")for(h=o.length-1,p=0;h>=0;h-=3)w=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);else if(l==="le")for(h=0,p=0;h<o.length;h+=3)w=o[h]|o[h+1]<<8|o[h+2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);return this.strip()};function c(_,o){var f=_.charCodeAt(o);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function d(_,o,f){var l=c(_,f);return f-1>=o&&(l|=c(_,f-1)<<4),l}n.prototype._parseHex=function(o,f,l){this.length=Math.ceil((o.length-f)/6),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p=0,w=0,x;if(l==="be")for(h=o.length-1;h>=f;h-=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8;else{var g=o.length-f;for(h=g%2===0?f+1:f;h<o.length;h+=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8}this.strip()};function m(_,o,f,l){for(var h=0,p=Math.min(_.length,f),w=o;w<p;w++){var x=_.charCodeAt(w)-48;h*=l,x>=49?h+=x-49+10:x>=17?h+=x-17+10:h+=x}return h}n.prototype._parseBase=function(o,f,l){this.words=[0],this.length=1;for(var h=0,p=1;p<=67108863;p*=f)h++;h--,p=p/f|0;for(var w=o.length-l,x=w%h,g=Math.min(w,w-x)+l,s=0,v=l;v<g;v+=h)s=m(o,v,v+h,f),this.imuln(p),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(x!==0){var T=1;for(s=m(o,v,o.length,f),v=0;v<x;v++)T*=f;this.imuln(T),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},n.prototype.copy=function(o){o.words=new Array(this.length);for(var f=0;f<this.length;f++)o.words[f]=this.words[f];o.length=this.length,o.negative=this.negative,o.red=this.red},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],R=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,f){o=o||10,f=f|0||1;var l;if(o===16||o==="hex"){l="";for(var h=0,p=0,w=0;w<this.length;w++){var x=this.words[w],g=((x<<h|p)&16777215).toString(16);p=x>>>24-h&16777215,p!==0||w!==this.length-1?l=M[6-g.length]+g+l:l=g+l,h+=2,h>=26&&(h-=26,w--)}for(p!==0&&(l=p.toString(16)+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(o===(o|0)&&o>=2&&o<=36){var s=S[o],v=R[o];l="";var T=this.clone();for(T.negative=0;!T.isZero();){var $=T.modn(v).toString(o);T=T.idivn(v),T.isZero()?l=$+l:l=M[s-$.length]+$+l}for(this.isZero()&&(l="0"+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(o,f){return i(typeof u<"u"),this.toArrayLike(u,o,f)},n.prototype.toArray=function(o,f){return this.toArrayLike(Array,o,f)},n.prototype.toArrayLike=function(o,f,l){var h=this.byteLength(),p=l||Math.max(1,h);i(h<=p,"byte array longer than desired length"),i(p>0,"Requested array length <= 0"),this.strip();var w=f==="le",x=new o(p),g,s,v=this.clone();if(w){for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[s]=g;for(;s<p;s++)x[s]=0}else{for(s=0;s<p-h;s++)x[s]=0;for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[p-s-1]=g}return x},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var f=o,l=0;return f>=4096&&(l+=13,f>>>=13),f>=64&&(l+=7,f>>>=7),f>=8&&(l+=4,f>>>=4),f>=2&&(l+=2,f>>>=2),l+f},n.prototype._zeroBits=function(o){if(o===0)return 26;var f=o,l=0;return f&8191||(l+=13,f>>>=13),f&127||(l+=7,f>>>=7),f&15||(l+=4,f>>>=4),f&3||(l+=2,f>>>=2),f&1||l++,l},n.prototype.bitLength=function(){var o=this.words[this.length-1],f=this._countBits(o);return(this.length-1)*26+f};function C(_){for(var o=new Array(_.bitLength()),f=0;f<o.length;f++){var l=f/26|0,h=f%26;o[f]=(_.words[l]&1<<h)>>>h}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,f=0;f<this.length;f++){var l=this._zeroBits(this.words[f]);if(o+=l,l!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var f=0;f<o.length;f++)this.words[f]=this.words[f]|o.words[f];return this.strip()},n.prototype.ior=function(o){return i((this.negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},n.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},n.prototype.iuand=function(o){var f;this.length>o.length?f=o:f=this;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]&o.words[l];return this.length=f.length,this.strip()},n.prototype.iand=function(o){return i((this.negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},n.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},n.prototype.iuxor=function(o){var f,l;this.length>o.length?(f=this,l=o):(f=o,l=this);for(var h=0;h<l.length;h++)this.words[h]=f.words[h]^l.words[h];if(this!==f)for(;h<f.length;h++)this.words[h]=f.words[h];return this.length=f.length,this.strip()},n.prototype.ixor=function(o){return i((this.negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},n.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},n.prototype.inotn=function(o){i(typeof o=="number"&&o>=0);var f=Math.ceil(o/26)|0,l=o%26;this._expand(f),l>0&&f--;for(var h=0;h<f;h++)this.words[h]=~this.words[h]&67108863;return l>0&&(this.words[h]=~this.words[h]&67108863>>26-l),this.strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,f){i(typeof o=="number"&&o>=0);var l=o/26|0,h=o%26;return this._expand(l+1),f?this.words[l]=this.words[l]|1<<h:this.words[l]=this.words[l]&~(1<<h),this.strip()},n.prototype.iadd=function(o){var f;if(this.negative!==0&&o.negative===0)return this.negative=0,f=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,f=this.isub(o),o.negative=1,f._normSign();var l,h;this.length>o.length?(l=this,h=o):(l=o,h=this);for(var p=0,w=0;w<h.length;w++)f=(l.words[w]|0)+(h.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;for(;p!==0&&w<l.length;w++)f=(l.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;if(this.length=l.length,p!==0)this.words[this.length]=p,this.length++;else if(l!==this)for(;w<l.length;w++)this.words[w]=l.words[w];return this},n.prototype.add=function(o){var f;return o.negative!==0&&this.negative===0?(o.negative=0,f=this.sub(o),o.negative^=1,f):o.negative===0&&this.negative!==0?(this.negative=0,f=o.sub(this),this.negative=1,f):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var f=this.iadd(o);return o.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var l=this.cmp(o);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,p;l>0?(h=this,p=o):(h=o,p=this);for(var w=0,x=0;x<p.length;x++)f=(h.words[x]|0)-(p.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;for(;w!==0&&x<h.length;x++)f=(h.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;if(w===0&&x<h.length&&h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this.length=Math.max(this.length,x),h!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function P(_,o,f){f.negative=o.negative^_.negative;var l=_.length+o.length|0;f.length=l,l=l-1|0;var h=_.words[0]|0,p=o.words[0]|0,w=h*p,x=w&67108863,g=w/67108864|0;f.words[0]=x;for(var s=1;s<l;s++){for(var v=g>>>26,T=g&67108863,$=Math.min(s,o.length-1),G=Math.max(0,s-_.length+1);G<=$;G++){var ee=s-G|0;h=_.words[ee]|0,p=o.words[G]|0,w=h*p+T,v+=w/67108864|0,T=w&67108863}f.words[s]=T|0,g=v|0}return g!==0?f.words[s]=g|0:f.length--,f.strip()}var k=function(o,f,l){var h=o.words,p=f.words,w=l.words,x=0,g,s,v,T=h[0]|0,$=T&8191,G=T>>>13,ee=h[1]|0,A=ee&8191,E=ee>>>13,U=h[2]|0,K=U&8191,Z=U>>>13,b=h[3]|0,y=b&8191,O=b>>>13,q=h[4]|0,X=q&8191,D=q>>>13,N=h[5]|0,j=N&8191,z=N>>>13,se=h[6]|0,te=se&8191,ne=se>>>13,Ee=h[7]|0,Q=Ee&8191,ue=Ee>>>13,le=h[8]|0,ce=le&8191,pe=le>>>13,de=h[9]|0,ae=de&8191,fe=de>>>13,Te=p[0]|0,ve=Te&8191,Me=Te>>>13,Ke=p[1]|0,be=Ke&8191,Se=Ke>>>13,qe=p[2]|0,ye=qe&8191,_e=qe>>>13,Ve=p[3]|0,ge=Ve&8191,xe=Ve>>>13,Xe=p[4]|0,Re=Xe&8191,Le=Xe>>>13,at=p[5]|0,Ae=at&8191,Ne=at>>>13,rt=p[6]|0,Oe=rt&8191,De=rt>>>13,nt=p[7]|0,Ie=nt&8191,$e=nt>>>13,st=p[8]|0,Pe=st&8191,je=st>>>13,ht=p[9]|0,Ce=ht&8191,Fe=ht>>>13;l.negative=o.negative^f.negative,l.length=19,g=Math.imul($,ve),s=Math.imul($,Me),s=s+Math.imul(G,ve)|0,v=Math.imul(G,Me);var it=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(it>>>26)|0,it&=67108863,g=Math.imul(A,ve),s=Math.imul(A,Me),s=s+Math.imul(E,ve)|0,v=Math.imul(E,Me),g=g+Math.imul($,be)|0,s=s+Math.imul($,Se)|0,s=s+Math.imul(G,be)|0,v=v+Math.imul(G,Se)|0;var et=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(et>>>26)|0,et&=67108863,g=Math.imul(K,ve),s=Math.imul(K,Me),s=s+Math.imul(Z,ve)|0,v=Math.imul(Z,Me),g=g+Math.imul(A,be)|0,s=s+Math.imul(A,Se)|0,s=s+Math.imul(E,be)|0,v=v+Math.imul(E,Se)|0,g=g+Math.imul($,ye)|0,s=s+Math.imul($,_e)|0,s=s+Math.imul(G,ye)|0,v=v+Math.imul(G,_e)|0;var xt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(xt>>>26)|0,xt&=67108863,g=Math.imul(y,ve),s=Math.imul(y,Me),s=s+Math.imul(O,ve)|0,v=Math.imul(O,Me),g=g+Math.imul(K,be)|0,s=s+Math.imul(K,Se)|0,s=s+Math.imul(Z,be)|0,v=v+Math.imul(Z,Se)|0,g=g+Math.imul(A,ye)|0,s=s+Math.imul(A,_e)|0,s=s+Math.imul(E,ye)|0,v=v+Math.imul(E,_e)|0,g=g+Math.imul($,ge)|0,s=s+Math.imul($,xe)|0,s=s+Math.imul(G,ge)|0,v=v+Math.imul(G,xe)|0;var Tt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,g=Math.imul(X,ve),s=Math.imul(X,Me),s=s+Math.imul(D,ve)|0,v=Math.imul(D,Me),g=g+Math.imul(y,be)|0,s=s+Math.imul(y,Se)|0,s=s+Math.imul(O,be)|0,v=v+Math.imul(O,Se)|0,g=g+Math.imul(K,ye)|0,s=s+Math.imul(K,_e)|0,s=s+Math.imul(Z,ye)|0,v=v+Math.imul(Z,_e)|0,g=g+Math.imul(A,ge)|0,s=s+Math.imul(A,xe)|0,s=s+Math.imul(E,ge)|0,v=v+Math.imul(E,xe)|0,g=g+Math.imul($,Re)|0,s=s+Math.imul($,Le)|0,s=s+Math.imul(G,Re)|0,v=v+Math.imul(G,Le)|0;var Ot=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,g=Math.imul(j,ve),s=Math.imul(j,Me),s=s+Math.imul(z,ve)|0,v=Math.imul(z,Me),g=g+Math.imul(X,be)|0,s=s+Math.imul(X,Se)|0,s=s+Math.imul(D,be)|0,v=v+Math.imul(D,Se)|0,g=g+Math.imul(y,ye)|0,s=s+Math.imul(y,_e)|0,s=s+Math.imul(O,ye)|0,v=v+Math.imul(O,_e)|0,g=g+Math.imul(K,ge)|0,s=s+Math.imul(K,xe)|0,s=s+Math.imul(Z,ge)|0,v=v+Math.imul(Z,xe)|0,g=g+Math.imul(A,Re)|0,s=s+Math.imul(A,Le)|0,s=s+Math.imul(E,Re)|0,v=v+Math.imul(E,Le)|0,g=g+Math.imul($,Ae)|0,s=s+Math.imul($,Ne)|0,s=s+Math.imul(G,Ae)|0,v=v+Math.imul(G,Ne)|0;var Ct=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,g=Math.imul(te,ve),s=Math.imul(te,Me),s=s+Math.imul(ne,ve)|0,v=Math.imul(ne,Me),g=g+Math.imul(j,be)|0,s=s+Math.imul(j,Se)|0,s=s+Math.imul(z,be)|0,v=v+Math.imul(z,Se)|0,g=g+Math.imul(X,ye)|0,s=s+Math.imul(X,_e)|0,s=s+Math.imul(D,ye)|0,v=v+Math.imul(D,_e)|0,g=g+Math.imul(y,ge)|0,s=s+Math.imul(y,xe)|0,s=s+Math.imul(O,ge)|0,v=v+Math.imul(O,xe)|0,g=g+Math.imul(K,Re)|0,s=s+Math.imul(K,Le)|0,s=s+Math.imul(Z,Re)|0,v=v+Math.imul(Z,Le)|0,g=g+Math.imul(A,Ae)|0,s=s+Math.imul(A,Ne)|0,s=s+Math.imul(E,Ae)|0,v=v+Math.imul(E,Ne)|0,g=g+Math.imul($,Oe)|0,s=s+Math.imul($,De)|0,s=s+Math.imul(G,Oe)|0,v=v+Math.imul(G,De)|0;var kt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(kt>>>26)|0,kt&=67108863,g=Math.imul(Q,ve),s=Math.imul(Q,Me),s=s+Math.imul(ue,ve)|0,v=Math.imul(ue,Me),g=g+Math.imul(te,be)|0,s=s+Math.imul(te,Se)|0,s=s+Math.imul(ne,be)|0,v=v+Math.imul(ne,Se)|0,g=g+Math.imul(j,ye)|0,s=s+Math.imul(j,_e)|0,s=s+Math.imul(z,ye)|0,v=v+Math.imul(z,_e)|0,g=g+Math.imul(X,ge)|0,s=s+Math.imul(X,xe)|0,s=s+Math.imul(D,ge)|0,v=v+Math.imul(D,xe)|0,g=g+Math.imul(y,Re)|0,s=s+Math.imul(y,Le)|0,s=s+Math.imul(O,Re)|0,v=v+Math.imul(O,Le)|0,g=g+Math.imul(K,Ae)|0,s=s+Math.imul(K,Ne)|0,s=s+Math.imul(Z,Ae)|0,v=v+Math.imul(Z,Ne)|0,g=g+Math.imul(A,Oe)|0,s=s+Math.imul(A,De)|0,s=s+Math.imul(E,Oe)|0,v=v+Math.imul(E,De)|0,g=g+Math.imul($,Ie)|0,s=s+Math.imul($,$e)|0,s=s+Math.imul(G,Ie)|0,v=v+Math.imul(G,$e)|0;var Ut=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,g=Math.imul(ce,ve),s=Math.imul(ce,Me),s=s+Math.imul(pe,ve)|0,v=Math.imul(pe,Me),g=g+Math.imul(Q,be)|0,s=s+Math.imul(Q,Se)|0,s=s+Math.imul(ue,be)|0,v=v+Math.imul(ue,Se)|0,g=g+Math.imul(te,ye)|0,s=s+Math.imul(te,_e)|0,s=s+Math.imul(ne,ye)|0,v=v+Math.imul(ne,_e)|0,g=g+Math.imul(j,ge)|0,s=s+Math.imul(j,xe)|0,s=s+Math.imul(z,ge)|0,v=v+Math.imul(z,xe)|0,g=g+Math.imul(X,Re)|0,s=s+Math.imul(X,Le)|0,s=s+Math.imul(D,Re)|0,v=v+Math.imul(D,Le)|0,g=g+Math.imul(y,Ae)|0,s=s+Math.imul(y,Ne)|0,s=s+Math.imul(O,Ae)|0,v=v+Math.imul(O,Ne)|0,g=g+Math.imul(K,Oe)|0,s=s+Math.imul(K,De)|0,s=s+Math.imul(Z,Oe)|0,v=v+Math.imul(Z,De)|0,g=g+Math.imul(A,Ie)|0,s=s+Math.imul(A,$e)|0,s=s+Math.imul(E,Ie)|0,v=v+Math.imul(E,$e)|0,g=g+Math.imul($,Pe)|0,s=s+Math.imul($,je)|0,s=s+Math.imul(G,Pe)|0,v=v+Math.imul(G,je)|0;var Ht=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,g=Math.imul(ae,ve),s=Math.imul(ae,Me),s=s+Math.imul(fe,ve)|0,v=Math.imul(fe,Me),g=g+Math.imul(ce,be)|0,s=s+Math.imul(ce,Se)|0,s=s+Math.imul(pe,be)|0,v=v+Math.imul(pe,Se)|0,g=g+Math.imul(Q,ye)|0,s=s+Math.imul(Q,_e)|0,s=s+Math.imul(ue,ye)|0,v=v+Math.imul(ue,_e)|0,g=g+Math.imul(te,ge)|0,s=s+Math.imul(te,xe)|0,s=s+Math.imul(ne,ge)|0,v=v+Math.imul(ne,xe)|0,g=g+Math.imul(j,Re)|0,s=s+Math.imul(j,Le)|0,s=s+Math.imul(z,Re)|0,v=v+Math.imul(z,Le)|0,g=g+Math.imul(X,Ae)|0,s=s+Math.imul(X,Ne)|0,s=s+Math.imul(D,Ae)|0,v=v+Math.imul(D,Ne)|0,g=g+Math.imul(y,Oe)|0,s=s+Math.imul(y,De)|0,s=s+Math.imul(O,Oe)|0,v=v+Math.imul(O,De)|0,g=g+Math.imul(K,Ie)|0,s=s+Math.imul(K,$e)|0,s=s+Math.imul(Z,Ie)|0,v=v+Math.imul(Z,$e)|0,g=g+Math.imul(A,Pe)|0,s=s+Math.imul(A,je)|0,s=s+Math.imul(E,Pe)|0,v=v+Math.imul(E,je)|0,g=g+Math.imul($,Ce)|0,s=s+Math.imul($,Fe)|0,s=s+Math.imul(G,Ce)|0,v=v+Math.imul(G,Fe)|0;var Bt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,g=Math.imul(ae,be),s=Math.imul(ae,Se),s=s+Math.imul(fe,be)|0,v=Math.imul(fe,Se),g=g+Math.imul(ce,ye)|0,s=s+Math.imul(ce,_e)|0,s=s+Math.imul(pe,ye)|0,v=v+Math.imul(pe,_e)|0,g=g+Math.imul(Q,ge)|0,s=s+Math.imul(Q,xe)|0,s=s+Math.imul(ue,ge)|0,v=v+Math.imul(ue,xe)|0,g=g+Math.imul(te,Re)|0,s=s+Math.imul(te,Le)|0,s=s+Math.imul(ne,Re)|0,v=v+Math.imul(ne,Le)|0,g=g+Math.imul(j,Ae)|0,s=s+Math.imul(j,Ne)|0,s=s+Math.imul(z,Ae)|0,v=v+Math.imul(z,Ne)|0,g=g+Math.imul(X,Oe)|0,s=s+Math.imul(X,De)|0,s=s+Math.imul(D,Oe)|0,v=v+Math.imul(D,De)|0,g=g+Math.imul(y,Ie)|0,s=s+Math.imul(y,$e)|0,s=s+Math.imul(O,Ie)|0,v=v+Math.imul(O,$e)|0,g=g+Math.imul(K,Pe)|0,s=s+Math.imul(K,je)|0,s=s+Math.imul(Z,Pe)|0,v=v+Math.imul(Z,je)|0,g=g+Math.imul(A,Ce)|0,s=s+Math.imul(A,Fe)|0,s=s+Math.imul(E,Ce)|0,v=v+Math.imul(E,Fe)|0;var dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(dt>>>26)|0,dt&=67108863,g=Math.imul(ae,ye),s=Math.imul(ae,_e),s=s+Math.imul(fe,ye)|0,v=Math.imul(fe,_e),g=g+Math.imul(ce,ge)|0,s=s+Math.imul(ce,xe)|0,s=s+Math.imul(pe,ge)|0,v=v+Math.imul(pe,xe)|0,g=g+Math.imul(Q,Re)|0,s=s+Math.imul(Q,Le)|0,s=s+Math.imul(ue,Re)|0,v=v+Math.imul(ue,Le)|0,g=g+Math.imul(te,Ae)|0,s=s+Math.imul(te,Ne)|0,s=s+Math.imul(ne,Ae)|0,v=v+Math.imul(ne,Ne)|0,g=g+Math.imul(j,Oe)|0,s=s+Math.imul(j,De)|0,s=s+Math.imul(z,Oe)|0,v=v+Math.imul(z,De)|0,g=g+Math.imul(X,Ie)|0,s=s+Math.imul(X,$e)|0,s=s+Math.imul(D,Ie)|0,v=v+Math.imul(D,$e)|0,g=g+Math.imul(y,Pe)|0,s=s+Math.imul(y,je)|0,s=s+Math.imul(O,Pe)|0,v=v+Math.imul(O,je)|0,g=g+Math.imul(K,Ce)|0,s=s+Math.imul(K,Fe)|0,s=s+Math.imul(Z,Ce)|0,v=v+Math.imul(Z,Fe)|0;var At=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(At>>>26)|0,At&=67108863,g=Math.imul(ae,ge),s=Math.imul(ae,xe),s=s+Math.imul(fe,ge)|0,v=Math.imul(fe,xe),g=g+Math.imul(ce,Re)|0,s=s+Math.imul(ce,Le)|0,s=s+Math.imul(pe,Re)|0,v=v+Math.imul(pe,Le)|0,g=g+Math.imul(Q,Ae)|0,s=s+Math.imul(Q,Ne)|0,s=s+Math.imul(ue,Ae)|0,v=v+Math.imul(ue,Ne)|0,g=g+Math.imul(te,Oe)|0,s=s+Math.imul(te,De)|0,s=s+Math.imul(ne,Oe)|0,v=v+Math.imul(ne,De)|0,g=g+Math.imul(j,Ie)|0,s=s+Math.imul(j,$e)|0,s=s+Math.imul(z,Ie)|0,v=v+Math.imul(z,$e)|0,g=g+Math.imul(X,Pe)|0,s=s+Math.imul(X,je)|0,s=s+Math.imul(D,Pe)|0,v=v+Math.imul(D,je)|0,g=g+Math.imul(y,Ce)|0,s=s+Math.imul(y,Fe)|0,s=s+Math.imul(O,Ce)|0,v=v+Math.imul(O,Fe)|0;var _t=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(_t>>>26)|0,_t&=67108863,g=Math.imul(ae,Re),s=Math.imul(ae,Le),s=s+Math.imul(fe,Re)|0,v=Math.imul(fe,Le),g=g+Math.imul(ce,Ae)|0,s=s+Math.imul(ce,Ne)|0,s=s+Math.imul(pe,Ae)|0,v=v+Math.imul(pe,Ne)|0,g=g+Math.imul(Q,Oe)|0,s=s+Math.imul(Q,De)|0,s=s+Math.imul(ue,Oe)|0,v=v+Math.imul(ue,De)|0,g=g+Math.imul(te,Ie)|0,s=s+Math.imul(te,$e)|0,s=s+Math.imul(ne,Ie)|0,v=v+Math.imul(ne,$e)|0,g=g+Math.imul(j,Pe)|0,s=s+Math.imul(j,je)|0,s=s+Math.imul(z,Pe)|0,v=v+Math.imul(z,je)|0,g=g+Math.imul(X,Ce)|0,s=s+Math.imul(X,Fe)|0,s=s+Math.imul(D,Ce)|0,v=v+Math.imul(D,Fe)|0;var mt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(mt>>>26)|0,mt&=67108863,g=Math.imul(ae,Ae),s=Math.imul(ae,Ne),s=s+Math.imul(fe,Ae)|0,v=Math.imul(fe,Ne),g=g+Math.imul(ce,Oe)|0,s=s+Math.imul(ce,De)|0,s=s+Math.imul(pe,Oe)|0,v=v+Math.imul(pe,De)|0,g=g+Math.imul(Q,Ie)|0,s=s+Math.imul(Q,$e)|0,s=s+Math.imul(ue,Ie)|0,v=v+Math.imul(ue,$e)|0,g=g+Math.imul(te,Pe)|0,s=s+Math.imul(te,je)|0,s=s+Math.imul(ne,Pe)|0,v=v+Math.imul(ne,je)|0,g=g+Math.imul(j,Ce)|0,s=s+Math.imul(j,Fe)|0,s=s+Math.imul(z,Ce)|0,v=v+Math.imul(z,Fe)|0;var It=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(It>>>26)|0,It&=67108863,g=Math.imul(ae,Oe),s=Math.imul(ae,De),s=s+Math.imul(fe,Oe)|0,v=Math.imul(fe,De),g=g+Math.imul(ce,Ie)|0,s=s+Math.imul(ce,$e)|0,s=s+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,$e)|0,g=g+Math.imul(Q,Pe)|0,s=s+Math.imul(Q,je)|0,s=s+Math.imul(ue,Pe)|0,v=v+Math.imul(ue,je)|0,g=g+Math.imul(te,Ce)|0,s=s+Math.imul(te,Fe)|0,s=s+Math.imul(ne,Ce)|0,v=v+Math.imul(ne,Fe)|0;var vt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(vt>>>26)|0,vt&=67108863,g=Math.imul(ae,Ie),s=Math.imul(ae,$e),s=s+Math.imul(fe,Ie)|0,v=Math.imul(fe,$e),g=g+Math.imul(ce,Pe)|0,s=s+Math.imul(ce,je)|0,s=s+Math.imul(pe,Pe)|0,v=v+Math.imul(pe,je)|0,g=g+Math.imul(Q,Ce)|0,s=s+Math.imul(Q,Fe)|0,s=s+Math.imul(ue,Ce)|0,v=v+Math.imul(ue,Fe)|0;var yt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(yt>>>26)|0,yt&=67108863,g=Math.imul(ae,Pe),s=Math.imul(ae,je),s=s+Math.imul(fe,Pe)|0,v=Math.imul(fe,je),g=g+Math.imul(ce,Ce)|0,s=s+Math.imul(ce,Fe)|0,s=s+Math.imul(pe,Ce)|0,v=v+Math.imul(pe,Fe)|0;var Dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,g=Math.imul(ae,Ce),s=Math.imul(ae,Fe),s=s+Math.imul(fe,Ce)|0,v=Math.imul(fe,Fe);var Ft=(x+g|0)+((s&8191)<<13)|0;return x=(v+(s>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,w[0]=it,w[1]=et,w[2]=xt,w[3]=Tt,w[4]=Ot,w[5]=Ct,w[6]=kt,w[7]=Ut,w[8]=Ht,w[9]=Bt,w[10]=dt,w[11]=At,w[12]=_t,w[13]=mt,w[14]=It,w[15]=vt,w[16]=yt,w[17]=Dt,w[18]=Ft,x!==0&&(w[19]=x,l.length++),l};Math.imul||(k=P);function L(_,o,f){f.negative=o.negative^_.negative,f.length=_.length+o.length;for(var l=0,h=0,p=0;p<f.length-1;p++){var w=h;h=0;for(var x=l&67108863,g=Math.min(p,o.length-1),s=Math.max(0,p-_.length+1);s<=g;s++){var v=p-s,T=_.words[v]|0,$=o.words[s]|0,G=T*$,ee=G&67108863;w=w+(G/67108864|0)|0,ee=ee+x|0,x=ee&67108863,w=w+(ee>>>26)|0,h+=w>>>26,w&=67108863}f.words[p]=x,l=w,w=h}return l!==0?f.words[p]=l:f.length--,f.strip()}function I(_,o,f){var l=new B;return l.mulp(_,o,f)}n.prototype.mulTo=function(o,f){var l,h=this.length+o.length;return this.length===10&&o.length===10?l=k(this,o,f):h<63?l=P(this,o,f):h<1024?l=L(this,o,f):l=I(this,o,f),l};function B(_,o){this.x=_,this.y=o}B.prototype.makeRBT=function(o){for(var f=new Array(o),l=n.prototype._countBits(o)-1,h=0;h<o;h++)f[h]=this.revBin(h,l,o);return f},B.prototype.revBin=function(o,f,l){if(o===0||o===l-1)return o;for(var h=0,p=0;p<f;p++)h|=(o&1)<<f-p-1,o>>=1;return h},B.prototype.permute=function(o,f,l,h,p,w){for(var x=0;x<w;x++)h[x]=f[o[x]],p[x]=l[o[x]]},B.prototype.transform=function(o,f,l,h,p,w){this.permute(w,o,f,l,h,p);for(var x=1;x<p;x<<=1)for(var g=x<<1,s=Math.cos(2*Math.PI/g),v=Math.sin(2*Math.PI/g),T=0;T<p;T+=g)for(var $=s,G=v,ee=0;ee<x;ee++){var A=l[T+ee],E=h[T+ee],U=l[T+ee+x],K=h[T+ee+x],Z=$*U-G*K;K=$*K+G*U,U=Z,l[T+ee]=A+U,h[T+ee]=E+K,l[T+ee+x]=A-U,h[T+ee+x]=E-K,ee!==g&&(Z=s*$-v*G,G=s*G+v*$,$=Z)}},B.prototype.guessLen13b=function(o,f){var l=Math.max(f,o)|1,h=l&1,p=0;for(l=l/2|0;l;l=l>>>1)p++;return 1<<p+1+h},B.prototype.conjugate=function(o,f,l){if(!(l<=1))for(var h=0;h<l/2;h++){var p=o[h];o[h]=o[l-h-1],o[l-h-1]=p,p=f[h],f[h]=-f[l-h-1],f[l-h-1]=-p}},B.prototype.normalize13b=function(o,f){for(var l=0,h=0;h<f/2;h++){var p=Math.round(o[2*h+1]/f)*8192+Math.round(o[2*h]/f)+l;o[h]=p&67108863,p<67108864?l=0:l=p/67108864|0}return o},B.prototype.convert13b=function(o,f,l,h){for(var p=0,w=0;w<f;w++)p=p+(o[w]|0),l[2*w]=p&8191,p=p>>>13,l[2*w+1]=p&8191,p=p>>>13;for(w=2*f;w<h;++w)l[w]=0;i(p===0),i((p&-8192)===0)},B.prototype.stub=function(o){for(var f=new Array(o),l=0;l<o;l++)f[l]=0;return f},B.prototype.mulp=function(o,f,l){var h=2*this.guessLen13b(o.length,f.length),p=this.makeRBT(h),w=this.stub(h),x=new Array(h),g=new Array(h),s=new Array(h),v=new Array(h),T=new Array(h),$=new Array(h),G=l.words;G.length=h,this.convert13b(o.words,o.length,x,h),this.convert13b(f.words,f.length,v,h),this.transform(x,w,g,s,h,p),this.transform(v,w,T,$,h,p);for(var ee=0;ee<h;ee++){var A=g[ee]*T[ee]-s[ee]*$[ee];s[ee]=g[ee]*$[ee]+s[ee]*T[ee],g[ee]=A}return this.conjugate(g,s,h),this.transform(g,s,G,w,h,p),this.conjugate(G,w,h),this.normalize13b(G,h),l.negative=o.negative^f.negative,l.length=o.length+f.length,l.strip()},n.prototype.mul=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),this.mulTo(o,f)},n.prototype.mulf=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),I(this,o,f)},n.prototype.imul=function(o){return this.clone().mulTo(o,this)},n.prototype.imuln=function(o){i(typeof o=="number"),i(o<67108864);for(var f=0,l=0;l<this.length;l++){var h=(this.words[l]|0)*o,p=(h&67108863)+(f&67108863);f>>=26,f+=h/67108864|0,f+=p>>>26,this.words[l]=p&67108863}return f!==0&&(this.words[l]=f,this.length++),this},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var f=C(o);if(f.length===0)return new n(1);for(var l=this,h=0;h<f.length&&f[h]===0;h++,l=l.sqr());if(++h<f.length)for(var p=l.sqr();h<f.length;h++,p=p.sqr())f[h]!==0&&(l=l.mul(p));return l},n.prototype.iushln=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=67108863>>>26-f<<26-f,p;if(f!==0){var w=0;for(p=0;p<this.length;p++){var x=this.words[p]&h,g=(this.words[p]|0)-x<<f;this.words[p]=g|w,w=x>>>26-f}w&&(this.words[p]=w,this.length++)}if(l!==0){for(p=this.length-1;p>=0;p--)this.words[p+l]=this.words[p];for(p=0;p<l;p++)this.words[p]=0;this.length+=l}return this.strip()},n.prototype.ishln=function(o){return i(this.negative===0),this.iushln(o)},n.prototype.iushrn=function(o,f,l){i(typeof o=="number"&&o>=0);var h;f?h=(f-f%26)/26:h=0;var p=o%26,w=Math.min((o-p)/26,this.length),x=67108863^67108863>>>p<<p,g=l;if(h-=w,h=Math.max(0,h),g){for(var s=0;s<w;s++)g.words[s]=this.words[s];g.length=w}if(w!==0)if(this.length>w)for(this.length-=w,s=0;s<this.length;s++)this.words[s]=this.words[s+w];else this.words[0]=0,this.length=1;var v=0;for(s=this.length-1;s>=0&&(v!==0||s>=h);s--){var T=this.words[s]|0;this.words[s]=v<<26-p|T>>>p,v=T&x}return g&&v!==0&&(g.words[g.length++]=v),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(o,f,l){return i(this.negative===0),this.iushrn(o,f,l)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return!1;var p=this.words[l];return!!(p&h)},n.prototype.imaskn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(f!==0&&l++,this.length=Math.min(l,this.length),f!==0){var h=67108863^67108863>>>f<<f;this.words[this.length-1]&=h}return this.strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return i(typeof o=="number"),i(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},n.prototype._iaddn=function(o){this.words[0]+=o;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},n.prototype.isubn=function(o){if(i(typeof o=="number"),i(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,f,l){var h=o.length+l,p;this._expand(h);var w,x=0;for(p=0;p<o.length;p++){w=(this.words[p+l]|0)+x;var g=(o.words[p]|0)*f;w-=g&67108863,x=(w>>26)-(g/67108864|0),this.words[p+l]=w&67108863}for(;p<this.length-l;p++)w=(this.words[p+l]|0)+x,x=w>>26,this.words[p+l]=w&67108863;if(x===0)return this.strip();for(i(x===-1),x=0,p=0;p<this.length;p++)w=-(this.words[p]|0)+x,x=w>>26,this.words[p]=w&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(o,f){var l=this.length-o.length,h=this.clone(),p=o,w=p.words[p.length-1]|0,x=this._countBits(w);l=26-x,l!==0&&(p=p.ushln(l),h.iushln(l),w=p.words[p.length-1]|0);var g=h.length-p.length,s;if(f!=="mod"){s=new n(null),s.length=g+1,s.words=new Array(s.length);for(var v=0;v<s.length;v++)s.words[v]=0}var T=h.clone()._ishlnsubmul(p,1,g);T.negative===0&&(h=T,s&&(s.words[g]=1));for(var $=g-1;$>=0;$--){var G=(h.words[p.length+$]|0)*67108864+(h.words[p.length+$-1]|0);for(G=Math.min(G/w|0,67108863),h._ishlnsubmul(p,G,$);h.negative!==0;)G--,h.negative=0,h._ishlnsubmul(p,1,$),h.isZero()||(h.negative^=1);s&&(s.words[$]=G)}return s&&s.strip(),h.strip(),f!=="div"&&l!==0&&h.iushrn(l),{div:s||null,mod:h}},n.prototype.divmod=function(o,f,l){if(i(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,p,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,f),f!=="mod"&&(h=w.div.neg()),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.iadd(o)),{div:h,mod:p}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),f),f!=="mod"&&(h=w.div.neg()),{div:h,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),f),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.isub(o)),{div:w.div,mod:p}):o.length>this.length||this.cmp(o)<0?{div:new n(0),mod:this}:o.length===1?f==="div"?{div:this.divn(o.words[0]),mod:null}:f==="mod"?{div:null,mod:new n(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modn(o.words[0]))}:this._wordDiv(o,f)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var f=this.divmod(o);if(f.mod.isZero())return f.div;var l=f.div.negative!==0?f.mod.isub(o):f.mod,h=o.ushrn(1),p=o.andln(1),w=l.cmp(h);return w<0||p===1&&w===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},n.prototype.modn=function(o){i(o<=67108863);for(var f=(1<<26)%o,l=0,h=this.length-1;h>=0;h--)l=(f*l+(this.words[h]|0))%o;return l},n.prototype.idivn=function(o){i(o<=67108863);for(var f=0,l=this.length-1;l>=0;l--){var h=(this.words[l]|0)+f*67108864;this.words[l]=h/o|0,f=h%o}return this.strip()},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=new n(0),x=new n(1),g=0;f.isEven()&&l.isEven();)f.iushrn(1),l.iushrn(1),++g;for(var s=l.clone(),v=f.clone();!f.isZero();){for(var T=0,$=1;!(f.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(f.iushrn(T);T-- >0;)(h.isOdd()||p.isOdd())&&(h.iadd(s),p.isub(v)),h.iushrn(1),p.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(s),x.isub(v)),w.iushrn(1),x.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(w),p.isub(x)):(l.isub(f),w.isub(h),x.isub(p))}return{a:w,b:x,gcd:l.iushln(g)}},n.prototype._invmp=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=l.clone();f.cmpn(1)>0&&l.cmpn(1)>0;){for(var x=0,g=1;!(f.words[0]&g)&&x<26;++x,g<<=1);if(x>0)for(f.iushrn(x);x-- >0;)h.isOdd()&&h.iadd(w),h.iushrn(1);for(var s=0,v=1;!(l.words[0]&v)&&s<26;++s,v<<=1);if(s>0)for(l.iushrn(s);s-- >0;)p.isOdd()&&p.iadd(w),p.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(p)):(l.isub(f),p.isub(h))}var T;return f.cmpn(1)===0?T=h:T=p,T.cmpn(0)<0&&T.iadd(o),T},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var f=this.clone(),l=o.clone();f.negative=0,l.negative=0;for(var h=0;f.isEven()&&l.isEven();h++)f.iushrn(1),l.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;l.isEven();)l.iushrn(1);var p=f.cmp(l);if(p<0){var w=f;f=l,l=w}else if(p===0||l.cmpn(1)===0)break;f.isub(l)}while(!0);return l.iushln(h)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(o){return this.words[0]&o},n.prototype.bincn=function(o){i(typeof o=="number");var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return this._expand(l+1),this.words[l]|=h,this;for(var p=h,w=l;p!==0&&w<this.length;w++){var x=this.words[w]|0;x+=p,p=x>>>26,x&=67108863,this.words[w]=x}return p!==0&&(this.words[w]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(o){var f=o<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var l;if(this.length>1)l=1;else{f&&(o=-o),i(o<=67108863,"Number is too big");var h=this.words[0]|0;l=h===o?0:h<o?-1:1}return this.negative!==0?-l|0:l},n.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var f=this.ucmp(o);return this.negative!==0?-f|0:f},n.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var f=0,l=this.length-1;l>=0;l--){var h=this.words[l]|0,p=o.words[l]|0;if(h!==p){h<p?f=-1:h>p&&(f=1);break}}return f},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new V(o)},n.prototype.toRed=function(o){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},n.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(o){return this.red=o,this},n.prototype.forceRed=function(o){return i(!this.red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},n.prototype.redIAdd=function(o){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},n.prototype.redSub=function(o){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},n.prototype.redISub=function(o){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},n.prototype.redShl=function(o){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},n.prototype.redMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},n.prototype.redIMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},n.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(o){return i(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var H={k256:null,p224:null,p192:null,p25519:null};function F(_,o){this.name=_,this.p=new n(o,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil(this.n/13)),o},F.prototype.ireduce=function(o){var f=o,l;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),l=f.bitLength();while(l>this.n);var h=l<this.n?-1:f.ucmp(this.p);return h===0?(f.words[0]=0,f.length=1):h>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},F.prototype.split=function(o,f){o.iushrn(this.n,0,f)},F.prototype.imulK=function(o){return o.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(W,F),W.prototype.split=function(o,f){for(var l=4194303,h=Math.min(o.length,9),p=0;p<h;p++)f.words[p]=o.words[p];if(f.length=h,o.length<=9){o.words[0]=0,o.length=1;return}var w=o.words[9];for(f.words[f.length++]=w&l,p=10;p<o.length;p++){var x=o.words[p]|0;o.words[p-10]=(x&l)<<4|w>>>22,w=x}w>>>=22,o.words[p-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},W.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var f=0,l=0;l<o.length;l++){var h=o.words[l]|0;f+=h*977,o.words[l]=f&67108863,f=h*64+(f/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Y(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(Y,F);function ie(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(ie,F);function J(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(J,F),J.prototype.imulK=function(o){for(var f=0,l=0;l<o.length;l++){var h=(o.words[l]|0)*19+f,p=h&67108863;h>>>=26,o.words[l]=p,f=h}return f!==0&&(o.words[o.length++]=f),o},n._prime=function(o){if(H[o])return H[o];var f;if(o==="k256")f=new W;else if(o==="p224")f=new Y;else if(o==="p192")f=new ie;else if(o==="p25519")f=new J;else throw new Error("Unknown prime "+o);return H[o]=f,f};function V(_){if(typeof _=="string"){var o=n._prime(_);this.m=o.p,this.prime=o}else i(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}V.prototype._verify1=function(o){i(o.negative===0,"red works only with positives"),i(o.red,"red works only with red numbers")},V.prototype._verify2=function(o,f){i((o.negative|f.negative)===0,"red works only with positives"),i(o.red&&o.red===f.red,"red works only with red numbers")},V.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},V.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},V.prototype.add=function(o,f){this._verify2(o,f);var l=o.add(f);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},V.prototype.iadd=function(o,f){this._verify2(o,f);var l=o.iadd(f);return l.cmp(this.m)>=0&&l.isub(this.m),l},V.prototype.sub=function(o,f){this._verify2(o,f);var l=o.sub(f);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},V.prototype.isub=function(o,f){this._verify2(o,f);var l=o.isub(f);return l.cmpn(0)<0&&l.iadd(this.m),l},V.prototype.shl=function(o,f){return this._verify1(o),this.imod(o.ushln(f))},V.prototype.imul=function(o,f){return this._verify2(o,f),this.imod(o.imul(f))},V.prototype.mul=function(o,f){return this._verify2(o,f),this.imod(o.mul(f))},V.prototype.isqr=function(o){return this.imul(o,o.clone())},V.prototype.sqr=function(o){return this.mul(o,o)},V.prototype.sqrt=function(o){if(o.isZero())return o.clone();var f=this.m.andln(3);if(i(f%2===1),f===3){var l=this.m.add(new n(1)).iushrn(2);return this.pow(o,l)}for(var h=this.m.subn(1),p=0;!h.isZero()&&h.andln(1)===0;)p++,h.iushrn(1);i(!h.isZero());var w=new n(1).toRed(this),x=w.redNeg(),g=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new n(2*s*s).toRed(this);this.pow(s,g).cmp(x)!==0;)s.redIAdd(x);for(var v=this.pow(s,h),T=this.pow(o,h.addn(1).iushrn(1)),$=this.pow(o,h),G=p;$.cmp(w)!==0;){for(var ee=$,A=0;ee.cmp(w)!==0;A++)ee=ee.redSqr();i(A<G);var E=this.pow(v,new n(1).iushln(G-A-1));T=T.redMul(E),v=E.redSqr(),$=$.redMul(v),G=A}return T},V.prototype.invm=function(o){var f=o._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},V.prototype.pow=function(o,f){if(f.isZero())return new n(1).toRed(this);if(f.cmpn(1)===0)return o.clone();var l=4,h=new Array(1<<l);h[0]=new n(1).toRed(this),h[1]=o;for(var p=2;p<h.length;p++)h[p]=this.mul(h[p-1],o);var w=h[0],x=0,g=0,s=f.bitLength()%26;for(s===0&&(s=26),p=f.length-1;p>=0;p--){for(var v=f.words[p],T=s-1;T>=0;T--){var $=v>>T&1;if(w!==h[0]&&(w=this.sqr(w)),$===0&&x===0){g=0;continue}x<<=1,x|=$,g++,!(g!==l&&(p!==0||T!==0))&&(w=this.mul(w,h[x]),g=0,x=0)}s=26}return w},V.prototype.convertTo=function(o){var f=o.umod(this.m);return f===o?f.clone():f},V.prototype.convertFrom=function(o){var f=o.clone();return f.red=null,f},n.mont=function(o){return new oe(o)};function oe(_){V.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(oe,V),oe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},oe.prototype.convertFrom=function(o){var f=this.imod(o.mul(this.rinv));return f.red=null,f},oe.prototype.imul=function(o,f){if(o.isZero()||f.isZero())return o.words[0]=0,o.length=1,o;var l=o.imul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.mul=function(o,f){if(o.isZero()||f.isZero())return new n(0)._forceRed(this);var l=o.mul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.invm=function(o){var f=this.imod(o._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,Ye)})(Hg);var o4=Hg.exports,a4={},qg={},Ml=ke,ns=Ml.Buffer,li={},hi;for(hi in Ml)Ml.hasOwnProperty(hi)&&(hi==="SlowBuffer"||hi==="Buffer"||(li[hi]=Ml[hi]));var os=li.Buffer={};for(hi in ns)ns.hasOwnProperty(hi)&&(hi==="allocUnsafe"||hi==="allocUnsafeSlow"||(os[hi]=ns[hi]));li.Buffer.prototype=ns.prototype;(!os.from||os.from===Uint8Array.from)&&(os.from=function(e,t,r){if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&typeof e.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return ns(e,t,r)});os.alloc||(os.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var i=ns(e);return!t||t.length===0?i.fill(0):typeof r=="string"?i.fill(t,r):i.fill(t),i});if(!li.kStringMaxLength)try{li.kStringMaxLength=we.binding("buffer").kStringMaxLength}catch{}li.constants||(li.constants={MAX_LENGTH:li.kMaxLength},li.kStringMaxLength&&(li.constants.MAX_STRING_LENGTH=li.kStringMaxLength));var Wg=li,bc={};const uK=Ze;function Ti(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}bc.Reporter=Ti;Ti.prototype.isError=function(t){return t instanceof Ts};Ti.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}};Ti.prototype.restore=function(t){const r=this._reporterState;r.obj=t.obj,r.path=r.path.slice(0,t.pathLen)};Ti.prototype.enterKey=function(t){return this._reporterState.path.push(t)};Ti.prototype.exitKey=function(t){const r=this._reporterState;r.path=r.path.slice(0,t-1)};Ti.prototype.leaveKey=function(t,r,i){const a=this._reporterState;this.exitKey(t),a.obj!==null&&(a.obj[r]=i)};Ti.prototype.path=function(){return this._reporterState.path.join("/")};Ti.prototype.enterObject=function(){const t=this._reporterState,r=t.obj;return t.obj={},r};Ti.prototype.leaveObject=function(t){const r=this._reporterState,i=r.obj;return r.obj=t,i};Ti.prototype.error=function(t){let r;const i=this._reporterState,a=t instanceof Ts;if(a?r=t:r=new Ts(i.path.map(function(n){return"["+JSON.stringify(n)+"]"}).join(""),t.message||t,t.stack),!i.options.partial)throw r;return a||i.errors.push(r),r};Ti.prototype.wrapResult=function(t){const r=this._reporterState;return r.options.partial?{result:this.isError(t)?null:t,errors:r.errors}:t};function Ts(e,t){this.path=e,this.rethrow(t)}uK(Ts,Error);Ts.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Ts),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this};var va={};const lK=Ze,wc=bc.Reporter,Os=Wg.Buffer;function mi(e,t){if(wc.call(this,t),!Os.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}lK(mi,wc);va.DecoderBuffer=mi;mi.isDecoderBuffer=function(t){return t instanceof mi?!0:typeof t=="object"&&Os.isBuffer(t.base)&&t.constructor.name==="DecoderBuffer"&&typeof t.offset=="number"&&typeof t.length=="number"&&typeof t.save=="function"&&typeof t.restore=="function"&&typeof t.isEmpty=="function"&&typeof t.readUInt8=="function"&&typeof t.skip=="function"&&typeof t.raw=="function"};mi.prototype.save=function(){return{offset:this.offset,reporter:wc.prototype.save.call(this)}};mi.prototype.restore=function(t){const r=new mi(this.base);return r.offset=t.offset,r.length=this.offset,this.offset=t.offset,wc.prototype.restore.call(this,t.reporter),r};mi.prototype.isEmpty=function(){return this.offset===this.length};mi.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")};mi.prototype.skip=function(t,r){if(!(this.offset+t<=this.length))return this.error(r||"DecoderBuffer overrun");const i=new mi(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+t,this.offset+=t,i};mi.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)};function Is(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(r){return Is.isEncoderBuffer(r)||(r=new Is(r,t)),this.length+=r.length,r},this);else if(typeof e=="number"){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if(typeof e=="string")this.value=e,this.length=Os.byteLength(e);else if(Os.isBuffer(e))this.value=e,this.length=e.length;else return t.error("Unsupported type: "+typeof e)}va.EncoderBuffer=Is;Is.isEncoderBuffer=function(t){return t instanceof Is?!0:typeof t=="object"&&t.constructor.name==="EncoderBuffer"&&typeof t.length=="number"&&typeof t.join=="function"};Is.prototype.join=function(t,r){return t||(t=Os.alloc(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(i){i.join(t,r),r+=i.length}):(typeof this.value=="number"?t[r]=this.value:typeof this.value=="string"?t.write(this.value,r):Os.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t};const hK=bc.Reporter,cK=va.EncoderBuffer,dK=va.DecoderBuffer,kr=Si,s4=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],pK=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s4),vK=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Kt(e,t,r){const i={};this._baseState=i,i.name=r,i.enc=e,i.parent=t||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}var Kg=Kt;const gK=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Kt.prototype.clone=function(){const t=this._baseState,r={};gK.forEach(function(a){r[a]=t[a]});const i=new this.constructor(r.parent);return i._baseState=r,i};Kt.prototype._wrap=function(){const t=this._baseState;pK.forEach(function(r){this[r]=function(){const a=new this.constructor(this);return t.children.push(a),a[r].apply(a,arguments)}},this)};Kt.prototype._init=function(t){const r=this._baseState;kr(r.parent===null),t.call(this),r.children=r.children.filter(function(i){return i._baseState.parent===this},this),kr.equal(r.children.length,1,"Root node can have only one child")};Kt.prototype._useArgs=function(t){const r=this._baseState,i=t.filter(function(a){return a instanceof this.constructor},this);t=t.filter(function(a){return!(a instanceof this.constructor)},this),i.length!==0&&(kr(r.children===null),r.children=i,i.forEach(function(a){a._baseState.parent=this},this)),t.length!==0&&(kr(r.args===null),r.args=t,r.reverseArgs=t.map(function(a){if(typeof a!="object"||a.constructor!==Object)return a;const n={};return Object.keys(a).forEach(function(u){u==(u|0)&&(u|=0);const c=a[u];n[c]=u}),n}))};vK.forEach(function(e){Kt.prototype[e]=function(){const r=this._baseState;throw new Error(e+" not implemented for encoding: "+r.enc)}});s4.forEach(function(e){Kt.prototype[e]=function(){const r=this._baseState,i=Array.prototype.slice.call(arguments);return kr(r.tag===null),r.tag=e,this._useArgs(i),this}});Kt.prototype.use=function(t){kr(t);const r=this._baseState;return kr(r.use===null),r.use=t,this};Kt.prototype.optional=function(){const t=this._baseState;return t.optional=!0,this};Kt.prototype.def=function(t){const r=this._baseState;return kr(r.default===null),r.default=t,r.optional=!0,this};Kt.prototype.explicit=function(t){const r=this._baseState;return kr(r.explicit===null&&r.implicit===null),r.explicit=t,this};Kt.prototype.implicit=function(t){const r=this._baseState;return kr(r.explicit===null&&r.implicit===null),r.implicit=t,this};Kt.prototype.obj=function(){const t=this._baseState,r=Array.prototype.slice.call(arguments);return t.obj=!0,r.length!==0&&this._useArgs(r),this};Kt.prototype.key=function(t){const r=this._baseState;return kr(r.key===null),r.key=t,this};Kt.prototype.any=function(){const t=this._baseState;return t.any=!0,this};Kt.prototype.choice=function(t){const r=this._baseState;return kr(r.choice===null),r.choice=t,this._useArgs(Object.keys(t).map(function(i){return t[i]})),this};Kt.prototype.contains=function(t){const r=this._baseState;return kr(r.use===null),r.contains=t,this};Kt.prototype._decode=function(t,r){const i=this._baseState;if(i.parent===null)return t.wrapResult(i.children[0]._decode(t,r));let a=i.default,n=!0,u=null;if(i.key!==null&&(u=t.enterKey(i.key)),i.optional){let d=null;if(i.explicit!==null?d=i.explicit:i.implicit!==null?d=i.implicit:i.tag!==null&&(d=i.tag),d===null&&!i.any){const m=t.save();try{i.choice===null?this._decodeGeneric(i.tag,t,r):this._decodeChoice(t,r),n=!0}catch{n=!1}t.restore(m)}else if(n=this._peekTag(t,d,i.any),t.isError(n))return n}let c;if(i.obj&&n&&(c=t.enterObject()),n){if(i.explicit!==null){const m=this._decodeTag(t,i.explicit);if(t.isError(m))return m;t=m}const d=t.offset;if(i.use===null&&i.choice===null){let m;i.any&&(m=t.save());const M=this._decodeTag(t,i.implicit!==null?i.implicit:i.tag,i.any);if(t.isError(M))return M;i.any?a=t.raw(m):t=M}if(r&&r.track&&i.tag!==null&&r.track(t.path(),d,t.length,"tagged"),r&&r.track&&i.tag!==null&&r.track(t.path(),t.offset,t.length,"content"),i.any||(i.choice===null?a=this._decodeGeneric(i.tag,t,r):a=this._decodeChoice(t,r)),t.isError(a))return a;if(!i.any&&i.choice===null&&i.children!==null&&i.children.forEach(function(M){M._decode(t,r)}),i.contains&&(i.tag==="octstr"||i.tag==="bitstr")){const m=new dK(a);a=this._getUse(i.contains,t._reporterState.obj)._decode(m,r)}}return i.obj&&n&&(a=t.leaveObject(c)),i.key!==null&&(a!==null||n===!0)?t.leaveKey(u,i.key,a):u!==null&&t.exitKey(u),a};Kt.prototype._decodeGeneric=function(t,r,i){const a=this._baseState;return t==="seq"||t==="set"?null:t==="seqof"||t==="setof"?this._decodeList(r,t,a.args[0],i):/str$/.test(t)?this._decodeStr(r,t,i):t==="objid"&&a.args?this._decodeObjid(r,a.args[0],a.args[1],i):t==="objid"?this._decodeObjid(r,null,null,i):t==="gentime"||t==="utctime"?this._decodeTime(r,t,i):t==="null_"?this._decodeNull(r,i):t==="bool"?this._decodeBool(r,i):t==="objDesc"?this._decodeStr(r,t,i):t==="int"||t==="enum"?this._decodeInt(r,a.args&&a.args[0],i):a.use!==null?this._getUse(a.use,r._reporterState.obj)._decode(r,i):r.error("unknown tag: "+t)};Kt.prototype._getUse=function(t,r){const i=this._baseState;return i.useDecoder=this._use(t,r),kr(i.useDecoder._baseState.parent===null),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder};Kt.prototype._decodeChoice=function(t,r){const i=this._baseState;let a=null,n=!1;return Object.keys(i.choice).some(function(u){const c=t.save(),d=i.choice[u];try{const m=d._decode(t,r);if(t.isError(m))return!1;a={type:u,value:m},n=!0}catch{return t.restore(c),!1}return!0},this),n?a:t.error("Choice not matched")};Kt.prototype._createEncoderBuffer=function(t){return new cK(t,this.reporter)};Kt.prototype._encode=function(t,r,i){const a=this._baseState;if(a.default!==null&&a.default===t)return;const n=this._encodeValue(t,r,i);if(n!==void 0&&!this._skipDefault(n,r,i))return n};Kt.prototype._encodeValue=function(t,r,i){const a=this._baseState;if(a.parent===null)return a.children[0]._encode(t,r||new hK);let n=null;if(this.reporter=r,a.optional&&t===void 0)if(a.default!==null)t=a.default;else return;let u=null,c=!1;if(a.any)n=this._createEncoderBuffer(t);else if(a.choice)n=this._encodeChoice(t,r);else if(a.contains)u=this._getUse(a.contains,i)._encode(t,r),c=!0;else if(a.children)u=a.children.map(function(d){if(d._baseState.tag==="null_")return d._encode(null,r,t);if(d._baseState.key===null)return r.error("Child should have a key");const m=r.enterKey(d._baseState.key);if(typeof t!="object")return r.error("Child expected, but input is not object");const M=d._encode(t[d._baseState.key],r,t);return r.leaveKey(m),M},this).filter(function(d){return d}),u=this._createEncoderBuffer(u);else if(a.tag==="seqof"||a.tag==="setof"){if(!(a.args&&a.args.length===1))return r.error("Too many args for : "+a.tag);if(!Array.isArray(t))return r.error("seqof/setof, but data is not Array");const d=this.clone();d._baseState.implicit=null,u=this._createEncoderBuffer(t.map(function(m){const M=this._baseState;return this._getUse(M.args[0],t)._encode(m,r)},d))}else a.use!==null?n=this._getUse(a.use,i)._encode(t,r):(u=this._encodePrimitive(a.tag,t),c=!0);if(!a.any&&a.choice===null){const d=a.implicit!==null?a.implicit:a.tag,m=a.implicit===null?"universal":"context";d===null?a.use===null&&r.error("Tag could be omitted only for .use()"):a.use===null&&(n=this._encodeComposite(d,c,m,u))}return a.explicit!==null&&(n=this._encodeComposite(a.explicit,!1,"context",n)),n};Kt.prototype._encodeChoice=function(t,r){const i=this._baseState,a=i.choice[t.type];return a||kr(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),a._encode(t.value,r)};Kt.prototype._encodePrimitive=function(t,r){const i=this._baseState;if(/str$/.test(t))return this._encodeStr(r,t);if(t==="objid"&&i.args)return this._encodeObjid(r,i.reverseArgs[0],i.args[1]);if(t==="objid")return this._encodeObjid(r,null,null);if(t==="gentime"||t==="utctime")return this._encodeTime(r,t);if(t==="null_")return this._encodeNull();if(t==="int"||t==="enum")return this._encodeInt(r,i.args&&i.reverseArgs[0]);if(t==="bool")return this._encodeBool(r);if(t==="objDesc")return this._encodeStr(r,t);throw new Error("Unsupported tag: "+t)};Kt.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)};Kt.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)};var _c={};(function(e){function t(r){const i={};return Object.keys(r).forEach(function(a){(a|0)==a&&(a=a|0);const n=r[a];i[n]=a}),i}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t(e.tag)})(_c);const mK=Ze,On=Wg.Buffer,f4=Kg,A0=_c;function u4(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new qi,this.tree._init(e.body)}var l4=u4;u4.prototype.encode=function(t,r){return this.tree._encode(t,r).join()};function qi(e){f4.call(this,"der",e)}mK(qi,f4);qi.prototype._encodeComposite=function(t,r,i,a){const n=yK(t,r,i,this.reporter);if(a.length<128){const d=On.alloc(2);return d[0]=n,d[1]=a.length,this._createEncoderBuffer([d,a])}let u=1;for(let d=a.length;d>=256;d>>=8)u++;const c=On.alloc(1+1+u);c[0]=n,c[1]=128|u;for(let d=1+u,m=a.length;m>0;d--,m>>=8)c[d]=m&255;return this._createEncoderBuffer([c,a])};qi.prototype._encodeStr=function(t,r){if(r==="bitstr")return this._createEncoderBuffer([t.unused|0,t.data]);if(r==="bmpstr"){const i=On.alloc(t.length*2);for(let a=0;a<t.length;a++)i.writeUInt16BE(t.charCodeAt(a),a*2);return this._createEncoderBuffer(i)}else return r==="numstr"?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):r==="printstr"?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(r)?this._createEncoderBuffer(t):r==="objDesc"?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+r+" unsupported")};qi.prototype._encodeObjid=function(t,r,i){if(typeof t=="string"){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=r[t].split(/[\s.]+/g);for(let c=0;c<t.length;c++)t[c]|=0}else if(Array.isArray(t)){t=t.slice();for(let c=0;c<t.length;c++)t[c]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!i){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,t[0]*40+t[1])}let a=0;for(let c=0;c<t.length;c++){let d=t[c];for(a++;d>=128;d>>=7)a++}const n=On.alloc(a);let u=n.length-1;for(let c=t.length-1;c>=0;c--){let d=t[c];for(n[u--]=d&127;(d>>=7)>0;)n[u--]=128|d&127}return this._createEncoderBuffer(n)};function ai(e){return e<10?"0"+e:e}qi.prototype._encodeTime=function(t,r){let i;const a=new Date(t);return r==="gentime"?i=[ai(a.getUTCFullYear()),ai(a.getUTCMonth()+1),ai(a.getUTCDate()),ai(a.getUTCHours()),ai(a.getUTCMinutes()),ai(a.getUTCSeconds()),"Z"].join(""):r==="utctime"?i=[ai(a.getUTCFullYear()%100),ai(a.getUTCMonth()+1),ai(a.getUTCDate()),ai(a.getUTCHours()),ai(a.getUTCMinutes()),ai(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(i,"octstr")};qi.prototype._encodeNull=function(){return this._createEncoderBuffer("")};qi.prototype._encodeInt=function(t,r){if(typeof t=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=r[t]}if(typeof t!="number"&&!On.isBuffer(t)){const n=t.toArray();!t.sign&&n[0]&128&&n.unshift(0),t=On.from(n)}if(On.isBuffer(t)){let n=t.length;t.length===0&&n++;const u=On.alloc(n);return t.copy(u),t.length===0&&(u[0]=0),this._createEncoderBuffer(u)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let i=1;for(let n=t;n>=256;n>>=8)i++;const a=new Array(i);for(let n=a.length-1;n>=0;n--)a[n]=t&255,t>>=8;return a[0]&128&&a.unshift(0),this._createEncoderBuffer(On.from(a))};qi.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)};qi.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getEncoder("der").tree};qi.prototype._skipDefault=function(t,r,i){const a=this._baseState;let n;if(a.default===null)return!1;const u=t.join();if(a.defaultBuffer===void 0&&(a.defaultBuffer=this._encodeValue(a.default,r,i).join()),u.length!==a.defaultBuffer.length)return!1;for(n=0;n<u.length;n++)if(u[n]!==a.defaultBuffer[n])return!1;return!0};function yK(e,t,r,i){let a;if(e==="seqof"?e="seq":e==="setof"&&(e="set"),A0.tagByName.hasOwnProperty(e))a=A0.tagByName[e];else if(typeof e=="number"&&(e|0)===e)a=e;else return i.error("Unknown tag: "+e);return a>=31?i.error("Multi-octet tag encoding unsupported"):(t||(a|=32),a|=A0.tagClassByName[r||"universal"]<<6,a)}const bK=Ze,Vg=l4;function zg(e){Vg.call(this,e),this.enc="pem"}bK(zg,Vg);var wK=zg;zg.prototype.encode=function(t,r){const a=Vg.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+r.label+"-----"];for(let u=0;u<a.length;u+=64)n.push(a.slice(u,u+64));return n.push("-----END "+r.label+"-----"),n.join(`
+`)};(function(e){const t=e;t.der=l4,t.pem=wK})(qg);var Gg={};const _K=Ze,MK=o4,ww=va.DecoderBuffer,h4=Kg,_w=_c;function c4(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new ii,this.tree._init(e.body)}var d4=c4;c4.prototype.decode=function(t,r){return ww.isDecoderBuffer(t)||(t=new ww(t,r)),this.tree._decode(t,r)};function ii(e){h4.call(this,"der",e)}_K(ii,h4);ii.prototype._peekTag=function(t,r,i){if(t.isEmpty())return!1;const a=t.save(),n=Yg(t,'Failed to peek tag: "'+r+'"');return t.isError(n)?n:(t.restore(a),n.tag===r||n.tagStr===r||n.tagStr+"of"===r||i)};ii.prototype._decodeTag=function(t,r,i){const a=Yg(t,'Failed to decode tag of "'+r+'"');if(t.isError(a))return a;let n=p4(t,a.primitive,'Failed to get length of "'+r+'"');if(t.isError(n))return n;if(!i&&a.tag!==r&&a.tagStr!==r&&a.tagStr+"of"!==r)return t.error('Failed to match tag: "'+r+'"');if(a.primitive||n!==null)return t.skip(n,'Failed to match body of: "'+r+'"');const u=t.save(),c=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(c)?c:(n=t.offset-u.offset,t.restore(u),t.skip(n,'Failed to match body of: "'+r+'"'))};ii.prototype._skipUntilEnd=function(t,r){for(;;){const i=Yg(t,r);if(t.isError(i))return i;const a=p4(t,i.primitive,r);if(t.isError(a))return a;let n;if(i.primitive||a!==null?n=t.skip(a):n=this._skipUntilEnd(t,r),t.isError(n))return n;if(i.tagStr==="end")break}};ii.prototype._decodeList=function(t,r,i,a){const n=[];for(;!t.isEmpty();){const u=this._peekTag(t,"end");if(t.isError(u))return u;const c=i.decode(t,"der",a);if(t.isError(c)&&u)break;n.push(c)}return n};ii.prototype._decodeStr=function(t,r){if(r==="bitstr"){const i=t.readUInt8();return t.isError(i)?i:{unused:i,data:t.raw()}}else if(r==="bmpstr"){const i=t.raw();if(i.length%2===1)return t.error("Decoding of string type: bmpstr length mismatch");let a="";for(let n=0;n<i.length/2;n++)a+=String.fromCharCode(i.readUInt16BE(n*2));return a}else if(r==="numstr"){const i=t.raw().toString("ascii");return this._isNumstr(i)?i:t.error("Decoding of string type: numstr unsupported characters")}else{if(r==="octstr")return t.raw();if(r==="objDesc")return t.raw();if(r==="printstr"){const i=t.raw().toString("ascii");return this._isPrintstr(i)?i:t.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(r)?t.raw().toString():t.error("Decoding of string type: "+r+" unsupported")}};ii.prototype._decodeObjid=function(t,r,i){let a;const n=[];let u=0,c=0;for(;!t.isEmpty();)c=t.readUInt8(),u<<=7,u|=c&127,c&128||(n.push(u),u=0);c&128&&n.push(u);const d=n[0]/40|0,m=n[0]%40;if(i?a=n:a=[d,m].concat(n.slice(1)),r){let M=r[a.join(" ")];M===void 0&&(M=r[a.join(".")]),M!==void 0&&(a=M)}return a};ii.prototype._decodeTime=function(t,r){const i=t.raw().toString();let a,n,u,c,d,m;if(r==="gentime")a=i.slice(0,4)|0,n=i.slice(4,6)|0,u=i.slice(6,8)|0,c=i.slice(8,10)|0,d=i.slice(10,12)|0,m=i.slice(12,14)|0;else if(r==="utctime")a=i.slice(0,2)|0,n=i.slice(2,4)|0,u=i.slice(4,6)|0,c=i.slice(6,8)|0,d=i.slice(8,10)|0,m=i.slice(10,12)|0,a<70?a=2e3+a:a=1900+a;else return t.error("Decoding "+r+" time is not supported yet");return Date.UTC(a,n-1,u,c,d,m,0)};ii.prototype._decodeNull=function(){return null};ii.prototype._decodeBool=function(t){const r=t.readUInt8();return t.isError(r)?r:r!==0};ii.prototype._decodeInt=function(t,r){const i=t.raw();let a=new MK(i);return r&&(a=r[a.toString(10)]||a),a};ii.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getDecoder("der").tree};function Yg(e,t){let r=e.readUInt8(t);if(e.isError(r))return r;const i=_w.tagClass[r>>6],a=(r&32)===0;if((r&31)===31){let u=r;for(r=0;(u&128)===128;){if(u=e.readUInt8(t),e.isError(u))return u;r<<=7,r|=u&127}}else r&=31;const n=_w.tag[r];return{cls:i,primitive:a,tag:r,tagStr:n}}function p4(e,t,r){let i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&i===128)return null;if(!(i&128))return i;const a=i&127;if(a>4)return e.error("length octect is too long");i=0;for(let n=0;n<a;n++){i<<=8;const u=e.readUInt8(r);if(e.isError(u))return u;i|=u}return i}const SK=Ze,xK=Wg.Buffer,Zg=d4;function Xg(e){Zg.call(this,e),this.enc="pem"}SK(Xg,Zg);var EK=Xg;Xg.prototype.decode=function(t,r){const i=t.toString().split(/[\r\n]+/g),a=r.label.toUpperCase(),n=/^-----(BEGIN|END) ([^-]+)-----$/;let u=-1,c=-1;for(let M=0;M<i.length;M++){const S=i[M].match(n);if(S!==null&&S[2]===a)if(u===-1){if(S[1]!=="BEGIN")break;u=M}else{if(S[1]!=="END")break;c=M;break}}if(u===-1||c===-1)throw new Error("PEM section not found for: "+a);const d=i.slice(u+1,c).join("");d.replace(/[^a-z0-9+/=]+/gi,"");const m=xK.from(d,"base64");return Zg.prototype.decode.call(this,m,r)};(function(e){const t=e;t.der=d4,t.pem=EK})(Gg);(function(e){const t=qg,r=Gg,i=Ze,a=e;a.define=function(c,d){return new n(c,d)};function n(u,c){this.name=u,this.body=c,this.decoders={},this.encoders={}}n.prototype._createNamed=function(c){const d=this.name;function m(M){this._initNamed(M,d)}return i(m,c),m.prototype._initNamed=function(S,R){c.call(this,S,R)},new m(this)},n.prototype._getDecoder=function(c){return c=c||"der",this.decoders.hasOwnProperty(c)||(this.decoders[c]=this._createNamed(r[c])),this.decoders[c]},n.prototype.decode=function(c,d,m){return this._getDecoder(d).decode(c,m)},n.prototype._getEncoder=function(c){return c=c||"der",this.encoders.hasOwnProperty(c)||(this.encoders[c]=this._createNamed(t[c])),this.encoders[c]},n.prototype.encode=function(c,d,m){return this._getEncoder(d).encode(c,m)}})(a4);var v4={};(function(e){const t=e;t.Reporter=bc.Reporter,t.DecoderBuffer=va.DecoderBuffer,t.EncoderBuffer=va.EncoderBuffer,t.Node=Kg})(v4);var g4={};(function(e){const t=e;t._reverse=function(i){const a={};return Object.keys(i).forEach(function(n){(n|0)==n&&(n=n|0);const u=i[n];a[u]=n}),a},t.der=_c})(g4);(function(e){const t=e;t.bignum=o4,t.define=a4.define,t.base=v4,t.constants=g4,t.decoders=Gg,t.encoders=qg})(Ug);var Wi=Ug,Mw=Wi.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),RK=Wi.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),Jg=Wi.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),AK=Wi.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Jg),this.key("subjectPublicKey").bitstr())}),TK=Wi.define("RelativeDistinguishedName",function(){this.setof(RK)}),OK=Wi.define("RDNSequence",function(){this.seqof(TK)}),Sw=Wi.define("Name",function(){this.choice({rdnSequence:this.use(OK)})}),IK=Wi.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Mw),this.key("notAfter").use(Mw))}),PK=Wi.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),CK=Wi.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(Jg),this.key("issuer").use(Sw),this.key("validity").use(IK),this.key("subject").use(Sw),this.key("subjectPublicKeyInfo").use(AK),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(PK).optional())}),BK=Wi.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(CK),this.key("signatureAlgorithm").use(Jg),this.key("signatureValue").bitstr())}),LK=BK,Ki=Ug;Hi.certificate=LK;var NK=Ki.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Hi.RSAPrivateKey=NK;var kK=Ki.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Hi.RSAPublicKey=kK;var $K=Ki.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(m4),this.key("subjectPublicKey").bitstr())});Hi.PublicKey=$K;var m4=Ki.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),DK=Ki.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(m4),this.key("subjectPrivateKey").octstr())});Hi.PrivateKey=DK;var FK=Ki.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Hi.EncryptedPrivateKey=FK;var jK=Ki.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Hi.DSAPrivateKey=jK;Hi.DSAparam=Ki.define("DSAparam",function(){this.int()});var UK=Ki.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(HK),this.key("publicKey").optional().explicit(1).bitstr())});Hi.ECPrivateKey=UK;var HK=Ki.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});Hi.signature=Ki.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())});const qK={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};var WK=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,KK=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,VK=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,zK=oc,GK=Qr,tl=pt.Buffer,YK=function(e,t){var r=e.toString(),i=r.match(WK),a;if(i){var u="aes"+i[1],c=tl.from(i[2],"hex"),d=tl.from(i[3].replace(/[\r\n]/g,""),"base64"),m=zK(t,c.slice(0,8),parseInt(i[1],10)).key,M=[],S=GK.createDecipheriv(u,m,c);M.push(S.update(d)),M.push(S.final()),a=tl.concat(M)}else{var n=r.match(VK);a=tl.from(n[2].replace(/[\r\n]/g,""),"base64")}var R=r.match(KK)[1];return{tag:R,data:a}},$r=Hi,ZK=qK,XK=YK,JK=Qr,QK=rc,Xp=pt.Buffer,Mc=y4;function y4(e){var t;typeof e=="object"&&!Xp.isBuffer(e)&&(t=e.passphrase,e=e.key),typeof e=="string"&&(e=Xp.from(e));var r=XK(e,t),i=r.tag,a=r.data,n,u;switch(i){case"CERTIFICATE":u=$r.certificate.decode(a,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=$r.PublicKey.decode(a,"der")),n=u.algorithm.algorithm.join("."),n){case"1.2.840.113549.1.1.1":return $r.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=$r.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":a=$r.EncryptedPrivateKey.decode(a,"der"),a=eV(a,t);case"PRIVATE KEY":switch(u=$r.PrivateKey.decode(a,"der"),n=u.algorithm.algorithm.join("."),n){case"1.2.840.113549.1.1.1":return $r.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:$r.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=$r.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return $r.RSAPublicKey.decode(a,"der");case"RSA PRIVATE KEY":return $r.RSAPrivateKey.decode(a,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:$r.DSAPrivateKey.decode(a,"der")};case"EC PRIVATE KEY":return a=$r.ECPrivateKey.decode(a,"der"),{curve:a.parameters.value,privateKey:a.privateKey};default:throw new Error("unknown key type "+i)}}y4.signature=$r.signature;function eV(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=ZK[e.algorithm.decrypt.cipher.algo.join(".")],n=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,c=parseInt(a.split("-")[1],10)/8,d=QK.pbkdf2Sync(t,r,i,c,"sha1"),m=JK.createDecipheriv(a,d,n),M=[];return M.push(m.update(u)),M.push(m.final()),Xp.concat(M)}const b4={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};var xw;function tV(){if(xw)return gf.exports;xw=1;var e=pt.Buffer,t=PS,r=Lg,i=jg().ec,a=Bg,n=Mc,u=b4;function c(L,I,B,H,F){var W=n(I);if(W.curve){if(H!=="ecdsa"&&H!=="ecdsa/rsa")throw new Error("wrong private key type");return d(L,W)}else if(W.type==="dsa"){if(H!=="dsa")throw new Error("wrong private key type");return m(L,W,B)}else if(H!=="rsa"&&H!=="ecdsa/rsa")throw new Error("wrong private key type");L=e.concat([F,L]);for(var Y=W.modulus.byteLength(),ie=[0,1];L.length+ie.length+1<Y;)ie.push(255);ie.push(0);for(var J=-1;++J<L.length;)ie.push(L[J]);var V=r(ie,W);return V}function d(L,I){var B=u[I.curve.join(".")];if(!B)throw new Error("unknown curve "+I.curve.join("."));var H=new i(B),F=H.keyFromPrivate(I.privateKey),W=F.sign(L);return e.from(W.toDER())}function m(L,I,B){for(var H=I.params.priv_key,F=I.params.p,W=I.params.q,Y=I.params.g,ie=new a(0),J,V=R(L,W).mod(W),oe=!1,_=S(H,W,L,B);oe===!1;)J=P(W,_,B),ie=k(Y,J,F,W),oe=J.invm(W).imul(V.add(H.mul(ie))).mod(W),oe.cmpn(0)===0&&(oe=!1,ie=new a(0));return M(ie,oe)}function M(L,I){L=L.toArray(),I=I.toArray(),L[0]&128&&(L=[0].concat(L)),I[0]&128&&(I=[0].concat(I));var B=L.length+I.length+4,H=[48,B,2,L.length];return H=H.concat(L,[2,I.length],I),e.from(H)}function S(L,I,B,H){if(L=e.from(L.toArray()),L.length<I.byteLength()){var F=e.alloc(I.byteLength()-L.length);L=e.concat([F,L])}var W=B.length,Y=C(B,I),ie=e.alloc(W);ie.fill(1);var J=e.alloc(W);return J=t(H,J).update(ie).update(e.from([0])).update(L).update(Y).digest(),ie=t(H,J).update(ie).digest(),J=t(H,J).update(ie).update(e.from([1])).update(L).update(Y).digest(),ie=t(H,J).update(ie).digest(),{k:J,v:ie}}function R(L,I){var B=new a(L),H=(L.length<<3)-I.bitLength();return H>0&&B.ishrn(H),B}function C(L,I){L=R(L,I),L=L.mod(I);var B=e.from(L.toArray());if(B.length<I.byteLength()){var H=e.alloc(I.byteLength()-B.length);B=e.concat([H,B])}return B}function P(L,I,B){var H,F;do{for(H=e.alloc(0);H.length*8<L.bitLength();)I.v=t(B,I.k).update(I.v).digest(),H=e.concat([H,I.v]);F=R(H,L),I.k=t(B,I.k).update(I.v).update(e.from([0])).digest(),I.v=t(B,I.k).update(I.v).digest()}while(F.cmp(L)!==-1);return F}function k(L,I,B,H){return L.toRed(a.mont(B)).redPow(I).fromRed().mod(H)}return gf.exports=c,gf.exports.getKey=S,gf.exports.makeKey=P,gf.exports}var T0,Ew;function rV(){if(Ew)return T0;Ew=1;var e=pt.Buffer,t=Bg,r=jg().ec,i=Mc,a=b4;function n(m,M,S,R,C){var P=i(S);if(P.type==="ec"){if(R!=="ecdsa"&&R!=="ecdsa/rsa")throw new Error("wrong public key type");return u(m,M,P)}else if(P.type==="dsa"){if(R!=="dsa")throw new Error("wrong public key type");return c(m,M,P)}else if(R!=="rsa"&&R!=="ecdsa/rsa")throw new Error("wrong public key type");M=e.concat([C,M]);for(var k=P.modulus.byteLength(),L=[1],I=0;M.length+L.length+2<k;)L.push(255),I++;L.push(0);for(var B=-1;++B<M.length;)L.push(M[B]);L=e.from(L);var H=t.mont(P.modulus);m=new t(m).toRed(H),m=m.redPow(new t(P.publicExponent)),m=e.from(m.fromRed().toArray());var F=I<8?1:0;for(k=Math.min(m.length,L.length),m.length!==L.length&&(F=1),B=-1;++B<k;)F|=m[B]^L[B];return F===0}function u(m,M,S){var R=a[S.data.algorithm.curve.join(".")];if(!R)throw new Error("unknown curve "+S.data.algorithm.curve.join("."));var C=new r(R),P=S.data.subjectPrivateKey.data;return C.verify(M,m,P)}function c(m,M,S){var R=S.data.p,C=S.data.q,P=S.data.g,k=S.data.pub_key,L=i.signature.decode(m,"der"),I=L.s,B=L.r;d(I,C),d(B,C);var H=t.mont(R),F=I.invm(C),W=P.toRed(H).redPow(new t(M).mul(F).mod(C)).fromRed().mul(k.toRed(H).redPow(B.mul(F).mod(C)).fromRed()).mod(R).mod(C);return W.cmp(B)===0}function d(m,M){if(m.cmpn(0)<=0)throw new Error("invalid sig");if(m.cmp(M)>=M)throw new Error("invalid sig")}return T0=n,T0}var O0,Rw;function iV(){if(Rw)return O0;Rw=1;var e=pt.Buffer,t=Tu,r=KH,i=Ze,a=tV(),n=rV(),u=CS;Object.keys(u).forEach(function(S){u[S].id=e.from(u[S].id,"hex"),u[S.toLowerCase()]=u[S]});function c(S){r.Writable.call(this);var R=u[S];if(!R)throw new Error("Unknown message digest");this._hashType=R.hash,this._hash=t(R.hash),this._tag=R.id,this._signType=R.sign}i(c,r.Writable),c.prototype._write=function(R,C,P){this._hash.update(R),P()},c.prototype.update=function(R,C){return typeof R=="string"&&(R=e.from(R,C)),this._hash.update(R),this},c.prototype.sign=function(R,C){this.end();var P=this._hash.digest(),k=a(P,R,this._hashType,this._signType,this._tag);return C?k.toString(C):k};function d(S){r.Writable.call(this);var R=u[S];if(!R)throw new Error("Unknown message digest");this._hash=t(R.hash),this._tag=R.id,this._signType=R.sign}i(d,r.Writable),d.prototype._write=function(R,C,P){this._hash.update(R),P()},d.prototype.update=function(R,C){return typeof R=="string"&&(R=e.from(R,C)),this._hash.update(R),this},d.prototype.verify=function(R,C,P){typeof C=="string"&&(C=e.from(C,P)),this.end();var k=this._hash.digest();return n(C,k,R,this._signType,this._tag)};function m(S){return new c(S)}function M(S){return new d(S)}return O0={Sign:m,Verify:M,createSign:m,createVerify:M},O0}var Qg={exports:{}};Qg.exports;(function(e){(function(t,r){function i(_,o){if(!_)throw new Error(o||"Assertion failed")}function a(_,o){_.super_=o;var f=function(){};f.prototype=o.prototype,_.prototype=new f,_.prototype.constructor=_}function n(_,o,f){if(n.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((o==="le"||o==="be")&&(f=o,o=10),this._init(_||0,o||10,f||"be"))}typeof t=="object"?t.exports=n:r.BN=n,n.BN=n,n.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=ke.Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,f){return o.cmp(f)>0?o:f},n.min=function(o,f){return o.cmp(f)<0?o:f},n.prototype._init=function(o,f,l){if(typeof o=="number")return this._initNumber(o,f,l);if(typeof o=="object")return this._initArray(o,f,l);f==="hex"&&(f=16),i(f===(f|0)&&f>=2&&f<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h<o.length&&(f===16?this._parseHex(o,h,l):(this._parseBase(o,f,h),l==="le"&&this._initArray(this.toArray(),f,l)))},n.prototype._initNumber=function(o,f,l){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(i(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),f,l)},n.prototype._initArray=function(o,f,l){if(i(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p,w,x=0;if(l==="be")for(h=o.length-1,p=0;h>=0;h-=3)w=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);else if(l==="le")for(h=0,p=0;h<o.length;h+=3)w=o[h]|o[h+1]<<8|o[h+2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);return this.strip()};function c(_,o){var f=_.charCodeAt(o);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function d(_,o,f){var l=c(_,f);return f-1>=o&&(l|=c(_,f-1)<<4),l}n.prototype._parseHex=function(o,f,l){this.length=Math.ceil((o.length-f)/6),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p=0,w=0,x;if(l==="be")for(h=o.length-1;h>=f;h-=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8;else{var g=o.length-f;for(h=g%2===0?f+1:f;h<o.length;h+=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8}this.strip()};function m(_,o,f,l){for(var h=0,p=Math.min(_.length,f),w=o;w<p;w++){var x=_.charCodeAt(w)-48;h*=l,x>=49?h+=x-49+10:x>=17?h+=x-17+10:h+=x}return h}n.prototype._parseBase=function(o,f,l){this.words=[0],this.length=1;for(var h=0,p=1;p<=67108863;p*=f)h++;h--,p=p/f|0;for(var w=o.length-l,x=w%h,g=Math.min(w,w-x)+l,s=0,v=l;v<g;v+=h)s=m(o,v,v+h,f),this.imuln(p),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(x!==0){var T=1;for(s=m(o,v,o.length,f),v=0;v<x;v++)T*=f;this.imuln(T),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},n.prototype.copy=function(o){o.words=new Array(this.length);for(var f=0;f<this.length;f++)o.words[f]=this.words[f];o.length=this.length,o.negative=this.negative,o.red=this.red},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],R=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,f){o=o||10,f=f|0||1;var l;if(o===16||o==="hex"){l="";for(var h=0,p=0,w=0;w<this.length;w++){var x=this.words[w],g=((x<<h|p)&16777215).toString(16);p=x>>>24-h&16777215,p!==0||w!==this.length-1?l=M[6-g.length]+g+l:l=g+l,h+=2,h>=26&&(h-=26,w--)}for(p!==0&&(l=p.toString(16)+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(o===(o|0)&&o>=2&&o<=36){var s=S[o],v=R[o];l="";var T=this.clone();for(T.negative=0;!T.isZero();){var $=T.modn(v).toString(o);T=T.idivn(v),T.isZero()?l=$+l:l=M[s-$.length]+$+l}for(this.isZero()&&(l="0"+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(o,f){return i(typeof u<"u"),this.toArrayLike(u,o,f)},n.prototype.toArray=function(o,f){return this.toArrayLike(Array,o,f)},n.prototype.toArrayLike=function(o,f,l){var h=this.byteLength(),p=l||Math.max(1,h);i(h<=p,"byte array longer than desired length"),i(p>0,"Requested array length <= 0"),this.strip();var w=f==="le",x=new o(p),g,s,v=this.clone();if(w){for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[s]=g;for(;s<p;s++)x[s]=0}else{for(s=0;s<p-h;s++)x[s]=0;for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[p-s-1]=g}return x},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var f=o,l=0;return f>=4096&&(l+=13,f>>>=13),f>=64&&(l+=7,f>>>=7),f>=8&&(l+=4,f>>>=4),f>=2&&(l+=2,f>>>=2),l+f},n.prototype._zeroBits=function(o){if(o===0)return 26;var f=o,l=0;return f&8191||(l+=13,f>>>=13),f&127||(l+=7,f>>>=7),f&15||(l+=4,f>>>=4),f&3||(l+=2,f>>>=2),f&1||l++,l},n.prototype.bitLength=function(){var o=this.words[this.length-1],f=this._countBits(o);return(this.length-1)*26+f};function C(_){for(var o=new Array(_.bitLength()),f=0;f<o.length;f++){var l=f/26|0,h=f%26;o[f]=(_.words[l]&1<<h)>>>h}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,f=0;f<this.length;f++){var l=this._zeroBits(this.words[f]);if(o+=l,l!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var f=0;f<o.length;f++)this.words[f]=this.words[f]|o.words[f];return this.strip()},n.prototype.ior=function(o){return i((this.negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},n.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},n.prototype.iuand=function(o){var f;this.length>o.length?f=o:f=this;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]&o.words[l];return this.length=f.length,this.strip()},n.prototype.iand=function(o){return i((this.negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},n.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},n.prototype.iuxor=function(o){var f,l;this.length>o.length?(f=this,l=o):(f=o,l=this);for(var h=0;h<l.length;h++)this.words[h]=f.words[h]^l.words[h];if(this!==f)for(;h<f.length;h++)this.words[h]=f.words[h];return this.length=f.length,this.strip()},n.prototype.ixor=function(o){return i((this.negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},n.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},n.prototype.inotn=function(o){i(typeof o=="number"&&o>=0);var f=Math.ceil(o/26)|0,l=o%26;this._expand(f),l>0&&f--;for(var h=0;h<f;h++)this.words[h]=~this.words[h]&67108863;return l>0&&(this.words[h]=~this.words[h]&67108863>>26-l),this.strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,f){i(typeof o=="number"&&o>=0);var l=o/26|0,h=o%26;return this._expand(l+1),f?this.words[l]=this.words[l]|1<<h:this.words[l]=this.words[l]&~(1<<h),this.strip()},n.prototype.iadd=function(o){var f;if(this.negative!==0&&o.negative===0)return this.negative=0,f=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,f=this.isub(o),o.negative=1,f._normSign();var l,h;this.length>o.length?(l=this,h=o):(l=o,h=this);for(var p=0,w=0;w<h.length;w++)f=(l.words[w]|0)+(h.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;for(;p!==0&&w<l.length;w++)f=(l.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;if(this.length=l.length,p!==0)this.words[this.length]=p,this.length++;else if(l!==this)for(;w<l.length;w++)this.words[w]=l.words[w];return this},n.prototype.add=function(o){var f;return o.negative!==0&&this.negative===0?(o.negative=0,f=this.sub(o),o.negative^=1,f):o.negative===0&&this.negative!==0?(this.negative=0,f=o.sub(this),this.negative=1,f):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var f=this.iadd(o);return o.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var l=this.cmp(o);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,p;l>0?(h=this,p=o):(h=o,p=this);for(var w=0,x=0;x<p.length;x++)f=(h.words[x]|0)-(p.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;for(;w!==0&&x<h.length;x++)f=(h.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;if(w===0&&x<h.length&&h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this.length=Math.max(this.length,x),h!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function P(_,o,f){f.negative=o.negative^_.negative;var l=_.length+o.length|0;f.length=l,l=l-1|0;var h=_.words[0]|0,p=o.words[0]|0,w=h*p,x=w&67108863,g=w/67108864|0;f.words[0]=x;for(var s=1;s<l;s++){for(var v=g>>>26,T=g&67108863,$=Math.min(s,o.length-1),G=Math.max(0,s-_.length+1);G<=$;G++){var ee=s-G|0;h=_.words[ee]|0,p=o.words[G]|0,w=h*p+T,v+=w/67108864|0,T=w&67108863}f.words[s]=T|0,g=v|0}return g!==0?f.words[s]=g|0:f.length--,f.strip()}var k=function(o,f,l){var h=o.words,p=f.words,w=l.words,x=0,g,s,v,T=h[0]|0,$=T&8191,G=T>>>13,ee=h[1]|0,A=ee&8191,E=ee>>>13,U=h[2]|0,K=U&8191,Z=U>>>13,b=h[3]|0,y=b&8191,O=b>>>13,q=h[4]|0,X=q&8191,D=q>>>13,N=h[5]|0,j=N&8191,z=N>>>13,se=h[6]|0,te=se&8191,ne=se>>>13,Ee=h[7]|0,Q=Ee&8191,ue=Ee>>>13,le=h[8]|0,ce=le&8191,pe=le>>>13,de=h[9]|0,ae=de&8191,fe=de>>>13,Te=p[0]|0,ve=Te&8191,Me=Te>>>13,Ke=p[1]|0,be=Ke&8191,Se=Ke>>>13,qe=p[2]|0,ye=qe&8191,_e=qe>>>13,Ve=p[3]|0,ge=Ve&8191,xe=Ve>>>13,Xe=p[4]|0,Re=Xe&8191,Le=Xe>>>13,at=p[5]|0,Ae=at&8191,Ne=at>>>13,rt=p[6]|0,Oe=rt&8191,De=rt>>>13,nt=p[7]|0,Ie=nt&8191,$e=nt>>>13,st=p[8]|0,Pe=st&8191,je=st>>>13,ht=p[9]|0,Ce=ht&8191,Fe=ht>>>13;l.negative=o.negative^f.negative,l.length=19,g=Math.imul($,ve),s=Math.imul($,Me),s=s+Math.imul(G,ve)|0,v=Math.imul(G,Me);var it=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(it>>>26)|0,it&=67108863,g=Math.imul(A,ve),s=Math.imul(A,Me),s=s+Math.imul(E,ve)|0,v=Math.imul(E,Me),g=g+Math.imul($,be)|0,s=s+Math.imul($,Se)|0,s=s+Math.imul(G,be)|0,v=v+Math.imul(G,Se)|0;var et=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(et>>>26)|0,et&=67108863,g=Math.imul(K,ve),s=Math.imul(K,Me),s=s+Math.imul(Z,ve)|0,v=Math.imul(Z,Me),g=g+Math.imul(A,be)|0,s=s+Math.imul(A,Se)|0,s=s+Math.imul(E,be)|0,v=v+Math.imul(E,Se)|0,g=g+Math.imul($,ye)|0,s=s+Math.imul($,_e)|0,s=s+Math.imul(G,ye)|0,v=v+Math.imul(G,_e)|0;var xt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(xt>>>26)|0,xt&=67108863,g=Math.imul(y,ve),s=Math.imul(y,Me),s=s+Math.imul(O,ve)|0,v=Math.imul(O,Me),g=g+Math.imul(K,be)|0,s=s+Math.imul(K,Se)|0,s=s+Math.imul(Z,be)|0,v=v+Math.imul(Z,Se)|0,g=g+Math.imul(A,ye)|0,s=s+Math.imul(A,_e)|0,s=s+Math.imul(E,ye)|0,v=v+Math.imul(E,_e)|0,g=g+Math.imul($,ge)|0,s=s+Math.imul($,xe)|0,s=s+Math.imul(G,ge)|0,v=v+Math.imul(G,xe)|0;var Tt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,g=Math.imul(X,ve),s=Math.imul(X,Me),s=s+Math.imul(D,ve)|0,v=Math.imul(D,Me),g=g+Math.imul(y,be)|0,s=s+Math.imul(y,Se)|0,s=s+Math.imul(O,be)|0,v=v+Math.imul(O,Se)|0,g=g+Math.imul(K,ye)|0,s=s+Math.imul(K,_e)|0,s=s+Math.imul(Z,ye)|0,v=v+Math.imul(Z,_e)|0,g=g+Math.imul(A,ge)|0,s=s+Math.imul(A,xe)|0,s=s+Math.imul(E,ge)|0,v=v+Math.imul(E,xe)|0,g=g+Math.imul($,Re)|0,s=s+Math.imul($,Le)|0,s=s+Math.imul(G,Re)|0,v=v+Math.imul(G,Le)|0;var Ot=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,g=Math.imul(j,ve),s=Math.imul(j,Me),s=s+Math.imul(z,ve)|0,v=Math.imul(z,Me),g=g+Math.imul(X,be)|0,s=s+Math.imul(X,Se)|0,s=s+Math.imul(D,be)|0,v=v+Math.imul(D,Se)|0,g=g+Math.imul(y,ye)|0,s=s+Math.imul(y,_e)|0,s=s+Math.imul(O,ye)|0,v=v+Math.imul(O,_e)|0,g=g+Math.imul(K,ge)|0,s=s+Math.imul(K,xe)|0,s=s+Math.imul(Z,ge)|0,v=v+Math.imul(Z,xe)|0,g=g+Math.imul(A,Re)|0,s=s+Math.imul(A,Le)|0,s=s+Math.imul(E,Re)|0,v=v+Math.imul(E,Le)|0,g=g+Math.imul($,Ae)|0,s=s+Math.imul($,Ne)|0,s=s+Math.imul(G,Ae)|0,v=v+Math.imul(G,Ne)|0;var Ct=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,g=Math.imul(te,ve),s=Math.imul(te,Me),s=s+Math.imul(ne,ve)|0,v=Math.imul(ne,Me),g=g+Math.imul(j,be)|0,s=s+Math.imul(j,Se)|0,s=s+Math.imul(z,be)|0,v=v+Math.imul(z,Se)|0,g=g+Math.imul(X,ye)|0,s=s+Math.imul(X,_e)|0,s=s+Math.imul(D,ye)|0,v=v+Math.imul(D,_e)|0,g=g+Math.imul(y,ge)|0,s=s+Math.imul(y,xe)|0,s=s+Math.imul(O,ge)|0,v=v+Math.imul(O,xe)|0,g=g+Math.imul(K,Re)|0,s=s+Math.imul(K,Le)|0,s=s+Math.imul(Z,Re)|0,v=v+Math.imul(Z,Le)|0,g=g+Math.imul(A,Ae)|0,s=s+Math.imul(A,Ne)|0,s=s+Math.imul(E,Ae)|0,v=v+Math.imul(E,Ne)|0,g=g+Math.imul($,Oe)|0,s=s+Math.imul($,De)|0,s=s+Math.imul(G,Oe)|0,v=v+Math.imul(G,De)|0;var kt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(kt>>>26)|0,kt&=67108863,g=Math.imul(Q,ve),s=Math.imul(Q,Me),s=s+Math.imul(ue,ve)|0,v=Math.imul(ue,Me),g=g+Math.imul(te,be)|0,s=s+Math.imul(te,Se)|0,s=s+Math.imul(ne,be)|0,v=v+Math.imul(ne,Se)|0,g=g+Math.imul(j,ye)|0,s=s+Math.imul(j,_e)|0,s=s+Math.imul(z,ye)|0,v=v+Math.imul(z,_e)|0,g=g+Math.imul(X,ge)|0,s=s+Math.imul(X,xe)|0,s=s+Math.imul(D,ge)|0,v=v+Math.imul(D,xe)|0,g=g+Math.imul(y,Re)|0,s=s+Math.imul(y,Le)|0,s=s+Math.imul(O,Re)|0,v=v+Math.imul(O,Le)|0,g=g+Math.imul(K,Ae)|0,s=s+Math.imul(K,Ne)|0,s=s+Math.imul(Z,Ae)|0,v=v+Math.imul(Z,Ne)|0,g=g+Math.imul(A,Oe)|0,s=s+Math.imul(A,De)|0,s=s+Math.imul(E,Oe)|0,v=v+Math.imul(E,De)|0,g=g+Math.imul($,Ie)|0,s=s+Math.imul($,$e)|0,s=s+Math.imul(G,Ie)|0,v=v+Math.imul(G,$e)|0;var Ut=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,g=Math.imul(ce,ve),s=Math.imul(ce,Me),s=s+Math.imul(pe,ve)|0,v=Math.imul(pe,Me),g=g+Math.imul(Q,be)|0,s=s+Math.imul(Q,Se)|0,s=s+Math.imul(ue,be)|0,v=v+Math.imul(ue,Se)|0,g=g+Math.imul(te,ye)|0,s=s+Math.imul(te,_e)|0,s=s+Math.imul(ne,ye)|0,v=v+Math.imul(ne,_e)|0,g=g+Math.imul(j,ge)|0,s=s+Math.imul(j,xe)|0,s=s+Math.imul(z,ge)|0,v=v+Math.imul(z,xe)|0,g=g+Math.imul(X,Re)|0,s=s+Math.imul(X,Le)|0,s=s+Math.imul(D,Re)|0,v=v+Math.imul(D,Le)|0,g=g+Math.imul(y,Ae)|0,s=s+Math.imul(y,Ne)|0,s=s+Math.imul(O,Ae)|0,v=v+Math.imul(O,Ne)|0,g=g+Math.imul(K,Oe)|0,s=s+Math.imul(K,De)|0,s=s+Math.imul(Z,Oe)|0,v=v+Math.imul(Z,De)|0,g=g+Math.imul(A,Ie)|0,s=s+Math.imul(A,$e)|0,s=s+Math.imul(E,Ie)|0,v=v+Math.imul(E,$e)|0,g=g+Math.imul($,Pe)|0,s=s+Math.imul($,je)|0,s=s+Math.imul(G,Pe)|0,v=v+Math.imul(G,je)|0;var Ht=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,g=Math.imul(ae,ve),s=Math.imul(ae,Me),s=s+Math.imul(fe,ve)|0,v=Math.imul(fe,Me),g=g+Math.imul(ce,be)|0,s=s+Math.imul(ce,Se)|0,s=s+Math.imul(pe,be)|0,v=v+Math.imul(pe,Se)|0,g=g+Math.imul(Q,ye)|0,s=s+Math.imul(Q,_e)|0,s=s+Math.imul(ue,ye)|0,v=v+Math.imul(ue,_e)|0,g=g+Math.imul(te,ge)|0,s=s+Math.imul(te,xe)|0,s=s+Math.imul(ne,ge)|0,v=v+Math.imul(ne,xe)|0,g=g+Math.imul(j,Re)|0,s=s+Math.imul(j,Le)|0,s=s+Math.imul(z,Re)|0,v=v+Math.imul(z,Le)|0,g=g+Math.imul(X,Ae)|0,s=s+Math.imul(X,Ne)|0,s=s+Math.imul(D,Ae)|0,v=v+Math.imul(D,Ne)|0,g=g+Math.imul(y,Oe)|0,s=s+Math.imul(y,De)|0,s=s+Math.imul(O,Oe)|0,v=v+Math.imul(O,De)|0,g=g+Math.imul(K,Ie)|0,s=s+Math.imul(K,$e)|0,s=s+Math.imul(Z,Ie)|0,v=v+Math.imul(Z,$e)|0,g=g+Math.imul(A,Pe)|0,s=s+Math.imul(A,je)|0,s=s+Math.imul(E,Pe)|0,v=v+Math.imul(E,je)|0,g=g+Math.imul($,Ce)|0,s=s+Math.imul($,Fe)|0,s=s+Math.imul(G,Ce)|0,v=v+Math.imul(G,Fe)|0;var Bt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,g=Math.imul(ae,be),s=Math.imul(ae,Se),s=s+Math.imul(fe,be)|0,v=Math.imul(fe,Se),g=g+Math.imul(ce,ye)|0,s=s+Math.imul(ce,_e)|0,s=s+Math.imul(pe,ye)|0,v=v+Math.imul(pe,_e)|0,g=g+Math.imul(Q,ge)|0,s=s+Math.imul(Q,xe)|0,s=s+Math.imul(ue,ge)|0,v=v+Math.imul(ue,xe)|0,g=g+Math.imul(te,Re)|0,s=s+Math.imul(te,Le)|0,s=s+Math.imul(ne,Re)|0,v=v+Math.imul(ne,Le)|0,g=g+Math.imul(j,Ae)|0,s=s+Math.imul(j,Ne)|0,s=s+Math.imul(z,Ae)|0,v=v+Math.imul(z,Ne)|0,g=g+Math.imul(X,Oe)|0,s=s+Math.imul(X,De)|0,s=s+Math.imul(D,Oe)|0,v=v+Math.imul(D,De)|0,g=g+Math.imul(y,Ie)|0,s=s+Math.imul(y,$e)|0,s=s+Math.imul(O,Ie)|0,v=v+Math.imul(O,$e)|0,g=g+Math.imul(K,Pe)|0,s=s+Math.imul(K,je)|0,s=s+Math.imul(Z,Pe)|0,v=v+Math.imul(Z,je)|0,g=g+Math.imul(A,Ce)|0,s=s+Math.imul(A,Fe)|0,s=s+Math.imul(E,Ce)|0,v=v+Math.imul(E,Fe)|0;var dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(dt>>>26)|0,dt&=67108863,g=Math.imul(ae,ye),s=Math.imul(ae,_e),s=s+Math.imul(fe,ye)|0,v=Math.imul(fe,_e),g=g+Math.imul(ce,ge)|0,s=s+Math.imul(ce,xe)|0,s=s+Math.imul(pe,ge)|0,v=v+Math.imul(pe,xe)|0,g=g+Math.imul(Q,Re)|0,s=s+Math.imul(Q,Le)|0,s=s+Math.imul(ue,Re)|0,v=v+Math.imul(ue,Le)|0,g=g+Math.imul(te,Ae)|0,s=s+Math.imul(te,Ne)|0,s=s+Math.imul(ne,Ae)|0,v=v+Math.imul(ne,Ne)|0,g=g+Math.imul(j,Oe)|0,s=s+Math.imul(j,De)|0,s=s+Math.imul(z,Oe)|0,v=v+Math.imul(z,De)|0,g=g+Math.imul(X,Ie)|0,s=s+Math.imul(X,$e)|0,s=s+Math.imul(D,Ie)|0,v=v+Math.imul(D,$e)|0,g=g+Math.imul(y,Pe)|0,s=s+Math.imul(y,je)|0,s=s+Math.imul(O,Pe)|0,v=v+Math.imul(O,je)|0,g=g+Math.imul(K,Ce)|0,s=s+Math.imul(K,Fe)|0,s=s+Math.imul(Z,Ce)|0,v=v+Math.imul(Z,Fe)|0;var At=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(At>>>26)|0,At&=67108863,g=Math.imul(ae,ge),s=Math.imul(ae,xe),s=s+Math.imul(fe,ge)|0,v=Math.imul(fe,xe),g=g+Math.imul(ce,Re)|0,s=s+Math.imul(ce,Le)|0,s=s+Math.imul(pe,Re)|0,v=v+Math.imul(pe,Le)|0,g=g+Math.imul(Q,Ae)|0,s=s+Math.imul(Q,Ne)|0,s=s+Math.imul(ue,Ae)|0,v=v+Math.imul(ue,Ne)|0,g=g+Math.imul(te,Oe)|0,s=s+Math.imul(te,De)|0,s=s+Math.imul(ne,Oe)|0,v=v+Math.imul(ne,De)|0,g=g+Math.imul(j,Ie)|0,s=s+Math.imul(j,$e)|0,s=s+Math.imul(z,Ie)|0,v=v+Math.imul(z,$e)|0,g=g+Math.imul(X,Pe)|0,s=s+Math.imul(X,je)|0,s=s+Math.imul(D,Pe)|0,v=v+Math.imul(D,je)|0,g=g+Math.imul(y,Ce)|0,s=s+Math.imul(y,Fe)|0,s=s+Math.imul(O,Ce)|0,v=v+Math.imul(O,Fe)|0;var _t=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(_t>>>26)|0,_t&=67108863,g=Math.imul(ae,Re),s=Math.imul(ae,Le),s=s+Math.imul(fe,Re)|0,v=Math.imul(fe,Le),g=g+Math.imul(ce,Ae)|0,s=s+Math.imul(ce,Ne)|0,s=s+Math.imul(pe,Ae)|0,v=v+Math.imul(pe,Ne)|0,g=g+Math.imul(Q,Oe)|0,s=s+Math.imul(Q,De)|0,s=s+Math.imul(ue,Oe)|0,v=v+Math.imul(ue,De)|0,g=g+Math.imul(te,Ie)|0,s=s+Math.imul(te,$e)|0,s=s+Math.imul(ne,Ie)|0,v=v+Math.imul(ne,$e)|0,g=g+Math.imul(j,Pe)|0,s=s+Math.imul(j,je)|0,s=s+Math.imul(z,Pe)|0,v=v+Math.imul(z,je)|0,g=g+Math.imul(X,Ce)|0,s=s+Math.imul(X,Fe)|0,s=s+Math.imul(D,Ce)|0,v=v+Math.imul(D,Fe)|0;var mt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(mt>>>26)|0,mt&=67108863,g=Math.imul(ae,Ae),s=Math.imul(ae,Ne),s=s+Math.imul(fe,Ae)|0,v=Math.imul(fe,Ne),g=g+Math.imul(ce,Oe)|0,s=s+Math.imul(ce,De)|0,s=s+Math.imul(pe,Oe)|0,v=v+Math.imul(pe,De)|0,g=g+Math.imul(Q,Ie)|0,s=s+Math.imul(Q,$e)|0,s=s+Math.imul(ue,Ie)|0,v=v+Math.imul(ue,$e)|0,g=g+Math.imul(te,Pe)|0,s=s+Math.imul(te,je)|0,s=s+Math.imul(ne,Pe)|0,v=v+Math.imul(ne,je)|0,g=g+Math.imul(j,Ce)|0,s=s+Math.imul(j,Fe)|0,s=s+Math.imul(z,Ce)|0,v=v+Math.imul(z,Fe)|0;var It=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(It>>>26)|0,It&=67108863,g=Math.imul(ae,Oe),s=Math.imul(ae,De),s=s+Math.imul(fe,Oe)|0,v=Math.imul(fe,De),g=g+Math.imul(ce,Ie)|0,s=s+Math.imul(ce,$e)|0,s=s+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,$e)|0,g=g+Math.imul(Q,Pe)|0,s=s+Math.imul(Q,je)|0,s=s+Math.imul(ue,Pe)|0,v=v+Math.imul(ue,je)|0,g=g+Math.imul(te,Ce)|0,s=s+Math.imul(te,Fe)|0,s=s+Math.imul(ne,Ce)|0,v=v+Math.imul(ne,Fe)|0;var vt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(vt>>>26)|0,vt&=67108863,g=Math.imul(ae,Ie),s=Math.imul(ae,$e),s=s+Math.imul(fe,Ie)|0,v=Math.imul(fe,$e),g=g+Math.imul(ce,Pe)|0,s=s+Math.imul(ce,je)|0,s=s+Math.imul(pe,Pe)|0,v=v+Math.imul(pe,je)|0,g=g+Math.imul(Q,Ce)|0,s=s+Math.imul(Q,Fe)|0,s=s+Math.imul(ue,Ce)|0,v=v+Math.imul(ue,Fe)|0;var yt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(yt>>>26)|0,yt&=67108863,g=Math.imul(ae,Pe),s=Math.imul(ae,je),s=s+Math.imul(fe,Pe)|0,v=Math.imul(fe,je),g=g+Math.imul(ce,Ce)|0,s=s+Math.imul(ce,Fe)|0,s=s+Math.imul(pe,Ce)|0,v=v+Math.imul(pe,Fe)|0;var Dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,g=Math.imul(ae,Ce),s=Math.imul(ae,Fe),s=s+Math.imul(fe,Ce)|0,v=Math.imul(fe,Fe);var Ft=(x+g|0)+((s&8191)<<13)|0;return x=(v+(s>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,w[0]=it,w[1]=et,w[2]=xt,w[3]=Tt,w[4]=Ot,w[5]=Ct,w[6]=kt,w[7]=Ut,w[8]=Ht,w[9]=Bt,w[10]=dt,w[11]=At,w[12]=_t,w[13]=mt,w[14]=It,w[15]=vt,w[16]=yt,w[17]=Dt,w[18]=Ft,x!==0&&(w[19]=x,l.length++),l};Math.imul||(k=P);function L(_,o,f){f.negative=o.negative^_.negative,f.length=_.length+o.length;for(var l=0,h=0,p=0;p<f.length-1;p++){var w=h;h=0;for(var x=l&67108863,g=Math.min(p,o.length-1),s=Math.max(0,p-_.length+1);s<=g;s++){var v=p-s,T=_.words[v]|0,$=o.words[s]|0,G=T*$,ee=G&67108863;w=w+(G/67108864|0)|0,ee=ee+x|0,x=ee&67108863,w=w+(ee>>>26)|0,h+=w>>>26,w&=67108863}f.words[p]=x,l=w,w=h}return l!==0?f.words[p]=l:f.length--,f.strip()}function I(_,o,f){var l=new B;return l.mulp(_,o,f)}n.prototype.mulTo=function(o,f){var l,h=this.length+o.length;return this.length===10&&o.length===10?l=k(this,o,f):h<63?l=P(this,o,f):h<1024?l=L(this,o,f):l=I(this,o,f),l};function B(_,o){this.x=_,this.y=o}B.prototype.makeRBT=function(o){for(var f=new Array(o),l=n.prototype._countBits(o)-1,h=0;h<o;h++)f[h]=this.revBin(h,l,o);return f},B.prototype.revBin=function(o,f,l){if(o===0||o===l-1)return o;for(var h=0,p=0;p<f;p++)h|=(o&1)<<f-p-1,o>>=1;return h},B.prototype.permute=function(o,f,l,h,p,w){for(var x=0;x<w;x++)h[x]=f[o[x]],p[x]=l[o[x]]},B.prototype.transform=function(o,f,l,h,p,w){this.permute(w,o,f,l,h,p);for(var x=1;x<p;x<<=1)for(var g=x<<1,s=Math.cos(2*Math.PI/g),v=Math.sin(2*Math.PI/g),T=0;T<p;T+=g)for(var $=s,G=v,ee=0;ee<x;ee++){var A=l[T+ee],E=h[T+ee],U=l[T+ee+x],K=h[T+ee+x],Z=$*U-G*K;K=$*K+G*U,U=Z,l[T+ee]=A+U,h[T+ee]=E+K,l[T+ee+x]=A-U,h[T+ee+x]=E-K,ee!==g&&(Z=s*$-v*G,G=s*G+v*$,$=Z)}},B.prototype.guessLen13b=function(o,f){var l=Math.max(f,o)|1,h=l&1,p=0;for(l=l/2|0;l;l=l>>>1)p++;return 1<<p+1+h},B.prototype.conjugate=function(o,f,l){if(!(l<=1))for(var h=0;h<l/2;h++){var p=o[h];o[h]=o[l-h-1],o[l-h-1]=p,p=f[h],f[h]=-f[l-h-1],f[l-h-1]=-p}},B.prototype.normalize13b=function(o,f){for(var l=0,h=0;h<f/2;h++){var p=Math.round(o[2*h+1]/f)*8192+Math.round(o[2*h]/f)+l;o[h]=p&67108863,p<67108864?l=0:l=p/67108864|0}return o},B.prototype.convert13b=function(o,f,l,h){for(var p=0,w=0;w<f;w++)p=p+(o[w]|0),l[2*w]=p&8191,p=p>>>13,l[2*w+1]=p&8191,p=p>>>13;for(w=2*f;w<h;++w)l[w]=0;i(p===0),i((p&-8192)===0)},B.prototype.stub=function(o){for(var f=new Array(o),l=0;l<o;l++)f[l]=0;return f},B.prototype.mulp=function(o,f,l){var h=2*this.guessLen13b(o.length,f.length),p=this.makeRBT(h),w=this.stub(h),x=new Array(h),g=new Array(h),s=new Array(h),v=new Array(h),T=new Array(h),$=new Array(h),G=l.words;G.length=h,this.convert13b(o.words,o.length,x,h),this.convert13b(f.words,f.length,v,h),this.transform(x,w,g,s,h,p),this.transform(v,w,T,$,h,p);for(var ee=0;ee<h;ee++){var A=g[ee]*T[ee]-s[ee]*$[ee];s[ee]=g[ee]*$[ee]+s[ee]*T[ee],g[ee]=A}return this.conjugate(g,s,h),this.transform(g,s,G,w,h,p),this.conjugate(G,w,h),this.normalize13b(G,h),l.negative=o.negative^f.negative,l.length=o.length+f.length,l.strip()},n.prototype.mul=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),this.mulTo(o,f)},n.prototype.mulf=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),I(this,o,f)},n.prototype.imul=function(o){return this.clone().mulTo(o,this)},n.prototype.imuln=function(o){i(typeof o=="number"),i(o<67108864);for(var f=0,l=0;l<this.length;l++){var h=(this.words[l]|0)*o,p=(h&67108863)+(f&67108863);f>>=26,f+=h/67108864|0,f+=p>>>26,this.words[l]=p&67108863}return f!==0&&(this.words[l]=f,this.length++),this},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var f=C(o);if(f.length===0)return new n(1);for(var l=this,h=0;h<f.length&&f[h]===0;h++,l=l.sqr());if(++h<f.length)for(var p=l.sqr();h<f.length;h++,p=p.sqr())f[h]!==0&&(l=l.mul(p));return l},n.prototype.iushln=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=67108863>>>26-f<<26-f,p;if(f!==0){var w=0;for(p=0;p<this.length;p++){var x=this.words[p]&h,g=(this.words[p]|0)-x<<f;this.words[p]=g|w,w=x>>>26-f}w&&(this.words[p]=w,this.length++)}if(l!==0){for(p=this.length-1;p>=0;p--)this.words[p+l]=this.words[p];for(p=0;p<l;p++)this.words[p]=0;this.length+=l}return this.strip()},n.prototype.ishln=function(o){return i(this.negative===0),this.iushln(o)},n.prototype.iushrn=function(o,f,l){i(typeof o=="number"&&o>=0);var h;f?h=(f-f%26)/26:h=0;var p=o%26,w=Math.min((o-p)/26,this.length),x=67108863^67108863>>>p<<p,g=l;if(h-=w,h=Math.max(0,h),g){for(var s=0;s<w;s++)g.words[s]=this.words[s];g.length=w}if(w!==0)if(this.length>w)for(this.length-=w,s=0;s<this.length;s++)this.words[s]=this.words[s+w];else this.words[0]=0,this.length=1;var v=0;for(s=this.length-1;s>=0&&(v!==0||s>=h);s--){var T=this.words[s]|0;this.words[s]=v<<26-p|T>>>p,v=T&x}return g&&v!==0&&(g.words[g.length++]=v),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(o,f,l){return i(this.negative===0),this.iushrn(o,f,l)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return!1;var p=this.words[l];return!!(p&h)},n.prototype.imaskn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(f!==0&&l++,this.length=Math.min(l,this.length),f!==0){var h=67108863^67108863>>>f<<f;this.words[this.length-1]&=h}return this.strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return i(typeof o=="number"),i(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},n.prototype._iaddn=function(o){this.words[0]+=o;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},n.prototype.isubn=function(o){if(i(typeof o=="number"),i(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,f,l){var h=o.length+l,p;this._expand(h);var w,x=0;for(p=0;p<o.length;p++){w=(this.words[p+l]|0)+x;var g=(o.words[p]|0)*f;w-=g&67108863,x=(w>>26)-(g/67108864|0),this.words[p+l]=w&67108863}for(;p<this.length-l;p++)w=(this.words[p+l]|0)+x,x=w>>26,this.words[p+l]=w&67108863;if(x===0)return this.strip();for(i(x===-1),x=0,p=0;p<this.length;p++)w=-(this.words[p]|0)+x,x=w>>26,this.words[p]=w&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(o,f){var l=this.length-o.length,h=this.clone(),p=o,w=p.words[p.length-1]|0,x=this._countBits(w);l=26-x,l!==0&&(p=p.ushln(l),h.iushln(l),w=p.words[p.length-1]|0);var g=h.length-p.length,s;if(f!=="mod"){s=new n(null),s.length=g+1,s.words=new Array(s.length);for(var v=0;v<s.length;v++)s.words[v]=0}var T=h.clone()._ishlnsubmul(p,1,g);T.negative===0&&(h=T,s&&(s.words[g]=1));for(var $=g-1;$>=0;$--){var G=(h.words[p.length+$]|0)*67108864+(h.words[p.length+$-1]|0);for(G=Math.min(G/w|0,67108863),h._ishlnsubmul(p,G,$);h.negative!==0;)G--,h.negative=0,h._ishlnsubmul(p,1,$),h.isZero()||(h.negative^=1);s&&(s.words[$]=G)}return s&&s.strip(),h.strip(),f!=="div"&&l!==0&&h.iushrn(l),{div:s||null,mod:h}},n.prototype.divmod=function(o,f,l){if(i(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,p,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,f),f!=="mod"&&(h=w.div.neg()),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.iadd(o)),{div:h,mod:p}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),f),f!=="mod"&&(h=w.div.neg()),{div:h,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),f),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.isub(o)),{div:w.div,mod:p}):o.length>this.length||this.cmp(o)<0?{div:new n(0),mod:this}:o.length===1?f==="div"?{div:this.divn(o.words[0]),mod:null}:f==="mod"?{div:null,mod:new n(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modn(o.words[0]))}:this._wordDiv(o,f)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var f=this.divmod(o);if(f.mod.isZero())return f.div;var l=f.div.negative!==0?f.mod.isub(o):f.mod,h=o.ushrn(1),p=o.andln(1),w=l.cmp(h);return w<0||p===1&&w===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},n.prototype.modn=function(o){i(o<=67108863);for(var f=(1<<26)%o,l=0,h=this.length-1;h>=0;h--)l=(f*l+(this.words[h]|0))%o;return l},n.prototype.idivn=function(o){i(o<=67108863);for(var f=0,l=this.length-1;l>=0;l--){var h=(this.words[l]|0)+f*67108864;this.words[l]=h/o|0,f=h%o}return this.strip()},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=new n(0),x=new n(1),g=0;f.isEven()&&l.isEven();)f.iushrn(1),l.iushrn(1),++g;for(var s=l.clone(),v=f.clone();!f.isZero();){for(var T=0,$=1;!(f.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(f.iushrn(T);T-- >0;)(h.isOdd()||p.isOdd())&&(h.iadd(s),p.isub(v)),h.iushrn(1),p.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(s),x.isub(v)),w.iushrn(1),x.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(w),p.isub(x)):(l.isub(f),w.isub(h),x.isub(p))}return{a:w,b:x,gcd:l.iushln(g)}},n.prototype._invmp=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=l.clone();f.cmpn(1)>0&&l.cmpn(1)>0;){for(var x=0,g=1;!(f.words[0]&g)&&x<26;++x,g<<=1);if(x>0)for(f.iushrn(x);x-- >0;)h.isOdd()&&h.iadd(w),h.iushrn(1);for(var s=0,v=1;!(l.words[0]&v)&&s<26;++s,v<<=1);if(s>0)for(l.iushrn(s);s-- >0;)p.isOdd()&&p.iadd(w),p.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(p)):(l.isub(f),p.isub(h))}var T;return f.cmpn(1)===0?T=h:T=p,T.cmpn(0)<0&&T.iadd(o),T},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var f=this.clone(),l=o.clone();f.negative=0,l.negative=0;for(var h=0;f.isEven()&&l.isEven();h++)f.iushrn(1),l.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;l.isEven();)l.iushrn(1);var p=f.cmp(l);if(p<0){var w=f;f=l,l=w}else if(p===0||l.cmpn(1)===0)break;f.isub(l)}while(!0);return l.iushln(h)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(o){return this.words[0]&o},n.prototype.bincn=function(o){i(typeof o=="number");var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return this._expand(l+1),this.words[l]|=h,this;for(var p=h,w=l;p!==0&&w<this.length;w++){var x=this.words[w]|0;x+=p,p=x>>>26,x&=67108863,this.words[w]=x}return p!==0&&(this.words[w]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(o){var f=o<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var l;if(this.length>1)l=1;else{f&&(o=-o),i(o<=67108863,"Number is too big");var h=this.words[0]|0;l=h===o?0:h<o?-1:1}return this.negative!==0?-l|0:l},n.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var f=this.ucmp(o);return this.negative!==0?-f|0:f},n.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var f=0,l=this.length-1;l>=0;l--){var h=this.words[l]|0,p=o.words[l]|0;if(h!==p){h<p?f=-1:h>p&&(f=1);break}}return f},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new V(o)},n.prototype.toRed=function(o){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},n.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(o){return this.red=o,this},n.prototype.forceRed=function(o){return i(!this.red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},n.prototype.redIAdd=function(o){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},n.prototype.redSub=function(o){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},n.prototype.redISub=function(o){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},n.prototype.redShl=function(o){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},n.prototype.redMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},n.prototype.redIMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},n.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(o){return i(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var H={k256:null,p224:null,p192:null,p25519:null};function F(_,o){this.name=_,this.p=new n(o,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil(this.n/13)),o},F.prototype.ireduce=function(o){var f=o,l;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),l=f.bitLength();while(l>this.n);var h=l<this.n?-1:f.ucmp(this.p);return h===0?(f.words[0]=0,f.length=1):h>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},F.prototype.split=function(o,f){o.iushrn(this.n,0,f)},F.prototype.imulK=function(o){return o.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(W,F),W.prototype.split=function(o,f){for(var l=4194303,h=Math.min(o.length,9),p=0;p<h;p++)f.words[p]=o.words[p];if(f.length=h,o.length<=9){o.words[0]=0,o.length=1;return}var w=o.words[9];for(f.words[f.length++]=w&l,p=10;p<o.length;p++){var x=o.words[p]|0;o.words[p-10]=(x&l)<<4|w>>>22,w=x}w>>>=22,o.words[p-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},W.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var f=0,l=0;l<o.length;l++){var h=o.words[l]|0;f+=h*977,o.words[l]=f&67108863,f=h*64+(f/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Y(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(Y,F);function ie(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(ie,F);function J(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(J,F),J.prototype.imulK=function(o){for(var f=0,l=0;l<o.length;l++){var h=(o.words[l]|0)*19+f,p=h&67108863;h>>>=26,o.words[l]=p,f=h}return f!==0&&(o.words[o.length++]=f),o},n._prime=function(o){if(H[o])return H[o];var f;if(o==="k256")f=new W;else if(o==="p224")f=new Y;else if(o==="p192")f=new ie;else if(o==="p25519")f=new J;else throw new Error("Unknown prime "+o);return H[o]=f,f};function V(_){if(typeof _=="string"){var o=n._prime(_);this.m=o.p,this.prime=o}else i(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}V.prototype._verify1=function(o){i(o.negative===0,"red works only with positives"),i(o.red,"red works only with red numbers")},V.prototype._verify2=function(o,f){i((o.negative|f.negative)===0,"red works only with positives"),i(o.red&&o.red===f.red,"red works only with red numbers")},V.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},V.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},V.prototype.add=function(o,f){this._verify2(o,f);var l=o.add(f);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},V.prototype.iadd=function(o,f){this._verify2(o,f);var l=o.iadd(f);return l.cmp(this.m)>=0&&l.isub(this.m),l},V.prototype.sub=function(o,f){this._verify2(o,f);var l=o.sub(f);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},V.prototype.isub=function(o,f){this._verify2(o,f);var l=o.isub(f);return l.cmpn(0)<0&&l.iadd(this.m),l},V.prototype.shl=function(o,f){return this._verify1(o),this.imod(o.ushln(f))},V.prototype.imul=function(o,f){return this._verify2(o,f),this.imod(o.imul(f))},V.prototype.mul=function(o,f){return this._verify2(o,f),this.imod(o.mul(f))},V.prototype.isqr=function(o){return this.imul(o,o.clone())},V.prototype.sqr=function(o){return this.mul(o,o)},V.prototype.sqrt=function(o){if(o.isZero())return o.clone();var f=this.m.andln(3);if(i(f%2===1),f===3){var l=this.m.add(new n(1)).iushrn(2);return this.pow(o,l)}for(var h=this.m.subn(1),p=0;!h.isZero()&&h.andln(1)===0;)p++,h.iushrn(1);i(!h.isZero());var w=new n(1).toRed(this),x=w.redNeg(),g=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new n(2*s*s).toRed(this);this.pow(s,g).cmp(x)!==0;)s.redIAdd(x);for(var v=this.pow(s,h),T=this.pow(o,h.addn(1).iushrn(1)),$=this.pow(o,h),G=p;$.cmp(w)!==0;){for(var ee=$,A=0;ee.cmp(w)!==0;A++)ee=ee.redSqr();i(A<G);var E=this.pow(v,new n(1).iushln(G-A-1));T=T.redMul(E),v=E.redSqr(),$=$.redMul(v),G=A}return T},V.prototype.invm=function(o){var f=o._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},V.prototype.pow=function(o,f){if(f.isZero())return new n(1).toRed(this);if(f.cmpn(1)===0)return o.clone();var l=4,h=new Array(1<<l);h[0]=new n(1).toRed(this),h[1]=o;for(var p=2;p<h.length;p++)h[p]=this.mul(h[p-1],o);var w=h[0],x=0,g=0,s=f.bitLength()%26;for(s===0&&(s=26),p=f.length-1;p>=0;p--){for(var v=f.words[p],T=s-1;T>=0;T--){var $=v>>T&1;if(w!==h[0]&&(w=this.sqr(w)),$===0&&x===0){g=0;continue}x<<=1,x|=$,g++,!(g!==l&&(p!==0||T!==0))&&(w=this.mul(w,h[x]),g=0,x=0)}s=26}return w},V.prototype.convertTo=function(o){var f=o.umod(this.m);return f===o?f.clone():f},V.prototype.convertFrom=function(o){var f=o.clone();return f.red=null,f},n.mont=function(o){return new oe(o)};function oe(_){V.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(oe,V),oe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},oe.prototype.convertFrom=function(o){var f=this.imod(o.mul(this.rinv));return f.red=null,f},oe.prototype.imul=function(o,f){if(o.isZero()||f.isZero())return o.words[0]=0,o.length=1,o;var l=o.imul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.mul=function(o,f){if(o.isZero()||f.isZero())return new n(0)._forceRed(this);var l=o.mul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.invm=function(o){var f=this.imod(o._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,Ye)})(Qg);var nV=Qg.exports,I0,Aw;function oV(){if(Aw)return I0;Aw=1;var e=jg(),t=nV;I0=function(u){return new i(u)};var r={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1;function i(n){this.curveType=r[n],this.curveType||(this.curveType={name:n}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}i.prototype.generateKeys=function(n,u){return this.keys=this.curve.genKeyPair(),this.getPublicKey(n,u)},i.prototype.computeSecret=function(n,u,c){u=u||"utf8",ke.Buffer.isBuffer(n)||(n=new ke.Buffer(n,u));var d=this.curve.keyFromPublic(n).getPublic(),m=d.mul(this.keys.getPrivate()).getX();return a(m,c,this.curveType.byteLength)},i.prototype.getPublicKey=function(n,u){var c=this.keys.getPublic(u==="compressed",!0);return u==="hybrid"&&(c[c.length-1]%2?c[0]=7:c[0]=6),a(c,n)},i.prototype.getPrivateKey=function(n){return a(this.keys.getPrivate(),n)},i.prototype.setPublicKey=function(n,u){return u=u||"utf8",ke.Buffer.isBuffer(n)||(n=new ke.Buffer(n,u)),this.keys._importPublic(n),this},i.prototype.setPrivateKey=function(n,u){u=u||"utf8",ke.Buffer.isBuffer(n)||(n=new ke.Buffer(n,u));var c=new t(n);return c=c.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(c),this};function a(n,u,c){Array.isArray(n)||(n=n.toArray());var d=new ke.Buffer(n);if(c&&d.length<c){var m=new ke.Buffer(c-d.length);m.fill(0),d=ke.Buffer.concat([m,d])}return u?d.toString(u):d}return I0}var w4={},aV=Tu,Jp=pt.Buffer,_4=function(e,t){for(var r=Jp.alloc(0),i=0,a;r.length<t;)a=sV(i++),r=Jp.concat([r,aV("sha1").update(e).update(a).digest()]);return r.slice(0,t)};function sV(e){var t=Jp.allocUnsafe(4);return t.writeUInt32BE(e,0),t}var M4=function(t,r){for(var i=t.length,a=-1;++a<i;)t[a]^=r[a];return t},em={exports:{}};em.exports;(function(e){(function(t,r){function i(_,o){if(!_)throw new Error(o||"Assertion failed")}function a(_,o){_.super_=o;var f=function(){};f.prototype=o.prototype,_.prototype=new f,_.prototype.constructor=_}function n(_,o,f){if(n.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((o==="le"||o==="be")&&(f=o,o=10),this._init(_||0,o||10,f||"be"))}typeof t=="object"?t.exports=n:r.BN=n,n.BN=n,n.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=ke.Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,f){return o.cmp(f)>0?o:f},n.min=function(o,f){return o.cmp(f)<0?o:f},n.prototype._init=function(o,f,l){if(typeof o=="number")return this._initNumber(o,f,l);if(typeof o=="object")return this._initArray(o,f,l);f==="hex"&&(f=16),i(f===(f|0)&&f>=2&&f<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h<o.length&&(f===16?this._parseHex(o,h,l):(this._parseBase(o,f,h),l==="le"&&this._initArray(this.toArray(),f,l)))},n.prototype._initNumber=function(o,f,l){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(i(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),f,l)},n.prototype._initArray=function(o,f,l){if(i(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p,w,x=0;if(l==="be")for(h=o.length-1,p=0;h>=0;h-=3)w=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);else if(l==="le")for(h=0,p=0;h<o.length;h+=3)w=o[h]|o[h+1]<<8|o[h+2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);return this.strip()};function c(_,o){var f=_.charCodeAt(o);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function d(_,o,f){var l=c(_,f);return f-1>=o&&(l|=c(_,f-1)<<4),l}n.prototype._parseHex=function(o,f,l){this.length=Math.ceil((o.length-f)/6),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p=0,w=0,x;if(l==="be")for(h=o.length-1;h>=f;h-=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8;else{var g=o.length-f;for(h=g%2===0?f+1:f;h<o.length;h+=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8}this.strip()};function m(_,o,f,l){for(var h=0,p=Math.min(_.length,f),w=o;w<p;w++){var x=_.charCodeAt(w)-48;h*=l,x>=49?h+=x-49+10:x>=17?h+=x-17+10:h+=x}return h}n.prototype._parseBase=function(o,f,l){this.words=[0],this.length=1;for(var h=0,p=1;p<=67108863;p*=f)h++;h--,p=p/f|0;for(var w=o.length-l,x=w%h,g=Math.min(w,w-x)+l,s=0,v=l;v<g;v+=h)s=m(o,v,v+h,f),this.imuln(p),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(x!==0){var T=1;for(s=m(o,v,o.length,f),v=0;v<x;v++)T*=f;this.imuln(T),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},n.prototype.copy=function(o){o.words=new Array(this.length);for(var f=0;f<this.length;f++)o.words[f]=this.words[f];o.length=this.length,o.negative=this.negative,o.red=this.red},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],R=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,f){o=o||10,f=f|0||1;var l;if(o===16||o==="hex"){l="";for(var h=0,p=0,w=0;w<this.length;w++){var x=this.words[w],g=((x<<h|p)&16777215).toString(16);p=x>>>24-h&16777215,p!==0||w!==this.length-1?l=M[6-g.length]+g+l:l=g+l,h+=2,h>=26&&(h-=26,w--)}for(p!==0&&(l=p.toString(16)+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(o===(o|0)&&o>=2&&o<=36){var s=S[o],v=R[o];l="";var T=this.clone();for(T.negative=0;!T.isZero();){var $=T.modn(v).toString(o);T=T.idivn(v),T.isZero()?l=$+l:l=M[s-$.length]+$+l}for(this.isZero()&&(l="0"+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(o,f){return i(typeof u<"u"),this.toArrayLike(u,o,f)},n.prototype.toArray=function(o,f){return this.toArrayLike(Array,o,f)},n.prototype.toArrayLike=function(o,f,l){var h=this.byteLength(),p=l||Math.max(1,h);i(h<=p,"byte array longer than desired length"),i(p>0,"Requested array length <= 0"),this.strip();var w=f==="le",x=new o(p),g,s,v=this.clone();if(w){for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[s]=g;for(;s<p;s++)x[s]=0}else{for(s=0;s<p-h;s++)x[s]=0;for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[p-s-1]=g}return x},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var f=o,l=0;return f>=4096&&(l+=13,f>>>=13),f>=64&&(l+=7,f>>>=7),f>=8&&(l+=4,f>>>=4),f>=2&&(l+=2,f>>>=2),l+f},n.prototype._zeroBits=function(o){if(o===0)return 26;var f=o,l=0;return f&8191||(l+=13,f>>>=13),f&127||(l+=7,f>>>=7),f&15||(l+=4,f>>>=4),f&3||(l+=2,f>>>=2),f&1||l++,l},n.prototype.bitLength=function(){var o=this.words[this.length-1],f=this._countBits(o);return(this.length-1)*26+f};function C(_){for(var o=new Array(_.bitLength()),f=0;f<o.length;f++){var l=f/26|0,h=f%26;o[f]=(_.words[l]&1<<h)>>>h}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,f=0;f<this.length;f++){var l=this._zeroBits(this.words[f]);if(o+=l,l!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var f=0;f<o.length;f++)this.words[f]=this.words[f]|o.words[f];return this.strip()},n.prototype.ior=function(o){return i((this.negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},n.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},n.prototype.iuand=function(o){var f;this.length>o.length?f=o:f=this;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]&o.words[l];return this.length=f.length,this.strip()},n.prototype.iand=function(o){return i((this.negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},n.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},n.prototype.iuxor=function(o){var f,l;this.length>o.length?(f=this,l=o):(f=o,l=this);for(var h=0;h<l.length;h++)this.words[h]=f.words[h]^l.words[h];if(this!==f)for(;h<f.length;h++)this.words[h]=f.words[h];return this.length=f.length,this.strip()},n.prototype.ixor=function(o){return i((this.negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},n.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},n.prototype.inotn=function(o){i(typeof o=="number"&&o>=0);var f=Math.ceil(o/26)|0,l=o%26;this._expand(f),l>0&&f--;for(var h=0;h<f;h++)this.words[h]=~this.words[h]&67108863;return l>0&&(this.words[h]=~this.words[h]&67108863>>26-l),this.strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,f){i(typeof o=="number"&&o>=0);var l=o/26|0,h=o%26;return this._expand(l+1),f?this.words[l]=this.words[l]|1<<h:this.words[l]=this.words[l]&~(1<<h),this.strip()},n.prototype.iadd=function(o){var f;if(this.negative!==0&&o.negative===0)return this.negative=0,f=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,f=this.isub(o),o.negative=1,f._normSign();var l,h;this.length>o.length?(l=this,h=o):(l=o,h=this);for(var p=0,w=0;w<h.length;w++)f=(l.words[w]|0)+(h.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;for(;p!==0&&w<l.length;w++)f=(l.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;if(this.length=l.length,p!==0)this.words[this.length]=p,this.length++;else if(l!==this)for(;w<l.length;w++)this.words[w]=l.words[w];return this},n.prototype.add=function(o){var f;return o.negative!==0&&this.negative===0?(o.negative=0,f=this.sub(o),o.negative^=1,f):o.negative===0&&this.negative!==0?(this.negative=0,f=o.sub(this),this.negative=1,f):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var f=this.iadd(o);return o.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var l=this.cmp(o);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,p;l>0?(h=this,p=o):(h=o,p=this);for(var w=0,x=0;x<p.length;x++)f=(h.words[x]|0)-(p.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;for(;w!==0&&x<h.length;x++)f=(h.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;if(w===0&&x<h.length&&h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this.length=Math.max(this.length,x),h!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function P(_,o,f){f.negative=o.negative^_.negative;var l=_.length+o.length|0;f.length=l,l=l-1|0;var h=_.words[0]|0,p=o.words[0]|0,w=h*p,x=w&67108863,g=w/67108864|0;f.words[0]=x;for(var s=1;s<l;s++){for(var v=g>>>26,T=g&67108863,$=Math.min(s,o.length-1),G=Math.max(0,s-_.length+1);G<=$;G++){var ee=s-G|0;h=_.words[ee]|0,p=o.words[G]|0,w=h*p+T,v+=w/67108864|0,T=w&67108863}f.words[s]=T|0,g=v|0}return g!==0?f.words[s]=g|0:f.length--,f.strip()}var k=function(o,f,l){var h=o.words,p=f.words,w=l.words,x=0,g,s,v,T=h[0]|0,$=T&8191,G=T>>>13,ee=h[1]|0,A=ee&8191,E=ee>>>13,U=h[2]|0,K=U&8191,Z=U>>>13,b=h[3]|0,y=b&8191,O=b>>>13,q=h[4]|0,X=q&8191,D=q>>>13,N=h[5]|0,j=N&8191,z=N>>>13,se=h[6]|0,te=se&8191,ne=se>>>13,Ee=h[7]|0,Q=Ee&8191,ue=Ee>>>13,le=h[8]|0,ce=le&8191,pe=le>>>13,de=h[9]|0,ae=de&8191,fe=de>>>13,Te=p[0]|0,ve=Te&8191,Me=Te>>>13,Ke=p[1]|0,be=Ke&8191,Se=Ke>>>13,qe=p[2]|0,ye=qe&8191,_e=qe>>>13,Ve=p[3]|0,ge=Ve&8191,xe=Ve>>>13,Xe=p[4]|0,Re=Xe&8191,Le=Xe>>>13,at=p[5]|0,Ae=at&8191,Ne=at>>>13,rt=p[6]|0,Oe=rt&8191,De=rt>>>13,nt=p[7]|0,Ie=nt&8191,$e=nt>>>13,st=p[8]|0,Pe=st&8191,je=st>>>13,ht=p[9]|0,Ce=ht&8191,Fe=ht>>>13;l.negative=o.negative^f.negative,l.length=19,g=Math.imul($,ve),s=Math.imul($,Me),s=s+Math.imul(G,ve)|0,v=Math.imul(G,Me);var it=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(it>>>26)|0,it&=67108863,g=Math.imul(A,ve),s=Math.imul(A,Me),s=s+Math.imul(E,ve)|0,v=Math.imul(E,Me),g=g+Math.imul($,be)|0,s=s+Math.imul($,Se)|0,s=s+Math.imul(G,be)|0,v=v+Math.imul(G,Se)|0;var et=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(et>>>26)|0,et&=67108863,g=Math.imul(K,ve),s=Math.imul(K,Me),s=s+Math.imul(Z,ve)|0,v=Math.imul(Z,Me),g=g+Math.imul(A,be)|0,s=s+Math.imul(A,Se)|0,s=s+Math.imul(E,be)|0,v=v+Math.imul(E,Se)|0,g=g+Math.imul($,ye)|0,s=s+Math.imul($,_e)|0,s=s+Math.imul(G,ye)|0,v=v+Math.imul(G,_e)|0;var xt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(xt>>>26)|0,xt&=67108863,g=Math.imul(y,ve),s=Math.imul(y,Me),s=s+Math.imul(O,ve)|0,v=Math.imul(O,Me),g=g+Math.imul(K,be)|0,s=s+Math.imul(K,Se)|0,s=s+Math.imul(Z,be)|0,v=v+Math.imul(Z,Se)|0,g=g+Math.imul(A,ye)|0,s=s+Math.imul(A,_e)|0,s=s+Math.imul(E,ye)|0,v=v+Math.imul(E,_e)|0,g=g+Math.imul($,ge)|0,s=s+Math.imul($,xe)|0,s=s+Math.imul(G,ge)|0,v=v+Math.imul(G,xe)|0;var Tt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,g=Math.imul(X,ve),s=Math.imul(X,Me),s=s+Math.imul(D,ve)|0,v=Math.imul(D,Me),g=g+Math.imul(y,be)|0,s=s+Math.imul(y,Se)|0,s=s+Math.imul(O,be)|0,v=v+Math.imul(O,Se)|0,g=g+Math.imul(K,ye)|0,s=s+Math.imul(K,_e)|0,s=s+Math.imul(Z,ye)|0,v=v+Math.imul(Z,_e)|0,g=g+Math.imul(A,ge)|0,s=s+Math.imul(A,xe)|0,s=s+Math.imul(E,ge)|0,v=v+Math.imul(E,xe)|0,g=g+Math.imul($,Re)|0,s=s+Math.imul($,Le)|0,s=s+Math.imul(G,Re)|0,v=v+Math.imul(G,Le)|0;var Ot=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,g=Math.imul(j,ve),s=Math.imul(j,Me),s=s+Math.imul(z,ve)|0,v=Math.imul(z,Me),g=g+Math.imul(X,be)|0,s=s+Math.imul(X,Se)|0,s=s+Math.imul(D,be)|0,v=v+Math.imul(D,Se)|0,g=g+Math.imul(y,ye)|0,s=s+Math.imul(y,_e)|0,s=s+Math.imul(O,ye)|0,v=v+Math.imul(O,_e)|0,g=g+Math.imul(K,ge)|0,s=s+Math.imul(K,xe)|0,s=s+Math.imul(Z,ge)|0,v=v+Math.imul(Z,xe)|0,g=g+Math.imul(A,Re)|0,s=s+Math.imul(A,Le)|0,s=s+Math.imul(E,Re)|0,v=v+Math.imul(E,Le)|0,g=g+Math.imul($,Ae)|0,s=s+Math.imul($,Ne)|0,s=s+Math.imul(G,Ae)|0,v=v+Math.imul(G,Ne)|0;var Ct=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,g=Math.imul(te,ve),s=Math.imul(te,Me),s=s+Math.imul(ne,ve)|0,v=Math.imul(ne,Me),g=g+Math.imul(j,be)|0,s=s+Math.imul(j,Se)|0,s=s+Math.imul(z,be)|0,v=v+Math.imul(z,Se)|0,g=g+Math.imul(X,ye)|0,s=s+Math.imul(X,_e)|0,s=s+Math.imul(D,ye)|0,v=v+Math.imul(D,_e)|0,g=g+Math.imul(y,ge)|0,s=s+Math.imul(y,xe)|0,s=s+Math.imul(O,ge)|0,v=v+Math.imul(O,xe)|0,g=g+Math.imul(K,Re)|0,s=s+Math.imul(K,Le)|0,s=s+Math.imul(Z,Re)|0,v=v+Math.imul(Z,Le)|0,g=g+Math.imul(A,Ae)|0,s=s+Math.imul(A,Ne)|0,s=s+Math.imul(E,Ae)|0,v=v+Math.imul(E,Ne)|0,g=g+Math.imul($,Oe)|0,s=s+Math.imul($,De)|0,s=s+Math.imul(G,Oe)|0,v=v+Math.imul(G,De)|0;var kt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(kt>>>26)|0,kt&=67108863,g=Math.imul(Q,ve),s=Math.imul(Q,Me),s=s+Math.imul(ue,ve)|0,v=Math.imul(ue,Me),g=g+Math.imul(te,be)|0,s=s+Math.imul(te,Se)|0,s=s+Math.imul(ne,be)|0,v=v+Math.imul(ne,Se)|0,g=g+Math.imul(j,ye)|0,s=s+Math.imul(j,_e)|0,s=s+Math.imul(z,ye)|0,v=v+Math.imul(z,_e)|0,g=g+Math.imul(X,ge)|0,s=s+Math.imul(X,xe)|0,s=s+Math.imul(D,ge)|0,v=v+Math.imul(D,xe)|0,g=g+Math.imul(y,Re)|0,s=s+Math.imul(y,Le)|0,s=s+Math.imul(O,Re)|0,v=v+Math.imul(O,Le)|0,g=g+Math.imul(K,Ae)|0,s=s+Math.imul(K,Ne)|0,s=s+Math.imul(Z,Ae)|0,v=v+Math.imul(Z,Ne)|0,g=g+Math.imul(A,Oe)|0,s=s+Math.imul(A,De)|0,s=s+Math.imul(E,Oe)|0,v=v+Math.imul(E,De)|0,g=g+Math.imul($,Ie)|0,s=s+Math.imul($,$e)|0,s=s+Math.imul(G,Ie)|0,v=v+Math.imul(G,$e)|0;var Ut=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,g=Math.imul(ce,ve),s=Math.imul(ce,Me),s=s+Math.imul(pe,ve)|0,v=Math.imul(pe,Me),g=g+Math.imul(Q,be)|0,s=s+Math.imul(Q,Se)|0,s=s+Math.imul(ue,be)|0,v=v+Math.imul(ue,Se)|0,g=g+Math.imul(te,ye)|0,s=s+Math.imul(te,_e)|0,s=s+Math.imul(ne,ye)|0,v=v+Math.imul(ne,_e)|0,g=g+Math.imul(j,ge)|0,s=s+Math.imul(j,xe)|0,s=s+Math.imul(z,ge)|0,v=v+Math.imul(z,xe)|0,g=g+Math.imul(X,Re)|0,s=s+Math.imul(X,Le)|0,s=s+Math.imul(D,Re)|0,v=v+Math.imul(D,Le)|0,g=g+Math.imul(y,Ae)|0,s=s+Math.imul(y,Ne)|0,s=s+Math.imul(O,Ae)|0,v=v+Math.imul(O,Ne)|0,g=g+Math.imul(K,Oe)|0,s=s+Math.imul(K,De)|0,s=s+Math.imul(Z,Oe)|0,v=v+Math.imul(Z,De)|0,g=g+Math.imul(A,Ie)|0,s=s+Math.imul(A,$e)|0,s=s+Math.imul(E,Ie)|0,v=v+Math.imul(E,$e)|0,g=g+Math.imul($,Pe)|0,s=s+Math.imul($,je)|0,s=s+Math.imul(G,Pe)|0,v=v+Math.imul(G,je)|0;var Ht=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,g=Math.imul(ae,ve),s=Math.imul(ae,Me),s=s+Math.imul(fe,ve)|0,v=Math.imul(fe,Me),g=g+Math.imul(ce,be)|0,s=s+Math.imul(ce,Se)|0,s=s+Math.imul(pe,be)|0,v=v+Math.imul(pe,Se)|0,g=g+Math.imul(Q,ye)|0,s=s+Math.imul(Q,_e)|0,s=s+Math.imul(ue,ye)|0,v=v+Math.imul(ue,_e)|0,g=g+Math.imul(te,ge)|0,s=s+Math.imul(te,xe)|0,s=s+Math.imul(ne,ge)|0,v=v+Math.imul(ne,xe)|0,g=g+Math.imul(j,Re)|0,s=s+Math.imul(j,Le)|0,s=s+Math.imul(z,Re)|0,v=v+Math.imul(z,Le)|0,g=g+Math.imul(X,Ae)|0,s=s+Math.imul(X,Ne)|0,s=s+Math.imul(D,Ae)|0,v=v+Math.imul(D,Ne)|0,g=g+Math.imul(y,Oe)|0,s=s+Math.imul(y,De)|0,s=s+Math.imul(O,Oe)|0,v=v+Math.imul(O,De)|0,g=g+Math.imul(K,Ie)|0,s=s+Math.imul(K,$e)|0,s=s+Math.imul(Z,Ie)|0,v=v+Math.imul(Z,$e)|0,g=g+Math.imul(A,Pe)|0,s=s+Math.imul(A,je)|0,s=s+Math.imul(E,Pe)|0,v=v+Math.imul(E,je)|0,g=g+Math.imul($,Ce)|0,s=s+Math.imul($,Fe)|0,s=s+Math.imul(G,Ce)|0,v=v+Math.imul(G,Fe)|0;var Bt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,g=Math.imul(ae,be),s=Math.imul(ae,Se),s=s+Math.imul(fe,be)|0,v=Math.imul(fe,Se),g=g+Math.imul(ce,ye)|0,s=s+Math.imul(ce,_e)|0,s=s+Math.imul(pe,ye)|0,v=v+Math.imul(pe,_e)|0,g=g+Math.imul(Q,ge)|0,s=s+Math.imul(Q,xe)|0,s=s+Math.imul(ue,ge)|0,v=v+Math.imul(ue,xe)|0,g=g+Math.imul(te,Re)|0,s=s+Math.imul(te,Le)|0,s=s+Math.imul(ne,Re)|0,v=v+Math.imul(ne,Le)|0,g=g+Math.imul(j,Ae)|0,s=s+Math.imul(j,Ne)|0,s=s+Math.imul(z,Ae)|0,v=v+Math.imul(z,Ne)|0,g=g+Math.imul(X,Oe)|0,s=s+Math.imul(X,De)|0,s=s+Math.imul(D,Oe)|0,v=v+Math.imul(D,De)|0,g=g+Math.imul(y,Ie)|0,s=s+Math.imul(y,$e)|0,s=s+Math.imul(O,Ie)|0,v=v+Math.imul(O,$e)|0,g=g+Math.imul(K,Pe)|0,s=s+Math.imul(K,je)|0,s=s+Math.imul(Z,Pe)|0,v=v+Math.imul(Z,je)|0,g=g+Math.imul(A,Ce)|0,s=s+Math.imul(A,Fe)|0,s=s+Math.imul(E,Ce)|0,v=v+Math.imul(E,Fe)|0;var dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(dt>>>26)|0,dt&=67108863,g=Math.imul(ae,ye),s=Math.imul(ae,_e),s=s+Math.imul(fe,ye)|0,v=Math.imul(fe,_e),g=g+Math.imul(ce,ge)|0,s=s+Math.imul(ce,xe)|0,s=s+Math.imul(pe,ge)|0,v=v+Math.imul(pe,xe)|0,g=g+Math.imul(Q,Re)|0,s=s+Math.imul(Q,Le)|0,s=s+Math.imul(ue,Re)|0,v=v+Math.imul(ue,Le)|0,g=g+Math.imul(te,Ae)|0,s=s+Math.imul(te,Ne)|0,s=s+Math.imul(ne,Ae)|0,v=v+Math.imul(ne,Ne)|0,g=g+Math.imul(j,Oe)|0,s=s+Math.imul(j,De)|0,s=s+Math.imul(z,Oe)|0,v=v+Math.imul(z,De)|0,g=g+Math.imul(X,Ie)|0,s=s+Math.imul(X,$e)|0,s=s+Math.imul(D,Ie)|0,v=v+Math.imul(D,$e)|0,g=g+Math.imul(y,Pe)|0,s=s+Math.imul(y,je)|0,s=s+Math.imul(O,Pe)|0,v=v+Math.imul(O,je)|0,g=g+Math.imul(K,Ce)|0,s=s+Math.imul(K,Fe)|0,s=s+Math.imul(Z,Ce)|0,v=v+Math.imul(Z,Fe)|0;var At=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(At>>>26)|0,At&=67108863,g=Math.imul(ae,ge),s=Math.imul(ae,xe),s=s+Math.imul(fe,ge)|0,v=Math.imul(fe,xe),g=g+Math.imul(ce,Re)|0,s=s+Math.imul(ce,Le)|0,s=s+Math.imul(pe,Re)|0,v=v+Math.imul(pe,Le)|0,g=g+Math.imul(Q,Ae)|0,s=s+Math.imul(Q,Ne)|0,s=s+Math.imul(ue,Ae)|0,v=v+Math.imul(ue,Ne)|0,g=g+Math.imul(te,Oe)|0,s=s+Math.imul(te,De)|0,s=s+Math.imul(ne,Oe)|0,v=v+Math.imul(ne,De)|0,g=g+Math.imul(j,Ie)|0,s=s+Math.imul(j,$e)|0,s=s+Math.imul(z,Ie)|0,v=v+Math.imul(z,$e)|0,g=g+Math.imul(X,Pe)|0,s=s+Math.imul(X,je)|0,s=s+Math.imul(D,Pe)|0,v=v+Math.imul(D,je)|0,g=g+Math.imul(y,Ce)|0,s=s+Math.imul(y,Fe)|0,s=s+Math.imul(O,Ce)|0,v=v+Math.imul(O,Fe)|0;var _t=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(_t>>>26)|0,_t&=67108863,g=Math.imul(ae,Re),s=Math.imul(ae,Le),s=s+Math.imul(fe,Re)|0,v=Math.imul(fe,Le),g=g+Math.imul(ce,Ae)|0,s=s+Math.imul(ce,Ne)|0,s=s+Math.imul(pe,Ae)|0,v=v+Math.imul(pe,Ne)|0,g=g+Math.imul(Q,Oe)|0,s=s+Math.imul(Q,De)|0,s=s+Math.imul(ue,Oe)|0,v=v+Math.imul(ue,De)|0,g=g+Math.imul(te,Ie)|0,s=s+Math.imul(te,$e)|0,s=s+Math.imul(ne,Ie)|0,v=v+Math.imul(ne,$e)|0,g=g+Math.imul(j,Pe)|0,s=s+Math.imul(j,je)|0,s=s+Math.imul(z,Pe)|0,v=v+Math.imul(z,je)|0,g=g+Math.imul(X,Ce)|0,s=s+Math.imul(X,Fe)|0,s=s+Math.imul(D,Ce)|0,v=v+Math.imul(D,Fe)|0;var mt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(mt>>>26)|0,mt&=67108863,g=Math.imul(ae,Ae),s=Math.imul(ae,Ne),s=s+Math.imul(fe,Ae)|0,v=Math.imul(fe,Ne),g=g+Math.imul(ce,Oe)|0,s=s+Math.imul(ce,De)|0,s=s+Math.imul(pe,Oe)|0,v=v+Math.imul(pe,De)|0,g=g+Math.imul(Q,Ie)|0,s=s+Math.imul(Q,$e)|0,s=s+Math.imul(ue,Ie)|0,v=v+Math.imul(ue,$e)|0,g=g+Math.imul(te,Pe)|0,s=s+Math.imul(te,je)|0,s=s+Math.imul(ne,Pe)|0,v=v+Math.imul(ne,je)|0,g=g+Math.imul(j,Ce)|0,s=s+Math.imul(j,Fe)|0,s=s+Math.imul(z,Ce)|0,v=v+Math.imul(z,Fe)|0;var It=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(It>>>26)|0,It&=67108863,g=Math.imul(ae,Oe),s=Math.imul(ae,De),s=s+Math.imul(fe,Oe)|0,v=Math.imul(fe,De),g=g+Math.imul(ce,Ie)|0,s=s+Math.imul(ce,$e)|0,s=s+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,$e)|0,g=g+Math.imul(Q,Pe)|0,s=s+Math.imul(Q,je)|0,s=s+Math.imul(ue,Pe)|0,v=v+Math.imul(ue,je)|0,g=g+Math.imul(te,Ce)|0,s=s+Math.imul(te,Fe)|0,s=s+Math.imul(ne,Ce)|0,v=v+Math.imul(ne,Fe)|0;var vt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(vt>>>26)|0,vt&=67108863,g=Math.imul(ae,Ie),s=Math.imul(ae,$e),s=s+Math.imul(fe,Ie)|0,v=Math.imul(fe,$e),g=g+Math.imul(ce,Pe)|0,s=s+Math.imul(ce,je)|0,s=s+Math.imul(pe,Pe)|0,v=v+Math.imul(pe,je)|0,g=g+Math.imul(Q,Ce)|0,s=s+Math.imul(Q,Fe)|0,s=s+Math.imul(ue,Ce)|0,v=v+Math.imul(ue,Fe)|0;var yt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(yt>>>26)|0,yt&=67108863,g=Math.imul(ae,Pe),s=Math.imul(ae,je),s=s+Math.imul(fe,Pe)|0,v=Math.imul(fe,je),g=g+Math.imul(ce,Ce)|0,s=s+Math.imul(ce,Fe)|0,s=s+Math.imul(pe,Ce)|0,v=v+Math.imul(pe,Fe)|0;var Dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,g=Math.imul(ae,Ce),s=Math.imul(ae,Fe),s=s+Math.imul(fe,Ce)|0,v=Math.imul(fe,Fe);var Ft=(x+g|0)+((s&8191)<<13)|0;return x=(v+(s>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,w[0]=it,w[1]=et,w[2]=xt,w[3]=Tt,w[4]=Ot,w[5]=Ct,w[6]=kt,w[7]=Ut,w[8]=Ht,w[9]=Bt,w[10]=dt,w[11]=At,w[12]=_t,w[13]=mt,w[14]=It,w[15]=vt,w[16]=yt,w[17]=Dt,w[18]=Ft,x!==0&&(w[19]=x,l.length++),l};Math.imul||(k=P);function L(_,o,f){f.negative=o.negative^_.negative,f.length=_.length+o.length;for(var l=0,h=0,p=0;p<f.length-1;p++){var w=h;h=0;for(var x=l&67108863,g=Math.min(p,o.length-1),s=Math.max(0,p-_.length+1);s<=g;s++){var v=p-s,T=_.words[v]|0,$=o.words[s]|0,G=T*$,ee=G&67108863;w=w+(G/67108864|0)|0,ee=ee+x|0,x=ee&67108863,w=w+(ee>>>26)|0,h+=w>>>26,w&=67108863}f.words[p]=x,l=w,w=h}return l!==0?f.words[p]=l:f.length--,f.strip()}function I(_,o,f){var l=new B;return l.mulp(_,o,f)}n.prototype.mulTo=function(o,f){var l,h=this.length+o.length;return this.length===10&&o.length===10?l=k(this,o,f):h<63?l=P(this,o,f):h<1024?l=L(this,o,f):l=I(this,o,f),l};function B(_,o){this.x=_,this.y=o}B.prototype.makeRBT=function(o){for(var f=new Array(o),l=n.prototype._countBits(o)-1,h=0;h<o;h++)f[h]=this.revBin(h,l,o);return f},B.prototype.revBin=function(o,f,l){if(o===0||o===l-1)return o;for(var h=0,p=0;p<f;p++)h|=(o&1)<<f-p-1,o>>=1;return h},B.prototype.permute=function(o,f,l,h,p,w){for(var x=0;x<w;x++)h[x]=f[o[x]],p[x]=l[o[x]]},B.prototype.transform=function(o,f,l,h,p,w){this.permute(w,o,f,l,h,p);for(var x=1;x<p;x<<=1)for(var g=x<<1,s=Math.cos(2*Math.PI/g),v=Math.sin(2*Math.PI/g),T=0;T<p;T+=g)for(var $=s,G=v,ee=0;ee<x;ee++){var A=l[T+ee],E=h[T+ee],U=l[T+ee+x],K=h[T+ee+x],Z=$*U-G*K;K=$*K+G*U,U=Z,l[T+ee]=A+U,h[T+ee]=E+K,l[T+ee+x]=A-U,h[T+ee+x]=E-K,ee!==g&&(Z=s*$-v*G,G=s*G+v*$,$=Z)}},B.prototype.guessLen13b=function(o,f){var l=Math.max(f,o)|1,h=l&1,p=0;for(l=l/2|0;l;l=l>>>1)p++;return 1<<p+1+h},B.prototype.conjugate=function(o,f,l){if(!(l<=1))for(var h=0;h<l/2;h++){var p=o[h];o[h]=o[l-h-1],o[l-h-1]=p,p=f[h],f[h]=-f[l-h-1],f[l-h-1]=-p}},B.prototype.normalize13b=function(o,f){for(var l=0,h=0;h<f/2;h++){var p=Math.round(o[2*h+1]/f)*8192+Math.round(o[2*h]/f)+l;o[h]=p&67108863,p<67108864?l=0:l=p/67108864|0}return o},B.prototype.convert13b=function(o,f,l,h){for(var p=0,w=0;w<f;w++)p=p+(o[w]|0),l[2*w]=p&8191,p=p>>>13,l[2*w+1]=p&8191,p=p>>>13;for(w=2*f;w<h;++w)l[w]=0;i(p===0),i((p&-8192)===0)},B.prototype.stub=function(o){for(var f=new Array(o),l=0;l<o;l++)f[l]=0;return f},B.prototype.mulp=function(o,f,l){var h=2*this.guessLen13b(o.length,f.length),p=this.makeRBT(h),w=this.stub(h),x=new Array(h),g=new Array(h),s=new Array(h),v=new Array(h),T=new Array(h),$=new Array(h),G=l.words;G.length=h,this.convert13b(o.words,o.length,x,h),this.convert13b(f.words,f.length,v,h),this.transform(x,w,g,s,h,p),this.transform(v,w,T,$,h,p);for(var ee=0;ee<h;ee++){var A=g[ee]*T[ee]-s[ee]*$[ee];s[ee]=g[ee]*$[ee]+s[ee]*T[ee],g[ee]=A}return this.conjugate(g,s,h),this.transform(g,s,G,w,h,p),this.conjugate(G,w,h),this.normalize13b(G,h),l.negative=o.negative^f.negative,l.length=o.length+f.length,l.strip()},n.prototype.mul=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),this.mulTo(o,f)},n.prototype.mulf=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),I(this,o,f)},n.prototype.imul=function(o){return this.clone().mulTo(o,this)},n.prototype.imuln=function(o){i(typeof o=="number"),i(o<67108864);for(var f=0,l=0;l<this.length;l++){var h=(this.words[l]|0)*o,p=(h&67108863)+(f&67108863);f>>=26,f+=h/67108864|0,f+=p>>>26,this.words[l]=p&67108863}return f!==0&&(this.words[l]=f,this.length++),this},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var f=C(o);if(f.length===0)return new n(1);for(var l=this,h=0;h<f.length&&f[h]===0;h++,l=l.sqr());if(++h<f.length)for(var p=l.sqr();h<f.length;h++,p=p.sqr())f[h]!==0&&(l=l.mul(p));return l},n.prototype.iushln=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=67108863>>>26-f<<26-f,p;if(f!==0){var w=0;for(p=0;p<this.length;p++){var x=this.words[p]&h,g=(this.words[p]|0)-x<<f;this.words[p]=g|w,w=x>>>26-f}w&&(this.words[p]=w,this.length++)}if(l!==0){for(p=this.length-1;p>=0;p--)this.words[p+l]=this.words[p];for(p=0;p<l;p++)this.words[p]=0;this.length+=l}return this.strip()},n.prototype.ishln=function(o){return i(this.negative===0),this.iushln(o)},n.prototype.iushrn=function(o,f,l){i(typeof o=="number"&&o>=0);var h;f?h=(f-f%26)/26:h=0;var p=o%26,w=Math.min((o-p)/26,this.length),x=67108863^67108863>>>p<<p,g=l;if(h-=w,h=Math.max(0,h),g){for(var s=0;s<w;s++)g.words[s]=this.words[s];g.length=w}if(w!==0)if(this.length>w)for(this.length-=w,s=0;s<this.length;s++)this.words[s]=this.words[s+w];else this.words[0]=0,this.length=1;var v=0;for(s=this.length-1;s>=0&&(v!==0||s>=h);s--){var T=this.words[s]|0;this.words[s]=v<<26-p|T>>>p,v=T&x}return g&&v!==0&&(g.words[g.length++]=v),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(o,f,l){return i(this.negative===0),this.iushrn(o,f,l)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return!1;var p=this.words[l];return!!(p&h)},n.prototype.imaskn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(f!==0&&l++,this.length=Math.min(l,this.length),f!==0){var h=67108863^67108863>>>f<<f;this.words[this.length-1]&=h}return this.strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return i(typeof o=="number"),i(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},n.prototype._iaddn=function(o){this.words[0]+=o;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},n.prototype.isubn=function(o){if(i(typeof o=="number"),i(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,f,l){var h=o.length+l,p;this._expand(h);var w,x=0;for(p=0;p<o.length;p++){w=(this.words[p+l]|0)+x;var g=(o.words[p]|0)*f;w-=g&67108863,x=(w>>26)-(g/67108864|0),this.words[p+l]=w&67108863}for(;p<this.length-l;p++)w=(this.words[p+l]|0)+x,x=w>>26,this.words[p+l]=w&67108863;if(x===0)return this.strip();for(i(x===-1),x=0,p=0;p<this.length;p++)w=-(this.words[p]|0)+x,x=w>>26,this.words[p]=w&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(o,f){var l=this.length-o.length,h=this.clone(),p=o,w=p.words[p.length-1]|0,x=this._countBits(w);l=26-x,l!==0&&(p=p.ushln(l),h.iushln(l),w=p.words[p.length-1]|0);var g=h.length-p.length,s;if(f!=="mod"){s=new n(null),s.length=g+1,s.words=new Array(s.length);for(var v=0;v<s.length;v++)s.words[v]=0}var T=h.clone()._ishlnsubmul(p,1,g);T.negative===0&&(h=T,s&&(s.words[g]=1));for(var $=g-1;$>=0;$--){var G=(h.words[p.length+$]|0)*67108864+(h.words[p.length+$-1]|0);for(G=Math.min(G/w|0,67108863),h._ishlnsubmul(p,G,$);h.negative!==0;)G--,h.negative=0,h._ishlnsubmul(p,1,$),h.isZero()||(h.negative^=1);s&&(s.words[$]=G)}return s&&s.strip(),h.strip(),f!=="div"&&l!==0&&h.iushrn(l),{div:s||null,mod:h}},n.prototype.divmod=function(o,f,l){if(i(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,p,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,f),f!=="mod"&&(h=w.div.neg()),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.iadd(o)),{div:h,mod:p}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),f),f!=="mod"&&(h=w.div.neg()),{div:h,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),f),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.isub(o)),{div:w.div,mod:p}):o.length>this.length||this.cmp(o)<0?{div:new n(0),mod:this}:o.length===1?f==="div"?{div:this.divn(o.words[0]),mod:null}:f==="mod"?{div:null,mod:new n(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modn(o.words[0]))}:this._wordDiv(o,f)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var f=this.divmod(o);if(f.mod.isZero())return f.div;var l=f.div.negative!==0?f.mod.isub(o):f.mod,h=o.ushrn(1),p=o.andln(1),w=l.cmp(h);return w<0||p===1&&w===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},n.prototype.modn=function(o){i(o<=67108863);for(var f=(1<<26)%o,l=0,h=this.length-1;h>=0;h--)l=(f*l+(this.words[h]|0))%o;return l},n.prototype.idivn=function(o){i(o<=67108863);for(var f=0,l=this.length-1;l>=0;l--){var h=(this.words[l]|0)+f*67108864;this.words[l]=h/o|0,f=h%o}return this.strip()},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=new n(0),x=new n(1),g=0;f.isEven()&&l.isEven();)f.iushrn(1),l.iushrn(1),++g;for(var s=l.clone(),v=f.clone();!f.isZero();){for(var T=0,$=1;!(f.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(f.iushrn(T);T-- >0;)(h.isOdd()||p.isOdd())&&(h.iadd(s),p.isub(v)),h.iushrn(1),p.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(s),x.isub(v)),w.iushrn(1),x.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(w),p.isub(x)):(l.isub(f),w.isub(h),x.isub(p))}return{a:w,b:x,gcd:l.iushln(g)}},n.prototype._invmp=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=l.clone();f.cmpn(1)>0&&l.cmpn(1)>0;){for(var x=0,g=1;!(f.words[0]&g)&&x<26;++x,g<<=1);if(x>0)for(f.iushrn(x);x-- >0;)h.isOdd()&&h.iadd(w),h.iushrn(1);for(var s=0,v=1;!(l.words[0]&v)&&s<26;++s,v<<=1);if(s>0)for(l.iushrn(s);s-- >0;)p.isOdd()&&p.iadd(w),p.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(p)):(l.isub(f),p.isub(h))}var T;return f.cmpn(1)===0?T=h:T=p,T.cmpn(0)<0&&T.iadd(o),T},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var f=this.clone(),l=o.clone();f.negative=0,l.negative=0;for(var h=0;f.isEven()&&l.isEven();h++)f.iushrn(1),l.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;l.isEven();)l.iushrn(1);var p=f.cmp(l);if(p<0){var w=f;f=l,l=w}else if(p===0||l.cmpn(1)===0)break;f.isub(l)}while(!0);return l.iushln(h)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(o){return this.words[0]&o},n.prototype.bincn=function(o){i(typeof o=="number");var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return this._expand(l+1),this.words[l]|=h,this;for(var p=h,w=l;p!==0&&w<this.length;w++){var x=this.words[w]|0;x+=p,p=x>>>26,x&=67108863,this.words[w]=x}return p!==0&&(this.words[w]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(o){var f=o<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var l;if(this.length>1)l=1;else{f&&(o=-o),i(o<=67108863,"Number is too big");var h=this.words[0]|0;l=h===o?0:h<o?-1:1}return this.negative!==0?-l|0:l},n.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var f=this.ucmp(o);return this.negative!==0?-f|0:f},n.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var f=0,l=this.length-1;l>=0;l--){var h=this.words[l]|0,p=o.words[l]|0;if(h!==p){h<p?f=-1:h>p&&(f=1);break}}return f},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new V(o)},n.prototype.toRed=function(o){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},n.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(o){return this.red=o,this},n.prototype.forceRed=function(o){return i(!this.red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},n.prototype.redIAdd=function(o){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},n.prototype.redSub=function(o){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},n.prototype.redISub=function(o){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},n.prototype.redShl=function(o){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},n.prototype.redMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},n.prototype.redIMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},n.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(o){return i(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var H={k256:null,p224:null,p192:null,p25519:null};function F(_,o){this.name=_,this.p=new n(o,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil(this.n/13)),o},F.prototype.ireduce=function(o){var f=o,l;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),l=f.bitLength();while(l>this.n);var h=l<this.n?-1:f.ucmp(this.p);return h===0?(f.words[0]=0,f.length=1):h>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},F.prototype.split=function(o,f){o.iushrn(this.n,0,f)},F.prototype.imulK=function(o){return o.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(W,F),W.prototype.split=function(o,f){for(var l=4194303,h=Math.min(o.length,9),p=0;p<h;p++)f.words[p]=o.words[p];if(f.length=h,o.length<=9){o.words[0]=0,o.length=1;return}var w=o.words[9];for(f.words[f.length++]=w&l,p=10;p<o.length;p++){var x=o.words[p]|0;o.words[p-10]=(x&l)<<4|w>>>22,w=x}w>>>=22,o.words[p-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},W.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var f=0,l=0;l<o.length;l++){var h=o.words[l]|0;f+=h*977,o.words[l]=f&67108863,f=h*64+(f/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Y(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(Y,F);function ie(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(ie,F);function J(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(J,F),J.prototype.imulK=function(o){for(var f=0,l=0;l<o.length;l++){var h=(o.words[l]|0)*19+f,p=h&67108863;h>>>=26,o.words[l]=p,f=h}return f!==0&&(o.words[o.length++]=f),o},n._prime=function(o){if(H[o])return H[o];var f;if(o==="k256")f=new W;else if(o==="p224")f=new Y;else if(o==="p192")f=new ie;else if(o==="p25519")f=new J;else throw new Error("Unknown prime "+o);return H[o]=f,f};function V(_){if(typeof _=="string"){var o=n._prime(_);this.m=o.p,this.prime=o}else i(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}V.prototype._verify1=function(o){i(o.negative===0,"red works only with positives"),i(o.red,"red works only with red numbers")},V.prototype._verify2=function(o,f){i((o.negative|f.negative)===0,"red works only with positives"),i(o.red&&o.red===f.red,"red works only with red numbers")},V.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},V.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},V.prototype.add=function(o,f){this._verify2(o,f);var l=o.add(f);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},V.prototype.iadd=function(o,f){this._verify2(o,f);var l=o.iadd(f);return l.cmp(this.m)>=0&&l.isub(this.m),l},V.prototype.sub=function(o,f){this._verify2(o,f);var l=o.sub(f);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},V.prototype.isub=function(o,f){this._verify2(o,f);var l=o.isub(f);return l.cmpn(0)<0&&l.iadd(this.m),l},V.prototype.shl=function(o,f){return this._verify1(o),this.imod(o.ushln(f))},V.prototype.imul=function(o,f){return this._verify2(o,f),this.imod(o.imul(f))},V.prototype.mul=function(o,f){return this._verify2(o,f),this.imod(o.mul(f))},V.prototype.isqr=function(o){return this.imul(o,o.clone())},V.prototype.sqr=function(o){return this.mul(o,o)},V.prototype.sqrt=function(o){if(o.isZero())return o.clone();var f=this.m.andln(3);if(i(f%2===1),f===3){var l=this.m.add(new n(1)).iushrn(2);return this.pow(o,l)}for(var h=this.m.subn(1),p=0;!h.isZero()&&h.andln(1)===0;)p++,h.iushrn(1);i(!h.isZero());var w=new n(1).toRed(this),x=w.redNeg(),g=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new n(2*s*s).toRed(this);this.pow(s,g).cmp(x)!==0;)s.redIAdd(x);for(var v=this.pow(s,h),T=this.pow(o,h.addn(1).iushrn(1)),$=this.pow(o,h),G=p;$.cmp(w)!==0;){for(var ee=$,A=0;ee.cmp(w)!==0;A++)ee=ee.redSqr();i(A<G);var E=this.pow(v,new n(1).iushln(G-A-1));T=T.redMul(E),v=E.redSqr(),$=$.redMul(v),G=A}return T},V.prototype.invm=function(o){var f=o._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},V.prototype.pow=function(o,f){if(f.isZero())return new n(1).toRed(this);if(f.cmpn(1)===0)return o.clone();var l=4,h=new Array(1<<l);h[0]=new n(1).toRed(this),h[1]=o;for(var p=2;p<h.length;p++)h[p]=this.mul(h[p-1],o);var w=h[0],x=0,g=0,s=f.bitLength()%26;for(s===0&&(s=26),p=f.length-1;p>=0;p--){for(var v=f.words[p],T=s-1;T>=0;T--){var $=v>>T&1;if(w!==h[0]&&(w=this.sqr(w)),$===0&&x===0){g=0;continue}x<<=1,x|=$,g++,!(g!==l&&(p!==0||T!==0))&&(w=this.mul(w,h[x]),g=0,x=0)}s=26}return w},V.prototype.convertTo=function(o){var f=o.umod(this.m);return f===o?f.clone():f},V.prototype.convertFrom=function(o){var f=o.clone();return f.red=null,f},n.mont=function(o){return new oe(o)};function oe(_){V.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(oe,V),oe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},oe.prototype.convertFrom=function(o){var f=this.imod(o.mul(this.rinv));return f.red=null,f},oe.prototype.imul=function(o,f){if(o.isZero()||f.isZero())return o.words[0]=0,o.length=1,o;var l=o.imul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.mul=function(o,f){if(o.isZero()||f.isZero())return new n(0)._forceRed(this);var l=o.mul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.invm=function(o){var f=this.imod(o._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,Ye)})(em);var tm=em.exports,Tw=tm,fV=pt.Buffer;function uV(e,t){return fV.from(e.toRed(Tw.mont(t.modulus)).redPow(new Tw(t.publicExponent)).fromRed().toArray())}var S4=uV,lV=Mc,Qp=Ds,hV=Tu,Ow=_4,Iw=M4,rm=tm,cV=S4,dV=Lg,Ci=pt.Buffer,pV=function(t,r,i){var a;t.padding?a=t.padding:i?a=1:a=4;var n=lV(t),u;if(a===4)u=vV(n,r);else if(a===1)u=gV(n,r,i);else if(a===3){if(u=new rm(r),u.cmp(n.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return i?dV(u,n):cV(u,n)};function vV(e,t){var r=e.modulus.byteLength(),i=t.length,a=hV("sha1").update(Ci.alloc(0)).digest(),n=a.length,u=2*n;if(i>r-u-2)throw new Error("message too long");var c=Ci.alloc(r-i-u-2),d=r-n-1,m=Qp(n),M=Iw(Ci.concat([a,c,Ci.alloc(1,1),t],d),Ow(m,d)),S=Iw(m,Ow(M,n));return new rm(Ci.concat([Ci.alloc(1),S,M],r))}function gV(e,t,r){var i=t.length,a=e.modulus.byteLength();if(i>a-11)throw new Error("message too long");var n;return r?n=Ci.alloc(a-i-3,255):n=mV(a-i-3),new rm(Ci.concat([Ci.from([0,r?1:2]),n,Ci.alloc(1),t],a))}function mV(e){for(var t=Ci.allocUnsafe(e),r=0,i=Qp(e*2),a=0,n;r<e;)a===i.length&&(i=Qp(e*2),a=0),n=i[a++],n&&(t[r++]=n);return t}var yV=Mc,Pw=_4,Cw=M4,Bw=tm,bV=Lg,wV=Tu,_V=S4,fu=pt.Buffer,MV=function(t,r,i){var a;t.padding?a=t.padding:i?a=1:a=4;var n=yV(t),u=n.modulus.byteLength();if(r.length>u||new Bw(r).cmp(n.modulus)>=0)throw new Error("decryption error");var c;i?c=_V(new Bw(r),n):c=bV(r,n);var d=fu.alloc(u-c.length);if(c=fu.concat([d,c],u),a===4)return SV(n,c);if(a===1)return xV(n,c,i);if(a===3)return c;throw new Error("unknown padding")};function SV(e,t){var r=e.modulus.byteLength(),i=wV("sha1").update(fu.alloc(0)).digest(),a=i.length;if(t[0]!==0)throw new Error("decryption error");var n=t.slice(1,a+1),u=t.slice(a+1),c=Cw(n,Pw(u,a)),d=Cw(u,Pw(c,r-a-1));if(EV(i,d.slice(0,a)))throw new Error("decryption error");for(var m=a;d[m]===0;)m++;if(d[m++]!==1)throw new Error("decryption error");return d.slice(m)}function xV(e,t,r){for(var i=t.slice(0,2),a=2,n=0;t[a++]!==0;)if(a>=t.length){n++;break}var u=t.slice(2,a-1);if((i.toString("hex")!=="0002"&&!r||i.toString("hex")!=="0001"&&r)&&n++,u.length<8&&n++,n)throw new Error("decryption error");return t.slice(a)}function EV(e,t){e=fu.from(e),t=fu.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));for(var a=-1;++a<i;)r+=e[a]^t[a];return r}(function(e){e.publicEncrypt=pV,e.privateDecrypt=MV,e.privateEncrypt=function(r,i){return e.publicEncrypt(r,i,!0)},e.publicDecrypt=function(r,i){return e.privateDecrypt(r,i,!0)}})(w4);var Rf={};function Lw(){throw new Error(`secure random number generation not supported by this browser
+use chrome, FireFox or Internet Explorer 11`)}var x4=pt,Nw=Ds,E4=x4.Buffer,R4=x4.kMaxLength,ev=Ye.crypto||Ye.msCrypto,A4=Math.pow(2,32)-1;function T4(e,t){if(typeof e!="number"||e!==e)throw new TypeError("offset must be a number");if(e>A4||e<0)throw new TypeError("offset must be a uint32");if(e>R4||e>t)throw new RangeError("offset out of range")}function O4(e,t,r){if(typeof e!="number"||e!==e)throw new TypeError("size must be a number");if(e>A4||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>R4)throw new RangeError("buffer too small")}ev&&ev.getRandomValues||!we.browser?(Rf.randomFill=RV,Rf.randomFillSync=AV):(Rf.randomFill=Lw,Rf.randomFillSync=Lw);function RV(e,t,r,i){if(!E4.isBuffer(e)&&!(e instanceof Ye.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof t=="function")i=t,t=0,r=e.length;else if(typeof r=="function")i=r,r=e.length-t;else if(typeof i!="function")throw new TypeError('"cb" argument must be a function');return T4(t,e.length),O4(r,t,e.length),I4(e,t,r,i)}function I4(e,t,r,i){if(we.browser){var a=e.buffer,n=new Uint8Array(a,t,r);if(ev.getRandomValues(n),i){we.nextTick(function(){i(null,e)});return}return e}if(i){Nw(r,function(c,d){if(c)return i(c);d.copy(e,t),i(null,e)});return}var u=Nw(r);return u.copy(e,t),e}function AV(e,t,r){if(typeof t>"u"&&(t=0),!E4.isBuffer(e)&&!(e instanceof Ye.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return T4(t,e.length),r===void 0&&(r=e.length-t),O4(r,t,e.length),I4(e,t,r)}var kw;function P4(){if(kw)return ct;kw=1,ct.randomBytes=ct.rng=ct.pseudoRandomBytes=ct.prng=Ds,ct.createHash=ct.Hash=Tu,ct.createHmac=ct.Hmac=PS;var e=Bj,t=Object.keys(e),r=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);ct.getHashes=function(){return r};var i=rc;ct.pbkdf2=i.pbkdf2,ct.pbkdf2Sync=i.pbkdf2Sync;var a=$i;ct.Cipher=a.Cipher,ct.createCipher=a.createCipher,ct.Cipheriv=a.Cipheriv,ct.createCipheriv=a.createCipheriv,ct.Decipher=a.Decipher,ct.createDecipher=a.createDecipher,ct.Decipheriv=a.Decipheriv,ct.createDecipheriv=a.createDecipheriv,ct.getCiphers=a.getCiphers,ct.listCiphers=a.listCiphers;var n=cH();ct.DiffieHellmanGroup=n.DiffieHellmanGroup,ct.createDiffieHellmanGroup=n.createDiffieHellmanGroup,ct.getDiffieHellman=n.getDiffieHellman,ct.createDiffieHellman=n.createDiffieHellman,ct.DiffieHellman=n.DiffieHellman;var u=iV();ct.createSign=u.createSign,ct.Sign=u.Sign,ct.createVerify=u.createVerify,ct.Verify=u.Verify,ct.createECDH=oV();var c=w4;ct.publicEncrypt=c.publicEncrypt,ct.privateEncrypt=c.privateEncrypt,ct.publicDecrypt=c.publicDecrypt,ct.privateDecrypt=c.privateDecrypt;var d=Rf;return ct.randomFill=d.randomFill,ct.randomFillSync=d.randomFillSync,ct.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
+`))},ct.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},ct}var TV=P4();const qV=Lo(TV);export{FV as $,Zt as A,nl as B,$p as C,$l as D,o_ as E,FR as F,Lt as G,jV as H,Ii as I,$v as J,Pn as K,wv as L,Rh as M,Mn as N,Dl as O,E_ as P,_2 as Q,M2 as R,CV as S,F5 as T,NV as U,LV as V,BV as W,UR as X,kV as Y,$V as Z,zR as _,mr as a,F8 as a0,K8 as a1,z8 as a2,UV as a3,HV as a4,qV as a5,PV as a6,ke as b,Ye as c,Bs as d,bh as e,Qt as f,ho as g,xh as h,qf as i,tv as j,tt as k,ft as l,j0 as m,vr as n,Ns as o,W8 as p,Je as q,DV as r,l2 as s,lt as t,Cv as u,J0 as v,lr as w,si as x,Pv as y,fi as z};
diff --git a/web/settings/assets/vendor-94ac8c48.js b/web/settings/assets/vendor-94ac8c48.js
deleted file mode 100644
index 6db9d37dbe..0000000000
--- a/web/settings/assets/vendor-94ac8c48.js
+++ /dev/null
@@ -1,100 +0,0 @@
-import{r as k4}from"./vendor-sortablejs-dbc23470.js";var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tv(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function i(){if(this instanceof i){var a=[null];a.push.apply(a,arguments);var n=Function.bind.apply(t,a);return new n}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var ke={},oh={};oh.byteLength=F4;oh.toByteArray=U4;oh.fromByteArray=W4;var Xi=[],ui=[],$4=typeof Uint8Array<"u"?Uint8Array:Array,Oc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Ca=0,D4=Oc.length;Ca<D4;++Ca)Xi[Ca]=Oc[Ca],ui[Oc.charCodeAt(Ca)]=Ca;ui["-".charCodeAt(0)]=62;ui["_".charCodeAt(0)]=63;function Dw(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var i=r===t?0:4-r%4;return[r,i]}function F4(e){var t=Dw(e),r=t[0],i=t[1];return(r+i)*3/4-i}function j4(e,t,r){return(t+r)*3/4-r}function U4(e){var t,r=Dw(e),i=r[0],a=r[1],n=new $4(j4(e,i,a)),u=0,c=a>0?i-4:i,d;for(d=0;d<c;d+=4)t=ui[e.charCodeAt(d)]<<18|ui[e.charCodeAt(d+1)]<<12|ui[e.charCodeAt(d+2)]<<6|ui[e.charCodeAt(d+3)],n[u++]=t>>16&255,n[u++]=t>>8&255,n[u++]=t&255;return a===2&&(t=ui[e.charCodeAt(d)]<<2|ui[e.charCodeAt(d+1)]>>4,n[u++]=t&255),a===1&&(t=ui[e.charCodeAt(d)]<<10|ui[e.charCodeAt(d+1)]<<4|ui[e.charCodeAt(d+2)]>>2,n[u++]=t>>8&255,n[u++]=t&255),n}function H4(e){return Xi[e>>18&63]+Xi[e>>12&63]+Xi[e>>6&63]+Xi[e&63]}function q4(e,t,r){for(var i,a=[],n=t;n<r;n+=3)i=(e[n]<<16&16711680)+(e[n+1]<<8&65280)+(e[n+2]&255),a.push(H4(i));return a.join("")}function W4(e){for(var t,r=e.length,i=r%3,a=[],n=16383,u=0,c=r-i;u<c;u+=n)a.push(q4(e,u,u+n>c?c:u+n));return i===1?(t=e[r-1],a.push(Xi[t>>2]+Xi[t<<4&63]+"==")):i===2&&(t=(e[r-2]<<8)+e[r-1],a.push(Xi[t>>10]+Xi[t>>4&63]+Xi[t<<2&63]+"=")),a.join("")}var rv={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */rv.read=function(e,t,r,i,a){var n,u,c=a*8-i-1,d=(1<<c)-1,m=d>>1,M=-7,S=r?a-1:0,R=r?-1:1,C=e[t+S];for(S+=R,n=C&(1<<-M)-1,C>>=-M,M+=c;M>0;n=n*256+e[t+S],S+=R,M-=8);for(u=n&(1<<-M)-1,n>>=-M,M+=i;M>0;u=u*256+e[t+S],S+=R,M-=8);if(n===0)n=1-m;else{if(n===d)return u?NaN:(C?-1:1)*(1/0);u=u+Math.pow(2,i),n=n-m}return(C?-1:1)*u*Math.pow(2,n-i)};rv.write=function(e,t,r,i,a,n){var u,c,d,m=n*8-a-1,M=(1<<m)-1,S=M>>1,R=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,C=i?0:n-1,P=i?1:-1,k=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,u=M):(u=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-u))<1&&(u--,d*=2),u+S>=1?t+=R/d:t+=R*Math.pow(2,1-S),t*d>=2&&(u++,d/=2),u+S>=M?(c=0,u=M):u+S>=1?(c=(t*d-1)*Math.pow(2,a),u=u+S):(c=t*Math.pow(2,S-1)*Math.pow(2,a),u=0));a>=8;e[r+C]=c&255,C+=P,c/=256,a-=8);for(u=u<<a|c,m+=a;m>0;e[r+C]=u&255,C+=P,u/=256,m-=8);e[r+C-P]|=k*128};/*!
- * The buffer module from node.js, for the browser.
- *
- * @author   Feross Aboukhadijeh <https://feross.org>
- * @license  MIT
- */(function(e){var t=oh,r=rv,i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=B,e.INSPECT_MAX_BYTES=50;var a=2147483647;e.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=n(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function n(){try{var D=new Uint8Array(1),N={foo:function(){return 42}};return Object.setPrototypeOf(N,Uint8Array.prototype),Object.setPrototypeOf(D,N),D.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function u(D){if(D>a)throw new RangeError('The value "'+D+'" is invalid for option "size"');var N=new Uint8Array(D);return Object.setPrototypeOf(N,c.prototype),N}function c(D,N,j){if(typeof D=="number"){if(typeof N=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(D)}return d(D,N,j)}c.poolSize=8192;function d(D,N,j){if(typeof D=="string")return R(D,N);if(ArrayBuffer.isView(D))return P(D);if(D==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof D);if(O(D,ArrayBuffer)||D&&O(D.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(O(D,SharedArrayBuffer)||D&&O(D.buffer,SharedArrayBuffer)))return k(D,N,j);if(typeof D=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var z=D.valueOf&&D.valueOf();if(z!=null&&z!==D)return c.from(z,N,j);var se=L(D);if(se)return se;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof D[Symbol.toPrimitive]=="function")return c.from(D[Symbol.toPrimitive]("string"),N,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof D)}c.from=function(D,N,j){return d(D,N,j)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function m(D){if(typeof D!="number")throw new TypeError('"size" argument must be of type number');if(D<0)throw new RangeError('The value "'+D+'" is invalid for option "size"')}function M(D,N,j){return m(D),D<=0?u(D):N!==void 0?typeof j=="string"?u(D).fill(N,j):u(D).fill(N):u(D)}c.alloc=function(D,N,j){return M(D,N,j)};function S(D){return m(D),u(D<0?0:I(D)|0)}c.allocUnsafe=function(D){return S(D)},c.allocUnsafeSlow=function(D){return S(D)};function R(D,N){if((typeof N!="string"||N==="")&&(N="utf8"),!c.isEncoding(N))throw new TypeError("Unknown encoding: "+N);var j=H(D,N)|0,z=u(j),se=z.write(D,N);return se!==j&&(z=z.slice(0,se)),z}function C(D){for(var N=D.length<0?0:I(D.length)|0,j=u(N),z=0;z<N;z+=1)j[z]=D[z]&255;return j}function P(D){if(O(D,Uint8Array)){var N=new Uint8Array(D);return k(N.buffer,N.byteOffset,N.byteLength)}return C(D)}function k(D,N,j){if(N<0||D.byteLength<N)throw new RangeError('"offset" is outside of buffer bounds');if(D.byteLength<N+(j||0))throw new RangeError('"length" is outside of buffer bounds');var z;return N===void 0&&j===void 0?z=new Uint8Array(D):j===void 0?z=new Uint8Array(D,N):z=new Uint8Array(D,N,j),Object.setPrototypeOf(z,c.prototype),z}function L(D){if(c.isBuffer(D)){var N=I(D.length)|0,j=u(N);return j.length===0||D.copy(j,0,0,N),j}if(D.length!==void 0)return typeof D.length!="number"||q(D.length)?u(0):C(D);if(D.type==="Buffer"&&Array.isArray(D.data))return C(D.data)}function I(D){if(D>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return D|0}function B(D){return+D!=D&&(D=0),c.alloc(+D)}c.isBuffer=function(N){return N!=null&&N._isBuffer===!0&&N!==c.prototype},c.compare=function(N,j){if(O(N,Uint8Array)&&(N=c.from(N,N.offset,N.byteLength)),O(j,Uint8Array)&&(j=c.from(j,j.offset,j.byteLength)),!c.isBuffer(N)||!c.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(N===j)return 0;for(var z=N.length,se=j.length,te=0,ne=Math.min(z,se);te<ne;++te)if(N[te]!==j[te]){z=N[te],se=j[te];break}return z<se?-1:se<z?1:0},c.isEncoding=function(N){switch(String(N).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(N,j){if(!Array.isArray(N))throw new TypeError('"list" argument must be an Array of Buffers');if(N.length===0)return c.alloc(0);var z;if(j===void 0)for(j=0,z=0;z<N.length;++z)j+=N[z].length;var se=c.allocUnsafe(j),te=0;for(z=0;z<N.length;++z){var ne=N[z];if(O(ne,Uint8Array))te+ne.length>se.length?c.from(ne).copy(se,te):Uint8Array.prototype.set.call(se,ne,te);else if(c.isBuffer(ne))ne.copy(se,te);else throw new TypeError('"list" argument must be an Array of Buffers');te+=ne.length}return se};function H(D,N){if(c.isBuffer(D))return D.length;if(ArrayBuffer.isView(D)||O(D,ArrayBuffer))return D.byteLength;if(typeof D!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof D);var j=D.length,z=arguments.length>2&&arguments[2]===!0;if(!z&&j===0)return 0;for(var se=!1;;)switch(N){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return U(D).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j*2;case"hex":return j>>>1;case"base64":return b(D).length;default:if(se)return z?-1:U(D).length;N=(""+N).toLowerCase(),se=!0}}c.byteLength=H;function F(D,N,j){var z=!1;if((N===void 0||N<0)&&(N=0),N>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0,N>>>=0,j<=N))return"";for(D||(D="utf8");;)switch(D){case"hex":return g(this,N,j);case"utf8":case"utf-8":return l(this,N,j);case"ascii":return w(this,N,j);case"latin1":case"binary":return x(this,N,j);case"base64":return f(this,N,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s(this,N,j);default:if(z)throw new TypeError("Unknown encoding: "+D);D=(D+"").toLowerCase(),z=!0}}c.prototype._isBuffer=!0;function W(D,N,j){var z=D[N];D[N]=D[j],D[j]=z}c.prototype.swap16=function(){var N=this.length;if(N%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var j=0;j<N;j+=2)W(this,j,j+1);return this},c.prototype.swap32=function(){var N=this.length;if(N%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var j=0;j<N;j+=4)W(this,j,j+3),W(this,j+1,j+2);return this},c.prototype.swap64=function(){var N=this.length;if(N%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var j=0;j<N;j+=8)W(this,j,j+7),W(this,j+1,j+6),W(this,j+2,j+5),W(this,j+3,j+4);return this},c.prototype.toString=function(){var N=this.length;return N===0?"":arguments.length===0?l(this,0,N):F.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(N){if(!c.isBuffer(N))throw new TypeError("Argument must be a Buffer");return this===N?!0:c.compare(this,N)===0},c.prototype.inspect=function(){var N="",j=e.INSPECT_MAX_BYTES;return N=this.toString("hex",0,j).replace(/(.{2})/g,"$1 ").trim(),this.length>j&&(N+=" ... "),"<Buffer "+N+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(N,j,z,se,te){if(O(N,Uint8Array)&&(N=c.from(N,N.offset,N.byteLength)),!c.isBuffer(N))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof N);if(j===void 0&&(j=0),z===void 0&&(z=N?N.length:0),se===void 0&&(se=0),te===void 0&&(te=this.length),j<0||z>N.length||se<0||te>this.length)throw new RangeError("out of range index");if(se>=te&&j>=z)return 0;if(se>=te)return-1;if(j>=z)return 1;if(j>>>=0,z>>>=0,se>>>=0,te>>>=0,this===N)return 0;for(var ne=te-se,Ee=z-j,Q=Math.min(ne,Ee),ue=this.slice(se,te),le=N.slice(j,z),ce=0;ce<Q;++ce)if(ue[ce]!==le[ce]){ne=ue[ce],Ee=le[ce];break}return ne<Ee?-1:Ee<ne?1:0};function Y(D,N,j,z,se){if(D.length===0)return-1;if(typeof j=="string"?(z=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),j=+j,q(j)&&(j=se?0:D.length-1),j<0&&(j=D.length+j),j>=D.length){if(se)return-1;j=D.length-1}else if(j<0)if(se)j=0;else return-1;if(typeof N=="string"&&(N=c.from(N,z)),c.isBuffer(N))return N.length===0?-1:ie(D,N,j,z,se);if(typeof N=="number")return N=N&255,typeof Uint8Array.prototype.indexOf=="function"?se?Uint8Array.prototype.indexOf.call(D,N,j):Uint8Array.prototype.lastIndexOf.call(D,N,j):ie(D,[N],j,z,se);throw new TypeError("val must be string, number or Buffer")}function ie(D,N,j,z,se){var te=1,ne=D.length,Ee=N.length;if(z!==void 0&&(z=String(z).toLowerCase(),z==="ucs2"||z==="ucs-2"||z==="utf16le"||z==="utf-16le")){if(D.length<2||N.length<2)return-1;te=2,ne/=2,Ee/=2,j/=2}function Q(de,ae){return te===1?de[ae]:de.readUInt16BE(ae*te)}var ue;if(se){var le=-1;for(ue=j;ue<ne;ue++)if(Q(D,ue)===Q(N,le===-1?0:ue-le)){if(le===-1&&(le=ue),ue-le+1===Ee)return le*te}else le!==-1&&(ue-=ue-le),le=-1}else for(j+Ee>ne&&(j=ne-Ee),ue=j;ue>=0;ue--){for(var ce=!0,pe=0;pe<Ee;pe++)if(Q(D,ue+pe)!==Q(N,pe)){ce=!1;break}if(ce)return ue}return-1}c.prototype.includes=function(N,j,z){return this.indexOf(N,j,z)!==-1},c.prototype.indexOf=function(N,j,z){return Y(this,N,j,z,!0)},c.prototype.lastIndexOf=function(N,j,z){return Y(this,N,j,z,!1)};function J(D,N,j,z){j=Number(j)||0;var se=D.length-j;z?(z=Number(z),z>se&&(z=se)):z=se;var te=N.length;z>te/2&&(z=te/2);for(var ne=0;ne<z;++ne){var Ee=parseInt(N.substr(ne*2,2),16);if(q(Ee))return ne;D[j+ne]=Ee}return ne}function V(D,N,j,z){return y(U(N,D.length-j),D,j,z)}function oe(D,N,j,z){return y(K(N),D,j,z)}function _(D,N,j,z){return y(b(N),D,j,z)}function o(D,N,j,z){return y(Z(N,D.length-j),D,j,z)}c.prototype.write=function(N,j,z,se){if(j===void 0)se="utf8",z=this.length,j=0;else if(z===void 0&&typeof j=="string")se=j,z=this.length,j=0;else if(isFinite(j))j=j>>>0,isFinite(z)?(z=z>>>0,se===void 0&&(se="utf8")):(se=z,z=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var te=this.length-j;if((z===void 0||z>te)&&(z=te),N.length>0&&(z<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");se||(se="utf8");for(var ne=!1;;)switch(se){case"hex":return J(this,N,j,z);case"utf8":case"utf-8":return V(this,N,j,z);case"ascii":case"latin1":case"binary":return oe(this,N,j,z);case"base64":return _(this,N,j,z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return o(this,N,j,z);default:if(ne)throw new TypeError("Unknown encoding: "+se);se=(""+se).toLowerCase(),ne=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function f(D,N,j){return N===0&&j===D.length?t.fromByteArray(D):t.fromByteArray(D.slice(N,j))}function l(D,N,j){j=Math.min(D.length,j);for(var z=[],se=N;se<j;){var te=D[se],ne=null,Ee=te>239?4:te>223?3:te>191?2:1;if(se+Ee<=j){var Q,ue,le,ce;switch(Ee){case 1:te<128&&(ne=te);break;case 2:Q=D[se+1],(Q&192)===128&&(ce=(te&31)<<6|Q&63,ce>127&&(ne=ce));break;case 3:Q=D[se+1],ue=D[se+2],(Q&192)===128&&(ue&192)===128&&(ce=(te&15)<<12|(Q&63)<<6|ue&63,ce>2047&&(ce<55296||ce>57343)&&(ne=ce));break;case 4:Q=D[se+1],ue=D[se+2],le=D[se+3],(Q&192)===128&&(ue&192)===128&&(le&192)===128&&(ce=(te&15)<<18|(Q&63)<<12|(ue&63)<<6|le&63,ce>65535&&ce<1114112&&(ne=ce))}}ne===null?(ne=65533,Ee=1):ne>65535&&(ne-=65536,z.push(ne>>>10&1023|55296),ne=56320|ne&1023),z.push(ne),se+=Ee}return p(z)}var h=4096;function p(D){var N=D.length;if(N<=h)return String.fromCharCode.apply(String,D);for(var j="",z=0;z<N;)j+=String.fromCharCode.apply(String,D.slice(z,z+=h));return j}function w(D,N,j){var z="";j=Math.min(D.length,j);for(var se=N;se<j;++se)z+=String.fromCharCode(D[se]&127);return z}function x(D,N,j){var z="";j=Math.min(D.length,j);for(var se=N;se<j;++se)z+=String.fromCharCode(D[se]);return z}function g(D,N,j){var z=D.length;(!N||N<0)&&(N=0),(!j||j<0||j>z)&&(j=z);for(var se="",te=N;te<j;++te)se+=X[D[te]];return se}function s(D,N,j){for(var z=D.slice(N,j),se="",te=0;te<z.length-1;te+=2)se+=String.fromCharCode(z[te]+z[te+1]*256);return se}c.prototype.slice=function(N,j){var z=this.length;N=~~N,j=j===void 0?z:~~j,N<0?(N+=z,N<0&&(N=0)):N>z&&(N=z),j<0?(j+=z,j<0&&(j=0)):j>z&&(j=z),j<N&&(j=N);var se=this.subarray(N,j);return Object.setPrototypeOf(se,c.prototype),se};function v(D,N,j){if(D%1!==0||D<0)throw new RangeError("offset is not uint");if(D+N>j)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(N,j,z){N=N>>>0,j=j>>>0,z||v(N,j,this.length);for(var se=this[N],te=1,ne=0;++ne<j&&(te*=256);)se+=this[N+ne]*te;return se},c.prototype.readUintBE=c.prototype.readUIntBE=function(N,j,z){N=N>>>0,j=j>>>0,z||v(N,j,this.length);for(var se=this[N+--j],te=1;j>0&&(te*=256);)se+=this[N+--j]*te;return se},c.prototype.readUint8=c.prototype.readUInt8=function(N,j){return N=N>>>0,j||v(N,1,this.length),this[N]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(N,j){return N=N>>>0,j||v(N,2,this.length),this[N]|this[N+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(N,j){return N=N>>>0,j||v(N,2,this.length),this[N]<<8|this[N+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(N,j){return N=N>>>0,j||v(N,4,this.length),(this[N]|this[N+1]<<8|this[N+2]<<16)+this[N+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(N,j){return N=N>>>0,j||v(N,4,this.length),this[N]*16777216+(this[N+1]<<16|this[N+2]<<8|this[N+3])},c.prototype.readIntLE=function(N,j,z){N=N>>>0,j=j>>>0,z||v(N,j,this.length);for(var se=this[N],te=1,ne=0;++ne<j&&(te*=256);)se+=this[N+ne]*te;return te*=128,se>=te&&(se-=Math.pow(2,8*j)),se},c.prototype.readIntBE=function(N,j,z){N=N>>>0,j=j>>>0,z||v(N,j,this.length);for(var se=j,te=1,ne=this[N+--se];se>0&&(te*=256);)ne+=this[N+--se]*te;return te*=128,ne>=te&&(ne-=Math.pow(2,8*j)),ne},c.prototype.readInt8=function(N,j){return N=N>>>0,j||v(N,1,this.length),this[N]&128?(255-this[N]+1)*-1:this[N]},c.prototype.readInt16LE=function(N,j){N=N>>>0,j||v(N,2,this.length);var z=this[N]|this[N+1]<<8;return z&32768?z|4294901760:z},c.prototype.readInt16BE=function(N,j){N=N>>>0,j||v(N,2,this.length);var z=this[N+1]|this[N]<<8;return z&32768?z|4294901760:z},c.prototype.readInt32LE=function(N,j){return N=N>>>0,j||v(N,4,this.length),this[N]|this[N+1]<<8|this[N+2]<<16|this[N+3]<<24},c.prototype.readInt32BE=function(N,j){return N=N>>>0,j||v(N,4,this.length),this[N]<<24|this[N+1]<<16|this[N+2]<<8|this[N+3]},c.prototype.readFloatLE=function(N,j){return N=N>>>0,j||v(N,4,this.length),r.read(this,N,!0,23,4)},c.prototype.readFloatBE=function(N,j){return N=N>>>0,j||v(N,4,this.length),r.read(this,N,!1,23,4)},c.prototype.readDoubleLE=function(N,j){return N=N>>>0,j||v(N,8,this.length),r.read(this,N,!0,52,8)},c.prototype.readDoubleBE=function(N,j){return N=N>>>0,j||v(N,8,this.length),r.read(this,N,!1,52,8)};function T(D,N,j,z,se,te){if(!c.isBuffer(D))throw new TypeError('"buffer" argument must be a Buffer instance');if(N>se||N<te)throw new RangeError('"value" argument is out of bounds');if(j+z>D.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(N,j,z,se){if(N=+N,j=j>>>0,z=z>>>0,!se){var te=Math.pow(2,8*z)-1;T(this,N,j,z,te,0)}var ne=1,Ee=0;for(this[j]=N&255;++Ee<z&&(ne*=256);)this[j+Ee]=N/ne&255;return j+z},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(N,j,z,se){if(N=+N,j=j>>>0,z=z>>>0,!se){var te=Math.pow(2,8*z)-1;T(this,N,j,z,te,0)}var ne=z-1,Ee=1;for(this[j+ne]=N&255;--ne>=0&&(Ee*=256);)this[j+ne]=N/Ee&255;return j+z},c.prototype.writeUint8=c.prototype.writeUInt8=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,1,255,0),this[j]=N&255,j+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,2,65535,0),this[j]=N&255,this[j+1]=N>>>8,j+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,2,65535,0),this[j]=N>>>8,this[j+1]=N&255,j+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,4,4294967295,0),this[j+3]=N>>>24,this[j+2]=N>>>16,this[j+1]=N>>>8,this[j]=N&255,j+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,4,4294967295,0),this[j]=N>>>24,this[j+1]=N>>>16,this[j+2]=N>>>8,this[j+3]=N&255,j+4},c.prototype.writeIntLE=function(N,j,z,se){if(N=+N,j=j>>>0,!se){var te=Math.pow(2,8*z-1);T(this,N,j,z,te-1,-te)}var ne=0,Ee=1,Q=0;for(this[j]=N&255;++ne<z&&(Ee*=256);)N<0&&Q===0&&this[j+ne-1]!==0&&(Q=1),this[j+ne]=(N/Ee>>0)-Q&255;return j+z},c.prototype.writeIntBE=function(N,j,z,se){if(N=+N,j=j>>>0,!se){var te=Math.pow(2,8*z-1);T(this,N,j,z,te-1,-te)}var ne=z-1,Ee=1,Q=0;for(this[j+ne]=N&255;--ne>=0&&(Ee*=256);)N<0&&Q===0&&this[j+ne+1]!==0&&(Q=1),this[j+ne]=(N/Ee>>0)-Q&255;return j+z},c.prototype.writeInt8=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,1,127,-128),N<0&&(N=255+N+1),this[j]=N&255,j+1},c.prototype.writeInt16LE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,2,32767,-32768),this[j]=N&255,this[j+1]=N>>>8,j+2},c.prototype.writeInt16BE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,2,32767,-32768),this[j]=N>>>8,this[j+1]=N&255,j+2},c.prototype.writeInt32LE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,4,2147483647,-2147483648),this[j]=N&255,this[j+1]=N>>>8,this[j+2]=N>>>16,this[j+3]=N>>>24,j+4},c.prototype.writeInt32BE=function(N,j,z){return N=+N,j=j>>>0,z||T(this,N,j,4,2147483647,-2147483648),N<0&&(N=4294967295+N+1),this[j]=N>>>24,this[j+1]=N>>>16,this[j+2]=N>>>8,this[j+3]=N&255,j+4};function $(D,N,j,z,se,te){if(j+z>D.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function G(D,N,j,z,se){return N=+N,j=j>>>0,se||$(D,N,j,4),r.write(D,N,j,z,23,4),j+4}c.prototype.writeFloatLE=function(N,j,z){return G(this,N,j,!0,z)},c.prototype.writeFloatBE=function(N,j,z){return G(this,N,j,!1,z)};function ee(D,N,j,z,se){return N=+N,j=j>>>0,se||$(D,N,j,8),r.write(D,N,j,z,52,8),j+8}c.prototype.writeDoubleLE=function(N,j,z){return ee(this,N,j,!0,z)},c.prototype.writeDoubleBE=function(N,j,z){return ee(this,N,j,!1,z)},c.prototype.copy=function(N,j,z,se){if(!c.isBuffer(N))throw new TypeError("argument should be a Buffer");if(z||(z=0),!se&&se!==0&&(se=this.length),j>=N.length&&(j=N.length),j||(j=0),se>0&&se<z&&(se=z),se===z||N.length===0||this.length===0)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(z<0||z>=this.length)throw new RangeError("Index out of range");if(se<0)throw new RangeError("sourceEnd out of bounds");se>this.length&&(se=this.length),N.length-j<se-z&&(se=N.length-j+z);var te=se-z;return this===N&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(j,z,se):Uint8Array.prototype.set.call(N,this.subarray(z,se),j),te},c.prototype.fill=function(N,j,z,se){if(typeof N=="string"){if(typeof j=="string"?(se=j,j=0,z=this.length):typeof z=="string"&&(se=z,z=this.length),se!==void 0&&typeof se!="string")throw new TypeError("encoding must be a string");if(typeof se=="string"&&!c.isEncoding(se))throw new TypeError("Unknown encoding: "+se);if(N.length===1){var te=N.charCodeAt(0);(se==="utf8"&&te<128||se==="latin1")&&(N=te)}}else typeof N=="number"?N=N&255:typeof N=="boolean"&&(N=Number(N));if(j<0||this.length<j||this.length<z)throw new RangeError("Out of range index");if(z<=j)return this;j=j>>>0,z=z===void 0?this.length:z>>>0,N||(N=0);var ne;if(typeof N=="number")for(ne=j;ne<z;++ne)this[ne]=N;else{var Ee=c.isBuffer(N)?N:c.from(N,se),Q=Ee.length;if(Q===0)throw new TypeError('The value "'+N+'" is invalid for argument "value"');for(ne=0;ne<z-j;++ne)this[ne+j]=Ee[ne%Q]}return this};var A=/[^+/0-9A-Za-z-_]/g;function E(D){if(D=D.split("=")[0],D=D.trim().replace(A,""),D.length<2)return"";for(;D.length%4!==0;)D=D+"=";return D}function U(D,N){N=N||1/0;for(var j,z=D.length,se=null,te=[],ne=0;ne<z;++ne){if(j=D.charCodeAt(ne),j>55295&&j<57344){if(!se){if(j>56319){(N-=3)>-1&&te.push(239,191,189);continue}else if(ne+1===z){(N-=3)>-1&&te.push(239,191,189);continue}se=j;continue}if(j<56320){(N-=3)>-1&&te.push(239,191,189),se=j;continue}j=(se-55296<<10|j-56320)+65536}else se&&(N-=3)>-1&&te.push(239,191,189);if(se=null,j<128){if((N-=1)<0)break;te.push(j)}else if(j<2048){if((N-=2)<0)break;te.push(j>>6|192,j&63|128)}else if(j<65536){if((N-=3)<0)break;te.push(j>>12|224,j>>6&63|128,j&63|128)}else if(j<1114112){if((N-=4)<0)break;te.push(j>>18|240,j>>12&63|128,j>>6&63|128,j&63|128)}else throw new Error("Invalid code point")}return te}function K(D){for(var N=[],j=0;j<D.length;++j)N.push(D.charCodeAt(j)&255);return N}function Z(D,N){for(var j,z,se,te=[],ne=0;ne<D.length&&!((N-=2)<0);++ne)j=D.charCodeAt(ne),z=j>>8,se=j%256,te.push(se),te.push(z);return te}function b(D){return t.toByteArray(E(D))}function y(D,N,j,z){for(var se=0;se<z&&!(se+j>=N.length||se>=D.length);++se)N[se+j]=D[se];return se}function O(D,N){return D instanceof N||D!=null&&D.constructor!=null&&D.constructor.name!=null&&D.constructor.name===N.name}function q(D){return D!==D}var X=function(){for(var D="0123456789abcdef",N=new Array(256),j=0;j<16;++j)for(var z=j*16,se=0;se<16;++se)N[z+se]=D[j]+D[se];return N}()})(ke);var Fw={exports:{}},ir=Fw.exports={},Gi,Yi;function C0(){throw new Error("setTimeout has not been defined")}function B0(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?Gi=setTimeout:Gi=C0}catch{Gi=C0}try{typeof clearTimeout=="function"?Yi=clearTimeout:Yi=B0}catch{Yi=B0}})();function jw(e){if(Gi===setTimeout)return setTimeout(e,0);if((Gi===C0||!Gi)&&setTimeout)return Gi=setTimeout,setTimeout(e,0);try{return Gi(e,0)}catch{try{return Gi.call(null,e,0)}catch{return Gi.call(this,e,0)}}}function K4(e){if(Yi===clearTimeout)return clearTimeout(e);if((Yi===B0||!Yi)&&clearTimeout)return Yi=clearTimeout,clearTimeout(e);try{return Yi(e)}catch{try{return Yi.call(null,e)}catch{return Yi.call(this,e)}}}var In=[],za=!1,Go,il=-1;function V4(){!za||!Go||(za=!1,Go.length?In=Go.concat(In):il=-1,In.length&&Uw())}function Uw(){if(!za){var e=jw(V4);za=!0;for(var t=In.length;t;){for(Go=In,In=[];++il<t;)Go&&Go[il].run();il=-1,t=In.length}Go=null,za=!1,K4(e)}}ir.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];In.push(new Hw(e,t)),In.length===1&&!za&&jw(Uw)};function Hw(e,t){this.fun=e,this.array=t}Hw.prototype.run=function(){this.fun.apply(null,this.array)};ir.title="browser";ir.browser=!0;ir.env={};ir.argv=[];ir.version="";ir.versions={};function Wn(){}ir.on=Wn;ir.addListener=Wn;ir.once=Wn;ir.off=Wn;ir.removeListener=Wn;ir.removeAllListeners=Wn;ir.emit=Wn;ir.prependListener=Wn;ir.prependOnceListener=Wn;ir.listeners=function(e){return[]};ir.binding=function(e){throw new Error("process.binding is not supported")};ir.cwd=function(){return"/"};ir.chdir=function(e){throw new Error("process.chdir is not supported")};ir.umask=function(){return 0};var z4=Fw.exports;const we=Lo(z4);var G4=function(e){function t(){var i=this||self;return delete e.prototype.__magic__,i}if(typeof globalThis=="object")return globalThis;if(this)return t();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:t});var r=__magic__;return r}(Object),om=G4;const ho=typeof om<"u"?om:typeof self<"u"?self:typeof window<"u"?window:{};function Kn(e,t){const r=Object.create(null),i=e.split(",");for(let a=0;a<i.length;a++)r[i[a]]=!0;return t?a=>!!r[a.toLowerCase()]:a=>!!r[a]}const $t=Object.freeze({}),Ga=Object.freeze([]),qr=()=>{},qw=()=>!1,Y4=/^on[^a-z]/,Ps=e=>Y4.test(e),xl=e=>e.startsWith("onUpdate:"),Pt=Object.assign,iv=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Z4=Object.prototype.hasOwnProperty,wt=(e,t)=>Z4.call(e,t),ze=Array.isArray,Qo=e=>Cs(e)==="[object Map]",ga=e=>Cs(e)==="[object Set]",am=e=>Cs(e)==="[object Date]",X4=e=>Cs(e)==="[object RegExp]",Qe=e=>typeof e=="function",Vt=e=>typeof e=="string",Uf=e=>typeof e=="symbol",Rt=e=>e!==null&&typeof e=="object",ah=e=>Rt(e)&&Qe(e.then)&&Qe(e.catch),Ww=Object.prototype.toString,Cs=e=>Ww.call(e),nv=e=>Cs(e).slice(8,-1),Kw=e=>Cs(e)==="[object Object]",ov=e=>Vt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Af=Kn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),J4=Kn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),sh=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Q4=/-(\w)/g,Kr=sh(e=>e.replace(Q4,(t,r)=>r?r.toUpperCase():"")),eE=/\B([A-Z])/g,Hr=sh(e=>e.replace(eE,"-$1").toLowerCase()),_o=sh(e=>e.charAt(0).toUpperCase()+e.slice(1)),xn=sh(e=>e?`on${_o(e)}`:""),as=(e,t)=>!Object.is(e,t),so=(e,t)=>{for(let r=0;r<e.length;r++)e[r](t)},El=(e,t,r)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Rl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Al=e=>{const t=Vt(e)?Number(e):NaN;return isNaN(t)?e:t};let sm;const Tl=()=>sm||(sm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof ho<"u"?ho:{}),tE="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",rE=Kn(tE);function Pn(e){if(ze(e)){const t={};for(let r=0;r<e.length;r++){const i=e[r],a=Vt(i)?aE(i):Pn(i);if(a)for(const n in a)t[n]=a[n]}return t}else{if(Vt(e))return e;if(Rt(e))return e}}const iE=/;(?![^(]*\))/g,nE=/:([^]+)/,oE=/\/\*[^]*?\*\//g;function aE(e){const t={};return e.replace(oE,"").split(iE).forEach(r=>{if(r){const i=r.split(nE);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function vr(e){let t="";if(Vt(e))t=e;else if(ze(e))for(let r=0;r<e.length;r++){const i=vr(e[r]);i&&(t+=i+" ")}else if(Rt(e))for(const r in e)e[r]&&(t+=r+" ");return t.trim()}function sE(e){if(!e)return null;let{class:t,style:r}=e;return t&&!Vt(t)&&(e.class=vr(t)),r&&(e.style=Pn(r)),e}const fE="html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot",uE="svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view",lE=Kn(fE),hE=Kn(uE),cE="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",dE=Kn(cE);function Vw(e){return!!e||e===""}function pE(e,t){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=Mo(e[i],t[i]);return r}function Mo(e,t){if(e===t)return!0;let r=am(e),i=am(t);if(r||i)return r&&i?e.getTime()===t.getTime():!1;if(r=Uf(e),i=Uf(t),r||i)return e===t;if(r=ze(e),i=ze(t),r||i)return r&&i?pE(e,t):!1;if(r=Rt(e),i=Rt(t),r||i){if(!r||!i)return!1;const a=Object.keys(e).length,n=Object.keys(t).length;if(a!==n)return!1;for(const u in e){const c=e.hasOwnProperty(u),d=t.hasOwnProperty(u);if(c&&!d||!c&&d||!Mo(e[u],t[u]))return!1}}return String(e)===String(t)}function fh(e,t){return e.findIndex(r=>Mo(r,t))}const si=e=>Vt(e)?e:e==null?"":ze(e)||Rt(e)&&(e.toString===Ww||!Qe(e.toString))?JSON.stringify(e,zw,2):String(e),zw=(e,t)=>t&&t.__v_isRef?zw(e,t.value):Qo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[i,a])=>(r[`${i} =>`]=a,r),{})}:ga(t)?{[`Set(${t.size})`]:[...t.values()]}:Rt(t)&&!ze(t)&&!Kw(t)?String(t):t;function Ol(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Yr;class av{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Yr,!t&&Yr&&(this.index=(Yr.scopes||(Yr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Yr;try{return Yr=this,t()}finally{Yr=r}}else Ol("cannot run an inactive effect scope.")}on(){Yr=this}off(){Yr=this.parent}stop(t){if(this._active){let r,i;for(r=0,i=this.effects.length;r<i;r++)this.effects[r].stop();for(r=0,i=this.cleanups.length;r<i;r++)this.cleanups[r]();if(this.scopes)for(r=0,i=this.scopes.length;r<i;r++)this.scopes[r].stop(!0);if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function Gw(e){return new av(e)}function Yw(e,t=Yr){t&&t.active&&t.effects.push(e)}function Zw(){return Yr}function vE(e){Yr?Yr.cleanups.push(e):Ol("onScopeDispose() is called when there is no active effect scope to be associated with.")}const sv=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Xw=e=>(e.w&So)>0,Jw=e=>(e.n&So)>0,gE=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=So},mE=e=>{const{deps:t}=e;if(t.length){let r=0;for(let i=0;i<t.length;i++){const a=t[i];Xw(a)&&!Jw(a)?a.delete(e):t[r++]=a,a.w&=~So,a.n&=~So}t.length=r}},Il=new WeakMap;let bf=0,So=1;const L0=30;let Br;const ea=Symbol("iterate"),N0=Symbol("Map key iterate");class uu{constructor(t,r=null,i){this.fn=t,this.scheduler=r,this.active=!0,this.deps=[],this.parent=void 0,Yw(this,i)}run(){if(!this.active)return this.fn();let t=Br,r=co;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Br,Br=this,co=!0,So=1<<++bf,bf<=L0?gE(this):fm(this),this.fn()}finally{bf<=L0&&mE(this),So=1<<--bf,Br=this.parent,co=r,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Br===this?this.deferStop=!0:this.active&&(fm(this),this.onStop&&this.onStop(),this.active=!1)}}function fm(e){const{deps:t}=e;if(t.length){for(let r=0;r<t.length;r++)t[r].delete(e);t.length=0}}function yE(e,t){e.effect&&(e=e.effect.fn);const r=new uu(e);t&&(Pt(r,t),t.scope&&Yw(r,t.scope)),(!t||!t.lazy)&&r.run();const i=r.run.bind(r);return i.effect=r,i}function bE(e){e.effect.stop()}let co=!0;const Qw=[];function ma(){Qw.push(co),co=!1}function ya(){const e=Qw.pop();co=e===void 0?!0:e}function Tr(e,t,r){if(co&&Br){let i=Il.get(e);i||Il.set(e,i=new Map);let a=i.get(r);a||i.set(r,a=sv()),e2(a,{effect:Br,target:e,type:t,key:r})}}function e2(e,t){let r=!1;bf<=L0?Jw(e)||(e.n|=So,r=!Xw(e)):r=!e.has(Br),r&&(e.add(Br),Br.deps.push(e),Br.onTrack&&Br.onTrack(Pt({effect:Br},t)))}function an(e,t,r,i,a,n){const u=Il.get(e);if(!u)return;let c=[];if(t==="clear")c=[...u.values()];else if(r==="length"&&ze(e)){const m=Number(i);u.forEach((M,S)=>{(S==="length"||S>=m)&&c.push(M)})}else switch(r!==void 0&&c.push(u.get(r)),t){case"add":ze(e)?ov(r)&&c.push(u.get("length")):(c.push(u.get(ea)),Qo(e)&&c.push(u.get(N0)));break;case"delete":ze(e)||(c.push(u.get(ea)),Qo(e)&&c.push(u.get(N0)));break;case"set":Qo(e)&&c.push(u.get(ea));break}const d={target:e,type:t,key:r,newValue:i,oldValue:a,oldTarget:n};if(c.length===1)c[0]&&k0(c[0],d);else{const m=[];for(const M of c)M&&m.push(...M);k0(sv(m),d)}}function k0(e,t){const r=ze(e)?e:[...e];for(const i of r)i.computed&&um(i,t);for(const i of r)i.computed||um(i,t)}function um(e,t){(e!==Br||e.allowRecurse)&&(e.onTrigger&&e.onTrigger(Pt({effect:e},t)),e.scheduler?e.scheduler():e.run())}function wE(e,t){var r;return(r=Il.get(e))==null?void 0:r.get(t)}const _E=Kn("__proto__,__v_isRef,__isVue"),t2=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Uf)),ME=uh(),SE=uh(!1,!0),xE=uh(!0),EE=uh(!0,!0),lm=RE();function RE(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const i=lt(this);for(let n=0,u=this.length;n<u;n++)Tr(i,"get",n+"");const a=i[t](...r);return a===-1||a===!1?i[t](...r.map(lt)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...r){ma();const i=lt(this)[t].apply(this,r);return ya(),i}}),e}function AE(e){const t=lt(this);return Tr(t,"has",e),t.hasOwnProperty(e)}function uh(e=!1,t=!1){return function(i,a,n){if(a==="__v_isReactive")return!e;if(a==="__v_isReadonly")return e;if(a==="__v_isShallow")return t;if(a==="__v_raw"&&n===(e?t?u2:f2:t?s2:a2).get(i))return i;const u=ze(i);if(!e){if(u&&wt(lm,a))return Reflect.get(lm,a,n);if(a==="hasOwnProperty")return AE}const c=Reflect.get(i,a,n);return(Uf(a)?t2.has(a):_E(a))||(e||Tr(i,"get",a),t)?c:Xt(c)?u&&ov(a)?c:c.value:Rt(c)?e?uv(c):No(c):c}}const TE=r2(),OE=r2(!0);function r2(e=!1){return function(r,i,a,n){let u=r[i];if(Ln(u)&&Xt(u)&&!Xt(a))return!1;if(!e&&(!Hf(a)&&!Ln(a)&&(u=lt(u),a=lt(a)),!ze(r)&&Xt(u)&&!Xt(a)))return u.value=a,!0;const c=ze(r)&&ov(i)?Number(i)<r.length:wt(r,i),d=Reflect.set(r,i,a,n);return r===lt(n)&&(c?as(a,u)&&an(r,"set",i,a,u):an(r,"add",i,a)),d}}function IE(e,t){const r=wt(e,t),i=e[t],a=Reflect.deleteProperty(e,t);return a&&r&&an(e,"delete",t,void 0,i),a}function PE(e,t){const r=Reflect.has(e,t);return(!Uf(t)||!t2.has(t))&&Tr(e,"has",t),r}function CE(e){return Tr(e,"iterate",ze(e)?"length":ea),Reflect.ownKeys(e)}const i2={get:ME,set:TE,deleteProperty:IE,has:PE,ownKeys:CE},n2={get:xE,set(e,t){return Ol(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return Ol(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},BE=Pt({},i2,{get:SE,set:OE}),LE=Pt({},n2,{get:EE}),fv=e=>e,lh=e=>Reflect.getPrototypeOf(e);function Du(e,t,r=!1,i=!1){e=e.__v_raw;const a=lt(e),n=lt(t);r||(t!==n&&Tr(a,"get",t),Tr(a,"get",n));const{has:u}=lh(a),c=i?fv:r?hv:Wf;if(u.call(a,t))return c(e.get(t));if(u.call(a,n))return c(e.get(n));e!==a&&e.get(t)}function Fu(e,t=!1){const r=this.__v_raw,i=lt(r),a=lt(e);return t||(e!==a&&Tr(i,"has",e),Tr(i,"has",a)),e===a?r.has(e):r.has(e)||r.has(a)}function ju(e,t=!1){return e=e.__v_raw,!t&&Tr(lt(e),"iterate",ea),Reflect.get(e,"size",e)}function hm(e){e=lt(e);const t=lt(this);return lh(t).has.call(t,e)||(t.add(e),an(t,"add",e,e)),this}function cm(e,t){t=lt(t);const r=lt(this),{has:i,get:a}=lh(r);let n=i.call(r,e);n?o2(r,i,e):(e=lt(e),n=i.call(r,e));const u=a.call(r,e);return r.set(e,t),n?as(t,u)&&an(r,"set",e,t,u):an(r,"add",e,t),this}function dm(e){const t=lt(this),{has:r,get:i}=lh(t);let a=r.call(t,e);a?o2(t,r,e):(e=lt(e),a=r.call(t,e));const n=i?i.call(t,e):void 0,u=t.delete(e);return a&&an(t,"delete",e,void 0,n),u}function pm(){const e=lt(this),t=e.size!==0,r=Qo(e)?new Map(e):new Set(e),i=e.clear();return t&&an(e,"clear",void 0,void 0,r),i}function Uu(e,t){return function(i,a){const n=this,u=n.__v_raw,c=lt(u),d=t?fv:e?hv:Wf;return!e&&Tr(c,"iterate",ea),u.forEach((m,M)=>i.call(a,d(m),d(M),n))}}function Hu(e,t,r){return function(...i){const a=this.__v_raw,n=lt(a),u=Qo(n),c=e==="entries"||e===Symbol.iterator&&u,d=e==="keys"&&u,m=a[e](...i),M=r?fv:t?hv:Wf;return!t&&Tr(n,"iterate",d?N0:ea),{next(){const{value:S,done:R}=m.next();return R?{value:S,done:R}:{value:c?[M(S[0]),M(S[1])]:M(S),done:R}},[Symbol.iterator](){return this}}}}function Xn(e){return function(...t){{const r=t[0]?`on key "${t[0]}" `:"";console.warn(`${_o(e)} operation ${r}failed: target is readonly.`,lt(this))}return e==="delete"?!1:this}}function NE(){const e={get(n){return Du(this,n)},get size(){return ju(this)},has:Fu,add:hm,set:cm,delete:dm,clear:pm,forEach:Uu(!1,!1)},t={get(n){return Du(this,n,!1,!0)},get size(){return ju(this)},has:Fu,add:hm,set:cm,delete:dm,clear:pm,forEach:Uu(!1,!0)},r={get(n){return Du(this,n,!0)},get size(){return ju(this,!0)},has(n){return Fu.call(this,n,!0)},add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear"),forEach:Uu(!0,!1)},i={get(n){return Du(this,n,!0,!0)},get size(){return ju(this,!0)},has(n){return Fu.call(this,n,!0)},add:Xn("add"),set:Xn("set"),delete:Xn("delete"),clear:Xn("clear"),forEach:Uu(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{e[n]=Hu(n,!1,!1),r[n]=Hu(n,!0,!1),t[n]=Hu(n,!1,!0),i[n]=Hu(n,!0,!0)}),[e,r,t,i]}const[kE,$E,DE,FE]=NE();function hh(e,t){const r=t?e?FE:DE:e?$E:kE;return(i,a,n)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?i:Reflect.get(wt(r,a)&&a in i?r:i,a,n)}const jE={get:hh(!1,!1)},UE={get:hh(!1,!0)},HE={get:hh(!0,!1)},qE={get:hh(!0,!0)};function o2(e,t,r){const i=lt(r);if(i!==r&&t.call(e,i)){const a=nv(e);console.warn(`Reactive ${a} contains both the raw and reactive versions of the same object${a==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const a2=new WeakMap,s2=new WeakMap,f2=new WeakMap,u2=new WeakMap;function WE(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function KE(e){return e.__v_skip||!Object.isExtensible(e)?0:WE(nv(e))}function No(e){return Ln(e)?e:ch(e,!1,i2,jE,a2)}function l2(e){return ch(e,!1,BE,UE,s2)}function uv(e){return ch(e,!0,n2,HE,f2)}function Wa(e){return ch(e,!0,LE,qE,u2)}function ch(e,t,r,i,a){if(!Rt(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const n=a.get(e);if(n)return n;const u=KE(e);if(u===0)return e;const c=new Proxy(e,u===2?i:r);return a.set(e,c),c}function po(e){return Ln(e)?po(e.__v_raw):!!(e&&e.__v_isReactive)}function Ln(e){return!!(e&&e.__v_isReadonly)}function Hf(e){return!!(e&&e.__v_isShallow)}function qf(e){return po(e)||Ln(e)}function lt(e){const t=e&&e.__v_raw;return t?lt(t):e}function lv(e){return El(e,"__v_skip",!0),e}const Wf=e=>Rt(e)?No(e):e,hv=e=>Rt(e)?uv(e):e;function cv(e){co&&Br&&(e=lt(e),e2(e.dep||(e.dep=sv()),{target:e,type:"get",key:"value"}))}function dh(e,t){e=lt(e);const r=e.dep;r&&k0(r,{target:e,type:"set",key:"value",newValue:t})}function Xt(e){return!!(e&&e.__v_isRef===!0)}function mr(e){return c2(e,!1)}function h2(e){return c2(e,!0)}function c2(e,t){return Xt(e)?e:new VE(e,t)}class VE{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:lt(t),this._value=r?t:Wf(t)}get value(){return cv(this),this._value}set value(t){const r=this.__v_isShallow||Hf(t)||Ln(t);t=r?t:lt(t),as(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Wf(t),dh(this,t))}}function zE(e){dh(e,e.value)}function vo(e){return Xt(e)?e.value:e}function GE(e){return Qe(e)?e():vo(e)}const YE={get:(e,t,r)=>vo(Reflect.get(e,t,r)),set:(e,t,r,i)=>{const a=e[t];return Xt(a)&&!Xt(r)?(a.value=r,!0):Reflect.set(e,t,r,i)}};function dv(e){return po(e)?e:new Proxy(e,YE)}class ZE{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:r,set:i}=t(()=>cv(this),()=>dh(this));this._get=r,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function XE(e){return new ZE(e)}function JE(e){qf(e)||console.warn("toRefs() expects a reactive object but received a plain one.");const t=ze(e)?new Array(e.length):{};for(const r in e)t[r]=d2(e,r);return t}class QE{constructor(t,r,i){this._object=t,this._key=r,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return wE(lt(this._object),this._key)}}class e8{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function t8(e,t,r){return Xt(e)?e:Qe(e)?new e8(e):Rt(e)&&arguments.length>1?d2(e,t,r):mr(e)}function d2(e,t,r){const i=e[t];return Xt(i)?i:new QE(e,t,r)}class r8{constructor(t,r,i,a){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new uu(t,()=>{this._dirty||(this._dirty=!0,dh(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=i}get value(){const t=lt(this);return cv(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function i8(e,t,r=!1){let i,a;const n=Qe(e);n?(i=e,a=()=>{console.warn("Write operation failed: computed value is readonly")}):(i=e.get,a=e.set);const u=new r8(i,a,n||!a,r);return t&&!r&&(u.effect.onTrack=t.onTrack,u.effect.onTrigger=t.onTrigger),u}const ta=[];function Tf(e){ta.push(e)}function Of(){ta.pop()}function Ue(e,...t){ma();const r=ta.length?ta[ta.length-1].component:null,i=r&&r.appContext.config.warnHandler,a=n8();if(i)en(i,r,11,[e+t.join(""),r&&r.proxy,a.map(({vnode:n})=>`at <${xh(r,n.type)}>`).join(`
-`),a]);else{const n=[`[Vue warn]: ${e}`,...t];a.length&&n.push(`
-`,...o8(a)),console.warn(...n)}ya()}function n8(){let e=ta[ta.length-1];if(!e)return[];const t=[];for(;e;){const r=t[0];r&&r.vnode===e?r.recurseCount++:t.push({vnode:e,recurseCount:0});const i=e.component&&e.component.parent;e=i&&i.vnode}return t}function o8(e){const t=[];return e.forEach((r,i)=>{t.push(...i===0?[]:[`
-`],...a8(r))}),t}function a8({vnode:e,recurseCount:t}){const r=t>0?`... (${t} recursive calls)`:"",i=e.component?e.component.parent==null:!1,a=` at <${xh(e.component,e.type,i)}`,n=">"+r;return e.props?[a,...s8(e.props),n]:[a+n]}function s8(e){const t=[],r=Object.keys(e);return r.slice(0,3).forEach(i=>{t.push(...p2(i,e[i]))}),r.length>3&&t.push(" ..."),t}function p2(e,t,r){return Vt(t)?(t=JSON.stringify(t),r?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?r?t:[`${e}=${t}`]:Xt(t)?(t=p2(e,lt(t.value),!0),r?t:[`${e}=Ref<`,t,">"]):Qe(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=lt(t),r?t:[`${e}=`,t])}function pv(e,t){e!==void 0&&(typeof e!="number"?Ue(`${t} is not a valid number - got ${JSON.stringify(e)}.`):isNaN(e)&&Ue(`${t} is NaN - the duration expression might be incorrect.`))}const vv={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function en(e,t,r,i){let a;try{a=i?e(...i):e()}catch(n){ba(n,t,r)}return a}function Zr(e,t,r,i){if(Qe(e)){const n=en(e,t,r,i);return n&&ah(n)&&n.catch(u=>{ba(u,t,r)}),n}const a=[];for(let n=0;n<e.length;n++)a.push(Zr(e[n],t,r,i));return a}function ba(e,t,r,i=!0){const a=t?t.vnode:null;if(t){let n=t.parent;const u=t.proxy,c=vv[r];for(;n;){const m=n.ec;if(m){for(let M=0;M<m.length;M++)if(m[M](e,u,c)===!1)return}n=n.parent}const d=t.appContext.config.errorHandler;if(d){en(d,null,10,[e,u,c]);return}}f8(e,r,a,i)}function f8(e,t,r,i=!0){{const a=vv[t];if(r&&Tf(r),Ue(`Unhandled error${a?` during execution of ${a}`:""}`),r&&Of(),i)throw e;console.error(e)}}let Kf=!1,$0=!1;const Er=[];let Ji=0;const Ya=[];let zi=null,io=0;const v2=Promise.resolve();let gv=null;const u8=100;function uo(e){const t=gv||v2;return e?t.then(this?e.bind(this):e):t}function l8(e){let t=Ji+1,r=Er.length;for(;t<r;){const i=t+r>>>1;Vf(Er[i])<e?t=i+1:r=i}return t}function lu(e){(!Er.length||!Er.includes(e,Kf&&e.allowRecurse?Ji+1:Ji))&&(e.id==null?Er.push(e):Er.splice(l8(e.id),0,e),g2())}function g2(){!Kf&&!$0&&($0=!0,gv=v2.then(m2))}function h8(e){const t=Er.indexOf(e);t>Ji&&Er.splice(t,1)}function ph(e){ze(e)?Ya.push(...e):(!zi||!zi.includes(e,e.allowRecurse?io+1:io))&&Ya.push(e),g2()}function vm(e,t=Kf?Ji+1:0){for(e=e||new Map;t<Er.length;t++){const r=Er[t];if(r&&r.pre){if(mv(e,r))continue;Er.splice(t,1),t--,r()}}}function Pl(e){if(Ya.length){const t=[...new Set(Ya)];if(Ya.length=0,zi){zi.push(...t);return}for(zi=t,e=e||new Map,zi.sort((r,i)=>Vf(r)-Vf(i)),io=0;io<zi.length;io++)mv(e,zi[io])||zi[io]();zi=null,io=0}}const Vf=e=>e.id==null?1/0:e.id,c8=(e,t)=>{const r=Vf(e)-Vf(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function m2(e){$0=!1,Kf=!0,e=e||new Map,Er.sort(c8);const t=r=>mv(e,r);try{for(Ji=0;Ji<Er.length;Ji++){const r=Er[Ji];if(r&&r.active!==!1){if(t(r))continue;en(r,null,14)}}}finally{Ji=0,Er.length=0,Pl(e),Kf=!1,gv=null,(Er.length||Ya.length)&&m2(e)}}function mv(e,t){if(!e.has(t))e.set(t,1);else{const r=e.get(t);if(r>u8){const i=t.ownerInstance,a=i&&Xf(i.type);return Ue(`Maximum recursive updates exceeded${a?` in component <${a}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else e.set(t,r+1)}}let go=!1;const ja=new Set;Tl().__VUE_HMR_RUNTIME__={createRecord:Ic(y2),rerender:Ic(v8),reload:Ic(g8)};const sa=new Map;function d8(e){const t=e.type.__hmrId;let r=sa.get(t);r||(y2(t,e.type),r=sa.get(t)),r.instances.add(e)}function p8(e){sa.get(e.type.__hmrId).instances.delete(e)}function y2(e,t){return sa.has(e)?!1:(sa.set(e,{initialDef:If(t),instances:new Set}),!0)}function If(e){return c_(e)?e.__vccOpts:e}function v8(e,t){const r=sa.get(e);r&&(r.initialDef.render=t,[...r.instances].forEach(i=>{t&&(i.render=t,If(i.type).render=t),i.renderCache=[],go=!0,i.update(),go=!1}))}function g8(e,t){const r=sa.get(e);if(!r)return;t=If(t),gm(r.initialDef,t);const i=[...r.instances];for(const a of i){const n=If(a.type);ja.has(n)||(n!==r.initialDef&&gm(n,t),ja.add(n)),a.appContext.propsCache.delete(a.type),a.appContext.emitsCache.delete(a.type),a.appContext.optionsCache.delete(a.type),a.ceReload?(ja.add(n),a.ceReload(t.styles),ja.delete(n)):a.parent?lu(a.parent.update):a.appContext.reload?a.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}ph(()=>{for(const a of i)ja.delete(If(a.type))})}function gm(e,t){Pt(e,t);for(const r in e)r!=="__file"&&!(r in t)&&delete e[r]}function Ic(e){return(t,r)=>{try{return e(t,r)}catch(i){console.error(i),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Bi,wf=[],D0=!1;function hu(e,...t){Bi?Bi.emit(e,...t):D0||wf.push({event:e,args:t})}function yv(e,t){var r,i;Bi=e,Bi?(Bi.enabled=!0,wf.forEach(({event:a,args:n})=>Bi.emit(a,...n)),wf=[]):typeof window<"u"&&window.HTMLElement&&!((i=(r=window.navigator)==null?void 0:r.userAgent)!=null&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(n=>{yv(n,t)}),setTimeout(()=>{Bi||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,D0=!0,wf=[])},3e3)):(D0=!0,wf=[])}function m8(e,t){hu("app:init",e,t,{Fragment:Lt,Text:xo,Comment:rr,Static:mo})}function y8(e){hu("app:unmount",e)}const F0=bv("component:added"),b2=bv("component:updated"),b8=bv("component:removed"),w8=e=>{Bi&&typeof Bi.cleanupBuffer=="function"&&!Bi.cleanupBuffer(e)&&b8(e)};function bv(e){return t=>{hu(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const _8=w2("perf:start"),M8=w2("perf:end");function w2(e){return(t,r,i)=>{hu(e,t.appContext.app,t.uid,t,r,i)}}function S8(e,t,r){hu("component:emit",e.appContext.app,e,t,r)}function x8(e,t,...r){if(e.isUnmounted)return;const i=e.vnode.props||$t;{const{emitsOptions:M,propsOptions:[S]}=e;if(M)if(!(t in M))(!S||!(xn(t)in S))&&Ue(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${xn(t)}" prop.`);else{const R=M[t];Qe(R)&&(R(...r)||Ue(`Invalid event arguments: event validation failed for event "${t}".`))}}let a=r;const n=t.startsWith("update:"),u=n&&t.slice(7);if(u&&u in i){const M=`${u==="modelValue"?"model":u}Modifiers`,{number:S,trim:R}=i[M]||$t;R&&(a=r.map(C=>Vt(C)?C.trim():C)),S&&(a=r.map(Rl))}S8(e,t,a);{const M=t.toLowerCase();M!==t&&i[xn(M)]&&Ue(`Event "${M}" is emitted in component ${xh(e,e.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${Hr(t)}" instead of "${t}".`)}let c,d=i[c=xn(t)]||i[c=xn(Kr(t))];!d&&n&&(d=i[c=xn(Hr(t))]),d&&Zr(d,e,6,a);const m=i[c+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Zr(m,e,6,a)}}function _2(e,t,r=!1){const i=t.emitsCache,a=i.get(e);if(a!==void 0)return a;const n=e.emits;let u={},c=!1;if(!Qe(e)){const d=m=>{const M=_2(m,t,!0);M&&(c=!0,Pt(u,M))};!r&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}return!n&&!c?(Rt(e)&&i.set(e,null),null):(ze(n)?n.forEach(d=>u[d]=null):Pt(u,n),Rt(e)&&i.set(e,u),u)}function vh(e,t){return!e||!Ps(t)?!1:(t=t.slice(2).replace(/Once$/,""),wt(e,t[0].toLowerCase()+t.slice(1))||wt(e,Hr(t))||wt(e,t))}let tr=null,gh=null;function zf(e){const t=tr;return tr=e,gh=e&&e.type.__scopeId||null,t}function M2(e){gh=e}function S2(){gh=null}const E8=e=>wv;function wv(e,t=tr,r){if(!t||e._n)return e;const i=(...a)=>{i._d&&G0(-1);const n=zf(t);let u;try{u=e(...a)}finally{zf(n),i._d&&G0(1)}return b2(t),u};return i._n=!0,i._c=!0,i._d=!0,i}let j0=!1;function Cl(){j0=!0}function nl(e){const{type:t,vnode:r,proxy:i,withProxy:a,props:n,propsOptions:[u],slots:c,attrs:d,emit:m,render:M,renderCache:S,data:R,setupState:C,ctx:P,inheritAttrs:k}=e;let L,I;const B=zf(e);j0=!1;try{if(r.shapeFlag&4){const W=a||i;L=Ur(M.call(W,W,S,n,C,R,P)),I=d}else{const W=t;d===n&&Cl(),L=Ur(W.length>1?W(n,{get attrs(){return Cl(),d},slots:c,emit:m}):W(n,null)),I=t.props?d:A8(d)}}catch(W){Bf.length=0,ba(W,e,1),L=Zt(rr)}let H=L,F;if(L.patchFlag>0&&L.patchFlag&2048&&([H,F]=R8(L)),I&&k!==!1){const W=Object.keys(I),{shapeFlag:Y}=H;if(W.length){if(Y&7)u&&W.some(xl)&&(I=T8(I,u)),H=di(H,I);else if(!j0&&H.type!==rr){const ie=Object.keys(d),J=[],V=[];for(let oe=0,_=ie.length;oe<_;oe++){const o=ie[oe];Ps(o)?xl(o)||J.push(o[2].toLowerCase()+o.slice(3)):V.push(o)}V.length&&Ue(`Extraneous non-props attributes (${V.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),J.length&&Ue(`Extraneous non-emits event listeners (${J.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return r.dirs&&(mm(H)||Ue("Runtime directive used on component with non-element root node. The directives will not function as intended."),H=di(H),H.dirs=H.dirs?H.dirs.concat(r.dirs):r.dirs),r.transition&&(mm(H)||Ue("Component inside <Transition> renders non-element root node that cannot be animated."),H.transition=r.transition),F?F(H):L=H,zf(B),L}const R8=e=>{const t=e.children,r=e.dynamicChildren,i=_v(t);if(!i)return[e,void 0];const a=t.indexOf(i),n=r?r.indexOf(i):-1,u=c=>{t[a]=c,r&&(n>-1?r[n]=c:c.patchFlag>0&&(e.dynamicChildren=[...r,c]))};return[Ur(i),u]};function _v(e){let t;for(let r=0;r<e.length;r++){const i=e[r];if(Nn(i)){if(i.type!==rr||i.children==="v-if"){if(t)return;t=i}}else return}return t}const A8=e=>{let t;for(const r in e)(r==="class"||r==="style"||Ps(r))&&((t||(t={}))[r]=e[r]);return t},T8=(e,t)=>{const r={};for(const i in e)(!xl(i)||!(i.slice(9)in t))&&(r[i]=e[i]);return r},mm=e=>e.shapeFlag&7||e.type===rr;function O8(e,t,r){const{props:i,children:a,component:n}=e,{props:u,children:c,patchFlag:d}=t,m=n.emitsOptions;if((a||c)&&go||t.dirs||t.transition)return!0;if(r&&d>=0){if(d&1024)return!0;if(d&16)return i?ym(i,u,m):!!u;if(d&8){const M=t.dynamicProps;for(let S=0;S<M.length;S++){const R=M[S];if(u[R]!==i[R]&&!vh(m,R))return!0}}}else return(a||c)&&(!c||!c.$stable)?!0:i===u?!1:i?u?ym(i,u,m):!0:!!u;return!1}function ym(e,t,r){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let a=0;a<i.length;a++){const n=i[a];if(t[n]!==e[n]&&!vh(r,n))return!0}return!1}function Mv({vnode:e,parent:t},r){for(;t&&t.subTree===e;)(e=t.vnode).el=r,t=t.parent}const x2=e=>e.__isSuspense,I8={name:"Suspense",__isSuspense:!0,process(e,t,r,i,a,n,u,c,d,m){e==null?C8(t,r,i,a,n,u,c,d,m):B8(e,t,r,i,a,u,c,d,m)},hydrate:L8,create:Sv,normalize:N8},P8=I8;function Gf(e,t){const r=e.props&&e.props[t];Qe(r)&&r()}function C8(e,t,r,i,a,n,u,c,d){const{p:m,o:{createElement:M}}=d,S=M("div"),R=e.suspense=Sv(e,a,i,t,S,r,n,u,c,d);m(null,R.pendingBranch=e.ssContent,S,null,i,R,n,u),R.deps>0?(Gf(e,"onPending"),Gf(e,"onFallback"),m(null,e.ssFallback,t,r,i,null,n,u),Za(R,e.ssFallback)):R.resolve(!1,!0)}function B8(e,t,r,i,a,n,u,c,{p:d,um:m,o:{createElement:M}}){const S=t.suspense=e.suspense;S.vnode=t,t.el=e.el;const R=t.ssContent,C=t.ssFallback,{activeBranch:P,pendingBranch:k,isInFallback:L,isHydrating:I}=S;if(k)S.pendingBranch=R,Li(R,k)?(d(k,R,S.hiddenContainer,null,a,S,n,u,c),S.deps<=0?S.resolve():L&&(d(P,C,r,i,a,null,n,u,c),Za(S,C))):(S.pendingId++,I?(S.isHydrating=!1,S.activeBranch=k):m(k,a,S),S.deps=0,S.effects.length=0,S.hiddenContainer=M("div"),L?(d(null,R,S.hiddenContainer,null,a,S,n,u,c),S.deps<=0?S.resolve():(d(P,C,r,i,a,null,n,u,c),Za(S,C))):P&&Li(R,P)?(d(P,R,r,i,a,S,n,u,c),S.resolve(!0)):(d(null,R,S.hiddenContainer,null,a,S,n,u,c),S.deps<=0&&S.resolve()));else if(P&&Li(R,P))d(P,R,r,i,a,S,n,u,c),Za(S,R);else if(Gf(t,"onPending"),S.pendingBranch=R,S.pendingId++,d(null,R,S.hiddenContainer,null,a,S,n,u,c),S.deps<=0)S.resolve();else{const{timeout:B,pendingId:H}=S;B>0?setTimeout(()=>{S.pendingId===H&&S.fallback(C)},B):B===0&&S.fallback(C)}}let bm=!1;function Sv(e,t,r,i,a,n,u,c,d,m,M=!1){bm||(bm=!0,console[console.info?"info":"log"]("<Suspense> is an experimental feature and its API will likely change."));const{p:S,m:R,um:C,n:P,o:{parentNode:k,remove:L}}=m;let I;const B=k8(e);B&&t!=null&&t.pendingBranch&&(I=t.pendingId,t.deps++);const H=e.props?Al(e.props.timeout):void 0;pv(H,"Suspense timeout");const F={vnode:e,parent:t,parentComponent:r,isSVG:u,container:i,hiddenContainer:a,anchor:n,deps:0,pendingId:0,timeout:typeof H=="number"?H:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:M,isUnmounted:!1,effects:[],resolve(W=!1,Y=!1){{if(!W&&!F.pendingBranch)throw new Error("suspense.resolve() is called without a pending branch.");if(F.isUnmounted)throw new Error("suspense.resolve() is called on an already unmounted suspense boundary.")}const{vnode:ie,activeBranch:J,pendingBranch:V,pendingId:oe,effects:_,parentComponent:o,container:f}=F;if(F.isHydrating)F.isHydrating=!1;else if(!W){const p=J&&V.transition&&V.transition.mode==="out-in";p&&(J.transition.afterLeave=()=>{oe===F.pendingId&&R(V,f,w,0)});let{anchor:w}=F;J&&(w=P(J),C(J,o,F,!0)),p||R(V,f,w,0)}Za(F,V),F.pendingBranch=null,F.isInFallback=!1;let l=F.parent,h=!1;for(;l;){if(l.pendingBranch){l.effects.push(..._),h=!0;break}l=l.parent}h||ph(_),F.effects=[],B&&t&&t.pendingBranch&&I===t.pendingId&&(t.deps--,t.deps===0&&!Y&&t.resolve()),Gf(ie,"onResolve")},fallback(W){if(!F.pendingBranch)return;const{vnode:Y,activeBranch:ie,parentComponent:J,container:V,isSVG:oe}=F;Gf(Y,"onFallback");const _=P(ie),o=()=>{F.isInFallback&&(S(null,W,V,_,J,null,oe,c,d),Za(F,W))},f=W.transition&&W.transition.mode==="out-in";f&&(ie.transition.afterLeave=o),F.isInFallback=!0,C(ie,J,null,!0),f||o()},move(W,Y,ie){F.activeBranch&&R(F.activeBranch,W,Y,ie),F.container=W},next(){return F.activeBranch&&P(F.activeBranch)},registerDep(W,Y){const ie=!!F.pendingBranch;ie&&F.deps++;const J=W.vnode.el;W.asyncDep.catch(V=>{ba(V,W,0)}).then(V=>{if(W.isUnmounted||F.isUnmounted||F.pendingId!==W.suspenseId)return;W.asyncResolved=!0;const{vnode:oe}=W;Tf(oe),X0(W,V,!1),J&&(oe.el=J);const _=!J&&W.subTree.el;Y(W,oe,k(J||W.subTree.el),J?null:P(W.subTree),F,u,d),_&&L(_),Mv(W,oe.el),Of(),ie&&--F.deps===0&&F.resolve()})},unmount(W,Y){F.isUnmounted=!0,F.activeBranch&&C(F.activeBranch,r,W,Y),F.pendingBranch&&C(F.pendingBranch,r,W,Y)}};return F}function L8(e,t,r,i,a,n,u,c,d){const m=t.suspense=Sv(t,i,r,e.parentNode,document.createElement("div"),null,a,n,u,c,!0),M=d(e,m.pendingBranch=t.ssContent,r,m,n,u);return m.deps===0&&m.resolve(!1,!0),M}function N8(e){const{shapeFlag:t,children:r}=e,i=t&32;e.ssContent=wm(i?r.default:r),e.ssFallback=i?wm(r.fallback):Zt(rr)}function wm(e){let t;if(Qe(e)){const r=ua&&e._c;r&&(e._d=!1,tt()),e=e(),r&&(e._d=!0,t=Wr,t_())}if(ze(e)){const r=_v(e);r||Ue("<Suspense> slots expect a single root node."),e=r}return e=Ur(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function E2(e,t){t&&t.pendingBranch?ze(e)?t.effects.push(...e):t.effects.push(e):ph(e)}function Za(e,t){e.activeBranch=t;const{vnode:r,parentComponent:i}=e,a=r.el=t.el;i&&i.subTree===r&&(i.vnode.el=a,Mv(i,a))}function k8(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function R2(e,t){return cu(e,null,t)}function A2(e,t){return cu(e,null,Pt({},t,{flush:"post"}))}function $8(e,t){return cu(e,null,Pt({},t,{flush:"sync"}))}const qu={};function lr(e,t,r){return Qe(t)||Ue("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),cu(e,t,r)}function cu(e,t,{immediate:r,deep:i,flush:a,onTrack:n,onTrigger:u}=$t){var c;t||(r!==void 0&&Ue('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),i!==void 0&&Ue('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const d=W=>{Ue("Invalid watch source: ",W,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},m=Zw()===((c=er)==null?void 0:c.scope)?er:null;let M,S=!1,R=!1;if(Xt(e)?(M=()=>e.value,S=Hf(e)):po(e)?(M=()=>e,i=!0):ze(e)?(R=!0,S=e.some(W=>po(W)||Hf(W)),M=()=>e.map(W=>{if(Xt(W))return W.value;if(po(W))return Yo(W);if(Qe(W))return en(W,m,2);d(W)})):Qe(e)?t?M=()=>en(e,m,2):M=()=>{if(!(m&&m.isUnmounted))return C&&C(),Zr(e,m,3,[P])}:(M=qr,d(e)),t&&i){const W=M;M=()=>Yo(W())}let C,P=W=>{C=H.onStop=()=>{en(W,m,4)}},k;if(fs)if(P=qr,t?r&&Zr(t,m,3,[M(),R?[]:void 0,P]):M(),a==="sync"){const W=p_();k=W.__watcherHandles||(W.__watcherHandles=[])}else return qr;let L=R?new Array(e.length).fill(qu):qu;const I=()=>{if(H.active)if(t){const W=H.run();(i||S||(R?W.some((Y,ie)=>as(Y,L[ie])):as(W,L)))&&(C&&C(),Zr(t,m,3,[W,L===qu?void 0:R&&L[0]===qu?[]:L,P]),L=W)}else H.run()};I.allowRecurse=!!t;let B;a==="sync"?B=I:a==="post"?B=()=>gr(I,m&&m.suspense):(I.pre=!0,m&&(I.id=m.uid),B=()=>lu(I));const H=new uu(M,B);H.onTrack=n,H.onTrigger=u,t?r?I():L=H.run():a==="post"?gr(H.run.bind(H),m&&m.suspense):H.run();const F=()=>{H.stop(),m&&m.scope&&iv(m.scope.effects,H)};return k&&k.push(F),F}function D8(e,t,r){const i=this.proxy,a=Vt(e)?e.includes(".")?T2(i,e):()=>i[e]:e.bind(i,i);let n;Qe(t)?n=t:(n=t.handler,r=t);const u=er;Eo(this);const c=cu(a,n.bind(i),r);return u?Eo(u):yo(),c}function T2(e,t){const r=t.split(".");return()=>{let i=e;for(let a=0;a<r.length&&i;a++)i=i[r[a]];return i}}function Yo(e,t){if(!Rt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Xt(e))Yo(e.value,t);else if(ze(e))for(let r=0;r<e.length;r++)Yo(e[r],t);else if(ga(e)||Qo(e))e.forEach(r=>{Yo(r,t)});else if(Kw(e))for(const r in e)Yo(e[r],t);return e}function O2(e){J4(e)&&Ue("Do not use built-in directive ids as custom directive id: "+e)}function ol(e,t){const r=tr;if(r===null)return Ue("withDirectives can only be used inside render functions."),e;const i=Sh(r)||r.proxy,a=e.dirs||(e.dirs=[]);for(let n=0;n<t.length;n++){let[u,c,d,m=$t]=t[n];u&&(Qe(u)&&(u={mounted:u,updated:u}),u.deep&&Yo(c),a.push({dir:u,instance:i,value:c,oldValue:void 0,arg:d,modifiers:m}))}return e}function Zi(e,t,r,i){const a=e.dirs,n=t&&t.dirs;for(let u=0;u<a.length;u++){const c=a[u];n&&(c.oldValue=n[u].value);let d=c.dir[i];d&&(ma(),Zr(d,r,8,[e.el,c,e,t]),ya())}}function xv(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ns(()=>{e.isMounted=!0}),wh(()=>{e.isUnmounting=!0}),e}const ni=[Function,Array],Ev={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ni,onEnter:ni,onAfterEnter:ni,onEnterCancelled:ni,onBeforeLeave:ni,onLeave:ni,onAfterLeave:ni,onLeaveCancelled:ni,onBeforeAppear:ni,onAppear:ni,onAfterAppear:ni,onAppearCancelled:ni},F8={name:"BaseTransition",props:Ev,setup(e,{slots:t}){const r=Fi(),i=xv();let a;return()=>{const n=t.default&&mh(t.default(),!0);if(!n||!n.length)return;let u=n[0];if(n.length>1){let k=!1;for(const L of n)if(L.type!==rr){if(k){Ue("<transition> can only be used on a single element or component. Use <transition-group> for lists.");break}u=L,k=!0}}const c=lt(e),{mode:d}=c;if(d&&d!=="in-out"&&d!=="out-in"&&d!=="default"&&Ue(`invalid <transition> mode: ${d}`),i.isLeaving)return Pc(u);const m=_m(u);if(!m)return Pc(u);const M=ss(m,c,i,r);fa(m,M);const S=r.subTree,R=S&&_m(S);let C=!1;const{getTransitionKey:P}=m.type;if(P){const k=P();a===void 0?a=k:k!==a&&(a=k,C=!0)}if(R&&R.type!==rr&&(!Li(m,R)||C)){const k=ss(R,c,i,r);if(fa(R,k),d==="out-in")return i.isLeaving=!0,k.afterLeave=()=>{i.isLeaving=!1,r.update.active!==!1&&r.update()},Pc(u);d==="in-out"&&m.type!==rr&&(k.delayLeave=(L,I,B)=>{const H=P2(i,R);H[String(R.key)]=R,L._leaveCb=()=>{I(),L._leaveCb=void 0,delete M.delayedLeave},M.delayedLeave=B})}return u}}},I2=F8;function P2(e,t){const{leavingVNodes:r}=e;let i=r.get(t.type);return i||(i=Object.create(null),r.set(t.type,i)),i}function ss(e,t,r,i){const{appear:a,mode:n,persisted:u=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:m,onEnterCancelled:M,onBeforeLeave:S,onLeave:R,onAfterLeave:C,onLeaveCancelled:P,onBeforeAppear:k,onAppear:L,onAfterAppear:I,onAppearCancelled:B}=t,H=String(e.key),F=P2(r,e),W=(J,V)=>{J&&Zr(J,i,9,V)},Y=(J,V)=>{const oe=V[1];W(J,V),ze(J)?J.every(_=>_.length<=1)&&oe():J.length<=1&&oe()},ie={mode:n,persisted:u,beforeEnter(J){let V=c;if(!r.isMounted)if(a)V=k||c;else return;J._leaveCb&&J._leaveCb(!0);const oe=F[H];oe&&Li(e,oe)&&oe.el._leaveCb&&oe.el._leaveCb(),W(V,[J])},enter(J){let V=d,oe=m,_=M;if(!r.isMounted)if(a)V=L||d,oe=I||m,_=B||M;else return;let o=!1;const f=J._enterCb=l=>{o||(o=!0,l?W(_,[J]):W(oe,[J]),ie.delayedLeave&&ie.delayedLeave(),J._enterCb=void 0)};V?Y(V,[J,f]):f()},leave(J,V){const oe=String(e.key);if(J._enterCb&&J._enterCb(!0),r.isUnmounting)return V();W(S,[J]);let _=!1;const o=J._leaveCb=f=>{_||(_=!0,V(),f?W(P,[J]):W(C,[J]),J._leaveCb=void 0,F[oe]===e&&delete F[oe])};F[oe]=e,R?Y(R,[J,o]):o()},clone(J){return ss(J,t,r,i)}};return ie}function Pc(e){if(Ls(e))return e=di(e),e.children=null,e}function _m(e){return Ls(e)?e.children?e.children[0]:void 0:e}function fa(e,t){e.shapeFlag&6&&e.component?fa(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function mh(e,t=!1,r){let i=[],a=0;for(let n=0;n<e.length;n++){let u=e[n];const c=r==null?u.key:String(r)+String(u.key!=null?u.key:n);u.type===Lt?(u.patchFlag&128&&a++,i=i.concat(mh(u.children,t,c))):(t||u.type!==rr)&&i.push(c!=null?di(u,{key:c}):u)}if(a>1)for(let n=0;n<i.length;n++)i[n].patchFlag=-2;return i}function Bs(e,t){return Qe(e)?(()=>Pt({name:e.name},t,{setup:e}))():e}const ra=e=>!!e.type.__asyncLoader;function j8(e){Qe(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:i,delay:a=200,timeout:n,suspensible:u=!0,onError:c}=e;let d=null,m,M=0;const S=()=>(M++,d=null,R()),R=()=>{let C;return d||(C=d=t().catch(P=>{if(P=P instanceof Error?P:new Error(String(P)),c)return new Promise((k,L)=>{c(P,()=>k(S()),()=>L(P),M+1)});throw P}).then(P=>{if(C!==d&&d)return d;if(P||Ue("Async component loader resolved to undefined. If you are using retry(), make sure to return its return value."),P&&(P.__esModule||P[Symbol.toStringTag]==="Module")&&(P=P.default),P&&!Rt(P)&&!Qe(P))throw new Error(`Invalid async component load result: ${P}`);return m=P,P}))};return Bs({name:"AsyncComponentWrapper",__asyncLoader:R,get __asyncResolved(){return m},setup(){const C=er;if(m)return()=>Cc(m,C);const P=B=>{d=null,ba(B,C,13,!i)};if(u&&C.suspense||fs)return R().then(B=>()=>Cc(B,C)).catch(B=>(P(B),()=>i?Zt(i,{error:B}):null));const k=mr(!1),L=mr(),I=mr(!!a);return a&&setTimeout(()=>{I.value=!1},a),n!=null&&setTimeout(()=>{if(!k.value&&!L.value){const B=new Error(`Async component timed out after ${n}ms.`);P(B),L.value=B}},n),R().then(()=>{k.value=!0,C.parent&&Ls(C.parent.vnode)&&lu(C.parent.update)}).catch(B=>{P(B),L.value=B}),()=>{if(k.value&&m)return Cc(m,C);if(L.value&&i)return Zt(i,{error:L.value});if(r&&!I.value)return Zt(r)}}})}function Cc(e,t){const{ref:r,props:i,children:a,ce:n}=t.vnode,u=Zt(e,i,a);return u.ref=r,u.ce=n,delete t.vnode.ce,u}const Ls=e=>e.type.__isKeepAlive,U8={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=Fi(),i=r.ctx;if(!i.renderer)return()=>{const B=t.default&&t.default();return B&&B.length===1?B[0]:B};const a=new Map,n=new Set;let u=null;r.__v_cache=a;const c=r.suspense,{renderer:{p:d,m,um:M,o:{createElement:S}}}=i,R=S("div");i.activate=(B,H,F,W,Y)=>{const ie=B.component;m(B,H,F,0,c),d(ie.vnode,B,H,F,ie,c,W,B.slotScopeIds,Y),gr(()=>{ie.isDeactivated=!1,ie.a&&so(ie.a);const J=B.props&&B.props.onVnodeMounted;J&&Dr(J,ie.parent,B)},c),F0(ie)},i.deactivate=B=>{const H=B.component;m(B,R,null,1,c),gr(()=>{H.da&&so(H.da);const F=B.props&&B.props.onVnodeUnmounted;F&&Dr(F,H.parent,B),H.isDeactivated=!0},c),F0(H)};function C(B){Bc(B),M(B,r,c,!0)}function P(B){a.forEach((H,F)=>{const W=Xf(H.type);W&&(!B||!B(W))&&k(F)})}function k(B){const H=a.get(B);!u||!Li(H,u)?C(H):u&&Bc(u),a.delete(B),n.delete(B)}lr(()=>[e.include,e.exclude],([B,H])=>{B&&P(F=>_f(B,F)),H&&P(F=>!_f(H,F))},{flush:"post",deep:!0});let L=null;const I=()=>{L!=null&&a.set(L,Lc(r.subTree))};return Ns(I),bh(I),wh(()=>{a.forEach(B=>{const{subTree:H,suspense:F}=r,W=Lc(H);if(B.type===W.type&&B.key===W.key){Bc(W);const Y=W.component.da;Y&&gr(Y,F);return}C(B)})}),()=>{if(L=null,!t.default)return null;const B=t.default(),H=B[0];if(B.length>1)return Ue("KeepAlive should contain exactly one component child."),u=null,B;if(!Nn(H)||!(H.shapeFlag&4)&&!(H.shapeFlag&128))return u=null,H;let F=Lc(H);const W=F.type,Y=Xf(ra(F)?F.type.__asyncResolved||{}:W),{include:ie,exclude:J,max:V}=e;if(ie&&(!Y||!_f(ie,Y))||J&&Y&&_f(J,Y))return u=F,H;const oe=F.key==null?W:F.key,_=a.get(oe);return F.el&&(F=di(F),H.shapeFlag&128&&(H.ssContent=F)),L=oe,_?(F.el=_.el,F.component=_.component,F.transition&&fa(F,F.transition),F.shapeFlag|=512,n.delete(oe),n.add(oe)):(n.add(oe),V&&n.size>parseInt(V,10)&&k(n.values().next().value)),F.shapeFlag|=256,u=F,x2(H.type)?H:F}}},H8=U8;function _f(e,t){return ze(e)?e.some(r=>_f(r,t)):Vt(e)?e.split(",").includes(t):X4(e)?e.test(t):!1}function C2(e,t){L2(e,"a",t)}function B2(e,t){L2(e,"da",t)}function L2(e,t,r=er){const i=e.__wdc||(e.__wdc=()=>{let a=r;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(yh(t,i,r),r){let a=r.parent;for(;a&&a.parent;)Ls(a.parent.vnode)&&q8(i,t,r,a),a=a.parent}}function q8(e,t,r,i){const a=yh(t,e,i,!0);_h(()=>{iv(i[t],a)},r)}function Bc(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Lc(e){return e.shapeFlag&128?e.ssContent:e}function yh(e,t,r=er,i=!1){if(r){const a=r[e]||(r[e]=[]),n=t.__weh||(t.__weh=(...u)=>{if(r.isUnmounted)return;ma(),Eo(r);const c=Zr(t,r,e,u);return yo(),ya(),c});return i?a.unshift(n):a.push(n),n}else{const a=xn(vv[e].replace(/ hook$/,""));Ue(`${a} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const Vn=e=>(t,r=er)=>(!fs||e==="sp")&&yh(e,(...i)=>t(...i),r),N2=Vn("bm"),Ns=Vn("m"),Rv=Vn("bu"),bh=Vn("u"),wh=Vn("bum"),_h=Vn("um"),k2=Vn("sp"),$2=Vn("rtg"),D2=Vn("rtc");function F2(e,t=er){yh("ec",e,t)}const Bl="components",W8="directives";function K8(e,t){return Av(Bl,e,!0,t)||e}const j2=Symbol.for("v-ndc");function V8(e){return Vt(e)?Av(Bl,e,!1)||e:e||j2}function z8(e){return Av(W8,e)}function Av(e,t,r=!0,i=!1){const a=tr||er;if(a){const n=a.type;if(e===Bl){const c=Xf(n,!1);if(c&&(c===t||c===Kr(t)||c===_o(Kr(t))))return n}const u=Mm(a[e]||n[e],t)||Mm(a.appContext[e],t);if(!u&&i)return n;if(r&&!u){const c=e===Bl?`
-If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";Ue(`Failed to resolve ${e.slice(0,-1)}: ${t}${c}`)}return u}else Ue(`resolve${_o(e.slice(0,-1))} can only be used in render() or setup().`)}function Mm(e,t){return e&&(e[t]||e[Kr(t)]||e[_o(Kr(t))])}function Ii(e,t,r,i){let a;const n=r&&r[i];if(ze(e)||Vt(e)){a=new Array(e.length);for(let u=0,c=e.length;u<c;u++)a[u]=t(e[u],u,void 0,n&&n[u])}else if(typeof e=="number"){Number.isInteger(e)||Ue(`The v-for range expect an integer value but got ${e}.`),a=new Array(e);for(let u=0;u<e;u++)a[u]=t(u+1,u,void 0,n&&n[u])}else if(Rt(e))if(e[Symbol.iterator])a=Array.from(e,(u,c)=>t(u,c,void 0,n&&n[c]));else{const u=Object.keys(e);a=new Array(u.length);for(let c=0,d=u.length;c<d;c++){const m=u[c];a[c]=t(e[m],m,c,n&&n[c])}}else a=[];return r&&(r[i]=a),a}function G8(e,t){for(let r=0;r<t.length;r++){const i=t[r];if(ze(i))for(let a=0;a<i.length;a++)e[i[a].name]=i[a].fn;else i&&(e[i.name]=i.key?(...a)=>{const n=i.fn(...a);return n&&(n.key=i.key),n}:i.fn)}return e}function U0(e,t,r={},i,a){if(tr.isCE||tr.parent&&ra(tr.parent)&&tr.parent.isCE)return t!=="default"&&(r.name=t),Zt("slot",r,i&&i());let n=e[t];n&&n.length>1&&(Ue("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),n=()=>[]),n&&n._c&&(n._d=!1),tt();const u=n&&U2(n(r)),c=Pv(Lt,{key:r.key||u&&u.key||`_${t}`},u||(i?i():[]),u&&e._===1?64:-2);return!a&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),n&&n._c&&(n._d=!0),c}function U2(e){return e.some(t=>Nn(t)?!(t.type===rr||t.type===Lt&&!U2(t.children)):!0)?e:null}function Y8(e,t){const r={};if(!Rt(e))return Ue("v-on with no argument expects an object value."),r;for(const i in e)r[t&&/[A-Z]/.test(i)?`on:${i}`:xn(i)]=e[i];return r}const H0=e=>e?f_(e)?Sh(e)||e.proxy:H0(e.parent):null,ia=Pt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>Wa(e.props),$attrs:e=>Wa(e.attrs),$slots:e=>Wa(e.slots),$refs:e=>Wa(e.refs),$parent:e=>H0(e.parent),$root:e=>H0(e.root),$emit:e=>e.emit,$options:e=>Ov(e),$forceUpdate:e=>e.f||(e.f=()=>lu(e.update)),$nextTick:e=>e.n||(e.n=uo.bind(e.proxy)),$watch:e=>D8.bind(e)}),Tv=e=>e==="_"||e==="$",Nc=(e,t)=>e!==$t&&!e.__isScriptSetup&&wt(e,t),Pf={get({_:e},t){const{ctx:r,setupState:i,data:a,props:n,accessCache:u,type:c,appContext:d}=e;if(t==="__isVue")return!0;let m;if(t[0]!=="$"){const C=u[t];if(C!==void 0)switch(C){case 1:return i[t];case 2:return a[t];case 4:return r[t];case 3:return n[t]}else{if(Nc(i,t))return u[t]=1,i[t];if(a!==$t&&wt(a,t))return u[t]=2,a[t];if((m=e.propsOptions[0])&&wt(m,t))return u[t]=3,n[t];if(r!==$t&&wt(r,t))return u[t]=4,r[t];q0&&(u[t]=0)}}const M=ia[t];let S,R;if(M)return t==="$attrs"?(Tr(e,"get",t),Cl()):t==="$slots"&&Tr(e,"get",t),M(e);if((S=c.__cssModules)&&(S=S[t]))return S;if(r!==$t&&wt(r,t))return u[t]=4,r[t];if(R=d.config.globalProperties,wt(R,t))return R[t];tr&&(!Vt(t)||t.indexOf("__v")!==0)&&(a!==$t&&Tv(t[0])&&wt(a,t)?Ue(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===tr&&Ue(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,r){const{data:i,setupState:a,ctx:n}=e;return Nc(a,t)?(a[t]=r,!0):a.__isScriptSetup&&wt(a,t)?(Ue(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):i!==$t&&wt(i,t)?(i[t]=r,!0):wt(e.props,t)?(Ue(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(Ue(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(t in e.appContext.config.globalProperties?Object.defineProperty(n,t,{enumerable:!0,configurable:!0,value:r}):n[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:i,appContext:a,propsOptions:n}},u){let c;return!!r[u]||e!==$t&&wt(e,u)||Nc(t,u)||(c=n[0])&&wt(c,u)||wt(i,u)||wt(ia,u)||wt(a.config.globalProperties,u)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:wt(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};Pf.ownKeys=e=>(Ue("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e));const Z8=Pt({},Pf,{get(e,t){if(t!==Symbol.unscopables)return Pf.get(e,t,e)},has(e,t){const r=t[0]!=="_"&&!rE(t);return!r&&Pf.has(e,t)&&Ue(`Property ${JSON.stringify(t)} should not start with _ which is a reserved prefix for Vue internals.`),r}});function X8(e){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>e}),Object.keys(ia).forEach(r=>{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,get:()=>ia[r](e),set:qr})}),t}function J8(e){const{ctx:t,propsOptions:[r]}=e;r&&Object.keys(r).forEach(i=>{Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>e.props[i],set:qr})})}function Q8(e){const{ctx:t,setupState:r}=e;Object.keys(lt(r)).forEach(i=>{if(!r.__isScriptSetup){if(Tv(i[0])){Ue(`setup() return property ${JSON.stringify(i)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>r[i],set:qr})}})}const wa=e=>Ue(`${e}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`);function e5(){return wa("defineProps"),null}function t5(){return wa("defineEmits"),null}function r5(e){wa("defineExpose")}function i5(e){wa("defineOptions")}function n5(){return wa("defineSlots"),null}function o5(){wa("defineModel")}function a5(e,t){return wa("withDefaults"),null}function s5(){return H2().slots}function f5(){return H2().attrs}function u5(e,t,r){const i=Fi();if(!i)return Ue("useModel() called without active instance."),mr();if(!i.propsOptions[0][t])return Ue(`useModel() called with prop "${t}" which is not declared.`),mr();if(r&&r.local){const a=mr(e[t]);return lr(()=>e[t],n=>a.value=n),lr(a,n=>{n!==e[t]&&i.emit(`update:${t}`,n)}),a}else return{__v_isRef:!0,get value(){return e[t]},set value(a){i.emit(`update:${t}`,a)}}}function H2(){const e=Fi();return e||Ue("useContext() called without active instance."),e.setupContext||(e.setupContext=h_(e))}function Yf(e){return ze(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function l5(e,t){const r=Yf(e);for(const i in t){if(i.startsWith("__skip"))continue;let a=r[i];a?ze(a)||Qe(a)?a=r[i]={type:a,default:t[i]}:a.default=t[i]:a===null?a=r[i]={default:t[i]}:Ue(`props default key "${i}" has no corresponding declaration.`),a&&t[`__skip_${i}`]&&(a.skipFactory=!0)}return r}function h5(e,t){return!e||!t?e||t:ze(e)&&ze(t)?e.concat(t):Pt({},Yf(e),Yf(t))}function c5(e,t){const r={};for(const i in e)t.includes(i)||Object.defineProperty(r,i,{enumerable:!0,get:()=>e[i]});return r}function d5(e){const t=Fi();t||Ue("withAsyncContext called without active current instance. This is likely a bug.");let r=e();return yo(),ah(r)&&(r=r.catch(i=>{throw Eo(t),i})),[r,()=>Eo(t)]}function p5(){const e=Object.create(null);return(t,r)=>{e[r]?Ue(`${t} property "${r}" is already defined in ${e[r]}.`):e[r]=t}}let q0=!0;function v5(e){const t=Ov(e),r=e.proxy,i=e.ctx;q0=!1,t.beforeCreate&&Sm(t.beforeCreate,e,"bc");const{data:a,computed:n,methods:u,watch:c,provide:d,inject:m,created:M,beforeMount:S,mounted:R,beforeUpdate:C,updated:P,activated:k,deactivated:L,beforeDestroy:I,beforeUnmount:B,destroyed:H,unmounted:F,render:W,renderTracked:Y,renderTriggered:ie,errorCaptured:J,serverPrefetch:V,expose:oe,inheritAttrs:_,components:o,directives:f,filters:l}=t,h=p5();{const[w]=e.propsOptions;if(w)for(const x in w)h("Props",x)}if(m&&g5(m,i,h),u)for(const w in u){const x=u[w];Qe(x)?(Object.defineProperty(i,w,{value:x.bind(r),configurable:!0,enumerable:!0,writable:!0}),h("Methods",w)):Ue(`Method "${w}" has type "${typeof x}" in the component definition. Did you reference the function correctly?`)}if(a){Qe(a)||Ue("The data option must be a function. Plain object usage is no longer supported.");const w=a.call(r,r);if(ah(w)&&Ue("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Rt(w))Ue("data() should return an object.");else{e.data=No(w);for(const x in w)h("Data",x),Tv(x[0])||Object.defineProperty(i,x,{configurable:!0,enumerable:!0,get:()=>w[x],set:qr})}}if(q0=!0,n)for(const w in n){const x=n[w],g=Qe(x)?x.bind(r,r):Qe(x.get)?x.get.bind(r,r):qr;g===qr&&Ue(`Computed property "${w}" has no getter.`);const s=!Qe(x)&&Qe(x.set)?x.set.bind(r):()=>{Ue(`Write operation failed: computed property "${w}" is readonly.`)},v=Qt({get:g,set:s});Object.defineProperty(i,w,{enumerable:!0,configurable:!0,get:()=>v.value,set:T=>v.value=T}),h("Computed",w)}if(c)for(const w in c)q2(c[w],i,r,w);if(d){const w=Qe(d)?d.call(r):d;Reflect.ownKeys(w).forEach(x=>{Cf(x,w[x])})}M&&Sm(M,e,"c");function p(w,x){ze(x)?x.forEach(g=>w(g.bind(r))):x&&w(x.bind(r))}if(p(N2,S),p(Ns,R),p(Rv,C),p(bh,P),p(C2,k),p(B2,L),p(F2,J),p(D2,Y),p($2,ie),p(wh,B),p(_h,F),p(k2,V),ze(oe))if(oe.length){const w=e.exposed||(e.exposed={});oe.forEach(x=>{Object.defineProperty(w,x,{get:()=>r[x],set:g=>r[x]=g})})}else e.exposed||(e.exposed={});W&&e.render===qr&&(e.render=W),_!=null&&(e.inheritAttrs=_),o&&(e.components=o),f&&(e.directives=f)}function g5(e,t,r=qr){ze(e)&&(e=W0(e));for(const i in e){const a=e[i];let n;Rt(a)?"default"in a?n=tn(a.from||i,a.default,!0):n=tn(a.from||i):n=tn(a),Xt(n)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>n.value,set:u=>n.value=u}):t[i]=n,r("Inject",i)}}function Sm(e,t,r){Zr(ze(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,r)}function q2(e,t,r,i){const a=i.includes(".")?T2(r,i):()=>r[i];if(Vt(e)){const n=t[e];Qe(n)?lr(a,n):Ue(`Invalid watch handler specified by key "${e}"`,n)}else if(Qe(e))lr(a,e.bind(r));else if(Rt(e))if(ze(e))e.forEach(n=>q2(n,t,r,i));else{const n=Qe(e.handler)?e.handler.bind(r):t[e.handler];Qe(n)?lr(a,n,e):Ue(`Invalid watch handler specified by key "${e.handler}"`,n)}else Ue(`Invalid watch option: "${i}"`,e)}function Ov(e){const t=e.type,{mixins:r,extends:i}=t,{mixins:a,optionsCache:n,config:{optionMergeStrategies:u}}=e.appContext,c=n.get(t);let d;return c?d=c:!a.length&&!r&&!i?d=t:(d={},a.length&&a.forEach(m=>Ll(d,m,u,!0)),Ll(d,t,u)),Rt(t)&&n.set(t,d),d}function Ll(e,t,r,i=!1){const{mixins:a,extends:n}=t;n&&Ll(e,n,r,!0),a&&a.forEach(u=>Ll(e,u,r,!0));for(const u in t)if(i&&u==="expose")Ue('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const c=m5[u]||r&&r[u];e[u]=c?c(e[u],t[u]):t[u]}return e}const m5={data:xm,props:Em,emits:Em,methods:Mf,computed:Mf,beforeCreate:Cr,created:Cr,beforeMount:Cr,mounted:Cr,beforeUpdate:Cr,updated:Cr,beforeDestroy:Cr,beforeUnmount:Cr,destroyed:Cr,unmounted:Cr,activated:Cr,deactivated:Cr,errorCaptured:Cr,serverPrefetch:Cr,components:Mf,directives:Mf,watch:b5,provide:xm,inject:y5};function xm(e,t){return t?e?function(){return Pt(Qe(e)?e.call(this,this):e,Qe(t)?t.call(this,this):t)}:t:e}function y5(e,t){return Mf(W0(e),W0(t))}function W0(e){if(ze(e)){const t={};for(let r=0;r<e.length;r++)t[e[r]]=e[r];return t}return e}function Cr(e,t){return e?[...new Set([].concat(e,t))]:t}function Mf(e,t){return e?Pt(Object.create(null),e,t):t}function Em(e,t){return e?ze(e)&&ze(t)?[...new Set([...e,...t])]:Pt(Object.create(null),Yf(e),Yf(t??{})):t}function b5(e,t){if(!e)return t;if(!t)return e;const r=Pt(Object.create(null),e);for(const i in t)r[i]=Cr(e[i],t[i]);return r}function W2(){return{app:null,config:{isNativeTag:qw,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let w5=0;function _5(e,t){return function(i,a=null){Qe(i)||(i=Pt({},i)),a!=null&&!Rt(a)&&(Ue("root props passed to app.mount() must be an object."),a=null);const n=W2();Object.defineProperty(n.config,"unwrapInjectedRef",{get(){return!0},set(){Ue("app.config.unwrapInjectedRef has been deprecated. 3.3 now alawys unwraps injected refs in Options API.")}});const u=new Set;let c=!1;const d=n.app={_uid:w5++,_component:i,_props:a,_container:null,_context:n,_instance:null,version:Q0,get config(){return n.config},set config(m){Ue("app.config cannot be replaced. Modify individual options instead.")},use(m,...M){return u.has(m)?Ue("Plugin has already been applied to target app."):m&&Qe(m.install)?(u.add(m),m.install(d,...M)):Qe(m)?(u.add(m),m(d,...M)):Ue('A plugin must either be a function or an object with an "install" function.'),d},mixin(m){return n.mixins.includes(m)?Ue("Mixin has already been applied to target app"+(m.name?`: ${m.name}`:"")):n.mixins.push(m),d},component(m,M){return Z0(m,n.config),M?(n.components[m]&&Ue(`Component "${m}" has already been registered in target app.`),n.components[m]=M,d):n.components[m]},directive(m,M){return O2(m),M?(n.directives[m]&&Ue(`Directive "${m}" has already been registered in target app.`),n.directives[m]=M,d):n.directives[m]},mount(m,M,S){if(c)Ue("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{m.__vue_app__&&Ue("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const R=Zt(i,a);return R.appContext=n,n.reload=()=>{e(di(R),m,S)},M&&t?t(R,m):e(R,m,S),c=!0,d._container=m,m.__vue_app__=d,d._instance=R.component,m8(d,Q0),Sh(R.component)||R.component.proxy}},unmount(){c?(e(null,d._container),d._instance=null,y8(d),delete d._container.__vue_app__):Ue("Cannot unmount an app that is not mounted.")},provide(m,M){return m in n.provides&&Ue(`App already provides property with key "${String(m)}". It will be overwritten with the new value.`),n.provides[m]=M,d},runWithContext(m){Zf=d;try{return m()}finally{Zf=null}}};return d}}let Zf=null;function Cf(e,t){if(!er)Ue("provide() can only be used inside setup().");else{let r=er.provides;const i=er.parent&&er.parent.provides;i===r&&(r=er.provides=Object.create(i)),r[e]=t}}function tn(e,t,r=!1){const i=er||tr;if(i||Zf){const a=i?i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:Zf._context.provides;if(a&&e in a)return a[e];if(arguments.length>1)return r&&Qe(t)?t.call(i&&i.proxy):t;Ue(`injection "${String(e)}" not found.`)}else Ue("inject() can only be used inside setup() or functional components.")}function M5(){return!!(er||tr||Zf)}function S5(e,t,r,i=!1){const a={},n={};El(n,Mh,1),e.propsDefaults=Object.create(null),K2(e,t,a,n);for(const u in e.propsOptions[0])u in a||(a[u]=void 0);z2(t||{},a,e),r?e.props=i?a:l2(a):e.type.props?e.props=a:e.props=n,e.attrs=n}function x5(e){for(;e;){if(e.type.__hmrId)return!0;e=e.parent}}function E5(e,t,r,i){const{props:a,attrs:n,vnode:{patchFlag:u}}=e,c=lt(a),[d]=e.propsOptions;let m=!1;if(!x5(e)&&(i||u>0)&&!(u&16)){if(u&8){const M=e.vnode.dynamicProps;for(let S=0;S<M.length;S++){let R=M[S];if(vh(e.emitsOptions,R))continue;const C=t[R];if(d)if(wt(n,R))C!==n[R]&&(n[R]=C,m=!0);else{const P=Kr(R);a[P]=K0(d,c,P,C,e,!1)}else C!==n[R]&&(n[R]=C,m=!0)}}}else{K2(e,t,a,n)&&(m=!0);let M;for(const S in c)(!t||!wt(t,S)&&((M=Hr(S))===S||!wt(t,M)))&&(d?r&&(r[S]!==void 0||r[M]!==void 0)&&(a[S]=K0(d,c,S,void 0,e,!0)):delete a[S]);if(n!==c)for(const S in n)(!t||!wt(t,S))&&(delete n[S],m=!0)}m&&an(e,"set","$attrs"),z2(t||{},a,e)}function K2(e,t,r,i){const[a,n]=e.propsOptions;let u=!1,c;if(t)for(let d in t){if(Af(d))continue;const m=t[d];let M;a&&wt(a,M=Kr(d))?!n||!n.includes(M)?r[M]=m:(c||(c={}))[M]=m:vh(e.emitsOptions,d)||(!(d in i)||m!==i[d])&&(i[d]=m,u=!0)}if(n){const d=lt(r),m=c||$t;for(let M=0;M<n.length;M++){const S=n[M];r[S]=K0(a,d,S,m[S],e,!wt(m,S))}}return u}function K0(e,t,r,i,a,n){const u=e[r];if(u!=null){const c=wt(u,"default");if(c&&i===void 0){const d=u.default;if(u.type!==Function&&!u.skipFactory&&Qe(d)){const{propsDefaults:m}=a;r in m?i=m[r]:(Eo(a),i=m[r]=d.call(null,t),yo())}else i=d}u[0]&&(n&&!c?i=!1:u[1]&&(i===""||i===Hr(r))&&(i=!0))}return i}function V2(e,t,r=!1){const i=t.propsCache,a=i.get(e);if(a)return a;const n=e.props,u={},c=[];let d=!1;if(!Qe(e)){const M=S=>{d=!0;const[R,C]=V2(S,t,!0);Pt(u,R),C&&c.push(...C)};!r&&t.mixins.length&&t.mixins.forEach(M),e.extends&&M(e.extends),e.mixins&&e.mixins.forEach(M)}if(!n&&!d)return Rt(e)&&i.set(e,Ga),Ga;if(ze(n))for(let M=0;M<n.length;M++){Vt(n[M])||Ue("props must be strings when using array syntax.",n[M]);const S=Kr(n[M]);Rm(S)&&(u[S]=$t)}else if(n){Rt(n)||Ue("invalid props options",n);for(const M in n){const S=Kr(M);if(Rm(S)){const R=n[M],C=u[S]=ze(R)||Qe(R)?{type:R}:Pt({},R);if(C){const P=Tm(Boolean,C.type),k=Tm(String,C.type);C[0]=P>-1,C[1]=k<0||P<k,(P>-1||wt(C,"default"))&&c.push(S)}}}}const m=[u,c];return Rt(e)&&i.set(e,m),m}function Rm(e){return e[0]!=="$"?!0:(Ue(`Invalid prop name: "${e}" is a reserved property.`),!1)}function V0(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Am(e,t){return V0(e)===V0(t)}function Tm(e,t){return ze(t)?t.findIndex(r=>Am(r,e)):Qe(t)&&Am(t,e)?0:-1}function z2(e,t,r){const i=lt(t),a=r.propsOptions[0];for(const n in a){let u=a[n];u!=null&&R5(n,i[n],u,!wt(e,n)&&!wt(e,Hr(n)))}}function R5(e,t,r,i){const{type:a,required:n,validator:u,skipCheck:c}=r;if(n&&i){Ue('Missing required prop: "'+e+'"');return}if(!(t==null&&!n)){if(a!=null&&a!==!0&&!c){let d=!1;const m=ze(a)?a:[a],M=[];for(let S=0;S<m.length&&!d;S++){const{valid:R,expectedType:C}=T5(t,m[S]);M.push(C||""),d=R}if(!d){Ue(O5(e,t,M));return}}u&&!u(t)&&Ue('Invalid prop: custom validator check failed for prop "'+e+'".')}}const A5=Kn("String,Number,Boolean,Function,Symbol,BigInt");function T5(e,t){let r;const i=V0(t);if(A5(i)){const a=typeof e;r=a===i.toLowerCase(),!r&&a==="object"&&(r=e instanceof t)}else i==="Object"?r=Rt(e):i==="Array"?r=ze(e):i==="null"?r=e===null:r=e instanceof t;return{valid:r,expectedType:i}}function O5(e,t,r){let i=`Invalid prop: type check failed for prop "${e}". Expected ${r.map(_o).join(" | ")}`;const a=r[0],n=nv(t),u=Om(t,a),c=Om(t,n);return r.length===1&&Im(a)&&!I5(a,n)&&(i+=` with value ${u}`),i+=`, got ${n} `,Im(n)&&(i+=`with value ${c}.`),i}function Om(e,t){return t==="String"?`"${e}"`:t==="Number"?`${Number(e)}`:`${e}`}function Im(e){return["string","number","boolean"].some(r=>e.toLowerCase()===r)}function I5(...e){return e.some(t=>t.toLowerCase()==="boolean")}const G2=e=>e[0]==="_"||e==="$stable",Iv=e=>ze(e)?e.map(Ur):[Ur(e)],P5=(e,t,r)=>{if(t._n)return t;const i=wv((...a)=>(er&&Ue(`Slot "${e}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),Iv(t(...a))),r);return i._c=!1,i},Y2=(e,t,r)=>{const i=e._ctx;for(const a in e){if(G2(a))continue;const n=e[a];if(Qe(n))t[a]=P5(a,n,i);else if(n!=null){Ue(`Non-function value encountered for slot "${a}". Prefer function slots for better performance.`);const u=Iv(n);t[a]=()=>u}}},Z2=(e,t)=>{Ls(e.vnode)||Ue("Non-function value encountered for default slot. Prefer function slots for better performance.");const r=Iv(t);e.slots.default=()=>r},C5=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=lt(t),El(t,"_",r)):Y2(t,e.slots={})}else e.slots={},t&&Z2(e,t);El(e.slots,Mh,1)},B5=(e,t,r)=>{const{vnode:i,slots:a}=e;let n=!0,u=$t;if(i.shapeFlag&32){const c=t._;c?go?(Pt(a,t),an(e,"set","$slots")):r&&c===1?n=!1:(Pt(a,t),!r&&c===1&&delete a._):(n=!t.$stable,Y2(t,a)),u=t}else t&&(Z2(e,t),u={default:1});if(n)for(const c in a)!G2(c)&&!(c in u)&&delete a[c]};function Nl(e,t,r,i,a=!1){if(ze(e)){e.forEach((R,C)=>Nl(R,t&&(ze(t)?t[C]:t),r,i,a));return}if(ra(i)&&!a)return;const n=i.shapeFlag&4?Sh(i.component)||i.component.proxy:i.el,u=a?null:n,{i:c,r:d}=e;if(!c){Ue("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const m=t&&t.r,M=c.refs===$t?c.refs={}:c.refs,S=c.setupState;if(m!=null&&m!==d&&(Vt(m)?(M[m]=null,wt(S,m)&&(S[m]=null)):Xt(m)&&(m.value=null)),Qe(d))en(d,c,12,[u,M]);else{const R=Vt(d),C=Xt(d);if(R||C){const P=()=>{if(e.f){const k=R?wt(S,d)?S[d]:M[d]:d.value;a?ze(k)&&iv(k,n):ze(k)?k.includes(n)||k.push(n):R?(M[d]=[n],wt(S,d)&&(S[d]=M[d])):(d.value=[n],e.k&&(M[e.k]=d.value))}else R?(M[d]=u,wt(S,d)&&(S[d]=u)):C?(d.value=u,e.k&&(M[e.k]=u)):Ue("Invalid template ref type:",d,`(${typeof d})`)};u?(P.id=-1,gr(P,r)):P()}else Ue("Invalid template ref type:",d,`(${typeof d})`)}}let Jn=!1;const Wu=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Gs=e=>e.nodeType===8;function L5(e){const{mt:t,p:r,o:{patchProp:i,createText:a,nextSibling:n,parentNode:u,remove:c,insert:d,createComment:m}}=e,M=(I,B)=>{if(!B.hasChildNodes()){Ue("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),r(null,I,B),Pl(),B._vnode=I;return}Jn=!1,S(B.firstChild,I,null,null,null),Pl(),B._vnode=I,Jn&&console.error("Hydration completed but contains mismatches.")},S=(I,B,H,F,W,Y=!1)=>{const ie=Gs(I)&&I.data==="[",J=()=>k(I,B,H,F,W,ie),{type:V,ref:oe,shapeFlag:_,patchFlag:o}=B;let f=I.nodeType;B.el=I,o===-2&&(Y=!1,B.dynamicChildren=null);let l=null;switch(V){case xo:f!==3?B.children===""?(d(B.el=a(""),u(I),I),l=I):l=J():(I.data!==B.children&&(Jn=!0,Ue(`Hydration text mismatch:
-- Client: ${JSON.stringify(I.data)}
-- Server: ${JSON.stringify(B.children)}`),I.data=B.children),l=n(I));break;case rr:f!==8||ie?l=J():l=n(I);break;case mo:if(ie&&(I=n(I),f=I.nodeType),f===1||f===3){l=I;const h=!B.children.length;for(let p=0;p<B.staticCount;p++)h&&(B.children+=l.nodeType===1?l.outerHTML:l.data),p===B.staticCount-1&&(B.anchor=l),l=n(l);return ie?n(l):l}else J();break;case Lt:ie?l=P(I,B,H,F,W,Y):l=J();break;default:if(_&1)f!==1||B.type.toLowerCase()!==I.tagName.toLowerCase()?l=J():l=R(I,B,H,F,W,Y);else if(_&6){B.slotScopeIds=W;const h=u(I);if(t(B,h,null,H,F,Wu(h),Y),l=ie?L(I):n(I),l&&Gs(l)&&l.data==="teleport end"&&(l=n(l)),ra(B)){let p;ie?(p=Zt(Lt),p.anchor=l?l.previousSibling:h.lastChild):p=I.nodeType===3?Cv(""):Zt("div"),p.el=I,B.component.subTree=p}}else _&64?f!==8?l=J():l=B.type.hydrate(I,B,H,F,W,Y,e,C):_&128?l=B.type.hydrate(I,B,H,F,Wu(u(I)),W,Y,e,S):Ue("Invalid HostVNode type:",V,`(${typeof V})`)}return oe!=null&&Nl(oe,null,F,B),l},R=(I,B,H,F,W,Y)=>{Y=Y||!!B.dynamicChildren;const{type:ie,props:J,patchFlag:V,shapeFlag:oe,dirs:_}=B,o=ie==="input"&&_||ie==="option";{if(_&&Zi(B,null,H,"created"),J)if(o||!Y||V&48)for(const l in J)(o&&l.endsWith("value")||Ps(l)&&!Af(l))&&i(I,l,null,J[l],!1,void 0,H);else J.onClick&&i(I,"onClick",null,J.onClick,!1,void 0,H);let f;if((f=J&&J.onVnodeBeforeMount)&&Dr(f,H,B),_&&Zi(B,null,H,"beforeMount"),((f=J&&J.onVnodeMounted)||_)&&E2(()=>{f&&Dr(f,H,B),_&&Zi(B,null,H,"mounted")},F),oe&16&&!(J&&(J.innerHTML||J.textContent))){let l=C(I.firstChild,B,I,H,F,W,Y),h=!1;for(;l;){Jn=!0,h||(Ue(`Hydration children mismatch in <${B.type}>: server rendered element contains more child nodes than client vdom.`),h=!0);const p=l;l=l.nextSibling,c(p)}}else oe&8&&I.textContent!==B.children&&(Jn=!0,Ue(`Hydration text content mismatch in <${B.type}>:
-- Client: ${I.textContent}
-- Server: ${B.children}`),I.textContent=B.children)}return I.nextSibling},C=(I,B,H,F,W,Y,ie)=>{ie=ie||!!B.dynamicChildren;const J=B.children,V=J.length;let oe=!1;for(let _=0;_<V;_++){const o=ie?J[_]:J[_]=Ur(J[_]);if(I)I=S(I,o,F,W,Y,ie);else{if(o.type===xo&&!o.children)continue;Jn=!0,oe||(Ue(`Hydration children mismatch in <${H.tagName.toLowerCase()}>: server rendered element contains fewer child nodes than client vdom.`),oe=!0),r(null,o,H,null,F,W,Wu(H),Y)}}return I},P=(I,B,H,F,W,Y)=>{const{slotScopeIds:ie}=B;ie&&(W=W?W.concat(ie):ie);const J=u(I),V=C(n(I),B,J,H,F,W,Y);return V&&Gs(V)&&V.data==="]"?n(B.anchor=V):(Jn=!0,d(B.anchor=m("]"),J,V),V)},k=(I,B,H,F,W,Y)=>{if(Jn=!0,Ue(`Hydration node mismatch:
-- Client vnode:`,B.type,`
-- Server rendered DOM:`,I,I.nodeType===3?"(text)":Gs(I)&&I.data==="["?"(start of fragment)":""),B.el=null,Y){const V=L(I);for(;;){const oe=n(I);if(oe&&oe!==V)c(oe);else break}}const ie=n(I),J=u(I);return c(I),r(null,B,J,ie,H,F,Wu(J),W),ie},L=I=>{let B=0;for(;I;)if(I=n(I),I&&Gs(I)&&(I.data==="["&&B++,I.data==="]")){if(B===0)return n(I);B--}return I};return[M,S]}let Ys,fo;function bn(e,t){e.appContext.config.performance&&kl()&&fo.mark(`vue-${t}-${e.uid}`),_8(e,t,kl()?fo.now():Date.now())}function wn(e,t){if(e.appContext.config.performance&&kl()){const r=`vue-${t}-${e.uid}`,i=r+":end";fo.mark(i),fo.measure(`<${xh(e,e.type)}> ${t}`,r,i),fo.clearMarks(r),fo.clearMarks(i)}M8(e,t,kl()?fo.now():Date.now())}function kl(){return Ys!==void 0||(typeof window<"u"&&window.performance?(Ys=!0,fo=window.performance):Ys=!1),Ys}function N5(){const e=[];if(e.length){const t=e.length>1;console.warn(`Feature flag${t?"s":""} ${e.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
-
-For more details, see https://link.vuejs.org/feature-flags.`)}}const gr=E2;function X2(e){return Q2(e)}function J2(e){return Q2(e,L5)}function Q2(e,t){N5();const r=Tl();r.__VUE__=!0,yv(r.__VUE_DEVTOOLS_GLOBAL_HOOK__,r);const{insert:i,remove:a,patchProp:n,createElement:u,createText:c,createComment:d,setText:m,setElementText:M,parentNode:S,nextSibling:R,setScopeId:C=qr,insertStaticContent:P}=e,k=(O,q,X,D=null,N=null,j=null,z=!1,se=null,te=go?!1:!!q.dynamicChildren)=>{if(O===q)return;O&&!Li(O,q)&&(D=U(O),$(O,N,j,!0),O=null),q.patchFlag===-2&&(te=!1,q.dynamicChildren=null);const{type:ne,ref:Ee,shapeFlag:Q}=q;switch(ne){case xo:L(O,q,X,D);break;case rr:I(O,q,X,D);break;case mo:O==null?B(q,X,D,z):H(O,q,X,z);break;case Lt:f(O,q,X,D,N,j,z,se,te);break;default:Q&1?Y(O,q,X,D,N,j,z,se,te):Q&6?l(O,q,X,D,N,j,z,se,te):Q&64||Q&128?ne.process(O,q,X,D,N,j,z,se,te,Z):Ue("Invalid VNode type:",ne,`(${typeof ne})`)}Ee!=null&&N&&Nl(Ee,O&&O.ref,j,q||O,!q)},L=(O,q,X,D)=>{if(O==null)i(q.el=c(q.children),X,D);else{const N=q.el=O.el;q.children!==O.children&&m(N,q.children)}},I=(O,q,X,D)=>{O==null?i(q.el=d(q.children||""),X,D):q.el=O.el},B=(O,q,X,D)=>{[O.el,O.anchor]=P(O.children,q,X,D,O.el,O.anchor)},H=(O,q,X,D)=>{if(q.children!==O.children){const N=R(O.anchor);W(O),[q.el,q.anchor]=P(q.children,X,N,D)}else q.el=O.el,q.anchor=O.anchor},F=({el:O,anchor:q},X,D)=>{let N;for(;O&&O!==q;)N=R(O),i(O,X,D),O=N;i(q,X,D)},W=({el:O,anchor:q})=>{let X;for(;O&&O!==q;)X=R(O),a(O),O=X;a(q)},Y=(O,q,X,D,N,j,z,se,te)=>{z=z||q.type==="svg",O==null?ie(q,X,D,N,j,z,se,te):oe(O,q,N,j,z,se,te)},ie=(O,q,X,D,N,j,z,se)=>{let te,ne;const{type:Ee,props:Q,shapeFlag:ue,transition:le,dirs:ce}=O;if(te=O.el=u(O.type,j,Q&&Q.is,Q),ue&8?M(te,O.children):ue&16&&V(O.children,te,null,D,N,j&&Ee!=="foreignObject",z,se),ce&&Zi(O,null,D,"created"),J(te,O,O.scopeId,z,D),Q){for(const de in Q)de!=="value"&&!Af(de)&&n(te,de,null,Q[de],j,O.children,D,N,E);"value"in Q&&n(te,"value",null,Q.value),(ne=Q.onVnodeBeforeMount)&&Dr(ne,D,O)}Object.defineProperty(te,"__vnode",{value:O,enumerable:!1}),Object.defineProperty(te,"__vueParentComponent",{value:D,enumerable:!1}),ce&&Zi(O,null,D,"beforeMount");const pe=(!N||N&&!N.pendingBranch)&&le&&!le.persisted;pe&&le.beforeEnter(te),i(te,q,X),((ne=Q&&Q.onVnodeMounted)||pe||ce)&&gr(()=>{ne&&Dr(ne,D,O),pe&&le.enter(te),ce&&Zi(O,null,D,"mounted")},N)},J=(O,q,X,D,N)=>{if(X&&C(O,X),D)for(let j=0;j<D.length;j++)C(O,D[j]);if(N){let j=N.subTree;if(j.patchFlag>0&&j.patchFlag&2048&&(j=_v(j.children)||j),q===j){const z=N.vnode;J(O,z,z.scopeId,z.slotScopeIds,N.parent)}}},V=(O,q,X,D,N,j,z,se,te=0)=>{for(let ne=te;ne<O.length;ne++){const Ee=O[ne]=se?no(O[ne]):Ur(O[ne]);k(null,Ee,q,X,D,N,j,z,se)}},oe=(O,q,X,D,N,j,z)=>{const se=q.el=O.el;let{patchFlag:te,dynamicChildren:ne,dirs:Ee}=q;te|=O.patchFlag&16;const Q=O.props||$t,ue=q.props||$t;let le;X&&Fo(X,!1),(le=ue.onVnodeBeforeUpdate)&&Dr(le,X,q,O),Ee&&Zi(q,O,X,"beforeUpdate"),X&&Fo(X,!0),go&&(te=0,z=!1,ne=null);const ce=N&&q.type!=="foreignObject";if(ne?(_(O.dynamicChildren,ne,se,X,D,ce,j),$l(O,q)):z||g(O,q,se,null,X,D,ce,j,!1),te>0){if(te&16)o(se,q,Q,ue,X,D,N);else if(te&2&&Q.class!==ue.class&&n(se,"class",null,ue.class,N),te&4&&n(se,"style",Q.style,ue.style,N),te&8){const pe=q.dynamicProps;for(let de=0;de<pe.length;de++){const ae=pe[de],fe=Q[ae],Te=ue[ae];(Te!==fe||ae==="value")&&n(se,ae,fe,Te,N,O.children,X,D,E)}}te&1&&O.children!==q.children&&M(se,q.children)}else!z&&ne==null&&o(se,q,Q,ue,X,D,N);((le=ue.onVnodeUpdated)||Ee)&&gr(()=>{le&&Dr(le,X,q,O),Ee&&Zi(q,O,X,"updated")},D)},_=(O,q,X,D,N,j,z)=>{for(let se=0;se<q.length;se++){const te=O[se],ne=q[se],Ee=te.el&&(te.type===Lt||!Li(te,ne)||te.shapeFlag&70)?S(te.el):X;k(te,ne,Ee,null,D,N,j,z,!0)}},o=(O,q,X,D,N,j,z)=>{if(X!==D){if(X!==$t)for(const se in X)!Af(se)&&!(se in D)&&n(O,se,X[se],null,z,q.children,N,j,E);for(const se in D){if(Af(se))continue;const te=D[se],ne=X[se];te!==ne&&se!=="value"&&n(O,se,ne,te,z,q.children,N,j,E)}"value"in D&&n(O,"value",X.value,D.value)}},f=(O,q,X,D,N,j,z,se,te)=>{const ne=q.el=O?O.el:c(""),Ee=q.anchor=O?O.anchor:c("");let{patchFlag:Q,dynamicChildren:ue,slotScopeIds:le}=q;(go||Q&2048)&&(Q=0,te=!1,ue=null),le&&(se=se?se.concat(le):le),O==null?(i(ne,X,D),i(Ee,X,D),V(q.children,X,Ee,N,j,z,se,te)):Q>0&&Q&64&&ue&&O.dynamicChildren?(_(O.dynamicChildren,ue,X,N,j,z,se),$l(O,q)):g(O,q,X,Ee,N,j,z,se,te)},l=(O,q,X,D,N,j,z,se,te)=>{q.slotScopeIds=se,O==null?q.shapeFlag&512?N.ctx.activate(q,X,D,z,te):h(q,X,D,N,j,z,te):p(O,q,te)},h=(O,q,X,D,N,j,z)=>{const se=O.component=s_(O,D,N);if(se.type.__hmrId&&d8(se),Tf(O),bn(se,"mount"),Ls(O)&&(se.ctx.renderer=Z),bn(se,"init"),u_(se),wn(se,"init"),se.asyncDep){if(N&&N.registerDep(se,w),!O.el){const te=se.subTree=Zt(rr);I(null,te,q,X)}return}w(se,O,q,X,N,j,z),Of(),wn(se,"mount")},p=(O,q,X)=>{const D=q.component=O.component;if(O8(O,q,X))if(D.asyncDep&&!D.asyncResolved){Tf(q),x(D,q,X),Of();return}else D.next=q,h8(D.update),D.update();else q.el=O.el,D.vnode=q},w=(O,q,X,D,N,j,z)=>{const se=()=>{if(O.isMounted){let{next:Ee,bu:Q,u:ue,parent:le,vnode:ce}=O,pe=Ee,de;Tf(Ee||O.vnode),Fo(O,!1),Ee?(Ee.el=ce.el,x(O,Ee,z)):Ee=ce,Q&&so(Q),(de=Ee.props&&Ee.props.onVnodeBeforeUpdate)&&Dr(de,le,Ee,ce),Fo(O,!0),bn(O,"render");const ae=nl(O);wn(O,"render");const fe=O.subTree;O.subTree=ae,bn(O,"patch"),k(fe,ae,S(fe.el),U(fe),O,N,j),wn(O,"patch"),Ee.el=ae.el,pe===null&&Mv(O,ae.el),ue&&gr(ue,N),(de=Ee.props&&Ee.props.onVnodeUpdated)&&gr(()=>Dr(de,le,Ee,ce),N),b2(O),Of()}else{let Ee;const{el:Q,props:ue}=q,{bm:le,m:ce,parent:pe}=O,de=ra(q);if(Fo(O,!1),le&&so(le),!de&&(Ee=ue&&ue.onVnodeBeforeMount)&&Dr(Ee,pe,q),Fo(O,!0),Q&&y){const ae=()=>{bn(O,"render"),O.subTree=nl(O),wn(O,"render"),bn(O,"hydrate"),y(Q,O.subTree,O,N,null),wn(O,"hydrate")};de?q.type.__asyncLoader().then(()=>!O.isUnmounted&&ae()):ae()}else{bn(O,"render");const ae=O.subTree=nl(O);wn(O,"render"),bn(O,"patch"),k(null,ae,X,D,O,N,j),wn(O,"patch"),q.el=ae.el}if(ce&&gr(ce,N),!de&&(Ee=ue&&ue.onVnodeMounted)){const ae=q;gr(()=>Dr(Ee,pe,ae),N)}(q.shapeFlag&256||pe&&ra(pe.vnode)&&pe.vnode.shapeFlag&256)&&O.a&&gr(O.a,N),O.isMounted=!0,F0(O),q=X=D=null}},te=O.effect=new uu(se,()=>lu(ne),O.scope),ne=O.update=()=>te.run();ne.id=O.uid,Fo(O,!0),te.onTrack=O.rtc?Ee=>so(O.rtc,Ee):void 0,te.onTrigger=O.rtg?Ee=>so(O.rtg,Ee):void 0,ne.ownerInstance=O,ne()},x=(O,q,X)=>{q.component=O;const D=O.vnode.props;O.vnode=q,O.next=null,E5(O,q.props,D,X),B5(O,q.children,X),ma(),vm(),ya()},g=(O,q,X,D,N,j,z,se,te=!1)=>{const ne=O&&O.children,Ee=O?O.shapeFlag:0,Q=q.children,{patchFlag:ue,shapeFlag:le}=q;if(ue>0){if(ue&128){v(ne,Q,X,D,N,j,z,se,te);return}else if(ue&256){s(ne,Q,X,D,N,j,z,se,te);return}}le&8?(Ee&16&&E(ne,N,j),Q!==ne&&M(X,Q)):Ee&16?le&16?v(ne,Q,X,D,N,j,z,se,te):E(ne,N,j,!0):(Ee&8&&M(X,""),le&16&&V(Q,X,D,N,j,z,se,te))},s=(O,q,X,D,N,j,z,se,te)=>{O=O||Ga,q=q||Ga;const ne=O.length,Ee=q.length,Q=Math.min(ne,Ee);let ue;for(ue=0;ue<Q;ue++){const le=q[ue]=te?no(q[ue]):Ur(q[ue]);k(O[ue],le,X,null,N,j,z,se,te)}ne>Ee?E(O,N,j,!0,!1,Q):V(q,X,D,N,j,z,se,te,Q)},v=(O,q,X,D,N,j,z,se,te)=>{let ne=0;const Ee=q.length;let Q=O.length-1,ue=Ee-1;for(;ne<=Q&&ne<=ue;){const le=O[ne],ce=q[ne]=te?no(q[ne]):Ur(q[ne]);if(Li(le,ce))k(le,ce,X,null,N,j,z,se,te);else break;ne++}for(;ne<=Q&&ne<=ue;){const le=O[Q],ce=q[ue]=te?no(q[ue]):Ur(q[ue]);if(Li(le,ce))k(le,ce,X,null,N,j,z,se,te);else break;Q--,ue--}if(ne>Q){if(ne<=ue){const le=ue+1,ce=le<Ee?q[le].el:D;for(;ne<=ue;)k(null,q[ne]=te?no(q[ne]):Ur(q[ne]),X,ce,N,j,z,se,te),ne++}}else if(ne>ue)for(;ne<=Q;)$(O[ne],N,j,!0),ne++;else{const le=ne,ce=ne,pe=new Map;for(ne=ce;ne<=ue;ne++){const be=q[ne]=te?no(q[ne]):Ur(q[ne]);be.key!=null&&(pe.has(be.key)&&Ue("Duplicate keys found during update:",JSON.stringify(be.key),"Make sure keys are unique."),pe.set(be.key,ne))}let de,ae=0;const fe=ue-ce+1;let Te=!1,ve=0;const Me=new Array(fe);for(ne=0;ne<fe;ne++)Me[ne]=0;for(ne=le;ne<=Q;ne++){const be=O[ne];if(ae>=fe){$(be,N,j,!0);continue}let Se;if(be.key!=null)Se=pe.get(be.key);else for(de=ce;de<=ue;de++)if(Me[de-ce]===0&&Li(be,q[de])){Se=de;break}Se===void 0?$(be,N,j,!0):(Me[Se-ce]=ne+1,Se>=ve?ve=Se:Te=!0,k(be,q[Se],X,null,N,j,z,se,te),ae++)}const Ke=Te?k5(Me):Ga;for(de=Ke.length-1,ne=fe-1;ne>=0;ne--){const be=ce+ne,Se=q[be],qe=be+1<Ee?q[be+1].el:D;Me[ne]===0?k(null,Se,X,qe,N,j,z,se,te):Te&&(de<0||ne!==Ke[de]?T(Se,X,qe,2):de--)}}},T=(O,q,X,D,N=null)=>{const{el:j,type:z,transition:se,children:te,shapeFlag:ne}=O;if(ne&6){T(O.component.subTree,q,X,D);return}if(ne&128){O.suspense.move(q,X,D);return}if(ne&64){z.move(O,q,X,Z);return}if(z===Lt){i(j,q,X);for(let Q=0;Q<te.length;Q++)T(te[Q],q,X,D);i(O.anchor,q,X);return}if(z===mo){F(O,q,X);return}if(D!==2&&ne&1&&se)if(D===0)se.beforeEnter(j),i(j,q,X),gr(()=>se.enter(j),N);else{const{leave:Q,delayLeave:ue,afterLeave:le}=se,ce=()=>i(j,q,X),pe=()=>{Q(j,()=>{ce(),le&&le()})};ue?ue(j,ce,pe):pe()}else i(j,q,X)},$=(O,q,X,D=!1,N=!1)=>{const{type:j,props:z,ref:se,children:te,dynamicChildren:ne,shapeFlag:Ee,patchFlag:Q,dirs:ue}=O;if(se!=null&&Nl(se,null,X,O,!0),Ee&256){q.ctx.deactivate(O);return}const le=Ee&1&&ue,ce=!ra(O);let pe;if(ce&&(pe=z&&z.onVnodeBeforeUnmount)&&Dr(pe,q,O),Ee&6)A(O.component,X,D);else{if(Ee&128){O.suspense.unmount(X,D);return}le&&Zi(O,null,q,"beforeUnmount"),Ee&64?O.type.remove(O,q,X,N,Z,D):ne&&(j!==Lt||Q>0&&Q&64)?E(ne,q,X,!1,!0):(j===Lt&&Q&384||!N&&Ee&16)&&E(te,q,X),D&&G(O)}(ce&&(pe=z&&z.onVnodeUnmounted)||le)&&gr(()=>{pe&&Dr(pe,q,O),le&&Zi(O,null,q,"unmounted")},X)},G=O=>{const{type:q,el:X,anchor:D,transition:N}=O;if(q===Lt){O.patchFlag>0&&O.patchFlag&2048&&N&&!N.persisted?O.children.forEach(z=>{z.type===rr?a(z.el):G(z)}):ee(X,D);return}if(q===mo){W(O);return}const j=()=>{a(X),N&&!N.persisted&&N.afterLeave&&N.afterLeave()};if(O.shapeFlag&1&&N&&!N.persisted){const{leave:z,delayLeave:se}=N,te=()=>z(X,j);se?se(O.el,j,te):te()}else j()},ee=(O,q)=>{let X;for(;O!==q;)X=R(O),a(O),O=X;a(q)},A=(O,q,X)=>{O.type.__hmrId&&p8(O);const{bum:D,scope:N,update:j,subTree:z,um:se}=O;D&&so(D),N.stop(),j&&(j.active=!1,$(z,O,q,X)),se&&gr(se,q),gr(()=>{O.isUnmounted=!0},q),q&&q.pendingBranch&&!q.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===q.pendingId&&(q.deps--,q.deps===0&&q.resolve()),w8(O)},E=(O,q,X,D=!1,N=!1,j=0)=>{for(let z=j;z<O.length;z++)$(O[z],q,X,D,N)},U=O=>O.shapeFlag&6?U(O.component.subTree):O.shapeFlag&128?O.suspense.next():R(O.anchor||O.el),K=(O,q,X)=>{O==null?q._vnode&&$(q._vnode,null,null,!0):k(q._vnode||null,O,q,null,null,null,X),vm(),Pl(),q._vnode=O},Z={p:k,um:$,m:T,r:G,mt:h,mc:V,pc:g,pbc:_,n:U,o:e};let b,y;return t&&([b,y]=t(Z)),{render:K,hydrate:b,createApp:_5(K,b)}}function Fo({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function $l(e,t,r=!1){const i=e.children,a=t.children;if(ze(i)&&ze(a))for(let n=0;n<i.length;n++){const u=i[n];let c=a[n];c.shapeFlag&1&&!c.dynamicChildren&&((c.patchFlag<=0||c.patchFlag===32)&&(c=a[n]=no(a[n]),c.el=u.el),r||$l(u,c)),c.type===xo&&(c.el=u.el),c.type===rr&&!c.el&&(c.el=u.el)}}function k5(e){const t=e.slice(),r=[0];let i,a,n,u,c;const d=e.length;for(i=0;i<d;i++){const m=e[i];if(m!==0){if(a=r[r.length-1],e[a]<m){t[i]=a,r.push(i);continue}for(n=0,u=r.length-1;n<u;)c=n+u>>1,e[r[c]]<m?n=c+1:u=c;m<e[r[n]]&&(n>0&&(t[i]=r[n-1]),r[n]=i)}}for(n=r.length,u=r[n-1];n-- >0;)r[n]=u,u=t[u];return r}const $5=e=>e.__isTeleport,Xa=e=>e&&(e.disabled||e.disabled===""),Pm=e=>typeof SVGElement<"u"&&e instanceof SVGElement,z0=(e,t)=>{const r=e&&e.to;if(Vt(r))if(t){const i=t(r);return i||Ue(`Failed to locate Teleport target with selector "${r}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),i}else return Ue("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return!r&&!Xa(e)&&Ue(`Invalid Teleport target: ${r}`),r},D5={__isTeleport:!0,process(e,t,r,i,a,n,u,c,d,m){const{mc:M,pc:S,pbc:R,o:{insert:C,querySelector:P,createText:k,createComment:L}}=m,I=Xa(t.props);let{shapeFlag:B,children:H,dynamicChildren:F}=t;if(go&&(d=!1,F=null),e==null){const W=t.el=L("teleport start"),Y=t.anchor=L("teleport end");C(W,r,i),C(Y,r,i);const ie=t.target=z0(t.props,P),J=t.targetAnchor=k("");ie?(C(J,ie),u=u||Pm(ie)):I||Ue("Invalid Teleport target on mount:",ie,`(${typeof ie})`);const V=(oe,_)=>{B&16&&M(H,oe,_,a,n,u,c,d)};I?V(r,Y):ie&&V(ie,J)}else{t.el=e.el;const W=t.anchor=e.anchor,Y=t.target=e.target,ie=t.targetAnchor=e.targetAnchor,J=Xa(e.props),V=J?r:Y,oe=J?W:ie;if(u=u||Pm(Y),F?(R(e.dynamicChildren,F,V,a,n,u,c),$l(e,t,!0)):d||S(e,t,V,oe,a,n,u,c,!1),I)J||Ku(t,r,W,m,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const _=t.target=z0(t.props,P);_?Ku(t,_,null,m,0):Ue("Invalid Teleport target on update:",Y,`(${typeof Y})`)}else J&&Ku(t,Y,ie,m,1)}e_(t)},remove(e,t,r,i,{um:a,o:{remove:n}},u){const{shapeFlag:c,children:d,anchor:m,targetAnchor:M,target:S,props:R}=e;if(S&&n(M),(u||!Xa(R))&&(n(m),c&16))for(let C=0;C<d.length;C++){const P=d[C];a(P,t,r,!0,!!P.dynamicChildren)}},move:Ku,hydrate:F5};function Ku(e,t,r,{o:{insert:i},m:a},n=2){n===0&&i(e.targetAnchor,t,r);const{el:u,anchor:c,shapeFlag:d,children:m,props:M}=e,S=n===2;if(S&&i(u,t,r),(!S||Xa(M))&&d&16)for(let R=0;R<m.length;R++)a(m[R],t,r,2);S&&i(c,t,r)}function F5(e,t,r,i,a,n,{o:{nextSibling:u,parentNode:c,querySelector:d}},m){const M=t.target=z0(t.props,d);if(M){const S=M._lpa||M.firstChild;if(t.shapeFlag&16)if(Xa(t.props))t.anchor=m(u(e),t,c(e),r,i,a,n),t.targetAnchor=S;else{t.anchor=u(e);let R=S;for(;R;)if(R=u(R),R&&R.nodeType===8&&R.data==="teleport anchor"){t.targetAnchor=R,M._lpa=t.targetAnchor&&u(t.targetAnchor);break}m(S,t,M,r,i,a,n)}e_(t)}return t.anchor&&u(t.anchor)}const j5=D5;function e_(e){const t=e.ctx;if(t&&t.ut){let r=e.children[0].el;for(;r!==e.targetAnchor;)r.nodeType===1&&r.setAttribute("data-v-owner",t.uid),r=r.nextSibling;t.ut()}}const Lt=Symbol.for("v-fgt"),xo=Symbol.for("v-txt"),rr=Symbol.for("v-cmt"),mo=Symbol.for("v-stc"),Bf=[];let Wr=null;function tt(e=!1){Bf.push(Wr=e?null:[])}function t_(){Bf.pop(),Wr=Bf[Bf.length-1]||null}let ua=1;function G0(e){ua+=e}function r_(e){return e.dynamicChildren=ua>0?Wr||Ga:null,t_(),ua>0&&Wr&&Wr.push(e),e}function ft(e,t,r,i,a,n){return r_(Je(e,t,r,i,a,n,!0))}function Pv(e,t,r,i,a){return r_(Zt(e,t,r,i,a,!0))}function Nn(e){return e?e.__v_isVNode===!0:!1}function Li(e,t){return t.shapeFlag&6&&ja.has(t.type)?(e.shapeFlag&=-257,t.shapeFlag&=-513,!1):e.type===t.type&&e.key===t.key}let Y0;function U5(e){Y0=e}const H5=(...e)=>q5(...Y0?Y0(e,tr):e),Mh="__vInternal",i_=({key:e})=>e??null,al=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Vt(e)||Xt(e)||Qe(e)?{i:tr,r:e,k:t,f:!!r}:e:null);function Je(e,t=null,r=null,i=0,a=null,n=e===Lt?0:1,u=!1,c=!1){const d={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&i_(t),ref:t&&al(t),scopeId:gh,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:i,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:tr};return c?(Bv(d,r),n&128&&e.normalize(d)):r&&(d.shapeFlag|=Vt(r)?8:16),d.key!==d.key&&Ue("VNode created with invalid key (NaN). VNode type:",d.type),ua>0&&!u&&Wr&&(d.patchFlag>0||n&6)&&d.patchFlag!==32&&Wr.push(d),d}const Zt=H5;function q5(e,t=null,r=null,i=0,a=null,n=!1){if((!e||e===j2)&&(e||Ue(`Invalid vnode type when creating vnode: ${e}.`),e=rr),Nn(e)){const c=di(e,t,!0);return r&&Bv(c,r),ua>0&&!n&&Wr&&(c.shapeFlag&6?Wr[Wr.indexOf(e)]=c:Wr.push(c)),c.patchFlag|=-2,c}if(c_(e)&&(e=e.__vccOpts),t){t=n_(t);let{class:c,style:d}=t;c&&!Vt(c)&&(t.class=vr(c)),Rt(d)&&(qf(d)&&!ze(d)&&(d=Pt({},d)),t.style=Pn(d))}const u=Vt(e)?1:x2(e)?128:$5(e)?64:Rt(e)?4:Qe(e)?2:0;return u&4&&qf(e)&&(e=lt(e),Ue("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
-Component that was made reactive: `,e)),Je(e,t,r,i,a,u,n,!0)}function n_(e){return e?qf(e)||Mh in e?Pt({},e):e:null}function di(e,t,r=!1){const{props:i,ref:a,patchFlag:n,children:u}=e,c=t?a_(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&i_(c),ref:t&&t.ref?r&&a?ze(a)?a.concat(al(t)):[a,al(t)]:al(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:n===-1&&ze(u)?u.map(o_):u,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Lt?n===-1?16:n|16:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&di(e.ssContent),ssFallback:e.ssFallback&&di(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function o_(e){const t=di(e);return ze(e.children)&&(t.children=e.children.map(o_)),t}function Cv(e=" ",t=0){return Zt(xo,null,e,t)}function W5(e,t){const r=Zt(mo,null,e);return r.staticCount=t,r}function fi(e="",t=!1){return t?(tt(),Pv(rr,null,e)):Zt(rr,null,e)}function Ur(e){return e==null||typeof e=="boolean"?Zt(rr):ze(e)?Zt(Lt,null,e.slice()):typeof e=="object"?no(e):Zt(xo,null,String(e))}function no(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:di(e)}function Bv(e,t){let r=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(ze(t))r=16;else if(typeof t=="object")if(i&65){const a=t.default;a&&(a._c&&(a._d=!1),Bv(e,a()),a._c&&(a._d=!0));return}else{r=32;const a=t._;!a&&!(Mh in t)?t._ctx=tr:a===3&&tr&&(tr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Qe(t)?(t={default:t,_ctx:tr},r=32):(t=String(t),i&64?(r=16,t=[Cv(t)]):r=8);e.children=t,e.shapeFlag|=r}function a_(...e){const t={};for(let r=0;r<e.length;r++){const i=e[r];for(const a in i)if(a==="class")t.class!==i.class&&(t.class=vr([t.class,i.class]));else if(a==="style")t.style=Pn([t.style,i.style]);else if(Ps(a)){const n=t[a],u=i[a];u&&n!==u&&!(ze(n)&&n.includes(u))&&(t[a]=n?[].concat(n,u):u)}else a!==""&&(t[a]=i[a])}return t}function Dr(e,t,r,i=null){Zr(e,t,7,[r,i])}const K5=W2();let V5=0;function s_(e,t,r){const i=e.type,a=(t?t.appContext:e.appContext)||K5,n={uid:V5++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new av(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:V2(i,a),emitsOptions:_2(i,a),emit:null,emitted:null,propsDefaults:$t,inheritAttrs:i.inheritAttrs,ctx:$t,data:$t,props:$t,attrs:$t,slots:$t,refs:$t,setupState:$t,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return n.ctx=X8(n),n.root=t?t.root:n,n.emit=x8.bind(null,n),e.ce&&e.ce(n),n}let er=null;const Fi=()=>er||tr;let Lv,Ba,Cm="__VUE_INSTANCE_SETTERS__";(Ba=Tl()[Cm])||(Ba=Tl()[Cm]=[]),Ba.push(e=>er=e),Lv=e=>{Ba.length>1?Ba.forEach(t=>t(e)):Ba[0](e)};const Eo=e=>{Lv(e),e.scope.on()},yo=()=>{er&&er.scope.off(),Lv(null)},z5=Kn("slot,component");function Z0(e,t){const r=t.isNativeTag||qw;(z5(e)||r(e))&&Ue("Do not use built-in or reserved HTML elements as component id: "+e)}function f_(e){return e.vnode.shapeFlag&4}let fs=!1;function u_(e,t=!1){fs=t;const{props:r,children:i}=e.vnode,a=f_(e);S5(e,r,a,t),C5(e,i);const n=a?G5(e,t):void 0;return fs=!1,n}function G5(e,t){var r;const i=e.type;{if(i.name&&Z0(i.name,e.appContext.config),i.components){const n=Object.keys(i.components);for(let u=0;u<n.length;u++)Z0(n[u],e.appContext.config)}if(i.directives){const n=Object.keys(i.directives);for(let u=0;u<n.length;u++)O2(n[u])}i.compilerOptions&&Nv()&&Ue('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}e.accessCache=Object.create(null),e.proxy=lv(new Proxy(e.ctx,Pf)),J8(e);const{setup:a}=i;if(a){const n=e.setupContext=a.length>1?h_(e):null;Eo(e),ma();const u=en(a,e,0,[Wa(e.props),n]);if(ya(),yo(),ah(u)){if(u.then(yo,yo),t)return u.then(c=>{X0(e,c,t)}).catch(c=>{ba(c,e,0)});if(e.asyncDep=u,!e.suspense){const c=(r=i.name)!=null?r:"Anonymous";Ue(`Component <${c}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else X0(e,u,t)}else l_(e,t)}function X0(e,t,r){Qe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Rt(t)?(Nn(t)&&Ue("setup() should not return VNodes directly - return a render function instead."),e.devtoolsRawSetupState=t,e.setupState=dv(t),Q8(e)):t!==void 0&&Ue(`setup() should return an object. Received: ${t===null?"null":typeof t}`),l_(e,r)}let Lf,J0;function Y5(e){Lf=e,J0=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,Z8))}}const Nv=()=>!Lf;function l_(e,t,r){const i=e.type;if(!e.render){if(!t&&Lf&&!i.render){const a=i.template||Ov(e).template;if(a){bn(e,"compile");const{isCustomElement:n,compilerOptions:u}=e.appContext.config,{delimiters:c,compilerOptions:d}=i,m=Pt(Pt({isCustomElement:n,delimiters:c},u),d);i.render=Lf(a,m),wn(e,"compile")}}e.render=i.render||qr,J0&&J0(e)}Eo(e),ma(),v5(e),ya(),yo(),!i.render&&e.render===qr&&!t&&(!Lf&&i.template?Ue('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):Ue("Component is missing template or render function."))}function Z5(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return Cl(),Tr(e,"get","$attrs"),t[r]},set(){return Ue("setupContext.attrs is readonly."),!1},deleteProperty(){return Ue("setupContext.attrs is readonly."),!1}}))}function X5(e){return e.slotsProxy||(e.slotsProxy=new Proxy(e.slots,{get(t,r){return Tr(e,"get","$slots"),t[r]}}))}function h_(e){return Object.freeze({get attrs(){return Z5(e)},get slots(){return X5(e)},get emit(){return(r,...i)=>e.emit(r,...i)},expose:r=>{if(e.exposed&&Ue("expose() should be called only once per setup()."),r!=null){let i=typeof r;i==="object"&&(ze(r)?i="array":Xt(r)&&(i="ref")),i!=="object"&&Ue(`expose() should be passed a plain object, received ${i}.`)}e.exposed=r||{}}})}function Sh(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(dv(lv(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in ia)return ia[r](e)},has(t,r){return r in t||r in ia}}))}const J5=/(?:^|[-_])(\w)/g,Q5=e=>e.replace(J5,t=>t.toUpperCase()).replace(/[-_]/g,"");function Xf(e,t=!0){return Qe(e)?e.displayName||e.name:e.name||t&&e.__name}function xh(e,t,r=!1){let i=Xf(t);if(!i&&t.__file){const a=t.__file.match(/([^/\\]+)\.\w+$/);a&&(i=a[1])}if(!i&&e&&e.parent){const a=n=>{for(const u in n)if(n[u]===t)return u};i=a(e.components||e.parent.type.components)||a(e.appContext.components)}return i?Q5(i):r?"App":"Anonymous"}function c_(e){return Qe(e)&&"__vccOpts"in e}const Qt=(e,t)=>i8(e,t,fs);function Eh(e,t,r){const i=arguments.length;return i===2?Rt(t)&&!ze(t)?Nn(t)?Zt(e,null,[t]):Zt(e,t):Zt(e,null,t):(i>3?r=Array.prototype.slice.call(arguments,2):i===3&&Nn(r)&&(r=[r]),Zt(e,t,r))}const d_=Symbol.for("v-scx"),p_=()=>{{const e=tn(d_);return e||Ue("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function kc(e){return!!(e&&e.__v_isShallow)}function v_(){if(typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},r={style:"color:#b62e24"},i={style:"color:#9d288c"},a={header(S){return Rt(S)?S.__isVue?["div",e,"VueInstance"]:Xt(S)?["div",{},["span",e,M(S)],"<",c(S.value),">"]:po(S)?["div",{},["span",e,kc(S)?"ShallowReactive":"Reactive"],"<",c(S),`>${Ln(S)?" (readonly)":""}`]:Ln(S)?["div",{},["span",e,kc(S)?"ShallowReadonly":"Readonly"],"<",c(S),">"]:null:null},hasBody(S){return S&&S.__isVue},body(S){if(S&&S.__isVue)return["div",{},...n(S.$)]}};function n(S){const R=[];S.type.props&&S.props&&R.push(u("props",lt(S.props))),S.setupState!==$t&&R.push(u("setup",S.setupState)),S.data!==$t&&R.push(u("data",lt(S.data)));const C=d(S,"computed");C&&R.push(u("computed",C));const P=d(S,"inject");return P&&R.push(u("injected",P)),R.push(["div",{},["span",{style:i.style+";opacity:0.66"},"$ (internal): "],["object",{object:S}]]),R}function u(S,R){return R=Pt({},R),Object.keys(R).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},S],["div",{style:"padding-left:1.25em"},...Object.keys(R).map(C=>["div",{},["span",i,C+": "],c(R[C],!1)])]]:["span",{}]}function c(S,R=!0){return typeof S=="number"?["span",t,S]:typeof S=="string"?["span",r,JSON.stringify(S)]:typeof S=="boolean"?["span",i,S]:Rt(S)?["object",{object:R?lt(S):S}]:["span",r,String(S)]}function d(S,R){const C=S.type;if(Qe(C))return;const P={};for(const k in S.ctx)m(C,k,R)&&(P[k]=S.ctx[k]);return P}function m(S,R,C){const P=S[C];if(ze(P)&&P.includes(R)||Rt(P)&&R in P||S.extends&&m(S.extends,R,C)||S.mixins&&S.mixins.some(k=>m(k,R,C)))return!0}function M(S){return kc(S)?"ShallowRef":S.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(a):window.devtoolsFormatters=[a]}function eR(e,t,r,i){const a=r[i];if(a&&g_(a,e))return a;const n=t();return n.memo=e.slice(),r[i]=n}function g_(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let i=0;i<r.length;i++)if(as(r[i],t[i]))return!1;return ua>0&&Wr&&Wr.push(e),!0}const Q0="3.3.4",tR={createComponentInstance:s_,setupComponent:u_,renderComponentRoot:nl,setCurrentRenderingInstance:zf,isVNode:Nn,normalizeVNode:Ur},rR=tR,iR=null,nR=null,oR="http://www.w3.org/2000/svg",Ko=typeof document<"u"?document:null,Bm=Ko&&Ko.createElement("template"),aR={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,i)=>{const a=t?Ko.createElementNS(oR,e):Ko.createElement(e,r?{is:r}:void 0);return e==="select"&&i&&i.multiple!=null&&a.setAttribute("multiple",i.multiple),a},createText:e=>Ko.createTextNode(e),createComment:e=>Ko.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ko.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,i,a,n){const u=r?r.previousSibling:t.lastChild;if(a&&(a===n||a.nextSibling))for(;t.insertBefore(a.cloneNode(!0),r),!(a===n||!(a=a.nextSibling)););else{Bm.innerHTML=i?`<svg>${e}</svg>`:e;const c=Bm.content;if(i){const d=c.firstChild;for(;d.firstChild;)c.appendChild(d.firstChild);c.removeChild(d)}t.insertBefore(c,r)}return[u?u.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function sR(e,t,r){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function fR(e,t,r){const i=e.style,a=Vt(r);if(r&&!a){if(t&&!Vt(t))for(const n in t)r[n]==null&&ep(i,n,"");for(const n in r)ep(i,n,r[n])}else{const n=i.display;a?t!==r&&(i.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=n)}}const uR=/[^\\];\s*$/,Lm=/\s*!important$/;function ep(e,t,r){if(ze(r))r.forEach(i=>ep(e,t,i));else if(r==null&&(r=""),uR.test(r)&&Ue(`Unexpected semicolon at the end of '${t}' style value: '${r}'`),t.startsWith("--"))e.setProperty(t,r);else{const i=lR(e,t);Lm.test(r)?e.setProperty(Hr(i),r.replace(Lm,""),"important"):e[i]=r}}const Nm=["Webkit","Moz","ms"],$c={};function lR(e,t){const r=$c[t];if(r)return r;let i=Kr(t);if(i!=="filter"&&i in e)return $c[t]=i;i=_o(i);for(let a=0;a<Nm.length;a++){const n=Nm[a]+i;if(n in e)return $c[t]=n}return t}const km="http://www.w3.org/1999/xlink";function hR(e,t,r,i,a){if(i&&t.startsWith("xlink:"))r==null?e.removeAttributeNS(km,t.slice(6,t.length)):e.setAttributeNS(km,t,r);else{const n=dE(t);r==null||n&&!Vw(r)?e.removeAttribute(t):e.setAttribute(t,n?"":r)}}function cR(e,t,r,i,a,n,u){if(t==="innerHTML"||t==="textContent"){i&&u(i,a,n),e[t]=r??"";return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){e._value=r;const m=c==="OPTION"?e.getAttribute("value"):e.value,M=r??"";m!==M&&(e.value=M),r==null&&e.removeAttribute(t);return}let d=!1;if(r===""||r==null){const m=typeof e[t];m==="boolean"?r=Vw(r):r==null&&m==="string"?(r="",d=!0):m==="number"&&(r=0,d=!0)}try{e[t]=r}catch(m){d||Ue(`Failed setting prop "${t}" on <${c.toLowerCase()}>: value ${r} is invalid.`,m)}d&&e.removeAttribute(t)}function Tn(e,t,r,i){e.addEventListener(t,r,i)}function dR(e,t,r,i){e.removeEventListener(t,r,i)}function pR(e,t,r,i,a=null){const n=e._vei||(e._vei={}),u=n[t];if(i&&u)u.value=i;else{const[c,d]=vR(t);if(i){const m=n[t]=yR(i,a);Tn(e,c,m,d)}else u&&(dR(e,c,u,d),n[t]=void 0)}}const $m=/(?:Once|Passive|Capture)$/;function vR(e){let t;if($m.test(e)){t={};let i;for(;i=e.match($m);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Hr(e.slice(2)),t]}let Dc=0;const gR=Promise.resolve(),mR=()=>Dc||(gR.then(()=>Dc=0),Dc=Date.now());function yR(e,t){const r=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=r.attached)return;Zr(bR(i,r.value),t,5,[i])};return r.value=e,r.attached=mR(),r}function bR(e,t){if(ze(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(i=>a=>!a._stopped&&i&&i(a))}else return t}const Dm=/^on[a-z]/,wR=(e,t,r,i,a=!1,n,u,c,d)=>{t==="class"?sR(e,i,a):t==="style"?fR(e,r,i):Ps(t)?xl(t)||pR(e,t,r,i,u):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_R(e,t,i,a))?cR(e,t,i,n,u,c,d):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),hR(e,t,i,a))};function _R(e,t,r,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&Dm.test(t)&&Qe(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Dm.test(t)&&Vt(r)?!1:t in e}function m_(e,t){const r=Bs(e);class i extends Rh{constructor(n){super(r,n,t)}}return i.def=r,i}const MR=e=>m_(e,C_),SR=typeof HTMLElement<"u"?HTMLElement:class{};class Rh extends SR{constructor(t,r={},i){super(),this._def=t,this._props=r,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&i?i(this._createVNode(),this.shadowRoot):(this.shadowRoot&&Ue("Custom element has pre-rendered declarative shadow root but is not defined as hydratable. Use `defineSSRCustomElement`."),this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,uo(()=>{this._connected||(ip(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);new MutationObserver(i=>{for(const a of i)this._setAttr(a.attributeName)}).observe(this,{attributes:!0});const t=(i,a=!1)=>{const{props:n,styles:u}=i;let c;if(n&&!ze(n))for(const d in n){const m=n[d];(m===Number||m&&m.type===Number)&&(d in this._props&&(this._props[d]=Al(this._props[d])),(c||(c=Object.create(null)))[Kr(d)]=!0)}this._numberProps=c,a&&this._resolveProps(i),this._applyStyles(u),this._update()},r=this._def.__asyncLoader;r?r().then(i=>t(i,!0)):t(this._def)}_resolveProps(t){const{props:r}=t,i=ze(r)?r:Object.keys(r||{});for(const a of Object.keys(this))a[0]!=="_"&&i.includes(a)&&this._setProp(a,this[a],!0,!1);for(const a of i.map(Kr))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(n){this._setProp(a,n)}})}_setAttr(t){let r=this.getAttribute(t);const i=Kr(t);this._numberProps&&this._numberProps[i]&&(r=Al(r)),this._setProp(i,r,!1)}_getProp(t){return this._props[t]}_setProp(t,r,i=!0,a=!0){r!==this._props[t]&&(this._props[t]=r,a&&this._instance&&this._update(),i&&(r===!0?this.setAttribute(Hr(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Hr(t),r+""):r||this.removeAttribute(Hr(t))))}_update(){ip(this._createVNode(),this.shadowRoot)}_createVNode(){const t=Zt(this._def,Pt({},this._props));return this._instance||(t.ce=r=>{this._instance=r,r.isCE=!0,r.ceReload=n=>{this._styles&&(this._styles.forEach(u=>this.shadowRoot.removeChild(u)),this._styles.length=0),this._applyStyles(n),this._instance=null,this._update()};const i=(n,u)=>{this.dispatchEvent(new CustomEvent(n,{detail:u}))};r.emit=(n,...u)=>{i(n,u),Hr(n)!==n&&i(Hr(n),u)};let a=this;for(;a=a&&(a.parentNode||a.host);)if(a instanceof Rh){r.parent=a._instance,r.provides=a._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(r=>{const i=document.createElement("style");i.textContent=r,this.shadowRoot.appendChild(i),(this._styles||(this._styles=[])).push(i)})}}function xR(e="$style"){{const t=Fi();if(!t)return Ue("useCssModule must be called inside setup()"),$t;const r=t.type.__cssModules;if(!r)return Ue("Current instance does not have CSS modules injected."),$t;const i=r[e];return i||(Ue(`Current instance does not have CSS module named "${e}".`),$t)}}function ER(e){const t=Fi();if(!t){Ue("useCssVars is called without current active component instance.");return}const r=t.ut=(a=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(n=>rp(n,a))},i=()=>{const a=e(t.proxy);tp(t.subTree,a),r(a)};A2(i),Ns(()=>{const a=new MutationObserver(i);a.observe(t.subTree.el.parentNode,{childList:!0}),_h(()=>a.disconnect())})}function tp(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{tp(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)rp(e.el,t);else if(e.type===Lt)e.children.forEach(r=>tp(r,t));else if(e.type===mo){let{el:r,anchor:i}=e;for(;r&&(rp(r,t),r!==i);)r=r.nextSibling}}function rp(e,t){if(e.nodeType===1){const r=e.style;for(const i in t)r.setProperty(`--${i}`,t[i])}}const Qn="transition",Zs="animation",kv=(e,{slots:t})=>Eh(I2,b_(e),t);kv.displayName="Transition";const y_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},RR=kv.props=Pt({},Ev,y_),jo=(e,t=[])=>{ze(e)?e.forEach(r=>r(...t)):e&&e(...t)},Fm=e=>e?ze(e)?e.some(t=>t.length>1):e.length>1:!1;function b_(e){const t={};for(const o in e)o in y_||(t[o]=e[o]);if(e.css===!1)return t;const{name:r="v",type:i,duration:a,enterFromClass:n=`${r}-enter-from`,enterActiveClass:u=`${r}-enter-active`,enterToClass:c=`${r}-enter-to`,appearFromClass:d=n,appearActiveClass:m=u,appearToClass:M=c,leaveFromClass:S=`${r}-leave-from`,leaveActiveClass:R=`${r}-leave-active`,leaveToClass:C=`${r}-leave-to`}=e,P=AR(a),k=P&&P[0],L=P&&P[1],{onBeforeEnter:I,onEnter:B,onEnterCancelled:H,onLeave:F,onLeaveCancelled:W,onBeforeAppear:Y=I,onAppear:ie=B,onAppearCancelled:J=H}=t,V=(o,f,l)=>{ro(o,f?M:c),ro(o,f?m:u),l&&l()},oe=(o,f)=>{o._isLeaving=!1,ro(o,S),ro(o,C),ro(o,R),f&&f()},_=o=>(f,l)=>{const h=o?ie:B,p=()=>V(f,o,l);jo(h,[f,p]),jm(()=>{ro(f,o?d:n),_n(f,o?M:c),Fm(h)||Um(f,i,k,p)})};return Pt(t,{onBeforeEnter(o){jo(I,[o]),_n(o,n),_n(o,u)},onBeforeAppear(o){jo(Y,[o]),_n(o,d),_n(o,m)},onEnter:_(!1),onAppear:_(!0),onLeave(o,f){o._isLeaving=!0;const l=()=>oe(o,f);_n(o,S),__(),_n(o,R),jm(()=>{o._isLeaving&&(ro(o,S),_n(o,C),Fm(F)||Um(o,i,L,l))}),jo(F,[o,l])},onEnterCancelled(o){V(o,!1),jo(H,[o])},onAppearCancelled(o){V(o,!0),jo(J,[o])},onLeaveCancelled(o){oe(o),jo(W,[o])}})}function AR(e){if(e==null)return null;if(Rt(e))return[Fc(e.enter),Fc(e.leave)];{const t=Fc(e);return[t,t]}}function Fc(e){const t=Al(e);return pv(t,"<transition> explicit duration"),t}function _n(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function ro(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function jm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let TR=0;function Um(e,t,r,i){const a=e._endId=++TR,n=()=>{a===e._endId&&i()};if(r)return setTimeout(n,r);const{type:u,timeout:c,propCount:d}=w_(e,t);if(!u)return i();const m=u+"end";let M=0;const S=()=>{e.removeEventListener(m,R),n()},R=C=>{C.target===e&&++M>=d&&S()};setTimeout(()=>{M<d&&S()},c+1),e.addEventListener(m,R)}function w_(e,t){const r=window.getComputedStyle(e),i=P=>(r[P]||"").split(", "),a=i(`${Qn}Delay`),n=i(`${Qn}Duration`),u=Hm(a,n),c=i(`${Zs}Delay`),d=i(`${Zs}Duration`),m=Hm(c,d);let M=null,S=0,R=0;t===Qn?u>0&&(M=Qn,S=u,R=n.length):t===Zs?m>0&&(M=Zs,S=m,R=d.length):(S=Math.max(u,m),M=S>0?u>m?Qn:Zs:null,R=M?M===Qn?n.length:d.length:0);const C=M===Qn&&/\b(transform|all)(,|$)/.test(i(`${Qn}Property`).toString());return{type:M,timeout:S,propCount:R,hasTransform:C}}function Hm(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,i)=>qm(r)+qm(e[i])))}function qm(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function __(){return document.body.offsetHeight}const M_=new WeakMap,S_=new WeakMap,x_={name:"TransitionGroup",props:Pt({},RR,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=Fi(),i=xv();let a,n;return bh(()=>{if(!a.length)return;const u=e.moveClass||`${e.name||"v"}-move`;if(!LR(a[0].el,r.vnode.el,u))return;a.forEach(PR),a.forEach(CR);const c=a.filter(BR);__(),c.forEach(d=>{const m=d.el,M=m.style;_n(m,u),M.transform=M.webkitTransform=M.transitionDuration="";const S=m._moveCb=R=>{R&&R.target!==m||(!R||/transform$/.test(R.propertyName))&&(m.removeEventListener("transitionend",S),m._moveCb=null,ro(m,u))};m.addEventListener("transitionend",S)})}),()=>{const u=lt(e),c=b_(u);let d=u.tag||Lt;a=n,n=t.default?mh(t.default()):[];for(let m=0;m<n.length;m++){const M=n[m];M.key!=null?fa(M,ss(M,c,i,r)):Ue("<TransitionGroup> children must be keyed.")}if(a)for(let m=0;m<a.length;m++){const M=a[m];fa(M,ss(M,c,i,r)),M_.set(M,M.el.getBoundingClientRect())}return Zt(d,null,n)}}},OR=e=>delete e.mode;x_.props;const IR=x_;function PR(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function CR(e){S_.set(e,e.el.getBoundingClientRect())}function BR(e){const t=M_.get(e),r=S_.get(e),i=t.left-r.left,a=t.top-r.top;if(i||a){const n=e.el.style;return n.transform=n.webkitTransform=`translate(${i}px,${a}px)`,n.transitionDuration="0s",e}}function LR(e,t,r){const i=e.cloneNode();e._vtc&&e._vtc.forEach(u=>{u.split(/\s+/).forEach(c=>c&&i.classList.remove(c))}),r.split(/\s+/).forEach(u=>u&&i.classList.add(u)),i.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(i);const{hasTransform:n}=w_(i);return a.removeChild(i),n}const Ro=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ze(t)?r=>so(t,r):t};function NR(e){e.target.composing=!0}function Wm(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Dl={created(e,{modifiers:{lazy:t,trim:r,number:i}},a){e._assign=Ro(a);const n=i||a.props&&a.props.type==="number";Tn(e,t?"change":"input",u=>{if(u.target.composing)return;let c=e.value;r&&(c=c.trim()),n&&(c=Rl(c)),e._assign(c)}),r&&Tn(e,"change",()=>{e.value=e.value.trim()}),t||(Tn(e,"compositionstart",NR),Tn(e,"compositionend",Wm),Tn(e,"change",Wm))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:i,number:a}},n){if(e._assign=Ro(n),e.composing||document.activeElement===e&&e.type!=="range"&&(r||i&&e.value.trim()===t||(a||e.type==="number")&&Rl(e.value)===t))return;const u=t??"";e.value!==u&&(e.value=u)}},Ah={deep:!0,created(e,t,r){e._assign=Ro(r),Tn(e,"change",()=>{const i=e._modelValue,a=us(e),n=e.checked,u=e._assign;if(ze(i)){const c=fh(i,a),d=c!==-1;if(n&&!d)u(i.concat(a));else if(!n&&d){const m=[...i];m.splice(c,1),u(m)}}else if(ga(i)){const c=new Set(i);n?c.add(a):c.delete(a),u(c)}else u(E_(e,n))})},mounted:Km,beforeUpdate(e,t,r){e._assign=Ro(r),Km(e,t,r)}};function Km(e,{value:t,oldValue:r},i){e._modelValue=t,ze(t)?e.checked=fh(t,i.props.value)>-1:ga(t)?e.checked=t.has(i.props.value):t!==r&&(e.checked=Mo(t,E_(e,!0)))}const $v={created(e,{value:t},r){e.checked=Mo(t,r.props.value),e._assign=Ro(r),Tn(e,"change",()=>{e._assign(us(e))})},beforeUpdate(e,{value:t,oldValue:r},i){e._assign=Ro(i),t!==r&&(e.checked=Mo(t,i.props.value))}},Fl={deep:!0,created(e,{value:t,modifiers:{number:r}},i){const a=ga(t);Tn(e,"change",()=>{const n=Array.prototype.filter.call(e.options,u=>u.selected).map(u=>r?Rl(us(u)):us(u));e._assign(e.multiple?a?new Set(n):n:n[0])}),e._assign=Ro(i)},mounted(e,{value:t}){Vm(e,t)},beforeUpdate(e,t,r){e._assign=Ro(r)},updated(e,{value:t}){Vm(e,t)}};function Vm(e,t){const r=e.multiple;if(r&&!ze(t)&&!ga(t)){Ue(`<select multiple v-model> expects an Array or Set value for its binding, but got ${Object.prototype.toString.call(t).slice(8,-1)}.`);return}for(let i=0,a=e.options.length;i<a;i++){const n=e.options[i],u=us(n);if(r)ze(t)?n.selected=fh(t,u)>-1:n.selected=t.has(u);else if(Mo(us(n),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}function us(e){return"_value"in e?e._value:e.value}function E_(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const R_={created(e,t,r){Vu(e,t,r,null,"created")},mounted(e,t,r){Vu(e,t,r,null,"mounted")},beforeUpdate(e,t,r,i){Vu(e,t,r,i,"beforeUpdate")},updated(e,t,r,i){Vu(e,t,r,i,"updated")}};function A_(e,t){switch(e){case"SELECT":return Fl;case"TEXTAREA":return Dl;default:switch(t){case"checkbox":return Ah;case"radio":return $v;default:return Dl}}}function Vu(e,t,r,i,a){const u=A_(e.tagName,r.props&&r.props.type)[a];u&&u(e,t,r,i)}function kR(){Dl.getSSRProps=({value:e})=>({value:e}),$v.getSSRProps=({value:e},t)=>{if(t.props&&Mo(t.props.value,e))return{checked:!0}},Ah.getSSRProps=({value:e},t)=>{if(ze(e)){if(t.props&&fh(e,t.props.value)>-1)return{checked:!0}}else if(ga(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},R_.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=A_(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}const $R=["ctrl","shift","alt","meta"],DR={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>$R.some(r=>e[`${r}Key`]&&!t.includes(r))},Mn=(e,t)=>(r,...i)=>{for(let a=0;a<t.length;a++){const n=DR[t[a]];if(n&&n(r,t))return}return e(r,...i)},FR={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},jR=(e,t)=>r=>{if(!("key"in r))return;const i=Hr(r.key);if(t.some(a=>a===i||FR[a]===i))return e(r)},T_={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Xs(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:i}){!t!=!r&&(i?t?(i.beforeEnter(e),Xs(e,!0),i.enter(e)):i.leave(e,()=>{Xs(e,!1)}):Xs(e,t))},beforeUnmount(e,{value:t}){Xs(e,t)}};function Xs(e,t){e.style.display=t?e._vod:"none"}function UR(){T_.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const O_=Pt({patchProp:wR},aR);let Nf,zm=!1;function I_(){return Nf||(Nf=X2(O_))}function P_(){return Nf=zm?Nf:J2(O_),zm=!0,Nf}const ip=(...e)=>{I_().render(...e)},C_=(...e)=>{P_().hydrate(...e)},HR=(...e)=>{const t=I_().createApp(...e);B_(t),L_(t);const{mount:r}=t;return t.mount=i=>{const a=N_(i);if(!a)return;const n=t._component;!Qe(n)&&!n.render&&!n.template&&(n.template=a.innerHTML),a.innerHTML="";const u=r(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),u},t},qR=(...e)=>{const t=P_().createApp(...e);B_(t),L_(t);const{mount:r}=t;return t.mount=i=>{const a=N_(i);if(a)return r(a,!0,a instanceof SVGElement)},t};function B_(e){Object.defineProperty(e.config,"isNativeTag",{value:t=>lE(t)||hE(t),writable:!1})}function L_(e){if(Nv()){const t=e.config.isCustomElement;Object.defineProperty(e.config,"isCustomElement",{get(){return t},set(){Ue("The `isCustomElement` config option is deprecated. Use `compilerOptions.isCustomElement` instead.")}});const r=e.config.compilerOptions,i='The `compilerOptions` config option is only respected when using a build of Vue.js that includes the runtime compiler (aka "full build"). Since you are using the runtime-only build, `compilerOptions` must be passed to `@vue/compiler-dom` in the build setup instead.\n- For vue-loader: pass it via vue-loader\'s `compilerOptions` loader option.\n- For vue-cli: see https://cli.vuejs.org/guide/webpack.html#modifying-options-of-a-loader\n- For vite: pass it via @vitejs/plugin-vue options. See https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#example-for-passing-options-to-vuecompiler-sfc';Object.defineProperty(e.config,"compilerOptions",{get(){return Ue(i),r},set(){Ue(i)}})}}function N_(e){if(Vt(e)){const t=document.querySelector(e);return t||Ue(`Failed to mount app: mount target selector "${e}" returned null.`),t}return window.ShadowRoot&&e instanceof window.ShadowRoot&&e.mode==="closed"&&Ue('mounting on a ShadowRoot with `{mode: "closed"}` may lead to unpredictable bugs'),e}let Gm=!1;const WR=()=>{Gm||(Gm=!0,kR(),UR())};function KR(){v_()}KR();const VR=()=>{Ue('Runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".')},zR=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:I2,BaseTransitionPropsValidators:Ev,Comment:rr,EffectScope:av,Fragment:Lt,KeepAlive:H8,ReactiveEffect:uu,Static:mo,Suspense:P8,Teleport:j5,Text:xo,Transition:kv,TransitionGroup:IR,VueElement:Rh,assertNumber:pv,callWithAsyncErrorHandling:Zr,callWithErrorHandling:en,camelize:Kr,capitalize:_o,cloneVNode:di,compatUtils:nR,compile:VR,computed:Qt,createApp:HR,createBlock:Pv,createCommentVNode:fi,createElementBlock:ft,createElementVNode:Je,createHydrationRenderer:J2,createPropsRestProxy:c5,createRenderer:X2,createSSRApp:qR,createSlots:G8,createStaticVNode:W5,createTextVNode:Cv,createVNode:Zt,customRef:XE,defineAsyncComponent:j8,defineComponent:Bs,defineCustomElement:m_,defineEmits:t5,defineExpose:r5,defineModel:o5,defineOptions:i5,defineProps:e5,defineSSRCustomElement:MR,defineSlots:n5,get devtools(){return Bi},effect:yE,effectScope:Gw,getCurrentInstance:Fi,getCurrentScope:Zw,getTransitionRawChildren:mh,guardReactiveProps:n_,h:Eh,handleError:ba,hasInjectionContext:M5,hydrate:C_,initCustomFormatter:v_,initDirectivesForSSR:WR,inject:tn,isMemoSame:g_,isProxy:qf,isReactive:po,isReadonly:Ln,isRef:Xt,isRuntimeOnly:Nv,isShallow:Hf,isVNode:Nn,markRaw:lv,mergeDefaults:l5,mergeModels:h5,mergeProps:a_,nextTick:uo,normalizeClass:vr,normalizeProps:sE,normalizeStyle:Pn,onActivated:C2,onBeforeMount:N2,onBeforeUnmount:wh,onBeforeUpdate:Rv,onDeactivated:B2,onErrorCaptured:F2,onMounted:Ns,onRenderTracked:D2,onRenderTriggered:$2,onScopeDispose:vE,onServerPrefetch:k2,onUnmounted:_h,onUpdated:bh,openBlock:tt,popScopeId:S2,provide:Cf,proxyRefs:dv,pushScopeId:M2,queuePostFlushCb:ph,reactive:No,readonly:uv,ref:mr,registerRuntimeCompiler:Y5,render:ip,renderList:Ii,renderSlot:U0,resolveComponent:K8,resolveDirective:z8,resolveDynamicComponent:V8,resolveFilter:iR,resolveTransitionHooks:ss,setBlockTracking:G0,setDevtoolsHook:yv,setTransitionHooks:fa,shallowReactive:l2,shallowReadonly:Wa,shallowRef:h2,ssrContextKey:d_,ssrUtils:rR,stop:bE,toDisplayString:si,toHandlerKey:xn,toHandlers:Y8,toRaw:lt,toRef:t8,toRefs:JE,toValue:GE,transformVNodeArgs:U5,triggerRef:zE,unref:vo,useAttrs:f5,useCssModule:xR,useCssVars:ER,useModel:u5,useSSRContext:p_,useSlots:s5,useTransitionState:xv,vModelCheckbox:Ah,vModelDynamic:R_,vModelRadio:$v,vModelSelect:Fl,vModelText:Dl,vShow:T_,version:Q0,warn:Ue,watch:lr,watchEffect:R2,watchPostEffect:A2,watchSyncEffect:$8,withAsyncContext:d5,withCtx:wv,withDefaults:a5,withDirectives:ol,withKeys:jR,withMemo:eR,withModifiers:Mn,withScopeId:E8},Symbol.toStringTag,{value:"Module"})),GR=(e,t)=>{const r=e.__vccOpts||e;for(const[i,a]of t)r[i]=a;return r};var du={exports:{}},Dv={exports:{}},Ja=typeof Reflect=="object"?Reflect:null,Ym=Ja&&typeof Ja.apply=="function"?Ja.apply:function(t,r,i){return Function.prototype.apply.call(t,r,i)},sl;Ja&&typeof Ja.ownKeys=="function"?sl=Ja.ownKeys:Object.getOwnPropertySymbols?sl=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:sl=function(t){return Object.getOwnPropertyNames(t)};function YR(e){console&&console.warn&&console.warn(e)}var k_=Number.isNaN||function(t){return t!==t};function Wt(){Wt.init.call(this)}Dv.exports=Wt;Dv.exports.once=QR;Wt.EventEmitter=Wt;Wt.prototype._events=void 0;Wt.prototype._eventsCount=0;Wt.prototype._maxListeners=void 0;var Zm=10;function Th(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Wt,"defaultMaxListeners",{enumerable:!0,get:function(){return Zm},set:function(e){if(typeof e!="number"||e<0||k_(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");Zm=e}});Wt.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Wt.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||k_(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function $_(e){return e._maxListeners===void 0?Wt.defaultMaxListeners:e._maxListeners}Wt.prototype.getMaxListeners=function(){return $_(this)};Wt.prototype.emit=function(t){for(var r=[],i=1;i<arguments.length;i++)r.push(arguments[i]);var a=t==="error",n=this._events;if(n!==void 0)a=a&&n.error===void 0;else if(!a)return!1;if(a){var u;if(r.length>0&&(u=r[0]),u instanceof Error)throw u;var c=new Error("Unhandled error."+(u?" ("+u.message+")":""));throw c.context=u,c}var d=n[t];if(d===void 0)return!1;if(typeof d=="function")Ym(d,this,r);else for(var m=d.length,M=H_(d,m),i=0;i<m;++i)Ym(M[i],this,r);return!0};function D_(e,t,r,i){var a,n,u;if(Th(r),n=e._events,n===void 0?(n=e._events=Object.create(null),e._eventsCount=0):(n.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),n=e._events),u=n[t]),u===void 0)u=n[t]=r,++e._eventsCount;else if(typeof u=="function"?u=n[t]=i?[r,u]:[u,r]:i?u.unshift(r):u.push(r),a=$_(e),a>0&&u.length>a&&!u.warned){u.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+u.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=u.length,YR(c)}return e}Wt.prototype.addListener=function(t,r){return D_(this,t,r,!1)};Wt.prototype.on=Wt.prototype.addListener;Wt.prototype.prependListener=function(t,r){return D_(this,t,r,!0)};function ZR(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function F_(e,t,r){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},a=ZR.bind(i);return a.listener=r,i.wrapFn=a,a}Wt.prototype.once=function(t,r){return Th(r),this.on(t,F_(this,t,r)),this};Wt.prototype.prependOnceListener=function(t,r){return Th(r),this.prependListener(t,F_(this,t,r)),this};Wt.prototype.removeListener=function(t,r){var i,a,n,u,c;if(Th(r),a=this._events,a===void 0)return this;if(i=a[t],i===void 0)return this;if(i===r||i.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,i.listener||r));else if(typeof i!="function"){for(n=-1,u=i.length-1;u>=0;u--)if(i[u]===r||i[u].listener===r){c=i[u].listener,n=u;break}if(n<0)return this;n===0?i.shift():XR(i,n),i.length===1&&(a[t]=i[0]),a.removeListener!==void 0&&this.emit("removeListener",t,c||r)}return this};Wt.prototype.off=Wt.prototype.removeListener;Wt.prototype.removeAllListeners=function(t){var r,i,a;if(i=this._events,i===void 0)return this;if(i.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):i[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete i[t]),this;if(arguments.length===0){var n=Object.keys(i),u;for(a=0;a<n.length;++a)u=n[a],u!=="removeListener"&&this.removeAllListeners(u);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=i[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(a=r.length-1;a>=0;a--)this.removeListener(t,r[a]);return this};function j_(e,t,r){var i=e._events;if(i===void 0)return[];var a=i[t];return a===void 0?[]:typeof a=="function"?r?[a.listener||a]:[a]:r?JR(a):H_(a,a.length)}Wt.prototype.listeners=function(t){return j_(this,t,!0)};Wt.prototype.rawListeners=function(t){return j_(this,t,!1)};Wt.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):U_.call(e,t)};Wt.prototype.listenerCount=U_;function U_(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Wt.prototype.eventNames=function(){return this._eventsCount>0?sl(this._events):[]};function H_(e,t){for(var r=new Array(t),i=0;i<t;++i)r[i]=e[i];return r}function XR(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function JR(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function QR(e,t){return new Promise(function(r,i){function a(u){e.removeListener(t,n),i(u)}function n(){typeof e.removeListener=="function"&&e.removeListener("error",a),r([].slice.call(arguments))}q_(e,t,n,{once:!0}),t!=="error"&&e7(e,a,{once:!0})})}function e7(e,t,r){typeof e.on=="function"&&q_(e,"error",t,r)}function q_(e,t,r,i){if(typeof e.on=="function")i.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function a(n){i.once&&e.removeEventListener(t,a),r(n)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var Or=Dv.exports,Fv=r7,t7=Object.prototype.hasOwnProperty;function r7(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)t7.call(r,i)&&(e[i]=r[i])}return e}var np={exports:{}},W_=Or.EventEmitter,ei={},K_={},V_=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var a=42;t[r]=a;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var n=Object.getOwnPropertySymbols(t);if(n.length!==1||n[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==a||u.enumerable!==!0)return!1}return!0},i7=V_,Oh=function(){return i7()&&!!Symbol.toStringTag},Xm=typeof Symbol<"u"&&Symbol,n7=V_,o7=function(){return typeof Xm!="function"||typeof Symbol!="function"||typeof Xm("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n7()},Jm={foo:{}},a7=Object,s7=function(){return{__proto__:Jm}.foo===Jm.foo&&!({__proto__:null}instanceof a7)},f7="Function.prototype.bind called on incompatible ",jc=Array.prototype.slice,u7=Object.prototype.toString,l7="[object Function]",h7=function(t){var r=this;if(typeof r!="function"||u7.call(r)!==l7)throw new TypeError(f7+r);for(var i=jc.call(arguments,1),a,n=function(){if(this instanceof a){var M=r.apply(this,i.concat(jc.call(arguments)));return Object(M)===M?M:this}else return r.apply(t,i.concat(jc.call(arguments)))},u=Math.max(0,r.length-i.length),c=[],d=0;d<u;d++)c.push("$"+d);if(a=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(n),r.prototype){var m=function(){};m.prototype=r.prototype,a.prototype=new m,m.prototype=null}return a},c7=h7,jv=Function.prototype.bind||c7,d7=jv,p7=d7.call(Function.call,Object.prototype.hasOwnProperty),Mt,ls=SyntaxError,z_=Function,Qa=TypeError,Uc=function(e){try{return z_('"use strict"; return ('+e+").constructor;")()}catch{}},na=Object.getOwnPropertyDescriptor;if(na)try{na({},"")}catch{na=null}var Hc=function(){throw new Qa},v7=na?function(){try{return arguments.callee,Hc}catch{try{return na(arguments,"callee").get}catch{return Hc}}}():Hc,La=o7(),g7=s7(),ur=Object.getPrototypeOf||(g7?function(e){return e.__proto__}:null),Ua={},m7=typeof Uint8Array>"u"||!ur?Mt:ur(Uint8Array),oa={"%AggregateError%":typeof AggregateError>"u"?Mt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Mt:ArrayBuffer,"%ArrayIteratorPrototype%":La&&ur?ur([][Symbol.iterator]()):Mt,"%AsyncFromSyncIteratorPrototype%":Mt,"%AsyncFunction%":Ua,"%AsyncGenerator%":Ua,"%AsyncGeneratorFunction%":Ua,"%AsyncIteratorPrototype%":Ua,"%Atomics%":typeof Atomics>"u"?Mt:Atomics,"%BigInt%":typeof BigInt>"u"?Mt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Mt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Mt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Mt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Mt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Mt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Mt:FinalizationRegistry,"%Function%":z_,"%GeneratorFunction%":Ua,"%Int8Array%":typeof Int8Array>"u"?Mt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Mt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Mt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":La&&ur?ur(ur([][Symbol.iterator]())):Mt,"%JSON%":typeof JSON=="object"?JSON:Mt,"%Map%":typeof Map>"u"?Mt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!La||!ur?Mt:ur(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Mt:Promise,"%Proxy%":typeof Proxy>"u"?Mt:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Mt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Mt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!La||!ur?Mt:ur(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Mt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":La&&ur?ur(""[Symbol.iterator]()):Mt,"%Symbol%":La?Symbol:Mt,"%SyntaxError%":ls,"%ThrowTypeError%":v7,"%TypedArray%":m7,"%TypeError%":Qa,"%Uint8Array%":typeof Uint8Array>"u"?Mt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Mt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Mt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Mt:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Mt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Mt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Mt:WeakSet};if(ur)try{null.error}catch(e){var y7=ur(ur(e));oa["%Error.prototype%"]=y7}var b7=function e(t){var r;if(t==="%AsyncFunction%")r=Uc("async function () {}");else if(t==="%GeneratorFunction%")r=Uc("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Uc("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&ur&&(r=ur(a.prototype))}return oa[t]=r,r},Qm={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},pu=jv,jl=p7,w7=pu.call(Function.call,Array.prototype.concat),_7=pu.call(Function.apply,Array.prototype.splice),e1=pu.call(Function.call,String.prototype.replace),Ul=pu.call(Function.call,String.prototype.slice),M7=pu.call(Function.call,RegExp.prototype.exec),S7=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x7=/\\(\\)?/g,E7=function(t){var r=Ul(t,0,1),i=Ul(t,-1);if(r==="%"&&i!=="%")throw new ls("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new ls("invalid intrinsic syntax, expected opening `%`");var a=[];return e1(t,S7,function(n,u,c,d){a[a.length]=c?e1(d,x7,"$1"):u||n}),a},R7=function(t,r){var i=t,a;if(jl(Qm,i)&&(a=Qm[i],i="%"+a[0]+"%"),jl(oa,i)){var n=oa[i];if(n===Ua&&(n=b7(i)),typeof n>"u"&&!r)throw new Qa("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:n}}throw new ls("intrinsic "+t+" does not exist!")},Uv=function(t,r){if(typeof t!="string"||t.length===0)throw new Qa("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Qa('"allowMissing" argument must be a boolean');if(M7(/^%?[^%]*%?$/,t)===null)throw new ls("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=E7(t),a=i.length>0?i[0]:"",n=R7("%"+a+"%",r),u=n.name,c=n.value,d=!1,m=n.alias;m&&(a=m[0],_7(i,w7([0,1],m)));for(var M=1,S=!0;M<i.length;M+=1){var R=i[M],C=Ul(R,0,1),P=Ul(R,-1);if((C==='"'||C==="'"||C==="`"||P==='"'||P==="'"||P==="`")&&C!==P)throw new ls("property names with quotes must have matching quotes");if((R==="constructor"||!S)&&(d=!0),a+="."+R,u="%"+a+"%",jl(oa,u))c=oa[u];else if(c!=null){if(!(R in c)){if(!r)throw new Qa("base intrinsic for "+t+" exists, but the property is not available.");return}if(na&&M+1>=i.length){var k=na(c,R);S=!!k,S&&"get"in k&&!("originalValue"in k.get)?c=k.get:c=c[R]}else S=jl(c,R),c=c[R];S&&!d&&(oa[u]=c)}}return c},G_={exports:{}};(function(e){var t=jv,r=Uv,i=r("%Function.prototype.apply%"),a=r("%Function.prototype.call%"),n=r("%Reflect.apply%",!0)||t.call(a,i),u=r("%Object.getOwnPropertyDescriptor%",!0),c=r("%Object.defineProperty%",!0),d=r("%Math.max%");if(c)try{c({},"a",{value:1})}catch{c=null}e.exports=function(S){var R=n(t,a,arguments);if(u&&c){var C=u(R,"length");C.configurable&&c(R,"length",{value:1+d(0,S.length-(arguments.length-1))})}return R};var m=function(){return n(t,i,arguments)};c?c(e.exports,"apply",{value:m}):e.exports.apply=m})(G_);var A7=G_.exports,Y_=Uv,Z_=A7,T7=Z_(Y_("String.prototype.indexOf")),Hv=function(t,r){var i=Y_(t,!!r);return typeof i=="function"&&T7(t,".prototype.")>-1?Z_(i):i},O7=Oh(),I7=Hv,op=I7("Object.prototype.toString"),Ih=function(t){return O7&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:op(t)==="[object Arguments]"},X_=function(t){return Ih(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&op(t)!=="[object Array]"&&op(t.callee)==="[object Function]"},P7=function(){return Ih(arguments)}();Ih.isLegacyArguments=X_;var C7=P7?Ih:X_,B7=Object.prototype.toString,L7=Function.prototype.toString,N7=/^\s*(?:function)?\*/,J_=Oh(),qc=Object.getPrototypeOf,k7=function(){if(!J_)return!1;try{return Function("return function*() {}")()}catch{}},Wc,$7=function(t){if(typeof t!="function")return!1;if(N7.test(L7.call(t)))return!0;if(!J_){var r=B7.call(t);return r==="[object GeneratorFunction]"}if(!qc)return!1;if(typeof Wc>"u"){var i=k7();Wc=i?qc(i):!1}return qc(t)===Wc},Q_=Function.prototype.toString,Ka=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ap,fl;if(typeof Ka=="function"&&typeof Object.defineProperty=="function")try{ap=Object.defineProperty({},"length",{get:function(){throw fl}}),fl={},Ka(function(){throw 42},null,ap)}catch(e){e!==fl&&(Ka=null)}else Ka=null;var D7=/^\s*class\b/,sp=function(t){try{var r=Q_.call(t);return D7.test(r)}catch{return!1}},Kc=function(t){try{return sp(t)?!1:(Q_.call(t),!0)}catch{return!1}},ul=Object.prototype.toString,F7="[object Object]",j7="[object Function]",U7="[object GeneratorFunction]",H7="[object HTMLAllCollection]",q7="[object HTML document.all class]",W7="[object HTMLCollection]",K7=typeof Symbol=="function"&&!!Symbol.toStringTag,V7=!(0 in[,]),fp=function(){return!1};if(typeof document=="object"){var z7=document.all;ul.call(z7)===ul.call(document.all)&&(fp=function(t){if((V7||!t)&&(typeof t>"u"||typeof t=="object"))try{var r=ul.call(t);return(r===H7||r===q7||r===W7||r===F7)&&t("")==null}catch{}return!1})}var G7=Ka?function(t){if(fp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ka(t,null,ap)}catch(r){if(r!==fl)return!1}return!sp(t)&&Kc(t)}:function(t){if(fp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(K7)return Kc(t);if(sp(t))return!1;var r=ul.call(t);return r!==j7&&r!==U7&&!/^\[object HTML/.test(r)?!1:Kc(t)},Y7=G7,Z7=Object.prototype.toString,eM=Object.prototype.hasOwnProperty,X7=function(t,r,i){for(var a=0,n=t.length;a<n;a++)eM.call(t,a)&&(i==null?r(t[a],a,t):r.call(i,t[a],a,t))},J7=function(t,r,i){for(var a=0,n=t.length;a<n;a++)i==null?r(t.charAt(a),a,t):r.call(i,t.charAt(a),a,t)},Q7=function(t,r,i){for(var a in t)eM.call(t,a)&&(i==null?r(t[a],a,t):r.call(i,t[a],a,t))},e9=function(t,r,i){if(!Y7(r))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=i),Z7.call(t)==="[object Array]"?X7(t,r,a):typeof t=="string"?J7(t,r,a):Q7(t,r,a)},tM=e9,Vc=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],t9=typeof globalThis>"u"?Ye:globalThis,rM=function(){for(var t=[],r=0;r<Vc.length;r++)typeof t9[Vc[r]]=="function"&&(t[t.length]=Vc[r]);return t},r9=Uv,ll=r9("%Object.getOwnPropertyDescriptor%",!0);if(ll)try{ll([],"length")}catch{ll=null}var iM=ll,nM=tM,i9=rM,qv=Hv,n9=qv("Object.prototype.toString"),oM=Oh(),hl=iM,o9=typeof globalThis>"u"?Ye:globalThis,aM=i9(),a9=qv("Array.prototype.indexOf",!0)||function(t,r){for(var i=0;i<t.length;i+=1)if(t[i]===r)return i;return-1},s9=qv("String.prototype.slice"),sM={},zc=Object.getPrototypeOf;oM&&hl&&zc&&nM(aM,function(e){var t=new o9[e];if(Symbol.toStringTag in t){var r=zc(t),i=hl(r,Symbol.toStringTag);if(!i){var a=zc(r);i=hl(a,Symbol.toStringTag)}sM[e]=i.get}});var f9=function(t){var r=!1;return nM(sM,function(i,a){if(!r)try{r=i.call(t)===a}catch{}}),r},fM=function(t){if(!t||typeof t!="object")return!1;if(!oM||!(Symbol.toStringTag in t)){var r=s9(n9(t),8,-1);return a9(aM,r)>-1}return hl?f9(t):!1},uM=tM,u9=rM,lM=Hv,Gc=iM,l9=lM("Object.prototype.toString"),hM=Oh(),t1=typeof globalThis>"u"?Ye:globalThis,h9=u9(),c9=lM("String.prototype.slice"),cM={},Yc=Object.getPrototypeOf;hM&&Gc&&Yc&&uM(h9,function(e){if(typeof t1[e]=="function"){var t=new t1[e];if(Symbol.toStringTag in t){var r=Yc(t),i=Gc(r,Symbol.toStringTag);if(!i){var a=Yc(r);i=Gc(a,Symbol.toStringTag)}cM[e]=i.get}}});var d9=function(t){var r=!1;return uM(cM,function(i,a){if(!r)try{var n=i.call(t);n===a&&(r=n)}catch{}}),r},p9=fM,v9=function(t){return p9(t)?!hM||!(Symbol.toStringTag in t)?c9(l9(t),8,-1):d9(t):!1};(function(e){var t=C7,r=$7,i=v9,a=fM;function n(z){return z.call.bind(z)}var u=typeof BigInt<"u",c=typeof Symbol<"u",d=n(Object.prototype.toString),m=n(Number.prototype.valueOf),M=n(String.prototype.valueOf),S=n(Boolean.prototype.valueOf);if(u)var R=n(BigInt.prototype.valueOf);if(c)var C=n(Symbol.prototype.valueOf);function P(z,se){if(typeof z!="object")return!1;try{return se(z),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=r,e.isTypedArray=a;function k(z){return typeof Promise<"u"&&z instanceof Promise||z!==null&&typeof z=="object"&&typeof z.then=="function"&&typeof z.catch=="function"}e.isPromise=k;function L(z){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(z):a(z)||$(z)}e.isArrayBufferView=L;function I(z){return i(z)==="Uint8Array"}e.isUint8Array=I;function B(z){return i(z)==="Uint8ClampedArray"}e.isUint8ClampedArray=B;function H(z){return i(z)==="Uint16Array"}e.isUint16Array=H;function F(z){return i(z)==="Uint32Array"}e.isUint32Array=F;function W(z){return i(z)==="Int8Array"}e.isInt8Array=W;function Y(z){return i(z)==="Int16Array"}e.isInt16Array=Y;function ie(z){return i(z)==="Int32Array"}e.isInt32Array=ie;function J(z){return i(z)==="Float32Array"}e.isFloat32Array=J;function V(z){return i(z)==="Float64Array"}e.isFloat64Array=V;function oe(z){return i(z)==="BigInt64Array"}e.isBigInt64Array=oe;function _(z){return i(z)==="BigUint64Array"}e.isBigUint64Array=_;function o(z){return d(z)==="[object Map]"}o.working=typeof Map<"u"&&o(new Map);function f(z){return typeof Map>"u"?!1:o.working?o(z):z instanceof Map}e.isMap=f;function l(z){return d(z)==="[object Set]"}l.working=typeof Set<"u"&&l(new Set);function h(z){return typeof Set>"u"?!1:l.working?l(z):z instanceof Set}e.isSet=h;function p(z){return d(z)==="[object WeakMap]"}p.working=typeof WeakMap<"u"&&p(new WeakMap);function w(z){return typeof WeakMap>"u"?!1:p.working?p(z):z instanceof WeakMap}e.isWeakMap=w;function x(z){return d(z)==="[object WeakSet]"}x.working=typeof WeakSet<"u"&&x(new WeakSet);function g(z){return x(z)}e.isWeakSet=g;function s(z){return d(z)==="[object ArrayBuffer]"}s.working=typeof ArrayBuffer<"u"&&s(new ArrayBuffer);function v(z){return typeof ArrayBuffer>"u"?!1:s.working?s(z):z instanceof ArrayBuffer}e.isArrayBuffer=v;function T(z){return d(z)==="[object DataView]"}T.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&T(new DataView(new ArrayBuffer(1),0,1));function $(z){return typeof DataView>"u"?!1:T.working?T(z):z instanceof DataView}e.isDataView=$;var G=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function ee(z){return d(z)==="[object SharedArrayBuffer]"}function A(z){return typeof G>"u"?!1:(typeof ee.working>"u"&&(ee.working=ee(new G)),ee.working?ee(z):z instanceof G)}e.isSharedArrayBuffer=A;function E(z){return d(z)==="[object AsyncFunction]"}e.isAsyncFunction=E;function U(z){return d(z)==="[object Map Iterator]"}e.isMapIterator=U;function K(z){return d(z)==="[object Set Iterator]"}e.isSetIterator=K;function Z(z){return d(z)==="[object Generator]"}e.isGeneratorObject=Z;function b(z){return d(z)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=b;function y(z){return P(z,m)}e.isNumberObject=y;function O(z){return P(z,M)}e.isStringObject=O;function q(z){return P(z,S)}e.isBooleanObject=q;function X(z){return u&&P(z,R)}e.isBigIntObject=X;function D(z){return c&&P(z,C)}e.isSymbolObject=D;function N(z){return y(z)||O(z)||q(z)||X(z)||D(z)}e.isBoxedPrimitive=N;function j(z){return typeof Uint8Array<"u"&&(v(z)||A(z))}e.isAnyArrayBuffer=j,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(z){Object.defineProperty(e,z,{enumerable:!1,value:function(){throw new Error(z+" is not supported in userland")}})})})(K_);var g9=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"},up={exports:{}};typeof Object.create=="function"?up.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:up.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}};var Ze=up.exports;(function(e){var t=Object.getOwnPropertyDescriptors||function($){for(var G=Object.keys($),ee={},A=0;A<G.length;A++)ee[G[A]]=Object.getOwnPropertyDescriptor($,G[A]);return ee},r=/%[sdj%]/g;e.format=function(T){if(!W(T)){for(var $=[],G=0;G<arguments.length;G++)$.push(u(arguments[G]));return $.join(" ")}for(var G=1,ee=arguments,A=ee.length,E=String(T).replace(r,function(K){if(K==="%%")return"%";if(G>=A)return K;switch(K){case"%s":return String(ee[G++]);case"%d":return Number(ee[G++]);case"%j":try{return JSON.stringify(ee[G++])}catch{return"[Circular]"}default:return K}}),U=ee[G];G<A;U=ee[++G])B(U)||!V(U)?E+=" "+U:E+=" "+u(U);return E},e.deprecate=function(T,$){if(typeof we<"u"&&we.noDeprecation===!0)return T;if(typeof we>"u")return function(){return e.deprecate(T,$).apply(this,arguments)};var G=!1;function ee(){if(!G){if(we.throwDeprecation)throw new Error($);we.traceDeprecation?console.trace($):console.error($),G=!0}return T.apply(this,arguments)}return ee};var i={},a=/^$/;if({}.NODE_DEBUG){var n={}.NODE_DEBUG;n=n.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+n+"$","i")}e.debuglog=function(T){if(T=T.toUpperCase(),!i[T])if(a.test(T)){var $=we.pid;i[T]=function(){var G=e.format.apply(e,arguments);console.error("%s %d: %s",T,$,G)}}else i[T]=function(){};return i[T]};function u(T,$){var G={seen:[],stylize:d};return arguments.length>=3&&(G.depth=arguments[2]),arguments.length>=4&&(G.colors=arguments[3]),I($)?G.showHidden=$:$&&e._extend(G,$),ie(G.showHidden)&&(G.showHidden=!1),ie(G.depth)&&(G.depth=2),ie(G.colors)&&(G.colors=!1),ie(G.customInspect)&&(G.customInspect=!0),G.colors&&(G.stylize=c),M(G,T,G.depth)}e.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function c(T,$){var G=u.styles[$];return G?"\x1B["+u.colors[G][0]+"m"+T+"\x1B["+u.colors[G][1]+"m":T}function d(T,$){return T}function m(T){var $={};return T.forEach(function(G,ee){$[G]=!0}),$}function M(T,$,G){if(T.customInspect&&$&&o($.inspect)&&$.inspect!==e.inspect&&!($.constructor&&$.constructor.prototype===$)){var ee=$.inspect(G,T);return W(ee)||(ee=M(T,ee,G)),ee}var A=S(T,$);if(A)return A;var E=Object.keys($),U=m(E);if(T.showHidden&&(E=Object.getOwnPropertyNames($)),_($)&&(E.indexOf("message")>=0||E.indexOf("description")>=0))return R($);if(E.length===0){if(o($)){var K=$.name?": "+$.name:"";return T.stylize("[Function"+K+"]","special")}if(J($))return T.stylize(RegExp.prototype.toString.call($),"regexp");if(oe($))return T.stylize(Date.prototype.toString.call($),"date");if(_($))return R($)}var Z="",b=!1,y=["{","}"];if(L($)&&(b=!0,y=["[","]"]),o($)){var O=$.name?": "+$.name:"";Z=" [Function"+O+"]"}if(J($)&&(Z=" "+RegExp.prototype.toString.call($)),oe($)&&(Z=" "+Date.prototype.toUTCString.call($)),_($)&&(Z=" "+R($)),E.length===0&&(!b||$.length==0))return y[0]+Z+y[1];if(G<0)return J($)?T.stylize(RegExp.prototype.toString.call($),"regexp"):T.stylize("[Object]","special");T.seen.push($);var q;return b?q=C(T,$,G,U,E):q=E.map(function(X){return P(T,$,G,U,X,b)}),T.seen.pop(),k(q,Z,y)}function S(T,$){if(ie($))return T.stylize("undefined","undefined");if(W($)){var G="'"+JSON.stringify($).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return T.stylize(G,"string")}if(F($))return T.stylize(""+$,"number");if(I($))return T.stylize(""+$,"boolean");if(B($))return T.stylize("null","null")}function R(T){return"["+Error.prototype.toString.call(T)+"]"}function C(T,$,G,ee,A){for(var E=[],U=0,K=$.length;U<K;++U)x($,String(U))?E.push(P(T,$,G,ee,String(U),!0)):E.push("");return A.forEach(function(Z){Z.match(/^\d+$/)||E.push(P(T,$,G,ee,Z,!0))}),E}function P(T,$,G,ee,A,E){var U,K,Z;if(Z=Object.getOwnPropertyDescriptor($,A)||{value:$[A]},Z.get?Z.set?K=T.stylize("[Getter/Setter]","special"):K=T.stylize("[Getter]","special"):Z.set&&(K=T.stylize("[Setter]","special")),x(ee,A)||(U="["+A+"]"),K||(T.seen.indexOf(Z.value)<0?(B(G)?K=M(T,Z.value,null):K=M(T,Z.value,G-1),K.indexOf(`
-`)>-1&&(E?K=K.split(`
-`).map(function(b){return"  "+b}).join(`
-`).slice(2):K=`
-`+K.split(`
-`).map(function(b){return"   "+b}).join(`
-`))):K=T.stylize("[Circular]","special")),ie(U)){if(E&&A.match(/^\d+$/))return K;U=JSON.stringify(""+A),U.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(U=U.slice(1,-1),U=T.stylize(U,"name")):(U=U.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),U=T.stylize(U,"string"))}return U+": "+K}function k(T,$,G){var ee=T.reduce(function(A,E){return E.indexOf(`
-`)>=0,A+E.replace(/\u001b\[\d\d?m/g,"").length+1},0);return ee>60?G[0]+($===""?"":$+`
- `)+" "+T.join(`,
-  `)+" "+G[1]:G[0]+$+" "+T.join(", ")+" "+G[1]}e.types=K_;function L(T){return Array.isArray(T)}e.isArray=L;function I(T){return typeof T=="boolean"}e.isBoolean=I;function B(T){return T===null}e.isNull=B;function H(T){return T==null}e.isNullOrUndefined=H;function F(T){return typeof T=="number"}e.isNumber=F;function W(T){return typeof T=="string"}e.isString=W;function Y(T){return typeof T=="symbol"}e.isSymbol=Y;function ie(T){return T===void 0}e.isUndefined=ie;function J(T){return V(T)&&l(T)==="[object RegExp]"}e.isRegExp=J,e.types.isRegExp=J;function V(T){return typeof T=="object"&&T!==null}e.isObject=V;function oe(T){return V(T)&&l(T)==="[object Date]"}e.isDate=oe,e.types.isDate=oe;function _(T){return V(T)&&(l(T)==="[object Error]"||T instanceof Error)}e.isError=_,e.types.isNativeError=_;function o(T){return typeof T=="function"}e.isFunction=o;function f(T){return T===null||typeof T=="boolean"||typeof T=="number"||typeof T=="string"||typeof T=="symbol"||typeof T>"u"}e.isPrimitive=f,e.isBuffer=g9;function l(T){return Object.prototype.toString.call(T)}function h(T){return T<10?"0"+T.toString(10):T.toString(10)}var p=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function w(){var T=new Date,$=[h(T.getHours()),h(T.getMinutes()),h(T.getSeconds())].join(":");return[T.getDate(),p[T.getMonth()],$].join(" ")}e.log=function(){console.log("%s - %s",w(),e.format.apply(e,arguments))},e.inherits=Ze,e._extend=function(T,$){if(!$||!V($))return T;for(var G=Object.keys($),ee=G.length;ee--;)T[G[ee]]=$[G[ee]];return T};function x(T,$){return Object.prototype.hasOwnProperty.call(T,$)}var g=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function($){if(typeof $!="function")throw new TypeError('The "original" argument must be of type Function');if(g&&$[g]){var G=$[g];if(typeof G!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(G,g,{value:G,enumerable:!1,writable:!1,configurable:!0}),G}function G(){for(var ee,A,E=new Promise(function(Z,b){ee=Z,A=b}),U=[],K=0;K<arguments.length;K++)U.push(arguments[K]);U.push(function(Z,b){Z?A(Z):ee(b)});try{$.apply(this,U)}catch(Z){A(Z)}return E}return Object.setPrototypeOf(G,Object.getPrototypeOf($)),g&&Object.defineProperty(G,g,{value:G,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(G,t($))},e.promisify.custom=g;function s(T,$){if(!T){var G=new Error("Promise was rejected with a falsy value");G.reason=T,T=G}return $(T)}function v(T){if(typeof T!="function")throw new TypeError('The "original" argument must be of type Function');function $(){for(var G=[],ee=0;ee<arguments.length;ee++)G.push(arguments[ee]);var A=G.pop();if(typeof A!="function")throw new TypeError("The last argument must be of type Function");var E=this,U=function(){return A.apply(E,arguments)};T.apply(this,G).then(function(K){we.nextTick(U.bind(null,null,K))},function(K){we.nextTick(s.bind(null,K,U))})}return Object.setPrototypeOf($,Object.getPrototypeOf(T)),Object.defineProperties($,t(T)),$}e.callbackify=v})(ei);var Zc,r1;function m9(){if(r1)return Zc;r1=1;function e(P,k){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(P);k&&(I=I.filter(function(B){return Object.getOwnPropertyDescriptor(P,B).enumerable})),L.push.apply(L,I)}return L}function t(P){for(var k=1;k<arguments.length;k++){var L=arguments[k]!=null?arguments[k]:{};k%2?e(Object(L),!0).forEach(function(I){r(P,I,L[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):e(Object(L)).forEach(function(I){Object.defineProperty(P,I,Object.getOwnPropertyDescriptor(L,I))})}return P}function r(P,k,L){return k=u(k),k in P?Object.defineProperty(P,k,{value:L,enumerable:!0,configurable:!0,writable:!0}):P[k]=L,P}function i(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}function a(P,k){for(var L=0;L<k.length;L++){var I=k[L];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(P,u(I.key),I)}}function n(P,k,L){return k&&a(P.prototype,k),L&&a(P,L),Object.defineProperty(P,"prototype",{writable:!1}),P}function u(P){var k=c(P,"string");return typeof k=="symbol"?k:String(k)}function c(P,k){if(typeof P!="object"||P===null)return P;var L=P[Symbol.toPrimitive];if(L!==void 0){var I=L.call(P,k||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(P)}var d=ke,m=d.Buffer,M=ei,S=M.inspect,R=S&&S.custom||"inspect";function C(P,k,L){m.prototype.copy.call(P,k,L)}return Zc=function(){function P(){i(this,P),this.head=null,this.tail=null,this.length=0}return n(P,[{key:"push",value:function(L){var I={data:L,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(L){var I={data:L,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var I=this.head,B=""+I.data;I=I.next;)B+=L+I.data;return B}},{key:"concat",value:function(L){if(this.length===0)return m.alloc(0);for(var I=m.allocUnsafe(L>>>0),B=this.head,H=0;B;)C(B.data,I,H),H+=B.data.length,B=B.next;return I}},{key:"consume",value:function(L,I){var B;return L<this.head.data.length?(B=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?B=this.shift():B=I?this._getString(L):this._getBuffer(L),B}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var I=this.head,B=1,H=I.data;for(L-=H.length;I=I.next;){var F=I.data,W=L>F.length?F.length:L;if(W===F.length?H+=F:H+=F.slice(0,L),L-=W,L===0){W===F.length?(++B,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=F.slice(W));break}++B}return this.length-=B,H}},{key:"_getBuffer",value:function(L){var I=m.allocUnsafe(L),B=this.head,H=1;for(B.data.copy(I),L-=B.data.length;B=B.next;){var F=B.data,W=L>F.length?F.length:L;if(F.copy(I,I.length-L,0,W),L-=W,L===0){W===F.length?(++H,B.next?this.head=B.next:this.head=this.tail=null):(this.head=B,B.data=F.slice(W));break}++H}return this.length-=H,I}},{key:R,value:function(L,I){return S(this,t(t({},I),{},{depth:0,customInspect:!1}))}}]),P}(),Zc}function y9(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,we.nextTick(lp,this,e)):we.nextTick(lp,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(n){!t&&n?r._writableState?r._writableState.errorEmitted?we.nextTick(cl,r):(r._writableState.errorEmitted=!0,we.nextTick(i1,r,n)):we.nextTick(i1,r,n):t?(we.nextTick(cl,r),t(n)):we.nextTick(cl,r)}),this)}function i1(e,t){lp(e,t),cl(e)}function cl(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function b9(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function lp(e,t){e.emit("error",t)}function w9(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}var dM={destroy:y9,undestroy:b9,errorOrDestroy:w9},_a={};function _9(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var pM={};function yi(e,t,r){r||(r=Error);function i(n,u,c){return typeof t=="string"?t:t(n,u,c)}var a=function(n){_9(u,n);function u(c,d,m){return n.call(this,i(c,d,m))||this}return u}(r);a.prototype.name=r.name,a.prototype.code=e,pM[e]=a}function n1(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function M9(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function S9(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function x9(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}yi("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);yi("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&M9(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var a;if(S9(e," argument"))a="The ".concat(e," ").concat(i," ").concat(n1(t,"type"));else{var n=x9(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(n," ").concat(i," ").concat(n1(t,"type"))}return a+=". Received type ".concat(typeof r),a},TypeError);yi("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");yi("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});yi("ERR_STREAM_PREMATURE_CLOSE","Premature close");yi("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});yi("ERR_MULTIPLE_CALLBACK","Callback called multiple times");yi("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");yi("ERR_STREAM_WRITE_AFTER_END","write after end");yi("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);yi("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);yi("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");_a.codes=pM;var E9=_a.codes.ERR_INVALID_OPT_VALUE;function R9(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function A9(e,t,r,i){var a=R9(t,i,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var n=i?r:"highWaterMark";throw new E9(n,a)}return Math.floor(a)}return e.objectMode?16:16*1024}var vM={getHighWaterMark:A9},ks=T9;function T9(e,t){if(Xc("noDeprecation"))return e;var r=!1;function i(){if(!r){if(Xc("throwDeprecation"))throw new Error(t);Xc("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function Xc(e){try{if(!Ye.localStorage)return!1}catch{return!1}var t=Ye.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var Jc,o1;function gM(){if(o1)return Jc;o1=1,Jc=J;function e(A){var E=this;this.next=null,this.entry=null,this.finish=function(){ee(E,A)}}var t;J.WritableState=Y;var r={deprecate:ks},i=W_,a=ke.Buffer,n=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(A){return a.from(A)}function c(A){return a.isBuffer(A)||A instanceof n}var d=dM,m=vM,M=m.getHighWaterMark,S=_a.codes,R=S.ERR_INVALID_ARG_TYPE,C=S.ERR_METHOD_NOT_IMPLEMENTED,P=S.ERR_MULTIPLE_CALLBACK,k=S.ERR_STREAM_CANNOT_PIPE,L=S.ERR_STREAM_DESTROYED,I=S.ERR_STREAM_NULL_VALUES,B=S.ERR_STREAM_WRITE_AFTER_END,H=S.ERR_UNKNOWN_ENCODING,F=d.errorOrDestroy;Ze(J,i);function W(){}function Y(A,E,U){t=t||hs(),A=A||{},typeof U!="boolean"&&(U=E instanceof t),this.objectMode=!!A.objectMode,U&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=M(this,A,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=A.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){p(E,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}Y.prototype.getBuffer=function(){for(var E=this.bufferedRequest,U=[];E;)U.push(E),E=E.next;return U},function(){try{Object.defineProperty(Y.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ie;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ie=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(E){return ie.call(this,E)?!0:this!==J?!1:E&&E._writableState instanceof Y}})):ie=function(E){return E instanceof this};function J(A){t=t||hs();var E=this instanceof t;if(!E&&!ie.call(J,this))return new J(A);this._writableState=new Y(A,this,E),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),i.call(this)}J.prototype.pipe=function(){F(this,new k)};function V(A,E){var U=new B;F(A,U),we.nextTick(E,U)}function oe(A,E,U,K){var Z;return U===null?Z=new I:typeof U!="string"&&!E.objectMode&&(Z=new R("chunk",["string","Buffer"],U)),Z?(F(A,Z),we.nextTick(K,Z),!1):!0}J.prototype.write=function(A,E,U){var K=this._writableState,Z=!1,b=!K.objectMode&&c(A);return b&&!a.isBuffer(A)&&(A=u(A)),typeof E=="function"&&(U=E,E=null),b?E="buffer":E||(E=K.defaultEncoding),typeof U!="function"&&(U=W),K.ending?V(this,U):(b||oe(this,K,A,U))&&(K.pendingcb++,Z=o(this,K,b,A,E,U)),Z},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&g(this,A))},J.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new H(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _(A,E,U){return!A.objectMode&&A.decodeStrings!==!1&&typeof E=="string"&&(E=a.from(E,U)),E}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(A,E,U,K,Z,b){if(!U){var y=_(E,K,Z);K!==y&&(U=!0,Z="buffer",K=y)}var O=E.objectMode?1:K.length;E.length+=O;var q=E.length<E.highWaterMark;if(q||(E.needDrain=!0),E.writing||E.corked){var X=E.lastBufferedRequest;E.lastBufferedRequest={chunk:K,encoding:Z,isBuf:U,callback:b,next:null},X?X.next=E.lastBufferedRequest:E.bufferedRequest=E.lastBufferedRequest,E.bufferedRequestCount+=1}else f(A,E,!1,O,K,Z,b);return q}function f(A,E,U,K,Z,b,y){E.writelen=K,E.writecb=y,E.writing=!0,E.sync=!0,E.destroyed?E.onwrite(new L("write")):U?A._writev(Z,E.onwrite):A._write(Z,b,E.onwrite),E.sync=!1}function l(A,E,U,K,Z){--E.pendingcb,U?(we.nextTick(Z,K),we.nextTick($,A,E),A._writableState.errorEmitted=!0,F(A,K)):(Z(K),A._writableState.errorEmitted=!0,F(A,K),$(A,E))}function h(A){A.writing=!1,A.writecb=null,A.length-=A.writelen,A.writelen=0}function p(A,E){var U=A._writableState,K=U.sync,Z=U.writecb;if(typeof Z!="function")throw new P;if(h(U),E)l(A,U,K,E,Z);else{var b=s(U)||A.destroyed;!b&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&g(A,U),K?we.nextTick(w,A,U,b,Z):w(A,U,b,Z)}}function w(A,E,U,K){U||x(A,E),E.pendingcb--,K(),$(A,E)}function x(A,E){E.length===0&&E.needDrain&&(E.needDrain=!1,A.emit("drain"))}function g(A,E){E.bufferProcessing=!0;var U=E.bufferedRequest;if(A._writev&&U&&U.next){var K=E.bufferedRequestCount,Z=new Array(K),b=E.corkedRequestsFree;b.entry=U;for(var y=0,O=!0;U;)Z[y]=U,U.isBuf||(O=!1),U=U.next,y+=1;Z.allBuffers=O,f(A,E,!0,E.length,Z,"",b.finish),E.pendingcb++,E.lastBufferedRequest=null,b.next?(E.corkedRequestsFree=b.next,b.next=null):E.corkedRequestsFree=new e(E),E.bufferedRequestCount=0}else{for(;U;){var q=U.chunk,X=U.encoding,D=U.callback,N=E.objectMode?1:q.length;if(f(A,E,!1,N,q,X,D),U=U.next,E.bufferedRequestCount--,E.writing)break}U===null&&(E.lastBufferedRequest=null)}E.bufferedRequest=U,E.bufferProcessing=!1}J.prototype._write=function(A,E,U){U(new C("_write()"))},J.prototype._writev=null,J.prototype.end=function(A,E,U){var K=this._writableState;return typeof A=="function"?(U=A,A=null,E=null):typeof E=="function"&&(U=E,E=null),A!=null&&this.write(A,E),K.corked&&(K.corked=1,this.uncork()),K.ending||G(this,K,U),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function v(A,E){A._final(function(U){E.pendingcb--,U&&F(A,U),E.prefinished=!0,A.emit("prefinish"),$(A,E)})}function T(A,E){!E.prefinished&&!E.finalCalled&&(typeof A._final=="function"&&!E.destroyed?(E.pendingcb++,E.finalCalled=!0,we.nextTick(v,A,E)):(E.prefinished=!0,A.emit("prefinish")))}function $(A,E){var U=s(E);if(U&&(T(A,E),E.pendingcb===0&&(E.finished=!0,A.emit("finish"),E.autoDestroy))){var K=A._readableState;(!K||K.autoDestroy&&K.endEmitted)&&A.destroy()}return U}function G(A,E,U){E.ending=!0,$(A,E),U&&(E.finished?we.nextTick(U):A.once("finish",U)),E.ended=!0,A.writable=!1}function ee(A,E,U){var K=A.entry;for(A.entry=null;K;){var Z=K.callback;E.pendingcb--,Z(U),K=K.next}E.corkedRequestsFree.next=A}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),J.prototype.destroy=d.destroy,J.prototype._undestroy=d.undestroy,J.prototype._destroy=function(A,E){E(A)},Jc}var Qc,a1;function hs(){if(a1)return Qc;a1=1;var e=Object.keys||function(m){var M=[];for(var S in m)M.push(S);return M};Qc=u;var t=yM(),r=gM();Ze(u,t);for(var i=e(r.prototype),a=0;a<i.length;a++){var n=i[a];u.prototype[n]||(u.prototype[n]=r.prototype[n])}function u(m){if(!(this instanceof u))return new u(m);t.call(this,m),r.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||we.nextTick(d,this)}function d(m){m.end()}return Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(M){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=M,this._writableState.destroyed=M)}}),Qc}var ed={},zu={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var s1;function pt(){return s1||(s1=1,function(e,t){var r=ke,i=r.Buffer;function a(u,c){for(var d in u)c[d]=u[d]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=n);function n(u,c,d){return i(u,c,d)}n.prototype=Object.create(i.prototype),a(i,n),n.from=function(u,c,d){if(typeof u=="number")throw new TypeError("Argument must not be a number");return i(u,c,d)},n.alloc=function(u,c,d){if(typeof u!="number")throw new TypeError("Argument must be a number");var m=i(u);return c!==void 0?typeof d=="string"?m.fill(c,d):m.fill(c):m.fill(0),m},n.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return i(u)},n.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(u)}}(zu,zu.exports)),zu.exports}var f1;function Xr(){if(f1)return ed;f1=1;var e=pt().Buffer,t=e.isEncoding||function(I){switch(I=""+I,I&&I.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(I){if(!I)return"utf8";for(var B;;)switch(I){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return I;default:if(B)return;I=(""+I).toLowerCase(),B=!0}}function i(I){var B=r(I);if(typeof B!="string"&&(e.isEncoding===t||!t(I)))throw new Error("Unknown encoding: "+I);return B||I}ed.StringDecoder=a;function a(I){this.encoding=i(I);var B;switch(this.encoding){case"utf16le":this.text=S,this.end=R,B=4;break;case"utf8":this.fillLast=d,B=4;break;case"base64":this.text=C,this.end=P,B=3;break;default:this.write=k,this.end=L;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(B)}a.prototype.write=function(I){if(I.length===0)return"";var B,H;if(this.lastNeed){if(B=this.fillLast(I),B===void 0)return"";H=this.lastNeed,this.lastNeed=0}else H=0;return H<I.length?B?B+this.text(I,H):this.text(I,H):B||""},a.prototype.end=M,a.prototype.text=m,a.prototype.fillLast=function(I){if(this.lastNeed<=I.length)return I.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);I.copy(this.lastChar,this.lastTotal-this.lastNeed,0,I.length),this.lastNeed-=I.length};function n(I){return I<=127?0:I>>5===6?2:I>>4===14?3:I>>3===30?4:I>>6===2?-1:-2}function u(I,B,H){var F=B.length-1;if(F<H)return 0;var W=n(B[F]);return W>=0?(W>0&&(I.lastNeed=W-1),W):--F<H||W===-2?0:(W=n(B[F]),W>=0?(W>0&&(I.lastNeed=W-2),W):--F<H||W===-2?0:(W=n(B[F]),W>=0?(W>0&&(W===2?W=0:I.lastNeed=W-3),W):0))}function c(I,B,H){if((B[0]&192)!==128)return I.lastNeed=0,"�";if(I.lastNeed>1&&B.length>1){if((B[1]&192)!==128)return I.lastNeed=1,"�";if(I.lastNeed>2&&B.length>2&&(B[2]&192)!==128)return I.lastNeed=2,"�"}}function d(I){var B=this.lastTotal-this.lastNeed,H=c(this,I);if(H!==void 0)return H;if(this.lastNeed<=I.length)return I.copy(this.lastChar,B,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);I.copy(this.lastChar,B,0,I.length),this.lastNeed-=I.length}function m(I,B){var H=u(this,I,B);if(!this.lastNeed)return I.toString("utf8",B);this.lastTotal=H;var F=I.length-(H-this.lastNeed);return I.copy(this.lastChar,0,F),I.toString("utf8",B,F)}function M(I){var B=I&&I.length?this.write(I):"";return this.lastNeed?B+"�":B}function S(I,B){if((I.length-B)%2===0){var H=I.toString("utf16le",B);if(H){var F=H.charCodeAt(H.length-1);if(F>=55296&&F<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1],H.slice(0,-1)}return H}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=I[I.length-1],I.toString("utf16le",B,I.length-1)}function R(I){var B=I&&I.length?this.write(I):"";if(this.lastNeed){var H=this.lastTotal-this.lastNeed;return B+this.lastChar.toString("utf16le",0,H)}return B}function C(I,B){var H=(I.length-B)%3;return H===0?I.toString("base64",B):(this.lastNeed=3-H,this.lastTotal=3,H===1?this.lastChar[0]=I[I.length-1]:(this.lastChar[0]=I[I.length-2],this.lastChar[1]=I[I.length-1]),I.toString("base64",B,I.length-H))}function P(I){var B=I&&I.length?this.write(I):"";return this.lastNeed?B+this.lastChar.toString("base64",0,3-this.lastNeed):B}function k(I){return I.toString(this.encoding)}function L(I){return I&&I.length?this.write(I):""}return ed}var u1=_a.codes.ERR_STREAM_PREMATURE_CLOSE;function O9(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];e.apply(this,i)}}}function I9(){}function P9(e){return e.setHeader&&typeof e.abort=="function"}function mM(e,t,r){if(typeof t=="function")return mM(e,null,t);t||(t={}),r=O9(r||I9);var i=t.readable||t.readable!==!1&&e.readable,a=t.writable||t.writable!==!1&&e.writable,n=function(){e.writable||c()},u=e._writableState&&e._writableState.finished,c=function(){a=!1,u=!0,i||r.call(e)},d=e._readableState&&e._readableState.endEmitted,m=function(){i=!1,d=!0,a||r.call(e)},M=function(P){r.call(e,P)},S=function(){var P;if(i&&!d)return(!e._readableState||!e._readableState.ended)&&(P=new u1),r.call(e,P);if(a&&!u)return(!e._writableState||!e._writableState.ended)&&(P=new u1),r.call(e,P)},R=function(){e.req.on("finish",c)};return P9(e)?(e.on("complete",c),e.on("abort",S),e.req?R():e.on("request",R)):a&&!e._writableState&&(e.on("end",n),e.on("close",n)),e.on("end",m),e.on("finish",c),t.error!==!1&&e.on("error",M),e.on("close",S),function(){e.removeListener("complete",c),e.removeListener("abort",S),e.removeListener("request",R),e.req&&e.req.removeListener("finish",c),e.removeListener("end",n),e.removeListener("close",n),e.removeListener("finish",c),e.removeListener("end",m),e.removeListener("error",M),e.removeListener("close",S)}}var Wv=mM,td,l1;function C9(){if(l1)return td;l1=1;var e;function t(H,F,W){return F=r(F),F in H?Object.defineProperty(H,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):H[F]=W,H}function r(H){var F=i(H,"string");return typeof F=="symbol"?F:String(F)}function i(H,F){if(typeof H!="object"||H===null)return H;var W=H[Symbol.toPrimitive];if(W!==void 0){var Y=W.call(H,F||"default");if(typeof Y!="object")return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(H)}var a=Wv,n=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),M=Symbol("handlePromise"),S=Symbol("stream");function R(H,F){return{value:H,done:F}}function C(H){var F=H[n];if(F!==null){var W=H[S].read();W!==null&&(H[m]=null,H[n]=null,H[u]=null,F(R(W,!1)))}}function P(H){we.nextTick(C,H)}function k(H,F){return function(W,Y){H.then(function(){if(F[d]){W(R(void 0,!0));return}F[M](W,Y)},Y)}}var L=Object.getPrototypeOf(function(){}),I=Object.setPrototypeOf((e={get stream(){return this[S]},next:function(){var F=this,W=this[c];if(W!==null)return Promise.reject(W);if(this[d])return Promise.resolve(R(void 0,!0));if(this[S].destroyed)return new Promise(function(V,oe){we.nextTick(function(){F[c]?oe(F[c]):V(R(void 0,!0))})});var Y=this[m],ie;if(Y)ie=new Promise(k(Y,this));else{var J=this[S].read();if(J!==null)return Promise.resolve(R(J,!1));ie=new Promise(this[M])}return this[m]=ie,ie}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var F=this;return new Promise(function(W,Y){F[S].destroy(null,function(ie){if(ie){Y(ie);return}W(R(void 0,!0))})})}),e),L),B=function(F){var W,Y=Object.create(I,(W={},t(W,S,{value:F,writable:!0}),t(W,n,{value:null,writable:!0}),t(W,u,{value:null,writable:!0}),t(W,c,{value:null,writable:!0}),t(W,d,{value:F._readableState.endEmitted,writable:!0}),t(W,M,{value:function(J,V){var oe=Y[S].read();oe?(Y[m]=null,Y[n]=null,Y[u]=null,J(R(oe,!1))):(Y[n]=J,Y[u]=V)},writable:!0}),W));return Y[m]=null,a(F,function(ie){if(ie&&ie.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=Y[u];J!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,J(ie)),Y[c]=ie;return}var V=Y[n];V!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,V(R(void 0,!0))),Y[d]=!0}),F.on("readable",P.bind(null,Y)),Y};return td=B,td}var rd,h1;function B9(){return h1||(h1=1,rd=function(){throw new Error("Readable.from is not available in the browser")}),rd}var id,c1;function yM(){if(c1)return id;c1=1,id=V;var e;V.ReadableState=J,Or.EventEmitter;var t=function(y,O){return y.listeners(O).length},r=W_,i=ke.Buffer,a=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function n(b){return i.from(b)}function u(b){return i.isBuffer(b)||b instanceof a}var c=ei,d;c&&c.debuglog?d=c.debuglog("stream"):d=function(){};var m=m9(),M=dM,S=vM,R=S.getHighWaterMark,C=_a.codes,P=C.ERR_INVALID_ARG_TYPE,k=C.ERR_STREAM_PUSH_AFTER_EOF,L=C.ERR_METHOD_NOT_IMPLEMENTED,I=C.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,B,H,F;Ze(V,r);var W=M.errorOrDestroy,Y=["error","close","destroy","pause","resume"];function ie(b,y,O){if(typeof b.prependListener=="function")return b.prependListener(y,O);!b._events||!b._events[y]?b.on(y,O):Array.isArray(b._events[y])?b._events[y].unshift(O):b._events[y]=[O,b._events[y]]}function J(b,y,O){e=e||hs(),b=b||{},typeof O!="boolean"&&(O=y instanceof e),this.objectMode=!!b.objectMode,O&&(this.objectMode=this.objectMode||!!b.readableObjectMode),this.highWaterMark=R(this,b,"readableHighWaterMark",O),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=b.emitClose!==!1,this.autoDestroy=!!b.autoDestroy,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(B||(B=Xr().StringDecoder),this.decoder=new B(b.encoding),this.encoding=b.encoding)}function V(b){if(e=e||hs(),!(this instanceof V))return new V(b);var y=this instanceof e;this._readableState=new J(b,this,y),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),r.call(this)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(y){this._readableState&&(this._readableState.destroyed=y)}}),V.prototype.destroy=M.destroy,V.prototype._undestroy=M.undestroy,V.prototype._destroy=function(b,y){y(b)},V.prototype.push=function(b,y){var O=this._readableState,q;return O.objectMode?q=!0:typeof b=="string"&&(y=y||O.defaultEncoding,y!==O.encoding&&(b=i.from(b,y),y=""),q=!0),oe(this,b,y,!1,q)},V.prototype.unshift=function(b){return oe(this,b,null,!0,!1)};function oe(b,y,O,q,X){d("readableAddChunk",y);var D=b._readableState;if(y===null)D.reading=!1,p(b,D);else{var N;if(X||(N=o(D,y)),N)W(b,N);else if(D.objectMode||y&&y.length>0)if(typeof y!="string"&&!D.objectMode&&Object.getPrototypeOf(y)!==i.prototype&&(y=n(y)),q)D.endEmitted?W(b,new I):_(b,D,y,!0);else if(D.ended)W(b,new k);else{if(D.destroyed)return!1;D.reading=!1,D.decoder&&!O?(y=D.decoder.write(y),D.objectMode||y.length!==0?_(b,D,y,!1):g(b,D)):_(b,D,y,!1)}else q||(D.reading=!1,g(b,D))}return!D.ended&&(D.length<D.highWaterMark||D.length===0)}function _(b,y,O,q){y.flowing&&y.length===0&&!y.sync?(y.awaitDrain=0,b.emit("data",O)):(y.length+=y.objectMode?1:O.length,q?y.buffer.unshift(O):y.buffer.push(O),y.needReadable&&w(b)),g(b,y)}function o(b,y){var O;return!u(y)&&typeof y!="string"&&y!==void 0&&!b.objectMode&&(O=new P("chunk",["string","Buffer","Uint8Array"],y)),O}V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(b){B||(B=Xr().StringDecoder);var y=new B(b);this._readableState.decoder=y,this._readableState.encoding=this._readableState.decoder.encoding;for(var O=this._readableState.buffer.head,q="";O!==null;)q+=y.write(O.data),O=O.next;return this._readableState.buffer.clear(),q!==""&&this._readableState.buffer.push(q),this._readableState.length=q.length,this};var f=1073741824;function l(b){return b>=f?b=f:(b--,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,b|=b>>>16,b++),b}function h(b,y){return b<=0||y.length===0&&y.ended?0:y.objectMode?1:b!==b?y.flowing&&y.length?y.buffer.head.data.length:y.length:(b>y.highWaterMark&&(y.highWaterMark=l(b)),b<=y.length?b:y.ended?y.length:(y.needReadable=!0,0))}V.prototype.read=function(b){d("read",b),b=parseInt(b,10);var y=this._readableState,O=b;if(b!==0&&(y.emittedReadable=!1),b===0&&y.needReadable&&((y.highWaterMark!==0?y.length>=y.highWaterMark:y.length>0)||y.ended))return d("read: emitReadable",y.length,y.ended),y.length===0&&y.ended?U(this):w(this),null;if(b=h(b,y),b===0&&y.ended)return y.length===0&&U(this),null;var q=y.needReadable;d("need readable",q),(y.length===0||y.length-b<y.highWaterMark)&&(q=!0,d("length less than watermark",q)),y.ended||y.reading?(q=!1,d("reading or ended",q)):q&&(d("do read"),y.reading=!0,y.sync=!0,y.length===0&&(y.needReadable=!0),this._read(y.highWaterMark),y.sync=!1,y.reading||(b=h(O,y)));var X;return b>0?X=E(b,y):X=null,X===null?(y.needReadable=y.length<=y.highWaterMark,b=0):(y.length-=b,y.awaitDrain=0),y.length===0&&(y.ended||(y.needReadable=!0),O!==b&&y.ended&&U(this)),X!==null&&this.emit("data",X),X};function p(b,y){if(d("onEofChunk"),!y.ended){if(y.decoder){var O=y.decoder.end();O&&O.length&&(y.buffer.push(O),y.length+=y.objectMode?1:O.length)}y.ended=!0,y.sync?w(b):(y.needReadable=!1,y.emittedReadable||(y.emittedReadable=!0,x(b)))}}function w(b){var y=b._readableState;d("emitReadable",y.needReadable,y.emittedReadable),y.needReadable=!1,y.emittedReadable||(d("emitReadable",y.flowing),y.emittedReadable=!0,we.nextTick(x,b))}function x(b){var y=b._readableState;d("emitReadable_",y.destroyed,y.length,y.ended),!y.destroyed&&(y.length||y.ended)&&(b.emit("readable"),y.emittedReadable=!1),y.needReadable=!y.flowing&&!y.ended&&y.length<=y.highWaterMark,A(b)}function g(b,y){y.readingMore||(y.readingMore=!0,we.nextTick(s,b,y))}function s(b,y){for(;!y.reading&&!y.ended&&(y.length<y.highWaterMark||y.flowing&&y.length===0);){var O=y.length;if(d("maybeReadMore read 0"),b.read(0),O===y.length)break}y.readingMore=!1}V.prototype._read=function(b){W(this,new L("_read()"))},V.prototype.pipe=function(b,y){var O=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=b;break;case 1:q.pipes=[q.pipes,b];break;default:q.pipes.push(b);break}q.pipesCount+=1,d("pipe count=%d opts=%j",q.pipesCount,y);var X=(!y||y.end!==!1)&&b!==we.stdout&&b!==we.stderr,D=X?j:le;q.endEmitted?we.nextTick(D):O.once("end",D),b.on("unpipe",N);function N(ce,pe){d("onunpipe"),ce===O&&pe&&pe.hasUnpiped===!1&&(pe.hasUnpiped=!0,te())}function j(){d("onend"),b.end()}var z=v(O);b.on("drain",z);var se=!1;function te(){d("cleanup"),b.removeListener("close",Q),b.removeListener("finish",ue),b.removeListener("drain",z),b.removeListener("error",Ee),b.removeListener("unpipe",N),O.removeListener("end",j),O.removeListener("end",le),O.removeListener("data",ne),se=!0,q.awaitDrain&&(!b._writableState||b._writableState.needDrain)&&z()}O.on("data",ne);function ne(ce){d("ondata");var pe=b.write(ce);d("dest.write",pe),pe===!1&&((q.pipesCount===1&&q.pipes===b||q.pipesCount>1&&Z(q.pipes,b)!==-1)&&!se&&(d("false write response, pause",q.awaitDrain),q.awaitDrain++),O.pause())}function Ee(ce){d("onerror",ce),le(),b.removeListener("error",Ee),t(b,"error")===0&&W(b,ce)}ie(b,"error",Ee);function Q(){b.removeListener("finish",ue),le()}b.once("close",Q);function ue(){d("onfinish"),b.removeListener("close",Q),le()}b.once("finish",ue);function le(){d("unpipe"),O.unpipe(b)}return b.emit("pipe",O),q.flowing||(d("pipe resume"),O.resume()),b};function v(b){return function(){var O=b._readableState;d("pipeOnDrain",O.awaitDrain),O.awaitDrain&&O.awaitDrain--,O.awaitDrain===0&&t(b,"data")&&(O.flowing=!0,A(b))}}V.prototype.unpipe=function(b){var y=this._readableState,O={hasUnpiped:!1};if(y.pipesCount===0)return this;if(y.pipesCount===1)return b&&b!==y.pipes?this:(b||(b=y.pipes),y.pipes=null,y.pipesCount=0,y.flowing=!1,b&&b.emit("unpipe",this,O),this);if(!b){var q=y.pipes,X=y.pipesCount;y.pipes=null,y.pipesCount=0,y.flowing=!1;for(var D=0;D<X;D++)q[D].emit("unpipe",this,{hasUnpiped:!1});return this}var N=Z(y.pipes,b);return N===-1?this:(y.pipes.splice(N,1),y.pipesCount-=1,y.pipesCount===1&&(y.pipes=y.pipes[0]),b.emit("unpipe",this,O),this)},V.prototype.on=function(b,y){var O=r.prototype.on.call(this,b,y),q=this._readableState;return b==="data"?(q.readableListening=this.listenerCount("readable")>0,q.flowing!==!1&&this.resume()):b==="readable"&&!q.endEmitted&&!q.readableListening&&(q.readableListening=q.needReadable=!0,q.flowing=!1,q.emittedReadable=!1,d("on readable",q.length,q.reading),q.length?w(this):q.reading||we.nextTick($,this)),O},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(b,y){var O=r.prototype.removeListener.call(this,b,y);return b==="readable"&&we.nextTick(T,this),O},V.prototype.removeAllListeners=function(b){var y=r.prototype.removeAllListeners.apply(this,arguments);return(b==="readable"||b===void 0)&&we.nextTick(T,this),y};function T(b){var y=b._readableState;y.readableListening=b.listenerCount("readable")>0,y.resumeScheduled&&!y.paused?y.flowing=!0:b.listenerCount("data")>0&&b.resume()}function $(b){d("readable nexttick read 0"),b.read(0)}V.prototype.resume=function(){var b=this._readableState;return b.flowing||(d("resume"),b.flowing=!b.readableListening,G(this,b)),b.paused=!1,this};function G(b,y){y.resumeScheduled||(y.resumeScheduled=!0,we.nextTick(ee,b,y))}function ee(b,y){d("resume",y.reading),y.reading||b.read(0),y.resumeScheduled=!1,b.emit("resume"),A(b),y.flowing&&!y.reading&&b.read(0)}V.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function A(b){var y=b._readableState;for(d("flow",y.flowing);y.flowing&&b.read()!==null;);}V.prototype.wrap=function(b){var y=this,O=this._readableState,q=!1;b.on("end",function(){if(d("wrapped end"),O.decoder&&!O.ended){var N=O.decoder.end();N&&N.length&&y.push(N)}y.push(null)}),b.on("data",function(N){if(d("wrapped data"),O.decoder&&(N=O.decoder.write(N)),!(O.objectMode&&N==null)&&!(!O.objectMode&&(!N||!N.length))){var j=y.push(N);j||(q=!0,b.pause())}});for(var X in b)this[X]===void 0&&typeof b[X]=="function"&&(this[X]=function(j){return function(){return b[j].apply(b,arguments)}}(X));for(var D=0;D<Y.length;D++)b.on(Y[D],this.emit.bind(this,Y[D]));return this._read=function(N){d("wrapped _read",N),q&&(q=!1,b.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return H===void 0&&(H=C9()),H(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(y){this._readableState&&(this._readableState.flowing=y)}}),V._fromList=E,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function E(b,y){if(y.length===0)return null;var O;return y.objectMode?O=y.buffer.shift():!b||b>=y.length?(y.decoder?O=y.buffer.join(""):y.buffer.length===1?O=y.buffer.first():O=y.buffer.concat(y.length),y.buffer.clear()):O=y.buffer.consume(b,y.decoder),O}function U(b){var y=b._readableState;d("endReadable",y.endEmitted),y.endEmitted||(y.ended=!0,we.nextTick(K,y,b))}function K(b,y){if(d("endReadableNT",b.endEmitted,b.length),!b.endEmitted&&b.length===0&&(b.endEmitted=!0,y.readable=!1,y.emit("end"),b.autoDestroy)){var O=y._writableState;(!O||O.autoDestroy&&O.finished)&&y.destroy()}}typeof Symbol=="function"&&(V.from=function(b,y){return F===void 0&&(F=B9()),F(V,b,y)});function Z(b,y){for(var O=0,q=b.length;O<q;O++)if(b[O]===y)return O;return-1}return id}var bM=kn,Ph=_a.codes,L9=Ph.ERR_METHOD_NOT_IMPLEMENTED,N9=Ph.ERR_MULTIPLE_CALLBACK,k9=Ph.ERR_TRANSFORM_ALREADY_TRANSFORMING,$9=Ph.ERR_TRANSFORM_WITH_LENGTH_0,Ch=hs();Ze(kn,Ch);function D9(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new N9);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function kn(e){if(!(this instanceof kn))return new kn(e);Ch.call(this,e),this._transformState={afterTransform:D9.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",F9)}function F9(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){d1(e,t,r)}):d1(this,null,null)}kn.prototype.push=function(e,t){return this._transformState.needTransform=!1,Ch.prototype.push.call(this,e,t)};kn.prototype._transform=function(e,t,r){r(new L9("_transform()"))};kn.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};kn.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};kn.prototype._destroy=function(e,t){Ch.prototype._destroy.call(this,e,function(r){t(r)})};function d1(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new $9;if(e._transformState.transforming)throw new k9;return e.push(null)}var j9=Jf,wM=bM;Ze(Jf,wM);function Jf(e){if(!(this instanceof Jf))return new Jf(e);wM.call(this,e)}Jf.prototype._transform=function(e,t,r){r(null,e)};var nd;function U9(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var _M=_a.codes,H9=_M.ERR_MISSING_ARGS,q9=_M.ERR_STREAM_DESTROYED;function p1(e){if(e)throw e}function W9(e){return e.setHeader&&typeof e.abort=="function"}function K9(e,t,r,i){i=U9(i);var a=!1;e.on("close",function(){a=!0}),nd===void 0&&(nd=Wv),nd(e,{readable:t,writable:r},function(u){if(u)return i(u);a=!0,i()});var n=!1;return function(u){if(!a&&!n){if(n=!0,W9(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(u||new q9("pipe"))}}}function v1(e){e()}function V9(e,t){return e.pipe(t)}function z9(e){return!e.length||typeof e[e.length-1]!="function"?p1:e.pop()}function G9(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=z9(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new H9("streams");var a,n=t.map(function(u,c){var d=c<t.length-1,m=c>0;return K9(u,d,m,function(M){a||(a=M),M&&n.forEach(v1),!d&&(n.forEach(v1),i(a))})});return t.reduce(V9)}var Y9=G9;(function(e,t){t=e.exports=yM(),t.Stream=t,t.Readable=t,t.Writable=gM(),t.Duplex=hs(),t.Transform=bM,t.PassThrough=j9,t.finished=Wv,t.pipeline=Y9})(np,np.exports);var vu=np.exports;const Z9=Fv,X9=vu.Readable,J9={objectMode:!0},Q9={clean:!0};function Ao(e){if(!(this instanceof Ao))return new Ao(e);this.options=e||{},this.options=Z9(Q9,e),this._inflights=new Map}Ao.prototype.put=function(e,t){return this._inflights.set(e.messageId,e),t&&t(),this};Ao.prototype.createStream=function(){const e=new X9(J9),t=[];let r=!1,i=0;return this._inflights.forEach(function(a,n){t.push(a)}),e._read=function(){!r&&i<t.length?this.push(t[i++]):this.push(null)},e.destroy=function(){if(r)return;const a=this;r=!0,setTimeout(function(){a.emit("close")},0)},e};Ao.prototype.del=function(e,t){return e=this._inflights.get(e.messageId),e?(this._inflights.delete(e.messageId),t(null,e)):t&&t(new Error("missing packet")),this};Ao.prototype.get=function(e,t){return e=this._inflights.get(e.messageId),e?t(null,e):t&&t(new Error("missing packet")),this};Ao.prototype.close=function(e){this.options.clean&&(this._inflights=null),e&&e()};var MM=Ao;function cs(e){if(!(this instanceof cs))return new cs(e);this.aliasToTopic={},this.max=e}cs.prototype.put=function(e,t){return t===0||t>this.max?!1:(this.aliasToTopic[t]=e,this.length=Object.keys(this.aliasToTopic).length,!0)};cs.prototype.getTopicByAlias=function(e){return this.aliasToTopic[e]};cs.prototype.clear=function(){this.aliasToTopic={}};var eA=cs,od,g1;function tA(){return g1||(g1=1,od=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}),od}var rA=Nt;Nt.Node=la;Nt.create=Nt;function Nt(e){var t=this;if(t instanceof Nt||(t=new Nt),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(a){t.push(a)});else if(arguments.length>0)for(var r=0,i=arguments.length;r<i;r++)t.push(arguments[r]);return t}Nt.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t};Nt.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}};Nt.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}};Nt.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)nA(this,arguments[e]);return this.length};Nt.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)oA(this,arguments[e]);return this.length};Nt.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}};Nt.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}};Nt.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,i=0;r!==null;i++)e.call(t,r.value,i,this),r=r.next};Nt.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,i=this.length-1;r!==null;i--)e.call(t,r.value,i,this),r=r.prev};Nt.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++)r=r.next;if(t===e&&r!==null)return r.value};Nt.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++)r=r.prev;if(t===e&&r!==null)return r.value};Nt.prototype.map=function(e,t){t=t||this;for(var r=new Nt,i=this.head;i!==null;)r.push(e.call(t,i.value,this)),i=i.next;return r};Nt.prototype.mapReverse=function(e,t){t=t||this;for(var r=new Nt,i=this.tail;i!==null;)r.push(e.call(t,i.value,this)),i=i.prev;return r};Nt.prototype.reduce=function(e,t){var r,i=this.head;if(arguments.length>1)r=t;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=0;i!==null;a++)r=e(r,i.value,a),i=i.next;return r};Nt.prototype.reduceReverse=function(e,t){var r,i=this.tail;if(arguments.length>1)r=t;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var a=this.length-1;i!==null;a--)r=e(r,i.value,a),i=i.prev;return r};Nt.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};Nt.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};Nt.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new Nt;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,a=this.head;a!==null&&i<e;i++)a=a.next;for(;a!==null&&i<t;i++,a=a.next)r.push(a.value);return r};Nt.prototype.sliceReverse=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new Nt;if(t<e||t<0)return r;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,a=this.tail;a!==null&&i>t;i--)a=a.prev;for(;a!==null&&i>e;i--,a=a.prev)r.push(a.value);return r};Nt.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,a=this.head;a!==null&&i<e;i++)a=a.next;for(var n=[],i=0;a&&i<t;i++)n.push(a.value),a=this.removeNode(a);a===null&&(a=this.tail),a!==this.head&&a!==this.tail&&(a=a.prev);for(var i=0;i<r.length;i++)a=iA(this,a,r[i]);return n};Nt.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;r!==null;r=r.prev){var i=r.prev;r.prev=r.next,r.next=i}return this.head=t,this.tail=e,this};function iA(e,t,r){var i=t===e.head?new la(r,null,t,e):new la(r,t,t.next,e);return i.next===null&&(e.tail=i),i.prev===null&&(e.head=i),e.length++,i}function nA(e,t){e.tail=new la(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function oA(e,t){e.head=new la(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function la(e,t,r,i){if(!(this instanceof la))return new la(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}try{tA()(Nt)}catch{}const aA=rA,Vo=Symbol("max"),En=Symbol("length"),Na=Symbol("lengthCalculator"),kf=Symbol("allowStale"),Zo=Symbol("maxAge"),Sn=Symbol("dispose"),m1=Symbol("noDisposeOnSet"),fr=Symbol("lruList"),Pi=Symbol("cache"),SM=Symbol("updateAgeOnGet"),ad=()=>1;class sA{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");this[Vo]=t.max||1/0;const r=t.length||ad;if(this[Na]=typeof r!="function"?ad:r,this[kf]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[Zo]=t.maxAge||0,this[Sn]=t.dispose,this[m1]=t.noDisposeOnSet||!1,this[SM]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Vo]=t||1/0,Js(this)}get max(){return this[Vo]}set allowStale(t){this[kf]=!!t}get allowStale(){return this[kf]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[Zo]=t,Js(this)}get maxAge(){return this[Zo]}set lengthCalculator(t){typeof t!="function"&&(t=ad),t!==this[Na]&&(this[Na]=t,this[En]=0,this[fr].forEach(r=>{r.length=this[Na](r.value,r.key),this[En]+=r.length})),Js(this)}get lengthCalculator(){return this[Na]}get length(){return this[En]}get itemCount(){return this[fr].length}rforEach(t,r){r=r||this;for(let i=this[fr].tail;i!==null;){const a=i.prev;y1(this,t,i,r),i=a}}forEach(t,r){r=r||this;for(let i=this[fr].head;i!==null;){const a=i.next;y1(this,t,i,r),i=a}}keys(){return this[fr].toArray().map(t=>t.key)}values(){return this[fr].toArray().map(t=>t.value)}reset(){this[Sn]&&this[fr]&&this[fr].length&&this[fr].forEach(t=>this[Sn](t.key,t.value)),this[Pi]=new Map,this[fr]=new aA,this[En]=0}dump(){return this[fr].map(t=>Hl(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[fr]}set(t,r,i){if(i=i||this[Zo],i&&typeof i!="number")throw new TypeError("maxAge must be a number");const a=i?Date.now():0,n=this[Na](r,t);if(this[Pi].has(t)){if(n>this[Vo])return es(this,this[Pi].get(t)),!1;const d=this[Pi].get(t).value;return this[Sn]&&(this[m1]||this[Sn](t,d.value)),d.now=a,d.maxAge=i,d.value=r,this[En]+=n-d.length,d.length=n,this.get(t),Js(this),!0}const u=new fA(t,r,n,a,i);return u.length>this[Vo]?(this[Sn]&&this[Sn](t,r),!1):(this[En]+=u.length,this[fr].unshift(u),this[Pi].set(t,this[fr].head),Js(this),!0)}has(t){if(!this[Pi].has(t))return!1;const r=this[Pi].get(t).value;return!Hl(this,r)}get(t){return sd(this,t,!0)}peek(t){return sd(this,t,!1)}pop(){const t=this[fr].tail;return t?(es(this,t),t.value):null}del(t){es(this,this[Pi].get(t))}load(t){this.reset();const r=Date.now();for(let i=t.length-1;i>=0;i--){const a=t[i],n=a.e||0;if(n===0)this.set(a.k,a.v);else{const u=n-r;u>0&&this.set(a.k,a.v,u)}}}prune(){this[Pi].forEach((t,r)=>sd(this,r,!1))}}const sd=(e,t,r)=>{const i=e[Pi].get(t);if(i){const a=i.value;if(Hl(e,a)){if(es(e,i),!e[kf])return}else r&&(e[SM]&&(i.value.now=Date.now()),e[fr].unshiftNode(i));return a.value}},Hl=(e,t)=>{if(!t||!t.maxAge&&!e[Zo])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[Zo]&&r>e[Zo]},Js=e=>{if(e[En]>e[Vo])for(let t=e[fr].tail;e[En]>e[Vo]&&t!==null;){const r=t.prev;es(e,t),t=r}},es=(e,t)=>{if(t){const r=t.value;e[Sn]&&e[Sn](r.key,r.value),e[En]-=r.length,e[Pi].delete(r.key),e[fr].removeNode(t)}};class fA{constructor(t,r,i,a,n){this.key=t,this.value=r,this.length=i,this.now=a,this.maxAge=n||0}}const y1=(e,t,r,i)=>{let a=r.value;Hl(e,a)&&(es(e,r),e[kf]||(a=void 0)),a&&t.call(i,a.value,a.key,e)};var uA=sA,xM={},lA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),Bh=function(){function e(t){t===void 0&&(t=0),this.iteratorType=t}return e.prototype.equals=function(t){return this.o===t.o},e}(),Lh=function(){function e(){this.M=0}return Object.defineProperty(e.prototype,"length",{get:function(){return this.M},enumerable:!1,configurable:!0}),e.prototype.size=function(){return this.M},e.prototype.empty=function(){return this.M===0},e}(),Kv=function(e){lA(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Lh),hA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),cA=function(e){hA(t,e);function t(r){r===void 0&&(r=[]);var i=e.call(this)||this;i.nt=[];var a=i;return r.forEach(function(n){a.push(n)}),i}return t.prototype.clear=function(){this.M=0,this.nt=[]},t.prototype.push=function(r){return this.nt.push(r),this.M+=1,this.M},t.prototype.pop=function(){if(this.M!==0)return this.M-=1,this.nt.pop()},t.prototype.top=function(){return this.nt[this.M-1]},t}(Lh);const dA=cA;var pA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),vA=function(e){pA(t,e);function t(r){r===void 0&&(r=[]);var i=e.call(this)||this;i.A=0,i.tt=[];var a=i;return r.forEach(function(n){a.push(n)}),i}return t.prototype.clear=function(){this.tt=[],this.M=this.A=0},t.prototype.push=function(r){var i=this.tt.length;if(this.A/i>.5&&this.A+this.M>=i&&i>4096){for(var a=this.M,n=0;n<a;++n)this.tt[n]=this.tt[this.A+n];this.A=0,this.tt[this.M]=r}else this.tt[this.A+this.M]=r;return++this.M},t.prototype.pop=function(){if(this.M!==0){var r=this.tt[this.A++];return this.M-=1,r}},t.prototype.front=function(){if(this.M!==0)return this.tt[this.A]},t}(Lh);const gA=vA;var mA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),b1=globalThis&&globalThis.q||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,n=[],u;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)n.push(a.value)}catch(c){u={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return n},w1=globalThis&&globalThis.D||function(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,n;i<a;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},yA=function(e){mA(t,e);function t(r,i,a){r===void 0&&(r=[]),i===void 0&&(i=function(m,M){return m>M?-1:m<M?1:0}),a===void 0&&(a=!0);var n=e.call(this)||this;if(n.$=i,Array.isArray(r))n.ii=a?w1([],b1(r),!1):r;else{n.ii=[];var u=n;r.forEach(function(m){u.ii.push(m)})}n.M=n.ii.length;for(var c=n.M>>1,d=n.M-1>>1;d>=0;--d)n.ri(d,c);return n}return t.prototype.ti=function(r){for(var i=this.ii[r];r>0;){var a=r-1>>1,n=this.ii[a];if(this.$(n,i)<=0)break;this.ii[r]=n,r=a}this.ii[r]=i},t.prototype.ri=function(r,i){for(var a=this.ii[r];r<i;){var n=r<<1|1,u=n+1,c=this.ii[n];if(u<this.M&&this.$(c,this.ii[u])>0&&(n=u,c=this.ii[u]),this.$(c,a)>=0)break;this.ii[r]=c,r=n}this.ii[r]=a},t.prototype.clear=function(){this.M=0,this.ii.length=0},t.prototype.push=function(r){this.ii.push(r),this.ti(this.M),this.M+=1},t.prototype.pop=function(){if(this.M!==0){var r=this.ii[0],i=this.ii.pop();return this.M-=1,this.M&&(this.ii[0]=i,this.ri(0,this.M>>1)),r}},t.prototype.top=function(){return this.ii[0]},t.prototype.find=function(r){return this.ii.indexOf(r)>=0},t.prototype.remove=function(r){var i=this.ii.indexOf(r);return i<0?!1:(i===0?this.pop():i===this.M-1?(this.ii.pop(),this.M-=1):(this.ii.splice(i,1,this.ii.pop()),this.M-=1,this.ti(i),this.ri(i,this.M>>1)),!0)},t.prototype.updateItem=function(r){var i=this.ii.indexOf(r);return i<0?!1:(this.ti(i),this.ri(i,this.M>>1),!0)},t.prototype.toArray=function(){return w1([],b1(this.ii),!1)},t}(Lh);const bA=yA;var wA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),_A=function(e){wA(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Kv);const Vv=_A;function zt(){throw new RangeError("Iterator access denied!")}var MA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),EM=function(e){MA(t,e);function t(r,i){var a=e.call(this,i)||this;return a.o=r,a.iteratorType===0?(a.pre=function(){return this.o===0&&zt(),this.o-=1,this},a.next=function(){return this.o===this.container.size()&&zt(),this.o+=1,this}):(a.pre=function(){return this.o===this.container.size()-1&&zt(),this.o+=1,this},a.next=function(){return this.o===-1&&zt(),this.o-=1,this}),a}return Object.defineProperty(t.prototype,"pointer",{get:function(){return this.container.getElementByPos(this.o)},set:function(r){this.container.setElementByPos(this.o,r)},enumerable:!1,configurable:!0}),t}(Bh),RM=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),SA=globalThis&&globalThis.i||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(m){return function(M){return d([m,M])}}function d(m){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=m[0]&2?a.return:m[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,m[1])).done)return n;switch(a=0,n&&(m=[m[0]&2,n.value]),m[0]){case 0:case 1:n=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!n||m[1]>n[0]&&m[1]<n[3])){r.label=m[1];break}if(m[0]===6&&r.label<n[1]){r.label=n[1],n=m;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(m);break}n[2]&&r.ops.pop(),r.trys.pop();continue}m=t.call(e,r)}catch(M){m=[6,M],a=0}finally{i=n=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},_1=globalThis&&globalThis.q||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,n=[],u;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)n.push(a.value)}catch(c){u={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return n},M1=globalThis&&globalThis.D||function(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,n;i<a;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},xA=globalThis&&globalThis.V||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Qs=function(e){RM(t,e);function t(r,i,a){var n=e.call(this,r,a)||this;return n.container=i,n}return t.prototype.copy=function(){return new t(this.o,this.container,this.iteratorType)},t}(EM),EA=function(e){RM(t,e);function t(r,i){r===void 0&&(r=[]),i===void 0&&(i=!0);var a=e.call(this)||this;if(Array.isArray(r))a.J=i?M1([],_1(r),!1):r,a.M=r.length;else{a.J=[];var n=a;r.forEach(function(u){n.pushBack(u)})}return a}return t.prototype.clear=function(){this.M=0,this.J.length=0},t.prototype.begin=function(){return new Qs(0,this)},t.prototype.end=function(){return new Qs(this.M,this)},t.prototype.rBegin=function(){return new Qs(this.M-1,this,1)},t.prototype.rEnd=function(){return new Qs(-1,this,1)},t.prototype.front=function(){return this.J[0]},t.prototype.back=function(){return this.J[this.M-1]},t.prototype.getElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;return this.J[r]},t.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;return this.J.splice(r,1),this.M-=1,this.M},t.prototype.eraseElementByValue=function(r){for(var i=0,a=0;a<this.M;++a)this.J[a]!==r&&(this.J[i++]=this.J[a]);return this.M=this.J.length=i,this.M},t.prototype.eraseElementByIterator=function(r){var i=r.o;return r=r.next(),this.eraseElementByPos(i),r},t.prototype.pushBack=function(r){return this.J.push(r),this.M+=1,this.M},t.prototype.popBack=function(){if(this.M!==0)return this.M-=1,this.J.pop()},t.prototype.setElementByPos=function(r,i){if(r<0||r>this.M-1)throw new RangeError;this.J[r]=i},t.prototype.insert=function(r,i,a){var n;if(a===void 0&&(a=1),r<0||r>this.M)throw new RangeError;return(n=this.J).splice.apply(n,M1([r,0],_1(new Array(a).fill(i)),!1)),this.M+=a,this.M},t.prototype.find=function(r){for(var i=0;i<this.M;++i)if(this.J[i]===r)return new Qs(i,this);return this.end()},t.prototype.reverse=function(){this.J.reverse()},t.prototype.unique=function(){for(var r=1,i=1;i<this.M;++i)this.J[i]!==this.J[i-1]&&(this.J[r++]=this.J[i]);return this.M=this.J.length=r,this.M},t.prototype.sort=function(r){this.J.sort(r)},t.prototype.forEach=function(r){for(var i=0;i<this.M;++i)r(this.J[i],i,this)},t.prototype[Symbol.iterator]=function(){return function(){return SA(this,function(r){switch(r.label){case 0:return[5,xA(this.J)];case 1:return r.sent(),[2]}})}.bind(this)()},t}(Vv);const RA=EA;var AM=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),AA=globalThis&&globalThis.i||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(m){return function(M){return d([m,M])}}function d(m){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=m[0]&2?a.return:m[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,m[1])).done)return n;switch(a=0,n&&(m=[m[0]&2,n.value]),m[0]){case 0:case 1:n=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!n||m[1]>n[0]&&m[1]<n[3])){r.label=m[1];break}if(m[0]===6&&r.label<n[1]){r.label=n[1],n=m;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(m);break}n[2]&&r.ops.pop(),r.trys.pop();continue}m=t.call(e,r)}catch(M){m=[6,M],a=0}finally{i=n=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},ef=function(e){AM(t,e);function t(r,i,a,n){var u=e.call(this,n)||this;return u.o=r,u.h=i,u.container=a,u.iteratorType===0?(u.pre=function(){return this.o.L===this.h&&zt(),this.o=this.o.L,this},u.next=function(){return this.o===this.h&&zt(),this.o=this.o.m,this}):(u.pre=function(){return this.o.m===this.h&&zt(),this.o=this.o.m,this},u.next=function(){return this.o===this.h&&zt(),this.o=this.o.L,this}),u}return Object.defineProperty(t.prototype,"pointer",{get:function(){return this.o===this.h&&zt(),this.o.p},set:function(r){this.o===this.h&&zt(),this.o.p=r},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(Bh),TA=function(e){AM(t,e);function t(r){r===void 0&&(r=[]);var i=e.call(this)||this;i.h={},i.H=i.l=i.h.L=i.h.m=i.h;var a=i;return r.forEach(function(n){a.pushBack(n)}),i}return t.prototype.G=function(r){var i=r.L,a=r.m;i.m=a,a.L=i,r===this.H&&(this.H=a),r===this.l&&(this.l=i),this.M-=1},t.prototype.F=function(r,i){var a=i.m,n={p:r,L:i,m:a};i.m=n,a.L=n,i===this.h&&(this.H=n),a===this.h&&(this.l=n),this.M+=1},t.prototype.clear=function(){this.M=0,this.H=this.l=this.h.L=this.h.m=this.h},t.prototype.begin=function(){return new ef(this.H,this.h,this)},t.prototype.end=function(){return new ef(this.h,this.h,this)},t.prototype.rBegin=function(){return new ef(this.l,this.h,this,1)},t.prototype.rEnd=function(){return new ef(this.h,this.h,this,1)},t.prototype.front=function(){return this.H.p},t.prototype.back=function(){return this.l.p},t.prototype.getElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;for(var i=this.H;r--;)i=i.m;return i.p},t.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;for(var i=this.H;r--;)i=i.m;return this.G(i),this.M},t.prototype.eraseElementByValue=function(r){for(var i=this.H;i!==this.h;)i.p===r&&this.G(i),i=i.m;return this.M},t.prototype.eraseElementByIterator=function(r){var i=r.o;return i===this.h&&zt(),r=r.next(),this.G(i),r},t.prototype.pushBack=function(r){return this.F(r,this.l),this.M},t.prototype.popBack=function(){if(this.M!==0){var r=this.l.p;return this.G(this.l),r}},t.prototype.pushFront=function(r){return this.F(r,this.h),this.M},t.prototype.popFront=function(){if(this.M!==0){var r=this.H.p;return this.G(this.H),r}},t.prototype.setElementByPos=function(r,i){if(r<0||r>this.M-1)throw new RangeError;for(var a=this.H;r--;)a=a.m;a.p=i},t.prototype.insert=function(r,i,a){if(a===void 0&&(a=1),r<0||r>this.M)throw new RangeError;if(a<=0)return this.M;if(r===0)for(;a--;)this.pushFront(i);else if(r===this.M)for(;a--;)this.pushBack(i);else{for(var n=this.H,u=1;u<r;++u)n=n.m;var c=n.m;for(this.M+=a;a--;)n.m={p:i,L:n},n.m.L=n,n=n.m;n.m=c,c.L=n}return this.M},t.prototype.find=function(r){for(var i=this.H;i!==this.h;){if(i.p===r)return new ef(i,this.h,this);i=i.m}return this.end()},t.prototype.reverse=function(){if(!(this.M<=1))for(var r=this.H,i=this.l,a=0;a<<1<this.M;){var n=r.p;r.p=i.p,i.p=n,r=r.m,i=i.L,a+=1}},t.prototype.unique=function(){if(this.M<=1)return this.M;for(var r=this.H;r!==this.h;){for(var i=r;i.m!==this.h&&i.p===i.m.p;)i=i.m,this.M-=1;r.m=i.m,r.m.L=r,r=r.m}return this.M},t.prototype.sort=function(r){if(!(this.M<=1)){var i=[];this.forEach(function(n){i.push(n)}),i.sort(r);var a=this.H;i.forEach(function(n){a.p=n,a=a.m})}},t.prototype.merge=function(r){var i=this;if(this.M===0)r.forEach(function(n){i.pushBack(n)});else{var a=this.H;r.forEach(function(n){for(;a!==i.h&&a.p<=n;)a=a.m;i.F(n,a.L)})}return this.M},t.prototype.forEach=function(r){for(var i=this.H,a=0;i!==this.h;)r(i.p,a++,this),i=i.m},t.prototype[Symbol.iterator]=function(){return function(){var r;return AA(this,function(i){switch(i.label){case 0:if(this.M===0)return[2];r=this.H,i.label=1;case 1:return r===this.h?[3,3]:[4,r.p];case 2:return i.sent(),r=r.m,[3,1];case 3:return[2]}})}.bind(this)()},t}(Vv);const OA=TA;var TM=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),IA=globalThis&&globalThis.i||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(m){return function(M){return d([m,M])}}function d(m){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=m[0]&2?a.return:m[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,m[1])).done)return n;switch(a=0,n&&(m=[m[0]&2,n.value]),m[0]){case 0:case 1:n=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!n||m[1]>n[0]&&m[1]<n[3])){r.label=m[1];break}if(m[0]===6&&r.label<n[1]){r.label=n[1],n=m;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(m);break}n[2]&&r.ops.pop(),r.trys.pop();continue}m=t.call(e,r)}catch(M){m=[6,M],a=0}finally{i=n=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},PA=globalThis&&globalThis.q||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,n=[],u;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)n.push(a.value)}catch(c){u={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return n},CA=globalThis&&globalThis.D||function(e,t,r){if(r||arguments.length===2)for(var i=0,a=t.length,n;i<a;i++)(n||!(i in t))&&(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},tf=function(e){TM(t,e);function t(r,i,a){var n=e.call(this,r,a)||this;return n.container=i,n}return t.prototype.copy=function(){return new t(this.o,this.container,this.iteratorType)},t}(EM),BA=function(e){TM(t,e);function t(r,i){r===void 0&&(r=[]),i===void 0&&(i=4096);var a=e.call(this)||this;a.A=0,a.S=0,a.R=0,a.k=0,a.C=0,a.j=[];var n=function(){if(typeof r.length=="number")return r.length;if(typeof r.size=="number")return r.size;if(typeof r.size=="function")return r.size();throw new TypeError("Cannot get the length or size of the container")}();a.B=i,a.C=Math.max(Math.ceil(n/a.B),1);for(var u=0;u<a.C;++u)a.j.push(new Array(a.B));var c=Math.ceil(n/a.B);a.A=a.R=(a.C>>1)-(c>>1),a.S=a.k=a.B-n%a.B>>1;var d=a;return r.forEach(function(m){d.pushBack(m)}),a}return t.prototype.O=function(){for(var r=[],i=Math.max(this.C>>1,1),a=0;a<i;++a)r[a]=new Array(this.B);for(var a=this.A;a<this.C;++a)r[r.length]=this.j[a];for(var a=0;a<this.R;++a)r[r.length]=this.j[a];r[r.length]=CA([],PA(this.j[this.R]),!1),this.A=i,this.R=r.length-1;for(var a=0;a<i;++a)r[r.length]=new Array(this.B);this.j=r,this.C=r.length},t.prototype.T=function(r){var i=this.S+r+1,a=i%this.B,n=a-1,u=this.A+(i-a)/this.B;return a===0&&(u-=1),u%=this.C,n<0&&(n+=this.B),{curNodeBucketIndex:u,curNodePointerIndex:n}},t.prototype.clear=function(){this.j=[new Array(this.B)],this.C=1,this.A=this.R=this.M=0,this.S=this.k=this.B>>1},t.prototype.begin=function(){return new tf(0,this)},t.prototype.end=function(){return new tf(this.M,this)},t.prototype.rBegin=function(){return new tf(this.M-1,this,1)},t.prototype.rEnd=function(){return new tf(-1,this,1)},t.prototype.front=function(){if(this.M!==0)return this.j[this.A][this.S]},t.prototype.back=function(){if(this.M!==0)return this.j[this.R][this.k]},t.prototype.pushBack=function(r){return this.M&&(this.k<this.B-1?this.k+=1:this.R<this.C-1?(this.R+=1,this.k=0):(this.R=0,this.k=0),this.R===this.A&&this.k===this.S&&this.O()),this.M+=1,this.j[this.R][this.k]=r,this.M},t.prototype.popBack=function(){if(this.M!==0){var r=this.j[this.R][this.k];return this.M!==1&&(this.k>0?this.k-=1:this.R>0?(this.R-=1,this.k=this.B-1):(this.R=this.C-1,this.k=this.B-1)),this.M-=1,r}},t.prototype.pushFront=function(r){return this.M&&(this.S>0?this.S-=1:this.A>0?(this.A-=1,this.S=this.B-1):(this.A=this.C-1,this.S=this.B-1),this.A===this.R&&this.S===this.k&&this.O()),this.M+=1,this.j[this.A][this.S]=r,this.M},t.prototype.popFront=function(){if(this.M!==0){var r=this.j[this.A][this.S];return this.M!==1&&(this.S<this.B-1?this.S+=1:this.A<this.C-1?(this.A+=1,this.S=0):(this.A=0,this.S=0)),this.M-=1,r}},t.prototype.getElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;var i=this.T(r),a=i.curNodeBucketIndex,n=i.curNodePointerIndex;return this.j[a][n]},t.prototype.setElementByPos=function(r,i){if(r<0||r>this.M-1)throw new RangeError;var a=this.T(r),n=a.curNodeBucketIndex,u=a.curNodePointerIndex;this.j[n][u]=i},t.prototype.insert=function(r,i,a){if(a===void 0&&(a=1),r<0||r>this.M)throw new RangeError;if(r===0)for(;a--;)this.pushFront(i);else if(r===this.M)for(;a--;)this.pushBack(i);else{for(var n=[],u=r;u<this.M;++u)n.push(this.getElementByPos(u));this.cut(r-1);for(var u=0;u<a;++u)this.pushBack(i);for(var u=0;u<n.length;++u)this.pushBack(n[u])}return this.M},t.prototype.cut=function(r){if(r<0)return this.clear(),0;var i=this.T(r),a=i.curNodeBucketIndex,n=i.curNodePointerIndex;return this.R=a,this.k=n,this.M=r+1,this.M},t.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;if(r===0)this.popFront();else if(r===this.M-1)this.popBack();else{for(var i=[],a=r+1;a<this.M;++a)i.push(this.getElementByPos(a));this.cut(r),this.popBack();var n=this;i.forEach(function(u){n.pushBack(u)})}return this.M},t.prototype.eraseElementByValue=function(r){if(this.M===0)return 0;for(var i=[],a=0;a<this.M;++a){var n=this.getElementByPos(a);n!==r&&i.push(n)}for(var u=i.length,a=0;a<u;++a)this.setElementByPos(a,i[a]);return this.cut(u-1)},t.prototype.eraseElementByIterator=function(r){var i=r.o;return this.eraseElementByPos(i),r=r.next(),r},t.prototype.find=function(r){for(var i=0;i<this.M;++i)if(this.getElementByPos(i)===r)return new tf(i,this);return this.end()},t.prototype.reverse=function(){for(var r=0,i=this.M-1;r<i;){var a=this.getElementByPos(r);this.setElementByPos(r,this.getElementByPos(i)),this.setElementByPos(i,a),r+=1,i-=1}},t.prototype.unique=function(){if(this.M<=1)return this.M;for(var r=1,i=this.getElementByPos(0),a=1;a<this.M;++a){var n=this.getElementByPos(a);n!==i&&(i=n,this.setElementByPos(r++,n))}for(;this.M>r;)this.popBack();return this.M},t.prototype.sort=function(r){for(var i=[],a=0;a<this.M;++a)i.push(this.getElementByPos(a));i.sort(r);for(var a=0;a<this.M;++a)this.setElementByPos(a,i[a])},t.prototype.shrinkToFit=function(){if(this.M!==0){var r=[];this.forEach(function(a){r.push(a)}),this.C=Math.max(Math.ceil(this.M/this.B),1),this.M=this.A=this.R=this.S=this.k=0,this.j=[];for(var i=0;i<this.C;++i)this.j.push(new Array(this.B));for(var i=0;i<r.length;++i)this.pushBack(r[i])}},t.prototype.forEach=function(r){for(var i=0;i<this.M;++i)r(this.getElementByPos(i),i,this)},t.prototype[Symbol.iterator]=function(){return function(){var r;return IA(this,function(i){switch(i.label){case 0:r=0,i.label=1;case 1:return r<this.M?[4,this.getElementByPos(r)]:[3,4];case 2:i.sent(),i.label=3;case 3:return++r,[3,1];case 4:return[2]}})}.bind(this)()},t}(Vv);const LA=BA;var NA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),OM=function(){function e(t,r){this.ee=1,this.u=void 0,this.p=void 0,this.K=void 0,this.N=void 0,this.rr=void 0,this.u=t,this.p=r}return e.prototype.L=function(){var t=this;if(t.ee===1&&t.rr.rr===t)t=t.N;else if(t.K)for(t=t.K;t.N;)t=t.N;else{for(var r=t.rr;r.K===t;)t=r,r=t.rr;t=r}return t},e.prototype.m=function(){var t=this;if(t.N){for(t=t.N;t.K;)t=t.K;return t}else{for(var r=t.rr;r.N===t;)t=r,r=t.rr;return t.N!==r?r:t}},e.prototype.ne=function(){var t=this.rr,r=this.N,i=r.K;return t.rr===this?t.rr=r:t.K===this?t.K=r:t.N=r,r.rr=t,r.K=this,this.rr=r,this.N=i,i&&(i.rr=this),r},e.prototype.te=function(){var t=this.rr,r=this.K,i=r.N;return t.rr===this?t.rr=r:t.K===this?t.K=r:t.N=r,r.rr=t,r.N=this,this.rr=r,this.K=i,i&&(i.rr=this),r},e}(),kA=function(e){NA(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.tr=1,r}return t.prototype.ne=function(){var r=e.prototype.ne.call(this);return this.ie(),r.ie(),r},t.prototype.te=function(){var r=e.prototype.te.call(this);return this.ie(),r.ie(),r},t.prototype.ie=function(){this.tr=1,this.K&&(this.tr+=this.K.tr),this.N&&(this.tr+=this.N.tr)},t}(OM),$A=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),S1=globalThis&&globalThis.q||function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),a,n=[],u;try{for(;(t===void 0||t-- >0)&&!(a=i.next()).done;)n.push(a.value)}catch(c){u={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return n},x1=globalThis&&globalThis.V||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},DA=function(e){$A(t,e);function t(r,i){r===void 0&&(r=function(n,u){return n<u?-1:n>u?1:0}),i===void 0&&(i=!1);var a=e.call(this)||this;return a.W=void 0,a.$=r,i?(a.re=kA,a.v=function(n,u,c){var d=this.se(n,u,c);if(d){for(var m=d.rr;m!==this.h;)m.tr+=1,m=m.rr;var M=this.fe(d);if(M){var S=M,R=S.parentNode,C=S.grandParent,P=S.curNode;R.ie(),C.ie(),P.ie()}}return this.M},a.G=function(n){for(var u=this.he(n);u!==this.h;)u.tr-=1,u=u.rr}):(a.re=OM,a.v=function(n,u,c){var d=this.se(n,u,c);return d&&this.fe(d),this.M},a.G=a.he),a.h=new a.re,a}return t.prototype.U=function(r,i){for(var a=this.h;r;){var n=this.$(r.u,i);if(n<0)r=r.N;else if(n>0)a=r,r=r.K;else return r}return a},t.prototype.X=function(r,i){for(var a=this.h;r;){var n=this.$(r.u,i);n<=0?r=r.N:(a=r,r=r.K)}return a},t.prototype.Y=function(r,i){for(var a=this.h;r;){var n=this.$(r.u,i);if(n<0)a=r,r=r.N;else if(n>0)r=r.K;else return r}return a},t.prototype.Z=function(r,i){for(var a=this.h;r;){var n=this.$(r.u,i);n<0?(a=r,r=r.N):r=r.K}return a},t.prototype.ue=function(r){for(;;){var i=r.rr;if(i===this.h)return;if(r.ee===1){r.ee=0;return}if(r===i.K){var a=i.N;if(a.ee===1)a.ee=0,i.ee=1,i===this.W?this.W=i.ne():i.ne();else if(a.N&&a.N.ee===1){a.ee=i.ee,i.ee=0,a.N.ee=0,i===this.W?this.W=i.ne():i.ne();return}else a.K&&a.K.ee===1?(a.ee=1,a.K.ee=0,a.te()):(a.ee=1,r=i)}else{var a=i.K;if(a.ee===1)a.ee=0,i.ee=1,i===this.W?this.W=i.te():i.te();else if(a.K&&a.K.ee===1){a.ee=i.ee,i.ee=0,a.K.ee=0,i===this.W?this.W=i.te():i.te();return}else a.N&&a.N.ee===1?(a.ee=1,a.N.ee=0,a.ne()):(a.ee=1,r=i)}}},t.prototype.he=function(r){var i,a;if(this.M===1)return this.clear(),this.h;for(var n=r;n.K||n.N;){if(n.N)for(n=n.N;n.K;)n=n.K;else n=n.K;i=S1([n.u,r.u],2),r.u=i[0],n.u=i[1],a=S1([n.p,r.p],2),r.p=a[0],n.p=a[1],r=n}this.h.K===n?this.h.K=n.rr:this.h.N===n&&(this.h.N=n.rr),this.ue(n);var u=n.rr;return n===u.K?u.K=void 0:u.N=void 0,this.M-=1,this.W.ee=0,u},t.prototype.ae=function(r,i){if(r===void 0)return!1;var a=this.ae(r.K,i);return a||i(r)?!0:this.ae(r.N,i)},t.prototype.fe=function(r){for(;;){var i=r.rr;if(i.ee===0)return;var a=i.rr;if(i===a.K){var n=a.N;if(n&&n.ee===1){if(n.ee=i.ee=0,a===this.W)return;a.ee=1,r=a;continue}else if(r===i.N){if(r.ee=0,r.K&&(r.K.rr=i),r.N&&(r.N.rr=a),i.N=r.K,a.K=r.N,r.K=i,r.N=a,a===this.W)this.W=r,this.h.rr=r;else{var u=a.rr;u.K===a?u.K=r:u.N=r}return r.rr=a.rr,i.rr=r,a.rr=r,a.ee=1,{parentNode:i,grandParent:a,curNode:r}}else i.ee=0,a===this.W?this.W=a.te():a.te(),a.ee=1}else{var n=a.K;if(n&&n.ee===1){if(n.ee=i.ee=0,a===this.W)return;a.ee=1,r=a;continue}else if(r===i.K){if(r.ee=0,r.K&&(r.K.rr=a),r.N&&(r.N.rr=i),a.N=r.K,i.K=r.N,r.K=a,r.N=i,a===this.W)this.W=r,this.h.rr=r;else{var u=a.rr;u.K===a?u.K=r:u.N=r}return r.rr=a.rr,i.rr=r,a.rr=r,a.ee=1,{parentNode:i,grandParent:a,curNode:r}}else i.ee=0,a===this.W?this.W=a.ne():a.ne(),a.ee=1}return}},t.prototype.se=function(r,i,a){if(this.W===void 0){this.M+=1,this.W=new this.re(r,i),this.W.ee=0,this.W.rr=this.h,this.h.rr=this.W,this.h.K=this.W,this.h.N=this.W;return}var n,u=this.h.K,c=this.$(u.u,r);if(c===0){u.p=i;return}else if(c>0)u.K=new this.re(r,i),u.K.rr=u,n=u.K,this.h.K=n;else{var d=this.h.N,m=this.$(d.u,r);if(m===0){d.p=i;return}else if(m<0)d.N=new this.re(r,i),d.N.rr=d,n=d.N,this.h.N=n;else{if(a!==void 0){var M=a.o;if(M!==this.h){var S=this.$(M.u,r);if(S===0){M.p=i;return}else if(S>0){var R=M.L(),C=this.$(R.u,r);if(C===0){R.p=i;return}else C<0&&(n=new this.re(r,i),R.N===void 0?(R.N=n,n.rr=R):(M.K=n,n.rr=M))}}}if(n===void 0)for(n=this.W;;){var P=this.$(n.u,r);if(P>0){if(n.K===void 0){n.K=new this.re(r,i),n.K.rr=n,n=n.K;break}n=n.K}else if(P<0){if(n.N===void 0){n.N=new this.re(r,i),n.N.rr=n,n=n.N;break}n=n.N}else{n.p=i;return}}}}return this.M+=1,n},t.prototype.g=function(r,i){for(;r;){var a=this.$(r.u,i);if(a<0)r=r.N;else if(a>0)r=r.K;else return r}return r||this.h},t.prototype.clear=function(){this.M=0,this.W=void 0,this.h.rr=void 0,this.h.K=this.h.N=void 0},t.prototype.updateKeyByIterator=function(r,i){var a=r.o;if(a===this.h&&zt(),this.M===1)return a.u=i,!0;if(a===this.h.K)return this.$(a.m().u,i)>0?(a.u=i,!0):!1;if(a===this.h.N)return this.$(a.L().u,i)<0?(a.u=i,!0):!1;var n=a.L().u;if(this.$(n,i)>=0)return!1;var u=a.m().u;return this.$(u,i)<=0?!1:(a.u=i,!0)},t.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;var i=0,a=this;return this.ae(this.W,function(n){return r===i?(a.G(n),!0):(i+=1,!1)}),this.M},t.prototype.eraseElementByKey=function(r){if(this.M===0)return!1;var i=this.g(this.W,r);return i===this.h?!1:(this.G(i),!0)},t.prototype.eraseElementByIterator=function(r){var i=r.o;i===this.h&&zt();var a=i.N===void 0,n=r.iteratorType===0;return n?a&&r.next():(!a||i.K===void 0)&&r.next(),this.G(i),r},t.prototype.forEach=function(r){var i,a,n=0;try{for(var u=x1(this),c=u.next();!c.done;c=u.next()){var d=c.value;r(d,n++,this)}}catch(m){i={error:m}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}},t.prototype.getElementByPos=function(r){var i,a;if(r<0||r>this.M-1)throw new RangeError;var n,u=0;try{for(var c=x1(this),d=c.next();!d.done;d=c.next()){var m=d.value;if(u===r){n=m;break}u+=1}}catch(M){i={error:M}}finally{try{d&&!d.done&&(a=c.return)&&a.call(c)}finally{if(i)throw i.error}}return n},t.prototype.getHeight=function(){if(this.M===0)return 0;var r=function(i){return i?Math.max(r(i.K),r(i.N))+1:0};return r(this.W)},t}(Kv);const IM=DA;var FA=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),jA=function(e){FA(t,e);function t(r,i,a){var n=e.call(this,a)||this;return n.o=r,n.h=i,n.iteratorType===0?(n.pre=function(){return this.o===this.h.K&&zt(),this.o=this.o.L(),this},n.next=function(){return this.o===this.h&&zt(),this.o=this.o.m(),this}):(n.pre=function(){return this.o===this.h.N&&zt(),this.o=this.o.m(),this},n.next=function(){return this.o===this.h&&zt(),this.o=this.o.L(),this}),n}return Object.defineProperty(t.prototype,"index",{get:function(){var r=this.o,i=this.h.rr;if(r===this.h)return i?i.tr-1:0;var a=0;for(r.K&&(a+=r.K.tr);r!==i;){var n=r.rr;r===n.N&&(a+=1,n.K&&(a+=n.K.tr)),r=n}return a},enumerable:!1,configurable:!0}),t}(Bh);const PM=jA;var CM=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),UA=globalThis&&globalThis.i||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(m){return function(M){return d([m,M])}}function d(m){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=m[0]&2?a.return:m[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,m[1])).done)return n;switch(a=0,n&&(m=[m[0]&2,n.value]),m[0]){case 0:case 1:n=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!n||m[1]>n[0]&&m[1]<n[3])){r.label=m[1];break}if(m[0]===6&&r.label<n[1]){r.label=n[1],n=m;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(m);break}n[2]&&r.ops.pop(),r.trys.pop();continue}m=t.call(e,r)}catch(M){m=[6,M],a=0}finally{i=n=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},E1=globalThis&&globalThis.V||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},vn=function(e){CM(t,e);function t(r,i,a,n){var u=e.call(this,r,i,n)||this;return u.container=a,u}return Object.defineProperty(t.prototype,"pointer",{get:function(){return this.o===this.h&&zt(),this.o.u},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(PM),HA=function(e){CM(t,e);function t(r,i,a){r===void 0&&(r=[]);var n=e.call(this,i,a)||this,u=n;return r.forEach(function(c){u.insert(c)}),n}return t.prototype.P=function(r){return UA(this,function(i){switch(i.label){case 0:return r===void 0?[2]:[5,E1(this.P(r.K))];case 1:return i.sent(),[4,r.u];case 2:return i.sent(),[5,E1(this.P(r.N))];case 3:return i.sent(),[2]}})},t.prototype.begin=function(){return new vn(this.h.K||this.h,this.h,this)},t.prototype.end=function(){return new vn(this.h,this.h,this)},t.prototype.rBegin=function(){return new vn(this.h.N||this.h,this.h,this,1)},t.prototype.rEnd=function(){return new vn(this.h,this.h,this,1)},t.prototype.front=function(){return this.h.K?this.h.K.u:void 0},t.prototype.back=function(){return this.h.N?this.h.N.u:void 0},t.prototype.insert=function(r,i){return this.v(r,void 0,i)},t.prototype.find=function(r){var i=this.g(this.W,r);return new vn(i,this.h,this)},t.prototype.lowerBound=function(r){var i=this.U(this.W,r);return new vn(i,this.h,this)},t.prototype.upperBound=function(r){var i=this.X(this.W,r);return new vn(i,this.h,this)},t.prototype.reverseLowerBound=function(r){var i=this.Y(this.W,r);return new vn(i,this.h,this)},t.prototype.reverseUpperBound=function(r){var i=this.Z(this.W,r);return new vn(i,this.h,this)},t.prototype.union=function(r){var i=this;return r.forEach(function(a){i.insert(a)}),this.M},t.prototype[Symbol.iterator]=function(){return this.P(this.W)},t}(IM);const qA=HA;var BM=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),WA=globalThis&&globalThis.i||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(m){return function(M){return d([m,M])}}function d(m){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=m[0]&2?a.return:m[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,m[1])).done)return n;switch(a=0,n&&(m=[m[0]&2,n.value]),m[0]){case 0:case 1:n=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!n||m[1]>n[0]&&m[1]<n[3])){r.label=m[1];break}if(m[0]===6&&r.label<n[1]){r.label=n[1],n=m;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(m);break}n[2]&&r.ops.pop(),r.trys.pop();continue}m=t.call(e,r)}catch(M){m=[6,M],a=0}finally{i=n=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},R1=globalThis&&globalThis.V||function(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},gn=function(e){BM(t,e);function t(r,i,a,n){var u=e.call(this,r,i,n)||this;return u.container=a,u}return Object.defineProperty(t.prototype,"pointer",{get:function(){this.o===this.h&&zt();var r=this;return new Proxy([],{get:function(i,a){if(a==="0")return r.o.u;if(a==="1")return r.o.p},set:function(i,a,n){if(a!=="1")throw new TypeError("props must be 1");return r.o.p=n,!0}})},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(PM),KA=function(e){BM(t,e);function t(r,i,a){r===void 0&&(r=[]);var n=e.call(this,i,a)||this,u=n;return r.forEach(function(c){u.setElement(c[0],c[1])}),n}return t.prototype.P=function(r){return WA(this,function(i){switch(i.label){case 0:return r===void 0?[2]:[5,R1(this.P(r.K))];case 1:return i.sent(),[4,[r.u,r.p]];case 2:return i.sent(),[5,R1(this.P(r.N))];case 3:return i.sent(),[2]}})},t.prototype.begin=function(){return new gn(this.h.K||this.h,this.h,this)},t.prototype.end=function(){return new gn(this.h,this.h,this)},t.prototype.rBegin=function(){return new gn(this.h.N||this.h,this.h,this,1)},t.prototype.rEnd=function(){return new gn(this.h,this.h,this,1)},t.prototype.front=function(){if(this.M!==0){var r=this.h.K;return[r.u,r.p]}},t.prototype.back=function(){if(this.M!==0){var r=this.h.N;return[r.u,r.p]}},t.prototype.lowerBound=function(r){var i=this.U(this.W,r);return new gn(i,this.h,this)},t.prototype.upperBound=function(r){var i=this.X(this.W,r);return new gn(i,this.h,this)},t.prototype.reverseLowerBound=function(r){var i=this.Y(this.W,r);return new gn(i,this.h,this)},t.prototype.reverseUpperBound=function(r){var i=this.Z(this.W,r);return new gn(i,this.h,this)},t.prototype.setElement=function(r,i,a){return this.v(r,i,a)},t.prototype.find=function(r){var i=this.g(this.W,r);return new gn(i,this.h,this)},t.prototype.getElementByKey=function(r){var i=this.g(this.W,r);return i.p},t.prototype.union=function(r){var i=this;return r.forEach(function(a){i.setElement(a[0],a[1])}),this.M},t.prototype[Symbol.iterator]=function(){return this.P(this.W)},t}(IM);const VA=KA;function dl(e){var t=typeof e;return t==="object"&&e!==null||t==="function"}var LM=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),NM=function(e){LM(t,e);function t(r,i,a){var n=e.call(this,a)||this;return n.o=r,n.h=i,n.iteratorType===0?(n.pre=function(){return this.o.L===this.h&&zt(),this.o=this.o.L,this},n.next=function(){return this.o===this.h&&zt(),this.o=this.o.m,this}):(n.pre=function(){return this.o.m===this.h&&zt(),this.o=this.o.m,this},n.next=function(){return this.o===this.h&&zt(),this.o=this.o.L,this}),n}return t}(Bh),kM=function(e){LM(t,e);function t(){var r=e.call(this)||this;return r._=[],r.I={},r.HASH_TAG=Symbol("@@HASH_TAG"),Object.setPrototypeOf(r.I,null),r.h={},r.h.L=r.h.m=r.H=r.l=r.h,r}return t.prototype.G=function(r){var i=r.L,a=r.m;i.m=a,a.L=i,r===this.H&&(this.H=a),r===this.l&&(this.l=i),this.M-=1},t.prototype.v=function(r,i,a){a===void 0&&(a=dl(r));var n;if(a){var u=r[this.HASH_TAG];if(u!==void 0)return this._[u].p=i,this.M;Object.defineProperty(r,this.HASH_TAG,{value:this._.length,configurable:!0}),n={u:r,p:i,L:this.l,m:this.h},this._.push(n)}else{var c=this.I[r];if(c)return c.p=i,this.M;n={u:r,p:i,L:this.l,m:this.h},this.I[r]=n}return this.M===0?(this.H=n,this.h.m=n):this.l.m=n,this.l=n,this.h.L=n,++this.M},t.prototype.g=function(r,i){if(i===void 0&&(i=dl(r)),i){var a=r[this.HASH_TAG];return a===void 0?this.h:this._[a]}else return this.I[r]||this.h},t.prototype.clear=function(){var r=this.HASH_TAG;this._.forEach(function(i){delete i.u[r]}),this._=[],this.I={},Object.setPrototypeOf(this.I,null),this.M=0,this.H=this.l=this.h.L=this.h.m=this.h},t.prototype.eraseElementByKey=function(r,i){var a;if(i===void 0&&(i=dl(r)),i){var n=r[this.HASH_TAG];if(n===void 0)return!1;delete r[this.HASH_TAG],a=this._[n],delete this._[n]}else{if(a=this.I[r],a===void 0)return!1;delete this.I[r]}return this.G(a),!0},t.prototype.eraseElementByIterator=function(r){var i=r.o;return i===this.h&&zt(),this.G(i),r.next()},t.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;for(var i=this.H;r--;)i=i.m;return this.G(i),this.M},t}(Kv),$M=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),zA=globalThis&&globalThis.i||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(m){return function(M){return d([m,M])}}function d(m){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=m[0]&2?a.return:m[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,m[1])).done)return n;switch(a=0,n&&(m=[m[0]&2,n.value]),m[0]){case 0:case 1:n=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!n||m[1]>n[0]&&m[1]<n[3])){r.label=m[1];break}if(m[0]===6&&r.label<n[1]){r.label=n[1],n=m;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(m);break}n[2]&&r.ops.pop(),r.trys.pop();continue}m=t.call(e,r)}catch(M){m=[6,M],a=0}finally{i=n=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},rf=function(e){$M(t,e);function t(r,i,a,n){var u=e.call(this,r,i,n)||this;return u.container=a,u}return Object.defineProperty(t.prototype,"pointer",{get:function(){return this.o===this.h&&zt(),this.o.u},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(NM),GA=function(e){$M(t,e);function t(r){r===void 0&&(r=[]);var i=e.call(this)||this,a=i;return r.forEach(function(n){a.insert(n)}),i}return t.prototype.begin=function(){return new rf(this.H,this.h,this)},t.prototype.end=function(){return new rf(this.h,this.h,this)},t.prototype.rBegin=function(){return new rf(this.l,this.h,this,1)},t.prototype.rEnd=function(){return new rf(this.h,this.h,this,1)},t.prototype.front=function(){return this.H.u},t.prototype.back=function(){return this.l.u},t.prototype.insert=function(r,i){return this.v(r,void 0,i)},t.prototype.getElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;for(var i=this.H;r--;)i=i.m;return i.u},t.prototype.find=function(r,i){var a=this.g(r,i);return new rf(a,this.h,this)},t.prototype.forEach=function(r){for(var i=0,a=this.H;a!==this.h;)r(a.u,i++,this),a=a.m},t.prototype[Symbol.iterator]=function(){return function(){var r;return zA(this,function(i){switch(i.label){case 0:r=this.H,i.label=1;case 1:return r===this.h?[3,3]:[4,r.u];case 2:return i.sent(),r=r.m,[3,1];case 3:return[2]}})}.bind(this)()},t}(kM);const YA=GA;var DM=globalThis&&globalThis.t||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(i[n]=a[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),ZA=globalThis&&globalThis.i||function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},i,a,n,u;return u={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function c(m){return function(M){return d([m,M])}}function d(m){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,a&&(n=m[0]&2?a.return:m[0]?a.throw||((n=a.return)&&n.call(a),0):a.next)&&!(n=n.call(a,m[1])).done)return n;switch(a=0,n&&(m=[m[0]&2,n.value]),m[0]){case 0:case 1:n=m;break;case 4:return r.label++,{value:m[1],done:!1};case 5:r.label++,a=m[1],m=[0];continue;case 7:m=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(m[0]===6||m[0]===2)){r=0;continue}if(m[0]===3&&(!n||m[1]>n[0]&&m[1]<n[3])){r.label=m[1];break}if(m[0]===6&&r.label<n[1]){r.label=n[1],n=m;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(m);break}n[2]&&r.ops.pop(),r.trys.pop();continue}m=t.call(e,r)}catch(M){m=[6,M],a=0}finally{i=n=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},nf=function(e){DM(t,e);function t(r,i,a,n){var u=e.call(this,r,i,n)||this;return u.container=a,u}return Object.defineProperty(t.prototype,"pointer",{get:function(){this.o===this.h&&zt();var r=this;return new Proxy([],{get:function(i,a){if(a==="0")return r.o.u;if(a==="1")return r.o.p},set:function(i,a,n){if(a!=="1")throw new TypeError("props must be 1");return r.o.p=n,!0}})},enumerable:!1,configurable:!0}),t.prototype.copy=function(){return new t(this.o,this.h,this.container,this.iteratorType)},t}(NM),XA=function(e){DM(t,e);function t(r){r===void 0&&(r=[]);var i=e.call(this)||this,a=i;return r.forEach(function(n){a.setElement(n[0],n[1])}),i}return t.prototype.begin=function(){return new nf(this.H,this.h,this)},t.prototype.end=function(){return new nf(this.h,this.h,this)},t.prototype.rBegin=function(){return new nf(this.l,this.h,this,1)},t.prototype.rEnd=function(){return new nf(this.h,this.h,this,1)},t.prototype.front=function(){if(this.M!==0)return[this.H.u,this.H.p]},t.prototype.back=function(){if(this.M!==0)return[this.l.u,this.l.p]},t.prototype.setElement=function(r,i,a){return this.v(r,i,a)},t.prototype.getElementByKey=function(r,i){if(i===void 0&&(i=dl(r)),i){var a=r[this.HASH_TAG];return a!==void 0?this._[a].p:void 0}var n=this.I[r];return n?n.p:void 0},t.prototype.getElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;for(var i=this.H;r--;)i=i.m;return[i.u,i.p]},t.prototype.find=function(r,i){var a=this.g(r,i);return new nf(a,this.h,this)},t.prototype.forEach=function(r){for(var i=0,a=this.H;a!==this.h;)r([a.u,a.p],i++,this),a=a.m},t.prototype[Symbol.iterator]=function(){return function(){var r;return ZA(this,function(i){switch(i.label){case 0:r=this.H,i.label=1;case 1:return r===this.h?[3,3]:[4,[r.u,r.p]];case 2:return i.sent(),r=r.m,[3,1];case 3:return[2]}})}.bind(this)()},t}(kM);const JA=XA,QA=Object.freeze(Object.defineProperty({__proto__:null,Deque:LA,HashMap:JA,HashSet:YA,LinkList:OA,OrderedMap:VA,OrderedSet:qA,PriorityQueue:bA,Queue:gA,Stack:dA,Vector:RA},Symbol.toStringTag,{value:"Module"})),eT=tv(QA);var hp={exports:{}},fd,A1;function tT(){if(A1)return fd;A1=1;var e=1e3,t=e*60,r=t*60,i=r*24,a=i*7,n=i*365.25;fd=function(M,S){S=S||{};var R=typeof M;if(R==="string"&&M.length>0)return u(M);if(R==="number"&&isFinite(M))return S.long?d(M):c(M);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(M))};function u(M){if(M=String(M),!(M.length>100)){var S=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(M);if(S){var R=parseFloat(S[1]),C=(S[2]||"ms").toLowerCase();switch(C){case"years":case"year":case"yrs":case"yr":case"y":return R*n;case"weeks":case"week":case"w":return R*a;case"days":case"day":case"d":return R*i;case"hours":case"hour":case"hrs":case"hr":case"h":return R*r;case"minutes":case"minute":case"mins":case"min":case"m":return R*t;case"seconds":case"second":case"secs":case"sec":case"s":return R*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return R;default:return}}}}function c(M){var S=Math.abs(M);return S>=i?Math.round(M/i)+"d":S>=r?Math.round(M/r)+"h":S>=t?Math.round(M/t)+"m":S>=e?Math.round(M/e)+"s":M+"ms"}function d(M){var S=Math.abs(M);return S>=i?m(M,S,i,"day"):S>=r?m(M,S,r,"hour"):S>=t?m(M,S,t,"minute"):S>=e?m(M,S,e,"second"):M+" ms"}function m(M,S,R,C){var P=S>=R*1.5;return Math.round(M/R)+" "+C+(P?"s":"")}return fd}function rT(e){r.debug=r,r.default=r,r.coerce=d,r.disable=n,r.enable=a,r.enabled=u,r.humanize=tT(),r.destroy=m,Object.keys(e).forEach(M=>{r[M]=e[M]}),r.names=[],r.skips=[],r.formatters={};function t(M){let S=0;for(let R=0;R<M.length;R++)S=(S<<5)-S+M.charCodeAt(R),S|=0;return r.colors[Math.abs(S)%r.colors.length]}r.selectColor=t;function r(M){let S,R=null,C,P;function k(...L){if(!k.enabled)return;const I=k,B=Number(new Date),H=B-(S||B);I.diff=H,I.prev=S,I.curr=B,S=B,L[0]=r.coerce(L[0]),typeof L[0]!="string"&&L.unshift("%O");let F=0;L[0]=L[0].replace(/%([a-zA-Z%])/g,(Y,ie)=>{if(Y==="%%")return"%";F++;const J=r.formatters[ie];if(typeof J=="function"){const V=L[F];Y=J.call(I,V),L.splice(F,1),F--}return Y}),r.formatArgs.call(I,L),(I.log||r.log).apply(I,L)}return k.namespace=M,k.useColors=r.useColors(),k.color=r.selectColor(M),k.extend=i,k.destroy=r.destroy,Object.defineProperty(k,"enabled",{enumerable:!0,configurable:!1,get:()=>R!==null?R:(C!==r.namespaces&&(C=r.namespaces,P=r.enabled(M)),P),set:L=>{R=L}}),typeof r.init=="function"&&r.init(k),k}function i(M,S){const R=r(this.namespace+(typeof S>"u"?":":S)+M);return R.log=this.log,R}function a(M){r.save(M),r.namespaces=M,r.names=[],r.skips=[];let S;const R=(typeof M=="string"?M:"").split(/[\s,]+/),C=R.length;for(S=0;S<C;S++)R[S]&&(M=R[S].replace(/\*/g,".*?"),M[0]==="-"?r.skips.push(new RegExp("^"+M.slice(1)+"$")):r.names.push(new RegExp("^"+M+"$")))}function n(){const M=[...r.names.map(c),...r.skips.map(c).map(S=>"-"+S)].join(",");return r.enable(""),M}function u(M){if(M[M.length-1]==="*")return!0;let S,R;for(S=0,R=r.skips.length;S<R;S++)if(r.skips[S].test(M))return!1;for(S=0,R=r.names.length;S<R;S++)if(r.names[S].test(M))return!0;return!1}function c(M){return M.toString().substring(2,M.toString().length-2).replace(/\.\*\?$/,"*")}function d(M){return M instanceof Error?M.stack||M.message:M}function m(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}var iT=rT;(function(e,t){t.formatArgs=i,t.save=a,t.load=n,t.useColors=r,t.storage=u(),t.destroy=(()=>{let d=!1;return()=>{d||(d=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function r(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function i(d){if(d[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+d[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const m="color: "+this.color;d.splice(1,0,m,"color: inherit");let M=0,S=0;d[0].replace(/%[a-zA-Z%]/g,R=>{R!=="%%"&&(M++,R==="%c"&&(S=M))}),d.splice(S,0,m)}t.log=console.debug||console.log||(()=>{});function a(d){try{d?t.storage.setItem("debug",d):t.storage.removeItem("debug")}catch{}}function n(){let d;try{d=t.storage.getItem("debug")}catch{}return!d&&typeof we<"u"&&"env"in we&&(d={}.DEBUG),d}function u(){try{return localStorage}catch{}}e.exports=iT(t);const{formatters:c}=e.exports;c.j=function(d){try{return JSON.stringify(d)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}}})(hp,hp.exports);var zn=hp.exports;const nT=eT.OrderedSet,Qi=zn("number-allocator:trace"),oT=zn("number-allocator:error");function Lr(e,t){this.low=e,this.high=t}Lr.prototype.equals=function(e){return this.low===e.low&&this.high===e.high};Lr.prototype.compare=function(e){return this.low<e.low&&this.high<e.low?-1:e.low<this.low&&e.high<this.low?1:0};function sn(e,t){if(!(this instanceof sn))return new sn(e,t);this.min=e,this.max=t,this.ss=new nT([],(r,i)=>r.compare(i)),Qi("Create"),this.clear()}sn.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low};sn.prototype.alloc=function(){if(this.ss.size()===0)return Qi("alloc():empty"),null;const e=this.ss.begin(),t=e.pointer.low,r=e.pointer.high,i=t;return i+1<=r?this.ss.updateKeyByIterator(e,new Lr(t+1,r)):this.ss.eraseElementByPos(0),Qi("alloc():"+i),i};sn.prototype.use=function(e){const t=new Lr(e,e),r=this.ss.lowerBound(t);if(!r.equals(this.ss.end())){const i=r.pointer.low,a=r.pointer.high;return r.pointer.equals(t)?(this.ss.eraseElementByIterator(r),Qi("use():"+e),!0):i>e?!1:i===e?(this.ss.updateKeyByIterator(r,new Lr(i+1,a)),Qi("use():"+e),!0):a===e?(this.ss.updateKeyByIterator(r,new Lr(i,a-1)),Qi("use():"+e),!0):(this.ss.updateKeyByIterator(r,new Lr(e+1,a)),this.ss.insert(new Lr(i,e-1)),Qi("use():"+e),!0)}return Qi("use():failed"),!1};sn.prototype.free=function(e){if(e<this.min||e>this.max){oT("free():"+e+" is out of range");return}const t=new Lr(e,e),r=this.ss.upperBound(t);if(r.equals(this.ss.end())){if(r.equals(this.ss.begin())){this.ss.insert(t);return}r.pre();const i=r.pointer.high;r.pointer.high+1===e?this.ss.updateKeyByIterator(r,new Lr(i,e)):this.ss.insert(t)}else if(r.equals(this.ss.begin()))if(e+1===r.pointer.low){const i=r.pointer.high;this.ss.updateKeyByIterator(r,new Lr(e,i))}else this.ss.insert(t);else{const i=r.pointer.low,a=r.pointer.high;r.pre();const n=r.pointer.low;r.pointer.high+1===e?e+1===i?(this.ss.eraseElementByIterator(r),this.ss.updateKeyByIterator(r,new Lr(n,a))):this.ss.updateKeyByIterator(r,new Lr(n,e)):e+1===i?(this.ss.eraseElementByIterator(r.next()),this.ss.insert(new Lr(e,a))):this.ss.insert(t)}Qi("free():"+e)};sn.prototype.clear=function(){Qi("clear()"),this.ss.clear(),this.ss.insert(new Lr(this.min,this.max))};sn.prototype.intervalCount=function(){return this.ss.size()};sn.prototype.dump=function(){console.log("length:"+this.ss.size());for(const e of this.ss)console.log(e)};var aT=sn;const sT=aT;xM.NumberAllocator=sT;const fT=uA,uT=xM.NumberAllocator;function To(e){if(!(this instanceof To))return new To(e);e>0&&(this.aliasToTopic=new fT({max:e}),this.topicToAlias={},this.numberAllocator=new uT(1,e),this.max=e,this.length=0)}To.prototype.put=function(e,t){if(t===0||t>this.max)return!1;const r=this.aliasToTopic.get(t);return r&&delete this.topicToAlias[r],this.aliasToTopic.set(t,e),this.topicToAlias[e]=t,this.numberAllocator.use(t),this.length=this.aliasToTopic.length,!0};To.prototype.getTopicByAlias=function(e){return this.aliasToTopic.get(e)};To.prototype.getAliasByTopic=function(e){const t=this.topicToAlias[e];return typeof t<"u"&&this.aliasToTopic.get(t),t};To.prototype.clear=function(){this.aliasToTopic.reset(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0};To.prototype.getLruAlias=function(){const e=this.numberAllocator.firstVacant();return e||this.aliasToTopic.keys()[this.aliasToTopic.length-1]};var lT=To,Nh={},kh={exports:{}},cp={exports:{}},FM=Or.EventEmitter,ud,T1;function hT(){if(T1)return ud;T1=1;function e(P,k){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(P);k&&(I=I.filter(function(B){return Object.getOwnPropertyDescriptor(P,B).enumerable})),L.push.apply(L,I)}return L}function t(P){for(var k=1;k<arguments.length;k++){var L=arguments[k]!=null?arguments[k]:{};k%2?e(Object(L),!0).forEach(function(I){r(P,I,L[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):e(Object(L)).forEach(function(I){Object.defineProperty(P,I,Object.getOwnPropertyDescriptor(L,I))})}return P}function r(P,k,L){return k=u(k),k in P?Object.defineProperty(P,k,{value:L,enumerable:!0,configurable:!0,writable:!0}):P[k]=L,P}function i(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}function a(P,k){for(var L=0;L<k.length;L++){var I=k[L];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(P,u(I.key),I)}}function n(P,k,L){return k&&a(P.prototype,k),L&&a(P,L),Object.defineProperty(P,"prototype",{writable:!1}),P}function u(P){var k=c(P,"string");return typeof k=="symbol"?k:String(k)}function c(P,k){if(typeof P!="object"||P===null)return P;var L=P[Symbol.toPrimitive];if(L!==void 0){var I=L.call(P,k||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(P)}var d=ke,m=d.Buffer,M=ei,S=M.inspect,R=S&&S.custom||"inspect";function C(P,k,L){m.prototype.copy.call(P,k,L)}return ud=function(){function P(){i(this,P),this.head=null,this.tail=null,this.length=0}return n(P,[{key:"push",value:function(L){var I={data:L,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(L){var I={data:L,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var I=this.head,B=""+I.data;I=I.next;)B+=L+I.data;return B}},{key:"concat",value:function(L){if(this.length===0)return m.alloc(0);for(var I=m.allocUnsafe(L>>>0),B=this.head,H=0;B;)C(B.data,I,H),H+=B.data.length,B=B.next;return I}},{key:"consume",value:function(L,I){var B;return L<this.head.data.length?(B=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?B=this.shift():B=I?this._getString(L):this._getBuffer(L),B}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var I=this.head,B=1,H=I.data;for(L-=H.length;I=I.next;){var F=I.data,W=L>F.length?F.length:L;if(W===F.length?H+=F:H+=F.slice(0,L),L-=W,L===0){W===F.length?(++B,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=F.slice(W));break}++B}return this.length-=B,H}},{key:"_getBuffer",value:function(L){var I=m.allocUnsafe(L),B=this.head,H=1;for(B.data.copy(I),L-=B.data.length;B=B.next;){var F=B.data,W=L>F.length?F.length:L;if(F.copy(I,I.length-L,0,W),L-=W,L===0){W===F.length?(++H,B.next?this.head=B.next:this.head=this.tail=null):(this.head=B,B.data=F.slice(W));break}++H}return this.length-=H,I}},{key:R,value:function(L,I){return S(this,t(t({},I),{},{depth:0,customInspect:!1}))}}]),P}(),ud}function cT(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,we.nextTick(dp,this,e)):we.nextTick(dp,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(n){!t&&n?r._writableState?r._writableState.errorEmitted?we.nextTick(pl,r):(r._writableState.errorEmitted=!0,we.nextTick(O1,r,n)):we.nextTick(O1,r,n):t?(we.nextTick(pl,r),t(n)):we.nextTick(pl,r)}),this)}function O1(e,t){dp(e,t),pl(e)}function pl(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function dT(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function dp(e,t){e.emit("error",t)}function pT(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}var jM={destroy:cT,undestroy:dT,errorOrDestroy:pT},Ma={};function vT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var UM={};function bi(e,t,r){r||(r=Error);function i(n,u,c){return typeof t=="string"?t:t(n,u,c)}var a=function(n){vT(u,n);function u(c,d,m){return n.call(this,i(c,d,m))||this}return u}(r);a.prototype.name=r.name,a.prototype.code=e,UM[e]=a}function I1(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function gT(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function mT(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function yT(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}bi("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);bi("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&gT(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var a;if(mT(e," argument"))a="The ".concat(e," ").concat(i," ").concat(I1(t,"type"));else{var n=yT(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(n," ").concat(i," ").concat(I1(t,"type"))}return a+=". Received type ".concat(typeof r),a},TypeError);bi("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");bi("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});bi("ERR_STREAM_PREMATURE_CLOSE","Premature close");bi("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});bi("ERR_MULTIPLE_CALLBACK","Callback called multiple times");bi("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");bi("ERR_STREAM_WRITE_AFTER_END","write after end");bi("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);bi("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);bi("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Ma.codes=UM;var bT=Ma.codes.ERR_INVALID_OPT_VALUE;function wT(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function _T(e,t,r,i){var a=wT(t,i,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var n=i?r:"highWaterMark";throw new bT(n,a)}return Math.floor(a)}return e.objectMode?16:16*1024}var HM={getHighWaterMark:_T},ld,P1;function qM(){if(P1)return ld;P1=1,ld=J;function e(A){var E=this;this.next=null,this.entry=null,this.finish=function(){ee(E,A)}}var t;J.WritableState=Y;var r={deprecate:ks},i=FM,a=ke.Buffer,n=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(A){return a.from(A)}function c(A){return a.isBuffer(A)||A instanceof n}var d=jM,m=HM,M=m.getHighWaterMark,S=Ma.codes,R=S.ERR_INVALID_ARG_TYPE,C=S.ERR_METHOD_NOT_IMPLEMENTED,P=S.ERR_MULTIPLE_CALLBACK,k=S.ERR_STREAM_CANNOT_PIPE,L=S.ERR_STREAM_DESTROYED,I=S.ERR_STREAM_NULL_VALUES,B=S.ERR_STREAM_WRITE_AFTER_END,H=S.ERR_UNKNOWN_ENCODING,F=d.errorOrDestroy;Ze(J,i);function W(){}function Y(A,E,U){t=t||ds(),A=A||{},typeof U!="boolean"&&(U=E instanceof t),this.objectMode=!!A.objectMode,U&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=M(this,A,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=A.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){p(E,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}Y.prototype.getBuffer=function(){for(var E=this.bufferedRequest,U=[];E;)U.push(E),E=E.next;return U},function(){try{Object.defineProperty(Y.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ie;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ie=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(E){return ie.call(this,E)?!0:this!==J?!1:E&&E._writableState instanceof Y}})):ie=function(E){return E instanceof this};function J(A){t=t||ds();var E=this instanceof t;if(!E&&!ie.call(J,this))return new J(A);this._writableState=new Y(A,this,E),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),i.call(this)}J.prototype.pipe=function(){F(this,new k)};function V(A,E){var U=new B;F(A,U),we.nextTick(E,U)}function oe(A,E,U,K){var Z;return U===null?Z=new I:typeof U!="string"&&!E.objectMode&&(Z=new R("chunk",["string","Buffer"],U)),Z?(F(A,Z),we.nextTick(K,Z),!1):!0}J.prototype.write=function(A,E,U){var K=this._writableState,Z=!1,b=!K.objectMode&&c(A);return b&&!a.isBuffer(A)&&(A=u(A)),typeof E=="function"&&(U=E,E=null),b?E="buffer":E||(E=K.defaultEncoding),typeof U!="function"&&(U=W),K.ending?V(this,U):(b||oe(this,K,A,U))&&(K.pendingcb++,Z=o(this,K,b,A,E,U)),Z},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&g(this,A))},J.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new H(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _(A,E,U){return!A.objectMode&&A.decodeStrings!==!1&&typeof E=="string"&&(E=a.from(E,U)),E}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(A,E,U,K,Z,b){if(!U){var y=_(E,K,Z);K!==y&&(U=!0,Z="buffer",K=y)}var O=E.objectMode?1:K.length;E.length+=O;var q=E.length<E.highWaterMark;if(q||(E.needDrain=!0),E.writing||E.corked){var X=E.lastBufferedRequest;E.lastBufferedRequest={chunk:K,encoding:Z,isBuf:U,callback:b,next:null},X?X.next=E.lastBufferedRequest:E.bufferedRequest=E.lastBufferedRequest,E.bufferedRequestCount+=1}else f(A,E,!1,O,K,Z,b);return q}function f(A,E,U,K,Z,b,y){E.writelen=K,E.writecb=y,E.writing=!0,E.sync=!0,E.destroyed?E.onwrite(new L("write")):U?A._writev(Z,E.onwrite):A._write(Z,b,E.onwrite),E.sync=!1}function l(A,E,U,K,Z){--E.pendingcb,U?(we.nextTick(Z,K),we.nextTick($,A,E),A._writableState.errorEmitted=!0,F(A,K)):(Z(K),A._writableState.errorEmitted=!0,F(A,K),$(A,E))}function h(A){A.writing=!1,A.writecb=null,A.length-=A.writelen,A.writelen=0}function p(A,E){var U=A._writableState,K=U.sync,Z=U.writecb;if(typeof Z!="function")throw new P;if(h(U),E)l(A,U,K,E,Z);else{var b=s(U)||A.destroyed;!b&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&g(A,U),K?we.nextTick(w,A,U,b,Z):w(A,U,b,Z)}}function w(A,E,U,K){U||x(A,E),E.pendingcb--,K(),$(A,E)}function x(A,E){E.length===0&&E.needDrain&&(E.needDrain=!1,A.emit("drain"))}function g(A,E){E.bufferProcessing=!0;var U=E.bufferedRequest;if(A._writev&&U&&U.next){var K=E.bufferedRequestCount,Z=new Array(K),b=E.corkedRequestsFree;b.entry=U;for(var y=0,O=!0;U;)Z[y]=U,U.isBuf||(O=!1),U=U.next,y+=1;Z.allBuffers=O,f(A,E,!0,E.length,Z,"",b.finish),E.pendingcb++,E.lastBufferedRequest=null,b.next?(E.corkedRequestsFree=b.next,b.next=null):E.corkedRequestsFree=new e(E),E.bufferedRequestCount=0}else{for(;U;){var q=U.chunk,X=U.encoding,D=U.callback,N=E.objectMode?1:q.length;if(f(A,E,!1,N,q,X,D),U=U.next,E.bufferedRequestCount--,E.writing)break}U===null&&(E.lastBufferedRequest=null)}E.bufferedRequest=U,E.bufferProcessing=!1}J.prototype._write=function(A,E,U){U(new C("_write()"))},J.prototype._writev=null,J.prototype.end=function(A,E,U){var K=this._writableState;return typeof A=="function"?(U=A,A=null,E=null):typeof E=="function"&&(U=E,E=null),A!=null&&this.write(A,E),K.corked&&(K.corked=1,this.uncork()),K.ending||G(this,K,U),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function v(A,E){A._final(function(U){E.pendingcb--,U&&F(A,U),E.prefinished=!0,A.emit("prefinish"),$(A,E)})}function T(A,E){!E.prefinished&&!E.finalCalled&&(typeof A._final=="function"&&!E.destroyed?(E.pendingcb++,E.finalCalled=!0,we.nextTick(v,A,E)):(E.prefinished=!0,A.emit("prefinish")))}function $(A,E){var U=s(E);if(U&&(T(A,E),E.pendingcb===0&&(E.finished=!0,A.emit("finish"),E.autoDestroy))){var K=A._readableState;(!K||K.autoDestroy&&K.endEmitted)&&A.destroy()}return U}function G(A,E,U){E.ending=!0,$(A,E),U&&(E.finished?we.nextTick(U):A.once("finish",U)),E.ended=!0,A.writable=!1}function ee(A,E,U){var K=A.entry;for(A.entry=null;K;){var Z=K.callback;E.pendingcb--,Z(U),K=K.next}E.corkedRequestsFree.next=A}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),J.prototype.destroy=d.destroy,J.prototype._undestroy=d.undestroy,J.prototype._destroy=function(A,E){E(A)},ld}var hd,C1;function ds(){if(C1)return hd;C1=1;var e=Object.keys||function(m){var M=[];for(var S in m)M.push(S);return M};hd=u;var t=KM(),r=qM();Ze(u,t);for(var i=e(r.prototype),a=0;a<i.length;a++){var n=i[a];u.prototype[n]||(u.prototype[n]=r.prototype[n])}function u(m){if(!(this instanceof u))return new u(m);t.call(this,m),r.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||we.nextTick(d,this)}function d(m){m.end()}return Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(M){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=M,this._writableState.destroyed=M)}}),hd}var B1=Ma.codes.ERR_STREAM_PREMATURE_CLOSE;function MT(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];e.apply(this,i)}}}function ST(){}function xT(e){return e.setHeader&&typeof e.abort=="function"}function WM(e,t,r){if(typeof t=="function")return WM(e,null,t);t||(t={}),r=MT(r||ST);var i=t.readable||t.readable!==!1&&e.readable,a=t.writable||t.writable!==!1&&e.writable,n=function(){e.writable||c()},u=e._writableState&&e._writableState.finished,c=function(){a=!1,u=!0,i||r.call(e)},d=e._readableState&&e._readableState.endEmitted,m=function(){i=!1,d=!0,a||r.call(e)},M=function(P){r.call(e,P)},S=function(){var P;if(i&&!d)return(!e._readableState||!e._readableState.ended)&&(P=new B1),r.call(e,P);if(a&&!u)return(!e._writableState||!e._writableState.ended)&&(P=new B1),r.call(e,P)},R=function(){e.req.on("finish",c)};return xT(e)?(e.on("complete",c),e.on("abort",S),e.req?R():e.on("request",R)):a&&!e._writableState&&(e.on("end",n),e.on("close",n)),e.on("end",m),e.on("finish",c),t.error!==!1&&e.on("error",M),e.on("close",S),function(){e.removeListener("complete",c),e.removeListener("abort",S),e.removeListener("request",R),e.req&&e.req.removeListener("finish",c),e.removeListener("end",n),e.removeListener("close",n),e.removeListener("finish",c),e.removeListener("end",m),e.removeListener("error",M),e.removeListener("close",S)}}var zv=WM,cd,L1;function ET(){if(L1)return cd;L1=1;var e;function t(H,F,W){return F=r(F),F in H?Object.defineProperty(H,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):H[F]=W,H}function r(H){var F=i(H,"string");return typeof F=="symbol"?F:String(F)}function i(H,F){if(typeof H!="object"||H===null)return H;var W=H[Symbol.toPrimitive];if(W!==void 0){var Y=W.call(H,F||"default");if(typeof Y!="object")return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(H)}var a=zv,n=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),M=Symbol("handlePromise"),S=Symbol("stream");function R(H,F){return{value:H,done:F}}function C(H){var F=H[n];if(F!==null){var W=H[S].read();W!==null&&(H[m]=null,H[n]=null,H[u]=null,F(R(W,!1)))}}function P(H){we.nextTick(C,H)}function k(H,F){return function(W,Y){H.then(function(){if(F[d]){W(R(void 0,!0));return}F[M](W,Y)},Y)}}var L=Object.getPrototypeOf(function(){}),I=Object.setPrototypeOf((e={get stream(){return this[S]},next:function(){var F=this,W=this[c];if(W!==null)return Promise.reject(W);if(this[d])return Promise.resolve(R(void 0,!0));if(this[S].destroyed)return new Promise(function(V,oe){we.nextTick(function(){F[c]?oe(F[c]):V(R(void 0,!0))})});var Y=this[m],ie;if(Y)ie=new Promise(k(Y,this));else{var J=this[S].read();if(J!==null)return Promise.resolve(R(J,!1));ie=new Promise(this[M])}return this[m]=ie,ie}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var F=this;return new Promise(function(W,Y){F[S].destroy(null,function(ie){if(ie){Y(ie);return}W(R(void 0,!0))})})}),e),L),B=function(F){var W,Y=Object.create(I,(W={},t(W,S,{value:F,writable:!0}),t(W,n,{value:null,writable:!0}),t(W,u,{value:null,writable:!0}),t(W,c,{value:null,writable:!0}),t(W,d,{value:F._readableState.endEmitted,writable:!0}),t(W,M,{value:function(J,V){var oe=Y[S].read();oe?(Y[m]=null,Y[n]=null,Y[u]=null,J(R(oe,!1))):(Y[n]=J,Y[u]=V)},writable:!0}),W));return Y[m]=null,a(F,function(ie){if(ie&&ie.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=Y[u];J!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,J(ie)),Y[c]=ie;return}var V=Y[n];V!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,V(R(void 0,!0))),Y[d]=!0}),F.on("readable",P.bind(null,Y)),Y};return cd=B,cd}var dd,N1;function RT(){return N1||(N1=1,dd=function(){throw new Error("Readable.from is not available in the browser")}),dd}var pd,k1;function KM(){if(k1)return pd;k1=1,pd=V;var e;V.ReadableState=J,Or.EventEmitter;var t=function(y,O){return y.listeners(O).length},r=FM,i=ke.Buffer,a=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function n(b){return i.from(b)}function u(b){return i.isBuffer(b)||b instanceof a}var c=ei,d;c&&c.debuglog?d=c.debuglog("stream"):d=function(){};var m=hT(),M=jM,S=HM,R=S.getHighWaterMark,C=Ma.codes,P=C.ERR_INVALID_ARG_TYPE,k=C.ERR_STREAM_PUSH_AFTER_EOF,L=C.ERR_METHOD_NOT_IMPLEMENTED,I=C.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,B,H,F;Ze(V,r);var W=M.errorOrDestroy,Y=["error","close","destroy","pause","resume"];function ie(b,y,O){if(typeof b.prependListener=="function")return b.prependListener(y,O);!b._events||!b._events[y]?b.on(y,O):Array.isArray(b._events[y])?b._events[y].unshift(O):b._events[y]=[O,b._events[y]]}function J(b,y,O){e=e||ds(),b=b||{},typeof O!="boolean"&&(O=y instanceof e),this.objectMode=!!b.objectMode,O&&(this.objectMode=this.objectMode||!!b.readableObjectMode),this.highWaterMark=R(this,b,"readableHighWaterMark",O),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=b.emitClose!==!1,this.autoDestroy=!!b.autoDestroy,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(B||(B=Xr().StringDecoder),this.decoder=new B(b.encoding),this.encoding=b.encoding)}function V(b){if(e=e||ds(),!(this instanceof V))return new V(b);var y=this instanceof e;this._readableState=new J(b,this,y),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),r.call(this)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(y){this._readableState&&(this._readableState.destroyed=y)}}),V.prototype.destroy=M.destroy,V.prototype._undestroy=M.undestroy,V.prototype._destroy=function(b,y){y(b)},V.prototype.push=function(b,y){var O=this._readableState,q;return O.objectMode?q=!0:typeof b=="string"&&(y=y||O.defaultEncoding,y!==O.encoding&&(b=i.from(b,y),y=""),q=!0),oe(this,b,y,!1,q)},V.prototype.unshift=function(b){return oe(this,b,null,!0,!1)};function oe(b,y,O,q,X){d("readableAddChunk",y);var D=b._readableState;if(y===null)D.reading=!1,p(b,D);else{var N;if(X||(N=o(D,y)),N)W(b,N);else if(D.objectMode||y&&y.length>0)if(typeof y!="string"&&!D.objectMode&&Object.getPrototypeOf(y)!==i.prototype&&(y=n(y)),q)D.endEmitted?W(b,new I):_(b,D,y,!0);else if(D.ended)W(b,new k);else{if(D.destroyed)return!1;D.reading=!1,D.decoder&&!O?(y=D.decoder.write(y),D.objectMode||y.length!==0?_(b,D,y,!1):g(b,D)):_(b,D,y,!1)}else q||(D.reading=!1,g(b,D))}return!D.ended&&(D.length<D.highWaterMark||D.length===0)}function _(b,y,O,q){y.flowing&&y.length===0&&!y.sync?(y.awaitDrain=0,b.emit("data",O)):(y.length+=y.objectMode?1:O.length,q?y.buffer.unshift(O):y.buffer.push(O),y.needReadable&&w(b)),g(b,y)}function o(b,y){var O;return!u(y)&&typeof y!="string"&&y!==void 0&&!b.objectMode&&(O=new P("chunk",["string","Buffer","Uint8Array"],y)),O}V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(b){B||(B=Xr().StringDecoder);var y=new B(b);this._readableState.decoder=y,this._readableState.encoding=this._readableState.decoder.encoding;for(var O=this._readableState.buffer.head,q="";O!==null;)q+=y.write(O.data),O=O.next;return this._readableState.buffer.clear(),q!==""&&this._readableState.buffer.push(q),this._readableState.length=q.length,this};var f=1073741824;function l(b){return b>=f?b=f:(b--,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,b|=b>>>16,b++),b}function h(b,y){return b<=0||y.length===0&&y.ended?0:y.objectMode?1:b!==b?y.flowing&&y.length?y.buffer.head.data.length:y.length:(b>y.highWaterMark&&(y.highWaterMark=l(b)),b<=y.length?b:y.ended?y.length:(y.needReadable=!0,0))}V.prototype.read=function(b){d("read",b),b=parseInt(b,10);var y=this._readableState,O=b;if(b!==0&&(y.emittedReadable=!1),b===0&&y.needReadable&&((y.highWaterMark!==0?y.length>=y.highWaterMark:y.length>0)||y.ended))return d("read: emitReadable",y.length,y.ended),y.length===0&&y.ended?U(this):w(this),null;if(b=h(b,y),b===0&&y.ended)return y.length===0&&U(this),null;var q=y.needReadable;d("need readable",q),(y.length===0||y.length-b<y.highWaterMark)&&(q=!0,d("length less than watermark",q)),y.ended||y.reading?(q=!1,d("reading or ended",q)):q&&(d("do read"),y.reading=!0,y.sync=!0,y.length===0&&(y.needReadable=!0),this._read(y.highWaterMark),y.sync=!1,y.reading||(b=h(O,y)));var X;return b>0?X=E(b,y):X=null,X===null?(y.needReadable=y.length<=y.highWaterMark,b=0):(y.length-=b,y.awaitDrain=0),y.length===0&&(y.ended||(y.needReadable=!0),O!==b&&y.ended&&U(this)),X!==null&&this.emit("data",X),X};function p(b,y){if(d("onEofChunk"),!y.ended){if(y.decoder){var O=y.decoder.end();O&&O.length&&(y.buffer.push(O),y.length+=y.objectMode?1:O.length)}y.ended=!0,y.sync?w(b):(y.needReadable=!1,y.emittedReadable||(y.emittedReadable=!0,x(b)))}}function w(b){var y=b._readableState;d("emitReadable",y.needReadable,y.emittedReadable),y.needReadable=!1,y.emittedReadable||(d("emitReadable",y.flowing),y.emittedReadable=!0,we.nextTick(x,b))}function x(b){var y=b._readableState;d("emitReadable_",y.destroyed,y.length,y.ended),!y.destroyed&&(y.length||y.ended)&&(b.emit("readable"),y.emittedReadable=!1),y.needReadable=!y.flowing&&!y.ended&&y.length<=y.highWaterMark,A(b)}function g(b,y){y.readingMore||(y.readingMore=!0,we.nextTick(s,b,y))}function s(b,y){for(;!y.reading&&!y.ended&&(y.length<y.highWaterMark||y.flowing&&y.length===0);){var O=y.length;if(d("maybeReadMore read 0"),b.read(0),O===y.length)break}y.readingMore=!1}V.prototype._read=function(b){W(this,new L("_read()"))},V.prototype.pipe=function(b,y){var O=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=b;break;case 1:q.pipes=[q.pipes,b];break;default:q.pipes.push(b);break}q.pipesCount+=1,d("pipe count=%d opts=%j",q.pipesCount,y);var X=(!y||y.end!==!1)&&b!==we.stdout&&b!==we.stderr,D=X?j:le;q.endEmitted?we.nextTick(D):O.once("end",D),b.on("unpipe",N);function N(ce,pe){d("onunpipe"),ce===O&&pe&&pe.hasUnpiped===!1&&(pe.hasUnpiped=!0,te())}function j(){d("onend"),b.end()}var z=v(O);b.on("drain",z);var se=!1;function te(){d("cleanup"),b.removeListener("close",Q),b.removeListener("finish",ue),b.removeListener("drain",z),b.removeListener("error",Ee),b.removeListener("unpipe",N),O.removeListener("end",j),O.removeListener("end",le),O.removeListener("data",ne),se=!0,q.awaitDrain&&(!b._writableState||b._writableState.needDrain)&&z()}O.on("data",ne);function ne(ce){d("ondata");var pe=b.write(ce);d("dest.write",pe),pe===!1&&((q.pipesCount===1&&q.pipes===b||q.pipesCount>1&&Z(q.pipes,b)!==-1)&&!se&&(d("false write response, pause",q.awaitDrain),q.awaitDrain++),O.pause())}function Ee(ce){d("onerror",ce),le(),b.removeListener("error",Ee),t(b,"error")===0&&W(b,ce)}ie(b,"error",Ee);function Q(){b.removeListener("finish",ue),le()}b.once("close",Q);function ue(){d("onfinish"),b.removeListener("close",Q),le()}b.once("finish",ue);function le(){d("unpipe"),O.unpipe(b)}return b.emit("pipe",O),q.flowing||(d("pipe resume"),O.resume()),b};function v(b){return function(){var O=b._readableState;d("pipeOnDrain",O.awaitDrain),O.awaitDrain&&O.awaitDrain--,O.awaitDrain===0&&t(b,"data")&&(O.flowing=!0,A(b))}}V.prototype.unpipe=function(b){var y=this._readableState,O={hasUnpiped:!1};if(y.pipesCount===0)return this;if(y.pipesCount===1)return b&&b!==y.pipes?this:(b||(b=y.pipes),y.pipes=null,y.pipesCount=0,y.flowing=!1,b&&b.emit("unpipe",this,O),this);if(!b){var q=y.pipes,X=y.pipesCount;y.pipes=null,y.pipesCount=0,y.flowing=!1;for(var D=0;D<X;D++)q[D].emit("unpipe",this,{hasUnpiped:!1});return this}var N=Z(y.pipes,b);return N===-1?this:(y.pipes.splice(N,1),y.pipesCount-=1,y.pipesCount===1&&(y.pipes=y.pipes[0]),b.emit("unpipe",this,O),this)},V.prototype.on=function(b,y){var O=r.prototype.on.call(this,b,y),q=this._readableState;return b==="data"?(q.readableListening=this.listenerCount("readable")>0,q.flowing!==!1&&this.resume()):b==="readable"&&!q.endEmitted&&!q.readableListening&&(q.readableListening=q.needReadable=!0,q.flowing=!1,q.emittedReadable=!1,d("on readable",q.length,q.reading),q.length?w(this):q.reading||we.nextTick($,this)),O},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(b,y){var O=r.prototype.removeListener.call(this,b,y);return b==="readable"&&we.nextTick(T,this),O},V.prototype.removeAllListeners=function(b){var y=r.prototype.removeAllListeners.apply(this,arguments);return(b==="readable"||b===void 0)&&we.nextTick(T,this),y};function T(b){var y=b._readableState;y.readableListening=b.listenerCount("readable")>0,y.resumeScheduled&&!y.paused?y.flowing=!0:b.listenerCount("data")>0&&b.resume()}function $(b){d("readable nexttick read 0"),b.read(0)}V.prototype.resume=function(){var b=this._readableState;return b.flowing||(d("resume"),b.flowing=!b.readableListening,G(this,b)),b.paused=!1,this};function G(b,y){y.resumeScheduled||(y.resumeScheduled=!0,we.nextTick(ee,b,y))}function ee(b,y){d("resume",y.reading),y.reading||b.read(0),y.resumeScheduled=!1,b.emit("resume"),A(b),y.flowing&&!y.reading&&b.read(0)}V.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function A(b){var y=b._readableState;for(d("flow",y.flowing);y.flowing&&b.read()!==null;);}V.prototype.wrap=function(b){var y=this,O=this._readableState,q=!1;b.on("end",function(){if(d("wrapped end"),O.decoder&&!O.ended){var N=O.decoder.end();N&&N.length&&y.push(N)}y.push(null)}),b.on("data",function(N){if(d("wrapped data"),O.decoder&&(N=O.decoder.write(N)),!(O.objectMode&&N==null)&&!(!O.objectMode&&(!N||!N.length))){var j=y.push(N);j||(q=!0,b.pause())}});for(var X in b)this[X]===void 0&&typeof b[X]=="function"&&(this[X]=function(j){return function(){return b[j].apply(b,arguments)}}(X));for(var D=0;D<Y.length;D++)b.on(Y[D],this.emit.bind(this,Y[D]));return this._read=function(N){d("wrapped _read",N),q&&(q=!1,b.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return H===void 0&&(H=ET()),H(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(y){this._readableState&&(this._readableState.flowing=y)}}),V._fromList=E,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function E(b,y){if(y.length===0)return null;var O;return y.objectMode?O=y.buffer.shift():!b||b>=y.length?(y.decoder?O=y.buffer.join(""):y.buffer.length===1?O=y.buffer.first():O=y.buffer.concat(y.length),y.buffer.clear()):O=y.buffer.consume(b,y.decoder),O}function U(b){var y=b._readableState;d("endReadable",y.endEmitted),y.endEmitted||(y.ended=!0,we.nextTick(K,y,b))}function K(b,y){if(d("endReadableNT",b.endEmitted,b.length),!b.endEmitted&&b.length===0&&(b.endEmitted=!0,y.readable=!1,y.emit("end"),b.autoDestroy)){var O=y._writableState;(!O||O.autoDestroy&&O.finished)&&y.destroy()}}typeof Symbol=="function"&&(V.from=function(b,y){return F===void 0&&(F=RT()),F(V,b,y)});function Z(b,y){for(var O=0,q=b.length;O<q;O++)if(b[O]===y)return O;return-1}return pd}var VM=$n,$h=Ma.codes,AT=$h.ERR_METHOD_NOT_IMPLEMENTED,TT=$h.ERR_MULTIPLE_CALLBACK,OT=$h.ERR_TRANSFORM_ALREADY_TRANSFORMING,IT=$h.ERR_TRANSFORM_WITH_LENGTH_0,Dh=ds();Ze($n,Dh);function PT(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new TT);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function $n(e){if(!(this instanceof $n))return new $n(e);Dh.call(this,e),this._transformState={afterTransform:PT.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",CT)}function CT(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){$1(e,t,r)}):$1(this,null,null)}$n.prototype.push=function(e,t){return this._transformState.needTransform=!1,Dh.prototype.push.call(this,e,t)};$n.prototype._transform=function(e,t,r){r(new AT("_transform()"))};$n.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};$n.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};$n.prototype._destroy=function(e,t){Dh.prototype._destroy.call(this,e,function(r){t(r)})};function $1(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new IT;if(e._transformState.transforming)throw new OT;return e.push(null)}var BT=Qf,zM=VM;Ze(Qf,zM);function Qf(e){if(!(this instanceof Qf))return new Qf(e);zM.call(this,e)}Qf.prototype._transform=function(e,t,r){r(null,e)};var vd;function LT(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var GM=Ma.codes,NT=GM.ERR_MISSING_ARGS,kT=GM.ERR_STREAM_DESTROYED;function D1(e){if(e)throw e}function $T(e){return e.setHeader&&typeof e.abort=="function"}function DT(e,t,r,i){i=LT(i);var a=!1;e.on("close",function(){a=!0}),vd===void 0&&(vd=zv),vd(e,{readable:t,writable:r},function(u){if(u)return i(u);a=!0,i()});var n=!1;return function(u){if(!a&&!n){if(n=!0,$T(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(u||new kT("pipe"))}}}function F1(e){e()}function FT(e,t){return e.pipe(t)}function jT(e){return!e.length||typeof e[e.length-1]!="function"?D1:e.pop()}function UT(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=jT(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new NT("streams");var a,n=t.map(function(u,c){var d=c<t.length-1,m=c>0;return DT(u,d,m,function(M){a||(a=M),M&&n.forEach(F1),!d&&(n.forEach(F1),i(a))})});return t.reduce(FT)}var HT=UT;(function(e,t){t=e.exports=KM(),t.Stream=t,t.Readable=t,t.Writable=qM(),t.Duplex=ds(),t.Transform=VM,t.PassThrough=BT,t.finished=zv,t.pipeline=HT})(cp,cp.exports);var qT=cp.exports;const{Buffer:Ni}=ke,YM=Symbol.for("BufferList");function Gt(e){if(!(this instanceof Gt))return new Gt(e);Gt._init.call(this,e)}Gt._init=function(t){Object.defineProperty(this,YM,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};Gt.prototype._new=function(t){return new Gt(t)};Gt.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let i=0;i<this._bufs.length;i++){const a=r+this._bufs[i].length;if(t<a||i===this._bufs.length-1)return[i,t-r];r=a}};Gt.prototype._reverseOffset=function(e){const t=e[0];let r=e[1];for(let i=0;i<t;i++)r+=this._bufs[i].length;return r};Gt.prototype.get=function(t){if(t>this.length||t<0)return;const r=this._offset(t);return this._bufs[r[0]][r[1]]};Gt.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};Gt.prototype.copy=function(t,r,i,a){if((typeof i!="number"||i<0)&&(i=0),(typeof a!="number"||a>this.length)&&(a=this.length),i>=this.length||a<=0)return t||Ni.alloc(0);const n=!!t,u=this._offset(i),c=a-i;let d=c,m=n&&r||0,M=u[1];if(i===0&&a===this.length){if(!n)return this._bufs.length===1?this._bufs[0]:Ni.concat(this._bufs,this.length);for(let S=0;S<this._bufs.length;S++)this._bufs[S].copy(t,m),m+=this._bufs[S].length;return t}if(d<=this._bufs[u[0]].length-M)return n?this._bufs[u[0]].copy(t,r,M,M+d):this._bufs[u[0]].slice(M,M+d);n||(t=Ni.allocUnsafe(c));for(let S=u[0];S<this._bufs.length;S++){const R=this._bufs[S].length-M;if(d>R)this._bufs[S].copy(t,m,M),m+=R;else{this._bufs[S].copy(t,m,M,M+d),m+=R;break}d-=R,M&&(M=0)}return t.length>m?t.slice(0,m):t};Gt.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();const i=this._offset(t),a=this._offset(r),n=this._bufs.slice(i[0],a[0]+1);return a[1]===0?n.pop():n[n.length-1]=n[n.length-1].slice(0,a[1]),i[1]!==0&&(n[0]=n[0].slice(i[1])),this._new(n)};Gt.prototype.toString=function(t,r,i){return this.slice(r,i).toString(t)};Gt.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};Gt.prototype.duplicate=function(){const t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};Gt.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(Ni.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(Ni.from(t));return this};Gt.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};Gt.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=Ni.from([e]):typeof e=="string"?e=Ni.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=Ni.from(e.buffer,e.byteOffset,e.byteLength):Ni.isBuffer(e)||(e=Ni.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;const i=this._offset(t);let a=i[0],n=i[1];for(;a<this._bufs.length;a++){const u=this._bufs[a];for(;n<u.length;)if(u.length-n>=e.length){const d=u.indexOf(e,n);if(d!==-1)return this._reverseOffset([a,d]);n=u.length-e.length+1}else{const d=this._reverseOffset([a,n]);if(this._match(d,e))return d;n++}n=0}return-1};Gt.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){const e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(const t in e)(function(r){e[r]===null?Gt.prototype[r]=function(i,a){return this.slice(i,i+a)[r](0,a)}:Gt.prototype[r]=function(i=0){return this.slice(i,i+e[r])[r](0)}})(t)})();Gt.prototype._isBufferList=function(t){return t instanceof Gt||Gt.isBufferList(t)};Gt.isBufferList=function(t){return t!=null&&t[YM]};var WT=Gt;const Gv=qT.Duplex,KT=Ze,gu=WT;function Rr(e){if(!(this instanceof Rr))return new Rr(e);if(typeof e=="function"){this._callback=e;const t=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on("pipe",function(i){i.on("error",t)}),this.on("unpipe",function(i){i.removeListener("error",t)}),e=null}gu._init.call(this,e),Gv.call(this)}KT(Rr,Gv);Object.assign(Rr.prototype,gu.prototype);Rr.prototype._new=function(t){return new Rr(t)};Rr.prototype._write=function(t,r,i){this._appendBuffer(t),typeof i=="function"&&i()};Rr.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};Rr.prototype.end=function(t){Gv.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};Rr.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};Rr.prototype._isBufferList=function(t){return t instanceof Rr||t instanceof gu||Rr.isBufferList(t)};Rr.isBufferList=gu.isBufferList;kh.exports=Rr;kh.exports.BufferListStream=Rr;kh.exports.BufferList=gu;var VT=kh.exports;let zT=class{constructor(){this.cmd=null,this.retain=!1,this.qos=0,this.dup=!1,this.length=-1,this.topic=null,this.payload=null}};var GT=zT,ZM={exports:{}};(function(e){const t=e.exports;t.types={0:"reserved",1:"connect",2:"connack",3:"publish",4:"puback",5:"pubrec",6:"pubrel",7:"pubcomp",8:"subscribe",9:"suback",10:"unsubscribe",11:"unsuback",12:"pingreq",13:"pingresp",14:"disconnect",15:"auth"},t.codes={};for(const i in t.types){const a=t.types[i];t.codes[a]=i}t.CMD_SHIFT=4,t.CMD_MASK=240,t.DUP_MASK=8,t.QOS_MASK=3,t.QOS_SHIFT=1,t.RETAIN_MASK=1,t.VARBYTEINT_MASK=127,t.VARBYTEINT_FIN_MASK=128,t.VARBYTEINT_MAX=268435455,t.SESSIONPRESENT_MASK=1,t.SESSIONPRESENT_HEADER=ke.Buffer.from([t.SESSIONPRESENT_MASK]),t.CONNACK_HEADER=ke.Buffer.from([t.codes.connack<<t.CMD_SHIFT]),t.USERNAME_MASK=128,t.PASSWORD_MASK=64,t.WILL_RETAIN_MASK=32,t.WILL_QOS_MASK=24,t.WILL_QOS_SHIFT=3,t.WILL_FLAG_MASK=4,t.CLEAN_SESSION_MASK=2,t.CONNECT_HEADER=ke.Buffer.from([t.codes.connect<<t.CMD_SHIFT]),t.properties={sessionExpiryInterval:17,willDelayInterval:24,receiveMaximum:33,maximumPacketSize:39,topicAliasMaximum:34,requestResponseInformation:25,requestProblemInformation:23,userProperties:38,authenticationMethod:21,authenticationData:22,payloadFormatIndicator:1,messageExpiryInterval:2,contentType:3,responseTopic:8,correlationData:9,maximumQoS:36,retainAvailable:37,assignedClientIdentifier:18,reasonString:31,wildcardSubscriptionAvailable:40,subscriptionIdentifiersAvailable:41,sharedSubscriptionAvailable:42,serverKeepAlive:19,responseInformation:26,serverReference:28,topicAlias:35,subscriptionIdentifier:11},t.propertiesCodes={};for(const i in t.properties){const a=t.properties[i];t.propertiesCodes[a]=i}t.propertiesTypes={sessionExpiryInterval:"int32",willDelayInterval:"int32",receiveMaximum:"int16",maximumPacketSize:"int32",topicAliasMaximum:"int16",requestResponseInformation:"byte",requestProblemInformation:"byte",userProperties:"pair",authenticationMethod:"string",authenticationData:"binary",payloadFormatIndicator:"byte",messageExpiryInterval:"int32",contentType:"string",responseTopic:"string",correlationData:"binary",maximumQoS:"int8",retainAvailable:"byte",assignedClientIdentifier:"string",reasonString:"string",wildcardSubscriptionAvailable:"byte",subscriptionIdentifiersAvailable:"byte",sharedSubscriptionAvailable:"byte",serverKeepAlive:"int16",responseInformation:"string",serverReference:"string",topicAlias:"int16",subscriptionIdentifier:"var"};function r(i){return[0,1,2].map(a=>[0,1].map(n=>[0,1].map(u=>{const c=ke.Buffer.alloc(1);return c.writeUInt8(t.codes[i]<<t.CMD_SHIFT|(n?t.DUP_MASK:0)|a<<t.QOS_SHIFT|u,0,!0),c})))}t.PUBLISH_HEADER=r("publish"),t.SUBSCRIBE_HEADER=r("subscribe"),t.SUBSCRIBE_OPTIONS_QOS_MASK=3,t.SUBSCRIBE_OPTIONS_NL_MASK=1,t.SUBSCRIBE_OPTIONS_NL_SHIFT=2,t.SUBSCRIBE_OPTIONS_RAP_MASK=1,t.SUBSCRIBE_OPTIONS_RAP_SHIFT=3,t.SUBSCRIBE_OPTIONS_RH_MASK=3,t.SUBSCRIBE_OPTIONS_RH_SHIFT=4,t.SUBSCRIBE_OPTIONS_RH=[0,16,32],t.SUBSCRIBE_OPTIONS_NL=4,t.SUBSCRIBE_OPTIONS_RAP=8,t.SUBSCRIBE_OPTIONS_QOS=[0,1,2],t.UNSUBSCRIBE_HEADER=r("unsubscribe"),t.ACKS={unsuback:r("unsuback"),puback:r("puback"),pubcomp:r("pubcomp"),pubrel:r("pubrel"),pubrec:r("pubrec")},t.SUBACK_HEADER=ke.Buffer.from([t.codes.suback<<t.CMD_SHIFT]),t.VERSION3=ke.Buffer.from([3]),t.VERSION4=ke.Buffer.from([4]),t.VERSION5=ke.Buffer.from([5]),t.VERSION131=ke.Buffer.from([131]),t.VERSION132=ke.Buffer.from([132]),t.QOS=[0,1,2].map(i=>ke.Buffer.from([i])),t.EMPTY={pingreq:ke.Buffer.from([t.codes.pingreq<<4,0]),pingresp:ke.Buffer.from([t.codes.pingresp<<4,0]),disconnect:ke.Buffer.from([t.codes.disconnect<<4,0])}})(ZM);var XM=ZM.exports;const YT=VT,ZT=Or,j1=GT,qt=XM,ot=zn("mqtt-packet:parser");class ql extends ZT{constructor(){super(),this.parser=this.constructor.parser}static parser(t){return this instanceof ql?(this.settings=t||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new ql().parser(t)}_resetState(){ot("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new j1,this.error=null,this._list=YT(),this._stateCounter=0}parse(t){for(this.error&&this._resetState(),this._list.append(t),ot("parse: current state: %s",this._states[this._stateCounter]);(this.packet.length!==-1||this._list.length>0)&&this[this._states[this._stateCounter]]()&&!this.error;)this._stateCounter++,ot("parse: state complete. _stateCounter is now: %d",this._stateCounter),ot("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return ot("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const t=this._list.readUInt8(0);return this.packet.cmd=qt.types[t>>qt.CMD_SHIFT],this.packet.retain=(t&qt.RETAIN_MASK)!==0,this.packet.qos=t>>qt.QOS_SHIFT&qt.QOS_MASK,this.packet.dup=(t&qt.DUP_MASK)!==0,ot("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0}_parseLength(){const t=this._parseVarByteNum(!0);return t&&(this.packet.length=t.value,this._list.consume(t.bytes)),ot("_parseLength %d",t.value),!!t}_parsePayload(){ot("_parsePayload: payload %O",this._list);let t=!1;if(this.packet.length===0||this._list.length>=this.packet.length){switch(this._pos=0,this.packet.cmd){case"connect":this._parseConnect();break;case"connack":this._parseConnack();break;case"publish":this._parsePublish();break;case"puback":case"pubrec":case"pubrel":case"pubcomp":this._parseConfirmation();break;case"subscribe":this._parseSubscribe();break;case"suback":this._parseSuback();break;case"unsubscribe":this._parseUnsubscribe();break;case"unsuback":this._parseUnsuback();break;case"pingreq":case"pingresp":break;case"disconnect":this._parseDisconnect();break;case"auth":this._parseAuth();break;default:this._emitError(new Error("Not supported"))}t=!0}return ot("_parsePayload complete result: %s",t),t}_parseConnect(){ot("_parseConnect");let t,r,i,a;const n={},u=this.packet,c=this._parseString();if(c===null)return this._emitError(new Error("Cannot parse protocolId"));if(c!=="MQTT"&&c!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(u.protocolId=c,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(u.protocolVersion=this._list.readUInt8(this._pos),u.protocolVersion>=128&&(u.bridgeMode=!0,u.protocolVersion=u.protocolVersion-128),u.protocolVersion!==3&&u.protocolVersion!==4&&u.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(n.username=this._list.readUInt8(this._pos)&qt.USERNAME_MASK,n.password=this._list.readUInt8(this._pos)&qt.PASSWORD_MASK,n.will=this._list.readUInt8(this._pos)&qt.WILL_FLAG_MASK,n.will&&(u.will={},u.will.retain=(this._list.readUInt8(this._pos)&qt.WILL_RETAIN_MASK)!==0,u.will.qos=(this._list.readUInt8(this._pos)&qt.WILL_QOS_MASK)>>qt.WILL_QOS_SHIFT),u.clean=(this._list.readUInt8(this._pos)&qt.CLEAN_SESSION_MASK)!==0,this._pos++,u.keepalive=this._parseNum(),u.keepalive===-1)return this._emitError(new Error("Packet too short"));if(u.protocolVersion===5){const m=this._parseProperties();Object.getOwnPropertyNames(m).length&&(u.properties=m)}const d=this._parseString();if(d===null)return this._emitError(new Error("Packet too short"));if(u.clientId=d,ot("_parseConnect: packet.clientId: %s",u.clientId),n.will){if(u.protocolVersion===5){const m=this._parseProperties();Object.getOwnPropertyNames(m).length&&(u.will.properties=m)}if(t=this._parseString(),t===null)return this._emitError(new Error("Cannot parse will topic"));if(u.will.topic=t,ot("_parseConnect: packet.will.topic: %s",u.will.topic),r=this._parseBuffer(),r===null)return this._emitError(new Error("Cannot parse will payload"));u.will.payload=r,ot("_parseConnect: packet.will.paylaod: %s",u.will.payload)}if(n.username){if(a=this._parseString(),a===null)return this._emitError(new Error("Cannot parse username"));u.username=a,ot("_parseConnect: packet.username: %s",u.username)}if(n.password){if(i=this._parseBuffer(),i===null)return this._emitError(new Error("Cannot parse password"));u.password=i}return this.settings=u,ot("_parseConnect: complete"),u}_parseConnack(){ot("_parseConnack");const t=this.packet;if(this._list.length<1)return null;if(t.sessionPresent=!!(this._list.readUInt8(this._pos++)&qt.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?t.reasonCode=this._list.readUInt8(this._pos++):t.reasonCode=0;else{if(this._list.length<2)return null;t.returnCode=this._list.readUInt8(this._pos++)}if(t.returnCode===-1||t.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(t.properties=r)}ot("_parseConnack: complete")}_parsePublish(){ot("_parsePublish");const t=this.packet;if(t.topic=this._parseString(),t.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(t.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(t.properties=r)}t.payload=this._list.slice(this._pos,t.length),ot("_parsePublish: payload from buffer list: %o",t.payload)}}_parseSubscribe(){ot("_parseSubscribe");const t=this.packet;let r,i,a,n,u,c,d;if(t.qos!==1)return this._emitError(new Error("Wrong subscribe header"));if(t.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const m=this._parseProperties();Object.getOwnPropertyNames(m).length&&(t.properties=m)}for(;this._pos<t.length;){if(r=this._parseString(),r===null)return this._emitError(new Error("Cannot parse topic"));if(this._pos>=t.length)return this._emitError(new Error("Malformed Subscribe Payload"));i=this._parseByte(),a=i&qt.SUBSCRIBE_OPTIONS_QOS_MASK,c=(i>>qt.SUBSCRIBE_OPTIONS_NL_SHIFT&qt.SUBSCRIBE_OPTIONS_NL_MASK)!==0,u=(i>>qt.SUBSCRIBE_OPTIONS_RAP_SHIFT&qt.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,n=i>>qt.SUBSCRIBE_OPTIONS_RH_SHIFT&qt.SUBSCRIBE_OPTIONS_RH_MASK,d={topic:r,qos:a},this.settings.protocolVersion===5?(d.nl=c,d.rap=u,d.rh=n):this.settings.bridgeMode&&(d.rh=0,d.rap=!0,d.nl=!0),ot("_parseSubscribe: push subscription `%s` to subscription",d),t.subscriptions.push(d)}}}_parseSuback(){ot("_parseSuback");const t=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(t.properties=r)}for(;this._pos<this.packet.length;)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseUnsubscribe(){ot("_parseUnsubscribe");const t=this.packet;if(t.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(t.properties=r)}for(;this._pos<t.length;){const r=this._parseString();if(r===null)return this._emitError(new Error("Cannot parse topic"));ot("_parseUnsubscribe: push topic `%s` to unsubscriptions",r),t.unsubscriptions.push(r)}}}_parseUnsuback(){ot("_parseUnsuback");const t=this.packet;if(!this._parseMessageId())return this._emitError(new Error("Cannot parse messageId"));if(this.settings.protocolVersion===5){const r=this._parseProperties();for(Object.getOwnPropertyNames(r).length&&(t.properties=r),t.granted=[];this._pos<this.packet.length;)this.packet.granted.push(this._list.readUInt8(this._pos++))}}_parseConfirmation(){ot("_parseConfirmation: packet.cmd: `%s`",this.packet.cmd);const t=this.packet;if(this._parseMessageId(),this.settings.protocolVersion===5&&(t.length>2?(t.reasonCode=this._parseByte(),ot("_parseConfirmation: packet.reasonCode `%d`",t.reasonCode)):t.reasonCode=0,t.length>3)){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(t.properties=r)}return!0}_parseDisconnect(){const t=this.packet;if(ot("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?t.reasonCode=this._parseByte():t.reasonCode=0;const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(t.properties=r)}return ot("_parseDisconnect result: true"),!0}_parseAuth(){ot("_parseAuth");const t=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));t.reasonCode=this._parseByte();const r=this._parseProperties();return Object.getOwnPropertyNames(r).length&&(t.properties=r),ot("_parseAuth: result: true"),!0}_parseMessageId(){const t=this.packet;return t.messageId=this._parseNum(),t.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(ot("_parseMessageId: packet.messageId %d",t.messageId),!0)}_parseString(t){const r=this._parseNum(),i=r+this._pos;if(r===-1||i>this._list.length||i>this.packet.length)return null;const a=this._list.toString("utf8",this._pos,i);return this._pos+=r,ot("_parseString: result: %s",a),a}_parseStringPair(){return ot("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const t=this._parseNum(),r=t+this._pos;if(t===-1||r>this._list.length||r>this.packet.length)return null;const i=this._list.slice(this._pos,r);return this._pos+=t,ot("_parseBuffer: result: %o",i),i}_parseNum(){if(this._list.length-this._pos<2)return-1;const t=this._list.readUInt16BE(this._pos);return this._pos+=2,ot("_parseNum: result: %s",t),t}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const t=this._list.readUInt32BE(this._pos);return this._pos+=4,ot("_parse4ByteNum: result: %s",t),t}_parseVarByteNum(t){ot("_parseVarByteNum");const r=4;let i=0,a=1,n=0,u=!1,c;const d=this._pos?this._pos:0;for(;i<r&&d+i<this._list.length;){if(c=this._list.readUInt8(d+i++),n+=a*(c&qt.VARBYTEINT_MASK),a*=128,!(c&qt.VARBYTEINT_FIN_MASK)){u=!0;break}if(this._list.length<=i)break}return!u&&i===r&&this._list.length>=i&&this._emitError(new Error("Invalid variable byte integer")),d&&(this._pos+=i),u=u?t?{bytes:i,value:n}:n:!1,ot("_parseVarByteNum: result: %o",u),u}_parseByte(){let t;return this._pos<this._list.length&&(t=this._list.readUInt8(this._pos),this._pos++),ot("_parseByte: result: %o",t),t}_parseByType(t){switch(ot("_parseByType: type: %s",t),t){case"byte":return this._parseByte()!==0;case"int8":return this._parseByte();case"int16":return this._parseNum();case"int32":return this._parse4ByteNum();case"var":return this._parseVarByteNum();case"string":return this._parseString();case"pair":return this._parseStringPair();case"binary":return this._parseBuffer()}}_parseProperties(){ot("_parseProperties");const t=this._parseVarByteNum(),i=this._pos+t,a={};for(;this._pos<i;){const n=this._parseByte();if(!n)return this._emitError(new Error("Cannot parse property code type")),!1;const u=qt.propertiesCodes[n];if(!u)return this._emitError(new Error("Unknown property")),!1;if(u==="userProperties"){a[u]||(a[u]=Object.create(null));const c=this._parseByType(qt.propertiesTypes[u]);if(a[u][c.name])if(Array.isArray(a[u][c.name]))a[u][c.name].push(c.value);else{const d=a[u][c.name];a[u][c.name]=[d],a[u][c.name].push(c.value)}else a[u][c.name]=c.value;continue}a[u]?Array.isArray(a[u])?a[u].push(this._parseByType(qt.propertiesTypes[u])):(a[u]=[a[u]],a[u].push(this._parseByType(qt.propertiesTypes[u]))):a[u]=this._parseByType(qt.propertiesTypes[u])}return a}_newPacket(){return ot("_newPacket"),this.packet&&(this._list.consume(this.packet.length),ot("_newPacket: parser emit packet: packet.cmd: %s, packet.payload: %s, packet.length: %d",this.packet.cmd,this.packet.payload,this.packet.length),this.emit("packet",this.packet)),ot("_newPacket: new packet"),this.packet=new j1,this._pos=0,!0}_emitError(t){ot("_emitError"),this.error=t,this.emit("error",t)}}var XT=ql;const JT=65536,JM={},QT=ke.Buffer.isBuffer(ke.Buffer.from([1,2]).subarray(0,1));function QM(e){const t=ke.Buffer.allocUnsafe(2);return t.writeUInt8(e>>8,0),t.writeUInt8(e&255,0+1),t}function eO(){for(let e=0;e<JT;e++)JM[e]=QM(e)}function tO(e){let r=0,i=0;const a=ke.Buffer.allocUnsafe(4);do r=e%128|0,e=e/128|0,e>0&&(r=r|128),a.writeUInt8(r,i++);while(e>0&&i<4);return e>0&&(i=0),QT?a.subarray(0,i):a.slice(0,i)}function rO(e){const t=ke.Buffer.allocUnsafe(4);return t.writeUInt32BE(e,0),t}var iO={cache:JM,generateCache:eO,generateNumber:QM,genBufVariableByteInt:tO,generate4ByteBuffer:rO},pp={exports:{}};typeof we>"u"||!we.version||we.version.indexOf("v0.")===0||we.version.indexOf("v1.")===0&&we.version.indexOf("v1.8.")!==0?pp.exports={nextTick:nO}:pp.exports=we;function nO(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var a=arguments.length,n,u;switch(a){case 0:case 1:return we.nextTick(e);case 2:return we.nextTick(function(){e.call(null,t)});case 3:return we.nextTick(function(){e.call(null,t,r)});case 4:return we.nextTick(function(){e.call(null,t,r,i)});default:for(n=new Array(a-1),u=0;u<n.length;)n[u++]=arguments[u];return we.nextTick(function(){e.apply(null,n)})}}var oO=pp.exports;const ut=XM,aO=ke.Buffer.allocUnsafe(0),sO=ke.Buffer.from([0]),mu=iO,fO=oO.nextTick,pi=zn("mqtt-packet:writeToStream"),Wl=mu.cache,uO=mu.generateNumber,lO=mu.generateCache,vp=mu.genBufVariableByteInt,hO=mu.generate4ByteBuffer;let Nr=gp,Kl=!0;function e3(e,t,r){switch(pi("generate called"),t.cork&&(t.cork(),fO(cO,t)),Kl&&(Kl=!1,lO()),pi("generate: packet.cmd: %s",e.cmd),e.cmd){case"connect":return dO(e,t);case"connack":return pO(e,t,r);case"publish":return vO(e,t,r);case"puback":case"pubrec":case"pubrel":case"pubcomp":return gO(e,t,r);case"subscribe":return mO(e,t,r);case"suback":return yO(e,t,r);case"unsubscribe":return bO(e,t,r);case"unsuback":return wO(e,t,r);case"pingreq":case"pingresp":return _O(e,t);case"disconnect":return MO(e,t,r);case"auth":return SO(e,t,r);default:return t.emit("error",new Error("Unknown command")),!1}}Object.defineProperty(e3,"cacheNumbers",{get(){return Nr===gp},set(e){e?((!Wl||Object.keys(Wl).length===0)&&(Kl=!0),Nr=gp):(Kl=!1,Nr=xO)}});function cO(e){e.uncork()}function dO(e,t,r){const i=e||{},a=i.protocolId||"MQTT";let n=i.protocolVersion||4;const u=i.will;let c=i.clean;const d=i.keepalive||0,m=i.clientId||"",M=i.username,S=i.password,R=i.properties;c===void 0&&(c=!0);let C=0;if(!a||typeof a!="string"&&!ke.Buffer.isBuffer(a))return t.emit("error",new Error("Invalid protocolId")),!1;if(C+=a.length+2,n!==3&&n!==4&&n!==5)return t.emit("error",new Error("Invalid protocol version")),!1;if(C+=1,(typeof m=="string"||ke.Buffer.isBuffer(m))&&(m||n>=4)&&(m||c))C+=ke.Buffer.byteLength(m)+2;else{if(n<4)return t.emit("error",new Error("clientId must be supplied before 3.1.1")),!1;if(c*1===0)return t.emit("error",new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof d!="number"||d<0||d>65535||d%1!==0)return t.emit("error",new Error("Invalid keepalive")),!1;if(C+=2,C+=1,n===5){var P=Oo(t,R);if(!P)return!1;C+=P.length}if(u){if(typeof u!="object")return t.emit("error",new Error("Invalid will")),!1;if(!u.topic||typeof u.topic!="string")return t.emit("error",new Error("Invalid will topic")),!1;if(C+=ke.Buffer.byteLength(u.topic)+2,C+=2,u.payload)if(u.payload.length>=0)typeof u.payload=="string"?C+=ke.Buffer.byteLength(u.payload):C+=u.payload.length;else return t.emit("error",new Error("Invalid will payload")),!1;var k={};if(n===5){if(k=Oo(t,u.properties),!k)return!1;C+=k.length}}let L=!1;if(M!=null)if(K1(M))L=!0,C+=ke.Buffer.byteLength(M)+2;else return t.emit("error",new Error("Invalid username")),!1;if(S!=null){if(!L)return t.emit("error",new Error("Username is required to use password")),!1;if(K1(S))C+=t3(S)+2;else return t.emit("error",new Error("Invalid password")),!1}t.write(ut.CONNECT_HEADER),wi(t,C),Ha(t,a),i.bridgeMode&&(n+=128),t.write(n===131?ut.VERSION131:n===132?ut.VERSION132:n===4?ut.VERSION4:n===5?ut.VERSION5:ut.VERSION3);let I=0;return I|=M!=null?ut.USERNAME_MASK:0,I|=S!=null?ut.PASSWORD_MASK:0,I|=u&&u.retain?ut.WILL_RETAIN_MASK:0,I|=u&&u.qos?u.qos<<ut.WILL_QOS_SHIFT:0,I|=u?ut.WILL_FLAG_MASK:0,I|=c?ut.CLEAN_SESSION_MASK:0,t.write(ke.Buffer.from([I])),Nr(t,d),n===5&&P.write(),Ha(t,m),u&&(n===5&&k.write(),ha(t,u.topic),Ha(t,u.payload)),M!=null&&Ha(t,M),S!=null&&Ha(t,S),!0}function pO(e,t,r){const i=r?r.protocolVersion:4,a=e||{},n=i===5?a.reasonCode:a.returnCode,u=a.properties;let c=2;if(typeof n!="number")return t.emit("error",new Error("Invalid return code")),!1;let d=null;if(i===5){if(d=Oo(t,u),!d)return!1;c+=d.length}return t.write(ut.CONNACK_HEADER),wi(t,c),t.write(a.sessionPresent?ut.SESSIONPRESENT_HEADER:sO),t.write(ke.Buffer.from([n])),d!=null&&d.write(),!0}function vO(e,t,r){pi("publish: packet: %o",e);const i=r?r.protocolVersion:4,a=e||{},n=a.qos||0,u=a.retain?ut.RETAIN_MASK:0,c=a.topic,d=a.payload||aO,m=a.messageId,M=a.properties;let S=0;if(typeof c=="string")S+=ke.Buffer.byteLength(c)+2;else if(ke.Buffer.isBuffer(c))S+=c.length+2;else return t.emit("error",new Error("Invalid topic")),!1;if(ke.Buffer.isBuffer(d)?S+=d.length:S+=ke.Buffer.byteLength(d),n&&typeof m!="number")return t.emit("error",new Error("Invalid messageId")),!1;n&&(S+=2);let R=null;if(i===5){if(R=Oo(t,M),!R)return!1;S+=R.length}return t.write(ut.PUBLISH_HEADER[n][a.dup?1:0][u?1:0]),wi(t,S),Nr(t,t3(c)),t.write(c),n>0&&Nr(t,m),R!=null&&R.write(),pi("publish: payload: %o",d),t.write(d)}function gO(e,t,r){const i=r?r.protocolVersion:4,a=e||{},n=a.cmd||"puback",u=a.messageId,c=a.dup&&n==="pubrel"?ut.DUP_MASK:0;let d=0;const m=a.reasonCode,M=a.properties;let S=i===5?3:2;if(n==="pubrel"&&(d=1),typeof u!="number")return t.emit("error",new Error("Invalid messageId")),!1;let R=null;if(i===5&&typeof M=="object"){if(R=yu(t,M,r,S),!R)return!1;S+=R.length}return t.write(ut.ACKS[n][d][c][0]),wi(t,S),Nr(t,u),i===5&&t.write(ke.Buffer.from([m])),R!==null&&R.write(),!0}function mO(e,t,r){pi("subscribe: packet: ");const i=r?r.protocolVersion:4,a=e||{},n=a.dup?ut.DUP_MASK:0,u=a.messageId,c=a.subscriptions,d=a.properties;let m=0;if(typeof u!="number")return t.emit("error",new Error("Invalid messageId")),!1;m+=2;let M=null;if(i===5){if(M=Oo(t,d),!M)return!1;m+=M.length}if(typeof c=="object"&&c.length)for(let R=0;R<c.length;R+=1){const C=c[R].topic,P=c[R].qos;if(typeof C!="string")return t.emit("error",new Error("Invalid subscriptions - invalid topic")),!1;if(typeof P!="number")return t.emit("error",new Error("Invalid subscriptions - invalid qos")),!1;if(i===5){if(typeof(c[R].nl||!1)!="boolean")return t.emit("error",new Error("Invalid subscriptions - invalid No Local")),!1;if(typeof(c[R].rap||!1)!="boolean")return t.emit("error",new Error("Invalid subscriptions - invalid Retain as Published")),!1;const I=c[R].rh||0;if(typeof I!="number"||I>2)return t.emit("error",new Error("Invalid subscriptions - invalid Retain Handling")),!1}m+=ke.Buffer.byteLength(C)+2+1}else return t.emit("error",new Error("Invalid subscriptions")),!1;pi("subscribe: writing to stream: %o",ut.SUBSCRIBE_HEADER),t.write(ut.SUBSCRIBE_HEADER[1][n?1:0][0]),wi(t,m),Nr(t,u),M!==null&&M.write();let S=!0;for(const R of c){const C=R.topic,P=R.qos,k=+R.nl,L=+R.rap,I=R.rh;let B;ha(t,C),B=ut.SUBSCRIBE_OPTIONS_QOS[P],i===5&&(B|=k?ut.SUBSCRIBE_OPTIONS_NL:0,B|=L?ut.SUBSCRIBE_OPTIONS_RAP:0,B|=I?ut.SUBSCRIBE_OPTIONS_RH[I]:0),S=t.write(ke.Buffer.from([B]))}return S}function yO(e,t,r){const i=r?r.protocolVersion:4,a=e||{},n=a.messageId,u=a.granted,c=a.properties;let d=0;if(typeof n!="number")return t.emit("error",new Error("Invalid messageId")),!1;if(d+=2,typeof u=="object"&&u.length)for(let M=0;M<u.length;M+=1){if(typeof u[M]!="number")return t.emit("error",new Error("Invalid qos vector")),!1;d+=1}else return t.emit("error",new Error("Invalid qos vector")),!1;let m=null;if(i===5){if(m=yu(t,c,r,d),!m)return!1;d+=m.length}return t.write(ut.SUBACK_HEADER),wi(t,d),Nr(t,n),m!==null&&m.write(),t.write(ke.Buffer.from(u))}function bO(e,t,r){const i=r?r.protocolVersion:4,a=e||{},n=a.messageId,u=a.dup?ut.DUP_MASK:0,c=a.unsubscriptions,d=a.properties;let m=0;if(typeof n!="number")return t.emit("error",new Error("Invalid messageId")),!1;if(m+=2,typeof c=="object"&&c.length)for(let R=0;R<c.length;R+=1){if(typeof c[R]!="string")return t.emit("error",new Error("Invalid unsubscriptions")),!1;m+=ke.Buffer.byteLength(c[R])+2}else return t.emit("error",new Error("Invalid unsubscriptions")),!1;let M=null;if(i===5){if(M=Oo(t,d),!M)return!1;m+=M.length}t.write(ut.UNSUBSCRIBE_HEADER[1][u?1:0][0]),wi(t,m),Nr(t,n),M!==null&&M.write();let S=!0;for(let R=0;R<c.length;R++)S=ha(t,c[R]);return S}function wO(e,t,r){const i=r?r.protocolVersion:4,a=e||{},n=a.messageId,u=a.dup?ut.DUP_MASK:0,c=a.granted,d=a.properties,m=a.cmd,M=0;let S=2;if(typeof n!="number")return t.emit("error",new Error("Invalid messageId")),!1;if(i===5)if(typeof c=="object"&&c.length)for(let C=0;C<c.length;C+=1){if(typeof c[C]!="number")return t.emit("error",new Error("Invalid qos vector")),!1;S+=1}else return t.emit("error",new Error("Invalid qos vector")),!1;let R=null;if(i===5){if(R=yu(t,d,r,S),!R)return!1;S+=R.length}return t.write(ut.ACKS[m][M][u][0]),wi(t,S),Nr(t,n),R!==null&&R.write(),i===5&&t.write(ke.Buffer.from(c)),!0}function _O(e,t,r){return t.write(ut.EMPTY[e.cmd])}function MO(e,t,r){const i=r?r.protocolVersion:4,a=e||{},n=a.reasonCode,u=a.properties;let c=i===5?1:0,d=null;if(i===5){if(d=yu(t,u,r,c),!d)return!1;c+=d.length}return t.write(ke.Buffer.from([ut.codes.disconnect<<4])),wi(t,c),i===5&&t.write(ke.Buffer.from([n])),d!==null&&d.write(),!0}function SO(e,t,r){const i=r?r.protocolVersion:4,a=e||{},n=a.reasonCode,u=a.properties;let c=i===5?1:0;i!==5&&t.emit("error",new Error("Invalid mqtt version for auth packet"));const d=yu(t,u,r,c);return d?(c+=d.length,t.write(ke.Buffer.from([ut.codes.auth<<4])),wi(t,c),t.write(ke.Buffer.from([n])),d!==null&&d.write(),!0):!1}const U1={};function wi(e,t){if(t>ut.VARBYTEINT_MAX)return e.emit("error",new Error(`Invalid variable byte integer: ${t}`)),!1;let r=U1[t];return r||(r=vp(t),t<16384&&(U1[t]=r)),pi("writeVarByteInt: writing to stream: %o",r),e.write(r)}function ha(e,t){const r=ke.Buffer.byteLength(t);return Nr(e,r),pi("writeString: %s",t),e.write(t,"utf8")}function H1(e,t,r){ha(e,t),ha(e,r)}function gp(e,t){return pi("writeNumberCached: number: %d",t),pi("writeNumberCached: %o",Wl[t]),e.write(Wl[t])}function xO(e,t){const r=uO(t);return pi("writeNumberGenerated: %o",r),e.write(r)}function EO(e,t){const r=hO(t);return pi("write4ByteNumber: %o",r),e.write(r)}function Ha(e,t){typeof t=="string"?ha(e,t):t?(Nr(e,t.length),e.write(t)):Nr(e,0)}function Oo(e,t){if(typeof t!="object"||t.length!=null)return{length:1,write(){W1(e,{},0)}};let r=0;function i(n,u){const c=ut.propertiesTypes[n];let d=0;switch(c){case"byte":{if(typeof u!="boolean")return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=1+1;break}case"int8":{if(typeof u!="number"||u<0||u>255)return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=1+1;break}case"binary":{if(u&&u===null)return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=1+ke.Buffer.byteLength(u)+2;break}case"int16":{if(typeof u!="number"||u<0||u>65535)return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=1+2;break}case"int32":{if(typeof u!="number"||u<0||u>4294967295)return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=1+4;break}case"var":{if(typeof u!="number"||u<0||u>268435455)return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=1+ke.Buffer.byteLength(vp(u));break}case"string":{if(typeof u!="string")return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=1+2+ke.Buffer.byteLength(u.toString());break}case"pair":{if(typeof u!="object")return e.emit("error",new Error(`Invalid ${n}: ${u}`)),!1;d+=Object.getOwnPropertyNames(u).reduce((m,M)=>{const S=u[M];return Array.isArray(S)?m+=S.reduce((R,C)=>(R+=1+2+ke.Buffer.byteLength(M.toString())+2+ke.Buffer.byteLength(C.toString()),R),0):m+=1+2+ke.Buffer.byteLength(M.toString())+2+ke.Buffer.byteLength(u[M].toString()),m},0);break}default:return e.emit("error",new Error(`Invalid property ${n}: ${u}`)),!1}return d}if(t)for(const n in t){let u=0,c=0;const d=t[n];if(Array.isArray(d))for(let m=0;m<d.length;m++){if(c=i(n,d[m]),!c)return!1;u+=c}else{if(c=i(n,d),!c)return!1;u=c}if(!u)return!1;r+=u}return{length:ke.Buffer.byteLength(vp(r))+r,write(){W1(e,t,r)}}}function yu(e,t,r,i){const a=["reasonString","userProperties"],n=r&&r.properties&&r.properties.maximumPacketSize?r.properties.maximumPacketSize:0;let u=Oo(e,t);if(n)for(;i+u.length>n;){const c=a.shift();if(c&&t[c])delete t[c],u=Oo(e,t);else return!1}return u}function q1(e,t,r){switch(ut.propertiesTypes[t]){case"byte":{e.write(ke.Buffer.from([ut.properties[t]])),e.write(ke.Buffer.from([+r]));break}case"int8":{e.write(ke.Buffer.from([ut.properties[t]])),e.write(ke.Buffer.from([r]));break}case"binary":{e.write(ke.Buffer.from([ut.properties[t]])),Ha(e,r);break}case"int16":{e.write(ke.Buffer.from([ut.properties[t]])),Nr(e,r);break}case"int32":{e.write(ke.Buffer.from([ut.properties[t]])),EO(e,r);break}case"var":{e.write(ke.Buffer.from([ut.properties[t]])),wi(e,r);break}case"string":{e.write(ke.Buffer.from([ut.properties[t]])),ha(e,r);break}case"pair":{Object.getOwnPropertyNames(r).forEach(a=>{const n=r[a];Array.isArray(n)?n.forEach(u=>{e.write(ke.Buffer.from([ut.properties[t]])),H1(e,a.toString(),u.toString())}):(e.write(ke.Buffer.from([ut.properties[t]])),H1(e,a.toString(),n.toString()))});break}default:return e.emit("error",new Error(`Invalid property ${t} value: ${r}`)),!1}}function W1(e,t,r){wi(e,r);for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&t[i]!==null){const a=t[i];if(Array.isArray(a))for(let n=0;n<a.length;n++)q1(e,i,a[n]);else q1(e,i,a)}}function t3(e){return e?e instanceof ke.Buffer?e.length:ke.Buffer.byteLength(e):0}function K1(e){return typeof e=="string"||e instanceof ke.Buffer}var r3=e3;const RO=r3,AO=Or;function TO(e,t){const r=new OO;return RO(e,r,t),r.concat()}class OO extends AO{constructor(){super(),this._array=new Array(20),this._i=0}write(t){return this._array[this._i++]=t,!0}concat(){let t=0;const r=new Array(this._array.length),i=this._array;let a=0,n;for(n=0;n<i.length&&i[n]!==void 0;n++)typeof i[n]!="string"?r[n]=i[n].length:r[n]=ke.Buffer.byteLength(i[n]),t+=r[n];const u=ke.Buffer.allocUnsafe(t);for(n=0;n<i.length&&i[n]!==void 0;n++)typeof i[n]!="string"?(i[n].copy(u,a),a+=r[n]):(u.write(i[n],a),a+=r[n]);return u}}var IO=TO;Nh.parser=XT.parser;Nh.generate=IO;Nh.writeToStream=r3;function Io(){if(!(this instanceof Io))return new Io;this.nextId=Math.max(1,Math.floor(Math.random()*65535))}Io.prototype.allocate=function(){const e=this.nextId++;return this.nextId===65536&&(this.nextId=1),e};Io.prototype.getLastAllocated=function(){return this.nextId===1?65535:this.nextId-1};Io.prototype.register=function(e){return!0};Io.prototype.deallocate=function(e){};Io.prototype.clear=function(){};var PO=Io;function CO(e,t,r){var i=this;this._callback=e,this._args=r,this._interval=setInterval(e,t,this._args),this.reschedule=function(a){a||(a=i._interval),i._interval&&clearInterval(i._interval),i._interval=setInterval(i._callback,a,i._args)},this.clear=function(){i._interval&&(clearInterval(i._interval),i._interval=void 0)},this.destroy=function(){i._interval&&clearInterval(i._interval),i._callback=void 0,i._interval=void 0,i._args=void 0}}function BO(){if(typeof arguments[0]!="function")throw new Error("callback needed");if(typeof arguments[1]!="number")throw new Error("interval needed");var e;if(arguments.length>0){e=new Array(arguments.length-2);for(var t=0;t<e.length;t++)e[t]=arguments[t+2]}return new CO(arguments[0],arguments[1],e)}var LO=BO,NO=kO;function ts(e){return e instanceof ke.Buffer?ke.Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}function kO(e){if(e=e||{},e.circles)return $O(e);return e.proto?i:r;function t(a,n){for(var u=Object.keys(a),c=new Array(u.length),d=0;d<u.length;d++){var m=u[d],M=a[m];typeof M!="object"||M===null?c[m]=M:M instanceof Date?c[m]=new Date(M):ArrayBuffer.isView(M)?c[m]=ts(M):c[m]=n(M)}return c}function r(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,r);if(a instanceof Map)return new Map(t(Array.from(a),r));if(a instanceof Set)return new Set(t(Array.from(a),r));var n={};for(var u in a)if(Object.hasOwnProperty.call(a,u)!==!1){var c=a[u];typeof c!="object"||c===null?n[u]=c:c instanceof Date?n[u]=new Date(c):c instanceof Map?n[u]=new Map(t(Array.from(c),r)):c instanceof Set?n[u]=new Set(t(Array.from(c),r)):ArrayBuffer.isView(c)?n[u]=ts(c):n[u]=r(c)}return n}function i(a){if(typeof a!="object"||a===null)return a;if(a instanceof Date)return new Date(a);if(Array.isArray(a))return t(a,i);if(a instanceof Map)return new Map(t(Array.from(a),i));if(a instanceof Set)return new Set(t(Array.from(a),i));var n={};for(var u in a){var c=a[u];typeof c!="object"||c===null?n[u]=c:c instanceof Date?n[u]=new Date(c):c instanceof Map?n[u]=new Map(t(Array.from(c),i)):c instanceof Set?n[u]=new Set(t(Array.from(c),i)):ArrayBuffer.isView(c)?n[u]=ts(c):n[u]=i(c)}return n}}function $O(e){var t=[],r=[];return e.proto?n:a;function i(u,c){for(var d=Object.keys(u),m=new Array(d.length),M=0;M<d.length;M++){var S=d[M],R=u[S];if(typeof R!="object"||R===null)m[S]=R;else if(R instanceof Date)m[S]=new Date(R);else if(ArrayBuffer.isView(R))m[S]=ts(R);else{var C=t.indexOf(R);C!==-1?m[S]=r[C]:m[S]=c(R)}}return m}function a(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return i(u,a);if(u instanceof Map)return new Map(i(Array.from(u),a));if(u instanceof Set)return new Set(i(Array.from(u),a));var c={};t.push(u),r.push(c);for(var d in u)if(Object.hasOwnProperty.call(u,d)!==!1){var m=u[d];if(typeof m!="object"||m===null)c[d]=m;else if(m instanceof Date)c[d]=new Date(m);else if(m instanceof Map)c[d]=new Map(i(Array.from(m),a));else if(m instanceof Set)c[d]=new Set(i(Array.from(m),a));else if(ArrayBuffer.isView(m))c[d]=ts(m);else{var M=t.indexOf(m);M!==-1?c[d]=r[M]:c[d]=a(m)}}return t.pop(),r.pop(),c}function n(u){if(typeof u!="object"||u===null)return u;if(u instanceof Date)return new Date(u);if(Array.isArray(u))return i(u,n);if(u instanceof Map)return new Map(i(Array.from(u),n));if(u instanceof Set)return new Set(i(Array.from(u),n));var c={};t.push(u),r.push(c);for(var d in u){var m=u[d];if(typeof m!="object"||m===null)c[d]=m;else if(m instanceof Date)c[d]=new Date(m);else if(m instanceof Map)c[d]=new Map(i(Array.from(m),n));else if(m instanceof Set)c[d]=new Set(i(Array.from(m),n));else if(ArrayBuffer.isView(m))c[d]=ts(m);else{var M=t.indexOf(m);M!==-1?c[d]=r[M]:c[d]=n(m)}}return t.pop(),r.pop(),c}}var DO=NO();function FO(e){const t=e.split("/");for(let r=0;r<t.length;r++)if(t[r]!=="+"){if(t[r]==="#")return r===t.length-1;if(t[r].indexOf("+")!==-1||t[r].indexOf("#")!==-1)return!1}return!0}function jO(e){if(e.length===0)return"empty_topic_list";for(let t=0;t<e.length;t++)if(!FO(e[t]))return e[t];return null}var UO={validateTopics:jO};const i3=Or.EventEmitter,Vl=MM,HO=eA,qO=lT,n3=Nh,WO=PO,KO=vu.Writable,VO=Ze,zO=LO,o3=DO,a3=UO,Fh=Fv,He=zn("mqttjs:client"),Yv=we?we.nextTick:function(e){setTimeout(e,0)},Zv=Ye.setImmediate||function(e){Yv(e)},V1={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0},GO=["ECONNREFUSED","EADDRINUSE","ECONNRESET","ENOTFOUND"],zl={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};function YO(){return"mqttjs_"+Math.random().toString(16).substr(2,8)}function ZO(e,t){if(e.options.protocolVersion===5&&t.cmd==="publish"){let r;t.properties&&(r=t.properties.topicAlias);const i=t.topic.toString();if(e.topicAliasSend)if(r){if(i.length!==0&&(He("applyTopicAlias :: register topic: %s - alias: %d",i,r),!e.topicAliasSend.put(i,r)))return He("applyTopicAlias :: error out of range. topic: %s - alias: %d",i,r),new Error("Sending Topic Alias out of range")}else i.length!==0&&(e.options.autoAssignTopicAlias?(r=e.topicAliasSend.getAliasByTopic(i),r?(t.topic="",t.properties={...t.properties,topicAlias:r},He("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",i,r)):(r=e.topicAliasSend.getLruAlias(),e.topicAliasSend.put(i,r),t.properties={...t.properties,topicAlias:r},He("applyTopicAlias :: auto assign topic: %s - alias: %d",i,r))):e.options.autoUseTopicAlias&&(r=e.topicAliasSend.getAliasByTopic(i),r&&(t.topic="",t.properties={...t.properties,topicAlias:r},He("applyTopicAlias :: auto use topic: %s - alias: %d",i,r))));else if(r)return He("applyTopicAlias :: error out of range. topic: %s - alias: %d",i,r),new Error("Sending Topic Alias out of range")}}function s3(e,t){let r;t.properties&&(r=t.properties.topicAlias);let i=t.topic.toString();if(i.length===0){if(typeof r>"u")return new Error("Unregistered Topic Alias");if(i=e.topicAliasSend.getTopicByAlias(r),typeof i>"u")return new Error("Unregistered Topic Alias");t.topic=i}r&&delete t.properties.topicAlias}function rs(e,t,r){He("sendPacket :: packet: %O",t),He("sendPacket :: emitting `packetsend`"),e.emit("packetsend",t),He("sendPacket :: writing to stream");const i=n3.writeToStream(t,e.stream,e.options);He("sendPacket :: writeToStream result %s",i),!i&&r&&r!==yr?(He("sendPacket :: handle events on `drain` once through callback."),e.stream.once("drain",r)):r&&(He("sendPacket :: invoking cb"),r())}function XO(e){e&&(He("flush: queue exists? %b",!!e),Object.keys(e).forEach(function(t){typeof e[t].cb=="function"&&(e[t].cb(new Error("Connection closed")),delete e[t])}))}function JO(e){e&&(He("flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(e).forEach(function(t){e[t].volatile&&typeof e[t].cb=="function"&&(e[t].cb(new Error("Connection closed")),delete e[t])}))}function z1(e,t,r,i){He("storeAndSend :: store packet with cmd %s to outgoingStore",t.cmd);let a=t,n;if(a.cmd==="publish"&&(a=o3(t),n=s3(e,a),n))return r&&r(n);e.outgoingStore.put(a,function(c){if(c)return r&&r(c);i(),rs(e,t,r)})}function yr(e){He("nop ::",e)}function gt(e,t){let r;const i=this;if(!(this instanceof gt))return new gt(e,t);this.options=t||{};for(r in V1)typeof this.options[r]>"u"?this.options[r]=V1[r]:this.options[r]=t[r];He("MqttClient :: options.protocol",t.protocol),He("MqttClient :: options.protocolVersion",t.protocolVersion),He("MqttClient :: options.username",t.username),He("MqttClient :: options.keepalive",t.keepalive),He("MqttClient :: options.reconnectPeriod",t.reconnectPeriod),He("MqttClient :: options.rejectUnauthorized",t.rejectUnauthorized),He("MqttClient :: options.topicAliasMaximum",t.topicAliasMaximum),this.options.clientId=typeof t.clientId=="string"?t.clientId:YO(),He("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=t.protocolVersion===5&&t.customHandleAcks?t.customHandleAcks:function(){arguments[3](0)},this.streamBuilder=e,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new WO:this.options.messageIdProvider,this.outgoingStore=t.outgoingStore||new Vl,this.incomingStore=t.incomingStore||new Vl,this.queueQoSZero=t.queueQoSZero===void 0?!0:t.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,t.topicAliasMaximum>0&&(t.topicAliasMaximum>65535?He("MqttClient :: options.topicAliasMaximum is out of range"):this.topicAliasRecv=new HO(t.topicAliasMaximum)),this.on("connect",function(){const a=this.queue;function n(){const u=a.shift();He("deliver :: entry %o",u);let c=null;if(!u){i._resubscribe();return}c=u.packet,He("deliver :: call _sendPacket for %o",c);let d=!0;c.messageId&&c.messageId!==0&&(i.messageIdProvider.register(c.messageId)||(d=!1)),d?i._sendPacket(c,function(m){u.cb&&u.cb(m),n()}):(He("messageId: %d has already used. The message is skipped and removed.",c.messageId),n())}He("connect :: sending queued packets"),n()}),this.on("close",function(){He("close :: connected set to `false`"),this.connected=!1,He("close :: clearing connackTimer"),clearTimeout(this.connackTimer),He("close :: clearing ping timer"),i.pingTimer!==null&&(i.pingTimer.clear(),i.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),He("close :: calling _setupReconnect"),this._setupReconnect()}),i3.call(this),He("MqttClient :: setting up stream"),this._setupStream()}VO(gt,i3);gt.prototype._setupStream=function(){const e=this,t=new KO,r=n3.parser(this.options);let i=null;const a=[];He("_setupStream :: calling method to clear reconnect"),this._clearReconnect(),He("_setupStream :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),r.on("packet",function(m){He("parser :: on packet push to packets array."),a.push(m)});function n(){if(a.length)Yv(u);else{const m=i;i=null,m()}}function u(){He("work :: getting next packet in queue");const m=a.shift();if(m)He("work :: packet pulled from queue"),e._handlePacket(m,n);else{He("work :: no packets in queue");const M=i;i=null,He("work :: done flag is %s",!!M),M&&M()}}t._write=function(m,M,S){i=S,He("writable stream :: parsing buffer"),r.parse(m),u()};function c(m){He("streamErrorHandler :: error",m.message),GO.includes(m.code)?(He("streamErrorHandler :: emitting error"),e.emit("error",m)):yr(m)}He("_setupStream :: pipe stream to writable stream"),this.stream.pipe(t),this.stream.on("error",c),this.stream.on("close",function(){He("(%s)stream :: on close",e.options.clientId),JO(e.outgoing),He("stream: emit close to MqttClient"),e.emit("close")}),He("_setupStream: sending packet `connect`");const d=Object.create(this.options);if(d.cmd="connect",this.topicAliasRecv&&(d.properties||(d.properties={}),this.topicAliasRecv&&(d.properties.topicAliasMaximum=this.topicAliasRecv.max)),rs(this,d),r.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return e.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){const m=Fh({cmd:"auth",reasonCode:0},this.options.authPacket);rs(this,m)}}this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(function(){He("!!connectTimeout hit!! Calling _cleanUp with force `true`"),e._cleanUp(!0)},this.options.connectTimeout)};gt.prototype._handlePacket=function(e,t){const r=this.options;if(r.protocolVersion===5&&r.properties&&r.properties.maximumPacketSize&&r.properties.maximumPacketSize<e.length)return this.emit("error",new Error("exceeding packets size "+e.cmd)),this.end({reasonCode:149,properties:{reasonString:"Maximum packet size was exceeded"}}),this;switch(He("_handlePacket :: emitting packetreceive"),this.emit("packetreceive",e),e.cmd){case"publish":this._handlePublish(e,t);break;case"puback":case"pubrec":case"pubcomp":case"suback":case"unsuback":this._handleAck(e),t();break;case"pubrel":this._handlePubrel(e,t);break;case"connack":this._handleConnack(e),t();break;case"auth":this._handleAuth(e),t();break;case"pingresp":this._handlePingresp(e),t();break;case"disconnect":this._handleDisconnect(e),t();break}};gt.prototype._checkDisconnecting=function(e){return this.disconnecting&&(e&&e!==yr?e(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting};gt.prototype.publish=function(e,t,r,i){He("publish :: message `%s` to topic `%s`",t,e);const a=this.options;if(typeof r=="function"&&(i=r,r=null),r=Fh({qos:0,retain:!1,dup:!1},r),this._checkDisconnecting(i))return this;const u=this,c=function(){let d=0;if((r.qos===1||r.qos===2)&&(d=u._nextId(),d===null))return He("No messageId left"),!1;const m={cmd:"publish",topic:e,payload:t,qos:r.qos,retain:r.retain,messageId:d,dup:r.dup};switch(a.protocolVersion===5&&(m.properties=r.properties),He("publish :: qos",r.qos),r.qos){case 1:case 2:u.outgoing[m.messageId]={volatile:!1,cb:i||yr},He("MqttClient:publish: packet cmd: %s",m.cmd),u._sendPacket(m,void 0,r.cbStorePut);break;default:He("MqttClient:publish: packet cmd: %s",m.cmd),u._sendPacket(m,i,r.cbStorePut);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!c())&&this._storeProcessingQueue.push({invoke:c,cbStorePut:r.cbStorePut,callback:i}),this};gt.prototype.subscribe=function(){const e=this,t=new Array(arguments.length);for(let S=0;S<arguments.length;S++)t[S]=arguments[S];const r=[];let i=t.shift();const a=i.resubscribe;let n=t.pop()||yr,u=t.pop();const c=this.options.protocolVersion;delete i.resubscribe,typeof i=="string"&&(i=[i]),typeof n!="function"&&(u=n,n=yr);const d=a3.validateTopics(i);if(d!==null)return Zv(n,new Error("Invalid topic "+d)),this;if(this._checkDisconnecting(n))return He("subscribe: discconecting true"),this;const m={qos:0};if(c===5&&(m.nl=!1,m.rap=!1,m.rh=0),u=Fh(m,u),Array.isArray(i)?i.forEach(function(S){if(He("subscribe: array topic %s",S),!Object.prototype.hasOwnProperty.call(e._resubscribeTopics,S)||e._resubscribeTopics[S].qos<u.qos||a){const R={topic:S,qos:u.qos};c===5&&(R.nl=u.nl,R.rap=u.rap,R.rh=u.rh,R.properties=u.properties),He("subscribe: pushing topic `%s` and qos `%s` to subs list",R.topic,R.qos),r.push(R)}}):Object.keys(i).forEach(function(S){if(He("subscribe: object topic %s",S),!Object.prototype.hasOwnProperty.call(e._resubscribeTopics,S)||e._resubscribeTopics[S].qos<i[S].qos||a){const R={topic:S,qos:i[S].qos};c===5&&(R.nl=i[S].nl,R.rap=i[S].rap,R.rh=i[S].rh,R.properties=u.properties),He("subscribe: pushing `%s` to subs list",R),r.push(R)}}),!r.length)return n(null,[]),this;const M=function(){const S=e._nextId();if(S===null)return He("No messageId left"),!1;const R={cmd:"subscribe",subscriptions:r,qos:1,retain:!1,dup:!1,messageId:S};if(u.properties&&(R.properties=u.properties),e.options.resubscribe){He("subscribe :: resubscribe true");const C=[];r.forEach(function(P){if(e.options.reconnectPeriod>0){const k={qos:P.qos};c===5&&(k.nl=P.nl||!1,k.rap=P.rap||!1,k.rh=P.rh||0,k.properties=P.properties),e._resubscribeTopics[P.topic]=k,C.push(P.topic)}}),e.messageIdToTopic[R.messageId]=C}return e.outgoing[R.messageId]={volatile:!0,cb:function(C,P){if(!C){const k=P.granted;for(let L=0;L<k.length;L+=1)r[L].qos=k[L]}n(C,r)}},He("subscribe :: call _sendPacket"),e._sendPacket(R),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!M())&&this._storeProcessingQueue.push({invoke:M,callback:n}),this};gt.prototype.unsubscribe=function(){const e=this,t=new Array(arguments.length);for(let c=0;c<arguments.length;c++)t[c]=arguments[c];let r=t.shift(),i=t.pop()||yr,a=t.pop();typeof r=="string"&&(r=[r]),typeof i!="function"&&(a=i,i=yr);const n=a3.validateTopics(r);if(n!==null)return Zv(i,new Error("Invalid topic "+n)),this;if(e._checkDisconnecting(i))return this;const u=function(){const c=e._nextId();if(c===null)return He("No messageId left"),!1;const d={cmd:"unsubscribe",qos:1,messageId:c};return typeof r=="string"?d.unsubscriptions=[r]:Array.isArray(r)&&(d.unsubscriptions=r),e.options.resubscribe&&d.unsubscriptions.forEach(function(m){delete e._resubscribeTopics[m]}),typeof a=="object"&&a.properties&&(d.properties=a.properties),e.outgoing[d.messageId]={volatile:!0,cb:i},He("unsubscribe: call _sendPacket"),e._sendPacket(d),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!u())&&this._storeProcessingQueue.push({invoke:u,callback:i}),this};gt.prototype.end=function(e,t,r){const i=this;He("end :: (%s)",this.options.clientId),(e==null||typeof e!="boolean")&&(r=t||yr,t=e,e=!1,typeof t!="object"&&(r=t,t=null,typeof r!="function"&&(r=yr))),typeof t!="object"&&(r=t,t=null),He("end :: cb? %s",!!r),r=r||yr;function a(){He("end :: closeStores: closing incoming and outgoing stores"),i.disconnected=!0,i.incomingStore.close(function(u){i.outgoingStore.close(function(c){if(He("end :: closeStores: emitting end"),i.emit("end"),r){const d=u||c;He("end :: closeStores: invoking callback with args"),r(d)}})}),i._deferredReconnect&&i._deferredReconnect()}function n(){He("end :: (%s) :: finish :: calling _cleanUp with force %s",i.options.clientId,e),i._cleanUp(e,()=>{He("end :: finish :: calling process.nextTick on closeStores"),Yv(a.bind(i))},t)}return this.disconnecting?(r(),this):(this._clearReconnect(),this.disconnecting=!0,!e&&Object.keys(this.outgoing).length>0?(He("end :: (%s) :: calling finish in 10ms once outgoing is empty",i.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,n,10))):(He("end :: (%s) :: immediately calling finish",i.options.clientId),n()),this)};gt.prototype.removeOutgoingMessage=function(e){const t=this.outgoing[e]?this.outgoing[e].cb:null;return delete this.outgoing[e],this.outgoingStore.del({messageId:e},function(){t(new Error("Message removed"))}),this};gt.prototype.reconnect=function(e){He("client reconnect");const t=this,r=function(){e?(t.options.incomingStore=e.incomingStore,t.options.outgoingStore=e.outgoingStore):(t.options.incomingStore=null,t.options.outgoingStore=null),t.incomingStore=t.options.incomingStore||new Vl,t.outgoingStore=t.options.outgoingStore||new Vl,t.disconnecting=!1,t.disconnected=!1,t._deferredReconnect=null,t._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=r:r(),this};gt.prototype._reconnect=function(){He("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this._setupStream()}),He("client already connected. disconnecting first.")):(He("_reconnect: calling _setupStream"),this._setupStream())};gt.prototype._setupReconnect=function(){const e=this;!e.disconnecting&&!e.reconnectTimer&&e.options.reconnectPeriod>0?(this.reconnecting||(He("_setupReconnect :: emit `offline` state"),this.emit("offline"),He("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),He("_setupReconnect :: setting reconnectTimer for %d ms",e.options.reconnectPeriod),e.reconnectTimer=setInterval(function(){He("reconnectTimer :: reconnect triggered!"),e._reconnect()},e.options.reconnectPeriod)):He("_setupReconnect :: doing nothing...")};gt.prototype._clearReconnect=function(){He("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)};gt.prototype._cleanUp=function(e,t){const r=arguments[2];if(t&&(He("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",t)),He("_cleanUp :: forced? %s",e),e)this.options.reconnectPeriod===0&&this.options.clean&&XO(this.outgoing),He("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{const i=Fh({cmd:"disconnect"},r);He("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(i,Zv.bind(null,this.stream.end.bind(this.stream)))}this.disconnecting||(He("_cleanUp :: client not disconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this.pingTimer!==null&&(He("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),t&&!this.connected&&(He("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",t),t())};gt.prototype._sendPacket=function(e,t,r){He("_sendPacket :: (%s) ::  start",this.options.clientId),r=r||yr,t=t||yr;const i=ZO(this,e);if(i){t(i);return}if(!this.connected){if(e.cmd==="auth"){this._shiftPingInterval(),rs(this,e,t);return}He("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(e,t,r);return}switch(this._shiftPingInterval(),e.cmd){case"publish":break;case"pubrel":z1(this,e,t,r);return;default:rs(this,e,t);return}switch(e.qos){case 2:case 1:z1(this,e,t,r);break;case 0:default:rs(this,e,t);break}He("_sendPacket :: (%s) ::  end",this.options.clientId)};gt.prototype._storePacket=function(e,t,r){He("_storePacket :: packet: %o",e),He("_storePacket :: cb? %s",!!t),r=r||yr;let i=e;if(i.cmd==="publish"){i=o3(e);const a=s3(this,i);if(a)return t&&t(a)}(i.qos||0)===0&&this.queueQoSZero||i.cmd!=="publish"?this.queue.push({packet:i,cb:t}):i.qos>0?(t=this.outgoing[i.messageId]?this.outgoing[i.messageId].cb:null,this.outgoingStore.put(i,function(a){if(a)return t&&t(a);r()})):t&&t(new Error("No connection to broker"))};gt.prototype._setupPingTimer=function(){He("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive);const e=this;!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=zO(function(){e._checkPing()},this.options.keepalive*1e3))};gt.prototype._shiftPingInterval=function(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(this.options.keepalive*1e3)};gt.prototype._checkPing=function(){He("_checkPing :: checking ping..."),this.pingResp?(He("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(He("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))};gt.prototype._handlePingresp=function(){this.pingResp=!0};gt.prototype._handleConnack=function(e){He("_handleConnack");const t=this.options,i=t.protocolVersion===5?e.reasonCode:e.returnCode;if(clearTimeout(this.connackTimer),delete this.topicAliasSend,e.properties){if(e.properties.topicAliasMaximum){if(e.properties.topicAliasMaximum>65535){this.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}e.properties.topicAliasMaximum>0&&(this.topicAliasSend=new qO(e.properties.topicAliasMaximum))}e.properties.serverKeepAlive&&t.keepalive&&(t.keepalive=e.properties.serverKeepAlive,this._shiftPingInterval()),e.properties.maximumPacketSize&&(t.properties||(t.properties={}),t.properties.maximumPacketSize=e.properties.maximumPacketSize)}if(i===0)this.reconnecting=!1,this._onConnect(e);else if(i>0){const a=new Error("Connection refused: "+zl[i]);a.code=i,this.emit("error",a)}};gt.prototype._handleAuth=function(e){const r=this.options.protocolVersion,i=r===5?e.reasonCode:e.returnCode;if(r!==5){const n=new Error("Protocol error: Auth packets are only supported in MQTT 5. Your version:"+r);n.code=i,this.emit("error",n);return}const a=this;this.handleAuth(e,function(n,u){if(n){a.emit("error",n);return}if(i===24)a.reconnecting=!1,a._sendPacket(u);else{const c=new Error("Connection refused: "+zl[i]);n.code=i,a.emit("error",c)}})};gt.prototype.handleAuth=function(e,t){t()};gt.prototype._handlePublish=function(e,t){He("_handlePublish: packet %o",e),t=typeof t<"u"?t:yr;let r=e.topic.toString();const i=e.payload,a=e.qos,n=e.messageId,u=this,c=this.options,d=[0,16,128,131,135,144,145,151,153];if(this.options.protocolVersion===5){let m;if(e.properties&&(m=e.properties.topicAlias),typeof m<"u")if(r.length===0)if(m>0&&m<=65535){const M=this.topicAliasRecv.getTopicByAlias(m);if(M)r=M,He("_handlePublish :: topic complemented by alias. topic: %s - alias: %d",r,m);else{He("_handlePublish :: unregistered topic alias. alias: %d",m),this.emit("error",new Error("Received unregistered Topic Alias"));return}}else{He("_handlePublish :: topic alias out of range. alias: %d",m),this.emit("error",new Error("Received Topic Alias is out of range"));return}else if(this.topicAliasRecv.put(r,m))He("_handlePublish :: registered topic: %s - alias: %d",r,m);else{He("_handlePublish :: topic alias out of range. alias: %d",m),this.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(He("_handlePublish: qos %d",a),a){case 2:{c.customHandleAcks(r,i,e,function(m,M){if(m instanceof Error||(M=m,m=null),m)return u.emit("error",m);if(d.indexOf(M)===-1)return u.emit("error",new Error("Wrong reason code for pubrec"));M?u._sendPacket({cmd:"pubrec",messageId:n,reasonCode:M},t):u.incomingStore.put(e,function(){u._sendPacket({cmd:"pubrec",messageId:n},t)})});break}case 1:{c.customHandleAcks(r,i,e,function(m,M){if(m instanceof Error||(M=m,m=null),m)return u.emit("error",m);if(d.indexOf(M)===-1)return u.emit("error",new Error("Wrong reason code for puback"));M||u.emit("message",r,i,e),u.handleMessage(e,function(S){if(S)return t&&t(S);u._sendPacket({cmd:"puback",messageId:n,reasonCode:M},t)})});break}case 0:this.emit("message",r,i,e),this.handleMessage(e,t);break;default:He("_handlePublish: unknown QoS. Doing nothing.");break}};gt.prototype.handleMessage=function(e,t){t()};gt.prototype._handleAck=function(e){const t=e.messageId,r=e.cmd;let i=null;const a=this.outgoing[t]?this.outgoing[t].cb:null,n=this;let u;if(!a){He("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(He("_handleAck :: packet type",r),r){case"pubcomp":case"puback":{const c=e.reasonCode;c&&c>0&&c!==16&&(u=new Error("Publish error: "+zl[c]),u.code=c,a(u,e)),delete this.outgoing[t],this.outgoingStore.del(e,a),this.messageIdProvider.deallocate(t),this._invokeStoreProcessingQueue();break}case"pubrec":{i={cmd:"pubrel",qos:2,messageId:t};const c=e.reasonCode;c&&c>0&&c!==16?(u=new Error("Publish error: "+zl[c]),u.code=c,a(u,e)):this._sendPacket(i);break}case"suback":{delete this.outgoing[t],this.messageIdProvider.deallocate(t);for(let c=0;c<e.granted.length;c++)if(e.granted[c]&128){const d=this.messageIdToTopic[t];d&&d.forEach(function(m){delete n._resubscribeTopics[m]})}this._invokeStoreProcessingQueue(),a(null,e);break}case"unsuback":{delete this.outgoing[t],this.messageIdProvider.deallocate(t),this._invokeStoreProcessingQueue(),a(null);break}default:n.emit("error",new Error("unrecognized packet type"))}this.disconnecting&&Object.keys(this.outgoing).length===0&&this.emit("outgoingEmpty")};gt.prototype._handlePubrel=function(e,t){He("handling pubrel packet"),t=typeof t<"u"?t:yr;const r=e.messageId,i=this,a={cmd:"pubcomp",messageId:r};i.incomingStore.get(e,function(n,u){n?i._sendPacket(a,t):(i.emit("message",u.topic,u.payload,u),i.handleMessage(u,function(c){if(c)return t(c);i.incomingStore.del(u,yr),i._sendPacket(a,t)}))})};gt.prototype._handleDisconnect=function(e){this.emit("disconnect",e)};gt.prototype._nextId=function(){return this.messageIdProvider.allocate()};gt.prototype.getLastMessageId=function(){return this.messageIdProvider.getLastAllocated()};gt.prototype._resubscribe=function(){He("_resubscribe");const e=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion===5&&!this.connackPacket.sessionPresent)&&e.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){He("_resubscribe: protocolVersion 5");for(let t=0;t<e.length;t++){const r={};r[e[t]]=this._resubscribeTopics[e[t]],r.resubscribe=!0,this.subscribe(r,{properties:r[e[t]].properties})}}else this._resubscribeTopics.resubscribe=!0,this.subscribe(this._resubscribeTopics);else this._resubscribeTopics={};this._firstConnection=!1};gt.prototype._onConnect=function(e){if(this.disconnected){this.emit("connect",e);return}const t=this;this.connackPacket=e,this.messageIdProvider.clear(),this._setupPingTimer(),this.connected=!0;function r(){let i=t.outgoingStore.createStream();function a(){t._storeProcessing=!1,t._packetIdsDuringStoreProcessing={}}t.once("close",n),i.on("error",function(c){a(),t._flushStoreProcessingQueue(),t.removeListener("close",n),t.emit("error",c)});function n(){i.destroy(),i=null,t._flushStoreProcessingQueue(),a()}function u(){if(!i)return;t._storeProcessing=!0;const c=i.read(1);let d;if(!c){i.once("readable",u);return}if(t._packetIdsDuringStoreProcessing[c.messageId]){u();return}!t.disconnecting&&!t.reconnectTimer?(d=t.outgoing[c.messageId]?t.outgoing[c.messageId].cb:null,t.outgoing[c.messageId]={volatile:!1,cb:function(m,M){d&&d(m,M),u()}},t._packetIdsDuringStoreProcessing[c.messageId]=!0,t.messageIdProvider.register(c.messageId)?t._sendPacket(c):He("messageId: %d has already used.",c.messageId)):i.destroy&&i.destroy()}i.on("end",function(){let c=!0;for(const d in t._packetIdsDuringStoreProcessing)if(!t._packetIdsDuringStoreProcessing[d]){c=!1;break}c?(a(),t.removeListener("close",n),t._invokeAllStoreProcessingQueue(),t.emit("connect",e)):r()}),u()}r()};gt.prototype._invokeStoreProcessingQueue=function(){if(this._storeProcessingQueue.length>0){const e=this._storeProcessingQueue[0];if(e&&e.invoke())return this._storeProcessingQueue.shift(),!0}return!1};gt.prototype._invokeAllStoreProcessingQueue=function(){for(;this._invokeStoreProcessingQueue(););};gt.prototype._flushStoreProcessingQueue=function(){for(const e of this._storeProcessingQueue)e.cbStorePut&&e.cbStorePut(new Error("Connection closed")),e.callback&&e.callback(new Error("Connection closed"));this._storeProcessingQueue.splice(0)};var QO=gt,mp={exports:{}},Gl={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Gl.exports;(function(e,t){(function(r){var i=t&&!t.nodeType&&t,a=e&&!e.nodeType&&e,n=typeof Ye=="object"&&Ye;(n.global===n||n.window===n||n.self===n)&&(r=n);var u,c=2147483647,d=36,m=1,M=26,S=38,R=700,C=72,P=128,k="-",L=/^xn--/,I=/[^\x20-\x7E]/,B=/[\x2E\u3002\uFF0E\uFF61]/g,H={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=d-m,W=Math.floor,Y=String.fromCharCode,ie;function J(s){throw new RangeError(H[s])}function V(s,v){for(var T=s.length,$=[];T--;)$[T]=v(s[T]);return $}function oe(s,v){var T=s.split("@"),$="";T.length>1&&($=T[0]+"@",s=T[1]),s=s.replace(B,".");var G=s.split("."),ee=V(G,v).join(".");return $+ee}function _(s){for(var v=[],T=0,$=s.length,G,ee;T<$;)G=s.charCodeAt(T++),G>=55296&&G<=56319&&T<$?(ee=s.charCodeAt(T++),(ee&64512)==56320?v.push(((G&1023)<<10)+(ee&1023)+65536):(v.push(G),T--)):v.push(G);return v}function o(s){return V(s,function(v){var T="";return v>65535&&(v-=65536,T+=Y(v>>>10&1023|55296),v=56320|v&1023),T+=Y(v),T}).join("")}function f(s){return s-48<10?s-22:s-65<26?s-65:s-97<26?s-97:d}function l(s,v){return s+22+75*(s<26)-((v!=0)<<5)}function h(s,v,T){var $=0;for(s=T?W(s/R):s>>1,s+=W(s/v);s>F*M>>1;$+=d)s=W(s/F);return W($+(F+1)*s/(s+S))}function p(s){var v=[],T=s.length,$,G=0,ee=P,A=C,E,U,K,Z,b,y,O,q,X;for(E=s.lastIndexOf(k),E<0&&(E=0),U=0;U<E;++U)s.charCodeAt(U)>=128&&J("not-basic"),v.push(s.charCodeAt(U));for(K=E>0?E+1:0;K<T;){for(Z=G,b=1,y=d;K>=T&&J("invalid-input"),O=f(s.charCodeAt(K++)),(O>=d||O>W((c-G)/b))&&J("overflow"),G+=O*b,q=y<=A?m:y>=A+M?M:y-A,!(O<q);y+=d)X=d-q,b>W(c/X)&&J("overflow"),b*=X;$=v.length+1,A=h(G-Z,$,Z==0),W(G/$)>c-ee&&J("overflow"),ee+=W(G/$),G%=$,v.splice(G++,0,ee)}return o(v)}function w(s){var v,T,$,G,ee,A,E,U,K,Z,b,y=[],O,q,X,D;for(s=_(s),O=s.length,v=P,T=0,ee=C,A=0;A<O;++A)b=s[A],b<128&&y.push(Y(b));for($=G=y.length,G&&y.push(k);$<O;){for(E=c,A=0;A<O;++A)b=s[A],b>=v&&b<E&&(E=b);for(q=$+1,E-v>W((c-T)/q)&&J("overflow"),T+=(E-v)*q,v=E,A=0;A<O;++A)if(b=s[A],b<v&&++T>c&&J("overflow"),b==v){for(U=T,K=d;Z=K<=ee?m:K>=ee+M?M:K-ee,!(U<Z);K+=d)D=U-Z,X=d-Z,y.push(Y(l(Z+D%X,0))),U=W(D/X);y.push(Y(l(U,0))),ee=h(T,q,$==G),T=0,++$}++T,++v}return y.join("")}function x(s){return oe(s,function(v){return L.test(v)?p(v.slice(4).toLowerCase()):v})}function g(s){return oe(s,function(v){return I.test(v)?"xn--"+w(v):v})}if(u={version:"1.4.1",ucs2:{decode:_,encode:o},decode:p,encode:w,toASCII:g,toUnicode:x},i&&a)if(e.exports==i)a.exports=u;else for(ie in u)u.hasOwnProperty(ie)&&(i[ie]=u[ie]);else r.punycode=u})(Ye)})(Gl,Gl.exports);var eI=Gl.exports,yp={exports:{}},eu={};function tI(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var rI=function(e,t,r,i){t=t||"&",r=r||"=";var a={};if(typeof e!="string"||e.length===0)return a;var n=/\+/g;e=e.split(t);var u=1e3;i&&typeof i.maxKeys=="number"&&(u=i.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var d=0;d<c;++d){var m=e[d].replace(n,"%20"),M=m.indexOf(r),S,R,C,P;M>=0?(S=m.substr(0,M),R=m.substr(M+1)):(S=m,R=""),C=decodeURIComponent(S),P=decodeURIComponent(R),tI(a,C)?iI(a[C])?a[C].push(P):a[C]=[a[C],P]:a[C]=P}return a},iI=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"},of=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},nI=function(e,t,r,i){return t=t||"&",r=r||"=",e===null&&(e=void 0),typeof e=="object"?G1(aI(e),function(a){var n=encodeURIComponent(of(a))+r;return oI(e[a])?G1(e[a],function(u){return n+encodeURIComponent(of(u))}).join(t):n+encodeURIComponent(of(e[a]))}).join(t):i?encodeURIComponent(of(i))+r+encodeURIComponent(of(e)):""},oI=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};function G1(e,t){if(e.map)return e.map(t);for(var r=[],i=0;i<e.length;i++)r.push(t(e[i],i));return r}var aI=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t};eu.decode=eu.parse=rI;eu.encode=eu.stringify=nI;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=eu;function i(u){return encodeURIComponent(u)}function a(u){return decodeURIComponent(u)}var n={decode:r.decode,encode:r.encode,parse:r.parse,stringify:r.stringify,escape:i,unescape:a};Object.defineProperty(t,"decode",{enumerable:!0,get:function(){return r.decode}}),Object.defineProperty(t,"encode",{enumerable:!0,get:function(){return r.encode}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return r.parse}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return r.stringify}}),t.default=n,t.escape=i,t.unescape=a,t=e.exports=n})(yp,yp.exports);var sI=yp.exports;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=eI,i=sI;function a(Q){return Q&&typeof Q=="object"&&"default"in Q?Q:{default:Q}}var n=a(r),u=a(i),c={isString:function(Q){return typeof Q=="string"},isObject:function(Q){return typeof Q=="object"&&Q!==null},isNull:function(Q){return Q===null},isNullOrUndefined:function(Q){return Q==null}},d=n.default,m=c,M=h,S=w,R=x,C=p,P=k;function k(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var L=/^([a-z0-9.+-]+:)/i,I=/:[0-9]*$/,B=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,H=["<",">",'"',"`"," ","\r",`
-`,"	"],F=["{","}","|","\\","^","`"].concat(H),W=["'"].concat(F),Y=["%","/","?",";","#"].concat(W),ie=["/","?","#"],J=255,V=/^[+a-z0-9A-Z_-]{0,63}$/,oe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},o={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},l=u.default;function h(Q,ue,le){if(Q&&m.isObject(Q)&&Q instanceof k)return Q;var ce=new k;return ce.parse(Q,ue,le),ce}k.prototype.parse=function(Q,ue,le){if(!m.isString(Q))throw new TypeError("Parameter 'url' must be a string, not "+typeof Q);var ce=Q.indexOf("?"),pe=ce!==-1&&ce<Q.indexOf("#")?"?":"#",de=Q.split(pe),ae=/\\/g;de[0]=de[0].replace(ae,"/"),Q=de.join(pe);var fe=Q;if(fe=fe.trim(),!le&&Q.split("#").length===1){var Te=B.exec(fe);if(Te)return this.path=fe,this.href=fe,this.pathname=Te[1],Te[2]?(this.search=Te[2],ue?this.query=l.parse(this.search.substr(1)):this.query=this.search.substr(1)):ue&&(this.search="",this.query={}),this}var ve=L.exec(fe);if(ve){ve=ve[0];var Me=ve.toLowerCase();this.protocol=Me,fe=fe.substr(ve.length)}if(le||ve||fe.match(/^\/\/[^@\/]+@[^@\/]+/)){var Ke=fe.substr(0,2)==="//";Ke&&!(ve&&o[ve])&&(fe=fe.substr(2),this.slashes=!0)}if(!o[ve]&&(Ke||ve&&!f[ve])){for(var be=-1,Se=0;Se<ie.length;Se++){var qe=fe.indexOf(ie[Se]);qe!==-1&&(be===-1||qe<be)&&(be=qe)}var ye,_e;be===-1?_e=fe.lastIndexOf("@"):_e=fe.lastIndexOf("@",be),_e!==-1&&(ye=fe.slice(0,_e),fe=fe.slice(_e+1),this.auth=decodeURIComponent(ye)),be=-1;for(var Se=0;Se<Y.length;Se++){var qe=fe.indexOf(Y[Se]);qe!==-1&&(be===-1||qe<be)&&(be=qe)}be===-1&&(be=fe.length),this.host=fe.slice(0,be),fe=fe.slice(be),this.parseHost(),this.hostname=this.hostname||"";var Ve=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Ve)for(var ge=this.hostname.split(/\./),Se=0,xe=ge.length;Se<xe;Se++){var Xe=ge[Se];if(Xe&&!Xe.match(V)){for(var Re="",Le=0,at=Xe.length;Le<at;Le++)Xe.charCodeAt(Le)>127?Re+="x":Re+=Xe[Le];if(!Re.match(V)){var Ae=ge.slice(0,Se),Ne=ge.slice(Se+1),rt=Xe.match(oe);rt&&(Ae.push(rt[1]),Ne.unshift(rt[2])),Ne.length&&(fe="/"+Ne.join(".")+fe),this.hostname=Ae.join(".");break}}}this.hostname.length>J?this.hostname="":this.hostname=this.hostname.toLowerCase(),Ve||(this.hostname=d.toASCII(this.hostname));var Oe=this.port?":"+this.port:"",De=this.hostname||"";this.host=De+Oe,this.href+=this.host,Ve&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),fe[0]!=="/"&&(fe="/"+fe))}if(!_[Me])for(var Se=0,xe=W.length;Se<xe;Se++){var nt=W[Se];if(fe.indexOf(nt)!==-1){var Ie=encodeURIComponent(nt);Ie===nt&&(Ie=escape(nt)),fe=fe.split(nt).join(Ie)}}var $e=fe.indexOf("#");$e!==-1&&(this.hash=fe.substr($e),fe=fe.slice(0,$e));var st=fe.indexOf("?");if(st!==-1?(this.search=fe.substr(st),this.query=fe.substr(st+1),ue&&(this.query=l.parse(this.query)),fe=fe.slice(0,st)):ue&&(this.search="",this.query={}),fe&&(this.pathname=fe),f[Me]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Oe=this.pathname||"",Pe=this.search||"";this.path=Oe+Pe}return this.href=this.format(),this};function p(Q){return m.isString(Q)&&(Q=h(Q)),Q instanceof k?Q.format():k.prototype.format.call(Q)}k.prototype.format=function(){var Q=this.auth||"";Q&&(Q=encodeURIComponent(Q),Q=Q.replace(/%3A/i,":"),Q+="@");var ue=this.protocol||"",le=this.pathname||"",ce=this.hash||"",pe=!1,de="";this.host?pe=Q+this.host:this.hostname&&(pe=Q+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(pe+=":"+this.port)),this.query&&m.isObject(this.query)&&Object.keys(this.query).length&&(de=l.stringify(this.query));var ae=this.search||de&&"?"+de||"";return ue&&ue.substr(-1)!==":"&&(ue+=":"),this.slashes||(!ue||f[ue])&&pe!==!1?(pe="//"+(pe||""),le&&le.charAt(0)!=="/"&&(le="/"+le)):pe||(pe=""),ce&&ce.charAt(0)!=="#"&&(ce="#"+ce),ae&&ae.charAt(0)!=="?"&&(ae="?"+ae),le=le.replace(/[?#]/g,function(fe){return encodeURIComponent(fe)}),ae=ae.replace("#","%23"),ue+pe+le+ae+ce};function w(Q,ue){return h(Q,!1,!0).resolve(ue)}k.prototype.resolve=function(Q){return this.resolveObject(h(Q,!1,!0)).format()};function x(Q,ue){return Q?h(Q,!1,!0).resolveObject(ue):ue}k.prototype.resolveObject=function(Q){if(m.isString(Q)){var ue=new k;ue.parse(Q,!1,!0),Q=ue}for(var le=new k,ce=Object.keys(this),pe=0;pe<ce.length;pe++){var de=ce[pe];le[de]=this[de]}if(le.hash=Q.hash,Q.href==="")return le.href=le.format(),le;if(Q.slashes&&!Q.protocol){for(var ae=Object.keys(Q),fe=0;fe<ae.length;fe++){var Te=ae[fe];Te!=="protocol"&&(le[Te]=Q[Te])}return f[le.protocol]&&le.hostname&&!le.pathname&&(le.path=le.pathname="/"),le.href=le.format(),le}if(Q.protocol&&Q.protocol!==le.protocol){if(!f[Q.protocol]){for(var ve=Object.keys(Q),Me=0;Me<ve.length;Me++){var Ke=ve[Me];le[Ke]=Q[Ke]}return le.href=le.format(),le}if(le.protocol=Q.protocol,!Q.host&&!o[Q.protocol]){for(var xe=(Q.pathname||"").split("/");xe.length&&!(Q.host=xe.shift()););Q.host||(Q.host=""),Q.hostname||(Q.hostname=""),xe[0]!==""&&xe.unshift(""),xe.length<2&&xe.unshift(""),le.pathname=xe.join("/")}else le.pathname=Q.pathname;if(le.search=Q.search,le.query=Q.query,le.host=Q.host||"",le.auth=Q.auth,le.hostname=Q.hostname||Q.host,le.port=Q.port,le.pathname||le.search){var be=le.pathname||"",Se=le.search||"";le.path=be+Se}return le.slashes=le.slashes||Q.slashes,le.href=le.format(),le}var qe=le.pathname&&le.pathname.charAt(0)==="/",ye=Q.host||Q.pathname&&Q.pathname.charAt(0)==="/",_e=ye||qe||le.host&&Q.pathname,Ve=_e,ge=le.pathname&&le.pathname.split("/")||[],xe=Q.pathname&&Q.pathname.split("/")||[],Xe=le.protocol&&!f[le.protocol];if(Xe&&(le.hostname="",le.port=null,le.host&&(ge[0]===""?ge[0]=le.host:ge.unshift(le.host)),le.host="",Q.protocol&&(Q.hostname=null,Q.port=null,Q.host&&(xe[0]===""?xe[0]=Q.host:xe.unshift(Q.host)),Q.host=null),_e=_e&&(xe[0]===""||ge[0]==="")),ye)le.host=Q.host||Q.host===""?Q.host:le.host,le.hostname=Q.hostname||Q.hostname===""?Q.hostname:le.hostname,le.search=Q.search,le.query=Q.query,ge=xe;else if(xe.length)ge||(ge=[]),ge.pop(),ge=ge.concat(xe),le.search=Q.search,le.query=Q.query;else if(!m.isNullOrUndefined(Q.search)){if(Xe){le.hostname=le.host=ge.shift();var Re=le.host&&le.host.indexOf("@")>0?le.host.split("@"):!1;Re&&(le.auth=Re.shift(),le.host=le.hostname=Re.shift())}return le.search=Q.search,le.query=Q.query,(!m.isNull(le.pathname)||!m.isNull(le.search))&&(le.path=(le.pathname?le.pathname:"")+(le.search?le.search:"")),le.href=le.format(),le}if(!ge.length)return le.pathname=null,le.search?le.path="/"+le.search:le.path=null,le.href=le.format(),le;for(var Le=ge.slice(-1)[0],at=(le.host||Q.host||ge.length>1)&&(Le==="."||Le==="..")||Le==="",Ae=0,Ne=ge.length;Ne>=0;Ne--)Le=ge[Ne],Le==="."?ge.splice(Ne,1):Le===".."?(ge.splice(Ne,1),Ae++):Ae&&(ge.splice(Ne,1),Ae--);if(!_e&&!Ve)for(;Ae--;Ae)ge.unshift("..");_e&&ge[0]!==""&&(!ge[0]||ge[0].charAt(0)!=="/")&&ge.unshift(""),at&&ge.join("/").substr(-1)!=="/"&&ge.push("");var rt=ge[0]===""||ge[0]&&ge[0].charAt(0)==="/";if(Xe){le.hostname=le.host=rt?"":ge.length?ge.shift():"";var Re=le.host&&le.host.indexOf("@")>0?le.host.split("@"):!1;Re&&(le.auth=Re.shift(),le.host=le.hostname=Re.shift())}return _e=_e||le.host&&ge.length,_e&&!rt&&ge.unshift(""),ge.length?le.pathname=ge.join("/"):(le.pathname=null,le.path=null),(!m.isNull(le.pathname)||!m.isNull(le.search))&&(le.path=(le.pathname?le.pathname:"")+(le.search?le.search:"")),le.auth=Q.auth||le.auth,le.slashes=le.slashes||Q.slashes,le.href=le.format(),le},k.prototype.parseHost=function(){var Q=this.host,ue=I.exec(Q);ue&&(ue=ue[0],ue!==":"&&(this.port=ue.substr(1)),Q=Q.substr(0,Q.length-ue.length)),Q&&(this.hostname=Q)};function g(Q,ue){for(var le=0,ce=Q.length-1;ce>=0;ce--){var pe=Q[ce];pe==="."?Q.splice(ce,1):pe===".."?(Q.splice(ce,1),le++):le&&(Q.splice(ce,1),le--)}if(ue)for(;le--;le)Q.unshift("..");return Q}function s(){for(var Q="",ue=!1,le=arguments.length-1;le>=-1&&!ue;le--){var ce=le>=0?arguments[le]:"/";if(typeof ce!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!ce)continue;Q=ce+"/"+Q,ue=ce.charAt(0)==="/"}return Q=g(v(Q.split("/"),function(pe){return!!pe}),!ue).join("/"),(ue?"/":"")+Q||"."}function v(Q,ue){if(Q.filter)return Q.filter(ue);for(var le=[],ce=0;ce<Q.length;ce++)ue(Q[ce],ce,Q)&&le.push(Q[ce]);return le}var T=function(Q){function ue(){var ce=this||self;return delete Q.prototype.__magic__,ce}if(typeof globalThis=="object")return globalThis;if(this)return ue();Q.defineProperty(Q.prototype,"__magic__",{configurable:!0,get:ue});var le=__magic__;return le}(Object),$=C,G=M,ee=S,A=P,E=T.URL,U=T.URLSearchParams,K=/%/g,Z=/\\/g,b=/\n/g,y=/\r/g,O=/\t/g,q=47;function X(Q){var ue=Q??null;return!!(ue!==null&&(ue!=null&&ue.href)&&(ue!=null&&ue.origin))}function D(Q){if(Q.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var ue=Q.pathname,le=0;le<ue.length;le++)if(ue[le]==="%"){var ce=ue.codePointAt(le+2)|32;if(ue[le+1]==="2"&&ce===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(ue)}function N(Q){return Q.includes("%")&&(Q=Q.replace(K,"%25")),Q.includes("\\")&&(Q=Q.replace(Z,"%5C")),Q.includes(`
-`)&&(Q=Q.replace(b,"%0A")),Q.includes("\r")&&(Q=Q.replace(y,"%0D")),Q.includes("	")&&(Q=Q.replace(O,"%09")),Q}var j=function(ue){if(typeof ue>"u")throw new TypeError('The "domain" argument must be specified');return new E("http://"+ue).hostname},z=function(ue){if(typeof ue>"u")throw new TypeError('The "domain" argument must be specified');return new E("http://"+ue).hostname},se=function(ue){var le=new E("file://"),ce=s(ue),pe=ue.charCodeAt(ue.length-1);return pe===q&&ce[ce.length-1]!=="/"&&(ce+="/"),le.pathname=N(ce),le},te=function(ue){if(!X(ue)&&typeof ue!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof ue+" ("+ue+")");var le=new E(ue);if(le.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return D(le)},ne=function(ue,le){var ce,pe,de;if(le===void 0&&(le={}),!(ue instanceof E))return $(ue);if(typeof le!="object"||le===null)throw new TypeError('The "options" argument must be of type object.');var ae=(ce=le.auth)!=null?ce:!0,fe=(pe=le.fragment)!=null?pe:!0,Te=(de=le.search)!=null?de:!0,ve=new E(ue.toString());return ae||(ve.username="",ve.password=""),fe||(ve.hash=""),Te||(ve.search=""),ve.toString()},Ee={format:ne,parse:G,resolve:ee,resolveObject:R,Url:A,URL:E,URLSearchParams:U,domainToASCII:j,domainToUnicode:z,pathToFileURL:se,fileURLToPath:te};t.URL=E,t.URLSearchParams=U,t.Url=A,t.default=Ee,t.domainToASCII=j,t.domainToUnicode=z,t.fileURLToPath=te,t.format=ne,t.parse=G,t.pathToFileURL=se,t.resolve=ee,t.resolveObject=R,t=e.exports=Ee})(mp,mp.exports);var f3=mp.exports;const CV=Lo(f3);var gd,Y1;function bp(){if(Y1)return gd;Y1=1;var e=null;return gd=e,gd}var md,Z1;function X1(){if(Z1)return md;Z1=1;const e=bp(),t=zn("mqttjs:tcp");function r(i,a){a.port=a.port||1883,a.hostname=a.hostname||a.host||"localhost";const n=a.port,u=a.hostname;return t("port %d and host %s",n,u),e.createConnection(n,u)}return md=r,md}var yd,J1;function bd(){if(J1)return yd;J1=1;const e=bp(),t=bp(),r=zn("mqttjs:tls");function i(a,n){n.port=n.port||8883,n.host=n.hostname||n.host||"localhost",t.isIP(n.host)===0&&(n.servername=n.host),n.rejectUnauthorized=n.rejectUnauthorized!==!1,delete n.path,r("port %d host %s rejectUnauthorized %b",n.port,n.host,n.rejectUnauthorized);const u=e.connect(n);u.on("secureConnect",function(){n.rejectUnauthorized&&!u.authorized?u.emit("error",new Error("TLS not authorized")):u.removeListener("error",c)});function c(d){n.rejectUnauthorized&&a.emit("error",d),u.end()}return u.on("error",c),u}return yd=i,yd}var wp={exports:{}},u3=Or.EventEmitter,wd,Q1;function fI(){if(Q1)return wd;Q1=1;function e(P,k){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(P);k&&(I=I.filter(function(B){return Object.getOwnPropertyDescriptor(P,B).enumerable})),L.push.apply(L,I)}return L}function t(P){for(var k=1;k<arguments.length;k++){var L=arguments[k]!=null?arguments[k]:{};k%2?e(Object(L),!0).forEach(function(I){r(P,I,L[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):e(Object(L)).forEach(function(I){Object.defineProperty(P,I,Object.getOwnPropertyDescriptor(L,I))})}return P}function r(P,k,L){return k=u(k),k in P?Object.defineProperty(P,k,{value:L,enumerable:!0,configurable:!0,writable:!0}):P[k]=L,P}function i(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}function a(P,k){for(var L=0;L<k.length;L++){var I=k[L];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(P,u(I.key),I)}}function n(P,k,L){return k&&a(P.prototype,k),L&&a(P,L),Object.defineProperty(P,"prototype",{writable:!1}),P}function u(P){var k=c(P,"string");return typeof k=="symbol"?k:String(k)}function c(P,k){if(typeof P!="object"||P===null)return P;var L=P[Symbol.toPrimitive];if(L!==void 0){var I=L.call(P,k||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(P)}var d=ke,m=d.Buffer,M=ei,S=M.inspect,R=S&&S.custom||"inspect";function C(P,k,L){m.prototype.copy.call(P,k,L)}return wd=function(){function P(){i(this,P),this.head=null,this.tail=null,this.length=0}return n(P,[{key:"push",value:function(L){var I={data:L,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(L){var I={data:L,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var I=this.head,B=""+I.data;I=I.next;)B+=L+I.data;return B}},{key:"concat",value:function(L){if(this.length===0)return m.alloc(0);for(var I=m.allocUnsafe(L>>>0),B=this.head,H=0;B;)C(B.data,I,H),H+=B.data.length,B=B.next;return I}},{key:"consume",value:function(L,I){var B;return L<this.head.data.length?(B=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?B=this.shift():B=I?this._getString(L):this._getBuffer(L),B}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var I=this.head,B=1,H=I.data;for(L-=H.length;I=I.next;){var F=I.data,W=L>F.length?F.length:L;if(W===F.length?H+=F:H+=F.slice(0,L),L-=W,L===0){W===F.length?(++B,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=F.slice(W));break}++B}return this.length-=B,H}},{key:"_getBuffer",value:function(L){var I=m.allocUnsafe(L),B=this.head,H=1;for(B.data.copy(I),L-=B.data.length;B=B.next;){var F=B.data,W=L>F.length?F.length:L;if(F.copy(I,I.length-L,0,W),L-=W,L===0){W===F.length?(++H,B.next?this.head=B.next:this.head=this.tail=null):(this.head=B,B.data=F.slice(W));break}++H}return this.length-=H,I}},{key:R,value:function(L,I){return S(this,t(t({},I),{},{depth:0,customInspect:!1}))}}]),P}(),wd}function uI(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,we.nextTick(_p,this,e)):we.nextTick(_p,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(n){!t&&n?r._writableState?r._writableState.errorEmitted?we.nextTick(vl,r):(r._writableState.errorEmitted=!0,we.nextTick(ey,r,n)):we.nextTick(ey,r,n):t?(we.nextTick(vl,r),t(n)):we.nextTick(vl,r)}),this)}function ey(e,t){_p(e,t),vl(e)}function vl(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function lI(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function _p(e,t){e.emit("error",t)}function hI(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}var l3={destroy:uI,undestroy:lI,errorOrDestroy:hI},Sa={};function cI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var h3={};function _i(e,t,r){r||(r=Error);function i(n,u,c){return typeof t=="string"?t:t(n,u,c)}var a=function(n){cI(u,n);function u(c,d,m){return n.call(this,i(c,d,m))||this}return u}(r);a.prototype.name=r.name,a.prototype.code=e,h3[e]=a}function ty(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function dI(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function pI(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function vI(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}_i("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);_i("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&dI(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var a;if(pI(e," argument"))a="The ".concat(e," ").concat(i," ").concat(ty(t,"type"));else{var n=vI(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(n," ").concat(i," ").concat(ty(t,"type"))}return a+=". Received type ".concat(typeof r),a},TypeError);_i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");_i("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});_i("ERR_STREAM_PREMATURE_CLOSE","Premature close");_i("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});_i("ERR_MULTIPLE_CALLBACK","Callback called multiple times");_i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");_i("ERR_STREAM_WRITE_AFTER_END","write after end");_i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);_i("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);_i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Sa.codes=h3;var gI=Sa.codes.ERR_INVALID_OPT_VALUE;function mI(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function yI(e,t,r,i){var a=mI(t,i,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var n=i?r:"highWaterMark";throw new gI(n,a)}return Math.floor(a)}return e.objectMode?16:16*1024}var c3={getHighWaterMark:yI},_d,ry;function d3(){if(ry)return _d;ry=1,_d=J;function e(A){var E=this;this.next=null,this.entry=null,this.finish=function(){ee(E,A)}}var t;J.WritableState=Y;var r={deprecate:ks},i=u3,a=ke.Buffer,n=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(A){return a.from(A)}function c(A){return a.isBuffer(A)||A instanceof n}var d=l3,m=c3,M=m.getHighWaterMark,S=Sa.codes,R=S.ERR_INVALID_ARG_TYPE,C=S.ERR_METHOD_NOT_IMPLEMENTED,P=S.ERR_MULTIPLE_CALLBACK,k=S.ERR_STREAM_CANNOT_PIPE,L=S.ERR_STREAM_DESTROYED,I=S.ERR_STREAM_NULL_VALUES,B=S.ERR_STREAM_WRITE_AFTER_END,H=S.ERR_UNKNOWN_ENCODING,F=d.errorOrDestroy;Ze(J,i);function W(){}function Y(A,E,U){t=t||ps(),A=A||{},typeof U!="boolean"&&(U=E instanceof t),this.objectMode=!!A.objectMode,U&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=M(this,A,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=A.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){p(E,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}Y.prototype.getBuffer=function(){for(var E=this.bufferedRequest,U=[];E;)U.push(E),E=E.next;return U},function(){try{Object.defineProperty(Y.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ie;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ie=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(E){return ie.call(this,E)?!0:this!==J?!1:E&&E._writableState instanceof Y}})):ie=function(E){return E instanceof this};function J(A){t=t||ps();var E=this instanceof t;if(!E&&!ie.call(J,this))return new J(A);this._writableState=new Y(A,this,E),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),i.call(this)}J.prototype.pipe=function(){F(this,new k)};function V(A,E){var U=new B;F(A,U),we.nextTick(E,U)}function oe(A,E,U,K){var Z;return U===null?Z=new I:typeof U!="string"&&!E.objectMode&&(Z=new R("chunk",["string","Buffer"],U)),Z?(F(A,Z),we.nextTick(K,Z),!1):!0}J.prototype.write=function(A,E,U){var K=this._writableState,Z=!1,b=!K.objectMode&&c(A);return b&&!a.isBuffer(A)&&(A=u(A)),typeof E=="function"&&(U=E,E=null),b?E="buffer":E||(E=K.defaultEncoding),typeof U!="function"&&(U=W),K.ending?V(this,U):(b||oe(this,K,A,U))&&(K.pendingcb++,Z=o(this,K,b,A,E,U)),Z},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&g(this,A))},J.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new H(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _(A,E,U){return!A.objectMode&&A.decodeStrings!==!1&&typeof E=="string"&&(E=a.from(E,U)),E}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(A,E,U,K,Z,b){if(!U){var y=_(E,K,Z);K!==y&&(U=!0,Z="buffer",K=y)}var O=E.objectMode?1:K.length;E.length+=O;var q=E.length<E.highWaterMark;if(q||(E.needDrain=!0),E.writing||E.corked){var X=E.lastBufferedRequest;E.lastBufferedRequest={chunk:K,encoding:Z,isBuf:U,callback:b,next:null},X?X.next=E.lastBufferedRequest:E.bufferedRequest=E.lastBufferedRequest,E.bufferedRequestCount+=1}else f(A,E,!1,O,K,Z,b);return q}function f(A,E,U,K,Z,b,y){E.writelen=K,E.writecb=y,E.writing=!0,E.sync=!0,E.destroyed?E.onwrite(new L("write")):U?A._writev(Z,E.onwrite):A._write(Z,b,E.onwrite),E.sync=!1}function l(A,E,U,K,Z){--E.pendingcb,U?(we.nextTick(Z,K),we.nextTick($,A,E),A._writableState.errorEmitted=!0,F(A,K)):(Z(K),A._writableState.errorEmitted=!0,F(A,K),$(A,E))}function h(A){A.writing=!1,A.writecb=null,A.length-=A.writelen,A.writelen=0}function p(A,E){var U=A._writableState,K=U.sync,Z=U.writecb;if(typeof Z!="function")throw new P;if(h(U),E)l(A,U,K,E,Z);else{var b=s(U)||A.destroyed;!b&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&g(A,U),K?we.nextTick(w,A,U,b,Z):w(A,U,b,Z)}}function w(A,E,U,K){U||x(A,E),E.pendingcb--,K(),$(A,E)}function x(A,E){E.length===0&&E.needDrain&&(E.needDrain=!1,A.emit("drain"))}function g(A,E){E.bufferProcessing=!0;var U=E.bufferedRequest;if(A._writev&&U&&U.next){var K=E.bufferedRequestCount,Z=new Array(K),b=E.corkedRequestsFree;b.entry=U;for(var y=0,O=!0;U;)Z[y]=U,U.isBuf||(O=!1),U=U.next,y+=1;Z.allBuffers=O,f(A,E,!0,E.length,Z,"",b.finish),E.pendingcb++,E.lastBufferedRequest=null,b.next?(E.corkedRequestsFree=b.next,b.next=null):E.corkedRequestsFree=new e(E),E.bufferedRequestCount=0}else{for(;U;){var q=U.chunk,X=U.encoding,D=U.callback,N=E.objectMode?1:q.length;if(f(A,E,!1,N,q,X,D),U=U.next,E.bufferedRequestCount--,E.writing)break}U===null&&(E.lastBufferedRequest=null)}E.bufferedRequest=U,E.bufferProcessing=!1}J.prototype._write=function(A,E,U){U(new C("_write()"))},J.prototype._writev=null,J.prototype.end=function(A,E,U){var K=this._writableState;return typeof A=="function"?(U=A,A=null,E=null):typeof E=="function"&&(U=E,E=null),A!=null&&this.write(A,E),K.corked&&(K.corked=1,this.uncork()),K.ending||G(this,K,U),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function v(A,E){A._final(function(U){E.pendingcb--,U&&F(A,U),E.prefinished=!0,A.emit("prefinish"),$(A,E)})}function T(A,E){!E.prefinished&&!E.finalCalled&&(typeof A._final=="function"&&!E.destroyed?(E.pendingcb++,E.finalCalled=!0,we.nextTick(v,A,E)):(E.prefinished=!0,A.emit("prefinish")))}function $(A,E){var U=s(E);if(U&&(T(A,E),E.pendingcb===0&&(E.finished=!0,A.emit("finish"),E.autoDestroy))){var K=A._readableState;(!K||K.autoDestroy&&K.endEmitted)&&A.destroy()}return U}function G(A,E,U){E.ending=!0,$(A,E),U&&(E.finished?we.nextTick(U):A.once("finish",U)),E.ended=!0,A.writable=!1}function ee(A,E,U){var K=A.entry;for(A.entry=null;K;){var Z=K.callback;E.pendingcb--,Z(U),K=K.next}E.corkedRequestsFree.next=A}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),J.prototype.destroy=d.destroy,J.prototype._undestroy=d.undestroy,J.prototype._destroy=function(A,E){E(A)},_d}var Md,iy;function ps(){if(iy)return Md;iy=1;var e=Object.keys||function(m){var M=[];for(var S in m)M.push(S);return M};Md=u;var t=v3(),r=d3();Ze(u,t);for(var i=e(r.prototype),a=0;a<i.length;a++){var n=i[a];u.prototype[n]||(u.prototype[n]=r.prototype[n])}function u(m){if(!(this instanceof u))return new u(m);t.call(this,m),r.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||we.nextTick(d,this)}function d(m){m.end()}return Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(M){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=M,this._writableState.destroyed=M)}}),Md}var ny=Sa.codes.ERR_STREAM_PREMATURE_CLOSE;function bI(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];e.apply(this,i)}}}function wI(){}function _I(e){return e.setHeader&&typeof e.abort=="function"}function p3(e,t,r){if(typeof t=="function")return p3(e,null,t);t||(t={}),r=bI(r||wI);var i=t.readable||t.readable!==!1&&e.readable,a=t.writable||t.writable!==!1&&e.writable,n=function(){e.writable||c()},u=e._writableState&&e._writableState.finished,c=function(){a=!1,u=!0,i||r.call(e)},d=e._readableState&&e._readableState.endEmitted,m=function(){i=!1,d=!0,a||r.call(e)},M=function(P){r.call(e,P)},S=function(){var P;if(i&&!d)return(!e._readableState||!e._readableState.ended)&&(P=new ny),r.call(e,P);if(a&&!u)return(!e._writableState||!e._writableState.ended)&&(P=new ny),r.call(e,P)},R=function(){e.req.on("finish",c)};return _I(e)?(e.on("complete",c),e.on("abort",S),e.req?R():e.on("request",R)):a&&!e._writableState&&(e.on("end",n),e.on("close",n)),e.on("end",m),e.on("finish",c),t.error!==!1&&e.on("error",M),e.on("close",S),function(){e.removeListener("complete",c),e.removeListener("abort",S),e.removeListener("request",R),e.req&&e.req.removeListener("finish",c),e.removeListener("end",n),e.removeListener("close",n),e.removeListener("finish",c),e.removeListener("end",m),e.removeListener("error",M),e.removeListener("close",S)}}var Xv=p3,Sd,oy;function MI(){if(oy)return Sd;oy=1;var e;function t(H,F,W){return F=r(F),F in H?Object.defineProperty(H,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):H[F]=W,H}function r(H){var F=i(H,"string");return typeof F=="symbol"?F:String(F)}function i(H,F){if(typeof H!="object"||H===null)return H;var W=H[Symbol.toPrimitive];if(W!==void 0){var Y=W.call(H,F||"default");if(typeof Y!="object")return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(H)}var a=Xv,n=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),M=Symbol("handlePromise"),S=Symbol("stream");function R(H,F){return{value:H,done:F}}function C(H){var F=H[n];if(F!==null){var W=H[S].read();W!==null&&(H[m]=null,H[n]=null,H[u]=null,F(R(W,!1)))}}function P(H){we.nextTick(C,H)}function k(H,F){return function(W,Y){H.then(function(){if(F[d]){W(R(void 0,!0));return}F[M](W,Y)},Y)}}var L=Object.getPrototypeOf(function(){}),I=Object.setPrototypeOf((e={get stream(){return this[S]},next:function(){var F=this,W=this[c];if(W!==null)return Promise.reject(W);if(this[d])return Promise.resolve(R(void 0,!0));if(this[S].destroyed)return new Promise(function(V,oe){we.nextTick(function(){F[c]?oe(F[c]):V(R(void 0,!0))})});var Y=this[m],ie;if(Y)ie=new Promise(k(Y,this));else{var J=this[S].read();if(J!==null)return Promise.resolve(R(J,!1));ie=new Promise(this[M])}return this[m]=ie,ie}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var F=this;return new Promise(function(W,Y){F[S].destroy(null,function(ie){if(ie){Y(ie);return}W(R(void 0,!0))})})}),e),L),B=function(F){var W,Y=Object.create(I,(W={},t(W,S,{value:F,writable:!0}),t(W,n,{value:null,writable:!0}),t(W,u,{value:null,writable:!0}),t(W,c,{value:null,writable:!0}),t(W,d,{value:F._readableState.endEmitted,writable:!0}),t(W,M,{value:function(J,V){var oe=Y[S].read();oe?(Y[m]=null,Y[n]=null,Y[u]=null,J(R(oe,!1))):(Y[n]=J,Y[u]=V)},writable:!0}),W));return Y[m]=null,a(F,function(ie){if(ie&&ie.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=Y[u];J!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,J(ie)),Y[c]=ie;return}var V=Y[n];V!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,V(R(void 0,!0))),Y[d]=!0}),F.on("readable",P.bind(null,Y)),Y};return Sd=B,Sd}var xd,ay;function SI(){return ay||(ay=1,xd=function(){throw new Error("Readable.from is not available in the browser")}),xd}var Ed,sy;function v3(){if(sy)return Ed;sy=1,Ed=V;var e;V.ReadableState=J,Or.EventEmitter;var t=function(y,O){return y.listeners(O).length},r=u3,i=ke.Buffer,a=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function n(b){return i.from(b)}function u(b){return i.isBuffer(b)||b instanceof a}var c=ei,d;c&&c.debuglog?d=c.debuglog("stream"):d=function(){};var m=fI(),M=l3,S=c3,R=S.getHighWaterMark,C=Sa.codes,P=C.ERR_INVALID_ARG_TYPE,k=C.ERR_STREAM_PUSH_AFTER_EOF,L=C.ERR_METHOD_NOT_IMPLEMENTED,I=C.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,B,H,F;Ze(V,r);var W=M.errorOrDestroy,Y=["error","close","destroy","pause","resume"];function ie(b,y,O){if(typeof b.prependListener=="function")return b.prependListener(y,O);!b._events||!b._events[y]?b.on(y,O):Array.isArray(b._events[y])?b._events[y].unshift(O):b._events[y]=[O,b._events[y]]}function J(b,y,O){e=e||ps(),b=b||{},typeof O!="boolean"&&(O=y instanceof e),this.objectMode=!!b.objectMode,O&&(this.objectMode=this.objectMode||!!b.readableObjectMode),this.highWaterMark=R(this,b,"readableHighWaterMark",O),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=b.emitClose!==!1,this.autoDestroy=!!b.autoDestroy,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(B||(B=Xr().StringDecoder),this.decoder=new B(b.encoding),this.encoding=b.encoding)}function V(b){if(e=e||ps(),!(this instanceof V))return new V(b);var y=this instanceof e;this._readableState=new J(b,this,y),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),r.call(this)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(y){this._readableState&&(this._readableState.destroyed=y)}}),V.prototype.destroy=M.destroy,V.prototype._undestroy=M.undestroy,V.prototype._destroy=function(b,y){y(b)},V.prototype.push=function(b,y){var O=this._readableState,q;return O.objectMode?q=!0:typeof b=="string"&&(y=y||O.defaultEncoding,y!==O.encoding&&(b=i.from(b,y),y=""),q=!0),oe(this,b,y,!1,q)},V.prototype.unshift=function(b){return oe(this,b,null,!0,!1)};function oe(b,y,O,q,X){d("readableAddChunk",y);var D=b._readableState;if(y===null)D.reading=!1,p(b,D);else{var N;if(X||(N=o(D,y)),N)W(b,N);else if(D.objectMode||y&&y.length>0)if(typeof y!="string"&&!D.objectMode&&Object.getPrototypeOf(y)!==i.prototype&&(y=n(y)),q)D.endEmitted?W(b,new I):_(b,D,y,!0);else if(D.ended)W(b,new k);else{if(D.destroyed)return!1;D.reading=!1,D.decoder&&!O?(y=D.decoder.write(y),D.objectMode||y.length!==0?_(b,D,y,!1):g(b,D)):_(b,D,y,!1)}else q||(D.reading=!1,g(b,D))}return!D.ended&&(D.length<D.highWaterMark||D.length===0)}function _(b,y,O,q){y.flowing&&y.length===0&&!y.sync?(y.awaitDrain=0,b.emit("data",O)):(y.length+=y.objectMode?1:O.length,q?y.buffer.unshift(O):y.buffer.push(O),y.needReadable&&w(b)),g(b,y)}function o(b,y){var O;return!u(y)&&typeof y!="string"&&y!==void 0&&!b.objectMode&&(O=new P("chunk",["string","Buffer","Uint8Array"],y)),O}V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(b){B||(B=Xr().StringDecoder);var y=new B(b);this._readableState.decoder=y,this._readableState.encoding=this._readableState.decoder.encoding;for(var O=this._readableState.buffer.head,q="";O!==null;)q+=y.write(O.data),O=O.next;return this._readableState.buffer.clear(),q!==""&&this._readableState.buffer.push(q),this._readableState.length=q.length,this};var f=1073741824;function l(b){return b>=f?b=f:(b--,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,b|=b>>>16,b++),b}function h(b,y){return b<=0||y.length===0&&y.ended?0:y.objectMode?1:b!==b?y.flowing&&y.length?y.buffer.head.data.length:y.length:(b>y.highWaterMark&&(y.highWaterMark=l(b)),b<=y.length?b:y.ended?y.length:(y.needReadable=!0,0))}V.prototype.read=function(b){d("read",b),b=parseInt(b,10);var y=this._readableState,O=b;if(b!==0&&(y.emittedReadable=!1),b===0&&y.needReadable&&((y.highWaterMark!==0?y.length>=y.highWaterMark:y.length>0)||y.ended))return d("read: emitReadable",y.length,y.ended),y.length===0&&y.ended?U(this):w(this),null;if(b=h(b,y),b===0&&y.ended)return y.length===0&&U(this),null;var q=y.needReadable;d("need readable",q),(y.length===0||y.length-b<y.highWaterMark)&&(q=!0,d("length less than watermark",q)),y.ended||y.reading?(q=!1,d("reading or ended",q)):q&&(d("do read"),y.reading=!0,y.sync=!0,y.length===0&&(y.needReadable=!0),this._read(y.highWaterMark),y.sync=!1,y.reading||(b=h(O,y)));var X;return b>0?X=E(b,y):X=null,X===null?(y.needReadable=y.length<=y.highWaterMark,b=0):(y.length-=b,y.awaitDrain=0),y.length===0&&(y.ended||(y.needReadable=!0),O!==b&&y.ended&&U(this)),X!==null&&this.emit("data",X),X};function p(b,y){if(d("onEofChunk"),!y.ended){if(y.decoder){var O=y.decoder.end();O&&O.length&&(y.buffer.push(O),y.length+=y.objectMode?1:O.length)}y.ended=!0,y.sync?w(b):(y.needReadable=!1,y.emittedReadable||(y.emittedReadable=!0,x(b)))}}function w(b){var y=b._readableState;d("emitReadable",y.needReadable,y.emittedReadable),y.needReadable=!1,y.emittedReadable||(d("emitReadable",y.flowing),y.emittedReadable=!0,we.nextTick(x,b))}function x(b){var y=b._readableState;d("emitReadable_",y.destroyed,y.length,y.ended),!y.destroyed&&(y.length||y.ended)&&(b.emit("readable"),y.emittedReadable=!1),y.needReadable=!y.flowing&&!y.ended&&y.length<=y.highWaterMark,A(b)}function g(b,y){y.readingMore||(y.readingMore=!0,we.nextTick(s,b,y))}function s(b,y){for(;!y.reading&&!y.ended&&(y.length<y.highWaterMark||y.flowing&&y.length===0);){var O=y.length;if(d("maybeReadMore read 0"),b.read(0),O===y.length)break}y.readingMore=!1}V.prototype._read=function(b){W(this,new L("_read()"))},V.prototype.pipe=function(b,y){var O=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=b;break;case 1:q.pipes=[q.pipes,b];break;default:q.pipes.push(b);break}q.pipesCount+=1,d("pipe count=%d opts=%j",q.pipesCount,y);var X=(!y||y.end!==!1)&&b!==we.stdout&&b!==we.stderr,D=X?j:le;q.endEmitted?we.nextTick(D):O.once("end",D),b.on("unpipe",N);function N(ce,pe){d("onunpipe"),ce===O&&pe&&pe.hasUnpiped===!1&&(pe.hasUnpiped=!0,te())}function j(){d("onend"),b.end()}var z=v(O);b.on("drain",z);var se=!1;function te(){d("cleanup"),b.removeListener("close",Q),b.removeListener("finish",ue),b.removeListener("drain",z),b.removeListener("error",Ee),b.removeListener("unpipe",N),O.removeListener("end",j),O.removeListener("end",le),O.removeListener("data",ne),se=!0,q.awaitDrain&&(!b._writableState||b._writableState.needDrain)&&z()}O.on("data",ne);function ne(ce){d("ondata");var pe=b.write(ce);d("dest.write",pe),pe===!1&&((q.pipesCount===1&&q.pipes===b||q.pipesCount>1&&Z(q.pipes,b)!==-1)&&!se&&(d("false write response, pause",q.awaitDrain),q.awaitDrain++),O.pause())}function Ee(ce){d("onerror",ce),le(),b.removeListener("error",Ee),t(b,"error")===0&&W(b,ce)}ie(b,"error",Ee);function Q(){b.removeListener("finish",ue),le()}b.once("close",Q);function ue(){d("onfinish"),b.removeListener("close",Q),le()}b.once("finish",ue);function le(){d("unpipe"),O.unpipe(b)}return b.emit("pipe",O),q.flowing||(d("pipe resume"),O.resume()),b};function v(b){return function(){var O=b._readableState;d("pipeOnDrain",O.awaitDrain),O.awaitDrain&&O.awaitDrain--,O.awaitDrain===0&&t(b,"data")&&(O.flowing=!0,A(b))}}V.prototype.unpipe=function(b){var y=this._readableState,O={hasUnpiped:!1};if(y.pipesCount===0)return this;if(y.pipesCount===1)return b&&b!==y.pipes?this:(b||(b=y.pipes),y.pipes=null,y.pipesCount=0,y.flowing=!1,b&&b.emit("unpipe",this,O),this);if(!b){var q=y.pipes,X=y.pipesCount;y.pipes=null,y.pipesCount=0,y.flowing=!1;for(var D=0;D<X;D++)q[D].emit("unpipe",this,{hasUnpiped:!1});return this}var N=Z(y.pipes,b);return N===-1?this:(y.pipes.splice(N,1),y.pipesCount-=1,y.pipesCount===1&&(y.pipes=y.pipes[0]),b.emit("unpipe",this,O),this)},V.prototype.on=function(b,y){var O=r.prototype.on.call(this,b,y),q=this._readableState;return b==="data"?(q.readableListening=this.listenerCount("readable")>0,q.flowing!==!1&&this.resume()):b==="readable"&&!q.endEmitted&&!q.readableListening&&(q.readableListening=q.needReadable=!0,q.flowing=!1,q.emittedReadable=!1,d("on readable",q.length,q.reading),q.length?w(this):q.reading||we.nextTick($,this)),O},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(b,y){var O=r.prototype.removeListener.call(this,b,y);return b==="readable"&&we.nextTick(T,this),O},V.prototype.removeAllListeners=function(b){var y=r.prototype.removeAllListeners.apply(this,arguments);return(b==="readable"||b===void 0)&&we.nextTick(T,this),y};function T(b){var y=b._readableState;y.readableListening=b.listenerCount("readable")>0,y.resumeScheduled&&!y.paused?y.flowing=!0:b.listenerCount("data")>0&&b.resume()}function $(b){d("readable nexttick read 0"),b.read(0)}V.prototype.resume=function(){var b=this._readableState;return b.flowing||(d("resume"),b.flowing=!b.readableListening,G(this,b)),b.paused=!1,this};function G(b,y){y.resumeScheduled||(y.resumeScheduled=!0,we.nextTick(ee,b,y))}function ee(b,y){d("resume",y.reading),y.reading||b.read(0),y.resumeScheduled=!1,b.emit("resume"),A(b),y.flowing&&!y.reading&&b.read(0)}V.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function A(b){var y=b._readableState;for(d("flow",y.flowing);y.flowing&&b.read()!==null;);}V.prototype.wrap=function(b){var y=this,O=this._readableState,q=!1;b.on("end",function(){if(d("wrapped end"),O.decoder&&!O.ended){var N=O.decoder.end();N&&N.length&&y.push(N)}y.push(null)}),b.on("data",function(N){if(d("wrapped data"),O.decoder&&(N=O.decoder.write(N)),!(O.objectMode&&N==null)&&!(!O.objectMode&&(!N||!N.length))){var j=y.push(N);j||(q=!0,b.pause())}});for(var X in b)this[X]===void 0&&typeof b[X]=="function"&&(this[X]=function(j){return function(){return b[j].apply(b,arguments)}}(X));for(var D=0;D<Y.length;D++)b.on(Y[D],this.emit.bind(this,Y[D]));return this._read=function(N){d("wrapped _read",N),q&&(q=!1,b.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return H===void 0&&(H=MI()),H(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(y){this._readableState&&(this._readableState.flowing=y)}}),V._fromList=E,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function E(b,y){if(y.length===0)return null;var O;return y.objectMode?O=y.buffer.shift():!b||b>=y.length?(y.decoder?O=y.buffer.join(""):y.buffer.length===1?O=y.buffer.first():O=y.buffer.concat(y.length),y.buffer.clear()):O=y.buffer.consume(b,y.decoder),O}function U(b){var y=b._readableState;d("endReadable",y.endEmitted),y.endEmitted||(y.ended=!0,we.nextTick(K,y,b))}function K(b,y){if(d("endReadableNT",b.endEmitted,b.length),!b.endEmitted&&b.length===0&&(b.endEmitted=!0,y.readable=!1,y.emit("end"),b.autoDestroy)){var O=y._writableState;(!O||O.autoDestroy&&O.finished)&&y.destroy()}}typeof Symbol=="function"&&(V.from=function(b,y){return F===void 0&&(F=SI()),F(V,b,y)});function Z(b,y){for(var O=0,q=b.length;O<q;O++)if(b[O]===y)return O;return-1}return Ed}var g3=Dn,jh=Sa.codes,xI=jh.ERR_METHOD_NOT_IMPLEMENTED,EI=jh.ERR_MULTIPLE_CALLBACK,RI=jh.ERR_TRANSFORM_ALREADY_TRANSFORMING,AI=jh.ERR_TRANSFORM_WITH_LENGTH_0,Uh=ps();Ze(Dn,Uh);function TI(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new EI);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function Dn(e){if(!(this instanceof Dn))return new Dn(e);Uh.call(this,e),this._transformState={afterTransform:TI.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",OI)}function OI(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){fy(e,t,r)}):fy(this,null,null)}Dn.prototype.push=function(e,t){return this._transformState.needTransform=!1,Uh.prototype.push.call(this,e,t)};Dn.prototype._transform=function(e,t,r){r(new xI("_transform()"))};Dn.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};Dn.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Dn.prototype._destroy=function(e,t){Uh.prototype._destroy.call(this,e,function(r){t(r)})};function fy(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new AI;if(e._transformState.transforming)throw new RI;return e.push(null)}var II=tu,m3=g3;Ze(tu,m3);function tu(e){if(!(this instanceof tu))return new tu(e);m3.call(this,e)}tu.prototype._transform=function(e,t,r){r(null,e)};var Rd;function PI(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var y3=Sa.codes,CI=y3.ERR_MISSING_ARGS,BI=y3.ERR_STREAM_DESTROYED;function uy(e){if(e)throw e}function LI(e){return e.setHeader&&typeof e.abort=="function"}function NI(e,t,r,i){i=PI(i);var a=!1;e.on("close",function(){a=!0}),Rd===void 0&&(Rd=Xv),Rd(e,{readable:t,writable:r},function(u){if(u)return i(u);a=!0,i()});var n=!1;return function(u){if(!a&&!n){if(n=!0,LI(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(u||new BI("pipe"))}}}function ly(e){e()}function kI(e,t){return e.pipe(t)}function $I(e){return!e.length||typeof e[e.length-1]!="function"?uy:e.pop()}function DI(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=$I(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new CI("streams");var a,n=t.map(function(u,c){var d=c<t.length-1,m=c>0;return NI(u,d,m,function(M){a||(a=M),M&&n.forEach(ly),!d&&(n.forEach(ly),i(a))})});return t.reduce(kI)}var FI=DI;(function(e,t){t=e.exports=v3(),t.Stream=t,t.Readable=t,t.Writable=d3(),t.Duplex=ps(),t.Transform=g3,t.PassThrough=II,t.finished=Xv,t.pipeline=FI})(wp,wp.exports);var jI=wp.exports,Jv={exports:{}},UI=b3;function b3(e,t){if(e&&t)return b3(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(i){r[i]=e[i]}),r;function r(){for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];var n=e.apply(this,i),u=i[i.length-1];return typeof n=="function"&&n!==u&&Object.keys(u).forEach(function(c){n[c]=u[c]}),n}}var w3=UI;Jv.exports=w3(gl);Jv.exports.strict=w3(_3);gl.proto=gl(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return gl(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return _3(this)},configurable:!0})});function gl(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function _3(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}var HI=Jv.exports,qI=HI,WI=function(){},KI=function(e){return e.setHeader&&typeof e.abort=="function"},VI=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},M3=function(e,t,r){if(typeof t=="function")return M3(e,null,t);t||(t={}),r=qI(r||WI);var i=e._writableState,a=e._readableState,n=t.readable||t.readable!==!1&&e.readable,u=t.writable||t.writable!==!1&&e.writable,c=!1,d=function(){e.writable||m()},m=function(){u=!1,n||r.call(e)},M=function(){n=!1,u||r.call(e)},S=function(L){r.call(e,L?new Error("exited with error code: "+L):null)},R=function(L){r.call(e,L)},C=function(){we.nextTick(P)},P=function(){if(!c){if(n&&!(a&&a.ended&&!a.destroyed))return r.call(e,new Error("premature close"));if(u&&!(i&&i.ended&&!i.destroyed))return r.call(e,new Error("premature close"))}},k=function(){e.req.on("finish",m)};return KI(e)?(e.on("complete",m),e.on("abort",C),e.req?k():e.on("request",k)):u&&!i&&(e.on("end",d),e.on("close",d)),VI(e)&&e.on("exit",S),e.on("end",M),e.on("finish",m),t.error!==!1&&e.on("error",R),e.on("close",C),function(){c=!0,e.removeListener("complete",m),e.removeListener("abort",C),e.removeListener("request",k),e.req&&e.req.removeListener("finish",m),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",m),e.removeListener("exit",S),e.removeListener("end",M),e.removeListener("error",R),e.removeListener("close",C)}},zI=M3,GI=YI;function YI(e){var t=e._readableState;return t?t.objectMode||typeof e._duplexState=="number"?e.read():e.read(ZI(t)):null}function ZI(e){return e.buffer.length?e.buffer.head?e.buffer.head.data.length:e.buffer[0].length:e.length}var Hh=jI,S3=zI,XI=Ze,JI=GI,x3=ke.Buffer.from&&ke.Buffer.from!==Uint8Array.from?ke.Buffer.from([0]):new ke.Buffer([0]),Mp=function(e,t){e._corked?e.once("uncork",t):t()},QI=function(e,t){e._autoDestroy&&e.destroy(t)},E3=function(e,t){return function(r){r?QI(e,r.message==="premature close"?null:r):t&&!e._ended&&e.end()}},eP=function(e,t){if(!e||e._writableState&&e._writableState.finished)return t();if(e._writableState)return e.end(t);e.end(),t()},tP=function(){},rP=function(e){return new Hh.Readable({objectMode:!0,highWaterMark:16}).wrap(e)},br=function(e,t,r){if(!(this instanceof br))return new br(e,t,r);Hh.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||r.autoDestroy!==!1,this._forwardDestroy=!r||r.destroy!==!1,this._forwardEnd=!r||r.end!==!1,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};XI(br,Hh.Duplex);br.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new br(e,t,r)};br.prototype.cork=function(){++this._corked===1&&this.emit("cork")};br.prototype.uncork=function(){this._corked&&--this._corked===0&&this.emit("uncork")};br.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.end();return}var t=this,r=S3(e,{writable:!0,readable:!1},E3(this,this._forwardEnd)),i=function(){var n=t._ondrain;t._ondrain=null,n&&n()},a=function(){t._writable.removeListener("drain",i),r()};this._unwrite&&we.nextTick(i),this._writable=e,this._writable.on("drain",i),this._unwrite=a,this.uncork()};br.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.push(null),this.resume();return}var t=this,r=S3(e,{writable:!1,readable:!0},E3(this)),i=function(){t._forward()},a=function(){t.push(null)},n=function(){t._readable2.removeListener("readable",i),t._readable2.removeListener("end",a),r()};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:rP(e),this._readable2.on("readable",i),this._readable2.on("end",a),this._unread=n,this._forward()};br.prototype._read=function(){this._drained=!0,this._forward()};br.prototype._forward=function(){if(!(this._forwarding||!this._readable2||!this._drained)){this._forwarding=!0;for(var e;this._drained&&(e=JI(this._readable2))!==null;)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}};br.prototype.destroy=function(e,t){if(t||(t=tP),this.destroyed)return t(null);this.destroyed=!0;var r=this;we.nextTick(function(){r._destroy(e),t(null)})};br.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")};br.prototype._write=function(e,t,r){if(!this.destroyed){if(this._corked)return Mp(this,this._write.bind(this,e,t,r));if(e===x3)return this._finish(r);if(!this._writable)return r();this._writable.write(e)===!1?this._ondrain=r:this.destroyed||r()}};br.prototype._finish=function(e){var t=this;this.emit("preend"),Mp(this,function(){eP(t._forwardEnd&&t._writable,function(){t._writableState.prefinished===!1&&(t._writableState.prefinished=!0),t.emit("prefinish"),Mp(t,e)})})};br.prototype.end=function(e,t,r){return typeof e=="function"?this.end(null,null,e):typeof t=="function"?this.end(e,null,t):(this._ended=!0,e&&this.write(e),!this._writableState.ending&&!this._writableState.destroyed&&this.write(x3),Hh.Writable.prototype.end.call(this,r))};var Qv=br,Ad,hy;function cy(){if(hy)return Ad;hy=1;const{Buffer:e}=ke,t=vu.Transform,r=Qv;let i,a,n;function u(){const S=new t;return S._write=function(R,C,P){i.send({data:R.buffer,success:function(){P()},fail:function(k){P(new Error(k))}})},S._flush=function(C){i.close({success:function(){C()}})},S}function c(S){S.hostname||(S.hostname="localhost"),S.path||(S.path="/"),S.wsOptions||(S.wsOptions={})}function d(S,R){const C=S.protocol==="wxs"?"wss":"ws";let P=C+"://"+S.hostname+S.path;return S.port&&S.port!==80&&S.port!==443&&(P=C+"://"+S.hostname+":"+S.port+S.path),typeof S.transformWsUrl=="function"&&(P=S.transformWsUrl(P,S,R)),P}function m(){i.onOpen(function(){n.setReadable(a),n.setWritable(a),n.emit("connect")}),i.onMessage(function(S){let R=S.data;R instanceof ArrayBuffer?R=e.from(R):R=e.from(R,"utf8"),a.push(R)}),i.onClose(function(){n.end(),n.destroy()}),i.onError(function(S){n.destroy(new Error(S.errMsg))})}function M(S,R){if(R.hostname=R.hostname||R.host,!R.hostname)throw new Error("Could not determine host. Specify host manually.");const C=R.protocolId==="MQIsdp"&&R.protocolVersion===3?"mqttv3.1":"mqtt";c(R);const P=d(R,S);i=wx.connectSocket({url:P,protocols:[C]}),a=u(),n=r.obj(),n._destroy=function(L,I){i.close({success:function(){I&&I(L)}})};const k=n.destroy;return n.destroy=function(){n.destroy=k;const L=this;setTimeout(function(){i.close({fail:function(){L._destroy(new Error)}})},0)}.bind(n),m(),n}return Ad=M,Ad}var Td,dy;function py(){if(dy)return Td;dy=1;const{Buffer:e}=ke,t=vu.Transform,r=Qv;let i,a,n,u=!1;function c(){const R=new t;return R._write=function(C,P,k){i.sendSocketMessage({data:C.buffer,success:function(){k()},fail:function(){k(new Error)}})},R._flush=function(P){i.closeSocket({success:function(){P()}})},R}function d(R){R.hostname||(R.hostname="localhost"),R.path||(R.path="/"),R.wsOptions||(R.wsOptions={})}function m(R,C){const P=R.protocol==="alis"?"wss":"ws";let k=P+"://"+R.hostname+R.path;return R.port&&R.port!==80&&R.port!==443&&(k=P+"://"+R.hostname+":"+R.port+R.path),typeof R.transformWsUrl=="function"&&(k=R.transformWsUrl(k,R,C)),k}function M(){u||(u=!0,i.onSocketOpen(function(){n.setReadable(a),n.setWritable(a),n.emit("connect")}),i.onSocketMessage(function(R){if(typeof R.data=="string"){const C=e.from(R.data,"base64");a.push(C)}else{const C=new FileReader;C.addEventListener("load",function(){let P=C.result;P instanceof ArrayBuffer?P=e.from(P):P=e.from(P,"utf8"),a.push(P)}),C.readAsArrayBuffer(R.data)}}),i.onSocketClose(function(){n.end(),n.destroy()}),i.onSocketError(function(R){n.destroy(R)}))}function S(R,C){if(C.hostname=C.hostname||C.host,!C.hostname)throw new Error("Could not determine host. Specify host manually.");const P=C.protocolId==="MQIsdp"&&C.protocolVersion===3?"mqttv3.1":"mqtt";d(C);const k=m(C,R);return i=C.my,i.connectSocket({url:k,protocols:P}),a=c(),n=r.obj(),M(),n}return Td=S,Td}var Sp={exports:{}},iP=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")};const{Buffer:af}=ke,R3=iP,$f=zn("mqttjs:ws"),nP=Qv,oP=vu.Transform,aP=["rejectUnauthorized","ca","cert","key","pfx","passphrase"],A3=typeof we<"u"&&we.title==="browser"||typeof __webpack_require__=="function";function T3(e,t){let r=e.protocol+"://"+e.hostname+":"+e.port+e.path;return typeof e.transformWsUrl=="function"&&(r=e.transformWsUrl(r,e,t)),r}function O3(e){const t=e;return e.hostname||(t.hostname="localhost"),e.port||(e.protocol==="wss"?t.port=443:t.port=80),e.path||(t.path="/"),e.wsOptions||(t.wsOptions={}),!A3&&e.protocol==="wss"&&aP.forEach(function(r){Object.prototype.hasOwnProperty.call(e,r)&&!Object.prototype.hasOwnProperty.call(e.wsOptions,r)&&(t.wsOptions[r]=e[r])}),t}function sP(e){const t=O3(e);if(t.hostname||(t.hostname=t.host),!t.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");const r=new URL(document.URL);t.hostname=r.hostname,t.port||(t.port=r.port)}return t.objectMode===void 0&&(t.objectMode=!(t.binary===!0||t.binary===void 0)),t}function fP(e,t,r){$f("createWebSocket"),$f("protocol: "+r.protocolId+" "+r.protocolVersion);const i=r.protocolId==="MQIsdp"&&r.protocolVersion===3?"mqttv3.1":"mqtt";return $f("creating new Websocket for url: "+t+" and protocol: "+i),new R3(t,[i],r.wsOptions)}function uP(e,t){const r=t.protocolId==="MQIsdp"&&t.protocolVersion===3?"mqttv3.1":"mqtt",i=T3(t,e),a=new WebSocket(i,[r]);return a.binaryType="arraybuffer",a}function lP(e,t){$f("streamBuilder");const r=O3(t),i=T3(r,e),a=fP(e,i,r),n=R3.createWebSocketStream(a,r.wsOptions);return n.url=i,a.on("close",()=>{n.destroy()}),n}function hP(e,t){$f("browserStreamBuilder");let r;const a=sP(t).browserBufferSize||1024*512,n=t.browserBufferTimeout||1e3,u=!t.objectMode,c=uP(e,t),d=M(t,L,I);t.objectMode||(d._writev=k),d.on("close",()=>{c.close()});const m=typeof c.addEventListener<"u";c.readyState===c.OPEN?r=d:(r=r=nP(void 0,void 0,t),t.objectMode||(r._writev=k),m?c.addEventListener("open",S):c.onopen=S),r.socket=c,m?(c.addEventListener("close",R),c.addEventListener("error",C),c.addEventListener("message",P)):(c.onclose=R,c.onerror=C,c.onmessage=P);function M(B,H,F){const W=new oP({objectModeMode:B.objectMode});return W._write=H,W._flush=F,W}function S(){r.setReadable(d),r.setWritable(d),r.emit("connect")}function R(){r.end(),r.destroy()}function C(B){r.destroy(B)}function P(B){let H=B.data;H instanceof ArrayBuffer?H=af.from(H):H=af.from(H,"utf8"),d.push(H)}function k(B,H){const F=new Array(B.length);for(let W=0;W<B.length;W++)typeof B[W].chunk=="string"?F[W]=af.from(B[W],"utf8"):F[W]=B[W].chunk;this._write(af.concat(F),"binary",H)}function L(B,H,F){c.bufferedAmount>a&&setTimeout(L,n,B,H,F),u&&typeof B=="string"&&(B=af.from(B,"utf8"));try{c.send(B)}catch(W){return F(W)}F()}function I(B){c.close(),B()}return r}A3?Sp.exports=hP:Sp.exports=lP;var I3=Sp.exports;const P3=QO,cP=MM,dP=f3,pP=Fv,vy=zn("mqttjs"),Fr={};typeof we<"u"&&we.title!=="browser"||typeof __webpack_require__!="function"?(Fr.mqtt=X1(),Fr.tcp=X1(),Fr.ssl=bd(),Fr.tls=bd(),Fr.mqtts=bd()):(Fr.wx=cy(),Fr.wxs=cy(),Fr.ali=py(),Fr.alis=py());Fr.ws=I3;Fr.wss=I3;function vP(e){let t;e.auth&&(t=e.auth.match(/^(.+):(.+)$/),t?(e.username=t[1],e.password=t[2]):e.username=e.auth)}function C3(e,t){if(vy("connecting to an MQTT broker..."),typeof e=="object"&&!t&&(t=e,e=null),t=t||{},e){const a=dP.parse(e,!0);if(a.port!=null&&(a.port=Number(a.port)),t=pP(a,t),t.protocol===null)throw new Error("Missing protocol");t.protocol=t.protocol.replace(/:$/,"")}if(vP(t),t.query&&typeof t.query.clientId=="string"&&(t.clientId=t.query.clientId),t.cert&&t.key)if(t.protocol){if(["mqtts","wss","wxs","alis"].indexOf(t.protocol)===-1)switch(t.protocol){case"mqtt":t.protocol="mqtts";break;case"ws":t.protocol="wss";break;case"wx":t.protocol="wxs";break;case"ali":t.protocol="alis";break;default:throw new Error('Unknown protocol for secure connection: "'+t.protocol+'"!')}}else throw new Error("Missing secure protocol key");if(!Fr[t.protocol]){const a=["mqtts","wss"].indexOf(t.protocol)!==-1;t.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter(function(n,u){return a&&u%2===0?!1:typeof Fr[n]=="function"})[0]}if(t.clean===!1&&!t.clientId)throw new Error("Missing clientId for unclean clients");t.protocol&&(t.defaultProtocol=t.protocol);function r(a){return t.servers&&((!a._reconnectCount||a._reconnectCount===t.servers.length)&&(a._reconnectCount=0),t.host=t.servers[a._reconnectCount].host,t.port=t.servers[a._reconnectCount].port,t.protocol=t.servers[a._reconnectCount].protocol?t.servers[a._reconnectCount].protocol:t.defaultProtocol,t.hostname=t.host,a._reconnectCount++),vy("calling streambuilder for",t.protocol),Fr[t.protocol](a,t)}const i=new P3(r,t);return i.on("error",function(){}),i}du.exports=C3;du.exports.connect=C3;du.exports.MqttClient=P3;du.exports.Store=cP;var gP=du.exports;const BV=Lo(gP);function mP(){return B3().__VUE_DEVTOOLS_GLOBAL_HOOK__}function B3(){return typeof navigator<"u"&&typeof window<"u"?window:typeof ho<"u"?ho:{}}const yP=typeof Proxy=="function",bP="devtools-plugin:setup",wP="plugin:settings:set";let ka,xp;function _P(){var e;return ka!==void 0||(typeof window<"u"&&window.performance?(ka=!0,xp=window.performance):typeof ho<"u"&&(!((e=ho.perf_hooks)===null||e===void 0)&&e.performance)?(ka=!0,xp=ho.perf_hooks.performance):ka=!1),ka}function MP(){return _P()?xp.now():Date.now()}class SP{constructor(t,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=r;const i={};if(t.settings)for(const u in t.settings){const c=t.settings[u];i[u]=c.defaultValue}const a=`__vue-devtools-plugin-settings__${t.id}`;let n=Object.assign({},i);try{const u=localStorage.getItem(a),c=JSON.parse(u);Object.assign(n,c)}catch{}this.fallbacks={getSettings(){return n},setSettings(u){try{localStorage.setItem(a,JSON.stringify(u))}catch{}n=u},now(){return MP()}},r&&r.on(wP,(u,c)=>{u===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(u,c)=>this.target?this.target.on[c]:(...d)=>{this.onQueue.push({method:c,args:d})}}),this.proxiedTarget=new Proxy({},{get:(u,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...d)=>(this.targetQueue.push({method:c,args:d,resolve:()=>{}}),this.fallbacks[c](...d)):(...d)=>new Promise(m=>{this.targetQueue.push({method:c,args:d,resolve:m})})})}async setRealTarget(t){this.target=t;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function L3(e,t){const r=e,i=B3(),a=mP(),n=yP&&r.enableEarlyProxy;if(a&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!n))a.emit(bP,e,t);else{const u=n?new SP(r,a):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:u}),u&&t(u.proxiedTarget)}}/*!
-  * vue-router v4.2.2
-  * (c) 2023 Eduardo San Martin Morote
-  * @license MIT
-  */const Rn=typeof window<"u";function xP(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const jt=Object.assign;function Od(e,t){const r={};for(const i in t){const a=t[i];r[i]=Jr(a)?a.map(e):e(a)}return r}const Df=()=>{},Jr=Array.isArray;function Et(e){const t=Array.from(arguments).slice(1);console.warn.apply(console,["[Vue Router warn]: "+e].concat(t))}const EP=/\/$/,RP=e=>e.replace(EP,"");function Id(e,t,r="/"){let i,a={},n="",u="";const c=t.indexOf("#");let d=t.indexOf("?");return c<d&&c>=0&&(d=-1),d>-1&&(i=t.slice(0,d),n=t.slice(d+1,c>-1?c:t.length),a=e(n)),c>-1&&(i=i||t.slice(0,c),u=t.slice(c,t.length)),i=OP(i??t,r),{fullPath:i+(n&&"?")+n+u,path:i,query:a,hash:u}}function AP(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function gy(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function my(e,t,r){const i=t.matched.length-1,a=r.matched.length-1;return i>-1&&i===a&&Po(t.matched[i],r.matched[a])&&N3(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Po(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function N3(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!TP(e[r],t[r]))return!1;return!0}function TP(e,t){return Jr(e)?yy(e,t):Jr(t)?yy(t,e):e===t}function yy(e,t){return Jr(t)?e.length===t.length&&e.every((r,i)=>r===t[i]):e.length===1&&e[0]===t}function OP(e,t){if(e.startsWith("/"))return e;if(!t.startsWith("/"))return Et(`Cannot resolve a relative location without an absolute path. Trying to resolve "${e}" from "${t}". It should look like "/${t}".`),e;if(!e)return t;const r=t.split("/"),i=e.split("/"),a=i[i.length-1];(a===".."||a===".")&&i.push("");let n=r.length-1,u,c;for(u=0;u<i.length;u++)if(c=i[u],c!==".")if(c==="..")n>1&&n--;else break;return r.slice(0,n).join("/")+"/"+i.slice(u-(u===i.length?1:0)).join("/")}var ru;(function(e){e.pop="pop",e.push="push"})(ru||(ru={}));var Ff;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ff||(Ff={}));function IP(e){if(!e)if(Rn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),RP(e)}const PP=/^[^#]+#/;function CP(e,t){return e.replace(PP,"#")+t}function BP(e,t){const r=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-r.left-(t.left||0),top:i.top-r.top-(t.top||0)}}const qh=()=>({left:window.pageXOffset,top:window.pageYOffset});function LP(e){let t;if("el"in e){const r=e.el,i=typeof r=="string"&&r.startsWith("#");if(typeof e.el=="string"&&(!i||!document.getElementById(e.el.slice(1))))try{const n=document.querySelector(e.el);if(i&&n){Et(`The selector "${e.el}" should be passed as "el: document.querySelector('${e.el}')" because it starts with "#".`);return}}catch{Et(`The selector "${e.el}" is invalid. If you are using an id selector, make sure to escape it. You can find more information about escaping characters in selectors at https://mathiasbynens.be/notes/css-escapes or use CSS.escape (https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape).`);return}const a=typeof r=="string"?i?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!a){Et(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);return}t=BP(a,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function by(e,t){return(history.state?history.state.position-t:-1)+e}const Ep=new Map;function NP(e,t){Ep.set(e,t)}function kP(e){const t=Ep.get(e);return Ep.delete(e),t}let $P=()=>location.protocol+"//"+location.host;function k3(e,t){const{pathname:r,search:i,hash:a}=t,n=e.indexOf("#");if(n>-1){let c=a.includes(e.slice(n))?e.slice(n).length:1,d=a.slice(c);return d[0]!=="/"&&(d="/"+d),gy(d,"")}return gy(r,e)+i+a}function DP(e,t,r,i){let a=[],n=[],u=null;const c=({state:R})=>{const C=k3(e,location),P=r.value,k=t.value;let L=0;if(R){if(r.value=C,t.value=R,u&&u===P){u=null;return}L=k?R.position-k.position:0}else i(C);a.forEach(I=>{I(r.value,P,{delta:L,type:ru.pop,direction:L?L>0?Ff.forward:Ff.back:Ff.unknown})})};function d(){u=r.value}function m(R){a.push(R);const C=()=>{const P=a.indexOf(R);P>-1&&a.splice(P,1)};return n.push(C),C}function M(){const{history:R}=window;R.state&&R.replaceState(jt({},R.state,{scroll:qh()}),"")}function S(){for(const R of n)R();n=[],window.removeEventListener("popstate",c),window.removeEventListener("beforeunload",M)}return window.addEventListener("popstate",c),window.addEventListener("beforeunload",M,{passive:!0}),{pauseListeners:d,listen:m,destroy:S}}function wy(e,t,r,i=!1,a=!1){return{back:e,current:t,forward:r,replaced:i,position:window.history.length,scroll:a?qh():null}}function FP(e){const{history:t,location:r}=window,i={value:k3(e,r)},a={value:t.state};a.value||n(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function n(d,m,M){const S=e.indexOf("#"),R=S>-1?(r.host&&document.querySelector("base")?e:e.slice(S))+d:$P()+e+d;try{t[M?"replaceState":"pushState"](m,"",R),a.value=m}catch(C){Et("Error with push/replace State",C),r[M?"replace":"assign"](R)}}function u(d,m){const M=jt({},t.state,wy(a.value.back,d,a.value.forward,!0),m,{position:a.value.position});n(d,M,!0),i.value=d}function c(d,m){const M=jt({},a.value,t.state,{forward:d,scroll:qh()});t.state||Et(`history.state seems to have been manually replaced without preserving the necessary values. Make sure to preserve existing history state if you are manually calling history.replaceState:
-
-history.replaceState(history.state, '', url)
-
-You can find more information at https://next.router.vuejs.org/guide/migration/#usage-of-history-state.`),n(M.current,M,!0);const S=jt({},wy(i.value,d,null),{position:M.position+1},m);n(d,S,!1),i.value=d}return{location:i,state:a,push:c,replace:u}}function jP(e){e=IP(e);const t=FP(e),r=DP(e,t.state,t.location,t.replace);function i(n,u=!0){u||r.pauseListeners(),history.go(n)}const a=jt({location:"",base:e,go:i,createHref:CP.bind(null,e)},t,r);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>t.state.value}),a}function LV(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),!e.endsWith("#/")&&!e.endsWith("#")&&Et(`A hash base must end with a "#":
-"${e}" should be "${e.replace(/#.*$/,"#")}".`),jP(e)}function UP(e){return typeof e=="string"||e&&typeof e=="object"}function $3(e){return typeof e=="string"||typeof e=="symbol"}const eo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},D3=Symbol("navigation failure");var _y;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(_y||(_y={}));const HP={[1]({location:e,currentLocation:t}){return`No match for
- ${JSON.stringify(e)}${t?`
-while being at
-`+JSON.stringify(t):""}`},[2]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${WP(t)}" via a navigation guard.`},[4]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[8]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[16]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function vs(e,t){return jt(new Error(HP[e](t)),{type:e,[D3]:!0},t)}function mn(e,t){return e instanceof Error&&D3 in e&&(t==null||!!(e.type&t))}const qP=["params","query","hash"];function WP(e){if(typeof e=="string")return e;if("path"in e)return e.path;const t={};for(const r of qP)r in e&&(t[r]=e[r]);return JSON.stringify(t,null,2)}const My="[^/]+?",KP={sensitive:!1,strict:!1,start:!0,end:!0},VP=/[.+*?^${}()[\]/\\]/g;function zP(e,t){const r=jt({},KP,t),i=[];let a=r.start?"^":"";const n=[];for(const m of e){const M=m.length?[]:[90];r.strict&&!m.length&&(a+="/");for(let S=0;S<m.length;S++){const R=m[S];let C=40+(r.sensitive?.25:0);if(R.type===0)S||(a+="/"),a+=R.value.replace(VP,"\\$&"),C+=40;else if(R.type===1){const{value:P,repeatable:k,optional:L,regexp:I}=R;n.push({name:P,repeatable:k,optional:L});const B=I||My;if(B!==My){C+=10;try{new RegExp(`(${B})`)}catch(F){throw new Error(`Invalid custom RegExp for param "${P}" (${B}): `+F.message)}}let H=k?`((?:${B})(?:/(?:${B}))*)`:`(${B})`;S||(H=L&&m.length<2?`(?:/${H})`:"/"+H),L&&(H+="?"),a+=H,C+=20,L&&(C+=-8),k&&(C+=-20),B===".*"&&(C+=-50)}M.push(C)}i.push(M)}if(r.strict&&r.end){const m=i.length-1;i[m][i[m].length-1]+=.7000000000000001}r.strict||(a+="/?"),r.end?a+="$":r.strict&&(a+="(?:/|$)");const u=new RegExp(a,r.sensitive?"":"i");function c(m){const M=m.match(u),S={};if(!M)return null;for(let R=1;R<M.length;R++){const C=M[R]||"",P=n[R-1];S[P.name]=C&&P.repeatable?C.split("/"):C}return S}function d(m){let M="",S=!1;for(const R of e){(!S||!M.endsWith("/"))&&(M+="/"),S=!1;for(const C of R)if(C.type===0)M+=C.value;else if(C.type===1){const{value:P,repeatable:k,optional:L}=C,I=P in m?m[P]:"";if(Jr(I)&&!k)throw new Error(`Provided param "${P}" is an array but it is not repeatable (* or + modifiers)`);const B=Jr(I)?I.join("/"):I;if(!B)if(L)R.length<2&&(M.endsWith("/")?M=M.slice(0,-1):S=!0);else throw new Error(`Missing required param "${P}"`);M+=B}}return M||"/"}return{re:u,score:i,keys:n,parse:c,stringify:d}}function GP(e,t){let r=0;for(;r<e.length&&r<t.length;){const i=t[r]-e[r];if(i)return i;r++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function YP(e,t){let r=0;const i=e.score,a=t.score;for(;r<i.length&&r<a.length;){const n=GP(i[r],a[r]);if(n)return n;r++}if(Math.abs(a.length-i.length)===1){if(Sy(i))return 1;if(Sy(a))return-1}return a.length-i.length}function Sy(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ZP={type:0,value:""},XP=/[a-zA-Z0-9_]/;function JP(e){if(!e)return[[]];if(e==="/")return[[ZP]];if(!e.startsWith("/"))throw new Error(`Route paths should start with a "/": "${e}" should be "/${e}".`);function t(C){throw new Error(`ERR (${r})/"${m}": ${C}`)}let r=0,i=r;const a=[];let n;function u(){n&&a.push(n),n=[]}let c=0,d,m="",M="";function S(){m&&(r===0?n.push({type:0,value:m}):r===1||r===2||r===3?(n.length>1&&(d==="*"||d==="+")&&t(`A repeatable param (${m}) must be alone in its segment. eg: '/:ids+.`),n.push({type:1,value:m,regexp:M,repeatable:d==="*"||d==="+",optional:d==="*"||d==="?"})):t("Invalid state to consume buffer"),m="")}function R(){m+=d}for(;c<e.length;){if(d=e[c++],d==="\\"&&r!==2){i=r,r=4;continue}switch(r){case 0:d==="/"?(m&&S(),u()):d===":"?(S(),r=1):R();break;case 4:R(),r=i;break;case 1:d==="("?r=2:XP.test(d)?R():(S(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&c--);break;case 2:d===")"?M[M.length-1]=="\\"?M=M.slice(0,-1)+d:r=3:M+=d;break;case 3:S(),r=0,d!=="*"&&d!=="?"&&d!=="+"&&c--,M="";break;default:t("Unknown state");break}}return r===2&&t(`Unfinished custom RegExp for param "${m}"`),S(),u(),a}function QP(e,t,r){const i=zP(JP(e.path),r);{const n=new Set;for(const u of i.keys)n.has(u.name)&&Et(`Found duplicated params with name "${u.name}" for path "${e.path}". Only the last one will be available on "$route.params".`),n.add(u.name)}const a=jt(i,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function eC(e,t){const r=[],i=new Map;t=Ry({strict:!1,end:!0,sensitive:!1},t);function a(M){return i.get(M)}function n(M,S,R){const C=!R,P=tC(M);oC(P,S),P.aliasOf=R&&R.record;const k=Ry(t,M),L=[P];if("alias"in M){const H=typeof M.alias=="string"?[M.alias]:M.alias;for(const F of H)L.push(jt({},P,{components:R?R.record.components:P.components,path:F,aliasOf:R?R.record:P}))}let I,B;for(const H of L){const{path:F}=H;if(S&&F[0]!=="/"){const W=S.record.path,Y=W[W.length-1]==="/"?"":"/";H.path=S.record.path+(F&&Y+F)}if(H.path==="*")throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
-See more at https://next.router.vuejs.org/guide/migration/#removed-star-or-catch-all-routes.`);if(I=QP(H,S,k),S&&F[0]==="/"&&aC(I,S),R?(R.alias.push(I),nC(R,I)):(B=B||I,B!==I&&B.alias.push(I),C&&M.name&&!Ey(I)&&u(M.name)),P.children){const W=P.children;for(let Y=0;Y<W.length;Y++)n(W[Y],I,R&&R.children[Y])}R=R||I,(I.record.components&&Object.keys(I.record.components).length||I.record.name||I.record.redirect)&&d(I)}return B?()=>{u(B)}:Df}function u(M){if($3(M)){const S=i.get(M);S&&(i.delete(M),r.splice(r.indexOf(S),1),S.children.forEach(u),S.alias.forEach(u))}else{const S=r.indexOf(M);S>-1&&(r.splice(S,1),M.record.name&&i.delete(M.record.name),M.children.forEach(u),M.alias.forEach(u))}}function c(){return r}function d(M){let S=0;for(;S<r.length&&YP(M,r[S])>=0&&(M.record.path!==r[S].record.path||!F3(M,r[S]));)S++;r.splice(S,0,M),M.record.name&&!Ey(M)&&i.set(M.record.name,M)}function m(M,S){let R,C={},P,k;if("name"in M&&M.name){if(R=i.get(M.name),!R)throw vs(1,{location:M});{const B=Object.keys(M.params||{}).filter(H=>!R.keys.find(F=>F.name===H));B.length&&Et(`Discarded invalid param(s) "${B.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`)}k=R.record.name,C=jt(xy(S.params,R.keys.filter(B=>!B.optional).map(B=>B.name)),M.params&&xy(M.params,R.keys.map(B=>B.name))),P=R.stringify(C)}else if("path"in M)P=M.path,P.startsWith("/")||Et(`The Matcher cannot resolve relative paths but received "${P}". Unless you directly called \`matcher.resolve("${P}")\`, this is probably a bug in vue-router. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/router.`),R=r.find(B=>B.re.test(P)),R&&(C=R.parse(P),k=R.record.name);else{if(R=S.name?i.get(S.name):r.find(B=>B.re.test(S.path)),!R)throw vs(1,{location:M,currentLocation:S});k=R.record.name,C=jt({},S.params,M.params),P=R.stringify(C)}const L=[];let I=R;for(;I;)L.unshift(I.record),I=I.parent;return{name:k,path:P,params:C,matched:L,meta:iC(L)}}return e.forEach(M=>n(M)),{addRoute:n,resolve:m,removeRoute:u,getRoutes:c,getRecordMatcher:a}}function xy(e,t){const r={};for(const i of t)i in e&&(r[i]=e[i]);return r}function tC(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:rC(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function rC(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const i in e.components)t[i]=typeof r=="boolean"?r:r[i];return t}function Ey(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function iC(e){return e.reduce((t,r)=>jt(t,r.meta),{})}function Ry(e,t){const r={};for(const i in e)r[i]=i in t?t[i]:e[i];return r}function Rp(e,t){return e.name===t.name&&e.optional===t.optional&&e.repeatable===t.repeatable}function nC(e,t){for(const r of e.keys)if(!r.optional&&!t.keys.find(Rp.bind(null,r)))return Et(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${r.name}"`);for(const r of t.keys)if(!r.optional&&!e.keys.find(Rp.bind(null,r)))return Et(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${r.name}"`)}function oC(e,t){t&&t.record.name&&!e.name&&!e.path&&Et(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`)}function aC(e,t){for(const r of t.keys)if(!e.keys.find(Rp.bind(null,r)))return Et(`Absolute path "${e.record.path}" must have the exact same param named "${r.name}" as its parent "${t.record.path}".`)}function F3(e,t){return t.children.some(r=>r===e||F3(e,r))}const j3=/#/g,sC=/&/g,fC=/\//g,uC=/=/g,lC=/\?/g,U3=/\+/g,hC=/%5B/g,cC=/%5D/g,H3=/%5E/g,dC=/%60/g,q3=/%7B/g,pC=/%7C/g,W3=/%7D/g,vC=/%20/g;function eg(e){return encodeURI(""+e).replace(pC,"|").replace(hC,"[").replace(cC,"]")}function gC(e){return eg(e).replace(q3,"{").replace(W3,"}").replace(H3,"^")}function Ap(e){return eg(e).replace(U3,"%2B").replace(vC,"+").replace(j3,"%23").replace(sC,"%26").replace(dC,"`").replace(q3,"{").replace(W3,"}").replace(H3,"^")}function mC(e){return Ap(e).replace(uC,"%3D")}function yC(e){return eg(e).replace(j3,"%23").replace(lC,"%3F")}function bC(e){return e==null?"":yC(e).replace(fC,"%2F")}function iu(e){try{return decodeURIComponent(""+e)}catch{Et(`Error decoding "${e}". Using original value`)}return""+e}function wC(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;a<i.length;++a){const n=i[a].replace(U3," "),u=n.indexOf("="),c=iu(u<0?n:n.slice(0,u)),d=u<0?null:iu(n.slice(u+1));if(c in t){let m=t[c];Jr(m)||(m=t[c]=[m]),m.push(d)}else t[c]=d}return t}function Ay(e){let t="";for(let r in e){const i=e[r];if(r=mC(r),i==null){i!==void 0&&(t+=(t.length?"&":"")+r);continue}(Jr(i)?i.map(n=>n&&Ap(n)):[i&&Ap(i)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+r,n!=null&&(t+="="+n))})}return t}function _C(e){const t={};for(const r in e){const i=e[r];i!==void 0&&(t[r]=Jr(i)?i.map(a=>a==null?null:""+a):i==null?i:""+i)}return t}const MC=Symbol("router view location matched"),Ty=Symbol("router view depth"),tg=Symbol("router"),K3=Symbol("route location"),Tp=Symbol("router view location");function sf(){let e=[];function t(i){return e.push(i),()=>{const a=e.indexOf(i);a>-1&&e.splice(a,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function oo(e,t,r,i,a){const n=i&&(i.enterCallbacks[a]=i.enterCallbacks[a]||[]);return()=>new Promise((u,c)=>{const d=S=>{S===!1?c(vs(4,{from:r,to:t})):S instanceof Error?c(S):UP(S)?c(vs(2,{from:t,to:S})):(n&&i.enterCallbacks[a]===n&&typeof S=="function"&&n.push(S),u())},m=e.call(i&&i.instances[a],t,r,SC(d,t,r));let M=Promise.resolve(m);if(e.length<3&&(M=M.then(d)),e.length>2){const S=`The "next" callback was never called inside of ${e.name?'"'+e.name+'"':""}:
-${e.toString()}
-. If you are returning a value instead of calling "next", make sure to remove the "next" parameter from your function.`;if(typeof m=="object"&&"then"in m)M=M.then(R=>d._called?R:(Et(S),Promise.reject(new Error("Invalid navigation guard"))));else if(m!==void 0&&!d._called){Et(S),c(new Error("Invalid navigation guard"));return}}M.catch(S=>c(S))})}function SC(e,t,r){let i=0;return function(){i++===1&&Et(`The "next" callback was called more than once in one navigation guard when going from "${r.fullPath}" to "${t.fullPath}". It should be called exactly one time in each navigation guard. This will fail in production.`),e._called=!0,i===1&&e.apply(null,arguments)}}function Pd(e,t,r,i){const a=[];for(const n of e){!n.components&&!n.children.length&&Et(`Record with path "${n.path}" is either missing a "component(s)" or "children" property.`);for(const u in n.components){let c=n.components[u];{if(!c||typeof c!="object"&&typeof c!="function")throw Et(`Component "${u}" in record with path "${n.path}" is not a valid component. Received "${String(c)}".`),new Error("Invalid route component");if("then"in c){Et(`Component "${u}" in record with path "${n.path}" is a Promise instead of a function that returns a Promise. Did you write "import('./MyPage.vue')" instead of "() => import('./MyPage.vue')" ? This will break in production if not fixed.`);const d=c;c=()=>d}else c.__asyncLoader&&!c.__warnedDefineAsync&&(c.__warnedDefineAsync=!0,Et(`Component "${u}" in record with path "${n.path}" is defined using "defineAsyncComponent()". Write "() => import('./MyPage.vue')" instead of "defineAsyncComponent(() => import('./MyPage.vue'))".`))}if(!(t!=="beforeRouteEnter"&&!n.instances[u]))if(xC(c)){const m=(c.__vccOpts||c)[t];m&&a.push(oo(m,r,i,n,u))}else{let d=c();"catch"in d||(Et(`Component "${u}" in record with path "${n.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`),d=Promise.resolve(d)),a.push(()=>d.then(m=>{if(!m)return Promise.reject(new Error(`Couldn't resolve component "${u}" at "${n.path}"`));const M=xP(m)?m.default:m;n.components[u]=M;const R=(M.__vccOpts||M)[t];return R&&oo(R,r,i,n,u)()}))}}}return a}function xC(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Oy(e){const t=tn(tg),r=tn(K3),i=Qt(()=>t.resolve(vo(e.to))),a=Qt(()=>{const{matched:d}=i.value,{length:m}=d,M=d[m-1],S=r.matched;if(!M||!S.length)return-1;const R=S.findIndex(Po.bind(null,M));if(R>-1)return R;const C=Iy(d[m-2]);return m>1&&Iy(M)===C&&S[S.length-1].path!==C?S.findIndex(Po.bind(null,d[m-2])):R}),n=Qt(()=>a.value>-1&&TC(r.params,i.value.params)),u=Qt(()=>a.value>-1&&a.value===r.matched.length-1&&N3(r.params,i.value.params));function c(d={}){return AC(d)?t[vo(e.replace)?"replace":"push"](vo(e.to)).catch(Df):Promise.resolve()}if(Rn){const d=Fi();if(d){const m={route:i.value,isActive:n.value,isExactActive:u.value};d.__vrl_devtools=d.__vrl_devtools||[],d.__vrl_devtools.push(m),R2(()=>{m.route=i.value,m.isActive=n.value,m.isExactActive=u.value},{flush:"post"})}}return{route:i,href:Qt(()=>i.value.href),isActive:n,isExactActive:u,navigate:c}}const EC=Bs({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Oy,setup(e,{slots:t}){const r=No(Oy(e)),{options:i}=tn(tg),a=Qt(()=>({[Py(e.activeClass,i.linkActiveClass,"router-link-active")]:r.isActive,[Py(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const n=t.default&&t.default(r);return e.custom?n:Eh("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:a.value},n)}}}),RC=EC;function AC(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function TC(e,t){for(const r in t){const i=t[r],a=e[r];if(typeof i=="string"){if(i!==a)return!1}else if(!Jr(a)||a.length!==i.length||i.some((n,u)=>n!==a[u]))return!1}return!0}function Iy(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Py=(e,t,r)=>e??t??r,OC=Bs({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){PC();const i=tn(Tp),a=Qt(()=>e.route||i.value),n=tn(Ty,0),u=Qt(()=>{let m=vo(n);const{matched:M}=a.value;let S;for(;(S=M[m])&&!S.components;)m++;return m}),c=Qt(()=>a.value.matched[u.value]);Cf(Ty,Qt(()=>u.value+1)),Cf(MC,c),Cf(Tp,a);const d=mr();return lr(()=>[d.value,c.value,e.name],([m,M,S],[R,C,P])=>{M&&(M.instances[S]=m,C&&C!==M&&m&&m===R&&(M.leaveGuards.size||(M.leaveGuards=C.leaveGuards),M.updateGuards.size||(M.updateGuards=C.updateGuards))),m&&M&&(!C||!Po(M,C)||!R)&&(M.enterCallbacks[S]||[]).forEach(k=>k(m))},{flush:"post"}),()=>{const m=a.value,M=e.name,S=c.value,R=S&&S.components[M];if(!R)return Cy(r.default,{Component:R,route:m});const C=S.props[M],P=C?C===!0?m.params:typeof C=="function"?C(m):C:null,L=Eh(R,jt({},P,t,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(S.instances[M]=null)},ref:d}));if(Rn&&L.ref){const I={depth:u.value,name:S.name,path:S.path,meta:S.meta};(Jr(L.ref)?L.ref.map(H=>H.i):[L.ref.i]).forEach(H=>{H.__vrv_devtools=I})}return Cy(r.default,{Component:L,route:m})||L}}});function Cy(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const IC=OC;function PC(){const e=Fi(),t=e.parent&&e.parent.type.name,r=e.parent&&e.parent.subTree&&e.parent.subTree.type;if(t&&(t==="KeepAlive"||t.includes("Transition"))&&typeof r=="object"&&r.name==="RouterView"){const i=t==="KeepAlive"?"keep-alive":"transition";Et(`<router-view> can no longer be used directly inside <transition> or <keep-alive>.
-Use slot props instead:
-
-<router-view v-slot="{ Component }">
-  <${i}>
-    <component :is="Component" />
-  </${i}>
-</router-view>`)}}function ff(e,t){const r=jt({},e,{matched:e.matched.map(i=>jC(i,["instances","children","aliasOf"]))});return{_custom:{type:null,readOnly:!0,display:e.fullPath,tooltip:t,value:r}}}function Gu(e){return{_custom:{display:e}}}let CC=0;function BC(e,t,r){if(t.__hasDevtools)return;t.__hasDevtools=!0;const i=CC++;L3({id:"org.vuejs.router"+(i?"."+i:""),label:"Vue Router",packageName:"vue-router",homepage:"https://router.vuejs.org",logo:"https://router.vuejs.org/logo.png",componentStateTypes:["Routing"],app:e},a=>{typeof a.now!="function"&&console.warn("[Vue Router]: You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),a.on.inspectComponent((M,S)=>{M.instanceData&&M.instanceData.state.push({type:"Routing",key:"$route",editable:!1,value:ff(t.currentRoute.value,"Current Route")})}),a.on.visitComponentTree(({treeNode:M,componentInstance:S})=>{if(S.__vrv_devtools){const R=S.__vrv_devtools;M.tags.push({label:(R.name?`${R.name.toString()}: `:"")+R.path,textColor:0,tooltip:"This component is rendered by &lt;router-view&gt;",backgroundColor:V3})}Jr(S.__vrl_devtools)&&(S.__devtoolsApi=a,S.__vrl_devtools.forEach(R=>{let C=Y3,P="";R.isExactActive?(C=G3,P="This is exactly active"):R.isActive&&(C=z3,P="This link is active"),M.tags.push({label:R.route.path,textColor:0,tooltip:P,backgroundColor:C})}))}),lr(t.currentRoute,()=>{d(),a.notifyComponentUpdate(),a.sendInspectorTree(c),a.sendInspectorState(c)});const n="router:navigations:"+i;a.addTimelineLayer({id:n,label:`Router${i?" "+i:""} Navigations`,color:4237508}),t.onError((M,S)=>{a.addTimelineEvent({layerId:n,event:{title:"Error during Navigation",subtitle:S.fullPath,logType:"error",time:a.now(),data:{error:M},groupId:S.meta.__navigationId}})});let u=0;t.beforeEach((M,S)=>{const R={guard:Gu("beforeEach"),from:ff(S,"Current Location during this navigation"),to:ff(M,"Target location")};Object.defineProperty(M.meta,"__navigationId",{value:u++}),a.addTimelineEvent({layerId:n,event:{time:a.now(),title:"Start of navigation",subtitle:M.fullPath,data:R,groupId:M.meta.__navigationId}})}),t.afterEach((M,S,R)=>{const C={guard:Gu("afterEach")};R?(C.failure={_custom:{type:Error,readOnly:!0,display:R?R.message:"",tooltip:"Navigation Failure",value:R}},C.status=Gu("❌")):C.status=Gu("✅"),C.from=ff(S,"Current Location during this navigation"),C.to=ff(M,"Target location"),a.addTimelineEvent({layerId:n,event:{title:"End of navigation",subtitle:M.fullPath,time:a.now(),data:C,logType:R?"warning":"default",groupId:M.meta.__navigationId}})});const c="router-inspector:"+i;a.addInspector({id:c,label:"Routes"+(i?" "+i:""),icon:"book",treeFilterPlaceholder:"Search routes"});function d(){if(!m)return;const M=m;let S=r.getRoutes().filter(R=>!R.parent);S.forEach(J3),M.filter&&(S=S.filter(R=>Op(R,M.filter.toLowerCase()))),S.forEach(R=>X3(R,t.currentRoute.value)),M.rootNodes=S.map(Z3)}let m;a.on.getInspectorTree(M=>{m=M,M.app===e&&M.inspectorId===c&&d()}),a.on.getInspectorState(M=>{if(M.app===e&&M.inspectorId===c){const R=r.getRoutes().find(C=>C.record.__vd_id===M.nodeId);R&&(M.state={options:NC(R)})}}),a.sendInspectorTree(c),a.sendInspectorState(c)})}function LC(e){return e.optional?e.repeatable?"*":"?":e.repeatable?"+":""}function NC(e){const{record:t}=e,r=[{editable:!1,key:"path",value:t.path}];return t.name!=null&&r.push({editable:!1,key:"name",value:t.name}),r.push({editable:!1,key:"regexp",value:e.re}),e.keys.length&&r.push({editable:!1,key:"keys",value:{_custom:{type:null,readOnly:!0,display:e.keys.map(i=>`${i.name}${LC(i)}`).join(" "),tooltip:"Param keys",value:e.keys}}}),t.redirect!=null&&r.push({editable:!1,key:"redirect",value:t.redirect}),e.alias.length&&r.push({editable:!1,key:"aliases",value:e.alias.map(i=>i.record.path)}),Object.keys(e.record.meta).length&&r.push({editable:!1,key:"meta",value:e.record.meta}),r.push({key:"score",editable:!1,value:{_custom:{type:null,readOnly:!0,display:e.score.map(i=>i.join(", ")).join(" | "),tooltip:"Score used to sort routes",value:e.score}}}),r}const V3=15485081,z3=2450411,G3=8702998,kC=2282478,Y3=16486972,$C=6710886;function Z3(e){const t=[],{record:r}=e;r.name!=null&&t.push({label:String(r.name),textColor:0,backgroundColor:kC}),r.aliasOf&&t.push({label:"alias",textColor:0,backgroundColor:Y3}),e.__vd_match&&t.push({label:"matches",textColor:0,backgroundColor:V3}),e.__vd_exactActive&&t.push({label:"exact",textColor:0,backgroundColor:G3}),e.__vd_active&&t.push({label:"active",textColor:0,backgroundColor:z3}),r.redirect&&t.push({label:typeof r.redirect=="string"?`redirect: ${r.redirect}`:"redirects",textColor:16777215,backgroundColor:$C});let i=r.__vd_id;return i==null&&(i=String(DC++),r.__vd_id=i),{id:i,label:r.path,tags:t,children:e.children.map(Z3)}}let DC=0;const FC=/^\/(.*)\/([a-z]*)$/;function X3(e,t){const r=t.matched.length&&Po(t.matched[t.matched.length-1],e.record);e.__vd_exactActive=e.__vd_active=r,r||(e.__vd_active=t.matched.some(i=>Po(i,e.record))),e.children.forEach(i=>X3(i,t))}function J3(e){e.__vd_match=!1,e.children.forEach(J3)}function Op(e,t){const r=String(e.re).match(FC);if(e.__vd_match=!1,!r||r.length<3)return!1;if(new RegExp(r[1].replace(/\$$/,""),r[2]).test(t))return e.children.forEach(u=>Op(u,t)),e.record.path!=="/"||t==="/"?(e.__vd_match=e.re.test(t),!0):!1;const a=e.record.path.toLowerCase(),n=iu(a);return!t.startsWith("/")&&(n.includes(t)||a.includes(t))||n.startsWith(t)||a.startsWith(t)||e.record.name&&String(e.record.name).includes(t)?!0:e.children.some(u=>Op(u,t))}function jC(e,t){const r={};for(const i in e)t.includes(i)||(r[i]=e[i]);return r}function NV(e){const t=eC(e.routes,e),r=e.parseQuery||wC,i=e.stringifyQuery||Ay,a=e.history;if(!a)throw new Error('Provide the "history" option when calling "createRouter()": https://next.router.vuejs.org/api/#history.');const n=sf(),u=sf(),c=sf(),d=h2(eo);let m=eo;Rn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const M=Od.bind(null,E=>""+E),S=Od.bind(null,bC),R=Od.bind(null,iu);function C(E,U){let K,Z;return $3(E)?(K=t.getRecordMatcher(E),Z=U):Z=E,t.addRoute(Z,K)}function P(E){const U=t.getRecordMatcher(E);U?t.removeRoute(U):Et(`Cannot remove non-existent route "${String(E)}"`)}function k(){return t.getRoutes().map(E=>E.record)}function L(E){return!!t.getRecordMatcher(E)}function I(E,U){if(U=jt({},U||d.value),typeof E=="string"){const q=Id(r,E,U.path),X=t.resolve({path:q.path},U),D=a.createHref(q.fullPath);return D.startsWith("//")?Et(`Location "${E}" resolved to "${D}". A resolved location cannot start with multiple slashes.`):X.matched.length||Et(`No match found for location with path "${E}"`),jt(q,X,{params:R(X.params),hash:iu(q.hash),redirectedFrom:void 0,href:D})}let K;if("path"in E)"params"in E&&!("name"in E)&&Object.keys(E.params).length&&Et(`Path "${E.path}" was passed with params but they will be ignored. Use a named route alongside params instead.`),K=jt({},E,{path:Id(r,E.path,U.path).path});else{const q=jt({},E.params);for(const X in q)q[X]==null&&delete q[X];K=jt({},E,{params:S(q)}),U.params=S(U.params)}const Z=t.resolve(K,U),b=E.hash||"";b&&!b.startsWith("#")&&Et(`A \`hash\` should always start with the character "#". Replace "${b}" with "#${b}".`),Z.params=M(R(Z.params));const y=AP(i,jt({},E,{hash:gC(b),path:Z.path})),O=a.createHref(y);return O.startsWith("//")?Et(`Location "${E}" resolved to "${O}". A resolved location cannot start with multiple slashes.`):Z.matched.length||Et(`No match found for location with path "${"path"in E?E.path:E}"`),jt({fullPath:y,hash:b,query:i===Ay?_C(E.query):E.query||{}},Z,{redirectedFrom:void 0,href:O})}function B(E){return typeof E=="string"?Id(r,E,d.value.path):jt({},E)}function H(E,U){if(m!==E)return vs(8,{from:U,to:E})}function F(E){return ie(E)}function W(E){return F(jt(B(E),{replace:!0}))}function Y(E){const U=E.matched[E.matched.length-1];if(U&&U.redirect){const{redirect:K}=U;let Z=typeof K=="function"?K(E):K;if(typeof Z=="string"&&(Z=Z.includes("?")||Z.includes("#")?Z=B(Z):{path:Z},Z.params={}),!("path"in Z)&&!("name"in Z))throw Et(`Invalid redirect found:
-${JSON.stringify(Z,null,2)}
- when navigating to "${E.fullPath}". A redirect must contain a name or path. This will break in production.`),new Error("Invalid redirect");return jt({query:E.query,hash:E.hash,params:"path"in Z?{}:E.params},Z)}}function ie(E,U){const K=m=I(E),Z=d.value,b=E.state,y=E.force,O=E.replace===!0,q=Y(K);if(q)return ie(jt(B(q),{state:typeof q=="object"?jt({},b,q.state):b,force:y,replace:O}),U||K);const X=K;X.redirectedFrom=U;let D;return!y&&my(i,Z,K)&&(D=vs(16,{to:X,from:Z}),v(Z,Z,!0,!1)),(D?Promise.resolve(D):oe(X,Z)).catch(N=>mn(N)?mn(N,2)?N:s(N):x(N,X,Z)).then(N=>{if(N){if(mn(N,2))return my(i,I(N.to),X)&&U&&(U._count=U._count?U._count+1:1)>30?(Et(`Detected a possibly infinite redirection in a navigation guard when going from "${Z.fullPath}" to "${X.fullPath}". Aborting to avoid a Stack Overflow.
- Are you always returning a new location within a navigation guard? That would lead to this error. Only return when redirecting or aborting, that should fix this. This might break in production if not fixed.`),Promise.reject(new Error("Infinite redirect in navigation guard"))):ie(jt({replace:O},B(N.to),{state:typeof N.to=="object"?jt({},b,N.to.state):b,force:y}),U||X)}else N=o(X,Z,!0,O,b);return _(X,Z,N),N})}function J(E,U){const K=H(E,U);return K?Promise.reject(K):Promise.resolve()}function V(E){const U=G.values().next().value;return U&&typeof U.runWithContext=="function"?U.runWithContext(E):E()}function oe(E,U){let K;const[Z,b,y]=UC(E,U);K=Pd(Z.reverse(),"beforeRouteLeave",E,U);for(const q of Z)q.leaveGuards.forEach(X=>{K.push(oo(X,E,U))});const O=J.bind(null,E,U);return K.push(O),A(K).then(()=>{K=[];for(const q of n.list())K.push(oo(q,E,U));return K.push(O),A(K)}).then(()=>{K=Pd(b,"beforeRouteUpdate",E,U);for(const q of b)q.updateGuards.forEach(X=>{K.push(oo(X,E,U))});return K.push(O),A(K)}).then(()=>{K=[];for(const q of E.matched)if(q.beforeEnter&&!U.matched.includes(q))if(Jr(q.beforeEnter))for(const X of q.beforeEnter)K.push(oo(X,E,U));else K.push(oo(q.beforeEnter,E,U));return K.push(O),A(K)}).then(()=>(E.matched.forEach(q=>q.enterCallbacks={}),K=Pd(y,"beforeRouteEnter",E,U),K.push(O),A(K))).then(()=>{K=[];for(const q of u.list())K.push(oo(q,E,U));return K.push(O),A(K)}).catch(q=>mn(q,8)?q:Promise.reject(q))}function _(E,U,K){for(const Z of c.list())V(()=>Z(E,U,K))}function o(E,U,K,Z,b){const y=H(E,U);if(y)return y;const O=U===eo,q=Rn?history.state:{};K&&(Z||O?a.replace(E.fullPath,jt({scroll:O&&q&&q.scroll},b)):a.push(E.fullPath,b)),d.value=E,v(E,U,K,O),s()}let f;function l(){f||(f=a.listen((E,U,K)=>{if(!ee.listening)return;const Z=I(E),b=Y(Z);if(b){ie(jt(b,{replace:!0}),Z).catch(Df);return}m=Z;const y=d.value;Rn&&NP(by(y.fullPath,K.delta),qh()),oe(Z,y).catch(O=>mn(O,12)?O:mn(O,2)?(ie(O.to,Z).then(q=>{mn(q,20)&&!K.delta&&K.type===ru.pop&&a.go(-1,!1)}).catch(Df),Promise.reject()):(K.delta&&a.go(-K.delta,!1),x(O,Z,y))).then(O=>{O=O||o(Z,y,!1),O&&(K.delta&&!mn(O,8)?a.go(-K.delta,!1):K.type===ru.pop&&mn(O,20)&&a.go(-1,!1)),_(Z,y,O)}).catch(Df)}))}let h=sf(),p=sf(),w;function x(E,U,K){s(E);const Z=p.list();return Z.length?Z.forEach(b=>b(E,U,K)):(Et("uncaught error during route navigation:"),console.error(E)),Promise.reject(E)}function g(){return w&&d.value!==eo?Promise.resolve():new Promise((E,U)=>{h.add([E,U])})}function s(E){return w||(w=!E,l(),h.list().forEach(([U,K])=>E?K(E):U()),h.reset()),E}function v(E,U,K,Z){const{scrollBehavior:b}=e;if(!Rn||!b)return Promise.resolve();const y=!K&&kP(by(E.fullPath,0))||(Z||!K)&&history.state&&history.state.scroll||null;return uo().then(()=>b(E,U,y)).then(O=>O&&LP(O)).catch(O=>x(O,E,U))}const T=E=>a.go(E);let $;const G=new Set,ee={currentRoute:d,listening:!0,addRoute:C,removeRoute:P,hasRoute:L,getRoutes:k,resolve:I,options:e,push:F,replace:W,go:T,back:()=>T(-1),forward:()=>T(1),beforeEach:n.add,beforeResolve:u.add,afterEach:c.add,onError:p.add,isReady:g,install(E){const U=this;E.component("RouterLink",RC),E.component("RouterView",IC),E.config.globalProperties.$router=U,Object.defineProperty(E.config.globalProperties,"$route",{enumerable:!0,get:()=>vo(d)}),Rn&&!$&&d.value===eo&&($=!0,F(a.location).catch(b=>{Et("Unexpected error when starting the router:",b)}));const K={};for(const b in eo)K[b]=Qt(()=>d.value[b]);E.provide(tg,U),E.provide(K3,No(K)),E.provide(Tp,d);const Z=E.unmount;G.add(E),E.unmount=function(){G.delete(E),G.size<1&&(m=eo,f&&f(),f=null,d.value=eo,$=!1,w=!1),Z()},Rn&&BC(E,U,t)}};function A(E){return E.reduce((U,K)=>U.then(()=>V(K)),Promise.resolve())}return ee}function UC(e,t){const r=[],i=[],a=[],n=Math.max(t.matched.length,e.matched.length);for(let u=0;u<n;u++){const c=t.matched[u];c&&(e.matched.find(m=>Po(m,c))?i.push(c):r.push(c));const d=e.matched[u];d&&(t.matched.find(m=>Po(m,d))||a.push(d))}return[r,i,a]}/*!
- * vuex v4.1.0
- * (c) 2022 Evan You
- * @license MIT
- */var HC="store";function xa(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function qC(e){return e!==null&&typeof e=="object"}function WC(e){return e&&typeof e.then=="function"}function ki(e,t){if(!e)throw new Error("[vuex] "+t)}function KC(e,t){return function(){return e(t)}}function Q3(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var i=t.indexOf(e);i>-1&&t.splice(i,1)}}function e6(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;Wh(e,r,[],e._modules.root,!0),rg(e,r,t)}function rg(e,t,r){var i=e._state,a=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var n=e._wrappedGetters,u={},c={},d=Gw(!0);d.run(function(){xa(n,function(m,M){u[M]=KC(m,e),c[M]=Qt(function(){return u[M]()}),Object.defineProperty(e.getters,M,{get:function(){return c[M].value},enumerable:!0})})}),e._state=No({data:t}),e._scope=d,e.strict&&ZC(e),i&&r&&e._withCommit(function(){i.data=null}),a&&a.stop()}function Wh(e,t,r,i,a){var n=!r.length,u=e._modules.getNamespace(r);if(i.namespaced&&(e._modulesNamespaceMap[u]&&console.error("[vuex] duplicate namespace "+u+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[u]=i),!n&&!a){var c=ig(t,r.slice(0,-1)),d=r[r.length-1];e._withCommit(function(){d in c&&console.warn('[vuex] state field "'+d+'" was overridden by a module with the same name at "'+r.join(".")+'"'),c[d]=i.state})}var m=i.context=VC(e,u,r);i.forEachMutation(function(M,S){var R=u+S;zC(e,R,M,m)}),i.forEachAction(function(M,S){var R=M.root?S:u+S,C=M.handler||M;GC(e,R,C,m)}),i.forEachGetter(function(M,S){var R=u+S;YC(e,R,M,m)}),i.forEachChild(function(M,S){Wh(e,t,r.concat(S),M,a)})}function VC(e,t,r){var i=t==="",a={dispatch:i?e.dispatch:function(n,u,c){var d=Yl(n,u,c),m=d.payload,M=d.options,S=d.type;if((!M||!M.root)&&(S=t+S,!e._actions[S])){console.error("[vuex] unknown local action type: "+d.type+", global type: "+S);return}return e.dispatch(S,m)},commit:i?e.commit:function(n,u,c){var d=Yl(n,u,c),m=d.payload,M=d.options,S=d.type;if((!M||!M.root)&&(S=t+S,!e._mutations[S])){console.error("[vuex] unknown local mutation type: "+d.type+", global type: "+S);return}e.commit(S,m,M)}};return Object.defineProperties(a,{getters:{get:i?function(){return e.getters}:function(){return t6(e,t)}},state:{get:function(){return ig(e.state,r)}}}),a}function t6(e,t){if(!e._makeLocalGettersCache[t]){var r={},i=t.length;Object.keys(e.getters).forEach(function(a){if(a.slice(0,i)===t){var n=a.slice(i);Object.defineProperty(r,n,{get:function(){return e.getters[a]},enumerable:!0})}}),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function zC(e,t,r,i){var a=e._mutations[t]||(e._mutations[t]=[]);a.push(function(u){r.call(e,i.state,u)})}function GC(e,t,r,i){var a=e._actions[t]||(e._actions[t]=[]);a.push(function(u){var c=r.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},u);return WC(c)||(c=Promise.resolve(c)),e._devtoolHook?c.catch(function(d){throw e._devtoolHook.emit("vuex:error",d),d}):c})}function YC(e,t,r,i){if(e._wrappedGetters[t]){console.error("[vuex] duplicate getter key: "+t);return}e._wrappedGetters[t]=function(n){return r(i.state,i.getters,n.state,n.getters)}}function ZC(e){lr(function(){return e._state.data},function(){ki(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function ig(e,t){return t.reduce(function(r,i){return r[i]},e)}function Yl(e,t,r){return qC(e)&&e.type&&(r=t,t=e,e=e.type),ki(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:r}}var XC="vuex bindings",By="vuex:mutations",Cd="vuex:actions",$a="vuex",JC=0;function QC(e,t){L3({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[XC]},function(r){r.addTimelineLayer({id:By,label:"Vuex Mutations",color:Ly}),r.addTimelineLayer({id:Cd,label:"Vuex Actions",color:Ly}),r.addInspector({id:$a,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(i){if(i.app===e&&i.inspectorId===$a)if(i.filter){var a=[];o6(a,t._modules.root,i.filter,""),i.rootNodes=a}else i.rootNodes=[n6(t._modules.root,"")]}),r.on.getInspectorState(function(i){if(i.app===e&&i.inspectorId===$a){var a=i.nodeId;t6(t,a),i.state=rB(nB(t._modules,a),a==="root"?t.getters:t._makeLocalGettersCache,a)}}),r.on.editInspectorState(function(i){if(i.app===e&&i.inspectorId===$a){var a=i.nodeId,n=i.path;a!=="root"&&(n=a.split("/").filter(Boolean).concat(n)),t._withCommit(function(){i.set(t._state.data,n,i.state.value)})}}),t.subscribe(function(i,a){var n={};i.payload&&(n.payload=i.payload),n.state=a,r.notifyComponentUpdate(),r.sendInspectorTree($a),r.sendInspectorState($a),r.addTimelineEvent({layerId:By,event:{time:Date.now(),title:i.type,data:n}})}),t.subscribeAction({before:function(i,a){var n={};i.payload&&(n.payload=i.payload),i._id=JC++,i._time=Date.now(),n.state=a,r.addTimelineEvent({layerId:Cd,event:{time:i._time,title:i.type,groupId:i._id,subtitle:"start",data:n}})},after:function(i,a){var n={},u=Date.now()-i._time;n.duration={_custom:{type:"duration",display:u+"ms",tooltip:"Action duration",value:u}},i.payload&&(n.payload=i.payload),n.state=a,r.addTimelineEvent({layerId:Cd,event:{time:Date.now(),title:i.type,groupId:i._id,subtitle:"end",data:n}})}})})}var Ly=8702998,eB=6710886,tB=16777215,r6={label:"namespaced",textColor:tB,backgroundColor:eB};function i6(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function n6(e,t){return{id:t||"root",label:i6(t),tags:e.namespaced?[r6]:[],children:Object.keys(e._children).map(function(r){return n6(e._children[r],t+r+"/")})}}function o6(e,t,r,i){i.includes(r)&&e.push({id:i||"root",label:i.endsWith("/")?i.slice(0,i.length-1):i||"Root",tags:t.namespaced?[r6]:[]}),Object.keys(t._children).forEach(function(a){o6(e,t._children[a],r,i+a+"/")})}function rB(e,t,r){t=r==="root"?t:t[r];var i=Object.keys(t),a={state:Object.keys(e.state).map(function(u){return{key:u,editable:!0,value:e.state[u]}})};if(i.length){var n=iB(t);a.getters=Object.keys(n).map(function(u){return{key:u.endsWith("/")?i6(u):u,editable:!1,value:Ip(function(){return n[u]})}})}return a}function iB(e){var t={};return Object.keys(e).forEach(function(r){var i=r.split("/");if(i.length>1){var a=t,n=i.pop();i.forEach(function(u){a[u]||(a[u]={_custom:{value:{},display:u,tooltip:"Module",abstract:!0}}),a=a[u]._custom.value}),a[n]=Ip(function(){return e[r]})}else t[r]=Ip(function(){return e[r]})}),t}function nB(e,t){var r=t.split("/").filter(function(i){return i});return r.reduce(function(i,a,n){var u=i[a];if(!u)throw new Error('Missing module "'+a+'" for path "'+t+'".');return n===r.length-1?u:u._children},t==="root"?e:e.root._children)}function Ip(e){try{return e()}catch(t){return t}}var ji=function(t,r){this.runtime=r,this._children=Object.create(null),this._rawModule=t;var i=t.state;this.state=(typeof i=="function"?i():i)||{}},a6={namespaced:{configurable:!0}};a6.namespaced.get=function(){return!!this._rawModule.namespaced};ji.prototype.addChild=function(t,r){this._children[t]=r};ji.prototype.removeChild=function(t){delete this._children[t]};ji.prototype.getChild=function(t){return this._children[t]};ji.prototype.hasChild=function(t){return t in this._children};ji.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};ji.prototype.forEachChild=function(t){xa(this._children,t)};ji.prototype.forEachGetter=function(t){this._rawModule.getters&&xa(this._rawModule.getters,t)};ji.prototype.forEachAction=function(t){this._rawModule.actions&&xa(this._rawModule.actions,t)};ji.prototype.forEachMutation=function(t){this._rawModule.mutations&&xa(this._rawModule.mutations,t)};Object.defineProperties(ji.prototype,a6);var Ea=function(t){this.register([],t,!1)};Ea.prototype.get=function(t){return t.reduce(function(r,i){return r.getChild(i)},this.root)};Ea.prototype.getNamespace=function(t){var r=this.root;return t.reduce(function(i,a){return r=r.getChild(a),i+(r.namespaced?a+"/":"")},"")};Ea.prototype.update=function(t){s6([],this.root,t)};Ea.prototype.register=function(t,r,i){var a=this;i===void 0&&(i=!0),f6(t,r);var n=new ji(r,i);if(t.length===0)this.root=n;else{var u=this.get(t.slice(0,-1));u.addChild(t[t.length-1],n)}r.modules&&xa(r.modules,function(c,d){a.register(t.concat(d),c,i)})};Ea.prototype.unregister=function(t){var r=this.get(t.slice(0,-1)),i=t[t.length-1],a=r.getChild(i);if(!a){console.warn("[vuex] trying to unregister module '"+i+"', which is not registered");return}a.runtime&&r.removeChild(i)};Ea.prototype.isRegistered=function(t){var r=this.get(t.slice(0,-1)),i=t[t.length-1];return r?r.hasChild(i):!1};function s6(e,t,r){if(f6(e,r),t.update(r),r.modules)for(var i in r.modules){if(!t.getChild(i)){console.warn("[vuex] trying to add a new module '"+i+"' on hot reloading, manual reload is needed");return}s6(e.concat(i),t.getChild(i),r.modules[i])}}var Ny={assert:function(e){return typeof e=="function"},expected:"function"},oB={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},ky={getters:Ny,mutations:Ny,actions:oB};function f6(e,t){Object.keys(ky).forEach(function(r){if(t[r]){var i=ky[r];xa(t[r],function(a,n){ki(i.assert(a),aB(e,r,n,a,i.expected))})}})}function aB(e,t,r,i,a){var n=t+" should be "+a+' but "'+t+"."+r+'"';return e.length>0&&(n+=' in module "'+e.join(".")+'"'),n+=" is "+JSON.stringify(i)+".",n}function kV(e){return new Gr(e)}var Gr=function e(t){var r=this;t===void 0&&(t={}),ki(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),ki(this instanceof e,"store must be called with the new operator.");var i=t.plugins;i===void 0&&(i=[]);var a=t.strict;a===void 0&&(a=!1);var n=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Ea(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=n;var u=this,c=this,d=c.dispatch,m=c.commit;this.dispatch=function(R,C){return d.call(u,R,C)},this.commit=function(R,C,P){return m.call(u,R,C,P)},this.strict=a;var M=this._modules.root.state;Wh(this,M,[],this._modules.root),rg(this,M),i.forEach(function(S){return S(r)})},ng={state:{configurable:!0}};Gr.prototype.install=function(t,r){t.provide(r||HC,this),t.config.globalProperties.$store=this;var i=this._devtools!==void 0?this._devtools:!0;i&&QC(t,this)};ng.state.get=function(){return this._state.data};ng.state.set=function(e){ki(!1,"use store.replaceState() to explicit replace store state.")};Gr.prototype.commit=function(t,r,i){var a=this,n=Yl(t,r,i),u=n.type,c=n.payload,d=n.options,m={type:u,payload:c},M=this._mutations[u];if(!M){console.error("[vuex] unknown mutation type: "+u);return}this._withCommit(function(){M.forEach(function(R){R(c)})}),this._subscribers.slice().forEach(function(S){return S(m,a.state)}),d&&d.silent&&console.warn("[vuex] mutation type: "+u+". Silent option has been removed. Use the filter functionality in the vue-devtools")};Gr.prototype.dispatch=function(t,r){var i=this,a=Yl(t,r),n=a.type,u=a.payload,c={type:n,payload:u},d=this._actions[n];if(!d){console.error("[vuex] unknown action type: "+n);return}try{this._actionSubscribers.slice().filter(function(M){return M.before}).forEach(function(M){return M.before(c,i.state)})}catch(M){console.warn("[vuex] error in before action subscribers: "),console.error(M)}var m=d.length>1?Promise.all(d.map(function(M){return M(u)})):d[0](u);return new Promise(function(M,S){m.then(function(R){try{i._actionSubscribers.filter(function(C){return C.after}).forEach(function(C){return C.after(c,i.state)})}catch(C){console.warn("[vuex] error in after action subscribers: "),console.error(C)}M(R)},function(R){try{i._actionSubscribers.filter(function(C){return C.error}).forEach(function(C){return C.error(c,i.state,R)})}catch(C){console.warn("[vuex] error in error action subscribers: "),console.error(C)}S(R)})})};Gr.prototype.subscribe=function(t,r){return Q3(t,this._subscribers,r)};Gr.prototype.subscribeAction=function(t,r){var i=typeof t=="function"?{before:t}:t;return Q3(i,this._actionSubscribers,r)};Gr.prototype.watch=function(t,r,i){var a=this;return ki(typeof t=="function","store.watch only accepts a function."),lr(function(){return t(a.state,a.getters)},r,Object.assign({},i))};Gr.prototype.replaceState=function(t){var r=this;this._withCommit(function(){r._state.data=t})};Gr.prototype.registerModule=function(t,r,i){i===void 0&&(i={}),typeof t=="string"&&(t=[t]),ki(Array.isArray(t),"module path must be a string or an Array."),ki(t.length>0,"cannot register the root module by using registerModule."),this._modules.register(t,r),Wh(this,this.state,t,this._modules.get(t),i.preserveState),rg(this,this.state)};Gr.prototype.unregisterModule=function(t){var r=this;typeof t=="string"&&(t=[t]),ki(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var i=ig(r.state,t.slice(0,-1));delete i[t[t.length-1]]}),e6(this)};Gr.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),ki(Array.isArray(t),"module path must be a string or an Array."),this._modules.isRegistered(t)};Gr.prototype.hotUpdate=function(t){this._modules.update(t),e6(this,!0)};Gr.prototype._withCommit=function(t){var r=this._committing;this._committing=!0,t(),this._committing=r};Object.defineProperties(Gr.prototype,ng);function sB(e,t,r){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var n=Array(a);++i<a;)n[i]=e[i+t];return n}var fB=sB,uB=fB;function lB(e,t,r){var i=e.length;return r=r===void 0?i:r,!t&&r>=i?e:uB(e,t,r)}var hB=lB,cB="\\ud800-\\udfff",dB="\\u0300-\\u036f",pB="\\ufe20-\\ufe2f",vB="\\u20d0-\\u20ff",gB=dB+pB+vB,mB="\\ufe0e\\ufe0f",yB="\\u200d",bB=RegExp("["+yB+cB+gB+mB+"]");function wB(e){return bB.test(e)}var u6=wB;function _B(e){return e.split("")}var MB=_B,l6="\\ud800-\\udfff",SB="\\u0300-\\u036f",xB="\\ufe20-\\ufe2f",EB="\\u20d0-\\u20ff",RB=SB+xB+EB,AB="\\ufe0e\\ufe0f",TB="["+l6+"]",Pp="["+RB+"]",Cp="\\ud83c[\\udffb-\\udfff]",OB="(?:"+Pp+"|"+Cp+")",h6="[^"+l6+"]",c6="(?:\\ud83c[\\udde6-\\uddff]){2}",d6="[\\ud800-\\udbff][\\udc00-\\udfff]",IB="\\u200d",p6=OB+"?",v6="["+AB+"]?",PB="(?:"+IB+"(?:"+[h6,c6,d6].join("|")+")"+v6+p6+")*",CB=v6+p6+PB,BB="(?:"+[h6+Pp+"?",Pp,c6,d6,TB].join("|")+")",LB=RegExp(Cp+"(?="+Cp+")|"+BB+CB,"g");function NB(e){return e.match(LB)||[]}var kB=NB,$B=MB,DB=u6,FB=kB;function jB(e){return DB(e)?FB(e):$B(e)}var UB=jB,HB=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,qB=HB,WB=qB,KB=typeof self=="object"&&self&&self.Object===Object&&self,VB=WB||KB||Function("return this")(),zB=VB,GB=zB,YB=GB.Symbol,og=YB;function ZB(e,t){for(var r=-1,i=e==null?0:e.length,a=Array(i);++r<i;)a[r]=t(e[r],r,e);return a}var XB=ZB,JB=Array.isArray,QB=JB,$y=og,g6=Object.prototype,eL=g6.hasOwnProperty,tL=g6.toString,uf=$y?$y.toStringTag:void 0;function rL(e){var t=eL.call(e,uf),r=e[uf];try{e[uf]=void 0;var i=!0}catch{}var a=tL.call(e);return i&&(t?e[uf]=r:delete e[uf]),a}var iL=rL,nL=Object.prototype,oL=nL.toString;function aL(e){return oL.call(e)}var sL=aL,Dy=og,fL=iL,uL=sL,lL="[object Null]",hL="[object Undefined]",Fy=Dy?Dy.toStringTag:void 0;function cL(e){return e==null?e===void 0?hL:lL:Fy&&Fy in Object(e)?fL(e):uL(e)}var dL=cL;function pL(e){return e!=null&&typeof e=="object"}var vL=pL,gL=dL,mL=vL,yL="[object Symbol]";function bL(e){return typeof e=="symbol"||mL(e)&&gL(e)==yL}var wL=bL,jy=og,_L=XB,ML=QB,SL=wL,xL=1/0,Uy=jy?jy.prototype:void 0,Hy=Uy?Uy.toString:void 0;function m6(e){if(typeof e=="string")return e;if(ML(e))return _L(e,m6)+"";if(SL(e))return Hy?Hy.call(e):"";var t=e+"";return t=="0"&&1/e==-xL?"-0":t}var EL=m6,RL=EL;function AL(e){return e==null?"":RL(e)}var Kh=AL,TL=hB,OL=u6,IL=UB,PL=Kh;function CL(e){return function(t){t=PL(t);var r=OL(t)?IL(t):void 0,i=r?r[0]:t.charAt(0),a=r?TL(r,1).join(""):t.slice(1);return i[e]()+a}}var BL=CL,LL=BL,NL=LL("toUpperCase"),y6=NL;const $V=Lo(y6);var kL=Kh,$L=y6;function DL(e){return $L(kL(e).toLowerCase())}var FL=DL;function jL(e,t,r,i){var a=-1,n=e==null?0:e.length;for(i&&n&&(r=e[++a]);++a<n;)r=t(r,e[a],a,e);return r}var UL=jL;function HL(e){return function(t){return e==null?void 0:e[t]}}var qL=HL,WL=qL,KL={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},VL=WL(KL),zL=VL,GL=zL,YL=Kh,ZL=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,XL="\\u0300-\\u036f",JL="\\ufe20-\\ufe2f",QL="\\u20d0-\\u20ff",eN=XL+JL+QL,tN="["+eN+"]",rN=RegExp(tN,"g");function iN(e){return e=YL(e),e&&e.replace(ZL,GL).replace(rN,"")}var nN=iN,oN=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function aN(e){return e.match(oN)||[]}var sN=aN,fN=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function uN(e){return fN.test(e)}var lN=uN,b6="\\ud800-\\udfff",hN="\\u0300-\\u036f",cN="\\ufe20-\\ufe2f",dN="\\u20d0-\\u20ff",pN=hN+cN+dN,w6="\\u2700-\\u27bf",_6="a-z\\xdf-\\xf6\\xf8-\\xff",vN="\\xac\\xb1\\xd7\\xf7",gN="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mN="\\u2000-\\u206f",yN=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",M6="A-Z\\xc0-\\xd6\\xd8-\\xde",bN="\\ufe0e\\ufe0f",S6=vN+gN+mN+yN,x6="['’]",qy="["+S6+"]",wN="["+pN+"]",E6="\\d+",_N="["+w6+"]",R6="["+_6+"]",A6="[^"+b6+S6+E6+w6+_6+M6+"]",MN="\\ud83c[\\udffb-\\udfff]",SN="(?:"+wN+"|"+MN+")",xN="[^"+b6+"]",T6="(?:\\ud83c[\\udde6-\\uddff]){2}",O6="[\\ud800-\\udbff][\\udc00-\\udfff]",qa="["+M6+"]",EN="\\u200d",Wy="(?:"+R6+"|"+A6+")",RN="(?:"+qa+"|"+A6+")",Ky="(?:"+x6+"(?:d|ll|m|re|s|t|ve))?",Vy="(?:"+x6+"(?:D|LL|M|RE|S|T|VE))?",I6=SN+"?",P6="["+bN+"]?",AN="(?:"+EN+"(?:"+[xN,T6,O6].join("|")+")"+P6+I6+")*",TN="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ON="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",IN=P6+I6+AN,PN="(?:"+[_N,T6,O6].join("|")+")"+IN,CN=RegExp([qa+"?"+R6+"+"+Ky+"(?="+[qy,qa,"$"].join("|")+")",RN+"+"+Vy+"(?="+[qy,qa+Wy,"$"].join("|")+")",qa+"?"+Wy+"+"+Ky,qa+"+"+Vy,ON,TN,E6,PN].join("|"),"g");function BN(e){return e.match(CN)||[]}var LN=BN,NN=sN,kN=lN,$N=Kh,DN=LN;function FN(e,t,r){return e=$N(e),t=r?void 0:t,t===void 0?kN(e)?DN(e):NN(e):e.match(t)||[]}var jN=FN,UN=UL,HN=nN,qN=jN,WN="['’]",KN=RegExp(WN,"g");function VN(e){return function(t){return UN(qN(HN(t).replace(KN,"")),e,"")}}var zN=VN,GN=FL,YN=zN,ZN=YN(function(e,t,r){return t=t.toLowerCase(),e+(r?GN(t):t)}),XN=ZN;const DV=Lo(XN);/**!
- * @fileOverview Kickass library to create and place poppers near their reference elements.
- * @version 1.16.1
- * @license
- * Copyright (c) 2016 Federico Zivolo and contributors
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in all
- * copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- * SOFTWARE.
- */var bu=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",JN=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(bu&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function QN(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function ek(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},JN))}}var tk=bu&&window.Promise,rk=tk?QN:ek;function C6(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Ra(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,i=r.getComputedStyle(e,null);return t?i[t]:i}function ag(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function wu(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ra(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(r+a+i)?e:wu(ag(e))}function B6(e){return e&&e.referenceNode?e.referenceNode:e}var zy=bu&&!!(window.MSInputMethodContext&&document.documentMode),Gy=bu&&/MSIE 10/.test(navigator.userAgent);function $s(e){return e===11?zy:e===10?Gy:zy||Gy}function gs(e){if(!e)return document.documentElement;for(var t=$s(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var i=r&&r.nodeName;return!i||i==="BODY"||i==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&Ra(r,"position")==="static"?gs(r):r}function ik(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||gs(e.firstElementChild)===e}function Bp(e){return e.parentNode!==null?Bp(e.parentNode):e}function Zl(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=r?e:t,a=r?t:e,n=document.createRange();n.setStart(i,0),n.setEnd(a,0);var u=n.commonAncestorContainer;if(e!==u&&t!==u||i.contains(a))return ik(u)?u:gs(u);var c=Bp(e);return c.host?Zl(c.host,t):Zl(e,Bp(t).host)}function ms(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",i=e.nodeName;if(i==="BODY"||i==="HTML"){var a=e.ownerDocument.documentElement,n=e.ownerDocument.scrollingElement||a;return n[r]}return e[r]}function nk(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=ms(t,"top"),a=ms(t,"left"),n=r?-1:1;return e.top+=i*n,e.bottom+=i*n,e.left+=a*n,e.right+=a*n,e}function Yy(e,t){var r=t==="x"?"Left":"Top",i=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+i+"Width"])}function Zy(e,t,r,i){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],$s(10)?parseInt(r["offset"+e])+parseInt(i["margin"+(e==="Height"?"Top":"Left")])+parseInt(i["margin"+(e==="Height"?"Bottom":"Right")]):0)}function L6(e){var t=e.body,r=e.documentElement,i=$s(10)&&getComputedStyle(r);return{height:Zy("Height",t,r,i),width:Zy("Width",t,r,i)}}var ok=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ak=function(){function e(t,r){for(var i=0;i<r.length;i++){var a=r[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),ys=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},ci=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e};function Co(e){return ci({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Lp(e){var t={};try{if($s(10)){t=e.getBoundingClientRect();var r=ms(e,"top"),i=ms(e,"left");t.top+=r,t.left+=i,t.bottom+=r,t.right+=i}else t=e.getBoundingClientRect()}catch{}var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},n=e.nodeName==="HTML"?L6(e.ownerDocument):{},u=n.width||e.clientWidth||a.width,c=n.height||e.clientHeight||a.height,d=e.offsetWidth-u,m=e.offsetHeight-c;if(d||m){var M=Ra(e);d-=Yy(M,"x"),m-=Yy(M,"y"),a.width-=d,a.height-=m}return Co(a)}function sg(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=$s(10),a=t.nodeName==="HTML",n=Lp(e),u=Lp(t),c=wu(e),d=Ra(t),m=parseFloat(d.borderTopWidth),M=parseFloat(d.borderLeftWidth);r&&a&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var S=Co({top:n.top-u.top-m,left:n.left-u.left-M,width:n.width,height:n.height});if(S.marginTop=0,S.marginLeft=0,!i&&a){var R=parseFloat(d.marginTop),C=parseFloat(d.marginLeft);S.top-=m-R,S.bottom-=m-R,S.left-=M-C,S.right-=M-C,S.marginTop=R,S.marginLeft=C}return(i&&!r?t.contains(c):t===c&&c.nodeName!=="BODY")&&(S=nk(S,t)),S}function sk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,i=sg(e,r),a=Math.max(r.clientWidth,window.innerWidth||0),n=Math.max(r.clientHeight,window.innerHeight||0),u=t?0:ms(r),c=t?0:ms(r,"left"),d={top:u-i.top+i.marginTop,left:c-i.left+i.marginLeft,width:a,height:n};return Co(d)}function N6(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Ra(e,"position")==="fixed")return!0;var r=ag(e);return r?N6(r):!1}function k6(e){if(!e||!e.parentElement||$s())return document.documentElement;for(var t=e.parentElement;t&&Ra(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function fg(e,t,r,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,n={top:0,left:0},u=a?k6(e):Zl(e,B6(t));if(i==="viewport")n=sk(u,a);else{var c=void 0;i==="scrollParent"?(c=wu(ag(t)),c.nodeName==="BODY"&&(c=e.ownerDocument.documentElement)):i==="window"?c=e.ownerDocument.documentElement:c=i;var d=sg(c,u,a);if(c.nodeName==="HTML"&&!N6(u)){var m=L6(e.ownerDocument),M=m.height,S=m.width;n.top+=d.top-d.marginTop,n.bottom=M+d.top,n.left+=d.left-d.marginLeft,n.right=S+d.left}else n=d}r=r||0;var R=typeof r=="number";return n.left+=R?r:r.left||0,n.top+=R?r:r.top||0,n.right-=R?r:r.right||0,n.bottom-=R?r:r.bottom||0,n}function fk(e){var t=e.width,r=e.height;return t*r}function $6(e,t,r,i,a){var n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var u=fg(r,i,n,a),c={top:{width:u.width,height:t.top-u.top},right:{width:u.right-t.right,height:u.height},bottom:{width:u.width,height:u.bottom-t.bottom},left:{width:t.left-u.left,height:u.height}},d=Object.keys(c).map(function(R){return ci({key:R},c[R],{area:fk(c[R])})}).sort(function(R,C){return C.area-R.area}),m=d.filter(function(R){var C=R.width,P=R.height;return C>=r.clientWidth&&P>=r.clientHeight}),M=m.length>0?m[0].key:d[0].key,S=e.split("-")[1];return M+(S?"-"+S:"")}function D6(e,t,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=i?k6(t):Zl(t,B6(r));return sg(r,a,i)}function F6(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),i=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),a=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),n={width:e.offsetWidth+a,height:e.offsetHeight+i};return n}function Xl(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}function j6(e,t,r){r=r.split("-")[0];var i=F6(e),a={width:i.width,height:i.height},n=["right","left"].indexOf(r)!==-1,u=n?"top":"left",c=n?"left":"top",d=n?"height":"width",m=n?"width":"height";return a[u]=t[u]+t[d]/2-i[d]/2,r===c?a[c]=t[c]-i[m]:a[c]=t[Xl(c)],a}function _u(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function uk(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(a){return a[t]===r});var i=_u(e,function(a){return a[t]===r});return e.indexOf(i)}function U6(e,t,r){var i=r===void 0?e:e.slice(0,uk(e,"name",r));return i.forEach(function(a){a.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=a.function||a.fn;a.enabled&&C6(n)&&(t.offsets.popper=Co(t.offsets.popper),t.offsets.reference=Co(t.offsets.reference),t=n(t,a))}),t}function lk(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=D6(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=$6(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=j6(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=U6(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function H6(e,t){return e.some(function(r){var i=r.name,a=r.enabled;return a&&i===t})}function ug(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var a=t[i],n=a?""+a+r:e;if(typeof document.body.style[n]<"u")return n}return null}function hk(){return this.state.isDestroyed=!0,H6(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ug("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q6(e){var t=e.ownerDocument;return t?t.defaultView:window}function W6(e,t,r,i){var a=e.nodeName==="BODY",n=a?e.ownerDocument.defaultView:e;n.addEventListener(t,r,{passive:!0}),a||W6(wu(n.parentNode),t,r,i),i.push(n)}function ck(e,t,r,i){r.updateBound=i,q6(e).addEventListener("resize",r.updateBound,{passive:!0});var a=wu(e);return W6(a,"scroll",r.updateBound,r.scrollParents),r.scrollElement=a,r.eventsEnabled=!0,r}function dk(){this.state.eventsEnabled||(this.state=ck(this.reference,this.options,this.state,this.scheduleUpdate))}function pk(e,t){return q6(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(r){r.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function vk(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=pk(this.reference,this.state))}function lg(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function Np(e,t){Object.keys(t).forEach(function(r){var i="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&lg(t[r])&&(i="px"),e.style[r]=t[r]+i})}function gk(e,t){Object.keys(t).forEach(function(r){var i=t[r];i!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function mk(e){return Np(e.instance.popper,e.styles),gk(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Np(e.arrowElement,e.arrowStyles),e}function yk(e,t,r,i,a){var n=D6(a,t,e,r.positionFixed),u=$6(r.placement,n,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",u),Np(t,{position:r.positionFixed?"fixed":"absolute"}),r}function bk(e,t){var r=e.offsets,i=r.popper,a=r.reference,n=Math.round,u=Math.floor,c=function(I){return I},d=n(a.width),m=n(i.width),M=["left","right"].indexOf(e.placement)!==-1,S=e.placement.indexOf("-")!==-1,R=d%2===m%2,C=d%2===1&&m%2===1,P=t?M||S||R?n:u:c,k=t?n:c;return{left:P(C&&!S&&t?i.left-1:i.left),top:k(i.top),bottom:k(i.bottom),right:P(i.right)}}var wk=bu&&/Firefox/i.test(navigator.userAgent);function _k(e,t){var r=t.x,i=t.y,a=e.offsets.popper,n=_u(e.instance.modifiers,function(H){return H.name==="applyStyle"}).gpuAcceleration;n!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var u=n!==void 0?n:t.gpuAcceleration,c=gs(e.instance.popper),d=Lp(c),m={position:a.position},M=bk(e,window.devicePixelRatio<2||!wk),S=r==="bottom"?"top":"bottom",R=i==="right"?"left":"right",C=ug("transform"),P=void 0,k=void 0;if(S==="bottom"?c.nodeName==="HTML"?k=-c.clientHeight+M.bottom:k=-d.height+M.bottom:k=M.top,R==="right"?c.nodeName==="HTML"?P=-c.clientWidth+M.right:P=-d.width+M.right:P=M.left,u&&C)m[C]="translate3d("+P+"px, "+k+"px, 0)",m[S]=0,m[R]=0,m.willChange="transform";else{var L=S==="bottom"?-1:1,I=R==="right"?-1:1;m[S]=k*L,m[R]=P*I,m.willChange=S+", "+R}var B={"x-placement":e.placement};return e.attributes=ci({},B,e.attributes),e.styles=ci({},m,e.styles),e.arrowStyles=ci({},e.offsets.arrow,e.arrowStyles),e}function K6(e,t,r){var i=_u(e,function(c){var d=c.name;return d===t}),a=!!i&&e.some(function(c){return c.name===r&&c.enabled&&c.order<i.order});if(!a){var n="`"+t+"`",u="`"+r+"`";console.warn(u+" modifier is required by "+n+" modifier in order to work, be sure to include it before "+n+"!")}return a}function Mk(e,t){var r;if(!K6(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if(typeof i=="string"){if(i=e.instance.popper.querySelector(i),!i)return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var a=e.placement.split("-")[0],n=e.offsets,u=n.popper,c=n.reference,d=["left","right"].indexOf(a)!==-1,m=d?"height":"width",M=d?"Top":"Left",S=M.toLowerCase(),R=d?"left":"top",C=d?"bottom":"right",P=F6(i)[m];c[C]-P<u[S]&&(e.offsets.popper[S]-=u[S]-(c[C]-P)),c[S]+P>u[C]&&(e.offsets.popper[S]+=c[S]+P-u[C]),e.offsets.popper=Co(e.offsets.popper);var k=c[S]+c[m]/2-P/2,L=Ra(e.instance.popper),I=parseFloat(L["margin"+M]),B=parseFloat(L["border"+M+"Width"]),H=k-e.offsets.popper[S]-I-B;return H=Math.max(Math.min(u[m]-P,H),0),e.arrowElement=i,e.offsets.arrow=(r={},ys(r,S,Math.round(H)),ys(r,R,""),r),e}function Sk(e){return e==="end"?"start":e==="start"?"end":e}var V6=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Bd=V6.slice(3);function Xy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Bd.indexOf(e),i=Bd.slice(r+1).concat(Bd.slice(0,r));return t?i.reverse():i}var Ld={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function xk(e,t){if(H6(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=fg(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],a=Xl(i),n=e.placement.split("-")[1]||"",u=[];switch(t.behavior){case Ld.FLIP:u=[i,a];break;case Ld.CLOCKWISE:u=Xy(i);break;case Ld.COUNTERCLOCKWISE:u=Xy(i,!0);break;default:u=t.behavior}return u.forEach(function(c,d){if(i!==c||u.length===d+1)return e;i=e.placement.split("-")[0],a=Xl(i);var m=e.offsets.popper,M=e.offsets.reference,S=Math.floor,R=i==="left"&&S(m.right)>S(M.left)||i==="right"&&S(m.left)<S(M.right)||i==="top"&&S(m.bottom)>S(M.top)||i==="bottom"&&S(m.top)<S(M.bottom),C=S(m.left)<S(r.left),P=S(m.right)>S(r.right),k=S(m.top)<S(r.top),L=S(m.bottom)>S(r.bottom),I=i==="left"&&C||i==="right"&&P||i==="top"&&k||i==="bottom"&&L,B=["top","bottom"].indexOf(i)!==-1,H=!!t.flipVariations&&(B&&n==="start"&&C||B&&n==="end"&&P||!B&&n==="start"&&k||!B&&n==="end"&&L),F=!!t.flipVariationsByContent&&(B&&n==="start"&&P||B&&n==="end"&&C||!B&&n==="start"&&L||!B&&n==="end"&&k),W=H||F;(R||I||W)&&(e.flipped=!0,(R||I)&&(i=u[d+1]),W&&(n=Sk(n)),e.placement=i+(n?"-"+n:""),e.offsets.popper=ci({},e.offsets.popper,j6(e.instance.popper,e.offsets.reference,e.placement)),e=U6(e.instance.modifiers,e,"flip"))}),e}function Ek(e){var t=e.offsets,r=t.popper,i=t.reference,a=e.placement.split("-")[0],n=Math.floor,u=["top","bottom"].indexOf(a)!==-1,c=u?"right":"bottom",d=u?"left":"top",m=u?"width":"height";return r[c]<n(i[d])&&(e.offsets.popper[d]=n(i[d])-r[m]),r[d]>n(i[c])&&(e.offsets.popper[d]=n(i[c])),e}function Rk(e,t,r,i){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),n=+a[1],u=a[2];if(!n)return e;if(u.indexOf("%")===0){var c=void 0;switch(u){case"%p":c=r;break;case"%":case"%r":default:c=i}var d=Co(c);return d[t]/100*n}else if(u==="vh"||u==="vw"){var m=void 0;return u==="vh"?m=Math.max(document.documentElement.clientHeight,window.innerHeight||0):m=Math.max(document.documentElement.clientWidth,window.innerWidth||0),m/100*n}else return n}function Ak(e,t,r,i){var a=[0,0],n=["right","left"].indexOf(i)!==-1,u=e.split(/(\+|\-)/).map(function(M){return M.trim()}),c=u.indexOf(_u(u,function(M){return M.search(/,|\s/)!==-1}));u[c]&&u[c].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var d=/\s*,\s*|\s+/,m=c!==-1?[u.slice(0,c).concat([u[c].split(d)[0]]),[u[c].split(d)[1]].concat(u.slice(c+1))]:[u];return m=m.map(function(M,S){var R=(S===1?!n:n)?"height":"width",C=!1;return M.reduce(function(P,k){return P[P.length-1]===""&&["+","-"].indexOf(k)!==-1?(P[P.length-1]=k,C=!0,P):C?(P[P.length-1]+=k,C=!1,P):P.concat(k)},[]).map(function(P){return Rk(P,R,t,r)})}),m.forEach(function(M,S){M.forEach(function(R,C){lg(R)&&(a[S]+=R*(M[C-1]==="-"?-1:1))})}),a}function Tk(e,t){var r=t.offset,i=e.placement,a=e.offsets,n=a.popper,u=a.reference,c=i.split("-")[0],d=void 0;return lg(+r)?d=[+r,0]:d=Ak(r,n,u,c),c==="left"?(n.top+=d[0],n.left-=d[1]):c==="right"?(n.top+=d[0],n.left+=d[1]):c==="top"?(n.left+=d[0],n.top-=d[1]):c==="bottom"&&(n.left+=d[0],n.top+=d[1]),e.popper=n,e}function Ok(e,t){var r=t.boundariesElement||gs(e.instance.popper);e.instance.reference===r&&(r=gs(r));var i=ug("transform"),a=e.instance.popper.style,n=a.top,u=a.left,c=a[i];a.top="",a.left="",a[i]="";var d=fg(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);a.top=n,a.left=u,a[i]=c,t.boundaries=d;var m=t.priority,M=e.offsets.popper,S={primary:function(C){var P=M[C];return M[C]<d[C]&&!t.escapeWithReference&&(P=Math.max(M[C],d[C])),ys({},C,P)},secondary:function(C){var P=C==="right"?"left":"top",k=M[P];return M[C]>d[C]&&!t.escapeWithReference&&(k=Math.min(M[P],d[C]-(C==="right"?M.width:M.height))),ys({},P,k)}};return m.forEach(function(R){var C=["left","top"].indexOf(R)!==-1?"primary":"secondary";M=ci({},M,S[C](R))}),e.offsets.popper=M,e}function Ik(e){var t=e.placement,r=t.split("-")[0],i=t.split("-")[1];if(i){var a=e.offsets,n=a.reference,u=a.popper,c=["bottom","top"].indexOf(r)!==-1,d=c?"left":"top",m=c?"width":"height",M={start:ys({},d,n[d]),end:ys({},d,n[d]+n[m]-u[m])};e.offsets.popper=ci({},u,M[i])}return e}function Pk(e){if(!K6(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=_u(e.instance.modifiers,function(i){return i.name==="preventOverflow"}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function Ck(e){var t=e.placement,r=t.split("-")[0],i=e.offsets,a=i.popper,n=i.reference,u=["left","right"].indexOf(r)!==-1,c=["top","left"].indexOf(r)===-1;return a[u?"left":"top"]=n[r]-(c?a[u?"width":"height"]:0),e.placement=Xl(t),e.offsets.popper=Co(a),e}var Bk={shift:{order:100,enabled:!0,fn:Ik},offset:{order:200,enabled:!0,fn:Tk,offset:0},preventOverflow:{order:300,enabled:!0,fn:Ok,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:Ek},arrow:{order:500,enabled:!0,fn:Mk,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:xk,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:Ck},hide:{order:800,enabled:!0,fn:Pk},computeStyle:{order:850,enabled:!0,fn:_k,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:mk,onLoad:yk,gpuAcceleration:void 0}},Lk={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Bk},Vh=function(){function e(t,r){var i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ok(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=rk(this.update.bind(this)),this.options=ci({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(ci({},e.Defaults.modifiers,a.modifiers)).forEach(function(u){i.options.modifiers[u]=ci({},e.Defaults.modifiers[u]||{},a.modifiers?a.modifiers[u]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(u){return ci({name:u},i.options.modifiers[u])}).sort(function(u,c){return u.order-c.order}),this.modifiers.forEach(function(u){u.enabled&&C6(u.onLoad)&&u.onLoad(i.reference,i.popper,i.options,u,i.state)}),this.update();var n=this.options.eventsEnabled;n&&this.enableEventListeners(),this.state.eventsEnabled=n}return ak(e,[{key:"update",value:function(){return lk.call(this)}},{key:"destroy",value:function(){return hk.call(this)}},{key:"enableEventListeners",value:function(){return dk.call(this)}},{key:"disableEventListeners",value:function(){return vk.call(this)}}]),e}();Vh.Utils=(typeof window<"u"?window:ho).PopperUtils;Vh.placements=V6;Vh.Defaults=Lk;const Nk=Object.freeze(Object.defineProperty({__proto__:null,default:Vh},Symbol.toStringTag,{value:"Module"})),FV=tv(Nk);const kk=Bs({name:"my-table",emits:["return-checked-rows","do-search","is-finished","get-now-page","row-clicked","row-toggled"],props:{isLoading:{type:Boolean,require:!0},isReSearch:{type:Boolean,require:!0},hasCheckbox:{type:Boolean,default:!1},checkedReturnType:{type:String,default:"key"},title:{type:String,default:""},isFixedFirstColumn:{type:Boolean,default:!1},columns:{type:Array,default:()=>[]},rows:{type:Array,default:()=>[]},rowClasses:{type:[Array,Function],default:()=>[]},pageSize:{type:Number,default:10},total:{type:Number,default:100},page:{type:Number,default:1},sortable:{type:Object,default:()=>({order:"id",sort:"asc"})},messages:{type:Object,default:()=>({pagingInfo:"Showing {0}-{1} of {2}",pageSizeChangeLabel:"Row count:",gotoPageLabel:"Go to page:",noDataAvailable:"No data"})},isStaticMode:{type:Boolean,default:!1},isSlotMode:{type:Boolean,default:!1},isHidePaging:{type:Boolean,default:!1},pageOptions:{type:Array,default:()=>[{value:10,text:10},{value:25,text:25},{value:50,text:50}]},groupingKey:{type:String,default:""},hasGroupToggle:{type:Boolean,default:!1},groupingDisplay:{type:Function,default:null},maxHeight:{default:"auto"},startCollapsed:{type:Boolean,default:!1},isKeepCollapsed:{type:Boolean,default:!1}},setup(e,{emit:t,slots:r}){let i=mr(null),a=e.pageOptions.length>0?mr(e.pageOptions[0].value):mr(e.pageSize);e.pageOptions.length>0&&e.pageOptions.forEach(oe=>{Object.prototype.hasOwnProperty.call(oe,"value")&&Object.prototype.hasOwnProperty.call(oe,"text")&&e.pageSize==oe.value&&(a.value=oe.value)});const n=No({isSlotMode:e.isSlotMode,isCheckAll:!1,isHidePaging:e.isHidePaging,keyColumn:Qt(()=>{let oe="";return Object.assign(e.columns).forEach(_=>{_.isKey&&(oe=_.field)}),oe}),page:e.page,pageSize:a.value,maxPage:Qt(()=>{if(e.total<=0)return 0;let oe=Math.floor(e.total/n.pageSize);return e.total%n.pageSize>0&&oe++,oe}),offset:Qt(()=>(n.page-1)*n.pageSize+1),limit:Qt(()=>{let oe=n.page*n.pageSize;return e.total>=oe?oe:e.total}),paging:Qt(()=>{let oe=n.page-2<=0?1:n.page-2;n.maxPage-n.page<=2&&(oe=n.maxPage-4),oe=oe<=0?1:oe;let _=[];for(let o=oe;o<=n.maxPage;o++)_.length<5&&_.push(o);return _}),order:e.sortable.order,sort:e.sortable.sort,pageOptions:e.pageOptions}),u=mr([]),c=Qt(()=>{let oe=e.rows;var _=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});let o=n.sort==="desc"?-1:1;oe.sort(function(l,h){return _.compare(l[n.order],h[n.order])*o});let f=null;if(e.groupingKey){let l={};oe.forEach(h=>{l[h[e.groupingKey]]||(l[h[e.groupingKey]]=[]),l[h[e.groupingKey]].push(h)}),f={};for(let h=n.offset-1;h<n.limit;h++)f[oe[h][e.groupingKey]]=l[oe[h][e.groupingKey]]}else{f=[];for(let l=n.offset-1;l<n.limit;l++)f.push(oe[l])}return uo(function(){B()}),f}),d=mr([]);Rv(()=>{d.value=[]}),lr(()=>n.isCheckAll,oe=>{if(e.hasCheckbox){if(u.value=[],oe){let _=e.isStaticMode?e.rows.slice(n.offset-1,n.limit):e.rows;e.checkedReturnType=="row"?u.value=_:_.forEach(o=>{u.value.push(o[n.keyColumn])})}d.value.forEach(_=>{_&&(_.checked=oe)}),t("return-checked-rows",u.value)}}),lr(()=>e.hasCheckbox,oe=>{oe||(n.isCheckAll=!1)});const m=(oe,_)=>{_.stopPropagation();let o=oe[n.keyColumn];if(e.checkedReturnType=="row"&&(o=oe),_.target.checked)u.value.push(o);else{const f=u.value.indexOf(o);f>=0&&u.value.splice(f,1)}u.value.length==e.rows.length?n.isCheckAll=!0:t("return-checked-rows",u.value)},M=()=>{u.value=[],d.value.forEach(oe=>{oe&&oe.checked&&(oe.checked=!1)}),t("return-checked-rows",u.value)},S=oe=>{let _="asc";oe==n.order&&n.sort=="asc"&&(_="desc");let o=(n.page-1)*n.pageSize,f=n.pageSize;n.order=oe,n.sort=_,t("do-search",o,f,oe,_),n.isCheckAll?n.isCheckAll=!1:e.hasCheckbox&&M()},R=(oe,_)=>{n.isCheckAll=!1,e.hasCheckbox&&(u.value=[]);let o=n.order,f=n.sort,l=(oe-1)*n.pageSize,h=n.pageSize;(!e.isReSearch||oe>1||oe==_)&&t("do-search",l,h,o,f)};lr(()=>n.page,R),lr(()=>e.page,oe=>{oe<=1?(n.page=1,t("get-now-page",n.page)):oe>=n.maxPage?(n.page=n.maxPage,t("get-now-page",n.page)):n.page=oe}),lr(()=>n.pageSize,()=>{n.page===1?R(n.page,n.page):(n.page=1,n.isCheckAll=!1)}),lr(()=>e.pageSize,oe=>{n.pageSize=oe});const P=()=>{if(n.page==1)return!1;n.page--},k=oe=>{n.page=oe},L=()=>{if(n.page>=n.maxPage)return!1;n.page++};lr(()=>e.rows,()=>{(e.isReSearch||e.isStaticMode)&&(n.page=1),uo(function(){e.isStaticMode||B()})});const I=(oe,..._)=>oe.replace(/{(\d+)}/g,function(o,f){return typeof _[f]<"u"?_[f]:o}),B=()=>{if(i.value){let oe=i.value.getElementsByClassName("is-rows-el");t("is-finished",oe)}t("get-now-page",n.page)},H=mr({}),F=mr({}),W=mr({}),Y=Qt(()=>{let oe={};return e.rows.forEach(_=>{oe[_[e.groupingKey]]||(oe[_[e.groupingKey]]=[]),oe[_[e.groupingKey]].push(_)}),uo(function(){if(e.startCollapsed||e.isKeepCollapsed){for(const[_,o]of Object.entries(H.value))if(o){let f=!e.startCollapsed;e.isKeepCollapsed&&W.value[_]!==void 0&&(f=!W.value[_]),(f&&o.parentElement.classList.contains("rotated-90")||!f&&!o.parentElement.classList.contains("rotated-90"))&&o.parentElement.classList.toggle("rotated-90"),f||F.value[_].forEach(l=>{l&&l.classList.add("hidden")})}}B()}),oe}),ie=oe=>{let _=H.value[oe];if(_){_.parentElement.classList.toggle("rotated-90");const o=_.parentElement.classList.contains("rotated-90");F.value[oe].forEach(f=>{f&&(o?f.classList.add("hidden"):f.classList.remove("hidden"))}),W.value[oe]=o,t("row-toggled",Y.value[oe],o)}},J=oe=>{oe.target.classList.add("hover")},V=oe=>{oe.target.classList.remove("hover")};return Ns(()=>{uo(()=>{e.rows.length>0&&B()})}),{slots:r,localTable:i,localRows:c,setting:n,rowCheckbox:d,checked:m,clearChecked:M,doSort:S,prevPage:P,movePage:k,nextPage:L,stringFormat:I,toggleButtonRefs:H,groupingRowsRefs:F,groupingRows:Y,toggleGroup:ie,addHoverClassToTr:J,removeHoverClassFromTr:V}}}),Gn=e=>(M2("data-v-30c302e9"),e=e(),S2(),e),$k={class:"vtl vtl-card"},Dk={key:0,class:"vtl-card-title"},Fk={class:"vtl-card-body"},jk={class:"vtl-row"},Uk={key:0,class:"vtl-loading-mask"},Hk=Gn(()=>Je("div",{class:"vtl-loading-content"},[Je("span",{style:{color:"white"}},"Loading...")],-1)),qk=[Hk],Wk={class:"vtl-thead"},Kk={class:"vtl-thead-tr"},Vk={key:0,class:"vtl-thead-th vtl-checkbox-th"},zk=["onClick"],Gk=["set"],Yk={key:0,class:"vtl-tbody-tr vtl-group-tr"},Zk=["colspan"],Xk={class:"flex"},Jk={key:0,class:"animation"},Qk=["onClick"],e$=["innerHTML"],t$=["name","onClick"],r$={key:0,class:"vtl-tbody-td vtl-checkbox-td"},i$=["value","onClick"],n$=["innerHTML"],o$={key:1},a$={key:0},s$={key:1},f$=["set"],u$={key:0,class:"vtl-tbody-tr vtl-group-tr"},l$=["colspan"],h$={class:"flex"},c$={key:0,class:"animation"},d$=["onClick"],p$=["innerHTML"],v$=["name","onClick"],g$={key:0,class:"vtl-tbody-td vtl-checkbox-td"},m$=["value","onClick"],y$=["innerHTML"],b$={key:1},w$={key:0},_$={key:1},M$={key:0,class:"vtl-paging vtl-row"},S$={class:"vtl-paging-info col-sm-12 col-md-4"},x$={role:"status","aria-live":"polite"},E$={class:"vtl-paging-change-div col-sm-12 col-md-4"},R$={class:"vtl-paging-count-label"},A$=["value"],T$={class:"vtl-paging-page-label"},O$=["value"],I$={class:"vtl-paging-pagination-div col-sm-12 col-md-4"},P$={class:"dataTables_paginate"},C$={class:"vtl-paging-pagination-ul vtl-pagination"},B$=Gn(()=>Je("span",{"aria-hidden":"true"},"«",-1)),L$=Gn(()=>Je("span",{class:"sr-only"},"First",-1)),N$=[B$,L$],k$=Gn(()=>Je("span",{"aria-hidden":"true"},"<",-1)),$$=Gn(()=>Je("span",{class:"sr-only"},"Prev",-1)),D$=[k$,$$],F$=["onClick"],j$=Gn(()=>Je("span",{"aria-hidden":"true"},">",-1)),U$=Gn(()=>Je("span",{class:"sr-only"},"Next",-1)),H$=[j$,U$],q$=Gn(()=>Je("span",{"aria-hidden":"true"},"»",-1)),W$=Gn(()=>Je("span",{class:"sr-only"},"Last",-1)),K$=[q$,W$],V$={key:1,class:"vtl-row"},z$={class:"vtl-empty-msg col-sm-12 text-center"};function G$(e,t,r,i,a,n){return tt(),ft("div",$k,[e.title?(tt(),ft("div",Dk,si(e.title),1)):fi("v-if",!0),Je("div",Fk,[Je("div",jk,[Je("div",{class:vr(["col-sm-12",{"fixed-first-column":e.isFixedFirstColumn,"fixed-first-second-column":e.isFixedFirstColumn&&e.hasCheckbox}])},[e.isLoading?(tt(),ft("div",Uk,qk)):fi("v-if",!0),Je("table",{class:"vtl-table vtl-table-hover vtl-table-bordered vtl-table-responsive vtl-table-responsive-sm",ref:"localTable",style:Pn("max-height: "+e.maxHeight+"px;")},[Je("thead",Wk,[Je("tr",Kk,[e.hasCheckbox?(tt(),ft("th",Vk,[Je("div",null,[ol(Je("input",{type:"checkbox",class:"vtl-thead-checkbox","onUpdate:modelValue":t[0]||(t[0]=u=>e.setting.isCheckAll=u)},null,512),[[Ah,e.setting.isCheckAll]])])])):fi("v-if",!0),(tt(!0),ft(Lt,null,Ii(e.columns,(u,c)=>(tt(),ft("th",{class:vr(["vtl-thead-th",u.headerClasses]),key:c,style:Pn(Object.assign({width:u.width?u.width:"auto"},u.headerStyles))},[Je("div",{class:vr(["vtl-thead-column",{"vtl-sortable":u.sortable,"vtl-both":u.sortable,"vtl-asc":e.setting.order===u.field&&e.setting.sort==="asc","vtl-desc":e.setting.order===u.field&&e.setting.sort==="desc"}]),onClick:Mn(d=>u.sortable?e.doSort(u.field):!1,["prevent"])},si(u.label),11,zk)],6))),128))])]),e.rows.length>0?(tt(),ft(Lt,{key:0},[e.isStaticMode?(tt(),ft("tbody",{key:0,class:"vtl-tbody",set:e.templateRows=e.groupingKey==""?[e.localRows]:e.localRows},[(tt(!0),ft(Lt,null,Ii(e.templateRows,(u,c)=>(tt(),ft(Lt,{key:c},[e.groupingKey!=""?(tt(),ft("tr",Yk,[Je("td",{colspan:e.hasCheckbox?e.columns.length+1:e.columns.length,class:"vtl-tbody-td vtl-group-td"},[Je("div",Xk,[e.hasGroupToggle?(tt(),ft("div",Jk,[Je("a",{ref_for:!0,ref:d=>e.toggleButtonRefs[c]=d,class:"cursor-pointer",onClick:Mn(d=>e.toggleGroup(c),["prevent"])},"▼",8,Qk)])):fi("v-if",!0),Je("div",{class:"ml-2",innerHTML:e.groupingDisplay?e.groupingDisplay(c):c},null,8,e$)])],8,Zk)])):fi("v-if",!0),(tt(!0),ft(Lt,null,Ii(u,(d,m)=>(tt(),ft("tr",{key:d[e.setting.keyColumn]?d[e.setting.keyColumn]:m,ref_for:!0,ref:M=>{e.groupingRowsRefs[c]||(e.groupingRowsRefs[c]=[]),e.groupingRowsRefs[c][m]=M},name:"vtl-group-"+c,class:vr(["vtl-tbody-tr",typeof e.rowClasses=="function"?e.rowClasses(d):e.rowClasses]),onMouseenter:t[1]||(t[1]=(...M)=>e.addHoverClassToTr&&e.addHoverClassToTr(...M)),onMouseleave:t[2]||(t[2]=(...M)=>e.removeHoverClassFromTr&&e.removeHoverClassFromTr(...M)),onClick:M=>e.$emit("row-clicked",d)},[e.hasCheckbox?(tt(),ft("td",r$,[Je("div",null,[Je("input",{type:"checkbox",class:"vtl-tbody-checkbox",ref_for:!0,ref:M=>{e.rowCheckbox.push(M)},value:d[e.setting.keyColumn],onClick:M=>e.checked(d,M)},null,8,i$)])])):fi("v-if",!0),(tt(!0),ft(Lt,null,Ii(e.columns,(M,S)=>(tt(),ft("td",{key:S,class:vr(["vtl-tbody-td",M.columnClasses]),style:Pn(M.columnStyles)},[M.display?(tt(),ft("div",{key:0,innerHTML:M.display(d)},null,8,n$)):(tt(),ft("div",o$,[e.setting.isSlotMode&&e.slots[M.field]?(tt(),ft("div",a$,[U0(e.$slots,M.field,{value:d},void 0,!0)])):(tt(),ft("span",s$,si(d[M.field]),1))]))],6))),128))],42,t$))),128))],64))),128))],8,Gk)):(tt(),ft("tbody",{key:1,set:e.templateRows=e.groupingKey==""?[e.rows]:e.groupingRows},[(tt(!0),ft(Lt,null,Ii(e.templateRows,(u,c)=>(tt(),ft(Lt,{key:c},[e.groupingKey!=""?(tt(),ft("tr",u$,[Je("td",{colspan:e.hasCheckbox?e.columns.length+1:e.columns.length,class:"vtl-tbody-td vtl-group-td"},[Je("div",h$,[e.hasGroupToggle?(tt(),ft("div",c$,[Je("a",{ref_for:!0,ref:d=>e.toggleButtonRefs[c]=d,class:"cursor-pointer",onClick:Mn(d=>e.toggleGroup(c),["prevent"])},"▼",8,d$)])):fi("v-if",!0),Je("div",{class:"ml-2",innerHTML:e.groupingDisplay?e.groupingDisplay(c):c},null,8,p$)])],8,l$)])):fi("v-if",!0),(tt(!0),ft(Lt,null,Ii(u,(d,m)=>(tt(),ft("tr",{ref_for:!0,ref:M=>{e.groupingRowsRefs[c]||(e.groupingRowsRefs[c]=[]),e.groupingRowsRefs[c][m]=M},name:"vtl-group-"+c,key:d[e.setting.keyColumn]?d[e.setting.keyColumn]:m,class:vr(["vtl-tbody-tr",typeof e.rowClasses=="function"?e.rowClasses(d):e.rowClasses]),onMouseenter:t[3]||(t[3]=(...M)=>e.addHoverClassToTr&&e.addHoverClassToTr(...M)),onMouseleave:t[4]||(t[4]=(...M)=>e.removeHoverClassFromTr&&e.removeHoverClassFromTr(...M)),onClick:M=>e.$emit("row-clicked",d)},[e.hasCheckbox?(tt(),ft("td",g$,[Je("div",null,[Je("input",{type:"checkbox",class:"vtl-tbody-checkbox",ref_for:!0,ref:M=>{e.rowCheckbox.push(M)},value:d[e.setting.keyColumn],onClick:M=>e.checked(d,M)},null,8,m$)])])):fi("v-if",!0),(tt(!0),ft(Lt,null,Ii(e.columns,(M,S)=>(tt(),ft("td",{key:S,class:vr(["vtl-tbody-td",M.columnClasses]),style:Pn(M.columnStyles)},[M.display?(tt(),ft("div",{key:0,innerHTML:M.display(d)},null,8,y$)):(tt(),ft("div",b$,[e.setting.isSlotMode&&e.slots[M.field]?(tt(),ft("div",w$,[U0(e.$slots,M.field,{value:d},void 0,!0)])):(tt(),ft("span",_$,si(d[M.field]),1))]))],6))),128))],42,v$))),128))],64))),128))],8,f$))],64)):fi("v-if",!0)],4)],2)]),e.rows.length>0?(tt(),ft("div",M$,[e.setting.isHidePaging?fi("v-if",!0):(tt(),ft(Lt,{key:0},[Je("div",S$,[Je("div",x$,si(e.stringFormat(e.messages.pagingInfo,e.setting.offset,e.setting.limit,e.total)),1)]),Je("div",E$,[Je("span",R$,si(e.messages.pageSizeChangeLabel),1),ol(Je("select",{class:"vtl-paging-count-dropdown","onUpdate:modelValue":t[5]||(t[5]=u=>e.setting.pageSize=u)},[(tt(!0),ft(Lt,null,Ii(e.pageOptions,u=>(tt(),ft("option",{value:u.value,key:u.value},si(u.text),9,A$))),128))],512),[[Fl,e.setting.pageSize]]),Je("span",T$,si(e.messages.gotoPageLabel),1),ol(Je("select",{class:"vtl-paging-page-dropdown","onUpdate:modelValue":t[6]||(t[6]=u=>e.setting.page=u)},[(tt(!0),ft(Lt,null,Ii(e.setting.maxPage,u=>(tt(),ft("option",{key:u,value:parseInt(u)},si(u),9,O$))),128))],512),[[Fl,e.setting.page]])]),Je("div",I$,[Je("div",P$,[Je("ul",C$,[Je("li",{class:vr(["vtl-paging-pagination-page-li vtl-paging-pagination-page-li-first page-item",{disabled:e.setting.page<=1}])},[Je("a",{class:"vtl-paging-pagination-page-link vtl-paging-pagination-page-link-first page-link cursor-pointer","aria-label":"Previous",onClick:t[7]||(t[7]=Mn(u=>e.setting.page=1,["prevent"]))},N$)],2),Je("li",{class:vr(["vtl-paging-pagination-page-li vtl-paging-pagination-page-li-prev page-item",{disabled:e.setting.page<=1}])},[Je("a",{class:"vtl-paging-pagination-page-link vtl-paging-pagination-page-link-prev page-link cursor-pointer","aria-label":"Previous",onClick:t[8]||(t[8]=Mn((...u)=>e.prevPage&&e.prevPage(...u),["prevent"]))},D$)],2),(tt(!0),ft(Lt,null,Ii(e.setting.paging,u=>(tt(),ft("li",{class:vr(["vtl-paging-pagination-page-li vtl-paging-pagination-page-li-number page-item",{disabled:e.setting.page===u}]),key:u},[Je("a",{class:"vtl-paging-pagination-page-link vtl-paging-pagination-page-link-number page-link cursor-pointer",onClick:Mn(c=>e.movePage(u),["prevent"])},si(u),9,F$)],2))),128)),Je("li",{class:vr(["vtl-paging-pagination-page-li vtl-paging-pagination-page-li-next page-item",{disabled:e.setting.page>=e.setting.maxPage}])},[Je("a",{class:"vtl-paging-pagination-page-link vtl-paging-pagination-page-link-next page-link cursor-pointer","aria-label":"Next",onClick:t[9]||(t[9]=Mn((...u)=>e.nextPage&&e.nextPage(...u),["prevent"]))},H$)],2),Je("li",{class:vr(["vtl-paging-pagination-page-li vtl-paging-pagination-page-li-last page-item",{disabled:e.setting.page>=e.setting.maxPage}])},[Je("a",{class:"vtl-paging-pagination-page-link vtl-paging-pagination-page-link-last page-link cursor-pointer","aria-label":"Next",onClick:t[10]||(t[10]=Mn(u=>e.setting.page=e.setting.maxPage,["prevent"]))},K$)],2)])])])],64))])):(tt(),ft("div",V$,[Je("div",z$,si(e.messages.noDataAvailable),1)]))])])}const jV=GR(kk,[["render",G$],["__scopeId","data-v-30c302e9"],["__file","/opt/openWB-dev/openwb-ui-settings/node_modules/vue3-table-lite/src/components/TableLite.vue"]]);/*!
- * @kurkle/color v0.3.2
- * https://github.com/kurkle/color#readme
- * (c) 2023 Jukka Kurkela
- * Released under the MIT License
- */function Mu(e){return e+.5|0}const lo=(e,t,r)=>Math.max(Math.min(e,r),t);function Sf(e){return lo(Mu(e*2.55),0,255)}function bo(e){return lo(Mu(e*255),0,255)}function An(e){return lo(Mu(e/2.55)/100,0,1)}function Jy(e){return lo(Mu(e*100),0,100)}const oi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},kp=[..."0123456789ABCDEF"],Y$=e=>kp[e&15],Z$=e=>kp[(e&240)>>4]+kp[e&15],Yu=e=>(e&240)>>4===(e&15),X$=e=>Yu(e.r)&&Yu(e.g)&&Yu(e.b)&&Yu(e.a);function J$(e){var t=e.length,r;return e[0]==="#"&&(t===4||t===5?r={r:255&oi[e[1]]*17,g:255&oi[e[2]]*17,b:255&oi[e[3]]*17,a:t===5?oi[e[4]]*17:255}:(t===7||t===9)&&(r={r:oi[e[1]]<<4|oi[e[2]],g:oi[e[3]]<<4|oi[e[4]],b:oi[e[5]]<<4|oi[e[6]],a:t===9?oi[e[7]]<<4|oi[e[8]]:255})),r}const Q$=(e,t)=>e<255?t(e):"";function eD(e){var t=X$(e)?Y$:Z$;return e?"#"+t(e.r)+t(e.g)+t(e.b)+Q$(e.a,t):void 0}const tD=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function z6(e,t,r){const i=t*Math.min(r,1-r),a=(n,u=(n+e/30)%12)=>r-i*Math.max(Math.min(u-3,9-u,1),-1);return[a(0),a(8),a(4)]}function rD(e,t,r){const i=(a,n=(a+e/60)%6)=>r-r*t*Math.max(Math.min(n,4-n,1),0);return[i(5),i(3),i(1)]}function iD(e,t,r){const i=z6(e,1,.5);let a;for(t+r>1&&(a=1/(t+r),t*=a,r*=a),a=0;a<3;a++)i[a]*=1-t-r,i[a]+=t;return i}function nD(e,t,r,i,a){return e===a?(t-r)/i+(t<r?6:0):t===a?(r-e)/i+2:(e-t)/i+4}function hg(e){const r=e.r/255,i=e.g/255,a=e.b/255,n=Math.max(r,i,a),u=Math.min(r,i,a),c=(n+u)/2;let d,m,M;return n!==u&&(M=n-u,m=c>.5?M/(2-n-u):M/(n+u),d=nD(r,i,a,M,n),d=d*60+.5),[d|0,m||0,c]}function cg(e,t,r,i){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,r,i)).map(bo)}function dg(e,t,r){return cg(z6,e,t,r)}function oD(e,t,r){return cg(iD,e,t,r)}function aD(e,t,r){return cg(rD,e,t,r)}function G6(e){return(e%360+360)%360}function sD(e){const t=tD.exec(e);let r=255,i;if(!t)return;t[5]!==i&&(r=t[6]?Sf(+t[5]):bo(+t[5]));const a=G6(+t[2]),n=+t[3]/100,u=+t[4]/100;return t[1]==="hwb"?i=oD(a,n,u):t[1]==="hsv"?i=aD(a,n,u):i=dg(a,n,u),{r:i[0],g:i[1],b:i[2],a:r}}function fD(e,t){var r=hg(e);r[0]=G6(r[0]+t),r=dg(r),e.r=r[0],e.g=r[1],e.b=r[2]}function uD(e){if(!e)return;const t=hg(e),r=t[0],i=Jy(t[1]),a=Jy(t[2]);return e.a<255?`hsla(${r}, ${i}%, ${a}%, ${An(e.a)})`:`hsl(${r}, ${i}%, ${a}%)`}const Qy={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},eb={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lD(){const e={},t=Object.keys(eb),r=Object.keys(Qy);let i,a,n,u,c;for(i=0;i<t.length;i++){for(u=c=t[i],a=0;a<r.length;a++)n=r[a],c=c.replace(n,Qy[n]);n=parseInt(eb[u],16),e[c]=[n>>16&255,n>>8&255,n&255]}return e}let Zu;function hD(e){Zu||(Zu=lD(),Zu.transparent=[0,0,0,0]);const t=Zu[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const cD=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function dD(e){const t=cD.exec(e);let r=255,i,a,n;if(t){if(t[7]!==i){const u=+t[7];r=t[8]?Sf(u):lo(u*255,0,255)}return i=+t[1],a=+t[3],n=+t[5],i=255&(t[2]?Sf(i):lo(i,0,255)),a=255&(t[4]?Sf(a):lo(a,0,255)),n=255&(t[6]?Sf(n):lo(n,0,255)),{r:i,g:a,b:n,a:r}}}function pD(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${An(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Nd=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Da=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function vD(e,t,r){const i=Da(An(e.r)),a=Da(An(e.g)),n=Da(An(e.b));return{r:bo(Nd(i+r*(Da(An(t.r))-i))),g:bo(Nd(a+r*(Da(An(t.g))-a))),b:bo(Nd(n+r*(Da(An(t.b))-n))),a:e.a+r*(t.a-e.a)}}function Xu(e,t,r){if(e){let i=hg(e);i[t]=Math.max(0,Math.min(i[t]+i[t]*r,t===0?360:1)),i=dg(i),e.r=i[0],e.g=i[1],e.b=i[2]}}function Y6(e,t){return e&&Object.assign(t||{},e)}function tb(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=bo(e[3]))):(t=Y6(e,{r:0,g:0,b:0,a:1}),t.a=bo(t.a)),t}function gD(e){return e.charAt(0)==="r"?dD(e):sD(e)}class $p{constructor(t){if(t instanceof $p)return t;const r=typeof t;let i;r==="object"?i=tb(t):r==="string"&&(i=J$(t)||hD(t)||gD(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Y6(this._rgb);return t&&(t.a=An(t.a)),t}set rgb(t){this._rgb=tb(t)}rgbString(){return this._valid?pD(this._rgb):void 0}hexString(){return this._valid?eD(this._rgb):void 0}hslString(){return this._valid?uD(this._rgb):void 0}mix(t,r){if(t){const i=this.rgb,a=t.rgb;let n;const u=r===n?.5:r,c=2*u-1,d=i.a-a.a,m=((c*d===-1?c:(c+d)/(1+c*d))+1)/2;n=1-m,i.r=255&m*i.r+n*a.r+.5,i.g=255&m*i.g+n*a.g+.5,i.b=255&m*i.b+n*a.b+.5,i.a=u*i.a+(1-u)*a.a,this.rgb=i}return this}interpolate(t,r){return t&&(this._rgb=vD(this._rgb,t._rgb,r)),this}clone(){return new $p(this.rgb)}alpha(t){return this._rgb.a=bo(t),this}clearer(t){const r=this._rgb;return r.a*=1-t,this}greyscale(){const t=this._rgb,r=Mu(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=r,this}opaquer(t){const r=this._rgb;return r.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Xu(this._rgb,2,t),this}darken(t){return Xu(this._rgb,2,-t),this}saturate(t){return Xu(this._rgb,1,t),this}desaturate(t){return Xu(this._rgb,1,-t),this}rotate(t){return fD(this._rgb,t),this}}var Z6={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22
- * http://hammerjs.github.io/
- *
- * Copyright (c) 2016 Jorik Tangelder;
- * Licensed under the MIT license */(function(e){(function(t,r,i,a){var n=["","webkit","Moz","MS","ms","o"],u=r.createElement("div"),c="function",d=Math.round,m=Math.abs,M=Date.now;function S(re,he,me){return setTimeout(H(re,me),he)}function R(re,he,me){return Array.isArray(re)?(C(re,me[he],me),!0):!1}function C(re,he,me){var Be;if(re)if(re.forEach)re.forEach(he,me);else if(re.length!==a)for(Be=0;Be<re.length;)he.call(me,re[Be],Be,re),Be++;else for(Be in re)re.hasOwnProperty(Be)&&he.call(me,re[Be],Be,re)}function P(re,he,me){var Be="DEPRECATED METHOD: "+he+`
-`+me+` AT 
-`;return function(){var We=new Error("get-stack-trace"),Ge=We&&We.stack?We.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",bt=t.console&&(t.console.warn||t.console.log);return bt&&bt.call(t.console,Be,Ge),re.apply(this,arguments)}}var k;typeof Object.assign!="function"?k=function(he){if(he===a||he===null)throw new TypeError("Cannot convert undefined or null to object");for(var me=Object(he),Be=1;Be<arguments.length;Be++){var We=arguments[Be];if(We!==a&&We!==null)for(var Ge in We)We.hasOwnProperty(Ge)&&(me[Ge]=We[Ge])}return me}:k=Object.assign;var L=P(function(he,me,Be){for(var We=Object.keys(me),Ge=0;Ge<We.length;)(!Be||Be&&he[We[Ge]]===a)&&(he[We[Ge]]=me[We[Ge]]),Ge++;return he},"extend","Use `assign`."),I=P(function(he,me){return L(he,me,!0)},"merge","Use `assign`.");function B(re,he,me){var Be=he.prototype,We;We=re.prototype=Object.create(Be),We.constructor=re,We._super=Be,me&&k(We,me)}function H(re,he){return function(){return re.apply(he,arguments)}}function F(re,he){return typeof re==c?re.apply(he&&he[0]||a,he):re}function W(re,he){return re===a?he:re}function Y(re,he,me){C(oe(he),function(Be){re.addEventListener(Be,me,!1)})}function ie(re,he,me){C(oe(he),function(Be){re.removeEventListener(Be,me,!1)})}function J(re,he){for(;re;){if(re==he)return!0;re=re.parentNode}return!1}function V(re,he){return re.indexOf(he)>-1}function oe(re){return re.trim().split(/\s+/g)}function _(re,he,me){if(re.indexOf&&!me)return re.indexOf(he);for(var Be=0;Be<re.length;){if(me&&re[Be][me]==he||!me&&re[Be]===he)return Be;Be++}return-1}function o(re){return Array.prototype.slice.call(re,0)}function f(re,he,me){for(var Be=[],We=[],Ge=0;Ge<re.length;){var bt=he?re[Ge][he]:re[Ge];_(We,bt)<0&&Be.push(re[Ge]),We[Ge]=bt,Ge++}return me&&(he?Be=Be.sort(function(pr,Pr){return pr[he]>Pr[he]}):Be=Be.sort()),Be}function l(re,he){for(var me,Be,We=he[0].toUpperCase()+he.slice(1),Ge=0;Ge<n.length;){if(me=n[Ge],Be=me?me+We:he,Be in re)return Be;Ge++}return a}var h=1;function p(){return h++}function w(re){var he=re.ownerDocument||re;return he.defaultView||he.parentWindow||t}var x=/mobile|tablet|ip(ad|hone|od)|android/i,g="ontouchstart"in t,s=l(t,"PointerEvent")!==a,v=g&&x.test(navigator.userAgent),T="touch",$="pen",G="mouse",ee="kinect",A=25,E=1,U=2,K=4,Z=8,b=1,y=2,O=4,q=8,X=16,D=y|O,N=q|X,j=D|N,z=["x","y"],se=["clientX","clientY"];function te(re,he){var me=this;this.manager=re,this.callback=he,this.element=re.element,this.target=re.options.inputTarget,this.domHandler=function(Be){F(re.options.enable,[re])&&me.handler(Be)},this.init()}te.prototype={handler:function(){},init:function(){this.evEl&&Y(this.element,this.evEl,this.domHandler),this.evTarget&&Y(this.target,this.evTarget,this.domHandler),this.evWin&&Y(w(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&ie(this.element,this.evEl,this.domHandler),this.evTarget&&ie(this.target,this.evTarget,this.domHandler),this.evWin&&ie(w(this.element),this.evWin,this.domHandler)}};function ne(re){var he,me=re.options.inputClass;return me?he=me:s?he=xe:v?he=Oe:g?he=$e:he=qe,new he(re,Ee)}function Ee(re,he,me){var Be=me.pointers.length,We=me.changedPointers.length,Ge=he&E&&Be-We===0,bt=he&(K|Z)&&Be-We===0;me.isFirst=!!Ge,me.isFinal=!!bt,Ge&&(re.session={}),me.eventType=he,Q(re,me),re.emit("hammer.input",me),re.recognize(me),re.session.prevInput=me}function Q(re,he){var me=re.session,Be=he.pointers,We=Be.length;me.firstInput||(me.firstInput=ce(he)),We>1&&!me.firstMultiple?me.firstMultiple=ce(he):We===1&&(me.firstMultiple=!1);var Ge=me.firstInput,bt=me.firstMultiple,ar=bt?bt.center:Ge.center,pr=he.center=pe(Be);he.timeStamp=M(),he.deltaTime=he.timeStamp-Ge.timeStamp,he.angle=Te(ar,pr),he.distance=fe(ar,pr),ue(me,he),he.offsetDirection=ae(he.deltaX,he.deltaY);var Pr=de(he.deltaTime,he.deltaX,he.deltaY);he.overallVelocityX=Pr.x,he.overallVelocityY=Pr.y,he.overallVelocity=m(Pr.x)>m(Pr.y)?Pr.x:Pr.y,he.scale=bt?Me(bt.pointers,Be):1,he.rotation=bt?ve(bt.pointers,Be):0,he.maxPointers=me.prevInput?he.pointers.length>me.prevInput.maxPointers?he.pointers.length:me.prevInput.maxPointers:he.pointers.length,le(me,he);var Vi=re.element;J(he.srcEvent.target,Vi)&&(Vi=he.srcEvent.target),he.target=Vi}function ue(re,he){var me=he.center,Be=re.offsetDelta||{},We=re.prevDelta||{},Ge=re.prevInput||{};(he.eventType===E||Ge.eventType===K)&&(We=re.prevDelta={x:Ge.deltaX||0,y:Ge.deltaY||0},Be=re.offsetDelta={x:me.x,y:me.y}),he.deltaX=We.x+(me.x-Be.x),he.deltaY=We.y+(me.y-Be.y)}function le(re,he){var me=re.lastInterval||he,Be=he.timeStamp-me.timeStamp,We,Ge,bt,ar;if(he.eventType!=Z&&(Be>A||me.velocity===a)){var pr=he.deltaX-me.deltaX,Pr=he.deltaY-me.deltaY,Vi=de(Be,pr,Pr);Ge=Vi.x,bt=Vi.y,We=m(Vi.x)>m(Vi.y)?Vi.x:Vi.y,ar=ae(pr,Pr),re.lastInterval=he}else We=me.velocity,Ge=me.velocityX,bt=me.velocityY,ar=me.direction;he.velocity=We,he.velocityX=Ge,he.velocityY=bt,he.direction=ar}function ce(re){for(var he=[],me=0;me<re.pointers.length;)he[me]={clientX:d(re.pointers[me].clientX),clientY:d(re.pointers[me].clientY)},me++;return{timeStamp:M(),pointers:he,center:pe(he),deltaX:re.deltaX,deltaY:re.deltaY}}function pe(re){var he=re.length;if(he===1)return{x:d(re[0].clientX),y:d(re[0].clientY)};for(var me=0,Be=0,We=0;We<he;)me+=re[We].clientX,Be+=re[We].clientY,We++;return{x:d(me/he),y:d(Be/he)}}function de(re,he,me){return{x:he/re||0,y:me/re||0}}function ae(re,he){return re===he?b:m(re)>=m(he)?re<0?y:O:he<0?q:X}function fe(re,he,me){me||(me=z);var Be=he[me[0]]-re[me[0]],We=he[me[1]]-re[me[1]];return Math.sqrt(Be*Be+We*We)}function Te(re,he,me){me||(me=z);var Be=he[me[0]]-re[me[0]],We=he[me[1]]-re[me[1]];return Math.atan2(We,Be)*180/Math.PI}function ve(re,he){return Te(he[1],he[0],se)+Te(re[1],re[0],se)}function Me(re,he){return fe(he[0],he[1],se)/fe(re[0],re[1],se)}var Ke={mousedown:E,mousemove:U,mouseup:K},be="mousedown",Se="mousemove mouseup";function qe(){this.evEl=be,this.evWin=Se,this.pressed=!1,te.apply(this,arguments)}B(qe,te,{handler:function(he){var me=Ke[he.type];me&E&&he.button===0&&(this.pressed=!0),me&U&&he.which!==1&&(me=K),this.pressed&&(me&K&&(this.pressed=!1),this.callback(this.manager,me,{pointers:[he],changedPointers:[he],pointerType:G,srcEvent:he}))}});var ye={pointerdown:E,pointermove:U,pointerup:K,pointercancel:Z,pointerout:Z},_e={2:T,3:$,4:G,5:ee},Ve="pointerdown",ge="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(Ve="MSPointerDown",ge="MSPointerMove MSPointerUp MSPointerCancel");function xe(){this.evEl=Ve,this.evWin=ge,te.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}B(xe,te,{handler:function(he){var me=this.store,Be=!1,We=he.type.toLowerCase().replace("ms",""),Ge=ye[We],bt=_e[he.pointerType]||he.pointerType,ar=bt==T,pr=_(me,he.pointerId,"pointerId");Ge&E&&(he.button===0||ar)?pr<0&&(me.push(he),pr=me.length-1):Ge&(K|Z)&&(Be=!0),!(pr<0)&&(me[pr]=he,this.callback(this.manager,Ge,{pointers:me,changedPointers:[he],pointerType:bt,srcEvent:he}),Be&&me.splice(pr,1))}});var Xe={touchstart:E,touchmove:U,touchend:K,touchcancel:Z},Re="touchstart",Le="touchstart touchmove touchend touchcancel";function at(){this.evTarget=Re,this.evWin=Le,this.started=!1,te.apply(this,arguments)}B(at,te,{handler:function(he){var me=Xe[he.type];if(me===E&&(this.started=!0),!!this.started){var Be=Ae.call(this,he,me);me&(K|Z)&&Be[0].length-Be[1].length===0&&(this.started=!1),this.callback(this.manager,me,{pointers:Be[0],changedPointers:Be[1],pointerType:T,srcEvent:he})}}});function Ae(re,he){var me=o(re.touches),Be=o(re.changedTouches);return he&(K|Z)&&(me=f(me.concat(Be),"identifier",!0)),[me,Be]}var Ne={touchstart:E,touchmove:U,touchend:K,touchcancel:Z},rt="touchstart touchmove touchend touchcancel";function Oe(){this.evTarget=rt,this.targetIds={},te.apply(this,arguments)}B(Oe,te,{handler:function(he){var me=Ne[he.type],Be=De.call(this,he,me);Be&&this.callback(this.manager,me,{pointers:Be[0],changedPointers:Be[1],pointerType:T,srcEvent:he})}});function De(re,he){var me=o(re.touches),Be=this.targetIds;if(he&(E|U)&&me.length===1)return Be[me[0].identifier]=!0,[me,me];var We,Ge,bt=o(re.changedTouches),ar=[],pr=this.target;if(Ge=me.filter(function(Pr){return J(Pr.target,pr)}),he===E)for(We=0;We<Ge.length;)Be[Ge[We].identifier]=!0,We++;for(We=0;We<bt.length;)Be[bt[We].identifier]&&ar.push(bt[We]),he&(K|Z)&&delete Be[bt[We].identifier],We++;if(ar.length)return[f(Ge.concat(ar),"identifier",!0),ar]}var nt=2500,Ie=25;function $e(){te.apply(this,arguments);var re=H(this.handler,this);this.touch=new Oe(this.manager,re),this.mouse=new qe(this.manager,re),this.primaryTouch=null,this.lastTouches=[]}B($e,te,{handler:function(he,me,Be){var We=Be.pointerType==T,Ge=Be.pointerType==G;if(!(Ge&&Be.sourceCapabilities&&Be.sourceCapabilities.firesTouchEvents)){if(We)st.call(this,me,Be);else if(Ge&&je.call(this,Be))return;this.callback(he,me,Be)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function st(re,he){re&E?(this.primaryTouch=he.changedPointers[0].identifier,Pe.call(this,he)):re&(K|Z)&&Pe.call(this,he)}function Pe(re){var he=re.changedPointers[0];if(he.identifier===this.primaryTouch){var me={x:he.clientX,y:he.clientY};this.lastTouches.push(me);var Be=this.lastTouches,We=function(){var Ge=Be.indexOf(me);Ge>-1&&Be.splice(Ge,1)};setTimeout(We,nt)}}function je(re){for(var he=re.srcEvent.clientX,me=re.srcEvent.clientY,Be=0;Be<this.lastTouches.length;Be++){var We=this.lastTouches[Be],Ge=Math.abs(he-We.x),bt=Math.abs(me-We.y);if(Ge<=Ie&&bt<=Ie)return!0}return!1}var ht=l(u.style,"touchAction"),Ce=ht!==a,Fe="compute",it="auto",et="manipulation",xt="none",Tt="pan-x",Ot="pan-y",Ct=Ht();function kt(re,he){this.manager=re,this.set(he)}kt.prototype={set:function(re){re==Fe&&(re=this.compute()),Ce&&this.manager.element.style&&Ct[re]&&(this.manager.element.style[ht]=re),this.actions=re.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var re=[];return C(this.manager.recognizers,function(he){F(he.options.enable,[he])&&(re=re.concat(he.getTouchAction()))}),Ut(re.join(" "))},preventDefaults:function(re){var he=re.srcEvent,me=re.offsetDirection;if(this.manager.session.prevented){he.preventDefault();return}var Be=this.actions,We=V(Be,xt)&&!Ct[xt],Ge=V(Be,Ot)&&!Ct[Ot],bt=V(Be,Tt)&&!Ct[Tt];if(We){var ar=re.pointers.length===1,pr=re.distance<2,Pr=re.deltaTime<250;if(ar&&pr&&Pr)return}if(!(bt&&Ge)&&(We||Ge&&me&D||bt&&me&N))return this.preventSrc(he)},preventSrc:function(re){this.manager.session.prevented=!0,re.preventDefault()}};function Ut(re){if(V(re,xt))return xt;var he=V(re,Tt),me=V(re,Ot);return he&&me?xt:he||me?he?Tt:Ot:V(re,et)?et:it}function Ht(){if(!Ce)return!1;var re={},he=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(me){re[me]=he?t.CSS.supports("touch-action",me):!0}),re}var Bt=1,dt=2,At=4,_t=8,mt=_t,It=16,vt=32;function yt(re){this.options=k({},this.defaults,re||{}),this.id=p(),this.manager=null,this.options.enable=W(this.options.enable,!0),this.state=Bt,this.simultaneous={},this.requireFail=[]}yt.prototype={defaults:{},set:function(re){return k(this.options,re),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(re){if(R(re,"recognizeWith",this))return this;var he=this.simultaneous;return re=Zn(re,this),he[re.id]||(he[re.id]=re,re.recognizeWith(this)),this},dropRecognizeWith:function(re){return R(re,"dropRecognizeWith",this)?this:(re=Zn(re,this),delete this.simultaneous[re.id],this)},requireFailure:function(re){if(R(re,"requireFailure",this))return this;var he=this.requireFail;return re=Zn(re,this),_(he,re)===-1&&(he.push(re),re.requireFailure(this)),this},dropRequireFailure:function(re){if(R(re,"dropRequireFailure",this))return this;re=Zn(re,this);var he=_(this.requireFail,re);return he>-1&&this.requireFail.splice(he,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(re){return!!this.simultaneous[re.id]},emit:function(re){var he=this,me=this.state;function Be(We){he.manager.emit(We,re)}me<_t&&Be(he.options.event+Dt(me)),Be(he.options.event),re.additionalEvent&&Be(re.additionalEvent),me>=_t&&Be(he.options.event+Dt(me))},tryEmit:function(re){if(this.canEmit())return this.emit(re);this.state=vt},canEmit:function(){for(var re=0;re<this.requireFail.length;){if(!(this.requireFail[re].state&(vt|Bt)))return!1;re++}return!0},recognize:function(re){var he=k({},re);if(!F(this.options.enable,[this,he])){this.reset(),this.state=vt;return}this.state&(mt|It|vt)&&(this.state=Bt),this.state=this.process(he),this.state&(dt|At|_t|It)&&this.tryEmit(he)},process:function(re){},getTouchAction:function(){},reset:function(){}};function Dt(re){return re&It?"cancel":re&_t?"end":re&At?"move":re&dt?"start":""}function Ft(re){return re==X?"down":re==q?"up":re==y?"left":re==O?"right":""}function Zn(re,he){var me=he.manager;return me?me.get(re):re}function Ir(){yt.apply(this,arguments)}B(Ir,yt,{defaults:{pointers:1},attrTest:function(re){var he=this.options.pointers;return he===0||re.pointers.length===he},process:function(re){var he=this.state,me=re.eventType,Be=he&(dt|At),We=this.attrTest(re);return Be&&(me&Z||!We)?he|It:Be||We?me&K?he|_t:he&dt?he|At:dt:vt}});function ku(){Ir.apply(this,arguments),this.pX=null,this.pY=null}B(ku,Ir,{defaults:{event:"pan",threshold:10,pointers:1,direction:j},getTouchAction:function(){var re=this.options.direction,he=[];return re&D&&he.push(Ot),re&N&&he.push(Tt),he},directionTest:function(re){var he=this.options,me=!0,Be=re.distance,We=re.direction,Ge=re.deltaX,bt=re.deltaY;return We&he.direction||(he.direction&D?(We=Ge===0?b:Ge<0?y:O,me=Ge!=this.pX,Be=Math.abs(re.deltaX)):(We=bt===0?b:bt<0?q:X,me=bt!=this.pY,Be=Math.abs(re.deltaY))),re.direction=We,me&&Be>he.threshold&&We&he.direction},attrTest:function(re){return Ir.prototype.attrTest.call(this,re)&&(this.state&dt||!(this.state&dt)&&this.directionTest(re))},emit:function(re){this.pX=re.deltaX,this.pY=re.deltaY;var he=Ft(re.direction);he&&(re.additionalEvent=this.options.event+he),this._super.emit.call(this,re)}});function xc(){Ir.apply(this,arguments)}B(xc,Ir,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[xt]},attrTest:function(re){return this._super.attrTest.call(this,re)&&(Math.abs(re.scale-1)>this.options.threshold||this.state&dt)},emit:function(re){if(re.scale!==1){var he=re.scale<1?"in":"out";re.additionalEvent=this.options.event+he}this._super.emit.call(this,re)}});function Ec(){yt.apply(this,arguments),this._timer=null,this._input=null}B(Ec,yt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[it]},process:function(re){var he=this.options,me=re.pointers.length===he.pointers,Be=re.distance<he.threshold,We=re.deltaTime>he.time;if(this._input=re,!Be||!me||re.eventType&(K|Z)&&!We)this.reset();else if(re.eventType&E)this.reset(),this._timer=S(function(){this.state=mt,this.tryEmit()},he.time,this);else if(re.eventType&K)return mt;return vt},reset:function(){clearTimeout(this._timer)},emit:function(re){this.state===mt&&(re&&re.eventType&K?this.manager.emit(this.options.event+"up",re):(this._input.timeStamp=M(),this.manager.emit(this.options.event,this._input)))}});function Rc(){Ir.apply(this,arguments)}B(Rc,Ir,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[xt]},attrTest:function(re){return this._super.attrTest.call(this,re)&&(Math.abs(re.rotation)>this.options.threshold||this.state&dt)}});function Ac(){Ir.apply(this,arguments)}B(Ac,Ir,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:D|N,pointers:1},getTouchAction:function(){return ku.prototype.getTouchAction.call(this)},attrTest:function(re){var he=this.options.direction,me;return he&(D|N)?me=re.overallVelocity:he&D?me=re.overallVelocityX:he&N&&(me=re.overallVelocityY),this._super.attrTest.call(this,re)&&he&re.offsetDirection&&re.distance>this.options.threshold&&re.maxPointers==this.options.pointers&&m(me)>this.options.velocity&&re.eventType&K},emit:function(re){var he=Ft(re.offsetDirection);he&&this.manager.emit(this.options.event+he,re),this.manager.emit(this.options.event,re)}});function $u(){yt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}B($u,yt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[et]},process:function(re){var he=this.options,me=re.pointers.length===he.pointers,Be=re.distance<he.threshold,We=re.deltaTime<he.time;if(this.reset(),re.eventType&E&&this.count===0)return this.failTimeout();if(Be&&We&&me){if(re.eventType!=K)return this.failTimeout();var Ge=this.pTime?re.timeStamp-this.pTime<he.interval:!0,bt=!this.pCenter||fe(this.pCenter,re.center)<he.posThreshold;this.pTime=re.timeStamp,this.pCenter=re.center,!bt||!Ge?this.count=1:this.count+=1,this._input=re;var ar=this.count%he.taps;if(ar===0)return this.hasRequireFailures()?(this._timer=S(function(){this.state=mt,this.tryEmit()},he.interval,this),dt):mt}return vt},failTimeout:function(){return this._timer=S(function(){this.state=vt},this.options.interval,this),vt},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==mt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function pn(re,he){return he=he||{},he.recognizers=W(he.recognizers,pn.defaults.preset),new Tc(re,he)}pn.VERSION="2.0.7",pn.defaults={domEvents:!1,touchAction:Fe,enable:!0,inputTarget:null,inputClass:null,preset:[[Rc,{enable:!1}],[xc,{enable:!1},["rotate"]],[Ac,{direction:D}],[ku,{direction:D},["swipe"]],[$u],[$u,{event:"doubletap",taps:2},["tap"]],[Ec]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var B4=1,im=2;function Tc(re,he){this.options=k({},pn.defaults,he||{}),this.options.inputTarget=this.options.inputTarget||re,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=re,this.input=ne(this),this.touchAction=new kt(this,this.options.touchAction),nm(this,!0),C(this.options.recognizers,function(me){var Be=this.add(new me[0](me[1]));me[2]&&Be.recognizeWith(me[2]),me[3]&&Be.requireFailure(me[3])},this)}Tc.prototype={set:function(re){return k(this.options,re),re.touchAction&&this.touchAction.update(),re.inputTarget&&(this.input.destroy(),this.input.target=re.inputTarget,this.input.init()),this},stop:function(re){this.session.stopped=re?im:B4},recognize:function(re){var he=this.session;if(!he.stopped){this.touchAction.preventDefaults(re);var me,Be=this.recognizers,We=he.curRecognizer;(!We||We&&We.state&mt)&&(We=he.curRecognizer=null);for(var Ge=0;Ge<Be.length;)me=Be[Ge],he.stopped!==im&&(!We||me==We||me.canRecognizeWith(We))?me.recognize(re):me.reset(),!We&&me.state&(dt|At|_t)&&(We=he.curRecognizer=me),Ge++}},get:function(re){if(re instanceof yt)return re;for(var he=this.recognizers,me=0;me<he.length;me++)if(he[me].options.event==re)return he[me];return null},add:function(re){if(R(re,"add",this))return this;var he=this.get(re.options.event);return he&&this.remove(he),this.recognizers.push(re),re.manager=this,this.touchAction.update(),re},remove:function(re){if(R(re,"remove",this))return this;if(re=this.get(re),re){var he=this.recognizers,me=_(he,re);me!==-1&&(he.splice(me,1),this.touchAction.update())}return this},on:function(re,he){if(re!==a&&he!==a){var me=this.handlers;return C(oe(re),function(Be){me[Be]=me[Be]||[],me[Be].push(he)}),this}},off:function(re,he){if(re!==a){var me=this.handlers;return C(oe(re),function(Be){he?me[Be]&&me[Be].splice(_(me[Be],he),1):delete me[Be]}),this}},emit:function(re,he){this.options.domEvents&&L4(re,he);var me=this.handlers[re]&&this.handlers[re].slice();if(!(!me||!me.length)){he.type=re,he.preventDefault=function(){he.srcEvent.preventDefault()};for(var Be=0;Be<me.length;)me[Be](he),Be++}},destroy:function(){this.element&&nm(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function nm(re,he){var me=re.element;if(me.style){var Be;C(re.options.cssProps,function(We,Ge){Be=l(me.style,Ge),he?(re.oldCssProps[Be]=me.style[Be],me.style[Be]=We):me.style[Be]=re.oldCssProps[Be]||""}),he||(re.oldCssProps={})}}function L4(re,he){var me=r.createEvent("Event");me.initEvent(re,!0,!0),me.gesture=he,he.target.dispatchEvent(me)}k(pn,{INPUT_START:E,INPUT_MOVE:U,INPUT_END:K,INPUT_CANCEL:Z,STATE_POSSIBLE:Bt,STATE_BEGAN:dt,STATE_CHANGED:At,STATE_ENDED:_t,STATE_RECOGNIZED:mt,STATE_CANCELLED:It,STATE_FAILED:vt,DIRECTION_NONE:b,DIRECTION_LEFT:y,DIRECTION_RIGHT:O,DIRECTION_UP:q,DIRECTION_DOWN:X,DIRECTION_HORIZONTAL:D,DIRECTION_VERTICAL:N,DIRECTION_ALL:j,Manager:Tc,Input:te,TouchAction:kt,TouchInput:Oe,MouseInput:qe,PointerEventInput:xe,TouchMouseInput:$e,SingleTouchInput:at,Recognizer:yt,AttrRecognizer:Ir,Tap:$u,Pan:ku,Swipe:Ac,Pinch:xc,Rotate:Rc,Press:Ec,on:Y,off:ie,each:C,merge:I,extend:L,assign:k,inherit:B,bindFn:H,prefixed:l});var N4=typeof t<"u"?t:typeof self<"u"?self:{};N4.Hammer=pn,typeof a=="function"&&a.amd?a(function(){return pn}):e.exports?e.exports=pn:t[i]=pn})(window,document,"Hammer")})(Z6);var mD=Z6.exports;const UV=Lo(mD);var X6={exports:{}};const yD=tv(zR);(function(e,t){(function(i,a){e.exports=a(yD,k4)})(typeof self<"u"?self:Ye,function(r,i){return function(a){var n={};function u(c){if(n[c])return n[c].exports;var d=n[c]={i:c,l:!1,exports:{}};return a[c].call(d.exports,d,d.exports,u),d.l=!0,d.exports}return u.m=a,u.c=n,u.d=function(c,d,m){u.o(c,d)||Object.defineProperty(c,d,{enumerable:!0,get:m})},u.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},u.t=function(c,d){if(d&1&&(c=u(c)),d&8||d&4&&typeof c=="object"&&c&&c.__esModule)return c;var m=Object.create(null);if(u.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:c}),d&2&&typeof c!="string")for(var M in c)u.d(m,M,function(S){return c[S]}.bind(null,M));return m},u.n=function(c){var d=c&&c.__esModule?function(){return c.default}:function(){return c};return u.d(d,"a",d),d},u.o=function(c,d){return Object.prototype.hasOwnProperty.call(c,d)},u.p="",u(u.s="fb15")}({"00ee":function(a,n,u){var c=u("b622"),d=c("toStringTag"),m={};m[d]="z",a.exports=String(m)==="[object z]"},"0366":function(a,n,u){var c=u("1c0b");a.exports=function(d,m,M){if(c(d),m===void 0)return d;switch(M){case 0:return function(){return d.call(m)};case 1:return function(S){return d.call(m,S)};case 2:return function(S,R){return d.call(m,S,R)};case 3:return function(S,R,C){return d.call(m,S,R,C)}}return function(){return d.apply(m,arguments)}}},"057f":function(a,n,u){var c=u("fc6a"),d=u("241c").f,m={}.toString,M=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],S=function(R){try{return d(R)}catch{return M.slice()}};a.exports.f=function(C){return M&&m.call(C)=="[object Window]"?S(C):d(c(C))}},"06cf":function(a,n,u){var c=u("83ab"),d=u("d1e7"),m=u("5c6c"),M=u("fc6a"),S=u("c04e"),R=u("5135"),C=u("0cfb"),P=Object.getOwnPropertyDescriptor;n.f=c?P:function(L,I){if(L=M(L),I=S(I,!0),C)try{return P(L,I)}catch{}if(R(L,I))return m(!d.f.call(L,I),L[I])}},"0cfb":function(a,n,u){var c=u("83ab"),d=u("d039"),m=u("cc12");a.exports=!c&&!d(function(){return Object.defineProperty(m("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(a,n,u){var c=u("23e7"),d=u("d58f").left,m=u("a640"),M=u("ae40"),S=m("reduce"),R=M("reduce",{1:0});c({target:"Array",proto:!0,forced:!S||!R},{reduce:function(P){return d(this,P,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(a,n,u){var c=u("c6b6"),d=u("9263");a.exports=function(m,M){var S=m.exec;if(typeof S=="function"){var R=S.call(m,M);if(typeof R!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return R}if(c(m)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return d.call(m,M)}},"159b":function(a,n,u){var c=u("da84"),d=u("fdbc"),m=u("17c2"),M=u("9112");for(var S in d){var R=c[S],C=R&&R.prototype;if(C&&C.forEach!==m)try{M(C,"forEach",m)}catch{C.forEach=m}}},"17c2":function(a,n,u){var c=u("b727").forEach,d=u("a640"),m=u("ae40"),M=d("forEach"),S=m("forEach");a.exports=!M||!S?function(C){return c(this,C,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(a,n,u){var c=u("d066");a.exports=c("document","documentElement")},"1c0b":function(a,n){a.exports=function(u){if(typeof u!="function")throw TypeError(String(u)+" is not a function");return u}},"1c7e":function(a,n,u){var c=u("b622"),d=c("iterator"),m=!1;try{var M=0,S={next:function(){return{done:!!M++}},return:function(){m=!0}};S[d]=function(){return this},Array.from(S,function(){throw 2})}catch{}a.exports=function(R,C){if(!C&&!m)return!1;var P=!1;try{var k={};k[d]=function(){return{next:function(){return{done:P=!0}}}},R(k)}catch{}return P}},"1d80":function(a,n){a.exports=function(u){if(u==null)throw TypeError("Can't call method on "+u);return u}},"1dde":function(a,n,u){var c=u("d039"),d=u("b622"),m=u("2d00"),M=d("species");a.exports=function(S){return m>=51||!c(function(){var R=[],C=R.constructor={};return C[M]=function(){return{foo:1}},R[S](Boolean).foo!==1})}},"23cb":function(a,n,u){var c=u("a691"),d=Math.max,m=Math.min;a.exports=function(M,S){var R=c(M);return R<0?d(R+S,0):m(R,S)}},"23e7":function(a,n,u){var c=u("da84"),d=u("06cf").f,m=u("9112"),M=u("6eeb"),S=u("ce4e"),R=u("e893"),C=u("94ca");a.exports=function(P,k){var L=P.target,I=P.global,B=P.stat,H,F,W,Y,ie,J;if(I?F=c:B?F=c[L]||S(L,{}):F=(c[L]||{}).prototype,F)for(W in k){if(ie=k[W],P.noTargetGet?(J=d(F,W),Y=J&&J.value):Y=F[W],H=C(I?W:L+(B?".":"#")+W,P.forced),!H&&Y!==void 0){if(typeof ie==typeof Y)continue;R(ie,Y)}(P.sham||Y&&Y.sham)&&m(ie,"sham",!0),M(F,W,ie,P)}}},"241c":function(a,n,u){var c=u("ca84"),d=u("7839"),m=d.concat("length","prototype");n.f=Object.getOwnPropertyNames||function(S){return c(S,m)}},"25f0":function(a,n,u){var c=u("6eeb"),d=u("825a"),m=u("d039"),M=u("ad6d"),S="toString",R=RegExp.prototype,C=R[S],P=m(function(){return C.call({source:"a",flags:"b"})!="/a/b"}),k=C.name!=S;(P||k)&&c(RegExp.prototype,S,function(){var I=d(this),B=String(I.source),H=I.flags,F=String(H===void 0&&I instanceof RegExp&&!("flags"in R)?M.call(I):H);return"/"+B+"/"+F},{unsafe:!0})},"2ca0":function(a,n,u){var c=u("23e7"),d=u("06cf").f,m=u("50c4"),M=u("5a34"),S=u("1d80"),R=u("ab13"),C=u("c430"),P="".startsWith,k=Math.min,L=R("startsWith"),I=!C&&!L&&!!function(){var B=d(String.prototype,"startsWith");return B&&!B.writable}();c({target:"String",proto:!0,forced:!I&&!L},{startsWith:function(H){var F=String(S(this));M(H);var W=m(k(arguments.length>1?arguments[1]:void 0,F.length)),Y=String(H);return P?P.call(F,Y,W):F.slice(W,W+Y.length)===Y}})},"2d00":function(a,n,u){var c=u("da84"),d=u("342f"),m=c.process,M=m&&m.versions,S=M&&M.v8,R,C;S?(R=S.split("."),C=R[0]+R[1]):d&&(R=d.match(/Edge\/(\d+)/),(!R||R[1]>=74)&&(R=d.match(/Chrome\/(\d+)/),R&&(C=R[1]))),a.exports=C&&+C},"342f":function(a,n,u){var c=u("d066");a.exports=c("navigator","userAgent")||""},"35a1":function(a,n,u){var c=u("f5df"),d=u("3f8c"),m=u("b622"),M=m("iterator");a.exports=function(S){if(S!=null)return S[M]||S["@@iterator"]||d[c(S)]}},"37e8":function(a,n,u){var c=u("83ab"),d=u("9bf2"),m=u("825a"),M=u("df75");a.exports=c?Object.defineProperties:function(R,C){m(R);for(var P=M(C),k=P.length,L=0,I;k>L;)d.f(R,I=P[L++],C[I]);return R}},"3bbe":function(a,n,u){var c=u("861d");a.exports=function(d){if(!c(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},"3ca3":function(a,n,u){var c=u("6547").charAt,d=u("69f3"),m=u("7dd0"),M="String Iterator",S=d.set,R=d.getterFor(M);m(String,"String",function(C){S(this,{type:M,string:String(C),index:0})},function(){var P=R(this),k=P.string,L=P.index,I;return L>=k.length?{value:void 0,done:!0}:(I=c(k,L),P.index+=I.length,{value:I,done:!1})})},"3f8c":function(a,n){a.exports={}},4160:function(a,n,u){var c=u("23e7"),d=u("17c2");c({target:"Array",proto:!0,forced:[].forEach!=d},{forEach:d})},"428f":function(a,n,u){var c=u("da84");a.exports=c},"44ad":function(a,n,u){var c=u("d039"),d=u("c6b6"),m="".split;a.exports=c(function(){return!Object("z").propertyIsEnumerable(0)})?function(M){return d(M)=="String"?m.call(M,""):Object(M)}:Object},"44d2":function(a,n,u){var c=u("b622"),d=u("7c73"),m=u("9bf2"),M=c("unscopables"),S=Array.prototype;S[M]==null&&m.f(S,M,{configurable:!0,value:d(null)}),a.exports=function(R){S[M][R]=!0}},"44e7":function(a,n,u){var c=u("861d"),d=u("c6b6"),m=u("b622"),M=m("match");a.exports=function(S){var R;return c(S)&&((R=S[M])!==void 0?!!R:d(S)=="RegExp")}},4930:function(a,n,u){var c=u("d039");a.exports=!!Object.getOwnPropertySymbols&&!c(function(){return!String(Symbol())})},"4d64":function(a,n,u){var c=u("fc6a"),d=u("50c4"),m=u("23cb"),M=function(S){return function(R,C,P){var k=c(R),L=d(k.length),I=m(P,L),B;if(S&&C!=C){for(;L>I;)if(B=k[I++],B!=B)return!0}else for(;L>I;I++)if((S||I in k)&&k[I]===C)return S||I||0;return!S&&-1}};a.exports={includes:M(!0),indexOf:M(!1)}},"4de4":function(a,n,u){var c=u("23e7"),d=u("b727").filter,m=u("1dde"),M=u("ae40"),S=m("filter"),R=M("filter");c({target:"Array",proto:!0,forced:!S||!R},{filter:function(P){return d(this,P,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(a,n,u){var c=u("0366"),d=u("7b0b"),m=u("9bdd"),M=u("e95a"),S=u("50c4"),R=u("8418"),C=u("35a1");a.exports=function(k){var L=d(k),I=typeof this=="function"?this:Array,B=arguments.length,H=B>1?arguments[1]:void 0,F=H!==void 0,W=C(L),Y=0,ie,J,V,oe,_,o;if(F&&(H=c(H,B>2?arguments[2]:void 0,2)),W!=null&&!(I==Array&&M(W)))for(oe=W.call(L),_=oe.next,J=new I;!(V=_.call(oe)).done;Y++)o=F?m(oe,H,[V.value,Y],!0):V.value,R(J,Y,o);else for(ie=S(L.length),J=new I(ie);ie>Y;Y++)o=F?H(L[Y],Y):L[Y],R(J,Y,o);return J.length=Y,J}},"4fad":function(a,n,u){var c=u("23e7"),d=u("6f53").entries;c({target:"Object",stat:!0},{entries:function(M){return d(M)}})},"50c4":function(a,n,u){var c=u("a691"),d=Math.min;a.exports=function(m){return m>0?d(c(m),9007199254740991):0}},5135:function(a,n){var u={}.hasOwnProperty;a.exports=function(c,d){return u.call(c,d)}},5319:function(a,n,u){var c=u("d784"),d=u("825a"),m=u("7b0b"),M=u("50c4"),S=u("a691"),R=u("1d80"),C=u("8aa5"),P=u("14c3"),k=Math.max,L=Math.min,I=Math.floor,B=/\$([$&'`]|\d\d?|<[^>]*>)/g,H=/\$([$&'`]|\d\d?)/g,F=function(W){return W===void 0?W:String(W)};c("replace",2,function(W,Y,ie,J){var V=J.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,oe=J.REPLACE_KEEPS_$0,_=V?"$":"$0";return[function(l,h){var p=R(this),w=l==null?void 0:l[W];return w!==void 0?w.call(l,p,h):Y.call(String(p),l,h)},function(f,l){if(!V&&oe||typeof l=="string"&&l.indexOf(_)===-1){var h=ie(Y,f,this,l);if(h.done)return h.value}var p=d(f),w=String(this),x=typeof l=="function";x||(l=String(l));var g=p.global;if(g){var s=p.unicode;p.lastIndex=0}for(var v=[];;){var T=P(p,w);if(T===null||(v.push(T),!g))break;var $=String(T[0]);$===""&&(p.lastIndex=C(w,M(p.lastIndex),s))}for(var G="",ee=0,A=0;A<v.length;A++){T=v[A];for(var E=String(T[0]),U=k(L(S(T.index),w.length),0),K=[],Z=1;Z<T.length;Z++)K.push(F(T[Z]));var b=T.groups;if(x){var y=[E].concat(K,U,w);b!==void 0&&y.push(b);var O=String(l.apply(void 0,y))}else O=o(E,w,U,K,b,l);U>=ee&&(G+=w.slice(ee,U)+O,ee=U+E.length)}return G+w.slice(ee)}];function o(f,l,h,p,w,x){var g=h+f.length,s=p.length,v=H;return w!==void 0&&(w=m(w),v=B),Y.call(x,v,function(T,$){var G;switch($.charAt(0)){case"$":return"$";case"&":return f;case"`":return l.slice(0,h);case"'":return l.slice(g);case"<":G=w[$.slice(1,-1)];break;default:var ee=+$;if(ee===0)return T;if(ee>s){var A=I(ee/10);return A===0?T:A<=s?p[A-1]===void 0?$.charAt(1):p[A-1]+$.charAt(1):T}G=p[ee-1]}return G===void 0?"":G})}})},5692:function(a,n,u){var c=u("c430"),d=u("c6cd");(a.exports=function(m,M){return d[m]||(d[m]=M!==void 0?M:{})})("versions",[]).push({version:"3.6.5",mode:c?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(a,n,u){var c=u("d066"),d=u("241c"),m=u("7418"),M=u("825a");a.exports=c("Reflect","ownKeys")||function(R){var C=d.f(M(R)),P=m.f;return P?C.concat(P(R)):C}},"5a34":function(a,n,u){var c=u("44e7");a.exports=function(d){if(c(d))throw TypeError("The method doesn't accept regular expressions");return d}},"5c6c":function(a,n){a.exports=function(u,c){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:c}}},"5db7":function(a,n,u){var c=u("23e7"),d=u("a2bf"),m=u("7b0b"),M=u("50c4"),S=u("1c0b"),R=u("65f0");c({target:"Array",proto:!0},{flatMap:function(P){var k=m(this),L=M(k.length),I;return S(P),I=R(k,0),I.length=d(I,k,k,L,0,1,P,arguments.length>1?arguments[1]:void 0),I}})},6547:function(a,n,u){var c=u("a691"),d=u("1d80"),m=function(M){return function(S,R){var C=String(d(S)),P=c(R),k=C.length,L,I;return P<0||P>=k?M?"":void 0:(L=C.charCodeAt(P),L<55296||L>56319||P+1===k||(I=C.charCodeAt(P+1))<56320||I>57343?M?C.charAt(P):L:M?C.slice(P,P+2):(L-55296<<10)+(I-56320)+65536)}};a.exports={codeAt:m(!1),charAt:m(!0)}},"65f0":function(a,n,u){var c=u("861d"),d=u("e8b5"),m=u("b622"),M=m("species");a.exports=function(S,R){var C;return d(S)&&(C=S.constructor,typeof C=="function"&&(C===Array||d(C.prototype))?C=void 0:c(C)&&(C=C[M],C===null&&(C=void 0))),new(C===void 0?Array:C)(R===0?0:R)}},"69f3":function(a,n,u){var c=u("7f9a"),d=u("da84"),m=u("861d"),M=u("9112"),S=u("5135"),R=u("f772"),C=u("d012"),P=d.WeakMap,k,L,I,B=function(V){return I(V)?L(V):k(V,{})},H=function(V){return function(oe){var _;if(!m(oe)||(_=L(oe)).type!==V)throw TypeError("Incompatible receiver, "+V+" required");return _}};if(c){var F=new P,W=F.get,Y=F.has,ie=F.set;k=function(V,oe){return ie.call(F,V,oe),oe},L=function(V){return W.call(F,V)||{}},I=function(V){return Y.call(F,V)}}else{var J=R("state");C[J]=!0,k=function(V,oe){return M(V,J,oe),oe},L=function(V){return S(V,J)?V[J]:{}},I=function(V){return S(V,J)}}a.exports={set:k,get:L,has:I,enforce:B,getterFor:H}},"6eeb":function(a,n,u){var c=u("da84"),d=u("9112"),m=u("5135"),M=u("ce4e"),S=u("8925"),R=u("69f3"),C=R.get,P=R.enforce,k=String(String).split("String");(a.exports=function(L,I,B,H){var F=H?!!H.unsafe:!1,W=H?!!H.enumerable:!1,Y=H?!!H.noTargetGet:!1;if(typeof B=="function"&&(typeof I=="string"&&!m(B,"name")&&d(B,"name",I),P(B).source=k.join(typeof I=="string"?I:"")),L===c){W?L[I]=B:M(I,B);return}else F?!Y&&L[I]&&(W=!0):delete L[I];W?L[I]=B:d(L,I,B)})(Function.prototype,"toString",function(){return typeof this=="function"&&C(this).source||S(this)})},"6f53":function(a,n,u){var c=u("83ab"),d=u("df75"),m=u("fc6a"),M=u("d1e7").f,S=function(R){return function(C){for(var P=m(C),k=d(P),L=k.length,I=0,B=[],H;L>I;)H=k[I++],(!c||M.call(P,H))&&B.push(R?[H,P[H]]:P[H]);return B}};a.exports={entries:S(!0),values:S(!1)}},"73d9":function(a,n,u){var c=u("44d2");c("flatMap")},7418:function(a,n){n.f=Object.getOwnPropertySymbols},"746f":function(a,n,u){var c=u("428f"),d=u("5135"),m=u("e538"),M=u("9bf2").f;a.exports=function(S){var R=c.Symbol||(c.Symbol={});d(R,S)||M(R,S,{value:m.f(S)})}},7839:function(a,n){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(a,n,u){var c=u("1d80");a.exports=function(d){return Object(c(d))}},"7c73":function(a,n,u){var c=u("825a"),d=u("37e8"),m=u("7839"),M=u("d012"),S=u("1be4"),R=u("cc12"),C=u("f772"),P=">",k="<",L="prototype",I="script",B=C("IE_PROTO"),H=function(){},F=function(V){return k+I+P+V+k+"/"+I+P},W=function(V){V.write(F("")),V.close();var oe=V.parentWindow.Object;return V=null,oe},Y=function(){var V=R("iframe"),oe="java"+I+":",_;return V.style.display="none",S.appendChild(V),V.src=String(oe),_=V.contentWindow.document,_.open(),_.write(F("document.F=Object")),_.close(),_.F},ie,J=function(){try{ie=document.domain&&new ActiveXObject("htmlfile")}catch{}J=ie?W(ie):Y();for(var V=m.length;V--;)delete J[L][m[V]];return J()};M[B]=!0,a.exports=Object.create||function(oe,_){var o;return oe!==null?(H[L]=c(oe),o=new H,H[L]=null,o[B]=oe):o=J(),_===void 0?o:d(o,_)}},"7dd0":function(a,n,u){var c=u("23e7"),d=u("9ed3"),m=u("e163"),M=u("d2bb"),S=u("d44e"),R=u("9112"),C=u("6eeb"),P=u("b622"),k=u("c430"),L=u("3f8c"),I=u("ae93"),B=I.IteratorPrototype,H=I.BUGGY_SAFARI_ITERATORS,F=P("iterator"),W="keys",Y="values",ie="entries",J=function(){return this};a.exports=function(V,oe,_,o,f,l,h){d(_,oe,o);var p=function(A){if(A===f&&v)return v;if(!H&&A in g)return g[A];switch(A){case W:return function(){return new _(this,A)};case Y:return function(){return new _(this,A)};case ie:return function(){return new _(this,A)}}return function(){return new _(this)}},w=oe+" Iterator",x=!1,g=V.prototype,s=g[F]||g["@@iterator"]||f&&g[f],v=!H&&s||p(f),T=oe=="Array"&&g.entries||s,$,G,ee;if(T&&($=m(T.call(new V)),B!==Object.prototype&&$.next&&(!k&&m($)!==B&&(M?M($,B):typeof $[F]!="function"&&R($,F,J)),S($,w,!0,!0),k&&(L[w]=J))),f==Y&&s&&s.name!==Y&&(x=!0,v=function(){return s.call(this)}),(!k||h)&&g[F]!==v&&R(g,F,v),L[oe]=v,f)if(G={values:p(Y),keys:l?v:p(W),entries:p(ie)},h)for(ee in G)(H||x||!(ee in g))&&C(g,ee,G[ee]);else c({target:oe,proto:!0,forced:H||x},G);return G}},"7f9a":function(a,n,u){var c=u("da84"),d=u("8925"),m=c.WeakMap;a.exports=typeof m=="function"&&/native code/.test(d(m))},"825a":function(a,n,u){var c=u("861d");a.exports=function(d){if(!c(d))throw TypeError(String(d)+" is not an object");return d}},"83ab":function(a,n,u){var c=u("d039");a.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(a,n,u){var c=u("c04e"),d=u("9bf2"),m=u("5c6c");a.exports=function(M,S,R){var C=c(S);C in M?d.f(M,C,m(0,R)):M[C]=R}},"861d":function(a,n){a.exports=function(u){return typeof u=="object"?u!==null:typeof u=="function"}},8875:function(a,n,u){var c,d,m;(function(M,S){d=[],c=S,m=typeof c=="function"?c.apply(n,d):c,m!==void 0&&(a.exports=m)})(typeof self<"u"?self:this,function(){function M(){var S=Object.getOwnPropertyDescriptor(document,"currentScript");if(!S&&"currentScript"in document&&document.currentScript||S&&S.get!==M&&document.currentScript)return document.currentScript;try{throw new Error}catch(ie){var R=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,C=/@([^@]*):(\d+):(\d+)\s*$/ig,P=R.exec(ie.stack)||C.exec(ie.stack),k=P&&P[1]||!1,L=P&&P[2]||!1,I=document.location.href.replace(document.location.hash,""),B,H,F,W=document.getElementsByTagName("script");k===I&&(B=document.documentElement.outerHTML,H=new RegExp("(?:[^\\n]+?\\n){0,"+(L-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),F=B.replace(H,"$1").trim());for(var Y=0;Y<W.length;Y++)if(W[Y].readyState==="interactive"||W[Y].src===k||k===I&&W[Y].innerHTML&&W[Y].innerHTML.trim()===F)return W[Y];return null}}return M})},8925:function(a,n,u){var c=u("c6cd"),d=Function.toString;typeof c.inspectSource!="function"&&(c.inspectSource=function(m){return d.call(m)}),a.exports=c.inspectSource},"8aa5":function(a,n,u){var c=u("6547").charAt;a.exports=function(d,m,M){return m+(M?c(d,m).length:1)}},"8bbf":function(a,n){a.exports=r},"90e3":function(a,n){var u=0,c=Math.random();a.exports=function(d){return"Symbol("+String(d===void 0?"":d)+")_"+(++u+c).toString(36)}},9112:function(a,n,u){var c=u("83ab"),d=u("9bf2"),m=u("5c6c");a.exports=c?function(M,S,R){return d.f(M,S,m(1,R))}:function(M,S,R){return M[S]=R,M}},9263:function(a,n,u){var c=u("ad6d"),d=u("9f7f"),m=RegExp.prototype.exec,M=String.prototype.replace,S=m,R=function(){var L=/a/,I=/b*/g;return m.call(L,"a"),m.call(I,"a"),L.lastIndex!==0||I.lastIndex!==0}(),C=d.UNSUPPORTED_Y||d.BROKEN_CARET,P=/()??/.exec("")[1]!==void 0,k=R||P||C;k&&(S=function(I){var B=this,H,F,W,Y,ie=C&&B.sticky,J=c.call(B),V=B.source,oe=0,_=I;return ie&&(J=J.replace("y",""),J.indexOf("g")===-1&&(J+="g"),_=String(I).slice(B.lastIndex),B.lastIndex>0&&(!B.multiline||B.multiline&&I[B.lastIndex-1]!==`
-`)&&(V="(?: "+V+")",_=" "+_,oe++),F=new RegExp("^(?:"+V+")",J)),P&&(F=new RegExp("^"+V+"$(?!\\s)",J)),R&&(H=B.lastIndex),W=m.call(ie?F:B,_),ie?W?(W.input=W.input.slice(oe),W[0]=W[0].slice(oe),W.index=B.lastIndex,B.lastIndex+=W[0].length):B.lastIndex=0:R&&W&&(B.lastIndex=B.global?W.index+W[0].length:H),P&&W&&W.length>1&&M.call(W[0],F,function(){for(Y=1;Y<arguments.length-2;Y++)arguments[Y]===void 0&&(W[Y]=void 0)}),W}),a.exports=S},"94ca":function(a,n,u){var c=u("d039"),d=/#|\.prototype\./,m=function(P,k){var L=S[M(P)];return L==C?!0:L==R?!1:typeof k=="function"?c(k):!!k},M=m.normalize=function(P){return String(P).replace(d,".").toLowerCase()},S=m.data={},R=m.NATIVE="N",C=m.POLYFILL="P";a.exports=m},"99af":function(a,n,u){var c=u("23e7"),d=u("d039"),m=u("e8b5"),M=u("861d"),S=u("7b0b"),R=u("50c4"),C=u("8418"),P=u("65f0"),k=u("1dde"),L=u("b622"),I=u("2d00"),B=L("isConcatSpreadable"),H=9007199254740991,F="Maximum allowed index exceeded",W=I>=51||!d(function(){var V=[];return V[B]=!1,V.concat()[0]!==V}),Y=k("concat"),ie=function(V){if(!M(V))return!1;var oe=V[B];return oe!==void 0?!!oe:m(V)},J=!W||!Y;c({target:"Array",proto:!0,forced:J},{concat:function(oe){var _=S(this),o=P(_,0),f=0,l,h,p,w,x;for(l=-1,p=arguments.length;l<p;l++)if(x=l===-1?_:arguments[l],ie(x)){if(w=R(x.length),f+w>H)throw TypeError(F);for(h=0;h<w;h++,f++)h in x&&C(o,f,x[h])}else{if(f>=H)throw TypeError(F);C(o,f++,x)}return o.length=f,o}})},"9bdd":function(a,n,u){var c=u("825a");a.exports=function(d,m,M,S){try{return S?m(c(M)[0],M[1]):m(M)}catch(C){var R=d.return;throw R!==void 0&&c(R.call(d)),C}}},"9bf2":function(a,n,u){var c=u("83ab"),d=u("0cfb"),m=u("825a"),M=u("c04e"),S=Object.defineProperty;n.f=c?S:function(C,P,k){if(m(C),P=M(P,!0),m(k),d)try{return S(C,P,k)}catch{}if("get"in k||"set"in k)throw TypeError("Accessors not supported");return"value"in k&&(C[P]=k.value),C}},"9ed3":function(a,n,u){var c=u("ae93").IteratorPrototype,d=u("7c73"),m=u("5c6c"),M=u("d44e"),S=u("3f8c"),R=function(){return this};a.exports=function(C,P,k){var L=P+" Iterator";return C.prototype=d(c,{next:m(1,k)}),M(C,L,!1,!0),S[L]=R,C}},"9f7f":function(a,n,u){var c=u("d039");function d(m,M){return RegExp(m,M)}n.UNSUPPORTED_Y=c(function(){var m=d("a","y");return m.lastIndex=2,m.exec("abcd")!=null}),n.BROKEN_CARET=c(function(){var m=d("^r","gy");return m.lastIndex=2,m.exec("str")!=null})},a2bf:function(a,n,u){var c=u("e8b5"),d=u("50c4"),m=u("0366"),M=function(S,R,C,P,k,L,I,B){for(var H=k,F=0,W=I?m(I,B,3):!1,Y;F<P;){if(F in C){if(Y=W?W(C[F],F,R):C[F],L>0&&c(Y))H=M(S,R,Y,d(Y.length),H,L-1)-1;else{if(H>=9007199254740991)throw TypeError("Exceed the acceptable array length");S[H]=Y}H++}F++}return H};a.exports=M},a352:function(a,n){a.exports=i},a434:function(a,n,u){var c=u("23e7"),d=u("23cb"),m=u("a691"),M=u("50c4"),S=u("7b0b"),R=u("65f0"),C=u("8418"),P=u("1dde"),k=u("ae40"),L=P("splice"),I=k("splice",{ACCESSORS:!0,0:0,1:2}),B=Math.max,H=Math.min,F=9007199254740991,W="Maximum allowed length exceeded";c({target:"Array",proto:!0,forced:!L||!I},{splice:function(ie,J){var V=S(this),oe=M(V.length),_=d(ie,oe),o=arguments.length,f,l,h,p,w,x;if(o===0?f=l=0:o===1?(f=0,l=oe-_):(f=o-2,l=H(B(m(J),0),oe-_)),oe+f-l>F)throw TypeError(W);for(h=R(V,l),p=0;p<l;p++)w=_+p,w in V&&C(h,p,V[w]);if(h.length=l,f<l){for(p=_;p<oe-l;p++)w=p+l,x=p+f,w in V?V[x]=V[w]:delete V[x];for(p=oe;p>oe-l+f;p--)delete V[p-1]}else if(f>l)for(p=oe-l;p>_;p--)w=p+l-1,x=p+f-1,w in V?V[x]=V[w]:delete V[x];for(p=0;p<f;p++)V[p+_]=arguments[p+2];return V.length=oe-l+f,h}})},a4d3:function(a,n,u){var c=u("23e7"),d=u("da84"),m=u("d066"),M=u("c430"),S=u("83ab"),R=u("4930"),C=u("fdbf"),P=u("d039"),k=u("5135"),L=u("e8b5"),I=u("861d"),B=u("825a"),H=u("7b0b"),F=u("fc6a"),W=u("c04e"),Y=u("5c6c"),ie=u("7c73"),J=u("df75"),V=u("241c"),oe=u("057f"),_=u("7418"),o=u("06cf"),f=u("9bf2"),l=u("d1e7"),h=u("9112"),p=u("6eeb"),w=u("5692"),x=u("f772"),g=u("d012"),s=u("90e3"),v=u("b622"),T=u("e538"),$=u("746f"),G=u("d44e"),ee=u("69f3"),A=u("b727").forEach,E=x("hidden"),U="Symbol",K="prototype",Z=v("toPrimitive"),b=ee.set,y=ee.getterFor(U),O=Object[K],q=d.Symbol,X=m("JSON","stringify"),D=o.f,N=f.f,j=oe.f,z=l.f,se=w("symbols"),te=w("op-symbols"),ne=w("string-to-symbol-registry"),Ee=w("symbol-to-string-registry"),Q=w("wks"),ue=d.QObject,le=!ue||!ue[K]||!ue[K].findChild,ce=S&&P(function(){return ie(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a!=7})?function(qe,ye,_e){var Ve=D(O,ye);Ve&&delete O[ye],N(qe,ye,_e),Ve&&qe!==O&&N(O,ye,Ve)}:N,pe=function(qe,ye){var _e=se[qe]=ie(q[K]);return b(_e,{type:U,tag:qe,description:ye}),S||(_e.description=ye),_e},de=C?function(qe){return typeof qe=="symbol"}:function(qe){return Object(qe)instanceof q},ae=function(ye,_e,Ve){ye===O&&ae(te,_e,Ve),B(ye);var ge=W(_e,!0);return B(Ve),k(se,ge)?(Ve.enumerable?(k(ye,E)&&ye[E][ge]&&(ye[E][ge]=!1),Ve=ie(Ve,{enumerable:Y(0,!1)})):(k(ye,E)||N(ye,E,Y(1,{})),ye[E][ge]=!0),ce(ye,ge,Ve)):N(ye,ge,Ve)},fe=function(ye,_e){B(ye);var Ve=F(_e),ge=J(Ve).concat(be(Ve));return A(ge,function(xe){(!S||ve.call(Ve,xe))&&ae(ye,xe,Ve[xe])}),ye},Te=function(ye,_e){return _e===void 0?ie(ye):fe(ie(ye),_e)},ve=function(ye){var _e=W(ye,!0),Ve=z.call(this,_e);return this===O&&k(se,_e)&&!k(te,_e)?!1:Ve||!k(this,_e)||!k(se,_e)||k(this,E)&&this[E][_e]?Ve:!0},Me=function(ye,_e){var Ve=F(ye),ge=W(_e,!0);if(!(Ve===O&&k(se,ge)&&!k(te,ge))){var xe=D(Ve,ge);return xe&&k(se,ge)&&!(k(Ve,E)&&Ve[E][ge])&&(xe.enumerable=!0),xe}},Ke=function(ye){var _e=j(F(ye)),Ve=[];return A(_e,function(ge){!k(se,ge)&&!k(g,ge)&&Ve.push(ge)}),Ve},be=function(ye){var _e=ye===O,Ve=j(_e?te:F(ye)),ge=[];return A(Ve,function(xe){k(se,xe)&&(!_e||k(O,xe))&&ge.push(se[xe])}),ge};if(R||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var ye=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),_e=s(ye),Ve=function(ge){this===O&&Ve.call(te,ge),k(this,E)&&k(this[E],_e)&&(this[E][_e]=!1),ce(this,_e,Y(1,ge))};return S&&le&&ce(O,_e,{configurable:!0,set:Ve}),pe(_e,ye)},p(q[K],"toString",function(){return y(this).tag}),p(q,"withoutSetter",function(qe){return pe(s(qe),qe)}),l.f=ve,f.f=ae,o.f=Me,V.f=oe.f=Ke,_.f=be,T.f=function(qe){return pe(v(qe),qe)},S&&(N(q[K],"description",{configurable:!0,get:function(){return y(this).description}}),M||p(O,"propertyIsEnumerable",ve,{unsafe:!0}))),c({global:!0,wrap:!0,forced:!R,sham:!R},{Symbol:q}),A(J(Q),function(qe){$(qe)}),c({target:U,stat:!0,forced:!R},{for:function(qe){var ye=String(qe);if(k(ne,ye))return ne[ye];var _e=q(ye);return ne[ye]=_e,Ee[_e]=ye,_e},keyFor:function(ye){if(!de(ye))throw TypeError(ye+" is not a symbol");if(k(Ee,ye))return Ee[ye]},useSetter:function(){le=!0},useSimple:function(){le=!1}}),c({target:"Object",stat:!0,forced:!R,sham:!S},{create:Te,defineProperty:ae,defineProperties:fe,getOwnPropertyDescriptor:Me}),c({target:"Object",stat:!0,forced:!R},{getOwnPropertyNames:Ke,getOwnPropertySymbols:be}),c({target:"Object",stat:!0,forced:P(function(){_.f(1)})},{getOwnPropertySymbols:function(ye){return _.f(H(ye))}}),X){var Se=!R||P(function(){var qe=q();return X([qe])!="[null]"||X({a:qe})!="{}"||X(Object(qe))!="{}"});c({target:"JSON",stat:!0,forced:Se},{stringify:function(ye,_e,Ve){for(var ge=[ye],xe=1,Xe;arguments.length>xe;)ge.push(arguments[xe++]);if(Xe=_e,!(!I(_e)&&ye===void 0||de(ye)))return L(_e)||(_e=function(Re,Le){if(typeof Xe=="function"&&(Le=Xe.call(this,Re,Le)),!de(Le))return Le}),ge[1]=_e,X.apply(null,ge)}})}q[K][Z]||h(q[K],Z,q[K].valueOf),G(q,U),g[E]=!0},a630:function(a,n,u){var c=u("23e7"),d=u("4df4"),m=u("1c7e"),M=!m(function(S){Array.from(S)});c({target:"Array",stat:!0,forced:M},{from:d})},a640:function(a,n,u){var c=u("d039");a.exports=function(d,m){var M=[][d];return!!M&&c(function(){M.call(null,m||function(){throw 1},1)})}},a691:function(a,n){var u=Math.ceil,c=Math.floor;a.exports=function(d){return isNaN(d=+d)?0:(d>0?c:u)(d)}},ab13:function(a,n,u){var c=u("b622"),d=c("match");a.exports=function(m){var M=/./;try{"/./"[m](M)}catch{try{return M[d]=!1,"/./"[m](M)}catch{}}return!1}},ac1f:function(a,n,u){var c=u("23e7"),d=u("9263");c({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},ad6d:function(a,n,u){var c=u("825a");a.exports=function(){var d=c(this),m="";return d.global&&(m+="g"),d.ignoreCase&&(m+="i"),d.multiline&&(m+="m"),d.dotAll&&(m+="s"),d.unicode&&(m+="u"),d.sticky&&(m+="y"),m}},ae40:function(a,n,u){var c=u("83ab"),d=u("d039"),m=u("5135"),M=Object.defineProperty,S={},R=function(C){throw C};a.exports=function(C,P){if(m(S,C))return S[C];P||(P={});var k=[][C],L=m(P,"ACCESSORS")?P.ACCESSORS:!1,I=m(P,0)?P[0]:R,B=m(P,1)?P[1]:void 0;return S[C]=!!k&&!d(function(){if(L&&!c)return!0;var H={length:-1};L?M(H,1,{enumerable:!0,get:R}):H[1]=1,k.call(H,I,B)})}},ae93:function(a,n,u){var c=u("e163"),d=u("9112"),m=u("5135"),M=u("b622"),S=u("c430"),R=M("iterator"),C=!1,P=function(){return this},k,L,I;[].keys&&(I=[].keys(),"next"in I?(L=c(c(I)),L!==Object.prototype&&(k=L)):C=!0),k==null&&(k={}),!S&&!m(k,R)&&d(k,R,P),a.exports={IteratorPrototype:k,BUGGY_SAFARI_ITERATORS:C}},b041:function(a,n,u){var c=u("00ee"),d=u("f5df");a.exports=c?{}.toString:function(){return"[object "+d(this)+"]"}},b0c0:function(a,n,u){var c=u("83ab"),d=u("9bf2").f,m=Function.prototype,M=m.toString,S=/^\s*function ([^ (]*)/,R="name";c&&!(R in m)&&d(m,R,{configurable:!0,get:function(){try{return M.call(this).match(S)[1]}catch{return""}}})},b622:function(a,n,u){var c=u("da84"),d=u("5692"),m=u("5135"),M=u("90e3"),S=u("4930"),R=u("fdbf"),C=d("wks"),P=c.Symbol,k=R?P:P&&P.withoutSetter||M;a.exports=function(L){return m(C,L)||(S&&m(P,L)?C[L]=P[L]:C[L]=k("Symbol."+L)),C[L]}},b64b:function(a,n,u){var c=u("23e7"),d=u("7b0b"),m=u("df75"),M=u("d039"),S=M(function(){m(1)});c({target:"Object",stat:!0,forced:S},{keys:function(C){return m(d(C))}})},b727:function(a,n,u){var c=u("0366"),d=u("44ad"),m=u("7b0b"),M=u("50c4"),S=u("65f0"),R=[].push,C=function(P){var k=P==1,L=P==2,I=P==3,B=P==4,H=P==6,F=P==5||H;return function(W,Y,ie,J){for(var V=m(W),oe=d(V),_=c(Y,ie,3),o=M(oe.length),f=0,l=J||S,h=k?l(W,o):L?l(W,0):void 0,p,w;o>f;f++)if((F||f in oe)&&(p=oe[f],w=_(p,f,V),P)){if(k)h[f]=w;else if(w)switch(P){case 3:return!0;case 5:return p;case 6:return f;case 2:R.call(h,p)}else if(B)return!1}return H?-1:I||B?B:h}};a.exports={forEach:C(0),map:C(1),filter:C(2),some:C(3),every:C(4),find:C(5),findIndex:C(6)}},c04e:function(a,n,u){var c=u("861d");a.exports=function(d,m){if(!c(d))return d;var M,S;if(m&&typeof(M=d.toString)=="function"&&!c(S=M.call(d))||typeof(M=d.valueOf)=="function"&&!c(S=M.call(d))||!m&&typeof(M=d.toString)=="function"&&!c(S=M.call(d)))return S;throw TypeError("Can't convert object to primitive value")}},c430:function(a,n){a.exports=!1},c6b6:function(a,n){var u={}.toString;a.exports=function(c){return u.call(c).slice(8,-1)}},c6cd:function(a,n,u){var c=u("da84"),d=u("ce4e"),m="__core-js_shared__",M=c[m]||d(m,{});a.exports=M},c740:function(a,n,u){var c=u("23e7"),d=u("b727").findIndex,m=u("44d2"),M=u("ae40"),S="findIndex",R=!0,C=M(S);S in[]&&Array(1)[S](function(){R=!1}),c({target:"Array",proto:!0,forced:R||!C},{findIndex:function(k){return d(this,k,arguments.length>1?arguments[1]:void 0)}}),m(S)},c8ba:function(a,n){var u;u=function(){return this}();try{u=u||new Function("return this")()}catch{typeof window=="object"&&(u=window)}a.exports=u},c975:function(a,n,u){var c=u("23e7"),d=u("4d64").indexOf,m=u("a640"),M=u("ae40"),S=[].indexOf,R=!!S&&1/[1].indexOf(1,-0)<0,C=m("indexOf"),P=M("indexOf",{ACCESSORS:!0,1:0});c({target:"Array",proto:!0,forced:R||!C||!P},{indexOf:function(L){return R?S.apply(this,arguments)||0:d(this,L,arguments.length>1?arguments[1]:void 0)}})},ca84:function(a,n,u){var c=u("5135"),d=u("fc6a"),m=u("4d64").indexOf,M=u("d012");a.exports=function(S,R){var C=d(S),P=0,k=[],L;for(L in C)!c(M,L)&&c(C,L)&&k.push(L);for(;R.length>P;)c(C,L=R[P++])&&(~m(k,L)||k.push(L));return k}},caad:function(a,n,u){var c=u("23e7"),d=u("4d64").includes,m=u("44d2"),M=u("ae40"),S=M("indexOf",{ACCESSORS:!0,1:0});c({target:"Array",proto:!0,forced:!S},{includes:function(C){return d(this,C,arguments.length>1?arguments[1]:void 0)}}),m("includes")},cc12:function(a,n,u){var c=u("da84"),d=u("861d"),m=c.document,M=d(m)&&d(m.createElement);a.exports=function(S){return M?m.createElement(S):{}}},ce4e:function(a,n,u){var c=u("da84"),d=u("9112");a.exports=function(m,M){try{d(c,m,M)}catch{c[m]=M}return M}},d012:function(a,n){a.exports={}},d039:function(a,n){a.exports=function(u){try{return!!u()}catch{return!0}}},d066:function(a,n,u){var c=u("428f"),d=u("da84"),m=function(M){return typeof M=="function"?M:void 0};a.exports=function(M,S){return arguments.length<2?m(c[M])||m(d[M]):c[M]&&c[M][S]||d[M]&&d[M][S]}},d1e7:function(a,n,u){var c={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,m=d&&!c.call({1:2},1);n.f=m?function(S){var R=d(this,S);return!!R&&R.enumerable}:c},d28b:function(a,n,u){var c=u("746f");c("iterator")},d2bb:function(a,n,u){var c=u("825a"),d=u("3bbe");a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var m=!1,M={},S;try{S=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,S.call(M,[]),m=M instanceof Array}catch{}return function(C,P){return c(C),d(P),m?S.call(C,P):C.__proto__=P,C}}():void 0)},d3b7:function(a,n,u){var c=u("00ee"),d=u("6eeb"),m=u("b041");c||d(Object.prototype,"toString",m,{unsafe:!0})},d44e:function(a,n,u){var c=u("9bf2").f,d=u("5135"),m=u("b622"),M=m("toStringTag");a.exports=function(S,R,C){S&&!d(S=C?S:S.prototype,M)&&c(S,M,{configurable:!0,value:R})}},d58f:function(a,n,u){var c=u("1c0b"),d=u("7b0b"),m=u("44ad"),M=u("50c4"),S=function(R){return function(C,P,k,L){c(P);var I=d(C),B=m(I),H=M(I.length),F=R?H-1:0,W=R?-1:1;if(k<2)for(;;){if(F in B){L=B[F],F+=W;break}if(F+=W,R?F<0:H<=F)throw TypeError("Reduce of empty array with no initial value")}for(;R?F>=0:H>F;F+=W)F in B&&(L=P(L,B[F],F,I));return L}};a.exports={left:S(!1),right:S(!0)}},d784:function(a,n,u){u("ac1f");var c=u("6eeb"),d=u("d039"),m=u("b622"),M=u("9263"),S=u("9112"),R=m("species"),C=!d(function(){var B=/./;return B.exec=function(){var H=[];return H.groups={a:"7"},H},"".replace(B,"$<a>")!=="7"}),P=function(){return"a".replace(/./,"$0")==="$0"}(),k=m("replace"),L=function(){return/./[k]?/./[k]("a","$0")==="":!1}(),I=!d(function(){var B=/(?:)/,H=B.exec;B.exec=function(){return H.apply(this,arguments)};var F="ab".split(B);return F.length!==2||F[0]!=="a"||F[1]!=="b"});a.exports=function(B,H,F,W){var Y=m(B),ie=!d(function(){var f={};return f[Y]=function(){return 7},""[B](f)!=7}),J=ie&&!d(function(){var f=!1,l=/a/;return B==="split"&&(l={},l.constructor={},l.constructor[R]=function(){return l},l.flags="",l[Y]=/./[Y]),l.exec=function(){return f=!0,null},l[Y](""),!f});if(!ie||!J||B==="replace"&&!(C&&P&&!L)||B==="split"&&!I){var V=/./[Y],oe=F(Y,""[B],function(f,l,h,p,w){return l.exec===M?ie&&!w?{done:!0,value:V.call(l,h,p)}:{done:!0,value:f.call(h,l,p)}:{done:!1}},{REPLACE_KEEPS_$0:P,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:L}),_=oe[0],o=oe[1];c(String.prototype,B,_),c(RegExp.prototype,Y,H==2?function(f,l){return o.call(f,this,l)}:function(f){return o.call(f,this)})}W&&S(RegExp.prototype[Y],"sham",!0)}},d81d:function(a,n,u){var c=u("23e7"),d=u("b727").map,m=u("1dde"),M=u("ae40"),S=m("map"),R=M("map");c({target:"Array",proto:!0,forced:!S||!R},{map:function(P){return d(this,P,arguments.length>1?arguments[1]:void 0)}})},da84:function(a,n,u){(function(c){var d=function(m){return m&&m.Math==Math&&m};a.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof c=="object"&&c)||Function("return this")()}).call(this,u("c8ba"))},dbb4:function(a,n,u){var c=u("23e7"),d=u("83ab"),m=u("56ef"),M=u("fc6a"),S=u("06cf"),R=u("8418");c({target:"Object",stat:!0,sham:!d},{getOwnPropertyDescriptors:function(P){for(var k=M(P),L=S.f,I=m(k),B={},H=0,F,W;I.length>H;)W=L(k,F=I[H++]),W!==void 0&&R(B,F,W);return B}})},dbf1:function(a,n,u){(function(c){u.d(n,"a",function(){return m});function d(){return typeof window<"u"?window.console:c.console}var m=d()}).call(this,u("c8ba"))},ddb0:function(a,n,u){var c=u("da84"),d=u("fdbc"),m=u("e260"),M=u("9112"),S=u("b622"),R=S("iterator"),C=S("toStringTag"),P=m.values;for(var k in d){var L=c[k],I=L&&L.prototype;if(I){if(I[R]!==P)try{M(I,R,P)}catch{I[R]=P}if(I[C]||M(I,C,k),d[k]){for(var B in m)if(I[B]!==m[B])try{M(I,B,m[B])}catch{I[B]=m[B]}}}}},df75:function(a,n,u){var c=u("ca84"),d=u("7839");a.exports=Object.keys||function(M){return c(M,d)}},e01a:function(a,n,u){var c=u("23e7"),d=u("83ab"),m=u("da84"),M=u("5135"),S=u("861d"),R=u("9bf2").f,C=u("e893"),P=m.Symbol;if(d&&typeof P=="function"&&(!("description"in P.prototype)||P().description!==void 0)){var k={},L=function(){var Y=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),ie=this instanceof L?new P(Y):Y===void 0?P():P(Y);return Y===""&&(k[ie]=!0),ie};C(L,P);var I=L.prototype=P.prototype;I.constructor=L;var B=I.toString,H=String(P("test"))=="Symbol(test)",F=/^Symbol\((.*)\)[^)]+$/;R(I,"description",{configurable:!0,get:function(){var Y=S(this)?this.valueOf():this,ie=B.call(Y);if(M(k,Y))return"";var J=H?ie.slice(7,-1):ie.replace(F,"$1");return J===""?void 0:J}}),c({global:!0,forced:!0},{Symbol:L})}},e163:function(a,n,u){var c=u("5135"),d=u("7b0b"),m=u("f772"),M=u("e177"),S=m("IE_PROTO"),R=Object.prototype;a.exports=M?Object.getPrototypeOf:function(C){return C=d(C),c(C,S)?C[S]:typeof C.constructor=="function"&&C instanceof C.constructor?C.constructor.prototype:C instanceof Object?R:null}},e177:function(a,n,u){var c=u("d039");a.exports=!c(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},e260:function(a,n,u){var c=u("fc6a"),d=u("44d2"),m=u("3f8c"),M=u("69f3"),S=u("7dd0"),R="Array Iterator",C=M.set,P=M.getterFor(R);a.exports=S(Array,"Array",function(k,L){C(this,{type:R,target:c(k),index:0,kind:L})},function(){var k=P(this),L=k.target,I=k.kind,B=k.index++;return!L||B>=L.length?(k.target=void 0,{value:void 0,done:!0}):I=="keys"?{value:B,done:!1}:I=="values"?{value:L[B],done:!1}:{value:[B,L[B]],done:!1}},"values"),m.Arguments=m.Array,d("keys"),d("values"),d("entries")},e439:function(a,n,u){var c=u("23e7"),d=u("d039"),m=u("fc6a"),M=u("06cf").f,S=u("83ab"),R=d(function(){M(1)}),C=!S||R;c({target:"Object",stat:!0,forced:C,sham:!S},{getOwnPropertyDescriptor:function(k,L){return M(m(k),L)}})},e538:function(a,n,u){var c=u("b622");n.f=c},e893:function(a,n,u){var c=u("5135"),d=u("56ef"),m=u("06cf"),M=u("9bf2");a.exports=function(S,R){for(var C=d(R),P=M.f,k=m.f,L=0;L<C.length;L++){var I=C[L];c(S,I)||P(S,I,k(R,I))}}},e8b5:function(a,n,u){var c=u("c6b6");a.exports=Array.isArray||function(m){return c(m)=="Array"}},e95a:function(a,n,u){var c=u("b622"),d=u("3f8c"),m=c("iterator"),M=Array.prototype;a.exports=function(S){return S!==void 0&&(d.Array===S||M[m]===S)}},f5df:function(a,n,u){var c=u("00ee"),d=u("c6b6"),m=u("b622"),M=m("toStringTag"),S=d(function(){return arguments}())=="Arguments",R=function(C,P){try{return C[P]}catch{}};a.exports=c?d:function(C){var P,k,L;return C===void 0?"Undefined":C===null?"Null":typeof(k=R(P=Object(C),M))=="string"?k:S?d(P):(L=d(P))=="Object"&&typeof P.callee=="function"?"Arguments":L}},f772:function(a,n,u){var c=u("5692"),d=u("90e3"),m=c("keys");a.exports=function(M){return m[M]||(m[M]=d(M))}},fb15:function(a,n,u){if(u.r(n),typeof window<"u"){var c=window.document.currentScript;{var d=u("8875");c=d(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:d})}var m=c&&c.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);m&&(u.p=m[1])}u("99af"),u("4de4"),u("4160"),u("c975"),u("d81d"),u("a434"),u("159b"),u("a4d3"),u("e439"),u("dbb4"),u("b64b");function M(de,ae,fe){return ae in de?Object.defineProperty(de,ae,{value:fe,enumerable:!0,configurable:!0,writable:!0}):de[ae]=fe,de}function S(de,ae){var fe=Object.keys(de);if(Object.getOwnPropertySymbols){var Te=Object.getOwnPropertySymbols(de);ae&&(Te=Te.filter(function(ve){return Object.getOwnPropertyDescriptor(de,ve).enumerable})),fe.push.apply(fe,Te)}return fe}function R(de){for(var ae=1;ae<arguments.length;ae++){var fe=arguments[ae]!=null?arguments[ae]:{};ae%2?S(Object(fe),!0).forEach(function(Te){M(de,Te,fe[Te])}):Object.getOwnPropertyDescriptors?Object.defineProperties(de,Object.getOwnPropertyDescriptors(fe)):S(Object(fe)).forEach(function(Te){Object.defineProperty(de,Te,Object.getOwnPropertyDescriptor(fe,Te))})}return de}function C(de){if(Array.isArray(de))return de}u("e01a"),u("d28b"),u("e260"),u("d3b7"),u("3ca3"),u("ddb0");function P(de,ae){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(de)))){var fe=[],Te=!0,ve=!1,Me=void 0;try{for(var Ke=de[Symbol.iterator](),be;!(Te=(be=Ke.next()).done)&&(fe.push(be.value),!(ae&&fe.length===ae));Te=!0);}catch(Se){ve=!0,Me=Se}finally{try{!Te&&Ke.return!=null&&Ke.return()}finally{if(ve)throw Me}}return fe}}u("a630"),u("fb6a"),u("b0c0"),u("25f0");function k(de,ae){(ae==null||ae>de.length)&&(ae=de.length);for(var fe=0,Te=new Array(ae);fe<ae;fe++)Te[fe]=de[fe];return Te}function L(de,ae){if(de){if(typeof de=="string")return k(de,ae);var fe=Object.prototype.toString.call(de).slice(8,-1);if(fe==="Object"&&de.constructor&&(fe=de.constructor.name),fe==="Map"||fe==="Set")return Array.from(de);if(fe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(fe))return k(de,ae)}}function I(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B(de,ae){return C(de)||P(de,ae)||L(de,ae)||I()}function H(de){if(Array.isArray(de))return k(de)}function F(de){if(typeof Symbol<"u"&&Symbol.iterator in Object(de))return Array.from(de)}function W(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y(de){return H(de)||F(de)||L(de)||W()}var ie=u("a352"),J=u.n(ie);function V(de){de.parentElement!==null&&de.parentElement.removeChild(de)}function oe(de,ae,fe){var Te=fe===0?de.children[0]:de.children[fe-1].nextSibling;de.insertBefore(ae,Te)}var _=u("dbf1");u("13d5"),u("4fad"),u("ac1f"),u("5319");function o(de){var ae=Object.create(null);return function(Te){var ve=ae[Te];return ve||(ae[Te]=de(Te))}}var f=/-(\w)/g,l=o(function(de){return de.replace(f,function(ae,fe){return fe.toUpperCase()})});u("5db7"),u("73d9");var h=["Start","Add","Remove","Update","End"],p=["Choose","Unchoose","Sort","Filter","Clone"],w=["Move"],x=[w,h,p].flatMap(function(de){return de}).map(function(de){return"on".concat(de)}),g={manage:w,manageAndEmit:h,emit:p};function s(de){return x.indexOf(de)!==-1}u("caad"),u("2ca0");var v=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function T(de){return v.includes(de)}function $(de){return["transition-group","TransitionGroup"].includes(de)}function G(de){return["id","class","role","style"].includes(de)||de.startsWith("data-")||de.startsWith("aria-")||de.startsWith("on")}function ee(de){return de.reduce(function(ae,fe){var Te=B(fe,2),ve=Te[0],Me=Te[1];return ae[ve]=Me,ae},{})}function A(de){var ae=de.$attrs,fe=de.componentData,Te=fe===void 0?{}:fe,ve=ee(Object.entries(ae).filter(function(Me){var Ke=B(Me,2),be=Ke[0];return Ke[1],G(be)}));return R(R({},ve),Te)}function E(de){var ae=de.$attrs,fe=de.callBackBuilder,Te=ee(U(ae));Object.entries(fe).forEach(function(Me){var Ke=B(Me,2),be=Ke[0],Se=Ke[1];g[be].forEach(function(qe){Te["on".concat(qe)]=Se(qe)})});var ve="[data-draggable]".concat(Te.draggable||"");return R(R({},Te),{},{draggable:ve})}function U(de){return Object.entries(de).filter(function(ae){var fe=B(ae,2),Te=fe[0];return fe[1],!G(Te)}).map(function(ae){var fe=B(ae,2),Te=fe[0],ve=fe[1];return[l(Te),ve]}).filter(function(ae){var fe=B(ae,2),Te=fe[0];return fe[1],!s(Te)})}u("c740");function K(de,ae){if(!(de instanceof ae))throw new TypeError("Cannot call a class as a function")}function Z(de,ae){for(var fe=0;fe<ae.length;fe++){var Te=ae[fe];Te.enumerable=Te.enumerable||!1,Te.configurable=!0,"value"in Te&&(Te.writable=!0),Object.defineProperty(de,Te.key,Te)}}function b(de,ae,fe){return ae&&Z(de.prototype,ae),fe&&Z(de,fe),de}var y=function(ae){var fe=ae.el;return fe},O=function(ae,fe){return ae.__draggable_context=fe},q=function(ae){return ae.__draggable_context},X=function(){function de(ae){var fe=ae.nodes,Te=fe.header,ve=fe.default,Me=fe.footer,Ke=ae.root,be=ae.realList;K(this,de),this.defaultNodes=ve,this.children=[].concat(Y(Te),Y(ve),Y(Me)),this.externalComponent=Ke.externalComponent,this.rootTransition=Ke.transition,this.tag=Ke.tag,this.realList=be}return b(de,[{key:"render",value:function(fe,Te){var ve=this.tag,Me=this.children,Ke=this._isRootComponent,be=Ke?{default:function(){return Me}}:Me;return fe(ve,Te,be)}},{key:"updated",value:function(){var fe=this.defaultNodes,Te=this.realList;fe.forEach(function(ve,Me){O(y(ve),{element:Te[Me],index:Me})})}},{key:"getUnderlyingVm",value:function(fe){return q(fe)}},{key:"getVmIndexFromDomIndex",value:function(fe,Te){var ve=this.defaultNodes,Me=ve.length,Ke=Te.children,be=Ke.item(fe);if(be===null)return Me;var Se=q(be);if(Se)return Se.index;if(Me===0)return 0;var qe=y(ve[0]),ye=Y(Ke).findIndex(function(_e){return _e===qe});return fe<ye?0:Me}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),de}(),D=u("8bbf");function N(de,ae){var fe=de[ae];return fe?fe():[]}function j(de){var ae=de.$slots,fe=de.realList,Te=de.getKey,ve=fe||[],Me=["header","footer"].map(function(_e){return N(ae,_e)}),Ke=B(Me,2),be=Ke[0],Se=Ke[1],qe=ae.item;if(!qe)throw new Error("draggable element must have an item slot");var ye=ve.flatMap(function(_e,Ve){return qe({element:_e,index:Ve}).map(function(ge){return ge.key=Te(_e),ge.props=R(R({},ge.props||{}),{},{"data-draggable":!0}),ge})});if(ye.length!==ve.length)throw new Error("Item slot must have only one child");return{header:be,footer:Se,default:ye}}function z(de){var ae=$(de),fe=!T(de)&&!ae;return{transition:ae,externalComponent:fe,tag:fe?Object(D.resolveComponent)(de):ae?D.TransitionGroup:de}}function se(de){var ae=de.$slots,fe=de.tag,Te=de.realList,ve=de.getKey,Me=j({$slots:ae,realList:Te,getKey:ve}),Ke=z(fe);return new X({nodes:Me,root:Ke,realList:Te})}function te(de,ae){var fe=this;Object(D.nextTick)(function(){return fe.$emit(de.toLowerCase(),ae)})}function ne(de){var ae=this;return function(fe,Te){if(ae.realList!==null)return ae["onDrag".concat(de)](fe,Te)}}function Ee(de){var ae=this,fe=ne.call(this,de);return function(Te,ve){fe.call(ae,Te,ve),te.call(ae,de,Te)}}var Q=null,ue={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(ae){return ae}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},le=["update:modelValue","change"].concat(Y([].concat(Y(g.manageAndEmit),Y(g.emit)).map(function(de){return de.toLowerCase()}))),ce=Object(D.defineComponent)({name:"draggable",inheritAttrs:!1,props:ue,emits:le,data:function(){return{error:!1}},render:function(){try{this.error=!1;var ae=this.$slots,fe=this.$attrs,Te=this.tag,ve=this.componentData,Me=this.realList,Ke=this.getKey,be=se({$slots:ae,tag:Te,realList:Me,getKey:Ke});this.componentStructure=be;var Se=A({$attrs:fe,componentData:ve});return be.render(D.h,Se)}catch(qe){return this.error=!0,Object(D.h)("pre",{style:{color:"red"}},qe.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&_.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var ae=this;if(!this.error){var fe=this.$attrs,Te=this.$el,ve=this.componentStructure;ve.updated();var Me=E({$attrs:fe,callBackBuilder:{manageAndEmit:function(Se){return Ee.call(ae,Se)},emit:function(Se){return te.bind(ae,Se)},manage:function(Se){return ne.call(ae,Se)}}}),Ke=Te.nodeType===1?Te:Te.parentElement;this._sortable=new J.a(Ke,Me),this.targetDomElement=Ke,Ke.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var ae=this.list;return ae||this.modelValue},getKey:function(){var ae=this.itemKey;return typeof ae=="function"?ae:function(fe){return fe[ae]}}},watch:{$attrs:{handler:function(ae){var fe=this._sortable;fe&&U(ae).forEach(function(Te){var ve=B(Te,2),Me=ve[0],Ke=ve[1];fe.option(Me,Ke)})},deep:!0}},methods:{getUnderlyingVm:function(ae){return this.componentStructure.getUnderlyingVm(ae)||null},getUnderlyingPotencialDraggableComponent:function(ae){return ae.__draggable_component__},emitChanges:function(ae){var fe=this;Object(D.nextTick)(function(){return fe.$emit("change",ae)})},alterList:function(ae){if(this.list){ae(this.list);return}var fe=Y(this.modelValue);ae(fe),this.$emit("update:modelValue",fe)},spliceList:function(){var ae=arguments,fe=function(ve){return ve.splice.apply(ve,Y(ae))};this.alterList(fe)},updatePosition:function(ae,fe){var Te=function(Me){return Me.splice(fe,0,Me.splice(ae,1)[0])};this.alterList(Te)},getRelatedContextFromMoveEvent:function(ae){var fe=ae.to,Te=ae.related,ve=this.getUnderlyingPotencialDraggableComponent(fe);if(!ve)return{component:ve};var Me=ve.realList,Ke={list:Me,component:ve};if(fe!==Te&&Me){var be=ve.getUnderlyingVm(Te)||{};return R(R({},be),Ke)}return Ke},getVmIndexFromDomIndex:function(ae){return this.componentStructure.getVmIndexFromDomIndex(ae,this.targetDomElement)},onDragStart:function(ae){this.context=this.getUnderlyingVm(ae.item),ae.item._underlying_vm_=this.clone(this.context.element),Q=ae.item},onDragAdd:function(ae){var fe=ae.item._underlying_vm_;if(fe!==void 0){V(ae.item);var Te=this.getVmIndexFromDomIndex(ae.newIndex);this.spliceList(Te,0,fe);var ve={element:fe,newIndex:Te};this.emitChanges({added:ve})}},onDragRemove:function(ae){if(oe(this.$el,ae.item,ae.oldIndex),ae.pullMode==="clone"){V(ae.clone);return}var fe=this.context,Te=fe.index,ve=fe.element;this.spliceList(Te,1);var Me={element:ve,oldIndex:Te};this.emitChanges({removed:Me})},onDragUpdate:function(ae){V(ae.item),oe(ae.from,ae.item,ae.oldIndex);var fe=this.context.index,Te=this.getVmIndexFromDomIndex(ae.newIndex);this.updatePosition(fe,Te);var ve={element:this.context.element,oldIndex:fe,newIndex:Te};this.emitChanges({moved:ve})},computeFutureIndex:function(ae,fe){if(!ae.element)return 0;var Te=Y(fe.to.children).filter(function(be){return be.style.display!=="none"}),ve=Te.indexOf(fe.related),Me=ae.component.getVmIndexFromDomIndex(ve),Ke=Te.indexOf(Q)!==-1;return Ke||!fe.willInsertAfter?Me:Me+1},onDragMove:function(ae,fe){var Te=this.move,ve=this.realList;if(!Te||!ve)return!0;var Me=this.getRelatedContextFromMoveEvent(ae),Ke=this.computeFutureIndex(Me,ae),be=R(R({},this.context),{},{futureIndex:Ke}),Se=R(R({},ae),{},{relatedContext:Me,draggedContext:be});return Te(Se,fe)},onDragEnd:function(){Q=null}}}),pe=ce;n.default=pe},fb6a:function(a,n,u){var c=u("23e7"),d=u("861d"),m=u("e8b5"),M=u("23cb"),S=u("50c4"),R=u("fc6a"),C=u("8418"),P=u("b622"),k=u("1dde"),L=u("ae40"),I=k("slice"),B=L("slice",{ACCESSORS:!0,0:0,1:2}),H=P("species"),F=[].slice,W=Math.max;c({target:"Array",proto:!0,forced:!I||!B},{slice:function(ie,J){var V=R(this),oe=S(V.length),_=M(ie,oe),o=M(J===void 0?oe:J,oe),f,l,h;if(m(V)&&(f=V.constructor,typeof f=="function"&&(f===Array||m(f.prototype))?f=void 0:d(f)&&(f=f[H],f===null&&(f=void 0)),f===Array||f===void 0))return F.call(V,_,o);for(l=new(f===void 0?Array:f)(W(o-_,0)),h=0;_<o;_++,h++)_ in V&&C(l,h,V[_]);return l.length=h,l}})},fc6a:function(a,n,u){var c=u("44ad"),d=u("1d80");a.exports=function(m){return c(d(m))}},fdbc:function(a,n){a.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(a,n,u){var c=u("4930");a.exports=c&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(X6);var bD=X6.exports;const HV=Lo(bD);var Su={};Su.version="1.0.0";Su.encode=function(t){return t.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")};Su.decode=function(t){return t+=Array(5-t.length%4).join("="),t=t.replace(/\-/g,"+").replace(/\_/g,"/"),new ke.Buffer(t,"base64")};Su.validate=function(t){return/^[A-Za-z0-9\-_]+$/.test(t)};var qV=Su,ct={},Dp={exports:{}},kd=65536,wD=4294967295;function _D(){throw new Error(`Secure random number generation is not supported by this browser.
-Use Chrome, Firefox or Internet Explorer 11`)}var MD=pt().Buffer,Jl=Ye.crypto||Ye.msCrypto;Jl&&Jl.getRandomValues?Dp.exports=SD:Dp.exports=_D;function SD(e,t){if(e>wD)throw new RangeError("requested too many random bytes");var r=MD.allocUnsafe(e);if(e>0)if(e>kd)for(var i=0;i<e;i+=kd)Jl.getRandomValues(r.slice(i,i+kd));else Jl.getRandomValues(r);return typeof t=="function"?we.nextTick(function(){t(null,r)}):r}var Ds=Dp.exports,Fp={exports:{}},J6=Or.EventEmitter,$d,rb;function xD(){if(rb)return $d;rb=1;function e(P,k){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(P);k&&(I=I.filter(function(B){return Object.getOwnPropertyDescriptor(P,B).enumerable})),L.push.apply(L,I)}return L}function t(P){for(var k=1;k<arguments.length;k++){var L=arguments[k]!=null?arguments[k]:{};k%2?e(Object(L),!0).forEach(function(I){r(P,I,L[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):e(Object(L)).forEach(function(I){Object.defineProperty(P,I,Object.getOwnPropertyDescriptor(L,I))})}return P}function r(P,k,L){return k=u(k),k in P?Object.defineProperty(P,k,{value:L,enumerable:!0,configurable:!0,writable:!0}):P[k]=L,P}function i(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}function a(P,k){for(var L=0;L<k.length;L++){var I=k[L];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(P,u(I.key),I)}}function n(P,k,L){return k&&a(P.prototype,k),L&&a(P,L),Object.defineProperty(P,"prototype",{writable:!1}),P}function u(P){var k=c(P,"string");return typeof k=="symbol"?k:String(k)}function c(P,k){if(typeof P!="object"||P===null)return P;var L=P[Symbol.toPrimitive];if(L!==void 0){var I=L.call(P,k||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(P)}var d=ke,m=d.Buffer,M=ei,S=M.inspect,R=S&&S.custom||"inspect";function C(P,k,L){m.prototype.copy.call(P,k,L)}return $d=function(){function P(){i(this,P),this.head=null,this.tail=null,this.length=0}return n(P,[{key:"push",value:function(L){var I={data:L,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(L){var I={data:L,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var I=this.head,B=""+I.data;I=I.next;)B+=L+I.data;return B}},{key:"concat",value:function(L){if(this.length===0)return m.alloc(0);for(var I=m.allocUnsafe(L>>>0),B=this.head,H=0;B;)C(B.data,I,H),H+=B.data.length,B=B.next;return I}},{key:"consume",value:function(L,I){var B;return L<this.head.data.length?(B=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?B=this.shift():B=I?this._getString(L):this._getBuffer(L),B}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var I=this.head,B=1,H=I.data;for(L-=H.length;I=I.next;){var F=I.data,W=L>F.length?F.length:L;if(W===F.length?H+=F:H+=F.slice(0,L),L-=W,L===0){W===F.length?(++B,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=F.slice(W));break}++B}return this.length-=B,H}},{key:"_getBuffer",value:function(L){var I=m.allocUnsafe(L),B=this.head,H=1;for(B.data.copy(I),L-=B.data.length;B=B.next;){var F=B.data,W=L>F.length?F.length:L;if(F.copy(I,I.length-L,0,W),L-=W,L===0){W===F.length?(++H,B.next?this.head=B.next:this.head=this.tail=null):(this.head=B,B.data=F.slice(W));break}++H}return this.length-=H,I}},{key:R,value:function(L,I){return S(this,t(t({},I),{},{depth:0,customInspect:!1}))}}]),P}(),$d}function ED(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,we.nextTick(jp,this,e)):we.nextTick(jp,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(n){!t&&n?r._writableState?r._writableState.errorEmitted?we.nextTick(ml,r):(r._writableState.errorEmitted=!0,we.nextTick(ib,r,n)):we.nextTick(ib,r,n):t?(we.nextTick(ml,r),t(n)):we.nextTick(ml,r)}),this)}function ib(e,t){jp(e,t),ml(e)}function ml(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function RD(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function jp(e,t){e.emit("error",t)}function AD(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}var Q6={destroy:ED,undestroy:RD,errorOrDestroy:AD},Aa={};function TD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var eS={};function Mi(e,t,r){r||(r=Error);function i(n,u,c){return typeof t=="string"?t:t(n,u,c)}var a=function(n){TD(u,n);function u(c,d,m){return n.call(this,i(c,d,m))||this}return u}(r);a.prototype.name=r.name,a.prototype.code=e,eS[e]=a}function nb(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function OD(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function ID(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function PD(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Mi("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Mi("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&OD(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var a;if(ID(e," argument"))a="The ".concat(e," ").concat(i," ").concat(nb(t,"type"));else{var n=PD(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(n," ").concat(i," ").concat(nb(t,"type"))}return a+=". Received type ".concat(typeof r),a},TypeError);Mi("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Mi("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Mi("ERR_STREAM_PREMATURE_CLOSE","Premature close");Mi("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Mi("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Mi("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Mi("ERR_STREAM_WRITE_AFTER_END","write after end");Mi("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Mi("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Mi("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Aa.codes=eS;var CD=Aa.codes.ERR_INVALID_OPT_VALUE;function BD(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function LD(e,t,r,i){var a=BD(t,i,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var n=i?r:"highWaterMark";throw new CD(n,a)}return Math.floor(a)}return e.objectMode?16:16*1024}var tS={getHighWaterMark:LD},Dd,ob;function rS(){if(ob)return Dd;ob=1,Dd=J;function e(A){var E=this;this.next=null,this.entry=null,this.finish=function(){ee(E,A)}}var t;J.WritableState=Y;var r={deprecate:ks},i=J6,a=ke.Buffer,n=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(A){return a.from(A)}function c(A){return a.isBuffer(A)||A instanceof n}var d=Q6,m=tS,M=m.getHighWaterMark,S=Aa.codes,R=S.ERR_INVALID_ARG_TYPE,C=S.ERR_METHOD_NOT_IMPLEMENTED,P=S.ERR_MULTIPLE_CALLBACK,k=S.ERR_STREAM_CANNOT_PIPE,L=S.ERR_STREAM_DESTROYED,I=S.ERR_STREAM_NULL_VALUES,B=S.ERR_STREAM_WRITE_AFTER_END,H=S.ERR_UNKNOWN_ENCODING,F=d.errorOrDestroy;Ze(J,i);function W(){}function Y(A,E,U){t=t||bs(),A=A||{},typeof U!="boolean"&&(U=E instanceof t),this.objectMode=!!A.objectMode,U&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=M(this,A,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=A.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){p(E,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}Y.prototype.getBuffer=function(){for(var E=this.bufferedRequest,U=[];E;)U.push(E),E=E.next;return U},function(){try{Object.defineProperty(Y.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ie;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ie=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(E){return ie.call(this,E)?!0:this!==J?!1:E&&E._writableState instanceof Y}})):ie=function(E){return E instanceof this};function J(A){t=t||bs();var E=this instanceof t;if(!E&&!ie.call(J,this))return new J(A);this._writableState=new Y(A,this,E),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),i.call(this)}J.prototype.pipe=function(){F(this,new k)};function V(A,E){var U=new B;F(A,U),we.nextTick(E,U)}function oe(A,E,U,K){var Z;return U===null?Z=new I:typeof U!="string"&&!E.objectMode&&(Z=new R("chunk",["string","Buffer"],U)),Z?(F(A,Z),we.nextTick(K,Z),!1):!0}J.prototype.write=function(A,E,U){var K=this._writableState,Z=!1,b=!K.objectMode&&c(A);return b&&!a.isBuffer(A)&&(A=u(A)),typeof E=="function"&&(U=E,E=null),b?E="buffer":E||(E=K.defaultEncoding),typeof U!="function"&&(U=W),K.ending?V(this,U):(b||oe(this,K,A,U))&&(K.pendingcb++,Z=o(this,K,b,A,E,U)),Z},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&g(this,A))},J.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new H(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _(A,E,U){return!A.objectMode&&A.decodeStrings!==!1&&typeof E=="string"&&(E=a.from(E,U)),E}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(A,E,U,K,Z,b){if(!U){var y=_(E,K,Z);K!==y&&(U=!0,Z="buffer",K=y)}var O=E.objectMode?1:K.length;E.length+=O;var q=E.length<E.highWaterMark;if(q||(E.needDrain=!0),E.writing||E.corked){var X=E.lastBufferedRequest;E.lastBufferedRequest={chunk:K,encoding:Z,isBuf:U,callback:b,next:null},X?X.next=E.lastBufferedRequest:E.bufferedRequest=E.lastBufferedRequest,E.bufferedRequestCount+=1}else f(A,E,!1,O,K,Z,b);return q}function f(A,E,U,K,Z,b,y){E.writelen=K,E.writecb=y,E.writing=!0,E.sync=!0,E.destroyed?E.onwrite(new L("write")):U?A._writev(Z,E.onwrite):A._write(Z,b,E.onwrite),E.sync=!1}function l(A,E,U,K,Z){--E.pendingcb,U?(we.nextTick(Z,K),we.nextTick($,A,E),A._writableState.errorEmitted=!0,F(A,K)):(Z(K),A._writableState.errorEmitted=!0,F(A,K),$(A,E))}function h(A){A.writing=!1,A.writecb=null,A.length-=A.writelen,A.writelen=0}function p(A,E){var U=A._writableState,K=U.sync,Z=U.writecb;if(typeof Z!="function")throw new P;if(h(U),E)l(A,U,K,E,Z);else{var b=s(U)||A.destroyed;!b&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&g(A,U),K?we.nextTick(w,A,U,b,Z):w(A,U,b,Z)}}function w(A,E,U,K){U||x(A,E),E.pendingcb--,K(),$(A,E)}function x(A,E){E.length===0&&E.needDrain&&(E.needDrain=!1,A.emit("drain"))}function g(A,E){E.bufferProcessing=!0;var U=E.bufferedRequest;if(A._writev&&U&&U.next){var K=E.bufferedRequestCount,Z=new Array(K),b=E.corkedRequestsFree;b.entry=U;for(var y=0,O=!0;U;)Z[y]=U,U.isBuf||(O=!1),U=U.next,y+=1;Z.allBuffers=O,f(A,E,!0,E.length,Z,"",b.finish),E.pendingcb++,E.lastBufferedRequest=null,b.next?(E.corkedRequestsFree=b.next,b.next=null):E.corkedRequestsFree=new e(E),E.bufferedRequestCount=0}else{for(;U;){var q=U.chunk,X=U.encoding,D=U.callback,N=E.objectMode?1:q.length;if(f(A,E,!1,N,q,X,D),U=U.next,E.bufferedRequestCount--,E.writing)break}U===null&&(E.lastBufferedRequest=null)}E.bufferedRequest=U,E.bufferProcessing=!1}J.prototype._write=function(A,E,U){U(new C("_write()"))},J.prototype._writev=null,J.prototype.end=function(A,E,U){var K=this._writableState;return typeof A=="function"?(U=A,A=null,E=null):typeof E=="function"&&(U=E,E=null),A!=null&&this.write(A,E),K.corked&&(K.corked=1,this.uncork()),K.ending||G(this,K,U),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function v(A,E){A._final(function(U){E.pendingcb--,U&&F(A,U),E.prefinished=!0,A.emit("prefinish"),$(A,E)})}function T(A,E){!E.prefinished&&!E.finalCalled&&(typeof A._final=="function"&&!E.destroyed?(E.pendingcb++,E.finalCalled=!0,we.nextTick(v,A,E)):(E.prefinished=!0,A.emit("prefinish")))}function $(A,E){var U=s(E);if(U&&(T(A,E),E.pendingcb===0&&(E.finished=!0,A.emit("finish"),E.autoDestroy))){var K=A._readableState;(!K||K.autoDestroy&&K.endEmitted)&&A.destroy()}return U}function G(A,E,U){E.ending=!0,$(A,E),U&&(E.finished?we.nextTick(U):A.once("finish",U)),E.ended=!0,A.writable=!1}function ee(A,E,U){var K=A.entry;for(A.entry=null;K;){var Z=K.callback;E.pendingcb--,Z(U),K=K.next}E.corkedRequestsFree.next=A}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),J.prototype.destroy=d.destroy,J.prototype._undestroy=d.undestroy,J.prototype._destroy=function(A,E){E(A)},Dd}var Fd,ab;function bs(){if(ab)return Fd;ab=1;var e=Object.keys||function(m){var M=[];for(var S in m)M.push(S);return M};Fd=u;var t=nS(),r=rS();Ze(u,t);for(var i=e(r.prototype),a=0;a<i.length;a++){var n=i[a];u.prototype[n]||(u.prototype[n]=r.prototype[n])}function u(m){if(!(this instanceof u))return new u(m);t.call(this,m),r.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||we.nextTick(d,this)}function d(m){m.end()}return Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(M){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=M,this._writableState.destroyed=M)}}),Fd}var sb=Aa.codes.ERR_STREAM_PREMATURE_CLOSE;function ND(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];e.apply(this,i)}}}function kD(){}function $D(e){return e.setHeader&&typeof e.abort=="function"}function iS(e,t,r){if(typeof t=="function")return iS(e,null,t);t||(t={}),r=ND(r||kD);var i=t.readable||t.readable!==!1&&e.readable,a=t.writable||t.writable!==!1&&e.writable,n=function(){e.writable||c()},u=e._writableState&&e._writableState.finished,c=function(){a=!1,u=!0,i||r.call(e)},d=e._readableState&&e._readableState.endEmitted,m=function(){i=!1,d=!0,a||r.call(e)},M=function(P){r.call(e,P)},S=function(){var P;if(i&&!d)return(!e._readableState||!e._readableState.ended)&&(P=new sb),r.call(e,P);if(a&&!u)return(!e._writableState||!e._writableState.ended)&&(P=new sb),r.call(e,P)},R=function(){e.req.on("finish",c)};return $D(e)?(e.on("complete",c),e.on("abort",S),e.req?R():e.on("request",R)):a&&!e._writableState&&(e.on("end",n),e.on("close",n)),e.on("end",m),e.on("finish",c),t.error!==!1&&e.on("error",M),e.on("close",S),function(){e.removeListener("complete",c),e.removeListener("abort",S),e.removeListener("request",R),e.req&&e.req.removeListener("finish",c),e.removeListener("end",n),e.removeListener("close",n),e.removeListener("finish",c),e.removeListener("end",m),e.removeListener("error",M),e.removeListener("close",S)}}var pg=iS,jd,fb;function DD(){if(fb)return jd;fb=1;var e;function t(H,F,W){return F=r(F),F in H?Object.defineProperty(H,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):H[F]=W,H}function r(H){var F=i(H,"string");return typeof F=="symbol"?F:String(F)}function i(H,F){if(typeof H!="object"||H===null)return H;var W=H[Symbol.toPrimitive];if(W!==void 0){var Y=W.call(H,F||"default");if(typeof Y!="object")return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(H)}var a=pg,n=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),M=Symbol("handlePromise"),S=Symbol("stream");function R(H,F){return{value:H,done:F}}function C(H){var F=H[n];if(F!==null){var W=H[S].read();W!==null&&(H[m]=null,H[n]=null,H[u]=null,F(R(W,!1)))}}function P(H){we.nextTick(C,H)}function k(H,F){return function(W,Y){H.then(function(){if(F[d]){W(R(void 0,!0));return}F[M](W,Y)},Y)}}var L=Object.getPrototypeOf(function(){}),I=Object.setPrototypeOf((e={get stream(){return this[S]},next:function(){var F=this,W=this[c];if(W!==null)return Promise.reject(W);if(this[d])return Promise.resolve(R(void 0,!0));if(this[S].destroyed)return new Promise(function(V,oe){we.nextTick(function(){F[c]?oe(F[c]):V(R(void 0,!0))})});var Y=this[m],ie;if(Y)ie=new Promise(k(Y,this));else{var J=this[S].read();if(J!==null)return Promise.resolve(R(J,!1));ie=new Promise(this[M])}return this[m]=ie,ie}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var F=this;return new Promise(function(W,Y){F[S].destroy(null,function(ie){if(ie){Y(ie);return}W(R(void 0,!0))})})}),e),L),B=function(F){var W,Y=Object.create(I,(W={},t(W,S,{value:F,writable:!0}),t(W,n,{value:null,writable:!0}),t(W,u,{value:null,writable:!0}),t(W,c,{value:null,writable:!0}),t(W,d,{value:F._readableState.endEmitted,writable:!0}),t(W,M,{value:function(J,V){var oe=Y[S].read();oe?(Y[m]=null,Y[n]=null,Y[u]=null,J(R(oe,!1))):(Y[n]=J,Y[u]=V)},writable:!0}),W));return Y[m]=null,a(F,function(ie){if(ie&&ie.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=Y[u];J!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,J(ie)),Y[c]=ie;return}var V=Y[n];V!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,V(R(void 0,!0))),Y[d]=!0}),F.on("readable",P.bind(null,Y)),Y};return jd=B,jd}var Ud,ub;function FD(){return ub||(ub=1,Ud=function(){throw new Error("Readable.from is not available in the browser")}),Ud}var Hd,lb;function nS(){if(lb)return Hd;lb=1,Hd=V;var e;V.ReadableState=J,Or.EventEmitter;var t=function(y,O){return y.listeners(O).length},r=J6,i=ke.Buffer,a=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function n(b){return i.from(b)}function u(b){return i.isBuffer(b)||b instanceof a}var c=ei,d;c&&c.debuglog?d=c.debuglog("stream"):d=function(){};var m=xD(),M=Q6,S=tS,R=S.getHighWaterMark,C=Aa.codes,P=C.ERR_INVALID_ARG_TYPE,k=C.ERR_STREAM_PUSH_AFTER_EOF,L=C.ERR_METHOD_NOT_IMPLEMENTED,I=C.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,B,H,F;Ze(V,r);var W=M.errorOrDestroy,Y=["error","close","destroy","pause","resume"];function ie(b,y,O){if(typeof b.prependListener=="function")return b.prependListener(y,O);!b._events||!b._events[y]?b.on(y,O):Array.isArray(b._events[y])?b._events[y].unshift(O):b._events[y]=[O,b._events[y]]}function J(b,y,O){e=e||bs(),b=b||{},typeof O!="boolean"&&(O=y instanceof e),this.objectMode=!!b.objectMode,O&&(this.objectMode=this.objectMode||!!b.readableObjectMode),this.highWaterMark=R(this,b,"readableHighWaterMark",O),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=b.emitClose!==!1,this.autoDestroy=!!b.autoDestroy,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(B||(B=Xr().StringDecoder),this.decoder=new B(b.encoding),this.encoding=b.encoding)}function V(b){if(e=e||bs(),!(this instanceof V))return new V(b);var y=this instanceof e;this._readableState=new J(b,this,y),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),r.call(this)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(y){this._readableState&&(this._readableState.destroyed=y)}}),V.prototype.destroy=M.destroy,V.prototype._undestroy=M.undestroy,V.prototype._destroy=function(b,y){y(b)},V.prototype.push=function(b,y){var O=this._readableState,q;return O.objectMode?q=!0:typeof b=="string"&&(y=y||O.defaultEncoding,y!==O.encoding&&(b=i.from(b,y),y=""),q=!0),oe(this,b,y,!1,q)},V.prototype.unshift=function(b){return oe(this,b,null,!0,!1)};function oe(b,y,O,q,X){d("readableAddChunk",y);var D=b._readableState;if(y===null)D.reading=!1,p(b,D);else{var N;if(X||(N=o(D,y)),N)W(b,N);else if(D.objectMode||y&&y.length>0)if(typeof y!="string"&&!D.objectMode&&Object.getPrototypeOf(y)!==i.prototype&&(y=n(y)),q)D.endEmitted?W(b,new I):_(b,D,y,!0);else if(D.ended)W(b,new k);else{if(D.destroyed)return!1;D.reading=!1,D.decoder&&!O?(y=D.decoder.write(y),D.objectMode||y.length!==0?_(b,D,y,!1):g(b,D)):_(b,D,y,!1)}else q||(D.reading=!1,g(b,D))}return!D.ended&&(D.length<D.highWaterMark||D.length===0)}function _(b,y,O,q){y.flowing&&y.length===0&&!y.sync?(y.awaitDrain=0,b.emit("data",O)):(y.length+=y.objectMode?1:O.length,q?y.buffer.unshift(O):y.buffer.push(O),y.needReadable&&w(b)),g(b,y)}function o(b,y){var O;return!u(y)&&typeof y!="string"&&y!==void 0&&!b.objectMode&&(O=new P("chunk",["string","Buffer","Uint8Array"],y)),O}V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(b){B||(B=Xr().StringDecoder);var y=new B(b);this._readableState.decoder=y,this._readableState.encoding=this._readableState.decoder.encoding;for(var O=this._readableState.buffer.head,q="";O!==null;)q+=y.write(O.data),O=O.next;return this._readableState.buffer.clear(),q!==""&&this._readableState.buffer.push(q),this._readableState.length=q.length,this};var f=1073741824;function l(b){return b>=f?b=f:(b--,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,b|=b>>>16,b++),b}function h(b,y){return b<=0||y.length===0&&y.ended?0:y.objectMode?1:b!==b?y.flowing&&y.length?y.buffer.head.data.length:y.length:(b>y.highWaterMark&&(y.highWaterMark=l(b)),b<=y.length?b:y.ended?y.length:(y.needReadable=!0,0))}V.prototype.read=function(b){d("read",b),b=parseInt(b,10);var y=this._readableState,O=b;if(b!==0&&(y.emittedReadable=!1),b===0&&y.needReadable&&((y.highWaterMark!==0?y.length>=y.highWaterMark:y.length>0)||y.ended))return d("read: emitReadable",y.length,y.ended),y.length===0&&y.ended?U(this):w(this),null;if(b=h(b,y),b===0&&y.ended)return y.length===0&&U(this),null;var q=y.needReadable;d("need readable",q),(y.length===0||y.length-b<y.highWaterMark)&&(q=!0,d("length less than watermark",q)),y.ended||y.reading?(q=!1,d("reading or ended",q)):q&&(d("do read"),y.reading=!0,y.sync=!0,y.length===0&&(y.needReadable=!0),this._read(y.highWaterMark),y.sync=!1,y.reading||(b=h(O,y)));var X;return b>0?X=E(b,y):X=null,X===null?(y.needReadable=y.length<=y.highWaterMark,b=0):(y.length-=b,y.awaitDrain=0),y.length===0&&(y.ended||(y.needReadable=!0),O!==b&&y.ended&&U(this)),X!==null&&this.emit("data",X),X};function p(b,y){if(d("onEofChunk"),!y.ended){if(y.decoder){var O=y.decoder.end();O&&O.length&&(y.buffer.push(O),y.length+=y.objectMode?1:O.length)}y.ended=!0,y.sync?w(b):(y.needReadable=!1,y.emittedReadable||(y.emittedReadable=!0,x(b)))}}function w(b){var y=b._readableState;d("emitReadable",y.needReadable,y.emittedReadable),y.needReadable=!1,y.emittedReadable||(d("emitReadable",y.flowing),y.emittedReadable=!0,we.nextTick(x,b))}function x(b){var y=b._readableState;d("emitReadable_",y.destroyed,y.length,y.ended),!y.destroyed&&(y.length||y.ended)&&(b.emit("readable"),y.emittedReadable=!1),y.needReadable=!y.flowing&&!y.ended&&y.length<=y.highWaterMark,A(b)}function g(b,y){y.readingMore||(y.readingMore=!0,we.nextTick(s,b,y))}function s(b,y){for(;!y.reading&&!y.ended&&(y.length<y.highWaterMark||y.flowing&&y.length===0);){var O=y.length;if(d("maybeReadMore read 0"),b.read(0),O===y.length)break}y.readingMore=!1}V.prototype._read=function(b){W(this,new L("_read()"))},V.prototype.pipe=function(b,y){var O=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=b;break;case 1:q.pipes=[q.pipes,b];break;default:q.pipes.push(b);break}q.pipesCount+=1,d("pipe count=%d opts=%j",q.pipesCount,y);var X=(!y||y.end!==!1)&&b!==we.stdout&&b!==we.stderr,D=X?j:le;q.endEmitted?we.nextTick(D):O.once("end",D),b.on("unpipe",N);function N(ce,pe){d("onunpipe"),ce===O&&pe&&pe.hasUnpiped===!1&&(pe.hasUnpiped=!0,te())}function j(){d("onend"),b.end()}var z=v(O);b.on("drain",z);var se=!1;function te(){d("cleanup"),b.removeListener("close",Q),b.removeListener("finish",ue),b.removeListener("drain",z),b.removeListener("error",Ee),b.removeListener("unpipe",N),O.removeListener("end",j),O.removeListener("end",le),O.removeListener("data",ne),se=!0,q.awaitDrain&&(!b._writableState||b._writableState.needDrain)&&z()}O.on("data",ne);function ne(ce){d("ondata");var pe=b.write(ce);d("dest.write",pe),pe===!1&&((q.pipesCount===1&&q.pipes===b||q.pipesCount>1&&Z(q.pipes,b)!==-1)&&!se&&(d("false write response, pause",q.awaitDrain),q.awaitDrain++),O.pause())}function Ee(ce){d("onerror",ce),le(),b.removeListener("error",Ee),t(b,"error")===0&&W(b,ce)}ie(b,"error",Ee);function Q(){b.removeListener("finish",ue),le()}b.once("close",Q);function ue(){d("onfinish"),b.removeListener("close",Q),le()}b.once("finish",ue);function le(){d("unpipe"),O.unpipe(b)}return b.emit("pipe",O),q.flowing||(d("pipe resume"),O.resume()),b};function v(b){return function(){var O=b._readableState;d("pipeOnDrain",O.awaitDrain),O.awaitDrain&&O.awaitDrain--,O.awaitDrain===0&&t(b,"data")&&(O.flowing=!0,A(b))}}V.prototype.unpipe=function(b){var y=this._readableState,O={hasUnpiped:!1};if(y.pipesCount===0)return this;if(y.pipesCount===1)return b&&b!==y.pipes?this:(b||(b=y.pipes),y.pipes=null,y.pipesCount=0,y.flowing=!1,b&&b.emit("unpipe",this,O),this);if(!b){var q=y.pipes,X=y.pipesCount;y.pipes=null,y.pipesCount=0,y.flowing=!1;for(var D=0;D<X;D++)q[D].emit("unpipe",this,{hasUnpiped:!1});return this}var N=Z(y.pipes,b);return N===-1?this:(y.pipes.splice(N,1),y.pipesCount-=1,y.pipesCount===1&&(y.pipes=y.pipes[0]),b.emit("unpipe",this,O),this)},V.prototype.on=function(b,y){var O=r.prototype.on.call(this,b,y),q=this._readableState;return b==="data"?(q.readableListening=this.listenerCount("readable")>0,q.flowing!==!1&&this.resume()):b==="readable"&&!q.endEmitted&&!q.readableListening&&(q.readableListening=q.needReadable=!0,q.flowing=!1,q.emittedReadable=!1,d("on readable",q.length,q.reading),q.length?w(this):q.reading||we.nextTick($,this)),O},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(b,y){var O=r.prototype.removeListener.call(this,b,y);return b==="readable"&&we.nextTick(T,this),O},V.prototype.removeAllListeners=function(b){var y=r.prototype.removeAllListeners.apply(this,arguments);return(b==="readable"||b===void 0)&&we.nextTick(T,this),y};function T(b){var y=b._readableState;y.readableListening=b.listenerCount("readable")>0,y.resumeScheduled&&!y.paused?y.flowing=!0:b.listenerCount("data")>0&&b.resume()}function $(b){d("readable nexttick read 0"),b.read(0)}V.prototype.resume=function(){var b=this._readableState;return b.flowing||(d("resume"),b.flowing=!b.readableListening,G(this,b)),b.paused=!1,this};function G(b,y){y.resumeScheduled||(y.resumeScheduled=!0,we.nextTick(ee,b,y))}function ee(b,y){d("resume",y.reading),y.reading||b.read(0),y.resumeScheduled=!1,b.emit("resume"),A(b),y.flowing&&!y.reading&&b.read(0)}V.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function A(b){var y=b._readableState;for(d("flow",y.flowing);y.flowing&&b.read()!==null;);}V.prototype.wrap=function(b){var y=this,O=this._readableState,q=!1;b.on("end",function(){if(d("wrapped end"),O.decoder&&!O.ended){var N=O.decoder.end();N&&N.length&&y.push(N)}y.push(null)}),b.on("data",function(N){if(d("wrapped data"),O.decoder&&(N=O.decoder.write(N)),!(O.objectMode&&N==null)&&!(!O.objectMode&&(!N||!N.length))){var j=y.push(N);j||(q=!0,b.pause())}});for(var X in b)this[X]===void 0&&typeof b[X]=="function"&&(this[X]=function(j){return function(){return b[j].apply(b,arguments)}}(X));for(var D=0;D<Y.length;D++)b.on(Y[D],this.emit.bind(this,Y[D]));return this._read=function(N){d("wrapped _read",N),q&&(q=!1,b.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return H===void 0&&(H=DD()),H(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(y){this._readableState&&(this._readableState.flowing=y)}}),V._fromList=E,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function E(b,y){if(y.length===0)return null;var O;return y.objectMode?O=y.buffer.shift():!b||b>=y.length?(y.decoder?O=y.buffer.join(""):y.buffer.length===1?O=y.buffer.first():O=y.buffer.concat(y.length),y.buffer.clear()):O=y.buffer.consume(b,y.decoder),O}function U(b){var y=b._readableState;d("endReadable",y.endEmitted),y.endEmitted||(y.ended=!0,we.nextTick(K,y,b))}function K(b,y){if(d("endReadableNT",b.endEmitted,b.length),!b.endEmitted&&b.length===0&&(b.endEmitted=!0,y.readable=!1,y.emit("end"),b.autoDestroy)){var O=y._writableState;(!O||O.autoDestroy&&O.finished)&&y.destroy()}}typeof Symbol=="function"&&(V.from=function(b,y){return F===void 0&&(F=FD()),F(V,b,y)});function Z(b,y){for(var O=0,q=b.length;O<q;O++)if(b[O]===y)return O;return-1}return Hd}var oS=Fn,zh=Aa.codes,jD=zh.ERR_METHOD_NOT_IMPLEMENTED,UD=zh.ERR_MULTIPLE_CALLBACK,HD=zh.ERR_TRANSFORM_ALREADY_TRANSFORMING,qD=zh.ERR_TRANSFORM_WITH_LENGTH_0,Gh=bs();Ze(Fn,Gh);function WD(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new UD);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function Fn(e){if(!(this instanceof Fn))return new Fn(e);Gh.call(this,e),this._transformState={afterTransform:WD.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",KD)}function KD(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){hb(e,t,r)}):hb(this,null,null)}Fn.prototype.push=function(e,t){return this._transformState.needTransform=!1,Gh.prototype.push.call(this,e,t)};Fn.prototype._transform=function(e,t,r){r(new jD("_transform()"))};Fn.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};Fn.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Fn.prototype._destroy=function(e,t){Gh.prototype._destroy.call(this,e,function(r){t(r)})};function hb(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new qD;if(e._transformState.transforming)throw new HD;return e.push(null)}var VD=nu,aS=oS;Ze(nu,aS);function nu(e){if(!(this instanceof nu))return new nu(e);aS.call(this,e)}nu.prototype._transform=function(e,t,r){r(null,e)};var qd;function zD(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var sS=Aa.codes,GD=sS.ERR_MISSING_ARGS,YD=sS.ERR_STREAM_DESTROYED;function cb(e){if(e)throw e}function ZD(e){return e.setHeader&&typeof e.abort=="function"}function XD(e,t,r,i){i=zD(i);var a=!1;e.on("close",function(){a=!0}),qd===void 0&&(qd=pg),qd(e,{readable:t,writable:r},function(u){if(u)return i(u);a=!0,i()});var n=!1;return function(u){if(!a&&!n){if(n=!0,ZD(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(u||new YD("pipe"))}}}function db(e){e()}function JD(e,t){return e.pipe(t)}function QD(e){return!e.length||typeof e[e.length-1]!="function"?cb:e.pop()}function eF(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=QD(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new GD("streams");var a,n=t.map(function(u,c){var d=c<t.length-1,m=c>0;return XD(u,d,m,function(M){a||(a=M),M&&n.forEach(db),!d&&(n.forEach(db),i(a))})});return t.reduce(JD)}var tF=eF;(function(e,t){t=e.exports=nS(),t.Stream=t,t.Readable=t,t.Writable=rS(),t.Duplex=bs(),t.Transform=oS,t.PassThrough=VD,t.finished=pg,t.pipeline=tF})(Fp,Fp.exports);var rF=Fp.exports,Ql=pt().Buffer,fS=rF.Transform,iF=Ze;function nF(e,t){if(!Ql.isBuffer(e)&&typeof e!="string")throw new TypeError(t+" must be a string or a buffer")}function ko(e){fS.call(this),this._block=Ql.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}iF(ko,fS);ko.prototype._transform=function(e,t,r){var i=null;try{this.update(e,t)}catch(a){i=a}r(i)};ko.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)};ko.prototype.update=function(e,t){if(nF(e,"Data"),this._finalized)throw new Error("Digest already called");Ql.isBuffer(e)||(e=Ql.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var a=this._blockOffset;a<this._blockSize;)r[a++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var n=0,u=e.length*8;u>0;++n)this._length[n]+=u,u=this._length[n]/4294967296|0,u>0&&(this._length[n]-=4294967296*u);return this};ko.prototype._update=function(){throw new Error("_update is not implemented")};ko.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();e!==void 0&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t};ko.prototype._digest=function(){throw new Error("_digest is not implemented")};var uS=ko,oF=Ze,lS=uS,aF=pt().Buffer,sF=new Array(16);function Yh(){lS.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}oF(Yh,lS);Yh.prototype._update=function(){for(var e=sF,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);var r=this._a,i=this._b,a=this._c,n=this._d;r=_r(r,i,a,n,e[0],3614090360,7),n=_r(n,r,i,a,e[1],3905402710,12),a=_r(a,n,r,i,e[2],606105819,17),i=_r(i,a,n,r,e[3],3250441966,22),r=_r(r,i,a,n,e[4],4118548399,7),n=_r(n,r,i,a,e[5],1200080426,12),a=_r(a,n,r,i,e[6],2821735955,17),i=_r(i,a,n,r,e[7],4249261313,22),r=_r(r,i,a,n,e[8],1770035416,7),n=_r(n,r,i,a,e[9],2336552879,12),a=_r(a,n,r,i,e[10],4294925233,17),i=_r(i,a,n,r,e[11],2304563134,22),r=_r(r,i,a,n,e[12],1804603682,7),n=_r(n,r,i,a,e[13],4254626195,12),a=_r(a,n,r,i,e[14],2792965006,17),i=_r(i,a,n,r,e[15],1236535329,22),r=Mr(r,i,a,n,e[1],4129170786,5),n=Mr(n,r,i,a,e[6],3225465664,9),a=Mr(a,n,r,i,e[11],643717713,14),i=Mr(i,a,n,r,e[0],3921069994,20),r=Mr(r,i,a,n,e[5],3593408605,5),n=Mr(n,r,i,a,e[10],38016083,9),a=Mr(a,n,r,i,e[15],3634488961,14),i=Mr(i,a,n,r,e[4],3889429448,20),r=Mr(r,i,a,n,e[9],568446438,5),n=Mr(n,r,i,a,e[14],3275163606,9),a=Mr(a,n,r,i,e[3],4107603335,14),i=Mr(i,a,n,r,e[8],1163531501,20),r=Mr(r,i,a,n,e[13],2850285829,5),n=Mr(n,r,i,a,e[2],4243563512,9),a=Mr(a,n,r,i,e[7],1735328473,14),i=Mr(i,a,n,r,e[12],2368359562,20),r=Sr(r,i,a,n,e[5],4294588738,4),n=Sr(n,r,i,a,e[8],2272392833,11),a=Sr(a,n,r,i,e[11],1839030562,16),i=Sr(i,a,n,r,e[14],4259657740,23),r=Sr(r,i,a,n,e[1],2763975236,4),n=Sr(n,r,i,a,e[4],1272893353,11),a=Sr(a,n,r,i,e[7],4139469664,16),i=Sr(i,a,n,r,e[10],3200236656,23),r=Sr(r,i,a,n,e[13],681279174,4),n=Sr(n,r,i,a,e[0],3936430074,11),a=Sr(a,n,r,i,e[3],3572445317,16),i=Sr(i,a,n,r,e[6],76029189,23),r=Sr(r,i,a,n,e[9],3654602809,4),n=Sr(n,r,i,a,e[12],3873151461,11),a=Sr(a,n,r,i,e[15],530742520,16),i=Sr(i,a,n,r,e[2],3299628645,23),r=xr(r,i,a,n,e[0],4096336452,6),n=xr(n,r,i,a,e[7],1126891415,10),a=xr(a,n,r,i,e[14],2878612391,15),i=xr(i,a,n,r,e[5],4237533241,21),r=xr(r,i,a,n,e[12],1700485571,6),n=xr(n,r,i,a,e[3],2399980690,10),a=xr(a,n,r,i,e[10],4293915773,15),i=xr(i,a,n,r,e[1],2240044497,21),r=xr(r,i,a,n,e[8],1873313359,6),n=xr(n,r,i,a,e[15],4264355552,10),a=xr(a,n,r,i,e[6],2734768916,15),i=xr(i,a,n,r,e[13],1309151649,21),r=xr(r,i,a,n,e[4],4149444226,6),n=xr(n,r,i,a,e[11],3174756917,10),a=xr(a,n,r,i,e[2],718787259,15),i=xr(i,a,n,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+i|0,this._c=this._c+a|0,this._d=this._d+n|0};Yh.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=aF.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e};function Zh(e,t){return e<<t|e>>>32-t}function _r(e,t,r,i,a,n,u){return Zh(e+(t&r|~t&i)+a+n|0,u)+t|0}function Mr(e,t,r,i,a,n,u){return Zh(e+(t&i|r&~i)+a+n|0,u)+t|0}function Sr(e,t,r,i,a,n,u){return Zh(e+(t^r^i)+a+n|0,u)+t|0}function xr(e,t,r,i,a,n,u){return Zh(e+(r^(t|~i))+a+n|0,u)+t|0}var vg=Yh,Wd=ke.Buffer,fF=Ze,hS=uS,uF=new Array(16),lf=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],hf=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],cf=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],df=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],pf=[0,1518500249,1859775393,2400959708,2840853838],vf=[1352829926,1548603684,1836072691,2053994217,0];function Xh(){hS.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}fF(Xh,hS);Xh.prototype._update=function(){for(var e=uF,t=0;t<16;++t)e[t]=this._block.readInt32LE(t*4);for(var r=this._a|0,i=this._b|0,a=this._c|0,n=this._d|0,u=this._e|0,c=this._a|0,d=this._b|0,m=this._c|0,M=this._d|0,S=this._e|0,R=0;R<80;R+=1){var C,P;R<16?(C=pb(r,i,a,n,u,e[lf[R]],pf[0],cf[R]),P=yb(c,d,m,M,S,e[hf[R]],vf[0],df[R])):R<32?(C=vb(r,i,a,n,u,e[lf[R]],pf[1],cf[R]),P=mb(c,d,m,M,S,e[hf[R]],vf[1],df[R])):R<48?(C=gb(r,i,a,n,u,e[lf[R]],pf[2],cf[R]),P=gb(c,d,m,M,S,e[hf[R]],vf[2],df[R])):R<64?(C=mb(r,i,a,n,u,e[lf[R]],pf[3],cf[R]),P=vb(c,d,m,M,S,e[hf[R]],vf[3],df[R])):(C=yb(r,i,a,n,u,e[lf[R]],pf[4],cf[R]),P=pb(c,d,m,M,S,e[hf[R]],vf[4],df[R])),r=u,u=n,n=ca(a,10),a=i,i=C,c=S,S=M,M=ca(m,10),m=d,d=P}var k=this._b+a+M|0;this._b=this._c+n+S|0,this._c=this._d+u+c|0,this._d=this._e+r+d|0,this._e=this._a+i+m|0,this._a=k};Xh.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=Wd.alloc?Wd.alloc(20):new Wd(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e};function ca(e,t){return e<<t|e>>>32-t}function pb(e,t,r,i,a,n,u,c){return ca(e+(t^r^i)+n+u|0,c)+a|0}function vb(e,t,r,i,a,n,u,c){return ca(e+(t&r|~t&i)+n+u|0,c)+a|0}function gb(e,t,r,i,a,n,u,c){return ca(e+((t|~r)^i)+n+u|0,c)+a|0}function mb(e,t,r,i,a,n,u,c){return ca(e+(t&i|r&~i)+n+u|0,c)+a|0}function yb(e,t,r,i,a,n,u,c){return ca(e+(t^(r|~i))+n+u|0,c)+a|0}var gg=Xh,cS={exports:{}},dS=pt().Buffer;function Jh(e,t){this._block=dS.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}Jh.prototype.update=function(e,t){typeof e=="string"&&(t=t||"utf8",e=dS.from(e,t));for(var r=this._block,i=this._blockSize,a=e.length,n=this._len,u=0;u<a;){for(var c=n%i,d=Math.min(a-u,i-c),m=0;m<d;m++)r[c+m]=e[u+m];n+=d,u+=d,n%i===0&&this._update(r)}return this._len+=a,this};Jh.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var i=(r&4294967295)>>>0,a=(r-i)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var n=this._hash();return e?n.toString(e):n};Jh.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Fs=Jh,lF=Ze,pS=Fs,hF=pt().Buffer,cF=[1518500249,1859775393,-1894007588,-899497514],dF=new Array(80);function xu(){this.init(),this._w=dF,pS.call(this,64,56)}lF(xu,pS);xu.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function pF(e){return e<<5|e>>>27}function vF(e){return e<<30|e>>>2}function gF(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}xu.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,a=this._c|0,n=this._d|0,u=this._e|0,c=0;c<16;++c)t[c]=e.readInt32BE(c*4);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var d=0;d<80;++d){var m=~~(d/20),M=pF(r)+gF(m,i,a,n)+u+t[d]+cF[m]|0;u=n,n=a,a=vF(i),i=r,r=M}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=n+this._d|0,this._e=u+this._e|0};xu.prototype._hash=function(){var e=hF.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var mF=xu,yF=Ze,vS=Fs,bF=pt().Buffer,wF=[1518500249,1859775393,-1894007588,-899497514],_F=new Array(80);function Eu(){this.init(),this._w=_F,vS.call(this,64,56)}yF(Eu,vS);Eu.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function MF(e){return e<<1|e>>>31}function SF(e){return e<<5|e>>>27}function xF(e){return e<<30|e>>>2}function EF(e,t,r,i){return e===0?t&r|~t&i:e===2?t&r|t&i|r&i:t^r^i}Eu.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,a=this._c|0,n=this._d|0,u=this._e|0,c=0;c<16;++c)t[c]=e.readInt32BE(c*4);for(;c<80;++c)t[c]=MF(t[c-3]^t[c-8]^t[c-14]^t[c-16]);for(var d=0;d<80;++d){var m=~~(d/20),M=SF(r)+EF(m,i,a,n)+u+t[d]+wF[m]|0;u=n,n=a,a=xF(i),i=r,r=M}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=n+this._d|0,this._e=u+this._e|0};Eu.prototype._hash=function(){var e=bF.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var RF=Eu,AF=Ze,gS=Fs,TF=pt().Buffer,OF=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],IF=new Array(64);function Ru(){this.init(),this._w=IF,gS.call(this,64,56)}AF(Ru,gS);Ru.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function PF(e,t,r){return r^e&(t^r)}function CF(e,t,r){return e&t|r&(e|t)}function BF(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function LF(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function NF(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function kF(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}Ru.prototype._update=function(e){for(var t=this._w,r=this._a|0,i=this._b|0,a=this._c|0,n=this._d|0,u=this._e|0,c=this._f|0,d=this._g|0,m=this._h|0,M=0;M<16;++M)t[M]=e.readInt32BE(M*4);for(;M<64;++M)t[M]=kF(t[M-2])+t[M-7]+NF(t[M-15])+t[M-16]|0;for(var S=0;S<64;++S){var R=m+LF(u)+PF(u,c,d)+OF[S]+t[S]|0,C=BF(r)+CF(r,i,a)|0;m=d,d=c,c=u,u=n+R|0,n=a,a=i,i=r,r=R+C|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=n+this._d|0,this._e=u+this._e|0,this._f=c+this._f|0,this._g=d+this._g|0,this._h=m+this._h|0};Ru.prototype._hash=function(){var e=TF.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var mS=Ru,$F=Ze,DF=mS,FF=Fs,jF=pt().Buffer,UF=new Array(64);function Qh(){this.init(),this._w=UF,FF.call(this,64,56)}$F(Qh,DF);Qh.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Qh.prototype._hash=function(){var e=jF.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var HF=Qh,qF=Ze,yS=Fs,WF=pt().Buffer,bb=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],KF=new Array(160);function Au(){this.init(),this._w=KF,yS.call(this,128,112)}qF(Au,yS);Au.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function wb(e,t,r){return r^e&(t^r)}function _b(e,t,r){return e&t|r&(e|t)}function Mb(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function Sb(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function VF(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function zF(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function GF(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function YF(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function sr(e,t){return e>>>0<t>>>0?1:0}Au.prototype._update=function(e){for(var t=this._w,r=this._ah|0,i=this._bh|0,a=this._ch|0,n=this._dh|0,u=this._eh|0,c=this._fh|0,d=this._gh|0,m=this._hh|0,M=this._al|0,S=this._bl|0,R=this._cl|0,C=this._dl|0,P=this._el|0,k=this._fl|0,L=this._gl|0,I=this._hl|0,B=0;B<32;B+=2)t[B]=e.readInt32BE(B*4),t[B+1]=e.readInt32BE(B*4+4);for(;B<160;B+=2){var H=t[B-30],F=t[B-15*2+1],W=VF(H,F),Y=zF(F,H);H=t[B-2*2],F=t[B-2*2+1];var ie=GF(H,F),J=YF(F,H),V=t[B-7*2],oe=t[B-7*2+1],_=t[B-16*2],o=t[B-16*2+1],f=Y+oe|0,l=W+V+sr(f,Y)|0;f=f+J|0,l=l+ie+sr(f,J)|0,f=f+o|0,l=l+_+sr(f,o)|0,t[B]=l,t[B+1]=f}for(var h=0;h<160;h+=2){l=t[h],f=t[h+1];var p=_b(r,i,a),w=_b(M,S,R),x=Mb(r,M),g=Mb(M,r),s=Sb(u,P),v=Sb(P,u),T=bb[h],$=bb[h+1],G=wb(u,c,d),ee=wb(P,k,L),A=I+v|0,E=m+s+sr(A,I)|0;A=A+ee|0,E=E+G+sr(A,ee)|0,A=A+$|0,E=E+T+sr(A,$)|0,A=A+f|0,E=E+l+sr(A,f)|0;var U=g+w|0,K=x+p+sr(U,g)|0;m=d,I=L,d=c,L=k,c=u,k=P,P=C+A|0,u=n+E+sr(P,C)|0,n=a,C=R,a=i,R=S,i=r,S=M,M=A+U|0,r=E+K+sr(M,A)|0}this._al=this._al+M|0,this._bl=this._bl+S|0,this._cl=this._cl+R|0,this._dl=this._dl+C|0,this._el=this._el+P|0,this._fl=this._fl+k|0,this._gl=this._gl+L|0,this._hl=this._hl+I|0,this._ah=this._ah+r+sr(this._al,M)|0,this._bh=this._bh+i+sr(this._bl,S)|0,this._ch=this._ch+a+sr(this._cl,R)|0,this._dh=this._dh+n+sr(this._dl,C)|0,this._eh=this._eh+u+sr(this._el,P)|0,this._fh=this._fh+c+sr(this._fl,k)|0,this._gh=this._gh+d+sr(this._gl,L)|0,this._hh=this._hh+m+sr(this._hl,I)|0};Au.prototype._hash=function(){var e=WF.allocUnsafe(64);function t(r,i,a){e.writeInt32BE(r,a),e.writeInt32BE(i,a+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var bS=Au,ZF=Ze,XF=bS,JF=Fs,QF=pt().Buffer,ej=new Array(160);function ec(){this.init(),this._w=ej,JF.call(this,128,112)}ZF(ec,XF);ec.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};ec.prototype._hash=function(){var e=QF.allocUnsafe(48);function t(r,i,a){e.writeInt32BE(r,a),e.writeInt32BE(i,a+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var tj=ec,Ta=cS.exports=function(t){t=t.toLowerCase();var r=Ta[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r};Ta.sha=mF;Ta.sha1=RF;Ta.sha224=HF;Ta.sha256=mS;Ta.sha384=tj;Ta.sha512=bS;var mg=cS.exports,Kd,xb;function wS(){return xb||(xb=1,Kd=Or.EventEmitter),Kd}var Vd,Eb;function rj(){if(Eb)return Vd;Eb=1;function e(P,k){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(P);k&&(I=I.filter(function(B){return Object.getOwnPropertyDescriptor(P,B).enumerable})),L.push.apply(L,I)}return L}function t(P){for(var k=1;k<arguments.length;k++){var L=arguments[k]!=null?arguments[k]:{};k%2?e(Object(L),!0).forEach(function(I){r(P,I,L[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):e(Object(L)).forEach(function(I){Object.defineProperty(P,I,Object.getOwnPropertyDescriptor(L,I))})}return P}function r(P,k,L){return k=u(k),k in P?Object.defineProperty(P,k,{value:L,enumerable:!0,configurable:!0,writable:!0}):P[k]=L,P}function i(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}function a(P,k){for(var L=0;L<k.length;L++){var I=k[L];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(P,u(I.key),I)}}function n(P,k,L){return k&&a(P.prototype,k),L&&a(P,L),Object.defineProperty(P,"prototype",{writable:!1}),P}function u(P){var k=c(P,"string");return typeof k=="symbol"?k:String(k)}function c(P,k){if(typeof P!="object"||P===null)return P;var L=P[Symbol.toPrimitive];if(L!==void 0){var I=L.call(P,k||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(P)}var d=ke,m=d.Buffer,M=ei,S=M.inspect,R=S&&S.custom||"inspect";function C(P,k,L){m.prototype.copy.call(P,k,L)}return Vd=function(){function P(){i(this,P),this.head=null,this.tail=null,this.length=0}return n(P,[{key:"push",value:function(L){var I={data:L,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(L){var I={data:L,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var I=this.head,B=""+I.data;I=I.next;)B+=L+I.data;return B}},{key:"concat",value:function(L){if(this.length===0)return m.alloc(0);for(var I=m.allocUnsafe(L>>>0),B=this.head,H=0;B;)C(B.data,I,H),H+=B.data.length,B=B.next;return I}},{key:"consume",value:function(L,I){var B;return L<this.head.data.length?(B=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?B=this.shift():B=I?this._getString(L):this._getBuffer(L),B}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var I=this.head,B=1,H=I.data;for(L-=H.length;I=I.next;){var F=I.data,W=L>F.length?F.length:L;if(W===F.length?H+=F:H+=F.slice(0,L),L-=W,L===0){W===F.length?(++B,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=F.slice(W));break}++B}return this.length-=B,H}},{key:"_getBuffer",value:function(L){var I=m.allocUnsafe(L),B=this.head,H=1;for(B.data.copy(I),L-=B.data.length;B=B.next;){var F=B.data,W=L>F.length?F.length:L;if(F.copy(I,I.length-L,0,W),L-=W,L===0){W===F.length?(++H,B.next?this.head=B.next:this.head=this.tail=null):(this.head=B,B.data=F.slice(W));break}++H}return this.length-=H,I}},{key:R,value:function(L,I){return S(this,t(t({},I),{},{depth:0,customInspect:!1}))}}]),P}(),Vd}var zd,Rb;function _S(){if(Rb)return zd;Rb=1;function e(u,c){var d=this,m=this._readableState&&this._readableState.destroyed,M=this._writableState&&this._writableState.destroyed;return m||M?(c?c(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,we.nextTick(a,this,u)):we.nextTick(a,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,function(S){!c&&S?d._writableState?d._writableState.errorEmitted?we.nextTick(r,d):(d._writableState.errorEmitted=!0,we.nextTick(t,d,S)):we.nextTick(t,d,S):c?(we.nextTick(r,d),c(S)):we.nextTick(r,d)}),this)}function t(u,c){a(u,c),r(u)}function r(u){u._writableState&&!u._writableState.emitClose||u._readableState&&!u._readableState.emitClose||u.emit("close")}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(u,c){u.emit("error",c)}function n(u,c){var d=u._readableState,m=u._writableState;d&&d.autoDestroy||m&&m.autoDestroy?u.destroy(c):u.emit("error",c)}return zd={destroy:e,undestroy:i,errorOrDestroy:n},zd}var Gd={},Ab;function js(){if(Ab)return Gd;Ab=1;function e(c,d){c.prototype=Object.create(d.prototype),c.prototype.constructor=c,c.__proto__=d}var t={};function r(c,d,m){m||(m=Error);function M(R,C,P){return typeof d=="string"?d:d(R,C,P)}var S=function(R){e(C,R);function C(P,k,L){return R.call(this,M(P,k,L))||this}return C}(m);S.prototype.name=m.name,S.prototype.code=c,t[c]=S}function i(c,d){if(Array.isArray(c)){var m=c.length;return c=c.map(function(M){return String(M)}),m>2?"one of ".concat(d," ").concat(c.slice(0,m-1).join(", "),", or ")+c[m-1]:m===2?"one of ".concat(d," ").concat(c[0]," or ").concat(c[1]):"of ".concat(d," ").concat(c[0])}else return"of ".concat(d," ").concat(String(c))}function a(c,d,m){return c.substr(!m||m<0?0:+m,d.length)===d}function n(c,d,m){return(m===void 0||m>c.length)&&(m=c.length),c.substring(m-d.length,m)===d}function u(c,d,m){return typeof m!="number"&&(m=0),m+d.length>c.length?!1:c.indexOf(d,m)!==-1}return r("ERR_INVALID_OPT_VALUE",function(c,d){return'The value "'+d+'" is invalid for option "'+c+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(c,d,m){var M;typeof d=="string"&&a(d,"not ")?(M="must not be",d=d.replace(/^not /,"")):M="must be";var S;if(n(c," argument"))S="The ".concat(c," ").concat(M," ").concat(i(d,"type"));else{var R=u(c,".")?"property":"argument";S='The "'.concat(c,'" ').concat(R," ").concat(M," ").concat(i(d,"type"))}return S+=". Received type ".concat(typeof m),S},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(c){return"The "+c+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(c){return"Cannot call "+c+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(c){return"Unknown encoding: "+c},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Gd.codes=t,Gd}var Yd,Tb;function MS(){if(Tb)return Yd;Tb=1;var e=js().codes.ERR_INVALID_OPT_VALUE;function t(i,a,n){return i.highWaterMark!=null?i.highWaterMark:a?i[n]:null}function r(i,a,n,u){var c=t(a,u,n);if(c!=null){if(!(isFinite(c)&&Math.floor(c)===c)||c<0){var d=u?n:"highWaterMark";throw new e(d,c)}return Math.floor(c)}return i.objectMode?16:16*1024}return Yd={getHighWaterMark:r},Yd}var Zd,Ob;function SS(){if(Ob)return Zd;Ob=1,Zd=J;function e(A){var E=this;this.next=null,this.entry=null,this.finish=function(){ee(E,A)}}var t;J.WritableState=Y;var r={deprecate:ks},i=wS(),a=ke.Buffer,n=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(A){return a.from(A)}function c(A){return a.isBuffer(A)||A instanceof n}var d=_S(),m=MS(),M=m.getHighWaterMark,S=js().codes,R=S.ERR_INVALID_ARG_TYPE,C=S.ERR_METHOD_NOT_IMPLEMENTED,P=S.ERR_MULTIPLE_CALLBACK,k=S.ERR_STREAM_CANNOT_PIPE,L=S.ERR_STREAM_DESTROYED,I=S.ERR_STREAM_NULL_VALUES,B=S.ERR_STREAM_WRITE_AFTER_END,H=S.ERR_UNKNOWN_ENCODING,F=d.errorOrDestroy;Ze(J,i);function W(){}function Y(A,E,U){t=t||ws(),A=A||{},typeof U!="boolean"&&(U=E instanceof t),this.objectMode=!!A.objectMode,U&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=M(this,A,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=A.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){p(E,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}Y.prototype.getBuffer=function(){for(var E=this.bufferedRequest,U=[];E;)U.push(E),E=E.next;return U},function(){try{Object.defineProperty(Y.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ie;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ie=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(E){return ie.call(this,E)?!0:this!==J?!1:E&&E._writableState instanceof Y}})):ie=function(E){return E instanceof this};function J(A){t=t||ws();var E=this instanceof t;if(!E&&!ie.call(J,this))return new J(A);this._writableState=new Y(A,this,E),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),i.call(this)}J.prototype.pipe=function(){F(this,new k)};function V(A,E){var U=new B;F(A,U),we.nextTick(E,U)}function oe(A,E,U,K){var Z;return U===null?Z=new I:typeof U!="string"&&!E.objectMode&&(Z=new R("chunk",["string","Buffer"],U)),Z?(F(A,Z),we.nextTick(K,Z),!1):!0}J.prototype.write=function(A,E,U){var K=this._writableState,Z=!1,b=!K.objectMode&&c(A);return b&&!a.isBuffer(A)&&(A=u(A)),typeof E=="function"&&(U=E,E=null),b?E="buffer":E||(E=K.defaultEncoding),typeof U!="function"&&(U=W),K.ending?V(this,U):(b||oe(this,K,A,U))&&(K.pendingcb++,Z=o(this,K,b,A,E,U)),Z},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&g(this,A))},J.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new H(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _(A,E,U){return!A.objectMode&&A.decodeStrings!==!1&&typeof E=="string"&&(E=a.from(E,U)),E}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(A,E,U,K,Z,b){if(!U){var y=_(E,K,Z);K!==y&&(U=!0,Z="buffer",K=y)}var O=E.objectMode?1:K.length;E.length+=O;var q=E.length<E.highWaterMark;if(q||(E.needDrain=!0),E.writing||E.corked){var X=E.lastBufferedRequest;E.lastBufferedRequest={chunk:K,encoding:Z,isBuf:U,callback:b,next:null},X?X.next=E.lastBufferedRequest:E.bufferedRequest=E.lastBufferedRequest,E.bufferedRequestCount+=1}else f(A,E,!1,O,K,Z,b);return q}function f(A,E,U,K,Z,b,y){E.writelen=K,E.writecb=y,E.writing=!0,E.sync=!0,E.destroyed?E.onwrite(new L("write")):U?A._writev(Z,E.onwrite):A._write(Z,b,E.onwrite),E.sync=!1}function l(A,E,U,K,Z){--E.pendingcb,U?(we.nextTick(Z,K),we.nextTick($,A,E),A._writableState.errorEmitted=!0,F(A,K)):(Z(K),A._writableState.errorEmitted=!0,F(A,K),$(A,E))}function h(A){A.writing=!1,A.writecb=null,A.length-=A.writelen,A.writelen=0}function p(A,E){var U=A._writableState,K=U.sync,Z=U.writecb;if(typeof Z!="function")throw new P;if(h(U),E)l(A,U,K,E,Z);else{var b=s(U)||A.destroyed;!b&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&g(A,U),K?we.nextTick(w,A,U,b,Z):w(A,U,b,Z)}}function w(A,E,U,K){U||x(A,E),E.pendingcb--,K(),$(A,E)}function x(A,E){E.length===0&&E.needDrain&&(E.needDrain=!1,A.emit("drain"))}function g(A,E){E.bufferProcessing=!0;var U=E.bufferedRequest;if(A._writev&&U&&U.next){var K=E.bufferedRequestCount,Z=new Array(K),b=E.corkedRequestsFree;b.entry=U;for(var y=0,O=!0;U;)Z[y]=U,U.isBuf||(O=!1),U=U.next,y+=1;Z.allBuffers=O,f(A,E,!0,E.length,Z,"",b.finish),E.pendingcb++,E.lastBufferedRequest=null,b.next?(E.corkedRequestsFree=b.next,b.next=null):E.corkedRequestsFree=new e(E),E.bufferedRequestCount=0}else{for(;U;){var q=U.chunk,X=U.encoding,D=U.callback,N=E.objectMode?1:q.length;if(f(A,E,!1,N,q,X,D),U=U.next,E.bufferedRequestCount--,E.writing)break}U===null&&(E.lastBufferedRequest=null)}E.bufferedRequest=U,E.bufferProcessing=!1}J.prototype._write=function(A,E,U){U(new C("_write()"))},J.prototype._writev=null,J.prototype.end=function(A,E,U){var K=this._writableState;return typeof A=="function"?(U=A,A=null,E=null):typeof E=="function"&&(U=E,E=null),A!=null&&this.write(A,E),K.corked&&(K.corked=1,this.uncork()),K.ending||G(this,K,U),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function v(A,E){A._final(function(U){E.pendingcb--,U&&F(A,U),E.prefinished=!0,A.emit("prefinish"),$(A,E)})}function T(A,E){!E.prefinished&&!E.finalCalled&&(typeof A._final=="function"&&!E.destroyed?(E.pendingcb++,E.finalCalled=!0,we.nextTick(v,A,E)):(E.prefinished=!0,A.emit("prefinish")))}function $(A,E){var U=s(E);if(U&&(T(A,E),E.pendingcb===0&&(E.finished=!0,A.emit("finish"),E.autoDestroy))){var K=A._readableState;(!K||K.autoDestroy&&K.endEmitted)&&A.destroy()}return U}function G(A,E,U){E.ending=!0,$(A,E),U&&(E.finished?we.nextTick(U):A.once("finish",U)),E.ended=!0,A.writable=!1}function ee(A,E,U){var K=A.entry;for(A.entry=null;K;){var Z=K.callback;E.pendingcb--,Z(U),K=K.next}E.corkedRequestsFree.next=A}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),J.prototype.destroy=d.destroy,J.prototype._undestroy=d.undestroy,J.prototype._destroy=function(A,E){E(A)},Zd}var Xd,Ib;function ws(){if(Ib)return Xd;Ib=1;var e=Object.keys||function(m){var M=[];for(var S in m)M.push(S);return M};Xd=u;var t=xS(),r=SS();Ze(u,t);for(var i=e(r.prototype),a=0;a<i.length;a++){var n=i[a];u.prototype[n]||(u.prototype[n]=r.prototype[n])}function u(m){if(!(this instanceof u))return new u(m);t.call(this,m),r.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||we.nextTick(d,this)}function d(m){m.end()}return Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(M){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=M,this._writableState.destroyed=M)}}),Xd}var Jd,Pb;function yg(){if(Pb)return Jd;Pb=1;var e=js().codes.ERR_STREAM_PREMATURE_CLOSE;function t(n){var u=!1;return function(){if(!u){u=!0;for(var c=arguments.length,d=new Array(c),m=0;m<c;m++)d[m]=arguments[m];n.apply(this,d)}}}function r(){}function i(n){return n.setHeader&&typeof n.abort=="function"}function a(n,u,c){if(typeof u=="function")return a(n,null,u);u||(u={}),c=t(c||r);var d=u.readable||u.readable!==!1&&n.readable,m=u.writable||u.writable!==!1&&n.writable,M=function(){n.writable||R()},S=n._writableState&&n._writableState.finished,R=function(){m=!1,S=!0,d||c.call(n)},C=n._readableState&&n._readableState.endEmitted,P=function(){d=!1,C=!0,m||c.call(n)},k=function(H){c.call(n,H)},L=function(){var H;if(d&&!C)return(!n._readableState||!n._readableState.ended)&&(H=new e),c.call(n,H);if(m&&!S)return(!n._writableState||!n._writableState.ended)&&(H=new e),c.call(n,H)},I=function(){n.req.on("finish",R)};return i(n)?(n.on("complete",R),n.on("abort",L),n.req?I():n.on("request",I)):m&&!n._writableState&&(n.on("end",M),n.on("close",M)),n.on("end",P),n.on("finish",R),u.error!==!1&&n.on("error",k),n.on("close",L),function(){n.removeListener("complete",R),n.removeListener("abort",L),n.removeListener("request",I),n.req&&n.req.removeListener("finish",R),n.removeListener("end",M),n.removeListener("close",M),n.removeListener("finish",R),n.removeListener("end",P),n.removeListener("error",k),n.removeListener("close",L)}}return Jd=a,Jd}var Qd,Cb;function ij(){if(Cb)return Qd;Cb=1;var e;function t(H,F,W){return F=r(F),F in H?Object.defineProperty(H,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):H[F]=W,H}function r(H){var F=i(H,"string");return typeof F=="symbol"?F:String(F)}function i(H,F){if(typeof H!="object"||H===null)return H;var W=H[Symbol.toPrimitive];if(W!==void 0){var Y=W.call(H,F||"default");if(typeof Y!="object")return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(H)}var a=yg(),n=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),M=Symbol("handlePromise"),S=Symbol("stream");function R(H,F){return{value:H,done:F}}function C(H){var F=H[n];if(F!==null){var W=H[S].read();W!==null&&(H[m]=null,H[n]=null,H[u]=null,F(R(W,!1)))}}function P(H){we.nextTick(C,H)}function k(H,F){return function(W,Y){H.then(function(){if(F[d]){W(R(void 0,!0));return}F[M](W,Y)},Y)}}var L=Object.getPrototypeOf(function(){}),I=Object.setPrototypeOf((e={get stream(){return this[S]},next:function(){var F=this,W=this[c];if(W!==null)return Promise.reject(W);if(this[d])return Promise.resolve(R(void 0,!0));if(this[S].destroyed)return new Promise(function(V,oe){we.nextTick(function(){F[c]?oe(F[c]):V(R(void 0,!0))})});var Y=this[m],ie;if(Y)ie=new Promise(k(Y,this));else{var J=this[S].read();if(J!==null)return Promise.resolve(R(J,!1));ie=new Promise(this[M])}return this[m]=ie,ie}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var F=this;return new Promise(function(W,Y){F[S].destroy(null,function(ie){if(ie){Y(ie);return}W(R(void 0,!0))})})}),e),L),B=function(F){var W,Y=Object.create(I,(W={},t(W,S,{value:F,writable:!0}),t(W,n,{value:null,writable:!0}),t(W,u,{value:null,writable:!0}),t(W,c,{value:null,writable:!0}),t(W,d,{value:F._readableState.endEmitted,writable:!0}),t(W,M,{value:function(J,V){var oe=Y[S].read();oe?(Y[m]=null,Y[n]=null,Y[u]=null,J(R(oe,!1))):(Y[n]=J,Y[u]=V)},writable:!0}),W));return Y[m]=null,a(F,function(ie){if(ie&&ie.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=Y[u];J!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,J(ie)),Y[c]=ie;return}var V=Y[n];V!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,V(R(void 0,!0))),Y[d]=!0}),F.on("readable",P.bind(null,Y)),Y};return Qd=B,Qd}var e0,Bb;function nj(){return Bb||(Bb=1,e0=function(){throw new Error("Readable.from is not available in the browser")}),e0}var t0,Lb;function xS(){if(Lb)return t0;Lb=1,t0=V;var e;V.ReadableState=J,Or.EventEmitter;var t=function(y,O){return y.listeners(O).length},r=wS(),i=ke.Buffer,a=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function n(b){return i.from(b)}function u(b){return i.isBuffer(b)||b instanceof a}var c=ei,d;c&&c.debuglog?d=c.debuglog("stream"):d=function(){};var m=rj(),M=_S(),S=MS(),R=S.getHighWaterMark,C=js().codes,P=C.ERR_INVALID_ARG_TYPE,k=C.ERR_STREAM_PUSH_AFTER_EOF,L=C.ERR_METHOD_NOT_IMPLEMENTED,I=C.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,B,H,F;Ze(V,r);var W=M.errorOrDestroy,Y=["error","close","destroy","pause","resume"];function ie(b,y,O){if(typeof b.prependListener=="function")return b.prependListener(y,O);!b._events||!b._events[y]?b.on(y,O):Array.isArray(b._events[y])?b._events[y].unshift(O):b._events[y]=[O,b._events[y]]}function J(b,y,O){e=e||ws(),b=b||{},typeof O!="boolean"&&(O=y instanceof e),this.objectMode=!!b.objectMode,O&&(this.objectMode=this.objectMode||!!b.readableObjectMode),this.highWaterMark=R(this,b,"readableHighWaterMark",O),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=b.emitClose!==!1,this.autoDestroy=!!b.autoDestroy,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(B||(B=Xr().StringDecoder),this.decoder=new B(b.encoding),this.encoding=b.encoding)}function V(b){if(e=e||ws(),!(this instanceof V))return new V(b);var y=this instanceof e;this._readableState=new J(b,this,y),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),r.call(this)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(y){this._readableState&&(this._readableState.destroyed=y)}}),V.prototype.destroy=M.destroy,V.prototype._undestroy=M.undestroy,V.prototype._destroy=function(b,y){y(b)},V.prototype.push=function(b,y){var O=this._readableState,q;return O.objectMode?q=!0:typeof b=="string"&&(y=y||O.defaultEncoding,y!==O.encoding&&(b=i.from(b,y),y=""),q=!0),oe(this,b,y,!1,q)},V.prototype.unshift=function(b){return oe(this,b,null,!0,!1)};function oe(b,y,O,q,X){d("readableAddChunk",y);var D=b._readableState;if(y===null)D.reading=!1,p(b,D);else{var N;if(X||(N=o(D,y)),N)W(b,N);else if(D.objectMode||y&&y.length>0)if(typeof y!="string"&&!D.objectMode&&Object.getPrototypeOf(y)!==i.prototype&&(y=n(y)),q)D.endEmitted?W(b,new I):_(b,D,y,!0);else if(D.ended)W(b,new k);else{if(D.destroyed)return!1;D.reading=!1,D.decoder&&!O?(y=D.decoder.write(y),D.objectMode||y.length!==0?_(b,D,y,!1):g(b,D)):_(b,D,y,!1)}else q||(D.reading=!1,g(b,D))}return!D.ended&&(D.length<D.highWaterMark||D.length===0)}function _(b,y,O,q){y.flowing&&y.length===0&&!y.sync?(y.awaitDrain=0,b.emit("data",O)):(y.length+=y.objectMode?1:O.length,q?y.buffer.unshift(O):y.buffer.push(O),y.needReadable&&w(b)),g(b,y)}function o(b,y){var O;return!u(y)&&typeof y!="string"&&y!==void 0&&!b.objectMode&&(O=new P("chunk",["string","Buffer","Uint8Array"],y)),O}V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(b){B||(B=Xr().StringDecoder);var y=new B(b);this._readableState.decoder=y,this._readableState.encoding=this._readableState.decoder.encoding;for(var O=this._readableState.buffer.head,q="";O!==null;)q+=y.write(O.data),O=O.next;return this._readableState.buffer.clear(),q!==""&&this._readableState.buffer.push(q),this._readableState.length=q.length,this};var f=1073741824;function l(b){return b>=f?b=f:(b--,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,b|=b>>>16,b++),b}function h(b,y){return b<=0||y.length===0&&y.ended?0:y.objectMode?1:b!==b?y.flowing&&y.length?y.buffer.head.data.length:y.length:(b>y.highWaterMark&&(y.highWaterMark=l(b)),b<=y.length?b:y.ended?y.length:(y.needReadable=!0,0))}V.prototype.read=function(b){d("read",b),b=parseInt(b,10);var y=this._readableState,O=b;if(b!==0&&(y.emittedReadable=!1),b===0&&y.needReadable&&((y.highWaterMark!==0?y.length>=y.highWaterMark:y.length>0)||y.ended))return d("read: emitReadable",y.length,y.ended),y.length===0&&y.ended?U(this):w(this),null;if(b=h(b,y),b===0&&y.ended)return y.length===0&&U(this),null;var q=y.needReadable;d("need readable",q),(y.length===0||y.length-b<y.highWaterMark)&&(q=!0,d("length less than watermark",q)),y.ended||y.reading?(q=!1,d("reading or ended",q)):q&&(d("do read"),y.reading=!0,y.sync=!0,y.length===0&&(y.needReadable=!0),this._read(y.highWaterMark),y.sync=!1,y.reading||(b=h(O,y)));var X;return b>0?X=E(b,y):X=null,X===null?(y.needReadable=y.length<=y.highWaterMark,b=0):(y.length-=b,y.awaitDrain=0),y.length===0&&(y.ended||(y.needReadable=!0),O!==b&&y.ended&&U(this)),X!==null&&this.emit("data",X),X};function p(b,y){if(d("onEofChunk"),!y.ended){if(y.decoder){var O=y.decoder.end();O&&O.length&&(y.buffer.push(O),y.length+=y.objectMode?1:O.length)}y.ended=!0,y.sync?w(b):(y.needReadable=!1,y.emittedReadable||(y.emittedReadable=!0,x(b)))}}function w(b){var y=b._readableState;d("emitReadable",y.needReadable,y.emittedReadable),y.needReadable=!1,y.emittedReadable||(d("emitReadable",y.flowing),y.emittedReadable=!0,we.nextTick(x,b))}function x(b){var y=b._readableState;d("emitReadable_",y.destroyed,y.length,y.ended),!y.destroyed&&(y.length||y.ended)&&(b.emit("readable"),y.emittedReadable=!1),y.needReadable=!y.flowing&&!y.ended&&y.length<=y.highWaterMark,A(b)}function g(b,y){y.readingMore||(y.readingMore=!0,we.nextTick(s,b,y))}function s(b,y){for(;!y.reading&&!y.ended&&(y.length<y.highWaterMark||y.flowing&&y.length===0);){var O=y.length;if(d("maybeReadMore read 0"),b.read(0),O===y.length)break}y.readingMore=!1}V.prototype._read=function(b){W(this,new L("_read()"))},V.prototype.pipe=function(b,y){var O=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=b;break;case 1:q.pipes=[q.pipes,b];break;default:q.pipes.push(b);break}q.pipesCount+=1,d("pipe count=%d opts=%j",q.pipesCount,y);var X=(!y||y.end!==!1)&&b!==we.stdout&&b!==we.stderr,D=X?j:le;q.endEmitted?we.nextTick(D):O.once("end",D),b.on("unpipe",N);function N(ce,pe){d("onunpipe"),ce===O&&pe&&pe.hasUnpiped===!1&&(pe.hasUnpiped=!0,te())}function j(){d("onend"),b.end()}var z=v(O);b.on("drain",z);var se=!1;function te(){d("cleanup"),b.removeListener("close",Q),b.removeListener("finish",ue),b.removeListener("drain",z),b.removeListener("error",Ee),b.removeListener("unpipe",N),O.removeListener("end",j),O.removeListener("end",le),O.removeListener("data",ne),se=!0,q.awaitDrain&&(!b._writableState||b._writableState.needDrain)&&z()}O.on("data",ne);function ne(ce){d("ondata");var pe=b.write(ce);d("dest.write",pe),pe===!1&&((q.pipesCount===1&&q.pipes===b||q.pipesCount>1&&Z(q.pipes,b)!==-1)&&!se&&(d("false write response, pause",q.awaitDrain),q.awaitDrain++),O.pause())}function Ee(ce){d("onerror",ce),le(),b.removeListener("error",Ee),t(b,"error")===0&&W(b,ce)}ie(b,"error",Ee);function Q(){b.removeListener("finish",ue),le()}b.once("close",Q);function ue(){d("onfinish"),b.removeListener("close",Q),le()}b.once("finish",ue);function le(){d("unpipe"),O.unpipe(b)}return b.emit("pipe",O),q.flowing||(d("pipe resume"),O.resume()),b};function v(b){return function(){var O=b._readableState;d("pipeOnDrain",O.awaitDrain),O.awaitDrain&&O.awaitDrain--,O.awaitDrain===0&&t(b,"data")&&(O.flowing=!0,A(b))}}V.prototype.unpipe=function(b){var y=this._readableState,O={hasUnpiped:!1};if(y.pipesCount===0)return this;if(y.pipesCount===1)return b&&b!==y.pipes?this:(b||(b=y.pipes),y.pipes=null,y.pipesCount=0,y.flowing=!1,b&&b.emit("unpipe",this,O),this);if(!b){var q=y.pipes,X=y.pipesCount;y.pipes=null,y.pipesCount=0,y.flowing=!1;for(var D=0;D<X;D++)q[D].emit("unpipe",this,{hasUnpiped:!1});return this}var N=Z(y.pipes,b);return N===-1?this:(y.pipes.splice(N,1),y.pipesCount-=1,y.pipesCount===1&&(y.pipes=y.pipes[0]),b.emit("unpipe",this,O),this)},V.prototype.on=function(b,y){var O=r.prototype.on.call(this,b,y),q=this._readableState;return b==="data"?(q.readableListening=this.listenerCount("readable")>0,q.flowing!==!1&&this.resume()):b==="readable"&&!q.endEmitted&&!q.readableListening&&(q.readableListening=q.needReadable=!0,q.flowing=!1,q.emittedReadable=!1,d("on readable",q.length,q.reading),q.length?w(this):q.reading||we.nextTick($,this)),O},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(b,y){var O=r.prototype.removeListener.call(this,b,y);return b==="readable"&&we.nextTick(T,this),O},V.prototype.removeAllListeners=function(b){var y=r.prototype.removeAllListeners.apply(this,arguments);return(b==="readable"||b===void 0)&&we.nextTick(T,this),y};function T(b){var y=b._readableState;y.readableListening=b.listenerCount("readable")>0,y.resumeScheduled&&!y.paused?y.flowing=!0:b.listenerCount("data")>0&&b.resume()}function $(b){d("readable nexttick read 0"),b.read(0)}V.prototype.resume=function(){var b=this._readableState;return b.flowing||(d("resume"),b.flowing=!b.readableListening,G(this,b)),b.paused=!1,this};function G(b,y){y.resumeScheduled||(y.resumeScheduled=!0,we.nextTick(ee,b,y))}function ee(b,y){d("resume",y.reading),y.reading||b.read(0),y.resumeScheduled=!1,b.emit("resume"),A(b),y.flowing&&!y.reading&&b.read(0)}V.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function A(b){var y=b._readableState;for(d("flow",y.flowing);y.flowing&&b.read()!==null;);}V.prototype.wrap=function(b){var y=this,O=this._readableState,q=!1;b.on("end",function(){if(d("wrapped end"),O.decoder&&!O.ended){var N=O.decoder.end();N&&N.length&&y.push(N)}y.push(null)}),b.on("data",function(N){if(d("wrapped data"),O.decoder&&(N=O.decoder.write(N)),!(O.objectMode&&N==null)&&!(!O.objectMode&&(!N||!N.length))){var j=y.push(N);j||(q=!0,b.pause())}});for(var X in b)this[X]===void 0&&typeof b[X]=="function"&&(this[X]=function(j){return function(){return b[j].apply(b,arguments)}}(X));for(var D=0;D<Y.length;D++)b.on(Y[D],this.emit.bind(this,Y[D]));return this._read=function(N){d("wrapped _read",N),q&&(q=!1,b.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return H===void 0&&(H=ij()),H(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(y){this._readableState&&(this._readableState.flowing=y)}}),V._fromList=E,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function E(b,y){if(y.length===0)return null;var O;return y.objectMode?O=y.buffer.shift():!b||b>=y.length?(y.decoder?O=y.buffer.join(""):y.buffer.length===1?O=y.buffer.first():O=y.buffer.concat(y.length),y.buffer.clear()):O=y.buffer.consume(b,y.decoder),O}function U(b){var y=b._readableState;d("endReadable",y.endEmitted),y.endEmitted||(y.ended=!0,we.nextTick(K,y,b))}function K(b,y){if(d("endReadableNT",b.endEmitted,b.length),!b.endEmitted&&b.length===0&&(b.endEmitted=!0,y.readable=!1,y.emit("end"),b.autoDestroy)){var O=y._writableState;(!O||O.autoDestroy&&O.finished)&&y.destroy()}}typeof Symbol=="function"&&(V.from=function(b,y){return F===void 0&&(F=nj()),F(V,b,y)});function Z(b,y){for(var O=0,q=b.length;O<q;O++)if(b[O]===y)return O;return-1}return t0}var r0,Nb;function ES(){if(Nb)return r0;Nb=1,r0=c;var e=js().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,r=e.ERR_MULTIPLE_CALLBACK,i=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=e.ERR_TRANSFORM_WITH_LENGTH_0,n=ws();Ze(c,n);function u(M,S){var R=this._transformState;R.transforming=!1;var C=R.writecb;if(C===null)return this.emit("error",new r);R.writechunk=null,R.writecb=null,S!=null&&this.push(S),C(M);var P=this._readableState;P.reading=!1,(P.needReadable||P.length<P.highWaterMark)&&this._read(P.highWaterMark)}function c(M){if(!(this instanceof c))return new c(M);n.call(this,M),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,M&&(typeof M.transform=="function"&&(this._transform=M.transform),typeof M.flush=="function"&&(this._flush=M.flush)),this.on("prefinish",d)}function d(){var M=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(S,R){m(M,S,R)}):m(this,null,null)}c.prototype.push=function(M,S){return this._transformState.needTransform=!1,n.prototype.push.call(this,M,S)},c.prototype._transform=function(M,S,R){R(new t("_transform()"))},c.prototype._write=function(M,S,R){var C=this._transformState;if(C.writecb=R,C.writechunk=M,C.writeencoding=S,!C.transforming){var P=this._readableState;(C.needTransform||P.needReadable||P.length<P.highWaterMark)&&this._read(P.highWaterMark)}},c.prototype._read=function(M){var S=this._transformState;S.writechunk!==null&&!S.transforming?(S.transforming=!0,this._transform(S.writechunk,S.writeencoding,S.afterTransform)):S.needTransform=!0},c.prototype._destroy=function(M,S){n.prototype._destroy.call(this,M,function(R){S(R)})};function m(M,S,R){if(S)return M.emit("error",S);if(R!=null&&M.push(R),M._writableState.length)throw new a;if(M._transformState.transforming)throw new i;return M.push(null)}return r0}var i0,kb;function oj(){if(kb)return i0;kb=1,i0=t;var e=ES();Ze(t,e);function t(r){if(!(this instanceof t))return new t(r);e.call(this,r)}return t.prototype._transform=function(r,i,a){a(null,r)},i0}var n0,$b;function aj(){if($b)return n0;$b=1;var e;function t(R){var C=!1;return function(){C||(C=!0,R.apply(void 0,arguments))}}var r=js().codes,i=r.ERR_MISSING_ARGS,a=r.ERR_STREAM_DESTROYED;function n(R){if(R)throw R}function u(R){return R.setHeader&&typeof R.abort=="function"}function c(R,C,P,k){k=t(k);var L=!1;R.on("close",function(){L=!0}),e===void 0&&(e=yg()),e(R,{readable:C,writable:P},function(B){if(B)return k(B);L=!0,k()});var I=!1;return function(B){if(!L&&!I){if(I=!0,u(R))return R.abort();if(typeof R.destroy=="function")return R.destroy();k(B||new a("pipe"))}}}function d(R){R()}function m(R,C){return R.pipe(C)}function M(R){return!R.length||typeof R[R.length-1]!="function"?n:R.pop()}function S(){for(var R=arguments.length,C=new Array(R),P=0;P<R;P++)C[P]=arguments[P];var k=M(C);if(Array.isArray(C[0])&&(C=C[0]),C.length<2)throw new i("streams");var L,I=C.map(function(B,H){var F=H<C.length-1,W=H>0;return c(B,F,W,function(Y){L||(L=Y),Y&&I.forEach(d),!F&&(I.forEach(d),k(L))})});return C.reduce(m)}return n0=S,n0}var sj=vi,bg=Or.EventEmitter,fj=Ze;fj(vi,bg);vi.Readable=xS();vi.Writable=SS();vi.Duplex=ws();vi.Transform=ES();vi.PassThrough=oj();vi.finished=yg();vi.pipeline=aj();vi.Stream=vi;function vi(){bg.call(this)}vi.prototype.pipe=function(e,t){var r=this;function i(M){e.writable&&e.write(M)===!1&&r.pause&&r.pause()}r.on("data",i);function a(){r.readable&&r.resume&&r.resume()}e.on("drain",a),!e._isStdio&&(!t||t.end!==!1)&&(r.on("end",u),r.on("close",c));var n=!1;function u(){n||(n=!0,e.end())}function c(){n||(n=!0,typeof e.destroy=="function"&&e.destroy())}function d(M){if(m(),bg.listenerCount(this,"error")===0)throw M}r.on("error",d),e.on("error",d);function m(){r.removeListener("data",i),e.removeListener("drain",a),r.removeListener("end",u),r.removeListener("close",c),r.removeListener("error",d),e.removeListener("error",d),r.removeListener("end",m),r.removeListener("close",m),e.removeListener("close",m)}return r.on("end",m),r.on("close",m),e.on("close",m),e.emit("pipe",r),e};var RS=pt().Buffer,AS=sj.Transform,uj=Xr().StringDecoder,lj=Ze;function Ui(e){AS.call(this),this.hashMode=typeof e=="string",this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}lj(Ui,AS);Ui.prototype.update=function(e,t,r){typeof e=="string"&&(e=RS.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)};Ui.prototype.setAutoPadding=function(){};Ui.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};Ui.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};Ui.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};Ui.prototype._transform=function(e,t,r){var i;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(a){i=a}finally{r(i)}};Ui.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)};Ui.prototype._finalOrDigest=function(e){var t=this.__final()||RS.alloc(0);return e&&(t=this._toString(t,e,!0)),t};Ui.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new uj(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var i=this._decoder.write(e);return r&&(i+=this._decoder.end()),i};var $o=Ui,hj=Ze,cj=vg,dj=gg,pj=mg,TS=$o;function tc(e){TS.call(this,"digest"),this._hash=e}hj(tc,TS);tc.prototype._update=function(e){this._hash.update(e)};tc.prototype._final=function(){return this._hash.digest()};var Tu=function(t){return t=t.toLowerCase(),t==="md5"?new cj:t==="rmd160"||t==="ripemd160"?new dj:new tc(pj(t))},vj=Ze,Xo=pt().Buffer,OS=$o,gj=Xo.alloc(128),Fa=64;function rc(e,t){OS.call(this,"digest"),typeof t=="string"&&(t=Xo.from(t)),this._alg=e,this._key=t,t.length>Fa?t=e(t):t.length<Fa&&(t=Xo.concat([t,gj],Fa));for(var r=this._ipad=Xo.allocUnsafe(Fa),i=this._opad=Xo.allocUnsafe(Fa),a=0;a<Fa;a++)r[a]=t[a]^54,i[a]=t[a]^92;this._hash=[r]}vj(rc,OS);rc.prototype._update=function(e){this._hash.push(e)};rc.prototype._final=function(){var e=this._alg(Xo.concat(this._hash));return this._alg(Xo.concat([this._opad,e]))};var mj=rc,yj=vg,IS=function(e){return new yj().update(e).digest()},bj=Ze,wj=mj,PS=$o,xf=pt().Buffer,_j=IS,Up=gg,Hp=mg,Mj=xf.alloc(128);function ou(e,t){PS.call(this,"digest"),typeof t=="string"&&(t=xf.from(t));var r=e==="sha512"||e==="sha384"?128:64;if(this._alg=e,this._key=t,t.length>r){var i=e==="rmd160"?new Up:Hp(e);t=i.update(t).digest()}else t.length<r&&(t=xf.concat([t,Mj],r));for(var a=this._ipad=xf.allocUnsafe(r),n=this._opad=xf.allocUnsafe(r),u=0;u<r;u++)a[u]=t[u]^54,n[u]=t[u]^92;this._hash=e==="rmd160"?new Up:Hp(e),this._hash.update(a)}bj(ou,PS);ou.prototype._update=function(e){this._hash.update(e)};ou.prototype._final=function(){var e=this._hash.digest(),t=this._alg==="rmd160"?new Up:Hp(this._alg);return t.update(this._opad).update(e).digest()};var CS=function(t,r){return t=t.toLowerCase(),t==="rmd160"||t==="ripemd160"?new ou("rmd160",r):t==="md5"?new wj(_j,r):new ou(t,r)};const Sj={sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},xj={sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},Ej={sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},Rj={sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},Aj={sign:"ecdsa",hash:"sha256",id:""},Tj={sign:"ecdsa",hash:"sha224",id:""},Oj={sign:"ecdsa",hash:"sha384",id:""},Ij={sign:"ecdsa",hash:"sha512",id:""},Pj={sign:"dsa",hash:"sha1",id:""},Cj={sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},Bj={sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},BS={sha224WithRSAEncryption:Sj,"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:xj,"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:Ej,"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:Rj,"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:Aj,sha224:Tj,sha384:Oj,sha512:Ij,"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:Pj,"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:Cj,"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:Bj,"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}};var Lj=BS,ic={},Nj=Math.pow(2,30)-1,LS=function(e,t){if(typeof e!="number")throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if(typeof t!="number")throw new TypeError("Key length not a number");if(t<0||t>Nj||t!==t)throw new TypeError("Bad key length")},yl;if(Ye.process&&Ye.process.browser)yl="utf-8";else if(Ye.process&&Ye.process.version){var kj=parseInt(we.version.split(".")[0].slice(1),10);yl=kj>=6?"utf-8":"binary"}else yl="utf-8";var NS=yl,o0=pt().Buffer,kS=function(e,t,r){if(o0.isBuffer(e))return e;if(typeof e=="string")return o0.from(e,t);if(ArrayBuffer.isView(e))return o0.from(e.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")},$j=IS,Dj=gg,Fj=mg,Jo=pt().Buffer,jj=LS,Db=NS,Fb=kS,Uj=Jo.alloc(128),bl={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function $S(e,t,r){var i=Hj(e),a=e==="sha512"||e==="sha384"?128:64;t.length>a?t=i(t):t.length<a&&(t=Jo.concat([t,Uj],a));for(var n=Jo.allocUnsafe(a+bl[e]),u=Jo.allocUnsafe(a+bl[e]),c=0;c<a;c++)n[c]=t[c]^54,u[c]=t[c]^92;var d=Jo.allocUnsafe(a+r+4);n.copy(d,0,0,a),this.ipad1=d,this.ipad2=n,this.opad=u,this.alg=e,this.blocksize=a,this.hash=i,this.size=bl[e]}$S.prototype.run=function(e,t){e.copy(t,this.blocksize);var r=this.hash(t);return r.copy(this.opad,this.blocksize),this.hash(this.opad)};function Hj(e){function t(i){return Fj(e).update(i).digest()}function r(i){return new Dj().update(i).digest()}return e==="rmd160"||e==="ripemd160"?r:e==="md5"?$j:t}function qj(e,t,r,i,a){jj(r,i),e=Fb(e,Db,"Password"),t=Fb(t,Db,"Salt"),a=a||"sha1";var n=new $S(a,e,t.length),u=Jo.allocUnsafe(i),c=Jo.allocUnsafe(t.length+4);t.copy(c,0,0,t.length);for(var d=0,m=bl[a],M=Math.ceil(i/m),S=1;S<=M;S++){c.writeUInt32BE(S,t.length);for(var R=n.run(c,n.ipad1),C=R,P=1;P<r;P++){C=n.run(C,n.ipad2);for(var k=0;k<m;k++)R[k]^=C[k]}R.copy(u,d),d+=m}return u}var DS=qj,FS=pt().Buffer,Wj=LS,jb=NS,Ub=DS,Hb=kS,Ju,jf=Ye.crypto&&Ye.crypto.subtle,Kj={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},a0=[];function Vj(e){if(Ye.process&&!Ye.process.browser||!jf||!jf.importKey||!jf.deriveBits)return Promise.resolve(!1);if(a0[e]!==void 0)return a0[e];Ju=Ju||FS.alloc(8);var t=jS(Ju,Ju,10,128,e).then(function(){return!0}).catch(function(){return!1});return a0[e]=t,t}var Uo;function qp(){return Uo||(Ye.process&&Ye.process.nextTick?Uo=Ye.process.nextTick:Ye.queueMicrotask?Uo=Ye.queueMicrotask:Ye.setImmediate?Uo=Ye.setImmediate:Uo=Ye.setTimeout,Uo)}function jS(e,t,r,i,a){return jf.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(n){return jf.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:a}},n,i<<3)}).then(function(n){return FS.from(n)})}function zj(e,t){e.then(function(r){qp()(function(){t(null,r)})},function(r){qp()(function(){t(r)})})}var Gj=function(e,t,r,i,a,n){typeof a=="function"&&(n=a,a=void 0),a=a||"sha1";var u=Kj[a.toLowerCase()];if(!u||typeof Ye.Promise!="function"){qp()(function(){var c;try{c=Ub(e,t,r,i,a)}catch(d){return n(d)}n(null,c)});return}if(Wj(r,i),e=Hb(e,jb,"Password"),t=Hb(t,jb,"Salt"),typeof n!="function")throw new Error("No callback provided to pbkdf2");zj(Vj(u).then(function(c){return c?jS(e,t,r,i,u):Ub(e,t,r,i,a)}),n)};ic.pbkdf2=Gj;ic.pbkdf2Sync=DS;var $i={},Us={},ti={};ti.readUInt32BE=function(t,r){var i=t[0+r]<<24|t[1+r]<<16|t[2+r]<<8|t[3+r];return i>>>0};ti.writeUInt32BE=function(t,r,i){t[0+i]=r>>>24,t[1+i]=r>>>16&255,t[2+i]=r>>>8&255,t[3+i]=r&255};ti.ip=function(t,r,i,a){for(var n=0,u=0,c=6;c>=0;c-=2){for(var d=0;d<=24;d+=8)n<<=1,n|=r>>>d+c&1;for(var d=0;d<=24;d+=8)n<<=1,n|=t>>>d+c&1}for(var c=6;c>=0;c-=2){for(var d=1;d<=25;d+=8)u<<=1,u|=r>>>d+c&1;for(var d=1;d<=25;d+=8)u<<=1,u|=t>>>d+c&1}i[a+0]=n>>>0,i[a+1]=u>>>0};ti.rip=function(t,r,i,a){for(var n=0,u=0,c=0;c<4;c++)for(var d=24;d>=0;d-=8)n<<=1,n|=r>>>d+c&1,n<<=1,n|=t>>>d+c&1;for(var c=4;c<8;c++)for(var d=24;d>=0;d-=8)u<<=1,u|=r>>>d+c&1,u<<=1,u|=t>>>d+c&1;i[a+0]=n>>>0,i[a+1]=u>>>0};ti.pc1=function(t,r,i,a){for(var n=0,u=0,c=7;c>=5;c--){for(var d=0;d<=24;d+=8)n<<=1,n|=r>>d+c&1;for(var d=0;d<=24;d+=8)n<<=1,n|=t>>d+c&1}for(var d=0;d<=24;d+=8)n<<=1,n|=r>>d+c&1;for(var c=1;c<=3;c++){for(var d=0;d<=24;d+=8)u<<=1,u|=r>>d+c&1;for(var d=0;d<=24;d+=8)u<<=1,u|=t>>d+c&1}for(var d=0;d<=24;d+=8)u<<=1,u|=t>>d+c&1;i[a+0]=n>>>0,i[a+1]=u>>>0};ti.r28shl=function(t,r){return t<<r&268435455|t>>>28-r};var Qu=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];ti.pc2=function(t,r,i,a){for(var n=0,u=0,c=Qu.length>>>1,d=0;d<c;d++)n<<=1,n|=t>>>Qu[d]&1;for(var d=c;d<Qu.length;d++)u<<=1,u|=r>>>Qu[d]&1;i[a+0]=n>>>0,i[a+1]=u>>>0};ti.expand=function(t,r,i){var a=0,n=0;a=(t&1)<<5|t>>>27;for(var u=23;u>=15;u-=4)a<<=6,a|=t>>>u&63;for(var u=11;u>=3;u-=4)n|=t>>>u&63,n<<=6;n|=(t&31)<<1|t>>>31,r[i+0]=a>>>0,r[i+1]=n>>>0};var qb=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];ti.substitute=function(t,r){for(var i=0,a=0;a<4;a++){var n=t>>>18-a*6&63,u=qb[a*64+n];i<<=4,i|=u}for(var a=0;a<4;a++){var n=r>>>18-a*6&63,u=qb[4*64+a*64+n];i<<=4,i|=u}return i>>>0};var Wb=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];ti.permute=function(t){for(var r=0,i=0;i<Wb.length;i++)r<<=1,r|=t>>>Wb[i]&1;return r>>>0};ti.padSplit=function(t,r,i){for(var a=t.toString(2);a.length<r;)a="0"+a;for(var n=[],u=0;u<r;u+=i)n.push(a.slice(u,u+i));return n.join(" ")};var Si=US;function US(e,t){if(!e)throw new Error(t||"Assertion failed")}US.equal=function(t,r,i){if(t!=r)throw new Error(i||"Assertion failed: "+t+" != "+r)};var Yj=Si;function xi(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0,this.padding=e.padding!==!1}var wg=xi;xi.prototype._init=function(){};xi.prototype.update=function(t){return t.length===0?[]:this.type==="decrypt"?this._updateDecrypt(t):this._updateEncrypt(t)};xi.prototype._buffer=function(t,r){for(var i=Math.min(this.buffer.length-this.bufferOff,t.length-r),a=0;a<i;a++)this.buffer[this.bufferOff+a]=t[r+a];return this.bufferOff+=i,i};xi.prototype._flushBuffer=function(t,r){return this._update(this.buffer,0,t,r),this.bufferOff=0,this.blockSize};xi.prototype._updateEncrypt=function(t){var r=0,i=0,a=(this.bufferOff+t.length)/this.blockSize|0,n=new Array(a*this.blockSize);this.bufferOff!==0&&(r+=this._buffer(t,r),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(n,i)));for(var u=t.length-(t.length-r)%this.blockSize;r<u;r+=this.blockSize)this._update(t,r,n,i),i+=this.blockSize;for(;r<t.length;r++,this.bufferOff++)this.buffer[this.bufferOff]=t[r];return n};xi.prototype._updateDecrypt=function(t){for(var r=0,i=0,a=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,n=new Array(a*this.blockSize);a>0;a--)r+=this._buffer(t,r),i+=this._flushBuffer(n,i);return r+=this._buffer(t,r),n};xi.prototype.final=function(t){var r;t&&(r=this.update(t));var i;return this.type==="encrypt"?i=this._finalEncrypt():i=this._finalDecrypt(),r?r.concat(i):i};xi.prototype._pad=function(t,r){if(r===0)return!1;for(;r<t.length;)t[r++]=0;return!0};xi.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t};xi.prototype._unpad=function(t){return t};xi.prototype._finalDecrypt=function(){Yj.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)};var HS=Si,Zj=Ze,or=ti,qS=wg;function Xj(){this.tmp=new Array(2),this.keys=null}function fn(e){qS.call(this,e);var t=new Xj;this._desState=t,this.deriveKeys(t,e.key)}Zj(fn,qS);var WS=fn;fn.create=function(t){return new fn(t)};var Jj=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];fn.prototype.deriveKeys=function(t,r){t.keys=new Array(16*2),HS.equal(r.length,this.blockSize,"Invalid key length");var i=or.readUInt32BE(r,0),a=or.readUInt32BE(r,4);or.pc1(i,a,t.tmp,0),i=t.tmp[0],a=t.tmp[1];for(var n=0;n<t.keys.length;n+=2){var u=Jj[n>>>1];i=or.r28shl(i,u),a=or.r28shl(a,u),or.pc2(i,a,t.keys,n)}};fn.prototype._update=function(t,r,i,a){var n=this._desState,u=or.readUInt32BE(t,r),c=or.readUInt32BE(t,r+4);or.ip(u,c,n.tmp,0),u=n.tmp[0],c=n.tmp[1],this.type==="encrypt"?this._encrypt(n,u,c,n.tmp,0):this._decrypt(n,u,c,n.tmp,0),u=n.tmp[0],c=n.tmp[1],or.writeUInt32BE(i,u,a),or.writeUInt32BE(i,c,a+4)};fn.prototype._pad=function(t,r){if(this.padding===!1)return!1;for(var i=t.length-r,a=r;a<t.length;a++)t[a]=i;return!0};fn.prototype._unpad=function(t){if(this.padding===!1)return t;for(var r=t[t.length-1],i=t.length-r;i<t.length;i++)HS.equal(t[i],r);return t.slice(0,t.length-r)};fn.prototype._encrypt=function(t,r,i,a,n){for(var u=r,c=i,d=0;d<t.keys.length;d+=2){var m=t.keys[d],M=t.keys[d+1];or.expand(c,t.tmp,0),m^=t.tmp[0],M^=t.tmp[1];var S=or.substitute(m,M),R=or.permute(S),C=c;c=(u^R)>>>0,u=C}or.rip(c,u,a,n)};fn.prototype._decrypt=function(t,r,i,a,n){for(var u=i,c=r,d=t.keys.length-2;d>=0;d-=2){var m=t.keys[d],M=t.keys[d+1];or.expand(u,t.tmp,0),m^=t.tmp[0],M^=t.tmp[1];var S=or.substitute(m,M),R=or.permute(S),C=u;u=(c^R)>>>0,c=C}or.rip(u,c,a,n)};var KS={},Qj=Si,eU=Ze,eh={};function tU(e){Qj.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}function rU(e){function t(n){e.call(this,n),this._cbcInit()}eU(t,e);for(var r=Object.keys(eh),i=0;i<r.length;i++){var a=r[i];t.prototype[a]=eh[a]}return t.create=function(u){return new t(u)},t}KS.instantiate=rU;eh._cbcInit=function(){var t=new tU(this.options.iv);this._cbcState=t};eh._update=function(t,r,i,a){var n=this._cbcState,u=this.constructor.super_.prototype,c=n.iv;if(this.type==="encrypt"){for(var d=0;d<this.blockSize;d++)c[d]^=t[r+d];u._update.call(this,c,0,i,a);for(var d=0;d<this.blockSize;d++)c[d]=i[a+d]}else{u._update.call(this,t,r,i,a);for(var d=0;d<this.blockSize;d++)i[a+d]^=c[d];for(var d=0;d<this.blockSize;d++)c[d]=t[r+d]}};var iU=Si,nU=Ze,VS=wg,ao=WS;function oU(e,t){iU.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),a=t.slice(16,24);e==="encrypt"?this.ciphers=[ao.create({type:"encrypt",key:r}),ao.create({type:"decrypt",key:i}),ao.create({type:"encrypt",key:a})]:this.ciphers=[ao.create({type:"decrypt",key:a}),ao.create({type:"encrypt",key:i}),ao.create({type:"decrypt",key:r})]}function da(e){VS.call(this,e);var t=new oU(this.type,this.options.key);this._edeState=t}nU(da,VS);var aU=da;da.create=function(t){return new da(t)};da.prototype._update=function(t,r,i,a){var n=this._edeState;n.ciphers[0]._update(t,r,i,a),n.ciphers[1]._update(i,a,i,a),n.ciphers[2]._update(i,a,i,a)};da.prototype._pad=ao.prototype._pad;da.prototype._unpad=ao.prototype._unpad;Us.utils=ti;Us.Cipher=wg;Us.DES=WS;Us.CBC=KS;Us.EDE=aU;var zS=$o,yn=Us,sU=Ze,zo=pt().Buffer,au={"des-ede3-cbc":yn.CBC.instantiate(yn.EDE),"des-ede3":yn.EDE,"des-ede-cbc":yn.CBC.instantiate(yn.EDE),"des-ede":yn.EDE,"des-cbc":yn.CBC.instantiate(yn.DES),"des-ecb":yn.DES};au.des=au["des-cbc"];au.des3=au["des-ede3-cbc"];var fU=nc;sU(nc,zS);function nc(e){zS.call(this);var t=e.mode.toLowerCase(),r=au[t],i;e.decrypt?i="decrypt":i="encrypt";var a=e.key;zo.isBuffer(a)||(a=zo.from(a)),(t==="des-ede"||t==="des-ede-cbc")&&(a=zo.concat([a,a.slice(0,8)]));var n=e.iv;zo.isBuffer(n)||(n=zo.from(n)),this._des=r.create({key:a,iv:n,type:i})}nc.prototype._update=function(e){return zo.from(this._des.update(e))};nc.prototype._final=function(){return zo.from(this._des.final())};var Qr={},_g={},Mg={};Mg.encrypt=function(e,t){return e._cipher.encryptBlock(t)};Mg.decrypt=function(e,t){return e._cipher.decryptBlock(t)};var Sg={},Ou=function(t,r){for(var i=Math.min(t.length,r.length),a=new ke.Buffer(i),n=0;n<i;++n)a[n]=t[n]^r[n];return a},GS=Ou;Sg.encrypt=function(e,t){var r=GS(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev};Sg.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return GS(i,r)};var YS={},Ef=pt().Buffer,uU=Ou;function Kb(e,t,r){var i=t.length,a=uU(t,e._cache);return e._cache=e._cache.slice(i),e._prev=Ef.concat([e._prev,r?t:a]),a}YS.encrypt=function(e,t,r){for(var i=Ef.allocUnsafe(0),a;t.length;)if(e._cache.length===0&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=Ef.allocUnsafe(0)),e._cache.length<=t.length)a=e._cache.length,i=Ef.concat([i,Kb(e,t.slice(0,a),r)]),t=t.slice(a);else{i=Ef.concat([i,Kb(e,t,r)]);break}return i};var ZS={},Wp=pt().Buffer;function lU(e,t,r){var i=e._cipher.encryptBlock(e._prev),a=i[0]^t;return e._prev=Wp.concat([e._prev.slice(1),Wp.from([r?t:a])]),a}ZS.encrypt=function(e,t,r){for(var i=t.length,a=Wp.allocUnsafe(i),n=-1;++n<i;)a[n]=lU(e,t[n],r);return a};var XS={},wl=pt().Buffer;function hU(e,t,r){for(var i,a=-1,n=8,u=0,c,d;++a<n;)i=e._cipher.encryptBlock(e._prev),c=t&1<<7-a?128:0,d=i[0]^c,u+=(d&128)>>a%8,e._prev=cU(e._prev,r?c:d);return u}function cU(e,t){var r=e.length,i=-1,a=wl.allocUnsafe(e.length);for(e=wl.concat([e,wl.from([t])]);++i<r;)a[i]=e[i]<<1|e[i+1]>>7;return a}XS.encrypt=function(e,t,r){for(var i=t.length,a=wl.allocUnsafe(i),n=-1;++n<i;)a[n]=hU(e,t[n],r);return a};var JS={},dU=Ou;function pU(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}JS.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=ke.Buffer.concat([e._cache,pU(e)]);var r=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),dU(t,r)};var Kp={};function vU(e){for(var t=e.length,r;t--;)if(r=e.readUInt8(t),r===255)e.writeUInt8(0,t);else{r++,e.writeUInt8(r,t);break}}var QS=vU,gU=Ou,Vb=pt().Buffer,mU=QS;function yU(e){var t=e._cipher.encryptBlockRaw(e._prev);return mU(e._prev),t}var s0=16;Kp.encrypt=function(e,t){var r=Math.ceil(t.length/s0),i=e._cache.length;e._cache=Vb.concat([e._cache,Vb.allocUnsafe(r*s0)]);for(var a=0;a<r;a++){var n=yU(e),u=i+a*s0;e._cache.writeUInt32BE(n[0],u+0),e._cache.writeUInt32BE(n[1],u+4),e._cache.writeUInt32BE(n[2],u+8),e._cache.writeUInt32BE(n[3],u+12)}var c=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),gU(t,c)};const bU={cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},wU={cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},_U={cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},ex={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:bU,aes192:wU,aes256:_U,"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}};var MU={ECB:Mg,CBC:Sg,CFB:YS,CFB8:ZS,CFB1:XS,OFB:JS,CTR:Kp,GCM:Kp},_l=ex;for(var zb in _l)_l[zb].module=MU[_l[zb].mode];var xg=_l,Iu={},th=pt().Buffer;function Eg(e){th.isBuffer(e)||(e=th.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(i*4);return r}function f0(e){for(var t=0;t<e.length;e++)e[t]=0}function tx(e,t,r,i,a){for(var n=r[0],u=r[1],c=r[2],d=r[3],m=e[0]^t[0],M=e[1]^t[1],S=e[2]^t[2],R=e[3]^t[3],C,P,k,L,I=4,B=1;B<a;B++)C=n[m>>>24]^u[M>>>16&255]^c[S>>>8&255]^d[R&255]^t[I++],P=n[M>>>24]^u[S>>>16&255]^c[R>>>8&255]^d[m&255]^t[I++],k=n[S>>>24]^u[R>>>16&255]^c[m>>>8&255]^d[M&255]^t[I++],L=n[R>>>24]^u[m>>>16&255]^c[M>>>8&255]^d[S&255]^t[I++],m=C,M=P,S=k,R=L;return C=(i[m>>>24]<<24|i[M>>>16&255]<<16|i[S>>>8&255]<<8|i[R&255])^t[I++],P=(i[M>>>24]<<24|i[S>>>16&255]<<16|i[R>>>8&255]<<8|i[m&255])^t[I++],k=(i[S>>>24]<<24|i[R>>>16&255]<<16|i[m>>>8&255]<<8|i[M&255])^t[I++],L=(i[R>>>24]<<24|i[m>>>16&255]<<16|i[M>>>8&255]<<8|i[S&255])^t[I++],C=C>>>0,P=P>>>0,k=k>>>0,L=L>>>0,[C,P,k,L]}var SU=[0,1,2,4,8,16,32,64,128,27,54],nr=function(){for(var e=new Array(256),t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var r=[],i=[],a=[[],[],[],[]],n=[[],[],[],[]],u=0,c=0,d=0;d<256;++d){var m=c^c<<1^c<<2^c<<3^c<<4;m=m>>>8^m&255^99,r[u]=m,i[m]=u;var M=e[u],S=e[M],R=e[S],C=e[m]*257^m*16843008;a[0][u]=C<<24|C>>>8,a[1][u]=C<<16|C>>>16,a[2][u]=C<<8|C>>>24,a[3][u]=C,C=R*16843009^S*65537^M*257^u*16843008,n[0][m]=C<<24|C>>>8,n[1][m]=C<<16|C>>>16,n[2][m]=C<<8|C>>>24,n[3][m]=C,u===0?u=c=1:(u=M^e[e[e[R^M]]],c^=e[e[c]])}return{SBOX:r,INV_SBOX:i,SUB_MIX:a,INV_SUB_MIX:n}}();function gi(e){this._key=Eg(e),this._reset()}gi.blockSize=4*4;gi.keySize=256/8;gi.prototype.blockSize=gi.blockSize;gi.prototype.keySize=gi.keySize;gi.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,i=(r+1)*4,a=[],n=0;n<t;n++)a[n]=e[n];for(n=t;n<i;n++){var u=a[n-1];n%t===0?(u=u<<8|u>>>24,u=nr.SBOX[u>>>24]<<24|nr.SBOX[u>>>16&255]<<16|nr.SBOX[u>>>8&255]<<8|nr.SBOX[u&255],u^=SU[n/t|0]<<24):t>6&&n%t===4&&(u=nr.SBOX[u>>>24]<<24|nr.SBOX[u>>>16&255]<<16|nr.SBOX[u>>>8&255]<<8|nr.SBOX[u&255]),a[n]=a[n-t]^u}for(var c=[],d=0;d<i;d++){var m=i-d,M=a[m-(d%4?0:4)];d<4||m<=4?c[d]=M:c[d]=nr.INV_SUB_MIX[0][nr.SBOX[M>>>24]]^nr.INV_SUB_MIX[1][nr.SBOX[M>>>16&255]]^nr.INV_SUB_MIX[2][nr.SBOX[M>>>8&255]]^nr.INV_SUB_MIX[3][nr.SBOX[M&255]]}this._nRounds=r,this._keySchedule=a,this._invKeySchedule=c};gi.prototype.encryptBlockRaw=function(e){return e=Eg(e),tx(e,this._keySchedule,nr.SUB_MIX,nr.SBOX,this._nRounds)};gi.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=th.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r};gi.prototype.decryptBlock=function(e){e=Eg(e);var t=e[1];e[1]=e[3],e[3]=t;var r=tx(e,this._invKeySchedule,nr.INV_SUB_MIX,nr.INV_SBOX,this._nRounds),i=th.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i};gi.prototype.scrub=function(){f0(this._keySchedule),f0(this._invKeySchedule),f0(this._key)};Iu.AES=gi;var _s=pt().Buffer,xU=_s.alloc(16,0);function EU(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function rx(e){var t=_s.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function Pu(e){this.h=e,this.state=_s.alloc(16,0),this.cache=_s.allocUnsafe(0)}Pu.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()};Pu.prototype._multiply=function(){for(var e=EU(this.h),t=[0,0,0,0],r,i,a,n=-1;++n<128;){for(i=(this.state[~~(n/8)]&1<<7-n%8)!==0,i&&(t[0]^=e[0],t[1]^=e[1],t[2]^=e[2],t[3]^=e[3]),a=(e[3]&1)!==0,r=3;r>0;r--)e[r]=e[r]>>>1|(e[r-1]&1)<<31;e[0]=e[0]>>>1,a&&(e[0]=e[0]^225<<24)}this.state=rx(t)};Pu.prototype.update=function(e){this.cache=_s.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)};Pu.prototype.final=function(e,t){return this.cache.length&&this.ghash(_s.concat([this.cache,xU],16)),this.ghash(rx([0,e,0,t])),this.state};var RU=Pu,AU=Iu,jr=pt().Buffer,ix=$o,TU=Ze,nx=RU,OU=Ou,IU=QS;function PU(e,t){var r=0;e.length!==t.length&&r++;for(var i=Math.min(e.length,t.length),a=0;a<i;++a)r+=e[a]^t[a];return r}function CU(e,t,r){if(t.length===12)return e._finID=jr.concat([t,jr.from([0,0,0,1])]),jr.concat([t,jr.from([0,0,0,2])]);var i=new nx(r),a=t.length,n=a%16;i.update(t),n&&(n=16-n,i.update(jr.alloc(n,0))),i.update(jr.alloc(8,0));var u=a*8,c=jr.alloc(8);c.writeUIntBE(u,0,8),i.update(c),e._finID=i.state;var d=jr.from(e._finID);return IU(d),d}function Oa(e,t,r,i){ix.call(this);var a=jr.alloc(4,0);this._cipher=new AU.AES(t);var n=this._cipher.encryptBlock(a);this._ghash=new nx(n),r=CU(this,r,n),this._prev=jr.from(r),this._cache=jr.allocUnsafe(0),this._secCache=jr.allocUnsafe(0),this._decrypt=i,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}TU(Oa,ix);Oa.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=jr.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r};Oa.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=OU(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&PU(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()};Oa.prototype.getAuthTag=function(){if(this._decrypt||!jr.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag};Oa.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t};Oa.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length};var ox=Oa,BU=Iu,u0=pt().Buffer,ax=$o,LU=Ze;function oc(e,t,r,i){ax.call(this),this._cipher=new BU.AES(t),this._prev=u0.from(r),this._cache=u0.allocUnsafe(0),this._secCache=u0.allocUnsafe(0),this._decrypt=i,this._mode=e}LU(oc,ax);oc.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)};oc.prototype._final=function(){this._cipher.scrub()};var sx=oc,Ho=pt().Buffer,NU=vg;function kU(e,t,r,i){if(Ho.isBuffer(e)||(e=Ho.from(e,"binary")),t&&(Ho.isBuffer(t)||(t=Ho.from(t,"binary")),t.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=r/8,n=Ho.alloc(a),u=Ho.alloc(i||0),c=Ho.alloc(0);a>0||i>0;){var d=new NU;d.update(c),d.update(e),t&&d.update(t),c=d.digest();var m=0;if(a>0){var M=n.length-a;m=Math.min(a,c.length),c.copy(n,M,0,m),a-=m}if(m<c.length&&i>0){var S=u.length-i,R=Math.min(i,c.length-m);c.copy(u,S,m,m+R),i-=R}}return c.fill(0),{key:n,iv:u}}var ac=kU,fx=xg,$U=ox,jn=pt().Buffer,DU=sx,ux=$o,FU=Iu,jU=ac,UU=Ze;function Cu(e,t,r){ux.call(this),this._cache=new sc,this._cipher=new FU.AES(t),this._prev=jn.from(r),this._mode=e,this._autopadding=!0}UU(Cu,ux);Cu.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get();)r=this._mode.encrypt(this,t),i.push(r);return jn.concat(i)};var HU=jn.alloc(16,16);Cu.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(HU))throw this._cipher.scrub(),new Error("data not multiple of block length")};Cu.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function sc(){this.cache=jn.allocUnsafe(0)}sc.prototype.add=function(e){this.cache=jn.concat([this.cache,e])};sc.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null};sc.prototype.flush=function(){for(var e=16-this.cache.length,t=jn.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return jn.concat([this.cache,t])};function lx(e,t,r){var i=fx[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof t=="string"&&(t=jn.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);if(typeof r=="string"&&(r=jn.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);return i.type==="stream"?new DU(i.module,t,r):i.type==="auth"?new $U(i.module,t,r):new Cu(i.module,t,r)}function qU(e,t){var r=fx[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=jU(t,!1,r.key,r.iv);return lx(e,i.key,i.iv)}_g.createCipheriv=lx;_g.createCipher=qU;var Rg={},WU=ox,Ms=pt().Buffer,hx=xg,KU=sx,cx=$o,VU=Iu,zU=ac,GU=Ze;function Bu(e,t,r){cx.call(this),this._cache=new fc,this._last=void 0,this._cipher=new VU.AES(t),this._prev=Ms.from(r),this._mode=e,this._autopadding=!0}GU(Bu,cx);Bu.prototype._update=function(e){this._cache.add(e);for(var t,r,i=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),i.push(r);return Ms.concat(i)};Bu.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return YU(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")};Bu.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this};function fc(){this.cache=Ms.allocUnsafe(0)}fc.prototype.add=function(e){this.cache=Ms.concat([this.cache,e])};fc.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null};fc.prototype.flush=function(){if(this.cache.length)return this.cache};function YU(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(t!==16)return e.slice(0,16-t)}function dx(e,t,r){var i=hx[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if(typeof r=="string"&&(r=Ms.from(r)),i.mode!=="GCM"&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if(typeof t=="string"&&(t=Ms.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);return i.type==="stream"?new KU(i.module,t,r,!0):i.type==="auth"?new WU(i.module,t,r,!0):new Bu(i.module,t,r)}function ZU(e,t){var r=hx[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=zU(t,!1,r.key,r.iv);return dx(e,i.key,i.iv)}Rg.createDecipher=ZU;Rg.createDecipheriv=dx;var px=_g,vx=Rg,XU=ex;function JU(){return Object.keys(XU)}Qr.createCipher=Qr.Cipher=px.createCipher;Qr.createCipheriv=Qr.Cipheriv=px.createCipheriv;Qr.createDecipher=Qr.Decipher=vx.createDecipher;Qr.createDecipheriv=Qr.Decipheriv=vx.createDecipheriv;Qr.listCiphers=Qr.getCiphers=JU;var gx={};(function(e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}})(gx);var mx=fU,Ag=Qr,wo=xg,Bn=gx,yx=ac;function QU(e,t){e=e.toLowerCase();var r,i;if(wo[e])r=wo[e].key,i=wo[e].iv;else if(Bn[e])r=Bn[e].key*8,i=Bn[e].iv;else throw new TypeError("invalid suite type");var a=yx(t,!1,r,i);return bx(e,a.key,a.iv)}function eH(e,t){e=e.toLowerCase();var r,i;if(wo[e])r=wo[e].key,i=wo[e].iv;else if(Bn[e])r=Bn[e].key*8,i=Bn[e].iv;else throw new TypeError("invalid suite type");var a=yx(t,!1,r,i);return _x(e,a.key,a.iv)}function bx(e,t,r){if(e=e.toLowerCase(),wo[e])return Ag.createCipheriv(e,t,r);if(Bn[e])return new mx({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function _x(e,t,r){if(e=e.toLowerCase(),wo[e])return Ag.createDecipheriv(e,t,r);if(Bn[e])return new mx({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}function tH(){return Object.keys(Bn).concat(Ag.getCiphers())}$i.createCipher=$i.Cipher=QU;$i.createCipheriv=$i.Cipheriv=bx;$i.createDecipher=$i.Decipher=eH;$i.createDecipheriv=$i.Decipheriv=_x;$i.listCiphers=$i.getCiphers=tH;var qo={},Tg={exports:{}};Tg.exports;(function(e){(function(t,r){function i(_,o){if(!_)throw new Error(o||"Assertion failed")}function a(_,o){_.super_=o;var f=function(){};f.prototype=o.prototype,_.prototype=new f,_.prototype.constructor=_}function n(_,o,f){if(n.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((o==="le"||o==="be")&&(f=o,o=10),this._init(_||0,o||10,f||"be"))}typeof t=="object"?t.exports=n:r.BN=n,n.BN=n,n.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=ke.Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,f){return o.cmp(f)>0?o:f},n.min=function(o,f){return o.cmp(f)<0?o:f},n.prototype._init=function(o,f,l){if(typeof o=="number")return this._initNumber(o,f,l);if(typeof o=="object")return this._initArray(o,f,l);f==="hex"&&(f=16),i(f===(f|0)&&f>=2&&f<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h<o.length&&(f===16?this._parseHex(o,h,l):(this._parseBase(o,f,h),l==="le"&&this._initArray(this.toArray(),f,l)))},n.prototype._initNumber=function(o,f,l){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(i(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),f,l)},n.prototype._initArray=function(o,f,l){if(i(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p,w,x=0;if(l==="be")for(h=o.length-1,p=0;h>=0;h-=3)w=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);else if(l==="le")for(h=0,p=0;h<o.length;h+=3)w=o[h]|o[h+1]<<8|o[h+2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);return this.strip()};function c(_,o){var f=_.charCodeAt(o);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function d(_,o,f){var l=c(_,f);return f-1>=o&&(l|=c(_,f-1)<<4),l}n.prototype._parseHex=function(o,f,l){this.length=Math.ceil((o.length-f)/6),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p=0,w=0,x;if(l==="be")for(h=o.length-1;h>=f;h-=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8;else{var g=o.length-f;for(h=g%2===0?f+1:f;h<o.length;h+=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8}this.strip()};function m(_,o,f,l){for(var h=0,p=Math.min(_.length,f),w=o;w<p;w++){var x=_.charCodeAt(w)-48;h*=l,x>=49?h+=x-49+10:x>=17?h+=x-17+10:h+=x}return h}n.prototype._parseBase=function(o,f,l){this.words=[0],this.length=1;for(var h=0,p=1;p<=67108863;p*=f)h++;h--,p=p/f|0;for(var w=o.length-l,x=w%h,g=Math.min(w,w-x)+l,s=0,v=l;v<g;v+=h)s=m(o,v,v+h,f),this.imuln(p),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(x!==0){var T=1;for(s=m(o,v,o.length,f),v=0;v<x;v++)T*=f;this.imuln(T),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},n.prototype.copy=function(o){o.words=new Array(this.length);for(var f=0;f<this.length;f++)o.words[f]=this.words[f];o.length=this.length,o.negative=this.negative,o.red=this.red},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],R=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,f){o=o||10,f=f|0||1;var l;if(o===16||o==="hex"){l="";for(var h=0,p=0,w=0;w<this.length;w++){var x=this.words[w],g=((x<<h|p)&16777215).toString(16);p=x>>>24-h&16777215,p!==0||w!==this.length-1?l=M[6-g.length]+g+l:l=g+l,h+=2,h>=26&&(h-=26,w--)}for(p!==0&&(l=p.toString(16)+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(o===(o|0)&&o>=2&&o<=36){var s=S[o],v=R[o];l="";var T=this.clone();for(T.negative=0;!T.isZero();){var $=T.modn(v).toString(o);T=T.idivn(v),T.isZero()?l=$+l:l=M[s-$.length]+$+l}for(this.isZero()&&(l="0"+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(o,f){return i(typeof u<"u"),this.toArrayLike(u,o,f)},n.prototype.toArray=function(o,f){return this.toArrayLike(Array,o,f)},n.prototype.toArrayLike=function(o,f,l){var h=this.byteLength(),p=l||Math.max(1,h);i(h<=p,"byte array longer than desired length"),i(p>0,"Requested array length <= 0"),this.strip();var w=f==="le",x=new o(p),g,s,v=this.clone();if(w){for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[s]=g;for(;s<p;s++)x[s]=0}else{for(s=0;s<p-h;s++)x[s]=0;for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[p-s-1]=g}return x},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var f=o,l=0;return f>=4096&&(l+=13,f>>>=13),f>=64&&(l+=7,f>>>=7),f>=8&&(l+=4,f>>>=4),f>=2&&(l+=2,f>>>=2),l+f},n.prototype._zeroBits=function(o){if(o===0)return 26;var f=o,l=0;return f&8191||(l+=13,f>>>=13),f&127||(l+=7,f>>>=7),f&15||(l+=4,f>>>=4),f&3||(l+=2,f>>>=2),f&1||l++,l},n.prototype.bitLength=function(){var o=this.words[this.length-1],f=this._countBits(o);return(this.length-1)*26+f};function C(_){for(var o=new Array(_.bitLength()),f=0;f<o.length;f++){var l=f/26|0,h=f%26;o[f]=(_.words[l]&1<<h)>>>h}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,f=0;f<this.length;f++){var l=this._zeroBits(this.words[f]);if(o+=l,l!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var f=0;f<o.length;f++)this.words[f]=this.words[f]|o.words[f];return this.strip()},n.prototype.ior=function(o){return i((this.negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},n.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},n.prototype.iuand=function(o){var f;this.length>o.length?f=o:f=this;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]&o.words[l];return this.length=f.length,this.strip()},n.prototype.iand=function(o){return i((this.negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},n.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},n.prototype.iuxor=function(o){var f,l;this.length>o.length?(f=this,l=o):(f=o,l=this);for(var h=0;h<l.length;h++)this.words[h]=f.words[h]^l.words[h];if(this!==f)for(;h<f.length;h++)this.words[h]=f.words[h];return this.length=f.length,this.strip()},n.prototype.ixor=function(o){return i((this.negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},n.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},n.prototype.inotn=function(o){i(typeof o=="number"&&o>=0);var f=Math.ceil(o/26)|0,l=o%26;this._expand(f),l>0&&f--;for(var h=0;h<f;h++)this.words[h]=~this.words[h]&67108863;return l>0&&(this.words[h]=~this.words[h]&67108863>>26-l),this.strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,f){i(typeof o=="number"&&o>=0);var l=o/26|0,h=o%26;return this._expand(l+1),f?this.words[l]=this.words[l]|1<<h:this.words[l]=this.words[l]&~(1<<h),this.strip()},n.prototype.iadd=function(o){var f;if(this.negative!==0&&o.negative===0)return this.negative=0,f=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,f=this.isub(o),o.negative=1,f._normSign();var l,h;this.length>o.length?(l=this,h=o):(l=o,h=this);for(var p=0,w=0;w<h.length;w++)f=(l.words[w]|0)+(h.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;for(;p!==0&&w<l.length;w++)f=(l.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;if(this.length=l.length,p!==0)this.words[this.length]=p,this.length++;else if(l!==this)for(;w<l.length;w++)this.words[w]=l.words[w];return this},n.prototype.add=function(o){var f;return o.negative!==0&&this.negative===0?(o.negative=0,f=this.sub(o),o.negative^=1,f):o.negative===0&&this.negative!==0?(this.negative=0,f=o.sub(this),this.negative=1,f):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var f=this.iadd(o);return o.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var l=this.cmp(o);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,p;l>0?(h=this,p=o):(h=o,p=this);for(var w=0,x=0;x<p.length;x++)f=(h.words[x]|0)-(p.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;for(;w!==0&&x<h.length;x++)f=(h.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;if(w===0&&x<h.length&&h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this.length=Math.max(this.length,x),h!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function P(_,o,f){f.negative=o.negative^_.negative;var l=_.length+o.length|0;f.length=l,l=l-1|0;var h=_.words[0]|0,p=o.words[0]|0,w=h*p,x=w&67108863,g=w/67108864|0;f.words[0]=x;for(var s=1;s<l;s++){for(var v=g>>>26,T=g&67108863,$=Math.min(s,o.length-1),G=Math.max(0,s-_.length+1);G<=$;G++){var ee=s-G|0;h=_.words[ee]|0,p=o.words[G]|0,w=h*p+T,v+=w/67108864|0,T=w&67108863}f.words[s]=T|0,g=v|0}return g!==0?f.words[s]=g|0:f.length--,f.strip()}var k=function(o,f,l){var h=o.words,p=f.words,w=l.words,x=0,g,s,v,T=h[0]|0,$=T&8191,G=T>>>13,ee=h[1]|0,A=ee&8191,E=ee>>>13,U=h[2]|0,K=U&8191,Z=U>>>13,b=h[3]|0,y=b&8191,O=b>>>13,q=h[4]|0,X=q&8191,D=q>>>13,N=h[5]|0,j=N&8191,z=N>>>13,se=h[6]|0,te=se&8191,ne=se>>>13,Ee=h[7]|0,Q=Ee&8191,ue=Ee>>>13,le=h[8]|0,ce=le&8191,pe=le>>>13,de=h[9]|0,ae=de&8191,fe=de>>>13,Te=p[0]|0,ve=Te&8191,Me=Te>>>13,Ke=p[1]|0,be=Ke&8191,Se=Ke>>>13,qe=p[2]|0,ye=qe&8191,_e=qe>>>13,Ve=p[3]|0,ge=Ve&8191,xe=Ve>>>13,Xe=p[4]|0,Re=Xe&8191,Le=Xe>>>13,at=p[5]|0,Ae=at&8191,Ne=at>>>13,rt=p[6]|0,Oe=rt&8191,De=rt>>>13,nt=p[7]|0,Ie=nt&8191,$e=nt>>>13,st=p[8]|0,Pe=st&8191,je=st>>>13,ht=p[9]|0,Ce=ht&8191,Fe=ht>>>13;l.negative=o.negative^f.negative,l.length=19,g=Math.imul($,ve),s=Math.imul($,Me),s=s+Math.imul(G,ve)|0,v=Math.imul(G,Me);var it=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(it>>>26)|0,it&=67108863,g=Math.imul(A,ve),s=Math.imul(A,Me),s=s+Math.imul(E,ve)|0,v=Math.imul(E,Me),g=g+Math.imul($,be)|0,s=s+Math.imul($,Se)|0,s=s+Math.imul(G,be)|0,v=v+Math.imul(G,Se)|0;var et=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(et>>>26)|0,et&=67108863,g=Math.imul(K,ve),s=Math.imul(K,Me),s=s+Math.imul(Z,ve)|0,v=Math.imul(Z,Me),g=g+Math.imul(A,be)|0,s=s+Math.imul(A,Se)|0,s=s+Math.imul(E,be)|0,v=v+Math.imul(E,Se)|0,g=g+Math.imul($,ye)|0,s=s+Math.imul($,_e)|0,s=s+Math.imul(G,ye)|0,v=v+Math.imul(G,_e)|0;var xt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(xt>>>26)|0,xt&=67108863,g=Math.imul(y,ve),s=Math.imul(y,Me),s=s+Math.imul(O,ve)|0,v=Math.imul(O,Me),g=g+Math.imul(K,be)|0,s=s+Math.imul(K,Se)|0,s=s+Math.imul(Z,be)|0,v=v+Math.imul(Z,Se)|0,g=g+Math.imul(A,ye)|0,s=s+Math.imul(A,_e)|0,s=s+Math.imul(E,ye)|0,v=v+Math.imul(E,_e)|0,g=g+Math.imul($,ge)|0,s=s+Math.imul($,xe)|0,s=s+Math.imul(G,ge)|0,v=v+Math.imul(G,xe)|0;var Tt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,g=Math.imul(X,ve),s=Math.imul(X,Me),s=s+Math.imul(D,ve)|0,v=Math.imul(D,Me),g=g+Math.imul(y,be)|0,s=s+Math.imul(y,Se)|0,s=s+Math.imul(O,be)|0,v=v+Math.imul(O,Se)|0,g=g+Math.imul(K,ye)|0,s=s+Math.imul(K,_e)|0,s=s+Math.imul(Z,ye)|0,v=v+Math.imul(Z,_e)|0,g=g+Math.imul(A,ge)|0,s=s+Math.imul(A,xe)|0,s=s+Math.imul(E,ge)|0,v=v+Math.imul(E,xe)|0,g=g+Math.imul($,Re)|0,s=s+Math.imul($,Le)|0,s=s+Math.imul(G,Re)|0,v=v+Math.imul(G,Le)|0;var Ot=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,g=Math.imul(j,ve),s=Math.imul(j,Me),s=s+Math.imul(z,ve)|0,v=Math.imul(z,Me),g=g+Math.imul(X,be)|0,s=s+Math.imul(X,Se)|0,s=s+Math.imul(D,be)|0,v=v+Math.imul(D,Se)|0,g=g+Math.imul(y,ye)|0,s=s+Math.imul(y,_e)|0,s=s+Math.imul(O,ye)|0,v=v+Math.imul(O,_e)|0,g=g+Math.imul(K,ge)|0,s=s+Math.imul(K,xe)|0,s=s+Math.imul(Z,ge)|0,v=v+Math.imul(Z,xe)|0,g=g+Math.imul(A,Re)|0,s=s+Math.imul(A,Le)|0,s=s+Math.imul(E,Re)|0,v=v+Math.imul(E,Le)|0,g=g+Math.imul($,Ae)|0,s=s+Math.imul($,Ne)|0,s=s+Math.imul(G,Ae)|0,v=v+Math.imul(G,Ne)|0;var Ct=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,g=Math.imul(te,ve),s=Math.imul(te,Me),s=s+Math.imul(ne,ve)|0,v=Math.imul(ne,Me),g=g+Math.imul(j,be)|0,s=s+Math.imul(j,Se)|0,s=s+Math.imul(z,be)|0,v=v+Math.imul(z,Se)|0,g=g+Math.imul(X,ye)|0,s=s+Math.imul(X,_e)|0,s=s+Math.imul(D,ye)|0,v=v+Math.imul(D,_e)|0,g=g+Math.imul(y,ge)|0,s=s+Math.imul(y,xe)|0,s=s+Math.imul(O,ge)|0,v=v+Math.imul(O,xe)|0,g=g+Math.imul(K,Re)|0,s=s+Math.imul(K,Le)|0,s=s+Math.imul(Z,Re)|0,v=v+Math.imul(Z,Le)|0,g=g+Math.imul(A,Ae)|0,s=s+Math.imul(A,Ne)|0,s=s+Math.imul(E,Ae)|0,v=v+Math.imul(E,Ne)|0,g=g+Math.imul($,Oe)|0,s=s+Math.imul($,De)|0,s=s+Math.imul(G,Oe)|0,v=v+Math.imul(G,De)|0;var kt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(kt>>>26)|0,kt&=67108863,g=Math.imul(Q,ve),s=Math.imul(Q,Me),s=s+Math.imul(ue,ve)|0,v=Math.imul(ue,Me),g=g+Math.imul(te,be)|0,s=s+Math.imul(te,Se)|0,s=s+Math.imul(ne,be)|0,v=v+Math.imul(ne,Se)|0,g=g+Math.imul(j,ye)|0,s=s+Math.imul(j,_e)|0,s=s+Math.imul(z,ye)|0,v=v+Math.imul(z,_e)|0,g=g+Math.imul(X,ge)|0,s=s+Math.imul(X,xe)|0,s=s+Math.imul(D,ge)|0,v=v+Math.imul(D,xe)|0,g=g+Math.imul(y,Re)|0,s=s+Math.imul(y,Le)|0,s=s+Math.imul(O,Re)|0,v=v+Math.imul(O,Le)|0,g=g+Math.imul(K,Ae)|0,s=s+Math.imul(K,Ne)|0,s=s+Math.imul(Z,Ae)|0,v=v+Math.imul(Z,Ne)|0,g=g+Math.imul(A,Oe)|0,s=s+Math.imul(A,De)|0,s=s+Math.imul(E,Oe)|0,v=v+Math.imul(E,De)|0,g=g+Math.imul($,Ie)|0,s=s+Math.imul($,$e)|0,s=s+Math.imul(G,Ie)|0,v=v+Math.imul(G,$e)|0;var Ut=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,g=Math.imul(ce,ve),s=Math.imul(ce,Me),s=s+Math.imul(pe,ve)|0,v=Math.imul(pe,Me),g=g+Math.imul(Q,be)|0,s=s+Math.imul(Q,Se)|0,s=s+Math.imul(ue,be)|0,v=v+Math.imul(ue,Se)|0,g=g+Math.imul(te,ye)|0,s=s+Math.imul(te,_e)|0,s=s+Math.imul(ne,ye)|0,v=v+Math.imul(ne,_e)|0,g=g+Math.imul(j,ge)|0,s=s+Math.imul(j,xe)|0,s=s+Math.imul(z,ge)|0,v=v+Math.imul(z,xe)|0,g=g+Math.imul(X,Re)|0,s=s+Math.imul(X,Le)|0,s=s+Math.imul(D,Re)|0,v=v+Math.imul(D,Le)|0,g=g+Math.imul(y,Ae)|0,s=s+Math.imul(y,Ne)|0,s=s+Math.imul(O,Ae)|0,v=v+Math.imul(O,Ne)|0,g=g+Math.imul(K,Oe)|0,s=s+Math.imul(K,De)|0,s=s+Math.imul(Z,Oe)|0,v=v+Math.imul(Z,De)|0,g=g+Math.imul(A,Ie)|0,s=s+Math.imul(A,$e)|0,s=s+Math.imul(E,Ie)|0,v=v+Math.imul(E,$e)|0,g=g+Math.imul($,Pe)|0,s=s+Math.imul($,je)|0,s=s+Math.imul(G,Pe)|0,v=v+Math.imul(G,je)|0;var Ht=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,g=Math.imul(ae,ve),s=Math.imul(ae,Me),s=s+Math.imul(fe,ve)|0,v=Math.imul(fe,Me),g=g+Math.imul(ce,be)|0,s=s+Math.imul(ce,Se)|0,s=s+Math.imul(pe,be)|0,v=v+Math.imul(pe,Se)|0,g=g+Math.imul(Q,ye)|0,s=s+Math.imul(Q,_e)|0,s=s+Math.imul(ue,ye)|0,v=v+Math.imul(ue,_e)|0,g=g+Math.imul(te,ge)|0,s=s+Math.imul(te,xe)|0,s=s+Math.imul(ne,ge)|0,v=v+Math.imul(ne,xe)|0,g=g+Math.imul(j,Re)|0,s=s+Math.imul(j,Le)|0,s=s+Math.imul(z,Re)|0,v=v+Math.imul(z,Le)|0,g=g+Math.imul(X,Ae)|0,s=s+Math.imul(X,Ne)|0,s=s+Math.imul(D,Ae)|0,v=v+Math.imul(D,Ne)|0,g=g+Math.imul(y,Oe)|0,s=s+Math.imul(y,De)|0,s=s+Math.imul(O,Oe)|0,v=v+Math.imul(O,De)|0,g=g+Math.imul(K,Ie)|0,s=s+Math.imul(K,$e)|0,s=s+Math.imul(Z,Ie)|0,v=v+Math.imul(Z,$e)|0,g=g+Math.imul(A,Pe)|0,s=s+Math.imul(A,je)|0,s=s+Math.imul(E,Pe)|0,v=v+Math.imul(E,je)|0,g=g+Math.imul($,Ce)|0,s=s+Math.imul($,Fe)|0,s=s+Math.imul(G,Ce)|0,v=v+Math.imul(G,Fe)|0;var Bt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,g=Math.imul(ae,be),s=Math.imul(ae,Se),s=s+Math.imul(fe,be)|0,v=Math.imul(fe,Se),g=g+Math.imul(ce,ye)|0,s=s+Math.imul(ce,_e)|0,s=s+Math.imul(pe,ye)|0,v=v+Math.imul(pe,_e)|0,g=g+Math.imul(Q,ge)|0,s=s+Math.imul(Q,xe)|0,s=s+Math.imul(ue,ge)|0,v=v+Math.imul(ue,xe)|0,g=g+Math.imul(te,Re)|0,s=s+Math.imul(te,Le)|0,s=s+Math.imul(ne,Re)|0,v=v+Math.imul(ne,Le)|0,g=g+Math.imul(j,Ae)|0,s=s+Math.imul(j,Ne)|0,s=s+Math.imul(z,Ae)|0,v=v+Math.imul(z,Ne)|0,g=g+Math.imul(X,Oe)|0,s=s+Math.imul(X,De)|0,s=s+Math.imul(D,Oe)|0,v=v+Math.imul(D,De)|0,g=g+Math.imul(y,Ie)|0,s=s+Math.imul(y,$e)|0,s=s+Math.imul(O,Ie)|0,v=v+Math.imul(O,$e)|0,g=g+Math.imul(K,Pe)|0,s=s+Math.imul(K,je)|0,s=s+Math.imul(Z,Pe)|0,v=v+Math.imul(Z,je)|0,g=g+Math.imul(A,Ce)|0,s=s+Math.imul(A,Fe)|0,s=s+Math.imul(E,Ce)|0,v=v+Math.imul(E,Fe)|0;var dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(dt>>>26)|0,dt&=67108863,g=Math.imul(ae,ye),s=Math.imul(ae,_e),s=s+Math.imul(fe,ye)|0,v=Math.imul(fe,_e),g=g+Math.imul(ce,ge)|0,s=s+Math.imul(ce,xe)|0,s=s+Math.imul(pe,ge)|0,v=v+Math.imul(pe,xe)|0,g=g+Math.imul(Q,Re)|0,s=s+Math.imul(Q,Le)|0,s=s+Math.imul(ue,Re)|0,v=v+Math.imul(ue,Le)|0,g=g+Math.imul(te,Ae)|0,s=s+Math.imul(te,Ne)|0,s=s+Math.imul(ne,Ae)|0,v=v+Math.imul(ne,Ne)|0,g=g+Math.imul(j,Oe)|0,s=s+Math.imul(j,De)|0,s=s+Math.imul(z,Oe)|0,v=v+Math.imul(z,De)|0,g=g+Math.imul(X,Ie)|0,s=s+Math.imul(X,$e)|0,s=s+Math.imul(D,Ie)|0,v=v+Math.imul(D,$e)|0,g=g+Math.imul(y,Pe)|0,s=s+Math.imul(y,je)|0,s=s+Math.imul(O,Pe)|0,v=v+Math.imul(O,je)|0,g=g+Math.imul(K,Ce)|0,s=s+Math.imul(K,Fe)|0,s=s+Math.imul(Z,Ce)|0,v=v+Math.imul(Z,Fe)|0;var At=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(At>>>26)|0,At&=67108863,g=Math.imul(ae,ge),s=Math.imul(ae,xe),s=s+Math.imul(fe,ge)|0,v=Math.imul(fe,xe),g=g+Math.imul(ce,Re)|0,s=s+Math.imul(ce,Le)|0,s=s+Math.imul(pe,Re)|0,v=v+Math.imul(pe,Le)|0,g=g+Math.imul(Q,Ae)|0,s=s+Math.imul(Q,Ne)|0,s=s+Math.imul(ue,Ae)|0,v=v+Math.imul(ue,Ne)|0,g=g+Math.imul(te,Oe)|0,s=s+Math.imul(te,De)|0,s=s+Math.imul(ne,Oe)|0,v=v+Math.imul(ne,De)|0,g=g+Math.imul(j,Ie)|0,s=s+Math.imul(j,$e)|0,s=s+Math.imul(z,Ie)|0,v=v+Math.imul(z,$e)|0,g=g+Math.imul(X,Pe)|0,s=s+Math.imul(X,je)|0,s=s+Math.imul(D,Pe)|0,v=v+Math.imul(D,je)|0,g=g+Math.imul(y,Ce)|0,s=s+Math.imul(y,Fe)|0,s=s+Math.imul(O,Ce)|0,v=v+Math.imul(O,Fe)|0;var _t=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(_t>>>26)|0,_t&=67108863,g=Math.imul(ae,Re),s=Math.imul(ae,Le),s=s+Math.imul(fe,Re)|0,v=Math.imul(fe,Le),g=g+Math.imul(ce,Ae)|0,s=s+Math.imul(ce,Ne)|0,s=s+Math.imul(pe,Ae)|0,v=v+Math.imul(pe,Ne)|0,g=g+Math.imul(Q,Oe)|0,s=s+Math.imul(Q,De)|0,s=s+Math.imul(ue,Oe)|0,v=v+Math.imul(ue,De)|0,g=g+Math.imul(te,Ie)|0,s=s+Math.imul(te,$e)|0,s=s+Math.imul(ne,Ie)|0,v=v+Math.imul(ne,$e)|0,g=g+Math.imul(j,Pe)|0,s=s+Math.imul(j,je)|0,s=s+Math.imul(z,Pe)|0,v=v+Math.imul(z,je)|0,g=g+Math.imul(X,Ce)|0,s=s+Math.imul(X,Fe)|0,s=s+Math.imul(D,Ce)|0,v=v+Math.imul(D,Fe)|0;var mt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(mt>>>26)|0,mt&=67108863,g=Math.imul(ae,Ae),s=Math.imul(ae,Ne),s=s+Math.imul(fe,Ae)|0,v=Math.imul(fe,Ne),g=g+Math.imul(ce,Oe)|0,s=s+Math.imul(ce,De)|0,s=s+Math.imul(pe,Oe)|0,v=v+Math.imul(pe,De)|0,g=g+Math.imul(Q,Ie)|0,s=s+Math.imul(Q,$e)|0,s=s+Math.imul(ue,Ie)|0,v=v+Math.imul(ue,$e)|0,g=g+Math.imul(te,Pe)|0,s=s+Math.imul(te,je)|0,s=s+Math.imul(ne,Pe)|0,v=v+Math.imul(ne,je)|0,g=g+Math.imul(j,Ce)|0,s=s+Math.imul(j,Fe)|0,s=s+Math.imul(z,Ce)|0,v=v+Math.imul(z,Fe)|0;var It=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(It>>>26)|0,It&=67108863,g=Math.imul(ae,Oe),s=Math.imul(ae,De),s=s+Math.imul(fe,Oe)|0,v=Math.imul(fe,De),g=g+Math.imul(ce,Ie)|0,s=s+Math.imul(ce,$e)|0,s=s+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,$e)|0,g=g+Math.imul(Q,Pe)|0,s=s+Math.imul(Q,je)|0,s=s+Math.imul(ue,Pe)|0,v=v+Math.imul(ue,je)|0,g=g+Math.imul(te,Ce)|0,s=s+Math.imul(te,Fe)|0,s=s+Math.imul(ne,Ce)|0,v=v+Math.imul(ne,Fe)|0;var vt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(vt>>>26)|0,vt&=67108863,g=Math.imul(ae,Ie),s=Math.imul(ae,$e),s=s+Math.imul(fe,Ie)|0,v=Math.imul(fe,$e),g=g+Math.imul(ce,Pe)|0,s=s+Math.imul(ce,je)|0,s=s+Math.imul(pe,Pe)|0,v=v+Math.imul(pe,je)|0,g=g+Math.imul(Q,Ce)|0,s=s+Math.imul(Q,Fe)|0,s=s+Math.imul(ue,Ce)|0,v=v+Math.imul(ue,Fe)|0;var yt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(yt>>>26)|0,yt&=67108863,g=Math.imul(ae,Pe),s=Math.imul(ae,je),s=s+Math.imul(fe,Pe)|0,v=Math.imul(fe,je),g=g+Math.imul(ce,Ce)|0,s=s+Math.imul(ce,Fe)|0,s=s+Math.imul(pe,Ce)|0,v=v+Math.imul(pe,Fe)|0;var Dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,g=Math.imul(ae,Ce),s=Math.imul(ae,Fe),s=s+Math.imul(fe,Ce)|0,v=Math.imul(fe,Fe);var Ft=(x+g|0)+((s&8191)<<13)|0;return x=(v+(s>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,w[0]=it,w[1]=et,w[2]=xt,w[3]=Tt,w[4]=Ot,w[5]=Ct,w[6]=kt,w[7]=Ut,w[8]=Ht,w[9]=Bt,w[10]=dt,w[11]=At,w[12]=_t,w[13]=mt,w[14]=It,w[15]=vt,w[16]=yt,w[17]=Dt,w[18]=Ft,x!==0&&(w[19]=x,l.length++),l};Math.imul||(k=P);function L(_,o,f){f.negative=o.negative^_.negative,f.length=_.length+o.length;for(var l=0,h=0,p=0;p<f.length-1;p++){var w=h;h=0;for(var x=l&67108863,g=Math.min(p,o.length-1),s=Math.max(0,p-_.length+1);s<=g;s++){var v=p-s,T=_.words[v]|0,$=o.words[s]|0,G=T*$,ee=G&67108863;w=w+(G/67108864|0)|0,ee=ee+x|0,x=ee&67108863,w=w+(ee>>>26)|0,h+=w>>>26,w&=67108863}f.words[p]=x,l=w,w=h}return l!==0?f.words[p]=l:f.length--,f.strip()}function I(_,o,f){var l=new B;return l.mulp(_,o,f)}n.prototype.mulTo=function(o,f){var l,h=this.length+o.length;return this.length===10&&o.length===10?l=k(this,o,f):h<63?l=P(this,o,f):h<1024?l=L(this,o,f):l=I(this,o,f),l};function B(_,o){this.x=_,this.y=o}B.prototype.makeRBT=function(o){for(var f=new Array(o),l=n.prototype._countBits(o)-1,h=0;h<o;h++)f[h]=this.revBin(h,l,o);return f},B.prototype.revBin=function(o,f,l){if(o===0||o===l-1)return o;for(var h=0,p=0;p<f;p++)h|=(o&1)<<f-p-1,o>>=1;return h},B.prototype.permute=function(o,f,l,h,p,w){for(var x=0;x<w;x++)h[x]=f[o[x]],p[x]=l[o[x]]},B.prototype.transform=function(o,f,l,h,p,w){this.permute(w,o,f,l,h,p);for(var x=1;x<p;x<<=1)for(var g=x<<1,s=Math.cos(2*Math.PI/g),v=Math.sin(2*Math.PI/g),T=0;T<p;T+=g)for(var $=s,G=v,ee=0;ee<x;ee++){var A=l[T+ee],E=h[T+ee],U=l[T+ee+x],K=h[T+ee+x],Z=$*U-G*K;K=$*K+G*U,U=Z,l[T+ee]=A+U,h[T+ee]=E+K,l[T+ee+x]=A-U,h[T+ee+x]=E-K,ee!==g&&(Z=s*$-v*G,G=s*G+v*$,$=Z)}},B.prototype.guessLen13b=function(o,f){var l=Math.max(f,o)|1,h=l&1,p=0;for(l=l/2|0;l;l=l>>>1)p++;return 1<<p+1+h},B.prototype.conjugate=function(o,f,l){if(!(l<=1))for(var h=0;h<l/2;h++){var p=o[h];o[h]=o[l-h-1],o[l-h-1]=p,p=f[h],f[h]=-f[l-h-1],f[l-h-1]=-p}},B.prototype.normalize13b=function(o,f){for(var l=0,h=0;h<f/2;h++){var p=Math.round(o[2*h+1]/f)*8192+Math.round(o[2*h]/f)+l;o[h]=p&67108863,p<67108864?l=0:l=p/67108864|0}return o},B.prototype.convert13b=function(o,f,l,h){for(var p=0,w=0;w<f;w++)p=p+(o[w]|0),l[2*w]=p&8191,p=p>>>13,l[2*w+1]=p&8191,p=p>>>13;for(w=2*f;w<h;++w)l[w]=0;i(p===0),i((p&-8192)===0)},B.prototype.stub=function(o){for(var f=new Array(o),l=0;l<o;l++)f[l]=0;return f},B.prototype.mulp=function(o,f,l){var h=2*this.guessLen13b(o.length,f.length),p=this.makeRBT(h),w=this.stub(h),x=new Array(h),g=new Array(h),s=new Array(h),v=new Array(h),T=new Array(h),$=new Array(h),G=l.words;G.length=h,this.convert13b(o.words,o.length,x,h),this.convert13b(f.words,f.length,v,h),this.transform(x,w,g,s,h,p),this.transform(v,w,T,$,h,p);for(var ee=0;ee<h;ee++){var A=g[ee]*T[ee]-s[ee]*$[ee];s[ee]=g[ee]*$[ee]+s[ee]*T[ee],g[ee]=A}return this.conjugate(g,s,h),this.transform(g,s,G,w,h,p),this.conjugate(G,w,h),this.normalize13b(G,h),l.negative=o.negative^f.negative,l.length=o.length+f.length,l.strip()},n.prototype.mul=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),this.mulTo(o,f)},n.prototype.mulf=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),I(this,o,f)},n.prototype.imul=function(o){return this.clone().mulTo(o,this)},n.prototype.imuln=function(o){i(typeof o=="number"),i(o<67108864);for(var f=0,l=0;l<this.length;l++){var h=(this.words[l]|0)*o,p=(h&67108863)+(f&67108863);f>>=26,f+=h/67108864|0,f+=p>>>26,this.words[l]=p&67108863}return f!==0&&(this.words[l]=f,this.length++),this},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var f=C(o);if(f.length===0)return new n(1);for(var l=this,h=0;h<f.length&&f[h]===0;h++,l=l.sqr());if(++h<f.length)for(var p=l.sqr();h<f.length;h++,p=p.sqr())f[h]!==0&&(l=l.mul(p));return l},n.prototype.iushln=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=67108863>>>26-f<<26-f,p;if(f!==0){var w=0;for(p=0;p<this.length;p++){var x=this.words[p]&h,g=(this.words[p]|0)-x<<f;this.words[p]=g|w,w=x>>>26-f}w&&(this.words[p]=w,this.length++)}if(l!==0){for(p=this.length-1;p>=0;p--)this.words[p+l]=this.words[p];for(p=0;p<l;p++)this.words[p]=0;this.length+=l}return this.strip()},n.prototype.ishln=function(o){return i(this.negative===0),this.iushln(o)},n.prototype.iushrn=function(o,f,l){i(typeof o=="number"&&o>=0);var h;f?h=(f-f%26)/26:h=0;var p=o%26,w=Math.min((o-p)/26,this.length),x=67108863^67108863>>>p<<p,g=l;if(h-=w,h=Math.max(0,h),g){for(var s=0;s<w;s++)g.words[s]=this.words[s];g.length=w}if(w!==0)if(this.length>w)for(this.length-=w,s=0;s<this.length;s++)this.words[s]=this.words[s+w];else this.words[0]=0,this.length=1;var v=0;for(s=this.length-1;s>=0&&(v!==0||s>=h);s--){var T=this.words[s]|0;this.words[s]=v<<26-p|T>>>p,v=T&x}return g&&v!==0&&(g.words[g.length++]=v),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(o,f,l){return i(this.negative===0),this.iushrn(o,f,l)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return!1;var p=this.words[l];return!!(p&h)},n.prototype.imaskn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(f!==0&&l++,this.length=Math.min(l,this.length),f!==0){var h=67108863^67108863>>>f<<f;this.words[this.length-1]&=h}return this.strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return i(typeof o=="number"),i(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},n.prototype._iaddn=function(o){this.words[0]+=o;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},n.prototype.isubn=function(o){if(i(typeof o=="number"),i(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,f,l){var h=o.length+l,p;this._expand(h);var w,x=0;for(p=0;p<o.length;p++){w=(this.words[p+l]|0)+x;var g=(o.words[p]|0)*f;w-=g&67108863,x=(w>>26)-(g/67108864|0),this.words[p+l]=w&67108863}for(;p<this.length-l;p++)w=(this.words[p+l]|0)+x,x=w>>26,this.words[p+l]=w&67108863;if(x===0)return this.strip();for(i(x===-1),x=0,p=0;p<this.length;p++)w=-(this.words[p]|0)+x,x=w>>26,this.words[p]=w&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(o,f){var l=this.length-o.length,h=this.clone(),p=o,w=p.words[p.length-1]|0,x=this._countBits(w);l=26-x,l!==0&&(p=p.ushln(l),h.iushln(l),w=p.words[p.length-1]|0);var g=h.length-p.length,s;if(f!=="mod"){s=new n(null),s.length=g+1,s.words=new Array(s.length);for(var v=0;v<s.length;v++)s.words[v]=0}var T=h.clone()._ishlnsubmul(p,1,g);T.negative===0&&(h=T,s&&(s.words[g]=1));for(var $=g-1;$>=0;$--){var G=(h.words[p.length+$]|0)*67108864+(h.words[p.length+$-1]|0);for(G=Math.min(G/w|0,67108863),h._ishlnsubmul(p,G,$);h.negative!==0;)G--,h.negative=0,h._ishlnsubmul(p,1,$),h.isZero()||(h.negative^=1);s&&(s.words[$]=G)}return s&&s.strip(),h.strip(),f!=="div"&&l!==0&&h.iushrn(l),{div:s||null,mod:h}},n.prototype.divmod=function(o,f,l){if(i(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,p,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,f),f!=="mod"&&(h=w.div.neg()),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.iadd(o)),{div:h,mod:p}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),f),f!=="mod"&&(h=w.div.neg()),{div:h,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),f),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.isub(o)),{div:w.div,mod:p}):o.length>this.length||this.cmp(o)<0?{div:new n(0),mod:this}:o.length===1?f==="div"?{div:this.divn(o.words[0]),mod:null}:f==="mod"?{div:null,mod:new n(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modn(o.words[0]))}:this._wordDiv(o,f)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var f=this.divmod(o);if(f.mod.isZero())return f.div;var l=f.div.negative!==0?f.mod.isub(o):f.mod,h=o.ushrn(1),p=o.andln(1),w=l.cmp(h);return w<0||p===1&&w===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},n.prototype.modn=function(o){i(o<=67108863);for(var f=(1<<26)%o,l=0,h=this.length-1;h>=0;h--)l=(f*l+(this.words[h]|0))%o;return l},n.prototype.idivn=function(o){i(o<=67108863);for(var f=0,l=this.length-1;l>=0;l--){var h=(this.words[l]|0)+f*67108864;this.words[l]=h/o|0,f=h%o}return this.strip()},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=new n(0),x=new n(1),g=0;f.isEven()&&l.isEven();)f.iushrn(1),l.iushrn(1),++g;for(var s=l.clone(),v=f.clone();!f.isZero();){for(var T=0,$=1;!(f.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(f.iushrn(T);T-- >0;)(h.isOdd()||p.isOdd())&&(h.iadd(s),p.isub(v)),h.iushrn(1),p.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(s),x.isub(v)),w.iushrn(1),x.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(w),p.isub(x)):(l.isub(f),w.isub(h),x.isub(p))}return{a:w,b:x,gcd:l.iushln(g)}},n.prototype._invmp=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=l.clone();f.cmpn(1)>0&&l.cmpn(1)>0;){for(var x=0,g=1;!(f.words[0]&g)&&x<26;++x,g<<=1);if(x>0)for(f.iushrn(x);x-- >0;)h.isOdd()&&h.iadd(w),h.iushrn(1);for(var s=0,v=1;!(l.words[0]&v)&&s<26;++s,v<<=1);if(s>0)for(l.iushrn(s);s-- >0;)p.isOdd()&&p.iadd(w),p.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(p)):(l.isub(f),p.isub(h))}var T;return f.cmpn(1)===0?T=h:T=p,T.cmpn(0)<0&&T.iadd(o),T},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var f=this.clone(),l=o.clone();f.negative=0,l.negative=0;for(var h=0;f.isEven()&&l.isEven();h++)f.iushrn(1),l.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;l.isEven();)l.iushrn(1);var p=f.cmp(l);if(p<0){var w=f;f=l,l=w}else if(p===0||l.cmpn(1)===0)break;f.isub(l)}while(!0);return l.iushln(h)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(o){return this.words[0]&o},n.prototype.bincn=function(o){i(typeof o=="number");var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return this._expand(l+1),this.words[l]|=h,this;for(var p=h,w=l;p!==0&&w<this.length;w++){var x=this.words[w]|0;x+=p,p=x>>>26,x&=67108863,this.words[w]=x}return p!==0&&(this.words[w]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(o){var f=o<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var l;if(this.length>1)l=1;else{f&&(o=-o),i(o<=67108863,"Number is too big");var h=this.words[0]|0;l=h===o?0:h<o?-1:1}return this.negative!==0?-l|0:l},n.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var f=this.ucmp(o);return this.negative!==0?-f|0:f},n.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var f=0,l=this.length-1;l>=0;l--){var h=this.words[l]|0,p=o.words[l]|0;if(h!==p){h<p?f=-1:h>p&&(f=1);break}}return f},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new V(o)},n.prototype.toRed=function(o){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},n.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(o){return this.red=o,this},n.prototype.forceRed=function(o){return i(!this.red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},n.prototype.redIAdd=function(o){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},n.prototype.redSub=function(o){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},n.prototype.redISub=function(o){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},n.prototype.redShl=function(o){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},n.prototype.redMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},n.prototype.redIMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},n.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(o){return i(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var H={k256:null,p224:null,p192:null,p25519:null};function F(_,o){this.name=_,this.p=new n(o,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil(this.n/13)),o},F.prototype.ireduce=function(o){var f=o,l;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),l=f.bitLength();while(l>this.n);var h=l<this.n?-1:f.ucmp(this.p);return h===0?(f.words[0]=0,f.length=1):h>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},F.prototype.split=function(o,f){o.iushrn(this.n,0,f)},F.prototype.imulK=function(o){return o.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(W,F),W.prototype.split=function(o,f){for(var l=4194303,h=Math.min(o.length,9),p=0;p<h;p++)f.words[p]=o.words[p];if(f.length=h,o.length<=9){o.words[0]=0,o.length=1;return}var w=o.words[9];for(f.words[f.length++]=w&l,p=10;p<o.length;p++){var x=o.words[p]|0;o.words[p-10]=(x&l)<<4|w>>>22,w=x}w>>>=22,o.words[p-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},W.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var f=0,l=0;l<o.length;l++){var h=o.words[l]|0;f+=h*977,o.words[l]=f&67108863,f=h*64+(f/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Y(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(Y,F);function ie(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(ie,F);function J(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(J,F),J.prototype.imulK=function(o){for(var f=0,l=0;l<o.length;l++){var h=(o.words[l]|0)*19+f,p=h&67108863;h>>>=26,o.words[l]=p,f=h}return f!==0&&(o.words[o.length++]=f),o},n._prime=function(o){if(H[o])return H[o];var f;if(o==="k256")f=new W;else if(o==="p224")f=new Y;else if(o==="p192")f=new ie;else if(o==="p25519")f=new J;else throw new Error("Unknown prime "+o);return H[o]=f,f};function V(_){if(typeof _=="string"){var o=n._prime(_);this.m=o.p,this.prime=o}else i(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}V.prototype._verify1=function(o){i(o.negative===0,"red works only with positives"),i(o.red,"red works only with red numbers")},V.prototype._verify2=function(o,f){i((o.negative|f.negative)===0,"red works only with positives"),i(o.red&&o.red===f.red,"red works only with red numbers")},V.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},V.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},V.prototype.add=function(o,f){this._verify2(o,f);var l=o.add(f);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},V.prototype.iadd=function(o,f){this._verify2(o,f);var l=o.iadd(f);return l.cmp(this.m)>=0&&l.isub(this.m),l},V.prototype.sub=function(o,f){this._verify2(o,f);var l=o.sub(f);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},V.prototype.isub=function(o,f){this._verify2(o,f);var l=o.isub(f);return l.cmpn(0)<0&&l.iadd(this.m),l},V.prototype.shl=function(o,f){return this._verify1(o),this.imod(o.ushln(f))},V.prototype.imul=function(o,f){return this._verify2(o,f),this.imod(o.imul(f))},V.prototype.mul=function(o,f){return this._verify2(o,f),this.imod(o.mul(f))},V.prototype.isqr=function(o){return this.imul(o,o.clone())},V.prototype.sqr=function(o){return this.mul(o,o)},V.prototype.sqrt=function(o){if(o.isZero())return o.clone();var f=this.m.andln(3);if(i(f%2===1),f===3){var l=this.m.add(new n(1)).iushrn(2);return this.pow(o,l)}for(var h=this.m.subn(1),p=0;!h.isZero()&&h.andln(1)===0;)p++,h.iushrn(1);i(!h.isZero());var w=new n(1).toRed(this),x=w.redNeg(),g=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new n(2*s*s).toRed(this);this.pow(s,g).cmp(x)!==0;)s.redIAdd(x);for(var v=this.pow(s,h),T=this.pow(o,h.addn(1).iushrn(1)),$=this.pow(o,h),G=p;$.cmp(w)!==0;){for(var ee=$,A=0;ee.cmp(w)!==0;A++)ee=ee.redSqr();i(A<G);var E=this.pow(v,new n(1).iushln(G-A-1));T=T.redMul(E),v=E.redSqr(),$=$.redMul(v),G=A}return T},V.prototype.invm=function(o){var f=o._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},V.prototype.pow=function(o,f){if(f.isZero())return new n(1).toRed(this);if(f.cmpn(1)===0)return o.clone();var l=4,h=new Array(1<<l);h[0]=new n(1).toRed(this),h[1]=o;for(var p=2;p<h.length;p++)h[p]=this.mul(h[p-1],o);var w=h[0],x=0,g=0,s=f.bitLength()%26;for(s===0&&(s=26),p=f.length-1;p>=0;p--){for(var v=f.words[p],T=s-1;T>=0;T--){var $=v>>T&1;if(w!==h[0]&&(w=this.sqr(w)),$===0&&x===0){g=0;continue}x<<=1,x|=$,g++,!(g!==l&&(p!==0||T!==0))&&(w=this.mul(w,h[x]),g=0,x=0)}s=26}return w},V.prototype.convertTo=function(o){var f=o.umod(this.m);return f===o?f.clone():f},V.prototype.convertFrom=function(o){var f=o.clone();return f.red=null,f},n.mont=function(o){return new oe(o)};function oe(_){V.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(oe,V),oe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},oe.prototype.convertFrom=function(o){var f=this.imod(o.mul(this.rinv));return f.red=null,f},oe.prototype.imul=function(o,f){if(o.isZero()||f.isZero())return o.words[0]=0,o.length=1,o;var l=o.imul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.mul=function(o,f){if(o.isZero()||f.isZero())return new n(0)._forceRed(this);var l=o.mul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.invm=function(o){var f=this.imod(o._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,Ye)})(Tg);var Mx=Tg.exports,Og={exports:{}};Og.exports;(function(e){(function(t,r){function i(_,o){if(!_)throw new Error(o||"Assertion failed")}function a(_,o){_.super_=o;var f=function(){};f.prototype=o.prototype,_.prototype=new f,_.prototype.constructor=_}function n(_,o,f){if(n.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((o==="le"||o==="be")&&(f=o,o=10),this._init(_||0,o||10,f||"be"))}typeof t=="object"?t.exports=n:r.BN=n,n.BN=n,n.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=ke.Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,f){return o.cmp(f)>0?o:f},n.min=function(o,f){return o.cmp(f)<0?o:f},n.prototype._init=function(o,f,l){if(typeof o=="number")return this._initNumber(o,f,l);if(typeof o=="object")return this._initArray(o,f,l);f==="hex"&&(f=16),i(f===(f|0)&&f>=2&&f<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h<o.length&&(f===16?this._parseHex(o,h,l):(this._parseBase(o,f,h),l==="le"&&this._initArray(this.toArray(),f,l)))},n.prototype._initNumber=function(o,f,l){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(i(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),f,l)},n.prototype._initArray=function(o,f,l){if(i(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p,w,x=0;if(l==="be")for(h=o.length-1,p=0;h>=0;h-=3)w=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);else if(l==="le")for(h=0,p=0;h<o.length;h+=3)w=o[h]|o[h+1]<<8|o[h+2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);return this.strip()};function c(_,o){var f=_.charCodeAt(o);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function d(_,o,f){var l=c(_,f);return f-1>=o&&(l|=c(_,f-1)<<4),l}n.prototype._parseHex=function(o,f,l){this.length=Math.ceil((o.length-f)/6),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p=0,w=0,x;if(l==="be")for(h=o.length-1;h>=f;h-=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8;else{var g=o.length-f;for(h=g%2===0?f+1:f;h<o.length;h+=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8}this.strip()};function m(_,o,f,l){for(var h=0,p=Math.min(_.length,f),w=o;w<p;w++){var x=_.charCodeAt(w)-48;h*=l,x>=49?h+=x-49+10:x>=17?h+=x-17+10:h+=x}return h}n.prototype._parseBase=function(o,f,l){this.words=[0],this.length=1;for(var h=0,p=1;p<=67108863;p*=f)h++;h--,p=p/f|0;for(var w=o.length-l,x=w%h,g=Math.min(w,w-x)+l,s=0,v=l;v<g;v+=h)s=m(o,v,v+h,f),this.imuln(p),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(x!==0){var T=1;for(s=m(o,v,o.length,f),v=0;v<x;v++)T*=f;this.imuln(T),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},n.prototype.copy=function(o){o.words=new Array(this.length);for(var f=0;f<this.length;f++)o.words[f]=this.words[f];o.length=this.length,o.negative=this.negative,o.red=this.red},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],R=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,f){o=o||10,f=f|0||1;var l;if(o===16||o==="hex"){l="";for(var h=0,p=0,w=0;w<this.length;w++){var x=this.words[w],g=((x<<h|p)&16777215).toString(16);p=x>>>24-h&16777215,p!==0||w!==this.length-1?l=M[6-g.length]+g+l:l=g+l,h+=2,h>=26&&(h-=26,w--)}for(p!==0&&(l=p.toString(16)+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(o===(o|0)&&o>=2&&o<=36){var s=S[o],v=R[o];l="";var T=this.clone();for(T.negative=0;!T.isZero();){var $=T.modn(v).toString(o);T=T.idivn(v),T.isZero()?l=$+l:l=M[s-$.length]+$+l}for(this.isZero()&&(l="0"+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(o,f){return i(typeof u<"u"),this.toArrayLike(u,o,f)},n.prototype.toArray=function(o,f){return this.toArrayLike(Array,o,f)},n.prototype.toArrayLike=function(o,f,l){var h=this.byteLength(),p=l||Math.max(1,h);i(h<=p,"byte array longer than desired length"),i(p>0,"Requested array length <= 0"),this.strip();var w=f==="le",x=new o(p),g,s,v=this.clone();if(w){for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[s]=g;for(;s<p;s++)x[s]=0}else{for(s=0;s<p-h;s++)x[s]=0;for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[p-s-1]=g}return x},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var f=o,l=0;return f>=4096&&(l+=13,f>>>=13),f>=64&&(l+=7,f>>>=7),f>=8&&(l+=4,f>>>=4),f>=2&&(l+=2,f>>>=2),l+f},n.prototype._zeroBits=function(o){if(o===0)return 26;var f=o,l=0;return f&8191||(l+=13,f>>>=13),f&127||(l+=7,f>>>=7),f&15||(l+=4,f>>>=4),f&3||(l+=2,f>>>=2),f&1||l++,l},n.prototype.bitLength=function(){var o=this.words[this.length-1],f=this._countBits(o);return(this.length-1)*26+f};function C(_){for(var o=new Array(_.bitLength()),f=0;f<o.length;f++){var l=f/26|0,h=f%26;o[f]=(_.words[l]&1<<h)>>>h}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,f=0;f<this.length;f++){var l=this._zeroBits(this.words[f]);if(o+=l,l!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var f=0;f<o.length;f++)this.words[f]=this.words[f]|o.words[f];return this.strip()},n.prototype.ior=function(o){return i((this.negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},n.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},n.prototype.iuand=function(o){var f;this.length>o.length?f=o:f=this;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]&o.words[l];return this.length=f.length,this.strip()},n.prototype.iand=function(o){return i((this.negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},n.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},n.prototype.iuxor=function(o){var f,l;this.length>o.length?(f=this,l=o):(f=o,l=this);for(var h=0;h<l.length;h++)this.words[h]=f.words[h]^l.words[h];if(this!==f)for(;h<f.length;h++)this.words[h]=f.words[h];return this.length=f.length,this.strip()},n.prototype.ixor=function(o){return i((this.negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},n.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},n.prototype.inotn=function(o){i(typeof o=="number"&&o>=0);var f=Math.ceil(o/26)|0,l=o%26;this._expand(f),l>0&&f--;for(var h=0;h<f;h++)this.words[h]=~this.words[h]&67108863;return l>0&&(this.words[h]=~this.words[h]&67108863>>26-l),this.strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,f){i(typeof o=="number"&&o>=0);var l=o/26|0,h=o%26;return this._expand(l+1),f?this.words[l]=this.words[l]|1<<h:this.words[l]=this.words[l]&~(1<<h),this.strip()},n.prototype.iadd=function(o){var f;if(this.negative!==0&&o.negative===0)return this.negative=0,f=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,f=this.isub(o),o.negative=1,f._normSign();var l,h;this.length>o.length?(l=this,h=o):(l=o,h=this);for(var p=0,w=0;w<h.length;w++)f=(l.words[w]|0)+(h.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;for(;p!==0&&w<l.length;w++)f=(l.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;if(this.length=l.length,p!==0)this.words[this.length]=p,this.length++;else if(l!==this)for(;w<l.length;w++)this.words[w]=l.words[w];return this},n.prototype.add=function(o){var f;return o.negative!==0&&this.negative===0?(o.negative=0,f=this.sub(o),o.negative^=1,f):o.negative===0&&this.negative!==0?(this.negative=0,f=o.sub(this),this.negative=1,f):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var f=this.iadd(o);return o.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var l=this.cmp(o);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,p;l>0?(h=this,p=o):(h=o,p=this);for(var w=0,x=0;x<p.length;x++)f=(h.words[x]|0)-(p.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;for(;w!==0&&x<h.length;x++)f=(h.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;if(w===0&&x<h.length&&h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this.length=Math.max(this.length,x),h!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function P(_,o,f){f.negative=o.negative^_.negative;var l=_.length+o.length|0;f.length=l,l=l-1|0;var h=_.words[0]|0,p=o.words[0]|0,w=h*p,x=w&67108863,g=w/67108864|0;f.words[0]=x;for(var s=1;s<l;s++){for(var v=g>>>26,T=g&67108863,$=Math.min(s,o.length-1),G=Math.max(0,s-_.length+1);G<=$;G++){var ee=s-G|0;h=_.words[ee]|0,p=o.words[G]|0,w=h*p+T,v+=w/67108864|0,T=w&67108863}f.words[s]=T|0,g=v|0}return g!==0?f.words[s]=g|0:f.length--,f.strip()}var k=function(o,f,l){var h=o.words,p=f.words,w=l.words,x=0,g,s,v,T=h[0]|0,$=T&8191,G=T>>>13,ee=h[1]|0,A=ee&8191,E=ee>>>13,U=h[2]|0,K=U&8191,Z=U>>>13,b=h[3]|0,y=b&8191,O=b>>>13,q=h[4]|0,X=q&8191,D=q>>>13,N=h[5]|0,j=N&8191,z=N>>>13,se=h[6]|0,te=se&8191,ne=se>>>13,Ee=h[7]|0,Q=Ee&8191,ue=Ee>>>13,le=h[8]|0,ce=le&8191,pe=le>>>13,de=h[9]|0,ae=de&8191,fe=de>>>13,Te=p[0]|0,ve=Te&8191,Me=Te>>>13,Ke=p[1]|0,be=Ke&8191,Se=Ke>>>13,qe=p[2]|0,ye=qe&8191,_e=qe>>>13,Ve=p[3]|0,ge=Ve&8191,xe=Ve>>>13,Xe=p[4]|0,Re=Xe&8191,Le=Xe>>>13,at=p[5]|0,Ae=at&8191,Ne=at>>>13,rt=p[6]|0,Oe=rt&8191,De=rt>>>13,nt=p[7]|0,Ie=nt&8191,$e=nt>>>13,st=p[8]|0,Pe=st&8191,je=st>>>13,ht=p[9]|0,Ce=ht&8191,Fe=ht>>>13;l.negative=o.negative^f.negative,l.length=19,g=Math.imul($,ve),s=Math.imul($,Me),s=s+Math.imul(G,ve)|0,v=Math.imul(G,Me);var it=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(it>>>26)|0,it&=67108863,g=Math.imul(A,ve),s=Math.imul(A,Me),s=s+Math.imul(E,ve)|0,v=Math.imul(E,Me),g=g+Math.imul($,be)|0,s=s+Math.imul($,Se)|0,s=s+Math.imul(G,be)|0,v=v+Math.imul(G,Se)|0;var et=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(et>>>26)|0,et&=67108863,g=Math.imul(K,ve),s=Math.imul(K,Me),s=s+Math.imul(Z,ve)|0,v=Math.imul(Z,Me),g=g+Math.imul(A,be)|0,s=s+Math.imul(A,Se)|0,s=s+Math.imul(E,be)|0,v=v+Math.imul(E,Se)|0,g=g+Math.imul($,ye)|0,s=s+Math.imul($,_e)|0,s=s+Math.imul(G,ye)|0,v=v+Math.imul(G,_e)|0;var xt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(xt>>>26)|0,xt&=67108863,g=Math.imul(y,ve),s=Math.imul(y,Me),s=s+Math.imul(O,ve)|0,v=Math.imul(O,Me),g=g+Math.imul(K,be)|0,s=s+Math.imul(K,Se)|0,s=s+Math.imul(Z,be)|0,v=v+Math.imul(Z,Se)|0,g=g+Math.imul(A,ye)|0,s=s+Math.imul(A,_e)|0,s=s+Math.imul(E,ye)|0,v=v+Math.imul(E,_e)|0,g=g+Math.imul($,ge)|0,s=s+Math.imul($,xe)|0,s=s+Math.imul(G,ge)|0,v=v+Math.imul(G,xe)|0;var Tt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,g=Math.imul(X,ve),s=Math.imul(X,Me),s=s+Math.imul(D,ve)|0,v=Math.imul(D,Me),g=g+Math.imul(y,be)|0,s=s+Math.imul(y,Se)|0,s=s+Math.imul(O,be)|0,v=v+Math.imul(O,Se)|0,g=g+Math.imul(K,ye)|0,s=s+Math.imul(K,_e)|0,s=s+Math.imul(Z,ye)|0,v=v+Math.imul(Z,_e)|0,g=g+Math.imul(A,ge)|0,s=s+Math.imul(A,xe)|0,s=s+Math.imul(E,ge)|0,v=v+Math.imul(E,xe)|0,g=g+Math.imul($,Re)|0,s=s+Math.imul($,Le)|0,s=s+Math.imul(G,Re)|0,v=v+Math.imul(G,Le)|0;var Ot=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,g=Math.imul(j,ve),s=Math.imul(j,Me),s=s+Math.imul(z,ve)|0,v=Math.imul(z,Me),g=g+Math.imul(X,be)|0,s=s+Math.imul(X,Se)|0,s=s+Math.imul(D,be)|0,v=v+Math.imul(D,Se)|0,g=g+Math.imul(y,ye)|0,s=s+Math.imul(y,_e)|0,s=s+Math.imul(O,ye)|0,v=v+Math.imul(O,_e)|0,g=g+Math.imul(K,ge)|0,s=s+Math.imul(K,xe)|0,s=s+Math.imul(Z,ge)|0,v=v+Math.imul(Z,xe)|0,g=g+Math.imul(A,Re)|0,s=s+Math.imul(A,Le)|0,s=s+Math.imul(E,Re)|0,v=v+Math.imul(E,Le)|0,g=g+Math.imul($,Ae)|0,s=s+Math.imul($,Ne)|0,s=s+Math.imul(G,Ae)|0,v=v+Math.imul(G,Ne)|0;var Ct=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,g=Math.imul(te,ve),s=Math.imul(te,Me),s=s+Math.imul(ne,ve)|0,v=Math.imul(ne,Me),g=g+Math.imul(j,be)|0,s=s+Math.imul(j,Se)|0,s=s+Math.imul(z,be)|0,v=v+Math.imul(z,Se)|0,g=g+Math.imul(X,ye)|0,s=s+Math.imul(X,_e)|0,s=s+Math.imul(D,ye)|0,v=v+Math.imul(D,_e)|0,g=g+Math.imul(y,ge)|0,s=s+Math.imul(y,xe)|0,s=s+Math.imul(O,ge)|0,v=v+Math.imul(O,xe)|0,g=g+Math.imul(K,Re)|0,s=s+Math.imul(K,Le)|0,s=s+Math.imul(Z,Re)|0,v=v+Math.imul(Z,Le)|0,g=g+Math.imul(A,Ae)|0,s=s+Math.imul(A,Ne)|0,s=s+Math.imul(E,Ae)|0,v=v+Math.imul(E,Ne)|0,g=g+Math.imul($,Oe)|0,s=s+Math.imul($,De)|0,s=s+Math.imul(G,Oe)|0,v=v+Math.imul(G,De)|0;var kt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(kt>>>26)|0,kt&=67108863,g=Math.imul(Q,ve),s=Math.imul(Q,Me),s=s+Math.imul(ue,ve)|0,v=Math.imul(ue,Me),g=g+Math.imul(te,be)|0,s=s+Math.imul(te,Se)|0,s=s+Math.imul(ne,be)|0,v=v+Math.imul(ne,Se)|0,g=g+Math.imul(j,ye)|0,s=s+Math.imul(j,_e)|0,s=s+Math.imul(z,ye)|0,v=v+Math.imul(z,_e)|0,g=g+Math.imul(X,ge)|0,s=s+Math.imul(X,xe)|0,s=s+Math.imul(D,ge)|0,v=v+Math.imul(D,xe)|0,g=g+Math.imul(y,Re)|0,s=s+Math.imul(y,Le)|0,s=s+Math.imul(O,Re)|0,v=v+Math.imul(O,Le)|0,g=g+Math.imul(K,Ae)|0,s=s+Math.imul(K,Ne)|0,s=s+Math.imul(Z,Ae)|0,v=v+Math.imul(Z,Ne)|0,g=g+Math.imul(A,Oe)|0,s=s+Math.imul(A,De)|0,s=s+Math.imul(E,Oe)|0,v=v+Math.imul(E,De)|0,g=g+Math.imul($,Ie)|0,s=s+Math.imul($,$e)|0,s=s+Math.imul(G,Ie)|0,v=v+Math.imul(G,$e)|0;var Ut=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,g=Math.imul(ce,ve),s=Math.imul(ce,Me),s=s+Math.imul(pe,ve)|0,v=Math.imul(pe,Me),g=g+Math.imul(Q,be)|0,s=s+Math.imul(Q,Se)|0,s=s+Math.imul(ue,be)|0,v=v+Math.imul(ue,Se)|0,g=g+Math.imul(te,ye)|0,s=s+Math.imul(te,_e)|0,s=s+Math.imul(ne,ye)|0,v=v+Math.imul(ne,_e)|0,g=g+Math.imul(j,ge)|0,s=s+Math.imul(j,xe)|0,s=s+Math.imul(z,ge)|0,v=v+Math.imul(z,xe)|0,g=g+Math.imul(X,Re)|0,s=s+Math.imul(X,Le)|0,s=s+Math.imul(D,Re)|0,v=v+Math.imul(D,Le)|0,g=g+Math.imul(y,Ae)|0,s=s+Math.imul(y,Ne)|0,s=s+Math.imul(O,Ae)|0,v=v+Math.imul(O,Ne)|0,g=g+Math.imul(K,Oe)|0,s=s+Math.imul(K,De)|0,s=s+Math.imul(Z,Oe)|0,v=v+Math.imul(Z,De)|0,g=g+Math.imul(A,Ie)|0,s=s+Math.imul(A,$e)|0,s=s+Math.imul(E,Ie)|0,v=v+Math.imul(E,$e)|0,g=g+Math.imul($,Pe)|0,s=s+Math.imul($,je)|0,s=s+Math.imul(G,Pe)|0,v=v+Math.imul(G,je)|0;var Ht=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,g=Math.imul(ae,ve),s=Math.imul(ae,Me),s=s+Math.imul(fe,ve)|0,v=Math.imul(fe,Me),g=g+Math.imul(ce,be)|0,s=s+Math.imul(ce,Se)|0,s=s+Math.imul(pe,be)|0,v=v+Math.imul(pe,Se)|0,g=g+Math.imul(Q,ye)|0,s=s+Math.imul(Q,_e)|0,s=s+Math.imul(ue,ye)|0,v=v+Math.imul(ue,_e)|0,g=g+Math.imul(te,ge)|0,s=s+Math.imul(te,xe)|0,s=s+Math.imul(ne,ge)|0,v=v+Math.imul(ne,xe)|0,g=g+Math.imul(j,Re)|0,s=s+Math.imul(j,Le)|0,s=s+Math.imul(z,Re)|0,v=v+Math.imul(z,Le)|0,g=g+Math.imul(X,Ae)|0,s=s+Math.imul(X,Ne)|0,s=s+Math.imul(D,Ae)|0,v=v+Math.imul(D,Ne)|0,g=g+Math.imul(y,Oe)|0,s=s+Math.imul(y,De)|0,s=s+Math.imul(O,Oe)|0,v=v+Math.imul(O,De)|0,g=g+Math.imul(K,Ie)|0,s=s+Math.imul(K,$e)|0,s=s+Math.imul(Z,Ie)|0,v=v+Math.imul(Z,$e)|0,g=g+Math.imul(A,Pe)|0,s=s+Math.imul(A,je)|0,s=s+Math.imul(E,Pe)|0,v=v+Math.imul(E,je)|0,g=g+Math.imul($,Ce)|0,s=s+Math.imul($,Fe)|0,s=s+Math.imul(G,Ce)|0,v=v+Math.imul(G,Fe)|0;var Bt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,g=Math.imul(ae,be),s=Math.imul(ae,Se),s=s+Math.imul(fe,be)|0,v=Math.imul(fe,Se),g=g+Math.imul(ce,ye)|0,s=s+Math.imul(ce,_e)|0,s=s+Math.imul(pe,ye)|0,v=v+Math.imul(pe,_e)|0,g=g+Math.imul(Q,ge)|0,s=s+Math.imul(Q,xe)|0,s=s+Math.imul(ue,ge)|0,v=v+Math.imul(ue,xe)|0,g=g+Math.imul(te,Re)|0,s=s+Math.imul(te,Le)|0,s=s+Math.imul(ne,Re)|0,v=v+Math.imul(ne,Le)|0,g=g+Math.imul(j,Ae)|0,s=s+Math.imul(j,Ne)|0,s=s+Math.imul(z,Ae)|0,v=v+Math.imul(z,Ne)|0,g=g+Math.imul(X,Oe)|0,s=s+Math.imul(X,De)|0,s=s+Math.imul(D,Oe)|0,v=v+Math.imul(D,De)|0,g=g+Math.imul(y,Ie)|0,s=s+Math.imul(y,$e)|0,s=s+Math.imul(O,Ie)|0,v=v+Math.imul(O,$e)|0,g=g+Math.imul(K,Pe)|0,s=s+Math.imul(K,je)|0,s=s+Math.imul(Z,Pe)|0,v=v+Math.imul(Z,je)|0,g=g+Math.imul(A,Ce)|0,s=s+Math.imul(A,Fe)|0,s=s+Math.imul(E,Ce)|0,v=v+Math.imul(E,Fe)|0;var dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(dt>>>26)|0,dt&=67108863,g=Math.imul(ae,ye),s=Math.imul(ae,_e),s=s+Math.imul(fe,ye)|0,v=Math.imul(fe,_e),g=g+Math.imul(ce,ge)|0,s=s+Math.imul(ce,xe)|0,s=s+Math.imul(pe,ge)|0,v=v+Math.imul(pe,xe)|0,g=g+Math.imul(Q,Re)|0,s=s+Math.imul(Q,Le)|0,s=s+Math.imul(ue,Re)|0,v=v+Math.imul(ue,Le)|0,g=g+Math.imul(te,Ae)|0,s=s+Math.imul(te,Ne)|0,s=s+Math.imul(ne,Ae)|0,v=v+Math.imul(ne,Ne)|0,g=g+Math.imul(j,Oe)|0,s=s+Math.imul(j,De)|0,s=s+Math.imul(z,Oe)|0,v=v+Math.imul(z,De)|0,g=g+Math.imul(X,Ie)|0,s=s+Math.imul(X,$e)|0,s=s+Math.imul(D,Ie)|0,v=v+Math.imul(D,$e)|0,g=g+Math.imul(y,Pe)|0,s=s+Math.imul(y,je)|0,s=s+Math.imul(O,Pe)|0,v=v+Math.imul(O,je)|0,g=g+Math.imul(K,Ce)|0,s=s+Math.imul(K,Fe)|0,s=s+Math.imul(Z,Ce)|0,v=v+Math.imul(Z,Fe)|0;var At=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(At>>>26)|0,At&=67108863,g=Math.imul(ae,ge),s=Math.imul(ae,xe),s=s+Math.imul(fe,ge)|0,v=Math.imul(fe,xe),g=g+Math.imul(ce,Re)|0,s=s+Math.imul(ce,Le)|0,s=s+Math.imul(pe,Re)|0,v=v+Math.imul(pe,Le)|0,g=g+Math.imul(Q,Ae)|0,s=s+Math.imul(Q,Ne)|0,s=s+Math.imul(ue,Ae)|0,v=v+Math.imul(ue,Ne)|0,g=g+Math.imul(te,Oe)|0,s=s+Math.imul(te,De)|0,s=s+Math.imul(ne,Oe)|0,v=v+Math.imul(ne,De)|0,g=g+Math.imul(j,Ie)|0,s=s+Math.imul(j,$e)|0,s=s+Math.imul(z,Ie)|0,v=v+Math.imul(z,$e)|0,g=g+Math.imul(X,Pe)|0,s=s+Math.imul(X,je)|0,s=s+Math.imul(D,Pe)|0,v=v+Math.imul(D,je)|0,g=g+Math.imul(y,Ce)|0,s=s+Math.imul(y,Fe)|0,s=s+Math.imul(O,Ce)|0,v=v+Math.imul(O,Fe)|0;var _t=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(_t>>>26)|0,_t&=67108863,g=Math.imul(ae,Re),s=Math.imul(ae,Le),s=s+Math.imul(fe,Re)|0,v=Math.imul(fe,Le),g=g+Math.imul(ce,Ae)|0,s=s+Math.imul(ce,Ne)|0,s=s+Math.imul(pe,Ae)|0,v=v+Math.imul(pe,Ne)|0,g=g+Math.imul(Q,Oe)|0,s=s+Math.imul(Q,De)|0,s=s+Math.imul(ue,Oe)|0,v=v+Math.imul(ue,De)|0,g=g+Math.imul(te,Ie)|0,s=s+Math.imul(te,$e)|0,s=s+Math.imul(ne,Ie)|0,v=v+Math.imul(ne,$e)|0,g=g+Math.imul(j,Pe)|0,s=s+Math.imul(j,je)|0,s=s+Math.imul(z,Pe)|0,v=v+Math.imul(z,je)|0,g=g+Math.imul(X,Ce)|0,s=s+Math.imul(X,Fe)|0,s=s+Math.imul(D,Ce)|0,v=v+Math.imul(D,Fe)|0;var mt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(mt>>>26)|0,mt&=67108863,g=Math.imul(ae,Ae),s=Math.imul(ae,Ne),s=s+Math.imul(fe,Ae)|0,v=Math.imul(fe,Ne),g=g+Math.imul(ce,Oe)|0,s=s+Math.imul(ce,De)|0,s=s+Math.imul(pe,Oe)|0,v=v+Math.imul(pe,De)|0,g=g+Math.imul(Q,Ie)|0,s=s+Math.imul(Q,$e)|0,s=s+Math.imul(ue,Ie)|0,v=v+Math.imul(ue,$e)|0,g=g+Math.imul(te,Pe)|0,s=s+Math.imul(te,je)|0,s=s+Math.imul(ne,Pe)|0,v=v+Math.imul(ne,je)|0,g=g+Math.imul(j,Ce)|0,s=s+Math.imul(j,Fe)|0,s=s+Math.imul(z,Ce)|0,v=v+Math.imul(z,Fe)|0;var It=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(It>>>26)|0,It&=67108863,g=Math.imul(ae,Oe),s=Math.imul(ae,De),s=s+Math.imul(fe,Oe)|0,v=Math.imul(fe,De),g=g+Math.imul(ce,Ie)|0,s=s+Math.imul(ce,$e)|0,s=s+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,$e)|0,g=g+Math.imul(Q,Pe)|0,s=s+Math.imul(Q,je)|0,s=s+Math.imul(ue,Pe)|0,v=v+Math.imul(ue,je)|0,g=g+Math.imul(te,Ce)|0,s=s+Math.imul(te,Fe)|0,s=s+Math.imul(ne,Ce)|0,v=v+Math.imul(ne,Fe)|0;var vt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(vt>>>26)|0,vt&=67108863,g=Math.imul(ae,Ie),s=Math.imul(ae,$e),s=s+Math.imul(fe,Ie)|0,v=Math.imul(fe,$e),g=g+Math.imul(ce,Pe)|0,s=s+Math.imul(ce,je)|0,s=s+Math.imul(pe,Pe)|0,v=v+Math.imul(pe,je)|0,g=g+Math.imul(Q,Ce)|0,s=s+Math.imul(Q,Fe)|0,s=s+Math.imul(ue,Ce)|0,v=v+Math.imul(ue,Fe)|0;var yt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(yt>>>26)|0,yt&=67108863,g=Math.imul(ae,Pe),s=Math.imul(ae,je),s=s+Math.imul(fe,Pe)|0,v=Math.imul(fe,je),g=g+Math.imul(ce,Ce)|0,s=s+Math.imul(ce,Fe)|0,s=s+Math.imul(pe,Ce)|0,v=v+Math.imul(pe,Fe)|0;var Dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,g=Math.imul(ae,Ce),s=Math.imul(ae,Fe),s=s+Math.imul(fe,Ce)|0,v=Math.imul(fe,Fe);var Ft=(x+g|0)+((s&8191)<<13)|0;return x=(v+(s>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,w[0]=it,w[1]=et,w[2]=xt,w[3]=Tt,w[4]=Ot,w[5]=Ct,w[6]=kt,w[7]=Ut,w[8]=Ht,w[9]=Bt,w[10]=dt,w[11]=At,w[12]=_t,w[13]=mt,w[14]=It,w[15]=vt,w[16]=yt,w[17]=Dt,w[18]=Ft,x!==0&&(w[19]=x,l.length++),l};Math.imul||(k=P);function L(_,o,f){f.negative=o.negative^_.negative,f.length=_.length+o.length;for(var l=0,h=0,p=0;p<f.length-1;p++){var w=h;h=0;for(var x=l&67108863,g=Math.min(p,o.length-1),s=Math.max(0,p-_.length+1);s<=g;s++){var v=p-s,T=_.words[v]|0,$=o.words[s]|0,G=T*$,ee=G&67108863;w=w+(G/67108864|0)|0,ee=ee+x|0,x=ee&67108863,w=w+(ee>>>26)|0,h+=w>>>26,w&=67108863}f.words[p]=x,l=w,w=h}return l!==0?f.words[p]=l:f.length--,f.strip()}function I(_,o,f){var l=new B;return l.mulp(_,o,f)}n.prototype.mulTo=function(o,f){var l,h=this.length+o.length;return this.length===10&&o.length===10?l=k(this,o,f):h<63?l=P(this,o,f):h<1024?l=L(this,o,f):l=I(this,o,f),l};function B(_,o){this.x=_,this.y=o}B.prototype.makeRBT=function(o){for(var f=new Array(o),l=n.prototype._countBits(o)-1,h=0;h<o;h++)f[h]=this.revBin(h,l,o);return f},B.prototype.revBin=function(o,f,l){if(o===0||o===l-1)return o;for(var h=0,p=0;p<f;p++)h|=(o&1)<<f-p-1,o>>=1;return h},B.prototype.permute=function(o,f,l,h,p,w){for(var x=0;x<w;x++)h[x]=f[o[x]],p[x]=l[o[x]]},B.prototype.transform=function(o,f,l,h,p,w){this.permute(w,o,f,l,h,p);for(var x=1;x<p;x<<=1)for(var g=x<<1,s=Math.cos(2*Math.PI/g),v=Math.sin(2*Math.PI/g),T=0;T<p;T+=g)for(var $=s,G=v,ee=0;ee<x;ee++){var A=l[T+ee],E=h[T+ee],U=l[T+ee+x],K=h[T+ee+x],Z=$*U-G*K;K=$*K+G*U,U=Z,l[T+ee]=A+U,h[T+ee]=E+K,l[T+ee+x]=A-U,h[T+ee+x]=E-K,ee!==g&&(Z=s*$-v*G,G=s*G+v*$,$=Z)}},B.prototype.guessLen13b=function(o,f){var l=Math.max(f,o)|1,h=l&1,p=0;for(l=l/2|0;l;l=l>>>1)p++;return 1<<p+1+h},B.prototype.conjugate=function(o,f,l){if(!(l<=1))for(var h=0;h<l/2;h++){var p=o[h];o[h]=o[l-h-1],o[l-h-1]=p,p=f[h],f[h]=-f[l-h-1],f[l-h-1]=-p}},B.prototype.normalize13b=function(o,f){for(var l=0,h=0;h<f/2;h++){var p=Math.round(o[2*h+1]/f)*8192+Math.round(o[2*h]/f)+l;o[h]=p&67108863,p<67108864?l=0:l=p/67108864|0}return o},B.prototype.convert13b=function(o,f,l,h){for(var p=0,w=0;w<f;w++)p=p+(o[w]|0),l[2*w]=p&8191,p=p>>>13,l[2*w+1]=p&8191,p=p>>>13;for(w=2*f;w<h;++w)l[w]=0;i(p===0),i((p&-8192)===0)},B.prototype.stub=function(o){for(var f=new Array(o),l=0;l<o;l++)f[l]=0;return f},B.prototype.mulp=function(o,f,l){var h=2*this.guessLen13b(o.length,f.length),p=this.makeRBT(h),w=this.stub(h),x=new Array(h),g=new Array(h),s=new Array(h),v=new Array(h),T=new Array(h),$=new Array(h),G=l.words;G.length=h,this.convert13b(o.words,o.length,x,h),this.convert13b(f.words,f.length,v,h),this.transform(x,w,g,s,h,p),this.transform(v,w,T,$,h,p);for(var ee=0;ee<h;ee++){var A=g[ee]*T[ee]-s[ee]*$[ee];s[ee]=g[ee]*$[ee]+s[ee]*T[ee],g[ee]=A}return this.conjugate(g,s,h),this.transform(g,s,G,w,h,p),this.conjugate(G,w,h),this.normalize13b(G,h),l.negative=o.negative^f.negative,l.length=o.length+f.length,l.strip()},n.prototype.mul=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),this.mulTo(o,f)},n.prototype.mulf=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),I(this,o,f)},n.prototype.imul=function(o){return this.clone().mulTo(o,this)},n.prototype.imuln=function(o){i(typeof o=="number"),i(o<67108864);for(var f=0,l=0;l<this.length;l++){var h=(this.words[l]|0)*o,p=(h&67108863)+(f&67108863);f>>=26,f+=h/67108864|0,f+=p>>>26,this.words[l]=p&67108863}return f!==0&&(this.words[l]=f,this.length++),this},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var f=C(o);if(f.length===0)return new n(1);for(var l=this,h=0;h<f.length&&f[h]===0;h++,l=l.sqr());if(++h<f.length)for(var p=l.sqr();h<f.length;h++,p=p.sqr())f[h]!==0&&(l=l.mul(p));return l},n.prototype.iushln=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=67108863>>>26-f<<26-f,p;if(f!==0){var w=0;for(p=0;p<this.length;p++){var x=this.words[p]&h,g=(this.words[p]|0)-x<<f;this.words[p]=g|w,w=x>>>26-f}w&&(this.words[p]=w,this.length++)}if(l!==0){for(p=this.length-1;p>=0;p--)this.words[p+l]=this.words[p];for(p=0;p<l;p++)this.words[p]=0;this.length+=l}return this.strip()},n.prototype.ishln=function(o){return i(this.negative===0),this.iushln(o)},n.prototype.iushrn=function(o,f,l){i(typeof o=="number"&&o>=0);var h;f?h=(f-f%26)/26:h=0;var p=o%26,w=Math.min((o-p)/26,this.length),x=67108863^67108863>>>p<<p,g=l;if(h-=w,h=Math.max(0,h),g){for(var s=0;s<w;s++)g.words[s]=this.words[s];g.length=w}if(w!==0)if(this.length>w)for(this.length-=w,s=0;s<this.length;s++)this.words[s]=this.words[s+w];else this.words[0]=0,this.length=1;var v=0;for(s=this.length-1;s>=0&&(v!==0||s>=h);s--){var T=this.words[s]|0;this.words[s]=v<<26-p|T>>>p,v=T&x}return g&&v!==0&&(g.words[g.length++]=v),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(o,f,l){return i(this.negative===0),this.iushrn(o,f,l)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return!1;var p=this.words[l];return!!(p&h)},n.prototype.imaskn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(f!==0&&l++,this.length=Math.min(l,this.length),f!==0){var h=67108863^67108863>>>f<<f;this.words[this.length-1]&=h}return this.strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return i(typeof o=="number"),i(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},n.prototype._iaddn=function(o){this.words[0]+=o;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},n.prototype.isubn=function(o){if(i(typeof o=="number"),i(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,f,l){var h=o.length+l,p;this._expand(h);var w,x=0;for(p=0;p<o.length;p++){w=(this.words[p+l]|0)+x;var g=(o.words[p]|0)*f;w-=g&67108863,x=(w>>26)-(g/67108864|0),this.words[p+l]=w&67108863}for(;p<this.length-l;p++)w=(this.words[p+l]|0)+x,x=w>>26,this.words[p+l]=w&67108863;if(x===0)return this.strip();for(i(x===-1),x=0,p=0;p<this.length;p++)w=-(this.words[p]|0)+x,x=w>>26,this.words[p]=w&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(o,f){var l=this.length-o.length,h=this.clone(),p=o,w=p.words[p.length-1]|0,x=this._countBits(w);l=26-x,l!==0&&(p=p.ushln(l),h.iushln(l),w=p.words[p.length-1]|0);var g=h.length-p.length,s;if(f!=="mod"){s=new n(null),s.length=g+1,s.words=new Array(s.length);for(var v=0;v<s.length;v++)s.words[v]=0}var T=h.clone()._ishlnsubmul(p,1,g);T.negative===0&&(h=T,s&&(s.words[g]=1));for(var $=g-1;$>=0;$--){var G=(h.words[p.length+$]|0)*67108864+(h.words[p.length+$-1]|0);for(G=Math.min(G/w|0,67108863),h._ishlnsubmul(p,G,$);h.negative!==0;)G--,h.negative=0,h._ishlnsubmul(p,1,$),h.isZero()||(h.negative^=1);s&&(s.words[$]=G)}return s&&s.strip(),h.strip(),f!=="div"&&l!==0&&h.iushrn(l),{div:s||null,mod:h}},n.prototype.divmod=function(o,f,l){if(i(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,p,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,f),f!=="mod"&&(h=w.div.neg()),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.iadd(o)),{div:h,mod:p}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),f),f!=="mod"&&(h=w.div.neg()),{div:h,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),f),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.isub(o)),{div:w.div,mod:p}):o.length>this.length||this.cmp(o)<0?{div:new n(0),mod:this}:o.length===1?f==="div"?{div:this.divn(o.words[0]),mod:null}:f==="mod"?{div:null,mod:new n(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modn(o.words[0]))}:this._wordDiv(o,f)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var f=this.divmod(o);if(f.mod.isZero())return f.div;var l=f.div.negative!==0?f.mod.isub(o):f.mod,h=o.ushrn(1),p=o.andln(1),w=l.cmp(h);return w<0||p===1&&w===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},n.prototype.modn=function(o){i(o<=67108863);for(var f=(1<<26)%o,l=0,h=this.length-1;h>=0;h--)l=(f*l+(this.words[h]|0))%o;return l},n.prototype.idivn=function(o){i(o<=67108863);for(var f=0,l=this.length-1;l>=0;l--){var h=(this.words[l]|0)+f*67108864;this.words[l]=h/o|0,f=h%o}return this.strip()},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=new n(0),x=new n(1),g=0;f.isEven()&&l.isEven();)f.iushrn(1),l.iushrn(1),++g;for(var s=l.clone(),v=f.clone();!f.isZero();){for(var T=0,$=1;!(f.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(f.iushrn(T);T-- >0;)(h.isOdd()||p.isOdd())&&(h.iadd(s),p.isub(v)),h.iushrn(1),p.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(s),x.isub(v)),w.iushrn(1),x.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(w),p.isub(x)):(l.isub(f),w.isub(h),x.isub(p))}return{a:w,b:x,gcd:l.iushln(g)}},n.prototype._invmp=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=l.clone();f.cmpn(1)>0&&l.cmpn(1)>0;){for(var x=0,g=1;!(f.words[0]&g)&&x<26;++x,g<<=1);if(x>0)for(f.iushrn(x);x-- >0;)h.isOdd()&&h.iadd(w),h.iushrn(1);for(var s=0,v=1;!(l.words[0]&v)&&s<26;++s,v<<=1);if(s>0)for(l.iushrn(s);s-- >0;)p.isOdd()&&p.iadd(w),p.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(p)):(l.isub(f),p.isub(h))}var T;return f.cmpn(1)===0?T=h:T=p,T.cmpn(0)<0&&T.iadd(o),T},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var f=this.clone(),l=o.clone();f.negative=0,l.negative=0;for(var h=0;f.isEven()&&l.isEven();h++)f.iushrn(1),l.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;l.isEven();)l.iushrn(1);var p=f.cmp(l);if(p<0){var w=f;f=l,l=w}else if(p===0||l.cmpn(1)===0)break;f.isub(l)}while(!0);return l.iushln(h)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(o){return this.words[0]&o},n.prototype.bincn=function(o){i(typeof o=="number");var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return this._expand(l+1),this.words[l]|=h,this;for(var p=h,w=l;p!==0&&w<this.length;w++){var x=this.words[w]|0;x+=p,p=x>>>26,x&=67108863,this.words[w]=x}return p!==0&&(this.words[w]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(o){var f=o<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var l;if(this.length>1)l=1;else{f&&(o=-o),i(o<=67108863,"Number is too big");var h=this.words[0]|0;l=h===o?0:h<o?-1:1}return this.negative!==0?-l|0:l},n.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var f=this.ucmp(o);return this.negative!==0?-f|0:f},n.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var f=0,l=this.length-1;l>=0;l--){var h=this.words[l]|0,p=o.words[l]|0;if(h!==p){h<p?f=-1:h>p&&(f=1);break}}return f},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new V(o)},n.prototype.toRed=function(o){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},n.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(o){return this.red=o,this},n.prototype.forceRed=function(o){return i(!this.red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},n.prototype.redIAdd=function(o){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},n.prototype.redSub=function(o){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},n.prototype.redISub=function(o){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},n.prototype.redShl=function(o){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},n.prototype.redMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},n.prototype.redIMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},n.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(o){return i(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var H={k256:null,p224:null,p192:null,p25519:null};function F(_,o){this.name=_,this.p=new n(o,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil(this.n/13)),o},F.prototype.ireduce=function(o){var f=o,l;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),l=f.bitLength();while(l>this.n);var h=l<this.n?-1:f.ucmp(this.p);return h===0?(f.words[0]=0,f.length=1):h>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},F.prototype.split=function(o,f){o.iushrn(this.n,0,f)},F.prototype.imulK=function(o){return o.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(W,F),W.prototype.split=function(o,f){for(var l=4194303,h=Math.min(o.length,9),p=0;p<h;p++)f.words[p]=o.words[p];if(f.length=h,o.length<=9){o.words[0]=0,o.length=1;return}var w=o.words[9];for(f.words[f.length++]=w&l,p=10;p<o.length;p++){var x=o.words[p]|0;o.words[p-10]=(x&l)<<4|w>>>22,w=x}w>>>=22,o.words[p-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},W.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var f=0,l=0;l<o.length;l++){var h=o.words[l]|0;f+=h*977,o.words[l]=f&67108863,f=h*64+(f/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Y(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(Y,F);function ie(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(ie,F);function J(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(J,F),J.prototype.imulK=function(o){for(var f=0,l=0;l<o.length;l++){var h=(o.words[l]|0)*19+f,p=h&67108863;h>>>=26,o.words[l]=p,f=h}return f!==0&&(o.words[o.length++]=f),o},n._prime=function(o){if(H[o])return H[o];var f;if(o==="k256")f=new W;else if(o==="p224")f=new Y;else if(o==="p192")f=new ie;else if(o==="p25519")f=new J;else throw new Error("Unknown prime "+o);return H[o]=f,f};function V(_){if(typeof _=="string"){var o=n._prime(_);this.m=o.p,this.prime=o}else i(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}V.prototype._verify1=function(o){i(o.negative===0,"red works only with positives"),i(o.red,"red works only with red numbers")},V.prototype._verify2=function(o,f){i((o.negative|f.negative)===0,"red works only with positives"),i(o.red&&o.red===f.red,"red works only with red numbers")},V.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},V.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},V.prototype.add=function(o,f){this._verify2(o,f);var l=o.add(f);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},V.prototype.iadd=function(o,f){this._verify2(o,f);var l=o.iadd(f);return l.cmp(this.m)>=0&&l.isub(this.m),l},V.prototype.sub=function(o,f){this._verify2(o,f);var l=o.sub(f);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},V.prototype.isub=function(o,f){this._verify2(o,f);var l=o.isub(f);return l.cmpn(0)<0&&l.iadd(this.m),l},V.prototype.shl=function(o,f){return this._verify1(o),this.imod(o.ushln(f))},V.prototype.imul=function(o,f){return this._verify2(o,f),this.imod(o.imul(f))},V.prototype.mul=function(o,f){return this._verify2(o,f),this.imod(o.mul(f))},V.prototype.isqr=function(o){return this.imul(o,o.clone())},V.prototype.sqr=function(o){return this.mul(o,o)},V.prototype.sqrt=function(o){if(o.isZero())return o.clone();var f=this.m.andln(3);if(i(f%2===1),f===3){var l=this.m.add(new n(1)).iushrn(2);return this.pow(o,l)}for(var h=this.m.subn(1),p=0;!h.isZero()&&h.andln(1)===0;)p++,h.iushrn(1);i(!h.isZero());var w=new n(1).toRed(this),x=w.redNeg(),g=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new n(2*s*s).toRed(this);this.pow(s,g).cmp(x)!==0;)s.redIAdd(x);for(var v=this.pow(s,h),T=this.pow(o,h.addn(1).iushrn(1)),$=this.pow(o,h),G=p;$.cmp(w)!==0;){for(var ee=$,A=0;ee.cmp(w)!==0;A++)ee=ee.redSqr();i(A<G);var E=this.pow(v,new n(1).iushln(G-A-1));T=T.redMul(E),v=E.redSqr(),$=$.redMul(v),G=A}return T},V.prototype.invm=function(o){var f=o._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},V.prototype.pow=function(o,f){if(f.isZero())return new n(1).toRed(this);if(f.cmpn(1)===0)return o.clone();var l=4,h=new Array(1<<l);h[0]=new n(1).toRed(this),h[1]=o;for(var p=2;p<h.length;p++)h[p]=this.mul(h[p-1],o);var w=h[0],x=0,g=0,s=f.bitLength()%26;for(s===0&&(s=26),p=f.length-1;p>=0;p--){for(var v=f.words[p],T=s-1;T>=0;T--){var $=v>>T&1;if(w!==h[0]&&(w=this.sqr(w)),$===0&&x===0){g=0;continue}x<<=1,x|=$,g++,!(g!==l&&(p!==0||T!==0))&&(w=this.mul(w,h[x]),g=0,x=0)}s=26}return w},V.prototype.convertTo=function(o){var f=o.umod(this.m);return f===o?f.clone():f},V.prototype.convertFrom=function(o){var f=o.clone();return f.red=null,f},n.mont=function(o){return new oe(o)};function oe(_){V.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(oe,V),oe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},oe.prototype.convertFrom=function(o){var f=this.imod(o.mul(this.rinv));return f.red=null,f},oe.prototype.imul=function(o,f){if(o.isZero()||f.isZero())return o.words[0]=0,o.length=1,o;var l=o.imul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.mul=function(o,f){if(o.isZero()||f.isZero())return new n(0)._forceRed(this);var l=o.mul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.invm=function(o){var f=this.imod(o._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,Ye)})(Og);var rH=Og.exports,el={exports:{}},Gb;function Ig(){if(Gb)return el.exports;Gb=1;var e;el.exports=function(a){return e||(e=new t(null)),e.generate(a)};function t(i){this.rand=i}if(el.exports.Rand=t,t.prototype.generate=function(a){return this._rand(a)},t.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var n=new Uint8Array(a),u=0;u<n.length;u++)n[u]=this.rand.getByte();return n},typeof self=="object")self.crypto&&self.crypto.getRandomValues?t.prototype._rand=function(a){var n=new Uint8Array(a);return self.crypto.getRandomValues(n),n}:self.msCrypto&&self.msCrypto.getRandomValues?t.prototype._rand=function(a){var n=new Uint8Array(a);return self.msCrypto.getRandomValues(n),n}:typeof window=="object"&&(t.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var r=C4();if(typeof r.randomBytes!="function")throw new Error("Not supported");t.prototype._rand=function(a){return r.randomBytes(a)}}catch{}return el.exports}var l0,Yb;function Sx(){if(Yb)return l0;Yb=1;var e=rH,t=Ig();function r(i){this.rand=i||new t.Rand}return l0=r,r.create=function(a){return new r(a)},r.prototype._randbelow=function(a){var n=a.bitLength(),u=Math.ceil(n/8);do var c=new e(this.rand.generate(u));while(c.cmp(a)>=0);return c},r.prototype._randrange=function(a,n){var u=n.sub(a);return a.add(this._randbelow(u))},r.prototype.test=function(a,n,u){var c=a.bitLength(),d=e.mont(a),m=new e(1).toRed(d);n||(n=Math.max(1,c/48|0));for(var M=a.subn(1),S=0;!M.testn(S);S++);for(var R=a.shrn(S),C=M.toRed(d),P=!0;n>0;n--){var k=this._randrange(new e(2),M);u&&u(k);var L=k.toRed(d).redPow(R);if(!(L.cmp(m)===0||L.cmp(C)===0)){for(var I=1;I<S;I++){if(L=L.redSqr(),L.cmp(m)===0)return!1;if(L.cmp(C)===0)break}if(I===S)return!1}}return P},r.prototype.getDivisor=function(a,n){var u=a.bitLength(),c=e.mont(a),d=new e(1).toRed(c);n||(n=Math.max(1,u/48|0));for(var m=a.subn(1),M=0;!m.testn(M);M++);for(var S=a.shrn(M),R=m.toRed(c);n>0;n--){var C=this._randrange(new e(2),m),P=a.gcd(C);if(P.cmpn(1)!==0)return P;var k=C.toRed(c).redPow(S);if(!(k.cmp(d)===0||k.cmp(R)===0)){for(var L=1;L<M;L++){if(k=k.redSqr(),k.cmp(d)===0)return k.fromRed().subn(1).gcd(a);if(k.cmp(R)===0)break}if(L===M)return k=k.redSqr(),k.fromRed().subn(1).gcd(a)}}return!1},l0}var h0,Zb;function xx(){if(Zb)return h0;Zb=1;var e=Ds;h0=L,L.simpleSieve=P,L.fermatTest=k;var t=Mx,r=new t(24),i=Sx(),a=new i,n=new t(1),u=new t(2),c=new t(5);new t(16),new t(8);var d=new t(10),m=new t(3);new t(7);var M=new t(11),S=new t(4);new t(12);var R=null;function C(){if(R!==null)return R;var I=1048576,B=[];B[0]=2;for(var H=1,F=3;F<I;F+=2){for(var W=Math.ceil(Math.sqrt(F)),Y=0;Y<H&&B[Y]<=W&&F%B[Y]!==0;Y++);H!==Y&&B[Y]<=W||(B[H++]=F)}return R=B,B}function P(I){for(var B=C(),H=0;H<B.length;H++)if(I.modn(B[H])===0)return I.cmpn(B[H])===0;return!0}function k(I){var B=t.mont(I);return u.toRed(B).redPow(I.subn(1)).fromRed().cmpn(1)===0}function L(I,B){if(I<16)return B===2||B===5?new t([140,123]):new t([140,39]);B=new t(B);for(var H,F;;){for(H=new t(e(Math.ceil(I/8)));H.bitLength()>I;)H.ishrn(1);if(H.isEven()&&H.iadd(n),H.testn(1)||H.iadd(u),B.cmp(u)){if(!B.cmp(c))for(;H.mod(d).cmp(m);)H.iadd(S)}else for(;H.mod(r).cmp(M);)H.iadd(S);if(F=H.shrn(1),P(F)&&P(H)&&k(F)&&k(H)&&a.test(F)&&a.test(H))return H}}return h0}const iH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},nH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},oH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},aH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},sH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},fH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},uH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},lH={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},hH={modp1:iH,modp2:nH,modp5:oH,modp14:aH,modp15:sH,modp16:fH,modp17:uH,modp18:lH};var c0,Xb;function cH(){if(Xb)return c0;Xb=1;var e=Mx,t=Sx(),r=new t,i=new e(24),a=new e(11),n=new e(10),u=new e(3),c=new e(7),d=xx(),m=Ds;c0=P;function M(L,I){return I=I||"utf8",ke.Buffer.isBuffer(L)||(L=new ke.Buffer(L,I)),this._pub=new e(L),this}function S(L,I){return I=I||"utf8",ke.Buffer.isBuffer(L)||(L=new ke.Buffer(L,I)),this._priv=new e(L),this}var R={};function C(L,I){var B=I.toString("hex"),H=[B,L.toString(16)].join("_");if(H in R)return R[H];var F=0;if(L.isEven()||!d.simpleSieve||!d.fermatTest(L)||!r.test(L))return F+=1,B==="02"||B==="05"?F+=8:F+=4,R[H]=F,F;r.test(L.shrn(1))||(F+=2);var W;switch(B){case"02":L.mod(i).cmp(a)&&(F+=8);break;case"05":W=L.mod(n),W.cmp(u)&&W.cmp(c)&&(F+=8);break;default:F+=4}return R[H]=F,F}function P(L,I,B){this.setGenerator(I),this.__prime=new e(L),this._prime=e.mont(this.__prime),this._primeLen=L.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,B?(this.setPublicKey=M,this.setPrivateKey=S):this._primeCode=8}Object.defineProperty(P.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=C(this.__prime,this.__gen)),this._primeCode}}),P.prototype.generateKeys=function(){return this._priv||(this._priv=new e(m(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},P.prototype.computeSecret=function(L){L=new e(L),L=L.toRed(this._prime);var I=L.redPow(this._priv).fromRed(),B=new ke.Buffer(I.toArray()),H=this.getPrime();if(B.length<H.length){var F=new ke.Buffer(H.length-B.length);F.fill(0),B=ke.Buffer.concat([F,B])}return B},P.prototype.getPublicKey=function(I){return k(this._pub,I)},P.prototype.getPrivateKey=function(I){return k(this._priv,I)},P.prototype.getPrime=function(L){return k(this.__prime,L)},P.prototype.getGenerator=function(L){return k(this._gen,L)},P.prototype.setGenerator=function(L,I){return I=I||"utf8",ke.Buffer.isBuffer(L)||(L=new ke.Buffer(L,I)),this.__gen=L,this._gen=new e(L),this};function k(L,I){var B=new ke.Buffer(L.toArray());return I?B.toString(I):B}return c0}var Jb;function dH(){if(Jb)return qo;Jb=1;var e=xx(),t=hH,r=cH();function i(u){var c=new ke.Buffer(t[u].prime,"hex"),d=new ke.Buffer(t[u].gen,"hex");return new r(c,d)}var a={binary:!0,hex:!0,base64:!0};function n(u,c,d,m){return ke.Buffer.isBuffer(c)||a[c]===void 0?n(u,"binary",c,d):(c=c||"binary",m=m||"binary",d=d||new ke.Buffer([2]),ke.Buffer.isBuffer(d)||(d=new ke.Buffer(d,m)),typeof u=="number"?new r(e(u,d),d,!0):(ke.Buffer.isBuffer(u)||(u=new ke.Buffer(u,c)),new r(u,d,!0)))}return qo.DiffieHellmanGroup=qo.createDiffieHellmanGroup=qo.getDiffieHellman=i,qo.createDiffieHellman=qo.DiffieHellman=n,qo}var Vp={exports:{}},Ex=Or.EventEmitter,d0,Qb;function pH(){if(Qb)return d0;Qb=1;function e(P,k){var L=Object.keys(P);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(P);k&&(I=I.filter(function(B){return Object.getOwnPropertyDescriptor(P,B).enumerable})),L.push.apply(L,I)}return L}function t(P){for(var k=1;k<arguments.length;k++){var L=arguments[k]!=null?arguments[k]:{};k%2?e(Object(L),!0).forEach(function(I){r(P,I,L[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(P,Object.getOwnPropertyDescriptors(L)):e(Object(L)).forEach(function(I){Object.defineProperty(P,I,Object.getOwnPropertyDescriptor(L,I))})}return P}function r(P,k,L){return k=u(k),k in P?Object.defineProperty(P,k,{value:L,enumerable:!0,configurable:!0,writable:!0}):P[k]=L,P}function i(P,k){if(!(P instanceof k))throw new TypeError("Cannot call a class as a function")}function a(P,k){for(var L=0;L<k.length;L++){var I=k[L];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(P,u(I.key),I)}}function n(P,k,L){return k&&a(P.prototype,k),L&&a(P,L),Object.defineProperty(P,"prototype",{writable:!1}),P}function u(P){var k=c(P,"string");return typeof k=="symbol"?k:String(k)}function c(P,k){if(typeof P!="object"||P===null)return P;var L=P[Symbol.toPrimitive];if(L!==void 0){var I=L.call(P,k||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(P)}var d=ke,m=d.Buffer,M=ei,S=M.inspect,R=S&&S.custom||"inspect";function C(P,k,L){m.prototype.copy.call(P,k,L)}return d0=function(){function P(){i(this,P),this.head=null,this.tail=null,this.length=0}return n(P,[{key:"push",value:function(L){var I={data:L,next:null};this.length>0?this.tail.next=I:this.head=I,this.tail=I,++this.length}},{key:"unshift",value:function(L){var I={data:L,next:this.head};this.length===0&&(this.tail=I),this.head=I,++this.length}},{key:"shift",value:function(){if(this.length!==0){var L=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,L}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(L){if(this.length===0)return"";for(var I=this.head,B=""+I.data;I=I.next;)B+=L+I.data;return B}},{key:"concat",value:function(L){if(this.length===0)return m.alloc(0);for(var I=m.allocUnsafe(L>>>0),B=this.head,H=0;B;)C(B.data,I,H),H+=B.data.length,B=B.next;return I}},{key:"consume",value:function(L,I){var B;return L<this.head.data.length?(B=this.head.data.slice(0,L),this.head.data=this.head.data.slice(L)):L===this.head.data.length?B=this.shift():B=I?this._getString(L):this._getBuffer(L),B}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(L){var I=this.head,B=1,H=I.data;for(L-=H.length;I=I.next;){var F=I.data,W=L>F.length?F.length:L;if(W===F.length?H+=F:H+=F.slice(0,L),L-=W,L===0){W===F.length?(++B,I.next?this.head=I.next:this.head=this.tail=null):(this.head=I,I.data=F.slice(W));break}++B}return this.length-=B,H}},{key:"_getBuffer",value:function(L){var I=m.allocUnsafe(L),B=this.head,H=1;for(B.data.copy(I),L-=B.data.length;B=B.next;){var F=B.data,W=L>F.length?F.length:L;if(F.copy(I,I.length-L,0,W),L-=W,L===0){W===F.length?(++H,B.next?this.head=B.next:this.head=this.tail=null):(this.head=B,B.data=F.slice(W));break}++H}return this.length-=H,I}},{key:R,value:function(L,I){return S(this,t(t({},I),{},{depth:0,customInspect:!1}))}}]),P}(),d0}function vH(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,we.nextTick(zp,this,e)):we.nextTick(zp,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(n){!t&&n?r._writableState?r._writableState.errorEmitted?we.nextTick(Ml,r):(r._writableState.errorEmitted=!0,we.nextTick(ew,r,n)):we.nextTick(ew,r,n):t?(we.nextTick(Ml,r),t(n)):we.nextTick(Ml,r)}),this)}function ew(e,t){zp(e,t),Ml(e)}function Ml(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function gH(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function zp(e,t){e.emit("error",t)}function mH(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}var Rx={destroy:vH,undestroy:gH,errorOrDestroy:mH},Ia={};function yH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ax={};function Ei(e,t,r){r||(r=Error);function i(n,u,c){return typeof t=="string"?t:t(n,u,c)}var a=function(n){yH(u,n);function u(c,d,m){return n.call(this,i(c,d,m))||this}return u}(r);a.prototype.name=r.name,a.prototype.code=e,Ax[e]=a}function tw(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(i){return String(i)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function bH(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function wH(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function _H(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Ei("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Ei("ERR_INVALID_ARG_TYPE",function(e,t,r){var i;typeof t=="string"&&bH(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";var a;if(wH(e," argument"))a="The ".concat(e," ").concat(i," ").concat(tw(t,"type"));else{var n=_H(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(n," ").concat(i," ").concat(tw(t,"type"))}return a+=". Received type ".concat(typeof r),a},TypeError);Ei("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ei("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Ei("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ei("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Ei("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ei("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ei("ERR_STREAM_WRITE_AFTER_END","write after end");Ei("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ei("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Ei("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Ia.codes=Ax;var MH=Ia.codes.ERR_INVALID_OPT_VALUE;function SH(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function xH(e,t,r,i){var a=SH(t,i,r);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var n=i?r:"highWaterMark";throw new MH(n,a)}return Math.floor(a)}return e.objectMode?16:16*1024}var Tx={getHighWaterMark:xH},p0,rw;function Ox(){if(rw)return p0;rw=1,p0=J;function e(A){var E=this;this.next=null,this.entry=null,this.finish=function(){ee(E,A)}}var t;J.WritableState=Y;var r={deprecate:ks},i=Ex,a=ke.Buffer,n=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function u(A){return a.from(A)}function c(A){return a.isBuffer(A)||A instanceof n}var d=Rx,m=Tx,M=m.getHighWaterMark,S=Ia.codes,R=S.ERR_INVALID_ARG_TYPE,C=S.ERR_METHOD_NOT_IMPLEMENTED,P=S.ERR_MULTIPLE_CALLBACK,k=S.ERR_STREAM_CANNOT_PIPE,L=S.ERR_STREAM_DESTROYED,I=S.ERR_STREAM_NULL_VALUES,B=S.ERR_STREAM_WRITE_AFTER_END,H=S.ERR_UNKNOWN_ENCODING,F=d.errorOrDestroy;Ze(J,i);function W(){}function Y(A,E,U){t=t||Ss(),A=A||{},typeof U!="boolean"&&(U=E instanceof t),this.objectMode=!!A.objectMode,U&&(this.objectMode=this.objectMode||!!A.writableObjectMode),this.highWaterMark=M(this,A,"writableHighWaterMark",U),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var K=A.decodeStrings===!1;this.decodeStrings=!K,this.defaultEncoding=A.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Z){p(E,Z)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=A.emitClose!==!1,this.autoDestroy=!!A.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}Y.prototype.getBuffer=function(){for(var E=this.bufferedRequest,U=[];E;)U.push(E),E=E.next;return U},function(){try{Object.defineProperty(Y.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var ie;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ie=Function.prototype[Symbol.hasInstance],Object.defineProperty(J,Symbol.hasInstance,{value:function(E){return ie.call(this,E)?!0:this!==J?!1:E&&E._writableState instanceof Y}})):ie=function(E){return E instanceof this};function J(A){t=t||Ss();var E=this instanceof t;if(!E&&!ie.call(J,this))return new J(A);this._writableState=new Y(A,this,E),this.writable=!0,A&&(typeof A.write=="function"&&(this._write=A.write),typeof A.writev=="function"&&(this._writev=A.writev),typeof A.destroy=="function"&&(this._destroy=A.destroy),typeof A.final=="function"&&(this._final=A.final)),i.call(this)}J.prototype.pipe=function(){F(this,new k)};function V(A,E){var U=new B;F(A,U),we.nextTick(E,U)}function oe(A,E,U,K){var Z;return U===null?Z=new I:typeof U!="string"&&!E.objectMode&&(Z=new R("chunk",["string","Buffer"],U)),Z?(F(A,Z),we.nextTick(K,Z),!1):!0}J.prototype.write=function(A,E,U){var K=this._writableState,Z=!1,b=!K.objectMode&&c(A);return b&&!a.isBuffer(A)&&(A=u(A)),typeof E=="function"&&(U=E,E=null),b?E="buffer":E||(E=K.defaultEncoding),typeof U!="function"&&(U=W),K.ending?V(this,U):(b||oe(this,K,A,U))&&(K.pendingcb++,Z=o(this,K,b,A,E,U)),Z},J.prototype.cork=function(){this._writableState.corked++},J.prototype.uncork=function(){var A=this._writableState;A.corked&&(A.corked--,!A.writing&&!A.corked&&!A.bufferProcessing&&A.bufferedRequest&&g(this,A))},J.prototype.setDefaultEncoding=function(E){if(typeof E=="string"&&(E=E.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E+"").toLowerCase())>-1))throw new H(E);return this._writableState.defaultEncoding=E,this},Object.defineProperty(J.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _(A,E,U){return!A.objectMode&&A.decodeStrings!==!1&&typeof E=="string"&&(E=a.from(E,U)),E}Object.defineProperty(J.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function o(A,E,U,K,Z,b){if(!U){var y=_(E,K,Z);K!==y&&(U=!0,Z="buffer",K=y)}var O=E.objectMode?1:K.length;E.length+=O;var q=E.length<E.highWaterMark;if(q||(E.needDrain=!0),E.writing||E.corked){var X=E.lastBufferedRequest;E.lastBufferedRequest={chunk:K,encoding:Z,isBuf:U,callback:b,next:null},X?X.next=E.lastBufferedRequest:E.bufferedRequest=E.lastBufferedRequest,E.bufferedRequestCount+=1}else f(A,E,!1,O,K,Z,b);return q}function f(A,E,U,K,Z,b,y){E.writelen=K,E.writecb=y,E.writing=!0,E.sync=!0,E.destroyed?E.onwrite(new L("write")):U?A._writev(Z,E.onwrite):A._write(Z,b,E.onwrite),E.sync=!1}function l(A,E,U,K,Z){--E.pendingcb,U?(we.nextTick(Z,K),we.nextTick($,A,E),A._writableState.errorEmitted=!0,F(A,K)):(Z(K),A._writableState.errorEmitted=!0,F(A,K),$(A,E))}function h(A){A.writing=!1,A.writecb=null,A.length-=A.writelen,A.writelen=0}function p(A,E){var U=A._writableState,K=U.sync,Z=U.writecb;if(typeof Z!="function")throw new P;if(h(U),E)l(A,U,K,E,Z);else{var b=s(U)||A.destroyed;!b&&!U.corked&&!U.bufferProcessing&&U.bufferedRequest&&g(A,U),K?we.nextTick(w,A,U,b,Z):w(A,U,b,Z)}}function w(A,E,U,K){U||x(A,E),E.pendingcb--,K(),$(A,E)}function x(A,E){E.length===0&&E.needDrain&&(E.needDrain=!1,A.emit("drain"))}function g(A,E){E.bufferProcessing=!0;var U=E.bufferedRequest;if(A._writev&&U&&U.next){var K=E.bufferedRequestCount,Z=new Array(K),b=E.corkedRequestsFree;b.entry=U;for(var y=0,O=!0;U;)Z[y]=U,U.isBuf||(O=!1),U=U.next,y+=1;Z.allBuffers=O,f(A,E,!0,E.length,Z,"",b.finish),E.pendingcb++,E.lastBufferedRequest=null,b.next?(E.corkedRequestsFree=b.next,b.next=null):E.corkedRequestsFree=new e(E),E.bufferedRequestCount=0}else{for(;U;){var q=U.chunk,X=U.encoding,D=U.callback,N=E.objectMode?1:q.length;if(f(A,E,!1,N,q,X,D),U=U.next,E.bufferedRequestCount--,E.writing)break}U===null&&(E.lastBufferedRequest=null)}E.bufferedRequest=U,E.bufferProcessing=!1}J.prototype._write=function(A,E,U){U(new C("_write()"))},J.prototype._writev=null,J.prototype.end=function(A,E,U){var K=this._writableState;return typeof A=="function"?(U=A,A=null,E=null):typeof E=="function"&&(U=E,E=null),A!=null&&this.write(A,E),K.corked&&(K.corked=1,this.uncork()),K.ending||G(this,K,U),this},Object.defineProperty(J.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(A){return A.ending&&A.length===0&&A.bufferedRequest===null&&!A.finished&&!A.writing}function v(A,E){A._final(function(U){E.pendingcb--,U&&F(A,U),E.prefinished=!0,A.emit("prefinish"),$(A,E)})}function T(A,E){!E.prefinished&&!E.finalCalled&&(typeof A._final=="function"&&!E.destroyed?(E.pendingcb++,E.finalCalled=!0,we.nextTick(v,A,E)):(E.prefinished=!0,A.emit("prefinish")))}function $(A,E){var U=s(E);if(U&&(T(A,E),E.pendingcb===0&&(E.finished=!0,A.emit("finish"),E.autoDestroy))){var K=A._readableState;(!K||K.autoDestroy&&K.endEmitted)&&A.destroy()}return U}function G(A,E,U){E.ending=!0,$(A,E),U&&(E.finished?we.nextTick(U):A.once("finish",U)),E.ended=!0,A.writable=!1}function ee(A,E,U){var K=A.entry;for(A.entry=null;K;){var Z=K.callback;E.pendingcb--,Z(U),K=K.next}E.corkedRequestsFree.next=A}return Object.defineProperty(J.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(E){this._writableState&&(this._writableState.destroyed=E)}}),J.prototype.destroy=d.destroy,J.prototype._undestroy=d.undestroy,J.prototype._destroy=function(A,E){E(A)},p0}var v0,iw;function Ss(){if(iw)return v0;iw=1;var e=Object.keys||function(m){var M=[];for(var S in m)M.push(S);return M};v0=u;var t=Px(),r=Ox();Ze(u,t);for(var i=e(r.prototype),a=0;a<i.length;a++){var n=i[a];u.prototype[n]||(u.prototype[n]=r.prototype[n])}function u(m){if(!(this instanceof u))return new u(m);t.call(this,m),r.call(this,m),this.allowHalfOpen=!0,m&&(m.readable===!1&&(this.readable=!1),m.writable===!1&&(this.writable=!1),m.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",c)))}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function c(){this._writableState.ended||we.nextTick(d,this)}function d(m){m.end()}return Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(M){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=M,this._writableState.destroyed=M)}}),v0}var nw=Ia.codes.ERR_STREAM_PREMATURE_CLOSE;function EH(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];e.apply(this,i)}}}function RH(){}function AH(e){return e.setHeader&&typeof e.abort=="function"}function Ix(e,t,r){if(typeof t=="function")return Ix(e,null,t);t||(t={}),r=EH(r||RH);var i=t.readable||t.readable!==!1&&e.readable,a=t.writable||t.writable!==!1&&e.writable,n=function(){e.writable||c()},u=e._writableState&&e._writableState.finished,c=function(){a=!1,u=!0,i||r.call(e)},d=e._readableState&&e._readableState.endEmitted,m=function(){i=!1,d=!0,a||r.call(e)},M=function(P){r.call(e,P)},S=function(){var P;if(i&&!d)return(!e._readableState||!e._readableState.ended)&&(P=new nw),r.call(e,P);if(a&&!u)return(!e._writableState||!e._writableState.ended)&&(P=new nw),r.call(e,P)},R=function(){e.req.on("finish",c)};return AH(e)?(e.on("complete",c),e.on("abort",S),e.req?R():e.on("request",R)):a&&!e._writableState&&(e.on("end",n),e.on("close",n)),e.on("end",m),e.on("finish",c),t.error!==!1&&e.on("error",M),e.on("close",S),function(){e.removeListener("complete",c),e.removeListener("abort",S),e.removeListener("request",R),e.req&&e.req.removeListener("finish",c),e.removeListener("end",n),e.removeListener("close",n),e.removeListener("finish",c),e.removeListener("end",m),e.removeListener("error",M),e.removeListener("close",S)}}var Pg=Ix,g0,ow;function TH(){if(ow)return g0;ow=1;var e;function t(H,F,W){return F=r(F),F in H?Object.defineProperty(H,F,{value:W,enumerable:!0,configurable:!0,writable:!0}):H[F]=W,H}function r(H){var F=i(H,"string");return typeof F=="symbol"?F:String(F)}function i(H,F){if(typeof H!="object"||H===null)return H;var W=H[Symbol.toPrimitive];if(W!==void 0){var Y=W.call(H,F||"default");if(typeof Y!="object")return Y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(F==="string"?String:Number)(H)}var a=Pg,n=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),d=Symbol("ended"),m=Symbol("lastPromise"),M=Symbol("handlePromise"),S=Symbol("stream");function R(H,F){return{value:H,done:F}}function C(H){var F=H[n];if(F!==null){var W=H[S].read();W!==null&&(H[m]=null,H[n]=null,H[u]=null,F(R(W,!1)))}}function P(H){we.nextTick(C,H)}function k(H,F){return function(W,Y){H.then(function(){if(F[d]){W(R(void 0,!0));return}F[M](W,Y)},Y)}}var L=Object.getPrototypeOf(function(){}),I=Object.setPrototypeOf((e={get stream(){return this[S]},next:function(){var F=this,W=this[c];if(W!==null)return Promise.reject(W);if(this[d])return Promise.resolve(R(void 0,!0));if(this[S].destroyed)return new Promise(function(V,oe){we.nextTick(function(){F[c]?oe(F[c]):V(R(void 0,!0))})});var Y=this[m],ie;if(Y)ie=new Promise(k(Y,this));else{var J=this[S].read();if(J!==null)return Promise.resolve(R(J,!1));ie=new Promise(this[M])}return this[m]=ie,ie}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var F=this;return new Promise(function(W,Y){F[S].destroy(null,function(ie){if(ie){Y(ie);return}W(R(void 0,!0))})})}),e),L),B=function(F){var W,Y=Object.create(I,(W={},t(W,S,{value:F,writable:!0}),t(W,n,{value:null,writable:!0}),t(W,u,{value:null,writable:!0}),t(W,c,{value:null,writable:!0}),t(W,d,{value:F._readableState.endEmitted,writable:!0}),t(W,M,{value:function(J,V){var oe=Y[S].read();oe?(Y[m]=null,Y[n]=null,Y[u]=null,J(R(oe,!1))):(Y[n]=J,Y[u]=V)},writable:!0}),W));return Y[m]=null,a(F,function(ie){if(ie&&ie.code!=="ERR_STREAM_PREMATURE_CLOSE"){var J=Y[u];J!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,J(ie)),Y[c]=ie;return}var V=Y[n];V!==null&&(Y[m]=null,Y[n]=null,Y[u]=null,V(R(void 0,!0))),Y[d]=!0}),F.on("readable",P.bind(null,Y)),Y};return g0=B,g0}var m0,aw;function OH(){return aw||(aw=1,m0=function(){throw new Error("Readable.from is not available in the browser")}),m0}var y0,sw;function Px(){if(sw)return y0;sw=1,y0=V;var e;V.ReadableState=J,Or.EventEmitter;var t=function(y,O){return y.listeners(O).length},r=Ex,i=ke.Buffer,a=(typeof Ye<"u"?Ye:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function n(b){return i.from(b)}function u(b){return i.isBuffer(b)||b instanceof a}var c=ei,d;c&&c.debuglog?d=c.debuglog("stream"):d=function(){};var m=pH(),M=Rx,S=Tx,R=S.getHighWaterMark,C=Ia.codes,P=C.ERR_INVALID_ARG_TYPE,k=C.ERR_STREAM_PUSH_AFTER_EOF,L=C.ERR_METHOD_NOT_IMPLEMENTED,I=C.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,B,H,F;Ze(V,r);var W=M.errorOrDestroy,Y=["error","close","destroy","pause","resume"];function ie(b,y,O){if(typeof b.prependListener=="function")return b.prependListener(y,O);!b._events||!b._events[y]?b.on(y,O):Array.isArray(b._events[y])?b._events[y].unshift(O):b._events[y]=[O,b._events[y]]}function J(b,y,O){e=e||Ss(),b=b||{},typeof O!="boolean"&&(O=y instanceof e),this.objectMode=!!b.objectMode,O&&(this.objectMode=this.objectMode||!!b.readableObjectMode),this.highWaterMark=R(this,b,"readableHighWaterMark",O),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=b.emitClose!==!1,this.autoDestroy=!!b.autoDestroy,this.destroyed=!1,this.defaultEncoding=b.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(B||(B=Xr().StringDecoder),this.decoder=new B(b.encoding),this.encoding=b.encoding)}function V(b){if(e=e||Ss(),!(this instanceof V))return new V(b);var y=this instanceof e;this._readableState=new J(b,this,y),this.readable=!0,b&&(typeof b.read=="function"&&(this._read=b.read),typeof b.destroy=="function"&&(this._destroy=b.destroy)),r.call(this)}Object.defineProperty(V.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(y){this._readableState&&(this._readableState.destroyed=y)}}),V.prototype.destroy=M.destroy,V.prototype._undestroy=M.undestroy,V.prototype._destroy=function(b,y){y(b)},V.prototype.push=function(b,y){var O=this._readableState,q;return O.objectMode?q=!0:typeof b=="string"&&(y=y||O.defaultEncoding,y!==O.encoding&&(b=i.from(b,y),y=""),q=!0),oe(this,b,y,!1,q)},V.prototype.unshift=function(b){return oe(this,b,null,!0,!1)};function oe(b,y,O,q,X){d("readableAddChunk",y);var D=b._readableState;if(y===null)D.reading=!1,p(b,D);else{var N;if(X||(N=o(D,y)),N)W(b,N);else if(D.objectMode||y&&y.length>0)if(typeof y!="string"&&!D.objectMode&&Object.getPrototypeOf(y)!==i.prototype&&(y=n(y)),q)D.endEmitted?W(b,new I):_(b,D,y,!0);else if(D.ended)W(b,new k);else{if(D.destroyed)return!1;D.reading=!1,D.decoder&&!O?(y=D.decoder.write(y),D.objectMode||y.length!==0?_(b,D,y,!1):g(b,D)):_(b,D,y,!1)}else q||(D.reading=!1,g(b,D))}return!D.ended&&(D.length<D.highWaterMark||D.length===0)}function _(b,y,O,q){y.flowing&&y.length===0&&!y.sync?(y.awaitDrain=0,b.emit("data",O)):(y.length+=y.objectMode?1:O.length,q?y.buffer.unshift(O):y.buffer.push(O),y.needReadable&&w(b)),g(b,y)}function o(b,y){var O;return!u(y)&&typeof y!="string"&&y!==void 0&&!b.objectMode&&(O=new P("chunk",["string","Buffer","Uint8Array"],y)),O}V.prototype.isPaused=function(){return this._readableState.flowing===!1},V.prototype.setEncoding=function(b){B||(B=Xr().StringDecoder);var y=new B(b);this._readableState.decoder=y,this._readableState.encoding=this._readableState.decoder.encoding;for(var O=this._readableState.buffer.head,q="";O!==null;)q+=y.write(O.data),O=O.next;return this._readableState.buffer.clear(),q!==""&&this._readableState.buffer.push(q),this._readableState.length=q.length,this};var f=1073741824;function l(b){return b>=f?b=f:(b--,b|=b>>>1,b|=b>>>2,b|=b>>>4,b|=b>>>8,b|=b>>>16,b++),b}function h(b,y){return b<=0||y.length===0&&y.ended?0:y.objectMode?1:b!==b?y.flowing&&y.length?y.buffer.head.data.length:y.length:(b>y.highWaterMark&&(y.highWaterMark=l(b)),b<=y.length?b:y.ended?y.length:(y.needReadable=!0,0))}V.prototype.read=function(b){d("read",b),b=parseInt(b,10);var y=this._readableState,O=b;if(b!==0&&(y.emittedReadable=!1),b===0&&y.needReadable&&((y.highWaterMark!==0?y.length>=y.highWaterMark:y.length>0)||y.ended))return d("read: emitReadable",y.length,y.ended),y.length===0&&y.ended?U(this):w(this),null;if(b=h(b,y),b===0&&y.ended)return y.length===0&&U(this),null;var q=y.needReadable;d("need readable",q),(y.length===0||y.length-b<y.highWaterMark)&&(q=!0,d("length less than watermark",q)),y.ended||y.reading?(q=!1,d("reading or ended",q)):q&&(d("do read"),y.reading=!0,y.sync=!0,y.length===0&&(y.needReadable=!0),this._read(y.highWaterMark),y.sync=!1,y.reading||(b=h(O,y)));var X;return b>0?X=E(b,y):X=null,X===null?(y.needReadable=y.length<=y.highWaterMark,b=0):(y.length-=b,y.awaitDrain=0),y.length===0&&(y.ended||(y.needReadable=!0),O!==b&&y.ended&&U(this)),X!==null&&this.emit("data",X),X};function p(b,y){if(d("onEofChunk"),!y.ended){if(y.decoder){var O=y.decoder.end();O&&O.length&&(y.buffer.push(O),y.length+=y.objectMode?1:O.length)}y.ended=!0,y.sync?w(b):(y.needReadable=!1,y.emittedReadable||(y.emittedReadable=!0,x(b)))}}function w(b){var y=b._readableState;d("emitReadable",y.needReadable,y.emittedReadable),y.needReadable=!1,y.emittedReadable||(d("emitReadable",y.flowing),y.emittedReadable=!0,we.nextTick(x,b))}function x(b){var y=b._readableState;d("emitReadable_",y.destroyed,y.length,y.ended),!y.destroyed&&(y.length||y.ended)&&(b.emit("readable"),y.emittedReadable=!1),y.needReadable=!y.flowing&&!y.ended&&y.length<=y.highWaterMark,A(b)}function g(b,y){y.readingMore||(y.readingMore=!0,we.nextTick(s,b,y))}function s(b,y){for(;!y.reading&&!y.ended&&(y.length<y.highWaterMark||y.flowing&&y.length===0);){var O=y.length;if(d("maybeReadMore read 0"),b.read(0),O===y.length)break}y.readingMore=!1}V.prototype._read=function(b){W(this,new L("_read()"))},V.prototype.pipe=function(b,y){var O=this,q=this._readableState;switch(q.pipesCount){case 0:q.pipes=b;break;case 1:q.pipes=[q.pipes,b];break;default:q.pipes.push(b);break}q.pipesCount+=1,d("pipe count=%d opts=%j",q.pipesCount,y);var X=(!y||y.end!==!1)&&b!==we.stdout&&b!==we.stderr,D=X?j:le;q.endEmitted?we.nextTick(D):O.once("end",D),b.on("unpipe",N);function N(ce,pe){d("onunpipe"),ce===O&&pe&&pe.hasUnpiped===!1&&(pe.hasUnpiped=!0,te())}function j(){d("onend"),b.end()}var z=v(O);b.on("drain",z);var se=!1;function te(){d("cleanup"),b.removeListener("close",Q),b.removeListener("finish",ue),b.removeListener("drain",z),b.removeListener("error",Ee),b.removeListener("unpipe",N),O.removeListener("end",j),O.removeListener("end",le),O.removeListener("data",ne),se=!0,q.awaitDrain&&(!b._writableState||b._writableState.needDrain)&&z()}O.on("data",ne);function ne(ce){d("ondata");var pe=b.write(ce);d("dest.write",pe),pe===!1&&((q.pipesCount===1&&q.pipes===b||q.pipesCount>1&&Z(q.pipes,b)!==-1)&&!se&&(d("false write response, pause",q.awaitDrain),q.awaitDrain++),O.pause())}function Ee(ce){d("onerror",ce),le(),b.removeListener("error",Ee),t(b,"error")===0&&W(b,ce)}ie(b,"error",Ee);function Q(){b.removeListener("finish",ue),le()}b.once("close",Q);function ue(){d("onfinish"),b.removeListener("close",Q),le()}b.once("finish",ue);function le(){d("unpipe"),O.unpipe(b)}return b.emit("pipe",O),q.flowing||(d("pipe resume"),O.resume()),b};function v(b){return function(){var O=b._readableState;d("pipeOnDrain",O.awaitDrain),O.awaitDrain&&O.awaitDrain--,O.awaitDrain===0&&t(b,"data")&&(O.flowing=!0,A(b))}}V.prototype.unpipe=function(b){var y=this._readableState,O={hasUnpiped:!1};if(y.pipesCount===0)return this;if(y.pipesCount===1)return b&&b!==y.pipes?this:(b||(b=y.pipes),y.pipes=null,y.pipesCount=0,y.flowing=!1,b&&b.emit("unpipe",this,O),this);if(!b){var q=y.pipes,X=y.pipesCount;y.pipes=null,y.pipesCount=0,y.flowing=!1;for(var D=0;D<X;D++)q[D].emit("unpipe",this,{hasUnpiped:!1});return this}var N=Z(y.pipes,b);return N===-1?this:(y.pipes.splice(N,1),y.pipesCount-=1,y.pipesCount===1&&(y.pipes=y.pipes[0]),b.emit("unpipe",this,O),this)},V.prototype.on=function(b,y){var O=r.prototype.on.call(this,b,y),q=this._readableState;return b==="data"?(q.readableListening=this.listenerCount("readable")>0,q.flowing!==!1&&this.resume()):b==="readable"&&!q.endEmitted&&!q.readableListening&&(q.readableListening=q.needReadable=!0,q.flowing=!1,q.emittedReadable=!1,d("on readable",q.length,q.reading),q.length?w(this):q.reading||we.nextTick($,this)),O},V.prototype.addListener=V.prototype.on,V.prototype.removeListener=function(b,y){var O=r.prototype.removeListener.call(this,b,y);return b==="readable"&&we.nextTick(T,this),O},V.prototype.removeAllListeners=function(b){var y=r.prototype.removeAllListeners.apply(this,arguments);return(b==="readable"||b===void 0)&&we.nextTick(T,this),y};function T(b){var y=b._readableState;y.readableListening=b.listenerCount("readable")>0,y.resumeScheduled&&!y.paused?y.flowing=!0:b.listenerCount("data")>0&&b.resume()}function $(b){d("readable nexttick read 0"),b.read(0)}V.prototype.resume=function(){var b=this._readableState;return b.flowing||(d("resume"),b.flowing=!b.readableListening,G(this,b)),b.paused=!1,this};function G(b,y){y.resumeScheduled||(y.resumeScheduled=!0,we.nextTick(ee,b,y))}function ee(b,y){d("resume",y.reading),y.reading||b.read(0),y.resumeScheduled=!1,b.emit("resume"),A(b),y.flowing&&!y.reading&&b.read(0)}V.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function A(b){var y=b._readableState;for(d("flow",y.flowing);y.flowing&&b.read()!==null;);}V.prototype.wrap=function(b){var y=this,O=this._readableState,q=!1;b.on("end",function(){if(d("wrapped end"),O.decoder&&!O.ended){var N=O.decoder.end();N&&N.length&&y.push(N)}y.push(null)}),b.on("data",function(N){if(d("wrapped data"),O.decoder&&(N=O.decoder.write(N)),!(O.objectMode&&N==null)&&!(!O.objectMode&&(!N||!N.length))){var j=y.push(N);j||(q=!0,b.pause())}});for(var X in b)this[X]===void 0&&typeof b[X]=="function"&&(this[X]=function(j){return function(){return b[j].apply(b,arguments)}}(X));for(var D=0;D<Y.length;D++)b.on(Y[D],this.emit.bind(this,Y[D]));return this._read=function(N){d("wrapped _read",N),q&&(q=!1,b.resume())},this},typeof Symbol=="function"&&(V.prototype[Symbol.asyncIterator]=function(){return H===void 0&&(H=TH()),H(this)}),Object.defineProperty(V.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(V.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(V.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(y){this._readableState&&(this._readableState.flowing=y)}}),V._fromList=E,Object.defineProperty(V.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function E(b,y){if(y.length===0)return null;var O;return y.objectMode?O=y.buffer.shift():!b||b>=y.length?(y.decoder?O=y.buffer.join(""):y.buffer.length===1?O=y.buffer.first():O=y.buffer.concat(y.length),y.buffer.clear()):O=y.buffer.consume(b,y.decoder),O}function U(b){var y=b._readableState;d("endReadable",y.endEmitted),y.endEmitted||(y.ended=!0,we.nextTick(K,y,b))}function K(b,y){if(d("endReadableNT",b.endEmitted,b.length),!b.endEmitted&&b.length===0&&(b.endEmitted=!0,y.readable=!1,y.emit("end"),b.autoDestroy)){var O=y._writableState;(!O||O.autoDestroy&&O.finished)&&y.destroy()}}typeof Symbol=="function"&&(V.from=function(b,y){return F===void 0&&(F=OH()),F(V,b,y)});function Z(b,y){for(var O=0,q=b.length;O<q;O++)if(b[O]===y)return O;return-1}return y0}var Cx=Un,uc=Ia.codes,IH=uc.ERR_METHOD_NOT_IMPLEMENTED,PH=uc.ERR_MULTIPLE_CALLBACK,CH=uc.ERR_TRANSFORM_ALREADY_TRANSFORMING,BH=uc.ERR_TRANSFORM_WITH_LENGTH_0,lc=Ss();Ze(Un,lc);function LH(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new PH);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function Un(e){if(!(this instanceof Un))return new Un(e);lc.call(this,e),this._transformState={afterTransform:LH.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",NH)}function NH(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){fw(e,t,r)}):fw(this,null,null)}Un.prototype.push=function(e,t){return this._transformState.needTransform=!1,lc.prototype.push.call(this,e,t)};Un.prototype._transform=function(e,t,r){r(new IH("_transform()"))};Un.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};Un.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Un.prototype._destroy=function(e,t){lc.prototype._destroy.call(this,e,function(r){t(r)})};function fw(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new BH;if(e._transformState.transforming)throw new CH;return e.push(null)}var kH=su,Bx=Cx;Ze(su,Bx);function su(e){if(!(this instanceof su))return new su(e);Bx.call(this,e)}su.prototype._transform=function(e,t,r){r(null,e)};var b0;function $H(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Lx=Ia.codes,DH=Lx.ERR_MISSING_ARGS,FH=Lx.ERR_STREAM_DESTROYED;function uw(e){if(e)throw e}function jH(e){return e.setHeader&&typeof e.abort=="function"}function UH(e,t,r,i){i=$H(i);var a=!1;e.on("close",function(){a=!0}),b0===void 0&&(b0=Pg),b0(e,{readable:t,writable:r},function(u){if(u)return i(u);a=!0,i()});var n=!1;return function(u){if(!a&&!n){if(n=!0,jH(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(u||new FH("pipe"))}}}function lw(e){e()}function HH(e,t){return e.pipe(t)}function qH(e){return!e.length||typeof e[e.length-1]!="function"?uw:e.pop()}function WH(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=qH(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new DH("streams");var a,n=t.map(function(u,c){var d=c<t.length-1,m=c>0;return UH(u,d,m,function(M){a||(a=M),M&&n.forEach(lw),!d&&(n.forEach(lw),i(a))})});return t.reduce(HH)}var KH=WH;(function(e,t){t=e.exports=Px(),t.Stream=t,t.Readable=t,t.Writable=Ox(),t.Duplex=Ss(),t.Transform=Cx,t.PassThrough=kH,t.finished=Pg,t.pipeline=KH})(Vp,Vp.exports);var VH=Vp.exports,gf={exports:{}},Cg={exports:{}};Cg.exports;(function(e){(function(t,r){function i(f,l){if(!f)throw new Error(l||"Assertion failed")}function a(f,l){f.super_=l;var h=function(){};h.prototype=l.prototype,f.prototype=new h,f.prototype.constructor=f}function n(f,l,h){if(n.isBN(f))return f;this.negative=0,this.words=null,this.length=0,this.red=null,f!==null&&((l==="le"||l==="be")&&(h=l,l=10),this._init(f||0,l||10,h||"be"))}typeof t=="object"?t.exports=n:r.BN=n,n.BN=n,n.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=ke.Buffer}catch{}n.isBN=function(l){return l instanceof n?!0:l!==null&&typeof l=="object"&&l.constructor.wordSize===n.wordSize&&Array.isArray(l.words)},n.max=function(l,h){return l.cmp(h)>0?l:h},n.min=function(l,h){return l.cmp(h)<0?l:h},n.prototype._init=function(l,h,p){if(typeof l=="number")return this._initNumber(l,h,p);if(typeof l=="object")return this._initArray(l,h,p);h==="hex"&&(h=16),i(h===(h|0)&&h>=2&&h<=36),l=l.toString().replace(/\s+/g,"");var w=0;l[0]==="-"&&(w++,this.negative=1),w<l.length&&(h===16?this._parseHex(l,w,p):(this._parseBase(l,h,w),p==="le"&&this._initArray(this.toArray(),h,p)))},n.prototype._initNumber=function(l,h,p){l<0&&(this.negative=1,l=-l),l<67108864?(this.words=[l&67108863],this.length=1):l<4503599627370496?(this.words=[l&67108863,l/67108864&67108863],this.length=2):(i(l<9007199254740992),this.words=[l&67108863,l/67108864&67108863,1],this.length=3),p==="le"&&this._initArray(this.toArray(),h,p)},n.prototype._initArray=function(l,h,p){if(i(typeof l.length=="number"),l.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(l.length/3),this.words=new Array(this.length);for(var w=0;w<this.length;w++)this.words[w]=0;var x,g,s=0;if(p==="be")for(w=l.length-1,x=0;w>=0;w-=3)g=l[w]|l[w-1]<<8|l[w-2]<<16,this.words[x]|=g<<s&67108863,this.words[x+1]=g>>>26-s&67108863,s+=24,s>=26&&(s-=26,x++);else if(p==="le")for(w=0,x=0;w<l.length;w+=3)g=l[w]|l[w+1]<<8|l[w+2]<<16,this.words[x]|=g<<s&67108863,this.words[x+1]=g>>>26-s&67108863,s+=24,s>=26&&(s-=26,x++);return this._strip()};function c(f,l){var h=f.charCodeAt(l);if(h>=48&&h<=57)return h-48;if(h>=65&&h<=70)return h-55;if(h>=97&&h<=102)return h-87;i(!1,"Invalid character in "+f)}function d(f,l,h){var p=c(f,h);return h-1>=l&&(p|=c(f,h-1)<<4),p}n.prototype._parseHex=function(l,h,p){this.length=Math.ceil((l.length-h)/6),this.words=new Array(this.length);for(var w=0;w<this.length;w++)this.words[w]=0;var x=0,g=0,s;if(p==="be")for(w=l.length-1;w>=h;w-=2)s=d(l,h,w)<<x,this.words[g]|=s&67108863,x>=18?(x-=18,g+=1,this.words[g]|=s>>>26):x+=8;else{var v=l.length-h;for(w=v%2===0?h+1:h;w<l.length;w+=2)s=d(l,h,w)<<x,this.words[g]|=s&67108863,x>=18?(x-=18,g+=1,this.words[g]|=s>>>26):x+=8}this._strip()};function m(f,l,h,p){for(var w=0,x=0,g=Math.min(f.length,h),s=l;s<g;s++){var v=f.charCodeAt(s)-48;w*=p,v>=49?x=v-49+10:v>=17?x=v-17+10:x=v,i(v>=0&&x<p,"Invalid character"),w+=x}return w}n.prototype._parseBase=function(l,h,p){this.words=[0],this.length=1;for(var w=0,x=1;x<=67108863;x*=h)w++;w--,x=x/h|0;for(var g=l.length-p,s=g%w,v=Math.min(g,g-s)+p,T=0,$=p;$<v;$+=w)T=m(l,$,$+w,h),this.imuln(x),this.words[0]+T<67108864?this.words[0]+=T:this._iaddn(T);if(s!==0){var G=1;for(T=m(l,$,l.length,h),$=0;$<s;$++)G*=h;this.imuln(G),this.words[0]+T<67108864?this.words[0]+=T:this._iaddn(T)}this._strip()},n.prototype.copy=function(l){l.words=new Array(this.length);for(var h=0;h<this.length;h++)l.words[h]=this.words[h];l.length=this.length,l.negative=this.negative,l.red=this.red};function M(f,l){f.words=l.words,f.length=l.length,f.negative=l.negative,f.red=l.red}if(n.prototype._move=function(l){M(l,this)},n.prototype.clone=function(){var l=new n(null);return this.copy(l),l},n.prototype._expand=function(l){for(;this.length<l;)this.words[this.length++]=0;return this},n.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{n.prototype[Symbol.for("nodejs.util.inspect.custom")]=S}catch{n.prototype.inspect=S}else n.prototype.inspect=S;function S(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var R=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],C=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],P=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(l,h){l=l||10,h=h|0||1;var p;if(l===16||l==="hex"){p="";for(var w=0,x=0,g=0;g<this.length;g++){var s=this.words[g],v=((s<<w|x)&16777215).toString(16);x=s>>>24-w&16777215,w+=2,w>=26&&(w-=26,g--),x!==0||g!==this.length-1?p=R[6-v.length]+v+p:p=v+p}for(x!==0&&(p=x.toString(16)+p);p.length%h!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}if(l===(l|0)&&l>=2&&l<=36){var T=C[l],$=P[l];p="";var G=this.clone();for(G.negative=0;!G.isZero();){var ee=G.modrn($).toString(l);G=G.idivn($),G.isZero()?p=ee+p:p=R[T-ee.length]+ee+p}for(this.isZero()&&(p="0"+p);p.length%h!==0;)p="0"+p;return this.negative!==0&&(p="-"+p),p}i(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var l=this.words[0];return this.length===2?l+=this.words[1]*67108864:this.length===3&&this.words[2]===1?l+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-l:l},n.prototype.toJSON=function(){return this.toString(16,2)},u&&(n.prototype.toBuffer=function(l,h){return this.toArrayLike(u,l,h)}),n.prototype.toArray=function(l,h){return this.toArrayLike(Array,l,h)};var k=function(l,h){return l.allocUnsafe?l.allocUnsafe(h):new l(h)};n.prototype.toArrayLike=function(l,h,p){this._strip();var w=this.byteLength(),x=p||Math.max(1,w);i(w<=x,"byte array longer than desired length"),i(x>0,"Requested array length <= 0");var g=k(l,x),s=h==="le"?"LE":"BE";return this["_toArrayLike"+s](g,w),g},n.prototype._toArrayLikeLE=function(l,h){for(var p=0,w=0,x=0,g=0;x<this.length;x++){var s=this.words[x]<<g|w;l[p++]=s&255,p<l.length&&(l[p++]=s>>8&255),p<l.length&&(l[p++]=s>>16&255),g===6?(p<l.length&&(l[p++]=s>>24&255),w=0,g=0):(w=s>>>24,g+=2)}if(p<l.length)for(l[p++]=w;p<l.length;)l[p++]=0},n.prototype._toArrayLikeBE=function(l,h){for(var p=l.length-1,w=0,x=0,g=0;x<this.length;x++){var s=this.words[x]<<g|w;l[p--]=s&255,p>=0&&(l[p--]=s>>8&255),p>=0&&(l[p--]=s>>16&255),g===6?(p>=0&&(l[p--]=s>>24&255),w=0,g=0):(w=s>>>24,g+=2)}if(p>=0)for(l[p--]=w;p>=0;)l[p--]=0},Math.clz32?n.prototype._countBits=function(l){return 32-Math.clz32(l)}:n.prototype._countBits=function(l){var h=l,p=0;return h>=4096&&(p+=13,h>>>=13),h>=64&&(p+=7,h>>>=7),h>=8&&(p+=4,h>>>=4),h>=2&&(p+=2,h>>>=2),p+h},n.prototype._zeroBits=function(l){if(l===0)return 26;var h=l,p=0;return h&8191||(p+=13,h>>>=13),h&127||(p+=7,h>>>=7),h&15||(p+=4,h>>>=4),h&3||(p+=2,h>>>=2),h&1||p++,p},n.prototype.bitLength=function(){var l=this.words[this.length-1],h=this._countBits(l);return(this.length-1)*26+h};function L(f){for(var l=new Array(f.bitLength()),h=0;h<l.length;h++){var p=h/26|0,w=h%26;l[h]=f.words[p]>>>w&1}return l}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var l=0,h=0;h<this.length;h++){var p=this._zeroBits(this.words[h]);if(l+=p,p!==26)break}return l},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(l){return this.negative!==0?this.abs().inotn(l).iaddn(1):this.clone()},n.prototype.fromTwos=function(l){return this.testn(l-1)?this.notn(l).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(l){for(;this.length<l.length;)this.words[this.length++]=0;for(var h=0;h<l.length;h++)this.words[h]=this.words[h]|l.words[h];return this._strip()},n.prototype.ior=function(l){return i((this.negative|l.negative)===0),this.iuor(l)},n.prototype.or=function(l){return this.length>l.length?this.clone().ior(l):l.clone().ior(this)},n.prototype.uor=function(l){return this.length>l.length?this.clone().iuor(l):l.clone().iuor(this)},n.prototype.iuand=function(l){var h;this.length>l.length?h=l:h=this;for(var p=0;p<h.length;p++)this.words[p]=this.words[p]&l.words[p];return this.length=h.length,this._strip()},n.prototype.iand=function(l){return i((this.negative|l.negative)===0),this.iuand(l)},n.prototype.and=function(l){return this.length>l.length?this.clone().iand(l):l.clone().iand(this)},n.prototype.uand=function(l){return this.length>l.length?this.clone().iuand(l):l.clone().iuand(this)},n.prototype.iuxor=function(l){var h,p;this.length>l.length?(h=this,p=l):(h=l,p=this);for(var w=0;w<p.length;w++)this.words[w]=h.words[w]^p.words[w];if(this!==h)for(;w<h.length;w++)this.words[w]=h.words[w];return this.length=h.length,this._strip()},n.prototype.ixor=function(l){return i((this.negative|l.negative)===0),this.iuxor(l)},n.prototype.xor=function(l){return this.length>l.length?this.clone().ixor(l):l.clone().ixor(this)},n.prototype.uxor=function(l){return this.length>l.length?this.clone().iuxor(l):l.clone().iuxor(this)},n.prototype.inotn=function(l){i(typeof l=="number"&&l>=0);var h=Math.ceil(l/26)|0,p=l%26;this._expand(h),p>0&&h--;for(var w=0;w<h;w++)this.words[w]=~this.words[w]&67108863;return p>0&&(this.words[w]=~this.words[w]&67108863>>26-p),this._strip()},n.prototype.notn=function(l){return this.clone().inotn(l)},n.prototype.setn=function(l,h){i(typeof l=="number"&&l>=0);var p=l/26|0,w=l%26;return this._expand(p+1),h?this.words[p]=this.words[p]|1<<w:this.words[p]=this.words[p]&~(1<<w),this._strip()},n.prototype.iadd=function(l){var h;if(this.negative!==0&&l.negative===0)return this.negative=0,h=this.isub(l),this.negative^=1,this._normSign();if(this.negative===0&&l.negative!==0)return l.negative=0,h=this.isub(l),l.negative=1,h._normSign();var p,w;this.length>l.length?(p=this,w=l):(p=l,w=this);for(var x=0,g=0;g<w.length;g++)h=(p.words[g]|0)+(w.words[g]|0)+x,this.words[g]=h&67108863,x=h>>>26;for(;x!==0&&g<p.length;g++)h=(p.words[g]|0)+x,this.words[g]=h&67108863,x=h>>>26;if(this.length=p.length,x!==0)this.words[this.length]=x,this.length++;else if(p!==this)for(;g<p.length;g++)this.words[g]=p.words[g];return this},n.prototype.add=function(l){var h;return l.negative!==0&&this.negative===0?(l.negative=0,h=this.sub(l),l.negative^=1,h):l.negative===0&&this.negative!==0?(this.negative=0,h=l.sub(this),this.negative=1,h):this.length>l.length?this.clone().iadd(l):l.clone().iadd(this)},n.prototype.isub=function(l){if(l.negative!==0){l.negative=0;var h=this.iadd(l);return l.negative=1,h._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(l),this.negative=1,this._normSign();var p=this.cmp(l);if(p===0)return this.negative=0,this.length=1,this.words[0]=0,this;var w,x;p>0?(w=this,x=l):(w=l,x=this);for(var g=0,s=0;s<x.length;s++)h=(w.words[s]|0)-(x.words[s]|0)+g,g=h>>26,this.words[s]=h&67108863;for(;g!==0&&s<w.length;s++)h=(w.words[s]|0)+g,g=h>>26,this.words[s]=h&67108863;if(g===0&&s<w.length&&w!==this)for(;s<w.length;s++)this.words[s]=w.words[s];return this.length=Math.max(this.length,s),w!==this&&(this.negative=1),this._strip()},n.prototype.sub=function(l){return this.clone().isub(l)};function I(f,l,h){h.negative=l.negative^f.negative;var p=f.length+l.length|0;h.length=p,p=p-1|0;var w=f.words[0]|0,x=l.words[0]|0,g=w*x,s=g&67108863,v=g/67108864|0;h.words[0]=s;for(var T=1;T<p;T++){for(var $=v>>>26,G=v&67108863,ee=Math.min(T,l.length-1),A=Math.max(0,T-f.length+1);A<=ee;A++){var E=T-A|0;w=f.words[E]|0,x=l.words[A]|0,g=w*x+G,$+=g/67108864|0,G=g&67108863}h.words[T]=G|0,v=$|0}return v!==0?h.words[T]=v|0:h.length--,h._strip()}var B=function(l,h,p){var w=l.words,x=h.words,g=p.words,s=0,v,T,$,G=w[0]|0,ee=G&8191,A=G>>>13,E=w[1]|0,U=E&8191,K=E>>>13,Z=w[2]|0,b=Z&8191,y=Z>>>13,O=w[3]|0,q=O&8191,X=O>>>13,D=w[4]|0,N=D&8191,j=D>>>13,z=w[5]|0,se=z&8191,te=z>>>13,ne=w[6]|0,Ee=ne&8191,Q=ne>>>13,ue=w[7]|0,le=ue&8191,ce=ue>>>13,pe=w[8]|0,de=pe&8191,ae=pe>>>13,fe=w[9]|0,Te=fe&8191,ve=fe>>>13,Me=x[0]|0,Ke=Me&8191,be=Me>>>13,Se=x[1]|0,qe=Se&8191,ye=Se>>>13,_e=x[2]|0,Ve=_e&8191,ge=_e>>>13,xe=x[3]|0,Xe=xe&8191,Re=xe>>>13,Le=x[4]|0,at=Le&8191,Ae=Le>>>13,Ne=x[5]|0,rt=Ne&8191,Oe=Ne>>>13,De=x[6]|0,nt=De&8191,Ie=De>>>13,$e=x[7]|0,st=$e&8191,Pe=$e>>>13,je=x[8]|0,ht=je&8191,Ce=je>>>13,Fe=x[9]|0,it=Fe&8191,et=Fe>>>13;p.negative=l.negative^h.negative,p.length=19,v=Math.imul(ee,Ke),T=Math.imul(ee,be),T=T+Math.imul(A,Ke)|0,$=Math.imul(A,be);var xt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(xt>>>26)|0,xt&=67108863,v=Math.imul(U,Ke),T=Math.imul(U,be),T=T+Math.imul(K,Ke)|0,$=Math.imul(K,be),v=v+Math.imul(ee,qe)|0,T=T+Math.imul(ee,ye)|0,T=T+Math.imul(A,qe)|0,$=$+Math.imul(A,ye)|0;var Tt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,v=Math.imul(b,Ke),T=Math.imul(b,be),T=T+Math.imul(y,Ke)|0,$=Math.imul(y,be),v=v+Math.imul(U,qe)|0,T=T+Math.imul(U,ye)|0,T=T+Math.imul(K,qe)|0,$=$+Math.imul(K,ye)|0,v=v+Math.imul(ee,Ve)|0,T=T+Math.imul(ee,ge)|0,T=T+Math.imul(A,Ve)|0,$=$+Math.imul(A,ge)|0;var Ot=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,v=Math.imul(q,Ke),T=Math.imul(q,be),T=T+Math.imul(X,Ke)|0,$=Math.imul(X,be),v=v+Math.imul(b,qe)|0,T=T+Math.imul(b,ye)|0,T=T+Math.imul(y,qe)|0,$=$+Math.imul(y,ye)|0,v=v+Math.imul(U,Ve)|0,T=T+Math.imul(U,ge)|0,T=T+Math.imul(K,Ve)|0,$=$+Math.imul(K,ge)|0,v=v+Math.imul(ee,Xe)|0,T=T+Math.imul(ee,Re)|0,T=T+Math.imul(A,Xe)|0,$=$+Math.imul(A,Re)|0;var Ct=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,v=Math.imul(N,Ke),T=Math.imul(N,be),T=T+Math.imul(j,Ke)|0,$=Math.imul(j,be),v=v+Math.imul(q,qe)|0,T=T+Math.imul(q,ye)|0,T=T+Math.imul(X,qe)|0,$=$+Math.imul(X,ye)|0,v=v+Math.imul(b,Ve)|0,T=T+Math.imul(b,ge)|0,T=T+Math.imul(y,Ve)|0,$=$+Math.imul(y,ge)|0,v=v+Math.imul(U,Xe)|0,T=T+Math.imul(U,Re)|0,T=T+Math.imul(K,Xe)|0,$=$+Math.imul(K,Re)|0,v=v+Math.imul(ee,at)|0,T=T+Math.imul(ee,Ae)|0,T=T+Math.imul(A,at)|0,$=$+Math.imul(A,Ae)|0;var kt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(kt>>>26)|0,kt&=67108863,v=Math.imul(se,Ke),T=Math.imul(se,be),T=T+Math.imul(te,Ke)|0,$=Math.imul(te,be),v=v+Math.imul(N,qe)|0,T=T+Math.imul(N,ye)|0,T=T+Math.imul(j,qe)|0,$=$+Math.imul(j,ye)|0,v=v+Math.imul(q,Ve)|0,T=T+Math.imul(q,ge)|0,T=T+Math.imul(X,Ve)|0,$=$+Math.imul(X,ge)|0,v=v+Math.imul(b,Xe)|0,T=T+Math.imul(b,Re)|0,T=T+Math.imul(y,Xe)|0,$=$+Math.imul(y,Re)|0,v=v+Math.imul(U,at)|0,T=T+Math.imul(U,Ae)|0,T=T+Math.imul(K,at)|0,$=$+Math.imul(K,Ae)|0,v=v+Math.imul(ee,rt)|0,T=T+Math.imul(ee,Oe)|0,T=T+Math.imul(A,rt)|0,$=$+Math.imul(A,Oe)|0;var Ut=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,v=Math.imul(Ee,Ke),T=Math.imul(Ee,be),T=T+Math.imul(Q,Ke)|0,$=Math.imul(Q,be),v=v+Math.imul(se,qe)|0,T=T+Math.imul(se,ye)|0,T=T+Math.imul(te,qe)|0,$=$+Math.imul(te,ye)|0,v=v+Math.imul(N,Ve)|0,T=T+Math.imul(N,ge)|0,T=T+Math.imul(j,Ve)|0,$=$+Math.imul(j,ge)|0,v=v+Math.imul(q,Xe)|0,T=T+Math.imul(q,Re)|0,T=T+Math.imul(X,Xe)|0,$=$+Math.imul(X,Re)|0,v=v+Math.imul(b,at)|0,T=T+Math.imul(b,Ae)|0,T=T+Math.imul(y,at)|0,$=$+Math.imul(y,Ae)|0,v=v+Math.imul(U,rt)|0,T=T+Math.imul(U,Oe)|0,T=T+Math.imul(K,rt)|0,$=$+Math.imul(K,Oe)|0,v=v+Math.imul(ee,nt)|0,T=T+Math.imul(ee,Ie)|0,T=T+Math.imul(A,nt)|0,$=$+Math.imul(A,Ie)|0;var Ht=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,v=Math.imul(le,Ke),T=Math.imul(le,be),T=T+Math.imul(ce,Ke)|0,$=Math.imul(ce,be),v=v+Math.imul(Ee,qe)|0,T=T+Math.imul(Ee,ye)|0,T=T+Math.imul(Q,qe)|0,$=$+Math.imul(Q,ye)|0,v=v+Math.imul(se,Ve)|0,T=T+Math.imul(se,ge)|0,T=T+Math.imul(te,Ve)|0,$=$+Math.imul(te,ge)|0,v=v+Math.imul(N,Xe)|0,T=T+Math.imul(N,Re)|0,T=T+Math.imul(j,Xe)|0,$=$+Math.imul(j,Re)|0,v=v+Math.imul(q,at)|0,T=T+Math.imul(q,Ae)|0,T=T+Math.imul(X,at)|0,$=$+Math.imul(X,Ae)|0,v=v+Math.imul(b,rt)|0,T=T+Math.imul(b,Oe)|0,T=T+Math.imul(y,rt)|0,$=$+Math.imul(y,Oe)|0,v=v+Math.imul(U,nt)|0,T=T+Math.imul(U,Ie)|0,T=T+Math.imul(K,nt)|0,$=$+Math.imul(K,Ie)|0,v=v+Math.imul(ee,st)|0,T=T+Math.imul(ee,Pe)|0,T=T+Math.imul(A,st)|0,$=$+Math.imul(A,Pe)|0;var Bt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,v=Math.imul(de,Ke),T=Math.imul(de,be),T=T+Math.imul(ae,Ke)|0,$=Math.imul(ae,be),v=v+Math.imul(le,qe)|0,T=T+Math.imul(le,ye)|0,T=T+Math.imul(ce,qe)|0,$=$+Math.imul(ce,ye)|0,v=v+Math.imul(Ee,Ve)|0,T=T+Math.imul(Ee,ge)|0,T=T+Math.imul(Q,Ve)|0,$=$+Math.imul(Q,ge)|0,v=v+Math.imul(se,Xe)|0,T=T+Math.imul(se,Re)|0,T=T+Math.imul(te,Xe)|0,$=$+Math.imul(te,Re)|0,v=v+Math.imul(N,at)|0,T=T+Math.imul(N,Ae)|0,T=T+Math.imul(j,at)|0,$=$+Math.imul(j,Ae)|0,v=v+Math.imul(q,rt)|0,T=T+Math.imul(q,Oe)|0,T=T+Math.imul(X,rt)|0,$=$+Math.imul(X,Oe)|0,v=v+Math.imul(b,nt)|0,T=T+Math.imul(b,Ie)|0,T=T+Math.imul(y,nt)|0,$=$+Math.imul(y,Ie)|0,v=v+Math.imul(U,st)|0,T=T+Math.imul(U,Pe)|0,T=T+Math.imul(K,st)|0,$=$+Math.imul(K,Pe)|0,v=v+Math.imul(ee,ht)|0,T=T+Math.imul(ee,Ce)|0,T=T+Math.imul(A,ht)|0,$=$+Math.imul(A,Ce)|0;var dt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(dt>>>26)|0,dt&=67108863,v=Math.imul(Te,Ke),T=Math.imul(Te,be),T=T+Math.imul(ve,Ke)|0,$=Math.imul(ve,be),v=v+Math.imul(de,qe)|0,T=T+Math.imul(de,ye)|0,T=T+Math.imul(ae,qe)|0,$=$+Math.imul(ae,ye)|0,v=v+Math.imul(le,Ve)|0,T=T+Math.imul(le,ge)|0,T=T+Math.imul(ce,Ve)|0,$=$+Math.imul(ce,ge)|0,v=v+Math.imul(Ee,Xe)|0,T=T+Math.imul(Ee,Re)|0,T=T+Math.imul(Q,Xe)|0,$=$+Math.imul(Q,Re)|0,v=v+Math.imul(se,at)|0,T=T+Math.imul(se,Ae)|0,T=T+Math.imul(te,at)|0,$=$+Math.imul(te,Ae)|0,v=v+Math.imul(N,rt)|0,T=T+Math.imul(N,Oe)|0,T=T+Math.imul(j,rt)|0,$=$+Math.imul(j,Oe)|0,v=v+Math.imul(q,nt)|0,T=T+Math.imul(q,Ie)|0,T=T+Math.imul(X,nt)|0,$=$+Math.imul(X,Ie)|0,v=v+Math.imul(b,st)|0,T=T+Math.imul(b,Pe)|0,T=T+Math.imul(y,st)|0,$=$+Math.imul(y,Pe)|0,v=v+Math.imul(U,ht)|0,T=T+Math.imul(U,Ce)|0,T=T+Math.imul(K,ht)|0,$=$+Math.imul(K,Ce)|0,v=v+Math.imul(ee,it)|0,T=T+Math.imul(ee,et)|0,T=T+Math.imul(A,it)|0,$=$+Math.imul(A,et)|0;var At=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(At>>>26)|0,At&=67108863,v=Math.imul(Te,qe),T=Math.imul(Te,ye),T=T+Math.imul(ve,qe)|0,$=Math.imul(ve,ye),v=v+Math.imul(de,Ve)|0,T=T+Math.imul(de,ge)|0,T=T+Math.imul(ae,Ve)|0,$=$+Math.imul(ae,ge)|0,v=v+Math.imul(le,Xe)|0,T=T+Math.imul(le,Re)|0,T=T+Math.imul(ce,Xe)|0,$=$+Math.imul(ce,Re)|0,v=v+Math.imul(Ee,at)|0,T=T+Math.imul(Ee,Ae)|0,T=T+Math.imul(Q,at)|0,$=$+Math.imul(Q,Ae)|0,v=v+Math.imul(se,rt)|0,T=T+Math.imul(se,Oe)|0,T=T+Math.imul(te,rt)|0,$=$+Math.imul(te,Oe)|0,v=v+Math.imul(N,nt)|0,T=T+Math.imul(N,Ie)|0,T=T+Math.imul(j,nt)|0,$=$+Math.imul(j,Ie)|0,v=v+Math.imul(q,st)|0,T=T+Math.imul(q,Pe)|0,T=T+Math.imul(X,st)|0,$=$+Math.imul(X,Pe)|0,v=v+Math.imul(b,ht)|0,T=T+Math.imul(b,Ce)|0,T=T+Math.imul(y,ht)|0,$=$+Math.imul(y,Ce)|0,v=v+Math.imul(U,it)|0,T=T+Math.imul(U,et)|0,T=T+Math.imul(K,it)|0,$=$+Math.imul(K,et)|0;var _t=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(_t>>>26)|0,_t&=67108863,v=Math.imul(Te,Ve),T=Math.imul(Te,ge),T=T+Math.imul(ve,Ve)|0,$=Math.imul(ve,ge),v=v+Math.imul(de,Xe)|0,T=T+Math.imul(de,Re)|0,T=T+Math.imul(ae,Xe)|0,$=$+Math.imul(ae,Re)|0,v=v+Math.imul(le,at)|0,T=T+Math.imul(le,Ae)|0,T=T+Math.imul(ce,at)|0,$=$+Math.imul(ce,Ae)|0,v=v+Math.imul(Ee,rt)|0,T=T+Math.imul(Ee,Oe)|0,T=T+Math.imul(Q,rt)|0,$=$+Math.imul(Q,Oe)|0,v=v+Math.imul(se,nt)|0,T=T+Math.imul(se,Ie)|0,T=T+Math.imul(te,nt)|0,$=$+Math.imul(te,Ie)|0,v=v+Math.imul(N,st)|0,T=T+Math.imul(N,Pe)|0,T=T+Math.imul(j,st)|0,$=$+Math.imul(j,Pe)|0,v=v+Math.imul(q,ht)|0,T=T+Math.imul(q,Ce)|0,T=T+Math.imul(X,ht)|0,$=$+Math.imul(X,Ce)|0,v=v+Math.imul(b,it)|0,T=T+Math.imul(b,et)|0,T=T+Math.imul(y,it)|0,$=$+Math.imul(y,et)|0;var mt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(mt>>>26)|0,mt&=67108863,v=Math.imul(Te,Xe),T=Math.imul(Te,Re),T=T+Math.imul(ve,Xe)|0,$=Math.imul(ve,Re),v=v+Math.imul(de,at)|0,T=T+Math.imul(de,Ae)|0,T=T+Math.imul(ae,at)|0,$=$+Math.imul(ae,Ae)|0,v=v+Math.imul(le,rt)|0,T=T+Math.imul(le,Oe)|0,T=T+Math.imul(ce,rt)|0,$=$+Math.imul(ce,Oe)|0,v=v+Math.imul(Ee,nt)|0,T=T+Math.imul(Ee,Ie)|0,T=T+Math.imul(Q,nt)|0,$=$+Math.imul(Q,Ie)|0,v=v+Math.imul(se,st)|0,T=T+Math.imul(se,Pe)|0,T=T+Math.imul(te,st)|0,$=$+Math.imul(te,Pe)|0,v=v+Math.imul(N,ht)|0,T=T+Math.imul(N,Ce)|0,T=T+Math.imul(j,ht)|0,$=$+Math.imul(j,Ce)|0,v=v+Math.imul(q,it)|0,T=T+Math.imul(q,et)|0,T=T+Math.imul(X,it)|0,$=$+Math.imul(X,et)|0;var It=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(It>>>26)|0,It&=67108863,v=Math.imul(Te,at),T=Math.imul(Te,Ae),T=T+Math.imul(ve,at)|0,$=Math.imul(ve,Ae),v=v+Math.imul(de,rt)|0,T=T+Math.imul(de,Oe)|0,T=T+Math.imul(ae,rt)|0,$=$+Math.imul(ae,Oe)|0,v=v+Math.imul(le,nt)|0,T=T+Math.imul(le,Ie)|0,T=T+Math.imul(ce,nt)|0,$=$+Math.imul(ce,Ie)|0,v=v+Math.imul(Ee,st)|0,T=T+Math.imul(Ee,Pe)|0,T=T+Math.imul(Q,st)|0,$=$+Math.imul(Q,Pe)|0,v=v+Math.imul(se,ht)|0,T=T+Math.imul(se,Ce)|0,T=T+Math.imul(te,ht)|0,$=$+Math.imul(te,Ce)|0,v=v+Math.imul(N,it)|0,T=T+Math.imul(N,et)|0,T=T+Math.imul(j,it)|0,$=$+Math.imul(j,et)|0;var vt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(vt>>>26)|0,vt&=67108863,v=Math.imul(Te,rt),T=Math.imul(Te,Oe),T=T+Math.imul(ve,rt)|0,$=Math.imul(ve,Oe),v=v+Math.imul(de,nt)|0,T=T+Math.imul(de,Ie)|0,T=T+Math.imul(ae,nt)|0,$=$+Math.imul(ae,Ie)|0,v=v+Math.imul(le,st)|0,T=T+Math.imul(le,Pe)|0,T=T+Math.imul(ce,st)|0,$=$+Math.imul(ce,Pe)|0,v=v+Math.imul(Ee,ht)|0,T=T+Math.imul(Ee,Ce)|0,T=T+Math.imul(Q,ht)|0,$=$+Math.imul(Q,Ce)|0,v=v+Math.imul(se,it)|0,T=T+Math.imul(se,et)|0,T=T+Math.imul(te,it)|0,$=$+Math.imul(te,et)|0;var yt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(yt>>>26)|0,yt&=67108863,v=Math.imul(Te,nt),T=Math.imul(Te,Ie),T=T+Math.imul(ve,nt)|0,$=Math.imul(ve,Ie),v=v+Math.imul(de,st)|0,T=T+Math.imul(de,Pe)|0,T=T+Math.imul(ae,st)|0,$=$+Math.imul(ae,Pe)|0,v=v+Math.imul(le,ht)|0,T=T+Math.imul(le,Ce)|0,T=T+Math.imul(ce,ht)|0,$=$+Math.imul(ce,Ce)|0,v=v+Math.imul(Ee,it)|0,T=T+Math.imul(Ee,et)|0,T=T+Math.imul(Q,it)|0,$=$+Math.imul(Q,et)|0;var Dt=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,v=Math.imul(Te,st),T=Math.imul(Te,Pe),T=T+Math.imul(ve,st)|0,$=Math.imul(ve,Pe),v=v+Math.imul(de,ht)|0,T=T+Math.imul(de,Ce)|0,T=T+Math.imul(ae,ht)|0,$=$+Math.imul(ae,Ce)|0,v=v+Math.imul(le,it)|0,T=T+Math.imul(le,et)|0,T=T+Math.imul(ce,it)|0,$=$+Math.imul(ce,et)|0;var Ft=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,v=Math.imul(Te,ht),T=Math.imul(Te,Ce),T=T+Math.imul(ve,ht)|0,$=Math.imul(ve,Ce),v=v+Math.imul(de,it)|0,T=T+Math.imul(de,et)|0,T=T+Math.imul(ae,it)|0,$=$+Math.imul(ae,et)|0;var Zn=(s+v|0)+((T&8191)<<13)|0;s=($+(T>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,v=Math.imul(Te,it),T=Math.imul(Te,et),T=T+Math.imul(ve,it)|0,$=Math.imul(ve,et);var Ir=(s+v|0)+((T&8191)<<13)|0;return s=($+(T>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,g[0]=xt,g[1]=Tt,g[2]=Ot,g[3]=Ct,g[4]=kt,g[5]=Ut,g[6]=Ht,g[7]=Bt,g[8]=dt,g[9]=At,g[10]=_t,g[11]=mt,g[12]=It,g[13]=vt,g[14]=yt,g[15]=Dt,g[16]=Ft,g[17]=Zn,g[18]=Ir,s!==0&&(g[19]=s,p.length++),p};Math.imul||(B=I);function H(f,l,h){h.negative=l.negative^f.negative,h.length=f.length+l.length;for(var p=0,w=0,x=0;x<h.length-1;x++){var g=w;w=0;for(var s=p&67108863,v=Math.min(x,l.length-1),T=Math.max(0,x-f.length+1);T<=v;T++){var $=x-T,G=f.words[$]|0,ee=l.words[T]|0,A=G*ee,E=A&67108863;g=g+(A/67108864|0)|0,E=E+s|0,s=E&67108863,g=g+(E>>>26)|0,w+=g>>>26,g&=67108863}h.words[x]=s,p=g,g=w}return p!==0?h.words[x]=p:h.length--,h._strip()}function F(f,l,h){return H(f,l,h)}n.prototype.mulTo=function(l,h){var p,w=this.length+l.length;return this.length===10&&l.length===10?p=B(this,l,h):w<63?p=I(this,l,h):w<1024?p=H(this,l,h):p=F(this,l,h),p},n.prototype.mul=function(l){var h=new n(null);return h.words=new Array(this.length+l.length),this.mulTo(l,h)},n.prototype.mulf=function(l){var h=new n(null);return h.words=new Array(this.length+l.length),F(this,l,h)},n.prototype.imul=function(l){return this.clone().mulTo(l,this)},n.prototype.imuln=function(l){var h=l<0;h&&(l=-l),i(typeof l=="number"),i(l<67108864);for(var p=0,w=0;w<this.length;w++){var x=(this.words[w]|0)*l,g=(x&67108863)+(p&67108863);p>>=26,p+=x/67108864|0,p+=g>>>26,this.words[w]=g&67108863}return p!==0&&(this.words[w]=p,this.length++),h?this.ineg():this},n.prototype.muln=function(l){return this.clone().imuln(l)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(l){var h=L(l);if(h.length===0)return new n(1);for(var p=this,w=0;w<h.length&&h[w]===0;w++,p=p.sqr());if(++w<h.length)for(var x=p.sqr();w<h.length;w++,x=x.sqr())h[w]!==0&&(p=p.mul(x));return p},n.prototype.iushln=function(l){i(typeof l=="number"&&l>=0);var h=l%26,p=(l-h)/26,w=67108863>>>26-h<<26-h,x;if(h!==0){var g=0;for(x=0;x<this.length;x++){var s=this.words[x]&w,v=(this.words[x]|0)-s<<h;this.words[x]=v|g,g=s>>>26-h}g&&(this.words[x]=g,this.length++)}if(p!==0){for(x=this.length-1;x>=0;x--)this.words[x+p]=this.words[x];for(x=0;x<p;x++)this.words[x]=0;this.length+=p}return this._strip()},n.prototype.ishln=function(l){return i(this.negative===0),this.iushln(l)},n.prototype.iushrn=function(l,h,p){i(typeof l=="number"&&l>=0);var w;h?w=(h-h%26)/26:w=0;var x=l%26,g=Math.min((l-x)/26,this.length),s=67108863^67108863>>>x<<x,v=p;if(w-=g,w=Math.max(0,w),v){for(var T=0;T<g;T++)v.words[T]=this.words[T];v.length=g}if(g!==0)if(this.length>g)for(this.length-=g,T=0;T<this.length;T++)this.words[T]=this.words[T+g];else this.words[0]=0,this.length=1;var $=0;for(T=this.length-1;T>=0&&($!==0||T>=w);T--){var G=this.words[T]|0;this.words[T]=$<<26-x|G>>>x,$=G&s}return v&&$!==0&&(v.words[v.length++]=$),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},n.prototype.ishrn=function(l,h,p){return i(this.negative===0),this.iushrn(l,h,p)},n.prototype.shln=function(l){return this.clone().ishln(l)},n.prototype.ushln=function(l){return this.clone().iushln(l)},n.prototype.shrn=function(l){return this.clone().ishrn(l)},n.prototype.ushrn=function(l){return this.clone().iushrn(l)},n.prototype.testn=function(l){i(typeof l=="number"&&l>=0);var h=l%26,p=(l-h)/26,w=1<<h;if(this.length<=p)return!1;var x=this.words[p];return!!(x&w)},n.prototype.imaskn=function(l){i(typeof l=="number"&&l>=0);var h=l%26,p=(l-h)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=p)return this;if(h!==0&&p++,this.length=Math.min(p,this.length),h!==0){var w=67108863^67108863>>>h<<h;this.words[this.length-1]&=w}return this._strip()},n.prototype.maskn=function(l){return this.clone().imaskn(l)},n.prototype.iaddn=function(l){return i(typeof l=="number"),i(l<67108864),l<0?this.isubn(-l):this.negative!==0?this.length===1&&(this.words[0]|0)<=l?(this.words[0]=l-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(l),this.negative=1,this):this._iaddn(l)},n.prototype._iaddn=function(l){this.words[0]+=l;for(var h=0;h<this.length&&this.words[h]>=67108864;h++)this.words[h]-=67108864,h===this.length-1?this.words[h+1]=1:this.words[h+1]++;return this.length=Math.max(this.length,h+1),this},n.prototype.isubn=function(l){if(i(typeof l=="number"),i(l<67108864),l<0)return this.iaddn(-l);if(this.negative!==0)return this.negative=0,this.iaddn(l),this.negative=1,this;if(this.words[0]-=l,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var h=0;h<this.length&&this.words[h]<0;h++)this.words[h]+=67108864,this.words[h+1]-=1;return this._strip()},n.prototype.addn=function(l){return this.clone().iaddn(l)},n.prototype.subn=function(l){return this.clone().isubn(l)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(l,h,p){var w=l.length+p,x;this._expand(w);var g,s=0;for(x=0;x<l.length;x++){g=(this.words[x+p]|0)+s;var v=(l.words[x]|0)*h;g-=v&67108863,s=(g>>26)-(v/67108864|0),this.words[x+p]=g&67108863}for(;x<this.length-p;x++)g=(this.words[x+p]|0)+s,s=g>>26,this.words[x+p]=g&67108863;if(s===0)return this._strip();for(i(s===-1),s=0,x=0;x<this.length;x++)g=-(this.words[x]|0)+s,s=g>>26,this.words[x]=g&67108863;return this.negative=1,this._strip()},n.prototype._wordDiv=function(l,h){var p=this.length-l.length,w=this.clone(),x=l,g=x.words[x.length-1]|0,s=this._countBits(g);p=26-s,p!==0&&(x=x.ushln(p),w.iushln(p),g=x.words[x.length-1]|0);var v=w.length-x.length,T;if(h!=="mod"){T=new n(null),T.length=v+1,T.words=new Array(T.length);for(var $=0;$<T.length;$++)T.words[$]=0}var G=w.clone()._ishlnsubmul(x,1,v);G.negative===0&&(w=G,T&&(T.words[v]=1));for(var ee=v-1;ee>=0;ee--){var A=(w.words[x.length+ee]|0)*67108864+(w.words[x.length+ee-1]|0);for(A=Math.min(A/g|0,67108863),w._ishlnsubmul(x,A,ee);w.negative!==0;)A--,w.negative=0,w._ishlnsubmul(x,1,ee),w.isZero()||(w.negative^=1);T&&(T.words[ee]=A)}return T&&T._strip(),w._strip(),h!=="div"&&p!==0&&w.iushrn(p),{div:T||null,mod:w}},n.prototype.divmod=function(l,h,p){if(i(!l.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var w,x,g;return this.negative!==0&&l.negative===0?(g=this.neg().divmod(l,h),h!=="mod"&&(w=g.div.neg()),h!=="div"&&(x=g.mod.neg(),p&&x.negative!==0&&x.iadd(l)),{div:w,mod:x}):this.negative===0&&l.negative!==0?(g=this.divmod(l.neg(),h),h!=="mod"&&(w=g.div.neg()),{div:w,mod:g.mod}):this.negative&l.negative?(g=this.neg().divmod(l.neg(),h),h!=="div"&&(x=g.mod.neg(),p&&x.negative!==0&&x.isub(l)),{div:g.div,mod:x}):l.length>this.length||this.cmp(l)<0?{div:new n(0),mod:this}:l.length===1?h==="div"?{div:this.divn(l.words[0]),mod:null}:h==="mod"?{div:null,mod:new n(this.modrn(l.words[0]))}:{div:this.divn(l.words[0]),mod:new n(this.modrn(l.words[0]))}:this._wordDiv(l,h)},n.prototype.div=function(l){return this.divmod(l,"div",!1).div},n.prototype.mod=function(l){return this.divmod(l,"mod",!1).mod},n.prototype.umod=function(l){return this.divmod(l,"mod",!0).mod},n.prototype.divRound=function(l){var h=this.divmod(l);if(h.mod.isZero())return h.div;var p=h.div.negative!==0?h.mod.isub(l):h.mod,w=l.ushrn(1),x=l.andln(1),g=p.cmp(w);return g<0||x===1&&g===0?h.div:h.div.negative!==0?h.div.isubn(1):h.div.iaddn(1)},n.prototype.modrn=function(l){var h=l<0;h&&(l=-l),i(l<=67108863);for(var p=(1<<26)%l,w=0,x=this.length-1;x>=0;x--)w=(p*w+(this.words[x]|0))%l;return h?-w:w},n.prototype.modn=function(l){return this.modrn(l)},n.prototype.idivn=function(l){var h=l<0;h&&(l=-l),i(l<=67108863);for(var p=0,w=this.length-1;w>=0;w--){var x=(this.words[w]|0)+p*67108864;this.words[w]=x/l|0,p=x%l}return this._strip(),h?this.ineg():this},n.prototype.divn=function(l){return this.clone().idivn(l)},n.prototype.egcd=function(l){i(l.negative===0),i(!l.isZero());var h=this,p=l.clone();h.negative!==0?h=h.umod(l):h=h.clone();for(var w=new n(1),x=new n(0),g=new n(0),s=new n(1),v=0;h.isEven()&&p.isEven();)h.iushrn(1),p.iushrn(1),++v;for(var T=p.clone(),$=h.clone();!h.isZero();){for(var G=0,ee=1;!(h.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(h.iushrn(G);G-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(T),x.isub($)),w.iushrn(1),x.iushrn(1);for(var A=0,E=1;!(p.words[0]&E)&&A<26;++A,E<<=1);if(A>0)for(p.iushrn(A);A-- >0;)(g.isOdd()||s.isOdd())&&(g.iadd(T),s.isub($)),g.iushrn(1),s.iushrn(1);h.cmp(p)>=0?(h.isub(p),w.isub(g),x.isub(s)):(p.isub(h),g.isub(w),s.isub(x))}return{a:g,b:s,gcd:p.iushln(v)}},n.prototype._invmp=function(l){i(l.negative===0),i(!l.isZero());var h=this,p=l.clone();h.negative!==0?h=h.umod(l):h=h.clone();for(var w=new n(1),x=new n(0),g=p.clone();h.cmpn(1)>0&&p.cmpn(1)>0;){for(var s=0,v=1;!(h.words[0]&v)&&s<26;++s,v<<=1);if(s>0)for(h.iushrn(s);s-- >0;)w.isOdd()&&w.iadd(g),w.iushrn(1);for(var T=0,$=1;!(p.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(p.iushrn(T);T-- >0;)x.isOdd()&&x.iadd(g),x.iushrn(1);h.cmp(p)>=0?(h.isub(p),w.isub(x)):(p.isub(h),x.isub(w))}var G;return h.cmpn(1)===0?G=w:G=x,G.cmpn(0)<0&&G.iadd(l),G},n.prototype.gcd=function(l){if(this.isZero())return l.abs();if(l.isZero())return this.abs();var h=this.clone(),p=l.clone();h.negative=0,p.negative=0;for(var w=0;h.isEven()&&p.isEven();w++)h.iushrn(1),p.iushrn(1);do{for(;h.isEven();)h.iushrn(1);for(;p.isEven();)p.iushrn(1);var x=h.cmp(p);if(x<0){var g=h;h=p,p=g}else if(x===0||p.cmpn(1)===0)break;h.isub(p)}while(!0);return p.iushln(w)},n.prototype.invm=function(l){return this.egcd(l).a.umod(l)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(l){return this.words[0]&l},n.prototype.bincn=function(l){i(typeof l=="number");var h=l%26,p=(l-h)/26,w=1<<h;if(this.length<=p)return this._expand(p+1),this.words[p]|=w,this;for(var x=w,g=p;x!==0&&g<this.length;g++){var s=this.words[g]|0;s+=x,x=s>>>26,s&=67108863,this.words[g]=s}return x!==0&&(this.words[g]=x,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(l){var h=l<0;if(this.negative!==0&&!h)return-1;if(this.negative===0&&h)return 1;this._strip();var p;if(this.length>1)p=1;else{h&&(l=-l),i(l<=67108863,"Number is too big");var w=this.words[0]|0;p=w===l?0:w<l?-1:1}return this.negative!==0?-p|0:p},n.prototype.cmp=function(l){if(this.negative!==0&&l.negative===0)return-1;if(this.negative===0&&l.negative!==0)return 1;var h=this.ucmp(l);return this.negative!==0?-h|0:h},n.prototype.ucmp=function(l){if(this.length>l.length)return 1;if(this.length<l.length)return-1;for(var h=0,p=this.length-1;p>=0;p--){var w=this.words[p]|0,x=l.words[p]|0;if(w!==x){w<x?h=-1:w>x&&(h=1);break}}return h},n.prototype.gtn=function(l){return this.cmpn(l)===1},n.prototype.gt=function(l){return this.cmp(l)===1},n.prototype.gten=function(l){return this.cmpn(l)>=0},n.prototype.gte=function(l){return this.cmp(l)>=0},n.prototype.ltn=function(l){return this.cmpn(l)===-1},n.prototype.lt=function(l){return this.cmp(l)===-1},n.prototype.lten=function(l){return this.cmpn(l)<=0},n.prototype.lte=function(l){return this.cmp(l)<=0},n.prototype.eqn=function(l){return this.cmpn(l)===0},n.prototype.eq=function(l){return this.cmp(l)===0},n.red=function(l){return new _(l)},n.prototype.toRed=function(l){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),l.convertTo(this)._forceRed(l)},n.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(l){return this.red=l,this},n.prototype.forceRed=function(l){return i(!this.red,"Already a number in reduction context"),this._forceRed(l)},n.prototype.redAdd=function(l){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,l)},n.prototype.redIAdd=function(l){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,l)},n.prototype.redSub=function(l){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,l)},n.prototype.redISub=function(l){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,l)},n.prototype.redShl=function(l){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,l)},n.prototype.redMul=function(l){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.mul(this,l)},n.prototype.redIMul=function(l){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,l),this.red.imul(this,l)},n.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(l){return i(this.red&&!l.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,l)};var W={k256:null,p224:null,p192:null,p25519:null};function Y(f,l){this.name=f,this.p=new n(l,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Y.prototype._tmp=function(){var l=new n(null);return l.words=new Array(Math.ceil(this.n/13)),l},Y.prototype.ireduce=function(l){var h=l,p;do this.split(h,this.tmp),h=this.imulK(h),h=h.iadd(this.tmp),p=h.bitLength();while(p>this.n);var w=p<this.n?-1:h.ucmp(this.p);return w===0?(h.words[0]=0,h.length=1):w>0?h.isub(this.p):h.strip!==void 0?h.strip():h._strip(),h},Y.prototype.split=function(l,h){l.iushrn(this.n,0,h)},Y.prototype.imulK=function(l){return l.imul(this.k)};function ie(){Y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(ie,Y),ie.prototype.split=function(l,h){for(var p=4194303,w=Math.min(l.length,9),x=0;x<w;x++)h.words[x]=l.words[x];if(h.length=w,l.length<=9){l.words[0]=0,l.length=1;return}var g=l.words[9];for(h.words[h.length++]=g&p,x=10;x<l.length;x++){var s=l.words[x]|0;l.words[x-10]=(s&p)<<4|g>>>22,g=s}g>>>=22,l.words[x-10]=g,g===0&&l.length>10?l.length-=10:l.length-=9},ie.prototype.imulK=function(l){l.words[l.length]=0,l.words[l.length+1]=0,l.length+=2;for(var h=0,p=0;p<l.length;p++){var w=l.words[p]|0;h+=w*977,l.words[p]=h&67108863,h=w*64+(h/67108864|0)}return l.words[l.length-1]===0&&(l.length--,l.words[l.length-1]===0&&l.length--),l};function J(){Y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(J,Y);function V(){Y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(V,Y);function oe(){Y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(oe,Y),oe.prototype.imulK=function(l){for(var h=0,p=0;p<l.length;p++){var w=(l.words[p]|0)*19+h,x=w&67108863;w>>>=26,l.words[p]=x,h=w}return h!==0&&(l.words[l.length++]=h),l},n._prime=function(l){if(W[l])return W[l];var h;if(l==="k256")h=new ie;else if(l==="p224")h=new J;else if(l==="p192")h=new V;else if(l==="p25519")h=new oe;else throw new Error("Unknown prime "+l);return W[l]=h,h};function _(f){if(typeof f=="string"){var l=n._prime(f);this.m=l.p,this.prime=l}else i(f.gtn(1),"modulus must be greater than 1"),this.m=f,this.prime=null}_.prototype._verify1=function(l){i(l.negative===0,"red works only with positives"),i(l.red,"red works only with red numbers")},_.prototype._verify2=function(l,h){i((l.negative|h.negative)===0,"red works only with positives"),i(l.red&&l.red===h.red,"red works only with red numbers")},_.prototype.imod=function(l){return this.prime?this.prime.ireduce(l)._forceRed(this):(M(l,l.umod(this.m)._forceRed(this)),l)},_.prototype.neg=function(l){return l.isZero()?l.clone():this.m.sub(l)._forceRed(this)},_.prototype.add=function(l,h){this._verify2(l,h);var p=l.add(h);return p.cmp(this.m)>=0&&p.isub(this.m),p._forceRed(this)},_.prototype.iadd=function(l,h){this._verify2(l,h);var p=l.iadd(h);return p.cmp(this.m)>=0&&p.isub(this.m),p},_.prototype.sub=function(l,h){this._verify2(l,h);var p=l.sub(h);return p.cmpn(0)<0&&p.iadd(this.m),p._forceRed(this)},_.prototype.isub=function(l,h){this._verify2(l,h);var p=l.isub(h);return p.cmpn(0)<0&&p.iadd(this.m),p},_.prototype.shl=function(l,h){return this._verify1(l),this.imod(l.ushln(h))},_.prototype.imul=function(l,h){return this._verify2(l,h),this.imod(l.imul(h))},_.prototype.mul=function(l,h){return this._verify2(l,h),this.imod(l.mul(h))},_.prototype.isqr=function(l){return this.imul(l,l.clone())},_.prototype.sqr=function(l){return this.mul(l,l)},_.prototype.sqrt=function(l){if(l.isZero())return l.clone();var h=this.m.andln(3);if(i(h%2===1),h===3){var p=this.m.add(new n(1)).iushrn(2);return this.pow(l,p)}for(var w=this.m.subn(1),x=0;!w.isZero()&&w.andln(1)===0;)x++,w.iushrn(1);i(!w.isZero());var g=new n(1).toRed(this),s=g.redNeg(),v=this.m.subn(1).iushrn(1),T=this.m.bitLength();for(T=new n(2*T*T).toRed(this);this.pow(T,v).cmp(s)!==0;)T.redIAdd(s);for(var $=this.pow(T,w),G=this.pow(l,w.addn(1).iushrn(1)),ee=this.pow(l,w),A=x;ee.cmp(g)!==0;){for(var E=ee,U=0;E.cmp(g)!==0;U++)E=E.redSqr();i(U<A);var K=this.pow($,new n(1).iushln(A-U-1));G=G.redMul(K),$=K.redSqr(),ee=ee.redMul($),A=U}return G},_.prototype.invm=function(l){var h=l._invmp(this.m);return h.negative!==0?(h.negative=0,this.imod(h).redNeg()):this.imod(h)},_.prototype.pow=function(l,h){if(h.isZero())return new n(1).toRed(this);if(h.cmpn(1)===0)return l.clone();var p=4,w=new Array(1<<p);w[0]=new n(1).toRed(this),w[1]=l;for(var x=2;x<w.length;x++)w[x]=this.mul(w[x-1],l);var g=w[0],s=0,v=0,T=h.bitLength()%26;for(T===0&&(T=26),x=h.length-1;x>=0;x--){for(var $=h.words[x],G=T-1;G>=0;G--){var ee=$>>G&1;if(g!==w[0]&&(g=this.sqr(g)),ee===0&&s===0){v=0;continue}s<<=1,s|=ee,v++,!(v!==p&&(x!==0||G!==0))&&(g=this.mul(g,w[s]),v=0,s=0)}T=26}return g},_.prototype.convertTo=function(l){var h=l.umod(this.m);return h===l?h.clone():h},_.prototype.convertFrom=function(l){var h=l.clone();return h.red=null,h},n.mont=function(l){return new o(l)};function o(f){_.call(this,f),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(o,_),o.prototype.convertTo=function(l){return this.imod(l.ushln(this.shift))},o.prototype.convertFrom=function(l){var h=this.imod(l.mul(this.rinv));return h.red=null,h},o.prototype.imul=function(l,h){if(l.isZero()||h.isZero())return l.words[0]=0,l.length=1,l;var p=l.imul(h),w=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(w).iushrn(this.shift),g=x;return x.cmp(this.m)>=0?g=x.isub(this.m):x.cmpn(0)<0&&(g=x.iadd(this.m)),g._forceRed(this)},o.prototype.mul=function(l,h){if(l.isZero()||h.isZero())return new n(0)._forceRed(this);var p=l.mul(h),w=p.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=p.isub(w).iushrn(this.shift),g=x;return x.cmp(this.m)>=0?g=x.isub(this.m):x.cmpn(0)<0&&(g=x.iadd(this.m)),g._forceRed(this)},o.prototype.invm=function(l){var h=this.imod(l._invmp(this.m).mul(this.r2));return h._forceRed(this)}})(e,Ye)})(Cg);var Bg=Cg.exports,is=Bg,zH=Ds;function GH(e){var t=Nx(e),r=t.toRed(is.mont(e.modulus)).redPow(new is(e.publicExponent)).fromRed();return{blinder:r,unblinder:t.invm(e.modulus)}}function Nx(e){var t=e.modulus.byteLength(),r;do r=new is(zH(t));while(r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2));return r}function kx(e,t){var r=GH(t),i=t.modulus.byteLength(),a=new is(e).mul(r.blinder).umod(t.modulus),n=a.toRed(is.mont(t.prime1)),u=a.toRed(is.mont(t.prime2)),c=t.coefficient,d=t.prime1,m=t.prime2,M=n.redPow(t.exponent1).fromRed(),S=u.redPow(t.exponent2).fromRed(),R=M.isub(S).imul(c).umod(d).imul(m);return S.iadd(R).imul(r.unblinder).umod(t.modulus).toArrayLike(ke.Buffer,"be",i)}kx.getr=Nx;var Lg=kx,w0={};const YH="elliptic",ZH="6.5.4",XH="EC cryptography",JH="lib/elliptic.js",QH=["lib"],eq={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},tq={type:"git",url:"git@github.com:indutny/elliptic"},rq=["EC","Elliptic","curve","Cryptography"],iq="Fedor Indutny <fedor@indutny.com>",nq="MIT",oq={url:"https://github.com/indutny/elliptic/issues"},aq="https://github.com/indutny/elliptic",sq={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},fq={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},uq={name:YH,version:ZH,description:XH,main:JH,files:QH,scripts:eq,repository:tq,keywords:rq,author:iq,license:nq,bugs:oq,homepage:aq,devDependencies:sq,dependencies:fq};var ri={},Ng={exports:{}};Ng.exports;(function(e){(function(t,r){function i(_,o){if(!_)throw new Error(o||"Assertion failed")}function a(_,o){_.super_=o;var f=function(){};f.prototype=o.prototype,_.prototype=new f,_.prototype.constructor=_}function n(_,o,f){if(n.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((o==="le"||o==="be")&&(f=o,o=10),this._init(_||0,o||10,f||"be"))}typeof t=="object"?t.exports=n:r.BN=n,n.BN=n,n.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=ke.Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,f){return o.cmp(f)>0?o:f},n.min=function(o,f){return o.cmp(f)<0?o:f},n.prototype._init=function(o,f,l){if(typeof o=="number")return this._initNumber(o,f,l);if(typeof o=="object")return this._initArray(o,f,l);f==="hex"&&(f=16),i(f===(f|0)&&f>=2&&f<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h<o.length&&(f===16?this._parseHex(o,h,l):(this._parseBase(o,f,h),l==="le"&&this._initArray(this.toArray(),f,l)))},n.prototype._initNumber=function(o,f,l){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(i(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),f,l)},n.prototype._initArray=function(o,f,l){if(i(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p,w,x=0;if(l==="be")for(h=o.length-1,p=0;h>=0;h-=3)w=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);else if(l==="le")for(h=0,p=0;h<o.length;h+=3)w=o[h]|o[h+1]<<8|o[h+2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);return this.strip()};function c(_,o){var f=_.charCodeAt(o);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function d(_,o,f){var l=c(_,f);return f-1>=o&&(l|=c(_,f-1)<<4),l}n.prototype._parseHex=function(o,f,l){this.length=Math.ceil((o.length-f)/6),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p=0,w=0,x;if(l==="be")for(h=o.length-1;h>=f;h-=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8;else{var g=o.length-f;for(h=g%2===0?f+1:f;h<o.length;h+=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8}this.strip()};function m(_,o,f,l){for(var h=0,p=Math.min(_.length,f),w=o;w<p;w++){var x=_.charCodeAt(w)-48;h*=l,x>=49?h+=x-49+10:x>=17?h+=x-17+10:h+=x}return h}n.prototype._parseBase=function(o,f,l){this.words=[0],this.length=1;for(var h=0,p=1;p<=67108863;p*=f)h++;h--,p=p/f|0;for(var w=o.length-l,x=w%h,g=Math.min(w,w-x)+l,s=0,v=l;v<g;v+=h)s=m(o,v,v+h,f),this.imuln(p),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(x!==0){var T=1;for(s=m(o,v,o.length,f),v=0;v<x;v++)T*=f;this.imuln(T),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},n.prototype.copy=function(o){o.words=new Array(this.length);for(var f=0;f<this.length;f++)o.words[f]=this.words[f];o.length=this.length,o.negative=this.negative,o.red=this.red},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],R=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,f){o=o||10,f=f|0||1;var l;if(o===16||o==="hex"){l="";for(var h=0,p=0,w=0;w<this.length;w++){var x=this.words[w],g=((x<<h|p)&16777215).toString(16);p=x>>>24-h&16777215,p!==0||w!==this.length-1?l=M[6-g.length]+g+l:l=g+l,h+=2,h>=26&&(h-=26,w--)}for(p!==0&&(l=p.toString(16)+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(o===(o|0)&&o>=2&&o<=36){var s=S[o],v=R[o];l="";var T=this.clone();for(T.negative=0;!T.isZero();){var $=T.modn(v).toString(o);T=T.idivn(v),T.isZero()?l=$+l:l=M[s-$.length]+$+l}for(this.isZero()&&(l="0"+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(o,f){return i(typeof u<"u"),this.toArrayLike(u,o,f)},n.prototype.toArray=function(o,f){return this.toArrayLike(Array,o,f)},n.prototype.toArrayLike=function(o,f,l){var h=this.byteLength(),p=l||Math.max(1,h);i(h<=p,"byte array longer than desired length"),i(p>0,"Requested array length <= 0"),this.strip();var w=f==="le",x=new o(p),g,s,v=this.clone();if(w){for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[s]=g;for(;s<p;s++)x[s]=0}else{for(s=0;s<p-h;s++)x[s]=0;for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[p-s-1]=g}return x},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var f=o,l=0;return f>=4096&&(l+=13,f>>>=13),f>=64&&(l+=7,f>>>=7),f>=8&&(l+=4,f>>>=4),f>=2&&(l+=2,f>>>=2),l+f},n.prototype._zeroBits=function(o){if(o===0)return 26;var f=o,l=0;return f&8191||(l+=13,f>>>=13),f&127||(l+=7,f>>>=7),f&15||(l+=4,f>>>=4),f&3||(l+=2,f>>>=2),f&1||l++,l},n.prototype.bitLength=function(){var o=this.words[this.length-1],f=this._countBits(o);return(this.length-1)*26+f};function C(_){for(var o=new Array(_.bitLength()),f=0;f<o.length;f++){var l=f/26|0,h=f%26;o[f]=(_.words[l]&1<<h)>>>h}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,f=0;f<this.length;f++){var l=this._zeroBits(this.words[f]);if(o+=l,l!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var f=0;f<o.length;f++)this.words[f]=this.words[f]|o.words[f];return this.strip()},n.prototype.ior=function(o){return i((this.negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},n.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},n.prototype.iuand=function(o){var f;this.length>o.length?f=o:f=this;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]&o.words[l];return this.length=f.length,this.strip()},n.prototype.iand=function(o){return i((this.negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},n.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},n.prototype.iuxor=function(o){var f,l;this.length>o.length?(f=this,l=o):(f=o,l=this);for(var h=0;h<l.length;h++)this.words[h]=f.words[h]^l.words[h];if(this!==f)for(;h<f.length;h++)this.words[h]=f.words[h];return this.length=f.length,this.strip()},n.prototype.ixor=function(o){return i((this.negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},n.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},n.prototype.inotn=function(o){i(typeof o=="number"&&o>=0);var f=Math.ceil(o/26)|0,l=o%26;this._expand(f),l>0&&f--;for(var h=0;h<f;h++)this.words[h]=~this.words[h]&67108863;return l>0&&(this.words[h]=~this.words[h]&67108863>>26-l),this.strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,f){i(typeof o=="number"&&o>=0);var l=o/26|0,h=o%26;return this._expand(l+1),f?this.words[l]=this.words[l]|1<<h:this.words[l]=this.words[l]&~(1<<h),this.strip()},n.prototype.iadd=function(o){var f;if(this.negative!==0&&o.negative===0)return this.negative=0,f=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,f=this.isub(o),o.negative=1,f._normSign();var l,h;this.length>o.length?(l=this,h=o):(l=o,h=this);for(var p=0,w=0;w<h.length;w++)f=(l.words[w]|0)+(h.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;for(;p!==0&&w<l.length;w++)f=(l.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;if(this.length=l.length,p!==0)this.words[this.length]=p,this.length++;else if(l!==this)for(;w<l.length;w++)this.words[w]=l.words[w];return this},n.prototype.add=function(o){var f;return o.negative!==0&&this.negative===0?(o.negative=0,f=this.sub(o),o.negative^=1,f):o.negative===0&&this.negative!==0?(this.negative=0,f=o.sub(this),this.negative=1,f):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var f=this.iadd(o);return o.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var l=this.cmp(o);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,p;l>0?(h=this,p=o):(h=o,p=this);for(var w=0,x=0;x<p.length;x++)f=(h.words[x]|0)-(p.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;for(;w!==0&&x<h.length;x++)f=(h.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;if(w===0&&x<h.length&&h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this.length=Math.max(this.length,x),h!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function P(_,o,f){f.negative=o.negative^_.negative;var l=_.length+o.length|0;f.length=l,l=l-1|0;var h=_.words[0]|0,p=o.words[0]|0,w=h*p,x=w&67108863,g=w/67108864|0;f.words[0]=x;for(var s=1;s<l;s++){for(var v=g>>>26,T=g&67108863,$=Math.min(s,o.length-1),G=Math.max(0,s-_.length+1);G<=$;G++){var ee=s-G|0;h=_.words[ee]|0,p=o.words[G]|0,w=h*p+T,v+=w/67108864|0,T=w&67108863}f.words[s]=T|0,g=v|0}return g!==0?f.words[s]=g|0:f.length--,f.strip()}var k=function(o,f,l){var h=o.words,p=f.words,w=l.words,x=0,g,s,v,T=h[0]|0,$=T&8191,G=T>>>13,ee=h[1]|0,A=ee&8191,E=ee>>>13,U=h[2]|0,K=U&8191,Z=U>>>13,b=h[3]|0,y=b&8191,O=b>>>13,q=h[4]|0,X=q&8191,D=q>>>13,N=h[5]|0,j=N&8191,z=N>>>13,se=h[6]|0,te=se&8191,ne=se>>>13,Ee=h[7]|0,Q=Ee&8191,ue=Ee>>>13,le=h[8]|0,ce=le&8191,pe=le>>>13,de=h[9]|0,ae=de&8191,fe=de>>>13,Te=p[0]|0,ve=Te&8191,Me=Te>>>13,Ke=p[1]|0,be=Ke&8191,Se=Ke>>>13,qe=p[2]|0,ye=qe&8191,_e=qe>>>13,Ve=p[3]|0,ge=Ve&8191,xe=Ve>>>13,Xe=p[4]|0,Re=Xe&8191,Le=Xe>>>13,at=p[5]|0,Ae=at&8191,Ne=at>>>13,rt=p[6]|0,Oe=rt&8191,De=rt>>>13,nt=p[7]|0,Ie=nt&8191,$e=nt>>>13,st=p[8]|0,Pe=st&8191,je=st>>>13,ht=p[9]|0,Ce=ht&8191,Fe=ht>>>13;l.negative=o.negative^f.negative,l.length=19,g=Math.imul($,ve),s=Math.imul($,Me),s=s+Math.imul(G,ve)|0,v=Math.imul(G,Me);var it=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(it>>>26)|0,it&=67108863,g=Math.imul(A,ve),s=Math.imul(A,Me),s=s+Math.imul(E,ve)|0,v=Math.imul(E,Me),g=g+Math.imul($,be)|0,s=s+Math.imul($,Se)|0,s=s+Math.imul(G,be)|0,v=v+Math.imul(G,Se)|0;var et=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(et>>>26)|0,et&=67108863,g=Math.imul(K,ve),s=Math.imul(K,Me),s=s+Math.imul(Z,ve)|0,v=Math.imul(Z,Me),g=g+Math.imul(A,be)|0,s=s+Math.imul(A,Se)|0,s=s+Math.imul(E,be)|0,v=v+Math.imul(E,Se)|0,g=g+Math.imul($,ye)|0,s=s+Math.imul($,_e)|0,s=s+Math.imul(G,ye)|0,v=v+Math.imul(G,_e)|0;var xt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(xt>>>26)|0,xt&=67108863,g=Math.imul(y,ve),s=Math.imul(y,Me),s=s+Math.imul(O,ve)|0,v=Math.imul(O,Me),g=g+Math.imul(K,be)|0,s=s+Math.imul(K,Se)|0,s=s+Math.imul(Z,be)|0,v=v+Math.imul(Z,Se)|0,g=g+Math.imul(A,ye)|0,s=s+Math.imul(A,_e)|0,s=s+Math.imul(E,ye)|0,v=v+Math.imul(E,_e)|0,g=g+Math.imul($,ge)|0,s=s+Math.imul($,xe)|0,s=s+Math.imul(G,ge)|0,v=v+Math.imul(G,xe)|0;var Tt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,g=Math.imul(X,ve),s=Math.imul(X,Me),s=s+Math.imul(D,ve)|0,v=Math.imul(D,Me),g=g+Math.imul(y,be)|0,s=s+Math.imul(y,Se)|0,s=s+Math.imul(O,be)|0,v=v+Math.imul(O,Se)|0,g=g+Math.imul(K,ye)|0,s=s+Math.imul(K,_e)|0,s=s+Math.imul(Z,ye)|0,v=v+Math.imul(Z,_e)|0,g=g+Math.imul(A,ge)|0,s=s+Math.imul(A,xe)|0,s=s+Math.imul(E,ge)|0,v=v+Math.imul(E,xe)|0,g=g+Math.imul($,Re)|0,s=s+Math.imul($,Le)|0,s=s+Math.imul(G,Re)|0,v=v+Math.imul(G,Le)|0;var Ot=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,g=Math.imul(j,ve),s=Math.imul(j,Me),s=s+Math.imul(z,ve)|0,v=Math.imul(z,Me),g=g+Math.imul(X,be)|0,s=s+Math.imul(X,Se)|0,s=s+Math.imul(D,be)|0,v=v+Math.imul(D,Se)|0,g=g+Math.imul(y,ye)|0,s=s+Math.imul(y,_e)|0,s=s+Math.imul(O,ye)|0,v=v+Math.imul(O,_e)|0,g=g+Math.imul(K,ge)|0,s=s+Math.imul(K,xe)|0,s=s+Math.imul(Z,ge)|0,v=v+Math.imul(Z,xe)|0,g=g+Math.imul(A,Re)|0,s=s+Math.imul(A,Le)|0,s=s+Math.imul(E,Re)|0,v=v+Math.imul(E,Le)|0,g=g+Math.imul($,Ae)|0,s=s+Math.imul($,Ne)|0,s=s+Math.imul(G,Ae)|0,v=v+Math.imul(G,Ne)|0;var Ct=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,g=Math.imul(te,ve),s=Math.imul(te,Me),s=s+Math.imul(ne,ve)|0,v=Math.imul(ne,Me),g=g+Math.imul(j,be)|0,s=s+Math.imul(j,Se)|0,s=s+Math.imul(z,be)|0,v=v+Math.imul(z,Se)|0,g=g+Math.imul(X,ye)|0,s=s+Math.imul(X,_e)|0,s=s+Math.imul(D,ye)|0,v=v+Math.imul(D,_e)|0,g=g+Math.imul(y,ge)|0,s=s+Math.imul(y,xe)|0,s=s+Math.imul(O,ge)|0,v=v+Math.imul(O,xe)|0,g=g+Math.imul(K,Re)|0,s=s+Math.imul(K,Le)|0,s=s+Math.imul(Z,Re)|0,v=v+Math.imul(Z,Le)|0,g=g+Math.imul(A,Ae)|0,s=s+Math.imul(A,Ne)|0,s=s+Math.imul(E,Ae)|0,v=v+Math.imul(E,Ne)|0,g=g+Math.imul($,Oe)|0,s=s+Math.imul($,De)|0,s=s+Math.imul(G,Oe)|0,v=v+Math.imul(G,De)|0;var kt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(kt>>>26)|0,kt&=67108863,g=Math.imul(Q,ve),s=Math.imul(Q,Me),s=s+Math.imul(ue,ve)|0,v=Math.imul(ue,Me),g=g+Math.imul(te,be)|0,s=s+Math.imul(te,Se)|0,s=s+Math.imul(ne,be)|0,v=v+Math.imul(ne,Se)|0,g=g+Math.imul(j,ye)|0,s=s+Math.imul(j,_e)|0,s=s+Math.imul(z,ye)|0,v=v+Math.imul(z,_e)|0,g=g+Math.imul(X,ge)|0,s=s+Math.imul(X,xe)|0,s=s+Math.imul(D,ge)|0,v=v+Math.imul(D,xe)|0,g=g+Math.imul(y,Re)|0,s=s+Math.imul(y,Le)|0,s=s+Math.imul(O,Re)|0,v=v+Math.imul(O,Le)|0,g=g+Math.imul(K,Ae)|0,s=s+Math.imul(K,Ne)|0,s=s+Math.imul(Z,Ae)|0,v=v+Math.imul(Z,Ne)|0,g=g+Math.imul(A,Oe)|0,s=s+Math.imul(A,De)|0,s=s+Math.imul(E,Oe)|0,v=v+Math.imul(E,De)|0,g=g+Math.imul($,Ie)|0,s=s+Math.imul($,$e)|0,s=s+Math.imul(G,Ie)|0,v=v+Math.imul(G,$e)|0;var Ut=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,g=Math.imul(ce,ve),s=Math.imul(ce,Me),s=s+Math.imul(pe,ve)|0,v=Math.imul(pe,Me),g=g+Math.imul(Q,be)|0,s=s+Math.imul(Q,Se)|0,s=s+Math.imul(ue,be)|0,v=v+Math.imul(ue,Se)|0,g=g+Math.imul(te,ye)|0,s=s+Math.imul(te,_e)|0,s=s+Math.imul(ne,ye)|0,v=v+Math.imul(ne,_e)|0,g=g+Math.imul(j,ge)|0,s=s+Math.imul(j,xe)|0,s=s+Math.imul(z,ge)|0,v=v+Math.imul(z,xe)|0,g=g+Math.imul(X,Re)|0,s=s+Math.imul(X,Le)|0,s=s+Math.imul(D,Re)|0,v=v+Math.imul(D,Le)|0,g=g+Math.imul(y,Ae)|0,s=s+Math.imul(y,Ne)|0,s=s+Math.imul(O,Ae)|0,v=v+Math.imul(O,Ne)|0,g=g+Math.imul(K,Oe)|0,s=s+Math.imul(K,De)|0,s=s+Math.imul(Z,Oe)|0,v=v+Math.imul(Z,De)|0,g=g+Math.imul(A,Ie)|0,s=s+Math.imul(A,$e)|0,s=s+Math.imul(E,Ie)|0,v=v+Math.imul(E,$e)|0,g=g+Math.imul($,Pe)|0,s=s+Math.imul($,je)|0,s=s+Math.imul(G,Pe)|0,v=v+Math.imul(G,je)|0;var Ht=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,g=Math.imul(ae,ve),s=Math.imul(ae,Me),s=s+Math.imul(fe,ve)|0,v=Math.imul(fe,Me),g=g+Math.imul(ce,be)|0,s=s+Math.imul(ce,Se)|0,s=s+Math.imul(pe,be)|0,v=v+Math.imul(pe,Se)|0,g=g+Math.imul(Q,ye)|0,s=s+Math.imul(Q,_e)|0,s=s+Math.imul(ue,ye)|0,v=v+Math.imul(ue,_e)|0,g=g+Math.imul(te,ge)|0,s=s+Math.imul(te,xe)|0,s=s+Math.imul(ne,ge)|0,v=v+Math.imul(ne,xe)|0,g=g+Math.imul(j,Re)|0,s=s+Math.imul(j,Le)|0,s=s+Math.imul(z,Re)|0,v=v+Math.imul(z,Le)|0,g=g+Math.imul(X,Ae)|0,s=s+Math.imul(X,Ne)|0,s=s+Math.imul(D,Ae)|0,v=v+Math.imul(D,Ne)|0,g=g+Math.imul(y,Oe)|0,s=s+Math.imul(y,De)|0,s=s+Math.imul(O,Oe)|0,v=v+Math.imul(O,De)|0,g=g+Math.imul(K,Ie)|0,s=s+Math.imul(K,$e)|0,s=s+Math.imul(Z,Ie)|0,v=v+Math.imul(Z,$e)|0,g=g+Math.imul(A,Pe)|0,s=s+Math.imul(A,je)|0,s=s+Math.imul(E,Pe)|0,v=v+Math.imul(E,je)|0,g=g+Math.imul($,Ce)|0,s=s+Math.imul($,Fe)|0,s=s+Math.imul(G,Ce)|0,v=v+Math.imul(G,Fe)|0;var Bt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,g=Math.imul(ae,be),s=Math.imul(ae,Se),s=s+Math.imul(fe,be)|0,v=Math.imul(fe,Se),g=g+Math.imul(ce,ye)|0,s=s+Math.imul(ce,_e)|0,s=s+Math.imul(pe,ye)|0,v=v+Math.imul(pe,_e)|0,g=g+Math.imul(Q,ge)|0,s=s+Math.imul(Q,xe)|0,s=s+Math.imul(ue,ge)|0,v=v+Math.imul(ue,xe)|0,g=g+Math.imul(te,Re)|0,s=s+Math.imul(te,Le)|0,s=s+Math.imul(ne,Re)|0,v=v+Math.imul(ne,Le)|0,g=g+Math.imul(j,Ae)|0,s=s+Math.imul(j,Ne)|0,s=s+Math.imul(z,Ae)|0,v=v+Math.imul(z,Ne)|0,g=g+Math.imul(X,Oe)|0,s=s+Math.imul(X,De)|0,s=s+Math.imul(D,Oe)|0,v=v+Math.imul(D,De)|0,g=g+Math.imul(y,Ie)|0,s=s+Math.imul(y,$e)|0,s=s+Math.imul(O,Ie)|0,v=v+Math.imul(O,$e)|0,g=g+Math.imul(K,Pe)|0,s=s+Math.imul(K,je)|0,s=s+Math.imul(Z,Pe)|0,v=v+Math.imul(Z,je)|0,g=g+Math.imul(A,Ce)|0,s=s+Math.imul(A,Fe)|0,s=s+Math.imul(E,Ce)|0,v=v+Math.imul(E,Fe)|0;var dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(dt>>>26)|0,dt&=67108863,g=Math.imul(ae,ye),s=Math.imul(ae,_e),s=s+Math.imul(fe,ye)|0,v=Math.imul(fe,_e),g=g+Math.imul(ce,ge)|0,s=s+Math.imul(ce,xe)|0,s=s+Math.imul(pe,ge)|0,v=v+Math.imul(pe,xe)|0,g=g+Math.imul(Q,Re)|0,s=s+Math.imul(Q,Le)|0,s=s+Math.imul(ue,Re)|0,v=v+Math.imul(ue,Le)|0,g=g+Math.imul(te,Ae)|0,s=s+Math.imul(te,Ne)|0,s=s+Math.imul(ne,Ae)|0,v=v+Math.imul(ne,Ne)|0,g=g+Math.imul(j,Oe)|0,s=s+Math.imul(j,De)|0,s=s+Math.imul(z,Oe)|0,v=v+Math.imul(z,De)|0,g=g+Math.imul(X,Ie)|0,s=s+Math.imul(X,$e)|0,s=s+Math.imul(D,Ie)|0,v=v+Math.imul(D,$e)|0,g=g+Math.imul(y,Pe)|0,s=s+Math.imul(y,je)|0,s=s+Math.imul(O,Pe)|0,v=v+Math.imul(O,je)|0,g=g+Math.imul(K,Ce)|0,s=s+Math.imul(K,Fe)|0,s=s+Math.imul(Z,Ce)|0,v=v+Math.imul(Z,Fe)|0;var At=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(At>>>26)|0,At&=67108863,g=Math.imul(ae,ge),s=Math.imul(ae,xe),s=s+Math.imul(fe,ge)|0,v=Math.imul(fe,xe),g=g+Math.imul(ce,Re)|0,s=s+Math.imul(ce,Le)|0,s=s+Math.imul(pe,Re)|0,v=v+Math.imul(pe,Le)|0,g=g+Math.imul(Q,Ae)|0,s=s+Math.imul(Q,Ne)|0,s=s+Math.imul(ue,Ae)|0,v=v+Math.imul(ue,Ne)|0,g=g+Math.imul(te,Oe)|0,s=s+Math.imul(te,De)|0,s=s+Math.imul(ne,Oe)|0,v=v+Math.imul(ne,De)|0,g=g+Math.imul(j,Ie)|0,s=s+Math.imul(j,$e)|0,s=s+Math.imul(z,Ie)|0,v=v+Math.imul(z,$e)|0,g=g+Math.imul(X,Pe)|0,s=s+Math.imul(X,je)|0,s=s+Math.imul(D,Pe)|0,v=v+Math.imul(D,je)|0,g=g+Math.imul(y,Ce)|0,s=s+Math.imul(y,Fe)|0,s=s+Math.imul(O,Ce)|0,v=v+Math.imul(O,Fe)|0;var _t=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(_t>>>26)|0,_t&=67108863,g=Math.imul(ae,Re),s=Math.imul(ae,Le),s=s+Math.imul(fe,Re)|0,v=Math.imul(fe,Le),g=g+Math.imul(ce,Ae)|0,s=s+Math.imul(ce,Ne)|0,s=s+Math.imul(pe,Ae)|0,v=v+Math.imul(pe,Ne)|0,g=g+Math.imul(Q,Oe)|0,s=s+Math.imul(Q,De)|0,s=s+Math.imul(ue,Oe)|0,v=v+Math.imul(ue,De)|0,g=g+Math.imul(te,Ie)|0,s=s+Math.imul(te,$e)|0,s=s+Math.imul(ne,Ie)|0,v=v+Math.imul(ne,$e)|0,g=g+Math.imul(j,Pe)|0,s=s+Math.imul(j,je)|0,s=s+Math.imul(z,Pe)|0,v=v+Math.imul(z,je)|0,g=g+Math.imul(X,Ce)|0,s=s+Math.imul(X,Fe)|0,s=s+Math.imul(D,Ce)|0,v=v+Math.imul(D,Fe)|0;var mt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(mt>>>26)|0,mt&=67108863,g=Math.imul(ae,Ae),s=Math.imul(ae,Ne),s=s+Math.imul(fe,Ae)|0,v=Math.imul(fe,Ne),g=g+Math.imul(ce,Oe)|0,s=s+Math.imul(ce,De)|0,s=s+Math.imul(pe,Oe)|0,v=v+Math.imul(pe,De)|0,g=g+Math.imul(Q,Ie)|0,s=s+Math.imul(Q,$e)|0,s=s+Math.imul(ue,Ie)|0,v=v+Math.imul(ue,$e)|0,g=g+Math.imul(te,Pe)|0,s=s+Math.imul(te,je)|0,s=s+Math.imul(ne,Pe)|0,v=v+Math.imul(ne,je)|0,g=g+Math.imul(j,Ce)|0,s=s+Math.imul(j,Fe)|0,s=s+Math.imul(z,Ce)|0,v=v+Math.imul(z,Fe)|0;var It=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(It>>>26)|0,It&=67108863,g=Math.imul(ae,Oe),s=Math.imul(ae,De),s=s+Math.imul(fe,Oe)|0,v=Math.imul(fe,De),g=g+Math.imul(ce,Ie)|0,s=s+Math.imul(ce,$e)|0,s=s+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,$e)|0,g=g+Math.imul(Q,Pe)|0,s=s+Math.imul(Q,je)|0,s=s+Math.imul(ue,Pe)|0,v=v+Math.imul(ue,je)|0,g=g+Math.imul(te,Ce)|0,s=s+Math.imul(te,Fe)|0,s=s+Math.imul(ne,Ce)|0,v=v+Math.imul(ne,Fe)|0;var vt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(vt>>>26)|0,vt&=67108863,g=Math.imul(ae,Ie),s=Math.imul(ae,$e),s=s+Math.imul(fe,Ie)|0,v=Math.imul(fe,$e),g=g+Math.imul(ce,Pe)|0,s=s+Math.imul(ce,je)|0,s=s+Math.imul(pe,Pe)|0,v=v+Math.imul(pe,je)|0,g=g+Math.imul(Q,Ce)|0,s=s+Math.imul(Q,Fe)|0,s=s+Math.imul(ue,Ce)|0,v=v+Math.imul(ue,Fe)|0;var yt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(yt>>>26)|0,yt&=67108863,g=Math.imul(ae,Pe),s=Math.imul(ae,je),s=s+Math.imul(fe,Pe)|0,v=Math.imul(fe,je),g=g+Math.imul(ce,Ce)|0,s=s+Math.imul(ce,Fe)|0,s=s+Math.imul(pe,Ce)|0,v=v+Math.imul(pe,Fe)|0;var Dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,g=Math.imul(ae,Ce),s=Math.imul(ae,Fe),s=s+Math.imul(fe,Ce)|0,v=Math.imul(fe,Fe);var Ft=(x+g|0)+((s&8191)<<13)|0;return x=(v+(s>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,w[0]=it,w[1]=et,w[2]=xt,w[3]=Tt,w[4]=Ot,w[5]=Ct,w[6]=kt,w[7]=Ut,w[8]=Ht,w[9]=Bt,w[10]=dt,w[11]=At,w[12]=_t,w[13]=mt,w[14]=It,w[15]=vt,w[16]=yt,w[17]=Dt,w[18]=Ft,x!==0&&(w[19]=x,l.length++),l};Math.imul||(k=P);function L(_,o,f){f.negative=o.negative^_.negative,f.length=_.length+o.length;for(var l=0,h=0,p=0;p<f.length-1;p++){var w=h;h=0;for(var x=l&67108863,g=Math.min(p,o.length-1),s=Math.max(0,p-_.length+1);s<=g;s++){var v=p-s,T=_.words[v]|0,$=o.words[s]|0,G=T*$,ee=G&67108863;w=w+(G/67108864|0)|0,ee=ee+x|0,x=ee&67108863,w=w+(ee>>>26)|0,h+=w>>>26,w&=67108863}f.words[p]=x,l=w,w=h}return l!==0?f.words[p]=l:f.length--,f.strip()}function I(_,o,f){var l=new B;return l.mulp(_,o,f)}n.prototype.mulTo=function(o,f){var l,h=this.length+o.length;return this.length===10&&o.length===10?l=k(this,o,f):h<63?l=P(this,o,f):h<1024?l=L(this,o,f):l=I(this,o,f),l};function B(_,o){this.x=_,this.y=o}B.prototype.makeRBT=function(o){for(var f=new Array(o),l=n.prototype._countBits(o)-1,h=0;h<o;h++)f[h]=this.revBin(h,l,o);return f},B.prototype.revBin=function(o,f,l){if(o===0||o===l-1)return o;for(var h=0,p=0;p<f;p++)h|=(o&1)<<f-p-1,o>>=1;return h},B.prototype.permute=function(o,f,l,h,p,w){for(var x=0;x<w;x++)h[x]=f[o[x]],p[x]=l[o[x]]},B.prototype.transform=function(o,f,l,h,p,w){this.permute(w,o,f,l,h,p);for(var x=1;x<p;x<<=1)for(var g=x<<1,s=Math.cos(2*Math.PI/g),v=Math.sin(2*Math.PI/g),T=0;T<p;T+=g)for(var $=s,G=v,ee=0;ee<x;ee++){var A=l[T+ee],E=h[T+ee],U=l[T+ee+x],K=h[T+ee+x],Z=$*U-G*K;K=$*K+G*U,U=Z,l[T+ee]=A+U,h[T+ee]=E+K,l[T+ee+x]=A-U,h[T+ee+x]=E-K,ee!==g&&(Z=s*$-v*G,G=s*G+v*$,$=Z)}},B.prototype.guessLen13b=function(o,f){var l=Math.max(f,o)|1,h=l&1,p=0;for(l=l/2|0;l;l=l>>>1)p++;return 1<<p+1+h},B.prototype.conjugate=function(o,f,l){if(!(l<=1))for(var h=0;h<l/2;h++){var p=o[h];o[h]=o[l-h-1],o[l-h-1]=p,p=f[h],f[h]=-f[l-h-1],f[l-h-1]=-p}},B.prototype.normalize13b=function(o,f){for(var l=0,h=0;h<f/2;h++){var p=Math.round(o[2*h+1]/f)*8192+Math.round(o[2*h]/f)+l;o[h]=p&67108863,p<67108864?l=0:l=p/67108864|0}return o},B.prototype.convert13b=function(o,f,l,h){for(var p=0,w=0;w<f;w++)p=p+(o[w]|0),l[2*w]=p&8191,p=p>>>13,l[2*w+1]=p&8191,p=p>>>13;for(w=2*f;w<h;++w)l[w]=0;i(p===0),i((p&-8192)===0)},B.prototype.stub=function(o){for(var f=new Array(o),l=0;l<o;l++)f[l]=0;return f},B.prototype.mulp=function(o,f,l){var h=2*this.guessLen13b(o.length,f.length),p=this.makeRBT(h),w=this.stub(h),x=new Array(h),g=new Array(h),s=new Array(h),v=new Array(h),T=new Array(h),$=new Array(h),G=l.words;G.length=h,this.convert13b(o.words,o.length,x,h),this.convert13b(f.words,f.length,v,h),this.transform(x,w,g,s,h,p),this.transform(v,w,T,$,h,p);for(var ee=0;ee<h;ee++){var A=g[ee]*T[ee]-s[ee]*$[ee];s[ee]=g[ee]*$[ee]+s[ee]*T[ee],g[ee]=A}return this.conjugate(g,s,h),this.transform(g,s,G,w,h,p),this.conjugate(G,w,h),this.normalize13b(G,h),l.negative=o.negative^f.negative,l.length=o.length+f.length,l.strip()},n.prototype.mul=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),this.mulTo(o,f)},n.prototype.mulf=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),I(this,o,f)},n.prototype.imul=function(o){return this.clone().mulTo(o,this)},n.prototype.imuln=function(o){i(typeof o=="number"),i(o<67108864);for(var f=0,l=0;l<this.length;l++){var h=(this.words[l]|0)*o,p=(h&67108863)+(f&67108863);f>>=26,f+=h/67108864|0,f+=p>>>26,this.words[l]=p&67108863}return f!==0&&(this.words[l]=f,this.length++),this},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var f=C(o);if(f.length===0)return new n(1);for(var l=this,h=0;h<f.length&&f[h]===0;h++,l=l.sqr());if(++h<f.length)for(var p=l.sqr();h<f.length;h++,p=p.sqr())f[h]!==0&&(l=l.mul(p));return l},n.prototype.iushln=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=67108863>>>26-f<<26-f,p;if(f!==0){var w=0;for(p=0;p<this.length;p++){var x=this.words[p]&h,g=(this.words[p]|0)-x<<f;this.words[p]=g|w,w=x>>>26-f}w&&(this.words[p]=w,this.length++)}if(l!==0){for(p=this.length-1;p>=0;p--)this.words[p+l]=this.words[p];for(p=0;p<l;p++)this.words[p]=0;this.length+=l}return this.strip()},n.prototype.ishln=function(o){return i(this.negative===0),this.iushln(o)},n.prototype.iushrn=function(o,f,l){i(typeof o=="number"&&o>=0);var h;f?h=(f-f%26)/26:h=0;var p=o%26,w=Math.min((o-p)/26,this.length),x=67108863^67108863>>>p<<p,g=l;if(h-=w,h=Math.max(0,h),g){for(var s=0;s<w;s++)g.words[s]=this.words[s];g.length=w}if(w!==0)if(this.length>w)for(this.length-=w,s=0;s<this.length;s++)this.words[s]=this.words[s+w];else this.words[0]=0,this.length=1;var v=0;for(s=this.length-1;s>=0&&(v!==0||s>=h);s--){var T=this.words[s]|0;this.words[s]=v<<26-p|T>>>p,v=T&x}return g&&v!==0&&(g.words[g.length++]=v),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(o,f,l){return i(this.negative===0),this.iushrn(o,f,l)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return!1;var p=this.words[l];return!!(p&h)},n.prototype.imaskn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(f!==0&&l++,this.length=Math.min(l,this.length),f!==0){var h=67108863^67108863>>>f<<f;this.words[this.length-1]&=h}return this.strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return i(typeof o=="number"),i(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},n.prototype._iaddn=function(o){this.words[0]+=o;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},n.prototype.isubn=function(o){if(i(typeof o=="number"),i(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,f,l){var h=o.length+l,p;this._expand(h);var w,x=0;for(p=0;p<o.length;p++){w=(this.words[p+l]|0)+x;var g=(o.words[p]|0)*f;w-=g&67108863,x=(w>>26)-(g/67108864|0),this.words[p+l]=w&67108863}for(;p<this.length-l;p++)w=(this.words[p+l]|0)+x,x=w>>26,this.words[p+l]=w&67108863;if(x===0)return this.strip();for(i(x===-1),x=0,p=0;p<this.length;p++)w=-(this.words[p]|0)+x,x=w>>26,this.words[p]=w&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(o,f){var l=this.length-o.length,h=this.clone(),p=o,w=p.words[p.length-1]|0,x=this._countBits(w);l=26-x,l!==0&&(p=p.ushln(l),h.iushln(l),w=p.words[p.length-1]|0);var g=h.length-p.length,s;if(f!=="mod"){s=new n(null),s.length=g+1,s.words=new Array(s.length);for(var v=0;v<s.length;v++)s.words[v]=0}var T=h.clone()._ishlnsubmul(p,1,g);T.negative===0&&(h=T,s&&(s.words[g]=1));for(var $=g-1;$>=0;$--){var G=(h.words[p.length+$]|0)*67108864+(h.words[p.length+$-1]|0);for(G=Math.min(G/w|0,67108863),h._ishlnsubmul(p,G,$);h.negative!==0;)G--,h.negative=0,h._ishlnsubmul(p,1,$),h.isZero()||(h.negative^=1);s&&(s.words[$]=G)}return s&&s.strip(),h.strip(),f!=="div"&&l!==0&&h.iushrn(l),{div:s||null,mod:h}},n.prototype.divmod=function(o,f,l){if(i(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,p,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,f),f!=="mod"&&(h=w.div.neg()),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.iadd(o)),{div:h,mod:p}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),f),f!=="mod"&&(h=w.div.neg()),{div:h,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),f),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.isub(o)),{div:w.div,mod:p}):o.length>this.length||this.cmp(o)<0?{div:new n(0),mod:this}:o.length===1?f==="div"?{div:this.divn(o.words[0]),mod:null}:f==="mod"?{div:null,mod:new n(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modn(o.words[0]))}:this._wordDiv(o,f)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var f=this.divmod(o);if(f.mod.isZero())return f.div;var l=f.div.negative!==0?f.mod.isub(o):f.mod,h=o.ushrn(1),p=o.andln(1),w=l.cmp(h);return w<0||p===1&&w===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},n.prototype.modn=function(o){i(o<=67108863);for(var f=(1<<26)%o,l=0,h=this.length-1;h>=0;h--)l=(f*l+(this.words[h]|0))%o;return l},n.prototype.idivn=function(o){i(o<=67108863);for(var f=0,l=this.length-1;l>=0;l--){var h=(this.words[l]|0)+f*67108864;this.words[l]=h/o|0,f=h%o}return this.strip()},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=new n(0),x=new n(1),g=0;f.isEven()&&l.isEven();)f.iushrn(1),l.iushrn(1),++g;for(var s=l.clone(),v=f.clone();!f.isZero();){for(var T=0,$=1;!(f.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(f.iushrn(T);T-- >0;)(h.isOdd()||p.isOdd())&&(h.iadd(s),p.isub(v)),h.iushrn(1),p.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(s),x.isub(v)),w.iushrn(1),x.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(w),p.isub(x)):(l.isub(f),w.isub(h),x.isub(p))}return{a:w,b:x,gcd:l.iushln(g)}},n.prototype._invmp=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=l.clone();f.cmpn(1)>0&&l.cmpn(1)>0;){for(var x=0,g=1;!(f.words[0]&g)&&x<26;++x,g<<=1);if(x>0)for(f.iushrn(x);x-- >0;)h.isOdd()&&h.iadd(w),h.iushrn(1);for(var s=0,v=1;!(l.words[0]&v)&&s<26;++s,v<<=1);if(s>0)for(l.iushrn(s);s-- >0;)p.isOdd()&&p.iadd(w),p.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(p)):(l.isub(f),p.isub(h))}var T;return f.cmpn(1)===0?T=h:T=p,T.cmpn(0)<0&&T.iadd(o),T},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var f=this.clone(),l=o.clone();f.negative=0,l.negative=0;for(var h=0;f.isEven()&&l.isEven();h++)f.iushrn(1),l.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;l.isEven();)l.iushrn(1);var p=f.cmp(l);if(p<0){var w=f;f=l,l=w}else if(p===0||l.cmpn(1)===0)break;f.isub(l)}while(!0);return l.iushln(h)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(o){return this.words[0]&o},n.prototype.bincn=function(o){i(typeof o=="number");var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return this._expand(l+1),this.words[l]|=h,this;for(var p=h,w=l;p!==0&&w<this.length;w++){var x=this.words[w]|0;x+=p,p=x>>>26,x&=67108863,this.words[w]=x}return p!==0&&(this.words[w]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(o){var f=o<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var l;if(this.length>1)l=1;else{f&&(o=-o),i(o<=67108863,"Number is too big");var h=this.words[0]|0;l=h===o?0:h<o?-1:1}return this.negative!==0?-l|0:l},n.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var f=this.ucmp(o);return this.negative!==0?-f|0:f},n.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var f=0,l=this.length-1;l>=0;l--){var h=this.words[l]|0,p=o.words[l]|0;if(h!==p){h<p?f=-1:h>p&&(f=1);break}}return f},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new V(o)},n.prototype.toRed=function(o){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},n.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(o){return this.red=o,this},n.prototype.forceRed=function(o){return i(!this.red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},n.prototype.redIAdd=function(o){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},n.prototype.redSub=function(o){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},n.prototype.redISub=function(o){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},n.prototype.redShl=function(o){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},n.prototype.redMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},n.prototype.redIMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},n.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(o){return i(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var H={k256:null,p224:null,p192:null,p25519:null};function F(_,o){this.name=_,this.p=new n(o,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil(this.n/13)),o},F.prototype.ireduce=function(o){var f=o,l;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),l=f.bitLength();while(l>this.n);var h=l<this.n?-1:f.ucmp(this.p);return h===0?(f.words[0]=0,f.length=1):h>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},F.prototype.split=function(o,f){o.iushrn(this.n,0,f)},F.prototype.imulK=function(o){return o.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(W,F),W.prototype.split=function(o,f){for(var l=4194303,h=Math.min(o.length,9),p=0;p<h;p++)f.words[p]=o.words[p];if(f.length=h,o.length<=9){o.words[0]=0,o.length=1;return}var w=o.words[9];for(f.words[f.length++]=w&l,p=10;p<o.length;p++){var x=o.words[p]|0;o.words[p-10]=(x&l)<<4|w>>>22,w=x}w>>>=22,o.words[p-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},W.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var f=0,l=0;l<o.length;l++){var h=o.words[l]|0;f+=h*977,o.words[l]=f&67108863,f=h*64+(f/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Y(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(Y,F);function ie(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(ie,F);function J(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(J,F),J.prototype.imulK=function(o){for(var f=0,l=0;l<o.length;l++){var h=(o.words[l]|0)*19+f,p=h&67108863;h>>>=26,o.words[l]=p,f=h}return f!==0&&(o.words[o.length++]=f),o},n._prime=function(o){if(H[o])return H[o];var f;if(o==="k256")f=new W;else if(o==="p224")f=new Y;else if(o==="p192")f=new ie;else if(o==="p25519")f=new J;else throw new Error("Unknown prime "+o);return H[o]=f,f};function V(_){if(typeof _=="string"){var o=n._prime(_);this.m=o.p,this.prime=o}else i(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}V.prototype._verify1=function(o){i(o.negative===0,"red works only with positives"),i(o.red,"red works only with red numbers")},V.prototype._verify2=function(o,f){i((o.negative|f.negative)===0,"red works only with positives"),i(o.red&&o.red===f.red,"red works only with red numbers")},V.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},V.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},V.prototype.add=function(o,f){this._verify2(o,f);var l=o.add(f);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},V.prototype.iadd=function(o,f){this._verify2(o,f);var l=o.iadd(f);return l.cmp(this.m)>=0&&l.isub(this.m),l},V.prototype.sub=function(o,f){this._verify2(o,f);var l=o.sub(f);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},V.prototype.isub=function(o,f){this._verify2(o,f);var l=o.isub(f);return l.cmpn(0)<0&&l.iadd(this.m),l},V.prototype.shl=function(o,f){return this._verify1(o),this.imod(o.ushln(f))},V.prototype.imul=function(o,f){return this._verify2(o,f),this.imod(o.imul(f))},V.prototype.mul=function(o,f){return this._verify2(o,f),this.imod(o.mul(f))},V.prototype.isqr=function(o){return this.imul(o,o.clone())},V.prototype.sqr=function(o){return this.mul(o,o)},V.prototype.sqrt=function(o){if(o.isZero())return o.clone();var f=this.m.andln(3);if(i(f%2===1),f===3){var l=this.m.add(new n(1)).iushrn(2);return this.pow(o,l)}for(var h=this.m.subn(1),p=0;!h.isZero()&&h.andln(1)===0;)p++,h.iushrn(1);i(!h.isZero());var w=new n(1).toRed(this),x=w.redNeg(),g=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new n(2*s*s).toRed(this);this.pow(s,g).cmp(x)!==0;)s.redIAdd(x);for(var v=this.pow(s,h),T=this.pow(o,h.addn(1).iushrn(1)),$=this.pow(o,h),G=p;$.cmp(w)!==0;){for(var ee=$,A=0;ee.cmp(w)!==0;A++)ee=ee.redSqr();i(A<G);var E=this.pow(v,new n(1).iushln(G-A-1));T=T.redMul(E),v=E.redSqr(),$=$.redMul(v),G=A}return T},V.prototype.invm=function(o){var f=o._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},V.prototype.pow=function(o,f){if(f.isZero())return new n(1).toRed(this);if(f.cmpn(1)===0)return o.clone();var l=4,h=new Array(1<<l);h[0]=new n(1).toRed(this),h[1]=o;for(var p=2;p<h.length;p++)h[p]=this.mul(h[p-1],o);var w=h[0],x=0,g=0,s=f.bitLength()%26;for(s===0&&(s=26),p=f.length-1;p>=0;p--){for(var v=f.words[p],T=s-1;T>=0;T--){var $=v>>T&1;if(w!==h[0]&&(w=this.sqr(w)),$===0&&x===0){g=0;continue}x<<=1,x|=$,g++,!(g!==l&&(p!==0||T!==0))&&(w=this.mul(w,h[x]),g=0,x=0)}s=26}return w},V.prototype.convertTo=function(o){var f=o.umod(this.m);return f===o?f.clone():f},V.prototype.convertFrom=function(o){var f=o.clone();return f.red=null,f},n.mont=function(o){return new oe(o)};function oe(_){V.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(oe,V),oe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},oe.prototype.convertFrom=function(o){var f=this.imod(o.mul(this.rinv));return f.red=null,f},oe.prototype.imul=function(o,f){if(o.isZero()||f.isZero())return o.words[0]=0,o.length=1,o;var l=o.imul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.mul=function(o,f){if(o.isZero()||f.isZero())return new n(0)._forceRed(this);var l=o.mul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.invm=function(o){var f=this.imod(o._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,Ye)})(Ng);var Yn=Ng.exports,kg={};(function(e){var t=e;function r(n,u){if(Array.isArray(n))return n.slice();if(!n)return[];var c=[];if(typeof n!="string"){for(var d=0;d<n.length;d++)c[d]=n[d]|0;return c}if(u==="hex"){n=n.replace(/[^a-z0-9]+/ig,""),n.length%2!==0&&(n="0"+n);for(var d=0;d<n.length;d+=2)c.push(parseInt(n[d]+n[d+1],16))}else for(var d=0;d<n.length;d++){var m=n.charCodeAt(d),M=m>>8,S=m&255;M?c.push(M,S):c.push(S)}return c}t.toArray=r;function i(n){return n.length===1?"0"+n:n}t.zero2=i;function a(n){for(var u="",c=0;c<n.length;c++)u+=i(n[c].toString(16));return u}t.toHex=a,t.encode=function(u,c){return c==="hex"?a(u):u}})(kg);(function(e){var t=e,r=Yn,i=Si,a=kg;t.assert=i,t.toArray=a.toArray,t.zero2=a.zero2,t.toHex=a.toHex,t.encode=a.encode;function n(M,S,R){var C=new Array(Math.max(M.bitLength(),R)+1);C.fill(0);for(var P=1<<S+1,k=M.clone(),L=0;L<C.length;L++){var I,B=k.andln(P-1);k.isOdd()?(B>(P>>1)-1?I=(P>>1)-B:I=B,k.isubn(I)):I=0,C[L]=I,k.iushrn(1)}return C}t.getNAF=n;function u(M,S){var R=[[],[]];M=M.clone(),S=S.clone();for(var C=0,P=0,k;M.cmpn(-C)>0||S.cmpn(-P)>0;){var L=M.andln(3)+C&3,I=S.andln(3)+P&3;L===3&&(L=-1),I===3&&(I=-1);var B;L&1?(k=M.andln(7)+C&7,(k===3||k===5)&&I===2?B=-L:B=L):B=0,R[0].push(B);var H;I&1?(k=S.andln(7)+P&7,(k===3||k===5)&&L===2?H=-I:H=I):H=0,R[1].push(H),2*C===B+1&&(C=1-C),2*P===H+1&&(P=1-P),M.iushrn(1),S.iushrn(1)}return R}t.getJSF=u;function c(M,S,R){var C="_"+S;M.prototype[S]=function(){return this[C]!==void 0?this[C]:this[C]=R.call(this)}}t.cachedProperty=c;function d(M){return typeof M=="string"?t.toArray(M,"hex"):M}t.parseBytes=d;function m(M){return new r(M,"hex","le")}t.intFromLE=m})(ri);var $g={},Wo=Yn,Lu=ri,rh=Lu.getNAF,lq=Lu.getJSF,ih=Lu.assert;function Do(e,t){this.type=e,this.p=new Wo(t.p,16),this.red=t.prime?Wo.red(t.prime):Wo.mont(this.p),this.zero=new Wo(0).toRed(this.red),this.one=new Wo(1).toRed(this.red),this.two=new Wo(2).toRed(this.red),this.n=t.n&&new Wo(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var hc=Do;Do.prototype.point=function(){throw new Error("Not implemented")};Do.prototype.validate=function(){throw new Error("Not implemented")};Do.prototype._fixedNafMul=function(t,r){ih(t.precomputed);var i=t._getDoubles(),a=rh(r,1,this._bitLength),n=(1<<i.step+1)-(i.step%2===0?2:1);n/=3;var u=[],c,d;for(c=0;c<a.length;c+=i.step){d=0;for(var m=c+i.step-1;m>=c;m--)d=(d<<1)+a[m];u.push(d)}for(var M=this.jpoint(null,null,null),S=this.jpoint(null,null,null),R=n;R>0;R--){for(c=0;c<u.length;c++)d=u[c],d===R?S=S.mixedAdd(i.points[c]):d===-R&&(S=S.mixedAdd(i.points[c].neg()));M=M.add(S)}return M.toP()};Do.prototype._wnafMul=function(t,r){var i=4,a=t._getNAFPoints(i);i=a.wnd;for(var n=a.points,u=rh(r,i,this._bitLength),c=this.jpoint(null,null,null),d=u.length-1;d>=0;d--){for(var m=0;d>=0&&u[d]===0;d--)m++;if(d>=0&&m++,c=c.dblp(m),d<0)break;var M=u[d];ih(M!==0),t.type==="affine"?M>0?c=c.mixedAdd(n[M-1>>1]):c=c.mixedAdd(n[-M-1>>1].neg()):M>0?c=c.add(n[M-1>>1]):c=c.add(n[-M-1>>1].neg())}return t.type==="affine"?c.toP():c};Do.prototype._wnafMulAdd=function(t,r,i,a,n){var u=this._wnafT1,c=this._wnafT2,d=this._wnafT3,m=0,M,S,R;for(M=0;M<a;M++){R=r[M];var C=R._getNAFPoints(t);u[M]=C.wnd,c[M]=C.points}for(M=a-1;M>=1;M-=2){var P=M-1,k=M;if(u[P]!==1||u[k]!==1){d[P]=rh(i[P],u[P],this._bitLength),d[k]=rh(i[k],u[k],this._bitLength),m=Math.max(d[P].length,m),m=Math.max(d[k].length,m);continue}var L=[r[P],null,null,r[k]];r[P].y.cmp(r[k].y)===0?(L[1]=r[P].add(r[k]),L[2]=r[P].toJ().mixedAdd(r[k].neg())):r[P].y.cmp(r[k].y.redNeg())===0?(L[1]=r[P].toJ().mixedAdd(r[k]),L[2]=r[P].add(r[k].neg())):(L[1]=r[P].toJ().mixedAdd(r[k]),L[2]=r[P].toJ().mixedAdd(r[k].neg()));var I=[-3,-1,-5,-7,0,7,5,1,3],B=lq(i[P],i[k]);for(m=Math.max(B[0].length,m),d[P]=new Array(m),d[k]=new Array(m),S=0;S<m;S++){var H=B[0][S]|0,F=B[1][S]|0;d[P][S]=I[(H+1)*3+(F+1)],d[k][S]=0,c[P]=L}}var W=this.jpoint(null,null,null),Y=this._wnafT4;for(M=m;M>=0;M--){for(var ie=0;M>=0;){var J=!0;for(S=0;S<a;S++)Y[S]=d[S][M]|0,Y[S]!==0&&(J=!1);if(!J)break;ie++,M--}if(M>=0&&ie++,W=W.dblp(ie),M<0)break;for(S=0;S<a;S++){var V=Y[S];V!==0&&(V>0?R=c[S][V-1>>1]:V<0&&(R=c[S][-V-1>>1].neg()),R.type==="affine"?W=W.mixedAdd(R):W=W.add(R))}}for(M=0;M<a;M++)c[M]=null;return n?W:W.toP()};function Ri(e,t){this.curve=e,this.type=t,this.precomputed=null}Do.BasePoint=Ri;Ri.prototype.eq=function(){throw new Error("Not implemented")};Ri.prototype.validate=function(){return this.curve.validate(this)};Do.prototype.decodePoint=function(t,r){t=Lu.toArray(t,r);var i=this.p.byteLength();if((t[0]===4||t[0]===6||t[0]===7)&&t.length-1===2*i){t[0]===6?ih(t[t.length-1]%2===0):t[0]===7&&ih(t[t.length-1]%2===1);var a=this.point(t.slice(1,1+i),t.slice(1+i,1+2*i));return a}else if((t[0]===2||t[0]===3)&&t.length-1===i)return this.pointFromX(t.slice(1,1+i),t[0]===3);throw new Error("Unknown point format")};Ri.prototype.encodeCompressed=function(t){return this.encode(t,!0)};Ri.prototype._encode=function(t){var r=this.curve.p.byteLength(),i=this.getX().toArray("be",r);return t?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",r))};Ri.prototype.encode=function(t,r){return Lu.encode(this._encode(r),t)};Ri.prototype.precompute=function(t){if(this.precomputed)return this;var r={doubles:null,naf:null,beta:null};return r.naf=this._getNAFPoints(8),r.doubles=this._getDoubles(4,t),r.beta=this._getBeta(),this.precomputed=r,this};Ri.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var r=this.precomputed.doubles;return r?r.points.length>=Math.ceil((t.bitLength()+1)/r.step):!1};Ri.prototype._getDoubles=function(t,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],a=this,n=0;n<r;n+=t){for(var u=0;u<t;u++)a=a.dbl();i.push(a)}return{step:t,points:i}};Ri.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var r=[this],i=(1<<t)-1,a=i===1?null:this.dbl(),n=1;n<i;n++)r[n]=r[n-1].add(a);return{wnd:t,points:r}};Ri.prototype._getBeta=function(){return null};Ri.prototype.dblp=function(t){for(var r=this,i=0;i<t;i++)r=r.dbl();return r};var hq=ri,Jt=Yn,Dg=Ze,Hs=hc,cq=hq.assert;function Ai(e){Hs.call(this,"short",e),this.a=new Jt(e.a,16).toRed(this.red),this.b=new Jt(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Dg(Ai,Hs);var dq=Ai;Ai.prototype._getEndomorphism=function(t){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var r,i;if(t.beta)r=new Jt(t.beta,16).toRed(this.red);else{var a=this._getEndoRoots(this.p);r=a[0].cmp(a[1])<0?a[0]:a[1],r=r.toRed(this.red)}if(t.lambda)i=new Jt(t.lambda,16);else{var n=this._getEndoRoots(this.n);this.g.mul(n[0]).x.cmp(this.g.x.redMul(r))===0?i=n[0]:(i=n[1],cq(this.g.mul(i).x.cmp(this.g.x.redMul(r))===0))}var u;return t.basis?u=t.basis.map(function(c){return{a:new Jt(c.a,16),b:new Jt(c.b,16)}}):u=this._getEndoBasis(i),{beta:r,lambda:i,basis:u}}};Ai.prototype._getEndoRoots=function(t){var r=t===this.p?this.red:Jt.mont(t),i=new Jt(2).toRed(r).redInvm(),a=i.redNeg(),n=new Jt(3).toRed(r).redNeg().redSqrt().redMul(i),u=a.redAdd(n).fromRed(),c=a.redSub(n).fromRed();return[u,c]};Ai.prototype._getEndoBasis=function(t){for(var r=this.n.ushrn(Math.floor(this.n.bitLength()/2)),i=t,a=this.n.clone(),n=new Jt(1),u=new Jt(0),c=new Jt(0),d=new Jt(1),m,M,S,R,C,P,k,L=0,I,B;i.cmpn(0)!==0;){var H=a.div(i);I=a.sub(H.mul(i)),B=c.sub(H.mul(n));var F=d.sub(H.mul(u));if(!S&&I.cmp(r)<0)m=k.neg(),M=n,S=I.neg(),R=B;else if(S&&++L===2)break;k=I,a=i,i=I,c=n,n=B,d=u,u=F}C=I.neg(),P=B;var W=S.sqr().add(R.sqr()),Y=C.sqr().add(P.sqr());return Y.cmp(W)>=0&&(C=m,P=M),S.negative&&(S=S.neg(),R=R.neg()),C.negative&&(C=C.neg(),P=P.neg()),[{a:S,b:R},{a:C,b:P}]};Ai.prototype._endoSplit=function(t){var r=this.endo.basis,i=r[0],a=r[1],n=a.b.mul(t).divRound(this.n),u=i.b.neg().mul(t).divRound(this.n),c=n.mul(i.a),d=u.mul(a.a),m=n.mul(i.b),M=u.mul(a.b),S=t.sub(c).sub(d),R=m.add(M).neg();return{k1:S,k2:R}};Ai.prototype.pointFromX=function(t,r){t=new Jt(t,16),t.red||(t=t.toRed(this.red));var i=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),a=i.redSqrt();if(a.redSqr().redSub(i).cmp(this.zero)!==0)throw new Error("invalid point");var n=a.fromRed().isOdd();return(r&&!n||!r&&n)&&(a=a.redNeg()),this.point(t,a)};Ai.prototype.validate=function(t){if(t.inf)return!0;var r=t.x,i=t.y,a=this.a.redMul(r),n=r.redSqr().redMul(r).redIAdd(a).redIAdd(this.b);return i.redSqr().redISub(n).cmpn(0)===0};Ai.prototype._endoWnafMulAdd=function(t,r,i){for(var a=this._endoWnafT1,n=this._endoWnafT2,u=0;u<t.length;u++){var c=this._endoSplit(r[u]),d=t[u],m=d._getBeta();c.k1.negative&&(c.k1.ineg(),d=d.neg(!0)),c.k2.negative&&(c.k2.ineg(),m=m.neg(!0)),a[u*2]=d,a[u*2+1]=m,n[u*2]=c.k1,n[u*2+1]=c.k2}for(var M=this._wnafMulAdd(1,a,n,u*2,i),S=0;S<u*2;S++)a[S]=null,n[S]=null;return M};function dr(e,t,r,i){Hs.BasePoint.call(this,e,"affine"),t===null&&r===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Jt(t,16),this.y=new Jt(r,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}Dg(dr,Hs.BasePoint);Ai.prototype.point=function(t,r,i){return new dr(this,t,r,i)};Ai.prototype.pointFromJSON=function(t,r){return dr.fromJSON(this,t,r)};dr.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var r=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var i=this.curve,a=function(n){return i.point(n.x.redMul(i.endo.beta),n.y)};t.beta=r,r.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(a)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(a)}}}return r}};dr.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};dr.fromJSON=function(t,r,i){typeof r=="string"&&(r=JSON.parse(r));var a=t.point(r[0],r[1],i);if(!r[2])return a;function n(c){return t.point(c[0],c[1],i)}var u=r[2];return a.precomputed={beta:null,doubles:u.doubles&&{step:u.doubles.step,points:[a].concat(u.doubles.points.map(n))},naf:u.naf&&{wnd:u.naf.wnd,points:[a].concat(u.naf.points.map(n))}},a};dr.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};dr.prototype.isInfinity=function(){return this.inf};dr.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(this.x.cmp(t.x)===0)return this.curve.point(null,null);var r=this.y.redSub(t.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(t.x).redInvm()));var i=r.redSqr().redISub(this.x).redISub(t.x),a=r.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,a)};dr.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(t.cmpn(0)===0)return this.curve.point(null,null);var r=this.curve.a,i=this.x.redSqr(),a=t.redInvm(),n=i.redAdd(i).redIAdd(i).redIAdd(r).redMul(a),u=n.redSqr().redISub(this.x.redAdd(this.x)),c=n.redMul(this.x.redSub(u)).redISub(this.y);return this.curve.point(u,c)};dr.prototype.getX=function(){return this.x.fromRed()};dr.prototype.getY=function(){return this.y.fromRed()};dr.prototype.mul=function(t){return t=new Jt(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)};dr.prototype.mulAdd=function(t,r,i){var a=[this,r],n=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(a,n):this.curve._wnafMulAdd(1,a,n,2)};dr.prototype.jmulAdd=function(t,r,i){var a=[this,r],n=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(a,n,!0):this.curve._wnafMulAdd(1,a,n,2,!0)};dr.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||this.x.cmp(t.x)===0&&this.y.cmp(t.y)===0)};dr.prototype.neg=function(t){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var i=this.precomputed,a=function(n){return n.neg()};r.precomputed={naf:i.naf&&{wnd:i.naf.wnd,points:i.naf.points.map(a)},doubles:i.doubles&&{step:i.doubles.step,points:i.doubles.points.map(a)}}}return r};dr.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var t=this.curve.jpoint(this.x,this.y,this.curve.one);return t};function wr(e,t,r,i){Hs.BasePoint.call(this,e,"jacobian"),t===null&&r===null&&i===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Jt(0)):(this.x=new Jt(t,16),this.y=new Jt(r,16),this.z=new Jt(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Dg(wr,Hs.BasePoint);Ai.prototype.jpoint=function(t,r,i){return new wr(this,t,r,i)};wr.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),r=t.redSqr(),i=this.x.redMul(r),a=this.y.redMul(r).redMul(t);return this.curve.point(i,a)};wr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};wr.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var r=t.z.redSqr(),i=this.z.redSqr(),a=this.x.redMul(r),n=t.x.redMul(i),u=this.y.redMul(r.redMul(t.z)),c=t.y.redMul(i.redMul(this.z)),d=a.redSub(n),m=u.redSub(c);if(d.cmpn(0)===0)return m.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var M=d.redSqr(),S=M.redMul(d),R=a.redMul(M),C=m.redSqr().redIAdd(S).redISub(R).redISub(R),P=m.redMul(R.redISub(C)).redISub(u.redMul(S)),k=this.z.redMul(t.z).redMul(d);return this.curve.jpoint(C,P,k)};wr.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var r=this.z.redSqr(),i=this.x,a=t.x.redMul(r),n=this.y,u=t.y.redMul(r).redMul(this.z),c=i.redSub(a),d=n.redSub(u);if(c.cmpn(0)===0)return d.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var m=c.redSqr(),M=m.redMul(c),S=i.redMul(m),R=d.redSqr().redIAdd(M).redISub(S).redISub(S),C=d.redMul(S.redISub(R)).redISub(n.redMul(M)),P=this.z.redMul(c);return this.curve.jpoint(R,C,P)};wr.prototype.dblp=function(t){if(t===0)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var i=this;for(r=0;r<t;r++)i=i.dbl();return i}var a=this.curve.a,n=this.curve.tinv,u=this.x,c=this.y,d=this.z,m=d.redSqr().redSqr(),M=c.redAdd(c);for(r=0;r<t;r++){var S=u.redSqr(),R=M.redSqr(),C=R.redSqr(),P=S.redAdd(S).redIAdd(S).redIAdd(a.redMul(m)),k=u.redMul(R),L=P.redSqr().redISub(k.redAdd(k)),I=k.redISub(L),B=P.redMul(I);B=B.redIAdd(B).redISub(C);var H=M.redMul(d);r+1<t&&(m=m.redMul(C)),u=L,d=H,M=B}return this.curve.jpoint(u,M.redMul(n),d)};wr.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};wr.prototype._zeroDbl=function(){var t,r,i;if(this.zOne){var a=this.x.redSqr(),n=this.y.redSqr(),u=n.redSqr(),c=this.x.redAdd(n).redSqr().redISub(a).redISub(u);c=c.redIAdd(c);var d=a.redAdd(a).redIAdd(a),m=d.redSqr().redISub(c).redISub(c),M=u.redIAdd(u);M=M.redIAdd(M),M=M.redIAdd(M),t=m,r=d.redMul(c.redISub(m)).redISub(M),i=this.y.redAdd(this.y)}else{var S=this.x.redSqr(),R=this.y.redSqr(),C=R.redSqr(),P=this.x.redAdd(R).redSqr().redISub(S).redISub(C);P=P.redIAdd(P);var k=S.redAdd(S).redIAdd(S),L=k.redSqr(),I=C.redIAdd(C);I=I.redIAdd(I),I=I.redIAdd(I),t=L.redISub(P).redISub(P),r=k.redMul(P.redISub(t)).redISub(I),i=this.y.redMul(this.z),i=i.redIAdd(i)}return this.curve.jpoint(t,r,i)};wr.prototype._threeDbl=function(){var t,r,i;if(this.zOne){var a=this.x.redSqr(),n=this.y.redSqr(),u=n.redSqr(),c=this.x.redAdd(n).redSqr().redISub(a).redISub(u);c=c.redIAdd(c);var d=a.redAdd(a).redIAdd(a).redIAdd(this.curve.a),m=d.redSqr().redISub(c).redISub(c);t=m;var M=u.redIAdd(u);M=M.redIAdd(M),M=M.redIAdd(M),r=d.redMul(c.redISub(m)).redISub(M),i=this.y.redAdd(this.y)}else{var S=this.z.redSqr(),R=this.y.redSqr(),C=this.x.redMul(R),P=this.x.redSub(S).redMul(this.x.redAdd(S));P=P.redAdd(P).redIAdd(P);var k=C.redIAdd(C);k=k.redIAdd(k);var L=k.redAdd(k);t=P.redSqr().redISub(L),i=this.y.redAdd(this.z).redSqr().redISub(R).redISub(S);var I=R.redSqr();I=I.redIAdd(I),I=I.redIAdd(I),I=I.redIAdd(I),r=P.redMul(k.redISub(t)).redISub(I)}return this.curve.jpoint(t,r,i)};wr.prototype._dbl=function(){var t=this.curve.a,r=this.x,i=this.y,a=this.z,n=a.redSqr().redSqr(),u=r.redSqr(),c=i.redSqr(),d=u.redAdd(u).redIAdd(u).redIAdd(t.redMul(n)),m=r.redAdd(r);m=m.redIAdd(m);var M=m.redMul(c),S=d.redSqr().redISub(M.redAdd(M)),R=M.redISub(S),C=c.redSqr();C=C.redIAdd(C),C=C.redIAdd(C),C=C.redIAdd(C);var P=d.redMul(R).redISub(C),k=i.redAdd(i).redMul(a);return this.curve.jpoint(S,P,k)};wr.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),r=this.y.redSqr(),i=this.z.redSqr(),a=r.redSqr(),n=t.redAdd(t).redIAdd(t),u=n.redSqr(),c=this.x.redAdd(r).redSqr().redISub(t).redISub(a);c=c.redIAdd(c),c=c.redAdd(c).redIAdd(c),c=c.redISub(u);var d=c.redSqr(),m=a.redIAdd(a);m=m.redIAdd(m),m=m.redIAdd(m),m=m.redIAdd(m);var M=n.redIAdd(c).redSqr().redISub(u).redISub(d).redISub(m),S=r.redMul(M);S=S.redIAdd(S),S=S.redIAdd(S);var R=this.x.redMul(d).redISub(S);R=R.redIAdd(R),R=R.redIAdd(R);var C=this.y.redMul(M.redMul(m.redISub(M)).redISub(c.redMul(d)));C=C.redIAdd(C),C=C.redIAdd(C),C=C.redIAdd(C);var P=this.z.redAdd(c).redSqr().redISub(i).redISub(d);return this.curve.jpoint(R,C,P)};wr.prototype.mul=function(t,r){return t=new Jt(t,r),this.curve._wnafMul(this,t)};wr.prototype.eq=function(t){if(t.type==="affine")return this.eq(t.toJ());if(this===t)return!0;var r=this.z.redSqr(),i=t.z.redSqr();if(this.x.redMul(i).redISub(t.x.redMul(r)).cmpn(0)!==0)return!1;var a=r.redMul(this.z),n=i.redMul(t.z);return this.y.redMul(n).redISub(t.y.redMul(a)).cmpn(0)===0};wr.prototype.eqXToP=function(t){var r=this.z.redSqr(),i=t.toRed(this.curve.red).redMul(r);if(this.x.cmp(i)===0)return!0;for(var a=t.clone(),n=this.curve.redN.redMul(r);;){if(a.iadd(this.curve.n),a.cmp(this.curve.p)>=0)return!1;if(i.redIAdd(n),this.x.cmp(i)===0)return!0}};wr.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};wr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Va=Yn,$x=Ze,cc=hc,pq=ri;function qs(e){cc.call(this,"mont",e),this.a=new Va(e.a,16).toRed(this.red),this.b=new Va(e.b,16).toRed(this.red),this.i4=new Va(4).toRed(this.red).redInvm(),this.two=new Va(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}$x(qs,cc);var vq=qs;qs.prototype.validate=function(t){var r=t.normalize().x,i=r.redSqr(),a=i.redMul(r).redAdd(i.redMul(this.a)).redAdd(r),n=a.redSqrt();return n.redSqr().cmp(a)===0};function cr(e,t,r){cc.BasePoint.call(this,e,"projective"),t===null&&r===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Va(t,16),this.z=new Va(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}$x(cr,cc.BasePoint);qs.prototype.decodePoint=function(t,r){return this.point(pq.toArray(t,r),1)};qs.prototype.point=function(t,r){return new cr(this,t,r)};qs.prototype.pointFromJSON=function(t){return cr.fromJSON(this,t)};cr.prototype.precompute=function(){};cr.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};cr.fromJSON=function(t,r){return new cr(t,r[0],r[1]||t.one)};cr.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};cr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};cr.prototype.dbl=function(){var t=this.x.redAdd(this.z),r=t.redSqr(),i=this.x.redSub(this.z),a=i.redSqr(),n=r.redSub(a),u=r.redMul(a),c=n.redMul(a.redAdd(this.curve.a24.redMul(n)));return this.curve.point(u,c)};cr.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};cr.prototype.diffAdd=function(t,r){var i=this.x.redAdd(this.z),a=this.x.redSub(this.z),n=t.x.redAdd(t.z),u=t.x.redSub(t.z),c=u.redMul(i),d=n.redMul(a),m=r.z.redMul(c.redAdd(d).redSqr()),M=r.x.redMul(c.redISub(d).redSqr());return this.curve.point(m,M)};cr.prototype.mul=function(t){for(var r=t.clone(),i=this,a=this.curve.point(null,null),n=this,u=[];r.cmpn(0)!==0;r.iushrn(1))u.push(r.andln(1));for(var c=u.length-1;c>=0;c--)u[c]===0?(i=i.diffAdd(a,n),a=a.dbl()):(a=i.diffAdd(a,n),i=i.dbl());return a};cr.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};cr.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};cr.prototype.eq=function(t){return this.getX().cmp(t.getX())===0};cr.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};cr.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var gq=ri,Cn=Yn,Dx=Ze,dc=hc,mq=gq.assert;function cn(e){this.twisted=(e.a|0)!==1,this.mOneA=this.twisted&&(e.a|0)===-1,this.extended=this.mOneA,dc.call(this,"edwards",e),this.a=new Cn(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Cn(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Cn(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),mq(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(e.c|0)===1}Dx(cn,dc);var yq=cn;cn.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)};cn.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)};cn.prototype.jpoint=function(t,r,i,a){return this.point(t,r,i,a)};cn.prototype.pointFromX=function(t,r){t=new Cn(t,16),t.red||(t=t.toRed(this.red));var i=t.redSqr(),a=this.c2.redSub(this.a.redMul(i)),n=this.one.redSub(this.c2.redMul(this.d).redMul(i)),u=a.redMul(n.redInvm()),c=u.redSqrt();if(c.redSqr().redSub(u).cmp(this.zero)!==0)throw new Error("invalid point");var d=c.fromRed().isOdd();return(r&&!d||!r&&d)&&(c=c.redNeg()),this.point(t,c)};cn.prototype.pointFromY=function(t,r){t=new Cn(t,16),t.red||(t=t.toRed(this.red));var i=t.redSqr(),a=i.redSub(this.c2),n=i.redMul(this.d).redMul(this.c2).redSub(this.a),u=a.redMul(n.redInvm());if(u.cmp(this.zero)===0){if(r)throw new Error("invalid point");return this.point(this.zero,t)}var c=u.redSqrt();if(c.redSqr().redSub(u).cmp(this.zero)!==0)throw new Error("invalid point");return c.fromRed().isOdd()!==r&&(c=c.redNeg()),this.point(c,t)};cn.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var r=t.x.redSqr(),i=t.y.redSqr(),a=r.redMul(this.a).redAdd(i),n=this.c2.redMul(this.one.redAdd(this.d.redMul(r).redMul(i)));return a.cmp(n)===0};function Yt(e,t,r,i,a){dc.BasePoint.call(this,e,"projective"),t===null&&r===null&&i===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Cn(t,16),this.y=new Cn(r,16),this.z=i?new Cn(i,16):this.curve.one,this.t=a&&new Cn(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}Dx(Yt,dc.BasePoint);cn.prototype.pointFromJSON=function(t){return Yt.fromJSON(this,t)};cn.prototype.point=function(t,r,i,a){return new Yt(this,t,r,i,a)};Yt.fromJSON=function(t,r){return new Yt(t,r[0],r[1],r[2])};Yt.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"};Yt.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Yt.prototype._extDbl=function(){var t=this.x.redSqr(),r=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var a=this.curve._mulA(t),n=this.x.redAdd(this.y).redSqr().redISub(t).redISub(r),u=a.redAdd(r),c=u.redSub(i),d=a.redSub(r),m=n.redMul(c),M=u.redMul(d),S=n.redMul(d),R=c.redMul(u);return this.curve.point(m,M,R,S)};Yt.prototype._projDbl=function(){var t=this.x.redAdd(this.y).redSqr(),r=this.x.redSqr(),i=this.y.redSqr(),a,n,u,c,d,m;if(this.curve.twisted){c=this.curve._mulA(r);var M=c.redAdd(i);this.zOne?(a=t.redSub(r).redSub(i).redMul(M.redSub(this.curve.two)),n=M.redMul(c.redSub(i)),u=M.redSqr().redSub(M).redSub(M)):(d=this.z.redSqr(),m=M.redSub(d).redISub(d),a=t.redSub(r).redISub(i).redMul(m),n=M.redMul(c.redSub(i)),u=M.redMul(m))}else c=r.redAdd(i),d=this.curve._mulC(this.z).redSqr(),m=c.redSub(d).redSub(d),a=this.curve._mulC(t.redISub(c)).redMul(m),n=this.curve._mulC(c).redMul(r.redISub(i)),u=c.redMul(m);return this.curve.point(a,n,u)};Yt.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Yt.prototype._extAdd=function(t){var r=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),i=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),a=this.t.redMul(this.curve.dd).redMul(t.t),n=this.z.redMul(t.z.redAdd(t.z)),u=i.redSub(r),c=n.redSub(a),d=n.redAdd(a),m=i.redAdd(r),M=u.redMul(c),S=d.redMul(m),R=u.redMul(m),C=c.redMul(d);return this.curve.point(M,S,C,R)};Yt.prototype._projAdd=function(t){var r=this.z.redMul(t.z),i=r.redSqr(),a=this.x.redMul(t.x),n=this.y.redMul(t.y),u=this.curve.d.redMul(a).redMul(n),c=i.redSub(u),d=i.redAdd(u),m=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(a).redISub(n),M=r.redMul(c).redMul(m),S,R;return this.curve.twisted?(S=r.redMul(d).redMul(n.redSub(this.curve._mulA(a))),R=c.redMul(d)):(S=r.redMul(d).redMul(n.redSub(a)),R=this.curve._mulC(c).redMul(d)),this.curve.point(M,S,R)};Yt.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)};Yt.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)};Yt.prototype.mulAdd=function(t,r,i){return this.curve._wnafMulAdd(1,[this,r],[t,i],2,!1)};Yt.prototype.jmulAdd=function(t,r,i){return this.curve._wnafMulAdd(1,[this,r],[t,i],2,!0)};Yt.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this};Yt.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Yt.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Yt.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Yt.prototype.eq=function(t){return this===t||this.getX().cmp(t.getX())===0&&this.getY().cmp(t.getY())===0};Yt.prototype.eqXToP=function(t){var r=t.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(r)===0)return!0;for(var i=t.clone(),a=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(a),this.x.cmp(r)===0)return!0}};Yt.prototype.toP=Yt.prototype.normalize;Yt.prototype.mixedAdd=Yt.prototype.add;(function(e){var t=e;t.base=hc,t.short=dq,t.mont=vq,t.edwards=yq})($g);var pc={},vc={},St={},bq=Si,wq=Ze;St.inherits=wq;function _q(e,t){return(e.charCodeAt(t)&64512)!==55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)===56320}function Mq(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e=="string")if(t){if(t==="hex")for(e=e.replace(/[^a-z0-9]+/ig,""),e.length%2!==0&&(e="0"+e),a=0;a<e.length;a+=2)r.push(parseInt(e[a]+e[a+1],16))}else for(var i=0,a=0;a<e.length;a++){var n=e.charCodeAt(a);n<128?r[i++]=n:n<2048?(r[i++]=n>>6|192,r[i++]=n&63|128):_q(e,a)?(n=65536+((n&1023)<<10)+(e.charCodeAt(++a)&1023),r[i++]=n>>18|240,r[i++]=n>>12&63|128,r[i++]=n>>6&63|128,r[i++]=n&63|128):(r[i++]=n>>12|224,r[i++]=n>>6&63|128,r[i++]=n&63|128)}else for(a=0;a<e.length;a++)r[a]=e[a]|0;return r}St.toArray=Mq;function Sq(e){for(var t="",r=0;r<e.length;r++)t+=jx(e[r].toString(16));return t}St.toHex=Sq;function Fx(e){var t=e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24;return t>>>0}St.htonl=Fx;function xq(e,t){for(var r="",i=0;i<e.length;i++){var a=e[i];t==="little"&&(a=Fx(a)),r+=Ux(a.toString(16))}return r}St.toHex32=xq;function jx(e){return e.length===1?"0"+e:e}St.zero2=jx;function Ux(e){return e.length===7?"0"+e:e.length===6?"00"+e:e.length===5?"000"+e:e.length===4?"0000"+e:e.length===3?"00000"+e:e.length===2?"000000"+e:e.length===1?"0000000"+e:e}St.zero8=Ux;function Eq(e,t,r,i){var a=r-t;bq(a%4===0);for(var n=new Array(a/4),u=0,c=t;u<n.length;u++,c+=4){var d;i==="big"?d=e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:d=e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],n[u]=d>>>0}return n}St.join32=Eq;function Rq(e,t){for(var r=new Array(e.length*4),i=0,a=0;i<e.length;i++,a+=4){var n=e[i];t==="big"?(r[a]=n>>>24,r[a+1]=n>>>16&255,r[a+2]=n>>>8&255,r[a+3]=n&255):(r[a+3]=n>>>24,r[a+2]=n>>>16&255,r[a+1]=n>>>8&255,r[a]=n&255)}return r}St.split32=Rq;function Aq(e,t){return e>>>t|e<<32-t}St.rotr32=Aq;function Tq(e,t){return e<<t|e>>>32-t}St.rotl32=Tq;function Oq(e,t){return e+t>>>0}St.sum32=Oq;function Iq(e,t,r){return e+t+r>>>0}St.sum32_3=Iq;function Pq(e,t,r,i){return e+t+r+i>>>0}St.sum32_4=Pq;function Cq(e,t,r,i,a){return e+t+r+i+a>>>0}St.sum32_5=Cq;function Bq(e,t,r,i){var a=e[t],n=e[t+1],u=i+n>>>0,c=(u<i?1:0)+r+a;e[t]=c>>>0,e[t+1]=u}St.sum64=Bq;function Lq(e,t,r,i){var a=t+i>>>0,n=(a<t?1:0)+e+r;return n>>>0}St.sum64_hi=Lq;function Nq(e,t,r,i){var a=t+i;return a>>>0}St.sum64_lo=Nq;function kq(e,t,r,i,a,n,u,c){var d=0,m=t;m=m+i>>>0,d+=m<t?1:0,m=m+n>>>0,d+=m<n?1:0,m=m+c>>>0,d+=m<c?1:0;var M=e+r+a+u+d;return M>>>0}St.sum64_4_hi=kq;function $q(e,t,r,i,a,n,u,c){var d=t+i+n+c;return d>>>0}St.sum64_4_lo=$q;function Dq(e,t,r,i,a,n,u,c,d,m){var M=0,S=t;S=S+i>>>0,M+=S<t?1:0,S=S+n>>>0,M+=S<n?1:0,S=S+c>>>0,M+=S<c?1:0,S=S+m>>>0,M+=S<m?1:0;var R=e+r+a+u+d+M;return R>>>0}St.sum64_5_hi=Dq;function Fq(e,t,r,i,a,n,u,c,d,m){var M=t+i+n+c+m;return M>>>0}St.sum64_5_lo=Fq;function jq(e,t,r){var i=t<<32-r|e>>>r;return i>>>0}St.rotr64_hi=jq;function Uq(e,t,r){var i=e<<32-r|t>>>r;return i>>>0}St.rotr64_lo=Uq;function Hq(e,t,r){return e>>>r}St.shr64_hi=Hq;function qq(e,t,r){var i=e<<32-r|t>>>r;return i>>>0}St.shr64_lo=qq;var Ws={},hw=St,Wq=Si;function gc(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Ws.BlockHash=gc;gc.prototype.update=function(t,r){if(t=hw.toArray(t,r),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){t=this.pending;var i=t.length%this._delta8;this.pending=t.slice(t.length-i,t.length),this.pending.length===0&&(this.pending=null),t=hw.join32(t,0,t.length-i,this.endian);for(var a=0;a<t.length;a+=this._delta32)this._update(t,a,a+this._delta32)}return this};gc.prototype.digest=function(t){return this.update(this._pad()),Wq(this.pending===null),this._digest(t)};gc.prototype._pad=function(){var t=this.pendingTotal,r=this._delta8,i=r-(t+this.padLength)%r,a=new Array(i+this.padLength);a[0]=128;for(var n=1;n<i;n++)a[n]=0;if(t<<=3,this.endian==="big"){for(var u=8;u<this.padLength;u++)a[n++]=0;a[n++]=0,a[n++]=0,a[n++]=0,a[n++]=0,a[n++]=t>>>24&255,a[n++]=t>>>16&255,a[n++]=t>>>8&255,a[n++]=t&255}else for(a[n++]=t&255,a[n++]=t>>>8&255,a[n++]=t>>>16&255,a[n++]=t>>>24&255,a[n++]=0,a[n++]=0,a[n++]=0,a[n++]=0,u=8;u<this.padLength;u++)a[n++]=0;return a};var Ks={},dn={},Kq=St,rn=Kq.rotr32;function Vq(e,t,r,i){if(e===0)return Hx(t,r,i);if(e===1||e===3)return Wx(t,r,i);if(e===2)return qx(t,r,i)}dn.ft_1=Vq;function Hx(e,t,r){return e&t^~e&r}dn.ch32=Hx;function qx(e,t,r){return e&t^e&r^t&r}dn.maj32=qx;function Wx(e,t,r){return e^t^r}dn.p32=Wx;function zq(e){return rn(e,2)^rn(e,13)^rn(e,22)}dn.s0_256=zq;function Gq(e){return rn(e,6)^rn(e,11)^rn(e,25)}dn.s1_256=Gq;function Yq(e){return rn(e,7)^rn(e,18)^e>>>3}dn.g0_256=Yq;function Zq(e){return rn(e,17)^rn(e,19)^e>>>10}dn.g1_256=Zq;var xs=St,Xq=Ws,Jq=dn,_0=xs.rotl32,mf=xs.sum32,Qq=xs.sum32_5,eW=Jq.ft_1,Kx=Xq.BlockHash,tW=[1518500249,1859775393,2400959708,3395469782];function un(){if(!(this instanceof un))return new un;Kx.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}xs.inherits(un,Kx);var rW=un;un.blockSize=512;un.outSize=160;un.hmacStrength=80;un.padLength=64;un.prototype._update=function(t,r){for(var i=this.W,a=0;a<16;a++)i[a]=t[r+a];for(;a<i.length;a++)i[a]=_0(i[a-3]^i[a-8]^i[a-14]^i[a-16],1);var n=this.h[0],u=this.h[1],c=this.h[2],d=this.h[3],m=this.h[4];for(a=0;a<i.length;a++){var M=~~(a/20),S=Qq(_0(n,5),eW(M,u,c,d),m,i[a],tW[M]);m=d,d=c,c=_0(u,30),u=n,n=S}this.h[0]=mf(this.h[0],n),this.h[1]=mf(this.h[1],u),this.h[2]=mf(this.h[2],c),this.h[3]=mf(this.h[3],d),this.h[4]=mf(this.h[4],m)};un.prototype._digest=function(t){return t==="hex"?xs.toHex32(this.h,"big"):xs.split32(this.h,"big")};var Es=St,iW=Ws,Vs=dn,nW=Si,Oi=Es.sum32,oW=Es.sum32_4,aW=Es.sum32_5,sW=Vs.ch32,fW=Vs.maj32,uW=Vs.s0_256,lW=Vs.s1_256,hW=Vs.g0_256,cW=Vs.g1_256,Vx=iW.BlockHash,dW=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function ln(){if(!(this instanceof ln))return new ln;Vx.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=dW,this.W=new Array(64)}Es.inherits(ln,Vx);var zx=ln;ln.blockSize=512;ln.outSize=256;ln.hmacStrength=192;ln.padLength=64;ln.prototype._update=function(t,r){for(var i=this.W,a=0;a<16;a++)i[a]=t[r+a];for(;a<i.length;a++)i[a]=oW(cW(i[a-2]),i[a-7],hW(i[a-15]),i[a-16]);var n=this.h[0],u=this.h[1],c=this.h[2],d=this.h[3],m=this.h[4],M=this.h[5],S=this.h[6],R=this.h[7];for(nW(this.k.length===i.length),a=0;a<i.length;a++){var C=aW(R,lW(m),sW(m,M,S),this.k[a],i[a]),P=Oi(uW(n),fW(n,u,c));R=S,S=M,M=m,m=Oi(d,C),d=c,c=u,u=n,n=Oi(C,P)}this.h[0]=Oi(this.h[0],n),this.h[1]=Oi(this.h[1],u),this.h[2]=Oi(this.h[2],c),this.h[3]=Oi(this.h[3],d),this.h[4]=Oi(this.h[4],m),this.h[5]=Oi(this.h[5],M),this.h[6]=Oi(this.h[6],S),this.h[7]=Oi(this.h[7],R)};ln.prototype._digest=function(t){return t==="hex"?Es.toHex32(this.h,"big"):Es.split32(this.h,"big")};var Gp=St,Gx=zx;function Hn(){if(!(this instanceof Hn))return new Hn;Gx.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Gp.inherits(Hn,Gx);var pW=Hn;Hn.blockSize=512;Hn.outSize=224;Hn.hmacStrength=192;Hn.padLength=64;Hn.prototype._digest=function(t){return t==="hex"?Gp.toHex32(this.h.slice(0,7),"big"):Gp.split32(this.h.slice(0,7),"big")};var Vr=St,vW=Ws,gW=Si,nn=Vr.rotr64_hi,on=Vr.rotr64_lo,Yx=Vr.shr64_hi,Zx=Vr.shr64_lo,to=Vr.sum64,M0=Vr.sum64_hi,S0=Vr.sum64_lo,mW=Vr.sum64_4_hi,yW=Vr.sum64_4_lo,bW=Vr.sum64_5_hi,wW=Vr.sum64_5_lo,Xx=vW.BlockHash,_W=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Di(){if(!(this instanceof Di))return new Di;Xx.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=_W,this.W=new Array(160)}Vr.inherits(Di,Xx);var Jx=Di;Di.blockSize=1024;Di.outSize=512;Di.hmacStrength=192;Di.padLength=128;Di.prototype._prepareBlock=function(t,r){for(var i=this.W,a=0;a<32;a++)i[a]=t[r+a];for(;a<i.length;a+=2){var n=CW(i[a-4],i[a-3]),u=BW(i[a-4],i[a-3]),c=i[a-14],d=i[a-13],m=IW(i[a-30],i[a-29]),M=PW(i[a-30],i[a-29]),S=i[a-32],R=i[a-31];i[a]=mW(n,u,c,d,m,M,S,R),i[a+1]=yW(n,u,c,d,m,M,S,R)}};Di.prototype._update=function(t,r){this._prepareBlock(t,r);var i=this.W,a=this.h[0],n=this.h[1],u=this.h[2],c=this.h[3],d=this.h[4],m=this.h[5],M=this.h[6],S=this.h[7],R=this.h[8],C=this.h[9],P=this.h[10],k=this.h[11],L=this.h[12],I=this.h[13],B=this.h[14],H=this.h[15];gW(this.k.length===i.length);for(var F=0;F<i.length;F+=2){var W=B,Y=H,ie=TW(R,C),J=OW(R,C),V=MW(R,C,P,k,L),oe=SW(R,C,P,k,L,I),_=this.k[F],o=this.k[F+1],f=i[F],l=i[F+1],h=bW(W,Y,ie,J,V,oe,_,o,f,l),p=wW(W,Y,ie,J,V,oe,_,o,f,l);W=RW(a,n),Y=AW(a,n),ie=xW(a,n,u,c,d),J=EW(a,n,u,c,d,m);var w=M0(W,Y,ie,J),x=S0(W,Y,ie,J);B=L,H=I,L=P,I=k,P=R,k=C,R=M0(M,S,h,p),C=S0(S,S,h,p),M=d,S=m,d=u,m=c,u=a,c=n,a=M0(h,p,w,x),n=S0(h,p,w,x)}to(this.h,0,a,n),to(this.h,2,u,c),to(this.h,4,d,m),to(this.h,6,M,S),to(this.h,8,R,C),to(this.h,10,P,k),to(this.h,12,L,I),to(this.h,14,B,H)};Di.prototype._digest=function(t){return t==="hex"?Vr.toHex32(this.h,"big"):Vr.split32(this.h,"big")};function MW(e,t,r,i,a){var n=e&r^~e&a;return n<0&&(n+=4294967296),n}function SW(e,t,r,i,a,n){var u=t&i^~t&n;return u<0&&(u+=4294967296),u}function xW(e,t,r,i,a){var n=e&r^e&a^r&a;return n<0&&(n+=4294967296),n}function EW(e,t,r,i,a,n){var u=t&i^t&n^i&n;return u<0&&(u+=4294967296),u}function RW(e,t){var r=nn(e,t,28),i=nn(t,e,2),a=nn(t,e,7),n=r^i^a;return n<0&&(n+=4294967296),n}function AW(e,t){var r=on(e,t,28),i=on(t,e,2),a=on(t,e,7),n=r^i^a;return n<0&&(n+=4294967296),n}function TW(e,t){var r=nn(e,t,14),i=nn(e,t,18),a=nn(t,e,9),n=r^i^a;return n<0&&(n+=4294967296),n}function OW(e,t){var r=on(e,t,14),i=on(e,t,18),a=on(t,e,9),n=r^i^a;return n<0&&(n+=4294967296),n}function IW(e,t){var r=nn(e,t,1),i=nn(e,t,8),a=Yx(e,t,7),n=r^i^a;return n<0&&(n+=4294967296),n}function PW(e,t){var r=on(e,t,1),i=on(e,t,8),a=Zx(e,t,7),n=r^i^a;return n<0&&(n+=4294967296),n}function CW(e,t){var r=nn(e,t,19),i=nn(t,e,29),a=Yx(e,t,6),n=r^i^a;return n<0&&(n+=4294967296),n}function BW(e,t){var r=on(e,t,19),i=on(t,e,29),a=Zx(e,t,6),n=r^i^a;return n<0&&(n+=4294967296),n}var Yp=St,Qx=Jx;function qn(){if(!(this instanceof qn))return new qn;Qx.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Yp.inherits(qn,Qx);var LW=qn;qn.blockSize=1024;qn.outSize=384;qn.hmacStrength=192;qn.padLength=128;qn.prototype._digest=function(t){return t==="hex"?Yp.toHex32(this.h.slice(0,12),"big"):Yp.split32(this.h.slice(0,12),"big")};Ks.sha1=rW;Ks.sha224=pW;Ks.sha256=zx;Ks.sha384=LW;Ks.sha512=Jx;var e4={},pa=St,NW=Ws,tl=pa.rotl32,cw=pa.sum32,yf=pa.sum32_3,dw=pa.sum32_4,t4=NW.BlockHash;function hn(){if(!(this instanceof hn))return new hn;t4.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}pa.inherits(hn,t4);e4.ripemd160=hn;hn.blockSize=512;hn.outSize=160;hn.hmacStrength=192;hn.padLength=64;hn.prototype._update=function(t,r){for(var i=this.h[0],a=this.h[1],n=this.h[2],u=this.h[3],c=this.h[4],d=i,m=a,M=n,S=u,R=c,C=0;C<80;C++){var P=cw(tl(dw(i,pw(C,a,n,u),t[DW[C]+r],kW(C)),jW[C]),c);i=c,c=u,u=tl(n,10),n=a,a=P,P=cw(tl(dw(d,pw(79-C,m,M,S),t[FW[C]+r],$W(C)),UW[C]),R),d=R,R=S,S=tl(M,10),M=m,m=P}P=yf(this.h[1],n,S),this.h[1]=yf(this.h[2],u,R),this.h[2]=yf(this.h[3],c,d),this.h[3]=yf(this.h[4],i,m),this.h[4]=yf(this.h[0],a,M),this.h[0]=P};hn.prototype._digest=function(t){return t==="hex"?pa.toHex32(this.h,"little"):pa.split32(this.h,"little")};function pw(e,t,r,i){return e<=15?t^r^i:e<=31?t&r|~t&i:e<=47?(t|~r)^i:e<=63?t&i|r&~i:t^(r|~i)}function kW(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function $W(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var DW=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],FW=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],jW=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],UW=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],HW=St,qW=Si;function Rs(e,t,r){if(!(this instanceof Rs))return new Rs(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(HW.toArray(t,r))}var WW=Rs;Rs.prototype._init=function(t){t.length>this.blockSize&&(t=new this.Hash().update(t).digest()),qW(t.length<=this.blockSize);for(var r=t.length;r<this.blockSize;r++)t.push(0);for(r=0;r<t.length;r++)t[r]^=54;for(this.inner=new this.Hash().update(t),r=0;r<t.length;r++)t[r]^=106;this.outer=new this.Hash().update(t)};Rs.prototype.update=function(t,r){return this.inner.update(t,r),this};Rs.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)};(function(e){var t=e;t.utils=St,t.common=Ws,t.sha=Ks,t.ripemd=e4,t.hmac=WW,t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160})(vc);var x0,vw;function KW(){return vw||(vw=1,x0={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}),x0}(function(e){var t=e,r=vc,i=$g,a=ri,n=a.assert;function u(m){m.type==="short"?this.curve=new i.short(m):m.type==="edwards"?this.curve=new i.edwards(m):this.curve=new i.mont(m),this.g=this.curve.g,this.n=this.curve.n,this.hash=m.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}t.PresetCurve=u;function c(m,M){Object.defineProperty(t,m,{configurable:!0,enumerable:!0,get:function(){var S=new u(M);return Object.defineProperty(t,m,{configurable:!0,enumerable:!0,value:S}),S}})}c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var d;try{d=KW()}catch{d=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",d]})})(pc);var VW=vc,aa=kg,r4=Si;function Bo(e){if(!(this instanceof Bo))return new Bo(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=aa.toArray(e.entropy,e.entropyEnc||"hex"),r=aa.toArray(e.nonce,e.nonceEnc||"hex"),i=aa.toArray(e.pers,e.persEnc||"hex");r4(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}var zW=Bo;Bo.prototype._init=function(t,r,i){var a=t.concat(r).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n<this.V.length;n++)this.K[n]=0,this.V[n]=1;this._update(a),this._reseed=1,this.reseedInterval=281474976710656};Bo.prototype._hmac=function(){return new VW.hmac(this.hash,this.K)};Bo.prototype._update=function(t){var r=this._hmac().update(this.V).update([0]);t&&(r=r.update(t)),this.K=r.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())};Bo.prototype.reseed=function(t,r,i,a){typeof r!="string"&&(a=i,i=r,r=null),t=aa.toArray(t,r),i=aa.toArray(i,a),r4(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1};Bo.prototype.generate=function(t,r,i,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(a=i,i=r,r=null),i&&(i=aa.toArray(i,a||"hex"),this._update(i));for(var n=[];n.length<t;)this.V=this._hmac().update(this.V).digest(),n=n.concat(this.V);var u=n.slice(0,t);return this._update(i),this._reseed++,aa.encode(u,r)};var GW=Yn,YW=ri,Zp=YW.assert;function Ar(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var ZW=Ar;Ar.fromPublic=function(t,r,i){return r instanceof Ar?r:new Ar(t,{pub:r,pubEnc:i})};Ar.fromPrivate=function(t,r,i){return r instanceof Ar?r:new Ar(t,{priv:r,privEnc:i})};Ar.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};Ar.prototype.getPublic=function(t,r){return typeof t=="string"&&(r=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),r?this.pub.encode(r,t):this.pub};Ar.prototype.getPrivate=function(t){return t==="hex"?this.priv.toString(16,2):this.priv};Ar.prototype._importPrivate=function(t,r){this.priv=new GW(t,r||16),this.priv=this.priv.umod(this.ec.curve.n)};Ar.prototype._importPublic=function(t,r){if(t.x||t.y){this.ec.curve.type==="mont"?Zp(t.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&Zp(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y);return}this.pub=this.ec.curve.decodePoint(t,r)};Ar.prototype.derive=function(t){return t.validate()||Zp(t.validate(),"public point not validated"),t.mul(this.priv).getX()};Ar.prototype.sign=function(t,r,i){return this.ec.sign(t,this,r,i)};Ar.prototype.verify=function(t,r){return this.ec.verify(t,r,this)};Ar.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var nh=Yn,Fg=ri,XW=Fg.assert;function mc(e,t){if(e instanceof mc)return e;this._importDER(e,t)||(XW(e.r&&e.s,"Signature without r or s"),this.r=new nh(e.r,16),this.s=new nh(e.s,16),e.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var JW=mc;function QW(){this.place=0}function E0(e,t){var r=e[t.place++];if(!(r&128))return r;var i=r&15;if(i===0||i>4)return!1;for(var a=0,n=0,u=t.place;n<i;n++,u++)a<<=8,a|=e[u],a>>>=0;return a<=127?!1:(t.place=u,a)}function gw(e){for(var t=0,r=e.length-1;!e[t]&&!(e[t+1]&128)&&t<r;)t++;return t===0?e:e.slice(t)}mc.prototype._importDER=function(t,r){t=Fg.toArray(t,r);var i=new QW;if(t[i.place++]!==48)return!1;var a=E0(t,i);if(a===!1||a+i.place!==t.length||t[i.place++]!==2)return!1;var n=E0(t,i);if(n===!1)return!1;var u=t.slice(i.place,n+i.place);if(i.place+=n,t[i.place++]!==2)return!1;var c=E0(t,i);if(c===!1||t.length!==c+i.place)return!1;var d=t.slice(i.place,c+i.place);if(u[0]===0)if(u[1]&128)u=u.slice(1);else return!1;if(d[0]===0)if(d[1]&128)d=d.slice(1);else return!1;return this.r=new nh(u),this.s=new nh(d),this.recoveryParam=null,!0};function R0(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(r|128);--r;)e.push(t>>>(r<<3)&255);e.push(t)}mc.prototype.toDER=function(t){var r=this.r.toArray(),i=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),i[0]&128&&(i=[0].concat(i)),r=gw(r),i=gw(i);!i[0]&&!(i[1]&128);)i=i.slice(1);var a=[2];R0(a,r.length),a=a.concat(r),a.push(2),R0(a,i.length);var n=a.concat(i),u=[48];return R0(u,n.length),u=u.concat(n),Fg.encode(u,t)};var A0,mw;function eK(){if(mw)return A0;mw=1;var e=Yn,t=zW,r=ri,i=pc,a=Ig(),n=r.assert,u=ZW,c=JW;function d(m){if(!(this instanceof d))return new d(m);typeof m=="string"&&(n(Object.prototype.hasOwnProperty.call(i,m),"Unknown curve "+m),m=i[m]),m instanceof i.PresetCurve&&(m={curve:m}),this.curve=m.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=m.curve.g,this.g.precompute(m.curve.n.bitLength()+1),this.hash=m.hash||m.curve.hash}return A0=d,d.prototype.keyPair=function(M){return new u(this,M)},d.prototype.keyFromPrivate=function(M,S){return u.fromPrivate(this,M,S)},d.prototype.keyFromPublic=function(M,S){return u.fromPublic(this,M,S)},d.prototype.genKeyPair=function(M){M||(M={});for(var S=new t({hash:this.hash,pers:M.pers,persEnc:M.persEnc||"utf8",entropy:M.entropy||a(this.hash.hmacStrength),entropyEnc:M.entropy&&M.entropyEnc||"utf8",nonce:this.n.toArray()}),R=this.n.byteLength(),C=this.n.sub(new e(2));;){var P=new e(S.generate(R));if(!(P.cmp(C)>0))return P.iaddn(1),this.keyFromPrivate(P)}},d.prototype._truncateToN=function(M,S){var R=M.byteLength()*8-this.n.bitLength();return R>0&&(M=M.ushrn(R)),!S&&M.cmp(this.n)>=0?M.sub(this.n):M},d.prototype.sign=function(M,S,R,C){typeof R=="object"&&(C=R,R=null),C||(C={}),S=this.keyFromPrivate(S,R),M=this._truncateToN(new e(M,16));for(var P=this.n.byteLength(),k=S.getPrivate().toArray("be",P),L=M.toArray("be",P),I=new t({hash:this.hash,entropy:k,nonce:L,pers:C.pers,persEnc:C.persEnc||"utf8"}),B=this.n.sub(new e(1)),H=0;;H++){var F=C.k?C.k(H):new e(I.generate(this.n.byteLength()));if(F=this._truncateToN(F,!0),!(F.cmpn(1)<=0||F.cmp(B)>=0)){var W=this.g.mul(F);if(!W.isInfinity()){var Y=W.getX(),ie=Y.umod(this.n);if(ie.cmpn(0)!==0){var J=F.invm(this.n).mul(ie.mul(S.getPrivate()).iadd(M));if(J=J.umod(this.n),J.cmpn(0)!==0){var V=(W.getY().isOdd()?1:0)|(Y.cmp(ie)!==0?2:0);return C.canonical&&J.cmp(this.nh)>0&&(J=this.n.sub(J),V^=1),new c({r:ie,s:J,recoveryParam:V})}}}}}},d.prototype.verify=function(M,S,R,C){M=this._truncateToN(new e(M,16)),R=this.keyFromPublic(R,C),S=new c(S,"hex");var P=S.r,k=S.s;if(P.cmpn(1)<0||P.cmp(this.n)>=0||k.cmpn(1)<0||k.cmp(this.n)>=0)return!1;var L=k.invm(this.n),I=L.mul(M).umod(this.n),B=L.mul(P).umod(this.n),H;return this.curve._maxwellTrick?(H=this.g.jmulAdd(I,R.getPublic(),B),H.isInfinity()?!1:H.eqXToP(P)):(H=this.g.mulAdd(I,R.getPublic(),B),H.isInfinity()?!1:H.getX().umod(this.n).cmp(P)===0)},d.prototype.recoverPubKey=function(m,M,S,R){n((3&S)===S,"The recovery param is more than two bits"),M=new c(M,R);var C=this.n,P=new e(m),k=M.r,L=M.s,I=S&1,B=S>>1;if(k.cmp(this.curve.p.umod(this.curve.n))>=0&&B)throw new Error("Unable to find sencond key candinate");B?k=this.curve.pointFromX(k.add(this.curve.n),I):k=this.curve.pointFromX(k,I);var H=M.r.invm(C),F=C.sub(P).mul(H).umod(C),W=L.mul(H).umod(C);return this.g.mulAdd(F,k,W)},d.prototype.getKeyRecoveryParam=function(m,M,S,R){if(M=new c(M,R),M.recoveryParam!==null)return M.recoveryParam;for(var C=0;C<4;C++){var P;try{P=this.recoverPubKey(m,M,C)}catch{continue}if(P.eq(S))return C}throw new Error("Unable to find valid recovery factor")},A0}var Nu=ri,i4=Nu.assert,yw=Nu.parseBytes,zs=Nu.cachedProperty;function hr(e,t){this.eddsa=e,this._secret=yw(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=yw(t.pub)}hr.fromPublic=function(t,r){return r instanceof hr?r:new hr(t,{pub:r})};hr.fromSecret=function(t,r){return r instanceof hr?r:new hr(t,{secret:r})};hr.prototype.secret=function(){return this._secret};zs(hr,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});zs(hr,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});zs(hr,"privBytes",function(){var t=this.eddsa,r=this.hash(),i=t.encodingLength-1,a=r.slice(0,t.encodingLength);return a[0]&=248,a[i]&=127,a[i]|=64,a});zs(hr,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});zs(hr,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});zs(hr,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});hr.prototype.sign=function(t){return i4(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)};hr.prototype.verify=function(t,r){return this.eddsa.verify(t,r,this)};hr.prototype.getSecret=function(t){return i4(this._secret,"KeyPair is public only"),Nu.encode(this.secret(),t)};hr.prototype.getPublic=function(t){return Nu.encode(this.pubBytes(),t)};var tK=hr,rK=Yn,yc=ri,iK=yc.assert,bc=yc.cachedProperty,nK=yc.parseBytes;function Pa(e,t){this.eddsa=e,typeof t!="object"&&(t=nK(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),iK(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof rK&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}bc(Pa,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});bc(Pa,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});bc(Pa,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});bc(Pa,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Pa.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Pa.prototype.toHex=function(){return yc.encode(this.toBytes(),"hex").toUpperCase()};var oK=Pa,aK=vc,sK=pc,As=ri,fK=As.assert,n4=As.parseBytes,o4=tK,bw=oK;function zr(e){if(fK(e==="ed25519","only tested with ed25519 so far"),!(this instanceof zr))return new zr(e);e=sK[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=aK.sha512}var uK=zr;zr.prototype.sign=function(t,r){t=n4(t);var i=this.keyFromSecret(r),a=this.hashInt(i.messagePrefix(),t),n=this.g.mul(a),u=this.encodePoint(n),c=this.hashInt(u,i.pubBytes(),t).mul(i.priv()),d=a.add(c).umod(this.curve.n);return this.makeSignature({R:n,S:d,Rencoded:u})};zr.prototype.verify=function(t,r,i){t=n4(t),r=this.makeSignature(r);var a=this.keyFromPublic(i),n=this.hashInt(r.Rencoded(),a.pubBytes(),t),u=this.g.mul(r.S()),c=r.R().add(a.pub().mul(n));return c.eq(u)};zr.prototype.hashInt=function(){for(var t=this.hash(),r=0;r<arguments.length;r++)t.update(arguments[r]);return As.intFromLE(t.digest()).umod(this.curve.n)};zr.prototype.keyFromPublic=function(t){return o4.fromPublic(this,t)};zr.prototype.keyFromSecret=function(t){return o4.fromSecret(this,t)};zr.prototype.makeSignature=function(t){return t instanceof bw?t:new bw(this,t)};zr.prototype.encodePoint=function(t){var r=t.getY().toArray("le",this.encodingLength);return r[this.encodingLength-1]|=t.getX().isOdd()?128:0,r};zr.prototype.decodePoint=function(t){t=As.parseBytes(t);var r=t.length-1,i=t.slice(0,r).concat(t[r]&-129),a=(t[r]&128)!==0,n=As.intFromLE(i);return this.curve.pointFromY(n,a)};zr.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)};zr.prototype.decodeInt=function(t){return As.intFromLE(t)};zr.prototype.isPoint=function(t){return t instanceof this.pointClass};var ww;function jg(){return ww||(ww=1,function(e){var t=e;t.version=uq.version,t.utils=ri,t.rand=Ig(),t.curve=$g,t.curves=pc,t.ec=eK(),t.eddsa=uK}(w0)),w0}var Hi={},Ug={},Hg={exports:{}};Hg.exports;(function(e){(function(t,r){function i(_,o){if(!_)throw new Error(o||"Assertion failed")}function a(_,o){_.super_=o;var f=function(){};f.prototype=o.prototype,_.prototype=new f,_.prototype.constructor=_}function n(_,o,f){if(n.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((o==="le"||o==="be")&&(f=o,o=10),this._init(_||0,o||10,f||"be"))}typeof t=="object"?t.exports=n:r.BN=n,n.BN=n,n.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=ke.Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,f){return o.cmp(f)>0?o:f},n.min=function(o,f){return o.cmp(f)<0?o:f},n.prototype._init=function(o,f,l){if(typeof o=="number")return this._initNumber(o,f,l);if(typeof o=="object")return this._initArray(o,f,l);f==="hex"&&(f=16),i(f===(f|0)&&f>=2&&f<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h<o.length&&(f===16?this._parseHex(o,h,l):(this._parseBase(o,f,h),l==="le"&&this._initArray(this.toArray(),f,l)))},n.prototype._initNumber=function(o,f,l){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(i(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),f,l)},n.prototype._initArray=function(o,f,l){if(i(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p,w,x=0;if(l==="be")for(h=o.length-1,p=0;h>=0;h-=3)w=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);else if(l==="le")for(h=0,p=0;h<o.length;h+=3)w=o[h]|o[h+1]<<8|o[h+2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);return this.strip()};function c(_,o){var f=_.charCodeAt(o);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function d(_,o,f){var l=c(_,f);return f-1>=o&&(l|=c(_,f-1)<<4),l}n.prototype._parseHex=function(o,f,l){this.length=Math.ceil((o.length-f)/6),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p=0,w=0,x;if(l==="be")for(h=o.length-1;h>=f;h-=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8;else{var g=o.length-f;for(h=g%2===0?f+1:f;h<o.length;h+=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8}this.strip()};function m(_,o,f,l){for(var h=0,p=Math.min(_.length,f),w=o;w<p;w++){var x=_.charCodeAt(w)-48;h*=l,x>=49?h+=x-49+10:x>=17?h+=x-17+10:h+=x}return h}n.prototype._parseBase=function(o,f,l){this.words=[0],this.length=1;for(var h=0,p=1;p<=67108863;p*=f)h++;h--,p=p/f|0;for(var w=o.length-l,x=w%h,g=Math.min(w,w-x)+l,s=0,v=l;v<g;v+=h)s=m(o,v,v+h,f),this.imuln(p),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(x!==0){var T=1;for(s=m(o,v,o.length,f),v=0;v<x;v++)T*=f;this.imuln(T),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},n.prototype.copy=function(o){o.words=new Array(this.length);for(var f=0;f<this.length;f++)o.words[f]=this.words[f];o.length=this.length,o.negative=this.negative,o.red=this.red},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],R=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,f){o=o||10,f=f|0||1;var l;if(o===16||o==="hex"){l="";for(var h=0,p=0,w=0;w<this.length;w++){var x=this.words[w],g=((x<<h|p)&16777215).toString(16);p=x>>>24-h&16777215,p!==0||w!==this.length-1?l=M[6-g.length]+g+l:l=g+l,h+=2,h>=26&&(h-=26,w--)}for(p!==0&&(l=p.toString(16)+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(o===(o|0)&&o>=2&&o<=36){var s=S[o],v=R[o];l="";var T=this.clone();for(T.negative=0;!T.isZero();){var $=T.modn(v).toString(o);T=T.idivn(v),T.isZero()?l=$+l:l=M[s-$.length]+$+l}for(this.isZero()&&(l="0"+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(o,f){return i(typeof u<"u"),this.toArrayLike(u,o,f)},n.prototype.toArray=function(o,f){return this.toArrayLike(Array,o,f)},n.prototype.toArrayLike=function(o,f,l){var h=this.byteLength(),p=l||Math.max(1,h);i(h<=p,"byte array longer than desired length"),i(p>0,"Requested array length <= 0"),this.strip();var w=f==="le",x=new o(p),g,s,v=this.clone();if(w){for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[s]=g;for(;s<p;s++)x[s]=0}else{for(s=0;s<p-h;s++)x[s]=0;for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[p-s-1]=g}return x},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var f=o,l=0;return f>=4096&&(l+=13,f>>>=13),f>=64&&(l+=7,f>>>=7),f>=8&&(l+=4,f>>>=4),f>=2&&(l+=2,f>>>=2),l+f},n.prototype._zeroBits=function(o){if(o===0)return 26;var f=o,l=0;return f&8191||(l+=13,f>>>=13),f&127||(l+=7,f>>>=7),f&15||(l+=4,f>>>=4),f&3||(l+=2,f>>>=2),f&1||l++,l},n.prototype.bitLength=function(){var o=this.words[this.length-1],f=this._countBits(o);return(this.length-1)*26+f};function C(_){for(var o=new Array(_.bitLength()),f=0;f<o.length;f++){var l=f/26|0,h=f%26;o[f]=(_.words[l]&1<<h)>>>h}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,f=0;f<this.length;f++){var l=this._zeroBits(this.words[f]);if(o+=l,l!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var f=0;f<o.length;f++)this.words[f]=this.words[f]|o.words[f];return this.strip()},n.prototype.ior=function(o){return i((this.negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},n.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},n.prototype.iuand=function(o){var f;this.length>o.length?f=o:f=this;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]&o.words[l];return this.length=f.length,this.strip()},n.prototype.iand=function(o){return i((this.negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},n.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},n.prototype.iuxor=function(o){var f,l;this.length>o.length?(f=this,l=o):(f=o,l=this);for(var h=0;h<l.length;h++)this.words[h]=f.words[h]^l.words[h];if(this!==f)for(;h<f.length;h++)this.words[h]=f.words[h];return this.length=f.length,this.strip()},n.prototype.ixor=function(o){return i((this.negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},n.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},n.prototype.inotn=function(o){i(typeof o=="number"&&o>=0);var f=Math.ceil(o/26)|0,l=o%26;this._expand(f),l>0&&f--;for(var h=0;h<f;h++)this.words[h]=~this.words[h]&67108863;return l>0&&(this.words[h]=~this.words[h]&67108863>>26-l),this.strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,f){i(typeof o=="number"&&o>=0);var l=o/26|0,h=o%26;return this._expand(l+1),f?this.words[l]=this.words[l]|1<<h:this.words[l]=this.words[l]&~(1<<h),this.strip()},n.prototype.iadd=function(o){var f;if(this.negative!==0&&o.negative===0)return this.negative=0,f=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,f=this.isub(o),o.negative=1,f._normSign();var l,h;this.length>o.length?(l=this,h=o):(l=o,h=this);for(var p=0,w=0;w<h.length;w++)f=(l.words[w]|0)+(h.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;for(;p!==0&&w<l.length;w++)f=(l.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;if(this.length=l.length,p!==0)this.words[this.length]=p,this.length++;else if(l!==this)for(;w<l.length;w++)this.words[w]=l.words[w];return this},n.prototype.add=function(o){var f;return o.negative!==0&&this.negative===0?(o.negative=0,f=this.sub(o),o.negative^=1,f):o.negative===0&&this.negative!==0?(this.negative=0,f=o.sub(this),this.negative=1,f):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var f=this.iadd(o);return o.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var l=this.cmp(o);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,p;l>0?(h=this,p=o):(h=o,p=this);for(var w=0,x=0;x<p.length;x++)f=(h.words[x]|0)-(p.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;for(;w!==0&&x<h.length;x++)f=(h.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;if(w===0&&x<h.length&&h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this.length=Math.max(this.length,x),h!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function P(_,o,f){f.negative=o.negative^_.negative;var l=_.length+o.length|0;f.length=l,l=l-1|0;var h=_.words[0]|0,p=o.words[0]|0,w=h*p,x=w&67108863,g=w/67108864|0;f.words[0]=x;for(var s=1;s<l;s++){for(var v=g>>>26,T=g&67108863,$=Math.min(s,o.length-1),G=Math.max(0,s-_.length+1);G<=$;G++){var ee=s-G|0;h=_.words[ee]|0,p=o.words[G]|0,w=h*p+T,v+=w/67108864|0,T=w&67108863}f.words[s]=T|0,g=v|0}return g!==0?f.words[s]=g|0:f.length--,f.strip()}var k=function(o,f,l){var h=o.words,p=f.words,w=l.words,x=0,g,s,v,T=h[0]|0,$=T&8191,G=T>>>13,ee=h[1]|0,A=ee&8191,E=ee>>>13,U=h[2]|0,K=U&8191,Z=U>>>13,b=h[3]|0,y=b&8191,O=b>>>13,q=h[4]|0,X=q&8191,D=q>>>13,N=h[5]|0,j=N&8191,z=N>>>13,se=h[6]|0,te=se&8191,ne=se>>>13,Ee=h[7]|0,Q=Ee&8191,ue=Ee>>>13,le=h[8]|0,ce=le&8191,pe=le>>>13,de=h[9]|0,ae=de&8191,fe=de>>>13,Te=p[0]|0,ve=Te&8191,Me=Te>>>13,Ke=p[1]|0,be=Ke&8191,Se=Ke>>>13,qe=p[2]|0,ye=qe&8191,_e=qe>>>13,Ve=p[3]|0,ge=Ve&8191,xe=Ve>>>13,Xe=p[4]|0,Re=Xe&8191,Le=Xe>>>13,at=p[5]|0,Ae=at&8191,Ne=at>>>13,rt=p[6]|0,Oe=rt&8191,De=rt>>>13,nt=p[7]|0,Ie=nt&8191,$e=nt>>>13,st=p[8]|0,Pe=st&8191,je=st>>>13,ht=p[9]|0,Ce=ht&8191,Fe=ht>>>13;l.negative=o.negative^f.negative,l.length=19,g=Math.imul($,ve),s=Math.imul($,Me),s=s+Math.imul(G,ve)|0,v=Math.imul(G,Me);var it=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(it>>>26)|0,it&=67108863,g=Math.imul(A,ve),s=Math.imul(A,Me),s=s+Math.imul(E,ve)|0,v=Math.imul(E,Me),g=g+Math.imul($,be)|0,s=s+Math.imul($,Se)|0,s=s+Math.imul(G,be)|0,v=v+Math.imul(G,Se)|0;var et=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(et>>>26)|0,et&=67108863,g=Math.imul(K,ve),s=Math.imul(K,Me),s=s+Math.imul(Z,ve)|0,v=Math.imul(Z,Me),g=g+Math.imul(A,be)|0,s=s+Math.imul(A,Se)|0,s=s+Math.imul(E,be)|0,v=v+Math.imul(E,Se)|0,g=g+Math.imul($,ye)|0,s=s+Math.imul($,_e)|0,s=s+Math.imul(G,ye)|0,v=v+Math.imul(G,_e)|0;var xt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(xt>>>26)|0,xt&=67108863,g=Math.imul(y,ve),s=Math.imul(y,Me),s=s+Math.imul(O,ve)|0,v=Math.imul(O,Me),g=g+Math.imul(K,be)|0,s=s+Math.imul(K,Se)|0,s=s+Math.imul(Z,be)|0,v=v+Math.imul(Z,Se)|0,g=g+Math.imul(A,ye)|0,s=s+Math.imul(A,_e)|0,s=s+Math.imul(E,ye)|0,v=v+Math.imul(E,_e)|0,g=g+Math.imul($,ge)|0,s=s+Math.imul($,xe)|0,s=s+Math.imul(G,ge)|0,v=v+Math.imul(G,xe)|0;var Tt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,g=Math.imul(X,ve),s=Math.imul(X,Me),s=s+Math.imul(D,ve)|0,v=Math.imul(D,Me),g=g+Math.imul(y,be)|0,s=s+Math.imul(y,Se)|0,s=s+Math.imul(O,be)|0,v=v+Math.imul(O,Se)|0,g=g+Math.imul(K,ye)|0,s=s+Math.imul(K,_e)|0,s=s+Math.imul(Z,ye)|0,v=v+Math.imul(Z,_e)|0,g=g+Math.imul(A,ge)|0,s=s+Math.imul(A,xe)|0,s=s+Math.imul(E,ge)|0,v=v+Math.imul(E,xe)|0,g=g+Math.imul($,Re)|0,s=s+Math.imul($,Le)|0,s=s+Math.imul(G,Re)|0,v=v+Math.imul(G,Le)|0;var Ot=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,g=Math.imul(j,ve),s=Math.imul(j,Me),s=s+Math.imul(z,ve)|0,v=Math.imul(z,Me),g=g+Math.imul(X,be)|0,s=s+Math.imul(X,Se)|0,s=s+Math.imul(D,be)|0,v=v+Math.imul(D,Se)|0,g=g+Math.imul(y,ye)|0,s=s+Math.imul(y,_e)|0,s=s+Math.imul(O,ye)|0,v=v+Math.imul(O,_e)|0,g=g+Math.imul(K,ge)|0,s=s+Math.imul(K,xe)|0,s=s+Math.imul(Z,ge)|0,v=v+Math.imul(Z,xe)|0,g=g+Math.imul(A,Re)|0,s=s+Math.imul(A,Le)|0,s=s+Math.imul(E,Re)|0,v=v+Math.imul(E,Le)|0,g=g+Math.imul($,Ae)|0,s=s+Math.imul($,Ne)|0,s=s+Math.imul(G,Ae)|0,v=v+Math.imul(G,Ne)|0;var Ct=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,g=Math.imul(te,ve),s=Math.imul(te,Me),s=s+Math.imul(ne,ve)|0,v=Math.imul(ne,Me),g=g+Math.imul(j,be)|0,s=s+Math.imul(j,Se)|0,s=s+Math.imul(z,be)|0,v=v+Math.imul(z,Se)|0,g=g+Math.imul(X,ye)|0,s=s+Math.imul(X,_e)|0,s=s+Math.imul(D,ye)|0,v=v+Math.imul(D,_e)|0,g=g+Math.imul(y,ge)|0,s=s+Math.imul(y,xe)|0,s=s+Math.imul(O,ge)|0,v=v+Math.imul(O,xe)|0,g=g+Math.imul(K,Re)|0,s=s+Math.imul(K,Le)|0,s=s+Math.imul(Z,Re)|0,v=v+Math.imul(Z,Le)|0,g=g+Math.imul(A,Ae)|0,s=s+Math.imul(A,Ne)|0,s=s+Math.imul(E,Ae)|0,v=v+Math.imul(E,Ne)|0,g=g+Math.imul($,Oe)|0,s=s+Math.imul($,De)|0,s=s+Math.imul(G,Oe)|0,v=v+Math.imul(G,De)|0;var kt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(kt>>>26)|0,kt&=67108863,g=Math.imul(Q,ve),s=Math.imul(Q,Me),s=s+Math.imul(ue,ve)|0,v=Math.imul(ue,Me),g=g+Math.imul(te,be)|0,s=s+Math.imul(te,Se)|0,s=s+Math.imul(ne,be)|0,v=v+Math.imul(ne,Se)|0,g=g+Math.imul(j,ye)|0,s=s+Math.imul(j,_e)|0,s=s+Math.imul(z,ye)|0,v=v+Math.imul(z,_e)|0,g=g+Math.imul(X,ge)|0,s=s+Math.imul(X,xe)|0,s=s+Math.imul(D,ge)|0,v=v+Math.imul(D,xe)|0,g=g+Math.imul(y,Re)|0,s=s+Math.imul(y,Le)|0,s=s+Math.imul(O,Re)|0,v=v+Math.imul(O,Le)|0,g=g+Math.imul(K,Ae)|0,s=s+Math.imul(K,Ne)|0,s=s+Math.imul(Z,Ae)|0,v=v+Math.imul(Z,Ne)|0,g=g+Math.imul(A,Oe)|0,s=s+Math.imul(A,De)|0,s=s+Math.imul(E,Oe)|0,v=v+Math.imul(E,De)|0,g=g+Math.imul($,Ie)|0,s=s+Math.imul($,$e)|0,s=s+Math.imul(G,Ie)|0,v=v+Math.imul(G,$e)|0;var Ut=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,g=Math.imul(ce,ve),s=Math.imul(ce,Me),s=s+Math.imul(pe,ve)|0,v=Math.imul(pe,Me),g=g+Math.imul(Q,be)|0,s=s+Math.imul(Q,Se)|0,s=s+Math.imul(ue,be)|0,v=v+Math.imul(ue,Se)|0,g=g+Math.imul(te,ye)|0,s=s+Math.imul(te,_e)|0,s=s+Math.imul(ne,ye)|0,v=v+Math.imul(ne,_e)|0,g=g+Math.imul(j,ge)|0,s=s+Math.imul(j,xe)|0,s=s+Math.imul(z,ge)|0,v=v+Math.imul(z,xe)|0,g=g+Math.imul(X,Re)|0,s=s+Math.imul(X,Le)|0,s=s+Math.imul(D,Re)|0,v=v+Math.imul(D,Le)|0,g=g+Math.imul(y,Ae)|0,s=s+Math.imul(y,Ne)|0,s=s+Math.imul(O,Ae)|0,v=v+Math.imul(O,Ne)|0,g=g+Math.imul(K,Oe)|0,s=s+Math.imul(K,De)|0,s=s+Math.imul(Z,Oe)|0,v=v+Math.imul(Z,De)|0,g=g+Math.imul(A,Ie)|0,s=s+Math.imul(A,$e)|0,s=s+Math.imul(E,Ie)|0,v=v+Math.imul(E,$e)|0,g=g+Math.imul($,Pe)|0,s=s+Math.imul($,je)|0,s=s+Math.imul(G,Pe)|0,v=v+Math.imul(G,je)|0;var Ht=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,g=Math.imul(ae,ve),s=Math.imul(ae,Me),s=s+Math.imul(fe,ve)|0,v=Math.imul(fe,Me),g=g+Math.imul(ce,be)|0,s=s+Math.imul(ce,Se)|0,s=s+Math.imul(pe,be)|0,v=v+Math.imul(pe,Se)|0,g=g+Math.imul(Q,ye)|0,s=s+Math.imul(Q,_e)|0,s=s+Math.imul(ue,ye)|0,v=v+Math.imul(ue,_e)|0,g=g+Math.imul(te,ge)|0,s=s+Math.imul(te,xe)|0,s=s+Math.imul(ne,ge)|0,v=v+Math.imul(ne,xe)|0,g=g+Math.imul(j,Re)|0,s=s+Math.imul(j,Le)|0,s=s+Math.imul(z,Re)|0,v=v+Math.imul(z,Le)|0,g=g+Math.imul(X,Ae)|0,s=s+Math.imul(X,Ne)|0,s=s+Math.imul(D,Ae)|0,v=v+Math.imul(D,Ne)|0,g=g+Math.imul(y,Oe)|0,s=s+Math.imul(y,De)|0,s=s+Math.imul(O,Oe)|0,v=v+Math.imul(O,De)|0,g=g+Math.imul(K,Ie)|0,s=s+Math.imul(K,$e)|0,s=s+Math.imul(Z,Ie)|0,v=v+Math.imul(Z,$e)|0,g=g+Math.imul(A,Pe)|0,s=s+Math.imul(A,je)|0,s=s+Math.imul(E,Pe)|0,v=v+Math.imul(E,je)|0,g=g+Math.imul($,Ce)|0,s=s+Math.imul($,Fe)|0,s=s+Math.imul(G,Ce)|0,v=v+Math.imul(G,Fe)|0;var Bt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,g=Math.imul(ae,be),s=Math.imul(ae,Se),s=s+Math.imul(fe,be)|0,v=Math.imul(fe,Se),g=g+Math.imul(ce,ye)|0,s=s+Math.imul(ce,_e)|0,s=s+Math.imul(pe,ye)|0,v=v+Math.imul(pe,_e)|0,g=g+Math.imul(Q,ge)|0,s=s+Math.imul(Q,xe)|0,s=s+Math.imul(ue,ge)|0,v=v+Math.imul(ue,xe)|0,g=g+Math.imul(te,Re)|0,s=s+Math.imul(te,Le)|0,s=s+Math.imul(ne,Re)|0,v=v+Math.imul(ne,Le)|0,g=g+Math.imul(j,Ae)|0,s=s+Math.imul(j,Ne)|0,s=s+Math.imul(z,Ae)|0,v=v+Math.imul(z,Ne)|0,g=g+Math.imul(X,Oe)|0,s=s+Math.imul(X,De)|0,s=s+Math.imul(D,Oe)|0,v=v+Math.imul(D,De)|0,g=g+Math.imul(y,Ie)|0,s=s+Math.imul(y,$e)|0,s=s+Math.imul(O,Ie)|0,v=v+Math.imul(O,$e)|0,g=g+Math.imul(K,Pe)|0,s=s+Math.imul(K,je)|0,s=s+Math.imul(Z,Pe)|0,v=v+Math.imul(Z,je)|0,g=g+Math.imul(A,Ce)|0,s=s+Math.imul(A,Fe)|0,s=s+Math.imul(E,Ce)|0,v=v+Math.imul(E,Fe)|0;var dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(dt>>>26)|0,dt&=67108863,g=Math.imul(ae,ye),s=Math.imul(ae,_e),s=s+Math.imul(fe,ye)|0,v=Math.imul(fe,_e),g=g+Math.imul(ce,ge)|0,s=s+Math.imul(ce,xe)|0,s=s+Math.imul(pe,ge)|0,v=v+Math.imul(pe,xe)|0,g=g+Math.imul(Q,Re)|0,s=s+Math.imul(Q,Le)|0,s=s+Math.imul(ue,Re)|0,v=v+Math.imul(ue,Le)|0,g=g+Math.imul(te,Ae)|0,s=s+Math.imul(te,Ne)|0,s=s+Math.imul(ne,Ae)|0,v=v+Math.imul(ne,Ne)|0,g=g+Math.imul(j,Oe)|0,s=s+Math.imul(j,De)|0,s=s+Math.imul(z,Oe)|0,v=v+Math.imul(z,De)|0,g=g+Math.imul(X,Ie)|0,s=s+Math.imul(X,$e)|0,s=s+Math.imul(D,Ie)|0,v=v+Math.imul(D,$e)|0,g=g+Math.imul(y,Pe)|0,s=s+Math.imul(y,je)|0,s=s+Math.imul(O,Pe)|0,v=v+Math.imul(O,je)|0,g=g+Math.imul(K,Ce)|0,s=s+Math.imul(K,Fe)|0,s=s+Math.imul(Z,Ce)|0,v=v+Math.imul(Z,Fe)|0;var At=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(At>>>26)|0,At&=67108863,g=Math.imul(ae,ge),s=Math.imul(ae,xe),s=s+Math.imul(fe,ge)|0,v=Math.imul(fe,xe),g=g+Math.imul(ce,Re)|0,s=s+Math.imul(ce,Le)|0,s=s+Math.imul(pe,Re)|0,v=v+Math.imul(pe,Le)|0,g=g+Math.imul(Q,Ae)|0,s=s+Math.imul(Q,Ne)|0,s=s+Math.imul(ue,Ae)|0,v=v+Math.imul(ue,Ne)|0,g=g+Math.imul(te,Oe)|0,s=s+Math.imul(te,De)|0,s=s+Math.imul(ne,Oe)|0,v=v+Math.imul(ne,De)|0,g=g+Math.imul(j,Ie)|0,s=s+Math.imul(j,$e)|0,s=s+Math.imul(z,Ie)|0,v=v+Math.imul(z,$e)|0,g=g+Math.imul(X,Pe)|0,s=s+Math.imul(X,je)|0,s=s+Math.imul(D,Pe)|0,v=v+Math.imul(D,je)|0,g=g+Math.imul(y,Ce)|0,s=s+Math.imul(y,Fe)|0,s=s+Math.imul(O,Ce)|0,v=v+Math.imul(O,Fe)|0;var _t=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(_t>>>26)|0,_t&=67108863,g=Math.imul(ae,Re),s=Math.imul(ae,Le),s=s+Math.imul(fe,Re)|0,v=Math.imul(fe,Le),g=g+Math.imul(ce,Ae)|0,s=s+Math.imul(ce,Ne)|0,s=s+Math.imul(pe,Ae)|0,v=v+Math.imul(pe,Ne)|0,g=g+Math.imul(Q,Oe)|0,s=s+Math.imul(Q,De)|0,s=s+Math.imul(ue,Oe)|0,v=v+Math.imul(ue,De)|0,g=g+Math.imul(te,Ie)|0,s=s+Math.imul(te,$e)|0,s=s+Math.imul(ne,Ie)|0,v=v+Math.imul(ne,$e)|0,g=g+Math.imul(j,Pe)|0,s=s+Math.imul(j,je)|0,s=s+Math.imul(z,Pe)|0,v=v+Math.imul(z,je)|0,g=g+Math.imul(X,Ce)|0,s=s+Math.imul(X,Fe)|0,s=s+Math.imul(D,Ce)|0,v=v+Math.imul(D,Fe)|0;var mt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(mt>>>26)|0,mt&=67108863,g=Math.imul(ae,Ae),s=Math.imul(ae,Ne),s=s+Math.imul(fe,Ae)|0,v=Math.imul(fe,Ne),g=g+Math.imul(ce,Oe)|0,s=s+Math.imul(ce,De)|0,s=s+Math.imul(pe,Oe)|0,v=v+Math.imul(pe,De)|0,g=g+Math.imul(Q,Ie)|0,s=s+Math.imul(Q,$e)|0,s=s+Math.imul(ue,Ie)|0,v=v+Math.imul(ue,$e)|0,g=g+Math.imul(te,Pe)|0,s=s+Math.imul(te,je)|0,s=s+Math.imul(ne,Pe)|0,v=v+Math.imul(ne,je)|0,g=g+Math.imul(j,Ce)|0,s=s+Math.imul(j,Fe)|0,s=s+Math.imul(z,Ce)|0,v=v+Math.imul(z,Fe)|0;var It=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(It>>>26)|0,It&=67108863,g=Math.imul(ae,Oe),s=Math.imul(ae,De),s=s+Math.imul(fe,Oe)|0,v=Math.imul(fe,De),g=g+Math.imul(ce,Ie)|0,s=s+Math.imul(ce,$e)|0,s=s+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,$e)|0,g=g+Math.imul(Q,Pe)|0,s=s+Math.imul(Q,je)|0,s=s+Math.imul(ue,Pe)|0,v=v+Math.imul(ue,je)|0,g=g+Math.imul(te,Ce)|0,s=s+Math.imul(te,Fe)|0,s=s+Math.imul(ne,Ce)|0,v=v+Math.imul(ne,Fe)|0;var vt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(vt>>>26)|0,vt&=67108863,g=Math.imul(ae,Ie),s=Math.imul(ae,$e),s=s+Math.imul(fe,Ie)|0,v=Math.imul(fe,$e),g=g+Math.imul(ce,Pe)|0,s=s+Math.imul(ce,je)|0,s=s+Math.imul(pe,Pe)|0,v=v+Math.imul(pe,je)|0,g=g+Math.imul(Q,Ce)|0,s=s+Math.imul(Q,Fe)|0,s=s+Math.imul(ue,Ce)|0,v=v+Math.imul(ue,Fe)|0;var yt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(yt>>>26)|0,yt&=67108863,g=Math.imul(ae,Pe),s=Math.imul(ae,je),s=s+Math.imul(fe,Pe)|0,v=Math.imul(fe,je),g=g+Math.imul(ce,Ce)|0,s=s+Math.imul(ce,Fe)|0,s=s+Math.imul(pe,Ce)|0,v=v+Math.imul(pe,Fe)|0;var Dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,g=Math.imul(ae,Ce),s=Math.imul(ae,Fe),s=s+Math.imul(fe,Ce)|0,v=Math.imul(fe,Fe);var Ft=(x+g|0)+((s&8191)<<13)|0;return x=(v+(s>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,w[0]=it,w[1]=et,w[2]=xt,w[3]=Tt,w[4]=Ot,w[5]=Ct,w[6]=kt,w[7]=Ut,w[8]=Ht,w[9]=Bt,w[10]=dt,w[11]=At,w[12]=_t,w[13]=mt,w[14]=It,w[15]=vt,w[16]=yt,w[17]=Dt,w[18]=Ft,x!==0&&(w[19]=x,l.length++),l};Math.imul||(k=P);function L(_,o,f){f.negative=o.negative^_.negative,f.length=_.length+o.length;for(var l=0,h=0,p=0;p<f.length-1;p++){var w=h;h=0;for(var x=l&67108863,g=Math.min(p,o.length-1),s=Math.max(0,p-_.length+1);s<=g;s++){var v=p-s,T=_.words[v]|0,$=o.words[s]|0,G=T*$,ee=G&67108863;w=w+(G/67108864|0)|0,ee=ee+x|0,x=ee&67108863,w=w+(ee>>>26)|0,h+=w>>>26,w&=67108863}f.words[p]=x,l=w,w=h}return l!==0?f.words[p]=l:f.length--,f.strip()}function I(_,o,f){var l=new B;return l.mulp(_,o,f)}n.prototype.mulTo=function(o,f){var l,h=this.length+o.length;return this.length===10&&o.length===10?l=k(this,o,f):h<63?l=P(this,o,f):h<1024?l=L(this,o,f):l=I(this,o,f),l};function B(_,o){this.x=_,this.y=o}B.prototype.makeRBT=function(o){for(var f=new Array(o),l=n.prototype._countBits(o)-1,h=0;h<o;h++)f[h]=this.revBin(h,l,o);return f},B.prototype.revBin=function(o,f,l){if(o===0||o===l-1)return o;for(var h=0,p=0;p<f;p++)h|=(o&1)<<f-p-1,o>>=1;return h},B.prototype.permute=function(o,f,l,h,p,w){for(var x=0;x<w;x++)h[x]=f[o[x]],p[x]=l[o[x]]},B.prototype.transform=function(o,f,l,h,p,w){this.permute(w,o,f,l,h,p);for(var x=1;x<p;x<<=1)for(var g=x<<1,s=Math.cos(2*Math.PI/g),v=Math.sin(2*Math.PI/g),T=0;T<p;T+=g)for(var $=s,G=v,ee=0;ee<x;ee++){var A=l[T+ee],E=h[T+ee],U=l[T+ee+x],K=h[T+ee+x],Z=$*U-G*K;K=$*K+G*U,U=Z,l[T+ee]=A+U,h[T+ee]=E+K,l[T+ee+x]=A-U,h[T+ee+x]=E-K,ee!==g&&(Z=s*$-v*G,G=s*G+v*$,$=Z)}},B.prototype.guessLen13b=function(o,f){var l=Math.max(f,o)|1,h=l&1,p=0;for(l=l/2|0;l;l=l>>>1)p++;return 1<<p+1+h},B.prototype.conjugate=function(o,f,l){if(!(l<=1))for(var h=0;h<l/2;h++){var p=o[h];o[h]=o[l-h-1],o[l-h-1]=p,p=f[h],f[h]=-f[l-h-1],f[l-h-1]=-p}},B.prototype.normalize13b=function(o,f){for(var l=0,h=0;h<f/2;h++){var p=Math.round(o[2*h+1]/f)*8192+Math.round(o[2*h]/f)+l;o[h]=p&67108863,p<67108864?l=0:l=p/67108864|0}return o},B.prototype.convert13b=function(o,f,l,h){for(var p=0,w=0;w<f;w++)p=p+(o[w]|0),l[2*w]=p&8191,p=p>>>13,l[2*w+1]=p&8191,p=p>>>13;for(w=2*f;w<h;++w)l[w]=0;i(p===0),i((p&-8192)===0)},B.prototype.stub=function(o){for(var f=new Array(o),l=0;l<o;l++)f[l]=0;return f},B.prototype.mulp=function(o,f,l){var h=2*this.guessLen13b(o.length,f.length),p=this.makeRBT(h),w=this.stub(h),x=new Array(h),g=new Array(h),s=new Array(h),v=new Array(h),T=new Array(h),$=new Array(h),G=l.words;G.length=h,this.convert13b(o.words,o.length,x,h),this.convert13b(f.words,f.length,v,h),this.transform(x,w,g,s,h,p),this.transform(v,w,T,$,h,p);for(var ee=0;ee<h;ee++){var A=g[ee]*T[ee]-s[ee]*$[ee];s[ee]=g[ee]*$[ee]+s[ee]*T[ee],g[ee]=A}return this.conjugate(g,s,h),this.transform(g,s,G,w,h,p),this.conjugate(G,w,h),this.normalize13b(G,h),l.negative=o.negative^f.negative,l.length=o.length+f.length,l.strip()},n.prototype.mul=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),this.mulTo(o,f)},n.prototype.mulf=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),I(this,o,f)},n.prototype.imul=function(o){return this.clone().mulTo(o,this)},n.prototype.imuln=function(o){i(typeof o=="number"),i(o<67108864);for(var f=0,l=0;l<this.length;l++){var h=(this.words[l]|0)*o,p=(h&67108863)+(f&67108863);f>>=26,f+=h/67108864|0,f+=p>>>26,this.words[l]=p&67108863}return f!==0&&(this.words[l]=f,this.length++),this},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var f=C(o);if(f.length===0)return new n(1);for(var l=this,h=0;h<f.length&&f[h]===0;h++,l=l.sqr());if(++h<f.length)for(var p=l.sqr();h<f.length;h++,p=p.sqr())f[h]!==0&&(l=l.mul(p));return l},n.prototype.iushln=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=67108863>>>26-f<<26-f,p;if(f!==0){var w=0;for(p=0;p<this.length;p++){var x=this.words[p]&h,g=(this.words[p]|0)-x<<f;this.words[p]=g|w,w=x>>>26-f}w&&(this.words[p]=w,this.length++)}if(l!==0){for(p=this.length-1;p>=0;p--)this.words[p+l]=this.words[p];for(p=0;p<l;p++)this.words[p]=0;this.length+=l}return this.strip()},n.prototype.ishln=function(o){return i(this.negative===0),this.iushln(o)},n.prototype.iushrn=function(o,f,l){i(typeof o=="number"&&o>=0);var h;f?h=(f-f%26)/26:h=0;var p=o%26,w=Math.min((o-p)/26,this.length),x=67108863^67108863>>>p<<p,g=l;if(h-=w,h=Math.max(0,h),g){for(var s=0;s<w;s++)g.words[s]=this.words[s];g.length=w}if(w!==0)if(this.length>w)for(this.length-=w,s=0;s<this.length;s++)this.words[s]=this.words[s+w];else this.words[0]=0,this.length=1;var v=0;for(s=this.length-1;s>=0&&(v!==0||s>=h);s--){var T=this.words[s]|0;this.words[s]=v<<26-p|T>>>p,v=T&x}return g&&v!==0&&(g.words[g.length++]=v),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(o,f,l){return i(this.negative===0),this.iushrn(o,f,l)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return!1;var p=this.words[l];return!!(p&h)},n.prototype.imaskn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(f!==0&&l++,this.length=Math.min(l,this.length),f!==0){var h=67108863^67108863>>>f<<f;this.words[this.length-1]&=h}return this.strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return i(typeof o=="number"),i(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},n.prototype._iaddn=function(o){this.words[0]+=o;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},n.prototype.isubn=function(o){if(i(typeof o=="number"),i(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,f,l){var h=o.length+l,p;this._expand(h);var w,x=0;for(p=0;p<o.length;p++){w=(this.words[p+l]|0)+x;var g=(o.words[p]|0)*f;w-=g&67108863,x=(w>>26)-(g/67108864|0),this.words[p+l]=w&67108863}for(;p<this.length-l;p++)w=(this.words[p+l]|0)+x,x=w>>26,this.words[p+l]=w&67108863;if(x===0)return this.strip();for(i(x===-1),x=0,p=0;p<this.length;p++)w=-(this.words[p]|0)+x,x=w>>26,this.words[p]=w&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(o,f){var l=this.length-o.length,h=this.clone(),p=o,w=p.words[p.length-1]|0,x=this._countBits(w);l=26-x,l!==0&&(p=p.ushln(l),h.iushln(l),w=p.words[p.length-1]|0);var g=h.length-p.length,s;if(f!=="mod"){s=new n(null),s.length=g+1,s.words=new Array(s.length);for(var v=0;v<s.length;v++)s.words[v]=0}var T=h.clone()._ishlnsubmul(p,1,g);T.negative===0&&(h=T,s&&(s.words[g]=1));for(var $=g-1;$>=0;$--){var G=(h.words[p.length+$]|0)*67108864+(h.words[p.length+$-1]|0);for(G=Math.min(G/w|0,67108863),h._ishlnsubmul(p,G,$);h.negative!==0;)G--,h.negative=0,h._ishlnsubmul(p,1,$),h.isZero()||(h.negative^=1);s&&(s.words[$]=G)}return s&&s.strip(),h.strip(),f!=="div"&&l!==0&&h.iushrn(l),{div:s||null,mod:h}},n.prototype.divmod=function(o,f,l){if(i(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,p,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,f),f!=="mod"&&(h=w.div.neg()),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.iadd(o)),{div:h,mod:p}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),f),f!=="mod"&&(h=w.div.neg()),{div:h,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),f),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.isub(o)),{div:w.div,mod:p}):o.length>this.length||this.cmp(o)<0?{div:new n(0),mod:this}:o.length===1?f==="div"?{div:this.divn(o.words[0]),mod:null}:f==="mod"?{div:null,mod:new n(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modn(o.words[0]))}:this._wordDiv(o,f)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var f=this.divmod(o);if(f.mod.isZero())return f.div;var l=f.div.negative!==0?f.mod.isub(o):f.mod,h=o.ushrn(1),p=o.andln(1),w=l.cmp(h);return w<0||p===1&&w===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},n.prototype.modn=function(o){i(o<=67108863);for(var f=(1<<26)%o,l=0,h=this.length-1;h>=0;h--)l=(f*l+(this.words[h]|0))%o;return l},n.prototype.idivn=function(o){i(o<=67108863);for(var f=0,l=this.length-1;l>=0;l--){var h=(this.words[l]|0)+f*67108864;this.words[l]=h/o|0,f=h%o}return this.strip()},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=new n(0),x=new n(1),g=0;f.isEven()&&l.isEven();)f.iushrn(1),l.iushrn(1),++g;for(var s=l.clone(),v=f.clone();!f.isZero();){for(var T=0,$=1;!(f.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(f.iushrn(T);T-- >0;)(h.isOdd()||p.isOdd())&&(h.iadd(s),p.isub(v)),h.iushrn(1),p.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(s),x.isub(v)),w.iushrn(1),x.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(w),p.isub(x)):(l.isub(f),w.isub(h),x.isub(p))}return{a:w,b:x,gcd:l.iushln(g)}},n.prototype._invmp=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=l.clone();f.cmpn(1)>0&&l.cmpn(1)>0;){for(var x=0,g=1;!(f.words[0]&g)&&x<26;++x,g<<=1);if(x>0)for(f.iushrn(x);x-- >0;)h.isOdd()&&h.iadd(w),h.iushrn(1);for(var s=0,v=1;!(l.words[0]&v)&&s<26;++s,v<<=1);if(s>0)for(l.iushrn(s);s-- >0;)p.isOdd()&&p.iadd(w),p.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(p)):(l.isub(f),p.isub(h))}var T;return f.cmpn(1)===0?T=h:T=p,T.cmpn(0)<0&&T.iadd(o),T},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var f=this.clone(),l=o.clone();f.negative=0,l.negative=0;for(var h=0;f.isEven()&&l.isEven();h++)f.iushrn(1),l.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;l.isEven();)l.iushrn(1);var p=f.cmp(l);if(p<0){var w=f;f=l,l=w}else if(p===0||l.cmpn(1)===0)break;f.isub(l)}while(!0);return l.iushln(h)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(o){return this.words[0]&o},n.prototype.bincn=function(o){i(typeof o=="number");var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return this._expand(l+1),this.words[l]|=h,this;for(var p=h,w=l;p!==0&&w<this.length;w++){var x=this.words[w]|0;x+=p,p=x>>>26,x&=67108863,this.words[w]=x}return p!==0&&(this.words[w]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(o){var f=o<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var l;if(this.length>1)l=1;else{f&&(o=-o),i(o<=67108863,"Number is too big");var h=this.words[0]|0;l=h===o?0:h<o?-1:1}return this.negative!==0?-l|0:l},n.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var f=this.ucmp(o);return this.negative!==0?-f|0:f},n.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var f=0,l=this.length-1;l>=0;l--){var h=this.words[l]|0,p=o.words[l]|0;if(h!==p){h<p?f=-1:h>p&&(f=1);break}}return f},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new V(o)},n.prototype.toRed=function(o){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},n.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(o){return this.red=o,this},n.prototype.forceRed=function(o){return i(!this.red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},n.prototype.redIAdd=function(o){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},n.prototype.redSub=function(o){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},n.prototype.redISub=function(o){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},n.prototype.redShl=function(o){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},n.prototype.redMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},n.prototype.redIMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},n.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(o){return i(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var H={k256:null,p224:null,p192:null,p25519:null};function F(_,o){this.name=_,this.p=new n(o,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil(this.n/13)),o},F.prototype.ireduce=function(o){var f=o,l;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),l=f.bitLength();while(l>this.n);var h=l<this.n?-1:f.ucmp(this.p);return h===0?(f.words[0]=0,f.length=1):h>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},F.prototype.split=function(o,f){o.iushrn(this.n,0,f)},F.prototype.imulK=function(o){return o.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(W,F),W.prototype.split=function(o,f){for(var l=4194303,h=Math.min(o.length,9),p=0;p<h;p++)f.words[p]=o.words[p];if(f.length=h,o.length<=9){o.words[0]=0,o.length=1;return}var w=o.words[9];for(f.words[f.length++]=w&l,p=10;p<o.length;p++){var x=o.words[p]|0;o.words[p-10]=(x&l)<<4|w>>>22,w=x}w>>>=22,o.words[p-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},W.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var f=0,l=0;l<o.length;l++){var h=o.words[l]|0;f+=h*977,o.words[l]=f&67108863,f=h*64+(f/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Y(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(Y,F);function ie(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(ie,F);function J(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(J,F),J.prototype.imulK=function(o){for(var f=0,l=0;l<o.length;l++){var h=(o.words[l]|0)*19+f,p=h&67108863;h>>>=26,o.words[l]=p,f=h}return f!==0&&(o.words[o.length++]=f),o},n._prime=function(o){if(H[o])return H[o];var f;if(o==="k256")f=new W;else if(o==="p224")f=new Y;else if(o==="p192")f=new ie;else if(o==="p25519")f=new J;else throw new Error("Unknown prime "+o);return H[o]=f,f};function V(_){if(typeof _=="string"){var o=n._prime(_);this.m=o.p,this.prime=o}else i(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}V.prototype._verify1=function(o){i(o.negative===0,"red works only with positives"),i(o.red,"red works only with red numbers")},V.prototype._verify2=function(o,f){i((o.negative|f.negative)===0,"red works only with positives"),i(o.red&&o.red===f.red,"red works only with red numbers")},V.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},V.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},V.prototype.add=function(o,f){this._verify2(o,f);var l=o.add(f);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},V.prototype.iadd=function(o,f){this._verify2(o,f);var l=o.iadd(f);return l.cmp(this.m)>=0&&l.isub(this.m),l},V.prototype.sub=function(o,f){this._verify2(o,f);var l=o.sub(f);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},V.prototype.isub=function(o,f){this._verify2(o,f);var l=o.isub(f);return l.cmpn(0)<0&&l.iadd(this.m),l},V.prototype.shl=function(o,f){return this._verify1(o),this.imod(o.ushln(f))},V.prototype.imul=function(o,f){return this._verify2(o,f),this.imod(o.imul(f))},V.prototype.mul=function(o,f){return this._verify2(o,f),this.imod(o.mul(f))},V.prototype.isqr=function(o){return this.imul(o,o.clone())},V.prototype.sqr=function(o){return this.mul(o,o)},V.prototype.sqrt=function(o){if(o.isZero())return o.clone();var f=this.m.andln(3);if(i(f%2===1),f===3){var l=this.m.add(new n(1)).iushrn(2);return this.pow(o,l)}for(var h=this.m.subn(1),p=0;!h.isZero()&&h.andln(1)===0;)p++,h.iushrn(1);i(!h.isZero());var w=new n(1).toRed(this),x=w.redNeg(),g=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new n(2*s*s).toRed(this);this.pow(s,g).cmp(x)!==0;)s.redIAdd(x);for(var v=this.pow(s,h),T=this.pow(o,h.addn(1).iushrn(1)),$=this.pow(o,h),G=p;$.cmp(w)!==0;){for(var ee=$,A=0;ee.cmp(w)!==0;A++)ee=ee.redSqr();i(A<G);var E=this.pow(v,new n(1).iushln(G-A-1));T=T.redMul(E),v=E.redSqr(),$=$.redMul(v),G=A}return T},V.prototype.invm=function(o){var f=o._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},V.prototype.pow=function(o,f){if(f.isZero())return new n(1).toRed(this);if(f.cmpn(1)===0)return o.clone();var l=4,h=new Array(1<<l);h[0]=new n(1).toRed(this),h[1]=o;for(var p=2;p<h.length;p++)h[p]=this.mul(h[p-1],o);var w=h[0],x=0,g=0,s=f.bitLength()%26;for(s===0&&(s=26),p=f.length-1;p>=0;p--){for(var v=f.words[p],T=s-1;T>=0;T--){var $=v>>T&1;if(w!==h[0]&&(w=this.sqr(w)),$===0&&x===0){g=0;continue}x<<=1,x|=$,g++,!(g!==l&&(p!==0||T!==0))&&(w=this.mul(w,h[x]),g=0,x=0)}s=26}return w},V.prototype.convertTo=function(o){var f=o.umod(this.m);return f===o?f.clone():f},V.prototype.convertFrom=function(o){var f=o.clone();return f.red=null,f},n.mont=function(o){return new oe(o)};function oe(_){V.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(oe,V),oe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},oe.prototype.convertFrom=function(o){var f=this.imod(o.mul(this.rinv));return f.red=null,f},oe.prototype.imul=function(o,f){if(o.isZero()||f.isZero())return o.words[0]=0,o.length=1,o;var l=o.imul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.mul=function(o,f){if(o.isZero()||f.isZero())return new n(0)._forceRed(this);var l=o.mul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.invm=function(o){var f=this.imod(o._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,Ye)})(Hg);var a4=Hg.exports,s4={},qg={},Sl=ke,ns=Sl.Buffer,li={},hi;for(hi in Sl)Sl.hasOwnProperty(hi)&&(hi==="SlowBuffer"||hi==="Buffer"||(li[hi]=Sl[hi]));var os=li.Buffer={};for(hi in ns)ns.hasOwnProperty(hi)&&(hi==="allocUnsafe"||hi==="allocUnsafeSlow"||(os[hi]=ns[hi]));li.Buffer.prototype=ns.prototype;(!os.from||os.from===Uint8Array.from)&&(os.from=function(e,t,r){if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&typeof e.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return ns(e,t,r)});os.alloc||(os.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var i=ns(e);return!t||t.length===0?i.fill(0):typeof r=="string"?i.fill(t,r):i.fill(t),i});if(!li.kStringMaxLength)try{li.kStringMaxLength=we.binding("buffer").kStringMaxLength}catch{}li.constants||(li.constants={MAX_LENGTH:li.kMaxLength},li.kStringMaxLength&&(li.constants.MAX_STRING_LENGTH=li.kStringMaxLength));var Wg=li,wc={};const lK=Ze;function Ti(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}wc.Reporter=Ti;Ti.prototype.isError=function(t){return t instanceof Ts};Ti.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}};Ti.prototype.restore=function(t){const r=this._reporterState;r.obj=t.obj,r.path=r.path.slice(0,t.pathLen)};Ti.prototype.enterKey=function(t){return this._reporterState.path.push(t)};Ti.prototype.exitKey=function(t){const r=this._reporterState;r.path=r.path.slice(0,t-1)};Ti.prototype.leaveKey=function(t,r,i){const a=this._reporterState;this.exitKey(t),a.obj!==null&&(a.obj[r]=i)};Ti.prototype.path=function(){return this._reporterState.path.join("/")};Ti.prototype.enterObject=function(){const t=this._reporterState,r=t.obj;return t.obj={},r};Ti.prototype.leaveObject=function(t){const r=this._reporterState,i=r.obj;return r.obj=t,i};Ti.prototype.error=function(t){let r;const i=this._reporterState,a=t instanceof Ts;if(a?r=t:r=new Ts(i.path.map(function(n){return"["+JSON.stringify(n)+"]"}).join(""),t.message||t,t.stack),!i.options.partial)throw r;return a||i.errors.push(r),r};Ti.prototype.wrapResult=function(t){const r=this._reporterState;return r.options.partial?{result:this.isError(t)?null:t,errors:r.errors}:t};function Ts(e,t){this.path=e,this.rethrow(t)}lK(Ts,Error);Ts.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Ts),!this.stack)try{throw new Error(this.message)}catch(r){this.stack=r.stack}return this};var va={};const hK=Ze,_c=wc.Reporter,Os=Wg.Buffer;function mi(e,t){if(_c.call(this,t),!Os.isBuffer(e)){this.error("Input not Buffer");return}this.base=e,this.offset=0,this.length=e.length}hK(mi,_c);va.DecoderBuffer=mi;mi.isDecoderBuffer=function(t){return t instanceof mi?!0:typeof t=="object"&&Os.isBuffer(t.base)&&t.constructor.name==="DecoderBuffer"&&typeof t.offset=="number"&&typeof t.length=="number"&&typeof t.save=="function"&&typeof t.restore=="function"&&typeof t.isEmpty=="function"&&typeof t.readUInt8=="function"&&typeof t.skip=="function"&&typeof t.raw=="function"};mi.prototype.save=function(){return{offset:this.offset,reporter:_c.prototype.save.call(this)}};mi.prototype.restore=function(t){const r=new mi(this.base);return r.offset=t.offset,r.length=this.offset,this.offset=t.offset,_c.prototype.restore.call(this,t.reporter),r};mi.prototype.isEmpty=function(){return this.offset===this.length};mi.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")};mi.prototype.skip=function(t,r){if(!(this.offset+t<=this.length))return this.error(r||"DecoderBuffer overrun");const i=new mi(this.base);return i._reporterState=this._reporterState,i.offset=this.offset,i.length=this.offset+t,this.offset+=t,i};mi.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)};function Is(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(r){return Is.isEncoderBuffer(r)||(r=new Is(r,t)),this.length+=r.length,r},this);else if(typeof e=="number"){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if(typeof e=="string")this.value=e,this.length=Os.byteLength(e);else if(Os.isBuffer(e))this.value=e,this.length=e.length;else return t.error("Unsupported type: "+typeof e)}va.EncoderBuffer=Is;Is.isEncoderBuffer=function(t){return t instanceof Is?!0:typeof t=="object"&&t.constructor.name==="EncoderBuffer"&&typeof t.length=="number"&&typeof t.join=="function"};Is.prototype.join=function(t,r){return t||(t=Os.alloc(this.length)),r||(r=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(i){i.join(t,r),r+=i.length}):(typeof this.value=="number"?t[r]=this.value:typeof this.value=="string"?t.write(this.value,r):Os.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t};const cK=wc.Reporter,dK=va.EncoderBuffer,pK=va.DecoderBuffer,kr=Si,f4=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],vK=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(f4),gK=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Kt(e,t,r){const i={};this._baseState=i,i.name=r,i.enc=e,i.parent=t||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}var Kg=Kt;const mK=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Kt.prototype.clone=function(){const t=this._baseState,r={};mK.forEach(function(a){r[a]=t[a]});const i=new this.constructor(r.parent);return i._baseState=r,i};Kt.prototype._wrap=function(){const t=this._baseState;vK.forEach(function(r){this[r]=function(){const a=new this.constructor(this);return t.children.push(a),a[r].apply(a,arguments)}},this)};Kt.prototype._init=function(t){const r=this._baseState;kr(r.parent===null),t.call(this),r.children=r.children.filter(function(i){return i._baseState.parent===this},this),kr.equal(r.children.length,1,"Root node can have only one child")};Kt.prototype._useArgs=function(t){const r=this._baseState,i=t.filter(function(a){return a instanceof this.constructor},this);t=t.filter(function(a){return!(a instanceof this.constructor)},this),i.length!==0&&(kr(r.children===null),r.children=i,i.forEach(function(a){a._baseState.parent=this},this)),t.length!==0&&(kr(r.args===null),r.args=t,r.reverseArgs=t.map(function(a){if(typeof a!="object"||a.constructor!==Object)return a;const n={};return Object.keys(a).forEach(function(u){u==(u|0)&&(u|=0);const c=a[u];n[c]=u}),n}))};gK.forEach(function(e){Kt.prototype[e]=function(){const r=this._baseState;throw new Error(e+" not implemented for encoding: "+r.enc)}});f4.forEach(function(e){Kt.prototype[e]=function(){const r=this._baseState,i=Array.prototype.slice.call(arguments);return kr(r.tag===null),r.tag=e,this._useArgs(i),this}});Kt.prototype.use=function(t){kr(t);const r=this._baseState;return kr(r.use===null),r.use=t,this};Kt.prototype.optional=function(){const t=this._baseState;return t.optional=!0,this};Kt.prototype.def=function(t){const r=this._baseState;return kr(r.default===null),r.default=t,r.optional=!0,this};Kt.prototype.explicit=function(t){const r=this._baseState;return kr(r.explicit===null&&r.implicit===null),r.explicit=t,this};Kt.prototype.implicit=function(t){const r=this._baseState;return kr(r.explicit===null&&r.implicit===null),r.implicit=t,this};Kt.prototype.obj=function(){const t=this._baseState,r=Array.prototype.slice.call(arguments);return t.obj=!0,r.length!==0&&this._useArgs(r),this};Kt.prototype.key=function(t){const r=this._baseState;return kr(r.key===null),r.key=t,this};Kt.prototype.any=function(){const t=this._baseState;return t.any=!0,this};Kt.prototype.choice=function(t){const r=this._baseState;return kr(r.choice===null),r.choice=t,this._useArgs(Object.keys(t).map(function(i){return t[i]})),this};Kt.prototype.contains=function(t){const r=this._baseState;return kr(r.use===null),r.contains=t,this};Kt.prototype._decode=function(t,r){const i=this._baseState;if(i.parent===null)return t.wrapResult(i.children[0]._decode(t,r));let a=i.default,n=!0,u=null;if(i.key!==null&&(u=t.enterKey(i.key)),i.optional){let d=null;if(i.explicit!==null?d=i.explicit:i.implicit!==null?d=i.implicit:i.tag!==null&&(d=i.tag),d===null&&!i.any){const m=t.save();try{i.choice===null?this._decodeGeneric(i.tag,t,r):this._decodeChoice(t,r),n=!0}catch{n=!1}t.restore(m)}else if(n=this._peekTag(t,d,i.any),t.isError(n))return n}let c;if(i.obj&&n&&(c=t.enterObject()),n){if(i.explicit!==null){const m=this._decodeTag(t,i.explicit);if(t.isError(m))return m;t=m}const d=t.offset;if(i.use===null&&i.choice===null){let m;i.any&&(m=t.save());const M=this._decodeTag(t,i.implicit!==null?i.implicit:i.tag,i.any);if(t.isError(M))return M;i.any?a=t.raw(m):t=M}if(r&&r.track&&i.tag!==null&&r.track(t.path(),d,t.length,"tagged"),r&&r.track&&i.tag!==null&&r.track(t.path(),t.offset,t.length,"content"),i.any||(i.choice===null?a=this._decodeGeneric(i.tag,t,r):a=this._decodeChoice(t,r)),t.isError(a))return a;if(!i.any&&i.choice===null&&i.children!==null&&i.children.forEach(function(M){M._decode(t,r)}),i.contains&&(i.tag==="octstr"||i.tag==="bitstr")){const m=new pK(a);a=this._getUse(i.contains,t._reporterState.obj)._decode(m,r)}}return i.obj&&n&&(a=t.leaveObject(c)),i.key!==null&&(a!==null||n===!0)?t.leaveKey(u,i.key,a):u!==null&&t.exitKey(u),a};Kt.prototype._decodeGeneric=function(t,r,i){const a=this._baseState;return t==="seq"||t==="set"?null:t==="seqof"||t==="setof"?this._decodeList(r,t,a.args[0],i):/str$/.test(t)?this._decodeStr(r,t,i):t==="objid"&&a.args?this._decodeObjid(r,a.args[0],a.args[1],i):t==="objid"?this._decodeObjid(r,null,null,i):t==="gentime"||t==="utctime"?this._decodeTime(r,t,i):t==="null_"?this._decodeNull(r,i):t==="bool"?this._decodeBool(r,i):t==="objDesc"?this._decodeStr(r,t,i):t==="int"||t==="enum"?this._decodeInt(r,a.args&&a.args[0],i):a.use!==null?this._getUse(a.use,r._reporterState.obj)._decode(r,i):r.error("unknown tag: "+t)};Kt.prototype._getUse=function(t,r){const i=this._baseState;return i.useDecoder=this._use(t,r),kr(i.useDecoder._baseState.parent===null),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder};Kt.prototype._decodeChoice=function(t,r){const i=this._baseState;let a=null,n=!1;return Object.keys(i.choice).some(function(u){const c=t.save(),d=i.choice[u];try{const m=d._decode(t,r);if(t.isError(m))return!1;a={type:u,value:m},n=!0}catch{return t.restore(c),!1}return!0},this),n?a:t.error("Choice not matched")};Kt.prototype._createEncoderBuffer=function(t){return new dK(t,this.reporter)};Kt.prototype._encode=function(t,r,i){const a=this._baseState;if(a.default!==null&&a.default===t)return;const n=this._encodeValue(t,r,i);if(n!==void 0&&!this._skipDefault(n,r,i))return n};Kt.prototype._encodeValue=function(t,r,i){const a=this._baseState;if(a.parent===null)return a.children[0]._encode(t,r||new cK);let n=null;if(this.reporter=r,a.optional&&t===void 0)if(a.default!==null)t=a.default;else return;let u=null,c=!1;if(a.any)n=this._createEncoderBuffer(t);else if(a.choice)n=this._encodeChoice(t,r);else if(a.contains)u=this._getUse(a.contains,i)._encode(t,r),c=!0;else if(a.children)u=a.children.map(function(d){if(d._baseState.tag==="null_")return d._encode(null,r,t);if(d._baseState.key===null)return r.error("Child should have a key");const m=r.enterKey(d._baseState.key);if(typeof t!="object")return r.error("Child expected, but input is not object");const M=d._encode(t[d._baseState.key],r,t);return r.leaveKey(m),M},this).filter(function(d){return d}),u=this._createEncoderBuffer(u);else if(a.tag==="seqof"||a.tag==="setof"){if(!(a.args&&a.args.length===1))return r.error("Too many args for : "+a.tag);if(!Array.isArray(t))return r.error("seqof/setof, but data is not Array");const d=this.clone();d._baseState.implicit=null,u=this._createEncoderBuffer(t.map(function(m){const M=this._baseState;return this._getUse(M.args[0],t)._encode(m,r)},d))}else a.use!==null?n=this._getUse(a.use,i)._encode(t,r):(u=this._encodePrimitive(a.tag,t),c=!0);if(!a.any&&a.choice===null){const d=a.implicit!==null?a.implicit:a.tag,m=a.implicit===null?"universal":"context";d===null?a.use===null&&r.error("Tag could be omitted only for .use()"):a.use===null&&(n=this._encodeComposite(d,c,m,u))}return a.explicit!==null&&(n=this._encodeComposite(a.explicit,!1,"context",n)),n};Kt.prototype._encodeChoice=function(t,r){const i=this._baseState,a=i.choice[t.type];return a||kr(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),a._encode(t.value,r)};Kt.prototype._encodePrimitive=function(t,r){const i=this._baseState;if(/str$/.test(t))return this._encodeStr(r,t);if(t==="objid"&&i.args)return this._encodeObjid(r,i.reverseArgs[0],i.args[1]);if(t==="objid")return this._encodeObjid(r,null,null);if(t==="gentime"||t==="utctime")return this._encodeTime(r,t);if(t==="null_")return this._encodeNull();if(t==="int"||t==="enum")return this._encodeInt(r,i.args&&i.reverseArgs[0]);if(t==="bool")return this._encodeBool(r);if(t==="objDesc")return this._encodeStr(r,t);throw new Error("Unsupported tag: "+t)};Kt.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)};Kt.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)};var Mc={};(function(e){function t(r){const i={};return Object.keys(r).forEach(function(a){(a|0)==a&&(a=a|0);const n=r[a];i[n]=a}),i}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t(e.tag)})(Mc);const yK=Ze,On=Wg.Buffer,u4=Kg,T0=Mc;function l4(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new qi,this.tree._init(e.body)}var h4=l4;l4.prototype.encode=function(t,r){return this.tree._encode(t,r).join()};function qi(e){u4.call(this,"der",e)}yK(qi,u4);qi.prototype._encodeComposite=function(t,r,i,a){const n=bK(t,r,i,this.reporter);if(a.length<128){const d=On.alloc(2);return d[0]=n,d[1]=a.length,this._createEncoderBuffer([d,a])}let u=1;for(let d=a.length;d>=256;d>>=8)u++;const c=On.alloc(1+1+u);c[0]=n,c[1]=128|u;for(let d=1+u,m=a.length;m>0;d--,m>>=8)c[d]=m&255;return this._createEncoderBuffer([c,a])};qi.prototype._encodeStr=function(t,r){if(r==="bitstr")return this._createEncoderBuffer([t.unused|0,t.data]);if(r==="bmpstr"){const i=On.alloc(t.length*2);for(let a=0;a<t.length;a++)i.writeUInt16BE(t.charCodeAt(a),a*2);return this._createEncoderBuffer(i)}else return r==="numstr"?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):r==="printstr"?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(r)?this._createEncoderBuffer(t):r==="objDesc"?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+r+" unsupported")};qi.prototype._encodeObjid=function(t,r,i){if(typeof t=="string"){if(!r)return this.reporter.error("string objid given, but no values map found");if(!r.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=r[t].split(/[\s.]+/g);for(let c=0;c<t.length;c++)t[c]|=0}else if(Array.isArray(t)){t=t.slice();for(let c=0;c<t.length;c++)t[c]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!i){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,t[0]*40+t[1])}let a=0;for(let c=0;c<t.length;c++){let d=t[c];for(a++;d>=128;d>>=7)a++}const n=On.alloc(a);let u=n.length-1;for(let c=t.length-1;c>=0;c--){let d=t[c];for(n[u--]=d&127;(d>>=7)>0;)n[u--]=128|d&127}return this._createEncoderBuffer(n)};function ai(e){return e<10?"0"+e:e}qi.prototype._encodeTime=function(t,r){let i;const a=new Date(t);return r==="gentime"?i=[ai(a.getUTCFullYear()),ai(a.getUTCMonth()+1),ai(a.getUTCDate()),ai(a.getUTCHours()),ai(a.getUTCMinutes()),ai(a.getUTCSeconds()),"Z"].join(""):r==="utctime"?i=[ai(a.getUTCFullYear()%100),ai(a.getUTCMonth()+1),ai(a.getUTCDate()),ai(a.getUTCHours()),ai(a.getUTCMinutes()),ai(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+r+" time is not supported yet"),this._encodeStr(i,"octstr")};qi.prototype._encodeNull=function(){return this._createEncoderBuffer("")};qi.prototype._encodeInt=function(t,r){if(typeof t=="string"){if(!r)return this.reporter.error("String int or enum given, but no values map");if(!r.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=r[t]}if(typeof t!="number"&&!On.isBuffer(t)){const n=t.toArray();!t.sign&&n[0]&128&&n.unshift(0),t=On.from(n)}if(On.isBuffer(t)){let n=t.length;t.length===0&&n++;const u=On.alloc(n);return t.copy(u),t.length===0&&(u[0]=0),this._createEncoderBuffer(u)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let i=1;for(let n=t;n>=256;n>>=8)i++;const a=new Array(i);for(let n=a.length-1;n>=0;n--)a[n]=t&255,t>>=8;return a[0]&128&&a.unshift(0),this._createEncoderBuffer(On.from(a))};qi.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)};qi.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getEncoder("der").tree};qi.prototype._skipDefault=function(t,r,i){const a=this._baseState;let n;if(a.default===null)return!1;const u=t.join();if(a.defaultBuffer===void 0&&(a.defaultBuffer=this._encodeValue(a.default,r,i).join()),u.length!==a.defaultBuffer.length)return!1;for(n=0;n<u.length;n++)if(u[n]!==a.defaultBuffer[n])return!1;return!0};function bK(e,t,r,i){let a;if(e==="seqof"?e="seq":e==="setof"&&(e="set"),T0.tagByName.hasOwnProperty(e))a=T0.tagByName[e];else if(typeof e=="number"&&(e|0)===e)a=e;else return i.error("Unknown tag: "+e);return a>=31?i.error("Multi-octet tag encoding unsupported"):(t||(a|=32),a|=T0.tagClassByName[r||"universal"]<<6,a)}const wK=Ze,Vg=h4;function zg(e){Vg.call(this,e),this.enc="pem"}wK(zg,Vg);var _K=zg;zg.prototype.encode=function(t,r){const a=Vg.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+r.label+"-----"];for(let u=0;u<a.length;u+=64)n.push(a.slice(u,u+64));return n.push("-----END "+r.label+"-----"),n.join(`
-`)};(function(e){const t=e;t.der=h4,t.pem=_K})(qg);var Gg={};const MK=Ze,SK=a4,_w=va.DecoderBuffer,c4=Kg,Mw=Mc;function d4(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new ii,this.tree._init(e.body)}var p4=d4;d4.prototype.decode=function(t,r){return _w.isDecoderBuffer(t)||(t=new _w(t,r)),this.tree._decode(t,r)};function ii(e){c4.call(this,"der",e)}MK(ii,c4);ii.prototype._peekTag=function(t,r,i){if(t.isEmpty())return!1;const a=t.save(),n=Yg(t,'Failed to peek tag: "'+r+'"');return t.isError(n)?n:(t.restore(a),n.tag===r||n.tagStr===r||n.tagStr+"of"===r||i)};ii.prototype._decodeTag=function(t,r,i){const a=Yg(t,'Failed to decode tag of "'+r+'"');if(t.isError(a))return a;let n=v4(t,a.primitive,'Failed to get length of "'+r+'"');if(t.isError(n))return n;if(!i&&a.tag!==r&&a.tagStr!==r&&a.tagStr+"of"!==r)return t.error('Failed to match tag: "'+r+'"');if(a.primitive||n!==null)return t.skip(n,'Failed to match body of: "'+r+'"');const u=t.save(),c=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(c)?c:(n=t.offset-u.offset,t.restore(u),t.skip(n,'Failed to match body of: "'+r+'"'))};ii.prototype._skipUntilEnd=function(t,r){for(;;){const i=Yg(t,r);if(t.isError(i))return i;const a=v4(t,i.primitive,r);if(t.isError(a))return a;let n;if(i.primitive||a!==null?n=t.skip(a):n=this._skipUntilEnd(t,r),t.isError(n))return n;if(i.tagStr==="end")break}};ii.prototype._decodeList=function(t,r,i,a){const n=[];for(;!t.isEmpty();){const u=this._peekTag(t,"end");if(t.isError(u))return u;const c=i.decode(t,"der",a);if(t.isError(c)&&u)break;n.push(c)}return n};ii.prototype._decodeStr=function(t,r){if(r==="bitstr"){const i=t.readUInt8();return t.isError(i)?i:{unused:i,data:t.raw()}}else if(r==="bmpstr"){const i=t.raw();if(i.length%2===1)return t.error("Decoding of string type: bmpstr length mismatch");let a="";for(let n=0;n<i.length/2;n++)a+=String.fromCharCode(i.readUInt16BE(n*2));return a}else if(r==="numstr"){const i=t.raw().toString("ascii");return this._isNumstr(i)?i:t.error("Decoding of string type: numstr unsupported characters")}else{if(r==="octstr")return t.raw();if(r==="objDesc")return t.raw();if(r==="printstr"){const i=t.raw().toString("ascii");return this._isPrintstr(i)?i:t.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(r)?t.raw().toString():t.error("Decoding of string type: "+r+" unsupported")}};ii.prototype._decodeObjid=function(t,r,i){let a;const n=[];let u=0,c=0;for(;!t.isEmpty();)c=t.readUInt8(),u<<=7,u|=c&127,c&128||(n.push(u),u=0);c&128&&n.push(u);const d=n[0]/40|0,m=n[0]%40;if(i?a=n:a=[d,m].concat(n.slice(1)),r){let M=r[a.join(" ")];M===void 0&&(M=r[a.join(".")]),M!==void 0&&(a=M)}return a};ii.prototype._decodeTime=function(t,r){const i=t.raw().toString();let a,n,u,c,d,m;if(r==="gentime")a=i.slice(0,4)|0,n=i.slice(4,6)|0,u=i.slice(6,8)|0,c=i.slice(8,10)|0,d=i.slice(10,12)|0,m=i.slice(12,14)|0;else if(r==="utctime")a=i.slice(0,2)|0,n=i.slice(2,4)|0,u=i.slice(4,6)|0,c=i.slice(6,8)|0,d=i.slice(8,10)|0,m=i.slice(10,12)|0,a<70?a=2e3+a:a=1900+a;else return t.error("Decoding "+r+" time is not supported yet");return Date.UTC(a,n-1,u,c,d,m,0)};ii.prototype._decodeNull=function(){return null};ii.prototype._decodeBool=function(t){const r=t.readUInt8();return t.isError(r)?r:r!==0};ii.prototype._decodeInt=function(t,r){const i=t.raw();let a=new SK(i);return r&&(a=r[a.toString(10)]||a),a};ii.prototype._use=function(t,r){return typeof t=="function"&&(t=t(r)),t._getDecoder("der").tree};function Yg(e,t){let r=e.readUInt8(t);if(e.isError(r))return r;const i=Mw.tagClass[r>>6],a=(r&32)===0;if((r&31)===31){let u=r;for(r=0;(u&128)===128;){if(u=e.readUInt8(t),e.isError(u))return u;r<<=7,r|=u&127}}else r&=31;const n=Mw.tag[r];return{cls:i,primitive:a,tag:r,tagStr:n}}function v4(e,t,r){let i=e.readUInt8(r);if(e.isError(i))return i;if(!t&&i===128)return null;if(!(i&128))return i;const a=i&127;if(a>4)return e.error("length octect is too long");i=0;for(let n=0;n<a;n++){i<<=8;const u=e.readUInt8(r);if(e.isError(u))return u;i|=u}return i}const xK=Ze,EK=Wg.Buffer,Zg=p4;function Xg(e){Zg.call(this,e),this.enc="pem"}xK(Xg,Zg);var RK=Xg;Xg.prototype.decode=function(t,r){const i=t.toString().split(/[\r\n]+/g),a=r.label.toUpperCase(),n=/^-----(BEGIN|END) ([^-]+)-----$/;let u=-1,c=-1;for(let M=0;M<i.length;M++){const S=i[M].match(n);if(S!==null&&S[2]===a)if(u===-1){if(S[1]!=="BEGIN")break;u=M}else{if(S[1]!=="END")break;c=M;break}}if(u===-1||c===-1)throw new Error("PEM section not found for: "+a);const d=i.slice(u+1,c).join("");d.replace(/[^a-z0-9+/=]+/gi,"");const m=EK.from(d,"base64");return Zg.prototype.decode.call(this,m,r)};(function(e){const t=e;t.der=p4,t.pem=RK})(Gg);(function(e){const t=qg,r=Gg,i=Ze,a=e;a.define=function(c,d){return new n(c,d)};function n(u,c){this.name=u,this.body=c,this.decoders={},this.encoders={}}n.prototype._createNamed=function(c){const d=this.name;function m(M){this._initNamed(M,d)}return i(m,c),m.prototype._initNamed=function(S,R){c.call(this,S,R)},new m(this)},n.prototype._getDecoder=function(c){return c=c||"der",this.decoders.hasOwnProperty(c)||(this.decoders[c]=this._createNamed(r[c])),this.decoders[c]},n.prototype.decode=function(c,d,m){return this._getDecoder(d).decode(c,m)},n.prototype._getEncoder=function(c){return c=c||"der",this.encoders.hasOwnProperty(c)||(this.encoders[c]=this._createNamed(t[c])),this.encoders[c]},n.prototype.encode=function(c,d,m){return this._getEncoder(d).encode(c,m)}})(s4);var g4={};(function(e){const t=e;t.Reporter=wc.Reporter,t.DecoderBuffer=va.DecoderBuffer,t.EncoderBuffer=va.EncoderBuffer,t.Node=Kg})(g4);var m4={};(function(e){const t=e;t._reverse=function(i){const a={};return Object.keys(i).forEach(function(n){(n|0)==n&&(n=n|0);const u=i[n];a[u]=n}),a},t.der=Mc})(m4);(function(e){const t=e;t.bignum=a4,t.define=s4.define,t.base=g4,t.constants=m4,t.decoders=Gg,t.encoders=qg})(Ug);var Wi=Ug,Sw=Wi.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),AK=Wi.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),Jg=Wi.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),TK=Wi.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(Jg),this.key("subjectPublicKey").bitstr())}),OK=Wi.define("RelativeDistinguishedName",function(){this.setof(AK)}),IK=Wi.define("RDNSequence",function(){this.seqof(OK)}),xw=Wi.define("Name",function(){this.choice({rdnSequence:this.use(IK)})}),PK=Wi.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Sw),this.key("notAfter").use(Sw))}),CK=Wi.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),BK=Wi.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(Jg),this.key("issuer").use(xw),this.key("validity").use(PK),this.key("subject").use(xw),this.key("subjectPublicKeyInfo").use(TK),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(CK).optional())}),LK=Wi.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(BK),this.key("signatureAlgorithm").use(Jg),this.key("signatureValue").bitstr())}),NK=LK,Ki=Ug;Hi.certificate=NK;var kK=Ki.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});Hi.RSAPrivateKey=kK;var $K=Ki.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});Hi.RSAPublicKey=$K;var DK=Ki.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(y4),this.key("subjectPublicKey").bitstr())});Hi.PublicKey=DK;var y4=Ki.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),FK=Ki.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(y4),this.key("subjectPrivateKey").octstr())});Hi.PrivateKey=FK;var jK=Ki.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});Hi.EncryptedPrivateKey=jK;var UK=Ki.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});Hi.DSAPrivateKey=UK;Hi.DSAparam=Ki.define("DSAparam",function(){this.int()});var HK=Ki.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(qK),this.key("publicKey").optional().explicit(1).bitstr())});Hi.ECPrivateKey=HK;var qK=Ki.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});Hi.signature=Ki.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())});const WK={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"};var KK=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,VK=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,zK=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,GK=ac,YK=Qr,rl=pt().Buffer,ZK=function(e,t){var r=e.toString(),i=r.match(KK),a;if(i){var u="aes"+i[1],c=rl.from(i[2],"hex"),d=rl.from(i[3].replace(/[\r\n]/g,""),"base64"),m=GK(t,c.slice(0,8),parseInt(i[1],10)).key,M=[],S=YK.createDecipheriv(u,m,c);M.push(S.update(d)),M.push(S.final()),a=rl.concat(M)}else{var n=r.match(zK);a=rl.from(n[2].replace(/[\r\n]/g,""),"base64")}var R=r.match(VK)[1];return{tag:R,data:a}},$r=Hi,XK=WK,JK=ZK,QK=Qr,eV=ic,Xp=pt().Buffer,Sc=b4;function b4(e){var t;typeof e=="object"&&!Xp.isBuffer(e)&&(t=e.passphrase,e=e.key),typeof e=="string"&&(e=Xp.from(e));var r=JK(e,t),i=r.tag,a=r.data,n,u;switch(i){case"CERTIFICATE":u=$r.certificate.decode(a,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=$r.PublicKey.decode(a,"der")),n=u.algorithm.algorithm.join("."),n){case"1.2.840.113549.1.1.1":return $r.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=$r.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":a=$r.EncryptedPrivateKey.decode(a,"der"),a=tV(a,t);case"PRIVATE KEY":switch(u=$r.PrivateKey.decode(a,"der"),n=u.algorithm.algorithm.join("."),n){case"1.2.840.113549.1.1.1":return $r.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:$r.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=$r.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return $r.RSAPublicKey.decode(a,"der");case"RSA PRIVATE KEY":return $r.RSAPrivateKey.decode(a,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:$r.DSAPrivateKey.decode(a,"der")};case"EC PRIVATE KEY":return a=$r.ECPrivateKey.decode(a,"der"),{curve:a.parameters.value,privateKey:a.privateKey};default:throw new Error("unknown key type "+i)}}b4.signature=$r.signature;function tV(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=XK[e.algorithm.decrypt.cipher.algo.join(".")],n=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,c=parseInt(a.split("-")[1],10)/8,d=eV.pbkdf2Sync(t,r,i,c,"sha1"),m=QK.createDecipheriv(a,d,n),M=[];return M.push(m.update(u)),M.push(m.final()),Xp.concat(M)}const w4={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"};var Ew;function rV(){if(Ew)return gf.exports;Ew=1;var e=pt().Buffer,t=CS,r=Lg,i=jg().ec,a=Bg,n=Sc,u=w4;function c(L,I,B,H,F){var W=n(I);if(W.curve){if(H!=="ecdsa"&&H!=="ecdsa/rsa")throw new Error("wrong private key type");return d(L,W)}else if(W.type==="dsa"){if(H!=="dsa")throw new Error("wrong private key type");return m(L,W,B)}else if(H!=="rsa"&&H!=="ecdsa/rsa")throw new Error("wrong private key type");L=e.concat([F,L]);for(var Y=W.modulus.byteLength(),ie=[0,1];L.length+ie.length+1<Y;)ie.push(255);ie.push(0);for(var J=-1;++J<L.length;)ie.push(L[J]);var V=r(ie,W);return V}function d(L,I){var B=u[I.curve.join(".")];if(!B)throw new Error("unknown curve "+I.curve.join("."));var H=new i(B),F=H.keyFromPrivate(I.privateKey),W=F.sign(L);return e.from(W.toDER())}function m(L,I,B){for(var H=I.params.priv_key,F=I.params.p,W=I.params.q,Y=I.params.g,ie=new a(0),J,V=R(L,W).mod(W),oe=!1,_=S(H,W,L,B);oe===!1;)J=P(W,_,B),ie=k(Y,J,F,W),oe=J.invm(W).imul(V.add(H.mul(ie))).mod(W),oe.cmpn(0)===0&&(oe=!1,ie=new a(0));return M(ie,oe)}function M(L,I){L=L.toArray(),I=I.toArray(),L[0]&128&&(L=[0].concat(L)),I[0]&128&&(I=[0].concat(I));var B=L.length+I.length+4,H=[48,B,2,L.length];return H=H.concat(L,[2,I.length],I),e.from(H)}function S(L,I,B,H){if(L=e.from(L.toArray()),L.length<I.byteLength()){var F=e.alloc(I.byteLength()-L.length);L=e.concat([F,L])}var W=B.length,Y=C(B,I),ie=e.alloc(W);ie.fill(1);var J=e.alloc(W);return J=t(H,J).update(ie).update(e.from([0])).update(L).update(Y).digest(),ie=t(H,J).update(ie).digest(),J=t(H,J).update(ie).update(e.from([1])).update(L).update(Y).digest(),ie=t(H,J).update(ie).digest(),{k:J,v:ie}}function R(L,I){var B=new a(L),H=(L.length<<3)-I.bitLength();return H>0&&B.ishrn(H),B}function C(L,I){L=R(L,I),L=L.mod(I);var B=e.from(L.toArray());if(B.length<I.byteLength()){var H=e.alloc(I.byteLength()-B.length);B=e.concat([H,B])}return B}function P(L,I,B){var H,F;do{for(H=e.alloc(0);H.length*8<L.bitLength();)I.v=t(B,I.k).update(I.v).digest(),H=e.concat([H,I.v]);F=R(H,L),I.k=t(B,I.k).update(I.v).update(e.from([0])).digest(),I.v=t(B,I.k).update(I.v).digest()}while(F.cmp(L)!==-1);return F}function k(L,I,B,H){return L.toRed(a.mont(B)).redPow(I).fromRed().mod(H)}return gf.exports=c,gf.exports.getKey=S,gf.exports.makeKey=P,gf.exports}var O0,Rw;function iV(){if(Rw)return O0;Rw=1;var e=pt().Buffer,t=Bg,r=jg().ec,i=Sc,a=w4;function n(m,M,S,R,C){var P=i(S);if(P.type==="ec"){if(R!=="ecdsa"&&R!=="ecdsa/rsa")throw new Error("wrong public key type");return u(m,M,P)}else if(P.type==="dsa"){if(R!=="dsa")throw new Error("wrong public key type");return c(m,M,P)}else if(R!=="rsa"&&R!=="ecdsa/rsa")throw new Error("wrong public key type");M=e.concat([C,M]);for(var k=P.modulus.byteLength(),L=[1],I=0;M.length+L.length+2<k;)L.push(255),I++;L.push(0);for(var B=-1;++B<M.length;)L.push(M[B]);L=e.from(L);var H=t.mont(P.modulus);m=new t(m).toRed(H),m=m.redPow(new t(P.publicExponent)),m=e.from(m.fromRed().toArray());var F=I<8?1:0;for(k=Math.min(m.length,L.length),m.length!==L.length&&(F=1),B=-1;++B<k;)F|=m[B]^L[B];return F===0}function u(m,M,S){var R=a[S.data.algorithm.curve.join(".")];if(!R)throw new Error("unknown curve "+S.data.algorithm.curve.join("."));var C=new r(R),P=S.data.subjectPrivateKey.data;return C.verify(M,m,P)}function c(m,M,S){var R=S.data.p,C=S.data.q,P=S.data.g,k=S.data.pub_key,L=i.signature.decode(m,"der"),I=L.s,B=L.r;d(I,C),d(B,C);var H=t.mont(R),F=I.invm(C),W=P.toRed(H).redPow(new t(M).mul(F).mod(C)).fromRed().mul(k.toRed(H).redPow(B.mul(F).mod(C)).fromRed()).mod(R).mod(C);return W.cmp(B)===0}function d(m,M){if(m.cmpn(0)<=0)throw new Error("invalid sig");if(m.cmp(M)>=M)throw new Error("invalid sig")}return O0=n,O0}var I0,Aw;function nV(){if(Aw)return I0;Aw=1;var e=pt().Buffer,t=Tu,r=VH,i=Ze,a=rV(),n=iV(),u=BS;Object.keys(u).forEach(function(S){u[S].id=e.from(u[S].id,"hex"),u[S.toLowerCase()]=u[S]});function c(S){r.Writable.call(this);var R=u[S];if(!R)throw new Error("Unknown message digest");this._hashType=R.hash,this._hash=t(R.hash),this._tag=R.id,this._signType=R.sign}i(c,r.Writable),c.prototype._write=function(R,C,P){this._hash.update(R),P()},c.prototype.update=function(R,C){return typeof R=="string"&&(R=e.from(R,C)),this._hash.update(R),this},c.prototype.sign=function(R,C){this.end();var P=this._hash.digest(),k=a(P,R,this._hashType,this._signType,this._tag);return C?k.toString(C):k};function d(S){r.Writable.call(this);var R=u[S];if(!R)throw new Error("Unknown message digest");this._hash=t(R.hash),this._tag=R.id,this._signType=R.sign}i(d,r.Writable),d.prototype._write=function(R,C,P){this._hash.update(R),P()},d.prototype.update=function(R,C){return typeof R=="string"&&(R=e.from(R,C)),this._hash.update(R),this},d.prototype.verify=function(R,C,P){typeof C=="string"&&(C=e.from(C,P)),this.end();var k=this._hash.digest();return n(C,k,R,this._signType,this._tag)};function m(S){return new c(S)}function M(S){return new d(S)}return I0={Sign:m,Verify:M,createSign:m,createVerify:M},I0}var Qg={exports:{}};Qg.exports;(function(e){(function(t,r){function i(_,o){if(!_)throw new Error(o||"Assertion failed")}function a(_,o){_.super_=o;var f=function(){};f.prototype=o.prototype,_.prototype=new f,_.prototype.constructor=_}function n(_,o,f){if(n.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((o==="le"||o==="be")&&(f=o,o=10),this._init(_||0,o||10,f||"be"))}typeof t=="object"?t.exports=n:r.BN=n,n.BN=n,n.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=ke.Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,f){return o.cmp(f)>0?o:f},n.min=function(o,f){return o.cmp(f)<0?o:f},n.prototype._init=function(o,f,l){if(typeof o=="number")return this._initNumber(o,f,l);if(typeof o=="object")return this._initArray(o,f,l);f==="hex"&&(f=16),i(f===(f|0)&&f>=2&&f<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h<o.length&&(f===16?this._parseHex(o,h,l):(this._parseBase(o,f,h),l==="le"&&this._initArray(this.toArray(),f,l)))},n.prototype._initNumber=function(o,f,l){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(i(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),f,l)},n.prototype._initArray=function(o,f,l){if(i(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p,w,x=0;if(l==="be")for(h=o.length-1,p=0;h>=0;h-=3)w=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);else if(l==="le")for(h=0,p=0;h<o.length;h+=3)w=o[h]|o[h+1]<<8|o[h+2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);return this.strip()};function c(_,o){var f=_.charCodeAt(o);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function d(_,o,f){var l=c(_,f);return f-1>=o&&(l|=c(_,f-1)<<4),l}n.prototype._parseHex=function(o,f,l){this.length=Math.ceil((o.length-f)/6),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p=0,w=0,x;if(l==="be")for(h=o.length-1;h>=f;h-=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8;else{var g=o.length-f;for(h=g%2===0?f+1:f;h<o.length;h+=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8}this.strip()};function m(_,o,f,l){for(var h=0,p=Math.min(_.length,f),w=o;w<p;w++){var x=_.charCodeAt(w)-48;h*=l,x>=49?h+=x-49+10:x>=17?h+=x-17+10:h+=x}return h}n.prototype._parseBase=function(o,f,l){this.words=[0],this.length=1;for(var h=0,p=1;p<=67108863;p*=f)h++;h--,p=p/f|0;for(var w=o.length-l,x=w%h,g=Math.min(w,w-x)+l,s=0,v=l;v<g;v+=h)s=m(o,v,v+h,f),this.imuln(p),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(x!==0){var T=1;for(s=m(o,v,o.length,f),v=0;v<x;v++)T*=f;this.imuln(T),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},n.prototype.copy=function(o){o.words=new Array(this.length);for(var f=0;f<this.length;f++)o.words[f]=this.words[f];o.length=this.length,o.negative=this.negative,o.red=this.red},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],R=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,f){o=o||10,f=f|0||1;var l;if(o===16||o==="hex"){l="";for(var h=0,p=0,w=0;w<this.length;w++){var x=this.words[w],g=((x<<h|p)&16777215).toString(16);p=x>>>24-h&16777215,p!==0||w!==this.length-1?l=M[6-g.length]+g+l:l=g+l,h+=2,h>=26&&(h-=26,w--)}for(p!==0&&(l=p.toString(16)+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(o===(o|0)&&o>=2&&o<=36){var s=S[o],v=R[o];l="";var T=this.clone();for(T.negative=0;!T.isZero();){var $=T.modn(v).toString(o);T=T.idivn(v),T.isZero()?l=$+l:l=M[s-$.length]+$+l}for(this.isZero()&&(l="0"+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(o,f){return i(typeof u<"u"),this.toArrayLike(u,o,f)},n.prototype.toArray=function(o,f){return this.toArrayLike(Array,o,f)},n.prototype.toArrayLike=function(o,f,l){var h=this.byteLength(),p=l||Math.max(1,h);i(h<=p,"byte array longer than desired length"),i(p>0,"Requested array length <= 0"),this.strip();var w=f==="le",x=new o(p),g,s,v=this.clone();if(w){for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[s]=g;for(;s<p;s++)x[s]=0}else{for(s=0;s<p-h;s++)x[s]=0;for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[p-s-1]=g}return x},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var f=o,l=0;return f>=4096&&(l+=13,f>>>=13),f>=64&&(l+=7,f>>>=7),f>=8&&(l+=4,f>>>=4),f>=2&&(l+=2,f>>>=2),l+f},n.prototype._zeroBits=function(o){if(o===0)return 26;var f=o,l=0;return f&8191||(l+=13,f>>>=13),f&127||(l+=7,f>>>=7),f&15||(l+=4,f>>>=4),f&3||(l+=2,f>>>=2),f&1||l++,l},n.prototype.bitLength=function(){var o=this.words[this.length-1],f=this._countBits(o);return(this.length-1)*26+f};function C(_){for(var o=new Array(_.bitLength()),f=0;f<o.length;f++){var l=f/26|0,h=f%26;o[f]=(_.words[l]&1<<h)>>>h}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,f=0;f<this.length;f++){var l=this._zeroBits(this.words[f]);if(o+=l,l!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var f=0;f<o.length;f++)this.words[f]=this.words[f]|o.words[f];return this.strip()},n.prototype.ior=function(o){return i((this.negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},n.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},n.prototype.iuand=function(o){var f;this.length>o.length?f=o:f=this;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]&o.words[l];return this.length=f.length,this.strip()},n.prototype.iand=function(o){return i((this.negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},n.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},n.prototype.iuxor=function(o){var f,l;this.length>o.length?(f=this,l=o):(f=o,l=this);for(var h=0;h<l.length;h++)this.words[h]=f.words[h]^l.words[h];if(this!==f)for(;h<f.length;h++)this.words[h]=f.words[h];return this.length=f.length,this.strip()},n.prototype.ixor=function(o){return i((this.negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},n.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},n.prototype.inotn=function(o){i(typeof o=="number"&&o>=0);var f=Math.ceil(o/26)|0,l=o%26;this._expand(f),l>0&&f--;for(var h=0;h<f;h++)this.words[h]=~this.words[h]&67108863;return l>0&&(this.words[h]=~this.words[h]&67108863>>26-l),this.strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,f){i(typeof o=="number"&&o>=0);var l=o/26|0,h=o%26;return this._expand(l+1),f?this.words[l]=this.words[l]|1<<h:this.words[l]=this.words[l]&~(1<<h),this.strip()},n.prototype.iadd=function(o){var f;if(this.negative!==0&&o.negative===0)return this.negative=0,f=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,f=this.isub(o),o.negative=1,f._normSign();var l,h;this.length>o.length?(l=this,h=o):(l=o,h=this);for(var p=0,w=0;w<h.length;w++)f=(l.words[w]|0)+(h.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;for(;p!==0&&w<l.length;w++)f=(l.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;if(this.length=l.length,p!==0)this.words[this.length]=p,this.length++;else if(l!==this)for(;w<l.length;w++)this.words[w]=l.words[w];return this},n.prototype.add=function(o){var f;return o.negative!==0&&this.negative===0?(o.negative=0,f=this.sub(o),o.negative^=1,f):o.negative===0&&this.negative!==0?(this.negative=0,f=o.sub(this),this.negative=1,f):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var f=this.iadd(o);return o.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var l=this.cmp(o);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,p;l>0?(h=this,p=o):(h=o,p=this);for(var w=0,x=0;x<p.length;x++)f=(h.words[x]|0)-(p.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;for(;w!==0&&x<h.length;x++)f=(h.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;if(w===0&&x<h.length&&h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this.length=Math.max(this.length,x),h!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function P(_,o,f){f.negative=o.negative^_.negative;var l=_.length+o.length|0;f.length=l,l=l-1|0;var h=_.words[0]|0,p=o.words[0]|0,w=h*p,x=w&67108863,g=w/67108864|0;f.words[0]=x;for(var s=1;s<l;s++){for(var v=g>>>26,T=g&67108863,$=Math.min(s,o.length-1),G=Math.max(0,s-_.length+1);G<=$;G++){var ee=s-G|0;h=_.words[ee]|0,p=o.words[G]|0,w=h*p+T,v+=w/67108864|0,T=w&67108863}f.words[s]=T|0,g=v|0}return g!==0?f.words[s]=g|0:f.length--,f.strip()}var k=function(o,f,l){var h=o.words,p=f.words,w=l.words,x=0,g,s,v,T=h[0]|0,$=T&8191,G=T>>>13,ee=h[1]|0,A=ee&8191,E=ee>>>13,U=h[2]|0,K=U&8191,Z=U>>>13,b=h[3]|0,y=b&8191,O=b>>>13,q=h[4]|0,X=q&8191,D=q>>>13,N=h[5]|0,j=N&8191,z=N>>>13,se=h[6]|0,te=se&8191,ne=se>>>13,Ee=h[7]|0,Q=Ee&8191,ue=Ee>>>13,le=h[8]|0,ce=le&8191,pe=le>>>13,de=h[9]|0,ae=de&8191,fe=de>>>13,Te=p[0]|0,ve=Te&8191,Me=Te>>>13,Ke=p[1]|0,be=Ke&8191,Se=Ke>>>13,qe=p[2]|0,ye=qe&8191,_e=qe>>>13,Ve=p[3]|0,ge=Ve&8191,xe=Ve>>>13,Xe=p[4]|0,Re=Xe&8191,Le=Xe>>>13,at=p[5]|0,Ae=at&8191,Ne=at>>>13,rt=p[6]|0,Oe=rt&8191,De=rt>>>13,nt=p[7]|0,Ie=nt&8191,$e=nt>>>13,st=p[8]|0,Pe=st&8191,je=st>>>13,ht=p[9]|0,Ce=ht&8191,Fe=ht>>>13;l.negative=o.negative^f.negative,l.length=19,g=Math.imul($,ve),s=Math.imul($,Me),s=s+Math.imul(G,ve)|0,v=Math.imul(G,Me);var it=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(it>>>26)|0,it&=67108863,g=Math.imul(A,ve),s=Math.imul(A,Me),s=s+Math.imul(E,ve)|0,v=Math.imul(E,Me),g=g+Math.imul($,be)|0,s=s+Math.imul($,Se)|0,s=s+Math.imul(G,be)|0,v=v+Math.imul(G,Se)|0;var et=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(et>>>26)|0,et&=67108863,g=Math.imul(K,ve),s=Math.imul(K,Me),s=s+Math.imul(Z,ve)|0,v=Math.imul(Z,Me),g=g+Math.imul(A,be)|0,s=s+Math.imul(A,Se)|0,s=s+Math.imul(E,be)|0,v=v+Math.imul(E,Se)|0,g=g+Math.imul($,ye)|0,s=s+Math.imul($,_e)|0,s=s+Math.imul(G,ye)|0,v=v+Math.imul(G,_e)|0;var xt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(xt>>>26)|0,xt&=67108863,g=Math.imul(y,ve),s=Math.imul(y,Me),s=s+Math.imul(O,ve)|0,v=Math.imul(O,Me),g=g+Math.imul(K,be)|0,s=s+Math.imul(K,Se)|0,s=s+Math.imul(Z,be)|0,v=v+Math.imul(Z,Se)|0,g=g+Math.imul(A,ye)|0,s=s+Math.imul(A,_e)|0,s=s+Math.imul(E,ye)|0,v=v+Math.imul(E,_e)|0,g=g+Math.imul($,ge)|0,s=s+Math.imul($,xe)|0,s=s+Math.imul(G,ge)|0,v=v+Math.imul(G,xe)|0;var Tt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,g=Math.imul(X,ve),s=Math.imul(X,Me),s=s+Math.imul(D,ve)|0,v=Math.imul(D,Me),g=g+Math.imul(y,be)|0,s=s+Math.imul(y,Se)|0,s=s+Math.imul(O,be)|0,v=v+Math.imul(O,Se)|0,g=g+Math.imul(K,ye)|0,s=s+Math.imul(K,_e)|0,s=s+Math.imul(Z,ye)|0,v=v+Math.imul(Z,_e)|0,g=g+Math.imul(A,ge)|0,s=s+Math.imul(A,xe)|0,s=s+Math.imul(E,ge)|0,v=v+Math.imul(E,xe)|0,g=g+Math.imul($,Re)|0,s=s+Math.imul($,Le)|0,s=s+Math.imul(G,Re)|0,v=v+Math.imul(G,Le)|0;var Ot=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,g=Math.imul(j,ve),s=Math.imul(j,Me),s=s+Math.imul(z,ve)|0,v=Math.imul(z,Me),g=g+Math.imul(X,be)|0,s=s+Math.imul(X,Se)|0,s=s+Math.imul(D,be)|0,v=v+Math.imul(D,Se)|0,g=g+Math.imul(y,ye)|0,s=s+Math.imul(y,_e)|0,s=s+Math.imul(O,ye)|0,v=v+Math.imul(O,_e)|0,g=g+Math.imul(K,ge)|0,s=s+Math.imul(K,xe)|0,s=s+Math.imul(Z,ge)|0,v=v+Math.imul(Z,xe)|0,g=g+Math.imul(A,Re)|0,s=s+Math.imul(A,Le)|0,s=s+Math.imul(E,Re)|0,v=v+Math.imul(E,Le)|0,g=g+Math.imul($,Ae)|0,s=s+Math.imul($,Ne)|0,s=s+Math.imul(G,Ae)|0,v=v+Math.imul(G,Ne)|0;var Ct=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,g=Math.imul(te,ve),s=Math.imul(te,Me),s=s+Math.imul(ne,ve)|0,v=Math.imul(ne,Me),g=g+Math.imul(j,be)|0,s=s+Math.imul(j,Se)|0,s=s+Math.imul(z,be)|0,v=v+Math.imul(z,Se)|0,g=g+Math.imul(X,ye)|0,s=s+Math.imul(X,_e)|0,s=s+Math.imul(D,ye)|0,v=v+Math.imul(D,_e)|0,g=g+Math.imul(y,ge)|0,s=s+Math.imul(y,xe)|0,s=s+Math.imul(O,ge)|0,v=v+Math.imul(O,xe)|0,g=g+Math.imul(K,Re)|0,s=s+Math.imul(K,Le)|0,s=s+Math.imul(Z,Re)|0,v=v+Math.imul(Z,Le)|0,g=g+Math.imul(A,Ae)|0,s=s+Math.imul(A,Ne)|0,s=s+Math.imul(E,Ae)|0,v=v+Math.imul(E,Ne)|0,g=g+Math.imul($,Oe)|0,s=s+Math.imul($,De)|0,s=s+Math.imul(G,Oe)|0,v=v+Math.imul(G,De)|0;var kt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(kt>>>26)|0,kt&=67108863,g=Math.imul(Q,ve),s=Math.imul(Q,Me),s=s+Math.imul(ue,ve)|0,v=Math.imul(ue,Me),g=g+Math.imul(te,be)|0,s=s+Math.imul(te,Se)|0,s=s+Math.imul(ne,be)|0,v=v+Math.imul(ne,Se)|0,g=g+Math.imul(j,ye)|0,s=s+Math.imul(j,_e)|0,s=s+Math.imul(z,ye)|0,v=v+Math.imul(z,_e)|0,g=g+Math.imul(X,ge)|0,s=s+Math.imul(X,xe)|0,s=s+Math.imul(D,ge)|0,v=v+Math.imul(D,xe)|0,g=g+Math.imul(y,Re)|0,s=s+Math.imul(y,Le)|0,s=s+Math.imul(O,Re)|0,v=v+Math.imul(O,Le)|0,g=g+Math.imul(K,Ae)|0,s=s+Math.imul(K,Ne)|0,s=s+Math.imul(Z,Ae)|0,v=v+Math.imul(Z,Ne)|0,g=g+Math.imul(A,Oe)|0,s=s+Math.imul(A,De)|0,s=s+Math.imul(E,Oe)|0,v=v+Math.imul(E,De)|0,g=g+Math.imul($,Ie)|0,s=s+Math.imul($,$e)|0,s=s+Math.imul(G,Ie)|0,v=v+Math.imul(G,$e)|0;var Ut=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,g=Math.imul(ce,ve),s=Math.imul(ce,Me),s=s+Math.imul(pe,ve)|0,v=Math.imul(pe,Me),g=g+Math.imul(Q,be)|0,s=s+Math.imul(Q,Se)|0,s=s+Math.imul(ue,be)|0,v=v+Math.imul(ue,Se)|0,g=g+Math.imul(te,ye)|0,s=s+Math.imul(te,_e)|0,s=s+Math.imul(ne,ye)|0,v=v+Math.imul(ne,_e)|0,g=g+Math.imul(j,ge)|0,s=s+Math.imul(j,xe)|0,s=s+Math.imul(z,ge)|0,v=v+Math.imul(z,xe)|0,g=g+Math.imul(X,Re)|0,s=s+Math.imul(X,Le)|0,s=s+Math.imul(D,Re)|0,v=v+Math.imul(D,Le)|0,g=g+Math.imul(y,Ae)|0,s=s+Math.imul(y,Ne)|0,s=s+Math.imul(O,Ae)|0,v=v+Math.imul(O,Ne)|0,g=g+Math.imul(K,Oe)|0,s=s+Math.imul(K,De)|0,s=s+Math.imul(Z,Oe)|0,v=v+Math.imul(Z,De)|0,g=g+Math.imul(A,Ie)|0,s=s+Math.imul(A,$e)|0,s=s+Math.imul(E,Ie)|0,v=v+Math.imul(E,$e)|0,g=g+Math.imul($,Pe)|0,s=s+Math.imul($,je)|0,s=s+Math.imul(G,Pe)|0,v=v+Math.imul(G,je)|0;var Ht=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,g=Math.imul(ae,ve),s=Math.imul(ae,Me),s=s+Math.imul(fe,ve)|0,v=Math.imul(fe,Me),g=g+Math.imul(ce,be)|0,s=s+Math.imul(ce,Se)|0,s=s+Math.imul(pe,be)|0,v=v+Math.imul(pe,Se)|0,g=g+Math.imul(Q,ye)|0,s=s+Math.imul(Q,_e)|0,s=s+Math.imul(ue,ye)|0,v=v+Math.imul(ue,_e)|0,g=g+Math.imul(te,ge)|0,s=s+Math.imul(te,xe)|0,s=s+Math.imul(ne,ge)|0,v=v+Math.imul(ne,xe)|0,g=g+Math.imul(j,Re)|0,s=s+Math.imul(j,Le)|0,s=s+Math.imul(z,Re)|0,v=v+Math.imul(z,Le)|0,g=g+Math.imul(X,Ae)|0,s=s+Math.imul(X,Ne)|0,s=s+Math.imul(D,Ae)|0,v=v+Math.imul(D,Ne)|0,g=g+Math.imul(y,Oe)|0,s=s+Math.imul(y,De)|0,s=s+Math.imul(O,Oe)|0,v=v+Math.imul(O,De)|0,g=g+Math.imul(K,Ie)|0,s=s+Math.imul(K,$e)|0,s=s+Math.imul(Z,Ie)|0,v=v+Math.imul(Z,$e)|0,g=g+Math.imul(A,Pe)|0,s=s+Math.imul(A,je)|0,s=s+Math.imul(E,Pe)|0,v=v+Math.imul(E,je)|0,g=g+Math.imul($,Ce)|0,s=s+Math.imul($,Fe)|0,s=s+Math.imul(G,Ce)|0,v=v+Math.imul(G,Fe)|0;var Bt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,g=Math.imul(ae,be),s=Math.imul(ae,Se),s=s+Math.imul(fe,be)|0,v=Math.imul(fe,Se),g=g+Math.imul(ce,ye)|0,s=s+Math.imul(ce,_e)|0,s=s+Math.imul(pe,ye)|0,v=v+Math.imul(pe,_e)|0,g=g+Math.imul(Q,ge)|0,s=s+Math.imul(Q,xe)|0,s=s+Math.imul(ue,ge)|0,v=v+Math.imul(ue,xe)|0,g=g+Math.imul(te,Re)|0,s=s+Math.imul(te,Le)|0,s=s+Math.imul(ne,Re)|0,v=v+Math.imul(ne,Le)|0,g=g+Math.imul(j,Ae)|0,s=s+Math.imul(j,Ne)|0,s=s+Math.imul(z,Ae)|0,v=v+Math.imul(z,Ne)|0,g=g+Math.imul(X,Oe)|0,s=s+Math.imul(X,De)|0,s=s+Math.imul(D,Oe)|0,v=v+Math.imul(D,De)|0,g=g+Math.imul(y,Ie)|0,s=s+Math.imul(y,$e)|0,s=s+Math.imul(O,Ie)|0,v=v+Math.imul(O,$e)|0,g=g+Math.imul(K,Pe)|0,s=s+Math.imul(K,je)|0,s=s+Math.imul(Z,Pe)|0,v=v+Math.imul(Z,je)|0,g=g+Math.imul(A,Ce)|0,s=s+Math.imul(A,Fe)|0,s=s+Math.imul(E,Ce)|0,v=v+Math.imul(E,Fe)|0;var dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(dt>>>26)|0,dt&=67108863,g=Math.imul(ae,ye),s=Math.imul(ae,_e),s=s+Math.imul(fe,ye)|0,v=Math.imul(fe,_e),g=g+Math.imul(ce,ge)|0,s=s+Math.imul(ce,xe)|0,s=s+Math.imul(pe,ge)|0,v=v+Math.imul(pe,xe)|0,g=g+Math.imul(Q,Re)|0,s=s+Math.imul(Q,Le)|0,s=s+Math.imul(ue,Re)|0,v=v+Math.imul(ue,Le)|0,g=g+Math.imul(te,Ae)|0,s=s+Math.imul(te,Ne)|0,s=s+Math.imul(ne,Ae)|0,v=v+Math.imul(ne,Ne)|0,g=g+Math.imul(j,Oe)|0,s=s+Math.imul(j,De)|0,s=s+Math.imul(z,Oe)|0,v=v+Math.imul(z,De)|0,g=g+Math.imul(X,Ie)|0,s=s+Math.imul(X,$e)|0,s=s+Math.imul(D,Ie)|0,v=v+Math.imul(D,$e)|0,g=g+Math.imul(y,Pe)|0,s=s+Math.imul(y,je)|0,s=s+Math.imul(O,Pe)|0,v=v+Math.imul(O,je)|0,g=g+Math.imul(K,Ce)|0,s=s+Math.imul(K,Fe)|0,s=s+Math.imul(Z,Ce)|0,v=v+Math.imul(Z,Fe)|0;var At=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(At>>>26)|0,At&=67108863,g=Math.imul(ae,ge),s=Math.imul(ae,xe),s=s+Math.imul(fe,ge)|0,v=Math.imul(fe,xe),g=g+Math.imul(ce,Re)|0,s=s+Math.imul(ce,Le)|0,s=s+Math.imul(pe,Re)|0,v=v+Math.imul(pe,Le)|0,g=g+Math.imul(Q,Ae)|0,s=s+Math.imul(Q,Ne)|0,s=s+Math.imul(ue,Ae)|0,v=v+Math.imul(ue,Ne)|0,g=g+Math.imul(te,Oe)|0,s=s+Math.imul(te,De)|0,s=s+Math.imul(ne,Oe)|0,v=v+Math.imul(ne,De)|0,g=g+Math.imul(j,Ie)|0,s=s+Math.imul(j,$e)|0,s=s+Math.imul(z,Ie)|0,v=v+Math.imul(z,$e)|0,g=g+Math.imul(X,Pe)|0,s=s+Math.imul(X,je)|0,s=s+Math.imul(D,Pe)|0,v=v+Math.imul(D,je)|0,g=g+Math.imul(y,Ce)|0,s=s+Math.imul(y,Fe)|0,s=s+Math.imul(O,Ce)|0,v=v+Math.imul(O,Fe)|0;var _t=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(_t>>>26)|0,_t&=67108863,g=Math.imul(ae,Re),s=Math.imul(ae,Le),s=s+Math.imul(fe,Re)|0,v=Math.imul(fe,Le),g=g+Math.imul(ce,Ae)|0,s=s+Math.imul(ce,Ne)|0,s=s+Math.imul(pe,Ae)|0,v=v+Math.imul(pe,Ne)|0,g=g+Math.imul(Q,Oe)|0,s=s+Math.imul(Q,De)|0,s=s+Math.imul(ue,Oe)|0,v=v+Math.imul(ue,De)|0,g=g+Math.imul(te,Ie)|0,s=s+Math.imul(te,$e)|0,s=s+Math.imul(ne,Ie)|0,v=v+Math.imul(ne,$e)|0,g=g+Math.imul(j,Pe)|0,s=s+Math.imul(j,je)|0,s=s+Math.imul(z,Pe)|0,v=v+Math.imul(z,je)|0,g=g+Math.imul(X,Ce)|0,s=s+Math.imul(X,Fe)|0,s=s+Math.imul(D,Ce)|0,v=v+Math.imul(D,Fe)|0;var mt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(mt>>>26)|0,mt&=67108863,g=Math.imul(ae,Ae),s=Math.imul(ae,Ne),s=s+Math.imul(fe,Ae)|0,v=Math.imul(fe,Ne),g=g+Math.imul(ce,Oe)|0,s=s+Math.imul(ce,De)|0,s=s+Math.imul(pe,Oe)|0,v=v+Math.imul(pe,De)|0,g=g+Math.imul(Q,Ie)|0,s=s+Math.imul(Q,$e)|0,s=s+Math.imul(ue,Ie)|0,v=v+Math.imul(ue,$e)|0,g=g+Math.imul(te,Pe)|0,s=s+Math.imul(te,je)|0,s=s+Math.imul(ne,Pe)|0,v=v+Math.imul(ne,je)|0,g=g+Math.imul(j,Ce)|0,s=s+Math.imul(j,Fe)|0,s=s+Math.imul(z,Ce)|0,v=v+Math.imul(z,Fe)|0;var It=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(It>>>26)|0,It&=67108863,g=Math.imul(ae,Oe),s=Math.imul(ae,De),s=s+Math.imul(fe,Oe)|0,v=Math.imul(fe,De),g=g+Math.imul(ce,Ie)|0,s=s+Math.imul(ce,$e)|0,s=s+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,$e)|0,g=g+Math.imul(Q,Pe)|0,s=s+Math.imul(Q,je)|0,s=s+Math.imul(ue,Pe)|0,v=v+Math.imul(ue,je)|0,g=g+Math.imul(te,Ce)|0,s=s+Math.imul(te,Fe)|0,s=s+Math.imul(ne,Ce)|0,v=v+Math.imul(ne,Fe)|0;var vt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(vt>>>26)|0,vt&=67108863,g=Math.imul(ae,Ie),s=Math.imul(ae,$e),s=s+Math.imul(fe,Ie)|0,v=Math.imul(fe,$e),g=g+Math.imul(ce,Pe)|0,s=s+Math.imul(ce,je)|0,s=s+Math.imul(pe,Pe)|0,v=v+Math.imul(pe,je)|0,g=g+Math.imul(Q,Ce)|0,s=s+Math.imul(Q,Fe)|0,s=s+Math.imul(ue,Ce)|0,v=v+Math.imul(ue,Fe)|0;var yt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(yt>>>26)|0,yt&=67108863,g=Math.imul(ae,Pe),s=Math.imul(ae,je),s=s+Math.imul(fe,Pe)|0,v=Math.imul(fe,je),g=g+Math.imul(ce,Ce)|0,s=s+Math.imul(ce,Fe)|0,s=s+Math.imul(pe,Ce)|0,v=v+Math.imul(pe,Fe)|0;var Dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,g=Math.imul(ae,Ce),s=Math.imul(ae,Fe),s=s+Math.imul(fe,Ce)|0,v=Math.imul(fe,Fe);var Ft=(x+g|0)+((s&8191)<<13)|0;return x=(v+(s>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,w[0]=it,w[1]=et,w[2]=xt,w[3]=Tt,w[4]=Ot,w[5]=Ct,w[6]=kt,w[7]=Ut,w[8]=Ht,w[9]=Bt,w[10]=dt,w[11]=At,w[12]=_t,w[13]=mt,w[14]=It,w[15]=vt,w[16]=yt,w[17]=Dt,w[18]=Ft,x!==0&&(w[19]=x,l.length++),l};Math.imul||(k=P);function L(_,o,f){f.negative=o.negative^_.negative,f.length=_.length+o.length;for(var l=0,h=0,p=0;p<f.length-1;p++){var w=h;h=0;for(var x=l&67108863,g=Math.min(p,o.length-1),s=Math.max(0,p-_.length+1);s<=g;s++){var v=p-s,T=_.words[v]|0,$=o.words[s]|0,G=T*$,ee=G&67108863;w=w+(G/67108864|0)|0,ee=ee+x|0,x=ee&67108863,w=w+(ee>>>26)|0,h+=w>>>26,w&=67108863}f.words[p]=x,l=w,w=h}return l!==0?f.words[p]=l:f.length--,f.strip()}function I(_,o,f){var l=new B;return l.mulp(_,o,f)}n.prototype.mulTo=function(o,f){var l,h=this.length+o.length;return this.length===10&&o.length===10?l=k(this,o,f):h<63?l=P(this,o,f):h<1024?l=L(this,o,f):l=I(this,o,f),l};function B(_,o){this.x=_,this.y=o}B.prototype.makeRBT=function(o){for(var f=new Array(o),l=n.prototype._countBits(o)-1,h=0;h<o;h++)f[h]=this.revBin(h,l,o);return f},B.prototype.revBin=function(o,f,l){if(o===0||o===l-1)return o;for(var h=0,p=0;p<f;p++)h|=(o&1)<<f-p-1,o>>=1;return h},B.prototype.permute=function(o,f,l,h,p,w){for(var x=0;x<w;x++)h[x]=f[o[x]],p[x]=l[o[x]]},B.prototype.transform=function(o,f,l,h,p,w){this.permute(w,o,f,l,h,p);for(var x=1;x<p;x<<=1)for(var g=x<<1,s=Math.cos(2*Math.PI/g),v=Math.sin(2*Math.PI/g),T=0;T<p;T+=g)for(var $=s,G=v,ee=0;ee<x;ee++){var A=l[T+ee],E=h[T+ee],U=l[T+ee+x],K=h[T+ee+x],Z=$*U-G*K;K=$*K+G*U,U=Z,l[T+ee]=A+U,h[T+ee]=E+K,l[T+ee+x]=A-U,h[T+ee+x]=E-K,ee!==g&&(Z=s*$-v*G,G=s*G+v*$,$=Z)}},B.prototype.guessLen13b=function(o,f){var l=Math.max(f,o)|1,h=l&1,p=0;for(l=l/2|0;l;l=l>>>1)p++;return 1<<p+1+h},B.prototype.conjugate=function(o,f,l){if(!(l<=1))for(var h=0;h<l/2;h++){var p=o[h];o[h]=o[l-h-1],o[l-h-1]=p,p=f[h],f[h]=-f[l-h-1],f[l-h-1]=-p}},B.prototype.normalize13b=function(o,f){for(var l=0,h=0;h<f/2;h++){var p=Math.round(o[2*h+1]/f)*8192+Math.round(o[2*h]/f)+l;o[h]=p&67108863,p<67108864?l=0:l=p/67108864|0}return o},B.prototype.convert13b=function(o,f,l,h){for(var p=0,w=0;w<f;w++)p=p+(o[w]|0),l[2*w]=p&8191,p=p>>>13,l[2*w+1]=p&8191,p=p>>>13;for(w=2*f;w<h;++w)l[w]=0;i(p===0),i((p&-8192)===0)},B.prototype.stub=function(o){for(var f=new Array(o),l=0;l<o;l++)f[l]=0;return f},B.prototype.mulp=function(o,f,l){var h=2*this.guessLen13b(o.length,f.length),p=this.makeRBT(h),w=this.stub(h),x=new Array(h),g=new Array(h),s=new Array(h),v=new Array(h),T=new Array(h),$=new Array(h),G=l.words;G.length=h,this.convert13b(o.words,o.length,x,h),this.convert13b(f.words,f.length,v,h),this.transform(x,w,g,s,h,p),this.transform(v,w,T,$,h,p);for(var ee=0;ee<h;ee++){var A=g[ee]*T[ee]-s[ee]*$[ee];s[ee]=g[ee]*$[ee]+s[ee]*T[ee],g[ee]=A}return this.conjugate(g,s,h),this.transform(g,s,G,w,h,p),this.conjugate(G,w,h),this.normalize13b(G,h),l.negative=o.negative^f.negative,l.length=o.length+f.length,l.strip()},n.prototype.mul=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),this.mulTo(o,f)},n.prototype.mulf=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),I(this,o,f)},n.prototype.imul=function(o){return this.clone().mulTo(o,this)},n.prototype.imuln=function(o){i(typeof o=="number"),i(o<67108864);for(var f=0,l=0;l<this.length;l++){var h=(this.words[l]|0)*o,p=(h&67108863)+(f&67108863);f>>=26,f+=h/67108864|0,f+=p>>>26,this.words[l]=p&67108863}return f!==0&&(this.words[l]=f,this.length++),this},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var f=C(o);if(f.length===0)return new n(1);for(var l=this,h=0;h<f.length&&f[h]===0;h++,l=l.sqr());if(++h<f.length)for(var p=l.sqr();h<f.length;h++,p=p.sqr())f[h]!==0&&(l=l.mul(p));return l},n.prototype.iushln=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=67108863>>>26-f<<26-f,p;if(f!==0){var w=0;for(p=0;p<this.length;p++){var x=this.words[p]&h,g=(this.words[p]|0)-x<<f;this.words[p]=g|w,w=x>>>26-f}w&&(this.words[p]=w,this.length++)}if(l!==0){for(p=this.length-1;p>=0;p--)this.words[p+l]=this.words[p];for(p=0;p<l;p++)this.words[p]=0;this.length+=l}return this.strip()},n.prototype.ishln=function(o){return i(this.negative===0),this.iushln(o)},n.prototype.iushrn=function(o,f,l){i(typeof o=="number"&&o>=0);var h;f?h=(f-f%26)/26:h=0;var p=o%26,w=Math.min((o-p)/26,this.length),x=67108863^67108863>>>p<<p,g=l;if(h-=w,h=Math.max(0,h),g){for(var s=0;s<w;s++)g.words[s]=this.words[s];g.length=w}if(w!==0)if(this.length>w)for(this.length-=w,s=0;s<this.length;s++)this.words[s]=this.words[s+w];else this.words[0]=0,this.length=1;var v=0;for(s=this.length-1;s>=0&&(v!==0||s>=h);s--){var T=this.words[s]|0;this.words[s]=v<<26-p|T>>>p,v=T&x}return g&&v!==0&&(g.words[g.length++]=v),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(o,f,l){return i(this.negative===0),this.iushrn(o,f,l)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return!1;var p=this.words[l];return!!(p&h)},n.prototype.imaskn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(f!==0&&l++,this.length=Math.min(l,this.length),f!==0){var h=67108863^67108863>>>f<<f;this.words[this.length-1]&=h}return this.strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return i(typeof o=="number"),i(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},n.prototype._iaddn=function(o){this.words[0]+=o;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},n.prototype.isubn=function(o){if(i(typeof o=="number"),i(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,f,l){var h=o.length+l,p;this._expand(h);var w,x=0;for(p=0;p<o.length;p++){w=(this.words[p+l]|0)+x;var g=(o.words[p]|0)*f;w-=g&67108863,x=(w>>26)-(g/67108864|0),this.words[p+l]=w&67108863}for(;p<this.length-l;p++)w=(this.words[p+l]|0)+x,x=w>>26,this.words[p+l]=w&67108863;if(x===0)return this.strip();for(i(x===-1),x=0,p=0;p<this.length;p++)w=-(this.words[p]|0)+x,x=w>>26,this.words[p]=w&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(o,f){var l=this.length-o.length,h=this.clone(),p=o,w=p.words[p.length-1]|0,x=this._countBits(w);l=26-x,l!==0&&(p=p.ushln(l),h.iushln(l),w=p.words[p.length-1]|0);var g=h.length-p.length,s;if(f!=="mod"){s=new n(null),s.length=g+1,s.words=new Array(s.length);for(var v=0;v<s.length;v++)s.words[v]=0}var T=h.clone()._ishlnsubmul(p,1,g);T.negative===0&&(h=T,s&&(s.words[g]=1));for(var $=g-1;$>=0;$--){var G=(h.words[p.length+$]|0)*67108864+(h.words[p.length+$-1]|0);for(G=Math.min(G/w|0,67108863),h._ishlnsubmul(p,G,$);h.negative!==0;)G--,h.negative=0,h._ishlnsubmul(p,1,$),h.isZero()||(h.negative^=1);s&&(s.words[$]=G)}return s&&s.strip(),h.strip(),f!=="div"&&l!==0&&h.iushrn(l),{div:s||null,mod:h}},n.prototype.divmod=function(o,f,l){if(i(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,p,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,f),f!=="mod"&&(h=w.div.neg()),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.iadd(o)),{div:h,mod:p}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),f),f!=="mod"&&(h=w.div.neg()),{div:h,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),f),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.isub(o)),{div:w.div,mod:p}):o.length>this.length||this.cmp(o)<0?{div:new n(0),mod:this}:o.length===1?f==="div"?{div:this.divn(o.words[0]),mod:null}:f==="mod"?{div:null,mod:new n(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modn(o.words[0]))}:this._wordDiv(o,f)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var f=this.divmod(o);if(f.mod.isZero())return f.div;var l=f.div.negative!==0?f.mod.isub(o):f.mod,h=o.ushrn(1),p=o.andln(1),w=l.cmp(h);return w<0||p===1&&w===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},n.prototype.modn=function(o){i(o<=67108863);for(var f=(1<<26)%o,l=0,h=this.length-1;h>=0;h--)l=(f*l+(this.words[h]|0))%o;return l},n.prototype.idivn=function(o){i(o<=67108863);for(var f=0,l=this.length-1;l>=0;l--){var h=(this.words[l]|0)+f*67108864;this.words[l]=h/o|0,f=h%o}return this.strip()},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=new n(0),x=new n(1),g=0;f.isEven()&&l.isEven();)f.iushrn(1),l.iushrn(1),++g;for(var s=l.clone(),v=f.clone();!f.isZero();){for(var T=0,$=1;!(f.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(f.iushrn(T);T-- >0;)(h.isOdd()||p.isOdd())&&(h.iadd(s),p.isub(v)),h.iushrn(1),p.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(s),x.isub(v)),w.iushrn(1),x.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(w),p.isub(x)):(l.isub(f),w.isub(h),x.isub(p))}return{a:w,b:x,gcd:l.iushln(g)}},n.prototype._invmp=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=l.clone();f.cmpn(1)>0&&l.cmpn(1)>0;){for(var x=0,g=1;!(f.words[0]&g)&&x<26;++x,g<<=1);if(x>0)for(f.iushrn(x);x-- >0;)h.isOdd()&&h.iadd(w),h.iushrn(1);for(var s=0,v=1;!(l.words[0]&v)&&s<26;++s,v<<=1);if(s>0)for(l.iushrn(s);s-- >0;)p.isOdd()&&p.iadd(w),p.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(p)):(l.isub(f),p.isub(h))}var T;return f.cmpn(1)===0?T=h:T=p,T.cmpn(0)<0&&T.iadd(o),T},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var f=this.clone(),l=o.clone();f.negative=0,l.negative=0;for(var h=0;f.isEven()&&l.isEven();h++)f.iushrn(1),l.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;l.isEven();)l.iushrn(1);var p=f.cmp(l);if(p<0){var w=f;f=l,l=w}else if(p===0||l.cmpn(1)===0)break;f.isub(l)}while(!0);return l.iushln(h)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(o){return this.words[0]&o},n.prototype.bincn=function(o){i(typeof o=="number");var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return this._expand(l+1),this.words[l]|=h,this;for(var p=h,w=l;p!==0&&w<this.length;w++){var x=this.words[w]|0;x+=p,p=x>>>26,x&=67108863,this.words[w]=x}return p!==0&&(this.words[w]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(o){var f=o<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var l;if(this.length>1)l=1;else{f&&(o=-o),i(o<=67108863,"Number is too big");var h=this.words[0]|0;l=h===o?0:h<o?-1:1}return this.negative!==0?-l|0:l},n.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var f=this.ucmp(o);return this.negative!==0?-f|0:f},n.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var f=0,l=this.length-1;l>=0;l--){var h=this.words[l]|0,p=o.words[l]|0;if(h!==p){h<p?f=-1:h>p&&(f=1);break}}return f},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new V(o)},n.prototype.toRed=function(o){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},n.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(o){return this.red=o,this},n.prototype.forceRed=function(o){return i(!this.red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},n.prototype.redIAdd=function(o){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},n.prototype.redSub=function(o){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},n.prototype.redISub=function(o){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},n.prototype.redShl=function(o){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},n.prototype.redMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},n.prototype.redIMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},n.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(o){return i(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var H={k256:null,p224:null,p192:null,p25519:null};function F(_,o){this.name=_,this.p=new n(o,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil(this.n/13)),o},F.prototype.ireduce=function(o){var f=o,l;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),l=f.bitLength();while(l>this.n);var h=l<this.n?-1:f.ucmp(this.p);return h===0?(f.words[0]=0,f.length=1):h>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},F.prototype.split=function(o,f){o.iushrn(this.n,0,f)},F.prototype.imulK=function(o){return o.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(W,F),W.prototype.split=function(o,f){for(var l=4194303,h=Math.min(o.length,9),p=0;p<h;p++)f.words[p]=o.words[p];if(f.length=h,o.length<=9){o.words[0]=0,o.length=1;return}var w=o.words[9];for(f.words[f.length++]=w&l,p=10;p<o.length;p++){var x=o.words[p]|0;o.words[p-10]=(x&l)<<4|w>>>22,w=x}w>>>=22,o.words[p-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},W.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var f=0,l=0;l<o.length;l++){var h=o.words[l]|0;f+=h*977,o.words[l]=f&67108863,f=h*64+(f/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Y(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(Y,F);function ie(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(ie,F);function J(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(J,F),J.prototype.imulK=function(o){for(var f=0,l=0;l<o.length;l++){var h=(o.words[l]|0)*19+f,p=h&67108863;h>>>=26,o.words[l]=p,f=h}return f!==0&&(o.words[o.length++]=f),o},n._prime=function(o){if(H[o])return H[o];var f;if(o==="k256")f=new W;else if(o==="p224")f=new Y;else if(o==="p192")f=new ie;else if(o==="p25519")f=new J;else throw new Error("Unknown prime "+o);return H[o]=f,f};function V(_){if(typeof _=="string"){var o=n._prime(_);this.m=o.p,this.prime=o}else i(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}V.prototype._verify1=function(o){i(o.negative===0,"red works only with positives"),i(o.red,"red works only with red numbers")},V.prototype._verify2=function(o,f){i((o.negative|f.negative)===0,"red works only with positives"),i(o.red&&o.red===f.red,"red works only with red numbers")},V.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},V.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},V.prototype.add=function(o,f){this._verify2(o,f);var l=o.add(f);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},V.prototype.iadd=function(o,f){this._verify2(o,f);var l=o.iadd(f);return l.cmp(this.m)>=0&&l.isub(this.m),l},V.prototype.sub=function(o,f){this._verify2(o,f);var l=o.sub(f);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},V.prototype.isub=function(o,f){this._verify2(o,f);var l=o.isub(f);return l.cmpn(0)<0&&l.iadd(this.m),l},V.prototype.shl=function(o,f){return this._verify1(o),this.imod(o.ushln(f))},V.prototype.imul=function(o,f){return this._verify2(o,f),this.imod(o.imul(f))},V.prototype.mul=function(o,f){return this._verify2(o,f),this.imod(o.mul(f))},V.prototype.isqr=function(o){return this.imul(o,o.clone())},V.prototype.sqr=function(o){return this.mul(o,o)},V.prototype.sqrt=function(o){if(o.isZero())return o.clone();var f=this.m.andln(3);if(i(f%2===1),f===3){var l=this.m.add(new n(1)).iushrn(2);return this.pow(o,l)}for(var h=this.m.subn(1),p=0;!h.isZero()&&h.andln(1)===0;)p++,h.iushrn(1);i(!h.isZero());var w=new n(1).toRed(this),x=w.redNeg(),g=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new n(2*s*s).toRed(this);this.pow(s,g).cmp(x)!==0;)s.redIAdd(x);for(var v=this.pow(s,h),T=this.pow(o,h.addn(1).iushrn(1)),$=this.pow(o,h),G=p;$.cmp(w)!==0;){for(var ee=$,A=0;ee.cmp(w)!==0;A++)ee=ee.redSqr();i(A<G);var E=this.pow(v,new n(1).iushln(G-A-1));T=T.redMul(E),v=E.redSqr(),$=$.redMul(v),G=A}return T},V.prototype.invm=function(o){var f=o._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},V.prototype.pow=function(o,f){if(f.isZero())return new n(1).toRed(this);if(f.cmpn(1)===0)return o.clone();var l=4,h=new Array(1<<l);h[0]=new n(1).toRed(this),h[1]=o;for(var p=2;p<h.length;p++)h[p]=this.mul(h[p-1],o);var w=h[0],x=0,g=0,s=f.bitLength()%26;for(s===0&&(s=26),p=f.length-1;p>=0;p--){for(var v=f.words[p],T=s-1;T>=0;T--){var $=v>>T&1;if(w!==h[0]&&(w=this.sqr(w)),$===0&&x===0){g=0;continue}x<<=1,x|=$,g++,!(g!==l&&(p!==0||T!==0))&&(w=this.mul(w,h[x]),g=0,x=0)}s=26}return w},V.prototype.convertTo=function(o){var f=o.umod(this.m);return f===o?f.clone():f},V.prototype.convertFrom=function(o){var f=o.clone();return f.red=null,f},n.mont=function(o){return new oe(o)};function oe(_){V.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(oe,V),oe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},oe.prototype.convertFrom=function(o){var f=this.imod(o.mul(this.rinv));return f.red=null,f},oe.prototype.imul=function(o,f){if(o.isZero()||f.isZero())return o.words[0]=0,o.length=1,o;var l=o.imul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.mul=function(o,f){if(o.isZero()||f.isZero())return new n(0)._forceRed(this);var l=o.mul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.invm=function(o){var f=this.imod(o._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,Ye)})(Qg);var oV=Qg.exports,P0,Tw;function aV(){if(Tw)return P0;Tw=1;var e=jg(),t=oV;P0=function(u){return new i(u)};var r={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1;function i(n){this.curveType=r[n],this.curveType||(this.curveType={name:n}),this.curve=new e.ec(this.curveType.name),this.keys=void 0}i.prototype.generateKeys=function(n,u){return this.keys=this.curve.genKeyPair(),this.getPublicKey(n,u)},i.prototype.computeSecret=function(n,u,c){u=u||"utf8",ke.Buffer.isBuffer(n)||(n=new ke.Buffer(n,u));var d=this.curve.keyFromPublic(n).getPublic(),m=d.mul(this.keys.getPrivate()).getX();return a(m,c,this.curveType.byteLength)},i.prototype.getPublicKey=function(n,u){var c=this.keys.getPublic(u==="compressed",!0);return u==="hybrid"&&(c[c.length-1]%2?c[0]=7:c[0]=6),a(c,n)},i.prototype.getPrivateKey=function(n){return a(this.keys.getPrivate(),n)},i.prototype.setPublicKey=function(n,u){return u=u||"utf8",ke.Buffer.isBuffer(n)||(n=new ke.Buffer(n,u)),this.keys._importPublic(n),this},i.prototype.setPrivateKey=function(n,u){u=u||"utf8",ke.Buffer.isBuffer(n)||(n=new ke.Buffer(n,u));var c=new t(n);return c=c.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(c),this};function a(n,u,c){Array.isArray(n)||(n=n.toArray());var d=new ke.Buffer(n);if(c&&d.length<c){var m=new ke.Buffer(c-d.length);m.fill(0),d=ke.Buffer.concat([m,d])}return u?d.toString(u):d}return P0}var _4={},sV=Tu,Jp=pt().Buffer,M4=function(e,t){for(var r=Jp.alloc(0),i=0,a;r.length<t;)a=fV(i++),r=Jp.concat([r,sV("sha1").update(e).update(a).digest()]);return r.slice(0,t)};function fV(e){var t=Jp.allocUnsafe(4);return t.writeUInt32BE(e,0),t}var S4=function(t,r){for(var i=t.length,a=-1;++a<i;)t[a]^=r[a];return t},em={exports:{}};em.exports;(function(e){(function(t,r){function i(_,o){if(!_)throw new Error(o||"Assertion failed")}function a(_,o){_.super_=o;var f=function(){};f.prototype=o.prototype,_.prototype=new f,_.prototype.constructor=_}function n(_,o,f){if(n.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&((o==="le"||o==="be")&&(f=o,o=10),this._init(_||0,o||10,f||"be"))}typeof t=="object"?t.exports=n:r.BN=n,n.BN=n,n.wordSize=26;var u;try{typeof window<"u"&&typeof window.Buffer<"u"?u=window.Buffer:u=ke.Buffer}catch{}n.isBN=function(o){return o instanceof n?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===n.wordSize&&Array.isArray(o.words)},n.max=function(o,f){return o.cmp(f)>0?o:f},n.min=function(o,f){return o.cmp(f)<0?o:f},n.prototype._init=function(o,f,l){if(typeof o=="number")return this._initNumber(o,f,l);if(typeof o=="object")return this._initArray(o,f,l);f==="hex"&&(f=16),i(f===(f|0)&&f>=2&&f<=36),o=o.toString().replace(/\s+/g,"");var h=0;o[0]==="-"&&(h++,this.negative=1),h<o.length&&(f===16?this._parseHex(o,h,l):(this._parseBase(o,f,h),l==="le"&&this._initArray(this.toArray(),f,l)))},n.prototype._initNumber=function(o,f,l){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(i(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),l==="le"&&this._initArray(this.toArray(),f,l)},n.prototype._initArray=function(o,f,l){if(i(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p,w,x=0;if(l==="be")for(h=o.length-1,p=0;h>=0;h-=3)w=o[h]|o[h-1]<<8|o[h-2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);else if(l==="le")for(h=0,p=0;h<o.length;h+=3)w=o[h]|o[h+1]<<8|o[h+2]<<16,this.words[p]|=w<<x&67108863,this.words[p+1]=w>>>26-x&67108863,x+=24,x>=26&&(x-=26,p++);return this.strip()};function c(_,o){var f=_.charCodeAt(o);return f>=65&&f<=70?f-55:f>=97&&f<=102?f-87:f-48&15}function d(_,o,f){var l=c(_,f);return f-1>=o&&(l|=c(_,f-1)<<4),l}n.prototype._parseHex=function(o,f,l){this.length=Math.ceil((o.length-f)/6),this.words=new Array(this.length);for(var h=0;h<this.length;h++)this.words[h]=0;var p=0,w=0,x;if(l==="be")for(h=o.length-1;h>=f;h-=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8;else{var g=o.length-f;for(h=g%2===0?f+1:f;h<o.length;h+=2)x=d(o,f,h)<<p,this.words[w]|=x&67108863,p>=18?(p-=18,w+=1,this.words[w]|=x>>>26):p+=8}this.strip()};function m(_,o,f,l){for(var h=0,p=Math.min(_.length,f),w=o;w<p;w++){var x=_.charCodeAt(w)-48;h*=l,x>=49?h+=x-49+10:x>=17?h+=x-17+10:h+=x}return h}n.prototype._parseBase=function(o,f,l){this.words=[0],this.length=1;for(var h=0,p=1;p<=67108863;p*=f)h++;h--,p=p/f|0;for(var w=o.length-l,x=w%h,g=Math.min(w,w-x)+l,s=0,v=l;v<g;v+=h)s=m(o,v,v+h,f),this.imuln(p),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(x!==0){var T=1;for(s=m(o,v,o.length,f),v=0;v<x;v++)T*=f;this.imuln(T),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},n.prototype.copy=function(o){o.words=new Array(this.length);for(var f=0;f<this.length;f++)o.words[f]=this.words[f];o.length=this.length,o.negative=this.negative,o.red=this.red},n.prototype.clone=function(){var o=new n(null);return this.copy(o),o},n.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},n.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},n.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},n.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var M=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],S=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],R=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];n.prototype.toString=function(o,f){o=o||10,f=f|0||1;var l;if(o===16||o==="hex"){l="";for(var h=0,p=0,w=0;w<this.length;w++){var x=this.words[w],g=((x<<h|p)&16777215).toString(16);p=x>>>24-h&16777215,p!==0||w!==this.length-1?l=M[6-g.length]+g+l:l=g+l,h+=2,h>=26&&(h-=26,w--)}for(p!==0&&(l=p.toString(16)+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}if(o===(o|0)&&o>=2&&o<=36){var s=S[o],v=R[o];l="";var T=this.clone();for(T.negative=0;!T.isZero();){var $=T.modn(v).toString(o);T=T.idivn(v),T.isZero()?l=$+l:l=M[s-$.length]+$+l}for(this.isZero()&&(l="0"+l);l.length%f!==0;)l="0"+l;return this.negative!==0&&(l="-"+l),l}i(!1,"Base should be between 2 and 36")},n.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},n.prototype.toJSON=function(){return this.toString(16)},n.prototype.toBuffer=function(o,f){return i(typeof u<"u"),this.toArrayLike(u,o,f)},n.prototype.toArray=function(o,f){return this.toArrayLike(Array,o,f)},n.prototype.toArrayLike=function(o,f,l){var h=this.byteLength(),p=l||Math.max(1,h);i(h<=p,"byte array longer than desired length"),i(p>0,"Requested array length <= 0"),this.strip();var w=f==="le",x=new o(p),g,s,v=this.clone();if(w){for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[s]=g;for(;s<p;s++)x[s]=0}else{for(s=0;s<p-h;s++)x[s]=0;for(s=0;!v.isZero();s++)g=v.andln(255),v.iushrn(8),x[p-s-1]=g}return x},Math.clz32?n.prototype._countBits=function(o){return 32-Math.clz32(o)}:n.prototype._countBits=function(o){var f=o,l=0;return f>=4096&&(l+=13,f>>>=13),f>=64&&(l+=7,f>>>=7),f>=8&&(l+=4,f>>>=4),f>=2&&(l+=2,f>>>=2),l+f},n.prototype._zeroBits=function(o){if(o===0)return 26;var f=o,l=0;return f&8191||(l+=13,f>>>=13),f&127||(l+=7,f>>>=7),f&15||(l+=4,f>>>=4),f&3||(l+=2,f>>>=2),f&1||l++,l},n.prototype.bitLength=function(){var o=this.words[this.length-1],f=this._countBits(o);return(this.length-1)*26+f};function C(_){for(var o=new Array(_.bitLength()),f=0;f<o.length;f++){var l=f/26|0,h=f%26;o[f]=(_.words[l]&1<<h)>>>h}return o}n.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,f=0;f<this.length;f++){var l=this._zeroBits(this.words[f]);if(o+=l,l!==26)break}return o},n.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},n.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},n.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},n.prototype.isNeg=function(){return this.negative!==0},n.prototype.neg=function(){return this.clone().ineg()},n.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},n.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var f=0;f<o.length;f++)this.words[f]=this.words[f]|o.words[f];return this.strip()},n.prototype.ior=function(o){return i((this.negative|o.negative)===0),this.iuor(o)},n.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},n.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},n.prototype.iuand=function(o){var f;this.length>o.length?f=o:f=this;for(var l=0;l<f.length;l++)this.words[l]=this.words[l]&o.words[l];return this.length=f.length,this.strip()},n.prototype.iand=function(o){return i((this.negative|o.negative)===0),this.iuand(o)},n.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},n.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},n.prototype.iuxor=function(o){var f,l;this.length>o.length?(f=this,l=o):(f=o,l=this);for(var h=0;h<l.length;h++)this.words[h]=f.words[h]^l.words[h];if(this!==f)for(;h<f.length;h++)this.words[h]=f.words[h];return this.length=f.length,this.strip()},n.prototype.ixor=function(o){return i((this.negative|o.negative)===0),this.iuxor(o)},n.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},n.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},n.prototype.inotn=function(o){i(typeof o=="number"&&o>=0);var f=Math.ceil(o/26)|0,l=o%26;this._expand(f),l>0&&f--;for(var h=0;h<f;h++)this.words[h]=~this.words[h]&67108863;return l>0&&(this.words[h]=~this.words[h]&67108863>>26-l),this.strip()},n.prototype.notn=function(o){return this.clone().inotn(o)},n.prototype.setn=function(o,f){i(typeof o=="number"&&o>=0);var l=o/26|0,h=o%26;return this._expand(l+1),f?this.words[l]=this.words[l]|1<<h:this.words[l]=this.words[l]&~(1<<h),this.strip()},n.prototype.iadd=function(o){var f;if(this.negative!==0&&o.negative===0)return this.negative=0,f=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,f=this.isub(o),o.negative=1,f._normSign();var l,h;this.length>o.length?(l=this,h=o):(l=o,h=this);for(var p=0,w=0;w<h.length;w++)f=(l.words[w]|0)+(h.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;for(;p!==0&&w<l.length;w++)f=(l.words[w]|0)+p,this.words[w]=f&67108863,p=f>>>26;if(this.length=l.length,p!==0)this.words[this.length]=p,this.length++;else if(l!==this)for(;w<l.length;w++)this.words[w]=l.words[w];return this},n.prototype.add=function(o){var f;return o.negative!==0&&this.negative===0?(o.negative=0,f=this.sub(o),o.negative^=1,f):o.negative===0&&this.negative!==0?(this.negative=0,f=o.sub(this),this.negative=1,f):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},n.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var f=this.iadd(o);return o.negative=1,f._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var l=this.cmp(o);if(l===0)return this.negative=0,this.length=1,this.words[0]=0,this;var h,p;l>0?(h=this,p=o):(h=o,p=this);for(var w=0,x=0;x<p.length;x++)f=(h.words[x]|0)-(p.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;for(;w!==0&&x<h.length;x++)f=(h.words[x]|0)+w,w=f>>26,this.words[x]=f&67108863;if(w===0&&x<h.length&&h!==this)for(;x<h.length;x++)this.words[x]=h.words[x];return this.length=Math.max(this.length,x),h!==this&&(this.negative=1),this.strip()},n.prototype.sub=function(o){return this.clone().isub(o)};function P(_,o,f){f.negative=o.negative^_.negative;var l=_.length+o.length|0;f.length=l,l=l-1|0;var h=_.words[0]|0,p=o.words[0]|0,w=h*p,x=w&67108863,g=w/67108864|0;f.words[0]=x;for(var s=1;s<l;s++){for(var v=g>>>26,T=g&67108863,$=Math.min(s,o.length-1),G=Math.max(0,s-_.length+1);G<=$;G++){var ee=s-G|0;h=_.words[ee]|0,p=o.words[G]|0,w=h*p+T,v+=w/67108864|0,T=w&67108863}f.words[s]=T|0,g=v|0}return g!==0?f.words[s]=g|0:f.length--,f.strip()}var k=function(o,f,l){var h=o.words,p=f.words,w=l.words,x=0,g,s,v,T=h[0]|0,$=T&8191,G=T>>>13,ee=h[1]|0,A=ee&8191,E=ee>>>13,U=h[2]|0,K=U&8191,Z=U>>>13,b=h[3]|0,y=b&8191,O=b>>>13,q=h[4]|0,X=q&8191,D=q>>>13,N=h[5]|0,j=N&8191,z=N>>>13,se=h[6]|0,te=se&8191,ne=se>>>13,Ee=h[7]|0,Q=Ee&8191,ue=Ee>>>13,le=h[8]|0,ce=le&8191,pe=le>>>13,de=h[9]|0,ae=de&8191,fe=de>>>13,Te=p[0]|0,ve=Te&8191,Me=Te>>>13,Ke=p[1]|0,be=Ke&8191,Se=Ke>>>13,qe=p[2]|0,ye=qe&8191,_e=qe>>>13,Ve=p[3]|0,ge=Ve&8191,xe=Ve>>>13,Xe=p[4]|0,Re=Xe&8191,Le=Xe>>>13,at=p[5]|0,Ae=at&8191,Ne=at>>>13,rt=p[6]|0,Oe=rt&8191,De=rt>>>13,nt=p[7]|0,Ie=nt&8191,$e=nt>>>13,st=p[8]|0,Pe=st&8191,je=st>>>13,ht=p[9]|0,Ce=ht&8191,Fe=ht>>>13;l.negative=o.negative^f.negative,l.length=19,g=Math.imul($,ve),s=Math.imul($,Me),s=s+Math.imul(G,ve)|0,v=Math.imul(G,Me);var it=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(it>>>26)|0,it&=67108863,g=Math.imul(A,ve),s=Math.imul(A,Me),s=s+Math.imul(E,ve)|0,v=Math.imul(E,Me),g=g+Math.imul($,be)|0,s=s+Math.imul($,Se)|0,s=s+Math.imul(G,be)|0,v=v+Math.imul(G,Se)|0;var et=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(et>>>26)|0,et&=67108863,g=Math.imul(K,ve),s=Math.imul(K,Me),s=s+Math.imul(Z,ve)|0,v=Math.imul(Z,Me),g=g+Math.imul(A,be)|0,s=s+Math.imul(A,Se)|0,s=s+Math.imul(E,be)|0,v=v+Math.imul(E,Se)|0,g=g+Math.imul($,ye)|0,s=s+Math.imul($,_e)|0,s=s+Math.imul(G,ye)|0,v=v+Math.imul(G,_e)|0;var xt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(xt>>>26)|0,xt&=67108863,g=Math.imul(y,ve),s=Math.imul(y,Me),s=s+Math.imul(O,ve)|0,v=Math.imul(O,Me),g=g+Math.imul(K,be)|0,s=s+Math.imul(K,Se)|0,s=s+Math.imul(Z,be)|0,v=v+Math.imul(Z,Se)|0,g=g+Math.imul(A,ye)|0,s=s+Math.imul(A,_e)|0,s=s+Math.imul(E,ye)|0,v=v+Math.imul(E,_e)|0,g=g+Math.imul($,ge)|0,s=s+Math.imul($,xe)|0,s=s+Math.imul(G,ge)|0,v=v+Math.imul(G,xe)|0;var Tt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,g=Math.imul(X,ve),s=Math.imul(X,Me),s=s+Math.imul(D,ve)|0,v=Math.imul(D,Me),g=g+Math.imul(y,be)|0,s=s+Math.imul(y,Se)|0,s=s+Math.imul(O,be)|0,v=v+Math.imul(O,Se)|0,g=g+Math.imul(K,ye)|0,s=s+Math.imul(K,_e)|0,s=s+Math.imul(Z,ye)|0,v=v+Math.imul(Z,_e)|0,g=g+Math.imul(A,ge)|0,s=s+Math.imul(A,xe)|0,s=s+Math.imul(E,ge)|0,v=v+Math.imul(E,xe)|0,g=g+Math.imul($,Re)|0,s=s+Math.imul($,Le)|0,s=s+Math.imul(G,Re)|0,v=v+Math.imul(G,Le)|0;var Ot=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,g=Math.imul(j,ve),s=Math.imul(j,Me),s=s+Math.imul(z,ve)|0,v=Math.imul(z,Me),g=g+Math.imul(X,be)|0,s=s+Math.imul(X,Se)|0,s=s+Math.imul(D,be)|0,v=v+Math.imul(D,Se)|0,g=g+Math.imul(y,ye)|0,s=s+Math.imul(y,_e)|0,s=s+Math.imul(O,ye)|0,v=v+Math.imul(O,_e)|0,g=g+Math.imul(K,ge)|0,s=s+Math.imul(K,xe)|0,s=s+Math.imul(Z,ge)|0,v=v+Math.imul(Z,xe)|0,g=g+Math.imul(A,Re)|0,s=s+Math.imul(A,Le)|0,s=s+Math.imul(E,Re)|0,v=v+Math.imul(E,Le)|0,g=g+Math.imul($,Ae)|0,s=s+Math.imul($,Ne)|0,s=s+Math.imul(G,Ae)|0,v=v+Math.imul(G,Ne)|0;var Ct=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,g=Math.imul(te,ve),s=Math.imul(te,Me),s=s+Math.imul(ne,ve)|0,v=Math.imul(ne,Me),g=g+Math.imul(j,be)|0,s=s+Math.imul(j,Se)|0,s=s+Math.imul(z,be)|0,v=v+Math.imul(z,Se)|0,g=g+Math.imul(X,ye)|0,s=s+Math.imul(X,_e)|0,s=s+Math.imul(D,ye)|0,v=v+Math.imul(D,_e)|0,g=g+Math.imul(y,ge)|0,s=s+Math.imul(y,xe)|0,s=s+Math.imul(O,ge)|0,v=v+Math.imul(O,xe)|0,g=g+Math.imul(K,Re)|0,s=s+Math.imul(K,Le)|0,s=s+Math.imul(Z,Re)|0,v=v+Math.imul(Z,Le)|0,g=g+Math.imul(A,Ae)|0,s=s+Math.imul(A,Ne)|0,s=s+Math.imul(E,Ae)|0,v=v+Math.imul(E,Ne)|0,g=g+Math.imul($,Oe)|0,s=s+Math.imul($,De)|0,s=s+Math.imul(G,Oe)|0,v=v+Math.imul(G,De)|0;var kt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(kt>>>26)|0,kt&=67108863,g=Math.imul(Q,ve),s=Math.imul(Q,Me),s=s+Math.imul(ue,ve)|0,v=Math.imul(ue,Me),g=g+Math.imul(te,be)|0,s=s+Math.imul(te,Se)|0,s=s+Math.imul(ne,be)|0,v=v+Math.imul(ne,Se)|0,g=g+Math.imul(j,ye)|0,s=s+Math.imul(j,_e)|0,s=s+Math.imul(z,ye)|0,v=v+Math.imul(z,_e)|0,g=g+Math.imul(X,ge)|0,s=s+Math.imul(X,xe)|0,s=s+Math.imul(D,ge)|0,v=v+Math.imul(D,xe)|0,g=g+Math.imul(y,Re)|0,s=s+Math.imul(y,Le)|0,s=s+Math.imul(O,Re)|0,v=v+Math.imul(O,Le)|0,g=g+Math.imul(K,Ae)|0,s=s+Math.imul(K,Ne)|0,s=s+Math.imul(Z,Ae)|0,v=v+Math.imul(Z,Ne)|0,g=g+Math.imul(A,Oe)|0,s=s+Math.imul(A,De)|0,s=s+Math.imul(E,Oe)|0,v=v+Math.imul(E,De)|0,g=g+Math.imul($,Ie)|0,s=s+Math.imul($,$e)|0,s=s+Math.imul(G,Ie)|0,v=v+Math.imul(G,$e)|0;var Ut=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ut>>>26)|0,Ut&=67108863,g=Math.imul(ce,ve),s=Math.imul(ce,Me),s=s+Math.imul(pe,ve)|0,v=Math.imul(pe,Me),g=g+Math.imul(Q,be)|0,s=s+Math.imul(Q,Se)|0,s=s+Math.imul(ue,be)|0,v=v+Math.imul(ue,Se)|0,g=g+Math.imul(te,ye)|0,s=s+Math.imul(te,_e)|0,s=s+Math.imul(ne,ye)|0,v=v+Math.imul(ne,_e)|0,g=g+Math.imul(j,ge)|0,s=s+Math.imul(j,xe)|0,s=s+Math.imul(z,ge)|0,v=v+Math.imul(z,xe)|0,g=g+Math.imul(X,Re)|0,s=s+Math.imul(X,Le)|0,s=s+Math.imul(D,Re)|0,v=v+Math.imul(D,Le)|0,g=g+Math.imul(y,Ae)|0,s=s+Math.imul(y,Ne)|0,s=s+Math.imul(O,Ae)|0,v=v+Math.imul(O,Ne)|0,g=g+Math.imul(K,Oe)|0,s=s+Math.imul(K,De)|0,s=s+Math.imul(Z,Oe)|0,v=v+Math.imul(Z,De)|0,g=g+Math.imul(A,Ie)|0,s=s+Math.imul(A,$e)|0,s=s+Math.imul(E,Ie)|0,v=v+Math.imul(E,$e)|0,g=g+Math.imul($,Pe)|0,s=s+Math.imul($,je)|0,s=s+Math.imul(G,Pe)|0,v=v+Math.imul(G,je)|0;var Ht=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Ht>>>26)|0,Ht&=67108863,g=Math.imul(ae,ve),s=Math.imul(ae,Me),s=s+Math.imul(fe,ve)|0,v=Math.imul(fe,Me),g=g+Math.imul(ce,be)|0,s=s+Math.imul(ce,Se)|0,s=s+Math.imul(pe,be)|0,v=v+Math.imul(pe,Se)|0,g=g+Math.imul(Q,ye)|0,s=s+Math.imul(Q,_e)|0,s=s+Math.imul(ue,ye)|0,v=v+Math.imul(ue,_e)|0,g=g+Math.imul(te,ge)|0,s=s+Math.imul(te,xe)|0,s=s+Math.imul(ne,ge)|0,v=v+Math.imul(ne,xe)|0,g=g+Math.imul(j,Re)|0,s=s+Math.imul(j,Le)|0,s=s+Math.imul(z,Re)|0,v=v+Math.imul(z,Le)|0,g=g+Math.imul(X,Ae)|0,s=s+Math.imul(X,Ne)|0,s=s+Math.imul(D,Ae)|0,v=v+Math.imul(D,Ne)|0,g=g+Math.imul(y,Oe)|0,s=s+Math.imul(y,De)|0,s=s+Math.imul(O,Oe)|0,v=v+Math.imul(O,De)|0,g=g+Math.imul(K,Ie)|0,s=s+Math.imul(K,$e)|0,s=s+Math.imul(Z,Ie)|0,v=v+Math.imul(Z,$e)|0,g=g+Math.imul(A,Pe)|0,s=s+Math.imul(A,je)|0,s=s+Math.imul(E,Pe)|0,v=v+Math.imul(E,je)|0,g=g+Math.imul($,Ce)|0,s=s+Math.imul($,Fe)|0,s=s+Math.imul(G,Ce)|0,v=v+Math.imul(G,Fe)|0;var Bt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,g=Math.imul(ae,be),s=Math.imul(ae,Se),s=s+Math.imul(fe,be)|0,v=Math.imul(fe,Se),g=g+Math.imul(ce,ye)|0,s=s+Math.imul(ce,_e)|0,s=s+Math.imul(pe,ye)|0,v=v+Math.imul(pe,_e)|0,g=g+Math.imul(Q,ge)|0,s=s+Math.imul(Q,xe)|0,s=s+Math.imul(ue,ge)|0,v=v+Math.imul(ue,xe)|0,g=g+Math.imul(te,Re)|0,s=s+Math.imul(te,Le)|0,s=s+Math.imul(ne,Re)|0,v=v+Math.imul(ne,Le)|0,g=g+Math.imul(j,Ae)|0,s=s+Math.imul(j,Ne)|0,s=s+Math.imul(z,Ae)|0,v=v+Math.imul(z,Ne)|0,g=g+Math.imul(X,Oe)|0,s=s+Math.imul(X,De)|0,s=s+Math.imul(D,Oe)|0,v=v+Math.imul(D,De)|0,g=g+Math.imul(y,Ie)|0,s=s+Math.imul(y,$e)|0,s=s+Math.imul(O,Ie)|0,v=v+Math.imul(O,$e)|0,g=g+Math.imul(K,Pe)|0,s=s+Math.imul(K,je)|0,s=s+Math.imul(Z,Pe)|0,v=v+Math.imul(Z,je)|0,g=g+Math.imul(A,Ce)|0,s=s+Math.imul(A,Fe)|0,s=s+Math.imul(E,Ce)|0,v=v+Math.imul(E,Fe)|0;var dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(dt>>>26)|0,dt&=67108863,g=Math.imul(ae,ye),s=Math.imul(ae,_e),s=s+Math.imul(fe,ye)|0,v=Math.imul(fe,_e),g=g+Math.imul(ce,ge)|0,s=s+Math.imul(ce,xe)|0,s=s+Math.imul(pe,ge)|0,v=v+Math.imul(pe,xe)|0,g=g+Math.imul(Q,Re)|0,s=s+Math.imul(Q,Le)|0,s=s+Math.imul(ue,Re)|0,v=v+Math.imul(ue,Le)|0,g=g+Math.imul(te,Ae)|0,s=s+Math.imul(te,Ne)|0,s=s+Math.imul(ne,Ae)|0,v=v+Math.imul(ne,Ne)|0,g=g+Math.imul(j,Oe)|0,s=s+Math.imul(j,De)|0,s=s+Math.imul(z,Oe)|0,v=v+Math.imul(z,De)|0,g=g+Math.imul(X,Ie)|0,s=s+Math.imul(X,$e)|0,s=s+Math.imul(D,Ie)|0,v=v+Math.imul(D,$e)|0,g=g+Math.imul(y,Pe)|0,s=s+Math.imul(y,je)|0,s=s+Math.imul(O,Pe)|0,v=v+Math.imul(O,je)|0,g=g+Math.imul(K,Ce)|0,s=s+Math.imul(K,Fe)|0,s=s+Math.imul(Z,Ce)|0,v=v+Math.imul(Z,Fe)|0;var At=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(At>>>26)|0,At&=67108863,g=Math.imul(ae,ge),s=Math.imul(ae,xe),s=s+Math.imul(fe,ge)|0,v=Math.imul(fe,xe),g=g+Math.imul(ce,Re)|0,s=s+Math.imul(ce,Le)|0,s=s+Math.imul(pe,Re)|0,v=v+Math.imul(pe,Le)|0,g=g+Math.imul(Q,Ae)|0,s=s+Math.imul(Q,Ne)|0,s=s+Math.imul(ue,Ae)|0,v=v+Math.imul(ue,Ne)|0,g=g+Math.imul(te,Oe)|0,s=s+Math.imul(te,De)|0,s=s+Math.imul(ne,Oe)|0,v=v+Math.imul(ne,De)|0,g=g+Math.imul(j,Ie)|0,s=s+Math.imul(j,$e)|0,s=s+Math.imul(z,Ie)|0,v=v+Math.imul(z,$e)|0,g=g+Math.imul(X,Pe)|0,s=s+Math.imul(X,je)|0,s=s+Math.imul(D,Pe)|0,v=v+Math.imul(D,je)|0,g=g+Math.imul(y,Ce)|0,s=s+Math.imul(y,Fe)|0,s=s+Math.imul(O,Ce)|0,v=v+Math.imul(O,Fe)|0;var _t=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(_t>>>26)|0,_t&=67108863,g=Math.imul(ae,Re),s=Math.imul(ae,Le),s=s+Math.imul(fe,Re)|0,v=Math.imul(fe,Le),g=g+Math.imul(ce,Ae)|0,s=s+Math.imul(ce,Ne)|0,s=s+Math.imul(pe,Ae)|0,v=v+Math.imul(pe,Ne)|0,g=g+Math.imul(Q,Oe)|0,s=s+Math.imul(Q,De)|0,s=s+Math.imul(ue,Oe)|0,v=v+Math.imul(ue,De)|0,g=g+Math.imul(te,Ie)|0,s=s+Math.imul(te,$e)|0,s=s+Math.imul(ne,Ie)|0,v=v+Math.imul(ne,$e)|0,g=g+Math.imul(j,Pe)|0,s=s+Math.imul(j,je)|0,s=s+Math.imul(z,Pe)|0,v=v+Math.imul(z,je)|0,g=g+Math.imul(X,Ce)|0,s=s+Math.imul(X,Fe)|0,s=s+Math.imul(D,Ce)|0,v=v+Math.imul(D,Fe)|0;var mt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(mt>>>26)|0,mt&=67108863,g=Math.imul(ae,Ae),s=Math.imul(ae,Ne),s=s+Math.imul(fe,Ae)|0,v=Math.imul(fe,Ne),g=g+Math.imul(ce,Oe)|0,s=s+Math.imul(ce,De)|0,s=s+Math.imul(pe,Oe)|0,v=v+Math.imul(pe,De)|0,g=g+Math.imul(Q,Ie)|0,s=s+Math.imul(Q,$e)|0,s=s+Math.imul(ue,Ie)|0,v=v+Math.imul(ue,$e)|0,g=g+Math.imul(te,Pe)|0,s=s+Math.imul(te,je)|0,s=s+Math.imul(ne,Pe)|0,v=v+Math.imul(ne,je)|0,g=g+Math.imul(j,Ce)|0,s=s+Math.imul(j,Fe)|0,s=s+Math.imul(z,Ce)|0,v=v+Math.imul(z,Fe)|0;var It=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(It>>>26)|0,It&=67108863,g=Math.imul(ae,Oe),s=Math.imul(ae,De),s=s+Math.imul(fe,Oe)|0,v=Math.imul(fe,De),g=g+Math.imul(ce,Ie)|0,s=s+Math.imul(ce,$e)|0,s=s+Math.imul(pe,Ie)|0,v=v+Math.imul(pe,$e)|0,g=g+Math.imul(Q,Pe)|0,s=s+Math.imul(Q,je)|0,s=s+Math.imul(ue,Pe)|0,v=v+Math.imul(ue,je)|0,g=g+Math.imul(te,Ce)|0,s=s+Math.imul(te,Fe)|0,s=s+Math.imul(ne,Ce)|0,v=v+Math.imul(ne,Fe)|0;var vt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(vt>>>26)|0,vt&=67108863,g=Math.imul(ae,Ie),s=Math.imul(ae,$e),s=s+Math.imul(fe,Ie)|0,v=Math.imul(fe,$e),g=g+Math.imul(ce,Pe)|0,s=s+Math.imul(ce,je)|0,s=s+Math.imul(pe,Pe)|0,v=v+Math.imul(pe,je)|0,g=g+Math.imul(Q,Ce)|0,s=s+Math.imul(Q,Fe)|0,s=s+Math.imul(ue,Ce)|0,v=v+Math.imul(ue,Fe)|0;var yt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(yt>>>26)|0,yt&=67108863,g=Math.imul(ae,Pe),s=Math.imul(ae,je),s=s+Math.imul(fe,Pe)|0,v=Math.imul(fe,je),g=g+Math.imul(ce,Ce)|0,s=s+Math.imul(ce,Fe)|0,s=s+Math.imul(pe,Ce)|0,v=v+Math.imul(pe,Fe)|0;var Dt=(x+g|0)+((s&8191)<<13)|0;x=(v+(s>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,g=Math.imul(ae,Ce),s=Math.imul(ae,Fe),s=s+Math.imul(fe,Ce)|0,v=Math.imul(fe,Fe);var Ft=(x+g|0)+((s&8191)<<13)|0;return x=(v+(s>>>13)|0)+(Ft>>>26)|0,Ft&=67108863,w[0]=it,w[1]=et,w[2]=xt,w[3]=Tt,w[4]=Ot,w[5]=Ct,w[6]=kt,w[7]=Ut,w[8]=Ht,w[9]=Bt,w[10]=dt,w[11]=At,w[12]=_t,w[13]=mt,w[14]=It,w[15]=vt,w[16]=yt,w[17]=Dt,w[18]=Ft,x!==0&&(w[19]=x,l.length++),l};Math.imul||(k=P);function L(_,o,f){f.negative=o.negative^_.negative,f.length=_.length+o.length;for(var l=0,h=0,p=0;p<f.length-1;p++){var w=h;h=0;for(var x=l&67108863,g=Math.min(p,o.length-1),s=Math.max(0,p-_.length+1);s<=g;s++){var v=p-s,T=_.words[v]|0,$=o.words[s]|0,G=T*$,ee=G&67108863;w=w+(G/67108864|0)|0,ee=ee+x|0,x=ee&67108863,w=w+(ee>>>26)|0,h+=w>>>26,w&=67108863}f.words[p]=x,l=w,w=h}return l!==0?f.words[p]=l:f.length--,f.strip()}function I(_,o,f){var l=new B;return l.mulp(_,o,f)}n.prototype.mulTo=function(o,f){var l,h=this.length+o.length;return this.length===10&&o.length===10?l=k(this,o,f):h<63?l=P(this,o,f):h<1024?l=L(this,o,f):l=I(this,o,f),l};function B(_,o){this.x=_,this.y=o}B.prototype.makeRBT=function(o){for(var f=new Array(o),l=n.prototype._countBits(o)-1,h=0;h<o;h++)f[h]=this.revBin(h,l,o);return f},B.prototype.revBin=function(o,f,l){if(o===0||o===l-1)return o;for(var h=0,p=0;p<f;p++)h|=(o&1)<<f-p-1,o>>=1;return h},B.prototype.permute=function(o,f,l,h,p,w){for(var x=0;x<w;x++)h[x]=f[o[x]],p[x]=l[o[x]]},B.prototype.transform=function(o,f,l,h,p,w){this.permute(w,o,f,l,h,p);for(var x=1;x<p;x<<=1)for(var g=x<<1,s=Math.cos(2*Math.PI/g),v=Math.sin(2*Math.PI/g),T=0;T<p;T+=g)for(var $=s,G=v,ee=0;ee<x;ee++){var A=l[T+ee],E=h[T+ee],U=l[T+ee+x],K=h[T+ee+x],Z=$*U-G*K;K=$*K+G*U,U=Z,l[T+ee]=A+U,h[T+ee]=E+K,l[T+ee+x]=A-U,h[T+ee+x]=E-K,ee!==g&&(Z=s*$-v*G,G=s*G+v*$,$=Z)}},B.prototype.guessLen13b=function(o,f){var l=Math.max(f,o)|1,h=l&1,p=0;for(l=l/2|0;l;l=l>>>1)p++;return 1<<p+1+h},B.prototype.conjugate=function(o,f,l){if(!(l<=1))for(var h=0;h<l/2;h++){var p=o[h];o[h]=o[l-h-1],o[l-h-1]=p,p=f[h],f[h]=-f[l-h-1],f[l-h-1]=-p}},B.prototype.normalize13b=function(o,f){for(var l=0,h=0;h<f/2;h++){var p=Math.round(o[2*h+1]/f)*8192+Math.round(o[2*h]/f)+l;o[h]=p&67108863,p<67108864?l=0:l=p/67108864|0}return o},B.prototype.convert13b=function(o,f,l,h){for(var p=0,w=0;w<f;w++)p=p+(o[w]|0),l[2*w]=p&8191,p=p>>>13,l[2*w+1]=p&8191,p=p>>>13;for(w=2*f;w<h;++w)l[w]=0;i(p===0),i((p&-8192)===0)},B.prototype.stub=function(o){for(var f=new Array(o),l=0;l<o;l++)f[l]=0;return f},B.prototype.mulp=function(o,f,l){var h=2*this.guessLen13b(o.length,f.length),p=this.makeRBT(h),w=this.stub(h),x=new Array(h),g=new Array(h),s=new Array(h),v=new Array(h),T=new Array(h),$=new Array(h),G=l.words;G.length=h,this.convert13b(o.words,o.length,x,h),this.convert13b(f.words,f.length,v,h),this.transform(x,w,g,s,h,p),this.transform(v,w,T,$,h,p);for(var ee=0;ee<h;ee++){var A=g[ee]*T[ee]-s[ee]*$[ee];s[ee]=g[ee]*$[ee]+s[ee]*T[ee],g[ee]=A}return this.conjugate(g,s,h),this.transform(g,s,G,w,h,p),this.conjugate(G,w,h),this.normalize13b(G,h),l.negative=o.negative^f.negative,l.length=o.length+f.length,l.strip()},n.prototype.mul=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),this.mulTo(o,f)},n.prototype.mulf=function(o){var f=new n(null);return f.words=new Array(this.length+o.length),I(this,o,f)},n.prototype.imul=function(o){return this.clone().mulTo(o,this)},n.prototype.imuln=function(o){i(typeof o=="number"),i(o<67108864);for(var f=0,l=0;l<this.length;l++){var h=(this.words[l]|0)*o,p=(h&67108863)+(f&67108863);f>>=26,f+=h/67108864|0,f+=p>>>26,this.words[l]=p&67108863}return f!==0&&(this.words[l]=f,this.length++),this},n.prototype.muln=function(o){return this.clone().imuln(o)},n.prototype.sqr=function(){return this.mul(this)},n.prototype.isqr=function(){return this.imul(this.clone())},n.prototype.pow=function(o){var f=C(o);if(f.length===0)return new n(1);for(var l=this,h=0;h<f.length&&f[h]===0;h++,l=l.sqr());if(++h<f.length)for(var p=l.sqr();h<f.length;h++,p=p.sqr())f[h]!==0&&(l=l.mul(p));return l},n.prototype.iushln=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=67108863>>>26-f<<26-f,p;if(f!==0){var w=0;for(p=0;p<this.length;p++){var x=this.words[p]&h,g=(this.words[p]|0)-x<<f;this.words[p]=g|w,w=x>>>26-f}w&&(this.words[p]=w,this.length++)}if(l!==0){for(p=this.length-1;p>=0;p--)this.words[p+l]=this.words[p];for(p=0;p<l;p++)this.words[p]=0;this.length+=l}return this.strip()},n.prototype.ishln=function(o){return i(this.negative===0),this.iushln(o)},n.prototype.iushrn=function(o,f,l){i(typeof o=="number"&&o>=0);var h;f?h=(f-f%26)/26:h=0;var p=o%26,w=Math.min((o-p)/26,this.length),x=67108863^67108863>>>p<<p,g=l;if(h-=w,h=Math.max(0,h),g){for(var s=0;s<w;s++)g.words[s]=this.words[s];g.length=w}if(w!==0)if(this.length>w)for(this.length-=w,s=0;s<this.length;s++)this.words[s]=this.words[s+w];else this.words[0]=0,this.length=1;var v=0;for(s=this.length-1;s>=0&&(v!==0||s>=h);s--){var T=this.words[s]|0;this.words[s]=v<<26-p|T>>>p,v=T&x}return g&&v!==0&&(g.words[g.length++]=v),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},n.prototype.ishrn=function(o,f,l){return i(this.negative===0),this.iushrn(o,f,l)},n.prototype.shln=function(o){return this.clone().ishln(o)},n.prototype.ushln=function(o){return this.clone().iushln(o)},n.prototype.shrn=function(o){return this.clone().ishrn(o)},n.prototype.ushrn=function(o){return this.clone().iushrn(o)},n.prototype.testn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return!1;var p=this.words[l];return!!(p&h)},n.prototype.imaskn=function(o){i(typeof o=="number"&&o>=0);var f=o%26,l=(o-f)/26;if(i(this.negative===0,"imaskn works only with positive numbers"),this.length<=l)return this;if(f!==0&&l++,this.length=Math.min(l,this.length),f!==0){var h=67108863^67108863>>>f<<f;this.words[this.length-1]&=h}return this.strip()},n.prototype.maskn=function(o){return this.clone().imaskn(o)},n.prototype.iaddn=function(o){return i(typeof o=="number"),i(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},n.prototype._iaddn=function(o){this.words[0]+=o;for(var f=0;f<this.length&&this.words[f]>=67108864;f++)this.words[f]-=67108864,f===this.length-1?this.words[f+1]=1:this.words[f+1]++;return this.length=Math.max(this.length,f+1),this},n.prototype.isubn=function(o){if(i(typeof o=="number"),i(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var f=0;f<this.length&&this.words[f]<0;f++)this.words[f]+=67108864,this.words[f+1]-=1;return this.strip()},n.prototype.addn=function(o){return this.clone().iaddn(o)},n.prototype.subn=function(o){return this.clone().isubn(o)},n.prototype.iabs=function(){return this.negative=0,this},n.prototype.abs=function(){return this.clone().iabs()},n.prototype._ishlnsubmul=function(o,f,l){var h=o.length+l,p;this._expand(h);var w,x=0;for(p=0;p<o.length;p++){w=(this.words[p+l]|0)+x;var g=(o.words[p]|0)*f;w-=g&67108863,x=(w>>26)-(g/67108864|0),this.words[p+l]=w&67108863}for(;p<this.length-l;p++)w=(this.words[p+l]|0)+x,x=w>>26,this.words[p+l]=w&67108863;if(x===0)return this.strip();for(i(x===-1),x=0,p=0;p<this.length;p++)w=-(this.words[p]|0)+x,x=w>>26,this.words[p]=w&67108863;return this.negative=1,this.strip()},n.prototype._wordDiv=function(o,f){var l=this.length-o.length,h=this.clone(),p=o,w=p.words[p.length-1]|0,x=this._countBits(w);l=26-x,l!==0&&(p=p.ushln(l),h.iushln(l),w=p.words[p.length-1]|0);var g=h.length-p.length,s;if(f!=="mod"){s=new n(null),s.length=g+1,s.words=new Array(s.length);for(var v=0;v<s.length;v++)s.words[v]=0}var T=h.clone()._ishlnsubmul(p,1,g);T.negative===0&&(h=T,s&&(s.words[g]=1));for(var $=g-1;$>=0;$--){var G=(h.words[p.length+$]|0)*67108864+(h.words[p.length+$-1]|0);for(G=Math.min(G/w|0,67108863),h._ishlnsubmul(p,G,$);h.negative!==0;)G--,h.negative=0,h._ishlnsubmul(p,1,$),h.isZero()||(h.negative^=1);s&&(s.words[$]=G)}return s&&s.strip(),h.strip(),f!=="div"&&l!==0&&h.iushrn(l),{div:s||null,mod:h}},n.prototype.divmod=function(o,f,l){if(i(!o.isZero()),this.isZero())return{div:new n(0),mod:new n(0)};var h,p,w;return this.negative!==0&&o.negative===0?(w=this.neg().divmod(o,f),f!=="mod"&&(h=w.div.neg()),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.iadd(o)),{div:h,mod:p}):this.negative===0&&o.negative!==0?(w=this.divmod(o.neg(),f),f!=="mod"&&(h=w.div.neg()),{div:h,mod:w.mod}):this.negative&o.negative?(w=this.neg().divmod(o.neg(),f),f!=="div"&&(p=w.mod.neg(),l&&p.negative!==0&&p.isub(o)),{div:w.div,mod:p}):o.length>this.length||this.cmp(o)<0?{div:new n(0),mod:this}:o.length===1?f==="div"?{div:this.divn(o.words[0]),mod:null}:f==="mod"?{div:null,mod:new n(this.modn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new n(this.modn(o.words[0]))}:this._wordDiv(o,f)},n.prototype.div=function(o){return this.divmod(o,"div",!1).div},n.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},n.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},n.prototype.divRound=function(o){var f=this.divmod(o);if(f.mod.isZero())return f.div;var l=f.div.negative!==0?f.mod.isub(o):f.mod,h=o.ushrn(1),p=o.andln(1),w=l.cmp(h);return w<0||p===1&&w===0?f.div:f.div.negative!==0?f.div.isubn(1):f.div.iaddn(1)},n.prototype.modn=function(o){i(o<=67108863);for(var f=(1<<26)%o,l=0,h=this.length-1;h>=0;h--)l=(f*l+(this.words[h]|0))%o;return l},n.prototype.idivn=function(o){i(o<=67108863);for(var f=0,l=this.length-1;l>=0;l--){var h=(this.words[l]|0)+f*67108864;this.words[l]=h/o|0,f=h%o}return this.strip()},n.prototype.divn=function(o){return this.clone().idivn(o)},n.prototype.egcd=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=new n(0),x=new n(1),g=0;f.isEven()&&l.isEven();)f.iushrn(1),l.iushrn(1),++g;for(var s=l.clone(),v=f.clone();!f.isZero();){for(var T=0,$=1;!(f.words[0]&$)&&T<26;++T,$<<=1);if(T>0)for(f.iushrn(T);T-- >0;)(h.isOdd()||p.isOdd())&&(h.iadd(s),p.isub(v)),h.iushrn(1),p.iushrn(1);for(var G=0,ee=1;!(l.words[0]&ee)&&G<26;++G,ee<<=1);if(G>0)for(l.iushrn(G);G-- >0;)(w.isOdd()||x.isOdd())&&(w.iadd(s),x.isub(v)),w.iushrn(1),x.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(w),p.isub(x)):(l.isub(f),w.isub(h),x.isub(p))}return{a:w,b:x,gcd:l.iushln(g)}},n.prototype._invmp=function(o){i(o.negative===0),i(!o.isZero());var f=this,l=o.clone();f.negative!==0?f=f.umod(o):f=f.clone();for(var h=new n(1),p=new n(0),w=l.clone();f.cmpn(1)>0&&l.cmpn(1)>0;){for(var x=0,g=1;!(f.words[0]&g)&&x<26;++x,g<<=1);if(x>0)for(f.iushrn(x);x-- >0;)h.isOdd()&&h.iadd(w),h.iushrn(1);for(var s=0,v=1;!(l.words[0]&v)&&s<26;++s,v<<=1);if(s>0)for(l.iushrn(s);s-- >0;)p.isOdd()&&p.iadd(w),p.iushrn(1);f.cmp(l)>=0?(f.isub(l),h.isub(p)):(l.isub(f),p.isub(h))}var T;return f.cmpn(1)===0?T=h:T=p,T.cmpn(0)<0&&T.iadd(o),T},n.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var f=this.clone(),l=o.clone();f.negative=0,l.negative=0;for(var h=0;f.isEven()&&l.isEven();h++)f.iushrn(1),l.iushrn(1);do{for(;f.isEven();)f.iushrn(1);for(;l.isEven();)l.iushrn(1);var p=f.cmp(l);if(p<0){var w=f;f=l,l=w}else if(p===0||l.cmpn(1)===0)break;f.isub(l)}while(!0);return l.iushln(h)},n.prototype.invm=function(o){return this.egcd(o).a.umod(o)},n.prototype.isEven=function(){return(this.words[0]&1)===0},n.prototype.isOdd=function(){return(this.words[0]&1)===1},n.prototype.andln=function(o){return this.words[0]&o},n.prototype.bincn=function(o){i(typeof o=="number");var f=o%26,l=(o-f)/26,h=1<<f;if(this.length<=l)return this._expand(l+1),this.words[l]|=h,this;for(var p=h,w=l;p!==0&&w<this.length;w++){var x=this.words[w]|0;x+=p,p=x>>>26,x&=67108863,this.words[w]=x}return p!==0&&(this.words[w]=p,this.length++),this},n.prototype.isZero=function(){return this.length===1&&this.words[0]===0},n.prototype.cmpn=function(o){var f=o<0;if(this.negative!==0&&!f)return-1;if(this.negative===0&&f)return 1;this.strip();var l;if(this.length>1)l=1;else{f&&(o=-o),i(o<=67108863,"Number is too big");var h=this.words[0]|0;l=h===o?0:h<o?-1:1}return this.negative!==0?-l|0:l},n.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var f=this.ucmp(o);return this.negative!==0?-f|0:f},n.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var f=0,l=this.length-1;l>=0;l--){var h=this.words[l]|0,p=o.words[l]|0;if(h!==p){h<p?f=-1:h>p&&(f=1);break}}return f},n.prototype.gtn=function(o){return this.cmpn(o)===1},n.prototype.gt=function(o){return this.cmp(o)===1},n.prototype.gten=function(o){return this.cmpn(o)>=0},n.prototype.gte=function(o){return this.cmp(o)>=0},n.prototype.ltn=function(o){return this.cmpn(o)===-1},n.prototype.lt=function(o){return this.cmp(o)===-1},n.prototype.lten=function(o){return this.cmpn(o)<=0},n.prototype.lte=function(o){return this.cmp(o)<=0},n.prototype.eqn=function(o){return this.cmpn(o)===0},n.prototype.eq=function(o){return this.cmp(o)===0},n.red=function(o){return new V(o)},n.prototype.toRed=function(o){return i(!this.red,"Already a number in reduction context"),i(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},n.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},n.prototype._forceRed=function(o){return this.red=o,this},n.prototype.forceRed=function(o){return i(!this.red,"Already a number in reduction context"),this._forceRed(o)},n.prototype.redAdd=function(o){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},n.prototype.redIAdd=function(o){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},n.prototype.redSub=function(o){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},n.prototype.redISub=function(o){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},n.prototype.redShl=function(o){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},n.prototype.redMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},n.prototype.redIMul=function(o){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},n.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},n.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},n.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},n.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},n.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},n.prototype.redPow=function(o){return i(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var H={k256:null,p224:null,p192:null,p25519:null};function F(_,o){this.name=_,this.p=new n(o,16),this.n=this.p.bitLength(),this.k=new n(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var o=new n(null);return o.words=new Array(Math.ceil(this.n/13)),o},F.prototype.ireduce=function(o){var f=o,l;do this.split(f,this.tmp),f=this.imulK(f),f=f.iadd(this.tmp),l=f.bitLength();while(l>this.n);var h=l<this.n?-1:f.ucmp(this.p);return h===0?(f.words[0]=0,f.length=1):h>0?f.isub(this.p):f.strip!==void 0?f.strip():f._strip(),f},F.prototype.split=function(o,f){o.iushrn(this.n,0,f)},F.prototype.imulK=function(o){return o.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}a(W,F),W.prototype.split=function(o,f){for(var l=4194303,h=Math.min(o.length,9),p=0;p<h;p++)f.words[p]=o.words[p];if(f.length=h,o.length<=9){o.words[0]=0,o.length=1;return}var w=o.words[9];for(f.words[f.length++]=w&l,p=10;p<o.length;p++){var x=o.words[p]|0;o.words[p-10]=(x&l)<<4|w>>>22,w=x}w>>>=22,o.words[p-10]=w,w===0&&o.length>10?o.length-=10:o.length-=9},W.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var f=0,l=0;l<o.length;l++){var h=o.words[l]|0;f+=h*977,o.words[l]=f&67108863,f=h*64+(f/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function Y(){F.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}a(Y,F);function ie(){F.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}a(ie,F);function J(){F.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}a(J,F),J.prototype.imulK=function(o){for(var f=0,l=0;l<o.length;l++){var h=(o.words[l]|0)*19+f,p=h&67108863;h>>>=26,o.words[l]=p,f=h}return f!==0&&(o.words[o.length++]=f),o},n._prime=function(o){if(H[o])return H[o];var f;if(o==="k256")f=new W;else if(o==="p224")f=new Y;else if(o==="p192")f=new ie;else if(o==="p25519")f=new J;else throw new Error("Unknown prime "+o);return H[o]=f,f};function V(_){if(typeof _=="string"){var o=n._prime(_);this.m=o.p,this.prime=o}else i(_.gtn(1),"modulus must be greater than 1"),this.m=_,this.prime=null}V.prototype._verify1=function(o){i(o.negative===0,"red works only with positives"),i(o.red,"red works only with red numbers")},V.prototype._verify2=function(o,f){i((o.negative|f.negative)===0,"red works only with positives"),i(o.red&&o.red===f.red,"red works only with red numbers")},V.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):o.umod(this.m)._forceRed(this)},V.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},V.prototype.add=function(o,f){this._verify2(o,f);var l=o.add(f);return l.cmp(this.m)>=0&&l.isub(this.m),l._forceRed(this)},V.prototype.iadd=function(o,f){this._verify2(o,f);var l=o.iadd(f);return l.cmp(this.m)>=0&&l.isub(this.m),l},V.prototype.sub=function(o,f){this._verify2(o,f);var l=o.sub(f);return l.cmpn(0)<0&&l.iadd(this.m),l._forceRed(this)},V.prototype.isub=function(o,f){this._verify2(o,f);var l=o.isub(f);return l.cmpn(0)<0&&l.iadd(this.m),l},V.prototype.shl=function(o,f){return this._verify1(o),this.imod(o.ushln(f))},V.prototype.imul=function(o,f){return this._verify2(o,f),this.imod(o.imul(f))},V.prototype.mul=function(o,f){return this._verify2(o,f),this.imod(o.mul(f))},V.prototype.isqr=function(o){return this.imul(o,o.clone())},V.prototype.sqr=function(o){return this.mul(o,o)},V.prototype.sqrt=function(o){if(o.isZero())return o.clone();var f=this.m.andln(3);if(i(f%2===1),f===3){var l=this.m.add(new n(1)).iushrn(2);return this.pow(o,l)}for(var h=this.m.subn(1),p=0;!h.isZero()&&h.andln(1)===0;)p++,h.iushrn(1);i(!h.isZero());var w=new n(1).toRed(this),x=w.redNeg(),g=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new n(2*s*s).toRed(this);this.pow(s,g).cmp(x)!==0;)s.redIAdd(x);for(var v=this.pow(s,h),T=this.pow(o,h.addn(1).iushrn(1)),$=this.pow(o,h),G=p;$.cmp(w)!==0;){for(var ee=$,A=0;ee.cmp(w)!==0;A++)ee=ee.redSqr();i(A<G);var E=this.pow(v,new n(1).iushln(G-A-1));T=T.redMul(E),v=E.redSqr(),$=$.redMul(v),G=A}return T},V.prototype.invm=function(o){var f=o._invmp(this.m);return f.negative!==0?(f.negative=0,this.imod(f).redNeg()):this.imod(f)},V.prototype.pow=function(o,f){if(f.isZero())return new n(1).toRed(this);if(f.cmpn(1)===0)return o.clone();var l=4,h=new Array(1<<l);h[0]=new n(1).toRed(this),h[1]=o;for(var p=2;p<h.length;p++)h[p]=this.mul(h[p-1],o);var w=h[0],x=0,g=0,s=f.bitLength()%26;for(s===0&&(s=26),p=f.length-1;p>=0;p--){for(var v=f.words[p],T=s-1;T>=0;T--){var $=v>>T&1;if(w!==h[0]&&(w=this.sqr(w)),$===0&&x===0){g=0;continue}x<<=1,x|=$,g++,!(g!==l&&(p!==0||T!==0))&&(w=this.mul(w,h[x]),g=0,x=0)}s=26}return w},V.prototype.convertTo=function(o){var f=o.umod(this.m);return f===o?f.clone():f},V.prototype.convertFrom=function(o){var f=o.clone();return f.red=null,f},n.mont=function(o){return new oe(o)};function oe(_){V.call(this,_),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new n(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}a(oe,V),oe.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},oe.prototype.convertFrom=function(o){var f=this.imod(o.mul(this.rinv));return f.red=null,f},oe.prototype.imul=function(o,f){if(o.isZero()||f.isZero())return o.words[0]=0,o.length=1,o;var l=o.imul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.mul=function(o,f){if(o.isZero()||f.isZero())return new n(0)._forceRed(this);var l=o.mul(f),h=l.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),p=l.isub(h).iushrn(this.shift),w=p;return p.cmp(this.m)>=0?w=p.isub(this.m):p.cmpn(0)<0&&(w=p.iadd(this.m)),w._forceRed(this)},oe.prototype.invm=function(o){var f=this.imod(o._invmp(this.m).mul(this.r2));return f._forceRed(this)}})(e,Ye)})(em);var tm=em.exports,Ow=tm,uV=pt().Buffer;function lV(e,t){return uV.from(e.toRed(Ow.mont(t.modulus)).redPow(new Ow(t.publicExponent)).fromRed().toArray())}var x4=lV,hV=Sc,Qp=Ds,cV=Tu,Iw=M4,Pw=S4,rm=tm,dV=x4,pV=Lg,Ci=pt().Buffer,vV=function(t,r,i){var a;t.padding?a=t.padding:i?a=1:a=4;var n=hV(t),u;if(a===4)u=gV(n,r);else if(a===1)u=mV(n,r,i);else if(a===3){if(u=new rm(r),u.cmp(n.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return i?pV(u,n):dV(u,n)};function gV(e,t){var r=e.modulus.byteLength(),i=t.length,a=cV("sha1").update(Ci.alloc(0)).digest(),n=a.length,u=2*n;if(i>r-u-2)throw new Error("message too long");var c=Ci.alloc(r-i-u-2),d=r-n-1,m=Qp(n),M=Pw(Ci.concat([a,c,Ci.alloc(1,1),t],d),Iw(m,d)),S=Pw(m,Iw(M,n));return new rm(Ci.concat([Ci.alloc(1),S,M],r))}function mV(e,t,r){var i=t.length,a=e.modulus.byteLength();if(i>a-11)throw new Error("message too long");var n;return r?n=Ci.alloc(a-i-3,255):n=yV(a-i-3),new rm(Ci.concat([Ci.from([0,r?1:2]),n,Ci.alloc(1),t],a))}function yV(e){for(var t=Ci.allocUnsafe(e),r=0,i=Qp(e*2),a=0,n;r<e;)a===i.length&&(i=Qp(e*2),a=0),n=i[a++],n&&(t[r++]=n);return t}var bV=Sc,Cw=M4,Bw=S4,Lw=tm,wV=Lg,_V=Tu,MV=x4,fu=pt().Buffer,SV=function(t,r,i){var a;t.padding?a=t.padding:i?a=1:a=4;var n=bV(t),u=n.modulus.byteLength();if(r.length>u||new Lw(r).cmp(n.modulus)>=0)throw new Error("decryption error");var c;i?c=MV(new Lw(r),n):c=wV(r,n);var d=fu.alloc(u-c.length);if(c=fu.concat([d,c],u),a===4)return xV(n,c);if(a===1)return EV(n,c,i);if(a===3)return c;throw new Error("unknown padding")};function xV(e,t){var r=e.modulus.byteLength(),i=_V("sha1").update(fu.alloc(0)).digest(),a=i.length;if(t[0]!==0)throw new Error("decryption error");var n=t.slice(1,a+1),u=t.slice(a+1),c=Bw(n,Cw(u,a)),d=Bw(u,Cw(c,r-a-1));if(RV(i,d.slice(0,a)))throw new Error("decryption error");for(var m=a;d[m]===0;)m++;if(d[m++]!==1)throw new Error("decryption error");return d.slice(m)}function EV(e,t,r){for(var i=t.slice(0,2),a=2,n=0;t[a++]!==0;)if(a>=t.length){n++;break}var u=t.slice(2,a-1);if((i.toString("hex")!=="0002"&&!r||i.toString("hex")!=="0001"&&r)&&n++,u.length<8&&n++,n)throw new Error("decryption error");return t.slice(a)}function RV(e,t){e=fu.from(e),t=fu.from(t);var r=0,i=e.length;e.length!==t.length&&(r++,i=Math.min(e.length,t.length));for(var a=-1;++a<i;)r+=e[a]^t[a];return r}(function(e){e.publicEncrypt=vV,e.privateDecrypt=SV,e.privateEncrypt=function(r,i){return e.publicEncrypt(r,i,!0)},e.publicDecrypt=function(r,i){return e.privateDecrypt(r,i,!0)}})(_4);var Rf={};function Nw(){throw new Error(`secure random number generation not supported by this browser
-use chrome, FireFox or Internet Explorer 11`)}var E4=pt(),kw=Ds,R4=E4.Buffer,A4=E4.kMaxLength,ev=Ye.crypto||Ye.msCrypto,T4=Math.pow(2,32)-1;function O4(e,t){if(typeof e!="number"||e!==e)throw new TypeError("offset must be a number");if(e>T4||e<0)throw new TypeError("offset must be a uint32");if(e>A4||e>t)throw new RangeError("offset out of range")}function I4(e,t,r){if(typeof e!="number"||e!==e)throw new TypeError("size must be a number");if(e>T4||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>A4)throw new RangeError("buffer too small")}ev&&ev.getRandomValues||!we.browser?(Rf.randomFill=AV,Rf.randomFillSync=TV):(Rf.randomFill=Nw,Rf.randomFillSync=Nw);function AV(e,t,r,i){if(!R4.isBuffer(e)&&!(e instanceof Ye.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof t=="function")i=t,t=0,r=e.length;else if(typeof r=="function")i=r,r=e.length-t;else if(typeof i!="function")throw new TypeError('"cb" argument must be a function');return O4(t,e.length),I4(r,t,e.length),P4(e,t,r,i)}function P4(e,t,r,i){if(we.browser){var a=e.buffer,n=new Uint8Array(a,t,r);if(ev.getRandomValues(n),i){we.nextTick(function(){i(null,e)});return}return e}if(i){kw(r,function(c,d){if(c)return i(c);d.copy(e,t),i(null,e)});return}var u=kw(r);return u.copy(e,t),e}function TV(e,t,r){if(typeof t>"u"&&(t=0),!R4.isBuffer(e)&&!(e instanceof Ye.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return O4(t,e.length),r===void 0&&(r=e.length-t),I4(r,t,e.length),P4(e,t,r)}var $w;function C4(){if($w)return ct;$w=1,ct.randomBytes=ct.rng=ct.pseudoRandomBytes=ct.prng=Ds,ct.createHash=ct.Hash=Tu,ct.createHmac=ct.Hmac=CS;var e=Lj,t=Object.keys(e),r=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(t);ct.getHashes=function(){return r};var i=ic;ct.pbkdf2=i.pbkdf2,ct.pbkdf2Sync=i.pbkdf2Sync;var a=$i;ct.Cipher=a.Cipher,ct.createCipher=a.createCipher,ct.Cipheriv=a.Cipheriv,ct.createCipheriv=a.createCipheriv,ct.Decipher=a.Decipher,ct.createDecipher=a.createDecipher,ct.Decipheriv=a.Decipheriv,ct.createDecipheriv=a.createDecipheriv,ct.getCiphers=a.getCiphers,ct.listCiphers=a.listCiphers;var n=dH();ct.DiffieHellmanGroup=n.DiffieHellmanGroup,ct.createDiffieHellmanGroup=n.createDiffieHellmanGroup,ct.getDiffieHellman=n.getDiffieHellman,ct.createDiffieHellman=n.createDiffieHellman,ct.DiffieHellman=n.DiffieHellman;var u=nV();ct.createSign=u.createSign,ct.Sign=u.Sign,ct.createVerify=u.createVerify,ct.Verify=u.Verify,ct.createECDH=aV();var c=_4;ct.publicEncrypt=c.publicEncrypt,ct.privateEncrypt=c.privateEncrypt,ct.publicDecrypt=c.publicDecrypt,ct.privateDecrypt=c.privateDecrypt;var d=Rf;return ct.randomFill=d.randomFill,ct.randomFillSync=d.randomFillSync,ct.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(`
-`))},ct.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},ct}var OV=C4();const WV=Lo(OV);export{jV as $,Zt as A,ol as B,$p as C,Dl as D,a_ as E,jR as F,Lt as G,UV as H,Ii as I,$v as J,Pn as K,wv as L,Ah as M,Mn as N,Fl as O,R_ as P,M2 as Q,S2 as R,BV as S,j5 as T,kV as U,NV as V,LV as W,HR as X,$V as Y,DV as Z,GR as _,mr as a,j8 as a0,V8 as a1,G8 as a2,HV as a3,qV as a4,WV as a5,CV as a6,ke as b,Ye as c,Bs as d,wh as e,Qt as f,ho as g,Eh as h,qf as i,tv as j,tt as k,ft as l,U0 as m,vr as n,Ns as o,K8 as p,Je as q,FV as r,h2 as s,lt as t,Cv as u,Q0 as v,lr as w,si as x,Pv as y,fi as z};
diff --git a/web/settings/assets/vendor-axios-dc63434e.js b/web/settings/assets/vendor-axios-13ef03ae.js
similarity index 99%
rename from web/settings/assets/vendor-axios-dc63434e.js
rename to web/settings/assets/vendor-axios-13ef03ae.js
index 81b5a601c0..040cb403c3 100644
--- a/web/settings/assets/vendor-axios-dc63434e.js
+++ b/web/settings/assets/vendor-axios-13ef03ae.js
@@ -1,3 +1,3 @@
-import{g as ke,b as Ie}from"./vendor-94ac8c48.js";function ye(e,t){return function(){return e.apply(t,arguments)}}const{toString:He}=Object.prototype,{getPrototypeOf:te}=Object,M=(e=>t=>{const n=He.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),R=e=>(e=e.toLowerCase(),t=>M(t)===e),q=e=>t=>typeof t===e,{isArray:P}=Array,F=q("undefined");function Me(e){return e!==null&&!F(e)&&e.constructor!==null&&!F(e.constructor)&&b(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const we=R("ArrayBuffer");function qe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&we(e.buffer),t}const ze=q("string"),b=q("function"),Ee=q("number"),z=e=>e!==null&&typeof e=="object",Ve=e=>e===!0||e===!1,L=e=>{if(M(e)!=="object")return!1;const t=te(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Je=R("Date"),$e=R("File"),We=R("Blob"),ve=R("FileList"),Ke=e=>z(e)&&b(e.pipe),Ge=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||b(e.append)&&((t=M(e))==="formdata"||t==="object"&&b(e.toString)&&e.toString()==="[object FormData]"))},Xe=R("URLSearchParams"),Qe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),P(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let u;for(r=0;r<i;r++)u=o[r],t.call(null,e[u],u,e)}}function be(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Se=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:ke)(),Oe=e=>!F(e)&&e!==Se;function Q(){const{caseless:e}=Oe(this)&&this||{},t={},n=(r,s)=>{const o=e&&be(t,s)||s;L(t[o])&&L(r)?t[o]=Q(t[o],r):L(r)?t[o]=Q({},r):P(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&_(arguments[r],n);return t}const Ye=(e,t,n,{allOwnKeys:r}={})=>(_(t,(s,o)=>{n&&b(s)?e[o]=ye(s,n):e[o]=s},{allOwnKeys:r}),e),Ze=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),et=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},tt=(e,t,n,r)=>{let s,o,i;const u={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&te(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},nt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},rt=e=>{if(!e)return null;if(P(e))return e;let t=e.length;if(!Ee(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},st=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&te(Uint8Array)),ot=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},it=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},at=R("HTMLFormElement"),ct=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),ie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ut=R("RegExp"),Re=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_(n,(s,o)=>{t(s,o,e)!==!1&&(r[o]=s)}),Object.defineProperties(e,r)},lt=e=>{Re(e,(t,n)=>{if(b(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(b(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ft=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return P(e)?r(e):r(String(e).split(t)),n},dt=()=>{},pt=(e,t)=>(e=+e,Number.isFinite(e)?e:t),W="abcdefghijklmnopqrstuvwxyz",ae="0123456789",Ae={DIGIT:ae,ALPHA:W,ALPHA_DIGIT:W+W.toUpperCase()+ae},ht=(e=16,t=Ae.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function mt(e){return!!(e&&b(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yt=e=>{const t=new Array(10),n=(r,s)=>{if(z(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=P(r)?[]:{};return _(r,(i,u)=>{const d=n(i,s+1);!F(d)&&(o[u]=d)}),t[s]=void 0,o}}return r};return n(e,0)},wt=R("AsyncFunction"),Et=e=>e&&(z(e)||b(e))&&b(e.then)&&b(e.catch),a={isArray:P,isArrayBuffer:we,isBuffer:Me,isFormData:Ge,isArrayBufferView:qe,isString:ze,isNumber:Ee,isBoolean:Ve,isObject:z,isPlainObject:L,isUndefined:F,isDate:Je,isFile:$e,isBlob:We,isRegExp:ut,isFunction:b,isStream:Ke,isURLSearchParams:Xe,isTypedArray:st,isFileList:ve,forEach:_,merge:Q,extend:Ye,trim:Qe,stripBOM:Ze,inherits:et,toFlatObject:tt,kindOf:M,kindOfTest:R,endsWith:nt,toArray:rt,forEachEntry:ot,matchAll:it,isHTMLForm:at,hasOwnProperty:ie,hasOwnProp:ie,reduceDescriptors:Re,freezeMethods:lt,toObjectSet:ft,toCamelCase:ct,noop:dt,toFiniteNumber:pt,findKey:be,global:Se,isContextDefined:Oe,ALPHABET:Ae,generateString:ht,isSpecCompliantForm:mt,toJSONObject:yt,isAsyncFn:wt,isThenable:Et};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Te=m.prototype,xe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{xe[e]={value:e}});Object.defineProperties(m,xe);Object.defineProperty(Te,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(Te);return a.toFlatObject(e,i,function(d){return d!==Error.prototype},u=>u!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const bt=null;function Y(e){return a.isPlainObject(e)||a.isArray(e)}function ge(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function ce(e,t,n){return e?e.concat(t).map(function(s,o){return s=ge(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function St(e){return a.isArray(e)&&!e.some(Y)}const Ot=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function V(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,A){return!a.isUndefined(A[h])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(a.isDate(f))return f.toISOString();if(!d&&a.isBlob(f))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(f)||a.isTypedArray(f)?d&&typeof Blob=="function"?new Blob([f]):Ie.Buffer.from(f):f}function l(f,h,A){let S=f;if(f&&!A&&typeof f=="object"){if(a.endsWith(h,"{}"))h=r?h:h.slice(0,-2),f=JSON.stringify(f);else if(a.isArray(f)&&St(f)||(a.isFileList(f)||a.endsWith(h,"[]"))&&(S=a.toArray(f)))return h=ge(h),S.forEach(function(D,je){!(a.isUndefined(D)||D===null)&&t.append(i===!0?ce([h],je,o):i===null?h:h+"[]",c(D))}),!1}return Y(f)?!0:(t.append(ce(A,h,o),c(f)),!1)}const p=[],E=Object.assign(Ot,{defaultVisitor:l,convertValue:c,isVisitable:Y});function y(f,h){if(!a.isUndefined(f)){if(p.indexOf(f)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(f),a.forEach(f,function(S,g){(!(a.isUndefined(S)||S===null)&&s.call(t,S,a.isString(g)?g.trim():g,h,E))===!0&&y(S,h?h.concat(g):[g])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return y(e),t}function ue(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ne(e,t){this._pairs=[],e&&V(e,this,t)}const Ne=ne.prototype;Ne.append=function(t,n){this._pairs.push([t,n])};Ne.toString=function(t){const n=t?function(r){return t.call(this,r,ue)}:ue;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Rt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Pe(e,t,n){if(!t)return e;const r=n&&n.encode||Rt,s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new ne(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class At{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const le=At,Ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tt=typeof URLSearchParams<"u"?URLSearchParams:ne,xt=typeof FormData<"u"?FormData:null,gt=typeof Blob<"u"?Blob:null,Nt=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Pt=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),O={isBrowser:!0,classes:{URLSearchParams:Tt,FormData:xt,Blob:gt},isStandardBrowserEnv:Nt,isStandardBrowserWebWorkerEnv:Pt,protocols:["http","https","file","blob","url","data"]};function Ct(e,t){return V(e,new O.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Ft(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _t(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Fe(e){function t(n,r,s,o){let i=n[o++];const u=Number.isFinite(+i),d=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,d?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!u):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=_t(s[i])),!u)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Ft(r),s,n,0)}),n}return null}const Bt={"Content-Type":void 0};function Dt(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const J={transitional:Ce,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s&&s?JSON.stringify(Fe(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ct(t,this.formSerializer).toString();if((u=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return V(u?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Dt(t)):t}],transformResponse:[function(t){const n=this.transitional||J.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?m.from(u,m.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],function(t){J.headers[t]={}});a.forEach(["post","put","patch"],function(t){J.headers[t]=a.merge(Bt)});const re=J,Lt=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ut=e=>{const t={};let n,r,s;return e&&e.split(`
+import{g as ke,b as Ie}from"./vendor-20bb207d.js";function ye(e,t){return function(){return e.apply(t,arguments)}}const{toString:He}=Object.prototype,{getPrototypeOf:te}=Object,M=(e=>t=>{const n=He.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),R=e=>(e=e.toLowerCase(),t=>M(t)===e),q=e=>t=>typeof t===e,{isArray:P}=Array,F=q("undefined");function Me(e){return e!==null&&!F(e)&&e.constructor!==null&&!F(e.constructor)&&b(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const we=R("ArrayBuffer");function qe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&we(e.buffer),t}const ze=q("string"),b=q("function"),Ee=q("number"),z=e=>e!==null&&typeof e=="object",Ve=e=>e===!0||e===!1,L=e=>{if(M(e)!=="object")return!1;const t=te(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Je=R("Date"),$e=R("File"),We=R("Blob"),ve=R("FileList"),Ke=e=>z(e)&&b(e.pipe),Ge=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||b(e.append)&&((t=M(e))==="formdata"||t==="object"&&b(e.toString)&&e.toString()==="[object FormData]"))},Xe=R("URLSearchParams"),Qe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),P(e))for(r=0,s=e.length;r<s;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let u;for(r=0;r<i;r++)u=o[r],t.call(null,e[u],u,e)}}function be(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,s;for(;r-- >0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Se=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:ke)(),Oe=e=>!F(e)&&e!==Se;function Q(){const{caseless:e}=Oe(this)&&this||{},t={},n=(r,s)=>{const o=e&&be(t,s)||s;L(t[o])&&L(r)?t[o]=Q(t[o],r):L(r)?t[o]=Q({},r):P(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&_(arguments[r],n);return t}const Ye=(e,t,n,{allOwnKeys:r}={})=>(_(t,(s,o)=>{n&&b(s)?e[o]=ye(s,n):e[o]=s},{allOwnKeys:r}),e),Ze=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),et=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},tt=(e,t,n,r)=>{let s,o,i;const u={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!u[i]&&(t[i]=e[i],u[i]=!0);e=n!==!1&&te(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},nt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},rt=e=>{if(!e)return null;if(P(e))return e;let t=e.length;if(!Ee(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},st=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&te(Uint8Array)),ot=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},it=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},at=R("HTMLFormElement"),ct=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),ie=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ut=R("RegExp"),Re=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_(n,(s,o)=>{t(s,o,e)!==!1&&(r[o]=s)}),Object.defineProperties(e,r)},lt=e=>{Re(e,(t,n)=>{if(b(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(b(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ft=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return P(e)?r(e):r(String(e).split(t)),n},dt=()=>{},pt=(e,t)=>(e=+e,Number.isFinite(e)?e:t),W="abcdefghijklmnopqrstuvwxyz",ae="0123456789",Ae={DIGIT:ae,ALPHA:W,ALPHA_DIGIT:W+W.toUpperCase()+ae},ht=(e=16,t=Ae.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function mt(e){return!!(e&&b(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const yt=e=>{const t=new Array(10),n=(r,s)=>{if(z(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=P(r)?[]:{};return _(r,(i,u)=>{const d=n(i,s+1);!F(d)&&(o[u]=d)}),t[s]=void 0,o}}return r};return n(e,0)},wt=R("AsyncFunction"),Et=e=>e&&(z(e)||b(e))&&b(e.then)&&b(e.catch),a={isArray:P,isArrayBuffer:we,isBuffer:Me,isFormData:Ge,isArrayBufferView:qe,isString:ze,isNumber:Ee,isBoolean:Ve,isObject:z,isPlainObject:L,isUndefined:F,isDate:Je,isFile:$e,isBlob:We,isRegExp:ut,isFunction:b,isStream:Ke,isURLSearchParams:Xe,isTypedArray:st,isFileList:ve,forEach:_,merge:Q,extend:Ye,trim:Qe,stripBOM:Ze,inherits:et,toFlatObject:tt,kindOf:M,kindOfTest:R,endsWith:nt,toArray:rt,forEachEntry:ot,matchAll:it,isHTMLForm:at,hasOwnProperty:ie,hasOwnProp:ie,reduceDescriptors:Re,freezeMethods:lt,toObjectSet:ft,toCamelCase:ct,noop:dt,toFiniteNumber:pt,findKey:be,global:Se,isContextDefined:Oe,ALPHABET:Ae,generateString:ht,isSpecCompliantForm:mt,toJSONObject:yt,isAsyncFn:wt,isThenable:Et};function m(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}a.inherits(m,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Te=m.prototype,xe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{xe[e]={value:e}});Object.defineProperties(m,xe);Object.defineProperty(Te,"isAxiosError",{value:!0});m.from=(e,t,n,r,s,o)=>{const i=Object.create(Te);return a.toFlatObject(e,i,function(d){return d!==Error.prototype},u=>u!=="isAxiosError"),m.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const bt=null;function Y(e){return a.isPlainObject(e)||a.isArray(e)}function ge(e){return a.endsWith(e,"[]")?e.slice(0,-2):e}function ce(e,t,n){return e?e.concat(t).map(function(s,o){return s=ge(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function St(e){return a.isArray(e)&&!e.some(Y)}const Ot=a.toFlatObject(a,{},null,function(t){return/^is[A-Z]/.test(t)});function V(e,t,n){if(!a.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=a.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,A){return!a.isUndefined(A[h])});const r=n.metaTokens,s=n.visitor||l,o=n.dots,i=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(t);if(!a.isFunction(s))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(a.isDate(f))return f.toISOString();if(!d&&a.isBlob(f))throw new m("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(f)||a.isTypedArray(f)?d&&typeof Blob=="function"?new Blob([f]):Ie.Buffer.from(f):f}function l(f,h,A){let S=f;if(f&&!A&&typeof f=="object"){if(a.endsWith(h,"{}"))h=r?h:h.slice(0,-2),f=JSON.stringify(f);else if(a.isArray(f)&&St(f)||(a.isFileList(f)||a.endsWith(h,"[]"))&&(S=a.toArray(f)))return h=ge(h),S.forEach(function(D,je){!(a.isUndefined(D)||D===null)&&t.append(i===!0?ce([h],je,o):i===null?h:h+"[]",c(D))}),!1}return Y(f)?!0:(t.append(ce(A,h,o),c(f)),!1)}const p=[],E=Object.assign(Ot,{defaultVisitor:l,convertValue:c,isVisitable:Y});function y(f,h){if(!a.isUndefined(f)){if(p.indexOf(f)!==-1)throw Error("Circular reference detected in "+h.join("."));p.push(f),a.forEach(f,function(S,g){(!(a.isUndefined(S)||S===null)&&s.call(t,S,a.isString(g)?g.trim():g,h,E))===!0&&y(S,h?h.concat(g):[g])}),p.pop()}}if(!a.isObject(e))throw new TypeError("data must be an object");return y(e),t}function ue(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ne(e,t){this._pairs=[],e&&V(e,this,t)}const Ne=ne.prototype;Ne.append=function(t,n){this._pairs.push([t,n])};Ne.toString=function(t){const n=t?function(r){return t.call(this,r,ue)}:ue;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Rt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Pe(e,t,n){if(!t)return e;const r=n&&n.encode||Rt,s=n&&n.serialize;let o;if(s?o=s(t,n):o=a.isURLSearchParams(t)?t.toString():new ne(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class At{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){a.forEach(this.handlers,function(r){r!==null&&t(r)})}}const le=At,Ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tt=typeof URLSearchParams<"u"?URLSearchParams:ne,xt=typeof FormData<"u"?FormData:null,gt=typeof Blob<"u"?Blob:null,Nt=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Pt=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),O={isBrowser:!0,classes:{URLSearchParams:Tt,FormData:xt,Blob:gt},isStandardBrowserEnv:Nt,isStandardBrowserWebWorkerEnv:Pt,protocols:["http","https","file","blob","url","data"]};function Ct(e,t){return V(e,new O.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return O.isNode&&a.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Ft(e){return a.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function _t(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r<s;r++)o=n[r],t[o]=e[o];return t}function Fe(e){function t(n,r,s,o){let i=n[o++];const u=Number.isFinite(+i),d=o>=n.length;return i=!i&&a.isArray(s)?s.length:i,d?(a.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!u):((!s[i]||!a.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&a.isArray(s[i])&&(s[i]=_t(s[i])),!u)}if(a.isFormData(e)&&a.isFunction(e.entries)){const n={};return a.forEachEntry(e,(r,s)=>{t(Ft(r),s,n,0)}),n}return null}const Bt={"Content-Type":void 0};function Dt(e,t,n){if(a.isString(e))try{return(t||JSON.parse)(e),a.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const J={transitional:Ce,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=a.isObject(t);if(o&&a.isHTMLForm(t)&&(t=new FormData(t)),a.isFormData(t))return s&&s?JSON.stringify(Fe(t)):t;if(a.isArrayBuffer(t)||a.isBuffer(t)||a.isStream(t)||a.isFile(t)||a.isBlob(t))return t;if(a.isArrayBufferView(t))return t.buffer;if(a.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ct(t,this.formSerializer).toString();if((u=a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return V(u?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),Dt(t)):t}],transformResponse:[function(t){const n=this.transitional||J.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&a.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?m.from(u,m.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:O.classes.FormData,Blob:O.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],function(t){J.headers[t]={}});a.forEach(["post","put","patch"],function(t){J.headers[t]=a.merge(Bt)});const re=J,Lt=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ut=e=>{const t={};let n,r,s;return e&&e.split(`
 `).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Lt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},fe=Symbol("internals");function C(e){return e&&String(e).trim().toLowerCase()}function U(e){return e===!1||e==null?e:a.isArray(e)?e.map(U):String(e)}function jt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const kt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function v(e,t,n,r,s){if(a.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!a.isString(t)){if(a.isString(r))return t.indexOf(r)!==-1;if(a.isRegExp(r))return r.test(t)}}function It(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ht(e,t){const n=a.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class ${constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(u,d,c){const l=C(d);if(!l)throw new Error("header name must be a non-empty string");const p=a.findKey(s,l);(!p||s[p]===void 0||c===!0||c===void 0&&s[p]!==!1)&&(s[p||d]=U(u))}const i=(u,d)=>a.forEach(u,(c,l)=>o(c,l,d));return a.isPlainObject(t)||t instanceof this.constructor?i(t,n):a.isString(t)&&(t=t.trim())&&!kt(t)?i(Ut(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=C(t),t){const r=a.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return jt(s);if(a.isFunction(n))return n.call(this,s,r);if(a.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=C(t),t){const r=a.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||v(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=C(i),i){const u=a.findKey(r,i);u&&(!n||v(r,r[u],u,n))&&(delete r[u],s=!0)}}return a.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||v(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return a.forEach(this,(s,o)=>{const i=a.findKey(r,o);if(i){n[i]=U(s),delete n[o];return}const u=t?It(o):String(o).trim();u!==o&&delete n[o],n[u]=U(s),r[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return a.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&a.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
 `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[fe]=this[fe]={accessors:{}}).accessors,s=this.prototype;function o(i){const u=C(i);r[u]||(Ht(s,i),r[u]=!0)}return a.isArray(t)?t.forEach(o):o(t),this}}$.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.freezeMethods($.prototype);a.freezeMethods($);const T=$;function K(e,t){const n=this||re,r=t||n,s=T.from(r.headers);let o=r.data;return a.forEach(e,function(u){o=u.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function _e(e){return!!(e&&e.__CANCEL__)}function B(e,t,n){m.call(this,e??"canceled",m.ERR_CANCELED,t,n),this.name="CanceledError"}a.inherits(B,m,{__CANCEL__:!0});function Mt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new m("Request failed with status code "+n.status,[m.ERR_BAD_REQUEST,m.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const qt=O.isStandardBrowserEnv?function(){return{write:function(n,r,s,o,i,u){const d=[];d.push(n+"="+encodeURIComponent(r)),a.isNumber(s)&&d.push("expires="+new Date(s).toGMTString()),a.isString(o)&&d.push("path="+o),a.isString(i)&&d.push("domain="+i),u===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function zt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Vt(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Be(e,t){return e&&!zt(t)?Vt(e,t):t}const Jt=O.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const u=a.isString(i)?s(i):i;return u.protocol===r.protocol&&u.host===r.host}}():function(){return function(){return!0}}();function $t(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Wt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(d){const c=Date.now(),l=r[o];i||(i=c),n[s]=d,r[s]=c;let p=o,E=0;for(;p!==s;)E+=n[p++],p=p%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-i<t)return;const y=l&&c-l;return y?Math.round(E*1e3/y):void 0}}function de(e,t){let n=0;const r=Wt(50,250);return s=>{const o=s.loaded,i=s.lengthComputable?s.total:void 0,u=o-n,d=r(u),c=o<=i;n=o;const l={loaded:o,total:i,progress:i?o/i:void 0,bytes:u,rate:d||void 0,estimated:d&&i&&c?(i-o)/d:void 0,event:s};l[t?"download":"upload"]=!0,e(l)}}const vt=typeof XMLHttpRequest<"u",Kt=vt&&function(e){return new Promise(function(n,r){let s=e.data;const o=T.from(e.headers).normalize(),i=e.responseType;let u;function d(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}a.isFormData(s)&&(O.isStandardBrowserEnv||O.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const y=e.auth.username||"",f=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(y+":"+f))}const l=Be(e.baseURL,e.url);c.open(e.method.toUpperCase(),Pe(l,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function p(){if(!c)return;const y=T.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),h={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:y,config:e,request:c};Mt(function(S){n(S),d()},function(S){r(S),d()},h),c=null}if("onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(p)},c.onabort=function(){c&&(r(new m("Request aborted",m.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new m("Network Error",m.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let f=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const h=e.transitional||Ce;e.timeoutErrorMessage&&(f=e.timeoutErrorMessage),r(new m(f,h.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,c)),c=null},O.isStandardBrowserEnv){const y=(e.withCredentials||Jt(l))&&e.xsrfCookieName&&qt.read(e.xsrfCookieName);y&&o.set(e.xsrfHeaderName,y)}s===void 0&&o.setContentType(null),"setRequestHeader"in c&&a.forEach(o.toJSON(),function(f,h){c.setRequestHeader(h,f)}),a.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",de(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",de(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=y=>{c&&(r(!y||y.type?new B(null,e,c):y),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const E=$t(l);if(E&&O.protocols.indexOf(E)===-1){r(new m("Unsupported protocol "+E+":",m.ERR_BAD_REQUEST,e));return}c.send(s||null)})},j={http:bt,xhr:Kt};a.forEach(j,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Gt={getAdapter:e=>{e=a.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let s=0;s<t&&(n=e[s],!(r=a.isString(n)?j[n.toLowerCase()]:n));s++);if(!r)throw r===!1?new m(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(a.hasOwnProp(j,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!a.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:j};function G(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new B(null,e)}function pe(e){return G(e),e.headers=T.from(e.headers),e.data=K.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Gt.getAdapter(e.adapter||re.adapter)(e).then(function(r){return G(e),r.data=K.call(e,e.transformResponse,r),r.headers=T.from(r.headers),r},function(r){return _e(r)||(G(e),r&&r.response&&(r.response.data=K.call(e,e.transformResponse,r.response),r.response.headers=T.from(r.response.headers))),Promise.reject(r)})}const he=e=>e instanceof T?e.toJSON():e;function N(e,t){t=t||{};const n={};function r(c,l,p){return a.isPlainObject(c)&&a.isPlainObject(l)?a.merge.call({caseless:p},c,l):a.isPlainObject(l)?a.merge({},l):a.isArray(l)?l.slice():l}function s(c,l,p){if(a.isUndefined(l)){if(!a.isUndefined(c))return r(void 0,c,p)}else return r(c,l,p)}function o(c,l){if(!a.isUndefined(l))return r(void 0,l)}function i(c,l){if(a.isUndefined(l)){if(!a.isUndefined(c))return r(void 0,c)}else return r(void 0,l)}function u(c,l,p){if(p in t)return r(c,l);if(p in e)return r(void 0,c)}const d={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:u,headers:(c,l)=>s(he(c),he(l),!0)};return a.forEach(Object.keys(Object.assign({},e,t)),function(l){const p=d[l]||s,E=p(e[l],t[l],l);a.isUndefined(E)&&p!==u||(n[l]=E)}),n}const De="1.4.0",se={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{se[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const me={};se.transitional=function(t,n,r){function s(o,i){return"[Axios v"+De+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,u)=>{if(t===!1)throw new m(s(i," has been removed"+(n?" in "+n:"")),m.ERR_DEPRECATED);return n&&!me[i]&&(me[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,u):!0}};function Xt(e,t,n){if(typeof e!="object")throw new m("options must be an object",m.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const u=e[o],d=u===void 0||i(u,o,e);if(d!==!0)throw new m("option "+o+" must be "+d,m.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new m("Unknown option "+o,m.ERR_BAD_OPTION)}}const Z={assertOptions:Xt,validators:se},x=Z.validators;class I{constructor(t){this.defaults=t,this.interceptors={request:new le,response:new le}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=N(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&Z.assertOptions(r,{silentJSONParsing:x.transitional(x.boolean),forcedJSONParsing:x.transitional(x.boolean),clarifyTimeoutError:x.transitional(x.boolean)},!1),s!=null&&(a.isFunction(s)?n.paramsSerializer={serialize:s}:Z.assertOptions(s,{encode:x.function,serialize:x.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=o&&a.merge(o.common,o[n.method]),i&&a.forEach(["delete","get","head","post","put","patch","common"],f=>{delete o[f]}),n.headers=T.concat(i,o);const u=[];let d=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(d=d&&h.synchronous,u.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let l,p=0,E;if(!d){const f=[pe.bind(this),void 0];for(f.unshift.apply(f,u),f.push.apply(f,c),E=f.length,l=Promise.resolve(n);p<E;)l=l.then(f[p++],f[p++]);return l}E=u.length;let y=n;for(p=0;p<E;){const f=u[p++],h=u[p++];try{y=f(y)}catch(A){h.call(this,A);break}}try{l=pe.call(this,y)}catch(f){return Promise.reject(f)}for(p=0,E=c.length;p<E;)l=l.then(c[p++],c[p++]);return l}getUri(t){t=N(this.defaults,t);const n=Be(t.baseURL,t.url);return Pe(n,t.params,t.paramsSerializer)}}a.forEach(["delete","get","head","options"],function(t){I.prototype[t]=function(n,r){return this.request(N(r||{},{method:t,url:n,data:(r||{}).data}))}});a.forEach(["post","put","patch"],function(t){function n(r){return function(o,i,u){return this.request(N(u||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}I.prototype[t]=n(),I.prototype[t+"Form"]=n(!0)});const k=I;class oe{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(s=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(u=>{r.subscribe(u),o=u}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,u){r.reason||(r.reason=new B(o,i,u),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new oe(function(s){t=s}),cancel:t}}}const Qt=oe;function Yt(e){return function(n){return e.apply(null,n)}}function Zt(e){return a.isObject(e)&&e.isAxiosError===!0}const ee={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ee).forEach(([e,t])=>{ee[t]=e});const en=ee;function Le(e){const t=new k(e),n=ye(k.prototype.request,t);return a.extend(n,k.prototype,t,{allOwnKeys:!0}),a.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Le(N(e,s))},n}const w=Le(re);w.Axios=k;w.CanceledError=B;w.CancelToken=Qt;w.isCancel=_e;w.VERSION=De;w.toFormData=V;w.AxiosError=m;w.Cancel=w.CanceledError;w.all=function(t){return Promise.all(t)};w.spread=Yt;w.isAxiosError=Zt;w.mergeConfig=N;w.AxiosHeaders=T;w.formToJSON=e=>Fe(a.isHTMLForm(e)?new FormData(e):e);w.HttpStatusCode=en;w.default=w;const cn=w;function H(e){return H=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H(e)}function X(e,t){if(!e.vueAxiosInstalled){var n=Ue(t)?rn(t):t;if(sn(n)){var r=on(e);if(r){var s=r<3?tn:nn;Object.keys(n).forEach(function(o){s(e,o,n[o])}),e.vueAxiosInstalled=!0}else console.error("[vue-axios] unknown Vue version")}else console.error("[vue-axios] configuration is invalid, expected options are either <axios_instance> or { <registration_key>: <axios_instance> }")}}function tn(e,t,n){Object.defineProperty(e.prototype,t,{get:function(){return n}}),e[t]=n}function nn(e,t,n){e.config.globalProperties[t]=n,e[t]=n}function Ue(e){return e&&typeof e.get=="function"&&typeof e.post=="function"}function rn(e){return{axios:e,$http:e}}function sn(e){return H(e)==="object"&&Object.keys(e).every(function(t){return Ue(e[t])})}function on(e){return e&&e.version&&Number(e.version.split(".")[0])}(typeof exports>"u"?"undefined":H(exports))=="object"?module.exports=X:typeof define=="function"&&define.amd?define([],function(){return X}):window.Vue&&window.axios&&window.Vue.use&&Vue.use(X,window.axios);export{cn as a,X as p};
diff --git a/web/settings/assets/vendor-bootstrap-9f620114.js b/web/settings/assets/vendor-bootstrap-d275de6c.js
similarity index 99%
rename from web/settings/assets/vendor-bootstrap-9f620114.js
rename to web/settings/assets/vendor-bootstrap-d275de6c.js
index b682d45963..904ff0d045 100644
--- a/web/settings/assets/vendor-bootstrap-9f620114.js
+++ b/web/settings/assets/vendor-bootstrap-d275de6c.js
@@ -1,4 +1,4 @@
-import{r as or,c as ur}from"./vendor-94ac8c48.js";import{r as fr}from"./vendor-jquery-f7104ff8.js";var Ft={exports:{}};/*!
+import{r as or,c as ur}from"./vendor-20bb207d.js";import{r as fr}from"./vendor-jquery-89b63fca.js";var Ft={exports:{}};/*!
   * Bootstrap v4.6.2 (https://getbootstrap.com/)
   * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
   * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
diff --git a/web/settings/assets/vendor-chartjs-dd3fd71e.js b/web/settings/assets/vendor-chartjs-93103a11.js
similarity index 99%
rename from web/settings/assets/vendor-chartjs-dd3fd71e.js
rename to web/settings/assets/vendor-chartjs-93103a11.js
index 6234b003dc..a5c221f7c9 100644
--- a/web/settings/assets/vendor-chartjs-dd3fd71e.js
+++ b/web/settings/assets/vendor-chartjs-93103a11.js
@@ -1,4 +1,4 @@
-var io=Object.defineProperty;var no=(i,t,e)=>t in i?io(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var S=(i,t,e)=>(no(i,typeof t!="symbol"?t+"":t,e),e);import{C as Zn,d as Qn,s as Jn,h as ts,v as so,a as oo,o as ro,e as ao,w as lo,t as ti,i as es,H as Zt}from"./vendor-94ac8c48.js";import{D as lt}from"./vendor-luxon-1af9332f.js";/*!
+var io=Object.defineProperty;var no=(i,t,e)=>t in i?io(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var S=(i,t,e)=>(no(i,typeof t!="symbol"?t+"":t,e),e);import{C as Zn,d as Qn,s as Jn,h as ts,v as so,a as oo,o as ro,e as ao,w as lo,t as ti,i as es,H as Zt}from"./vendor-20bb207d.js";import{D as lt}from"./vendor-luxon-1af9332f.js";/*!
  * Chart.js v4.3.0
  * https://www.chartjs.org
  * (c) 2023 Chart.js Contributors
diff --git a/web/settings/assets/vendor-fortawesome-ad83e535.js b/web/settings/assets/vendor-fortawesome-838df0c9.js
similarity index 99%
rename from web/settings/assets/vendor-fortawesome-ad83e535.js
rename to web/settings/assets/vendor-fortawesome-838df0c9.js
index 50babbbdbd..f9958de964 100644
--- a/web/settings/assets/vendor-fortawesome-ad83e535.js
+++ b/web/settings/assets/vendor-fortawesome-838df0c9.js
@@ -1,4 +1,4 @@
-import{g as ce,d as _e,f as U,w as bn,h as Te}from"./vendor-94ac8c48.js";function fe(a,e){var n=Object.keys(a);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(a);e&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),n.push.apply(n,t)}return n}function u(a){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(n),!0).forEach(function(t){A(a,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach(function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(n,t))})}return a}function wa(a){"@babel/helpers - typeof";return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wa(a)}function gn(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function le(a,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,t.key,t)}}function hn(a,e,n){return e&&le(a.prototype,e),n&&le(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}function A(a,e,n){return e in a?Object.defineProperty(a,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[e]=n,a}function qa(a,e){return xn(a)||wn(a,e)||Fe(a,e)||An()}function ca(a){return yn(a)||kn(a)||Fe(a)||zn()}function yn(a){if(Array.isArray(a))return _a(a)}function xn(a){if(Array.isArray(a))return a}function kn(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function wn(a,e){var n=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(n!=null){var t=[],r=!0,i=!1,o,s;try{for(n=n.call(a);!(r=(o=n.next()).done)&&(t.push(o.value),!(e&&t.length===e));r=!0);}catch(c){i=!0,s=c}finally{try{!r&&n.return!=null&&n.return()}finally{if(i)throw s}}return t}}function Fe(a,e){if(a){if(typeof a=="string")return _a(a,e);var n=Object.prototype.toString.call(a).slice(8,-1);if(n==="Object"&&a.constructor&&(n=a.constructor.name),n==="Map"||n==="Set")return Array.from(a);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _a(a,e)}}function _a(a,e){(e==null||e>a.length)&&(e=a.length);for(var n=0,t=new Array(e);n<e;n++)t[n]=a[n];return t}function zn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
+import{g as ce,d as _e,f as U,w as bn,h as Te}from"./vendor-20bb207d.js";function fe(a,e){var n=Object.keys(a);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(a);e&&(t=t.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),n.push.apply(n,t)}return n}function u(a){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fe(Object(n),!0).forEach(function(t){A(a,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach(function(t){Object.defineProperty(a,t,Object.getOwnPropertyDescriptor(n,t))})}return a}function wa(a){"@babel/helpers - typeof";return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wa(a)}function gn(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function le(a,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(a,t.key,t)}}function hn(a,e,n){return e&&le(a.prototype,e),n&&le(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}function A(a,e,n){return e in a?Object.defineProperty(a,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[e]=n,a}function qa(a,e){return xn(a)||wn(a,e)||Fe(a,e)||An()}function ca(a){return yn(a)||kn(a)||Fe(a)||zn()}function yn(a){if(Array.isArray(a))return _a(a)}function xn(a){if(Array.isArray(a))return a}function kn(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function wn(a,e){var n=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(n!=null){var t=[],r=!0,i=!1,o,s;try{for(n=n.call(a);!(r=(o=n.next()).done)&&(t.push(o.value),!(e&&t.length===e));r=!0);}catch(c){i=!0,s=c}finally{try{!r&&n.return!=null&&n.return()}finally{if(i)throw s}}return t}}function Fe(a,e){if(a){if(typeof a=="string")return _a(a,e);var n=Object.prototype.toString.call(a).slice(8,-1);if(n==="Object"&&a.constructor&&(n=a.constructor.name),n==="Map"||n==="Set")return Array.from(a);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _a(a,e)}}function _a(a,e){(e==null||e>a.length)&&(e=a.length);for(var n=0,t=new Array(e);n<e;n++)t[n]=a[n];return t}function zn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
 In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function An(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
 In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ue=function(){},Ka={},Re={},De=null,je={mark:ue,measure:ue};try{typeof window<"u"&&(Ka=window),typeof document<"u"&&(Re=document),typeof MutationObserver<"u"&&(De=MutationObserver),typeof performance<"u"&&(je=performance)}catch{}var Cn=Ka.navigator||{},me=Cn.userAgent,ve=me===void 0?"":me,j=Ka,x=Re,de=De,ua=je;j.document;var F=!!x.documentElement&&!!x.head&&typeof x.addEventListener=="function"&&typeof x.createElement=="function",$e=~ve.indexOf("MSIE")||~ve.indexOf("Trident/"),ma,va,da,pa,ba,I="___FONT_AWESOME___",Ta=16,Ye="fa",Ue="svg-inline--fa",G="data-fa-i2svg",Fa="data-fa-pseudo-element",Hn="data-fa-pseudo-element-pending",Qa="data-prefix",Za="data-icon",pe="fontawesome-i2svg",Mn="async",Sn=["HTML","HEAD","STYLE","SCRIPT"],Be=function(){try{return!1}catch{return!1}}(),y="classic",k="sharp",Ja=[y,k];function fa(a){return new Proxy(a,{get:function(n,t){return t in n?n[t]:n[y]}})}var ta=fa((ma={},A(ma,y,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),A(ma,k,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light"}),ma)),ra=fa((va={},A(va,y,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),A(va,k,{solid:"fass",regular:"fasr",light:"fasl"}),va)),ia=fa((da={},A(da,y,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),A(da,k,{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light"}),da)),On=fa((pa={},A(pa,y,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),A(pa,k,{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl"}),pa)),Nn=/fa(s|r|l|t|d|b|k|ss|sr|sl)?[\-\ ]/,We="fa-layers-text",Vn=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Ln=fa((ba={},A(ba,y,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),A(ba,k,{900:"fass",400:"fasr",300:"fasl"}),ba)),Ge=[1,2,3,4,5,6,7,8,9,10],Pn=Ge.concat([11,12,13,14,15,16,17,18,19,20]),En=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],B={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},oa=new Set;Object.keys(ra[y]).map(oa.add.bind(oa));Object.keys(ra[k]).map(oa.add.bind(oa));var In=[].concat(Ja,ca(oa),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",B.GROUP,B.SWAP_OPACITY,B.PRIMARY,B.SECONDARY]).concat(Ge.map(function(a){return"".concat(a,"x")})).concat(Pn.map(function(a){return"w-".concat(a)})),ea=j.FontAwesomeConfig||{};function _n(a){var e=x.querySelector("script["+a+"]");if(e)return e.getAttribute(a)}function Tn(a){return a===""?!0:a==="false"?!1:a==="true"?!0:a}if(x&&typeof x.querySelector=="function"){var Fn=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Fn.forEach(function(a){var e=qa(a,2),n=e[0],t=e[1],r=Tn(_n(n));r!=null&&(ea[t]=r)})}var Xe={styleDefault:"solid",familyDefault:"classic",cssPrefix:Ye,replacementClass:Ue,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};ea.familyPrefix&&(ea.cssPrefix=ea.familyPrefix);var Z=u(u({},Xe),ea);Z.autoReplaceSvg||(Z.observeMutations=!1);var m={};Object.keys(Xe).forEach(function(a){Object.defineProperty(m,a,{enumerable:!0,set:function(n){Z[a]=n,na.forEach(function(t){return t(m)})},get:function(){return Z[a]}})});Object.defineProperty(m,"familyPrefix",{enumerable:!0,set:function(e){Z.cssPrefix=e,na.forEach(function(n){return n(m)})},get:function(){return Z.cssPrefix}});j.FontAwesomeConfig=m;var na=[];function Rn(a){return na.push(a),function(){na.splice(na.indexOf(a),1)}}var D=Ta,P={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Dn(a){if(!(!a||!F)){var e=x.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=a;for(var n=x.head.childNodes,t=null,r=n.length-1;r>-1;r--){var i=n[r],o=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(t=i)}return x.head.insertBefore(e,t),a}}var jn="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function sa(){for(var a=12,e="";a-- >0;)e+=jn[Math.random()*62|0];return e}function J(a){for(var e=[],n=(a||[]).length>>>0;n--;)e[n]=a[n];return e}function ae(a){return a.classList?J(a.classList):(a.getAttribute("class")||"").split(" ").filter(function(e){return e})}function qe(a){return"".concat(a).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function $n(a){return Object.keys(a||{}).reduce(function(e,n){return e+"".concat(n,'="').concat(qe(a[n]),'" ')},"").trim()}function Ha(a){return Object.keys(a||{}).reduce(function(e,n){return e+"".concat(n,": ").concat(a[n].trim(),";")},"")}function ee(a){return a.size!==P.size||a.x!==P.x||a.y!==P.y||a.rotate!==P.rotate||a.flipX||a.flipY}function Yn(a){var e=a.transform,n=a.containerWidth,t=a.iconWidth,r={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(e.x*32,", ").concat(e.y*32,") "),o="scale(".concat(e.size/16*(e.flipX?-1:1),", ").concat(e.size/16*(e.flipY?-1:1),") "),s="rotate(".concat(e.rotate," 0 0)"),c={transform:"".concat(i," ").concat(o," ").concat(s)},l={transform:"translate(".concat(t/2*-1," -256)")};return{outer:r,inner:c,path:l}}function Un(a){var e=a.transform,n=a.width,t=n===void 0?Ta:n,r=a.height,i=r===void 0?Ta:r,o=a.startCentered,s=o===void 0?!1:o,c="";return s&&$e?c+="translate(".concat(e.x/D-t/2,"em, ").concat(e.y/D-i/2,"em) "):s?c+="translate(calc(-50% + ".concat(e.x/D,"em), calc(-50% + ").concat(e.y/D,"em)) "):c+="translate(".concat(e.x/D,"em, ").concat(e.y/D,"em) "),c+="scale(".concat(e.size/D*(e.flipX?-1:1),", ").concat(e.size/D*(e.flipY?-1:1),") "),c+="rotate(".concat(e.rotate,"deg) "),c}var Bn=`:root, :host {
   --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
diff --git a/web/settings/assets/vendor-jquery-f7104ff8.js b/web/settings/assets/vendor-jquery-89b63fca.js
similarity index 99%
rename from web/settings/assets/vendor-jquery-f7104ff8.js
rename to web/settings/assets/vendor-jquery-89b63fca.js
index eeb956e359..d6f94d8b87 100644
--- a/web/settings/assets/vendor-jquery-f7104ff8.js
+++ b/web/settings/assets/vendor-jquery-89b63fca.js
@@ -1,4 +1,4 @@
-import{c as Fr}from"./vendor-94ac8c48.js";var Mt={exports:{}};/*!
+import{c as Fr}from"./vendor-20bb207d.js";var Mt={exports:{}};/*!
  * jQuery JavaScript Library v3.7.0
  * https://jquery.com/
  *
diff --git a/web/settings/assets/vendor-sortablejs-dbc23470.js b/web/settings/assets/vendor-sortablejs-ad1d2cc8.js
similarity index 99%
rename from web/settings/assets/vendor-sortablejs-dbc23470.js
rename to web/settings/assets/vendor-sortablejs-ad1d2cc8.js
index e99664398a..bc08f6aa4b 100644
--- a/web/settings/assets/vendor-sortablejs-dbc23470.js
+++ b/web/settings/assets/vendor-sortablejs-ad1d2cc8.js
@@ -1,4 +1,4 @@
-import{j as Ue}from"./vendor-94ac8c48.js";/**!
+import{j as Ue}from"./vendor-20bb207d.js";/**!
  * Sortable 1.14.0
  * @author	RubaXa   <trash@rubaxa.org>
  * @author	owenm    <owen23355@gmail.com>
diff --git a/web/settings/index.html b/web/settings/index.html
index 9a10828d4e..b31f4737cf 100644
--- a/web/settings/index.html
+++ b/web/settings/index.html
@@ -7,13 +7,13 @@
 	<meta name="viewport" content="width=device-width,initial-scale=1.0">
 	<link rel="icon" href="/openWB/web/settings/favicon.ico">
 	<title>openWB</title>
-  <script type="module" crossorigin src="/openWB/web/settings/assets/index-cbcca7a0.js"></script>
-  <link rel="modulepreload" crossorigin href="/openWB/web/settings/assets/vendor-sortablejs-dbc23470.js">
-  <link rel="modulepreload" crossorigin href="/openWB/web/settings/assets/vendor-94ac8c48.js">
-  <link rel="modulepreload" crossorigin href="/openWB/web/settings/assets/vendor-fortawesome-ad83e535.js">
-  <link rel="modulepreload" crossorigin href="/openWB/web/settings/assets/vendor-jquery-f7104ff8.js">
-  <link rel="modulepreload" crossorigin href="/openWB/web/settings/assets/vendor-bootstrap-9f620114.js">
-  <link rel="modulepreload" crossorigin href="/openWB/web/settings/assets/vendor-axios-dc63434e.js">
+  <script type="module" crossorigin src="/openWB/web/settings/assets/index-f08a7306.js"></script>
+  <link rel="modulepreload" crossorigin href="/openWB/web/settings/assets/vendor-sortablejs-ad1d2cc8.js">
+  <link rel="modulepreload" crossorigin href="/openWB/web/settings/assets/vendor-20bb207d.js">
+  <link rel="modulepreload" crossorigin href="/openWB/web/settings/assets/vendor-fortawesome-838df0c9.js">
+  <link rel="modulepreload" crossorigin href="/openWB/web/settings/assets/vendor-jquery-89b63fca.js">
+  <link rel="modulepreload" crossorigin href="/openWB/web/settings/assets/vendor-bootstrap-d275de6c.js">
+  <link rel="modulepreload" crossorigin href="/openWB/web/settings/assets/vendor-axios-13ef03ae.js">
   <link rel="stylesheet" href="/openWB/web/settings/assets/vendor-7b9e30aa.css">
   <link rel="stylesheet" href="/openWB/web/settings/assets/vendor-bootstrap-e99e333f.css">
   <link rel="stylesheet" href="/openWB/web/settings/assets/index-27f04b3e.css">
diff --git a/web/version b/web/version
index a0ec6f120e..b1fbde3ac3 100644
--- a/web/version
+++ b/web/version
@@ -1 +1 @@
-2.1.1-Alpha.2
+2.1.1-Beta.2
