From 3c4fa7f98ecbfa5ace4f768957a81c9f579ff87b Mon Sep 17 00:00:00 2001 From: Claus Hagen Date: Sat, 16 Mar 2024 08:17:34 +0100 Subject: [PATCH 1/2] Error fixes --- .../source/src/assets/js/processMessages.ts | 2 +- .../src/components/powerGraph/PgSelector.vue | 2 +- .../src/components/powerGraph/PowerGraph.vue | 24 +++++++++++++-- .../source/src/components/powerGraph/model.ts | 2 +- .../powerGraph/processDayGraphData.ts | 2 +- .../priceChart/GlobalPriceChart.vue | 15 +++++----- .../colors/web/assets/index-692dda33.js | 6 ++++ .../colors/web/assets/index-a6d0268a.js | 6 ---- ...{index-53545bda.css => index-e8574baf.css} | 2 +- ...{vendor-6c3d972a.js => vendor-20b697ee.js} | 30 +++++++++---------- .../modules/web_themes/colors/web/index.html | 6 ++-- 11 files changed, 59 insertions(+), 38 deletions(-) create mode 100644 packages/modules/web_themes/colors/web/assets/index-692dda33.js delete mode 100644 packages/modules/web_themes/colors/web/assets/index-a6d0268a.js rename packages/modules/web_themes/colors/web/assets/{index-53545bda.css => index-e8574baf.css} (72%) rename packages/modules/web_themes/colors/web/assets/{vendor-6c3d972a.js => vendor-20b697ee.js} (71%) diff --git a/packages/modules/web_themes/colors/source/src/assets/js/processMessages.ts b/packages/modules/web_themes/colors/source/src/assets/js/processMessages.ts index c09759d7ce..5cefe37db1 100755 --- a/packages/modules/web_themes/colors/source/src/assets/js/processMessages.ts +++ b/packages/modules/web_themes/colors/source/src/assets/js/processMessages.ts @@ -103,7 +103,7 @@ function processCounterMessages(topic: string, message: string) { } else if (elements[3] == 'config') { // console.warn('Ignored counter config message') } - if (elements[3] == 'get') { + if (elements[3] == 'get' && id in counters) { switch (elements[4]) { case 'power': counters[id].power = +message diff --git a/packages/modules/web_themes/colors/source/src/components/powerGraph/PgSelector.vue b/packages/modules/web_themes/colors/source/src/components/powerGraph/PgSelector.vue index b0e09b8e15..2464c6c3b6 100755 --- a/packages/modules/web_themes/colors/source/src/components/powerGraph/PgSelector.vue +++ b/packages/modules/web_themes/colors/source/src/components/powerGraph/PgSelector.vue @@ -126,7 +126,7 @@ const displayDate = computed(() => { console.warn('Graph Data empty.') return '???' } */ - return (props.ignoreLive)?'heute':`${liveGraph.duration} min` + return props.ignoreLive ? 'heute' : `${liveGraph.duration} min` case 'today': return 'heute' case 'day': diff --git a/packages/modules/web_themes/colors/source/src/components/powerGraph/PowerGraph.vue b/packages/modules/web_themes/colors/source/src/components/powerGraph/PowerGraph.vue index 61158e8b1e..d929dfc2cd 100755 --- a/packages/modules/web_themes/colors/source/src/components/powerGraph/PowerGraph.vue +++ b/packages/modules/web_themes/colors/source/src/components/powerGraph/PowerGraph.vue @@ -25,8 +25,18 @@ - -
+
+ +
+
diff --git a/packages/modules/web_themes/colors/source/src/components/powerGraph/model.ts b/packages/modules/web_themes/colors/source/src/components/powerGraph/model.ts index 61f7483d9a..3f8933d904 100755 --- a/packages/modules/web_themes/colors/source/src/components/powerGraph/model.ts +++ b/packages/modules/web_themes/colors/source/src/components/powerGraph/model.ts @@ -150,7 +150,7 @@ export const dayGraph = reactive({ command: 'getDailyLog', data: { day: dateString }, }) - // graphData.data = [] + graphData.data = [] } }, deactivate() { diff --git a/packages/modules/web_themes/colors/source/src/components/powerGraph/processDayGraphData.ts b/packages/modules/web_themes/colors/source/src/components/powerGraph/processDayGraphData.ts index 0358eef403..35cc754471 100755 --- a/packages/modules/web_themes/colors/source/src/components/powerGraph/processDayGraphData.ts +++ b/packages/modules/web_themes/colors/source/src/components/powerGraph/processDayGraphData.ts @@ -141,7 +141,7 @@ function transformRow(currentRow: RawDayGraphDataItem): GraphDataItem { currentItem.selfUsage = currentItem.pv - currentItem.evuOut // House if (currentRow.hc && currentRow.hc.all) { - currentItem.house = currentRow.hc.all.power_imported + currentItem.house = currentRow.hc.all.power_imported - currentItem.devices } else { currentItem.house = currentItem.evuIn + diff --git a/packages/modules/web_themes/colors/source/src/components/priceChart/GlobalPriceChart.vue b/packages/modules/web_themes/colors/source/src/components/priceChart/GlobalPriceChart.vue index 58bc6be406..cf755847a0 100755 --- a/packages/modules/web_themes/colors/source/src/components/priceChart/GlobalPriceChart.vue +++ b/packages/modules/web_themes/colors/source/src/components/priceChart/GlobalPriceChart.vue @@ -46,7 +46,6 @@ import { timeFormat, axisLeft, select, - } from 'd3' const props = defineProps<{ @@ -79,8 +78,8 @@ const barwidth = computed(() => { const xScale = computed(() => { let xdomain = extent(plotdata.value, (d) => d[0]) as [Date, Date] if (xdomain[1]) { - xdomain[1]= new Date (xdomain[1]) - xdomain[1].setTime(xdomain[1].getTime()+3600000) + xdomain[1] = new Date(xdomain[1]) + xdomain[1].setTime(xdomain[1].getTime() + 3600000) } return scaleTime() .range([margin.left, width - margin.right]) @@ -103,11 +102,11 @@ const xAxisGenerator = computed(() => { .ticks(plotdata.value.length) .tickSize(5) .tickSizeInner(-height) - .tickFormat((d) => (d.getHours() % 6 == 0)? timeFormat('%H:%M')(d) : '') + .tickFormat((d) => (d.getHours() % 6 == 0 ? timeFormat('%H:%M')(d) : '')) }) const yAxisGenerator = computed(() => { return axisLeft(yScale.value) - .ticks(yDomain.value[1]-yDomain.value[0]) + .ticks(yDomain.value[1] - yDomain.value[0]) .tickSize(0) .tickSizeInner(-(width - margin.right - margin.left)) .tickFormat((d) => d.toString()) @@ -143,7 +142,9 @@ const draw = computed(() => { xAxis .selectAll('.tick line') .attr('stroke', 'var(--color-bg)') - .attr('stroke-width',(d) => ((d as Date).getHours()%6==0)?'2' :'0.5') + .attr('stroke-width', (d) => + (d as Date).getHours() % 6 == 0 ? '2' : '0.5', + ) xAxis.select('.domain').attr('stroke', 'var(--color-bg') // Y Axis const yAxis = svg.append('g').attr('class', 'axis').call(yAxisGenerator.value) @@ -155,7 +156,7 @@ const draw = computed(() => { yAxis .selectAll('.tick line') .attr('stroke', 'var(--color-bg)') - .attr('stroke-width', (d) => (d as number % 5 == 0)? '2' : '0.5') + .attr('stroke-width', (d) => ((d as number) % 5 == 0 ? '2' : '0.5')) yAxis.select('.domain').attr('stroke', 'var(--color-bg)') diff --git a/packages/modules/web_themes/colors/web/assets/index-692dda33.js b/packages/modules/web_themes/colors/web/assets/index-692dda33.js new file mode 100644 index 0000000000..1f02445692 --- /dev/null +++ b/packages/modules/web_themes/colors/web/assets/index-692dda33.js @@ -0,0 +1,6 @@ +var Ua=Object.defineProperty;var Fa=(t,e,a)=>e in t?Ua(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var f=(t,e,a)=>(Fa(t,typeof e!="symbol"?e+"":e,a),a);import{m as ca,r as ne,a as X,c as p,s as be,d as V,p as da,b as ua,w as Na,o as i,e as h,t as S,f as s,n as z,g as $,h as b,i as le,j as w,k as U,u as r,l as v,F as R,q as te,v as Oe,x as Ot,y as Te,z as ha,A as st,B as dt,C as Qe,D as Ye,E as tt,G as Ha,H as Re,I as Tt,J,K as Ra,L as Ce,M as ae,N as oe,O as qe,P as qa,Q as Ja,R as Qa,S as Et,T as Ya,U as Za,V as ut,W as Xa,X as Ka,Y as eo,Z as to,_ as ao,$ as oo}from"./vendor-20b697ee.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const l of n)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function a(n){const l={};return n.integrity&&(l.integrity=n.integrity),n.referrerPolicy&&(l.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?l.credentials="include":n.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(n){if(n.ep)return;n.ep=!0;const l=a(n);fetch(n.href,l)}})();const so=0,pa={host:location.hostname,port:location.protocol=="https:"?443:80,endpoint:"/ws",protocol:location.protocol=="https:"?"wss":"ws",connectTimeout:4e3,reconnectPeriod:4e3,clean:!1,clientId:Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,6)},ht={topic:"",qos:so};let ye;const{host:no,port:ro,endpoint:io,...ga}=pa,lo=`${ga.protocol}://${no}:${ro}${io}`;try{ye=ca.connect(lo,ga),ye.on("connect",()=>{console.info("MQTT connection successful")}),ye.on("disconnect",()=>{console.info("MQTT disconnected")}),ye.on("error",t=>{console.error("MQTT connection failed: ",t)})}catch(t){console.error("MQTT connect error: ",t)}function co(t){ye?ye.on("message",t):console.error("MqttRegister: MQTT client not available")}function Ee(t){ht.topic=t;const{topic:e,qos:a}=ht;ye.subscribe(e,{qos:a},o=>{if(o){console.error("MQTT Subscription error: "+o);return}})}function Ne(t){ht.topic=t;const{topic:e}=ht;ye.unsubscribe(e,a=>{if(a){console.error("MQTT Unsubscribe from "+t+" failed: "+a);return}})}async function Dt(t,e){let o=ye.connected,n=0;for(;!o&&n<10;)console.warn("MQTT publish: Not connected. Waiting 0.1 seconds"),await uo(100),o=ye.connected,n+=1;if(n<10)try{ye.publish(t,e,{qos:0},l=>{l&&console.warn("MQTT publish error: ",l),console.info("MQTT publish: Message sent: ["+t+"]("+e+")")})}catch(l){console.warn("MQTT publish: caught error: "+l)}else console.error("MQTT publish: Lost connection to MQTT server. Please reload the page")}function jt(){return pa.clientId}function uo(t){return new Promise(e=>setTimeout(e,t))}class ho{constructor(e){f(this,"id");f(this,"name","Ladepunkt");f(this,"icon","Ladepunkt");f(this,"type","");f(this,"ev",0);f(this,"template",0);f(this,"connectedPhases",0);f(this,"phase_1",0);f(this,"autoPhaseSwitchHw",!1);f(this,"controlPilotInterruptionHw",!1);f(this,"isEnabled",!0);f(this,"isPluggedIn",!1);f(this,"isCharging",!1);f(this,"_isLocked",!1);f(this,"_connectedVehicle",0);f(this,"chargeTemplate",0);f(this,"evTemplate",0);f(this,"_chargeMode","pv_charging");f(this,"_hasPriority",!1);f(this,"currentPlan","");f(this,"averageConsumption",0);f(this,"vehicleName","");f(this,"rangeCharged",0);f(this,"rangeUnit","");f(this,"counter",0);f(this,"dailyYield",0);f(this,"energyPv",0);f(this,"energyBat",0);f(this,"pvPercentage",0);f(this,"faultState",0);f(this,"faultStr","");f(this,"phasesInUse",0);f(this,"power",0);f(this,"chargedSincePlugged",0);f(this,"stateStr","");f(this,"current",0);f(this,"currents",[0,0,0]);f(this,"phasesToUse",0);f(this,"isSocConfigured",!0);f(this,"isSocManual",!1);f(this,"waitingForSoc",!1);f(this,"color","white");f(this,"_timedCharging",!1);f(this,"_instantChargeLimitMode","");f(this,"_instantTargetCurrent",0);f(this,"_instantTargetSoc",0);f(this,"_instantMaxEnergy",0);f(this,"_pvFeedInLimit",!1);f(this,"_pvMinCurrent",0);f(this,"_pvMaxSoc",0);f(this,"_pvMinSoc",0);f(this,"_pvMinSocCurrent",0);f(this,"_etActive",!1);f(this,"_etMaxPrice",20);this.id=e}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked=e,K("cpLock",e,this.id)}updateIsLocked(e){this._isLocked=e}get connectedVehicle(){return this._connectedVehicle}set connectedVehicle(e){this._connectedVehicle=e,K("cpVehicle",e,this.id)}updateConnectedVehicle(e){this._connectedVehicle=e}get soc(){return Y[this.connectedVehicle]?Y[this.connectedVehicle].soc:0}set soc(e){Y[this.connectedVehicle]&&(Y[this.connectedVehicle].soc=e)}get chargeMode(){return this._chargeMode}set chargeMode(e){this._chargeMode=e,K("chargeMode",e,this.id)}updateChargeMode(e){this._chargeMode=e}get hasPriority(){return this._hasPriority}set hasPriority(e){this._hasPriority=e,K("cpPriority",e,this.id)}updateCpPriority(e){this._hasPriority=e}get timedCharging(){return fe[this.chargeTemplate]?fe[this.chargeTemplate].time_charging.active:!1}set timedCharging(e){fe[this.chargeTemplate].time_charging.active=e,K("cpTimedCharging",e,this.chargeTemplate)}get instantTargetCurrent(){return this._instantTargetCurrent}set instantTargetCurrent(e){this._instantTargetCurrent=e,K("cpInstantTargetCurrent",e,this.id)}updateInstantTargetCurrent(e){this._instantTargetCurrent=e}get instantChargeLimitMode(){return this._instantChargeLimitMode}set instantChargeLimitMode(e){this._instantChargeLimitMode=e,K("cpInstantChargeLimitMode",e,this.id)}updateInstantChargeLimitMode(e){this._instantChargeLimitMode=e}get instantTargetSoc(){return this._instantTargetSoc}set instantTargetSoc(e){this._instantTargetSoc=e,K("cpInstantTargetSoc",e,this.id)}updateInstantTargetSoc(e){this._instantTargetSoc=e}get instantMaxEnergy(){return this._instantMaxEnergy}set instantMaxEnergy(e){this._instantMaxEnergy=e,K("cpInstantMaxEnergy",e,this.id)}updateInstantMaxEnergy(e){this._instantMaxEnergy=e}get pvFeedInLimit(){return this._pvFeedInLimit}set pvFeedInLimit(e){this._pvFeedInLimit=e,K("cpPvFeedInLimit",e,this.id)}updatePvFeedInLimit(e){this._pvFeedInLimit=e}get pvMinCurrent(){return this._pvMinCurrent}set pvMinCurrent(e){this._pvMinCurrent=e,K("cpPvMinCurrent",e,this.id)}updatePvMinCurrent(e){this._pvMinCurrent=e}get pvMaxSoc(){return this._pvMaxSoc}set pvMaxSoc(e){this._pvMaxSoc=e,K("cpPvMaxSoc",e,this.id)}updatePvMaxSoc(e){this._pvMaxSoc=e}get pvMinSoc(){return this._pvMinSoc}set pvMinSoc(e){this._pvMinSoc=e,K("cpPvMinSoc",e,this.id)}updatePvMinSoc(e){this._pvMinSoc=e}get pvMinSocCurrent(){return this._pvMinSocCurrent}set pvMinSocCurrent(e){this._pvMinSocCurrent=e,K("cpPvMinSocCurrent",e,this.id)}updatePvMinSocCurrent(e){this._pvMinSocCurrent=e}get realCurrent(){switch(this.phasesInUse){case 0:return 0;case 1:return this.currents[0];case 2:return(this.currents[0]+this.currents[1])/2;case 3:return(this.currents[0]+this.currents[1]+this.currents[2])/3;default:return 0}}get etActive(){return Y[this.connectedVehicle]?Y[this.connectedVehicle].etActive:!1}set etActive(e){Y[this.connectedVehicle]&&(Y[this.connectedVehicle].etActive=e)}get etMaxPrice(){return Y[this.connectedVehicle].etMaxPrice??0}set etMaxPrice(e){console.log("Setting et max price needs to be implemented"),K("cpEtMaxPrice",Math.round(e*10)/1e6,this.id)}toPowerItem(){return{name:this.name,power:this.power,energy:this.dailyYield,energyPv:this.energyPv,energyBat:this.energyBat,pvPercentage:this.pvPercentage,color:this.color,icon:this.icon}}}class po{constructor(e){f(this,"id");f(this,"name","");f(this,"_chargeTemplateId",0);f(this,"_evTemplateId",0);f(this,"tags",[]);f(this,"config",{});f(this,"soc",0);f(this,"range",0);f(this,"_etActive",!1);f(this,"_etMaxPrice",20);this.id=e}get chargeTemplateId(){return this._chargeTemplateId}set chargeTemplateId(e){this._chargeTemplateId=e,K("vhChargeTemplateId",e,this.id)}updateChargeTemplateId(e){this._chargeTemplateId=e}get evTemplateId(){return this._evTemplateId}set evTemplateId(e){this._evTemplateId=e,K("vhEvTemplateId",e,this.id)}updateEvTemplateId(e){this._evTemplateId=e}get etActive(){return fe[this.chargeTemplateId]?fe[this.chargeTemplateId].et.active:!1}set etActive(e){fe[this.chargeTemplateId]&&K("priceCharging",e,this.chargeTemplateId)}get etMaxPrice(){if(fe[this.chargeTemplateId]&&fe[this.chargeTemplateId].et.active)return fe[this.chargeTemplateId].et.max_price*1e5}get chargepoint(){for(const e of Object.values(B))if(e.connectedVehicle==this.id)return e}}var me=(t=>(t.instant_charging="instant_charging",t.pv_charging="pv_charging",t.scheduled_charging="scheduled_charging",t.standby="standby",t.stop="stop",t))(me||{});const B=ne({}),Y=ne({}),fe=ne({}),Ze=ne({}),Xe=ne({}),Gt=ne({});function go(t){t in B||(B[t]=new ho(t),B[t].color="var(--color-cp"+(Object.values(B).length-1)+")")}function mo(){Object.keys(B).forEach(t=>{delete B[parseInt(t)]})}const fo={cpLock:"openWB/set/chargepoint/%/set/manual_lock",chargeMode:"openWB/set/vehicle/template/charge_template/%/chargemode/selected",cpPriority:"openWB/set/vehicle/template/charge_template/%/prio",cpTimedCharging:"openWB/set/vehicle/template/charge_template/%/time_charging/active",pvBatteryPriority:"openWB/set/general/chargemode_config/pv_charging/bat_prio",cpVehicle:"openWB/set/chargepoint/%/config/ev",cpInstantChargeLimitMode:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/selected",cpInstantTargetCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/current",cpInstantTargetSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/soc",cpInstantMaxEnergy:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/amount",cpPvFeedInLimit:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/feed_in_limit",cpPvMinCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_current",cpPvMaxSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/max_soc",cpPvMinSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_soc",cpPvMinSocCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_soc_current",cpEtMaxPrice:"openWB/set/vehicle/template/charge_template/%/et/max_price",vhChargeTemplateId:"openWB/set/vehicle/%/charge_template",vhEvTemplateId:"openWB/set/vehicle/%/ev_template",shSetManual:"openWB/set/LegacySmartHome/config/set/Devices/%/mode",shSwitchOn:"openWB/set/LegacySmartHome/config/set/Devices/%/device_manual_control",socUpdate:"openWB/set/vehicle/%/get/force_soc_update",setSoc:"openWB/set/vehicle/%/soc_module/calculated_soc_state/manual_soc",priceCharging:"openWB/set/vehicle/template/charge_template/%/et/active"};function K(t,e,a=0){if(isNaN(a)){console.warn("Invalid index");return}let o=fo[t];if(!o){console.warn("No topic for update type "+t);return}switch(t){case"chargeMode":case"cpPriority":case"cpScheduledCharging":case"cpInstantTargetCurrent":case"cpInstantChargeLimitMode":case"cpInstantTargetSoc":case"cpInstantMaxEnergy":case"cpPvFeedInLimit":case"cpPvMinCurrent":case"cpPvMaxSoc":case"cpPvMinSoc":case"cpEtMaxPrice":case"cpPvMinSocCurrent":o=o.replace("%",B[a].chargeTemplate.toString());break;default:o=o.replace("%",String(a))}switch(typeof e){case"number":Dt(o,JSON.stringify(+e));break;default:Dt(o,JSON.stringify(e))}}function Ut(t){Dt("openWB/set/command/"+jt()+"/todo",JSON.stringify(t))}class vo{constructor(){f(this,"batterySoc",0);f(this,"isBatteryConfigured",!0);f(this,"chargeMode","0");f(this,"_pvBatteryPriority",!1);f(this,"displayLiveGraph",!0);f(this,"isEtEnabled",!0);f(this,"etMaxPrice",0);f(this,"etCurrentPrice",0);f(this,"cpDailyExported",0);f(this,"evuId",0);f(this,"etProvider","")}get pvBatteryPriority(){return this._pvBatteryPriority}set pvBatteryPriority(e){this._pvBatteryPriority=e,K("pvBatteryPriority",e)}updatePvBatteryPriority(e){this._pvBatteryPriority=e}}const ge=ne({evuIn:{name:"Netz",color:"var(--color-evu)",icon:""},pv:{name:"PV",color:"var(--color-pv",icon:""},batOut:{name:"Bat >",color:"var(--color-battery)",icon:""},evuOut:{name:"Export",color:"var(--color-export)",icon:""},charging:{name:"Laden",color:"var(--color-charging)",icon:""},devices:{name:"Geräte",color:"var(--color-devices)",icon:""},batIn:{name:"> Bat",color:"var(--color-battery)",icon:""},house:{name:"Haus",color:"var(--color-house)",icon:""},cp1:{name:"Ladepunkt",color:"var(--color-cp1)",icon:"Ladepunkt"},cp2:{name:"Ladepunkt",color:"var(--color-cp2)",icon:"Ladepunkt"},cp3:{name:"Ladepunkt",color:"var(--color-cp3)",icon:"Ladepunkt"},cp4:{name:"Ladepunkt",color:"var(--color-cp4)",icon:"Ladepunkt"},cp5:{name:"Ladepunkt",color:"var(--color-cp5)",icon:"Ladepunkt"},cp6:{name:"Ladepunkt",color:"var(--color-cp6)",icon:"Ladepunkt"},cp7:{name:"Ladepunkt",color:"var(--color-cp7)",icon:"Ladepunkt"},cp8:{name:"Ladepunkt",color:"var(--color-cp8)",icon:"Ladepunkt"},sh1:{name:"Gerät",color:"var(--color-sh1)",icon:"Gerät"},sh2:{name:"Gerät",color:"var(--color-sh2)",icon:"Gerät"},sh3:{name:"Gerät",color:"var(--color-sh3)",icon:"Gerät"},sh4:{name:"Gerät",color:"var(--color-sh4)",icon:"Gerät"},sh5:{name:"Gerät",color:"var(--color-sh5)",icon:"Gerät"},sh6:{name:"Gerät",color:"var(--color-sh6)",icon:"Gerät"},sh7:{name:"Gerät",color:"var(--color-sh7)",icon:"Gerät"},sh8:{name:"Gerät",color:"var(--color-sh8)",icon:"Gerät"},sh9:{name:"Gerät",color:"var(--color-sh9)",icon:"Gerät"}});class ma{constructor(){f(this,"_items",{});this.addItem("evuIn"),this.addItem("pv"),this.addItem("batOut"),this.addItem("evuOut"),this.addItem("charging"),this.addItem("devices"),this.addItem("batIn"),this.addItem("house")}get items(){return this._items}keys(){return Object.keys(this._items)}values(){return Object.values(this._items)}addItem(e){this._items[e]=Le(e)}setEnergy(e,a){this.keys().includes(e)||this.addItem(e),this._items[e].energy=a}setEnergyPv(e,a){this.keys().includes(e)||this.addItem(e),this._items[e].energyPv=a}setEnergyBat(e,a){this.keys().includes(e)||this.addItem(e),this._items[e].energyBat=a}setPvPercentage(e,a){this.keys().includes(e)||this.addItem(e),this._items[e].pvPercentage=a}calculateHouseEnergy(){this._items.house.energy=this._items.evuIn.energy+this._items.pv.energy+this._items.batOut.energy-this._items.evuOut.energy-this._items.batIn.energy-this._items.charging.energy-this._items.devices.energy}}let D=new ma;function Ft(){D=new ma}const q=ne({evuIn:Le("evuIn"),pv:Le("pv"),batOut:Le("batOut")}),W=ne({evuOut:Le("evuOut"),charging:Le("charging"),devices:Le("devices"),batIn:Le("batIn"),house:Le("house")}),ce=ne(new vo);X("");const pt=X(!1);function Le(t){return{name:ge[t]?ge[t].name:"item",power:0,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:ge[t]?ge[t].color:"var(--color-charging)",icon:ge[t]?ge[t].icon:""}}function _o(){W.house.power=W.house.power-W.devices.power}const Wt=X(new Date);class bo{constructor(){f(this,"_showRelativeArcs",!1);f(this,"showTodayGraph",!0);f(this,"_graphPreference","today");f(this,"_usageStackOrder",0);f(this,"_displayMode","dark");f(this,"_showGrid",!1);f(this,"_smartHomeColors","normal");f(this,"_decimalPlaces",1);f(this,"_showQuickAccess",!0);f(this,"_simpleCpList",!1);f(this,"_shortCpList","no");f(this,"_showAnimations",!0);f(this,"_preferWideBoxes",!1);f(this,"_maxPower",4e3);f(this,"_fluidDisplay",!1);f(this,"_showClock","no");f(this,"_showButtonBar",!0);f(this,"_showCounters",!1);f(this,"_showVehicles",!1);f(this,"_showPrices",!1);f(this,"_debug",!1);f(this,"isEtEnabled",!1);f(this,"etPrice",20.5);f(this,"showRightButton",!0);f(this,"showLeftButton",!0);f(this,"animationDuration",300);f(this,"animationDelay",100);f(this,"zoomGraph",!1)}get showRelativeArcs(){return this._showRelativeArcs}set showRelativeArcs(e){this._showRelativeArcs=e,re()}setShowRelativeArcs(e){this._showRelativeArcs=e}get graphPreference(){return this._graphPreference}set graphPreference(e){this._graphPreference=e,re()}setGraphPreference(e){this._graphPreference=e}get usageStackOrder(){return this._usageStackOrder}set usageStackOrder(e){this._usageStackOrder=e,re()}setUsageStackOrder(e){this._usageStackOrder=e}get displayMode(){return this._displayMode}set displayMode(e){this._displayMode=e,ko(e)}setDisplayMode(e){this._displayMode=e}get showGrid(){return this._showGrid}set showGrid(e){this._showGrid=e,re()}setShowGrid(e){this._showGrid=e}get decimalPlaces(){return this._decimalPlaces}set decimalPlaces(e){this._decimalPlaces=e,re()}setDecimalPlaces(e){this._decimalPlaces=e}get smartHomeColors(){return this._smartHomeColors}set smartHomeColors(e){this._smartHomeColors=e,Kt(e),re()}setSmartHomeColors(e){this._smartHomeColors=e,Kt(e)}get showQuickAccess(){return this._showQuickAccess}set showQuickAccess(e){this._showQuickAccess=e,re()}setShowQuickAccess(e){this._showQuickAccess=e}get simpleCpList(){return this._simpleCpList}set simpleCpList(e){this._simpleCpList=e,re()}setSimpleCpList(e){this._simpleCpList=e}get shortCpList(){return this._shortCpList}set shortCpList(e){this._shortCpList=e,re()}setShortCpList(e){this._shortCpList=e}get showAnimations(){return this._showAnimations}set showAnimations(e){this._showAnimations=e,re()}setShowAnimations(e){this._showAnimations=e}get preferWideBoxes(){return this._preferWideBoxes}set preferWideBoxes(e){this._preferWideBoxes=e,re()}setPreferWideBoxes(e){this._preferWideBoxes=e}get maxPower(){return this._maxPower}set maxPower(e){this._maxPower=e,re()}setMaxPower(e){this._maxPower=e}get fluidDisplay(){return this._fluidDisplay}set fluidDisplay(e){this._fluidDisplay=e,re()}setFluidDisplay(e){this._fluidDisplay=e}get showClock(){return this._showClock}set showClock(e){this._showClock=e,re()}setShowClock(e){this._showClock=e}get debug(){return this._debug}set debug(e){this._debug=e,re()}setDebug(e){this._debug=e}get showButtonBar(){return this._showButtonBar}set showButtonBar(e){this._showButtonBar=e,re()}setShowButtonBar(e){this._showButtonBar=e}get showCounters(){return this._showCounters}set showCounters(e){this._showCounters=e,re()}setShowCounters(e){this._showCounters=e}get showVehicles(){return this._showVehicles}set showVehicles(e){this._showVehicles=e,re()}setShowVehicles(e){this._showVehicles=e}get showPrices(){return this._showPrices}set showPrices(e){this._showPrices=e,re()}setShowPrices(e){this._showPrices=e}}const g=ne(new bo);function fa(){$o();const t=be("html");t.classed("theme-dark",g.displayMode=="dark"),t.classed("theme-light",g.displayMode=="light"),t.classed("theme-blue",g.displayMode=="blue"),t.classed("shcolors-standard",g.smartHomeColors=="standard"),t.classed("shcolors-advanced",g.smartHomeColors=="advanced"),t.classed("shcolors-normal",g.smartHomeColors=="normal")}const yo=992,gt=ne({x:document.documentElement.clientWidth,y:document.documentElement.clientHeight});function wo(){gt.x=document.documentElement.clientWidth,gt.y=document.documentElement.clientHeight,fa()}const Ge=p(()=>gt.x>=yo),ue={stop:{mode:me.stop,name:"Stop",color:"var(--color-fg)",icon:"fa-power-off"},standby:{mode:me.standby,name:"Standby",color:"var(--color-axis",icon:"fa-pause"},pv_charging:{mode:me.pv_charging,name:"PV",color:"var(--color-pv",icon:"fa-solar-panel"},scheduled_charging:{mode:me.scheduled_charging,name:"Zielladen",color:"var(--color-battery)",icon:"fa-bullseye"},instant_charging:{mode:me.instant_charging,name:"Sofort",color:"var(--color-charging)",icon:"fa-bolt"}};function re(){So()}function ko(t){const e=be("html");e.classed("theme-dark",t=="dark"),e.classed("theme-light",t=="light"),e.classed("theme-blue",t=="blue"),re()}function xo(){g.maxPower=q.evuIn.power+q.pv.power+q.batOut.power,re()}function Kt(t){const e=be("html");e.classed("shcolors-normal",t=="normal"),e.classed("shcolors-standard",t=="standard"),e.classed("shcolors-advanced",t=="advanced")}const Ve={chargemode:"Der Lademodus für das Fahrzeug an diesem Ladepunkt",vehicle:"Das Fahrzeug, das an diesem Ladepounkt geladen wird",locked:"Für das Laden sperren",priority:"Fahrzeuge mit Priorität werden bevorzugt mit mehr Leistung geladen, falls verfügbar",timeplan:"Das Laden nach Zeitplan für dieses Fahrzeug aktivieren",minsoc:"Immer mindestens bis zum eingestellten Ladestand laden. Wenn notwendig mit Netzstrom.",minpv:"Durchgehend mit mindestens dem eingestellten Strom laden. Wenn notwendig mit Netzstrom.",pricebased:"Laden bei dynamischem Stromtarif, wenn eingestellter Maximalpreis unterboten wird."};function So(){const t={};t.hideSH=Object.values(H).filter(e=>!e.showInGraph).map(e=>e.id),t.showLG=g.graphPreference=="live",t.displayM=g.displayMode,t.stackO=g.usageStackOrder,t.showGr=g.showGrid,t.decimalP=g.decimalPlaces,t.smartHomeC=g.smartHomeColors,t.relPM=g.showRelativeArcs,t.maxPow=g.maxPower,t.showQA=g.showQuickAccess,t.simpleCP=g.simpleCpList,t.shortCP=g.shortCpList,t.animation=g.showAnimations,t.wideB=g.preferWideBoxes,t.fluidD=g.fluidDisplay,t.clock=g.showClock,t.showButtonBar=g.showButtonBar,t.showCounters=g.showCounters,t.showVehicles=g.showVehicles,t.showPrices=g.showPrices,t.debug=g.debug,document.cookie="openWBColorTheme="+JSON.stringify(t)+";max-age=16000000;samesite=strict"}function $o(){const e=document.cookie.split(";").filter(a=>a.split("=")[0]==="openWBColorTheme");if(e.length>0){const a=JSON.parse(e[0].split("=")[1]);a.decimalP!==void 0&&g.setDecimalPlaces(+a.decimalP),a.smartHomeC!==void 0&&g.setSmartHomeColors(a.smartHomeC),a.hideSH!==void 0&&a.hideSH.map(o=>{H[o]==null&&Nt(o),H[o].setShowInGraph(!1)}),a.showLG!==void 0&&g.setGraphPreference(a.showLG?"live":"today"),a.maxPow!==void 0&&g.setMaxPower(+a.maxPow),a.relPM!==void 0&&g.setShowRelativeArcs(a.relPM),a.displayM!==void 0&&g.setDisplayMode(a.displayM),a.stackO!==void 0&&g.setUsageStackOrder(a.stackO),a.showGr!==void 0&&g.setShowGrid(a.showGr),a.showQA!==void 0&&g.setShowQuickAccess(a.showQA),a.simpleCP!==void 0&&g.setSimpleCpList(a.simpleCP),a.shortCP!==void 0&&g.setShortCpList(a.shortCP),a.animation!=null&&g.setShowAnimations(a.animation),a.wideB!=null&&g.setPreferWideBoxes(a.wideB),a.fluidD!=null&&g.setFluidDisplay(a.fluidD),a.clock!=null&&g.setShowClock(a.clock),a.showButtonBar!==void 0&&g.setShowButtonBar(a.showButtonBar),a.showCounters!==void 0&&g.setShowCounters(a.showCounters),a.showVehicles!==void 0&&g.setShowVehicles(a.showVehicles),a.showPrices!==void 0&&g.setShowPrices(a.showPrices),a.debug!==void 0&&g.setDebug(a.debug)}}class Mo{constructor(e){f(this,"id");f(this,"name","Gerät");f(this,"power",0);f(this,"status","off");f(this,"energy",0);f(this,"runningTime",0);f(this,"configured",!1);f(this,"_showInGraph",!0);f(this,"color","white");f(this,"canSwitch",!1);f(this,"countAsHouse",!1);f(this,"energyPv",0);f(this,"energyBat",0);f(this,"pvPercentage",0);f(this,"tempConfigured",0);f(this,"temp",[300,300,300]);f(this,"on",!1);f(this,"isAutomatic",!0);f(this,"icon","");this.id=e}get showInGraph(){return this._showInGraph}set showInGraph(e){this._showInGraph=e,re()}setShowInGraph(e){this._showInGraph=e}}const H=ne({});function Nt(t){t in H?console.info("Duplicate sh device message: "+t):(H[t]=new Mo(t),H[t].color="var(--color-sh"+Object.values(H).length+")")}const Co=["origin"],Po=V({__name:"PMSourceArc",props:{radius:{},cornerRadius:{},circleGapSize:{},emptyPower:{}},setup(t){const e=t,a=p(()=>{let o={name:"",power:e.emptyPower,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:"var(--color-bg)",icon:""},n=q;n["zz-empty"]=o;const l=Object.values(q).length-1,c=da().value(m=>m.power).startAngle(-Math.PI/2+e.circleGapSize).endAngle(Math.PI/2-e.circleGapSize).sort(null),u=ua().innerRadius(e.radius/6*5).outerRadius(e.radius).cornerRadius(e.cornerRadius).padAngle(0),d=be("g#pmSourceArc");return d.selectAll("*").remove(),d.selectAll("sources").data(c(Object.values(n))).enter().append("path").attr("d",u).attr("fill",m=>m.data.color).attr("stroke",(m,y)=>y==l?m.data.power>0?"var(--color-scale)":"null":m.data.color),"pmSourceArc.vue"});return Na(()=>{let o=q.pv.power+q.evuIn.power+q.batOut.power;o>g.maxPower&&(g.maxPower=o)}),(o,n)=>(i(),h("g",{id:"pmSourceArc",origin:a.value},null,8,Co))}}),Io=["origin"],Bo=V({__name:"PMUsageArc",props:{radius:{},cornerRadius:{},circleGapSize:{},emptyPower:{}},setup(t){const e=t,a=p(()=>{let o={name:"",power:e.emptyPower,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:"var(--color-bg)",icon:""};const n=[W.evuOut,W.charging].concat(Object.values(H).filter(m=>m.configured&&!m.countAsHouse).sort((m,y)=>y.power-m.power)).concat([W.batIn,W.house]).concat(o),l=n.length-1,c=da().value(m=>m.power).startAngle(Math.PI*1.5-e.circleGapSize).endAngle(Math.PI/2+e.circleGapSize).sort(null),u=ua().innerRadius(e.radius/6*5).outerRadius(e.radius).cornerRadius(e.cornerRadius),d=be("g#pmUsageArc");return d.selectAll("*").remove(),d.selectAll("consumers").data(c(n)).enter().append("path").attr("d",u).attr("fill",m=>m.data.color).attr("stroke",(m,y)=>y==l?m.data.power>0?"var(--color-scale)":"null":m.data.color),"pmUsageArc.vue"});return(o,n)=>(i(),h("g",{id:"pmUsageArc",origin:a.value},null,8,Io))}});function je(t,e=1){let a;if(t>=1e3&&e<4){switch(e){case 0:a=Math.round(t/1e3);break;case 1:a=Math.round(t/100)/10;break;case 2:a=Math.round(t/10)/100;break;case 3:a=Math.round(t)/1e3;break;default:a=Math.round(t/100)/10;break}return(a==null?void 0:a.toLocaleString(void 0,{minimumFractionDigits:e}))+" kW"}else return Math.round(t).toLocaleString(void 0)+" W"}function at(t,e=1,a=!1){let o;if(t>1e6&&(a=!0,t=t/1e3),t>=1e3&&e<4){switch(e){case 0:o=Math.round(t/1e3);break;case 1:o=(Math.round(t/100)/10).toFixed(1);break;case 2:o=(Math.round(t/10)/100).toFixed(2);break;case 3:o=(Math.round(t)/1e3).toFixed(3);break;default:o=Math.round(t/100)/10;break}return o.toLocaleString(void 0,{minimumFractionDigits:e})+(a?" MWh":" kWh")}else return Math.round(t).toLocaleString(void 0)+(a?" kWh":" Wh")}function Vo(t){const e=Math.floor(t/3600),a=(t%3600/60).toFixed(0);return e>0?e+"h "+a+" min":a+" min"}function va(t){return t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function Lo(t,e){return["Jan","Feb","März","April","Mai","Juni","Juli","Aug","Sep","Okt","Nov","Dez"][t]+" "+e}function Ao(t){return t!=999?(Math.round(t*10)/10).toLocaleString(void 0,{minimumFractionDigits:1})+"°":"-"}const bt=V({__name:"FormatWatt",props:{watt:{}},setup(t){const e=t,a=p(()=>je(e.watt,g.decimalPlaces));return(o,n)=>S(a.value)}}),Oo={key:0,id:"pmLabel"},To=["x","y","fill","text-anchor"],Do=22,ke=V({__name:"PMLabel",props:{x:{},y:{},data:{},props:{},anchor:{},labeltext:{},labelicon:{},labelcolor:{}},setup(t){const e=t,a=p(()=>e.labeltext?e.labeltext:e.props?e.props.icon+" ":e.labelicon?e.labelicon+" ":""),o=p(()=>e.labelcolor?e.labelcolor:e.props?e.props.color:""),n=p(()=>!e.data||e.data.power>0),l=p(()=>e.labeltext?"":"fas");return(c,u)=>n.value?(i(),h("g",Oo,[s("text",{x:c.x,y:c.y,fill:o.value,"text-anchor":c.anchor,"font-size":Do,class:"pmLabel"},[s("tspan",{class:z(l.value)},S(a.value),3),s("tspan",null,[c.data!==void 0?(i(),$(bt,{key:0,watt:c.data.power},null,8,["watt"])):b("",!0)])],8,To)])):b("",!0)}}),Go={class:"wb-widget p-0 m-0 shadow"},Wo={class:"d-flex justify-content-between"},zo={class:"m-4 me-0 mb-0"},Eo=s("div",{class:"p-0"},"(title goes here)",-1),jo={class:"p-4 pb-0 ps-0 m-0",style:{"text-align":"right"}},Uo={class:"px-4 pt-4 pb-2 wb-subwidget"},Fo={class:"row"},No={class:"col m-0 p-0"},Ho={class:"container-fluid m-0 p-0"},Ro={key:0},qo=s("hr",null,null,-1),Jo={class:"px-4 py-2 wb-subwidget"},Qo={class:"row"},Yo={class:"col"},Zo={class:"container-fluid m-0 p-0"},nt=V({__name:"WBWidget",props:{variableWidth:{type:Boolean},fullWidth:{type:Boolean}},setup(t){const e=t,a=p(()=>e.fullWidth?"col-12":e.variableWidth&&g.preferWideBoxes?"col-lg-6":"col-lg-4");return(o,n)=>(i(),h("div",{class:z(["p-2 m-0 d-flex",a.value])},[s("div",Go,[s("div",Wo,[s("h3",zo,[le(o.$slots,"title",{},()=>[Eo]),le(o.$slots,"subtitle")]),s("div",jo,[le(o.$slots,"buttons")])]),s("div",Uo,[s("div",Fo,[s("div",No,[s("div",Ho,[le(o.$slots,"default")])])])]),o.$slots.footer!=null?(i(),h("div",Ro,[qo,s("div",Jo,[s("div",Qo,[s("div",Yo,[s("div",Zo,[le(o.$slots,"footer")])])])])])):b("",!0)])],2))}});class Xo{constructor(){f(this,"active",!1);f(this,"etPriceList",new Map);f(this,"etProvider","");f(this,"etMaxPrice",0)}get etCurrentPriceString(){const[e]=ee.etPriceList.values();return(Math.round(e*10)/10).toFixed(1)+" ct"}}const ee=ne(new Xo),Ko={id:"powermeter",class:"p-0 m-0"},es=["viewBox"],ts=["transform"],as=["x"],Pe=500,Ie=20,ea=1,os=V({__name:"PowerMeter",setup(t){const e=Pe,a=Math.PI/40,o=[[4],[4,6],[1,4,6],[0,2,4,6],[0,2,3,5,6]],n=[{x:-85,y:e/2*1/5},{x:0,y:e/2*1/5},{x:85,y:e/2*1/5},{x:-85,y:e/2*2/5},{x:0,y:e/2*2/5},{x:85,y:e/2*2/5},{x:0,y:e/2*3/5}],l=p(()=>Pe/2-Ie),c=p(()=>{let G="",T=Object.values(q).filter(F=>F.power>0);return T.length==1&&T[0].name=="PV"?G="Aktueller Verbrauch: ":G="Bezug/Verbrauch: ",G+je(W.house.power+W.charging.power+W.devices.power+W.batIn.power,g.decimalPlaces)}),u=p(()=>{let G=q.pv.power+q.evuIn.power+q.batOut.power;return g.maxPower>G?je(g.maxPower,g.decimalPlaces):je(G,g.decimalPlaces)}),d=p(()=>Object.values(B)),m=p(()=>{let G=0;return g.showRelativeArcs&&(G=g.maxPower-(q.pv.power+q.evuIn.power+q.batOut.power)),G<0?0:G}),y=p(()=>[W.evuOut,W.charging,W.devices,W.batIn,W.house].filter(G=>G.power>0)),I=p(()=>o[y.value.length-1]);function C(G){return n[I.value[G]]}function L(G){return Math.round(d.value[G].soc)}function A(G){return G.length>12?G.slice(0,12-1)+".":G}const Q=p(()=>{const[G]=ee.etPriceList.values();return Math.round(G*10)/10});return(G,T)=>(i(),$(nt,{"full-width":!0},{title:w(()=>[U(" Aktuelle Leistung ")]),default:w(()=>[s("figure",Ko,[(i(),h("svg",{viewBox:"0 0 "+Pe+" "+r(e)},[s("g",{transform:"translate("+Pe/2+","+r(e)/2+")"},[v(Po,{radius:l.value,"corner-radius":ea,"circle-gap-size":a,"empty-power":m.value},null,8,["radius","empty-power"]),v(Bo,{"sh-device":r(H),radius:l.value,"corner-radius":ea,"circle-gap-size":a,"empty-power":m.value},null,8,["sh-device","radius","empty-power"]),v(ke,{x:0,y:-r(e)/10*2,data:r(q).pv,props:r(ge).pv,anchor:"middle",config:r(g)},null,8,["y","data","props","config"]),v(ke,{x:0,y:-r(e)/10*3,data:r(q).evuIn,props:r(ge).evuIn,anchor:"middle",config:r(g)},null,8,["y","data","props","config"]),v(ke,{x:0,y:-r(e)/10,data:r(q).batOut,props:r(ge).batOut,anchor:"middle",config:r(g)},null,8,["y","data","props","config"]),r(ee).active?(i(),$(ke,{key:0,x:0,y:-r(e)/10,data:r(q).batOut,props:r(ge).batOut,anchor:"middle",config:r(g)},null,8,["y","data","props","config"])):b("",!0),(i(!0),h(R,null,te(y.value,(F,P)=>(i(),$(ke,{key:P,x:C(P).x,y:C(P).y,data:F,labelicon:F.icon,labelcolor:F.color,anchor:"middle",config:r(g)},null,8,["x","y","data","labelicon","labelcolor","config"]))),128)),d.value.length>0&&r(Y)[d.value[0].connectedVehicle]?(i(),$(ke,{key:1,x:-Pe/2-Ie/4+10,y:-r(e)/2+Ie+5,labeltext:A(r(Y)[d.value[0].connectedVehicle].name)+": "+L(0)+"%",labelcolor:d.value[0].color,anchor:"start",config:r(g)},null,8,["x","y","labeltext","labelcolor","config"])):b("",!0),d.value.length>1&&r(Y)[d.value[1].connectedVehicle]?(i(),$(ke,{key:2,x:Pe/2+Ie/4-10,y:-r(e)/2+Ie+5,labeltext:A(r(Y)[d.value[1].connectedVehicle].name)+": "+L(1)+"%",labelcolor:d.value[1].color,anchor:"end",config:r(g)},null,8,["x","y","labeltext","labelcolor","config"])):b("",!0),r(ce).batterySoc>0?(i(),$(ke,{key:3,x:-Pe/2-Ie/4+10,y:r(e)/2-Ie+15,labeltext:"Speicher: "+r(ce).batterySoc+"%",labelcolor:r(W).batIn.color,anchor:"start",config:r(g)},null,8,["x","y","labeltext","labelcolor","config"])):b("",!0),r(ee).active?(i(),$(ke,{key:4,x:Pe/2+Ie/4-10,y:r(e)/2-Ie+15,value:Q.value,labeltext:r(ee).etCurrentPriceString,labelcolor:"var(--color-charging)",anchor:"end",config:r(g)},null,8,["x","y","value","labeltext","config"])):b("",!0),v(ke,{x:0,y:0,labeltext:c.value,labelcolor:"var(--color-fg)",anchor:"middle",config:r(g)},null,8,["labeltext","config"]),r(g).showRelativeArcs?(i(),h("text",{key:5,x:Pe/2-44,y:"2","text-anchor":"middle",fill:"var(--color-axis)","font-size":"12"}," Peak: "+S(u.value),9,as)):b("",!0)],8,ts)],8,es))])]),_:1}))}}),xe=500,Be=500,N={top:10,right:20,bottom:10,left:25},Ht=["charging","house","batIn","devices"];class ss{constructor(){f(this,"data",[]);f(this,"_graphMode","")}get graphMode(){return this._graphMode}set graphMode(e){this._graphMode=e}}const _=ne(new ss);let mt=!0,ot=!0;function ta(){mt=!1}function aa(){ot=!1}function ns(t){ot=t}function rt(t){_.data=t}const ie=ne({refreshTopicPrefix:"openWB/graph/alllivevaluesJson",updateTopic:"openWB/graph/lastlivevaluesJson",configTopic:"openWB/graph/config/#",initialized:!1,initCounter:0,graphRefreshCounter:0,rawDataPacks:[],duration:0,activate(){_.data=[],this.unsubscribeUpdates(),this.subscribeRefresh(),Ee(this.configTopic),this.initialized=!1,this.initCounter=0,this.graphRefreshCounter=0,this.rawDataPacks=[],ds(),pt.value=!0},deactivate(){this.unsubscribeRefresh(),this.unsubscribeUpdates(),Ne(this.configTopic)},subscribeRefresh(){for(let t=1;t<17;t++)Ee(this.refreshTopicPrefix+t)},unsubscribeRefresh(){for(let t=1;t<17;t++)Ne(this.refreshTopicPrefix+t)},subscribeUpdates(){Ee(this.updateTopic)},unsubscribeUpdates(){Ne(this.updateTopic)}}),se=ne({topic:"openWB/log/daily/#",date:new Date,activate(){if(_.graphMode=="day"||_.graphMode=="today"){_.graphMode=="today"&&(this.date=new Date);const t=this.date.getFullYear().toString()+(this.date.getMonth()+1).toString().padStart(2,"0")+this.date.getDate().toString().padStart(2,"0");Ee(this.topic),Ut({command:"getDailyLog",data:{day:t}}),_.data=[]}},deactivate(){Ne(this.topic)},back(){this.date=new Date(this.date.setTime(this.date.getTime()-864e5))},forward(){this.date=new Date(this.date.setTime(this.date.getTime()+864e5))},setDate(t){this.date=t},getDate(){return this.date}}),Se=ne({topic:"openWB/log/monthly/#",month:new Date().getMonth()+1,year:new Date().getFullYear(),activate(){const t=this.year.toString()+this.month.toString().padStart(2,"0");_.data=[],Ee(this.topic),Ut({command:"getMonthlyLog",data:{month:t}})},deactivate(){Ne(this.topic)},back(){this.month-=1,this.month<1&&(this.month=12,this.year-=1),this.activate()},forward(){const t=new Date;t.getFullYear()==this.year?this.month-112&&(this.month=1,this.year+=1)),this.activate()},getDate(){return new Date(this.year,this.month)}}),De=ne({topic:"openWB/log/yearly/#",month:new Date().getMonth()+1,year:new Date().getFullYear(),activate(){const t=this.year.toString();_.data=[],Ee(this.topic),Ut({command:"getYearlyLog",data:{year:t}})},deactivate(){Ne(this.topic)},back(){this.year-=1,this.activate()},forward(){this.year0&&(D.items[t].energyPv+=1e3/12*(e[t]*(e.pv-e.evuOut))/(e.pv-e.evuOut+e.evuIn+e.batOut),D.items[t].energyBat+=1e3/12*(e[t]*e.batOut)/(e.pv-e.evuOut+e.evuIn+e.batOut))}function ls(t,e){e[t]>0&&(D.items[t].energyPv+=1e3*(e[t]*(e.pv-e.evuOut))/(e.pv-e.evuOut+e.evuIn+e.batOut),D.items[t].energyBat+=1e3*(e[t]*e.batOut)/(e.pv-e.evuOut+e.evuIn+e.batOut))}const cs=["evuIn","pv","batIn","evuOut"],Ke=X(!1);function Rt(t,e){Object.entries(t).length>0?(Ke.value=!1,Object.entries(t.counter).forEach(([a,o])=>{(e.length==0||e.includes(a))&&(D.items.evuIn.energy+=o.energy_imported,D.items.evuOut.energy+=o.energy_exported)}),D.items.pv.energy=t.pv.all.energy_exported,t.bat.all&&(D.items.batIn.energy=t.bat.all.energy_imported,D.items.batOut.energy=t.bat.all.energy_exported),Object.entries(t.cp).forEach(([a,o])=>{a=="all"?D.setEnergy("charging",o.energy_imported):D.setEnergy(a,o.energy_imported)}),D.setEnergy("devices",0),Object.entries(t.sh).forEach(([a,o])=>{D.setEnergy(a,o.energy_imported);const n=a.substring(2);H[+n].countAsHouse||(D.items.devices.energy+=o.energy_imported)}),t.hc&&t.hc.all?D.setEnergy("house",t.hc.all.energy_imported):D.calculateHouseEnergy(),D.keys().map(a=>{cs.includes(a)||(D.setPvPercentage(a,Math.round((D.items[a].energyPv+D.items[a].energyBat)/D.items[a].energy*100)),Ht.includes(a)&&(W[a].energy=D.items[a].energy,W[a].energyPv=D.items[a].energyPv,W[a].energyBat=D.items[a].energyBat,W[a].pvPercentage=D.items[a].pvPercentage))}),_.graphMode=="today"&&(Object.values(B).map(a=>{const o=D.items["cp"+a.id];o&&(a.energyPv=o.energyPv,a.energyBat=o.energyBat,a.pvPercentage=o.pvPercentage)}),Object.values(H).map(a=>{const o=D.items["sh"+a.id];o&&(a.energy=o.energy,a.energyPv=o.energyPv,a.energyBat=o.energyBat,a.pvPercentage=o.pvPercentage)}))):Ke.value=!0,pt.value=!0}function ds(){D.keys().map(t=>{Ht.includes(t)&&(W[t].energy=D.items[t].energy,W[t].energyPv=0,W[t].energyBat=0,W[t].pvPercentage=0)}),Object.values(B).map(t=>{t.energyPv=0,t.energyBat=0,t.pvPercentage=0}),Object.values(H).map(t=>{t.energyPv=0,t.energyBat=0,t.pvPercentage=0})}const $e=p(()=>{const t=Oe(_.data,e=>e.date);return t[1]?Ot().domain(Array.from({length:t[1]},(e,a)=>a+1)).paddingInner(.4).range([0,xe-N.left-2]):Ot().range([0,0])});function qt(){switch(_.graphMode){case"live":_.graphMode="today",g.showRightButton=!0,he();break;case"today":_.graphMode="day",se.date=new Date,se.back(),he();break;case"day":se.back(),he();break;case"month":Se.back();break;case"year":De.back();break}}function _a(){const t=new Date;switch(_.graphMode){case"live":break;case"today":_.graphMode="live",g.showRightButton=!1,he();break;case"day":se.forward(),se.date.getDate()==t.getDate()&&se.date.getMonth()==t.getMonth()&&se.date.getFullYear()==t.getFullYear()&&(_.graphMode="today"),he();break;case"month":Se.forward();break;case"year":De.forward();break}}function ba(){switch(_.graphMode){case"live":qt();break;case"day":case"today":_.graphMode="month",he();break;case"month":_.graphMode="year",he();break}}function ya(){switch(_.graphMode){case"year":_.graphMode="month",he();break;case"month":_.graphMode="today",he();break;case"today":case"day":_.graphMode="live",he();break}}function oa(t){if(_.graphMode=="day"||_.graphMode=="today"){se.setDate(t);const e=new Date;se.date.getDate()==e.getDate()&&se.date.getMonth()==e.getMonth()&&se.date.getFullYear()==e.getFullYear()?_.graphMode="today":_.graphMode="day",he()}}const us=["origin","transform"],hs=V({__name:"PGSourceGraph",props:{width:{},height:{},margin:{}},setup(t){const e=t,a={house:"var(--color-house)",batIn:"var(--color-battery)",inverter:"var(--color-pv)",batOut:"var(--color-battery)",selfUsage:"var(--color-pv)",evuOut:"var(--color-export)",evuIn:"var(--color-evu)"};var o,n;const l=g.showAnimations?g.animationDuration:0,c=g.showAnimations?g.animationDelay:0,u=p(()=>{const x=be("g#pgSourceGraph");_.graphMode=="month"||_.graphMode=="year"?P(x):F(x),x.selectAll(".axis").remove();const k=x.append("g").attr("class","axis");return k.call(Q.value),k.selectAll(".tick").attr("font-size",12),k.selectAll(".tick line").attr("stroke",T.value).attr("stroke-width",G.value),k.select(".domain").attr("stroke","var(--color-bg)"),"pgSourceGraph.vue"}),d=p(()=>_.graphMode=="month"||_.graphMode=="year"?["evuIn","batOut","selfUsage","evuOut"]:["selfUsage","evuOut","batOut","evuIn"]),m=p(()=>Te().domain([0,_.data.length-1]).range([0,e.width])),y=p(()=>ha().keys(d.value)),I=p(()=>y.value(_.data)),C=p(()=>Te().range([e.height-10,0]).domain(_.graphMode=="year"?[0,Math.ceil(L.value[1]*10)/10]:[0,Math.ceil(L.value[1])])),L=p(()=>{let x=Oe(_.data,k=>Math.max(k.pv+k.evuIn+k.batOut,k.selfUsage+k.evuOut));return x[0]!=null&&x[1]!=null?(_.graphMode=="year"&&(x[0]=x[0]/1e3,x[1]=x[1]/1e3),x):[0,0]}),A=p(()=>_.graphMode=="month"||_.graphMode=="year"?-e.width-e.margin.right-22:-e.width),Q=p(()=>st(C.value).tickSizeInner(A.value).ticks(4).tickFormat(x=>(x==0?"":Math.round(x*10)/10).toLocaleString(void 0))),G=p(()=>g.showGrid?"0.5":"1"),T=p(()=>g.showGrid?"var(--color-grid)":"var(--color-bg)");function F(x){const k=dt().x((O,pe)=>m.value(pe)).y(C.value(0)),M=dt().x((O,pe)=>m.value(pe)).y0(O=>C.value(_.graphMode=="year"?O[0]/1e3:O[0])).y1(O=>C.value(_.graphMode=="year"?O[1]/1e3:O[1]));mt?(x.selectAll("*").remove(),o=x.selectAll(".sourceareas").data(I.value).enter().append("path").attr("fill",(O,pe)=>a[d.value[pe]]).attr("d",O=>k(O)),o.transition().duration(l).delay(c).ease(Qe).attr("d",O=>M(O)),ta()):o.data(I.value).transition().duration(0).ease(Qe).attr("d",O=>M(O))}function P(x){mt?(x.selectAll("*").remove(),n=x.selectAll(".sourcebar").data(I.value).enter().append("g").attr("fill",(k,M)=>a[d.value[M]]).selectAll("rect").data(k=>k).enter().append("rect").attr("x",(k,M)=>$e.value(_.data[M].date)??0).attr("y",()=>C.value(0)).attr("height",0).attr("width",$e.value.bandwidth()),n.transition().duration(l).delay(c).ease(Qe).attr("height",k=>_.graphMode=="year"?C.value(k[0]/1e3)-C.value(k[1]/1e3):C.value(k[0])-C.value(k[1])).attr("y",k=>_.graphMode=="year"?C.value(k[1]/1e3):C.value(k[1])),ta()):(x.selectAll("*").remove(),n=x.selectAll(".sourcebar").data(I.value).enter().append("g").attr("fill",(k,M)=>a[d.value[M]]).selectAll("rect").data(k=>k).enter().append("rect").attr("x",(k,M)=>$e.value(_.data[M].date)??0).attr("y",k=>_.graphMode=="year"?C.value(k[1]/1e3):C.value(k[1])).attr("width",$e.value.bandwidth()).attr("height",k=>_.graphMode=="year"?C.value(k[0]/1e3)-C.value(k[1]/1e3):C.value(k[0])-C.value(k[1])))}return(x,k)=>(i(),h("g",{id:"pgSourceGraph",origin:u.value,transform:"translate("+x.margin.left+","+x.margin.top+")"},null,8,us))}}),ps=["origin","transform"],gs=V({__name:"PGUsageGraph",props:{width:{},height:{},margin:{},stackOrder:{}},setup(t){const e=t,a=[["house","charging","devices","batIn"],["charging","devices","house","batIn"],["devices","charging","house","batIn"]],o={house:"var(--color-house)",charging:"var(--color-charging)",batIn:"var(--color-battery)",batOut:"var(--color-battery)",selfUsage:"var(--color-pv)",evuOut:"var(--color-export)",evuIn:"var(--color-evu)",cp0:"var(--color-cp0)",cp1:"var(--color-cp1)",cp2:"var(--color-cp2)",cp3:"var(--color-cp3)",sh1:"var(--color-sh1)",sh2:"var(--color-sh2)",sh3:"var(--color-sh3)",sh4:"var(--color-sh4)",devices:"var(--color-devices)"};var n,l;const c=g.showAnimations?g.animationDuration:0,u=g.showAnimations?g.animationDelay:0,d=p(()=>{const P=be("g#pgUsageGraph");_.graphMode=="month"||_.graphMode=="year"?F(P):T(P),P.selectAll(".axis").remove();const x=P.append("g").attr("class","axis");return x.call(G.value),x.selectAll(".tick").attr("font-size",12).attr("color","var(--color-axis)"),g.showGrid?x.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):x.selectAll(".tick line").attr("stroke","var(--color-bg)"),x.select(".domain").attr("stroke","var(--color-bg)"),"pgUsageGraph.vue"}),m=p(()=>ha().keys(L.value)),y=p(()=>m.value(_.data)),I=p(()=>Te().domain([0,_.data.length-1]).range([0,e.width])),C=p(()=>Te().range([e.height+10,2*e.height]).domain(_.graphMode=="year"?[0,Math.ceil(A.value[1]*10)/10]:[0,Math.ceil(A.value[1])])),L=p(()=>{if(_.graphMode!="today"&&_.graphMode!="day")return a[e.stackOrder];{const P=a[e.stackOrder].slice(),x=P.indexOf("charging");P.splice(x,1);const k=/cp\d+/;let M=[];return _.data.length>0&&(M=Object.keys(_.data[0]).reduce((O,pe)=>(pe.match(k)&&O.push(pe),O),[])),M.map((O,pe)=>{P.splice(x+pe,0,O),o[O]="var(--color-cp"+pe+")"}),P}}),A=p(()=>{let P=Oe(_.data,x=>x.house+x.charging+x.batIn+x.devices);return P[0]!=null&&P[1]!=null?(_.graphMode=="year"&&(P[0]=P[0]/1e3,P[1]=P[1]/1e3),P):[0,0]}),Q=p(()=>_.graphMode=="month"||_.graphMode=="year"?-e.width-e.margin.right-22:-e.width),G=p(()=>st(C.value).tickSizeInner(Q.value).ticks(4).tickFormat(P=>(P==0?"":Math.round(P*10)/10).toLocaleString(void 0)));function T(P){const x=dt().x((M,O)=>I.value(O)).y(C.value(0)),k=dt().x((M,O)=>I.value(O)).y0(M=>C.value(M[0])).y1(M=>C.value(M[1]));g.showAnimations?ot?(P.selectAll("*").remove(),n=P.selectAll(".usageareas").data(y.value).enter().append("path").attr("d",M=>x(M)).attr("fill",(M,O)=>o[L.value[O]]),n.transition().duration(300).delay(100).ease(Qe).attr("d",M=>k(M)),aa()):(P.selectAll("*").remove(),P.selectAll(".usageareas").data(y.value).enter().append("path").attr("d",M=>k(M)).attr("fill",(M,O)=>o[L.value[O]])):(P.selectAll("*").remove(),P.selectAll(".usageareas").data(y.value).enter().append("path").attr("d",M=>k(M)).attr("fill",(M,O)=>o[L.value[O]]))}function F(P){ot?(P.selectAll("*").remove(),l=P.selectAll(".usagebar").data(y.value).enter().append("g").attr("fill",(x,k)=>o[a[e.stackOrder][k]]).selectAll("rect").data(x=>x).enter().append("rect").attr("x",(x,k)=>$e.value(_.data[k].date)??0).attr("y",()=>C.value(0)).attr("height",0).attr("width",$e.value.bandwidth()),l.transition().duration(c).delay(u).ease(Qe).attr("y",x=>_.graphMode=="year"?C.value(x[0]/1e3):C.value(x[0])).attr("height",x=>_.graphMode=="year"?C.value(x[1]/1e3)-C.value(x[0]/1e3):C.value(x[1])-C.value(x[0])),aa()):(P.selectAll("*").remove(),l=P.selectAll(".usagebar").data(y.value).enter().append("g").attr("fill",(x,k)=>o[a[e.stackOrder][k]]).selectAll("rect").data(x=>x).enter().append("rect").attr("x",(x,k)=>$e.value(_.data[k].date)??0).attr("y",x=>_.graphMode=="year"?C.value(x[0]/1e3):C.value(x[0])).attr("height",x=>_.graphMode=="year"?C.value(x[1]/1e3)-C.value(x[0]/1e3):C.value(x[1])-C.value(x[0])).attr("width",$e.value.bandwidth()))}return(P,x)=>(i(),h("g",{id:"pgUsageGraph",origin:d.value,transform:"translate("+P.margin.left+","+P.margin.top+")"},null,8,ps))}}),ms=["transform"],fs=["origin","transform"],vs=["origin","transform"],_s={key:0},bs=["width","height"],ys={key:1},ws=["y","width","height"],kt=12,ks=V({__name:"PGXAxis",props:{width:{},height:{},margin:{}},setup(t){const e=t,a=p(()=>Ye(u.value).ticks(4).tickSizeInner(c.value).tickFormat(tt("%H:%M"))),o=p(()=>Ha(u.value).ticks(4).tickSizeInner(c.value+3).tickFormat(tt(""))),n=p(()=>Ye($e.value).ticks(4).tickSizeInner(c.value).tickFormat(y=>y.toString())),l=p(()=>Ye($e.value).ticks(4).tickSizeInner(c.value).tickFormat(()=>"")),c=p(()=>_.graphMode!=="month"&&_.graphMode!=="year"?g.showGrid?-(e.height/2-7):-10:0),u=p(()=>{let y=Oe(_.data,I=>I.date);return y[0]&&y[1]?Re().domain(y).range([0,e.width]):Re().range([0,0])}),d=p(()=>{let y=be("g#PGXAxis");return y.selectAll("*").remove(),_.graphMode=="month"||_.graphMode=="year"?y.call(n.value):y.call(a.value),y.selectAll(".tick > text").attr("fill",(I,C)=>C>0||_.graphMode=="month"||_.graphMode=="year"?"var(--color-axis)":"var(--color-bg)").attr("font-size",kt),g.showGrid?y.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):y.selectAll(".tick line").attr("stroke","var(--color-bg)"),y.select(".domain").attr("stroke","var(--color-bg)"),y.append("text").attr("x",-e.margin.left).attr("y",12).attr("fill","var(--color-axis)").attr("font-size",kt).text(_.graphMode=="year"?"MW":"kW").attr("text-anchor","start"),"PGXAxis.vue"}),m=p(()=>{let y=be("g#PGXAxis2");return y.selectAll("*").remove(),_.graphMode=="month"||_.graphMode=="year"?y.call(l.value):y.call(o.value),y.selectAll(".tick > text").attr("fill",(I,C)=>C>0||_.graphMode=="month"||_.graphMode=="year"?"var(--color-axis)":"var(--color-bg)").attr("font-size",kt),g.showGrid?(y.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"),y.select(".domain").attr("stroke","var(--color-bg)")):y.selectAll(".tick line").attr("stroke","var(--color-bg)"),y.select(".domain").attr("stroke","var(--color-bg)"),"PGXAxis2.vue"});return(y,I)=>(i(),h("g",{transform:"translate("+y.margin.left+","+y.margin.top+")"},[s("g",{id:"PGXAxis",class:"axis",origin:d.value,transform:"translate(0,"+(y.height/2-6)+")"},null,8,fs),s("g",{id:"PGXAxis2",class:"axis",origin:m.value,transform:"translate(0,"+(y.height/2+10)+")"},null,8,vs),r(g).showGrid?(i(),h("g",_s,[s("rect",{x:"0",y:"0",width:y.width,height:y.height/2-10,fill:"none",stroke:"var(--color-grid)","stroke-width":"0.5"},null,8,bs)])):b("",!0),r(g).showGrid?(i(),h("g",ys,[s("rect",{x:"0",y:y.height/2+10,width:y.width,height:y.height/2-10,fill:"none",stroke:"var(--color-grid)","stroke-width":"0.5"},null,8,ws)])):b("",!0)],8,ms))}}),xs=["d"],Ss=["d","stroke"],$s=["x","y","text-anchor"],xt=V({__name:"PgSoc",props:{width:{},height:{},margin:{},order:{}},setup(t){const e=t,a=p(()=>{let I=Oe(_.data,C=>C.date);return I[0]&&I[1]?Re().domain(I).range([0,e.width]):Re().range([0,0])}),o=p(()=>Te().range([e.height-10,0]).domain([0,100])),n=p(()=>{let C=Tt().x(L=>a.value(L.date)).y(L=>o.value(e.order==2?L.batSoc:L["soc"+d.value.connectedVehicle])??o.value(0))(_.data);return C||""}),l=p(()=>e.order==2?"Speicher":d.value.vehicleName),c=p(()=>{switch(e.order){case 0:return"var(--color-cp1)";case 1:return"var(--color-cp2)";case 2:return"var(--color-battery)";default:return"red"}}),u=p(()=>{switch(e.order){case 0:return e.width-3;case 1:return 3;case 2:return e.width/2;default:return 0}}),d=p(()=>{const I=e.order==2?0:e.order;return Object.values(B)[I]}),m=p(()=>{if(_.data.length>0){let I;switch(e.order){case 0:return I=_.data.length-1,o.value(_.data[I]["soc"+d.value.connectedVehicle]+2);case 1:return I=0,o.value(_.data[I]["soc"+d.value.connectedVehicle]+2);case 2:return I=Math.round(_.data.length/2),o.value(_.data[I].batSoc+2);default:return 0}}else return 0}),y=p(()=>{switch(e.order){case 0:return"end";case 1:return"start";case 2:return"middle";default:return"middle"}});return(I,C)=>(i(),h(R,null,[s("path",{class:"soc-baseline",d:n.value,stroke:"var(--color-bg)","stroke-width":"1",fill:"none"},null,8,xs),s("path",{class:"soc-dashes",d:n.value,stroke:c.value,"stroke-width":"1",style:{strokeDasharray:"3,3"},fill:"none"},null,8,Ss),s("text",{class:"cpname",x:u.value,y:m.value,style:J({fill:c.value,fontSize:10}),"text-anchor":y.value},S(l.value),13,$s)],64))}}),Ms=["transform"],Cs=V({__name:"PgSocAxis",props:{width:{},height:{},margin:{}},setup(t){const e=t,a=p(()=>Te().range([e.height-10,0]).domain([0,100])),o=p(()=>Ra(a.value).ticks(5).tickFormat(l=>l.toString()+"%"));function n(){let l=be("g#PGSocAxis");l.call(o.value),l.selectAll(".tick").attr("font-size",12),l.selectAll(".tick line").attr("stroke","var(--color-bg)"),l.select(".domain").attr("stroke","var(--color-bg)")}return Ce(()=>{n()}),(l,c)=>(i(),h("g",{id:"PGSocAxis",class:"axis",transform:"translate("+(l.width-20)+",0)"},null,8,Ms))}}),Ps=t=>(ae("data-v-7b8949f3"),t=t(),oe(),t),Is={class:"d-flex align-self-top justify-content-center align-items-center"},Bs={class:"input-group input-group-xs"},Vs={key:0,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},Ls={class:"dropdown-menu"},As={class:"table optiontable"},Os=["onClick"],Ts={key:1,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},Ds={class:"dropdown-menu"},Gs={class:"table optiontable"},Ws=["onClick"],zs={key:2,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},Es={class:"dropdown-menu"},js={class:"table optiontable"},Us=["onClick"],Fs=Ps(()=>s("span",{class:"fa-solid fa-circle-check"},null,-1)),Ns=[Fs],Hs=V({__name:"DateInput",props:{modelValue:{type:Date,required:!0},mode:{type:String,default:"day"}},emits:["update:modelValue"],setup(t,{emit:e}){const a=t,o=new Date().getFullYear();let n=Array.from({length:10},(C,L)=>o-L);const l=X(!0),c=[[0,1,2,3],[4,5,6,7],[8,9,10,11]],u=X(a.modelValue.getDate()),d=X(a.modelValue.getMonth()),m=X(a.modelValue.getFullYear()),y=p(()=>{const L=new Date(m.value,d.value,1).getDay();let A=0;switch(d.value){case 1:case 3:case 5:case 7:case 8:case 10:case 12:A=31;break;case 4:case 6:case 9:case 11:A=30;break;case 2:Math.trunc(m.value/4)*4==m.value&&(A=29)}let Q=[],G=[0,0,0,0,0,0,0],T=L;for(let F=0;F(i(),h("span",Is,[s("div",Bs,[a.mode=="day"||a.mode=="today"?(i(),h("button",Vs,S(u.value),1)):b("",!0),s("div",Ls,[s("table",As,[(i(!0),h(R,null,te(y.value,(A,Q)=>(i(),h("tr",{key:Q,class:""},[(i(!0),h(R,null,te(A,(G,T)=>(i(),h("td",{key:T},[G!=0?(i(),h("span",{key:0,type:"button",class:"btn optionbutton",onClick:F=>u.value=G},S(G),9,Os)):b("",!0)]))),128))]))),128))])]),a.mode!="year"&&a.mode!="live"?(i(),h("button",Ts,S(d.value+1),1)):b("",!0),s("div",Ds,[s("table",Gs,[(i(),h(R,null,te(c,(A,Q)=>s("tr",{key:Q,class:""},[(i(!0),h(R,null,te(A,(G,T)=>(i(),h("td",{key:T,class:"p-0 m-0"},[s("span",{type:"button",class:"btn btn-sm optionbutton",onClick:F=>d.value=G},S(G+1),9,Ws)]))),128))])),64))])]),a.mode!="live"?(i(),h("button",zs,S(m.value),1)):b("",!0),s("div",Es,[s("table",js,[(i(!0),h(R,null,te(r(n),(A,Q)=>(i(),h("tr",{key:Q,class:""},[s("td",null,[s("span",{type:"button",class:"btn optionbutton",onClick:G=>m.value=A},S(A),9,Us)])]))),128))])]),a.mode!="live"?(i(),h("button",{key:3,class:"button-outline-secondary",type:"button",onClick:I},Ns)):b("",!0)])]))}});const E=(t,e)=>{const a=t.__vccOpts||t;for(const[o,n]of e)a[o]=n;return a},Rs=E(Hs,[["__scopeId","data-v-7b8949f3"]]),qs={class:"btn-group m-0",role:"group","aria-label":"radiobar"},Js=["id","value"],Qs=V({__name:"RadioBarInput",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const a=t,o=p({get(){return a.modelValue},set(c){e("update:modelValue",c)}});function n(c){let u=a.options[c].color?a.options[c].color:"var(--color-fg)";return a.options[c].active?{color:"var(--color-bg)",background:u}:{color:u}}function l(c){let u=c.target;for(;u&&!u.value&&u.parentElement;)u=u.parentElement;u.value&&(o.value=u.value)}return(c,u)=>(i(),h("div",null,[s("div",qs,[(i(!0),h(R,null,te(c.options,(d,m)=>(i(),h("button",{id:"radio-"+d.value,key:m,class:z(["btn btn-outline-secondary btn-sm radiobutton mx-0 mb-0 px-2",d.value==o.value?"active":""]),value:d.value,style:J(n(m)),onClick:l},[s("span",{style:J(n(m))},[d.icon?(i(),h("i",{key:0,class:z(["fa-solid",d.icon])},null,2)):b("",!0),U(" "+S(d.text),1)],4)],14,Js))),128))])]))}});const wa=E(Qs,[["__scopeId","data-v-82ab6829"]]),yt=t=>(ae("data-v-a73ca9f4"),t=t(),oe(),t),Ys=yt(()=>s("i",{class:"fa-solid fa-xl fa-chevron-circle-up"},null,-1)),Zs=[Ys],Xs=yt(()=>s("span",{class:"fa-solid fa-xl fa-chevron-circle-left arrowButton"},null,-1)),Ks=[Xs],en=yt(()=>s("span",{class:"fa-solid fa-xl fa-gear"},null,-1)),tn=[en],an=yt(()=>s("span",{class:"fa-solid fa-xl fa-circle-check"},null,-1)),on=[an],sn=V({__name:"PgSelector",props:{widgetid:{},showLeftButton:{type:Boolean},showRightButton:{type:Boolean},ignoreLive:{type:Boolean}},emits:["shiftLeft","shiftRight","shiftUp","shiftDown"],setup(t){const e=t,a=X(0),o=p(()=>{switch(_.graphMode){case"live":return e.ignoreLive?"heute":`${ie.duration} min`;case"today":return"heute";case"day":return se.date.getDate()+"."+(se.date.getMonth()+1)+".";case"month":return Lo(Se.month-1,Se.year);case"year":return De.year.toString();default:return"???"}}),n=["live","today","day","month","year"],l=["Live","Heute","Tag","Monat","Jahr"],c=p({get(){return _.graphMode},set(F){switch(F){case"day":I();break;case"today":C();break;case"live":y();break;case"month":L();break;case"year":A()}}}),u=p(()=>{switch(_.graphMode){case"live":case"today":return se.getDate();case"month":return Se.getDate();default:return se.getDate()}});function d(F){oa(F)}function m(){a.value+=1,a.value>2&&(a.value=0)}function y(){_.graphMode!="live"&&(_.graphMode="live",he())}function I(){_.graphMode!="day"&&_.graphMode!="today"&&(_.graphMode="day",he())}function C(){_.graphMode!="today"&&(_.graphMode="today",oa(new Date),he())}function L(){_.graphMode!="month"&&(_.graphMode="month",he())}function A(){_.graphMode!="year"&&(_.graphMode="year",he())}const Q=p(()=>a.value>0?{border:"1px solid var(--color-frame)"}:""),G=p(()=>a.value==1?"justify-content-between":"justify-content-end"),T=p(()=>a.value==1?"justify-content-between":"justify-content-center");return(F,P)=>(i(),h("div",{class:"d-flex flex-column justify-content-center pgselector rounded",style:J(Q.value)},[a.value==2?(i(),$(wa,{key:0,id:"pgm2",modelValue:c.value,"onUpdate:modelValue":P[0]||(P[0]=x=>c.value=x),class:"m-2",options:n.map((x,k)=>({text:l[k],value:x,color:"var(--color-menu)",active:x==r(_).graphMode}))},null,8,["modelValue","options"])):b("",!0),a.value==1?(i(),h("span",{key:1,type:"button",class:z(["arrowButton d-flex align-self-center mb-3 mt-3",{disabled:!e.showLeftButton}]),onClick:P[1]||(P[1]=x=>F.$emit("shiftUp"))},Zs,2)):b("",!0),s("div",{class:z(["d-flex align-items-center",T.value])},[a.value==1?(i(),h("span",{key:0,type:"button",class:z(["p-1",{disabled:!e.showLeftButton}]),onClick:P[2]||(P[2]=x=>F.$emit("shiftLeft"))},Ks,2)):b("",!0),a.value<2?(i(),h("span",{key:1,type:"button",class:"btn-outline-secondary p-2 px-3 badge rounded-pill datebadge",onClick:m},S(o.value),1)):b("",!0),a.value==2?(i(),$(Rs,{key:2,"model-value":u.value,mode:r(_).graphMode,"onUpdate:modelValue":d},null,8,["model-value","mode"])):b("",!0),a.value==1?(i(),h("span",{key:3,id:"graphRightButton",type:"button",class:z(["arrowButton fa-solid fa-xl fa-chevron-circle-right p-1",{disabled:!e.showRightButton}]),onClick:P[3]||(P[3]=x=>F.$emit("shiftRight"))},null,2)):b("",!0)],2),s("div",{class:z(["d-flex align-items-center",G.value])},[a.value==1?(i(),h("span",{key:0,type:"button",class:"p-1",onClick:m},tn)):b("",!0),a.value==1?(i(),h("span",{key:1,id:"graphLeftButton",type:"button",class:z(["arrowButton fa-solid fa-xl fa-chevron-circle-down p-1",{disabled:!e.showLeftButton}]),onClick:P[4]||(P[4]=x=>F.$emit("shiftDown"))},null,2)):b("",!0),a.value>0?(i(),h("span",{key:2,type:"button",class:"p-1",onClick:P[5]||(P[5]=x=>a.value=0)},on)):b("",!0)],2)],4))}});const ka=E(sn,[["__scopeId","data-v-a73ca9f4"]]),Jt=t=>(ae("data-v-3a8117ca"),t=t(),oe(),t),nn={class:"d-flex justify-content-end"},rn=Jt(()=>s("span",{class:"fa-solid fa-lg ps-1 fa-magnifying-glass"},null,-1)),ln=[rn],cn={key:0,class:"d-flex justify-content-center waitsign rounded"},dn=Jt(()=>s("span",{class:"fa-solid fa-xl fa-spinner fa-spin"},null,-1)),un=[dn],hn=["viewBox"],pn=["transform"],gn={id:"button"},mn=["x","y"],fn=Jt(()=>s("tspan",{fill:"var(--color-menu)",class:"fas fa-lg"},S(""),-1)),vn=[fn],_n=2,bn="Leistung / Ladestand ",yn=V({__name:"PowerGraph",setup(t){function e(){let o=g.usageStackOrder+1;o>_n&&(o=0),g.usageStackOrder=o,ns(!0)}function a(){g.zoomGraph=!g.zoomGraph}return(o,n)=>(i(),$(nt,{"full-width":!0},{title:w(()=>[U(S(bn))]),buttons:w(()=>[s("div",nn,[v(ka,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!1,onShiftLeft:r(qt),onShiftRight:r(_a),onShiftUp:r(ba),onShiftDown:r(ya)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"]),r(Ge)?(i(),h("span",{key:0,type:"button",class:"ms-1 p-0 pt-1",onClick:a},ln)):b("",!0)])]),default:w(()=>[r(_).data.length==0?(i(),h("div",cn,un)):b("",!0),qe(s("figure",{id:"powergraph",class:"p-0 m-0",onClick:e},[(i(),h("svg",{viewBox:"0 0 "+r(xe)+" "+r(Be)},[v(hs,{width:r(xe)-r(N).left-2*r(N).right,height:(r(Be)-r(N).top-r(N).bottom)/2,margin:r(N)},null,8,["width","height","margin"]),v(gs,{width:r(xe)-r(N).left-2*r(N).right,height:(r(Be)-r(N).top-r(N).bottom)/2,margin:r(N),"stack-order":r(g).usageStackOrder},null,8,["width","height","margin","stack-order"]),v(ks,{width:r(xe)-r(N).left-2*r(N).right,height:r(Be)-r(N).top-r(N).bottom,margin:r(N),"graph-data":r(_)},null,8,["width","height","margin","graph-data"]),s("g",{transform:"translate("+r(N).left+","+r(N).top+")"},[(r(_).graphMode=="day"||r(_).graphMode=="today"||r(_).graphMode=="live")&&Object.values(r(B)).length>0?(i(),$(xt,{key:0,width:r(xe)-r(N).left-2*r(N).right,height:(r(Be)-r(N).top-r(N).bottom)/2,margin:r(N),order:0},null,8,["width","height","margin"])):b("",!0),(r(_).graphMode=="day"||r(_).graphMode=="today"||r(_).graphMode=="live")&&Object.values(r(B)).length>1?(i(),$(xt,{key:1,width:r(xe)-r(N).left-2*r(N).right,height:(r(Be)-r(N).top-r(N).bottom)/2,margin:r(N),order:1},null,8,["width","height","margin"])):b("",!0),(r(_).graphMode=="day"||r(_).graphMode=="today")&&r(ce).isBatteryConfigured?(i(),$(xt,{key:2,width:r(xe)-r(N).left-2*r(N).right,height:(r(Be)-r(N).top-r(N).bottom)/2,margin:r(N),order:2},null,8,["width","height","margin"])):b("",!0),r(_).graphMode=="day"||r(_).graphMode=="today"?(i(),$(Cs,{key:3,width:r(xe)-r(N).left-r(N).right,height:(r(Be)-r(N).top-r(N).bottom)/2,margin:r(N)},null,8,["width","height","margin"])):b("",!0)],8,pn),s("g",gn,[s("text",{x:r(xe),y:r(Be)-10,color:"var(--color-menu)","text-anchor":"end"},vn,8,mn)])],8,hn))],512),[[qa,r(_).data.length>0]])]),_:1}))}});const wn=E(yn,[["__scopeId","data-v-3a8117ca"]]),kn=["id"],xn=["x","width","height","fill"],Sn=["x","width","height"],$n=["x","y","width","height"],Mn=V({__name:"EmBar",props:{item:{},xScale:{},yScale:{},margin:{},height:{},barcount:{},autarchy:{},autText:{}},setup(t){const e=t,a=p(()=>e.height-e.yScale(e.item.energy)-e.margin.top-e.margin.bottom),o=p(()=>e.item.energyPv>0?e.height-e.yScale(e.item.energyPv)-e.margin.top-e.margin.bottom:0),n=p(()=>e.item.energyPv>0?e.height-e.yScale(e.item.energyBat)-e.margin.top-e.margin.bottom:0);return(l,c)=>(i(),h("g",{id:"bar-"+e.item.name,transform:"scale(1,-1) translate (0,-445)"},[s("rect",{class:"bar",x:e.xScale(l.item.name),y:"0",width:e.xScale.bandwidth(),height:a.value,fill:l.item.color},null,8,xn),s("rect",{class:"bar",x:e.xScale(l.item.name)+e.xScale.bandwidth()/6,y:"0",width:e.xScale.bandwidth()*2/3,height:o.value,fill:"var(--color-pv)","fill-opacity":"66%"},null,8,Sn),s("rect",{class:"bar",x:e.xScale(l.item.name)+e.xScale.bandwidth()/6,y:o.value,width:e.xScale.bandwidth()*2/3,height:n.value,fill:"var(--color-battery)","fill-opacity":"66%"},null,8,$n)],8,kn))}}),Cn={id:"emBargraph"},Pn=s("animateTransform",{"attribute-name":"transform",type:"scale",from:"1 0",to:"1 1",begin:"0s",dur:"2s"},null,-1),In=V({__name:"EMBarGraph",props:{plotdata:{},xScale:{},yScale:{},margin:{},height:{}},setup(t){const e=t;function a(n){if(n.name=="PV"){const l=_.graphMode=="live"||_.graphMode=="day"?q:D.items,u=(_.graphMode=="live"||_.graphMode=="day"?W:D.items).evuOut.energy,d=l.pv.energy;return Math.round((d-u)/d*100)}else if(n.name=="Netz"){const l=_.graphMode=="live"||_.graphMode=="day"?q:D.items,c=_.graphMode=="live"||_.graphMode=="day"?W:D.items,u=c.evuOut.energy,d=l.evuIn.energy,m=l.pv.energy,y=l.batOut.energy,I=c.batIn.energy;return Math.round((m+y-u-I)/(m+y+d-u-I)*100)}else return n.pvPercentage}function o(n){return n.name=="PV"?"Eigen":"Aut"}return(n,l)=>(i(),h("g",Cn,[(i(!0),h(R,null,te(e.plotdata,(c,u)=>(i(),h("g",{key:u},[v(Mn,{item:c,"x-scale":e.xScale,"y-scale":e.yScale,margin:e.margin,height:e.height,barcount:e.plotdata.length,"aut-text":o(c),autarchy:a(c)},null,8,["item","x-scale","y-scale","margin","height","barcount","aut-text","autarchy"])]))),128)),Pn]))}}),Bn=["origin"],Vn=V({__name:"EMYAxis",props:{yScale:{type:[Function,Object]},width:{},fontsize:{}},setup(t){const e=t,a=p(()=>st(e.yScale).tickFormat(n=>n>0?(n/1e3).toString():"").ticks(6).tickSizeInner(-e.width)),o=p(()=>{const n=be("g#emYAxis");return n.attr("class","axis").call(a.value),n.append("text").attr("y",6).attr("dy","0.71em").attr("text-anchor","end").text("energy"),n.selectAll(".tick").attr("font-size",e.fontsize),g.showGrid?n.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):n.selectAll(".tick line").attr("stroke","var(--color-bg)"),n.select(".domain").attr("stroke","var(--color-bg)"),"emYAxis.vue"});return(n,l)=>(i(),h("g",{id:"emYAxis",class:"axis",origin:o.value},null,8,Bn))}}),Ln=["id"],An=["x","y","font-size"],On=["x","y","font-size","fill"],Tn=["x","y","font-size","fill"],Dn=V({__name:"EmLabel",props:{item:{},xScale:{},yScale:{},margin:{},height:{},barcount:{},autarchy:{},autText:{}},setup(t){const e=t,a=p(()=>e.autarchy?e.yScale(e.item.energy)-25:e.yScale(e.item.energy)-10),o=p(()=>{let d=16,m=e.barcount;return m<=5?d=16:m==6?d=14:m>6&&m<=8?d=13:m==9?d=11:m==10?d=10:d=9,d}),n=p(()=>{let d=12,m=e.barcount;return m<=5?d=12:m==6?d=11:m>6&&m<=8||m==9?d=8:m==10?d=7:d=6,d});function l(d,m){return m.length>n.value?m.substring(0,n.value)+".":m}function c(){return e.autarchy?e.autText+": "+e.autarchy.toLocaleString(void 0)+" %":""}function u(){return"var(--color-pv)"}return(d,m)=>(i(),h("g",{id:"barlabel-"+e.item.name},[s("text",{x:e.xScale(d.item.name)+e.xScale.bandwidth()/2,y:a.value,"font-size":o.value,"text-anchor":"middle",fill:"var(--color-menu)"},S(r(at)(d.item.energy,r(g).decimalPlaces,!1)),9,An),s("text",{x:e.xScale(d.item.name)+e.xScale.bandwidth()/2,y:e.yScale(d.item.energy)-10,"font-size":o.value-2,"text-anchor":"middle",fill:u()},S(c()),9,On),s("text",{x:e.xScale(d.item.name)+e.xScale.bandwidth()/2,y:e.height-e.margin.bottom-5,"font-size":o.value,"text-anchor":"middle",fill:d.item.color,class:z(d.item.icon.length<=2?"fas":"")},S(l(d.item.name,d.item.icon)),11,Tn)],8,Ln))}}),Gn={id:"emBarLabels"},Wn=V({__name:"EMLabels",props:{plotdata:{},xScale:{},yScale:{},height:{},margin:{}},setup(t){const e=t;function a(n){if(n.name=="PV"){const l=_.graphMode=="live"||_.graphMode=="day"?q:D.items,u=(_.graphMode=="live"||_.graphMode=="day"?W:D.items).evuOut.energy,d=l.pv.energy;return Math.round((d-u)/d*100)}else if(n.name=="Netz"){const l=_.graphMode=="live"||_.graphMode=="day"?q:D.items,c=_.graphMode=="live"||_.graphMode=="day"?W:D.items,u=c.evuOut.energy,d=l.evuIn.energy,m=l.pv.energy,y=l.batOut.energy,I=c.batIn.energy;return m+y-u-I>0?Math.round((m+y-u-I)/(m+y+d-u-I)*100):0}else return n.pvPercentage}function o(n){return n.name=="PV"?"Eigen":"Aut"}return(n,l)=>(i(),h("g",Gn,[(i(!0),h(R,null,te(e.plotdata,(c,u)=>(i(),h("g",{key:u},[v(Dn,{item:c,"x-scale":e.xScale,"y-scale":e.yScale,margin:e.margin,height:e.height,barcount:e.plotdata.length,"aut-text":o(c),autarchy:a(c)},null,8,["item","x-scale","y-scale","margin","height","barcount","aut-text","autarchy"])]))),128))]))}}),zn={id:"energymeter",class:"p-0 m-0"},En={viewBox:"0 0 500 500"},jn=["transform"],Un=["x"],Fn={key:0},sa=500,St=500,na=12,Nn="Energie",Hn=V({__name:"EnergyMeter",setup(t){const e={top:25,bottom:30,left:25,right:0},a=p(()=>{let c=Object.values(q),u=l.value,d=D.values(),m=[];switch(g.debug&&(console.debug("----------------------- source summary -----------------"),console.debug(q),console.debug("----------------------- usage details ------------------"),console.debug(l.value),console.debug("----------------------- historic summary ---------------"),console.debug(D),console.debug("--------------------------------------------------------")),pt.value==!0&&(pt.value=!1),_.graphMode){default:case"live":case"today":m=c.concat(u).filter(y=>y.energy>0);break;case"day":case"month":case"year":d.length==0?Ke.value=!0:(Ke.value=!1,m=d.filter(y=>y.energy>0))}return m}),o=p(()=>Ot().range([0,sa-e.left-e.right]).domain(a.value.map(c=>c.name)).padding(.4)),n=p(()=>Te().range([St-e.bottom-e.top,15]).domain([0,Ja(a.value,c=>c.energy)])),l=p(()=>{const c=Object.values(B).length,u=Object.values(H).filter(d=>d.configured).length;return[W.evuOut,W.devices,W.charging].concat(c>1?Object.values(B).map(d=>d.toPowerItem()):[]).concat(u>1?Object.values(H).filter(d=>d.configured&&d.showInGraph):[]).concat([W.batIn,W.house])});return(c,u)=>(i(),$(nt,{"full-width":!0},{title:w(()=>[U(S(Nn))]),buttons:w(()=>[v(ka,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!0,onShiftLeft:r(qt),onShiftRight:r(_a),onShiftUp:r(ba),onShiftDown:r(ya)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"])]),default:w(()=>[s("figure",zn,[(i(),h("svg",En,[s("g",{transform:"translate("+e.left+","+e.top+")"},[v(In,{plotdata:a.value,"x-scale":o.value,"y-scale":n.value,height:St,margin:e},null,8,["plotdata","x-scale","y-scale"]),v(Vn,{"y-scale":n.value,width:sa,fontsize:na,config:r(g)},null,8,["y-scale","config"]),s("text",{x:-e.left,y:"-15",fill:"var(--color-axis)","font-size":na},S(r(_).graphMode=="year"?"MWh":"kWh"),9,Un),v(Wn,{plotdata:a.value,"x-scale":o.value,"y-scale":n.value,height:St,margin:e,config:r(g)},null,8,["plotdata","x-scale","y-scale","config"])],8,jn)]))]),r(Ke)?(i(),h("p",Fn,"No data")):b("",!0)]),_:1}))}}),Rn={class:"d-flex flex-column align-items-center justify-content-start infoitem"},qn=V({__name:"InfoItem",props:{heading:{},small:{type:Boolean}},setup(t){const e=t,a=p(()=>e.small?{"font-size":"var(--font-small)"}:{"font-size":"var(--font-small)"}),o=p(()=>e.small?{"font-size":"var(--font-small)"}:{"font-size":"var(--font-normal)"}),n=p(()=>e.small?"mt-0":"mt-1");return(l,c)=>(i(),h("span",Rn,[s("span",{class:z(["d-flex heading",n.value]),style:J(a.value)},S(e.heading),7),s("span",{class:"d-flex my-0 me-0 align-items-center content",style:J(o.value)},[le(l.$slots,"default",{},void 0,!0)],4)]))}});const Z=E(qn,[["__scopeId","data-v-f6af00e8"]]),Jn={class:"d-flex justify-content-between align-items-center titlerow"},Qn={class:"buttonarea grid-col-12",style:{"text-align":"right"}},Yn={class:"contentrow grid-col-12"},Zn=V({__name:"WbSubwidget",props:{titlecolor:{},fullwidth:{type:Boolean},small:{type:Boolean}},setup(t){const e=t,a=p(()=>{let n={"font-weight":"bold",color:"var(--color-fg)","font-size":"var(--font-normal)"};return e.titlecolor&&(n.color=e.titlecolor),e.small&&(n["font-size"]="var(--font-verysmall)"),n}),o=p(()=>e.fullwidth?"grid-col-12":"grid-col-4");return(n,l)=>(i(),h("div",{class:z(["wb-subwidget px-3 pt-2 my-0",o.value])},[s("div",Jn,[s("div",{class:"d-flex widgetname p-0 m-0",style:J(a.value)},[le(n.$slots,"title",{},void 0,!0)],4),s("div",Qn,[le(n.$slots,"buttons",{},void 0,!0)])]),s("div",Yn,[le(n.$slots,"default",{},void 0,!0)])],2))}});const it=E(Zn,[["__scopeId","data-v-971e553f"]]),Xn=t=>(ae("data-v-b935eb33"),t=t(),oe(),t),Kn={class:"grid-col-12 mt-2 mb-0 px-0 py-0 configitem"},er={class:"titlecolumn m-0 p-0 d-flex align-items-center"},tr=Xn(()=>s("i",{class:"me-1 fa-solid fa-sm fa-circle-info"},null,-1)),ar={class:"ms-1 mb-2 p-0 pt-2 d-flex justify-content-stretch align-items-center"},or={class:"justify-content-stretch d-flex"},sr=V({__name:"ConfigItem",props:{title:{},infotext:{},icon:{},fullwidth:{type:Boolean}},setup(t){const e=t,a=X(!1);function o(){a.value=!a.value}const n=p(()=>{let l={color:"var(--color-charging)"};return a.value&&(l.color="var(--color-battery)"),l});return(l,c)=>(i(),$(it,{fullwidth:!!l.fullwidth},{default:w(()=>[s("div",Kn,[s("div",er,[s("span",{class:"d-flex align-items-baseline m-0 p-0",onClick:o},[e.icon?(i(),h("i",{key:0,class:z(["fa-solid fa-sm m-0 p-0 me-2 item-icon",e.icon])},null,2)):b("",!0),U(" "+S(l.title),1)]),s("span",null,[e.infotext?(i(),h("i",{key:0,class:"fa-solid fa-sm fa-circle-question ms-4 me-2",style:J(n.value),onClick:o},null,4)):b("",!0)])]),a.value?(i(),h("p",{key:0,class:"infotext shadow m-0 ps-2 mb-1 p-1",onClick:o},[tr,U(" "+S(l.infotext),1)])):b("",!0),s("div",ar,[s("span",or,[le(l.$slots,"default",{},void 0,!0)])])])]),_:3},8,["fullwidth"]))}});const j=E(sr,[["__scopeId","data-v-b935eb33"]]),xa=t=>(ae("data-v-17a828b1"),t=t(),oe(),t),nr={class:"d-flex flex-column"},rr={class:"d-flex flex-fill justify-content-between align-items-center"},ir=xa(()=>s("i",{class:"fa fa-xl fa-minus-square me-2"},null,-1)),lr=[ir],cr=["id","min","max","step"],dr=xa(()=>s("i",{class:"fa fa-xl fa-plus-square ms-2"},null,-1)),ur=[dr],hr={class:"d-flex justify-content-between align-items-center"},pr={class:"minlabel ps-4"},gr={class:"valuelabel"},mr={class:"maxlabel pe-4"},fr=V({__name:"RangeInput",props:{id:{},min:{},max:{},step:{},unit:{},decimals:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const a=t,o=a.decimals??0,n=p({get(){return Math.round(a.modelValue*Math.pow(10,o))/Math.pow(10,o)},set(u){e("update:modelValue",u)}});function l(){n.value>a.min&&(n.value=Math.round((n.value-a.step)*Math.pow(10,o))/Math.pow(10,o))}function c(){n.value(i(),h("span",nr,[s("span",rr,[s("span",{type:"button",class:"minusButton",onClick:l},lr),qe(s("input",{id:u.id,"onUpdate:modelValue":d[0]||(d[0]=m=>n.value=m),type:"range",class:"form-range flex-fill",min:u.min,max:u.max,step:u.step},null,8,cr),[[Qa,n.value,void 0,{number:!0}]]),s("span",{type:"button",class:"plusButton",onClick:c},ur)]),s("span",hr,[s("span",pr,S(u.min),1),s("span",gr,S(n.value)+" "+S(u.unit),1),s("span",mr,S(u.max),1)])]))}});const Me=E(fr,[["__scopeId","data-v-17a828b1"]]),vr=["id","value"],_r=V({__name:"RadioInput",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const a=t,o=p({get(){return a.modelValue},set(c){e("update:modelValue",c)}});function n(c){return a.options[c][2]?{color:a.options[c][2]}:{color:"var(--color-fg)"}}function l(c){let u=c.target;for(;u&&!u.value&&u.parentElement;)u=u.parentElement;u.value&&(o.value=u.value)}return(c,u)=>(i(),h("div",null,[(i(!0),h(R,null,te(c.options,(d,m)=>(i(),h("button",{id:"radio-"+d[1],key:m,class:z(["btn btn-outline-secondary radiobutton me-2 mb-0 px-2",d[1]==o.value?"active":""]),value:d[1],style:J(n(m)),onClick:l},[s("span",{style:J(n(m))},[d[3]?(i(),h("i",{key:0,class:z(["fa-solid",d[3]])},null,2)):b("",!0),U(" "+S(d[0]),1)],4)],14,vr))),128))]))}});const Ae=E(_r,[["__scopeId","data-v-df222cbe"]]),br=t=>(ae("data-v-0303d179"),t=t(),oe(),t),yr={class:"mt-2"},wr=br(()=>s("p",{class:"heading ms-1"},"Sofortladen:",-1)),kr={key:0},xr=V({__name:"CPConfigInstant",props:{chargepoint:{}},setup(t){const a=X(t.chargepoint),o=[{name:"keine",id:"none"},{name:"EV-SoC",id:"soc"},{name:"Energiemenge",id:"amount"}],n=p({get(){return a.value.instantMaxEnergy/1e3},set(l){a.value.instantMaxEnergy=l*1e3}});return(l,c)=>(i(),h("div",yr,[wr,v(j,{title:"Stromstärke",icon:"fa-bolt",fullwidth:!0},{default:w(()=>[v(Me,{id:"targetCurrent",modelValue:a.value.instantTargetCurrent,"onUpdate:modelValue":c[0]||(c[0]=u=>a.value.instantTargetCurrent=u),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])]),_:1}),a.value.instantChargeLimitMode!="none"?(i(),h("hr",kr)):b("",!0),v(j,{title:"Begrenzung",icon:"fa-hand",fullwidth:!0},{default:w(()=>[v(Ae,{modelValue:a.value.instantChargeLimitMode,"onUpdate:modelValue":c[1]||(c[1]=u=>a.value.instantChargeLimitMode=u),options:o.map(u=>[u.name,u.id])},null,8,["modelValue","options"])]),_:1}),a.value.instantChargeLimitMode=="soc"?(i(),$(j,{key:1,title:"Maximaler SoC",icon:"fa-sliders",fullwidth:!0},{default:w(()=>[v(Me,{id:"maxSoc",modelValue:a.value.instantTargetSoc,"onUpdate:modelValue":c[2]||(c[2]=u=>a.value.instantTargetSoc=u),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):b("",!0),a.value.instantChargeLimitMode=="amount"?(i(),$(j,{key:2,title:"Zu ladende Energie",icon:"fa-sliders",fullwidth:!0},{default:w(()=>[v(Me,{id:"maxEnergy",modelValue:n.value,"onUpdate:modelValue":c[3]||(c[3]=u=>n.value=u),min:0,max:100,step:1,unit:"kWh"},null,8,["modelValue"])]),_:1})):b("",!0)]))}});const Sr=E(xr,[["__scopeId","data-v-0303d179"]]),$r={class:"form-check form-switch"},de=V({__name:"SwitchInput",props:{modelValue:{type:Boolean},onColor:{},offColor:{}},emits:["update:modelValue"],setup(t,{emit:e}){const a=t,o=p({get(){return a.modelValue},set(l){e("update:modelValue",l)}}),n=p(()=>o.value?{"background-color":"green"}:{"background-color":"white"});return(l,c)=>(i(),h("div",$r,[qe(s("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>o.value=u),class:"form-check-input",type:"checkbox",role:"switch",style:J(n.value)},null,4),[[Et,o.value]])]))}}),Sa=t=>(ae("data-v-1a90f282"),t=t(),oe(),t),Mr={class:"pt-2"},Cr=Sa(()=>s("p",{class:"heading ms-1"},"PV-Laden:",-1)),Pr={class:"form-check form-switch"},Ir=Sa(()=>s("hr",null,null,-1)),Br={key:2},Vr=V({__name:"CPConfigPv",props:{chargepoint:{}},setup(t){const a=X(t.chargepoint),o=p({get(){return a.value.pvMinCurrent>5},set(l){l?a.value.pvMinCurrent=6:a.value.pvMinCurrent=0}}),n=p({get(){return a.value.pvMinSoc>0},set(l){l?a.value.pvMinSoc=50:a.value.pvMinSoc=0}});return(l,c)=>(i(),h("div",Mr,[Cr,v(j,{title:"Maximaler Ladestand",icon:"fa-battery-three-quarters",fullwidth:!0},{default:w(()=>[v(Me,{id:"maxSoc",modelValue:a.value.pvMaxSoc,"onUpdate:modelValue":c[0]||(c[0]=u=>a.value.pvMaxSoc=u),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1}),v(j,{title:"Einspeisegrenze beachten",icon:"fa-hand",fullwidth:!0},{default:w(()=>[s("div",Pr,[qe(s("input",{id:"feedInLimitSwitch","onUpdate:modelValue":c[1]||(c[1]=u=>a.value.pvFeedInLimit=u),class:"form-check-input",type:"checkbox",role:"switch"},null,512),[[Et,a.value.pvFeedInLimit]])])]),_:1}),Ir,v(j,{title:"Minimaler Ladestand",icon:"fa-battery-half",infotext:r(Ve).minsoc,fullwidth:!0},{default:w(()=>[v(de,{modelValue:n.value,"onUpdate:modelValue":c[2]||(c[2]=u=>n.value=u)},null,8,["modelValue"])]),_:1},8,["infotext"]),n.value?(i(),$(j,{key:0,title:"...bis SoC",fullwidth:!0},{info:w(()=>[U(S(r(Ve).minsoc),1)]),default:w(()=>[v(Me,{id:"minSoc",modelValue:a.value.pvMinSoc,"onUpdate:modelValue":c[3]||(c[3]=u=>a.value.pvMinSoc=u),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):b("",!0),n.value?(i(),$(j,{key:1,title:"...mit Ladestrom",fullwidth:!0},{default:w(()=>[v(Me,{id:"minSocCurrent",modelValue:a.value.pvMinSocCurrent,"onUpdate:modelValue":c[4]||(c[4]=u=>a.value.pvMinSocCurrent=u),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])]),_:1})):b("",!0),o.value||n.value?(i(),h("hr",Br)):b("",!0),v(j,{title:"Minimaler Ladestrom",icon:"fa-bolt",infotext:r(Ve).minpv,fullwidth:!0},{default:w(()=>[v(de,{modelValue:o.value,"onUpdate:modelValue":c[5]||(c[5]=u=>o.value=u)},null,8,["modelValue"])]),_:1},8,["infotext"]),o.value?(i(),$(j,{key:3,title:"...bei Ladestrom (minimal)",fullwidth:!0},{default:w(()=>[v(Me,{id:"minCurrent",modelValue:a.value.pvMinCurrent,"onUpdate:modelValue":c[6]||(c[6]=u=>a.value.pvMinCurrent=u),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])]),_:1})):b("",!0)]))}});const Lr=E(Vr,[["__scopeId","data-v-1a90f282"]]),$a=t=>(ae("data-v-e8f5ad9d"),t=t(),oe(),t),Ar=$a(()=>s("p",{class:"heading ms-1 pt-2"},"Zielladen:",-1)),Or={class:"table table-borderless"},Tr=$a(()=>s("thead",null,[s("tr",null,[s("th",{class:"tableheader"},"Ziel"),s("th",{class:"tableheader"},"Limit"),s("th",{class:"tableheader"},"Zeit"),s("th",{class:"tableheader"},"Wiederholung"),s("th",{class:"tableheader"})])],-1)),Dr={class:"tablecell"},Gr={class:"tablecell"},Wr={class:"tablecell"},zr={class:"tablecell"},Er={class:"tablecell left"},jr=["href"],Ur=V({__name:"CPConfigScheduled",props:{chargeTemplateId:{}},setup(t){const e=t,a={daily:"Täglich",once:"Einmal",weekly:"Wöchentlich"},o=p(()=>{let u=[];return Ze[e.chargeTemplateId]&&(u=Object.values(Ze[e.chargeTemplateId])),u});function n(u){return o.value[u].time}function l(u){return{color:o.value[u].active?"var(--color-switchGreen)":"var(--color-switchRed)"}}function c(u){return{"font-weight":o.value[u].active?"bold":"regular"}}return(u,d)=>(i(),h(R,null,[Ar,s("table",Or,[Tr,s("tbody",null,[(i(!0),h(R,null,te(o.value,(m,y)=>(i(),h("tr",{key:y,style:J(c(y))},[s("td",Dr,S(m.limit.soc_scheduled)+"%",1),s("td",Gr,S(m.limit.soc_limit)+"%",1),s("td",Wr,S(n(y)),1),s("td",zr,S(a[m.frequency.selected]),1),s("td",Er,[s("a",{href:"../../settings/#/VehicleConfiguration/charge_template/"+e.chargeTemplateId},[s("span",{class:z([m.active?"fa-toggle-on":"fa-toggle-off","fa"]),style:J(l(y)),type:"button"},null,6)],8,jr)])],4))),128))])])],64))}});const Fr=E(Ur,[["__scopeId","data-v-e8f5ad9d"]]),Ma=t=>(ae("data-v-192e287b"),t=t(),oe(),t),Nr=Ma(()=>s("p",{class:"heading ms-1 pt-2"},"Zeitpläne:",-1)),Hr={class:"table table-borderless"},Rr=Ma(()=>s("thead",null,[s("tr",null,[s("th",{class:"tableheader"},"Von"),s("th",{class:"tableheader"},"Bis"),s("th",{class:"tableheader"},"Ladestrom"),s("th",{class:"tableheader"},"Wiederholung"),s("th",{class:"tableheader right"})])],-1)),qr={class:"tablecell"},Jr={class:"tablecell"},Qr={class:"tablecell"},Yr={class:"tablecell"},Zr={class:"tablecell left"},Xr=["href"],Kr=V({__name:"CPConfigTimed",props:{chargeTemplateId:{}},setup(t){const e=t,a={daily:"Täglich",once:"Einmal",weekly:"Wöchentlich"},o=p(()=>Xe[e.chargeTemplateId]?Object.values(Xe[e.chargeTemplateId])??[]:[]);function n(c){return{color:o.value[c].active?"var(--color-switchGreen)":"var(--color-switchRed)"}}function l(c){return{"font-weight":o.value[c].active?"bold":"regular"}}return(c,u)=>(i(),h(R,null,[Nr,s("table",Hr,[Rr,s("tbody",null,[(i(!0),h(R,null,te(o.value,(d,m)=>(i(),h("tr",{key:m,style:J(l(m))},[s("td",qr,S(d.time[0]),1),s("td",Jr,S(d.time[1]),1),s("td",Qr,S(d.current)+" A",1),s("td",Yr,S(a[d.frequency.selected]),1),s("td",Zr,[s("a",{href:"../../settings/#/VehicleConfiguration/charge_template/"+e.chargeTemplateId},[s("span",{class:z([d.active?"fa-toggle-on":"fa-toggle-off","fa"]),style:J(n(m)),type:"button"},null,6)],8,Xr)])],4))),128))])])],64))}});const ei=E(Kr,[["__scopeId","data-v-192e287b"]]),ti={class:"settingsheader mt-2 ms-1"},ai=V({__name:"CPConfigVehicle",props:{vehicleId:{}},setup(t){const e=t;return(a,o)=>(i(),h(R,null,[s("p",ti," Profile für "+S(r(Y)[e.vehicleId].name)+": ",1),v(j,{title:"Ladeprofil",icon:"fa-sliders",fullwidth:!0},{default:w(()=>[v(Ae,{modelValue:r(Y)[e.vehicleId].chargeTemplateId,"onUpdate:modelValue":o[0]||(o[0]=n=>r(Y)[e.vehicleId].chargeTemplateId=n),modelModifiers:{number:!0},options:Object.keys(r(fe)).map(n=>[r(fe)[+n].name,n])},null,8,["modelValue","options"])]),_:1}),v(j,{title:"Fahrzeug-Vorlage",icon:"fa-sliders",fullwidth:!0},{default:w(()=>[v(Ae,{modelValue:r(Y)[e.vehicleId].evTemplateId,"onUpdate:modelValue":o[1]||(o[1]=n=>r(Y)[e.vehicleId].evTemplateId=n),modelModifiers:{number:!0},options:Object.keys(r(Gt)).map(n=>[r(Gt)[+n].name,n])},null,8,["modelValue","options"])]),_:1})],64))}});const oi=E(ai,[["__scopeId","data-v-fcb57a44"]]),si={class:"settingsheader mt-2 ms-1"},ni=V({__name:"CPChargeConfig",props:{chargepoint:{}},emits:["closeConfig"],setup(t){const a=t.chargepoint;return(o,n)=>(i(),h(R,null,[s("p",si," Ladeeinstellungen für "+S(r(a).vehicleName)+": ",1),v(j,{title:"Lademodus",icon:"fa-charging-station",infotext:r(Ve).chargemode,fullwidth:!0},{default:w(()=>[v(Ae,{modelValue:r(a).chargeMode,"onUpdate:modelValue":n[0]||(n[0]=l=>r(a).chargeMode=l),options:Object.keys(r(ue)).map(l=>[r(ue)[l].name,l,r(ue)[l].color,r(ue)[l].icon])},null,8,["modelValue","options"])]),_:1},8,["infotext"]),v(j,{title:"Fahrzeug wechseln",icon:"fa-car",infotext:r(Ve).vehicle,fullwidth:!0},{default:w(()=>[v(Ae,{modelValue:r(a).connectedVehicle,"onUpdate:modelValue":n[1]||(n[1]=l=>r(a).connectedVehicle=l),modelModifiers:{number:!0},options:Object.values(r(Y)).map(l=>[l.name,l.id])},null,8,["modelValue","options"])]),_:1},8,["infotext"]),v(j,{title:"Sperren",icon:"fa-lock",infotext:r(Ve).locked,fullwidth:!0},{default:w(()=>[v(de,{modelValue:r(a).isLocked,"onUpdate:modelValue":n[2]||(n[2]=l=>r(a).isLocked=l)},null,8,["modelValue"])]),_:1},8,["infotext"]),v(j,{title:"Priorität",icon:"fa-star",infotext:r(Ve).priority,fullwidth:!0},{default:w(()=>[v(de,{modelValue:r(a).hasPriority,"onUpdate:modelValue":n[3]||(n[3]=l=>r(a).hasPriority=l)},null,8,["modelValue"])]),_:1},8,["infotext"]),v(j,{title:"Zeitplan",icon:"fa-clock",infotext:r(Ve).timeplan,fullwidth:!0},{default:w(()=>[v(de,{modelValue:r(a).timedCharging,"onUpdate:modelValue":n[4]||(n[4]=l=>r(a).timedCharging=l)},null,8,["modelValue"])]),_:1},8,["infotext"]),r(ee).active?(i(),$(j,{key:0,title:"Strompreisbasiert laden",icon:"fa-money-bill",infotext:r(Ve).pricebased,fullwidth:!0},{default:w(()=>[v(de,{modelValue:r(a).etActive,"onUpdate:modelValue":n[5]||(n[5]=l=>r(a).etActive=l)},null,8,["modelValue"])]),_:1},8,["infotext"])):b("",!0)],64))}});const ri=E(ni,[["__scopeId","data-v-a64493d7"]]),Ca=t=>(ae("data-v-5286b19d"),t=t(),oe(),t),ii=Ca(()=>s("p",{class:"settingsheader mt-2 ms-1"},"Preisbasiertes Laden:",-1)),li={class:"providername ms-1"},ci=Ca(()=>s("hr",null,null,-1)),di={class:"container"},ui={id:"pricechart",class:"p-0 m-0"},hi={viewBox:"0 0 400 300"},pi=["id","origin","transform"],gi={key:0,class:"p-3"},mi={key:1,class:"d-flex justify-content-end"},fi=["disabled"],Je=400,ra=250,ia=12,vi=V({__name:"PriceChart",props:{chargepoint:{},globalview:{type:Boolean}},setup(t){const e=t;let a=e.chargepoint?X(e.chargepoint.etMaxPrice):X(0);const o=X(!1),n=X(e.chargepoint),l=p({get(){return a.value},set(k){a.value=k,o.value=!0}});function c(){n.value&&(B[n.value.id].etMaxPrice=l.value),o.value=!1}const u=X(!1),d={top:0,bottom:15,left:20,right:5},m=p(()=>{let k=[];return ee.etPriceList.size>0&&ee.etPriceList.forEach((M,O)=>{k.push([O,M])}),k}),y=p(()=>m.value.length>1?(Je-d.left-d.right)/m.value.length-1:0),I=p(()=>o.value?{background:"var(--color-charging)"}:{background:"var(--color-menu)"}),C=p(()=>{let k=Oe(m.value,M=>M[0]);return Re().range([d.left,Je-d.left-d.right]).domain(k)}),L=p(()=>{let k=Oe(m.value,M=>M[1]);return k[0]=Math.floor(k[0]-1),k[1]=Math.floor(k[1]+1),k}),A=p(()=>Te().range([ra-d.bottom,0]).domain(L.value)),Q=p(()=>{const k=Tt(),M=[[d.left,A.value(l.value)],[Je-d.right,A.value(l.value)]];return k(M)}),G=p(()=>{const k=Tt(),M=[[d.left,A.value(0)],[Je-d.right,A.value(0)]];return k(M)}),T=p(()=>Ye(C.value).ticks(6).tickSize(5).tickFormat(tt("%H:%M"))),F=p(()=>st(A.value).ticks(6).tickSizeInner(-(Je-d.right-d.left)).tickFormat(k=>k.toString())),P=p(()=>{u.value==!0;const k=be("g#"+x.value);k.selectAll("*").remove(),k.selectAll("bar").data(m.value).enter().append("g").append("rect").attr("class","bar").attr("x",ze=>C.value(ze[0])).attr("y",ze=>A.value(ze[1])).attr("width",y.value).attr("height",ze=>A.value(L.value[0])-A.value(ze[1])).attr("fill",ze=>ze[1]<=l.value?"var(--color-charging)":"var(--color-axis)");const O=k.append("g").attr("class","axis").call(T.value);O.attr("transform","translate(0,"+(ra-d.bottom)+")"),O.selectAll(".tick").attr("font-size",ia).attr("color","var(--color-bg)"),O.selectAll(".tick line").attr("stroke","var(--color-fg)").attr("stroke-width","0.5"),O.select(".domain").attr("stroke","var(--color-bg");const pe=k.append("g").attr("class","axis").call(F.value);return pe.attr("transform","translate("+d.left+",0)"),pe.selectAll(".tick").attr("font-size",ia).attr("color","var(--color-bg)"),pe.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width","0.5"),pe.select(".domain").attr("stroke","var(--color-bg)"),L.value[0]<0&&k.append("path").attr("d",G.value).attr("stroke","var(--color-fg)"),k.append("path").attr("d",Q.value).attr("stroke","yellow"),"PriceChart.vue"}),x=p(()=>e.chargepoint?"priceChartCanvas"+e.chargepoint.id:"priceChartCanvasGlobal");return Ce(()=>{u.value=!u.value}),(k,M)=>(i(),h(R,null,[ii,s("p",li,"Anbieter: "+S(r(ee).etProvider),1),ci,s("div",di,[s("figure",ui,[(i(),h("svg",hi,[s("g",{id:x.value,origin:P.value,transform:"translate("+d.top+","+d.right+")"},null,8,pi)]))])]),k.chargepoint!=null?(i(),h("div",gi,[k.chargepoint.etActive?(i(),$(Me,{key:0,id:"foo",modelValue:l.value,"onUpdate:modelValue":M[0]||(M[0]=O=>l.value=O),min:-25,max:95,step:.1,decimals:1,unit:"ct"},null,8,["modelValue"])):b("",!0)])):b("",!0),k.chargepoint!=null?(i(),h("div",mi,[s("span",{class:"me-3 pt-0",onClick:c},[s("button",{type:"button",class:"btn btn-secondary",style:J(I.value),disabled:!o.value}," Bestätigen ",12,fi)])])):b("",!0)],64))}});const Pa=E(vi,[["__scopeId","data-v-5286b19d"]]),Ue=t=>(ae("data-v-fdc511bd"),t=t(),oe(),t),_i={class:"status-string"},bi={style:{color:"red"}},yi={class:"m-0 mt-4 p-0 grid-col-12 tabarea"},wi={class:"nav nav-tabs nav-justified mx-1 mt-1",role:"tablist"},ki=["data-bs-target"],xi=Ue(()=>s("i",{class:"fa-solid fa-charging-station"},null,-1)),Si=[xi],$i=["data-bs-target"],Mi=Ue(()=>s("i",{class:"fa-solid fa-lg fa-bolt"},null,-1)),Ci=[Mi],Pi=["data-bs-target"],Ii=Ue(()=>s("i",{class:"fa-solid fa-solar-panel me-1"},null,-1)),Bi=[Ii],Vi=["data-bs-target"],Li=Ue(()=>s("i",{class:"fa-solid fa-bullseye me-1"},null,-1)),Ai=[Li],Oi=["data-bs-target"],Ti=Ue(()=>s("i",{class:"fa-solid fa-clock"},null,-1)),Di=[Ti],Gi=["data-bs-target"],Wi=Ue(()=>s("i",{class:"fa-solid fa-rectangle-list"},null,-1)),zi=[Wi],Ei=["data-bs-target"],ji=Ue(()=>s("i",{class:"fa-solid fa-chart-line"},null,-1)),Ui=[ji],Fi={id:"settingsPanes",class:"tab-content mx-1 p-1 pb-3"},Ni=["id"],Hi=["id"],Ri=["id"],qi=["id"],Ji=["id"],Qi=["id"],Yi=["id"],Zi=V({__name:"CPChargeConfigPanel",props:{chargepoint:{}},emits:["closeConfig"],setup(t){const a=t.chargepoint,o=p(()=>fe[a.chargeTemplate]),n=p(()=>a.id);return Ce(()=>{}),(l,c)=>(i(),h(R,null,[v(j,{title:"Status",icon:"fa-info-circle",fullwidth:!0,class:"item"},{default:w(()=>[s("span",_i,S(r(a).stateStr),1)]),_:1}),r(a).faultState!=0?(i(),$(j,{key:0,title:"Fehler",class:"grid-col-12"},{default:w(()=>[s("span",bi,S(r(a).faultStr),1)]),_:1})):b("",!0),s("div",yi,[s("nav",wi,[s("a",{class:"nav-link active","data-bs-toggle":"tab","data-bs-target":"#chargeSettings"+n.value},Si,8,ki),l.chargepoint.chargeMode=="instant_charging"?(i(),h("a",{key:0,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#instantSettings"+n.value},Ci,8,$i)):b("",!0),l.chargepoint.chargeMode=="pv_charging"?(i(),h("a",{key:1,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#pvSettings"+n.value},Bi,8,Pi)):b("",!0),l.chargepoint.chargeMode=="scheduled_charging"?(i(),h("a",{key:2,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#scheduledSettings"+n.value},Ai,8,Vi)):b("",!0),l.chargepoint.timedCharging?(i(),h("a",{key:3,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#timeSettings"+n.value},Di,8,Oi)):b("",!0),s("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#carSettings"+n.value},zi,8,Gi),r(ee).active&&r(a).etActive?(i(),h("a",{key:4,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#priceChart"+n.value},Ui,8,Ei)):b("",!0)]),s("div",Fi,[s("div",{id:"chargeSettings"+n.value,class:"tab-pane active",role:"tabpanel","aria-labelledby":"instant-tab"},[v(ri,{chargepoint:l.chargepoint},null,8,["chargepoint"])],8,Ni),s("div",{id:"instantSettings"+n.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"instant-tab"},[v(Sr,{chargepoint:r(a),vehicles:r(Y),"charge-templates":r(fe)},null,8,["chargepoint","vehicles","charge-templates"])],8,Hi),s("div",{id:"pvSettings"+n.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"pv-tab"},[v(Lr,{chargepoint:r(a),vehicles:r(Y),"charge-templates":r(fe)},null,8,["chargepoint","vehicles","charge-templates"])],8,Ri),s("div",{id:"scheduledSettings"+n.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"scheduled-tab"},[o.value!=null?(i(),$(Fr,{key:0,"charge-template-id":r(a).chargeTemplate},null,8,["charge-template-id"])):b("",!0)],8,qi),s("div",{id:"timeSettings"+n.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"time-tab"},[o.value!=null?(i(),$(ei,{key:0,"charge-template-id":r(a).chargeTemplate},null,8,["charge-template-id"])):b("",!0)],8,Ji),s("div",{id:"carSettings"+n.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"car-tab"},[r(Y)[r(a).connectedVehicle]!=null?(i(),$(oi,{key:0,"vehicle-id":r(a).connectedVehicle},null,8,["vehicle-id"])):b("",!0)],8,Qi),s("div",{id:"priceChart"+n.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"price-tab"},[r(Y)[r(a).connectedVehicle]!=null?(i(),$(Pa,{key:0,chargepoint:r(a)},null,8,["chargepoint"])):b("",!0)],8,Yi)])])],64))}});const zt=E(Zi,[["__scopeId","data-v-fdc511bd"]]),Xi=V({__name:"BatterySymbol",props:{soc:{}},setup(t){const e=t,a=p(()=>e.soc<=10?"fa-battery-empty":e.soc<50?"fa-battery-quarter":e.soc<75?"fa-battery-half":e.soc<95?"fa-battery-three-quarters":"fa-battery-full");return(o,n)=>(i(),h("span",null,[s("i",{class:z(["fa batIcon",a.value])},null,2),U(" "+S(Math.round(o.soc)+"%"),1)]))}});const Qt=E(Xi,[["__scopeId","data-v-a0bd055c"]]),ft=V({__name:"FormatWattH",props:{wattH:{}},setup(t){const e=t,a=p(()=>at(e.wattH,g.decimalPlaces));return(o,n)=>(i(),h("span",null,S(a.value),1))}}),Ki=t=>(ae("data-v-ebc57eaa"),t=t(),oe(),t),el={class:"wb-widget p-0 m-0 shadow widgetWidth"},tl={class:"py-4 px-3 d-flex justify-content-between align-items-center"},al=Ki(()=>s("div",{class:"p-0"},"(title goes here)",-1)),ol={class:"p-0",style:{"text-align":"right"}},sl={class:"grid12 pb-3"},nl=V({__name:"WbWidgetFlex",props:{variableWidth:{type:Boolean},fullWidth:{type:Boolean}},setup(t){const e=t,a=p(()=>e.fullWidth?"col-12":e.variableWidth&&g.preferWideBoxes?"col-lg-6":"col-lg-4");return(o,n)=>(i(),h("div",{class:z(["p-2 m-0 d-flex",a.value])},[s("div",el,[s("div",tl,[s("h3",null,[le(o.$slots,"title",{},()=>[al],!0),le(o.$slots,"subtitle",{},void 0,!0)]),s("div",ol,[le(o.$slots,"buttons",{},void 0,!0)])]),s("div",sl,[le(o.$slots,"default",{},void 0,!0)])])],2))}});const We=E(nl,[["__scopeId","data-v-ebc57eaa"]]),Fe=t=>(ae("data-v-fec067c7"),t=t(),oe(),t),rl=Fe(()=>s("span",{class:"fa-solid fa-charging-station"}," ",-1)),il=Fe(()=>s("span",{class:"fa-solid fa-lg ps-1 fa-ellipsis-vertical"},null,-1)),ll=[il],cl={key:0},dl={class:"targetCurrent"},ul={key:1,class:"row m-0 mt-0 p-0"},hl={class:"col m-0 p-0"},pl={key:0},gl={class:"col"},ml=Fe(()=>s("i",{class:"fa-solid fa-sm fa-car me-2"},null,-1)),fl={key:0,class:"me-1 fa-solid fa-xs fa-star ps-1"},vl={key:1,class:"me-0 fa-solid fa-xs fa-coins ps-0"},_l={class:"grid12"},bl={key:0,class:"me-1 fa-solid fa-xs fa-clock ps-1"},yl={key:2,class:"socEditor rounded mt-2 d-flex flex-column align-items-center grid-col-12 grid-left"},wl=Fe(()=>s("span",{class:"d-flex m-1 p-0 socEditTitle"},"Ladestand einstellen:",-1)),kl={class:"d-flex justify-content-stretch align-items-center"},xl={key:0,class:"fa-solid fa-sm fas fa-edit ms-2"},Sl=["id"],$l=Fe(()=>s("span",{type:"button",class:"d-flex fa-solid fa-lg ps-1 fa-circle-check"},null,-1)),Ml=[$l],Cl=Fe(()=>s("span",{class:"fas fa-gear"}," ",-1)),Pl=Fe(()=>s("span",{class:"fa-solid fa-lg ps-1 fa-circle-check"},null,-1)),Il=[Pl],Bl=V({__name:"CPChargePoint",props:{chargepoint:{},fullWidth:{type:Boolean}},setup(t){const e=t,a=X(e.chargepoint),o=p({get(){return e.chargepoint.chargeMode},set(k){B[e.chargepoint.id].chargeMode=k}}),n=p(()=>(Math.round(e.chargepoint.current*10)/10).toLocaleString(void 0)+" A"),l=p(()=>(Math.round(e.chargepoint.realCurrent*10)/10).toLocaleString(void 0)+" A"),c=p(()=>Math.round(e.chargepoint.rangeCharged).toString()+" "+e.chargepoint.rangeUnit),u=p(()=>e.chargepoint.isLocked?"Gesperrt":e.chargepoint.isCharging?"Lädt":e.chargepoint.isPluggedIn?"Bereit":"Frei"),d=p(()=>e.chargepoint.isLocked?"var(--color-evu)":e.chargepoint.isCharging?"var(--color-charging)":e.chargepoint.isPluggedIn?"var(--color-battery)":"var(--color-axis)"),m=p(()=>{let k="";return e.chargepoint.isLocked?k="fa-lock":e.chargepoint.isCharging?k=" fa-bolt":e.chargepoint.isPluggedIn&&(k="fa-plug"),"fa "+k}),y=p(()=>{switch(e.chargepoint.chargeMode){case"stop":return{color:"var(--fg)"};default:return{color:ue[e.chargepoint.chargeMode].color}}}),I=p(()=>e.chargepoint.soc),C=p(()=>({color:e.chargepoint.color})),L=p(()=>e.chargepoint.etMaxPrice>=+P.value?{color:"var(--color-charging)"}:{color:"var(--color-menu)"}),A=X(!1),Q=X(!1);function G(){K("socUpdate",1,e.chargepoint.connectedVehicle),B[e.chargepoint.id].waitingForSoc=!0}function T(){K("setSoc",F.value,e.chargepoint.connectedVehicle),Q.value=!1}const F=p({get(){return e.chargepoint.soc},set(k){B[e.chargepoint.id].soc=k}}),P=p(()=>{const[k]=ee.etPriceList.values();return(Math.round(k*10)/10).toFixed(1)}),x=X(!1);return(k,M)=>(i(),h(R,null,[A.value?b("",!0):(i(),$(nt,{key:0,"variable-width":!0,"full-width":e.fullWidth},{title:w(()=>[s("span",{style:J(C.value),onClick:M[0]||(M[0]=O=>A.value=!A.value)},[rl,U(" "+S(e.chargepoint.name),1)],4)]),buttons:w(()=>[s("span",{type:"button",class:"ms-2 ps-5 pt-1",style:J(y.value),onClick:M[1]||(M[1]=O=>A.value=!A.value)},ll,4)]),footer:w(()=>[A.value?b("",!0):(i(),h("div",pl,[s("div",{class:"row",onClick:M[3]||(M[3]=O=>A.value=!A.value)},[s("div",gl,[s("h3",null,[ml,U(" "+S(k.chargepoint.vehicleName)+" ",1),k.chargepoint.hasPriority?(i(),h("span",fl)):b("",!0),k.chargepoint.etActive?(i(),h("span",vl)):b("",!0)])])]),s("div",_l,[v(wa,{id:"chargemode-"+k.chargepoint.name,modelValue:o.value,"onUpdate:modelValue":M[4]||(M[4]=O=>o.value=O),class:"chargemodes mt-3 mb-3",options:Object.keys(r(ue)).map(O=>({text:r(ue)[O].name,value:O,color:r(ue)[O].color,icon:r(ue)[O].icon,active:r(ue)[O].mode==k.chargepoint.chargeMode}))},null,8,["id","modelValue","options"]),k.chargepoint.isSocConfigured?(i(),$(Z,{key:0,heading:"Ladestand:",class:"grid-col-4 grid-left"},{default:w(()=>[v(Qt,{soc:I.value,class:"me-2"},null,8,["soc"]),k.chargepoint.isSocConfigured&&k.chargepoint.isSocManual?(i(),h("i",{key:0,class:"fa-solid fa-sm fas fa-edit",style:J({color:"var(--color-menu)"}),onClick:M[5]||(M[5]=O=>Q.value=!Q.value)},null,4)):b("",!0),k.chargepoint.isSocConfigured&&!k.chargepoint.isSocManual?(i(),h("i",{key:1,type:"button",class:z(["fa-solid fa-sm",k.chargepoint.waitingForSoc?"fa-spinner fa-spin":"fa-sync"]),style:J({color:"var(--color-menu)"}),onClick:G},null,6)):b("",!0)]),_:1})):b("",!0),k.chargepoint.isSocConfigured?(i(),$(Z,{key:1,heading:"Reichweite:",class:"grid-col-4"},{default:w(()=>[U(S(r(Y)[e.chargepoint.connectedVehicle]?Math.round(r(Y)[e.chargepoint.connectedVehicle].range):0)+" km ",1)]),_:1})):b("",!0),v(Z,{heading:"Zeitplan:",class:"grid-col-4 grid-right"},{default:w(()=>[k.chargepoint.timedCharging?(i(),h("span",bl)):b("",!0),U(" "+S(e.chargepoint.timedCharging?"Ja":"Nein"),1)]),_:1}),Q.value?(i(),h("div",yl,[wl,s("span",kl,[s("span",null,[v(Me,{id:"manualSoc",modelValue:F.value,"onUpdate:modelValue":M[6]||(M[6]=O=>F.value=O),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])])]),s("span",{type:"button",class:"fa-solid d-flex fa-lg me-2 mb-3 align-self-end fa-circle-check",onClick:T})])):b("",!0),r(ee).active?(i(),$(Z,{key:3,heading:"Preisladen:",class:"grid-col-4 grid-left"},{default:w(()=>[v(de,{modelValue:a.value.etActive,"onUpdate:modelValue":M[7]||(M[7]=O=>a.value.etActive=O)},null,8,["modelValue"])]),_:1})):b("",!0),r(ee).active?(i(),$(Z,{key:4,heading:"max. Preis:",class:"grid-col-4"},{default:w(()=>[s("span",{type:"button",onClick:M[8]||(M[8]=O=>x.value=!x.value)},[U(S(e.chargepoint.etActive?(Math.round(e.chargepoint.etMaxPrice*10)/10).toFixed(1)+" ct":"-")+" ",1),e.chargepoint.etActive?(i(),h("i",xl)):b("",!0)])]),_:1})):b("",!0),r(ee).active?(i(),$(Z,{key:5,heading:"akt. Preis:",class:"grid-col-4 grid-right"},{default:w(()=>[s("span",{style:J(L.value)},S(P.value)+" ct ",5)]),_:1})):b("",!0),x.value?(i(),h("div",{key:6,id:"priceChartInline"+e.chargepoint.id,class:"d-flex flex-column rounded priceEditor grid-col-12"},[r(Y)[e.chargepoint.connectedVehicle]!=null?(i(),$(Pa,{key:0,chargepoint:e.chargepoint},null,8,["chargepoint"])):b("",!0),s("span",{class:"d-flex ms-2 my-4 pe-3 pt-1 d-flex align-self-end",style:J(y.value),onClick:M[9]||(M[9]=O=>x.value=!1)},Ml,4)],8,Sl)):b("",!0)])]))]),default:w(()=>[A.value?b("",!0):(i(),h("div",cl,[s("div",{class:"grid12",onClick:M[2]||(M[2]=O=>A.value=!A.value)},[v(Z,{heading:"Status:",class:"grid-col-4 grid-left"},{default:w(()=>[s("span",{style:J({color:d.value})},[s("i",{class:z(m.value)},null,2),U(" "+S(u.value),1)],4)]),_:1}),v(Z,{heading:"Geladen:",class:"grid-col-4"},{default:w(()=>[v(ft,{"watt-h":k.chargepoint.dailyYield},null,8,["watt-h"])]),_:1}),v(Z,{heading:"gel. Reichw.:",class:"grid-col-4 grid-right"},{default:w(()=>[U(S(c.value),1)]),_:1}),e.chargepoint.power>0?(i(),$(Z,{key:0,heading:"Leistung:",class:"grid-col-3 grid-left"},{default:w(()=>[v(bt,{watt:e.chargepoint.power},null,8,["watt"])]),_:1})):b("",!0),e.chargepoint.power>0?(i(),$(Z,{key:1,heading:"Strom:",class:"grid-col-3"},{default:w(()=>[U(S(l.value),1)]),_:1})):b("",!0),e.chargepoint.power>0?(i(),$(Z,{key:2,heading:"Phasen:",class:"grid-col-3"},{default:w(()=>[U(S(e.chargepoint.phasesInUse),1)]),_:1})):b("",!0),e.chargepoint.power>0?(i(),$(Z,{key:3,heading:"Sollstrom:",class:"grid-col-3 grid-right"},{default:w(()=>[s("span",dl,S(n.value),1)]),_:1})):b("",!0)])])),A.value?(i(),h("div",ul,[s("div",hl,[k.chargepoint!=null?(i(),$(zt,{key:0,chargepoint:k.chargepoint},null,8,["chargepoint"])):b("",!0)])])):b("",!0)]),_:1},8,["full-width"])),A.value?(i(),$(We,{key:1,"full-width":e.fullWidth},{title:w(()=>[s("span",{style:J(C.value),onClick:M[10]||(M[10]=O=>A.value=!A.value)},[Cl,U(" Einstellungen "+S(e.chargepoint.name),1)],4)]),buttons:w(()=>[s("span",{class:"ms-2 pt-1",style:J(y.value),onClick:M[11]||(M[11]=O=>A.value=!A.value)},Il,4)]),default:w(()=>[k.chargepoint!=null?(i(),$(zt,{key:0,chargepoint:k.chargepoint},null,8,["chargepoint"])):b("",!0)]),_:1},8,["full-width"])):b("",!0)],64))}});const Vl=E(Bl,[["__scopeId","data-v-fec067c7"]]);const Ia=t=>(ae("data-v-eaefae30"),t=t(),oe(),t),Ll=["id"],Al={class:"modal-dialog modal-lg modal-fullscreen-lg-down"},Ol={class:"modal-content"},Tl={class:"modal-header"},Dl={class:"modal-title"},Gl=Ia(()=>s("button",{type:"button",class:"btn-close buttonTextSize d-flex justify-content-center pt-3 pb-0","data-bs-dismiss":"modal"},[s("i",{class:"fa-solid fa-lg fa-rectangle-xmark m-0 p-0"})],-1)),Wl={class:"modal-body",style:{"background-color":"var(--color-bg)"}},zl=Ia(()=>s("button",{class:"btn btn-secondary float-end mt-3 ms-1","data-bs-dismiss":"modal"}," Schließen ",-1)),El=V({__name:"ModalComponent",props:{modalId:{}},setup(t){const e=t;return Ce(()=>{}),(a,o)=>(i(),h("div",{id:e.modalId,class:"modal fade"},[s("div",Al,[s("div",Ol,[s("div",Tl,[s("h3",Dl,[le(a.$slots,"title",{},void 0,!0)]),Gl]),s("div",Wl,[le(a.$slots,"default",{},void 0,!0),zl])])])],8,Ll))}});const Ba=E(El,[["__scopeId","data-v-eaefae30"]]),jl=t=>(ae("data-v-0496b1f6"),t=t(),oe(),t),Ul={class:"d-flex align-items-center"},Fl={class:"cpname"},Nl={class:"d-flex float-right justify-content-end align-items-center"},Hl=["data-bs-target"],Rl=["data-bs-target"],ql={class:"subgrid"},Jl={key:0,class:"d-flex justify-content-center align-items-center vehiclestatus"},Ql={class:"d-flex flex-column align-items-center px-0"},Yl={class:"d-flex justify-content-center flex-wrap"},Zl={class:"d-flex align-items-center"},Xl={class:"badge phasesInUse rounded-pill"},Kl={class:"d-flex flex-wrap justify-content-center chargeinfo"},ec={class:"me-1"},tc={key:0,class:"subgrid socEditRow m-0 p-0"},ac={class:"socEditor rounded mt-2 d-flex flex-column align-items-center grid-col-12"},oc=jl(()=>s("span",{class:"d-flex m-1 p-0 socEditTitle"},"Ladestand einstellen:",-1)),sc={class:"d-flex justify-content-stretch align-items-center"},nc=V({__name:"CpsListItem2",props:{chargepoint:{}},setup(t){const e=t,a=X(!1),o=p(()=>ue[e.chargepoint.chargeMode].icon),n=p(()=>{let T="";return e.chargepoint.isLocked?T="fa-lock":e.chargepoint.isCharging?T=" fa-bolt":e.chargepoint.isPluggedIn&&(T="fa-plug"),"fa "+T}),l=p(()=>{let T="var(--color-axis)";return e.chargepoint.isLocked?T="var(--color-evu)":e.chargepoint.isCharging?T="var(--color-charging)":e.chargepoint.isPluggedIn&&(T="var(--color-battery)"),{color:T,border:`0.5px solid ${T} `}}),c=p(()=>{switch(e.chargepoint.chargeMode){case"stop":return{"background-color":"var(--fg)"};default:return{"background-color":ue[e.chargepoint.chargeMode].color}}}),u=p(()=>je(e.chargepoint.power,g.decimalPlaces)),d=p(()=>e.chargepoint.current+" A"),m=p(()=>e.chargepoint.phasesInUse),y=p(()=>e.chargepoint.dailyYield>0?at(e.chargepoint.dailyYield,g.decimalPlaces):"0 Wh"),I=p(()=>"("+Math.round(e.chargepoint.rangeCharged).toString()+" "+e.chargepoint.rangeUnit+")"),C=p(()=>ue[e.chargepoint.chargeMode].name);function L(){K("socUpdate",1,e.chargepoint.connectedVehicle),B[e.chargepoint.id].waitingForSoc=!0}function A(){K("setSoc",Q.value,e.chargepoint.connectedVehicle),a.value=!1}const Q=p({get(){return e.chargepoint.soc},set(T){B[e.chargepoint.id].soc=T}}),G=p(()=>e.chargepoint.isLocked?"Gesperrt":e.chargepoint.isCharging?"Lädt":e.chargepoint.isPluggedIn?"Bereit":"Frei");return(T,F)=>(i(),h(R,null,[v(it,{titlecolor:T.chargepoint.color,fullwidth:!0,small:!0},{title:w(()=>[s("div",Ul,[s("span",Fl,S(T.chargepoint.name),1),s("span",{class:"badge rounded-pill statusbadge mx-2",style:J(l.value)},[s("i",{class:z([n.value,"me-1"])},null,2),U(" "+S(G.value),1)],4)])]),buttons:w(()=>[s("div",Nl,[s("span",{class:"badge rounded-pill modebadge mx-2",type:"button",style:J(c.value),"data-bs-toggle":"modal","data-bs-target":"#cpsconfig-"+T.chargepoint.id},[s("i",{class:z(["fa me-1",o.value])},null,2),U(" "+S(C.value),1)],12,Hl),s("span",{class:"fa-solid ms-2 fa-lg fa-edit ps-1",type:"button","data-bs-toggle":"modal","data-bs-target":"#cpsconfig-"+T.chargepoint.id},null,8,Rl)])]),default:w(()=>[s("div",ql,[v(Z,{heading:T.chargepoint.vehicleName,small:!0,class:"grid-left grid-col-4"},{default:w(()=>[T.chargepoint.isSocConfigured?(i(),h("span",Jl,[v(Qt,{class:"me-1",soc:T.chargepoint.soc},null,8,["soc"]),T.chargepoint.isSocConfigured&&T.chargepoint.isSocManual?(i(),h("i",{key:0,type:"button",class:"fa-solid fa-sm fas fa-edit",style:J({color:"var(--color-menu)"}),onClick:F[0]||(F[0]=P=>a.value=!a.value)},null,4)):b("",!0),T.chargepoint.isSocConfigured&&!T.chargepoint.isSocManual?(i(),h("i",{key:1,type:"button",class:z(["fa-solid fa-sm me-2",T.chargepoint.waitingForSoc?"fa-spinner fa-spin":"fa-sync"]),style:J({color:"var(--color-menu)"}),onClick:L},null,6)):b("",!0)])):b("",!0)]),_:1},8,["heading"]),v(Z,{heading:"Parameter:",small:!0,class:"grid-col-4"},{default:w(()=>[s("div",Ql,[s("span",Yl,[s("span",null,S(u.value),1),s("span",Zl,[s("span",Xl,S(m.value),1),s("span",null,S(d.value),1)])])])]),_:1}),v(Z,{heading:"Geladen:",small:!0,class:"grid-right grid-col-4"},{default:w(()=>[s("div",Kl,[s("span",ec,S(y.value),1),s("span",null,S(I.value),1)])]),_:1})]),a.value?(i(),h("div",tc,[s("div",ac,[oc,s("span",sc,[s("span",null,[v(Me,{id:"manualSoc",modelValue:Q.value,"onUpdate:modelValue":F[1]||(F[1]=P=>Q.value=P),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])])]),s("span",{type:"button",class:"fa-solid d-flex fa-lg me-2 mb-3 align-self-end fa-circle-check",onClick:A})])])):b("",!0)]),_:1},8,["titlecolor"]),(i(),$(Ya,{to:"body"},[(i(),$(Ba,{key:T.chargepoint.id,"modal-id":"cpsconfig-"+T.chargepoint.id},{title:w(()=>[U(" Konfiguration: "+S(T.chargepoint.name),1)]),default:w(()=>[T.chargepoint!=null?(i(),$(zt,{key:0,chargepoint:T.chargepoint},null,8,["chargepoint"])):b("",!0)]),_:1},8,["modal-id"]))]))],64))}});const rc=E(nc,[["__scopeId","data-v-0496b1f6"]]),ic=t=>(ae("data-v-8c6313d6"),t=t(),oe(),t),lc=ic(()=>s("span",{class:"fa-solid fa-charging-station"}," ",-1)),cc={class:"d-flex float-right justify-content-end align-items-center"},dc={key:0,class:"badge rounded-pill pricebadge mb-1 ms-2"},uc=V({__name:"CpSimpleList2",setup(t){const e=p(()=>Object.values(B));return(a,o)=>(i(),$(We,{"variable-width":!0},{title:w(()=>[lc,U(" Ladepunkte ")]),buttons:w(()=>[s("div",cc,[r(ee).active?(i(),h("span",dc,"Strompreis: "+S(r(ee).etCurrentPriceString),1)):b("",!0)])]),default:w(()=>[(i(!0),h(R,null,te(e.value,(n,l)=>(i(),h("div",{key:l,class:"subgrid pb-2"},[v(rc,{chargepoint:n},null,8,["chargepoint"])]))),128))]),_:1}))}});const hc=E(uc,[["__scopeId","data-v-8c6313d6"]]),$t=V({__name:"ChargePointList",props:{shortlist:{type:Boolean}},setup(t){const e=t;let a,o;const n=p(()=>{let u=Object.values(B);return c(),u}),l=p(()=>{switch(Object.values(B).length){case 0:return g.preferWideBoxes?"col-lg-6":"col-lg-4";case 1:return g.preferWideBoxes?"col-lg-6":"col-lg-4";case 2:return g.preferWideBoxes?"col-lg-12":"col-lg-8 ";default:return"col-lg-12"}});function c(){let u=document.querySelector(".swiper-chargepoints");if(u&&(o=u,a=o.swiper),a){let d="1";if(Ge.value)switch(Object.values(B).length){case 0:case 1:d="1";break;case 2:d="2";break;default:d="3"}o.setAttribute("slides-per-view",d),a.update()}}return Ce(()=>{let u=document.querySelector(".swiper-chargepoints");u&&(o=u,a=o.swiper),window.addEventListener("resize",c),window.document.addEventListener("visibilitychange",c)}),(u,d)=>(i(),h(R,null,[e.shortlist?b("",!0):(i(),h("swiper-container",{key:0,"space-between":0,"slides-per-view":1,pagination:{clickable:!0},class:z(["cplist m-0 p-0 swiper-chargepoints d-flex align-items-stretch",l.value])},[(i(!0),h(R,null,te(n.value,m=>(i(),h("swiper-slide",{key:m.id},[s("div",{class:z([r(Ge)?"mb-0":"mb-5","d-flex align-items-stretch flex-fill"])},[v(Vl,{chargepoint:m,"full-width":!0},null,8,["chargepoint"])],2)]))),128))],2)),e.shortlist?(i(),$(hc,{key:1})):b("",!0)],64))}}),pc={class:"container-fluid p-0 m-0"},gc={class:"row p-0 m-0"},mc={class:"d-grid gap-2"},fc=["onClick"],vc={class:"col-md-4 p-1"},_c={class:"d-grid gap-2"},bc={key:0},yc=s("hr",null,null,-1),wc=s("div",{class:"row"},[s("div",{class:"col text-center"},"Vorrang im Lademodus PV-Laden:")],-1),kc={class:"row justify-content-center m-1 p-0"},xc={class:"col-6 p-1 m-0"},Sc={class:"d-grid gap-2"},$c=s("span",{class:"fas fa-car"}," ",-1),Mc={class:"col-6 p-1 m-0"},Cc={class:"d-grid gap-2"},Pc=s("span",{class:"fas fa-car-battery"}," ",-1),Ic=V({__name:"BBSelect",props:{cpId:{}},setup(t){const e=t,a=[{mode:"instant_charging",name:"Sofort",color:"var(--color-charging)"},{mode:"pv_charging",name:"PV",color:"var(--color-pv)"},{mode:"scheduled_charging",name:"Zielladen",color:"var(--color-battery)"},{mode:"standby",name:"Standby",color:"var(--color-axis)"},{mode:"stop",name:"Stop",color:"var(--color-axis)"}],o=p(()=>B[e.cpId]);function n(m){return m==o.value.chargeMode?"btn btn-success buttonTextSize":"btn btn-secondary buttonTextSize"}function l(m){switch(m){case"ev":return ce.pvBatteryPriority?"btn-secondary":"btn-success";case"bat":return ce.pvBatteryPriority?"btn-success":"btn-secondary";default:return""}}function c(m){o.value.chargeMode=m}function u(m){o.value.isLocked=m}function d(m){ce.pvBatteryPriority=m}return(m,y)=>(i(),h("div",pc,[s("div",gc,[(i(),h(R,null,te(a,(I,C)=>s("div",{key:C,class:"col-md-4 p-1"},[s("div",mc,[s("button",{type:"button",class:z(n(I.mode)),style:{},onClick:L=>c(I.mode)},S(I.name),11,fc)])])),64)),s("div",vc,[s("div",_c,[o.value.isLocked?(i(),h("button",{key:0,type:"button",class:"btn btn-outline-success buttonTextSize","data-bs-dismiss":"modal",onClick:y[0]||(y[0]=I=>u(!1))}," Entsperren ")):b("",!0),o.value.isLocked?b("",!0):(i(),h("button",{key:1,type:"button",class:"btn btn-outline-danger buttonTextSize","data-bs-dismiss":"modal",onClick:y[1]||(y[1]=I=>u(!0))}," Sperren "))])])]),r(ce).isBatteryConfigured&&o.value.chargeMode=="pv_charging"?(i(),h("div",bc,[yc,wc,s("div",kc,[s("div",xc,[s("div",Sc,[s("button",{id:"evPriorityBtn",type:"button",class:z(["priorityModeBtn btn btn-secondary buttonTextSize",l("ev")]),"data-dismiss":"modal",priority:"1",onClick:y[2]||(y[2]=I=>d(!1))},[U(" EV "),$c],2)])]),s("div",Mc,[s("div",Cc,[s("button",{id:"batteryPriorityBtn",type:"button",class:z(["priorityModeBtn btn btn-secondary buttonTextSize",l("bat")]),"data-dismiss":"modal",priority:"0",onClick:y[3]||(y[3]=I=>d(!0))},[U(" Speicher "),Pc],2)])])])])):b("",!0)]))}}),Bc={class:"col-lg-4 p-0 m-0 mt-1"},Vc={class:"d-grid gap-2"},Lc=["data-bs-target"],Ac={class:"m-0 p-0 d-flex justify-content-between align-items-center"},Oc={class:"mx-1 badge rounded-pill smallTextSize plugIndicator"},Tc={key:0,class:"ms-2"},Dc={class:"m-0 p-0"},Gc={key:0,class:"ps-1"},Wc=V({__name:"BbChargeButton",props:{chargepoint:{}},setup(t){const e=t,a="chargeSelectModal"+e.chargepoint.id,o=p(()=>ue[e.chargepoint.chargeMode].name),n=p(()=>{let y={background:"var(--color-menu)"};return e.chargepoint.isLocked?y.background="var(--color-evu)":e.chargepoint.isCharging?y.background="var(--color-charging)":e.chargepoint.isPluggedIn&&(y.background="var(--color-battery)"),y}),l=p(()=>{if(ue){let y={background:ue[e.chargepoint.chargeMode].color,color:"white"};switch(e.chargepoint.chargeMode){case me.instant_charging:e.chargepoint.isCharging&&!e.chargepoint.isLocked&&(y=m(y));break;case me.standby:case me.stop:y.background="darkgrey",y.color="black";break;case me.scheduled_charging:e.chargepoint.isPluggedIn&&!e.chargepoint.isCharging&&!e.chargepoint.isLocked&&(y=m(y));break}return y}else return{background:"var(--color-bg)",color:"var(--color-bg)"}}),c=p(()=>ue?ue[e.chargepoint.chargeMode].icon:""),u=p(()=>ce.pvBatteryPriority?"fa-car-battery":"fa-car"),d=p(()=>{let y="fa-ellipsis";return e.chargepoint.isLocked?y="fa-lock":e.chargepoint.isCharging?y=" fa-bolt":e.chargepoint.isPluggedIn&&(y="fa-plug"),"fa "+y});function m(y){let I=y.color;return y.color=y.background,y.background=I,y}return(y,I)=>(i(),h("div",Bc,[s("div",Vc,[s("button",{type:"button",class:"btn mx-1 mb-0 p-1 mediumTextSize chargeButton shadow",style:J(n.value),"data-bs-toggle":"modal","data-bs-target":"#"+a},[s("div",Ac,[s("span",Oc,[s("i",{class:z(d.value)},null,2),y.chargepoint.isCharging?(i(),h("span",Tc,S(r(je)(y.chargepoint.power)),1)):b("",!0)]),s("span",Dc,S(y.chargepoint.name),1),s("span",{class:"mx-2 m-0 badge rounded-pill smallTextSize modeIndicator",style:J(l.value)},[s("i",{class:z(["fa me-1",c.value])},null,2),U(" "+S(o.value)+" ",1),y.chargepoint.chargeMode==r(me).pv_charging&&r(ce).isBatteryConfigured?(i(),h("span",Gc,[U(" ( "),s("i",{class:z(["fa m-0",u.value])},null,2),U(") ")])):b("",!0)],4)])],12,Lc)]),v(Ba,{"modal-id":a},{title:w(()=>[U(" Lademodus für "+S(y.chargepoint.vehicleName),1)]),default:w(()=>[v(Ic,{"cp-id":y.chargepoint.id},null,8,["cp-id"])]),_:1})]))}});const zc=E(Wc,[["__scopeId","data-v-97a4a3ff"]]),Ec={class:"row p-0 mt-0 mb-1 m-0"},jc={class:"col p-0 m-0"},Uc={class:"container-fluid p-0 m-0"},Fc={class:"row p-0 m-0 d-flex justify-content-center align-items-center"},Nc={key:0,class:"col time-display"},Hc=V({__name:"ButtonBar",setup(t){return(e,a)=>(i(),h("div",Ec,[s("div",jc,[s("div",Uc,[s("div",Fc,[r(g).showClock=="buttonbar"?(i(),h("span",Nc,S(r(va)(r(Wt))),1)):b("",!0),(i(!0),h(R,null,te(r(B),(o,n)=>(i(),$(zc,{key:n,chargepoint:o,"charge-point-count":Object.values(r(B)).length},null,8,["chargepoint","charge-point-count"]))),128))])])])]))}});const Rc=E(Hc,[["__scopeId","data-v-791e4be0"]]),Yt=t=>(ae("data-v-5ea167db"),t=t(),oe(),t),qc=Yt(()=>s("span",{class:"fas fa-car-battery me-2",style:{color:"var(--color-battery)"}}," ",-1)),Jc=Yt(()=>s("span",{class:"sh-title py-4"},"Speicher",-1)),Qc={class:"m-1 mt-0 p-0 grid12"},Yc=Yt(()=>s("span",{class:"todaystring mt-4 float-right"}," Heute:",-1)),Zc=V({__name:"BatteryList",setup(t){const e=p(()=>q.batOut.power>0?"Liefert":W.batIn.power>0?"Lädt":"Bereit"),a=p(()=>je(q.batOut.power+W.batIn.power));return(o,n)=>r(ce).isBatteryConfigured?(i(),$(nt,{key:0,"variable-width":!0,"full-width":!1},{title:w(()=>[qc,Jc]),default:w(()=>[s("div",Qc,[v(Z,{heading:"Ladestand:",class:"grid-left grid-col-4"},{default:w(()=>[v(Qt,{soc:r(ce).batterySoc,class:"me-2"},null,8,["soc"])]),_:1}),v(Z,{heading:"Status:",class:"grid-col-4"},{default:w(()=>[s("span",null,S(e.value),1)]),_:1}),v(Z,{heading:"Leistung:",class:"grid-right grid-col-4"},{default:w(()=>[s("span",null,S(a.value),1)]),_:1}),v(Z,{heading:"",class:"grid-left grid-col-4"},{default:w(()=>[Yc]),_:1}),v(Z,{heading:"Geladen:",class:"grid-col-4"},{default:w(()=>[s("span",null,S(r(at)(r(W).batIn.energy)),1)]),_:1}),v(Z,{heading:"Geliefert",class:"grid-right grid-col-4"},{default:w(()=>[s("span",null,S(r(at)(r(q).batOut.energy)),1)]),_:1})])]),_:1})):b("",!0)}});const Mt=E(Zc,[["__scopeId","data-v-5ea167db"]]),Xc={class:"d-flex float-right justify-content-end align-items-center"},Kc={key:0,class:"my-0 badge rounded-pill tempbadge mx-1"},ed={class:"subgrid"},td=V({__name:"SHListItem",props:{device:{}},setup(t){const e=t,a=p(()=>e.device.status=="on"?"fa-toggle-on":e.device.status=="waiting"?"fa-spinner fa-spin":"fa-toggle-off"),o=p(()=>{let u="var(--color-switchRed)";switch(e.device.status){case"on":u="var(--color-switchGreen)";break;case"detection":u="var(--color-switchBlue)";break;case"timeout":u="var(--color-switchWhite)";break;case"waiting":u="var(--color-menu)";break;default:u="var(--color-switchRed)"}return{color:u}});function n(){e.device.isAutomatic||(e.device.status=="on"?K("shSwitchOn",0,e.device.id):K("shSwitchOn",1,e.device.id),H[e.device.id].status="waiting")}function l(){e.device.isAutomatic?K("shSetManual",1,e.device.id):K("shSetManual",0,e.device.id)}const c=p(()=>e.device.isAutomatic?"Auto":"Man");return(u,d)=>(i(),$(it,{titlecolor:u.device.color,fullwidth:!0},{title:w(()=>[U(S(u.device.name),1)]),buttons:w(()=>[s("div",Xc,[(i(!0),h(R,null,te(u.device.temp,(m,y)=>(i(),h("span",{key:y,class:"p-0 m-0 align-items-center d-flex"},[m<300?(i(),h("span",Kc,S(r(Ao)(m)),1)):b("",!0)]))),128)),e.device.canSwitch?(i(),h("span",{key:0,class:z([a.value,"fa statusbutton mr-2 ms-4"]),style:J(o.value),onClick:n},null,6)):b("",!0),e.device.canSwitch?(i(),h("span",{key:1,class:"badge rounded-pill modebutton mx-2",onClick:l},S(c.value),1)):b("",!0)])]),default:w(()=>[s("div",ed,[v(Z,{heading:"Leistung:",class:"grid-col-4 grid-left"},{default:w(()=>[v(bt,{watt:u.device.power},null,8,["watt"])]),_:1}),v(Z,{heading:"Energie:",class:"grid-col-4"},{default:w(()=>[v(ft,{"watt-h":u.device.energy},null,8,["watt-h"])]),_:1}),v(Z,{heading:"Laufzeit:",class:"grid-col-4 grid-right"},{default:w(()=>[U(S(r(Vo)(u.device.runningTime)),1)]),_:1})])]),_:1},8,["titlecolor"]))}});const ad=E(td,[["__scopeId","data-v-a091330c"]]),lt=t=>(ae("data-v-84d6f9ad"),t=t(),oe(),t),od=lt(()=>s("span",{class:"fas fa-plug me-2",style:{color:"var(--color-devices)"}}," ",-1)),sd={class:"sh-title py-4"},nd=lt(()=>s("span",{class:"fa-solid fa-lg ps-1 fa-ellipsis-vertical"},null,-1)),rd=[nd],id=lt(()=>s("span",{class:"fas fa-gear"}," ",-1)),ld=lt(()=>s("span",{class:"fa-solid fa-lg ps-1 fa-circle-check"},null,-1)),cd=[ld],dd=["id","onUpdate:modelValue","value"],ud=["for"],hd=lt(()=>s("div",{class:"col-12 mb-3 pe-3 mt-0"},[s("button",{class:"btn btn-sm btn-secondary float-end"},"Schließen")],-1)),pd=[hd],gd=3,md=V({__name:"SmartHomeList",setup(t){const e=p(()=>Ge.value?a.value.reduce((c,u)=>{const d=c;let m=c[c.length-1];return m.length>=gd?c.push([u]):m.push(u),d},[[]]):[a.value]),a=p(()=>Object.values(H).filter(c=>c.configured));function o(c){return"Geräte"+(Ge.value&&e.value.length>1?"("+(c+1)+")":"")}function n(){l.value=!l.value}const l=X(!1);return(c,u)=>(i(),h(R,null,[(i(!0),h(R,null,te(e.value,(d,m)=>(i(),$(We,{key:m,"variable-width":!0},{title:w(()=>[s("span",{onClick:n},[od,s("span",sd,S(o(m)),1)])]),buttons:w(()=>[s("span",{class:"ms-2 pt-1",onClick:n},rd)]),default:w(()=>[(i(!0),h(R,null,te(d,y=>(i(),$(ad,{key:y.id,device:y,class:"subgrid pb-2"},null,8,["device"]))),128))]),_:2},1024))),128)),l.value?(i(),$(We,{key:0},{title:w(()=>[s("span",{class:"smarthome",onClick:n},[id,U(" Einstellungen")])]),buttons:w(()=>[s("span",{class:"ms-2 pt-1",onClick:n},cd)]),default:w(()=>[v(j,{title:"Im Energie-Graph anzeigen:",icon:"fa-chart-column",fullwidth:!0},{default:w(()=>[(i(!0),h(R,null,te(a.value,(d,m)=>(i(),h("div",{key:m},[qe(s("input",{id:"check"+m,"onUpdate:modelValue":y=>d.showInGraph=y,class:"form-check-input",type:"checkbox",value:d},null,8,dd),[[Et,d.showInGraph]]),s("label",{class:"form-check-label px-2",for:"check"+m},S(d.name),9,ud)]))),128))]),_:1}),s("div",{class:"row p-0 m-0",onClick:n},pd)]),_:1})):b("",!0)],64))}});const Ct=E(md,[["__scopeId","data-v-84d6f9ad"]]),fd={class:"row py-0 px-0 m-0"},vd=["breakpoints"],_d=V({__name:"CarouselFix",setup(t){let e,a;const o=X(!1),n=p(()=>o.value?{992:{slidesPerView:1,spaceBetween:0}}:{992:{slidesPerView:3,spaceBetween:0}});return Za(()=>g.zoomGraph,l=>{if(e){let c=l?"1":"3";a.setAttribute("slides-per-view",c),e.activeIndex=1,e.update()}}),Ce(()=>{let l=document.querySelector(".swiper-carousel");l&&(a=l,e=a.swiper)}),(l,c)=>(i(),h("div",fd,[s("swiper-container",{"space-between":0,pagination:{clickable:!0},"slides-per-view":"1",class:"p-0 m-0 swiper-carousel",breakpoints:n.value},[s("swiper-slide",null,[s("div",{class:z([r(Ge)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[le(l.$slots,"item1",{},void 0,!0)],2)]),s("swiper-slide",null,[s("div",{class:z([r(Ge)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[le(l.$slots,"item2",{},void 0,!0)],2)]),s("swiper-slide",null,[s("div",{class:z([r(Ge)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[le(l.$slots,"item3",{},void 0,!0)],2)])],8,vd)]))}});const bd=E(_d,[["__scopeId","data-v-dc35b0f6"]]);function yd(t,e){t=="openWB/graph/boolDisplayLiveGraph"?ce.displayLiveGraph=+e==1:t.match(/^openwb\/graph\/alllivevaluesJson[1-9][0-9]*$/i)?wd(t,e):t=="openWB/graph/lastlivevaluesJson"?kd(t,e):t=="openWB/graph/config/duration"&&(ie.duration=JSON.parse(e))}function wd(t,e){if(!ie.initialized){let a=[];const o=e.toString().split(` +`);o.length>1?a=o.map(c=>JSON.parse(c)):a=[];const n=t.match(/(\d+)$/g),l=n?n[0]:"";l!=""&&typeof ie.rawDataPacks[+l-1]>"u"&&(ie.rawDataPacks[+l-1]=a,ie.initCounter++)}if(ie.initCounter==16){const a=[];ie.unsubscribeRefresh(),ie.initialized=!0,ie.rawDataPacks.map(o=>{o.map(n=>{const l=Va(n);a.push(l)})}),rt(a),ie.subscribeUpdates()}}function kd(t,e){const a=JSON.parse(e),o=Va(a);ie.graphRefreshCounter++,rt(_.data.concat(o)),ie.graphRefreshCounter>60&&ie.activate()}function Va(t){const e={};e.date=xd(t.time).valueOf(),+t.grid>0?(e.evuIn=+t.grid,e.evuOut=0):+t.grid<=0?(e.evuIn=0,e.evuOut=-t.grid):(e.evuIn=0,e.evuOut=0),+t["pv-all"]>=0?(e.pv=+t["pv-all"],e.inverter=0):(e.pv=0,e.inverter=-t["pv-all"]),e.house=+t["house-power"],+t["bat-all-power"]>0?(e.batOut=0,e.batIn=+t["bat-all-power"]):+t["bat-all-power"]<0?(e.batOut=-t["bat-all-power"],e.batIn=0):(e.batOut=0,e.batIn=0),t["bat-all-soc"]?e.batterySoc=+t["bat-all-soc"]:e.batterySoc=0,t["ev0-soc"]&&(e.soc0=+t["ev0-soc"]),t["ev1-soc"]&&(e.soc1=+t["ev1-soc"]),e.charging=+t["charging-all"];for(let a=0;a<10;a++){const o="cp"+a;e[o]=+t[o+"-power"]}return e.selfUsage=e.pv-e.evuOut,e.selfUsage<0&&(e.selfUsage=0),e.devices=0,e}function xd(t){const e=new Date(Date.now()),a=864e5;let o=new Date;const n=ut("%H:%M:%S")(t);return n&&(o=n,o.setDate(e.getDate()),o.setMonth(e.getMonth()),o.setFullYear(e.getFullYear()),o.getHours()>e.getHours()&&(o=new Date(o.getTime()-a))),o}const Sd=["evuIn","pv","batIn","evuOut"];let vt=[];function $d(t,e){const a=JSON.parse(e).entries,o=JSON.parse(e).totals;Ft(),vt=[],Ht.map(l=>{D.setEnergyPv(l,0),D.setEnergyBat(l,0)});const n=Md(a);rt(n),Rt(o,vt),g.debug&&(console.debug("---------------------------------------- Graph Data ---------------------------"),console.debug("--- Incoming graph data:"),console.debug(a),console.debug("data to be displayed:"),console.debug(n),console.debug("-------------------------------------------------------------------------------")),_.graphMode=="today"&&setTimeout(()=>se.activate(),3e5)}function Md(t){const e=[];let a={};return t.map(o=>{a=Cd(o);const n=a;e.push(n)}),e}function Cd(t){const e={};if(_.graphMode=="day"||_.graphMode=="today")if(typeof t.date=="number")e.date=new Date(+t.date*1e3).getTime();else{const o=ut("%H:%M")(t.date);o&&(o.setMonth(se.date.getMonth()),o.setDate(se.date.getDate()),o.setFullYear(se.date.getFullYear()),e.date=o.getTime())}else if(typeof t.date=="string"){const o=ut("%Y%m%d")(t.date);o&&(e.date=o.getDate())}return e.evuOut=0,e.evuIn=0,Object.entries(t.counter).forEach(([o,n])=>{n.grid&&(e.evuOut+=n.power_exported,e.evuIn+=n.power_imported,vt.includes(o)||vt.push(o))}),e.evuOut==0&&e.evuIn==0&&Object.entries(t.counter).forEach(o=>{e.evuOut+=o[1].power_exported,e.evuIn+=o[1].power_imported}),e.pv=t.pv.all.power_exported,Object.entries(t.bat).length>0?(e.batIn=t.bat.all.power_imported,e.batOut=t.bat.all.power_exported,e.batSoc=t.bat.all.soc??0):(e.batIn=0,e.batOut=0,e.batSoc=0),Object.entries(t.cp).forEach(([o,n])=>{o!="all"?(e[o]=n.power_imported,D.keys().includes(o)||D.addItem(o)):e.charging=n.power_imported}),Object.entries(t.ev).forEach(([o,n])=>{o!="all"&&(e["soc"+o.substring(2)]=n.soc)}),e.devices=0,Object.entries(t.sh).forEach(([o,n])=>{o!="all"&&(e[o]=n.power_imported??0,e.devices+=n.power_imported??0,D.keys().includes(o)||D.addItem(o))}),e.selfUsage=e.pv-e.evuOut,t.hc&&t.hc.all?e.house=t.hc.all.power_imported-e.devices:e.house=e.evuIn+e.batOut+e.pv-e.evuOut-e.charging-e.devices-e.batOut,e.evuIn+e.batOut+e.pv>0?D.keys().filter(o=>!Sd.includes(o)).map(o=>{is(o,e)}):Object.keys(e).map(o=>{e[o+"Pv"]=0,e[o+"Bat"]=0}),e}let ct={};const Zt=["charging","house","batIn","devices"],Pd=["evuIn","pv","batIn","evuOut"];let et=[];function Id(t,e){const a=JSON.parse(e).entries,o=JSON.parse(e).totals;Ft(),et=[],Zt.map(n=>{D.items[n].energyPv=0,D.items[n].energyBat=0}),a.length>0&&rt(La(a)),Rt(o,[])}function Bd(t,e){const a=JSON.parse(e).entries,o=JSON.parse(e).totals;Ft(),et=[],Zt.forEach(n=>{D.items[n].energyPv=0,D.items[n].energyBat=0}),rt(La(a)),Rt(o,[])}function La(t){const e=[];let a={};return ct={},t.map(o=>{a=Vd(o),e.push(a),Object.keys(a).forEach(n=>{n!="date"&&(a[n]<0&&(console.warn(`Negative energy value for ${n} in row ${a.date}. Ignoring the value.`),a[n]=0),ct[n]?ct[n]+=a[n]:ct[n]=a[n])})}),e}function Vd(t){const e={},a=ut("%Y%m%d")(t.date);a&&(e.date=_.graphMode=="month"?a.getDate():a.getMonth()+1),e.evuOut=0,e.evuIn=0;let o=0,n=0;return Object.entries(t.counter).forEach(([c,u])=>{o+=u.energy_exported,n+=u.energy_imported,u.grid&&(e.evuOut+=u.energy_exported,e.evuIn+=u.energy_imported,et.includes(c)||et.push(c))}),et.length==0&&(e.evuOut=o,e.evuIn=n),e.pv=t.pv.all.energy_exported,Object.entries(t.bat).length>0?(t.bat.all.energy_imported>=0?e.batIn=t.bat.all.energy_imported:(console.warn("ignoring negative value for batIn on day "+e.date),e.batIn=0),t.bat.all.energy_exported>=0?e.batOut=t.bat.all.energy_exported:(console.warn("ignoring negative value for batOut on day "+e.date),e.batOut=0)):(e.batIn=0,e.batOut=0),Object.entries(t.cp).forEach(([c,u])=>{c!="all"?(D.keys().includes(c)||D.addItem(c),e[c]=u.energy_imported):e.charging=u.energy_imported}),Object.entries(t.ev).forEach(([c,u])=>{c!="all"&&(e["soc-"+c]=u.soc)}),e.devices=Object.entries(t.sh).reduce((c,u)=>(D.keys().includes(u[0])||D.addItem(u[0]),u[1].energy_imported>=0?c+=u[1].energy_imported:console.warn(`Negative energy value for device ${u[0]} in row ${e.date}. Ignoring this value`),c),0),e.house=e.pv+e.evuIn+e.batOut-e.evuOut-e.batIn-e.charging,e.selfUsage=e.pv-e.evuOut,e.evuIn+e.batOut+e.pv>0?D.keys().filter(c=>!Pd.includes(c)).map(c=>{ls(c,e)}):Zt.map(c=>{e[c+"Pv"]=0,e[c+"Bat"]=0}),e}class Ld{constructor(e){f(this,"id");f(this,"dailyYieldExport",0);f(this,"dailyYieldImport",0);f(this,"exported",0);f(this,"faultState",0);f(this,"faultStr","");f(this,"imported",0);f(this,"power",0);f(this,"soc",0);this.id=e}}class Ad{constructor(){f(this,"dailyExport",0);f(this,"dailyImport",0);f(this,"exported",0);f(this,"imported",0);f(this,"power",0);f(this,"soc",0)}}const ve=ne({});ne(new Ad);function Od(t){t in ve?console.info("Duplicate battery message: "+t):ve[t]=new Ld(t)}function Td(){Object.keys(ve).forEach(t=>{delete ve[parseInt(t)]})}function Dd(t,e){const a=Gd(t);if(a&&!(a in ve)){console.warn("Invalid battery index received: "+a);return}t=="openWB/bat/config/configured"?ce.isBatteryConfigured=e=="true":t=="openWB/bat/get/power"?+e>0?(W.batIn.power=+e,q.batOut.power=0):(W.batIn.power=0,q.batOut.power=-e):t=="openWB/bat/get/soc"?ce.batterySoc=+e:t=="openWB/bat/get/daily_exported"?q.batOut.energy=+e:t=="openWB/bat/get/daily_imported"?W.batIn.energy=+e:a&&(t.match(/^openwb\/bat\/[0-9]+\/get\/daily_yield_export$/i)?ve[a].dailyYieldExport=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/daily_yield_import$/i)?ve[a].dailyYieldImport=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/exported$/i)?ve[a].exported=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/fault_state$/i)?ve[a].faultState=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/fault_str$/i)?ve[a].faultStr=e:t.match(/^openwb\/bat\/[0-9]+\/get\/imported$/i)?ve[a].imported=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/power$/i)?ve[a].power=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/soc$/i)&&(ve[a].soc=+e))}function Gd(t){let e=0;try{const a=t.match(/(?:\/)([0-9]+)(?=\/)/g);return a?(e=+a[0].replace(/[^0-9]+/g,""),e):void 0}catch{console.warn("Parser error in getIndex for topic "+t)}}function Wd(t,e){if(t=="openWB/optional/et/provider")JSON.parse(e).type==null?ee.active=!1:(ee.active=!0,ee.etProvider=JSON.parse(e).name);else if(t=="openWB/optional/et/get/prices"){const a=JSON.parse(e);ee.etPriceList=new Map,Object.keys(a).map(o=>{ee.etPriceList.set(new Date(+o*1e3),a[o]*1e5)})}}function zd(t,e){const a=Aa(t);if(a&&!(a in B)){console.warn("Invalid chargepoint id received: "+a);return}if(t=="openWB/chargepoint/get/power"?W.charging.power=+e:t=="openWB/chargepoint/get/daily_imported"&&(W.charging.energy=+e),t=="openWB/chargepoint/get/daily_exported")ce.cpDailyExported=+e;else if(a){if(t.match(/^openwb\/chargepoint\/[0-9]+\/config$/i))if(B[a]){const o=JSON.parse(e);B[a].name=o.name,B[a].icon=o.name,ge["cp"+a]?(ge["cp"+a].name=o.name,ge["cp"+a].icon=o.name):ge["cp"+a]={name:o.name,icon:o.name,color:"var(--color-charging)"}}else console.warn("invalid chargepoint index: "+a);else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/state_str$/i))B[a].stateStr=JSON.parse(e);else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/fault_str$/i))B[a].faultStr=JSON.parse(e);else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/fault_state$/i))B[a].faultState=+e;else if(t.match(/^openWB\/chargepoint\/[0-9]+\/get\/power$/i))B[a].power=+e;else if(t.match(/^openWB\/chargepoint\/[0-9]+\/get\/daily_imported$/i))B[a].dailyYield=+e;else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/plug_state$/i))B[a].isPluggedIn=e=="true";else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/charge_state$/i))B[a].isCharging=e=="true";else if(t.match(/^openwb\/chargepoint\/[0-9]+\/set\/manual_lock$/i))B[a].updateIsLocked(e=="true");else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/enabled$/i))B[a].isEnabled=e=="1";else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/phases_in_use/i))B[a].phasesInUse=+e;else if(t.match(/^openwb\/chargepoint\/[0-9]+\/set\/current/i))B[a].current=+e;else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/currents/i))B[a].currents=JSON.parse(e);else if(t.match(/^openwb\/chargepoint\/[0-9]+\/set\/log/i)){const o=JSON.parse(e);B[a].chargedSincePlugged=o.imported_since_plugged}else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/soc$/i)){const o=JSON.parse(e);B[a].soc=o.soc,B[a].waitingForSoc=!1,B[a].rangeCharged=o.range_charged,B[a].rangeUnit=o.range_unit}else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/info$/i)){const o=JSON.parse(e);B[a].vehicleName=String(o.name),B[a].updateConnectedVehicle(+o.id)}else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/config$/i)){const o=JSON.parse(e);switch(o.chargemode){case"instant_charging":B[a].updateChargeMode(me.instant_charging);break;case"pv_charging":B[a].updateChargeMode(me.pv_charging);break;case"scheduled_charging":B[a].updateChargeMode(me.scheduled_charging);break;case"standby":B[a].updateChargeMode(me.standby);break;case"stop":B[a].updateChargeMode(me.stop);break}B[a].chargeTemplate=o.charge_template,B[a].averageConsumption=o.average_consumption}}}function Ed(t,e){const a=Aa(t);if(a!=null){if(!(a in Y)){const o=new po(a);Y[a]=o}if(t.match(/^openwb\/vehicle\/[0-9]+\/name$/i))Object.values(B).forEach(o=>{o.connectedVehicle==a&&(o.vehicleName=JSON.parse(e))}),Y[a].name=JSON.parse(e);else if(t.match(/^openwb\/vehicle\/[0-9]+\/get\/soc$/i))Y[a].soc=JSON.parse(e);else if(t.match(/^openwb\/vehicle\/[0-9]+\/get\/range$/i))Y[a].range=+e;else if(t.match(/^openwb\/vehicle\/[0-9]+\/charge_template$/i))Y[a].updateChargeTemplateId(+e);else if(t.match(/^openwb\/vehicle\/[0-9]+\/ev_template$/i))Y[a].updateEvTemplateId(+e);else if(t.match(/^openwb\/vehicle\/[0-9]+\/soc_module\/config$/i)){const o=JSON.parse(e);Object.values(B).forEach(n=>{n.connectedVehicle==a&&(n.isSocConfigured=o.type!==null,n.isSocManual=o.type=="manual")})}}}function jd(t,e){if(t.match(/^openwb\/vehicle\/template\/charge_template\/[0-9]+$/i)){const a=t.match(/[0-9]+$/i);if(a){const o=+a[0],n=JSON.parse(e);fe[o]=n,Ud(o,n)}}else if(t.match(/^openwb\/vehicle\/template\/charge_template\/[0-9]+\/time_charging\/plans\/[0-9]+$/i)){const a=t.match(/(?:\/)([0-9]+)(?:\/)/g),o=t.match(/[0-9]+$/i);if(a&&o){const n=+a[0].replace(/[^0-9]+/g,""),l=+o[0],c=JSON.parse(e);n in Xe||(Xe[n]=[]),Xe[n][l]=c}}else if(t.match(/^openwb\/vehicle\/template\/charge_template\/[0-9]+\/chargemode\/scheduled_charging\/plans\/[0-9]+$/i)){const a=t.match(/(?:\/)([0-9]+)(?:\/)/g),o=t.match(/[0-9]+$/i);if(a&&o){const n=+a[0].replace(/[^0-9]+/g,""),l=+o[0],c=JSON.parse(e);n in Ze||(Ze[n]=[]),Ze[n][l]=c}}else if(t.match(/^openwb\/vehicle\/template\/ev_template\/[0-9]+$/i)){const a=t.match(/[0-9]+$/i);if(a){const o=+a[0],n=JSON.parse(e);Gt[o]=n}}}function Ud(t,e){Object.values(B).forEach(a=>{a.chargeTemplate==t&&(a.updateCpPriority(e.prio),a.updateInstantChargeLimitMode(e.chargemode.instant_charging.limit.selected),a.updateInstantTargetCurrent(e.chargemode.instant_charging.current),a.updateInstantTargetSoc(e.chargemode.instant_charging.limit.soc),a.updateInstantMaxEnergy(e.chargemode.instant_charging.limit.amount),a.updatePvFeedInLimit(e.chargemode.pv_charging.feed_in_limit),a.updatePvMinCurrent(e.chargemode.pv_charging.min_current),a.updatePvMaxSoc(e.chargemode.pv_charging.max_soc),a.updatePvMinSoc(e.chargemode.pv_charging.min_soc),a.updatePvMinSocCurrent(e.chargemode.pv_charging.min_soc_current))})}function Aa(t){let e=0;try{const a=t.match(/(?:\/)([0-9]+)(?=\/)/g);return a?(e=+a[0].replace(/[^0-9]+/g,""),e):void 0}catch{console.warn("Parser error in getIndex for topic "+t)}}function Fd(t,e){t.match(/^openWB\/LegacySmarthome\/config\//i)?Nd(t,e):t.match(/^openWB\/LegacySmarthome\/Devices\//i)&&Hd(t,e)}function Nd(t,e){const a=Oa(t);a!=null&&(a in H||Nt(a),t.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_configured$/i)?H[a].configured=e!="0":t.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_name$/i)?(H[a].name=e.toString(),H[a].icon=e.toString(),ge["sh"+a].name=e.toString(),ge["sh"+a].icon=e.toString()):t.match(/^openWB\/LegacySmarthome\/config\/set\/Devices\/[0-9]+\/mode$/i)?H[a].isAutomatic=e=="0":t.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_canSwitch$/i)?H[a].canSwitch=e=="1":t.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_homeConsumtion$/i)?H[a].countAsHouse=e=="1":t.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_temperatur_configured$/i)&&(H[a].tempConfigured=+e))}function Hd(t,e){const a=Oa(t);if(a==null){console.warn("Smarthome: Missing index in "+t);return}if(a in H||Nt(a),t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/Watt$/i))H[a].power=+e,Rd("power");else if(!t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/Wh$/i)){if(t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/RunningTimeToday$/i))H[a].runningTime=+e;else if(t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor0$/i))H[a].temp[0]=+e;else if(t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor1$/i))H[a].temp[1]=+e;else if(t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor2$/i))H[a].temp[2]=+e;else if(t.match(/^openWB\/LegacySmartHome\/Devices\/[0-9]+\/Status$/i))switch(+e){case 10:H[a].status="off";break;case 11:H[a].status="on";break;case 20:H[a].status="detection";break;case 30:H[a].status="timeout";break;default:H[a].status="off"}}}function Rd(t){switch(t){case"power":W.devices.power=Object.values(H).filter(e=>e.configured&&!e.countAsHouse).reduce((e,a)=>e+a.power,0);break;case"energy":W.devices.energy=Object.values(H).filter(e=>e.configured&&!e.countAsHouse).reduce((e,a)=>e+a.energy,0);break;default:console.error("Unknown category")}}function Oa(t){let e=0;try{const a=t.match(/(?:\/)([0-9]+)(?=\/)/g);return a?(e=+a[0].replace(/[^0-9]+/g,""),e):void 0}catch{console.warn("Parser error in getIndex for topic "+t)}}class qd{constructor(e){f(this,"id");f(this,"name","Zähler");f(this,"power",0);f(this,"energy_imported",0);f(this,"energy_exported",0);f(this,"grid",!1);f(this,"type","counter");f(this,"color","var(--color-evu)");f(this,"energyPv",0);f(this,"energyBat",0);f(this,"pvPercentage",0);f(this,"icon","");this.id=e}}const _e=ne({});function Jd(t,e){if(t in _e)console.info("Duplicate counter message: "+t);else switch(_e[t]=new qd(t),_e[t].type=e,e){case"counter":_e[t].color="var(--color-evu)";break;case"inverter":_e[t].color="var(--color-pv)";break;case"cp":_e[t].color="var(--color-charging)";break;case"bat":_e[t].color="var(--color-bat)";break}}const Qd=["openWB/counter/#","openWB/bat/#","openWB/pv/get/#","openWB/chargepoint/#","openWB/vehicle/#","openWB/general/chargemode_config/pv_charging/#","openWB/optional/et/#","openWB/system/#","openWB/LegacySmartHome/#","openWB/command/"+jt()+"/#"];function Yd(){co(Zd),Qd.forEach(t=>{Ee(t)}),he()}function Zd(t,e){const a=e.toString();t.match(/^openwb\/counter\/[0-9]+\//i)?Xd(t,a):t.match(/^openwb\/counter\//i)?Kd(t,a):t.match(/^openwb\/bat\//i)?Dd(t,a):t.match(/^openwb\/pv\//i)?eu(t,a):t.match(/^openwb\/chargepoint\//i)?zd(t,a):t.match(/^openwb\/vehicle\/template\//i)?jd(t,a):t.match(/^openwb\/vehicle\//i)?Ed(t,a):t.match(/^openwb\/general\/chargemode_config\/pv_charging\//i)?tu(t,a):t.match(/^openwb\/graph\//i)?yd(t,a):t.match(/^openwb\/log\/daily\//i)?$d(t,a):t.match(/^openwb\/log\/monthly\//i)?Id(t,a):t.match(/^openwb\/log\/yearly\//i)?Bd(t,a):t.match(/^openwb\/optional\/et\//i)?Wd(t,a):t.match(/^openwb\/system\//i)?ou(t,a):t.match(/^openwb\/LegacySmartHome\//i)?Fd(t,a):t.match(/^openwb\/command\//i)&&su(t,a)}function Xd(t,e){const a=t.split("/"),o=+a[2];if(o==ce.evuId?au(t,e):a[3]=="config",a[3]=="get"&&o in _e)switch(a[4]){case"power":_e[o].power=+e;break;case"config":break;case"fault_str":break;case"fault_state":break;case"power_factors":break;case"imported":break;case"exported":break;case"frequency":break;case"daily_imported":_e[o].energy_imported=+e;break;case"daily_exported":_e[o].energy_exported=+e;break}}function Kd(t,e){if(t.match(/^openwb\/counter\/get\/hierarchy$/i)){const a=JSON.parse(e);if(a.length){mo(),Td();for(const o of a)o.type=="counter"&&(ce.evuId=o.id);Ta(a[0])}}else t.match(/^openwb\/counter\/set\/home_consumption$/i)?(W.house.power=+e,_o()):t.match(/^openwb\/counter\/set\/daily_yield_home_consumption$/i)&&(W.house.energy=+e)}function Ta(t){switch(t.type){case"counter":Jd(t.id,t.type);break;case"cp":go(t.id);break;case"bat":Od(t.id);break}t.children.forEach(e=>Ta(e))}function eu(t,e){switch(t){case"openWB/pv/get/power":q.pv.power=-e;break;case"openWB/pv/get/daily_exported":q.pv.energy=+e;break}}function tu(t,e){const a=t.split("/");if(a.length>0)switch(a[4]){case"bat_prio":ce.updatePvBatteryPriority(e=="true");break}}function au(t,e){switch(t.split("/")[4]){case"power":+e>0?(q.evuIn.power=+e,W.evuOut.power=0):(q.evuIn.power=0,W.evuOut.power=-e);break;case"daily_imported":q.evuIn.energy=+e;break;case"daily_exported":W.evuOut.energy=+e;break}}function ou(t,e){if(t.match(/^openWB\/system\/device\/[0-9]+\/component\/[0-9]+\/config$/i)){const a=JSON.parse(e);a.type=="counter"&&(_e[a.id].name=a.name)}}function su(t,e){const a=t.split("/");if(t.match(/^openWB\/command\/[a-z]+\/error$/i)&&a[2]==jt()){const o=JSON.parse(e);console.error(`Error message from openWB: +Command: ${o.command} +Data: JSON.stringify(err.data) +Error: + ${o.error}`)}}const nu=0,ru={host:location.hostname,port:location.protocol=="https:"?443:80,endpoint:"/ws",protocol:location.protocol=="https:"?"wss":"ws",clean:!0,connectTimeout:4e3,reconnectPeriod:4e3,clientId:Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,6),username:"openWB",password:"openWB"},la={topic:"",qos:nu};let He;const{host:iu,port:lu,endpoint:cu,...Da}=ru,du=`${Da.protocol}://${iu}:${lu}${cu}`;try{He=ca.connect(du,Da),He.on("connect",()=>{console.info("MQTT connection successful")}),He.on("error",t=>{console.error("MQTT connection failed: ",t)})}catch(t){console.error("MQTT connect error: ",t)}function uu(t){He?He.on("message",t):console.error("MqttRegister: MQTT client not available")}function hu(t){la.topic=t;const{topic:e,qos:a}=la;He.subscribe(e,{qos:a},o=>{if(o){console.error("MQTT Subscription error: "+o);return}console.info("MQTT Subscription successful: "+t)})}const _t=ne([]);let pu=class Ga{constructor(e,a,o,n){f(this,"name");f(this,"children");f(this,"count");f(this,"lastValue");this.name=e,this.children=a,this.count=o,this.lastValue=n}insert(e,a){if(e.length){const o=e.splice(1);if(e[0]==this.name)if(o.length){let n=!1;if(this.children.forEach(l=>{l.name==o[0]&&(l.insert(o,a),n=!0)}),!n){const l=new Ga(o[0],[],0,"");l.insert(o,a),this.children.push(l)}}else this.count=this.count+1,this.lastValue=a}}};function gu(t,e){const a=t.split("/");if(a.length){let o=!1;if(_t.forEach(n=>{n.name==a[0]&&(n.insert(a,e),o=!0)}),!o){const n=new pu(a[0],[],0,"");_t.push(n),n.insert(a,e)}}}const mu=["openWB/#"];function fu(){uu(vu),mu.forEach(t=>{hu(t)})}function vu(t,e){gu(t,e.toString())}const _u={class:"row p-0 mb-0 mx-0"},bu={class:"py-2 m-0"},yu={key:0},wu={key:1,style:{"background-color":"white"},class:"p-2"},ku={key:0,class:"col-md-9 m-0 p-0 ps-2"},xu={class:"container-fluid m-0 p-0"},Su=V({__name:"MqttNode",props:{node:{},level:{},hide:{type:Boolean},expandAll:{type:Boolean}},setup(t){const e=t;let a=X(!e.hide),o=X(!1);const n=p(()=>e.node.name),l=p(()=>[...e.node.children].sort((y,I)=>y.namee.node.count>0?"("+e.node.count+")":""),u=p(()=>e.node.children.length),d=p(()=>e.node.lastValue!=""?{"background-color":"lightgoldenrodyellow"}:{"background-color":"lightsteelblue"});function m(){u.value>0&&(a.value=!a.value),e.node.lastValue!=""&&(o.value=!o.value)}return(y,I)=>{const C=Xa("MqttNode",!0);return i(),h("div",_u,[s("div",{class:"col-md m-0 px-2 node",style:J(d.value),onClick:m},[s("p",bu,S(n.value)+S(c.value),1),r(o)?(i(),h("hr",yu)):b("",!0),r(o)?(i(),h("p",wu,[s("code",null,S(e.node.lastValue),1)])):b("",!0)],4),(r(a)||e.expandAll)&&u.value>0?(i(),h("div",ku,[s("div",xu,[(i(!0),h(R,null,te(l.value,(L,A)=>(i(),$(C,{key:A,level:e.level+1,node:L,hide:!0,"expand-all":e.expandAll},null,8,["level","node","expand-all"]))),128))])])):b("",!0)])}}});const $u=E(Su,[["__scopeId","data-v-3dfd535f"]]),Xt=t=>(ae("data-v-bf618b70"),t=t(),oe(),t),Mu={class:"mqviewer"},Cu={class:"row pt-2"},Pu={class:"col"},Iu=Xt(()=>s("h3",{class:"mqtitle ps-2"},"MQTT Message Viewer",-1)),Bu=Xt(()=>s("hr",null,null,-1)),Vu=Xt(()=>s("hr",null,null,-1)),Lu={key:0},Au=V({__name:"MQTTViewer",setup(t){Ce(()=>{fu()});const e=X(!1);function a(){e.value=!e.value}const o=p(()=>e.value?"active":"");return(n,l)=>(i(),h("div",Mu,[s("div",Cu,[s("div",Pu,[Iu,Bu,s("button",{class:z(["btn btn-small btn-outline-primary ms-2",o.value]),onClick:a}," Expand All ",2),Vu])]),r(_t)[0]?(i(),h("div",Lu,[(i(!0),h(R,null,te(r(_t)[0].children.sort((c,u)=>c.name(i(),$($u,{key:u,node:c,level:1,hide:!0,"expand-all":e.value},null,8,["node","expand-all"]))),128))])):b("",!0)]))}});const Ou=E(Au,[["__scopeId","data-v-bf618b70"]]),Tu=["value"],Du=V({__name:"SelectInput",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const a=t,o=p({get(){return a.modelValue},set(n){e("update:modelValue",n)}});return(n,l)=>qe((i(),h("select",{id:"selectme","onUpdate:modelValue":l[0]||(l[0]=c=>o.value=c),class:"form-select"},[(i(!0),h(R,null,te(n.options,(c,u)=>(i(),h("option",{key:u,value:c[1]},S(c[0]),9,Tu))),128))],512)),[[Ka,o.value]])}});const Gu=E(Du,[["__scopeId","data-v-5e33ce1f"]]),Wa=t=>(ae("data-v-3556e9f3"),t=t(),oe(),t),Wu=Wa(()=>s("span",{type:"button",class:"float-end mt-0 ms-1","data-bs-toggle":"collapse","data-bs-target":"#themesettings"},[s("span",null,[s("i",{class:"fa-solid fa-circle-check"})])],-1)),zu={class:"subgrid m-0 p-0"},Eu={class:"settingscolumn"},ju={class:"settingscolumn"},Uu={class:"settingscolumn"},Fu=Wa(()=>s("div",{class:"grid-col-12 mb-3 me-3"},[s("button",{class:"btn btn-sm btn-secondary float-end","data-bs-toggle":"collapse","data-bs-target":"#themesettings"}," Schließen ")],-1)),Nu=V({__name:"ThemeSettings",emits:["reset-arcs"],setup(t,{emit:e}){const a=[["Dunkel","dark"],["Hell","light"],["Blau","blue"]],o=[["3 kW","0"],["3,1 kW","1"],["3,14 kW","2"],["3,141 kW","3"],["3141 W","4"]],n=[["Orange","normal"],["Grün/Violett","standard"],["Bunt","advanced"]],l=[["Aus","off"],["Menü","navbar"],["Buttonleiste","buttonbar"]],c=[["Aus","no"],['"Alles"-Reiter',"infoview"],["Immer","always"]];return(u,d)=>(i(),$(We,{"full-width":!0},{title:w(()=>[U(" Look & Feel ")]),buttons:w(()=>[Wu]),default:w(()=>[s("div",zu,[s("div",Eu,[v(j,{fullwidth:!0,title:"Farbschema",icon:"fa-adjust",infotext:"Hintergrundfarbe"},{default:w(()=>[v(Ae,{modelValue:r(g).displayMode,"onUpdate:modelValue":d[0]||(d[0]=m=>r(g).displayMode=m),options:a},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Farbschema Smart-Home-Geräte",icon:"fa-palette",infotext:"Für die Smart-Home-Geräte stehen mehrere Schemata zur Verfügung."},{default:w(()=>[v(Ae,{modelValue:r(g).smartHomeColors,"onUpdate:modelValue":d[1]||(d[1]=m=>r(g).smartHomeColors=m),options:n},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Grafik: Raster",icon:"fa-th",infotext:"Verwende ein Hintergrundraster in den Grafiken"},{default:w(()=>[v(de,{modelValue:r(g).showGrid,"onUpdate:modelValue":d[2]||(d[2]=m=>r(g).showGrid=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Variable Bogenlänge",icon:"fa-chart-area",infotext:"Im Graph 'Aktuelle Leistung' können die Bögen immer die volle Länge haben, oder entsprechend des aktuellen Gesamtleistung verkürzt dargestellt werden."},{default:w(()=>[v(de,{modelValue:r(g).showRelativeArcs,"onUpdate:modelValue":d[3]||(d[3]=m=>r(g).showRelativeArcs=m)},null,8,["modelValue"])]),_:1}),r(g).showRelativeArcs?(i(),$(j,{key:0,fullwidth:!0,title:"Bögen zurücksetzen",icon:"fa-undo",infotext:"Durch Click auf den Button wird die Maximallänge der Bögen auf den aktuellen Wert gesetzt."},{default:w(()=>[r(g).showRelativeArcs?(i(),h("button",{key:0,class:"btn btn-secondary",onClick:d[4]||(d[4]=m=>e("reset-arcs"))}," Reset ")):b("",!0)]),_:1})):b("",!0),v(j,{fullwidth:!0,title:"Anzahl Dezimalstellen",icon:"fa-sliders-h",infotext:"Alle kW- und kWh-Werte werden mit der gewählten Anzahl an Stellen angezeigt."},{default:w(()=>[v(Gu,{modelValue:r(g).decimalPlaces,"onUpdate:modelValue":d[5]||(d[5]=m=>r(g).decimalPlaces=m),options:o},null,8,["modelValue"])]),_:1})]),s("div",ju,[v(j,{fullwidth:!0,title:"Uhrzeit anzeigen",icon:"fa-clock",infotext:"Zeige die aktuelle Uhrzeit an. In der Menüleiste oder neben den Lade-Buttons."},{default:w(()=>[v(Ae,{modelValue:r(g).showClock,"onUpdate:modelValue":d[6]||(d[6]=m=>r(g).showClock=m),options:l},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Kompakte Ladepunktliste",icon:"fa-list",infotext:"Zeige eine einzelne Ladepunktliste statt separater Element pro Ladepunkt."},{default:w(()=>[v(Ae,{modelValue:r(g).shortCpList,"onUpdate:modelValue":d[7]||(d[7]=m=>r(g).shortCpList=m),options:c},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Buttonleiste für Ladepunkte",icon:"fa-window-maximize",infotext:"Informationen zu Ladepunkten über den Diagrammen anzeigen."},{default:w(()=>[v(de,{modelValue:r(g).showButtonBar,"onUpdate:modelValue":d[8]||(d[8]=m=>r(g).showButtonBar=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Filter-Buttons",icon:"fa-filter",infotext:"Hauptseite mit Buttons zur Auswahl der Kategorie."},{default:w(()=>[v(de,{modelValue:r(g).showQuickAccess,"onUpdate:modelValue":d[9]||(d[9]=m=>r(g).showQuickAccess=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Breite Widgets",icon:"fa-desktop",infotext:"Widgets immer breit machen"},{default:w(()=>[v(de,{modelValue:r(g).preferWideBoxes,"onUpdate:modelValue":d[10]||(d[10]=m=>r(g).preferWideBoxes=m)},null,8,["modelValue"])]),_:1})]),s("div",Uu,[v(j,{fullwidth:!0,title:"Stufenlose Displaybreite",icon:"fa-maximize",infotext:"Die Breite des Displays wird immer voll ausgenutzt. Dies kann in einigen Fällen zu inkorrekter Darstellung führen."},{default:w(()=>[v(de,{modelValue:r(g).fluidDisplay,"onUpdate:modelValue":d[11]||(d[11]=m=>r(g).fluidDisplay=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Animationen",icon:"fa-film",infotext:"Animationen anzeigen"},{default:w(()=>[v(de,{modelValue:r(g).showAnimations,"onUpdate:modelValue":d[12]||(d[12]=m=>r(g).showAnimations=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Zähler anzeigen (beta)",icon:"fa-chart-bar",infotext:"Zeige die Werte zusätzlich angelegter Zähler (beta)"},{default:w(()=>[v(de,{modelValue:r(g).showCounters,"onUpdate:modelValue":d[13]||(d[13]=m=>r(g).showCounters=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Fahrzeuge anzeigen (beta)",icon:"fa-car",infotext:"Zeige alle Fahrzeuge mit Ladestand und Reichweite (beta)"},{default:w(()=>[v(de,{modelValue:r(g).showVehicles,"onUpdate:modelValue":d[14]||(d[14]=m=>r(g).showVehicles=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Preistabelle anzeigen (beta)",icon:"fa-car",infotext:"Zeige die Strompreistabelle in einer separaten Box an (beta)"},{default:w(()=>[v(de,{modelValue:r(g).showPrices,"onUpdate:modelValue":d[15]||(d[15]=m=>r(g).showPrices=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Debug-Modus",icon:"fa-bug-slash",infotext:"Kontrollausgaben in der Console sowie Anzeige von Bildschirmbreite und MQ-Viewer"},{default:w(()=>[v(de,{modelValue:r(g).debug,"onUpdate:modelValue":d[16]||(d[16]=m=>r(g).debug=m)},null,8,["modelValue"])]),_:1})]),Fu])]),_:1}))}});const Hu=E(Nu,[["__scopeId","data-v-3556e9f3"]]),Ru={class:"countername"},qu={class:"d-flex float-right justify-content-end align-items-center"},Ju={class:"badge rounded-pill idbadge mx-2"},Qu={class:"subgrid pt-1"},Yu=V({__name:"ClCounter",props:{counter:{}},setup(t){const e=t,a=p(()=>e.counter.power>0?"Bezug":"Export"),o=p(()=>{let n="";return e.counter.power>0?n="var(--color-evu)":n="var(--color-pv)",{"background-color":n,"font-weight":"normal"}});return(n,l)=>(i(),$(it,{titlecolor:"var(--color-title)",fullwidth:!0},{title:w(()=>[s("span",Ru,S(n.counter.name),1)]),buttons:w(()=>[s("div",qu,[e.counter.power!=0?(i(),h("span",{key:0,class:"badge rounded-pill modebadge mx-2",style:J(o.value)},S(a.value),5)):b("",!0),s("span",Ju,"ID: "+S(e.counter.id),1)])]),default:w(()=>[s("div",Qu,[v(Z,{heading:"Leistung:",small:!0,class:"grid-left grid-col-4"},{default:w(()=>[v(bt,{watt:Math.abs(e.counter.power)},null,8,["watt"])]),_:1}),v(Z,{heading:"Bezogen:",small:!0,class:"grid-col-4"},{default:w(()=>[v(ft,{"watt-h":e.counter.energy_imported},null,8,["watt-h"])]),_:1}),v(Z,{heading:"Exportiert:",small:!0,class:"grid-right grid-col-4"},{default:w(()=>[v(ft,{"watt-h":e.counter.energy_exported},null,8,["watt-h"])]),_:1})])]),_:1}))}});const Zu=E(Yu,[["__scopeId","data-v-b262baef"]]),za=t=>(ae("data-v-2aee2e34"),t=t(),oe(),t),Xu=za(()=>s("span",{class:"fas fa-bolt me-2",style:{color:"var(--color-evu)"}}," ",-1)),Ku=za(()=>s("span",null,"Zähler",-1)),eh=V({__name:"CounterList",setup(t){return(e,a)=>(i(),$(We,{"variable-width":!0},{title:w(()=>[Xu,Ku]),default:w(()=>[(i(!0),h(R,null,te(r(_e),(o,n)=>(i(),h("div",{key:n,class:"subgrid pb-2"},[v(Zu,{counter:o},null,8,["counter"])]))),128))]),_:1}))}});const Pt=E(eh,[["__scopeId","data-v-2aee2e34"]]),th={class:"subgrid"},ah=V({__name:"VlVehicle",props:{vehicle:{}},setup(t){const e=t,a=p(()=>{let n=e.vehicle.chargepoint;if(n!=null){let l="";return n.isCharging?l="Lädt ("+n.name+")":l="Bereit ("+n.name+")",l}else return"Unterwegs"}),o=p(()=>{let n=e.vehicle.chargepoint;return n!=null?n.isLocked?"var(--color-evu)":n.isCharging?"var(--color-charging)":n.isPluggedIn?"var(--color-battery)":"var(--color-axis)":"var(--color-axis)"});return(n,l)=>(i(),$(it,{titlecolor:"var(--color-title)",fullwidth:!0},{title:w(()=>[U(S(e.vehicle.name),1)]),default:w(()=>[s("div",th,[v(Z,{heading:"Status:",small:!1,class:"grid-left grid-col-4"},{default:w(()=>[s("span",{style:J({color:o.value}),class:"d-flex justify-content-center align-items-center status-string"},S(a.value),5)]),_:1}),v(Z,{heading:"Ladestand:",small:!1,class:"grid-col-4"},{default:w(()=>[U(S(Math.round(e.vehicle.soc))+" % ",1)]),_:1}),v(Z,{heading:"Reichweite:",small:!1,class:"grid-right grid-col-4"},{default:w(()=>[U(S(Math.round(e.vehicle.range))+" km ",1)]),_:1})])]),_:1}))}});const oh=E(ah,[["__scopeId","data-v-37dd5ca6"]]),Ea=t=>(ae("data-v-846fd44c"),t=t(),oe(),t),sh=Ea(()=>s("span",{class:"fas fa-car me-2",style:{color:"var(--color-charging)"}}," ",-1)),nh=Ea(()=>s("span",null,"Fahrzeuge",-1)),rh=V({__name:"VehicleList",setup(t){return(e,a)=>(i(),$(We,{"variable-width":!0},{title:w(()=>[sh,nh]),default:w(()=>[(i(!0),h(R,null,te(Object.values(r(Y)).slice().reverse(),(o,n)=>(i(),h("div",{key:n,class:"subgrid"},[v(oh,{vehicle:o},null,8,["vehicle"])]))),128))]),_:1}))}});const It=E(rh,[["__scopeId","data-v-846fd44c"]]),ja=t=>(ae("data-v-9e16ec4e"),t=t(),oe(),t),ih=ja(()=>s("span",{class:"fas fa-coins me-2",style:{color:"var(--color-battery)"}}," ",-1)),lh=ja(()=>s("span",null,"Strompreis",-1)),ch={class:"d-flex float-right justify-content-end align-items-center"},dh={key:0,class:"badge rounded-pill pricebadge mb-1 me-1"},uh={key:1,class:"badge rounded-pill providerbadge mb-1 m-0"},hh={class:"grapharea"},ph={id:"pricechart",class:"p-1 m-0 pricefigure"},gh={viewBox:"0 0 400 280"},mh=["id","origin","transform"],Bt=380,Vt=250,Lt=12,fh=V({__name:"GlobalPriceChart",props:{id:{}},setup(t){const e=t,a=X(!1),o={top:0,bottom:15,left:20,right:0},n=p(()=>{let L=[];return ee.etPriceList.size>0&&ee.etPriceList.forEach((A,Q)=>{L.push([Q,A])}),L}),l=p(()=>n.value.length>1?(Bt-o.left-o.right)/n.value.length:0),c=p(()=>{let L=Oe(n.value,A=>A[0]);return L[1]&&(L[1]=new Date(L[1]),L[1].setTime(L[1].getTime()+36e5)),Re().range([o.left,Bt-o.right]).domain(L)}),u=p(()=>{let L=Oe(n.value,A=>A[1]);return L[0]=Math.floor(L[0])-1,L[1]=Math.floor(L[1])+1,L}),d=p(()=>Te().range([Vt-o.bottom,0]).domain(u.value)),m=p(()=>Ye(c.value).ticks(n.value.length).tickSize(5).tickSizeInner(-Vt).tickFormat(L=>L.getHours()%6==0?tt("%H:%M")(L):"")),y=p(()=>st(d.value).ticks(u.value[1]-u.value[0]).tickSize(0).tickSizeInner(-(Bt-o.right-o.left)).tickFormat(L=>L.toString())),I=p(()=>{a.value==!0;const L=be("g#"+C.value);L.selectAll("*").remove(),L.selectAll("bar").data(n.value).enter().append("g").append("rect").attr("class","bar").attr("x",x=>c.value(x[0])).attr("y",x=>d.value(x[1])).attr("width",l.value).attr("height",x=>d.value(u.value[0])-d.value(x[1])).attr("fill","var(--color-charging)");const Q=L.append("g").attr("class","axis").call(m.value);Q.attr("transform","translate(0,"+(Vt-o.bottom)+")"),Q.selectAll(".tick").attr("font-size",Lt).attr("color","var(--color-bg)"),Q.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",x=>x.getHours()%6==0?"2":"0.5"),Q.select(".domain").attr("stroke","var(--color-bg");const G=L.append("g").attr("class","axis").call(y.value);G.attr("transform","translate("+o.left+",0)"),G.selectAll(".tick").attr("font-size",Lt).attr("color","var(--color-bg)"),G.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",x=>x%5==0?"2":"0.5"),G.select(".domain").attr("stroke","var(--color-bg)");const T=L.selectAll("ttip").data(n.value).enter().append("g").attr("class","ttarea");T.append("rect").attr("x",x=>c.value(x[0])).attr("y",x=>d.value(x[1])).attr("height",x=>d.value(u.value[0])-d.value(x[1])).attr("class","ttrect").attr("width",l.value).attr("opacity","1%").attr("fill","var(--color-charging)");const F=T.append("g").attr("class","ttmessage").attr("transform",x=>"translate("+(c.value(x[0])-30+l.value/2)+","+(d.value(x[1])-16)+")");F.append("rect").attr("rx",5).attr("width","60").attr("height","30").attr("fill","var(--color-menu)");const P=F.append("text").attr("text-anchor","middle").attr("x",30).attr("y",12).attr("font-size",Lt).attr("fill","var(--color-bg)");return P.append("tspan").attr("x",30).attr("dy","0em").text(x=>tt("%H:%M")(x[0])),P.append("tspan").attr("x",30).attr("dy","1.1em").text(x=>Math.round(x[1]*10)/10+" ct"),"PriceChart.vue"}),C=p(()=>"priceChartCanvas"+e.id);return Ce(()=>{a.value=!a.value}),(L,A)=>(i(),$(We,{"variable-width":!0},{title:w(()=>[ih,lh]),buttons:w(()=>[s("div",ch,[r(ee).active?(i(),h("span",dh,S(r(ee).etCurrentPriceString),1)):b("",!0),r(ee).active?(i(),h("span",uh,S(r(ee).etProvider),1)):b("",!0)])]),default:w(()=>[s("div",hh,[s("figure",ph,[(i(),h("svg",gh,[s("g",{id:C.value,origin:I.value,transform:"translate("+o.top+","+o.left+") "},null,8,mh)]))])])]),_:1}))}});const At=E(fh,[["__scopeId","data-v-9e16ec4e"]]),we=t=>(ae("data-v-2ac38f21"),t=t(),oe(),t),vh={class:"container-fluid px-2 m-0 theme-colors"},_h={id:"themesettings",class:"collapse"},bh={key:2,class:"row py-0 px-0 m-0"},yh={key:3,class:"row py-0 m-0 d-flex justify-content-center"},wh={key:4,class:"nav nav-tabs nav-justified mx-1 mt-2",role:"tablist"},kh=eo('AllesLadepunkte',2),xh={key:0,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#pricecharttabbed"},Sh=we(()=>s("i",{class:"fa-solid fa-lg fa-coins"},null,-1)),$h=we(()=>s("span",{class:"d-none d-md-inline ms-2"},"Strompreis",-1)),Mh=[Sh,$h],Ch={key:1,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#vehiclelist"},Ph=we(()=>s("i",{class:"fa-solid fa-lg fa-car"},null,-1)),Ih=we(()=>s("span",{class:"d-none d-md-inline ms-2"},"Fahrzeuge",-1)),Bh=[Ph,Ih],Vh={key:2,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#batterylist"},Lh=we(()=>s("i",{class:"fa-solid fa-lg fa-car-battery"},null,-1)),Ah=we(()=>s("span",{class:"d-none d-md-inline ms-2"},"Speicher",-1)),Oh=[Lh,Ah],Th={key:3,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#smarthomelist"},Dh=we(()=>s("i",{class:"fa-solid fa-lg fa-plug"},null,-1)),Gh=we(()=>s("span",{class:"d-none d-md-inline ms-2"},"Smart Home",-1)),Wh=[Dh,Gh],zh={key:4,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#counterlist"},Eh=we(()=>s("i",{class:"fa-solid fa-lg fa-bolt"},null,-1)),jh=we(()=>s("span",{class:"d-none d-md-inline ms-2"},"Zähler",-1)),Uh=[Eh,jh],Fh={key:5,id:"cpContent",class:"tab-content mx-0 pt-1"},Nh={id:"showAll",class:"tab-pane active",role:"tabpanel","aria-labelledby":"showall-tab"},Hh={class:"row py-0 m-0 d-flex justify-content-center"},Rh={id:"chargepointlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"chargepoint-tab"},qh={class:"row py-0 m-0 d-flex justify-content-center"},Jh={id:"vehiclelist",class:"tab-pane",role:"tabpanel","aria-labelledby":"vehicle-tab"},Qh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},Yh={id:"batterylist",class:"tab-pane",role:"tabpanel","aria-labelledby":"battery-tab"},Zh={class:"row py-0 m-0 d-flex justify-content-center"},Xh={id:"smarthomelist",class:"tab-pane",role:"tabpanel","aria-labelledby":"smarthome-tab"},Kh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},ep={id:"counterlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"counter-tab"},tp={key:0,class:"row py-0 m-0 d-flex justify-content-center"},ap={id:"pricecharttabbed",class:"tab-pane",role:"tabpanel","aria-labelledby":"price-tab"},op={key:0,class:"row py-0 m-0 d-flex justify-content-center"},sp={key:0,class:"row p-2 mt-5"},np={class:"col p-2"},rp=we(()=>s("hr",null,null,-1)),ip={class:"d-flex justify-content-between"},lp={class:"mx-4"},cp={key:0},dp=V({__name:"ColorsTheme",setup(t){const e=X(!1),a=p(()=>Object.values(H).filter(c=>c.configured).length>0);function o(){fa()}function n(){e.value=!e.value}Ce(()=>{o(),window.addEventListener("resize",wo),window.addEventListener("focus",l),Yd()});function l(){document.hasFocus()&&he()}return(c,u)=>(i(),h(R,null,[s("div",vh,[s("div",_h,[v(Hu,{onResetArcs:r(xo)},null,8,["onResetArcs"])]),r(g).showButtonBar?(i(),$(Rc,{key:0})):b("",!0),b("",!0),(i(),h("div",bh,[v(bd,null,{item1:w(()=>[v(os)]),item2:w(()=>[v(wn)]),item3:w(()=>[v(Hn)]),_:1})])),r(g).showQuickAccess?b("",!0):(i(),h("div",yh,[v($t,{shortlist:r(g).shortCpList=="always"},null,8,["shortlist"]),r(g).showPrices?(i(),$(At,{key:0,id:"NoTabs"})):b("",!0),r(g).showVehicles?(i(),$(It,{key:1})):b("",!0),v(Mt),a.value?(i(),$(Ct,{key:2})):b("",!0),r(g).showCounters?(i(),$(Pt,{key:3})):b("",!0)])),r(g).showQuickAccess?(i(),h("nav",wh,[kh,r(g).showPrices?(i(),h("a",xh,Mh)):b("",!0),r(g).showVehicles?(i(),h("a",Ch,Bh)):b("",!0),r(ce).isBatteryConfigured?(i(),h("a",Vh,Oh)):b("",!0),a.value?(i(),h("a",Th,Wh)):b("",!0),r(g).showCounters?(i(),h("a",zh,Uh)):b("",!0)])):b("",!0),r(g).showQuickAccess?(i(),h("div",Fh,[s("div",Nh,[s("div",Hh,[v($t,{shortlist:r(g).shortCpList!="no"},null,8,["shortlist"]),r(g).showPrices?(i(),$(At,{key:0,id:"Overview"})):b("",!0),r(g).showVehicles?(i(),$(It,{key:1})):b("",!0),v(Mt),a.value?(i(),$(Ct,{key:2})):b("",!0),r(g).showCounters?(i(),$(Pt,{key:3})):b("",!0)])]),s("div",Rh,[s("div",qh,[v($t,{shortlist:r(g).shortCpList=="always"},null,8,["shortlist"])])]),s("div",Jh,[r(g).showVehicles?(i(),h("div",Qh,[v(It)])):b("",!0)]),s("div",Yh,[s("div",Zh,[v(Mt)])]),s("div",Xh,[a.value?(i(),h("div",Kh,[v(Ct)])):b("",!0)]),s("div",ep,[r(g).showCounters?(i(),h("div",tp,[v(Pt)])):b("",!0)]),s("div",ap,[r(g).showPrices?(i(),h("div",op,[v(At,{id:"Tabbed"})])):b("",!0)])])):b("",!0)]),r(g).debug?(i(),h("div",sp,[s("div",np,[rp,s("div",ip,[s("p",lp,"Screen Width: "+S(r(gt).x),1),s("button",{class:"btn btn-sm btn-secondary mx-4",onClick:n}," MQ Viewer ")]),e.value?(i(),h("hr",cp)):b("",!0),e.value?(i(),$(Ou,{key:1})):b("",!0)])])):b("",!0)],64))}});const up=E(dp,[["__scopeId","data-v-2ac38f21"]]),wt=t=>(ae("data-v-ed619966"),t=t(),oe(),t),hp={class:"navbar navbar-expand-lg px-0 mb-0"},pp=wt(()=>s("a",{href:"/",class:"navbar-brand"},[s("span",null,"openWB")],-1)),gp=wt(()=>s("button",{class:"navbar-toggler togglebutton ps-5",type:"button","data-bs-toggle":"collapse","data-bs-target":"#mainNavbar","aria-controls":"mainNavbar","aria-expanded":"false","aria-label":"Toggle navigation"},[s("span",{class:"fa-solid fa-ellipsis-vertical"})],-1)),mp=wt(()=>s("div",{id:"mainNavbar",class:"collapse navbar-collapse justify-content-end"},[s("div",{class:"nav navbar-nav"},[s("a",{id:"navStatus",class:"nav-link",href:"../../settings/#/Status"},"Status"),s("div",{class:"nav-item dropdown"},[s("a",{id:"loggingDropdown",class:"nav-link",href:"#",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[U("Auswertungen "),s("i",{class:"fa-solid fa-caret-down"})]),s("div",{class:"dropdown-menu","aria-labelledby":"loggingDropdown"},[s("a",{href:"../../settings/#/Logging/ChargeLog",class:"dropdown-item"},"Ladeprotokoll"),s("a",{href:"../../settings/#/Logging/Chart",class:"dropdown-item"},"Diagramme")])]),s("div",{class:"nav-item dropdown"},[s("a",{id:"settingsDropdown",class:"nav-link",href:"#",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[U("Einstellungen "),s("span",{class:"fa-solid fa-caret-down"})]),s("div",{class:"dropdown-menu","aria-labelledby":"settingsDropdown"},[s("a",{id:"navSettings",class:"nav-link",href:"../../settings/index.html"},"openWB"),s("a",{class:"nav-link","data-bs-toggle":"collapse","data-bs-target":"#themesettings","aria-expanded":"false","aria-controls":"themeSettings"},[s("span",null,[U("Look&Feel"),s("span",{class:"fa-solid fa-caret-down"})])])])])])],-1)),fp=wt(()=>s("hr",{class:"m-0 p-0 mb-2"},null,-1)),vp=[fp],_p=V({__name:"NavigationBar",setup(t){let e;const a=p(()=>g.fluidDisplay?"container-fluid":"container-lg");return Ce(()=>{e=setInterval(()=>{Wt.value=new Date},1e3)}),to(()=>{clearInterval(e)}),(o,n)=>(i(),h(R,null,[s("nav",hp,[s("div",{class:z(a.value)},[pp,r(g).showClock=="navbar"?(i(),h("span",{key:0,class:"position-absolute-50 navbar-text ms-4 navbar-time",style:J({color:"var(--color-menu)"})},S(r(va)(r(Wt))),5)):b("",!0),gp,mp],2)]),s("div",{class:z(a.value)},vp,2)],64))}});const bp=E(_p,[["__scopeId","data-v-ed619966"]]),yp={id:"app",class:"m-0 p-0"},wp={class:"row p-0 m-0"},kp={class:"col-12 p-0 m-0"},xp=V({__name:"App",setup(t){const e=p(()=>g.fluidDisplay?"container-fluid":"container-lg");return(a,o)=>(i(),h("div",yp,[v(bp),s("div",{class:z(["p-0",e.value])},[s("div",wp,[s("div",kp,[v(up)])])],2)]))}});const Sp=ao(xp);oo();Sp.mount("#app"); diff --git a/packages/modules/web_themes/colors/web/assets/index-a6d0268a.js b/packages/modules/web_themes/colors/web/assets/index-a6d0268a.js deleted file mode 100644 index 7d92dbb442..0000000000 --- a/packages/modules/web_themes/colors/web/assets/index-a6d0268a.js +++ /dev/null @@ -1,6 +0,0 @@ -var Ua=Object.defineProperty;var Fa=(t,e,a)=>e in t?Ua(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var f=(t,e,a)=>(Fa(t,typeof e!="symbol"?e+"":e,a),a);import{m as la,r as ne,a as X,c as p,s as _e,d as V,p as ca,b as da,w as Na,o as i,e as h,t as S,f as s,n as z,g as $,h as b,i as le,j as w,k as U,u as r,l as v,F as R,q as te,v as Oe,x as Ot,y as Te,z as ua,A as ot,B as dt,C as Je,D as Qe,E as et,G as Ha,H as Re,I as Tt,J,K as Ra,L as Ce,M as ae,N as oe,O as qa,P as st,Q as Ja,R as Et,T as Qa,S as Ya,U as ut,V as Za,W as Xa,X as Ka,Y as eo,Z as to,_ as ao}from"./vendor-6c3d972a.js";(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const l of n)if(l.type==="childList")for(const c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&o(c)}).observe(document,{childList:!0,subtree:!0});function a(n){const l={};return n.integrity&&(l.integrity=n.integrity),n.referrerPolicy&&(l.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?l.credentials="include":n.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(n){if(n.ep)return;n.ep=!0;const l=a(n);fetch(n.href,l)}})();const oo=0,ha={host:location.hostname,port:location.protocol=="https:"?443:80,endpoint:"/ws",protocol:location.protocol=="https:"?"wss":"ws",connectTimeout:4e3,reconnectPeriod:4e3,clean:!1,clientId:Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,6)},ht={topic:"",qos:oo};let ye;const{host:so,port:no,endpoint:ro,...pa}=ha,io=`${pa.protocol}://${so}:${no}${ro}`;try{ye=la.connect(io,pa),ye.on("connect",()=>{console.info("MQTT connection successful")}),ye.on("disconnect",()=>{console.info("MQTT disconnected")}),ye.on("error",t=>{console.error("MQTT connection failed: ",t)})}catch(t){console.error("MQTT connect error: ",t)}function lo(t){ye?ye.on("message",t):console.error("MqttRegister: MQTT client not available")}function Ee(t){ht.topic=t;const{topic:e,qos:a}=ht;ye.subscribe(e,{qos:a},o=>{if(o){console.error("MQTT Subscription error: "+o);return}})}function Ne(t){ht.topic=t;const{topic:e}=ht;ye.unsubscribe(e,a=>{if(a){console.error("MQTT Unsubscribe from "+t+" failed: "+a);return}})}async function Dt(t,e){let o=ye.connected,n=0;for(;!o&&n<10;)console.warn("MQTT publish: Not connected. Waiting 0.1 seconds"),await co(100),o=ye.connected,n+=1;if(n<10)try{ye.publish(t,e,{qos:0},l=>{l&&console.warn("MQTT publish error: ",l),console.info("MQTT publish: Message sent: ["+t+"]("+e+")")})}catch(l){console.warn("MQTT publish: caught error: "+l)}else console.error("MQTT publish: Lost connection to MQTT server. Please reload the page")}function jt(){return ha.clientId}function co(t){return new Promise(e=>setTimeout(e,t))}class uo{constructor(e){f(this,"id");f(this,"name","Ladepunkt");f(this,"icon","Ladepunkt");f(this,"type","");f(this,"ev",0);f(this,"template",0);f(this,"connectedPhases",0);f(this,"phase_1",0);f(this,"autoPhaseSwitchHw",!1);f(this,"controlPilotInterruptionHw",!1);f(this,"isEnabled",!0);f(this,"isPluggedIn",!1);f(this,"isCharging",!1);f(this,"_isLocked",!1);f(this,"_connectedVehicle",0);f(this,"chargeTemplate",0);f(this,"evTemplate",0);f(this,"_chargeMode","pv_charging");f(this,"_hasPriority",!1);f(this,"currentPlan","");f(this,"averageConsumption",0);f(this,"vehicleName","");f(this,"rangeCharged",0);f(this,"rangeUnit","");f(this,"counter",0);f(this,"dailyYield",0);f(this,"energyPv",0);f(this,"energyBat",0);f(this,"pvPercentage",0);f(this,"faultState",0);f(this,"faultStr","");f(this,"phasesInUse",0);f(this,"power",0);f(this,"chargedSincePlugged",0);f(this,"stateStr","");f(this,"current",0);f(this,"currents",[0,0,0]);f(this,"phasesToUse",0);f(this,"isSocConfigured",!0);f(this,"isSocManual",!1);f(this,"waitingForSoc",!1);f(this,"color","white");f(this,"_timedCharging",!1);f(this,"_instantChargeLimitMode","");f(this,"_instantTargetCurrent",0);f(this,"_instantTargetSoc",0);f(this,"_instantMaxEnergy",0);f(this,"_pvFeedInLimit",!1);f(this,"_pvMinCurrent",0);f(this,"_pvMaxSoc",0);f(this,"_pvMinSoc",0);f(this,"_pvMinSocCurrent",0);f(this,"_etActive",!1);f(this,"_etMaxPrice",20);this.id=e}get isLocked(){return this._isLocked}set isLocked(e){this._isLocked=e,K("cpLock",e,this.id)}updateIsLocked(e){this._isLocked=e}get connectedVehicle(){return this._connectedVehicle}set connectedVehicle(e){this._connectedVehicle=e,K("cpVehicle",e,this.id)}updateConnectedVehicle(e){this._connectedVehicle=e}get soc(){return Y[this.connectedVehicle]?Y[this.connectedVehicle].soc:0}set soc(e){Y[this.connectedVehicle]&&(Y[this.connectedVehicle].soc=e)}get chargeMode(){return this._chargeMode}set chargeMode(e){this._chargeMode=e,K("chargeMode",e,this.id)}updateChargeMode(e){this._chargeMode=e}get hasPriority(){return this._hasPriority}set hasPriority(e){this._hasPriority=e,K("cpPriority",e,this.id)}updateCpPriority(e){this._hasPriority=e}get timedCharging(){return fe[this.chargeTemplate]?fe[this.chargeTemplate].time_charging.active:!1}set timedCharging(e){fe[this.chargeTemplate].time_charging.active=e,K("cpTimedCharging",e,this.chargeTemplate)}get instantTargetCurrent(){return this._instantTargetCurrent}set instantTargetCurrent(e){this._instantTargetCurrent=e,K("cpInstantTargetCurrent",e,this.id)}updateInstantTargetCurrent(e){this._instantTargetCurrent=e}get instantChargeLimitMode(){return this._instantChargeLimitMode}set instantChargeLimitMode(e){this._instantChargeLimitMode=e,K("cpInstantChargeLimitMode",e,this.id)}updateInstantChargeLimitMode(e){this._instantChargeLimitMode=e}get instantTargetSoc(){return this._instantTargetSoc}set instantTargetSoc(e){this._instantTargetSoc=e,K("cpInstantTargetSoc",e,this.id)}updateInstantTargetSoc(e){this._instantTargetSoc=e}get instantMaxEnergy(){return this._instantMaxEnergy}set instantMaxEnergy(e){this._instantMaxEnergy=e,K("cpInstantMaxEnergy",e,this.id)}updateInstantMaxEnergy(e){this._instantMaxEnergy=e}get pvFeedInLimit(){return this._pvFeedInLimit}set pvFeedInLimit(e){this._pvFeedInLimit=e,K("cpPvFeedInLimit",e,this.id)}updatePvFeedInLimit(e){this._pvFeedInLimit=e}get pvMinCurrent(){return this._pvMinCurrent}set pvMinCurrent(e){this._pvMinCurrent=e,K("cpPvMinCurrent",e,this.id)}updatePvMinCurrent(e){this._pvMinCurrent=e}get pvMaxSoc(){return this._pvMaxSoc}set pvMaxSoc(e){this._pvMaxSoc=e,K("cpPvMaxSoc",e,this.id)}updatePvMaxSoc(e){this._pvMaxSoc=e}get pvMinSoc(){return this._pvMinSoc}set pvMinSoc(e){this._pvMinSoc=e,K("cpPvMinSoc",e,this.id)}updatePvMinSoc(e){this._pvMinSoc=e}get pvMinSocCurrent(){return this._pvMinSocCurrent}set pvMinSocCurrent(e){this._pvMinSocCurrent=e,K("cpPvMinSocCurrent",e,this.id)}updatePvMinSocCurrent(e){this._pvMinSocCurrent=e}get realCurrent(){switch(this.phasesInUse){case 0:return 0;case 1:return this.currents[0];case 2:return(this.currents[0]+this.currents[1])/2;case 3:return(this.currents[0]+this.currents[1]+this.currents[2])/3;default:return 0}}get etActive(){return Y[this.connectedVehicle]?Y[this.connectedVehicle].etActive:!1}set etActive(e){Y[this.connectedVehicle]&&(Y[this.connectedVehicle].etActive=e)}get etMaxPrice(){return Y[this.connectedVehicle].etMaxPrice??0}set etMaxPrice(e){console.log("Setting et max price needs to be implemented"),K("cpEtMaxPrice",Math.round(e*10)/1e6,this.id)}toPowerItem(){return{name:this.name,power:this.power,energy:this.dailyYield,energyPv:this.energyPv,energyBat:this.energyBat,pvPercentage:this.pvPercentage,color:this.color,icon:this.icon}}}class ho{constructor(e){f(this,"id");f(this,"name","");f(this,"_chargeTemplateId",0);f(this,"_evTemplateId",0);f(this,"tags",[]);f(this,"config",{});f(this,"soc",0);f(this,"range",0);f(this,"_etActive",!1);f(this,"_etMaxPrice",20);this.id=e}get chargeTemplateId(){return this._chargeTemplateId}set chargeTemplateId(e){this._chargeTemplateId=e,K("vhChargeTemplateId",e,this.id)}updateChargeTemplateId(e){this._chargeTemplateId=e}get evTemplateId(){return this._evTemplateId}set evTemplateId(e){this._evTemplateId=e,K("vhEvTemplateId",e,this.id)}updateEvTemplateId(e){this._evTemplateId=e}get etActive(){return fe[this.chargeTemplateId]?fe[this.chargeTemplateId].et.active:!1}set etActive(e){fe[this.chargeTemplateId]&&K("priceCharging",e,this.chargeTemplateId)}get etMaxPrice(){if(fe[this.chargeTemplateId]&&fe[this.chargeTemplateId].et.active)return fe[this.chargeTemplateId].et.max_price*1e5}get chargepoint(){for(const e of Object.values(B))if(e.connectedVehicle==this.id)return e}}var me=(t=>(t.instant_charging="instant_charging",t.pv_charging="pv_charging",t.scheduled_charging="scheduled_charging",t.standby="standby",t.stop="stop",t))(me||{});const B=ne({}),Y=ne({}),fe=ne({}),Ye=ne({}),Ze=ne({}),Gt=ne({});function po(t){t in B||(B[t]=new uo(t),B[t].color="var(--color-cp"+(Object.values(B).length-1)+")")}function go(){Object.keys(B).forEach(t=>{delete B[parseInt(t)]})}const mo={cpLock:"openWB/set/chargepoint/%/set/manual_lock",chargeMode:"openWB/set/vehicle/template/charge_template/%/chargemode/selected",cpPriority:"openWB/set/vehicle/template/charge_template/%/prio",cpTimedCharging:"openWB/set/vehicle/template/charge_template/%/time_charging/active",pvBatteryPriority:"openWB/set/general/chargemode_config/pv_charging/bat_prio",cpVehicle:"openWB/set/chargepoint/%/config/ev",cpInstantChargeLimitMode:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/selected",cpInstantTargetCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/current",cpInstantTargetSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/soc",cpInstantMaxEnergy:"openWB/set/vehicle/template/charge_template/%/chargemode/instant_charging/limit/amount",cpPvFeedInLimit:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/feed_in_limit",cpPvMinCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_current",cpPvMaxSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/max_soc",cpPvMinSoc:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_soc",cpPvMinSocCurrent:"openWB/set/vehicle/template/charge_template/%/chargemode/pv_charging/min_soc_current",cpEtMaxPrice:"openWB/set/vehicle/template/charge_template/%/et/max_price",vhChargeTemplateId:"openWB/set/vehicle/%/charge_template",vhEvTemplateId:"openWB/set/vehicle/%/ev_template",shSetManual:"openWB/set/LegacySmartHome/config/set/Devices/%/mode",shSwitchOn:"openWB/set/LegacySmartHome/config/set/Devices/%/device_manual_control",socUpdate:"openWB/set/vehicle/%/get/force_soc_update",setSoc:"openWB/set/vehicle/%/soc_module/calculated_soc_state/manual_soc",priceCharging:"openWB/set/vehicle/template/charge_template/%/et/active"};function K(t,e,a=0){if(isNaN(a)){console.warn("Invalid index");return}let o=mo[t];if(!o){console.warn("No topic for update type "+t);return}switch(t){case"chargeMode":case"cpPriority":case"cpScheduledCharging":case"cpInstantTargetCurrent":case"cpInstantChargeLimitMode":case"cpInstantTargetSoc":case"cpInstantMaxEnergy":case"cpPvFeedInLimit":case"cpPvMinCurrent":case"cpPvMaxSoc":case"cpPvMinSoc":case"cpEtMaxPrice":case"cpPvMinSocCurrent":o=o.replace("%",B[a].chargeTemplate.toString());break;default:o=o.replace("%",String(a))}switch(typeof e){case"number":Dt(o,JSON.stringify(+e));break;default:Dt(o,JSON.stringify(e))}}function Ut(t){Dt("openWB/set/command/"+jt()+"/todo",JSON.stringify(t))}class fo{constructor(){f(this,"batterySoc",0);f(this,"isBatteryConfigured",!0);f(this,"chargeMode","0");f(this,"_pvBatteryPriority",!1);f(this,"displayLiveGraph",!0);f(this,"isEtEnabled",!0);f(this,"etMaxPrice",0);f(this,"etCurrentPrice",0);f(this,"cpDailyExported",0);f(this,"evuId",0);f(this,"etProvider","")}get pvBatteryPriority(){return this._pvBatteryPriority}set pvBatteryPriority(e){this._pvBatteryPriority=e,K("pvBatteryPriority",e)}updatePvBatteryPriority(e){this._pvBatteryPriority=e}}const ge=ne({evuIn:{name:"Netz",color:"var(--color-evu)",icon:""},pv:{name:"PV",color:"var(--color-pv",icon:""},batOut:{name:"Bat >",color:"var(--color-battery)",icon:""},evuOut:{name:"Export",color:"var(--color-export)",icon:""},charging:{name:"Laden",color:"var(--color-charging)",icon:""},devices:{name:"Geräte",color:"var(--color-devices)",icon:""},batIn:{name:"> Bat",color:"var(--color-battery)",icon:""},house:{name:"Haus",color:"var(--color-house)",icon:""},cp1:{name:"Ladepunkt",color:"var(--color-cp1)",icon:"Ladepunkt"},cp2:{name:"Ladepunkt",color:"var(--color-cp2)",icon:"Ladepunkt"},cp3:{name:"Ladepunkt",color:"var(--color-cp3)",icon:"Ladepunkt"},cp4:{name:"Ladepunkt",color:"var(--color-cp4)",icon:"Ladepunkt"},cp5:{name:"Ladepunkt",color:"var(--color-cp5)",icon:"Ladepunkt"},cp6:{name:"Ladepunkt",color:"var(--color-cp6)",icon:"Ladepunkt"},cp7:{name:"Ladepunkt",color:"var(--color-cp7)",icon:"Ladepunkt"},cp8:{name:"Ladepunkt",color:"var(--color-cp8)",icon:"Ladepunkt"},sh1:{name:"Gerät",color:"var(--color-sh1)",icon:"Gerät"},sh2:{name:"Gerät",color:"var(--color-sh2)",icon:"Gerät"},sh3:{name:"Gerät",color:"var(--color-sh3)",icon:"Gerät"},sh4:{name:"Gerät",color:"var(--color-sh4)",icon:"Gerät"},sh5:{name:"Gerät",color:"var(--color-sh5)",icon:"Gerät"},sh6:{name:"Gerät",color:"var(--color-sh6)",icon:"Gerät"},sh7:{name:"Gerät",color:"var(--color-sh7)",icon:"Gerät"},sh8:{name:"Gerät",color:"var(--color-sh8)",icon:"Gerät"},sh9:{name:"Gerät",color:"var(--color-sh9)",icon:"Gerät"}});class ga{constructor(){f(this,"_items",{});this.addItem("evuIn"),this.addItem("pv"),this.addItem("batOut"),this.addItem("evuOut"),this.addItem("charging"),this.addItem("devices"),this.addItem("batIn"),this.addItem("house")}get items(){return this._items}keys(){return Object.keys(this._items)}values(){return Object.values(this._items)}addItem(e){this._items[e]=Le(e)}setEnergy(e,a){this.keys().includes(e)||this.addItem(e),this._items[e].energy=a}setEnergyPv(e,a){this.keys().includes(e)||this.addItem(e),this._items[e].energyPv=a}setEnergyBat(e,a){this.keys().includes(e)||this.addItem(e),this._items[e].energyBat=a}setPvPercentage(e,a){this.keys().includes(e)||this.addItem(e),this._items[e].pvPercentage=a}calculateHouseEnergy(){this._items.house.energy=this._items.evuIn.energy+this._items.pv.energy+this._items.batOut.energy-this._items.evuOut.energy-this._items.batIn.energy-this._items.charging.energy-this._items.devices.energy}}let D=new ga;function Ft(){D=new ga}const q=ne({evuIn:Le("evuIn"),pv:Le("pv"),batOut:Le("batOut")}),W=ne({evuOut:Le("evuOut"),charging:Le("charging"),devices:Le("devices"),batIn:Le("batIn"),house:Le("house")}),ce=ne(new fo);X("");const pt=X(!1);function Le(t){return{name:ge[t]?ge[t].name:"item",power:0,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:ge[t]?ge[t].color:"var(--color-charging)",icon:ge[t]?ge[t].icon:""}}function vo(){W.house.power=W.house.power-W.devices.power}const Wt=X(new Date);class _o{constructor(){f(this,"_showRelativeArcs",!1);f(this,"showTodayGraph",!0);f(this,"_graphPreference","today");f(this,"_usageStackOrder",0);f(this,"_displayMode","dark");f(this,"_showGrid",!1);f(this,"_smartHomeColors","normal");f(this,"_decimalPlaces",1);f(this,"_showQuickAccess",!0);f(this,"_simpleCpList",!1);f(this,"_shortCpList","no");f(this,"_showAnimations",!0);f(this,"_preferWideBoxes",!1);f(this,"_maxPower",4e3);f(this,"_fluidDisplay",!1);f(this,"_showClock","no");f(this,"_showButtonBar",!0);f(this,"_showCounters",!1);f(this,"_showVehicles",!1);f(this,"_showPrices",!1);f(this,"_debug",!1);f(this,"isEtEnabled",!1);f(this,"etPrice",20.5);f(this,"showRightButton",!0);f(this,"showLeftButton",!0);f(this,"animationDuration",300);f(this,"animationDelay",100);f(this,"zoomGraph",!1)}get showRelativeArcs(){return this._showRelativeArcs}set showRelativeArcs(e){this._showRelativeArcs=e,re()}setShowRelativeArcs(e){this._showRelativeArcs=e}get graphPreference(){return this._graphPreference}set graphPreference(e){this._graphPreference=e,re()}setGraphPreference(e){this._graphPreference=e}get usageStackOrder(){return this._usageStackOrder}set usageStackOrder(e){this._usageStackOrder=e,re()}setUsageStackOrder(e){this._usageStackOrder=e}get displayMode(){return this._displayMode}set displayMode(e){this._displayMode=e,wo(e)}setDisplayMode(e){this._displayMode=e}get showGrid(){return this._showGrid}set showGrid(e){this._showGrid=e,re()}setShowGrid(e){this._showGrid=e}get decimalPlaces(){return this._decimalPlaces}set decimalPlaces(e){this._decimalPlaces=e,re()}setDecimalPlaces(e){this._decimalPlaces=e}get smartHomeColors(){return this._smartHomeColors}set smartHomeColors(e){this._smartHomeColors=e,Xt(e),re()}setSmartHomeColors(e){this._smartHomeColors=e,Xt(e)}get showQuickAccess(){return this._showQuickAccess}set showQuickAccess(e){this._showQuickAccess=e,re()}setShowQuickAccess(e){this._showQuickAccess=e}get simpleCpList(){return this._simpleCpList}set simpleCpList(e){this._simpleCpList=e,re()}setSimpleCpList(e){this._simpleCpList=e}get shortCpList(){return this._shortCpList}set shortCpList(e){this._shortCpList=e,re()}setShortCpList(e){this._shortCpList=e}get showAnimations(){return this._showAnimations}set showAnimations(e){this._showAnimations=e,re()}setShowAnimations(e){this._showAnimations=e}get preferWideBoxes(){return this._preferWideBoxes}set preferWideBoxes(e){this._preferWideBoxes=e,re()}setPreferWideBoxes(e){this._preferWideBoxes=e}get maxPower(){return this._maxPower}set maxPower(e){this._maxPower=e,re()}setMaxPower(e){this._maxPower=e}get fluidDisplay(){return this._fluidDisplay}set fluidDisplay(e){this._fluidDisplay=e,re()}setFluidDisplay(e){this._fluidDisplay=e}get showClock(){return this._showClock}set showClock(e){this._showClock=e,re()}setShowClock(e){this._showClock=e}get debug(){return this._debug}set debug(e){this._debug=e,re()}setDebug(e){this._debug=e}get showButtonBar(){return this._showButtonBar}set showButtonBar(e){this._showButtonBar=e,re()}setShowButtonBar(e){this._showButtonBar=e}get showCounters(){return this._showCounters}set showCounters(e){this._showCounters=e,re()}setShowCounters(e){this._showCounters=e}get showVehicles(){return this._showVehicles}set showVehicles(e){this._showVehicles=e,re()}setShowVehicles(e){this._showVehicles=e}get showPrices(){return this._showPrices}set showPrices(e){this._showPrices=e,re()}setShowPrices(e){this._showPrices=e}}const g=ne(new _o);function ma(){So();const t=_e("html");t.classed("theme-dark",g.displayMode=="dark"),t.classed("theme-light",g.displayMode=="light"),t.classed("theme-blue",g.displayMode=="blue"),t.classed("shcolors-standard",g.smartHomeColors=="standard"),t.classed("shcolors-advanced",g.smartHomeColors=="advanced"),t.classed("shcolors-normal",g.smartHomeColors=="normal")}const bo=992,gt=ne({x:document.documentElement.clientWidth,y:document.documentElement.clientHeight});function yo(){gt.x=document.documentElement.clientWidth,gt.y=document.documentElement.clientHeight,ma()}const Ge=p(()=>gt.x>=bo),ue={stop:{mode:me.stop,name:"Stop",color:"var(--color-fg)",icon:"fa-power-off"},standby:{mode:me.standby,name:"Standby",color:"var(--color-axis",icon:"fa-pause"},pv_charging:{mode:me.pv_charging,name:"PV",color:"var(--color-pv",icon:"fa-solar-panel"},scheduled_charging:{mode:me.scheduled_charging,name:"Zielladen",color:"var(--color-battery)",icon:"fa-bullseye"},instant_charging:{mode:me.instant_charging,name:"Sofort",color:"var(--color-charging)",icon:"fa-bolt"}};function re(){xo()}function wo(t){const e=_e("html");e.classed("theme-dark",t=="dark"),e.classed("theme-light",t=="light"),e.classed("theme-blue",t=="blue"),re()}function ko(){g.maxPower=q.evuIn.power+q.pv.power+q.batOut.power,re()}function Xt(t){const e=_e("html");e.classed("shcolors-normal",t=="normal"),e.classed("shcolors-standard",t=="standard"),e.classed("shcolors-advanced",t=="advanced")}const Ve={chargemode:"Der Lademodus für das Fahrzeug an diesem Ladepunkt",vehicle:"Das Fahrzeug, das an diesem Ladepounkt geladen wird",locked:"Für das Laden sperren",priority:"Fahrzeuge mit Priorität werden bevorzugt mit mehr Leistung geladen, falls verfügbar",timeplan:"Das Laden nach Zeitplan für dieses Fahrzeug aktivieren",minsoc:"Immer mindestens bis zum eingestellten Ladestand laden. Wenn notwendig mit Netzstrom.",minpv:"Durchgehend mit mindestens dem eingestellten Strom laden. Wenn notwendig mit Netzstrom.",pricebased:"Laden bei dynamischem Stromtarif, wenn eingestellter Maximalpreis unterboten wird."};function xo(){const t={};t.hideSH=Object.values(H).filter(e=>!e.showInGraph).map(e=>e.id),t.showLG=g.graphPreference=="live",t.displayM=g.displayMode,t.stackO=g.usageStackOrder,t.showGr=g.showGrid,t.decimalP=g.decimalPlaces,t.smartHomeC=g.smartHomeColors,t.relPM=g.showRelativeArcs,t.maxPow=g.maxPower,t.showQA=g.showQuickAccess,t.simpleCP=g.simpleCpList,t.shortCP=g.shortCpList,t.animation=g.showAnimations,t.wideB=g.preferWideBoxes,t.fluidD=g.fluidDisplay,t.clock=g.showClock,t.showButtonBar=g.showButtonBar,t.showCounters=g.showCounters,t.showVehicles=g.showVehicles,t.showPrices=g.showPrices,t.debug=g.debug,document.cookie="openWBColorTheme="+JSON.stringify(t)+";max-age=16000000;samesite=strict"}function So(){const e=document.cookie.split(";").filter(a=>a.split("=")[0]==="openWBColorTheme");if(e.length>0){const a=JSON.parse(e[0].split("=")[1]);a.decimalP!==void 0&&g.setDecimalPlaces(+a.decimalP),a.smartHomeC!==void 0&&g.setSmartHomeColors(a.smartHomeC),a.hideSH!==void 0&&a.hideSH.map(o=>{H[o]==null&&Nt(o),H[o].setShowInGraph(!1)}),a.showLG!==void 0&&g.setGraphPreference(a.showLG?"live":"today"),a.maxPow!==void 0&&g.setMaxPower(+a.maxPow),a.relPM!==void 0&&g.setShowRelativeArcs(a.relPM),a.displayM!==void 0&&g.setDisplayMode(a.displayM),a.stackO!==void 0&&g.setUsageStackOrder(a.stackO),a.showGr!==void 0&&g.setShowGrid(a.showGr),a.showQA!==void 0&&g.setShowQuickAccess(a.showQA),a.simpleCP!==void 0&&g.setSimpleCpList(a.simpleCP),a.shortCP!==void 0&&g.setShortCpList(a.shortCP),a.animation!=null&&g.setShowAnimations(a.animation),a.wideB!=null&&g.setPreferWideBoxes(a.wideB),a.fluidD!=null&&g.setFluidDisplay(a.fluidD),a.clock!=null&&g.setShowClock(a.clock),a.showButtonBar!==void 0&&g.setShowButtonBar(a.showButtonBar),a.showCounters!==void 0&&g.setShowCounters(a.showCounters),a.showVehicles!==void 0&&g.setShowVehicles(a.showVehicles),a.showPrices!==void 0&&g.setShowPrices(a.showPrices),a.debug!==void 0&&g.setDebug(a.debug)}}class $o{constructor(e){f(this,"id");f(this,"name","Gerät");f(this,"power",0);f(this,"status","off");f(this,"energy",0);f(this,"runningTime",0);f(this,"configured",!1);f(this,"_showInGraph",!0);f(this,"color","white");f(this,"canSwitch",!1);f(this,"countAsHouse",!1);f(this,"energyPv",0);f(this,"energyBat",0);f(this,"pvPercentage",0);f(this,"tempConfigured",0);f(this,"temp",[300,300,300]);f(this,"on",!1);f(this,"isAutomatic",!0);f(this,"icon","");this.id=e}get showInGraph(){return this._showInGraph}set showInGraph(e){this._showInGraph=e,re()}setShowInGraph(e){this._showInGraph=e}}const H=ne({});function Nt(t){t in H?console.info("Duplicate sh device message: "+t):(H[t]=new $o(t),H[t].color="var(--color-sh"+Object.values(H).length+")")}const Mo=["origin"],Co=V({__name:"PMSourceArc",props:{radius:{},cornerRadius:{},circleGapSize:{},emptyPower:{}},setup(t){const e=t,a=p(()=>{let o={name:"",power:e.emptyPower,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:"var(--color-bg)",icon:""},n=q;n["zz-empty"]=o;const l=Object.values(q).length-1,c=ca().value(m=>m.power).startAngle(-Math.PI/2+e.circleGapSize).endAngle(Math.PI/2-e.circleGapSize).sort(null),u=da().innerRadius(e.radius/6*5).outerRadius(e.radius).cornerRadius(e.cornerRadius).padAngle(0),d=_e("g#pmSourceArc");return d.selectAll("*").remove(),d.selectAll("sources").data(c(Object.values(n))).enter().append("path").attr("d",u).attr("fill",m=>m.data.color).attr("stroke",(m,y)=>y==l?m.data.power>0?"var(--color-scale)":"null":m.data.color),"pmSourceArc.vue"});return Na(()=>{let o=q.pv.power+q.evuIn.power+q.batOut.power;o>g.maxPower&&(g.maxPower=o)}),(o,n)=>(i(),h("g",{id:"pmSourceArc",origin:a.value},null,8,Mo))}}),Po=["origin"],Io=V({__name:"PMUsageArc",props:{radius:{},cornerRadius:{},circleGapSize:{},emptyPower:{}},setup(t){const e=t,a=p(()=>{let o={name:"",power:e.emptyPower,energy:0,energyPv:0,energyBat:0,pvPercentage:0,color:"var(--color-bg)",icon:""};const n=[W.evuOut,W.charging].concat(Object.values(H).filter(m=>m.configured&&!m.countAsHouse).sort((m,y)=>y.power-m.power)).concat([W.batIn,W.house]).concat(o),l=n.length-1,c=ca().value(m=>m.power).startAngle(Math.PI*1.5-e.circleGapSize).endAngle(Math.PI/2+e.circleGapSize).sort(null),u=da().innerRadius(e.radius/6*5).outerRadius(e.radius).cornerRadius(e.cornerRadius),d=_e("g#pmUsageArc");return d.selectAll("*").remove(),d.selectAll("consumers").data(c(n)).enter().append("path").attr("d",u).attr("fill",m=>m.data.color).attr("stroke",(m,y)=>y==l?m.data.power>0?"var(--color-scale)":"null":m.data.color),"pmUsageArc.vue"});return(o,n)=>(i(),h("g",{id:"pmUsageArc",origin:a.value},null,8,Po))}});function je(t,e=1){let a;if(t>=1e3&&e<4){switch(e){case 0:a=Math.round(t/1e3);break;case 1:a=Math.round(t/100)/10;break;case 2:a=Math.round(t/10)/100;break;case 3:a=Math.round(t)/1e3;break;default:a=Math.round(t/100)/10;break}return(a==null?void 0:a.toLocaleString(void 0,{minimumFractionDigits:e}))+" kW"}else return Math.round(t).toLocaleString(void 0)+" W"}function tt(t,e=1,a=!1){let o;if(t>1e6&&(a=!0,t=t/1e3),t>=1e3&&e<4){switch(e){case 0:o=Math.round(t/1e3);break;case 1:o=(Math.round(t/100)/10).toFixed(1);break;case 2:o=(Math.round(t/10)/100).toFixed(2);break;case 3:o=(Math.round(t)/1e3).toFixed(3);break;default:o=Math.round(t/100)/10;break}return o.toLocaleString(void 0,{minimumFractionDigits:e})+(a?" MWh":" kWh")}else return Math.round(t).toLocaleString(void 0)+(a?" kWh":" Wh")}function Bo(t){const e=Math.floor(t/3600),a=(t%3600/60).toFixed(0);return e>0?e+"h "+a+" min":a+" min"}function fa(t){return t.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function Vo(t,e){return["Jan","Feb","März","April","Mai","Juni","Juli","Aug","Sep","Okt","Nov","Dez"][t]+" "+e}function Lo(t){return t!=999?(Math.round(t*10)/10).toLocaleString(void 0,{minimumFractionDigits:1})+"°":"-"}const bt=V({__name:"FormatWatt",props:{watt:{}},setup(t){const e=t,a=p(()=>je(e.watt,g.decimalPlaces));return(o,n)=>S(a.value)}}),Ao={key:0,id:"pmLabel"},Oo=["x","y","fill","text-anchor"],To=22,ke=V({__name:"PMLabel",props:{x:{},y:{},data:{},props:{},anchor:{},labeltext:{},labelicon:{},labelcolor:{}},setup(t){const e=t,a=p(()=>e.labeltext?e.labeltext:e.props?e.props.icon+" ":e.labelicon?e.labelicon+" ":""),o=p(()=>e.labelcolor?e.labelcolor:e.props?e.props.color:""),n=p(()=>!e.data||e.data.power>0),l=p(()=>e.labeltext?"":"fas");return(c,u)=>n.value?(i(),h("g",Ao,[s("text",{x:c.x,y:c.y,fill:o.value,"text-anchor":c.anchor,"font-size":To,class:"pmLabel"},[s("tspan",{class:z(l.value)},S(a.value),3),s("tspan",null,[c.data!==void 0?(i(),$(bt,{key:0,watt:c.data.power},null,8,["watt"])):b("",!0)])],8,Oo)])):b("",!0)}}),Do={class:"wb-widget p-0 m-0 shadow"},Go={class:"d-flex justify-content-between"},Wo={class:"m-4 me-0 mb-0"},zo=s("div",{class:"p-0"},"(title goes here)",-1),Eo={class:"p-4 pb-0 ps-0 m-0",style:{"text-align":"right"}},jo={class:"px-4 pt-4 pb-2 wb-subwidget"},Uo={class:"row"},Fo={class:"col m-0 p-0"},No={class:"container-fluid m-0 p-0"},Ho={key:0},Ro=s("hr",null,null,-1),qo={class:"px-4 py-2 wb-subwidget"},Jo={class:"row"},Qo={class:"col"},Yo={class:"container-fluid m-0 p-0"},nt=V({__name:"WBWidget",props:{variableWidth:{type:Boolean},fullWidth:{type:Boolean}},setup(t){const e=t,a=p(()=>e.fullWidth?"col-12":e.variableWidth&&g.preferWideBoxes?"col-lg-6":"col-lg-4");return(o,n)=>(i(),h("div",{class:z(["p-2 m-0 d-flex",a.value])},[s("div",Do,[s("div",Go,[s("h3",Wo,[le(o.$slots,"title",{},()=>[zo]),le(o.$slots,"subtitle")]),s("div",Eo,[le(o.$slots,"buttons")])]),s("div",jo,[s("div",Uo,[s("div",Fo,[s("div",No,[le(o.$slots,"default")])])])]),o.$slots.footer!=null?(i(),h("div",Ho,[Ro,s("div",qo,[s("div",Jo,[s("div",Qo,[s("div",Yo,[le(o.$slots,"footer")])])])])])):b("",!0)])],2))}});class Zo{constructor(){f(this,"active",!1);f(this,"etPriceList",new Map);f(this,"etProvider","");f(this,"etMaxPrice",0)}get etCurrentPriceString(){const[e]=ee.etPriceList.values();return(Math.round(e*10)/10).toFixed(1)+" ct"}}const ee=ne(new Zo),Xo={id:"powermeter",class:"p-0 m-0"},Ko=["viewBox"],es=["transform"],ts=["x"],Pe=500,Ie=20,Kt=1,as=V({__name:"PowerMeter",setup(t){const e=Pe,a=Math.PI/40,o=[[4],[4,6],[1,4,6],[0,2,4,6],[0,2,3,5,6]],n=[{x:-85,y:e/2*1/5},{x:0,y:e/2*1/5},{x:85,y:e/2*1/5},{x:-85,y:e/2*2/5},{x:0,y:e/2*2/5},{x:85,y:e/2*2/5},{x:0,y:e/2*3/5}],l=p(()=>Pe/2-Ie),c=p(()=>{let G="",T=Object.values(q).filter(F=>F.power>0);return T.length==1&&T[0].name=="PV"?G="Aktueller Verbrauch: ":G="Bezug/Verbrauch: ",G+je(W.house.power+W.charging.power+W.devices.power+W.batIn.power,g.decimalPlaces)}),u=p(()=>{let G=q.pv.power+q.evuIn.power+q.batOut.power;return g.maxPower>G?je(g.maxPower,g.decimalPlaces):je(G,g.decimalPlaces)}),d=p(()=>Object.values(B)),m=p(()=>{let G=0;return g.showRelativeArcs&&(G=g.maxPower-(q.pv.power+q.evuIn.power+q.batOut.power)),G<0?0:G}),y=p(()=>[W.evuOut,W.charging,W.devices,W.batIn,W.house].filter(G=>G.power>0)),I=p(()=>o[y.value.length-1]);function C(G){return n[I.value[G]]}function L(G){return Math.round(d.value[G].soc)}function A(G){return G.length>12?G.slice(0,12-1)+".":G}const Q=p(()=>{const[G]=ee.etPriceList.values();return Math.round(G*10)/10});return(G,T)=>(i(),$(nt,{"full-width":!0},{title:w(()=>[U(" Aktuelle Leistung ")]),default:w(()=>[s("figure",Xo,[(i(),h("svg",{viewBox:"0 0 "+Pe+" "+r(e)},[s("g",{transform:"translate("+Pe/2+","+r(e)/2+")"},[v(Co,{radius:l.value,"corner-radius":Kt,"circle-gap-size":a,"empty-power":m.value},null,8,["radius","empty-power"]),v(Io,{"sh-device":r(H),radius:l.value,"corner-radius":Kt,"circle-gap-size":a,"empty-power":m.value},null,8,["sh-device","radius","empty-power"]),v(ke,{x:0,y:-r(e)/10*2,data:r(q).pv,props:r(ge).pv,anchor:"middle",config:r(g)},null,8,["y","data","props","config"]),v(ke,{x:0,y:-r(e)/10*3,data:r(q).evuIn,props:r(ge).evuIn,anchor:"middle",config:r(g)},null,8,["y","data","props","config"]),v(ke,{x:0,y:-r(e)/10,data:r(q).batOut,props:r(ge).batOut,anchor:"middle",config:r(g)},null,8,["y","data","props","config"]),r(ee).active?(i(),$(ke,{key:0,x:0,y:-r(e)/10,data:r(q).batOut,props:r(ge).batOut,anchor:"middle",config:r(g)},null,8,["y","data","props","config"])):b("",!0),(i(!0),h(R,null,te(y.value,(F,P)=>(i(),$(ke,{key:P,x:C(P).x,y:C(P).y,data:F,labelicon:F.icon,labelcolor:F.color,anchor:"middle",config:r(g)},null,8,["x","y","data","labelicon","labelcolor","config"]))),128)),d.value.length>0&&r(Y)[d.value[0].connectedVehicle]?(i(),$(ke,{key:1,x:-Pe/2-Ie/4+10,y:-r(e)/2+Ie+5,labeltext:A(r(Y)[d.value[0].connectedVehicle].name)+": "+L(0)+"%",labelcolor:d.value[0].color,anchor:"start",config:r(g)},null,8,["x","y","labeltext","labelcolor","config"])):b("",!0),d.value.length>1&&r(Y)[d.value[1].connectedVehicle]?(i(),$(ke,{key:2,x:Pe/2+Ie/4-10,y:-r(e)/2+Ie+5,labeltext:A(r(Y)[d.value[1].connectedVehicle].name)+": "+L(1)+"%",labelcolor:d.value[1].color,anchor:"end",config:r(g)},null,8,["x","y","labeltext","labelcolor","config"])):b("",!0),r(ce).batterySoc>0?(i(),$(ke,{key:3,x:-Pe/2-Ie/4+10,y:r(e)/2-Ie+15,labeltext:"Speicher: "+r(ce).batterySoc+"%",labelcolor:r(W).batIn.color,anchor:"start",config:r(g)},null,8,["x","y","labeltext","labelcolor","config"])):b("",!0),r(ee).active?(i(),$(ke,{key:4,x:Pe/2+Ie/4-10,y:r(e)/2-Ie+15,value:Q.value,labeltext:r(ee).etCurrentPriceString,labelcolor:"var(--color-charging)",anchor:"end",config:r(g)},null,8,["x","y","value","labeltext","config"])):b("",!0),v(ke,{x:0,y:0,labeltext:c.value,labelcolor:"var(--color-fg)",anchor:"middle",config:r(g)},null,8,["labeltext","config"]),r(g).showRelativeArcs?(i(),h("text",{key:5,x:Pe/2-44,y:"2","text-anchor":"middle",fill:"var(--color-axis)","font-size":"12"}," Peak: "+S(u.value),9,ts)):b("",!0)],8,es)],8,Ko))])]),_:1}))}}),xe=500,Be=500,N={top:10,right:20,bottom:10,left:25},Ht=["charging","house","batIn","devices"];class os{constructor(){f(this,"data",[]);f(this,"_graphMode","")}get graphMode(){return this._graphMode}set graphMode(e){this._graphMode=e}}const _=ne(new os);let mt=!0,at=!0;function ea(){mt=!1}function ta(){at=!1}function ss(t){at=t}function rt(t){_.data=t}const ie=ne({refreshTopicPrefix:"openWB/graph/alllivevaluesJson",updateTopic:"openWB/graph/lastlivevaluesJson",configTopic:"openWB/graph/config/#",initialized:!1,initCounter:0,graphRefreshCounter:0,rawDataPacks:[],duration:0,activate(){_.data=[],this.unsubscribeUpdates(),this.subscribeRefresh(),Ee(this.configTopic),this.initialized=!1,this.initCounter=0,this.graphRefreshCounter=0,this.rawDataPacks=[],cs(),pt.value=!0},deactivate(){this.unsubscribeRefresh(),this.unsubscribeUpdates(),Ne(this.configTopic)},subscribeRefresh(){for(let t=1;t<17;t++)Ee(this.refreshTopicPrefix+t)},unsubscribeRefresh(){for(let t=1;t<17;t++)Ne(this.refreshTopicPrefix+t)},subscribeUpdates(){Ee(this.updateTopic)},unsubscribeUpdates(){Ne(this.updateTopic)}}),se=ne({topic:"openWB/log/daily/#",date:new Date,activate(){if(_.graphMode=="day"||_.graphMode=="today"){_.graphMode=="today"&&(this.date=new Date);const t=this.date.getFullYear().toString()+(this.date.getMonth()+1).toString().padStart(2,"0")+this.date.getDate().toString().padStart(2,"0");Ee(this.topic),Ut({command:"getDailyLog",data:{day:t}})}},deactivate(){Ne(this.topic)},back(){this.date=new Date(this.date.setTime(this.date.getTime()-864e5))},forward(){this.date=new Date(this.date.setTime(this.date.getTime()+864e5))},setDate(t){this.date=t},getDate(){return this.date}}),Se=ne({topic:"openWB/log/monthly/#",month:new Date().getMonth()+1,year:new Date().getFullYear(),activate(){const t=this.year.toString()+this.month.toString().padStart(2,"0");_.data=[],Ee(this.topic),Ut({command:"getMonthlyLog",data:{month:t}})},deactivate(){Ne(this.topic)},back(){this.month-=1,this.month<1&&(this.month=12,this.year-=1),this.activate()},forward(){const t=new Date;t.getFullYear()==this.year?this.month-112&&(this.month=1,this.year+=1)),this.activate()},getDate(){return new Date(this.year,this.month)}}),De=ne({topic:"openWB/log/yearly/#",month:new Date().getMonth()+1,year:new Date().getFullYear(),activate(){const t=this.year.toString();_.data=[],Ee(this.topic),Ut({command:"getYearlyLog",data:{year:t}})},deactivate(){Ne(this.topic)},back(){this.year-=1,this.activate()},forward(){this.year0&&(D.items[t].energyPv+=1e3/12*(e[t]*(e.pv-e.evuOut))/(e.pv-e.evuOut+e.evuIn+e.batOut),D.items[t].energyBat+=1e3/12*(e[t]*e.batOut)/(e.pv-e.evuOut+e.evuIn+e.batOut))}function is(t,e){e[t]>0&&(D.items[t].energyPv+=1e3*(e[t]*(e.pv-e.evuOut))/(e.pv-e.evuOut+e.evuIn+e.batOut),D.items[t].energyBat+=1e3*(e[t]*e.batOut)/(e.pv-e.evuOut+e.evuIn+e.batOut))}const ls=["evuIn","pv","batIn","evuOut"],Xe=X(!1);function Rt(t,e){Object.entries(t).length>0?(Xe.value=!1,Object.entries(t.counter).forEach(([a,o])=>{(e.length==0||e.includes(a))&&(D.items.evuIn.energy+=o.energy_imported,D.items.evuOut.energy+=o.energy_exported)}),D.items.pv.energy=t.pv.all.energy_exported,t.bat.all&&(D.items.batIn.energy=t.bat.all.energy_imported,D.items.batOut.energy=t.bat.all.energy_exported),Object.entries(t.cp).forEach(([a,o])=>{a=="all"?D.setEnergy("charging",o.energy_imported):D.setEnergy(a,o.energy_imported)}),D.setEnergy("devices",0),Object.entries(t.sh).forEach(([a,o])=>{D.setEnergy(a,o.energy_imported);const n=a.substring(2);H[+n].countAsHouse||(D.items.devices.energy+=o.energy_imported)}),t.hc&&t.hc.all?D.setEnergy("house",t.hc.all.energy_imported):D.calculateHouseEnergy(),D.keys().map(a=>{ls.includes(a)||(D.setPvPercentage(a,Math.round((D.items[a].energyPv+D.items[a].energyBat)/D.items[a].energy*100)),Ht.includes(a)&&(W[a].energy=D.items[a].energy,W[a].energyPv=D.items[a].energyPv,W[a].energyBat=D.items[a].energyBat,W[a].pvPercentage=D.items[a].pvPercentage))}),_.graphMode=="today"&&(Object.values(B).map(a=>{const o=D.items["cp"+a.id];o&&(a.energyPv=o.energyPv,a.energyBat=o.energyBat,a.pvPercentage=o.pvPercentage)}),Object.values(H).map(a=>{const o=D.items["sh"+a.id];o&&(a.energy=o.energy,a.energyPv=o.energyPv,a.energyBat=o.energyBat,a.pvPercentage=o.pvPercentage)}))):Xe.value=!0,pt.value=!0}function cs(){D.keys().map(t=>{Ht.includes(t)&&(W[t].energy=D.items[t].energy,W[t].energyPv=0,W[t].energyBat=0,W[t].pvPercentage=0)}),Object.values(B).map(t=>{t.energyPv=0,t.energyBat=0,t.pvPercentage=0}),Object.values(H).map(t=>{t.energyPv=0,t.energyBat=0,t.pvPercentage=0})}const $e=p(()=>{const t=Oe(_.data,e=>e.date);return t[1]?Ot().domain(Array.from({length:t[1]},(e,a)=>a+1)).paddingInner(.4).range([0,xe-N.left-2]):Ot().range([0,0])});function qt(){switch(_.graphMode){case"live":_.graphMode="today",g.showRightButton=!0,he();break;case"today":_.graphMode="day",se.date=new Date,se.back(),he();break;case"day":se.back(),he();break;case"month":Se.back();break;case"year":De.back();break}}function va(){const t=new Date;switch(_.graphMode){case"live":break;case"today":_.graphMode="live",g.showRightButton=!1,he();break;case"day":se.forward(),se.date.getDate()==t.getDate()&&se.date.getMonth()==t.getMonth()&&se.date.getFullYear()==t.getFullYear()&&(_.graphMode="today"),he();break;case"month":Se.forward();break;case"year":De.forward();break}}function _a(){switch(_.graphMode){case"live":qt();break;case"day":case"today":_.graphMode="month",he();break;case"month":_.graphMode="year",he();break}}function ba(){switch(_.graphMode){case"year":_.graphMode="month",he();break;case"month":_.graphMode="today",he();break;case"today":case"day":_.graphMode="live",he();break}}function aa(t){if(_.graphMode=="day"||_.graphMode=="today"){se.setDate(t);const e=new Date;se.date.getDate()==e.getDate()&&se.date.getMonth()==e.getMonth()&&se.date.getFullYear()==e.getFullYear()?_.graphMode="today":_.graphMode="day",he()}}const ds=["origin","transform"],us=V({__name:"PGSourceGraph",props:{width:{},height:{},margin:{}},setup(t){const e=t,a={house:"var(--color-house)",batIn:"var(--color-battery)",inverter:"var(--color-pv)",batOut:"var(--color-battery)",selfUsage:"var(--color-pv)",evuOut:"var(--color-export)",evuIn:"var(--color-evu)"};var o,n;const l=g.showAnimations?g.animationDuration:0,c=g.showAnimations?g.animationDelay:0,u=p(()=>{const x=_e("g#pgSourceGraph");_.graphMode=="month"||_.graphMode=="year"?P(x):F(x),x.selectAll(".axis").remove();const k=x.append("g").attr("class","axis");return k.call(Q.value),k.selectAll(".tick").attr("font-size",12),k.selectAll(".tick line").attr("stroke",T.value).attr("stroke-width",G.value),k.select(".domain").attr("stroke","var(--color-bg)"),"pgSourceGraph.vue"}),d=p(()=>_.graphMode=="month"||_.graphMode=="year"?["evuIn","batOut","selfUsage","evuOut"]:["selfUsage","evuOut","batOut","evuIn"]),m=p(()=>Te().domain([0,_.data.length-1]).range([0,e.width])),y=p(()=>ua().keys(d.value)),I=p(()=>y.value(_.data)),C=p(()=>Te().range([e.height-10,0]).domain(_.graphMode=="year"?[0,Math.ceil(L.value[1]*10)/10]:[0,Math.ceil(L.value[1])])),L=p(()=>{let x=Oe(_.data,k=>Math.max(k.pv+k.evuIn+k.batOut,k.selfUsage+k.evuOut));return x[0]!=null&&x[1]!=null?(_.graphMode=="year"&&(x[0]=x[0]/1e3,x[1]=x[1]/1e3),x):[0,0]}),A=p(()=>_.graphMode=="month"||_.graphMode=="year"?-e.width-e.margin.right-22:-e.width),Q=p(()=>ot(C.value).tickSizeInner(A.value).ticks(4).tickFormat(x=>(x==0?"":Math.round(x*10)/10).toLocaleString(void 0))),G=p(()=>g.showGrid?"0.5":"1"),T=p(()=>g.showGrid?"var(--color-grid)":"var(--color-bg)");function F(x){const k=dt().x((O,pe)=>m.value(pe)).y(C.value(0)),M=dt().x((O,pe)=>m.value(pe)).y0(O=>C.value(_.graphMode=="year"?O[0]/1e3:O[0])).y1(O=>C.value(_.graphMode=="year"?O[1]/1e3:O[1]));mt?(x.selectAll("*").remove(),o=x.selectAll(".sourceareas").data(I.value).enter().append("path").attr("fill",(O,pe)=>a[d.value[pe]]).attr("d",O=>k(O)),o.transition().duration(l).delay(c).ease(Je).attr("d",O=>M(O)),ea()):o.data(I.value).transition().duration(0).ease(Je).attr("d",O=>M(O))}function P(x){mt?(x.selectAll("*").remove(),n=x.selectAll(".sourcebar").data(I.value).enter().append("g").attr("fill",(k,M)=>a[d.value[M]]).selectAll("rect").data(k=>k).enter().append("rect").attr("x",(k,M)=>$e.value(_.data[M].date)??0).attr("y",()=>C.value(0)).attr("height",0).attr("width",$e.value.bandwidth()),n.transition().duration(l).delay(c).ease(Je).attr("height",k=>_.graphMode=="year"?C.value(k[0]/1e3)-C.value(k[1]/1e3):C.value(k[0])-C.value(k[1])).attr("y",k=>_.graphMode=="year"?C.value(k[1]/1e3):C.value(k[1])),ea()):(x.selectAll("*").remove(),n=x.selectAll(".sourcebar").data(I.value).enter().append("g").attr("fill",(k,M)=>a[d.value[M]]).selectAll("rect").data(k=>k).enter().append("rect").attr("x",(k,M)=>$e.value(_.data[M].date)??0).attr("y",k=>_.graphMode=="year"?C.value(k[1]/1e3):C.value(k[1])).attr("width",$e.value.bandwidth()).attr("height",k=>_.graphMode=="year"?C.value(k[0]/1e3)-C.value(k[1]/1e3):C.value(k[0])-C.value(k[1])))}return(x,k)=>(i(),h("g",{id:"pgSourceGraph",origin:u.value,transform:"translate("+x.margin.left+","+x.margin.top+")"},null,8,ds))}}),hs=["origin","transform"],ps=V({__name:"PGUsageGraph",props:{width:{},height:{},margin:{},stackOrder:{}},setup(t){const e=t,a=[["house","charging","devices","batIn"],["charging","devices","house","batIn"],["devices","charging","house","batIn"]],o={house:"var(--color-house)",charging:"var(--color-charging)",batIn:"var(--color-battery)",batOut:"var(--color-battery)",selfUsage:"var(--color-pv)",evuOut:"var(--color-export)",evuIn:"var(--color-evu)",cp0:"var(--color-cp0)",cp1:"var(--color-cp1)",cp2:"var(--color-cp2)",cp3:"var(--color-cp3)",sh1:"var(--color-sh1)",sh2:"var(--color-sh2)",sh3:"var(--color-sh3)",sh4:"var(--color-sh4)",devices:"var(--color-devices)"};var n,l;const c=g.showAnimations?g.animationDuration:0,u=g.showAnimations?g.animationDelay:0,d=p(()=>{const P=_e("g#pgUsageGraph");_.graphMode=="month"||_.graphMode=="year"?F(P):T(P),P.selectAll(".axis").remove();const x=P.append("g").attr("class","axis");return x.call(G.value),x.selectAll(".tick").attr("font-size",12).attr("color","var(--color-axis)"),g.showGrid?x.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):x.selectAll(".tick line").attr("stroke","var(--color-bg)"),x.select(".domain").attr("stroke","var(--color-bg)"),"pgUsageGraph.vue"}),m=p(()=>ua().keys(L.value)),y=p(()=>m.value(_.data)),I=p(()=>Te().domain([0,_.data.length-1]).range([0,e.width])),C=p(()=>Te().range([e.height+10,2*e.height]).domain(_.graphMode=="year"?[0,Math.ceil(A.value[1]*10)/10]:[0,Math.ceil(A.value[1])])),L=p(()=>{if(_.graphMode!="today"&&_.graphMode!="day")return a[e.stackOrder];{const P=a[e.stackOrder].slice(),x=P.indexOf("charging");P.splice(x,1);const k=/cp\d+/;let M=[];return _.data.length>0&&(M=Object.keys(_.data[0]).reduce((O,pe)=>(pe.match(k)&&O.push(pe),O),[])),M.map((O,pe)=>{P.splice(x+pe,0,O),o[O]="var(--color-cp"+pe+")"}),P}}),A=p(()=>{let P=Oe(_.data,x=>x.house+x.charging+x.batIn+x.devices);return P[0]!=null&&P[1]!=null?(_.graphMode=="year"&&(P[0]=P[0]/1e3,P[1]=P[1]/1e3),P):[0,0]}),Q=p(()=>_.graphMode=="month"||_.graphMode=="year"?-e.width-e.margin.right-22:-e.width),G=p(()=>ot(C.value).tickSizeInner(Q.value).ticks(4).tickFormat(P=>(P==0?"":Math.round(P*10)/10).toLocaleString(void 0)));function T(P){const x=dt().x((M,O)=>I.value(O)).y(C.value(0)),k=dt().x((M,O)=>I.value(O)).y0(M=>C.value(M[0])).y1(M=>C.value(M[1]));g.showAnimations?at?(P.selectAll("*").remove(),n=P.selectAll(".usageareas").data(y.value).enter().append("path").attr("d",M=>x(M)).attr("fill",(M,O)=>o[L.value[O]]),n.transition().duration(300).delay(100).ease(Je).attr("d",M=>k(M)),ta()):(P.selectAll("*").remove(),P.selectAll(".usageareas").data(y.value).enter().append("path").attr("d",M=>k(M)).attr("fill",(M,O)=>o[L.value[O]])):(P.selectAll("*").remove(),P.selectAll(".usageareas").data(y.value).enter().append("path").attr("d",M=>k(M)).attr("fill",(M,O)=>o[L.value[O]]))}function F(P){at?(P.selectAll("*").remove(),l=P.selectAll(".usagebar").data(y.value).enter().append("g").attr("fill",(x,k)=>o[a[e.stackOrder][k]]).selectAll("rect").data(x=>x).enter().append("rect").attr("x",(x,k)=>$e.value(_.data[k].date)??0).attr("y",()=>C.value(0)).attr("height",0).attr("width",$e.value.bandwidth()),l.transition().duration(c).delay(u).ease(Je).attr("y",x=>_.graphMode=="year"?C.value(x[0]/1e3):C.value(x[0])).attr("height",x=>_.graphMode=="year"?C.value(x[1]/1e3)-C.value(x[0]/1e3):C.value(x[1])-C.value(x[0])),ta()):(P.selectAll("*").remove(),l=P.selectAll(".usagebar").data(y.value).enter().append("g").attr("fill",(x,k)=>o[a[e.stackOrder][k]]).selectAll("rect").data(x=>x).enter().append("rect").attr("x",(x,k)=>$e.value(_.data[k].date)??0).attr("y",x=>_.graphMode=="year"?C.value(x[0]/1e3):C.value(x[0])).attr("height",x=>_.graphMode=="year"?C.value(x[1]/1e3)-C.value(x[0]/1e3):C.value(x[1])-C.value(x[0])).attr("width",$e.value.bandwidth()))}return(P,x)=>(i(),h("g",{id:"pgUsageGraph",origin:d.value,transform:"translate("+P.margin.left+","+P.margin.top+")"},null,8,hs))}}),gs=["transform"],ms=["origin","transform"],fs=["origin","transform"],vs={key:0},_s=["width","height"],bs={key:1},ys=["y","width","height"],kt=12,ws=V({__name:"PGXAxis",props:{width:{},height:{},margin:{}},setup(t){const e=t,a=p(()=>Qe(u.value).ticks(4).tickSizeInner(c.value).tickFormat(et("%H:%M"))),o=p(()=>Ha(u.value).ticks(4).tickSizeInner(c.value+3).tickFormat(et(""))),n=p(()=>Qe($e.value).ticks(4).tickSizeInner(c.value).tickFormat(y=>y.toString())),l=p(()=>Qe($e.value).ticks(4).tickSizeInner(c.value).tickFormat(()=>"")),c=p(()=>_.graphMode!=="month"&&_.graphMode!=="year"?g.showGrid?-(e.height/2-7):-10:0),u=p(()=>{let y=Oe(_.data,I=>I.date);return y[0]&&y[1]?Re().domain(y).range([0,e.width]):Re().range([0,0])}),d=p(()=>{let y=_e("g#PGXAxis");return y.selectAll("*").remove(),_.graphMode=="month"||_.graphMode=="year"?y.call(n.value):y.call(a.value),y.selectAll(".tick > text").attr("fill",(I,C)=>C>0||_.graphMode=="month"||_.graphMode=="year"?"var(--color-axis)":"var(--color-bg)").attr("font-size",kt),g.showGrid?y.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):y.selectAll(".tick line").attr("stroke","var(--color-bg)"),y.select(".domain").attr("stroke","var(--color-bg)"),y.append("text").attr("x",-e.margin.left).attr("y",12).attr("fill","var(--color-axis)").attr("font-size",kt).text(_.graphMode=="year"?"MW":"kW").attr("text-anchor","start"),"PGXAxis.vue"}),m=p(()=>{let y=_e("g#PGXAxis2");return y.selectAll("*").remove(),_.graphMode=="month"||_.graphMode=="year"?y.call(l.value):y.call(o.value),y.selectAll(".tick > text").attr("fill",(I,C)=>C>0||_.graphMode=="month"||_.graphMode=="year"?"var(--color-axis)":"var(--color-bg)").attr("font-size",kt),g.showGrid?(y.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"),y.select(".domain").attr("stroke","var(--color-bg)")):y.selectAll(".tick line").attr("stroke","var(--color-bg)"),y.select(".domain").attr("stroke","var(--color-bg)"),"PGXAxis2.vue"});return(y,I)=>(i(),h("g",{transform:"translate("+y.margin.left+","+y.margin.top+")"},[s("g",{id:"PGXAxis",class:"axis",origin:d.value,transform:"translate(0,"+(y.height/2-6)+")"},null,8,ms),s("g",{id:"PGXAxis2",class:"axis",origin:m.value,transform:"translate(0,"+(y.height/2+10)+")"},null,8,fs),r(g).showGrid?(i(),h("g",vs,[s("rect",{x:"0",y:"0",width:y.width,height:y.height/2-10,fill:"none",stroke:"var(--color-grid)","stroke-width":"0.5"},null,8,_s)])):b("",!0),r(g).showGrid?(i(),h("g",bs,[s("rect",{x:"0",y:y.height/2+10,width:y.width,height:y.height/2-10,fill:"none",stroke:"var(--color-grid)","stroke-width":"0.5"},null,8,ys)])):b("",!0)],8,gs))}}),ks=["d"],xs=["d","stroke"],Ss=["x","y","text-anchor"],xt=V({__name:"PgSoc",props:{width:{},height:{},margin:{},order:{}},setup(t){const e=t,a=p(()=>{let I=Oe(_.data,C=>C.date);return I[0]&&I[1]?Re().domain(I).range([0,e.width]):Re().range([0,0])}),o=p(()=>Te().range([e.height-10,0]).domain([0,100])),n=p(()=>{let C=Tt().x(L=>a.value(L.date)).y(L=>o.value(e.order==2?L.batSoc:L["soc"+d.value.connectedVehicle])??o.value(0))(_.data);return C||""}),l=p(()=>e.order==2?"Speicher":d.value.vehicleName),c=p(()=>{switch(e.order){case 0:return"var(--color-cp1)";case 1:return"var(--color-cp2)";case 2:return"var(--color-battery)";default:return"red"}}),u=p(()=>{switch(e.order){case 0:return e.width-3;case 1:return 3;case 2:return e.width/2;default:return 0}}),d=p(()=>{const I=e.order==2?0:e.order;return Object.values(B)[I]}),m=p(()=>{if(_.data.length>0){let I;switch(e.order){case 0:return I=_.data.length-1,o.value(_.data[I]["soc"+d.value.connectedVehicle]+2);case 1:return I=0,o.value(_.data[I]["soc"+d.value.connectedVehicle]+2);case 2:return I=Math.round(_.data.length/2),o.value(_.data[I].batSoc+2);default:return 0}}else return 0}),y=p(()=>{switch(e.order){case 0:return"end";case 1:return"start";case 2:return"middle";default:return"middle"}});return(I,C)=>(i(),h(R,null,[s("path",{class:"soc-baseline",d:n.value,stroke:"var(--color-bg)","stroke-width":"1",fill:"none"},null,8,ks),s("path",{class:"soc-dashes",d:n.value,stroke:c.value,"stroke-width":"1",style:{strokeDasharray:"3,3"},fill:"none"},null,8,xs),s("text",{class:"cpname",x:u.value,y:m.value,style:J({fill:c.value,fontSize:10}),"text-anchor":y.value},S(l.value),13,Ss)],64))}}),$s=["transform"],Ms=V({__name:"PgSocAxis",props:{width:{},height:{},margin:{}},setup(t){const e=t,a=p(()=>Te().range([e.height-10,0]).domain([0,100])),o=p(()=>Ra(a.value).ticks(5).tickFormat(l=>l.toString()+"%"));function n(){let l=_e("g#PGSocAxis");l.call(o.value),l.selectAll(".tick").attr("font-size",12),l.selectAll(".tick line").attr("stroke","var(--color-bg)"),l.select(".domain").attr("stroke","var(--color-bg)")}return Ce(()=>{n()}),(l,c)=>(i(),h("g",{id:"PGSocAxis",class:"axis",transform:"translate("+(l.width-20)+",0)"},null,8,$s))}}),Cs=t=>(ae("data-v-7b8949f3"),t=t(),oe(),t),Ps={class:"d-flex align-self-top justify-content-center align-items-center"},Is={class:"input-group input-group-xs"},Bs={key:0,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},Vs={class:"dropdown-menu"},Ls={class:"table optiontable"},As=["onClick"],Os={key:1,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},Ts={class:"dropdown-menu"},Ds={class:"table optiontable"},Gs=["onClick"],Ws={key:2,class:"btn dropdown-toggle",type:"button","data-bs-toggle":"dropdown"},zs={class:"dropdown-menu"},Es={class:"table optiontable"},js=["onClick"],Us=Cs(()=>s("span",{class:"fa-solid fa-circle-check"},null,-1)),Fs=[Us],Ns=V({__name:"DateInput",props:{modelValue:{type:Date,required:!0},mode:{type:String,default:"day"}},emits:["update:modelValue"],setup(t,{emit:e}){const a=t,o=new Date().getFullYear();let n=Array.from({length:10},(C,L)=>o-L);const l=X(!0),c=[[0,1,2,3],[4,5,6,7],[8,9,10,11]],u=X(a.modelValue.getDate()),d=X(a.modelValue.getMonth()),m=X(a.modelValue.getFullYear()),y=p(()=>{const L=new Date(m.value,d.value,1).getDay();let A=0;switch(d.value){case 1:case 3:case 5:case 7:case 8:case 10:case 12:A=31;break;case 4:case 6:case 9:case 11:A=30;break;case 2:Math.trunc(m.value/4)*4==m.value&&(A=29)}let Q=[],G=[0,0,0,0,0,0,0],T=L;for(let F=0;F(i(),h("span",Ps,[s("div",Is,[a.mode=="day"||a.mode=="today"?(i(),h("button",Bs,S(u.value),1)):b("",!0),s("div",Vs,[s("table",Ls,[(i(!0),h(R,null,te(y.value,(A,Q)=>(i(),h("tr",{key:Q,class:""},[(i(!0),h(R,null,te(A,(G,T)=>(i(),h("td",{key:T},[G!=0?(i(),h("span",{key:0,type:"button",class:"btn optionbutton",onClick:F=>u.value=G},S(G),9,As)):b("",!0)]))),128))]))),128))])]),a.mode!="year"&&a.mode!="live"?(i(),h("button",Os,S(d.value+1),1)):b("",!0),s("div",Ts,[s("table",Ds,[(i(),h(R,null,te(c,(A,Q)=>s("tr",{key:Q,class:""},[(i(!0),h(R,null,te(A,(G,T)=>(i(),h("td",{key:T,class:"p-0 m-0"},[s("span",{type:"button",class:"btn btn-sm optionbutton",onClick:F=>d.value=G},S(G+1),9,Gs)]))),128))])),64))])]),a.mode!="live"?(i(),h("button",Ws,S(m.value),1)):b("",!0),s("div",zs,[s("table",Es,[(i(!0),h(R,null,te(r(n),(A,Q)=>(i(),h("tr",{key:Q,class:""},[s("td",null,[s("span",{type:"button",class:"btn optionbutton",onClick:G=>m.value=A},S(A),9,js)])]))),128))])]),a.mode!="live"?(i(),h("button",{key:3,class:"button-outline-secondary",type:"button",onClick:I},Fs)):b("",!0)])]))}});const E=(t,e)=>{const a=t.__vccOpts||t;for(const[o,n]of e)a[o]=n;return a},Hs=E(Ns,[["__scopeId","data-v-7b8949f3"]]),Rs={class:"btn-group m-0",role:"group","aria-label":"radiobar"},qs=["id","value"],Js=V({__name:"RadioBarInput",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const a=t,o=p({get(){return a.modelValue},set(c){e("update:modelValue",c)}});function n(c){let u=a.options[c].color?a.options[c].color:"var(--color-fg)";return a.options[c].active?{color:"var(--color-bg)",background:u}:{color:u}}function l(c){let u=c.target;for(;u&&!u.value&&u.parentElement;)u=u.parentElement;u.value&&(o.value=u.value)}return(c,u)=>(i(),h("div",null,[s("div",Rs,[(i(!0),h(R,null,te(c.options,(d,m)=>(i(),h("button",{id:"radio-"+d.value,key:m,class:z(["btn btn-outline-secondary btn-sm radiobutton mx-0 mb-0 px-2",d.value==o.value?"active":""]),value:d.value,style:J(n(m)),onClick:l},[s("span",{style:J(n(m))},[d.icon?(i(),h("i",{key:0,class:z(["fa-solid",d.icon])},null,2)):b("",!0),U(" "+S(d.text),1)],4)],14,qs))),128))])]))}});const ya=E(Js,[["__scopeId","data-v-82ab6829"]]),yt=t=>(ae("data-v-37d26037"),t=t(),oe(),t),Qs=yt(()=>s("i",{class:"fa-solid fa-xl fa-chevron-circle-up"},null,-1)),Ys=[Qs],Zs=yt(()=>s("span",{class:"fa-solid fa-xl fa-chevron-circle-left arrowButton"},null,-1)),Xs=[Zs],Ks=yt(()=>s("span",{class:"fa-solid fa-xl fa-gear"},null,-1)),en=[Ks],tn=yt(()=>s("span",{class:"fa-solid fa-xl fa-circle-check"},null,-1)),an=[tn],on=V({__name:"PgSelector",props:{widgetid:{},showLeftButton:{type:Boolean},showRightButton:{type:Boolean},ignoreLive:{type:Boolean}},emits:["shiftLeft","shiftRight","shiftUp","shiftDown"],setup(t){const e=t,a=X(0),o=p(()=>{switch(_.graphMode){case"live":return e.ignoreLive?"heute":`${ie.duration} min`;case"today":return"heute";case"day":return se.date.getDate()+"."+(se.date.getMonth()+1)+".";case"month":return Vo(Se.month-1,Se.year);case"year":return De.year.toString();default:return"???"}}),n=["live","today","day","month","year"],l=["Live","Heute","Tag","Monat","Jahr"],c=p({get(){return _.graphMode},set(F){switch(F){case"day":I();break;case"today":C();break;case"live":y();break;case"month":L();break;case"year":A()}}}),u=p(()=>{switch(_.graphMode){case"live":case"today":return se.getDate();case"month":return Se.getDate();default:return se.getDate()}});function d(F){aa(F)}function m(){a.value+=1,a.value>2&&(a.value=0)}function y(){_.graphMode!="live"&&(_.graphMode="live",he())}function I(){_.graphMode!="day"&&_.graphMode!="today"&&(_.graphMode="day",he())}function C(){_.graphMode!="today"&&(_.graphMode="today",aa(new Date),he())}function L(){_.graphMode!="month"&&(_.graphMode="month",he())}function A(){_.graphMode!="year"&&(_.graphMode="year",he())}const Q=p(()=>a.value>0?{border:"1px solid var(--color-frame)"}:""),G=p(()=>a.value==1?"justify-content-between":"justify-content-end"),T=p(()=>a.value==1?"justify-content-between":"justify-content-center");return(F,P)=>(i(),h("div",{class:"d-flex flex-column justify-content-center pgselector rounded",style:J(Q.value)},[a.value==2?(i(),$(ya,{key:0,id:"pgm2",modelValue:c.value,"onUpdate:modelValue":P[0]||(P[0]=x=>c.value=x),class:"m-2",options:n.map((x,k)=>({text:l[k],value:x,color:"var(--color-menu)",active:x==r(_).graphMode}))},null,8,["modelValue","options"])):b("",!0),a.value==1?(i(),h("span",{key:1,type:"button",class:z(["arrowButton d-flex align-self-center mb-3 mt-3",{disabled:!e.showLeftButton}]),onClick:P[1]||(P[1]=x=>F.$emit("shiftUp"))},Ys,2)):b("",!0),s("div",{class:z(["d-flex align-items-center",T.value])},[a.value==1?(i(),h("span",{key:0,type:"button",class:z(["p-1",{disabled:!e.showLeftButton}]),onClick:P[2]||(P[2]=x=>F.$emit("shiftLeft"))},Xs,2)):b("",!0),a.value<2?(i(),h("span",{key:1,type:"button",class:"btn-outline-secondary p-2 px-3 badge rounded-pill datebadge",onClick:m},S(o.value),1)):b("",!0),a.value==2?(i(),$(Hs,{key:2,"model-value":u.value,mode:r(_).graphMode,"onUpdate:modelValue":d},null,8,["model-value","mode"])):b("",!0),a.value==1?(i(),h("span",{key:3,id:"graphRightButton",type:"button",class:z(["arrowButton fa-solid fa-xl fa-chevron-circle-right p-1",{disabled:!e.showRightButton}]),onClick:P[3]||(P[3]=x=>F.$emit("shiftRight"))},null,2)):b("",!0)],2),s("div",{class:z(["d-flex align-items-center",G.value])},[a.value==1?(i(),h("span",{key:0,type:"button",class:"p-1",onClick:m},en)):b("",!0),a.value==1?(i(),h("span",{key:1,id:"graphLeftButton",type:"button",class:z(["arrowButton fa-solid fa-xl fa-chevron-circle-down p-1",{disabled:!e.showLeftButton}]),onClick:P[4]||(P[4]=x=>F.$emit("shiftDown"))},null,2)):b("",!0),a.value>0?(i(),h("span",{key:2,type:"button",class:"p-1",onClick:P[5]||(P[5]=x=>a.value=0)},an)):b("",!0)],2)],4))}});const wa=E(on,[["__scopeId","data-v-37d26037"]]),ka=t=>(ae("data-v-bb5945e3"),t=t(),oe(),t),sn={class:"d-flex justify-content-end"},nn=ka(()=>s("span",{class:"fa-solid fa-lg ps-1 fa-magnifying-glass"},null,-1)),rn=[nn],ln=["viewBox"],cn=["transform"],dn={id:"button"},un=["x","y"],hn=ka(()=>s("tspan",{fill:"var(--color-menu)",class:"fas fa-lg"},S(""),-1)),pn=[hn],gn=2,mn="Leistung / Ladestand ",fn=V({__name:"PowerGraph",setup(t){function e(){let o=g.usageStackOrder+1;o>gn&&(o=0),g.usageStackOrder=o,ss(!0)}function a(){g.zoomGraph=!g.zoomGraph}return(o,n)=>(i(),$(nt,{"full-width":!0},{title:w(()=>[U(S(mn))]),buttons:w(()=>[s("div",sn,[v(wa,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!1,onShiftLeft:r(qt),onShiftRight:r(va),onShiftUp:r(_a),onShiftDown:r(ba)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"]),r(Ge)?(i(),h("span",{key:0,type:"button",class:"ms-1 p-0 pt-1",onClick:a},rn)):b("",!0)])]),default:w(()=>[s("figure",{id:"powergraph",class:"p-0 m-0",onClick:e},[(i(),h("svg",{viewBox:"0 0 "+r(xe)+" "+r(Be)},[v(us,{width:r(xe)-r(N).left-2*r(N).right,height:(r(Be)-r(N).top-r(N).bottom)/2,margin:r(N)},null,8,["width","height","margin"]),v(ps,{width:r(xe)-r(N).left-2*r(N).right,height:(r(Be)-r(N).top-r(N).bottom)/2,margin:r(N),"stack-order":r(g).usageStackOrder},null,8,["width","height","margin","stack-order"]),v(ws,{width:r(xe)-r(N).left-2*r(N).right,height:r(Be)-r(N).top-r(N).bottom,margin:r(N),"graph-data":r(_)},null,8,["width","height","margin","graph-data"]),s("g",{transform:"translate("+r(N).left+","+r(N).top+")"},[(r(_).graphMode=="day"||r(_).graphMode=="today"||r(_).graphMode=="live")&&Object.values(r(B)).length>0?(i(),$(xt,{key:0,width:r(xe)-r(N).left-2*r(N).right,height:(r(Be)-r(N).top-r(N).bottom)/2,margin:r(N),order:0},null,8,["width","height","margin"])):b("",!0),(r(_).graphMode=="day"||r(_).graphMode=="today"||r(_).graphMode=="live")&&Object.values(r(B)).length>1?(i(),$(xt,{key:1,width:r(xe)-r(N).left-2*r(N).right,height:(r(Be)-r(N).top-r(N).bottom)/2,margin:r(N),order:1},null,8,["width","height","margin"])):b("",!0),(r(_).graphMode=="day"||r(_).graphMode=="today")&&r(ce).isBatteryConfigured?(i(),$(xt,{key:2,width:r(xe)-r(N).left-2*r(N).right,height:(r(Be)-r(N).top-r(N).bottom)/2,margin:r(N),order:2},null,8,["width","height","margin"])):b("",!0),r(_).graphMode=="day"||r(_).graphMode=="today"?(i(),$(Ms,{key:3,width:r(xe)-r(N).left-r(N).right,height:(r(Be)-r(N).top-r(N).bottom)/2,margin:r(N)},null,8,["width","height","margin"])):b("",!0)],8,cn),s("g",dn,[s("text",{x:r(xe),y:r(Be)-10,color:"var(--color-menu)","text-anchor":"end"},pn,8,un)])],8,ln))])]),_:1}))}});const vn=E(fn,[["__scopeId","data-v-bb5945e3"]]),_n=["id"],bn=["x","width","height","fill"],yn=["x","width","height"],wn=["x","y","width","height"],kn=V({__name:"EmBar",props:{item:{},xScale:{},yScale:{},margin:{},height:{},barcount:{},autarchy:{},autText:{}},setup(t){const e=t,a=p(()=>e.height-e.yScale(e.item.energy)-e.margin.top-e.margin.bottom),o=p(()=>e.item.energyPv>0?e.height-e.yScale(e.item.energyPv)-e.margin.top-e.margin.bottom:0),n=p(()=>e.item.energyPv>0?e.height-e.yScale(e.item.energyBat)-e.margin.top-e.margin.bottom:0);return(l,c)=>(i(),h("g",{id:"bar-"+e.item.name,transform:"scale(1,-1) translate (0,-445)"},[s("rect",{class:"bar",x:e.xScale(l.item.name),y:"0",width:e.xScale.bandwidth(),height:a.value,fill:l.item.color},null,8,bn),s("rect",{class:"bar",x:e.xScale(l.item.name)+e.xScale.bandwidth()/6,y:"0",width:e.xScale.bandwidth()*2/3,height:o.value,fill:"var(--color-pv)","fill-opacity":"66%"},null,8,yn),s("rect",{class:"bar",x:e.xScale(l.item.name)+e.xScale.bandwidth()/6,y:o.value,width:e.xScale.bandwidth()*2/3,height:n.value,fill:"var(--color-battery)","fill-opacity":"66%"},null,8,wn)],8,_n))}}),xn={id:"emBargraph"},Sn=s("animateTransform",{"attribute-name":"transform",type:"scale",from:"1 0",to:"1 1",begin:"0s",dur:"2s"},null,-1),$n=V({__name:"EMBarGraph",props:{plotdata:{},xScale:{},yScale:{},margin:{},height:{}},setup(t){const e=t;function a(n){if(n.name=="PV"){const l=_.graphMode=="live"||_.graphMode=="day"?q:D.items,u=(_.graphMode=="live"||_.graphMode=="day"?W:D.items).evuOut.energy,d=l.pv.energy;return Math.round((d-u)/d*100)}else if(n.name=="Netz"){const l=_.graphMode=="live"||_.graphMode=="day"?q:D.items,c=_.graphMode=="live"||_.graphMode=="day"?W:D.items,u=c.evuOut.energy,d=l.evuIn.energy,m=l.pv.energy,y=l.batOut.energy,I=c.batIn.energy;return Math.round((m+y-u-I)/(m+y+d-u-I)*100)}else return n.pvPercentage}function o(n){return n.name=="PV"?"Eigen":"Aut"}return(n,l)=>(i(),h("g",xn,[(i(!0),h(R,null,te(e.plotdata,(c,u)=>(i(),h("g",{key:u},[v(kn,{item:c,"x-scale":e.xScale,"y-scale":e.yScale,margin:e.margin,height:e.height,barcount:e.plotdata.length,"aut-text":o(c),autarchy:a(c)},null,8,["item","x-scale","y-scale","margin","height","barcount","aut-text","autarchy"])]))),128)),Sn]))}}),Mn=["origin"],Cn=V({__name:"EMYAxis",props:{yScale:{type:[Function,Object]},width:{},fontsize:{}},setup(t){const e=t,a=p(()=>ot(e.yScale).tickFormat(n=>n>0?(n/1e3).toString():"").ticks(6).tickSizeInner(-e.width)),o=p(()=>{const n=_e("g#emYAxis");return n.attr("class","axis").call(a.value),n.append("text").attr("y",6).attr("dy","0.71em").attr("text-anchor","end").text("energy"),n.selectAll(".tick").attr("font-size",e.fontsize),g.showGrid?n.selectAll(".tick line").attr("stroke","var(--color-grid)").attr("stroke-width","0.5"):n.selectAll(".tick line").attr("stroke","var(--color-bg)"),n.select(".domain").attr("stroke","var(--color-bg)"),"emYAxis.vue"});return(n,l)=>(i(),h("g",{id:"emYAxis",class:"axis",origin:o.value},null,8,Mn))}}),Pn=["id"],In=["x","y","font-size"],Bn=["x","y","font-size","fill"],Vn=["x","y","font-size","fill"],Ln=V({__name:"EmLabel",props:{item:{},xScale:{},yScale:{},margin:{},height:{},barcount:{},autarchy:{},autText:{}},setup(t){const e=t,a=p(()=>e.autarchy?e.yScale(e.item.energy)-25:e.yScale(e.item.energy)-10),o=p(()=>{let d=16,m=e.barcount;return m<=5?d=16:m==6?d=14:m>6&&m<=8?d=13:m==9?d=11:m==10?d=10:d=9,d}),n=p(()=>{let d=12,m=e.barcount;return m<=5?d=12:m==6?d=11:m>6&&m<=8||m==9?d=8:m==10?d=7:d=6,d});function l(d,m){return m.length>n.value?m.substring(0,n.value)+".":m}function c(){return e.autarchy?e.autText+": "+e.autarchy.toLocaleString(void 0)+" %":""}function u(){return"var(--color-pv)"}return(d,m)=>(i(),h("g",{id:"barlabel-"+e.item.name},[s("text",{x:e.xScale(d.item.name)+e.xScale.bandwidth()/2,y:a.value,"font-size":o.value,"text-anchor":"middle",fill:"var(--color-menu)"},S(r(tt)(d.item.energy,r(g).decimalPlaces,!1)),9,In),s("text",{x:e.xScale(d.item.name)+e.xScale.bandwidth()/2,y:e.yScale(d.item.energy)-10,"font-size":o.value-2,"text-anchor":"middle",fill:u()},S(c()),9,Bn),s("text",{x:e.xScale(d.item.name)+e.xScale.bandwidth()/2,y:e.height-e.margin.bottom-5,"font-size":o.value,"text-anchor":"middle",fill:d.item.color,class:z(d.item.icon.length<=2?"fas":"")},S(l(d.item.name,d.item.icon)),11,Vn)],8,Pn))}}),An={id:"emBarLabels"},On=V({__name:"EMLabels",props:{plotdata:{},xScale:{},yScale:{},height:{},margin:{}},setup(t){const e=t;function a(n){if(n.name=="PV"){const l=_.graphMode=="live"||_.graphMode=="day"?q:D.items,u=(_.graphMode=="live"||_.graphMode=="day"?W:D.items).evuOut.energy,d=l.pv.energy;return Math.round((d-u)/d*100)}else if(n.name=="Netz"){const l=_.graphMode=="live"||_.graphMode=="day"?q:D.items,c=_.graphMode=="live"||_.graphMode=="day"?W:D.items,u=c.evuOut.energy,d=l.evuIn.energy,m=l.pv.energy,y=l.batOut.energy,I=c.batIn.energy;return m+y-u-I>0?Math.round((m+y-u-I)/(m+y+d-u-I)*100):0}else return n.pvPercentage}function o(n){return n.name=="PV"?"Eigen":"Aut"}return(n,l)=>(i(),h("g",An,[(i(!0),h(R,null,te(e.plotdata,(c,u)=>(i(),h("g",{key:u},[v(Ln,{item:c,"x-scale":e.xScale,"y-scale":e.yScale,margin:e.margin,height:e.height,barcount:e.plotdata.length,"aut-text":o(c),autarchy:a(c)},null,8,["item","x-scale","y-scale","margin","height","barcount","aut-text","autarchy"])]))),128))]))}}),Tn={id:"energymeter",class:"p-0 m-0"},Dn={viewBox:"0 0 500 500"},Gn=["transform"],Wn=["x"],zn={key:0},oa=500,St=500,sa=12,En="Energie",jn=V({__name:"EnergyMeter",setup(t){const e={top:25,bottom:30,left:25,right:0},a=p(()=>{let c=Object.values(q),u=l.value,d=D.values(),m=[];switch(g.debug&&(console.debug("----------------------- source summary -----------------"),console.debug(q),console.debug("----------------------- usage details ------------------"),console.debug(l.value),console.debug("----------------------- historic summary ---------------"),console.debug(D),console.debug("--------------------------------------------------------")),pt.value==!0&&(pt.value=!1),_.graphMode){default:case"live":case"today":m=c.concat(u).filter(y=>y.energy>0);break;case"day":case"month":case"year":d.length==0?Xe.value=!0:(Xe.value=!1,m=d.filter(y=>y.energy>0))}return m}),o=p(()=>Ot().range([0,oa-e.left-e.right]).domain(a.value.map(c=>c.name)).padding(.4)),n=p(()=>Te().range([St-e.bottom-e.top,15]).domain([0,qa(a.value,c=>c.energy)])),l=p(()=>{const c=Object.values(B).length,u=Object.values(H).filter(d=>d.configured).length;return[W.evuOut,W.devices,W.charging].concat(c>1?Object.values(B).map(d=>d.toPowerItem()):[]).concat(u>1?Object.values(H).filter(d=>d.configured&&d.showInGraph):[]).concat([W.batIn,W.house])});return(c,u)=>(i(),$(nt,{"full-width":!0},{title:w(()=>[U(S(En))]),buttons:w(()=>[v(wa,{widgetid:"graphsettings","show-left-button":!0,"show-right-button":!0,"ignore-live":!0,onShiftLeft:r(qt),onShiftRight:r(va),onShiftUp:r(_a),onShiftDown:r(ba)},null,8,["onShiftLeft","onShiftRight","onShiftUp","onShiftDown"])]),default:w(()=>[s("figure",Tn,[(i(),h("svg",Dn,[s("g",{transform:"translate("+e.left+","+e.top+")"},[v($n,{plotdata:a.value,"x-scale":o.value,"y-scale":n.value,height:St,margin:e},null,8,["plotdata","x-scale","y-scale"]),v(Cn,{"y-scale":n.value,width:oa,fontsize:sa,config:r(g)},null,8,["y-scale","config"]),s("text",{x:-e.left,y:"-15",fill:"var(--color-axis)","font-size":sa},S(r(_).graphMode=="year"?"MWh":"kWh"),9,Wn),v(On,{plotdata:a.value,"x-scale":o.value,"y-scale":n.value,height:St,margin:e,config:r(g)},null,8,["plotdata","x-scale","y-scale","config"])],8,Gn)]))]),r(Xe)?(i(),h("p",zn,"No data")):b("",!0)]),_:1}))}}),Un={class:"d-flex flex-column align-items-center justify-content-start infoitem"},Fn=V({__name:"InfoItem",props:{heading:{},small:{type:Boolean}},setup(t){const e=t,a=p(()=>e.small?{"font-size":"var(--font-small)"}:{"font-size":"var(--font-small)"}),o=p(()=>e.small?{"font-size":"var(--font-small)"}:{"font-size":"var(--font-normal)"}),n=p(()=>e.small?"mt-0":"mt-1");return(l,c)=>(i(),h("span",Un,[s("span",{class:z(["d-flex heading",n.value]),style:J(a.value)},S(e.heading),7),s("span",{class:"d-flex my-0 me-0 align-items-center content",style:J(o.value)},[le(l.$slots,"default",{},void 0,!0)],4)]))}});const Z=E(Fn,[["__scopeId","data-v-f6af00e8"]]),Nn={class:"d-flex justify-content-between align-items-center titlerow"},Hn={class:"buttonarea grid-col-12",style:{"text-align":"right"}},Rn={class:"contentrow grid-col-12"},qn=V({__name:"WbSubwidget",props:{titlecolor:{},fullwidth:{type:Boolean},small:{type:Boolean}},setup(t){const e=t,a=p(()=>{let n={"font-weight":"bold",color:"var(--color-fg)","font-size":"var(--font-normal)"};return e.titlecolor&&(n.color=e.titlecolor),e.small&&(n["font-size"]="var(--font-verysmall)"),n}),o=p(()=>e.fullwidth?"grid-col-12":"grid-col-4");return(n,l)=>(i(),h("div",{class:z(["wb-subwidget px-3 pt-2 my-0",o.value])},[s("div",Nn,[s("div",{class:"d-flex widgetname p-0 m-0",style:J(a.value)},[le(n.$slots,"title",{},void 0,!0)],4),s("div",Hn,[le(n.$slots,"buttons",{},void 0,!0)])]),s("div",Rn,[le(n.$slots,"default",{},void 0,!0)])],2))}});const it=E(qn,[["__scopeId","data-v-971e553f"]]),Jn=t=>(ae("data-v-b935eb33"),t=t(),oe(),t),Qn={class:"grid-col-12 mt-2 mb-0 px-0 py-0 configitem"},Yn={class:"titlecolumn m-0 p-0 d-flex align-items-center"},Zn=Jn(()=>s("i",{class:"me-1 fa-solid fa-sm fa-circle-info"},null,-1)),Xn={class:"ms-1 mb-2 p-0 pt-2 d-flex justify-content-stretch align-items-center"},Kn={class:"justify-content-stretch d-flex"},er=V({__name:"ConfigItem",props:{title:{},infotext:{},icon:{},fullwidth:{type:Boolean}},setup(t){const e=t,a=X(!1);function o(){a.value=!a.value}const n=p(()=>{let l={color:"var(--color-charging)"};return a.value&&(l.color="var(--color-battery)"),l});return(l,c)=>(i(),$(it,{fullwidth:!!l.fullwidth},{default:w(()=>[s("div",Qn,[s("div",Yn,[s("span",{class:"d-flex align-items-baseline m-0 p-0",onClick:o},[e.icon?(i(),h("i",{key:0,class:z(["fa-solid fa-sm m-0 p-0 me-2 item-icon",e.icon])},null,2)):b("",!0),U(" "+S(l.title),1)]),s("span",null,[e.infotext?(i(),h("i",{key:0,class:"fa-solid fa-sm fa-circle-question ms-4 me-2",style:J(n.value),onClick:o},null,4)):b("",!0)])]),a.value?(i(),h("p",{key:0,class:"infotext shadow m-0 ps-2 mb-1 p-1",onClick:o},[Zn,U(" "+S(l.infotext),1)])):b("",!0),s("div",Xn,[s("span",Kn,[le(l.$slots,"default",{},void 0,!0)])])])]),_:3},8,["fullwidth"]))}});const j=E(er,[["__scopeId","data-v-b935eb33"]]),xa=t=>(ae("data-v-17a828b1"),t=t(),oe(),t),tr={class:"d-flex flex-column"},ar={class:"d-flex flex-fill justify-content-between align-items-center"},or=xa(()=>s("i",{class:"fa fa-xl fa-minus-square me-2"},null,-1)),sr=[or],nr=["id","min","max","step"],rr=xa(()=>s("i",{class:"fa fa-xl fa-plus-square ms-2"},null,-1)),ir=[rr],lr={class:"d-flex justify-content-between align-items-center"},cr={class:"minlabel ps-4"},dr={class:"valuelabel"},ur={class:"maxlabel pe-4"},hr=V({__name:"RangeInput",props:{id:{},min:{},max:{},step:{},unit:{},decimals:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const a=t,o=a.decimals??0,n=p({get(){return Math.round(a.modelValue*Math.pow(10,o))/Math.pow(10,o)},set(u){e("update:modelValue",u)}});function l(){n.value>a.min&&(n.value=Math.round((n.value-a.step)*Math.pow(10,o))/Math.pow(10,o))}function c(){n.value(i(),h("span",tr,[s("span",ar,[s("span",{type:"button",class:"minusButton",onClick:l},sr),st(s("input",{id:u.id,"onUpdate:modelValue":d[0]||(d[0]=m=>n.value=m),type:"range",class:"form-range flex-fill",min:u.min,max:u.max,step:u.step},null,8,nr),[[Ja,n.value,void 0,{number:!0}]]),s("span",{type:"button",class:"plusButton",onClick:c},ir)]),s("span",lr,[s("span",cr,S(u.min),1),s("span",dr,S(n.value)+" "+S(u.unit),1),s("span",ur,S(u.max),1)])]))}});const Me=E(hr,[["__scopeId","data-v-17a828b1"]]),pr=["id","value"],gr=V({__name:"RadioInput",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const a=t,o=p({get(){return a.modelValue},set(c){e("update:modelValue",c)}});function n(c){return a.options[c][2]?{color:a.options[c][2]}:{color:"var(--color-fg)"}}function l(c){let u=c.target;for(;u&&!u.value&&u.parentElement;)u=u.parentElement;u.value&&(o.value=u.value)}return(c,u)=>(i(),h("div",null,[(i(!0),h(R,null,te(c.options,(d,m)=>(i(),h("button",{id:"radio-"+d[1],key:m,class:z(["btn btn-outline-secondary radiobutton me-2 mb-0 px-2",d[1]==o.value?"active":""]),value:d[1],style:J(n(m)),onClick:l},[s("span",{style:J(n(m))},[d[3]?(i(),h("i",{key:0,class:z(["fa-solid",d[3]])},null,2)):b("",!0),U(" "+S(d[0]),1)],4)],14,pr))),128))]))}});const Ae=E(gr,[["__scopeId","data-v-df222cbe"]]),mr=t=>(ae("data-v-0303d179"),t=t(),oe(),t),fr={class:"mt-2"},vr=mr(()=>s("p",{class:"heading ms-1"},"Sofortladen:",-1)),_r={key:0},br=V({__name:"CPConfigInstant",props:{chargepoint:{}},setup(t){const a=X(t.chargepoint),o=[{name:"keine",id:"none"},{name:"EV-SoC",id:"soc"},{name:"Energiemenge",id:"amount"}],n=p({get(){return a.value.instantMaxEnergy/1e3},set(l){a.value.instantMaxEnergy=l*1e3}});return(l,c)=>(i(),h("div",fr,[vr,v(j,{title:"Stromstärke",icon:"fa-bolt",fullwidth:!0},{default:w(()=>[v(Me,{id:"targetCurrent",modelValue:a.value.instantTargetCurrent,"onUpdate:modelValue":c[0]||(c[0]=u=>a.value.instantTargetCurrent=u),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])]),_:1}),a.value.instantChargeLimitMode!="none"?(i(),h("hr",_r)):b("",!0),v(j,{title:"Begrenzung",icon:"fa-hand",fullwidth:!0},{default:w(()=>[v(Ae,{modelValue:a.value.instantChargeLimitMode,"onUpdate:modelValue":c[1]||(c[1]=u=>a.value.instantChargeLimitMode=u),options:o.map(u=>[u.name,u.id])},null,8,["modelValue","options"])]),_:1}),a.value.instantChargeLimitMode=="soc"?(i(),$(j,{key:1,title:"Maximaler SoC",icon:"fa-sliders",fullwidth:!0},{default:w(()=>[v(Me,{id:"maxSoc",modelValue:a.value.instantTargetSoc,"onUpdate:modelValue":c[2]||(c[2]=u=>a.value.instantTargetSoc=u),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):b("",!0),a.value.instantChargeLimitMode=="amount"?(i(),$(j,{key:2,title:"Zu ladende Energie",icon:"fa-sliders",fullwidth:!0},{default:w(()=>[v(Me,{id:"maxEnergy",modelValue:n.value,"onUpdate:modelValue":c[3]||(c[3]=u=>n.value=u),min:0,max:100,step:1,unit:"kWh"},null,8,["modelValue"])]),_:1})):b("",!0)]))}});const yr=E(br,[["__scopeId","data-v-0303d179"]]),wr={class:"form-check form-switch"},de=V({__name:"SwitchInput",props:{modelValue:{type:Boolean},onColor:{},offColor:{}},emits:["update:modelValue"],setup(t,{emit:e}){const a=t,o=p({get(){return a.modelValue},set(l){e("update:modelValue",l)}}),n=p(()=>o.value?{"background-color":"green"}:{"background-color":"white"});return(l,c)=>(i(),h("div",wr,[st(s("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>o.value=u),class:"form-check-input",type:"checkbox",role:"switch",style:J(n.value)},null,4),[[Et,o.value]])]))}}),Sa=t=>(ae("data-v-1a90f282"),t=t(),oe(),t),kr={class:"pt-2"},xr=Sa(()=>s("p",{class:"heading ms-1"},"PV-Laden:",-1)),Sr={class:"form-check form-switch"},$r=Sa(()=>s("hr",null,null,-1)),Mr={key:2},Cr=V({__name:"CPConfigPv",props:{chargepoint:{}},setup(t){const a=X(t.chargepoint),o=p({get(){return a.value.pvMinCurrent>5},set(l){l?a.value.pvMinCurrent=6:a.value.pvMinCurrent=0}}),n=p({get(){return a.value.pvMinSoc>0},set(l){l?a.value.pvMinSoc=50:a.value.pvMinSoc=0}});return(l,c)=>(i(),h("div",kr,[xr,v(j,{title:"Maximaler Ladestand",icon:"fa-battery-three-quarters",fullwidth:!0},{default:w(()=>[v(Me,{id:"maxSoc",modelValue:a.value.pvMaxSoc,"onUpdate:modelValue":c[0]||(c[0]=u=>a.value.pvMaxSoc=u),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1}),v(j,{title:"Einspeisegrenze beachten",icon:"fa-hand",fullwidth:!0},{default:w(()=>[s("div",Sr,[st(s("input",{id:"feedInLimitSwitch","onUpdate:modelValue":c[1]||(c[1]=u=>a.value.pvFeedInLimit=u),class:"form-check-input",type:"checkbox",role:"switch"},null,512),[[Et,a.value.pvFeedInLimit]])])]),_:1}),$r,v(j,{title:"Minimaler Ladestand",icon:"fa-battery-half",infotext:r(Ve).minsoc,fullwidth:!0},{default:w(()=>[v(de,{modelValue:n.value,"onUpdate:modelValue":c[2]||(c[2]=u=>n.value=u)},null,8,["modelValue"])]),_:1},8,["infotext"]),n.value?(i(),$(j,{key:0,title:"...bis SoC",fullwidth:!0},{info:w(()=>[U(S(r(Ve).minsoc),1)]),default:w(()=>[v(Me,{id:"minSoc",modelValue:a.value.pvMinSoc,"onUpdate:modelValue":c[3]||(c[3]=u=>a.value.pvMinSoc=u),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])]),_:1})):b("",!0),n.value?(i(),$(j,{key:1,title:"...mit Ladestrom",fullwidth:!0},{default:w(()=>[v(Me,{id:"minSocCurrent",modelValue:a.value.pvMinSocCurrent,"onUpdate:modelValue":c[4]||(c[4]=u=>a.value.pvMinSocCurrent=u),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])]),_:1})):b("",!0),o.value||n.value?(i(),h("hr",Mr)):b("",!0),v(j,{title:"Minimaler Ladestrom",icon:"fa-bolt",infotext:r(Ve).minpv,fullwidth:!0},{default:w(()=>[v(de,{modelValue:o.value,"onUpdate:modelValue":c[5]||(c[5]=u=>o.value=u)},null,8,["modelValue"])]),_:1},8,["infotext"]),o.value?(i(),$(j,{key:3,title:"...bei Ladestrom (minimal)",fullwidth:!0},{default:w(()=>[v(Me,{id:"minCurrent",modelValue:a.value.pvMinCurrent,"onUpdate:modelValue":c[6]||(c[6]=u=>a.value.pvMinCurrent=u),min:6,max:32,step:1,unit:"A"},null,8,["modelValue"])]),_:1})):b("",!0)]))}});const Pr=E(Cr,[["__scopeId","data-v-1a90f282"]]),$a=t=>(ae("data-v-e8f5ad9d"),t=t(),oe(),t),Ir=$a(()=>s("p",{class:"heading ms-1 pt-2"},"Zielladen:",-1)),Br={class:"table table-borderless"},Vr=$a(()=>s("thead",null,[s("tr",null,[s("th",{class:"tableheader"},"Ziel"),s("th",{class:"tableheader"},"Limit"),s("th",{class:"tableheader"},"Zeit"),s("th",{class:"tableheader"},"Wiederholung"),s("th",{class:"tableheader"})])],-1)),Lr={class:"tablecell"},Ar={class:"tablecell"},Or={class:"tablecell"},Tr={class:"tablecell"},Dr={class:"tablecell left"},Gr=["href"],Wr=V({__name:"CPConfigScheduled",props:{chargeTemplateId:{}},setup(t){const e=t,a={daily:"Täglich",once:"Einmal",weekly:"Wöchentlich"},o=p(()=>{let u=[];return Ye[e.chargeTemplateId]&&(u=Object.values(Ye[e.chargeTemplateId])),u});function n(u){return o.value[u].time}function l(u){return{color:o.value[u].active?"var(--color-switchGreen)":"var(--color-switchRed)"}}function c(u){return{"font-weight":o.value[u].active?"bold":"regular"}}return(u,d)=>(i(),h(R,null,[Ir,s("table",Br,[Vr,s("tbody",null,[(i(!0),h(R,null,te(o.value,(m,y)=>(i(),h("tr",{key:y,style:J(c(y))},[s("td",Lr,S(m.limit.soc_scheduled)+"%",1),s("td",Ar,S(m.limit.soc_limit)+"%",1),s("td",Or,S(n(y)),1),s("td",Tr,S(a[m.frequency.selected]),1),s("td",Dr,[s("a",{href:"../../settings/#/VehicleConfiguration/charge_template/"+e.chargeTemplateId},[s("span",{class:z([m.active?"fa-toggle-on":"fa-toggle-off","fa"]),style:J(l(y)),type:"button"},null,6)],8,Gr)])],4))),128))])])],64))}});const zr=E(Wr,[["__scopeId","data-v-e8f5ad9d"]]),Ma=t=>(ae("data-v-192e287b"),t=t(),oe(),t),Er=Ma(()=>s("p",{class:"heading ms-1 pt-2"},"Zeitpläne:",-1)),jr={class:"table table-borderless"},Ur=Ma(()=>s("thead",null,[s("tr",null,[s("th",{class:"tableheader"},"Von"),s("th",{class:"tableheader"},"Bis"),s("th",{class:"tableheader"},"Ladestrom"),s("th",{class:"tableheader"},"Wiederholung"),s("th",{class:"tableheader right"})])],-1)),Fr={class:"tablecell"},Nr={class:"tablecell"},Hr={class:"tablecell"},Rr={class:"tablecell"},qr={class:"tablecell left"},Jr=["href"],Qr=V({__name:"CPConfigTimed",props:{chargeTemplateId:{}},setup(t){const e=t,a={daily:"Täglich",once:"Einmal",weekly:"Wöchentlich"},o=p(()=>Ze[e.chargeTemplateId]?Object.values(Ze[e.chargeTemplateId])??[]:[]);function n(c){return{color:o.value[c].active?"var(--color-switchGreen)":"var(--color-switchRed)"}}function l(c){return{"font-weight":o.value[c].active?"bold":"regular"}}return(c,u)=>(i(),h(R,null,[Er,s("table",jr,[Ur,s("tbody",null,[(i(!0),h(R,null,te(o.value,(d,m)=>(i(),h("tr",{key:m,style:J(l(m))},[s("td",Fr,S(d.time[0]),1),s("td",Nr,S(d.time[1]),1),s("td",Hr,S(d.current)+" A",1),s("td",Rr,S(a[d.frequency.selected]),1),s("td",qr,[s("a",{href:"../../settings/#/VehicleConfiguration/charge_template/"+e.chargeTemplateId},[s("span",{class:z([d.active?"fa-toggle-on":"fa-toggle-off","fa"]),style:J(n(m)),type:"button"},null,6)],8,Jr)])],4))),128))])])],64))}});const Yr=E(Qr,[["__scopeId","data-v-192e287b"]]),Zr={class:"settingsheader mt-2 ms-1"},Xr=V({__name:"CPConfigVehicle",props:{vehicleId:{}},setup(t){const e=t;return(a,o)=>(i(),h(R,null,[s("p",Zr," Profile für "+S(r(Y)[e.vehicleId].name)+": ",1),v(j,{title:"Ladeprofil",icon:"fa-sliders",fullwidth:!0},{default:w(()=>[v(Ae,{modelValue:r(Y)[e.vehicleId].chargeTemplateId,"onUpdate:modelValue":o[0]||(o[0]=n=>r(Y)[e.vehicleId].chargeTemplateId=n),modelModifiers:{number:!0},options:Object.keys(r(fe)).map(n=>[r(fe)[+n].name,n])},null,8,["modelValue","options"])]),_:1}),v(j,{title:"Fahrzeug-Vorlage",icon:"fa-sliders",fullwidth:!0},{default:w(()=>[v(Ae,{modelValue:r(Y)[e.vehicleId].evTemplateId,"onUpdate:modelValue":o[1]||(o[1]=n=>r(Y)[e.vehicleId].evTemplateId=n),modelModifiers:{number:!0},options:Object.keys(r(Gt)).map(n=>[r(Gt)[+n].name,n])},null,8,["modelValue","options"])]),_:1})],64))}});const Kr=E(Xr,[["__scopeId","data-v-fcb57a44"]]),ei={class:"settingsheader mt-2 ms-1"},ti=V({__name:"CPChargeConfig",props:{chargepoint:{}},emits:["closeConfig"],setup(t){const a=t.chargepoint;return(o,n)=>(i(),h(R,null,[s("p",ei," Ladeeinstellungen für "+S(r(a).vehicleName)+": ",1),v(j,{title:"Lademodus",icon:"fa-charging-station",infotext:r(Ve).chargemode,fullwidth:!0},{default:w(()=>[v(Ae,{modelValue:r(a).chargeMode,"onUpdate:modelValue":n[0]||(n[0]=l=>r(a).chargeMode=l),options:Object.keys(r(ue)).map(l=>[r(ue)[l].name,l,r(ue)[l].color,r(ue)[l].icon])},null,8,["modelValue","options"])]),_:1},8,["infotext"]),v(j,{title:"Fahrzeug wechseln",icon:"fa-car",infotext:r(Ve).vehicle,fullwidth:!0},{default:w(()=>[v(Ae,{modelValue:r(a).connectedVehicle,"onUpdate:modelValue":n[1]||(n[1]=l=>r(a).connectedVehicle=l),modelModifiers:{number:!0},options:Object.values(r(Y)).map(l=>[l.name,l.id])},null,8,["modelValue","options"])]),_:1},8,["infotext"]),v(j,{title:"Sperren",icon:"fa-lock",infotext:r(Ve).locked,fullwidth:!0},{default:w(()=>[v(de,{modelValue:r(a).isLocked,"onUpdate:modelValue":n[2]||(n[2]=l=>r(a).isLocked=l)},null,8,["modelValue"])]),_:1},8,["infotext"]),v(j,{title:"Priorität",icon:"fa-star",infotext:r(Ve).priority,fullwidth:!0},{default:w(()=>[v(de,{modelValue:r(a).hasPriority,"onUpdate:modelValue":n[3]||(n[3]=l=>r(a).hasPriority=l)},null,8,["modelValue"])]),_:1},8,["infotext"]),v(j,{title:"Zeitplan",icon:"fa-clock",infotext:r(Ve).timeplan,fullwidth:!0},{default:w(()=>[v(de,{modelValue:r(a).timedCharging,"onUpdate:modelValue":n[4]||(n[4]=l=>r(a).timedCharging=l)},null,8,["modelValue"])]),_:1},8,["infotext"]),r(ee).active?(i(),$(j,{key:0,title:"Strompreisbasiert laden",icon:"fa-money-bill",infotext:r(Ve).pricebased,fullwidth:!0},{default:w(()=>[v(de,{modelValue:r(a).etActive,"onUpdate:modelValue":n[5]||(n[5]=l=>r(a).etActive=l)},null,8,["modelValue"])]),_:1},8,["infotext"])):b("",!0)],64))}});const ai=E(ti,[["__scopeId","data-v-a64493d7"]]),Ca=t=>(ae("data-v-5286b19d"),t=t(),oe(),t),oi=Ca(()=>s("p",{class:"settingsheader mt-2 ms-1"},"Preisbasiertes Laden:",-1)),si={class:"providername ms-1"},ni=Ca(()=>s("hr",null,null,-1)),ri={class:"container"},ii={id:"pricechart",class:"p-0 m-0"},li={viewBox:"0 0 400 300"},ci=["id","origin","transform"],di={key:0,class:"p-3"},ui={key:1,class:"d-flex justify-content-end"},hi=["disabled"],qe=400,na=250,ra=12,pi=V({__name:"PriceChart",props:{chargepoint:{},globalview:{type:Boolean}},setup(t){const e=t;let a=e.chargepoint?X(e.chargepoint.etMaxPrice):X(0);const o=X(!1),n=X(e.chargepoint),l=p({get(){return a.value},set(k){a.value=k,o.value=!0}});function c(){n.value&&(B[n.value.id].etMaxPrice=l.value),o.value=!1}const u=X(!1),d={top:0,bottom:15,left:20,right:5},m=p(()=>{let k=[];return ee.etPriceList.size>0&&ee.etPriceList.forEach((M,O)=>{k.push([O,M])}),k}),y=p(()=>m.value.length>1?(qe-d.left-d.right)/m.value.length-1:0),I=p(()=>o.value?{background:"var(--color-charging)"}:{background:"var(--color-menu)"}),C=p(()=>{let k=Oe(m.value,M=>M[0]);return Re().range([d.left,qe-d.left-d.right]).domain(k)}),L=p(()=>{let k=Oe(m.value,M=>M[1]);return k[0]=Math.floor(k[0]-1),k[1]=Math.floor(k[1]+1),k}),A=p(()=>Te().range([na-d.bottom,0]).domain(L.value)),Q=p(()=>{const k=Tt(),M=[[d.left,A.value(l.value)],[qe-d.right,A.value(l.value)]];return k(M)}),G=p(()=>{const k=Tt(),M=[[d.left,A.value(0)],[qe-d.right,A.value(0)]];return k(M)}),T=p(()=>Qe(C.value).ticks(6).tickSize(5).tickFormat(et("%H:%M"))),F=p(()=>ot(A.value).ticks(6).tickSizeInner(-(qe-d.right-d.left)).tickFormat(k=>k.toString())),P=p(()=>{u.value==!0;const k=_e("g#"+x.value);k.selectAll("*").remove(),k.selectAll("bar").data(m.value).enter().append("g").append("rect").attr("class","bar").attr("x",ze=>C.value(ze[0])).attr("y",ze=>A.value(ze[1])).attr("width",y.value).attr("height",ze=>A.value(L.value[0])-A.value(ze[1])).attr("fill",ze=>ze[1]<=l.value?"var(--color-charging)":"var(--color-axis)");const O=k.append("g").attr("class","axis").call(T.value);O.attr("transform","translate(0,"+(na-d.bottom)+")"),O.selectAll(".tick").attr("font-size",ra).attr("color","var(--color-bg)"),O.selectAll(".tick line").attr("stroke","var(--color-fg)").attr("stroke-width","0.5"),O.select(".domain").attr("stroke","var(--color-bg");const pe=k.append("g").attr("class","axis").call(F.value);return pe.attr("transform","translate("+d.left+",0)"),pe.selectAll(".tick").attr("font-size",ra).attr("color","var(--color-bg)"),pe.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width","0.5"),pe.select(".domain").attr("stroke","var(--color-bg)"),L.value[0]<0&&k.append("path").attr("d",G.value).attr("stroke","var(--color-fg)"),k.append("path").attr("d",Q.value).attr("stroke","yellow"),"PriceChart.vue"}),x=p(()=>e.chargepoint?"priceChartCanvas"+e.chargepoint.id:"priceChartCanvasGlobal");return Ce(()=>{u.value=!u.value}),(k,M)=>(i(),h(R,null,[oi,s("p",si,"Anbieter: "+S(r(ee).etProvider),1),ni,s("div",ri,[s("figure",ii,[(i(),h("svg",li,[s("g",{id:x.value,origin:P.value,transform:"translate("+d.top+","+d.right+")"},null,8,ci)]))])]),k.chargepoint!=null?(i(),h("div",di,[k.chargepoint.etActive?(i(),$(Me,{key:0,id:"foo",modelValue:l.value,"onUpdate:modelValue":M[0]||(M[0]=O=>l.value=O),min:-25,max:95,step:.1,decimals:1,unit:"ct"},null,8,["modelValue"])):b("",!0)])):b("",!0),k.chargepoint!=null?(i(),h("div",ui,[s("span",{class:"me-3 pt-0",onClick:c},[s("button",{type:"button",class:"btn btn-secondary",style:J(I.value),disabled:!o.value}," Bestätigen ",12,hi)])])):b("",!0)],64))}});const Pa=E(pi,[["__scopeId","data-v-5286b19d"]]),Ue=t=>(ae("data-v-fdc511bd"),t=t(),oe(),t),gi={class:"status-string"},mi={style:{color:"red"}},fi={class:"m-0 mt-4 p-0 grid-col-12 tabarea"},vi={class:"nav nav-tabs nav-justified mx-1 mt-1",role:"tablist"},_i=["data-bs-target"],bi=Ue(()=>s("i",{class:"fa-solid fa-charging-station"},null,-1)),yi=[bi],wi=["data-bs-target"],ki=Ue(()=>s("i",{class:"fa-solid fa-lg fa-bolt"},null,-1)),xi=[ki],Si=["data-bs-target"],$i=Ue(()=>s("i",{class:"fa-solid fa-solar-panel me-1"},null,-1)),Mi=[$i],Ci=["data-bs-target"],Pi=Ue(()=>s("i",{class:"fa-solid fa-bullseye me-1"},null,-1)),Ii=[Pi],Bi=["data-bs-target"],Vi=Ue(()=>s("i",{class:"fa-solid fa-clock"},null,-1)),Li=[Vi],Ai=["data-bs-target"],Oi=Ue(()=>s("i",{class:"fa-solid fa-rectangle-list"},null,-1)),Ti=[Oi],Di=["data-bs-target"],Gi=Ue(()=>s("i",{class:"fa-solid fa-chart-line"},null,-1)),Wi=[Gi],zi={id:"settingsPanes",class:"tab-content mx-1 p-1 pb-3"},Ei=["id"],ji=["id"],Ui=["id"],Fi=["id"],Ni=["id"],Hi=["id"],Ri=["id"],qi=V({__name:"CPChargeConfigPanel",props:{chargepoint:{}},emits:["closeConfig"],setup(t){const a=t.chargepoint,o=p(()=>fe[a.chargeTemplate]),n=p(()=>a.id);return Ce(()=>{}),(l,c)=>(i(),h(R,null,[v(j,{title:"Status",icon:"fa-info-circle",fullwidth:!0,class:"item"},{default:w(()=>[s("span",gi,S(r(a).stateStr),1)]),_:1}),r(a).faultState!=0?(i(),$(j,{key:0,title:"Fehler",class:"grid-col-12"},{default:w(()=>[s("span",mi,S(r(a).faultStr),1)]),_:1})):b("",!0),s("div",fi,[s("nav",vi,[s("a",{class:"nav-link active","data-bs-toggle":"tab","data-bs-target":"#chargeSettings"+n.value},yi,8,_i),l.chargepoint.chargeMode=="instant_charging"?(i(),h("a",{key:0,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#instantSettings"+n.value},xi,8,wi)):b("",!0),l.chargepoint.chargeMode=="pv_charging"?(i(),h("a",{key:1,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#pvSettings"+n.value},Mi,8,Si)):b("",!0),l.chargepoint.chargeMode=="scheduled_charging"?(i(),h("a",{key:2,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#scheduledSettings"+n.value},Ii,8,Ci)):b("",!0),l.chargepoint.timedCharging?(i(),h("a",{key:3,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#timeSettings"+n.value},Li,8,Bi)):b("",!0),s("a",{class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#carSettings"+n.value},Ti,8,Ai),r(ee).active&&r(a).etActive?(i(),h("a",{key:4,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#priceChart"+n.value},Wi,8,Di)):b("",!0)]),s("div",zi,[s("div",{id:"chargeSettings"+n.value,class:"tab-pane active",role:"tabpanel","aria-labelledby":"instant-tab"},[v(ai,{chargepoint:l.chargepoint},null,8,["chargepoint"])],8,Ei),s("div",{id:"instantSettings"+n.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"instant-tab"},[v(yr,{chargepoint:r(a),vehicles:r(Y),"charge-templates":r(fe)},null,8,["chargepoint","vehicles","charge-templates"])],8,ji),s("div",{id:"pvSettings"+n.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"pv-tab"},[v(Pr,{chargepoint:r(a),vehicles:r(Y),"charge-templates":r(fe)},null,8,["chargepoint","vehicles","charge-templates"])],8,Ui),s("div",{id:"scheduledSettings"+n.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"scheduled-tab"},[o.value!=null?(i(),$(zr,{key:0,"charge-template-id":r(a).chargeTemplate},null,8,["charge-template-id"])):b("",!0)],8,Fi),s("div",{id:"timeSettings"+n.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"time-tab"},[o.value!=null?(i(),$(Yr,{key:0,"charge-template-id":r(a).chargeTemplate},null,8,["charge-template-id"])):b("",!0)],8,Ni),s("div",{id:"carSettings"+n.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"car-tab"},[r(Y)[r(a).connectedVehicle]!=null?(i(),$(Kr,{key:0,"vehicle-id":r(a).connectedVehicle},null,8,["vehicle-id"])):b("",!0)],8,Hi),s("div",{id:"priceChart"+n.value,class:"tab-pane",role:"tabpanel","aria-labelledby":"price-tab"},[r(Y)[r(a).connectedVehicle]!=null?(i(),$(Pa,{key:0,chargepoint:r(a)},null,8,["chargepoint"])):b("",!0)],8,Ri)])])],64))}});const zt=E(qi,[["__scopeId","data-v-fdc511bd"]]),Ji=V({__name:"BatterySymbol",props:{soc:{}},setup(t){const e=t,a=p(()=>e.soc<=10?"fa-battery-empty":e.soc<50?"fa-battery-quarter":e.soc<75?"fa-battery-half":e.soc<95?"fa-battery-three-quarters":"fa-battery-full");return(o,n)=>(i(),h("span",null,[s("i",{class:z(["fa batIcon",a.value])},null,2),U(" "+S(Math.round(o.soc)+"%"),1)]))}});const Jt=E(Ji,[["__scopeId","data-v-a0bd055c"]]),ft=V({__name:"FormatWattH",props:{wattH:{}},setup(t){const e=t,a=p(()=>tt(e.wattH,g.decimalPlaces));return(o,n)=>(i(),h("span",null,S(a.value),1))}}),Qi=t=>(ae("data-v-ebc57eaa"),t=t(),oe(),t),Yi={class:"wb-widget p-0 m-0 shadow widgetWidth"},Zi={class:"py-4 px-3 d-flex justify-content-between align-items-center"},Xi=Qi(()=>s("div",{class:"p-0"},"(title goes here)",-1)),Ki={class:"p-0",style:{"text-align":"right"}},el={class:"grid12 pb-3"},tl=V({__name:"WbWidgetFlex",props:{variableWidth:{type:Boolean},fullWidth:{type:Boolean}},setup(t){const e=t,a=p(()=>e.fullWidth?"col-12":e.variableWidth&&g.preferWideBoxes?"col-lg-6":"col-lg-4");return(o,n)=>(i(),h("div",{class:z(["p-2 m-0 d-flex",a.value])},[s("div",Yi,[s("div",Zi,[s("h3",null,[le(o.$slots,"title",{},()=>[Xi],!0),le(o.$slots,"subtitle",{},void 0,!0)]),s("div",Ki,[le(o.$slots,"buttons",{},void 0,!0)])]),s("div",el,[le(o.$slots,"default",{},void 0,!0)])])],2))}});const We=E(tl,[["__scopeId","data-v-ebc57eaa"]]),Fe=t=>(ae("data-v-fec067c7"),t=t(),oe(),t),al=Fe(()=>s("span",{class:"fa-solid fa-charging-station"}," ",-1)),ol=Fe(()=>s("span",{class:"fa-solid fa-lg ps-1 fa-ellipsis-vertical"},null,-1)),sl=[ol],nl={key:0},rl={class:"targetCurrent"},il={key:1,class:"row m-0 mt-0 p-0"},ll={class:"col m-0 p-0"},cl={key:0},dl={class:"col"},ul=Fe(()=>s("i",{class:"fa-solid fa-sm fa-car me-2"},null,-1)),hl={key:0,class:"me-1 fa-solid fa-xs fa-star ps-1"},pl={key:1,class:"me-0 fa-solid fa-xs fa-coins ps-0"},gl={class:"grid12"},ml={key:0,class:"me-1 fa-solid fa-xs fa-clock ps-1"},fl={key:2,class:"socEditor rounded mt-2 d-flex flex-column align-items-center grid-col-12 grid-left"},vl=Fe(()=>s("span",{class:"d-flex m-1 p-0 socEditTitle"},"Ladestand einstellen:",-1)),_l={class:"d-flex justify-content-stretch align-items-center"},bl={key:0,class:"fa-solid fa-sm fas fa-edit ms-2"},yl=["id"],wl=Fe(()=>s("span",{type:"button",class:"d-flex fa-solid fa-lg ps-1 fa-circle-check"},null,-1)),kl=[wl],xl=Fe(()=>s("span",{class:"fas fa-gear"}," ",-1)),Sl=Fe(()=>s("span",{class:"fa-solid fa-lg ps-1 fa-circle-check"},null,-1)),$l=[Sl],Ml=V({__name:"CPChargePoint",props:{chargepoint:{},fullWidth:{type:Boolean}},setup(t){const e=t,a=X(e.chargepoint),o=p({get(){return e.chargepoint.chargeMode},set(k){B[e.chargepoint.id].chargeMode=k}}),n=p(()=>(Math.round(e.chargepoint.current*10)/10).toLocaleString(void 0)+" A"),l=p(()=>(Math.round(e.chargepoint.realCurrent*10)/10).toLocaleString(void 0)+" A"),c=p(()=>Math.round(e.chargepoint.rangeCharged).toString()+" "+e.chargepoint.rangeUnit),u=p(()=>e.chargepoint.isLocked?"Gesperrt":e.chargepoint.isCharging?"Lädt":e.chargepoint.isPluggedIn?"Bereit":"Frei"),d=p(()=>e.chargepoint.isLocked?"var(--color-evu)":e.chargepoint.isCharging?"var(--color-charging)":e.chargepoint.isPluggedIn?"var(--color-battery)":"var(--color-axis)"),m=p(()=>{let k="";return e.chargepoint.isLocked?k="fa-lock":e.chargepoint.isCharging?k=" fa-bolt":e.chargepoint.isPluggedIn&&(k="fa-plug"),"fa "+k}),y=p(()=>{switch(e.chargepoint.chargeMode){case"stop":return{color:"var(--fg)"};default:return{color:ue[e.chargepoint.chargeMode].color}}}),I=p(()=>e.chargepoint.soc),C=p(()=>({color:e.chargepoint.color})),L=p(()=>e.chargepoint.etMaxPrice>=+P.value?{color:"var(--color-charging)"}:{color:"var(--color-menu)"}),A=X(!1),Q=X(!1);function G(){K("socUpdate",1,e.chargepoint.connectedVehicle),B[e.chargepoint.id].waitingForSoc=!0}function T(){K("setSoc",F.value,e.chargepoint.connectedVehicle),Q.value=!1}const F=p({get(){return e.chargepoint.soc},set(k){B[e.chargepoint.id].soc=k}}),P=p(()=>{const[k]=ee.etPriceList.values();return(Math.round(k*10)/10).toFixed(1)}),x=X(!1);return(k,M)=>(i(),h(R,null,[A.value?b("",!0):(i(),$(nt,{key:0,"variable-width":!0,"full-width":e.fullWidth},{title:w(()=>[s("span",{style:J(C.value),onClick:M[0]||(M[0]=O=>A.value=!A.value)},[al,U(" "+S(e.chargepoint.name),1)],4)]),buttons:w(()=>[s("span",{type:"button",class:"ms-2 ps-5 pt-1",style:J(y.value),onClick:M[1]||(M[1]=O=>A.value=!A.value)},sl,4)]),footer:w(()=>[A.value?b("",!0):(i(),h("div",cl,[s("div",{class:"row",onClick:M[3]||(M[3]=O=>A.value=!A.value)},[s("div",dl,[s("h3",null,[ul,U(" "+S(k.chargepoint.vehicleName)+" ",1),k.chargepoint.hasPriority?(i(),h("span",hl)):b("",!0),k.chargepoint.etActive?(i(),h("span",pl)):b("",!0)])])]),s("div",gl,[v(ya,{id:"chargemode-"+k.chargepoint.name,modelValue:o.value,"onUpdate:modelValue":M[4]||(M[4]=O=>o.value=O),class:"chargemodes mt-3 mb-3",options:Object.keys(r(ue)).map(O=>({text:r(ue)[O].name,value:O,color:r(ue)[O].color,icon:r(ue)[O].icon,active:r(ue)[O].mode==k.chargepoint.chargeMode}))},null,8,["id","modelValue","options"]),k.chargepoint.isSocConfigured?(i(),$(Z,{key:0,heading:"Ladestand:",class:"grid-col-4 grid-left"},{default:w(()=>[v(Jt,{soc:I.value,class:"me-2"},null,8,["soc"]),k.chargepoint.isSocConfigured&&k.chargepoint.isSocManual?(i(),h("i",{key:0,class:"fa-solid fa-sm fas fa-edit",style:J({color:"var(--color-menu)"}),onClick:M[5]||(M[5]=O=>Q.value=!Q.value)},null,4)):b("",!0),k.chargepoint.isSocConfigured&&!k.chargepoint.isSocManual?(i(),h("i",{key:1,type:"button",class:z(["fa-solid fa-sm",k.chargepoint.waitingForSoc?"fa-spinner fa-spin":"fa-sync"]),style:J({color:"var(--color-menu)"}),onClick:G},null,6)):b("",!0)]),_:1})):b("",!0),k.chargepoint.isSocConfigured?(i(),$(Z,{key:1,heading:"Reichweite:",class:"grid-col-4"},{default:w(()=>[U(S(r(Y)[e.chargepoint.connectedVehicle]?Math.round(r(Y)[e.chargepoint.connectedVehicle].range):0)+" km ",1)]),_:1})):b("",!0),v(Z,{heading:"Zeitplan:",class:"grid-col-4 grid-right"},{default:w(()=>[k.chargepoint.timedCharging?(i(),h("span",ml)):b("",!0),U(" "+S(e.chargepoint.timedCharging?"Ja":"Nein"),1)]),_:1}),Q.value?(i(),h("div",fl,[vl,s("span",_l,[s("span",null,[v(Me,{id:"manualSoc",modelValue:F.value,"onUpdate:modelValue":M[6]||(M[6]=O=>F.value=O),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])])]),s("span",{type:"button",class:"fa-solid d-flex fa-lg me-2 mb-3 align-self-end fa-circle-check",onClick:T})])):b("",!0),r(ee).active?(i(),$(Z,{key:3,heading:"Preisladen:",class:"grid-col-4 grid-left"},{default:w(()=>[v(de,{modelValue:a.value.etActive,"onUpdate:modelValue":M[7]||(M[7]=O=>a.value.etActive=O)},null,8,["modelValue"])]),_:1})):b("",!0),r(ee).active?(i(),$(Z,{key:4,heading:"max. Preis:",class:"grid-col-4"},{default:w(()=>[s("span",{type:"button",onClick:M[8]||(M[8]=O=>x.value=!x.value)},[U(S(e.chargepoint.etActive?(Math.round(e.chargepoint.etMaxPrice*10)/10).toFixed(1)+" ct":"-")+" ",1),e.chargepoint.etActive?(i(),h("i",bl)):b("",!0)])]),_:1})):b("",!0),r(ee).active?(i(),$(Z,{key:5,heading:"akt. Preis:",class:"grid-col-4 grid-right"},{default:w(()=>[s("span",{style:J(L.value)},S(P.value)+" ct ",5)]),_:1})):b("",!0),x.value?(i(),h("div",{key:6,id:"priceChartInline"+e.chargepoint.id,class:"d-flex flex-column rounded priceEditor grid-col-12"},[r(Y)[e.chargepoint.connectedVehicle]!=null?(i(),$(Pa,{key:0,chargepoint:e.chargepoint},null,8,["chargepoint"])):b("",!0),s("span",{class:"d-flex ms-2 my-4 pe-3 pt-1 d-flex align-self-end",style:J(y.value),onClick:M[9]||(M[9]=O=>x.value=!1)},kl,4)],8,yl)):b("",!0)])]))]),default:w(()=>[A.value?b("",!0):(i(),h("div",nl,[s("div",{class:"grid12",onClick:M[2]||(M[2]=O=>A.value=!A.value)},[v(Z,{heading:"Status:",class:"grid-col-4 grid-left"},{default:w(()=>[s("span",{style:J({color:d.value})},[s("i",{class:z(m.value)},null,2),U(" "+S(u.value),1)],4)]),_:1}),v(Z,{heading:"Geladen:",class:"grid-col-4"},{default:w(()=>[v(ft,{"watt-h":k.chargepoint.dailyYield},null,8,["watt-h"])]),_:1}),v(Z,{heading:"gel. Reichw.:",class:"grid-col-4 grid-right"},{default:w(()=>[U(S(c.value),1)]),_:1}),e.chargepoint.power>0?(i(),$(Z,{key:0,heading:"Leistung:",class:"grid-col-3 grid-left"},{default:w(()=>[v(bt,{watt:e.chargepoint.power},null,8,["watt"])]),_:1})):b("",!0),e.chargepoint.power>0?(i(),$(Z,{key:1,heading:"Strom:",class:"grid-col-3"},{default:w(()=>[U(S(l.value),1)]),_:1})):b("",!0),e.chargepoint.power>0?(i(),$(Z,{key:2,heading:"Phasen:",class:"grid-col-3"},{default:w(()=>[U(S(e.chargepoint.phasesInUse),1)]),_:1})):b("",!0),e.chargepoint.power>0?(i(),$(Z,{key:3,heading:"Sollstrom:",class:"grid-col-3 grid-right"},{default:w(()=>[s("span",rl,S(n.value),1)]),_:1})):b("",!0)])])),A.value?(i(),h("div",il,[s("div",ll,[k.chargepoint!=null?(i(),$(zt,{key:0,chargepoint:k.chargepoint},null,8,["chargepoint"])):b("",!0)])])):b("",!0)]),_:1},8,["full-width"])),A.value?(i(),$(We,{key:1,"full-width":e.fullWidth},{title:w(()=>[s("span",{style:J(C.value),onClick:M[10]||(M[10]=O=>A.value=!A.value)},[xl,U(" Einstellungen "+S(e.chargepoint.name),1)],4)]),buttons:w(()=>[s("span",{class:"ms-2 pt-1",style:J(y.value),onClick:M[11]||(M[11]=O=>A.value=!A.value)},$l,4)]),default:w(()=>[k.chargepoint!=null?(i(),$(zt,{key:0,chargepoint:k.chargepoint},null,8,["chargepoint"])):b("",!0)]),_:1},8,["full-width"])):b("",!0)],64))}});const Cl=E(Ml,[["__scopeId","data-v-fec067c7"]]);const Ia=t=>(ae("data-v-eaefae30"),t=t(),oe(),t),Pl=["id"],Il={class:"modal-dialog modal-lg modal-fullscreen-lg-down"},Bl={class:"modal-content"},Vl={class:"modal-header"},Ll={class:"modal-title"},Al=Ia(()=>s("button",{type:"button",class:"btn-close buttonTextSize d-flex justify-content-center pt-3 pb-0","data-bs-dismiss":"modal"},[s("i",{class:"fa-solid fa-lg fa-rectangle-xmark m-0 p-0"})],-1)),Ol={class:"modal-body",style:{"background-color":"var(--color-bg)"}},Tl=Ia(()=>s("button",{class:"btn btn-secondary float-end mt-3 ms-1","data-bs-dismiss":"modal"}," Schließen ",-1)),Dl=V({__name:"ModalComponent",props:{modalId:{}},setup(t){const e=t;return Ce(()=>{}),(a,o)=>(i(),h("div",{id:e.modalId,class:"modal fade"},[s("div",Il,[s("div",Bl,[s("div",Vl,[s("h3",Ll,[le(a.$slots,"title",{},void 0,!0)]),Al]),s("div",Ol,[le(a.$slots,"default",{},void 0,!0),Tl])])])],8,Pl))}});const Ba=E(Dl,[["__scopeId","data-v-eaefae30"]]),Gl=t=>(ae("data-v-0496b1f6"),t=t(),oe(),t),Wl={class:"d-flex align-items-center"},zl={class:"cpname"},El={class:"d-flex float-right justify-content-end align-items-center"},jl=["data-bs-target"],Ul=["data-bs-target"],Fl={class:"subgrid"},Nl={key:0,class:"d-flex justify-content-center align-items-center vehiclestatus"},Hl={class:"d-flex flex-column align-items-center px-0"},Rl={class:"d-flex justify-content-center flex-wrap"},ql={class:"d-flex align-items-center"},Jl={class:"badge phasesInUse rounded-pill"},Ql={class:"d-flex flex-wrap justify-content-center chargeinfo"},Yl={class:"me-1"},Zl={key:0,class:"subgrid socEditRow m-0 p-0"},Xl={class:"socEditor rounded mt-2 d-flex flex-column align-items-center grid-col-12"},Kl=Gl(()=>s("span",{class:"d-flex m-1 p-0 socEditTitle"},"Ladestand einstellen:",-1)),ec={class:"d-flex justify-content-stretch align-items-center"},tc=V({__name:"CpsListItem2",props:{chargepoint:{}},setup(t){const e=t,a=X(!1),o=p(()=>ue[e.chargepoint.chargeMode].icon),n=p(()=>{let T="";return e.chargepoint.isLocked?T="fa-lock":e.chargepoint.isCharging?T=" fa-bolt":e.chargepoint.isPluggedIn&&(T="fa-plug"),"fa "+T}),l=p(()=>{let T="var(--color-axis)";return e.chargepoint.isLocked?T="var(--color-evu)":e.chargepoint.isCharging?T="var(--color-charging)":e.chargepoint.isPluggedIn&&(T="var(--color-battery)"),{color:T,border:`0.5px solid ${T} `}}),c=p(()=>{switch(e.chargepoint.chargeMode){case"stop":return{"background-color":"var(--fg)"};default:return{"background-color":ue[e.chargepoint.chargeMode].color}}}),u=p(()=>je(e.chargepoint.power,g.decimalPlaces)),d=p(()=>e.chargepoint.current+" A"),m=p(()=>e.chargepoint.phasesInUse),y=p(()=>e.chargepoint.dailyYield>0?tt(e.chargepoint.dailyYield,g.decimalPlaces):"0 Wh"),I=p(()=>"("+Math.round(e.chargepoint.rangeCharged).toString()+" "+e.chargepoint.rangeUnit+")"),C=p(()=>ue[e.chargepoint.chargeMode].name);function L(){K("socUpdate",1,e.chargepoint.connectedVehicle),B[e.chargepoint.id].waitingForSoc=!0}function A(){K("setSoc",Q.value,e.chargepoint.connectedVehicle),a.value=!1}const Q=p({get(){return e.chargepoint.soc},set(T){B[e.chargepoint.id].soc=T}}),G=p(()=>e.chargepoint.isLocked?"Gesperrt":e.chargepoint.isCharging?"Lädt":e.chargepoint.isPluggedIn?"Bereit":"Frei");return(T,F)=>(i(),h(R,null,[v(it,{titlecolor:T.chargepoint.color,fullwidth:!0,small:!0},{title:w(()=>[s("div",Wl,[s("span",zl,S(T.chargepoint.name),1),s("span",{class:"badge rounded-pill statusbadge mx-2",style:J(l.value)},[s("i",{class:z([n.value,"me-1"])},null,2),U(" "+S(G.value),1)],4)])]),buttons:w(()=>[s("div",El,[s("span",{class:"badge rounded-pill modebadge mx-2",type:"button",style:J(c.value),"data-bs-toggle":"modal","data-bs-target":"#cpsconfig-"+T.chargepoint.id},[s("i",{class:z(["fa me-1",o.value])},null,2),U(" "+S(C.value),1)],12,jl),s("span",{class:"fa-solid ms-2 fa-lg fa-edit ps-1",type:"button","data-bs-toggle":"modal","data-bs-target":"#cpsconfig-"+T.chargepoint.id},null,8,Ul)])]),default:w(()=>[s("div",Fl,[v(Z,{heading:T.chargepoint.vehicleName,small:!0,class:"grid-left grid-col-4"},{default:w(()=>[T.chargepoint.isSocConfigured?(i(),h("span",Nl,[v(Jt,{class:"me-1",soc:T.chargepoint.soc},null,8,["soc"]),T.chargepoint.isSocConfigured&&T.chargepoint.isSocManual?(i(),h("i",{key:0,type:"button",class:"fa-solid fa-sm fas fa-edit",style:J({color:"var(--color-menu)"}),onClick:F[0]||(F[0]=P=>a.value=!a.value)},null,4)):b("",!0),T.chargepoint.isSocConfigured&&!T.chargepoint.isSocManual?(i(),h("i",{key:1,type:"button",class:z(["fa-solid fa-sm me-2",T.chargepoint.waitingForSoc?"fa-spinner fa-spin":"fa-sync"]),style:J({color:"var(--color-menu)"}),onClick:L},null,6)):b("",!0)])):b("",!0)]),_:1},8,["heading"]),v(Z,{heading:"Parameter:",small:!0,class:"grid-col-4"},{default:w(()=>[s("div",Hl,[s("span",Rl,[s("span",null,S(u.value),1),s("span",ql,[s("span",Jl,S(m.value),1),s("span",null,S(d.value),1)])])])]),_:1}),v(Z,{heading:"Geladen:",small:!0,class:"grid-right grid-col-4"},{default:w(()=>[s("div",Ql,[s("span",Yl,S(y.value),1),s("span",null,S(I.value),1)])]),_:1})]),a.value?(i(),h("div",Zl,[s("div",Xl,[Kl,s("span",ec,[s("span",null,[v(Me,{id:"manualSoc",modelValue:Q.value,"onUpdate:modelValue":F[1]||(F[1]=P=>Q.value=P),min:0,max:100,step:1,unit:"%"},null,8,["modelValue"])])]),s("span",{type:"button",class:"fa-solid d-flex fa-lg me-2 mb-3 align-self-end fa-circle-check",onClick:A})])])):b("",!0)]),_:1},8,["titlecolor"]),(i(),$(Qa,{to:"body"},[(i(),$(Ba,{key:T.chargepoint.id,"modal-id":"cpsconfig-"+T.chargepoint.id},{title:w(()=>[U(" Konfiguration: "+S(T.chargepoint.name),1)]),default:w(()=>[T.chargepoint!=null?(i(),$(zt,{key:0,chargepoint:T.chargepoint},null,8,["chargepoint"])):b("",!0)]),_:1},8,["modal-id"]))]))],64))}});const ac=E(tc,[["__scopeId","data-v-0496b1f6"]]),oc=t=>(ae("data-v-8c6313d6"),t=t(),oe(),t),sc=oc(()=>s("span",{class:"fa-solid fa-charging-station"}," ",-1)),nc={class:"d-flex float-right justify-content-end align-items-center"},rc={key:0,class:"badge rounded-pill pricebadge mb-1 ms-2"},ic=V({__name:"CpSimpleList2",setup(t){const e=p(()=>Object.values(B));return(a,o)=>(i(),$(We,{"variable-width":!0},{title:w(()=>[sc,U(" Ladepunkte ")]),buttons:w(()=>[s("div",nc,[r(ee).active?(i(),h("span",rc,"Strompreis: "+S(r(ee).etCurrentPriceString),1)):b("",!0)])]),default:w(()=>[(i(!0),h(R,null,te(e.value,(n,l)=>(i(),h("div",{key:l,class:"subgrid pb-2"},[v(ac,{chargepoint:n},null,8,["chargepoint"])]))),128))]),_:1}))}});const lc=E(ic,[["__scopeId","data-v-8c6313d6"]]),$t=V({__name:"ChargePointList",props:{shortlist:{type:Boolean}},setup(t){const e=t;let a,o;const n=p(()=>{let u=Object.values(B);return c(),u}),l=p(()=>{switch(Object.values(B).length){case 0:return g.preferWideBoxes?"col-lg-6":"col-lg-4";case 1:return g.preferWideBoxes?"col-lg-6":"col-lg-4";case 2:return g.preferWideBoxes?"col-lg-12":"col-lg-8 ";default:return"col-lg-12"}});function c(){let u=document.querySelector(".swiper-chargepoints");if(u&&(o=u,a=o.swiper),a){let d="1";if(Ge.value)switch(Object.values(B).length){case 0:case 1:d="1";break;case 2:d="2";break;default:d="3"}o.setAttribute("slides-per-view",d),a.update()}}return Ce(()=>{let u=document.querySelector(".swiper-chargepoints");u&&(o=u,a=o.swiper),window.addEventListener("resize",c),window.document.addEventListener("visibilitychange",c)}),(u,d)=>(i(),h(R,null,[e.shortlist?b("",!0):(i(),h("swiper-container",{key:0,"space-between":0,"slides-per-view":1,pagination:{clickable:!0},class:z(["cplist m-0 p-0 swiper-chargepoints d-flex align-items-stretch",l.value])},[(i(!0),h(R,null,te(n.value,m=>(i(),h("swiper-slide",{key:m.id},[s("div",{class:z([r(Ge)?"mb-0":"mb-5","d-flex align-items-stretch flex-fill"])},[v(Cl,{chargepoint:m,"full-width":!0},null,8,["chargepoint"])],2)]))),128))],2)),e.shortlist?(i(),$(lc,{key:1})):b("",!0)],64))}}),cc={class:"container-fluid p-0 m-0"},dc={class:"row p-0 m-0"},uc={class:"d-grid gap-2"},hc=["onClick"],pc={class:"col-md-4 p-1"},gc={class:"d-grid gap-2"},mc={key:0},fc=s("hr",null,null,-1),vc=s("div",{class:"row"},[s("div",{class:"col text-center"},"Vorrang im Lademodus PV-Laden:")],-1),_c={class:"row justify-content-center m-1 p-0"},bc={class:"col-6 p-1 m-0"},yc={class:"d-grid gap-2"},wc=s("span",{class:"fas fa-car"}," ",-1),kc={class:"col-6 p-1 m-0"},xc={class:"d-grid gap-2"},Sc=s("span",{class:"fas fa-car-battery"}," ",-1),$c=V({__name:"BBSelect",props:{cpId:{}},setup(t){const e=t,a=[{mode:"instant_charging",name:"Sofort",color:"var(--color-charging)"},{mode:"pv_charging",name:"PV",color:"var(--color-pv)"},{mode:"scheduled_charging",name:"Zielladen",color:"var(--color-battery)"},{mode:"standby",name:"Standby",color:"var(--color-axis)"},{mode:"stop",name:"Stop",color:"var(--color-axis)"}],o=p(()=>B[e.cpId]);function n(m){return m==o.value.chargeMode?"btn btn-success buttonTextSize":"btn btn-secondary buttonTextSize"}function l(m){switch(m){case"ev":return ce.pvBatteryPriority?"btn-secondary":"btn-success";case"bat":return ce.pvBatteryPriority?"btn-success":"btn-secondary";default:return""}}function c(m){o.value.chargeMode=m}function u(m){o.value.isLocked=m}function d(m){ce.pvBatteryPriority=m}return(m,y)=>(i(),h("div",cc,[s("div",dc,[(i(),h(R,null,te(a,(I,C)=>s("div",{key:C,class:"col-md-4 p-1"},[s("div",uc,[s("button",{type:"button",class:z(n(I.mode)),style:{},onClick:L=>c(I.mode)},S(I.name),11,hc)])])),64)),s("div",pc,[s("div",gc,[o.value.isLocked?(i(),h("button",{key:0,type:"button",class:"btn btn-outline-success buttonTextSize","data-bs-dismiss":"modal",onClick:y[0]||(y[0]=I=>u(!1))}," Entsperren ")):b("",!0),o.value.isLocked?b("",!0):(i(),h("button",{key:1,type:"button",class:"btn btn-outline-danger buttonTextSize","data-bs-dismiss":"modal",onClick:y[1]||(y[1]=I=>u(!0))}," Sperren "))])])]),r(ce).isBatteryConfigured&&o.value.chargeMode=="pv_charging"?(i(),h("div",mc,[fc,vc,s("div",_c,[s("div",bc,[s("div",yc,[s("button",{id:"evPriorityBtn",type:"button",class:z(["priorityModeBtn btn btn-secondary buttonTextSize",l("ev")]),"data-dismiss":"modal",priority:"1",onClick:y[2]||(y[2]=I=>d(!1))},[U(" EV "),wc],2)])]),s("div",kc,[s("div",xc,[s("button",{id:"batteryPriorityBtn",type:"button",class:z(["priorityModeBtn btn btn-secondary buttonTextSize",l("bat")]),"data-dismiss":"modal",priority:"0",onClick:y[3]||(y[3]=I=>d(!0))},[U(" Speicher "),Sc],2)])])])])):b("",!0)]))}}),Mc={class:"col-lg-4 p-0 m-0 mt-1"},Cc={class:"d-grid gap-2"},Pc=["data-bs-target"],Ic={class:"m-0 p-0 d-flex justify-content-between align-items-center"},Bc={class:"mx-1 badge rounded-pill smallTextSize plugIndicator"},Vc={key:0,class:"ms-2"},Lc={class:"m-0 p-0"},Ac={key:0,class:"ps-1"},Oc=V({__name:"BbChargeButton",props:{chargepoint:{}},setup(t){const e=t,a="chargeSelectModal"+e.chargepoint.id,o=p(()=>ue[e.chargepoint.chargeMode].name),n=p(()=>{let y={background:"var(--color-menu)"};return e.chargepoint.isLocked?y.background="var(--color-evu)":e.chargepoint.isCharging?y.background="var(--color-charging)":e.chargepoint.isPluggedIn&&(y.background="var(--color-battery)"),y}),l=p(()=>{if(ue){let y={background:ue[e.chargepoint.chargeMode].color,color:"white"};switch(e.chargepoint.chargeMode){case me.instant_charging:e.chargepoint.isCharging&&!e.chargepoint.isLocked&&(y=m(y));break;case me.standby:case me.stop:y.background="darkgrey",y.color="black";break;case me.scheduled_charging:e.chargepoint.isPluggedIn&&!e.chargepoint.isCharging&&!e.chargepoint.isLocked&&(y=m(y));break}return y}else return{background:"var(--color-bg)",color:"var(--color-bg)"}}),c=p(()=>ue?ue[e.chargepoint.chargeMode].icon:""),u=p(()=>ce.pvBatteryPriority?"fa-car-battery":"fa-car"),d=p(()=>{let y="fa-ellipsis";return e.chargepoint.isLocked?y="fa-lock":e.chargepoint.isCharging?y=" fa-bolt":e.chargepoint.isPluggedIn&&(y="fa-plug"),"fa "+y});function m(y){let I=y.color;return y.color=y.background,y.background=I,y}return(y,I)=>(i(),h("div",Mc,[s("div",Cc,[s("button",{type:"button",class:"btn mx-1 mb-0 p-1 mediumTextSize chargeButton shadow",style:J(n.value),"data-bs-toggle":"modal","data-bs-target":"#"+a},[s("div",Ic,[s("span",Bc,[s("i",{class:z(d.value)},null,2),y.chargepoint.isCharging?(i(),h("span",Vc,S(r(je)(y.chargepoint.power)),1)):b("",!0)]),s("span",Lc,S(y.chargepoint.name),1),s("span",{class:"mx-2 m-0 badge rounded-pill smallTextSize modeIndicator",style:J(l.value)},[s("i",{class:z(["fa me-1",c.value])},null,2),U(" "+S(o.value)+" ",1),y.chargepoint.chargeMode==r(me).pv_charging&&r(ce).isBatteryConfigured?(i(),h("span",Ac,[U(" ( "),s("i",{class:z(["fa m-0",u.value])},null,2),U(") ")])):b("",!0)],4)])],12,Pc)]),v(Ba,{"modal-id":a},{title:w(()=>[U(" Lademodus für "+S(y.chargepoint.vehicleName),1)]),default:w(()=>[v($c,{"cp-id":y.chargepoint.id},null,8,["cp-id"])]),_:1})]))}});const Tc=E(Oc,[["__scopeId","data-v-97a4a3ff"]]),Dc={class:"row p-0 mt-0 mb-1 m-0"},Gc={class:"col p-0 m-0"},Wc={class:"container-fluid p-0 m-0"},zc={class:"row p-0 m-0 d-flex justify-content-center align-items-center"},Ec={key:0,class:"col time-display"},jc=V({__name:"ButtonBar",setup(t){return(e,a)=>(i(),h("div",Dc,[s("div",Gc,[s("div",Wc,[s("div",zc,[r(g).showClock=="buttonbar"?(i(),h("span",Ec,S(r(fa)(r(Wt))),1)):b("",!0),(i(!0),h(R,null,te(r(B),(o,n)=>(i(),$(Tc,{key:n,chargepoint:o,"charge-point-count":Object.values(r(B)).length},null,8,["chargepoint","charge-point-count"]))),128))])])])]))}});const Uc=E(jc,[["__scopeId","data-v-791e4be0"]]),Qt=t=>(ae("data-v-5ea167db"),t=t(),oe(),t),Fc=Qt(()=>s("span",{class:"fas fa-car-battery me-2",style:{color:"var(--color-battery)"}}," ",-1)),Nc=Qt(()=>s("span",{class:"sh-title py-4"},"Speicher",-1)),Hc={class:"m-1 mt-0 p-0 grid12"},Rc=Qt(()=>s("span",{class:"todaystring mt-4 float-right"}," Heute:",-1)),qc=V({__name:"BatteryList",setup(t){const e=p(()=>q.batOut.power>0?"Liefert":W.batIn.power>0?"Lädt":"Bereit"),a=p(()=>je(q.batOut.power+W.batIn.power));return(o,n)=>r(ce).isBatteryConfigured?(i(),$(nt,{key:0,"variable-width":!0,"full-width":!1},{title:w(()=>[Fc,Nc]),default:w(()=>[s("div",Hc,[v(Z,{heading:"Ladestand:",class:"grid-left grid-col-4"},{default:w(()=>[v(Jt,{soc:r(ce).batterySoc,class:"me-2"},null,8,["soc"])]),_:1}),v(Z,{heading:"Status:",class:"grid-col-4"},{default:w(()=>[s("span",null,S(e.value),1)]),_:1}),v(Z,{heading:"Leistung:",class:"grid-right grid-col-4"},{default:w(()=>[s("span",null,S(a.value),1)]),_:1}),v(Z,{heading:"",class:"grid-left grid-col-4"},{default:w(()=>[Rc]),_:1}),v(Z,{heading:"Geladen:",class:"grid-col-4"},{default:w(()=>[s("span",null,S(r(tt)(r(W).batIn.energy)),1)]),_:1}),v(Z,{heading:"Geliefert",class:"grid-right grid-col-4"},{default:w(()=>[s("span",null,S(r(tt)(r(q).batOut.energy)),1)]),_:1})])]),_:1})):b("",!0)}});const Mt=E(qc,[["__scopeId","data-v-5ea167db"]]),Jc={class:"d-flex float-right justify-content-end align-items-center"},Qc={key:0,class:"my-0 badge rounded-pill tempbadge mx-1"},Yc={class:"subgrid"},Zc=V({__name:"SHListItem",props:{device:{}},setup(t){const e=t,a=p(()=>e.device.status=="on"?"fa-toggle-on":e.device.status=="waiting"?"fa-spinner fa-spin":"fa-toggle-off"),o=p(()=>{let u="var(--color-switchRed)";switch(e.device.status){case"on":u="var(--color-switchGreen)";break;case"detection":u="var(--color-switchBlue)";break;case"timeout":u="var(--color-switchWhite)";break;case"waiting":u="var(--color-menu)";break;default:u="var(--color-switchRed)"}return{color:u}});function n(){e.device.isAutomatic||(e.device.status=="on"?K("shSwitchOn",0,e.device.id):K("shSwitchOn",1,e.device.id),H[e.device.id].status="waiting")}function l(){e.device.isAutomatic?K("shSetManual",1,e.device.id):K("shSetManual",0,e.device.id)}const c=p(()=>e.device.isAutomatic?"Auto":"Man");return(u,d)=>(i(),$(it,{titlecolor:u.device.color,fullwidth:!0},{title:w(()=>[U(S(u.device.name),1)]),buttons:w(()=>[s("div",Jc,[(i(!0),h(R,null,te(u.device.temp,(m,y)=>(i(),h("span",{key:y,class:"p-0 m-0 align-items-center d-flex"},[m<300?(i(),h("span",Qc,S(r(Lo)(m)),1)):b("",!0)]))),128)),e.device.canSwitch?(i(),h("span",{key:0,class:z([a.value,"fa statusbutton mr-2 ms-4"]),style:J(o.value),onClick:n},null,6)):b("",!0),e.device.canSwitch?(i(),h("span",{key:1,class:"badge rounded-pill modebutton mx-2",onClick:l},S(c.value),1)):b("",!0)])]),default:w(()=>[s("div",Yc,[v(Z,{heading:"Leistung:",class:"grid-col-4 grid-left"},{default:w(()=>[v(bt,{watt:u.device.power},null,8,["watt"])]),_:1}),v(Z,{heading:"Energie:",class:"grid-col-4"},{default:w(()=>[v(ft,{"watt-h":u.device.energy},null,8,["watt-h"])]),_:1}),v(Z,{heading:"Laufzeit:",class:"grid-col-4 grid-right"},{default:w(()=>[U(S(r(Bo)(u.device.runningTime)),1)]),_:1})])]),_:1},8,["titlecolor"]))}});const Xc=E(Zc,[["__scopeId","data-v-a091330c"]]),lt=t=>(ae("data-v-84d6f9ad"),t=t(),oe(),t),Kc=lt(()=>s("span",{class:"fas fa-plug me-2",style:{color:"var(--color-devices)"}}," ",-1)),ed={class:"sh-title py-4"},td=lt(()=>s("span",{class:"fa-solid fa-lg ps-1 fa-ellipsis-vertical"},null,-1)),ad=[td],od=lt(()=>s("span",{class:"fas fa-gear"}," ",-1)),sd=lt(()=>s("span",{class:"fa-solid fa-lg ps-1 fa-circle-check"},null,-1)),nd=[sd],rd=["id","onUpdate:modelValue","value"],id=["for"],ld=lt(()=>s("div",{class:"col-12 mb-3 pe-3 mt-0"},[s("button",{class:"btn btn-sm btn-secondary float-end"},"Schließen")],-1)),cd=[ld],dd=3,ud=V({__name:"SmartHomeList",setup(t){const e=p(()=>Ge.value?a.value.reduce((c,u)=>{const d=c;let m=c[c.length-1];return m.length>=dd?c.push([u]):m.push(u),d},[[]]):[a.value]),a=p(()=>Object.values(H).filter(c=>c.configured));function o(c){return"Geräte"+(Ge.value&&e.value.length>1?"("+(c+1)+")":"")}function n(){l.value=!l.value}const l=X(!1);return(c,u)=>(i(),h(R,null,[(i(!0),h(R,null,te(e.value,(d,m)=>(i(),$(We,{key:m,"variable-width":!0},{title:w(()=>[s("span",{onClick:n},[Kc,s("span",ed,S(o(m)),1)])]),buttons:w(()=>[s("span",{class:"ms-2 pt-1",onClick:n},ad)]),default:w(()=>[(i(!0),h(R,null,te(d,y=>(i(),$(Xc,{key:y.id,device:y,class:"subgrid pb-2"},null,8,["device"]))),128))]),_:2},1024))),128)),l.value?(i(),$(We,{key:0},{title:w(()=>[s("span",{class:"smarthome",onClick:n},[od,U(" Einstellungen")])]),buttons:w(()=>[s("span",{class:"ms-2 pt-1",onClick:n},nd)]),default:w(()=>[v(j,{title:"Im Energie-Graph anzeigen:",icon:"fa-chart-column",fullwidth:!0},{default:w(()=>[(i(!0),h(R,null,te(a.value,(d,m)=>(i(),h("div",{key:m},[st(s("input",{id:"check"+m,"onUpdate:modelValue":y=>d.showInGraph=y,class:"form-check-input",type:"checkbox",value:d},null,8,rd),[[Et,d.showInGraph]]),s("label",{class:"form-check-label px-2",for:"check"+m},S(d.name),9,id)]))),128))]),_:1}),s("div",{class:"row p-0 m-0",onClick:n},cd)]),_:1})):b("",!0)],64))}});const Ct=E(ud,[["__scopeId","data-v-84d6f9ad"]]),hd={class:"row py-0 px-0 m-0"},pd=["breakpoints"],gd=V({__name:"CarouselFix",setup(t){let e,a;const o=X(!1),n=p(()=>o.value?{992:{slidesPerView:1,spaceBetween:0}}:{992:{slidesPerView:3,spaceBetween:0}});return Ya(()=>g.zoomGraph,l=>{if(e){let c=l?"1":"3";a.setAttribute("slides-per-view",c),e.activeIndex=1,e.update()}}),Ce(()=>{let l=document.querySelector(".swiper-carousel");l&&(a=l,e=a.swiper)}),(l,c)=>(i(),h("div",hd,[s("swiper-container",{"space-between":0,pagination:{clickable:!0},"slides-per-view":"1",class:"p-0 m-0 swiper-carousel",breakpoints:n.value},[s("swiper-slide",null,[s("div",{class:z([r(Ge)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[le(l.$slots,"item1",{},void 0,!0)],2)]),s("swiper-slide",null,[s("div",{class:z([r(Ge)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[le(l.$slots,"item2",{},void 0,!0)],2)]),s("swiper-slide",null,[s("div",{class:z([r(Ge)?"mb-0":"mb-5","flex-fill d-flex align-items-stretch"])},[le(l.$slots,"item3",{},void 0,!0)],2)])],8,pd)]))}});const md=E(gd,[["__scopeId","data-v-dc35b0f6"]]);function fd(t,e){t=="openWB/graph/boolDisplayLiveGraph"?ce.displayLiveGraph=+e==1:t.match(/^openwb\/graph\/alllivevaluesJson[1-9][0-9]*$/i)?vd(t,e):t=="openWB/graph/lastlivevaluesJson"?_d(t,e):t=="openWB/graph/config/duration"&&(ie.duration=JSON.parse(e))}function vd(t,e){if(!ie.initialized){let a=[];const o=e.toString().split(` -`);o.length>1?a=o.map(c=>JSON.parse(c)):a=[];const n=t.match(/(\d+)$/g),l=n?n[0]:"";l!=""&&typeof ie.rawDataPacks[+l-1]>"u"&&(ie.rawDataPacks[+l-1]=a,ie.initCounter++)}if(ie.initCounter==16){const a=[];ie.unsubscribeRefresh(),ie.initialized=!0,ie.rawDataPacks.map(o=>{o.map(n=>{const l=Va(n);a.push(l)})}),rt(a),ie.subscribeUpdates()}}function _d(t,e){const a=JSON.parse(e),o=Va(a);ie.graphRefreshCounter++,rt(_.data.concat(o)),ie.graphRefreshCounter>60&&ie.activate()}function Va(t){const e={};e.date=bd(t.time).valueOf(),+t.grid>0?(e.evuIn=+t.grid,e.evuOut=0):+t.grid<=0?(e.evuIn=0,e.evuOut=-t.grid):(e.evuIn=0,e.evuOut=0),+t["pv-all"]>=0?(e.pv=+t["pv-all"],e.inverter=0):(e.pv=0,e.inverter=-t["pv-all"]),e.house=+t["house-power"],+t["bat-all-power"]>0?(e.batOut=0,e.batIn=+t["bat-all-power"]):+t["bat-all-power"]<0?(e.batOut=-t["bat-all-power"],e.batIn=0):(e.batOut=0,e.batIn=0),t["bat-all-soc"]?e.batterySoc=+t["bat-all-soc"]:e.batterySoc=0,t["ev0-soc"]&&(e.soc0=+t["ev0-soc"]),t["ev1-soc"]&&(e.soc1=+t["ev1-soc"]),e.charging=+t["charging-all"];for(let a=0;a<10;a++){const o="cp"+a;e[o]=+t[o+"-power"]}return e.selfUsage=e.pv-e.evuOut,e.selfUsage<0&&(e.selfUsage=0),e.devices=0,e}function bd(t){const e=new Date(Date.now()),a=864e5;let o=new Date;const n=ut("%H:%M:%S")(t);return n&&(o=n,o.setDate(e.getDate()),o.setMonth(e.getMonth()),o.setFullYear(e.getFullYear()),o.getHours()>e.getHours()&&(o=new Date(o.getTime()-a))),o}const yd=["evuIn","pv","batIn","evuOut"];let vt=[];function wd(t,e){const a=JSON.parse(e).entries,o=JSON.parse(e).totals;Ft(),vt=[],Ht.map(l=>{D.setEnergyPv(l,0),D.setEnergyBat(l,0)});const n=kd(a);rt(n),Rt(o,vt),g.debug&&(console.debug("---------------------------------------- Graph Data ---------------------------"),console.debug("--- Incoming graph data:"),console.debug(a),console.debug("data to be displayed:"),console.debug(n),console.debug("-------------------------------------------------------------------------------")),_.graphMode=="today"&&setTimeout(()=>se.activate(),3e5)}function kd(t){const e=[];let a={};return t.map(o=>{a=xd(o);const n=a;e.push(n)}),e}function xd(t){const e={};if(_.graphMode=="day"||_.graphMode=="today")if(typeof t.date=="number")e.date=new Date(+t.date*1e3).getTime();else{const o=ut("%H:%M")(t.date);o&&(o.setMonth(se.date.getMonth()),o.setDate(se.date.getDate()),o.setFullYear(se.date.getFullYear()),e.date=o.getTime())}else if(typeof t.date=="string"){const o=ut("%Y%m%d")(t.date);o&&(e.date=o.getDate())}return e.evuOut=0,e.evuIn=0,Object.entries(t.counter).forEach(([o,n])=>{n.grid&&(e.evuOut+=n.power_exported,e.evuIn+=n.power_imported,vt.includes(o)||vt.push(o))}),e.evuOut==0&&e.evuIn==0&&Object.entries(t.counter).forEach(o=>{e.evuOut+=o[1].power_exported,e.evuIn+=o[1].power_imported}),e.pv=t.pv.all.power_exported,Object.entries(t.bat).length>0?(e.batIn=t.bat.all.power_imported,e.batOut=t.bat.all.power_exported,e.batSoc=t.bat.all.soc??0):(e.batIn=0,e.batOut=0,e.batSoc=0),Object.entries(t.cp).forEach(([o,n])=>{o!="all"?(e[o]=n.power_imported,D.keys().includes(o)||D.addItem(o)):e.charging=n.power_imported}),Object.entries(t.ev).forEach(([o,n])=>{o!="all"&&(e["soc"+o.substring(2)]=n.soc)}),e.devices=0,Object.entries(t.sh).forEach(([o,n])=>{o!="all"&&(e[o]=n.power_imported??0,e.devices+=n.power_imported??0,D.keys().includes(o)||D.addItem(o))}),e.selfUsage=e.pv-e.evuOut,t.hc&&t.hc.all?e.house=t.hc.all.power_imported:e.house=e.evuIn+e.batOut+e.pv-e.evuOut-e.charging-e.devices-e.batOut,e.evuIn+e.batOut+e.pv>0?D.keys().filter(o=>!yd.includes(o)).map(o=>{rs(o,e)}):Object.keys(e).map(o=>{e[o+"Pv"]=0,e[o+"Bat"]=0}),e}let ct={};const Yt=["charging","house","batIn","devices"],Sd=["evuIn","pv","batIn","evuOut"];let Ke=[];function $d(t,e){const a=JSON.parse(e).entries,o=JSON.parse(e).totals;Ft(),Ke=[],Yt.map(n=>{D.items[n].energyPv=0,D.items[n].energyBat=0}),a.length>0&&rt(La(a)),Rt(o,[])}function Md(t,e){const a=JSON.parse(e).entries,o=JSON.parse(e).totals;Ft(),Ke=[],Yt.forEach(n=>{D.items[n].energyPv=0,D.items[n].energyBat=0}),rt(La(a)),Rt(o,[])}function La(t){const e=[];let a={};return ct={},t.map(o=>{a=Cd(o),e.push(a),Object.keys(a).forEach(n=>{n!="date"&&(a[n]<0&&(console.warn(`Negative energy value for ${n} in row ${a.date}. Ignoring the value.`),a[n]=0),ct[n]?ct[n]+=a[n]:ct[n]=a[n])})}),e}function Cd(t){const e={},a=ut("%Y%m%d")(t.date);a&&(e.date=_.graphMode=="month"?a.getDate():a.getMonth()+1),e.evuOut=0,e.evuIn=0;let o=0,n=0;return Object.entries(t.counter).forEach(([c,u])=>{o+=u.energy_exported,n+=u.energy_imported,u.grid&&(e.evuOut+=u.energy_exported,e.evuIn+=u.energy_imported,Ke.includes(c)||Ke.push(c))}),Ke.length==0&&(e.evuOut=o,e.evuIn=n),e.pv=t.pv.all.energy_exported,Object.entries(t.bat).length>0?(t.bat.all.energy_imported>=0?e.batIn=t.bat.all.energy_imported:(console.warn("ignoring negative value for batIn on day "+e.date),e.batIn=0),t.bat.all.energy_exported>=0?e.batOut=t.bat.all.energy_exported:(console.warn("ignoring negative value for batOut on day "+e.date),e.batOut=0)):(e.batIn=0,e.batOut=0),Object.entries(t.cp).forEach(([c,u])=>{c!="all"?(D.keys().includes(c)||D.addItem(c),e[c]=u.energy_imported):e.charging=u.energy_imported}),Object.entries(t.ev).forEach(([c,u])=>{c!="all"&&(e["soc-"+c]=u.soc)}),e.devices=Object.entries(t.sh).reduce((c,u)=>(D.keys().includes(u[0])||D.addItem(u[0]),u[1].energy_imported>=0?c+=u[1].energy_imported:console.warn(`Negative energy value for device ${u[0]} in row ${e.date}. Ignoring this value`),c),0),e.house=e.pv+e.evuIn+e.batOut-e.evuOut-e.batIn-e.charging,e.selfUsage=e.pv-e.evuOut,e.evuIn+e.batOut+e.pv>0?D.keys().filter(c=>!Sd.includes(c)).map(c=>{is(c,e)}):Yt.map(c=>{e[c+"Pv"]=0,e[c+"Bat"]=0}),e}class Pd{constructor(e){f(this,"id");f(this,"dailyYieldExport",0);f(this,"dailyYieldImport",0);f(this,"exported",0);f(this,"faultState",0);f(this,"faultStr","");f(this,"imported",0);f(this,"power",0);f(this,"soc",0);this.id=e}}class Id{constructor(){f(this,"dailyExport",0);f(this,"dailyImport",0);f(this,"exported",0);f(this,"imported",0);f(this,"power",0);f(this,"soc",0)}}const ve=ne({});ne(new Id);function Bd(t){t in ve?console.info("Duplicate battery message: "+t):ve[t]=new Pd(t)}function Vd(){Object.keys(ve).forEach(t=>{delete ve[parseInt(t)]})}function Ld(t,e){const a=Ad(t);if(a&&!(a in ve)){console.warn("Invalid battery index received: "+a);return}t=="openWB/bat/config/configured"?ce.isBatteryConfigured=e=="true":t=="openWB/bat/get/power"?+e>0?(W.batIn.power=+e,q.batOut.power=0):(W.batIn.power=0,q.batOut.power=-e):t=="openWB/bat/get/soc"?ce.batterySoc=+e:t=="openWB/bat/get/daily_exported"?q.batOut.energy=+e:t=="openWB/bat/get/daily_imported"?W.batIn.energy=+e:a&&(t.match(/^openwb\/bat\/[0-9]+\/get\/daily_yield_export$/i)?ve[a].dailyYieldExport=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/daily_yield_import$/i)?ve[a].dailyYieldImport=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/exported$/i)?ve[a].exported=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/fault_state$/i)?ve[a].faultState=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/fault_str$/i)?ve[a].faultStr=e:t.match(/^openwb\/bat\/[0-9]+\/get\/imported$/i)?ve[a].imported=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/power$/i)?ve[a].power=+e:t.match(/^openwb\/bat\/[0-9]+\/get\/soc$/i)&&(ve[a].soc=+e))}function Ad(t){let e=0;try{const a=t.match(/(?:\/)([0-9]+)(?=\/)/g);return a?(e=+a[0].replace(/[^0-9]+/g,""),e):void 0}catch{console.warn("Parser error in getIndex for topic "+t)}}function Od(t,e){if(t=="openWB/optional/et/provider")JSON.parse(e).type==null?ee.active=!1:(ee.active=!0,ee.etProvider=JSON.parse(e).name);else if(t=="openWB/optional/et/get/prices"){const a=JSON.parse(e);ee.etPriceList=new Map,Object.keys(a).map(o=>{ee.etPriceList.set(new Date(+o*1e3),a[o]*1e5)})}}function Td(t,e){const a=Aa(t);if(a&&!(a in B)){console.warn("Invalid chargepoint id received: "+a);return}if(t=="openWB/chargepoint/get/power"?W.charging.power=+e:t=="openWB/chargepoint/get/daily_imported"&&(W.charging.energy=+e),t=="openWB/chargepoint/get/daily_exported")ce.cpDailyExported=+e;else if(a){if(t.match(/^openwb\/chargepoint\/[0-9]+\/config$/i))if(B[a]){const o=JSON.parse(e);B[a].name=o.name,B[a].icon=o.name,ge["cp"+a]?(ge["cp"+a].name=o.name,ge["cp"+a].icon=o.name):ge["cp"+a]={name:o.name,icon:o.name,color:"var(--color-charging)"}}else console.warn("invalid chargepoint index: "+a);else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/state_str$/i))B[a].stateStr=JSON.parse(e);else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/fault_str$/i))B[a].faultStr=JSON.parse(e);else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/fault_state$/i))B[a].faultState=+e;else if(t.match(/^openWB\/chargepoint\/[0-9]+\/get\/power$/i))B[a].power=+e;else if(t.match(/^openWB\/chargepoint\/[0-9]+\/get\/daily_imported$/i))B[a].dailyYield=+e;else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/plug_state$/i))B[a].isPluggedIn=e=="true";else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/charge_state$/i))B[a].isCharging=e=="true";else if(t.match(/^openwb\/chargepoint\/[0-9]+\/set\/manual_lock$/i))B[a].updateIsLocked(e=="true");else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/enabled$/i))B[a].isEnabled=e=="1";else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/phases_in_use/i))B[a].phasesInUse=+e;else if(t.match(/^openwb\/chargepoint\/[0-9]+\/set\/current/i))B[a].current=+e;else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/currents/i))B[a].currents=JSON.parse(e);else if(t.match(/^openwb\/chargepoint\/[0-9]+\/set\/log/i)){const o=JSON.parse(e);B[a].chargedSincePlugged=o.imported_since_plugged}else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/soc$/i)){const o=JSON.parse(e);B[a].soc=o.soc,B[a].waitingForSoc=!1,B[a].rangeCharged=o.range_charged,B[a].rangeUnit=o.range_unit}else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/info$/i)){const o=JSON.parse(e);B[a].vehicleName=String(o.name),B[a].updateConnectedVehicle(+o.id)}else if(t.match(/^openwb\/chargepoint\/[0-9]+\/get\/connected_vehicle\/config$/i)){const o=JSON.parse(e);switch(o.chargemode){case"instant_charging":B[a].updateChargeMode(me.instant_charging);break;case"pv_charging":B[a].updateChargeMode(me.pv_charging);break;case"scheduled_charging":B[a].updateChargeMode(me.scheduled_charging);break;case"standby":B[a].updateChargeMode(me.standby);break;case"stop":B[a].updateChargeMode(me.stop);break}B[a].chargeTemplate=o.charge_template,B[a].averageConsumption=o.average_consumption}}}function Dd(t,e){const a=Aa(t);if(a!=null){if(!(a in Y)){const o=new ho(a);Y[a]=o}if(t.match(/^openwb\/vehicle\/[0-9]+\/name$/i))Object.values(B).forEach(o=>{o.connectedVehicle==a&&(o.vehicleName=JSON.parse(e))}),Y[a].name=JSON.parse(e);else if(t.match(/^openwb\/vehicle\/[0-9]+\/get\/soc$/i))Y[a].soc=JSON.parse(e);else if(t.match(/^openwb\/vehicle\/[0-9]+\/get\/range$/i))Y[a].range=+e;else if(t.match(/^openwb\/vehicle\/[0-9]+\/charge_template$/i))Y[a].updateChargeTemplateId(+e);else if(t.match(/^openwb\/vehicle\/[0-9]+\/ev_template$/i))Y[a].updateEvTemplateId(+e);else if(t.match(/^openwb\/vehicle\/[0-9]+\/soc_module\/config$/i)){const o=JSON.parse(e);Object.values(B).forEach(n=>{n.connectedVehicle==a&&(n.isSocConfigured=o.type!==null,n.isSocManual=o.type=="manual")})}}}function Gd(t,e){if(t.match(/^openwb\/vehicle\/template\/charge_template\/[0-9]+$/i)){const a=t.match(/[0-9]+$/i);if(a){const o=+a[0],n=JSON.parse(e);fe[o]=n,Wd(o,n)}}else if(t.match(/^openwb\/vehicle\/template\/charge_template\/[0-9]+\/time_charging\/plans\/[0-9]+$/i)){const a=t.match(/(?:\/)([0-9]+)(?:\/)/g),o=t.match(/[0-9]+$/i);if(a&&o){const n=+a[0].replace(/[^0-9]+/g,""),l=+o[0],c=JSON.parse(e);n in Ze||(Ze[n]=[]),Ze[n][l]=c}}else if(t.match(/^openwb\/vehicle\/template\/charge_template\/[0-9]+\/chargemode\/scheduled_charging\/plans\/[0-9]+$/i)){const a=t.match(/(?:\/)([0-9]+)(?:\/)/g),o=t.match(/[0-9]+$/i);if(a&&o){const n=+a[0].replace(/[^0-9]+/g,""),l=+o[0],c=JSON.parse(e);n in Ye||(Ye[n]=[]),Ye[n][l]=c}}else if(t.match(/^openwb\/vehicle\/template\/ev_template\/[0-9]+$/i)){const a=t.match(/[0-9]+$/i);if(a){const o=+a[0],n=JSON.parse(e);Gt[o]=n}}}function Wd(t,e){Object.values(B).forEach(a=>{a.chargeTemplate==t&&(a.updateCpPriority(e.prio),a.updateInstantChargeLimitMode(e.chargemode.instant_charging.limit.selected),a.updateInstantTargetCurrent(e.chargemode.instant_charging.current),a.updateInstantTargetSoc(e.chargemode.instant_charging.limit.soc),a.updateInstantMaxEnergy(e.chargemode.instant_charging.limit.amount),a.updatePvFeedInLimit(e.chargemode.pv_charging.feed_in_limit),a.updatePvMinCurrent(e.chargemode.pv_charging.min_current),a.updatePvMaxSoc(e.chargemode.pv_charging.max_soc),a.updatePvMinSoc(e.chargemode.pv_charging.min_soc),a.updatePvMinSocCurrent(e.chargemode.pv_charging.min_soc_current))})}function Aa(t){let e=0;try{const a=t.match(/(?:\/)([0-9]+)(?=\/)/g);return a?(e=+a[0].replace(/[^0-9]+/g,""),e):void 0}catch{console.warn("Parser error in getIndex for topic "+t)}}function zd(t,e){t.match(/^openWB\/LegacySmarthome\/config\//i)?Ed(t,e):t.match(/^openWB\/LegacySmarthome\/Devices\//i)&&jd(t,e)}function Ed(t,e){const a=Oa(t);a!=null&&(a in H||Nt(a),t.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_configured$/i)?H[a].configured=e!="0":t.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_name$/i)?(H[a].name=e.toString(),H[a].icon=e.toString(),ge["sh"+a].name=e.toString(),ge["sh"+a].icon=e.toString()):t.match(/^openWB\/LegacySmarthome\/config\/set\/Devices\/[0-9]+\/mode$/i)?H[a].isAutomatic=e=="0":t.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_canSwitch$/i)?H[a].canSwitch=e=="1":t.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_homeConsumtion$/i)?H[a].countAsHouse=e=="1":t.match(/^openWB\/LegacySmarthome\/config\/get\/Devices\/[0-9]+\/device_temperatur_configured$/i)&&(H[a].tempConfigured=+e))}function jd(t,e){const a=Oa(t);if(a==null){console.warn("Smarthome: Missing index in "+t);return}if(a in H||Nt(a),t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/Watt$/i))H[a].power=+e,Ud("power");else if(!t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/Wh$/i)){if(t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/RunningTimeToday$/i))H[a].runningTime=+e;else if(t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor0$/i))H[a].temp[0]=+e;else if(t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor1$/i))H[a].temp[1]=+e;else if(t.match(/^openWB\/LegacySmarthome\/Devices\/[0-9]+\/TemperatureSensor2$/i))H[a].temp[2]=+e;else if(t.match(/^openWB\/LegacySmartHome\/Devices\/[0-9]+\/Status$/i))switch(+e){case 10:H[a].status="off";break;case 11:H[a].status="on";break;case 20:H[a].status="detection";break;case 30:H[a].status="timeout";break;default:H[a].status="off"}}}function Ud(t){switch(t){case"power":W.devices.power=Object.values(H).filter(e=>e.configured&&!e.countAsHouse).reduce((e,a)=>e+a.power,0);break;case"energy":W.devices.energy=Object.values(H).filter(e=>e.configured&&!e.countAsHouse).reduce((e,a)=>e+a.energy,0);break;default:console.error("Unknown category")}}function Oa(t){let e=0;try{const a=t.match(/(?:\/)([0-9]+)(?=\/)/g);return a?(e=+a[0].replace(/[^0-9]+/g,""),e):void 0}catch{console.warn("Parser error in getIndex for topic "+t)}}class Fd{constructor(e){f(this,"id");f(this,"name","Zähler");f(this,"power",0);f(this,"energy_imported",0);f(this,"energy_exported",0);f(this,"grid",!1);f(this,"type","counter");f(this,"color","var(--color-evu)");f(this,"energyPv",0);f(this,"energyBat",0);f(this,"pvPercentage",0);f(this,"icon","");this.id=e}}const be=ne({});function Nd(t,e){if(t in be)console.info("Duplicate counter message: "+t);else switch(be[t]=new Fd(t),be[t].type=e,e){case"counter":be[t].color="var(--color-evu)";break;case"inverter":be[t].color="var(--color-pv)";break;case"cp":be[t].color="var(--color-charging)";break;case"bat":be[t].color="var(--color-bat)";break}}const Hd=["openWB/counter/#","openWB/bat/#","openWB/pv/get/#","openWB/chargepoint/#","openWB/vehicle/#","openWB/general/chargemode_config/pv_charging/#","openWB/optional/et/#","openWB/system/#","openWB/LegacySmartHome/#","openWB/command/"+jt()+"/#"];function Rd(){lo(qd),Hd.forEach(t=>{Ee(t)}),he()}function qd(t,e){const a=e.toString();t.match(/^openwb\/counter\/[0-9]+\//i)?Jd(t,a):t.match(/^openwb\/counter\//i)?Qd(t,a):t.match(/^openwb\/bat\//i)?Ld(t,a):t.match(/^openwb\/pv\//i)?Yd(t,a):t.match(/^openwb\/chargepoint\//i)?Td(t,a):t.match(/^openwb\/vehicle\/template\//i)?Gd(t,a):t.match(/^openwb\/vehicle\//i)?Dd(t,a):t.match(/^openwb\/general\/chargemode_config\/pv_charging\//i)?Zd(t,a):t.match(/^openwb\/graph\//i)?fd(t,a):t.match(/^openwb\/log\/daily\//i)?wd(t,a):t.match(/^openwb\/log\/monthly\//i)?$d(t,a):t.match(/^openwb\/log\/yearly\//i)?Md(t,a):t.match(/^openwb\/optional\/et\//i)?Od(t,a):t.match(/^openwb\/system\//i)?Kd(t,a):t.match(/^openwb\/LegacySmartHome\//i)?zd(t,a):t.match(/^openwb\/command\//i)&&eu(t,a)}function Jd(t,e){const a=t.split("/"),o=+a[2];if(o==ce.evuId?Xd(t,e):a[3]=="config",a[3]=="get")switch(a[4]){case"power":be[o].power=+e;break;case"config":break;case"fault_str":break;case"fault_state":break;case"power_factors":break;case"imported":break;case"exported":break;case"frequency":break;case"daily_imported":be[o].energy_imported=+e;break;case"daily_exported":be[o].energy_exported=+e;break}}function Qd(t,e){if(t.match(/^openwb\/counter\/get\/hierarchy$/i)){const a=JSON.parse(e);if(a.length){go(),Vd();for(const o of a)o.type=="counter"&&(ce.evuId=o.id);Ta(a[0])}}else t.match(/^openwb\/counter\/set\/home_consumption$/i)?(W.house.power=+e,vo()):t.match(/^openwb\/counter\/set\/daily_yield_home_consumption$/i)&&(W.house.energy=+e)}function Ta(t){switch(t.type){case"counter":Nd(t.id,t.type);break;case"cp":po(t.id);break;case"bat":Bd(t.id);break}t.children.forEach(e=>Ta(e))}function Yd(t,e){switch(t){case"openWB/pv/get/power":q.pv.power=-e;break;case"openWB/pv/get/daily_exported":q.pv.energy=+e;break}}function Zd(t,e){const a=t.split("/");if(a.length>0)switch(a[4]){case"bat_prio":ce.updatePvBatteryPriority(e=="true");break}}function Xd(t,e){switch(t.split("/")[4]){case"power":+e>0?(q.evuIn.power=+e,W.evuOut.power=0):(q.evuIn.power=0,W.evuOut.power=-e);break;case"daily_imported":q.evuIn.energy=+e;break;case"daily_exported":W.evuOut.energy=+e;break}}function Kd(t,e){if(t.match(/^openWB\/system\/device\/[0-9]+\/component\/[0-9]+\/config$/i)){const a=JSON.parse(e);a.type=="counter"&&(be[a.id].name=a.name)}}function eu(t,e){const a=t.split("/");if(t.match(/^openWB\/command\/[a-z]+\/error$/i)&&a[2]==jt()){const o=JSON.parse(e);console.error(`Error message from openWB: -Command: ${o.command} -Data: JSON.stringify(err.data) -Error: - ${o.error}`)}}const tu=0,au={host:location.hostname,port:location.protocol=="https:"?443:80,endpoint:"/ws",protocol:location.protocol=="https:"?"wss":"ws",clean:!0,connectTimeout:4e3,reconnectPeriod:4e3,clientId:Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,6),username:"openWB",password:"openWB"},ia={topic:"",qos:tu};let He;const{host:ou,port:su,endpoint:nu,...Da}=au,ru=`${Da.protocol}://${ou}:${su}${nu}`;try{He=la.connect(ru,Da),He.on("connect",()=>{console.info("MQTT connection successful")}),He.on("error",t=>{console.error("MQTT connection failed: ",t)})}catch(t){console.error("MQTT connect error: ",t)}function iu(t){He?He.on("message",t):console.error("MqttRegister: MQTT client not available")}function lu(t){ia.topic=t;const{topic:e,qos:a}=ia;He.subscribe(e,{qos:a},o=>{if(o){console.error("MQTT Subscription error: "+o);return}console.info("MQTT Subscription successful: "+t)})}const _t=ne([]);let cu=class Ga{constructor(e,a,o,n){f(this,"name");f(this,"children");f(this,"count");f(this,"lastValue");this.name=e,this.children=a,this.count=o,this.lastValue=n}insert(e,a){if(e.length){const o=e.splice(1);if(e[0]==this.name)if(o.length){let n=!1;if(this.children.forEach(l=>{l.name==o[0]&&(l.insert(o,a),n=!0)}),!n){const l=new Ga(o[0],[],0,"");l.insert(o,a),this.children.push(l)}}else this.count=this.count+1,this.lastValue=a}}};function du(t,e){const a=t.split("/");if(a.length){let o=!1;if(_t.forEach(n=>{n.name==a[0]&&(n.insert(a,e),o=!0)}),!o){const n=new cu(a[0],[],0,"");_t.push(n),n.insert(a,e)}}}const uu=["openWB/#"];function hu(){iu(pu),uu.forEach(t=>{lu(t)})}function pu(t,e){du(t,e.toString())}const gu={class:"row p-0 mb-0 mx-0"},mu={class:"py-2 m-0"},fu={key:0},vu={key:1,style:{"background-color":"white"},class:"p-2"},_u={key:0,class:"col-md-9 m-0 p-0 ps-2"},bu={class:"container-fluid m-0 p-0"},yu=V({__name:"MqttNode",props:{node:{},level:{},hide:{type:Boolean},expandAll:{type:Boolean}},setup(t){const e=t;let a=X(!e.hide),o=X(!1);const n=p(()=>e.node.name),l=p(()=>[...e.node.children].sort((y,I)=>y.namee.node.count>0?"("+e.node.count+")":""),u=p(()=>e.node.children.length),d=p(()=>e.node.lastValue!=""?{"background-color":"lightgoldenrodyellow"}:{"background-color":"lightsteelblue"});function m(){u.value>0&&(a.value=!a.value),e.node.lastValue!=""&&(o.value=!o.value)}return(y,I)=>{const C=Za("MqttNode",!0);return i(),h("div",gu,[s("div",{class:"col-md m-0 px-2 node",style:J(d.value),onClick:m},[s("p",mu,S(n.value)+S(c.value),1),r(o)?(i(),h("hr",fu)):b("",!0),r(o)?(i(),h("p",vu,[s("code",null,S(e.node.lastValue),1)])):b("",!0)],4),(r(a)||e.expandAll)&&u.value>0?(i(),h("div",_u,[s("div",bu,[(i(!0),h(R,null,te(l.value,(L,A)=>(i(),$(C,{key:A,level:e.level+1,node:L,hide:!0,"expand-all":e.expandAll},null,8,["level","node","expand-all"]))),128))])])):b("",!0)])}}});const wu=E(yu,[["__scopeId","data-v-3dfd535f"]]),Zt=t=>(ae("data-v-bf618b70"),t=t(),oe(),t),ku={class:"mqviewer"},xu={class:"row pt-2"},Su={class:"col"},$u=Zt(()=>s("h3",{class:"mqtitle ps-2"},"MQTT Message Viewer",-1)),Mu=Zt(()=>s("hr",null,null,-1)),Cu=Zt(()=>s("hr",null,null,-1)),Pu={key:0},Iu=V({__name:"MQTTViewer",setup(t){Ce(()=>{hu()});const e=X(!1);function a(){e.value=!e.value}const o=p(()=>e.value?"active":"");return(n,l)=>(i(),h("div",ku,[s("div",xu,[s("div",Su,[$u,Mu,s("button",{class:z(["btn btn-small btn-outline-primary ms-2",o.value]),onClick:a}," Expand All ",2),Cu])]),r(_t)[0]?(i(),h("div",Pu,[(i(!0),h(R,null,te(r(_t)[0].children.sort((c,u)=>c.name(i(),$(wu,{key:u,node:c,level:1,hide:!0,"expand-all":e.value},null,8,["node","expand-all"]))),128))])):b("",!0)]))}});const Bu=E(Iu,[["__scopeId","data-v-bf618b70"]]),Vu=["value"],Lu=V({__name:"SelectInput",props:{options:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const a=t,o=p({get(){return a.modelValue},set(n){e("update:modelValue",n)}});return(n,l)=>st((i(),h("select",{id:"selectme","onUpdate:modelValue":l[0]||(l[0]=c=>o.value=c),class:"form-select"},[(i(!0),h(R,null,te(n.options,(c,u)=>(i(),h("option",{key:u,value:c[1]},S(c[0]),9,Vu))),128))],512)),[[Xa,o.value]])}});const Au=E(Lu,[["__scopeId","data-v-5e33ce1f"]]),Wa=t=>(ae("data-v-3556e9f3"),t=t(),oe(),t),Ou=Wa(()=>s("span",{type:"button",class:"float-end mt-0 ms-1","data-bs-toggle":"collapse","data-bs-target":"#themesettings"},[s("span",null,[s("i",{class:"fa-solid fa-circle-check"})])],-1)),Tu={class:"subgrid m-0 p-0"},Du={class:"settingscolumn"},Gu={class:"settingscolumn"},Wu={class:"settingscolumn"},zu=Wa(()=>s("div",{class:"grid-col-12 mb-3 me-3"},[s("button",{class:"btn btn-sm btn-secondary float-end","data-bs-toggle":"collapse","data-bs-target":"#themesettings"}," Schließen ")],-1)),Eu=V({__name:"ThemeSettings",emits:["reset-arcs"],setup(t,{emit:e}){const a=[["Dunkel","dark"],["Hell","light"],["Blau","blue"]],o=[["3 kW","0"],["3,1 kW","1"],["3,14 kW","2"],["3,141 kW","3"],["3141 W","4"]],n=[["Orange","normal"],["Grün/Violett","standard"],["Bunt","advanced"]],l=[["Aus","off"],["Menü","navbar"],["Buttonleiste","buttonbar"]],c=[["Aus","no"],['"Alles"-Reiter',"infoview"],["Immer","always"]];return(u,d)=>(i(),$(We,{"full-width":!0},{title:w(()=>[U(" Look & Feel ")]),buttons:w(()=>[Ou]),default:w(()=>[s("div",Tu,[s("div",Du,[v(j,{fullwidth:!0,title:"Farbschema",icon:"fa-adjust",infotext:"Hintergrundfarbe"},{default:w(()=>[v(Ae,{modelValue:r(g).displayMode,"onUpdate:modelValue":d[0]||(d[0]=m=>r(g).displayMode=m),options:a},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Farbschema Smart-Home-Geräte",icon:"fa-palette",infotext:"Für die Smart-Home-Geräte stehen mehrere Schemata zur Verfügung."},{default:w(()=>[v(Ae,{modelValue:r(g).smartHomeColors,"onUpdate:modelValue":d[1]||(d[1]=m=>r(g).smartHomeColors=m),options:n},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Grafik: Raster",icon:"fa-th",infotext:"Verwende ein Hintergrundraster in den Grafiken"},{default:w(()=>[v(de,{modelValue:r(g).showGrid,"onUpdate:modelValue":d[2]||(d[2]=m=>r(g).showGrid=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Variable Bogenlänge",icon:"fa-chart-area",infotext:"Im Graph 'Aktuelle Leistung' können die Bögen immer die volle Länge haben, oder entsprechend des aktuellen Gesamtleistung verkürzt dargestellt werden."},{default:w(()=>[v(de,{modelValue:r(g).showRelativeArcs,"onUpdate:modelValue":d[3]||(d[3]=m=>r(g).showRelativeArcs=m)},null,8,["modelValue"])]),_:1}),r(g).showRelativeArcs?(i(),$(j,{key:0,fullwidth:!0,title:"Bögen zurücksetzen",icon:"fa-undo",infotext:"Durch Click auf den Button wird die Maximallänge der Bögen auf den aktuellen Wert gesetzt."},{default:w(()=>[r(g).showRelativeArcs?(i(),h("button",{key:0,class:"btn btn-secondary",onClick:d[4]||(d[4]=m=>e("reset-arcs"))}," Reset ")):b("",!0)]),_:1})):b("",!0),v(j,{fullwidth:!0,title:"Anzahl Dezimalstellen",icon:"fa-sliders-h",infotext:"Alle kW- und kWh-Werte werden mit der gewählten Anzahl an Stellen angezeigt."},{default:w(()=>[v(Au,{modelValue:r(g).decimalPlaces,"onUpdate:modelValue":d[5]||(d[5]=m=>r(g).decimalPlaces=m),options:o},null,8,["modelValue"])]),_:1})]),s("div",Gu,[v(j,{fullwidth:!0,title:"Uhrzeit anzeigen",icon:"fa-clock",infotext:"Zeige die aktuelle Uhrzeit an. In der Menüleiste oder neben den Lade-Buttons."},{default:w(()=>[v(Ae,{modelValue:r(g).showClock,"onUpdate:modelValue":d[6]||(d[6]=m=>r(g).showClock=m),options:l},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Kompakte Ladepunktliste",icon:"fa-list",infotext:"Zeige eine einzelne Ladepunktliste statt separater Element pro Ladepunkt."},{default:w(()=>[v(Ae,{modelValue:r(g).shortCpList,"onUpdate:modelValue":d[7]||(d[7]=m=>r(g).shortCpList=m),options:c},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Buttonleiste für Ladepunkte",icon:"fa-window-maximize",infotext:"Informationen zu Ladepunkten über den Diagrammen anzeigen."},{default:w(()=>[v(de,{modelValue:r(g).showButtonBar,"onUpdate:modelValue":d[8]||(d[8]=m=>r(g).showButtonBar=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Filter-Buttons",icon:"fa-filter",infotext:"Hauptseite mit Buttons zur Auswahl der Kategorie."},{default:w(()=>[v(de,{modelValue:r(g).showQuickAccess,"onUpdate:modelValue":d[9]||(d[9]=m=>r(g).showQuickAccess=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Breite Widgets",icon:"fa-desktop",infotext:"Widgets immer breit machen"},{default:w(()=>[v(de,{modelValue:r(g).preferWideBoxes,"onUpdate:modelValue":d[10]||(d[10]=m=>r(g).preferWideBoxes=m)},null,8,["modelValue"])]),_:1})]),s("div",Wu,[v(j,{fullwidth:!0,title:"Stufenlose Displaybreite",icon:"fa-maximize",infotext:"Die Breite des Displays wird immer voll ausgenutzt. Dies kann in einigen Fällen zu inkorrekter Darstellung führen."},{default:w(()=>[v(de,{modelValue:r(g).fluidDisplay,"onUpdate:modelValue":d[11]||(d[11]=m=>r(g).fluidDisplay=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Animationen",icon:"fa-film",infotext:"Animationen anzeigen"},{default:w(()=>[v(de,{modelValue:r(g).showAnimations,"onUpdate:modelValue":d[12]||(d[12]=m=>r(g).showAnimations=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Zähler anzeigen (beta)",icon:"fa-chart-bar",infotext:"Zeige die Werte zusätzlich angelegter Zähler (beta)"},{default:w(()=>[v(de,{modelValue:r(g).showCounters,"onUpdate:modelValue":d[13]||(d[13]=m=>r(g).showCounters=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Fahrzeuge anzeigen (beta)",icon:"fa-car",infotext:"Zeige alle Fahrzeuge mit Ladestand und Reichweite (beta)"},{default:w(()=>[v(de,{modelValue:r(g).showVehicles,"onUpdate:modelValue":d[14]||(d[14]=m=>r(g).showVehicles=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Preistabelle anzeigen (beta)",icon:"fa-car",infotext:"Zeige die Strompreistabelle in einer separaten Box an (beta)"},{default:w(()=>[v(de,{modelValue:r(g).showPrices,"onUpdate:modelValue":d[15]||(d[15]=m=>r(g).showPrices=m)},null,8,["modelValue"])]),_:1}),v(j,{fullwidth:!0,title:"Debug-Modus",icon:"fa-bug-slash",infotext:"Kontrollausgaben in der Console sowie Anzeige von Bildschirmbreite und MQ-Viewer"},{default:w(()=>[v(de,{modelValue:r(g).debug,"onUpdate:modelValue":d[16]||(d[16]=m=>r(g).debug=m)},null,8,["modelValue"])]),_:1})]),zu])]),_:1}))}});const ju=E(Eu,[["__scopeId","data-v-3556e9f3"]]),Uu={class:"countername"},Fu={class:"d-flex float-right justify-content-end align-items-center"},Nu={class:"badge rounded-pill idbadge mx-2"},Hu={class:"subgrid pt-1"},Ru=V({__name:"ClCounter",props:{counter:{}},setup(t){const e=t,a=p(()=>e.counter.power>0?"Bezug":"Export"),o=p(()=>{let n="";return e.counter.power>0?n="var(--color-evu)":n="var(--color-pv)",{"background-color":n,"font-weight":"normal"}});return(n,l)=>(i(),$(it,{titlecolor:"var(--color-title)",fullwidth:!0},{title:w(()=>[s("span",Uu,S(n.counter.name),1)]),buttons:w(()=>[s("div",Fu,[e.counter.power!=0?(i(),h("span",{key:0,class:"badge rounded-pill modebadge mx-2",style:J(o.value)},S(a.value),5)):b("",!0),s("span",Nu,"ID: "+S(e.counter.id),1)])]),default:w(()=>[s("div",Hu,[v(Z,{heading:"Leistung:",small:!0,class:"grid-left grid-col-4"},{default:w(()=>[v(bt,{watt:Math.abs(e.counter.power)},null,8,["watt"])]),_:1}),v(Z,{heading:"Bezogen:",small:!0,class:"grid-col-4"},{default:w(()=>[v(ft,{"watt-h":e.counter.energy_imported},null,8,["watt-h"])]),_:1}),v(Z,{heading:"Exportiert:",small:!0,class:"grid-right grid-col-4"},{default:w(()=>[v(ft,{"watt-h":e.counter.energy_exported},null,8,["watt-h"])]),_:1})])]),_:1}))}});const qu=E(Ru,[["__scopeId","data-v-b262baef"]]),za=t=>(ae("data-v-2aee2e34"),t=t(),oe(),t),Ju=za(()=>s("span",{class:"fas fa-bolt me-2",style:{color:"var(--color-evu)"}}," ",-1)),Qu=za(()=>s("span",null,"Zähler",-1)),Yu=V({__name:"CounterList",setup(t){return(e,a)=>(i(),$(We,{"variable-width":!0},{title:w(()=>[Ju,Qu]),default:w(()=>[(i(!0),h(R,null,te(r(be),(o,n)=>(i(),h("div",{key:n,class:"subgrid pb-2"},[v(qu,{counter:o},null,8,["counter"])]))),128))]),_:1}))}});const Pt=E(Yu,[["__scopeId","data-v-2aee2e34"]]),Zu={class:"subgrid"},Xu=V({__name:"VlVehicle",props:{vehicle:{}},setup(t){const e=t,a=p(()=>{let n=e.vehicle.chargepoint;if(n!=null){let l="";return n.isCharging?l="Lädt ("+n.name+")":l="Bereit ("+n.name+")",l}else return"Unterwegs"}),o=p(()=>{let n=e.vehicle.chargepoint;return n!=null?n.isLocked?"var(--color-evu)":n.isCharging?"var(--color-charging)":n.isPluggedIn?"var(--color-battery)":"var(--color-axis)":"var(--color-axis)"});return(n,l)=>(i(),$(it,{titlecolor:"var(--color-title)",fullwidth:!0},{title:w(()=>[U(S(e.vehicle.name),1)]),default:w(()=>[s("div",Zu,[v(Z,{heading:"Status:",small:!1,class:"grid-left grid-col-4"},{default:w(()=>[s("span",{style:J({color:o.value}),class:"d-flex justify-content-center align-items-center status-string"},S(a.value),5)]),_:1}),v(Z,{heading:"Ladestand:",small:!1,class:"grid-col-4"},{default:w(()=>[U(S(Math.round(e.vehicle.soc))+" % ",1)]),_:1}),v(Z,{heading:"Reichweite:",small:!1,class:"grid-right grid-col-4"},{default:w(()=>[U(S(Math.round(e.vehicle.range))+" km ",1)]),_:1})])]),_:1}))}});const Ku=E(Xu,[["__scopeId","data-v-37dd5ca6"]]),Ea=t=>(ae("data-v-846fd44c"),t=t(),oe(),t),eh=Ea(()=>s("span",{class:"fas fa-car me-2",style:{color:"var(--color-charging)"}}," ",-1)),th=Ea(()=>s("span",null,"Fahrzeuge",-1)),ah=V({__name:"VehicleList",setup(t){return(e,a)=>(i(),$(We,{"variable-width":!0},{title:w(()=>[eh,th]),default:w(()=>[(i(!0),h(R,null,te(Object.values(r(Y)).slice().reverse(),(o,n)=>(i(),h("div",{key:n,class:"subgrid"},[v(Ku,{vehicle:o},null,8,["vehicle"])]))),128))]),_:1}))}});const It=E(ah,[["__scopeId","data-v-846fd44c"]]),ja=t=>(ae("data-v-8ffb4ed9"),t=t(),oe(),t),oh=ja(()=>s("span",{class:"fas fa-coins me-2",style:{color:"var(--color-battery)"}}," ",-1)),sh=ja(()=>s("span",null,"Strompreis",-1)),nh={class:"d-flex float-right justify-content-end align-items-center"},rh={key:0,class:"badge rounded-pill pricebadge mb-1 me-1"},ih={key:1,class:"badge rounded-pill providerbadge mb-1 m-0"},lh={class:"grapharea"},ch={id:"pricechart",class:"p-1 m-0 pricefigure"},dh={viewBox:"0 0 400 280"},uh=["id","origin","transform"],Bt=380,Vt=250,Lt=12,hh=V({__name:"GlobalPriceChart",props:{id:{}},setup(t){const e=t,a=X(!1),o={top:0,bottom:15,left:20,right:0},n=p(()=>{let L=[];return ee.etPriceList.size>0&&ee.etPriceList.forEach((A,Q)=>{L.push([Q,A])}),L}),l=p(()=>n.value.length>1?(Bt-o.left-o.right)/n.value.length:0),c=p(()=>{let L=Oe(n.value,A=>A[0]);return L[1]&&(L[1]=new Date(L[1]),L[1].setTime(L[1].getTime()+36e5)),Re().range([o.left,Bt-o.right]).domain(L)}),u=p(()=>{let L=Oe(n.value,A=>A[1]);return L[0]=Math.floor(L[0])-1,L[1]=Math.floor(L[1])+1,L}),d=p(()=>Te().range([Vt-o.bottom,0]).domain(u.value)),m=p(()=>Qe(c.value).ticks(n.value.length).tickSize(5).tickSizeInner(-Vt).tickFormat(L=>L.getHours()%6==0?et("%H:%M")(L):"")),y=p(()=>ot(d.value).ticks(u.value[1]-u.value[0]).tickSize(0).tickSizeInner(-(Bt-o.right-o.left)).tickFormat(L=>L.toString())),I=p(()=>{a.value==!0;const L=_e("g#"+C.value);L.selectAll("*").remove(),L.selectAll("bar").data(n.value).enter().append("g").append("rect").attr("class","bar").attr("x",x=>c.value(x[0])).attr("y",x=>d.value(x[1])).attr("width",l.value).attr("height",x=>d.value(u.value[0])-d.value(x[1])).attr("fill","var(--color-charging)");const Q=L.append("g").attr("class","axis").call(m.value);Q.attr("transform","translate(0,"+(Vt-o.bottom)+")"),Q.selectAll(".tick").attr("font-size",Lt).attr("color","var(--color-bg)"),Q.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",x=>x.getHours()%6==0?"2":"0.5"),Q.select(".domain").attr("stroke","var(--color-bg");const G=L.append("g").attr("class","axis").call(y.value);G.attr("transform","translate("+o.left+",0)"),G.selectAll(".tick").attr("font-size",Lt).attr("color","var(--color-bg)"),G.selectAll(".tick line").attr("stroke","var(--color-bg)").attr("stroke-width",x=>x%5==0?"2":"0.5"),G.select(".domain").attr("stroke","var(--color-bg)");const T=L.selectAll("ttip").data(n.value).enter().append("g").attr("class","ttarea");T.append("rect").attr("x",x=>c.value(x[0])).attr("y",x=>d.value(x[1])).attr("height",x=>d.value(u.value[0])-d.value(x[1])).attr("class","ttrect").attr("width",l.value).attr("opacity","1%").attr("fill","var(--color-charging)");const F=T.append("g").attr("class","ttmessage").attr("transform",x=>"translate("+(c.value(x[0])-30+l.value/2)+","+(d.value(x[1])-16)+")");F.append("rect").attr("rx",5).attr("width","60").attr("height","30").attr("fill","var(--color-menu)");const P=F.append("text").attr("text-anchor","middle").attr("x",30).attr("y",12).attr("font-size",Lt).attr("fill","var(--color-bg)");return P.append("tspan").attr("x",30).attr("dy","0em").text(x=>et("%H:%M")(x[0])),P.append("tspan").attr("x",30).attr("dy","1.1em").text(x=>Math.round(x[1]*10)/10+" ct"),"PriceChart.vue"}),C=p(()=>"priceChartCanvas"+e.id);return Ce(()=>{a.value=!a.value}),(L,A)=>(i(),$(We,{"variable-width":!0},{title:w(()=>[oh,sh]),buttons:w(()=>[s("div",nh,[r(ee).active?(i(),h("span",rh,S(r(ee).etCurrentPriceString),1)):b("",!0),r(ee).active?(i(),h("span",ih,S(r(ee).etProvider),1)):b("",!0)])]),default:w(()=>[s("div",lh,[s("figure",ch,[(i(),h("svg",dh,[s("g",{id:C.value,origin:I.value,transform:"translate("+o.top+","+o.left+") "},null,8,uh)]))])])]),_:1}))}});const At=E(hh,[["__scopeId","data-v-8ffb4ed9"]]),we=t=>(ae("data-v-2ac38f21"),t=t(),oe(),t),ph={class:"container-fluid px-2 m-0 theme-colors"},gh={id:"themesettings",class:"collapse"},mh={key:2,class:"row py-0 px-0 m-0"},fh={key:3,class:"row py-0 m-0 d-flex justify-content-center"},vh={key:4,class:"nav nav-tabs nav-justified mx-1 mt-2",role:"tablist"},_h=Ka('AllesLadepunkte',2),bh={key:0,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#pricecharttabbed"},yh=we(()=>s("i",{class:"fa-solid fa-lg fa-coins"},null,-1)),wh=we(()=>s("span",{class:"d-none d-md-inline ms-2"},"Strompreis",-1)),kh=[yh,wh],xh={key:1,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#vehiclelist"},Sh=we(()=>s("i",{class:"fa-solid fa-lg fa-car"},null,-1)),$h=we(()=>s("span",{class:"d-none d-md-inline ms-2"},"Fahrzeuge",-1)),Mh=[Sh,$h],Ch={key:2,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#batterylist"},Ph=we(()=>s("i",{class:"fa-solid fa-lg fa-car-battery"},null,-1)),Ih=we(()=>s("span",{class:"d-none d-md-inline ms-2"},"Speicher",-1)),Bh=[Ph,Ih],Vh={key:3,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#smarthomelist"},Lh=we(()=>s("i",{class:"fa-solid fa-lg fa-plug"},null,-1)),Ah=we(()=>s("span",{class:"d-none d-md-inline ms-2"},"Smart Home",-1)),Oh=[Lh,Ah],Th={key:4,class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#counterlist"},Dh=we(()=>s("i",{class:"fa-solid fa-lg fa-bolt"},null,-1)),Gh=we(()=>s("span",{class:"d-none d-md-inline ms-2"},"Zähler",-1)),Wh=[Dh,Gh],zh={key:5,id:"cpContent",class:"tab-content mx-0 pt-1"},Eh={id:"showAll",class:"tab-pane active",role:"tabpanel","aria-labelledby":"showall-tab"},jh={class:"row py-0 m-0 d-flex justify-content-center"},Uh={id:"chargepointlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"chargepoint-tab"},Fh={class:"row py-0 m-0 d-flex justify-content-center"},Nh={id:"vehiclelist",class:"tab-pane",role:"tabpanel","aria-labelledby":"vehicle-tab"},Hh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},Rh={id:"batterylist",class:"tab-pane",role:"tabpanel","aria-labelledby":"battery-tab"},qh={class:"row py-0 m-0 d-flex justify-content-center"},Jh={id:"smarthomelist",class:"tab-pane",role:"tabpanel","aria-labelledby":"smarthome-tab"},Qh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},Yh={id:"counterlist",class:"tab-pane",role:"tabpanel","aria-labelledby":"counter-tab"},Zh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},Xh={id:"pricecharttabbed",class:"tab-pane",role:"tabpanel","aria-labelledby":"price-tab"},Kh={key:0,class:"row py-0 m-0 d-flex justify-content-center"},ep={key:0,class:"row p-2 mt-5"},tp={class:"col p-2"},ap=we(()=>s("hr",null,null,-1)),op={class:"d-flex justify-content-between"},sp={class:"mx-4"},np={key:0},rp=V({__name:"ColorsTheme",setup(t){const e=X(!1),a=p(()=>Object.values(H).filter(c=>c.configured).length>0);function o(){ma()}function n(){e.value=!e.value}Ce(()=>{o(),window.addEventListener("resize",yo),window.addEventListener("focus",l),Rd()});function l(){document.hasFocus()&&he()}return(c,u)=>(i(),h(R,null,[s("div",ph,[s("div",gh,[v(ju,{onResetArcs:r(ko)},null,8,["onResetArcs"])]),r(g).showButtonBar?(i(),$(Uc,{key:0})):b("",!0),b("",!0),(i(),h("div",mh,[v(md,null,{item1:w(()=>[v(as)]),item2:w(()=>[v(vn)]),item3:w(()=>[v(jn)]),_:1})])),r(g).showQuickAccess?b("",!0):(i(),h("div",fh,[v($t,{shortlist:r(g).shortCpList=="always"},null,8,["shortlist"]),r(g).showPrices?(i(),$(At,{key:0,id:"NoTabs"})):b("",!0),r(g).showVehicles?(i(),$(It,{key:1})):b("",!0),v(Mt),a.value?(i(),$(Ct,{key:2})):b("",!0),r(g).showCounters?(i(),$(Pt,{key:3})):b("",!0)])),r(g).showQuickAccess?(i(),h("nav",vh,[_h,r(g).showPrices?(i(),h("a",bh,kh)):b("",!0),r(g).showVehicles?(i(),h("a",xh,Mh)):b("",!0),r(ce).isBatteryConfigured?(i(),h("a",Ch,Bh)):b("",!0),a.value?(i(),h("a",Vh,Oh)):b("",!0),r(g).showCounters?(i(),h("a",Th,Wh)):b("",!0)])):b("",!0),r(g).showQuickAccess?(i(),h("div",zh,[s("div",Eh,[s("div",jh,[v($t,{shortlist:r(g).shortCpList!="no"},null,8,["shortlist"]),r(g).showPrices?(i(),$(At,{key:0,id:"Overview"})):b("",!0),r(g).showVehicles?(i(),$(It,{key:1})):b("",!0),v(Mt),a.value?(i(),$(Ct,{key:2})):b("",!0),r(g).showCounters?(i(),$(Pt,{key:3})):b("",!0)])]),s("div",Uh,[s("div",Fh,[v($t,{shortlist:r(g).shortCpList=="always"},null,8,["shortlist"])])]),s("div",Nh,[r(g).showVehicles?(i(),h("div",Hh,[v(It)])):b("",!0)]),s("div",Rh,[s("div",qh,[v(Mt)])]),s("div",Jh,[a.value?(i(),h("div",Qh,[v(Ct)])):b("",!0)]),s("div",Yh,[r(g).showCounters?(i(),h("div",Zh,[v(Pt)])):b("",!0)]),s("div",Xh,[r(g).showPrices?(i(),h("div",Kh,[v(At,{id:"Tabbed"})])):b("",!0)])])):b("",!0)]),r(g).debug?(i(),h("div",ep,[s("div",tp,[ap,s("div",op,[s("p",sp,"Screen Width: "+S(r(gt).x),1),s("button",{class:"btn btn-sm btn-secondary mx-4",onClick:n}," MQ Viewer ")]),e.value?(i(),h("hr",np)):b("",!0),e.value?(i(),$(Bu,{key:1})):b("",!0)])])):b("",!0)],64))}});const ip=E(rp,[["__scopeId","data-v-2ac38f21"]]),wt=t=>(ae("data-v-ed619966"),t=t(),oe(),t),lp={class:"navbar navbar-expand-lg px-0 mb-0"},cp=wt(()=>s("a",{href:"/",class:"navbar-brand"},[s("span",null,"openWB")],-1)),dp=wt(()=>s("button",{class:"navbar-toggler togglebutton ps-5",type:"button","data-bs-toggle":"collapse","data-bs-target":"#mainNavbar","aria-controls":"mainNavbar","aria-expanded":"false","aria-label":"Toggle navigation"},[s("span",{class:"fa-solid fa-ellipsis-vertical"})],-1)),up=wt(()=>s("div",{id:"mainNavbar",class:"collapse navbar-collapse justify-content-end"},[s("div",{class:"nav navbar-nav"},[s("a",{id:"navStatus",class:"nav-link",href:"../../settings/#/Status"},"Status"),s("div",{class:"nav-item dropdown"},[s("a",{id:"loggingDropdown",class:"nav-link",href:"#",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[U("Auswertungen "),s("i",{class:"fa-solid fa-caret-down"})]),s("div",{class:"dropdown-menu","aria-labelledby":"loggingDropdown"},[s("a",{href:"../../settings/#/Logging/ChargeLog",class:"dropdown-item"},"Ladeprotokoll"),s("a",{href:"../../settings/#/Logging/Chart",class:"dropdown-item"},"Diagramme")])]),s("div",{class:"nav-item dropdown"},[s("a",{id:"settingsDropdown",class:"nav-link",href:"#",role:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},[U("Einstellungen "),s("span",{class:"fa-solid fa-caret-down"})]),s("div",{class:"dropdown-menu","aria-labelledby":"settingsDropdown"},[s("a",{id:"navSettings",class:"nav-link",href:"../../settings/index.html"},"openWB"),s("a",{class:"nav-link","data-bs-toggle":"collapse","data-bs-target":"#themesettings","aria-expanded":"false","aria-controls":"themeSettings"},[s("span",null,[U("Look&Feel"),s("span",{class:"fa-solid fa-caret-down"})])])])])])],-1)),hp=wt(()=>s("hr",{class:"m-0 p-0 mb-2"},null,-1)),pp=[hp],gp=V({__name:"NavigationBar",setup(t){let e;const a=p(()=>g.fluidDisplay?"container-fluid":"container-lg");return Ce(()=>{e=setInterval(()=>{Wt.value=new Date},1e3)}),eo(()=>{clearInterval(e)}),(o,n)=>(i(),h(R,null,[s("nav",lp,[s("div",{class:z(a.value)},[cp,r(g).showClock=="navbar"?(i(),h("span",{key:0,class:"position-absolute-50 navbar-text ms-4 navbar-time",style:J({color:"var(--color-menu)"})},S(r(fa)(r(Wt))),5)):b("",!0),dp,up],2)]),s("div",{class:z(a.value)},pp,2)],64))}});const mp=E(gp,[["__scopeId","data-v-ed619966"]]),fp={id:"app",class:"m-0 p-0"},vp={class:"row p-0 m-0"},_p={class:"col-12 p-0 m-0"},bp=V({__name:"App",setup(t){const e=p(()=>g.fluidDisplay?"container-fluid":"container-lg");return(a,o)=>(i(),h("div",fp,[v(mp),s("div",{class:z(["p-0",e.value])},[s("div",vp,[s("div",_p,[v(ip)])])],2)]))}});const yp=to(bp);ao();yp.mount("#app"); diff --git a/packages/modules/web_themes/colors/web/assets/index-53545bda.css b/packages/modules/web_themes/colors/web/assets/index-e8574baf.css similarity index 72% rename from packages/modules/web_themes/colors/web/assets/index-53545bda.css rename to packages/modules/web_themes/colors/web/assets/index-e8574baf.css index c51e0ca661..d896c1566d 100644 --- a/packages/modules/web_themes/colors/web/assets/index-53545bda.css +++ b/packages/modules/web_themes/colors/web/assets/index-e8574baf.css @@ -1,4 +1,4 @@ -@charset "UTF-8";.form-select[data-v-7b8949f3]{background-color:var(--color-input);border:1;border-color:var(--color-bg);color:var(--color-bg);text-align:start;font-size:var(--font-small)}.commitbutton[data-v-7b8949f3]{background-color:var(--color-bg);color:var(--color-input)}option[data-v-7b8949f3]{color:green}.form-select[data-v-7b8949f3]{font-size:var(--font-verysmall);background-color:var(--color-menu);color:var(--color-fg)}.optiontable[data-v-7b8949f3]{background-color:var(--color-menu)}.optionbutton[data-v-7b8949f3]{font-size:var(--font-small);color:#fff;background-color:var(--color-menu);font-size:var(--font-verysmall);text-align:center}.dropdown-menu[data-v-7b8949f3]{background-color:var(--color-menu)}.dropdown-toggle[data-v-7b8949f3]{background-color:var(--color-menu);color:#fff;border:1px solid var(--color-bg);font-size:var(--font-verysmall)}.radiobutton[data-v-82ab6829]{border:0px solid var(--color-menu);opacity:1}.btn-outline-secondary.active[data-v-82ab6829]{background-color:var(--color-bg);border:0px solid var(--color-fg);opacity:.8}.btn-group[data-v-82ab6829]{border:1px solid var(--color-menu)}.rounded-pill[data-v-37d26037]{background-color:var(--color-menu)}.arrowButton[data-v-37d26037]{border:0}.datebadge[data-v-37d26037]{background-color:var(--color-bg);color:var(--color-menu);border:1px solid var(--color-menu);font-size:var(--font-small);font-weight:400}.arrowButton[data-v-37d26037],.fa-magnifying-glass[data-v-bb5945e3]{color:var(--color-menu)}.datebadge[data-v-bb5945e3]{background-color:var(--color-menu);color:var(--color-bg);font-size:var(--font-medium);font-weight:400}.heading[data-v-f6af00e8]{color:var(--color-menu);font-weight:400;text-align:center}.content[data-v-f6af00e8]{color:var(--color-fg);font-weight:700}@supports (grid-template-columns: subgrid){.wb-subwidget[data-v-971e553f]{border-top:.5px solid var(--color-scale);display:grid;grid-template-columns:subgrid;grid-column:1 / 13}}@supports not (grid-template-columns: subgrid){.wb-subwidget[data-v-971e553f]{border-top:.5px solid var(--color-scale);display:grid;grid-template-columns:repeat(12,auto);grid-column:1 / 13}}.titlerow[data-v-971e553f]{grid-column:1 / 13}@supports (grid-template-columns: subgrid){.contentrow[data-v-971e553f]{display:grid;grid-template-columns:subgrid;grid-column:1 / 13;align-items:top}}@supports not (grid-template-columns: subgrid){.contentrow[data-v-971e553f]{display:grid;align-items:top;grid-template-columns:repeat(12,auto)}}.widgetname[data-v-971e553f]{font-weight:700}.infotext[data-v-b935eb33]{font-size:var(--font-settings);color:var(--color-battery)}.item-icon[data-v-b935eb33]{color:var(--color-menu);font-size:var(--font-settings)}.titlecolumn[data-v-b935eb33]{color:var(--color-fg);font-size:var(--font-settings)}.selectors[data-v-b935eb33],.configitem[data-v-b935eb33]{font-size:var(--font-settings)}.minlabel[data-v-17a828b1],.maxlabel[data-v-17a828b1]{color:var(--color-menu)}.valuelabel[data-v-17a828b1]{color:var(--color-fg)}.minusButton[data-v-17a828b1],.plusButton[data-v-17a828b1]{color:var(--color-menu)}.radiobutton[data-v-df222cbe]{border:.5px solid var(--color-input);opacity:.5;font-size:var(--font-settings)}.btn-outline-secondary.active[data-v-df222cbe]{background-color:var(--color-bg);border:1px solid var(--color-fg);box-shadow:0 .5rem 1rem #00000026;opacity:1}.chargeConfigSelect[data-v-0303d179]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-0303d179]{color:var(--color-charging)}.chargeConfigSelect[data-v-1a90f282]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-1a90f282]{color:var(--color-pv)}.tablecell[data-v-e8f5ad9d]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;font-size:var(--font-medium)}.tableheader[data-v-e8f5ad9d]{color:var(--color-menu);background-color:var(--color-bg);text-align:center;font-style:normal}.heading[data-v-e8f5ad9d]{color:var(--color-battery)}.left[data-v-e8f5ad9d]{text-align:left}.tablecell[data-v-192e287b]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;font-size:var(--font-medium)}.tableheader[data-v-192e287b]{color:var(--color-menu);background-color:var(--color-bg);text-align:center;font-style:normal}.heading[data-v-192e287b]{color:var(--color-battery)}.left[data-v-192e287b]{text-align:left}.right[data-v-192e287b]{text-align:right}.status-string[data-v-fcb57a44]{font-size:var(--font-normal);font-style:italic;color:var(--color-battery)}.chargeConfigSelect[data-v-fcb57a44]{background:var(--color-bg);color:var(--color-fg)}.chargeModeOption[data-v-fcb57a44]{background:green;color:#00f}.nav-tabs .nav-link[data-v-fcb57a44]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-fcb57a44]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-fcb57a44]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:1px solid var(--color-menu);border-bottom:1px solid var(--color-menu)}.settingsheader[data-v-fcb57a44]{color:var(--color-charging)}.status-string[data-v-a64493d7]{font-size:var(--font-normal);font-style:italic;color:var(--color-battery)}.chargeConfigSelect[data-v-a64493d7]{background:var(--color-bg);color:var(--color-fg)}.chargeModeOption[data-v-a64493d7]{background:green;color:#00f}.nav-tabs .nav-link[data-v-a64493d7]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-a64493d7]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-a64493d7]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:1px solid var(--color-menu);border-bottom:1px solid var(--color-menu)}.settingsheader[data-v-a64493d7]{color:var(--color-charging);font-size:16px;font-weight:700}hr[data-v-a64493d7]{color:var(--color-menu)}.color-charging[data-v-5286b19d]{color:var(--color-charging)}.fa-circle-check[data-v-5286b19d]{color:var(--color-menu)}.settingsheader[data-v-5286b19d]{color:var(--color-charging);font-size:16px;font-weight:700}.providername[data-v-5286b19d]{color:var(--color-axis);font-size:16px}.status-string[data-v-fdc511bd]{font-size:var(--font-settings);font-style:italic;color:var(--color-battery)}.nav-tabs .nav-link[data-v-fdc511bd]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-fdc511bd]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-fdc511bd]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:1px solid var(--color-menu);border-bottom:0px solid var(--color-menu)}.heading[data-v-fdc511bd]{color:var(--color-menu)}.item[data-v-fdc511bd]{grid-column:span 12}.tabarea[data-v-fdc511bd]{justify-self:stretch}.batIcon[data-v-a0bd055c]{color:var(--color-menu)}.wb-widget[data-v-ebc57eaa]{width:100%;border-radius:30px}.fa-star[data-v-fec067c7]{color:var(--color-evu)}.fa-clock[data-v-fec067c7]{color:var(--color-battery)}.fa-car[data-v-fec067c7],.fa-ellipsis-vertical[data-v-fec067c7],.fa-circle-check[data-v-fec067c7]{color:var(--color-menu)}.fa-coins[data-v-fec067c7]{color:var(--color-battery)}.fa-edit[data-v-fec067c7]{color:var(--color-menu)}.socEditor[data-v-fec067c7]{border:1px solid var(--color-menu);justify-self:stretch}.targetCurrent[data-v-fec067c7]{color:var(--color-menu)}.priceEditor[data-v-fec067c7]{border:1px solid var(--color-menu);justify-self:stretch}.chargemodes[data-v-fec067c7]{grid-column:1 / 13;justify-self:center}.chargeinfo[data-v-fec067c7]{display:grid;grid-template-columns:repeat(12,auto);justify-content:space-between}@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;overflow:clip;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.modal-footer[data-v-eaefae30],.modal-header[data-v-eaefae30],.modal-body[data-v-eaefae30]{background:var(--color-bg)}.btn-close[data-v-eaefae30]{color:var(--color-fg)}.modal-footer[data-v-eaefae30]{text-align:right}.modal-header .btn-close[data-v-eaefae30]{color:var(--color-fg);background:var(--color-bg);border:0px}.modal.fade .modal-dialog[data-v-eaefae30]{transition:transform 1s ease-out;transform:none;scale:.6}.modal.show .modal-dialog[data-v-eaefae30]{transition:transform .3s ease-in;transform:none;scale:1}.tablerow[data-v-0496b1f6]{margin:14px;border-top:.1px solid var(--color-scale)}.tablecell[data-v-0496b1f6]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;padding-top:2px;padding-left:2px;padding-right:2px;vertical-align:baseline;line-height:1.4rem;font-size:var(--font-small)}.buttoncell[data-v-0496b1f6]{background-color:var(--color-bg);padding:0;margin:0}.left[data-v-0496b1f6]{text-align:left}.tablecell.right[data-v-0496b1f6]{text-align:right}.tablecolum1[data-v-0496b1f6]{color:var(--color-fg);text-align:left;margin:0;padding:0}.tableicon[data-v-0496b1f6]{color:var(--color-menu)}.fa-star[data-v-0496b1f6]{color:var(--color-evu)}.fa-clock[data-v-0496b1f6]{color:var(--color-battery)}.socEditor[data-v-0496b1f6]{border:1px solid var(--color-menu);background-color:var(--color-bg)}.socEditRow td[data-v-0496b1f6]{background-color:var(--color-bg)}.fa-circle-check[data-v-0496b1f6]{color:var(--color-menu)}.socEditTitle[data-v-0496b1f6]{color:var(--color-fg)}.statusbadge[data-v-0496b1f6]{background-color:var(--color-bg);font-weight:700;font-size:var(--font-verysmall)}.cpname[data-v-0496b1f6]{font-size:var(--font-small)}.fa-edit[data-v-0496b1f6]{color:var(--color-menu)}.infolist[data-v-0496b1f6]{justify-content:center}.tableheader[data-v-8c6313d6]{margin:0;padding-left:0;background-color:var(--color-bg);color:var(--color-menu)}.alignleft[data-v-8c6313d6]{text-align:left}.aligncenter[data-v-8c6313d6]{text-align:center}.alignright[data-v-8c6313d6]{text-align:right}.table[data-v-8c6313d6]{border-spacing:1rem;background-color:var(--color-bg)}.pricebadge[data-v-8c6313d6]{background-color:var(--color-menu);font-weight:400}.fa-charging-station[data-v-8c6313d6]{color:var(--color-charging)}.plugIndicator[data-v-97a4a3ff]{color:#fff;border:1px solid white}.chargeButton[data-v-97a4a3ff]{color:#fff}.left[data-v-97a4a3ff]{float:left}.right[data-v-97a4a3ff]{float:right}.center[data-v-97a4a3ff]{margin:auto}.time-display[data-v-791e4be0]{font-weight:700;color:var(--color-menu);font-size:var(--font-normal)}.battery-color[data-v-5ea167db]{color:var(--color-battery)}.fg-color[data-v-5ea167db]{color:var(--color-fg)}.menu-color[data-v-5ea167db],.todaystring[data-v-5ea167db]{color:var(--color-menu)}.statusbutton[data-v-a091330c]{font-size:var(--font-large)}.modebutton[data-v-a091330c]{background-color:var(--color-menu);font-size:var(--font-verysmall);font-weight:400}.tempbadge[data-v-a091330c]{background-color:var(--color-battery);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.infolist[data-v-a091330c]{justify-content:center}.sh-title[data-v-84d6f9ad]{color:var(--color-title)}.tableheader[data-v-84d6f9ad]{background-color:var(--color-bg);color:var(--color-menu)}.fa-ellipsis-vertical[data-v-84d6f9ad],.fa-circle-check[data-v-84d6f9ad]{color:var(--color-menu)}.smarthome[data-v-84d6f9ad]{color:var(--color-devices)}.button[data-v-dc35b0f6]{color:var(--color-fg)}.node[data-v-3dfd535f]{font-size:1rem;color:#000;border:1px solid white}.mqviewer[data-v-bf618b70]{background-color:#fff;color:#000}.mqtitle[data-v-bf618b70]{color:#000}.form-select[data-v-5e33ce1f]{background-color:var(--color-input);color:#000;border:1px solid var(--color-bg);font-size:var(--font-settings)}.fa-circle-check[data-v-3556e9f3]{font-size:var(--font-extralarge);background-color:var(--color-bg);color:var(--color-menu)}.closebutton[data-v-3556e9f3]{justify-self:end}.idbadge[data-v-b262baef]{background-color:var(--color-menu);font-weight:400}.countername[data-v-b262baef]{font-size:var(--font-medium)}.statusbutton[data-v-2aee2e34]{font-size:var(--font-large)}.modebutton[data-v-2aee2e34]{background-color:var(--color-menu);font-size:var(--font-verysmall);font-weight:400}.tempbadge[data-v-2aee2e34]{background-color:var(--color-battery);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.idbadge[data-v-37dd5ca6]{background-color:var(--color-menu);font-weight:400}.status-string[data-v-37dd5ca6]{text-align:center}.statusbutton[data-v-846fd44c]{font-size:var(--font-large)}.modebutton[data-v-846fd44c]{background-color:var(--color-menu);font-size:var(--font-verysmall);font-weight:400}.tempbadge[data-v-846fd44c]{background-color:var(--color-battery);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.pricebadge[data-v-8ffb4ed9]{background-color:var(--color-charging);font-weight:400}.providerbadge[data-v-8ffb4ed9]{background-color:var(--color-menu);font-weight:400}.grapharea[data-v-8ffb4ed9]{grid-column-start:1;grid-column-end:13;width:100%;object-fit:cover;max-height:100%;justify-items:stretch}.pricefigure[data-v-8ffb4ed9]{justify-self:stretch}.nav-tabs[data-v-2ac38f21]{border-bottom:.5px solid var(--color-menu);background-color:var(--color-bg)}.nav-tabs .nav-link[data-v-2ac38f21]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-2ac38f21]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-2ac38f21]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:.5px solid var(--color-menu);border-bottom:0px solid var(--color-menu);box-shadow:0 .5rem 1rem #00000026}.fa-circle-info[data-v-2ac38f21]{color:var(--color-fg)}.fa-charging-station[data-v-2ac38f21]{color:var(--color-charging)}.fa-car-battery[data-v-2ac38f21]{color:var(--color-battery)}.fa-plug[data-v-2ac38f21]{color:var(--color-devices)}.fa-bolt[data-v-2ac38f21]{color:var(--color-evu)}.fa-car[data-v-2ac38f21]{color:var(--color-charging)}.fa-coins[data-v-2ac38f21]{color:var(--color-battery)}.navbar[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg);font-size:var(--font-normal)}.dropdown-menu[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg)}.dropdown-item[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg);font-size:var(--font-normal)}.btn[data-v-ed619966]{font-size:var(--font-medium);background-color:var(--color-bg);color:var(--color-fg)}.navbar-brand[data-v-ed619966]{font-weight:700;color:var(--color-fg);font-size:var(--font-normal)}.nav-link[data-v-ed619966]{color:var(--color-fg);border-color:red;font-size:var(--font-normal)}.navbar-toggler[data-v-ed619966]{color:var(--color-fg);border-color:var(--color-bg)}.navbar-time[data-v-ed619966]{font-weight:700;color:var(--color-menu);font-size:var(--font-normal)}.fa{font-family:var(--fa-style-family, "Font Awesome 6 Free");font-weight:var(--fa-style, 900)}.fa,.fa-brands,.fa-duotone,.fa-light,.fa-regular,.fa-solid,.fa-thin,.fab,.fad,.fal,.far,.fas,.fat{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:var(--fa-display, inline-block);font-style:normal;font-variant:normal;line-height:1;text-rendering:auto}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.08333em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.07143em;vertical-align:.05357em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.04167em;vertical-align:-.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:var(--fa-li-margin, 2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(var(--fa-li-width, 2em) * -1);position:absolute;text-align:center;width:var(--fa-li-width, 2em);line-height:inherit}.fa-border{border-radius:var(--fa-border-radius, .1em);border:var(--fa-border-width, .08em) var(--fa-border-style, solid) var(--fa-border-color, #eee);padding:var(--fa-border-padding, .2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin, .3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin, .3em)}.fa-beat{-webkit-animation-name:fa-beat;animation-name:fa-beat;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, ease-in-out);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-bounce{-webkit-animation-name:fa-bounce;animation-name:fa-bounce;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.28, .84, .42, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.28, .84, .42, 1) )}.fa-fade{-webkit-animation-name:fa-fade;animation-name:fa-fade;-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) )}.fa-beat-fade,.fa-fade{-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s)}.fa-beat-fade{-webkit-animation-name:fa-beat-fade;animation-name:fa-beat-fade;-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) )}.fa-flip{-webkit-animation-name:fa-flip;animation-name:fa-flip;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, ease-in-out);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-shake{-webkit-animation-name:fa-shake;animation-name:fa-shake;-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, linear);animation-timing-function:var(--fa-animation-timing, linear)}.fa-shake,.fa-spin{-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal)}.fa-spin{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-duration:var(--fa-animation-duration, 2s);animation-duration:var(--fa-animation-duration, 2s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, linear);animation-timing-function:var(--fa-animation-timing, linear)}.fa-spin-reverse{--fa-animation-direction: reverse}.fa-pulse,.fa-spin-pulse{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, steps(8));animation-timing-function:var(--fa-animation-timing, steps(8))}@media (prefers-reduced-motion: reduce){.fa-beat,.fa-beat-fade,.fa-bounce,.fa-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;transition-delay:0s;transition-duration:0s}}@-webkit-keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale, 1.25));transform:scale(var(--fa-beat-scale, 1.25))}}@keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale, 1.25));transform:scale(var(--fa-beat-scale, 1.25))}}@-webkit-keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em));transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em));transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em));transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em));transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@-webkit-keyframes fa-fade{50%{opacity:var(--fa-fade-opacity, .4)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity, .4)}}@-webkit-keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity, .4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale, 1.125));transform:scale(var(--fa-beat-fade-scale, 1.125))}}@keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity, .4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale, 1.125));transform:scale(var(--fa-beat-fade-scale, 1.125))}}@-webkit-keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg));transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg))}}@keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg));transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg))}}@-webkit-keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}.fa-rotate-by{-webkit-transform:rotate(var(--fa-rotate-angle, none));transform:rotate(var(--fa-rotate-angle, none))}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%;z-index:var(--fa-stack-z-index, auto)}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:var(--fa-inverse, #fff)}.fa-0:before{content:"0"}.fa-1:before{content:"1"}.fa-2:before{content:"2"}.fa-3:before{content:"3"}.fa-4:before{content:"4"}.fa-5:before{content:"5"}.fa-6:before{content:"6"}.fa-7:before{content:"7"}.fa-8:before{content:"8"}.fa-9:before{content:"9"}.fa-a:before{content:"A"}.fa-address-book:before,.fa-contact-book:before{content:""}.fa-address-card:before,.fa-contact-card:before,.fa-vcard:before{content:""}.fa-align-center:before{content:""}.fa-align-justify:before{content:""}.fa-align-left:before{content:""}.fa-align-right:before{content:""}.fa-anchor:before{content:""}.fa-angle-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-double-down:before,.fa-angles-down:before{content:""}.fa-angle-double-left:before,.fa-angles-left:before{content:""}.fa-angle-double-right:before,.fa-angles-right:before{content:""}.fa-angle-double-up:before,.fa-angles-up:before{content:""}.fa-ankh:before{content:""}.fa-apple-alt:before,.fa-apple-whole:before{content:""}.fa-archway:before{content:""}.fa-arrow-down:before{content:""}.fa-arrow-down-1-9:before,.fa-sort-numeric-asc:before,.fa-sort-numeric-down:before{content:""}.fa-arrow-down-9-1:before,.fa-sort-numeric-desc:before,.fa-sort-numeric-down-alt:before{content:""}.fa-arrow-down-a-z:before,.fa-sort-alpha-asc:before,.fa-sort-alpha-down:before{content:""}.fa-arrow-down-long:before,.fa-long-arrow-down:before{content:""}.fa-arrow-down-short-wide:before,.fa-sort-amount-desc:before,.fa-sort-amount-down-alt:before{content:""}.fa-arrow-down-wide-short:before,.fa-sort-amount-asc:before,.fa-sort-amount-down:before{content:""}.fa-arrow-down-z-a:before,.fa-sort-alpha-desc:before,.fa-sort-alpha-down-alt:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-left-long:before,.fa-long-arrow-left:before{content:""}.fa-arrow-pointer:before,.fa-mouse-pointer:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-right-arrow-left:before,.fa-exchange:before{content:""}.fa-arrow-right-from-bracket:before,.fa-sign-out:before{content:""}.fa-arrow-right-long:before,.fa-long-arrow-right:before{content:""}.fa-arrow-right-to-bracket:before,.fa-sign-in:before{content:""}.fa-arrow-left-rotate:before,.fa-arrow-rotate-back:before,.fa-arrow-rotate-backward:before,.fa-arrow-rotate-left:before,.fa-undo:before{content:""}.fa-arrow-right-rotate:before,.fa-arrow-rotate-forward:before,.fa-arrow-rotate-right:before,.fa-redo:before{content:""}.fa-arrow-trend-down:before{content:""}.fa-arrow-trend-up:before{content:""}.fa-arrow-turn-down:before,.fa-level-down:before{content:""}.fa-arrow-turn-up:before,.fa-level-up:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-up-1-9:before,.fa-sort-numeric-up:before{content:""}.fa-arrow-up-9-1:before,.fa-sort-numeric-up-alt:before{content:""}.fa-arrow-up-a-z:before,.fa-sort-alpha-up:before{content:""}.fa-arrow-up-from-bracket:before{content:""}.fa-arrow-up-long:before,.fa-long-arrow-up:before{content:""}.fa-arrow-up-right-from-square:before,.fa-external-link:before{content:""}.fa-arrow-up-short-wide:before,.fa-sort-amount-up-alt:before{content:""}.fa-arrow-up-wide-short:before,.fa-sort-amount-up:before{content:""}.fa-arrow-up-z-a:before,.fa-sort-alpha-up-alt:before{content:""}.fa-arrows-h:before,.fa-arrows-left-right:before{content:""}.fa-arrows-rotate:before,.fa-refresh:before,.fa-sync:before{content:""}.fa-arrows-up-down:before,.fa-arrows-v:before{content:""}.fa-arrows-up-down-left-right:before,.fa-arrows:before{content:""}.fa-asterisk:before{content:"*"}.fa-at:before{content:"@"}.fa-atom:before{content:""}.fa-audio-description:before{content:""}.fa-austral-sign:before{content:""}.fa-award:before{content:""}.fa-b:before{content:"B"}.fa-baby:before{content:""}.fa-baby-carriage:before,.fa-carriage-baby:before{content:""}.fa-backward:before{content:""}.fa-backward-fast:before,.fa-fast-backward:before{content:""}.fa-backward-step:before,.fa-step-backward:before{content:""}.fa-bacon:before{content:""}.fa-bacteria:before{content:""}.fa-bacterium:before{content:""}.fa-bag-shopping:before,.fa-shopping-bag:before{content:""}.fa-bahai:before{content:""}.fa-baht-sign:before{content:""}.fa-ban:before,.fa-cancel:before{content:""}.fa-ban-smoking:before,.fa-smoking-ban:before{content:""}.fa-band-aid:before,.fa-bandage:before{content:""}.fa-barcode:before{content:""}.fa-bars:before,.fa-navicon:before{content:""}.fa-bars-progress:before,.fa-tasks-alt:before{content:""}.fa-bars-staggered:before,.fa-reorder:before,.fa-stream:before{content:""}.fa-baseball-ball:before,.fa-baseball:before{content:""}.fa-baseball-bat-ball:before{content:""}.fa-basket-shopping:before,.fa-shopping-basket:before{content:""}.fa-basketball-ball:before,.fa-basketball:before{content:""}.fa-bath:before,.fa-bathtub:before{content:""}.fa-battery-0:before,.fa-battery-empty:before{content:""}.fa-battery-5:before,.fa-battery-full:before,.fa-battery:before{content:""}.fa-battery-3:before,.fa-battery-half:before{content:""}.fa-battery-2:before,.fa-battery-quarter:before{content:""}.fa-battery-4:before,.fa-battery-three-quarters:before{content:""}.fa-bed:before{content:""}.fa-bed-pulse:before,.fa-procedures:before{content:""}.fa-beer-mug-empty:before,.fa-beer:before{content:""}.fa-bell:before{content:""}.fa-bell-concierge:before,.fa-concierge-bell:before{content:""}.fa-bell-slash:before{content:""}.fa-bezier-curve:before{content:""}.fa-bicycle:before{content:""}.fa-binoculars:before{content:""}.fa-biohazard:before{content:""}.fa-bitcoin-sign:before{content:""}.fa-blender:before{content:""}.fa-blender-phone:before{content:""}.fa-blog:before{content:""}.fa-bold:before{content:""}.fa-bolt:before,.fa-zap:before{content:""}.fa-bolt-lightning:before{content:""}.fa-bomb:before{content:""}.fa-bone:before{content:""}.fa-bong:before{content:""}.fa-book:before{content:""}.fa-atlas:before,.fa-book-atlas:before{content:""}.fa-bible:before,.fa-book-bible:before{content:""}.fa-book-journal-whills:before,.fa-journal-whills:before{content:""}.fa-book-medical:before{content:""}.fa-book-open:before{content:""}.fa-book-open-reader:before,.fa-book-reader:before{content:""}.fa-book-quran:before,.fa-quran:before{content:""}.fa-book-dead:before,.fa-book-skull:before{content:""}.fa-bookmark:before{content:""}.fa-border-all:before{content:""}.fa-border-none:before{content:""}.fa-border-style:before,.fa-border-top-left:before{content:""}.fa-bowling-ball:before{content:""}.fa-box:before{content:""}.fa-archive:before,.fa-box-archive:before{content:""}.fa-box-open:before{content:""}.fa-box-tissue:before{content:""}.fa-boxes-alt:before,.fa-boxes-stacked:before,.fa-boxes:before{content:""}.fa-braille:before{content:""}.fa-brain:before{content:""}.fa-brazilian-real-sign:before{content:""}.fa-bread-slice:before{content:""}.fa-briefcase:before{content:""}.fa-briefcase-medical:before{content:""}.fa-broom:before{content:""}.fa-broom-ball:before,.fa-quidditch-broom-ball:before,.fa-quidditch:before{content:""}.fa-brush:before{content:""}.fa-bug:before{content:""}.fa-bug-slash:before{content:""}.fa-building:before{content:""}.fa-bank:before,.fa-building-columns:before,.fa-institution:before,.fa-museum:before,.fa-university:before{content:""}.fa-bullhorn:before{content:""}.fa-bullseye:before{content:""}.fa-burger:before,.fa-hamburger:before{content:""}.fa-bus:before{content:""}.fa-bus-alt:before,.fa-bus-simple:before{content:""}.fa-briefcase-clock:before,.fa-business-time:before{content:""}.fa-c:before{content:"C"}.fa-birthday-cake:before,.fa-cake-candles:before,.fa-cake:before{content:""}.fa-calculator:before{content:""}.fa-calendar:before{content:""}.fa-calendar-check:before{content:""}.fa-calendar-day:before{content:""}.fa-calendar-alt:before,.fa-calendar-days:before{content:""}.fa-calendar-minus:before{content:""}.fa-calendar-plus:before{content:""}.fa-calendar-week:before{content:""}.fa-calendar-times:before,.fa-calendar-xmark:before{content:""}.fa-camera-alt:before,.fa-camera:before{content:""}.fa-camera-retro:before{content:""}.fa-camera-rotate:before{content:""}.fa-campground:before{content:""}.fa-candy-cane:before{content:""}.fa-cannabis:before{content:""}.fa-capsules:before{content:""}.fa-automobile:before,.fa-car:before{content:""}.fa-battery-car:before,.fa-car-battery:before{content:""}.fa-car-crash:before{content:""}.fa-car-alt:before,.fa-car-rear:before{content:""}.fa-car-side:before{content:""}.fa-caravan:before{content:""}.fa-caret-down:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-caret-up:before{content:""}.fa-carrot:before{content:""}.fa-cart-arrow-down:before{content:""}.fa-cart-flatbed:before,.fa-dolly-flatbed:before{content:""}.fa-cart-flatbed-suitcase:before,.fa-luggage-cart:before{content:""}.fa-cart-plus:before{content:""}.fa-cart-shopping:before,.fa-shopping-cart:before{content:""}.fa-cash-register:before{content:""}.fa-cat:before{content:""}.fa-cedi-sign:before{content:""}.fa-cent-sign:before{content:""}.fa-certificate:before{content:""}.fa-chair:before{content:""}.fa-blackboard:before,.fa-chalkboard:before{content:""}.fa-chalkboard-teacher:before,.fa-chalkboard-user:before{content:""}.fa-champagne-glasses:before,.fa-glass-cheers:before{content:""}.fa-charging-station:before{content:""}.fa-area-chart:before,.fa-chart-area:before{content:""}.fa-bar-chart:before,.fa-chart-bar:before{content:""}.fa-chart-column:before{content:""}.fa-chart-gantt:before{content:""}.fa-chart-line:before,.fa-line-chart:before{content:""}.fa-chart-pie:before,.fa-pie-chart:before{content:""}.fa-check:before{content:""}.fa-check-double:before{content:""}.fa-check-to-slot:before,.fa-vote-yea:before{content:""}.fa-cheese:before{content:""}.fa-chess:before{content:""}.fa-chess-bishop:before{content:""}.fa-chess-board:before{content:""}.fa-chess-king:before{content:""}.fa-chess-knight:before{content:""}.fa-chess-pawn:before{content:""}.fa-chess-queen:before{content:""}.fa-chess-rook:before{content:""}.fa-chevron-down:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-chevron-up:before{content:""}.fa-child:before{content:""}.fa-church:before{content:""}.fa-circle:before{content:""}.fa-arrow-circle-down:before,.fa-circle-arrow-down:before{content:""}.fa-arrow-circle-left:before,.fa-circle-arrow-left:before{content:""}.fa-arrow-circle-right:before,.fa-circle-arrow-right:before{content:""}.fa-arrow-circle-up:before,.fa-circle-arrow-up:before{content:""}.fa-check-circle:before,.fa-circle-check:before{content:""}.fa-chevron-circle-down:before,.fa-circle-chevron-down:before{content:""}.fa-chevron-circle-left:before,.fa-circle-chevron-left:before{content:""}.fa-chevron-circle-right:before,.fa-circle-chevron-right:before{content:""}.fa-chevron-circle-up:before,.fa-circle-chevron-up:before{content:""}.fa-circle-dollar-to-slot:before,.fa-donate:before{content:""}.fa-circle-dot:before,.fa-dot-circle:before{content:""}.fa-arrow-alt-circle-down:before,.fa-circle-down:before{content:""}.fa-circle-exclamation:before,.fa-exclamation-circle:before{content:""}.fa-circle-h:before,.fa-hospital-symbol:before{content:""}.fa-adjust:before,.fa-circle-half-stroke:before{content:""}.fa-circle-info:before,.fa-info-circle:before{content:""}.fa-arrow-alt-circle-left:before,.fa-circle-left:before{content:""}.fa-circle-minus:before,.fa-minus-circle:before{content:""}.fa-circle-notch:before{content:""}.fa-circle-pause:before,.fa-pause-circle:before{content:""}.fa-circle-play:before,.fa-play-circle:before{content:""}.fa-circle-plus:before,.fa-plus-circle:before{content:""}.fa-circle-question:before,.fa-question-circle:before{content:""}.fa-circle-radiation:before,.fa-radiation-alt:before{content:""}.fa-arrow-alt-circle-right:before,.fa-circle-right:before{content:""}.fa-circle-stop:before,.fa-stop-circle:before{content:""}.fa-arrow-alt-circle-up:before,.fa-circle-up:before{content:""}.fa-circle-user:before,.fa-user-circle:before{content:""}.fa-circle-xmark:before,.fa-times-circle:before,.fa-xmark-circle:before{content:""}.fa-city:before{content:""}.fa-clapperboard:before{content:""}.fa-clipboard:before{content:""}.fa-clipboard-check:before{content:""}.fa-clipboard-list:before{content:""}.fa-clock-four:before,.fa-clock:before{content:""}.fa-clock-rotate-left:before,.fa-history:before{content:""}.fa-clone:before{content:""}.fa-closed-captioning:before{content:""}.fa-cloud:before{content:""}.fa-cloud-arrow-down:before,.fa-cloud-download-alt:before,.fa-cloud-download:before{content:""}.fa-cloud-arrow-up:before,.fa-cloud-upload-alt:before,.fa-cloud-upload:before{content:""}.fa-cloud-meatball:before{content:""}.fa-cloud-moon:before{content:""}.fa-cloud-moon-rain:before{content:""}.fa-cloud-rain:before{content:""}.fa-cloud-showers-heavy:before{content:""}.fa-cloud-sun:before{content:""}.fa-cloud-sun-rain:before{content:""}.fa-clover:before{content:""}.fa-code:before{content:""}.fa-code-branch:before{content:""}.fa-code-commit:before{content:""}.fa-code-compare:before{content:""}.fa-code-fork:before{content:""}.fa-code-merge:before{content:""}.fa-code-pull-request:before{content:""}.fa-coins:before{content:""}.fa-colon-sign:before{content:""}.fa-comment:before{content:""}.fa-comment-dollar:before{content:""}.fa-comment-dots:before,.fa-commenting:before{content:""}.fa-comment-medical:before{content:""}.fa-comment-slash:before{content:""}.fa-comment-sms:before,.fa-sms:before{content:""}.fa-comments:before{content:""}.fa-comments-dollar:before{content:""}.fa-compact-disc:before{content:""}.fa-compass:before{content:""}.fa-compass-drafting:before,.fa-drafting-compass:before{content:""}.fa-compress:before{content:""}.fa-computer-mouse:before,.fa-mouse:before{content:""}.fa-cookie:before{content:""}.fa-cookie-bite:before{content:""}.fa-copy:before{content:""}.fa-copyright:before{content:""}.fa-couch:before{content:""}.fa-credit-card-alt:before,.fa-credit-card:before{content:""}.fa-crop:before{content:""}.fa-crop-alt:before,.fa-crop-simple:before{content:""}.fa-cross:before{content:""}.fa-crosshairs:before{content:""}.fa-crow:before{content:""}.fa-crown:before{content:""}.fa-crutch:before{content:""}.fa-cruzeiro-sign:before{content:""}.fa-cube:before{content:""}.fa-cubes:before{content:""}.fa-d:before{content:"D"}.fa-database:before{content:""}.fa-backspace:before,.fa-delete-left:before{content:""}.fa-democrat:before{content:""}.fa-desktop-alt:before,.fa-desktop:before{content:""}.fa-dharmachakra:before{content:""}.fa-diagram-next:before{content:""}.fa-diagram-predecessor:before{content:""}.fa-diagram-project:before,.fa-project-diagram:before{content:""}.fa-diagram-successor:before{content:""}.fa-diamond:before{content:""}.fa-diamond-turn-right:before,.fa-directions:before{content:""}.fa-dice:before{content:""}.fa-dice-d20:before{content:""}.fa-dice-d6:before{content:""}.fa-dice-five:before{content:""}.fa-dice-four:before{content:""}.fa-dice-one:before{content:""}.fa-dice-six:before{content:""}.fa-dice-three:before{content:""}.fa-dice-two:before{content:""}.fa-disease:before{content:""}.fa-divide:before{content:""}.fa-dna:before{content:""}.fa-dog:before{content:""}.fa-dollar-sign:before,.fa-dollar:before,.fa-usd:before{content:"$"}.fa-dolly-box:before,.fa-dolly:before{content:""}.fa-dong-sign:before{content:""}.fa-door-closed:before{content:""}.fa-door-open:before{content:""}.fa-dove:before{content:""}.fa-compress-alt:before,.fa-down-left-and-up-right-to-center:before{content:""}.fa-down-long:before,.fa-long-arrow-alt-down:before{content:""}.fa-download:before{content:""}.fa-dragon:before{content:""}.fa-draw-polygon:before{content:""}.fa-droplet:before,.fa-tint:before{content:""}.fa-droplet-slash:before,.fa-tint-slash:before{content:""}.fa-drum:before{content:""}.fa-drum-steelpan:before{content:""}.fa-drumstick-bite:before{content:""}.fa-dumbbell:before{content:""}.fa-dumpster:before{content:""}.fa-dumpster-fire:before{content:""}.fa-dungeon:before{content:""}.fa-e:before{content:"E"}.fa-deaf:before,.fa-deafness:before,.fa-ear-deaf:before,.fa-hard-of-hearing:before{content:""}.fa-assistive-listening-systems:before,.fa-ear-listen:before{content:""}.fa-earth-africa:before,.fa-globe-africa:before{content:""}.fa-earth-america:before,.fa-earth-americas:before,.fa-earth:before,.fa-globe-americas:before{content:""}.fa-earth-asia:before,.fa-globe-asia:before{content:""}.fa-earth-europe:before,.fa-globe-europe:before{content:""}.fa-earth-oceania:before,.fa-globe-oceania:before{content:""}.fa-egg:before{content:""}.fa-eject:before{content:""}.fa-elevator:before{content:""}.fa-ellipsis-h:before,.fa-ellipsis:before{content:""}.fa-ellipsis-v:before,.fa-ellipsis-vertical:before{content:""}.fa-envelope:before{content:""}.fa-envelope-open:before{content:""}.fa-envelope-open-text:before{content:""}.fa-envelopes-bulk:before,.fa-mail-bulk:before{content:""}.fa-equals:before{content:"="}.fa-eraser:before{content:""}.fa-ethernet:before{content:""}.fa-eur:before,.fa-euro-sign:before,.fa-euro:before{content:""}.fa-exclamation:before{content:"!"}.fa-expand:before{content:""}.fa-eye:before{content:""}.fa-eye-dropper-empty:before,.fa-eye-dropper:before,.fa-eyedropper:before{content:""}.fa-eye-low-vision:before,.fa-low-vision:before{content:""}.fa-eye-slash:before{content:""}.fa-f:before{content:"F"}.fa-angry:before,.fa-face-angry:before{content:""}.fa-dizzy:before,.fa-face-dizzy:before{content:""}.fa-face-flushed:before,.fa-flushed:before{content:""}.fa-face-frown:before,.fa-frown:before{content:""}.fa-face-frown-open:before,.fa-frown-open:before{content:""}.fa-face-grimace:before,.fa-grimace:before{content:""}.fa-face-grin:before,.fa-grin:before{content:""}.fa-face-grin-beam:before,.fa-grin-beam:before{content:""}.fa-face-grin-beam-sweat:before,.fa-grin-beam-sweat:before{content:""}.fa-face-grin-hearts:before,.fa-grin-hearts:before{content:""}.fa-face-grin-squint:before,.fa-grin-squint:before{content:""}.fa-face-grin-squint-tears:before,.fa-grin-squint-tears:before{content:""}.fa-face-grin-stars:before,.fa-grin-stars:before{content:""}.fa-face-grin-tears:before,.fa-grin-tears:before{content:""}.fa-face-grin-tongue:before,.fa-grin-tongue:before{content:""}.fa-face-grin-tongue-squint:before,.fa-grin-tongue-squint:before{content:""}.fa-face-grin-tongue-wink:before,.fa-grin-tongue-wink:before{content:""}.fa-face-grin-wide:before,.fa-grin-alt:before{content:""}.fa-face-grin-wink:before,.fa-grin-wink:before{content:""}.fa-face-kiss:before,.fa-kiss:before{content:""}.fa-face-kiss-beam:before,.fa-kiss-beam:before{content:""}.fa-face-kiss-wink-heart:before,.fa-kiss-wink-heart:before{content:""}.fa-face-laugh:before,.fa-laugh:before{content:""}.fa-face-laugh-beam:before,.fa-laugh-beam:before{content:""}.fa-face-laugh-squint:before,.fa-laugh-squint:before{content:""}.fa-face-laugh-wink:before,.fa-laugh-wink:before{content:""}.fa-face-meh:before,.fa-meh:before{content:""}.fa-face-meh-blank:before,.fa-meh-blank:before{content:""}.fa-face-rolling-eyes:before,.fa-meh-rolling-eyes:before{content:""}.fa-face-sad-cry:before,.fa-sad-cry:before{content:""}.fa-face-sad-tear:before,.fa-sad-tear:before{content:""}.fa-face-smile:before,.fa-smile:before{content:""}.fa-face-smile-beam:before,.fa-smile-beam:before{content:""}.fa-face-smile-wink:before,.fa-smile-wink:before{content:""}.fa-face-surprise:before,.fa-surprise:before{content:""}.fa-face-tired:before,.fa-tired:before{content:""}.fa-fan:before{content:""}.fa-faucet:before{content:""}.fa-fax:before{content:""}.fa-feather:before{content:""}.fa-feather-alt:before,.fa-feather-pointed:before{content:""}.fa-file:before{content:""}.fa-file-arrow-down:before,.fa-file-download:before{content:""}.fa-file-arrow-up:before,.fa-file-upload:before{content:""}.fa-file-audio:before{content:""}.fa-file-code:before{content:""}.fa-file-contract:before{content:""}.fa-file-csv:before{content:""}.fa-file-excel:before{content:""}.fa-arrow-right-from-file:before,.fa-file-export:before{content:""}.fa-file-image:before{content:""}.fa-arrow-right-to-file:before,.fa-file-import:before{content:""}.fa-file-invoice:before{content:""}.fa-file-invoice-dollar:before{content:""}.fa-file-alt:before,.fa-file-lines:before,.fa-file-text:before{content:""}.fa-file-medical:before{content:""}.fa-file-pdf:before{content:""}.fa-file-powerpoint:before{content:""}.fa-file-prescription:before{content:""}.fa-file-signature:before{content:""}.fa-file-video:before{content:""}.fa-file-medical-alt:before,.fa-file-waveform:before{content:""}.fa-file-word:before{content:""}.fa-file-archive:before,.fa-file-zipper:before{content:""}.fa-fill:before{content:""}.fa-fill-drip:before{content:""}.fa-film:before{content:""}.fa-filter:before{content:""}.fa-filter-circle-dollar:before,.fa-funnel-dollar:before{content:""}.fa-filter-circle-xmark:before{content:""}.fa-fingerprint:before{content:""}.fa-fire:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-fire-alt:before,.fa-fire-flame-curved:before{content:""}.fa-burn:before,.fa-fire-flame-simple:before{content:""}.fa-fish:before{content:""}.fa-flag:before{content:""}.fa-flag-checkered:before{content:""}.fa-flag-usa:before{content:""}.fa-flask:before{content:""}.fa-floppy-disk:before,.fa-save:before{content:""}.fa-florin-sign:before{content:""}.fa-folder:before{content:""}.fa-folder-minus:before{content:""}.fa-folder-open:before{content:""}.fa-folder-plus:before{content:""}.fa-folder-tree:before{content:""}.fa-font:before{content:""}.fa-football-ball:before,.fa-football:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before,.fa-forward-fast:before{content:""}.fa-forward-step:before,.fa-step-forward:before{content:""}.fa-franc-sign:before{content:""}.fa-frog:before{content:""}.fa-futbol-ball:before,.fa-futbol:before,.fa-soccer-ball:before{content:""}.fa-g:before{content:"G"}.fa-gamepad:before{content:""}.fa-gas-pump:before{content:""}.fa-dashboard:before,.fa-gauge-med:before,.fa-gauge:before,.fa-tachometer-alt-average:before{content:""}.fa-gauge-high:before,.fa-tachometer-alt-fast:before,.fa-tachometer-alt:before{content:""}.fa-gauge-simple-med:before,.fa-gauge-simple:before,.fa-tachometer-average:before{content:""}.fa-gauge-simple-high:before,.fa-tachometer-fast:before,.fa-tachometer:before{content:""}.fa-gavel:before,.fa-legal:before{content:""}.fa-cog:before,.fa-gear:before{content:""}.fa-cogs:before,.fa-gears:before{content:""}.fa-gem:before{content:""}.fa-genderless:before{content:""}.fa-ghost:before{content:""}.fa-gift:before{content:""}.fa-gifts:before{content:""}.fa-glasses:before{content:""}.fa-globe:before{content:""}.fa-golf-ball-tee:before,.fa-golf-ball:before{content:""}.fa-gopuram:before{content:""}.fa-graduation-cap:before,.fa-mortar-board:before{content:""}.fa-greater-than:before{content:">"}.fa-greater-than-equal:before{content:""}.fa-grip-horizontal:before,.fa-grip:before{content:""}.fa-grip-lines:before{content:""}.fa-grip-lines-vertical:before{content:""}.fa-grip-vertical:before{content:""}.fa-guarani-sign:before{content:""}.fa-guitar:before{content:""}.fa-gun:before{content:""}.fa-h:before{content:"H"}.fa-hammer:before{content:""}.fa-hamsa:before{content:""}.fa-hand-paper:before,.fa-hand:before{content:""}.fa-hand-back-fist:before,.fa-hand-rock:before{content:""}.fa-allergies:before,.fa-hand-dots:before{content:""}.fa-fist-raised:before,.fa-hand-fist:before{content:""}.fa-hand-holding:before{content:""}.fa-hand-holding-dollar:before,.fa-hand-holding-usd:before{content:""}.fa-hand-holding-droplet:before,.fa-hand-holding-water:before{content:""}.fa-hand-holding-heart:before{content:""}.fa-hand-holding-medical:before{content:""}.fa-hand-lizard:before{content:""}.fa-hand-middle-finger:before{content:""}.fa-hand-peace:before{content:""}.fa-hand-point-down:before{content:""}.fa-hand-point-left:before{content:""}.fa-hand-point-right:before{content:""}.fa-hand-point-up:before{content:""}.fa-hand-pointer:before{content:""}.fa-hand-scissors:before{content:""}.fa-hand-sparkles:before{content:""}.fa-hand-spock:before{content:""}.fa-hands:before,.fa-sign-language:before,.fa-signing:before{content:""}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before,.fa-hands-american-sign-language-interpreting:before,.fa-hands-asl-interpreting:before{content:""}.fa-hands-bubbles:before,.fa-hands-wash:before{content:""}.fa-hands-clapping:before{content:""}.fa-hands-holding:before{content:""}.fa-hands-praying:before,.fa-praying-hands:before{content:""}.fa-handshake:before{content:""}.fa-hands-helping:before,.fa-handshake-angle:before{content:""}.fa-handshake-alt-slash:before,.fa-handshake-simple-slash:before{content:""}.fa-handshake-slash:before{content:""}.fa-hanukiah:before{content:""}.fa-hard-drive:before,.fa-hdd:before{content:""}.fa-hashtag:before{content:"#"}.fa-hat-cowboy:before{content:""}.fa-hat-cowboy-side:before{content:""}.fa-hat-wizard:before{content:""}.fa-head-side-cough:before{content:""}.fa-head-side-cough-slash:before{content:""}.fa-head-side-mask:before{content:""}.fa-head-side-virus:before{content:""}.fa-header:before,.fa-heading:before{content:""}.fa-headphones:before{content:""}.fa-headphones-alt:before,.fa-headphones-simple:before{content:""}.fa-headset:before{content:""}.fa-heart:before{content:""}.fa-heart-broken:before,.fa-heart-crack:before{content:""}.fa-heart-pulse:before,.fa-heartbeat:before{content:""}.fa-helicopter:before{content:""}.fa-hard-hat:before,.fa-hat-hard:before,.fa-helmet-safety:before{content:""}.fa-highlighter:before{content:""}.fa-hippo:before{content:""}.fa-hockey-puck:before{content:""}.fa-holly-berry:before{content:""}.fa-horse:before{content:""}.fa-horse-head:before{content:""}.fa-hospital-alt:before,.fa-hospital-wide:before,.fa-hospital:before{content:""}.fa-hospital-user:before{content:""}.fa-hot-tub-person:before,.fa-hot-tub:before{content:""}.fa-hotdog:before{content:""}.fa-hotel:before{content:""}.fa-hourglass-2:before,.fa-hourglass-half:before,.fa-hourglass:before{content:""}.fa-hourglass-empty:before{content:""}.fa-hourglass-3:before,.fa-hourglass-end:before{content:""}.fa-hourglass-1:before,.fa-hourglass-start:before{content:""}.fa-home-alt:before,.fa-home-lg-alt:before,.fa-home:before,.fa-house:before{content:""}.fa-home-lg:before,.fa-house-chimney:before{content:""}.fa-house-chimney-crack:before,.fa-house-damage:before{content:""}.fa-clinic-medical:before,.fa-house-chimney-medical:before{content:""}.fa-house-chimney-user:before{content:""}.fa-house-chimney-window:before{content:""}.fa-house-crack:before{content:""}.fa-house-laptop:before,.fa-laptop-house:before{content:""}.fa-house-medical:before{content:""}.fa-home-user:before,.fa-house-user:before{content:""}.fa-hryvnia-sign:before,.fa-hryvnia:before{content:""}.fa-i:before{content:"I"}.fa-i-cursor:before{content:""}.fa-ice-cream:before{content:""}.fa-icicles:before{content:""}.fa-heart-music-camera-bolt:before,.fa-icons:before{content:""}.fa-id-badge:before{content:""}.fa-drivers-license:before,.fa-id-card:before{content:""}.fa-id-card-alt:before,.fa-id-card-clip:before{content:""}.fa-igloo:before{content:""}.fa-image:before{content:""}.fa-image-portrait:before,.fa-portrait:before{content:""}.fa-images:before{content:""}.fa-inbox:before{content:""}.fa-indent:before{content:""}.fa-indian-rupee-sign:before,.fa-indian-rupee:before,.fa-inr:before{content:""}.fa-industry:before{content:""}.fa-infinity:before{content:""}.fa-info:before{content:""}.fa-italic:before{content:""}.fa-j:before{content:"J"}.fa-jedi:before{content:""}.fa-fighter-jet:before,.fa-jet-fighter:before{content:""}.fa-joint:before{content:""}.fa-k:before{content:"K"}.fa-kaaba:before{content:""}.fa-key:before{content:""}.fa-keyboard:before{content:""}.fa-khanda:before{content:""}.fa-kip-sign:before{content:""}.fa-first-aid:before,.fa-kit-medical:before{content:""}.fa-kiwi-bird:before{content:""}.fa-l:before{content:"L"}.fa-landmark:before{content:""}.fa-language:before{content:""}.fa-laptop:before{content:""}.fa-laptop-code:before{content:""}.fa-laptop-medical:before{content:""}.fa-lari-sign:before{content:""}.fa-layer-group:before{content:""}.fa-leaf:before{content:""}.fa-left-long:before,.fa-long-arrow-alt-left:before{content:""}.fa-arrows-alt-h:before,.fa-left-right:before{content:""}.fa-lemon:before{content:""}.fa-less-than:before{content:"<"}.fa-less-than-equal:before{content:""}.fa-life-ring:before{content:""}.fa-lightbulb:before{content:""}.fa-chain:before,.fa-link:before{content:""}.fa-chain-broken:before,.fa-chain-slash:before,.fa-link-slash:before,.fa-unlink:before{content:""}.fa-lira-sign:before{content:""}.fa-list-squares:before,.fa-list:before{content:""}.fa-list-check:before,.fa-tasks:before{content:""}.fa-list-1-2:before,.fa-list-numeric:before,.fa-list-ol:before{content:""}.fa-list-dots:before,.fa-list-ul:before{content:""}.fa-litecoin-sign:before{content:""}.fa-location-arrow:before{content:""}.fa-location-crosshairs:before,.fa-location:before{content:""}.fa-location-dot:before,.fa-map-marker-alt:before{content:""}.fa-location-pin:before,.fa-map-marker:before{content:""}.fa-lock:before{content:""}.fa-lock-open:before{content:""}.fa-lungs:before{content:""}.fa-lungs-virus:before{content:""}.fa-m:before{content:"M"}.fa-magnet:before{content:""}.fa-magnifying-glass:before,.fa-search:before{content:""}.fa-magnifying-glass-dollar:before,.fa-search-dollar:before{content:""}.fa-magnifying-glass-location:before,.fa-search-location:before{content:""}.fa-magnifying-glass-minus:before,.fa-search-minus:before{content:""}.fa-magnifying-glass-plus:before,.fa-search-plus:before{content:""}.fa-manat-sign:before{content:""}.fa-map:before{content:""}.fa-map-location:before,.fa-map-marked:before{content:""}.fa-map-location-dot:before,.fa-map-marked-alt:before{content:""}.fa-map-pin:before{content:""}.fa-marker:before{content:""}.fa-mars:before{content:""}.fa-mars-and-venus:before{content:""}.fa-mars-double:before{content:""}.fa-mars-stroke:before{content:""}.fa-mars-stroke-h:before,.fa-mars-stroke-right:before{content:""}.fa-mars-stroke-up:before,.fa-mars-stroke-v:before{content:""}.fa-glass-martini-alt:before,.fa-martini-glass:before{content:""}.fa-cocktail:before,.fa-martini-glass-citrus:before{content:""}.fa-glass-martini:before,.fa-martini-glass-empty:before{content:""}.fa-mask:before{content:""}.fa-mask-face:before{content:""}.fa-masks-theater:before,.fa-theater-masks:before{content:""}.fa-expand-arrows-alt:before,.fa-maximize:before{content:""}.fa-medal:before{content:""}.fa-memory:before{content:""}.fa-menorah:before{content:""}.fa-mercury:before{content:""}.fa-comment-alt:before,.fa-message:before{content:""}.fa-meteor:before{content:""}.fa-microchip:before{content:""}.fa-microphone:before{content:""}.fa-microphone-alt:before,.fa-microphone-lines:before{content:""}.fa-microphone-alt-slash:before,.fa-microphone-lines-slash:before{content:""}.fa-microphone-slash:before{content:""}.fa-microscope:before{content:""}.fa-mill-sign:before{content:""}.fa-compress-arrows-alt:before,.fa-minimize:before{content:""}.fa-minus:before,.fa-subtract:before{content:""}.fa-mitten:before{content:""}.fa-mobile-android:before,.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-mobile-button:before{content:""}.fa-mobile-alt:before,.fa-mobile-screen-button:before{content:""}.fa-money-bill:before{content:""}.fa-money-bill-1:before,.fa-money-bill-alt:before{content:""}.fa-money-bill-1-wave:before,.fa-money-bill-wave-alt:before{content:""}.fa-money-bill-wave:before{content:""}.fa-money-check:before{content:""}.fa-money-check-alt:before,.fa-money-check-dollar:before{content:""}.fa-monument:before{content:""}.fa-moon:before{content:""}.fa-mortar-pestle:before{content:""}.fa-mosque:before{content:""}.fa-motorcycle:before{content:""}.fa-mountain:before{content:""}.fa-mug-hot:before{content:""}.fa-coffee:before,.fa-mug-saucer:before{content:""}.fa-music:before{content:""}.fa-n:before{content:"N"}.fa-naira-sign:before{content:""}.fa-network-wired:before{content:""}.fa-neuter:before{content:""}.fa-newspaper:before{content:""}.fa-not-equal:before{content:""}.fa-note-sticky:before,.fa-sticky-note:before{content:""}.fa-notes-medical:before{content:""}.fa-o:before{content:"O"}.fa-object-group:before{content:""}.fa-object-ungroup:before{content:""}.fa-oil-can:before{content:""}.fa-om:before{content:""}.fa-otter:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-p:before{content:"P"}.fa-pager:before{content:""}.fa-paint-roller:before{content:""}.fa-paint-brush:before,.fa-paintbrush:before{content:""}.fa-palette:before{content:""}.fa-pallet:before{content:""}.fa-panorama:before{content:""}.fa-paper-plane:before{content:""}.fa-paperclip:before{content:""}.fa-parachute-box:before{content:""}.fa-paragraph:before{content:""}.fa-passport:before{content:""}.fa-file-clipboard:before,.fa-paste:before{content:""}.fa-pause:before{content:""}.fa-paw:before{content:""}.fa-peace:before{content:""}.fa-pen:before{content:""}.fa-pen-alt:before,.fa-pen-clip:before{content:""}.fa-pen-fancy:before{content:""}.fa-pen-nib:before{content:""}.fa-pen-ruler:before,.fa-pencil-ruler:before{content:""}.fa-edit:before,.fa-pen-to-square:before{content:""}.fa-pencil-alt:before,.fa-pencil:before{content:""}.fa-people-arrows-left-right:before,.fa-people-arrows:before{content:""}.fa-people-carry-box:before,.fa-people-carry:before{content:""}.fa-pepper-hot:before{content:""}.fa-percent:before,.fa-percentage:before{content:"%"}.fa-male:before,.fa-person:before{content:""}.fa-biking:before,.fa-person-biking:before{content:""}.fa-person-booth:before{content:""}.fa-diagnoses:before,.fa-person-dots-from-line:before{content:""}.fa-female:before,.fa-person-dress:before{content:""}.fa-hiking:before,.fa-person-hiking:before{content:""}.fa-person-praying:before,.fa-pray:before{content:""}.fa-person-running:before,.fa-running:before{content:""}.fa-person-skating:before,.fa-skating:before{content:""}.fa-person-skiing:before,.fa-skiing:before{content:""}.fa-person-skiing-nordic:before,.fa-skiing-nordic:before{content:""}.fa-person-snowboarding:before,.fa-snowboarding:before{content:""}.fa-person-swimming:before,.fa-swimmer:before{content:""}.fa-person-walking:before,.fa-walking:before{content:""}.fa-blind:before,.fa-person-walking-with-cane:before{content:""}.fa-peseta-sign:before{content:""}.fa-peso-sign:before{content:""}.fa-phone:before{content:""}.fa-phone-alt:before,.fa-phone-flip:before{content:""}.fa-phone-slash:before{content:""}.fa-phone-volume:before,.fa-volume-control-phone:before{content:""}.fa-photo-film:before,.fa-photo-video:before{content:""}.fa-piggy-bank:before{content:""}.fa-pills:before{content:""}.fa-pizza-slice:before{content:""}.fa-place-of-worship:before{content:""}.fa-plane:before{content:""}.fa-plane-arrival:before{content:""}.fa-plane-departure:before{content:""}.fa-plane-slash:before{content:""}.fa-play:before{content:""}.fa-plug:before{content:""}.fa-add:before,.fa-plus:before{content:"+"}.fa-plus-minus:before{content:""}.fa-podcast:before{content:""}.fa-poo:before{content:""}.fa-poo-bolt:before,.fa-poo-storm:before{content:""}.fa-poop:before{content:""}.fa-power-off:before{content:""}.fa-prescription:before{content:""}.fa-prescription-bottle:before{content:""}.fa-prescription-bottle-alt:before,.fa-prescription-bottle-medical:before{content:""}.fa-print:before{content:""}.fa-pump-medical:before{content:""}.fa-pump-soap:before{content:""}.fa-puzzle-piece:before{content:""}.fa-q:before{content:"Q"}.fa-qrcode:before{content:""}.fa-question:before{content:"?"}.fa-quote-left-alt:before,.fa-quote-left:before{content:""}.fa-quote-right-alt:before,.fa-quote-right:before{content:""}.fa-r:before{content:"R"}.fa-radiation:before{content:""}.fa-rainbow:before{content:""}.fa-receipt:before{content:""}.fa-record-vinyl:before{content:""}.fa-ad:before,.fa-rectangle-ad:before{content:""}.fa-list-alt:before,.fa-rectangle-list:before{content:""}.fa-rectangle-times:before,.fa-rectangle-xmark:before,.fa-times-rectangle:before,.fa-window-close:before{content:""}.fa-recycle:before{content:""}.fa-registered:before{content:""}.fa-repeat:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-mail-reply-all:before,.fa-reply-all:before{content:""}.fa-republican:before{content:""}.fa-restroom:before{content:""}.fa-retweet:before{content:""}.fa-ribbon:before{content:""}.fa-right-from-bracket:before,.fa-sign-out-alt:before{content:""}.fa-exchange-alt:before,.fa-right-left:before{content:""}.fa-long-arrow-alt-right:before,.fa-right-long:before{content:""}.fa-right-to-bracket:before,.fa-sign-in-alt:before{content:""}.fa-ring:before{content:""}.fa-road:before{content:""}.fa-robot:before{content:""}.fa-rocket:before{content:""}.fa-rotate:before,.fa-sync-alt:before{content:""}.fa-rotate-back:before,.fa-rotate-backward:before,.fa-rotate-left:before,.fa-undo-alt:before{content:""}.fa-redo-alt:before,.fa-rotate-forward:before,.fa-rotate-right:before{content:""}.fa-route:before{content:""}.fa-feed:before,.fa-rss:before{content:""}.fa-rouble:before,.fa-rub:before,.fa-ruble-sign:before,.fa-ruble:before{content:""}.fa-ruler:before{content:""}.fa-ruler-combined:before{content:""}.fa-ruler-horizontal:before{content:""}.fa-ruler-vertical:before{content:""}.fa-rupee-sign:before,.fa-rupee:before{content:""}.fa-rupiah-sign:before{content:""}.fa-s:before{content:"S"}.fa-sailboat:before{content:""}.fa-satellite:before{content:""}.fa-satellite-dish:before{content:""}.fa-balance-scale:before,.fa-scale-balanced:before{content:""}.fa-balance-scale-left:before,.fa-scale-unbalanced:before{content:""}.fa-balance-scale-right:before,.fa-scale-unbalanced-flip:before{content:""}.fa-school:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-screwdriver:before{content:""}.fa-screwdriver-wrench:before,.fa-tools:before{content:""}.fa-scroll:before{content:""}.fa-scroll-torah:before,.fa-torah:before{content:""}.fa-sd-card:before{content:""}.fa-section:before{content:""}.fa-seedling:before,.fa-sprout:before{content:""}.fa-server:before{content:""}.fa-shapes:before,.fa-triangle-circle-square:before{content:""}.fa-arrow-turn-right:before,.fa-mail-forward:before,.fa-share:before{content:""}.fa-share-from-square:before,.fa-share-square:before{content:""}.fa-share-alt:before,.fa-share-nodes:before{content:""}.fa-ils:before,.fa-shekel-sign:before,.fa-shekel:before,.fa-sheqel-sign:before,.fa-sheqel:before{content:""}.fa-shield:before{content:""}.fa-shield-alt:before,.fa-shield-blank:before{content:""}.fa-shield-virus:before{content:""}.fa-ship:before{content:""}.fa-shirt:before,.fa-t-shirt:before,.fa-tshirt:before{content:""}.fa-shoe-prints:before{content:""}.fa-shop:before,.fa-store-alt:before{content:""}.fa-shop-slash:before,.fa-store-alt-slash:before{content:""}.fa-shower:before{content:""}.fa-shrimp:before{content:""}.fa-random:before,.fa-shuffle:before{content:""}.fa-shuttle-space:before,.fa-space-shuttle:before{content:""}.fa-sign-hanging:before,.fa-sign:before{content:""}.fa-signal-5:before,.fa-signal-perfect:before,.fa-signal:before{content:""}.fa-signature:before{content:""}.fa-map-signs:before,.fa-signs-post:before{content:""}.fa-sim-card:before{content:""}.fa-sink:before{content:""}.fa-sitemap:before{content:""}.fa-skull:before{content:""}.fa-skull-crossbones:before{content:""}.fa-slash:before{content:""}.fa-sleigh:before{content:""}.fa-sliders-h:before,.fa-sliders:before{content:""}.fa-smog:before{content:""}.fa-smoking:before{content:""}.fa-snowflake:before{content:""}.fa-snowman:before{content:""}.fa-snowplow:before{content:""}.fa-soap:before{content:""}.fa-socks:before{content:""}.fa-solar-panel:before{content:""}.fa-sort:before,.fa-unsorted:before{content:""}.fa-sort-desc:before,.fa-sort-down:before{content:""}.fa-sort-asc:before,.fa-sort-up:before{content:""}.fa-spa:before{content:""}.fa-pastafarianism:before,.fa-spaghetti-monster-flying:before{content:""}.fa-spell-check:before{content:""}.fa-spider:before{content:""}.fa-spinner:before{content:""}.fa-splotch:before{content:""}.fa-spoon:before,.fa-utensil-spoon:before{content:""}.fa-spray-can:before{content:""}.fa-air-freshener:before,.fa-spray-can-sparkles:before{content:""}.fa-square:before{content:""}.fa-external-link-square:before,.fa-square-arrow-up-right:before{content:""}.fa-caret-square-down:before,.fa-square-caret-down:before{content:""}.fa-caret-square-left:before,.fa-square-caret-left:before{content:""}.fa-caret-square-right:before,.fa-square-caret-right:before{content:""}.fa-caret-square-up:before,.fa-square-caret-up:before{content:""}.fa-check-square:before,.fa-square-check:before{content:""}.fa-envelope-square:before,.fa-square-envelope:before{content:""}.fa-square-full:before{content:""}.fa-h-square:before,.fa-square-h:before{content:""}.fa-minus-square:before,.fa-square-minus:before{content:""}.fa-parking:before,.fa-square-parking:before{content:""}.fa-pen-square:before,.fa-pencil-square:before,.fa-square-pen:before{content:""}.fa-phone-square:before,.fa-square-phone:before{content:""}.fa-phone-square-alt:before,.fa-square-phone-flip:before{content:""}.fa-plus-square:before,.fa-square-plus:before{content:""}.fa-poll-h:before,.fa-square-poll-horizontal:before{content:""}.fa-poll:before,.fa-square-poll-vertical:before{content:""}.fa-square-root-alt:before,.fa-square-root-variable:before{content:""}.fa-rss-square:before,.fa-square-rss:before{content:""}.fa-share-alt-square:before,.fa-square-share-nodes:before{content:""}.fa-external-link-square-alt:before,.fa-square-up-right:before{content:""}.fa-square-xmark:before,.fa-times-square:before,.fa-xmark-square:before{content:""}.fa-stairs:before{content:""}.fa-stamp:before{content:""}.fa-star:before{content:""}.fa-star-and-crescent:before{content:""}.fa-star-half:before{content:""}.fa-star-half-alt:before,.fa-star-half-stroke:before{content:""}.fa-star-of-david:before{content:""}.fa-star-of-life:before{content:""}.fa-gbp:before,.fa-pound-sign:before,.fa-sterling-sign:before{content:""}.fa-stethoscope:before{content:""}.fa-stop:before{content:""}.fa-stopwatch:before{content:""}.fa-stopwatch-20:before{content:""}.fa-store:before{content:""}.fa-store-slash:before{content:""}.fa-street-view:before{content:""}.fa-strikethrough:before{content:""}.fa-stroopwafel:before{content:""}.fa-subscript:before{content:""}.fa-suitcase:before{content:""}.fa-medkit:before,.fa-suitcase-medical:before{content:""}.fa-suitcase-rolling:before{content:""}.fa-sun:before{content:""}.fa-superscript:before{content:""}.fa-swatchbook:before{content:""}.fa-synagogue:before{content:""}.fa-syringe:before{content:""}.fa-t:before{content:"T"}.fa-table:before{content:""}.fa-table-cells:before,.fa-th:before{content:""}.fa-table-cells-large:before,.fa-th-large:before{content:""}.fa-columns:before,.fa-table-columns:before{content:""}.fa-table-list:before,.fa-th-list:before{content:""}.fa-ping-pong-paddle-ball:before,.fa-table-tennis-paddle-ball:before,.fa-table-tennis:before{content:""}.fa-tablet-android:before,.fa-tablet:before{content:""}.fa-tablet-button:before{content:""}.fa-tablet-alt:before,.fa-tablet-screen-button:before{content:""}.fa-tablets:before{content:""}.fa-digital-tachograph:before,.fa-tachograph-digital:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-tape:before{content:""}.fa-cab:before,.fa-taxi:before{content:""}.fa-teeth:before{content:""}.fa-teeth-open:before{content:""}.fa-temperature-0:before,.fa-temperature-empty:before,.fa-thermometer-0:before,.fa-thermometer-empty:before{content:""}.fa-temperature-4:before,.fa-temperature-full:before,.fa-thermometer-4:before,.fa-thermometer-full:before{content:""}.fa-temperature-2:before,.fa-temperature-half:before,.fa-thermometer-2:before,.fa-thermometer-half:before{content:""}.fa-temperature-high:before{content:""}.fa-temperature-low:before{content:""}.fa-temperature-1:before,.fa-temperature-quarter:before,.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:""}.fa-temperature-3:before,.fa-temperature-three-quarters:before,.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:""}.fa-tenge-sign:before,.fa-tenge:before{content:""}.fa-terminal:before{content:""}.fa-text-height:before{content:""}.fa-remove-format:before,.fa-text-slash:before{content:""}.fa-text-width:before{content:""}.fa-thermometer:before{content:""}.fa-thumbs-down:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumb-tack:before,.fa-thumbtack:before{content:""}.fa-ticket:before{content:""}.fa-ticket-alt:before,.fa-ticket-simple:before{content:""}.fa-timeline:before{content:""}.fa-toggle-off:before{content:""}.fa-toggle-on:before{content:""}.fa-toilet:before{content:""}.fa-toilet-paper:before{content:""}.fa-toilet-paper-slash:before{content:""}.fa-toolbox:before{content:""}.fa-tooth:before{content:""}.fa-torii-gate:before{content:""}.fa-broadcast-tower:before,.fa-tower-broadcast:before{content:""}.fa-tractor:before{content:""}.fa-trademark:before{content:""}.fa-traffic-light:before{content:""}.fa-trailer:before{content:""}.fa-train:before{content:""}.fa-subway:before,.fa-train-subway:before{content:""}.fa-train-tram:before,.fa-tram:before{content:""}.fa-transgender-alt:before,.fa-transgender:before{content:""}.fa-trash:before{content:""}.fa-trash-arrow-up:before,.fa-trash-restore:before{content:""}.fa-trash-alt:before,.fa-trash-can:before{content:""}.fa-trash-can-arrow-up:before,.fa-trash-restore-alt:before{content:""}.fa-tree:before{content:""}.fa-exclamation-triangle:before,.fa-triangle-exclamation:before,.fa-warning:before{content:""}.fa-trophy:before{content:""}.fa-truck:before{content:""}.fa-shipping-fast:before,.fa-truck-fast:before{content:""}.fa-ambulance:before,.fa-truck-medical:before{content:""}.fa-truck-monster:before{content:""}.fa-truck-moving:before{content:""}.fa-truck-pickup:before{content:""}.fa-truck-loading:before,.fa-truck-ramp-box:before{content:""}.fa-teletype:before,.fa-tty:before{content:""}.fa-try:before,.fa-turkish-lira-sign:before,.fa-turkish-lira:before{content:""}.fa-level-down-alt:before,.fa-turn-down:before{content:""}.fa-level-up-alt:before,.fa-turn-up:before{content:""}.fa-television:before,.fa-tv-alt:before,.fa-tv:before{content:""}.fa-u:before{content:"U"}.fa-umbrella:before{content:""}.fa-umbrella-beach:before{content:""}.fa-underline:before{content:""}.fa-universal-access:before{content:""}.fa-unlock:before{content:""}.fa-unlock-alt:before,.fa-unlock-keyhole:before{content:""}.fa-arrows-alt-v:before,.fa-up-down:before{content:""}.fa-arrows-alt:before,.fa-up-down-left-right:before{content:""}.fa-long-arrow-alt-up:before,.fa-up-long:before{content:""}.fa-expand-alt:before,.fa-up-right-and-down-left-from-center:before{content:""}.fa-external-link-alt:before,.fa-up-right-from-square:before{content:""}.fa-upload:before{content:""}.fa-user:before{content:""}.fa-user-astronaut:before{content:""}.fa-user-check:before{content:""}.fa-user-clock:before{content:""}.fa-user-doctor:before,.fa-user-md:before{content:""}.fa-user-cog:before,.fa-user-gear:before{content:""}.fa-user-graduate:before{content:""}.fa-user-friends:before,.fa-user-group:before{content:""}.fa-user-injured:before{content:""}.fa-user-alt:before,.fa-user-large:before{content:""}.fa-user-alt-slash:before,.fa-user-large-slash:before{content:""}.fa-user-lock:before{content:""}.fa-user-minus:before{content:""}.fa-user-ninja:before{content:""}.fa-user-nurse:before{content:""}.fa-user-edit:before,.fa-user-pen:before{content:""}.fa-user-plus:before{content:""}.fa-user-secret:before{content:""}.fa-user-shield:before{content:""}.fa-user-slash:before{content:""}.fa-user-tag:before{content:""}.fa-user-tie:before{content:""}.fa-user-times:before,.fa-user-xmark:before{content:""}.fa-users:before{content:""}.fa-users-cog:before,.fa-users-gear:before{content:""}.fa-users-slash:before{content:""}.fa-cutlery:before,.fa-utensils:before{content:""}.fa-v:before{content:"V"}.fa-shuttle-van:before,.fa-van-shuttle:before{content:""}.fa-vault:before{content:""}.fa-vector-square:before{content:""}.fa-venus:before{content:""}.fa-venus-double:before{content:""}.fa-venus-mars:before{content:""}.fa-vest:before{content:""}.fa-vest-patches:before{content:""}.fa-vial:before{content:""}.fa-vials:before{content:""}.fa-video-camera:before,.fa-video:before{content:""}.fa-video-slash:before{content:""}.fa-vihara:before{content:""}.fa-virus:before{content:""}.fa-virus-covid:before{content:""}.fa-virus-covid-slash:before{content:""}.fa-virus-slash:before{content:""}.fa-viruses:before{content:""}.fa-voicemail:before{content:""}.fa-volleyball-ball:before,.fa-volleyball:before{content:""}.fa-volume-high:before,.fa-volume-up:before{content:""}.fa-volume-down:before,.fa-volume-low:before{content:""}.fa-volume-off:before{content:""}.fa-volume-mute:before,.fa-volume-times:before,.fa-volume-xmark:before{content:""}.fa-vr-cardboard:before{content:""}.fa-w:before{content:"W"}.fa-wallet:before{content:""}.fa-magic:before,.fa-wand-magic:before{content:""}.fa-magic-wand-sparkles:before,.fa-wand-magic-sparkles:before{content:""}.fa-wand-sparkles:before{content:""}.fa-warehouse:before{content:""}.fa-water:before{content:""}.fa-ladder-water:before,.fa-swimming-pool:before,.fa-water-ladder:before{content:""}.fa-wave-square:before{content:""}.fa-weight-hanging:before{content:""}.fa-weight-scale:before,.fa-weight:before{content:""}.fa-wheelchair:before{content:""}.fa-glass-whiskey:before,.fa-whiskey-glass:before{content:""}.fa-wifi-3:before,.fa-wifi-strong:before,.fa-wifi:before{content:""}.fa-wind:before{content:""}.fa-window-maximize:before{content:""}.fa-window-minimize:before{content:""}.fa-window-restore:before{content:""}.fa-wine-bottle:before{content:""}.fa-wine-glass:before{content:""}.fa-wine-glass-alt:before,.fa-wine-glass-empty:before{content:""}.fa-krw:before,.fa-won-sign:before,.fa-won:before{content:""}.fa-wrench:before{content:""}.fa-x:before{content:"X"}.fa-x-ray:before{content:""}.fa-close:before,.fa-multiply:before,.fa-remove:before,.fa-times:before,.fa-xmark:before{content:""}.fa-y:before{content:"Y"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen-sign:before,.fa-yen:before{content:""}.fa-yin-yang:before{content:""}.fa-z:before{content:"Z"}.fa-sr-only,.fa-sr-only-focusable:not(:focus),.sr-only,.sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}/*! +@charset "UTF-8";.form-select[data-v-7b8949f3]{background-color:var(--color-input);border:1;border-color:var(--color-bg);color:var(--color-bg);text-align:start;font-size:var(--font-small)}.commitbutton[data-v-7b8949f3]{background-color:var(--color-bg);color:var(--color-input)}option[data-v-7b8949f3]{color:green}.form-select[data-v-7b8949f3]{font-size:var(--font-verysmall);background-color:var(--color-menu);color:var(--color-fg)}.optiontable[data-v-7b8949f3]{background-color:var(--color-menu)}.optionbutton[data-v-7b8949f3]{font-size:var(--font-small);color:#fff;background-color:var(--color-menu);font-size:var(--font-verysmall);text-align:center}.dropdown-menu[data-v-7b8949f3]{background-color:var(--color-menu)}.dropdown-toggle[data-v-7b8949f3]{background-color:var(--color-menu);color:#fff;border:1px solid var(--color-bg);font-size:var(--font-verysmall)}.radiobutton[data-v-82ab6829]{border:0px solid var(--color-menu);opacity:1}.btn-outline-secondary.active[data-v-82ab6829]{background-color:var(--color-bg);border:0px solid var(--color-fg);opacity:.8}.btn-group[data-v-82ab6829]{border:1px solid var(--color-menu)}.rounded-pill[data-v-a73ca9f4]{background-color:var(--color-menu)}.arrowButton[data-v-a73ca9f4]{border:0}.datebadge[data-v-a73ca9f4]{background-color:var(--color-bg);color:var(--color-menu);border:1px solid var(--color-menu);font-size:var(--font-small);font-weight:400}.arrowButton[data-v-a73ca9f4],.fa-magnifying-glass[data-v-3a8117ca]{color:var(--color-menu)}.datebadge[data-v-3a8117ca]{background-color:var(--color-menu);color:var(--color-bg);font-size:var(--font-medium);font-weight:400}.waitsign[data-v-3a8117ca]{text-align:center;font-size:var(--font-medium);color:var(--color-fg);border:1px solid var(--color-bg);padding:2em;margin:4em 2em 2em;background-color:var(--color-bg)}.heading[data-v-f6af00e8]{color:var(--color-menu);font-weight:400;text-align:center}.content[data-v-f6af00e8]{color:var(--color-fg);font-weight:700}@supports (grid-template-columns: subgrid){.wb-subwidget[data-v-971e553f]{border-top:.5px solid var(--color-scale);display:grid;grid-template-columns:subgrid;grid-column:1 / 13}}@supports not (grid-template-columns: subgrid){.wb-subwidget[data-v-971e553f]{border-top:.5px solid var(--color-scale);display:grid;grid-template-columns:repeat(12,auto);grid-column:1 / 13}}.titlerow[data-v-971e553f]{grid-column:1 / 13}@supports (grid-template-columns: subgrid){.contentrow[data-v-971e553f]{display:grid;grid-template-columns:subgrid;grid-column:1 / 13;align-items:top}}@supports not (grid-template-columns: subgrid){.contentrow[data-v-971e553f]{display:grid;align-items:top;grid-template-columns:repeat(12,auto)}}.widgetname[data-v-971e553f]{font-weight:700}.infotext[data-v-b935eb33]{font-size:var(--font-settings);color:var(--color-battery)}.item-icon[data-v-b935eb33]{color:var(--color-menu);font-size:var(--font-settings)}.titlecolumn[data-v-b935eb33]{color:var(--color-fg);font-size:var(--font-settings)}.selectors[data-v-b935eb33],.configitem[data-v-b935eb33]{font-size:var(--font-settings)}.minlabel[data-v-17a828b1],.maxlabel[data-v-17a828b1]{color:var(--color-menu)}.valuelabel[data-v-17a828b1]{color:var(--color-fg)}.minusButton[data-v-17a828b1],.plusButton[data-v-17a828b1]{color:var(--color-menu)}.radiobutton[data-v-df222cbe]{border:.5px solid var(--color-input);opacity:.5;font-size:var(--font-settings)}.btn-outline-secondary.active[data-v-df222cbe]{background-color:var(--color-bg);border:1px solid var(--color-fg);box-shadow:0 .5rem 1rem #00000026;opacity:1}.chargeConfigSelect[data-v-0303d179]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-0303d179]{color:var(--color-charging)}.chargeConfigSelect[data-v-1a90f282]{background:var(--color-bg);color:var(--color-fg)}.heading[data-v-1a90f282]{color:var(--color-pv)}.tablecell[data-v-e8f5ad9d]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;font-size:var(--font-medium)}.tableheader[data-v-e8f5ad9d]{color:var(--color-menu);background-color:var(--color-bg);text-align:center;font-style:normal}.heading[data-v-e8f5ad9d]{color:var(--color-battery)}.left[data-v-e8f5ad9d]{text-align:left}.tablecell[data-v-192e287b]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;font-size:var(--font-medium)}.tableheader[data-v-192e287b]{color:var(--color-menu);background-color:var(--color-bg);text-align:center;font-style:normal}.heading[data-v-192e287b]{color:var(--color-battery)}.left[data-v-192e287b]{text-align:left}.right[data-v-192e287b]{text-align:right}.status-string[data-v-fcb57a44]{font-size:var(--font-normal);font-style:italic;color:var(--color-battery)}.chargeConfigSelect[data-v-fcb57a44]{background:var(--color-bg);color:var(--color-fg)}.chargeModeOption[data-v-fcb57a44]{background:green;color:#00f}.nav-tabs .nav-link[data-v-fcb57a44]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-fcb57a44]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-fcb57a44]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:1px solid var(--color-menu);border-bottom:1px solid var(--color-menu)}.settingsheader[data-v-fcb57a44]{color:var(--color-charging)}.status-string[data-v-a64493d7]{font-size:var(--font-normal);font-style:italic;color:var(--color-battery)}.chargeConfigSelect[data-v-a64493d7]{background:var(--color-bg);color:var(--color-fg)}.chargeModeOption[data-v-a64493d7]{background:green;color:#00f}.nav-tabs .nav-link[data-v-a64493d7]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-a64493d7]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-a64493d7]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:1px solid var(--color-menu);border-bottom:1px solid var(--color-menu)}.settingsheader[data-v-a64493d7]{color:var(--color-charging);font-size:16px;font-weight:700}hr[data-v-a64493d7]{color:var(--color-menu)}.color-charging[data-v-5286b19d]{color:var(--color-charging)}.fa-circle-check[data-v-5286b19d]{color:var(--color-menu)}.settingsheader[data-v-5286b19d]{color:var(--color-charging);font-size:16px;font-weight:700}.providername[data-v-5286b19d]{color:var(--color-axis);font-size:16px}.status-string[data-v-fdc511bd]{font-size:var(--font-settings);font-style:italic;color:var(--color-battery)}.nav-tabs .nav-link[data-v-fdc511bd]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-fdc511bd]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-fdc511bd]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:1px solid var(--color-menu);border-bottom:0px solid var(--color-menu)}.heading[data-v-fdc511bd]{color:var(--color-menu)}.item[data-v-fdc511bd]{grid-column:span 12}.tabarea[data-v-fdc511bd]{justify-self:stretch}.batIcon[data-v-a0bd055c]{color:var(--color-menu)}.wb-widget[data-v-ebc57eaa]{width:100%;border-radius:30px}.fa-star[data-v-fec067c7]{color:var(--color-evu)}.fa-clock[data-v-fec067c7]{color:var(--color-battery)}.fa-car[data-v-fec067c7],.fa-ellipsis-vertical[data-v-fec067c7],.fa-circle-check[data-v-fec067c7]{color:var(--color-menu)}.fa-coins[data-v-fec067c7]{color:var(--color-battery)}.fa-edit[data-v-fec067c7]{color:var(--color-menu)}.socEditor[data-v-fec067c7]{border:1px solid var(--color-menu);justify-self:stretch}.targetCurrent[data-v-fec067c7]{color:var(--color-menu)}.priceEditor[data-v-fec067c7]{border:1px solid var(--color-menu);justify-self:stretch}.chargemodes[data-v-fec067c7]{grid-column:1 / 13;justify-self:center}.chargeinfo[data-v-fec067c7]{display:grid;grid-template-columns:repeat(12,auto);justify-content:space-between}@font-face{font-family:swiper-icons;src:url(data:application/font-woff;charset=utf-8;base64,\ d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA);font-weight:400;font-style:normal}:root{--swiper-theme-color: #007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;overflow:clip;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function, initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-slide,.swiper-3d .swiper-cube-shadow{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper:before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d .swiper-slide-shadow-bottom{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color, var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color: #fff}.swiper-lazy-preloader-black{--swiper-preloader-color: #000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translateZ(0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-pagination-fraction,.swiper-pagination-custom,.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal{bottom:var(--swiper-pagination-bottom, 8px);top:var(--swiper-pagination-top, auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active,.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));height:var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius, 50%);background:var(--swiper-pagination-bullet-inactive-color, #000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color, var(--swiper-theme-color))}.swiper-vertical>.swiper-pagination-bullets,.swiper-pagination-vertical.swiper-pagination-bullets{right:var(--swiper-pagination-right, 8px);left:var(--swiper-pagination-left, auto);top:50%;transform:translate3d(0,-50%,0)}.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap, 6px) 0;display:block}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap, 4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translate(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color, inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, .25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color, var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size, 4px);left:0;top:0}.swiper-vertical>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite{width:var(--swiper-pagination-progressbar-size, 4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.modal-footer[data-v-eaefae30],.modal-header[data-v-eaefae30],.modal-body[data-v-eaefae30]{background:var(--color-bg)}.btn-close[data-v-eaefae30]{color:var(--color-fg)}.modal-footer[data-v-eaefae30]{text-align:right}.modal-header .btn-close[data-v-eaefae30]{color:var(--color-fg);background:var(--color-bg);border:0px}.modal.fade .modal-dialog[data-v-eaefae30]{transition:transform 1s ease-out;transform:none;scale:.6}.modal.show .modal-dialog[data-v-eaefae30]{transition:transform .3s ease-in;transform:none;scale:1}.tablerow[data-v-0496b1f6]{margin:14px;border-top:.1px solid var(--color-scale)}.tablecell[data-v-0496b1f6]{color:var(--color-fg);background-color:var(--color-bg);text-align:center;padding-top:2px;padding-left:2px;padding-right:2px;vertical-align:baseline;line-height:1.4rem;font-size:var(--font-small)}.buttoncell[data-v-0496b1f6]{background-color:var(--color-bg);padding:0;margin:0}.left[data-v-0496b1f6]{text-align:left}.tablecell.right[data-v-0496b1f6]{text-align:right}.tablecolum1[data-v-0496b1f6]{color:var(--color-fg);text-align:left;margin:0;padding:0}.tableicon[data-v-0496b1f6]{color:var(--color-menu)}.fa-star[data-v-0496b1f6]{color:var(--color-evu)}.fa-clock[data-v-0496b1f6]{color:var(--color-battery)}.socEditor[data-v-0496b1f6]{border:1px solid var(--color-menu);background-color:var(--color-bg)}.socEditRow td[data-v-0496b1f6]{background-color:var(--color-bg)}.fa-circle-check[data-v-0496b1f6]{color:var(--color-menu)}.socEditTitle[data-v-0496b1f6]{color:var(--color-fg)}.statusbadge[data-v-0496b1f6]{background-color:var(--color-bg);font-weight:700;font-size:var(--font-verysmall)}.cpname[data-v-0496b1f6]{font-size:var(--font-small)}.fa-edit[data-v-0496b1f6]{color:var(--color-menu)}.infolist[data-v-0496b1f6]{justify-content:center}.tableheader[data-v-8c6313d6]{margin:0;padding-left:0;background-color:var(--color-bg);color:var(--color-menu)}.alignleft[data-v-8c6313d6]{text-align:left}.aligncenter[data-v-8c6313d6]{text-align:center}.alignright[data-v-8c6313d6]{text-align:right}.table[data-v-8c6313d6]{border-spacing:1rem;background-color:var(--color-bg)}.pricebadge[data-v-8c6313d6]{background-color:var(--color-menu);font-weight:400}.fa-charging-station[data-v-8c6313d6]{color:var(--color-charging)}.plugIndicator[data-v-97a4a3ff]{color:#fff;border:1px solid white}.chargeButton[data-v-97a4a3ff]{color:#fff}.left[data-v-97a4a3ff]{float:left}.right[data-v-97a4a3ff]{float:right}.center[data-v-97a4a3ff]{margin:auto}.time-display[data-v-791e4be0]{font-weight:700;color:var(--color-menu);font-size:var(--font-normal)}.battery-color[data-v-5ea167db]{color:var(--color-battery)}.fg-color[data-v-5ea167db]{color:var(--color-fg)}.menu-color[data-v-5ea167db],.todaystring[data-v-5ea167db]{color:var(--color-menu)}.statusbutton[data-v-a091330c]{font-size:var(--font-large)}.modebutton[data-v-a091330c]{background-color:var(--color-menu);font-size:var(--font-verysmall);font-weight:400}.tempbadge[data-v-a091330c]{background-color:var(--color-battery);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.infolist[data-v-a091330c]{justify-content:center}.sh-title[data-v-84d6f9ad]{color:var(--color-title)}.tableheader[data-v-84d6f9ad]{background-color:var(--color-bg);color:var(--color-menu)}.fa-ellipsis-vertical[data-v-84d6f9ad],.fa-circle-check[data-v-84d6f9ad]{color:var(--color-menu)}.smarthome[data-v-84d6f9ad]{color:var(--color-devices)}.button[data-v-dc35b0f6]{color:var(--color-fg)}.node[data-v-3dfd535f]{font-size:1rem;color:#000;border:1px solid white}.mqviewer[data-v-bf618b70]{background-color:#fff;color:#000}.mqtitle[data-v-bf618b70]{color:#000}.form-select[data-v-5e33ce1f]{background-color:var(--color-input);color:#000;border:1px solid var(--color-bg);font-size:var(--font-settings)}.fa-circle-check[data-v-3556e9f3]{font-size:var(--font-extralarge);background-color:var(--color-bg);color:var(--color-menu)}.closebutton[data-v-3556e9f3]{justify-self:end}.idbadge[data-v-b262baef]{background-color:var(--color-menu);font-weight:400}.countername[data-v-b262baef]{font-size:var(--font-medium)}.statusbutton[data-v-2aee2e34]{font-size:var(--font-large)}.modebutton[data-v-2aee2e34]{background-color:var(--color-menu);font-size:var(--font-verysmall);font-weight:400}.tempbadge[data-v-2aee2e34]{background-color:var(--color-battery);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.idbadge[data-v-37dd5ca6]{background-color:var(--color-menu);font-weight:400}.status-string[data-v-37dd5ca6]{text-align:center}.statusbutton[data-v-846fd44c]{font-size:var(--font-large)}.modebutton[data-v-846fd44c]{background-color:var(--color-menu);font-size:var(--font-verysmall);font-weight:400}.tempbadge[data-v-846fd44c]{background-color:var(--color-battery);color:var(--color-bg);font-size:var(--font-verysmall);font-weight:400}.pricebadge[data-v-9e16ec4e]{background-color:var(--color-charging);font-weight:400}.providerbadge[data-v-9e16ec4e]{background-color:var(--color-menu);font-weight:400}.grapharea[data-v-9e16ec4e]{grid-column-start:1;grid-column-end:13;width:100%;object-fit:cover;max-height:100%;justify-items:stretch}.pricefigure[data-v-9e16ec4e]{justify-self:stretch}.nav-tabs[data-v-2ac38f21]{border-bottom:.5px solid var(--color-menu);background-color:var(--color-bg)}.nav-tabs .nav-link[data-v-2ac38f21]{color:var(--color-menu);opacity:.5}.nav-tabs .nav-link.disabled[data-v-2ac38f21]{color:var(--color-axis);border:.5px solid var(--color-axis)}.nav-tabs .nav-link.active[data-v-2ac38f21]{color:var(--color-fg);background-color:var(--color-bg);opacity:1;border:.5px solid var(--color-menu);border-bottom:0px solid var(--color-menu);box-shadow:0 .5rem 1rem #00000026}.fa-circle-info[data-v-2ac38f21]{color:var(--color-fg)}.fa-charging-station[data-v-2ac38f21]{color:var(--color-charging)}.fa-car-battery[data-v-2ac38f21]{color:var(--color-battery)}.fa-plug[data-v-2ac38f21]{color:var(--color-devices)}.fa-bolt[data-v-2ac38f21]{color:var(--color-evu)}.fa-car[data-v-2ac38f21]{color:var(--color-charging)}.fa-coins[data-v-2ac38f21]{color:var(--color-battery)}.navbar[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg);font-size:var(--font-normal)}.dropdown-menu[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg)}.dropdown-item[data-v-ed619966]{background-color:var(--color-bg);color:var(--color-fg);font-size:var(--font-normal)}.btn[data-v-ed619966]{font-size:var(--font-medium);background-color:var(--color-bg);color:var(--color-fg)}.navbar-brand[data-v-ed619966]{font-weight:700;color:var(--color-fg);font-size:var(--font-normal)}.nav-link[data-v-ed619966]{color:var(--color-fg);border-color:red;font-size:var(--font-normal)}.navbar-toggler[data-v-ed619966]{color:var(--color-fg);border-color:var(--color-bg)}.navbar-time[data-v-ed619966]{font-weight:700;color:var(--color-menu);font-size:var(--font-normal)}.fa{font-family:var(--fa-style-family, "Font Awesome 6 Free");font-weight:var(--fa-style, 900)}.fa,.fa-brands,.fa-duotone,.fa-light,.fa-regular,.fa-solid,.fa-thin,.fab,.fad,.fal,.far,.fas,.fat{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:var(--fa-display, inline-block);font-style:normal;font-variant:normal;line-height:1;text-rendering:auto}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-2xs{font-size:.625em;line-height:.1em;vertical-align:.225em}.fa-xs{font-size:.75em;line-height:.08333em;vertical-align:.125em}.fa-sm{font-size:.875em;line-height:.07143em;vertical-align:.05357em}.fa-lg{font-size:1.25em;line-height:.05em;vertical-align:-.075em}.fa-xl{font-size:1.5em;line-height:.04167em;vertical-align:-.125em}.fa-2xl{font-size:2em;line-height:.03125em;vertical-align:-.1875em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:var(--fa-li-margin, 2.5em);padding-left:0}.fa-ul>li{position:relative}.fa-li{left:calc(var(--fa-li-width, 2em) * -1);position:absolute;text-align:center;width:var(--fa-li-width, 2em);line-height:inherit}.fa-border{border-radius:var(--fa-border-radius, .1em);border:var(--fa-border-width, .08em) var(--fa-border-style, solid) var(--fa-border-color, #eee);padding:var(--fa-border-padding, .2em .25em .15em)}.fa-pull-left{float:left;margin-right:var(--fa-pull-margin, .3em)}.fa-pull-right{float:right;margin-left:var(--fa-pull-margin, .3em)}.fa-beat{-webkit-animation-name:fa-beat;animation-name:fa-beat;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, ease-in-out);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-bounce{-webkit-animation-name:fa-bounce;animation-name:fa-bounce;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.28, .84, .42, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.28, .84, .42, 1) )}.fa-fade{-webkit-animation-name:fa-fade;animation-name:fa-fade;-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) )}.fa-beat-fade,.fa-fade{-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s)}.fa-beat-fade{-webkit-animation-name:fa-beat-fade;animation-name:fa-beat-fade;-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) );animation-timing-function:var( --fa-animation-timing, cubic-bezier(.4, 0, .6, 1) )}.fa-flip{-webkit-animation-name:fa-flip;animation-name:fa-flip;-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, ease-in-out);animation-timing-function:var(--fa-animation-timing, ease-in-out)}.fa-shake{-webkit-animation-name:fa-shake;animation-name:fa-shake;-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, linear);animation-timing-function:var(--fa-animation-timing, linear)}.fa-shake,.fa-spin{-webkit-animation-delay:var(--fa-animation-delay, 0);animation-delay:var(--fa-animation-delay, 0);-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal)}.fa-spin{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-duration:var(--fa-animation-duration, 2s);animation-duration:var(--fa-animation-duration, 2s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, linear);animation-timing-function:var(--fa-animation-timing, linear)}.fa-spin-reverse{--fa-animation-direction: reverse}.fa-pulse,.fa-spin-pulse{-webkit-animation-name:fa-spin;animation-name:fa-spin;-webkit-animation-direction:var(--fa-animation-direction, normal);animation-direction:var(--fa-animation-direction, normal);-webkit-animation-duration:var(--fa-animation-duration, 1s);animation-duration:var(--fa-animation-duration, 1s);-webkit-animation-iteration-count:var( --fa-animation-iteration-count, infinite );animation-iteration-count:var(--fa-animation-iteration-count, infinite);-webkit-animation-timing-function:var(--fa-animation-timing, steps(8));animation-timing-function:var(--fa-animation-timing, steps(8))}@media (prefers-reduced-motion: reduce){.fa-beat,.fa-beat-fade,.fa-bounce,.fa-fade,.fa-flip,.fa-pulse,.fa-shake,.fa-spin,.fa-spin-pulse{-webkit-animation-delay:-1ms;animation-delay:-1ms;-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-iteration-count:1;animation-iteration-count:1;transition-delay:0s;transition-duration:0s}}@-webkit-keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale, 1.25));transform:scale(var(--fa-beat-scale, 1.25))}}@keyframes fa-beat{0%,90%{-webkit-transform:scale(1);transform:scale(1)}45%{-webkit-transform:scale(var(--fa-beat-scale, 1.25));transform:scale(var(--fa-beat-scale, 1.25))}}@-webkit-keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em));transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em));transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@keyframes fa-bounce{0%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}10%{-webkit-transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0);transform:scale(var(--fa-bounce-start-scale-x, 1.1),var(--fa-bounce-start-scale-y, .9)) translateY(0)}30%{-webkit-transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em));transform:scale(var(--fa-bounce-jump-scale-x, .9),var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -.5em))}50%{-webkit-transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0);transform:scale(var(--fa-bounce-land-scale-x, 1.05),var(--fa-bounce-land-scale-y, .95)) translateY(0)}57%{-webkit-transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em));transform:scale(1) translateY(var(--fa-bounce-rebound, -.125em))}64%{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}to{-webkit-transform:scale(1) translateY(0);transform:scale(1) translateY(0)}}@-webkit-keyframes fa-fade{50%{opacity:var(--fa-fade-opacity, .4)}}@keyframes fa-fade{50%{opacity:var(--fa-fade-opacity, .4)}}@-webkit-keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity, .4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale, 1.125));transform:scale(var(--fa-beat-fade-scale, 1.125))}}@keyframes fa-beat-fade{0%,to{opacity:var(--fa-beat-fade-opacity, .4);-webkit-transform:scale(1);transform:scale(1)}50%{opacity:1;-webkit-transform:scale(var(--fa-beat-fade-scale, 1.125));transform:scale(var(--fa-beat-fade-scale, 1.125))}}@-webkit-keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg));transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg))}}@keyframes fa-flip{50%{-webkit-transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg));transform:rotate3d(var(--fa-flip-x, 0),var(--fa-flip-y, 1),var(--fa-flip-z, 0),var(--fa-flip-angle, -180deg))}}@-webkit-keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@keyframes fa-shake{0%{-webkit-transform:rotate(-15deg);transform:rotate(-15deg)}4%{-webkit-transform:rotate(15deg);transform:rotate(15deg)}8%,24%{-webkit-transform:rotate(-18deg);transform:rotate(-18deg)}12%,28%{-webkit-transform:rotate(18deg);transform:rotate(18deg)}16%{-webkit-transform:rotate(-22deg);transform:rotate(-22deg)}20%{-webkit-transform:rotate(22deg);transform:rotate(22deg)}32%{-webkit-transform:rotate(-12deg);transform:rotate(-12deg)}36%{-webkit-transform:rotate(12deg);transform:rotate(12deg)}40%,to{-webkit-transform:rotate(0deg);transform:rotate(0)}}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}.fa-rotate-by{-webkit-transform:rotate(var(--fa-rotate-angle, none));transform:rotate(var(--fa-rotate-angle, none))}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%;z-index:var(--fa-stack-z-index, auto)}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:var(--fa-inverse, #fff)}.fa-0:before{content:"0"}.fa-1:before{content:"1"}.fa-2:before{content:"2"}.fa-3:before{content:"3"}.fa-4:before{content:"4"}.fa-5:before{content:"5"}.fa-6:before{content:"6"}.fa-7:before{content:"7"}.fa-8:before{content:"8"}.fa-9:before{content:"9"}.fa-a:before{content:"A"}.fa-address-book:before,.fa-contact-book:before{content:""}.fa-address-card:before,.fa-contact-card:before,.fa-vcard:before{content:""}.fa-align-center:before{content:""}.fa-align-justify:before{content:""}.fa-align-left:before{content:""}.fa-align-right:before{content:""}.fa-anchor:before{content:""}.fa-angle-down:before{content:""}.fa-angle-left:before{content:""}.fa-angle-right:before{content:""}.fa-angle-up:before{content:""}.fa-angle-double-down:before,.fa-angles-down:before{content:""}.fa-angle-double-left:before,.fa-angles-left:before{content:""}.fa-angle-double-right:before,.fa-angles-right:before{content:""}.fa-angle-double-up:before,.fa-angles-up:before{content:""}.fa-ankh:before{content:""}.fa-apple-alt:before,.fa-apple-whole:before{content:""}.fa-archway:before{content:""}.fa-arrow-down:before{content:""}.fa-arrow-down-1-9:before,.fa-sort-numeric-asc:before,.fa-sort-numeric-down:before{content:""}.fa-arrow-down-9-1:before,.fa-sort-numeric-desc:before,.fa-sort-numeric-down-alt:before{content:""}.fa-arrow-down-a-z:before,.fa-sort-alpha-asc:before,.fa-sort-alpha-down:before{content:""}.fa-arrow-down-long:before,.fa-long-arrow-down:before{content:""}.fa-arrow-down-short-wide:before,.fa-sort-amount-desc:before,.fa-sort-amount-down-alt:before{content:""}.fa-arrow-down-wide-short:before,.fa-sort-amount-asc:before,.fa-sort-amount-down:before{content:""}.fa-arrow-down-z-a:before,.fa-sort-alpha-desc:before,.fa-sort-alpha-down-alt:before{content:""}.fa-arrow-left:before{content:""}.fa-arrow-left-long:before,.fa-long-arrow-left:before{content:""}.fa-arrow-pointer:before,.fa-mouse-pointer:before{content:""}.fa-arrow-right:before{content:""}.fa-arrow-right-arrow-left:before,.fa-exchange:before{content:""}.fa-arrow-right-from-bracket:before,.fa-sign-out:before{content:""}.fa-arrow-right-long:before,.fa-long-arrow-right:before{content:""}.fa-arrow-right-to-bracket:before,.fa-sign-in:before{content:""}.fa-arrow-left-rotate:before,.fa-arrow-rotate-back:before,.fa-arrow-rotate-backward:before,.fa-arrow-rotate-left:before,.fa-undo:before{content:""}.fa-arrow-right-rotate:before,.fa-arrow-rotate-forward:before,.fa-arrow-rotate-right:before,.fa-redo:before{content:""}.fa-arrow-trend-down:before{content:""}.fa-arrow-trend-up:before{content:""}.fa-arrow-turn-down:before,.fa-level-down:before{content:""}.fa-arrow-turn-up:before,.fa-level-up:before{content:""}.fa-arrow-up:before{content:""}.fa-arrow-up-1-9:before,.fa-sort-numeric-up:before{content:""}.fa-arrow-up-9-1:before,.fa-sort-numeric-up-alt:before{content:""}.fa-arrow-up-a-z:before,.fa-sort-alpha-up:before{content:""}.fa-arrow-up-from-bracket:before{content:""}.fa-arrow-up-long:before,.fa-long-arrow-up:before{content:""}.fa-arrow-up-right-from-square:before,.fa-external-link:before{content:""}.fa-arrow-up-short-wide:before,.fa-sort-amount-up-alt:before{content:""}.fa-arrow-up-wide-short:before,.fa-sort-amount-up:before{content:""}.fa-arrow-up-z-a:before,.fa-sort-alpha-up-alt:before{content:""}.fa-arrows-h:before,.fa-arrows-left-right:before{content:""}.fa-arrows-rotate:before,.fa-refresh:before,.fa-sync:before{content:""}.fa-arrows-up-down:before,.fa-arrows-v:before{content:""}.fa-arrows-up-down-left-right:before,.fa-arrows:before{content:""}.fa-asterisk:before{content:"*"}.fa-at:before{content:"@"}.fa-atom:before{content:""}.fa-audio-description:before{content:""}.fa-austral-sign:before{content:""}.fa-award:before{content:""}.fa-b:before{content:"B"}.fa-baby:before{content:""}.fa-baby-carriage:before,.fa-carriage-baby:before{content:""}.fa-backward:before{content:""}.fa-backward-fast:before,.fa-fast-backward:before{content:""}.fa-backward-step:before,.fa-step-backward:before{content:""}.fa-bacon:before{content:""}.fa-bacteria:before{content:""}.fa-bacterium:before{content:""}.fa-bag-shopping:before,.fa-shopping-bag:before{content:""}.fa-bahai:before{content:""}.fa-baht-sign:before{content:""}.fa-ban:before,.fa-cancel:before{content:""}.fa-ban-smoking:before,.fa-smoking-ban:before{content:""}.fa-band-aid:before,.fa-bandage:before{content:""}.fa-barcode:before{content:""}.fa-bars:before,.fa-navicon:before{content:""}.fa-bars-progress:before,.fa-tasks-alt:before{content:""}.fa-bars-staggered:before,.fa-reorder:before,.fa-stream:before{content:""}.fa-baseball-ball:before,.fa-baseball:before{content:""}.fa-baseball-bat-ball:before{content:""}.fa-basket-shopping:before,.fa-shopping-basket:before{content:""}.fa-basketball-ball:before,.fa-basketball:before{content:""}.fa-bath:before,.fa-bathtub:before{content:""}.fa-battery-0:before,.fa-battery-empty:before{content:""}.fa-battery-5:before,.fa-battery-full:before,.fa-battery:before{content:""}.fa-battery-3:before,.fa-battery-half:before{content:""}.fa-battery-2:before,.fa-battery-quarter:before{content:""}.fa-battery-4:before,.fa-battery-three-quarters:before{content:""}.fa-bed:before{content:""}.fa-bed-pulse:before,.fa-procedures:before{content:""}.fa-beer-mug-empty:before,.fa-beer:before{content:""}.fa-bell:before{content:""}.fa-bell-concierge:before,.fa-concierge-bell:before{content:""}.fa-bell-slash:before{content:""}.fa-bezier-curve:before{content:""}.fa-bicycle:before{content:""}.fa-binoculars:before{content:""}.fa-biohazard:before{content:""}.fa-bitcoin-sign:before{content:""}.fa-blender:before{content:""}.fa-blender-phone:before{content:""}.fa-blog:before{content:""}.fa-bold:before{content:""}.fa-bolt:before,.fa-zap:before{content:""}.fa-bolt-lightning:before{content:""}.fa-bomb:before{content:""}.fa-bone:before{content:""}.fa-bong:before{content:""}.fa-book:before{content:""}.fa-atlas:before,.fa-book-atlas:before{content:""}.fa-bible:before,.fa-book-bible:before{content:""}.fa-book-journal-whills:before,.fa-journal-whills:before{content:""}.fa-book-medical:before{content:""}.fa-book-open:before{content:""}.fa-book-open-reader:before,.fa-book-reader:before{content:""}.fa-book-quran:before,.fa-quran:before{content:""}.fa-book-dead:before,.fa-book-skull:before{content:""}.fa-bookmark:before{content:""}.fa-border-all:before{content:""}.fa-border-none:before{content:""}.fa-border-style:before,.fa-border-top-left:before{content:""}.fa-bowling-ball:before{content:""}.fa-box:before{content:""}.fa-archive:before,.fa-box-archive:before{content:""}.fa-box-open:before{content:""}.fa-box-tissue:before{content:""}.fa-boxes-alt:before,.fa-boxes-stacked:before,.fa-boxes:before{content:""}.fa-braille:before{content:""}.fa-brain:before{content:""}.fa-brazilian-real-sign:before{content:""}.fa-bread-slice:before{content:""}.fa-briefcase:before{content:""}.fa-briefcase-medical:before{content:""}.fa-broom:before{content:""}.fa-broom-ball:before,.fa-quidditch-broom-ball:before,.fa-quidditch:before{content:""}.fa-brush:before{content:""}.fa-bug:before{content:""}.fa-bug-slash:before{content:""}.fa-building:before{content:""}.fa-bank:before,.fa-building-columns:before,.fa-institution:before,.fa-museum:before,.fa-university:before{content:""}.fa-bullhorn:before{content:""}.fa-bullseye:before{content:""}.fa-burger:before,.fa-hamburger:before{content:""}.fa-bus:before{content:""}.fa-bus-alt:before,.fa-bus-simple:before{content:""}.fa-briefcase-clock:before,.fa-business-time:before{content:""}.fa-c:before{content:"C"}.fa-birthday-cake:before,.fa-cake-candles:before,.fa-cake:before{content:""}.fa-calculator:before{content:""}.fa-calendar:before{content:""}.fa-calendar-check:before{content:""}.fa-calendar-day:before{content:""}.fa-calendar-alt:before,.fa-calendar-days:before{content:""}.fa-calendar-minus:before{content:""}.fa-calendar-plus:before{content:""}.fa-calendar-week:before{content:""}.fa-calendar-times:before,.fa-calendar-xmark:before{content:""}.fa-camera-alt:before,.fa-camera:before{content:""}.fa-camera-retro:before{content:""}.fa-camera-rotate:before{content:""}.fa-campground:before{content:""}.fa-candy-cane:before{content:""}.fa-cannabis:before{content:""}.fa-capsules:before{content:""}.fa-automobile:before,.fa-car:before{content:""}.fa-battery-car:before,.fa-car-battery:before{content:""}.fa-car-crash:before{content:""}.fa-car-alt:before,.fa-car-rear:before{content:""}.fa-car-side:before{content:""}.fa-caravan:before{content:""}.fa-caret-down:before{content:""}.fa-caret-left:before{content:""}.fa-caret-right:before{content:""}.fa-caret-up:before{content:""}.fa-carrot:before{content:""}.fa-cart-arrow-down:before{content:""}.fa-cart-flatbed:before,.fa-dolly-flatbed:before{content:""}.fa-cart-flatbed-suitcase:before,.fa-luggage-cart:before{content:""}.fa-cart-plus:before{content:""}.fa-cart-shopping:before,.fa-shopping-cart:before{content:""}.fa-cash-register:before{content:""}.fa-cat:before{content:""}.fa-cedi-sign:before{content:""}.fa-cent-sign:before{content:""}.fa-certificate:before{content:""}.fa-chair:before{content:""}.fa-blackboard:before,.fa-chalkboard:before{content:""}.fa-chalkboard-teacher:before,.fa-chalkboard-user:before{content:""}.fa-champagne-glasses:before,.fa-glass-cheers:before{content:""}.fa-charging-station:before{content:""}.fa-area-chart:before,.fa-chart-area:before{content:""}.fa-bar-chart:before,.fa-chart-bar:before{content:""}.fa-chart-column:before{content:""}.fa-chart-gantt:before{content:""}.fa-chart-line:before,.fa-line-chart:before{content:""}.fa-chart-pie:before,.fa-pie-chart:before{content:""}.fa-check:before{content:""}.fa-check-double:before{content:""}.fa-check-to-slot:before,.fa-vote-yea:before{content:""}.fa-cheese:before{content:""}.fa-chess:before{content:""}.fa-chess-bishop:before{content:""}.fa-chess-board:before{content:""}.fa-chess-king:before{content:""}.fa-chess-knight:before{content:""}.fa-chess-pawn:before{content:""}.fa-chess-queen:before{content:""}.fa-chess-rook:before{content:""}.fa-chevron-down:before{content:""}.fa-chevron-left:before{content:""}.fa-chevron-right:before{content:""}.fa-chevron-up:before{content:""}.fa-child:before{content:""}.fa-church:before{content:""}.fa-circle:before{content:""}.fa-arrow-circle-down:before,.fa-circle-arrow-down:before{content:""}.fa-arrow-circle-left:before,.fa-circle-arrow-left:before{content:""}.fa-arrow-circle-right:before,.fa-circle-arrow-right:before{content:""}.fa-arrow-circle-up:before,.fa-circle-arrow-up:before{content:""}.fa-check-circle:before,.fa-circle-check:before{content:""}.fa-chevron-circle-down:before,.fa-circle-chevron-down:before{content:""}.fa-chevron-circle-left:before,.fa-circle-chevron-left:before{content:""}.fa-chevron-circle-right:before,.fa-circle-chevron-right:before{content:""}.fa-chevron-circle-up:before,.fa-circle-chevron-up:before{content:""}.fa-circle-dollar-to-slot:before,.fa-donate:before{content:""}.fa-circle-dot:before,.fa-dot-circle:before{content:""}.fa-arrow-alt-circle-down:before,.fa-circle-down:before{content:""}.fa-circle-exclamation:before,.fa-exclamation-circle:before{content:""}.fa-circle-h:before,.fa-hospital-symbol:before{content:""}.fa-adjust:before,.fa-circle-half-stroke:before{content:""}.fa-circle-info:before,.fa-info-circle:before{content:""}.fa-arrow-alt-circle-left:before,.fa-circle-left:before{content:""}.fa-circle-minus:before,.fa-minus-circle:before{content:""}.fa-circle-notch:before{content:""}.fa-circle-pause:before,.fa-pause-circle:before{content:""}.fa-circle-play:before,.fa-play-circle:before{content:""}.fa-circle-plus:before,.fa-plus-circle:before{content:""}.fa-circle-question:before,.fa-question-circle:before{content:""}.fa-circle-radiation:before,.fa-radiation-alt:before{content:""}.fa-arrow-alt-circle-right:before,.fa-circle-right:before{content:""}.fa-circle-stop:before,.fa-stop-circle:before{content:""}.fa-arrow-alt-circle-up:before,.fa-circle-up:before{content:""}.fa-circle-user:before,.fa-user-circle:before{content:""}.fa-circle-xmark:before,.fa-times-circle:before,.fa-xmark-circle:before{content:""}.fa-city:before{content:""}.fa-clapperboard:before{content:""}.fa-clipboard:before{content:""}.fa-clipboard-check:before{content:""}.fa-clipboard-list:before{content:""}.fa-clock-four:before,.fa-clock:before{content:""}.fa-clock-rotate-left:before,.fa-history:before{content:""}.fa-clone:before{content:""}.fa-closed-captioning:before{content:""}.fa-cloud:before{content:""}.fa-cloud-arrow-down:before,.fa-cloud-download-alt:before,.fa-cloud-download:before{content:""}.fa-cloud-arrow-up:before,.fa-cloud-upload-alt:before,.fa-cloud-upload:before{content:""}.fa-cloud-meatball:before{content:""}.fa-cloud-moon:before{content:""}.fa-cloud-moon-rain:before{content:""}.fa-cloud-rain:before{content:""}.fa-cloud-showers-heavy:before{content:""}.fa-cloud-sun:before{content:""}.fa-cloud-sun-rain:before{content:""}.fa-clover:before{content:""}.fa-code:before{content:""}.fa-code-branch:before{content:""}.fa-code-commit:before{content:""}.fa-code-compare:before{content:""}.fa-code-fork:before{content:""}.fa-code-merge:before{content:""}.fa-code-pull-request:before{content:""}.fa-coins:before{content:""}.fa-colon-sign:before{content:""}.fa-comment:before{content:""}.fa-comment-dollar:before{content:""}.fa-comment-dots:before,.fa-commenting:before{content:""}.fa-comment-medical:before{content:""}.fa-comment-slash:before{content:""}.fa-comment-sms:before,.fa-sms:before{content:""}.fa-comments:before{content:""}.fa-comments-dollar:before{content:""}.fa-compact-disc:before{content:""}.fa-compass:before{content:""}.fa-compass-drafting:before,.fa-drafting-compass:before{content:""}.fa-compress:before{content:""}.fa-computer-mouse:before,.fa-mouse:before{content:""}.fa-cookie:before{content:""}.fa-cookie-bite:before{content:""}.fa-copy:before{content:""}.fa-copyright:before{content:""}.fa-couch:before{content:""}.fa-credit-card-alt:before,.fa-credit-card:before{content:""}.fa-crop:before{content:""}.fa-crop-alt:before,.fa-crop-simple:before{content:""}.fa-cross:before{content:""}.fa-crosshairs:before{content:""}.fa-crow:before{content:""}.fa-crown:before{content:""}.fa-crutch:before{content:""}.fa-cruzeiro-sign:before{content:""}.fa-cube:before{content:""}.fa-cubes:before{content:""}.fa-d:before{content:"D"}.fa-database:before{content:""}.fa-backspace:before,.fa-delete-left:before{content:""}.fa-democrat:before{content:""}.fa-desktop-alt:before,.fa-desktop:before{content:""}.fa-dharmachakra:before{content:""}.fa-diagram-next:before{content:""}.fa-diagram-predecessor:before{content:""}.fa-diagram-project:before,.fa-project-diagram:before{content:""}.fa-diagram-successor:before{content:""}.fa-diamond:before{content:""}.fa-diamond-turn-right:before,.fa-directions:before{content:""}.fa-dice:before{content:""}.fa-dice-d20:before{content:""}.fa-dice-d6:before{content:""}.fa-dice-five:before{content:""}.fa-dice-four:before{content:""}.fa-dice-one:before{content:""}.fa-dice-six:before{content:""}.fa-dice-three:before{content:""}.fa-dice-two:before{content:""}.fa-disease:before{content:""}.fa-divide:before{content:""}.fa-dna:before{content:""}.fa-dog:before{content:""}.fa-dollar-sign:before,.fa-dollar:before,.fa-usd:before{content:"$"}.fa-dolly-box:before,.fa-dolly:before{content:""}.fa-dong-sign:before{content:""}.fa-door-closed:before{content:""}.fa-door-open:before{content:""}.fa-dove:before{content:""}.fa-compress-alt:before,.fa-down-left-and-up-right-to-center:before{content:""}.fa-down-long:before,.fa-long-arrow-alt-down:before{content:""}.fa-download:before{content:""}.fa-dragon:before{content:""}.fa-draw-polygon:before{content:""}.fa-droplet:before,.fa-tint:before{content:""}.fa-droplet-slash:before,.fa-tint-slash:before{content:""}.fa-drum:before{content:""}.fa-drum-steelpan:before{content:""}.fa-drumstick-bite:before{content:""}.fa-dumbbell:before{content:""}.fa-dumpster:before{content:""}.fa-dumpster-fire:before{content:""}.fa-dungeon:before{content:""}.fa-e:before{content:"E"}.fa-deaf:before,.fa-deafness:before,.fa-ear-deaf:before,.fa-hard-of-hearing:before{content:""}.fa-assistive-listening-systems:before,.fa-ear-listen:before{content:""}.fa-earth-africa:before,.fa-globe-africa:before{content:""}.fa-earth-america:before,.fa-earth-americas:before,.fa-earth:before,.fa-globe-americas:before{content:""}.fa-earth-asia:before,.fa-globe-asia:before{content:""}.fa-earth-europe:before,.fa-globe-europe:before{content:""}.fa-earth-oceania:before,.fa-globe-oceania:before{content:""}.fa-egg:before{content:""}.fa-eject:before{content:""}.fa-elevator:before{content:""}.fa-ellipsis-h:before,.fa-ellipsis:before{content:""}.fa-ellipsis-v:before,.fa-ellipsis-vertical:before{content:""}.fa-envelope:before{content:""}.fa-envelope-open:before{content:""}.fa-envelope-open-text:before{content:""}.fa-envelopes-bulk:before,.fa-mail-bulk:before{content:""}.fa-equals:before{content:"="}.fa-eraser:before{content:""}.fa-ethernet:before{content:""}.fa-eur:before,.fa-euro-sign:before,.fa-euro:before{content:""}.fa-exclamation:before{content:"!"}.fa-expand:before{content:""}.fa-eye:before{content:""}.fa-eye-dropper-empty:before,.fa-eye-dropper:before,.fa-eyedropper:before{content:""}.fa-eye-low-vision:before,.fa-low-vision:before{content:""}.fa-eye-slash:before{content:""}.fa-f:before{content:"F"}.fa-angry:before,.fa-face-angry:before{content:""}.fa-dizzy:before,.fa-face-dizzy:before{content:""}.fa-face-flushed:before,.fa-flushed:before{content:""}.fa-face-frown:before,.fa-frown:before{content:""}.fa-face-frown-open:before,.fa-frown-open:before{content:""}.fa-face-grimace:before,.fa-grimace:before{content:""}.fa-face-grin:before,.fa-grin:before{content:""}.fa-face-grin-beam:before,.fa-grin-beam:before{content:""}.fa-face-grin-beam-sweat:before,.fa-grin-beam-sweat:before{content:""}.fa-face-grin-hearts:before,.fa-grin-hearts:before{content:""}.fa-face-grin-squint:before,.fa-grin-squint:before{content:""}.fa-face-grin-squint-tears:before,.fa-grin-squint-tears:before{content:""}.fa-face-grin-stars:before,.fa-grin-stars:before{content:""}.fa-face-grin-tears:before,.fa-grin-tears:before{content:""}.fa-face-grin-tongue:before,.fa-grin-tongue:before{content:""}.fa-face-grin-tongue-squint:before,.fa-grin-tongue-squint:before{content:""}.fa-face-grin-tongue-wink:before,.fa-grin-tongue-wink:before{content:""}.fa-face-grin-wide:before,.fa-grin-alt:before{content:""}.fa-face-grin-wink:before,.fa-grin-wink:before{content:""}.fa-face-kiss:before,.fa-kiss:before{content:""}.fa-face-kiss-beam:before,.fa-kiss-beam:before{content:""}.fa-face-kiss-wink-heart:before,.fa-kiss-wink-heart:before{content:""}.fa-face-laugh:before,.fa-laugh:before{content:""}.fa-face-laugh-beam:before,.fa-laugh-beam:before{content:""}.fa-face-laugh-squint:before,.fa-laugh-squint:before{content:""}.fa-face-laugh-wink:before,.fa-laugh-wink:before{content:""}.fa-face-meh:before,.fa-meh:before{content:""}.fa-face-meh-blank:before,.fa-meh-blank:before{content:""}.fa-face-rolling-eyes:before,.fa-meh-rolling-eyes:before{content:""}.fa-face-sad-cry:before,.fa-sad-cry:before{content:""}.fa-face-sad-tear:before,.fa-sad-tear:before{content:""}.fa-face-smile:before,.fa-smile:before{content:""}.fa-face-smile-beam:before,.fa-smile-beam:before{content:""}.fa-face-smile-wink:before,.fa-smile-wink:before{content:""}.fa-face-surprise:before,.fa-surprise:before{content:""}.fa-face-tired:before,.fa-tired:before{content:""}.fa-fan:before{content:""}.fa-faucet:before{content:""}.fa-fax:before{content:""}.fa-feather:before{content:""}.fa-feather-alt:before,.fa-feather-pointed:before{content:""}.fa-file:before{content:""}.fa-file-arrow-down:before,.fa-file-download:before{content:""}.fa-file-arrow-up:before,.fa-file-upload:before{content:""}.fa-file-audio:before{content:""}.fa-file-code:before{content:""}.fa-file-contract:before{content:""}.fa-file-csv:before{content:""}.fa-file-excel:before{content:""}.fa-arrow-right-from-file:before,.fa-file-export:before{content:""}.fa-file-image:before{content:""}.fa-arrow-right-to-file:before,.fa-file-import:before{content:""}.fa-file-invoice:before{content:""}.fa-file-invoice-dollar:before{content:""}.fa-file-alt:before,.fa-file-lines:before,.fa-file-text:before{content:""}.fa-file-medical:before{content:""}.fa-file-pdf:before{content:""}.fa-file-powerpoint:before{content:""}.fa-file-prescription:before{content:""}.fa-file-signature:before{content:""}.fa-file-video:before{content:""}.fa-file-medical-alt:before,.fa-file-waveform:before{content:""}.fa-file-word:before{content:""}.fa-file-archive:before,.fa-file-zipper:before{content:""}.fa-fill:before{content:""}.fa-fill-drip:before{content:""}.fa-film:before{content:""}.fa-filter:before{content:""}.fa-filter-circle-dollar:before,.fa-funnel-dollar:before{content:""}.fa-filter-circle-xmark:before{content:""}.fa-fingerprint:before{content:""}.fa-fire:before{content:""}.fa-fire-extinguisher:before{content:""}.fa-fire-alt:before,.fa-fire-flame-curved:before{content:""}.fa-burn:before,.fa-fire-flame-simple:before{content:""}.fa-fish:before{content:""}.fa-flag:before{content:""}.fa-flag-checkered:before{content:""}.fa-flag-usa:before{content:""}.fa-flask:before{content:""}.fa-floppy-disk:before,.fa-save:before{content:""}.fa-florin-sign:before{content:""}.fa-folder:before{content:""}.fa-folder-minus:before{content:""}.fa-folder-open:before{content:""}.fa-folder-plus:before{content:""}.fa-folder-tree:before{content:""}.fa-font:before{content:""}.fa-football-ball:before,.fa-football:before{content:""}.fa-forward:before{content:""}.fa-fast-forward:before,.fa-forward-fast:before{content:""}.fa-forward-step:before,.fa-step-forward:before{content:""}.fa-franc-sign:before{content:""}.fa-frog:before{content:""}.fa-futbol-ball:before,.fa-futbol:before,.fa-soccer-ball:before{content:""}.fa-g:before{content:"G"}.fa-gamepad:before{content:""}.fa-gas-pump:before{content:""}.fa-dashboard:before,.fa-gauge-med:before,.fa-gauge:before,.fa-tachometer-alt-average:before{content:""}.fa-gauge-high:before,.fa-tachometer-alt-fast:before,.fa-tachometer-alt:before{content:""}.fa-gauge-simple-med:before,.fa-gauge-simple:before,.fa-tachometer-average:before{content:""}.fa-gauge-simple-high:before,.fa-tachometer-fast:before,.fa-tachometer:before{content:""}.fa-gavel:before,.fa-legal:before{content:""}.fa-cog:before,.fa-gear:before{content:""}.fa-cogs:before,.fa-gears:before{content:""}.fa-gem:before{content:""}.fa-genderless:before{content:""}.fa-ghost:before{content:""}.fa-gift:before{content:""}.fa-gifts:before{content:""}.fa-glasses:before{content:""}.fa-globe:before{content:""}.fa-golf-ball-tee:before,.fa-golf-ball:before{content:""}.fa-gopuram:before{content:""}.fa-graduation-cap:before,.fa-mortar-board:before{content:""}.fa-greater-than:before{content:">"}.fa-greater-than-equal:before{content:""}.fa-grip-horizontal:before,.fa-grip:before{content:""}.fa-grip-lines:before{content:""}.fa-grip-lines-vertical:before{content:""}.fa-grip-vertical:before{content:""}.fa-guarani-sign:before{content:""}.fa-guitar:before{content:""}.fa-gun:before{content:""}.fa-h:before{content:"H"}.fa-hammer:before{content:""}.fa-hamsa:before{content:""}.fa-hand-paper:before,.fa-hand:before{content:""}.fa-hand-back-fist:before,.fa-hand-rock:before{content:""}.fa-allergies:before,.fa-hand-dots:before{content:""}.fa-fist-raised:before,.fa-hand-fist:before{content:""}.fa-hand-holding:before{content:""}.fa-hand-holding-dollar:before,.fa-hand-holding-usd:before{content:""}.fa-hand-holding-droplet:before,.fa-hand-holding-water:before{content:""}.fa-hand-holding-heart:before{content:""}.fa-hand-holding-medical:before{content:""}.fa-hand-lizard:before{content:""}.fa-hand-middle-finger:before{content:""}.fa-hand-peace:before{content:""}.fa-hand-point-down:before{content:""}.fa-hand-point-left:before{content:""}.fa-hand-point-right:before{content:""}.fa-hand-point-up:before{content:""}.fa-hand-pointer:before{content:""}.fa-hand-scissors:before{content:""}.fa-hand-sparkles:before{content:""}.fa-hand-spock:before{content:""}.fa-hands:before,.fa-sign-language:before,.fa-signing:before{content:""}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before,.fa-hands-american-sign-language-interpreting:before,.fa-hands-asl-interpreting:before{content:""}.fa-hands-bubbles:before,.fa-hands-wash:before{content:""}.fa-hands-clapping:before{content:""}.fa-hands-holding:before{content:""}.fa-hands-praying:before,.fa-praying-hands:before{content:""}.fa-handshake:before{content:""}.fa-hands-helping:before,.fa-handshake-angle:before{content:""}.fa-handshake-alt-slash:before,.fa-handshake-simple-slash:before{content:""}.fa-handshake-slash:before{content:""}.fa-hanukiah:before{content:""}.fa-hard-drive:before,.fa-hdd:before{content:""}.fa-hashtag:before{content:"#"}.fa-hat-cowboy:before{content:""}.fa-hat-cowboy-side:before{content:""}.fa-hat-wizard:before{content:""}.fa-head-side-cough:before{content:""}.fa-head-side-cough-slash:before{content:""}.fa-head-side-mask:before{content:""}.fa-head-side-virus:before{content:""}.fa-header:before,.fa-heading:before{content:""}.fa-headphones:before{content:""}.fa-headphones-alt:before,.fa-headphones-simple:before{content:""}.fa-headset:before{content:""}.fa-heart:before{content:""}.fa-heart-broken:before,.fa-heart-crack:before{content:""}.fa-heart-pulse:before,.fa-heartbeat:before{content:""}.fa-helicopter:before{content:""}.fa-hard-hat:before,.fa-hat-hard:before,.fa-helmet-safety:before{content:""}.fa-highlighter:before{content:""}.fa-hippo:before{content:""}.fa-hockey-puck:before{content:""}.fa-holly-berry:before{content:""}.fa-horse:before{content:""}.fa-horse-head:before{content:""}.fa-hospital-alt:before,.fa-hospital-wide:before,.fa-hospital:before{content:""}.fa-hospital-user:before{content:""}.fa-hot-tub-person:before,.fa-hot-tub:before{content:""}.fa-hotdog:before{content:""}.fa-hotel:before{content:""}.fa-hourglass-2:before,.fa-hourglass-half:before,.fa-hourglass:before{content:""}.fa-hourglass-empty:before{content:""}.fa-hourglass-3:before,.fa-hourglass-end:before{content:""}.fa-hourglass-1:before,.fa-hourglass-start:before{content:""}.fa-home-alt:before,.fa-home-lg-alt:before,.fa-home:before,.fa-house:before{content:""}.fa-home-lg:before,.fa-house-chimney:before{content:""}.fa-house-chimney-crack:before,.fa-house-damage:before{content:""}.fa-clinic-medical:before,.fa-house-chimney-medical:before{content:""}.fa-house-chimney-user:before{content:""}.fa-house-chimney-window:before{content:""}.fa-house-crack:before{content:""}.fa-house-laptop:before,.fa-laptop-house:before{content:""}.fa-house-medical:before{content:""}.fa-home-user:before,.fa-house-user:before{content:""}.fa-hryvnia-sign:before,.fa-hryvnia:before{content:""}.fa-i:before{content:"I"}.fa-i-cursor:before{content:""}.fa-ice-cream:before{content:""}.fa-icicles:before{content:""}.fa-heart-music-camera-bolt:before,.fa-icons:before{content:""}.fa-id-badge:before{content:""}.fa-drivers-license:before,.fa-id-card:before{content:""}.fa-id-card-alt:before,.fa-id-card-clip:before{content:""}.fa-igloo:before{content:""}.fa-image:before{content:""}.fa-image-portrait:before,.fa-portrait:before{content:""}.fa-images:before{content:""}.fa-inbox:before{content:""}.fa-indent:before{content:""}.fa-indian-rupee-sign:before,.fa-indian-rupee:before,.fa-inr:before{content:""}.fa-industry:before{content:""}.fa-infinity:before{content:""}.fa-info:before{content:""}.fa-italic:before{content:""}.fa-j:before{content:"J"}.fa-jedi:before{content:""}.fa-fighter-jet:before,.fa-jet-fighter:before{content:""}.fa-joint:before{content:""}.fa-k:before{content:"K"}.fa-kaaba:before{content:""}.fa-key:before{content:""}.fa-keyboard:before{content:""}.fa-khanda:before{content:""}.fa-kip-sign:before{content:""}.fa-first-aid:before,.fa-kit-medical:before{content:""}.fa-kiwi-bird:before{content:""}.fa-l:before{content:"L"}.fa-landmark:before{content:""}.fa-language:before{content:""}.fa-laptop:before{content:""}.fa-laptop-code:before{content:""}.fa-laptop-medical:before{content:""}.fa-lari-sign:before{content:""}.fa-layer-group:before{content:""}.fa-leaf:before{content:""}.fa-left-long:before,.fa-long-arrow-alt-left:before{content:""}.fa-arrows-alt-h:before,.fa-left-right:before{content:""}.fa-lemon:before{content:""}.fa-less-than:before{content:"<"}.fa-less-than-equal:before{content:""}.fa-life-ring:before{content:""}.fa-lightbulb:before{content:""}.fa-chain:before,.fa-link:before{content:""}.fa-chain-broken:before,.fa-chain-slash:before,.fa-link-slash:before,.fa-unlink:before{content:""}.fa-lira-sign:before{content:""}.fa-list-squares:before,.fa-list:before{content:""}.fa-list-check:before,.fa-tasks:before{content:""}.fa-list-1-2:before,.fa-list-numeric:before,.fa-list-ol:before{content:""}.fa-list-dots:before,.fa-list-ul:before{content:""}.fa-litecoin-sign:before{content:""}.fa-location-arrow:before{content:""}.fa-location-crosshairs:before,.fa-location:before{content:""}.fa-location-dot:before,.fa-map-marker-alt:before{content:""}.fa-location-pin:before,.fa-map-marker:before{content:""}.fa-lock:before{content:""}.fa-lock-open:before{content:""}.fa-lungs:before{content:""}.fa-lungs-virus:before{content:""}.fa-m:before{content:"M"}.fa-magnet:before{content:""}.fa-magnifying-glass:before,.fa-search:before{content:""}.fa-magnifying-glass-dollar:before,.fa-search-dollar:before{content:""}.fa-magnifying-glass-location:before,.fa-search-location:before{content:""}.fa-magnifying-glass-minus:before,.fa-search-minus:before{content:""}.fa-magnifying-glass-plus:before,.fa-search-plus:before{content:""}.fa-manat-sign:before{content:""}.fa-map:before{content:""}.fa-map-location:before,.fa-map-marked:before{content:""}.fa-map-location-dot:before,.fa-map-marked-alt:before{content:""}.fa-map-pin:before{content:""}.fa-marker:before{content:""}.fa-mars:before{content:""}.fa-mars-and-venus:before{content:""}.fa-mars-double:before{content:""}.fa-mars-stroke:before{content:""}.fa-mars-stroke-h:before,.fa-mars-stroke-right:before{content:""}.fa-mars-stroke-up:before,.fa-mars-stroke-v:before{content:""}.fa-glass-martini-alt:before,.fa-martini-glass:before{content:""}.fa-cocktail:before,.fa-martini-glass-citrus:before{content:""}.fa-glass-martini:before,.fa-martini-glass-empty:before{content:""}.fa-mask:before{content:""}.fa-mask-face:before{content:""}.fa-masks-theater:before,.fa-theater-masks:before{content:""}.fa-expand-arrows-alt:before,.fa-maximize:before{content:""}.fa-medal:before{content:""}.fa-memory:before{content:""}.fa-menorah:before{content:""}.fa-mercury:before{content:""}.fa-comment-alt:before,.fa-message:before{content:""}.fa-meteor:before{content:""}.fa-microchip:before{content:""}.fa-microphone:before{content:""}.fa-microphone-alt:before,.fa-microphone-lines:before{content:""}.fa-microphone-alt-slash:before,.fa-microphone-lines-slash:before{content:""}.fa-microphone-slash:before{content:""}.fa-microscope:before{content:""}.fa-mill-sign:before{content:""}.fa-compress-arrows-alt:before,.fa-minimize:before{content:""}.fa-minus:before,.fa-subtract:before{content:""}.fa-mitten:before{content:""}.fa-mobile-android:before,.fa-mobile-phone:before,.fa-mobile:before{content:""}.fa-mobile-button:before{content:""}.fa-mobile-alt:before,.fa-mobile-screen-button:before{content:""}.fa-money-bill:before{content:""}.fa-money-bill-1:before,.fa-money-bill-alt:before{content:""}.fa-money-bill-1-wave:before,.fa-money-bill-wave-alt:before{content:""}.fa-money-bill-wave:before{content:""}.fa-money-check:before{content:""}.fa-money-check-alt:before,.fa-money-check-dollar:before{content:""}.fa-monument:before{content:""}.fa-moon:before{content:""}.fa-mortar-pestle:before{content:""}.fa-mosque:before{content:""}.fa-motorcycle:before{content:""}.fa-mountain:before{content:""}.fa-mug-hot:before{content:""}.fa-coffee:before,.fa-mug-saucer:before{content:""}.fa-music:before{content:""}.fa-n:before{content:"N"}.fa-naira-sign:before{content:""}.fa-network-wired:before{content:""}.fa-neuter:before{content:""}.fa-newspaper:before{content:""}.fa-not-equal:before{content:""}.fa-note-sticky:before,.fa-sticky-note:before{content:""}.fa-notes-medical:before{content:""}.fa-o:before{content:"O"}.fa-object-group:before{content:""}.fa-object-ungroup:before{content:""}.fa-oil-can:before{content:""}.fa-om:before{content:""}.fa-otter:before{content:""}.fa-dedent:before,.fa-outdent:before{content:""}.fa-p:before{content:"P"}.fa-pager:before{content:""}.fa-paint-roller:before{content:""}.fa-paint-brush:before,.fa-paintbrush:before{content:""}.fa-palette:before{content:""}.fa-pallet:before{content:""}.fa-panorama:before{content:""}.fa-paper-plane:before{content:""}.fa-paperclip:before{content:""}.fa-parachute-box:before{content:""}.fa-paragraph:before{content:""}.fa-passport:before{content:""}.fa-file-clipboard:before,.fa-paste:before{content:""}.fa-pause:before{content:""}.fa-paw:before{content:""}.fa-peace:before{content:""}.fa-pen:before{content:""}.fa-pen-alt:before,.fa-pen-clip:before{content:""}.fa-pen-fancy:before{content:""}.fa-pen-nib:before{content:""}.fa-pen-ruler:before,.fa-pencil-ruler:before{content:""}.fa-edit:before,.fa-pen-to-square:before{content:""}.fa-pencil-alt:before,.fa-pencil:before{content:""}.fa-people-arrows-left-right:before,.fa-people-arrows:before{content:""}.fa-people-carry-box:before,.fa-people-carry:before{content:""}.fa-pepper-hot:before{content:""}.fa-percent:before,.fa-percentage:before{content:"%"}.fa-male:before,.fa-person:before{content:""}.fa-biking:before,.fa-person-biking:before{content:""}.fa-person-booth:before{content:""}.fa-diagnoses:before,.fa-person-dots-from-line:before{content:""}.fa-female:before,.fa-person-dress:before{content:""}.fa-hiking:before,.fa-person-hiking:before{content:""}.fa-person-praying:before,.fa-pray:before{content:""}.fa-person-running:before,.fa-running:before{content:""}.fa-person-skating:before,.fa-skating:before{content:""}.fa-person-skiing:before,.fa-skiing:before{content:""}.fa-person-skiing-nordic:before,.fa-skiing-nordic:before{content:""}.fa-person-snowboarding:before,.fa-snowboarding:before{content:""}.fa-person-swimming:before,.fa-swimmer:before{content:""}.fa-person-walking:before,.fa-walking:before{content:""}.fa-blind:before,.fa-person-walking-with-cane:before{content:""}.fa-peseta-sign:before{content:""}.fa-peso-sign:before{content:""}.fa-phone:before{content:""}.fa-phone-alt:before,.fa-phone-flip:before{content:""}.fa-phone-slash:before{content:""}.fa-phone-volume:before,.fa-volume-control-phone:before{content:""}.fa-photo-film:before,.fa-photo-video:before{content:""}.fa-piggy-bank:before{content:""}.fa-pills:before{content:""}.fa-pizza-slice:before{content:""}.fa-place-of-worship:before{content:""}.fa-plane:before{content:""}.fa-plane-arrival:before{content:""}.fa-plane-departure:before{content:""}.fa-plane-slash:before{content:""}.fa-play:before{content:""}.fa-plug:before{content:""}.fa-add:before,.fa-plus:before{content:"+"}.fa-plus-minus:before{content:""}.fa-podcast:before{content:""}.fa-poo:before{content:""}.fa-poo-bolt:before,.fa-poo-storm:before{content:""}.fa-poop:before{content:""}.fa-power-off:before{content:""}.fa-prescription:before{content:""}.fa-prescription-bottle:before{content:""}.fa-prescription-bottle-alt:before,.fa-prescription-bottle-medical:before{content:""}.fa-print:before{content:""}.fa-pump-medical:before{content:""}.fa-pump-soap:before{content:""}.fa-puzzle-piece:before{content:""}.fa-q:before{content:"Q"}.fa-qrcode:before{content:""}.fa-question:before{content:"?"}.fa-quote-left-alt:before,.fa-quote-left:before{content:""}.fa-quote-right-alt:before,.fa-quote-right:before{content:""}.fa-r:before{content:"R"}.fa-radiation:before{content:""}.fa-rainbow:before{content:""}.fa-receipt:before{content:""}.fa-record-vinyl:before{content:""}.fa-ad:before,.fa-rectangle-ad:before{content:""}.fa-list-alt:before,.fa-rectangle-list:before{content:""}.fa-rectangle-times:before,.fa-rectangle-xmark:before,.fa-times-rectangle:before,.fa-window-close:before{content:""}.fa-recycle:before{content:""}.fa-registered:before{content:""}.fa-repeat:before{content:""}.fa-mail-reply:before,.fa-reply:before{content:""}.fa-mail-reply-all:before,.fa-reply-all:before{content:""}.fa-republican:before{content:""}.fa-restroom:before{content:""}.fa-retweet:before{content:""}.fa-ribbon:before{content:""}.fa-right-from-bracket:before,.fa-sign-out-alt:before{content:""}.fa-exchange-alt:before,.fa-right-left:before{content:""}.fa-long-arrow-alt-right:before,.fa-right-long:before{content:""}.fa-right-to-bracket:before,.fa-sign-in-alt:before{content:""}.fa-ring:before{content:""}.fa-road:before{content:""}.fa-robot:before{content:""}.fa-rocket:before{content:""}.fa-rotate:before,.fa-sync-alt:before{content:""}.fa-rotate-back:before,.fa-rotate-backward:before,.fa-rotate-left:before,.fa-undo-alt:before{content:""}.fa-redo-alt:before,.fa-rotate-forward:before,.fa-rotate-right:before{content:""}.fa-route:before{content:""}.fa-feed:before,.fa-rss:before{content:""}.fa-rouble:before,.fa-rub:before,.fa-ruble-sign:before,.fa-ruble:before{content:""}.fa-ruler:before{content:""}.fa-ruler-combined:before{content:""}.fa-ruler-horizontal:before{content:""}.fa-ruler-vertical:before{content:""}.fa-rupee-sign:before,.fa-rupee:before{content:""}.fa-rupiah-sign:before{content:""}.fa-s:before{content:"S"}.fa-sailboat:before{content:""}.fa-satellite:before{content:""}.fa-satellite-dish:before{content:""}.fa-balance-scale:before,.fa-scale-balanced:before{content:""}.fa-balance-scale-left:before,.fa-scale-unbalanced:before{content:""}.fa-balance-scale-right:before,.fa-scale-unbalanced-flip:before{content:""}.fa-school:before{content:""}.fa-cut:before,.fa-scissors:before{content:""}.fa-screwdriver:before{content:""}.fa-screwdriver-wrench:before,.fa-tools:before{content:""}.fa-scroll:before{content:""}.fa-scroll-torah:before,.fa-torah:before{content:""}.fa-sd-card:before{content:""}.fa-section:before{content:""}.fa-seedling:before,.fa-sprout:before{content:""}.fa-server:before{content:""}.fa-shapes:before,.fa-triangle-circle-square:before{content:""}.fa-arrow-turn-right:before,.fa-mail-forward:before,.fa-share:before{content:""}.fa-share-from-square:before,.fa-share-square:before{content:""}.fa-share-alt:before,.fa-share-nodes:before{content:""}.fa-ils:before,.fa-shekel-sign:before,.fa-shekel:before,.fa-sheqel-sign:before,.fa-sheqel:before{content:""}.fa-shield:before{content:""}.fa-shield-alt:before,.fa-shield-blank:before{content:""}.fa-shield-virus:before{content:""}.fa-ship:before{content:""}.fa-shirt:before,.fa-t-shirt:before,.fa-tshirt:before{content:""}.fa-shoe-prints:before{content:""}.fa-shop:before,.fa-store-alt:before{content:""}.fa-shop-slash:before,.fa-store-alt-slash:before{content:""}.fa-shower:before{content:""}.fa-shrimp:before{content:""}.fa-random:before,.fa-shuffle:before{content:""}.fa-shuttle-space:before,.fa-space-shuttle:before{content:""}.fa-sign-hanging:before,.fa-sign:before{content:""}.fa-signal-5:before,.fa-signal-perfect:before,.fa-signal:before{content:""}.fa-signature:before{content:""}.fa-map-signs:before,.fa-signs-post:before{content:""}.fa-sim-card:before{content:""}.fa-sink:before{content:""}.fa-sitemap:before{content:""}.fa-skull:before{content:""}.fa-skull-crossbones:before{content:""}.fa-slash:before{content:""}.fa-sleigh:before{content:""}.fa-sliders-h:before,.fa-sliders:before{content:""}.fa-smog:before{content:""}.fa-smoking:before{content:""}.fa-snowflake:before{content:""}.fa-snowman:before{content:""}.fa-snowplow:before{content:""}.fa-soap:before{content:""}.fa-socks:before{content:""}.fa-solar-panel:before{content:""}.fa-sort:before,.fa-unsorted:before{content:""}.fa-sort-desc:before,.fa-sort-down:before{content:""}.fa-sort-asc:before,.fa-sort-up:before{content:""}.fa-spa:before{content:""}.fa-pastafarianism:before,.fa-spaghetti-monster-flying:before{content:""}.fa-spell-check:before{content:""}.fa-spider:before{content:""}.fa-spinner:before{content:""}.fa-splotch:before{content:""}.fa-spoon:before,.fa-utensil-spoon:before{content:""}.fa-spray-can:before{content:""}.fa-air-freshener:before,.fa-spray-can-sparkles:before{content:""}.fa-square:before{content:""}.fa-external-link-square:before,.fa-square-arrow-up-right:before{content:""}.fa-caret-square-down:before,.fa-square-caret-down:before{content:""}.fa-caret-square-left:before,.fa-square-caret-left:before{content:""}.fa-caret-square-right:before,.fa-square-caret-right:before{content:""}.fa-caret-square-up:before,.fa-square-caret-up:before{content:""}.fa-check-square:before,.fa-square-check:before{content:""}.fa-envelope-square:before,.fa-square-envelope:before{content:""}.fa-square-full:before{content:""}.fa-h-square:before,.fa-square-h:before{content:""}.fa-minus-square:before,.fa-square-minus:before{content:""}.fa-parking:before,.fa-square-parking:before{content:""}.fa-pen-square:before,.fa-pencil-square:before,.fa-square-pen:before{content:""}.fa-phone-square:before,.fa-square-phone:before{content:""}.fa-phone-square-alt:before,.fa-square-phone-flip:before{content:""}.fa-plus-square:before,.fa-square-plus:before{content:""}.fa-poll-h:before,.fa-square-poll-horizontal:before{content:""}.fa-poll:before,.fa-square-poll-vertical:before{content:""}.fa-square-root-alt:before,.fa-square-root-variable:before{content:""}.fa-rss-square:before,.fa-square-rss:before{content:""}.fa-share-alt-square:before,.fa-square-share-nodes:before{content:""}.fa-external-link-square-alt:before,.fa-square-up-right:before{content:""}.fa-square-xmark:before,.fa-times-square:before,.fa-xmark-square:before{content:""}.fa-stairs:before{content:""}.fa-stamp:before{content:""}.fa-star:before{content:""}.fa-star-and-crescent:before{content:""}.fa-star-half:before{content:""}.fa-star-half-alt:before,.fa-star-half-stroke:before{content:""}.fa-star-of-david:before{content:""}.fa-star-of-life:before{content:""}.fa-gbp:before,.fa-pound-sign:before,.fa-sterling-sign:before{content:""}.fa-stethoscope:before{content:""}.fa-stop:before{content:""}.fa-stopwatch:before{content:""}.fa-stopwatch-20:before{content:""}.fa-store:before{content:""}.fa-store-slash:before{content:""}.fa-street-view:before{content:""}.fa-strikethrough:before{content:""}.fa-stroopwafel:before{content:""}.fa-subscript:before{content:""}.fa-suitcase:before{content:""}.fa-medkit:before,.fa-suitcase-medical:before{content:""}.fa-suitcase-rolling:before{content:""}.fa-sun:before{content:""}.fa-superscript:before{content:""}.fa-swatchbook:before{content:""}.fa-synagogue:before{content:""}.fa-syringe:before{content:""}.fa-t:before{content:"T"}.fa-table:before{content:""}.fa-table-cells:before,.fa-th:before{content:""}.fa-table-cells-large:before,.fa-th-large:before{content:""}.fa-columns:before,.fa-table-columns:before{content:""}.fa-table-list:before,.fa-th-list:before{content:""}.fa-ping-pong-paddle-ball:before,.fa-table-tennis-paddle-ball:before,.fa-table-tennis:before{content:""}.fa-tablet-android:before,.fa-tablet:before{content:""}.fa-tablet-button:before{content:""}.fa-tablet-alt:before,.fa-tablet-screen-button:before{content:""}.fa-tablets:before{content:""}.fa-digital-tachograph:before,.fa-tachograph-digital:before{content:""}.fa-tag:before{content:""}.fa-tags:before{content:""}.fa-tape:before{content:""}.fa-cab:before,.fa-taxi:before{content:""}.fa-teeth:before{content:""}.fa-teeth-open:before{content:""}.fa-temperature-0:before,.fa-temperature-empty:before,.fa-thermometer-0:before,.fa-thermometer-empty:before{content:""}.fa-temperature-4:before,.fa-temperature-full:before,.fa-thermometer-4:before,.fa-thermometer-full:before{content:""}.fa-temperature-2:before,.fa-temperature-half:before,.fa-thermometer-2:before,.fa-thermometer-half:before{content:""}.fa-temperature-high:before{content:""}.fa-temperature-low:before{content:""}.fa-temperature-1:before,.fa-temperature-quarter:before,.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:""}.fa-temperature-3:before,.fa-temperature-three-quarters:before,.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:""}.fa-tenge-sign:before,.fa-tenge:before{content:""}.fa-terminal:before{content:""}.fa-text-height:before{content:""}.fa-remove-format:before,.fa-text-slash:before{content:""}.fa-text-width:before{content:""}.fa-thermometer:before{content:""}.fa-thumbs-down:before{content:""}.fa-thumbs-up:before{content:""}.fa-thumb-tack:before,.fa-thumbtack:before{content:""}.fa-ticket:before{content:""}.fa-ticket-alt:before,.fa-ticket-simple:before{content:""}.fa-timeline:before{content:""}.fa-toggle-off:before{content:""}.fa-toggle-on:before{content:""}.fa-toilet:before{content:""}.fa-toilet-paper:before{content:""}.fa-toilet-paper-slash:before{content:""}.fa-toolbox:before{content:""}.fa-tooth:before{content:""}.fa-torii-gate:before{content:""}.fa-broadcast-tower:before,.fa-tower-broadcast:before{content:""}.fa-tractor:before{content:""}.fa-trademark:before{content:""}.fa-traffic-light:before{content:""}.fa-trailer:before{content:""}.fa-train:before{content:""}.fa-subway:before,.fa-train-subway:before{content:""}.fa-train-tram:before,.fa-tram:before{content:""}.fa-transgender-alt:before,.fa-transgender:before{content:""}.fa-trash:before{content:""}.fa-trash-arrow-up:before,.fa-trash-restore:before{content:""}.fa-trash-alt:before,.fa-trash-can:before{content:""}.fa-trash-can-arrow-up:before,.fa-trash-restore-alt:before{content:""}.fa-tree:before{content:""}.fa-exclamation-triangle:before,.fa-triangle-exclamation:before,.fa-warning:before{content:""}.fa-trophy:before{content:""}.fa-truck:before{content:""}.fa-shipping-fast:before,.fa-truck-fast:before{content:""}.fa-ambulance:before,.fa-truck-medical:before{content:""}.fa-truck-monster:before{content:""}.fa-truck-moving:before{content:""}.fa-truck-pickup:before{content:""}.fa-truck-loading:before,.fa-truck-ramp-box:before{content:""}.fa-teletype:before,.fa-tty:before{content:""}.fa-try:before,.fa-turkish-lira-sign:before,.fa-turkish-lira:before{content:""}.fa-level-down-alt:before,.fa-turn-down:before{content:""}.fa-level-up-alt:before,.fa-turn-up:before{content:""}.fa-television:before,.fa-tv-alt:before,.fa-tv:before{content:""}.fa-u:before{content:"U"}.fa-umbrella:before{content:""}.fa-umbrella-beach:before{content:""}.fa-underline:before{content:""}.fa-universal-access:before{content:""}.fa-unlock:before{content:""}.fa-unlock-alt:before,.fa-unlock-keyhole:before{content:""}.fa-arrows-alt-v:before,.fa-up-down:before{content:""}.fa-arrows-alt:before,.fa-up-down-left-right:before{content:""}.fa-long-arrow-alt-up:before,.fa-up-long:before{content:""}.fa-expand-alt:before,.fa-up-right-and-down-left-from-center:before{content:""}.fa-external-link-alt:before,.fa-up-right-from-square:before{content:""}.fa-upload:before{content:""}.fa-user:before{content:""}.fa-user-astronaut:before{content:""}.fa-user-check:before{content:""}.fa-user-clock:before{content:""}.fa-user-doctor:before,.fa-user-md:before{content:""}.fa-user-cog:before,.fa-user-gear:before{content:""}.fa-user-graduate:before{content:""}.fa-user-friends:before,.fa-user-group:before{content:""}.fa-user-injured:before{content:""}.fa-user-alt:before,.fa-user-large:before{content:""}.fa-user-alt-slash:before,.fa-user-large-slash:before{content:""}.fa-user-lock:before{content:""}.fa-user-minus:before{content:""}.fa-user-ninja:before{content:""}.fa-user-nurse:before{content:""}.fa-user-edit:before,.fa-user-pen:before{content:""}.fa-user-plus:before{content:""}.fa-user-secret:before{content:""}.fa-user-shield:before{content:""}.fa-user-slash:before{content:""}.fa-user-tag:before{content:""}.fa-user-tie:before{content:""}.fa-user-times:before,.fa-user-xmark:before{content:""}.fa-users:before{content:""}.fa-users-cog:before,.fa-users-gear:before{content:""}.fa-users-slash:before{content:""}.fa-cutlery:before,.fa-utensils:before{content:""}.fa-v:before{content:"V"}.fa-shuttle-van:before,.fa-van-shuttle:before{content:""}.fa-vault:before{content:""}.fa-vector-square:before{content:""}.fa-venus:before{content:""}.fa-venus-double:before{content:""}.fa-venus-mars:before{content:""}.fa-vest:before{content:""}.fa-vest-patches:before{content:""}.fa-vial:before{content:""}.fa-vials:before{content:""}.fa-video-camera:before,.fa-video:before{content:""}.fa-video-slash:before{content:""}.fa-vihara:before{content:""}.fa-virus:before{content:""}.fa-virus-covid:before{content:""}.fa-virus-covid-slash:before{content:""}.fa-virus-slash:before{content:""}.fa-viruses:before{content:""}.fa-voicemail:before{content:""}.fa-volleyball-ball:before,.fa-volleyball:before{content:""}.fa-volume-high:before,.fa-volume-up:before{content:""}.fa-volume-down:before,.fa-volume-low:before{content:""}.fa-volume-off:before{content:""}.fa-volume-mute:before,.fa-volume-times:before,.fa-volume-xmark:before{content:""}.fa-vr-cardboard:before{content:""}.fa-w:before{content:"W"}.fa-wallet:before{content:""}.fa-magic:before,.fa-wand-magic:before{content:""}.fa-magic-wand-sparkles:before,.fa-wand-magic-sparkles:before{content:""}.fa-wand-sparkles:before{content:""}.fa-warehouse:before{content:""}.fa-water:before{content:""}.fa-ladder-water:before,.fa-swimming-pool:before,.fa-water-ladder:before{content:""}.fa-wave-square:before{content:""}.fa-weight-hanging:before{content:""}.fa-weight-scale:before,.fa-weight:before{content:""}.fa-wheelchair:before{content:""}.fa-glass-whiskey:before,.fa-whiskey-glass:before{content:""}.fa-wifi-3:before,.fa-wifi-strong:before,.fa-wifi:before{content:""}.fa-wind:before{content:""}.fa-window-maximize:before{content:""}.fa-window-minimize:before{content:""}.fa-window-restore:before{content:""}.fa-wine-bottle:before{content:""}.fa-wine-glass:before{content:""}.fa-wine-glass-alt:before,.fa-wine-glass-empty:before{content:""}.fa-krw:before,.fa-won-sign:before,.fa-won:before{content:""}.fa-wrench:before{content:""}.fa-x:before{content:"X"}.fa-x-ray:before{content:""}.fa-close:before,.fa-multiply:before,.fa-remove:before,.fa-times:before,.fa-xmark:before{content:""}.fa-y:before{content:"Y"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen-sign:before,.fa-yen:before{content:""}.fa-yin-yang:before{content:""}.fa-z:before{content:"Z"}.fa-sr-only,.fa-sr-only-focusable:not(:focus),.sr-only,.sr-only-focusable:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}/*! * Font Awesome Free 6.0.0 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) * Copyright 2022 Fonticons, Inc. diff --git a/packages/modules/web_themes/colors/web/assets/vendor-6c3d972a.js b/packages/modules/web_themes/colors/web/assets/vendor-20b697ee.js similarity index 71% rename from packages/modules/web_themes/colors/web/assets/vendor-6c3d972a.js rename to packages/modules/web_themes/colors/web/assets/vendor-20b697ee.js index 5c6f5dbc1b..09d958f886 100644 --- a/packages/modules/web_themes/colors/web/assets/vendor-6c3d972a.js +++ b/packages/modules/web_themes/colors/web/assets/vendor-20b697ee.js @@ -1,35 +1,35 @@ -const ln=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};function dd(t,e){const r=Object.create(null),n=t.split(",");for(let i=0;i!!r[i.toLowerCase()]:i=>!!r[i]}const Fe={},Ai=[],qt=()=>{},PE=()=>!1,RE=/^on[^a-z]/,El=t=>RE.test(t),hd=t=>t.startsWith("onUpdate:"),Ye=Object.assign,pd=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},LE=Object.prototype.hasOwnProperty,Pe=(t,e)=>LE.call(t,e),we=Array.isArray,Mi=t=>yo(t)==="[object Map]",ns=t=>yo(t)==="[object Set]",lp=t=>yo(t)==="[object Date]",Ae=t=>typeof t=="function",He=t=>typeof t=="string",Zs=t=>typeof t=="symbol",Ue=t=>t!==null&&typeof t=="object",sw=t=>Ue(t)&&Ae(t.then)&&Ae(t.catch),ow=Object.prototype.toString,yo=t=>ow.call(t),NE=t=>yo(t).slice(8,-1),aw=t=>yo(t)==="[object Object]",gd=t=>He(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ha=dd(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Sl=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},$E=/-(\w)/g,hr=Sl(t=>t.replace($E,(e,r)=>r?r.toUpperCase():"")),kE=/\B([A-Z])/g,is=Sl(t=>t.replace(kE,"-$1").toLowerCase()),xl=Sl(t=>t.charAt(0).toUpperCase()+t.slice(1)),Lu=Sl(t=>t?`on${xl(t)}`:""),eo=(t,e)=>!Object.is(t,e),pa=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},Fa=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let up;const Zc=()=>up||(up=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof ln<"u"?ln:{});function md(t){if(we(t)){const e={};for(let r=0;r{if(r){const n=r.split(BE);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function yd(t){let e="";if(He(t))e=t;else if(we(t))for(let r=0;rwo(r,e))}const _W=t=>He(t)?t:t==null?"":we(t)||Ue(t)&&(t.toString===ow||!Ae(t.toString))?JSON.stringify(t,uw,2):String(t),uw=(t,e)=>e&&e.__v_isRef?uw(t,e.value):Mi(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:ns(e)?{[`Set(${e.size})`]:[...e.values()]}:Ue(e)&&!we(e)&&!aw(e)?String(e):e;let Bt;class WE{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Bt,!e&&Bt&&(this.index=(Bt.scopes||(Bt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=Bt;try{return Bt=this,e()}finally{Bt=r}}}on(){Bt=this}off(){Bt=this.parent}stop(e){if(this._active){let r,n;for(r=0,n=this.effects.length;r{const e=new Set(t);return e.w=0,e.n=0,e},cw=t=>(t.w&un)>0,fw=t=>(t.n&un)>0,YE=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let r=0;for(let n=0;n{(c==="length"||c>=l)&&a.push(u)})}else switch(r!==void 0&&a.push(o.get(r)),e){case"add":we(t)?gd(r)&&a.push(o.get("length")):(a.push(o.get(Fn)),Mi(t)&&a.push(o.get(rf)));break;case"delete":we(t)||(a.push(o.get(Fn)),Mi(t)&&a.push(o.get(rf)));break;case"set":Mi(t)&&a.push(o.get(Fn));break}if(a.length===1)a[0]&&nf(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);nf(bd(l))}}function nf(t,e){const r=we(t)?t:[...t];for(const n of r)n.computed&&fp(n);for(const n of r)n.computed||fp(n)}function fp(t,e){(t!==jt||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const GE=dd("__proto__,__v_isRef,__isVue"),pw=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(Zs)),XE=vd(),QE=vd(!1,!0),JE=vd(!0),dp=ZE();function ZE(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=Ne(this);for(let s=0,o=this.length;s{t[e]=function(...r){ss();const n=Ne(this)[e].apply(this,r);return os(),n}}),t}function eS(t){const e=Ne(this);return yt(e,"has",t),e.hasOwnProperty(t)}function vd(t=!1,e=!1){return function(n,i,s){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&s===(t?e?mS:bw:e?ww:yw).get(n))return n;const o=we(n);if(!t){if(o&&Pe(dp,i))return Reflect.get(dp,i,s);if(i==="hasOwnProperty")return eS}const a=Reflect.get(n,i,s);return(Zs(i)?pw.has(i):GE(i))||(t||yt(n,"get",i),e)?a:rt(a)?o&&gd(i)?a:a.value:Ue(a)?t?_w(a):xd(a):a}}const tS=gw(),rS=gw(!0);function gw(t=!1){return function(r,n,i,s){let o=r[n];if(ki(o)&&rt(o)&&!rt(i))return!1;if(!t&&(!Ua(i)&&!ki(i)&&(o=Ne(o),i=Ne(i)),!we(r)&&rt(o)&&!rt(i)))return o.value=i,!0;const a=we(r)&&gd(n)?Number(n)t,Tl=t=>Reflect.getPrototypeOf(t);function Bo(t,e,r=!1,n=!1){t=t.__v_raw;const i=Ne(t),s=Ne(e);r||(e!==s&&yt(i,"get",e),yt(i,"get",s));const{has:o}=Tl(i),a=n?Ed:r?Ad:to;if(o.call(i,e))return a(t.get(e));if(o.call(i,s))return a(t.get(s));t!==i&&t.get(e)}function Fo(t,e=!1){const r=this.__v_raw,n=Ne(r),i=Ne(t);return e||(t!==i&&yt(n,"has",t),yt(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)}function Uo(t,e=!1){return t=t.__v_raw,!e&&yt(Ne(t),"iterate",Fn),Reflect.get(t,"size",t)}function hp(t){t=Ne(t);const e=Ne(this);return Tl(e).has.call(e,t)||(e.add(t),Lr(e,"add",t,t)),this}function pp(t,e){e=Ne(e);const r=Ne(this),{has:n,get:i}=Tl(r);let s=n.call(r,t);s||(t=Ne(t),s=n.call(r,t));const o=i.call(r,t);return r.set(t,e),s?eo(e,o)&&Lr(r,"set",t,e):Lr(r,"add",t,e),this}function gp(t){const e=Ne(this),{has:r,get:n}=Tl(e);let i=r.call(e,t);i||(t=Ne(t),i=r.call(e,t)),n&&n.call(e,t);const s=e.delete(t);return i&&Lr(e,"delete",t,void 0),s}function mp(){const t=Ne(this),e=t.size!==0,r=t.clear();return e&&Lr(t,"clear",void 0,void 0),r}function jo(t,e){return function(n,i){const s=this,o=s.__v_raw,a=Ne(o),l=e?Ed:t?Ad:to;return!t&&yt(a,"iterate",Fn),o.forEach((u,c)=>n.call(i,l(u),l(c),s))}}function zo(t,e,r){return function(...n){const i=this.__v_raw,s=Ne(i),o=Mi(s),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=i[t](...n),c=r?Ed:e?Ad:to;return!e&&yt(s,"iterate",l?rf:Fn),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Gr(t){return function(...e){return t==="delete"?!1:this}}function lS(){const t={get(s){return Bo(this,s)},get size(){return Uo(this)},has:Fo,add:hp,set:pp,delete:gp,clear:mp,forEach:jo(!1,!1)},e={get(s){return Bo(this,s,!1,!0)},get size(){return Uo(this)},has:Fo,add:hp,set:pp,delete:gp,clear:mp,forEach:jo(!1,!0)},r={get(s){return Bo(this,s,!0)},get size(){return Uo(this,!0)},has(s){return Fo.call(this,s,!0)},add:Gr("add"),set:Gr("set"),delete:Gr("delete"),clear:Gr("clear"),forEach:jo(!0,!1)},n={get(s){return Bo(this,s,!0,!0)},get size(){return Uo(this,!0)},has(s){return Fo.call(this,s,!0)},add:Gr("add"),set:Gr("set"),delete:Gr("delete"),clear:Gr("clear"),forEach:jo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=zo(s,!1,!1),r[s]=zo(s,!0,!1),e[s]=zo(s,!1,!0),n[s]=zo(s,!0,!0)}),[t,r,e,n]}const[uS,cS,fS,dS]=lS();function Sd(t,e){const r=e?t?dS:fS:t?cS:uS;return(n,i,s)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(Pe(r,i)&&i in n?r:n,i,s)}const hS={get:Sd(!1,!1)},pS={get:Sd(!1,!0)},gS={get:Sd(!0,!1)},yw=new WeakMap,ww=new WeakMap,bw=new WeakMap,mS=new WeakMap;function yS(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wS(t){return t.__v_skip||!Object.isExtensible(t)?0:yS(NE(t))}function xd(t){return ki(t)?t:Td(t,!1,mw,hS,yw)}function bS(t){return Td(t,!1,aS,pS,ww)}function _w(t){return Td(t,!0,oS,gS,bw)}function Td(t,e,r,n,i){if(!Ue(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=i.get(t);if(s)return s;const o=wS(t);if(o===0)return t;const a=new Proxy(t,o===2?n:r);return i.set(t,a),a}function Ci(t){return ki(t)?Ci(t.__v_raw):!!(t&&t.__v_isReactive)}function ki(t){return!!(t&&t.__v_isReadonly)}function Ua(t){return!!(t&&t.__v_isShallow)}function vw(t){return Ci(t)||ki(t)}function Ne(t){const e=t&&t.__v_raw;return e?Ne(e):t}function Ew(t){return Ba(t,"__v_skip",!0),t}const to=t=>Ue(t)?xd(t):t,Ad=t=>Ue(t)?_w(t):t;function Sw(t){on&&jt&&(t=Ne(t),hw(t.dep||(t.dep=bd())))}function xw(t,e){t=Ne(t);const r=t.dep;r&&nf(r)}function rt(t){return!!(t&&t.__v_isRef===!0)}function vW(t){return _S(t,!1)}function _S(t,e){return rt(t)?t:new vS(t,e)}class vS{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:Ne(e),this._value=r?e:to(e)}get value(){return Sw(this),this._value}set value(e){const r=this.__v_isShallow||Ua(e)||ki(e);e=r?e:Ne(e),eo(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:to(e),xw(this))}}function ES(t){return rt(t)?t.value:t}const SS={get:(t,e,r)=>ES(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const i=t[e];return rt(i)&&!rt(r)?(i.value=r,!0):Reflect.set(t,e,r,n)}};function Tw(t){return Ci(t)?t:new Proxy(t,SS)}class xS{constructor(e,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new _d(e,()=>{this._dirty||(this._dirty=!0,xw(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=Ne(this);return Sw(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function TS(t,e,r=!1){let n,i;const s=Ae(t);return s?(n=t,i=qt):(n=t.get,i=t.set),new xS(n,i,s||!i,r)}function an(t,e,r,n){let i;try{i=n?t(...n):t()}catch(s){Al(s,e,r)}return i}function Yt(t,e,r,n){if(Ae(t)){const s=an(t,e,r,n);return s&&sw(s)&&s.catch(o=>{Al(o,e,r)}),s}const i=[];for(let s=0;s>>1;no(tt[n])nr&&tt.splice(e,1)}function OS(t){we(t)?Ii.push(...t):(!xr||!xr.includes(t,t.allowRecurse?On+1:On))&&Ii.push(t),Mw()}function yp(t,e=ro?nr+1:0){for(;eno(r)-no(n)),On=0;Ont.id==null?1/0:t.id,PS=(t,e)=>{const r=no(t)-no(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function Iw(t){sf=!1,ro=!0,tt.sort(PS);const e=qt;try{for(nr=0;nrHe(h)?h.trim():h)),f&&(i=r.map(Fa))}let a,l=n[a=Lu(e)]||n[a=Lu(hr(e))];!l&&s&&(l=n[a=Lu(is(e))]),l&&Yt(l,t,6,i);const u=n[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Yt(u,t,6,i)}}function Ow(t,e,r=!1){const n=e.emitsCache,i=n.get(t);if(i!==void 0)return i;const s=t.emits;let o={},a=!1;if(!Ae(t)){const l=u=>{const c=Ow(u,e,!0);c&&(a=!0,Ye(o,c))};!r&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!s&&!a?(Ue(t)&&n.set(t,null),null):(we(s)?s.forEach(l=>o[l]=null):Ye(o,s),Ue(t)&&n.set(t,o),o)}function Ml(t,e){return!t||!El(e)?!1:(e=e.slice(2).replace(/Once$/,""),Pe(t,e[0].toLowerCase()+e.slice(1))||Pe(t,is(e))||Pe(t,e))}let nt=null,Cl=null;function ja(t){const e=nt;return nt=t,Cl=t&&t.type.__scopeId||null,e}function EW(t){Cl=t}function SW(){Cl=null}function LS(t,e=nt,r){if(!e||t._n)return t;const n=(...i)=>{n._d&&Ip(-1);const s=ja(e);let o;try{o=t(...i)}finally{ja(s),n._d&&Ip(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Nu(t){const{type:e,vnode:r,proxy:n,withProxy:i,props:s,propsOptions:[o],slots:a,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:h,ctx:g,inheritAttrs:y}=t;let b,E;const _=ja(t);try{if(r.shapeFlag&4){const T=i||n;b=rr(c.call(T,T,f,s,h,d,g)),E=l}else{const T=e;b=rr(T.length>1?T(s,{attrs:l,slots:a,emit:u}):T(s,null)),E=e.props?l:NS(l)}}catch(T){Hs.length=0,Al(T,t,1),b=Kt(cn)}let v=b;if(E&&y!==!1){const T=Object.keys(E),{shapeFlag:M}=v;T.length&&M&7&&(o&&T.some(hd)&&(E=$S(E,o)),v=Di(v,E))}return r.dirs&&(v=Di(v),v.dirs=v.dirs?v.dirs.concat(r.dirs):r.dirs),r.transition&&(v.transition=r.transition),b=v,ja(_),b}const NS=t=>{let e;for(const r in t)(r==="class"||r==="style"||El(r))&&((e||(e={}))[r]=t[r]);return e},$S=(t,e)=>{const r={};for(const n in t)(!hd(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function kS(t,e,r){const{props:n,children:i,component:s}=t,{props:o,children:a,patchFlag:l}=e,u=s.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?wp(n,o,u):!!o;if(l&8){const c=e.dynamicProps;for(let f=0;ft.__isSuspense;function FS(t,e){e&&e.pendingBranch?we(t)?e.effects.push(...t):e.effects.push(t):OS(t)}function xW(t,e){return Id(t,null,e)}const Ho={};function $u(t,e,r){return Id(t,e,r)}function Id(t,e,{immediate:r,deep:n,flush:i,onTrack:s,onTrigger:o}=Fe){var a;const l=qE()===((a=Xe)==null?void 0:a.scope)?Xe:null;let u,c=!1,f=!1;if(rt(t)?(u=()=>t.value,c=Ua(t)):Ci(t)?(u=()=>t,n=!0):we(t)?(f=!0,c=t.some(T=>Ci(T)||Ua(T)),u=()=>t.map(T=>{if(rt(T))return T.value;if(Ci(T))return Rn(T);if(Ae(T))return an(T,l,2)})):Ae(t)?e?u=()=>an(t,l,2):u=()=>{if(!(l&&l.isUnmounted))return d&&d(),Yt(t,l,3,[h])}:u=qt,e&&n){const T=u;u=()=>Rn(T())}let d,h=T=>{d=_.onStop=()=>{an(T,l,4)}},g;if(so)if(h=qt,e?r&&Yt(e,l,3,[u(),f?[]:void 0,h]):u(),i==="sync"){const T=D1();g=T.__watcherHandles||(T.__watcherHandles=[])}else return qt;let y=f?new Array(t.length).fill(Ho):Ho;const b=()=>{if(_.active)if(e){const T=_.run();(n||c||(f?T.some((M,I)=>eo(M,y[I])):eo(T,y)))&&(d&&d(),Yt(e,l,3,[T,y===Ho?void 0:f&&y[0]===Ho?[]:y,h]),y=T)}else _.run()};b.allowRecurse=!!e;let E;i==="sync"?E=b:i==="post"?E=()=>pt(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),E=()=>Cd(b));const _=new _d(u,E);e?r?b():y=_.run():i==="post"?pt(_.run.bind(_),l&&l.suspense):_.run();const v=()=>{_.stop(),l&&l.scope&&pd(l.scope.effects,_)};return g&&g.push(v),v}function US(t,e,r){const n=this.proxy,i=He(t)?t.includes(".")?Pw(n,t):()=>n[t]:t.bind(n,n);let s;Ae(e)?s=e:(s=e.handler,r=e);const o=Xe;Bi(this);const a=Id(i,s.bind(n),r);return o?Bi(o):Un(),a}function Pw(t,e){const r=e.split(".");return()=>{let n=t;for(let i=0;i{Rn(r,e)});else if(aw(t))for(const r in t)Rn(t[r],e);return t}function TW(t,e){const r=nt;if(r===null)return t;const n=Rl(r)||r.proxy,i=t.dirs||(t.dirs=[]);for(let s=0;sYe({name:t.name},e,{setup:t}))():t}const Us=t=>!!t.type.__asyncLoader,Rw=t=>t.type.__isKeepAlive;function jS(t,e){Lw(t,"a",e)}function zS(t,e){Lw(t,"da",e)}function Lw(t,e,r=Xe){const n=t.__wdc||(t.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Il(e,n,r),r){let i=r.parent;for(;i&&i.parent;)Rw(i.parent.vnode)&&HS(n,e,r,i),i=i.parent}}function HS(t,e,r,n){const i=Il(e,t,n,!0);Nw(()=>{pd(n[e],i)},r)}function Il(t,e,r=Xe,n=!1){if(r){const i=r[t]||(r[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(r.isUnmounted)return;ss(),Bi(r);const a=Yt(e,r,t,o);return Un(),os(),a});return n?i.unshift(s):i.push(s),s}}const zr=t=>(e,r=Xe)=>(!so||t==="sp")&&Il(t,(...n)=>e(...n),r),WS=zr("bm"),VS=zr("m"),qS=zr("bu"),YS=zr("u"),KS=zr("bum"),Nw=zr("um"),GS=zr("sp"),XS=zr("rtg"),QS=zr("rtc");function JS(t,e=Xe){Il("ec",t,e)}const $w="components";function MW(t,e){return e1($w,t,!0,e)||t}const ZS=Symbol.for("v-ndc");function e1(t,e,r=!0,n=!1){const i=nt||Xe;if(i){const s=i.type;if(t===$w){const a=L1(s,!1);if(a&&(a===e||a===hr(e)||a===xl(hr(e))))return s}const o=bp(i[t]||s[t],e)||bp(i.appContext[t],e);return!o&&n?s:o}}function bp(t,e){return t&&(t[e]||t[hr(e)]||t[xl(hr(e))])}function CW(t,e,r,n){let i;const s=r&&r[n];if(we(t)||He(t)){i=new Array(t.length);for(let o=0,a=t.length;oe(o,a,void 0,s&&s[a]));else{const o=Object.keys(t);i=new Array(o.length);for(let a=0,l=o.length;aKw(e)?!(e.type===cn||e.type===Ft&&!kw(e.children)):!0)?t:null}const of=t=>t?Qw(t)?Rl(t)||t.proxy:of(t.parent):null,js=Ye(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>of(t.parent),$root:t=>of(t.root),$emit:t=>t.emit,$options:t=>Od(t),$forceUpdate:t=>t.f||(t.f=()=>Cd(t.update)),$nextTick:t=>t.n||(t.n=MS.bind(t.proxy)),$watch:t=>US.bind(t)}),ku=(t,e)=>t!==Fe&&!t.__isScriptSetup&&Pe(t,e),t1={get({_:t},e){const{ctx:r,setupState:n,data:i,props:s,accessCache:o,type:a,appContext:l}=t;let u;if(e[0]!=="$"){const h=o[e];if(h!==void 0)switch(h){case 1:return n[e];case 2:return i[e];case 4:return r[e];case 3:return s[e]}else{if(ku(n,e))return o[e]=1,n[e];if(i!==Fe&&Pe(i,e))return o[e]=2,i[e];if((u=t.propsOptions[0])&&Pe(u,e))return o[e]=3,s[e];if(r!==Fe&&Pe(r,e))return o[e]=4,r[e];af&&(o[e]=0)}}const c=js[e];let f,d;if(c)return e==="$attrs"&&yt(t,"get",e),c(t);if((f=a.__cssModules)&&(f=f[e]))return f;if(r!==Fe&&Pe(r,e))return o[e]=4,r[e];if(d=l.config.globalProperties,Pe(d,e))return d[e]},set({_:t},e,r){const{data:n,setupState:i,ctx:s}=t;return ku(i,e)?(i[e]=r,!0):n!==Fe&&Pe(n,e)?(n[e]=r,!0):Pe(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:i,propsOptions:s}},o){let a;return!!r[o]||t!==Fe&&Pe(t,o)||ku(e,o)||(a=s[0])&&Pe(a,o)||Pe(n,o)||Pe(js,o)||Pe(i.config.globalProperties,o)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Pe(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function _p(t){return we(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let af=!0;function r1(t){const e=Od(t),r=t.proxy,n=t.ctx;af=!1,e.beforeCreate&&vp(e.beforeCreate,t,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:g,activated:y,deactivated:b,beforeDestroy:E,beforeUnmount:_,destroyed:v,unmounted:T,render:M,renderTracked:I,renderTriggered:$,errorCaptured:F,serverPrefetch:L,expose:U,inheritAttrs:k,components:W,directives:D,filters:O}=e;if(u&&n1(u,n,null),o)for(const H in o){const K=o[H];Ae(K)&&(n[H]=K.bind(r))}if(i){const H=i.call(r,r);Ue(H)&&(t.data=xd(H))}if(af=!0,s)for(const H in s){const K=s[H],X=Ae(K)?K.bind(r,r):Ae(K.get)?K.get.bind(r,r):qt,Z=!Ae(K)&&Ae(K.set)?K.set.bind(r):qt,ce=$1({get:X,set:Z});Object.defineProperty(n,H,{enumerable:!0,configurable:!0,get:()=>ce.value,set:pe=>ce.value=pe})}if(a)for(const H in a)Dw(a[H],n,r,H);if(l){const H=Ae(l)?l.call(r):l;Reflect.ownKeys(H).forEach(K=>{u1(K,H[K])})}c&&vp(c,t,"c");function Q(H,K){we(K)?K.forEach(X=>H(X.bind(r))):K&&H(K.bind(r))}if(Q(WS,f),Q(VS,d),Q(qS,h),Q(YS,g),Q(jS,y),Q(zS,b),Q(JS,F),Q(QS,I),Q(XS,$),Q(KS,_),Q(Nw,T),Q(GS,L),we(U))if(U.length){const H=t.exposed||(t.exposed={});U.forEach(K=>{Object.defineProperty(H,K,{get:()=>r[K],set:X=>r[K]=X})})}else t.exposed||(t.exposed={});M&&t.render===qt&&(t.render=M),k!=null&&(t.inheritAttrs=k),W&&(t.components=W),D&&(t.directives=D)}function n1(t,e,r=qt){we(t)&&(t=lf(t));for(const n in t){const i=t[n];let s;Ue(i)?"default"in i?s=ga(i.from||n,i.default,!0):s=ga(i.from||n):s=ga(i),rt(s)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):e[n]=s}}function vp(t,e,r){Yt(we(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function Dw(t,e,r,n){const i=n.includes(".")?Pw(r,n):()=>r[n];if(He(t)){const s=e[t];Ae(s)&&$u(i,s)}else if(Ae(t))$u(i,t.bind(r));else if(Ue(t))if(we(t))t.forEach(s=>Dw(s,e,r,n));else{const s=Ae(t.handler)?t.handler.bind(r):e[t.handler];Ae(s)&&$u(i,s,t)}}function Od(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=t.appContext,a=s.get(e);let l;return a?l=a:!i.length&&!r&&!n?l=e:(l={},i.length&&i.forEach(u=>za(l,u,o,!0)),za(l,e,o)),Ue(e)&&s.set(e,l),l}function za(t,e,r,n=!1){const{mixins:i,extends:s}=e;s&&za(t,s,r,!0),i&&i.forEach(o=>za(t,o,r,!0));for(const o in e)if(!(n&&o==="expose")){const a=i1[o]||r&&r[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const i1={data:Ep,props:Sp,emits:Sp,methods:Rs,computed:Rs,beforeCreate:ot,created:ot,beforeMount:ot,mounted:ot,beforeUpdate:ot,updated:ot,beforeDestroy:ot,beforeUnmount:ot,destroyed:ot,unmounted:ot,activated:ot,deactivated:ot,errorCaptured:ot,serverPrefetch:ot,components:Rs,directives:Rs,watch:o1,provide:Ep,inject:s1};function Ep(t,e){return e?t?function(){return Ye(Ae(t)?t.call(this,this):t,Ae(e)?e.call(this,this):e)}:e:t}function s1(t,e){return Rs(lf(t),lf(e))}function lf(t){if(we(t)){const e={};for(let r=0;r1)return r&&Ae(e)?e.call(n&&n.proxy):e}}function c1(t,e,r,n=!1){const i={},s={};Ba(s,Pl,1),t.propsDefaults=Object.create(null),Fw(t,e,i,s);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);r?t.props=n?i:bS(i):t.type.props?t.props=i:t.props=s,t.attrs=s}function f1(t,e,r,n){const{props:i,attrs:s,vnode:{patchFlag:o}}=t,a=Ne(i),[l]=t.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,h]=Uw(f,e,!0);Ye(o,d),h&&a.push(...h)};!r&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!s&&!l)return Ue(t)&&n.set(t,Ai),Ai;if(we(s))for(let c=0;c-1,h[1]=y<0||g-1||Pe(h,"default"))&&a.push(f)}}}const u=[o,a];return Ue(t)&&n.set(t,u),u}function xp(t){return t[0]!=="$"}function Tp(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function Ap(t,e){return Tp(t)===Tp(e)}function Mp(t,e){return we(e)?e.findIndex(r=>Ap(r,t)):Ae(e)&&Ap(e,t)?0:-1}const jw=t=>t[0]==="_"||t==="$stable",Pd=t=>we(t)?t.map(rr):[rr(t)],d1=(t,e,r)=>{if(e._n)return e;const n=LS((...i)=>Pd(e(...i)),r);return n._c=!1,n},zw=(t,e,r)=>{const n=t._ctx;for(const i in t){if(jw(i))continue;const s=t[i];if(Ae(s))e[i]=d1(i,s,n);else if(s!=null){const o=Pd(s);e[i]=()=>o}}},Hw=(t,e)=>{const r=Pd(e);t.slots.default=()=>r},h1=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=Ne(e),Ba(e,"_",r)):zw(e,t.slots={})}else t.slots={},e&&Hw(t,e);Ba(t.slots,Pl,1)},p1=(t,e,r)=>{const{vnode:n,slots:i}=t;let s=!0,o=Fe;if(n.shapeFlag&32){const a=e._;a?r&&a===1?s=!1:(Ye(i,e),!r&&a===1&&delete i._):(s=!e.$stable,zw(e,i)),o=e}else e&&(Hw(t,e),o={default:1});if(s)for(const a in i)!jw(a)&&!(a in o)&&delete i[a]};function cf(t,e,r,n,i=!1){if(we(t)){t.forEach((d,h)=>cf(d,e&&(we(e)?e[h]:e),r,n,i));return}if(Us(n)&&!i)return;const s=n.shapeFlag&4?Rl(n.component)||n.component.proxy:n.el,o=i?null:s,{i:a,r:l}=t,u=e&&e.r,c=a.refs===Fe?a.refs={}:a.refs,f=a.setupState;if(u!=null&&u!==l&&(He(u)?(c[u]=null,Pe(f,u)&&(f[u]=null)):rt(u)&&(u.value=null)),Ae(l))an(l,a,12,[o,c]);else{const d=He(l),h=rt(l);if(d||h){const g=()=>{if(t.f){const y=d?Pe(f,l)?f[l]:c[l]:l.value;i?we(y)&&pd(y,s):we(y)?y.includes(s)||y.push(s):d?(c[l]=[s],Pe(f,l)&&(f[l]=c[l])):(l.value=[s],t.k&&(c[t.k]=l.value))}else d?(c[l]=o,Pe(f,l)&&(f[l]=o)):h&&(l.value=o,t.k&&(c[t.k]=o))};o?(g.id=-1,pt(g,r)):g()}}}const pt=FS;function g1(t){return m1(t)}function m1(t,e){const r=Zc();r.__VUE__=!0;const{insert:n,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=qt,insertStaticContent:g}=t,y=(w,S,A,B=null,z=null,q=null,ie=!1,re=null,ae=!!S.dynamicChildren)=>{if(w===S)return;w&&!gs(w,S)&&(B=Y(w),pe(w,z,q,!0),w=null),S.patchFlag===-2&&(ae=!1,S.dynamicChildren=null);const{type:se,ref:he,shapeFlag:fe}=S;switch(se){case Ol:b(w,S,A,B);break;case cn:E(w,S,A,B);break;case ma:w==null&&_(S,A,B,ie);break;case Ft:W(w,S,A,B,z,q,ie,re,ae);break;default:fe&1?M(w,S,A,B,z,q,ie,re,ae):fe&6?D(w,S,A,B,z,q,ie,re,ae):(fe&64||fe&128)&&se.process(w,S,A,B,z,q,ie,re,ae,ee)}he!=null&&z&&cf(he,w&&w.ref,q,S||w,!S)},b=(w,S,A,B)=>{if(w==null)n(S.el=a(S.children),A,B);else{const z=S.el=w.el;S.children!==w.children&&u(z,S.children)}},E=(w,S,A,B)=>{w==null?n(S.el=l(S.children||""),A,B):S.el=w.el},_=(w,S,A,B)=>{[w.el,w.anchor]=g(w.children,S,A,B,w.el,w.anchor)},v=({el:w,anchor:S},A,B)=>{let z;for(;w&&w!==S;)z=d(w),n(w,A,B),w=z;n(S,A,B)},T=({el:w,anchor:S})=>{let A;for(;w&&w!==S;)A=d(w),i(w),w=A;i(S)},M=(w,S,A,B,z,q,ie,re,ae)=>{ie=ie||S.type==="svg",w==null?I(S,A,B,z,q,ie,re,ae):L(w,S,z,q,ie,re,ae)},I=(w,S,A,B,z,q,ie,re)=>{let ae,se;const{type:he,props:fe,shapeFlag:ge,transition:C,dirs:N}=w;if(ae=w.el=o(w.type,q,fe&&fe.is,fe),ge&8?c(ae,w.children):ge&16&&F(w.children,ae,null,B,z,q&&he!=="foreignObject",ie,re),N&&xn(w,null,B,"created"),$(ae,w,w.scopeId,ie,B),fe){for(const p in fe)p!=="value"&&!ha(p)&&s(ae,p,null,fe[p],q,w.children,B,z,G);"value"in fe&&s(ae,"value",null,fe.value),(se=fe.onVnodeBeforeMount)&&Jt(se,B,w)}N&&xn(w,null,B,"beforeMount");const x=(!z||z&&!z.pendingBranch)&&C&&!C.persisted;x&&C.beforeEnter(ae),n(ae,S,A),((se=fe&&fe.onVnodeMounted)||x||N)&&pt(()=>{se&&Jt(se,B,w),x&&C.enter(ae),N&&xn(w,null,B,"mounted")},z)},$=(w,S,A,B,z)=>{if(A&&h(w,A),B)for(let q=0;q{for(let se=ae;se{const re=S.el=w.el;let{patchFlag:ae,dynamicChildren:se,dirs:he}=S;ae|=w.patchFlag&16;const fe=w.props||Fe,ge=S.props||Fe;let C;A&&Tn(A,!1),(C=ge.onVnodeBeforeUpdate)&&Jt(C,A,S,w),he&&xn(S,w,A,"beforeUpdate"),A&&Tn(A,!0);const N=z&&S.type!=="foreignObject";if(se?U(w.dynamicChildren,se,re,A,B,N,q):ie||K(w,S,re,null,A,B,N,q,!1),ae>0){if(ae&16)k(re,S,fe,ge,A,B,z);else if(ae&2&&fe.class!==ge.class&&s(re,"class",null,ge.class,z),ae&4&&s(re,"style",fe.style,ge.style,z),ae&8){const x=S.dynamicProps;for(let p=0;p{C&&Jt(C,A,S,w),he&&xn(S,w,A,"updated")},B)},U=(w,S,A,B,z,q,ie)=>{for(let re=0;re{if(A!==B){if(A!==Fe)for(const re in A)!ha(re)&&!(re in B)&&s(w,re,A[re],null,ie,S.children,z,q,G);for(const re in B){if(ha(re))continue;const ae=B[re],se=A[re];ae!==se&&re!=="value"&&s(w,re,se,ae,ie,S.children,z,q,G)}"value"in B&&s(w,"value",A.value,B.value)}},W=(w,S,A,B,z,q,ie,re,ae)=>{const se=S.el=w?w.el:a(""),he=S.anchor=w?w.anchor:a("");let{patchFlag:fe,dynamicChildren:ge,slotScopeIds:C}=S;C&&(re=re?re.concat(C):C),w==null?(n(se,A,B),n(he,A,B),F(S.children,A,he,z,q,ie,re,ae)):fe>0&&fe&64&&ge&&w.dynamicChildren?(U(w.dynamicChildren,ge,A,z,q,ie,re),(S.key!=null||z&&S===z.subTree)&&Rd(w,S,!0)):K(w,S,A,he,z,q,ie,re,ae)},D=(w,S,A,B,z,q,ie,re,ae)=>{S.slotScopeIds=re,w==null?S.shapeFlag&512?z.ctx.activate(S,A,B,ie,ae):O(S,A,B,z,q,ie,ae):j(w,S,ae)},O=(w,S,A,B,z,q,ie)=>{const re=w.component=C1(w,B,z);if(Rw(w)&&(re.ctx.renderer=ee),I1(re),re.asyncDep){if(z&&z.registerDep(re,Q),!w.el){const ae=re.subTree=Kt(cn);E(null,ae,S,A)}return}Q(re,w,S,A,z,q,ie)},j=(w,S,A)=>{const B=S.component=w.component;if(kS(w,S,A))if(B.asyncDep&&!B.asyncResolved){H(B,S,A);return}else B.next=S,IS(B.update),B.update();else S.el=w.el,B.vnode=S},Q=(w,S,A,B,z,q,ie)=>{const re=()=>{if(w.isMounted){let{next:he,bu:fe,u:ge,parent:C,vnode:N}=w,x=he,p;Tn(w,!1),he?(he.el=N.el,H(w,he,ie)):he=N,fe&&pa(fe),(p=he.props&&he.props.onVnodeBeforeUpdate)&&Jt(p,C,he,N),Tn(w,!0);const m=Nu(w),R=w.subTree;w.subTree=m,y(R,m,f(R.el),Y(R),w,z,q),he.el=m.el,x===null&&DS(w,m.el),ge&&pt(ge,z),(p=he.props&&he.props.onVnodeUpdated)&&pt(()=>Jt(p,C,he,N),z)}else{let he;const{el:fe,props:ge}=S,{bm:C,m:N,parent:x}=w,p=Us(S);if(Tn(w,!1),C&&pa(C),!p&&(he=ge&&ge.onVnodeBeforeMount)&&Jt(he,x,S),Tn(w,!0),fe&&P){const m=()=>{w.subTree=Nu(w),P(fe,w.subTree,w,z,null)};p?S.type.__asyncLoader().then(()=>!w.isUnmounted&&m()):m()}else{const m=w.subTree=Nu(w);y(null,m,A,B,w,z,q),S.el=m.el}if(N&&pt(N,z),!p&&(he=ge&&ge.onVnodeMounted)){const m=S;pt(()=>Jt(he,x,m),z)}(S.shapeFlag&256||x&&Us(x.vnode)&&x.vnode.shapeFlag&256)&&w.a&&pt(w.a,z),w.isMounted=!0,S=A=B=null}},ae=w.effect=new _d(re,()=>Cd(se),w.scope),se=w.update=()=>ae.run();se.id=w.uid,Tn(w,!0),se()},H=(w,S,A)=>{S.component=w;const B=w.vnode.props;w.vnode=S,w.next=null,f1(w,S.props,B,A),p1(w,S.children,A),ss(),yp(),os()},K=(w,S,A,B,z,q,ie,re,ae=!1)=>{const se=w&&w.children,he=w?w.shapeFlag:0,fe=S.children,{patchFlag:ge,shapeFlag:C}=S;if(ge>0){if(ge&128){Z(se,fe,A,B,z,q,ie,re,ae);return}else if(ge&256){X(se,fe,A,B,z,q,ie,re,ae);return}}C&8?(he&16&&G(se,z,q),fe!==se&&c(A,fe)):he&16?C&16?Z(se,fe,A,B,z,q,ie,re,ae):G(se,z,q,!0):(he&8&&c(A,""),C&16&&F(fe,A,B,z,q,ie,re,ae))},X=(w,S,A,B,z,q,ie,re,ae)=>{w=w||Ai,S=S||Ai;const se=w.length,he=S.length,fe=Math.min(se,he);let ge;for(ge=0;gehe?G(w,z,q,!0,!1,fe):F(S,A,B,z,q,ie,re,ae,fe)},Z=(w,S,A,B,z,q,ie,re,ae)=>{let se=0;const he=S.length;let fe=w.length-1,ge=he-1;for(;se<=fe&&se<=ge;){const C=w[se],N=S[se]=ae?en(S[se]):rr(S[se]);if(gs(C,N))y(C,N,A,null,z,q,ie,re,ae);else break;se++}for(;se<=fe&&se<=ge;){const C=w[fe],N=S[ge]=ae?en(S[ge]):rr(S[ge]);if(gs(C,N))y(C,N,A,null,z,q,ie,re,ae);else break;fe--,ge--}if(se>fe){if(se<=ge){const C=ge+1,N=Cge)for(;se<=fe;)pe(w[se],z,q,!0),se++;else{const C=se,N=se,x=new Map;for(se=N;se<=ge;se++){const Me=S[se]=ae?en(S[se]):rr(S[se]);Me.key!=null&&x.set(Me.key,se)}let p,m=0;const R=ge-N+1;let V=!1,J=0;const te=new Array(R);for(se=0;se=R){pe(Me,z,q,!0);continue}let Ce;if(Me.key!=null)Ce=x.get(Me.key);else for(p=N;p<=ge;p++)if(te[p-N]===0&&gs(Me,S[p])){Ce=p;break}Ce===void 0?pe(Me,z,q,!0):(te[Ce-N]=se+1,Ce>=J?J=Ce:V=!0,y(Me,S[Ce],A,null,z,q,ie,re,ae),m++)}const Te=V?y1(te):Ai;for(p=Te.length-1,se=R-1;se>=0;se--){const Me=N+se,Ce=S[Me],$e=Me+1{const{el:q,type:ie,transition:re,children:ae,shapeFlag:se}=w;if(se&6){ce(w.component.subTree,S,A,B);return}if(se&128){w.suspense.move(S,A,B);return}if(se&64){ie.move(w,S,A,ee);return}if(ie===Ft){n(q,S,A);for(let fe=0;fere.enter(q),z);else{const{leave:fe,delayLeave:ge,afterLeave:C}=re,N=()=>n(q,S,A),x=()=>{fe(q,()=>{N(),C&&C()})};ge?ge(q,N,x):x()}else n(q,S,A)},pe=(w,S,A,B=!1,z=!1)=>{const{type:q,props:ie,ref:re,children:ae,dynamicChildren:se,shapeFlag:he,patchFlag:fe,dirs:ge}=w;if(re!=null&&cf(re,null,A,w,!0),he&256){S.ctx.deactivate(w);return}const C=he&1&&ge,N=!Us(w);let x;if(N&&(x=ie&&ie.onVnodeBeforeUnmount)&&Jt(x,S,w),he&6)be(w.component,A,B);else{if(he&128){w.suspense.unmount(A,B);return}C&&xn(w,null,S,"beforeUnmount"),he&64?w.type.remove(w,S,A,z,ee,B):se&&(q!==Ft||fe>0&&fe&64)?G(se,S,A,!1,!0):(q===Ft&&fe&384||!z&&he&16)&&G(ae,S,A),B&&de(w)}(N&&(x=ie&&ie.onVnodeUnmounted)||C)&&pt(()=>{x&&Jt(x,S,w),C&&xn(w,null,S,"unmounted")},A)},de=w=>{const{type:S,el:A,anchor:B,transition:z}=w;if(S===Ft){me(A,B);return}if(S===ma){T(w);return}const q=()=>{i(A),z&&!z.persisted&&z.afterLeave&&z.afterLeave()};if(w.shapeFlag&1&&z&&!z.persisted){const{leave:ie,delayLeave:re}=z,ae=()=>ie(A,q);re?re(w.el,q,ae):ae()}else q()},me=(w,S)=>{let A;for(;w!==S;)A=d(w),i(w),w=A;i(S)},be=(w,S,A)=>{const{bum:B,scope:z,update:q,subTree:ie,um:re}=w;B&&pa(B),z.stop(),q&&(q.active=!1,pe(ie,w,S,A)),re&&pt(re,S),pt(()=>{w.isUnmounted=!0},S),S&&S.pendingBranch&&!S.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===S.pendingId&&(S.deps--,S.deps===0&&S.resolve())},G=(w,S,A,B=!1,z=!1,q=0)=>{for(let ie=q;iew.shapeFlag&6?Y(w.component.subTree):w.shapeFlag&128?w.suspense.next():d(w.anchor||w.el),ne=(w,S,A)=>{w==null?S._vnode&&pe(S._vnode,null,null,!0):y(S._vnode||null,w,S,null,null,null,A),yp(),Cw(),S._vnode=w},ee={p:y,um:pe,m:ce,r:de,mt:O,mc:F,pc:K,pbc:U,n:Y,o:t};let ue,P;return e&&([ue,P]=e(ee)),{render:ne,hydrate:ue,createApp:l1(ne,ue)}}function Tn({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function Rd(t,e,r=!1){const n=t.children,i=e.children;if(we(n)&&we(i))for(let s=0;s>1,t[r[a]]0&&(e[n]=r[s-1]),r[s]=n)}}for(s=r.length,o=r[s-1];s-- >0;)r[s]=o,o=e[o];return r}const w1=t=>t.__isTeleport,zs=t=>t&&(t.disabled||t.disabled===""),Cp=t=>typeof SVGElement<"u"&&t instanceof SVGElement,ff=(t,e)=>{const r=t&&t.to;return He(r)?e?e(r):null:r},b1={__isTeleport:!0,process(t,e,r,n,i,s,o,a,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:g,createText:y,createComment:b}}=u,E=zs(e.props);let{shapeFlag:_,children:v,dynamicChildren:T}=e;if(t==null){const M=e.el=y(""),I=e.anchor=y("");h(M,r,n),h(I,r,n);const $=e.target=ff(e.props,g),F=e.targetAnchor=y("");$&&(h(F,$),o=o||Cp($));const L=(U,k)=>{_&16&&c(v,U,k,i,s,o,a,l)};E?L(r,I):$&&L($,F)}else{e.el=t.el;const M=e.anchor=t.anchor,I=e.target=t.target,$=e.targetAnchor=t.targetAnchor,F=zs(t.props),L=F?r:I,U=F?M:$;if(o=o||Cp(I),T?(d(t.dynamicChildren,T,L,i,s,o,a),Rd(t,e,!0)):l||f(t,e,L,U,i,s,o,a,!1),E)F||Wo(e,r,M,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const k=e.target=ff(e.props,g);k&&Wo(e,k,null,u,0)}else F&&Wo(e,I,$,u,1)}Ww(e)},remove(t,e,r,n,{um:i,o:{remove:s}},o){const{shapeFlag:a,children:l,anchor:u,targetAnchor:c,target:f,props:d}=t;if(f&&s(c),(o||!zs(d))&&(s(u),a&16))for(let h=0;h0?Wt||Ai:null,v1(),io>0&&Wt&&Wt.push(t),t}function PW(t,e,r,n,i,s){return qw(Xw(t,e,r,n,i,s,!0))}function Yw(t,e,r,n,i){return qw(Kt(t,e,r,n,i,!0))}function Kw(t){return t?t.__v_isVNode===!0:!1}function gs(t,e){return t.type===e.type&&t.key===e.key}const Pl="__vInternal",Gw=({key:t})=>t??null,ya=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?He(t)||rt(t)||Ae(t)?{i:nt,r:t,k:e,f:!!r}:t:null);function Xw(t,e=null,r=null,n=0,i=null,s=t===Ft?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Gw(e),ref:e&&ya(e),scopeId:Cl,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:s,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:nt};return a?(Ld(l,r),s&128&&t.normalize(l)):r&&(l.shapeFlag|=He(r)?8:16),io>0&&!o&&Wt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Wt.push(l),l}const Kt=E1;function E1(t,e=null,r=null,n=0,i=null,s=!1){if((!t||t===ZS)&&(t=cn),Kw(t)){const a=Di(t,e,!0);return r&&Ld(a,r),io>0&&!s&&Wt&&(a.shapeFlag&6?Wt[Wt.indexOf(t)]=a:Wt.push(a)),a.patchFlag|=-2,a}if(N1(t)&&(t=t.__vccOpts),e){e=S1(e);let{class:a,style:l}=e;a&&!He(a)&&(e.class=yd(a)),Ue(l)&&(vw(l)&&!we(l)&&(l=Ye({},l)),e.style=md(l))}const o=He(t)?1:BS(t)?128:w1(t)?64:Ue(t)?4:Ae(t)?2:0;return Xw(t,e,r,n,i,o,s,!0)}function S1(t){return t?vw(t)||Pl in t?Ye({},t):t:null}function Di(t,e,r=!1){const{props:n,ref:i,patchFlag:s,children:o}=t,a=e?T1(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&Gw(a),ref:e&&e.ref?r&&i?we(i)?i.concat(ya(e)):[i,ya(e)]:ya(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ft?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Di(t.ssContent),ssFallback:t.ssFallback&&Di(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function x1(t=" ",e=0){return Kt(Ol,null,t,e)}function RW(t,e){const r=Kt(ma,null,t);return r.staticCount=e,r}function LW(t="",e=!1){return e?(Vw(),Yw(cn,null,t)):Kt(cn,null,t)}function rr(t){return t==null||typeof t=="boolean"?Kt(cn):we(t)?Kt(Ft,null,t.slice()):typeof t=="object"?en(t):Kt(Ol,null,String(t))}function en(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Di(t)}function Ld(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(we(e))r=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),Ld(t,i()),i._c&&(i._d=!0));return}else{r=32;const i=e._;!i&&!(Pl in e)?e._ctx=nt:i===3&&nt&&(nt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Ae(e)?(e={default:e,_ctx:nt},r=32):(e=String(e),n&64?(r=16,e=[x1(e)]):r=8);t.children=e,t.shapeFlag|=r}function T1(...t){const e={};for(let r=0;rXe=t),Nd=t=>{ci.length>1?ci.forEach(e=>e(t)):ci[0](t)};const Bi=t=>{Nd(t),t.scope.on()},Un=()=>{Xe&&Xe.scope.off(),Nd(null)};function Qw(t){return t.vnode.shapeFlag&4}let so=!1;function I1(t,e=!1){so=e;const{props:r,children:n}=t.vnode,i=Qw(t);c1(t,r,i,e),h1(t,n);const s=i?O1(t,e):void 0;return so=!1,s}function O1(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=Ew(new Proxy(t.ctx,t1));const{setup:n}=r;if(n){const i=t.setupContext=n.length>1?R1(t):null;Bi(t),ss();const s=an(n,t,0,[t.props,i]);if(os(),Un(),sw(s)){if(s.then(Un,Un),e)return s.then(o=>{Pp(t,o,e)}).catch(o=>{Al(o,t,0)});t.asyncDep=s}else Pp(t,s,e)}else Jw(t,e)}function Pp(t,e,r){Ae(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ue(e)&&(t.setupState=Tw(e)),Jw(t,r)}let Rp;function Jw(t,e,r){const n=t.type;if(!t.render){if(!e&&Rp&&!n.render){const i=n.template||Od(t).template;if(i){const{isCustomElement:s,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=n,u=Ye(Ye({isCustomElement:s,delimiters:a},o),l);n.render=Rp(i,u)}}t.render=n.render||qt}Bi(t),ss(),r1(t),os(),Un()}function P1(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return yt(t,"get","$attrs"),e[r]}}))}function R1(t){const e=r=>{t.exposed=r||{}};return{get attrs(){return P1(t)},slots:t.slots,emit:t.emit,expose:e}}function Rl(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Tw(Ew(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in js)return js[r](t)},has(e,r){return r in e||r in js}}))}function L1(t,e=!0){return Ae(t)?t.displayName||t.name:t.name||e&&t.__name}function N1(t){return Ae(t)&&"__vccOpts"in t}const $1=(t,e)=>TS(t,e,so),k1=Symbol.for("v-scx"),D1=()=>ga(k1),B1="3.3.4",F1="http://www.w3.org/2000/svg",Pn=typeof document<"u"?document:null,Lp=Pn&&Pn.createElement("template"),U1={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const i=e?Pn.createElementNS(F1,t):Pn.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>Pn.createTextNode(t),createComment:t=>Pn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Pn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,i,s){const o=r?r.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),r),!(i===s||!(i=i.nextSibling)););else{Lp.innerHTML=n?`${t}`:t;const a=Lp.content;if(n){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,r)}return[o?o.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function j1(t,e,r){const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function z1(t,e,r){const n=t.style,i=He(r);if(r&&!i){if(e&&!He(e))for(const s in e)r[s]==null&&df(n,s,"");for(const s in r)df(n,s,r[s])}else{const s=n.display;i?e!==r&&(n.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(n.display=s)}}const Np=/\s*!important$/;function df(t,e,r){if(we(r))r.forEach(n=>df(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=H1(t,e);Np.test(r)?t.setProperty(is(n),r.replace(Np,""),"important"):t[n]=r}}const $p=["Webkit","Moz","ms"],Du={};function H1(t,e){const r=Du[e];if(r)return r;let n=hr(e);if(n!=="filter"&&n in t)return Du[e]=n;n=xl(n);for(let i=0;i<$p.length;i++){const s=$p[i]+n;if(s in t)return Du[e]=s}return e}const kp="http://www.w3.org/1999/xlink";function W1(t,e,r,n,i){if(n&&e.startsWith("xlink:"))r==null?t.removeAttributeNS(kp,e.slice(6,e.length)):t.setAttributeNS(kp,e,r);else{const s=zE(e);r==null||s&&!lw(r)?t.removeAttribute(e):t.setAttribute(e,s?"":r)}}function V1(t,e,r,n,i,s,o){if(e==="innerHTML"||e==="textContent"){n&&o(n,i,s),t[e]=r??"";return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){t._value=r;const u=a==="OPTION"?t.getAttribute("value"):t.value,c=r??"";u!==c&&(t.value=c),r==null&&t.removeAttribute(e);return}let l=!1;if(r===""||r==null){const u=typeof t[e];u==="boolean"?r=lw(r):r==null&&u==="string"?(r="",l=!0):u==="number"&&(r=0,l=!0)}try{t[e]=r}catch{}l&&t.removeAttribute(e)}function rn(t,e,r,n){t.addEventListener(e,r,n)}function q1(t,e,r,n){t.removeEventListener(e,r,n)}function Y1(t,e,r,n,i=null){const s=t._vei||(t._vei={}),o=s[e];if(n&&o)o.value=n;else{const[a,l]=K1(e);if(n){const u=s[e]=Q1(n,i);rn(t,a,u,l)}else o&&(q1(t,a,o,l),s[e]=void 0)}}const Dp=/(?:Once|Passive|Capture)$/;function K1(t){let e;if(Dp.test(t)){e={};let n;for(;n=t.match(Dp);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):is(t.slice(2)),e]}let Bu=0;const G1=Promise.resolve(),X1=()=>Bu||(G1.then(()=>Bu=0),Bu=Date.now());function Q1(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Yt(J1(n,r.value),e,5,[n])};return r.value=t,r.attached=X1(),r}function J1(t,e){if(we(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const Bp=/^on[a-z]/,Z1=(t,e,r,n,i=!1,s,o,a,l)=>{e==="class"?j1(t,n,i):e==="style"?z1(t,r,n):El(e)?hd(e)||Y1(t,e,r,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):ex(t,e,n,i))?V1(t,e,n,s,o,a,l):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),W1(t,e,n,i))};function ex(t,e,r,n){return n?!!(e==="innerHTML"||e==="textContent"||e in t&&Bp.test(e)&&Ae(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Bp.test(e)&&He(r)?!1:e in t}const Fi=t=>{const e=t.props["onUpdate:modelValue"]||!1;return we(e)?r=>pa(e,r):e};function tx(t){t.target.composing=!0}function Fp(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const NW={created(t,{modifiers:{lazy:e,trim:r,number:n}},i){t._assign=Fi(i);const s=n||i.props&&i.props.type==="number";rn(t,e?"change":"input",o=>{if(o.target.composing)return;let a=t.value;r&&(a=a.trim()),s&&(a=Fa(a)),t._assign(a)}),r&&rn(t,"change",()=>{t.value=t.value.trim()}),e||(rn(t,"compositionstart",tx),rn(t,"compositionend",Fp),rn(t,"change",Fp))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:n,number:i}},s){if(t._assign=Fi(s),t.composing||document.activeElement===t&&t.type!=="range"&&(r||n&&t.value.trim()===e||(i||t.type==="number")&&Fa(t.value)===e))return;const o=e??"";t.value!==o&&(t.value=o)}},$W={deep:!0,created(t,e,r){t._assign=Fi(r),rn(t,"change",()=>{const n=t._modelValue,i=oo(t),s=t.checked,o=t._assign;if(we(n)){const a=wd(n,i),l=a!==-1;if(s&&!l)o(n.concat(i));else if(!s&&l){const u=[...n];u.splice(a,1),o(u)}}else if(ns(n)){const a=new Set(n);s?a.add(i):a.delete(i),o(a)}else o(Zw(t,s))})},mounted:Up,beforeUpdate(t,e,r){t._assign=Fi(r),Up(t,e,r)}};function Up(t,{value:e,oldValue:r},n){t._modelValue=e,we(e)?t.checked=wd(e,n.props.value)>-1:ns(e)?t.checked=e.has(n.props.value):e!==r&&(t.checked=wo(e,Zw(t,!0)))}const kW={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const i=ns(e);rn(t,"change",()=>{const s=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>r?Fa(oo(o)):oo(o));t._assign(t.multiple?i?new Set(s):s:s[0])}),t._assign=Fi(n)},mounted(t,{value:e}){jp(t,e)},beforeUpdate(t,e,r){t._assign=Fi(r)},updated(t,{value:e}){jp(t,e)}};function jp(t,e){const r=t.multiple;if(!(r&&!we(e)&&!ns(e))){for(let n=0,i=t.options.length;n-1:s.selected=e.has(o);else if(wo(oo(s),e)){t.selectedIndex!==n&&(t.selectedIndex=n);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function oo(t){return"_value"in t?t._value:t.value}function Zw(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const rx=Ye({patchProp:Z1},U1);let zp;function nx(){return zp||(zp=g1(rx))}const DW=(...t)=>{const e=nx().createApp(...t),{mount:r}=e;return e.mount=n=>{const i=ix(n);if(!i)return;const s=e._component;!Ae(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const o=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function ix(t){return He(t)?document.querySelector(t):t}var xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sx(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ll(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var ox={};function e0(){throw new Error("setTimeout has not been defined")}function t0(){throw new Error("clearTimeout has not been defined")}var Qr=e0,Jr=t0;typeof ln.setTimeout=="function"&&(Qr=setTimeout);typeof ln.clearTimeout=="function"&&(Jr=clearTimeout);function r0(t){if(Qr===setTimeout)return setTimeout(t,0);if((Qr===e0||!Qr)&&setTimeout)return Qr=setTimeout,setTimeout(t,0);try{return Qr(t,0)}catch{try{return Qr.call(null,t,0)}catch{return Qr.call(this,t,0)}}}function ax(t){if(Jr===clearTimeout)return clearTimeout(t);if((Jr===t0||!Jr)&&clearTimeout)return Jr=clearTimeout,clearTimeout(t);try{return Jr(t)}catch{try{return Jr.call(null,t)}catch{return Jr.call(this,t)}}}var Tr=[],Oi=!1,Ln,wa=-1;function lx(){!Oi||!Ln||(Oi=!1,Ln.length?Tr=Ln.concat(Tr):wa=-1,Tr.length&&n0())}function n0(){if(!Oi){var t=r0(lx);Oi=!0;for(var e=Tr.length;e;){for(Ln=Tr,Tr=[];++wa1)for(var r=1;rthis.max?!1:(this.aliasToTopic[r]=e,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(e){return this.aliasToTopic[e]}clear(){this.aliasToTopic={}}}$d.default=$x;var Nl={},$l={exports:{}},hf={exports:{}},kd={exports:{}},Pi=typeof Reflect=="object"?Reflect:null,Hp=Pi&&typeof Pi.apply=="function"?Pi.apply:function(e,r,n){return Function.prototype.apply.call(e,r,n)},ba;Pi&&typeof Pi.ownKeys=="function"?ba=Pi.ownKeys:Object.getOwnPropertySymbols?ba=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:ba=function(e){return Object.getOwnPropertyNames(e)};function kx(t){console&&console.warn&&console.warn(t)}var s0=Number.isNaN||function(e){return e!==e};function ke(){ke.init.call(this)}kd.exports=ke;kd.exports.once=Ux;ke.EventEmitter=ke;ke.prototype._events=void 0;ke.prototype._eventsCount=0;ke.prototype._maxListeners=void 0;var Wp=10;function kl(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(ke,"defaultMaxListeners",{enumerable:!0,get:function(){return Wp},set:function(t){if(typeof t!="number"||t<0||s0(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");Wp=t}});ke.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};ke.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||s0(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function o0(t){return t._maxListeners===void 0?ke.defaultMaxListeners:t._maxListeners}ke.prototype.getMaxListeners=function(){return o0(this)};ke.prototype.emit=function(e){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[e];if(l===void 0)return!1;if(typeof l=="function")Hp(l,this,r);else for(var u=l.length,c=f0(l,u),n=0;n0&&o.length>i&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=o.length,kx(a)}return t}ke.prototype.addListener=function(e,r){return a0(this,e,r,!1)};ke.prototype.on=ke.prototype.addListener;ke.prototype.prependListener=function(e,r){return a0(this,e,r,!0)};function Dx(){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 l0(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=Dx.bind(n);return i.listener=r,n.wrapFn=i,i}ke.prototype.once=function(e,r){return kl(r),this.on(e,l0(this,e,r)),this};ke.prototype.prependOnceListener=function(e,r){return kl(r),this.prependListener(e,l0(this,e,r)),this};ke.prototype.removeListener=function(e,r){var n,i,s,o,a;if(kl(r),i=this._events,i===void 0)return this;if(n=i[e],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||r));else if(typeof n!="function"){for(s=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){a=n[o].listener,s=o;break}if(s<0)return this;s===0?n.shift():Bx(n,s),n.length===1&&(i[e]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",e,a||r)}return this};ke.prototype.off=ke.prototype.removeListener;ke.prototype.removeAllListeners=function(e){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var s=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(e,r[i]);return this};function u0(t,e,r){var n=t._events;if(n===void 0)return[];var i=n[e];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?Fx(i):f0(i,i.length)}ke.prototype.listeners=function(e){return u0(this,e,!0)};ke.prototype.rawListeners=function(e){return u0(this,e,!1)};ke.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):c0.call(t,e)};ke.prototype.listenerCount=c0;function c0(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}ke.prototype.eventNames=function(){return this._eventsCount>0?ba(this._events):[]};function f0(t,e){for(var r=new Array(e),n=0;n0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Wx(t){var e=p0(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Vx(t,e,r){return(e+r)*3/4-r}function qx(t){var e,r=p0(t),n=r[0],i=r[1],s=new zx(Vx(t,n,i)),o=0,a=i>0?n-4:n,l;for(l=0;l>16&255,s[o++]=e>>8&255,s[o++]=e&255;return i===2&&(e=At[t.charCodeAt(l)]<<2|At[t.charCodeAt(l+1)]>>4,s[o++]=e&255),i===1&&(e=At[t.charCodeAt(l)]<<10|At[t.charCodeAt(l+1)]<<4|At[t.charCodeAt(l+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function Yx(t){return ir[t>>18&63]+ir[t>>12&63]+ir[t>>6&63]+ir[t&63]}function Kx(t,e,r){for(var n,i=[],s=e;sa?a:o+s));return n===1?(e=t[r-1],i.push(ir[e>>2]+ir[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(ir[e>>10]+ir[e>>4&63]+ir[e<<2&63]+"=")),i.join("")}var Dd={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Dd.read=function(t,e,r,n,i){var s,o,a=i*8-n-1,l=(1<>1,c=-7,f=r?i-1:0,d=r?-1:1,h=t[e+f];for(f+=d,s=h&(1<<-c)-1,h>>=-c,c+=a;c>0;s=s*256+t[e+f],f+=d,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=n;c>0;o=o*256+t[e+f],f+=d,c-=8);if(s===0)s=1-u;else{if(s===l)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-u}return(h?-1:1)*o*Math.pow(2,s-n)};Dd.write=function(t,e,r,n,i,s){var o,a,l,u=s*8-i-1,c=(1<>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:s-1,g=n?1:-1,y=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?e+=d/l:e+=d*Math.pow(2,1-f),e*l>=2&&(o++,l/=2),o+f>=c?(a=0,o=c):o+f>=1?(a=(e*l-1)*Math.pow(2,i),o=o+f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+h]=a&255,h+=g,a/=256,i-=8);for(o=o<0;t[r+h]=o&255,h+=g,o/=256,u-=8);t[r+h-g]|=y*128};/*! +const ln=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{};function hd(t,e){const r=Object.create(null),n=t.split(",");for(let i=0;i!!r[i.toLowerCase()]:i=>!!r[i]}const Fe={},Ai=[],qt=()=>{},RE=()=>!1,LE=/^on[^a-z]/,Sl=t=>LE.test(t),pd=t=>t.startsWith("onUpdate:"),Ye=Object.assign,gd=(t,e)=>{const r=t.indexOf(e);r>-1&&t.splice(r,1)},NE=Object.prototype.hasOwnProperty,Pe=(t,e)=>NE.call(t,e),we=Array.isArray,Mi=t=>wo(t)==="[object Map]",ns=t=>wo(t)==="[object Set]",up=t=>wo(t)==="[object Date]",Ae=t=>typeof t=="function",He=t=>typeof t=="string",eo=t=>typeof t=="symbol",Ue=t=>t!==null&&typeof t=="object",ow=t=>Ue(t)&&Ae(t.then)&&Ae(t.catch),aw=Object.prototype.toString,wo=t=>aw.call(t),$E=t=>wo(t).slice(8,-1),lw=t=>wo(t)==="[object Object]",md=t=>He(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,pa=hd(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xl=t=>{const e=Object.create(null);return r=>e[r]||(e[r]=t(r))},kE=/-(\w)/g,hr=xl(t=>t.replace(kE,(e,r)=>r?r.toUpperCase():"")),DE=/\B([A-Z])/g,is=xl(t=>t.replace(DE,"-$1").toLowerCase()),Tl=xl(t=>t.charAt(0).toUpperCase()+t.slice(1)),Nu=xl(t=>t?`on${Tl(t)}`:""),to=(t,e)=>!Object.is(t,e),ga=(t,e)=>{for(let r=0;r{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:r})},Ua=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let cp;const ef=()=>cp||(cp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof ln<"u"?ln:{});function yd(t){if(we(t)){const e={};for(let r=0;r{if(r){const n=r.split(FE);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function wd(t){let e="";if(He(t))e=t;else if(we(t))for(let r=0;rbo(r,e))}const vW=t=>He(t)?t:t==null?"":we(t)||Ue(t)&&(t.toString===aw||!Ae(t.toString))?JSON.stringify(t,cw,2):String(t),cw=(t,e)=>e&&e.__v_isRef?cw(t,e.value):Mi(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:ns(e)?{[`Set(${e.size})`]:[...e.values()]}:Ue(e)&&!we(e)&&!lw(e)?String(e):e;let Bt;class VE{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Bt,!e&&Bt&&(this.index=(Bt.scopes||(Bt.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const r=Bt;try{return Bt=this,e()}finally{Bt=r}}}on(){Bt=this}off(){Bt=this.parent}stop(e){if(this._active){let r,n;for(r=0,n=this.effects.length;r{const e=new Set(t);return e.w=0,e.n=0,e},fw=t=>(t.w&un)>0,dw=t=>(t.n&un)>0,KE=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let r=0;for(let n=0;n{(c==="length"||c>=l)&&a.push(u)})}else switch(r!==void 0&&a.push(o.get(r)),e){case"add":we(t)?md(r)&&a.push(o.get("length")):(a.push(o.get(Fn)),Mi(t)&&a.push(o.get(nf)));break;case"delete":we(t)||(a.push(o.get(Fn)),Mi(t)&&a.push(o.get(nf)));break;case"set":Mi(t)&&a.push(o.get(Fn));break}if(a.length===1)a[0]&&sf(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);sf(_d(l))}}function sf(t,e){const r=we(t)?t:[...t];for(const n of r)n.computed&&dp(n);for(const n of r)n.computed||dp(n)}function dp(t,e){(t!==jt||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const XE=hd("__proto__,__v_isRef,__isVue"),gw=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(eo)),QE=Ed(),JE=Ed(!1,!0),ZE=Ed(!0),hp=eS();function eS(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...r){const n=Ne(this);for(let s=0,o=this.length;s{t[e]=function(...r){ss();const n=Ne(this)[e].apply(this,r);return os(),n}}),t}function tS(t){const e=Ne(this);return yt(e,"has",t),e.hasOwnProperty(t)}function Ed(t=!1,e=!1){return function(n,i,s){if(i==="__v_isReactive")return!t;if(i==="__v_isReadonly")return t;if(i==="__v_isShallow")return e;if(i==="__v_raw"&&s===(t?e?yS:_w:e?bw:ww).get(n))return n;const o=we(n);if(!t){if(o&&Pe(hp,i))return Reflect.get(hp,i,s);if(i==="hasOwnProperty")return tS}const a=Reflect.get(n,i,s);return(eo(i)?gw.has(i):XE(i))||(t||yt(n,"get",i),e)?a:rt(a)?o&&md(i)?a:a.value:Ue(a)?t?vw(a):Td(a):a}}const rS=mw(),nS=mw(!0);function mw(t=!1){return function(r,n,i,s){let o=r[n];if(ki(o)&&rt(o)&&!rt(i))return!1;if(!t&&(!ja(i)&&!ki(i)&&(o=Ne(o),i=Ne(i)),!we(r)&&rt(o)&&!rt(i)))return o.value=i,!0;const a=we(r)&&md(n)?Number(n)t,Al=t=>Reflect.getPrototypeOf(t);function Fo(t,e,r=!1,n=!1){t=t.__v_raw;const i=Ne(t),s=Ne(e);r||(e!==s&&yt(i,"get",e),yt(i,"get",s));const{has:o}=Al(i),a=n?Sd:r?Md:ro;if(o.call(i,e))return a(t.get(e));if(o.call(i,s))return a(t.get(s));t!==i&&t.get(e)}function Uo(t,e=!1){const r=this.__v_raw,n=Ne(r),i=Ne(t);return e||(t!==i&&yt(n,"has",t),yt(n,"has",i)),t===i?r.has(t):r.has(t)||r.has(i)}function jo(t,e=!1){return t=t.__v_raw,!e&&yt(Ne(t),"iterate",Fn),Reflect.get(t,"size",t)}function pp(t){t=Ne(t);const e=Ne(this);return Al(e).has.call(e,t)||(e.add(t),Lr(e,"add",t,t)),this}function gp(t,e){e=Ne(e);const r=Ne(this),{has:n,get:i}=Al(r);let s=n.call(r,t);s||(t=Ne(t),s=n.call(r,t));const o=i.call(r,t);return r.set(t,e),s?to(e,o)&&Lr(r,"set",t,e):Lr(r,"add",t,e),this}function mp(t){const e=Ne(this),{has:r,get:n}=Al(e);let i=r.call(e,t);i||(t=Ne(t),i=r.call(e,t)),n&&n.call(e,t);const s=e.delete(t);return i&&Lr(e,"delete",t,void 0),s}function yp(){const t=Ne(this),e=t.size!==0,r=t.clear();return e&&Lr(t,"clear",void 0,void 0),r}function zo(t,e){return function(n,i){const s=this,o=s.__v_raw,a=Ne(o),l=e?Sd:t?Md:ro;return!t&&yt(a,"iterate",Fn),o.forEach((u,c)=>n.call(i,l(u),l(c),s))}}function Ho(t,e,r){return function(...n){const i=this.__v_raw,s=Ne(i),o=Mi(s),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=i[t](...n),c=r?Sd:e?Md:ro;return!e&&yt(s,"iterate",l?nf:Fn),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function Gr(t){return function(...e){return t==="delete"?!1:this}}function uS(){const t={get(s){return Fo(this,s)},get size(){return jo(this)},has:Uo,add:pp,set:gp,delete:mp,clear:yp,forEach:zo(!1,!1)},e={get(s){return Fo(this,s,!1,!0)},get size(){return jo(this)},has:Uo,add:pp,set:gp,delete:mp,clear:yp,forEach:zo(!1,!0)},r={get(s){return Fo(this,s,!0)},get size(){return jo(this,!0)},has(s){return Uo.call(this,s,!0)},add:Gr("add"),set:Gr("set"),delete:Gr("delete"),clear:Gr("clear"),forEach:zo(!0,!1)},n={get(s){return Fo(this,s,!0,!0)},get size(){return jo(this,!0)},has(s){return Uo.call(this,s,!0)},add:Gr("add"),set:Gr("set"),delete:Gr("delete"),clear:Gr("clear"),forEach:zo(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{t[s]=Ho(s,!1,!1),r[s]=Ho(s,!0,!1),e[s]=Ho(s,!1,!0),n[s]=Ho(s,!0,!0)}),[t,r,e,n]}const[cS,fS,dS,hS]=uS();function xd(t,e){const r=e?t?hS:dS:t?fS:cS;return(n,i,s)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(Pe(r,i)&&i in n?r:n,i,s)}const pS={get:xd(!1,!1)},gS={get:xd(!1,!0)},mS={get:xd(!0,!1)},ww=new WeakMap,bw=new WeakMap,_w=new WeakMap,yS=new WeakMap;function wS(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function bS(t){return t.__v_skip||!Object.isExtensible(t)?0:wS($E(t))}function Td(t){return ki(t)?t:Ad(t,!1,yw,pS,ww)}function _S(t){return Ad(t,!1,lS,gS,bw)}function vw(t){return Ad(t,!0,aS,mS,_w)}function Ad(t,e,r,n,i){if(!Ue(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=i.get(t);if(s)return s;const o=bS(t);if(o===0)return t;const a=new Proxy(t,o===2?n:r);return i.set(t,a),a}function Ci(t){return ki(t)?Ci(t.__v_raw):!!(t&&t.__v_isReactive)}function ki(t){return!!(t&&t.__v_isReadonly)}function ja(t){return!!(t&&t.__v_isShallow)}function Ew(t){return Ci(t)||ki(t)}function Ne(t){const e=t&&t.__v_raw;return e?Ne(e):t}function Sw(t){return Fa(t,"__v_skip",!0),t}const ro=t=>Ue(t)?Td(t):t,Md=t=>Ue(t)?vw(t):t;function xw(t){on&&jt&&(t=Ne(t),pw(t.dep||(t.dep=_d())))}function Tw(t,e){t=Ne(t);const r=t.dep;r&&sf(r)}function rt(t){return!!(t&&t.__v_isRef===!0)}function EW(t){return vS(t,!1)}function vS(t,e){return rt(t)?t:new ES(t,e)}class ES{constructor(e,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?e:Ne(e),this._value=r?e:ro(e)}get value(){return xw(this),this._value}set value(e){const r=this.__v_isShallow||ja(e)||ki(e);e=r?e:Ne(e),to(e,this._rawValue)&&(this._rawValue=e,this._value=r?e:ro(e),Tw(this))}}function SS(t){return rt(t)?t.value:t}const xS={get:(t,e,r)=>SS(Reflect.get(t,e,r)),set:(t,e,r,n)=>{const i=t[e];return rt(i)&&!rt(r)?(i.value=r,!0):Reflect.set(t,e,r,n)}};function Aw(t){return Ci(t)?t:new Proxy(t,xS)}class TS{constructor(e,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new vd(e,()=>{this._dirty||(this._dirty=!0,Tw(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=Ne(this);return xw(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function AS(t,e,r=!1){let n,i;const s=Ae(t);return s?(n=t,i=qt):(n=t.get,i=t.set),new TS(n,i,s||!i,r)}function an(t,e,r,n){let i;try{i=n?t(...n):t()}catch(s){Ml(s,e,r)}return i}function Yt(t,e,r,n){if(Ae(t)){const s=an(t,e,r,n);return s&&ow(s)&&s.catch(o=>{Ml(o,e,r)}),s}const i=[];for(let s=0;s>>1;io(tt[n])nr&&tt.splice(e,1)}function PS(t){we(t)?Ii.push(...t):(!xr||!xr.includes(t,t.allowRecurse?On+1:On))&&Ii.push(t),Cw()}function wp(t,e=no?nr+1:0){for(;eio(r)-io(n)),On=0;Ont.id==null?1/0:t.id,RS=(t,e)=>{const r=io(t)-io(e);if(r===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return r};function Ow(t){of=!1,no=!0,tt.sort(RS);const e=qt;try{for(nr=0;nrHe(h)?h.trim():h)),f&&(i=r.map(Ua))}let a,l=n[a=Nu(e)]||n[a=Nu(hr(e))];!l&&s&&(l=n[a=Nu(is(e))]),l&&Yt(l,t,6,i);const u=n[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Yt(u,t,6,i)}}function Pw(t,e,r=!1){const n=e.emitsCache,i=n.get(t);if(i!==void 0)return i;const s=t.emits;let o={},a=!1;if(!Ae(t)){const l=u=>{const c=Pw(u,e,!0);c&&(a=!0,Ye(o,c))};!r&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!s&&!a?(Ue(t)&&n.set(t,null),null):(we(s)?s.forEach(l=>o[l]=null):Ye(o,s),Ue(t)&&n.set(t,o),o)}function Cl(t,e){return!t||!Sl(e)?!1:(e=e.slice(2).replace(/Once$/,""),Pe(t,e[0].toLowerCase()+e.slice(1))||Pe(t,is(e))||Pe(t,e))}let nt=null,Il=null;function za(t){const e=nt;return nt=t,Il=t&&t.type.__scopeId||null,e}function SW(t){Il=t}function xW(){Il=null}function NS(t,e=nt,r){if(!e||t._n)return t;const n=(...i)=>{n._d&&Op(-1);const s=za(e);let o;try{o=t(...i)}finally{za(s),n._d&&Op(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function $u(t){const{type:e,vnode:r,proxy:n,withProxy:i,props:s,propsOptions:[o],slots:a,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:h,ctx:g,inheritAttrs:y}=t;let b,E;const _=za(t);try{if(r.shapeFlag&4){const T=i||n;b=rr(c.call(T,T,f,s,h,d,g)),E=l}else{const T=e;b=rr(T.length>1?T(s,{attrs:l,slots:a,emit:u}):T(s,null)),E=e.props?l:$S(l)}}catch(T){Ws.length=0,Ml(T,t,1),b=Kt(cn)}let v=b;if(E&&y!==!1){const T=Object.keys(E),{shapeFlag:M}=v;T.length&&M&7&&(o&&T.some(pd)&&(E=kS(E,o)),v=Di(v,E))}return r.dirs&&(v=Di(v),v.dirs=v.dirs?v.dirs.concat(r.dirs):r.dirs),r.transition&&(v.transition=r.transition),b=v,za(_),b}const $S=t=>{let e;for(const r in t)(r==="class"||r==="style"||Sl(r))&&((e||(e={}))[r]=t[r]);return e},kS=(t,e)=>{const r={};for(const n in t)(!pd(n)||!(n.slice(9)in e))&&(r[n]=t[n]);return r};function DS(t,e,r){const{props:n,children:i,component:s}=t,{props:o,children:a,patchFlag:l}=e,u=s.emitsOptions;if(e.dirs||e.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?bp(n,o,u):!!o;if(l&8){const c=e.dynamicProps;for(let f=0;ft.__isSuspense;function US(t,e){e&&e.pendingBranch?we(t)?e.effects.push(...t):e.effects.push(t):PS(t)}function TW(t,e){return Od(t,null,e)}const Wo={};function ku(t,e,r){return Od(t,e,r)}function Od(t,e,{immediate:r,deep:n,flush:i,onTrack:s,onTrigger:o}=Fe){var a;const l=YE()===((a=Xe)==null?void 0:a.scope)?Xe:null;let u,c=!1,f=!1;if(rt(t)?(u=()=>t.value,c=ja(t)):Ci(t)?(u=()=>t,n=!0):we(t)?(f=!0,c=t.some(T=>Ci(T)||ja(T)),u=()=>t.map(T=>{if(rt(T))return T.value;if(Ci(T))return Rn(T);if(Ae(T))return an(T,l,2)})):Ae(t)?e?u=()=>an(t,l,2):u=()=>{if(!(l&&l.isUnmounted))return d&&d(),Yt(t,l,3,[h])}:u=qt,e&&n){const T=u;u=()=>Rn(T())}let d,h=T=>{d=_.onStop=()=>{an(T,l,4)}},g;if(oo)if(h=qt,e?r&&Yt(e,l,3,[u(),f?[]:void 0,h]):u(),i==="sync"){const T=B1();g=T.__watcherHandles||(T.__watcherHandles=[])}else return qt;let y=f?new Array(t.length).fill(Wo):Wo;const b=()=>{if(_.active)if(e){const T=_.run();(n||c||(f?T.some((M,I)=>to(M,y[I])):to(T,y)))&&(d&&d(),Yt(e,l,3,[T,y===Wo?void 0:f&&y[0]===Wo?[]:y,h]),y=T)}else _.run()};b.allowRecurse=!!e;let E;i==="sync"?E=b:i==="post"?E=()=>pt(b,l&&l.suspense):(b.pre=!0,l&&(b.id=l.uid),E=()=>Id(b));const _=new vd(u,E);e?r?b():y=_.run():i==="post"?pt(_.run.bind(_),l&&l.suspense):_.run();const v=()=>{_.stop(),l&&l.scope&&gd(l.scope.effects,_)};return g&&g.push(v),v}function jS(t,e,r){const n=this.proxy,i=He(t)?t.includes(".")?Rw(n,t):()=>n[t]:t.bind(n,n);let s;Ae(e)?s=e:(s=e.handler,r=e);const o=Xe;Bi(this);const a=Od(i,s.bind(n),r);return o?Bi(o):Un(),a}function Rw(t,e){const r=e.split(".");return()=>{let n=t;for(let i=0;i{Rn(r,e)});else if(lw(t))for(const r in t)Rn(t[r],e);return t}function AW(t,e){const r=nt;if(r===null)return t;const n=Ll(r)||r.proxy,i=t.dirs||(t.dirs=[]);for(let s=0;sYe({name:t.name},e,{setup:t}))():t}const js=t=>!!t.type.__asyncLoader,Lw=t=>t.type.__isKeepAlive;function zS(t,e){Nw(t,"a",e)}function HS(t,e){Nw(t,"da",e)}function Nw(t,e,r=Xe){const n=t.__wdc||(t.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Ol(e,n,r),r){let i=r.parent;for(;i&&i.parent;)Lw(i.parent.vnode)&&WS(n,e,r,i),i=i.parent}}function WS(t,e,r,n){const i=Ol(e,t,n,!0);$w(()=>{gd(n[e],i)},r)}function Ol(t,e,r=Xe,n=!1){if(r){const i=r[t]||(r[t]=[]),s=e.__weh||(e.__weh=(...o)=>{if(r.isUnmounted)return;ss(),Bi(r);const a=Yt(e,r,t,o);return Un(),os(),a});return n?i.unshift(s):i.push(s),s}}const zr=t=>(e,r=Xe)=>(!oo||t==="sp")&&Ol(t,(...n)=>e(...n),r),VS=zr("bm"),qS=zr("m"),YS=zr("bu"),KS=zr("u"),GS=zr("bum"),$w=zr("um"),XS=zr("sp"),QS=zr("rtg"),JS=zr("rtc");function ZS(t,e=Xe){Ol("ec",t,e)}const kw="components";function CW(t,e){return t1(kw,t,!0,e)||t}const e1=Symbol.for("v-ndc");function t1(t,e,r=!0,n=!1){const i=nt||Xe;if(i){const s=i.type;if(t===kw){const a=N1(s,!1);if(a&&(a===e||a===hr(e)||a===Tl(hr(e))))return s}const o=_p(i[t]||s[t],e)||_p(i.appContext[t],e);return!o&&n?s:o}}function _p(t,e){return t&&(t[e]||t[hr(e)]||t[Tl(hr(e))])}function IW(t,e,r,n){let i;const s=r&&r[n];if(we(t)||He(t)){i=new Array(t.length);for(let o=0,a=t.length;oe(o,a,void 0,s&&s[a]));else{const o=Object.keys(t);i=new Array(o.length);for(let a=0,l=o.length;aGw(e)?!(e.type===cn||e.type===Ft&&!Dw(e.children)):!0)?t:null}const af=t=>t?Jw(t)?Ll(t)||t.proxy:af(t.parent):null,zs=Ye(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>af(t.parent),$root:t=>af(t.root),$emit:t=>t.emit,$options:t=>Pd(t),$forceUpdate:t=>t.f||(t.f=()=>Id(t.update)),$nextTick:t=>t.n||(t.n=CS.bind(t.proxy)),$watch:t=>jS.bind(t)}),Du=(t,e)=>t!==Fe&&!t.__isScriptSetup&&Pe(t,e),r1={get({_:t},e){const{ctx:r,setupState:n,data:i,props:s,accessCache:o,type:a,appContext:l}=t;let u;if(e[0]!=="$"){const h=o[e];if(h!==void 0)switch(h){case 1:return n[e];case 2:return i[e];case 4:return r[e];case 3:return s[e]}else{if(Du(n,e))return o[e]=1,n[e];if(i!==Fe&&Pe(i,e))return o[e]=2,i[e];if((u=t.propsOptions[0])&&Pe(u,e))return o[e]=3,s[e];if(r!==Fe&&Pe(r,e))return o[e]=4,r[e];lf&&(o[e]=0)}}const c=zs[e];let f,d;if(c)return e==="$attrs"&&yt(t,"get",e),c(t);if((f=a.__cssModules)&&(f=f[e]))return f;if(r!==Fe&&Pe(r,e))return o[e]=4,r[e];if(d=l.config.globalProperties,Pe(d,e))return d[e]},set({_:t},e,r){const{data:n,setupState:i,ctx:s}=t;return Du(i,e)?(i[e]=r,!0):n!==Fe&&Pe(n,e)?(n[e]=r,!0):Pe(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=r,!0)},has({_:{data:t,setupState:e,accessCache:r,ctx:n,appContext:i,propsOptions:s}},o){let a;return!!r[o]||t!==Fe&&Pe(t,o)||Du(e,o)||(a=s[0])&&Pe(a,o)||Pe(n,o)||Pe(zs,o)||Pe(i.config.globalProperties,o)},defineProperty(t,e,r){return r.get!=null?t._.accessCache[e]=0:Pe(r,"value")&&this.set(t,e,r.value,null),Reflect.defineProperty(t,e,r)}};function vp(t){return we(t)?t.reduce((e,r)=>(e[r]=null,e),{}):t}let lf=!0;function n1(t){const e=Pd(t),r=t.proxy,n=t.ctx;lf=!1,e.beforeCreate&&Ep(e.beforeCreate,t,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:g,activated:y,deactivated:b,beforeDestroy:E,beforeUnmount:_,destroyed:v,unmounted:T,render:M,renderTracked:I,renderTriggered:$,errorCaptured:F,serverPrefetch:L,expose:U,inheritAttrs:k,components:W,directives:D,filters:O}=e;if(u&&i1(u,n,null),o)for(const H in o){const K=o[H];Ae(K)&&(n[H]=K.bind(r))}if(i){const H=i.call(r,r);Ue(H)&&(t.data=Td(H))}if(lf=!0,s)for(const H in s){const K=s[H],X=Ae(K)?K.bind(r,r):Ae(K.get)?K.get.bind(r,r):qt,Z=!Ae(K)&&Ae(K.set)?K.set.bind(r):qt,ce=k1({get:X,set:Z});Object.defineProperty(n,H,{enumerable:!0,configurable:!0,get:()=>ce.value,set:pe=>ce.value=pe})}if(a)for(const H in a)Bw(a[H],n,r,H);if(l){const H=Ae(l)?l.call(r):l;Reflect.ownKeys(H).forEach(K=>{c1(K,H[K])})}c&&Ep(c,t,"c");function Q(H,K){we(K)?K.forEach(X=>H(X.bind(r))):K&&H(K.bind(r))}if(Q(VS,f),Q(qS,d),Q(YS,h),Q(KS,g),Q(zS,y),Q(HS,b),Q(ZS,F),Q(JS,I),Q(QS,$),Q(GS,_),Q($w,T),Q(XS,L),we(U))if(U.length){const H=t.exposed||(t.exposed={});U.forEach(K=>{Object.defineProperty(H,K,{get:()=>r[K],set:X=>r[K]=X})})}else t.exposed||(t.exposed={});M&&t.render===qt&&(t.render=M),k!=null&&(t.inheritAttrs=k),W&&(t.components=W),D&&(t.directives=D)}function i1(t,e,r=qt){we(t)&&(t=uf(t));for(const n in t){const i=t[n];let s;Ue(i)?"default"in i?s=ma(i.from||n,i.default,!0):s=ma(i.from||n):s=ma(i),rt(s)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):e[n]=s}}function Ep(t,e,r){Yt(we(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,r)}function Bw(t,e,r,n){const i=n.includes(".")?Rw(r,n):()=>r[n];if(He(t)){const s=e[t];Ae(s)&&ku(i,s)}else if(Ae(t))ku(i,t.bind(r));else if(Ue(t))if(we(t))t.forEach(s=>Bw(s,e,r,n));else{const s=Ae(t.handler)?t.handler.bind(r):e[t.handler];Ae(s)&&ku(i,s,t)}}function Pd(t){const e=t.type,{mixins:r,extends:n}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=t.appContext,a=s.get(e);let l;return a?l=a:!i.length&&!r&&!n?l=e:(l={},i.length&&i.forEach(u=>Ha(l,u,o,!0)),Ha(l,e,o)),Ue(e)&&s.set(e,l),l}function Ha(t,e,r,n=!1){const{mixins:i,extends:s}=e;s&&Ha(t,s,r,!0),i&&i.forEach(o=>Ha(t,o,r,!0));for(const o in e)if(!(n&&o==="expose")){const a=s1[o]||r&&r[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const s1={data:Sp,props:xp,emits:xp,methods:Ls,computed:Ls,beforeCreate:ot,created:ot,beforeMount:ot,mounted:ot,beforeUpdate:ot,updated:ot,beforeDestroy:ot,beforeUnmount:ot,destroyed:ot,unmounted:ot,activated:ot,deactivated:ot,errorCaptured:ot,serverPrefetch:ot,components:Ls,directives:Ls,watch:a1,provide:Sp,inject:o1};function Sp(t,e){return e?t?function(){return Ye(Ae(t)?t.call(this,this):t,Ae(e)?e.call(this,this):e)}:e:t}function o1(t,e){return Ls(uf(t),uf(e))}function uf(t){if(we(t)){const e={};for(let r=0;r1)return r&&Ae(e)?e.call(n&&n.proxy):e}}function f1(t,e,r,n=!1){const i={},s={};Fa(s,Rl,1),t.propsDefaults=Object.create(null),Uw(t,e,i,s);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);r?t.props=n?i:_S(i):t.type.props?t.props=i:t.props=s,t.attrs=s}function d1(t,e,r,n){const{props:i,attrs:s,vnode:{patchFlag:o}}=t,a=Ne(i),[l]=t.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,h]=jw(f,e,!0);Ye(o,d),h&&a.push(...h)};!r&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!s&&!l)return Ue(t)&&n.set(t,Ai),Ai;if(we(s))for(let c=0;c-1,h[1]=y<0||g-1||Pe(h,"default"))&&a.push(f)}}}const u=[o,a];return Ue(t)&&n.set(t,u),u}function Tp(t){return t[0]!=="$"}function Ap(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function Mp(t,e){return Ap(t)===Ap(e)}function Cp(t,e){return we(e)?e.findIndex(r=>Mp(r,t)):Ae(e)&&Mp(e,t)?0:-1}const zw=t=>t[0]==="_"||t==="$stable",Rd=t=>we(t)?t.map(rr):[rr(t)],h1=(t,e,r)=>{if(e._n)return e;const n=NS((...i)=>Rd(e(...i)),r);return n._c=!1,n},Hw=(t,e,r)=>{const n=t._ctx;for(const i in t){if(zw(i))continue;const s=t[i];if(Ae(s))e[i]=h1(i,s,n);else if(s!=null){const o=Rd(s);e[i]=()=>o}}},Ww=(t,e)=>{const r=Rd(e);t.slots.default=()=>r},p1=(t,e)=>{if(t.vnode.shapeFlag&32){const r=e._;r?(t.slots=Ne(e),Fa(e,"_",r)):Hw(e,t.slots={})}else t.slots={},e&&Ww(t,e);Fa(t.slots,Rl,1)},g1=(t,e,r)=>{const{vnode:n,slots:i}=t;let s=!0,o=Fe;if(n.shapeFlag&32){const a=e._;a?r&&a===1?s=!1:(Ye(i,e),!r&&a===1&&delete i._):(s=!e.$stable,Hw(e,i)),o=e}else e&&(Ww(t,e),o={default:1});if(s)for(const a in i)!zw(a)&&!(a in o)&&delete i[a]};function ff(t,e,r,n,i=!1){if(we(t)){t.forEach((d,h)=>ff(d,e&&(we(e)?e[h]:e),r,n,i));return}if(js(n)&&!i)return;const s=n.shapeFlag&4?Ll(n.component)||n.component.proxy:n.el,o=i?null:s,{i:a,r:l}=t,u=e&&e.r,c=a.refs===Fe?a.refs={}:a.refs,f=a.setupState;if(u!=null&&u!==l&&(He(u)?(c[u]=null,Pe(f,u)&&(f[u]=null)):rt(u)&&(u.value=null)),Ae(l))an(l,a,12,[o,c]);else{const d=He(l),h=rt(l);if(d||h){const g=()=>{if(t.f){const y=d?Pe(f,l)?f[l]:c[l]:l.value;i?we(y)&&gd(y,s):we(y)?y.includes(s)||y.push(s):d?(c[l]=[s],Pe(f,l)&&(f[l]=c[l])):(l.value=[s],t.k&&(c[t.k]=l.value))}else d?(c[l]=o,Pe(f,l)&&(f[l]=o)):h&&(l.value=o,t.k&&(c[t.k]=o))};o?(g.id=-1,pt(g,r)):g()}}}const pt=US;function m1(t){return y1(t)}function y1(t,e){const r=ef();r.__VUE__=!0;const{insert:n,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=qt,insertStaticContent:g}=t,y=(w,S,A,B=null,z=null,q=null,ie=!1,re=null,ae=!!S.dynamicChildren)=>{if(w===S)return;w&&!gs(w,S)&&(B=Y(w),pe(w,z,q,!0),w=null),S.patchFlag===-2&&(ae=!1,S.dynamicChildren=null);const{type:se,ref:he,shapeFlag:fe}=S;switch(se){case Pl:b(w,S,A,B);break;case cn:E(w,S,A,B);break;case ya:w==null&&_(S,A,B,ie);break;case Ft:W(w,S,A,B,z,q,ie,re,ae);break;default:fe&1?M(w,S,A,B,z,q,ie,re,ae):fe&6?D(w,S,A,B,z,q,ie,re,ae):(fe&64||fe&128)&&se.process(w,S,A,B,z,q,ie,re,ae,ee)}he!=null&&z&&ff(he,w&&w.ref,q,S||w,!S)},b=(w,S,A,B)=>{if(w==null)n(S.el=a(S.children),A,B);else{const z=S.el=w.el;S.children!==w.children&&u(z,S.children)}},E=(w,S,A,B)=>{w==null?n(S.el=l(S.children||""),A,B):S.el=w.el},_=(w,S,A,B)=>{[w.el,w.anchor]=g(w.children,S,A,B,w.el,w.anchor)},v=({el:w,anchor:S},A,B)=>{let z;for(;w&&w!==S;)z=d(w),n(w,A,B),w=z;n(S,A,B)},T=({el:w,anchor:S})=>{let A;for(;w&&w!==S;)A=d(w),i(w),w=A;i(S)},M=(w,S,A,B,z,q,ie,re,ae)=>{ie=ie||S.type==="svg",w==null?I(S,A,B,z,q,ie,re,ae):L(w,S,z,q,ie,re,ae)},I=(w,S,A,B,z,q,ie,re)=>{let ae,se;const{type:he,props:fe,shapeFlag:ge,transition:C,dirs:N}=w;if(ae=w.el=o(w.type,q,fe&&fe.is,fe),ge&8?c(ae,w.children):ge&16&&F(w.children,ae,null,B,z,q&&he!=="foreignObject",ie,re),N&&xn(w,null,B,"created"),$(ae,w,w.scopeId,ie,B),fe){for(const p in fe)p!=="value"&&!pa(p)&&s(ae,p,null,fe[p],q,w.children,B,z,G);"value"in fe&&s(ae,"value",null,fe.value),(se=fe.onVnodeBeforeMount)&&Jt(se,B,w)}N&&xn(w,null,B,"beforeMount");const x=(!z||z&&!z.pendingBranch)&&C&&!C.persisted;x&&C.beforeEnter(ae),n(ae,S,A),((se=fe&&fe.onVnodeMounted)||x||N)&&pt(()=>{se&&Jt(se,B,w),x&&C.enter(ae),N&&xn(w,null,B,"mounted")},z)},$=(w,S,A,B,z)=>{if(A&&h(w,A),B)for(let q=0;q{for(let se=ae;se{const re=S.el=w.el;let{patchFlag:ae,dynamicChildren:se,dirs:he}=S;ae|=w.patchFlag&16;const fe=w.props||Fe,ge=S.props||Fe;let C;A&&Tn(A,!1),(C=ge.onVnodeBeforeUpdate)&&Jt(C,A,S,w),he&&xn(S,w,A,"beforeUpdate"),A&&Tn(A,!0);const N=z&&S.type!=="foreignObject";if(se?U(w.dynamicChildren,se,re,A,B,N,q):ie||K(w,S,re,null,A,B,N,q,!1),ae>0){if(ae&16)k(re,S,fe,ge,A,B,z);else if(ae&2&&fe.class!==ge.class&&s(re,"class",null,ge.class,z),ae&4&&s(re,"style",fe.style,ge.style,z),ae&8){const x=S.dynamicProps;for(let p=0;p{C&&Jt(C,A,S,w),he&&xn(S,w,A,"updated")},B)},U=(w,S,A,B,z,q,ie)=>{for(let re=0;re{if(A!==B){if(A!==Fe)for(const re in A)!pa(re)&&!(re in B)&&s(w,re,A[re],null,ie,S.children,z,q,G);for(const re in B){if(pa(re))continue;const ae=B[re],se=A[re];ae!==se&&re!=="value"&&s(w,re,se,ae,ie,S.children,z,q,G)}"value"in B&&s(w,"value",A.value,B.value)}},W=(w,S,A,B,z,q,ie,re,ae)=>{const se=S.el=w?w.el:a(""),he=S.anchor=w?w.anchor:a("");let{patchFlag:fe,dynamicChildren:ge,slotScopeIds:C}=S;C&&(re=re?re.concat(C):C),w==null?(n(se,A,B),n(he,A,B),F(S.children,A,he,z,q,ie,re,ae)):fe>0&&fe&64&&ge&&w.dynamicChildren?(U(w.dynamicChildren,ge,A,z,q,ie,re),(S.key!=null||z&&S===z.subTree)&&Ld(w,S,!0)):K(w,S,A,he,z,q,ie,re,ae)},D=(w,S,A,B,z,q,ie,re,ae)=>{S.slotScopeIds=re,w==null?S.shapeFlag&512?z.ctx.activate(S,A,B,ie,ae):O(S,A,B,z,q,ie,ae):j(w,S,ae)},O=(w,S,A,B,z,q,ie)=>{const re=w.component=I1(w,B,z);if(Lw(w)&&(re.ctx.renderer=ee),O1(re),re.asyncDep){if(z&&z.registerDep(re,Q),!w.el){const ae=re.subTree=Kt(cn);E(null,ae,S,A)}return}Q(re,w,S,A,z,q,ie)},j=(w,S,A)=>{const B=S.component=w.component;if(DS(w,S,A))if(B.asyncDep&&!B.asyncResolved){H(B,S,A);return}else B.next=S,OS(B.update),B.update();else S.el=w.el,B.vnode=S},Q=(w,S,A,B,z,q,ie)=>{const re=()=>{if(w.isMounted){let{next:he,bu:fe,u:ge,parent:C,vnode:N}=w,x=he,p;Tn(w,!1),he?(he.el=N.el,H(w,he,ie)):he=N,fe&&ga(fe),(p=he.props&&he.props.onVnodeBeforeUpdate)&&Jt(p,C,he,N),Tn(w,!0);const m=$u(w),R=w.subTree;w.subTree=m,y(R,m,f(R.el),Y(R),w,z,q),he.el=m.el,x===null&&BS(w,m.el),ge&&pt(ge,z),(p=he.props&&he.props.onVnodeUpdated)&&pt(()=>Jt(p,C,he,N),z)}else{let he;const{el:fe,props:ge}=S,{bm:C,m:N,parent:x}=w,p=js(S);if(Tn(w,!1),C&&ga(C),!p&&(he=ge&&ge.onVnodeBeforeMount)&&Jt(he,x,S),Tn(w,!0),fe&&P){const m=()=>{w.subTree=$u(w),P(fe,w.subTree,w,z,null)};p?S.type.__asyncLoader().then(()=>!w.isUnmounted&&m()):m()}else{const m=w.subTree=$u(w);y(null,m,A,B,w,z,q),S.el=m.el}if(N&&pt(N,z),!p&&(he=ge&&ge.onVnodeMounted)){const m=S;pt(()=>Jt(he,x,m),z)}(S.shapeFlag&256||x&&js(x.vnode)&&x.vnode.shapeFlag&256)&&w.a&&pt(w.a,z),w.isMounted=!0,S=A=B=null}},ae=w.effect=new vd(re,()=>Id(se),w.scope),se=w.update=()=>ae.run();se.id=w.uid,Tn(w,!0),se()},H=(w,S,A)=>{S.component=w;const B=w.vnode.props;w.vnode=S,w.next=null,d1(w,S.props,B,A),g1(w,S.children,A),ss(),wp(),os()},K=(w,S,A,B,z,q,ie,re,ae=!1)=>{const se=w&&w.children,he=w?w.shapeFlag:0,fe=S.children,{patchFlag:ge,shapeFlag:C}=S;if(ge>0){if(ge&128){Z(se,fe,A,B,z,q,ie,re,ae);return}else if(ge&256){X(se,fe,A,B,z,q,ie,re,ae);return}}C&8?(he&16&&G(se,z,q),fe!==se&&c(A,fe)):he&16?C&16?Z(se,fe,A,B,z,q,ie,re,ae):G(se,z,q,!0):(he&8&&c(A,""),C&16&&F(fe,A,B,z,q,ie,re,ae))},X=(w,S,A,B,z,q,ie,re,ae)=>{w=w||Ai,S=S||Ai;const se=w.length,he=S.length,fe=Math.min(se,he);let ge;for(ge=0;gehe?G(w,z,q,!0,!1,fe):F(S,A,B,z,q,ie,re,ae,fe)},Z=(w,S,A,B,z,q,ie,re,ae)=>{let se=0;const he=S.length;let fe=w.length-1,ge=he-1;for(;se<=fe&&se<=ge;){const C=w[se],N=S[se]=ae?en(S[se]):rr(S[se]);if(gs(C,N))y(C,N,A,null,z,q,ie,re,ae);else break;se++}for(;se<=fe&&se<=ge;){const C=w[fe],N=S[ge]=ae?en(S[ge]):rr(S[ge]);if(gs(C,N))y(C,N,A,null,z,q,ie,re,ae);else break;fe--,ge--}if(se>fe){if(se<=ge){const C=ge+1,N=Cge)for(;se<=fe;)pe(w[se],z,q,!0),se++;else{const C=se,N=se,x=new Map;for(se=N;se<=ge;se++){const Me=S[se]=ae?en(S[se]):rr(S[se]);Me.key!=null&&x.set(Me.key,se)}let p,m=0;const R=ge-N+1;let V=!1,J=0;const te=new Array(R);for(se=0;se=R){pe(Me,z,q,!0);continue}let Ce;if(Me.key!=null)Ce=x.get(Me.key);else for(p=N;p<=ge;p++)if(te[p-N]===0&&gs(Me,S[p])){Ce=p;break}Ce===void 0?pe(Me,z,q,!0):(te[Ce-N]=se+1,Ce>=J?J=Ce:V=!0,y(Me,S[Ce],A,null,z,q,ie,re,ae),m++)}const Te=V?w1(te):Ai;for(p=Te.length-1,se=R-1;se>=0;se--){const Me=N+se,Ce=S[Me],$e=Me+1{const{el:q,type:ie,transition:re,children:ae,shapeFlag:se}=w;if(se&6){ce(w.component.subTree,S,A,B);return}if(se&128){w.suspense.move(S,A,B);return}if(se&64){ie.move(w,S,A,ee);return}if(ie===Ft){n(q,S,A);for(let fe=0;fere.enter(q),z);else{const{leave:fe,delayLeave:ge,afterLeave:C}=re,N=()=>n(q,S,A),x=()=>{fe(q,()=>{N(),C&&C()})};ge?ge(q,N,x):x()}else n(q,S,A)},pe=(w,S,A,B=!1,z=!1)=>{const{type:q,props:ie,ref:re,children:ae,dynamicChildren:se,shapeFlag:he,patchFlag:fe,dirs:ge}=w;if(re!=null&&ff(re,null,A,w,!0),he&256){S.ctx.deactivate(w);return}const C=he&1&&ge,N=!js(w);let x;if(N&&(x=ie&&ie.onVnodeBeforeUnmount)&&Jt(x,S,w),he&6)be(w.component,A,B);else{if(he&128){w.suspense.unmount(A,B);return}C&&xn(w,null,S,"beforeUnmount"),he&64?w.type.remove(w,S,A,z,ee,B):se&&(q!==Ft||fe>0&&fe&64)?G(se,S,A,!1,!0):(q===Ft&&fe&384||!z&&he&16)&&G(ae,S,A),B&&de(w)}(N&&(x=ie&&ie.onVnodeUnmounted)||C)&&pt(()=>{x&&Jt(x,S,w),C&&xn(w,null,S,"unmounted")},A)},de=w=>{const{type:S,el:A,anchor:B,transition:z}=w;if(S===Ft){me(A,B);return}if(S===ya){T(w);return}const q=()=>{i(A),z&&!z.persisted&&z.afterLeave&&z.afterLeave()};if(w.shapeFlag&1&&z&&!z.persisted){const{leave:ie,delayLeave:re}=z,ae=()=>ie(A,q);re?re(w.el,q,ae):ae()}else q()},me=(w,S)=>{let A;for(;w!==S;)A=d(w),i(w),w=A;i(S)},be=(w,S,A)=>{const{bum:B,scope:z,update:q,subTree:ie,um:re}=w;B&&ga(B),z.stop(),q&&(q.active=!1,pe(ie,w,S,A)),re&&pt(re,S),pt(()=>{w.isUnmounted=!0},S),S&&S.pendingBranch&&!S.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===S.pendingId&&(S.deps--,S.deps===0&&S.resolve())},G=(w,S,A,B=!1,z=!1,q=0)=>{for(let ie=q;iew.shapeFlag&6?Y(w.component.subTree):w.shapeFlag&128?w.suspense.next():d(w.anchor||w.el),ne=(w,S,A)=>{w==null?S._vnode&&pe(S._vnode,null,null,!0):y(S._vnode||null,w,S,null,null,null,A),wp(),Iw(),S._vnode=w},ee={p:y,um:pe,m:ce,r:de,mt:O,mc:F,pc:K,pbc:U,n:Y,o:t};let ue,P;return e&&([ue,P]=e(ee)),{render:ne,hydrate:ue,createApp:u1(ne,ue)}}function Tn({effect:t,update:e},r){t.allowRecurse=e.allowRecurse=r}function Ld(t,e,r=!1){const n=t.children,i=e.children;if(we(n)&&we(i))for(let s=0;s>1,t[r[a]]0&&(e[n]=r[s-1]),r[s]=n)}}for(s=r.length,o=r[s-1];s-- >0;)r[s]=o,o=e[o];return r}const b1=t=>t.__isTeleport,Hs=t=>t&&(t.disabled||t.disabled===""),Ip=t=>typeof SVGElement<"u"&&t instanceof SVGElement,df=(t,e)=>{const r=t&&t.to;return He(r)?e?e(r):null:r},_1={__isTeleport:!0,process(t,e,r,n,i,s,o,a,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:g,createText:y,createComment:b}}=u,E=Hs(e.props);let{shapeFlag:_,children:v,dynamicChildren:T}=e;if(t==null){const M=e.el=y(""),I=e.anchor=y("");h(M,r,n),h(I,r,n);const $=e.target=df(e.props,g),F=e.targetAnchor=y("");$&&(h(F,$),o=o||Ip($));const L=(U,k)=>{_&16&&c(v,U,k,i,s,o,a,l)};E?L(r,I):$&&L($,F)}else{e.el=t.el;const M=e.anchor=t.anchor,I=e.target=t.target,$=e.targetAnchor=t.targetAnchor,F=Hs(t.props),L=F?r:I,U=F?M:$;if(o=o||Ip(I),T?(d(t.dynamicChildren,T,L,i,s,o,a),Ld(t,e,!0)):l||f(t,e,L,U,i,s,o,a,!1),E)F||Vo(e,r,M,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const k=e.target=df(e.props,g);k&&Vo(e,k,null,u,0)}else F&&Vo(e,I,$,u,1)}Vw(e)},remove(t,e,r,n,{um:i,o:{remove:s}},o){const{shapeFlag:a,children:l,anchor:u,targetAnchor:c,target:f,props:d}=t;if(f&&s(c),(o||!Hs(d))&&(s(u),a&16))for(let h=0;h0?Wt||Ai:null,E1(),so>0&&Wt&&Wt.push(t),t}function RW(t,e,r,n,i,s){return Yw(Qw(t,e,r,n,i,s,!0))}function Kw(t,e,r,n,i){return Yw(Kt(t,e,r,n,i,!0))}function Gw(t){return t?t.__v_isVNode===!0:!1}function gs(t,e){return t.type===e.type&&t.key===e.key}const Rl="__vInternal",Xw=({key:t})=>t??null,wa=({ref:t,ref_key:e,ref_for:r})=>(typeof t=="number"&&(t=""+t),t!=null?He(t)||rt(t)||Ae(t)?{i:nt,r:t,k:e,f:!!r}:t:null);function Qw(t,e=null,r=null,n=0,i=null,s=t===Ft?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Xw(e),ref:e&&wa(e),scopeId:Il,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:s,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:nt};return a?(Nd(l,r),s&128&&t.normalize(l)):r&&(l.shapeFlag|=He(r)?8:16),so>0&&!o&&Wt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Wt.push(l),l}const Kt=S1;function S1(t,e=null,r=null,n=0,i=null,s=!1){if((!t||t===e1)&&(t=cn),Gw(t)){const a=Di(t,e,!0);return r&&Nd(a,r),so>0&&!s&&Wt&&(a.shapeFlag&6?Wt[Wt.indexOf(t)]=a:Wt.push(a)),a.patchFlag|=-2,a}if($1(t)&&(t=t.__vccOpts),e){e=x1(e);let{class:a,style:l}=e;a&&!He(a)&&(e.class=wd(a)),Ue(l)&&(Ew(l)&&!we(l)&&(l=Ye({},l)),e.style=yd(l))}const o=He(t)?1:FS(t)?128:b1(t)?64:Ue(t)?4:Ae(t)?2:0;return Qw(t,e,r,n,i,o,s,!0)}function x1(t){return t?Ew(t)||Rl in t?Ye({},t):t:null}function Di(t,e,r=!1){const{props:n,ref:i,patchFlag:s,children:o}=t,a=e?A1(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:a,key:a&&Xw(a),ref:e&&e.ref?r&&i?we(i)?i.concat(wa(e)):[i,wa(e)]:wa(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ft?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Di(t.ssContent),ssFallback:t.ssFallback&&Di(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function T1(t=" ",e=0){return Kt(Pl,null,t,e)}function LW(t,e){const r=Kt(ya,null,t);return r.staticCount=e,r}function NW(t="",e=!1){return e?(qw(),Kw(cn,null,t)):Kt(cn,null,t)}function rr(t){return t==null||typeof t=="boolean"?Kt(cn):we(t)?Kt(Ft,null,t.slice()):typeof t=="object"?en(t):Kt(Pl,null,String(t))}function en(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Di(t)}function Nd(t,e){let r=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(we(e))r=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),Nd(t,i()),i._c&&(i._d=!0));return}else{r=32;const i=e._;!i&&!(Rl in e)?e._ctx=nt:i===3&&nt&&(nt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else Ae(e)?(e={default:e,_ctx:nt},r=32):(e=String(e),n&64?(r=16,e=[T1(e)]):r=8);t.children=e,t.shapeFlag|=r}function A1(...t){const e={};for(let r=0;rXe=t),$d=t=>{ci.length>1?ci.forEach(e=>e(t)):ci[0](t)};const Bi=t=>{$d(t),t.scope.on()},Un=()=>{Xe&&Xe.scope.off(),$d(null)};function Jw(t){return t.vnode.shapeFlag&4}let oo=!1;function O1(t,e=!1){oo=e;const{props:r,children:n}=t.vnode,i=Jw(t);f1(t,r,i,e),p1(t,n);const s=i?P1(t,e):void 0;return oo=!1,s}function P1(t,e){const r=t.type;t.accessCache=Object.create(null),t.proxy=Sw(new Proxy(t.ctx,r1));const{setup:n}=r;if(n){const i=t.setupContext=n.length>1?L1(t):null;Bi(t),ss();const s=an(n,t,0,[t.props,i]);if(os(),Un(),ow(s)){if(s.then(Un,Un),e)return s.then(o=>{Rp(t,o,e)}).catch(o=>{Ml(o,t,0)});t.asyncDep=s}else Rp(t,s,e)}else Zw(t,e)}function Rp(t,e,r){Ae(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ue(e)&&(t.setupState=Aw(e)),Zw(t,r)}let Lp;function Zw(t,e,r){const n=t.type;if(!t.render){if(!e&&Lp&&!n.render){const i=n.template||Pd(t).template;if(i){const{isCustomElement:s,compilerOptions:o}=t.appContext.config,{delimiters:a,compilerOptions:l}=n,u=Ye(Ye({isCustomElement:s,delimiters:a},o),l);n.render=Lp(i,u)}}t.render=n.render||qt}Bi(t),ss(),n1(t),os(),Un()}function R1(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,r){return yt(t,"get","$attrs"),e[r]}}))}function L1(t){const e=r=>{t.exposed=r||{}};return{get attrs(){return R1(t)},slots:t.slots,emit:t.emit,expose:e}}function Ll(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(Aw(Sw(t.exposed)),{get(e,r){if(r in e)return e[r];if(r in zs)return zs[r](t)},has(e,r){return r in e||r in zs}}))}function N1(t,e=!0){return Ae(t)?t.displayName||t.name:t.name||e&&t.__name}function $1(t){return Ae(t)&&"__vccOpts"in t}const k1=(t,e)=>AS(t,e,oo),D1=Symbol.for("v-scx"),B1=()=>ma(D1),F1="3.3.4",U1="http://www.w3.org/2000/svg",Pn=typeof document<"u"?document:null,Np=Pn&&Pn.createElement("template"),j1={insert:(t,e,r)=>{e.insertBefore(t,r||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,r,n)=>{const i=e?Pn.createElementNS(U1,t):Pn.createElement(t,r?{is:r}:void 0);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>Pn.createTextNode(t),createComment:t=>Pn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Pn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,r,n,i,s){const o=r?r.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),r),!(i===s||!(i=i.nextSibling)););else{Np.innerHTML=n?`${t}`:t;const a=Np.content;if(n){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,r)}return[o?o.nextSibling:e.firstChild,r?r.previousSibling:e.lastChild]}};function z1(t,e,r){const n=t._vtc;n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):r?t.setAttribute("class",e):t.className=e}function H1(t,e,r){const n=t.style,i=He(r);if(r&&!i){if(e&&!He(e))for(const s in e)r[s]==null&&hf(n,s,"");for(const s in r)hf(n,s,r[s])}else{const s=n.display;i?e!==r&&(n.cssText=r):e&&t.removeAttribute("style"),"_vod"in t&&(n.display=s)}}const $p=/\s*!important$/;function hf(t,e,r){if(we(r))r.forEach(n=>hf(t,e,n));else if(r==null&&(r=""),e.startsWith("--"))t.setProperty(e,r);else{const n=W1(t,e);$p.test(r)?t.setProperty(is(n),r.replace($p,""),"important"):t[n]=r}}const kp=["Webkit","Moz","ms"],Bu={};function W1(t,e){const r=Bu[e];if(r)return r;let n=hr(e);if(n!=="filter"&&n in t)return Bu[e]=n;n=Tl(n);for(let i=0;iFu||(X1.then(()=>Fu=0),Fu=Date.now());function J1(t,e){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Yt(Z1(n,r.value),e,5,[n])};return r.value=t,r.attached=Q1(),r}function Z1(t,e){if(we(e)){const r=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{r.call(t),t._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const Fp=/^on[a-z]/,ex=(t,e,r,n,i=!1,s,o,a,l)=>{e==="class"?z1(t,n,i):e==="style"?H1(t,r,n):Sl(e)?pd(e)||K1(t,e,r,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):tx(t,e,n,i))?q1(t,e,n,s,o,a,l):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),V1(t,e,n,i))};function tx(t,e,r,n){return n?!!(e==="innerHTML"||e==="textContent"||e in t&&Fp.test(e)&&Ae(r)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||Fp.test(e)&&He(r)?!1:e in t}const Fi=t=>{const e=t.props["onUpdate:modelValue"]||!1;return we(e)?r=>ga(e,r):e};function rx(t){t.target.composing=!0}function Up(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const $W={created(t,{modifiers:{lazy:e,trim:r,number:n}},i){t._assign=Fi(i);const s=n||i.props&&i.props.type==="number";rn(t,e?"change":"input",o=>{if(o.target.composing)return;let a=t.value;r&&(a=a.trim()),s&&(a=Ua(a)),t._assign(a)}),r&&rn(t,"change",()=>{t.value=t.value.trim()}),e||(rn(t,"compositionstart",rx),rn(t,"compositionend",Up),rn(t,"change",Up))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:r,trim:n,number:i}},s){if(t._assign=Fi(s),t.composing||document.activeElement===t&&t.type!=="range"&&(r||n&&t.value.trim()===e||(i||t.type==="number")&&Ua(t.value)===e))return;const o=e??"";t.value!==o&&(t.value=o)}},kW={deep:!0,created(t,e,r){t._assign=Fi(r),rn(t,"change",()=>{const n=t._modelValue,i=ao(t),s=t.checked,o=t._assign;if(we(n)){const a=bd(n,i),l=a!==-1;if(s&&!l)o(n.concat(i));else if(!s&&l){const u=[...n];u.splice(a,1),o(u)}}else if(ns(n)){const a=new Set(n);s?a.add(i):a.delete(i),o(a)}else o(e0(t,s))})},mounted:jp,beforeUpdate(t,e,r){t._assign=Fi(r),jp(t,e,r)}};function jp(t,{value:e,oldValue:r},n){t._modelValue=e,we(e)?t.checked=bd(e,n.props.value)>-1:ns(e)?t.checked=e.has(n.props.value):e!==r&&(t.checked=bo(e,e0(t,!0)))}const DW={deep:!0,created(t,{value:e,modifiers:{number:r}},n){const i=ns(e);rn(t,"change",()=>{const s=Array.prototype.filter.call(t.options,o=>o.selected).map(o=>r?Ua(ao(o)):ao(o));t._assign(t.multiple?i?new Set(s):s:s[0])}),t._assign=Fi(n)},mounted(t,{value:e}){zp(t,e)},beforeUpdate(t,e,r){t._assign=Fi(r)},updated(t,{value:e}){zp(t,e)}};function zp(t,e){const r=t.multiple;if(!(r&&!we(e)&&!ns(e))){for(let n=0,i=t.options.length;n-1:s.selected=e.has(o);else if(bo(ao(s),e)){t.selectedIndex!==n&&(t.selectedIndex=n);return}}!r&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function ao(t){return"_value"in t?t._value:t.value}function e0(t,e){const r=e?"_trueValue":"_falseValue";return r in t?t[r]:e}const BW={beforeMount(t,{value:e},{transition:r}){t._vod=t.style.display==="none"?"":t.style.display,r&&e?r.beforeEnter(t):ms(t,e)},mounted(t,{value:e},{transition:r}){r&&e&&r.enter(t)},updated(t,{value:e,oldValue:r},{transition:n}){!e!=!r&&(n?e?(n.beforeEnter(t),ms(t,!0),n.enter(t)):n.leave(t,()=>{ms(t,!1)}):ms(t,e))},beforeUnmount(t,{value:e}){ms(t,e)}};function ms(t,e){t.style.display=e?t._vod:"none"}const nx=Ye({patchProp:ex},j1);let Hp;function ix(){return Hp||(Hp=m1(nx))}const FW=(...t)=>{const e=ix().createApp(...t),{mount:r}=e;return e.mount=n=>{const i=sx(n);if(!i)return;const s=e._component;!Ae(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.innerHTML="";const o=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function sx(t){return He(t)?document.querySelector(t):t}var xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ox(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Nl(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var ax={};function t0(){throw new Error("setTimeout has not been defined")}function r0(){throw new Error("clearTimeout has not been defined")}var Qr=t0,Jr=r0;typeof ln.setTimeout=="function"&&(Qr=setTimeout);typeof ln.clearTimeout=="function"&&(Jr=clearTimeout);function n0(t){if(Qr===setTimeout)return setTimeout(t,0);if((Qr===t0||!Qr)&&setTimeout)return Qr=setTimeout,setTimeout(t,0);try{return Qr(t,0)}catch{try{return Qr.call(null,t,0)}catch{return Qr.call(this,t,0)}}}function lx(t){if(Jr===clearTimeout)return clearTimeout(t);if((Jr===r0||!Jr)&&clearTimeout)return Jr=clearTimeout,clearTimeout(t);try{return Jr(t)}catch{try{return Jr.call(null,t)}catch{return Jr.call(this,t)}}}var Tr=[],Oi=!1,Ln,ba=-1;function ux(){!Oi||!Ln||(Oi=!1,Ln.length?Tr=Ln.concat(Tr):ba=-1,Tr.length&&i0())}function i0(){if(!Oi){var t=n0(ux);Oi=!0;for(var e=Tr.length;e;){for(Ln=Tr,Tr=[];++ba1)for(var r=1;rthis.max?!1:(this.aliasToTopic[r]=e,this.length=Object.keys(this.aliasToTopic).length,!0)}getTopicByAlias(e){return this.aliasToTopic[e]}clear(){this.aliasToTopic={}}}kd.default=kx;var $l={},kl={exports:{}},pf={exports:{}},Dd={exports:{}},Pi=typeof Reflect=="object"?Reflect:null,Wp=Pi&&typeof Pi.apply=="function"?Pi.apply:function(e,r,n){return Function.prototype.apply.call(e,r,n)},_a;Pi&&typeof Pi.ownKeys=="function"?_a=Pi.ownKeys:Object.getOwnPropertySymbols?_a=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:_a=function(e){return Object.getOwnPropertyNames(e)};function Dx(t){console&&console.warn&&console.warn(t)}var o0=Number.isNaN||function(e){return e!==e};function ke(){ke.init.call(this)}Dd.exports=ke;Dd.exports.once=jx;ke.EventEmitter=ke;ke.prototype._events=void 0;ke.prototype._eventsCount=0;ke.prototype._maxListeners=void 0;var Vp=10;function Dl(t){if(typeof t!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}Object.defineProperty(ke,"defaultMaxListeners",{enumerable:!0,get:function(){return Vp},set:function(t){if(typeof t!="number"||t<0||o0(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");Vp=t}});ke.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};ke.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||o0(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function a0(t){return t._maxListeners===void 0?ke.defaultMaxListeners:t._maxListeners}ke.prototype.getMaxListeners=function(){return a0(this)};ke.prototype.emit=function(e){for(var r=[],n=1;n0&&(o=r[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var l=s[e];if(l===void 0)return!1;if(typeof l=="function")Wp(l,this,r);else for(var u=l.length,c=d0(l,u),n=0;n0&&o.length>i&&!o.warned){o.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=t,a.type=e,a.count=o.length,Dx(a)}return t}ke.prototype.addListener=function(e,r){return l0(this,e,r,!1)};ke.prototype.on=ke.prototype.addListener;ke.prototype.prependListener=function(e,r){return l0(this,e,r,!0)};function Bx(){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 u0(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=Bx.bind(n);return i.listener=r,n.wrapFn=i,i}ke.prototype.once=function(e,r){return Dl(r),this.on(e,u0(this,e,r)),this};ke.prototype.prependOnceListener=function(e,r){return Dl(r),this.prependListener(e,u0(this,e,r)),this};ke.prototype.removeListener=function(e,r){var n,i,s,o,a;if(Dl(r),i=this._events,i===void 0)return this;if(n=i[e],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||r));else if(typeof n!="function"){for(s=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){a=n[o].listener,s=o;break}if(s<0)return this;s===0?n.shift():Fx(n,s),n.length===1&&(i[e]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",e,a||r)}return this};ke.prototype.off=ke.prototype.removeListener;ke.prototype.removeAllListeners=function(e){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var s=Object.keys(n),o;for(i=0;i=0;i--)this.removeListener(e,r[i]);return this};function c0(t,e,r){var n=t._events;if(n===void 0)return[];var i=n[e];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?Ux(i):d0(i,i.length)}ke.prototype.listeners=function(e){return c0(this,e,!0)};ke.prototype.rawListeners=function(e){return c0(this,e,!1)};ke.listenerCount=function(t,e){return typeof t.listenerCount=="function"?t.listenerCount(e):f0.call(t,e)};ke.prototype.listenerCount=f0;function f0(t){var e=this._events;if(e!==void 0){var r=e[t];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}ke.prototype.eventNames=function(){return this._eventsCount>0?_a(this._events):[]};function d0(t,e){for(var r=new Array(e),n=0;n0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function Vx(t){var e=g0(t),r=e[0],n=e[1];return(r+n)*3/4-n}function qx(t,e,r){return(e+r)*3/4-r}function Yx(t){var e,r=g0(t),n=r[0],i=r[1],s=new Hx(qx(t,n,i)),o=0,a=i>0?n-4:n,l;for(l=0;l>16&255,s[o++]=e>>8&255,s[o++]=e&255;return i===2&&(e=At[t.charCodeAt(l)]<<2|At[t.charCodeAt(l+1)]>>4,s[o++]=e&255),i===1&&(e=At[t.charCodeAt(l)]<<10|At[t.charCodeAt(l+1)]<<4|At[t.charCodeAt(l+2)]>>2,s[o++]=e>>8&255,s[o++]=e&255),s}function Kx(t){return ir[t>>18&63]+ir[t>>12&63]+ir[t>>6&63]+ir[t&63]}function Gx(t,e,r){for(var n,i=[],s=e;sa?a:o+s));return n===1?(e=t[r-1],i.push(ir[e>>2]+ir[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(ir[e>>10]+ir[e>>4&63]+ir[e<<2&63]+"=")),i.join("")}var Bd={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Bd.read=function(t,e,r,n,i){var s,o,a=i*8-n-1,l=(1<>1,c=-7,f=r?i-1:0,d=r?-1:1,h=t[e+f];for(f+=d,s=h&(1<<-c)-1,h>>=-c,c+=a;c>0;s=s*256+t[e+f],f+=d,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=n;c>0;o=o*256+t[e+f],f+=d,c-=8);if(s===0)s=1-u;else{if(s===l)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-u}return(h?-1:1)*o*Math.pow(2,s-n)};Bd.write=function(t,e,r,n,i,s){var o,a,l,u=s*8-i-1,c=(1<>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:s-1,g=n?1:-1,y=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?e+=d/l:e+=d*Math.pow(2,1-f),e*l>=2&&(o++,l/=2),o+f>=c?(a=0,o=c):o+f>=1?(a=(e*l-1)*Math.pow(2,i),o=o+f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+h]=a&255,h+=g,a/=256,i-=8);for(o=o<0;t[r+h]=o&255,h+=g,o/=256,u-=8);t[r+h-g]|=y*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function(t){const e=Dl,r=Dd,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=_,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=s(),!a.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 s(){try{const x=new Uint8Array(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,Uint8Array.prototype),Object.setPrototypeOf(x,p),x.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function o(x){if(x>i)throw new RangeError('The value "'+x+'" is invalid for option "size"');const p=new Uint8Array(x);return Object.setPrototypeOf(p,a.prototype),p}function a(x,p,m){if(typeof x=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(x)}return l(x,p,m)}a.poolSize=8192;function l(x,p,m){if(typeof x=="string")return d(x,p);if(ArrayBuffer.isView(x))return g(x);if(x==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x);if(he(x,ArrayBuffer)||x&&he(x.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he(x,SharedArrayBuffer)||x&&he(x.buffer,SharedArrayBuffer)))return y(x,p,m);if(typeof x=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const R=x.valueOf&&x.valueOf();if(R!=null&&R!==x)return a.from(R,p,m);const V=b(x);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof x[Symbol.toPrimitive]=="function")return a.from(x[Symbol.toPrimitive]("string"),p,m);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x)}a.from=function(x,p,m){return l(x,p,m)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function u(x){if(typeof x!="number")throw new TypeError('"size" argument must be of type number');if(x<0)throw new RangeError('The value "'+x+'" is invalid for option "size"')}function c(x,p,m){return u(x),x<=0?o(x):p!==void 0?typeof m=="string"?o(x).fill(p,m):o(x).fill(p):o(x)}a.alloc=function(x,p,m){return c(x,p,m)};function f(x){return u(x),o(x<0?0:E(x)|0)}a.allocUnsafe=function(x){return f(x)},a.allocUnsafeSlow=function(x){return f(x)};function d(x,p){if((typeof p!="string"||p==="")&&(p="utf8"),!a.isEncoding(p))throw new TypeError("Unknown encoding: "+p);const m=v(x,p)|0;let R=o(m);const V=R.write(x,p);return V!==m&&(R=R.slice(0,V)),R}function h(x){const p=x.length<0?0:E(x.length)|0,m=o(p);for(let R=0;R=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return x|0}function _(x){return+x!=x&&(x=0),a.alloc(+x)}a.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==a.prototype},a.compare=function(p,m){if(he(p,Uint8Array)&&(p=a.from(p,p.offset,p.byteLength)),he(m,Uint8Array)&&(m=a.from(m,m.offset,m.byteLength)),!a.isBuffer(p)||!a.isBuffer(m))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===m)return 0;let R=p.length,V=m.length;for(let J=0,te=Math.min(R,V);JV.length?(a.isBuffer(te)||(te=a.from(te)),te.copy(V,J)):Uint8Array.prototype.set.call(V,te,J);else if(a.isBuffer(te))te.copy(V,J);else throw new TypeError('"list" argument must be an Array of Buffers');J+=te.length}return V};function v(x,p){if(a.isBuffer(x))return x.length;if(ArrayBuffer.isView(x)||he(x,ArrayBuffer))return x.byteLength;if(typeof x!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof x);const m=x.length,R=arguments.length>2&&arguments[2]===!0;if(!R&&m===0)return 0;let V=!1;for(;;)switch(p){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return q(x).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m*2;case"hex":return m>>>1;case"base64":return ae(x).length;default:if(V)return R?-1:q(x).length;p=(""+p).toLowerCase(),V=!0}}a.byteLength=v;function T(x,p,m){let R=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((m===void 0||m>this.length)&&(m=this.length),m<=0)||(m>>>=0,p>>>=0,m<=p))return"";for(x||(x="utf8");;)switch(x){case"hex":return X(this,p,m);case"utf8":case"utf-8":return O(this,p,m);case"ascii":return H(this,p,m);case"latin1":case"binary":return K(this,p,m);case"base64":return D(this,p,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,p,m);default:if(R)throw new TypeError("Unknown encoding: "+x);x=(x+"").toLowerCase(),R=!0}}a.prototype._isBuffer=!0;function M(x,p,m){const R=x[p];x[p]=x[m],x[m]=R}a.prototype.swap16=function(){const p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let m=0;mm&&(p+=" ... "),""},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(p,m,R,V,J){if(he(p,Uint8Array)&&(p=a.from(p,p.offset,p.byteLength)),!a.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(m===void 0&&(m=0),R===void 0&&(R=p?p.length:0),V===void 0&&(V=0),J===void 0&&(J=this.length),m<0||R>p.length||V<0||J>this.length)throw new RangeError("out of range index");if(V>=J&&m>=R)return 0;if(V>=J)return-1;if(m>=R)return 1;if(m>>>=0,R>>>=0,V>>>=0,J>>>=0,this===p)return 0;let te=J-V,Te=R-m;const Me=Math.min(te,Te),Ce=this.slice(V,J),$e=p.slice(m,R);for(let Le=0;Le2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),m=+m,fe(m)&&(m=V?0:x.length-1),m<0&&(m=x.length+m),m>=x.length){if(V)return-1;m=x.length-1}else if(m<0)if(V)m=0;else return-1;if(typeof p=="string"&&(p=a.from(p,R)),a.isBuffer(p))return p.length===0?-1:$(x,p,m,R,V);if(typeof p=="number")return p=p&255,typeof Uint8Array.prototype.indexOf=="function"?V?Uint8Array.prototype.indexOf.call(x,p,m):Uint8Array.prototype.lastIndexOf.call(x,p,m):$(x,[p],m,R,V);throw new TypeError("val must be string, number or Buffer")}function $(x,p,m,R,V){let J=1,te=x.length,Te=p.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(x.length<2||p.length<2)return-1;J=2,te/=2,Te/=2,m/=2}function Me($e,Le){return J===1?$e[Le]:$e.readUInt16BE(Le*J)}let Ce;if(V){let $e=-1;for(Ce=m;Cete&&(m=te-Te),Ce=m;Ce>=0;Ce--){let $e=!0;for(let Le=0;LeV&&(R=V)):R=V;const J=p.length;R>J/2&&(R=J/2);let te;for(te=0;te>>0,isFinite(R)?(R=R>>>0,V===void 0&&(V="utf8")):(V=R,R=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const J=this.length-m;if((R===void 0||R>J)&&(R=J),p.length>0&&(R<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let te=!1;for(;;)switch(V){case"hex":return F(this,p,m,R);case"utf8":case"utf-8":return L(this,p,m,R);case"ascii":case"latin1":case"binary":return U(this,p,m,R);case"base64":return k(this,p,m,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,p,m,R);default:if(te)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),te=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(x,p,m){return p===0&&m===x.length?e.fromByteArray(x):e.fromByteArray(x.slice(p,m))}function O(x,p,m){m=Math.min(x.length,m);const R=[];let V=p;for(;V239?4:J>223?3:J>191?2:1;if(V+Te<=m){let Me,Ce,$e,Le;switch(Te){case 1:J<128&&(te=J);break;case 2:Me=x[V+1],(Me&192)===128&&(Le=(J&31)<<6|Me&63,Le>127&&(te=Le));break;case 3:Me=x[V+1],Ce=x[V+2],(Me&192)===128&&(Ce&192)===128&&(Le=(J&15)<<12|(Me&63)<<6|Ce&63,Le>2047&&(Le<55296||Le>57343)&&(te=Le));break;case 4:Me=x[V+1],Ce=x[V+2],$e=x[V+3],(Me&192)===128&&(Ce&192)===128&&($e&192)===128&&(Le=(J&15)<<18|(Me&63)<<12|(Ce&63)<<6|$e&63,Le>65535&&Le<1114112&&(te=Le))}}te===null?(te=65533,Te=1):te>65535&&(te-=65536,R.push(te>>>10&1023|55296),te=56320|te&1023),R.push(te),V+=Te}return Q(R)}const j=4096;function Q(x){const p=x.length;if(p<=j)return String.fromCharCode.apply(String,x);let m="",R=0;for(;RR)&&(m=R);let V="";for(let J=p;JR&&(p=R),m<0?(m+=R,m<0&&(m=0)):m>R&&(m=R),mm)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(p,m,R){p=p>>>0,m=m>>>0,R||ce(p,m,this.length);let V=this[p],J=1,te=0;for(;++te>>0,m=m>>>0,R||ce(p,m,this.length);let V=this[p+--m],J=1;for(;m>0&&(J*=256);)V+=this[p+--m]*J;return V},a.prototype.readUint8=a.prototype.readUInt8=function(p,m){return p=p>>>0,m||ce(p,1,this.length),this[p]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(p,m){return p=p>>>0,m||ce(p,2,this.length),this[p]|this[p+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(p,m){return p=p>>>0,m||ce(p,2,this.length),this[p]<<8|this[p+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(p,m){return p=p>>>0,m||ce(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(p,m){return p=p>>>0,m||ce(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},a.prototype.readBigUInt64LE=C(function(p){p=p>>>0,S(p,"offset");const m=this[p],R=this[p+7];(m===void 0||R===void 0)&&A(p,this.length-8);const V=m+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24,J=this[++p]+this[++p]*2**8+this[++p]*2**16+R*2**24;return BigInt(V)+(BigInt(J)<>>0,S(p,"offset");const m=this[p],R=this[p+7];(m===void 0||R===void 0)&&A(p,this.length-8);const V=m*2**24+this[++p]*2**16+this[++p]*2**8+this[++p],J=this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+R;return(BigInt(V)<>>0,m=m>>>0,R||ce(p,m,this.length);let V=this[p],J=1,te=0;for(;++te=J&&(V-=Math.pow(2,8*m)),V},a.prototype.readIntBE=function(p,m,R){p=p>>>0,m=m>>>0,R||ce(p,m,this.length);let V=m,J=1,te=this[p+--V];for(;V>0&&(J*=256);)te+=this[p+--V]*J;return J*=128,te>=J&&(te-=Math.pow(2,8*m)),te},a.prototype.readInt8=function(p,m){return p=p>>>0,m||ce(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},a.prototype.readInt16LE=function(p,m){p=p>>>0,m||ce(p,2,this.length);const R=this[p]|this[p+1]<<8;return R&32768?R|4294901760:R},a.prototype.readInt16BE=function(p,m){p=p>>>0,m||ce(p,2,this.length);const R=this[p+1]|this[p]<<8;return R&32768?R|4294901760:R},a.prototype.readInt32LE=function(p,m){return p=p>>>0,m||ce(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},a.prototype.readInt32BE=function(p,m){return p=p>>>0,m||ce(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},a.prototype.readBigInt64LE=C(function(p){p=p>>>0,S(p,"offset");const m=this[p],R=this[p+7];(m===void 0||R===void 0)&&A(p,this.length-8);const V=this[p+4]+this[p+5]*2**8+this[p+6]*2**16+(R<<24);return(BigInt(V)<>>0,S(p,"offset");const m=this[p],R=this[p+7];(m===void 0||R===void 0)&&A(p,this.length-8);const V=(m<<24)+this[++p]*2**16+this[++p]*2**8+this[++p];return(BigInt(V)<>>0,m||ce(p,4,this.length),r.read(this,p,!0,23,4)},a.prototype.readFloatBE=function(p,m){return p=p>>>0,m||ce(p,4,this.length),r.read(this,p,!1,23,4)},a.prototype.readDoubleLE=function(p,m){return p=p>>>0,m||ce(p,8,this.length),r.read(this,p,!0,52,8)},a.prototype.readDoubleBE=function(p,m){return p=p>>>0,m||ce(p,8,this.length),r.read(this,p,!1,52,8)};function pe(x,p,m,R,V,J){if(!a.isBuffer(x))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>V||px.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(p,m,R,V){if(p=+p,m=m>>>0,R=R>>>0,!V){const Te=Math.pow(2,8*R)-1;pe(this,p,m,R,Te,0)}let J=1,te=0;for(this[m]=p&255;++te>>0,R=R>>>0,!V){const Te=Math.pow(2,8*R)-1;pe(this,p,m,R,Te,0)}let J=R-1,te=1;for(this[m+J]=p&255;--J>=0&&(te*=256);)this[m+J]=p/te&255;return m+R},a.prototype.writeUint8=a.prototype.writeUInt8=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,1,255,0),this[m]=p&255,m+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,2,65535,0),this[m]=p&255,this[m+1]=p>>>8,m+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,2,65535,0),this[m]=p>>>8,this[m+1]=p&255,m+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,4,4294967295,0),this[m+3]=p>>>24,this[m+2]=p>>>16,this[m+1]=p>>>8,this[m]=p&255,m+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,4,4294967295,0),this[m]=p>>>24,this[m+1]=p>>>16,this[m+2]=p>>>8,this[m+3]=p&255,m+4};function de(x,p,m,R,V){w(p,R,V,x,m,7);let J=Number(p&BigInt(4294967295));x[m++]=J,J=J>>8,x[m++]=J,J=J>>8,x[m++]=J,J=J>>8,x[m++]=J;let te=Number(p>>BigInt(32)&BigInt(4294967295));return x[m++]=te,te=te>>8,x[m++]=te,te=te>>8,x[m++]=te,te=te>>8,x[m++]=te,m}function me(x,p,m,R,V){w(p,R,V,x,m,7);let J=Number(p&BigInt(4294967295));x[m+7]=J,J=J>>8,x[m+6]=J,J=J>>8,x[m+5]=J,J=J>>8,x[m+4]=J;let te=Number(p>>BigInt(32)&BigInt(4294967295));return x[m+3]=te,te=te>>8,x[m+2]=te,te=te>>8,x[m+1]=te,te=te>>8,x[m]=te,m+8}a.prototype.writeBigUInt64LE=C(function(p,m=0){return de(this,p,m,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=C(function(p,m=0){return me(this,p,m,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(p,m,R,V){if(p=+p,m=m>>>0,!V){const Me=Math.pow(2,8*R-1);pe(this,p,m,R,Me-1,-Me)}let J=0,te=1,Te=0;for(this[m]=p&255;++J>0)-Te&255;return m+R},a.prototype.writeIntBE=function(p,m,R,V){if(p=+p,m=m>>>0,!V){const Me=Math.pow(2,8*R-1);pe(this,p,m,R,Me-1,-Me)}let J=R-1,te=1,Te=0;for(this[m+J]=p&255;--J>=0&&(te*=256);)p<0&&Te===0&&this[m+J+1]!==0&&(Te=1),this[m+J]=(p/te>>0)-Te&255;return m+R},a.prototype.writeInt8=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,1,127,-128),p<0&&(p=255+p+1),this[m]=p&255,m+1},a.prototype.writeInt16LE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,2,32767,-32768),this[m]=p&255,this[m+1]=p>>>8,m+2},a.prototype.writeInt16BE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,2,32767,-32768),this[m]=p>>>8,this[m+1]=p&255,m+2},a.prototype.writeInt32LE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,4,2147483647,-2147483648),this[m]=p&255,this[m+1]=p>>>8,this[m+2]=p>>>16,this[m+3]=p>>>24,m+4},a.prototype.writeInt32BE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[m]=p>>>24,this[m+1]=p>>>16,this[m+2]=p>>>8,this[m+3]=p&255,m+4},a.prototype.writeBigInt64LE=C(function(p,m=0){return de(this,p,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=C(function(p,m=0){return me(this,p,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function be(x,p,m,R,V,J){if(m+R>x.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function G(x,p,m,R,V){return p=+p,m=m>>>0,V||be(x,p,m,4),r.write(x,p,m,R,23,4),m+4}a.prototype.writeFloatLE=function(p,m,R){return G(this,p,m,!0,R)},a.prototype.writeFloatBE=function(p,m,R){return G(this,p,m,!1,R)};function Y(x,p,m,R,V){return p=+p,m=m>>>0,V||be(x,p,m,8),r.write(x,p,m,R,52,8),m+8}a.prototype.writeDoubleLE=function(p,m,R){return Y(this,p,m,!0,R)},a.prototype.writeDoubleBE=function(p,m,R){return Y(this,p,m,!1,R)},a.prototype.copy=function(p,m,R,V){if(!a.isBuffer(p))throw new TypeError("argument should be a Buffer");if(R||(R=0),!V&&V!==0&&(V=this.length),m>=p.length&&(m=p.length),m||(m=0),V>0&&V=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),p.length-m>>0,R=R===void 0?this.length:R>>>0,p||(p=0);let J;if(typeof p=="number")for(J=m;J2**32?V=ue(String(m)):typeof m=="bigint"&&(V=String(m),(m>BigInt(2)**BigInt(32)||m<-(BigInt(2)**BigInt(32)))&&(V=ue(V)),V+="n"),R+=` It must be ${p}. Received ${V}`,R},RangeError);function ue(x){let p="",m=x.length;const R=x[0]==="-"?1:0;for(;m>=R+4;m-=3)p=`_${x.slice(m-3,m)}${p}`;return`${x.slice(0,m)}${p}`}function P(x,p,m){S(p,"offset"),(x[p]===void 0||x[p+m]===void 0)&&A(p,x.length-(m+1))}function w(x,p,m,R,V,J){if(x>m||x3?p===0||p===BigInt(0)?Te=`>= 0${te} and < 2${te} ** ${(J+1)*8}${te}`:Te=`>= -(2${te} ** ${(J+1)*8-1}${te}) and < 2 ** ${(J+1)*8-1}${te}`:Te=`>= ${p}${te} and <= ${m}${te}`,new ne.ERR_OUT_OF_RANGE("value",Te,x)}P(R,V,J)}function S(x,p){if(typeof x!="number")throw new ne.ERR_INVALID_ARG_TYPE(p,"number",x)}function A(x,p,m){throw Math.floor(x)!==x?(S(x,m),new ne.ERR_OUT_OF_RANGE(m||"offset","an integer",x)):p<0?new ne.ERR_BUFFER_OUT_OF_BOUNDS:new ne.ERR_OUT_OF_RANGE(m||"offset",`>= ${m?1:0} and <= ${p}`,x)}const B=/[^+/0-9A-Za-z-_]/g;function z(x){if(x=x.split("=")[0],x=x.trim().replace(B,""),x.length<2)return"";for(;x.length%4!==0;)x=x+"=";return x}function q(x,p){p=p||1/0;let m;const R=x.length;let V=null;const J=[];for(let te=0;te55295&&m<57344){if(!V){if(m>56319){(p-=3)>-1&&J.push(239,191,189);continue}else if(te+1===R){(p-=3)>-1&&J.push(239,191,189);continue}V=m;continue}if(m<56320){(p-=3)>-1&&J.push(239,191,189),V=m;continue}m=(V-55296<<10|m-56320)+65536}else V&&(p-=3)>-1&&J.push(239,191,189);if(V=null,m<128){if((p-=1)<0)break;J.push(m)}else if(m<2048){if((p-=2)<0)break;J.push(m>>6|192,m&63|128)}else if(m<65536){if((p-=3)<0)break;J.push(m>>12|224,m>>6&63|128,m&63|128)}else if(m<1114112){if((p-=4)<0)break;J.push(m>>18|240,m>>12&63|128,m>>6&63|128,m&63|128)}else throw new Error("Invalid code point")}return J}function ie(x){const p=[];for(let m=0;m>8,V=m%256,J.push(V),J.push(R);return J}function ae(x){return e.toByteArray(z(x))}function se(x,p,m,R){let V;for(V=0;V=p.length||V>=x.length);++V)p[V+m]=x[V];return V}function he(x,p){return x instanceof p||x!=null&&x.constructor!=null&&x.constructor.name!=null&&x.constructor.name===p.name}function fe(x){return x!==x}const ge=function(){const x="0123456789abcdef",p=new Array(256);for(let m=0;m<16;++m){const R=m*16;for(let V=0;V<16;++V)p[R+V]=x[m]+x[V]}return p}();function C(x){return typeof BigInt>"u"?N:x}function N(){throw new Error("BigInt not supported")}})(We);var sr=[],Mt=[],Xx=typeof Uint8Array<"u"?Uint8Array:Array,Bd=!1;function g0(){Bd=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e0)throw new Error("Invalid string. Length must be a multiple of 4");s=t[a-2]==="="?2:t[a-1]==="="?1:0,o=new Xx(a*3/4-s),n=s>0?a-4:a;var l=0;for(e=0,r=0;e>16&255,o[l++]=i>>8&255,o[l++]=i&255;return s===2?(i=Mt[t.charCodeAt(e)]<<2|Mt[t.charCodeAt(e+1)]>>4,o[l++]=i&255):s===1&&(i=Mt[t.charCodeAt(e)]<<10|Mt[t.charCodeAt(e+1)]<<4|Mt[t.charCodeAt(e+2)]>>2,o[l++]=i>>8&255,o[l++]=i&255),o}function Jx(t){return sr[t>>18&63]+sr[t>>12&63]+sr[t>>6&63]+sr[t&63]}function Zx(t,e,r){for(var n,i=[],s=e;sl?l:a+o));return n===1?(e=t[r-1],i+=sr[e>>2],i+=sr[e<<4&63],i+="=="):n===2&&(e=(t[r-2]<<8)+t[r-1],i+=sr[e>>10],i+=sr[e>>4&63],i+=sr[e<<2&63],i+="="),s.push(i),s.join("")}function Bl(t,e,r,n,i){var s,o,a=i*8-n-1,l=(1<>1,c=-7,f=r?i-1:0,d=r?-1:1,h=t[e+f];for(f+=d,s=h&(1<<-c)-1,h>>=-c,c+=a;c>0;s=s*256+t[e+f],f+=d,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=n;c>0;o=o*256+t[e+f],f+=d,c-=8);if(s===0)s=1-u;else{if(s===l)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-u}return(h?-1:1)*o*Math.pow(2,s-n)}function m0(t,e,r,n,i,s){var o,a,l,u=s*8-i-1,c=(1<>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:s-1,g=n?1:-1,y=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?e+=d/l:e+=d*Math.pow(2,1-f),e*l>=2&&(o++,l/=2),o+f>=c?(a=0,o=c):o+f>=1?(a=(e*l-1)*Math.pow(2,i),o=o+f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+h]=a&255,h+=g,a/=256,i-=8);for(o=o<0;t[r+h]=o&255,h+=g,o/=256,u-=8);t[r+h-g]|=y*128}var eT={}.toString,y0=Array.isArray||function(t){return eT.call(t)=="[object Array]"};/*! + */(function(t){const e=Bl,r=Bd,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=_,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=s(),!a.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 s(){try{const x=new Uint8Array(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,Uint8Array.prototype),Object.setPrototypeOf(x,p),x.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function o(x){if(x>i)throw new RangeError('The value "'+x+'" is invalid for option "size"');const p=new Uint8Array(x);return Object.setPrototypeOf(p,a.prototype),p}function a(x,p,m){if(typeof x=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(x)}return l(x,p,m)}a.poolSize=8192;function l(x,p,m){if(typeof x=="string")return d(x,p);if(ArrayBuffer.isView(x))return g(x);if(x==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x);if(he(x,ArrayBuffer)||x&&he(x.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he(x,SharedArrayBuffer)||x&&he(x.buffer,SharedArrayBuffer)))return y(x,p,m);if(typeof x=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const R=x.valueOf&&x.valueOf();if(R!=null&&R!==x)return a.from(R,p,m);const V=b(x);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof x[Symbol.toPrimitive]=="function")return a.from(x[Symbol.toPrimitive]("string"),p,m);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof x)}a.from=function(x,p,m){return l(x,p,m)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function u(x){if(typeof x!="number")throw new TypeError('"size" argument must be of type number');if(x<0)throw new RangeError('The value "'+x+'" is invalid for option "size"')}function c(x,p,m){return u(x),x<=0?o(x):p!==void 0?typeof m=="string"?o(x).fill(p,m):o(x).fill(p):o(x)}a.alloc=function(x,p,m){return c(x,p,m)};function f(x){return u(x),o(x<0?0:E(x)|0)}a.allocUnsafe=function(x){return f(x)},a.allocUnsafeSlow=function(x){return f(x)};function d(x,p){if((typeof p!="string"||p==="")&&(p="utf8"),!a.isEncoding(p))throw new TypeError("Unknown encoding: "+p);const m=v(x,p)|0;let R=o(m);const V=R.write(x,p);return V!==m&&(R=R.slice(0,V)),R}function h(x){const p=x.length<0?0:E(x.length)|0,m=o(p);for(let R=0;R=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return x|0}function _(x){return+x!=x&&(x=0),a.alloc(+x)}a.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==a.prototype},a.compare=function(p,m){if(he(p,Uint8Array)&&(p=a.from(p,p.offset,p.byteLength)),he(m,Uint8Array)&&(m=a.from(m,m.offset,m.byteLength)),!a.isBuffer(p)||!a.isBuffer(m))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===m)return 0;let R=p.length,V=m.length;for(let J=0,te=Math.min(R,V);JV.length?(a.isBuffer(te)||(te=a.from(te)),te.copy(V,J)):Uint8Array.prototype.set.call(V,te,J);else if(a.isBuffer(te))te.copy(V,J);else throw new TypeError('"list" argument must be an Array of Buffers');J+=te.length}return V};function v(x,p){if(a.isBuffer(x))return x.length;if(ArrayBuffer.isView(x)||he(x,ArrayBuffer))return x.byteLength;if(typeof x!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof x);const m=x.length,R=arguments.length>2&&arguments[2]===!0;if(!R&&m===0)return 0;let V=!1;for(;;)switch(p){case"ascii":case"latin1":case"binary":return m;case"utf8":case"utf-8":return q(x).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return m*2;case"hex":return m>>>1;case"base64":return ae(x).length;default:if(V)return R?-1:q(x).length;p=(""+p).toLowerCase(),V=!0}}a.byteLength=v;function T(x,p,m){let R=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((m===void 0||m>this.length)&&(m=this.length),m<=0)||(m>>>=0,p>>>=0,m<=p))return"";for(x||(x="utf8");;)switch(x){case"hex":return X(this,p,m);case"utf8":case"utf-8":return O(this,p,m);case"ascii":return H(this,p,m);case"latin1":case"binary":return K(this,p,m);case"base64":return D(this,p,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,p,m);default:if(R)throw new TypeError("Unknown encoding: "+x);x=(x+"").toLowerCase(),R=!0}}a.prototype._isBuffer=!0;function M(x,p,m){const R=x[p];x[p]=x[m],x[m]=R}a.prototype.swap16=function(){const p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let m=0;mm&&(p+=" ... "),""},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(p,m,R,V,J){if(he(p,Uint8Array)&&(p=a.from(p,p.offset,p.byteLength)),!a.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(m===void 0&&(m=0),R===void 0&&(R=p?p.length:0),V===void 0&&(V=0),J===void 0&&(J=this.length),m<0||R>p.length||V<0||J>this.length)throw new RangeError("out of range index");if(V>=J&&m>=R)return 0;if(V>=J)return-1;if(m>=R)return 1;if(m>>>=0,R>>>=0,V>>>=0,J>>>=0,this===p)return 0;let te=J-V,Te=R-m;const Me=Math.min(te,Te),Ce=this.slice(V,J),$e=p.slice(m,R);for(let Le=0;Le2147483647?m=2147483647:m<-2147483648&&(m=-2147483648),m=+m,fe(m)&&(m=V?0:x.length-1),m<0&&(m=x.length+m),m>=x.length){if(V)return-1;m=x.length-1}else if(m<0)if(V)m=0;else return-1;if(typeof p=="string"&&(p=a.from(p,R)),a.isBuffer(p))return p.length===0?-1:$(x,p,m,R,V);if(typeof p=="number")return p=p&255,typeof Uint8Array.prototype.indexOf=="function"?V?Uint8Array.prototype.indexOf.call(x,p,m):Uint8Array.prototype.lastIndexOf.call(x,p,m):$(x,[p],m,R,V);throw new TypeError("val must be string, number or Buffer")}function $(x,p,m,R,V){let J=1,te=x.length,Te=p.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(x.length<2||p.length<2)return-1;J=2,te/=2,Te/=2,m/=2}function Me($e,Le){return J===1?$e[Le]:$e.readUInt16BE(Le*J)}let Ce;if(V){let $e=-1;for(Ce=m;Cete&&(m=te-Te),Ce=m;Ce>=0;Ce--){let $e=!0;for(let Le=0;LeV&&(R=V)):R=V;const J=p.length;R>J/2&&(R=J/2);let te;for(te=0;te>>0,isFinite(R)?(R=R>>>0,V===void 0&&(V="utf8")):(V=R,R=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const J=this.length-m;if((R===void 0||R>J)&&(R=J),p.length>0&&(R<0||m<0)||m>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let te=!1;for(;;)switch(V){case"hex":return F(this,p,m,R);case"utf8":case"utf-8":return L(this,p,m,R);case"ascii":case"latin1":case"binary":return U(this,p,m,R);case"base64":return k(this,p,m,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,p,m,R);default:if(te)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),te=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function D(x,p,m){return p===0&&m===x.length?e.fromByteArray(x):e.fromByteArray(x.slice(p,m))}function O(x,p,m){m=Math.min(x.length,m);const R=[];let V=p;for(;V239?4:J>223?3:J>191?2:1;if(V+Te<=m){let Me,Ce,$e,Le;switch(Te){case 1:J<128&&(te=J);break;case 2:Me=x[V+1],(Me&192)===128&&(Le=(J&31)<<6|Me&63,Le>127&&(te=Le));break;case 3:Me=x[V+1],Ce=x[V+2],(Me&192)===128&&(Ce&192)===128&&(Le=(J&15)<<12|(Me&63)<<6|Ce&63,Le>2047&&(Le<55296||Le>57343)&&(te=Le));break;case 4:Me=x[V+1],Ce=x[V+2],$e=x[V+3],(Me&192)===128&&(Ce&192)===128&&($e&192)===128&&(Le=(J&15)<<18|(Me&63)<<12|(Ce&63)<<6|$e&63,Le>65535&&Le<1114112&&(te=Le))}}te===null?(te=65533,Te=1):te>65535&&(te-=65536,R.push(te>>>10&1023|55296),te=56320|te&1023),R.push(te),V+=Te}return Q(R)}const j=4096;function Q(x){const p=x.length;if(p<=j)return String.fromCharCode.apply(String,x);let m="",R=0;for(;RR)&&(m=R);let V="";for(let J=p;JR&&(p=R),m<0?(m+=R,m<0&&(m=0)):m>R&&(m=R),mm)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(p,m,R){p=p>>>0,m=m>>>0,R||ce(p,m,this.length);let V=this[p],J=1,te=0;for(;++te>>0,m=m>>>0,R||ce(p,m,this.length);let V=this[p+--m],J=1;for(;m>0&&(J*=256);)V+=this[p+--m]*J;return V},a.prototype.readUint8=a.prototype.readUInt8=function(p,m){return p=p>>>0,m||ce(p,1,this.length),this[p]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(p,m){return p=p>>>0,m||ce(p,2,this.length),this[p]|this[p+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(p,m){return p=p>>>0,m||ce(p,2,this.length),this[p]<<8|this[p+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(p,m){return p=p>>>0,m||ce(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(p,m){return p=p>>>0,m||ce(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},a.prototype.readBigUInt64LE=C(function(p){p=p>>>0,S(p,"offset");const m=this[p],R=this[p+7];(m===void 0||R===void 0)&&A(p,this.length-8);const V=m+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24,J=this[++p]+this[++p]*2**8+this[++p]*2**16+R*2**24;return BigInt(V)+(BigInt(J)<>>0,S(p,"offset");const m=this[p],R=this[p+7];(m===void 0||R===void 0)&&A(p,this.length-8);const V=m*2**24+this[++p]*2**16+this[++p]*2**8+this[++p],J=this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+R;return(BigInt(V)<>>0,m=m>>>0,R||ce(p,m,this.length);let V=this[p],J=1,te=0;for(;++te=J&&(V-=Math.pow(2,8*m)),V},a.prototype.readIntBE=function(p,m,R){p=p>>>0,m=m>>>0,R||ce(p,m,this.length);let V=m,J=1,te=this[p+--V];for(;V>0&&(J*=256);)te+=this[p+--V]*J;return J*=128,te>=J&&(te-=Math.pow(2,8*m)),te},a.prototype.readInt8=function(p,m){return p=p>>>0,m||ce(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},a.prototype.readInt16LE=function(p,m){p=p>>>0,m||ce(p,2,this.length);const R=this[p]|this[p+1]<<8;return R&32768?R|4294901760:R},a.prototype.readInt16BE=function(p,m){p=p>>>0,m||ce(p,2,this.length);const R=this[p+1]|this[p]<<8;return R&32768?R|4294901760:R},a.prototype.readInt32LE=function(p,m){return p=p>>>0,m||ce(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},a.prototype.readInt32BE=function(p,m){return p=p>>>0,m||ce(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},a.prototype.readBigInt64LE=C(function(p){p=p>>>0,S(p,"offset");const m=this[p],R=this[p+7];(m===void 0||R===void 0)&&A(p,this.length-8);const V=this[p+4]+this[p+5]*2**8+this[p+6]*2**16+(R<<24);return(BigInt(V)<>>0,S(p,"offset");const m=this[p],R=this[p+7];(m===void 0||R===void 0)&&A(p,this.length-8);const V=(m<<24)+this[++p]*2**16+this[++p]*2**8+this[++p];return(BigInt(V)<>>0,m||ce(p,4,this.length),r.read(this,p,!0,23,4)},a.prototype.readFloatBE=function(p,m){return p=p>>>0,m||ce(p,4,this.length),r.read(this,p,!1,23,4)},a.prototype.readDoubleLE=function(p,m){return p=p>>>0,m||ce(p,8,this.length),r.read(this,p,!0,52,8)},a.prototype.readDoubleBE=function(p,m){return p=p>>>0,m||ce(p,8,this.length),r.read(this,p,!1,52,8)};function pe(x,p,m,R,V,J){if(!a.isBuffer(x))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>V||px.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(p,m,R,V){if(p=+p,m=m>>>0,R=R>>>0,!V){const Te=Math.pow(2,8*R)-1;pe(this,p,m,R,Te,0)}let J=1,te=0;for(this[m]=p&255;++te>>0,R=R>>>0,!V){const Te=Math.pow(2,8*R)-1;pe(this,p,m,R,Te,0)}let J=R-1,te=1;for(this[m+J]=p&255;--J>=0&&(te*=256);)this[m+J]=p/te&255;return m+R},a.prototype.writeUint8=a.prototype.writeUInt8=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,1,255,0),this[m]=p&255,m+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,2,65535,0),this[m]=p&255,this[m+1]=p>>>8,m+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,2,65535,0),this[m]=p>>>8,this[m+1]=p&255,m+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,4,4294967295,0),this[m+3]=p>>>24,this[m+2]=p>>>16,this[m+1]=p>>>8,this[m]=p&255,m+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,4,4294967295,0),this[m]=p>>>24,this[m+1]=p>>>16,this[m+2]=p>>>8,this[m+3]=p&255,m+4};function de(x,p,m,R,V){w(p,R,V,x,m,7);let J=Number(p&BigInt(4294967295));x[m++]=J,J=J>>8,x[m++]=J,J=J>>8,x[m++]=J,J=J>>8,x[m++]=J;let te=Number(p>>BigInt(32)&BigInt(4294967295));return x[m++]=te,te=te>>8,x[m++]=te,te=te>>8,x[m++]=te,te=te>>8,x[m++]=te,m}function me(x,p,m,R,V){w(p,R,V,x,m,7);let J=Number(p&BigInt(4294967295));x[m+7]=J,J=J>>8,x[m+6]=J,J=J>>8,x[m+5]=J,J=J>>8,x[m+4]=J;let te=Number(p>>BigInt(32)&BigInt(4294967295));return x[m+3]=te,te=te>>8,x[m+2]=te,te=te>>8,x[m+1]=te,te=te>>8,x[m]=te,m+8}a.prototype.writeBigUInt64LE=C(function(p,m=0){return de(this,p,m,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=C(function(p,m=0){return me(this,p,m,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(p,m,R,V){if(p=+p,m=m>>>0,!V){const Me=Math.pow(2,8*R-1);pe(this,p,m,R,Me-1,-Me)}let J=0,te=1,Te=0;for(this[m]=p&255;++J>0)-Te&255;return m+R},a.prototype.writeIntBE=function(p,m,R,V){if(p=+p,m=m>>>0,!V){const Me=Math.pow(2,8*R-1);pe(this,p,m,R,Me-1,-Me)}let J=R-1,te=1,Te=0;for(this[m+J]=p&255;--J>=0&&(te*=256);)p<0&&Te===0&&this[m+J+1]!==0&&(Te=1),this[m+J]=(p/te>>0)-Te&255;return m+R},a.prototype.writeInt8=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,1,127,-128),p<0&&(p=255+p+1),this[m]=p&255,m+1},a.prototype.writeInt16LE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,2,32767,-32768),this[m]=p&255,this[m+1]=p>>>8,m+2},a.prototype.writeInt16BE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,2,32767,-32768),this[m]=p>>>8,this[m+1]=p&255,m+2},a.prototype.writeInt32LE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,4,2147483647,-2147483648),this[m]=p&255,this[m+1]=p>>>8,this[m+2]=p>>>16,this[m+3]=p>>>24,m+4},a.prototype.writeInt32BE=function(p,m,R){return p=+p,m=m>>>0,R||pe(this,p,m,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[m]=p>>>24,this[m+1]=p>>>16,this[m+2]=p>>>8,this[m+3]=p&255,m+4},a.prototype.writeBigInt64LE=C(function(p,m=0){return de(this,p,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=C(function(p,m=0){return me(this,p,m,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function be(x,p,m,R,V,J){if(m+R>x.length)throw new RangeError("Index out of range");if(m<0)throw new RangeError("Index out of range")}function G(x,p,m,R,V){return p=+p,m=m>>>0,V||be(x,p,m,4),r.write(x,p,m,R,23,4),m+4}a.prototype.writeFloatLE=function(p,m,R){return G(this,p,m,!0,R)},a.prototype.writeFloatBE=function(p,m,R){return G(this,p,m,!1,R)};function Y(x,p,m,R,V){return p=+p,m=m>>>0,V||be(x,p,m,8),r.write(x,p,m,R,52,8),m+8}a.prototype.writeDoubleLE=function(p,m,R){return Y(this,p,m,!0,R)},a.prototype.writeDoubleBE=function(p,m,R){return Y(this,p,m,!1,R)},a.prototype.copy=function(p,m,R,V){if(!a.isBuffer(p))throw new TypeError("argument should be a Buffer");if(R||(R=0),!V&&V!==0&&(V=this.length),m>=p.length&&(m=p.length),m||(m=0),V>0&&V=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),p.length-m>>0,R=R===void 0?this.length:R>>>0,p||(p=0);let J;if(typeof p=="number")for(J=m;J2**32?V=ue(String(m)):typeof m=="bigint"&&(V=String(m),(m>BigInt(2)**BigInt(32)||m<-(BigInt(2)**BigInt(32)))&&(V=ue(V)),V+="n"),R+=` It must be ${p}. Received ${V}`,R},RangeError);function ue(x){let p="",m=x.length;const R=x[0]==="-"?1:0;for(;m>=R+4;m-=3)p=`_${x.slice(m-3,m)}${p}`;return`${x.slice(0,m)}${p}`}function P(x,p,m){S(p,"offset"),(x[p]===void 0||x[p+m]===void 0)&&A(p,x.length-(m+1))}function w(x,p,m,R,V,J){if(x>m||x3?p===0||p===BigInt(0)?Te=`>= 0${te} and < 2${te} ** ${(J+1)*8}${te}`:Te=`>= -(2${te} ** ${(J+1)*8-1}${te}) and < 2 ** ${(J+1)*8-1}${te}`:Te=`>= ${p}${te} and <= ${m}${te}`,new ne.ERR_OUT_OF_RANGE("value",Te,x)}P(R,V,J)}function S(x,p){if(typeof x!="number")throw new ne.ERR_INVALID_ARG_TYPE(p,"number",x)}function A(x,p,m){throw Math.floor(x)!==x?(S(x,m),new ne.ERR_OUT_OF_RANGE(m||"offset","an integer",x)):p<0?new ne.ERR_BUFFER_OUT_OF_BOUNDS:new ne.ERR_OUT_OF_RANGE(m||"offset",`>= ${m?1:0} and <= ${p}`,x)}const B=/[^+/0-9A-Za-z-_]/g;function z(x){if(x=x.split("=")[0],x=x.trim().replace(B,""),x.length<2)return"";for(;x.length%4!==0;)x=x+"=";return x}function q(x,p){p=p||1/0;let m;const R=x.length;let V=null;const J=[];for(let te=0;te55295&&m<57344){if(!V){if(m>56319){(p-=3)>-1&&J.push(239,191,189);continue}else if(te+1===R){(p-=3)>-1&&J.push(239,191,189);continue}V=m;continue}if(m<56320){(p-=3)>-1&&J.push(239,191,189),V=m;continue}m=(V-55296<<10|m-56320)+65536}else V&&(p-=3)>-1&&J.push(239,191,189);if(V=null,m<128){if((p-=1)<0)break;J.push(m)}else if(m<2048){if((p-=2)<0)break;J.push(m>>6|192,m&63|128)}else if(m<65536){if((p-=3)<0)break;J.push(m>>12|224,m>>6&63|128,m&63|128)}else if(m<1114112){if((p-=4)<0)break;J.push(m>>18|240,m>>12&63|128,m>>6&63|128,m&63|128)}else throw new Error("Invalid code point")}return J}function ie(x){const p=[];for(let m=0;m>8,V=m%256,J.push(V),J.push(R);return J}function ae(x){return e.toByteArray(z(x))}function se(x,p,m,R){let V;for(V=0;V=p.length||V>=x.length);++V)p[V+m]=x[V];return V}function he(x,p){return x instanceof p||x!=null&&x.constructor!=null&&x.constructor.name!=null&&x.constructor.name===p.name}function fe(x){return x!==x}const ge=function(){const x="0123456789abcdef",p=new Array(256);for(let m=0;m<16;++m){const R=m*16;for(let V=0;V<16;++V)p[R+V]=x[m]+x[V]}return p}();function C(x){return typeof BigInt>"u"?N:x}function N(){throw new Error("BigInt not supported")}})(We);var sr=[],Mt=[],Qx=typeof Uint8Array<"u"?Uint8Array:Array,Fd=!1;function m0(){Fd=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,r=t.length;e0)throw new Error("Invalid string. Length must be a multiple of 4");s=t[a-2]==="="?2:t[a-1]==="="?1:0,o=new Qx(a*3/4-s),n=s>0?a-4:a;var l=0;for(e=0,r=0;e>16&255,o[l++]=i>>8&255,o[l++]=i&255;return s===2?(i=Mt[t.charCodeAt(e)]<<2|Mt[t.charCodeAt(e+1)]>>4,o[l++]=i&255):s===1&&(i=Mt[t.charCodeAt(e)]<<10|Mt[t.charCodeAt(e+1)]<<4|Mt[t.charCodeAt(e+2)]>>2,o[l++]=i>>8&255,o[l++]=i&255),o}function Zx(t){return sr[t>>18&63]+sr[t>>12&63]+sr[t>>6&63]+sr[t&63]}function eT(t,e,r){for(var n,i=[],s=e;sl?l:a+o));return n===1?(e=t[r-1],i+=sr[e>>2],i+=sr[e<<4&63],i+="=="):n===2&&(e=(t[r-2]<<8)+t[r-1],i+=sr[e>>10],i+=sr[e>>4&63],i+=sr[e<<2&63],i+="="),s.push(i),s.join("")}function Fl(t,e,r,n,i){var s,o,a=i*8-n-1,l=(1<>1,c=-7,f=r?i-1:0,d=r?-1:1,h=t[e+f];for(f+=d,s=h&(1<<-c)-1,h>>=-c,c+=a;c>0;s=s*256+t[e+f],f+=d,c-=8);for(o=s&(1<<-c)-1,s>>=-c,c+=n;c>0;o=o*256+t[e+f],f+=d,c-=8);if(s===0)s=1-u;else{if(s===l)return o?NaN:(h?-1:1)*(1/0);o=o+Math.pow(2,n),s=s-u}return(h?-1:1)*o*Math.pow(2,s-n)}function y0(t,e,r,n,i,s){var o,a,l,u=s*8-i-1,c=(1<>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:s-1,g=n?1:-1,y=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+f>=1?e+=d/l:e+=d*Math.pow(2,1-f),e*l>=2&&(o++,l/=2),o+f>=c?(a=0,o=c):o+f>=1?(a=(e*l-1)*Math.pow(2,i),o=o+f):(a=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i>=8;t[r+h]=a&255,h+=g,a/=256,i-=8);for(o=o<0;t[r+h]=o&255,h+=g,o/=256,u-=8);t[r+h-g]|=y*128}var tT={}.toString,w0=Array.isArray||function(t){return tT.call(t)=="[object Array]"};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */var tT=50;oe.TYPED_ARRAY_SUPPORT=ln.TYPED_ARRAY_SUPPORT!==void 0?ln.TYPED_ARRAY_SUPPORT:!0;Wa();function Wa(){return oe.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ar(t,e){if(Wa()=Wa())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Wa().toString(16)+" bytes");return t|0}oe.isBuffer=TT;function pr(t){return!!(t!=null&&t._isBuffer)}oe.compare=function(e,r){if(!pr(e)||!pr(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var n=e.length,i=r.length,s=0,o=Math.min(n,i);s>>1;case"base64":return M0(t).length;default:if(n)return Va(t).length;e=(""+e).toLowerCase(),n=!0}}oe.byteLength=_0;function oT(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return mT(this,e,r);case"utf8":case"utf-8":return S0(this,e,r);case"ascii":return pT(this,e,r);case"latin1":case"binary":return gT(this,e,r);case"base64":return dT(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return yT(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}oe.prototype._isBuffer=!0;function Nn(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}oe.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""};oe.prototype.compare=function(e,r,n,i,s){if(!pr(e))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),r<0||n>e.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&r>=n)return 0;if(i>=s)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,s>>>=0,this===e)return 0;for(var o=s-i,a=n-r,l=Math.min(o,a),u=this.slice(i,s),c=e.slice(r,n),f=0;f2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=oe.from(e,n)),pr(e))return e.length===0?-1:qp(t,e,r,n,i);if(typeof e=="number")return e=e&255,oe.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):qp(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function qp(t,e,r,n,i){var s=1,o=t.length,a=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;s=2,o/=2,a/=2,r/=2}function l(h,g){return s===1?h[g]:h.readUInt16BE(g*s)}var u;if(i){var c=-1;for(u=r;uo&&(r=o-a),u=r;u>=0;u--){for(var f=!0,d=0;di&&(n=i)):n=i;var s=e.length;if(s%2!==0)throw new TypeError("Invalid hex string");n>s/2&&(n=s/2);for(var o=0;os)&&(n=s),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return aT(this,e,r,n);case"utf8":case"utf-8":return lT(this,e,r,n);case"ascii":return E0(this,e,r,n);case"latin1":case"binary":return uT(this,e,r,n);case"base64":return cT(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fT(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};oe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function dT(t,e,r){return e===0&&r===t.length?Vp(t):Vp(t.slice(e,r))}function S0(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:s>223?3:s>191?2:1;if(i+a<=r){var l,u,c,f;switch(a){case 1:s<128&&(o=s);break;case 2:l=t[i+1],(l&192)===128&&(f=(s&31)<<6|l&63,f>127&&(o=f));break;case 3:l=t[i+1],u=t[i+2],(l&192)===128&&(u&192)===128&&(f=(s&15)<<12|(l&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:l=t[i+1],u=t[i+2],c=t[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(f=(s&15)<<18|(l&63)<<12|(u&63)<<6|c&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=a}return hT(n)}var Yp=4096;function hT(t){var e=t.length;if(e<=Yp)return String.fromCharCode.apply(String,t);for(var r="",n=0;nn)&&(r=n);for(var i="",s=e;sn&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}oe.prototype.readUIntLE=function(e,r,n){e=e|0,r=r|0,n||Ke(e,r,this.length);for(var i=this[e],s=1,o=0;++o0&&(s*=256);)i+=this[e+--r]*s;return i};oe.prototype.readUInt8=function(e,r){return r||Ke(e,1,this.length),this[e]};oe.prototype.readUInt16LE=function(e,r){return r||Ke(e,2,this.length),this[e]|this[e+1]<<8};oe.prototype.readUInt16BE=function(e,r){return r||Ke(e,2,this.length),this[e]<<8|this[e+1]};oe.prototype.readUInt32LE=function(e,r){return r||Ke(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};oe.prototype.readUInt32BE=function(e,r){return r||Ke(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};oe.prototype.readIntLE=function(e,r,n){e=e|0,r=r|0,n||Ke(e,r,this.length);for(var i=this[e],s=1,o=0;++o=s&&(i-=Math.pow(2,8*r)),i};oe.prototype.readIntBE=function(e,r,n){e=e|0,r=r|0,n||Ke(e,r,this.length);for(var i=r,s=1,o=this[e+--i];i>0&&(s*=256);)o+=this[e+--i]*s;return s*=128,o>=s&&(o-=Math.pow(2,8*r)),o};oe.prototype.readInt8=function(e,r){return r||Ke(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};oe.prototype.readInt16LE=function(e,r){r||Ke(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};oe.prototype.readInt16BE=function(e,r){r||Ke(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};oe.prototype.readInt32LE=function(e,r){return r||Ke(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};oe.prototype.readInt32BE=function(e,r){return r||Ke(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};oe.prototype.readFloatLE=function(e,r){return r||Ke(e,4,this.length),Bl(this,e,!0,23,4)};oe.prototype.readFloatBE=function(e,r){return r||Ke(e,4,this.length),Bl(this,e,!1,23,4)};oe.prototype.readDoubleLE=function(e,r){return r||Ke(e,8,this.length),Bl(this,e,!0,52,8)};oe.prototype.readDoubleBE=function(e,r){return r||Ke(e,8,this.length),Bl(this,e,!1,52,8)};function wt(t,e,r,n,i,s){if(!pr(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}oe.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r|0,n=n|0,!i){var s=Math.pow(2,8*n)-1;wt(this,e,r,n,s,0)}var o=1,a=0;for(this[r]=e&255;++a=0&&(a*=256);)this[r+o]=e/a&255;return r+n};oe.prototype.writeUInt8=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,1,255,0),oe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=e&255,r+1};function Fl(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,s=Math.min(t.length-r,2);i>>(n?i:1-i)*8}oe.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,2,65535,0),oe.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):Fl(this,e,r,!0),r+2};oe.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,2,65535,0),oe.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):Fl(this,e,r,!1),r+2};function Ul(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,s=Math.min(t.length-r,4);i>>(n?i:3-i)*8&255}oe.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,4,4294967295,0),oe.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255):Ul(this,e,r,!0),r+4};oe.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,4,4294967295,0),oe.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):Ul(this,e,r,!1),r+4};oe.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r|0,!i){var s=Math.pow(2,8*n-1);wt(this,e,r,n,s-1,-s)}var o=0,a=1,l=0;for(this[r]=e&255;++o>0)-l&255;return r+n};oe.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r|0,!i){var s=Math.pow(2,8*n-1);wt(this,e,r,n,s-1,-s)}var o=n-1,a=1,l=0;for(this[r+o]=e&255;--o>=0&&(a*=256);)e<0&&l===0&&this[r+o+1]!==0&&(l=1),this[r+o]=(e/a>>0)-l&255;return r+n};oe.prototype.writeInt8=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,1,127,-128),oe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[r]=e&255,r+1};oe.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,2,32767,-32768),oe.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):Fl(this,e,r,!0),r+2};oe.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,2,32767,-32768),oe.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):Fl(this,e,r,!1),r+2};oe.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,4,2147483647,-2147483648),oe.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):Ul(this,e,r,!0),r+4};oe.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),oe.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):Ul(this,e,r,!1),r+4};function x0(t,e,r,n,i,s){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function T0(t,e,r,n,i){return i||x0(t,e,r,4),m0(t,e,r,n,23,4),r+4}oe.prototype.writeFloatLE=function(e,r,n){return T0(this,e,r,!0,n)};oe.prototype.writeFloatBE=function(e,r,n){return T0(this,e,r,!1,n)};function A0(t,e,r,n,i){return i||x0(t,e,r,8),m0(t,e,r,n,52,8),r+8}oe.prototype.writeDoubleLE=function(e,r,n){return A0(this,e,r,!0,n)};oe.prototype.writeDoubleBE=function(e,r,n){return A0(this,e,r,!1,n)};oe.prototype.copy=function(e,r,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r=0;--o)e[o+r]=this[o+n];else if(s<1e3||!oe.TYPED_ARRAY_SUPPORT)for(o=0;o>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function ET(t){for(var e=[],r=0;r>8,i=r%256,s.push(i),s.push(n);return s}function M0(t){return Qx(bT(t))}function jl(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function xT(t){return t!==t}function TT(t){return t!=null&&(!!t._isBuffer||C0(t)||AT(t))}function C0(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function AT(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&C0(t.slice(0,0))}var I0={exports:{}},ze=I0.exports={},er,tr;function gf(){throw new Error("setTimeout has not been defined")}function mf(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?er=setTimeout:er=gf}catch{er=gf}try{typeof clearTimeout=="function"?tr=clearTimeout:tr=mf}catch{tr=mf}})();function O0(t){if(er===setTimeout)return setTimeout(t,0);if((er===gf||!er)&&setTimeout)return er=setTimeout,setTimeout(t,0);try{return er(t,0)}catch{try{return er.call(null,t,0)}catch{return er.call(this,t,0)}}}function MT(t){if(tr===clearTimeout)return clearTimeout(t);if((tr===mf||!tr)&&clearTimeout)return tr=clearTimeout,clearTimeout(t);try{return tr(t)}catch{try{return tr.call(null,t)}catch{return tr.call(this,t)}}}var Mr=[],Ri=!1,$n,_a=-1;function CT(){!Ri||!$n||(Ri=!1,$n.length?Mr=$n.concat(Mr):_a=-1,Mr.length&&P0())}function P0(){if(!Ri){var t=O0(CT);Ri=!0;for(var e=Mr.length;e;){for($n=Mr,Mr=[];++_a1)for(var r=1;r=i)return a;switch(a){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return a}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Hl(e)?r.showHidden=e:e&&qd(r,e),ar(r.showHidden)&&(r.showHidden=!1),ar(r.depth)&&(r.depth=2),ar(r.colors)&&(r.colors=!1),ar(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=OT),qa(r,t,r.depth)}lr.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]};lr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function OT(t,e){var r=lr.styles[e];return r?"\x1B["+lr.colors[r][0]+"m"+t+"\x1B["+lr.colors[r][1]+"m":t}function PT(t,e){return t}function RT(t){var e={};return t.forEach(function(r,n){e[r]=!0}),e}function qa(t,e,r){if(t.customInspect&&e&&qs(e.inspect)&&e.inspect!==lr&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(r,t);return yn(n)||(n=qa(t,n,r)),n}var i=LT(t,e);if(i)return i;var s=Object.keys(e),o=RT(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(e)),Vs(e)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return zu(e);if(s.length===0){if(qs(e)){var a=e.name?": "+e.name:"";return t.stylize("[Function"+a+"]","special")}if(Ws(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Ya(e))return t.stylize(Date.prototype.toString.call(e),"date");if(Vs(e))return zu(e)}var l="",u=!1,c=["{","}"];if(zd(e)&&(u=!0,c=["[","]"]),qs(e)){var f=e.name?": "+e.name:"";l=" [Function"+f+"]"}if(Ws(e)&&(l=" "+RegExp.prototype.toString.call(e)),Ya(e)&&(l=" "+Date.prototype.toUTCString.call(e)),Vs(e)&&(l=" "+zu(e)),s.length===0&&(!u||e.length==0))return c[0]+l+c[1];if(r<0)return Ws(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var d;return u?d=NT(t,e,r,o,s):d=s.map(function(h){return wf(t,e,r,o,h,u)}),t.seen.pop(),$T(d,l,c)}function LT(t,e){if(ar(e))return t.stylize("undefined","undefined");if(yn(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(Wd(e))return t.stylize(""+e,"number");if(Hl(e))return t.stylize(""+e,"boolean");if(Cr(e))return t.stylize("null","null")}function zu(t){return"["+Error.prototype.toString.call(t)+"]"}function NT(t,e,r,n,i){for(var s=[],o=0,a=e.length;o=Va())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Va().toString(16)+" bytes");return t|0}oe.isBuffer=AT;function pr(t){return!!(t!=null&&t._isBuffer)}oe.compare=function(e,r){if(!pr(e)||!pr(r))throw new TypeError("Arguments must be Buffers");if(e===r)return 0;for(var n=e.length,i=r.length,s=0,o=Math.min(n,i);s>>1;case"base64":return C0(t).length;default:if(n)return qa(t).length;e=(""+e).toLowerCase(),n=!0}}oe.byteLength=v0;function aT(t,e,r){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(t||(t="utf8");;)switch(t){case"hex":return yT(this,e,r);case"utf8":case"utf-8":return x0(this,e,r);case"ascii":return gT(this,e,r);case"latin1":case"binary":return mT(this,e,r);case"base64":return hT(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return wT(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}oe.prototype._isBuffer=!0;function Nn(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}oe.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""};oe.prototype.compare=function(e,r,n,i,s){if(!pr(e))throw new TypeError("Argument must be a Buffer");if(r===void 0&&(r=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),r<0||n>e.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&r>=n)return 0;if(i>=s)return-1;if(r>=n)return 1;if(r>>>=0,n>>>=0,i>>>=0,s>>>=0,this===e)return 0;for(var o=s-i,a=n-r,l=Math.min(o,a),u=this.slice(i,s),c=e.slice(r,n),f=0;f2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0)if(i)r=0;else return-1;if(typeof e=="string"&&(e=oe.from(e,n)),pr(e))return e.length===0?-1:Yp(t,e,r,n,i);if(typeof e=="number")return e=e&255,oe.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):Yp(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function Yp(t,e,r,n,i){var s=1,o=t.length,a=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(t.length<2||e.length<2)return-1;s=2,o/=2,a/=2,r/=2}function l(h,g){return s===1?h[g]:h.readUInt16BE(g*s)}var u;if(i){var c=-1;for(u=r;uo&&(r=o-a),u=r;u>=0;u--){for(var f=!0,d=0;di&&(n=i)):n=i;var s=e.length;if(s%2!==0)throw new TypeError("Invalid hex string");n>s/2&&(n=s/2);for(var o=0;os)&&(n=s),e.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return lT(this,e,r,n);case"utf8":case"utf-8":return uT(this,e,r,n);case"ascii":return S0(this,e,r,n);case"latin1":case"binary":return cT(this,e,r,n);case"base64":return fT(this,e,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return dT(this,e,r,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}};oe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function hT(t,e,r){return e===0&&r===t.length?qp(t):qp(t.slice(e,r))}function x0(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:s>223?3:s>191?2:1;if(i+a<=r){var l,u,c,f;switch(a){case 1:s<128&&(o=s);break;case 2:l=t[i+1],(l&192)===128&&(f=(s&31)<<6|l&63,f>127&&(o=f));break;case 3:l=t[i+1],u=t[i+2],(l&192)===128&&(u&192)===128&&(f=(s&15)<<12|(l&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(o=f));break;case 4:l=t[i+1],u=t[i+2],c=t[i+3],(l&192)===128&&(u&192)===128&&(c&192)===128&&(f=(s&15)<<18|(l&63)<<12|(u&63)<<6|c&63,f>65535&&f<1114112&&(o=f))}}o===null?(o=65533,a=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|o&1023),n.push(o),i+=a}return pT(n)}var Kp=4096;function pT(t){var e=t.length;if(e<=Kp)return String.fromCharCode.apply(String,t);for(var r="",n=0;nn)&&(r=n);for(var i="",s=e;sn&&(e=n),r<0?(r+=n,r<0&&(r=0)):r>n&&(r=n),rr)throw new RangeError("Trying to access beyond buffer length")}oe.prototype.readUIntLE=function(e,r,n){e=e|0,r=r|0,n||Ke(e,r,this.length);for(var i=this[e],s=1,o=0;++o0&&(s*=256);)i+=this[e+--r]*s;return i};oe.prototype.readUInt8=function(e,r){return r||Ke(e,1,this.length),this[e]};oe.prototype.readUInt16LE=function(e,r){return r||Ke(e,2,this.length),this[e]|this[e+1]<<8};oe.prototype.readUInt16BE=function(e,r){return r||Ke(e,2,this.length),this[e]<<8|this[e+1]};oe.prototype.readUInt32LE=function(e,r){return r||Ke(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};oe.prototype.readUInt32BE=function(e,r){return r||Ke(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};oe.prototype.readIntLE=function(e,r,n){e=e|0,r=r|0,n||Ke(e,r,this.length);for(var i=this[e],s=1,o=0;++o=s&&(i-=Math.pow(2,8*r)),i};oe.prototype.readIntBE=function(e,r,n){e=e|0,r=r|0,n||Ke(e,r,this.length);for(var i=r,s=1,o=this[e+--i];i>0&&(s*=256);)o+=this[e+--i]*s;return s*=128,o>=s&&(o-=Math.pow(2,8*r)),o};oe.prototype.readInt8=function(e,r){return r||Ke(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};oe.prototype.readInt16LE=function(e,r){r||Ke(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};oe.prototype.readInt16BE=function(e,r){r||Ke(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};oe.prototype.readInt32LE=function(e,r){return r||Ke(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};oe.prototype.readInt32BE=function(e,r){return r||Ke(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};oe.prototype.readFloatLE=function(e,r){return r||Ke(e,4,this.length),Fl(this,e,!0,23,4)};oe.prototype.readFloatBE=function(e,r){return r||Ke(e,4,this.length),Fl(this,e,!1,23,4)};oe.prototype.readDoubleLE=function(e,r){return r||Ke(e,8,this.length),Fl(this,e,!0,52,8)};oe.prototype.readDoubleBE=function(e,r){return r||Ke(e,8,this.length),Fl(this,e,!1,52,8)};function wt(t,e,r,n,i,s){if(!pr(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}oe.prototype.writeUIntLE=function(e,r,n,i){if(e=+e,r=r|0,n=n|0,!i){var s=Math.pow(2,8*n)-1;wt(this,e,r,n,s,0)}var o=1,a=0;for(this[r]=e&255;++a=0&&(a*=256);)this[r+o]=e/a&255;return r+n};oe.prototype.writeUInt8=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,1,255,0),oe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=e&255,r+1};function Ul(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,s=Math.min(t.length-r,2);i>>(n?i:1-i)*8}oe.prototype.writeUInt16LE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,2,65535,0),oe.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):Ul(this,e,r,!0),r+2};oe.prototype.writeUInt16BE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,2,65535,0),oe.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):Ul(this,e,r,!1),r+2};function jl(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,s=Math.min(t.length-r,4);i>>(n?i:3-i)*8&255}oe.prototype.writeUInt32LE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,4,4294967295,0),oe.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255):jl(this,e,r,!0),r+4};oe.prototype.writeUInt32BE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,4,4294967295,0),oe.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):jl(this,e,r,!1),r+4};oe.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r=r|0,!i){var s=Math.pow(2,8*n-1);wt(this,e,r,n,s-1,-s)}var o=0,a=1,l=0;for(this[r]=e&255;++o>0)-l&255;return r+n};oe.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r=r|0,!i){var s=Math.pow(2,8*n-1);wt(this,e,r,n,s-1,-s)}var o=n-1,a=1,l=0;for(this[r+o]=e&255;--o>=0&&(a*=256);)e<0&&l===0&&this[r+o+1]!==0&&(l=1),this[r+o]=(e/a>>0)-l&255;return r+n};oe.prototype.writeInt8=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,1,127,-128),oe.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[r]=e&255,r+1};oe.prototype.writeInt16LE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,2,32767,-32768),oe.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8):Ul(this,e,r,!0),r+2};oe.prototype.writeInt16BE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,2,32767,-32768),oe.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=e&255):Ul(this,e,r,!1),r+2};oe.prototype.writeInt32LE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,4,2147483647,-2147483648),oe.TYPED_ARRAY_SUPPORT?(this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):jl(this,e,r,!0),r+4};oe.prototype.writeInt32BE=function(e,r,n){return e=+e,r=r|0,n||wt(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),oe.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255):jl(this,e,r,!1),r+4};function T0(t,e,r,n,i,s){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function A0(t,e,r,n,i){return i||T0(t,e,r,4),y0(t,e,r,n,23,4),r+4}oe.prototype.writeFloatLE=function(e,r,n){return A0(this,e,r,!0,n)};oe.prototype.writeFloatBE=function(e,r,n){return A0(this,e,r,!1,n)};function M0(t,e,r,n,i){return i||T0(t,e,r,8),y0(t,e,r,n,52,8),r+8}oe.prototype.writeDoubleLE=function(e,r,n){return M0(this,e,r,!0,n)};oe.prototype.writeDoubleBE=function(e,r,n){return M0(this,e,r,!1,n)};oe.prototype.copy=function(e,r,n,i){if(n||(n=0),!i&&i!==0&&(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r=0;--o)e[o+r]=this[o+n];else if(s<1e3||!oe.TYPED_ARRAY_SUPPORT)for(o=0;o>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var o;if(typeof e=="number")for(o=r;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(o+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&s.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;s.push(r)}else if(r<2048){if((e-=2)<0)break;s.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;s.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return s}function ST(t){for(var e=[],r=0;r>8,i=r%256,s.push(i),s.push(n);return s}function C0(t){return Jx(_T(t))}function zl(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function TT(t){return t!==t}function AT(t){return t!=null&&(!!t._isBuffer||I0(t)||MT(t))}function I0(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}function MT(t){return typeof t.readFloatLE=="function"&&typeof t.slice=="function"&&I0(t.slice(0,0))}var O0={exports:{}},ze=O0.exports={},er,tr;function mf(){throw new Error("setTimeout has not been defined")}function yf(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?er=setTimeout:er=mf}catch{er=mf}try{typeof clearTimeout=="function"?tr=clearTimeout:tr=yf}catch{tr=yf}})();function P0(t){if(er===setTimeout)return setTimeout(t,0);if((er===mf||!er)&&setTimeout)return er=setTimeout,setTimeout(t,0);try{return er(t,0)}catch{try{return er.call(null,t,0)}catch{return er.call(this,t,0)}}}function CT(t){if(tr===clearTimeout)return clearTimeout(t);if((tr===yf||!tr)&&clearTimeout)return tr=clearTimeout,clearTimeout(t);try{return tr(t)}catch{try{return tr.call(null,t)}catch{return tr.call(this,t)}}}var Mr=[],Ri=!1,$n,va=-1;function IT(){!Ri||!$n||(Ri=!1,$n.length?Mr=$n.concat(Mr):va=-1,Mr.length&&R0())}function R0(){if(!Ri){var t=P0(IT);Ri=!0;for(var e=Mr.length;e;){for($n=Mr,Mr=[];++va1)for(var r=1;r=i)return a;switch(a){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}default:return a}}),o=n[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),Wl(e)?r.showHidden=e:e&&Yd(r,e),ar(r.showHidden)&&(r.showHidden=!1),ar(r.depth)&&(r.depth=2),ar(r.colors)&&(r.colors=!1),ar(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=PT),Ya(r,t,r.depth)}lr.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]};lr.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function PT(t,e){var r=lr.styles[e];return r?"\x1B["+lr.colors[r][0]+"m"+t+"\x1B["+lr.colors[r][1]+"m":t}function RT(t,e){return t}function LT(t){var e={};return t.forEach(function(r,n){e[r]=!0}),e}function Ya(t,e,r){if(t.customInspect&&e&&Ys(e.inspect)&&e.inspect!==lr&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(r,t);return yn(n)||(n=Ya(t,n,r)),n}var i=NT(t,e);if(i)return i;var s=Object.keys(e),o=LT(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(e)),qs(e)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return Hu(e);if(s.length===0){if(Ys(e)){var a=e.name?": "+e.name:"";return t.stylize("[Function"+a+"]","special")}if(Vs(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(Ka(e))return t.stylize(Date.prototype.toString.call(e),"date");if(qs(e))return Hu(e)}var l="",u=!1,c=["{","}"];if(Hd(e)&&(u=!0,c=["[","]"]),Ys(e)){var f=e.name?": "+e.name:"";l=" [Function"+f+"]"}if(Vs(e)&&(l=" "+RegExp.prototype.toString.call(e)),Ka(e)&&(l=" "+Date.prototype.toUTCString.call(e)),qs(e)&&(l=" "+Hu(e)),s.length===0&&(!u||e.length==0))return c[0]+l+c[1];if(r<0)return Vs(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");t.seen.push(e);var d;return u?d=$T(t,e,r,o,s):d=s.map(function(h){return bf(t,e,r,o,h,u)}),t.seen.pop(),kT(d,l,c)}function NT(t,e){if(ar(e))return t.stylize("undefined","undefined");if(yn(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(Vd(e))return t.stylize(""+e,"number");if(Wl(e))return t.stylize(""+e,"boolean");if(Cr(e))return t.stylize("null","null")}function Hu(t){return"["+Error.prototype.toString.call(t)+"]"}function $T(t,e,r,n,i){for(var s=[],o=0,a=e.length;o-1&&(s?a=a.split(` `).map(function(u){return" "+u}).join(` `).substr(2):a=` `+a.split(` `).map(function(u){return" "+u}).join(` -`))):a=t.stylize("[Circular]","special")),ar(o)){if(s&&i.match(/^\d+$/))return a;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function $T(t,e,r){var n=t.reduce(function(i,s){return s.indexOf(` +`))):a=t.stylize("[Circular]","special")),ar(o)){if(s&&i.match(/^\d+$/))return a;o=JSON.stringify(""+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=t.stylize(o,"string"))}return o+": "+a}function kT(t,e,r){var n=t.reduce(function(i,s){return s.indexOf(` `)>=0,i+s.replace(/\u001b\[\d\d?m/g,"").length+1},0);return n>60?r[0]+(e===""?"":e+` `)+" "+t.join(`, - `)+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function zd(t){return Array.isArray(t)}function Hl(t){return typeof t=="boolean"}function Cr(t){return t===null}function Hd(t){return t==null}function Wd(t){return typeof t=="number"}function yn(t){return typeof t=="string"}function $0(t){return typeof t=="symbol"}function ar(t){return t===void 0}function Ws(t){return Wr(t)&&Vd(t)==="[object RegExp]"}function Wr(t){return typeof t=="object"&&t!==null}function Ya(t){return Wr(t)&&Vd(t)==="[object Date]"}function Vs(t){return Wr(t)&&(Vd(t)==="[object Error]"||t instanceof Error)}function qs(t){return typeof t=="function"}function k0(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}function D0(t){return oe.isBuffer(t)}function Vd(t){return Object.prototype.toString.call(t)}function Hu(t){return t<10?"0"+t.toString(10):t.toString(10)}var kT=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function DT(){var t=new Date,e=[Hu(t.getHours()),Hu(t.getMinutes()),Hu(t.getSeconds())].join(":");return[t.getDate(),kT[t.getMonth()],e].join(" ")}function B0(){console.log("%s - %s",DT(),zl.apply(null,arguments))}function qd(t,e){if(!e||!Wr(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function F0(t,e){return Object.prototype.hasOwnProperty.call(t,e)}const BT={inherits:L0,_extend:qd,log:B0,isBuffer:D0,isPrimitive:k0,isFunction:qs,isError:Vs,isDate:Ya,isObject:Wr,isRegExp:Ws,isUndefined:ar,isSymbol:$0,isString:yn,isNumber:Wd,isNullOrUndefined:Hd,isNull:Cr,isBoolean:Hl,isArray:zd,inspect:lr,deprecate:jd,format:zl,debuglog:N0},FT=Object.freeze(Object.defineProperty({__proto__:null,_extend:qd,debuglog:N0,default:BT,deprecate:jd,format:zl,inherits:L0,inspect:lr,isArray:zd,isBoolean:Hl,isBuffer:D0,isDate:Ya,isError:Vs,isFunction:qs,isNull:Cr,isNullOrUndefined:Hd,isNumber:Wd,isObject:Wr,isPrimitive:k0,isRegExp:Ws,isString:yn,isSymbol:$0,isUndefined:ar,log:B0},Symbol.toStringTag,{value:"Module"})),U0=Ll(FT);var Wu,Kp;function UT(){if(Kp)return Wu;Kp=1;function t(g,y){var b=Object.keys(g);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(g);y&&(E=E.filter(function(_){return Object.getOwnPropertyDescriptor(g,_).enumerable})),b.push.apply(b,E)}return b}function e(g){for(var y=1;y0?this.tail.next=E:this.head=E,this.tail=E,++this.length}},{key:"unshift",value:function(b){var E={data:b,next:this.head};this.length===0&&(this.tail=E),this.head=E,++this.length}},{key:"shift",value:function(){if(this.length!==0){var b=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,b}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(b){if(this.length===0)return"";for(var E=this.head,_=""+E.data;E=E.next;)_+=b+E.data;return _}},{key:"concat",value:function(b){if(this.length===0)return u.alloc(0);for(var E=u.allocUnsafe(b>>>0),_=this.head,v=0;_;)h(_.data,E,v),v+=_.data.length,_=_.next;return E}},{key:"consume",value:function(b,E){var _;return bT.length?T.length:b;if(M===T.length?v+=T:v+=T.slice(0,b),b-=M,b===0){M===T.length?(++_,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=T.slice(M));break}++_}return this.length-=_,v}},{key:"_getBuffer",value:function(b){var E=u.allocUnsafe(b),_=this.head,v=1;for(_.data.copy(E),b-=_.data.length;_=_.next;){var T=_.data,M=b>T.length?T.length:b;if(T.copy(E,E.length-b,0,M),b-=M,b===0){M===T.length?(++v,_.next?this.head=_.next:this.head=this.tail=null):(this.head=_,_.data=T.slice(M));break}++v}return this.length-=v,E}},{key:d,value:function(b,E){return f(this,e(e({},E),{},{depth:0,customInspect:!1}))}}]),g}(),Wu}function jT(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,_e.nextTick(bf,this,t)):_e.nextTick(bf,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?_e.nextTick(va,r):(r._writableState.errorEmitted=!0,_e.nextTick(Gp,r,s)):_e.nextTick(Gp,r,s):e?(_e.nextTick(va,r),e(s)):_e.nextTick(va,r)}),this)}function Gp(t,e){bf(t,e),va(t)}function va(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function zT(){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 bf(t,e){t.emit("error",e)}function HT(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}var j0={destroy:jT,undestroy:zT,errorOrDestroy:HT},ti={};function WT(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var z0={};function Nt(t,e,r){r||(r=Error);function n(s,o,a){return typeof e=="string"?e:e(s,o,a)}var i=function(s){WT(o,s);function o(a,l,u){return s.call(this,n(a,l,u))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=t,z0[t]=i}function Xp(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(n){return String(n)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:r===2?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}else return"of ".concat(e," ").concat(String(t))}function VT(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function qT(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function YT(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}Nt("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Nt("ERR_INVALID_ARG_TYPE",function(t,e,r){var n;typeof e=="string"&&VT(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";var i;if(qT(t," argument"))i="The ".concat(t," ").concat(n," ").concat(Xp(e,"type"));else{var s=YT(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(s," ").concat(n," ").concat(Xp(e,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Nt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Nt("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Nt("ERR_STREAM_PREMATURE_CLOSE","Premature close");Nt("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Nt("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Nt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Nt("ERR_STREAM_WRITE_AFTER_END","write after end");Nt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Nt("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Nt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ti.codes=z0;var KT=ti.codes.ERR_INVALID_OPT_VALUE;function GT(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function XT(t,e,r,n){var i=GT(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new KT(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}var H0={getHighWaterMark:XT},_f={exports:{}};typeof Object.create=="function"?_f.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:_f.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var ri=_f.exports,QT=JT;function JT(t,e){if(Vu("noDeprecation"))return t;var r=!1;function n(){if(!r){if(Vu("throwDeprecation"))throw new Error(e);Vu("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return n}function Vu(t){try{if(!xe.localStorage)return!1}catch{return!1}var e=xe.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}var qu,Qp;function W0(){if(Qp)return qu;Qp=1,qu=F;function t(G){var Y=this;this.next=null,this.entry=null,this.finish=function(){be(Y,G)}}var e;F.WritableState=I;var r={deprecate:QT},n=h0,i=We.Buffer,s=(typeof xe<"u"?xe:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(G){return i.from(G)}function a(G){return i.isBuffer(G)||G instanceof s}var l=j0,u=H0,c=u.getHighWaterMark,f=ti.codes,d=f.ERR_INVALID_ARG_TYPE,h=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,y=f.ERR_STREAM_CANNOT_PIPE,b=f.ERR_STREAM_DESTROYED,E=f.ERR_STREAM_NULL_VALUES,_=f.ERR_STREAM_WRITE_AFTER_END,v=f.ERR_UNKNOWN_ENCODING,T=l.errorOrDestroy;ri(F,n);function M(){}function I(G,Y,ne){e=e||Ui(),G=G||{},typeof ne!="boolean"&&(ne=Y instanceof e),this.objectMode=!!G.objectMode,ne&&(this.objectMode=this.objectMode||!!G.writableObjectMode),this.highWaterMark=c(this,G,"writableHighWaterMark",ne),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ee=G.decodeStrings===!1;this.decodeStrings=!ee,this.defaultEncoding=G.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ue){Q(Y,ue)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=G.emitClose!==!1,this.autoDestroy=!!G.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}I.prototype.getBuffer=function(){for(var Y=this.bufferedRequest,ne=[];Y;)ne.push(Y),Y=Y.next;return ne},function(){try{Object.defineProperty(I.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var $;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?($=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(Y){return $.call(this,Y)?!0:this!==F?!1:Y&&Y._writableState instanceof I}})):$=function(Y){return Y instanceof this};function F(G){e=e||Ui();var Y=this instanceof e;if(!Y&&!$.call(F,this))return new F(G);this._writableState=new I(G,this,Y),this.writable=!0,G&&(typeof G.write=="function"&&(this._write=G.write),typeof G.writev=="function"&&(this._writev=G.writev),typeof G.destroy=="function"&&(this._destroy=G.destroy),typeof G.final=="function"&&(this._final=G.final)),n.call(this)}F.prototype.pipe=function(){T(this,new y)};function L(G,Y){var ne=new _;T(G,ne),_e.nextTick(Y,ne)}function U(G,Y,ne,ee){var ue;return ne===null?ue=new E:typeof ne!="string"&&!Y.objectMode&&(ue=new d("chunk",["string","Buffer"],ne)),ue?(T(G,ue),_e.nextTick(ee,ue),!1):!0}F.prototype.write=function(G,Y,ne){var ee=this._writableState,ue=!1,P=!ee.objectMode&&a(G);return P&&!i.isBuffer(G)&&(G=o(G)),typeof Y=="function"&&(ne=Y,Y=null),P?Y="buffer":Y||(Y=ee.defaultEncoding),typeof ne!="function"&&(ne=M),ee.ending?L(this,ne):(P||U(this,ee,G,ne))&&(ee.pendingcb++,ue=W(this,ee,P,G,Y,ne)),ue},F.prototype.cork=function(){this._writableState.corked++},F.prototype.uncork=function(){var G=this._writableState;G.corked&&(G.corked--,!G.writing&&!G.corked&&!G.bufferProcessing&&G.bufferedRequest&&X(this,G))},F.prototype.setDefaultEncoding=function(Y){if(typeof Y=="string"&&(Y=Y.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Y+"").toLowerCase())>-1))throw new v(Y);return this._writableState.defaultEncoding=Y,this},Object.defineProperty(F.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function k(G,Y,ne){return!G.objectMode&&G.decodeStrings!==!1&&typeof Y=="string"&&(Y=i.from(Y,ne)),Y}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function W(G,Y,ne,ee,ue,P){if(!ne){var w=k(Y,ee,ue);ee!==w&&(ne=!0,ue="buffer",ee=w)}var S=Y.objectMode?1:ee.length;Y.length+=S;var A=Y.length */(function(t,e){var r=We,n=r.Buffer;function i(o,a){for(var l in o)a[l]=o[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=s);function s(o,a,l){return n(o,a,l)}s.prototype=Object.create(n.prototype),i(n,s),s.from=function(o,a,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return n(o,a,l)},s.alloc=function(o,a,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var u=n(o);return a!==void 0?typeof l=="string"?u.fill(a,l):u.fill(a):u.fill(0),u},s.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n(o)},s.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}})(vf,vf.exports);var ZT=vf.exports,Yd=ZT.Buffer,Zp=Yd.isEncoding||function(t){switch(t=""+t,t&&t.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 eA(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function tA(t){var e=eA(t);if(typeof e!="string"&&(Yd.isEncoding===Zp||!Zp(t)))throw new Error("Unknown encoding: "+t);return e||t}Ka.StringDecoder=bo;function bo(t){this.encoding=tA(t);var e;switch(this.encoding){case"utf16le":this.text=aA,this.end=lA,e=4;break;case"utf8":this.fillLast=iA,e=4;break;case"base64":this.text=uA,this.end=cA,e=3;break;default:this.write=fA,this.end=dA;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Yd.allocUnsafe(e)}bo.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function rA(t,e,r){var n=e.length-1;if(n=0?(i>0&&(t.lastNeed=i-1),i):--n=0?(i>0&&(t.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function nA(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"�"}}function iA(t){var e=this.lastTotal-this.lastNeed,r=nA(this,t);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function sA(t,e){var r=rA(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function oA(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function aA(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function lA(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function uA(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function cA(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function fA(t){return t.toString(this.encoding)}function dA(t){return t&&t.length?this.write(t):""}var eg=ti.codes.ERR_STREAM_PREMATURE_CLOSE;function hA(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i0)if(typeof w!="string"&&!z.objectMode&&Object.getPrototypeOf(w)!==n.prototype&&(w=s(w)),A)z.endEmitted?M(P,new E):k(P,z,w,!0);else if(z.ended)M(P,new y);else{if(z.destroyed)return!1;z.reading=!1,z.decoder&&!S?(w=z.decoder.write(w),z.objectMode||w.length!==0?k(P,z,w,!1):X(P,z)):k(P,z,w,!1)}else A||(z.reading=!1,X(P,z))}return!z.ended&&(z.length=D?P=D:(P--,P|=P>>>1,P|=P>>>2,P|=P>>>4,P|=P>>>8,P|=P>>>16,P++),P}function j(P,w){return P<=0||w.length===0&&w.ended?0:w.objectMode?1:P!==P?w.flowing&&w.length?w.buffer.head.data.length:w.length:(P>w.highWaterMark&&(w.highWaterMark=O(P)),P<=w.length?P:w.ended?w.length:(w.needReadable=!0,0))}L.prototype.read=function(P){l("read",P),P=parseInt(P,10);var w=this._readableState,S=P;if(P!==0&&(w.emittedReadable=!1),P===0&&w.needReadable&&((w.highWaterMark!==0?w.length>=w.highWaterMark:w.length>0)||w.ended))return l("read: emitReadable",w.length,w.ended),w.length===0&&w.ended?ne(this):H(this),null;if(P=j(P,w),P===0&&w.ended)return w.length===0&&ne(this),null;var A=w.needReadable;l("need readable",A),(w.length===0||w.length-P0?B=Y(P,w):B=null,B===null?(w.needReadable=w.length<=w.highWaterMark,P=0):(w.length-=P,w.awaitDrain=0),w.length===0&&(w.ended||(w.needReadable=!0),S!==P&&w.ended&&ne(this)),B!==null&&this.emit("data",B),B};function Q(P,w){if(l("onEofChunk"),!w.ended){if(w.decoder){var S=w.decoder.end();S&&S.length&&(w.buffer.push(S),w.length+=w.objectMode?1:S.length)}w.ended=!0,w.sync?H(P):(w.needReadable=!1,w.emittedReadable||(w.emittedReadable=!0,K(P)))}}function H(P){var w=P._readableState;l("emitReadable",w.needReadable,w.emittedReadable),w.needReadable=!1,w.emittedReadable||(l("emitReadable",w.flowing),w.emittedReadable=!0,_e.nextTick(K,P))}function K(P){var w=P._readableState;l("emitReadable_",w.destroyed,w.length,w.ended),!w.destroyed&&(w.length||w.ended)&&(P.emit("readable"),w.emittedReadable=!1),w.needReadable=!w.flowing&&!w.ended&&w.length<=w.highWaterMark,G(P)}function X(P,w){w.readingMore||(w.readingMore=!0,_e.nextTick(Z,P,w))}function Z(P,w){for(;!w.reading&&!w.ended&&(w.length1&&ue(A.pipes,P)!==-1)&&!ae&&(l("false write response, pause",A.awaitDrain),A.awaitDrain++),S.pause())}function fe(x){l("onerror",x),N(),P.removeListener("error",fe),e(P,"error")===0&&M(P,x)}$(P,"error",fe);function ge(){P.removeListener("finish",C),N()}P.once("close",ge);function C(){l("onfinish"),P.removeListener("close",ge),N()}P.once("finish",C);function N(){l("unpipe"),S.unpipe(P)}return P.emit("pipe",S),A.flowing||(l("pipe resume"),S.resume()),P};function ce(P){return function(){var S=P._readableState;l("pipeOnDrain",S.awaitDrain),S.awaitDrain&&S.awaitDrain--,S.awaitDrain===0&&e(P,"data")&&(S.flowing=!0,G(P))}}L.prototype.unpipe=function(P){var w=this._readableState,S={hasUnpiped:!1};if(w.pipesCount===0)return this;if(w.pipesCount===1)return P&&P!==w.pipes?this:(P||(P=w.pipes),w.pipes=null,w.pipesCount=0,w.flowing=!1,P&&P.emit("unpipe",this,S),this);if(!P){var A=w.pipes,B=w.pipesCount;w.pipes=null,w.pipesCount=0,w.flowing=!1;for(var z=0;z0,A.flowing!==!1&&this.resume()):P==="readable"&&!A.endEmitted&&!A.readableListening&&(A.readableListening=A.needReadable=!0,A.flowing=!1,A.emittedReadable=!1,l("on readable",A.length,A.reading),A.length?H(this):A.reading||_e.nextTick(de,this)),S},L.prototype.addListener=L.prototype.on,L.prototype.removeListener=function(P,w){var S=r.prototype.removeListener.call(this,P,w);return P==="readable"&&_e.nextTick(pe,this),S},L.prototype.removeAllListeners=function(P){var w=r.prototype.removeAllListeners.apply(this,arguments);return(P==="readable"||P===void 0)&&_e.nextTick(pe,this),w};function pe(P){var w=P._readableState;w.readableListening=P.listenerCount("readable")>0,w.resumeScheduled&&!w.paused?w.flowing=!0:P.listenerCount("data")>0&&P.resume()}function de(P){l("readable nexttick read 0"),P.read(0)}L.prototype.resume=function(){var P=this._readableState;return P.flowing||(l("resume"),P.flowing=!P.readableListening,me(this,P)),P.paused=!1,this};function me(P,w){w.resumeScheduled||(w.resumeScheduled=!0,_e.nextTick(be,P,w))}function be(P,w){l("resume",w.reading),w.reading||P.read(0),w.resumeScheduled=!1,P.emit("resume"),G(P),w.flowing&&!w.reading&&P.read(0)}L.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function G(P){var w=P._readableState;for(l("flow",w.flowing);w.flowing&&P.read()!==null;);}L.prototype.wrap=function(P){var w=this,S=this._readableState,A=!1;P.on("end",function(){if(l("wrapped end"),S.decoder&&!S.ended){var q=S.decoder.end();q&&q.length&&w.push(q)}w.push(null)}),P.on("data",function(q){if(l("wrapped data"),S.decoder&&(q=S.decoder.write(q)),!(S.objectMode&&q==null)&&!(!S.objectMode&&(!q||!q.length))){var ie=w.push(q);ie||(A=!0,P.pause())}});for(var B in P)this[B]===void 0&&typeof P[B]=="function"&&(this[B]=function(ie){return function(){return P[ie].apply(P,arguments)}}(B));for(var z=0;z=w.length?(w.decoder?S=w.buffer.join(""):w.buffer.length===1?S=w.buffer.first():S=w.buffer.concat(w.length),w.buffer.clear()):S=w.buffer.consume(P,w.decoder),S}function ne(P){var w=P._readableState;l("endReadable",w.endEmitted),w.endEmitted||(w.ended=!0,_e.nextTick(ee,w,P))}function ee(P,w){if(l("endReadableNT",P.endEmitted,P.length),!P.endEmitted&&P.length===0&&(P.endEmitted=!0,w.readable=!1,w.emit("end"),P.autoDestroy)){var S=w._writableState;(!S||S.autoDestroy&&S.finished)&&w.destroy()}}typeof Symbol=="function"&&(L.from=function(P,w){return T===void 0&&(T=yA()),T(L,P,w)});function ue(P,w){for(var S=0,A=P.length;S0;return IA(o,l,u,function(c){i||(i=c),c&&s.forEach(og),!l&&(s.forEach(og),n(i))})});return e.reduce(OA)}var LA=RA;(function(t,e){e=t.exports=q0(),e.Stream=e,e.Readable=e,e.Writable=W0(),e.Duplex=Ui(),e.Transform=Y0,e.PassThrough=xA,e.finished=Kd,e.pipeline=LA})(hf,hf.exports);var X0=hf.exports;const{Buffer:zt}=We,Q0=Symbol.for("BufferList");function Be(t){if(!(this instanceof Be))return new Be(t);Be._init.call(this,t)}Be._init=function(e){Object.defineProperty(this,Q0,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};Be.prototype._new=function(e){return new Be(e)};Be.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let n=0;nthis.length||e<0)return;const r=this._offset(e);return this._bufs[r[0]][r[1]]};Be.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};Be.prototype.copy=function(e,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return e||zt.alloc(0);const s=!!e,o=this._offset(n),a=i-n;let l=a,u=s&&r||0,c=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:zt.concat(this._bufs,this.length);for(let f=0;fd)this._bufs[f].copy(e,u,c),u+=d;else{this._bufs[f].copy(e,u,c,c+l),u+=d;break}l-=d,c&&(c=0)}return e.length>u?e.slice(0,u):e};Be.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();const n=this._offset(e),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};Be.prototype.toString=function(e,r,n){return this.slice(r,n).toString(e)};Be.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};Be.prototype.duplicate=function(){const e=this._new();for(let r=0;rthis.length?this.length:e;const n=this._offset(e);let i=n[0],s=n[1];for(;i=t.length){const l=o.indexOf(t,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-t.length+1}else{const l=this._reverseOffset([i,s]);if(this._match(l,t))return l;s++}s=0}return-1};Be.prototype._match=function(t,e){if(this.length-t[0,1].map(o=>[0,1].map(a=>{const l=r.alloc(1);return l.writeUInt8(e.codes[i]<r.from([i])),e.EMPTY={pingreq:r.from([e.codes.pingreq<<4,0]),pingresp:r.from([e.codes.pingresp<<4,0]),disconnect:r.from([e.codes.disconnect<<4,0])},e.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},e.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},e.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},e.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},e.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},e.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}})(J0);var Z0=J0.exports,Ef={exports:{}},Zu,ag;function FA(){if(ag)return Zu;ag=1;var t=1e3,e=t*60,r=e*60,n=r*24,i=n*7,s=n*365.25;Zu=function(c,f){f=f||{};var d=typeof c;if(d==="string"&&c.length>0)return o(c);if(d==="number"&&isFinite(c))return f.long?l(c):a(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function o(c){if(c=String(c),!(c.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(f){var d=parseFloat(f[1]),h=(f[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return d*s;case"weeks":case"week":case"w":return d*i;case"days":case"day":case"d":return d*n;case"hours":case"hour":case"hrs":case"hr":case"h":return d*r;case"minutes":case"minute":case"mins":case"min":case"m":return d*e;case"seconds":case"second":case"secs":case"sec":case"s":return d*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function a(c){var f=Math.abs(c);return f>=n?Math.round(c/n)+"d":f>=r?Math.round(c/r)+"h":f>=e?Math.round(c/e)+"m":f>=t?Math.round(c/t)+"s":c+"ms"}function l(c){var f=Math.abs(c);return f>=n?u(c,f,n,"day"):f>=r?u(c,f,r,"hour"):f>=e?u(c,f,e,"minute"):f>=t?u(c,f,t,"second"):c+" ms"}function u(c,f,d,h){var g=f>=d*1.5;return Math.round(c/d)+" "+h+(g?"s":"")}return Zu}function UA(t){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=i,r.enabled=o,r.humanize=FA(),r.destroy=u,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let f=0;for(let d=0;d{if(I==="%%")return"%";T++;const F=r.formatters[$];if(typeof F=="function"){const L=b[T];I=F.call(E,L),b.splice(T,1),T--}return I}),r.formatArgs.call(E,b),(E.log||r.log).apply(E,b)}return y.namespace=c,y.useColors=r.useColors(),y.color=r.selectColor(c),y.extend=n,y.destroy=r.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==r.namespaces&&(h=r.namespaces,g=r.enabled(c)),g),set:b=>{d=b}}),typeof r.init=="function"&&r.init(y),y}function n(c,f){const d=r(this.namespace+(typeof f>"u"?":":f)+c);return d.log=this.log,d}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let f;const d=(typeof c=="string"?c:"").split(/[\s,]+/),h=d.length;for(f=0;f"-"+f)].join(",");return r.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let f,d;for(f=0,d=r.skips.length;f{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function 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 n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;l.splice(1,0,u,"color: inherit");let c=0,f=0;l[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(c++,d==="%c"&&(f=c))}),l.splice(f,0,u)}e.log=console.debug||console.log||(()=>{});function i(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function s(){let l;try{l=e.storage.getItem("debug")}catch{}return!l&&typeof _e<"u"&&"env"in _e&&(l={}.DEBUG),l}function o(){try{return localStorage}catch{}}t.exports=jA(e);const{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(Ef,Ef.exports);var Vr=Ef.exports;const zA=kA,HA=gn,lg=BA,Oe=Z0,Ee=Vr("mqtt-packet:parser");class Ga extends HA{constructor(){super(),this.parser=this.constructor.parser}static parser(e){return this instanceof Ga?(this.settings=e||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new Ga().parser(e)}_resetState(){Ee("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new lg,this.error=null,this._list=zA(),this._stateCounter=0}parse(e){for(this.error&&this._resetState(),this._list.append(e),Ee("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++,Ee("parse: state complete. _stateCounter is now: %d",this._stateCounter),Ee("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return Ee("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const e=this._list.readUInt8(0),r=e>>Oe.CMD_SHIFT;this.packet.cmd=Oe.types[r];const n=e&15,i=Oe.requiredHeaderFlags[r];return i!=null&&n!==i?this._emitError(new Error(Oe.requiredHeaderFlagsErrors[r])):(this.packet.retain=(e&Oe.RETAIN_MASK)!==0,this.packet.qos=e>>Oe.QOS_SHIFT&Oe.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(e&Oe.DUP_MASK)!==0,Ee("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){const e=this._parseVarByteNum(!0);return e&&(this.packet.length=e.value,this._list.consume(e.bytes)),Ee("_parseLength %d",e.value),!!e}_parsePayload(){Ee("_parsePayload: payload %O",this._list);let e=!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"))}e=!0}return Ee("_parsePayload complete result: %s",e),e}_parseConnect(){Ee("_parseConnect");let e,r,n,i;const s={},o=this.packet,a=this._parseString();if(a===null)return this._emitError(new Error("Cannot parse protocolId"));if(a!=="MQTT"&&a!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(o.protocolId=a,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(o.protocolVersion=this._list.readUInt8(this._pos),o.protocolVersion>=128&&(o.bridgeMode=!0,o.protocolVersion=o.protocolVersion-128),o.protocolVersion!==3&&o.protocolVersion!==4&&o.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));s.username=this._list.readUInt8(this._pos)&Oe.USERNAME_MASK,s.password=this._list.readUInt8(this._pos)&Oe.PASSWORD_MASK,s.will=this._list.readUInt8(this._pos)&Oe.WILL_FLAG_MASK;const l=!!(this._list.readUInt8(this._pos)&Oe.WILL_RETAIN_MASK),u=(this._list.readUInt8(this._pos)&Oe.WILL_QOS_MASK)>>Oe.WILL_QOS_SHIFT;if(s.will)o.will={},o.will.retain=l,o.will.qos=u;else{if(l)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(u)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(o.clean=(this._list.readUInt8(this._pos)&Oe.CLEAN_SESSION_MASK)!==0,this._pos++,o.keepalive=this._parseNum(),o.keepalive===-1)return this._emitError(new Error("Packet too short"));if(o.protocolVersion===5){const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(o.properties=f)}const c=this._parseString();if(c===null)return this._emitError(new Error("Packet too short"));if(o.clientId=c,Ee("_parseConnect: packet.clientId: %s",o.clientId),s.will){if(o.protocolVersion===5){const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(o.will.properties=f)}if(e=this._parseString(),e===null)return this._emitError(new Error("Cannot parse will topic"));if(o.will.topic=e,Ee("_parseConnect: packet.will.topic: %s",o.will.topic),r=this._parseBuffer(),r===null)return this._emitError(new Error("Cannot parse will payload"));o.will.payload=r,Ee("_parseConnect: packet.will.paylaod: %s",o.will.payload)}if(s.username){if(i=this._parseString(),i===null)return this._emitError(new Error("Cannot parse username"));o.username=i,Ee("_parseConnect: packet.username: %s",o.username)}if(s.password){if(n=this._parseBuffer(),n===null)return this._emitError(new Error("Cannot parse password"));o.password=n}return this.settings=o,Ee("_parseConnect: complete"),o}_parseConnack(){Ee("_parseConnack");const e=this.packet;if(this._list.length<1)return null;const r=this._list.readUInt8(this._pos++);if(r>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(e.sessionPresent=!!(r&Oe.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?e.reasonCode=this._list.readUInt8(this._pos++):e.reasonCode=0;else{if(this._list.length<2)return null;e.returnCode=this._list.readUInt8(this._pos++)}if(e.returnCode===-1||e.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(e.properties=n)}Ee("_parseConnack: complete")}_parsePublish(){Ee("_parsePublish");const e=this.packet;if(e.topic=this._parseString(),e.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(e.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}e.payload=this._list.slice(this._pos,e.length),Ee("_parsePublish: payload from buffer list: %o",e.payload)}}_parseSubscribe(){Ee("_parseSubscribe");const e=this.packet;let r,n,i,s,o,a,l;if(e.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(e.properties=u)}if(e.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=e.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(n=this._parseByte(),this.settings.protocolVersion===5){if(n&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(n&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(i=n&Oe.SUBSCRIBE_OPTIONS_QOS_MASK,i>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(a=(n>>Oe.SUBSCRIBE_OPTIONS_NL_SHIFT&Oe.SUBSCRIBE_OPTIONS_NL_MASK)!==0,o=(n>>Oe.SUBSCRIBE_OPTIONS_RAP_SHIFT&Oe.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,s=n>>Oe.SUBSCRIBE_OPTIONS_RH_SHIFT&Oe.SUBSCRIBE_OPTIONS_RH_MASK,s>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));l={topic:r,qos:i},this.settings.protocolVersion===5?(l.nl=a,l.rap=o,l.rh=s):this.settings.bridgeMode&&(l.rh=0,l.rap=!0,l.nl=!0),Ee("_parseSubscribe: push subscription `%s` to subscription",l),e.subscriptions.push(l)}}}_parseSuback(){Ee("_parseSuback");const e=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}if(e.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&r!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(r)}}}_parseUnsubscribe(){Ee("_parseUnsubscribe");const e=this.packet;if(e.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}if(e.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(e.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!Oe.MQTT5_PUBACK_PUBREC_CODES[e.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!Oe.MQTT5_PUBREL_PUBCOMP_CODES[e.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}Ee("_parseConfirmation: packet.reasonCode `%d`",e.reasonCode)}else e.reasonCode=0;if(e.length>3){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}}return!0}_parseDisconnect(){const e=this.packet;if(Ee("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(e.reasonCode=this._parseByte(),Oe.MQTT5_DISCONNECT_CODES[e.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):e.reasonCode=0;const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}return Ee("_parseDisconnect result: true"),!0}_parseAuth(){Ee("_parseAuth");const e=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(e.reasonCode=this._parseByte(),!Oe.MQTT5_AUTH_CODES[e.reasonCode])return this._emitError(new Error("Invalid auth reason code"));const r=this._parseProperties();return Object.getOwnPropertyNames(r).length&&(e.properties=r),Ee("_parseAuth: result: true"),!0}_parseMessageId(){const e=this.packet;return e.messageId=this._parseNum(),e.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(Ee("_parseMessageId: packet.messageId %d",e.messageId),!0)}_parseString(e){const r=this._parseNum(),n=r+this._pos;if(r===-1||n>this._list.length||n>this.packet.length)return null;const i=this._list.toString("utf8",this._pos,n);return this._pos+=r,Ee("_parseString: result: %s",i),i}_parseStringPair(){return Ee("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const e=this._parseNum(),r=e+this._pos;if(e===-1||r>this._list.length||r>this.packet.length)return null;const n=this._list.slice(this._pos,r);return this._pos+=e,Ee("_parseBuffer: result: %o",n),n}_parseNum(){if(this._list.length-this._pos<2)return-1;const e=this._list.readUInt16BE(this._pos);return this._pos+=2,Ee("_parseNum: result: %s",e),e}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const e=this._list.readUInt32BE(this._pos);return this._pos+=4,Ee("_parse4ByteNum: result: %s",e),e}_parseVarByteNum(e){Ee("_parseVarByteNum");const r=4;let n=0,i=1,s=0,o=!1,a;const l=this._pos?this._pos:0;for(;n=n&&this._emitError(new Error("Invalid variable byte integer")),l&&(this._pos+=n),o?e?o={bytes:n,value:s}:o=s:o=!1,Ee("_parseVarByteNum: result: %o",o),o}_parseByte(){let e;return this._pos>8,0),e.writeUInt8(t&255,0+1),e}function YA(){for(let t=0;t0&&(r=r|128),i.writeUInt8(r,n++);while(t>0&&n<4);return t>0&&(n=0),qA?i.subarray(0,n):i.slice(0,n)}function GA(t){const e=uo.allocUnsafe(4);return e.writeUInt32BE(t,0),e}var XA={cache:eb,generateCache:YA,generateNumber:tb,genBufVariableByteInt:KA,generate4ByteBuffer:GA},Sf={exports:{}};typeof _e>"u"||!_e.version||_e.version.indexOf("v0.")===0||_e.version.indexOf("v1.")===0&&_e.version.indexOf("v1.8.")!==0?Sf.exports={nextTick:QA}:Sf.exports=_e;function QA(t,e,r,n){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,s,o;switch(i){case 0:case 1:return _e.nextTick(t);case 2:return _e.nextTick(function(){t.call(null,e)});case 3:return _e.nextTick(function(){t.call(null,e,r)});case 4:return _e.nextTick(function(){t.call(null,e,r,n)});default:for(s=new Array(i-1),o=0;o=4)&&(u||a))h+=ve.byteLength(u)+2;else{if(s<4)return e.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(a*1===0)return e.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof l!="number"||l<0||l>65535||l%1!==0)return e.destroy(new Error("Invalid keepalive")),!1;h+=2,h+=1;let g,y;if(s===5){if(g=fn(e,d),!g)return!1;h+=g.length}if(o){if(typeof o!="object")return e.destroy(new Error("Invalid will")),!1;if(!o.topic||typeof o.topic!="string")return e.destroy(new Error("Invalid will topic")),!1;if(h+=ve.byteLength(o.topic)+2,h+=2,o.payload)if(o.payload.length>=0)typeof o.payload=="string"?h+=ve.byteLength(o.payload):h+=o.payload.length;else return e.destroy(new Error("Invalid will payload")),!1;if(y={},s===5){if(y=fn(e,o.properties),!y)return!1;h+=y.length}}let b=!1;if(c!=null)if(hg(c))b=!0,h+=ve.byteLength(c)+2;else return e.destroy(new Error("Invalid username")),!1;if(f!=null){if(!b)return e.destroy(new Error("Username is required to use password")),!1;if(hg(f))h+=nb(f)+2;else return e.destroy(new Error("Invalid password")),!1}e.write(Se.CONNECT_HEADER),$t(e,h),mi(e,i),n.bridgeMode&&(s+=128),e.write(s===131?Se.VERSION131:s===132?Se.VERSION132:s===4?Se.VERSION4:s===5?Se.VERSION5:Se.VERSION3);let E=0;return E|=c!=null?Se.USERNAME_MASK:0,E|=f!=null?Se.PASSWORD_MASK:0,E|=o&&o.retain?Se.WILL_RETAIN_MASK:0,E|=o&&o.qos?o.qos<0&&ut(e,u),d!=null&&d.write(),Pt("publish: payload: %o",l),e.write(l)}function uM(t,e,r){const n=r?r.protocolVersion:4,i=t||{},s=i.cmd||"puback",o=i.messageId,a=i.dup&&s==="pubrel"?Se.DUP_MASK:0;let l=0;const u=i.reasonCode,c=i.properties;let f=n===5?3:2;if(s==="pubrel"&&(l=1),typeof o!="number")return e.destroy(new Error("Invalid messageId")),!1;let d=null;if(n===5&&typeof c=="object"){if(d=Eo(e,c,r,f),!d)return!1;f+=d.length}return e.write(Se.ACKS[s][l][a][0]),f===3&&(f+=u!==0?1:-1),$t(e,f),ut(e,o),n===5&&f!==2&&e.write(ve.from([u])),d!==null?d.write():f===4&&e.write(ve.from([0])),!0}function cM(t,e,r){Pt("subscribe: packet: ");const n=r?r.protocolVersion:4,i=t||{},s=i.dup?Se.DUP_MASK:0,o=i.messageId,a=i.subscriptions,l=i.properties;let u=0;if(typeof o!="number")return e.destroy(new Error("Invalid messageId")),!1;u+=2;let c=null;if(n===5){if(c=fn(e,l),!c)return!1;u+=c.length}if(typeof a=="object"&&a.length)for(let d=0;d2)return e.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}u+=ve.byteLength(h)+2+1}else return e.destroy(new Error("Invalid subscriptions")),!1;Pt("subscribe: writing to stream: %o",Se.SUBSCRIBE_HEADER),e.write(Se.SUBSCRIBE_HEADER[1][s?1:0][0]),$t(e,u),ut(e,o),c!==null&&c.write();let f=!0;for(const d of a){const h=d.topic,g=d.qos,y=+d.nl,b=+d.rap,E=d.rh;let _;Vn(e,h),_=Se.SUBSCRIBE_OPTIONS_QOS[g],n===5&&(_|=y?Se.SUBSCRIBE_OPTIONS_NL:0,_|=b?Se.SUBSCRIBE_OPTIONS_RAP:0,_|=E?Se.SUBSCRIBE_OPTIONS_RH[E]:0),f=e.write(ve.from([_]))}return f}function fM(t,e,r){const n=r?r.protocolVersion:4,i=t||{},s=i.messageId,o=i.granted,a=i.properties;let l=0;if(typeof s!="number")return e.destroy(new Error("Invalid messageId")),!1;if(l+=2,typeof o=="object"&&o.length)for(let c=0;cSe.VARBYTEINT_MAX)return t.destroy(new Error(`Invalid variable byte integer: ${e}`)),!1;let r=ug[e];return r||(r=xf(e),e<16384&&(ug[e]=r)),Pt("writeVarByteInt: writing to stream: %o",r),t.write(r)}function Vn(t,e){const r=ve.byteLength(e);return ut(t,r),Pt("writeString: %s",e),t.write(e,"utf8")}function cg(t,e,r){Vn(t,e),Vn(t,r)}function Tf(t,e){return Pt("writeNumberCached: number: %d",e),Pt("writeNumberCached: %o",Xa[e]),t.write(Xa[e])}function yM(t,e){const r=rM(e);return Pt("writeNumberGenerated: %o",r),t.write(r)}function wM(t,e){const r=iM(e);return Pt("write4ByteNumber: %o",r),t.write(r)}function mi(t,e){typeof e=="string"?Vn(t,e):e?(ut(t,e.length),t.write(e)):ut(t,0)}function fn(t,e){if(typeof e!="object"||e.length!=null)return{length:1,write(){dg(t,{},0)}};let r=0;function n(s,o){const a=Se.propertiesTypes[s];let l=0;switch(a){case"byte":{if(typeof o!="boolean")return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=1+1;break}case"int8":{if(typeof o!="number"||o<0||o>255)return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=1+1;break}case"binary":{if(o&&o===null)return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=1+ve.byteLength(o)+2;break}case"int16":{if(typeof o!="number"||o<0||o>65535)return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=1+2;break}case"int32":{if(typeof o!="number"||o<0||o>4294967295)return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=1+4;break}case"var":{if(typeof o!="number"||o<0||o>268435455)return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=1+ve.byteLength(xf(o));break}case"string":{if(typeof o!="string")return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=1+2+ve.byteLength(o.toString());break}case"pair":{if(typeof o!="object")return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=Object.getOwnPropertyNames(o).reduce((u,c)=>{const f=o[c];return Array.isArray(f)?u+=f.reduce((d,h)=>(d+=1+2+ve.byteLength(c.toString())+2+ve.byteLength(h.toString()),d),0):u+=1+2+ve.byteLength(c.toString())+2+ve.byteLength(o[c].toString()),u},0);break}default:return t.destroy(new Error(`Invalid property ${s}: ${o}`)),!1}return l}if(e)for(const s in e){let o=0,a=0;const l=e[s];if(Array.isArray(l))for(let u=0;us;){const a=i.shift();if(a&&e[a])delete e[a],o=fn(t,e);else return!1}return o}function fg(t,e,r){switch(Se.propertiesTypes[e]){case"byte":{t.write(ve.from([Se.properties[e]])),t.write(ve.from([+r]));break}case"int8":{t.write(ve.from([Se.properties[e]])),t.write(ve.from([r]));break}case"binary":{t.write(ve.from([Se.properties[e]])),mi(t,r);break}case"int16":{t.write(ve.from([Se.properties[e]])),ut(t,r);break}case"int32":{t.write(ve.from([Se.properties[e]])),wM(t,r);break}case"var":{t.write(ve.from([Se.properties[e]])),$t(t,r);break}case"string":{t.write(ve.from([Se.properties[e]])),Vn(t,r);break}case"pair":{Object.getOwnPropertyNames(r).forEach(i=>{const s=r[i];Array.isArray(s)?s.forEach(o=>{t.write(ve.from([Se.properties[e]])),cg(t,i.toString(),o.toString())}):(t.write(ve.from([Se.properties[e]])),cg(t,i.toString(),s.toString()))});break}default:return t.destroy(new Error(`Invalid property ${e} value: ${r}`)),!1}}function dg(t,e,r){$t(t,r);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==null){const i=e[n];if(Array.isArray(i))for(let s=0;s{o=u,a=c}),resolve:o,reject:a}},promisify(o){return new Promise((a,l)=>{o((u,...c)=>u?l(u):a(...c))})},debuglog(){return function(){}},format(o,...a){return o.replace(/%([sdifj])/g,function(...[l,u]){const c=a.shift();return u==="f"?c.toFixed(6):u==="j"?JSON.stringify(c):u==="s"&&typeof c=="object"?`${c.constructor!==Object?c.constructor.name:""} {}`.trim():c.toString()})},inspect(o){switch(typeof o){case"string":if(o.includes("'"))if(o.includes('"')){if(!o.includes("`")&&!o.includes("${"))return`\`${o}\``}else return`"${o}"`;return`'${o}'`;case"number":return isNaN(o)?"NaN":Object.is(o,-0)?String(o):o;case"bigint":return`${String(o)}n`;case"boolean":case"undefined":return String(o);case"object":return"{}"}},types:{isAsyncFunction(o){return o instanceof r},isArrayBufferView(o){return ArrayBuffer.isView(o)}},isBlob:i},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(ob);var qr=ob.exports,Xd={},ms={exports:{}},gg;function Qd(){if(gg)return ms.exports;gg=1;const{AbortController:t,AbortSignal:e}=typeof self<"u"?self:typeof window<"u"?window:void 0;return ms.exports=t,ms.exports.AbortSignal=e,ms.exports.default=t,ms.exports}const{format:TM,inspect:Ja,AggregateError:AM}=qr,MM=globalThis.AggregateError||AM,CM=Symbol("kIsNodeError"),IM=["string","function","number","object","Function","Object","boolean","bigint","symbol"],OM=/^([A-Z][a-z0-9]*)+$/,PM="__node_internal_",Yl={};function jn(t,e){if(!t)throw new Yl.ERR_INTERNAL_ASSERTION(e)}function mg(t){let e="",r=t.length;const n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function RM(t,e,r){if(typeof e=="function")return jn(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);const n=(e.match(/%[dfijoOs]/g)||[]).length;return jn(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:TM(e,...r)}function Ze(t,e,r){r||(r=Error);class n extends r{constructor(...s){super(RM(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[CM]=!0,Yl[t]=n}function yg(t){const e=PM+t.name;return Object.defineProperty(t,"name",{value:e}),t}function LM(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;const r=new MM([e,t],e.message);return r.code=e.code,r}return t||e}let NM=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Yl.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Ze("ERR_ASSERTION","%s",Error);Ze("ERR_INVALID_ARG_TYPE",(t,e,r)=>{jn(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";const i=[],s=[],o=[];for(const l of e)jn(typeof l=="string","All expected entries have to be of type string"),IM.includes(l)?i.push(l.toLowerCase()):OM.test(l)?s.push(l):(jn(l!=="object",'The value "object" should be written as "Object"'),o.push(l));if(s.length>0){const l=i.indexOf("object");l!==-1&&(i.splice(i,l,1),s.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{const l=i.pop();n+=`one of type ${i.join(", ")}, or ${l}`}}(s.length>0||o.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const l=s.pop();n+=`an instance of ${s.join(", ")}, or ${l}`}}o.length>0&&(n+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(n+="an "),n+=`${o[0]}`;break;case 2:n+=`one of ${o[0]} or ${o[1]}`;break;default:{const l=o.pop();n+=`one of ${o.join(", ")}, or ${l}`}}if(r==null)n+=`. Received ${r}`;else if(typeof r=="function"&&r.name)n+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)n+=`. Received an instance of ${r.constructor.name}`;else{const l=Ja(r,{depth:-1});n+=`. Received ${l}`}}else{let l=Ja(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),n+=`. Received type ${typeof r} (${l})`}return n},TypeError);Ze("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let n=Ja(e);return n.length>128&&(n=n.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`},TypeError);Ze("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var n;const i=r!=null&&(n=r.constructor)!==null&&n!==void 0&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${i}.`},TypeError);Ze("ERR_MISSING_ARGS",(...t)=>{jn(t.length>0,"At least one arg needs to be specified");let e;const r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(n=>`"${n}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{const n=t.pop();e+=`The ${t.join(", ")}, and ${n} arguments`}break}return`${e} must be specified`},TypeError);Ze("ERR_OUT_OF_RANGE",(t,e,r)=>{jn(e,'Missing "range" argument');let n;return Number.isInteger(r)&&Math.abs(r)>2**32?n=mg(String(r)):typeof r=="bigint"?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=mg(n)),n+="n"):n=Ja(r),`The value of "${t}" is out of range. It must be ${e}. Received ${n}`},RangeError);Ze("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Ze("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Ze("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Ze("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Ze("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Ze("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ze("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Ze("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Ze("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Ze("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Ze("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var bt={AbortError:NM,aggregateTwoErrors:yg(LM),hideStackFrames:yg,codes:Yl};const{ArrayIsArray:Jd,ArrayPrototypeIncludes:ab,ArrayPrototypeJoin:lb,ArrayPrototypeMap:$M,NumberIsInteger:Zd,NumberIsNaN:kM,NumberMAX_SAFE_INTEGER:DM,NumberMIN_SAFE_INTEGER:BM,NumberParseInt:FM,ObjectPrototypeHasOwnProperty:UM,RegExpPrototypeExec:ub,String:jM,StringPrototypeToUpperCase:zM,StringPrototypeTrim:HM}=Ve,{hideStackFrames:kt,codes:{ERR_SOCKET_BAD_PORT:WM,ERR_INVALID_ARG_TYPE:dt,ERR_INVALID_ARG_VALUE:as,ERR_OUT_OF_RANGE:qn,ERR_UNKNOWN_SIGNAL:wg}}=bt,{normalizeEncoding:VM}=qr,{isAsyncFunction:qM,isArrayBufferView:YM}=qr.types,bg={};function KM(t){return t===(t|0)}function GM(t){return t===t>>>0}const XM=/^[0-7]+$/,QM="must be a 32-bit unsigned integer or an octal string";function JM(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(ub(XM,t)===null)throw new as(e,t,QM);t=FM(t,8)}return cb(t,e),t}const ZM=kt((t,e,r=BM,n=DM)=>{if(typeof t!="number")throw new dt(e,"number",t);if(!Zd(t))throw new qn(e,"an integer",t);if(tn)throw new qn(e,`>= ${r} && <= ${n}`,t)}),eC=kt((t,e,r=-2147483648,n=2147483647)=>{if(typeof t!="number")throw new dt(e,"number",t);if(!Zd(t))throw new qn(e,"an integer",t);if(tn)throw new qn(e,`>= ${r} && <= ${n}`,t)}),cb=kt((t,e,r=!1)=>{if(typeof t!="number")throw new dt(e,"number",t);if(!Zd(t))throw new qn(e,"an integer",t);const n=r?1:0,i=4294967295;if(ti)throw new qn(e,`>= ${n} && <= ${i}`,t)});function eh(t,e){if(typeof t!="string")throw new dt(e,"string",t)}function tC(t,e,r=void 0,n){if(typeof t!="number")throw new dt(e,"number",t);if(r!=null&&tn||(r!=null||n!=null)&&kM(t))throw new qn(e,`${r!=null?`>= ${r}`:""}${r!=null&&n!=null?" && ":""}${n!=null?`<= ${n}`:""}`,t)}const rC=kt((t,e,r)=>{if(!ab(r,t)){const i="must be one of: "+lb($M(r,s=>typeof s=="string"?`'${s}'`:jM(s)),", ");throw new as(e,t,i)}});function fb(t,e){if(typeof t!="boolean")throw new dt(e,"boolean",t)}function tc(t,e,r){return t==null||!UM(t,e)?r:t[e]}const nC=kt((t,e,r=null)=>{const n=tc(r,"allowArray",!1),i=tc(r,"allowFunction",!1);if(!tc(r,"nullable",!1)&&t===null||!n&&Jd(t)||typeof t!="object"&&(!i||typeof t!="function"))throw new dt(e,"Object",t)}),iC=kt((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new dt(e,"a dictionary",t)}),th=kt((t,e,r=0)=>{if(!Jd(t))throw new dt(e,"Array",t);if(t.length{if(!YM(t))throw new dt(e,["Buffer","TypedArray","DataView"],t)});function uC(t,e){const r=VM(e),n=t.length;if(r==="hex"&&n%2!==0)throw new as("encoding",e,`is invalid for data of length ${n}`)}function cC(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&HM(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new WM(e,t,r);return t|0}const fC=kt((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new dt(e,"AbortSignal",t)}),dC=kt((t,e)=>{if(typeof t!="function")throw new dt(e,"Function",t)}),hC=kt((t,e)=>{if(typeof t!="function"||qM(t))throw new dt(e,"Function",t)}),pC=kt((t,e)=>{if(t!==void 0)throw new dt(e,"undefined",t)});function gC(t,e,r){if(!ab(r,t))throw new dt(e,`('${lb(r,"|")}')`,t)}const mC=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function _g(t,e){if(typeof t>"u"||!ub(mC,t))throw new as(e,t,'must be an array or string of format "; rel=preload; as=style"')}function yC(t){if(typeof t=="string")return _g(t,"hints"),t;if(Jd(t)){const e=t.length;let r="";if(e===0)return r;for(let n=0;n; rel=preload; as=style"')}var Kl={isInt32:KM,isUint32:GM,parseFileMode:JM,validateArray:th,validateStringArray:sC,validateBooleanArray:oC,validateBoolean:fb,validateBuffer:lC,validateDictionary:iC,validateEncoding:uC,validateFunction:dC,validateInt32:eC,validateInteger:ZM,validateNumber:tC,validateObject:nC,validateOneOf:rC,validatePlainFunction:hC,validatePort:cC,validateSignalName:aC,validateString:eh,validateUint32:cb,validateUndefined:pC,validateUnion:gC,validateAbortSignal:fC,validateLinkHeaderValue:yC},rh={exports:{}};const{Symbol:Gl,SymbolAsyncIterator:vg,SymbolIterator:Eg,SymbolFor:db}=Ve,hb=Gl("kDestroyed"),pb=Gl("kIsErrored"),Af=Gl("kIsReadable"),gb=Gl("kIsDisturbed"),wC=db("nodejs.webstream.isClosedPromise"),bC=db("nodejs.webstream.controllerErrorFunction");function Xl(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}function Ql(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function _C(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function wr(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function mb(t){return!!(t&&!wr(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function yb(t){return!!(t&&!wr(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function wb(t){return!!(t&&!wr(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function vC(t){return mb(t)||yb(t)||wb(t)}function EC(t,e){return t==null?!1:e===!0?typeof t[vg]=="function":e===!1?typeof t[Eg]=="function":typeof t[vg]=="function"||typeof t[Eg]=="function"}function Jl(t){if(!wr(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!!(t.destroyed||t[hb]||n!=null&&n.destroyed)}function bb(t){if(!Ql(t))return null;if(t.writableEnded===!0)return!0;const e=t._writableState;return e!=null&&e.errored?!1:typeof(e==null?void 0:e.ended)!="boolean"?null:e.ended}function SC(t,e){if(!Ql(t))return null;if(t.writableFinished===!0)return!0;const r=t._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.finished)!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}function xC(t){if(!Xl(t))return null;if(t.readableEnded===!0)return!0;const e=t._readableState;return!e||e.errored?!1:typeof(e==null?void 0:e.ended)!="boolean"?null:e.ended}function _b(t,e){if(!Xl(t))return null;const r=t._readableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.endEmitted)!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function vb(t){return t&&t[Af]!=null?t[Af]:typeof(t==null?void 0:t.readable)!="boolean"?null:Jl(t)?!1:Xl(t)&&t.readable&&!_b(t)}function Eb(t){return typeof(t==null?void 0:t.writable)!="boolean"?null:Jl(t)?!1:Ql(t)&&t.writable&&!bb(t)}function TC(t,e){return wr(t)?Jl(t)?!0:!((e==null?void 0:e.readable)!==!1&&vb(t)||(e==null?void 0:e.writable)!==!1&&Eb(t)):null}function AC(t){var e,r;return wr(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function MC(t){var e,r;return wr(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function CC(t){if(!wr(t))return null;if(typeof t.closed=="boolean")return t.closed;const e=t._writableState,r=t._readableState;return typeof(e==null?void 0:e.closed)=="boolean"||typeof(r==null?void 0:r.closed)=="boolean"?(e==null?void 0:e.closed)||(r==null?void 0:r.closed):typeof t._closed=="boolean"&&Sb(t)?t._closed:null}function Sb(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function xb(t){return typeof t._sent100=="boolean"&&Sb(t)}function IC(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function OC(t){if(!wr(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!n&&xb(t)||!!(n&&n.autoDestroy&&n.emitClose&&n.closed===!1)}function PC(t){var e;return!!(t&&((e=t[gb])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function RC(t){var e,r,n,i,s,o,a,l,u,c;return!!(t&&((e=(r=(n=(i=(s=(o=t[pb])!==null&&o!==void 0?o:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&i!==void 0?i:(a=t._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&n!==void 0?n:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((c=t._writableState)===null||c===void 0)&&c.errored))}var Yr={kDestroyed:hb,isDisturbed:PC,kIsDisturbed:gb,isErrored:RC,kIsErrored:pb,isReadable:vb,kIsReadable:Af,kIsClosedPromise:wC,kControllerErrorFunction:bC,isClosed:CC,isDestroyed:Jl,isDuplexNodeStream:_C,isFinished:TC,isIterable:EC,isReadableNodeStream:Xl,isReadableStream:mb,isReadableEnded:xC,isReadableFinished:_b,isReadableErrored:MC,isNodeStream:wr,isWebStream:vC,isWritable:Eb,isWritableNodeStream:Ql,isWritableStream:yb,isWritableEnded:bb,isWritableFinished:SC,isWritableErrored:AC,isServerRequest:IC,isServerResponse:xb,willEmitClose:OC,isTransformStream:wb};const tn=mn,{AbortError:Tb,codes:LC}=bt,{ERR_INVALID_ARG_TYPE:NC,ERR_STREAM_PREMATURE_CLOSE:Sg}=LC,{kEmptyObject:Mf,once:Cf}=qr,{validateAbortSignal:$C,validateFunction:kC,validateObject:DC,validateBoolean:BC}=Kl,{Promise:FC,PromisePrototypeThen:UC}=Ve,{isClosed:jC,isReadable:xg,isReadableNodeStream:rc,isReadableStream:zC,isReadableFinished:Tg,isReadableErrored:Ag,isWritable:Mg,isWritableNodeStream:Cg,isWritableStream:HC,isWritableFinished:Ig,isWritableErrored:Og,isNodeStream:WC,willEmitClose:VC,kIsClosedPromise:qC}=Yr;function YC(t){return t.setHeader&&typeof t.abort=="function"}const If=()=>{};function Ab(t,e,r){var n,i;if(arguments.length===2?(r=e,e=Mf):e==null?e=Mf:DC(e,"options"),kC(r,"callback"),$C(e.signal,"options.signal"),r=Cf(r),zC(t)||HC(t))return KC(t,e,r);if(!WC(t))throw new NC("stream",["ReadableStream","WritableStream","Stream"],t);const s=(n=e.readable)!==null&&n!==void 0?n:rc(t),o=(i=e.writable)!==null&&i!==void 0?i:Cg(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||d()};let c=VC(t)&&rc(t)===s&&Cg(t)===o,f=Ig(t,!1);const d=()=>{f=!0,t.destroyed&&(c=!1),!(c&&(!t.readable||s))&&(!s||h)&&r.call(t)};let h=Tg(t,!1);const g=()=>{h=!0,t.destroyed&&(c=!1),!(c&&(!t.writable||o))&&(!o||f)&&r.call(t)},y=M=>{r.call(t,M)};let b=jC(t);const E=()=>{b=!0;const M=Og(t)||Ag(t);if(M&&typeof M!="boolean")return r.call(t,M);if(s&&!h&&rc(t,!0)&&!Tg(t,!1))return r.call(t,new Sg);if(o&&!f&&!Ig(t,!1))return r.call(t,new Sg);r.call(t)},_=()=>{b=!0;const M=Og(t)||Ag(t);if(M&&typeof M!="boolean")return r.call(t,M);r.call(t)},v=()=>{t.req.on("finish",d)};YC(t)?(t.on("complete",d),c||t.on("abort",E),t.req?v():t.on("request",v)):o&&!a&&(t.on("end",u),t.on("close",u)),!c&&typeof t.aborted=="boolean"&&t.on("aborted",E),t.on("end",g),t.on("finish",d),e.error!==!1&&t.on("error",y),t.on("close",E),b?tn.nextTick(E):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?c||tn.nextTick(_):(!s&&(!c||xg(t))&&(f||Mg(t)===!1)||!o&&(!c||Mg(t))&&(h||xg(t)===!1)||l&&t.req&&t.aborted)&&tn.nextTick(_);const T=()=>{r=If,t.removeListener("aborted",E),t.removeListener("complete",d),t.removeListener("abort",E),t.removeListener("request",v),t.req&&t.req.removeListener("finish",d),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",d),t.removeListener("end",g),t.removeListener("error",y),t.removeListener("close",E)};if(e.signal&&!b){const M=()=>{const I=r;T(),I.call(t,new Tb(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)tn.nextTick(M);else{const I=r;r=Cf((...$)=>{e.signal.removeEventListener("abort",M),I.apply(t,$)}),e.signal.addEventListener("abort",M)}}return T}function KC(t,e,r){let n=!1,i=If;if(e.signal)if(i=()=>{n=!0,r.call(t,new Tb(void 0,{cause:e.signal.reason}))},e.signal.aborted)tn.nextTick(i);else{const o=r;r=Cf((...a)=>{e.signal.removeEventListener("abort",i),o.apply(t,a)}),e.signal.addEventListener("abort",i)}const s=(...o)=>{n||tn.nextTick(()=>r.apply(t,o))};return UC(t[qC].promise,s,s),If}function GC(t,e){var r;let n=!1;return e===null&&(e=Mf),(r=e)!==null&&r!==void 0&&r.cleanup&&(BC(e.cleanup,"cleanup"),n=e.cleanup),new FC((i,s)=>{const o=Ab(t,e,a=>{n&&o(),a?s(a):i()})})}rh.exports=Ab;rh.exports.finished=GC;var wn=rh.exports;const ur=mn,{aggregateTwoErrors:XC,codes:{ERR_MULTIPLE_CALLBACK:QC},AbortError:JC}=bt,{Symbol:Mb}=Ve,{kDestroyed:ZC,isDestroyed:eI,isFinished:tI,isServerRequest:rI}=Yr,Cb=Mb("kDestroy"),Of=Mb("kConstruct");function Ib(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function nI(t,e){const r=this._readableState,n=this._writableState,i=n||r;return n!=null&&n.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(Ib(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),i.constructed?Pg(this,t,e):this.once(Cb,function(s){Pg(this,XC(s,t),e)}),this)}function Pg(t,e,r){let n=!1;function i(s){if(n)return;n=!0;const o=t._readableState,a=t._writableState;Ib(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?ur.nextTick(iI,t,s):ur.nextTick(Ob,t)}try{t._destroy(e||null,i)}catch(s){i(s)}}function iI(t,e){Pf(t,e),Ob(t)}function Ob(t){const e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function Pf(t,e){const r=t._readableState,n=t._writableState;n!=null&&n.errorEmitted||r!=null&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function sI(){const t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function Rf(t,e,r){const n=t._readableState,i=t._writableState;if(i!=null&&i.destroyed||n!=null&&n.destroyed)return this;n!=null&&n.autoDestroy||i!=null&&i.autoDestroy?t.destroy(e):e&&(e.stack,i&&!i.errored&&(i.errored=e),n&&!n.errored&&(n.errored=e),r?ur.nextTick(Pf,t,e):Pf(t,e))}function oI(t,e){if(typeof t._construct!="function")return;const r=t._readableState,n=t._writableState;r&&(r.constructed=!1),n&&(n.constructed=!1),t.once(Of,e),!(t.listenerCount(Of)>1)&&ur.nextTick(aI,t)}function aI(t){let e=!1;function r(n){if(e){Rf(t,n??new QC);return}e=!0;const i=t._readableState,s=t._writableState,o=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(Cb,n):n?Rf(t,n,!0):ur.nextTick(lI,t)}try{t._construct(n=>{ur.nextTick(r,n)})}catch(n){ur.nextTick(r,n)}}function lI(t){t.emit(Of)}function Rg(t){return(t==null?void 0:t.setHeader)&&typeof t.abort=="function"}function Pb(t){t.emit("close")}function uI(t,e){t.emit("error",e),ur.nextTick(Pb,t)}function cI(t,e){!t||eI(t)||(!e&&!tI(t)&&(e=new JC),rI(t)?(t.socket=null,t.destroy(e)):Rg(t)?t.abort():Rg(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?ur.nextTick(uI,t,e):ur.nextTick(Pb,t),t.destroyed||(t[ZC]=!0))}var ls={construct:oI,destroyer:cI,destroy:nI,undestroy:sI,errorOrDestroy:Rf};const{ArrayIsArray:fI,ObjectSetPrototypeOf:Rb}=Ve,{EventEmitter:Zl}=gn;function eu(t){Zl.call(this,t)}Rb(eu.prototype,Zl.prototype);Rb(eu,Zl);eu.prototype.pipe=function(t,e){const r=this;function n(c){t.writable&&t.write(c)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}t.on("drain",i),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",a));let s=!1;function o(){s||(s=!0,t.end())}function a(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function l(c){u(),Zl.listenerCount(this,"error")===0&&this.emit("error",c)}Lf(r,"error",l),Lf(t,"error",l);function u(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",a),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t};function Lf(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):fI(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}var nh={Stream:eu,prependListener:Lf},Lb={exports:{}};(function(t){const{AbortError:e,codes:r}=bt,{isNodeStream:n,isWebStream:i,kControllerErrorFunction:s}=Yr,o=wn,{ERR_INVALID_ARG_TYPE:a}=r,l=(u,c)=>{if(typeof u!="object"||!("aborted"in u))throw new a(c,"AbortSignal",u)};t.exports.addAbortSignal=function(c,f){if(l(c,"signal"),!n(f)&&!i(f))throw new a("stream",["ReadableStream","WritableStream","Stream"],f);return t.exports.addAbortSignalNoValidate(c,f)},t.exports.addAbortSignalNoValidate=function(u,c){if(typeof u!="object"||!("aborted"in u))return c;const f=n(c)?()=>{c.destroy(new e(void 0,{cause:u.reason}))}:()=>{c[s](new e(void 0,{cause:u.reason}))};return u.aborted?f():(u.addEventListener("abort",f),o(c,()=>u.removeEventListener("abort",f))),c}})(Lb);var tu=Lb.exports;const{StringPrototypeSlice:Lg,SymbolIterator:dI,TypedArrayPrototypeSet:qo,Uint8Array:hI}=Ve,{Buffer:nc}=We,{inspect:pI}=qr;var gI=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){const r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,n=""+r.data;for(;(r=r.next)!==null;)n+=e+r.data;return n}concat(e){if(this.length===0)return nc.alloc(0);const r=nc.allocUnsafe(e>>>0);let n=this.head,i=0;for(;n;)qo(r,n.data,i),i+=n.data.length,n=n.next;return r}consume(e,r){const n=this.head.data;if(es.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++i,n.next?this.head=n.next:this.head=this.tail=null):(r+=Lg(s,0,e),this.head=n,n.data=Lg(s,e));break}++i}while((n=n.next)!==null);return this.length-=i,r}_getBuffer(e){const r=nc.allocUnsafe(e),n=e;let i=this.head,s=0;do{const o=i.data;if(e>o.length)qo(r,o,n-e),e-=o.length;else{e===o.length?(qo(r,o,n-e),++s,i.next?this.head=i.next:this.head=this.tail=null):(qo(r,new hI(o.buffer,o.byteOffset,e),n-e),this.head=i,i.data=o.slice(e));break}++s}while((i=i.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return pI(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:mI,NumberIsInteger:yI}=Ve,{ERR_INVALID_ARG_VALUE:wI}=bt.codes;function bI(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function Nb(t){return t?16:16*1024}function _I(t,e,r,n){const i=bI(e,n,r);if(i!=null){if(!yI(i)||i<0){const s=n?`options.${r}`:"options.highWaterMark";throw new wI(s,i)}return mI(i)}return Nb(t.objectMode)}var ih={getHighWaterMark:_I,getDefaultHighWaterMark:Nb};const Ng=mn,{PromisePrototypeThen:vI,SymbolAsyncIterator:$g,SymbolIterator:kg}=Ve,{Buffer:EI}=We,{ERR_INVALID_ARG_TYPE:SI,ERR_STREAM_NULL_VALUES:xI}=bt.codes;function TI(t,e,r){let n;if(typeof e=="string"||e instanceof EI)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let i;if(e&&e[$g])i=!0,n=e[$g]();else if(e&&e[kg])i=!1,n=e[kg]();else throw new SI("iterable",["Iterable"],e);const s=new t({objectMode:!0,highWaterMark:1,...r});let o=!1;s._read=function(){o||(o=!0,l())},s._destroy=function(u,c){vI(a(u),()=>Ng.nextTick(c,u),f=>Ng.nextTick(c,f||u))};async function a(u){const c=u!=null,f=typeof n.throw=="function";if(c&&f){const{value:d,done:h}=await n.throw(u);if(await d,h)return}if(typeof n.return=="function"){const{value:d}=await n.return();await d}}async function l(){for(;;){try{const{value:u,done:c}=i?await n.next():n.next();if(c)s.push(null);else{const f=u&&typeof u.then=="function"?await u:u;if(f===null)throw o=!1,new xI;if(s.push(f))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}var $b=TI,ic,Dg;function ru(){if(Dg)return ic;Dg=1;const t=mn,{ArrayPrototypeIndexOf:e,NumberIsInteger:r,NumberIsNaN:n,NumberParseInt:i,ObjectDefineProperties:s,ObjectKeys:o,ObjectSetPrototypeOf:a,Promise:l,SafeSet:u,SymbolAsyncIterator:c,Symbol:f}=Ve;ic=Z,Z.ReadableState=X;const{EventEmitter:d}=gn,{Stream:h,prependListener:g}=nh,{Buffer:y}=We,{addAbortSignal:b}=tu,E=wn;let _=qr.debuglog("stream",C=>{_=C});const v=gI,T=ls,{getHighWaterMark:M,getDefaultHighWaterMark:I}=ih,{aggregateTwoErrors:$,codes:{ERR_INVALID_ARG_TYPE:F,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_OUT_OF_RANGE:U,ERR_STREAM_PUSH_AFTER_EOF:k,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:W}}=bt,{validateObject:D}=Kl,O=f("kPaused"),{StringDecoder:j}=Ka,Q=$b;a(Z.prototype,h.prototype),a(Z,h);const H=()=>{},{errorOrDestroy:K}=T;function X(C,N,x){typeof x!="boolean"&&(x=N instanceof $r()),this.objectMode=!!(C&&C.objectMode),x&&(this.objectMode=this.objectMode||!!(C&&C.readableObjectMode)),this.highWaterMark=C?M(this,C,"readableHighWaterMark",x):I(!1),this.buffer=new v,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[O]=null,this.errorEmitted=!1,this.emitClose=!C||C.emitClose!==!1,this.autoDestroy=!C||C.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=C&&C.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,C&&C.encoding&&(this.decoder=new j(C.encoding),this.encoding=C.encoding)}function Z(C){if(!(this instanceof Z))return new Z(C);const N=this instanceof $r();this._readableState=new X(C,this,N),C&&(typeof C.read=="function"&&(this._read=C.read),typeof C.destroy=="function"&&(this._destroy=C.destroy),typeof C.construct=="function"&&(this._construct=C.construct),C.signal&&!N&&b(C.signal,this)),h.call(this,C),T.construct(this,()=>{this._readableState.needReadable&&ee(this,this._readableState)})}Z.prototype.destroy=T.destroy,Z.prototype._undestroy=T.undestroy,Z.prototype._destroy=function(C,N){N(C)},Z.prototype[d.captureRejectionSymbol]=function(C){this.destroy(C)},Z.prototype.push=function(C,N){return ce(this,C,N,!1)},Z.prototype.unshift=function(C,N){return ce(this,C,N,!0)};function ce(C,N,x,p){_("readableAddChunk",N);const m=C._readableState;let R;if(m.objectMode||(typeof N=="string"?(x=x||m.defaultEncoding,m.encoding!==x&&(p&&m.encoding?N=y.from(N,x).toString(m.encoding):(N=y.from(N,x),x=""))):N instanceof y?x="":h._isUint8Array(N)?(N=h._uint8ArrayToBuffer(N),x=""):N!=null&&(R=new F("chunk",["string","Buffer","Uint8Array"],N))),R)K(C,R);else if(N===null)m.reading=!1,G(C,m);else if(m.objectMode||N&&N.length>0)if(p)if(m.endEmitted)K(C,new W);else{if(m.destroyed||m.errored)return!1;pe(C,m,N,!0)}else if(m.ended)K(C,new k);else{if(m.destroyed||m.errored)return!1;m.reading=!1,m.decoder&&!x?(N=m.decoder.write(N),m.objectMode||N.length!==0?pe(C,m,N,!1):ee(C,m)):pe(C,m,N,!1)}else p||(m.reading=!1,ee(C,m));return!m.ended&&(m.length0?(N.multiAwaitDrain?N.awaitDrainWriters.clear():N.awaitDrainWriters=null,N.dataEmitted=!0,C.emit("data",x)):(N.length+=N.objectMode?1:x.length,p?N.buffer.unshift(x):N.buffer.push(x),N.needReadable&&Y(C)),ee(C,N)}Z.prototype.isPaused=function(){const C=this._readableState;return C[O]===!0||C.flowing===!1},Z.prototype.setEncoding=function(C){const N=new j(C);this._readableState.decoder=N,this._readableState.encoding=this._readableState.decoder.encoding;const x=this._readableState.buffer;let p="";for(const m of x)p+=N.write(m);return x.clear(),p!==""&&x.push(p),this._readableState.length=p.length,this};const de=1073741824;function me(C){if(C>de)throw new U("size","<= 1GiB",C);return C--,C|=C>>>1,C|=C>>>2,C|=C>>>4,C|=C>>>8,C|=C>>>16,C++,C}function be(C,N){return C<=0||N.length===0&&N.ended?0:N.objectMode?1:n(C)?N.flowing&&N.length?N.buffer.first().length:N.length:C<=N.length?C:N.ended?N.length:0}Z.prototype.read=function(C){_("read",C),C===void 0?C=NaN:r(C)||(C=i(C,10));const N=this._readableState,x=C;if(C>N.highWaterMark&&(N.highWaterMark=me(C)),C!==0&&(N.emittedReadable=!1),C===0&&N.needReadable&&((N.highWaterMark!==0?N.length>=N.highWaterMark:N.length>0)||N.ended))return _("read: emitReadable",N.length,N.ended),N.length===0&&N.ended?ae(this):Y(this),null;if(C=be(C,N),C===0&&N.ended)return N.length===0&&ae(this),null;let p=N.needReadable;if(_("need readable",p),(N.length===0||N.length-C0?m=re(C,N):m=null,m===null?(N.needReadable=N.length<=N.highWaterMark,C=0):(N.length-=C,N.multiAwaitDrain?N.awaitDrainWriters.clear():N.awaitDrainWriters=null),N.length===0&&(N.ended||(N.needReadable=!0),x!==C&&N.ended&&ae(this)),m!==null&&!N.errorEmitted&&!N.closeEmitted&&(N.dataEmitted=!0,this.emit("data",m)),m};function G(C,N){if(_("onEofChunk"),!N.ended){if(N.decoder){const x=N.decoder.end();x&&x.length&&(N.buffer.push(x),N.length+=N.objectMode?1:x.length)}N.ended=!0,N.sync?Y(C):(N.needReadable=!1,N.emittedReadable=!0,ne(C))}}function Y(C){const N=C._readableState;_("emitReadable",N.needReadable,N.emittedReadable),N.needReadable=!1,N.emittedReadable||(_("emitReadable",N.flowing),N.emittedReadable=!0,t.nextTick(ne,C))}function ne(C){const N=C._readableState;_("emitReadable_",N.destroyed,N.length,N.ended),!N.destroyed&&!N.errored&&(N.length||N.ended)&&(C.emit("readable"),N.emittedReadable=!1),N.needReadable=!N.flowing&&!N.ended&&N.length<=N.highWaterMark,z(C)}function ee(C,N){!N.readingMore&&N.constructed&&(N.readingMore=!0,t.nextTick(ue,C,N))}function ue(C,N){for(;!N.reading&&!N.ended&&(N.length1&&p.pipes.includes(C)&&(_("false write response, pause",p.awaitDrainWriters.size),p.awaitDrainWriters.add(C)),x.pause()),te||(te=P(x,C),C.on("drain",te))}x.on("data",$e);function $e(Sn){_("ondata");const _r=C.write(Sn);_("dest.write",_r),_r===!1&&Ce()}function Le(Sn){if(_("onerror",Sn),ps(),C.removeListener("error",Le),C.listenerCount("error")===0){const _r=C._writableState||C._readableState;_r&&!_r.errorEmitted?K(C,Sn):C.emit("error",Sn)}}g(C,"error",Le);function Pu(){C.removeListener("finish",Ru),ps()}C.once("close",Pu);function Ru(){_("onfinish"),C.removeListener("close",Pu),ps()}C.once("finish",Ru);function ps(){_("unpipe"),x.unpipe(C)}return C.emit("pipe",x),C.writableNeedDrain===!0?p.flowing&&Ce():p.flowing||(_("pipe resume"),x.resume()),C};function P(C,N){return function(){const p=C._readableState;p.awaitDrainWriters===N?(_("pipeOnDrain",1),p.awaitDrainWriters=null):p.multiAwaitDrain&&(_("pipeOnDrain",p.awaitDrainWriters.size),p.awaitDrainWriters.delete(N)),(!p.awaitDrainWriters||p.awaitDrainWriters.size===0)&&C.listenerCount("data")&&C.resume()}}Z.prototype.unpipe=function(C){const N=this._readableState,x={hasUnpiped:!1};if(N.pipes.length===0)return this;if(!C){const m=N.pipes;N.pipes=[],this.pause();for(let R=0;R0,p.flowing!==!1&&this.resume()):C==="readable"&&!p.endEmitted&&!p.readableListening&&(p.readableListening=p.needReadable=!0,p.flowing=!1,p.emittedReadable=!1,_("on readable",p.length,p.reading),p.length?Y(this):p.reading||t.nextTick(S,this)),x},Z.prototype.addListener=Z.prototype.on,Z.prototype.removeListener=function(C,N){const x=h.prototype.removeListener.call(this,C,N);return C==="readable"&&t.nextTick(w,this),x},Z.prototype.off=Z.prototype.removeListener,Z.prototype.removeAllListeners=function(C){const N=h.prototype.removeAllListeners.apply(this,arguments);return(C==="readable"||C===void 0)&&t.nextTick(w,this),N};function w(C){const N=C._readableState;N.readableListening=C.listenerCount("readable")>0,N.resumeScheduled&&N[O]===!1?N.flowing=!0:C.listenerCount("data")>0?C.resume():N.readableListening||(N.flowing=null)}function S(C){_("readable nexttick read 0"),C.read(0)}Z.prototype.resume=function(){const C=this._readableState;return C.flowing||(_("resume"),C.flowing=!C.readableListening,A(this,C)),C[O]=!1,this};function A(C,N){N.resumeScheduled||(N.resumeScheduled=!0,t.nextTick(B,C,N))}function B(C,N){_("resume",N.reading),N.reading||C.read(0),N.resumeScheduled=!1,C.emit("resume"),z(C),N.flowing&&!N.reading&&C.read(0)}Z.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[O]=!0,this};function z(C){const N=C._readableState;for(_("flow",N.flowing);N.flowing&&C.read()!==null;);}Z.prototype.wrap=function(C){let N=!1;C.on("data",p=>{!this.push(p)&&C.pause&&(N=!0,C.pause())}),C.on("end",()=>{this.push(null)}),C.on("error",p=>{K(this,p)}),C.on("close",()=>{this.destroy()}),C.on("destroy",()=>{this.destroy()}),this._read=()=>{N&&C.resume&&(N=!1,C.resume())};const x=o(C);for(let p=1;p{m=V?$(m,V):null,x(),x=H});try{for(;;){const V=C.destroyed?null:C.read();if(V!==null)yield V;else{if(m)throw m;if(m===null)return;await new l(p)}}}catch(V){throw m=$(m,V),m}finally{(m||(N==null?void 0:N.destroyOnReturn)!==!1)&&(m===void 0||C._readableState.autoDestroy)?T.destroyer(C,null):(C.off("readable",p),R())}}s(Z.prototype,{readable:{__proto__:null,get(){const C=this._readableState;return!!C&&C.readable!==!1&&!C.destroyed&&!C.errorEmitted&&!C.endEmitted},set(C){this._readableState&&(this._readableState.readable=!!C)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(C){this._readableState&&(this._readableState.flowing=C)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(C){this._readableState&&(this._readableState.destroyed=C)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(X.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[O]!==!1},set(C){this[O]=!!C}}}),Z._fromList=re;function re(C,N){if(N.length===0)return null;let x;return N.objectMode?x=N.buffer.shift():!C||C>=N.length?(N.decoder?x=N.buffer.join(""):N.buffer.length===1?x=N.buffer.first():x=N.buffer.concat(N.length),N.buffer.clear()):x=N.buffer.consume(C,N.decoder),x}function ae(C){const N=C._readableState;_("endReadable",N.endEmitted),N.endEmitted||(N.ended=!0,t.nextTick(se,N,C))}function se(C,N){if(_("endReadableNT",C.endEmitted,C.length),!C.errored&&!C.closeEmitted&&!C.endEmitted&&C.length===0){if(C.endEmitted=!0,N.emit("end"),N.writable&&N.allowHalfOpen===!1)t.nextTick(he,N);else if(C.autoDestroy){const x=N._writableState;(!x||x.autoDestroy&&(x.finished||x.writable===!1))&&N.destroy()}}}function he(C){C.writable&&!C.writableEnded&&!C.destroyed&&C.end()}Z.from=function(C,N){return Q(Z,C,N)};let fe;function ge(){return fe===void 0&&(fe={}),fe}return Z.fromWeb=function(C,N){return ge().newStreamReadableFromReadableStream(C,N)},Z.toWeb=function(C,N){return ge().newReadableStreamFromStreamReadable(C,N)},Z.wrap=function(C,N){var x,p;return new Z({objectMode:(x=(p=C.readableObjectMode)!==null&&p!==void 0?p:C.objectMode)!==null&&x!==void 0?x:!0,...N,destroy(m,R){T.destroyer(C,m),R(m)}}).wrap(C)},ic}var sc,Bg;function kb(){if(Bg)return sc;Bg=1;const t=mn,{ArrayPrototypeSlice:e,Error:r,FunctionPrototypeSymbolHasInstance:n,ObjectDefineProperty:i,ObjectDefineProperties:s,ObjectSetPrototypeOf:o,StringPrototypeToLowerCase:a,Symbol:l,SymbolHasInstance:u}=Ve;sc=j,j.WritableState=D;const{EventEmitter:c}=gn,f=nh.Stream,{Buffer:d}=We,h=ls,{addAbortSignal:g}=tu,{getHighWaterMark:y,getDefaultHighWaterMark:b}=ih,{ERR_INVALID_ARG_TYPE:E,ERR_METHOD_NOT_IMPLEMENTED:_,ERR_MULTIPLE_CALLBACK:v,ERR_STREAM_CANNOT_PIPE:T,ERR_STREAM_DESTROYED:M,ERR_STREAM_ALREADY_FINISHED:I,ERR_STREAM_NULL_VALUES:$,ERR_STREAM_WRITE_AFTER_END:F,ERR_UNKNOWN_ENCODING:L}=bt.codes,{errorOrDestroy:U}=h;o(j.prototype,f.prototype),o(j,f);function k(){}const W=l("kOnFinished");function D(S,A,B){typeof B!="boolean"&&(B=A instanceof $r()),this.objectMode=!!(S&&S.objectMode),B&&(this.objectMode=this.objectMode||!!(S&&S.writableObjectMode)),this.highWaterMark=S?y(this,S,"writableHighWaterMark",B):b(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const z=!!(S&&S.decodeStrings===!1);this.decodeStrings=!z,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Z.bind(void 0,A),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,O(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!S||S.emitClose!==!1,this.autoDestroy=!S||S.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[W]=[]}function O(S){S.buffered=[],S.bufferedIndex=0,S.allBuffers=!0,S.allNoop=!0}D.prototype.getBuffer=function(){return e(this.buffered,this.bufferedIndex)},i(D.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function j(S){const A=this instanceof $r();if(!A&&!n(j,this))return new j(S);this._writableState=new D(S,this,A),S&&(typeof S.write=="function"&&(this._write=S.write),typeof S.writev=="function"&&(this._writev=S.writev),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.final=="function"&&(this._final=S.final),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&g(S.signal,this)),f.call(this,S),h.construct(this,()=>{const B=this._writableState;B.writing||me(this,B),ne(this,B)})}i(j,u,{__proto__:null,value:function(S){return n(this,S)?!0:this!==j?!1:S&&S._writableState instanceof D}}),j.prototype.pipe=function(){U(this,new T)};function Q(S,A,B,z){const q=S._writableState;if(typeof B=="function")z=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!d.isEncoding(B))throw new L(B);typeof z!="function"&&(z=k)}if(A===null)throw new $;if(!q.objectMode)if(typeof A=="string")q.decodeStrings!==!1&&(A=d.from(A,B),B="buffer");else if(A instanceof d)B="buffer";else if(f._isUint8Array(A))A=f._uint8ArrayToBuffer(A),B="buffer";else throw new E("chunk",["string","Buffer","Uint8Array"],A);let ie;return q.ending?ie=new F:q.destroyed&&(ie=new M("write")),ie?(t.nextTick(z,ie),U(S,ie,!0),ie):(q.pendingcb++,H(S,q,A,B,z))}j.prototype.write=function(S,A,B){return Q(this,S,A,B)===!0},j.prototype.cork=function(){this._writableState.corked++},j.prototype.uncork=function(){const S=this._writableState;S.corked&&(S.corked--,S.writing||me(this,S))},j.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=a(A)),!d.isEncoding(A))throw new L(A);return this._writableState.defaultEncoding=A,this};function H(S,A,B,z,q){const ie=A.objectMode?1:B.length;A.length+=ie;const re=A.lengthB.bufferedIndex&&me(S,B),z?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:S,state:B},t.nextTick(ce,B.afterWriteTickInfo)):pe(S,B,1,q))}function ce({stream:S,state:A,count:B,cb:z}){return A.afterWriteTickInfo=null,pe(S,A,B,z)}function pe(S,A,B,z){for(!A.ending&&!S.destroyed&&A.length===0&&A.needDrain&&(A.needDrain=!1,S.emit("drain"));B-- >0;)A.pendingcb--,z();A.destroyed&&de(A),ne(S,A)}function de(S){if(S.writing)return;for(let q=S.bufferedIndex;q1&&S._writev){A.pendingcb-=ie-1;const ae=A.allNoop?k:he=>{for(let fe=re;fe256?(B.splice(0,re),A.bufferedIndex=0):A.bufferedIndex=re}A.bufferProcessing=!1}j.prototype._write=function(S,A,B){if(this._writev)this._writev([{chunk:S,encoding:A}],B);else throw new _("_write()")},j.prototype._writev=null,j.prototype.end=function(S,A,B){const z=this._writableState;typeof S=="function"?(B=S,S=null,A=null):typeof A=="function"&&(B=A,A=null);let q;if(S!=null){const ie=Q(this,S,A);ie instanceof r&&(q=ie)}return z.corked&&(z.corked=1,this.uncork()),q||(!z.errored&&!z.ending?(z.ending=!0,ne(this,z,!0),z.ended=!0):z.finished?q=new I("end"):z.destroyed&&(q=new M("end"))),typeof B=="function"&&(q||z.finished?t.nextTick(B,q):z[W].push(B)),this};function be(S){return S.ending&&!S.destroyed&&S.constructed&&S.length===0&&!S.errored&&S.buffered.length===0&&!S.finished&&!S.writing&&!S.errorEmitted&&!S.closeEmitted}function G(S,A){let B=!1;function z(q){if(B){U(S,q??v());return}if(B=!0,A.pendingcb--,q){const ie=A[W].splice(0);for(let re=0;re{be(q)?ee(z,q):q.pendingcb--},S,A)):be(A)&&(A.pendingcb++,ee(S,A))))}function ee(S,A){A.pendingcb--,A.finished=!0;const B=A[W].splice(0);for(let z=0;z{if(Z!=null)throw new d("nully","body",Z)},Z=>{h(K,Z)});return K=new I({objectMode:!0,readable:!1,write:O,final(Z){j(async()=>{try{await X,t.nextTick(Z,null)}catch(ce){t.nextTick(Z,ce)}})},destroy:Q})}throw new d("Iterable, AsyncIterable or AsyncFunction",k,D)}if(v(U))return L(U.arrayBuffer());if(i(U))return E(I,U,{objectMode:!0,writable:!1});if(typeof(U==null?void 0:U.writable)=="object"||typeof(U==null?void 0:U.readable)=="object"){const D=U!=null&&U.readable?o(U==null?void 0:U.readable)?U==null?void 0:U.readable:L(U.readable):void 0,O=U!=null&&U.writable?a(U==null?void 0:U.writable)?U==null?void 0:U.writable:L(U.writable):void 0;return F({readable:D,writable:O})}const W=U==null?void 0:U.then;if(typeof W=="function"){let D;return M(W,U,O=>{O!=null&&D.push(O),D.push(null)},O=>{h(D,O)}),D=new I({objectMode:!0,writable:!1,read(){}})}throw new f(k,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],U)};function $(L){let{promise:U,resolve:k}=b();const W=new T,D=W.signal;return{value:L(async function*(){for(;;){const j=U;U=null;const{chunk:Q,done:H,cb:K}=await j;if(t.nextTick(K),H)return;if(D.aborted)throw new c(void 0,{cause:D.reason});({promise:U,resolve:k}=b()),yield Q}}(),{signal:D}),write(j,Q,H){const K=k;k=null,K({chunk:j,done:!1,cb:H})},final(j){const Q=k;k=null,Q({done:!0,cb:j})},destroy(j,Q){W.abort(),Q(j)}}}function F(L){const U=L.readable&&typeof L.readable.read!="function"?y.wrap(L.readable):L.readable,k=L.writable;let W=!!r(U),D=!!n(k),O,j,Q,H,K;function X(Z){const ce=H;H=null,ce?ce(Z):Z&&K.destroy(Z)}return K=new I({readableObjectMode:!!(U!=null&&U.readableObjectMode),writableObjectMode:!!(k!=null&&k.writableObjectMode),readable:W,writable:D}),D&&(u(k,Z=>{D=!1,Z&&h(U,Z),X(Z)}),K._write=function(Z,ce,pe){k.write(Z,ce)?pe():O=pe},K._final=function(Z){k.end(),j=Z},k.on("drain",function(){if(O){const Z=O;O=null,Z()}}),k.on("finish",function(){if(j){const Z=j;j=null,Z()}})),W&&(u(U,Z=>{W=!1,Z&&h(U,Z),X(Z)}),U.on("readable",function(){if(Q){const Z=Q;Q=null,Z()}}),U.on("end",function(){K.push(null)}),K._read=function(){for(;;){const Z=U.read();if(Z===null){Q=K._read;return}if(!K.push(Z))return}}),K._destroy=function(Z,ce){!Z&&H!==null&&(Z=new c),Q=null,O=null,j=null,H===null?ce(Z):(H=ce,h(k,Z),h(U,Z))},K}return oc}var ac,Ug;function $r(){if(Ug)return ac;Ug=1;const{ObjectDefineProperties:t,ObjectGetOwnPropertyDescriptor:e,ObjectKeys:r,ObjectSetPrototypeOf:n}=Ve;ac=o;const i=ru(),s=kb();n(o.prototype,i.prototype),n(o,i);{const c=r(s.prototype);for(let f=0;f{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function OI(){this._final!==Nf&&Nf.call(this)}kr.prototype._final=Nf;kr.prototype._transform=function(t,e,r){throw new CI("_transform()")};kr.prototype._write=function(t,e,r){const n=this._readableState,i=this._writableState,s=n.length;this._transform(t,e,(o,a)=>{if(o){r(o);return}a!=null&&this.push(a),i.ended||s===n.length||n.length{n=!0});const i=Za(t,{readable:e,writable:r},s=>{n=!s});return{destroy:s=>{n||(n=!0,$I.destroyer(t,s||new BI("pipe")))},cleanup:i}}function qI(t){return jI(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function hc(t){if(Cn(t))return t;if(Ea(t))return YI(t);throw new $f("val",["Readable","Iterable","AsyncIterable"],t)}async function*YI(t){dc||(dc=ru()),yield*dc.prototype[LI].call(t)}async function Yo(t,e,r,{end:n}){let i,s=null;const o=u=>{if(u&&(i=u),s){const c=s;s=null,c()}},a=()=>new RI((u,c)=>{i?c(i):s=()=>{i?c(i):u()}});e.on("drain",o);const l=Za(e,{readable:!1},o);try{e.writableNeedDrain&&await a();for await(const u of t)e.write(u)||await a();n&&e.end(),await a(),r()}catch(u){r(i!==u?kI(i,u):u)}finally{l(),e.off("drain",o)}}async function pc(t,e,r,{end:n}){yi(e)&&(e=e.writable);const i=e.getWriter();try{for await(const s of t)await i.ready,i.write(s).catch(()=>{});await i.ready,n&&await i.close(),r()}catch(s){try{await i.abort(s),r(s)}catch(o){r(o)}}}function KI(...t){return jb(t,NI(qI(t)))}function jb(t,e,r){if(t.length===1&&PI(t[0])&&(t=t[0]),t.length<2)throw new DI("streams");const n=new VI,i=n.signal,s=r==null?void 0:r.signal,o=[];zI(s,"options.signal");function a(){h(new UI)}s==null||s.addEventListener("abort",a);let l,u;const c=[];let f=0;function d(E){h(E,--f===0)}function h(E,_){if(E&&(!l||l.code==="ERR_STREAM_PREMATURE_CLOSE")&&(l=E),!(!l&&!_)){for(;c.length;)c.shift()(l);s==null||s.removeEventListener("abort",a),n.abort(),_&&(l||o.forEach(v=>v()),Ls.nextTick(e,l,u))}}let g;for(let E=0;E0,M=v||(r==null?void 0:r.end)!==!1,I=E===t.length-1;if(zg(_)){let $=function(F){F&&F.name!=="AbortError"&&F.code!=="ERR_STREAM_PREMATURE_CLOSE"&&d(F)};if(M){const{destroy:F,cleanup:L}=Hg(_,v,T);c.push(F),uc(_)&&I&&o.push(L)}_.on("error",$),uc(_)&&I&&o.push(()=>{_.removeListener("error",$)})}if(E===0)if(typeof _=="function"){if(g=_({signal:i}),!Cn(g))throw new lc("Iterable, AsyncIterable or Stream","source",g)}else Cn(_)||Ea(_)||yi(_)?g=_:g=jg.from(_);else if(typeof _=="function"){if(yi(g)){var y;g=hc((y=g)===null||y===void 0?void 0:y.readable)}else g=hc(g);if(g=_(g,{signal:i}),v){if(!Cn(g,!0))throw new lc("AsyncIterable",`transform[${E-1}]`,g)}else{var b;fc||(fc=Ub);const $=new fc({objectMode:!0}),F=(b=g)===null||b===void 0?void 0:b.then;if(typeof F=="function")f++,F.call(g,k=>{u=k,k!=null&&$.write(k),M&&$.end(),Ls.nextTick(d)},k=>{$.destroy(k),Ls.nextTick(d,k)});else if(Cn(g,!0))f++,Yo(g,$,d,{end:M});else if(cc(g)||yi(g)){const k=g.readable||g;f++,Yo(k,$,d,{end:M})}else throw new lc("AsyncIterable or Promise","destination",g);g=$;const{destroy:L,cleanup:U}=Hg(g,!1,!0);c.push(L),I&&o.push(U)}}else if(zg(_)){if(Ea(g)){f+=2;const $=GI(g,_,d,{end:M});uc(_)&&I&&o.push($)}else if(yi(g)||cc(g)){const $=g.readable||g;f++,Yo($,_,d,{end:M})}else if(Cn(g))f++,Yo(g,_,d,{end:M});else throw new $f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=_}else if(HI(_)){if(Ea(g))f++,pc(hc(g),_,d,{end:M});else if(cc(g)||Cn(g))f++,pc(g,_,d,{end:M});else if(yi(g))f++,pc(g.readable,_,d,{end:M});else throw new $f("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=_}else g=jg.from(_)}return(i!=null&&i.aborted||s!=null&&s.aborted)&&Ls.nextTick(a),g}function GI(t,e,r,{end:n}){let i=!1;if(e.on("close",()=>{i||r(new FI)}),t.pipe(e,{end:!1}),n){let s=function(){i=!0,e.end()};WI(t)?Ls.nextTick(s):t.once("end",s)}else r();return Za(t,{readable:!0,writable:!1},s=>{const o=t._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&o&&o.ended&&!o.errored&&!o.errorEmitted?t.once("end",r).once("error",r):r(s)}),Za(e,{readable:!1,writable:!0},r)}var ah={pipelineImpl:jb,pipeline:KI};const{pipeline:XI}=ah,Ko=$r(),{destroyer:QI}=ls,{isNodeStream:Go,isReadable:Wg,isWritable:Vg,isWebStream:gc,isTransformStream:An,isWritableStream:qg,isReadableStream:Yg}=Yr,{AbortError:JI,codes:{ERR_INVALID_ARG_VALUE:Kg,ERR_MISSING_ARGS:ZI}}=bt,eO=wn;var zb=function(...e){if(e.length===0)throw new ZI("streams");if(e.length===1)return Ko.from(e[0]);const r=[...e];if(typeof e[0]=="function"&&(e[0]=Ko.from(e[0])),typeof e[e.length-1]=="function"){const h=e.length-1;e[h]=Ko.from(e[h])}for(let h=0;h0&&!(Vg(e[h])||qg(e[h])||An(e[h])))throw new Kg(`streams[${h}]`,r[h],"must be writable")}let n,i,s,o,a;function l(h){const g=o;o=null,g?g(h):h?a.destroy(h):!d&&!f&&a.destroy()}const u=e[0],c=XI(e,l),f=!!(Vg(u)||qg(u)||An(u)),d=!!(Wg(c)||Yg(c)||An(c));if(a=new Ko({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(c!=null&&c.writableObjectMode),writable:f,readable:d}),f){if(Go(u))a._write=function(g,y,b){u.write(g,y)?b():n=b},a._final=function(g){u.end(),i=g},u.on("drain",function(){if(n){const g=n;n=null,g()}});else if(gc(u)){const y=(An(u)?u.writable:u).getWriter();a._write=async function(b,E,_){try{await y.ready,y.write(b).catch(()=>{}),_()}catch(v){_(v)}},a._final=async function(b){try{await y.ready,y.close().catch(()=>{}),i=b}catch(E){b(E)}}}const h=An(c)?c.readable:c;eO(h,()=>{if(i){const g=i;i=null,g()}})}if(d){if(Go(c))c.on("readable",function(){if(s){const h=s;s=null,h()}}),c.on("end",function(){a.push(null)}),a._read=function(){for(;;){const h=c.read();if(h===null){s=a._read;return}if(!a.push(h))return}};else if(gc(c)){const g=(An(c)?c.readable:c).getReader();a._read=async function(){for(;;)try{const{value:y,done:b}=await g.read();if(!a.push(y))return;if(b){a.push(null);return}}catch{return}}}}return a._destroy=function(h,g){!h&&o!==null&&(h=new JI),s=null,n=null,i=null,o===null?g(h):(o=g,Go(c)&&QI(c,h))},a};const Hb=globalThis.AbortController||Qd().AbortController,{codes:{ERR_INVALID_ARG_VALUE:tO,ERR_INVALID_ARG_TYPE:So,ERR_MISSING_ARGS:rO,ERR_OUT_OF_RANGE:nO},AbortError:gr}=bt,{validateAbortSignal:ni,validateInteger:iO,validateObject:ii}=Kl,sO=Ve.Symbol("kWeak"),{finished:oO}=wn,aO=zb,{addAbortSignalNoValidate:lO}=tu,{isWritable:uO,isNodeStream:cO}=Yr,{ArrayPrototypePush:fO,MathFloor:dO,Number:hO,NumberIsNaN:pO,Promise:Gg,PromiseReject:Xg,PromisePrototypeThen:gO,Symbol:Wb}=Ve,el=Wb("kEmpty"),Qg=Wb("kEof");function mO(t,e){if(e!=null&&ii(e,"options"),(e==null?void 0:e.signal)!=null&&ni(e.signal,"options.signal"),cO(t)&&!uO(t))throw new tO("stream",t,"must be writable");const r=aO(this,t);return e!=null&&e.signal&&lO(e.signal,r),r}function nu(t,e){if(typeof t!="function")throw new So("fn",["Function","AsyncFunction"],t);e!=null&&ii(e,"options"),(e==null?void 0:e.signal)!=null&&ni(e.signal,"options.signal");let r=1;return(e==null?void 0:e.concurrency)!=null&&(r=dO(e.concurrency)),iO(r,"concurrency",1),(async function*(){var i,s;const o=new Hb,a=this,l=[],u=o.signal,c={signal:u},f=()=>o.abort();e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted&&f(),e==null||(s=e.signal)===null||s===void 0||s.addEventListener("abort",f);let d,h,g=!1;function y(){g=!0}async function b(){try{for await(let v of a){var E;if(g)return;if(u.aborted)throw new gr;try{v=t(v,c)}catch(T){v=Xg(T)}v!==el&&(typeof((E=v)===null||E===void 0?void 0:E.catch)=="function"&&v.catch(y),l.push(v),d&&(d(),d=null),!g&&l.length&&l.length>=r&&await new Gg(T=>{h=T}))}l.push(Qg)}catch(v){const T=Xg(v);gO(T,void 0,y),l.push(T)}finally{var _;g=!0,d&&(d(),d=null),e==null||(_=e.signal)===null||_===void 0||_.removeEventListener("abort",f)}}b();try{for(;;){for(;l.length>0;){const E=await l[0];if(E===Qg)return;if(u.aborted)throw new gr;E!==el&&(yield E),l.shift(),h&&(h(),h=null)}await new Gg(E=>{d=E})}}finally{o.abort(),g=!0,h&&(h(),h=null)}}).call(this)}function yO(t=void 0){return t!=null&&ii(t,"options"),(t==null?void 0:t.signal)!=null&&ni(t.signal,"options.signal"),(async function*(){let r=0;for await(const i of this){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new gr({cause:t.signal.reason});yield[r++,i]}}).call(this)}async function Vb(t,e=void 0){for await(const r of lh.call(this,t,e))return!0;return!1}async function wO(t,e=void 0){if(typeof t!="function")throw new So("fn",["Function","AsyncFunction"],t);return!await Vb.call(this,async(...r)=>!await t(...r),e)}async function bO(t,e){for await(const r of lh.call(this,t,e))return r}async function _O(t,e){if(typeof t!="function")throw new So("fn",["Function","AsyncFunction"],t);async function r(n,i){return await t(n,i),el}for await(const n of nu.call(this,r,e));}function lh(t,e){if(typeof t!="function")throw new So("fn",["Function","AsyncFunction"],t);async function r(n,i){return await t(n,i)?n:el}return nu.call(this,r,e)}class vO extends rO{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function EO(t,e,r){var n;if(typeof t!="function")throw new So("reducer",["Function","AsyncFunction"],t);r!=null&&ii(r,"options"),(r==null?void 0:r.signal)!=null&&ni(r.signal,"options.signal");let i=arguments.length>1;if(r!=null&&(n=r.signal)!==null&&n!==void 0&&n.aborted){const u=new gr(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await oO(this.destroy(u)),u}const s=new Hb,o=s.signal;if(r!=null&&r.signal){const u={once:!0,[sO]:this};r.signal.addEventListener("abort",()=>s.abort(),u)}let a=!1;try{for await(const u of this){var l;if(a=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new gr;i?e=await t(e,u,{signal:o}):(e=u,i=!0)}if(!a&&!i)throw new vO}finally{s.abort()}return e}async function SO(t){t!=null&&ii(t,"options"),(t==null?void 0:t.signal)!=null&&ni(t.signal,"options.signal");const e=[];for await(const n of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new gr(void 0,{cause:t.signal.reason});fO(e,n)}return e}function xO(t,e){const r=nu.call(this,t,e);return(async function*(){for await(const i of r)yield*i}).call(this)}function qb(t){if(t=hO(t),pO(t))return 0;if(t<0)throw new nO("number",">= 0",t);return t}function TO(t,e=void 0){return e!=null&&ii(e,"options"),(e==null?void 0:e.signal)!=null&&ni(e.signal,"options.signal"),t=qb(t),(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new gr;for await(const s of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new gr;t--<=0&&(yield s)}}).call(this)}function AO(t,e=void 0){return e!=null&&ii(e,"options"),(e==null?void 0:e.signal)!=null&&ni(e.signal,"options.signal"),t=qb(t),(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new gr;for await(const s of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new gr;if(t-- >0)yield s;else return}}).call(this)}Xd.streamReturningOperators={asIndexedPairs:yO,drop:TO,filter:lh,flatMap:xO,map:nu,take:AO,compose:mO};Xd.promiseReturningOperators={every:wO,forEach:_O,reduce:EO,toArray:SO,some:Vb,find:bO};var mc,Jg;function Yb(){if(Jg)return mc;Jg=1;const{ArrayPrototypePop:t,Promise:e}=Ve,{isIterable:r,isNodeStream:n,isWebStream:i}=Yr,{pipelineImpl:s}=ah,{finished:o}=wn;Kb();function a(...l){return new e((u,c)=>{let f,d;const h=l[l.length-1];if(h&&typeof h=="object"&&!n(h)&&!r(h)&&!i(h)){const g=t(l);f=g.signal,d=g.end}s(l,(g,y)=>{g?c(g):u(y)},{signal:f,end:d})})}return mc={finished:o,pipeline:a},mc}var Zg;function Kb(){if(Zg)return ec.exports;Zg=1;const{Buffer:t}=We,{ObjectDefineProperty:e,ObjectKeys:r,ReflectApply:n}=Ve,{promisify:{custom:i}}=qr,{streamReturningOperators:s,promiseReturningOperators:o}=Xd,{codes:{ERR_ILLEGAL_CONSTRUCTOR:a}}=bt,l=zb,{pipeline:u}=ah,{destroyer:c}=ls,f=wn,d=Yb(),h=Yr,g=ec.exports=nh.Stream;g.isDisturbed=h.isDisturbed,g.isErrored=h.isErrored,g.isReadable=h.isReadable,g.Readable=ru();for(const b of r(s)){let _=function(...v){if(new.target)throw a();return g.Readable.from(n(E,this,v))};const E=s[b];e(_,"name",{__proto__:null,value:E.name}),e(_,"length",{__proto__:null,value:E.length}),e(g.Readable.prototype,b,{__proto__:null,value:_,enumerable:!1,configurable:!0,writable:!0})}for(const b of r(o)){let _=function(...v){if(new.target)throw a();return n(E,this,v)};const E=o[b];e(_,"name",{__proto__:null,value:E.name}),e(_,"length",{__proto__:null,value:E.length}),e(g.Readable.prototype,b,{__proto__:null,value:_,enumerable:!1,configurable:!0,writable:!0})}g.Writable=kb(),g.Duplex=$r(),g.Transform=Bb,g.PassThrough=Ub,g.pipeline=u;const{addAbortSignal:y}=tu;return g.addAbortSignal=y,g.finished=f,g.destroy=c,g.compose=l,e(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return d}}),e(u,i,{__proto__:null,enumerable:!0,get(){return d.pipeline}}),e(f,i,{__proto__:null,enumerable:!0,get(){return d.finished}}),g.Stream=g,g._isUint8Array=function(E){return E instanceof Uint8Array},g._uint8ArrayToBuffer=function(E){return t.from(E.buffer,E.byteOffset,E.byteLength)},ec.exports}(function(t){const e=Kb(),r=Yb(),n=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=n,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=e.Stream,t.exports.default=t.exports})(sb);var xo=sb.exports;function MO(t,e,r){var n=this;this._callback=t,this._args=r,this._interval=setInterval(t,e,this._args),this.reschedule=function(i){i||(i=n._interval),n._interval&&clearInterval(n._interval),n._interval=setInterval(n._callback,i,n._args)},this.clear=function(){n._interval&&(clearInterval(n._interval),n._interval=void 0)},this.destroy=function(){n._interval&&clearInterval(n._interval),n._callback=void 0,n._interval=void 0,n._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 t;if(arguments.length>0){t=new Array(arguments.length-2);for(var e=0;e{r.push(s)}),e._read=()=>{!n&&i{if(!n)return n=!0,setTimeout(()=>{e.emit("close")},0),e},e}del(e,r){const n=this._inflights.get(e.messageId);return n?(this._inflights.delete(e.messageId),r(null,n)):r&&r(new Error("missing packet")),this}get(e,r){const n=this._inflights.get(e.messageId);return n?r(null,n):r&&r(new Error("missing packet")),this}close(e){this.options.clean&&(this._inflights=null),e&&e()}}iu.default=BO;var uh={},ch={};Object.defineProperty(ch,"__esModule",{value:!0});const em=[0,16,128,131,135,144,145,151,153],FO=(t,e,r)=>{t.log("handlePublish: packet %o",e),r=typeof r<"u"?r:t.noop;let n=e.topic.toString();const i=e.payload,{qos:s}=e,{messageId:o}=e,{options:a}=t;if(t.options.protocolVersion===5){let l;if(e.properties&&(l=e.properties.topicAlias),typeof l<"u")if(n.length===0)if(l>0&&l<=65535){const u=t.topicAliasRecv.getTopicByAlias(l);if(u)n=u,t.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",n,l);else{t.log("handlePublish :: unregistered topic alias. alias: %d",l),t.emit("error",new Error("Received unregistered Topic Alias"));return}}else{t.log("handlePublish :: topic alias out of range. alias: %d",l),t.emit("error",new Error("Received Topic Alias is out of range"));return}else if(t.topicAliasRecv.put(n,l))t.log("handlePublish :: registered topic: %s - alias: %d",n,l);else{t.log("handlePublish :: topic alias out of range. alias: %d",l),t.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(t.log("handlePublish: qos %d",s),s){case 2:{a.customHandleAcks(n,i,e,(l,u)=>{if(typeof l=="number"&&(u=l,l=null),l)return t.emit("error",l);if(em.indexOf(u)===-1)return t.emit("error",new Error("Wrong reason code for pubrec"));u?t._sendPacket({cmd:"pubrec",messageId:o,reasonCode:u},r):t.incomingStore.put(e,()=>{t._sendPacket({cmd:"pubrec",messageId:o},r)})});break}case 1:{a.customHandleAcks(n,i,e,(l,u)=>{if(typeof l=="number"&&(u=l,l=null),l)return t.emit("error",l);if(em.indexOf(u)===-1)return t.emit("error",new Error("Wrong reason code for puback"));u||t.emit("message",n,i,e),t.handleMessage(e,c=>{if(c)return r&&r(c);t._sendPacket({cmd:"puback",messageId:o,reasonCode:u},r)})});break}case 0:t.emit("message",n,i,e),t.handleMessage(e,r);break;default:t.log("handlePublish: unknown QoS. Doing nothing.");break}};ch.default=FO;var fh={},Dr={};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.applyMixin=Dr.ErrorWithReasonCode=void 0;class dh extends Error{constructor(e,r){super(e),this.code=r,Object.setPrototypeOf(this,dh.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}}Dr.ErrorWithReasonCode=dh;function UO(t,e,r=!1){var n;const i=[e];for(;;){const s=i[0],o=Object.getPrototypeOf(s);if(o!=null&&o.prototype)i.unshift(o);else break}for(const s of i)for(const o of Object.getOwnPropertyNames(s.prototype))(r||o!=="constructor")&&Object.defineProperty(t.prototype,o,(n=Object.getOwnPropertyDescriptor(s.prototype,o))!==null&&n!==void 0?n:Object.create(null))}Dr.applyMixin=UO;var To={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ReasonCodes=void 0,t.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};const e=(r,n)=>{const{messageId:i}=n,s=n.cmd;let o=null;const a=r.outgoing[i]?r.outgoing[i].cb:null;let l;if(!a){r.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(r.log("_handleAck :: packet type",s),s){case"pubcomp":case"puback":{const u=n.reasonCode;u&&u>0&&u!==16?(l=new Error(`Publish error: ${t.ReasonCodes[u]}`),l.code=u,r._removeOutgoingAndStoreMessage(i,()=>{a(l,n)})):r._removeOutgoingAndStoreMessage(i,a);break}case"pubrec":{o={cmd:"pubrel",qos:2,messageId:i};const u=n.reasonCode;u&&u>0&&u!==16?(l=new Error(`Publish error: ${t.ReasonCodes[u]}`),l.code=u,r._removeOutgoingAndStoreMessage(i,()=>{a(l,n)})):r._sendPacket(o);break}case"suback":{delete r.outgoing[i],r.messageIdProvider.deallocate(i);const u=n.granted;for(let c=0;c{delete r._resubscribeTopics[d]})}delete r.messageIdToTopic[i],r._invokeStoreProcessingQueue(),a(null,n);break}case"unsuback":{delete r.outgoing[i],r.messageIdProvider.deallocate(i),r._invokeStoreProcessingQueue(),a(null);break}default:r.emit("error",new Error("unrecognized packet type"))}r.disconnecting&&Object.keys(r.outgoing).length===0&&r.emit("outgoingEmpty")};t.default=e})(To);Object.defineProperty(fh,"__esModule",{value:!0});const tm=Dr,jO=To,zO=(t,e)=>{const{options:r}=t,n=r.protocolVersion,i=n===5?e.reasonCode:e.returnCode;if(n!==5){const s=new tm.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${n}`,i);t.emit("error",s);return}t.handleAuth(e,(s,o)=>{if(s){t.emit("error",s);return}if(i===24)t.reconnecting=!1,t._sendPacket(o);else{const a=new tm.ErrorWithReasonCode(`Connection refused: ${jO.ReasonCodes[i]}`,i);t.emit("error",a)}})};fh.default=zO;var hh={},ph={};const ys=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,HO=typeof AbortController=="function",tl=HO?AbortController:class{constructor(){this.signal=new Xb}abort(e=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||e,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},WO=typeof AbortSignal=="function",VO=typeof tl.AbortSignal=="function",Xb=WO?AbortSignal:VO?tl.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(e){e.type==="abort"&&(this.aborted=!0,this.onabort(e),this._listeners.forEach(r=>r(e),this))}onabort(){}addEventListener(e,r){e==="abort"&&this._listeners.push(r)}removeEventListener(e,r){e==="abort"&&(this._listeners=this._listeners.filter(n=>n!==r))}},gh=new Set,yc=(t,e)=>{const r=`LRU_CACHE_OPTION_${t}`;su(r)&&mh(r,`${t} option`,`options.${e}`,Yn)},wc=(t,e)=>{const r=`LRU_CACHE_METHOD_${t}`;if(su(r)){const{prototype:n}=Yn,{get:i}=Object.getOwnPropertyDescriptor(n,t);mh(r,`${t} method`,`cache.${e}()`,i)}},qO=(t,e)=>{const r=`LRU_CACHE_PROPERTY_${t}`;if(su(r)){const{prototype:n}=Yn,{get:i}=Object.getOwnPropertyDescriptor(n,t);mh(r,`${t} property`,`cache.${e}`,i)}},Qb=(...t)=>{typeof _e=="object"&&_e&&typeof _e.emitWarning=="function"?_e.emitWarning(...t):console.error(...t)},su=t=>!gh.has(t),mh=(t,e,r,n)=>{gh.add(t);const i=`The ${e} is deprecated. Please use ${r} instead.`;Qb(i,"DeprecationWarning",t,n)},Zr=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Jb=t=>Zr(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Sa:null:null;class Sa extends Array{constructor(e){super(e),this.fill(0)}}let YO=class{constructor(e){if(e===0)return[];const r=Jb(e);this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};class Yn{constructor(e={}){const{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:c,noDisposeOnSet:f,noUpdateTTL:d,maxSize:h=0,maxEntrySize:g=0,sizeCalculation:y,fetchMethod:b,fetchContext:E,noDeleteOnFetchRejection:_,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:T,allowStaleOnFetchAbort:M,ignoreFetchAbort:I}=e,{length:$,maxAge:F,stale:L}=e instanceof Yn?{}:e;if(r!==0&&!Zr(r))throw new TypeError("max option must be a nonnegative integer");const U=r?Jb(r):Array;if(!U)throw new Error("invalid max value: "+r);if(this.max=r,this.maxSize=h,this.maxEntrySize=g||this.maxSize,this.sizeCalculation=y||$,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=b||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=E,!this.fetchMethod&&E!==void 0)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(r).fill(null),this.valList=new Array(r).fill(null),this.next=new U(r),this.prev=new U(r),this.head=0,this.tail=0,this.free=new YO(r),this.initialFill=1,this.size=0,typeof u=="function"&&(this.dispose=u),typeof c=="function"?(this.disposeAfter=c,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!f,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!_,this.allowStaleOnFetchRejection=!!T,this.allowStaleOnFetchAbort=!!M,this.ignoreFetchAbort=!!I,this.maxEntrySize!==0){if(this.maxSize!==0&&!Zr(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!Zr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!l||!!L,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Zr(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||F||0,this.ttl){if(!Zr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const k="LRU_CACHE_UNBOUNDED";su(k)&&(gh.add(k),Qb("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",k,Yn))}L&&yc("stale","allowStale"),F&&yc("maxAge","ttl"),$&&yc("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new Sa(this.max),this.starts=new Sa(this.max),this.setItemTTL=(n,i,s=ys.now())=>{if(this.starts[n]=i!==0?s:0,this.ttls[n]=i,i!==0&&this.ttlAutopurge){const o=setTimeout(()=>{this.isStale(n)&&this.delete(this.keyList[n])},i+1);o.unref&&o.unref()}},this.updateItemAge=n=>{this.starts[n]=this.ttls[n]!==0?ys.now():0},this.statusTTL=(n,i)=>{n&&(n.ttl=this.ttls[i],n.start=this.starts[i],n.now=e||r(),n.remainingTTL=n.now+n.ttl-n.start)};let e=0;const r=()=>{const n=ys.now();if(this.ttlResolution>0){e=n;const i=setTimeout(()=>e=0,this.ttlResolution);i.unref&&i.unref()}return n};this.getRemainingTTL=n=>{const i=this.keyMap.get(n);return i===void 0?0:this.ttls[i]===0||this.starts[i]===0?1/0:this.starts[i]+this.ttls[i]-(e||r())},this.isStale=n=>this.ttls[n]!==0&&this.starts[n]!==0&&(e||r())-this.starts[n]>this.ttls[n]}updateItemAge(e){}statusTTL(e,r){}setItemTTL(e,r,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new Sa(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,r,n,i)=>{if(this.isBackgroundFetch(r))return 0;if(!Zr(n))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(n=i(r,e),!Zr(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.addItemSize=(e,r,n)=>{if(this.sizes[e]=r,this.maxSize){const i=this.maxSize-this.sizes[e];for(;this.calculatedSize>i;)this.evict(!0)}this.calculatedSize+=this.sizes[e],n&&(n.entrySize=r,n.totalCalculatedSize=this.calculatedSize)}}removeItemSize(e){}addItemSize(e,r){}requireSize(e,r,n,i){if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let r=this.tail;!(!this.isValidIndex(r)||((e||!this.isStale(r))&&(yield r),r===this.head));)r=this.prev[r]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let r=this.head;!(!this.isValidIndex(r)||((e||!this.isStale(r))&&(yield r),r===this.tail));)r=this.next[r]}isValidIndex(e){return e!==void 0&&this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())this.valList[e]!==void 0&&this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield[this.keyList[e],this.valList[e]])}*rentries(){for(const e of this.rindexes())this.valList[e]!==void 0&&this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield[this.keyList[e],this.valList[e]])}*keys(){for(const e of this.indexes())this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.keyList[e])}*rkeys(){for(const e of this.rindexes())this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.keyList[e])}*values(){for(const e of this.indexes())this.valList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.valList[e])}*rvalues(){for(const e of this.rindexes())this.valList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.valList[e])}[Symbol.iterator](){return this.entries()}find(e,r){for(const n of this.indexes()){const i=this.valList[n],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;if(s!==void 0&&e(s,this.keyList[n],this))return this.get(this.keyList[n],r)}}forEach(e,r=this){for(const n of this.indexes()){const i=this.valList[n],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(r,s,this.keyList[n],this)}}rforEach(e,r=this){for(const n of this.rindexes()){const i=this.valList[n],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(r,s,this.keyList[n],this)}}get prune(){return wc("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const r of this.rindexes({allowStale:!0}))this.isStale(r)&&(this.delete(this.keyList[r]),e=!0);return e}dump(){const e=[];for(const r of this.indexes({allowStale:!0})){const n=this.keyList[r],i=this.valList[r],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;if(s===void 0)continue;const o={value:s};if(this.ttls){o.ttl=this.ttls[r];const a=ys.now()-this.starts[r];o.start=Math.floor(Date.now()-a)}this.sizes&&(o.size=this.sizes[r]),e.unshift([n,o])}return e}load(e){this.clear();for(const[r,n]of e){if(n.start){const i=Date.now()-n.start;n.start=ys.now()-i}this.set(r,n.value,n)}}dispose(e,r,n){}set(e,r,{ttl:n=this.ttl,start:i,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,status:u}={}){if(o=this.requireSize(e,r,o,a),this.maxEntrySize&&o>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.delete(e),this;let c=this.size===0?void 0:this.keyMap.get(e);if(c===void 0)c=this.newIndex(),this.keyList[c]=e,this.valList[c]=r,this.keyMap.set(e,c),this.next[this.tail]=c,this.prev[c]=this.tail,this.tail=c,this.size++,this.addItemSize(c,o,u),u&&(u.set="add"),l=!1;else{this.moveToTail(c);const f=this.valList[c];if(r!==f){if(this.isBackgroundFetch(f)?f.__abortController.abort(new Error("replaced")):s||(this.dispose(f,e,"set"),this.disposeAfter&&this.disposed.push([f,e,"set"])),this.removeItemSize(c),this.valList[c]=r,this.addItemSize(c,o,u),u){u.set="replace";const d=f&&this.isBackgroundFetch(f)?f.__staleWhileFetching:f;d!==void 0&&(u.oldValue=d)}}else u&&(u.set="update")}if(n!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),l||this.setItemTTL(c,n,i),this.statusTTL(u,c),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(!1):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const r=this.head,n=this.keyList[r],i=this.valList[r];return this.isBackgroundFetch(i)?i.__abortController.abort(new Error("evicted")):(this.dispose(i,n,"evict"),this.disposeAfter&&this.disposed.push([i,n,"evict"])),this.removeItemSize(r),e&&(this.keyList[r]=null,this.valList[r]=null,this.free.push(r)),this.head=this.next[r],this.keyMap.delete(n),this.size--,r}has(e,{updateAgeOnHas:r=this.updateAgeOnHas,status:n}={}){const i=this.keyMap.get(e);if(i!==void 0)if(this.isStale(i))n&&(n.has="stale",this.statusTTL(n,i));else return r&&this.updateItemAge(i),n&&(n.has="hit"),this.statusTTL(n,i),!0;else n&&(n.has="miss");return!1}peek(e,{allowStale:r=this.allowStale}={}){const n=this.keyMap.get(e);if(n!==void 0&&(r||!this.isStale(n))){const i=this.valList[n];return this.isBackgroundFetch(i)?i.__staleWhileFetching:i}}backgroundFetch(e,r,n,i){const s=r===void 0?void 0:this.valList[r];if(this.isBackgroundFetch(s))return s;const o=new tl;n.signal&&n.signal.addEventListener("abort",()=>o.abort(n.signal.reason));const a={signal:o.signal,options:n,context:i},l=(h,g=!1)=>{const{aborted:y}=o.signal,b=n.ignoreFetchAbort&&h!==void 0;return n.status&&(y&&!g?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,b&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),y&&!b&&!g?c(o.signal.reason):(this.valList[r]===d&&(h===void 0?d.__staleWhileFetching?this.valList[r]=d.__staleWhileFetching:this.delete(e):(n.status&&(n.status.fetchUpdated=!0),this.set(e,h,a.options))),h)},u=h=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=h),c(h)),c=h=>{const{aborted:g}=o.signal,y=g&&n.allowStaleOnFetchAbort,b=y||n.allowStaleOnFetchRejection,E=b||n.noDeleteOnFetchRejection;if(this.valList[r]===d&&(!E||d.__staleWhileFetching===void 0?this.delete(e):y||(this.valList[r]=d.__staleWhileFetching)),b)return n.status&&d.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),d.__staleWhileFetching;if(d.__returned===d)throw h},f=(h,g)=>{this.fetchMethod(e,s,a).then(y=>h(y),g),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(h(),n.allowStaleOnFetchAbort&&(h=y=>l(y,!0)))})};n.status&&(n.status.fetchDispatched=!0);const d=new Promise(f).then(l,u);return d.__abortController=o,d.__staleWhileFetching=s,d.__returned=null,r===void 0?(this.set(e,d,{...a.options,status:void 0}),r=this.keyMap.get(e)):this.valList[r]=d,d}isBackgroundFetch(e){return e&&typeof e=="object"&&typeof e.then=="function"&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||e.__returned===null)}async fetch(e,{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,fetchContext:g=this.fetchContext,forceRefresh:y=!1,status:b,signal:E}={}){if(!this.fetchMethod)return b&&(b.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,status:b});const _={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:s,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:u,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:h,ignoreFetchAbort:d,status:b,signal:E};let v=this.keyMap.get(e);if(v===void 0){b&&(b.fetch="miss");const T=this.backgroundFetch(e,v,_,g);return T.__returned=T}else{const T=this.valList[v];if(this.isBackgroundFetch(T)){const L=r&&T.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",L&&(b.returnedStale=!0)),L?T.__staleWhileFetching:T.__returned=T}const M=this.isStale(v);if(!y&&!M)return b&&(b.fetch="hit"),this.moveToTail(v),n&&this.updateItemAge(v),this.statusTTL(b,v),T;const I=this.backgroundFetch(e,v,_,g),$=I.__staleWhileFetching!==void 0,F=$&&r;return b&&(b.fetch=$&&M?"stale":"refresh",F&&M&&(b.returnedStale=!0)),F?I.__staleWhileFetching:I.__returned=I}}get(e,{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:s}={}){const o=this.keyMap.get(e);if(o!==void 0){const a=this.valList[o],l=this.isBackgroundFetch(a);return this.statusTTL(s,o),this.isStale(o)?(s&&(s.get="stale"),l?(s&&(s.returnedStale=r&&a.__staleWhileFetching!==void 0),r?a.__staleWhileFetching:void 0):(i||this.delete(e),s&&(s.returnedStale=r),r?a:void 0)):(s&&(s.get="hit"),l?a.__staleWhileFetching:(this.moveToTail(o),n&&this.updateItemAge(o),a))}else s&&(s.get="miss")}connect(e,r){this.prev[r]=e,this.next[e]=r}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return wc("del","delete"),this.delete}delete(e){let r=!1;if(this.size!==0){const n=this.keyMap.get(e);if(n!==void 0)if(r=!0,this.size===1)this.clear();else{this.removeItemSize(n);const i=this.valList[n];this.isBackgroundFetch(i)?i.__abortController.abort(new Error("deleted")):(this.dispose(i,e,"delete"),this.disposeAfter&&this.disposed.push([i,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return r}clear(){for(const e of this.rindexes({allowStale:!0})){const r=this.valList[e];if(this.isBackgroundFetch(r))r.__abortController.abort(new Error("deleted"));else{const n=this.keyList[e];this.dispose(r,n,"delete"),this.disposeAfter&&this.disposed.push([r,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return wc("reset","clear"),this.clear}get length(){return qO("length","size"),this.size}static get AbortController(){return tl}static get AbortSignal(){return Xb}}var KO=Yn,yh={},GO=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ou=function(){function t(e){e===void 0&&(e=0),this.iteratorType=e}return t.prototype.equals=function(e){return this.o===e.o},t}(),au=function(){function t(){this.M=0}return Object.defineProperty(t.prototype,"length",{get:function(){return this.M},enumerable:!1,configurable:!0}),t.prototype.size=function(){return this.M},t.prototype.empty=function(){return this.M===0},t}(),wh=function(t){GO(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(au),XO=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),QO=function(t){XO(e,t);function e(r){r===void 0&&(r=[]);var n=t.call(this)||this;n.nt=[];var i=n;return r.forEach(function(s){i.push(s)}),n}return e.prototype.clear=function(){this.M=0,this.nt=[]},e.prototype.push=function(r){return this.nt.push(r),this.M+=1,this.M},e.prototype.pop=function(){if(this.M!==0)return this.M-=1,this.nt.pop()},e.prototype.top=function(){return this.nt[this.M-1]},e}(au);const JO=QO;var ZO=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),eP=function(t){ZO(e,t);function e(r){r===void 0&&(r=[]);var n=t.call(this)||this;n.A=0,n.tt=[];var i=n;return r.forEach(function(s){i.push(s)}),n}return e.prototype.clear=function(){this.tt=[],this.M=this.A=0},e.prototype.push=function(r){var n=this.tt.length;if(this.A/n>.5&&this.A+this.M>=n&&n>4096){for(var i=this.M,s=0;s0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},nm=globalThis&&globalThis.D||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;nc?-1:u>1,l=s.M-1>>1;l>=0;--l)s.ri(l,a);return s}return e.prototype.ti=function(r){for(var n=this.ii[r];r>0;){var i=r-1>>1,s=this.ii[i];if(this.$(s,n)<=0)break;this.ii[r]=s,r=i}this.ii[r]=n},e.prototype.ri=function(r,n){for(var i=this.ii[r];r0&&(s=o,a=this.ii[o]),this.$(a,i)>=0)break;this.ii[r]=a,r=s}this.ii[r]=i},e.prototype.clear=function(){this.M=0,this.ii.length=0},e.prototype.push=function(r){this.ii.push(r),this.ti(this.M),this.M+=1},e.prototype.pop=function(){if(this.M!==0){var r=this.ii[0],n=this.ii.pop();return this.M-=1,this.M&&(this.ii[0]=n,this.ri(0,this.M>>1)),r}},e.prototype.top=function(){return this.ii[0]},e.prototype.find=function(r){return this.ii.indexOf(r)>=0},e.prototype.remove=function(r){var n=this.ii.indexOf(r);return n<0?!1:(n===0?this.pop():n===this.M-1?(this.ii.pop(),this.M-=1):(this.ii.splice(n,1,this.ii.pop()),this.M-=1,this.ti(n),this.ri(n,this.M>>1)),!0)},e.prototype.updateItem=function(r){var n=this.ii.indexOf(r);return n<0?!1:(this.ti(n),this.ri(n,this.M>>1),!0)},e.prototype.toArray=function(){return nm([],rm(this.ii),!1)},e}(au);const iP=nP;var sP=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),oP=function(t){sP(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(wh);const bh=oP;function De(){throw new RangeError("Iterator access denied!")}var aP=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Zb=function(t){aP(e,t);function e(r,n){var i=t.call(this,n)||this;return i.o=r,i.iteratorType===0?(i.pre=function(){return this.o===0&&De(),this.o-=1,this},i.next=function(){return this.o===this.container.size()&&De(),this.o+=1,this}):(i.pre=function(){return this.o===this.container.size()-1&&De(),this.o+=1,this},i.next=function(){return this.o===-1&&De(),this.o-=1,this}),i}return Object.defineProperty(e.prototype,"pointer",{get:function(){return this.container.getElementByPos(this.o)},set:function(r){this.container.setElementByPos(this.o,r)},enumerable:!1,configurable:!0}),e}(ou),e_=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),lP=globalThis&&globalThis.i||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},sm=globalThis&&globalThis.D||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ws=function(t){e_(e,t);function e(r,n,i){var s=t.call(this,r,i)||this;return s.container=n,s}return e.prototype.copy=function(){return new e(this.o,this.container,this.iteratorType)},e}(Zb),cP=function(t){e_(e,t);function e(r,n){r===void 0&&(r=[]),n===void 0&&(n=!0);var i=t.call(this)||this;if(Array.isArray(r))i.J=n?sm([],im(r),!1):r,i.M=r.length;else{i.J=[];var s=i;r.forEach(function(o){s.pushBack(o)})}return i}return e.prototype.clear=function(){this.M=0,this.J.length=0},e.prototype.begin=function(){return new ws(0,this)},e.prototype.end=function(){return new ws(this.M,this)},e.prototype.rBegin=function(){return new ws(this.M-1,this,1)},e.prototype.rEnd=function(){return new ws(-1,this,1)},e.prototype.front=function(){return this.J[0]},e.prototype.back=function(){return this.J[this.M-1]},e.prototype.getElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;return this.J[r]},e.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},e.prototype.eraseElementByValue=function(r){for(var n=0,i=0;ithis.M-1)throw new RangeError;this.J[r]=n},e.prototype.insert=function(r,n,i){var s;if(i===void 0&&(i=1),r<0||r>this.M)throw new RangeError;return(s=this.J).splice.apply(s,sm([r,0],im(new Array(i).fill(n)),!1)),this.M+=i,this.M},e.prototype.find=function(r){for(var n=0;n0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]this.M-1)throw new RangeError;for(var n=this.H;r--;)n=n.m;return n.p},e.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;for(var n=this.H;r--;)n=n.m;return this.G(n),this.M},e.prototype.eraseElementByValue=function(r){for(var n=this.H;n!==this.h;)n.p===r&&this.G(n),n=n.m;return this.M},e.prototype.eraseElementByIterator=function(r){var n=r.o;return n===this.h&&De(),r=r.next(),this.G(n),r},e.prototype.pushBack=function(r){return this.F(r,this.l),this.M},e.prototype.popBack=function(){if(this.M!==0){var r=this.l.p;return this.G(this.l),r}},e.prototype.pushFront=function(r){return this.F(r,this.h),this.M},e.prototype.popFront=function(){if(this.M!==0){var r=this.H.p;return this.G(this.H),r}},e.prototype.setElementByPos=function(r,n){if(r<0||r>this.M-1)throw new RangeError;for(var i=this.H;r--;)i=i.m;i.p=n},e.prototype.insert=function(r,n,i){if(i===void 0&&(i=1),r<0||r>this.M)throw new RangeError;if(i<=0)return this.M;if(r===0)for(;i--;)this.pushFront(n);else if(r===this.M)for(;i--;)this.pushBack(n);else{for(var s=this.H,o=1;o0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},yP=globalThis&&globalThis.D||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;n>1)-(a>>1),i.S=i.k=i.B-s%i.B>>1;var l=i;return r.forEach(function(u){l.pushBack(u)}),i}return e.prototype.O=function(){for(var r=[],n=Math.max(this.C>>1,1),i=0;i>1},e.prototype.begin=function(){return new _s(0,this)},e.prototype.end=function(){return new _s(this.M,this)},e.prototype.rBegin=function(){return new _s(this.M-1,this,1)},e.prototype.rEnd=function(){return new _s(-1,this,1)},e.prototype.front=function(){if(this.M!==0)return this.j[this.A][this.S]},e.prototype.back=function(){if(this.M!==0)return this.j[this.R][this.k]},e.prototype.pushBack=function(r){return this.M&&(this.k0?this.k-=1:this.R>0?(this.R-=1,this.k=this.B-1):(this.R=this.C-1,this.k=this.B-1)),this.M-=1,r}},e.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},e.prototype.popFront=function(){if(this.M!==0){var r=this.j[this.A][this.S];return this.M!==1&&(this.Sthis.M-1)throw new RangeError;var n=this.T(r),i=n.curNodeBucketIndex,s=n.curNodePointerIndex;return this.j[i][s]},e.prototype.setElementByPos=function(r,n){if(r<0||r>this.M-1)throw new RangeError;var i=this.T(r),s=i.curNodeBucketIndex,o=i.curNodePointerIndex;this.j[s][o]=n},e.prototype.insert=function(r,n,i){if(i===void 0&&(i=1),r<0||r>this.M)throw new RangeError;if(r===0)for(;i--;)this.pushFront(n);else if(r===this.M)for(;i--;)this.pushBack(n);else{for(var s=[],o=r;othis.M-1)throw new RangeError;if(r===0)this.popFront();else if(r===this.M-1)this.popBack();else{for(var n=[],i=r+1;ir;)this.popBack();return this.M},e.prototype.sort=function(r){for(var n=[],i=0;i0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},am=globalThis&&globalThis.V||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},SP=function(t){EP(e,t);function e(r,n){r===void 0&&(r=function(s,o){return so?1:0}),n===void 0&&(n=!1);var i=t.call(this)||this;return i.W=void 0,i.$=r,n?(i.re=vP,i.v=function(s,o,a){var l=this.se(s,o,a);if(l){for(var u=l.rr;u!==this.h;)u.tr+=1,u=u.rr;var c=this.fe(l);if(c){var f=c,d=f.parentNode,h=f.grandParent,g=f.curNode;d.ie(),h.ie(),g.ie()}}return this.M},i.G=function(s){for(var o=this.he(s);o!==this.h;)o.tr-=1,o=o.rr}):(i.re=n_,i.v=function(s,o,a){var l=this.se(s,o,a);return l&&this.fe(l),this.M},i.G=i.he),i.h=new i.re,i}return e.prototype.U=function(r,n){for(var i=this.h;r;){var s=this.$(r.u,n);if(s<0)r=r.N;else if(s>0)i=r,r=r.K;else return r}return i},e.prototype.X=function(r,n){for(var i=this.h;r;){var s=this.$(r.u,n);s<=0?r=r.N:(i=r,r=r.K)}return i},e.prototype.Y=function(r,n){for(var i=this.h;r;){var s=this.$(r.u,n);if(s<0)i=r,r=r.N;else if(s>0)r=r.K;else return r}return i},e.prototype.Z=function(r,n){for(var i=this.h;r;){var s=this.$(r.u,n);s<0?(i=r,r=r.N):r=r.K}return i},e.prototype.ue=function(r){for(;;){var n=r.rr;if(n===this.h)return;if(r.ee===1){r.ee=0;return}if(r===n.K){var i=n.N;if(i.ee===1)i.ee=0,n.ee=1,n===this.W?this.W=n.ne():n.ne();else if(i.N&&i.N.ee===1){i.ee=n.ee,n.ee=0,i.N.ee=0,n===this.W?this.W=n.ne():n.ne();return}else i.K&&i.K.ee===1?(i.ee=1,i.K.ee=0,i.te()):(i.ee=1,r=n)}else{var i=n.K;if(i.ee===1)i.ee=0,n.ee=1,n===this.W?this.W=n.te():n.te();else if(i.K&&i.K.ee===1){i.ee=n.ee,n.ee=0,i.K.ee=0,n===this.W?this.W=n.te():n.te();return}else i.N&&i.N.ee===1?(i.ee=1,i.N.ee=0,i.ne()):(i.ee=1,r=n)}}},e.prototype.he=function(r){var n,i;if(this.M===1)return this.clear(),this.h;for(var s=r;s.K||s.N;){if(s.N)for(s=s.N;s.K;)s=s.K;else s=s.K;n=om([s.u,r.u],2),r.u=n[0],s.u=n[1],i=om([s.p,r.p],2),r.p=i[0],s.p=i[1],r=s}this.h.K===s?this.h.K=s.rr:this.h.N===s&&(this.h.N=s.rr),this.ue(s);var o=s.rr;return s===o.K?o.K=void 0:o.N=void 0,this.M-=1,this.W.ee=0,o},e.prototype.ae=function(r,n){if(r===void 0)return!1;var i=this.ae(r.K,n);return i||n(r)?!0:this.ae(r.N,n)},e.prototype.fe=function(r){for(;;){var n=r.rr;if(n.ee===0)return;var i=n.rr;if(n===i.K){var s=i.N;if(s&&s.ee===1){if(s.ee=n.ee=0,i===this.W)return;i.ee=1,r=i;continue}else if(r===n.N){if(r.ee=0,r.K&&(r.K.rr=n),r.N&&(r.N.rr=i),n.N=r.K,i.K=r.N,r.K=n,r.N=i,i===this.W)this.W=r,this.h.rr=r;else{var o=i.rr;o.K===i?o.K=r:o.N=r}return r.rr=i.rr,n.rr=r,i.rr=r,i.ee=1,{parentNode:n,grandParent:i,curNode:r}}else n.ee=0,i===this.W?this.W=i.te():i.te(),i.ee=1}else{var s=i.K;if(s&&s.ee===1){if(s.ee=n.ee=0,i===this.W)return;i.ee=1,r=i;continue}else if(r===n.K){if(r.ee=0,r.K&&(r.K.rr=i),r.N&&(r.N.rr=n),i.N=r.K,n.K=r.N,r.K=i,r.N=n,i===this.W)this.W=r,this.h.rr=r;else{var o=i.rr;o.K===i?o.K=r:o.N=r}return r.rr=i.rr,n.rr=r,i.rr=r,i.ee=1,{parentNode:n,grandParent:i,curNode:r}}else n.ee=0,i===this.W?this.W=i.ne():i.ne(),i.ee=1}return}},e.prototype.se=function(r,n,i){if(this.W===void 0){this.M+=1,this.W=new this.re(r,n),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 s,o=this.h.K,a=this.$(o.u,r);if(a===0){o.p=n;return}else if(a>0)o.K=new this.re(r,n),o.K.rr=o,s=o.K,this.h.K=s;else{var l=this.h.N,u=this.$(l.u,r);if(u===0){l.p=n;return}else if(u<0)l.N=new this.re(r,n),l.N.rr=l,s=l.N,this.h.N=s;else{if(i!==void 0){var c=i.o;if(c!==this.h){var f=this.$(c.u,r);if(f===0){c.p=n;return}else if(f>0){var d=c.L(),h=this.$(d.u,r);if(h===0){d.p=n;return}else h<0&&(s=new this.re(r,n),d.N===void 0?(d.N=s,s.rr=d):(c.K=s,s.rr=c))}}}if(s===void 0)for(s=this.W;;){var g=this.$(s.u,r);if(g>0){if(s.K===void 0){s.K=new this.re(r,n),s.K.rr=s,s=s.K;break}s=s.K}else if(g<0){if(s.N===void 0){s.N=new this.re(r,n),s.N.rr=s,s=s.N;break}s=s.N}else{s.p=n;return}}}}return this.M+=1,s},e.prototype.g=function(r,n){for(;r;){var i=this.$(r.u,n);if(i<0)r=r.N;else if(i>0)r=r.K;else return r}return r||this.h},e.prototype.clear=function(){this.M=0,this.W=void 0,this.h.rr=void 0,this.h.K=this.h.N=void 0},e.prototype.updateKeyByIterator=function(r,n){var i=r.o;if(i===this.h&&De(),this.M===1)return i.u=n,!0;if(i===this.h.K)return this.$(i.m().u,n)>0?(i.u=n,!0):!1;if(i===this.h.N)return this.$(i.L().u,n)<0?(i.u=n,!0):!1;var s=i.L().u;if(this.$(s,n)>=0)return!1;var o=i.m().u;return this.$(o,n)<=0?!1:(i.u=n,!0)},e.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;var n=0,i=this;return this.ae(this.W,function(s){return r===n?(i.G(s),!0):(n+=1,!1)}),this.M},e.prototype.eraseElementByKey=function(r){if(this.M===0)return!1;var n=this.g(this.W,r);return n===this.h?!1:(this.G(n),!0)},e.prototype.eraseElementByIterator=function(r){var n=r.o;n===this.h&&De();var i=n.N===void 0,s=r.iteratorType===0;return s?i&&r.next():(!i||n.K===void 0)&&r.next(),this.G(n),r},e.prototype.forEach=function(r){var n,i,s=0;try{for(var o=am(this),a=o.next();!a.done;a=o.next()){var l=a.value;r(l,s++,this)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.getElementByPos=function(r){var n,i;if(r<0||r>this.M-1)throw new RangeError;var s,o=0;try{for(var a=am(this),l=a.next();!l.done;l=a.next()){var u=l.value;if(o===r){s=u;break}o+=1}}catch(c){n={error:c}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return s},e.prototype.getHeight=function(){if(this.M===0)return 0;var r=function(n){return n?Math.max(r(n.K),r(n.N))+1:0};return r(this.W)},e}(wh);const i_=SP;var xP=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),TP=function(t){xP(e,t);function e(r,n,i){var s=t.call(this,i)||this;return s.o=r,s.h=n,s.iteratorType===0?(s.pre=function(){return this.o===this.h.K&&De(),this.o=this.o.L(),this},s.next=function(){return this.o===this.h&&De(),this.o=this.o.m(),this}):(s.pre=function(){return this.o===this.h.N&&De(),this.o=this.o.m(),this},s.next=function(){return this.o===this.h&&De(),this.o=this.o.L(),this}),s}return Object.defineProperty(e.prototype,"index",{get:function(){var r=this.o,n=this.h.rr;if(r===this.h)return n?n.tr-1:0;var i=0;for(r.K&&(i+=r.K.tr);r!==n;){var s=r.rr;r===s.N&&(i+=1,s.K&&(i+=s.K.tr)),r=s}return i},enumerable:!1,configurable:!0}),e}(ou);const s_=TP;var o_=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),AP=globalThis&&globalThis.i||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},vr=function(t){o_(e,t);function e(r,n,i,s){var o=t.call(this,r,n,s)||this;return o.container=i,o}return Object.defineProperty(e.prototype,"pointer",{get:function(){return this.o===this.h&&De(),this.o.u},enumerable:!1,configurable:!0}),e.prototype.copy=function(){return new e(this.o,this.h,this.container,this.iteratorType)},e}(s_),MP=function(t){o_(e,t);function e(r,n,i){r===void 0&&(r=[]);var s=t.call(this,n,i)||this,o=s;return r.forEach(function(a){o.insert(a)}),s}return e.prototype.P=function(r){return AP(this,function(n){switch(n.label){case 0:return r===void 0?[2]:[5,lm(this.P(r.K))];case 1:return n.sent(),[4,r.u];case 2:return n.sent(),[5,lm(this.P(r.N))];case 3:return n.sent(),[2]}})},e.prototype.begin=function(){return new vr(this.h.K||this.h,this.h,this)},e.prototype.end=function(){return new vr(this.h,this.h,this)},e.prototype.rBegin=function(){return new vr(this.h.N||this.h,this.h,this,1)},e.prototype.rEnd=function(){return new vr(this.h,this.h,this,1)},e.prototype.front=function(){return this.h.K?this.h.K.u:void 0},e.prototype.back=function(){return this.h.N?this.h.N.u:void 0},e.prototype.insert=function(r,n){return this.v(r,void 0,n)},e.prototype.find=function(r){var n=this.g(this.W,r);return new vr(n,this.h,this)},e.prototype.lowerBound=function(r){var n=this.U(this.W,r);return new vr(n,this.h,this)},e.prototype.upperBound=function(r){var n=this.X(this.W,r);return new vr(n,this.h,this)},e.prototype.reverseLowerBound=function(r){var n=this.Y(this.W,r);return new vr(n,this.h,this)},e.prototype.reverseUpperBound=function(r){var n=this.Z(this.W,r);return new vr(n,this.h,this)},e.prototype.union=function(r){var n=this;return r.forEach(function(i){n.insert(i)}),this.M},e.prototype[Symbol.iterator]=function(){return this.P(this.W)},e}(i_);const CP=MP;var a_=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),IP=globalThis&&globalThis.i||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Er=function(t){a_(e,t);function e(r,n,i,s){var o=t.call(this,r,n,s)||this;return o.container=i,o}return Object.defineProperty(e.prototype,"pointer",{get:function(){this.o===this.h&&De();var r=this;return new Proxy([],{get:function(n,i){if(i==="0")return r.o.u;if(i==="1")return r.o.p},set:function(n,i,s){if(i!=="1")throw new TypeError("props must be 1");return r.o.p=s,!0}})},enumerable:!1,configurable:!0}),e.prototype.copy=function(){return new e(this.o,this.h,this.container,this.iteratorType)},e}(s_),OP=function(t){a_(e,t);function e(r,n,i){r===void 0&&(r=[]);var s=t.call(this,n,i)||this,o=s;return r.forEach(function(a){o.setElement(a[0],a[1])}),s}return e.prototype.P=function(r){return IP(this,function(n){switch(n.label){case 0:return r===void 0?[2]:[5,um(this.P(r.K))];case 1:return n.sent(),[4,[r.u,r.p]];case 2:return n.sent(),[5,um(this.P(r.N))];case 3:return n.sent(),[2]}})},e.prototype.begin=function(){return new Er(this.h.K||this.h,this.h,this)},e.prototype.end=function(){return new Er(this.h,this.h,this)},e.prototype.rBegin=function(){return new Er(this.h.N||this.h,this.h,this,1)},e.prototype.rEnd=function(){return new Er(this.h,this.h,this,1)},e.prototype.front=function(){if(this.M!==0){var r=this.h.K;return[r.u,r.p]}},e.prototype.back=function(){if(this.M!==0){var r=this.h.N;return[r.u,r.p]}},e.prototype.lowerBound=function(r){var n=this.U(this.W,r);return new Er(n,this.h,this)},e.prototype.upperBound=function(r){var n=this.X(this.W,r);return new Er(n,this.h,this)},e.prototype.reverseLowerBound=function(r){var n=this.Y(this.W,r);return new Er(n,this.h,this)},e.prototype.reverseUpperBound=function(r){var n=this.Z(this.W,r);return new Er(n,this.h,this)},e.prototype.setElement=function(r,n,i){return this.v(r,n,i)},e.prototype.find=function(r){var n=this.g(this.W,r);return new Er(n,this.h,this)},e.prototype.getElementByKey=function(r){var n=this.g(this.W,r);return n.p},e.prototype.union=function(r){var n=this;return r.forEach(function(i){n.setElement(i[0],i[1])}),this.M},e.prototype[Symbol.iterator]=function(){return this.P(this.W)},e}(i_);const PP=OP;function xa(t){var e=typeof t;return e==="object"&&t!==null||e==="function"}var l_=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),u_=function(t){l_(e,t);function e(r,n,i){var s=t.call(this,i)||this;return s.o=r,s.h=n,s.iteratorType===0?(s.pre=function(){return this.o.L===this.h&&De(),this.o=this.o.L,this},s.next=function(){return this.o===this.h&&De(),this.o=this.o.m,this}):(s.pre=function(){return this.o.m===this.h&&De(),this.o=this.o.m,this},s.next=function(){return this.o===this.h&&De(),this.o=this.o.L,this}),s}return e}(ou),c_=function(t){l_(e,t);function e(){var r=t.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 e.prototype.G=function(r){var n=r.L,i=r.m;n.m=i,i.L=n,r===this.H&&(this.H=i),r===this.l&&(this.l=n),this.M-=1},e.prototype.v=function(r,n,i){i===void 0&&(i=xa(r));var s;if(i){var o=r[this.HASH_TAG];if(o!==void 0)return this._[o].p=n,this.M;Object.defineProperty(r,this.HASH_TAG,{value:this._.length,configurable:!0}),s={u:r,p:n,L:this.l,m:this.h},this._.push(s)}else{var a=this.I[r];if(a)return a.p=n,this.M;s={u:r,p:n,L:this.l,m:this.h},this.I[r]=s}return this.M===0?(this.H=s,this.h.m=s):this.l.m=s,this.l=s,this.h.L=s,++this.M},e.prototype.g=function(r,n){if(n===void 0&&(n=xa(r)),n){var i=r[this.HASH_TAG];return i===void 0?this.h:this._[i]}else return this.I[r]||this.h},e.prototype.clear=function(){var r=this.HASH_TAG;this._.forEach(function(n){delete n.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},e.prototype.eraseElementByKey=function(r,n){var i;if(n===void 0&&(n=xa(r)),n){var s=r[this.HASH_TAG];if(s===void 0)return!1;delete r[this.HASH_TAG],i=this._[s],delete this._[s]}else{if(i=this.I[r],i===void 0)return!1;delete this.I[r]}return this.G(i),!0},e.prototype.eraseElementByIterator=function(r){var n=r.o;return n===this.h&&De(),this.G(n),r.next()},e.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;for(var n=this.H;r--;)n=n.m;return this.G(n),this.M},e}(wh),f_=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),RP=globalThis&&globalThis.i||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]this.M-1)throw new RangeError;for(var n=this.H;r--;)n=n.m;return n.u},e.prototype.find=function(r,n){var i=this.g(r,n);return new vs(i,this.h,this)},e.prototype.forEach=function(r){for(var n=0,i=this.H;i!==this.h;)r(i.u,n++,this),i=i.m},e.prototype[Symbol.iterator]=function(){return(function(){var r;return RP(this,function(n){switch(n.label){case 0:r=this.H,n.label=1;case 1:return r===this.h?[3,3]:[4,r.u];case 2:return n.sent(),r=r.m,[3,1];case 3:return[2]}})}).bind(this)()},e}(c_);const NP=LP;var d_=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),$P=globalThis&&globalThis.i||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]this.M-1)throw new RangeError;for(var n=this.H;r--;)n=n.m;return[n.u,n.p]},e.prototype.find=function(r,n){var i=this.g(r,n);return new Es(i,this.h,this)},e.prototype.forEach=function(r){for(var n=0,i=this.H;i!==this.h;)r([i.u,i.p],n++,this),i=i.m},e.prototype[Symbol.iterator]=function(){return(function(){var r;return $P(this,function(n){switch(n.label){case 0:r=this.H,n.label=1;case 1:return r===this.h?[3,3]:[4,[r.u,r.p]];case 2:return n.sent(),r=r.m,[3,1];case 3:return[2]}})}).bind(this)()},e}(c_);const DP=kP,BP=Object.freeze(Object.defineProperty({__proto__:null,Deque:bP,HashMap:DP,HashSet:NP,LinkList:pP,OrderedMap:PP,OrderedSet:CP,PriorityQueue:iP,Queue:tP,Stack:JO,Vector:fP},Symbol.toStringTag,{value:"Module"})),FP=Ll(BP),UP=FP.OrderedSet,or=Vr("number-allocator:trace"),jP=Vr("number-allocator:error");function lt(t,e){this.low=t,this.high=e}lt.prototype.equals=function(t){return this.low===t.low&&this.high===t.high};lt.prototype.compare=function(t){return this.lowr.compare(n)),or("Create"),this.clear()}mr.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low};mr.prototype.alloc=function(){if(this.ss.size()===0)return or("alloc():empty"),null;const t=this.ss.begin(),e=t.pointer.low,r=t.pointer.high,n=e;return n+1<=r?this.ss.updateKeyByIterator(t,new lt(e+1,r)):this.ss.eraseElementByPos(0),or("alloc():"+n),n};mr.prototype.use=function(t){const e=new lt(t,t),r=this.ss.lowerBound(e);if(!r.equals(this.ss.end())){const n=r.pointer.low,i=r.pointer.high;return r.pointer.equals(e)?(this.ss.eraseElementByIterator(r),or("use():"+t),!0):n>t?!1:n===t?(this.ss.updateKeyByIterator(r,new lt(n+1,i)),or("use():"+t),!0):i===t?(this.ss.updateKeyByIterator(r,new lt(n,i-1)),or("use():"+t),!0):(this.ss.updateKeyByIterator(r,new lt(t+1,i)),this.ss.insert(new lt(n,t-1)),or("use():"+t),!0)}return or("use():failed"),!1};mr.prototype.free=function(t){if(tthis.max){jP("free():"+t+" is out of range");return}const e=new lt(t,t),r=this.ss.upperBound(e);if(r.equals(this.ss.end())){if(r.equals(this.ss.begin())){this.ss.insert(e);return}r.pre();const n=r.pointer.high;r.pointer.high+1===t?this.ss.updateKeyByIterator(r,new lt(n,t)):this.ss.insert(e)}else if(r.equals(this.ss.begin()))if(t+1===r.pointer.low){const n=r.pointer.high;this.ss.updateKeyByIterator(r,new lt(t,n))}else this.ss.insert(e);else{const n=r.pointer.low,i=r.pointer.high;r.pre();const s=r.pointer.low;r.pointer.high+1===t?t+1===n?(this.ss.eraseElementByIterator(r),this.ss.updateKeyByIterator(r,new lt(s,i))):this.ss.updateKeyByIterator(r,new lt(s,t)):t+1===n?(this.ss.eraseElementByIterator(r.next()),this.ss.insert(new lt(t,i))):this.ss.insert(e)}or("free():"+t)};mr.prototype.clear=function(){or("clear()"),this.ss.clear(),this.ss.insert(new lt(this.min,this.max))};mr.prototype.intervalCount=function(){return this.ss.size()};mr.prototype.dump=function(){console.log("length:"+this.ss.size());for(const t of this.ss)console.log(t)};var zP=mr;const HP=zP;yh.NumberAllocator=HP;var WP=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ph,"__esModule",{value:!0});const VP=WP(KO),qP=yh;class YP{constructor(e){e>0&&(this.aliasToTopic=new VP.default({max:e}),this.topicToAlias={},this.numberAllocator=new qP.NumberAllocator(1,e),this.max=e,this.length=0)}put(e,r){if(r===0||r>this.max)return!1;const n=this.aliasToTopic.get(r);return n&&delete this.topicToAlias[n],this.aliasToTopic.set(r,e),this.topicToAlias[e]=r,this.numberAllocator.use(r),this.length=this.aliasToTopic.size,!0}getTopicByAlias(e){return this.aliasToTopic.get(e)}getAliasByTopic(e){const r=this.topicToAlias[e];return typeof r<"u"&&this.aliasToTopic.get(r),r}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){const e=this.numberAllocator.firstVacant();return e||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}}ph.default=YP;var KP=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hh,"__esModule",{value:!0});const GP=To,XP=KP(ph),QP=Dr,JP=(t,e)=>{t.log("_handleConnack");const{options:r}=t,i=r.protocolVersion===5?e.reasonCode:e.returnCode;if(clearTimeout(t.connackTimer),delete t.topicAliasSend,e.properties){if(e.properties.topicAliasMaximum){if(e.properties.topicAliasMaximum>65535){t.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}e.properties.topicAliasMaximum>0&&(t.topicAliasSend=new XP.default(e.properties.topicAliasMaximum))}e.properties.serverKeepAlive&&r.keepalive&&(r.keepalive=e.properties.serverKeepAlive,t._shiftPingInterval()),e.properties.maximumPacketSize&&(r.properties||(r.properties={}),r.properties.maximumPacketSize=e.properties.maximumPacketSize)}if(i===0)t.reconnecting=!1,t._onConnect(e);else if(i>0){const s=new QP.ErrorWithReasonCode(`Connection refused: ${GP.ReasonCodes[i]}`,i);t.emit("error",s)}};hh.default=JP;var _h={};Object.defineProperty(_h,"__esModule",{value:!0});const ZP=(t,e,r)=>{t.log("handling pubrel packet");const n=typeof r<"u"?r:t.noop,{messageId:i}=e,s={cmd:"pubcomp",messageId:i};t.incomingStore.get(e,(o,a)=>{o?t._sendPacket(s,n):(t.emit("message",a.topic,a.payload,a),t.handleMessage(a,l=>{if(l)return n(l);t.incomingStore.del(a,t.noop),t._sendPacket(s,n)}))})};_h.default=ZP;var Ao=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(uh,"__esModule",{value:!0});const eR=Ao(ch),tR=Ao(fh),rR=Ao(hh),nR=Ao(To),iR=Ao(_h),sR=(t,e,r)=>{const{options:n}=t;if(n.protocolVersion===5&&n.properties&&n.properties.maximumPacketSize&&n.properties.maximumPacketSize{setTimeout(t,0)},_c=xe.setImmediate||((...t)=>{const e=t.shift();kf(()=>{e(...t)})}),dm={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0},bR=["ECONNREFUSED","EADDRINUSE","ECONNRESET","ENOTFOUND","ETIMEDOUT"];class vh extends wR.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(e,r){super(),this.options=r||{};for(const n in dm)typeof this.options[n]>"u"?this.options[n]=dm[n]:this.options[n]=r[n];this.log=this.options.log||(0,mR.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: options.protocol",r.protocol),this.log("MqttClient :: options.protocolVersion",r.protocolVersion),this.log("MqttClient :: options.username",r.username),this.log("MqttClient :: options.keepalive",r.keepalive),this.log("MqttClient :: options.reconnectPeriod",r.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",r.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",r.properties?r.properties.topicAliasMaximum:void 0),this.options.clientId=typeof r.clientId=="string"?r.clientId:vh.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=r.protocolVersion===5&&r.customHandleAcks?r.customHandleAcks:(...n)=>{n[3](null,0)},this.options.writeCache||(bc.default.writeToStream.cacheNumbers=!1),this.streamBuilder=e,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new hR.default:this.options.messageIdProvider,this.outgoingStore=r.outgoingStore||new Xo.default,this.incomingStore=r.incomingStore||new Xo.default,this.queueQoSZero=r.queueQoSZero===void 0?!0:r.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,r.properties&&r.properties.topicAliasMaximum>0&&(r.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new dR.default(r.properties.topicAliasMaximum)),this.on("connect",()=>{const{queue:n}=this,i=()=>{const s=n.shift();this.log("deliver :: entry %o",s);let o=null;if(!s){this._resubscribe();return}o=s.packet,this.log("deliver :: call _sendPacket for %o",o);let a=!0;o.messageId&&o.messageId!==0&&(this.messageIdProvider.register(o.messageId)||(a=!1)),a?this._sendPacket(o,l=>{s.cb&&s.cb(l),i()}):(this.log("messageId: %d has already used. The message is skipped and removed.",o.messageId),i())};this.log("connect :: sending queued packets"),i()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this.log("close :: clearing ping timer"),this.pingTimer!==null&&(this.pingTimer.clear(),this.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(e,r){r()}handleMessage(e,r){r()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var e;const r=new pR.Writable,n=bc.default.parser(this.options);let i=null;const s=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),n.on("packet",c=>{this.log("parser :: on packet push to packets array."),s.push(c)});const o=()=>{this.log("work :: getting next packet in queue");const c=s.shift();if(c)this.log("work :: packet pulled from queue"),(0,yR.default)(this,c,a);else{this.log("work :: no packets in queue");const f=i;i=null,this.log("work :: done flag is %s",!!f),f&&f()}},a=()=>{if(s.length)kf(o);else{const c=i;i=null,c()}};r._write=(c,f,d)=>{i=d,this.log("writable stream :: parsing buffer"),n.parse(c),o()};const l=c=>{this.log("streamErrorHandler :: error",c.message),bR.includes(c.code)?(this.log("streamErrorHandler :: emitting error"),this.emit("error",c)):this.noop(c)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(r),this.stream.on("error",l),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");const u={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(u.will=Object.assign(Object.assign({},this.options.will),{payload:(e=this.options.will)===null||e===void 0?void 0:e.payload})),this.topicAliasRecv&&(u.properties||(u.properties={}),this.topicAliasRecv&&(u.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(u),n.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){const c=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(c)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this._cleanUp(!0)},this.options.connectTimeout),this}publish(e,r,n,i){this.log("publish :: message `%s` to topic `%s`",r,e);const{options:s}=this;typeof n=="function"&&(i=n,n=null),n=n||{},n=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),n);const{qos:a,retain:l,dup:u,properties:c,cbStorePut:f}=n;if(this._checkDisconnecting(i))return this;const d=()=>{let h=0;if((a===1||a===2)&&(h=this._nextId(),h===null))return this.log("No messageId left"),!1;const g={cmd:"publish",topic:e,payload:r,qos:a,retain:l,messageId:h,dup:u};switch(s.protocolVersion===5&&(g.properties=c),this.log("publish :: qos",a),a){case 1:case 2:this.outgoing[g.messageId]={volatile:!1,cb:i||this.noop},this.log("MqttClient:publish: packet cmd: %s",g.cmd),this._sendPacket(g,void 0,f);break;default:this.log("MqttClient:publish: packet cmd: %s",g.cmd),this._sendPacket(g,i,f);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!d())&&this._storeProcessingQueue.push({invoke:d,cbStorePut:n.cbStorePut,callback:i}),this}publishAsync(e,r,n){return new Promise((i,s)=>{this.publish(e,r,n,(o,a)=>{o?s(o):i(a)})})}subscribe(e,r,n){const i=this.options.protocolVersion;typeof r=="function"&&(n=r),n=n||this.noop;let s=!1,o=[];typeof e=="string"?(e=[e],o=e):Array.isArray(e)?o=e:typeof e=="object"&&(s=e.resubscribe,delete e.resubscribe,o=Object.keys(e));const a=fm.validateTopics(o);if(a!==null)return _c(n,new Error(`Invalid topic ${a}`)),this;if(this._checkDisconnecting(n))return this.log("subscribe: discconecting true"),this;const l={qos:0};i===5&&(l.nl=!1,l.rap=!1,l.rh=0),r=Object.assign(Object.assign({},l),r);const u=r.properties,c=[],f=(h,g)=>{if(g=g||r,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,h)||this._resubscribeTopics[h].qos{this.log("subscribe: array topic %s",h),f(h)}):Object.keys(e).forEach(h=>{this.log("subscribe: object topic %s, %o",h,e[h]),f(h,e[h])}),!c.length)return n(null,[]),this;const d=()=>{const h=this._nextId();if(h===null)return this.log("No messageId left"),!1;const g={cmd:"subscribe",subscriptions:c,messageId:h};if(u&&(g.properties=u),this.options.resubscribe){this.log("subscribe :: resubscribe true");const y=[];c.forEach(b=>{if(this.options.reconnectPeriod>0){const E={qos:b.qos};i===5&&(E.nl=b.nl||!1,E.rap=b.rap||!1,E.rh=b.rh||0,E.properties=b.properties),this._resubscribeTopics[b.topic]=E,y.push(b.topic)}}),this.messageIdToTopic[g.messageId]=y}return this.outgoing[g.messageId]={volatile:!0,cb(y,b){if(!y){const{granted:E}=b;for(let _=0;_0||!d())&&this._storeProcessingQueue.push({invoke:d,callback:n}),this}subscribeAsync(e,r){return new Promise((n,i)=>{this.subscribe(e,r,(s,o)=>{s?i(s):n(o)})})}unsubscribe(e,r,n){typeof e=="string"&&(e=[e]),typeof r=="function"&&(n=r),n=n||this.noop;const i=fm.validateTopics(e);if(i!==null)return _c(n,new Error(`Invalid topic ${i}`)),this;if(this._checkDisconnecting(n))return this;const s=()=>{const o=this._nextId();if(o===null)return this.log("No messageId left"),!1;const a={cmd:"unsubscribe",messageId:o,unsubscriptions:[]};return typeof e=="string"?a.unsubscriptions=[e]:Array.isArray(e)&&(a.unsubscriptions=e),this.options.resubscribe&&a.unsubscriptions.forEach(l=>{delete this._resubscribeTopics[l]}),typeof r=="object"&&r.properties&&(a.properties=r.properties),this.outgoing[a.messageId]={volatile:!0,cb:n},this.log("unsubscribe: call _sendPacket"),this._sendPacket(a),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!s())&&this._storeProcessingQueue.push({invoke:s,callback:n}),this}unsubscribeAsync(e,r){return new Promise((n,i)=>{this.unsubscribe(e,r,(s,o)=>{s?i(s):n(o)})})}end(e,r,n){this.log("end :: (%s)",this.options.clientId),(e==null||typeof e!="boolean")&&(n=n||r,r=e,e=!1),typeof r!="object"&&(n=n||r,r=null),this.log("end :: cb? %s",!!n),(!n||typeof n!="function")&&(n=this.noop);const i=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(o=>{this.outgoingStore.close(a=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),n){const l=o||a;this.log("end :: closeStores: invoking callback with args"),n(l)}})}),this._deferredReconnect&&this._deferredReconnect()},s=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,e),this._cleanUp(e,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),kf(i)},r)};return this.disconnecting?(n(),this):(this._clearReconnect(),this.disconnecting=!0,!e&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,s,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),s()),this)}endAsync(e,r){return new Promise((n,i)=>{this.end(e,r,s=>{s?i(s):n()})})}removeOutgoingMessage(e){if(this.outgoing[e]){const{cb:r}=this.outgoing[e];this._removeOutgoingAndStoreMessage(e,()=>{r(new Error("Message removed"))})}return this}reconnect(e){this.log("client reconnect");const r=()=>{e?(this.options.incomingStore=e.incomingStore,this.options.outgoingStore=e.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new Xo.default,this.outgoingStore=this.options.outgoingStore||new Xo.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=r:r(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(e=>{this.outgoing[e].volatile&&typeof this.outgoing[e].cb=="function"&&(this.outgoing[e].cb(new Error("Connection closed")),delete this.outgoing[e])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(e=>{typeof this.outgoing[e].cb=="function"&&(this.outgoing[e].cb(new Error("Connection closed")),delete this.outgoing[e])}))}_removeTopicAliasAndRecoverTopicName(e){let r;e.properties&&(r=e.properties.topicAlias);let n=e.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",r,n),n.length===0){if(typeof r>"u")return new Error("Unregistered Topic Alias");if(n=this.topicAliasSend.getTopicByAlias(r),typeof n>"u")return new Error("Unregistered Topic Alias");e.topic=n}r&&delete e.properties.topicAlias}_checkDisconnecting(e){return this.disconnecting&&(e&&e!==this.noop?e(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(e,r,n={}){if(r&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",r)),this.log("_cleanUp :: forced? %s",e),e)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{const i=Object.assign({cmd:"disconnect"},n);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(i,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),_c(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}this.disconnecting||(this.log("_cleanUp :: client not disconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this.pingTimer!==null&&(this.log("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),r&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",r),r())}_storeAndSend(e,r,n){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",e.cmd);let i=e,s;if(i.cmd==="publish"&&(i=(0,cm.default)(e),s=this._removeTopicAliasAndRecoverTopicName(i),s))return r&&r(s);this.outgoingStore.put(i,o=>{if(o)return r&&r(o);n(),this._writePacket(e,r)})}_applyTopicAlias(e){if(this.options.protocolVersion===5&&e.cmd==="publish"){let r;e.properties&&(r=e.properties.topicAlias);const n=e.topic.toString();if(this.topicAliasSend)if(r){if(n.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",n,r),!this.topicAliasSend.put(n,r)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",n,r),new Error("Sending Topic Alias out of range")}else n.length!==0&&(this.options.autoAssignTopicAlias?(r=this.topicAliasSend.getAliasByTopic(n),r?(e.topic="",e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:r}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",n,r)):(r=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(n,r),e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:r}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",n,r))):this.options.autoUseTopicAlias&&(r=this.topicAliasSend.getAliasByTopic(n),r&&(e.topic="",e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:r}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",n,r))));else if(r)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",n,r),new Error("Sending Topic Alias out of range")}}_noop(e){this.log("noop ::",e)}_writePacket(e,r){this.log("_writePacket :: packet: %O",e),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",e),this._shiftPingInterval(),this.log("_writePacket :: writing to stream");const n=bc.default.writeToStream(e,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",n),!n&&r&&r!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",r)):r&&(this.log("_writePacket :: invoking cb"),r())}_sendPacket(e,r,n,i){this.log("_sendPacket :: (%s) :: start",this.options.clientId),n=n||this.noop,r=r||this.noop;const s=this._applyTopicAlias(e);if(s){r(s);return}if(!this.connected){if(e.cmd==="auth"){this._writePacket(e,r);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(e,r,n);return}if(i){this._writePacket(e,r);return}switch(e.cmd){case"publish":break;case"pubrel":this._storeAndSend(e,r,n);return;default:this._writePacket(e,r);return}switch(e.qos){case 2:case 1:this._storeAndSend(e,r,n);break;case 0:default:this._writePacket(e,r);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(e,r,n){this.log("_storePacket :: packet: %o",e),this.log("_storePacket :: cb? %s",!!r),n=n||this.noop;let i=e;if(i.cmd==="publish"){i=(0,cm.default)(e);const o=this._removeTopicAliasAndRecoverTopicName(i);if(o)return r&&r(o)}const s=i.qos||0;s===0&&this.queueQoSZero||i.cmd!=="publish"?this.queue.push({packet:i,cb:r}):s>0?(r=this.outgoing[i.messageId]?this.outgoing[i.messageId].cb:null,this.outgoingStore.put(i,o=>{if(o)return r&&r(o);n()})):r&&r(new Error("No connection to broker"))}_setupPingTimer(){this.log("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive),!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=(0,gR.default)(()=>{this._checkPing()},this.options.keepalive*1e3))}_shiftPingInterval(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(this.options.keepalive*1e3)}_checkPing(){this.log("_checkPing :: checking ping..."),this.pingResp?(this.log("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(this.log("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))}_resubscribe(){this.log("_resubscribe");const e=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&e.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let r=0;r{let n=this.outgoingStore.createStream();const i=()=>{n.destroy(),n=null,this._flushStoreProcessingQueue(),s()},s=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",i),n.on("error",a=>{s(),this._flushStoreProcessingQueue(),this.removeListener("close",i),this.emit("error",a)});const o=()=>{if(!n)return;const a=n.read(1);let l;if(!a){n.once("readable",o);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[a.messageId]){o();return}!this.disconnecting&&!this.reconnectTimer?(l=this.outgoing[a.messageId]?this.outgoing[a.messageId].cb:null,this.outgoing[a.messageId]={volatile:!1,cb(u,c){l&&l(u,c),o()}},this._packetIdsDuringStoreProcessing[a.messageId]=!0,this.messageIdProvider.register(a.messageId)?this._sendPacket(a,void 0,void 0,!0):this.log("messageId: %d has already used.",a.messageId)):n.destroy&&n.destroy()};n.on("end",()=>{let a=!0;for(const l in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[l]){a=!1;break}a?(s(),this.removeListener("close",i),this._invokeAllStoreProcessingQueue(),this.emit("connect",e)):r()}),o()};r()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){const e=this._storeProcessingQueue[0];if(e&&e.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){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)}_removeOutgoingAndStoreMessage(e,r){delete this.outgoing[e],this.outgoingStore.del({messageId:e},(n,i)=>{r(n,i),this.messageIdProvider.deallocate(e),this._invokeStoreProcessingQueue()})}}ao.default=vh;var Eh={};Object.defineProperty(Eh,"__esModule",{value:!0});const _R=yh;class vR{constructor(){this.numberAllocator=new _R.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(e){return this.numberAllocator.use(e)}deallocate(e){this.numberAllocator.free(e)}clear(){this.numberAllocator.clear()}}Eh.default=vR;var Mo={};const vc=2147483647,Ks=36,p_=1,Df=26,ER=38,SR=700,xR=72,TR=128,AR="-",MR=/[^\0-\x7F]/,CR=/[\x2E\u3002\uFF0E\uFF61]/g,IR={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ec=Ks-p_,vi=Math.floor,Sc=String.fromCharCode;function hm(t){throw new RangeError(IR[t])}function OR(t,e){const r=[];let n=t.length;for(;n--;)r[n]=e(t[n]);return r}function PR(t,e){const r=t.split("@");let n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(CR,".");const i=t.split("."),s=OR(i,e).join(".");return n+s}function RR(t){const e=[];let r=0;const n=t.length;for(;r=55296&&i<=56319&&r>1,t+=vi(t/e);t>Ec*Df>>1;n+=Ks)t=vi(t/Ec);return vi(n+(Ec+1)*t/(t+ER))},NR=function(t){const e=[];t=RR(t);const r=t.length;let n=TR,i=0,s=xR;for(const l of t)l<128&&e.push(Sc(l));const o=e.length;let a=o;for(o&&e.push(AR);a=n&&cvi((vc-i)/u)&&hm("overflow"),i+=(l-n)*u,n=l;for(const c of t)if(cvc&&hm("overflow"),c===n){let f=i;for(let d=Ks;;d+=Ks){const h=d<=s?p_:d>=s+Df?Df:d-s;if(f0&&a>o&&(a=o);for(var l=0;l=0?(f=u.substr(0,c),d=u.substr(c+1)):(f=u,d=""),h=decodeURIComponent(f),g=decodeURIComponent(d),kR(i,h)?g_(i[h])?i[h].push(g):i[h]=[i[h],g]:i[h]=g}return i}const FR={parse:Co,resolve:w_,resolveObject:b_,format:y_,Url:Gt};function Gt(){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 UR=/^([a-z0-9.+-]+:)/i,jR=/:[0-9]*$/,zR=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,HR=["<",">",'"',"`"," ","\r",` -`," "],WR=["{","}","|","\\","^","`"].concat(HR),Bf=["'"].concat(WR),ym=["%","/","?",";","#"].concat(Bf),wm=["/","?","#"],VR=255,bm=/^[+a-z0-9A-Z_-]{0,63}$/,qR=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,YR={javascript:!0,"javascript:":!0},Ff={javascript:!0,"javascript:":!0},Ni={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Co(t,e,r){if(t&&Wr(t)&&t instanceof Gt)return t;var n=new Gt;return n.parse(t,e,r),n}Gt.prototype.parse=function(t,e,r){return m_(this,t,e,r)};function m_(t,e,r,n){if(!yn(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=i!==-1&&i127?$+="x":$+=I[F];if(!$.match(bm)){var U=M.slice(0,h),k=M.slice(h+1),W=I.match(qR);W&&(U.push(W[1]),k.unshift(W[2])),k.length&&(l="/"+k.join(".")+l),t.hostname=U.join(".");break}}}}t.hostname.length>VR?t.hostname="":t.hostname=t.hostname.toLowerCase(),T||(t.hostname=$R(t.hostname)),b=t.port?":"+t.port:"";var D=t.hostname||"";t.host=D+b,t.href+=t.host,T&&(t.hostname=t.hostname.substr(1,t.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!YR[f])for(h=0,y=Bf.length;h0?r.host.split("@"):!1,M&&(r.auth=M.shift(),r.host=r.hostname=M.shift())),r.search=t.search,r.query=t.query,(!Cr(r.pathname)||!Cr(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!v.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var I=v.slice(-1)[0],$=(r.host||t.host||v.length>1)&&(I==="."||I==="..")||I==="",F=0,L=v.length;L>=0;L--)I=v[L],I==="."?v.splice(L,1):I===".."?(v.splice(L,1),F++):F&&(v.splice(L,1),F--);if(!E&&!_)for(;F--;F)v.unshift("..");E&&v[0]!==""&&(!v[0]||v[0].charAt(0)!=="/")&&v.unshift(""),$&&v.join("/").substr(-1)!=="/"&&v.push("");var U=v[0]===""||v[0]&&v[0].charAt(0)==="/";return T&&(r.hostname=r.host=U?"":v.length?v.shift():"",M=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1,M&&(r.auth=M.shift(),r.host=r.hostname=M.shift())),E=E||r.host&&v.length,E&&!U&&v.unshift(""),v.length?r.pathname=v.join("/"):(r.pathname=null,r.path=null),(!Cr(r.pathname)||!Cr(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r};Gt.prototype.parseHost=function(){return __(this)};function __(t){var e=t.host,r=jR.exec(e);r&&(r=r[0],r!==":"&&(t.port=r.substr(1)),e=e.substr(0,e.length-r.length)),e&&(t.hostname=e)}const KR=Object.freeze(Object.defineProperty({__proto__:null,Url:Gt,default:FR,format:y_,parse:Co,resolve:w_,resolveObject:b_},Symbol.toStringTag,{value:"Module"})),GR=Ll(KR);var uu={};Object.defineProperty(uu,"__esModule",{value:!0});const XR=typeof window<"u"&&typeof window.document<"u";uu.default=XR;var Qo={};const QR={},JR=Object.freeze(Object.defineProperty({__proto__:null,default:QR},Symbol.toStringTag,{value:"Module"})),Uf=Ll(JR);var _m;function vm(){if(_m)return Qo;_m=1;var t=xe&&xe.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Qo,"__esModule",{value:!0});const e=t(Uf),n=(0,t(Vr).default)("mqttjs:tcp"),i=(s,o)=>{o.port=o.port||1883,o.hostname=o.hostname||o.host||"localhost";const{port:a}=o,l=o.hostname;return n("port %d and host %s",a,l),e.default.createConnection(a,l)};return Qo.default=i,Qo}var Jo={},Em;function Sm(){if(Em)return Jo;Em=1;var t=xe&&xe.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Jo,"__esModule",{value:!0});const e=t(Uf),r=t(Uf),i=(0,t(Vr).default)("mqttjs:tls"),s=(o,a)=>{a.port=a.port||8883,a.host=a.hostname||a.host||"localhost",r.default.isIP(a.host)===0&&(a.servername=a.host),a.rejectUnauthorized=a.rejectUnauthorized!==!1,delete a.path,i("port %d host %s rejectUnauthorized %b",a.port,a.host,a.rejectUnauthorized);const l=e.default.connect(a);l.on("secureConnect",()=>{a.rejectUnauthorized&&!l.authorized?l.emit("error",new Error("TLS not authorized")):l.removeListener("error",u)});function u(c){a.rejectUnauthorized&&o.emit("error",c),l.end()}return l.on("error",u),l};return Jo.default=s,Jo}var Zo={},xh={exports:{}},ZR=v_;function v_(t,e){if(t&&e)return v_(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i{i.send({data:h.buffer,success(){y()},fail(b){y(new Error(b))}})},d._flush=h=>{i.close({success(){h()}})},d}function l(d){d.hostname||(d.hostname="localhost"),d.path||(d.path="/"),d.wsOptions||(d.wsOptions={})}function u(d,h){const g=d.protocol==="wxs"?"wss":"ws";let y=`${g}://${d.hostname}${d.path}`;return d.port&&d.port!==80&&d.port!==443&&(y=`${g}://${d.hostname}:${d.port}${d.path}`),typeof d.transformWsUrl=="function"&&(y=d.transformWsUrl(y,d,h)),y}function c(){i.onOpen(()=>{o.setReadable(s),o.setWritable(s),o.emit("connect")}),i.onMessage(d=>{let{data:h}=d;h instanceof ArrayBuffer?h=e.Buffer.from(h):h=e.Buffer.from(h,"utf8"),s.push(h)}),i.onClose(()=>{o.emit("close"),o.end(),o.destroy()}),i.onError(d=>{o.destroy(new Error(d.errMsg))})}const f=(d,h)=>{if(h.hostname=h.hostname||h.host,!h.hostname)throw new Error("Could not determine host. Specify host manually.");const g=h.protocolId==="MQIsdp"&&h.protocolVersion===3?"mqttv3.1":"mqtt";l(h);const y=u(h,d);i=wx.connectSocket({url:y,protocols:[g]}),s=a(),o=n.default.obj(),o._destroy=(E,_)=>{i.close({success(){_&&_(E)}})};const b=o.destroy;return o.destroy=()=>{o.destroy=b,setTimeout(()=>{i.close({fail(){o._destroy(new Error)}})},0)},c(),o};return Zo.default=f,Zo}var ea={},Am;function Mm(){if(Am)return ea;Am=1;var t=xe&&xe.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(ea,"__esModule",{value:!0});const e=We,r=xo,n=t(Th);let i,s,o,a=!1;function l(){const h=new r.Transform;return h._write=(g,y,b)=>{i.sendSocketMessage({data:g.buffer,success(){b()},fail(){b(new Error)}})},h._flush=g=>{i.closeSocket({success(){g()}})},h}function u(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})}function c(h,g){const y=h.protocol==="alis"?"wss":"ws";let b=`${y}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(b=`${y}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(b=h.transformWsUrl(b,h,g)),b}function f(){a||(a=!0,i.onSocketOpen(()=>{o.setReadable(s),o.setWritable(s),o.emit("connect")}),i.onSocketMessage(h=>{if(typeof h.data=="string"){const g=e.Buffer.from(h.data,"base64");s.push(g)}else{const g=new FileReader;g.addEventListener("load",()=>{let y=g.result;y instanceof ArrayBuffer?y=e.Buffer.from(y):y=e.Buffer.from(y,"utf8"),s.push(y)}),g.readAsArrayBuffer(h.data)}}),i.onSocketClose(()=>{o.end(),o.destroy()}),i.onSocketError(h=>{o.destroy(h)}))}const d=(h,g)=>{if(g.hostname=g.hostname||g.host,!g.hostname)throw new Error("Could not determine host. Specify host manually.");const y=g.protocolId==="MQIsdp"&&g.protocolVersion===3?"mqttv3.1":"mqtt";u(g);const b=c(g,h);return i=g.my,i.connectSocket({url:b,protocols:y}),s=l(),o=n.default.obj(),f(),o};return ea.default=d,ea}var fu={},gL=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")},du=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(fu,"__esModule",{value:!0});const xs=We,C_=du(gL),mL=du(Vr),yL=du(Th),wL=xo,I_=du(uu),Gs=(0,mL.default)("mqttjs:ws"),bL=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function O_(t,e){let r=`${t.protocol}://${t.hostname}:${t.port}${t.path}`;return typeof t.transformWsUrl=="function"&&(r=t.transformWsUrl(r,t,e)),r}function P_(t){const e=t;return t.hostname||(e.hostname="localhost"),t.port||(t.protocol==="wss"?e.port=443:e.port=80),t.path||(e.path="/"),t.wsOptions||(e.wsOptions={}),!I_.default&&t.protocol==="wss"&&bL.forEach(r=>{Object.prototype.hasOwnProperty.call(t,r)&&!Object.prototype.hasOwnProperty.call(t.wsOptions,r)&&(e.wsOptions[r]=t[r])}),e}function _L(t){const e=P_(t);if(e.hostname||(e.hostname=e.host),!e.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");const r=new URL(document.URL);e.hostname=r.hostname,e.port||(e.port=Number(r.port))}return e.objectMode===void 0&&(e.objectMode=!(e.binary===!0||e.binary===void 0)),e}function vL(t,e,r){Gs("createWebSocket"),Gs(`protocol: ${r.protocolId} ${r.protocolVersion}`);const n=r.protocolId==="MQIsdp"&&r.protocolVersion===3?"mqttv3.1":"mqtt";Gs(`creating new Websocket for url: ${e} and protocol: ${n}`);let i;return r.createWebsocket?i=r.createWebsocket(e,[n],r):i=new C_.default(e,[n],r.wsOptions),i}function EL(t,e){const r=e.protocolId==="MQIsdp"&&e.protocolVersion===3?"mqttv3.1":"mqtt",n=O_(e,t);let i;return e.createWebsocket?i=e.createWebsocket(n,[r],e):i=new WebSocket(n,[r]),i.binaryType="arraybuffer",i}const SL=(t,e)=>{Gs("streamBuilder");const r=P_(e),n=O_(r,t),i=vL(t,n,r),s=C_.default.createWebSocketStream(i,r.wsOptions);return s.url=n,i.on("close",()=>{s.destroy()}),s},xL=(t,e)=>{Gs("browserStreamBuilder");let r;const i=_L(e).browserBufferSize||1024*512,s=e.browserBufferTimeout||1e3,o=!e.objectMode,a=EL(t,e),l=c(e,b,E);e.objectMode||(l._writev=y),l.on("close",()=>{a.close()});const u=typeof a.addEventListener<"u";a.readyState===a.OPEN?r=l:(r=(0,yL.default)(void 0,void 0,e),e.objectMode||(r._writev=y),u?a.addEventListener("open",f):a.onopen=f),r.socket=a,u?(a.addEventListener("close",d),a.addEventListener("error",h),a.addEventListener("message",g)):(a.onclose=d,a.onerror=h,a.onmessage=g);function c(_,v,T){const M=new wL.Transform({objectMode:_.objectMode});return M._write=v,M._flush=T,M}function f(){r.setReadable(l),r.setWritable(l),r.emit("connect")}function d(){r.end(),r.destroy()}function h(_){r.destroy(_)}function g(_){let{data:v}=_;v instanceof ArrayBuffer?v=xs.Buffer.from(v):v=xs.Buffer.from(v,"utf8"),l.push(v)}function y(_,v){const T=new Array(_.length);for(let M=0;M<_.length;M++)typeof _[M].chunk=="string"?T[M]=xs.Buffer.from(_[M],"utf8"):T[M]=_[M].chunk;this._write(xs.Buffer.concat(T),"binary",v)}function b(_,v,T){a.bufferedAmount>i&&setTimeout(b,s,_,v,T),o&&typeof _=="string"&&(_=xs.Buffer.from(_,"utf8"));try{a.send(_)}catch(M){return T(M)}T()}function E(_){a.close(),_()}return r};fu.default=I_.default?xL:SL;var hu=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Mo,"__esModule",{value:!0});Mo.connectAsync=void 0;const TL=hu(Vr),AL=hu(GR),ML=hu(ao),CL=hu(uu),Cm=(0,TL.default)("mqttjs"),at={};CL.default?(at.wx=Tm().default,at.wxs=Tm().default,at.ali=Mm().default,at.alis=Mm().default):(at.mqtt=vm().default,at.tcp=vm().default,at.ssl=Sm().default,at.tls=at.ssl,at.mqtts=Sm().default);at.ws=fu.default;at.wss=fu.default;function IL(t){let e;t.auth&&(e=t.auth.match(/^(.+):(.+)$/),e?(t.username=e[1],t.password=e[2]):t.username=t.auth)}function R_(t,e){if(Cm("connecting to an MQTT broker..."),typeof t=="object"&&!e&&(e=t,t=""),e=e||{},t&&typeof t=="string"){const i=AL.default.parse(t,!0);if(i.port!=null&&(i.port=Number(i.port)),e=Object.assign(Object.assign({},i),e),e.protocol===null)throw new Error("Missing protocol");e.protocol=e.protocol.replace(/:$/,"")}if(IL(e),e.query&&typeof e.query.clientId=="string"&&(e.clientId=e.query.clientId),e.cert&&e.key)if(e.protocol){if(["mqtts","wss","wxs","alis"].indexOf(e.protocol)===-1)switch(e.protocol){case"mqtt":e.protocol="mqtts";break;case"ws":e.protocol="wss";break;case"wx":e.protocol="wxs";break;case"ali":e.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${e.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(!at[e.protocol]){const i=["mqtts","wss"].indexOf(e.protocol)!==-1;e.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((s,o)=>i&&o%2===0?!1:typeof at[s]=="function")[0]}if(e.clean===!1&&!e.clientId)throw new Error("Missing clientId for unclean clients");e.protocol&&(e.defaultProtocol=e.protocol);function r(i){return e.servers&&((!i._reconnectCount||i._reconnectCount===e.servers.length)&&(i._reconnectCount=0),e.host=e.servers[i._reconnectCount].host,e.port=e.servers[i._reconnectCount].port,e.protocol=e.servers[i._reconnectCount].protocol?e.servers[i._reconnectCount].protocol:e.defaultProtocol,e.hostname=e.host,i._reconnectCount++),Cm("calling streambuilder for",e.protocol),at[e.protocol](i,e)}const n=new ML.default(r,e);return n.on("error",()=>{}),n}function OL(t,e,r=!0){return new Promise((n,i)=>{const s=R_(t,e),o={connect:l=>{a(),n(s)},end:()=>{a(),n(s)},error:l=>{a(),s.end(),i(l)}};r===!1&&(o.close=()=>{o.error(new Error("Couldn't connect to server"))});function a(){Object.keys(o).forEach(l=>{s.off(l,o[l])})}Object.keys(o).forEach(l=>{s.on(l,o[l])})})}Mo.connectAsync=OL;Mo.default=R_;(function(t){var e=xe&&xe.__createBinding||(Object.create?function(d,h,g,y){y===void 0&&(y=g);var b=Object.getOwnPropertyDescriptor(h,g);(!b||("get"in b?!h.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return h[g]}}),Object.defineProperty(d,y,b)}:function(d,h,g,y){y===void 0&&(y=g),d[y]=h[g]}),r=xe&&xe.__setModuleDefault||(Object.create?function(d,h){Object.defineProperty(d,"default",{enumerable:!0,value:h})}:function(d,h){d.default=h}),n=xe&&xe.__importStar||function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var g in d)g!=="default"&&Object.prototype.hasOwnProperty.call(d,g)&&e(h,d,g);return r(h,d),h},i=xe&&xe.__exportStar||function(d,h){for(var g in d)g!=="default"&&!Object.prototype.hasOwnProperty.call(h,g)&&e(h,d,g)},s=xe&&xe.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReasonCodes=t.UniqueMessageIdProvider=t.DefaultMessageIdProvider=t.Store=t.MqttClient=t.connectAsync=t.connect=t.Client=void 0;const o=s(ao);t.MqttClient=o.default;const a=s(ql);t.DefaultMessageIdProvider=a.default;const l=s(Eh);t.UniqueMessageIdProvider=l.default;const u=s(iu);t.Store=u.default;const c=n(Mo);t.connect=c.default,Object.defineProperty(t,"connectAsync",{enumerable:!0,get:function(){return c.connectAsync}}),t.Client=o.default,i(ao,t),i(Dr,t);var f=To;Object.defineProperty(t,"ReasonCodes",{enumerable:!0,get:function(){return f.ReasonCodes}})})(ox);function Aa(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function PL(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function Ah(t){let e,r,n;t.length!==2?(e=Aa,r=(a,l)=>Aa(t(a),l),n=(a,l)=>t(a)-l):(e=t===Aa||t===PL?t:RL,r=t,n=t);function i(a,l,u=0,c=a.length){if(u>>1;r(a[f],l)<0?u=f+1:c=f}while(u>>1;r(a[f],l)<=0?u=f+1:c=f}while(uu&&n(a[f-1],l)>-n(a[f],l)?f-1:f}return{left:i,center:o,right:s}}function RL(){return 0}function LL(t){return t===null?NaN:+t}const NL=Ah(Aa),$L=NL.right;Ah(LL).center;const kL=$L;function VW(t,e){let r,n;if(e===void 0)for(const i of t)i!=null&&(r===void 0?i>=i&&(r=n=i):(r>i&&(r=i),n=s&&(r=n=s):(r>s&&(r=s),n=UL?10:s>=jL?5:s>=zL?2:1;let a,l,u;return i<0?(u=Math.pow(10,-i)/o,a=Math.round(t*u),l=Math.round(e*u),a/ue&&--l,u=-u):(u=Math.pow(10,i)*o,a=Math.round(t/u),l=Math.round(e/u),a*ue&&--l),l0))return[];if(t===e)return[t];const n=e=i))return[];const a=s-i+1,l=new Array(a);if(n)if(o<0)for(let u=0;u=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r=i)&&(r=i)}return r}function WL(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,s=new Array(i);++n+t(e)}function GL(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function XL(){return!this.__axis}function pu(t,e){var r=[],n=null,i=null,s=6,o=6,a=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===Ma||t===Ns?-1:1,c=t===Ns||t===Ca?"x":"y",f=t===Ma||t===Wf?qL:YL;function d(h){var g=n??(e.ticks?e.ticks.apply(e,r):e.domain()),y=i??(e.tickFormat?e.tickFormat.apply(e,r):VL),b=Math.max(s,0)+a,E=e.range(),_=+E[0]+l,v=+E[E.length-1]+l,T=(e.bandwidth?GL:KL)(e.copy(),l),M=h.selection?h.selection():h,I=M.selectAll(".domain").data([null]),$=M.selectAll(".tick").data(g,e).order(),F=$.exit(),L=$.enter().append("g").attr("class","tick"),U=$.select("line"),k=$.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),$=$.merge(L),U=U.merge(L.append("line").attr("stroke","currentColor").attr(c+"2",u*s)),k=k.merge(L.append("text").attr("fill","currentColor").attr(c,u*b).attr("dy",t===Ma?"0em":t===Wf?"0.71em":"0.32em")),h!==M&&(I=I.transition(h),$=$.transition(h),U=U.transition(h),k=k.transition(h),F=F.transition(h).attr("opacity",Pm).attr("transform",function(W){return isFinite(W=T(W))?f(W+l):this.getAttribute("transform")}),L.attr("opacity",Pm).attr("transform",function(W){var D=this.parentNode.__axis;return f((D&&isFinite(D=D(W))?D:T(W))+l)})),F.remove(),I.attr("d",t===Ns||t===Ca?o?"M"+u*o+","+_+"H"+l+"V"+v+"H"+u*o:"M"+l+","+_+"V"+v:o?"M"+_+","+u*o+"V"+l+"H"+v+"V"+u*o:"M"+_+","+l+"H"+v),$.attr("opacity",1).attr("transform",function(W){return f(T(W)+l)}),U.attr(c+"2",u*s),k.attr(c,u*b).text(y),M.filter(XL).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Ca?"start":t===Ns?"end":"middle"),M.each(function(){this.__axis=T})}return d.scale=function(h){return arguments.length?(e=h,d):e},d.ticks=function(){return r=Array.from(arguments),d},d.tickArguments=function(h){return arguments.length?(r=h==null?[]:Array.from(h),d):r.slice()},d.tickValues=function(h){return arguments.length?(n=h==null?null:Array.from(h),d):n&&n.slice()},d.tickFormat=function(h){return arguments.length?(i=h,d):i},d.tickSize=function(h){return arguments.length?(s=o=+h,d):s},d.tickSizeInner=function(h){return arguments.length?(s=+h,d):s},d.tickSizeOuter=function(h){return arguments.length?(o=+h,d):o},d.tickPadding=function(h){return arguments.length?(a=+h,d):a},d.offset=function(h){return arguments.length?(l=+h,d):l},d}function YW(t){return pu(Ma,t)}function KW(t){return pu(Ca,t)}function GW(t){return pu(Wf,t)}function XW(t){return pu(Ns,t)}var QL={value:()=>{}};function L_(){for(var t=0,e=arguments.length,r={},n;t=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}Ia.prototype=L_.prototype={constructor:Ia,on:function(t,e){var r=this._,n=JL(t+"",r),i,s=-1,o=n.length;if(arguments.length<2){for(;++s0)for(var r=new Array(i),n=0,i,s;n=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Lm.hasOwnProperty(e)?{space:Lm[e],local:t}:t}function eN(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===Vf&&e.documentElement.namespaceURI===Vf?e.createElement(t):e.createElementNS(r,t)}}function tN(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function N_(t){var e=gu(t);return(e.local?tN:eN)(e)}function rN(){}function Mh(t){return t==null?rN:function(){return this.querySelector(t)}}function nN(t){typeof t!="function"&&(t=Mh(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i=v&&(v=_+1);!(M=b[v])&&++v=0;)(o=n[i])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function CN(t){t||(t=IN);function e(f,d){return f&&d?t(f.__data__,d.__data__):!f-!d}for(var r=this._groups,n=r.length,i=new Array(n),s=0;se?1:t>=e?0:NaN}function ON(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function PN(){return Array.from(this)}function RN(){for(var t=this._groups,e=0,r=t.length;e1?this.each((e==null?HN:typeof e=="function"?VN:WN)(t,e,r??"")):Hi(this.node(),t)}function Hi(t,e){return t.style.getPropertyValue(e)||F_(t).getComputedStyle(t,null).getPropertyValue(e)}function YN(t){return function(){delete this[t]}}function KN(t,e){return function(){this[t]=e}}function GN(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function XN(t,e){return arguments.length>1?this.each((e==null?YN:typeof e=="function"?GN:KN)(t,e)):this.node()[t]}function U_(t){return t.trim().split(/^|\s+/)}function Ch(t){return t.classList||new j_(t)}function j_(t){this._node=t,this._names=U_(t.getAttribute("class")||"")}j_.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function z_(t,e){for(var r=Ch(t),n=-1,i=e.length;++n=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function x$(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,i=e.length,s;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?ta(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?ta(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=L$.exec(t))?new mt(e[1],e[2],e[3],1):(e=N$.exec(t))?new mt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=$$.exec(t))?ta(e[1],e[2],e[3],e[4]):(e=k$.exec(t))?ta(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=D$.exec(t))?Um(e[1],e[2]/100,e[3]/100,1):(e=B$.exec(t))?Um(e[1],e[2]/100,e[3]/100,e[4]):Nm.hasOwnProperty(t)?Dm(Nm[t]):t==="transparent"?new mt(NaN,NaN,NaN,0):null}function Dm(t){return new mt(t>>16&255,t>>8&255,t&255,1)}function ta(t,e,r,n){return n<=0&&(t=e=r=NaN),new mt(t,e,r,n)}function j$(t){return t instanceof Oo||(t=Kn(t)),t?(t=t.rgb(),new mt(t.r,t.g,t.b,t.opacity)):new mt}function qf(t,e,r,n){return arguments.length===1?j$(t):new mt(t,e,r,n??1)}function mt(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}Ih(mt,qf,q_(Oo,{brighter(t){return t=t==null?il:Math.pow(il,t),new mt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?co:Math.pow(co,t),new mt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new mt(zn(this.r),zn(this.g),zn(this.b),sl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Bm,formatHex:Bm,formatHex8:z$,formatRgb:Fm,toString:Fm}));function Bm(){return`#${kn(this.r)}${kn(this.g)}${kn(this.b)}`}function z$(){return`#${kn(this.r)}${kn(this.g)}${kn(this.b)}${kn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Fm(){const t=sl(this.opacity);return`${t===1?"rgb(":"rgba("}${zn(this.r)}, ${zn(this.g)}, ${zn(this.b)}${t===1?")":`, ${t})`}`}function sl(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function zn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function kn(t){return t=zn(t),(t<16?"0":"")+t.toString(16)}function Um(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ht(t,e,r,n)}function Y_(t){if(t instanceof Ht)return new Ht(t.h,t.s,t.l,t.opacity);if(t instanceof Oo||(t=Kn(t)),!t)return new Ht;if(t instanceof Ht)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=NaN,a=s-i,l=(s+i)/2;return a?(e===s?o=(r-n)/a+(r0&&l<1?0:o,new Ht(o,a,l,t.opacity)}function H$(t,e,r,n){return arguments.length===1?Y_(t):new Ht(t,e,r,n??1)}function Ht(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}Ih(Ht,H$,q_(Oo,{brighter(t){return t=t==null?il:Math.pow(il,t),new Ht(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?co:Math.pow(co,t),new Ht(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new mt(xc(t>=240?t-240:t+120,i,n),xc(t,i,n),xc(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new Ht(jm(this.h),ra(this.s),ra(this.l),sl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=sl(this.opacity);return`${t===1?"hsl(":"hsla("}${jm(this.h)}, ${ra(this.s)*100}%, ${ra(this.l)*100}%${t===1?")":`, ${t})`}`}}));function jm(t){return t=(t||0)%360,t<0?t+360:t}function ra(t){return Math.max(0,Math.min(1,t||0))}function xc(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const Oh=t=>()=>t;function W$(t,e){return function(r){return t+r*e}}function V$(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function q$(t){return(t=+t)==1?K_:function(e,r){return r-e?V$(e,r,t):Oh(isNaN(e)?r:e)}}function K_(t,e){var r=e-t;return r?W$(t,r):Oh(isNaN(t)?e:t)}const ol=function t(e){var r=q$(e);function n(i,s){var o=r((i=qf(i)).r,(s=qf(s)).r),a=r(i.g,s.g),l=r(i.b,s.b),u=K_(i.opacity,s.opacity);return function(c){return i.r=o(c),i.g=a(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=t,n}(1);function Y$(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),i;return function(s){for(i=0;ir&&(s=e.slice(r,s),a[o]?a[o]+=s:a[++o]=s),(n=n[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,l.push({i:o,x:Ut(n,i)})),r=Tc.lastIndex;return r180?c+=360:c-u>180&&(u+=360),d.push({i:f.push(i(f)+"rotate(",null,n)-2,x:Ut(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function a(u,c,f,d){u!==c?d.push({i:f.push(i(f)+"skewX(",null,n)-2,x:Ut(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,d,h,g){if(u!==f||c!==d){var y=h.push(i(h)+"scale(",null,",",null,")");g.push({i:y-4,x:Ut(u,f)},{i:y-2,x:Ut(c,d)})}else(f!==1||d!==1)&&h.push(i(h)+"scale("+f+","+d+")")}return function(u,c){var f=[],d=[];return u=t(u),c=t(c),s(u.translateX,u.translateY,c.translateX,c.translateY,f,d),o(u.rotate,c.rotate,f,d),a(u.skewX,c.skewX,f,d),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,d),u=c=null,function(h){for(var g=-1,y=d.length,b;++g=0&&t._call.call(void 0,e),t=t._next;--Wi}function Hm(){Gn=(ll=ho.now())+mu,Wi=$s=0;try{ok()}finally{Wi=0,lk(),Gn=0}}function ak(){var t=ho.now(),e=t-ll;e>J_&&(mu-=e,ll=t)}function lk(){for(var t,e=al,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:al=r);ks=t,Gf(n)}function Gf(t){if(!Wi){$s&&($s=clearTimeout($s));var e=t-Gn;e>24?(t<1/0&&($s=setTimeout(Hm,t-ho.now()-mu)),Ts&&(Ts=clearInterval(Ts))):(Ts||(ll=ho.now(),Ts=setInterval(ak,J_)),Wi=1,Z_(Hm))}}function Wm(t,e,r){var n=new ul;return e=e==null?0:+e,n.restart(i=>{n.stop(),t(i+e)},e,r),n}var uk=L_("start","end","cancel","interrupt"),ck=[],tv=0,Vm=1,Xf=2,Oa=3,qm=4,Qf=5,Pa=6;function yu(t,e,r,n,i,s){var o=t.__transition;if(!o)t.__transition={};else if(r in o)return;fk(t,r,{name:e,index:n,group:i,on:uk,tween:ck,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:tv})}function Lh(t,e){var r=Xt(t,e);if(r.state>tv)throw new Error("too late; already scheduled");return r}function br(t,e){var r=Xt(t,e);if(r.state>Oa)throw new Error("too late; already running");return r}function Xt(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function fk(t,e,r){var n=t.__transition,i;n[e]=r,r.timer=ev(s,0,r.time);function s(u){r.state=Vm,r.timer.restart(o,r.delay,r.time),r.delay<=u&&o(u-r.delay)}function o(u){var c,f,d,h;if(r.state!==Vm)return l();for(c in n)if(h=n[c],h.name===r.name){if(h.state===Oa)return Wm(o);h.state===qm?(h.state=Pa,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete n[c]):+cXf&&n.state=0&&(e=e.slice(0,r)),!e||e==="start"})}function zk(t,e,r){var n,i,s=jk(e)?Lh:br;return function(){var o=s(this,t),a=o.on;a!==n&&(i=(n=a).copy()).on(e,r),o.on=i}}function Hk(t,e){var r=this._id;return arguments.length<2?Xt(this.node(),r).on.on(t):this.each(zk(r,t,e))}function Wk(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function Vk(){return this.on("end.remove",Wk(this._id))}function qk(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Mh(t));for(var n=this._groups,i=n.length,s=new Array(i),o=0;o+t;function hD(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var pD={time:null,delay:0,duration:250,ease:hD};function gD(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function mD(t){var e,r;t instanceof Br?(e=t._id,t=t._name):(e=iv(),(r=pD).time=Rh(),t=t==null?null:t+"");for(var n=this._groups,i=n.length,s=0;s=0))throw new Error(`invalid digits: ${t}`);if(e>15)return sv;const r=10**e;return function(n){this._+=n[0];for(let i=1,s=n.length;iIn)if(!(Math.abs(f*l-u*c)>In)||!s)this._append`L${this._x1=e},${this._y1=r}`;else{let h=n-o,g=i-a,y=l*l+u*u,b=h*h+g*g,E=Math.sqrt(y),_=Math.sqrt(d),v=s*Math.tan((Jf-Math.acos((y+d-b)/(2*E*_)))/2),T=v/_,M=v/E;Math.abs(T-1)>In&&this._append`L${e+T*c},${r+T*f}`,this._append`A${s},${s},0,0,${+(f*h>c*g)},${this._x1=e+M*l},${this._y1=r+M*u}`}}arc(e,r,n,i,s,o){if(e=+e,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(i),l=n*Math.sin(i),u=e+a,c=r+l,f=1^o,d=o?i-s:s-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>In||Math.abs(this._y1-c)>In)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%Zf+Zf),d>yD?this._append`A${n},${n},0,1,${f},${e-a},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:d>In&&this._append`A${n},${n},0,${+(d>=Jf)},${f},${this._x1=e+n*Math.cos(s)},${this._y1=r+n*Math.sin(s)}`)}rect(e,r,n,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function _D(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function cl(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Vi(t){return t=cl(Math.abs(t)),t?t[1]:NaN}function vD(t,e){return function(r,n){for(var i=r.length,s=[],o=0,a=t[0],l=0;i>0&&a>0&&(l+a+1>n&&(a=Math.max(1,n-l)),s.push(r.substring(i-=a,i+a)),!((l+=a+1)>n));)a=t[o=(o+1)%t.length];return s.reverse().join(e)}}function ED(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var SD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fl(t){if(!(e=SD.exec(t)))throw new Error("invalid format: "+t);var e;return new $h({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}fl.prototype=$h.prototype;function $h(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}$h.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function xD(t){e:for(var e=t.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(i+1):t}var ov;function TD(t,e){var r=cl(t,e);if(!r)return t+"";var n=r[0],i=r[1],s=i-(ov=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return s===o?n:s>o?n+new Array(s-o+1).join("0"):s>0?n.slice(0,s)+"."+n.slice(s):"0."+new Array(1-s).join("0")+cl(t,Math.max(0,e+s-1))[0]}function Ym(t,e){var r=cl(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Km={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:_D,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Ym(t*100,e),r:Ym,s:TD,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Gm(t){return t}var Xm=Array.prototype.map,Qm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function AD(t){var e=t.grouping===void 0||t.thousands===void 0?Gm:vD(Xm.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?Gm:ED(Xm.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function u(f){f=fl(f);var d=f.fill,h=f.align,g=f.sign,y=f.symbol,b=f.zero,E=f.width,_=f.comma,v=f.precision,T=f.trim,M=f.type;M==="n"?(_=!0,M="g"):Km[M]||(v===void 0&&(v=12),T=!0,M="g"),(b||d==="0"&&h==="=")&&(b=!0,d="0",h="=");var I=y==="$"?r:y==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",$=y==="$"?n:/[%p]/.test(M)?o:"",F=Km[M],L=/[defgprs%]/.test(M);v=v===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function U(k){var W=I,D=$,O,j,Q;if(M==="c")D=F(k)+D,k="";else{k=+k;var H=k<0||1/k<0;if(k=isNaN(k)?l:F(Math.abs(k),v),T&&(k=xD(k)),H&&+k==0&&g!=="+"&&(H=!1),W=(H?g==="("?g:a:g==="-"||g==="("?"":g)+W,D=(M==="s"?Qm[8+ov/3]:"")+D+(H&&g==="("?")":""),L){for(O=-1,j=k.length;++OQ||Q>57){D=(Q===46?i+k.slice(O+1):k.slice(O))+D,k=k.slice(0,O);break}}}_&&!b&&(k=e(k,1/0));var K=W.length+k.length+D.length,X=K>1)+W+k+D+X.slice(K);break;default:k=X+W+k+D;break}return s(k)}return U.toString=function(){return f+""},U}function c(f,d){var h=u((f=fl(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(Vi(d)/3)))*3,y=Math.pow(10,-g),b=Qm[8+g/3];return function(E){return h(y*E)+b}}return{format:u,formatPrefix:c}}var ia,av,lv;MD({thousands:",",grouping:[3],currency:["$",""]});function MD(t){return ia=AD(t),av=ia.format,lv=ia.formatPrefix,ia}function CD(t){return Math.max(0,-Vi(Math.abs(t)))}function ID(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Vi(e)/3)))*3-Vi(Math.abs(t)))}function OD(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Vi(e)-Vi(t))+1}function wu(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const Jm=Symbol("implicit");function uv(){var t=new Im,e=[],r=[],n=Jm;function i(s){let o=t.get(s);if(o===void 0){if(n!==Jm)return n;t.set(s,o=e.push(s)-1)}return r[o%r.length]}return i.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new Im;for(const o of s)t.has(o)||t.set(o,e.push(o)-1);return i},i.range=function(s){return arguments.length?(r=Array.from(s),i):r.slice()},i.unknown=function(s){return arguments.length?(n=s,i):n},i.copy=function(){return uv(e,r).unknown(n)},wu.apply(i,arguments),i}function PD(){var t=uv().unknown(void 0),e=t.domain,r=t.range,n=0,i=1,s,o,a=!1,l=0,u=0,c=.5;delete t.unknown;function f(){var d=e().length,h=ie&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function $D(t,e,r){var n=t[0],i=t[1],s=e[0],o=e[1];return i2?kD:$D,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?s:(l||(l=a(t.map(n),e,r)))(n(o(d)))}return f.invert=function(d){return o(i((u||(u=a(e,t.map(n),Ut)))(d)))},f.domain=function(d){return arguments.length?(t=Array.from(d,LD),c()):t.slice()},f.range=function(d){return arguments.length?(e=Array.from(d),c()):e.slice()},f.rangeRound=function(d){return e=Array.from(d),r=ek,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Ei,c()):o!==Ei},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(s=d,f):s},function(d,h){return n=d,i=h,c()}}function fv(){return DD()(Ei,Ei)}function BD(t,e,r,n){var i=Hf(t,e,r),s;switch(n=fl(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(s=ID(i,o))&&(n.precision=s),lv(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(s=OD(i,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=s-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(s=CD(i))&&(n.precision=s-(n.type==="%")*2);break}}return av(n)}function FD(t){var e=t.domain;return t.ticks=function(r){var n=e();return HL(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var i=e();return BD(i[0],i[i.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),i=0,s=n.length-1,o=n[i],a=n[s],l,u,c=10;for(a0;){if(u=zf(o,a,r),u===l)return n[i]=o,n[s]=a,e(n);if(u>0)o=Math.floor(o/u)*u,a=Math.ceil(a/u)*u;else if(u<0)o=Math.ceil(o*u)/u,a=Math.floor(a*u)/u;else break;l=u}return t},t}function UD(){var t=fv();return t.copy=function(){return cv(t,UD())},wu.apply(t,arguments),FD(t)}function jD(t,e){t=t.slice();var r=0,n=t.length-1,i=t[r],s=t[n],o;return s(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),a=i.ceil(s);return s-o(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,a)=>{const l=[];if(s=i.ceil(s),a=a==null?1:Math.floor(a),!(s0))return l;let u;do l.push(u=new Date(+s)),e(s,a),t(s);while(uqe(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;e(o,-1),!s(o););else for(;--a>=0;)for(;e(o,1),!s(o););}),r&&(i.count=(s,o)=>(Ac.setTime(+s),Mc.setTime(+o),t(Ac),t(Mc),Math.floor(r(Ac,Mc))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(n?o=>n(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const dl=qe(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);dl.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?qe(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):dl);dl.range;const Ir=1e3,It=Ir*60,Or=It*60,Fr=Or*24,kh=Fr*7,ey=Fr*30,Cc=Fr*365,Si=qe(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Ir)},(t,e)=>(e-t)/Ir,t=>t.getUTCSeconds());Si.range;const Dh=qe(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ir)},(t,e)=>{t.setTime(+t+e*It)},(t,e)=>(e-t)/It,t=>t.getMinutes());Dh.range;const zD=qe(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*It)},(t,e)=>(e-t)/It,t=>t.getUTCMinutes());zD.range;const Bh=qe(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ir-t.getMinutes()*It)},(t,e)=>{t.setTime(+t+e*Or)},(t,e)=>(e-t)/Or,t=>t.getHours());Bh.range;const HD=qe(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Or)},(t,e)=>(e-t)/Or,t=>t.getUTCHours());HD.range;const Po=qe(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*It)/Fr,t=>t.getDate()-1);Po.range;const Fh=qe(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Fr,t=>t.getUTCDate()-1);Fh.range;const WD=qe(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Fr,t=>Math.floor(t/Fr));WD.range;function si(t){return qe(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*It)/kh)}const bu=si(0),hl=si(1),VD=si(2),qD=si(3),qi=si(4),YD=si(5),KD=si(6);bu.range;hl.range;VD.range;qD.range;qi.range;YD.range;KD.range;function oi(t){return qe(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/kh)}const dv=oi(0),pl=oi(1),GD=oi(2),XD=oi(3),Yi=oi(4),QD=oi(5),JD=oi(6);dv.range;pl.range;GD.range;XD.range;Yi.range;QD.range;JD.range;const Uh=qe(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());Uh.range;const ZD=qe(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());ZD.range;const Ur=qe(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Ur.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:qe(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});Ur.range;const Xn=qe(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Xn.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:qe(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});Xn.range;function eB(t,e,r,n,i,s){const o=[[Si,1,Ir],[Si,5,5*Ir],[Si,15,15*Ir],[Si,30,30*Ir],[s,1,It],[s,5,5*It],[s,15,15*It],[s,30,30*It],[i,1,Or],[i,3,3*Or],[i,6,6*Or],[i,12,12*Or],[n,1,Fr],[n,2,2*Fr],[r,1,kh],[e,1,ey],[e,3,3*ey],[t,1,Cc]];function a(u,c,f){const d=cb).right(o,d);if(h===o.length)return t.every(Hf(u/Cc,c/Cc,f));if(h===0)return dl.every(Math.max(Hf(u,c,f),1));const[g,y]=o[d/o[h-1][2]53)return null;"w"in w||(w.w=1),"Z"in w?(A=Oc(As(w.y,0,1)),B=A.getUTCDay(),A=B>4||B===0?pl.ceil(A):pl(A),A=Fh.offset(A,(w.V-1)*7),w.y=A.getUTCFullYear(),w.m=A.getUTCMonth(),w.d=A.getUTCDate()+(w.w+6)%7):(A=Ic(As(w.y,0,1)),B=A.getDay(),A=B>4||B===0?hl.ceil(A):hl(A),A=Po.offset(A,(w.V-1)*7),w.y=A.getFullYear(),w.m=A.getMonth(),w.d=A.getDate()+(w.w+6)%7)}else("W"in w||"U"in w)&&("w"in w||(w.w="u"in w?w.u%7:"W"in w?1:0),B="Z"in w?Oc(As(w.y,0,1)).getUTCDay():Ic(As(w.y,0,1)).getDay(),w.m=0,w.d="W"in w?(w.w+6)%7+w.W*7-(B+5)%7:w.w+w.U*7-(B+6)%7);return"Z"in w?(w.H+=w.Z/100|0,w.M+=w.Z%100,Oc(w)):Ic(w)}}function F(ee,ue,P,w){for(var S=0,A=ue.length,B=P.length,z,q;S=B)return-1;if(z=ue.charCodeAt(S++),z===37){if(z=ue.charAt(S++),q=M[z in ty?ue.charAt(S++):z],!q||(w=q(ee,P,w))<0)return-1}else if(z!=P.charCodeAt(w++))return-1}return w}function L(ee,ue,P){var w=u.exec(ue.slice(P));return w?(ee.p=c.get(w[0].toLowerCase()),P+w[0].length):-1}function U(ee,ue,P){var w=h.exec(ue.slice(P));return w?(ee.w=g.get(w[0].toLowerCase()),P+w[0].length):-1}function k(ee,ue,P){var w=f.exec(ue.slice(P));return w?(ee.w=d.get(w[0].toLowerCase()),P+w[0].length):-1}function W(ee,ue,P){var w=E.exec(ue.slice(P));return w?(ee.m=_.get(w[0].toLowerCase()),P+w[0].length):-1}function D(ee,ue,P){var w=y.exec(ue.slice(P));return w?(ee.m=b.get(w[0].toLowerCase()),P+w[0].length):-1}function O(ee,ue,P){return F(ee,e,ue,P)}function j(ee,ue,P){return F(ee,r,ue,P)}function Q(ee,ue,P){return F(ee,n,ue,P)}function H(ee){return o[ee.getDay()]}function K(ee){return s[ee.getDay()]}function X(ee){return l[ee.getMonth()]}function Z(ee){return a[ee.getMonth()]}function ce(ee){return i[+(ee.getHours()>=12)]}function pe(ee){return 1+~~(ee.getMonth()/3)}function de(ee){return o[ee.getUTCDay()]}function me(ee){return s[ee.getUTCDay()]}function be(ee){return l[ee.getUTCMonth()]}function G(ee){return a[ee.getUTCMonth()]}function Y(ee){return i[+(ee.getUTCHours()>=12)]}function ne(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var ue=I(ee+="",v);return ue.toString=function(){return ee},ue},parse:function(ee){var ue=$(ee+="",!1);return ue.toString=function(){return ee},ue},utcFormat:function(ee){var ue=I(ee+="",T);return ue.toString=function(){return ee},ue},utcParse:function(ee){var ue=$(ee+="",!0);return ue.toString=function(){return ee},ue}}}var ty={"-":"",_:" ",0:"0"},Ge=/^\s*\d+/,iB=/^%/,sB=/[\\^$*+?|[\]().{}]/g;function Re(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",s=i.length;return n+(s[e.toLowerCase(),r]))}function aB(t,e,r){var n=Ge.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function lB(t,e,r){var n=Ge.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function uB(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function cB(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function fB(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function ry(t,e,r){var n=Ge.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function ny(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function dB(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function hB(t,e,r){var n=Ge.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function pB(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function iy(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function gB(t,e,r){var n=Ge.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function sy(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function mB(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function yB(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function wB(t,e,r){var n=Ge.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function bB(t,e,r){var n=Ge.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function _B(t,e,r){var n=iB.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function vB(t,e,r){var n=Ge.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function EB(t,e,r){var n=Ge.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function oy(t,e){return Re(t.getDate(),e,2)}function SB(t,e){return Re(t.getHours(),e,2)}function xB(t,e){return Re(t.getHours()%12||12,e,2)}function TB(t,e){return Re(1+Po.count(Ur(t),t),e,3)}function hv(t,e){return Re(t.getMilliseconds(),e,3)}function AB(t,e){return hv(t,e)+"000"}function MB(t,e){return Re(t.getMonth()+1,e,2)}function CB(t,e){return Re(t.getMinutes(),e,2)}function IB(t,e){return Re(t.getSeconds(),e,2)}function OB(t){var e=t.getDay();return e===0?7:e}function PB(t,e){return Re(bu.count(Ur(t)-1,t),e,2)}function pv(t){var e=t.getDay();return e>=4||e===0?qi(t):qi.ceil(t)}function RB(t,e){return t=pv(t),Re(qi.count(Ur(t),t)+(Ur(t).getDay()===4),e,2)}function LB(t){return t.getDay()}function NB(t,e){return Re(hl.count(Ur(t)-1,t),e,2)}function $B(t,e){return Re(t.getFullYear()%100,e,2)}function kB(t,e){return t=pv(t),Re(t.getFullYear()%100,e,2)}function DB(t,e){return Re(t.getFullYear()%1e4,e,4)}function BB(t,e){var r=t.getDay();return t=r>=4||r===0?qi(t):qi.ceil(t),Re(t.getFullYear()%1e4,e,4)}function FB(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Re(e/60|0,"0",2)+Re(e%60,"0",2)}function ay(t,e){return Re(t.getUTCDate(),e,2)}function UB(t,e){return Re(t.getUTCHours(),e,2)}function jB(t,e){return Re(t.getUTCHours()%12||12,e,2)}function zB(t,e){return Re(1+Fh.count(Xn(t),t),e,3)}function gv(t,e){return Re(t.getUTCMilliseconds(),e,3)}function HB(t,e){return gv(t,e)+"000"}function WB(t,e){return Re(t.getUTCMonth()+1,e,2)}function VB(t,e){return Re(t.getUTCMinutes(),e,2)}function qB(t,e){return Re(t.getUTCSeconds(),e,2)}function YB(t){var e=t.getUTCDay();return e===0?7:e}function KB(t,e){return Re(dv.count(Xn(t)-1,t),e,2)}function mv(t){var e=t.getUTCDay();return e>=4||e===0?Yi(t):Yi.ceil(t)}function GB(t,e){return t=mv(t),Re(Yi.count(Xn(t),t)+(Xn(t).getUTCDay()===4),e,2)}function XB(t){return t.getUTCDay()}function QB(t,e){return Re(pl.count(Xn(t)-1,t),e,2)}function JB(t,e){return Re(t.getUTCFullYear()%100,e,2)}function ZB(t,e){return t=mv(t),Re(t.getUTCFullYear()%100,e,2)}function e2(t,e){return Re(t.getUTCFullYear()%1e4,e,4)}function t2(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Yi(t):Yi.ceil(t),Re(t.getUTCFullYear()%1e4,e,4)}function r2(){return"+0000"}function ly(){return"%"}function uy(t){return+t}function cy(t){return Math.floor(+t/1e3)}var di,yv,n2;i2({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function i2(t){return di=nB(t),yv=di.format,n2=di.parse,di.utcFormat,di.utcParse,di}function s2(t){return new Date(t)}function o2(t){return t instanceof Date?+t:+new Date(+t)}function wv(t,e,r,n,i,s,o,a,l,u){var c=fv(),f=c.invert,d=c.domain,h=u(".%L"),g=u(":%S"),y=u("%I:%M"),b=u("%I %p"),E=u("%a %d"),_=u("%b %d"),v=u("%B"),T=u("%Y");function M(I){return(l(I)1?0:t<-1?po:Math.acos(t)}function dy(t){return t>=1?gl:t<=-1?-gl:Math.asin(t)}function jh(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new bD(e)}function u2(t){return t.innerRadius}function c2(t){return t.outerRadius}function f2(t){return t.startAngle}function d2(t){return t.endAngle}function h2(t){return t&&t.padAngle}function p2(t,e,r,n,i,s,o,a){var l=r-t,u=n-e,c=o-i,f=a-s,d=f*l-c*u;if(!(d*dO*O+j*j&&(F=U,L=k),{cx:F,cy:L,x01:-c,y01:-f,x11:F*(i/M-1),y11:L*(i/M-1)}}function e8(){var t=u2,e=c2,r=Ie(0),n=null,i=f2,s=d2,o=h2,a=null,l=jh(u);function u(){var c,f,d=+t.apply(this,arguments),h=+e.apply(this,arguments),g=i.apply(this,arguments)-gl,y=s.apply(this,arguments)-gl,b=fy(y-g),E=y>g;if(a||(a=c=l()),hht))a.moveTo(0,0);else if(b>Ra-ht)a.moveTo(h*Mn(g),h*Zt(g)),a.arc(0,0,h,g,y,!E),d>ht&&(a.moveTo(d*Mn(y),d*Zt(y)),a.arc(0,0,d,y,g,E));else{var _=g,v=y,T=g,M=y,I=b,$=b,F=o.apply(this,arguments)/2,L=F>ht&&(n?+n.apply(this,arguments):xi(d*d+h*h)),U=Pc(fy(h-d)/2,+r.apply(this,arguments)),k=U,W=U,D,O;if(L>ht){var j=dy(L/d*Zt(F)),Q=dy(L/h*Zt(F));(I-=j*2)>ht?(j*=E?1:-1,T+=j,M-=j):(I=0,T=M=(g+y)/2),($-=Q*2)>ht?(Q*=E?1:-1,_+=Q,v-=Q):($=0,_=v=(g+y)/2)}var H=h*Mn(_),K=h*Zt(_),X=d*Mn(M),Z=d*Zt(M);if(U>ht){var ce=h*Mn(v),pe=h*Zt(v),de=d*Mn(T),me=d*Zt(T),be;if(bht?W>ht?(D=sa(de,me,H,K,h,W,E),O=sa(ce,pe,X,Z,h,W,E),a.moveTo(D.cx+D.x01,D.cy+D.y01),Wht)||!(I>ht)?a.lineTo(X,Z):k>ht?(D=sa(X,Z,ce,pe,d,-k,E),O=sa(H,K,de,me,d,-k,E),a.lineTo(D.cx+D.x01,D.cy+D.y01),k=h;--g)a.point(v[g],T[g]);a.lineEnd(),a.areaEnd()}E&&(v[d]=+t(b,d,f),T[d]=+e(b,d,f),a.point(n?+n(b,d,f):v[d],r?+r(b,d,f):T[d]))}if(_)return a=null,_+""||null}function c(){return g2().defined(i).curve(o).context(s)}return u.x=function(f){return arguments.length?(t=typeof f=="function"?f:Ie(+f),n=null,u):t},u.x0=function(f){return arguments.length?(t=typeof f=="function"?f:Ie(+f),u):t},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ie(+f),u):n},u.y=function(f){return arguments.length?(e=typeof f=="function"?f:Ie(+f),r=null,u):e},u.y0=function(f){return arguments.length?(e=typeof f=="function"?f:Ie(+f),u):e},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ie(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(r)},u.lineX1=function(){return c().x(n).y(e)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Ie(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,s!=null&&(a=o(s)),u):o},u.context=function(f){return arguments.length?(f==null?s=a=null:a=o(s=f),u):s},u}function m2(t,e){return et?1:e>=t?0:NaN}function y2(t){return t}function r8(){var t=y2,e=m2,r=null,n=Ie(0),i=Ie(Ra),s=Ie(0);function o(a){var l,u=(a=_u(a)).length,c,f,d=0,h=new Array(u),g=new Array(u),y=+n.apply(this,arguments),b=Math.min(Ra,Math.max(-Ra,i.apply(this,arguments)-y)),E,_=Math.min(Math.abs(b)/u,s.apply(this,arguments)),v=_*(b<0?-1:1),T;for(l=0;l0&&(d+=T);for(e!=null?h.sort(function(M,I){return e(g[M],g[I])}):r!=null&&h.sort(function(M,I){return r(a[M],a[I])}),l=0,f=d?(b-u*v)/d:0;l0?T*f:0)+v,g[c]={data:a[c],index:l,value:T,startAngle:y,endAngle:E,padAngle:_};return g}return o.value=function(a){return arguments.length?(t=typeof a=="function"?a:Ie(+a),o):t},o.sortValues=function(a){return arguments.length?(e=a,r=null,o):e},o.sort=function(a){return arguments.length?(r=a,e=null,o):r},o.startAngle=function(a){return arguments.length?(n=typeof a=="function"?a:Ie(+a),o):n},o.endAngle=function(a){return arguments.length?(i=typeof a=="function"?a:Ie(+a),o):i},o.padAngle=function(a){return arguments.length?(s=typeof a=="function"?a:Ie(+a),o):s},o}function hy(t,e){if((o=t.length)>1)for(var r=1,n,i,s=t[e[0]],o,a=s.length;r=0;)r[e]=e;return r}function w2(t,e){return t[e]}function b2(t){const e=[];return e.key=t,e}function n8(){var t=Ie([]),e=py,r=hy,n=w2;function i(s){var o=Array.from(t.apply(this,arguments),b2),a,l=o.length,u=-1,c;for(const f of s)for(a=0,++u;a{typeof t[r]>"u"?t[r]=e[r]:gy(e[r])&&gy(t[r])&&Object.keys(e[r]).length>0&&zh(t[r],e[r])})}const Sv={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function st(){const t=typeof document<"u"?document:{};return zh(t,Sv),t}const _2={document:Sv,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function je(){const t=typeof window<"u"?window:{};return zh(t,_2),t}function v2(t){const e=t;Object.keys(e).forEach(r=>{try{e[r]=null}catch{}try{delete e[r]}catch{}})}function Qn(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Ct(){return Date.now()}function E2(t){const e=je();let r;return e.getComputedStyle&&(r=e.getComputedStyle(t,null)),!r&&t.currentStyle&&(r=t.currentStyle),r||(r=t.style),r}function td(t,e){e===void 0&&(e="x");const r=je();let n,i,s;const o=E2(t);return r.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new r.WebKitCSSMatrix(i==="none"?"":i)):(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=s.toString().split(",")),e==="x"&&(r.WebKitCSSMatrix?i=s.m41:n.length===16?i=parseFloat(n[12]):i=parseFloat(n[4])),e==="y"&&(r.WebKitCSSMatrix?i=s.m42:n.length===16?i=parseFloat(n[13]):i=parseFloat(n[5])),i||0}function Bs(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function S2(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function vt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let r=1;re.indexOf(s)<0);for(let s=0,o=i.length;ss?"next":"prev",c=(d,h)=>u==="next"&&d>=h||u==="prev"&&d<=h,f=()=>{a=new Date().getTime(),o===null&&(o=a);const d=Math.max(Math.min((a-o)/l,1),0),h=.5-Math.cos(d*Math.PI)/2;let g=s+h*(r-s);if(c(g,r)&&(g=r),e.wrapperEl.scrollTo({[n]:g}),c(g,r)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:g})}),i.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=i.requestAnimationFrame(f)};f()}function ai(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function Qe(t,e){return e===void 0&&(e=""),[...t.children].filter(r=>r.matches(e))}function Vt(t,e){e===void 0&&(e=[]);const r=document.createElement(t);return r.classList.add(...Array.isArray(e)?e:[e]),r}function ml(t){const e=je(),r=st(),n=t.getBoundingClientRect(),i=r.body,s=t.clientTop||i.clientTop||0,o=t.clientLeft||i.clientLeft||0,a=t===e?e.scrollY:t.scrollTop,l=t===e?e.scrollX:t.scrollLeft;return{top:n.top+a-s,left:n.left+l-o}}function x2(t,e){const r=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&r.push(n):r.push(n),t=n}return r}function T2(t,e){const r=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&r.push(n):r.push(n),t=n}return r}function sn(t,e){return je().getComputedStyle(t,null).getPropertyValue(e)}function go(t){let e=t,r;if(e){for(r=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(r+=1);return r}}function Hn(t,e){const r=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&r.push(n):r.push(n),n=n.parentElement;return r}function Xs(t,e){function r(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",r))}e&&t.addEventListener("transitionend",r)}function rd(t,e,r){const n=je();return r?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}let Rc;function A2(){const t=je(),e=st();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Tv(){return Rc||(Rc=A2()),Rc}let Lc;function M2(t){let{userAgent:e}=t===void 0?{}:t;const r=Tv(),n=je(),i=n.navigator.platform,s=e||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,l=n.screen.height,u=s.match(/(Android);?[\s\/]+([\d.]+)?/);let c=s.match(/(iPad).*OS\s([\d_]+)/);const f=s.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=i==="Win32";let g=i==="MacIntel";const y=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&g&&r.touch&&y.indexOf(`${a}x${l}`)>=0&&(c=s.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),g=!1),u&&!h&&(o.os="android",o.android=!0),(c||d||f)&&(o.os="ios",o.ios=!0),o}function C2(t){return t===void 0&&(t={}),Lc||(Lc=M2(t)),Lc}let Nc;function I2(){const t=je();let e=!1;function r(){const n=t.navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}if(r()){const n=String(t.navigator.userAgent);if(n.includes("Version/")){const[i,s]=n.split("Version/")[1].split(" ")[0].split(".").map(o=>Number(o));e=i<16||i===16&&s<2}}return{isSafari:e||r(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function O2(){return Nc||(Nc=I2()),Nc}function P2(t){let{swiper:e,on:r,emit:n}=t;const i=je();let s=null,o=null;const a=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(s=new ResizeObserver(f=>{o=i.requestAnimationFrame(()=>{const{width:d,height:h}=e;let g=d,y=h;f.forEach(b=>{let{contentBoxSize:E,contentRect:_,target:v}=b;v&&v!==e.el||(g=_?_.width:(E[0]||E).inlineSize,y=_?_.height:(E[0]||E).blockSize)}),(g!==d||y!==h)&&a()})}),s.observe(e.el))},u=()=>{o&&i.cancelAnimationFrame(o),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};r("init",()=>{if(e.params.resizeObserver&&typeof i.ResizeObserver<"u"){l();return}i.addEventListener("resize",a),i.addEventListener("orientationchange",c)}),r("destroy",()=>{u(),i.removeEventListener("resize",a),i.removeEventListener("orientationchange",c)})}function R2(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s=[],o=je(),a=function(c,f){f===void 0&&(f={});const d=o.MutationObserver||o.WebkitMutationObserver,h=new d(g=>{if(e.__preventObserver__)return;if(g.length===1){i("observerUpdate",g[0]);return}const y=function(){i("observerUpdate",g[0])};o.requestAnimationFrame?o.requestAnimationFrame(y):o.setTimeout(y,0)});h.observe(c,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),s.push(h)},l=()=>{if(e.params.observer){if(e.params.observeParents){const c=Hn(e.hostEl);for(let f=0;f{s.forEach(c=>{c.disconnect()}),s.splice(0,s.length)};r({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",l),n("destroy",u)}var L2={on(t,e,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const i=r?"unshift":"push";return t.split(" ").forEach(s=>{n.eventsListeners[s]||(n.eventsListeners[s]=[]),n.eventsListeners[s][i](e)}),n},once(t,e,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function i(){n.off(t,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,o=new Array(s),a=0;a=0&&e.eventsAnyListeners.splice(r,1),e},off(t,e){const r=this;return!r.eventsListeners||r.destroyed||!r.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?r.eventsListeners[n]=[]:r.eventsListeners[n]&&r.eventsListeners[n].forEach((i,s)=>{(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&r.eventsListeners[n].splice(s,1)})}),r},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,r,n;for(var i=arguments.length,s=new Array(i),o=0;o{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[l,...r])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(u=>{u.apply(n,r)})}),t}};function N2(){const t=this;let e,r;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?r=t.params.height:r=n.clientHeight,!(e===0&&t.isHorizontal()||r===0&&t.isVertical())&&(e=e-parseInt(sn(n,"padding-left")||0,10)-parseInt(sn(n,"padding-right")||0,10),r=r-parseInt(sn(n,"padding-top")||0,10)-parseInt(sn(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(r)&&(r=0),Object.assign(t,{width:e,height:r,size:t.isHorizontal()?e:r}))}function $2(){const t=this;function e(k){return t.isHorizontal()?k:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[k]}function r(k,W){return parseFloat(k.getPropertyValue(e(W))||0)}const n=t.params,{wrapperEl:i,slidesEl:s,size:o,rtlTranslate:a,wrongRTL:l}=t,u=t.virtual&&n.virtual.enabled,c=u?t.virtual.slides.length:t.slides.length,f=Qe(s,`.${t.params.slideClass}, swiper-slide`),d=u?t.virtual.slides.length:f.length;let h=[];const g=[],y=[];let b=n.slidesOffsetBefore;typeof b=="function"&&(b=n.slidesOffsetBefore.call(t));let E=n.slidesOffsetAfter;typeof E=="function"&&(E=n.slidesOffsetAfter.call(t));const _=t.snapGrid.length,v=t.slidesGrid.length;let T=n.spaceBetween,M=-b,I=0,$=0;if(typeof o>"u")return;typeof T=="string"&&T.indexOf("%")>=0?T=parseFloat(T.replace("%",""))/100*o:typeof T=="string"&&(T=parseFloat(T)),t.virtualSize=-T,f.forEach(k=>{a?k.style.marginLeft="":k.style.marginRight="",k.style.marginBottom="",k.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(Fs(i,"--swiper-centered-offset-before",""),Fs(i,"--swiper-centered-offset-after",""));const F=n.grid&&n.grid.rows>1&&t.grid;F&&t.grid.initSlides(d);let L;const U=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(k=>typeof n.breakpoints[k].slidesPerView<"u").length>0;for(let k=0;k1&&h.push(t.virtualSize-o)}if(u&&n.loop){const k=y[0]+T;if(n.slidesPerGroup>1){const W=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/n.slidesPerGroup),D=k*n.slidesPerGroup;for(let O=0;O!n.cssMode||n.loop?!0:D!==f.length-1).forEach(W=>{W.style[k]=`${T}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let k=0;y.forEach(D=>{k+=D+(T||0)}),k-=T;const W=k-o;h=h.map(D=>D<=0?-b:D>W?W+E:D)}if(n.centerInsufficientSlides){let k=0;if(y.forEach(W=>{k+=W+(T||0)}),k-=T,k{h[O]=D-W}),g.forEach((D,O)=>{g[O]=D+W})}}if(Object.assign(t,{slides:f,snapGrid:h,slidesGrid:g,slidesSizesGrid:y}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Fs(i,"--swiper-centered-offset-before",`${-h[0]}px`),Fs(i,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const k=-t.snapGrid[0],W=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(D=>D+k),t.slidesGrid=t.slidesGrid.map(D=>D+W)}if(d!==c&&t.emit("slidesLengthChange"),h.length!==_&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),g.length!==v&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),!u&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const k=`${n.containerModifierClass}backface-hidden`,W=t.el.classList.contains(k);d<=n.maxBackfaceHiddenSlides?W||t.el.classList.add(k):W&&t.el.classList.remove(k)}}function k2(t){const e=this,r=[],n=e.virtual&&e.params.virtual.enabled;let i=0,s;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=a=>n?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{r.push(a)});else for(s=0;se.slides.length&&!n)break;r.push(o(a))}else r.push(o(e.activeIndex));for(s=0;si?a:i}(i||i===0)&&(e.wrapperEl.style.height=`${i}px`)}function D2(){const t=this,e=t.slides,r=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n"u"&&e.updateSlidesOffset();let o=-t;i&&(o=t),n.forEach(l=>{l.classList.remove(r.slideVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=r.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l=0&&h1&&g<=e.size||h<=0&&g>=e.size)&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(l),n[l].classList.add(r.slideVisibleClass)),u.progress=i?-f:f,u.originalProgress=i?-d:d}}function F2(t){const e=this;if(typeof t>"u"){const c=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*c||0}const r=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:s,isEnd:o,progressLoop:a}=e;const l=s,u=o;if(n===0)i=0,s=!0,o=!0;else{i=(t-e.minTranslate())/n;const c=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;s=c||i<=0,o=f||i>=1,c&&(i=0),f&&(i=1)}if(r.loop){const c=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),d=e.slidesGrid[c],h=e.slidesGrid[f],g=e.slidesGrid[e.slidesGrid.length-1],y=Math.abs(t);y>=d?a=(y-d)/g:a=(y+g-h)/g,a>1&&(a-=1)}Object.assign(e,{progress:i,progressLoop:a,isBeginning:s,isEnd:o}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&e.updateSlidesProgress(t),s&&!l&&e.emit("reachBeginning toEdge"),o&&!u&&e.emit("reachEnd toEdge"),(l&&!s||u&&!o)&&e.emit("fromEdge"),e.emit("progress",i)}function U2(){const t=this,{slides:e,params:r,slidesEl:n,activeIndex:i}=t,s=t.virtual&&r.virtual.enabled,o=l=>Qe(n,`.${r.slideClass}${l}, swiper-slide${l}`)[0];e.forEach(l=>{l.classList.remove(r.slideActiveClass,r.slideNextClass,r.slidePrevClass)});let a;if(s)if(r.loop){let l=i-t.virtual.slidesBefore;l<0&&(l=t.virtual.slides.length+l),l>=t.virtual.slides.length&&(l-=t.virtual.slides.length),a=o(`[data-swiper-slide-index="${l}"]`)}else a=o(`[data-swiper-slide-index="${i}"]`);else a=e[i];if(a){a.classList.add(r.slideActiveClass);let l=T2(a,`.${r.slideClass}, swiper-slide`)[0];r.loop&&!l&&(l=e[0]),l&&l.classList.add(r.slideNextClass);let u=x2(a,`.${r.slideClass}, swiper-slide`)[0];r.loop&&!u===0&&(u=e[e.length-1]),u&&u.classList.add(r.slidePrevClass)}t.emitSlidesClasses()}const La=(t,e)=>{if(!t||t.destroyed||!t.params)return;const r=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(r());if(n){let i=n.querySelector(`.${t.params.lazyPreloaderClass}`);!i&&t.isElement&&(n.shadowRoot?i=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(i=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},$c=(t,e)=>{if(!t.slides[e])return;const r=t.slides[e].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},nd=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const r=t.slides.length;if(!r||!e||e<0)return;e=Math.min(e,r);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),i=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=i,a=[o-e];a.push(...Array.from({length:e}).map((l,u)=>o+n+u)),t.slides.forEach((l,u)=>{a.includes(l.column)&&$c(t,u)});return}const s=i+n-1;if(t.params.rewind||t.params.loop)for(let o=i-e;o<=s+e;o+=1){const a=(o%r+r)%r;(as)&&$c(t,a)}else for(let o=Math.max(i-e,0);o<=Math.min(s+e,r-1);o+=1)o!==i&&(o>s||o=e[s]&&n=e[s]&&n=e[s]&&(i=s);return r.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function z2(t){const e=this,r=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:i,activeIndex:s,realIndex:o,snapIndex:a}=e;let l=t,u;const c=d=>{let h=d-e.virtual.slidesBefore;return h<0&&(h=e.virtual.slides.length+h),h>=e.virtual.slides.length&&(h-=e.virtual.slides.length),h};if(typeof l>"u"&&(l=j2(e)),n.indexOf(r)>=0)u=n.indexOf(r);else{const d=Math.min(i.slidesPerGroupSkip,l);u=d+Math.floor((l-d)/i.slidesPerGroup)}if(u>=n.length&&(u=n.length-1),l===s){u!==a&&(e.snapIndex=u,e.emit("snapIndexChange")),e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=c(l));return}let f;e.virtual&&i.virtual.enabled&&i.loop?f=c(l):e.slides[l]?f=parseInt(e.slides[l].getAttribute("data-swiper-slide-index")||l,10):f=l,Object.assign(e,{previousSnapIndex:a,snapIndex:u,previousRealIndex:o,realIndex:f,previousIndex:s,activeIndex:l}),e.initialized&&nd(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(o!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function H2(t,e){const r=this,n=r.params;let i=t.closest(`.${n.slideClass}, swiper-slide`);!i&&r.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(a=>{!i&&a.matches&&a.matches(`.${n.slideClass}, swiper-slide`)&&(i=a)});let s=!1,o;if(i){for(let a=0;al?c=l:n&&to?a="next":s=l.length&&(b=l.length-1);const E=-l[b];if(a.normalizeSlideIndex)for(let v=0;v=M&&T=M&&T=M&&(o=v)}if(s.initialized&&o!==f&&(!s.allowSlideNext&&(d?E>s.translate&&E>s.minTranslate():Es.translate&&E>s.maxTranslate()&&(f||0)!==o))return!1;o!==(c||0)&&r&&s.emit("beforeSlideChangeStart"),s.updateProgress(E);let _;if(o>f?_="next":o0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[v?"scrollLeft":"scrollTop"]=T})):h[v?"scrollLeft":"scrollTop"]=T,M&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return xv({swiper:s,targetPosition:T,side:v?"left":"top"}),!0;h.scrollTo({[v?"left":"top"]:T,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(E),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,n),s.transitionStart(r,_),e===0?s.transitionEnd(r,_):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(T){!s||s.destroyed||T.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(r,_))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function rF(t,e,r,n){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),r===void 0&&(r=!0),typeof t=="string"&&(t=parseInt(t,10));const i=this;let s=t;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?s=s+i.virtual.slidesBefore:s=i.getSlideIndexByData(s)),i.slideTo(s,e,r,n)}function nF(t,e,r){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this,{enabled:i,params:s,animating:o}=n;if(!i)return n;let a=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(a=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex{n.slideTo(n.activeIndex+l,t,e,r)}),!0}return s.rewind&&n.isEnd?n.slideTo(0,t,e,r):n.slideTo(n.activeIndex+l,t,e,r)}function iF(t,e,r){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this,{params:i,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:u}=n;if(!l)return n;const c=n.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const f=a?n.translate:-n.translate;function d(E){return E<0?-Math.floor(Math.abs(E)):Math.floor(E)}const h=d(f),g=s.map(E=>d(E));let y=s[g.indexOf(h)-1];if(typeof y>"u"&&i.cssMode){let E;s.forEach((_,v)=>{h>=_&&(E=v)}),typeof E<"u"&&(y=s[E>0?E-1:E])}let b=0;if(typeof y<"u"&&(b=o.indexOf(y),b<0&&(b=n.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(b=b-n.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),i.rewind&&n.isBeginning){const E=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(E,t,e,r)}else if(i.loop&&n.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{n.slideTo(b,t,e,r)}),!0;return n.slideTo(b,t,e,r)}function sF(t,e,r){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this;return n.slideTo(n.activeIndex,t,e,r)}function oF(t,e,r,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),n===void 0&&(n=.5);const i=this;let s=i.activeIndex;const o=Math.min(i.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){const u=i.snapGrid[a],c=i.snapGrid[a+1];l-u>(c-u)*n&&(s+=i.params.slidesPerGroup)}else{const u=i.snapGrid[a-1],c=i.snapGrid[a];l-u<=(c-u)*n&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,t,e,r)}function aF(){const t=this,{params:e,slidesEl:r}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let i=t.clickedIndex,s;const o=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?it.slides.length-t.loopedSlides+n/2?(t.loopFix(),i=t.getSlideIndex(Qe(r,`${o}[data-swiper-slide-index="${s}"]`)[0]),Qn(()=>{t.slideTo(i)})):t.slideTo(i):i>t.slides.length-n?(t.loopFix(),i=t.getSlideIndex(Qe(r,`${o}[data-swiper-slide-index="${s}"]`)[0]),Qn(()=>{t.slideTo(i)})):t.slideTo(i)}else t.slideTo(i)}var lF={slideTo:tF,slideToLoop:rF,slideNext:nF,slidePrev:iF,slideReset:sF,slideToClosest:oF,slideToClickedSlide:aF};function uF(t){const e=this,{params:r,slidesEl:n}=e;if(!r.loop||e.virtual&&e.params.virtual.enabled)return;Qe(n,`.${r.slideClass}, swiper-slide`).forEach((s,o)=>{s.setAttribute("data-swiper-slide-index",o)}),e.loopFix({slideRealIndex:t,direction:r.centeredSlides?void 0:"next"})}function cF(t){let{slideRealIndex:e,slideTo:r=!0,direction:n,setTranslate:i,activeSlideIndex:s,byController:o,byMousewheel:a}=t===void 0?{}:t;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:u,allowSlidePrev:c,allowSlideNext:f,slidesEl:d,params:h}=l;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&h.virtual.enabled){r&&(!h.centeredSlides&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):h.centeredSlides&&l.snapIndex"u"?s=l.getSlideIndex(l.slides.filter($=>$.classList.contains(h.slideActiveClass))[0]):_=s;const v=n==="next"||!n,T=n==="prev"||!n;let M=0,I=0;if(sl.slides.length-y*2){I=Math.max(s-(l.slides.length-y*2),h.slidesPerGroup);for(let $=0;${l.slides[$].swiperLoopMoveDOM=!0,d.prepend(l.slides[$]),l.slides[$].swiperLoopMoveDOM=!1}),v&&E.forEach($=>{l.slides[$].swiperLoopMoveDOM=!0,d.append(l.slides[$]),l.slides[$].swiperLoopMoveDOM=!1}),l.recalcSlides(),h.slidesPerView==="auto"&&l.updateSlides(),h.watchSlidesProgress&&l.updateSlidesOffset(),r){if(b.length>0&&T)if(typeof e>"u"){const $=l.slidesGrid[_],L=l.slidesGrid[_+M]-$;a?l.setTranslate(l.translate-L):(l.slideTo(_+M,0,!1,!0),i&&(l.touches[l.isHorizontal()?"startX":"startY"]+=L,l.touchEventsData.currentTranslate=l.translate))}else i&&(l.slideToLoop(e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate);else if(E.length>0&&v)if(typeof e>"u"){const $=l.slidesGrid[_],L=l.slidesGrid[_-I]-$;a?l.setTranslate(l.translate-L):(l.slideTo(_-I,0,!1,!0),i&&(l.touches[l.isHorizontal()?"startX":"startY"]+=L,l.touchEventsData.currentTranslate=l.translate))}else l.slideToLoop(e,0,!1,!0)}if(l.allowSlidePrev=c,l.allowSlideNext=f,l.controller&&l.controller.control&&!o){const $={slideRealIndex:e,direction:n,setTranslate:i,activeSlideIndex:s,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(F=>{!F.destroyed&&F.params.loop&&F.loopFix({...$,slideTo:F.params.slidesPerView===h.slidesPerView?r:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...$,slideTo:l.controller.control.params.slidesPerView===h.slidesPerView?r:!1})}l.emit("loopFix")}function fF(){const t=this,{params:e,slidesEl:r}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(i=>{const s=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;n[s]=i}),t.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),n.forEach(i=>{r.append(i)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var dF={loopCreate:uF,loopFix:cF,loopDestroy:fF};function hF(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const r=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),r.style.cursor="move",r.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function pF(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var gF={setGrabCursor:hF,unsetGrabCursor:pF};function mF(t,e){e===void 0&&(e=this);function r(n){if(!n||n===st()||n===je())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(t);return!i&&!n.getRootNode?null:i||r(n.getRootNode().host)}return r(e)}function yF(t){const e=this,r=st(),n=je(),i=e.touchEventsData;i.evCache.push(t);const{params:s,touches:o,enabled:a}=e;if(!a||!s.simulateTouch&&t.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let l=t;l.originalEvent&&(l=l.originalEvent);let u=l.target;if(s.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(u)||"which"in l&&l.which===3||"button"in l&&l.button>0||i.isTouched&&i.isMoved)return;const c=!!s.noSwipingClass&&s.noSwipingClass!=="",f=t.composedPath?t.composedPath():t.path;c&&l.target&&l.target.shadowRoot&&f&&(u=f[0]);const d=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,h=!!(l.target&&l.target.shadowRoot);if(s.noSwiping&&(h?mF(d,u):u.closest(d))){e.allowClick=!0;return}if(s.swipeHandler&&!u.closest(s.swipeHandler))return;o.currentX=l.pageX,o.currentY=l.pageY;const g=o.currentX,y=o.currentY,b=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,E=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(b&&(g<=E||g>=n.innerWidth-E))if(b==="prevent")t.preventDefault();else return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=g,o.startY=y,i.touchStartTime=Ct(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let _=!0;u.matches(i.focusableElements)&&(_=!1,u.nodeName==="SELECT"&&(i.isTouched=!1)),r.activeElement&&r.activeElement.matches(i.focusableElements)&&r.activeElement!==u&&r.activeElement.blur();const v=_&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||v)&&!u.isContentEditable&&l.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function wF(t){const e=st(),r=this,n=r.touchEventsData,{params:i,touches:s,rtlTranslate:o,enabled:a}=r;if(!a||!i.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),!n.isTouched){n.startMoving&&n.isScrolling&&r.emit("touchMoveOpposite",l);return}const u=n.evCache.findIndex($=>$.pointerId===l.pointerId);u>=0&&(n.evCache[u]=l);const c=n.evCache.length>1?n.evCache[0]:l,f=c.pageX,d=c.pageY;if(l.preventedByNestedSwiper){s.startX=f,s.startY=d;return}if(!r.allowTouchMove){l.target.matches(n.focusableElements)||(r.allowClick=!1),n.isTouched&&(Object.assign(s,{startX:f,startY:d,prevX:r.touches.currentX,prevY:r.touches.currentY,currentX:f,currentY:d}),n.touchStartTime=Ct());return}if(i.touchReleaseOnEdges&&!i.loop){if(r.isVertical()){if(ds.startY&&r.translate>=r.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(fs.startX&&r.translate>=r.minTranslate())return}if(e.activeElement&&l.target===e.activeElement&&l.target.matches(n.focusableElements)){n.isMoved=!0,r.allowClick=!1;return}if(n.allowTouchCallbacks&&r.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;s.currentX=f,s.currentY=d;const h=s.currentX-s.startX,g=s.currentY-s.startY;if(r.params.threshold&&Math.sqrt(h**2+g**2)"u"){let $;r.isHorizontal()&&s.currentY===s.startY||r.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:h*h+g*g>=25&&($=Math.atan2(Math.abs(g),Math.abs(h))*180/Math.PI,n.isScrolling=r.isHorizontal()?$>i.touchAngle:90-$>i.touchAngle)}if(n.isScrolling&&r.emit("touchMoveOpposite",l),typeof n.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(n.startMoving=!0),n.isScrolling||r.zoom&&r.params.zoom&&r.params.zoom.enabled&&n.evCache.length>1){n.isTouched=!1;return}if(!n.startMoving)return;r.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let y=r.isHorizontal()?h:g,b=r.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(y=Math.abs(y)*(o?1:-1),b=Math.abs(b)*(o?1:-1)),s.diff=y,y*=i.touchRatio,o&&(y=-y,b=-b);const E=r.touchesDirection;r.swipeDirection=y>0?"prev":"next",r.touchesDirection=b>0?"prev":"next";const _=r.params.loop&&!i.cssMode,v=r.swipeDirection==="next"&&r.allowSlideNext||r.swipeDirection==="prev"&&r.allowSlidePrev;if(!n.isMoved){if(_&&v&&r.loopFix({direction:r.swipeDirection}),n.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const $=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});r.wrapperEl.dispatchEvent($)}n.allowMomentumBounce=!1,i.grabCursor&&(r.allowSlideNext===!0||r.allowSlidePrev===!0)&&r.setGrabCursor(!0),r.emit("sliderFirstMove",l)}let T;n.isMoved&&E!==r.touchesDirection&&_&&v&&Math.abs(y)>=1&&(r.loopFix({direction:r.swipeDirection,setTranslate:!0}),T=!0),r.emit("sliderMove",l),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let M=!0,I=i.resistanceRatio;if(i.touchReleaseOnEdges&&(I=0),y>0?(_&&v&&!T&&n.currentTranslate>(i.centeredSlides?r.minTranslate()-r.size/2:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>r.minTranslate()&&(M=!1,i.resistance&&(n.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+n.startTranslate+y)**I))):y<0&&(_&&v&&!T&&n.currentTranslate<(i.centeredSlides?r.maxTranslate()+r.size/2:r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-(i.slidesPerView==="auto"?r.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),n.currentTranslaten.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&!r.allowSlideNext&&(n.currentTranslate=n.startTranslate),i.threshold>0)if(Math.abs(y)>i.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,s.diff=r.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{n.currentTranslate=n.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&r.freeMode||i.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(n.currentTranslate),r.setTranslate(n.currentTranslate))}function bF(t){const e=this,r=e.touchEventsData,n=r.evCache.findIndex(v=>v.pointerId===t.pointerId);if(n>=0&&r.evCache.splice(n,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(t.type)&&!(["pointercancel","contextmenu"].includes(t.type)&&(e.browser.isSafari||e.browser.isWebView)))return;const{params:i,touches:s,rtlTranslate:o,slidesGrid:a,enabled:l}=e;if(!l||!i.simulateTouch&&t.pointerType==="mouse")return;let u=t;if(u.originalEvent&&(u=u.originalEvent),r.allowTouchCallbacks&&e.emit("touchEnd",u),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&i.grabCursor&&e.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}i.grabCursor&&r.isMoved&&r.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const c=Ct(),f=c-r.touchStartTime;if(e.allowClick){const v=u.path||u.composedPath&&u.composedPath();e.updateClickedSlide(v&&v[0]||u.target,v),e.emit("tap click",u),f<300&&c-r.lastClickTime<300&&e.emit("doubleTap doubleClick",u)}if(r.lastClickTime=Ct(),Qn(()=>{e.destroyed||(e.allowClick=!0)}),!r.isTouched||!r.isMoved||!e.swipeDirection||s.diff===0||r.currentTranslate===r.startTranslate){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;let d;if(i.followFinger?d=o?e.translate:-e.translate:d=-r.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:d});return}let h=0,g=e.slidesSizesGrid[0];for(let v=0;v=a[v]&&d=a[v]&&(h=v,g=a[a.length-1]-a[a.length-2])}let y=null,b=null;i.rewind&&(e.isBeginning?b=i.virtual&&i.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(y=0));const E=(d-a[h])/g,_=hi.longSwipesMs){if(!i.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(E>=i.longSwipesRatio?e.slideTo(i.rewind&&e.isEnd?y:h+_):e.slideTo(h)),e.swipeDirection==="prev"&&(E>1-i.longSwipesRatio?e.slideTo(h+_):b!==null&&E<0&&Math.abs(E)>i.longSwipesRatio?e.slideTo(b):e.slideTo(h))}else{if(!i.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(u.target===e.navigation.nextEl||u.target===e.navigation.prevEl)?u.target===e.navigation.nextEl?e.slideTo(h+_):e.slideTo(h):(e.swipeDirection==="next"&&e.slideTo(y!==null?y:h+_),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:h))}}function my(){const t=this,{params:e,el:r}=t;if(r&&r.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:i,snapGrid:s}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const a=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=i,t.allowSlideNext=n,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function _F(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function vF(){const t=this,{wrapperEl:e,rtlTranslate:r,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let i;const s=t.maxTranslate()-t.minTranslate();s===0?i=0:i=(t.translate-t.minTranslate())/s,i!==t.progress&&t.updateProgress(r?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function EF(t){const e=this;La(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}let yy=!1;function SF(){}const Mv=(t,e)=>{const r=st(),{params:n,el:i,wrapperEl:s,device:o}=t,a=!!n.nested,l=e==="on"?"addEventListener":"removeEventListener",u=e;i[l]("pointerdown",t.onTouchStart,{passive:!1}),r[l]("pointermove",t.onTouchMove,{passive:!1,capture:a}),r[l]("pointerup",t.onTouchEnd,{passive:!0}),r[l]("pointercancel",t.onTouchEnd,{passive:!0}),r[l]("pointerout",t.onTouchEnd,{passive:!0}),r[l]("pointerleave",t.onTouchEnd,{passive:!0}),r[l]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&i[l]("click",t.onClick,!0),n.cssMode&&s[l]("scroll",t.onScroll),n.updateOnWindowResize?t[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",my,!0):t[u]("observerUpdate",my,!0),i[l]("load",t.onLoad,{capture:!0})};function xF(){const t=this,e=st(),{params:r}=t;t.onTouchStart=yF.bind(t),t.onTouchMove=wF.bind(t),t.onTouchEnd=bF.bind(t),r.cssMode&&(t.onScroll=vF.bind(t)),t.onClick=_F.bind(t),t.onLoad=EF.bind(t),yy||(e.addEventListener("touchstart",SF),yy=!0),Mv(t,"on")}function TF(){Mv(this,"off")}var AF={attachEvents:xF,detachEvents:TF};const wy=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function MF(){const t=this,{realIndex:e,initialized:r,params:n,el:i}=t,s=n.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const o=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const l=(o in s?s[o]:void 0)||t.originalParams,u=wy(t,n),c=wy(t,l),f=n.enabled;u&&!c?(i.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&c&&(i.classList.add(`${n.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&n.grid.fill==="column")&&i.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(E=>{if(typeof l[E]>"u")return;const _=n[E]&&n[E].enabled,v=l[E]&&l[E].enabled;_&&!v&&t[E].disable(),!_&&v&&t[E].enable()});const d=l.direction&&l.direction!==n.direction,h=n.loop&&(l.slidesPerView!==n.slidesPerView||d),g=n.loop;d&&r&&t.changeDirection(),vt(t.params,l);const y=t.params.enabled,b=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!y?t.disable():!f&&y&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",l),r&&(h?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!g&&b?(t.loopCreate(e),t.updateSlides()):g&&!b&&t.loopDestroy()),t.emit("breakpoint",l)}function CF(t,e,r){if(e===void 0&&(e="window"),!t||e==="container"&&!r)return;let n=!1;const i=je(),s=e==="window"?i.innerHeight:r.clientHeight,o=Object.keys(t).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:s*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a{typeof n=="object"?Object.keys(n).forEach(i=>{n[i]&&r.push(e+i)}):typeof n=="string"&&r.push(e+n)}),r}function PF(){const t=this,{classNames:e,params:r,rtl:n,el:i,device:s}=t,o=OF(["initialized",r.direction,{"free-mode":t.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);e.push(...o),i.classList.add(...e),t.emitContainerClasses()}function RF(){const t=this,{el:e,classNames:r}=t;e.classList.remove(...r),t.emitContainerClasses()}var LF={addClasses:PF,removeClasses:RF};function NF(){const t=this,{isLocked:e,params:r}=t,{slidesOffsetBefore:n}=r;if(n){const i=t.slides.length-1,s=t.slidesGrid[i]+t.slidesSizesGrid[i]+n*2;t.isLocked=t.size>s}else t.isLocked=t.snapGrid.length===1;r.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),r.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var $F={checkOverflow:NF},id={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function kF(t,e){return function(n){n===void 0&&(n={});const i=Object.keys(n)[0],s=n[i];if(typeof s!="object"||s===null){vt(e,n);return}if(t[i]===!0&&(t[i]={enabled:!0}),i==="navigation"&&t[i]&&t[i].enabled&&!t[i].prevEl&&!t[i].nextEl&&(t[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&t[i]&&t[i].enabled&&!t[i].el&&(t[i].auto=!0),!(i in t&&"enabled"in s)){vt(e,n);return}typeof t[i]=="object"&&!("enabled"in t[i])&&(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}),vt(e,n)}}const kc={eventsEmitter:L2,update:W2,translate:X2,transition:eF,slide:lF,loop:dF,grabCursor:gF,events:AF,breakpoints:IF,checkOverflow:$F,classes:LF},Dc={};class _t{constructor(){let e,r;for(var n=arguments.length,i=new Array(n),s=0;s1){const c=[];return o.querySelectorAll(r.el).forEach(f=>{const d=vt({},r,{el:f});c.push(new _t(d))}),c}const a=this;a.__swiper__=!0,a.support=Tv(),a.device=C2({userAgent:r.userAgent}),a.browser=O2(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],r.modules&&Array.isArray(r.modules)&&a.modules.push(...r.modules);const l={};a.modules.forEach(c=>{c({params:r,swiper:a,extendParams:kF(r,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const u=vt({},id,l);return a.params=vt({},u,Dc,r),a.originalParams=vt({},a.params),a.passedParams=vt({},r),a.params&&a.params.on&&Object.keys(a.params.on).forEach(c=>{a.on(c,a.params.on[c])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getSlideIndex(e){const{slidesEl:r,params:n}=this,i=Qe(r,`.${n.slideClass}, swiper-slide`),s=go(i[0]);return go(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(r=>r.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:r,params:n}=e;e.slides=Qe(r,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,r){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),o=(n.maxTranslate()-i)*e+i;n.translateTo(o,typeof r>"u"?0:r),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const r=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",r.join(" "))}getSlideClasses(e){const r=this;return r.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(r.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const r=[];e.slides.forEach(n=>{const i=e.getSlideClasses(n);r.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)}),e.emit("_slideClasses",r)}slidesPerViewDynamic(e,r){e===void 0&&(e="current"),r===void 0&&(r=!1);const n=this,{params:i,slides:s,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:u}=n;let c=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let f=s[u]?s[u].swiperSlideSize:0,d;for(let h=u+1;hl&&(d=!0));for(let h=u-1;h>=0;h-=1)s[h]&&!d&&(f+=s[h].swiperSlideSize,c+=1,f>l&&(d=!0))}else if(e==="current")for(let f=u+1;f=0;f-=1)o[u]-o[f]{o.complete&&La(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function i(){const o=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const o=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(o.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||i()}n.watchOverflow&&r!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,r){r===void 0&&(r=!0);const n=this,i=n.params.direction;return e||(e=i==="horizontal"?"vertical":"horizontal"),e===i||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),n.emit("changeDirection"),r&&n.update()),n}changeLanguageDirection(e){const r=this;r.rtl&&e==="rtl"||!r.rtl&&e==="ltr"||(r.rtl=e==="rtl",r.rtlTranslate=r.params.direction==="horizontal"&&r.rtl,r.rtl?(r.el.classList.add(`${r.params.containerModifierClass}rtl`),r.el.dir="rtl"):(r.el.classList.remove(`${r.params.containerModifierClass}rtl`),r.el.dir="ltr"),r.update())}mount(e){const r=this;if(r.mounted)return!0;let n=e||r.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=r,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(r.isElement=!0);const i=()=>`.${(r.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):Qe(n,i())[0])();return!o&&r.params.createElements&&(o=Vt("div",r.params.wrapperClass),n.append(o),Qe(n,`.${r.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(r,{el:n,wrapperEl:o,slidesEl:r.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:o,hostEl:r.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||sn(n,"direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||sn(n,"direction")==="rtl"),wrongRTL:sn(o,"display")==="-webkit-box"}),!0}init(e){const r=this;if(r.initialized||r.mount(e)===!1)return r;r.emit("beforeInit"),r.params.breakpoints&&r.setBreakpoint(),r.addClasses(),r.updateSize(),r.updateSlides(),r.params.watchOverflow&&r.checkOverflow(),r.params.grabCursor&&r.enabled&&r.setGrabCursor(),r.params.loop&&r.virtual&&r.params.virtual.enabled?r.slideTo(r.params.initialSlide+r.virtual.slidesBefore,0,r.params.runCallbacksOnInit,!1,!0):r.slideTo(r.params.initialSlide,0,r.params.runCallbacksOnInit,!1,!0),r.params.loop&&r.loopCreate(),r.attachEvents();const i=[...r.el.querySelectorAll('[loading="lazy"]')];return r.isElement&&i.push(...r.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(s=>{s.complete?La(r,s):s.addEventListener("load",o=>{La(r,o.target)})}),nd(r),r.initialized=!0,nd(r),r.emit("init"),r.emit("afterInit"),r}destroy(e,r){e===void 0&&(e=!0),r===void 0&&(r=!0);const n=this,{params:i,el:s,wrapperEl:o,slides:a}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),r&&(n.removeClasses(),s.removeAttribute("style"),o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(l=>{n.off(l)}),e!==!1&&(n.el.swiper=null,v2(n)),n.destroyed=!0),null}static extendDefaults(e){vt(Dc,e)}static get extendedDefaults(){return Dc}static get defaults(){return id}static installModule(e){_t.prototype.__modules__||(_t.prototype.__modules__=[]);const r=_t.prototype.__modules__;typeof e=="function"&&r.indexOf(e)<0&&r.push(e)}static use(e){return Array.isArray(e)?(e.forEach(r=>_t.installModule(r)),_t):(_t.installModule(e),_t)}}Object.keys(kc).forEach(t=>{Object.keys(kc[t]).forEach(e=>{_t.prototype[e]=kc[t][e]})});_t.use([P2,R2]);var ct="top",St="bottom",xt="right",ft="left",vu="auto",us=[ct,St,xt,ft],Jn="start",Ki="end",Cv="clippingParents",Hh="viewport",wi="popper",Iv="reference",sd=us.reduce(function(t,e){return t.concat([e+"-"+Jn,e+"-"+Ki])},[]),Wh=[].concat(us,[vu]).reduce(function(t,e){return t.concat([e,e+"-"+Jn,e+"-"+Ki])},[]),Ov="beforeRead",Pv="read",Rv="afterRead",Lv="beforeMain",Nv="main",$v="afterMain",kv="beforeWrite",Dv="write",Bv="afterWrite",Fv=[Ov,Pv,Rv,Lv,Nv,$v,kv,Dv,Bv];function yr(t){return t?(t.nodeName||"").toLowerCase():null}function Tt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Zn(t){var e=Tt(t).Element;return t instanceof e||t instanceof Element}function Ot(t){var e=Tt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Vh(t){if(typeof ShadowRoot>"u")return!1;var e=Tt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function DF(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},i=e.attributes[r]||{},s=e.elements[r];!Ot(s)||!yr(s)||(Object.assign(s.style,n),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function BF(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var i=e.elements[n],s=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),a=o.reduce(function(l,u){return l[u]="",l},{});!Ot(i)||!yr(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const qh={name:"applyStyles",enabled:!0,phase:"write",fn:DF,effect:BF,requires:["computeStyles"]};function fr(t){return t.split("-")[0]}var Wn=Math.max,yl=Math.min,Gi=Math.round;function od(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Uv(){return!/^((?!chrome|android).)*safari/i.test(od())}function Xi(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),i=1,s=1;e&&Ot(t)&&(i=t.offsetWidth>0&&Gi(n.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Gi(n.height)/t.offsetHeight||1);var o=Zn(t)?Tt(t):window,a=o.visualViewport,l=!Uv()&&r,u=(n.left+(l&&a?a.offsetLeft:0))/i,c=(n.top+(l&&a?a.offsetTop:0))/s,f=n.width/i,d=n.height/s;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function Yh(t){var e=Xi(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function jv(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&Vh(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function jr(t){return Tt(t).getComputedStyle(t)}function FF(t){return["table","td","th"].indexOf(yr(t))>=0}function _n(t){return((Zn(t)?t.ownerDocument:t.document)||window.document).documentElement}function Eu(t){return yr(t)==="html"?t:t.assignedSlot||t.parentNode||(Vh(t)?t.host:null)||_n(t)}function by(t){return!Ot(t)||jr(t).position==="fixed"?null:t.offsetParent}function UF(t){var e=/firefox/i.test(od()),r=/Trident/i.test(od());if(r&&Ot(t)){var n=jr(t);if(n.position==="fixed")return null}var i=Eu(t);for(Vh(i)&&(i=i.host);Ot(i)&&["html","body"].indexOf(yr(i))<0;){var s=jr(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Ro(t){for(var e=Tt(t),r=by(t);r&&FF(r)&&jr(r).position==="static";)r=by(r);return r&&(yr(r)==="html"||yr(r)==="body"&&jr(r).position==="static")?e:r||UF(t)||e}function Kh(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Qs(t,e,r){return Wn(t,yl(e,r))}function jF(t,e,r){var n=Qs(t,e,r);return n>r?r:n}function zv(){return{top:0,right:0,bottom:0,left:0}}function Hv(t){return Object.assign({},zv(),t)}function Wv(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var zF=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Hv(typeof e!="number"?e:Wv(e,us))};function HF(t){var e,r=t.state,n=t.name,i=t.options,s=r.elements.arrow,o=r.modifiersData.popperOffsets,a=fr(r.placement),l=Kh(a),u=[ft,xt].indexOf(a)>=0,c=u?"height":"width";if(!(!s||!o)){var f=zF(i.padding,r),d=Yh(s),h=l==="y"?ct:ft,g=l==="y"?St:xt,y=r.rects.reference[c]+r.rects.reference[l]-o[l]-r.rects.popper[c],b=o[l]-r.rects.reference[l],E=Ro(s),_=E?l==="y"?E.clientHeight||0:E.clientWidth||0:0,v=y/2-b/2,T=f[h],M=_-d[c]-f[g],I=_/2-d[c]/2+v,$=Qs(T,I,M),F=l;r.modifiersData[n]=(e={},e[F]=$,e.centerOffset=$-I,e)}}function WF(t){var e=t.state,r=t.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||jv(e.elements.popper,i)&&(e.elements.arrow=i))}const Vv={name:"arrow",enabled:!0,phase:"main",fn:HF,effect:WF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qi(t){return t.split("-")[1]}var VF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qF(t,e){var r=t.x,n=t.y,i=e.devicePixelRatio||1;return{x:Gi(r*i)/i||0,y:Gi(n*i)/i||0}}function _y(t){var e,r=t.popper,n=t.popperRect,i=t.placement,s=t.variation,o=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,f=t.isFixed,d=o.x,h=d===void 0?0:d,g=o.y,y=g===void 0?0:g,b=typeof c=="function"?c({x:h,y}):{x:h,y};h=b.x,y=b.y;var E=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),v=ft,T=ct,M=window;if(u){var I=Ro(r),$="clientHeight",F="clientWidth";if(I===Tt(r)&&(I=_n(r),jr(I).position!=="static"&&a==="absolute"&&($="scrollHeight",F="scrollWidth")),I=I,i===ct||(i===ft||i===xt)&&s===Ki){T=St;var L=f&&I===M&&M.visualViewport?M.visualViewport.height:I[$];y-=L-n.height,y*=l?1:-1}if(i===ft||(i===ct||i===St)&&s===Ki){v=xt;var U=f&&I===M&&M.visualViewport?M.visualViewport.width:I[F];h-=U-n.width,h*=l?1:-1}}var k=Object.assign({position:a},u&&VF),W=c===!0?qF({x:h,y},Tt(r)):{x:h,y};if(h=W.x,y=W.y,l){var D;return Object.assign({},k,(D={},D[T]=_?"0":"",D[v]=E?"0":"",D.transform=(M.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",D))}return Object.assign({},k,(e={},e[T]=_?y+"px":"",e[v]=E?h+"px":"",e.transform="",e))}function YF(t){var e=t.state,r=t.options,n=r.gpuAcceleration,i=n===void 0?!0:n,s=r.adaptive,o=s===void 0?!0:s,a=r.roundOffsets,l=a===void 0?!0:a,u={placement:fr(e.placement),variation:Qi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,_y(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,_y(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Gh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:YF,data:{}};var oa={passive:!0};function KF(t){var e=t.state,r=t.instance,n=t.options,i=n.scroll,s=i===void 0?!0:i,o=n.resize,a=o===void 0?!0:o,l=Tt(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(c){c.addEventListener("scroll",r.update,oa)}),a&&l.addEventListener("resize",r.update,oa),function(){s&&u.forEach(function(c){c.removeEventListener("scroll",r.update,oa)}),a&&l.removeEventListener("resize",r.update,oa)}}const Xh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:KF,data:{}};var GF={left:"right",right:"left",bottom:"top",top:"bottom"};function Na(t){return t.replace(/left|right|bottom|top/g,function(e){return GF[e]})}var XF={start:"end",end:"start"};function vy(t){return t.replace(/start|end/g,function(e){return XF[e]})}function Qh(t){var e=Tt(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Jh(t){return Xi(_n(t)).left+Qh(t).scrollLeft}function QF(t,e){var r=Tt(t),n=_n(t),i=r.visualViewport,s=n.clientWidth,o=n.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;var u=Uv();(u||!u&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a+Jh(t),y:l}}function JF(t){var e,r=_n(t),n=Qh(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=Wn(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Wn(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-n.scrollLeft+Jh(t),l=-n.scrollTop;return jr(i||r).direction==="rtl"&&(a+=Wn(r.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function Zh(t){var e=jr(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function qv(t){return["html","body","#document"].indexOf(yr(t))>=0?t.ownerDocument.body:Ot(t)&&Zh(t)?t:qv(Eu(t))}function Js(t,e){var r;e===void 0&&(e=[]);var n=qv(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),s=Tt(n),o=i?[s].concat(s.visualViewport||[],Zh(n)?n:[]):n,a=e.concat(o);return i?a:a.concat(Js(Eu(o)))}function ad(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ZF(t,e){var r=Xi(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Ey(t,e,r){return e===Hh?ad(QF(t,r)):Zn(e)?ZF(e,r):ad(JF(_n(t)))}function eU(t){var e=Js(Eu(t)),r=["absolute","fixed"].indexOf(jr(t).position)>=0,n=r&&Ot(t)?Ro(t):t;return Zn(n)?e.filter(function(i){return Zn(i)&&jv(i,n)&&yr(i)!=="body"}):[]}function tU(t,e,r,n){var i=e==="clippingParents"?eU(t):[].concat(e),s=[].concat(i,[r]),o=s[0],a=s.reduce(function(l,u){var c=Ey(t,u,n);return l.top=Wn(c.top,l.top),l.right=yl(c.right,l.right),l.bottom=yl(c.bottom,l.bottom),l.left=Wn(c.left,l.left),l},Ey(t,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Yv(t){var e=t.reference,r=t.element,n=t.placement,i=n?fr(n):null,s=n?Qi(n):null,o=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,l;switch(i){case ct:l={x:o,y:e.y-r.height};break;case St:l={x:o,y:e.y+e.height};break;case xt:l={x:e.x+e.width,y:a};break;case ft:l={x:e.x-r.width,y:a};break;default:l={x:e.x,y:e.y}}var u=i?Kh(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case Jn:l[u]=l[u]-(e[c]/2-r[c]/2);break;case Ki:l[u]=l[u]+(e[c]/2-r[c]/2);break}}return l}function Ji(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=n===void 0?t.placement:n,s=r.strategy,o=s===void 0?t.strategy:s,a=r.boundary,l=a===void 0?Cv:a,u=r.rootBoundary,c=u===void 0?Hh:u,f=r.elementContext,d=f===void 0?wi:f,h=r.altBoundary,g=h===void 0?!1:h,y=r.padding,b=y===void 0?0:y,E=Hv(typeof b!="number"?b:Wv(b,us)),_=d===wi?Iv:wi,v=t.rects.popper,T=t.elements[g?_:d],M=tU(Zn(T)?T:T.contextElement||_n(t.elements.popper),l,c,o),I=Xi(t.elements.reference),$=Yv({reference:I,element:v,strategy:"absolute",placement:i}),F=ad(Object.assign({},v,$)),L=d===wi?F:I,U={top:M.top-L.top+E.top,bottom:L.bottom-M.bottom+E.bottom,left:M.left-L.left+E.left,right:L.right-M.right+E.right},k=t.modifiersData.offset;if(d===wi&&k){var W=k[i];Object.keys(U).forEach(function(D){var O=[xt,St].indexOf(D)>=0?1:-1,j=[ct,St].indexOf(D)>=0?"y":"x";U[D]+=W[j]*O})}return U}function rU(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=r.boundary,s=r.rootBoundary,o=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?Wh:l,c=Qi(n),f=c?a?sd:sd.filter(function(g){return Qi(g)===c}):us,d=f.filter(function(g){return u.indexOf(g)>=0});d.length===0&&(d=f);var h=d.reduce(function(g,y){return g[y]=Ji(t,{placement:y,boundary:i,rootBoundary:s,padding:o})[fr(y)],g},{});return Object.keys(h).sort(function(g,y){return h[g]-h[y]})}function nU(t){if(fr(t)===vu)return[];var e=Na(t);return[vy(t),e,vy(e)]}function iU(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var i=r.mainAxis,s=i===void 0?!0:i,o=r.altAxis,a=o===void 0?!0:o,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,g=h===void 0?!0:h,y=r.allowedAutoPlacements,b=e.options.placement,E=fr(b),_=E===b,v=l||(_||!g?[Na(b)]:nU(b)),T=[b].concat(v).reduce(function(me,be){return me.concat(fr(be)===vu?rU(e,{placement:be,boundary:c,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:y}):be)},[]),M=e.rects.reference,I=e.rects.popper,$=new Map,F=!0,L=T[0],U=0;U=0,j=O?"width":"height",Q=Ji(e,{placement:k,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),H=O?D?xt:ft:D?St:ct;M[j]>I[j]&&(H=Na(H));var K=Na(H),X=[];if(s&&X.push(Q[W]<=0),a&&X.push(Q[H]<=0,Q[K]<=0),X.every(function(me){return me})){L=k,F=!1;break}$.set(k,X)}if(F)for(var Z=g?3:1,ce=function(be){var G=T.find(function(Y){var ne=$.get(Y);if(ne)return ne.slice(0,be).every(function(ee){return ee})});if(G)return L=G,"break"},pe=Z;pe>0;pe--){var de=ce(pe);if(de==="break")break}e.placement!==L&&(e.modifiersData[n]._skip=!0,e.placement=L,e.reset=!0)}}const Kv={name:"flip",enabled:!0,phase:"main",fn:iU,requiresIfExists:["offset"],data:{_skip:!1}};function Sy(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function xy(t){return[ct,xt,St,ft].some(function(e){return t[e]>=0})}function sU(t){var e=t.state,r=t.name,n=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=Ji(e,{elementContext:"reference"}),a=Ji(e,{altBoundary:!0}),l=Sy(o,n),u=Sy(a,i,s),c=xy(l),f=xy(u);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Gv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sU};function oU(t,e,r){var n=fr(t),i=[ft,ct].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[ft,xt].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}function aU(t){var e=t.state,r=t.options,n=t.name,i=r.offset,s=i===void 0?[0,0]:i,o=Wh.reduce(function(c,f){return c[f]=oU(f,e.rects,s),c},{}),a=o[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=o}const Xv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:aU};function lU(t){var e=t.state,r=t.name;e.modifiersData[r]=Yv({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const ep={name:"popperOffsets",enabled:!0,phase:"read",fn:lU,data:{}};function uU(t){return t==="x"?"y":"x"}function cU(t){var e=t.state,r=t.options,n=t.name,i=r.mainAxis,s=i===void 0?!0:i,o=r.altAxis,a=o===void 0?!1:o,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,g=r.tetherOffset,y=g===void 0?0:g,b=Ji(e,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),E=fr(e.placement),_=Qi(e.placement),v=!_,T=Kh(E),M=uU(T),I=e.modifiersData.popperOffsets,$=e.rects.reference,F=e.rects.popper,L=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,U=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,W={x:0,y:0};if(I){if(s){var D,O=T==="y"?ct:ft,j=T==="y"?St:xt,Q=T==="y"?"height":"width",H=I[T],K=H+b[O],X=H-b[j],Z=h?-F[Q]/2:0,ce=_===Jn?$[Q]:F[Q],pe=_===Jn?-F[Q]:-$[Q],de=e.elements.arrow,me=h&&de?Yh(de):{width:0,height:0},be=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:zv(),G=be[O],Y=be[j],ne=Qs(0,$[Q],me[Q]),ee=v?$[Q]/2-Z-ne-G-U.mainAxis:ce-ne-G-U.mainAxis,ue=v?-$[Q]/2+Z+ne+Y+U.mainAxis:pe+ne+Y+U.mainAxis,P=e.elements.arrow&&Ro(e.elements.arrow),w=P?T==="y"?P.clientTop||0:P.clientLeft||0:0,S=(D=k==null?void 0:k[T])!=null?D:0,A=H+ee-S-w,B=H+ue-S,z=Qs(h?yl(K,A):K,H,h?Wn(X,B):X);I[T]=z,W[T]=z-H}if(a){var q,ie=T==="x"?ct:ft,re=T==="x"?St:xt,ae=I[M],se=M==="y"?"height":"width",he=ae+b[ie],fe=ae-b[re],ge=[ct,ft].indexOf(E)!==-1,C=(q=k==null?void 0:k[M])!=null?q:0,N=ge?he:ae-$[se]-F[se]-C+U.altAxis,x=ge?ae+$[se]+F[se]-C-U.altAxis:fe,p=h&&ge?jF(N,ae,x):Qs(h?N:he,ae,h?x:fe);I[M]=p,W[M]=p-ae}e.modifiersData[n]=W}}const Qv={name:"preventOverflow",enabled:!0,phase:"main",fn:cU,requiresIfExists:["offset"]};function fU(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function dU(t){return t===Tt(t)||!Ot(t)?Qh(t):fU(t)}function hU(t){var e=t.getBoundingClientRect(),r=Gi(e.width)/t.offsetWidth||1,n=Gi(e.height)/t.offsetHeight||1;return r!==1||n!==1}function pU(t,e,r){r===void 0&&(r=!1);var n=Ot(e),i=Ot(e)&&hU(e),s=_n(e),o=Xi(t,i,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((yr(e)!=="body"||Zh(s))&&(a=dU(e)),Ot(e)?(l=Xi(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=Jh(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function gU(t){var e=new Map,r=new Set,n=[];t.forEach(function(s){e.set(s.name,s)});function i(s){r.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!r.has(a)){var l=e.get(a);l&&i(l)}}),n.push(s)}return t.forEach(function(s){r.has(s.name)||i(s)}),n}function mU(t){var e=gU(t);return Fv.reduce(function(r,n){return r.concat(e.filter(function(i){return i.phase===n}))},[])}function yU(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function wU(t){var e=t.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var Ty={placement:"bottom",modifiers:[],strategy:"absolute"};function Ay(){for(var t=arguments.length,e=new Array(t),r=0;r"u"}function B0(t){return oe.isBuffer(t)}function qd(t){return Object.prototype.toString.call(t)}function Wu(t){return t<10?"0"+t.toString(10):t.toString(10)}var DT=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function BT(){var t=new Date,e=[Wu(t.getHours()),Wu(t.getMinutes()),Wu(t.getSeconds())].join(":");return[t.getDate(),DT[t.getMonth()],e].join(" ")}function F0(){console.log("%s - %s",BT(),Hl.apply(null,arguments))}function Yd(t,e){if(!e||!Wr(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}function U0(t,e){return Object.prototype.hasOwnProperty.call(t,e)}const FT={inherits:N0,_extend:Yd,log:F0,isBuffer:B0,isPrimitive:D0,isFunction:Ys,isError:qs,isDate:Ka,isObject:Wr,isRegExp:Vs,isUndefined:ar,isSymbol:k0,isString:yn,isNumber:Vd,isNullOrUndefined:Wd,isNull:Cr,isBoolean:Wl,isArray:Hd,inspect:lr,deprecate:zd,format:Hl,debuglog:$0},UT=Object.freeze(Object.defineProperty({__proto__:null,_extend:Yd,debuglog:$0,default:FT,deprecate:zd,format:Hl,inherits:N0,inspect:lr,isArray:Hd,isBoolean:Wl,isBuffer:B0,isDate:Ka,isError:qs,isFunction:Ys,isNull:Cr,isNullOrUndefined:Wd,isNumber:Vd,isObject:Wr,isPrimitive:D0,isRegExp:Vs,isString:yn,isSymbol:k0,isUndefined:ar,log:F0},Symbol.toStringTag,{value:"Module"})),j0=Nl(UT);var Vu,Gp;function jT(){if(Gp)return Vu;Gp=1;function t(g,y){var b=Object.keys(g);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(g);y&&(E=E.filter(function(_){return Object.getOwnPropertyDescriptor(g,_).enumerable})),b.push.apply(b,E)}return b}function e(g){for(var y=1;y0?this.tail.next=E:this.head=E,this.tail=E,++this.length}},{key:"unshift",value:function(b){var E={data:b,next:this.head};this.length===0&&(this.tail=E),this.head=E,++this.length}},{key:"shift",value:function(){if(this.length!==0){var b=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,b}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(b){if(this.length===0)return"";for(var E=this.head,_=""+E.data;E=E.next;)_+=b+E.data;return _}},{key:"concat",value:function(b){if(this.length===0)return u.alloc(0);for(var E=u.allocUnsafe(b>>>0),_=this.head,v=0;_;)h(_.data,E,v),v+=_.data.length,_=_.next;return E}},{key:"consume",value:function(b,E){var _;return bT.length?T.length:b;if(M===T.length?v+=T:v+=T.slice(0,b),b-=M,b===0){M===T.length?(++_,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=T.slice(M));break}++_}return this.length-=_,v}},{key:"_getBuffer",value:function(b){var E=u.allocUnsafe(b),_=this.head,v=1;for(_.data.copy(E),b-=_.data.length;_=_.next;){var T=_.data,M=b>T.length?T.length:b;if(T.copy(E,E.length-b,0,M),b-=M,b===0){M===T.length?(++v,_.next?this.head=_.next:this.head=this.tail=null):(this.head=_,_.data=T.slice(M));break}++v}return this.length-=v,E}},{key:d,value:function(b,E){return f(this,e(e({},E),{},{depth:0,customInspect:!1}))}}]),g}(),Vu}function zT(t,e){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,_e.nextTick(_f,this,t)):_e.nextTick(_f,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(s){!e&&s?r._writableState?r._writableState.errorEmitted?_e.nextTick(Ea,r):(r._writableState.errorEmitted=!0,_e.nextTick(Xp,r,s)):_e.nextTick(Xp,r,s):e?(_e.nextTick(Ea,r),e(s)):_e.nextTick(Ea,r)}),this)}function Xp(t,e){_f(t,e),Ea(t)}function Ea(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function HT(){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 _f(t,e){t.emit("error",e)}function WT(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}var z0={destroy:zT,undestroy:HT,errorOrDestroy:WT},ti={};function VT(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var H0={};function Nt(t,e,r){r||(r=Error);function n(s,o,a){return typeof e=="string"?e:e(s,o,a)}var i=function(s){VT(o,s);function o(a,l,u){return s.call(this,n(a,l,u))||this}return o}(r);i.prototype.name=r.name,i.prototype.code=t,H0[t]=i}function Qp(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map(function(n){return String(n)}),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:r===2?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}else return"of ".concat(e," ").concat(String(t))}function qT(t,e,r){return t.substr(!r||r<0?0:+r,e.length)===e}function YT(t,e,r){return(r===void 0||r>t.length)&&(r=t.length),t.substring(r-e.length,r)===e}function KT(t,e,r){return typeof r!="number"&&(r=0),r+e.length>t.length?!1:t.indexOf(e,r)!==-1}Nt("ERR_INVALID_OPT_VALUE",function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'},TypeError);Nt("ERR_INVALID_ARG_TYPE",function(t,e,r){var n;typeof e=="string"&&qT(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";var i;if(YT(t," argument"))i="The ".concat(t," ").concat(n," ").concat(Qp(e,"type"));else{var s=KT(t,".")?"property":"argument";i='The "'.concat(t,'" ').concat(s," ").concat(n," ").concat(Qp(e,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Nt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Nt("ERR_METHOD_NOT_IMPLEMENTED",function(t){return"The "+t+" method is not implemented"});Nt("ERR_STREAM_PREMATURE_CLOSE","Premature close");Nt("ERR_STREAM_DESTROYED",function(t){return"Cannot call "+t+" after a stream was destroyed"});Nt("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Nt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Nt("ERR_STREAM_WRITE_AFTER_END","write after end");Nt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Nt("ERR_UNKNOWN_ENCODING",function(t){return"Unknown encoding: "+t},TypeError);Nt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");ti.codes=H0;var GT=ti.codes.ERR_INVALID_OPT_VALUE;function XT(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function QT(t,e,r,n){var i=XT(e,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new GT(s,i)}return Math.floor(i)}return t.objectMode?16:16*1024}var W0={getHighWaterMark:QT},vf={exports:{}};typeof Object.create=="function"?vf.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:vf.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var ri=vf.exports,JT=ZT;function ZT(t,e){if(qu("noDeprecation"))return t;var r=!1;function n(){if(!r){if(qu("throwDeprecation"))throw new Error(e);qu("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}return n}function qu(t){try{if(!xe.localStorage)return!1}catch{return!1}var e=xe.localStorage[t];return e==null?!1:String(e).toLowerCase()==="true"}var Yu,Jp;function V0(){if(Jp)return Yu;Jp=1,Yu=F;function t(G){var Y=this;this.next=null,this.entry=null,this.finish=function(){be(Y,G)}}var e;F.WritableState=I;var r={deprecate:JT},n=p0,i=We.Buffer,s=(typeof xe<"u"?xe:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(G){return i.from(G)}function a(G){return i.isBuffer(G)||G instanceof s}var l=z0,u=W0,c=u.getHighWaterMark,f=ti.codes,d=f.ERR_INVALID_ARG_TYPE,h=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,y=f.ERR_STREAM_CANNOT_PIPE,b=f.ERR_STREAM_DESTROYED,E=f.ERR_STREAM_NULL_VALUES,_=f.ERR_STREAM_WRITE_AFTER_END,v=f.ERR_UNKNOWN_ENCODING,T=l.errorOrDestroy;ri(F,n);function M(){}function I(G,Y,ne){e=e||Ui(),G=G||{},typeof ne!="boolean"&&(ne=Y instanceof e),this.objectMode=!!G.objectMode,ne&&(this.objectMode=this.objectMode||!!G.writableObjectMode),this.highWaterMark=c(this,G,"writableHighWaterMark",ne),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ee=G.decodeStrings===!1;this.decodeStrings=!ee,this.defaultEncoding=G.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ue){Q(Y,ue)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=G.emitClose!==!1,this.autoDestroy=!!G.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new t(this)}I.prototype.getBuffer=function(){for(var Y=this.bufferedRequest,ne=[];Y;)ne.push(Y),Y=Y.next;return ne},function(){try{Object.defineProperty(I.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var $;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?($=Function.prototype[Symbol.hasInstance],Object.defineProperty(F,Symbol.hasInstance,{value:function(Y){return $.call(this,Y)?!0:this!==F?!1:Y&&Y._writableState instanceof I}})):$=function(Y){return Y instanceof this};function F(G){e=e||Ui();var Y=this instanceof e;if(!Y&&!$.call(F,this))return new F(G);this._writableState=new I(G,this,Y),this.writable=!0,G&&(typeof G.write=="function"&&(this._write=G.write),typeof G.writev=="function"&&(this._writev=G.writev),typeof G.destroy=="function"&&(this._destroy=G.destroy),typeof G.final=="function"&&(this._final=G.final)),n.call(this)}F.prototype.pipe=function(){T(this,new y)};function L(G,Y){var ne=new _;T(G,ne),_e.nextTick(Y,ne)}function U(G,Y,ne,ee){var ue;return ne===null?ue=new E:typeof ne!="string"&&!Y.objectMode&&(ue=new d("chunk",["string","Buffer"],ne)),ue?(T(G,ue),_e.nextTick(ee,ue),!1):!0}F.prototype.write=function(G,Y,ne){var ee=this._writableState,ue=!1,P=!ee.objectMode&&a(G);return P&&!i.isBuffer(G)&&(G=o(G)),typeof Y=="function"&&(ne=Y,Y=null),P?Y="buffer":Y||(Y=ee.defaultEncoding),typeof ne!="function"&&(ne=M),ee.ending?L(this,ne):(P||U(this,ee,G,ne))&&(ee.pendingcb++,ue=W(this,ee,P,G,Y,ne)),ue},F.prototype.cork=function(){this._writableState.corked++},F.prototype.uncork=function(){var G=this._writableState;G.corked&&(G.corked--,!G.writing&&!G.corked&&!G.bufferProcessing&&G.bufferedRequest&&X(this,G))},F.prototype.setDefaultEncoding=function(Y){if(typeof Y=="string"&&(Y=Y.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Y+"").toLowerCase())>-1))throw new v(Y);return this._writableState.defaultEncoding=Y,this},Object.defineProperty(F.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function k(G,Y,ne){return!G.objectMode&&G.decodeStrings!==!1&&typeof Y=="string"&&(Y=i.from(Y,ne)),Y}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function W(G,Y,ne,ee,ue,P){if(!ne){var w=k(Y,ee,ue);ee!==w&&(ne=!0,ue="buffer",ee=w)}var S=Y.objectMode?1:ee.length;Y.length+=S;var A=Y.length */(function(t,e){var r=We,n=r.Buffer;function i(o,a){for(var l in o)a[l]=o[l]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=s);function s(o,a,l){return n(o,a,l)}s.prototype=Object.create(n.prototype),i(n,s),s.from=function(o,a,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return n(o,a,l)},s.alloc=function(o,a,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var u=n(o);return a!==void 0?typeof l=="string"?u.fill(a,l):u.fill(a):u.fill(0),u},s.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n(o)},s.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}})(Ef,Ef.exports);var eA=Ef.exports,Kd=eA.Buffer,eg=Kd.isEncoding||function(t){switch(t=""+t,t&&t.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 tA(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function rA(t){var e=tA(t);if(typeof e!="string"&&(Kd.isEncoding===eg||!eg(t)))throw new Error("Unknown encoding: "+t);return e||t}Ga.StringDecoder=_o;function _o(t){this.encoding=rA(t);var e;switch(this.encoding){case"utf16le":this.text=lA,this.end=uA,e=4;break;case"utf8":this.fillLast=sA,e=4;break;case"base64":this.text=cA,this.end=fA,e=3;break;default:this.write=dA,this.end=hA;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Kd.allocUnsafe(e)}_o.prototype.write=function(t){if(t.length===0)return"";var e,r;if(this.lastNeed){if(e=this.fillLast(t),e===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function nA(t,e,r){var n=e.length-1;if(n=0?(i>0&&(t.lastNeed=i-1),i):--n=0?(i>0&&(t.lastNeed=i-2),i):--n=0?(i>0&&(i===2?i=0:t.lastNeed=i-3),i):0))}function iA(t,e,r){if((e[0]&192)!==128)return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return t.lastNeed=2,"�"}}function sA(t){var e=this.lastTotal-this.lastNeed,r=iA(this,t);if(r!==void 0)return r;if(this.lastNeed<=t.length)return t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,e,0,t.length),this.lastNeed-=t.length}function oA(t,e){var r=nA(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)}function aA(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function lA(t,e){if((t.length-e)%2===0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function uA(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function cA(t,e){var r=(t.length-e)%3;return r===0?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function fA(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function dA(t){return t.toString(this.encoding)}function hA(t){return t&&t.length?this.write(t):""}var tg=ti.codes.ERR_STREAM_PREMATURE_CLOSE;function pA(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i0)if(typeof w!="string"&&!z.objectMode&&Object.getPrototypeOf(w)!==n.prototype&&(w=s(w)),A)z.endEmitted?M(P,new E):k(P,z,w,!0);else if(z.ended)M(P,new y);else{if(z.destroyed)return!1;z.reading=!1,z.decoder&&!S?(w=z.decoder.write(w),z.objectMode||w.length!==0?k(P,z,w,!1):X(P,z)):k(P,z,w,!1)}else A||(z.reading=!1,X(P,z))}return!z.ended&&(z.length=D?P=D:(P--,P|=P>>>1,P|=P>>>2,P|=P>>>4,P|=P>>>8,P|=P>>>16,P++),P}function j(P,w){return P<=0||w.length===0&&w.ended?0:w.objectMode?1:P!==P?w.flowing&&w.length?w.buffer.head.data.length:w.length:(P>w.highWaterMark&&(w.highWaterMark=O(P)),P<=w.length?P:w.ended?w.length:(w.needReadable=!0,0))}L.prototype.read=function(P){l("read",P),P=parseInt(P,10);var w=this._readableState,S=P;if(P!==0&&(w.emittedReadable=!1),P===0&&w.needReadable&&((w.highWaterMark!==0?w.length>=w.highWaterMark:w.length>0)||w.ended))return l("read: emitReadable",w.length,w.ended),w.length===0&&w.ended?ne(this):H(this),null;if(P=j(P,w),P===0&&w.ended)return w.length===0&&ne(this),null;var A=w.needReadable;l("need readable",A),(w.length===0||w.length-P0?B=Y(P,w):B=null,B===null?(w.needReadable=w.length<=w.highWaterMark,P=0):(w.length-=P,w.awaitDrain=0),w.length===0&&(w.ended||(w.needReadable=!0),S!==P&&w.ended&&ne(this)),B!==null&&this.emit("data",B),B};function Q(P,w){if(l("onEofChunk"),!w.ended){if(w.decoder){var S=w.decoder.end();S&&S.length&&(w.buffer.push(S),w.length+=w.objectMode?1:S.length)}w.ended=!0,w.sync?H(P):(w.needReadable=!1,w.emittedReadable||(w.emittedReadable=!0,K(P)))}}function H(P){var w=P._readableState;l("emitReadable",w.needReadable,w.emittedReadable),w.needReadable=!1,w.emittedReadable||(l("emitReadable",w.flowing),w.emittedReadable=!0,_e.nextTick(K,P))}function K(P){var w=P._readableState;l("emitReadable_",w.destroyed,w.length,w.ended),!w.destroyed&&(w.length||w.ended)&&(P.emit("readable"),w.emittedReadable=!1),w.needReadable=!w.flowing&&!w.ended&&w.length<=w.highWaterMark,G(P)}function X(P,w){w.readingMore||(w.readingMore=!0,_e.nextTick(Z,P,w))}function Z(P,w){for(;!w.reading&&!w.ended&&(w.length1&&ue(A.pipes,P)!==-1)&&!ae&&(l("false write response, pause",A.awaitDrain),A.awaitDrain++),S.pause())}function fe(x){l("onerror",x),N(),P.removeListener("error",fe),e(P,"error")===0&&M(P,x)}$(P,"error",fe);function ge(){P.removeListener("finish",C),N()}P.once("close",ge);function C(){l("onfinish"),P.removeListener("close",ge),N()}P.once("finish",C);function N(){l("unpipe"),S.unpipe(P)}return P.emit("pipe",S),A.flowing||(l("pipe resume"),S.resume()),P};function ce(P){return function(){var S=P._readableState;l("pipeOnDrain",S.awaitDrain),S.awaitDrain&&S.awaitDrain--,S.awaitDrain===0&&e(P,"data")&&(S.flowing=!0,G(P))}}L.prototype.unpipe=function(P){var w=this._readableState,S={hasUnpiped:!1};if(w.pipesCount===0)return this;if(w.pipesCount===1)return P&&P!==w.pipes?this:(P||(P=w.pipes),w.pipes=null,w.pipesCount=0,w.flowing=!1,P&&P.emit("unpipe",this,S),this);if(!P){var A=w.pipes,B=w.pipesCount;w.pipes=null,w.pipesCount=0,w.flowing=!1;for(var z=0;z0,A.flowing!==!1&&this.resume()):P==="readable"&&!A.endEmitted&&!A.readableListening&&(A.readableListening=A.needReadable=!0,A.flowing=!1,A.emittedReadable=!1,l("on readable",A.length,A.reading),A.length?H(this):A.reading||_e.nextTick(de,this)),S},L.prototype.addListener=L.prototype.on,L.prototype.removeListener=function(P,w){var S=r.prototype.removeListener.call(this,P,w);return P==="readable"&&_e.nextTick(pe,this),S},L.prototype.removeAllListeners=function(P){var w=r.prototype.removeAllListeners.apply(this,arguments);return(P==="readable"||P===void 0)&&_e.nextTick(pe,this),w};function pe(P){var w=P._readableState;w.readableListening=P.listenerCount("readable")>0,w.resumeScheduled&&!w.paused?w.flowing=!0:P.listenerCount("data")>0&&P.resume()}function de(P){l("readable nexttick read 0"),P.read(0)}L.prototype.resume=function(){var P=this._readableState;return P.flowing||(l("resume"),P.flowing=!P.readableListening,me(this,P)),P.paused=!1,this};function me(P,w){w.resumeScheduled||(w.resumeScheduled=!0,_e.nextTick(be,P,w))}function be(P,w){l("resume",w.reading),w.reading||P.read(0),w.resumeScheduled=!1,P.emit("resume"),G(P),w.flowing&&!w.reading&&P.read(0)}L.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function G(P){var w=P._readableState;for(l("flow",w.flowing);w.flowing&&P.read()!==null;);}L.prototype.wrap=function(P){var w=this,S=this._readableState,A=!1;P.on("end",function(){if(l("wrapped end"),S.decoder&&!S.ended){var q=S.decoder.end();q&&q.length&&w.push(q)}w.push(null)}),P.on("data",function(q){if(l("wrapped data"),S.decoder&&(q=S.decoder.write(q)),!(S.objectMode&&q==null)&&!(!S.objectMode&&(!q||!q.length))){var ie=w.push(q);ie||(A=!0,P.pause())}});for(var B in P)this[B]===void 0&&typeof P[B]=="function"&&(this[B]=function(ie){return function(){return P[ie].apply(P,arguments)}}(B));for(var z=0;z=w.length?(w.decoder?S=w.buffer.join(""):w.buffer.length===1?S=w.buffer.first():S=w.buffer.concat(w.length),w.buffer.clear()):S=w.buffer.consume(P,w.decoder),S}function ne(P){var w=P._readableState;l("endReadable",w.endEmitted),w.endEmitted||(w.ended=!0,_e.nextTick(ee,w,P))}function ee(P,w){if(l("endReadableNT",P.endEmitted,P.length),!P.endEmitted&&P.length===0&&(P.endEmitted=!0,w.readable=!1,w.emit("end"),P.autoDestroy)){var S=w._writableState;(!S||S.autoDestroy&&S.finished)&&w.destroy()}}typeof Symbol=="function"&&(L.from=function(P,w){return T===void 0&&(T=wA()),T(L,P,w)});function ue(P,w){for(var S=0,A=P.length;S0;return OA(o,l,u,function(c){i||(i=c),c&&s.forEach(ag),!l&&(s.forEach(ag),n(i))})});return e.reduce(PA)}var NA=LA;(function(t,e){e=t.exports=Y0(),e.Stream=e,e.Readable=e,e.Writable=V0(),e.Duplex=Ui(),e.Transform=K0,e.PassThrough=TA,e.finished=Gd,e.pipeline=NA})(pf,pf.exports);var Q0=pf.exports;const{Buffer:zt}=We,J0=Symbol.for("BufferList");function Be(t){if(!(this instanceof Be))return new Be(t);Be._init.call(this,t)}Be._init=function(e){Object.defineProperty(this,J0,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};Be.prototype._new=function(e){return new Be(e)};Be.prototype._offset=function(e){if(e===0)return[0,0];let r=0;for(let n=0;nthis.length||e<0)return;const r=this._offset(e);return this._bufs[r[0]][r[1]]};Be.prototype.slice=function(e,r){return typeof e=="number"&&e<0&&(e+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,e,r)};Be.prototype.copy=function(e,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return e||zt.alloc(0);const s=!!e,o=this._offset(n),a=i-n;let l=a,u=s&&r||0,c=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:zt.concat(this._bufs,this.length);for(let f=0;fd)this._bufs[f].copy(e,u,c),u+=d;else{this._bufs[f].copy(e,u,c,c+l),u+=d;break}l-=d,c&&(c=0)}return e.length>u?e.slice(0,u):e};Be.prototype.shallowSlice=function(e,r){if(e=e||0,r=typeof r!="number"?this.length:r,e<0&&(e+=this.length),r<0&&(r+=this.length),e===r)return this._new();const n=this._offset(e),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};Be.prototype.toString=function(e,r,n){return this.slice(r,n).toString(e)};Be.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};Be.prototype.duplicate=function(){const e=this._new();for(let r=0;rthis.length?this.length:e;const n=this._offset(e);let i=n[0],s=n[1];for(;i=t.length){const l=o.indexOf(t,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-t.length+1}else{const l=this._reverseOffset([i,s]);if(this._match(l,t))return l;s++}s=0}return-1};Be.prototype._match=function(t,e){if(this.length-t[0,1].map(o=>[0,1].map(a=>{const l=r.alloc(1);return l.writeUInt8(e.codes[i]<r.from([i])),e.EMPTY={pingreq:r.from([e.codes.pingreq<<4,0]),pingresp:r.from([e.codes.pingresp<<4,0]),disconnect:r.from([e.codes.disconnect<<4,0])},e.MQTT5_PUBACK_PUBREC_CODES={0:"Success",16:"No matching subscribers",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",144:"Topic Name invalid",145:"Packet identifier in use",151:"Quota exceeded",153:"Payload format invalid"},e.MQTT5_PUBREL_PUBCOMP_CODES={0:"Success",146:"Packet Identifier not found"},e.MQTT5_SUBACK_CODES={0:"Granted QoS 0",1:"Granted QoS 1",2:"Granted QoS 2",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use",151:"Quota exceeded",158:"Shared Subscriptions not supported",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},e.MQTT5_UNSUBACK_CODES={0:"Success",17:"No subscription existed",128:"Unspecified error",131:"Implementation specific error",135:"Not authorized",143:"Topic Filter invalid",145:"Packet Identifier in use"},e.MQTT5_DISCONNECT_CODES={0:"Normal disconnection",4:"Disconnect with Will Message",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",135:"Not authorized",137:"Server busy",139:"Server shutting down",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"},e.MQTT5_AUTH_CODES={0:"Success",24:"Continue authentication",25:"Re-authenticate"}})(Z0);var eb=Z0.exports,Sf={exports:{}},ec,lg;function UA(){if(lg)return ec;lg=1;var t=1e3,e=t*60,r=e*60,n=r*24,i=n*7,s=n*365.25;ec=function(c,f){f=f||{};var d=typeof c;if(d==="string"&&c.length>0)return o(c);if(d==="number"&&isFinite(c))return f.long?l(c):a(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function o(c){if(c=String(c),!(c.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(f){var d=parseFloat(f[1]),h=(f[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return d*s;case"weeks":case"week":case"w":return d*i;case"days":case"day":case"d":return d*n;case"hours":case"hour":case"hrs":case"hr":case"h":return d*r;case"minutes":case"minute":case"mins":case"min":case"m":return d*e;case"seconds":case"second":case"secs":case"sec":case"s":return d*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function a(c){var f=Math.abs(c);return f>=n?Math.round(c/n)+"d":f>=r?Math.round(c/r)+"h":f>=e?Math.round(c/e)+"m":f>=t?Math.round(c/t)+"s":c+"ms"}function l(c){var f=Math.abs(c);return f>=n?u(c,f,n,"day"):f>=r?u(c,f,r,"hour"):f>=e?u(c,f,e,"minute"):f>=t?u(c,f,t,"second"):c+" ms"}function u(c,f,d,h){var g=f>=d*1.5;return Math.round(c/d)+" "+h+(g?"s":"")}return ec}function jA(t){r.debug=r,r.default=r,r.coerce=l,r.disable=s,r.enable=i,r.enabled=o,r.humanize=UA(),r.destroy=u,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let f=0;for(let d=0;d{if(I==="%%")return"%";T++;const F=r.formatters[$];if(typeof F=="function"){const L=b[T];I=F.call(E,L),b.splice(T,1),T--}return I}),r.formatArgs.call(E,b),(E.log||r.log).apply(E,b)}return y.namespace=c,y.useColors=r.useColors(),y.color=r.selectColor(c),y.extend=n,y.destroy=r.destroy,Object.defineProperty(y,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(h!==r.namespaces&&(h=r.namespaces,g=r.enabled(c)),g),set:b=>{d=b}}),typeof r.init=="function"&&r.init(y),y}function n(c,f){const d=r(this.namespace+(typeof f>"u"?":":f)+c);return d.log=this.log,d}function i(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let f;const d=(typeof c=="string"?c:"").split(/[\s,]+/),h=d.length;for(f=0;f"-"+f)].join(",");return r.enable(""),c}function o(c){if(c[c.length-1]==="*")return!0;let f,d;for(f=0,d=r.skips.length;f{let l=!1;return()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function 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 n(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const u="color: "+this.color;l.splice(1,0,u,"color: inherit");let c=0,f=0;l[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(c++,d==="%c"&&(f=c))}),l.splice(f,0,u)}e.log=console.debug||console.log||(()=>{});function i(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug")}catch{}}function s(){let l;try{l=e.storage.getItem("debug")}catch{}return!l&&typeof _e<"u"&&"env"in _e&&(l={}.DEBUG),l}function o(){try{return localStorage}catch{}}t.exports=zA(e);const{formatters:a}=t.exports;a.j=function(l){try{return JSON.stringify(l)}catch(u){return"[UnexpectedJSONParseError]: "+u.message}}})(Sf,Sf.exports);var Vr=Sf.exports;const HA=DA,WA=gn,ug=FA,Oe=eb,Ee=Vr("mqtt-packet:parser");class Xa extends WA{constructor(){super(),this.parser=this.constructor.parser}static parser(e){return this instanceof Xa?(this.settings=e||{},this._states=["_parseHeader","_parseLength","_parsePayload","_newPacket"],this._resetState(),this):new Xa().parser(e)}_resetState(){Ee("_resetState: resetting packet, error, _list, and _stateCounter"),this.packet=new ug,this.error=null,this._list=HA(),this._stateCounter=0}parse(e){for(this.error&&this._resetState(),this._list.append(e),Ee("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++,Ee("parse: state complete. _stateCounter is now: %d",this._stateCounter),Ee("parse: packet.length: %d, buffer list length: %d",this.packet.length,this._list.length),this._stateCounter>=this._states.length&&(this._stateCounter=0);return Ee("parse: exited while loop. packet: %d, buffer list length: %d",this.packet.length,this._list.length),this._list.length}_parseHeader(){const e=this._list.readUInt8(0),r=e>>Oe.CMD_SHIFT;this.packet.cmd=Oe.types[r];const n=e&15,i=Oe.requiredHeaderFlags[r];return i!=null&&n!==i?this._emitError(new Error(Oe.requiredHeaderFlagsErrors[r])):(this.packet.retain=(e&Oe.RETAIN_MASK)!==0,this.packet.qos=e>>Oe.QOS_SHIFT&Oe.QOS_MASK,this.packet.qos>2?this._emitError(new Error("Packet must not have both QoS bits set to 1")):(this.packet.dup=(e&Oe.DUP_MASK)!==0,Ee("_parseHeader: packet: %o",this.packet),this._list.consume(1),!0))}_parseLength(){const e=this._parseVarByteNum(!0);return e&&(this.packet.length=e.value,this._list.consume(e.bytes)),Ee("_parseLength %d",e.value),!!e}_parsePayload(){Ee("_parsePayload: payload %O",this._list);let e=!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"))}e=!0}return Ee("_parsePayload complete result: %s",e),e}_parseConnect(){Ee("_parseConnect");let e,r,n,i;const s={},o=this.packet,a=this._parseString();if(a===null)return this._emitError(new Error("Cannot parse protocolId"));if(a!=="MQTT"&&a!=="MQIsdp")return this._emitError(new Error("Invalid protocolId"));if(o.protocolId=a,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(o.protocolVersion=this._list.readUInt8(this._pos),o.protocolVersion>=128&&(o.bridgeMode=!0,o.protocolVersion=o.protocolVersion-128),o.protocolVersion!==3&&o.protocolVersion!==4&&o.protocolVersion!==5)return this._emitError(new Error("Invalid protocol version"));if(this._pos++,this._pos>=this._list.length)return this._emitError(new Error("Packet too short"));if(this._list.readUInt8(this._pos)&1)return this._emitError(new Error("Connect flag bit 0 must be 0, but got 1"));s.username=this._list.readUInt8(this._pos)&Oe.USERNAME_MASK,s.password=this._list.readUInt8(this._pos)&Oe.PASSWORD_MASK,s.will=this._list.readUInt8(this._pos)&Oe.WILL_FLAG_MASK;const l=!!(this._list.readUInt8(this._pos)&Oe.WILL_RETAIN_MASK),u=(this._list.readUInt8(this._pos)&Oe.WILL_QOS_MASK)>>Oe.WILL_QOS_SHIFT;if(s.will)o.will={},o.will.retain=l,o.will.qos=u;else{if(l)return this._emitError(new Error("Will Retain Flag must be set to zero when Will Flag is set to 0"));if(u)return this._emitError(new Error("Will QoS must be set to zero when Will Flag is set to 0"))}if(o.clean=(this._list.readUInt8(this._pos)&Oe.CLEAN_SESSION_MASK)!==0,this._pos++,o.keepalive=this._parseNum(),o.keepalive===-1)return this._emitError(new Error("Packet too short"));if(o.protocolVersion===5){const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(o.properties=f)}const c=this._parseString();if(c===null)return this._emitError(new Error("Packet too short"));if(o.clientId=c,Ee("_parseConnect: packet.clientId: %s",o.clientId),s.will){if(o.protocolVersion===5){const f=this._parseProperties();Object.getOwnPropertyNames(f).length&&(o.will.properties=f)}if(e=this._parseString(),e===null)return this._emitError(new Error("Cannot parse will topic"));if(o.will.topic=e,Ee("_parseConnect: packet.will.topic: %s",o.will.topic),r=this._parseBuffer(),r===null)return this._emitError(new Error("Cannot parse will payload"));o.will.payload=r,Ee("_parseConnect: packet.will.paylaod: %s",o.will.payload)}if(s.username){if(i=this._parseString(),i===null)return this._emitError(new Error("Cannot parse username"));o.username=i,Ee("_parseConnect: packet.username: %s",o.username)}if(s.password){if(n=this._parseBuffer(),n===null)return this._emitError(new Error("Cannot parse password"));o.password=n}return this.settings=o,Ee("_parseConnect: complete"),o}_parseConnack(){Ee("_parseConnack");const e=this.packet;if(this._list.length<1)return null;const r=this._list.readUInt8(this._pos++);if(r>1)return this._emitError(new Error("Invalid connack flags, bits 7-1 must be set to 0"));if(e.sessionPresent=!!(r&Oe.SESSIONPRESENT_MASK),this.settings.protocolVersion===5)this._list.length>=2?e.reasonCode=this._list.readUInt8(this._pos++):e.reasonCode=0;else{if(this._list.length<2)return null;e.returnCode=this._list.readUInt8(this._pos++)}if(e.returnCode===-1||e.reasonCode===-1)return this._emitError(new Error("Cannot parse return code"));if(this.settings.protocolVersion===5){const n=this._parseProperties();Object.getOwnPropertyNames(n).length&&(e.properties=n)}Ee("_parseConnack: complete")}_parsePublish(){Ee("_parsePublish");const e=this.packet;if(e.topic=this._parseString(),e.topic===null)return this._emitError(new Error("Cannot parse topic"));if(!(e.qos>0&&!this._parseMessageId())){if(this.settings.protocolVersion===5){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}e.payload=this._list.slice(this._pos,e.length),Ee("_parsePublish: payload from buffer list: %o",e.payload)}}_parseSubscribe(){Ee("_parseSubscribe");const e=this.packet;let r,n,i,s,o,a,l;if(e.subscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const u=this._parseProperties();Object.getOwnPropertyNames(u).length&&(e.properties=u)}if(e.length<=0)return this._emitError(new Error("Malformed subscribe, no payload specified"));for(;this._pos=e.length)return this._emitError(new Error("Malformed Subscribe Payload"));if(n=this._parseByte(),this.settings.protocolVersion===5){if(n&192)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-6 must be 0"))}else if(n&252)return this._emitError(new Error("Invalid subscribe topic flag bits, bits 7-2 must be 0"));if(i=n&Oe.SUBSCRIBE_OPTIONS_QOS_MASK,i>2)return this._emitError(new Error("Invalid subscribe QoS, must be <= 2"));if(a=(n>>Oe.SUBSCRIBE_OPTIONS_NL_SHIFT&Oe.SUBSCRIBE_OPTIONS_NL_MASK)!==0,o=(n>>Oe.SUBSCRIBE_OPTIONS_RAP_SHIFT&Oe.SUBSCRIBE_OPTIONS_RAP_MASK)!==0,s=n>>Oe.SUBSCRIBE_OPTIONS_RH_SHIFT&Oe.SUBSCRIBE_OPTIONS_RH_MASK,s>2)return this._emitError(new Error("Invalid retain handling, must be <= 2"));l={topic:r,qos:i},this.settings.protocolVersion===5?(l.nl=a,l.rap=o,l.rh=s):this.settings.bridgeMode&&(l.rh=0,l.rap=!0,l.nl=!0),Ee("_parseSubscribe: push subscription `%s` to subscription",l),e.subscriptions.push(l)}}}_parseSuback(){Ee("_parseSuback");const e=this.packet;if(this.packet.granted=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}if(e.length<=0)return this._emitError(new Error("Malformed suback, no payload specified"));for(;this._pos2&&r!==128)return this._emitError(new Error("Invalid suback QoS, must be 0, 1, 2 or 128"));this.packet.granted.push(r)}}}_parseUnsubscribe(){Ee("_parseUnsubscribe");const e=this.packet;if(e.unsubscriptions=[],!!this._parseMessageId()){if(this.settings.protocolVersion===5){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}if(e.length<=0)return this._emitError(new Error("Malformed unsubscribe, no payload specified"));for(;this._pos2){switch(e.reasonCode=this._parseByte(),this.packet.cmd){case"puback":case"pubrec":if(!Oe.MQTT5_PUBACK_PUBREC_CODES[e.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break;case"pubrel":case"pubcomp":if(!Oe.MQTT5_PUBREL_PUBCOMP_CODES[e.reasonCode])return this._emitError(new Error("Invalid "+this.packet.cmd+" reason code"));break}Ee("_parseConfirmation: packet.reasonCode `%d`",e.reasonCode)}else e.reasonCode=0;if(e.length>3){const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}}return!0}_parseDisconnect(){const e=this.packet;if(Ee("_parseDisconnect"),this.settings.protocolVersion===5){this._list.length>0?(e.reasonCode=this._parseByte(),Oe.MQTT5_DISCONNECT_CODES[e.reasonCode]||this._emitError(new Error("Invalid disconnect reason code"))):e.reasonCode=0;const r=this._parseProperties();Object.getOwnPropertyNames(r).length&&(e.properties=r)}return Ee("_parseDisconnect result: true"),!0}_parseAuth(){Ee("_parseAuth");const e=this.packet;if(this.settings.protocolVersion!==5)return this._emitError(new Error("Not supported auth packet for this version MQTT"));if(e.reasonCode=this._parseByte(),!Oe.MQTT5_AUTH_CODES[e.reasonCode])return this._emitError(new Error("Invalid auth reason code"));const r=this._parseProperties();return Object.getOwnPropertyNames(r).length&&(e.properties=r),Ee("_parseAuth: result: true"),!0}_parseMessageId(){const e=this.packet;return e.messageId=this._parseNum(),e.messageId===null?(this._emitError(new Error("Cannot parse messageId")),!1):(Ee("_parseMessageId: packet.messageId %d",e.messageId),!0)}_parseString(e){const r=this._parseNum(),n=r+this._pos;if(r===-1||n>this._list.length||n>this.packet.length)return null;const i=this._list.toString("utf8",this._pos,n);return this._pos+=r,Ee("_parseString: result: %s",i),i}_parseStringPair(){return Ee("_parseStringPair"),{name:this._parseString(),value:this._parseString()}}_parseBuffer(){const e=this._parseNum(),r=e+this._pos;if(e===-1||r>this._list.length||r>this.packet.length)return null;const n=this._list.slice(this._pos,r);return this._pos+=e,Ee("_parseBuffer: result: %o",n),n}_parseNum(){if(this._list.length-this._pos<2)return-1;const e=this._list.readUInt16BE(this._pos);return this._pos+=2,Ee("_parseNum: result: %s",e),e}_parse4ByteNum(){if(this._list.length-this._pos<4)return-1;const e=this._list.readUInt32BE(this._pos);return this._pos+=4,Ee("_parse4ByteNum: result: %s",e),e}_parseVarByteNum(e){Ee("_parseVarByteNum");const r=4;let n=0,i=1,s=0,o=!1,a;const l=this._pos?this._pos:0;for(;n=n&&this._emitError(new Error("Invalid variable byte integer")),l&&(this._pos+=n),o?e?o={bytes:n,value:s}:o=s:o=!1,Ee("_parseVarByteNum: result: %o",o),o}_parseByte(){let e;return this._pos>8,0),e.writeUInt8(t&255,0+1),e}function KA(){for(let t=0;t0&&(r=r|128),i.writeUInt8(r,n++);while(t>0&&n<4);return t>0&&(n=0),YA?i.subarray(0,n):i.slice(0,n)}function XA(t){const e=co.allocUnsafe(4);return e.writeUInt32BE(t,0),e}var QA={cache:tb,generateCache:KA,generateNumber:rb,genBufVariableByteInt:GA,generate4ByteBuffer:XA},xf={exports:{}};typeof _e>"u"||!_e.version||_e.version.indexOf("v0.")===0||_e.version.indexOf("v1.")===0&&_e.version.indexOf("v1.8.")!==0?xf.exports={nextTick:JA}:xf.exports=_e;function JA(t,e,r,n){if(typeof t!="function")throw new TypeError('"callback" argument must be a function');var i=arguments.length,s,o;switch(i){case 0:case 1:return _e.nextTick(t);case 2:return _e.nextTick(function(){t.call(null,e)});case 3:return _e.nextTick(function(){t.call(null,e,r)});case 4:return _e.nextTick(function(){t.call(null,e,r,n)});default:for(s=new Array(i-1),o=0;o=4)&&(u||a))h+=ve.byteLength(u)+2;else{if(s<4)return e.destroy(new Error("clientId must be supplied before 3.1.1")),!1;if(a*1===0)return e.destroy(new Error("clientId must be given if cleanSession set to 0")),!1}if(typeof l!="number"||l<0||l>65535||l%1!==0)return e.destroy(new Error("Invalid keepalive")),!1;h+=2,h+=1;let g,y;if(s===5){if(g=fn(e,d),!g)return!1;h+=g.length}if(o){if(typeof o!="object")return e.destroy(new Error("Invalid will")),!1;if(!o.topic||typeof o.topic!="string")return e.destroy(new Error("Invalid will topic")),!1;if(h+=ve.byteLength(o.topic)+2,h+=2,o.payload)if(o.payload.length>=0)typeof o.payload=="string"?h+=ve.byteLength(o.payload):h+=o.payload.length;else return e.destroy(new Error("Invalid will payload")),!1;if(y={},s===5){if(y=fn(e,o.properties),!y)return!1;h+=y.length}}let b=!1;if(c!=null)if(pg(c))b=!0,h+=ve.byteLength(c)+2;else return e.destroy(new Error("Invalid username")),!1;if(f!=null){if(!b)return e.destroy(new Error("Username is required to use password")),!1;if(pg(f))h+=ib(f)+2;else return e.destroy(new Error("Invalid password")),!1}e.write(Se.CONNECT_HEADER),$t(e,h),mi(e,i),n.bridgeMode&&(s+=128),e.write(s===131?Se.VERSION131:s===132?Se.VERSION132:s===4?Se.VERSION4:s===5?Se.VERSION5:Se.VERSION3);let E=0;return E|=c!=null?Se.USERNAME_MASK:0,E|=f!=null?Se.PASSWORD_MASK:0,E|=o&&o.retain?Se.WILL_RETAIN_MASK:0,E|=o&&o.qos?o.qos<0&&ut(e,u),d!=null&&d.write(),Pt("publish: payload: %o",l),e.write(l)}function cM(t,e,r){const n=r?r.protocolVersion:4,i=t||{},s=i.cmd||"puback",o=i.messageId,a=i.dup&&s==="pubrel"?Se.DUP_MASK:0;let l=0;const u=i.reasonCode,c=i.properties;let f=n===5?3:2;if(s==="pubrel"&&(l=1),typeof o!="number")return e.destroy(new Error("Invalid messageId")),!1;let d=null;if(n===5&&typeof c=="object"){if(d=So(e,c,r,f),!d)return!1;f+=d.length}return e.write(Se.ACKS[s][l][a][0]),f===3&&(f+=u!==0?1:-1),$t(e,f),ut(e,o),n===5&&f!==2&&e.write(ve.from([u])),d!==null?d.write():f===4&&e.write(ve.from([0])),!0}function fM(t,e,r){Pt("subscribe: packet: ");const n=r?r.protocolVersion:4,i=t||{},s=i.dup?Se.DUP_MASK:0,o=i.messageId,a=i.subscriptions,l=i.properties;let u=0;if(typeof o!="number")return e.destroy(new Error("Invalid messageId")),!1;u+=2;let c=null;if(n===5){if(c=fn(e,l),!c)return!1;u+=c.length}if(typeof a=="object"&&a.length)for(let d=0;d2)return e.destroy(new Error("Invalid subscriptions - invalid Retain Handling")),!1}u+=ve.byteLength(h)+2+1}else return e.destroy(new Error("Invalid subscriptions")),!1;Pt("subscribe: writing to stream: %o",Se.SUBSCRIBE_HEADER),e.write(Se.SUBSCRIBE_HEADER[1][s?1:0][0]),$t(e,u),ut(e,o),c!==null&&c.write();let f=!0;for(const d of a){const h=d.topic,g=d.qos,y=+d.nl,b=+d.rap,E=d.rh;let _;Vn(e,h),_=Se.SUBSCRIBE_OPTIONS_QOS[g],n===5&&(_|=y?Se.SUBSCRIBE_OPTIONS_NL:0,_|=b?Se.SUBSCRIBE_OPTIONS_RAP:0,_|=E?Se.SUBSCRIBE_OPTIONS_RH[E]:0),f=e.write(ve.from([_]))}return f}function dM(t,e,r){const n=r?r.protocolVersion:4,i=t||{},s=i.messageId,o=i.granted,a=i.properties;let l=0;if(typeof s!="number")return e.destroy(new Error("Invalid messageId")),!1;if(l+=2,typeof o=="object"&&o.length)for(let c=0;cSe.VARBYTEINT_MAX)return t.destroy(new Error(`Invalid variable byte integer: ${e}`)),!1;let r=cg[e];return r||(r=Tf(e),e<16384&&(cg[e]=r)),Pt("writeVarByteInt: writing to stream: %o",r),t.write(r)}function Vn(t,e){const r=ve.byteLength(e);return ut(t,r),Pt("writeString: %s",e),t.write(e,"utf8")}function fg(t,e,r){Vn(t,e),Vn(t,r)}function Af(t,e){return Pt("writeNumberCached: number: %d",e),Pt("writeNumberCached: %o",Qa[e]),t.write(Qa[e])}function wM(t,e){const r=nM(e);return Pt("writeNumberGenerated: %o",r),t.write(r)}function bM(t,e){const r=sM(e);return Pt("write4ByteNumber: %o",r),t.write(r)}function mi(t,e){typeof e=="string"?Vn(t,e):e?(ut(t,e.length),t.write(e)):ut(t,0)}function fn(t,e){if(typeof e!="object"||e.length!=null)return{length:1,write(){hg(t,{},0)}};let r=0;function n(s,o){const a=Se.propertiesTypes[s];let l=0;switch(a){case"byte":{if(typeof o!="boolean")return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=1+1;break}case"int8":{if(typeof o!="number"||o<0||o>255)return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=1+1;break}case"binary":{if(o&&o===null)return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=1+ve.byteLength(o)+2;break}case"int16":{if(typeof o!="number"||o<0||o>65535)return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=1+2;break}case"int32":{if(typeof o!="number"||o<0||o>4294967295)return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=1+4;break}case"var":{if(typeof o!="number"||o<0||o>268435455)return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=1+ve.byteLength(Tf(o));break}case"string":{if(typeof o!="string")return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=1+2+ve.byteLength(o.toString());break}case"pair":{if(typeof o!="object")return t.destroy(new Error(`Invalid ${s}: ${o}`)),!1;l+=Object.getOwnPropertyNames(o).reduce((u,c)=>{const f=o[c];return Array.isArray(f)?u+=f.reduce((d,h)=>(d+=1+2+ve.byteLength(c.toString())+2+ve.byteLength(h.toString()),d),0):u+=1+2+ve.byteLength(c.toString())+2+ve.byteLength(o[c].toString()),u},0);break}default:return t.destroy(new Error(`Invalid property ${s}: ${o}`)),!1}return l}if(e)for(const s in e){let o=0,a=0;const l=e[s];if(Array.isArray(l))for(let u=0;us;){const a=i.shift();if(a&&e[a])delete e[a],o=fn(t,e);else return!1}return o}function dg(t,e,r){switch(Se.propertiesTypes[e]){case"byte":{t.write(ve.from([Se.properties[e]])),t.write(ve.from([+r]));break}case"int8":{t.write(ve.from([Se.properties[e]])),t.write(ve.from([r]));break}case"binary":{t.write(ve.from([Se.properties[e]])),mi(t,r);break}case"int16":{t.write(ve.from([Se.properties[e]])),ut(t,r);break}case"int32":{t.write(ve.from([Se.properties[e]])),bM(t,r);break}case"var":{t.write(ve.from([Se.properties[e]])),$t(t,r);break}case"string":{t.write(ve.from([Se.properties[e]])),Vn(t,r);break}case"pair":{Object.getOwnPropertyNames(r).forEach(i=>{const s=r[i];Array.isArray(s)?s.forEach(o=>{t.write(ve.from([Se.properties[e]])),fg(t,i.toString(),o.toString())}):(t.write(ve.from([Se.properties[e]])),fg(t,i.toString(),s.toString()))});break}default:return t.destroy(new Error(`Invalid property ${e} value: ${r}`)),!1}}function hg(t,e,r){$t(t,r);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==null){const i=e[n];if(Array.isArray(i))for(let s=0;s{o=u,a=c}),resolve:o,reject:a}},promisify(o){return new Promise((a,l)=>{o((u,...c)=>u?l(u):a(...c))})},debuglog(){return function(){}},format(o,...a){return o.replace(/%([sdifj])/g,function(...[l,u]){const c=a.shift();return u==="f"?c.toFixed(6):u==="j"?JSON.stringify(c):u==="s"&&typeof c=="object"?`${c.constructor!==Object?c.constructor.name:""} {}`.trim():c.toString()})},inspect(o){switch(typeof o){case"string":if(o.includes("'"))if(o.includes('"')){if(!o.includes("`")&&!o.includes("${"))return`\`${o}\``}else return`"${o}"`;return`'${o}'`;case"number":return isNaN(o)?"NaN":Object.is(o,-0)?String(o):o;case"bigint":return`${String(o)}n`;case"boolean":case"undefined":return String(o);case"object":return"{}"}},types:{isAsyncFunction(o){return o instanceof r},isArrayBufferView(o){return ArrayBuffer.isView(o)}},isBlob:i},t.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")})(ab);var qr=ab.exports,Qd={},ys={exports:{}},mg;function Jd(){if(mg)return ys.exports;mg=1;const{AbortController:t,AbortSignal:e}=typeof self<"u"?self:typeof window<"u"?window:void 0;return ys.exports=t,ys.exports.AbortSignal=e,ys.exports.default=t,ys.exports}const{format:AM,inspect:Za,AggregateError:MM}=qr,CM=globalThis.AggregateError||MM,IM=Symbol("kIsNodeError"),OM=["string","function","number","object","Function","Object","boolean","bigint","symbol"],PM=/^([A-Z][a-z0-9]*)+$/,RM="__node_internal_",Kl={};function jn(t,e){if(!t)throw new Kl.ERR_INTERNAL_ASSERTION(e)}function yg(t){let e="",r=t.length;const n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function LM(t,e,r){if(typeof e=="function")return jn(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);const n=(e.match(/%[dfijoOs]/g)||[]).length;return jn(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:AM(e,...r)}function Ze(t,e,r){r||(r=Error);class n extends r{constructor(...s){super(LM(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[IM]=!0,Kl[t]=n}function wg(t){const e=RM+t.name;return Object.defineProperty(t,"name",{value:e}),t}function NM(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;const r=new CM([e,t],e.message);return r.code=e.code,r}return t||e}let $M=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Kl.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};Ze("ERR_ASSERTION","%s",Error);Ze("ERR_INVALID_ARG_TYPE",(t,e,r)=>{jn(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";const i=[],s=[],o=[];for(const l of e)jn(typeof l=="string","All expected entries have to be of type string"),OM.includes(l)?i.push(l.toLowerCase()):PM.test(l)?s.push(l):(jn(l!=="object",'The value "object" should be written as "Object"'),o.push(l));if(s.length>0){const l=i.indexOf("object");l!==-1&&(i.splice(i,l,1),s.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{const l=i.pop();n+=`one of type ${i.join(", ")}, or ${l}`}}(s.length>0||o.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{const l=s.pop();n+=`an instance of ${s.join(", ")}, or ${l}`}}o.length>0&&(n+=" or ")}switch(o.length){case 0:break;case 1:o[0].toLowerCase()!==o[0]&&(n+="an "),n+=`${o[0]}`;break;case 2:n+=`one of ${o[0]} or ${o[1]}`;break;default:{const l=o.pop();n+=`one of ${o.join(", ")}, or ${l}`}}if(r==null)n+=`. Received ${r}`;else if(typeof r=="function"&&r.name)n+=`. Received function ${r.name}`;else if(typeof r=="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name)n+=`. Received an instance of ${r.constructor.name}`;else{const l=Za(r,{depth:-1});n+=`. Received ${l}`}}else{let l=Za(r,{colors:!1});l.length>25&&(l=`${l.slice(0,25)}...`),n+=`. Received type ${typeof r} (${l})`}return n},TypeError);Ze("ERR_INVALID_ARG_VALUE",(t,e,r="is invalid")=>{let n=Za(e);return n.length>128&&(n=n.slice(0,128)+"..."),`The ${t.includes(".")?"property":"argument"} '${t}' ${r}. Received ${n}`},TypeError);Ze("ERR_INVALID_RETURN_VALUE",(t,e,r)=>{var n;const i=r!=null&&(n=r.constructor)!==null&&n!==void 0&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${t} to be returned from the "${e}" function but got ${i}.`},TypeError);Ze("ERR_MISSING_ARGS",(...t)=>{jn(t.length>0,"At least one arg needs to be specified");let e;const r=t.length;switch(t=(Array.isArray(t)?t:[t]).map(n=>`"${n}"`).join(" or "),r){case 1:e+=`The ${t[0]} argument`;break;case 2:e+=`The ${t[0]} and ${t[1]} arguments`;break;default:{const n=t.pop();e+=`The ${t.join(", ")}, and ${n} arguments`}break}return`${e} must be specified`},TypeError);Ze("ERR_OUT_OF_RANGE",(t,e,r)=>{jn(e,'Missing "range" argument');let n;return Number.isInteger(r)&&Math.abs(r)>2**32?n=yg(String(r)):typeof r=="bigint"?(n=String(r),(r>2n**32n||r<-(2n**32n))&&(n=yg(n)),n+="n"):n=Za(r),`The value of "${t}" is out of range. It must be ${e}. Received ${n}`},RangeError);Ze("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);Ze("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);Ze("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);Ze("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);Ze("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);Ze("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ze("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);Ze("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);Ze("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);Ze("ERR_STREAM_WRITE_AFTER_END","write after end",Error);Ze("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);var bt={AbortError:$M,aggregateTwoErrors:wg(NM),hideStackFrames:wg,codes:Kl};const{ArrayIsArray:Zd,ArrayPrototypeIncludes:lb,ArrayPrototypeJoin:ub,ArrayPrototypeMap:kM,NumberIsInteger:eh,NumberIsNaN:DM,NumberMAX_SAFE_INTEGER:BM,NumberMIN_SAFE_INTEGER:FM,NumberParseInt:UM,ObjectPrototypeHasOwnProperty:jM,RegExpPrototypeExec:cb,String:zM,StringPrototypeToUpperCase:HM,StringPrototypeTrim:WM}=Ve,{hideStackFrames:kt,codes:{ERR_SOCKET_BAD_PORT:VM,ERR_INVALID_ARG_TYPE:dt,ERR_INVALID_ARG_VALUE:as,ERR_OUT_OF_RANGE:qn,ERR_UNKNOWN_SIGNAL:bg}}=bt,{normalizeEncoding:qM}=qr,{isAsyncFunction:YM,isArrayBufferView:KM}=qr.types,_g={};function GM(t){return t===(t|0)}function XM(t){return t===t>>>0}const QM=/^[0-7]+$/,JM="must be a 32-bit unsigned integer or an octal string";function ZM(t,e,r){if(typeof t>"u"&&(t=r),typeof t=="string"){if(cb(QM,t)===null)throw new as(e,t,JM);t=UM(t,8)}return fb(t,e),t}const eC=kt((t,e,r=FM,n=BM)=>{if(typeof t!="number")throw new dt(e,"number",t);if(!eh(t))throw new qn(e,"an integer",t);if(tn)throw new qn(e,`>= ${r} && <= ${n}`,t)}),tC=kt((t,e,r=-2147483648,n=2147483647)=>{if(typeof t!="number")throw new dt(e,"number",t);if(!eh(t))throw new qn(e,"an integer",t);if(tn)throw new qn(e,`>= ${r} && <= ${n}`,t)}),fb=kt((t,e,r=!1)=>{if(typeof t!="number")throw new dt(e,"number",t);if(!eh(t))throw new qn(e,"an integer",t);const n=r?1:0,i=4294967295;if(ti)throw new qn(e,`>= ${n} && <= ${i}`,t)});function th(t,e){if(typeof t!="string")throw new dt(e,"string",t)}function rC(t,e,r=void 0,n){if(typeof t!="number")throw new dt(e,"number",t);if(r!=null&&tn||(r!=null||n!=null)&&DM(t))throw new qn(e,`${r!=null?`>= ${r}`:""}${r!=null&&n!=null?" && ":""}${n!=null?`<= ${n}`:""}`,t)}const nC=kt((t,e,r)=>{if(!lb(r,t)){const i="must be one of: "+ub(kM(r,s=>typeof s=="string"?`'${s}'`:zM(s)),", ");throw new as(e,t,i)}});function db(t,e){if(typeof t!="boolean")throw new dt(e,"boolean",t)}function rc(t,e,r){return t==null||!jM(t,e)?r:t[e]}const iC=kt((t,e,r=null)=>{const n=rc(r,"allowArray",!1),i=rc(r,"allowFunction",!1);if(!rc(r,"nullable",!1)&&t===null||!n&&Zd(t)||typeof t!="object"&&(!i||typeof t!="function"))throw new dt(e,"Object",t)}),sC=kt((t,e)=>{if(t!=null&&typeof t!="object"&&typeof t!="function")throw new dt(e,"a dictionary",t)}),rh=kt((t,e,r=0)=>{if(!Zd(t))throw new dt(e,"Array",t);if(t.length{if(!KM(t))throw new dt(e,["Buffer","TypedArray","DataView"],t)});function cC(t,e){const r=qM(e),n=t.length;if(r==="hex"&&n%2!==0)throw new as("encoding",e,`is invalid for data of length ${n}`)}function fC(t,e="Port",r=!0){if(typeof t!="number"&&typeof t!="string"||typeof t=="string"&&WM(t).length===0||+t!==+t>>>0||t>65535||t===0&&!r)throw new VM(e,t,r);return t|0}const dC=kt((t,e)=>{if(t!==void 0&&(t===null||typeof t!="object"||!("aborted"in t)))throw new dt(e,"AbortSignal",t)}),hC=kt((t,e)=>{if(typeof t!="function")throw new dt(e,"Function",t)}),pC=kt((t,e)=>{if(typeof t!="function"||YM(t))throw new dt(e,"Function",t)}),gC=kt((t,e)=>{if(t!==void 0)throw new dt(e,"undefined",t)});function mC(t,e,r){if(!lb(r,t))throw new dt(e,`('${ub(r,"|")}')`,t)}const yC=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function vg(t,e){if(typeof t>"u"||!cb(yC,t))throw new as(e,t,'must be an array or string of format "; rel=preload; as=style"')}function wC(t){if(typeof t=="string")return vg(t,"hints"),t;if(Zd(t)){const e=t.length;let r="";if(e===0)return r;for(let n=0;n; rel=preload; as=style"')}var Gl={isInt32:GM,isUint32:XM,parseFileMode:ZM,validateArray:rh,validateStringArray:oC,validateBooleanArray:aC,validateBoolean:db,validateBuffer:uC,validateDictionary:sC,validateEncoding:cC,validateFunction:hC,validateInt32:tC,validateInteger:eC,validateNumber:rC,validateObject:iC,validateOneOf:nC,validatePlainFunction:pC,validatePort:fC,validateSignalName:lC,validateString:th,validateUint32:fb,validateUndefined:gC,validateUnion:mC,validateAbortSignal:dC,validateLinkHeaderValue:wC},nh={exports:{}};const{Symbol:Xl,SymbolAsyncIterator:Eg,SymbolIterator:Sg,SymbolFor:hb}=Ve,pb=Xl("kDestroyed"),gb=Xl("kIsErrored"),Mf=Xl("kIsReadable"),mb=Xl("kIsDisturbed"),bC=hb("nodejs.webstream.isClosedPromise"),_C=hb("nodejs.webstream.controllerErrorFunction");function Ql(t,e=!1){var r;return!!(t&&typeof t.pipe=="function"&&typeof t.on=="function"&&(!e||typeof t.pause=="function"&&typeof t.resume=="function")&&(!t._writableState||((r=t._readableState)===null||r===void 0?void 0:r.readable)!==!1)&&(!t._writableState||t._readableState))}function Jl(t){var e;return!!(t&&typeof t.write=="function"&&typeof t.on=="function"&&(!t._readableState||((e=t._writableState)===null||e===void 0?void 0:e.writable)!==!1))}function vC(t){return!!(t&&typeof t.pipe=="function"&&t._readableState&&typeof t.on=="function"&&typeof t.write=="function")}function wr(t){return t&&(t._readableState||t._writableState||typeof t.write=="function"&&typeof t.on=="function"||typeof t.pipe=="function"&&typeof t.on=="function")}function yb(t){return!!(t&&!wr(t)&&typeof t.pipeThrough=="function"&&typeof t.getReader=="function"&&typeof t.cancel=="function")}function wb(t){return!!(t&&!wr(t)&&typeof t.getWriter=="function"&&typeof t.abort=="function")}function bb(t){return!!(t&&!wr(t)&&typeof t.readable=="object"&&typeof t.writable=="object")}function EC(t){return yb(t)||wb(t)||bb(t)}function SC(t,e){return t==null?!1:e===!0?typeof t[Eg]=="function":e===!1?typeof t[Sg]=="function":typeof t[Eg]=="function"||typeof t[Sg]=="function"}function Zl(t){if(!wr(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!!(t.destroyed||t[pb]||n!=null&&n.destroyed)}function _b(t){if(!Jl(t))return null;if(t.writableEnded===!0)return!0;const e=t._writableState;return e!=null&&e.errored?!1:typeof(e==null?void 0:e.ended)!="boolean"?null:e.ended}function xC(t,e){if(!Jl(t))return null;if(t.writableFinished===!0)return!0;const r=t._writableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.finished)!="boolean"?null:!!(r.finished||e===!1&&r.ended===!0&&r.length===0)}function TC(t){if(!Ql(t))return null;if(t.readableEnded===!0)return!0;const e=t._readableState;return!e||e.errored?!1:typeof(e==null?void 0:e.ended)!="boolean"?null:e.ended}function vb(t,e){if(!Ql(t))return null;const r=t._readableState;return r!=null&&r.errored?!1:typeof(r==null?void 0:r.endEmitted)!="boolean"?null:!!(r.endEmitted||e===!1&&r.ended===!0&&r.length===0)}function Eb(t){return t&&t[Mf]!=null?t[Mf]:typeof(t==null?void 0:t.readable)!="boolean"?null:Zl(t)?!1:Ql(t)&&t.readable&&!vb(t)}function Sb(t){return typeof(t==null?void 0:t.writable)!="boolean"?null:Zl(t)?!1:Jl(t)&&t.writable&&!_b(t)}function AC(t,e){return wr(t)?Zl(t)?!0:!((e==null?void 0:e.readable)!==!1&&Eb(t)||(e==null?void 0:e.writable)!==!1&&Sb(t)):null}function MC(t){var e,r;return wr(t)?t.writableErrored?t.writableErrored:(e=(r=t._writableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function CC(t){var e,r;return wr(t)?t.readableErrored?t.readableErrored:(e=(r=t._readableState)===null||r===void 0?void 0:r.errored)!==null&&e!==void 0?e:null:null}function IC(t){if(!wr(t))return null;if(typeof t.closed=="boolean")return t.closed;const e=t._writableState,r=t._readableState;return typeof(e==null?void 0:e.closed)=="boolean"||typeof(r==null?void 0:r.closed)=="boolean"?(e==null?void 0:e.closed)||(r==null?void 0:r.closed):typeof t._closed=="boolean"&&xb(t)?t._closed:null}function xb(t){return typeof t._closed=="boolean"&&typeof t._defaultKeepAlive=="boolean"&&typeof t._removedConnection=="boolean"&&typeof t._removedContLen=="boolean"}function Tb(t){return typeof t._sent100=="boolean"&&xb(t)}function OC(t){var e;return typeof t._consuming=="boolean"&&typeof t._dumped=="boolean"&&((e=t.req)===null||e===void 0?void 0:e.upgradeOrConnect)===void 0}function PC(t){if(!wr(t))return null;const e=t._writableState,r=t._readableState,n=e||r;return!n&&Tb(t)||!!(n&&n.autoDestroy&&n.emitClose&&n.closed===!1)}function RC(t){var e;return!!(t&&((e=t[mb])!==null&&e!==void 0?e:t.readableDidRead||t.readableAborted))}function LC(t){var e,r,n,i,s,o,a,l,u,c;return!!(t&&((e=(r=(n=(i=(s=(o=t[gb])!==null&&o!==void 0?o:t.readableErrored)!==null&&s!==void 0?s:t.writableErrored)!==null&&i!==void 0?i:(a=t._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&n!==void 0?n:(l=t._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=t._readableState)===null||u===void 0?void 0:u.errored)!==null&&e!==void 0?e:!((c=t._writableState)===null||c===void 0)&&c.errored))}var Yr={kDestroyed:pb,isDisturbed:RC,kIsDisturbed:mb,isErrored:LC,kIsErrored:gb,isReadable:Eb,kIsReadable:Mf,kIsClosedPromise:bC,kControllerErrorFunction:_C,isClosed:IC,isDestroyed:Zl,isDuplexNodeStream:vC,isFinished:AC,isIterable:SC,isReadableNodeStream:Ql,isReadableStream:yb,isReadableEnded:TC,isReadableFinished:vb,isReadableErrored:CC,isNodeStream:wr,isWebStream:EC,isWritable:Sb,isWritableNodeStream:Jl,isWritableStream:wb,isWritableEnded:_b,isWritableFinished:xC,isWritableErrored:MC,isServerRequest:OC,isServerResponse:Tb,willEmitClose:PC,isTransformStream:bb};const tn=mn,{AbortError:Ab,codes:NC}=bt,{ERR_INVALID_ARG_TYPE:$C,ERR_STREAM_PREMATURE_CLOSE:xg}=NC,{kEmptyObject:Cf,once:If}=qr,{validateAbortSignal:kC,validateFunction:DC,validateObject:BC,validateBoolean:FC}=Gl,{Promise:UC,PromisePrototypeThen:jC}=Ve,{isClosed:zC,isReadable:Tg,isReadableNodeStream:nc,isReadableStream:HC,isReadableFinished:Ag,isReadableErrored:Mg,isWritable:Cg,isWritableNodeStream:Ig,isWritableStream:WC,isWritableFinished:Og,isWritableErrored:Pg,isNodeStream:VC,willEmitClose:qC,kIsClosedPromise:YC}=Yr;function KC(t){return t.setHeader&&typeof t.abort=="function"}const Of=()=>{};function Mb(t,e,r){var n,i;if(arguments.length===2?(r=e,e=Cf):e==null?e=Cf:BC(e,"options"),DC(r,"callback"),kC(e.signal,"options.signal"),r=If(r),HC(t)||WC(t))return GC(t,e,r);if(!VC(t))throw new $C("stream",["ReadableStream","WritableStream","Stream"],t);const s=(n=e.readable)!==null&&n!==void 0?n:nc(t),o=(i=e.writable)!==null&&i!==void 0?i:Ig(t),a=t._writableState,l=t._readableState,u=()=>{t.writable||d()};let c=qC(t)&&nc(t)===s&&Ig(t)===o,f=Og(t,!1);const d=()=>{f=!0,t.destroyed&&(c=!1),!(c&&(!t.readable||s))&&(!s||h)&&r.call(t)};let h=Ag(t,!1);const g=()=>{h=!0,t.destroyed&&(c=!1),!(c&&(!t.writable||o))&&(!o||f)&&r.call(t)},y=M=>{r.call(t,M)};let b=zC(t);const E=()=>{b=!0;const M=Pg(t)||Mg(t);if(M&&typeof M!="boolean")return r.call(t,M);if(s&&!h&&nc(t,!0)&&!Ag(t,!1))return r.call(t,new xg);if(o&&!f&&!Og(t,!1))return r.call(t,new xg);r.call(t)},_=()=>{b=!0;const M=Pg(t)||Mg(t);if(M&&typeof M!="boolean")return r.call(t,M);r.call(t)},v=()=>{t.req.on("finish",d)};KC(t)?(t.on("complete",d),c||t.on("abort",E),t.req?v():t.on("request",v)):o&&!a&&(t.on("end",u),t.on("close",u)),!c&&typeof t.aborted=="boolean"&&t.on("aborted",E),t.on("end",g),t.on("finish",d),e.error!==!1&&t.on("error",y),t.on("close",E),b?tn.nextTick(E):a!=null&&a.errorEmitted||l!=null&&l.errorEmitted?c||tn.nextTick(_):(!s&&(!c||Tg(t))&&(f||Cg(t)===!1)||!o&&(!c||Cg(t))&&(h||Tg(t)===!1)||l&&t.req&&t.aborted)&&tn.nextTick(_);const T=()=>{r=Of,t.removeListener("aborted",E),t.removeListener("complete",d),t.removeListener("abort",E),t.removeListener("request",v),t.req&&t.req.removeListener("finish",d),t.removeListener("end",u),t.removeListener("close",u),t.removeListener("finish",d),t.removeListener("end",g),t.removeListener("error",y),t.removeListener("close",E)};if(e.signal&&!b){const M=()=>{const I=r;T(),I.call(t,new Ab(void 0,{cause:e.signal.reason}))};if(e.signal.aborted)tn.nextTick(M);else{const I=r;r=If((...$)=>{e.signal.removeEventListener("abort",M),I.apply(t,$)}),e.signal.addEventListener("abort",M)}}return T}function GC(t,e,r){let n=!1,i=Of;if(e.signal)if(i=()=>{n=!0,r.call(t,new Ab(void 0,{cause:e.signal.reason}))},e.signal.aborted)tn.nextTick(i);else{const o=r;r=If((...a)=>{e.signal.removeEventListener("abort",i),o.apply(t,a)}),e.signal.addEventListener("abort",i)}const s=(...o)=>{n||tn.nextTick(()=>r.apply(t,o))};return jC(t[YC].promise,s,s),Of}function XC(t,e){var r;let n=!1;return e===null&&(e=Cf),(r=e)!==null&&r!==void 0&&r.cleanup&&(FC(e.cleanup,"cleanup"),n=e.cleanup),new UC((i,s)=>{const o=Mb(t,e,a=>{n&&o(),a?s(a):i()})})}nh.exports=Mb;nh.exports.finished=XC;var wn=nh.exports;const ur=mn,{aggregateTwoErrors:QC,codes:{ERR_MULTIPLE_CALLBACK:JC},AbortError:ZC}=bt,{Symbol:Cb}=Ve,{kDestroyed:eI,isDestroyed:tI,isFinished:rI,isServerRequest:nI}=Yr,Ib=Cb("kDestroy"),Pf=Cb("kConstruct");function Ob(t,e,r){t&&(t.stack,e&&!e.errored&&(e.errored=t),r&&!r.errored&&(r.errored=t))}function iI(t,e){const r=this._readableState,n=this._writableState,i=n||r;return n!=null&&n.destroyed||r!=null&&r.destroyed?(typeof e=="function"&&e(),this):(Ob(t,n,r),n&&(n.destroyed=!0),r&&(r.destroyed=!0),i.constructed?Rg(this,t,e):this.once(Ib,function(s){Rg(this,QC(s,t),e)}),this)}function Rg(t,e,r){let n=!1;function i(s){if(n)return;n=!0;const o=t._readableState,a=t._writableState;Ob(s,a,o),a&&(a.closed=!0),o&&(o.closed=!0),typeof r=="function"&&r(s),s?ur.nextTick(sI,t,s):ur.nextTick(Pb,t)}try{t._destroy(e||null,i)}catch(s){i(s)}}function sI(t,e){Rf(t,e),Pb(t)}function Pb(t){const e=t._readableState,r=t._writableState;r&&(r.closeEmitted=!0),e&&(e.closeEmitted=!0),(r!=null&&r.emitClose||e!=null&&e.emitClose)&&t.emit("close")}function Rf(t,e){const r=t._readableState,n=t._writableState;n!=null&&n.errorEmitted||r!=null&&r.errorEmitted||(n&&(n.errorEmitted=!0),r&&(r.errorEmitted=!0),t.emit("error",e))}function oI(){const t=this._readableState,e=this._writableState;t&&(t.constructed=!0,t.closed=!1,t.closeEmitted=!1,t.destroyed=!1,t.errored=null,t.errorEmitted=!1,t.reading=!1,t.ended=t.readable===!1,t.endEmitted=t.readable===!1),e&&(e.constructed=!0,e.destroyed=!1,e.closed=!1,e.closeEmitted=!1,e.errored=null,e.errorEmitted=!1,e.finalCalled=!1,e.prefinished=!1,e.ended=e.writable===!1,e.ending=e.writable===!1,e.finished=e.writable===!1)}function Lf(t,e,r){const n=t._readableState,i=t._writableState;if(i!=null&&i.destroyed||n!=null&&n.destroyed)return this;n!=null&&n.autoDestroy||i!=null&&i.autoDestroy?t.destroy(e):e&&(e.stack,i&&!i.errored&&(i.errored=e),n&&!n.errored&&(n.errored=e),r?ur.nextTick(Rf,t,e):Rf(t,e))}function aI(t,e){if(typeof t._construct!="function")return;const r=t._readableState,n=t._writableState;r&&(r.constructed=!1),n&&(n.constructed=!1),t.once(Pf,e),!(t.listenerCount(Pf)>1)&&ur.nextTick(lI,t)}function lI(t){let e=!1;function r(n){if(e){Lf(t,n??new JC);return}e=!0;const i=t._readableState,s=t._writableState,o=s||i;i&&(i.constructed=!0),s&&(s.constructed=!0),o.destroyed?t.emit(Ib,n):n?Lf(t,n,!0):ur.nextTick(uI,t)}try{t._construct(n=>{ur.nextTick(r,n)})}catch(n){ur.nextTick(r,n)}}function uI(t){t.emit(Pf)}function Lg(t){return(t==null?void 0:t.setHeader)&&typeof t.abort=="function"}function Rb(t){t.emit("close")}function cI(t,e){t.emit("error",e),ur.nextTick(Rb,t)}function fI(t,e){!t||tI(t)||(!e&&!rI(t)&&(e=new ZC),nI(t)?(t.socket=null,t.destroy(e)):Lg(t)?t.abort():Lg(t.req)?t.req.abort():typeof t.destroy=="function"?t.destroy(e):typeof t.close=="function"?t.close():e?ur.nextTick(cI,t,e):ur.nextTick(Rb,t),t.destroyed||(t[eI]=!0))}var ls={construct:aI,destroyer:fI,destroy:iI,undestroy:oI,errorOrDestroy:Lf};const{ArrayIsArray:dI,ObjectSetPrototypeOf:Lb}=Ve,{EventEmitter:eu}=gn;function tu(t){eu.call(this,t)}Lb(tu.prototype,eu.prototype);Lb(tu,eu);tu.prototype.pipe=function(t,e){const r=this;function n(c){t.writable&&t.write(c)===!1&&r.pause&&r.pause()}r.on("data",n);function i(){r.readable&&r.resume&&r.resume()}t.on("drain",i),!t._isStdio&&(!e||e.end!==!1)&&(r.on("end",o),r.on("close",a));let s=!1;function o(){s||(s=!0,t.end())}function a(){s||(s=!0,typeof t.destroy=="function"&&t.destroy())}function l(c){u(),eu.listenerCount(this,"error")===0&&this.emit("error",c)}Nf(r,"error",l),Nf(t,"error",l);function u(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",o),r.removeListener("close",a),r.removeListener("error",l),t.removeListener("error",l),r.removeListener("end",u),r.removeListener("close",u),t.removeListener("close",u)}return r.on("end",u),r.on("close",u),t.on("close",u),t.emit("pipe",r),t};function Nf(t,e,r){if(typeof t.prependListener=="function")return t.prependListener(e,r);!t._events||!t._events[e]?t.on(e,r):dI(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]}var ih={Stream:tu,prependListener:Nf},Nb={exports:{}};(function(t){const{AbortError:e,codes:r}=bt,{isNodeStream:n,isWebStream:i,kControllerErrorFunction:s}=Yr,o=wn,{ERR_INVALID_ARG_TYPE:a}=r,l=(u,c)=>{if(typeof u!="object"||!("aborted"in u))throw new a(c,"AbortSignal",u)};t.exports.addAbortSignal=function(c,f){if(l(c,"signal"),!n(f)&&!i(f))throw new a("stream",["ReadableStream","WritableStream","Stream"],f);return t.exports.addAbortSignalNoValidate(c,f)},t.exports.addAbortSignalNoValidate=function(u,c){if(typeof u!="object"||!("aborted"in u))return c;const f=n(c)?()=>{c.destroy(new e(void 0,{cause:u.reason}))}:()=>{c[s](new e(void 0,{cause:u.reason}))};return u.aborted?f():(u.addEventListener("abort",f),o(c,()=>u.removeEventListener("abort",f))),c}})(Nb);var ru=Nb.exports;const{StringPrototypeSlice:Ng,SymbolIterator:hI,TypedArrayPrototypeSet:Yo,Uint8Array:pI}=Ve,{Buffer:ic}=We,{inspect:gI}=qr;var mI=class{constructor(){this.head=null,this.tail=null,this.length=0}push(e){const r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}unshift(e){const r={data:e,next:this.head};this.length===0&&(this.tail=r),this.head=r,++this.length}shift(){if(this.length===0)return;const e=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,e}clear(){this.head=this.tail=null,this.length=0}join(e){if(this.length===0)return"";let r=this.head,n=""+r.data;for(;(r=r.next)!==null;)n+=e+r.data;return n}concat(e){if(this.length===0)return ic.alloc(0);const r=ic.allocUnsafe(e>>>0);let n=this.head,i=0;for(;n;)Yo(r,n.data,i),i+=n.data.length,n=n.next;return r}consume(e,r){const n=this.head.data;if(es.length)r+=s,e-=s.length;else{e===s.length?(r+=s,++i,n.next?this.head=n.next:this.head=this.tail=null):(r+=Ng(s,0,e),this.head=n,n.data=Ng(s,e));break}++i}while((n=n.next)!==null);return this.length-=i,r}_getBuffer(e){const r=ic.allocUnsafe(e),n=e;let i=this.head,s=0;do{const o=i.data;if(e>o.length)Yo(r,o,n-e),e-=o.length;else{e===o.length?(Yo(r,o,n-e),++s,i.next?this.head=i.next:this.head=this.tail=null):(Yo(r,new pI(o.buffer,o.byteOffset,e),n-e),this.head=i,i.data=o.slice(e));break}++s}while((i=i.next)!==null);return this.length-=s,r}[Symbol.for("nodejs.util.inspect.custom")](e,r){return gI(this,{...r,depth:0,customInspect:!1})}};const{MathFloor:yI,NumberIsInteger:wI}=Ve,{ERR_INVALID_ARG_VALUE:bI}=bt.codes;function _I(t,e,r){return t.highWaterMark!=null?t.highWaterMark:e?t[r]:null}function $b(t){return t?16:16*1024}function vI(t,e,r,n){const i=_I(e,n,r);if(i!=null){if(!wI(i)||i<0){const s=n?`options.${r}`:"options.highWaterMark";throw new bI(s,i)}return yI(i)}return $b(t.objectMode)}var sh={getHighWaterMark:vI,getDefaultHighWaterMark:$b};const $g=mn,{PromisePrototypeThen:EI,SymbolAsyncIterator:kg,SymbolIterator:Dg}=Ve,{Buffer:SI}=We,{ERR_INVALID_ARG_TYPE:xI,ERR_STREAM_NULL_VALUES:TI}=bt.codes;function AI(t,e,r){let n;if(typeof e=="string"||e instanceof SI)return new t({objectMode:!0,...r,read(){this.push(e),this.push(null)}});let i;if(e&&e[kg])i=!0,n=e[kg]();else if(e&&e[Dg])i=!1,n=e[Dg]();else throw new xI("iterable",["Iterable"],e);const s=new t({objectMode:!0,highWaterMark:1,...r});let o=!1;s._read=function(){o||(o=!0,l())},s._destroy=function(u,c){EI(a(u),()=>$g.nextTick(c,u),f=>$g.nextTick(c,f||u))};async function a(u){const c=u!=null,f=typeof n.throw=="function";if(c&&f){const{value:d,done:h}=await n.throw(u);if(await d,h)return}if(typeof n.return=="function"){const{value:d}=await n.return();await d}}async function l(){for(;;){try{const{value:u,done:c}=i?await n.next():n.next();if(c)s.push(null);else{const f=u&&typeof u.then=="function"?await u:u;if(f===null)throw o=!1,new TI;if(s.push(f))continue;o=!1}}catch(u){s.destroy(u)}break}}return s}var kb=AI,sc,Bg;function nu(){if(Bg)return sc;Bg=1;const t=mn,{ArrayPrototypeIndexOf:e,NumberIsInteger:r,NumberIsNaN:n,NumberParseInt:i,ObjectDefineProperties:s,ObjectKeys:o,ObjectSetPrototypeOf:a,Promise:l,SafeSet:u,SymbolAsyncIterator:c,Symbol:f}=Ve;sc=Z,Z.ReadableState=X;const{EventEmitter:d}=gn,{Stream:h,prependListener:g}=ih,{Buffer:y}=We,{addAbortSignal:b}=ru,E=wn;let _=qr.debuglog("stream",C=>{_=C});const v=mI,T=ls,{getHighWaterMark:M,getDefaultHighWaterMark:I}=sh,{aggregateTwoErrors:$,codes:{ERR_INVALID_ARG_TYPE:F,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_OUT_OF_RANGE:U,ERR_STREAM_PUSH_AFTER_EOF:k,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:W}}=bt,{validateObject:D}=Gl,O=f("kPaused"),{StringDecoder:j}=Ga,Q=kb;a(Z.prototype,h.prototype),a(Z,h);const H=()=>{},{errorOrDestroy:K}=T;function X(C,N,x){typeof x!="boolean"&&(x=N instanceof $r()),this.objectMode=!!(C&&C.objectMode),x&&(this.objectMode=this.objectMode||!!(C&&C.readableObjectMode)),this.highWaterMark=C?M(this,C,"readableHighWaterMark",x):I(!1),this.buffer=new v,this.length=0,this.pipes=[],this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.constructed=!0,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this[O]=null,this.errorEmitted=!1,this.emitClose=!C||C.emitClose!==!1,this.autoDestroy=!C||C.autoDestroy!==!1,this.destroyed=!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this.defaultEncoding=C&&C.defaultEncoding||"utf8",this.awaitDrainWriters=null,this.multiAwaitDrain=!1,this.readingMore=!1,this.dataEmitted=!1,this.decoder=null,this.encoding=null,C&&C.encoding&&(this.decoder=new j(C.encoding),this.encoding=C.encoding)}function Z(C){if(!(this instanceof Z))return new Z(C);const N=this instanceof $r();this._readableState=new X(C,this,N),C&&(typeof C.read=="function"&&(this._read=C.read),typeof C.destroy=="function"&&(this._destroy=C.destroy),typeof C.construct=="function"&&(this._construct=C.construct),C.signal&&!N&&b(C.signal,this)),h.call(this,C),T.construct(this,()=>{this._readableState.needReadable&&ee(this,this._readableState)})}Z.prototype.destroy=T.destroy,Z.prototype._undestroy=T.undestroy,Z.prototype._destroy=function(C,N){N(C)},Z.prototype[d.captureRejectionSymbol]=function(C){this.destroy(C)},Z.prototype.push=function(C,N){return ce(this,C,N,!1)},Z.prototype.unshift=function(C,N){return ce(this,C,N,!0)};function ce(C,N,x,p){_("readableAddChunk",N);const m=C._readableState;let R;if(m.objectMode||(typeof N=="string"?(x=x||m.defaultEncoding,m.encoding!==x&&(p&&m.encoding?N=y.from(N,x).toString(m.encoding):(N=y.from(N,x),x=""))):N instanceof y?x="":h._isUint8Array(N)?(N=h._uint8ArrayToBuffer(N),x=""):N!=null&&(R=new F("chunk",["string","Buffer","Uint8Array"],N))),R)K(C,R);else if(N===null)m.reading=!1,G(C,m);else if(m.objectMode||N&&N.length>0)if(p)if(m.endEmitted)K(C,new W);else{if(m.destroyed||m.errored)return!1;pe(C,m,N,!0)}else if(m.ended)K(C,new k);else{if(m.destroyed||m.errored)return!1;m.reading=!1,m.decoder&&!x?(N=m.decoder.write(N),m.objectMode||N.length!==0?pe(C,m,N,!1):ee(C,m)):pe(C,m,N,!1)}else p||(m.reading=!1,ee(C,m));return!m.ended&&(m.length0?(N.multiAwaitDrain?N.awaitDrainWriters.clear():N.awaitDrainWriters=null,N.dataEmitted=!0,C.emit("data",x)):(N.length+=N.objectMode?1:x.length,p?N.buffer.unshift(x):N.buffer.push(x),N.needReadable&&Y(C)),ee(C,N)}Z.prototype.isPaused=function(){const C=this._readableState;return C[O]===!0||C.flowing===!1},Z.prototype.setEncoding=function(C){const N=new j(C);this._readableState.decoder=N,this._readableState.encoding=this._readableState.decoder.encoding;const x=this._readableState.buffer;let p="";for(const m of x)p+=N.write(m);return x.clear(),p!==""&&x.push(p),this._readableState.length=p.length,this};const de=1073741824;function me(C){if(C>de)throw new U("size","<= 1GiB",C);return C--,C|=C>>>1,C|=C>>>2,C|=C>>>4,C|=C>>>8,C|=C>>>16,C++,C}function be(C,N){return C<=0||N.length===0&&N.ended?0:N.objectMode?1:n(C)?N.flowing&&N.length?N.buffer.first().length:N.length:C<=N.length?C:N.ended?N.length:0}Z.prototype.read=function(C){_("read",C),C===void 0?C=NaN:r(C)||(C=i(C,10));const N=this._readableState,x=C;if(C>N.highWaterMark&&(N.highWaterMark=me(C)),C!==0&&(N.emittedReadable=!1),C===0&&N.needReadable&&((N.highWaterMark!==0?N.length>=N.highWaterMark:N.length>0)||N.ended))return _("read: emitReadable",N.length,N.ended),N.length===0&&N.ended?ae(this):Y(this),null;if(C=be(C,N),C===0&&N.ended)return N.length===0&&ae(this),null;let p=N.needReadable;if(_("need readable",p),(N.length===0||N.length-C0?m=re(C,N):m=null,m===null?(N.needReadable=N.length<=N.highWaterMark,C=0):(N.length-=C,N.multiAwaitDrain?N.awaitDrainWriters.clear():N.awaitDrainWriters=null),N.length===0&&(N.ended||(N.needReadable=!0),x!==C&&N.ended&&ae(this)),m!==null&&!N.errorEmitted&&!N.closeEmitted&&(N.dataEmitted=!0,this.emit("data",m)),m};function G(C,N){if(_("onEofChunk"),!N.ended){if(N.decoder){const x=N.decoder.end();x&&x.length&&(N.buffer.push(x),N.length+=N.objectMode?1:x.length)}N.ended=!0,N.sync?Y(C):(N.needReadable=!1,N.emittedReadable=!0,ne(C))}}function Y(C){const N=C._readableState;_("emitReadable",N.needReadable,N.emittedReadable),N.needReadable=!1,N.emittedReadable||(_("emitReadable",N.flowing),N.emittedReadable=!0,t.nextTick(ne,C))}function ne(C){const N=C._readableState;_("emitReadable_",N.destroyed,N.length,N.ended),!N.destroyed&&!N.errored&&(N.length||N.ended)&&(C.emit("readable"),N.emittedReadable=!1),N.needReadable=!N.flowing&&!N.ended&&N.length<=N.highWaterMark,z(C)}function ee(C,N){!N.readingMore&&N.constructed&&(N.readingMore=!0,t.nextTick(ue,C,N))}function ue(C,N){for(;!N.reading&&!N.ended&&(N.length1&&p.pipes.includes(C)&&(_("false write response, pause",p.awaitDrainWriters.size),p.awaitDrainWriters.add(C)),x.pause()),te||(te=P(x,C),C.on("drain",te))}x.on("data",$e);function $e(Sn){_("ondata");const _r=C.write(Sn);_("dest.write",_r),_r===!1&&Ce()}function Le(Sn){if(_("onerror",Sn),ps(),C.removeListener("error",Le),C.listenerCount("error")===0){const _r=C._writableState||C._readableState;_r&&!_r.errorEmitted?K(C,Sn):C.emit("error",Sn)}}g(C,"error",Le);function Ru(){C.removeListener("finish",Lu),ps()}C.once("close",Ru);function Lu(){_("onfinish"),C.removeListener("close",Ru),ps()}C.once("finish",Lu);function ps(){_("unpipe"),x.unpipe(C)}return C.emit("pipe",x),C.writableNeedDrain===!0?p.flowing&&Ce():p.flowing||(_("pipe resume"),x.resume()),C};function P(C,N){return function(){const p=C._readableState;p.awaitDrainWriters===N?(_("pipeOnDrain",1),p.awaitDrainWriters=null):p.multiAwaitDrain&&(_("pipeOnDrain",p.awaitDrainWriters.size),p.awaitDrainWriters.delete(N)),(!p.awaitDrainWriters||p.awaitDrainWriters.size===0)&&C.listenerCount("data")&&C.resume()}}Z.prototype.unpipe=function(C){const N=this._readableState,x={hasUnpiped:!1};if(N.pipes.length===0)return this;if(!C){const m=N.pipes;N.pipes=[],this.pause();for(let R=0;R0,p.flowing!==!1&&this.resume()):C==="readable"&&!p.endEmitted&&!p.readableListening&&(p.readableListening=p.needReadable=!0,p.flowing=!1,p.emittedReadable=!1,_("on readable",p.length,p.reading),p.length?Y(this):p.reading||t.nextTick(S,this)),x},Z.prototype.addListener=Z.prototype.on,Z.prototype.removeListener=function(C,N){const x=h.prototype.removeListener.call(this,C,N);return C==="readable"&&t.nextTick(w,this),x},Z.prototype.off=Z.prototype.removeListener,Z.prototype.removeAllListeners=function(C){const N=h.prototype.removeAllListeners.apply(this,arguments);return(C==="readable"||C===void 0)&&t.nextTick(w,this),N};function w(C){const N=C._readableState;N.readableListening=C.listenerCount("readable")>0,N.resumeScheduled&&N[O]===!1?N.flowing=!0:C.listenerCount("data")>0?C.resume():N.readableListening||(N.flowing=null)}function S(C){_("readable nexttick read 0"),C.read(0)}Z.prototype.resume=function(){const C=this._readableState;return C.flowing||(_("resume"),C.flowing=!C.readableListening,A(this,C)),C[O]=!1,this};function A(C,N){N.resumeScheduled||(N.resumeScheduled=!0,t.nextTick(B,C,N))}function B(C,N){_("resume",N.reading),N.reading||C.read(0),N.resumeScheduled=!1,C.emit("resume"),z(C),N.flowing&&!N.reading&&C.read(0)}Z.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState[O]=!0,this};function z(C){const N=C._readableState;for(_("flow",N.flowing);N.flowing&&C.read()!==null;);}Z.prototype.wrap=function(C){let N=!1;C.on("data",p=>{!this.push(p)&&C.pause&&(N=!0,C.pause())}),C.on("end",()=>{this.push(null)}),C.on("error",p=>{K(this,p)}),C.on("close",()=>{this.destroy()}),C.on("destroy",()=>{this.destroy()}),this._read=()=>{N&&C.resume&&(N=!1,C.resume())};const x=o(C);for(let p=1;p{m=V?$(m,V):null,x(),x=H});try{for(;;){const V=C.destroyed?null:C.read();if(V!==null)yield V;else{if(m)throw m;if(m===null)return;await new l(p)}}}catch(V){throw m=$(m,V),m}finally{(m||(N==null?void 0:N.destroyOnReturn)!==!1)&&(m===void 0||C._readableState.autoDestroy)?T.destroyer(C,null):(C.off("readable",p),R())}}s(Z.prototype,{readable:{__proto__:null,get(){const C=this._readableState;return!!C&&C.readable!==!1&&!C.destroyed&&!C.errorEmitted&&!C.endEmitted},set(C){this._readableState&&(this._readableState.readable=!!C)}},readableDidRead:{__proto__:null,enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:!1,get:function(){return this._readableState.flowing},set:function(C){this._readableState&&(this._readableState.flowing=C)}},readableLength:{__proto__:null,enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:!1}},destroyed:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(C){this._readableState&&(this._readableState.destroyed=C)}},readableEnded:{__proto__:null,enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),s(X.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[O]!==!1},set(C){this[O]=!!C}}}),Z._fromList=re;function re(C,N){if(N.length===0)return null;let x;return N.objectMode?x=N.buffer.shift():!C||C>=N.length?(N.decoder?x=N.buffer.join(""):N.buffer.length===1?x=N.buffer.first():x=N.buffer.concat(N.length),N.buffer.clear()):x=N.buffer.consume(C,N.decoder),x}function ae(C){const N=C._readableState;_("endReadable",N.endEmitted),N.endEmitted||(N.ended=!0,t.nextTick(se,N,C))}function se(C,N){if(_("endReadableNT",C.endEmitted,C.length),!C.errored&&!C.closeEmitted&&!C.endEmitted&&C.length===0){if(C.endEmitted=!0,N.emit("end"),N.writable&&N.allowHalfOpen===!1)t.nextTick(he,N);else if(C.autoDestroy){const x=N._writableState;(!x||x.autoDestroy&&(x.finished||x.writable===!1))&&N.destroy()}}}function he(C){C.writable&&!C.writableEnded&&!C.destroyed&&C.end()}Z.from=function(C,N){return Q(Z,C,N)};let fe;function ge(){return fe===void 0&&(fe={}),fe}return Z.fromWeb=function(C,N){return ge().newStreamReadableFromReadableStream(C,N)},Z.toWeb=function(C,N){return ge().newReadableStreamFromStreamReadable(C,N)},Z.wrap=function(C,N){var x,p;return new Z({objectMode:(x=(p=C.readableObjectMode)!==null&&p!==void 0?p:C.objectMode)!==null&&x!==void 0?x:!0,...N,destroy(m,R){T.destroyer(C,m),R(m)}}).wrap(C)},sc}var oc,Fg;function Db(){if(Fg)return oc;Fg=1;const t=mn,{ArrayPrototypeSlice:e,Error:r,FunctionPrototypeSymbolHasInstance:n,ObjectDefineProperty:i,ObjectDefineProperties:s,ObjectSetPrototypeOf:o,StringPrototypeToLowerCase:a,Symbol:l,SymbolHasInstance:u}=Ve;oc=j,j.WritableState=D;const{EventEmitter:c}=gn,f=ih.Stream,{Buffer:d}=We,h=ls,{addAbortSignal:g}=ru,{getHighWaterMark:y,getDefaultHighWaterMark:b}=sh,{ERR_INVALID_ARG_TYPE:E,ERR_METHOD_NOT_IMPLEMENTED:_,ERR_MULTIPLE_CALLBACK:v,ERR_STREAM_CANNOT_PIPE:T,ERR_STREAM_DESTROYED:M,ERR_STREAM_ALREADY_FINISHED:I,ERR_STREAM_NULL_VALUES:$,ERR_STREAM_WRITE_AFTER_END:F,ERR_UNKNOWN_ENCODING:L}=bt.codes,{errorOrDestroy:U}=h;o(j.prototype,f.prototype),o(j,f);function k(){}const W=l("kOnFinished");function D(S,A,B){typeof B!="boolean"&&(B=A instanceof $r()),this.objectMode=!!(S&&S.objectMode),B&&(this.objectMode=this.objectMode||!!(S&&S.writableObjectMode)),this.highWaterMark=S?y(this,S,"writableHighWaterMark",B):b(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const z=!!(S&&S.decodeStrings===!1);this.decodeStrings=!z,this.defaultEncoding=S&&S.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=Z.bind(void 0,A),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,O(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!S||S.emitClose!==!1,this.autoDestroy=!S||S.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[W]=[]}function O(S){S.buffered=[],S.bufferedIndex=0,S.allBuffers=!0,S.allNoop=!0}D.prototype.getBuffer=function(){return e(this.buffered,this.bufferedIndex)},i(D.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function j(S){const A=this instanceof $r();if(!A&&!n(j,this))return new j(S);this._writableState=new D(S,this,A),S&&(typeof S.write=="function"&&(this._write=S.write),typeof S.writev=="function"&&(this._writev=S.writev),typeof S.destroy=="function"&&(this._destroy=S.destroy),typeof S.final=="function"&&(this._final=S.final),typeof S.construct=="function"&&(this._construct=S.construct),S.signal&&g(S.signal,this)),f.call(this,S),h.construct(this,()=>{const B=this._writableState;B.writing||me(this,B),ne(this,B)})}i(j,u,{__proto__:null,value:function(S){return n(this,S)?!0:this!==j?!1:S&&S._writableState instanceof D}}),j.prototype.pipe=function(){U(this,new T)};function Q(S,A,B,z){const q=S._writableState;if(typeof B=="function")z=B,B=q.defaultEncoding;else{if(!B)B=q.defaultEncoding;else if(B!=="buffer"&&!d.isEncoding(B))throw new L(B);typeof z!="function"&&(z=k)}if(A===null)throw new $;if(!q.objectMode)if(typeof A=="string")q.decodeStrings!==!1&&(A=d.from(A,B),B="buffer");else if(A instanceof d)B="buffer";else if(f._isUint8Array(A))A=f._uint8ArrayToBuffer(A),B="buffer";else throw new E("chunk",["string","Buffer","Uint8Array"],A);let ie;return q.ending?ie=new F:q.destroyed&&(ie=new M("write")),ie?(t.nextTick(z,ie),U(S,ie,!0),ie):(q.pendingcb++,H(S,q,A,B,z))}j.prototype.write=function(S,A,B){return Q(this,S,A,B)===!0},j.prototype.cork=function(){this._writableState.corked++},j.prototype.uncork=function(){const S=this._writableState;S.corked&&(S.corked--,S.writing||me(this,S))},j.prototype.setDefaultEncoding=function(A){if(typeof A=="string"&&(A=a(A)),!d.isEncoding(A))throw new L(A);return this._writableState.defaultEncoding=A,this};function H(S,A,B,z,q){const ie=A.objectMode?1:B.length;A.length+=ie;const re=A.lengthB.bufferedIndex&&me(S,B),z?B.afterWriteTickInfo!==null&&B.afterWriteTickInfo.cb===q?B.afterWriteTickInfo.count++:(B.afterWriteTickInfo={count:1,cb:q,stream:S,state:B},t.nextTick(ce,B.afterWriteTickInfo)):pe(S,B,1,q))}function ce({stream:S,state:A,count:B,cb:z}){return A.afterWriteTickInfo=null,pe(S,A,B,z)}function pe(S,A,B,z){for(!A.ending&&!S.destroyed&&A.length===0&&A.needDrain&&(A.needDrain=!1,S.emit("drain"));B-- >0;)A.pendingcb--,z();A.destroyed&&de(A),ne(S,A)}function de(S){if(S.writing)return;for(let q=S.bufferedIndex;q1&&S._writev){A.pendingcb-=ie-1;const ae=A.allNoop?k:he=>{for(let fe=re;fe256?(B.splice(0,re),A.bufferedIndex=0):A.bufferedIndex=re}A.bufferProcessing=!1}j.prototype._write=function(S,A,B){if(this._writev)this._writev([{chunk:S,encoding:A}],B);else throw new _("_write()")},j.prototype._writev=null,j.prototype.end=function(S,A,B){const z=this._writableState;typeof S=="function"?(B=S,S=null,A=null):typeof A=="function"&&(B=A,A=null);let q;if(S!=null){const ie=Q(this,S,A);ie instanceof r&&(q=ie)}return z.corked&&(z.corked=1,this.uncork()),q||(!z.errored&&!z.ending?(z.ending=!0,ne(this,z,!0),z.ended=!0):z.finished?q=new I("end"):z.destroyed&&(q=new M("end"))),typeof B=="function"&&(q||z.finished?t.nextTick(B,q):z[W].push(B)),this};function be(S){return S.ending&&!S.destroyed&&S.constructed&&S.length===0&&!S.errored&&S.buffered.length===0&&!S.finished&&!S.writing&&!S.errorEmitted&&!S.closeEmitted}function G(S,A){let B=!1;function z(q){if(B){U(S,q??v());return}if(B=!0,A.pendingcb--,q){const ie=A[W].splice(0);for(let re=0;re{be(q)?ee(z,q):q.pendingcb--},S,A)):be(A)&&(A.pendingcb++,ee(S,A))))}function ee(S,A){A.pendingcb--,A.finished=!0;const B=A[W].splice(0);for(let z=0;z{if(Z!=null)throw new d("nully","body",Z)},Z=>{h(K,Z)});return K=new I({objectMode:!0,readable:!1,write:O,final(Z){j(async()=>{try{await X,t.nextTick(Z,null)}catch(ce){t.nextTick(Z,ce)}})},destroy:Q})}throw new d("Iterable, AsyncIterable or AsyncFunction",k,D)}if(v(U))return L(U.arrayBuffer());if(i(U))return E(I,U,{objectMode:!0,writable:!1});if(typeof(U==null?void 0:U.writable)=="object"||typeof(U==null?void 0:U.readable)=="object"){const D=U!=null&&U.readable?o(U==null?void 0:U.readable)?U==null?void 0:U.readable:L(U.readable):void 0,O=U!=null&&U.writable?a(U==null?void 0:U.writable)?U==null?void 0:U.writable:L(U.writable):void 0;return F({readable:D,writable:O})}const W=U==null?void 0:U.then;if(typeof W=="function"){let D;return M(W,U,O=>{O!=null&&D.push(O),D.push(null)},O=>{h(D,O)}),D=new I({objectMode:!0,writable:!1,read(){}})}throw new f(k,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],U)};function $(L){let{promise:U,resolve:k}=b();const W=new T,D=W.signal;return{value:L(async function*(){for(;;){const j=U;U=null;const{chunk:Q,done:H,cb:K}=await j;if(t.nextTick(K),H)return;if(D.aborted)throw new c(void 0,{cause:D.reason});({promise:U,resolve:k}=b()),yield Q}}(),{signal:D}),write(j,Q,H){const K=k;k=null,K({chunk:j,done:!1,cb:H})},final(j){const Q=k;k=null,Q({done:!0,cb:j})},destroy(j,Q){W.abort(),Q(j)}}}function F(L){const U=L.readable&&typeof L.readable.read!="function"?y.wrap(L.readable):L.readable,k=L.writable;let W=!!r(U),D=!!n(k),O,j,Q,H,K;function X(Z){const ce=H;H=null,ce?ce(Z):Z&&K.destroy(Z)}return K=new I({readableObjectMode:!!(U!=null&&U.readableObjectMode),writableObjectMode:!!(k!=null&&k.writableObjectMode),readable:W,writable:D}),D&&(u(k,Z=>{D=!1,Z&&h(U,Z),X(Z)}),K._write=function(Z,ce,pe){k.write(Z,ce)?pe():O=pe},K._final=function(Z){k.end(),j=Z},k.on("drain",function(){if(O){const Z=O;O=null,Z()}}),k.on("finish",function(){if(j){const Z=j;j=null,Z()}})),W&&(u(U,Z=>{W=!1,Z&&h(U,Z),X(Z)}),U.on("readable",function(){if(Q){const Z=Q;Q=null,Z()}}),U.on("end",function(){K.push(null)}),K._read=function(){for(;;){const Z=U.read();if(Z===null){Q=K._read;return}if(!K.push(Z))return}}),K._destroy=function(Z,ce){!Z&&H!==null&&(Z=new c),Q=null,O=null,j=null,H===null?ce(Z):(H=ce,h(k,Z),h(U,Z))},K}return ac}var lc,jg;function $r(){if(jg)return lc;jg=1;const{ObjectDefineProperties:t,ObjectGetOwnPropertyDescriptor:e,ObjectKeys:r,ObjectSetPrototypeOf:n}=Ve;lc=o;const i=nu(),s=Db();n(o.prototype,i.prototype),n(o,i);{const c=r(s.prototype);for(let f=0;f{if(e){t?t(e):this.destroy(e);return}r!=null&&this.push(r),this.push(null),t&&t()}):(this.push(null),t&&t())}function PI(){this._final!==$f&&$f.call(this)}kr.prototype._final=$f;kr.prototype._transform=function(t,e,r){throw new II("_transform()")};kr.prototype._write=function(t,e,r){const n=this._readableState,i=this._writableState,s=n.length;this._transform(t,e,(o,a)=>{if(o){r(o);return}a!=null&&this.push(a),i.ended||s===n.length||n.length{n=!0});const i=el(t,{readable:e,writable:r},s=>{n=!s});return{destroy:s=>{n||(n=!0,kI.destroyer(t,s||new FI("pipe")))},cleanup:i}}function YI(t){return zI(t[t.length-1],"streams[stream.length - 1]"),t.pop()}function pc(t){if(Cn(t))return t;if(Sa(t))return KI(t);throw new kf("val",["Readable","Iterable","AsyncIterable"],t)}async function*KI(t){hc||(hc=nu()),yield*hc.prototype[NI].call(t)}async function Ko(t,e,r,{end:n}){let i,s=null;const o=u=>{if(u&&(i=u),s){const c=s;s=null,c()}},a=()=>new LI((u,c)=>{i?c(i):s=()=>{i?c(i):u()}});e.on("drain",o);const l=el(e,{readable:!1},o);try{e.writableNeedDrain&&await a();for await(const u of t)e.write(u)||await a();n&&e.end(),await a(),r()}catch(u){r(i!==u?DI(i,u):u)}finally{l(),e.off("drain",o)}}async function gc(t,e,r,{end:n}){yi(e)&&(e=e.writable);const i=e.getWriter();try{for await(const s of t)await i.ready,i.write(s).catch(()=>{});await i.ready,n&&await i.close(),r()}catch(s){try{await i.abort(s),r(s)}catch(o){r(o)}}}function GI(...t){return zb(t,$I(YI(t)))}function zb(t,e,r){if(t.length===1&&RI(t[0])&&(t=t[0]),t.length<2)throw new BI("streams");const n=new qI,i=n.signal,s=r==null?void 0:r.signal,o=[];HI(s,"options.signal");function a(){h(new jI)}s==null||s.addEventListener("abort",a);let l,u;const c=[];let f=0;function d(E){h(E,--f===0)}function h(E,_){if(E&&(!l||l.code==="ERR_STREAM_PREMATURE_CLOSE")&&(l=E),!(!l&&!_)){for(;c.length;)c.shift()(l);s==null||s.removeEventListener("abort",a),n.abort(),_&&(l||o.forEach(v=>v()),Ns.nextTick(e,l,u))}}let g;for(let E=0;E0,M=v||(r==null?void 0:r.end)!==!1,I=E===t.length-1;if(Hg(_)){let $=function(F){F&&F.name!=="AbortError"&&F.code!=="ERR_STREAM_PREMATURE_CLOSE"&&d(F)};if(M){const{destroy:F,cleanup:L}=Wg(_,v,T);c.push(F),cc(_)&&I&&o.push(L)}_.on("error",$),cc(_)&&I&&o.push(()=>{_.removeListener("error",$)})}if(E===0)if(typeof _=="function"){if(g=_({signal:i}),!Cn(g))throw new uc("Iterable, AsyncIterable or Stream","source",g)}else Cn(_)||Sa(_)||yi(_)?g=_:g=zg.from(_);else if(typeof _=="function"){if(yi(g)){var y;g=pc((y=g)===null||y===void 0?void 0:y.readable)}else g=pc(g);if(g=_(g,{signal:i}),v){if(!Cn(g,!0))throw new uc("AsyncIterable",`transform[${E-1}]`,g)}else{var b;dc||(dc=jb);const $=new dc({objectMode:!0}),F=(b=g)===null||b===void 0?void 0:b.then;if(typeof F=="function")f++,F.call(g,k=>{u=k,k!=null&&$.write(k),M&&$.end(),Ns.nextTick(d)},k=>{$.destroy(k),Ns.nextTick(d,k)});else if(Cn(g,!0))f++,Ko(g,$,d,{end:M});else if(fc(g)||yi(g)){const k=g.readable||g;f++,Ko(k,$,d,{end:M})}else throw new uc("AsyncIterable or Promise","destination",g);g=$;const{destroy:L,cleanup:U}=Wg(g,!1,!0);c.push(L),I&&o.push(U)}}else if(Hg(_)){if(Sa(g)){f+=2;const $=XI(g,_,d,{end:M});cc(_)&&I&&o.push($)}else if(yi(g)||fc(g)){const $=g.readable||g;f++,Ko($,_,d,{end:M})}else if(Cn(g))f++,Ko(g,_,d,{end:M});else throw new kf("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=_}else if(WI(_)){if(Sa(g))f++,gc(pc(g),_,d,{end:M});else if(fc(g)||Cn(g))f++,gc(g,_,d,{end:M});else if(yi(g))f++,gc(g.readable,_,d,{end:M});else throw new kf("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g);g=_}else g=zg.from(_)}return(i!=null&&i.aborted||s!=null&&s.aborted)&&Ns.nextTick(a),g}function XI(t,e,r,{end:n}){let i=!1;if(e.on("close",()=>{i||r(new UI)}),t.pipe(e,{end:!1}),n){let s=function(){i=!0,e.end()};VI(t)?Ns.nextTick(s):t.once("end",s)}else r();return el(t,{readable:!0,writable:!1},s=>{const o=t._readableState;s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&o&&o.ended&&!o.errored&&!o.errorEmitted?t.once("end",r).once("error",r):r(s)}),el(e,{readable:!1,writable:!0},r)}var lh={pipelineImpl:zb,pipeline:GI};const{pipeline:QI}=lh,Go=$r(),{destroyer:JI}=ls,{isNodeStream:Xo,isReadable:Vg,isWritable:qg,isWebStream:mc,isTransformStream:An,isWritableStream:Yg,isReadableStream:Kg}=Yr,{AbortError:ZI,codes:{ERR_INVALID_ARG_VALUE:Gg,ERR_MISSING_ARGS:eO}}=bt,tO=wn;var Hb=function(...e){if(e.length===0)throw new eO("streams");if(e.length===1)return Go.from(e[0]);const r=[...e];if(typeof e[0]=="function"&&(e[0]=Go.from(e[0])),typeof e[e.length-1]=="function"){const h=e.length-1;e[h]=Go.from(e[h])}for(let h=0;h0&&!(qg(e[h])||Yg(e[h])||An(e[h])))throw new Gg(`streams[${h}]`,r[h],"must be writable")}let n,i,s,o,a;function l(h){const g=o;o=null,g?g(h):h?a.destroy(h):!d&&!f&&a.destroy()}const u=e[0],c=QI(e,l),f=!!(qg(u)||Yg(u)||An(u)),d=!!(Vg(c)||Kg(c)||An(c));if(a=new Go({writableObjectMode:!!(u!=null&&u.writableObjectMode),readableObjectMode:!!(c!=null&&c.writableObjectMode),writable:f,readable:d}),f){if(Xo(u))a._write=function(g,y,b){u.write(g,y)?b():n=b},a._final=function(g){u.end(),i=g},u.on("drain",function(){if(n){const g=n;n=null,g()}});else if(mc(u)){const y=(An(u)?u.writable:u).getWriter();a._write=async function(b,E,_){try{await y.ready,y.write(b).catch(()=>{}),_()}catch(v){_(v)}},a._final=async function(b){try{await y.ready,y.close().catch(()=>{}),i=b}catch(E){b(E)}}}const h=An(c)?c.readable:c;tO(h,()=>{if(i){const g=i;i=null,g()}})}if(d){if(Xo(c))c.on("readable",function(){if(s){const h=s;s=null,h()}}),c.on("end",function(){a.push(null)}),a._read=function(){for(;;){const h=c.read();if(h===null){s=a._read;return}if(!a.push(h))return}};else if(mc(c)){const g=(An(c)?c.readable:c).getReader();a._read=async function(){for(;;)try{const{value:y,done:b}=await g.read();if(!a.push(y))return;if(b){a.push(null);return}}catch{return}}}}return a._destroy=function(h,g){!h&&o!==null&&(h=new ZI),s=null,n=null,i=null,o===null?g(h):(o=g,Xo(c)&&JI(c,h))},a};const Wb=globalThis.AbortController||Jd().AbortController,{codes:{ERR_INVALID_ARG_VALUE:rO,ERR_INVALID_ARG_TYPE:xo,ERR_MISSING_ARGS:nO,ERR_OUT_OF_RANGE:iO},AbortError:gr}=bt,{validateAbortSignal:ni,validateInteger:sO,validateObject:ii}=Gl,oO=Ve.Symbol("kWeak"),{finished:aO}=wn,lO=Hb,{addAbortSignalNoValidate:uO}=ru,{isWritable:cO,isNodeStream:fO}=Yr,{ArrayPrototypePush:dO,MathFloor:hO,Number:pO,NumberIsNaN:gO,Promise:Xg,PromiseReject:Qg,PromisePrototypeThen:mO,Symbol:Vb}=Ve,tl=Vb("kEmpty"),Jg=Vb("kEof");function yO(t,e){if(e!=null&&ii(e,"options"),(e==null?void 0:e.signal)!=null&&ni(e.signal,"options.signal"),fO(t)&&!cO(t))throw new rO("stream",t,"must be writable");const r=lO(this,t);return e!=null&&e.signal&&uO(e.signal,r),r}function iu(t,e){if(typeof t!="function")throw new xo("fn",["Function","AsyncFunction"],t);e!=null&&ii(e,"options"),(e==null?void 0:e.signal)!=null&&ni(e.signal,"options.signal");let r=1;return(e==null?void 0:e.concurrency)!=null&&(r=hO(e.concurrency)),sO(r,"concurrency",1),(async function*(){var i,s;const o=new Wb,a=this,l=[],u=o.signal,c={signal:u},f=()=>o.abort();e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted&&f(),e==null||(s=e.signal)===null||s===void 0||s.addEventListener("abort",f);let d,h,g=!1;function y(){g=!0}async function b(){try{for await(let v of a){var E;if(g)return;if(u.aborted)throw new gr;try{v=t(v,c)}catch(T){v=Qg(T)}v!==tl&&(typeof((E=v)===null||E===void 0?void 0:E.catch)=="function"&&v.catch(y),l.push(v),d&&(d(),d=null),!g&&l.length&&l.length>=r&&await new Xg(T=>{h=T}))}l.push(Jg)}catch(v){const T=Qg(v);mO(T,void 0,y),l.push(T)}finally{var _;g=!0,d&&(d(),d=null),e==null||(_=e.signal)===null||_===void 0||_.removeEventListener("abort",f)}}b();try{for(;;){for(;l.length>0;){const E=await l[0];if(E===Jg)return;if(u.aborted)throw new gr;E!==tl&&(yield E),l.shift(),h&&(h(),h=null)}await new Xg(E=>{d=E})}}finally{o.abort(),g=!0,h&&(h(),h=null)}}).call(this)}function wO(t=void 0){return t!=null&&ii(t,"options"),(t==null?void 0:t.signal)!=null&&ni(t.signal,"options.signal"),(async function*(){let r=0;for await(const i of this){var n;if(t!=null&&(n=t.signal)!==null&&n!==void 0&&n.aborted)throw new gr({cause:t.signal.reason});yield[r++,i]}}).call(this)}async function qb(t,e=void 0){for await(const r of uh.call(this,t,e))return!0;return!1}async function bO(t,e=void 0){if(typeof t!="function")throw new xo("fn",["Function","AsyncFunction"],t);return!await qb.call(this,async(...r)=>!await t(...r),e)}async function _O(t,e){for await(const r of uh.call(this,t,e))return r}async function vO(t,e){if(typeof t!="function")throw new xo("fn",["Function","AsyncFunction"],t);async function r(n,i){return await t(n,i),tl}for await(const n of iu.call(this,r,e));}function uh(t,e){if(typeof t!="function")throw new xo("fn",["Function","AsyncFunction"],t);async function r(n,i){return await t(n,i)?n:tl}return iu.call(this,r,e)}class EO extends nO{constructor(){super("reduce"),this.message="Reduce of an empty stream requires an initial value"}}async function SO(t,e,r){var n;if(typeof t!="function")throw new xo("reducer",["Function","AsyncFunction"],t);r!=null&&ii(r,"options"),(r==null?void 0:r.signal)!=null&&ni(r.signal,"options.signal");let i=arguments.length>1;if(r!=null&&(n=r.signal)!==null&&n!==void 0&&n.aborted){const u=new gr(void 0,{cause:r.signal.reason});throw this.once("error",()=>{}),await aO(this.destroy(u)),u}const s=new Wb,o=s.signal;if(r!=null&&r.signal){const u={once:!0,[oO]:this};r.signal.addEventListener("abort",()=>s.abort(),u)}let a=!1;try{for await(const u of this){var l;if(a=!0,r!=null&&(l=r.signal)!==null&&l!==void 0&&l.aborted)throw new gr;i?e=await t(e,u,{signal:o}):(e=u,i=!0)}if(!a&&!i)throw new EO}finally{s.abort()}return e}async function xO(t){t!=null&&ii(t,"options"),(t==null?void 0:t.signal)!=null&&ni(t.signal,"options.signal");const e=[];for await(const n of this){var r;if(t!=null&&(r=t.signal)!==null&&r!==void 0&&r.aborted)throw new gr(void 0,{cause:t.signal.reason});dO(e,n)}return e}function TO(t,e){const r=iu.call(this,t,e);return(async function*(){for await(const i of r)yield*i}).call(this)}function Yb(t){if(t=pO(t),gO(t))return 0;if(t<0)throw new iO("number",">= 0",t);return t}function AO(t,e=void 0){return e!=null&&ii(e,"options"),(e==null?void 0:e.signal)!=null&&ni(e.signal,"options.signal"),t=Yb(t),(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new gr;for await(const s of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new gr;t--<=0&&(yield s)}}).call(this)}function MO(t,e=void 0){return e!=null&&ii(e,"options"),(e==null?void 0:e.signal)!=null&&ni(e.signal,"options.signal"),t=Yb(t),(async function*(){var n;if(e!=null&&(n=e.signal)!==null&&n!==void 0&&n.aborted)throw new gr;for await(const s of this){var i;if(e!=null&&(i=e.signal)!==null&&i!==void 0&&i.aborted)throw new gr;if(t-- >0)yield s;else return}}).call(this)}Qd.streamReturningOperators={asIndexedPairs:wO,drop:AO,filter:uh,flatMap:TO,map:iu,take:MO,compose:yO};Qd.promiseReturningOperators={every:bO,forEach:vO,reduce:SO,toArray:xO,some:qb,find:_O};var yc,Zg;function Kb(){if(Zg)return yc;Zg=1;const{ArrayPrototypePop:t,Promise:e}=Ve,{isIterable:r,isNodeStream:n,isWebStream:i}=Yr,{pipelineImpl:s}=lh,{finished:o}=wn;Gb();function a(...l){return new e((u,c)=>{let f,d;const h=l[l.length-1];if(h&&typeof h=="object"&&!n(h)&&!r(h)&&!i(h)){const g=t(l);f=g.signal,d=g.end}s(l,(g,y)=>{g?c(g):u(y)},{signal:f,end:d})})}return yc={finished:o,pipeline:a},yc}var em;function Gb(){if(em)return tc.exports;em=1;const{Buffer:t}=We,{ObjectDefineProperty:e,ObjectKeys:r,ReflectApply:n}=Ve,{promisify:{custom:i}}=qr,{streamReturningOperators:s,promiseReturningOperators:o}=Qd,{codes:{ERR_ILLEGAL_CONSTRUCTOR:a}}=bt,l=Hb,{pipeline:u}=lh,{destroyer:c}=ls,f=wn,d=Kb(),h=Yr,g=tc.exports=ih.Stream;g.isDisturbed=h.isDisturbed,g.isErrored=h.isErrored,g.isReadable=h.isReadable,g.Readable=nu();for(const b of r(s)){let _=function(...v){if(new.target)throw a();return g.Readable.from(n(E,this,v))};const E=s[b];e(_,"name",{__proto__:null,value:E.name}),e(_,"length",{__proto__:null,value:E.length}),e(g.Readable.prototype,b,{__proto__:null,value:_,enumerable:!1,configurable:!0,writable:!0})}for(const b of r(o)){let _=function(...v){if(new.target)throw a();return n(E,this,v)};const E=o[b];e(_,"name",{__proto__:null,value:E.name}),e(_,"length",{__proto__:null,value:E.length}),e(g.Readable.prototype,b,{__proto__:null,value:_,enumerable:!1,configurable:!0,writable:!0})}g.Writable=Db(),g.Duplex=$r(),g.Transform=Fb,g.PassThrough=jb,g.pipeline=u;const{addAbortSignal:y}=ru;return g.addAbortSignal=y,g.finished=f,g.destroy=c,g.compose=l,e(g,"promises",{__proto__:null,configurable:!0,enumerable:!0,get(){return d}}),e(u,i,{__proto__:null,enumerable:!0,get(){return d.pipeline}}),e(f,i,{__proto__:null,enumerable:!0,get(){return d.finished}}),g.Stream=g,g._isUint8Array=function(E){return E instanceof Uint8Array},g._uint8ArrayToBuffer=function(E){return t.from(E.buffer,E.byteOffset,E.byteLength)},tc.exports}(function(t){const e=Gb(),r=Kb(),n=e.Readable.destroy;t.exports=e.Readable,t.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer,t.exports._isUint8Array=e._isUint8Array,t.exports.isDisturbed=e.isDisturbed,t.exports.isErrored=e.isErrored,t.exports.isReadable=e.isReadable,t.exports.Readable=e.Readable,t.exports.Writable=e.Writable,t.exports.Duplex=e.Duplex,t.exports.Transform=e.Transform,t.exports.PassThrough=e.PassThrough,t.exports.addAbortSignal=e.addAbortSignal,t.exports.finished=e.finished,t.exports.destroy=e.destroy,t.exports.destroy=n,t.exports.pipeline=e.pipeline,t.exports.compose=e.compose,Object.defineProperty(e,"promises",{configurable:!0,enumerable:!0,get(){return r}}),t.exports.Stream=e.Stream,t.exports.default=t.exports})(ob);var To=ob.exports;function CO(t,e,r){var n=this;this._callback=t,this._args=r,this._interval=setInterval(t,e,this._args),this.reschedule=function(i){i||(i=n._interval),n._interval&&clearInterval(n._interval),n._interval=setInterval(n._callback,i,n._args)},this.clear=function(){n._interval&&(clearInterval(n._interval),n._interval=void 0)},this.destroy=function(){n._interval&&clearInterval(n._interval),n._callback=void 0,n._interval=void 0,n._args=void 0}}function IO(){if(typeof arguments[0]!="function")throw new Error("callback needed");if(typeof arguments[1]!="number")throw new Error("interval needed");var t;if(arguments.length>0){t=new Array(arguments.length-2);for(var e=0;e{r.push(s)}),e._read=()=>{!n&&i{if(!n)return n=!0,setTimeout(()=>{e.emit("close")},0),e},e}del(e,r){const n=this._inflights.get(e.messageId);return n?(this._inflights.delete(e.messageId),r(null,n)):r&&r(new Error("missing packet")),this}get(e,r){const n=this._inflights.get(e.messageId);return n?r(null,n):r&&r(new Error("missing packet")),this}close(e){this.options.clean&&(this._inflights=null),e&&e()}}su.default=FO;var ch={},fh={};Object.defineProperty(fh,"__esModule",{value:!0});const tm=[0,16,128,131,135,144,145,151,153],UO=(t,e,r)=>{t.log("handlePublish: packet %o",e),r=typeof r<"u"?r:t.noop;let n=e.topic.toString();const i=e.payload,{qos:s}=e,{messageId:o}=e,{options:a}=t;if(t.options.protocolVersion===5){let l;if(e.properties&&(l=e.properties.topicAlias),typeof l<"u")if(n.length===0)if(l>0&&l<=65535){const u=t.topicAliasRecv.getTopicByAlias(l);if(u)n=u,t.log("handlePublish :: topic complemented by alias. topic: %s - alias: %d",n,l);else{t.log("handlePublish :: unregistered topic alias. alias: %d",l),t.emit("error",new Error("Received unregistered Topic Alias"));return}}else{t.log("handlePublish :: topic alias out of range. alias: %d",l),t.emit("error",new Error("Received Topic Alias is out of range"));return}else if(t.topicAliasRecv.put(n,l))t.log("handlePublish :: registered topic: %s - alias: %d",n,l);else{t.log("handlePublish :: topic alias out of range. alias: %d",l),t.emit("error",new Error("Received Topic Alias is out of range"));return}}switch(t.log("handlePublish: qos %d",s),s){case 2:{a.customHandleAcks(n,i,e,(l,u)=>{if(typeof l=="number"&&(u=l,l=null),l)return t.emit("error",l);if(tm.indexOf(u)===-1)return t.emit("error",new Error("Wrong reason code for pubrec"));u?t._sendPacket({cmd:"pubrec",messageId:o,reasonCode:u},r):t.incomingStore.put(e,()=>{t._sendPacket({cmd:"pubrec",messageId:o},r)})});break}case 1:{a.customHandleAcks(n,i,e,(l,u)=>{if(typeof l=="number"&&(u=l,l=null),l)return t.emit("error",l);if(tm.indexOf(u)===-1)return t.emit("error",new Error("Wrong reason code for puback"));u||t.emit("message",n,i,e),t.handleMessage(e,c=>{if(c)return r&&r(c);t._sendPacket({cmd:"puback",messageId:o,reasonCode:u},r)})});break}case 0:t.emit("message",n,i,e),t.handleMessage(e,r);break;default:t.log("handlePublish: unknown QoS. Doing nothing.");break}};fh.default=UO;var dh={},Dr={};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.applyMixin=Dr.ErrorWithReasonCode=void 0;class hh extends Error{constructor(e,r){super(e),this.code=r,Object.setPrototypeOf(this,hh.prototype),Object.getPrototypeOf(this).name="ErrorWithReasonCode"}}Dr.ErrorWithReasonCode=hh;function jO(t,e,r=!1){var n;const i=[e];for(;;){const s=i[0],o=Object.getPrototypeOf(s);if(o!=null&&o.prototype)i.unshift(o);else break}for(const s of i)for(const o of Object.getOwnPropertyNames(s.prototype))(r||o!=="constructor")&&Object.defineProperty(t.prototype,o,(n=Object.getOwnPropertyDescriptor(s.prototype,o))!==null&&n!==void 0?n:Object.create(null))}Dr.applyMixin=jO;var Ao={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ReasonCodes=void 0,t.ReasonCodes={0:"",1:"Unacceptable protocol version",2:"Identifier rejected",3:"Server unavailable",4:"Bad username or password",5:"Not authorized",16:"No matching subscribers",17:"No subscription existed",128:"Unspecified error",129:"Malformed Packet",130:"Protocol Error",131:"Implementation specific error",132:"Unsupported Protocol Version",133:"Client Identifier not valid",134:"Bad User Name or Password",135:"Not authorized",136:"Server unavailable",137:"Server busy",138:"Banned",139:"Server shutting down",140:"Bad authentication method",141:"Keep Alive timeout",142:"Session taken over",143:"Topic Filter invalid",144:"Topic Name invalid",145:"Packet identifier in use",146:"Packet Identifier not found",147:"Receive Maximum exceeded",148:"Topic Alias invalid",149:"Packet too large",150:"Message rate too high",151:"Quota exceeded",152:"Administrative action",153:"Payload format invalid",154:"Retain not supported",155:"QoS not supported",156:"Use another server",157:"Server moved",158:"Shared Subscriptions not supported",159:"Connection rate exceeded",160:"Maximum connect time",161:"Subscription Identifiers not supported",162:"Wildcard Subscriptions not supported"};const e=(r,n)=>{const{messageId:i}=n,s=n.cmd;let o=null;const a=r.outgoing[i]?r.outgoing[i].cb:null;let l;if(!a){r.log("_handleAck :: Server sent an ack in error. Ignoring.");return}switch(r.log("_handleAck :: packet type",s),s){case"pubcomp":case"puback":{const u=n.reasonCode;u&&u>0&&u!==16?(l=new Error(`Publish error: ${t.ReasonCodes[u]}`),l.code=u,r._removeOutgoingAndStoreMessage(i,()=>{a(l,n)})):r._removeOutgoingAndStoreMessage(i,a);break}case"pubrec":{o={cmd:"pubrel",qos:2,messageId:i};const u=n.reasonCode;u&&u>0&&u!==16?(l=new Error(`Publish error: ${t.ReasonCodes[u]}`),l.code=u,r._removeOutgoingAndStoreMessage(i,()=>{a(l,n)})):r._sendPacket(o);break}case"suback":{delete r.outgoing[i],r.messageIdProvider.deallocate(i);const u=n.granted;for(let c=0;c{delete r._resubscribeTopics[d]})}delete r.messageIdToTopic[i],r._invokeStoreProcessingQueue(),a(null,n);break}case"unsuback":{delete r.outgoing[i],r.messageIdProvider.deallocate(i),r._invokeStoreProcessingQueue(),a(null);break}default:r.emit("error",new Error("unrecognized packet type"))}r.disconnecting&&Object.keys(r.outgoing).length===0&&r.emit("outgoingEmpty")};t.default=e})(Ao);Object.defineProperty(dh,"__esModule",{value:!0});const rm=Dr,zO=Ao,HO=(t,e)=>{const{options:r}=t,n=r.protocolVersion,i=n===5?e.reasonCode:e.returnCode;if(n!==5){const s=new rm.ErrorWithReasonCode(`Protocol error: Auth packets are only supported in MQTT 5. Your version:${n}`,i);t.emit("error",s);return}t.handleAuth(e,(s,o)=>{if(s){t.emit("error",s);return}if(i===24)t.reconnecting=!1,t._sendPacket(o);else{const a=new rm.ErrorWithReasonCode(`Connection refused: ${zO.ReasonCodes[i]}`,i);t.emit("error",a)}})};dh.default=HO;var ph={},gh={};const ws=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,WO=typeof AbortController=="function",rl=WO?AbortController:class{constructor(){this.signal=new Qb}abort(e=new Error("This operation was aborted")){this.signal.reason=this.signal.reason||e,this.signal.aborted=!0,this.signal.dispatchEvent({type:"abort",target:this.signal})}},VO=typeof AbortSignal=="function",qO=typeof rl.AbortSignal=="function",Qb=VO?AbortSignal:qO?rl.AbortController:class{constructor(){this.reason=void 0,this.aborted=!1,this._listeners=[]}dispatchEvent(e){e.type==="abort"&&(this.aborted=!0,this.onabort(e),this._listeners.forEach(r=>r(e),this))}onabort(){}addEventListener(e,r){e==="abort"&&this._listeners.push(r)}removeEventListener(e,r){e==="abort"&&(this._listeners=this._listeners.filter(n=>n!==r))}},mh=new Set,wc=(t,e)=>{const r=`LRU_CACHE_OPTION_${t}`;ou(r)&&yh(r,`${t} option`,`options.${e}`,Yn)},bc=(t,e)=>{const r=`LRU_CACHE_METHOD_${t}`;if(ou(r)){const{prototype:n}=Yn,{get:i}=Object.getOwnPropertyDescriptor(n,t);yh(r,`${t} method`,`cache.${e}()`,i)}},YO=(t,e)=>{const r=`LRU_CACHE_PROPERTY_${t}`;if(ou(r)){const{prototype:n}=Yn,{get:i}=Object.getOwnPropertyDescriptor(n,t);yh(r,`${t} property`,`cache.${e}`,i)}},Jb=(...t)=>{typeof _e=="object"&&_e&&typeof _e.emitWarning=="function"?_e.emitWarning(...t):console.error(...t)},ou=t=>!mh.has(t),yh=(t,e,r,n)=>{mh.add(t);const i=`The ${e} is deprecated. Please use ${r} instead.`;Jb(i,"DeprecationWarning",t,n)},Zr=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),Zb=t=>Zr(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?xa:null:null;class xa extends Array{constructor(e){super(e),this.fill(0)}}let KO=class{constructor(e){if(e===0)return[];const r=Zb(e);this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}};class Yn{constructor(e={}){const{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:u,disposeAfter:c,noDisposeOnSet:f,noUpdateTTL:d,maxSize:h=0,maxEntrySize:g=0,sizeCalculation:y,fetchMethod:b,fetchContext:E,noDeleteOnFetchRejection:_,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:T,allowStaleOnFetchAbort:M,ignoreFetchAbort:I}=e,{length:$,maxAge:F,stale:L}=e instanceof Yn?{}:e;if(r!==0&&!Zr(r))throw new TypeError("max option must be a nonnegative integer");const U=r?Zb(r):Array;if(!U)throw new Error("invalid max value: "+r);if(this.max=r,this.maxSize=h,this.maxEntrySize=g||this.maxSize,this.sizeCalculation=y||$,this.sizeCalculation){if(!this.maxSize&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=b||null,this.fetchMethod&&typeof this.fetchMethod!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.fetchContext=E,!this.fetchMethod&&E!==void 0)throw new TypeError("cannot set fetchContext without fetchMethod");if(this.keyMap=new Map,this.keyList=new Array(r).fill(null),this.valList=new Array(r).fill(null),this.next=new U(r),this.prev=new U(r),this.head=0,this.tail=0,this.free=new KO(r),this.initialFill=1,this.size=0,typeof u=="function"&&(this.dispose=u),typeof c=="function"?(this.disposeAfter=c,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!f,this.noUpdateTTL=!!d,this.noDeleteOnFetchRejection=!!_,this.allowStaleOnFetchRejection=!!T,this.allowStaleOnFetchAbort=!!M,this.ignoreFetchAbort=!!I,this.maxEntrySize!==0){if(this.maxSize!==0&&!Zr(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");if(!Zr(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!l||!!L,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Zr(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||F||0,this.ttl){if(!Zr(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(this.max===0&&this.ttl===0&&this.maxSize===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const k="LRU_CACHE_UNBOUNDED";ou(k)&&(mh.add(k),Jb("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",k,Yn))}L&&wc("stale","allowStale"),F&&wc("maxAge","ttl"),$&&wc("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new xa(this.max),this.starts=new xa(this.max),this.setItemTTL=(n,i,s=ws.now())=>{if(this.starts[n]=i!==0?s:0,this.ttls[n]=i,i!==0&&this.ttlAutopurge){const o=setTimeout(()=>{this.isStale(n)&&this.delete(this.keyList[n])},i+1);o.unref&&o.unref()}},this.updateItemAge=n=>{this.starts[n]=this.ttls[n]!==0?ws.now():0},this.statusTTL=(n,i)=>{n&&(n.ttl=this.ttls[i],n.start=this.starts[i],n.now=e||r(),n.remainingTTL=n.now+n.ttl-n.start)};let e=0;const r=()=>{const n=ws.now();if(this.ttlResolution>0){e=n;const i=setTimeout(()=>e=0,this.ttlResolution);i.unref&&i.unref()}return n};this.getRemainingTTL=n=>{const i=this.keyMap.get(n);return i===void 0?0:this.ttls[i]===0||this.starts[i]===0?1/0:this.starts[i]+this.ttls[i]-(e||r())},this.isStale=n=>this.ttls[n]!==0&&this.starts[n]!==0&&(e||r())-this.starts[n]>this.ttls[n]}updateItemAge(e){}statusTTL(e,r){}setItemTTL(e,r,n){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new xa(this.max),this.removeItemSize=e=>{this.calculatedSize-=this.sizes[e],this.sizes[e]=0},this.requireSize=(e,r,n,i)=>{if(this.isBackgroundFetch(r))return 0;if(!Zr(n))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(n=i(r,e),!Zr(n))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return n},this.addItemSize=(e,r,n)=>{if(this.sizes[e]=r,this.maxSize){const i=this.maxSize-this.sizes[e];for(;this.calculatedSize>i;)this.evict(!0)}this.calculatedSize+=this.sizes[e],n&&(n.entrySize=r,n.totalCalculatedSize=this.calculatedSize)}}removeItemSize(e){}addItemSize(e,r){}requireSize(e,r,n,i){if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let r=this.tail;!(!this.isValidIndex(r)||((e||!this.isStale(r))&&(yield r),r===this.head));)r=this.prev[r]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let r=this.head;!(!this.isValidIndex(r)||((e||!this.isStale(r))&&(yield r),r===this.tail));)r=this.next[r]}isValidIndex(e){return e!==void 0&&this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())this.valList[e]!==void 0&&this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield[this.keyList[e],this.valList[e]])}*rentries(){for(const e of this.rindexes())this.valList[e]!==void 0&&this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield[this.keyList[e],this.valList[e]])}*keys(){for(const e of this.indexes())this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.keyList[e])}*rkeys(){for(const e of this.rindexes())this.keyList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.keyList[e])}*values(){for(const e of this.indexes())this.valList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.valList[e])}*rvalues(){for(const e of this.rindexes())this.valList[e]!==void 0&&!this.isBackgroundFetch(this.valList[e])&&(yield this.valList[e])}[Symbol.iterator](){return this.entries()}find(e,r){for(const n of this.indexes()){const i=this.valList[n],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;if(s!==void 0&&e(s,this.keyList[n],this))return this.get(this.keyList[n],r)}}forEach(e,r=this){for(const n of this.indexes()){const i=this.valList[n],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(r,s,this.keyList[n],this)}}rforEach(e,r=this){for(const n of this.rindexes()){const i=this.valList[n],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;s!==void 0&&e.call(r,s,this.keyList[n],this)}}get prune(){return bc("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const r of this.rindexes({allowStale:!0}))this.isStale(r)&&(this.delete(this.keyList[r]),e=!0);return e}dump(){const e=[];for(const r of this.indexes({allowStale:!0})){const n=this.keyList[r],i=this.valList[r],s=this.isBackgroundFetch(i)?i.__staleWhileFetching:i;if(s===void 0)continue;const o={value:s};if(this.ttls){o.ttl=this.ttls[r];const a=ws.now()-this.starts[r];o.start=Math.floor(Date.now()-a)}this.sizes&&(o.size=this.sizes[r]),e.unshift([n,o])}return e}load(e){this.clear();for(const[r,n]of e){if(n.start){const i=Date.now()-n.start;n.start=ws.now()-i}this.set(r,n.value,n)}}dispose(e,r,n){}set(e,r,{ttl:n=this.ttl,start:i,noDisposeOnSet:s=this.noDisposeOnSet,size:o=0,sizeCalculation:a=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,status:u}={}){if(o=this.requireSize(e,r,o,a),this.maxEntrySize&&o>this.maxEntrySize)return u&&(u.set="miss",u.maxEntrySizeExceeded=!0),this.delete(e),this;let c=this.size===0?void 0:this.keyMap.get(e);if(c===void 0)c=this.newIndex(),this.keyList[c]=e,this.valList[c]=r,this.keyMap.set(e,c),this.next[this.tail]=c,this.prev[c]=this.tail,this.tail=c,this.size++,this.addItemSize(c,o,u),u&&(u.set="add"),l=!1;else{this.moveToTail(c);const f=this.valList[c];if(r!==f){if(this.isBackgroundFetch(f)?f.__abortController.abort(new Error("replaced")):s||(this.dispose(f,e,"set"),this.disposeAfter&&this.disposed.push([f,e,"set"])),this.removeItemSize(c),this.valList[c]=r,this.addItemSize(c,o,u),u){u.set="replace";const d=f&&this.isBackgroundFetch(f)?f.__staleWhileFetching:f;d!==void 0&&(u.oldValue=d)}}else u&&(u.set="update")}if(n!==0&&this.ttl===0&&!this.ttls&&this.initializeTTLTracking(),l||this.setItemTTL(c,n,i),this.statusTTL(u,c),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return this.size===0?this.tail:this.size===this.max&&this.max!==0?this.evict(!1):this.free.length!==0?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const r=this.head,n=this.keyList[r],i=this.valList[r];return this.isBackgroundFetch(i)?i.__abortController.abort(new Error("evicted")):(this.dispose(i,n,"evict"),this.disposeAfter&&this.disposed.push([i,n,"evict"])),this.removeItemSize(r),e&&(this.keyList[r]=null,this.valList[r]=null,this.free.push(r)),this.head=this.next[r],this.keyMap.delete(n),this.size--,r}has(e,{updateAgeOnHas:r=this.updateAgeOnHas,status:n}={}){const i=this.keyMap.get(e);if(i!==void 0)if(this.isStale(i))n&&(n.has="stale",this.statusTTL(n,i));else return r&&this.updateItemAge(i),n&&(n.has="hit"),this.statusTTL(n,i),!0;else n&&(n.has="miss");return!1}peek(e,{allowStale:r=this.allowStale}={}){const n=this.keyMap.get(e);if(n!==void 0&&(r||!this.isStale(n))){const i=this.valList[n];return this.isBackgroundFetch(i)?i.__staleWhileFetching:i}}backgroundFetch(e,r,n,i){const s=r===void 0?void 0:this.valList[r];if(this.isBackgroundFetch(s))return s;const o=new rl;n.signal&&n.signal.addEventListener("abort",()=>o.abort(n.signal.reason));const a={signal:o.signal,options:n,context:i},l=(h,g=!1)=>{const{aborted:y}=o.signal,b=n.ignoreFetchAbort&&h!==void 0;return n.status&&(y&&!g?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,b&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),y&&!b&&!g?c(o.signal.reason):(this.valList[r]===d&&(h===void 0?d.__staleWhileFetching?this.valList[r]=d.__staleWhileFetching:this.delete(e):(n.status&&(n.status.fetchUpdated=!0),this.set(e,h,a.options))),h)},u=h=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=h),c(h)),c=h=>{const{aborted:g}=o.signal,y=g&&n.allowStaleOnFetchAbort,b=y||n.allowStaleOnFetchRejection,E=b||n.noDeleteOnFetchRejection;if(this.valList[r]===d&&(!E||d.__staleWhileFetching===void 0?this.delete(e):y||(this.valList[r]=d.__staleWhileFetching)),b)return n.status&&d.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),d.__staleWhileFetching;if(d.__returned===d)throw h},f=(h,g)=>{this.fetchMethod(e,s,a).then(y=>h(y),g),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(h(),n.allowStaleOnFetchAbort&&(h=y=>l(y,!0)))})};n.status&&(n.status.fetchDispatched=!0);const d=new Promise(f).then(l,u);return d.__abortController=o,d.__staleWhileFetching=s,d.__returned=null,r===void 0?(this.set(e,d,{...a.options,status:void 0}),r=this.keyMap.get(e)):this.valList[r]=d,d}isBackgroundFetch(e){return e&&typeof e=="object"&&typeof e.then=="function"&&Object.prototype.hasOwnProperty.call(e,"__staleWhileFetching")&&Object.prototype.hasOwnProperty.call(e,"__returned")&&(e.__returned===e||e.__returned===null)}async fetch(e,{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:s=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:f=this.allowStaleOnFetchRejection,ignoreFetchAbort:d=this.ignoreFetchAbort,allowStaleOnFetchAbort:h=this.allowStaleOnFetchAbort,fetchContext:g=this.fetchContext,forceRefresh:y=!1,status:b,signal:E}={}){if(!this.fetchMethod)return b&&(b.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,status:b});const _={allowStale:r,updateAgeOnGet:n,noDeleteOnStaleGet:i,ttl:s,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:u,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:f,allowStaleOnFetchAbort:h,ignoreFetchAbort:d,status:b,signal:E};let v=this.keyMap.get(e);if(v===void 0){b&&(b.fetch="miss");const T=this.backgroundFetch(e,v,_,g);return T.__returned=T}else{const T=this.valList[v];if(this.isBackgroundFetch(T)){const L=r&&T.__staleWhileFetching!==void 0;return b&&(b.fetch="inflight",L&&(b.returnedStale=!0)),L?T.__staleWhileFetching:T.__returned=T}const M=this.isStale(v);if(!y&&!M)return b&&(b.fetch="hit"),this.moveToTail(v),n&&this.updateItemAge(v),this.statusTTL(b,v),T;const I=this.backgroundFetch(e,v,_,g),$=I.__staleWhileFetching!==void 0,F=$&&r;return b&&(b.fetch=$&&M?"stale":"refresh",F&&M&&(b.returnedStale=!0)),F?I.__staleWhileFetching:I.__returned=I}}get(e,{allowStale:r=this.allowStale,updateAgeOnGet:n=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:s}={}){const o=this.keyMap.get(e);if(o!==void 0){const a=this.valList[o],l=this.isBackgroundFetch(a);return this.statusTTL(s,o),this.isStale(o)?(s&&(s.get="stale"),l?(s&&(s.returnedStale=r&&a.__staleWhileFetching!==void 0),r?a.__staleWhileFetching:void 0):(i||this.delete(e),s&&(s.returnedStale=r),r?a:void 0)):(s&&(s.get="hit"),l?a.__staleWhileFetching:(this.moveToTail(o),n&&this.updateItemAge(o),a))}else s&&(s.get="miss")}connect(e,r){this.prev[r]=e,this.next[e]=r}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return bc("del","delete"),this.delete}delete(e){let r=!1;if(this.size!==0){const n=this.keyMap.get(e);if(n!==void 0)if(r=!0,this.size===1)this.clear();else{this.removeItemSize(n);const i=this.valList[n];this.isBackgroundFetch(i)?i.__abortController.abort(new Error("deleted")):(this.dispose(i,e,"delete"),this.disposeAfter&&this.disposed.push([i,e,"delete"])),this.keyMap.delete(e),this.keyList[n]=null,this.valList[n]=null,n===this.tail?this.tail=this.prev[n]:n===this.head?this.head=this.next[n]:(this.next[this.prev[n]]=this.next[n],this.prev[this.next[n]]=this.prev[n]),this.size--,this.free.push(n)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return r}clear(){for(const e of this.rindexes({allowStale:!0})){const r=this.valList[e];if(this.isBackgroundFetch(r))r.__abortController.abort(new Error("deleted"));else{const n=this.keyList[e];this.dispose(r,n,"delete"),this.disposeAfter&&this.disposed.push([r,n,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return bc("reset","clear"),this.clear}get length(){return YO("length","size"),this.size}static get AbortController(){return rl}static get AbortSignal(){return Qb}}var GO=Yn,wh={},XO=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),au=function(){function t(e){e===void 0&&(e=0),this.iteratorType=e}return t.prototype.equals=function(e){return this.o===e.o},t}(),lu=function(){function t(){this.M=0}return Object.defineProperty(t.prototype,"length",{get:function(){return this.M},enumerable:!1,configurable:!0}),t.prototype.size=function(){return this.M},t.prototype.empty=function(){return this.M===0},t}(),bh=function(t){XO(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(lu),QO=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),JO=function(t){QO(e,t);function e(r){r===void 0&&(r=[]);var n=t.call(this)||this;n.nt=[];var i=n;return r.forEach(function(s){i.push(s)}),n}return e.prototype.clear=function(){this.M=0,this.nt=[]},e.prototype.push=function(r){return this.nt.push(r),this.M+=1,this.M},e.prototype.pop=function(){if(this.M!==0)return this.M-=1,this.nt.pop()},e.prototype.top=function(){return this.nt[this.M-1]},e}(lu);const ZO=JO;var eP=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),tP=function(t){eP(e,t);function e(r){r===void 0&&(r=[]);var n=t.call(this)||this;n.A=0,n.tt=[];var i=n;return r.forEach(function(s){i.push(s)}),n}return e.prototype.clear=function(){this.tt=[],this.M=this.A=0},e.prototype.push=function(r){var n=this.tt.length;if(this.A/n>.5&&this.A+this.M>=n&&n>4096){for(var i=this.M,s=0;s0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},im=globalThis&&globalThis.D||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;nc?-1:u>1,l=s.M-1>>1;l>=0;--l)s.ri(l,a);return s}return e.prototype.ti=function(r){for(var n=this.ii[r];r>0;){var i=r-1>>1,s=this.ii[i];if(this.$(s,n)<=0)break;this.ii[r]=s,r=i}this.ii[r]=n},e.prototype.ri=function(r,n){for(var i=this.ii[r];r0&&(s=o,a=this.ii[o]),this.$(a,i)>=0)break;this.ii[r]=a,r=s}this.ii[r]=i},e.prototype.clear=function(){this.M=0,this.ii.length=0},e.prototype.push=function(r){this.ii.push(r),this.ti(this.M),this.M+=1},e.prototype.pop=function(){if(this.M!==0){var r=this.ii[0],n=this.ii.pop();return this.M-=1,this.M&&(this.ii[0]=n,this.ri(0,this.M>>1)),r}},e.prototype.top=function(){return this.ii[0]},e.prototype.find=function(r){return this.ii.indexOf(r)>=0},e.prototype.remove=function(r){var n=this.ii.indexOf(r);return n<0?!1:(n===0?this.pop():n===this.M-1?(this.ii.pop(),this.M-=1):(this.ii.splice(n,1,this.ii.pop()),this.M-=1,this.ti(n),this.ri(n,this.M>>1)),!0)},e.prototype.updateItem=function(r){var n=this.ii.indexOf(r);return n<0?!1:(this.ti(n),this.ri(n,this.M>>1),!0)},e.prototype.toArray=function(){return im([],nm(this.ii),!1)},e}(lu);const sP=iP;var oP=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),aP=function(t){oP(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(bh);const _h=aP;function De(){throw new RangeError("Iterator access denied!")}var lP=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),e_=function(t){lP(e,t);function e(r,n){var i=t.call(this,n)||this;return i.o=r,i.iteratorType===0?(i.pre=function(){return this.o===0&&De(),this.o-=1,this},i.next=function(){return this.o===this.container.size()&&De(),this.o+=1,this}):(i.pre=function(){return this.o===this.container.size()-1&&De(),this.o+=1,this},i.next=function(){return this.o===-1&&De(),this.o-=1,this}),i}return Object.defineProperty(e.prototype,"pointer",{get:function(){return this.container.getElementByPos(this.o)},set:function(r){this.container.setElementByPos(this.o,r)},enumerable:!1,configurable:!0}),e}(au),t_=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),uP=globalThis&&globalThis.i||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},om=globalThis&&globalThis.D||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},bs=function(t){t_(e,t);function e(r,n,i){var s=t.call(this,r,i)||this;return s.container=n,s}return e.prototype.copy=function(){return new e(this.o,this.container,this.iteratorType)},e}(e_),fP=function(t){t_(e,t);function e(r,n){r===void 0&&(r=[]),n===void 0&&(n=!0);var i=t.call(this)||this;if(Array.isArray(r))i.J=n?om([],sm(r),!1):r,i.M=r.length;else{i.J=[];var s=i;r.forEach(function(o){s.pushBack(o)})}return i}return e.prototype.clear=function(){this.M=0,this.J.length=0},e.prototype.begin=function(){return new bs(0,this)},e.prototype.end=function(){return new bs(this.M,this)},e.prototype.rBegin=function(){return new bs(this.M-1,this,1)},e.prototype.rEnd=function(){return new bs(-1,this,1)},e.prototype.front=function(){return this.J[0]},e.prototype.back=function(){return this.J[this.M-1]},e.prototype.getElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;return this.J[r]},e.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},e.prototype.eraseElementByValue=function(r){for(var n=0,i=0;ithis.M-1)throw new RangeError;this.J[r]=n},e.prototype.insert=function(r,n,i){var s;if(i===void 0&&(i=1),r<0||r>this.M)throw new RangeError;return(s=this.J).splice.apply(s,om([r,0],sm(new Array(i).fill(n)),!1)),this.M+=i,this.M},e.prototype.find=function(r){for(var n=0;n0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]this.M-1)throw new RangeError;for(var n=this.H;r--;)n=n.m;return n.p},e.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;for(var n=this.H;r--;)n=n.m;return this.G(n),this.M},e.prototype.eraseElementByValue=function(r){for(var n=this.H;n!==this.h;)n.p===r&&this.G(n),n=n.m;return this.M},e.prototype.eraseElementByIterator=function(r){var n=r.o;return n===this.h&&De(),r=r.next(),this.G(n),r},e.prototype.pushBack=function(r){return this.F(r,this.l),this.M},e.prototype.popBack=function(){if(this.M!==0){var r=this.l.p;return this.G(this.l),r}},e.prototype.pushFront=function(r){return this.F(r,this.h),this.M},e.prototype.popFront=function(){if(this.M!==0){var r=this.H.p;return this.G(this.H),r}},e.prototype.setElementByPos=function(r,n){if(r<0||r>this.M-1)throw new RangeError;for(var i=this.H;r--;)i=i.m;i.p=n},e.prototype.insert=function(r,n,i){if(i===void 0&&(i=1),r<0||r>this.M)throw new RangeError;if(i<=0)return this.M;if(r===0)for(;i--;)this.pushFront(n);else if(r===this.M)for(;i--;)this.pushBack(n);else{for(var s=this.H,o=1;o0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},wP=globalThis&&globalThis.D||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,s;n>1)-(a>>1),i.S=i.k=i.B-s%i.B>>1;var l=i;return r.forEach(function(u){l.pushBack(u)}),i}return e.prototype.O=function(){for(var r=[],n=Math.max(this.C>>1,1),i=0;i>1},e.prototype.begin=function(){return new vs(0,this)},e.prototype.end=function(){return new vs(this.M,this)},e.prototype.rBegin=function(){return new vs(this.M-1,this,1)},e.prototype.rEnd=function(){return new vs(-1,this,1)},e.prototype.front=function(){if(this.M!==0)return this.j[this.A][this.S]},e.prototype.back=function(){if(this.M!==0)return this.j[this.R][this.k]},e.prototype.pushBack=function(r){return this.M&&(this.k0?this.k-=1:this.R>0?(this.R-=1,this.k=this.B-1):(this.R=this.C-1,this.k=this.B-1)),this.M-=1,r}},e.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},e.prototype.popFront=function(){if(this.M!==0){var r=this.j[this.A][this.S];return this.M!==1&&(this.Sthis.M-1)throw new RangeError;var n=this.T(r),i=n.curNodeBucketIndex,s=n.curNodePointerIndex;return this.j[i][s]},e.prototype.setElementByPos=function(r,n){if(r<0||r>this.M-1)throw new RangeError;var i=this.T(r),s=i.curNodeBucketIndex,o=i.curNodePointerIndex;this.j[s][o]=n},e.prototype.insert=function(r,n,i){if(i===void 0&&(i=1),r<0||r>this.M)throw new RangeError;if(r===0)for(;i--;)this.pushFront(n);else if(r===this.M)for(;i--;)this.pushBack(n);else{for(var s=[],o=r;othis.M-1)throw new RangeError;if(r===0)this.popFront();else if(r===this.M-1)this.popBack();else{for(var n=[],i=r+1;ir;)this.popBack();return this.M},e.prototype.sort=function(r){for(var n=[],i=0;i0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s},lm=globalThis&&globalThis.V||function(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},xP=function(t){SP(e,t);function e(r,n){r===void 0&&(r=function(s,o){return so?1:0}),n===void 0&&(n=!1);var i=t.call(this)||this;return i.W=void 0,i.$=r,n?(i.re=EP,i.v=function(s,o,a){var l=this.se(s,o,a);if(l){for(var u=l.rr;u!==this.h;)u.tr+=1,u=u.rr;var c=this.fe(l);if(c){var f=c,d=f.parentNode,h=f.grandParent,g=f.curNode;d.ie(),h.ie(),g.ie()}}return this.M},i.G=function(s){for(var o=this.he(s);o!==this.h;)o.tr-=1,o=o.rr}):(i.re=i_,i.v=function(s,o,a){var l=this.se(s,o,a);return l&&this.fe(l),this.M},i.G=i.he),i.h=new i.re,i}return e.prototype.U=function(r,n){for(var i=this.h;r;){var s=this.$(r.u,n);if(s<0)r=r.N;else if(s>0)i=r,r=r.K;else return r}return i},e.prototype.X=function(r,n){for(var i=this.h;r;){var s=this.$(r.u,n);s<=0?r=r.N:(i=r,r=r.K)}return i},e.prototype.Y=function(r,n){for(var i=this.h;r;){var s=this.$(r.u,n);if(s<0)i=r,r=r.N;else if(s>0)r=r.K;else return r}return i},e.prototype.Z=function(r,n){for(var i=this.h;r;){var s=this.$(r.u,n);s<0?(i=r,r=r.N):r=r.K}return i},e.prototype.ue=function(r){for(;;){var n=r.rr;if(n===this.h)return;if(r.ee===1){r.ee=0;return}if(r===n.K){var i=n.N;if(i.ee===1)i.ee=0,n.ee=1,n===this.W?this.W=n.ne():n.ne();else if(i.N&&i.N.ee===1){i.ee=n.ee,n.ee=0,i.N.ee=0,n===this.W?this.W=n.ne():n.ne();return}else i.K&&i.K.ee===1?(i.ee=1,i.K.ee=0,i.te()):(i.ee=1,r=n)}else{var i=n.K;if(i.ee===1)i.ee=0,n.ee=1,n===this.W?this.W=n.te():n.te();else if(i.K&&i.K.ee===1){i.ee=n.ee,n.ee=0,i.K.ee=0,n===this.W?this.W=n.te():n.te();return}else i.N&&i.N.ee===1?(i.ee=1,i.N.ee=0,i.ne()):(i.ee=1,r=n)}}},e.prototype.he=function(r){var n,i;if(this.M===1)return this.clear(),this.h;for(var s=r;s.K||s.N;){if(s.N)for(s=s.N;s.K;)s=s.K;else s=s.K;n=am([s.u,r.u],2),r.u=n[0],s.u=n[1],i=am([s.p,r.p],2),r.p=i[0],s.p=i[1],r=s}this.h.K===s?this.h.K=s.rr:this.h.N===s&&(this.h.N=s.rr),this.ue(s);var o=s.rr;return s===o.K?o.K=void 0:o.N=void 0,this.M-=1,this.W.ee=0,o},e.prototype.ae=function(r,n){if(r===void 0)return!1;var i=this.ae(r.K,n);return i||n(r)?!0:this.ae(r.N,n)},e.prototype.fe=function(r){for(;;){var n=r.rr;if(n.ee===0)return;var i=n.rr;if(n===i.K){var s=i.N;if(s&&s.ee===1){if(s.ee=n.ee=0,i===this.W)return;i.ee=1,r=i;continue}else if(r===n.N){if(r.ee=0,r.K&&(r.K.rr=n),r.N&&(r.N.rr=i),n.N=r.K,i.K=r.N,r.K=n,r.N=i,i===this.W)this.W=r,this.h.rr=r;else{var o=i.rr;o.K===i?o.K=r:o.N=r}return r.rr=i.rr,n.rr=r,i.rr=r,i.ee=1,{parentNode:n,grandParent:i,curNode:r}}else n.ee=0,i===this.W?this.W=i.te():i.te(),i.ee=1}else{var s=i.K;if(s&&s.ee===1){if(s.ee=n.ee=0,i===this.W)return;i.ee=1,r=i;continue}else if(r===n.K){if(r.ee=0,r.K&&(r.K.rr=i),r.N&&(r.N.rr=n),i.N=r.K,n.K=r.N,r.K=i,r.N=n,i===this.W)this.W=r,this.h.rr=r;else{var o=i.rr;o.K===i?o.K=r:o.N=r}return r.rr=i.rr,n.rr=r,i.rr=r,i.ee=1,{parentNode:n,grandParent:i,curNode:r}}else n.ee=0,i===this.W?this.W=i.ne():i.ne(),i.ee=1}return}},e.prototype.se=function(r,n,i){if(this.W===void 0){this.M+=1,this.W=new this.re(r,n),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 s,o=this.h.K,a=this.$(o.u,r);if(a===0){o.p=n;return}else if(a>0)o.K=new this.re(r,n),o.K.rr=o,s=o.K,this.h.K=s;else{var l=this.h.N,u=this.$(l.u,r);if(u===0){l.p=n;return}else if(u<0)l.N=new this.re(r,n),l.N.rr=l,s=l.N,this.h.N=s;else{if(i!==void 0){var c=i.o;if(c!==this.h){var f=this.$(c.u,r);if(f===0){c.p=n;return}else if(f>0){var d=c.L(),h=this.$(d.u,r);if(h===0){d.p=n;return}else h<0&&(s=new this.re(r,n),d.N===void 0?(d.N=s,s.rr=d):(c.K=s,s.rr=c))}}}if(s===void 0)for(s=this.W;;){var g=this.$(s.u,r);if(g>0){if(s.K===void 0){s.K=new this.re(r,n),s.K.rr=s,s=s.K;break}s=s.K}else if(g<0){if(s.N===void 0){s.N=new this.re(r,n),s.N.rr=s,s=s.N;break}s=s.N}else{s.p=n;return}}}}return this.M+=1,s},e.prototype.g=function(r,n){for(;r;){var i=this.$(r.u,n);if(i<0)r=r.N;else if(i>0)r=r.K;else return r}return r||this.h},e.prototype.clear=function(){this.M=0,this.W=void 0,this.h.rr=void 0,this.h.K=this.h.N=void 0},e.prototype.updateKeyByIterator=function(r,n){var i=r.o;if(i===this.h&&De(),this.M===1)return i.u=n,!0;if(i===this.h.K)return this.$(i.m().u,n)>0?(i.u=n,!0):!1;if(i===this.h.N)return this.$(i.L().u,n)<0?(i.u=n,!0):!1;var s=i.L().u;if(this.$(s,n)>=0)return!1;var o=i.m().u;return this.$(o,n)<=0?!1:(i.u=n,!0)},e.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;var n=0,i=this;return this.ae(this.W,function(s){return r===n?(i.G(s),!0):(n+=1,!1)}),this.M},e.prototype.eraseElementByKey=function(r){if(this.M===0)return!1;var n=this.g(this.W,r);return n===this.h?!1:(this.G(n),!0)},e.prototype.eraseElementByIterator=function(r){var n=r.o;n===this.h&&De();var i=n.N===void 0,s=r.iteratorType===0;return s?i&&r.next():(!i||n.K===void 0)&&r.next(),this.G(n),r},e.prototype.forEach=function(r){var n,i,s=0;try{for(var o=lm(this),a=o.next();!a.done;a=o.next()){var l=a.value;r(l,s++,this)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},e.prototype.getElementByPos=function(r){var n,i;if(r<0||r>this.M-1)throw new RangeError;var s,o=0;try{for(var a=lm(this),l=a.next();!l.done;l=a.next()){var u=l.value;if(o===r){s=u;break}o+=1}}catch(c){n={error:c}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return s},e.prototype.getHeight=function(){if(this.M===0)return 0;var r=function(n){return n?Math.max(r(n.K),r(n.N))+1:0};return r(this.W)},e}(bh);const s_=xP;var TP=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),AP=function(t){TP(e,t);function e(r,n,i){var s=t.call(this,i)||this;return s.o=r,s.h=n,s.iteratorType===0?(s.pre=function(){return this.o===this.h.K&&De(),this.o=this.o.L(),this},s.next=function(){return this.o===this.h&&De(),this.o=this.o.m(),this}):(s.pre=function(){return this.o===this.h.N&&De(),this.o=this.o.m(),this},s.next=function(){return this.o===this.h&&De(),this.o=this.o.L(),this}),s}return Object.defineProperty(e.prototype,"index",{get:function(){var r=this.o,n=this.h.rr;if(r===this.h)return n?n.tr-1:0;var i=0;for(r.K&&(i+=r.K.tr);r!==n;){var s=r.rr;r===s.N&&(i+=1,s.K&&(i+=s.K.tr)),r=s}return i},enumerable:!1,configurable:!0}),e}(au);const o_=AP;var a_=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),MP=globalThis&&globalThis.i||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},vr=function(t){a_(e,t);function e(r,n,i,s){var o=t.call(this,r,n,s)||this;return o.container=i,o}return Object.defineProperty(e.prototype,"pointer",{get:function(){return this.o===this.h&&De(),this.o.u},enumerable:!1,configurable:!0}),e.prototype.copy=function(){return new e(this.o,this.h,this.container,this.iteratorType)},e}(o_),CP=function(t){a_(e,t);function e(r,n,i){r===void 0&&(r=[]);var s=t.call(this,n,i)||this,o=s;return r.forEach(function(a){o.insert(a)}),s}return e.prototype.P=function(r){return MP(this,function(n){switch(n.label){case 0:return r===void 0?[2]:[5,um(this.P(r.K))];case 1:return n.sent(),[4,r.u];case 2:return n.sent(),[5,um(this.P(r.N))];case 3:return n.sent(),[2]}})},e.prototype.begin=function(){return new vr(this.h.K||this.h,this.h,this)},e.prototype.end=function(){return new vr(this.h,this.h,this)},e.prototype.rBegin=function(){return new vr(this.h.N||this.h,this.h,this,1)},e.prototype.rEnd=function(){return new vr(this.h,this.h,this,1)},e.prototype.front=function(){return this.h.K?this.h.K.u:void 0},e.prototype.back=function(){return this.h.N?this.h.N.u:void 0},e.prototype.insert=function(r,n){return this.v(r,void 0,n)},e.prototype.find=function(r){var n=this.g(this.W,r);return new vr(n,this.h,this)},e.prototype.lowerBound=function(r){var n=this.U(this.W,r);return new vr(n,this.h,this)},e.prototype.upperBound=function(r){var n=this.X(this.W,r);return new vr(n,this.h,this)},e.prototype.reverseLowerBound=function(r){var n=this.Y(this.W,r);return new vr(n,this.h,this)},e.prototype.reverseUpperBound=function(r){var n=this.Z(this.W,r);return new vr(n,this.h,this)},e.prototype.union=function(r){var n=this;return r.forEach(function(i){n.insert(i)}),this.M},e.prototype[Symbol.iterator]=function(){return this.P(this.W)},e}(s_);const IP=CP;var l_=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),OP=globalThis&&globalThis.i||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Er=function(t){l_(e,t);function e(r,n,i,s){var o=t.call(this,r,n,s)||this;return o.container=i,o}return Object.defineProperty(e.prototype,"pointer",{get:function(){this.o===this.h&&De();var r=this;return new Proxy([],{get:function(n,i){if(i==="0")return r.o.u;if(i==="1")return r.o.p},set:function(n,i,s){if(i!=="1")throw new TypeError("props must be 1");return r.o.p=s,!0}})},enumerable:!1,configurable:!0}),e.prototype.copy=function(){return new e(this.o,this.h,this.container,this.iteratorType)},e}(o_),PP=function(t){l_(e,t);function e(r,n,i){r===void 0&&(r=[]);var s=t.call(this,n,i)||this,o=s;return r.forEach(function(a){o.setElement(a[0],a[1])}),s}return e.prototype.P=function(r){return OP(this,function(n){switch(n.label){case 0:return r===void 0?[2]:[5,cm(this.P(r.K))];case 1:return n.sent(),[4,[r.u,r.p]];case 2:return n.sent(),[5,cm(this.P(r.N))];case 3:return n.sent(),[2]}})},e.prototype.begin=function(){return new Er(this.h.K||this.h,this.h,this)},e.prototype.end=function(){return new Er(this.h,this.h,this)},e.prototype.rBegin=function(){return new Er(this.h.N||this.h,this.h,this,1)},e.prototype.rEnd=function(){return new Er(this.h,this.h,this,1)},e.prototype.front=function(){if(this.M!==0){var r=this.h.K;return[r.u,r.p]}},e.prototype.back=function(){if(this.M!==0){var r=this.h.N;return[r.u,r.p]}},e.prototype.lowerBound=function(r){var n=this.U(this.W,r);return new Er(n,this.h,this)},e.prototype.upperBound=function(r){var n=this.X(this.W,r);return new Er(n,this.h,this)},e.prototype.reverseLowerBound=function(r){var n=this.Y(this.W,r);return new Er(n,this.h,this)},e.prototype.reverseUpperBound=function(r){var n=this.Z(this.W,r);return new Er(n,this.h,this)},e.prototype.setElement=function(r,n,i){return this.v(r,n,i)},e.prototype.find=function(r){var n=this.g(this.W,r);return new Er(n,this.h,this)},e.prototype.getElementByKey=function(r){var n=this.g(this.W,r);return n.p},e.prototype.union=function(r){var n=this;return r.forEach(function(i){n.setElement(i[0],i[1])}),this.M},e.prototype[Symbol.iterator]=function(){return this.P(this.W)},e}(s_);const RP=PP;function Ta(t){var e=typeof t;return e==="object"&&t!==null||e==="function"}var u_=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),c_=function(t){u_(e,t);function e(r,n,i){var s=t.call(this,i)||this;return s.o=r,s.h=n,s.iteratorType===0?(s.pre=function(){return this.o.L===this.h&&De(),this.o=this.o.L,this},s.next=function(){return this.o===this.h&&De(),this.o=this.o.m,this}):(s.pre=function(){return this.o.m===this.h&&De(),this.o=this.o.m,this},s.next=function(){return this.o===this.h&&De(),this.o=this.o.L,this}),s}return e}(au),f_=function(t){u_(e,t);function e(){var r=t.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 e.prototype.G=function(r){var n=r.L,i=r.m;n.m=i,i.L=n,r===this.H&&(this.H=i),r===this.l&&(this.l=n),this.M-=1},e.prototype.v=function(r,n,i){i===void 0&&(i=Ta(r));var s;if(i){var o=r[this.HASH_TAG];if(o!==void 0)return this._[o].p=n,this.M;Object.defineProperty(r,this.HASH_TAG,{value:this._.length,configurable:!0}),s={u:r,p:n,L:this.l,m:this.h},this._.push(s)}else{var a=this.I[r];if(a)return a.p=n,this.M;s={u:r,p:n,L:this.l,m:this.h},this.I[r]=s}return this.M===0?(this.H=s,this.h.m=s):this.l.m=s,this.l=s,this.h.L=s,++this.M},e.prototype.g=function(r,n){if(n===void 0&&(n=Ta(r)),n){var i=r[this.HASH_TAG];return i===void 0?this.h:this._[i]}else return this.I[r]||this.h},e.prototype.clear=function(){var r=this.HASH_TAG;this._.forEach(function(n){delete n.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},e.prototype.eraseElementByKey=function(r,n){var i;if(n===void 0&&(n=Ta(r)),n){var s=r[this.HASH_TAG];if(s===void 0)return!1;delete r[this.HASH_TAG],i=this._[s],delete this._[s]}else{if(i=this.I[r],i===void 0)return!1;delete this.I[r]}return this.G(i),!0},e.prototype.eraseElementByIterator=function(r){var n=r.o;return n===this.h&&De(),this.G(n),r.next()},e.prototype.eraseElementByPos=function(r){if(r<0||r>this.M-1)throw new RangeError;for(var n=this.H;r--;)n=n.m;return this.G(n),this.M},e}(bh),d_=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),LP=globalThis&&globalThis.i||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]this.M-1)throw new RangeError;for(var n=this.H;r--;)n=n.m;return n.u},e.prototype.find=function(r,n){var i=this.g(r,n);return new Es(i,this.h,this)},e.prototype.forEach=function(r){for(var n=0,i=this.H;i!==this.h;)r(i.u,n++,this),i=i.m},e.prototype[Symbol.iterator]=function(){return(function(){var r;return LP(this,function(n){switch(n.label){case 0:r=this.H,n.label=1;case 1:return r===this.h?[3,3]:[4,r.u];case 2:return n.sent(),r=r.m,[3,1];case 3:return[2]}})}).bind(this)()},e}(f_);const $P=NP;var h_=globalThis&&globalThis.t||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),kP=globalThis&&globalThis.i||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(u){return function(c){return l([u,c])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=u[0]&2?i.return:u[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,u[1])).done)return s;switch(i=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,i=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]this.M-1)throw new RangeError;for(var n=this.H;r--;)n=n.m;return[n.u,n.p]},e.prototype.find=function(r,n){var i=this.g(r,n);return new Ss(i,this.h,this)},e.prototype.forEach=function(r){for(var n=0,i=this.H;i!==this.h;)r([i.u,i.p],n++,this),i=i.m},e.prototype[Symbol.iterator]=function(){return(function(){var r;return kP(this,function(n){switch(n.label){case 0:r=this.H,n.label=1;case 1:return r===this.h?[3,3]:[4,[r.u,r.p]];case 2:return n.sent(),r=r.m,[3,1];case 3:return[2]}})}).bind(this)()},e}(f_);const BP=DP,FP=Object.freeze(Object.defineProperty({__proto__:null,Deque:_P,HashMap:BP,HashSet:$P,LinkList:gP,OrderedMap:RP,OrderedSet:IP,PriorityQueue:sP,Queue:rP,Stack:ZO,Vector:dP},Symbol.toStringTag,{value:"Module"})),UP=Nl(FP),jP=UP.OrderedSet,or=Vr("number-allocator:trace"),zP=Vr("number-allocator:error");function lt(t,e){this.low=t,this.high=e}lt.prototype.equals=function(t){return this.low===t.low&&this.high===t.high};lt.prototype.compare=function(t){return this.lowr.compare(n)),or("Create"),this.clear()}mr.prototype.firstVacant=function(){return this.ss.size()===0?null:this.ss.front().low};mr.prototype.alloc=function(){if(this.ss.size()===0)return or("alloc():empty"),null;const t=this.ss.begin(),e=t.pointer.low,r=t.pointer.high,n=e;return n+1<=r?this.ss.updateKeyByIterator(t,new lt(e+1,r)):this.ss.eraseElementByPos(0),or("alloc():"+n),n};mr.prototype.use=function(t){const e=new lt(t,t),r=this.ss.lowerBound(e);if(!r.equals(this.ss.end())){const n=r.pointer.low,i=r.pointer.high;return r.pointer.equals(e)?(this.ss.eraseElementByIterator(r),or("use():"+t),!0):n>t?!1:n===t?(this.ss.updateKeyByIterator(r,new lt(n+1,i)),or("use():"+t),!0):i===t?(this.ss.updateKeyByIterator(r,new lt(n,i-1)),or("use():"+t),!0):(this.ss.updateKeyByIterator(r,new lt(t+1,i)),this.ss.insert(new lt(n,t-1)),or("use():"+t),!0)}return or("use():failed"),!1};mr.prototype.free=function(t){if(tthis.max){zP("free():"+t+" is out of range");return}const e=new lt(t,t),r=this.ss.upperBound(e);if(r.equals(this.ss.end())){if(r.equals(this.ss.begin())){this.ss.insert(e);return}r.pre();const n=r.pointer.high;r.pointer.high+1===t?this.ss.updateKeyByIterator(r,new lt(n,t)):this.ss.insert(e)}else if(r.equals(this.ss.begin()))if(t+1===r.pointer.low){const n=r.pointer.high;this.ss.updateKeyByIterator(r,new lt(t,n))}else this.ss.insert(e);else{const n=r.pointer.low,i=r.pointer.high;r.pre();const s=r.pointer.low;r.pointer.high+1===t?t+1===n?(this.ss.eraseElementByIterator(r),this.ss.updateKeyByIterator(r,new lt(s,i))):this.ss.updateKeyByIterator(r,new lt(s,t)):t+1===n?(this.ss.eraseElementByIterator(r.next()),this.ss.insert(new lt(t,i))):this.ss.insert(e)}or("free():"+t)};mr.prototype.clear=function(){or("clear()"),this.ss.clear(),this.ss.insert(new lt(this.min,this.max))};mr.prototype.intervalCount=function(){return this.ss.size()};mr.prototype.dump=function(){console.log("length:"+this.ss.size());for(const t of this.ss)console.log(t)};var HP=mr;const WP=HP;wh.NumberAllocator=WP;var VP=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gh,"__esModule",{value:!0});const qP=VP(GO),YP=wh;class KP{constructor(e){e>0&&(this.aliasToTopic=new qP.default({max:e}),this.topicToAlias={},this.numberAllocator=new YP.NumberAllocator(1,e),this.max=e,this.length=0)}put(e,r){if(r===0||r>this.max)return!1;const n=this.aliasToTopic.get(r);return n&&delete this.topicToAlias[n],this.aliasToTopic.set(r,e),this.topicToAlias[e]=r,this.numberAllocator.use(r),this.length=this.aliasToTopic.size,!0}getTopicByAlias(e){return this.aliasToTopic.get(e)}getAliasByTopic(e){const r=this.topicToAlias[e];return typeof r<"u"&&this.aliasToTopic.get(r),r}clear(){this.aliasToTopic.clear(),this.topicToAlias={},this.numberAllocator.clear(),this.length=0}getLruAlias(){const e=this.numberAllocator.firstVacant();return e||[...this.aliasToTopic.keys()][this.aliasToTopic.size-1]}}gh.default=KP;var GP=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ph,"__esModule",{value:!0});const XP=Ao,QP=GP(gh),JP=Dr,ZP=(t,e)=>{t.log("_handleConnack");const{options:r}=t,i=r.protocolVersion===5?e.reasonCode:e.returnCode;if(clearTimeout(t.connackTimer),delete t.topicAliasSend,e.properties){if(e.properties.topicAliasMaximum){if(e.properties.topicAliasMaximum>65535){t.emit("error",new Error("topicAliasMaximum from broker is out of range"));return}e.properties.topicAliasMaximum>0&&(t.topicAliasSend=new QP.default(e.properties.topicAliasMaximum))}e.properties.serverKeepAlive&&r.keepalive&&(r.keepalive=e.properties.serverKeepAlive,t._shiftPingInterval()),e.properties.maximumPacketSize&&(r.properties||(r.properties={}),r.properties.maximumPacketSize=e.properties.maximumPacketSize)}if(i===0)t.reconnecting=!1,t._onConnect(e);else if(i>0){const s=new JP.ErrorWithReasonCode(`Connection refused: ${XP.ReasonCodes[i]}`,i);t.emit("error",s)}};ph.default=ZP;var vh={};Object.defineProperty(vh,"__esModule",{value:!0});const eR=(t,e,r)=>{t.log("handling pubrel packet");const n=typeof r<"u"?r:t.noop,{messageId:i}=e,s={cmd:"pubcomp",messageId:i};t.incomingStore.get(e,(o,a)=>{o?t._sendPacket(s,n):(t.emit("message",a.topic,a.payload,a),t.handleMessage(a,l=>{if(l)return n(l);t.incomingStore.del(a,t.noop),t._sendPacket(s,n)}))})};vh.default=eR;var Mo=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ch,"__esModule",{value:!0});const tR=Mo(fh),rR=Mo(dh),nR=Mo(ph),iR=Mo(Ao),sR=Mo(vh),oR=(t,e,r)=>{const{options:n}=t;if(n.protocolVersion===5&&n.properties&&n.properties.maximumPacketSize&&n.properties.maximumPacketSize{setTimeout(t,0)},vc=xe.setImmediate||((...t)=>{const e=t.shift();Df(()=>{e(...t)})}),hm={keepalive:60,reschedulePings:!0,protocolId:"MQTT",protocolVersion:4,reconnectPeriod:1e3,connectTimeout:30*1e3,clean:!0,resubscribe:!0,writeCache:!0},_R=["ECONNREFUSED","EADDRINUSE","ECONNRESET","ENOTFOUND","ETIMEDOUT"];class Eh extends bR.TypedEventEmitter{static defaultId(){return`mqttjs_${Math.random().toString(16).substr(2,8)}`}constructor(e,r){super(),this.options=r||{};for(const n in hm)typeof this.options[n]>"u"?this.options[n]=hm[n]:this.options[n]=r[n];this.log=this.options.log||(0,yR.default)("mqttjs:client"),this.noop=this._noop.bind(this),this.log("MqttClient :: options.protocol",r.protocol),this.log("MqttClient :: options.protocolVersion",r.protocolVersion),this.log("MqttClient :: options.username",r.username),this.log("MqttClient :: options.keepalive",r.keepalive),this.log("MqttClient :: options.reconnectPeriod",r.reconnectPeriod),this.log("MqttClient :: options.rejectUnauthorized",r.rejectUnauthorized),this.log("MqttClient :: options.properties.topicAliasMaximum",r.properties?r.properties.topicAliasMaximum:void 0),this.options.clientId=typeof r.clientId=="string"?r.clientId:Eh.defaultId(),this.log("MqttClient :: clientId",this.options.clientId),this.options.customHandleAcks=r.protocolVersion===5&&r.customHandleAcks?r.customHandleAcks:(...n)=>{n[3](null,0)},this.options.writeCache||(_c.default.writeToStream.cacheNumbers=!1),this.streamBuilder=e,this.messageIdProvider=typeof this.options.messageIdProvider>"u"?new pR.default:this.options.messageIdProvider,this.outgoingStore=r.outgoingStore||new Qo.default,this.incomingStore=r.incomingStore||new Qo.default,this.queueQoSZero=r.queueQoSZero===void 0?!0:r.queueQoSZero,this._resubscribeTopics={},this.messageIdToTopic={},this.pingTimer=null,this.connected=!1,this.disconnecting=!1,this.reconnecting=!1,this.queue=[],this.connackTimer=null,this.reconnectTimer=null,this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={},this._storeProcessingQueue=[],this.outgoing={},this._firstConnection=!0,r.properties&&r.properties.topicAliasMaximum>0&&(r.properties.topicAliasMaximum>65535?this.log("MqttClient :: options.properties.topicAliasMaximum is out of range"):this.topicAliasRecv=new hR.default(r.properties.topicAliasMaximum)),this.on("connect",()=>{const{queue:n}=this,i=()=>{const s=n.shift();this.log("deliver :: entry %o",s);let o=null;if(!s){this._resubscribe();return}o=s.packet,this.log("deliver :: call _sendPacket for %o",o);let a=!0;o.messageId&&o.messageId!==0&&(this.messageIdProvider.register(o.messageId)||(a=!1)),a?this._sendPacket(o,l=>{s.cb&&s.cb(l),i()}):(this.log("messageId: %d has already used. The message is skipped and removed.",o.messageId),i())};this.log("connect :: sending queued packets"),i()}),this.on("close",()=>{this.log("close :: connected set to `false`"),this.connected=!1,this.log("close :: clearing connackTimer"),clearTimeout(this.connackTimer),this.log("close :: clearing ping timer"),this.pingTimer!==null&&(this.pingTimer.clear(),this.pingTimer=null),this.topicAliasRecv&&this.topicAliasRecv.clear(),this.log("close :: calling _setupReconnect"),this._setupReconnect()}),this.options.manualConnect||(this.log("MqttClient :: setting up stream"),this.connect())}handleAuth(e,r){r()}handleMessage(e,r){r()}_nextId(){return this.messageIdProvider.allocate()}getLastMessageId(){return this.messageIdProvider.getLastAllocated()}connect(){var e;const r=new gR.Writable,n=_c.default.parser(this.options);let i=null;const s=[];this.log("connect :: calling method to clear reconnect"),this._clearReconnect(),this.log("connect :: using streamBuilder provided to client to create stream"),this.stream=this.streamBuilder(this),n.on("packet",c=>{this.log("parser :: on packet push to packets array."),s.push(c)});const o=()=>{this.log("work :: getting next packet in queue");const c=s.shift();if(c)this.log("work :: packet pulled from queue"),(0,wR.default)(this,c,a);else{this.log("work :: no packets in queue");const f=i;i=null,this.log("work :: done flag is %s",!!f),f&&f()}},a=()=>{if(s.length)Df(o);else{const c=i;i=null,c()}};r._write=(c,f,d)=>{i=d,this.log("writable stream :: parsing buffer"),n.parse(c),o()};const l=c=>{this.log("streamErrorHandler :: error",c.message),_R.includes(c.code)?(this.log("streamErrorHandler :: emitting error"),this.emit("error",c)):this.noop(c)};this.log("connect :: pipe stream to writable stream"),this.stream.pipe(r),this.stream.on("error",l),this.stream.on("close",()=>{this.log("(%s)stream :: on close",this.options.clientId),this._flushVolatile(),this.log("stream: emit close to MqttClient"),this.emit("close")}),this.log("connect: sending packet `connect`");const u={cmd:"connect",protocolId:this.options.protocolId,protocolVersion:this.options.protocolVersion,clean:this.options.clean,clientId:this.options.clientId,keepalive:this.options.keepalive,username:this.options.username,password:this.options.password,properties:this.options.properties};if(this.options.will&&(u.will=Object.assign(Object.assign({},this.options.will),{payload:(e=this.options.will)===null||e===void 0?void 0:e.payload})),this.topicAliasRecv&&(u.properties||(u.properties={}),this.topicAliasRecv&&(u.properties.topicAliasMaximum=this.topicAliasRecv.max)),this._writePacket(u),n.on("error",this.emit.bind(this,"error")),this.options.properties){if(!this.options.properties.authenticationMethod&&this.options.properties.authenticationData)return this.end(()=>this.emit("error",new Error("Packet has no Authentication Method"))),this;if(this.options.properties.authenticationMethod&&this.options.authPacket&&typeof this.options.authPacket=="object"){const c=Object.assign({cmd:"auth",reasonCode:0},this.options.authPacket);this._writePacket(c)}}return this.stream.setMaxListeners(1e3),clearTimeout(this.connackTimer),this.connackTimer=setTimeout(()=>{this.log("!!connectTimeout hit!! Calling _cleanUp with force `true`"),this._cleanUp(!0)},this.options.connectTimeout),this}publish(e,r,n,i){this.log("publish :: message `%s` to topic `%s`",r,e);const{options:s}=this;typeof n=="function"&&(i=n,n=null),n=n||{},n=Object.assign(Object.assign({},{qos:0,retain:!1,dup:!1}),n);const{qos:a,retain:l,dup:u,properties:c,cbStorePut:f}=n;if(this._checkDisconnecting(i))return this;const d=()=>{let h=0;if((a===1||a===2)&&(h=this._nextId(),h===null))return this.log("No messageId left"),!1;const g={cmd:"publish",topic:e,payload:r,qos:a,retain:l,messageId:h,dup:u};switch(s.protocolVersion===5&&(g.properties=c),this.log("publish :: qos",a),a){case 1:case 2:this.outgoing[g.messageId]={volatile:!1,cb:i||this.noop},this.log("MqttClient:publish: packet cmd: %s",g.cmd),this._sendPacket(g,void 0,f);break;default:this.log("MqttClient:publish: packet cmd: %s",g.cmd),this._sendPacket(g,i,f);break}return!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!d())&&this._storeProcessingQueue.push({invoke:d,cbStorePut:n.cbStorePut,callback:i}),this}publishAsync(e,r,n){return new Promise((i,s)=>{this.publish(e,r,n,(o,a)=>{o?s(o):i(a)})})}subscribe(e,r,n){const i=this.options.protocolVersion;typeof r=="function"&&(n=r),n=n||this.noop;let s=!1,o=[];typeof e=="string"?(e=[e],o=e):Array.isArray(e)?o=e:typeof e=="object"&&(s=e.resubscribe,delete e.resubscribe,o=Object.keys(e));const a=dm.validateTopics(o);if(a!==null)return vc(n,new Error(`Invalid topic ${a}`)),this;if(this._checkDisconnecting(n))return this.log("subscribe: discconecting true"),this;const l={qos:0};i===5&&(l.nl=!1,l.rap=!1,l.rh=0),r=Object.assign(Object.assign({},l),r);const u=r.properties,c=[],f=(h,g)=>{if(g=g||r,!Object.prototype.hasOwnProperty.call(this._resubscribeTopics,h)||this._resubscribeTopics[h].qos{this.log("subscribe: array topic %s",h),f(h)}):Object.keys(e).forEach(h=>{this.log("subscribe: object topic %s, %o",h,e[h]),f(h,e[h])}),!c.length)return n(null,[]),this;const d=()=>{const h=this._nextId();if(h===null)return this.log("No messageId left"),!1;const g={cmd:"subscribe",subscriptions:c,messageId:h};if(u&&(g.properties=u),this.options.resubscribe){this.log("subscribe :: resubscribe true");const y=[];c.forEach(b=>{if(this.options.reconnectPeriod>0){const E={qos:b.qos};i===5&&(E.nl=b.nl||!1,E.rap=b.rap||!1,E.rh=b.rh||0,E.properties=b.properties),this._resubscribeTopics[b.topic]=E,y.push(b.topic)}}),this.messageIdToTopic[g.messageId]=y}return this.outgoing[g.messageId]={volatile:!0,cb(y,b){if(!y){const{granted:E}=b;for(let _=0;_0||!d())&&this._storeProcessingQueue.push({invoke:d,callback:n}),this}subscribeAsync(e,r){return new Promise((n,i)=>{this.subscribe(e,r,(s,o)=>{s?i(s):n(o)})})}unsubscribe(e,r,n){typeof e=="string"&&(e=[e]),typeof r=="function"&&(n=r),n=n||this.noop;const i=dm.validateTopics(e);if(i!==null)return vc(n,new Error(`Invalid topic ${i}`)),this;if(this._checkDisconnecting(n))return this;const s=()=>{const o=this._nextId();if(o===null)return this.log("No messageId left"),!1;const a={cmd:"unsubscribe",messageId:o,unsubscriptions:[]};return typeof e=="string"?a.unsubscriptions=[e]:Array.isArray(e)&&(a.unsubscriptions=e),this.options.resubscribe&&a.unsubscriptions.forEach(l=>{delete this._resubscribeTopics[l]}),typeof r=="object"&&r.properties&&(a.properties=r.properties),this.outgoing[a.messageId]={volatile:!0,cb:n},this.log("unsubscribe: call _sendPacket"),this._sendPacket(a),!0};return(this._storeProcessing||this._storeProcessingQueue.length>0||!s())&&this._storeProcessingQueue.push({invoke:s,callback:n}),this}unsubscribeAsync(e,r){return new Promise((n,i)=>{this.unsubscribe(e,r,(s,o)=>{s?i(s):n(o)})})}end(e,r,n){this.log("end :: (%s)",this.options.clientId),(e==null||typeof e!="boolean")&&(n=n||r,r=e,e=!1),typeof r!="object"&&(n=n||r,r=null),this.log("end :: cb? %s",!!n),(!n||typeof n!="function")&&(n=this.noop);const i=()=>{this.log("end :: closeStores: closing incoming and outgoing stores"),this.disconnected=!0,this.incomingStore.close(o=>{this.outgoingStore.close(a=>{if(this.log("end :: closeStores: emitting end"),this.emit("end"),n){const l=o||a;this.log("end :: closeStores: invoking callback with args"),n(l)}})}),this._deferredReconnect&&this._deferredReconnect()},s=()=>{this.log("end :: (%s) :: finish :: calling _cleanUp with force %s",this.options.clientId,e),this._cleanUp(e,()=>{this.log("end :: finish :: calling process.nextTick on closeStores"),Df(i)},r)};return this.disconnecting?(n(),this):(this._clearReconnect(),this.disconnecting=!0,!e&&Object.keys(this.outgoing).length>0?(this.log("end :: (%s) :: calling finish in 10ms once outgoing is empty",this.options.clientId),this.once("outgoingEmpty",setTimeout.bind(null,s,10))):(this.log("end :: (%s) :: immediately calling finish",this.options.clientId),s()),this)}endAsync(e,r){return new Promise((n,i)=>{this.end(e,r,s=>{s?i(s):n()})})}removeOutgoingMessage(e){if(this.outgoing[e]){const{cb:r}=this.outgoing[e];this._removeOutgoingAndStoreMessage(e,()=>{r(new Error("Message removed"))})}return this}reconnect(e){this.log("client reconnect");const r=()=>{e?(this.options.incomingStore=e.incomingStore,this.options.outgoingStore=e.outgoingStore):(this.options.incomingStore=null,this.options.outgoingStore=null),this.incomingStore=this.options.incomingStore||new Qo.default,this.outgoingStore=this.options.outgoingStore||new Qo.default,this.disconnecting=!1,this.disconnected=!1,this._deferredReconnect=null,this._reconnect()};return this.disconnecting&&!this.disconnected?this._deferredReconnect=r:r(),this}_flushVolatile(){this.outgoing&&(this.log("_flushVolatile :: deleting volatile messages from the queue and setting their callbacks as error function"),Object.keys(this.outgoing).forEach(e=>{this.outgoing[e].volatile&&typeof this.outgoing[e].cb=="function"&&(this.outgoing[e].cb(new Error("Connection closed")),delete this.outgoing[e])}))}_flush(){this.outgoing&&(this.log("_flush: queue exists? %b",!!this.outgoing),Object.keys(this.outgoing).forEach(e=>{typeof this.outgoing[e].cb=="function"&&(this.outgoing[e].cb(new Error("Connection closed")),delete this.outgoing[e])}))}_removeTopicAliasAndRecoverTopicName(e){let r;e.properties&&(r=e.properties.topicAlias);let n=e.topic.toString();if(this.log("_removeTopicAliasAndRecoverTopicName :: alias %d, topic %o",r,n),n.length===0){if(typeof r>"u")return new Error("Unregistered Topic Alias");if(n=this.topicAliasSend.getTopicByAlias(r),typeof n>"u")return new Error("Unregistered Topic Alias");e.topic=n}r&&delete e.properties.topicAlias}_checkDisconnecting(e){return this.disconnecting&&(e&&e!==this.noop?e(new Error("client disconnecting")):this.emit("error",new Error("client disconnecting"))),this.disconnecting}_reconnect(){this.log("_reconnect: emitting reconnect to client"),this.emit("reconnect"),this.connected?(this.end(()=>{this.connect()}),this.log("client already connected. disconnecting first.")):(this.log("_reconnect: calling connect"),this.connect())}_setupReconnect(){!this.disconnecting&&!this.reconnectTimer&&this.options.reconnectPeriod>0?(this.reconnecting||(this.log("_setupReconnect :: emit `offline` state"),this.emit("offline"),this.log("_setupReconnect :: set `reconnecting` to `true`"),this.reconnecting=!0),this.log("_setupReconnect :: setting reconnectTimer for %d ms",this.options.reconnectPeriod),this.reconnectTimer=setInterval(()=>{this.log("reconnectTimer :: reconnect triggered!"),this._reconnect()},this.options.reconnectPeriod)):this.log("_setupReconnect :: doing nothing...")}_clearReconnect(){this.log("_clearReconnect : clearing reconnect timer"),this.reconnectTimer&&(clearInterval(this.reconnectTimer),this.reconnectTimer=null)}_cleanUp(e,r,n={}){if(r&&(this.log("_cleanUp :: done callback provided for on stream close"),this.stream.on("close",r)),this.log("_cleanUp :: forced? %s",e),e)this.options.reconnectPeriod===0&&this.options.clean&&this._flush(),this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),this.stream.destroy();else{const i=Object.assign({cmd:"disconnect"},n);this.log("_cleanUp :: (%s) :: call _sendPacket with disconnect packet",this.options.clientId),this._sendPacket(i,()=>{this.log("_cleanUp :: (%s) :: destroying stream",this.options.clientId),vc(()=>{this.stream.end(()=>{this.log("_cleanUp :: (%s) :: stream destroyed",this.options.clientId)})})})}this.disconnecting||(this.log("_cleanUp :: client not disconnecting. Clearing and resetting reconnect."),this._clearReconnect(),this._setupReconnect()),this.pingTimer!==null&&(this.log("_cleanUp :: clearing pingTimer"),this.pingTimer.clear(),this.pingTimer=null),r&&!this.connected&&(this.log("_cleanUp :: (%s) :: removing stream `done` callback `close` listener",this.options.clientId),this.stream.removeListener("close",r),r())}_storeAndSend(e,r,n){this.log("storeAndSend :: store packet with cmd %s to outgoingStore",e.cmd);let i=e,s;if(i.cmd==="publish"&&(i=(0,fm.default)(e),s=this._removeTopicAliasAndRecoverTopicName(i),s))return r&&r(s);this.outgoingStore.put(i,o=>{if(o)return r&&r(o);n(),this._writePacket(e,r)})}_applyTopicAlias(e){if(this.options.protocolVersion===5&&e.cmd==="publish"){let r;e.properties&&(r=e.properties.topicAlias);const n=e.topic.toString();if(this.topicAliasSend)if(r){if(n.length!==0&&(this.log("applyTopicAlias :: register topic: %s - alias: %d",n,r),!this.topicAliasSend.put(n,r)))return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",n,r),new Error("Sending Topic Alias out of range")}else n.length!==0&&(this.options.autoAssignTopicAlias?(r=this.topicAliasSend.getAliasByTopic(n),r?(e.topic="",e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:r}),this.log("applyTopicAlias :: auto assign(use) topic: %s - alias: %d",n,r)):(r=this.topicAliasSend.getLruAlias(),this.topicAliasSend.put(n,r),e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:r}),this.log("applyTopicAlias :: auto assign topic: %s - alias: %d",n,r))):this.options.autoUseTopicAlias&&(r=this.topicAliasSend.getAliasByTopic(n),r&&(e.topic="",e.properties=Object.assign(Object.assign({},e.properties),{topicAlias:r}),this.log("applyTopicAlias :: auto use topic: %s - alias: %d",n,r))));else if(r)return this.log("applyTopicAlias :: error out of range. topic: %s - alias: %d",n,r),new Error("Sending Topic Alias out of range")}}_noop(e){this.log("noop ::",e)}_writePacket(e,r){this.log("_writePacket :: packet: %O",e),this.log("_writePacket :: emitting `packetsend`"),this.emit("packetsend",e),this._shiftPingInterval(),this.log("_writePacket :: writing to stream");const n=_c.default.writeToStream(e,this.stream,this.options);this.log("_writePacket :: writeToStream result %s",n),!n&&r&&r!==this.noop?(this.log("_writePacket :: handle events on `drain` once through callback."),this.stream.once("drain",r)):r&&(this.log("_writePacket :: invoking cb"),r())}_sendPacket(e,r,n,i){this.log("_sendPacket :: (%s) :: start",this.options.clientId),n=n||this.noop,r=r||this.noop;const s=this._applyTopicAlias(e);if(s){r(s);return}if(!this.connected){if(e.cmd==="auth"){this._writePacket(e,r);return}this.log("_sendPacket :: client not connected. Storing packet offline."),this._storePacket(e,r,n);return}if(i){this._writePacket(e,r);return}switch(e.cmd){case"publish":break;case"pubrel":this._storeAndSend(e,r,n);return;default:this._writePacket(e,r);return}switch(e.qos){case 2:case 1:this._storeAndSend(e,r,n);break;case 0:default:this._writePacket(e,r);break}this.log("_sendPacket :: (%s) :: end",this.options.clientId)}_storePacket(e,r,n){this.log("_storePacket :: packet: %o",e),this.log("_storePacket :: cb? %s",!!r),n=n||this.noop;let i=e;if(i.cmd==="publish"){i=(0,fm.default)(e);const o=this._removeTopicAliasAndRecoverTopicName(i);if(o)return r&&r(o)}const s=i.qos||0;s===0&&this.queueQoSZero||i.cmd!=="publish"?this.queue.push({packet:i,cb:r}):s>0?(r=this.outgoing[i.messageId]?this.outgoing[i.messageId].cb:null,this.outgoingStore.put(i,o=>{if(o)return r&&r(o);n()})):r&&r(new Error("No connection to broker"))}_setupPingTimer(){this.log("_setupPingTimer :: keepalive %d (seconds)",this.options.keepalive),!this.pingTimer&&this.options.keepalive&&(this.pingResp=!0,this.pingTimer=(0,mR.default)(()=>{this._checkPing()},this.options.keepalive*1e3))}_shiftPingInterval(){this.pingTimer&&this.options.keepalive&&this.options.reschedulePings&&this.pingTimer.reschedule(this.options.keepalive*1e3)}_checkPing(){this.log("_checkPing :: checking ping..."),this.pingResp?(this.log("_checkPing :: ping response received. Clearing flag and sending `pingreq`"),this.pingResp=!1,this._sendPacket({cmd:"pingreq"})):(this.log("_checkPing :: calling _cleanUp with force true"),this._cleanUp(!0))}_resubscribe(){this.log("_resubscribe");const e=Object.keys(this._resubscribeTopics);if(!this._firstConnection&&(this.options.clean||this.options.protocolVersion>=4&&!this.connackPacket.sessionPresent)&&e.length>0)if(this.options.resubscribe)if(this.options.protocolVersion===5){this.log("_resubscribe: protocolVersion 5");for(let r=0;r{let n=this.outgoingStore.createStream();const i=()=>{n.destroy(),n=null,this._flushStoreProcessingQueue(),s()},s=()=>{this._storeProcessing=!1,this._packetIdsDuringStoreProcessing={}};this.once("close",i),n.on("error",a=>{s(),this._flushStoreProcessingQueue(),this.removeListener("close",i),this.emit("error",a)});const o=()=>{if(!n)return;const a=n.read(1);let l;if(!a){n.once("readable",o);return}if(this._storeProcessing=!0,this._packetIdsDuringStoreProcessing[a.messageId]){o();return}!this.disconnecting&&!this.reconnectTimer?(l=this.outgoing[a.messageId]?this.outgoing[a.messageId].cb:null,this.outgoing[a.messageId]={volatile:!1,cb(u,c){l&&l(u,c),o()}},this._packetIdsDuringStoreProcessing[a.messageId]=!0,this.messageIdProvider.register(a.messageId)?this._sendPacket(a,void 0,void 0,!0):this.log("messageId: %d has already used.",a.messageId)):n.destroy&&n.destroy()};n.on("end",()=>{let a=!0;for(const l in this._packetIdsDuringStoreProcessing)if(!this._packetIdsDuringStoreProcessing[l]){a=!1;break}a?(s(),this.removeListener("close",i),this._invokeAllStoreProcessingQueue(),this.emit("connect",e)):r()}),o()};r()}_invokeStoreProcessingQueue(){if(!this._storeProcessing&&this._storeProcessingQueue.length>0){const e=this._storeProcessingQueue[0];if(e&&e.invoke())return this._storeProcessingQueue.shift(),!0}return!1}_invokeAllStoreProcessingQueue(){for(;this._invokeStoreProcessingQueue(););}_flushStoreProcessingQueue(){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)}_removeOutgoingAndStoreMessage(e,r){delete this.outgoing[e],this.outgoingStore.del({messageId:e},(n,i)=>{r(n,i),this.messageIdProvider.deallocate(e),this._invokeStoreProcessingQueue()})}}lo.default=Eh;var Sh={};Object.defineProperty(Sh,"__esModule",{value:!0});const vR=wh;class ER{constructor(){this.numberAllocator=new vR.NumberAllocator(1,65535)}allocate(){return this.lastId=this.numberAllocator.alloc(),this.lastId}getLastAllocated(){return this.lastId}register(e){return this.numberAllocator.use(e)}deallocate(e){this.numberAllocator.free(e)}clear(){this.numberAllocator.clear()}}Sh.default=ER;var Co={};const Ec=2147483647,Gs=36,g_=1,Bf=26,SR=38,xR=700,TR=72,AR=128,MR="-",CR=/[^\0-\x7F]/,IR=/[\x2E\u3002\uFF0E\uFF61]/g,OR={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Sc=Gs-g_,vi=Math.floor,xc=String.fromCharCode;function pm(t){throw new RangeError(OR[t])}function PR(t,e){const r=[];let n=t.length;for(;n--;)r[n]=e(t[n]);return r}function RR(t,e){const r=t.split("@");let n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(IR,".");const i=t.split("."),s=PR(i,e).join(".");return n+s}function LR(t){const e=[];let r=0;const n=t.length;for(;r=55296&&i<=56319&&r>1,t+=vi(t/e);t>Sc*Bf>>1;n+=Gs)t=vi(t/Sc);return vi(n+(Sc+1)*t/(t+SR))},$R=function(t){const e=[];t=LR(t);const r=t.length;let n=AR,i=0,s=TR;for(const l of t)l<128&&e.push(xc(l));const o=e.length;let a=o;for(o&&e.push(MR);a=n&&cvi((Ec-i)/u)&&pm("overflow"),i+=(l-n)*u,n=l;for(const c of t)if(cEc&&pm("overflow"),c===n){let f=i;for(let d=Gs;;d+=Gs){const h=d<=s?g_:d>=s+Bf?Bf:d-s;if(f0&&a>o&&(a=o);for(var l=0;l=0?(f=u.substr(0,c),d=u.substr(c+1)):(f=u,d=""),h=decodeURIComponent(f),g=decodeURIComponent(d),DR(i,h)?m_(i[h])?i[h].push(g):i[h]=[i[h],g]:i[h]=g}return i}const UR={parse:Io,resolve:b_,resolveObject:__,format:w_,Url:Gt};function Gt(){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 jR=/^([a-z0-9.+-]+:)/i,zR=/:[0-9]*$/,HR=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,WR=["<",">",'"',"`"," ","\r",` +`," "],VR=["{","}","|","\\","^","`"].concat(WR),Ff=["'"].concat(VR),wm=["%","/","?",";","#"].concat(Ff),bm=["/","?","#"],qR=255,_m=/^[+a-z0-9A-Z_-]{0,63}$/,YR=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,KR={javascript:!0,"javascript:":!0},Uf={javascript:!0,"javascript:":!0},Ni={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Io(t,e,r){if(t&&Wr(t)&&t instanceof Gt)return t;var n=new Gt;return n.parse(t,e,r),n}Gt.prototype.parse=function(t,e,r){return y_(this,t,e,r)};function y_(t,e,r,n){if(!yn(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=i!==-1&&i127?$+="x":$+=I[F];if(!$.match(_m)){var U=M.slice(0,h),k=M.slice(h+1),W=I.match(YR);W&&(U.push(W[1]),k.unshift(W[2])),k.length&&(l="/"+k.join(".")+l),t.hostname=U.join(".");break}}}}t.hostname.length>qR?t.hostname="":t.hostname=t.hostname.toLowerCase(),T||(t.hostname=kR(t.hostname)),b=t.port?":"+t.port:"";var D=t.hostname||"";t.host=D+b,t.href+=t.host,T&&(t.hostname=t.hostname.substr(1,t.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!KR[f])for(h=0,y=Ff.length;h0?r.host.split("@"):!1,M&&(r.auth=M.shift(),r.host=r.hostname=M.shift())),r.search=t.search,r.query=t.query,(!Cr(r.pathname)||!Cr(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!v.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var I=v.slice(-1)[0],$=(r.host||t.host||v.length>1)&&(I==="."||I==="..")||I==="",F=0,L=v.length;L>=0;L--)I=v[L],I==="."?v.splice(L,1):I===".."?(v.splice(L,1),F++):F&&(v.splice(L,1),F--);if(!E&&!_)for(;F--;F)v.unshift("..");E&&v[0]!==""&&(!v[0]||v[0].charAt(0)!=="/")&&v.unshift(""),$&&v.join("/").substr(-1)!=="/"&&v.push("");var U=v[0]===""||v[0]&&v[0].charAt(0)==="/";return T&&(r.hostname=r.host=U?"":v.length?v.shift():"",M=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1,M&&(r.auth=M.shift(),r.host=r.hostname=M.shift())),E=E||r.host&&v.length,E&&!U&&v.unshift(""),v.length?r.pathname=v.join("/"):(r.pathname=null,r.path=null),(!Cr(r.pathname)||!Cr(r.search))&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r};Gt.prototype.parseHost=function(){return v_(this)};function v_(t){var e=t.host,r=zR.exec(e);r&&(r=r[0],r!==":"&&(t.port=r.substr(1)),e=e.substr(0,e.length-r.length)),e&&(t.hostname=e)}const GR=Object.freeze(Object.defineProperty({__proto__:null,Url:Gt,default:UR,format:w_,parse:Io,resolve:b_,resolveObject:__},Symbol.toStringTag,{value:"Module"})),XR=Nl(GR);var cu={};Object.defineProperty(cu,"__esModule",{value:!0});const QR=typeof window<"u"&&typeof window.document<"u";cu.default=QR;var Jo={};const JR={},ZR=Object.freeze(Object.defineProperty({__proto__:null,default:JR},Symbol.toStringTag,{value:"Module"})),jf=Nl(ZR);var vm;function Em(){if(vm)return Jo;vm=1;var t=xe&&xe.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Jo,"__esModule",{value:!0});const e=t(jf),n=(0,t(Vr).default)("mqttjs:tcp"),i=(s,o)=>{o.port=o.port||1883,o.hostname=o.hostname||o.host||"localhost";const{port:a}=o,l=o.hostname;return n("port %d and host %s",a,l),e.default.createConnection(a,l)};return Jo.default=i,Jo}var Zo={},Sm;function xm(){if(Sm)return Zo;Sm=1;var t=xe&&xe.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Zo,"__esModule",{value:!0});const e=t(jf),r=t(jf),i=(0,t(Vr).default)("mqttjs:tls"),s=(o,a)=>{a.port=a.port||8883,a.host=a.hostname||a.host||"localhost",r.default.isIP(a.host)===0&&(a.servername=a.host),a.rejectUnauthorized=a.rejectUnauthorized!==!1,delete a.path,i("port %d host %s rejectUnauthorized %b",a.port,a.host,a.rejectUnauthorized);const l=e.default.connect(a);l.on("secureConnect",()=>{a.rejectUnauthorized&&!l.authorized?l.emit("error",new Error("TLS not authorized")):l.removeListener("error",u)});function u(c){a.rejectUnauthorized&&o.emit("error",c),l.end()}return l.on("error",u),l};return Zo.default=s,Zo}var ea={},Th={exports:{}},eL=E_;function E_(t,e){if(t&&e)return E_(t)(e);if(typeof t!="function")throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(n){r[n]=t[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i{i.send({data:h.buffer,success(){y()},fail(b){y(new Error(b))}})},d._flush=h=>{i.close({success(){h()}})},d}function l(d){d.hostname||(d.hostname="localhost"),d.path||(d.path="/"),d.wsOptions||(d.wsOptions={})}function u(d,h){const g=d.protocol==="wxs"?"wss":"ws";let y=`${g}://${d.hostname}${d.path}`;return d.port&&d.port!==80&&d.port!==443&&(y=`${g}://${d.hostname}:${d.port}${d.path}`),typeof d.transformWsUrl=="function"&&(y=d.transformWsUrl(y,d,h)),y}function c(){i.onOpen(()=>{o.setReadable(s),o.setWritable(s),o.emit("connect")}),i.onMessage(d=>{let{data:h}=d;h instanceof ArrayBuffer?h=e.Buffer.from(h):h=e.Buffer.from(h,"utf8"),s.push(h)}),i.onClose(()=>{o.emit("close"),o.end(),o.destroy()}),i.onError(d=>{o.destroy(new Error(d.errMsg))})}const f=(d,h)=>{if(h.hostname=h.hostname||h.host,!h.hostname)throw new Error("Could not determine host. Specify host manually.");const g=h.protocolId==="MQIsdp"&&h.protocolVersion===3?"mqttv3.1":"mqtt";l(h);const y=u(h,d);i=wx.connectSocket({url:y,protocols:[g]}),s=a(),o=n.default.obj(),o._destroy=(E,_)=>{i.close({success(){_&&_(E)}})};const b=o.destroy;return o.destroy=()=>{o.destroy=b,setTimeout(()=>{i.close({fail(){o._destroy(new Error)}})},0)},c(),o};return ea.default=f,ea}var ta={},Mm;function Cm(){if(Mm)return ta;Mm=1;var t=xe&&xe.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(ta,"__esModule",{value:!0});const e=We,r=To,n=t(Ah);let i,s,o,a=!1;function l(){const h=new r.Transform;return h._write=(g,y,b)=>{i.sendSocketMessage({data:g.buffer,success(){b()},fail(){b(new Error)}})},h._flush=g=>{i.closeSocket({success(){g()}})},h}function u(h){h.hostname||(h.hostname="localhost"),h.path||(h.path="/"),h.wsOptions||(h.wsOptions={})}function c(h,g){const y=h.protocol==="alis"?"wss":"ws";let b=`${y}://${h.hostname}${h.path}`;return h.port&&h.port!==80&&h.port!==443&&(b=`${y}://${h.hostname}:${h.port}${h.path}`),typeof h.transformWsUrl=="function"&&(b=h.transformWsUrl(b,h,g)),b}function f(){a||(a=!0,i.onSocketOpen(()=>{o.setReadable(s),o.setWritable(s),o.emit("connect")}),i.onSocketMessage(h=>{if(typeof h.data=="string"){const g=e.Buffer.from(h.data,"base64");s.push(g)}else{const g=new FileReader;g.addEventListener("load",()=>{let y=g.result;y instanceof ArrayBuffer?y=e.Buffer.from(y):y=e.Buffer.from(y,"utf8"),s.push(y)}),g.readAsArrayBuffer(h.data)}}),i.onSocketClose(()=>{o.end(),o.destroy()}),i.onSocketError(h=>{o.destroy(h)}))}const d=(h,g)=>{if(g.hostname=g.hostname||g.host,!g.hostname)throw new Error("Could not determine host. Specify host manually.");const y=g.protocolId==="MQIsdp"&&g.protocolVersion===3?"mqttv3.1":"mqtt";u(g);const b=c(g,h);return i=g.my,i.connectSocket({url:b,protocols:y}),s=l(),o=n.default.obj(),f(),o};return ta.default=d,ta}var du={},mL=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")},hu=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(du,"__esModule",{value:!0});const Ts=We,I_=hu(mL),yL=hu(Vr),wL=hu(Ah),bL=To,O_=hu(cu),Xs=(0,yL.default)("mqttjs:ws"),_L=["rejectUnauthorized","ca","cert","key","pfx","passphrase"];function P_(t,e){let r=`${t.protocol}://${t.hostname}:${t.port}${t.path}`;return typeof t.transformWsUrl=="function"&&(r=t.transformWsUrl(r,t,e)),r}function R_(t){const e=t;return t.hostname||(e.hostname="localhost"),t.port||(t.protocol==="wss"?e.port=443:e.port=80),t.path||(e.path="/"),t.wsOptions||(e.wsOptions={}),!O_.default&&t.protocol==="wss"&&_L.forEach(r=>{Object.prototype.hasOwnProperty.call(t,r)&&!Object.prototype.hasOwnProperty.call(t.wsOptions,r)&&(e.wsOptions[r]=t[r])}),e}function vL(t){const e=R_(t);if(e.hostname||(e.hostname=e.host),!e.hostname){if(typeof document>"u")throw new Error("Could not determine host. Specify host manually.");const r=new URL(document.URL);e.hostname=r.hostname,e.port||(e.port=Number(r.port))}return e.objectMode===void 0&&(e.objectMode=!(e.binary===!0||e.binary===void 0)),e}function EL(t,e,r){Xs("createWebSocket"),Xs(`protocol: ${r.protocolId} ${r.protocolVersion}`);const n=r.protocolId==="MQIsdp"&&r.protocolVersion===3?"mqttv3.1":"mqtt";Xs(`creating new Websocket for url: ${e} and protocol: ${n}`);let i;return r.createWebsocket?i=r.createWebsocket(e,[n],r):i=new I_.default(e,[n],r.wsOptions),i}function SL(t,e){const r=e.protocolId==="MQIsdp"&&e.protocolVersion===3?"mqttv3.1":"mqtt",n=P_(e,t);let i;return e.createWebsocket?i=e.createWebsocket(n,[r],e):i=new WebSocket(n,[r]),i.binaryType="arraybuffer",i}const xL=(t,e)=>{Xs("streamBuilder");const r=R_(e),n=P_(r,t),i=EL(t,n,r),s=I_.default.createWebSocketStream(i,r.wsOptions);return s.url=n,i.on("close",()=>{s.destroy()}),s},TL=(t,e)=>{Xs("browserStreamBuilder");let r;const i=vL(e).browserBufferSize||1024*512,s=e.browserBufferTimeout||1e3,o=!e.objectMode,a=SL(t,e),l=c(e,b,E);e.objectMode||(l._writev=y),l.on("close",()=>{a.close()});const u=typeof a.addEventListener<"u";a.readyState===a.OPEN?r=l:(r=(0,wL.default)(void 0,void 0,e),e.objectMode||(r._writev=y),u?a.addEventListener("open",f):a.onopen=f),r.socket=a,u?(a.addEventListener("close",d),a.addEventListener("error",h),a.addEventListener("message",g)):(a.onclose=d,a.onerror=h,a.onmessage=g);function c(_,v,T){const M=new bL.Transform({objectMode:_.objectMode});return M._write=v,M._flush=T,M}function f(){r.setReadable(l),r.setWritable(l),r.emit("connect")}function d(){r.end(),r.destroy()}function h(_){r.destroy(_)}function g(_){let{data:v}=_;v instanceof ArrayBuffer?v=Ts.Buffer.from(v):v=Ts.Buffer.from(v,"utf8"),l.push(v)}function y(_,v){const T=new Array(_.length);for(let M=0;M<_.length;M++)typeof _[M].chunk=="string"?T[M]=Ts.Buffer.from(_[M],"utf8"):T[M]=_[M].chunk;this._write(Ts.Buffer.concat(T),"binary",v)}function b(_,v,T){a.bufferedAmount>i&&setTimeout(b,s,_,v,T),o&&typeof _=="string"&&(_=Ts.Buffer.from(_,"utf8"));try{a.send(_)}catch(M){return T(M)}T()}function E(_){a.close(),_()}return r};du.default=O_.default?TL:xL;var pu=xe&&xe.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Co,"__esModule",{value:!0});Co.connectAsync=void 0;const AL=pu(Vr),ML=pu(XR),CL=pu(lo),IL=pu(cu),Im=(0,AL.default)("mqttjs"),at={};IL.default?(at.wx=Am().default,at.wxs=Am().default,at.ali=Cm().default,at.alis=Cm().default):(at.mqtt=Em().default,at.tcp=Em().default,at.ssl=xm().default,at.tls=at.ssl,at.mqtts=xm().default);at.ws=du.default;at.wss=du.default;function OL(t){let e;t.auth&&(e=t.auth.match(/^(.+):(.+)$/),e?(t.username=e[1],t.password=e[2]):t.username=t.auth)}function L_(t,e){if(Im("connecting to an MQTT broker..."),typeof t=="object"&&!e&&(e=t,t=""),e=e||{},t&&typeof t=="string"){const i=ML.default.parse(t,!0);if(i.port!=null&&(i.port=Number(i.port)),e=Object.assign(Object.assign({},i),e),e.protocol===null)throw new Error("Missing protocol");e.protocol=e.protocol.replace(/:$/,"")}if(OL(e),e.query&&typeof e.query.clientId=="string"&&(e.clientId=e.query.clientId),e.cert&&e.key)if(e.protocol){if(["mqtts","wss","wxs","alis"].indexOf(e.protocol)===-1)switch(e.protocol){case"mqtt":e.protocol="mqtts";break;case"ws":e.protocol="wss";break;case"wx":e.protocol="wxs";break;case"ali":e.protocol="alis";break;default:throw new Error(`Unknown protocol for secure connection: "${e.protocol}"!`)}}else throw new Error("Missing secure protocol key");if(!at[e.protocol]){const i=["mqtts","wss"].indexOf(e.protocol)!==-1;e.protocol=["mqtt","mqtts","ws","wss","wx","wxs","ali","alis"].filter((s,o)=>i&&o%2===0?!1:typeof at[s]=="function")[0]}if(e.clean===!1&&!e.clientId)throw new Error("Missing clientId for unclean clients");e.protocol&&(e.defaultProtocol=e.protocol);function r(i){return e.servers&&((!i._reconnectCount||i._reconnectCount===e.servers.length)&&(i._reconnectCount=0),e.host=e.servers[i._reconnectCount].host,e.port=e.servers[i._reconnectCount].port,e.protocol=e.servers[i._reconnectCount].protocol?e.servers[i._reconnectCount].protocol:e.defaultProtocol,e.hostname=e.host,i._reconnectCount++),Im("calling streambuilder for",e.protocol),at[e.protocol](i,e)}const n=new CL.default(r,e);return n.on("error",()=>{}),n}function PL(t,e,r=!0){return new Promise((n,i)=>{const s=L_(t,e),o={connect:l=>{a(),n(s)},end:()=>{a(),n(s)},error:l=>{a(),s.end(),i(l)}};r===!1&&(o.close=()=>{o.error(new Error("Couldn't connect to server"))});function a(){Object.keys(o).forEach(l=>{s.off(l,o[l])})}Object.keys(o).forEach(l=>{s.on(l,o[l])})})}Co.connectAsync=PL;Co.default=L_;(function(t){var e=xe&&xe.__createBinding||(Object.create?function(d,h,g,y){y===void 0&&(y=g);var b=Object.getOwnPropertyDescriptor(h,g);(!b||("get"in b?!h.__esModule:b.writable||b.configurable))&&(b={enumerable:!0,get:function(){return h[g]}}),Object.defineProperty(d,y,b)}:function(d,h,g,y){y===void 0&&(y=g),d[y]=h[g]}),r=xe&&xe.__setModuleDefault||(Object.create?function(d,h){Object.defineProperty(d,"default",{enumerable:!0,value:h})}:function(d,h){d.default=h}),n=xe&&xe.__importStar||function(d){if(d&&d.__esModule)return d;var h={};if(d!=null)for(var g in d)g!=="default"&&Object.prototype.hasOwnProperty.call(d,g)&&e(h,d,g);return r(h,d),h},i=xe&&xe.__exportStar||function(d,h){for(var g in d)g!=="default"&&!Object.prototype.hasOwnProperty.call(h,g)&&e(h,d,g)},s=xe&&xe.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReasonCodes=t.UniqueMessageIdProvider=t.DefaultMessageIdProvider=t.Store=t.MqttClient=t.connectAsync=t.connect=t.Client=void 0;const o=s(lo);t.MqttClient=o.default;const a=s(Yl);t.DefaultMessageIdProvider=a.default;const l=s(Sh);t.UniqueMessageIdProvider=l.default;const u=s(su);t.Store=u.default;const c=n(Co);t.connect=c.default,Object.defineProperty(t,"connectAsync",{enumerable:!0,get:function(){return c.connectAsync}}),t.Client=o.default,i(lo,t),i(Dr,t);var f=Ao;Object.defineProperty(t,"ReasonCodes",{enumerable:!0,get:function(){return f.ReasonCodes}})})(ax);function Ma(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function RL(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function Mh(t){let e,r,n;t.length!==2?(e=Ma,r=(a,l)=>Ma(t(a),l),n=(a,l)=>t(a)-l):(e=t===Ma||t===RL?t:LL,r=t,n=t);function i(a,l,u=0,c=a.length){if(u>>1;r(a[f],l)<0?u=f+1:c=f}while(u>>1;r(a[f],l)<=0?u=f+1:c=f}while(uu&&n(a[f-1],l)>-n(a[f],l)?f-1:f}return{left:i,center:o,right:s}}function LL(){return 0}function NL(t){return t===null?NaN:+t}const $L=Mh(Ma),kL=$L.right;Mh(NL).center;const DL=kL;function YW(t,e){let r,n;if(e===void 0)for(const i of t)i!=null&&(r===void 0?i>=i&&(r=n=i):(r>i&&(r=i),n=s&&(r=n=s):(r>s&&(r=s),n=jL?10:s>=zL?5:s>=HL?2:1;let a,l,u;return i<0?(u=Math.pow(10,-i)/o,a=Math.round(t*u),l=Math.round(e*u),a/ue&&--l,u=-u):(u=Math.pow(10,i)*o,a=Math.round(t/u),l=Math.round(e/u),a*ue&&--l),l0))return[];if(t===e)return[t];const n=e=i))return[];const a=s-i+1,l=new Array(a);if(n)if(o<0)for(let u=0;u=n)&&(r=n);else{let n=-1;for(let i of t)(i=e(i,++n,t))!=null&&(r=i)&&(r=i)}return r}function VL(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,s=new Array(i);++n+t(e)}function XL(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}function QL(){return!this.__axis}function gu(t,e){var r=[],n=null,i=null,s=6,o=6,a=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===Ca||t===$s?-1:1,c=t===$s||t===Ia?"x":"y",f=t===Ca||t===Vf?YL:KL;function d(h){var g=n??(e.ticks?e.ticks.apply(e,r):e.domain()),y=i??(e.tickFormat?e.tickFormat.apply(e,r):qL),b=Math.max(s,0)+a,E=e.range(),_=+E[0]+l,v=+E[E.length-1]+l,T=(e.bandwidth?XL:GL)(e.copy(),l),M=h.selection?h.selection():h,I=M.selectAll(".domain").data([null]),$=M.selectAll(".tick").data(g,e).order(),F=$.exit(),L=$.enter().append("g").attr("class","tick"),U=$.select("line"),k=$.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),$=$.merge(L),U=U.merge(L.append("line").attr("stroke","currentColor").attr(c+"2",u*s)),k=k.merge(L.append("text").attr("fill","currentColor").attr(c,u*b).attr("dy",t===Ca?"0em":t===Vf?"0.71em":"0.32em")),h!==M&&(I=I.transition(h),$=$.transition(h),U=U.transition(h),k=k.transition(h),F=F.transition(h).attr("opacity",Rm).attr("transform",function(W){return isFinite(W=T(W))?f(W+l):this.getAttribute("transform")}),L.attr("opacity",Rm).attr("transform",function(W){var D=this.parentNode.__axis;return f((D&&isFinite(D=D(W))?D:T(W))+l)})),F.remove(),I.attr("d",t===$s||t===Ia?o?"M"+u*o+","+_+"H"+l+"V"+v+"H"+u*o:"M"+l+","+_+"V"+v:o?"M"+_+","+u*o+"V"+l+"H"+v+"V"+u*o:"M"+_+","+l+"H"+v),$.attr("opacity",1).attr("transform",function(W){return f(T(W)+l)}),U.attr(c+"2",u*s),k.attr(c,u*b).text(y),M.filter(QL).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Ia?"start":t===$s?"end":"middle"),M.each(function(){this.__axis=T})}return d.scale=function(h){return arguments.length?(e=h,d):e},d.ticks=function(){return r=Array.from(arguments),d},d.tickArguments=function(h){return arguments.length?(r=h==null?[]:Array.from(h),d):r.slice()},d.tickValues=function(h){return arguments.length?(n=h==null?null:Array.from(h),d):n&&n.slice()},d.tickFormat=function(h){return arguments.length?(i=h,d):i},d.tickSize=function(h){return arguments.length?(s=o=+h,d):s},d.tickSizeInner=function(h){return arguments.length?(s=+h,d):s},d.tickSizeOuter=function(h){return arguments.length?(o=+h,d):o},d.tickPadding=function(h){return arguments.length?(a=+h,d):a},d.offset=function(h){return arguments.length?(l=+h,d):l},d}function GW(t){return gu(Ca,t)}function XW(t){return gu(Ia,t)}function QW(t){return gu(Vf,t)}function JW(t){return gu($s,t)}var JL={value:()=>{}};function N_(){for(var t=0,e=arguments.length,r={},n;t=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}Oa.prototype=N_.prototype={constructor:Oa,on:function(t,e){var r=this._,n=ZL(t+"",r),i,s=-1,o=n.length;if(arguments.length<2){for(;++s0)for(var r=new Array(i),n=0,i,s;n=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Nm.hasOwnProperty(e)?{space:Nm[e],local:t}:t}function tN(t){return function(){var e=this.ownerDocument,r=this.namespaceURI;return r===qf&&e.documentElement.namespaceURI===qf?e.createElement(t):e.createElementNS(r,t)}}function rN(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function $_(t){var e=mu(t);return(e.local?rN:tN)(e)}function nN(){}function Ch(t){return t==null?nN:function(){return this.querySelector(t)}}function iN(t){typeof t!="function"&&(t=Ch(t));for(var e=this._groups,r=e.length,n=new Array(r),i=0;i=v&&(v=_+1);!(M=b[v])&&++v=0;)(o=n[i])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function IN(t){t||(t=ON);function e(f,d){return f&&d?t(f.__data__,d.__data__):!f-!d}for(var r=this._groups,n=r.length,i=new Array(n),s=0;se?1:t>=e?0:NaN}function PN(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function RN(){return Array.from(this)}function LN(){for(var t=this._groups,e=0,r=t.length;e1?this.each((e==null?WN:typeof e=="function"?qN:VN)(t,e,r??"")):Hi(this.node(),t)}function Hi(t,e){return t.style.getPropertyValue(e)||U_(t).getComputedStyle(t,null).getPropertyValue(e)}function KN(t){return function(){delete this[t]}}function GN(t,e){return function(){this[t]=e}}function XN(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}function QN(t,e){return arguments.length>1?this.each((e==null?KN:typeof e=="function"?XN:GN)(t,e)):this.node()[t]}function j_(t){return t.trim().split(/^|\s+/)}function Ih(t){return t.classList||new z_(t)}function z_(t){this._node=t,this._names=j_(t.getAttribute("class")||"")}z_.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function H_(t,e){for(var r=Ih(t),n=-1,i=e.length;++n=0&&(r=e.slice(n+1),e=e.slice(0,n)),{type:e,name:r}})}function T$(t){return function(){var e=this.__on;if(e){for(var r=0,n=-1,i=e.length,s;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?ra(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?ra(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=N$.exec(t))?new mt(e[1],e[2],e[3],1):(e=$$.exec(t))?new mt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=k$.exec(t))?ra(e[1],e[2],e[3],e[4]):(e=D$.exec(t))?ra(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=B$.exec(t))?jm(e[1],e[2]/100,e[3]/100,1):(e=F$.exec(t))?jm(e[1],e[2]/100,e[3]/100,e[4]):$m.hasOwnProperty(t)?Bm($m[t]):t==="transparent"?new mt(NaN,NaN,NaN,0):null}function Bm(t){return new mt(t>>16&255,t>>8&255,t&255,1)}function ra(t,e,r,n){return n<=0&&(t=e=r=NaN),new mt(t,e,r,n)}function z$(t){return t instanceof Po||(t=Kn(t)),t?(t=t.rgb(),new mt(t.r,t.g,t.b,t.opacity)):new mt}function Yf(t,e,r,n){return arguments.length===1?z$(t):new mt(t,e,r,n??1)}function mt(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}Oh(mt,Yf,Y_(Po,{brighter(t){return t=t==null?sl:Math.pow(sl,t),new mt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?fo:Math.pow(fo,t),new mt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new mt(zn(this.r),zn(this.g),zn(this.b),ol(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Fm,formatHex:Fm,formatHex8:H$,formatRgb:Um,toString:Um}));function Fm(){return`#${kn(this.r)}${kn(this.g)}${kn(this.b)}`}function H$(){return`#${kn(this.r)}${kn(this.g)}${kn(this.b)}${kn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Um(){const t=ol(this.opacity);return`${t===1?"rgb(":"rgba("}${zn(this.r)}, ${zn(this.g)}, ${zn(this.b)}${t===1?")":`, ${t})`}`}function ol(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function zn(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function kn(t){return t=zn(t),(t<16?"0":"")+t.toString(16)}function jm(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ht(t,e,r,n)}function K_(t){if(t instanceof Ht)return new Ht(t.h,t.s,t.l,t.opacity);if(t instanceof Po||(t=Kn(t)),!t)return new Ht;if(t instanceof Ht)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),s=Math.max(e,r,n),o=NaN,a=s-i,l=(s+i)/2;return a?(e===s?o=(r-n)/a+(r0&&l<1?0:o,new Ht(o,a,l,t.opacity)}function W$(t,e,r,n){return arguments.length===1?K_(t):new Ht(t,e,r,n??1)}function Ht(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}Oh(Ht,W$,Y_(Po,{brighter(t){return t=t==null?sl:Math.pow(sl,t),new Ht(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?fo:Math.pow(fo,t),new Ht(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new mt(Tc(t>=240?t-240:t+120,i,n),Tc(t,i,n),Tc(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new Ht(zm(this.h),na(this.s),na(this.l),ol(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=ol(this.opacity);return`${t===1?"hsl(":"hsla("}${zm(this.h)}, ${na(this.s)*100}%, ${na(this.l)*100}%${t===1?")":`, ${t})`}`}}));function zm(t){return t=(t||0)%360,t<0?t+360:t}function na(t){return Math.max(0,Math.min(1,t||0))}function Tc(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const Ph=t=>()=>t;function V$(t,e){return function(r){return t+r*e}}function q$(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function Y$(t){return(t=+t)==1?G_:function(e,r){return r-e?q$(e,r,t):Ph(isNaN(e)?r:e)}}function G_(t,e){var r=e-t;return r?V$(t,r):Ph(isNaN(t)?e:t)}const al=function t(e){var r=Y$(e);function n(i,s){var o=r((i=Yf(i)).r,(s=Yf(s)).r),a=r(i.g,s.g),l=r(i.b,s.b),u=G_(i.opacity,s.opacity);return function(c){return i.r=o(c),i.g=a(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=t,n}(1);function K$(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),i;return function(s){for(i=0;ir&&(s=e.slice(r,s),a[o]?a[o]+=s:a[++o]=s),(n=n[0])===(i=i[0])?a[o]?a[o]+=i:a[++o]=i:(a[++o]=null,l.push({i:o,x:Ut(n,i)})),r=Ac.lastIndex;return r180?c+=360:c-u>180&&(u+=360),d.push({i:f.push(i(f)+"rotate(",null,n)-2,x:Ut(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function a(u,c,f,d){u!==c?d.push({i:f.push(i(f)+"skewX(",null,n)-2,x:Ut(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,d,h,g){if(u!==f||c!==d){var y=h.push(i(h)+"scale(",null,",",null,")");g.push({i:y-4,x:Ut(u,f)},{i:y-2,x:Ut(c,d)})}else(f!==1||d!==1)&&h.push(i(h)+"scale("+f+","+d+")")}return function(u,c){var f=[],d=[];return u=t(u),c=t(c),s(u.translateX,u.translateY,c.translateX,c.translateY,f,d),o(u.rotate,c.rotate,f,d),a(u.skewX,c.skewX,f,d),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,d),u=c=null,function(h){for(var g=-1,y=d.length,b;++g=0&&t._call.call(void 0,e),t=t._next;--Wi}function Wm(){Gn=(ul=po.now())+yu,Wi=ks=0;try{ak()}finally{Wi=0,uk(),Gn=0}}function lk(){var t=po.now(),e=t-ul;e>Z_&&(yu-=e,ul=t)}function uk(){for(var t,e=ll,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:ll=r);Ds=t,Xf(n)}function Xf(t){if(!Wi){ks&&(ks=clearTimeout(ks));var e=t-Gn;e>24?(t<1/0&&(ks=setTimeout(Wm,t-po.now()-yu)),As&&(As=clearInterval(As))):(As||(ul=po.now(),As=setInterval(lk,Z_)),Wi=1,ev(Wm))}}function Vm(t,e,r){var n=new cl;return e=e==null?0:+e,n.restart(i=>{n.stop(),t(i+e)},e,r),n}var ck=N_("start","end","cancel","interrupt"),fk=[],rv=0,qm=1,Qf=2,Pa=3,Ym=4,Jf=5,Ra=6;function wu(t,e,r,n,i,s){var o=t.__transition;if(!o)t.__transition={};else if(r in o)return;dk(t,r,{name:e,index:n,group:i,on:ck,tween:fk,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:rv})}function Nh(t,e){var r=Xt(t,e);if(r.state>rv)throw new Error("too late; already scheduled");return r}function br(t,e){var r=Xt(t,e);if(r.state>Pa)throw new Error("too late; already running");return r}function Xt(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}function dk(t,e,r){var n=t.__transition,i;n[e]=r,r.timer=tv(s,0,r.time);function s(u){r.state=qm,r.timer.restart(o,r.delay,r.time),r.delay<=u&&o(u-r.delay)}function o(u){var c,f,d,h;if(r.state!==qm)return l();for(c in n)if(h=n[c],h.name===r.name){if(h.state===Pa)return Vm(o);h.state===Ym?(h.state=Ra,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete n[c]):+cQf&&n.state=0&&(e=e.slice(0,r)),!e||e==="start"})}function Hk(t,e,r){var n,i,s=zk(e)?Nh:br;return function(){var o=s(this,t),a=o.on;a!==n&&(i=(n=a).copy()).on(e,r),o.on=i}}function Wk(t,e){var r=this._id;return arguments.length<2?Xt(this.node(),r).on.on(t):this.each(Hk(r,t,e))}function Vk(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}function qk(){return this.on("end.remove",Vk(this._id))}function Yk(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Ch(t));for(var n=this._groups,i=n.length,s=new Array(i),o=0;o+t;function pD(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var gD={time:null,delay:0,duration:250,ease:pD};function mD(t,e){for(var r;!(r=t.__transition)||!(r=r[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return r}function yD(t){var e,r;t instanceof Br?(e=t._id,t=t._name):(e=sv(),(r=gD).time=Lh(),t=t==null?null:t+"");for(var n=this._groups,i=n.length,s=0;s=0))throw new Error(`invalid digits: ${t}`);if(e>15)return ov;const r=10**e;return function(n){this._+=n[0];for(let i=1,s=n.length;iIn)if(!(Math.abs(f*l-u*c)>In)||!s)this._append`L${this._x1=e},${this._y1=r}`;else{let h=n-o,g=i-a,y=l*l+u*u,b=h*h+g*g,E=Math.sqrt(y),_=Math.sqrt(d),v=s*Math.tan((Zf-Math.acos((y+d-b)/(2*E*_)))/2),T=v/_,M=v/E;Math.abs(T-1)>In&&this._append`L${e+T*c},${r+T*f}`,this._append`A${s},${s},0,0,${+(f*h>c*g)},${this._x1=e+M*l},${this._y1=r+M*u}`}}arc(e,r,n,i,s,o){if(e=+e,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(i),l=n*Math.sin(i),u=e+a,c=r+l,f=1^o,d=o?i-s:s-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>In||Math.abs(this._y1-c)>In)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%ed+ed),d>wD?this._append`A${n},${n},0,1,${f},${e-a},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:d>In&&this._append`A${n},${n},0,${+(d>=Zf)},${f},${this._x1=e+n*Math.cos(s)},${this._y1=r+n*Math.sin(s)}`)}rect(e,r,n,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function vD(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function fl(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Vi(t){return t=fl(Math.abs(t)),t?t[1]:NaN}function ED(t,e){return function(r,n){for(var i=r.length,s=[],o=0,a=t[0],l=0;i>0&&a>0&&(l+a+1>n&&(a=Math.max(1,n-l)),s.push(r.substring(i-=a,i+a)),!((l+=a+1)>n));)a=t[o=(o+1)%t.length];return s.reverse().join(e)}}function SD(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}var xD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function dl(t){if(!(e=xD.exec(t)))throw new Error("invalid format: "+t);var e;return new kh({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}dl.prototype=kh.prototype;function kh(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}kh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function TD(t){e:for(var e=t.length,r=1,n=-1,i;r0&&(n=0);break}return n>0?t.slice(0,n)+t.slice(i+1):t}var av;function AD(t,e){var r=fl(t,e);if(!r)return t+"";var n=r[0],i=r[1],s=i-(av=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return s===o?n:s>o?n+new Array(s-o+1).join("0"):s>0?n.slice(0,s)+"."+n.slice(s):"0."+new Array(1-s).join("0")+fl(t,Math.max(0,e+s-1))[0]}function Km(t,e){var r=fl(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Gm={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:vD,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Km(t*100,e),r:Km,s:AD,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Xm(t){return t}var Qm=Array.prototype.map,Jm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function MD(t){var e=t.grouping===void 0||t.thousands===void 0?Xm:ED(Qm.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",n=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?Xm:SD(Qm.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function u(f){f=dl(f);var d=f.fill,h=f.align,g=f.sign,y=f.symbol,b=f.zero,E=f.width,_=f.comma,v=f.precision,T=f.trim,M=f.type;M==="n"?(_=!0,M="g"):Gm[M]||(v===void 0&&(v=12),T=!0,M="g"),(b||d==="0"&&h==="=")&&(b=!0,d="0",h="=");var I=y==="$"?r:y==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",$=y==="$"?n:/[%p]/.test(M)?o:"",F=Gm[M],L=/[defgprs%]/.test(M);v=v===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function U(k){var W=I,D=$,O,j,Q;if(M==="c")D=F(k)+D,k="";else{k=+k;var H=k<0||1/k<0;if(k=isNaN(k)?l:F(Math.abs(k),v),T&&(k=TD(k)),H&&+k==0&&g!=="+"&&(H=!1),W=(H?g==="("?g:a:g==="-"||g==="("?"":g)+W,D=(M==="s"?Jm[8+av/3]:"")+D+(H&&g==="("?")":""),L){for(O=-1,j=k.length;++OQ||Q>57){D=(Q===46?i+k.slice(O+1):k.slice(O))+D,k=k.slice(0,O);break}}}_&&!b&&(k=e(k,1/0));var K=W.length+k.length+D.length,X=K>1)+W+k+D+X.slice(K);break;default:k=X+W+k+D;break}return s(k)}return U.toString=function(){return f+""},U}function c(f,d){var h=u((f=dl(f),f.type="f",f)),g=Math.max(-8,Math.min(8,Math.floor(Vi(d)/3)))*3,y=Math.pow(10,-g),b=Jm[8+g/3];return function(E){return h(y*E)+b}}return{format:u,formatPrefix:c}}var sa,lv,uv;CD({thousands:",",grouping:[3],currency:["$",""]});function CD(t){return sa=MD(t),lv=sa.format,uv=sa.formatPrefix,sa}function ID(t){return Math.max(0,-Vi(Math.abs(t)))}function OD(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Vi(e)/3)))*3-Vi(Math.abs(t)))}function PD(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Vi(e)-Vi(t))+1}function bu(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const Zm=Symbol("implicit");function cv(){var t=new Om,e=[],r=[],n=Zm;function i(s){let o=t.get(s);if(o===void 0){if(n!==Zm)return n;t.set(s,o=e.push(s)-1)}return r[o%r.length]}return i.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new Om;for(const o of s)t.has(o)||t.set(o,e.push(o)-1);return i},i.range=function(s){return arguments.length?(r=Array.from(s),i):r.slice()},i.unknown=function(s){return arguments.length?(n=s,i):n},i.copy=function(){return cv(e,r).unknown(n)},bu.apply(i,arguments),i}function RD(){var t=cv().unknown(void 0),e=t.domain,r=t.range,n=0,i=1,s,o,a=!1,l=0,u=0,c=.5;delete t.unknown;function f(){var d=e().length,h=ie&&(r=t,t=e,e=r),function(n){return Math.max(t,Math.min(e,n))}}function kD(t,e,r){var n=t[0],i=t[1],s=e[0],o=e[1];return i2?DD:kD,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?s:(l||(l=a(t.map(n),e,r)))(n(o(d)))}return f.invert=function(d){return o(i((u||(u=a(e,t.map(n),Ut)))(d)))},f.domain=function(d){return arguments.length?(t=Array.from(d,ND),c()):t.slice()},f.range=function(d){return arguments.length?(e=Array.from(d),c()):e.slice()},f.rangeRound=function(d){return e=Array.from(d),r=tk,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Ei,c()):o!==Ei},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(s=d,f):s},function(d,h){return n=d,i=h,c()}}function dv(){return BD()(Ei,Ei)}function FD(t,e,r,n){var i=Wf(t,e,r),s;switch(n=dl(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return n.precision==null&&!isNaN(s=OD(i,o))&&(n.precision=s),uv(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(s=PD(i,Math.max(Math.abs(t),Math.abs(e))))&&(n.precision=s-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(s=ID(i))&&(n.precision=s-(n.type==="%")*2);break}}return lv(n)}function UD(t){var e=t.domain;return t.ticks=function(r){var n=e();return WL(n[0],n[n.length-1],r??10)},t.tickFormat=function(r,n){var i=e();return FD(i[0],i[i.length-1],r??10,n)},t.nice=function(r){r==null&&(r=10);var n=e(),i=0,s=n.length-1,o=n[i],a=n[s],l,u,c=10;for(a0;){if(u=Hf(o,a,r),u===l)return n[i]=o,n[s]=a,e(n);if(u>0)o=Math.floor(o/u)*u,a=Math.ceil(a/u)*u;else if(u<0)o=Math.ceil(o*u)/u,a=Math.floor(a*u)/u;else break;l=u}return t},t}function jD(){var t=dv();return t.copy=function(){return fv(t,jD())},bu.apply(t,arguments),UD(t)}function zD(t,e){t=t.slice();var r=0,n=t.length-1,i=t[r],s=t[n],o;return s(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),a=i.ceil(s);return s-o(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,a)=>{const l=[];if(s=i.ceil(s),a=a==null?1:Math.floor(a),!(s0))return l;let u;do l.push(u=new Date(+s)),e(s,a),t(s);while(uqe(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;e(o,-1),!s(o););else for(;--a>=0;)for(;e(o,1),!s(o););}),r&&(i.count=(s,o)=>(Mc.setTime(+s),Cc.setTime(+o),t(Mc),t(Cc),Math.floor(r(Mc,Cc))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(n?o=>n(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const hl=qe(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);hl.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?qe(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):hl);hl.range;const Ir=1e3,It=Ir*60,Or=It*60,Fr=Or*24,Dh=Fr*7,ty=Fr*30,Ic=Fr*365,Si=qe(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Ir)},(t,e)=>(e-t)/Ir,t=>t.getUTCSeconds());Si.range;const Bh=qe(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ir)},(t,e)=>{t.setTime(+t+e*It)},(t,e)=>(e-t)/It,t=>t.getMinutes());Bh.range;const HD=qe(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*It)},(t,e)=>(e-t)/It,t=>t.getUTCMinutes());HD.range;const Fh=qe(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ir-t.getMinutes()*It)},(t,e)=>{t.setTime(+t+e*Or)},(t,e)=>(e-t)/Or,t=>t.getHours());Fh.range;const WD=qe(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Or)},(t,e)=>(e-t)/Or,t=>t.getUTCHours());WD.range;const Ro=qe(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*It)/Fr,t=>t.getDate()-1);Ro.range;const Uh=qe(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Fr,t=>t.getUTCDate()-1);Uh.range;const VD=qe(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Fr,t=>Math.floor(t/Fr));VD.range;function si(t){return qe(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*It)/Dh)}const _u=si(0),pl=si(1),qD=si(2),YD=si(3),qi=si(4),KD=si(5),GD=si(6);_u.range;pl.range;qD.range;YD.range;qi.range;KD.range;GD.range;function oi(t){return qe(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/Dh)}const hv=oi(0),gl=oi(1),XD=oi(2),QD=oi(3),Yi=oi(4),JD=oi(5),ZD=oi(6);hv.range;gl.range;XD.range;QD.range;Yi.range;JD.range;ZD.range;const jh=qe(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());jh.range;const eB=qe(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());eB.range;const Ur=qe(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Ur.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:qe(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});Ur.range;const Xn=qe(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Xn.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:qe(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});Xn.range;function tB(t,e,r,n,i,s){const o=[[Si,1,Ir],[Si,5,5*Ir],[Si,15,15*Ir],[Si,30,30*Ir],[s,1,It],[s,5,5*It],[s,15,15*It],[s,30,30*It],[i,1,Or],[i,3,3*Or],[i,6,6*Or],[i,12,12*Or],[n,1,Fr],[n,2,2*Fr],[r,1,Dh],[e,1,ty],[e,3,3*ty],[t,1,Ic]];function a(u,c,f){const d=cb).right(o,d);if(h===o.length)return t.every(Wf(u/Ic,c/Ic,f));if(h===0)return hl.every(Math.max(Wf(u,c,f),1));const[g,y]=o[d/o[h-1][2]53)return null;"w"in w||(w.w=1),"Z"in w?(A=Pc(Ms(w.y,0,1)),B=A.getUTCDay(),A=B>4||B===0?gl.ceil(A):gl(A),A=Uh.offset(A,(w.V-1)*7),w.y=A.getUTCFullYear(),w.m=A.getUTCMonth(),w.d=A.getUTCDate()+(w.w+6)%7):(A=Oc(Ms(w.y,0,1)),B=A.getDay(),A=B>4||B===0?pl.ceil(A):pl(A),A=Ro.offset(A,(w.V-1)*7),w.y=A.getFullYear(),w.m=A.getMonth(),w.d=A.getDate()+(w.w+6)%7)}else("W"in w||"U"in w)&&("w"in w||(w.w="u"in w?w.u%7:"W"in w?1:0),B="Z"in w?Pc(Ms(w.y,0,1)).getUTCDay():Oc(Ms(w.y,0,1)).getDay(),w.m=0,w.d="W"in w?(w.w+6)%7+w.W*7-(B+5)%7:w.w+w.U*7-(B+6)%7);return"Z"in w?(w.H+=w.Z/100|0,w.M+=w.Z%100,Pc(w)):Oc(w)}}function F(ee,ue,P,w){for(var S=0,A=ue.length,B=P.length,z,q;S=B)return-1;if(z=ue.charCodeAt(S++),z===37){if(z=ue.charAt(S++),q=M[z in ry?ue.charAt(S++):z],!q||(w=q(ee,P,w))<0)return-1}else if(z!=P.charCodeAt(w++))return-1}return w}function L(ee,ue,P){var w=u.exec(ue.slice(P));return w?(ee.p=c.get(w[0].toLowerCase()),P+w[0].length):-1}function U(ee,ue,P){var w=h.exec(ue.slice(P));return w?(ee.w=g.get(w[0].toLowerCase()),P+w[0].length):-1}function k(ee,ue,P){var w=f.exec(ue.slice(P));return w?(ee.w=d.get(w[0].toLowerCase()),P+w[0].length):-1}function W(ee,ue,P){var w=E.exec(ue.slice(P));return w?(ee.m=_.get(w[0].toLowerCase()),P+w[0].length):-1}function D(ee,ue,P){var w=y.exec(ue.slice(P));return w?(ee.m=b.get(w[0].toLowerCase()),P+w[0].length):-1}function O(ee,ue,P){return F(ee,e,ue,P)}function j(ee,ue,P){return F(ee,r,ue,P)}function Q(ee,ue,P){return F(ee,n,ue,P)}function H(ee){return o[ee.getDay()]}function K(ee){return s[ee.getDay()]}function X(ee){return l[ee.getMonth()]}function Z(ee){return a[ee.getMonth()]}function ce(ee){return i[+(ee.getHours()>=12)]}function pe(ee){return 1+~~(ee.getMonth()/3)}function de(ee){return o[ee.getUTCDay()]}function me(ee){return s[ee.getUTCDay()]}function be(ee){return l[ee.getUTCMonth()]}function G(ee){return a[ee.getUTCMonth()]}function Y(ee){return i[+(ee.getUTCHours()>=12)]}function ne(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var ue=I(ee+="",v);return ue.toString=function(){return ee},ue},parse:function(ee){var ue=$(ee+="",!1);return ue.toString=function(){return ee},ue},utcFormat:function(ee){var ue=I(ee+="",T);return ue.toString=function(){return ee},ue},utcParse:function(ee){var ue=$(ee+="",!0);return ue.toString=function(){return ee},ue}}}var ry={"-":"",_:" ",0:"0"},Ge=/^\s*\d+/,sB=/^%/,oB=/[\\^$*+?|[\]().{}]/g;function Re(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",s=i.length;return n+(s[e.toLowerCase(),r]))}function lB(t,e,r){var n=Ge.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function uB(t,e,r){var n=Ge.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function cB(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function fB(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function dB(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function ny(t,e,r){var n=Ge.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function iy(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function hB(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function pB(t,e,r){var n=Ge.exec(e.slice(r,r+1));return n?(t.q=n[0]*3-3,r+n[0].length):-1}function gB(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function sy(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function mB(t,e,r){var n=Ge.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function oy(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function yB(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function wB(t,e,r){var n=Ge.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function bB(t,e,r){var n=Ge.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function _B(t,e,r){var n=Ge.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function vB(t,e,r){var n=sB.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function EB(t,e,r){var n=Ge.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function SB(t,e,r){var n=Ge.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function ay(t,e){return Re(t.getDate(),e,2)}function xB(t,e){return Re(t.getHours(),e,2)}function TB(t,e){return Re(t.getHours()%12||12,e,2)}function AB(t,e){return Re(1+Ro.count(Ur(t),t),e,3)}function pv(t,e){return Re(t.getMilliseconds(),e,3)}function MB(t,e){return pv(t,e)+"000"}function CB(t,e){return Re(t.getMonth()+1,e,2)}function IB(t,e){return Re(t.getMinutes(),e,2)}function OB(t,e){return Re(t.getSeconds(),e,2)}function PB(t){var e=t.getDay();return e===0?7:e}function RB(t,e){return Re(_u.count(Ur(t)-1,t),e,2)}function gv(t){var e=t.getDay();return e>=4||e===0?qi(t):qi.ceil(t)}function LB(t,e){return t=gv(t),Re(qi.count(Ur(t),t)+(Ur(t).getDay()===4),e,2)}function NB(t){return t.getDay()}function $B(t,e){return Re(pl.count(Ur(t)-1,t),e,2)}function kB(t,e){return Re(t.getFullYear()%100,e,2)}function DB(t,e){return t=gv(t),Re(t.getFullYear()%100,e,2)}function BB(t,e){return Re(t.getFullYear()%1e4,e,4)}function FB(t,e){var r=t.getDay();return t=r>=4||r===0?qi(t):qi.ceil(t),Re(t.getFullYear()%1e4,e,4)}function UB(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Re(e/60|0,"0",2)+Re(e%60,"0",2)}function ly(t,e){return Re(t.getUTCDate(),e,2)}function jB(t,e){return Re(t.getUTCHours(),e,2)}function zB(t,e){return Re(t.getUTCHours()%12||12,e,2)}function HB(t,e){return Re(1+Uh.count(Xn(t),t),e,3)}function mv(t,e){return Re(t.getUTCMilliseconds(),e,3)}function WB(t,e){return mv(t,e)+"000"}function VB(t,e){return Re(t.getUTCMonth()+1,e,2)}function qB(t,e){return Re(t.getUTCMinutes(),e,2)}function YB(t,e){return Re(t.getUTCSeconds(),e,2)}function KB(t){var e=t.getUTCDay();return e===0?7:e}function GB(t,e){return Re(hv.count(Xn(t)-1,t),e,2)}function yv(t){var e=t.getUTCDay();return e>=4||e===0?Yi(t):Yi.ceil(t)}function XB(t,e){return t=yv(t),Re(Yi.count(Xn(t),t)+(Xn(t).getUTCDay()===4),e,2)}function QB(t){return t.getUTCDay()}function JB(t,e){return Re(gl.count(Xn(t)-1,t),e,2)}function ZB(t,e){return Re(t.getUTCFullYear()%100,e,2)}function e2(t,e){return t=yv(t),Re(t.getUTCFullYear()%100,e,2)}function t2(t,e){return Re(t.getUTCFullYear()%1e4,e,4)}function r2(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Yi(t):Yi.ceil(t),Re(t.getUTCFullYear()%1e4,e,4)}function n2(){return"+0000"}function uy(){return"%"}function cy(t){return+t}function fy(t){return Math.floor(+t/1e3)}var di,wv,i2;s2({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function s2(t){return di=iB(t),wv=di.format,i2=di.parse,di.utcFormat,di.utcParse,di}function o2(t){return new Date(t)}function a2(t){return t instanceof Date?+t:+new Date(+t)}function bv(t,e,r,n,i,s,o,a,l,u){var c=dv(),f=c.invert,d=c.domain,h=u(".%L"),g=u(":%S"),y=u("%I:%M"),b=u("%I %p"),E=u("%a %d"),_=u("%b %d"),v=u("%B"),T=u("%Y");function M(I){return(l(I)1?0:t<-1?go:Math.acos(t)}function hy(t){return t>=1?ml:t<=-1?-ml:Math.asin(t)}function zh(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);e=n}return t},()=>new _D(e)}function c2(t){return t.innerRadius}function f2(t){return t.outerRadius}function d2(t){return t.startAngle}function h2(t){return t.endAngle}function p2(t){return t&&t.padAngle}function g2(t,e,r,n,i,s,o,a){var l=r-t,u=n-e,c=o-i,f=a-s,d=f*l-c*u;if(!(d*dO*O+j*j&&(F=U,L=k),{cx:F,cy:L,x01:-c,y01:-f,x11:F*(i/M-1),y11:L*(i/M-1)}}function r8(){var t=c2,e=f2,r=Ie(0),n=null,i=d2,s=h2,o=p2,a=null,l=zh(u);function u(){var c,f,d=+t.apply(this,arguments),h=+e.apply(this,arguments),g=i.apply(this,arguments)-ml,y=s.apply(this,arguments)-ml,b=dy(y-g),E=y>g;if(a||(a=c=l()),hht))a.moveTo(0,0);else if(b>La-ht)a.moveTo(h*Mn(g),h*Zt(g)),a.arc(0,0,h,g,y,!E),d>ht&&(a.moveTo(d*Mn(y),d*Zt(y)),a.arc(0,0,d,y,g,E));else{var _=g,v=y,T=g,M=y,I=b,$=b,F=o.apply(this,arguments)/2,L=F>ht&&(n?+n.apply(this,arguments):xi(d*d+h*h)),U=Rc(dy(h-d)/2,+r.apply(this,arguments)),k=U,W=U,D,O;if(L>ht){var j=hy(L/d*Zt(F)),Q=hy(L/h*Zt(F));(I-=j*2)>ht?(j*=E?1:-1,T+=j,M-=j):(I=0,T=M=(g+y)/2),($-=Q*2)>ht?(Q*=E?1:-1,_+=Q,v-=Q):($=0,_=v=(g+y)/2)}var H=h*Mn(_),K=h*Zt(_),X=d*Mn(M),Z=d*Zt(M);if(U>ht){var ce=h*Mn(v),pe=h*Zt(v),de=d*Mn(T),me=d*Zt(T),be;if(bht?W>ht?(D=oa(de,me,H,K,h,W,E),O=oa(ce,pe,X,Z,h,W,E),a.moveTo(D.cx+D.x01,D.cy+D.y01),Wht)||!(I>ht)?a.lineTo(X,Z):k>ht?(D=oa(X,Z,ce,pe,d,-k,E),O=oa(H,K,de,me,d,-k,E),a.lineTo(D.cx+D.x01,D.cy+D.y01),k=h;--g)a.point(v[g],T[g]);a.lineEnd(),a.areaEnd()}E&&(v[d]=+t(b,d,f),T[d]=+e(b,d,f),a.point(n?+n(b,d,f):v[d],r?+r(b,d,f):T[d]))}if(_)return a=null,_+""||null}function c(){return m2().defined(i).curve(o).context(s)}return u.x=function(f){return arguments.length?(t=typeof f=="function"?f:Ie(+f),n=null,u):t},u.x0=function(f){return arguments.length?(t=typeof f=="function"?f:Ie(+f),u):t},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ie(+f),u):n},u.y=function(f){return arguments.length?(e=typeof f=="function"?f:Ie(+f),r=null,u):e},u.y0=function(f){return arguments.length?(e=typeof f=="function"?f:Ie(+f),u):e},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ie(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(r)},u.lineX1=function(){return c().x(n).y(e)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Ie(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,s!=null&&(a=o(s)),u):o},u.context=function(f){return arguments.length?(f==null?s=a=null:a=o(s=f),u):s},u}function y2(t,e){return et?1:e>=t?0:NaN}function w2(t){return t}function i8(){var t=w2,e=y2,r=null,n=Ie(0),i=Ie(La),s=Ie(0);function o(a){var l,u=(a=vu(a)).length,c,f,d=0,h=new Array(u),g=new Array(u),y=+n.apply(this,arguments),b=Math.min(La,Math.max(-La,i.apply(this,arguments)-y)),E,_=Math.min(Math.abs(b)/u,s.apply(this,arguments)),v=_*(b<0?-1:1),T;for(l=0;l0&&(d+=T);for(e!=null?h.sort(function(M,I){return e(g[M],g[I])}):r!=null&&h.sort(function(M,I){return r(a[M],a[I])}),l=0,f=d?(b-u*v)/d:0;l0?T*f:0)+v,g[c]={data:a[c],index:l,value:T,startAngle:y,endAngle:E,padAngle:_};return g}return o.value=function(a){return arguments.length?(t=typeof a=="function"?a:Ie(+a),o):t},o.sortValues=function(a){return arguments.length?(e=a,r=null,o):e},o.sort=function(a){return arguments.length?(r=a,e=null,o):r},o.startAngle=function(a){return arguments.length?(n=typeof a=="function"?a:Ie(+a),o):n},o.endAngle=function(a){return arguments.length?(i=typeof a=="function"?a:Ie(+a),o):i},o.padAngle=function(a){return arguments.length?(s=typeof a=="function"?a:Ie(+a),o):s},o}function py(t,e){if((o=t.length)>1)for(var r=1,n,i,s=t[e[0]],o,a=s.length;r=0;)r[e]=e;return r}function b2(t,e){return t[e]}function _2(t){const e=[];return e.key=t,e}function s8(){var t=Ie([]),e=gy,r=py,n=b2;function i(s){var o=Array.from(t.apply(this,arguments),_2),a,l=o.length,u=-1,c;for(const f of s)for(a=0,++u;a{typeof t[r]>"u"?t[r]=e[r]:my(e[r])&&my(t[r])&&Object.keys(e[r]).length>0&&Hh(t[r],e[r])})}const xv={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function st(){const t=typeof document<"u"?document:{};return Hh(t,xv),t}const v2={document:xv,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return typeof setTimeout>"u"?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){typeof setTimeout>"u"||clearTimeout(t)}};function je(){const t=typeof window<"u"?window:{};return Hh(t,v2),t}function E2(t){const e=t;Object.keys(e).forEach(r=>{try{e[r]=null}catch{}try{delete e[r]}catch{}})}function Qn(t,e){return e===void 0&&(e=0),setTimeout(t,e)}function Ct(){return Date.now()}function S2(t){const e=je();let r;return e.getComputedStyle&&(r=e.getComputedStyle(t,null)),!r&&t.currentStyle&&(r=t.currentStyle),r||(r=t.style),r}function rd(t,e){e===void 0&&(e="x");const r=je();let n,i,s;const o=S2(t);return r.WebKitCSSMatrix?(i=o.transform||o.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new r.WebKitCSSMatrix(i==="none"?"":i)):(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=s.toString().split(",")),e==="x"&&(r.WebKitCSSMatrix?i=s.m41:n.length===16?i=parseFloat(n[12]):i=parseFloat(n[4])),e==="y"&&(r.WebKitCSSMatrix?i=s.m42:n.length===16?i=parseFloat(n[13]):i=parseFloat(n[5])),i||0}function Fs(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"}function x2(t){return typeof window<"u"&&typeof window.HTMLElement<"u"?t instanceof HTMLElement:t&&(t.nodeType===1||t.nodeType===11)}function vt(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let r=1;re.indexOf(s)<0);for(let s=0,o=i.length;ss?"next":"prev",c=(d,h)=>u==="next"&&d>=h||u==="prev"&&d<=h,f=()=>{a=new Date().getTime(),o===null&&(o=a);const d=Math.max(Math.min((a-o)/l,1),0),h=.5-Math.cos(d*Math.PI)/2;let g=s+h*(r-s);if(c(g,r)&&(g=r),e.wrapperEl.scrollTo({[n]:g}),c(g,r)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:g})}),i.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=i.requestAnimationFrame(f)};f()}function ai(t){return t.querySelector(".swiper-slide-transform")||t.shadowRoot&&t.shadowRoot.querySelector(".swiper-slide-transform")||t}function Qe(t,e){return e===void 0&&(e=""),[...t.children].filter(r=>r.matches(e))}function Vt(t,e){e===void 0&&(e=[]);const r=document.createElement(t);return r.classList.add(...Array.isArray(e)?e:[e]),r}function yl(t){const e=je(),r=st(),n=t.getBoundingClientRect(),i=r.body,s=t.clientTop||i.clientTop||0,o=t.clientLeft||i.clientLeft||0,a=t===e?e.scrollY:t.scrollTop,l=t===e?e.scrollX:t.scrollLeft;return{top:n.top+a-s,left:n.left+l-o}}function T2(t,e){const r=[];for(;t.previousElementSibling;){const n=t.previousElementSibling;e?n.matches(e)&&r.push(n):r.push(n),t=n}return r}function A2(t,e){const r=[];for(;t.nextElementSibling;){const n=t.nextElementSibling;e?n.matches(e)&&r.push(n):r.push(n),t=n}return r}function sn(t,e){return je().getComputedStyle(t,null).getPropertyValue(e)}function mo(t){let e=t,r;if(e){for(r=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(r+=1);return r}}function Hn(t,e){const r=[];let n=t.parentElement;for(;n;)e?n.matches(e)&&r.push(n):r.push(n),n=n.parentElement;return r}function Qs(t,e){function r(n){n.target===t&&(e.call(t,n),t.removeEventListener("transitionend",r))}e&&t.addEventListener("transitionend",r)}function nd(t,e,r){const n=je();return r?t[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(t,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom")):t.offsetWidth}let Lc;function M2(){const t=je(),e=st();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}function Av(){return Lc||(Lc=M2()),Lc}let Nc;function C2(t){let{userAgent:e}=t===void 0?{}:t;const r=Av(),n=je(),i=n.navigator.platform,s=e||n.navigator.userAgent,o={ios:!1,android:!1},a=n.screen.width,l=n.screen.height,u=s.match(/(Android);?[\s\/]+([\d.]+)?/);let c=s.match(/(iPad).*OS\s([\d_]+)/);const f=s.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),h=i==="Win32";let g=i==="MacIntel";const y=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&g&&r.touch&&y.indexOf(`${a}x${l}`)>=0&&(c=s.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),g=!1),u&&!h&&(o.os="android",o.android=!0),(c||d||f)&&(o.os="ios",o.ios=!0),o}function I2(t){return t===void 0&&(t={}),Nc||(Nc=C2(t)),Nc}let $c;function O2(){const t=je();let e=!1;function r(){const n=t.navigator.userAgent.toLowerCase();return n.indexOf("safari")>=0&&n.indexOf("chrome")<0&&n.indexOf("android")<0}if(r()){const n=String(t.navigator.userAgent);if(n.includes("Version/")){const[i,s]=n.split("Version/")[1].split(" ")[0].split(".").map(o=>Number(o));e=i<16||i===16&&s<2}}return{isSafari:e||r(),needPerspectiveFix:e,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}function P2(){return $c||($c=O2()),$c}function R2(t){let{swiper:e,on:r,emit:n}=t;const i=je();let s=null,o=null;const a=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(s=new ResizeObserver(f=>{o=i.requestAnimationFrame(()=>{const{width:d,height:h}=e;let g=d,y=h;f.forEach(b=>{let{contentBoxSize:E,contentRect:_,target:v}=b;v&&v!==e.el||(g=_?_.width:(E[0]||E).inlineSize,y=_?_.height:(E[0]||E).blockSize)}),(g!==d||y!==h)&&a()})}),s.observe(e.el))},u=()=>{o&&i.cancelAnimationFrame(o),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};r("init",()=>{if(e.params.resizeObserver&&typeof i.ResizeObserver<"u"){l();return}i.addEventListener("resize",a),i.addEventListener("orientationchange",c)}),r("destroy",()=>{u(),i.removeEventListener("resize",a),i.removeEventListener("orientationchange",c)})}function L2(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s=[],o=je(),a=function(c,f){f===void 0&&(f={});const d=o.MutationObserver||o.WebkitMutationObserver,h=new d(g=>{if(e.__preventObserver__)return;if(g.length===1){i("observerUpdate",g[0]);return}const y=function(){i("observerUpdate",g[0])};o.requestAnimationFrame?o.requestAnimationFrame(y):o.setTimeout(y,0)});h.observe(c,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:typeof f.childList>"u"?!0:f.childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),s.push(h)},l=()=>{if(e.params.observer){if(e.params.observeParents){const c=Hn(e.hostEl);for(let f=0;f{s.forEach(c=>{c.disconnect()}),s.splice(0,s.length)};r({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",l),n("destroy",u)}var N2={on(t,e,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const i=r?"unshift":"push";return t.split(" ").forEach(s=>{n.eventsListeners[s]||(n.eventsListeners[s]=[]),n.eventsListeners[s][i](e)}),n},once(t,e,r){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function i(){n.off(t,i),i.__emitterProxy&&delete i.__emitterProxy;for(var s=arguments.length,o=new Array(s),a=0;a=0&&e.eventsAnyListeners.splice(r,1),e},off(t,e){const r=this;return!r.eventsListeners||r.destroyed||!r.eventsListeners||t.split(" ").forEach(n=>{typeof e>"u"?r.eventsListeners[n]=[]:r.eventsListeners[n]&&r.eventsListeners[n].forEach((i,s)=>{(i===e||i.__emitterProxy&&i.__emitterProxy===e)&&r.eventsListeners[n].splice(s,1)})}),r},emit(){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let e,r,n;for(var i=arguments.length,s=new Array(i),o=0;o{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(u=>{u.apply(n,[l,...r])}),t.eventsListeners&&t.eventsListeners[l]&&t.eventsListeners[l].forEach(u=>{u.apply(n,r)})}),t}};function $2(){const t=this;let e,r;const n=t.el;typeof t.params.width<"u"&&t.params.width!==null?e=t.params.width:e=n.clientWidth,typeof t.params.height<"u"&&t.params.height!==null?r=t.params.height:r=n.clientHeight,!(e===0&&t.isHorizontal()||r===0&&t.isVertical())&&(e=e-parseInt(sn(n,"padding-left")||0,10)-parseInt(sn(n,"padding-right")||0,10),r=r-parseInt(sn(n,"padding-top")||0,10)-parseInt(sn(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(r)&&(r=0),Object.assign(t,{width:e,height:r,size:t.isHorizontal()?e:r}))}function k2(){const t=this;function e(k){return t.isHorizontal()?k:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[k]}function r(k,W){return parseFloat(k.getPropertyValue(e(W))||0)}const n=t.params,{wrapperEl:i,slidesEl:s,size:o,rtlTranslate:a,wrongRTL:l}=t,u=t.virtual&&n.virtual.enabled,c=u?t.virtual.slides.length:t.slides.length,f=Qe(s,`.${t.params.slideClass}, swiper-slide`),d=u?t.virtual.slides.length:f.length;let h=[];const g=[],y=[];let b=n.slidesOffsetBefore;typeof b=="function"&&(b=n.slidesOffsetBefore.call(t));let E=n.slidesOffsetAfter;typeof E=="function"&&(E=n.slidesOffsetAfter.call(t));const _=t.snapGrid.length,v=t.slidesGrid.length;let T=n.spaceBetween,M=-b,I=0,$=0;if(typeof o>"u")return;typeof T=="string"&&T.indexOf("%")>=0?T=parseFloat(T.replace("%",""))/100*o:typeof T=="string"&&(T=parseFloat(T)),t.virtualSize=-T,f.forEach(k=>{a?k.style.marginLeft="":k.style.marginRight="",k.style.marginBottom="",k.style.marginTop=""}),n.centeredSlides&&n.cssMode&&(Us(i,"--swiper-centered-offset-before",""),Us(i,"--swiper-centered-offset-after",""));const F=n.grid&&n.grid.rows>1&&t.grid;F&&t.grid.initSlides(d);let L;const U=n.slidesPerView==="auto"&&n.breakpoints&&Object.keys(n.breakpoints).filter(k=>typeof n.breakpoints[k].slidesPerView<"u").length>0;for(let k=0;k1&&h.push(t.virtualSize-o)}if(u&&n.loop){const k=y[0]+T;if(n.slidesPerGroup>1){const W=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/n.slidesPerGroup),D=k*n.slidesPerGroup;for(let O=0;O!n.cssMode||n.loop?!0:D!==f.length-1).forEach(W=>{W.style[k]=`${T}px`})}if(n.centeredSlides&&n.centeredSlidesBounds){let k=0;y.forEach(D=>{k+=D+(T||0)}),k-=T;const W=k-o;h=h.map(D=>D<=0?-b:D>W?W+E:D)}if(n.centerInsufficientSlides){let k=0;if(y.forEach(W=>{k+=W+(T||0)}),k-=T,k{h[O]=D-W}),g.forEach((D,O)=>{g[O]=D+W})}}if(Object.assign(t,{slides:f,snapGrid:h,slidesGrid:g,slidesSizesGrid:y}),n.centeredSlides&&n.cssMode&&!n.centeredSlidesBounds){Us(i,"--swiper-centered-offset-before",`${-h[0]}px`),Us(i,"--swiper-centered-offset-after",`${t.size/2-y[y.length-1]/2}px`);const k=-t.snapGrid[0],W=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(D=>D+k),t.slidesGrid=t.slidesGrid.map(D=>D+W)}if(d!==c&&t.emit("slidesLengthChange"),h.length!==_&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),g.length!==v&&t.emit("slidesGridLengthChange"),n.watchSlidesProgress&&t.updateSlidesOffset(),!u&&!n.cssMode&&(n.effect==="slide"||n.effect==="fade")){const k=`${n.containerModifierClass}backface-hidden`,W=t.el.classList.contains(k);d<=n.maxBackfaceHiddenSlides?W||t.el.classList.add(k):W&&t.el.classList.remove(k)}}function D2(t){const e=this,r=[],n=e.virtual&&e.params.virtual.enabled;let i=0,s;typeof t=="number"?e.setTransition(t):t===!0&&e.setTransition(e.params.speed);const o=a=>n?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{r.push(a)});else for(s=0;se.slides.length&&!n)break;r.push(o(a))}else r.push(o(e.activeIndex));for(s=0;si?a:i}(i||i===0)&&(e.wrapperEl.style.height=`${i}px`)}function B2(){const t=this,e=t.slides,r=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let n=0;n"u"&&e.updateSlidesOffset();let o=-t;i&&(o=t),n.forEach(l=>{l.classList.remove(r.slideVisibleClass)}),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=r.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l=0&&h1&&g<=e.size||h<=0&&g>=e.size)&&(e.visibleSlides.push(u),e.visibleSlidesIndexes.push(l),n[l].classList.add(r.slideVisibleClass)),u.progress=i?-f:f,u.originalProgress=i?-d:d}}function U2(t){const e=this;if(typeof t>"u"){const c=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*c||0}const r=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:i,isBeginning:s,isEnd:o,progressLoop:a}=e;const l=s,u=o;if(n===0)i=0,s=!0,o=!0;else{i=(t-e.minTranslate())/n;const c=Math.abs(t-e.minTranslate())<1,f=Math.abs(t-e.maxTranslate())<1;s=c||i<=0,o=f||i>=1,c&&(i=0),f&&(i=1)}if(r.loop){const c=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),d=e.slidesGrid[c],h=e.slidesGrid[f],g=e.slidesGrid[e.slidesGrid.length-1],y=Math.abs(t);y>=d?a=(y-d)/g:a=(y+g-h)/g,a>1&&(a-=1)}Object.assign(e,{progress:i,progressLoop:a,isBeginning:s,isEnd:o}),(r.watchSlidesProgress||r.centeredSlides&&r.autoHeight)&&e.updateSlidesProgress(t),s&&!l&&e.emit("reachBeginning toEdge"),o&&!u&&e.emit("reachEnd toEdge"),(l&&!s||u&&!o)&&e.emit("fromEdge"),e.emit("progress",i)}function j2(){const t=this,{slides:e,params:r,slidesEl:n,activeIndex:i}=t,s=t.virtual&&r.virtual.enabled,o=l=>Qe(n,`.${r.slideClass}${l}, swiper-slide${l}`)[0];e.forEach(l=>{l.classList.remove(r.slideActiveClass,r.slideNextClass,r.slidePrevClass)});let a;if(s)if(r.loop){let l=i-t.virtual.slidesBefore;l<0&&(l=t.virtual.slides.length+l),l>=t.virtual.slides.length&&(l-=t.virtual.slides.length),a=o(`[data-swiper-slide-index="${l}"]`)}else a=o(`[data-swiper-slide-index="${i}"]`);else a=e[i];if(a){a.classList.add(r.slideActiveClass);let l=A2(a,`.${r.slideClass}, swiper-slide`)[0];r.loop&&!l&&(l=e[0]),l&&l.classList.add(r.slideNextClass);let u=T2(a,`.${r.slideClass}, swiper-slide`)[0];r.loop&&!u===0&&(u=e[e.length-1]),u&&u.classList.add(r.slidePrevClass)}t.emitSlidesClasses()}const Na=(t,e)=>{if(!t||t.destroyed||!t.params)return;const r=()=>t.isElement?"swiper-slide":`.${t.params.slideClass}`,n=e.closest(r());if(n){let i=n.querySelector(`.${t.params.lazyPreloaderClass}`);!i&&t.isElement&&(n.shadowRoot?i=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(i=n.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),i&&i.remove())})),i&&i.remove()}},kc=(t,e)=>{if(!t.slides[e])return;const r=t.slides[e].querySelector('[loading="lazy"]');r&&r.removeAttribute("loading")},id=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const r=t.slides.length;if(!r||!e||e<0)return;e=Math.min(e,r);const n=t.params.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),i=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const o=i,a=[o-e];a.push(...Array.from({length:e}).map((l,u)=>o+n+u)),t.slides.forEach((l,u)=>{a.includes(l.column)&&kc(t,u)});return}const s=i+n-1;if(t.params.rewind||t.params.loop)for(let o=i-e;o<=s+e;o+=1){const a=(o%r+r)%r;(as)&&kc(t,a)}else for(let o=Math.max(i-e,0);o<=Math.min(s+e,r-1);o+=1)o!==i&&(o>s||o=e[s]&&n=e[s]&&n=e[s]&&(i=s);return r.normalizeSlideIndex&&(i<0||typeof i>"u")&&(i=0),i}function H2(t){const e=this,r=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:i,activeIndex:s,realIndex:o,snapIndex:a}=e;let l=t,u;const c=d=>{let h=d-e.virtual.slidesBefore;return h<0&&(h=e.virtual.slides.length+h),h>=e.virtual.slides.length&&(h-=e.virtual.slides.length),h};if(typeof l>"u"&&(l=z2(e)),n.indexOf(r)>=0)u=n.indexOf(r);else{const d=Math.min(i.slidesPerGroupSkip,l);u=d+Math.floor((l-d)/i.slidesPerGroup)}if(u>=n.length&&(u=n.length-1),l===s){u!==a&&(e.snapIndex=u,e.emit("snapIndexChange")),e.params.loop&&e.virtual&&e.params.virtual.enabled&&(e.realIndex=c(l));return}let f;e.virtual&&i.virtual.enabled&&i.loop?f=c(l):e.slides[l]?f=parseInt(e.slides[l].getAttribute("data-swiper-slide-index")||l,10):f=l,Object.assign(e,{previousSnapIndex:a,snapIndex:u,previousRealIndex:o,realIndex:f,previousIndex:s,activeIndex:l}),e.initialized&&id(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(o!==f&&e.emit("realIndexChange"),e.emit("slideChange"))}function W2(t,e){const r=this,n=r.params;let i=t.closest(`.${n.slideClass}, swiper-slide`);!i&&r.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(a=>{!i&&a.matches&&a.matches(`.${n.slideClass}, swiper-slide`)&&(i=a)});let s=!1,o;if(i){for(let a=0;al?c=l:n&&to?a="next":s=l.length&&(b=l.length-1);const E=-l[b];if(a.normalizeSlideIndex)for(let v=0;v=M&&T=M&&T=M&&(o=v)}if(s.initialized&&o!==f&&(!s.allowSlideNext&&(d?E>s.translate&&E>s.minTranslate():Es.translate&&E>s.maxTranslate()&&(f||0)!==o))return!1;o!==(c||0)&&r&&s.emit("beforeSlideChangeStart"),s.updateProgress(E);let _;if(o>f?_="next":o0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{h[v?"scrollLeft":"scrollTop"]=T})):h[v?"scrollLeft":"scrollTop"]=T,M&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1})}else{if(!s.support.smoothScroll)return Tv({swiper:s,targetPosition:T,side:v?"left":"top"}),!0;h.scrollTo({[v?"left":"top"]:T,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(E),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,n),s.transitionStart(r,_),e===0?s.transitionEnd(r,_):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(T){!s||s.destroyed||T.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(r,_))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function nF(t,e,r,n){t===void 0&&(t=0),e===void 0&&(e=this.params.speed),r===void 0&&(r=!0),typeof t=="string"&&(t=parseInt(t,10));const i=this;let s=t;return i.params.loop&&(i.virtual&&i.params.virtual.enabled?s=s+i.virtual.slidesBefore:s=i.getSlideIndexByData(s)),i.slideTo(s,e,r,n)}function iF(t,e,r){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this,{enabled:i,params:s,animating:o}=n;if(!i)return n;let a=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(a=Math.max(n.slidesPerViewDynamic("current",!0),1));const l=n.activeIndex{n.slideTo(n.activeIndex+l,t,e,r)}),!0}return s.rewind&&n.isEnd?n.slideTo(0,t,e,r):n.slideTo(n.activeIndex+l,t,e,r)}function sF(t,e,r){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this,{params:i,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:u}=n;if(!l)return n;const c=n.virtual&&i.virtual.enabled;if(i.loop){if(u&&!c&&i.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const f=a?n.translate:-n.translate;function d(E){return E<0?-Math.floor(Math.abs(E)):Math.floor(E)}const h=d(f),g=s.map(E=>d(E));let y=s[g.indexOf(h)-1];if(typeof y>"u"&&i.cssMode){let E;s.forEach((_,v)=>{h>=_&&(E=v)}),typeof E<"u"&&(y=s[E>0?E-1:E])}let b=0;if(typeof y<"u"&&(b=o.indexOf(y),b<0&&(b=n.activeIndex-1),i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(b=b-n.slidesPerViewDynamic("previous",!0)+1,b=Math.max(b,0))),i.rewind&&n.isBeginning){const E=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(E,t,e,r)}else if(i.loop&&n.activeIndex===0&&i.cssMode)return requestAnimationFrame(()=>{n.slideTo(b,t,e,r)}),!0;return n.slideTo(b,t,e,r)}function oF(t,e,r){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0);const n=this;return n.slideTo(n.activeIndex,t,e,r)}function aF(t,e,r,n){t===void 0&&(t=this.params.speed),e===void 0&&(e=!0),n===void 0&&(n=.5);const i=this;let s=i.activeIndex;const o=Math.min(i.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/i.params.slidesPerGroup),l=i.rtlTranslate?i.translate:-i.translate;if(l>=i.snapGrid[a]){const u=i.snapGrid[a],c=i.snapGrid[a+1];l-u>(c-u)*n&&(s+=i.params.slidesPerGroup)}else{const u=i.snapGrid[a-1],c=i.snapGrid[a];l-u<=(c-u)*n&&(s-=i.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,i.slidesGrid.length-1),i.slideTo(s,t,e,r)}function lF(){const t=this,{params:e,slidesEl:r}=t,n=e.slidesPerView==="auto"?t.slidesPerViewDynamic():e.slidesPerView;let i=t.clickedIndex,s;const o=t.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(t.animating)return;s=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?it.slides.length-t.loopedSlides+n/2?(t.loopFix(),i=t.getSlideIndex(Qe(r,`${o}[data-swiper-slide-index="${s}"]`)[0]),Qn(()=>{t.slideTo(i)})):t.slideTo(i):i>t.slides.length-n?(t.loopFix(),i=t.getSlideIndex(Qe(r,`${o}[data-swiper-slide-index="${s}"]`)[0]),Qn(()=>{t.slideTo(i)})):t.slideTo(i)}else t.slideTo(i)}var uF={slideTo:rF,slideToLoop:nF,slideNext:iF,slidePrev:sF,slideReset:oF,slideToClosest:aF,slideToClickedSlide:lF};function cF(t){const e=this,{params:r,slidesEl:n}=e;if(!r.loop||e.virtual&&e.params.virtual.enabled)return;Qe(n,`.${r.slideClass}, swiper-slide`).forEach((s,o)=>{s.setAttribute("data-swiper-slide-index",o)}),e.loopFix({slideRealIndex:t,direction:r.centeredSlides?void 0:"next"})}function fF(t){let{slideRealIndex:e,slideTo:r=!0,direction:n,setTranslate:i,activeSlideIndex:s,byController:o,byMousewheel:a}=t===void 0?{}:t;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:u,allowSlidePrev:c,allowSlideNext:f,slidesEl:d,params:h}=l;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&h.virtual.enabled){r&&(!h.centeredSlides&&l.snapIndex===0?l.slideTo(l.virtual.slides.length,0,!1,!0):h.centeredSlides&&l.snapIndex"u"?s=l.getSlideIndex(l.slides.filter($=>$.classList.contains(h.slideActiveClass))[0]):_=s;const v=n==="next"||!n,T=n==="prev"||!n;let M=0,I=0;if(sl.slides.length-y*2){I=Math.max(s-(l.slides.length-y*2),h.slidesPerGroup);for(let $=0;${l.slides[$].swiperLoopMoveDOM=!0,d.prepend(l.slides[$]),l.slides[$].swiperLoopMoveDOM=!1}),v&&E.forEach($=>{l.slides[$].swiperLoopMoveDOM=!0,d.append(l.slides[$]),l.slides[$].swiperLoopMoveDOM=!1}),l.recalcSlides(),h.slidesPerView==="auto"&&l.updateSlides(),h.watchSlidesProgress&&l.updateSlidesOffset(),r){if(b.length>0&&T)if(typeof e>"u"){const $=l.slidesGrid[_],L=l.slidesGrid[_+M]-$;a?l.setTranslate(l.translate-L):(l.slideTo(_+M,0,!1,!0),i&&(l.touches[l.isHorizontal()?"startX":"startY"]+=L,l.touchEventsData.currentTranslate=l.translate))}else i&&(l.slideToLoop(e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate);else if(E.length>0&&v)if(typeof e>"u"){const $=l.slidesGrid[_],L=l.slidesGrid[_-I]-$;a?l.setTranslate(l.translate-L):(l.slideTo(_-I,0,!1,!0),i&&(l.touches[l.isHorizontal()?"startX":"startY"]+=L,l.touchEventsData.currentTranslate=l.translate))}else l.slideToLoop(e,0,!1,!0)}if(l.allowSlidePrev=c,l.allowSlideNext=f,l.controller&&l.controller.control&&!o){const $={slideRealIndex:e,direction:n,setTranslate:i,activeSlideIndex:s,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(F=>{!F.destroyed&&F.params.loop&&F.loopFix({...$,slideTo:F.params.slidesPerView===h.slidesPerView?r:!1})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...$,slideTo:l.controller.control.params.slidesPerView===h.slidesPerView?r:!1})}l.emit("loopFix")}function dF(){const t=this,{params:e,slidesEl:r}=t;if(!e.loop||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const n=[];t.slides.forEach(i=>{const s=typeof i.swiperSlideIndex>"u"?i.getAttribute("data-swiper-slide-index")*1:i.swiperSlideIndex;n[s]=i}),t.slides.forEach(i=>{i.removeAttribute("data-swiper-slide-index")}),n.forEach(i=>{r.append(i)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}var hF={loopCreate:cF,loopFix:fF,loopDestroy:dF};function pF(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const r=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),r.style.cursor="move",r.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function gF(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t[t.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}var mF={setGrabCursor:pF,unsetGrabCursor:gF};function yF(t,e){e===void 0&&(e=this);function r(n){if(!n||n===st()||n===je())return null;n.assignedSlot&&(n=n.assignedSlot);const i=n.closest(t);return!i&&!n.getRootNode?null:i||r(n.getRootNode().host)}return r(e)}function wF(t){const e=this,r=st(),n=je(),i=e.touchEventsData;i.evCache.push(t);const{params:s,touches:o,enabled:a}=e;if(!a||!s.simulateTouch&&t.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let l=t;l.originalEvent&&(l=l.originalEvent);let u=l.target;if(s.touchEventsTarget==="wrapper"&&!e.wrapperEl.contains(u)||"which"in l&&l.which===3||"button"in l&&l.button>0||i.isTouched&&i.isMoved)return;const c=!!s.noSwipingClass&&s.noSwipingClass!=="",f=t.composedPath?t.composedPath():t.path;c&&l.target&&l.target.shadowRoot&&f&&(u=f[0]);const d=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,h=!!(l.target&&l.target.shadowRoot);if(s.noSwiping&&(h?yF(d,u):u.closest(d))){e.allowClick=!0;return}if(s.swipeHandler&&!u.closest(s.swipeHandler))return;o.currentX=l.pageX,o.currentY=l.pageY;const g=o.currentX,y=o.currentY,b=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,E=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(b&&(g<=E||g>=n.innerWidth-E))if(b==="prevent")t.preventDefault();else return;Object.assign(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=g,o.startY=y,i.touchStartTime=Ct(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(i.allowThresholdMove=!1);let _=!0;u.matches(i.focusableElements)&&(_=!1,u.nodeName==="SELECT"&&(i.isTouched=!1)),r.activeElement&&r.activeElement.matches(i.focusableElements)&&r.activeElement!==u&&r.activeElement.blur();const v=_&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||v)&&!u.isContentEditable&&l.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",l)}function bF(t){const e=st(),r=this,n=r.touchEventsData,{params:i,touches:s,rtlTranslate:o,enabled:a}=r;if(!a||!i.simulateTouch&&t.pointerType==="mouse")return;let l=t;if(l.originalEvent&&(l=l.originalEvent),!n.isTouched){n.startMoving&&n.isScrolling&&r.emit("touchMoveOpposite",l);return}const u=n.evCache.findIndex($=>$.pointerId===l.pointerId);u>=0&&(n.evCache[u]=l);const c=n.evCache.length>1?n.evCache[0]:l,f=c.pageX,d=c.pageY;if(l.preventedByNestedSwiper){s.startX=f,s.startY=d;return}if(!r.allowTouchMove){l.target.matches(n.focusableElements)||(r.allowClick=!1),n.isTouched&&(Object.assign(s,{startX:f,startY:d,prevX:r.touches.currentX,prevY:r.touches.currentY,currentX:f,currentY:d}),n.touchStartTime=Ct());return}if(i.touchReleaseOnEdges&&!i.loop){if(r.isVertical()){if(ds.startY&&r.translate>=r.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else if(fs.startX&&r.translate>=r.minTranslate())return}if(e.activeElement&&l.target===e.activeElement&&l.target.matches(n.focusableElements)){n.isMoved=!0,r.allowClick=!1;return}if(n.allowTouchCallbacks&&r.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;s.currentX=f,s.currentY=d;const h=s.currentX-s.startX,g=s.currentY-s.startY;if(r.params.threshold&&Math.sqrt(h**2+g**2)"u"){let $;r.isHorizontal()&&s.currentY===s.startY||r.isVertical()&&s.currentX===s.startX?n.isScrolling=!1:h*h+g*g>=25&&($=Math.atan2(Math.abs(g),Math.abs(h))*180/Math.PI,n.isScrolling=r.isHorizontal()?$>i.touchAngle:90-$>i.touchAngle)}if(n.isScrolling&&r.emit("touchMoveOpposite",l),typeof n.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(n.startMoving=!0),n.isScrolling||r.zoom&&r.params.zoom&&r.params.zoom.enabled&&n.evCache.length>1){n.isTouched=!1;return}if(!n.startMoving)return;r.allowClick=!1,!i.cssMode&&l.cancelable&&l.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&l.stopPropagation();let y=r.isHorizontal()?h:g,b=r.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;i.oneWayMovement&&(y=Math.abs(y)*(o?1:-1),b=Math.abs(b)*(o?1:-1)),s.diff=y,y*=i.touchRatio,o&&(y=-y,b=-b);const E=r.touchesDirection;r.swipeDirection=y>0?"prev":"next",r.touchesDirection=b>0?"prev":"next";const _=r.params.loop&&!i.cssMode,v=r.swipeDirection==="next"&&r.allowSlideNext||r.swipeDirection==="prev"&&r.allowSlidePrev;if(!n.isMoved){if(_&&v&&r.loopFix({direction:r.swipeDirection}),n.startTranslate=r.getTranslate(),r.setTransition(0),r.animating){const $=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});r.wrapperEl.dispatchEvent($)}n.allowMomentumBounce=!1,i.grabCursor&&(r.allowSlideNext===!0||r.allowSlidePrev===!0)&&r.setGrabCursor(!0),r.emit("sliderFirstMove",l)}let T;n.isMoved&&E!==r.touchesDirection&&_&&v&&Math.abs(y)>=1&&(r.loopFix({direction:r.swipeDirection,setTranslate:!0}),T=!0),r.emit("sliderMove",l),n.isMoved=!0,n.currentTranslate=y+n.startTranslate;let M=!0,I=i.resistanceRatio;if(i.touchReleaseOnEdges&&(I=0),y>0?(_&&v&&!T&&n.currentTranslate>(i.centeredSlides?r.minTranslate()-r.size/2:r.minTranslate())&&r.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>r.minTranslate()&&(M=!1,i.resistance&&(n.currentTranslate=r.minTranslate()-1+(-r.minTranslate()+n.startTranslate+y)**I))):y<0&&(_&&v&&!T&&n.currentTranslate<(i.centeredSlides?r.maxTranslate()+r.size/2:r.maxTranslate())&&r.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:r.slides.length-(i.slidesPerView==="auto"?r.slidesPerViewDynamic():Math.ceil(parseFloat(i.slidesPerView,10)))}),n.currentTranslaten.startTranslate&&(n.currentTranslate=n.startTranslate),!r.allowSlidePrev&&!r.allowSlideNext&&(n.currentTranslate=n.startTranslate),i.threshold>0)if(Math.abs(y)>i.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,n.currentTranslate=n.startTranslate,s.diff=r.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{n.currentTranslate=n.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode&&i.freeMode.enabled&&r.freeMode||i.watchSlidesProgress)&&(r.updateActiveIndex(),r.updateSlidesClasses()),i.freeMode&&i.freeMode.enabled&&r.freeMode&&r.freeMode.onTouchMove(),r.updateProgress(n.currentTranslate),r.setTranslate(n.currentTranslate))}function _F(t){const e=this,r=e.touchEventsData,n=r.evCache.findIndex(v=>v.pointerId===t.pointerId);if(n>=0&&r.evCache.splice(n,1),["pointercancel","pointerout","pointerleave","contextmenu"].includes(t.type)&&!(["pointercancel","contextmenu"].includes(t.type)&&(e.browser.isSafari||e.browser.isWebView)))return;const{params:i,touches:s,rtlTranslate:o,slidesGrid:a,enabled:l}=e;if(!l||!i.simulateTouch&&t.pointerType==="mouse")return;let u=t;if(u.originalEvent&&(u=u.originalEvent),r.allowTouchCallbacks&&e.emit("touchEnd",u),r.allowTouchCallbacks=!1,!r.isTouched){r.isMoved&&i.grabCursor&&e.setGrabCursor(!1),r.isMoved=!1,r.startMoving=!1;return}i.grabCursor&&r.isMoved&&r.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const c=Ct(),f=c-r.touchStartTime;if(e.allowClick){const v=u.path||u.composedPath&&u.composedPath();e.updateClickedSlide(v&&v[0]||u.target,v),e.emit("tap click",u),f<300&&c-r.lastClickTime<300&&e.emit("doubleTap doubleClick",u)}if(r.lastClickTime=Ct(),Qn(()=>{e.destroyed||(e.allowClick=!0)}),!r.isTouched||!r.isMoved||!e.swipeDirection||s.diff===0||r.currentTranslate===r.startTranslate){r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;return}r.isTouched=!1,r.isMoved=!1,r.startMoving=!1;let d;if(i.followFinger?d=o?e.translate:-e.translate:d=-r.currentTranslate,i.cssMode)return;if(i.freeMode&&i.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:d});return}let h=0,g=e.slidesSizesGrid[0];for(let v=0;v=a[v]&&d=a[v]&&(h=v,g=a[a.length-1]-a[a.length-2])}let y=null,b=null;i.rewind&&(e.isBeginning?b=i.virtual&&i.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(y=0));const E=(d-a[h])/g,_=hi.longSwipesMs){if(!i.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(E>=i.longSwipesRatio?e.slideTo(i.rewind&&e.isEnd?y:h+_):e.slideTo(h)),e.swipeDirection==="prev"&&(E>1-i.longSwipesRatio?e.slideTo(h+_):b!==null&&E<0&&Math.abs(E)>i.longSwipesRatio?e.slideTo(b):e.slideTo(h))}else{if(!i.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(u.target===e.navigation.nextEl||u.target===e.navigation.prevEl)?u.target===e.navigation.nextEl?e.slideTo(h+_):e.slideTo(h):(e.swipeDirection==="next"&&e.slideTo(y!==null?y:h+_),e.swipeDirection==="prev"&&e.slideTo(b!==null?b:h))}}function yy(){const t=this,{params:e,el:r}=t;if(r&&r.offsetWidth===0)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:i,snapGrid:s}=t,o=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const a=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides&&!a?t.slideTo(t.slides.length-1,0,!1,!0):t.params.loop&&!o?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=i,t.allowSlideNext=n,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function vF(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function EF(){const t=this,{wrapperEl:e,rtlTranslate:r,enabled:n}=t;if(!n)return;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,t.translate===0&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();let i;const s=t.maxTranslate()-t.minTranslate();s===0?i=0:i=(t.translate-t.minTranslate())/s,i!==t.progress&&t.updateProgress(r?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function SF(t){const e=this;Na(e,t.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}let wy=!1;function xF(){}const Cv=(t,e)=>{const r=st(),{params:n,el:i,wrapperEl:s,device:o}=t,a=!!n.nested,l=e==="on"?"addEventListener":"removeEventListener",u=e;i[l]("pointerdown",t.onTouchStart,{passive:!1}),r[l]("pointermove",t.onTouchMove,{passive:!1,capture:a}),r[l]("pointerup",t.onTouchEnd,{passive:!0}),r[l]("pointercancel",t.onTouchEnd,{passive:!0}),r[l]("pointerout",t.onTouchEnd,{passive:!0}),r[l]("pointerleave",t.onTouchEnd,{passive:!0}),r[l]("contextmenu",t.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&i[l]("click",t.onClick,!0),n.cssMode&&s[l]("scroll",t.onScroll),n.updateOnWindowResize?t[u](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",yy,!0):t[u]("observerUpdate",yy,!0),i[l]("load",t.onLoad,{capture:!0})};function TF(){const t=this,e=st(),{params:r}=t;t.onTouchStart=wF.bind(t),t.onTouchMove=bF.bind(t),t.onTouchEnd=_F.bind(t),r.cssMode&&(t.onScroll=EF.bind(t)),t.onClick=vF.bind(t),t.onLoad=SF.bind(t),wy||(e.addEventListener("touchstart",xF),wy=!0),Cv(t,"on")}function AF(){Cv(this,"off")}var MF={attachEvents:TF,detachEvents:AF};const by=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;function CF(){const t=this,{realIndex:e,initialized:r,params:n,el:i}=t,s=n.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const o=t.getBreakpoint(s,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const l=(o in s?s[o]:void 0)||t.originalParams,u=by(t,n),c=by(t,l),f=n.enabled;u&&!c?(i.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!u&&c&&(i.classList.add(`${n.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&n.grid.fill==="column")&&i.classList.add(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(E=>{if(typeof l[E]>"u")return;const _=n[E]&&n[E].enabled,v=l[E]&&l[E].enabled;_&&!v&&t[E].disable(),!_&&v&&t[E].enable()});const d=l.direction&&l.direction!==n.direction,h=n.loop&&(l.slidesPerView!==n.slidesPerView||d),g=n.loop;d&&r&&t.changeDirection(),vt(t.params,l);const y=t.params.enabled,b=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!y?t.disable():!f&&y&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",l),r&&(h?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!g&&b?(t.loopCreate(e),t.updateSlides()):g&&!b&&t.loopDestroy()),t.emit("breakpoint",l)}function IF(t,e,r){if(e===void 0&&(e="window"),!t||e==="container"&&!r)return;let n=!1;const i=je(),s=e==="window"?i.innerHeight:r.clientHeight,o=Object.keys(t).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:s*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a{typeof n=="object"?Object.keys(n).forEach(i=>{n[i]&&r.push(e+i)}):typeof n=="string"&&r.push(e+n)}),r}function RF(){const t=this,{classNames:e,params:r,rtl:n,el:i,device:s}=t,o=PF(["initialized",r.direction,{"free-mode":t.params.freeMode&&r.freeMode.enabled},{autoheight:r.autoHeight},{rtl:n},{grid:r.grid&&r.grid.rows>1},{"grid-column":r.grid&&r.grid.rows>1&&r.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":r.cssMode},{centered:r.cssMode&&r.centeredSlides},{"watch-progress":r.watchSlidesProgress}],r.containerModifierClass);e.push(...o),i.classList.add(...e),t.emitContainerClasses()}function LF(){const t=this,{el:e,classNames:r}=t;e.classList.remove(...r),t.emitContainerClasses()}var NF={addClasses:RF,removeClasses:LF};function $F(){const t=this,{isLocked:e,params:r}=t,{slidesOffsetBefore:n}=r;if(n){const i=t.slides.length-1,s=t.slidesGrid[i]+t.slidesSizesGrid[i]+n*2;t.isLocked=t.size>s}else t.isLocked=t.snapGrid.length===1;r.allowSlideNext===!0&&(t.allowSlideNext=!t.isLocked),r.allowSlidePrev===!0&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}var kF={checkOverflow:$F},sd={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function DF(t,e){return function(n){n===void 0&&(n={});const i=Object.keys(n)[0],s=n[i];if(typeof s!="object"||s===null){vt(e,n);return}if(t[i]===!0&&(t[i]={enabled:!0}),i==="navigation"&&t[i]&&t[i].enabled&&!t[i].prevEl&&!t[i].nextEl&&(t[i].auto=!0),["pagination","scrollbar"].indexOf(i)>=0&&t[i]&&t[i].enabled&&!t[i].el&&(t[i].auto=!0),!(i in t&&"enabled"in s)){vt(e,n);return}typeof t[i]=="object"&&!("enabled"in t[i])&&(t[i].enabled=!0),t[i]||(t[i]={enabled:!1}),vt(e,n)}}const Dc={eventsEmitter:N2,update:V2,translate:Q2,transition:tF,slide:uF,loop:hF,grabCursor:mF,events:MF,breakpoints:OF,checkOverflow:kF,classes:NF},Bc={};class _t{constructor(){let e,r;for(var n=arguments.length,i=new Array(n),s=0;s1){const c=[];return o.querySelectorAll(r.el).forEach(f=>{const d=vt({},r,{el:f});c.push(new _t(d))}),c}const a=this;a.__swiper__=!0,a.support=Av(),a.device=I2({userAgent:r.userAgent}),a.browser=P2(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],r.modules&&Array.isArray(r.modules)&&a.modules.push(...r.modules);const l={};a.modules.forEach(c=>{c({params:r,swiper:a,extendParams:DF(r,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const u=vt({},sd,l);return a.params=vt({},u,Bc,r),a.originalParams=vt({},a.params),a.passedParams=vt({},r),a.params&&a.params.on&&Object.keys(a.params.on).forEach(c=>{a.on(c,a.params.on[c])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getSlideIndex(e){const{slidesEl:r,params:n}=this,i=Qe(r,`.${n.slideClass}, swiper-slide`),s=mo(i[0]);return mo(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(r=>r.getAttribute("data-swiper-slide-index")*1===e)[0])}recalcSlides(){const e=this,{slidesEl:r,params:n}=e;e.slides=Qe(r,`.${n.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,r){const n=this;e=Math.min(Math.max(e,0),1);const i=n.minTranslate(),o=(n.maxTranslate()-i)*e+i;n.translateTo(o,typeof r>"u"?0:r),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const r=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",r.join(" "))}getSlideClasses(e){const r=this;return r.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(r.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const r=[];e.slides.forEach(n=>{const i=e.getSlideClasses(n);r.push({slideEl:n,classNames:i}),e.emit("_slideClass",n,i)}),e.emit("_slideClasses",r)}slidesPerViewDynamic(e,r){e===void 0&&(e="current"),r===void 0&&(r=!1);const n=this,{params:i,slides:s,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:u}=n;let c=1;if(typeof i.slidesPerView=="number")return i.slidesPerView;if(i.centeredSlides){let f=s[u]?s[u].swiperSlideSize:0,d;for(let h=u+1;hl&&(d=!0));for(let h=u-1;h>=0;h-=1)s[h]&&!d&&(f+=s[h].swiperSlideSize,c+=1,f>l&&(d=!0))}else if(e==="current")for(let f=u+1;f=0;f-=1)o[u]-o[f]{o.complete&&Na(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function i(){const o=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)i(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const o=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(o.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||i()}n.watchOverflow&&r!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,r){r===void 0&&(r=!0);const n=this,i=n.params.direction;return e||(e=i==="horizontal"?"vertical":"horizontal"),e===i||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${i}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),n.emit("changeDirection"),r&&n.update()),n}changeLanguageDirection(e){const r=this;r.rtl&&e==="rtl"||!r.rtl&&e==="ltr"||(r.rtl=e==="rtl",r.rtlTranslate=r.params.direction==="horizontal"&&r.rtl,r.rtl?(r.el.classList.add(`${r.params.containerModifierClass}rtl`),r.el.dir="rtl"):(r.el.classList.remove(`${r.params.containerModifierClass}rtl`),r.el.dir="ltr"),r.update())}mount(e){const r=this;if(r.mounted)return!0;let n=e||r.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=r,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName==="SWIPER-CONTAINER"&&(r.isElement=!0);const i=()=>`.${(r.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=(()=>n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(i()):Qe(n,i())[0])();return!o&&r.params.createElements&&(o=Vt("div",r.params.wrapperClass),n.append(o),Qe(n,`.${r.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(r,{el:n,wrapperEl:o,slidesEl:r.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:o,hostEl:r.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||sn(n,"direction")==="rtl",rtlTranslate:r.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||sn(n,"direction")==="rtl"),wrongRTL:sn(o,"display")==="-webkit-box"}),!0}init(e){const r=this;if(r.initialized||r.mount(e)===!1)return r;r.emit("beforeInit"),r.params.breakpoints&&r.setBreakpoint(),r.addClasses(),r.updateSize(),r.updateSlides(),r.params.watchOverflow&&r.checkOverflow(),r.params.grabCursor&&r.enabled&&r.setGrabCursor(),r.params.loop&&r.virtual&&r.params.virtual.enabled?r.slideTo(r.params.initialSlide+r.virtual.slidesBefore,0,r.params.runCallbacksOnInit,!1,!0):r.slideTo(r.params.initialSlide,0,r.params.runCallbacksOnInit,!1,!0),r.params.loop&&r.loopCreate(),r.attachEvents();const i=[...r.el.querySelectorAll('[loading="lazy"]')];return r.isElement&&i.push(...r.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(s=>{s.complete?Na(r,s):s.addEventListener("load",o=>{Na(r,o.target)})}),id(r),r.initialized=!0,id(r),r.emit("init"),r.emit("afterInit"),r}destroy(e,r){e===void 0&&(e=!0),r===void 0&&(r=!0);const n=this,{params:i,el:s,wrapperEl:o,slides:a}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),r&&(n.removeClasses(),s.removeAttribute("style"),o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(l=>{n.off(l)}),e!==!1&&(n.el.swiper=null,E2(n)),n.destroyed=!0),null}static extendDefaults(e){vt(Bc,e)}static get extendedDefaults(){return Bc}static get defaults(){return sd}static installModule(e){_t.prototype.__modules__||(_t.prototype.__modules__=[]);const r=_t.prototype.__modules__;typeof e=="function"&&r.indexOf(e)<0&&r.push(e)}static use(e){return Array.isArray(e)?(e.forEach(r=>_t.installModule(r)),_t):(_t.installModule(e),_t)}}Object.keys(Dc).forEach(t=>{Object.keys(Dc[t]).forEach(e=>{_t.prototype[e]=Dc[t][e]})});_t.use([R2,L2]);var ct="top",St="bottom",xt="right",ft="left",Eu="auto",us=[ct,St,xt,ft],Jn="start",Ki="end",Iv="clippingParents",Wh="viewport",wi="popper",Ov="reference",od=us.reduce(function(t,e){return t.concat([e+"-"+Jn,e+"-"+Ki])},[]),Vh=[].concat(us,[Eu]).reduce(function(t,e){return t.concat([e,e+"-"+Jn,e+"-"+Ki])},[]),Pv="beforeRead",Rv="read",Lv="afterRead",Nv="beforeMain",$v="main",kv="afterMain",Dv="beforeWrite",Bv="write",Fv="afterWrite",Uv=[Pv,Rv,Lv,Nv,$v,kv,Dv,Bv,Fv];function yr(t){return t?(t.nodeName||"").toLowerCase():null}function Tt(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Zn(t){var e=Tt(t).Element;return t instanceof e||t instanceof Element}function Ot(t){var e=Tt(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function qh(t){if(typeof ShadowRoot>"u")return!1;var e=Tt(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function BF(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},i=e.attributes[r]||{},s=e.elements[r];!Ot(s)||!yr(s)||(Object.assign(s.style,n),Object.keys(i).forEach(function(o){var a=i[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function FF(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var i=e.elements[n],s=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),a=o.reduce(function(l,u){return l[u]="",l},{});!Ot(i)||!yr(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(l){i.removeAttribute(l)}))})}}const Yh={name:"applyStyles",enabled:!0,phase:"write",fn:BF,effect:FF,requires:["computeStyles"]};function fr(t){return t.split("-")[0]}var Wn=Math.max,wl=Math.min,Gi=Math.round;function ad(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function jv(){return!/^((?!chrome|android).)*safari/i.test(ad())}function Xi(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),i=1,s=1;e&&Ot(t)&&(i=t.offsetWidth>0&&Gi(n.width)/t.offsetWidth||1,s=t.offsetHeight>0&&Gi(n.height)/t.offsetHeight||1);var o=Zn(t)?Tt(t):window,a=o.visualViewport,l=!jv()&&r,u=(n.left+(l&&a?a.offsetLeft:0))/i,c=(n.top+(l&&a?a.offsetTop:0))/s,f=n.width/i,d=n.height/s;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function Kh(t){var e=Xi(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function zv(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&qh(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function jr(t){return Tt(t).getComputedStyle(t)}function UF(t){return["table","td","th"].indexOf(yr(t))>=0}function _n(t){return((Zn(t)?t.ownerDocument:t.document)||window.document).documentElement}function Su(t){return yr(t)==="html"?t:t.assignedSlot||t.parentNode||(qh(t)?t.host:null)||_n(t)}function _y(t){return!Ot(t)||jr(t).position==="fixed"?null:t.offsetParent}function jF(t){var e=/firefox/i.test(ad()),r=/Trident/i.test(ad());if(r&&Ot(t)){var n=jr(t);if(n.position==="fixed")return null}var i=Su(t);for(qh(i)&&(i=i.host);Ot(i)&&["html","body"].indexOf(yr(i))<0;){var s=jr(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||e&&s.willChange==="filter"||e&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Lo(t){for(var e=Tt(t),r=_y(t);r&&UF(r)&&jr(r).position==="static";)r=_y(r);return r&&(yr(r)==="html"||yr(r)==="body"&&jr(r).position==="static")?e:r||jF(t)||e}function Gh(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Js(t,e,r){return Wn(t,wl(e,r))}function zF(t,e,r){var n=Js(t,e,r);return n>r?r:n}function Hv(){return{top:0,right:0,bottom:0,left:0}}function Wv(t){return Object.assign({},Hv(),t)}function Vv(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var HF=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,Wv(typeof e!="number"?e:Vv(e,us))};function WF(t){var e,r=t.state,n=t.name,i=t.options,s=r.elements.arrow,o=r.modifiersData.popperOffsets,a=fr(r.placement),l=Gh(a),u=[ft,xt].indexOf(a)>=0,c=u?"height":"width";if(!(!s||!o)){var f=HF(i.padding,r),d=Kh(s),h=l==="y"?ct:ft,g=l==="y"?St:xt,y=r.rects.reference[c]+r.rects.reference[l]-o[l]-r.rects.popper[c],b=o[l]-r.rects.reference[l],E=Lo(s),_=E?l==="y"?E.clientHeight||0:E.clientWidth||0:0,v=y/2-b/2,T=f[h],M=_-d[c]-f[g],I=_/2-d[c]/2+v,$=Js(T,I,M),F=l;r.modifiersData[n]=(e={},e[F]=$,e.centerOffset=$-I,e)}}function VF(t){var e=t.state,r=t.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||zv(e.elements.popper,i)&&(e.elements.arrow=i))}const qv={name:"arrow",enabled:!0,phase:"main",fn:WF,effect:VF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qi(t){return t.split("-")[1]}var qF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function YF(t,e){var r=t.x,n=t.y,i=e.devicePixelRatio||1;return{x:Gi(r*i)/i||0,y:Gi(n*i)/i||0}}function vy(t){var e,r=t.popper,n=t.popperRect,i=t.placement,s=t.variation,o=t.offsets,a=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,f=t.isFixed,d=o.x,h=d===void 0?0:d,g=o.y,y=g===void 0?0:g,b=typeof c=="function"?c({x:h,y}):{x:h,y};h=b.x,y=b.y;var E=o.hasOwnProperty("x"),_=o.hasOwnProperty("y"),v=ft,T=ct,M=window;if(u){var I=Lo(r),$="clientHeight",F="clientWidth";if(I===Tt(r)&&(I=_n(r),jr(I).position!=="static"&&a==="absolute"&&($="scrollHeight",F="scrollWidth")),I=I,i===ct||(i===ft||i===xt)&&s===Ki){T=St;var L=f&&I===M&&M.visualViewport?M.visualViewport.height:I[$];y-=L-n.height,y*=l?1:-1}if(i===ft||(i===ct||i===St)&&s===Ki){v=xt;var U=f&&I===M&&M.visualViewport?M.visualViewport.width:I[F];h-=U-n.width,h*=l?1:-1}}var k=Object.assign({position:a},u&&qF),W=c===!0?YF({x:h,y},Tt(r)):{x:h,y};if(h=W.x,y=W.y,l){var D;return Object.assign({},k,(D={},D[T]=_?"0":"",D[v]=E?"0":"",D.transform=(M.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",D))}return Object.assign({},k,(e={},e[T]=_?y+"px":"",e[v]=E?h+"px":"",e.transform="",e))}function KF(t){var e=t.state,r=t.options,n=r.gpuAcceleration,i=n===void 0?!0:n,s=r.adaptive,o=s===void 0?!0:s,a=r.roundOffsets,l=a===void 0?!0:a,u={placement:fr(e.placement),variation:Qi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,vy(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,vy(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Xh={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:KF,data:{}};var aa={passive:!0};function GF(t){var e=t.state,r=t.instance,n=t.options,i=n.scroll,s=i===void 0?!0:i,o=n.resize,a=o===void 0?!0:o,l=Tt(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&u.forEach(function(c){c.addEventListener("scroll",r.update,aa)}),a&&l.addEventListener("resize",r.update,aa),function(){s&&u.forEach(function(c){c.removeEventListener("scroll",r.update,aa)}),a&&l.removeEventListener("resize",r.update,aa)}}const Qh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:GF,data:{}};var XF={left:"right",right:"left",bottom:"top",top:"bottom"};function $a(t){return t.replace(/left|right|bottom|top/g,function(e){return XF[e]})}var QF={start:"end",end:"start"};function Ey(t){return t.replace(/start|end/g,function(e){return QF[e]})}function Jh(t){var e=Tt(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Zh(t){return Xi(_n(t)).left+Jh(t).scrollLeft}function JF(t,e){var r=Tt(t),n=_n(t),i=r.visualViewport,s=n.clientWidth,o=n.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;var u=jv();(u||!u&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a+Zh(t),y:l}}function ZF(t){var e,r=_n(t),n=Jh(t),i=(e=t.ownerDocument)==null?void 0:e.body,s=Wn(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Wn(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-n.scrollLeft+Zh(t),l=-n.scrollTop;return jr(i||r).direction==="rtl"&&(a+=Wn(r.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:a,y:l}}function ep(t){var e=jr(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Yv(t){return["html","body","#document"].indexOf(yr(t))>=0?t.ownerDocument.body:Ot(t)&&ep(t)?t:Yv(Su(t))}function Zs(t,e){var r;e===void 0&&(e=[]);var n=Yv(t),i=n===((r=t.ownerDocument)==null?void 0:r.body),s=Tt(n),o=i?[s].concat(s.visualViewport||[],ep(n)?n:[]):n,a=e.concat(o);return i?a:a.concat(Zs(Su(o)))}function ld(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function eU(t,e){var r=Xi(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Sy(t,e,r){return e===Wh?ld(JF(t,r)):Zn(e)?eU(e,r):ld(ZF(_n(t)))}function tU(t){var e=Zs(Su(t)),r=["absolute","fixed"].indexOf(jr(t).position)>=0,n=r&&Ot(t)?Lo(t):t;return Zn(n)?e.filter(function(i){return Zn(i)&&zv(i,n)&&yr(i)!=="body"}):[]}function rU(t,e,r,n){var i=e==="clippingParents"?tU(t):[].concat(e),s=[].concat(i,[r]),o=s[0],a=s.reduce(function(l,u){var c=Sy(t,u,n);return l.top=Wn(c.top,l.top),l.right=wl(c.right,l.right),l.bottom=wl(c.bottom,l.bottom),l.left=Wn(c.left,l.left),l},Sy(t,o,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Kv(t){var e=t.reference,r=t.element,n=t.placement,i=n?fr(n):null,s=n?Qi(n):null,o=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,l;switch(i){case ct:l={x:o,y:e.y-r.height};break;case St:l={x:o,y:e.y+e.height};break;case xt:l={x:e.x+e.width,y:a};break;case ft:l={x:e.x-r.width,y:a};break;default:l={x:e.x,y:e.y}}var u=i?Gh(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(s){case Jn:l[u]=l[u]-(e[c]/2-r[c]/2);break;case Ki:l[u]=l[u]+(e[c]/2-r[c]/2);break}}return l}function Ji(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=n===void 0?t.placement:n,s=r.strategy,o=s===void 0?t.strategy:s,a=r.boundary,l=a===void 0?Iv:a,u=r.rootBoundary,c=u===void 0?Wh:u,f=r.elementContext,d=f===void 0?wi:f,h=r.altBoundary,g=h===void 0?!1:h,y=r.padding,b=y===void 0?0:y,E=Wv(typeof b!="number"?b:Vv(b,us)),_=d===wi?Ov:wi,v=t.rects.popper,T=t.elements[g?_:d],M=rU(Zn(T)?T:T.contextElement||_n(t.elements.popper),l,c,o),I=Xi(t.elements.reference),$=Kv({reference:I,element:v,strategy:"absolute",placement:i}),F=ld(Object.assign({},v,$)),L=d===wi?F:I,U={top:M.top-L.top+E.top,bottom:L.bottom-M.bottom+E.bottom,left:M.left-L.left+E.left,right:L.right-M.right+E.right},k=t.modifiersData.offset;if(d===wi&&k){var W=k[i];Object.keys(U).forEach(function(D){var O=[xt,St].indexOf(D)>=0?1:-1,j=[ct,St].indexOf(D)>=0?"y":"x";U[D]+=W[j]*O})}return U}function nU(t,e){e===void 0&&(e={});var r=e,n=r.placement,i=r.boundary,s=r.rootBoundary,o=r.padding,a=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?Vh:l,c=Qi(n),f=c?a?od:od.filter(function(g){return Qi(g)===c}):us,d=f.filter(function(g){return u.indexOf(g)>=0});d.length===0&&(d=f);var h=d.reduce(function(g,y){return g[y]=Ji(t,{placement:y,boundary:i,rootBoundary:s,padding:o})[fr(y)],g},{});return Object.keys(h).sort(function(g,y){return h[g]-h[y]})}function iU(t){if(fr(t)===Eu)return[];var e=$a(t);return[Ey(t),e,Ey(e)]}function sU(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var i=r.mainAxis,s=i===void 0?!0:i,o=r.altAxis,a=o===void 0?!0:o,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,g=h===void 0?!0:h,y=r.allowedAutoPlacements,b=e.options.placement,E=fr(b),_=E===b,v=l||(_||!g?[$a(b)]:iU(b)),T=[b].concat(v).reduce(function(me,be){return me.concat(fr(be)===Eu?nU(e,{placement:be,boundary:c,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:y}):be)},[]),M=e.rects.reference,I=e.rects.popper,$=new Map,F=!0,L=T[0],U=0;U=0,j=O?"width":"height",Q=Ji(e,{placement:k,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),H=O?D?xt:ft:D?St:ct;M[j]>I[j]&&(H=$a(H));var K=$a(H),X=[];if(s&&X.push(Q[W]<=0),a&&X.push(Q[H]<=0,Q[K]<=0),X.every(function(me){return me})){L=k,F=!1;break}$.set(k,X)}if(F)for(var Z=g?3:1,ce=function(be){var G=T.find(function(Y){var ne=$.get(Y);if(ne)return ne.slice(0,be).every(function(ee){return ee})});if(G)return L=G,"break"},pe=Z;pe>0;pe--){var de=ce(pe);if(de==="break")break}e.placement!==L&&(e.modifiersData[n]._skip=!0,e.placement=L,e.reset=!0)}}const Gv={name:"flip",enabled:!0,phase:"main",fn:sU,requiresIfExists:["offset"],data:{_skip:!1}};function xy(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Ty(t){return[ct,xt,St,ft].some(function(e){return t[e]>=0})}function oU(t){var e=t.state,r=t.name,n=e.rects.reference,i=e.rects.popper,s=e.modifiersData.preventOverflow,o=Ji(e,{elementContext:"reference"}),a=Ji(e,{altBoundary:!0}),l=xy(o,n),u=xy(a,i,s),c=Ty(l),f=Ty(u);e.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Xv={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:oU};function aU(t,e,r){var n=fr(t),i=[ft,ct].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,o=s[0],a=s[1];return o=o||0,a=(a||0)*i,[ft,xt].indexOf(n)>=0?{x:a,y:o}:{x:o,y:a}}function lU(t){var e=t.state,r=t.options,n=t.name,i=r.offset,s=i===void 0?[0,0]:i,o=Vh.reduce(function(c,f){return c[f]=aU(f,e.rects,s),c},{}),a=o[e.placement],l=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=o}const Qv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lU};function uU(t){var e=t.state,r=t.name;e.modifiersData[r]=Kv({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const tp={name:"popperOffsets",enabled:!0,phase:"read",fn:uU,data:{}};function cU(t){return t==="x"?"y":"x"}function fU(t){var e=t.state,r=t.options,n=t.name,i=r.mainAxis,s=i===void 0?!0:i,o=r.altAxis,a=o===void 0?!1:o,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,g=r.tetherOffset,y=g===void 0?0:g,b=Ji(e,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),E=fr(e.placement),_=Qi(e.placement),v=!_,T=Gh(E),M=cU(T),I=e.modifiersData.popperOffsets,$=e.rects.reference,F=e.rects.popper,L=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,U=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,W={x:0,y:0};if(I){if(s){var D,O=T==="y"?ct:ft,j=T==="y"?St:xt,Q=T==="y"?"height":"width",H=I[T],K=H+b[O],X=H-b[j],Z=h?-F[Q]/2:0,ce=_===Jn?$[Q]:F[Q],pe=_===Jn?-F[Q]:-$[Q],de=e.elements.arrow,me=h&&de?Kh(de):{width:0,height:0},be=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Hv(),G=be[O],Y=be[j],ne=Js(0,$[Q],me[Q]),ee=v?$[Q]/2-Z-ne-G-U.mainAxis:ce-ne-G-U.mainAxis,ue=v?-$[Q]/2+Z+ne+Y+U.mainAxis:pe+ne+Y+U.mainAxis,P=e.elements.arrow&&Lo(e.elements.arrow),w=P?T==="y"?P.clientTop||0:P.clientLeft||0:0,S=(D=k==null?void 0:k[T])!=null?D:0,A=H+ee-S-w,B=H+ue-S,z=Js(h?wl(K,A):K,H,h?Wn(X,B):X);I[T]=z,W[T]=z-H}if(a){var q,ie=T==="x"?ct:ft,re=T==="x"?St:xt,ae=I[M],se=M==="y"?"height":"width",he=ae+b[ie],fe=ae-b[re],ge=[ct,ft].indexOf(E)!==-1,C=(q=k==null?void 0:k[M])!=null?q:0,N=ge?he:ae-$[se]-F[se]-C+U.altAxis,x=ge?ae+$[se]+F[se]-C-U.altAxis:fe,p=h&&ge?zF(N,ae,x):Js(h?N:he,ae,h?x:fe);I[M]=p,W[M]=p-ae}e.modifiersData[n]=W}}const Jv={name:"preventOverflow",enabled:!0,phase:"main",fn:fU,requiresIfExists:["offset"]};function dU(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function hU(t){return t===Tt(t)||!Ot(t)?Jh(t):dU(t)}function pU(t){var e=t.getBoundingClientRect(),r=Gi(e.width)/t.offsetWidth||1,n=Gi(e.height)/t.offsetHeight||1;return r!==1||n!==1}function gU(t,e,r){r===void 0&&(r=!1);var n=Ot(e),i=Ot(e)&&pU(e),s=_n(e),o=Xi(t,i,r),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((yr(e)!=="body"||ep(s))&&(a=hU(e)),Ot(e)?(l=Xi(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):s&&(l.x=Zh(s))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function mU(t){var e=new Map,r=new Set,n=[];t.forEach(function(s){e.set(s.name,s)});function i(s){r.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!r.has(a)){var l=e.get(a);l&&i(l)}}),n.push(s)}return t.forEach(function(s){r.has(s.name)||i(s)}),n}function yU(t){var e=mU(t);return Uv.reduce(function(r,n){return r.concat(e.filter(function(i){return i.phase===n}))},[])}function wU(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function bU(t){var e=t.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var Ay={placement:"bottom",modifiers:[],strategy:"absolute"};function My(){for(var t=arguments.length,e=new Array(t),r=0;r(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,r)=>`#${CSS.escape(r)}`)),t),TU=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),AU=t=>{do t+=Math.floor(Math.random()*SU);while(document.getElementById(t));return t},MU=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:r}=window.getComputedStyle(t);const n=Number.parseFloat(e),i=Number.parseFloat(r);return!n&&!i?0:(e=e.split(",")[0],r=r.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(r))*xU)},eE=t=>{t.dispatchEvent(new Event(ld))},Pr=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),dn=t=>Pr(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(Zv(t)):null,cs=t=>{if(!Pr(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",r=t.closest("details:not([open])");if(!r)return e;if(r!==t){const n=t.closest("summary");if(n&&n.parentNode!==r||n===null)return!1}return e},hn=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",tE=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?tE(t.parentNode):null},wl=()=>{},Lo=t=>{t.offsetHeight},rE=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Fc=[],CU=t=>{document.readyState==="loading"?(Fc.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Fc)e()}),Fc.push(t)):t()},Rt=()=>document.documentElement.dir==="rtl",Dt=t=>{CU(()=>{const e=rE();if(e){const r=t.NAME,n=e.fn[r];e.fn[r]=t.jQueryInterface,e.fn[r].Constructor=t,e.fn[r].noConflict=()=>(e.fn[r]=n,t.jQueryInterface)}})},gt=(t,e=[],r=t)=>typeof t=="function"?t(...e):r,nE=(t,e,r=!0)=>{if(!r){gt(t);return}const n=5,i=MU(e)+n;let s=!1;const o=({target:a})=>{a===e&&(s=!0,e.removeEventListener(ld,o),gt(t))};e.addEventListener(ld,o),setTimeout(()=>{s||eE(e)},i)},rp=(t,e,r,n)=>{const i=t.length;let s=t.indexOf(e);return s===-1?!r&&n?t[i-1]:t[0]:(s+=r?1:-1,n&&(s=(s+i)%i),t[Math.max(0,Math.min(s,i-1))])},IU=/[^.]*(?=\..*)\.|.*/,OU=/\..*/,PU=/::\d+$/,Uc={};let My=1;const iE={mouseenter:"mouseover",mouseleave:"mouseout"},RU=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function sE(t,e){return e&&`${e}::${My++}`||t.uidEvent||My++}function oE(t){const e=sE(t);return t.uidEvent=e,Uc[e]=Uc[e]||{},Uc[e]}function LU(t,e){return function r(n){return np(n,{delegateTarget:t}),r.oneOff&&le.off(t,n.type,e),e.apply(t,[n])}}function NU(t,e,r){return function n(i){const s=t.querySelectorAll(e);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(const a of s)if(a===o)return np(i,{delegateTarget:o}),n.oneOff&&le.off(t,i.type,e,r),r.apply(o,[i])}}function aE(t,e,r=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===r)}function lE(t,e,r){const n=typeof e=="string",i=n?r:e||r;let s=uE(t);return RU.has(s)||(s=t),[n,i,s]}function Cy(t,e,r,n,i){if(typeof e!="string"||!t)return;let[s,o,a]=lE(e,r,n);e in iE&&(o=(g=>function(y){if(!y.relatedTarget||y.relatedTarget!==y.delegateTarget&&!y.delegateTarget.contains(y.relatedTarget))return g.call(this,y)})(o));const l=oE(t),u=l[a]||(l[a]={}),c=aE(u,o,s?r:null);if(c){c.oneOff=c.oneOff&&i;return}const f=sE(o,e.replace(IU,"")),d=s?NU(t,r,o):LU(t,o);d.delegationSelector=s?r:null,d.callable=o,d.oneOff=i,d.uidEvent=f,u[f]=d,t.addEventListener(a,d,s)}function ud(t,e,r,n,i){const s=aE(e[r],n,i);s&&(t.removeEventListener(r,s,!!i),delete e[r][s.uidEvent])}function $U(t,e,r,n){const i=e[r]||{};for(const[s,o]of Object.entries(i))s.includes(n)&&ud(t,e,r,o.callable,o.delegationSelector)}function uE(t){return t=t.replace(OU,""),iE[t]||t}const le={on(t,e,r,n){Cy(t,e,r,n,!1)},one(t,e,r,n){Cy(t,e,r,n,!0)},off(t,e,r,n){if(typeof e!="string"||!t)return;const[i,s,o]=lE(e,r,n),a=o!==e,l=oE(t),u=l[o]||{},c=e.startsWith(".");if(typeof s<"u"){if(!Object.keys(u).length)return;ud(t,l,o,s,i?r:null);return}if(c)for(const f of Object.keys(l))$U(t,l,f,e.slice(1));for(const[f,d]of Object.entries(u)){const h=f.replace(PU,"");(!a||e.includes(h))&&ud(t,l,o,d.callable,d.delegationSelector)}},trigger(t,e,r){if(typeof e!="string"||!t)return null;const n=rE(),i=uE(e),s=e!==i;let o=null,a=!0,l=!0,u=!1;s&&n&&(o=n.Event(e,r),n(t).trigger(o),a=!o.isPropagationStopped(),l=!o.isImmediatePropagationStopped(),u=o.isDefaultPrevented());const c=np(new Event(e,{bubbles:a,cancelable:!0}),r);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&o&&o.preventDefault(),c}};function np(t,e={}){for(const[r,n]of Object.entries(e))try{t[r]=n}catch{Object.defineProperty(t,r,{configurable:!0,get(){return n}})}return t}function Iy(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function jc(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Rr={setDataAttribute(t,e,r){t.setAttribute(`data-bs-${jc(e)}`,r)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${jc(e)}`)},getDataAttributes(t){if(!t)return{};const e={},r=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of r){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=Iy(t.dataset[n])}return e},getDataAttribute(t,e){return Iy(t.getAttribute(`data-bs-${jc(e)}`))}};class No{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,r){const n=Pr(r)?Rr.getDataAttribute(r,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...Pr(r)?Rr.getDataAttributes(r):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,r=this.constructor.DefaultType){for(const[n,i]of Object.entries(r)){const s=e[n],o=Pr(s)?"element":TU(s);if(!new RegExp(i).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${i}".`)}}}const kU="5.3.2";class Qt extends No{constructor(e,r){super(),e=dn(e),e&&(this._element=e,this._config=this._getConfig(r),Bc.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Bc.remove(this._element,this.constructor.DATA_KEY),le.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,r,n=!0){nE(e,r,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Bc.get(dn(e),this.DATA_KEY)}static getOrCreateInstance(e,r={}){return this.getInstance(e)||new this(e,typeof r=="object"?r:null)}static get VERSION(){return kU}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const zc=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let r=t.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),e=r&&r!=="#"?Zv(r.trim()):null}return e},ye={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(r=>r.matches(e))},parents(t,e){const r=[];let n=t.parentNode.closest(e);for(;n;)r.push(n),n=n.parentNode.closest(e);return r},prev(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return[r];r=r.previousElementSibling}return[]},next(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return[r];r=r.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(r=>`${r}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(r=>!hn(r)&&cs(r))},getSelectorFromElement(t){const e=zc(t);return e&&ye.findOne(e)?e:null},getElementFromSelector(t){const e=zc(t);return e?ye.findOne(e):null},getMultipleElementsFromSelector(t){const e=zc(t);return e?ye.find(e):[]}},xu=(t,e="hide")=>{const r=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;le.on(document,r,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),hn(this))return;const s=ye.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()})},DU="alert",BU="bs.alert",cE=`.${BU}`,FU=`close${cE}`,UU=`closed${cE}`,jU="fade",zU="show";class Tu extends Qt{static get NAME(){return DU}close(){if(le.trigger(this._element,FU).defaultPrevented)return;this._element.classList.remove(zU);const r=this._element.classList.contains(jU);this._queueCallback(()=>this._destroyElement(),this._element,r)}_destroyElement(){this._element.remove(),le.trigger(this._element,UU),this.dispose()}static jQueryInterface(e){return this.each(function(){const r=Tu.getOrCreateInstance(this);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}xu(Tu,"close");Dt(Tu);const HU="button",WU="bs.button",VU=`.${WU}`,qU=".data-api",YU="active",Oy='[data-bs-toggle="button"]',KU=`click${VU}${qU}`;class Au extends Qt{static get NAME(){return HU}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(YU))}static jQueryInterface(e){return this.each(function(){const r=Au.getOrCreateInstance(this);e==="toggle"&&r[e]()})}}le.on(document,KU,Oy,t=>{t.preventDefault();const e=t.target.closest(Oy);Au.getOrCreateInstance(e).toggle()});Dt(Au);const GU="swipe",fs=".bs.swipe",XU=`touchstart${fs}`,QU=`touchmove${fs}`,JU=`touchend${fs}`,ZU=`pointerdown${fs}`,e3=`pointerup${fs}`,t3="touch",r3="pen",n3="pointer-event",i3=40,s3={endCallback:null,leftCallback:null,rightCallback:null},o3={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class bl extends No{constructor(e,r){super(),this._element=e,!(!e||!bl.isSupported())&&(this._config=this._getConfig(r),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return s3}static get DefaultType(){return o3}static get NAME(){return GU}dispose(){le.off(this._element,fs)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),gt(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=i3)return;const r=e/this._deltaX;this._deltaX=0,r&>(r>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(le.on(this._element,ZU,e=>this._start(e)),le.on(this._element,e3,e=>this._end(e)),this._element.classList.add(n3)):(le.on(this._element,XU,e=>this._start(e)),le.on(this._element,QU,e=>this._move(e)),le.on(this._element,JU,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===r3||e.pointerType===t3)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const a3="carousel",l3="bs.carousel",vn=`.${l3}`,fE=".data-api",u3="ArrowLeft",c3="ArrowRight",f3=500,Is="next",hi="prev",bi="left",$a="right",d3=`slide${vn}`,Hc=`slid${vn}`,h3=`keydown${vn}`,p3=`mouseenter${vn}`,g3=`mouseleave${vn}`,m3=`dragstart${vn}`,y3=`load${vn}${fE}`,w3=`click${vn}${fE}`,dE="carousel",aa="active",b3="slide",_3="carousel-item-end",v3="carousel-item-start",E3="carousel-item-next",S3="carousel-item-prev",hE=".active",pE=".carousel-item",x3=hE+pE,T3=".carousel-item img",A3=".carousel-indicators",M3="[data-bs-slide], [data-bs-slide-to]",C3='[data-bs-ride="carousel"]',I3={[u3]:$a,[c3]:bi},O3={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},P3={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class $o extends Qt{constructor(e,r){super(e,r),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ye.findOne(A3,this._element),this._addEventListeners(),this._config.ride===dE&&this.cycle()}static get Default(){return O3}static get DefaultType(){return P3}static get NAME(){return a3}next(){this._slide(Is)}nextWhenVisible(){!document.hidden&&cs(this._element)&&this.next()}prev(){this._slide(hi)}pause(){this._isSliding&&eE(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){le.one(this._element,Hc,()=>this.cycle());return}this.cycle()}}to(e){const r=this._getItems();if(e>r.length-1||e<0)return;if(this._isSliding){le.one(this._element,Hc,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const i=e>n?Is:hi;this._slide(i,r[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&le.on(this._element,h3,e=>this._keydown(e)),this._config.pause==="hover"&&(le.on(this._element,p3,()=>this.pause()),le.on(this._element,g3,()=>this._maybeEnableCycle())),this._config.touch&&bl.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of ye.find(T3,this._element))le.on(n,m3,i=>i.preventDefault());const r={leftCallback:()=>this._slide(this._directionToOrder(bi)),rightCallback:()=>this._slide(this._directionToOrder($a)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),f3+this._config.interval))}};this._swipeHelper=new bl(this._element,r)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const r=I3[e.key];r&&(e.preventDefault(),this._slide(this._directionToOrder(r)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const r=ye.findOne(hE,this._indicatorsElement);r.classList.remove(aa),r.removeAttribute("aria-current");const n=ye.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(aa),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const r=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=r||this._config.defaultInterval}_slide(e,r=null){if(this._isSliding)return;const n=this._getActive(),i=e===Is,s=r||rp(this._getItems(),n,i,this._config.wrap);if(s===n)return;const o=this._getItemIndex(s),a=h=>le.trigger(this._element,h,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:o});if(a(d3).defaultPrevented||!n||!s)return;const u=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const c=i?v3:_3,f=i?E3:S3;s.classList.add(f),Lo(s),n.classList.add(c),s.classList.add(c);const d=()=>{s.classList.remove(c,f),s.classList.add(aa),n.classList.remove(aa,f,c),this._isSliding=!1,a(Hc)};this._queueCallback(d,n,this._isAnimated()),u&&this.cycle()}_isAnimated(){return this._element.classList.contains(b3)}_getActive(){return ye.findOne(x3,this._element)}_getItems(){return ye.find(pE,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Rt()?e===bi?hi:Is:e===bi?Is:hi}_orderToDirection(e){return Rt()?e===hi?bi:$a:e===hi?$a:bi}static jQueryInterface(e){return this.each(function(){const r=$o.getOrCreateInstance(this,e);if(typeof e=="number"){r.to(e);return}if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}le.on(document,w3,M3,function(t){const e=ye.getElementFromSelector(this);if(!e||!e.classList.contains(dE))return;t.preventDefault();const r=$o.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){r.to(n),r._maybeEnableCycle();return}if(Rr.getDataAttribute(this,"slide")==="next"){r.next(),r._maybeEnableCycle();return}r.prev(),r._maybeEnableCycle()});le.on(window,y3,()=>{const t=ye.find(C3);for(const e of t)$o.getOrCreateInstance(e)});Dt($o);const R3="collapse",L3="bs.collapse",ko=`.${L3}`,N3=".data-api",$3=`show${ko}`,k3=`shown${ko}`,D3=`hide${ko}`,B3=`hidden${ko}`,F3=`click${ko}${N3}`,Wc="show",Ti="collapse",la="collapsing",U3="collapsed",j3=`:scope .${Ti} .${Ti}`,z3="collapse-horizontal",H3="width",W3="height",V3=".collapse.show, .collapse.collapsing",cd='[data-bs-toggle="collapse"]',q3={parent:null,toggle:!0},Y3={parent:"(null|element)",toggle:"boolean"};class mo extends Qt{constructor(e,r){super(e,r),this._isTransitioning=!1,this._triggerArray=[];const n=ye.find(cd);for(const i of n){const s=ye.getSelectorFromElement(i),o=ye.find(s).filter(a=>a===this._element);s!==null&&o.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return q3}static get DefaultType(){return Y3}static get NAME(){return R3}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(V3).filter(a=>a!==this._element).map(a=>mo.getOrCreateInstance(a,{toggle:!1}))),e.length&&e[0]._isTransitioning||le.trigger(this._element,$3).defaultPrevented)return;for(const a of e)a.hide();const n=this._getDimension();this._element.classList.remove(Ti),this._element.classList.add(la),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(la),this._element.classList.add(Ti,Wc),this._element.style[n]="",le.trigger(this._element,k3)},o=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[n]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||le.trigger(this._element,D3).defaultPrevented)return;const r=this._getDimension();this._element.style[r]=`${this._element.getBoundingClientRect()[r]}px`,Lo(this._element),this._element.classList.add(la),this._element.classList.remove(Ti,Wc);for(const i of this._triggerArray){const s=ye.getElementFromSelector(i);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(la),this._element.classList.add(Ti),le.trigger(this._element,B3)};this._element.style[r]="",this._queueCallback(n,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Wc)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=dn(e.parent),e}_getDimension(){return this._element.classList.contains(z3)?H3:W3}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(cd);for(const r of e){const n=ye.getElementFromSelector(r);n&&this._addAriaAndCollapsedClass([r],this._isShown(n))}}_getFirstLevelChildren(e){const r=ye.find(j3,this._config.parent);return ye.find(e,this._config.parent).filter(n=>!r.includes(n))}_addAriaAndCollapsedClass(e,r){if(e.length)for(const n of e)n.classList.toggle(U3,!r),n.setAttribute("aria-expanded",r)}static jQueryInterface(e){const r={};return typeof e=="string"&&/show|hide/.test(e)&&(r.toggle=!1),this.each(function(){const n=mo.getOrCreateInstance(this,r);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}le.on(document,F3,cd,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of ye.getMultipleElementsFromSelector(this))mo.getOrCreateInstance(e,{toggle:!1}).toggle()});Dt(mo);const Py="dropdown",K3="bs.dropdown",li=`.${K3}`,ip=".data-api",G3="Escape",Ry="Tab",X3="ArrowUp",Ly="ArrowDown",Q3=2,J3=`hide${li}`,Z3=`hidden${li}`,ej=`show${li}`,tj=`shown${li}`,gE=`click${li}${ip}`,mE=`keydown${li}${ip}`,rj=`keyup${li}${ip}`,_i="show",nj="dropup",ij="dropend",sj="dropstart",oj="dropup-center",aj="dropdown-center",Dn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',lj=`${Dn}.${_i}`,ka=".dropdown-menu",uj=".navbar",cj=".navbar-nav",fj=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",dj=Rt()?"top-end":"top-start",hj=Rt()?"top-start":"top-end",pj=Rt()?"bottom-end":"bottom-start",gj=Rt()?"bottom-start":"bottom-end",mj=Rt()?"left-start":"right-start",yj=Rt()?"right-start":"left-start",wj="top",bj="bottom",_j={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},vj={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class dr extends Qt{constructor(e,r){super(e,r),this._popper=null,this._parent=this._element.parentNode,this._menu=ye.next(this._element,ka)[0]||ye.prev(this._element,ka)[0]||ye.findOne(ka,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return _j}static get DefaultType(){return vj}static get NAME(){return Py}toggle(){return this._isShown()?this.hide():this.show()}show(){if(hn(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!le.trigger(this._element,ej,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(cj))for(const n of[].concat(...document.body.children))le.on(n,"mouseover",wl);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(_i),this._element.classList.add(_i),le.trigger(this._element,tj,e)}}hide(){if(hn(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!le.trigger(this._element,J3,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))le.off(n,"mouseover",wl);this._popper&&this._popper.destroy(),this._menu.classList.remove(_i),this._element.classList.remove(_i),this._element.setAttribute("aria-expanded","false"),Rr.removeDataAttribute(this._menu,"popper"),le.trigger(this._element,Z3,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Pr(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Py.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Jv>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:Pr(this._config.reference)?e=dn(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const r=this._getPopperConfig();this._popper=tp(e,this._menu,r)}_isShown(){return this._menu.classList.contains(_i)}_getPlacement(){const e=this._parent;if(e.classList.contains(ij))return mj;if(e.classList.contains(sj))return yj;if(e.classList.contains(oj))return wj;if(e.classList.contains(aj))return bj;const r=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(nj)?r?hj:dj:r?gj:pj}_detectNavbar(){return this._element.closest(uj)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(r=>Number.parseInt(r,10)):typeof e=="function"?r=>e(r,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Rr.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...gt(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:r}){const n=ye.find(fj,this._menu).filter(i=>cs(i));n.length&&rp(n,r,e===Ly,!n.includes(r)).focus()}static jQueryInterface(e){return this.each(function(){const r=dr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}static clearMenus(e){if(e.button===Q3||e.type==="keyup"&&e.key!==Ry)return;const r=ye.find(lj);for(const n of r){const i=dr.getInstance(n);if(!i||i._config.autoClose===!1)continue;const s=e.composedPath(),o=s.includes(i._menu);if(s.includes(i._element)||i._config.autoClose==="inside"&&!o||i._config.autoClose==="outside"&&o||i._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Ry||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:i._element};e.type==="click"&&(a.clickEvent=e),i._completeHide(a)}}static dataApiKeydownHandler(e){const r=/input|textarea/i.test(e.target.tagName),n=e.key===G3,i=[X3,Ly].includes(e.key);if(!i&&!n||r&&!n)return;e.preventDefault();const s=this.matches(Dn)?this:ye.prev(this,Dn)[0]||ye.next(this,Dn)[0]||ye.findOne(Dn,e.delegateTarget.parentNode),o=dr.getOrCreateInstance(s);if(i){e.stopPropagation(),o.show(),o._selectMenuItem(e);return}o._isShown()&&(e.stopPropagation(),o.hide(),s.focus())}}le.on(document,mE,Dn,dr.dataApiKeydownHandler);le.on(document,mE,ka,dr.dataApiKeydownHandler);le.on(document,gE,dr.clearMenus);le.on(document,rj,dr.clearMenus);le.on(document,gE,Dn,function(t){t.preventDefault(),dr.getOrCreateInstance(this).toggle()});Dt(dr);const yE="backdrop",Ej="fade",Ny="show",$y=`mousedown.bs.${yE}`,Sj={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},xj={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class wE extends No{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Sj}static get DefaultType(){return xj}static get NAME(){return yE}show(e){if(!this._config.isVisible){gt(e);return}this._append();const r=this._getElement();this._config.isAnimated&&Lo(r),r.classList.add(Ny),this._emulateAnimation(()=>{gt(e)})}hide(e){if(!this._config.isVisible){gt(e);return}this._getElement().classList.remove(Ny),this._emulateAnimation(()=>{this.dispose(),gt(e)})}dispose(){this._isAppended&&(le.off(this._element,$y),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(Ej),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=dn(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),le.on(e,$y,()=>{gt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){nE(e,this._getElement(),this._config.isAnimated)}}const Tj="focustrap",Aj="bs.focustrap",_l=`.${Aj}`,Mj=`focusin${_l}`,Cj=`keydown.tab${_l}`,Ij="Tab",Oj="forward",ky="backward",Pj={autofocus:!0,trapElement:null},Rj={autofocus:"boolean",trapElement:"element"};class bE extends No{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Pj}static get DefaultType(){return Rj}static get NAME(){return Tj}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),le.off(document,_l),le.on(document,Mj,e=>this._handleFocusin(e)),le.on(document,Cj,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,le.off(document,_l))}_handleFocusin(e){const{trapElement:r}=this._config;if(e.target===document||e.target===r||r.contains(e.target))return;const n=ye.focusableChildren(r);n.length===0?r.focus():this._lastTabNavDirection===ky?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===Ij&&(this._lastTabNavDirection=e.shiftKey?ky:Oj)}}const Dy=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",By=".sticky-top",ua="padding-right",Fy="margin-right";class fd{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ua,r=>r+e),this._setElementAttributes(Dy,ua,r=>r+e),this._setElementAttributes(By,Fy,r=>r-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ua),this._resetElementAttributes(Dy,ua),this._resetElementAttributes(By,Fy)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,r,n){const i=this.getWidth(),s=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+i)return;this._saveInitialAttribute(o,r);const a=window.getComputedStyle(o).getPropertyValue(r);o.style.setProperty(r,`${n(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(e,r){const n=e.style.getPropertyValue(r);n&&Rr.setDataAttribute(e,r,n)}_resetElementAttributes(e,r){const n=i=>{const s=Rr.getDataAttribute(i,r);if(s===null){i.style.removeProperty(r);return}Rr.removeDataAttribute(i,r),i.style.setProperty(r,s)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,r){if(Pr(e)){r(e);return}for(const n of ye.find(e,this._element))r(n)}}const Lj="modal",Nj="bs.modal",Lt=`.${Nj}`,$j=".data-api",kj="Escape",Dj=`hide${Lt}`,Bj=`hidePrevented${Lt}`,_E=`hidden${Lt}`,vE=`show${Lt}`,Fj=`shown${Lt}`,Uj=`resize${Lt}`,jj=`click.dismiss${Lt}`,zj=`mousedown.dismiss${Lt}`,Hj=`keydown.dismiss${Lt}`,Wj=`click${Lt}${$j}`,Uy="modal-open",Vj="fade",jy="show",Vc="modal-static",qj=".modal.show",Yj=".modal-dialog",Kj=".modal-body",Gj='[data-bs-toggle="modal"]',Xj={backdrop:!0,focus:!0,keyboard:!0},Qj={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Zi extends Qt{constructor(e,r){super(e,r),this._dialog=ye.findOne(Yj,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new fd,this._addEventListeners()}static get Default(){return Xj}static get DefaultType(){return Qj}static get NAME(){return Lj}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||le.trigger(this._element,vE,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Uy),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||le.trigger(this._element,Dj).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(jy),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){le.off(window,Lt),le.off(this._dialog,Lt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new wE({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new bE({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const r=ye.findOne(Kj,this._dialog);r&&(r.scrollTop=0),Lo(this._element),this._element.classList.add(jy);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,le.trigger(this._element,Fj,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){le.on(this._element,Hj,e=>{if(e.key===kj){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),le.on(window,Uj,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),le.on(this._element,zj,e=>{le.one(this._element,jj,r=>{if(!(this._element!==e.target||this._element!==r.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Uy),this._resetAdjustments(),this._scrollBar.reset(),le.trigger(this._element,_E)})}_isAnimated(){return this._element.classList.contains(Vj)}_triggerBackdropTransition(){if(le.trigger(this._element,Bj).defaultPrevented)return;const r=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(Vc)||(r||(this._element.style.overflowY="hidden"),this._element.classList.add(Vc),this._queueCallback(()=>{this._element.classList.remove(Vc),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,r=this._scrollBar.getWidth(),n=r>0;if(n&&!e){const i=Rt()?"paddingLeft":"paddingRight";this._element.style[i]=`${r}px`}if(!n&&e){const i=Rt()?"paddingRight":"paddingLeft";this._element.style[i]=`${r}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,r){return this.each(function(){const n=Zi.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](r)}})}}le.on(document,Wj,Gj,function(t){const e=ye.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),le.one(e,vE,i=>{i.defaultPrevented||le.one(e,_E,()=>{cs(this)&&this.focus()})});const r=ye.findOne(qj);r&&Zi.getInstance(r).hide(),Zi.getOrCreateInstance(e).toggle(this)});xu(Zi);Dt(Zi);const Jj="offcanvas",Zj="bs.offcanvas",Kr=`.${Zj}`,EE=".data-api",ez=`load${Kr}${EE}`,tz="Escape",zy="show",Hy="showing",Wy="hiding",rz="offcanvas-backdrop",SE=".offcanvas.show",nz=`show${Kr}`,iz=`shown${Kr}`,sz=`hide${Kr}`,Vy=`hidePrevented${Kr}`,xE=`hidden${Kr}`,oz=`resize${Kr}`,az=`click${Kr}${EE}`,lz=`keydown.dismiss${Kr}`,uz='[data-bs-toggle="offcanvas"]',cz={backdrop:!0,keyboard:!0,scroll:!1},fz={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class pn extends Qt{constructor(e,r){super(e,r),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return cz}static get DefaultType(){return fz}static get NAME(){return Jj}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||le.trigger(this._element,nz,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new fd().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Hy);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(zy),this._element.classList.remove(Hy),le.trigger(this._element,iz,{relatedTarget:e})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||le.trigger(this._element,sz).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Wy),this._backdrop.hide();const r=()=>{this._element.classList.remove(zy,Wy),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new fd().reset(),le.trigger(this._element,xE)};this._queueCallback(r,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){le.trigger(this._element,Vy);return}this.hide()},r=!!this._config.backdrop;return new wE({className:rz,isVisible:r,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:r?e:null})}_initializeFocusTrap(){return new bE({trapElement:this._element})}_addEventListeners(){le.on(this._element,lz,e=>{if(e.key===tz){if(this._config.keyboard){this.hide();return}le.trigger(this._element,Vy)}})}static jQueryInterface(e){return this.each(function(){const r=pn.getOrCreateInstance(this,e);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}le.on(document,az,uz,function(t){const e=ye.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),hn(this))return;le.one(e,xE,()=>{cs(this)&&this.focus()});const r=ye.findOne(SE);r&&r!==e&&pn.getInstance(r).hide(),pn.getOrCreateInstance(e).toggle(this)});le.on(window,ez,()=>{for(const t of ye.find(SE))pn.getOrCreateInstance(t).show()});le.on(window,oz,()=>{for(const t of ye.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&pn.getOrCreateInstance(t).hide()});xu(pn);Dt(pn);const dz=/^aria-[\w-]*$/i,TE={"*":["class","dir","id","lang","role",dz],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},hz=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),pz=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,gz=(t,e)=>{const r=t.nodeName.toLowerCase();return e.includes(r)?hz.has(r)?!!pz.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(r))};function mz(t,e,r){if(!t.length)return t;if(r&&typeof r=="function")return r(t);const i=new window.DOMParser().parseFromString(t,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(const o of s){const a=o.nodeName.toLowerCase();if(!Object.keys(e).includes(a)){o.remove();continue}const l=[].concat(...o.attributes),u=[].concat(e["*"]||[],e[a]||[]);for(const c of l)gz(c,u)||o.removeAttribute(c.nodeName)}return i.body.innerHTML}const yz="TemplateFactory",wz={allowList:TE,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},bz={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},_z={entry:"(string|element|function|null)",selector:"(string|element)"};class vz extends No{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return wz}static get DefaultType(){return bz}static get NAME(){return yz}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[i,s]of Object.entries(this._config.content))this._setContent(e,s,i);const r=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&r.classList.add(...n.split(" ")),r}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[r,n]of Object.entries(e))super._typeCheckConfig({selector:r,entry:n},_z)}_setContent(e,r,n){const i=ye.findOne(n,e);if(i){if(r=this._resolvePossibleFunction(r),!r){i.remove();return}if(Pr(r)){this._putElementInTemplate(dn(r),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(r);return}i.textContent=r}}_maybeSanitize(e){return this._config.sanitize?mz(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return gt(e,[this])}_putElementInTemplate(e,r){if(this._config.html){r.innerHTML="",r.append(e);return}r.textContent=e.textContent}}const Ez="tooltip",Sz=new Set(["sanitize","allowList","sanitizeFn"]),qc="fade",xz="modal",ca="show",Tz=".tooltip-inner",qy=`.${xz}`,Yy="hide.bs.modal",Os="hover",Yc="focus",Az="click",Mz="manual",Cz="hide",Iz="hidden",Oz="show",Pz="shown",Rz="inserted",Lz="click",Nz="focusin",$z="focusout",kz="mouseenter",Dz="mouseleave",Bz={AUTO:"auto",TOP:"top",RIGHT:Rt()?"left":"right",BOTTOM:"bottom",LEFT:Rt()?"right":"left"},Fz={allowList:TE,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},Uz={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class ds extends Qt{constructor(e,r){if(typeof Jv>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,r),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Fz}static get DefaultType(){return Uz}static get NAME(){return Ez}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),le.off(this._element.closest(qy),Yy,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=le.trigger(this._element,this.constructor.eventName(Oz)),n=(tE(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!n)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),le.trigger(this._element,this.constructor.eventName(Rz))),this._popper=this._createPopper(i),i.classList.add(ca),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))le.on(a,"mouseover",wl);const o=()=>{le.trigger(this._element,this.constructor.eventName(Pz)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||le.trigger(this._element,this.constructor.eventName(Cz)).defaultPrevented)return;if(this._getTipElement().classList.remove(ca),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))le.off(i,"mouseover",wl);this._activeTrigger[Az]=!1,this._activeTrigger[Yc]=!1,this._activeTrigger[Os]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),le.trigger(this._element,this.constructor.eventName(Iz)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const r=this._getTemplateFactory(e).toHtml();if(!r)return null;r.classList.remove(qc,ca),r.classList.add(`bs-${this.constructor.NAME}-auto`);const n=AU(this.constructor.NAME).toString();return r.setAttribute("id",n),this._isAnimated()&&r.classList.add(qc),r}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new vz({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Tz]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(qc)}_isShown(){return this.tip&&this.tip.classList.contains(ca)}_createPopper(e){const r=gt(this._config.placement,[this,e,this._element]),n=Bz[r.toUpperCase()];return tp(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(r=>Number.parseInt(r,10)):typeof e=="function"?r=>e(r,this._element):e}_resolvePossibleFunction(e){return gt(e,[this._element])}_getPopperConfig(e){const r={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...r,...gt(this._config.popperConfig,[r])}}_setListeners(){const e=this._config.trigger.split(" ");for(const r of e)if(r==="click")le.on(this._element,this.constructor.eventName(Lz),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(r!==Mz){const n=r===Os?this.constructor.eventName(kz):this.constructor.eventName(Nz),i=r===Os?this.constructor.eventName(Dz):this.constructor.eventName($z);le.on(this._element,n,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusin"?Yc:Os]=!0,o._enter()}),le.on(this._element,i,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusout"?Yc:Os]=o._element.contains(s.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},le.on(this._element.closest(qy),Yy,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,r){clearTimeout(this._timeout),this._timeout=setTimeout(e,r)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const r=Rr.getDataAttributes(this._element);for(const n of Object.keys(r))Sz.has(n)&&delete r[n];return e={...r,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:dn(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[r,n]of Object.entries(this._config))this.constructor.Default[r]!==n&&(e[r]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const r=ds.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}Dt(ds);const jz="popover",zz=".popover-header",Hz=".popover-body",Wz={...ds.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Vz={...ds.DefaultType,content:"(null|string|element|function)"};class sp extends ds{static get Default(){return Wz}static get DefaultType(){return Vz}static get NAME(){return jz}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[zz]:this._getTitle(),[Hz]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const r=sp.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}Dt(sp);const qz="scrollspy",Yz="bs.scrollspy",op=`.${Yz}`,Kz=".data-api",Gz=`activate${op}`,Ky=`click${op}`,Xz=`load${op}${Kz}`,Qz="dropdown-item",pi="active",Jz='[data-bs-spy="scroll"]',Kc="[href]",Zz=".nav, .list-group",Gy=".nav-link",eH=".nav-item",tH=".list-group-item",rH=`${Gy}, ${eH} > ${Gy}, ${tH}`,nH=".dropdown",iH=".dropdown-toggle",sH={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},oH={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Mu extends Qt{constructor(e,r){super(e,r),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return sH}static get DefaultType(){return oH}static get NAME(){return qz}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=dn(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(r=>Number.parseFloat(r))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(le.off(this._config.target,Ky),le.on(this._config.target,Ky,Kc,e=>{const r=this._observableSections.get(e.target.hash);if(r){e.preventDefault();const n=this._rootElement||window,i=r.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:i,behavior:"smooth"});return}n.scrollTop=i}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(r=>this._observerCallback(r),e)}_observerCallback(e){const r=o=>this._targetLinks.get(`#${o.target.id}`),n=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(r(o))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(r(o));continue}const a=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&a){if(n(o),!i)return;continue}!s&&!a&&n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=ye.find(Kc,this._config.target);for(const r of e){if(!r.hash||hn(r))continue;const n=ye.findOne(decodeURI(r.hash),this._element);cs(n)&&(this._targetLinks.set(decodeURI(r.hash),r),this._observableSections.set(r.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(pi),this._activateParents(e),le.trigger(this._element,Gz,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(Qz)){ye.findOne(iH,e.closest(nH)).classList.add(pi);return}for(const r of ye.parents(e,Zz))for(const n of ye.prev(r,rH))n.classList.add(pi)}_clearActiveClass(e){e.classList.remove(pi);const r=ye.find(`${Kc}.${pi}`,e);for(const n of r)n.classList.remove(pi)}static jQueryInterface(e){return this.each(function(){const r=Mu.getOrCreateInstance(this,e);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}le.on(window,Xz,()=>{for(const t of ye.find(Jz))Mu.getOrCreateInstance(t)});Dt(Mu);const aH="tab",lH="bs.tab",ui=`.${lH}`,uH=`hide${ui}`,cH=`hidden${ui}`,fH=`show${ui}`,dH=`shown${ui}`,hH=`click${ui}`,pH=`keydown${ui}`,gH=`load${ui}`,mH="ArrowLeft",Xy="ArrowRight",yH="ArrowUp",Qy="ArrowDown",Gc="Home",Jy="End",Bn="active",Zy="fade",Xc="show",wH="dropdown",AE=".dropdown-toggle",bH=".dropdown-menu",Qc=`:not(${AE})`,_H='.list-group, .nav, [role="tablist"]',vH=".nav-item, .list-group-item",EH=`.nav-link${Qc}, .list-group-item${Qc}, [role="tab"]${Qc}`,ME='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Jc=`${EH}, ${ME}`,SH=`.${Bn}[data-bs-toggle="tab"], .${Bn}[data-bs-toggle="pill"], .${Bn}[data-bs-toggle="list"]`;class es extends Qt{constructor(e){super(e),this._parent=this._element.closest(_H),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),le.on(this._element,pH,r=>this._keydown(r)))}static get NAME(){return aH}show(){const e=this._element;if(this._elemIsActive(e))return;const r=this._getActiveElem(),n=r?le.trigger(r,uH,{relatedTarget:e}):null;le.trigger(e,fH,{relatedTarget:r}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(r,e),this._activate(e,r))}_activate(e,r){if(!e)return;e.classList.add(Bn),this._activate(ye.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Xc);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),le.trigger(e,dH,{relatedTarget:r})};this._queueCallback(n,e,e.classList.contains(Zy))}_deactivate(e,r){if(!e)return;e.classList.remove(Bn),e.blur(),this._deactivate(ye.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Xc);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),le.trigger(e,cH,{relatedTarget:r})};this._queueCallback(n,e,e.classList.contains(Zy))}_keydown(e){if(![mH,Xy,yH,Qy,Gc,Jy].includes(e.key))return;e.stopPropagation(),e.preventDefault();const r=this._getChildren().filter(i=>!hn(i));let n;if([Gc,Jy].includes(e.key))n=r[e.key===Gc?0:r.length-1];else{const i=[Xy,Qy].includes(e.key);n=rp(r,e.target,i,!0)}n&&(n.focus({preventScroll:!0}),es.getOrCreateInstance(n).show())}_getChildren(){return ye.find(Jc,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,r){this._setAttributeIfNotExists(e,"role","tablist");for(const n of r)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const r=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",r),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),r||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const r=ye.getElementFromSelector(e);r&&(this._setAttributeIfNotExists(r,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(r,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,r){const n=this._getOuterElement(e);if(!n.classList.contains(wH))return;const i=(s,o)=>{const a=ye.findOne(s,n);a&&a.classList.toggle(o,r)};i(AE,Bn),i(bH,Xc),n.setAttribute("aria-expanded",r)}_setAttributeIfNotExists(e,r,n){e.hasAttribute(r)||e.setAttribute(r,n)}_elemIsActive(e){return e.classList.contains(Bn)}_getInnerElement(e){return e.matches(Jc)?e:ye.findOne(Jc,e)}_getOuterElement(e){return e.closest(vH)||e}static jQueryInterface(e){return this.each(function(){const r=es.getOrCreateInstance(this);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}le.on(document,hH,ME,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!hn(this)&&es.getOrCreateInstance(this).show()});le.on(window,gH,()=>{for(const t of ye.find(SH))es.getOrCreateInstance(t)});Dt(es);const xH="toast",TH="bs.toast",En=`.${TH}`,AH=`mouseover${En}`,MH=`mouseout${En}`,CH=`focusin${En}`,IH=`focusout${En}`,OH=`hide${En}`,PH=`hidden${En}`,RH=`show${En}`,LH=`shown${En}`,NH="fade",ew="hide",fa="show",da="showing",$H={animation:"boolean",autohide:"boolean",delay:"number"},kH={animation:!0,autohide:!0,delay:5e3};class Cu extends Qt{constructor(e,r){super(e,r),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return kH}static get DefaultType(){return $H}static get NAME(){return xH}show(){if(le.trigger(this._element,RH).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(NH);const r=()=>{this._element.classList.remove(da),le.trigger(this._element,LH),this._maybeScheduleHide()};this._element.classList.remove(ew),Lo(this._element),this._element.classList.add(fa,da),this._queueCallback(r,this._element,this._config.animation)}hide(){if(!this.isShown()||le.trigger(this._element,OH).defaultPrevented)return;const r=()=>{this._element.classList.add(ew),this._element.classList.remove(da,fa),le.trigger(this._element,PH)};this._element.classList.add(da),this._queueCallback(r,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(fa),super.dispose()}isShown(){return this._element.classList.contains(fa)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,r){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=r;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=r;break}}if(r){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){le.on(this._element,AH,e=>this._onInteraction(e,!0)),le.on(this._element,MH,e=>this._onInteraction(e,!1)),le.on(this._element,CH,e=>this._onInteraction(e,!0)),le.on(this._element,IH,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const r=Cu.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}xu(Cu);Dt(Cu);function DH(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;r({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let s;const o=st();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const a=o.createElement("div");function l(g,y){const b=e.params.virtual;if(b.cache&&e.virtual.cache[y])return e.virtual.cache[y];let E;return b.renderSlide?(E=b.renderSlide.call(e,g,y),typeof E=="string"&&(a.innerHTML=E,E=a.children[0])):e.isElement?E=Vt("swiper-slide"):E=Vt("div",e.params.slideClass),E.setAttribute("data-swiper-slide-index",y),b.renderSlide||(E.innerHTML=g),b.cache&&(e.virtual.cache[y]=E),E}function u(g){const{slidesPerView:y,slidesPerGroup:b,centeredSlides:E,loop:_}=e.params,{addSlidesBefore:v,addSlidesAfter:T}=e.params.virtual,{from:M,to:I,slides:$,slidesGrid:F,offset:L}=e.virtual;e.params.cssMode||e.updateActiveIndex();const U=e.activeIndex||0;let k;e.rtlTranslate?k="right":k=e.isHorizontal()?"left":"top";let W,D;E?(W=Math.floor(y/2)+b+T,D=Math.floor(y/2)+b+v):(W=y+(b-1)+T,D=(_?y:b)+v);let O=U-D,j=U+W;_||(O=Math.max(O,0),j=Math.min(j,$.length-1));let Q=(e.slidesGrid[O]||0)-(e.slidesGrid[0]||0);_&&U>=D?(O-=D,E||(Q+=e.slidesGrid[0])):_&&U{de.style[k]=`${Q-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),i("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:Q,from:O,to:j,slides:function(){const me=[];for(let be=O;be<=j;be+=1)me.push($[be]);return me}()}),e.params.virtual.renderExternalUpdate?H():i("virtualUpdate");return}const K=[],X=[],Z=de=>{let me=de;return de<0?me=$.length+de:me>=$.length&&(me=me-$.length),me};if(g)e.slides.filter(de=>de.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(de=>{de.remove()});else for(let de=M;de<=I;de+=1)if(dej){const me=Z(de);e.slides.filter(be=>be.matches(`.${e.params.slideClass}[data-swiper-slide-index="${me}"], swiper-slide[data-swiper-slide-index="${me}"]`)).forEach(be=>{be.remove()})}const ce=_?-$.length:0,pe=_?$.length*2:$.length;for(let de=ce;de=O&&de<=j){const me=Z(de);typeof I>"u"||g?X.push(me):(de>I&&X.push(me),de{e.slidesEl.append(l($[de],de))}),_)for(let de=K.length-1;de>=0;de-=1){const me=K[de];e.slidesEl.prepend(l($[me],me))}else K.sort((de,me)=>me-de),K.forEach(de=>{e.slidesEl.prepend(l($[de],de))});Qe(e.slidesEl,".swiper-slide, swiper-slide").forEach(de=>{de.style[k]=`${Q-Math.abs(e.cssOverflowAdjustment())}px`}),H()}function c(g){if(typeof g=="object"&&"length"in g)for(let y=0;y{const M=_[T],I=M.getAttribute("data-swiper-slide-index");I&&M.setAttribute("data-swiper-slide-index",parseInt(I,10)+E),v[parseInt(T,10)+E]=M}),e.virtual.cache=v}u(!0),e.slideTo(b,0)}function d(g){if(typeof g>"u"||g===null)return;let y=e.activeIndex;if(Array.isArray(g))for(let b=g.length-1;b>=0;b-=1)e.params.virtual.cache&&(delete e.virtual.cache[g[b]],Object.keys(e.virtual.cache).forEach(E=>{E>g&&(e.virtual.cache[E-1]=e.virtual.cache[E],e.virtual.cache[E-1].setAttribute("data-swiper-slide-index",E-1),delete e.virtual.cache[E])})),e.virtual.slides.splice(g[b],1),g[b]{b>g&&(e.virtual.cache[b-1]=e.virtual.cache[b],e.virtual.cache[b-1].setAttribute("data-swiper-slide-index",b-1),delete e.virtual.cache[b])})),e.virtual.slides.splice(g,1),g{if(!e.params.virtual.enabled)return;let g;if(typeof e.passedParams.virtual.slides>"u"){const y=[...e.slidesEl.children].filter(b=>b.matches(`.${e.params.slideClass}, swiper-slide`));y&&y.length&&(e.virtual.slides=[...y],g=!0,y.forEach((b,E)=>{b.setAttribute("data-swiper-slide-index",E),e.virtual.cache[E]=b,b.remove()}))}g||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,u()}),n("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(s),s=setTimeout(()=>{u()},100)):u())}),n("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&Fs(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:c,prependSlide:f,removeSlide:d,removeAllSlides:h,update:u})}function BH(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s=st(),o=je();e.keyboard={enabled:!1},r({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function a(c){if(!e.enabled)return;const{rtlTranslate:f}=e;let d=c;d.originalEvent&&(d=d.originalEvent);const h=d.keyCode||d.charCode,g=e.params.keyboard.pageUpDown,y=g&&h===33,b=g&&h===34,E=h===37,_=h===39,v=h===38,T=h===40;if(!e.allowSlideNext&&(e.isHorizontal()&&_||e.isVertical()&&T||b)||!e.allowSlidePrev&&(e.isHorizontal()&&E||e.isVertical()&&v||y))return!1;if(!(d.shiftKey||d.altKey||d.ctrlKey||d.metaKey)&&!(s.activeElement&&s.activeElement.nodeName&&(s.activeElement.nodeName.toLowerCase()==="input"||s.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(y||b||E||_||v||T)){let M=!1;if(Hn(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Hn(e.el,`.${e.params.slideActiveClass}`).length===0)return;const I=e.el,$=I.clientWidth,F=I.clientHeight,L=o.innerWidth,U=o.innerHeight,k=ml(I);f&&(k.left-=I.scrollLeft);const W=[[k.left,k.top],[k.left+$,k.top],[k.left,k.top+F],[k.left+$,k.top+F]];for(let D=0;D=0&&O[0]<=L&&O[1]>=0&&O[1]<=U){if(O[0]===0&&O[1]===0)continue;M=!0}}if(!M)return}e.isHorizontal()?((y||b||E||_)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),((b||_)&&!f||(y||E)&&f)&&e.slideNext(),((y||E)&&!f||(b||_)&&f)&&e.slidePrev()):((y||b||v||T)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),(b||T)&&e.slideNext(),(y||v)&&e.slidePrev()),i("keyPress",h)}}function l(){e.keyboard.enabled||(s.addEventListener("keydown",a),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(s.removeEventListener("keydown",a),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&l()}),n("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:l,disable:u})}function FH(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s=je();r({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let o,a=Ct(),l;const u=[];function c(v){let $=0,F=0,L=0,U=0;return"detail"in v&&(F=v.detail),"wheelDelta"in v&&(F=-v.wheelDelta/120),"wheelDeltaY"in v&&(F=-v.wheelDeltaY/120),"wheelDeltaX"in v&&($=-v.wheelDeltaX/120),"axis"in v&&v.axis===v.HORIZONTAL_AXIS&&($=F,F=0),L=$*10,U=F*10,"deltaY"in v&&(U=v.deltaY),"deltaX"in v&&(L=v.deltaX),v.shiftKey&&!L&&(L=U,U=0),(L||U)&&v.deltaMode&&(v.deltaMode===1?(L*=40,U*=40):(L*=800,U*=800)),L&&!$&&($=L<1?-1:1),U&&!F&&(F=U<1?-1:1),{spinX:$,spinY:F,pixelX:L,pixelY:U}}function f(){e.enabled&&(e.mouseEntered=!0)}function d(){e.enabled&&(e.mouseEntered=!1)}function h(v){return e.params.mousewheel.thresholdDelta&&v.delta=6&&Ct()-a<60?!0:(v.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),i("scroll",v.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),i("scroll",v.raw)),a=new s.Date().getTime(),!1)}function g(v){const T=e.params.mousewheel;if(v.direction<0){if(e.isEnd&&!e.params.loop&&T.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&T.releaseOnEdges)return!0;return!1}function y(v){let T=v,M=!0;if(!e.enabled||v.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const I=e.params.mousewheel;e.params.cssMode&&T.preventDefault();let $=e.el;e.params.mousewheel.eventsTarget!=="container"&&($=document.querySelector(e.params.mousewheel.eventsTarget));const F=$&&$.contains(T.target);if(!e.mouseEntered&&!F&&!I.releaseOnEdges)return!0;T.originalEvent&&(T=T.originalEvent);let L=0;const U=e.rtlTranslate?-1:1,k=c(T);if(I.forceToAxis)if(e.isHorizontal())if(Math.abs(k.pixelX)>Math.abs(k.pixelY))L=-k.pixelX*U;else return!0;else if(Math.abs(k.pixelY)>Math.abs(k.pixelX))L=-k.pixelY;else return!0;else L=Math.abs(k.pixelX)>Math.abs(k.pixelY)?-k.pixelX*U:-k.pixelY;if(L===0)return!0;I.invert&&(L=-L);let W=e.getTranslate()+L*I.sensitivity;if(W>=e.minTranslate()&&(W=e.minTranslate()),W<=e.maxTranslate()&&(W=e.maxTranslate()),M=e.params.loop?!0:!(W===e.minTranslate()||W===e.maxTranslate()),M&&e.params.nested&&T.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const D={time:Ct(),delta:Math.abs(L),direction:Math.sign(L),raw:v};u.length>=2&&u.shift();const O=u.length?u[u.length-1]:void 0;if(u.push(D),O?(D.direction!==O.direction||D.delta>O.delta||D.time>O.time+150)&&h(D):h(D),g(D))return!0}else{const D={time:Ct(),delta:Math.abs(L),direction:Math.sign(L)},O=l&&D.time=e.minTranslate()&&(j=e.minTranslate()),j<=e.maxTranslate()&&(j=e.maxTranslate()),e.setTransition(0),e.setTranslate(j),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!Q&&e.isBeginning||!H&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:D.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(o),o=void 0,u.length>=15&&u.shift();const K=u.length?u[u.length-1]:void 0,X=u[0];if(u.push(D),K&&(D.delta>K.delta||D.direction!==K.direction))u.splice(0);else if(u.length>=15&&D.time-X.time<500&&X.delta-D.delta>=1&&D.delta<=6){const Z=L>0?.8:.2;l=D,u.splice(0),o=Qn(()=>{e.slideToClosest(e.params.speed,!0,void 0,Z)},0)}o||(o=Qn(()=>{l=D,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(O||i("scroll",T),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),I.releaseOnEdges&&(j===e.minTranslate()||j===e.maxTranslate()))return!0}}return T.preventDefault?T.preventDefault():T.returnValue=!1,!1}function b(v){let T=e.el;e.params.mousewheel.eventsTarget!=="container"&&(T=document.querySelector(e.params.mousewheel.eventsTarget)),T[v]("mouseenter",f),T[v]("mouseleave",d),T[v]("wheel",y)}function E(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",y),!0):e.mousewheel.enabled?!1:(b("addEventListener"),e.mousewheel.enabled=!0,!0)}function _(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,y),!0):e.mousewheel.enabled?(b("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&_(),e.params.mousewheel.enabled&&E()}),n("destroy",()=>{e.params.cssMode&&E(),e.mousewheel.enabled&&_()}),Object.assign(e.mousewheel,{enable:E,disable:_})}function ap(t,e,r,n){return t.params.createElements&&Object.keys(n).forEach(i=>{if(!r[i]&&r.auto===!0){let s=Qe(t.el,`.${n[i]}`)[0];s||(s=Vt("div",n[i]),s.className=n[i],t.el.append(s)),r[i]=s,e[i]=s}}),r}function UH(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;r({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const s=y=>(Array.isArray(y)?y:[y]).filter(b=>!!b);function o(y){let b;return y&&typeof y=="string"&&e.isElement&&(b=e.el.querySelector(y),b)?b:(y&&(typeof y=="string"&&(b=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&b.length>1&&e.el.querySelectorAll(y).length===1&&(b=e.el.querySelector(y))),y&&!b?y:b)}function a(y,b){const E=e.params.navigation;y=s(y),y.forEach(_=>{_&&(_.classList[b?"add":"remove"](...E.disabledClass.split(" ")),_.tagName==="BUTTON"&&(_.disabled=b),e.params.watchOverflow&&e.enabled&&_.classList[e.isLocked?"add":"remove"](E.lockClass))})}function l(){const{nextEl:y,prevEl:b}=e.navigation;if(e.params.loop){a(b,!1),a(y,!1);return}a(b,e.isBeginning&&!e.params.rewind),a(y,e.isEnd&&!e.params.rewind)}function u(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function c(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function f(){const y=e.params.navigation;if(e.params.navigation=ap(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let b=o(y.nextEl),E=o(y.prevEl);Object.assign(e.navigation,{nextEl:b,prevEl:E}),b=s(b),E=s(E);const _=(v,T)=>{v&&v.addEventListener("click",T==="next"?c:u),!e.enabled&&v&&v.classList.add(...y.lockClass.split(" "))};b.forEach(v=>_(v,"next")),E.forEach(v=>_(v,"prev"))}function d(){let{nextEl:y,prevEl:b}=e.navigation;y=s(y),b=s(b);const E=(_,v)=>{_.removeEventListener("click",v==="next"?c:u),_.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(_=>E(_,"next")),b.forEach(_=>E(_,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?g():(f(),l())}),n("toEdge fromEdge lock unlock",()=>{l()}),n("destroy",()=>{d()}),n("enable disable",()=>{let{nextEl:y,prevEl:b}=e.navigation;if(y=s(y),b=s(b),e.enabled){l();return}[...y,...b].filter(E=>!!E).forEach(E=>E.classList.add(e.params.navigation.lockClass))}),n("click",(y,b)=>{let{nextEl:E,prevEl:_}=e.navigation;E=s(E),_=s(_);const v=b.target;if(e.params.navigation.hideOnClick&&!_.includes(v)&&!E.includes(v)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===v||e.pagination.el.contains(v)))return;let T;E.length?T=E[0].classList.contains(e.params.navigation.hiddenClass):_.length&&(T=_[0].classList.contains(e.params.navigation.hiddenClass)),i(T===!0?"navigationShow":"navigationHide"),[...E,..._].filter(M=>!!M).forEach(M=>M.classList.toggle(e.params.navigation.hiddenClass))}});const h=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),f(),l()},g=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:h,disable:g,update:l,init:f,destroy:d})}function nn(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function jH(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s="swiper-pagination";r({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:_=>_,formatFractionTotal:_=>_,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let o,a=0;const l=_=>(Array.isArray(_)?_:[_]).filter(v=>!!v);function u(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(_,v){const{bulletActiveClass:T}=e.params.pagination;_&&(_=_[`${v==="prev"?"previous":"next"}ElementSibling`],_&&(_.classList.add(`${T}-${v}`),_=_[`${v==="prev"?"previous":"next"}ElementSibling`],_&&_.classList.add(`${T}-${v}-${v}`)))}function f(_){const v=_.target.closest(nn(e.params.pagination.bulletClass));if(!v)return;_.preventDefault();const T=go(v)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===T)return;const M=e.realIndex,I=e.getSlideIndexByData(T),$=e.getSlideIndexByData(e.realIndex),F=L=>{const U=e.activeIndex;e.loopFix({direction:L,activeSlideIndex:I,slideTo:!1});const k=e.activeIndex;U===k&&e.slideToLoop(M,0,!1,!0)};if(I>e.slides.length-e.loopedSlides)F(I>$?"next":"prev");else if(e.params.centeredSlides){const L=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(parseFloat(e.params.slidesPerView,10));I1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(M=e.snapIndex,I=e.previousSnapIndex):(I=e.previousIndex||0,M=e.activeIndex||0),v.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const L=e.pagination.bullets;let U,k,W;if(v.dynamicBullets&&(o=rd(L[0],e.isHorizontal()?"width":"height",!0),T.forEach(D=>{D.style[e.isHorizontal()?"width":"height"]=`${o*(v.dynamicMainBullets+4)}px`}),v.dynamicMainBullets>1&&I!==void 0&&(a+=M-(I||0),a>v.dynamicMainBullets-1?a=v.dynamicMainBullets-1:a<0&&(a=0)),U=Math.max(M-a,0),k=U+(Math.min(L.length,v.dynamicMainBullets)-1),W=(k+U)/2),L.forEach(D=>{const O=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(j=>`${v.bulletActiveClass}${j}`)].map(j=>typeof j=="string"&&j.includes(" ")?j.split(" "):j).flat();D.classList.remove(...O)}),T.length>1)L.forEach(D=>{const O=go(D);O===M?D.classList.add(...v.bulletActiveClass.split(" ")):e.isElement&&D.setAttribute("part","bullet"),v.dynamicBullets&&(O>=U&&O<=k&&D.classList.add(...`${v.bulletActiveClass}-main`.split(" ")),O===U&&c(D,"prev"),O===k&&c(D,"next"))});else{const D=L[M];if(D&&D.classList.add(...v.bulletActiveClass.split(" ")),e.isElement&&L.forEach((O,j)=>{O.setAttribute("part",j===M?"bullet-active":"bullet")}),v.dynamicBullets){const O=L[U],j=L[k];for(let Q=U;Q<=k;Q+=1)L[Q]&&L[Q].classList.add(...`${v.bulletActiveClass}-main`.split(" "));c(O,"prev"),c(j,"next")}}if(v.dynamicBullets){const D=Math.min(L.length,v.dynamicMainBullets+4),O=(o*D-o)/2-W*o,j=_?"right":"left";L.forEach(Q=>{Q.style[e.isHorizontal()?j:"top"]=`${O}px`})}}T.forEach((L,U)=>{if(v.type==="fraction"&&(L.querySelectorAll(nn(v.currentClass)).forEach(k=>{k.textContent=v.formatFractionCurrent(M+1)}),L.querySelectorAll(nn(v.totalClass)).forEach(k=>{k.textContent=v.formatFractionTotal(F)})),v.type==="progressbar"){let k;v.progressbarOpposite?k=e.isHorizontal()?"vertical":"horizontal":k=e.isHorizontal()?"horizontal":"vertical";const W=(M+1)/F;let D=1,O=1;k==="horizontal"?D=W:O=W,L.querySelectorAll(nn(v.progressbarFillClass)).forEach(j=>{j.style.transform=`translate3d(0,0,0) scaleX(${D}) scaleY(${O})`,j.style.transitionDuration=`${e.params.speed}ms`})}v.type==="custom"&&v.renderCustom?(L.innerHTML=v.renderCustom(e,M+1,F),U===0&&i("paginationRender",L)):(U===0&&i("paginationRender",L),i("paginationUpdate",L)),e.params.watchOverflow&&e.enabled&&L.classList[e.isLocked?"add":"remove"](v.lockClass)})}function h(){const _=e.params.pagination;if(u())return;const v=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let T=e.pagination.el;T=l(T);let M="";if(_.type==="bullets"){let I=e.params.loop?Math.ceil(v/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&I>v&&(I=v);for(let $=0;$`}_.type==="fraction"&&(_.renderFraction?M=_.renderFraction.call(e,_.currentClass,_.totalClass):M=` / `),_.type==="progressbar"&&(_.renderProgressbar?M=_.renderProgressbar.call(e,_.progressbarFillClass):M=``),e.pagination.bullets=[],T.forEach(I=>{_.type!=="custom"&&(I.innerHTML=M||""),_.type==="bullets"&&e.pagination.bullets.push(...I.querySelectorAll(nn(_.bulletClass)))}),_.type!=="custom"&&i("paginationRender",T[0])}function g(){e.params.pagination=ap(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const _=e.params.pagination;if(!_.el)return;let v;typeof _.el=="string"&&e.isElement&&(v=e.el.querySelector(_.el)),!v&&typeof _.el=="string"&&(v=[...document.querySelectorAll(_.el)]),v||(v=_.el),!(!v||v.length===0)&&(e.params.uniqueNavElements&&typeof _.el=="string"&&Array.isArray(v)&&v.length>1&&(v=[...e.el.querySelectorAll(_.el)],v.length>1&&(v=v.filter(T=>Hn(T,".swiper")[0]===e.el)[0])),Array.isArray(v)&&v.length===1&&(v=v[0]),Object.assign(e.pagination,{el:v}),v=l(v),v.forEach(T=>{_.type==="bullets"&&_.clickable&&T.classList.add(...(_.clickableClass||"").split(" ")),T.classList.add(_.modifierClass+_.type),T.classList.add(e.isHorizontal()?_.horizontalClass:_.verticalClass),_.type==="bullets"&&_.dynamicBullets&&(T.classList.add(`${_.modifierClass}${_.type}-dynamic`),a=0,_.dynamicMainBullets<1&&(_.dynamicMainBullets=1)),_.type==="progressbar"&&_.progressbarOpposite&&T.classList.add(_.progressbarOppositeClass),_.clickable&&T.addEventListener("click",f),e.enabled||T.classList.add(_.lockClass)}))}function y(){const _=e.params.pagination;if(u())return;let v=e.pagination.el;v&&(v=l(v),v.forEach(T=>{T.classList.remove(_.hiddenClass),T.classList.remove(_.modifierClass+_.type),T.classList.remove(e.isHorizontal()?_.horizontalClass:_.verticalClass),_.clickable&&(T.classList.remove(...(_.clickableClass||"").split(" ")),T.removeEventListener("click",f))})),e.pagination.bullets&&e.pagination.bullets.forEach(T=>T.classList.remove(..._.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const _=e.params.pagination;let{el:v}=e.pagination;v=l(v),v.forEach(T=>{T.classList.remove(_.horizontalClass,_.verticalClass),T.classList.add(e.isHorizontal()?_.horizontalClass:_.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?E():(g(),h(),d())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&d()}),n("snapIndexChange",()=>{d()}),n("snapGridLengthChange",()=>{h(),d()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:_}=e.pagination;_&&(_=l(_),_.forEach(v=>v.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{d()}),n("click",(_,v)=>{const T=v.target,M=l(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&M&&M.length>0&&!T.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&T===e.navigation.nextEl||e.navigation.prevEl&&T===e.navigation.prevEl))return;const I=M[0].classList.contains(e.params.pagination.hiddenClass);i(I===!0?"paginationShow":"paginationHide"),M.forEach($=>$.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:_}=e.pagination;_&&(_=l(_),_.forEach(v=>v.classList.remove(e.params.pagination.paginationDisabledClass))),g(),h(),d()},E=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:_}=e.pagination;_&&(_=l(_),_.forEach(v=>v.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:b,disable:E,render:h,update:d,init:g,destroy:y})}function zH(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s=st();let o=!1,a=null,l=null,u,c,f,d;r({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function h(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:W,rtlTranslate:D}=e,{dragEl:O,el:j}=W,Q=e.params.scrollbar,H=e.params.loop?e.progressLoop:e.progress;let K=c,X=(f-c)*H;D?(X=-X,X>0?(K=c-X,X=0):-X+c>f&&(K=f+X)):X<0?(K=c+X,X=0):X+c>f&&(K=f-X),e.isHorizontal()?(O.style.transform=`translate3d(${X}px, 0, 0)`,O.style.width=`${K}px`):(O.style.transform=`translate3d(0px, ${X}px, 0)`,O.style.height=`${K}px`),Q.hide&&(clearTimeout(a),j.style.opacity=1,a=setTimeout(()=>{j.style.opacity=0,j.style.transitionDuration="400ms"},1e3))}function g(W){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${W}ms`)}function y(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:W}=e,{dragEl:D,el:O}=W;D.style.width="",D.style.height="",f=e.isHorizontal()?O.offsetWidth:O.offsetHeight,d=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?c=f*d:c=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?D.style.width=`${c}px`:D.style.height=`${c}px`,d>=1?O.style.display="none":O.style.display="",e.params.scrollbar.hide&&(O.style.opacity=0),e.params.watchOverflow&&e.enabled&&W.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function b(W){return e.isHorizontal()?W.clientX:W.clientY}function E(W){const{scrollbar:D,rtlTranslate:O}=e,{el:j}=D;let Q;Q=(b(W)-ml(j)[e.isHorizontal()?"left":"top"]-(u!==null?u:c/2))/(f-c),Q=Math.max(Math.min(Q,1),0),O&&(Q=1-Q);const H=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*Q;e.updateProgress(H),e.setTranslate(H),e.updateActiveIndex(),e.updateSlidesClasses()}function _(W){const D=e.params.scrollbar,{scrollbar:O,wrapperEl:j}=e,{el:Q,dragEl:H}=O;o=!0,u=W.target===H?b(W)-W.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,W.preventDefault(),W.stopPropagation(),j.style.transitionDuration="100ms",H.style.transitionDuration="100ms",E(W),clearTimeout(l),Q.style.transitionDuration="0ms",D.hide&&(Q.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",W)}function v(W){const{scrollbar:D,wrapperEl:O}=e,{el:j,dragEl:Q}=D;o&&(W.preventDefault?W.preventDefault():W.returnValue=!1,E(W),O.style.transitionDuration="0ms",j.style.transitionDuration="0ms",Q.style.transitionDuration="0ms",i("scrollbarDragMove",W))}function T(W){const D=e.params.scrollbar,{scrollbar:O,wrapperEl:j}=e,{el:Q}=O;o&&(o=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",j.style.transitionDuration=""),D.hide&&(clearTimeout(l),l=Qn(()=>{Q.style.opacity=0,Q.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",W),D.snapOnRelease&&e.slideToClosest())}function M(W){const{scrollbar:D,params:O}=e,j=D.el;if(!j)return;const Q=j,H=O.passiveListeners?{passive:!1,capture:!1}:!1,K=O.passiveListeners?{passive:!0,capture:!1}:!1;if(!Q)return;const X=W==="on"?"addEventListener":"removeEventListener";Q[X]("pointerdown",_,H),s[X]("pointermove",v,H),s[X]("pointerup",T,K)}function I(){!e.params.scrollbar.el||!e.scrollbar.el||M("on")}function $(){!e.params.scrollbar.el||!e.scrollbar.el||M("off")}function F(){const{scrollbar:W,el:D}=e;e.params.scrollbar=ap(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const O=e.params.scrollbar;if(!O.el)return;let j;typeof O.el=="string"&&e.isElement&&(j=e.el.querySelector(O.el)),!j&&typeof O.el=="string"?j=s.querySelectorAll(O.el):j||(j=O.el),e.params.uniqueNavElements&&typeof O.el=="string"&&j.length>1&&D.querySelectorAll(O.el).length===1&&(j=D.querySelector(O.el)),j.length>0&&(j=j[0]),j.classList.add(e.isHorizontal()?O.horizontalClass:O.verticalClass);let Q;j&&(Q=j.querySelector(`.${e.params.scrollbar.dragClass}`),Q||(Q=Vt("div",e.params.scrollbar.dragClass),j.append(Q))),Object.assign(W,{el:j,dragEl:Q}),O.draggable&&I(),j&&j.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}function L(){const W=e.params.scrollbar,D=e.scrollbar.el;D&&D.classList.remove(e.isHorizontal()?W.horizontalClass:W.verticalClass),$()}n("init",()=>{e.params.scrollbar.enabled===!1?k():(F(),y(),h())}),n("update resize observerUpdate lock unlock",()=>{y()}),n("setTranslate",()=>{h()}),n("setTransition",(W,D)=>{g(D)}),n("enable disable",()=>{const{el:W}=e.scrollbar;W&&W.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}),n("destroy",()=>{L()});const U=()=>{e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),F(),y(),h()},k=()=>{e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),L()};Object.assign(e.scrollbar,{enable:U,disable:k,updateSize:y,setTranslate:h,init:F,destroy:L})}function HH(t){let{swiper:e,extendParams:r,on:n}=t;r({parallax:{enabled:!1}});const i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",s=(l,u)=>{const{rtl:c}=e,f=c?-1:1,d=l.getAttribute("data-swiper-parallax")||"0";let h=l.getAttribute("data-swiper-parallax-x"),g=l.getAttribute("data-swiper-parallax-y");const y=l.getAttribute("data-swiper-parallax-scale"),b=l.getAttribute("data-swiper-parallax-opacity"),E=l.getAttribute("data-swiper-parallax-rotate");if(h||g?(h=h||"0",g=g||"0"):e.isHorizontal()?(h=d,g="0"):(g=d,h="0"),h.indexOf("%")>=0?h=`${parseInt(h,10)*u*f}%`:h=`${h*u*f}px`,g.indexOf("%")>=0?g=`${parseInt(g,10)*u}%`:g=`${g*u}px`,typeof b<"u"&&b!==null){const v=b-(b-1)*(1-Math.abs(u));l.style.opacity=v}let _=`translate3d(${h}, ${g}, 0px)`;if(typeof y<"u"&&y!==null){const v=y-(y-1)*(1-Math.abs(u));_+=` scale(${v})`}if(E&&typeof E<"u"&&E!==null){const v=E*u*-1;_+=` rotate(${v}deg)`}l.style.transform=_},o=()=>{const{el:l,slides:u,progress:c,snapGrid:f,isElement:d}=e,h=Qe(l,i);e.isElement&&h.push(...Qe(e.hostEl,i)),h.forEach(g=>{s(g,c)}),u.forEach((g,y)=>{let b=g.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(b+=Math.ceil(y/2)-c*(f.length-1)),b=Math.min(Math.max(b,-1),1),g.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach(E=>{s(E,b)})})},a=function(l){l===void 0&&(l=e.params.speed);const{el:u,hostEl:c}=e,f=[...u.querySelectorAll(i)];e.isElement&&f.push(...c.querySelectorAll(i)),f.forEach(d=>{let h=parseInt(d.getAttribute("data-swiper-parallax-duration"),10)||l;l===0&&(h=0),d.style.transitionDuration=`${h}ms`})};n("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),n("init",()=>{e.params.parallax.enabled&&o()}),n("setTranslate",()=>{e.params.parallax.enabled&&o()}),n("setTransition",(l,u)=>{e.params.parallax.enabled&&a(u)})}function WH(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s=je();r({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let o=1,a=!1,l,u;const c=[],f={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},d={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},h={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let g=1;Object.defineProperty(e.zoom,"scale",{get(){return g},set(H){if(g!==H){const K=f.imageEl,X=f.slideEl;i("zoomChange",H,K,X)}g=H}});function y(){if(c.length<2)return 1;const H=c[0].pageX,K=c[0].pageY,X=c[1].pageX,Z=c[1].pageY;return Math.sqrt((X-H)**2+(Z-K)**2)}function b(){if(c.length<2)return{x:null,y:null};const H=f.imageEl.getBoundingClientRect();return[(c[0].pageX+(c[1].pageX-c[0].pageX)/2-H.x-s.scrollX)/o,(c[0].pageY+(c[1].pageY-c[0].pageY)/2-H.y-s.scrollY)/o]}function E(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function _(H){const K=E();return!!(H.target.matches(K)||e.slides.filter(X=>X.contains(H.target)).length>0)}function v(H){const K=`.${e.params.zoom.containerClass}`;return!!(H.target.matches(K)||[...e.hostEl.querySelectorAll(K)].filter(X=>X.contains(H.target)).length>0)}function T(H){if(H.pointerType==="mouse"&&c.splice(0,c.length),!_(H))return;const K=e.params.zoom;if(l=!1,u=!1,c.push(H),!(c.length<2)){if(l=!0,f.scaleStart=y(),!f.slideEl){f.slideEl=H.target.closest(`.${e.params.slideClass}, swiper-slide`),f.slideEl||(f.slideEl=e.slides[e.activeIndex]);let X=f.slideEl.querySelector(`.${K.containerClass}`);if(X&&(X=X.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),f.imageEl=X,X?f.imageWrapEl=Hn(f.imageEl,`.${K.containerClass}`)[0]:f.imageWrapEl=void 0,!f.imageWrapEl){f.imageEl=void 0;return}f.maxRatio=f.imageWrapEl.getAttribute("data-swiper-zoom")||K.maxRatio}if(f.imageEl){const[X,Z]=b();f.originX=X,f.originY=Z,f.imageEl.style.transitionDuration="0ms"}a=!0}}function M(H){if(!_(H))return;const K=e.params.zoom,X=e.zoom,Z=c.findIndex(ce=>ce.pointerId===H.pointerId);Z>=0&&(c[Z]=H),!(c.length<2)&&(u=!0,f.scaleMove=y(),f.imageEl&&(X.scale=f.scaleMove/f.scaleStart*o,X.scale>f.maxRatio&&(X.scale=f.maxRatio-1+(X.scale-f.maxRatio+1)**.5),X.scalece.pointerId===H.pointerId);Z>=0&&c.splice(Z,1),!(!l||!u)&&(l=!1,u=!1,f.imageEl&&(X.scale=Math.max(Math.min(X.scale,f.maxRatio),K.minRatio),f.imageEl.style.transitionDuration=`${e.params.speed}ms`,f.imageEl.style.transform=`translate3d(0,0,0) scale(${X.scale})`,o=X.scale,a=!1,X.scale>1&&f.slideEl?f.slideEl.classList.add(`${K.zoomedSlideClass}`):X.scale<=1&&f.slideEl&&f.slideEl.classList.remove(`${K.zoomedSlideClass}`),X.scale===1&&(f.originX=0,f.originY=0,f.slideEl=void 0)))}function $(H){const K=e.device;if(!f.imageEl||d.isTouched)return;K.android&&H.cancelable&&H.preventDefault(),d.isTouched=!0;const X=c.length>0?c[0]:H;d.touchesStart.x=X.pageX,d.touchesStart.y=X.pageY}function F(H){if(!_(H)||!v(H))return;const K=e.zoom;if(!f.imageEl||!d.isTouched||!f.slideEl)return;d.isMoved||(d.width=f.imageEl.offsetWidth,d.height=f.imageEl.offsetHeight,d.startX=td(f.imageWrapEl,"x")||0,d.startY=td(f.imageWrapEl,"y")||0,f.slideWidth=f.slideEl.offsetWidth,f.slideHeight=f.slideEl.offsetHeight,f.imageWrapEl.style.transitionDuration="0ms");const X=d.width*K.scale,Z=d.height*K.scale;if(X0?c[0].pageX:H.pageX,d.touchesCurrent.y=c.length>0?c[0].pageY:H.pageY,Math.max(Math.abs(d.touchesCurrent.x-d.touchesStart.x),Math.abs(d.touchesCurrent.y-d.touchesStart.y))>5&&(e.allowClick=!1),!d.isMoved&&!a){if(e.isHorizontal()&&(Math.floor(d.minX)===Math.floor(d.startX)&&d.touchesCurrent.xd.touchesStart.x)){d.isTouched=!1;return}if(!e.isHorizontal()&&(Math.floor(d.minY)===Math.floor(d.startY)&&d.touchesCurrent.yd.touchesStart.y)){d.isTouched=!1;return}}H.cancelable&&H.preventDefault(),H.stopPropagation(),d.isMoved=!0;const pe=(K.scale-o)/(f.maxRatio-e.params.zoom.minRatio),{originX:de,originY:me}=f;d.currentX=d.touchesCurrent.x-d.touchesStart.x+d.startX+pe*(d.width-de*2),d.currentY=d.touchesCurrent.y-d.touchesStart.y+d.startY+pe*(d.height-me*2),d.currentXd.maxX&&(d.currentX=d.maxX-1+(d.currentX-d.maxX+1)**.8),d.currentYd.maxY&&(d.currentY=d.maxY-1+(d.currentY-d.maxY+1)**.8),h.prevPositionX||(h.prevPositionX=d.touchesCurrent.x),h.prevPositionY||(h.prevPositionY=d.touchesCurrent.y),h.prevTime||(h.prevTime=Date.now()),h.x=(d.touchesCurrent.x-h.prevPositionX)/(Date.now()-h.prevTime)/2,h.y=(d.touchesCurrent.y-h.prevPositionY)/(Date.now()-h.prevTime)/2,Math.abs(d.touchesCurrent.x-h.prevPositionX)<2&&(h.x=0),Math.abs(d.touchesCurrent.y-h.prevPositionY)<2&&(h.y=0),h.prevPositionX=d.touchesCurrent.x,h.prevPositionY=d.touchesCurrent.y,h.prevTime=Date.now(),f.imageWrapEl.style.transform=`translate3d(${d.currentX}px, ${d.currentY}px,0)`}function L(){const H=e.zoom;if(!f.imageEl)return;if(!d.isTouched||!d.isMoved){d.isTouched=!1,d.isMoved=!1;return}d.isTouched=!1,d.isMoved=!1;let K=300,X=300;const Z=h.x*K,ce=d.currentX+Z,pe=h.y*X,de=d.currentY+pe;h.x!==0&&(K=Math.abs((ce-d.currentX)/h.x)),h.y!==0&&(X=Math.abs((de-d.currentY)/h.y));const me=Math.max(K,X);d.currentX=ce,d.currentY=de;const be=d.width*H.scale,G=d.height*H.scale;d.minX=Math.min(f.slideWidth/2-be/2,0),d.maxX=-d.minX,d.minY=Math.min(f.slideHeight/2-G/2,0),d.maxY=-d.minY,d.currentX=Math.max(Math.min(d.currentX,d.maxX),d.minX),d.currentY=Math.max(Math.min(d.currentY,d.maxY),d.minY),f.imageWrapEl.style.transitionDuration=`${me}ms`,f.imageWrapEl.style.transform=`translate3d(${d.currentX}px, ${d.currentY}px,0)`}function U(){const H=e.zoom;f.slideEl&&e.activeIndex!==e.slides.indexOf(f.slideEl)&&(f.imageEl&&(f.imageEl.style.transform="translate3d(0,0,0) scale(1)"),f.imageWrapEl&&(f.imageWrapEl.style.transform="translate3d(0,0,0)"),f.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),H.scale=1,o=1,f.slideEl=void 0,f.imageEl=void 0,f.imageWrapEl=void 0,f.originX=0,f.originY=0)}function k(H){const K=e.zoom,X=e.params.zoom;if(!f.slideEl){H&&H.target&&(f.slideEl=H.target.closest(`.${e.params.slideClass}, swiper-slide`)),f.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?f.slideEl=Qe(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:f.slideEl=e.slides[e.activeIndex]);let re=f.slideEl.querySelector(`.${X.containerClass}`);re&&(re=re.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),f.imageEl=re,re?f.imageWrapEl=Hn(f.imageEl,`.${X.containerClass}`)[0]:f.imageWrapEl=void 0}if(!f.imageEl||!f.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),f.slideEl.classList.add(`${X.zoomedSlideClass}`);let Z,ce,pe,de,me,be,G,Y,ne,ee,ue,P,w,S,A,B,z,q;typeof d.touchesStart.x>"u"&&H?(Z=H.pageX,ce=H.pageY):(Z=d.touchesStart.x,ce=d.touchesStart.y);const ie=typeof H=="number"?H:null;o===1&&ie&&(Z=void 0,ce=void 0),K.scale=ie||f.imageWrapEl.getAttribute("data-swiper-zoom")||X.maxRatio,o=ie||f.imageWrapEl.getAttribute("data-swiper-zoom")||X.maxRatio,H&&!(o===1&&ie)?(z=f.slideEl.offsetWidth,q=f.slideEl.offsetHeight,pe=ml(f.slideEl).left+s.scrollX,de=ml(f.slideEl).top+s.scrollY,me=pe+z/2-Z,be=de+q/2-ce,ne=f.imageEl.offsetWidth,ee=f.imageEl.offsetHeight,ue=ne*K.scale,P=ee*K.scale,w=Math.min(z/2-ue/2,0),S=Math.min(q/2-P/2,0),A=-w,B=-S,G=me*K.scale,Y=be*K.scale,GA&&(G=A),YB&&(Y=B)):(G=0,Y=0),ie&&K.scale===1&&(f.originX=0,f.originY=0),f.imageWrapEl.style.transitionDuration="300ms",f.imageWrapEl.style.transform=`translate3d(${G}px, ${Y}px,0)`,f.imageEl.style.transitionDuration="300ms",f.imageEl.style.transform=`translate3d(0,0,0) scale(${K.scale})`}function W(){const H=e.zoom,K=e.params.zoom;if(!f.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?f.slideEl=Qe(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:f.slideEl=e.slides[e.activeIndex];let X=f.slideEl.querySelector(`.${K.containerClass}`);X&&(X=X.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),f.imageEl=X,X?f.imageWrapEl=Hn(f.imageEl,`.${K.containerClass}`)[0]:f.imageWrapEl=void 0}!f.imageEl||!f.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),H.scale=1,o=1,f.imageWrapEl.style.transitionDuration="300ms",f.imageWrapEl.style.transform="translate3d(0,0,0)",f.imageEl.style.transitionDuration="300ms",f.imageEl.style.transform="translate3d(0,0,0) scale(1)",f.slideEl.classList.remove(`${K.zoomedSlideClass}`),f.slideEl=void 0,f.originX=0,f.originY=0)}function D(H){const K=e.zoom;K.scale&&K.scale!==1?W():k(H)}function O(){const H=e.params.passiveListeners?{passive:!0,capture:!1}:!1,K=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:H,activeListenerWithCapture:K}}function j(){const H=e.zoom;if(H.enabled)return;H.enabled=!0;const{passiveListener:K,activeListenerWithCapture:X}=O();e.wrapperEl.addEventListener("pointerdown",T,K),e.wrapperEl.addEventListener("pointermove",M,X),["pointerup","pointercancel","pointerout"].forEach(Z=>{e.wrapperEl.addEventListener(Z,I,K)}),e.wrapperEl.addEventListener("pointermove",F,X)}function Q(){const H=e.zoom;if(!H.enabled)return;H.enabled=!1;const{passiveListener:K,activeListenerWithCapture:X}=O();e.wrapperEl.removeEventListener("pointerdown",T,K),e.wrapperEl.removeEventListener("pointermove",M,X),["pointerup","pointercancel","pointerout"].forEach(Z=>{e.wrapperEl.removeEventListener(Z,I,K)}),e.wrapperEl.removeEventListener("pointermove",F,X)}n("init",()=>{e.params.zoom.enabled&&j()}),n("destroy",()=>{Q()}),n("touchStart",(H,K)=>{e.zoom.enabled&&$(K)}),n("touchEnd",(H,K)=>{e.zoom.enabled&&L()}),n("doubleTap",(H,K)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&D(K)}),n("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&U()}),n("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&U()}),Object.assign(e.zoom,{enable:j,disable:Q,in:k,out:W,toggle:D})}function VH(t){let{swiper:e,extendParams:r,on:n}=t;r({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0};function i(u,c){const f=function(){let y,b,E;return(_,v)=>{for(b=-1,y=_.length;y-b>1;)E=y+b>>1,_[E]<=v?b=E:y=E;return y}}();this.x=u,this.y=c,this.lastIndex=u.length-1;let d,h;return this.interpolate=function(y){return y?(h=f(this.x,y),d=h-1,(y-this.x[d])*(this.y[h]-this.y[d])/(this.x[h]-this.x[d])+this.y[d]):0},this}function s(u){e.controller.spline=e.params.loop?new i(e.slidesGrid,u.slidesGrid):new i(e.snapGrid,u.snapGrid)}function o(u,c){const f=e.controller.control;let d,h;const g=e.constructor;function y(b){if(b.destroyed)return;const E=e.rtlTranslate?-e.translate:e.translate;e.params.controller.by==="slide"&&(s(b),h=-e.controller.spline.interpolate(-E)),(!h||e.params.controller.by==="container")&&(d=(b.maxTranslate()-b.minTranslate())/(e.maxTranslate()-e.minTranslate()),(Number.isNaN(d)||!Number.isFinite(d))&&(d=1),h=(E-e.minTranslate())*d+b.minTranslate()),e.params.controller.inverse&&(h=b.maxTranslate()-h),b.updateProgress(h),b.setTranslate(h,e),b.updateActiveIndex(),b.updateSlidesClasses()}if(Array.isArray(f))for(let b=0;b{y.updateAutoHeight()}),Xs(y.wrapperEl,()=>{d&&y.transitionEnd()})))}if(Array.isArray(d))for(h=0;h{if(typeof window<"u"&&(typeof e.params.controller.control=="string"||e.params.controller.control instanceof HTMLElement)){const u=document.querySelector(e.params.controller.control);if(u&&u.swiper)e.controller.control=u.swiper;else if(u){const c=f=>{e.controller.control=f.detail[0],e.update(),u.removeEventListener("init",c)};u.addEventListener("init",c)}return}e.controller.control=e.params.controller.control}),n("update",()=>{l()}),n("resize",()=>{l()}),n("observerUpdate",()=>{l()}),n("setTranslate",(u,c,f)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTranslate(c,f)}),n("setTransition",(u,c,f)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTransition(c,f)}),Object.assign(e.controller,{setTranslate:o,setTransition:a})}function qH(t){let{swiper:e,extendParams:r,on:n}=t;r({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let i=null;function s(O){const j=i;j.length!==0&&(j.innerHTML="",j.innerHTML=O)}const o=O=>(Array.isArray(O)?O:[O]).filter(j=>!!j);function a(O){O===void 0&&(O=16);const j=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(O).replace(/x/g,j)}function l(O){O=o(O),O.forEach(j=>{j.setAttribute("tabIndex","0")})}function u(O){O=o(O),O.forEach(j=>{j.setAttribute("tabIndex","-1")})}function c(O,j){O=o(O),O.forEach(Q=>{Q.setAttribute("role",j)})}function f(O,j){O=o(O),O.forEach(Q=>{Q.setAttribute("aria-roledescription",j)})}function d(O,j){O=o(O),O.forEach(Q=>{Q.setAttribute("aria-controls",j)})}function h(O,j){O=o(O),O.forEach(Q=>{Q.setAttribute("aria-label",j)})}function g(O,j){O=o(O),O.forEach(Q=>{Q.setAttribute("id",j)})}function y(O,j){O=o(O),O.forEach(Q=>{Q.setAttribute("aria-live",j)})}function b(O){O=o(O),O.forEach(j=>{j.setAttribute("aria-disabled",!0)})}function E(O){O=o(O),O.forEach(j=>{j.setAttribute("aria-disabled",!1)})}function _(O){if(O.keyCode!==13&&O.keyCode!==32)return;const j=e.params.a11y,Q=O.target;e.pagination&&e.pagination.el&&(Q===e.pagination.el||e.pagination.el.contains(O.target))&&!O.target.matches(nn(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&Q===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(j.lastSlideMessage):s(j.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&Q===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(j.firstSlideMessage):s(j.prevSlideMessage)),e.pagination&&Q.matches(nn(e.params.pagination.bulletClass))&&Q.click())}function v(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:O,prevEl:j}=e.navigation;j&&(e.isBeginning?(b(j),u(j)):(E(j),l(j))),O&&(e.isEnd?(b(O),u(O)):(E(O),l(O)))}function T(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function M(){return T()&&e.params.pagination.clickable}function I(){const O=e.params.a11y;T()&&e.pagination.bullets.forEach(j=>{e.params.pagination.clickable&&(l(j),e.params.pagination.renderBullet||(c(j,"button"),h(j,O.paginationBulletMessage.replace(/\{\{index\}\}/,go(j)+1)))),j.matches(nn(e.params.pagination.bulletActiveClass))?j.setAttribute("aria-current","true"):j.removeAttribute("aria-current")})}const $=(O,j,Q)=>{l(O),O.tagName!=="BUTTON"&&(c(O,"button"),O.addEventListener("keydown",_)),h(O,Q),d(O,j)},F=()=>{e.a11y.clicked=!0},L=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},U=O=>{if(e.a11y.clicked)return;const j=O.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!j||!e.slides.includes(j))return;const Q=e.slides.indexOf(j)===e.activeIndex,H=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(j);Q||H||O.sourceCapabilities&&O.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(j),0))},k=()=>{const O=e.params.a11y;O.itemRoleDescriptionMessage&&f(e.slides,O.itemRoleDescriptionMessage),O.slideRole&&c(e.slides,O.slideRole);const j=e.slides.length;O.slideLabelMessage&&e.slides.forEach((Q,H)=>{const K=e.params.loop?parseInt(Q.getAttribute("data-swiper-slide-index"),10):H,X=O.slideLabelMessage.replace(/\{\{index\}\}/,K+1).replace(/\{\{slidesLength\}\}/,j);h(Q,X)})},W=()=>{const O=e.params.a11y;e.el.append(i);const j=e.el;O.containerRoleDescriptionMessage&&f(j,O.containerRoleDescriptionMessage),O.containerMessage&&h(j,O.containerMessage);const Q=e.wrapperEl,H=O.id||Q.getAttribute("id")||`swiper-wrapper-${a(16)}`,K=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";g(Q,H),y(Q,K),k();let{nextEl:X,prevEl:Z}=e.navigation?e.navigation:{};X=o(X),Z=o(Z),X&&X.forEach(ce=>$(ce,H,O.nextSlideMessage)),Z&&Z.forEach(ce=>$(ce,H,O.prevSlideMessage)),M()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(pe=>{pe.addEventListener("keydown",_)}),e.el.addEventListener("focus",U,!0),e.el.addEventListener("pointerdown",F,!0),e.el.addEventListener("pointerup",L,!0)};function D(){i&&i.remove();let{nextEl:O,prevEl:j}=e.navigation?e.navigation:{};O=o(O),j=o(j),O&&O.forEach(Q=>Q.removeEventListener("keydown",_)),j&&j.forEach(Q=>Q.removeEventListener("keydown",_)),M()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(H=>{H.removeEventListener("keydown",_)}),e.el.removeEventListener("focus",U,!0),e.el.removeEventListener("pointerdown",F,!0),e.el.removeEventListener("pointerup",L,!0)}n("beforeInit",()=>{i=Vt("span",e.params.a11y.notificationClass),i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&W()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&k()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&v()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&I()}),n("destroy",()=>{e.params.a11y.enabled&&D()})}function YH(t){let{swiper:e,extendParams:r,on:n}=t;r({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,s={};const o=h=>h.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),a=h=>{const g=je();let y;h?y=new URL(h):y=g.location;const b=y.pathname.slice(1).split("/").filter(T=>T!==""),E=b.length,_=b[E-2],v=b[E-1];return{key:_,value:v}},l=(h,g)=>{const y=je();if(!i||!e.params.history.enabled)return;let b;e.params.url?b=new URL(e.params.url):b=y.location;const E=e.slides[g];let _=o(E.getAttribute("data-history"));if(e.params.history.root.length>0){let T=e.params.history.root;T[T.length-1]==="/"&&(T=T.slice(0,T.length-1)),_=`${T}/${h?`${h}/`:""}${_}`}else b.pathname.includes(h)||(_=`${h?`${h}/`:""}${_}`);e.params.history.keepQuery&&(_+=b.search);const v=y.history.state;v&&v.value===_||(e.params.history.replaceState?y.history.replaceState({value:_},null,_):y.history.pushState({value:_},null,_))},u=(h,g,y)=>{if(g)for(let b=0,E=e.slides.length;b{s=a(e.params.url),u(e.params.speed,s.value,!1)},f=()=>{const h=je();if(e.params.history){if(!h.history||!h.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(i=!0,s=a(e.params.url),!s.key&&!s.value){e.params.history.replaceState||h.addEventListener("popstate",c);return}u(0,s.value,e.params.runCallbacksOnInit),e.params.history.replaceState||h.addEventListener("popstate",c)}},d=()=>{const h=je();e.params.history.replaceState||h.removeEventListener("popstate",c)};n("init",()=>{e.params.history.enabled&&f()}),n("destroy",()=>{e.params.history.enabled&&d()}),n("transitionEnd _freeModeNoMomentumRelease",()=>{i&&l(e.params.history.key,e.activeIndex)}),n("slideChange",()=>{i&&e.params.cssMode&&l(e.params.history.key,e.activeIndex)})}function KH(t){let{swiper:e,extendParams:r,emit:n,on:i}=t,s=!1;const o=st(),a=je();r({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(d,h){if(e.virtual&&e.params.virtual.enabled){const g=e.slides.filter(b=>b.getAttribute("data-hash")===h)[0];return g?parseInt(g.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex(Qe(e.slidesEl,`.${e.params.slideClass}[data-hash="${h}"], swiper-slide[data-hash="${h}"]`)[0])}}});const l=()=>{n("hashChange");const d=o.location.hash.replace("#",""),h=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],g=h?h.getAttribute("data-hash"):"";if(d!==g){const y=e.params.hashNavigation.getSlideIndex(e,d);if(typeof y>"u"||Number.isNaN(y))return;e.slideTo(y)}},u=()=>{if(!s||!e.params.hashNavigation.enabled)return;const d=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],h=d?d.getAttribute("data-hash")||d.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&a.history&&a.history.replaceState?(a.history.replaceState(null,null,`#${h}`||""),n("hashSet")):(o.location.hash=h||"",n("hashSet"))},c=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;s=!0;const d=o.location.hash.replace("#","");if(d){const g=e.params.hashNavigation.getSlideIndex(e,d);e.slideTo(g||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&a.addEventListener("hashchange",l)},f=()=>{e.params.hashNavigation.watchState&&a.removeEventListener("hashchange",l)};i("init",()=>{e.params.hashNavigation.enabled&&c()}),i("destroy",()=>{e.params.hashNavigation.enabled&&f()}),i("transitionEnd _freeModeNoMomentumRelease",()=>{s&&u()}),i("slideChange",()=>{s&&e.params.cssMode&&u()})}function GH(t){let{swiper:e,extendParams:r,on:n,emit:i,params:s}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,a,l=s&&s.autoplay?s.autoplay.delay:3e3,u=s&&s.autoplay?s.autoplay.delay:3e3,c,f=new Date().getTime,d,h,g,y,b,E;function _(H){!e||e.destroyed||!e.wrapperEl||H.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",_),L())}const v=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?d=!0:d&&(u=c,d=!1);const H=e.autoplay.paused?c:f+u-new Date().getTime();e.autoplay.timeLeft=H,i("autoplayTimeLeft",H,H/l),a=requestAnimationFrame(()=>{v()})},T=()=>{let H;return e.virtual&&e.params.virtual.enabled?H=e.slides.filter(X=>X.classList.contains("swiper-slide-active"))[0]:H=e.slides[e.activeIndex],H?parseInt(H.getAttribute("data-swiper-autoplay"),10):void 0},M=H=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(a),v();let K=typeof H>"u"?e.params.autoplay.delay:H;l=e.params.autoplay.delay,u=e.params.autoplay.delay;const X=T();!Number.isNaN(X)&&X>0&&typeof H>"u"&&(K=X,l=X,u=X),c=K;const Z=e.params.speed,ce=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(Z,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,Z,!0,!0),i("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(Z,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,Z,!0,!0),i("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{M()})))};return K>0?(clearTimeout(o),o=setTimeout(()=>{ce()},K)):requestAnimationFrame(()=>{ce()}),K},I=()=>{e.autoplay.running=!0,M(),i("autoplayStart")},$=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(a),i("autoplayStop")},F=(H,K)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),H||(E=!0);const X=()=>{i("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",_):L()};if(e.autoplay.paused=!0,K){b&&(c=e.params.autoplay.delay),b=!1,X();return}c=(c||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&c<0&&!e.params.loop)&&(c<0&&(c=0),X())},L=()=>{e.isEnd&&c<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),E?(E=!1,M(c)):M(),e.autoplay.paused=!1,i("autoplayResume"))},U=()=>{if(e.destroyed||!e.autoplay.running)return;const H=st();H.visibilityState==="hidden"&&(E=!0,F(!0)),H.visibilityState==="visible"&&L()},k=H=>{H.pointerType==="mouse"&&(E=!0,!(e.animating||e.autoplay.paused)&&F(!0))},W=H=>{H.pointerType==="mouse"&&e.autoplay.paused&&L()},D=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",k),e.el.addEventListener("pointerleave",W))},O=()=>{e.el.removeEventListener("pointerenter",k),e.el.removeEventListener("pointerleave",W)},j=()=>{st().addEventListener("visibilitychange",U)},Q=()=>{st().removeEventListener("visibilitychange",U)};n("init",()=>{e.params.autoplay.enabled&&(D(),j(),f=new Date().getTime(),I())}),n("destroy",()=>{O(),Q(),e.autoplay.running&&$()}),n("beforeTransitionStart",(H,K,X)=>{e.destroyed||!e.autoplay.running||(X||!e.params.autoplay.disableOnInteraction?F(!0,!0):$())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){$();return}h=!0,g=!1,E=!1,y=setTimeout(()=>{E=!0,g=!0,F(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!h)){if(clearTimeout(y),clearTimeout(o),e.params.autoplay.disableOnInteraction){g=!1,h=!1;return}g&&e.params.cssMode&&L(),g=!1,h=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(b=!0)}),Object.assign(e.autoplay,{start:I,stop:$,pause:F,resume:L})}function XH(t){let{swiper:e,extendParams:r,on:n}=t;r({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,s=!1;e.thumbs={swiper:null};function o(){const u=e.thumbs.swiper;if(!u||u.destroyed)return;const c=u.clickedIndex,f=u.clickedSlide;if(f&&f.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof c>"u"||c===null)return;let d;u.params.loop?d=parseInt(u.clickedSlide.getAttribute("data-swiper-slide-index"),10):d=c,e.params.loop?e.slideToLoop(d):e.slideTo(d)}function a(){const{thumbs:u}=e.params;if(i)return!1;i=!0;const c=e.constructor;if(u.swiper instanceof c)e.thumbs.swiper=u.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(Bs(u.swiper)){const f=Object.assign({},u.swiper);Object.assign(f,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new c(f),s=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",o),!0}function l(u){const c=e.thumbs.swiper;if(!c||c.destroyed)return;const f=c.params.slidesPerView==="auto"?c.slidesPerViewDynamic():c.params.slidesPerView;let d=1;const h=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(d=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(d=1),d=Math.floor(d),c.slides.forEach(b=>b.classList.remove(h)),c.params.loop||c.params.virtual&&c.params.virtual.enabled)for(let b=0;b{E.classList.add(h)});else for(let b=0;bT.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];E=c.slides.indexOf(v),_=e.activeIndex>e.previousIndex?"next":"prev"}else E=e.realIndex,_=E>e.previousIndex?"next":"prev";y&&(E+=_==="next"?g:-1*g),c.visibleSlidesIndexes&&c.visibleSlidesIndexes.indexOf(E)<0&&(c.params.centeredSlides?E>b?E=E-Math.floor(f/2)+1:E=E+Math.floor(f/2)-1:E>b&&c.params.slidesPerGroup,c.slideTo(E,u?0:void 0))}}n("beforeInit",()=>{const{thumbs:u}=e.params;if(!(!u||!u.swiper))if(typeof u.swiper=="string"||u.swiper instanceof HTMLElement){const c=st(),f=()=>{const h=typeof u.swiper=="string"?c.querySelector(u.swiper):u.swiper;if(h&&h.swiper)u.swiper=h.swiper,a(),l(!0);else if(h){const g=y=>{u.swiper=y.detail[0],h.removeEventListener("init",g),a(),l(!0),u.swiper.update(),e.update()};h.addEventListener("init",g)}return h},d=()=>{if(e.destroyed)return;f()||requestAnimationFrame(d)};requestAnimationFrame(d)}else a(),l(!0)}),n("slideChange update resize observerUpdate",()=>{l()}),n("setTransition",(u,c)=>{const f=e.thumbs.swiper;!f||f.destroyed||f.setTransition(c)}),n("beforeDestroy",()=>{const u=e.thumbs.swiper;!u||u.destroyed||s&&u.destroy()}),Object.assign(e.thumbs,{init:a,update:l})}function QH(t){let{swiper:e,extendParams:r,emit:n,once:i}=t;r({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function s(){if(e.params.cssMode)return;const l=e.getTranslate();e.setTranslate(l),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function o(){if(e.params.cssMode)return;const{touchEventsData:l,touches:u}=e;l.velocities.length===0&&l.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:l.touchStartTime}),l.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:Ct()})}function a(l){let{currentPos:u}=l;if(e.params.cssMode)return;const{params:c,wrapperEl:f,rtlTranslate:d,snapGrid:h,touchEventsData:g}=e,b=Ct()-g.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length1){const F=g.velocities.pop(),L=g.velocities.pop(),U=F.position-L.position,k=F.time-L.time;e.velocity=U/k,e.velocity/=2,Math.abs(e.velocity)150||Ct()-F.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=c.freeMode.momentumVelocityRatio,g.velocities.length=0;let E=1e3*c.freeMode.momentumRatio;const _=e.velocity*E;let v=e.translate+_;d&&(v=-v);let T=!1,M;const I=Math.abs(e.velocity)*20*c.freeMode.momentumBounceRatio;let $;if(ve.minTranslate())c.freeMode.momentumBounce?(v-e.minTranslate()>I&&(v=e.minTranslate()+I),M=e.minTranslate(),T=!0,g.allowMomentumBounce=!0):v=e.minTranslate(),c.loop&&c.centeredSlides&&($=!0);else if(c.freeMode.sticky){let F;for(let L=0;L-v){F=L;break}Math.abs(h[F]-v){e.loopFix()}),e.velocity!==0){if(d?E=Math.abs((-v-e.translate)/e.velocity):E=Math.abs((v-e.translate)/e.velocity),c.freeMode.sticky){const F=Math.abs((d?-v:v)-e.translate),L=e.slidesSizesGrid[e.activeIndex];F{!e||e.destroyed||!g.allowMomentumBounce||(n("momentumBounce"),e.setTransition(c.speed),setTimeout(()=>{e.setTranslate(M),Xs(f,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(v),e.setTransition(E),e.setTranslate(v),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,Xs(f,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(v),e.updateActiveIndex(),e.updateSlidesClasses()}else if(c.freeMode.sticky){e.slideToClosest();return}else c.freeMode&&n("_freeModeNoMomentumRelease");(!c.freeMode.momentum||b>=c.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:s,onTouchMove:o,onTouchEnd:a}})}function JH(t){let{swiper:e,extendParams:r,on:n}=t;r({grid:{rows:1,fill:"column"}});let i,s,o,a;const l=()=>{let g=e.params.spaceBetween;return typeof g=="string"&&g.indexOf("%")>=0?g=parseFloat(g.replace("%",""))/100*e.size:typeof g=="string"&&(g=parseFloat(g)),g},u=g=>{const{slidesPerView:y}=e.params,{rows:b,fill:E}=e.params.grid;o=Math.floor(g/b),Math.floor(g/b)===g/b?i=g:i=Math.ceil(g/b)*b,y!=="auto"&&E==="row"&&(i=Math.max(i,y*b)),s=i/b},c=(g,y,b,E)=>{const{slidesPerGroup:_}=e.params,v=l(),{rows:T,fill:M}=e.params.grid;let I,$,F;if(M==="row"&&_>1){const L=Math.floor(g/(_*T)),U=g-T*_*L,k=L===0?_:Math.min(Math.ceil((b-L*T*_)/T),_);F=Math.floor(U/k),$=U-F*k+L*_,I=$+F*i/T,y.style.order=I}else M==="column"?($=Math.floor(g/T),F=g-$*T,($>o||$===o&&F===T-1)&&(F+=1,F>=T&&(F=0,$+=1))):(F=Math.floor(g/s),$=g-F*s);y.row=F,y.column=$,y.style[E("margin-top")]=F!==0?v&&`${v}px`:""},f=(g,y,b)=>{const{centeredSlides:E,roundLengths:_}=e.params,v=l(),{rows:T}=e.params.grid;if(e.virtualSize=(g+v)*i,e.virtualSize=Math.ceil(e.virtualSize/T)-v,e.wrapperEl.style[b("width")]=`${e.virtualSize+v}px`,E){const M=[];for(let I=0;I{a=e.params.grid&&e.params.grid.rows>1},h=()=>{const{params:g,el:y}=e,b=g.grid&&g.grid.rows>1;a&&!b?(y.classList.remove(`${g.containerModifierClass}grid`,`${g.containerModifierClass}grid-column`),o=1,e.emitContainerClasses()):!a&&b&&(y.classList.add(`${g.containerModifierClass}grid`),g.grid.fill==="column"&&y.classList.add(`${g.containerModifierClass}grid-column`),e.emitContainerClasses()),a=b};n("init",d),n("update",h),e.grid={initSlides:u,updateSlide:c,updateWrapperSize:f}}function ZH(t){const e=this,{params:r,slidesEl:n}=e;r.loop&&e.loopDestroy();const i=s=>{if(typeof s=="string"){const o=document.createElement("div");o.innerHTML=s,n.append(o.children[0]),o.innerHTML=""}else n.append(s)};if(typeof t=="object"&&"length"in t)for(let s=0;s{if(typeof a=="string"){const l=document.createElement("div");l.innerHTML=a,i.prepend(l.children[0]),l.innerHTML=""}else i.prepend(a)};if(typeof t=="object"&&"length"in t){for(let a=0;a=a){r.appendSlide(e);return}let l=o>t?o+1:o;const u=[];for(let c=a-1;c>=t;c-=1){const f=r.slides[c];f.remove(),u.unshift(f)}if(typeof e=="object"&&"length"in e){for(let c=0;ct?o+e.length:o}else s.append(e);for(let c=0;c{if(r.params.effect!==e)return;r.classNames.push(`${r.params.containerModifierClass}${e}`),a&&a()&&r.classNames.push(`${r.params.containerModifierClass}3d`);const f=o?o():{};Object.assign(r.params,f),Object.assign(r.originalParams,f)}),n("setTranslate",()=>{r.params.effect===e&&i()}),n("setTransition",(f,d)=>{r.params.effect===e&&s(d)}),n("transitionEnd",()=>{if(r.params.effect===e&&l){if(!u||!u().slideShadows)return;r.slides.forEach(f=>{f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>d.remove())}),l()}});let c;n("virtualUpdate",()=>{r.params.effect===e&&(r.slides.length||(c=!0),requestAnimationFrame(()=>{c&&r.slides&&r.slides.length&&(i(),c=!1)}))})}function Do(t,e){const r=ai(e);return r!==e&&(r.style.backfaceVisibility="hidden",r.style["-webkit-backface-visibility"]="hidden"),r}function Iu(t){let{swiper:e,duration:r,transformElements:n,allSlides:i}=t;const{activeIndex:s}=e,o=a=>a.parentElement?a.parentElement:e.slides.filter(u=>u.shadowRoot&&u.shadowRoot===a.parentNode)[0];if(e.params.virtualTranslate&&r!==0){let a=!1,l;i?l=n:l=n.filter(u=>{const c=u.classList.contains("swiper-slide-transform")?o(u):u;return e.getSlideIndex(c)===s}),l.forEach(u=>{Xs(u,()=>{if(a||!e||e.destroyed)return;a=!0,e.animating=!1;const c=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(c)})})}}function sW(t){let{swiper:e,extendParams:r,on:n}=t;r({fadeEffect:{crossFade:!1}}),hs({effect:"fade",swiper:e,on:n,setTranslate:()=>{const{slides:o}=e,a=e.params.fadeEffect;for(let l=0;l{const a=e.slides.map(l=>ai(l));a.forEach(l=>{l.style.transitionDuration=`${o}ms`}),Iu({swiper:e,duration:o,transformElements:a,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function oW(t){let{swiper:e,extendParams:r,on:n}=t;r({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(l,u,c)=>{let f=c?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),d=c?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");f||(f=Vt("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"left":"top"}`.split(" ")),l.append(f)),d||(d=Vt("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"right":"bottom"}`.split(" ")),l.append(d)),f&&(f.style.opacity=Math.max(-u,0)),d&&(d.style.opacity=Math.max(u,0))};hs({effect:"cube",swiper:e,on:n,setTranslate:()=>{const{el:l,wrapperEl:u,slides:c,width:f,height:d,rtlTranslate:h,size:g,browser:y}=e,b=e.params.cubeEffect,E=e.isHorizontal(),_=e.virtual&&e.params.virtual.enabled;let v=0,T;b.shadow&&(E?(T=e.wrapperEl.querySelector(".swiper-cube-shadow"),T||(T=Vt("div","swiper-cube-shadow"),e.wrapperEl.append(T)),T.style.height=`${f}px`):(T=l.querySelector(".swiper-cube-shadow"),T||(T=Vt("div","swiper-cube-shadow"),l.append(T))));for(let I=0;I-1&&(v=F*90+k*90,h&&(v=-F*90-k*90)),$.style.transform=j,b.slideShadows&&i($,k,E)}if(u.style.transformOrigin=`50% 50% -${g/2}px`,u.style["-webkit-transform-origin"]=`50% 50% -${g/2}px`,b.shadow)if(E)T.style.transform=`translate3d(0px, ${f/2+b.shadowOffset}px, ${-f/2}px) rotateX(90deg) rotateZ(0deg) scale(${b.shadowScale})`;else{const I=Math.abs(v)-Math.floor(Math.abs(v)/90)*90,$=1.5-(Math.sin(I*2*Math.PI/360)/2+Math.cos(I*2*Math.PI/360)/2),F=b.shadowScale,L=b.shadowScale/$,U=b.shadowOffset;T.style.transform=`scale3d(${F}, 1, ${L}) translate3d(0px, ${d/2+U}px, ${-d/2/L}px) rotateX(-90deg)`}const M=(y.isSafari||y.isWebView)&&y.needPerspectiveFix?-g/2:0;u.style.transform=`translate3d(0px,0,${M}px) rotateX(${e.isHorizontal()?0:v}deg) rotateY(${e.isHorizontal()?-v:0}deg)`,u.style.setProperty("--swiper-cube-translate-z",`${M}px`)},setTransition:l=>{const{el:u,slides:c}=e;if(c.forEach(f=>{f.style.transitionDuration=`${l}ms`,f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>{d.style.transitionDuration=`${l}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const f=u.querySelector(".swiper-cube-shadow");f&&(f.style.transitionDuration=`${l}ms`)}},recreateShadows:()=>{const l=e.isHorizontal();e.slides.forEach(u=>{const c=Math.max(Math.min(u.progress,1),-1);i(u,c,l)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function ts(t,e,r){const n=`swiper-slide-shadow${r?`-${r}`:""}${t?` swiper-slide-shadow-${t}`:""}`,i=ai(e);let s=i.querySelector(`.${n.split(" ").join(".")}`);return s||(s=Vt("div",n.split(" ")),i.append(s)),s}function aW(t){let{swiper:e,extendParams:r,on:n}=t;r({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(l,u)=>{let c=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),f=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");c||(c=ts("flip",l,e.isHorizontal()?"left":"top")),f||(f=ts("flip",l,e.isHorizontal()?"right":"bottom")),c&&(c.style.opacity=Math.max(-u,0)),f&&(f.style.opacity=Math.max(u,0))};hs({effect:"flip",swiper:e,on:n,setTranslate:()=>{const{slides:l,rtlTranslate:u}=e,c=e.params.flipEffect;for(let f=0;f{const u=e.slides.map(c=>ai(c));u.forEach(c=>{c.style.transitionDuration=`${l}ms`,c.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>{f.style.transitionDuration=`${l}ms`})}),Iu({swiper:e,duration:l,transformElements:u})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(l=>{let u=l.progress;e.params.flipEffect.limitRotation&&(u=Math.max(Math.min(l.progress,1),-1)),i(l,u)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function lW(t){let{swiper:e,extendParams:r,on:n}=t;r({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),hs({effect:"coverflow",swiper:e,on:n,setTranslate:()=>{const{width:o,height:a,slides:l,slidesSizesGrid:u}=e,c=e.params.coverflowEffect,f=e.isHorizontal(),d=e.translate,h=f?-d+o/2:-d+a/2,g=f?c.rotate:-c.rotate,y=c.depth;for(let b=0,E=l.length;b0?I:0),H&&(H.style.opacity=-I>0?-I:0)}}},setTransition:o=>{e.slides.map(l=>ai(l)).forEach(l=>{l.style.transitionDuration=`${o}ms`,l.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${o}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function uW(t){let{swiper:e,extendParams:r,on:n}=t;r({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=a=>typeof a=="string"?a:`${a}px`;hs({effect:"creative",swiper:e,on:n,setTranslate:()=>{const{slides:a,wrapperEl:l,slidesSizesGrid:u}=e,c=e.params.creativeEffect,{progressMultiplier:f}=c,d=e.params.centeredSlides;if(d){const h=u[0]/2-e.params.slidesOffsetBefore||0;l.style.transform=`translateX(calc(50% - ${h}px))`}for(let h=0;h0&&(I=c.prev,M=!0),v.forEach((D,O)=>{v[O]=`calc(${D}px + (${i(I.translate[O])} * ${Math.abs(b*f)}))`}),T.forEach((D,O)=>{T[O]=I.rotate[O]*Math.abs(b*f)}),g.style.zIndex=-Math.abs(Math.round(y))+a.length;const $=v.join(", "),F=`rotateX(${T[0]}deg) rotateY(${T[1]}deg) rotateZ(${T[2]}deg)`,L=E<0?`scale(${1+(1-I.scale)*E*f})`:`scale(${1-(1-I.scale)*E*f})`,U=E<0?1+(1-I.opacity)*E*f:1-(1-I.opacity)*E*f,k=`translate3d(${$}) ${F} ${L}`;if(M&&I.shadow||!M){let D=g.querySelector(".swiper-slide-shadow");if(!D&&I.shadow&&(D=ts("creative",g)),D){const O=c.shadowPerProgress?b*(1/c.limitProgress):b;D.style.opacity=Math.min(Math.max(Math.abs(O),0),1)}}const W=Do(c,g);W.style.transform=k,W.style.opacity=U,I.origin&&(W.style.transformOrigin=I.origin)}},setTransition:a=>{const l=e.slides.map(u=>ai(u));l.forEach(u=>{u.style.transitionDuration=`${a}ms`,u.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${a}ms`})}),Iu({swiper:e,duration:a,transformElements:l,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}function cW(t){let{swiper:e,extendParams:r,on:n}=t;r({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),hs({effect:"cards",swiper:e,on:n,setTranslate:()=>{const{slides:o,activeIndex:a,rtlTranslate:l}=e,u=e.params.cardsEffect,{startTranslate:c,isTouched:f}=e.touchEventsData,d=l?-e.translate:e.translate;for(let h=0;h0&&b<1&&(f||e.params.cssMode)&&d-1&&(f||e.params.cssMode)&&d>c;if(L||U){const O=(1-Math.abs((Math.abs(b)-.5)/.5))**.5;I+=-28*b*O,M+=-.5*O,$+=96*O,v=`${-25*O*Math.abs(b)}%`}if(b<0?_=`calc(${_}px ${l?"-":"+"} (${$*Math.abs(b)}%))`:b>0?_=`calc(${_}px ${l?"-":"+"} (-${$*Math.abs(b)}%))`:_=`${_}px`,!e.isHorizontal()){const O=v;v=_,_=O}const k=b<0?`${1+(1-M)*b}`:`${1-(1-M)*b}`,W=` + */const Xr=new Map,Fc={set(t,e,r){Xr.has(t)||Xr.set(t,new Map);const n=Xr.get(t);if(!n.has(e)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(e,r)},get(t,e){return Xr.has(t)&&Xr.get(t).get(e)||null},remove(t,e){if(!Xr.has(t))return;const r=Xr.get(t);r.delete(e),r.size===0&&Xr.delete(t)}},xU=1e6,TU=1e3,ud="transitionend",eE=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,r)=>`#${CSS.escape(r)}`)),t),AU=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),MU=t=>{do t+=Math.floor(Math.random()*xU);while(document.getElementById(t));return t},CU=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:r}=window.getComputedStyle(t);const n=Number.parseFloat(e),i=Number.parseFloat(r);return!n&&!i?0:(e=e.split(",")[0],r=r.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(r))*TU)},tE=t=>{t.dispatchEvent(new Event(ud))},Pr=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),dn=t=>Pr(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(eE(t)):null,cs=t=>{if(!Pr(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",r=t.closest("details:not([open])");if(!r)return e;if(r!==t){const n=t.closest("summary");if(n&&n.parentNode!==r||n===null)return!1}return e},hn=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",rE=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?rE(t.parentNode):null},bl=()=>{},No=t=>{t.offsetHeight},nE=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Uc=[],IU=t=>{document.readyState==="loading"?(Uc.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of Uc)e()}),Uc.push(t)):t()},Rt=()=>document.documentElement.dir==="rtl",Dt=t=>{IU(()=>{const e=nE();if(e){const r=t.NAME,n=e.fn[r];e.fn[r]=t.jQueryInterface,e.fn[r].Constructor=t,e.fn[r].noConflict=()=>(e.fn[r]=n,t.jQueryInterface)}})},gt=(t,e=[],r=t)=>typeof t=="function"?t(...e):r,iE=(t,e,r=!0)=>{if(!r){gt(t);return}const n=5,i=CU(e)+n;let s=!1;const o=({target:a})=>{a===e&&(s=!0,e.removeEventListener(ud,o),gt(t))};e.addEventListener(ud,o),setTimeout(()=>{s||tE(e)},i)},np=(t,e,r,n)=>{const i=t.length;let s=t.indexOf(e);return s===-1?!r&&n?t[i-1]:t[0]:(s+=r?1:-1,n&&(s=(s+i)%i),t[Math.max(0,Math.min(s,i-1))])},OU=/[^.]*(?=\..*)\.|.*/,PU=/\..*/,RU=/::\d+$/,jc={};let Cy=1;const sE={mouseenter:"mouseover",mouseleave:"mouseout"},LU=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function oE(t,e){return e&&`${e}::${Cy++}`||t.uidEvent||Cy++}function aE(t){const e=oE(t);return t.uidEvent=e,jc[e]=jc[e]||{},jc[e]}function NU(t,e){return function r(n){return ip(n,{delegateTarget:t}),r.oneOff&&le.off(t,n.type,e),e.apply(t,[n])}}function $U(t,e,r){return function n(i){const s=t.querySelectorAll(e);for(let{target:o}=i;o&&o!==this;o=o.parentNode)for(const a of s)if(a===o)return ip(i,{delegateTarget:o}),n.oneOff&&le.off(t,i.type,e,r),r.apply(o,[i])}}function lE(t,e,r=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===r)}function uE(t,e,r){const n=typeof e=="string",i=n?r:e||r;let s=cE(t);return LU.has(s)||(s=t),[n,i,s]}function Iy(t,e,r,n,i){if(typeof e!="string"||!t)return;let[s,o,a]=uE(e,r,n);e in sE&&(o=(g=>function(y){if(!y.relatedTarget||y.relatedTarget!==y.delegateTarget&&!y.delegateTarget.contains(y.relatedTarget))return g.call(this,y)})(o));const l=aE(t),u=l[a]||(l[a]={}),c=lE(u,o,s?r:null);if(c){c.oneOff=c.oneOff&&i;return}const f=oE(o,e.replace(OU,"")),d=s?$U(t,r,o):NU(t,o);d.delegationSelector=s?r:null,d.callable=o,d.oneOff=i,d.uidEvent=f,u[f]=d,t.addEventListener(a,d,s)}function cd(t,e,r,n,i){const s=lE(e[r],n,i);s&&(t.removeEventListener(r,s,!!i),delete e[r][s.uidEvent])}function kU(t,e,r,n){const i=e[r]||{};for(const[s,o]of Object.entries(i))s.includes(n)&&cd(t,e,r,o.callable,o.delegationSelector)}function cE(t){return t=t.replace(PU,""),sE[t]||t}const le={on(t,e,r,n){Iy(t,e,r,n,!1)},one(t,e,r,n){Iy(t,e,r,n,!0)},off(t,e,r,n){if(typeof e!="string"||!t)return;const[i,s,o]=uE(e,r,n),a=o!==e,l=aE(t),u=l[o]||{},c=e.startsWith(".");if(typeof s<"u"){if(!Object.keys(u).length)return;cd(t,l,o,s,i?r:null);return}if(c)for(const f of Object.keys(l))kU(t,l,f,e.slice(1));for(const[f,d]of Object.entries(u)){const h=f.replace(RU,"");(!a||e.includes(h))&&cd(t,l,o,d.callable,d.delegationSelector)}},trigger(t,e,r){if(typeof e!="string"||!t)return null;const n=nE(),i=cE(e),s=e!==i;let o=null,a=!0,l=!0,u=!1;s&&n&&(o=n.Event(e,r),n(t).trigger(o),a=!o.isPropagationStopped(),l=!o.isImmediatePropagationStopped(),u=o.isDefaultPrevented());const c=ip(new Event(e,{bubbles:a,cancelable:!0}),r);return u&&c.preventDefault(),l&&t.dispatchEvent(c),c.defaultPrevented&&o&&o.preventDefault(),c}};function ip(t,e={}){for(const[r,n]of Object.entries(e))try{t[r]=n}catch{Object.defineProperty(t,r,{configurable:!0,get(){return n}})}return t}function Oy(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function zc(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const Rr={setDataAttribute(t,e,r){t.setAttribute(`data-bs-${zc(e)}`,r)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${zc(e)}`)},getDataAttributes(t){if(!t)return{};const e={},r=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of r){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=Oy(t.dataset[n])}return e},getDataAttribute(t,e){return Oy(t.getAttribute(`data-bs-${zc(e)}`))}};class $o{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,r){const n=Pr(r)?Rr.getDataAttribute(r,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...Pr(r)?Rr.getDataAttributes(r):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,r=this.constructor.DefaultType){for(const[n,i]of Object.entries(r)){const s=e[n],o=Pr(s)?"element":AU(s);if(!new RegExp(i).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${i}".`)}}}const DU="5.3.2";class Qt extends $o{constructor(e,r){super(),e=dn(e),e&&(this._element=e,this._config=this._getConfig(r),Fc.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Fc.remove(this._element,this.constructor.DATA_KEY),le.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,r,n=!0){iE(e,r,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Fc.get(dn(e),this.DATA_KEY)}static getOrCreateInstance(e,r={}){return this.getInstance(e)||new this(e,typeof r=="object"?r:null)}static get VERSION(){return DU}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Hc=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let r=t.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),e=r&&r!=="#"?eE(r.trim()):null}return e},ye={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(r=>r.matches(e))},parents(t,e){const r=[];let n=t.parentNode.closest(e);for(;n;)r.push(n),n=n.parentNode.closest(e);return r},prev(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return[r];r=r.previousElementSibling}return[]},next(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return[r];r=r.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(r=>`${r}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(r=>!hn(r)&&cs(r))},getSelectorFromElement(t){const e=Hc(t);return e&&ye.findOne(e)?e:null},getElementFromSelector(t){const e=Hc(t);return e?ye.findOne(e):null},getMultipleElementsFromSelector(t){const e=Hc(t);return e?ye.find(e):[]}},Tu=(t,e="hide")=>{const r=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;le.on(document,r,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),hn(this))return;const s=ye.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()})},BU="alert",FU="bs.alert",fE=`.${FU}`,UU=`close${fE}`,jU=`closed${fE}`,zU="fade",HU="show";class Au extends Qt{static get NAME(){return BU}close(){if(le.trigger(this._element,UU).defaultPrevented)return;this._element.classList.remove(HU);const r=this._element.classList.contains(zU);this._queueCallback(()=>this._destroyElement(),this._element,r)}_destroyElement(){this._element.remove(),le.trigger(this._element,jU),this.dispose()}static jQueryInterface(e){return this.each(function(){const r=Au.getOrCreateInstance(this);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}Tu(Au,"close");Dt(Au);const WU="button",VU="bs.button",qU=`.${VU}`,YU=".data-api",KU="active",Py='[data-bs-toggle="button"]',GU=`click${qU}${YU}`;class Mu extends Qt{static get NAME(){return WU}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(KU))}static jQueryInterface(e){return this.each(function(){const r=Mu.getOrCreateInstance(this);e==="toggle"&&r[e]()})}}le.on(document,GU,Py,t=>{t.preventDefault();const e=t.target.closest(Py);Mu.getOrCreateInstance(e).toggle()});Dt(Mu);const XU="swipe",fs=".bs.swipe",QU=`touchstart${fs}`,JU=`touchmove${fs}`,ZU=`touchend${fs}`,e3=`pointerdown${fs}`,t3=`pointerup${fs}`,r3="touch",n3="pen",i3="pointer-event",s3=40,o3={endCallback:null,leftCallback:null,rightCallback:null},a3={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class _l extends $o{constructor(e,r){super(),this._element=e,!(!e||!_l.isSupported())&&(this._config=this._getConfig(r),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return o3}static get DefaultType(){return a3}static get NAME(){return XU}dispose(){le.off(this._element,fs)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),gt(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=s3)return;const r=e/this._deltaX;this._deltaX=0,r&>(r>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(le.on(this._element,e3,e=>this._start(e)),le.on(this._element,t3,e=>this._end(e)),this._element.classList.add(i3)):(le.on(this._element,QU,e=>this._start(e)),le.on(this._element,JU,e=>this._move(e)),le.on(this._element,ZU,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===n3||e.pointerType===r3)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const l3="carousel",u3="bs.carousel",vn=`.${u3}`,dE=".data-api",c3="ArrowLeft",f3="ArrowRight",d3=500,Os="next",hi="prev",bi="left",ka="right",h3=`slide${vn}`,Wc=`slid${vn}`,p3=`keydown${vn}`,g3=`mouseenter${vn}`,m3=`mouseleave${vn}`,y3=`dragstart${vn}`,w3=`load${vn}${dE}`,b3=`click${vn}${dE}`,hE="carousel",la="active",_3="slide",v3="carousel-item-end",E3="carousel-item-start",S3="carousel-item-next",x3="carousel-item-prev",pE=".active",gE=".carousel-item",T3=pE+gE,A3=".carousel-item img",M3=".carousel-indicators",C3="[data-bs-slide], [data-bs-slide-to]",I3='[data-bs-ride="carousel"]',O3={[c3]:ka,[f3]:bi},P3={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},R3={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ko extends Qt{constructor(e,r){super(e,r),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ye.findOne(M3,this._element),this._addEventListeners(),this._config.ride===hE&&this.cycle()}static get Default(){return P3}static get DefaultType(){return R3}static get NAME(){return l3}next(){this._slide(Os)}nextWhenVisible(){!document.hidden&&cs(this._element)&&this.next()}prev(){this._slide(hi)}pause(){this._isSliding&&tE(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){le.one(this._element,Wc,()=>this.cycle());return}this.cycle()}}to(e){const r=this._getItems();if(e>r.length-1||e<0)return;if(this._isSliding){le.one(this._element,Wc,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const i=e>n?Os:hi;this._slide(i,r[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&le.on(this._element,p3,e=>this._keydown(e)),this._config.pause==="hover"&&(le.on(this._element,g3,()=>this.pause()),le.on(this._element,m3,()=>this._maybeEnableCycle())),this._config.touch&&_l.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of ye.find(A3,this._element))le.on(n,y3,i=>i.preventDefault());const r={leftCallback:()=>this._slide(this._directionToOrder(bi)),rightCallback:()=>this._slide(this._directionToOrder(ka)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),d3+this._config.interval))}};this._swipeHelper=new _l(this._element,r)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const r=O3[e.key];r&&(e.preventDefault(),this._slide(this._directionToOrder(r)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const r=ye.findOne(pE,this._indicatorsElement);r.classList.remove(la),r.removeAttribute("aria-current");const n=ye.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(la),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const r=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=r||this._config.defaultInterval}_slide(e,r=null){if(this._isSliding)return;const n=this._getActive(),i=e===Os,s=r||np(this._getItems(),n,i,this._config.wrap);if(s===n)return;const o=this._getItemIndex(s),a=h=>le.trigger(this._element,h,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:o});if(a(h3).defaultPrevented||!n||!s)return;const u=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const c=i?E3:v3,f=i?S3:x3;s.classList.add(f),No(s),n.classList.add(c),s.classList.add(c);const d=()=>{s.classList.remove(c,f),s.classList.add(la),n.classList.remove(la,f,c),this._isSliding=!1,a(Wc)};this._queueCallback(d,n,this._isAnimated()),u&&this.cycle()}_isAnimated(){return this._element.classList.contains(_3)}_getActive(){return ye.findOne(T3,this._element)}_getItems(){return ye.find(gE,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Rt()?e===bi?hi:Os:e===bi?Os:hi}_orderToDirection(e){return Rt()?e===hi?bi:ka:e===hi?ka:bi}static jQueryInterface(e){return this.each(function(){const r=ko.getOrCreateInstance(this,e);if(typeof e=="number"){r.to(e);return}if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}le.on(document,b3,C3,function(t){const e=ye.getElementFromSelector(this);if(!e||!e.classList.contains(hE))return;t.preventDefault();const r=ko.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){r.to(n),r._maybeEnableCycle();return}if(Rr.getDataAttribute(this,"slide")==="next"){r.next(),r._maybeEnableCycle();return}r.prev(),r._maybeEnableCycle()});le.on(window,w3,()=>{const t=ye.find(I3);for(const e of t)ko.getOrCreateInstance(e)});Dt(ko);const L3="collapse",N3="bs.collapse",Do=`.${N3}`,$3=".data-api",k3=`show${Do}`,D3=`shown${Do}`,B3=`hide${Do}`,F3=`hidden${Do}`,U3=`click${Do}${$3}`,Vc="show",Ti="collapse",ua="collapsing",j3="collapsed",z3=`:scope .${Ti} .${Ti}`,H3="collapse-horizontal",W3="width",V3="height",q3=".collapse.show, .collapse.collapsing",fd='[data-bs-toggle="collapse"]',Y3={parent:null,toggle:!0},K3={parent:"(null|element)",toggle:"boolean"};class yo extends Qt{constructor(e,r){super(e,r),this._isTransitioning=!1,this._triggerArray=[];const n=ye.find(fd);for(const i of n){const s=ye.getSelectorFromElement(i),o=ye.find(s).filter(a=>a===this._element);s!==null&&o.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Y3}static get DefaultType(){return K3}static get NAME(){return L3}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(q3).filter(a=>a!==this._element).map(a=>yo.getOrCreateInstance(a,{toggle:!1}))),e.length&&e[0]._isTransitioning||le.trigger(this._element,k3).defaultPrevented)return;for(const a of e)a.hide();const n=this._getDimension();this._element.classList.remove(Ti),this._element.classList.add(ua),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(ua),this._element.classList.add(Ti,Vc),this._element.style[n]="",le.trigger(this._element,D3)},o=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[n]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||le.trigger(this._element,B3).defaultPrevented)return;const r=this._getDimension();this._element.style[r]=`${this._element.getBoundingClientRect()[r]}px`,No(this._element),this._element.classList.add(ua),this._element.classList.remove(Ti,Vc);for(const i of this._triggerArray){const s=ye.getElementFromSelector(i);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(ua),this._element.classList.add(Ti),le.trigger(this._element,F3)};this._element.style[r]="",this._queueCallback(n,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Vc)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=dn(e.parent),e}_getDimension(){return this._element.classList.contains(H3)?W3:V3}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(fd);for(const r of e){const n=ye.getElementFromSelector(r);n&&this._addAriaAndCollapsedClass([r],this._isShown(n))}}_getFirstLevelChildren(e){const r=ye.find(z3,this._config.parent);return ye.find(e,this._config.parent).filter(n=>!r.includes(n))}_addAriaAndCollapsedClass(e,r){if(e.length)for(const n of e)n.classList.toggle(j3,!r),n.setAttribute("aria-expanded",r)}static jQueryInterface(e){const r={};return typeof e=="string"&&/show|hide/.test(e)&&(r.toggle=!1),this.each(function(){const n=yo.getOrCreateInstance(this,r);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}le.on(document,U3,fd,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of ye.getMultipleElementsFromSelector(this))yo.getOrCreateInstance(e,{toggle:!1}).toggle()});Dt(yo);const Ry="dropdown",G3="bs.dropdown",li=`.${G3}`,sp=".data-api",X3="Escape",Ly="Tab",Q3="ArrowUp",Ny="ArrowDown",J3=2,Z3=`hide${li}`,ej=`hidden${li}`,tj=`show${li}`,rj=`shown${li}`,mE=`click${li}${sp}`,yE=`keydown${li}${sp}`,nj=`keyup${li}${sp}`,_i="show",ij="dropup",sj="dropend",oj="dropstart",aj="dropup-center",lj="dropdown-center",Dn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',uj=`${Dn}.${_i}`,Da=".dropdown-menu",cj=".navbar",fj=".navbar-nav",dj=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",hj=Rt()?"top-end":"top-start",pj=Rt()?"top-start":"top-end",gj=Rt()?"bottom-end":"bottom-start",mj=Rt()?"bottom-start":"bottom-end",yj=Rt()?"left-start":"right-start",wj=Rt()?"right-start":"left-start",bj="top",_j="bottom",vj={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Ej={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class dr extends Qt{constructor(e,r){super(e,r),this._popper=null,this._parent=this._element.parentNode,this._menu=ye.next(this._element,Da)[0]||ye.prev(this._element,Da)[0]||ye.findOne(Da,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return vj}static get DefaultType(){return Ej}static get NAME(){return Ry}toggle(){return this._isShown()?this.hide():this.show()}show(){if(hn(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!le.trigger(this._element,tj,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(fj))for(const n of[].concat(...document.body.children))le.on(n,"mouseover",bl);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(_i),this._element.classList.add(_i),le.trigger(this._element,rj,e)}}hide(){if(hn(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!le.trigger(this._element,Z3,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))le.off(n,"mouseover",bl);this._popper&&this._popper.destroy(),this._menu.classList.remove(_i),this._element.classList.remove(_i),this._element.setAttribute("aria-expanded","false"),Rr.removeDataAttribute(this._menu,"popper"),le.trigger(this._element,ej,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Pr(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${Ry.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof Zv>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:Pr(this._config.reference)?e=dn(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const r=this._getPopperConfig();this._popper=rp(e,this._menu,r)}_isShown(){return this._menu.classList.contains(_i)}_getPlacement(){const e=this._parent;if(e.classList.contains(sj))return yj;if(e.classList.contains(oj))return wj;if(e.classList.contains(aj))return bj;if(e.classList.contains(lj))return _j;const r=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(ij)?r?pj:hj:r?mj:gj}_detectNavbar(){return this._element.closest(cj)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(r=>Number.parseInt(r,10)):typeof e=="function"?r=>e(r,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Rr.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...gt(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:r}){const n=ye.find(dj,this._menu).filter(i=>cs(i));n.length&&np(n,r,e===Ny,!n.includes(r)).focus()}static jQueryInterface(e){return this.each(function(){const r=dr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}static clearMenus(e){if(e.button===J3||e.type==="keyup"&&e.key!==Ly)return;const r=ye.find(uj);for(const n of r){const i=dr.getInstance(n);if(!i||i._config.autoClose===!1)continue;const s=e.composedPath(),o=s.includes(i._menu);if(s.includes(i._element)||i._config.autoClose==="inside"&&!o||i._config.autoClose==="outside"&&o||i._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Ly||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:i._element};e.type==="click"&&(a.clickEvent=e),i._completeHide(a)}}static dataApiKeydownHandler(e){const r=/input|textarea/i.test(e.target.tagName),n=e.key===X3,i=[Q3,Ny].includes(e.key);if(!i&&!n||r&&!n)return;e.preventDefault();const s=this.matches(Dn)?this:ye.prev(this,Dn)[0]||ye.next(this,Dn)[0]||ye.findOne(Dn,e.delegateTarget.parentNode),o=dr.getOrCreateInstance(s);if(i){e.stopPropagation(),o.show(),o._selectMenuItem(e);return}o._isShown()&&(e.stopPropagation(),o.hide(),s.focus())}}le.on(document,yE,Dn,dr.dataApiKeydownHandler);le.on(document,yE,Da,dr.dataApiKeydownHandler);le.on(document,mE,dr.clearMenus);le.on(document,nj,dr.clearMenus);le.on(document,mE,Dn,function(t){t.preventDefault(),dr.getOrCreateInstance(this).toggle()});Dt(dr);const wE="backdrop",Sj="fade",$y="show",ky=`mousedown.bs.${wE}`,xj={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Tj={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class bE extends $o{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return xj}static get DefaultType(){return Tj}static get NAME(){return wE}show(e){if(!this._config.isVisible){gt(e);return}this._append();const r=this._getElement();this._config.isAnimated&&No(r),r.classList.add($y),this._emulateAnimation(()=>{gt(e)})}hide(e){if(!this._config.isVisible){gt(e);return}this._getElement().classList.remove($y),this._emulateAnimation(()=>{this.dispose(),gt(e)})}dispose(){this._isAppended&&(le.off(this._element,ky),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(Sj),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=dn(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),le.on(e,ky,()=>{gt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){iE(e,this._getElement(),this._config.isAnimated)}}const Aj="focustrap",Mj="bs.focustrap",vl=`.${Mj}`,Cj=`focusin${vl}`,Ij=`keydown.tab${vl}`,Oj="Tab",Pj="forward",Dy="backward",Rj={autofocus:!0,trapElement:null},Lj={autofocus:"boolean",trapElement:"element"};class _E extends $o{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Rj}static get DefaultType(){return Lj}static get NAME(){return Aj}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),le.off(document,vl),le.on(document,Cj,e=>this._handleFocusin(e)),le.on(document,Ij,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,le.off(document,vl))}_handleFocusin(e){const{trapElement:r}=this._config;if(e.target===document||e.target===r||r.contains(e.target))return;const n=ye.focusableChildren(r);n.length===0?r.focus():this._lastTabNavDirection===Dy?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===Oj&&(this._lastTabNavDirection=e.shiftKey?Dy:Pj)}}const By=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Fy=".sticky-top",ca="padding-right",Uy="margin-right";class dd{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ca,r=>r+e),this._setElementAttributes(By,ca,r=>r+e),this._setElementAttributes(Fy,Uy,r=>r-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ca),this._resetElementAttributes(By,ca),this._resetElementAttributes(Fy,Uy)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,r,n){const i=this.getWidth(),s=o=>{if(o!==this._element&&window.innerWidth>o.clientWidth+i)return;this._saveInitialAttribute(o,r);const a=window.getComputedStyle(o).getPropertyValue(r);o.style.setProperty(r,`${n(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,s)}_saveInitialAttribute(e,r){const n=e.style.getPropertyValue(r);n&&Rr.setDataAttribute(e,r,n)}_resetElementAttributes(e,r){const n=i=>{const s=Rr.getDataAttribute(i,r);if(s===null){i.style.removeProperty(r);return}Rr.removeDataAttribute(i,r),i.style.setProperty(r,s)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,r){if(Pr(e)){r(e);return}for(const n of ye.find(e,this._element))r(n)}}const Nj="modal",$j="bs.modal",Lt=`.${$j}`,kj=".data-api",Dj="Escape",Bj=`hide${Lt}`,Fj=`hidePrevented${Lt}`,vE=`hidden${Lt}`,EE=`show${Lt}`,Uj=`shown${Lt}`,jj=`resize${Lt}`,zj=`click.dismiss${Lt}`,Hj=`mousedown.dismiss${Lt}`,Wj=`keydown.dismiss${Lt}`,Vj=`click${Lt}${kj}`,jy="modal-open",qj="fade",zy="show",qc="modal-static",Yj=".modal.show",Kj=".modal-dialog",Gj=".modal-body",Xj='[data-bs-toggle="modal"]',Qj={backdrop:!0,focus:!0,keyboard:!0},Jj={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Zi extends Qt{constructor(e,r){super(e,r),this._dialog=ye.findOne(Kj,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new dd,this._addEventListeners()}static get Default(){return Qj}static get DefaultType(){return Jj}static get NAME(){return Nj}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||le.trigger(this._element,EE,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(jy),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||le.trigger(this._element,Bj).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(zy),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){le.off(window,Lt),le.off(this._dialog,Lt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new bE({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new _E({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const r=ye.findOne(Gj,this._dialog);r&&(r.scrollTop=0),No(this._element),this._element.classList.add(zy);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,le.trigger(this._element,Uj,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){le.on(this._element,Wj,e=>{if(e.key===Dj){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),le.on(window,jj,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),le.on(this._element,Hj,e=>{le.one(this._element,zj,r=>{if(!(this._element!==e.target||this._element!==r.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(jy),this._resetAdjustments(),this._scrollBar.reset(),le.trigger(this._element,vE)})}_isAnimated(){return this._element.classList.contains(qj)}_triggerBackdropTransition(){if(le.trigger(this._element,Fj).defaultPrevented)return;const r=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(qc)||(r||(this._element.style.overflowY="hidden"),this._element.classList.add(qc),this._queueCallback(()=>{this._element.classList.remove(qc),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,r=this._scrollBar.getWidth(),n=r>0;if(n&&!e){const i=Rt()?"paddingLeft":"paddingRight";this._element.style[i]=`${r}px`}if(!n&&e){const i=Rt()?"paddingRight":"paddingLeft";this._element.style[i]=`${r}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,r){return this.each(function(){const n=Zi.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](r)}})}}le.on(document,Vj,Xj,function(t){const e=ye.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),le.one(e,EE,i=>{i.defaultPrevented||le.one(e,vE,()=>{cs(this)&&this.focus()})});const r=ye.findOne(Yj);r&&Zi.getInstance(r).hide(),Zi.getOrCreateInstance(e).toggle(this)});Tu(Zi);Dt(Zi);const Zj="offcanvas",ez="bs.offcanvas",Kr=`.${ez}`,SE=".data-api",tz=`load${Kr}${SE}`,rz="Escape",Hy="show",Wy="showing",Vy="hiding",nz="offcanvas-backdrop",xE=".offcanvas.show",iz=`show${Kr}`,sz=`shown${Kr}`,oz=`hide${Kr}`,qy=`hidePrevented${Kr}`,TE=`hidden${Kr}`,az=`resize${Kr}`,lz=`click${Kr}${SE}`,uz=`keydown.dismiss${Kr}`,cz='[data-bs-toggle="offcanvas"]',fz={backdrop:!0,keyboard:!0,scroll:!1},dz={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class pn extends Qt{constructor(e,r){super(e,r),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return fz}static get DefaultType(){return dz}static get NAME(){return Zj}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||le.trigger(this._element,iz,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new dd().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Wy);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Hy),this._element.classList.remove(Wy),le.trigger(this._element,sz,{relatedTarget:e})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||le.trigger(this._element,oz).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Vy),this._backdrop.hide();const r=()=>{this._element.classList.remove(Hy,Vy),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new dd().reset(),le.trigger(this._element,TE)};this._queueCallback(r,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){le.trigger(this._element,qy);return}this.hide()},r=!!this._config.backdrop;return new bE({className:nz,isVisible:r,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:r?e:null})}_initializeFocusTrap(){return new _E({trapElement:this._element})}_addEventListeners(){le.on(this._element,uz,e=>{if(e.key===rz){if(this._config.keyboard){this.hide();return}le.trigger(this._element,qy)}})}static jQueryInterface(e){return this.each(function(){const r=pn.getOrCreateInstance(this,e);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}le.on(document,lz,cz,function(t){const e=ye.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),hn(this))return;le.one(e,TE,()=>{cs(this)&&this.focus()});const r=ye.findOne(xE);r&&r!==e&&pn.getInstance(r).hide(),pn.getOrCreateInstance(e).toggle(this)});le.on(window,tz,()=>{for(const t of ye.find(xE))pn.getOrCreateInstance(t).show()});le.on(window,az,()=>{for(const t of ye.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&pn.getOrCreateInstance(t).hide()});Tu(pn);Dt(pn);const hz=/^aria-[\w-]*$/i,AE={"*":["class","dir","id","lang","role",hz],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},pz=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),gz=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,mz=(t,e)=>{const r=t.nodeName.toLowerCase();return e.includes(r)?pz.has(r)?!!gz.test(t.nodeValue):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(r))};function yz(t,e,r){if(!t.length)return t;if(r&&typeof r=="function")return r(t);const i=new window.DOMParser().parseFromString(t,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(const o of s){const a=o.nodeName.toLowerCase();if(!Object.keys(e).includes(a)){o.remove();continue}const l=[].concat(...o.attributes),u=[].concat(e["*"]||[],e[a]||[]);for(const c of l)mz(c,u)||o.removeAttribute(c.nodeName)}return i.body.innerHTML}const wz="TemplateFactory",bz={allowList:AE,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},_z={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},vz={entry:"(string|element|function|null)",selector:"(string|element)"};class Ez extends $o{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return bz}static get DefaultType(){return _z}static get NAME(){return wz}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[i,s]of Object.entries(this._config.content))this._setContent(e,s,i);const r=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&r.classList.add(...n.split(" ")),r}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[r,n]of Object.entries(e))super._typeCheckConfig({selector:r,entry:n},vz)}_setContent(e,r,n){const i=ye.findOne(n,e);if(i){if(r=this._resolvePossibleFunction(r),!r){i.remove();return}if(Pr(r)){this._putElementInTemplate(dn(r),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(r);return}i.textContent=r}}_maybeSanitize(e){return this._config.sanitize?yz(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return gt(e,[this])}_putElementInTemplate(e,r){if(this._config.html){r.innerHTML="",r.append(e);return}r.textContent=e.textContent}}const Sz="tooltip",xz=new Set(["sanitize","allowList","sanitizeFn"]),Yc="fade",Tz="modal",fa="show",Az=".tooltip-inner",Yy=`.${Tz}`,Ky="hide.bs.modal",Ps="hover",Kc="focus",Mz="click",Cz="manual",Iz="hide",Oz="hidden",Pz="show",Rz="shown",Lz="inserted",Nz="click",$z="focusin",kz="focusout",Dz="mouseenter",Bz="mouseleave",Fz={AUTO:"auto",TOP:"top",RIGHT:Rt()?"left":"right",BOTTOM:"bottom",LEFT:Rt()?"right":"left"},Uz={allowList:AE,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},jz={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class ds extends Qt{constructor(e,r){if(typeof Zv>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,r),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Uz}static get DefaultType(){return jz}static get NAME(){return Sz}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),le.off(this._element.closest(Yy),Ky,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=le.trigger(this._element,this.constructor.eventName(Pz)),n=(rE(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!n)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),le.trigger(this._element,this.constructor.eventName(Lz))),this._popper=this._createPopper(i),i.classList.add(fa),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))le.on(a,"mouseover",bl);const o=()=>{le.trigger(this._element,this.constructor.eventName(Rz)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(o,this.tip,this._isAnimated())}hide(){if(!this._isShown()||le.trigger(this._element,this.constructor.eventName(Iz)).defaultPrevented)return;if(this._getTipElement().classList.remove(fa),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))le.off(i,"mouseover",bl);this._activeTrigger[Mz]=!1,this._activeTrigger[Kc]=!1,this._activeTrigger[Ps]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),le.trigger(this._element,this.constructor.eventName(Oz)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const r=this._getTemplateFactory(e).toHtml();if(!r)return null;r.classList.remove(Yc,fa),r.classList.add(`bs-${this.constructor.NAME}-auto`);const n=MU(this.constructor.NAME).toString();return r.setAttribute("id",n),this._isAnimated()&&r.classList.add(Yc),r}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Ez({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Az]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Yc)}_isShown(){return this.tip&&this.tip.classList.contains(fa)}_createPopper(e){const r=gt(this._config.placement,[this,e,this._element]),n=Fz[r.toUpperCase()];return rp(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(r=>Number.parseInt(r,10)):typeof e=="function"?r=>e(r,this._element):e}_resolvePossibleFunction(e){return gt(e,[this._element])}_getPopperConfig(e){const r={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...r,...gt(this._config.popperConfig,[r])}}_setListeners(){const e=this._config.trigger.split(" ");for(const r of e)if(r==="click")le.on(this._element,this.constructor.eventName(Nz),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(r!==Cz){const n=r===Ps?this.constructor.eventName(Dz):this.constructor.eventName($z),i=r===Ps?this.constructor.eventName(Bz):this.constructor.eventName(kz);le.on(this._element,n,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusin"?Kc:Ps]=!0,o._enter()}),le.on(this._element,i,this._config.selector,s=>{const o=this._initializeOnDelegatedTarget(s);o._activeTrigger[s.type==="focusout"?Kc:Ps]=o._element.contains(s.relatedTarget),o._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},le.on(this._element.closest(Yy),Ky,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,r){clearTimeout(this._timeout),this._timeout=setTimeout(e,r)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const r=Rr.getDataAttributes(this._element);for(const n of Object.keys(r))xz.has(n)&&delete r[n];return e={...r,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:dn(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[r,n]of Object.entries(this._config))this.constructor.Default[r]!==n&&(e[r]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const r=ds.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}Dt(ds);const zz="popover",Hz=".popover-header",Wz=".popover-body",Vz={...ds.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},qz={...ds.DefaultType,content:"(null|string|element|function)"};class op extends ds{static get Default(){return Vz}static get DefaultType(){return qz}static get NAME(){return zz}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Hz]:this._getTitle(),[Wz]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const r=op.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}Dt(op);const Yz="scrollspy",Kz="bs.scrollspy",ap=`.${Kz}`,Gz=".data-api",Xz=`activate${ap}`,Gy=`click${ap}`,Qz=`load${ap}${Gz}`,Jz="dropdown-item",pi="active",Zz='[data-bs-spy="scroll"]',Gc="[href]",eH=".nav, .list-group",Xy=".nav-link",tH=".nav-item",rH=".list-group-item",nH=`${Xy}, ${tH} > ${Xy}, ${rH}`,iH=".dropdown",sH=".dropdown-toggle",oH={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},aH={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Cu extends Qt{constructor(e,r){super(e,r),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return oH}static get DefaultType(){return aH}static get NAME(){return Yz}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=dn(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(r=>Number.parseFloat(r))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(le.off(this._config.target,Gy),le.on(this._config.target,Gy,Gc,e=>{const r=this._observableSections.get(e.target.hash);if(r){e.preventDefault();const n=this._rootElement||window,i=r.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:i,behavior:"smooth"});return}n.scrollTop=i}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(r=>this._observerCallback(r),e)}_observerCallback(e){const r=o=>this._targetLinks.get(`#${o.target.id}`),n=o=>{this._previousScrollData.visibleEntryTop=o.target.offsetTop,this._process(r(o))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(r(o));continue}const a=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&a){if(n(o),!i)return;continue}!s&&!a&&n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=ye.find(Gc,this._config.target);for(const r of e){if(!r.hash||hn(r))continue;const n=ye.findOne(decodeURI(r.hash),this._element);cs(n)&&(this._targetLinks.set(decodeURI(r.hash),r),this._observableSections.set(r.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(pi),this._activateParents(e),le.trigger(this._element,Xz,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(Jz)){ye.findOne(sH,e.closest(iH)).classList.add(pi);return}for(const r of ye.parents(e,eH))for(const n of ye.prev(r,nH))n.classList.add(pi)}_clearActiveClass(e){e.classList.remove(pi);const r=ye.find(`${Gc}.${pi}`,e);for(const n of r)n.classList.remove(pi)}static jQueryInterface(e){return this.each(function(){const r=Cu.getOrCreateInstance(this,e);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}le.on(window,Qz,()=>{for(const t of ye.find(Zz))Cu.getOrCreateInstance(t)});Dt(Cu);const lH="tab",uH="bs.tab",ui=`.${uH}`,cH=`hide${ui}`,fH=`hidden${ui}`,dH=`show${ui}`,hH=`shown${ui}`,pH=`click${ui}`,gH=`keydown${ui}`,mH=`load${ui}`,yH="ArrowLeft",Qy="ArrowRight",wH="ArrowUp",Jy="ArrowDown",Xc="Home",Zy="End",Bn="active",ew="fade",Qc="show",bH="dropdown",ME=".dropdown-toggle",_H=".dropdown-menu",Jc=`:not(${ME})`,vH='.list-group, .nav, [role="tablist"]',EH=".nav-item, .list-group-item",SH=`.nav-link${Jc}, .list-group-item${Jc}, [role="tab"]${Jc}`,CE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Zc=`${SH}, ${CE}`,xH=`.${Bn}[data-bs-toggle="tab"], .${Bn}[data-bs-toggle="pill"], .${Bn}[data-bs-toggle="list"]`;class es extends Qt{constructor(e){super(e),this._parent=this._element.closest(vH),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),le.on(this._element,gH,r=>this._keydown(r)))}static get NAME(){return lH}show(){const e=this._element;if(this._elemIsActive(e))return;const r=this._getActiveElem(),n=r?le.trigger(r,cH,{relatedTarget:e}):null;le.trigger(e,dH,{relatedTarget:r}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(r,e),this._activate(e,r))}_activate(e,r){if(!e)return;e.classList.add(Bn),this._activate(ye.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Qc);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),le.trigger(e,hH,{relatedTarget:r})};this._queueCallback(n,e,e.classList.contains(ew))}_deactivate(e,r){if(!e)return;e.classList.remove(Bn),e.blur(),this._deactivate(ye.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Qc);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),le.trigger(e,fH,{relatedTarget:r})};this._queueCallback(n,e,e.classList.contains(ew))}_keydown(e){if(![yH,Qy,wH,Jy,Xc,Zy].includes(e.key))return;e.stopPropagation(),e.preventDefault();const r=this._getChildren().filter(i=>!hn(i));let n;if([Xc,Zy].includes(e.key))n=r[e.key===Xc?0:r.length-1];else{const i=[Qy,Jy].includes(e.key);n=np(r,e.target,i,!0)}n&&(n.focus({preventScroll:!0}),es.getOrCreateInstance(n).show())}_getChildren(){return ye.find(Zc,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,r){this._setAttributeIfNotExists(e,"role","tablist");for(const n of r)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const r=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",r),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),r||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const r=ye.getElementFromSelector(e);r&&(this._setAttributeIfNotExists(r,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(r,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,r){const n=this._getOuterElement(e);if(!n.classList.contains(bH))return;const i=(s,o)=>{const a=ye.findOne(s,n);a&&a.classList.toggle(o,r)};i(ME,Bn),i(_H,Qc),n.setAttribute("aria-expanded",r)}_setAttributeIfNotExists(e,r,n){e.hasAttribute(r)||e.setAttribute(r,n)}_elemIsActive(e){return e.classList.contains(Bn)}_getInnerElement(e){return e.matches(Zc)?e:ye.findOne(Zc,e)}_getOuterElement(e){return e.closest(EH)||e}static jQueryInterface(e){return this.each(function(){const r=es.getOrCreateInstance(this);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}le.on(document,pH,CE,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!hn(this)&&es.getOrCreateInstance(this).show()});le.on(window,mH,()=>{for(const t of ye.find(xH))es.getOrCreateInstance(t)});Dt(es);const TH="toast",AH="bs.toast",En=`.${AH}`,MH=`mouseover${En}`,CH=`mouseout${En}`,IH=`focusin${En}`,OH=`focusout${En}`,PH=`hide${En}`,RH=`hidden${En}`,LH=`show${En}`,NH=`shown${En}`,$H="fade",tw="hide",da="show",ha="showing",kH={animation:"boolean",autohide:"boolean",delay:"number"},DH={animation:!0,autohide:!0,delay:5e3};class Iu extends Qt{constructor(e,r){super(e,r),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return DH}static get DefaultType(){return kH}static get NAME(){return TH}show(){if(le.trigger(this._element,LH).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add($H);const r=()=>{this._element.classList.remove(ha),le.trigger(this._element,NH),this._maybeScheduleHide()};this._element.classList.remove(tw),No(this._element),this._element.classList.add(da,ha),this._queueCallback(r,this._element,this._config.animation)}hide(){if(!this.isShown()||le.trigger(this._element,PH).defaultPrevented)return;const r=()=>{this._element.classList.add(tw),this._element.classList.remove(ha,da),le.trigger(this._element,RH)};this._element.classList.add(ha),this._queueCallback(r,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(da),super.dispose()}isShown(){return this._element.classList.contains(da)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,r){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=r;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=r;break}}if(r){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){le.on(this._element,MH,e=>this._onInteraction(e,!0)),le.on(this._element,CH,e=>this._onInteraction(e,!1)),le.on(this._element,IH,e=>this._onInteraction(e,!0)),le.on(this._element,OH,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const r=Iu.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}Tu(Iu);Dt(Iu);function BH(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;r({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});let s;const o=st();e.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const a=o.createElement("div");function l(g,y){const b=e.params.virtual;if(b.cache&&e.virtual.cache[y])return e.virtual.cache[y];let E;return b.renderSlide?(E=b.renderSlide.call(e,g,y),typeof E=="string"&&(a.innerHTML=E,E=a.children[0])):e.isElement?E=Vt("swiper-slide"):E=Vt("div",e.params.slideClass),E.setAttribute("data-swiper-slide-index",y),b.renderSlide||(E.innerHTML=g),b.cache&&(e.virtual.cache[y]=E),E}function u(g){const{slidesPerView:y,slidesPerGroup:b,centeredSlides:E,loop:_}=e.params,{addSlidesBefore:v,addSlidesAfter:T}=e.params.virtual,{from:M,to:I,slides:$,slidesGrid:F,offset:L}=e.virtual;e.params.cssMode||e.updateActiveIndex();const U=e.activeIndex||0;let k;e.rtlTranslate?k="right":k=e.isHorizontal()?"left":"top";let W,D;E?(W=Math.floor(y/2)+b+T,D=Math.floor(y/2)+b+v):(W=y+(b-1)+T,D=(_?y:b)+v);let O=U-D,j=U+W;_||(O=Math.max(O,0),j=Math.min(j,$.length-1));let Q=(e.slidesGrid[O]||0)-(e.slidesGrid[0]||0);_&&U>=D?(O-=D,E||(Q+=e.slidesGrid[0])):_&&U{de.style[k]=`${Q-Math.abs(e.cssOverflowAdjustment())}px`}),e.updateProgress(),i("virtualUpdate");return}if(e.params.virtual.renderExternal){e.params.virtual.renderExternal.call(e,{offset:Q,from:O,to:j,slides:function(){const me=[];for(let be=O;be<=j;be+=1)me.push($[be]);return me}()}),e.params.virtual.renderExternalUpdate?H():i("virtualUpdate");return}const K=[],X=[],Z=de=>{let me=de;return de<0?me=$.length+de:me>=$.length&&(me=me-$.length),me};if(g)e.slides.filter(de=>de.matches(`.${e.params.slideClass}, swiper-slide`)).forEach(de=>{de.remove()});else for(let de=M;de<=I;de+=1)if(dej){const me=Z(de);e.slides.filter(be=>be.matches(`.${e.params.slideClass}[data-swiper-slide-index="${me}"], swiper-slide[data-swiper-slide-index="${me}"]`)).forEach(be=>{be.remove()})}const ce=_?-$.length:0,pe=_?$.length*2:$.length;for(let de=ce;de=O&&de<=j){const me=Z(de);typeof I>"u"||g?X.push(me):(de>I&&X.push(me),de{e.slidesEl.append(l($[de],de))}),_)for(let de=K.length-1;de>=0;de-=1){const me=K[de];e.slidesEl.prepend(l($[me],me))}else K.sort((de,me)=>me-de),K.forEach(de=>{e.slidesEl.prepend(l($[de],de))});Qe(e.slidesEl,".swiper-slide, swiper-slide").forEach(de=>{de.style[k]=`${Q-Math.abs(e.cssOverflowAdjustment())}px`}),H()}function c(g){if(typeof g=="object"&&"length"in g)for(let y=0;y{const M=_[T],I=M.getAttribute("data-swiper-slide-index");I&&M.setAttribute("data-swiper-slide-index",parseInt(I,10)+E),v[parseInt(T,10)+E]=M}),e.virtual.cache=v}u(!0),e.slideTo(b,0)}function d(g){if(typeof g>"u"||g===null)return;let y=e.activeIndex;if(Array.isArray(g))for(let b=g.length-1;b>=0;b-=1)e.params.virtual.cache&&(delete e.virtual.cache[g[b]],Object.keys(e.virtual.cache).forEach(E=>{E>g&&(e.virtual.cache[E-1]=e.virtual.cache[E],e.virtual.cache[E-1].setAttribute("data-swiper-slide-index",E-1),delete e.virtual.cache[E])})),e.virtual.slides.splice(g[b],1),g[b]{b>g&&(e.virtual.cache[b-1]=e.virtual.cache[b],e.virtual.cache[b-1].setAttribute("data-swiper-slide-index",b-1),delete e.virtual.cache[b])})),e.virtual.slides.splice(g,1),g{if(!e.params.virtual.enabled)return;let g;if(typeof e.passedParams.virtual.slides>"u"){const y=[...e.slidesEl.children].filter(b=>b.matches(`.${e.params.slideClass}, swiper-slide`));y&&y.length&&(e.virtual.slides=[...y],g=!0,y.forEach((b,E)=>{b.setAttribute("data-swiper-slide-index",E),e.virtual.cache[E]=b,b.remove()}))}g||(e.virtual.slides=e.params.virtual.slides),e.classNames.push(`${e.params.containerModifierClass}virtual`),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0,u()}),n("setTranslate",()=>{e.params.virtual.enabled&&(e.params.cssMode&&!e._immediateVirtual?(clearTimeout(s),s=setTimeout(()=>{u()},100)):u())}),n("init update resize",()=>{e.params.virtual.enabled&&e.params.cssMode&&Us(e.wrapperEl,"--swiper-virtual-size",`${e.virtualSize}px`)}),Object.assign(e.virtual,{appendSlide:c,prependSlide:f,removeSlide:d,removeAllSlides:h,update:u})}function FH(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s=st(),o=je();e.keyboard={enabled:!1},r({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function a(c){if(!e.enabled)return;const{rtlTranslate:f}=e;let d=c;d.originalEvent&&(d=d.originalEvent);const h=d.keyCode||d.charCode,g=e.params.keyboard.pageUpDown,y=g&&h===33,b=g&&h===34,E=h===37,_=h===39,v=h===38,T=h===40;if(!e.allowSlideNext&&(e.isHorizontal()&&_||e.isVertical()&&T||b)||!e.allowSlidePrev&&(e.isHorizontal()&&E||e.isVertical()&&v||y))return!1;if(!(d.shiftKey||d.altKey||d.ctrlKey||d.metaKey)&&!(s.activeElement&&s.activeElement.nodeName&&(s.activeElement.nodeName.toLowerCase()==="input"||s.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(y||b||E||_||v||T)){let M=!1;if(Hn(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Hn(e.el,`.${e.params.slideActiveClass}`).length===0)return;const I=e.el,$=I.clientWidth,F=I.clientHeight,L=o.innerWidth,U=o.innerHeight,k=yl(I);f&&(k.left-=I.scrollLeft);const W=[[k.left,k.top],[k.left+$,k.top],[k.left,k.top+F],[k.left+$,k.top+F]];for(let D=0;D=0&&O[0]<=L&&O[1]>=0&&O[1]<=U){if(O[0]===0&&O[1]===0)continue;M=!0}}if(!M)return}e.isHorizontal()?((y||b||E||_)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),((b||_)&&!f||(y||E)&&f)&&e.slideNext(),((y||E)&&!f||(b||_)&&f)&&e.slidePrev()):((y||b||v||T)&&(d.preventDefault?d.preventDefault():d.returnValue=!1),(b||T)&&e.slideNext(),(y||v)&&e.slidePrev()),i("keyPress",h)}}function l(){e.keyboard.enabled||(s.addEventListener("keydown",a),e.keyboard.enabled=!0)}function u(){e.keyboard.enabled&&(s.removeEventListener("keydown",a),e.keyboard.enabled=!1)}n("init",()=>{e.params.keyboard.enabled&&l()}),n("destroy",()=>{e.keyboard.enabled&&u()}),Object.assign(e.keyboard,{enable:l,disable:u})}function UH(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s=je();r({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),e.mousewheel={enabled:!1};let o,a=Ct(),l;const u=[];function c(v){let $=0,F=0,L=0,U=0;return"detail"in v&&(F=v.detail),"wheelDelta"in v&&(F=-v.wheelDelta/120),"wheelDeltaY"in v&&(F=-v.wheelDeltaY/120),"wheelDeltaX"in v&&($=-v.wheelDeltaX/120),"axis"in v&&v.axis===v.HORIZONTAL_AXIS&&($=F,F=0),L=$*10,U=F*10,"deltaY"in v&&(U=v.deltaY),"deltaX"in v&&(L=v.deltaX),v.shiftKey&&!L&&(L=U,U=0),(L||U)&&v.deltaMode&&(v.deltaMode===1?(L*=40,U*=40):(L*=800,U*=800)),L&&!$&&($=L<1?-1:1),U&&!F&&(F=U<1?-1:1),{spinX:$,spinY:F,pixelX:L,pixelY:U}}function f(){e.enabled&&(e.mouseEntered=!0)}function d(){e.enabled&&(e.mouseEntered=!1)}function h(v){return e.params.mousewheel.thresholdDelta&&v.delta=6&&Ct()-a<60?!0:(v.direction<0?(!e.isEnd||e.params.loop)&&!e.animating&&(e.slideNext(),i("scroll",v.raw)):(!e.isBeginning||e.params.loop)&&!e.animating&&(e.slidePrev(),i("scroll",v.raw)),a=new s.Date().getTime(),!1)}function g(v){const T=e.params.mousewheel;if(v.direction<0){if(e.isEnd&&!e.params.loop&&T.releaseOnEdges)return!0}else if(e.isBeginning&&!e.params.loop&&T.releaseOnEdges)return!0;return!1}function y(v){let T=v,M=!0;if(!e.enabled||v.target.closest(`.${e.params.mousewheel.noMousewheelClass}`))return;const I=e.params.mousewheel;e.params.cssMode&&T.preventDefault();let $=e.el;e.params.mousewheel.eventsTarget!=="container"&&($=document.querySelector(e.params.mousewheel.eventsTarget));const F=$&&$.contains(T.target);if(!e.mouseEntered&&!F&&!I.releaseOnEdges)return!0;T.originalEvent&&(T=T.originalEvent);let L=0;const U=e.rtlTranslate?-1:1,k=c(T);if(I.forceToAxis)if(e.isHorizontal())if(Math.abs(k.pixelX)>Math.abs(k.pixelY))L=-k.pixelX*U;else return!0;else if(Math.abs(k.pixelY)>Math.abs(k.pixelX))L=-k.pixelY;else return!0;else L=Math.abs(k.pixelX)>Math.abs(k.pixelY)?-k.pixelX*U:-k.pixelY;if(L===0)return!0;I.invert&&(L=-L);let W=e.getTranslate()+L*I.sensitivity;if(W>=e.minTranslate()&&(W=e.minTranslate()),W<=e.maxTranslate()&&(W=e.maxTranslate()),M=e.params.loop?!0:!(W===e.minTranslate()||W===e.maxTranslate()),M&&e.params.nested&&T.stopPropagation(),!e.params.freeMode||!e.params.freeMode.enabled){const D={time:Ct(),delta:Math.abs(L),direction:Math.sign(L),raw:v};u.length>=2&&u.shift();const O=u.length?u[u.length-1]:void 0;if(u.push(D),O?(D.direction!==O.direction||D.delta>O.delta||D.time>O.time+150)&&h(D):h(D),g(D))return!0}else{const D={time:Ct(),delta:Math.abs(L),direction:Math.sign(L)},O=l&&D.time=e.minTranslate()&&(j=e.minTranslate()),j<=e.maxTranslate()&&(j=e.maxTranslate()),e.setTransition(0),e.setTranslate(j),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses(),(!Q&&e.isBeginning||!H&&e.isEnd)&&e.updateSlidesClasses(),e.params.loop&&e.loopFix({direction:D.direction<0?"next":"prev",byMousewheel:!0}),e.params.freeMode.sticky){clearTimeout(o),o=void 0,u.length>=15&&u.shift();const K=u.length?u[u.length-1]:void 0,X=u[0];if(u.push(D),K&&(D.delta>K.delta||D.direction!==K.direction))u.splice(0);else if(u.length>=15&&D.time-X.time<500&&X.delta-D.delta>=1&&D.delta<=6){const Z=L>0?.8:.2;l=D,u.splice(0),o=Qn(()=>{e.slideToClosest(e.params.speed,!0,void 0,Z)},0)}o||(o=Qn(()=>{l=D,u.splice(0),e.slideToClosest(e.params.speed,!0,void 0,.5)},500))}if(O||i("scroll",T),e.params.autoplay&&e.params.autoplayDisableOnInteraction&&e.autoplay.stop(),I.releaseOnEdges&&(j===e.minTranslate()||j===e.maxTranslate()))return!0}}return T.preventDefault?T.preventDefault():T.returnValue=!1,!1}function b(v){let T=e.el;e.params.mousewheel.eventsTarget!=="container"&&(T=document.querySelector(e.params.mousewheel.eventsTarget)),T[v]("mouseenter",f),T[v]("mouseleave",d),T[v]("wheel",y)}function E(){return e.params.cssMode?(e.wrapperEl.removeEventListener("wheel",y),!0):e.mousewheel.enabled?!1:(b("addEventListener"),e.mousewheel.enabled=!0,!0)}function _(){return e.params.cssMode?(e.wrapperEl.addEventListener(event,y),!0):e.mousewheel.enabled?(b("removeEventListener"),e.mousewheel.enabled=!1,!0):!1}n("init",()=>{!e.params.mousewheel.enabled&&e.params.cssMode&&_(),e.params.mousewheel.enabled&&E()}),n("destroy",()=>{e.params.cssMode&&E(),e.mousewheel.enabled&&_()}),Object.assign(e.mousewheel,{enable:E,disable:_})}function lp(t,e,r,n){return t.params.createElements&&Object.keys(n).forEach(i=>{if(!r[i]&&r.auto===!0){let s=Qe(t.el,`.${n[i]}`)[0];s||(s=Vt("div",n[i]),s.className=n[i],t.el.append(s)),r[i]=s,e[i]=s}}),r}function jH(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;r({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const s=y=>(Array.isArray(y)?y:[y]).filter(b=>!!b);function o(y){let b;return y&&typeof y=="string"&&e.isElement&&(b=e.el.querySelector(y),b)?b:(y&&(typeof y=="string"&&(b=[...document.querySelectorAll(y)]),e.params.uniqueNavElements&&typeof y=="string"&&b.length>1&&e.el.querySelectorAll(y).length===1&&(b=e.el.querySelector(y))),y&&!b?y:b)}function a(y,b){const E=e.params.navigation;y=s(y),y.forEach(_=>{_&&(_.classList[b?"add":"remove"](...E.disabledClass.split(" ")),_.tagName==="BUTTON"&&(_.disabled=b),e.params.watchOverflow&&e.enabled&&_.classList[e.isLocked?"add":"remove"](E.lockClass))})}function l(){const{nextEl:y,prevEl:b}=e.navigation;if(e.params.loop){a(b,!1),a(y,!1);return}a(b,e.isBeginning&&!e.params.rewind),a(y,e.isEnd&&!e.params.rewind)}function u(y){y.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),i("navigationPrev"))}function c(y){y.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),i("navigationNext"))}function f(){const y=e.params.navigation;if(e.params.navigation=lp(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(y.nextEl||y.prevEl))return;let b=o(y.nextEl),E=o(y.prevEl);Object.assign(e.navigation,{nextEl:b,prevEl:E}),b=s(b),E=s(E);const _=(v,T)=>{v&&v.addEventListener("click",T==="next"?c:u),!e.enabled&&v&&v.classList.add(...y.lockClass.split(" "))};b.forEach(v=>_(v,"next")),E.forEach(v=>_(v,"prev"))}function d(){let{nextEl:y,prevEl:b}=e.navigation;y=s(y),b=s(b);const E=(_,v)=>{_.removeEventListener("click",v==="next"?c:u),_.classList.remove(...e.params.navigation.disabledClass.split(" "))};y.forEach(_=>E(_,"next")),b.forEach(_=>E(_,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?g():(f(),l())}),n("toEdge fromEdge lock unlock",()=>{l()}),n("destroy",()=>{d()}),n("enable disable",()=>{let{nextEl:y,prevEl:b}=e.navigation;if(y=s(y),b=s(b),e.enabled){l();return}[...y,...b].filter(E=>!!E).forEach(E=>E.classList.add(e.params.navigation.lockClass))}),n("click",(y,b)=>{let{nextEl:E,prevEl:_}=e.navigation;E=s(E),_=s(_);const v=b.target;if(e.params.navigation.hideOnClick&&!_.includes(v)&&!E.includes(v)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===v||e.pagination.el.contains(v)))return;let T;E.length?T=E[0].classList.contains(e.params.navigation.hiddenClass):_.length&&(T=_[0].classList.contains(e.params.navigation.hiddenClass)),i(T===!0?"navigationShow":"navigationHide"),[...E,..._].filter(M=>!!M).forEach(M=>M.classList.toggle(e.params.navigation.hiddenClass))}});const h=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),f(),l()},g=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:h,disable:g,update:l,init:f,destroy:d})}function nn(t){return t===void 0&&(t=""),`.${t.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function zH(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s="swiper-pagination";r({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:_=>_,formatFractionTotal:_=>_,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let o,a=0;const l=_=>(Array.isArray(_)?_:[_]).filter(v=>!!v);function u(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(_,v){const{bulletActiveClass:T}=e.params.pagination;_&&(_=_[`${v==="prev"?"previous":"next"}ElementSibling`],_&&(_.classList.add(`${T}-${v}`),_=_[`${v==="prev"?"previous":"next"}ElementSibling`],_&&_.classList.add(`${T}-${v}-${v}`)))}function f(_){const v=_.target.closest(nn(e.params.pagination.bulletClass));if(!v)return;_.preventDefault();const T=mo(v)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===T)return;const M=e.realIndex,I=e.getSlideIndexByData(T),$=e.getSlideIndexByData(e.realIndex),F=L=>{const U=e.activeIndex;e.loopFix({direction:L,activeSlideIndex:I,slideTo:!1});const k=e.activeIndex;U===k&&e.slideToLoop(M,0,!1,!0)};if(I>e.slides.length-e.loopedSlides)F(I>$?"next":"prev");else if(e.params.centeredSlides){const L=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(parseFloat(e.params.slidesPerView,10));I1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(M=e.snapIndex,I=e.previousSnapIndex):(I=e.previousIndex||0,M=e.activeIndex||0),v.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const L=e.pagination.bullets;let U,k,W;if(v.dynamicBullets&&(o=nd(L[0],e.isHorizontal()?"width":"height",!0),T.forEach(D=>{D.style[e.isHorizontal()?"width":"height"]=`${o*(v.dynamicMainBullets+4)}px`}),v.dynamicMainBullets>1&&I!==void 0&&(a+=M-(I||0),a>v.dynamicMainBullets-1?a=v.dynamicMainBullets-1:a<0&&(a=0)),U=Math.max(M-a,0),k=U+(Math.min(L.length,v.dynamicMainBullets)-1),W=(k+U)/2),L.forEach(D=>{const O=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(j=>`${v.bulletActiveClass}${j}`)].map(j=>typeof j=="string"&&j.includes(" ")?j.split(" "):j).flat();D.classList.remove(...O)}),T.length>1)L.forEach(D=>{const O=mo(D);O===M?D.classList.add(...v.bulletActiveClass.split(" ")):e.isElement&&D.setAttribute("part","bullet"),v.dynamicBullets&&(O>=U&&O<=k&&D.classList.add(...`${v.bulletActiveClass}-main`.split(" ")),O===U&&c(D,"prev"),O===k&&c(D,"next"))});else{const D=L[M];if(D&&D.classList.add(...v.bulletActiveClass.split(" ")),e.isElement&&L.forEach((O,j)=>{O.setAttribute("part",j===M?"bullet-active":"bullet")}),v.dynamicBullets){const O=L[U],j=L[k];for(let Q=U;Q<=k;Q+=1)L[Q]&&L[Q].classList.add(...`${v.bulletActiveClass}-main`.split(" "));c(O,"prev"),c(j,"next")}}if(v.dynamicBullets){const D=Math.min(L.length,v.dynamicMainBullets+4),O=(o*D-o)/2-W*o,j=_?"right":"left";L.forEach(Q=>{Q.style[e.isHorizontal()?j:"top"]=`${O}px`})}}T.forEach((L,U)=>{if(v.type==="fraction"&&(L.querySelectorAll(nn(v.currentClass)).forEach(k=>{k.textContent=v.formatFractionCurrent(M+1)}),L.querySelectorAll(nn(v.totalClass)).forEach(k=>{k.textContent=v.formatFractionTotal(F)})),v.type==="progressbar"){let k;v.progressbarOpposite?k=e.isHorizontal()?"vertical":"horizontal":k=e.isHorizontal()?"horizontal":"vertical";const W=(M+1)/F;let D=1,O=1;k==="horizontal"?D=W:O=W,L.querySelectorAll(nn(v.progressbarFillClass)).forEach(j=>{j.style.transform=`translate3d(0,0,0) scaleX(${D}) scaleY(${O})`,j.style.transitionDuration=`${e.params.speed}ms`})}v.type==="custom"&&v.renderCustom?(L.innerHTML=v.renderCustom(e,M+1,F),U===0&&i("paginationRender",L)):(U===0&&i("paginationRender",L),i("paginationUpdate",L)),e.params.watchOverflow&&e.enabled&&L.classList[e.isLocked?"add":"remove"](v.lockClass)})}function h(){const _=e.params.pagination;if(u())return;const v=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length;let T=e.pagination.el;T=l(T);let M="";if(_.type==="bullets"){let I=e.params.loop?Math.ceil(v/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&I>v&&(I=v);for(let $=0;$`}_.type==="fraction"&&(_.renderFraction?M=_.renderFraction.call(e,_.currentClass,_.totalClass):M=` / `),_.type==="progressbar"&&(_.renderProgressbar?M=_.renderProgressbar.call(e,_.progressbarFillClass):M=``),e.pagination.bullets=[],T.forEach(I=>{_.type!=="custom"&&(I.innerHTML=M||""),_.type==="bullets"&&e.pagination.bullets.push(...I.querySelectorAll(nn(_.bulletClass)))}),_.type!=="custom"&&i("paginationRender",T[0])}function g(){e.params.pagination=lp(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const _=e.params.pagination;if(!_.el)return;let v;typeof _.el=="string"&&e.isElement&&(v=e.el.querySelector(_.el)),!v&&typeof _.el=="string"&&(v=[...document.querySelectorAll(_.el)]),v||(v=_.el),!(!v||v.length===0)&&(e.params.uniqueNavElements&&typeof _.el=="string"&&Array.isArray(v)&&v.length>1&&(v=[...e.el.querySelectorAll(_.el)],v.length>1&&(v=v.filter(T=>Hn(T,".swiper")[0]===e.el)[0])),Array.isArray(v)&&v.length===1&&(v=v[0]),Object.assign(e.pagination,{el:v}),v=l(v),v.forEach(T=>{_.type==="bullets"&&_.clickable&&T.classList.add(...(_.clickableClass||"").split(" ")),T.classList.add(_.modifierClass+_.type),T.classList.add(e.isHorizontal()?_.horizontalClass:_.verticalClass),_.type==="bullets"&&_.dynamicBullets&&(T.classList.add(`${_.modifierClass}${_.type}-dynamic`),a=0,_.dynamicMainBullets<1&&(_.dynamicMainBullets=1)),_.type==="progressbar"&&_.progressbarOpposite&&T.classList.add(_.progressbarOppositeClass),_.clickable&&T.addEventListener("click",f),e.enabled||T.classList.add(_.lockClass)}))}function y(){const _=e.params.pagination;if(u())return;let v=e.pagination.el;v&&(v=l(v),v.forEach(T=>{T.classList.remove(_.hiddenClass),T.classList.remove(_.modifierClass+_.type),T.classList.remove(e.isHorizontal()?_.horizontalClass:_.verticalClass),_.clickable&&(T.classList.remove(...(_.clickableClass||"").split(" ")),T.removeEventListener("click",f))})),e.pagination.bullets&&e.pagination.bullets.forEach(T=>T.classList.remove(..._.bulletActiveClass.split(" ")))}n("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const _=e.params.pagination;let{el:v}=e.pagination;v=l(v),v.forEach(T=>{T.classList.remove(_.horizontalClass,_.verticalClass),T.classList.add(e.isHorizontal()?_.horizontalClass:_.verticalClass)})}),n("init",()=>{e.params.pagination.enabled===!1?E():(g(),h(),d())}),n("activeIndexChange",()=>{typeof e.snapIndex>"u"&&d()}),n("snapIndexChange",()=>{d()}),n("snapGridLengthChange",()=>{h(),d()}),n("destroy",()=>{y()}),n("enable disable",()=>{let{el:_}=e.pagination;_&&(_=l(_),_.forEach(v=>v.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),n("lock unlock",()=>{d()}),n("click",(_,v)=>{const T=v.target,M=l(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&M&&M.length>0&&!T.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&T===e.navigation.nextEl||e.navigation.prevEl&&T===e.navigation.prevEl))return;const I=M[0].classList.contains(e.params.pagination.hiddenClass);i(I===!0?"paginationShow":"paginationHide"),M.forEach($=>$.classList.toggle(e.params.pagination.hiddenClass))}});const b=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:_}=e.pagination;_&&(_=l(_),_.forEach(v=>v.classList.remove(e.params.pagination.paginationDisabledClass))),g(),h(),d()},E=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:_}=e.pagination;_&&(_=l(_),_.forEach(v=>v.classList.add(e.params.pagination.paginationDisabledClass))),y()};Object.assign(e.pagination,{enable:b,disable:E,render:h,update:d,init:g,destroy:y})}function HH(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s=st();let o=!1,a=null,l=null,u,c,f,d;r({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function h(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:W,rtlTranslate:D}=e,{dragEl:O,el:j}=W,Q=e.params.scrollbar,H=e.params.loop?e.progressLoop:e.progress;let K=c,X=(f-c)*H;D?(X=-X,X>0?(K=c-X,X=0):-X+c>f&&(K=f+X)):X<0?(K=c+X,X=0):X+c>f&&(K=f-X),e.isHorizontal()?(O.style.transform=`translate3d(${X}px, 0, 0)`,O.style.width=`${K}px`):(O.style.transform=`translate3d(0px, ${X}px, 0)`,O.style.height=`${K}px`),Q.hide&&(clearTimeout(a),j.style.opacity=1,a=setTimeout(()=>{j.style.opacity=0,j.style.transitionDuration="400ms"},1e3))}function g(W){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${W}ms`)}function y(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:W}=e,{dragEl:D,el:O}=W;D.style.width="",D.style.height="",f=e.isHorizontal()?O.offsetWidth:O.offsetHeight,d=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?c=f*d:c=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?D.style.width=`${c}px`:D.style.height=`${c}px`,d>=1?O.style.display="none":O.style.display="",e.params.scrollbar.hide&&(O.style.opacity=0),e.params.watchOverflow&&e.enabled&&W.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function b(W){return e.isHorizontal()?W.clientX:W.clientY}function E(W){const{scrollbar:D,rtlTranslate:O}=e,{el:j}=D;let Q;Q=(b(W)-yl(j)[e.isHorizontal()?"left":"top"]-(u!==null?u:c/2))/(f-c),Q=Math.max(Math.min(Q,1),0),O&&(Q=1-Q);const H=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*Q;e.updateProgress(H),e.setTranslate(H),e.updateActiveIndex(),e.updateSlidesClasses()}function _(W){const D=e.params.scrollbar,{scrollbar:O,wrapperEl:j}=e,{el:Q,dragEl:H}=O;o=!0,u=W.target===H?b(W)-W.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,W.preventDefault(),W.stopPropagation(),j.style.transitionDuration="100ms",H.style.transitionDuration="100ms",E(W),clearTimeout(l),Q.style.transitionDuration="0ms",D.hide&&(Q.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),i("scrollbarDragStart",W)}function v(W){const{scrollbar:D,wrapperEl:O}=e,{el:j,dragEl:Q}=D;o&&(W.preventDefault?W.preventDefault():W.returnValue=!1,E(W),O.style.transitionDuration="0ms",j.style.transitionDuration="0ms",Q.style.transitionDuration="0ms",i("scrollbarDragMove",W))}function T(W){const D=e.params.scrollbar,{scrollbar:O,wrapperEl:j}=e,{el:Q}=O;o&&(o=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",j.style.transitionDuration=""),D.hide&&(clearTimeout(l),l=Qn(()=>{Q.style.opacity=0,Q.style.transitionDuration="400ms"},1e3)),i("scrollbarDragEnd",W),D.snapOnRelease&&e.slideToClosest())}function M(W){const{scrollbar:D,params:O}=e,j=D.el;if(!j)return;const Q=j,H=O.passiveListeners?{passive:!1,capture:!1}:!1,K=O.passiveListeners?{passive:!0,capture:!1}:!1;if(!Q)return;const X=W==="on"?"addEventListener":"removeEventListener";Q[X]("pointerdown",_,H),s[X]("pointermove",v,H),s[X]("pointerup",T,K)}function I(){!e.params.scrollbar.el||!e.scrollbar.el||M("on")}function $(){!e.params.scrollbar.el||!e.scrollbar.el||M("off")}function F(){const{scrollbar:W,el:D}=e;e.params.scrollbar=lp(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const O=e.params.scrollbar;if(!O.el)return;let j;typeof O.el=="string"&&e.isElement&&(j=e.el.querySelector(O.el)),!j&&typeof O.el=="string"?j=s.querySelectorAll(O.el):j||(j=O.el),e.params.uniqueNavElements&&typeof O.el=="string"&&j.length>1&&D.querySelectorAll(O.el).length===1&&(j=D.querySelector(O.el)),j.length>0&&(j=j[0]),j.classList.add(e.isHorizontal()?O.horizontalClass:O.verticalClass);let Q;j&&(Q=j.querySelector(`.${e.params.scrollbar.dragClass}`),Q||(Q=Vt("div",e.params.scrollbar.dragClass),j.append(Q))),Object.assign(W,{el:j,dragEl:Q}),O.draggable&&I(),j&&j.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}function L(){const W=e.params.scrollbar,D=e.scrollbar.el;D&&D.classList.remove(e.isHorizontal()?W.horizontalClass:W.verticalClass),$()}n("init",()=>{e.params.scrollbar.enabled===!1?k():(F(),y(),h())}),n("update resize observerUpdate lock unlock",()=>{y()}),n("setTranslate",()=>{h()}),n("setTransition",(W,D)=>{g(D)}),n("enable disable",()=>{const{el:W}=e.scrollbar;W&&W.classList[e.enabled?"remove":"add"](e.params.scrollbar.lockClass)}),n("destroy",()=>{L()});const U=()=>{e.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.remove(e.params.scrollbar.scrollbarDisabledClass),F(),y(),h()},k=()=>{e.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),e.scrollbar.el&&e.scrollbar.el.classList.add(e.params.scrollbar.scrollbarDisabledClass),L()};Object.assign(e.scrollbar,{enable:U,disable:k,updateSize:y,setTranslate:h,init:F,destroy:L})}function WH(t){let{swiper:e,extendParams:r,on:n}=t;r({parallax:{enabled:!1}});const i="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",s=(l,u)=>{const{rtl:c}=e,f=c?-1:1,d=l.getAttribute("data-swiper-parallax")||"0";let h=l.getAttribute("data-swiper-parallax-x"),g=l.getAttribute("data-swiper-parallax-y");const y=l.getAttribute("data-swiper-parallax-scale"),b=l.getAttribute("data-swiper-parallax-opacity"),E=l.getAttribute("data-swiper-parallax-rotate");if(h||g?(h=h||"0",g=g||"0"):e.isHorizontal()?(h=d,g="0"):(g=d,h="0"),h.indexOf("%")>=0?h=`${parseInt(h,10)*u*f}%`:h=`${h*u*f}px`,g.indexOf("%")>=0?g=`${parseInt(g,10)*u}%`:g=`${g*u}px`,typeof b<"u"&&b!==null){const v=b-(b-1)*(1-Math.abs(u));l.style.opacity=v}let _=`translate3d(${h}, ${g}, 0px)`;if(typeof y<"u"&&y!==null){const v=y-(y-1)*(1-Math.abs(u));_+=` scale(${v})`}if(E&&typeof E<"u"&&E!==null){const v=E*u*-1;_+=` rotate(${v}deg)`}l.style.transform=_},o=()=>{const{el:l,slides:u,progress:c,snapGrid:f,isElement:d}=e,h=Qe(l,i);e.isElement&&h.push(...Qe(e.hostEl,i)),h.forEach(g=>{s(g,c)}),u.forEach((g,y)=>{let b=g.progress;e.params.slidesPerGroup>1&&e.params.slidesPerView!=="auto"&&(b+=Math.ceil(y/2)-c*(f.length-1)),b=Math.min(Math.max(b,-1),1),g.querySelectorAll(`${i}, [data-swiper-parallax-rotate]`).forEach(E=>{s(E,b)})})},a=function(l){l===void 0&&(l=e.params.speed);const{el:u,hostEl:c}=e,f=[...u.querySelectorAll(i)];e.isElement&&f.push(...c.querySelectorAll(i)),f.forEach(d=>{let h=parseInt(d.getAttribute("data-swiper-parallax-duration"),10)||l;l===0&&(h=0),d.style.transitionDuration=`${h}ms`})};n("beforeInit",()=>{e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)}),n("init",()=>{e.params.parallax.enabled&&o()}),n("setTranslate",()=>{e.params.parallax.enabled&&o()}),n("setTransition",(l,u)=>{e.params.parallax.enabled&&a(u)})}function VH(t){let{swiper:e,extendParams:r,on:n,emit:i}=t;const s=je();r({zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),e.zoom={enabled:!1};let o=1,a=!1,l,u;const c=[],f={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},d={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},h={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let g=1;Object.defineProperty(e.zoom,"scale",{get(){return g},set(H){if(g!==H){const K=f.imageEl,X=f.slideEl;i("zoomChange",H,K,X)}g=H}});function y(){if(c.length<2)return 1;const H=c[0].pageX,K=c[0].pageY,X=c[1].pageX,Z=c[1].pageY;return Math.sqrt((X-H)**2+(Z-K)**2)}function b(){if(c.length<2)return{x:null,y:null};const H=f.imageEl.getBoundingClientRect();return[(c[0].pageX+(c[1].pageX-c[0].pageX)/2-H.x-s.scrollX)/o,(c[0].pageY+(c[1].pageY-c[0].pageY)/2-H.y-s.scrollY)/o]}function E(){return e.isElement?"swiper-slide":`.${e.params.slideClass}`}function _(H){const K=E();return!!(H.target.matches(K)||e.slides.filter(X=>X.contains(H.target)).length>0)}function v(H){const K=`.${e.params.zoom.containerClass}`;return!!(H.target.matches(K)||[...e.hostEl.querySelectorAll(K)].filter(X=>X.contains(H.target)).length>0)}function T(H){if(H.pointerType==="mouse"&&c.splice(0,c.length),!_(H))return;const K=e.params.zoom;if(l=!1,u=!1,c.push(H),!(c.length<2)){if(l=!0,f.scaleStart=y(),!f.slideEl){f.slideEl=H.target.closest(`.${e.params.slideClass}, swiper-slide`),f.slideEl||(f.slideEl=e.slides[e.activeIndex]);let X=f.slideEl.querySelector(`.${K.containerClass}`);if(X&&(X=X.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),f.imageEl=X,X?f.imageWrapEl=Hn(f.imageEl,`.${K.containerClass}`)[0]:f.imageWrapEl=void 0,!f.imageWrapEl){f.imageEl=void 0;return}f.maxRatio=f.imageWrapEl.getAttribute("data-swiper-zoom")||K.maxRatio}if(f.imageEl){const[X,Z]=b();f.originX=X,f.originY=Z,f.imageEl.style.transitionDuration="0ms"}a=!0}}function M(H){if(!_(H))return;const K=e.params.zoom,X=e.zoom,Z=c.findIndex(ce=>ce.pointerId===H.pointerId);Z>=0&&(c[Z]=H),!(c.length<2)&&(u=!0,f.scaleMove=y(),f.imageEl&&(X.scale=f.scaleMove/f.scaleStart*o,X.scale>f.maxRatio&&(X.scale=f.maxRatio-1+(X.scale-f.maxRatio+1)**.5),X.scalece.pointerId===H.pointerId);Z>=0&&c.splice(Z,1),!(!l||!u)&&(l=!1,u=!1,f.imageEl&&(X.scale=Math.max(Math.min(X.scale,f.maxRatio),K.minRatio),f.imageEl.style.transitionDuration=`${e.params.speed}ms`,f.imageEl.style.transform=`translate3d(0,0,0) scale(${X.scale})`,o=X.scale,a=!1,X.scale>1&&f.slideEl?f.slideEl.classList.add(`${K.zoomedSlideClass}`):X.scale<=1&&f.slideEl&&f.slideEl.classList.remove(`${K.zoomedSlideClass}`),X.scale===1&&(f.originX=0,f.originY=0,f.slideEl=void 0)))}function $(H){const K=e.device;if(!f.imageEl||d.isTouched)return;K.android&&H.cancelable&&H.preventDefault(),d.isTouched=!0;const X=c.length>0?c[0]:H;d.touchesStart.x=X.pageX,d.touchesStart.y=X.pageY}function F(H){if(!_(H)||!v(H))return;const K=e.zoom;if(!f.imageEl||!d.isTouched||!f.slideEl)return;d.isMoved||(d.width=f.imageEl.offsetWidth,d.height=f.imageEl.offsetHeight,d.startX=rd(f.imageWrapEl,"x")||0,d.startY=rd(f.imageWrapEl,"y")||0,f.slideWidth=f.slideEl.offsetWidth,f.slideHeight=f.slideEl.offsetHeight,f.imageWrapEl.style.transitionDuration="0ms");const X=d.width*K.scale,Z=d.height*K.scale;if(X0?c[0].pageX:H.pageX,d.touchesCurrent.y=c.length>0?c[0].pageY:H.pageY,Math.max(Math.abs(d.touchesCurrent.x-d.touchesStart.x),Math.abs(d.touchesCurrent.y-d.touchesStart.y))>5&&(e.allowClick=!1),!d.isMoved&&!a){if(e.isHorizontal()&&(Math.floor(d.minX)===Math.floor(d.startX)&&d.touchesCurrent.xd.touchesStart.x)){d.isTouched=!1;return}if(!e.isHorizontal()&&(Math.floor(d.minY)===Math.floor(d.startY)&&d.touchesCurrent.yd.touchesStart.y)){d.isTouched=!1;return}}H.cancelable&&H.preventDefault(),H.stopPropagation(),d.isMoved=!0;const pe=(K.scale-o)/(f.maxRatio-e.params.zoom.minRatio),{originX:de,originY:me}=f;d.currentX=d.touchesCurrent.x-d.touchesStart.x+d.startX+pe*(d.width-de*2),d.currentY=d.touchesCurrent.y-d.touchesStart.y+d.startY+pe*(d.height-me*2),d.currentXd.maxX&&(d.currentX=d.maxX-1+(d.currentX-d.maxX+1)**.8),d.currentYd.maxY&&(d.currentY=d.maxY-1+(d.currentY-d.maxY+1)**.8),h.prevPositionX||(h.prevPositionX=d.touchesCurrent.x),h.prevPositionY||(h.prevPositionY=d.touchesCurrent.y),h.prevTime||(h.prevTime=Date.now()),h.x=(d.touchesCurrent.x-h.prevPositionX)/(Date.now()-h.prevTime)/2,h.y=(d.touchesCurrent.y-h.prevPositionY)/(Date.now()-h.prevTime)/2,Math.abs(d.touchesCurrent.x-h.prevPositionX)<2&&(h.x=0),Math.abs(d.touchesCurrent.y-h.prevPositionY)<2&&(h.y=0),h.prevPositionX=d.touchesCurrent.x,h.prevPositionY=d.touchesCurrent.y,h.prevTime=Date.now(),f.imageWrapEl.style.transform=`translate3d(${d.currentX}px, ${d.currentY}px,0)`}function L(){const H=e.zoom;if(!f.imageEl)return;if(!d.isTouched||!d.isMoved){d.isTouched=!1,d.isMoved=!1;return}d.isTouched=!1,d.isMoved=!1;let K=300,X=300;const Z=h.x*K,ce=d.currentX+Z,pe=h.y*X,de=d.currentY+pe;h.x!==0&&(K=Math.abs((ce-d.currentX)/h.x)),h.y!==0&&(X=Math.abs((de-d.currentY)/h.y));const me=Math.max(K,X);d.currentX=ce,d.currentY=de;const be=d.width*H.scale,G=d.height*H.scale;d.minX=Math.min(f.slideWidth/2-be/2,0),d.maxX=-d.minX,d.minY=Math.min(f.slideHeight/2-G/2,0),d.maxY=-d.minY,d.currentX=Math.max(Math.min(d.currentX,d.maxX),d.minX),d.currentY=Math.max(Math.min(d.currentY,d.maxY),d.minY),f.imageWrapEl.style.transitionDuration=`${me}ms`,f.imageWrapEl.style.transform=`translate3d(${d.currentX}px, ${d.currentY}px,0)`}function U(){const H=e.zoom;f.slideEl&&e.activeIndex!==e.slides.indexOf(f.slideEl)&&(f.imageEl&&(f.imageEl.style.transform="translate3d(0,0,0) scale(1)"),f.imageWrapEl&&(f.imageWrapEl.style.transform="translate3d(0,0,0)"),f.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`),H.scale=1,o=1,f.slideEl=void 0,f.imageEl=void 0,f.imageWrapEl=void 0,f.originX=0,f.originY=0)}function k(H){const K=e.zoom,X=e.params.zoom;if(!f.slideEl){H&&H.target&&(f.slideEl=H.target.closest(`.${e.params.slideClass}, swiper-slide`)),f.slideEl||(e.params.virtual&&e.params.virtual.enabled&&e.virtual?f.slideEl=Qe(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:f.slideEl=e.slides[e.activeIndex]);let re=f.slideEl.querySelector(`.${X.containerClass}`);re&&(re=re.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),f.imageEl=re,re?f.imageWrapEl=Hn(f.imageEl,`.${X.containerClass}`)[0]:f.imageWrapEl=void 0}if(!f.imageEl||!f.imageWrapEl)return;e.params.cssMode&&(e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.touchAction="none"),f.slideEl.classList.add(`${X.zoomedSlideClass}`);let Z,ce,pe,de,me,be,G,Y,ne,ee,ue,P,w,S,A,B,z,q;typeof d.touchesStart.x>"u"&&H?(Z=H.pageX,ce=H.pageY):(Z=d.touchesStart.x,ce=d.touchesStart.y);const ie=typeof H=="number"?H:null;o===1&&ie&&(Z=void 0,ce=void 0),K.scale=ie||f.imageWrapEl.getAttribute("data-swiper-zoom")||X.maxRatio,o=ie||f.imageWrapEl.getAttribute("data-swiper-zoom")||X.maxRatio,H&&!(o===1&&ie)?(z=f.slideEl.offsetWidth,q=f.slideEl.offsetHeight,pe=yl(f.slideEl).left+s.scrollX,de=yl(f.slideEl).top+s.scrollY,me=pe+z/2-Z,be=de+q/2-ce,ne=f.imageEl.offsetWidth,ee=f.imageEl.offsetHeight,ue=ne*K.scale,P=ee*K.scale,w=Math.min(z/2-ue/2,0),S=Math.min(q/2-P/2,0),A=-w,B=-S,G=me*K.scale,Y=be*K.scale,GA&&(G=A),YB&&(Y=B)):(G=0,Y=0),ie&&K.scale===1&&(f.originX=0,f.originY=0),f.imageWrapEl.style.transitionDuration="300ms",f.imageWrapEl.style.transform=`translate3d(${G}px, ${Y}px,0)`,f.imageEl.style.transitionDuration="300ms",f.imageEl.style.transform=`translate3d(0,0,0) scale(${K.scale})`}function W(){const H=e.zoom,K=e.params.zoom;if(!f.slideEl){e.params.virtual&&e.params.virtual.enabled&&e.virtual?f.slideEl=Qe(e.slidesEl,`.${e.params.slideActiveClass}`)[0]:f.slideEl=e.slides[e.activeIndex];let X=f.slideEl.querySelector(`.${K.containerClass}`);X&&(X=X.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),f.imageEl=X,X?f.imageWrapEl=Hn(f.imageEl,`.${K.containerClass}`)[0]:f.imageWrapEl=void 0}!f.imageEl||!f.imageWrapEl||(e.params.cssMode&&(e.wrapperEl.style.overflow="",e.wrapperEl.style.touchAction=""),H.scale=1,o=1,f.imageWrapEl.style.transitionDuration="300ms",f.imageWrapEl.style.transform="translate3d(0,0,0)",f.imageEl.style.transitionDuration="300ms",f.imageEl.style.transform="translate3d(0,0,0) scale(1)",f.slideEl.classList.remove(`${K.zoomedSlideClass}`),f.slideEl=void 0,f.originX=0,f.originY=0)}function D(H){const K=e.zoom;K.scale&&K.scale!==1?W():k(H)}function O(){const H=e.params.passiveListeners?{passive:!0,capture:!1}:!1,K=e.params.passiveListeners?{passive:!1,capture:!0}:!0;return{passiveListener:H,activeListenerWithCapture:K}}function j(){const H=e.zoom;if(H.enabled)return;H.enabled=!0;const{passiveListener:K,activeListenerWithCapture:X}=O();e.wrapperEl.addEventListener("pointerdown",T,K),e.wrapperEl.addEventListener("pointermove",M,X),["pointerup","pointercancel","pointerout"].forEach(Z=>{e.wrapperEl.addEventListener(Z,I,K)}),e.wrapperEl.addEventListener("pointermove",F,X)}function Q(){const H=e.zoom;if(!H.enabled)return;H.enabled=!1;const{passiveListener:K,activeListenerWithCapture:X}=O();e.wrapperEl.removeEventListener("pointerdown",T,K),e.wrapperEl.removeEventListener("pointermove",M,X),["pointerup","pointercancel","pointerout"].forEach(Z=>{e.wrapperEl.removeEventListener(Z,I,K)}),e.wrapperEl.removeEventListener("pointermove",F,X)}n("init",()=>{e.params.zoom.enabled&&j()}),n("destroy",()=>{Q()}),n("touchStart",(H,K)=>{e.zoom.enabled&&$(K)}),n("touchEnd",(H,K)=>{e.zoom.enabled&&L()}),n("doubleTap",(H,K)=>{!e.animating&&e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&D(K)}),n("transitionEnd",()=>{e.zoom.enabled&&e.params.zoom.enabled&&U()}),n("slideChange",()=>{e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssMode&&U()}),Object.assign(e.zoom,{enable:j,disable:Q,in:k,out:W,toggle:D})}function qH(t){let{swiper:e,extendParams:r,on:n}=t;r({controller:{control:void 0,inverse:!1,by:"slide"}}),e.controller={control:void 0};function i(u,c){const f=function(){let y,b,E;return(_,v)=>{for(b=-1,y=_.length;y-b>1;)E=y+b>>1,_[E]<=v?b=E:y=E;return y}}();this.x=u,this.y=c,this.lastIndex=u.length-1;let d,h;return this.interpolate=function(y){return y?(h=f(this.x,y),d=h-1,(y-this.x[d])*(this.y[h]-this.y[d])/(this.x[h]-this.x[d])+this.y[d]):0},this}function s(u){e.controller.spline=e.params.loop?new i(e.slidesGrid,u.slidesGrid):new i(e.snapGrid,u.snapGrid)}function o(u,c){const f=e.controller.control;let d,h;const g=e.constructor;function y(b){if(b.destroyed)return;const E=e.rtlTranslate?-e.translate:e.translate;e.params.controller.by==="slide"&&(s(b),h=-e.controller.spline.interpolate(-E)),(!h||e.params.controller.by==="container")&&(d=(b.maxTranslate()-b.minTranslate())/(e.maxTranslate()-e.minTranslate()),(Number.isNaN(d)||!Number.isFinite(d))&&(d=1),h=(E-e.minTranslate())*d+b.minTranslate()),e.params.controller.inverse&&(h=b.maxTranslate()-h),b.updateProgress(h),b.setTranslate(h,e),b.updateActiveIndex(),b.updateSlidesClasses()}if(Array.isArray(f))for(let b=0;b{y.updateAutoHeight()}),Qs(y.wrapperEl,()=>{d&&y.transitionEnd()})))}if(Array.isArray(d))for(h=0;h{if(typeof window<"u"&&(typeof e.params.controller.control=="string"||e.params.controller.control instanceof HTMLElement)){const u=document.querySelector(e.params.controller.control);if(u&&u.swiper)e.controller.control=u.swiper;else if(u){const c=f=>{e.controller.control=f.detail[0],e.update(),u.removeEventListener("init",c)};u.addEventListener("init",c)}return}e.controller.control=e.params.controller.control}),n("update",()=>{l()}),n("resize",()=>{l()}),n("observerUpdate",()=>{l()}),n("setTranslate",(u,c,f)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTranslate(c,f)}),n("setTransition",(u,c,f)=>{!e.controller.control||e.controller.control.destroyed||e.controller.setTransition(c,f)}),Object.assign(e.controller,{setTranslate:o,setTransition:a})}function YH(t){let{swiper:e,extendParams:r,on:n}=t;r({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null}}),e.a11y={clicked:!1};let i=null;function s(O){const j=i;j.length!==0&&(j.innerHTML="",j.innerHTML=O)}const o=O=>(Array.isArray(O)?O:[O]).filter(j=>!!j);function a(O){O===void 0&&(O=16);const j=()=>Math.round(16*Math.random()).toString(16);return"x".repeat(O).replace(/x/g,j)}function l(O){O=o(O),O.forEach(j=>{j.setAttribute("tabIndex","0")})}function u(O){O=o(O),O.forEach(j=>{j.setAttribute("tabIndex","-1")})}function c(O,j){O=o(O),O.forEach(Q=>{Q.setAttribute("role",j)})}function f(O,j){O=o(O),O.forEach(Q=>{Q.setAttribute("aria-roledescription",j)})}function d(O,j){O=o(O),O.forEach(Q=>{Q.setAttribute("aria-controls",j)})}function h(O,j){O=o(O),O.forEach(Q=>{Q.setAttribute("aria-label",j)})}function g(O,j){O=o(O),O.forEach(Q=>{Q.setAttribute("id",j)})}function y(O,j){O=o(O),O.forEach(Q=>{Q.setAttribute("aria-live",j)})}function b(O){O=o(O),O.forEach(j=>{j.setAttribute("aria-disabled",!0)})}function E(O){O=o(O),O.forEach(j=>{j.setAttribute("aria-disabled",!1)})}function _(O){if(O.keyCode!==13&&O.keyCode!==32)return;const j=e.params.a11y,Q=O.target;e.pagination&&e.pagination.el&&(Q===e.pagination.el||e.pagination.el.contains(O.target))&&!O.target.matches(nn(e.params.pagination.bulletClass))||(e.navigation&&e.navigation.nextEl&&Q===e.navigation.nextEl&&(e.isEnd&&!e.params.loop||e.slideNext(),e.isEnd?s(j.lastSlideMessage):s(j.nextSlideMessage)),e.navigation&&e.navigation.prevEl&&Q===e.navigation.prevEl&&(e.isBeginning&&!e.params.loop||e.slidePrev(),e.isBeginning?s(j.firstSlideMessage):s(j.prevSlideMessage)),e.pagination&&Q.matches(nn(e.params.pagination.bulletClass))&&Q.click())}function v(){if(e.params.loop||e.params.rewind||!e.navigation)return;const{nextEl:O,prevEl:j}=e.navigation;j&&(e.isBeginning?(b(j),u(j)):(E(j),l(j))),O&&(e.isEnd?(b(O),u(O)):(E(O),l(O)))}function T(){return e.pagination&&e.pagination.bullets&&e.pagination.bullets.length}function M(){return T()&&e.params.pagination.clickable}function I(){const O=e.params.a11y;T()&&e.pagination.bullets.forEach(j=>{e.params.pagination.clickable&&(l(j),e.params.pagination.renderBullet||(c(j,"button"),h(j,O.paginationBulletMessage.replace(/\{\{index\}\}/,mo(j)+1)))),j.matches(nn(e.params.pagination.bulletActiveClass))?j.setAttribute("aria-current","true"):j.removeAttribute("aria-current")})}const $=(O,j,Q)=>{l(O),O.tagName!=="BUTTON"&&(c(O,"button"),O.addEventListener("keydown",_)),h(O,Q),d(O,j)},F=()=>{e.a11y.clicked=!0},L=()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.destroyed||(e.a11y.clicked=!1)})})},U=O=>{if(e.a11y.clicked)return;const j=O.target.closest(`.${e.params.slideClass}, swiper-slide`);if(!j||!e.slides.includes(j))return;const Q=e.slides.indexOf(j)===e.activeIndex,H=e.params.watchSlidesProgress&&e.visibleSlides&&e.visibleSlides.includes(j);Q||H||O.sourceCapabilities&&O.sourceCapabilities.firesTouchEvents||(e.isHorizontal()?e.el.scrollLeft=0:e.el.scrollTop=0,e.slideTo(e.slides.indexOf(j),0))},k=()=>{const O=e.params.a11y;O.itemRoleDescriptionMessage&&f(e.slides,O.itemRoleDescriptionMessage),O.slideRole&&c(e.slides,O.slideRole);const j=e.slides.length;O.slideLabelMessage&&e.slides.forEach((Q,H)=>{const K=e.params.loop?parseInt(Q.getAttribute("data-swiper-slide-index"),10):H,X=O.slideLabelMessage.replace(/\{\{index\}\}/,K+1).replace(/\{\{slidesLength\}\}/,j);h(Q,X)})},W=()=>{const O=e.params.a11y;e.el.append(i);const j=e.el;O.containerRoleDescriptionMessage&&f(j,O.containerRoleDescriptionMessage),O.containerMessage&&h(j,O.containerMessage);const Q=e.wrapperEl,H=O.id||Q.getAttribute("id")||`swiper-wrapper-${a(16)}`,K=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite";g(Q,H),y(Q,K),k();let{nextEl:X,prevEl:Z}=e.navigation?e.navigation:{};X=o(X),Z=o(Z),X&&X.forEach(ce=>$(ce,H,O.nextSlideMessage)),Z&&Z.forEach(ce=>$(ce,H,O.prevSlideMessage)),M()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(pe=>{pe.addEventListener("keydown",_)}),e.el.addEventListener("focus",U,!0),e.el.addEventListener("pointerdown",F,!0),e.el.addEventListener("pointerup",L,!0)};function D(){i&&i.remove();let{nextEl:O,prevEl:j}=e.navigation?e.navigation:{};O=o(O),j=o(j),O&&O.forEach(Q=>Q.removeEventListener("keydown",_)),j&&j.forEach(Q=>Q.removeEventListener("keydown",_)),M()&&(Array.isArray(e.pagination.el)?e.pagination.el:[e.pagination.el]).forEach(H=>{H.removeEventListener("keydown",_)}),e.el.removeEventListener("focus",U,!0),e.el.removeEventListener("pointerdown",F,!0),e.el.removeEventListener("pointerup",L,!0)}n("beforeInit",()=>{i=Vt("span",e.params.a11y.notificationClass),i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true")}),n("afterInit",()=>{e.params.a11y.enabled&&W()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{e.params.a11y.enabled&&k()}),n("fromEdge toEdge afterInit lock unlock",()=>{e.params.a11y.enabled&&v()}),n("paginationUpdate",()=>{e.params.a11y.enabled&&I()}),n("destroy",()=>{e.params.a11y.enabled&&D()})}function KH(t){let{swiper:e,extendParams:r,on:n}=t;r({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let i=!1,s={};const o=h=>h.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),a=h=>{const g=je();let y;h?y=new URL(h):y=g.location;const b=y.pathname.slice(1).split("/").filter(T=>T!==""),E=b.length,_=b[E-2],v=b[E-1];return{key:_,value:v}},l=(h,g)=>{const y=je();if(!i||!e.params.history.enabled)return;let b;e.params.url?b=new URL(e.params.url):b=y.location;const E=e.slides[g];let _=o(E.getAttribute("data-history"));if(e.params.history.root.length>0){let T=e.params.history.root;T[T.length-1]==="/"&&(T=T.slice(0,T.length-1)),_=`${T}/${h?`${h}/`:""}${_}`}else b.pathname.includes(h)||(_=`${h?`${h}/`:""}${_}`);e.params.history.keepQuery&&(_+=b.search);const v=y.history.state;v&&v.value===_||(e.params.history.replaceState?y.history.replaceState({value:_},null,_):y.history.pushState({value:_},null,_))},u=(h,g,y)=>{if(g)for(let b=0,E=e.slides.length;b{s=a(e.params.url),u(e.params.speed,s.value,!1)},f=()=>{const h=je();if(e.params.history){if(!h.history||!h.history.pushState){e.params.history.enabled=!1,e.params.hashNavigation.enabled=!0;return}if(i=!0,s=a(e.params.url),!s.key&&!s.value){e.params.history.replaceState||h.addEventListener("popstate",c);return}u(0,s.value,e.params.runCallbacksOnInit),e.params.history.replaceState||h.addEventListener("popstate",c)}},d=()=>{const h=je();e.params.history.replaceState||h.removeEventListener("popstate",c)};n("init",()=>{e.params.history.enabled&&f()}),n("destroy",()=>{e.params.history.enabled&&d()}),n("transitionEnd _freeModeNoMomentumRelease",()=>{i&&l(e.params.history.key,e.activeIndex)}),n("slideChange",()=>{i&&e.params.cssMode&&l(e.params.history.key,e.activeIndex)})}function GH(t){let{swiper:e,extendParams:r,emit:n,on:i}=t,s=!1;const o=st(),a=je();r({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(d,h){if(e.virtual&&e.params.virtual.enabled){const g=e.slides.filter(b=>b.getAttribute("data-hash")===h)[0];return g?parseInt(g.getAttribute("data-swiper-slide-index"),10):0}return e.getSlideIndex(Qe(e.slidesEl,`.${e.params.slideClass}[data-hash="${h}"], swiper-slide[data-hash="${h}"]`)[0])}}});const l=()=>{n("hashChange");const d=o.location.hash.replace("#",""),h=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],g=h?h.getAttribute("data-hash"):"";if(d!==g){const y=e.params.hashNavigation.getSlideIndex(e,d);if(typeof y>"u"||Number.isNaN(y))return;e.slideTo(y)}},u=()=>{if(!s||!e.params.hashNavigation.enabled)return;const d=e.virtual&&e.params.virtual.enabled?e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`):e.slides[e.activeIndex],h=d?d.getAttribute("data-hash")||d.getAttribute("data-history"):"";e.params.hashNavigation.replaceState&&a.history&&a.history.replaceState?(a.history.replaceState(null,null,`#${h}`||""),n("hashSet")):(o.location.hash=h||"",n("hashSet"))},c=()=>{if(!e.params.hashNavigation.enabled||e.params.history&&e.params.history.enabled)return;s=!0;const d=o.location.hash.replace("#","");if(d){const g=e.params.hashNavigation.getSlideIndex(e,d);e.slideTo(g||0,0,e.params.runCallbacksOnInit,!0)}e.params.hashNavigation.watchState&&a.addEventListener("hashchange",l)},f=()=>{e.params.hashNavigation.watchState&&a.removeEventListener("hashchange",l)};i("init",()=>{e.params.hashNavigation.enabled&&c()}),i("destroy",()=>{e.params.hashNavigation.enabled&&f()}),i("transitionEnd _freeModeNoMomentumRelease",()=>{s&&u()}),i("slideChange",()=>{s&&e.params.cssMode&&u()})}function XH(t){let{swiper:e,extendParams:r,on:n,emit:i,params:s}=t;e.autoplay={running:!1,paused:!1,timeLeft:0},r({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,a,l=s&&s.autoplay?s.autoplay.delay:3e3,u=s&&s.autoplay?s.autoplay.delay:3e3,c,f=new Date().getTime,d,h,g,y,b,E;function _(H){!e||e.destroyed||!e.wrapperEl||H.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",_),L())}const v=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?d=!0:d&&(u=c,d=!1);const H=e.autoplay.paused?c:f+u-new Date().getTime();e.autoplay.timeLeft=H,i("autoplayTimeLeft",H,H/l),a=requestAnimationFrame(()=>{v()})},T=()=>{let H;return e.virtual&&e.params.virtual.enabled?H=e.slides.filter(X=>X.classList.contains("swiper-slide-active"))[0]:H=e.slides[e.activeIndex],H?parseInt(H.getAttribute("data-swiper-autoplay"),10):void 0},M=H=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(a),v();let K=typeof H>"u"?e.params.autoplay.delay:H;l=e.params.autoplay.delay,u=e.params.autoplay.delay;const X=T();!Number.isNaN(X)&&X>0&&typeof H>"u"&&(K=X,l=X,u=X),c=K;const Z=e.params.speed,ce=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(Z,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,Z,!0,!0),i("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(Z,!0,!0),i("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,Z,!0,!0),i("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{M()})))};return K>0?(clearTimeout(o),o=setTimeout(()=>{ce()},K)):requestAnimationFrame(()=>{ce()}),K},I=()=>{e.autoplay.running=!0,M(),i("autoplayStart")},$=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(a),i("autoplayStop")},F=(H,K)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),H||(E=!0);const X=()=>{i("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",_):L()};if(e.autoplay.paused=!0,K){b&&(c=e.params.autoplay.delay),b=!1,X();return}c=(c||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&c<0&&!e.params.loop)&&(c<0&&(c=0),X())},L=()=>{e.isEnd&&c<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),E?(E=!1,M(c)):M(),e.autoplay.paused=!1,i("autoplayResume"))},U=()=>{if(e.destroyed||!e.autoplay.running)return;const H=st();H.visibilityState==="hidden"&&(E=!0,F(!0)),H.visibilityState==="visible"&&L()},k=H=>{H.pointerType==="mouse"&&(E=!0,!(e.animating||e.autoplay.paused)&&F(!0))},W=H=>{H.pointerType==="mouse"&&e.autoplay.paused&&L()},D=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",k),e.el.addEventListener("pointerleave",W))},O=()=>{e.el.removeEventListener("pointerenter",k),e.el.removeEventListener("pointerleave",W)},j=()=>{st().addEventListener("visibilitychange",U)},Q=()=>{st().removeEventListener("visibilitychange",U)};n("init",()=>{e.params.autoplay.enabled&&(D(),j(),f=new Date().getTime(),I())}),n("destroy",()=>{O(),Q(),e.autoplay.running&&$()}),n("beforeTransitionStart",(H,K,X)=>{e.destroyed||!e.autoplay.running||(X||!e.params.autoplay.disableOnInteraction?F(!0,!0):$())}),n("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){$();return}h=!0,g=!1,E=!1,y=setTimeout(()=>{E=!0,g=!0,F(!0)},200)}}),n("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!h)){if(clearTimeout(y),clearTimeout(o),e.params.autoplay.disableOnInteraction){g=!1,h=!1;return}g&&e.params.cssMode&&L(),g=!1,h=!1}}),n("slideChange",()=>{e.destroyed||!e.autoplay.running||(b=!0)}),Object.assign(e.autoplay,{start:I,stop:$,pause:F,resume:L})}function QH(t){let{swiper:e,extendParams:r,on:n}=t;r({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let i=!1,s=!1;e.thumbs={swiper:null};function o(){const u=e.thumbs.swiper;if(!u||u.destroyed)return;const c=u.clickedIndex,f=u.clickedSlide;if(f&&f.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof c>"u"||c===null)return;let d;u.params.loop?d=parseInt(u.clickedSlide.getAttribute("data-swiper-slide-index"),10):d=c,e.params.loop?e.slideToLoop(d):e.slideTo(d)}function a(){const{thumbs:u}=e.params;if(i)return!1;i=!0;const c=e.constructor;if(u.swiper instanceof c)e.thumbs.swiper=u.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update();else if(Fs(u.swiper)){const f=Object.assign({},u.swiper);Object.assign(f,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new c(f),s=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",o),!0}function l(u){const c=e.thumbs.swiper;if(!c||c.destroyed)return;const f=c.params.slidesPerView==="auto"?c.slidesPerViewDynamic():c.params.slidesPerView;let d=1;const h=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(d=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(d=1),d=Math.floor(d),c.slides.forEach(b=>b.classList.remove(h)),c.params.loop||c.params.virtual&&c.params.virtual.enabled)for(let b=0;b{E.classList.add(h)});else for(let b=0;bT.getAttribute("data-swiper-slide-index")===`${e.realIndex}`)[0];E=c.slides.indexOf(v),_=e.activeIndex>e.previousIndex?"next":"prev"}else E=e.realIndex,_=E>e.previousIndex?"next":"prev";y&&(E+=_==="next"?g:-1*g),c.visibleSlidesIndexes&&c.visibleSlidesIndexes.indexOf(E)<0&&(c.params.centeredSlides?E>b?E=E-Math.floor(f/2)+1:E=E+Math.floor(f/2)-1:E>b&&c.params.slidesPerGroup,c.slideTo(E,u?0:void 0))}}n("beforeInit",()=>{const{thumbs:u}=e.params;if(!(!u||!u.swiper))if(typeof u.swiper=="string"||u.swiper instanceof HTMLElement){const c=st(),f=()=>{const h=typeof u.swiper=="string"?c.querySelector(u.swiper):u.swiper;if(h&&h.swiper)u.swiper=h.swiper,a(),l(!0);else if(h){const g=y=>{u.swiper=y.detail[0],h.removeEventListener("init",g),a(),l(!0),u.swiper.update(),e.update()};h.addEventListener("init",g)}return h},d=()=>{if(e.destroyed)return;f()||requestAnimationFrame(d)};requestAnimationFrame(d)}else a(),l(!0)}),n("slideChange update resize observerUpdate",()=>{l()}),n("setTransition",(u,c)=>{const f=e.thumbs.swiper;!f||f.destroyed||f.setTransition(c)}),n("beforeDestroy",()=>{const u=e.thumbs.swiper;!u||u.destroyed||s&&u.destroy()}),Object.assign(e.thumbs,{init:a,update:l})}function JH(t){let{swiper:e,extendParams:r,emit:n,once:i}=t;r({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function s(){if(e.params.cssMode)return;const l=e.getTranslate();e.setTranslate(l),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function o(){if(e.params.cssMode)return;const{touchEventsData:l,touches:u}=e;l.velocities.length===0&&l.velocities.push({position:u[e.isHorizontal()?"startX":"startY"],time:l.touchStartTime}),l.velocities.push({position:u[e.isHorizontal()?"currentX":"currentY"],time:Ct()})}function a(l){let{currentPos:u}=l;if(e.params.cssMode)return;const{params:c,wrapperEl:f,rtlTranslate:d,snapGrid:h,touchEventsData:g}=e,b=Ct()-g.touchStartTime;if(u<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(u>-e.maxTranslate()){e.slides.length1){const F=g.velocities.pop(),L=g.velocities.pop(),U=F.position-L.position,k=F.time-L.time;e.velocity=U/k,e.velocity/=2,Math.abs(e.velocity)150||Ct()-F.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=c.freeMode.momentumVelocityRatio,g.velocities.length=0;let E=1e3*c.freeMode.momentumRatio;const _=e.velocity*E;let v=e.translate+_;d&&(v=-v);let T=!1,M;const I=Math.abs(e.velocity)*20*c.freeMode.momentumBounceRatio;let $;if(ve.minTranslate())c.freeMode.momentumBounce?(v-e.minTranslate()>I&&(v=e.minTranslate()+I),M=e.minTranslate(),T=!0,g.allowMomentumBounce=!0):v=e.minTranslate(),c.loop&&c.centeredSlides&&($=!0);else if(c.freeMode.sticky){let F;for(let L=0;L-v){F=L;break}Math.abs(h[F]-v){e.loopFix()}),e.velocity!==0){if(d?E=Math.abs((-v-e.translate)/e.velocity):E=Math.abs((v-e.translate)/e.velocity),c.freeMode.sticky){const F=Math.abs((d?-v:v)-e.translate),L=e.slidesSizesGrid[e.activeIndex];F{!e||e.destroyed||!g.allowMomentumBounce||(n("momentumBounce"),e.setTransition(c.speed),setTimeout(()=>{e.setTranslate(M),Qs(f,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(v),e.setTransition(E),e.setTranslate(v),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,Qs(f,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(v),e.updateActiveIndex(),e.updateSlidesClasses()}else if(c.freeMode.sticky){e.slideToClosest();return}else c.freeMode&&n("_freeModeNoMomentumRelease");(!c.freeMode.momentum||b>=c.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:s,onTouchMove:o,onTouchEnd:a}})}function ZH(t){let{swiper:e,extendParams:r,on:n}=t;r({grid:{rows:1,fill:"column"}});let i,s,o,a;const l=()=>{let g=e.params.spaceBetween;return typeof g=="string"&&g.indexOf("%")>=0?g=parseFloat(g.replace("%",""))/100*e.size:typeof g=="string"&&(g=parseFloat(g)),g},u=g=>{const{slidesPerView:y}=e.params,{rows:b,fill:E}=e.params.grid;o=Math.floor(g/b),Math.floor(g/b)===g/b?i=g:i=Math.ceil(g/b)*b,y!=="auto"&&E==="row"&&(i=Math.max(i,y*b)),s=i/b},c=(g,y,b,E)=>{const{slidesPerGroup:_}=e.params,v=l(),{rows:T,fill:M}=e.params.grid;let I,$,F;if(M==="row"&&_>1){const L=Math.floor(g/(_*T)),U=g-T*_*L,k=L===0?_:Math.min(Math.ceil((b-L*T*_)/T),_);F=Math.floor(U/k),$=U-F*k+L*_,I=$+F*i/T,y.style.order=I}else M==="column"?($=Math.floor(g/T),F=g-$*T,($>o||$===o&&F===T-1)&&(F+=1,F>=T&&(F=0,$+=1))):(F=Math.floor(g/s),$=g-F*s);y.row=F,y.column=$,y.style[E("margin-top")]=F!==0?v&&`${v}px`:""},f=(g,y,b)=>{const{centeredSlides:E,roundLengths:_}=e.params,v=l(),{rows:T}=e.params.grid;if(e.virtualSize=(g+v)*i,e.virtualSize=Math.ceil(e.virtualSize/T)-v,e.wrapperEl.style[b("width")]=`${e.virtualSize+v}px`,E){const M=[];for(let I=0;I{a=e.params.grid&&e.params.grid.rows>1},h=()=>{const{params:g,el:y}=e,b=g.grid&&g.grid.rows>1;a&&!b?(y.classList.remove(`${g.containerModifierClass}grid`,`${g.containerModifierClass}grid-column`),o=1,e.emitContainerClasses()):!a&&b&&(y.classList.add(`${g.containerModifierClass}grid`),g.grid.fill==="column"&&y.classList.add(`${g.containerModifierClass}grid-column`),e.emitContainerClasses()),a=b};n("init",d),n("update",h),e.grid={initSlides:u,updateSlide:c,updateWrapperSize:f}}function eW(t){const e=this,{params:r,slidesEl:n}=e;r.loop&&e.loopDestroy();const i=s=>{if(typeof s=="string"){const o=document.createElement("div");o.innerHTML=s,n.append(o.children[0]),o.innerHTML=""}else n.append(s)};if(typeof t=="object"&&"length"in t)for(let s=0;s{if(typeof a=="string"){const l=document.createElement("div");l.innerHTML=a,i.prepend(l.children[0]),l.innerHTML=""}else i.prepend(a)};if(typeof t=="object"&&"length"in t){for(let a=0;a=a){r.appendSlide(e);return}let l=o>t?o+1:o;const u=[];for(let c=a-1;c>=t;c-=1){const f=r.slides[c];f.remove(),u.unshift(f)}if(typeof e=="object"&&"length"in e){for(let c=0;ct?o+e.length:o}else s.append(e);for(let c=0;c{if(r.params.effect!==e)return;r.classNames.push(`${r.params.containerModifierClass}${e}`),a&&a()&&r.classNames.push(`${r.params.containerModifierClass}3d`);const f=o?o():{};Object.assign(r.params,f),Object.assign(r.originalParams,f)}),n("setTranslate",()=>{r.params.effect===e&&i()}),n("setTransition",(f,d)=>{r.params.effect===e&&s(d)}),n("transitionEnd",()=>{if(r.params.effect===e&&l){if(!u||!u().slideShadows)return;r.slides.forEach(f=>{f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>d.remove())}),l()}});let c;n("virtualUpdate",()=>{r.params.effect===e&&(r.slides.length||(c=!0),requestAnimationFrame(()=>{c&&r.slides&&r.slides.length&&(i(),c=!1)}))})}function Bo(t,e){const r=ai(e);return r!==e&&(r.style.backfaceVisibility="hidden",r.style["-webkit-backface-visibility"]="hidden"),r}function Ou(t){let{swiper:e,duration:r,transformElements:n,allSlides:i}=t;const{activeIndex:s}=e,o=a=>a.parentElement?a.parentElement:e.slides.filter(u=>u.shadowRoot&&u.shadowRoot===a.parentNode)[0];if(e.params.virtualTranslate&&r!==0){let a=!1,l;i?l=n:l=n.filter(u=>{const c=u.classList.contains("swiper-slide-transform")?o(u):u;return e.getSlideIndex(c)===s}),l.forEach(u=>{Qs(u,()=>{if(a||!e||e.destroyed)return;a=!0,e.animating=!1;const c=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(c)})})}}function oW(t){let{swiper:e,extendParams:r,on:n}=t;r({fadeEffect:{crossFade:!1}}),hs({effect:"fade",swiper:e,on:n,setTranslate:()=>{const{slides:o}=e,a=e.params.fadeEffect;for(let l=0;l{const a=e.slides.map(l=>ai(l));a.forEach(l=>{l.style.transitionDuration=`${o}ms`}),Ou({swiper:e,duration:o,transformElements:a,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function aW(t){let{swiper:e,extendParams:r,on:n}=t;r({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const i=(l,u,c)=>{let f=c?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),d=c?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");f||(f=Vt("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"left":"top"}`.split(" ")),l.append(f)),d||(d=Vt("div",`swiper-slide-shadow-cube swiper-slide-shadow-${c?"right":"bottom"}`.split(" ")),l.append(d)),f&&(f.style.opacity=Math.max(-u,0)),d&&(d.style.opacity=Math.max(u,0))};hs({effect:"cube",swiper:e,on:n,setTranslate:()=>{const{el:l,wrapperEl:u,slides:c,width:f,height:d,rtlTranslate:h,size:g,browser:y}=e,b=e.params.cubeEffect,E=e.isHorizontal(),_=e.virtual&&e.params.virtual.enabled;let v=0,T;b.shadow&&(E?(T=e.wrapperEl.querySelector(".swiper-cube-shadow"),T||(T=Vt("div","swiper-cube-shadow"),e.wrapperEl.append(T)),T.style.height=`${f}px`):(T=l.querySelector(".swiper-cube-shadow"),T||(T=Vt("div","swiper-cube-shadow"),l.append(T))));for(let I=0;I-1&&(v=F*90+k*90,h&&(v=-F*90-k*90)),$.style.transform=j,b.slideShadows&&i($,k,E)}if(u.style.transformOrigin=`50% 50% -${g/2}px`,u.style["-webkit-transform-origin"]=`50% 50% -${g/2}px`,b.shadow)if(E)T.style.transform=`translate3d(0px, ${f/2+b.shadowOffset}px, ${-f/2}px) rotateX(90deg) rotateZ(0deg) scale(${b.shadowScale})`;else{const I=Math.abs(v)-Math.floor(Math.abs(v)/90)*90,$=1.5-(Math.sin(I*2*Math.PI/360)/2+Math.cos(I*2*Math.PI/360)/2),F=b.shadowScale,L=b.shadowScale/$,U=b.shadowOffset;T.style.transform=`scale3d(${F}, 1, ${L}) translate3d(0px, ${d/2+U}px, ${-d/2/L}px) rotateX(-90deg)`}const M=(y.isSafari||y.isWebView)&&y.needPerspectiveFix?-g/2:0;u.style.transform=`translate3d(0px,0,${M}px) rotateX(${e.isHorizontal()?0:v}deg) rotateY(${e.isHorizontal()?-v:0}deg)`,u.style.setProperty("--swiper-cube-translate-z",`${M}px`)},setTransition:l=>{const{el:u,slides:c}=e;if(c.forEach(f=>{f.style.transitionDuration=`${l}ms`,f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(d=>{d.style.transitionDuration=`${l}ms`})}),e.params.cubeEffect.shadow&&!e.isHorizontal()){const f=u.querySelector(".swiper-cube-shadow");f&&(f.style.transitionDuration=`${l}ms`)}},recreateShadows:()=>{const l=e.isHorizontal();e.slides.forEach(u=>{const c=Math.max(Math.min(u.progress,1),-1);i(u,c,l)})},getEffectParams:()=>e.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})}function ts(t,e,r){const n=`swiper-slide-shadow${r?`-${r}`:""}${t?` swiper-slide-shadow-${t}`:""}`,i=ai(e);let s=i.querySelector(`.${n.split(" ").join(".")}`);return s||(s=Vt("div",n.split(" ")),i.append(s)),s}function lW(t){let{swiper:e,extendParams:r,on:n}=t;r({flipEffect:{slideShadows:!0,limitRotation:!0}});const i=(l,u)=>{let c=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-left"):l.querySelector(".swiper-slide-shadow-top"),f=e.isHorizontal()?l.querySelector(".swiper-slide-shadow-right"):l.querySelector(".swiper-slide-shadow-bottom");c||(c=ts("flip",l,e.isHorizontal()?"left":"top")),f||(f=ts("flip",l,e.isHorizontal()?"right":"bottom")),c&&(c.style.opacity=Math.max(-u,0)),f&&(f.style.opacity=Math.max(u,0))};hs({effect:"flip",swiper:e,on:n,setTranslate:()=>{const{slides:l,rtlTranslate:u}=e,c=e.params.flipEffect;for(let f=0;f{const u=e.slides.map(c=>ai(c));u.forEach(c=>{c.style.transitionDuration=`${l}ms`,c.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(f=>{f.style.transitionDuration=`${l}ms`})}),Ou({swiper:e,duration:l,transformElements:u})},recreateShadows:()=>{e.params.flipEffect,e.slides.forEach(l=>{let u=l.progress;e.params.flipEffect.limitRotation&&(u=Math.max(Math.min(l.progress,1),-1)),i(l,u)})},getEffectParams:()=>e.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}function uW(t){let{swiper:e,extendParams:r,on:n}=t;r({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),hs({effect:"coverflow",swiper:e,on:n,setTranslate:()=>{const{width:o,height:a,slides:l,slidesSizesGrid:u}=e,c=e.params.coverflowEffect,f=e.isHorizontal(),d=e.translate,h=f?-d+o/2:-d+a/2,g=f?c.rotate:-c.rotate,y=c.depth;for(let b=0,E=l.length;b0?I:0),H&&(H.style.opacity=-I>0?-I:0)}}},setTransition:o=>{e.slides.map(l=>ai(l)).forEach(l=>{l.style.transitionDuration=`${o}ms`,l.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(u=>{u.style.transitionDuration=`${o}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})}function cW(t){let{swiper:e,extendParams:r,on:n}=t;r({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const i=a=>typeof a=="string"?a:`${a}px`;hs({effect:"creative",swiper:e,on:n,setTranslate:()=>{const{slides:a,wrapperEl:l,slidesSizesGrid:u}=e,c=e.params.creativeEffect,{progressMultiplier:f}=c,d=e.params.centeredSlides;if(d){const h=u[0]/2-e.params.slidesOffsetBefore||0;l.style.transform=`translateX(calc(50% - ${h}px))`}for(let h=0;h0&&(I=c.prev,M=!0),v.forEach((D,O)=>{v[O]=`calc(${D}px + (${i(I.translate[O])} * ${Math.abs(b*f)}))`}),T.forEach((D,O)=>{T[O]=I.rotate[O]*Math.abs(b*f)}),g.style.zIndex=-Math.abs(Math.round(y))+a.length;const $=v.join(", "),F=`rotateX(${T[0]}deg) rotateY(${T[1]}deg) rotateZ(${T[2]}deg)`,L=E<0?`scale(${1+(1-I.scale)*E*f})`:`scale(${1-(1-I.scale)*E*f})`,U=E<0?1+(1-I.opacity)*E*f:1-(1-I.opacity)*E*f,k=`translate3d(${$}) ${F} ${L}`;if(M&&I.shadow||!M){let D=g.querySelector(".swiper-slide-shadow");if(!D&&I.shadow&&(D=ts("creative",g)),D){const O=c.shadowPerProgress?b*(1/c.limitProgress):b;D.style.opacity=Math.min(Math.max(Math.abs(O),0),1)}}const W=Bo(c,g);W.style.transform=k,W.style.opacity=U,I.origin&&(W.style.transformOrigin=I.origin)}},setTransition:a=>{const l=e.slides.map(u=>ai(u));l.forEach(u=>{u.style.transitionDuration=`${a}ms`,u.querySelectorAll(".swiper-slide-shadow").forEach(c=>{c.style.transitionDuration=`${a}ms`})}),Ou({swiper:e,duration:a,transformElements:l,allSlides:!0})},perspective:()=>e.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}function fW(t){let{swiper:e,extendParams:r,on:n}=t;r({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),hs({effect:"cards",swiper:e,on:n,setTranslate:()=>{const{slides:o,activeIndex:a,rtlTranslate:l}=e,u=e.params.cardsEffect,{startTranslate:c,isTouched:f}=e.touchEventsData,d=l?-e.translate:e.translate;for(let h=0;h0&&b<1&&(f||e.params.cssMode)&&d-1&&(f||e.params.cssMode)&&d>c;if(L||U){const O=(1-Math.abs((Math.abs(b)-.5)/.5))**.5;I+=-28*b*O,M+=-.5*O,$+=96*O,v=`${-25*O*Math.abs(b)}%`}if(b<0?_=`calc(${_}px ${l?"-":"+"} (${$*Math.abs(b)}%))`:b>0?_=`calc(${_}px ${l?"-":"+"} (-${$*Math.abs(b)}%))`:_=`${_}px`,!e.isHorizontal()){const O=v;v=_,_=O}const k=b<0?`${1+(1-M)*b}`:`${1-(1-M)*b}`,W=` translate3d(${_}, ${v}, ${T}px) rotateZ(${u.rotate?l?-I:I:0}deg) scale(${k}) - `;if(u.slideShadows){let O=g.querySelector(".swiper-slide-shadow");O||(O=ts("cards",g)),O&&(O.style.opacity=Math.min(Math.max((Math.abs(b)-.5)/.5,0),1))}g.style.zIndex=-Math.abs(Math.round(y))+o.length;const D=Do(u,g);D.style.transform=W}},setTransition:o=>{const a=e.slides.map(l=>ai(l));a.forEach(l=>{l.style.transitionDuration=`${o}ms`,l.querySelectorAll(".swiper-slide-shadow").forEach(u=>{u.style.transitionDuration=`${o}ms`})}),Iu({swiper:e,duration:o,transformElements:a})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}const fW=[DH,BH,FH,UH,jH,zH,HH,WH,VH,qH,YH,KH,GH,XH,QH,JH,iW,sW,oW,aW,lW,uW,cW];_t.use(fW);const Ou=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function rs(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function vl(t,e){const r=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>r.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:rs(e[n])&&rs(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:vl(t[n],e[n]):t[n]=e[n]})}function dW(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function hW(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function pW(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Da(t){return t===void 0&&(t=""),t.replace(/-[a-z]/g,e=>e.toUpperCase().replace("-",""))}function gW(t){let{swiper:e,slides:r,passedParams:n,changedParams:i,nextEl:s,prevEl:o,scrollbarEl:a,paginationEl:l}=t;const u=i.filter(L=>L!=="children"&&L!=="direction"&&L!=="wrapperClass"),{params:c,pagination:f,navigation:d,scrollbar:h,virtual:g,thumbs:y}=e;let b,E,_,v,T,M,I,$;i.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(b=!0),i.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(E=!0),i.includes("pagination")&&n.pagination&&(n.pagination.el||l)&&(c.pagination||c.pagination===!1)&&f&&!f.el&&(_=!0),i.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(c.scrollbar||c.scrollbar===!1)&&h&&!h.el&&(v=!0),i.includes("navigation")&&n.navigation&&(n.navigation.prevEl||o)&&(n.navigation.nextEl||s)&&(c.navigation||c.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(T=!0);const F=L=>{e[L]&&(e[L].destroy(),L==="navigation"?(e.isElement&&(e[L].prevEl.remove(),e[L].nextEl.remove()),c[L].prevEl=void 0,c[L].nextEl=void 0,e[L].prevEl=void 0,e[L].nextEl=void 0):(e.isElement&&e[L].el.remove(),c[L].el=void 0,e[L].el=void 0))};i.includes("loop")&&e.isElement&&(c.loop&&!n.loop?M=!0:!c.loop&&n.loop?I=!0:$=!0),u.forEach(L=>{if(rs(c[L])&&rs(n[L]))vl(c[L],n[L]),(L==="navigation"||L==="pagination"||L==="scrollbar")&&"enabled"in n[L]&&!n[L].enabled&&F(L);else{const U=n[L];(U===!0||U===!1)&&(L==="navigation"||L==="pagination"||L==="scrollbar")?U===!1&&F(L):c[L]=n[L]}}),u.includes("controller")&&!E&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),i.includes("children")&&r&&g&&c.virtual.enabled&&(g.slides=r,g.update(!0)),i.includes("children")&&r&&c.loop&&($=!0),b&&y.init()&&y.update(!0),E&&(e.controller.control=c.controller.control),_&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(c.pagination.el=l),f.init(),f.render(),f.update()),v&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(c.scrollbar.el=a),h.init(),h.updateSize(),h.setTranslate()),T&&(e.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=e.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),e.el.appendChild(s)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),o.innerHTML=e.hostEl.constructor.prevButtonSvg,o.part.add("button-prev"),e.el.appendChild(o))),s&&(c.navigation.nextEl=s),o&&(c.navigation.prevEl=o),d.init(),d.update()),i.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),i.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),i.includes("direction")&&e.changeDirection(n.direction,!1),(M||$)&&e.loopDestroy(),(I||$)&&e.loopCreate(),e.update()}const tw=t=>{if(parseFloat(t)===Number(t))return Number(t);if(t==="true"||t==="")return!0;if(t==="false")return!1;if(t==="null")return null;if(t!=="undefined"){if(typeof t=="string"&&t.includes("{")&&t.includes("}")&&t.includes('"')){let e;try{e=JSON.parse(t)}catch{e=t}return e}return t}},rw=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function nw(t,e,r){const n={},i={};vl(n,id);const s=[...Ou,"on"],o=s.map(l=>l.replace(/_/,""));s.forEach(l=>{l=l.replace("_",""),typeof t[l]<"u"&&(i[l]=t[l])});const a=[...t.attributes];return typeof e=="string"&&typeof r<"u"&&a.push({name:e,value:rs(r)?{...r}:r}),a.forEach(l=>{const u=rw.filter(c=>l.name.indexOf(`${c}-`)===0)[0];if(u){const c=Da(u),f=Da(l.name.split(`${u}-`)[1]);typeof i[c]>"u"&&(i[c]={}),i[c]===!0&&(i[c]={enabled:!0}),i[c][f]=tw(l.value)}else{const c=Da(l.name);if(!o.includes(c))return;const f=tw(l.value);i[c]&&rw.includes(l.name)&&!rs(f)?(i[c].constructor!==Object&&(i[c]={}),i[c].enabled=!!f):i[c]=f}}),vl(n,i),n.navigation?n.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...n.navigation!==!0?n.navigation:{}}:n.navigation===!1&&delete n.navigation,n.scrollbar?n.scrollbar={el:".swiper-scrollbar",...n.scrollbar!==!0?n.scrollbar:{}}:n.scrollbar===!1&&delete n.scrollbar,n.pagination?n.pagination={el:".swiper-pagination",...n.pagination!==!0?n.pagination:{}}:n.pagination===!1&&delete n.pagination,{params:n,passedParams:i}}const mW=":host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;overflow:clip;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}",yW="::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}";class wW{}const CE=typeof window>"u"||typeof HTMLElement>"u"?wW:HTMLElement,iw=` - `,IE=(t,e)=>{if(typeof CSSStyleSheet<"u"&&t.adoptedStyleSheets){const r=new CSSStyleSheet;r.replaceSync(e),t.adoptedStyleSheets=[r]}else{const r=document.createElement("style");r.rel="stylesheet",r.textContent=e,t.appendChild(r)}};class OE extends CE{constructor(){super(),this.attachShadow({mode:"open"})}static get nextButtonSvg(){return iw}static get prevButtonSvg(){return iw.replace("/>",' transform-origin="center" transform="rotate(180)"/>')}cssStyles(){return[mW,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(` -`)}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){const e=this.slideSlots||0,r=[...this.querySelectorAll("[slot^=slide-]")].map(n=>parseInt(n.getAttribute("slot").split("slide-")[1],10));if(this.slideSlots=r.length?Math.max(...r)+1:0,!!this.rendered){if(this.slideSlots>e)for(let n=e;n=0;i-=1)i>this.slideSlots&&n[i].remove()}}}render(){if(this.rendered)return;this.calcSlideSlots();let e=this.cssStyles();this.slideSlots>0&&(e=e.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),e.length&&IE(this.shadowRoot,e),this.cssLinks().forEach(n=>{if(this.shadowRoot.querySelector(`link[href="${n}"]`))return;const s=document.createElement("link");s.rel="stylesheet",s.href=n,this.shadowRoot.appendChild(s)});const r=document.createElement("div");r.classList.add("swiper"),r.part="container",r.innerHTML=` + `;if(u.slideShadows){let O=g.querySelector(".swiper-slide-shadow");O||(O=ts("cards",g)),O&&(O.style.opacity=Math.min(Math.max((Math.abs(b)-.5)/.5,0),1))}g.style.zIndex=-Math.abs(Math.round(y))+o.length;const D=Bo(u,g);D.style.transform=W}},setTransition:o=>{const a=e.slides.map(l=>ai(l));a.forEach(l=>{l.style.transitionDuration=`${o}ms`,l.querySelectorAll(".swiper-slide-shadow").forEach(u=>{u.style.transitionDuration=`${o}ms`})}),Ou({swiper:e,duration:o,transformElements:a})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!e.params.cssMode})})}const dW=[BH,FH,UH,jH,zH,HH,WH,VH,qH,YH,KH,GH,XH,QH,JH,ZH,sW,oW,aW,lW,uW,cW,fW];_t.use(dW);const Pu=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function rs(t){return typeof t=="object"&&t!==null&&t.constructor&&Object.prototype.toString.call(t).slice(8,-1)==="Object"&&!t.__swiper__}function El(t,e){const r=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>r.indexOf(n)<0).forEach(n=>{typeof t[n]>"u"?t[n]=e[n]:rs(e[n])&&rs(t[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?t[n]=e[n]:El(t[n],e[n]):t[n]=e[n]})}function hW(t){return t===void 0&&(t={}),t.navigation&&typeof t.navigation.nextEl>"u"&&typeof t.navigation.prevEl>"u"}function pW(t){return t===void 0&&(t={}),t.pagination&&typeof t.pagination.el>"u"}function gW(t){return t===void 0&&(t={}),t.scrollbar&&typeof t.scrollbar.el>"u"}function Ba(t){return t===void 0&&(t=""),t.replace(/-[a-z]/g,e=>e.toUpperCase().replace("-",""))}function mW(t){let{swiper:e,slides:r,passedParams:n,changedParams:i,nextEl:s,prevEl:o,scrollbarEl:a,paginationEl:l}=t;const u=i.filter(L=>L!=="children"&&L!=="direction"&&L!=="wrapperClass"),{params:c,pagination:f,navigation:d,scrollbar:h,virtual:g,thumbs:y}=e;let b,E,_,v,T,M,I,$;i.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(b=!0),i.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(E=!0),i.includes("pagination")&&n.pagination&&(n.pagination.el||l)&&(c.pagination||c.pagination===!1)&&f&&!f.el&&(_=!0),i.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||a)&&(c.scrollbar||c.scrollbar===!1)&&h&&!h.el&&(v=!0),i.includes("navigation")&&n.navigation&&(n.navigation.prevEl||o)&&(n.navigation.nextEl||s)&&(c.navigation||c.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(T=!0);const F=L=>{e[L]&&(e[L].destroy(),L==="navigation"?(e.isElement&&(e[L].prevEl.remove(),e[L].nextEl.remove()),c[L].prevEl=void 0,c[L].nextEl=void 0,e[L].prevEl=void 0,e[L].nextEl=void 0):(e.isElement&&e[L].el.remove(),c[L].el=void 0,e[L].el=void 0))};i.includes("loop")&&e.isElement&&(c.loop&&!n.loop?M=!0:!c.loop&&n.loop?I=!0:$=!0),u.forEach(L=>{if(rs(c[L])&&rs(n[L]))El(c[L],n[L]),(L==="navigation"||L==="pagination"||L==="scrollbar")&&"enabled"in n[L]&&!n[L].enabled&&F(L);else{const U=n[L];(U===!0||U===!1)&&(L==="navigation"||L==="pagination"||L==="scrollbar")?U===!1&&F(L):c[L]=n[L]}}),u.includes("controller")&&!E&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),i.includes("children")&&r&&g&&c.virtual.enabled&&(g.slides=r,g.update(!0)),i.includes("children")&&r&&c.loop&&($=!0),b&&y.init()&&y.update(!0),E&&(e.controller.control=c.controller.control),_&&(e.isElement&&(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-pagination"),l.part.add("pagination"),e.el.appendChild(l)),l&&(c.pagination.el=l),f.init(),f.render(),f.update()),v&&(e.isElement&&(!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-scrollbar"),a.part.add("scrollbar"),e.el.appendChild(a)),a&&(c.scrollbar.el=a),h.init(),h.updateSize(),h.setTranslate()),T&&(e.isElement&&((!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-button-next"),s.innerHTML=e.hostEl.constructor.nextButtonSvg,s.part.add("button-next"),e.el.appendChild(s)),(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-button-prev"),o.innerHTML=e.hostEl.constructor.prevButtonSvg,o.part.add("button-prev"),e.el.appendChild(o))),s&&(c.navigation.nextEl=s),o&&(c.navigation.prevEl=o),d.init(),d.update()),i.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),i.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),i.includes("direction")&&e.changeDirection(n.direction,!1),(M||$)&&e.loopDestroy(),(I||$)&&e.loopCreate(),e.update()}const rw=t=>{if(parseFloat(t)===Number(t))return Number(t);if(t==="true"||t==="")return!0;if(t==="false")return!1;if(t==="null")return null;if(t!=="undefined"){if(typeof t=="string"&&t.includes("{")&&t.includes("}")&&t.includes('"')){let e;try{e=JSON.parse(t)}catch{e=t}return e}return t}},nw=["a11y","autoplay","controller","cards-effect","coverflow-effect","creative-effect","cube-effect","fade-effect","flip-effect","free-mode","grid","hash-navigation","history","keyboard","mousewheel","navigation","pagination","parallax","scrollbar","thumbs","virtual","zoom"];function iw(t,e,r){const n={},i={};El(n,sd);const s=[...Pu,"on"],o=s.map(l=>l.replace(/_/,""));s.forEach(l=>{l=l.replace("_",""),typeof t[l]<"u"&&(i[l]=t[l])});const a=[...t.attributes];return typeof e=="string"&&typeof r<"u"&&a.push({name:e,value:rs(r)?{...r}:r}),a.forEach(l=>{const u=nw.filter(c=>l.name.indexOf(`${c}-`)===0)[0];if(u){const c=Ba(u),f=Ba(l.name.split(`${u}-`)[1]);typeof i[c]>"u"&&(i[c]={}),i[c]===!0&&(i[c]={enabled:!0}),i[c][f]=rw(l.value)}else{const c=Ba(l.name);if(!o.includes(c))return;const f=rw(l.value);i[c]&&nw.includes(l.name)&&!rs(f)?(i[c].constructor!==Object&&(i[c]={}),i[c].enabled=!!f):i[c]=f}}),El(n,i),n.navigation?n.navigation={prevEl:".swiper-button-prev",nextEl:".swiper-button-next",...n.navigation!==!0?n.navigation:{}}:n.navigation===!1&&delete n.navigation,n.scrollbar?n.scrollbar={el:".swiper-scrollbar",...n.scrollbar!==!0?n.scrollbar:{}}:n.scrollbar===!1&&delete n.scrollbar,n.pagination?n.pagination={el:".swiper-pagination",...n.pagination!==!0?n.pagination:{}}:n.pagination===!1&&delete n.pagination,{params:n,passedParams:i}}const yW=":host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;overflow:clip;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}",wW="::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-zoom-container){width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}::slotted(.swiper-zoom-container)>canvas,::slotted(.swiper-zoom-container)>img,::slotted(.swiper-zoom-container)>svg{max-width:100%;max-height:100%;object-fit:contain}";class bW{}const IE=typeof window>"u"||typeof HTMLElement>"u"?bW:HTMLElement,sw=` + `,OE=(t,e)=>{if(typeof CSSStyleSheet<"u"&&t.adoptedStyleSheets){const r=new CSSStyleSheet;r.replaceSync(e),t.adoptedStyleSheets=[r]}else{const r=document.createElement("style");r.rel="stylesheet",r.textContent=e,t.appendChild(r)}};class PE extends IE{constructor(){super(),this.attachShadow({mode:"open"})}static get nextButtonSvg(){return sw}static get prevButtonSvg(){return sw.replace("/>",' transform-origin="center" transform="rotate(180)"/>')}cssStyles(){return[yW,...this.injectStyles&&Array.isArray(this.injectStyles)?this.injectStyles:[]].join(` +`)}cssLinks(){return this.injectStylesUrls||[]}calcSlideSlots(){const e=this.slideSlots||0,r=[...this.querySelectorAll("[slot^=slide-]")].map(n=>parseInt(n.getAttribute("slot").split("slide-")[1],10));if(this.slideSlots=r.length?Math.max(...r)+1:0,!!this.rendered){if(this.slideSlots>e)for(let n=e;n=0;i-=1)i>this.slideSlots&&n[i].remove()}}}render(){if(this.rendered)return;this.calcSlideSlots();let e=this.cssStyles();this.slideSlots>0&&(e=e.replace(/::slotted\(([a-z-0-9.]*)\)/g,"$1")),e.length&&OE(this.shadowRoot,e),this.cssLinks().forEach(n=>{if(this.shadowRoot.querySelector(`link[href="${n}"]`))return;const s=document.createElement("link");s.rel="stylesheet",s.href=n,this.shadowRoot.appendChild(s)});const r=document.createElement("div");r.classList.add("swiper"),r.part="container",r.innerHTML=`
@@ -40,14 +40,14 @@ const ln=typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window: `).join("")}
- ${dW(this.passedParams)?` + ${hW(this.passedParams)?`
${this.constructor.prevButtonSvg}
${this.constructor.nextButtonSvg}
`:""} - ${hW(this.passedParams)?` + ${pW(this.passedParams)?`
`:""} - ${pW(this.passedParams)?` + ${gW(this.passedParams)?`
`:""} - `,this.shadowRoot.appendChild(r),this.rendered=!0}initialize(){var e=this;if(this.initialized)return;this.initialized=!0;const{params:r,passedParams:n}=nw(this);this.swiperParams=r,this.passedParams=n,delete this.swiperParams.init,this.render(),this.swiper=new _t(this.shadowRoot.querySelector(".swiper"),{...r.virtual?{}:{observer:!0,observeSlideChildren:this.slideSlots>0},...r,touchEventsTarget:"container",onAny:function(i){i==="observerUpdate"&&e.calcSlideSlots();const s=r.eventsPrefix?`${r.eventsPrefix}${i.toLowerCase()}`:i.toLowerCase();for(var o=arguments.length,a=new Array(o>1?o-1:0),l=1;lr.includes("_")).map(r=>r.replace(/[A-Z]/g,n=>`-${n}`).replace("_","").toLowerCase())}}Ou.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(OE.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.initialized&&this.updateSwiperOnPropChange(t,e)}}))});class bW extends CE{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(IE(this.shadowRoot,yW),this.shadowRoot.appendChild(document.createElement("slot")),e){const r=document.createElement("div");r.classList.add("swiper-lazy-preloader"),r.part.add("preloader"),this.shadowRoot.appendChild(r)}}initialize(){this.render()}connectedCallback(){this.initialize()}}const i8=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",OE),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",bW))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{Ou.push(...t)});export{XW as A,t8 as B,JW as C,GW as D,yv as E,Ft as F,YW as G,ZW as H,g2 as I,md as J,KW as K,VS as L,EW as M,SW as N,qW as O,TW as P,NW as Q,$W as R,$u as S,OW as T,n2 as U,MW as V,kW as W,RW as X,KS as Y,DW as Z,i8 as _,vW as a,e8 as b,$1 as c,AW as d,PW as e,Xw as f,Yw as g,LW as h,IW as i,LS as j,x1 as k,Kt as l,ox as m,yd as n,Vw as o,r8 as p,CW as q,xd as r,QW as s,_W as t,ES as u,VW as v,xW as w,PD as x,UD as y,n8 as z}; + `,this.shadowRoot.appendChild(r),this.rendered=!0}initialize(){var e=this;if(this.initialized)return;this.initialized=!0;const{params:r,passedParams:n}=iw(this);this.swiperParams=r,this.passedParams=n,delete this.swiperParams.init,this.render(),this.swiper=new _t(this.shadowRoot.querySelector(".swiper"),{...r.virtual?{}:{observer:!0,observeSlideChildren:this.slideSlots>0},...r,touchEventsTarget:"container",onAny:function(i){i==="observerUpdate"&&e.calcSlideSlots();const s=r.eventsPrefix?`${r.eventsPrefix}${i.toLowerCase()}`:i.toLowerCase();for(var o=arguments.length,a=new Array(o>1?o-1:0),l=1;lr.includes("_")).map(r=>r.replace(/[A-Z]/g,n=>`-${n}`).replace("_","").toLowerCase())}}Pu.forEach(t=>{t!=="init"&&(t=t.replace("_",""),Object.defineProperty(PE.prototype,t,{configurable:!0,get(){return(this.passedParams||{})[t]},set(e){this.passedParams||(this.passedParams={}),this.passedParams[t]=e,this.initialized&&this.updateSwiperOnPropChange(t,e)}}))});class _W extends IE{constructor(){super(),this.attachShadow({mode:"open"})}render(){const e=this.lazy||this.getAttribute("lazy")===""||this.getAttribute("lazy")==="true";if(OE(this.shadowRoot,wW),this.shadowRoot.appendChild(document.createElement("slot")),e){const r=document.createElement("div");r.classList.add("swiper-lazy-preloader"),r.part.add("preloader"),this.shadowRoot.appendChild(r)}}initialize(){this.render()}connectedCallback(){this.initialize()}}const o8=()=>{typeof window>"u"||(window.customElements.get("swiper-container")||window.customElements.define("swiper-container",PE),window.customElements.get("swiper-slide")||window.customElements.define("swiper-slide",_W))};typeof window<"u"&&(window.SwiperElementRegisterParams=t=>{Pu.push(...t)});export{o8 as $,JW as A,n8 as B,e8 as C,QW as D,wv as E,Ft as F,GW as G,t8 as H,m2 as I,yd as J,XW as K,qS as L,SW as M,xW as N,AW as O,BW as P,KW as Q,$W as R,kW as S,PW as T,ku as U,i2 as V,CW as W,DW as X,LW as Y,GS as Z,FW as _,EW as a,r8 as b,k1 as c,MW as d,RW as e,Qw as f,Kw as g,NW as h,OW as i,NS as j,T1 as k,Kt as l,ax as m,wd as n,qw as o,i8 as p,IW as q,Td as r,ZW as s,vW as t,SS as u,YW as v,TW as w,RD as x,jD as y,s8 as z}; diff --git a/packages/modules/web_themes/colors/web/index.html b/packages/modules/web_themes/colors/web/index.html index 9e48ae7211..86d66fe7ed 100644 --- a/packages/modules/web_themes/colors/web/index.html +++ b/packages/modules/web_themes/colors/web/index.html @@ -23,9 +23,9 @@ openWB - - - + + + From 750bc0c764be118b60ef1c1cf7d2c80d8e64a0e6 Mon Sep 17 00:00:00 2001 From: Claus Hagen Date: Sat, 16 Mar 2024 12:27:59 +0100 Subject: [PATCH 2/2] show error badge for chargepoint --- .../chargePointList/CPChargePoint.vue | 20 +++++++++++++++---- .../cpConfig/CPChargeConfigPanel.vue | 7 ++++++- ...{index-e8574baf.css => index-67a02a84.css} | 2 +- .../{index-692dda33.js => index-b7643030.js} | 6 +++--- .../modules/web_themes/colors/web/index.html | 4 ++-- 5 files changed, 28 insertions(+), 11 deletions(-) rename packages/modules/web_themes/colors/web/assets/{index-e8574baf.css => index-67a02a84.css} (74%) rename packages/modules/web_themes/colors/web/assets/{index-692dda33.js => index-b7643030.js} (72%) diff --git a/packages/modules/web_themes/colors/source/src/components/chargePointList/CPChargePoint.vue b/packages/modules/web_themes/colors/source/src/components/chargePointList/CPChargePoint.vue index 6be166d0e4..28e193a89c 100755 --- a/packages/modules/web_themes/colors/source/src/components/chargePointList/CPChargePoint.vue +++ b/packages/modules/web_themes/colors/source/src/components/chargePointList/CPChargePoint.vue @@ -5,10 +5,17 @@ :full-width="props.fullWidth" >