diff --git a/repeater/web/html/assets/index-r2jdFy7f.js b/repeater/web/html/assets/index-7Gn2-Mfw.js similarity index 68% rename from repeater/web/html/assets/index-r2jdFy7f.js rename to repeater/web/html/assets/index-7Gn2-Mfw.js index 7d1b18b..82895ed 100644 --- a/repeater/web/html/assets/index-r2jdFy7f.js +++ b/repeater/web/html/assets/index-7Gn2-Mfw.js @@ -1,54 +1,54 @@ -(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const K of document.querySelectorAll('link[rel="modulepreload"]'))B(K);new MutationObserver(K=>{for(const pt of K)if(pt.type==="childList")for(const _t of pt.addedNodes)_t.tagName==="LINK"&&_t.rel==="modulepreload"&&B(_t)}).observe(document,{childList:!0,subtree:!0});function E(K){const pt={};return K.integrity&&(pt.integrity=K.integrity),K.referrerPolicy&&(pt.referrerPolicy=K.referrerPolicy),K.crossOrigin==="use-credentials"?pt.credentials="include":K.crossOrigin==="anonymous"?pt.credentials="omit":pt.credentials="same-origin",pt}function B(K){if(K.ep)return;K.ep=!0;const pt=E(K);fetch(K.href,pt)}})();/** +function MG(d,s){for(var E=0;ER[Y]})}}}return Object.freeze(Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}))}(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const Y of document.querySelectorAll('link[rel="modulepreload"]'))R(Y);new MutationObserver(Y=>{for(const dt of Y)if(dt.type==="childList")for(const _t of dt.addedNodes)_t.tagName==="LINK"&&_t.rel==="modulepreload"&&R(_t)}).observe(document,{childList:!0,subtree:!0});function E(Y){const dt={};return Y.integrity&&(dt.integrity=Y.integrity),Y.referrerPolicy&&(dt.referrerPolicy=Y.referrerPolicy),Y.crossOrigin==="use-credentials"?dt.credentials="include":Y.crossOrigin==="anonymous"?dt.credentials="omit":dt.credentials="same-origin",dt}function R(Y){if(Y.ep)return;Y.ep=!0;const dt=E(Y);fetch(Y.href,dt)}})();/** * @vue/shared v3.5.18 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**//*! #__NO_SIDE_EFFECTS__ */function BA(d){const s=Object.create(null);for(const E of d.split(","))s[E]=1;return E=>E in s}const mf={},s_=[],dg=()=>{},uG=()=>!1,S4=d=>d.charCodeAt(0)===111&&d.charCodeAt(1)===110&&(d.charCodeAt(2)>122||d.charCodeAt(2)<97),NA=d=>d.startsWith("onUpdate:"),ap=Object.assign,jA=(d,s)=>{const E=d.indexOf(s);E>-1&&d.splice(E,1)},cG=Object.prototype.hasOwnProperty,Rh=(d,s)=>cG.call(d,s),au=Array.isArray,l_=d=>Q2(d)==="[object Map]",E4=d=>Q2(d)==="[object Set]",zC=d=>Q2(d)==="[object Date]",Vu=d=>typeof d=="function",sd=d=>typeof d=="string",Cm=d=>typeof d=="symbol",gf=d=>d!==null&&typeof d=="object",CI=d=>(gf(d)||Vu(d))&&Vu(d.then)&&Vu(d.catch),LI=Object.prototype.toString,Q2=d=>LI.call(d),hG=d=>Q2(d).slice(8,-1),PI=d=>Q2(d)==="[object Object]",UA=d=>sd(d)&&d!=="NaN"&&d[0]!=="-"&&""+parseInt(d,10)===d,b2=BA(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),C4=d=>{const s=Object.create(null);return E=>s[E]||(s[E]=d(E))},fG=/-(\w)/g,cm=C4(d=>d.replace(fG,(s,E)=>E?E.toUpperCase():"")),dG=/\B([A-Z])/g,Py=C4(d=>d.replace(dG,"-$1").toLowerCase()),L4=C4(d=>d.charAt(0).toUpperCase()+d.slice(1)),y8=C4(d=>d?`on${L4(d)}`:""),p1=(d,s)=>!Object.is(d,s),G5=(d,...s)=>{for(let E=0;E{Object.defineProperty(d,s,{configurable:!0,enumerable:!1,writable:B,value:E})},o4=d=>{const s=parseFloat(d);return isNaN(s)?d:s},pG=d=>{const s=sd(d)?Number(d):NaN;return isNaN(s)?d:s};let OC;const P4=()=>OC||(OC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hm(d){if(au(d)){const s={};for(let E=0;E{if(E){const B=E.split(gG);B.length>1&&(s[B[0].trim()]=B[1].trim())}}),s}function jo(d){let s="";if(sd(d))s=d;else if(au(d))for(let E=0;Ed_(E,s))}const zI=d=>!!(d&&d.__v_isRef===!0),Qi=d=>sd(d)?d:d==null?"":au(d)||gf(d)&&(d.toString===LI||!Vu(d.toString))?zI(d)?Qi(d.value):JSON.stringify(d,OI,2):String(d),OI=(d,s)=>zI(s)?OI(d,s.value):l_(s)?{[`Map(${s.size})`]:[...s.entries()].reduce((E,[B,K],pt)=>(E[x8(B,pt)+" =>"]=K,E),{})}:E4(s)?{[`Set(${s.size})`]:[...s.values()].map(E=>x8(E))}:Cm(s)?x8(s):gf(s)&&!au(s)&&!PI(s)?String(s):s,x8=(d,s="")=>{var E;return Cm(d)?`Symbol(${(E=d.description)!=null?E:s})`:d};/** +**//*! #__NO_SIDE_EFFECTS__ */function jA(d){const s=Object.create(null);for(const E of d.split(","))s[E]=1;return E=>E in s}const mf={},l_=[],mg=()=>{},SG=()=>!1,C4=d=>d.charCodeAt(0)===111&&d.charCodeAt(1)===110&&(d.charCodeAt(2)>122||d.charCodeAt(2)<97),UA=d=>d.startsWith("onUpdate:"),ap=Object.assign,VA=(d,s)=>{const E=d.indexOf(s);E>-1&&d.splice(E,1)},EG=Object.prototype.hasOwnProperty,Rh=(d,s)=>EG.call(d,s),au=Array.isArray,u_=d=>Q2(d)==="[object Map]",L4=d=>Q2(d)==="[object Set]",DC=d=>Q2(d)==="[object Date]",Vu=d=>typeof d=="function",ld=d=>typeof d=="string",Cm=d=>typeof d=="symbol",gf=d=>d!==null&&typeof d=="object",II=d=>(gf(d)||Vu(d))&&Vu(d.then)&&Vu(d.catch),zI=Object.prototype.toString,Q2=d=>zI.call(d),CG=d=>Q2(d).slice(8,-1),OI=d=>Q2(d)==="[object Object]",HA=d=>ld(d)&&d!=="NaN"&&d[0]!=="-"&&""+parseInt(d,10)===d,b2=jA(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),P4=d=>{const s=Object.create(null);return E=>s[E]||(s[E]=d(E))},LG=/-(\w)/g,cm=P4(d=>d.replace(LG,(s,E)=>E?E.toUpperCase():"")),PG=/\B([A-Z])/g,zy=P4(d=>d.replace(PG,"-$1").toLowerCase()),I4=P4(d=>d.charAt(0).toUpperCase()+d.slice(1)),x8=P4(d=>d?`on${I4(d)}`:""),g1=(d,s)=>!Object.is(d,s),Y5=(d,...s)=>{for(let E=0;E{Object.defineProperty(d,s,{configurable:!0,enumerable:!1,writable:R,value:E})},s4=d=>{const s=parseFloat(d);return isNaN(s)?d:s},IG=d=>{const s=ld(d)?Number(d):NaN;return isNaN(s)?d:s};let FC;const z4=()=>FC||(FC=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hm(d){if(au(d)){const s={};for(let E=0;E{if(E){const R=E.split(OG);R.length>1&&(s[R[0].trim()]=R[1].trim())}}),s}function Fo(d){let s="";if(ld(d))s=d;else if(au(d))for(let E=0;Ep_(E,s))}const FI=d=>!!(d&&d.__v_isRef===!0),Fi=d=>ld(d)?d:d==null?"":au(d)||gf(d)&&(d.toString===zI||!Vu(d.toString))?FI(d)?Fi(d.value):JSON.stringify(d,BI,2):String(d),BI=(d,s)=>FI(s)?BI(d,s.value):u_(s)?{[`Map(${s.size})`]:[...s.entries()].reduce((E,[R,Y],dt)=>(E[_8(R,dt)+" =>"]=Y,E),{})}:L4(s)?{[`Set(${s.size})`]:[...s.values()].map(E=>_8(E))}:Cm(s)?_8(s):gf(s)&&!au(s)&&!OI(s)?String(s):s,_8=(d,s="")=>{var E;return Cm(d)?`Symbol(${(E=d.description)!=null?E:s})`:d};/** * @vue/reactivity v3.5.18 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let $p;class DI{constructor(s=!1){this.detached=s,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=$p,!s&&$p&&(this.index=($p.scopes||($p.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let s,E;if(this.scopes)for(s=0,E=this.scopes.length;s0&&--this._on===0&&($p=this.prevScope,this.prevScope=void 0)}stop(s){if(this._active){this._active=!1;let E,B;for(E=0,B=this.effects.length;E0)return;if(k2){let s=k2;for(k2=void 0;s;){const E=s.next;s.next=void 0,s.flags&=-9,s=E}}let d;for(;w2;){let s=w2;for(w2=void 0;s;){const E=s.next;if(s.next=void 0,s.flags&=-9,s.flags&1)try{s.trigger()}catch(B){d||(d=B)}s=E}}if(d)throw d}function UI(d){for(let s=d.deps;s;s=s.nextDep)s.version=-1,s.prevActiveLink=s.dep.activeLink,s.dep.activeLink=s}function VI(d){let s,E=d.depsTail,B=E;for(;B;){const K=B.prevDep;B.version===-1?(B===E&&(E=K),WA(B),TG(B)):s=B,B.dep.activeLink=B.prevActiveLink,B.prevActiveLink=void 0,B=K}d.deps=s,d.depsTail=E}function nA(d){for(let s=d.deps;s;s=s.nextDep)if(s.dep.version!==s.version||s.dep.computed&&(HI(s.dep.computed)||s.dep.version!==s.version))return!0;return!!d._dirty}function HI(d){if(d.flags&4&&!(d.flags&16)||(d.flags&=-17,d.globalVersion===D2)||(d.globalVersion=D2,!d.isSSR&&d.flags&128&&(!d.deps&&!d._dirty||!nA(d))))return;d.flags|=2;const s=d.dep,E=kf,B=Sm;kf=d,Sm=!0;try{UI(d);const K=d.fn(d._value);(s.version===0||p1(K,d._value))&&(d.flags|=128,d._value=K,s.version++)}catch(K){throw s.version++,K}finally{kf=E,Sm=B,VI(d),d.flags&=-3}}function WA(d,s=!1){const{dep:E,prevSub:B,nextSub:K}=d;if(B&&(B.nextSub=K,d.prevSub=void 0),K&&(K.prevSub=B,d.nextSub=void 0),E.subs===d&&(E.subs=B,!B&&E.computed)){E.computed.flags&=-5;for(let pt=E.computed.deps;pt;pt=pt.nextDep)WA(pt,!0)}!s&&!--E.sc&&E.map&&E.map.delete(E.key)}function TG(d){const{prevDep:s,nextDep:E}=d;s&&(s.nextDep=E,d.prevDep=void 0),E&&(E.prevDep=s,d.nextDep=void 0)}let Sm=!0;const WI=[];function av(){WI.push(Sm),Sm=!1}function ov(){const d=WI.pop();Sm=d===void 0?!0:d}function DC(d){const{cleanup:s}=d;if(d.cleanup=void 0,s){const E=kf;kf=void 0;try{s()}finally{kf=E}}}let D2=0;class AG{constructor(s,E){this.sub=s,this.dep=E,this.version=E.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class qA{constructor(s){this.computed=s,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(s){if(!kf||!Sm||kf===this.computed)return;let E=this.activeLink;if(E===void 0||E.sub!==kf)E=this.activeLink=new AG(kf,this),kf.deps?(E.prevDep=kf.depsTail,kf.depsTail.nextDep=E,kf.depsTail=E):kf.deps=kf.depsTail=E,qI(E);else if(E.version===-1&&(E.version=this.version,E.nextDep)){const B=E.nextDep;B.prevDep=E.prevDep,E.prevDep&&(E.prevDep.nextDep=B),E.prevDep=kf.depsTail,E.nextDep=void 0,kf.depsTail.nextDep=E,kf.depsTail=E,kf.deps===E&&(kf.deps=B)}return E}trigger(s){this.version++,D2++,this.notify(s)}notify(s){VA();try{for(let E=this.subs;E;E=E.prevSub)E.sub.notify()&&E.sub.dep.notify()}finally{HA()}}}function qI(d){if(d.dep.sc++,d.sub.flags&4){const s=d.dep.computed;if(s&&!d.dep.subs){s.flags|=20;for(let B=s.deps;B;B=B.nextDep)qI(B)}const E=d.dep.subs;E!==d&&(d.prevSub=E,E&&(E.nextSub=d)),d.dep.subs=d}}const s4=new WeakMap,wy=Symbol(""),iA=Symbol(""),F2=Symbol("");function Zp(d,s,E){if(Sm&&kf){let B=s4.get(d);B||s4.set(d,B=new Map);let K=B.get(E);K||(B.set(E,K=new qA),K.map=B,K.key=E),K.track()}}function tv(d,s,E,B,K,pt){const _t=s4.get(d);if(!_t){D2++;return}const Ot=jt=>{jt&&jt.trigger()};if(VA(),s==="clear")_t.forEach(Ot);else{const jt=au(d),te=jt&&UA(E);if(jt&&E==="length"){const he=Number(B);_t.forEach((De,er)=>{(er==="length"||er===F2||!Cm(er)&&er>=he)&&Ot(De)})}else switch((E!==void 0||_t.has(void 0))&&Ot(_t.get(E)),te&&Ot(_t.get(F2)),s){case"add":jt?te&&Ot(_t.get("length")):(Ot(_t.get(wy)),l_(d)&&Ot(_t.get(iA)));break;case"delete":jt||(Ot(_t.get(wy)),l_(d)&&Ot(_t.get(iA)));break;case"set":l_(d)&&Ot(_t.get(wy));break}}HA()}function MG(d,s){const E=s4.get(d);return E&&E.get(s)}function Qx(d){const s=Uu(d);return s===d?s:(Zp(s,"iterate",F2),lm(d)?s:s.map(zp))}function I4(d){return Zp(d=Uu(d),"iterate",F2),d}const SG={__proto__:null,[Symbol.iterator](){return b8(this,Symbol.iterator,zp)},concat(...d){return Qx(this).concat(...d.map(s=>au(s)?Qx(s):s))},entries(){return b8(this,"entries",d=>(d[1]=zp(d[1]),d))},every(d,s){return Zg(this,"every",d,s,void 0,arguments)},filter(d,s){return Zg(this,"filter",d,s,E=>E.map(zp),arguments)},find(d,s){return Zg(this,"find",d,s,zp,arguments)},findIndex(d,s){return Zg(this,"findIndex",d,s,void 0,arguments)},findLast(d,s){return Zg(this,"findLast",d,s,zp,arguments)},findLastIndex(d,s){return Zg(this,"findLastIndex",d,s,void 0,arguments)},forEach(d,s){return Zg(this,"forEach",d,s,void 0,arguments)},includes(...d){return w8(this,"includes",d)},indexOf(...d){return w8(this,"indexOf",d)},join(d){return Qx(this).join(d)},lastIndexOf(...d){return w8(this,"lastIndexOf",d)},map(d,s){return Zg(this,"map",d,s,void 0,arguments)},pop(){return Jb(this,"pop")},push(...d){return Jb(this,"push",d)},reduce(d,...s){return FC(this,"reduce",d,s)},reduceRight(d,...s){return FC(this,"reduceRight",d,s)},shift(){return Jb(this,"shift")},some(d,s){return Zg(this,"some",d,s,void 0,arguments)},splice(...d){return Jb(this,"splice",d)},toReversed(){return Qx(this).toReversed()},toSorted(d){return Qx(this).toSorted(d)},toSpliced(...d){return Qx(this).toSpliced(...d)},unshift(...d){return Jb(this,"unshift",d)},values(){return b8(this,"values",zp)}};function b8(d,s,E){const B=I4(d),K=B[s]();return B!==d&&!lm(d)&&(K._next=K.next,K.next=()=>{const pt=K._next();return pt.value&&(pt.value=E(pt.value)),pt}),K}const EG=Array.prototype;function Zg(d,s,E,B,K,pt){const _t=I4(d),Ot=_t!==d&&!lm(d),jt=_t[s];if(jt!==EG[s]){const De=jt.apply(d,pt);return Ot?zp(De):De}let te=E;_t!==d&&(Ot?te=function(De,er){return E.call(this,zp(De),er,d)}:E.length>2&&(te=function(De,er){return E.call(this,De,er,d)}));const he=jt.call(_t,te,B);return Ot&&K?K(he):he}function FC(d,s,E,B){const K=I4(d);let pt=E;return K!==d&&(lm(d)?E.length>3&&(pt=function(_t,Ot,jt){return E.call(this,_t,Ot,jt,d)}):pt=function(_t,Ot,jt){return E.call(this,_t,zp(Ot),jt,d)}),K[s](pt,...B)}function w8(d,s,E){const B=Uu(d);Zp(B,"iterate",F2);const K=B[s](...E);return(K===-1||K===!1)&&GA(E[0])?(E[0]=Uu(E[0]),B[s](...E)):K}function Jb(d,s,E=[]){av(),VA();const B=Uu(d)[s].apply(d,E);return HA(),ov(),B}const CG=BA("__proto__,__v_isRef,__isVue"),$I=new Set(Object.getOwnPropertyNames(Symbol).filter(d=>d!=="arguments"&&d!=="caller").map(d=>Symbol[d]).filter(Cm));function LG(d){Cm(d)||(d=String(d));const s=Uu(this);return Zp(s,"has",d),s.hasOwnProperty(d)}class ZI{constructor(s=!1,E=!1){this._isReadonly=s,this._isShallow=E}get(s,E,B){if(E==="__v_skip")return s.__v_skip;const K=this._isReadonly,pt=this._isShallow;if(E==="__v_isReactive")return!K;if(E==="__v_isReadonly")return K;if(E==="__v_isShallow")return pt;if(E==="__v_raw")return B===(K?pt?jG:XI:pt?KI:YI).get(s)||Object.getPrototypeOf(s)===Object.getPrototypeOf(B)?s:void 0;const _t=au(s);if(!K){let jt;if(_t&&(jt=SG[E]))return jt;if(E==="hasOwnProperty")return LG}const Ot=Reflect.get(s,E,jd(s)?s:B);return(Cm(E)?$I.has(E):CG(E))||(K||Zp(s,"get",E),pt)?Ot:jd(Ot)?_t&&UA(E)?Ot:Ot.value:gf(Ot)?K?QI(Ot):My(Ot):Ot}}class GI extends ZI{constructor(s=!1){super(!1,s)}set(s,E,B,K){let pt=s[E];if(!this._isShallow){const jt=v1(pt);if(!lm(B)&&!v1(B)&&(pt=Uu(pt),B=Uu(B)),!au(s)&&jd(pt)&&!jd(B))return jt?!1:(pt.value=B,!0)}const _t=au(s)&&UA(E)?Number(E)d,M5=d=>Reflect.getPrototypeOf(d);function DG(d,s,E){return function(...B){const K=this.__v_raw,pt=Uu(K),_t=l_(pt),Ot=d==="entries"||d===Symbol.iterator&&_t,jt=d==="keys"&&_t,te=K[d](...B),he=E?aA:s?l4:zp;return!s&&Zp(pt,"iterate",jt?iA:wy),{next(){const{value:De,done:er}=te.next();return er?{value:De,done:er}:{value:Ot?[he(De[0]),he(De[1])]:he(De),done:er}},[Symbol.iterator](){return this}}}}function S5(d){return function(...s){return d==="delete"?!1:d==="clear"?void 0:this}}function FG(d,s){const E={get(K){const pt=this.__v_raw,_t=Uu(pt),Ot=Uu(K);d||(p1(K,Ot)&&Zp(_t,"get",K),Zp(_t,"get",Ot));const{has:jt}=M5(_t),te=s?aA:d?l4:zp;if(jt.call(_t,K))return te(pt.get(K));if(jt.call(_t,Ot))return te(pt.get(Ot));pt!==_t&&pt.get(K)},get size(){const K=this.__v_raw;return!d&&Zp(Uu(K),"iterate",wy),Reflect.get(K,"size",K)},has(K){const pt=this.__v_raw,_t=Uu(pt),Ot=Uu(K);return d||(p1(K,Ot)&&Zp(_t,"has",K),Zp(_t,"has",Ot)),K===Ot?pt.has(K):pt.has(K)||pt.has(Ot)},forEach(K,pt){const _t=this,Ot=_t.__v_raw,jt=Uu(Ot),te=s?aA:d?l4:zp;return!d&&Zp(jt,"iterate",wy),Ot.forEach((he,De)=>K.call(pt,te(he),te(De),_t))}};return ap(E,d?{add:S5("add"),set:S5("set"),delete:S5("delete"),clear:S5("clear")}:{add(K){!s&&!lm(K)&&!v1(K)&&(K=Uu(K));const pt=Uu(this);return M5(pt).has.call(pt,K)||(pt.add(K),tv(pt,"add",K,K)),this},set(K,pt){!s&&!lm(pt)&&!v1(pt)&&(pt=Uu(pt));const _t=Uu(this),{has:Ot,get:jt}=M5(_t);let te=Ot.call(_t,K);te||(K=Uu(K),te=Ot.call(_t,K));const he=jt.call(_t,K);return _t.set(K,pt),te?p1(pt,he)&&tv(_t,"set",K,pt):tv(_t,"add",K,pt),this},delete(K){const pt=Uu(this),{has:_t,get:Ot}=M5(pt);let jt=_t.call(pt,K);jt||(K=Uu(K),jt=_t.call(pt,K)),Ot&&Ot.call(pt,K);const te=pt.delete(K);return jt&&tv(pt,"delete",K,void 0),te},clear(){const K=Uu(this),pt=K.size!==0,_t=K.clear();return pt&&tv(K,"clear",void 0,void 0),_t}}),["keys","values","entries",Symbol.iterator].forEach(K=>{E[K]=DG(K,d,s)}),E}function $A(d,s){const E=FG(d,s);return(B,K,pt)=>K==="__v_isReactive"?!d:K==="__v_isReadonly"?d:K==="__v_raw"?B:Reflect.get(Rh(E,K)&&K in B?E:B,K,pt)}const RG={get:$A(!1,!1)},BG={get:$A(!1,!0)},NG={get:$A(!0,!1)};const YI=new WeakMap,KI=new WeakMap,XI=new WeakMap,jG=new WeakMap;function UG(d){switch(d){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function VG(d){return d.__v_skip||!Object.isExtensible(d)?0:UG(hG(d))}function My(d){return v1(d)?d:ZA(d,!1,IG,RG,YI)}function JI(d){return ZA(d,!1,OG,BG,KI)}function QI(d){return ZA(d,!0,zG,NG,XI)}function ZA(d,s,E,B,K){if(!gf(d)||d.__v_raw&&!(s&&d.__v_isReactive))return d;const pt=VG(d);if(pt===0)return d;const _t=K.get(d);if(_t)return _t;const Ot=new Proxy(d,pt===2?B:E);return K.set(d,Ot),Ot}function m1(d){return v1(d)?m1(d.__v_raw):!!(d&&d.__v_isReactive)}function v1(d){return!!(d&&d.__v_isReadonly)}function lm(d){return!!(d&&d.__v_isShallow)}function GA(d){return d?!!d.__v_raw:!1}function Uu(d){const s=d&&d.__v_raw;return s?Uu(s):d}function YA(d){return!Rh(d,"__v_skip")&&Object.isExtensible(d)&&rA(d,"__v_skip",!0),d}const zp=d=>gf(d)?My(d):d,l4=d=>gf(d)?QI(d):d;function jd(d){return d?d.__v_isRef===!0:!1}function Ga(d){return tz(d,!1)}function HG(d){return tz(d,!0)}function tz(d,s){return jd(d)?d:new WG(d,s)}class WG{constructor(s,E){this.dep=new qA,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=E?s:Uu(s),this._value=E?s:zp(s),this.__v_isShallow=E}get value(){return this.dep.track(),this._value}set value(s){const E=this._rawValue,B=this.__v_isShallow||lm(s)||v1(s);s=B?s:Uu(s),p1(s,E)&&(this._rawValue=s,this._value=B?s:zp(s),this.dep.trigger())}}function zl(d){return jd(d)?d.value:d}const qG={get:(d,s,E)=>s==="__v_raw"?d:zl(Reflect.get(d,s,E)),set:(d,s,E,B)=>{const K=d[s];return jd(K)&&!jd(E)?(K.value=E,!0):Reflect.set(d,s,E,B)}};function ez(d){return m1(d)?d:new Proxy(d,qG)}function $G(d){const s=au(d)?new Array(d.length):{};for(const E in d)s[E]=GG(d,E);return s}class ZG{constructor(s,E,B){this._object=s,this._key=E,this._defaultValue=B,this.__v_isRef=!0,this._value=void 0}get value(){const s=this._object[this._key];return this._value=s===void 0?this._defaultValue:s}set value(s){this._object[this._key]=s}get dep(){return MG(Uu(this._object),this._key)}}function GG(d,s,E){const B=d[s];return jd(B)?B:new ZG(d,s,E)}class YG{constructor(s,E,B){this.fn=s,this.setter=E,this._value=void 0,this.dep=new qA(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=D2-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!E,this.isSSR=B}notify(){if(this.flags|=16,!(this.flags&8)&&kf!==this)return jI(this,!0),!0}get value(){const s=this.dep.track();return HI(this),s&&(s.version=this.dep.version),this._value}set value(s){this.setter&&this.setter(s)}}function KG(d,s,E=!1){let B,K;return Vu(d)?B=d:(B=d.get,K=d.set),new YG(B,K,E)}const E5={},u4=new WeakMap;let dy;function XG(d,s=!1,E=dy){if(E){let B=u4.get(E);B||u4.set(E,B=[]),B.push(d)}}function JG(d,s,E=mf){const{immediate:B,deep:K,once:pt,scheduler:_t,augmentJob:Ot,call:jt}=E,te=Jn=>K?Jn:lm(Jn)||K===!1||K===0?ev(Jn,1):ev(Jn);let he,De,er,pr,Mr=!1,Tr=!1;if(jd(d)?(De=()=>d.value,Mr=lm(d)):m1(d)?(De=()=>te(d),Mr=!0):au(d)?(Tr=!0,Mr=d.some(Jn=>m1(Jn)||lm(Jn)),De=()=>d.map(Jn=>{if(jd(Jn))return Jn.value;if(m1(Jn))return te(Jn);if(Vu(Jn))return jt?jt(Jn,2):Jn()})):Vu(d)?s?De=jt?()=>jt(d,2):d:De=()=>{if(er){av();try{er()}finally{ov()}}const Jn=dy;dy=he;try{return jt?jt(d,3,[pr]):d(pr)}finally{dy=Jn}}:De=dg,s&&K){const Jn=De,Bn=K===!0?1/0:K;De=()=>ev(Jn(),Bn)}const Vr=RI(),mn=()=>{he.stop(),Vr&&Vr.active&&jA(Vr.effects,he)};if(pt&&s){const Jn=s;s=(...Bn)=>{Jn(...Bn),mn()}}let Dt=Tr?new Array(d.length).fill(E5):E5;const cn=Jn=>{if(!(!(he.flags&1)||!he.dirty&&!Jn))if(s){const Bn=he.run();if(K||Mr||(Tr?Bn.some((ni,Wi)=>p1(ni,Dt[Wi])):p1(Bn,Dt))){er&&er();const ni=dy;dy=he;try{const Wi=[Bn,Dt===E5?void 0:Tr&&Dt[0]===E5?[]:Dt,pr];Dt=Bn,jt?jt(s,3,Wi):s(...Wi)}finally{dy=ni}}}else he.run()};return Ot&&Ot(cn),he=new BI(De),he.scheduler=_t?()=>_t(cn,!1):cn,pr=Jn=>XG(Jn,!1,he),er=he.onStop=()=>{const Jn=u4.get(he);if(Jn){if(jt)jt(Jn,4);else for(const Bn of Jn)Bn();u4.delete(he)}},s?B?cn(!0):Dt=he.run():_t?_t(cn.bind(null,!0),!0):he.run(),mn.pause=he.pause.bind(he),mn.resume=he.resume.bind(he),mn.stop=mn,mn}function ev(d,s=1/0,E){if(s<=0||!gf(d)||d.__v_skip||(E=E||new Set,E.has(d)))return d;if(E.add(d),s--,jd(d))ev(d.value,s,E);else if(au(d))for(let B=0;B{ev(B,s,E)});else if(PI(d)){for(const B in d)ev(d[B],s,E);for(const B of Object.getOwnPropertySymbols(d))Object.prototype.propertyIsEnumerable.call(d,B)&&ev(d[B],s,E)}return d}/** +**/let $p;class RI{constructor(s=!1){this.detached=s,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=$p,!s&&$p&&(this.index=($p.scopes||($p.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let s,E;if(this.scopes)for(s=0,E=this.scopes.length;s0&&--this._on===0&&($p=this.prevScope,this.prevScope=void 0)}stop(s){if(this._active){this._active=!1;let E,R;for(E=0,R=this.effects.length;E0)return;if(k2){let s=k2;for(k2=void 0;s;){const E=s.next;s.next=void 0,s.flags&=-9,s=E}}let d;for(;w2;){let s=w2;for(w2=void 0;s;){const E=s.next;if(s.next=void 0,s.flags&=-9,s.flags&1)try{s.trigger()}catch(R){d||(d=R)}s=E}}if(d)throw d}function WI(d){for(let s=d.deps;s;s=s.nextDep)s.version=-1,s.prevActiveLink=s.dep.activeLink,s.dep.activeLink=s}function qI(d){let s,E=d.depsTail,R=E;for(;R;){const Y=R.prevDep;R.version===-1?(R===E&&(E=Y),$A(R),VG(R)):s=R,R.dep.activeLink=R.prevActiveLink,R.prevActiveLink=void 0,R=Y}d.deps=s,d.depsTail=E}function oA(d){for(let s=d.deps;s;s=s.nextDep)if(s.dep.version!==s.version||s.dep.computed&&($I(s.dep.computed)||s.dep.version!==s.version))return!0;return!!d._dirty}function $I(d){if(d.flags&4&&!(d.flags&16)||(d.flags&=-17,d.globalVersion===D2)||(d.globalVersion=D2,!d.isSSR&&d.flags&128&&(!d.deps&&!d._dirty||!oA(d))))return;d.flags|=2;const s=d.dep,E=kf,R=Sm;kf=d,Sm=!0;try{WI(d);const Y=d.fn(d._value);(s.version===0||g1(Y,d._value))&&(d.flags|=128,d._value=Y,s.version++)}catch(Y){throw s.version++,Y}finally{kf=E,Sm=R,qI(d),d.flags&=-3}}function $A(d,s=!1){const{dep:E,prevSub:R,nextSub:Y}=d;if(R&&(R.nextSub=Y,d.prevSub=void 0),Y&&(Y.prevSub=R,d.nextSub=void 0),E.subs===d&&(E.subs=R,!R&&E.computed)){E.computed.flags&=-5;for(let dt=E.computed.deps;dt;dt=dt.nextDep)$A(dt,!0)}!s&&!--E.sc&&E.map&&E.map.delete(E.key)}function VG(d){const{prevDep:s,nextDep:E}=d;s&&(s.nextDep=E,d.prevDep=void 0),E&&(E.prevDep=s,d.nextDep=void 0)}let Sm=!0;const ZI=[];function sv(){ZI.push(Sm),Sm=!1}function lv(){const d=ZI.pop();Sm=d===void 0?!0:d}function BC(d){const{cleanup:s}=d;if(d.cleanup=void 0,s){const E=kf;kf=void 0;try{s()}finally{kf=E}}}let D2=0;class HG{constructor(s,E){this.sub=s,this.dep=E,this.version=E.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ZA{constructor(s){this.computed=s,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(s){if(!kf||!Sm||kf===this.computed)return;let E=this.activeLink;if(E===void 0||E.sub!==kf)E=this.activeLink=new HG(kf,this),kf.deps?(E.prevDep=kf.depsTail,kf.depsTail.nextDep=E,kf.depsTail=E):kf.deps=kf.depsTail=E,GI(E);else if(E.version===-1&&(E.version=this.version,E.nextDep)){const R=E.nextDep;R.prevDep=E.prevDep,E.prevDep&&(E.prevDep.nextDep=R),E.prevDep=kf.depsTail,E.nextDep=void 0,kf.depsTail.nextDep=E,kf.depsTail=E,kf.deps===E&&(kf.deps=R)}return E}trigger(s){this.version++,D2++,this.notify(s)}notify(s){WA();try{for(let E=this.subs;E;E=E.prevSub)E.sub.notify()&&E.sub.dep.notify()}finally{qA()}}}function GI(d){if(d.dep.sc++,d.sub.flags&4){const s=d.dep.computed;if(s&&!d.dep.subs){s.flags|=20;for(let R=s.deps;R;R=R.nextDep)GI(R)}const E=d.dep.subs;E!==d&&(d.prevSub=E,E&&(E.nextSub=d)),d.dep.subs=d}}const l4=new WeakMap,Ty=Symbol(""),sA=Symbol(""),F2=Symbol("");function Zp(d,s,E){if(Sm&&kf){let R=l4.get(d);R||l4.set(d,R=new Map);let Y=R.get(E);Y||(R.set(E,Y=new ZA),Y.map=R,Y.key=E),Y.track()}}function ev(d,s,E,R,Y,dt){const _t=l4.get(d);if(!_t){D2++;return}const zt=jt=>{jt&&jt.trigger()};if(WA(),s==="clear")_t.forEach(zt);else{const jt=au(d),te=jt&&HA(E);if(jt&&E==="length"){const ce=Number(R);_t.forEach((Ie,Je)=>{(Je==="length"||Je===F2||!Cm(Je)&&Je>=ce)&&zt(Ie)})}else switch((E!==void 0||_t.has(void 0))&&zt(_t.get(E)),te&&zt(_t.get(F2)),s){case"add":jt?te&&zt(_t.get("length")):(zt(_t.get(Ty)),u_(d)&&zt(_t.get(sA)));break;case"delete":jt||(zt(_t.get(Ty)),u_(d)&&zt(_t.get(sA)));break;case"set":u_(d)&&zt(_t.get(Ty));break}}qA()}function WG(d,s){const E=l4.get(d);return E&&E.get(s)}function e_(d){const s=Eu(d);return s===d?s:(Zp(s,"iterate",F2),lm(d)?s:s.map(zp))}function O4(d){return Zp(d=Eu(d),"iterate",F2),d}const qG={__proto__:null,[Symbol.iterator](){return w8(this,Symbol.iterator,zp)},concat(...d){return e_(this).concat(...d.map(s=>au(s)?e_(s):s))},entries(){return w8(this,"entries",d=>(d[1]=zp(d[1]),d))},every(d,s){return Gg(this,"every",d,s,void 0,arguments)},filter(d,s){return Gg(this,"filter",d,s,E=>E.map(zp),arguments)},find(d,s){return Gg(this,"find",d,s,zp,arguments)},findIndex(d,s){return Gg(this,"findIndex",d,s,void 0,arguments)},findLast(d,s){return Gg(this,"findLast",d,s,zp,arguments)},findLastIndex(d,s){return Gg(this,"findLastIndex",d,s,void 0,arguments)},forEach(d,s){return Gg(this,"forEach",d,s,void 0,arguments)},includes(...d){return k8(this,"includes",d)},indexOf(...d){return k8(this,"indexOf",d)},join(d){return e_(this).join(d)},lastIndexOf(...d){return k8(this,"lastIndexOf",d)},map(d,s){return Gg(this,"map",d,s,void 0,arguments)},pop(){return Qb(this,"pop")},push(...d){return Qb(this,"push",d)},reduce(d,...s){return RC(this,"reduce",d,s)},reduceRight(d,...s){return RC(this,"reduceRight",d,s)},shift(){return Qb(this,"shift")},some(d,s){return Gg(this,"some",d,s,void 0,arguments)},splice(...d){return Qb(this,"splice",d)},toReversed(){return e_(this).toReversed()},toSorted(d){return e_(this).toSorted(d)},toSpliced(...d){return e_(this).toSpliced(...d)},unshift(...d){return Qb(this,"unshift",d)},values(){return w8(this,"values",zp)}};function w8(d,s,E){const R=O4(d),Y=R[s]();return R!==d&&!lm(d)&&(Y._next=Y.next,Y.next=()=>{const dt=Y._next();return dt.value&&(dt.value=E(dt.value)),dt}),Y}const $G=Array.prototype;function Gg(d,s,E,R,Y,dt){const _t=O4(d),zt=_t!==d&&!lm(d),jt=_t[s];if(jt!==$G[s]){const Ie=jt.apply(d,dt);return zt?zp(Ie):Ie}let te=E;_t!==d&&(zt?te=function(Ie,Je){return E.call(this,zp(Ie),Je,d)}:E.length>2&&(te=function(Ie,Je){return E.call(this,Ie,Je,d)}));const ce=jt.call(_t,te,R);return zt&&Y?Y(ce):ce}function RC(d,s,E,R){const Y=O4(d);let dt=E;return Y!==d&&(lm(d)?E.length>3&&(dt=function(_t,zt,jt){return E.call(this,_t,zt,jt,d)}):dt=function(_t,zt,jt){return E.call(this,_t,zp(zt),jt,d)}),Y[s](dt,...R)}function k8(d,s,E){const R=Eu(d);Zp(R,"iterate",F2);const Y=R[s](...E);return(Y===-1||Y===!1)&&KA(E[0])?(E[0]=Eu(E[0]),R[s](...E)):Y}function Qb(d,s,E=[]){sv(),WA();const R=Eu(d)[s].apply(d,E);return qA(),lv(),R}const ZG=jA("__proto__,__v_isRef,__isVue"),YI=new Set(Object.getOwnPropertyNames(Symbol).filter(d=>d!=="arguments"&&d!=="caller").map(d=>Symbol[d]).filter(Cm));function GG(d){Cm(d)||(d=String(d));const s=Eu(this);return Zp(s,"has",d),s.hasOwnProperty(d)}class KI{constructor(s=!1,E=!1){this._isReadonly=s,this._isShallow=E}get(s,E,R){if(E==="__v_skip")return s.__v_skip;const Y=this._isReadonly,dt=this._isShallow;if(E==="__v_isReactive")return!Y;if(E==="__v_isReadonly")return Y;if(E==="__v_isShallow")return dt;if(E==="__v_raw")return R===(Y?dt?iY:tz:dt?QI:JI).get(s)||Object.getPrototypeOf(s)===Object.getPrototypeOf(R)?s:void 0;const _t=au(s);if(!Y){let jt;if(_t&&(jt=qG[E]))return jt;if(E==="hasOwnProperty")return GG}const zt=Reflect.get(s,E,jd(s)?s:R);return(Cm(E)?YI.has(E):ZG(E))||(Y||Zp(s,"get",E),dt)?zt:jd(zt)?_t&&HA(E)?zt:zt.value:gf(zt)?Y?rz(zt):Ey(zt):zt}}class XI extends KI{constructor(s=!1){super(!1,s)}set(s,E,R,Y){let dt=s[E];if(!this._isShallow){const jt=x1(dt);if(!lm(R)&&!x1(R)&&(dt=Eu(dt),R=Eu(R)),!au(s)&&jd(dt)&&!jd(R))return jt?!1:(dt.value=R,!0)}const _t=au(s)&&HA(E)?Number(E)d,S5=d=>Reflect.getPrototypeOf(d);function QG(d,s,E){return function(...R){const Y=this.__v_raw,dt=Eu(Y),_t=u_(dt),zt=d==="entries"||d===Symbol.iterator&&_t,jt=d==="keys"&&_t,te=Y[d](...R),ce=E?lA:s?u4:zp;return!s&&Zp(dt,"iterate",jt?sA:Ty),{next(){const{value:Ie,done:Je}=te.next();return Je?{value:Ie,done:Je}:{value:zt?[ce(Ie[0]),ce(Ie[1])]:ce(Ie),done:Je}},[Symbol.iterator](){return this}}}}function E5(d){return function(...s){return d==="delete"?!1:d==="clear"?void 0:this}}function tY(d,s){const E={get(Y){const dt=this.__v_raw,_t=Eu(dt),zt=Eu(Y);d||(g1(Y,zt)&&Zp(_t,"get",Y),Zp(_t,"get",zt));const{has:jt}=S5(_t),te=s?lA:d?u4:zp;if(jt.call(_t,Y))return te(dt.get(Y));if(jt.call(_t,zt))return te(dt.get(zt));dt!==_t&&dt.get(Y)},get size(){const Y=this.__v_raw;return!d&&Zp(Eu(Y),"iterate",Ty),Reflect.get(Y,"size",Y)},has(Y){const dt=this.__v_raw,_t=Eu(dt),zt=Eu(Y);return d||(g1(Y,zt)&&Zp(_t,"has",Y),Zp(_t,"has",zt)),Y===zt?dt.has(Y):dt.has(Y)||dt.has(zt)},forEach(Y,dt){const _t=this,zt=_t.__v_raw,jt=Eu(zt),te=s?lA:d?u4:zp;return!d&&Zp(jt,"iterate",Ty),zt.forEach((ce,Ie)=>Y.call(dt,te(ce),te(Ie),_t))}};return ap(E,d?{add:E5("add"),set:E5("set"),delete:E5("delete"),clear:E5("clear")}:{add(Y){!s&&!lm(Y)&&!x1(Y)&&(Y=Eu(Y));const dt=Eu(this);return S5(dt).has.call(dt,Y)||(dt.add(Y),ev(dt,"add",Y,Y)),this},set(Y,dt){!s&&!lm(dt)&&!x1(dt)&&(dt=Eu(dt));const _t=Eu(this),{has:zt,get:jt}=S5(_t);let te=zt.call(_t,Y);te||(Y=Eu(Y),te=zt.call(_t,Y));const ce=jt.call(_t,Y);return _t.set(Y,dt),te?g1(dt,ce)&&ev(_t,"set",Y,dt):ev(_t,"add",Y,dt),this},delete(Y){const dt=Eu(this),{has:_t,get:zt}=S5(dt);let jt=_t.call(dt,Y);jt||(Y=Eu(Y),jt=_t.call(dt,Y)),zt&&zt.call(dt,Y);const te=dt.delete(Y);return jt&&ev(dt,"delete",Y,void 0),te},clear(){const Y=Eu(this),dt=Y.size!==0,_t=Y.clear();return dt&&ev(Y,"clear",void 0,void 0),_t}}),["keys","values","entries",Symbol.iterator].forEach(Y=>{E[Y]=QG(Y,d,s)}),E}function GA(d,s){const E=tY(d,s);return(R,Y,dt)=>Y==="__v_isReactive"?!d:Y==="__v_isReadonly"?d:Y==="__v_raw"?R:Reflect.get(Rh(E,Y)&&Y in R?E:R,Y,dt)}const eY={get:GA(!1,!1)},rY={get:GA(!1,!0)},nY={get:GA(!0,!1)};const JI=new WeakMap,QI=new WeakMap,tz=new WeakMap,iY=new WeakMap;function aY(d){switch(d){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function oY(d){return d.__v_skip||!Object.isExtensible(d)?0:aY(CG(d))}function Ey(d){return x1(d)?d:YA(d,!1,KG,eY,JI)}function ez(d){return YA(d,!1,JG,rY,QI)}function rz(d){return YA(d,!0,XG,nY,tz)}function YA(d,s,E,R,Y){if(!gf(d)||d.__v_raw&&!(s&&d.__v_isReactive))return d;const dt=oY(d);if(dt===0)return d;const _t=Y.get(d);if(_t)return _t;const zt=new Proxy(d,dt===2?R:E);return Y.set(d,zt),zt}function v1(d){return x1(d)?v1(d.__v_raw):!!(d&&d.__v_isReactive)}function x1(d){return!!(d&&d.__v_isReadonly)}function lm(d){return!!(d&&d.__v_isShallow)}function KA(d){return d?!!d.__v_raw:!1}function Eu(d){const s=d&&d.__v_raw;return s?Eu(s):d}function XA(d){return!Rh(d,"__v_skip")&&Object.isExtensible(d)&&aA(d,"__v_skip",!0),d}const zp=d=>gf(d)?Ey(d):d,u4=d=>gf(d)?rz(d):d;function jd(d){return d?d.__v_isRef===!0:!1}function Ha(d){return nz(d,!1)}function sY(d){return nz(d,!0)}function nz(d,s){return jd(d)?d:new lY(d,s)}class lY{constructor(s,E){this.dep=new ZA,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=E?s:Eu(s),this._value=E?s:zp(s),this.__v_isShallow=E}get value(){return this.dep.track(),this._value}set value(s){const E=this._rawValue,R=this.__v_isShallow||lm(s)||x1(s);s=R?s:Eu(s),g1(s,E)&&(this._rawValue=s,this._value=R?s:zp(s),this.dep.trigger())}}function Ol(d){return jd(d)?d.value:d}const uY={get:(d,s,E)=>s==="__v_raw"?d:Ol(Reflect.get(d,s,E)),set:(d,s,E,R)=>{const Y=d[s];return jd(Y)&&!jd(E)?(Y.value=E,!0):Reflect.set(d,s,E,R)}};function iz(d){return v1(d)?d:new Proxy(d,uY)}function cY(d){const s=au(d)?new Array(d.length):{};for(const E in d)s[E]=fY(d,E);return s}class hY{constructor(s,E,R){this._object=s,this._key=E,this._defaultValue=R,this.__v_isRef=!0,this._value=void 0}get value(){const s=this._object[this._key];return this._value=s===void 0?this._defaultValue:s}set value(s){this._object[this._key]=s}get dep(){return WG(Eu(this._object),this._key)}}function fY(d,s,E){const R=d[s];return jd(R)?R:new hY(d,s,E)}class dY{constructor(s,E,R){this.fn=s,this.setter=E,this._value=void 0,this.dep=new ZA(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=D2-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!E,this.isSSR=R}notify(){if(this.flags|=16,!(this.flags&8)&&kf!==this)return HI(this,!0),!0}get value(){const s=this.dep.track();return $I(this),s&&(s.version=this.dep.version),this._value}set value(s){this.setter&&this.setter(s)}}function pY(d,s,E=!1){let R,Y;return Vu(d)?R=d:(R=d.get,Y=d.set),new dY(R,Y,E)}const C5={},c4=new WeakMap;let my;function mY(d,s=!1,E=my){if(E){let R=c4.get(E);R||c4.set(E,R=[]),R.push(d)}}function gY(d,s,E=mf){const{immediate:R,deep:Y,once:dt,scheduler:_t,augmentJob:zt,call:jt}=E,te=ti=>Y?ti:lm(ti)||Y===!1||Y===0?rv(ti,1):rv(ti);let ce,Ie,Je,fr,Ar=!1,kr=!1;if(jd(d)?(Ie=()=>d.value,Ar=lm(d)):v1(d)?(Ie=()=>te(d),Ar=!0):au(d)?(kr=!0,Ar=d.some(ti=>v1(ti)||lm(ti)),Ie=()=>d.map(ti=>{if(jd(ti))return ti.value;if(v1(ti))return te(ti);if(Vu(ti))return jt?jt(ti,2):ti()})):Vu(d)?s?Ie=jt?()=>jt(d,2):d:Ie=()=>{if(Je){sv();try{Je()}finally{lv()}}const ti=my;my=ce;try{return jt?jt(d,3,[fr]):d(fr)}finally{my=ti}}:Ie=mg,s&&Y){const ti=Ie,Dn=Y===!0?1/0:Y;Ie=()=>rv(ti(),Dn)}const Vr=jI(),fn=()=>{ce.stop(),Vr&&Vr.active&&VA(Vr.effects,ce)};if(dt&&s){const ti=s;s=(...Dn)=>{ti(...Dn),fn()}}let Dt=kr?new Array(d.length).fill(C5):C5;const cn=ti=>{if(!(!(ce.flags&1)||!ce.dirty&&!ti))if(s){const Dn=ce.run();if(Y||Ar||(kr?Dn.some((ii,Vi)=>g1(ii,Dt[Vi])):g1(Dn,Dt))){Je&&Je();const ii=my;my=ce;try{const Vi=[Dn,Dt===C5?void 0:kr&&Dt[0]===C5?[]:Dt,fr];Dt=Dn,jt?jt(s,3,Vi):s(...Vi)}finally{my=ii}}}else ce.run()};return zt&&zt(cn),ce=new UI(Ie),ce.scheduler=_t?()=>_t(cn,!1):cn,fr=ti=>mY(ti,!1,ce),Je=ce.onStop=()=>{const ti=c4.get(ce);if(ti){if(jt)jt(ti,4);else for(const Dn of ti)Dn();c4.delete(ce)}},s?R?cn(!0):Dt=ce.run():_t?_t(cn.bind(null,!0),!0):ce.run(),fn.pause=ce.pause.bind(ce),fn.resume=ce.resume.bind(ce),fn.stop=fn,fn}function rv(d,s=1/0,E){if(s<=0||!gf(d)||d.__v_skip||(E=E||new Set,E.has(d)))return d;if(E.add(d),s--,jd(d))rv(d.value,s,E);else if(au(d))for(let R=0;R{rv(R,s,E)});else if(OI(d)){for(const R in d)rv(d[R],s,E);for(const R of Object.getOwnPropertySymbols(d))Object.prototype.propertyIsEnumerable.call(d,R)&&rv(d[R],s,E)}return d}/** * @vue/runtime-core v3.5.18 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function tw(d,s,E,B){try{return B?d(...B):d()}catch(K){z4(K,s,E)}}function Lm(d,s,E,B){if(Vu(d)){const K=tw(d,s,E,B);return K&&CI(K)&&K.catch(pt=>{z4(pt,s,E)}),K}if(au(d)){const K=[];for(let pt=0;pt>>1,K=f0[B],pt=R2(K);pt=R2(E)?f0.push(d):f0.splice(tY(s),0,d),d.flags|=1,nz()}}function nz(){c4||(c4=rz.then(az))}function eY(d){au(d)?u_.push(...d):i1&&d.id===-1?i1.splice(i_+1,0,d):d.flags&1||(u_.push(d),d.flags|=1),nz()}function RC(d,s,E=lg+1){for(;ER2(E)-R2(B));if(u_.length=0,i1){i1.push(...s);return}for(i1=s,i_=0;i_d.id==null?d.flags&2?-1:1/0:d.id;function az(d){try{for(lg=0;lg{B._d&&XC(-1);const pt=h4(s);let _t;try{_t=d(...K)}finally{h4(pt),B._d&&XC(1)}return _t};return B._n=!0,B._c=!0,B._d=!0,B}function Gp(d,s){if(Op===null)return d;const E=N4(Op),B=d.dirs||(d.dirs=[]);for(let K=0;Kd.__isTeleport,T2=d=>d&&(d.disabled||d.disabled===""),BC=d=>d&&(d.defer||d.defer===""),NC=d=>typeof SVGElement<"u"&&d instanceof SVGElement,jC=d=>typeof MathMLElement=="function"&&d instanceof MathMLElement,oA=(d,s)=>{const E=d&&d.to;return sd(E)?s?s(E):null:E},uz={name:"Teleport",__isTeleport:!0,process(d,s,E,B,K,pt,_t,Ot,jt,te){const{mc:he,pc:De,pbc:er,o:{insert:pr,querySelector:Mr,createText:Tr,createComment:Vr}}=te,mn=T2(s.props);let{shapeFlag:Dt,children:cn,dynamicChildren:Jn}=s;if(d==null){const Bn=s.el=Tr(""),ni=s.anchor=Tr("");pr(Bn,E,B),pr(ni,E,B);const Wi=(qr,Di)=>{Dt&16&&(K&&K.isCE&&(K.ce._teleportTarget=qr),he(cn,qr,Di,K,pt,_t,Ot,jt))},Un=()=>{const qr=s.target=oA(s.props,Mr),Di=cz(qr,s,Tr,pr);qr&&(_t!=="svg"&&NC(qr)?_t="svg":_t!=="mathml"&&jC(qr)&&(_t="mathml"),mn||(Wi(qr,Di),Y5(s,!1)))};mn&&(Wi(E,ni),Y5(s,!0)),BC(s.props)?(s.el.__isMounted=!1,c0(()=>{Un(),delete s.el.__isMounted},pt)):Un()}else{if(BC(s.props)&&d.el.__isMounted===!1){c0(()=>{uz.process(d,s,E,B,K,pt,_t,Ot,jt,te)},pt);return}s.el=d.el,s.targetStart=d.targetStart;const Bn=s.anchor=d.anchor,ni=s.target=d.target,Wi=s.targetAnchor=d.targetAnchor,Un=T2(d.props),qr=Un?E:ni,Di=Un?Bn:Wi;if(_t==="svg"||NC(ni)?_t="svg":(_t==="mathml"||jC(ni))&&(_t="mathml"),Jn?(er(d.dynamicChildren,Jn,qr,K,pt,_t,Ot),rM(d,s,!0)):jt||De(d,s,qr,Di,K,pt,_t,Ot,!1),mn)Un?s.props&&d.props&&s.props.to!==d.props.to&&(s.props.to=d.props.to):C5(s,E,Bn,te,1);else if((s.props&&s.props.to)!==(d.props&&d.props.to)){const Fi=s.target=oA(s.props,Mr);Fi&&C5(s,Fi,null,te,0)}else Un&&C5(s,ni,Wi,te,1);Y5(s,mn)}},remove(d,s,E,{um:B,o:{remove:K}},pt){const{shapeFlag:_t,children:Ot,anchor:jt,targetStart:te,targetAnchor:he,target:De,props:er}=d;if(De&&(K(te),K(he)),pt&&K(jt),_t&16){const pr=pt||!T2(er);for(let Mr=0;Mr{d.isMounted=!0}),gg(()=>{d.isUnmounting=!0}),d}const im=[Function,Array],fz={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:im,onEnter:im,onAfterEnter:im,onEnterCancelled:im,onBeforeLeave:im,onLeave:im,onAfterLeave:im,onLeaveCancelled:im,onBeforeAppear:im,onAppear:im,onAfterAppear:im,onAppearCancelled:im},dz=d=>{const s=d.subTree;return s.component?dz(s.component):s},nY={name:"BaseTransition",props:fz,setup(d,{slots:s}){const E=B4(),B=hz();return()=>{const K=s.default&&JA(s.default(),!0);if(!K||!K.length)return;const pt=pz(K),_t=Uu(d),{mode:Ot}=_t;if(B.isLeaving)return k8(pt);const jt=UC(pt);if(!jt)return k8(pt);let te=B2(jt,_t,B,E,De=>te=De);jt.type!==Yp&&Sy(jt,te);let he=E.subTree&&UC(E.subTree);if(he&&he.type!==Yp&&!vy(jt,he)&&dz(E).type!==Yp){let De=B2(he,_t,B,E);if(Sy(he,De),Ot==="out-in"&&jt.type!==Yp)return B.isLeaving=!0,De.afterLeave=()=>{B.isLeaving=!1,E.job.flags&8||E.update(),delete De.afterLeave,he=void 0},k8(pt);Ot==="in-out"&&jt.type!==Yp?De.delayLeave=(er,pr,Mr)=>{const Tr=mz(B,he);Tr[String(he.key)]=he,er[a1]=()=>{pr(),er[a1]=void 0,delete te.delayedLeave,he=void 0},te.delayedLeave=()=>{Mr(),delete te.delayedLeave,he=void 0}}:he=void 0}else he&&(he=void 0);return pt}}};function pz(d){let s=d[0];if(d.length>1){for(const E of d)if(E.type!==Yp){s=E;break}}return s}const iY=nY;function mz(d,s){const{leavingVNodes:E}=d;let B=E.get(s.type);return B||(B=Object.create(null),E.set(s.type,B)),B}function B2(d,s,E,B,K){const{appear:pt,mode:_t,persisted:Ot=!1,onBeforeEnter:jt,onEnter:te,onAfterEnter:he,onEnterCancelled:De,onBeforeLeave:er,onLeave:pr,onAfterLeave:Mr,onLeaveCancelled:Tr,onBeforeAppear:Vr,onAppear:mn,onAfterAppear:Dt,onAppearCancelled:cn}=s,Jn=String(d.key),Bn=mz(E,d),ni=(qr,Di)=>{qr&&Lm(qr,B,9,Di)},Wi=(qr,Di)=>{const Fi=Di[1];ni(qr,Di),au(qr)?qr.every(Pi=>Pi.length<=1)&&Fi():qr.length<=1&&Fi()},Un={mode:_t,persisted:Ot,beforeEnter(qr){let Di=jt;if(!E.isMounted)if(pt)Di=Vr||jt;else return;qr[a1]&&qr[a1](!0);const Fi=Bn[Jn];Fi&&vy(d,Fi)&&Fi.el[a1]&&Fi.el[a1](),ni(Di,[qr])},enter(qr){let Di=te,Fi=he,Pi=De;if(!E.isMounted)if(pt)Di=mn||te,Fi=Dt||he,Pi=cn||De;else return;let bi=!1;const Yi=qr[L5]=Ca=>{bi||(bi=!0,Ca?ni(Pi,[qr]):ni(Fi,[qr]),Un.delayedLeave&&Un.delayedLeave(),qr[L5]=void 0)};Di?Wi(Di,[qr,Yi]):Yi()},leave(qr,Di){const Fi=String(d.key);if(qr[L5]&&qr[L5](!0),E.isUnmounting)return Di();ni(er,[qr]);let Pi=!1;const bi=qr[a1]=Yi=>{Pi||(Pi=!0,Di(),Yi?ni(Tr,[qr]):ni(Mr,[qr]),qr[a1]=void 0,Bn[Fi]===d&&delete Bn[Fi])};Bn[Fi]=d,pr?Wi(pr,[qr,bi]):bi()},clone(qr){const Di=B2(qr,s,E,B,K);return K&&K(Di),Di}};return Un}function k8(d){if(O4(d))return d=y1(d),d.children=null,d}function UC(d){if(!O4(d))return lz(d.type)&&d.children?pz(d.children):d;if(d.component)return d.component.subTree;const{shapeFlag:s,children:E}=d;if(E){if(s&16)return E[0];if(s&32&&Vu(E.default))return E.default()}}function Sy(d,s){d.shapeFlag&6&&d.component?(d.transition=s,Sy(d.component.subTree,s)):d.shapeFlag&128?(d.ssContent.transition=s.clone(d.ssContent),d.ssFallback.transition=s.clone(d.ssFallback)):d.transition=s}function JA(d,s=!1,E){let B=[],K=0;for(let pt=0;pt1)for(let pt=0;ptA2(Mr,s&&(au(s)?s[Tr]:s),E,B,K));return}if(c_(B)&&!K){B.shapeFlag&512&&B.type.__asyncResolved&&B.component.subTree.component&&A2(d,s,E,B.component.subTree);return}const pt=B.shapeFlag&4?N4(B.component):B.el,_t=K?null:pt,{i:Ot,r:jt}=d,te=s&&s.r,he=Ot.refs===mf?Ot.refs={}:Ot.refs,De=Ot.setupState,er=Uu(De),pr=De===mf?()=>!1:Mr=>Rh(er,Mr);if(te!=null&&te!==jt&&(sd(te)?(he[te]=null,pr(te)&&(De[te]=null)):jd(te)&&(te.value=null)),Vu(jt))tw(jt,Ot,12,[_t,he]);else{const Mr=sd(jt),Tr=jd(jt);if(Mr||Tr){const Vr=()=>{if(d.f){const mn=Mr?pr(jt)?De[jt]:he[jt]:jt.value;K?au(mn)&&jA(mn,pt):au(mn)?mn.includes(pt)||mn.push(pt):Mr?(he[jt]=[pt],pr(jt)&&(De[jt]=he[jt])):(jt.value=[pt],d.k&&(he[d.k]=jt.value))}else Mr?(he[jt]=_t,pr(jt)&&(De[jt]=_t)):Tr&&(jt.value=_t,d.k&&(he[d.k]=_t))};_t?(Vr.id=-1,c0(Vr,E)):Vr()}}}P4().requestIdleCallback;P4().cancelIdleCallback;const c_=d=>!!d.type.__asyncLoader,O4=d=>d.type.__isKeepAlive;function aY(d,s){vz(d,"a",s)}function oY(d,s){vz(d,"da",s)}function vz(d,s,E=Kp){const B=d.__wdc||(d.__wdc=()=>{let K=E;for(;K;){if(K.isDeactivated)return;K=K.parent}return d()});if(D4(s,B,E),E){let K=E.parent;for(;K&&K.parent;)O4(K.parent.vnode)&&sY(B,s,E,K),K=K.parent}}function sY(d,s,E,B){const K=D4(s,d,B,!0);Iy(()=>{jA(B[s],K)},E)}function D4(d,s,E=Kp,B=!1){if(E){const K=E[d]||(E[d]=[]),pt=s.__weh||(s.__weh=(..._t)=>{av();const Ot=rw(E),jt=Lm(s,E,d,_t);return Ot(),ov(),jt});return B?K.unshift(pt):K.push(pt),pt}}const sv=d=>(s,E=Kp)=>{(!U2||d==="sp")&&D4(d,(...B)=>s(...B),E)},lY=sv("bm"),bp=sv("m"),uY=sv("bu"),yz=sv("u"),gg=sv("bum"),Iy=sv("um"),cY=sv("sp"),hY=sv("rtg"),fY=sv("rtc");function dY(d,s=Kp){D4("ec",d,s)}const xz="components";function QA(d,s){return bz(xz,d,!0,s)||d}const _z=Symbol.for("v-ndc");function f4(d){return sd(d)?bz(xz,d,!1)||d:d||_z}function bz(d,s,E=!0,B=!1){const K=Op||Kp;if(K){const pt=K.type;{const Ot=eK(pt,!1);if(Ot&&(Ot===s||Ot===cm(s)||Ot===L4(cm(s))))return pt}const _t=VC(K[d]||pt[d],s)||VC(K.appContext[d],s);return!_t&&B?pt:_t}}function VC(d,s){return d&&(d[s]||d[cm(s)]||d[L4(cm(s))])}function Jh(d,s,E,B){let K;const pt=E,_t=au(d);if(_t||sd(d)){const Ot=_t&&m1(d);let jt=!1,te=!1;Ot&&(jt=!lm(d),te=v1(d),d=I4(d)),K=new Array(d.length);for(let he=0,De=d.length;hes(Ot,jt,void 0,pt));else{const Ot=Object.keys(d);K=new Array(Ot.length);for(let jt=0,te=Ot.length;jtj2(s)?!(s.type===Yp||s.type===Pu&&!wz(s.children)):!0)?d:null}const sA=d=>d?Uz(d)?N4(d):sA(d.parent):null,M2=ap(Object.create(null),{$:d=>d,$el:d=>d.vnode.el,$data:d=>d.data,$props:d=>d.props,$attrs:d=>d.attrs,$slots:d=>d.slots,$refs:d=>d.refs,$parent:d=>sA(d.parent),$root:d=>sA(d.root),$host:d=>d.ce,$emit:d=>d.emit,$options:d=>Tz(d),$forceUpdate:d=>d.f||(d.f=()=>{KA(d.update)}),$nextTick:d=>d.n||(d.n=om.bind(d.proxy)),$watch:d=>FY.bind(d)}),T8=(d,s)=>d!==mf&&!d.__isScriptSetup&&Rh(d,s),mY={get({_:d},s){if(s==="__v_skip")return!0;const{ctx:E,setupState:B,data:K,props:pt,accessCache:_t,type:Ot,appContext:jt}=d;let te;if(s[0]!=="$"){const pr=_t[s];if(pr!==void 0)switch(pr){case 1:return B[s];case 2:return K[s];case 4:return E[s];case 3:return pt[s]}else{if(T8(B,s))return _t[s]=1,B[s];if(K!==mf&&Rh(K,s))return _t[s]=2,K[s];if((te=d.propsOptions[0])&&Rh(te,s))return _t[s]=3,pt[s];if(E!==mf&&Rh(E,s))return _t[s]=4,E[s];lA&&(_t[s]=0)}}const he=M2[s];let De,er;if(he)return s==="$attrs"&&Zp(d.attrs,"get",""),he(d);if((De=Ot.__cssModules)&&(De=De[s]))return De;if(E!==mf&&Rh(E,s))return _t[s]=4,E[s];if(er=jt.config.globalProperties,Rh(er,s))return er[s]},set({_:d},s,E){const{data:B,setupState:K,ctx:pt}=d;return T8(K,s)?(K[s]=E,!0):B!==mf&&Rh(B,s)?(B[s]=E,!0):Rh(d.props,s)||s[0]==="$"&&s.slice(1)in d?!1:(pt[s]=E,!0)},has({_:{data:d,setupState:s,accessCache:E,ctx:B,appContext:K,propsOptions:pt}},_t){let Ot;return!!E[_t]||d!==mf&&Rh(d,_t)||T8(s,_t)||(Ot=pt[0])&&Rh(Ot,_t)||Rh(B,_t)||Rh(M2,_t)||Rh(K.config.globalProperties,_t)},defineProperty(d,s,E){return E.get!=null?d._.accessCache[s]=0:Rh(E,"value")&&this.set(d,s,E.value,null),Reflect.defineProperty(d,s,E)}};function HC(d){return au(d)?d.reduce((s,E)=>(s[E]=null,s),{}):d}let lA=!0;function gY(d){const s=Tz(d),E=d.proxy,B=d.ctx;lA=!1,s.beforeCreate&&WC(s.beforeCreate,d,"bc");const{data:K,computed:pt,methods:_t,watch:Ot,provide:jt,inject:te,created:he,beforeMount:De,mounted:er,beforeUpdate:pr,updated:Mr,activated:Tr,deactivated:Vr,beforeDestroy:mn,beforeUnmount:Dt,destroyed:cn,unmounted:Jn,render:Bn,renderTracked:ni,renderTriggered:Wi,errorCaptured:Un,serverPrefetch:qr,expose:Di,inheritAttrs:Fi,components:Pi,directives:bi,filters:Yi}=s;if(te&&vY(te,B,null),_t)for(const si in _t){const Ma=_t[si];Vu(Ma)&&(B[si]=Ma.bind(E))}if(K){const si=K.call(E,E);gf(si)&&(d.data=My(si))}if(lA=!0,pt)for(const si in pt){const Ma=pt[si],zo=Vu(Ma)?Ma.bind(E,E):Vu(Ma.get)?Ma.get.bind(E,E):dg,ho=!Vu(Ma)&&Vu(Ma.set)?Ma.set.bind(E):dg,mo=$o({get:zo,set:ho});Object.defineProperty(B,si,{enumerable:!0,configurable:!0,get:()=>mo.value,set:Ts=>mo.value=Ts})}if(Ot)for(const si in Ot)kz(Ot[si],B,E,si);if(jt){const si=Vu(jt)?jt.call(E):jt;Reflect.ownKeys(si).forEach(Ma=>{K5(Ma,si[Ma])})}he&&WC(he,d,"c");function Ni(si,Ma){au(Ma)?Ma.forEach(zo=>si(zo.bind(E))):Ma&&si(Ma.bind(E))}if(Ni(lY,De),Ni(bp,er),Ni(uY,pr),Ni(yz,Mr),Ni(aY,Tr),Ni(oY,Vr),Ni(dY,Un),Ni(fY,ni),Ni(hY,Wi),Ni(gg,Dt),Ni(Iy,Jn),Ni(cY,qr),au(Di))if(Di.length){const si=d.exposed||(d.exposed={});Di.forEach(Ma=>{Object.defineProperty(si,Ma,{get:()=>E[Ma],set:zo=>E[Ma]=zo,enumerable:!0})})}else d.exposed||(d.exposed={});Bn&&d.render===dg&&(d.render=Bn),Fi!=null&&(d.inheritAttrs=Fi),Pi&&(d.components=Pi),bi&&(d.directives=bi),qr&&gz(d)}function vY(d,s,E=dg){au(d)&&(d=uA(d));for(const B in d){const K=d[B];let pt;gf(K)?"default"in K?pt=um(K.from||B,K.default,!0):pt=um(K.from||B):pt=um(K),jd(pt)?Object.defineProperty(s,B,{enumerable:!0,configurable:!0,get:()=>pt.value,set:_t=>pt.value=_t}):s[B]=pt}}function WC(d,s,E){Lm(au(d)?d.map(B=>B.bind(s.proxy)):d.bind(s.proxy),s,E)}function kz(d,s,E,B){let K=B.includes(".")?Fz(E,B):()=>E[B];if(sd(d)){const pt=s[d];Vu(pt)&&Em(K,pt)}else if(Vu(d))Em(K,d.bind(E));else if(gf(d))if(au(d))d.forEach(pt=>kz(pt,s,E,B));else{const pt=Vu(d.handler)?d.handler.bind(E):s[d.handler];Vu(pt)&&Em(K,pt,d)}}function Tz(d){const s=d.type,{mixins:E,extends:B}=s,{mixins:K,optionsCache:pt,config:{optionMergeStrategies:_t}}=d.appContext,Ot=pt.get(s);let jt;return Ot?jt=Ot:!K.length&&!E&&!B?jt=s:(jt={},K.length&&K.forEach(te=>d4(jt,te,_t,!0)),d4(jt,s,_t)),gf(s)&&pt.set(s,jt),jt}function d4(d,s,E,B=!1){const{mixins:K,extends:pt}=s;pt&&d4(d,pt,E,!0),K&&K.forEach(_t=>d4(d,_t,E,!0));for(const _t in s)if(!(B&&_t==="expose")){const Ot=yY[_t]||E&&E[_t];d[_t]=Ot?Ot(d[_t],s[_t]):s[_t]}return d}const yY={data:qC,props:$C,emits:$C,methods:m2,computed:m2,beforeCreate:u0,created:u0,beforeMount:u0,mounted:u0,beforeUpdate:u0,updated:u0,beforeDestroy:u0,beforeUnmount:u0,destroyed:u0,unmounted:u0,activated:u0,deactivated:u0,errorCaptured:u0,serverPrefetch:u0,components:m2,directives:m2,watch:_Y,provide:qC,inject:xY};function qC(d,s){return s?d?function(){return ap(Vu(d)?d.call(this,this):d,Vu(s)?s.call(this,this):s)}:s:d}function xY(d,s){return m2(uA(d),uA(s))}function uA(d){if(au(d)){const s={};for(let E=0;E1)return E&&Vu(s)?s.call(B&&B.proxy):s}}function kY(){return!!(B4()||ky)}const Mz={},Sz=()=>Object.create(Mz),Ez=d=>Object.getPrototypeOf(d)===Mz;function TY(d,s,E,B=!1){const K={},pt=Sz();d.propsDefaults=Object.create(null),Cz(d,s,K,pt);for(const _t in d.propsOptions[0])_t in K||(K[_t]=void 0);E?d.props=B?K:JI(K):d.type.props?d.props=K:d.props=pt,d.attrs=pt}function AY(d,s,E,B){const{props:K,attrs:pt,vnode:{patchFlag:_t}}=d,Ot=Uu(K),[jt]=d.propsOptions;let te=!1;if((B||_t>0)&&!(_t&16)){if(_t&8){const he=d.vnode.dynamicProps;for(let De=0;De{jt=!0;const[er,pr]=Lz(De,s,!0);ap(_t,er),pr&&Ot.push(...pr)};!E&&s.mixins.length&&s.mixins.forEach(he),d.extends&&he(d.extends),d.mixins&&d.mixins.forEach(he)}if(!pt&&!jt)return gf(d)&&B.set(d,s_),s_;if(au(pt))for(let he=0;hed==="_"||d==="__"||d==="_ctx"||d==="$stable",eM=d=>au(d)?d.map(cg):[cg(d)],SY=(d,s,E)=>{if(s._n)return s;const B=ew((...K)=>eM(s(...K)),E);return B._c=!1,B},Pz=(d,s,E)=>{const B=d._ctx;for(const K in d){if(tM(K))continue;const pt=d[K];if(Vu(pt))s[K]=SY(K,pt,B);else if(pt!=null){const _t=eM(pt);s[K]=()=>_t}}},Iz=(d,s)=>{const E=eM(s);d.slots.default=()=>E},zz=(d,s,E)=>{for(const B in s)(E||!tM(B))&&(d[B]=s[B])},EY=(d,s,E)=>{const B=d.slots=Sz();if(d.vnode.shapeFlag&32){const K=s.__;K&&rA(B,"__",K,!0);const pt=s._;pt?(zz(B,s,E),E&&rA(B,"_",pt,!0)):Pz(s,B)}else s&&Iz(d,s)},CY=(d,s,E)=>{const{vnode:B,slots:K}=d;let pt=!0,_t=mf;if(B.shapeFlag&32){const Ot=s._;Ot?E&&Ot===1?pt=!1:zz(K,s,E):(pt=!s.$stable,Pz(s,K)),_t=s}else s&&(Iz(d,s),_t={default:1});if(pt)for(const Ot in K)!tM(Ot)&&_t[Ot]==null&&delete K[Ot]},c0=HY;function LY(d){return PY(d)}function PY(d,s){const E=P4();E.__VUE__=!0;const{insert:B,remove:K,patchProp:pt,createElement:_t,createText:Ot,createComment:jt,setText:te,setElementText:he,parentNode:De,nextSibling:er,setScopeId:pr=dg,insertStaticContent:Mr}=d,Tr=(vi,wi,hi,go=null,Mo=null,To=null,ms=void 0,bs=null,as=!!wi.dynamicChildren)=>{if(vi===wi)return;vi&&!vy(vi,wi)&&(go=da(vi),Ts(vi,Mo,To,!0),vi=null),wi.patchFlag===-2&&(as=!1,wi.dynamicChildren=null);const{type:Yo,ref:Ol,shapeFlag:Ns}=wi;switch(Yo){case R4:Vr(vi,wi,hi,go);break;case Yp:mn(vi,wi,hi,go);break;case X5:vi==null&&Dt(wi,hi,go,ms);break;case Pu:Pi(vi,wi,hi,go,Mo,To,ms,bs,as);break;default:Ns&1?Bn(vi,wi,hi,go,Mo,To,ms,bs,as):Ns&6?bi(vi,wi,hi,go,Mo,To,ms,bs,as):(Ns&64||Ns&128)&&Yo.process(vi,wi,hi,go,Mo,To,ms,bs,as,us)}Ol!=null&&Mo?A2(Ol,vi&&vi.ref,To,wi||vi,!wi):Ol==null&&vi&&vi.ref!=null&&A2(vi.ref,null,To,vi,!0)},Vr=(vi,wi,hi,go)=>{if(vi==null)B(wi.el=Ot(wi.children),hi,go);else{const Mo=wi.el=vi.el;wi.children!==vi.children&&te(Mo,wi.children)}},mn=(vi,wi,hi,go)=>{vi==null?B(wi.el=jt(wi.children||""),hi,go):wi.el=vi.el},Dt=(vi,wi,hi,go)=>{[vi.el,vi.anchor]=Mr(vi.children,wi,hi,go,vi.el,vi.anchor)},cn=({el:vi,anchor:wi},hi,go)=>{let Mo;for(;vi&&vi!==wi;)Mo=er(vi),B(vi,hi,go),vi=Mo;B(wi,hi,go)},Jn=({el:vi,anchor:wi})=>{let hi;for(;vi&&vi!==wi;)hi=er(vi),K(vi),vi=hi;K(wi)},Bn=(vi,wi,hi,go,Mo,To,ms,bs,as)=>{wi.type==="svg"?ms="svg":wi.type==="math"&&(ms="mathml"),vi==null?ni(wi,hi,go,Mo,To,ms,bs,as):qr(vi,wi,Mo,To,ms,bs,as)},ni=(vi,wi,hi,go,Mo,To,ms,bs)=>{let as,Yo;const{props:Ol,shapeFlag:Ns,transition:Bl,dirs:vu}=vi;if(as=vi.el=_t(vi.type,To,Ol&&Ol.is,Ol),Ns&8?he(as,vi.children):Ns&16&&Un(vi.children,as,null,go,Mo,A8(vi,To),ms,bs),vu&&ay(vi,null,go,"created"),Wi(as,vi,vi.scopeId,ms,go),Ol){for(const fh in Ol)fh!=="value"&&!b2(fh)&&pt(as,fh,null,Ol[fh],To,go);"value"in Ol&&pt(as,"value",null,Ol.value,To),(Yo=Ol.onVnodeBeforeMount)&&ng(Yo,go,vi)}vu&&ay(vi,null,go,"beforeMount");const tc=IY(Mo,Bl);tc&&Bl.beforeEnter(as),B(as,wi,hi),((Yo=Ol&&Ol.onVnodeMounted)||tc||vu)&&c0(()=>{Yo&&ng(Yo,go,vi),tc&&Bl.enter(as),vu&&ay(vi,null,go,"mounted")},Mo)},Wi=(vi,wi,hi,go,Mo)=>{if(hi&&pr(vi,hi),go)for(let To=0;To{for(let Yo=as;Yo{const bs=wi.el=vi.el;let{patchFlag:as,dynamicChildren:Yo,dirs:Ol}=wi;as|=vi.patchFlag&16;const Ns=vi.props||mf,Bl=wi.props||mf;let vu;if(hi&&oy(hi,!1),(vu=Bl.onVnodeBeforeUpdate)&&ng(vu,hi,wi,vi),Ol&&ay(wi,vi,hi,"beforeUpdate"),hi&&oy(hi,!0),(Ns.innerHTML&&Bl.innerHTML==null||Ns.textContent&&Bl.textContent==null)&&he(bs,""),Yo?Di(vi.dynamicChildren,Yo,bs,hi,go,A8(wi,Mo),To):ms||Ma(vi,wi,bs,null,hi,go,A8(wi,Mo),To,!1),as>0){if(as&16)Fi(bs,Ns,Bl,hi,Mo);else if(as&2&&Ns.class!==Bl.class&&pt(bs,"class",null,Bl.class,Mo),as&4&&pt(bs,"style",Ns.style,Bl.style,Mo),as&8){const tc=wi.dynamicProps;for(let fh=0;fh{vu&&ng(vu,hi,wi,vi),Ol&&ay(wi,vi,hi,"updated")},go)},Di=(vi,wi,hi,go,Mo,To,ms)=>{for(let bs=0;bs{if(wi!==hi){if(wi!==mf)for(const To in wi)!b2(To)&&!(To in hi)&&pt(vi,To,wi[To],null,Mo,go);for(const To in hi){if(b2(To))continue;const ms=hi[To],bs=wi[To];ms!==bs&&To!=="value"&&pt(vi,To,bs,ms,Mo,go)}"value"in hi&&pt(vi,"value",wi.value,hi.value,Mo)}},Pi=(vi,wi,hi,go,Mo,To,ms,bs,as)=>{const Yo=wi.el=vi?vi.el:Ot(""),Ol=wi.anchor=vi?vi.anchor:Ot("");let{patchFlag:Ns,dynamicChildren:Bl,slotScopeIds:vu}=wi;vu&&(bs=bs?bs.concat(vu):vu),vi==null?(B(Yo,hi,go),B(Ol,hi,go),Un(wi.children||[],hi,Ol,Mo,To,ms,bs,as)):Ns>0&&Ns&64&&Bl&&vi.dynamicChildren?(Di(vi.dynamicChildren,Bl,hi,Mo,To,ms,bs),(wi.key!=null||Mo&&wi===Mo.subTree)&&rM(vi,wi,!0)):Ma(vi,wi,hi,Ol,Mo,To,ms,bs,as)},bi=(vi,wi,hi,go,Mo,To,ms,bs,as)=>{wi.slotScopeIds=bs,vi==null?wi.shapeFlag&512?Mo.ctx.activate(wi,hi,go,ms,as):Yi(wi,hi,go,Mo,To,ms,as):Ca(vi,wi,as)},Yi=(vi,wi,hi,go,Mo,To,ms)=>{const bs=vi.component=KY(vi,go,Mo);if(O4(vi)&&(bs.ctx.renderer=us),XY(bs,!1,ms),bs.asyncDep){if(Mo&&Mo.registerDep(bs,Ni,ms),!vi.el){const as=bs.subTree=Wl(Yp);mn(null,as,wi,hi),vi.placeholder=as.el}}else Ni(bs,vi,wi,hi,Mo,To,ms)},Ca=(vi,wi,hi)=>{const go=wi.component=vi.component;if(UY(vi,wi,hi))if(go.asyncDep&&!go.asyncResolved){si(go,wi,hi);return}else go.next=wi,go.update();else wi.el=vi.el,go.vnode=wi},Ni=(vi,wi,hi,go,Mo,To,ms)=>{const bs=()=>{if(vi.isMounted){let{next:Ns,bu:Bl,u:vu,parent:tc,vnode:fh}=vi;{const d0=Oz(vi);if(d0){Ns&&(Ns.el=fh.el,si(vi,Ns,ms)),d0.asyncDep.then(()=>{vi.isUnmounted||bs()});return}}let Fc=Ns,op;oy(vi,!1),Ns?(Ns.el=fh.el,si(vi,Ns,ms)):Ns=fh,Bl&&G5(Bl),(op=Ns.props&&Ns.props.onVnodeBeforeUpdate)&&ng(op,tc,Ns,fh),oy(vi,!0);const Kd=YC(vi),e0=vi.subTree;vi.subTree=Kd,Tr(e0,Kd,De(e0.el),da(e0),vi,Mo,To),Ns.el=Kd.el,Fc===null&&VY(vi,Kd.el),vu&&c0(vu,Mo),(op=Ns.props&&Ns.props.onVnodeUpdated)&&c0(()=>ng(op,tc,Ns,fh),Mo)}else{let Ns;const{el:Bl,props:vu}=wi,{bm:tc,m:fh,parent:Fc,root:op,type:Kd}=vi,e0=c_(wi);oy(vi,!1),tc&&G5(tc),!e0&&(Ns=vu&&vu.onVnodeBeforeMount)&&ng(Ns,Fc,wi),oy(vi,!0);{op.ce&&op.ce._def.shadowRoot!==!1&&op.ce._injectChildStyle(Kd);const d0=vi.subTree=YC(vi);Tr(null,d0,hi,go,vi,Mo,To),wi.el=d0.el}if(fh&&c0(fh,Mo),!e0&&(Ns=vu&&vu.onVnodeMounted)){const d0=wi;c0(()=>ng(Ns,Fc,d0),Mo)}(wi.shapeFlag&256||Fc&&c_(Fc.vnode)&&Fc.vnode.shapeFlag&256)&&vi.a&&c0(vi.a,Mo),vi.isMounted=!0,wi=hi=go=null}};vi.scope.on();const as=vi.effect=new BI(bs);vi.scope.off();const Yo=vi.update=as.run.bind(as),Ol=vi.job=as.runIfDirty.bind(as);Ol.i=vi,Ol.id=vi.uid,as.scheduler=()=>KA(Ol),oy(vi,!0),Yo()},si=(vi,wi,hi)=>{wi.component=vi;const go=vi.vnode.props;vi.vnode=wi,vi.next=null,AY(vi,wi.props,go,hi),CY(vi,wi.children,hi),av(),RC(vi),ov()},Ma=(vi,wi,hi,go,Mo,To,ms,bs,as=!1)=>{const Yo=vi&&vi.children,Ol=vi?vi.shapeFlag:0,Ns=wi.children,{patchFlag:Bl,shapeFlag:vu}=wi;if(Bl>0){if(Bl&128){ho(Yo,Ns,hi,go,Mo,To,ms,bs,as);return}else if(Bl&256){zo(Yo,Ns,hi,go,Mo,To,ms,bs,as);return}}vu&8?(Ol&16&&Ia(Yo,Mo,To),Ns!==Yo&&he(hi,Ns)):Ol&16?vu&16?ho(Yo,Ns,hi,go,Mo,To,ms,bs,as):Ia(Yo,Mo,To,!0):(Ol&8&&he(hi,""),vu&16&&Un(Ns,hi,go,Mo,To,ms,bs,as))},zo=(vi,wi,hi,go,Mo,To,ms,bs,as)=>{vi=vi||s_,wi=wi||s_;const Yo=vi.length,Ol=wi.length,Ns=Math.min(Yo,Ol);let Bl;for(Bl=0;BlOl?Ia(vi,Mo,To,!0,!1,Ns):Un(wi,hi,go,Mo,To,ms,bs,as,Ns)},ho=(vi,wi,hi,go,Mo,To,ms,bs,as)=>{let Yo=0;const Ol=wi.length;let Ns=vi.length-1,Bl=Ol-1;for(;Yo<=Ns&&Yo<=Bl;){const vu=vi[Yo],tc=wi[Yo]=as?o1(wi[Yo]):cg(wi[Yo]);if(vy(vu,tc))Tr(vu,tc,hi,null,Mo,To,ms,bs,as);else break;Yo++}for(;Yo<=Ns&&Yo<=Bl;){const vu=vi[Ns],tc=wi[Bl]=as?o1(wi[Bl]):cg(wi[Bl]);if(vy(vu,tc))Tr(vu,tc,hi,null,Mo,To,ms,bs,as);else break;Ns--,Bl--}if(Yo>Ns){if(Yo<=Bl){const vu=Bl+1,tc=vuBl)for(;Yo<=Ns;)Ts(vi[Yo],Mo,To,!0),Yo++;else{const vu=Yo,tc=Yo,fh=new Map;for(Yo=tc;Yo<=Bl;Yo++){const sp=wi[Yo]=as?o1(wi[Yo]):cg(wi[Yo]);sp.key!=null&&fh.set(sp.key,Yo)}let Fc,op=0;const Kd=Bl-tc+1;let e0=!1,d0=0;const Dm=new Array(Kd);for(Yo=0;Yo=Kd){Ts(sp,Mo,To,!0);continue}let p0;if(sp.key!=null)p0=fh.get(sp.key);else for(Fc=tc;Fc<=Bl;Fc++)if(Dm[Fc-tc]===0&&vy(sp,wi[Fc])){p0=Fc;break}p0===void 0?Ts(sp,Mo,To,!0):(Dm[p0-tc]=Yo+1,p0>=d0?d0=p0:e0=!0,Tr(sp,wi[p0],hi,null,Mo,To,ms,bs,as),op++)}const uv=e0?zY(Dm):s_;for(Fc=uv.length-1,Yo=Kd-1;Yo>=0;Yo--){const sp=tc+Yo,p0=wi[sp],Fm=wi[sp+1],Fy=sp+1{const{el:To,type:ms,transition:bs,children:as,shapeFlag:Yo}=vi;if(Yo&6){mo(vi.component.subTree,wi,hi,go);return}if(Yo&128){vi.suspense.move(wi,hi,go);return}if(Yo&64){ms.move(vi,wi,hi,us);return}if(ms===Pu){B(To,wi,hi);for(let Ns=0;Nsbs.enter(To),Mo);else{const{leave:Ns,delayLeave:Bl,afterLeave:vu}=bs,tc=()=>{vi.ctx.isUnmounted?K(To):B(To,wi,hi)},fh=()=>{Ns(To,()=>{tc(),vu&&vu()})};Bl?Bl(To,tc,fh):fh()}else B(To,wi,hi)},Ts=(vi,wi,hi,go=!1,Mo=!1)=>{const{type:To,props:ms,ref:bs,children:as,dynamicChildren:Yo,shapeFlag:Ol,patchFlag:Ns,dirs:Bl,cacheIndex:vu}=vi;if(Ns===-2&&(Mo=!1),bs!=null&&(av(),A2(bs,null,hi,vi,!0),ov()),vu!=null&&(wi.renderCache[vu]=void 0),Ol&256){wi.ctx.deactivate(vi);return}const tc=Ol&1&&Bl,fh=!c_(vi);let Fc;if(fh&&(Fc=ms&&ms.onVnodeBeforeUnmount)&&ng(Fc,wi,vi),Ol&6)ro(vi.component,hi,go);else{if(Ol&128){vi.suspense.unmount(hi,go);return}tc&&ay(vi,null,wi,"beforeUnmount"),Ol&64?vi.type.remove(vi,wi,hi,us,go):Yo&&!Yo.hasOnce&&(To!==Pu||Ns>0&&Ns&64)?Ia(Yo,wi,hi,!1,!0):(To===Pu&&Ns&384||!Mo&&Ol&16)&&Ia(as,wi,hi),go&&xl(vi)}(fh&&(Fc=ms&&ms.onVnodeUnmounted)||tc)&&c0(()=>{Fc&&ng(Fc,wi,vi),tc&&ay(vi,null,wi,"unmounted")},hi)},xl=vi=>{const{type:wi,el:hi,anchor:go,transition:Mo}=vi;if(wi===Pu){ko(hi,go);return}if(wi===X5){Jn(vi);return}const To=()=>{K(hi),Mo&&!Mo.persisted&&Mo.afterLeave&&Mo.afterLeave()};if(vi.shapeFlag&1&&Mo&&!Mo.persisted){const{leave:ms,delayLeave:bs}=Mo,as=()=>ms(hi,To);bs?bs(vi.el,To,as):as()}else To()},ko=(vi,wi)=>{let hi;for(;vi!==wi;)hi=er(vi),K(vi),vi=hi;K(wi)},ro=(vi,wi,hi)=>{const{bum:go,scope:Mo,job:To,subTree:ms,um:bs,m:as,a:Yo,parent:Ol,slots:{__:Ns}}=vi;GC(as),GC(Yo),go&&G5(go),Ol&&au(Ns)&&Ns.forEach(Bl=>{Ol.renderCache[Bl]=void 0}),Mo.stop(),To&&(To.flags|=8,Ts(ms,vi,wi,hi)),bs&&c0(bs,wi),c0(()=>{vi.isUnmounted=!0},wi),wi&&wi.pendingBranch&&!wi.isUnmounted&&vi.asyncDep&&!vi.asyncResolved&&vi.suspenseId===wi.pendingId&&(wi.deps--,wi.deps===0&&wi.resolve())},Ia=(vi,wi,hi,go=!1,Mo=!1,To=0)=>{for(let ms=To;ms{if(vi.shapeFlag&6)return da(vi.component.subTree);if(vi.shapeFlag&128)return vi.suspense.next();const wi=er(vi.anchor||vi.el),hi=wi&&wi[sz];return hi?er(hi):wi};let no=!1;const po=(vi,wi,hi)=>{vi==null?wi._vnode&&Ts(wi._vnode,null,null,!0):Tr(wi._vnode||null,vi,wi,null,null,null,hi),wi._vnode=vi,no||(no=!0,RC(),iz(),no=!1)},us={p:Tr,um:Ts,m:mo,r:xl,mt:Yi,mc:Un,pc:Ma,pbc:Di,n:da,o:d};return{render:po,hydrate:void 0,createApp:wY(po)}}function A8({type:d,props:s},E){return E==="svg"&&d==="foreignObject"||E==="mathml"&&d==="annotation-xml"&&s&&s.encoding&&s.encoding.includes("html")?void 0:E}function oy({effect:d,job:s},E){E?(d.flags|=32,s.flags|=4):(d.flags&=-33,s.flags&=-5)}function IY(d,s){return(!d||d&&!d.pendingBranch)&&s&&!s.persisted}function rM(d,s,E=!1){const B=d.children,K=s.children;if(au(B)&&au(K))for(let pt=0;pt>1,d[E[Ot]]0&&(s[B]=E[pt-1]),E[pt]=B)}}for(pt=E.length,_t=E[pt-1];pt-- >0;)E[pt]=_t,_t=s[_t];return E}function Oz(d){const s=d.subTree.component;if(s)return s.asyncDep&&!s.asyncResolved?s:Oz(s)}function GC(d){if(d)for(let s=0;sum(OY);function Em(d,s,E){return Dz(d,s,E)}function Dz(d,s,E=mf){const{immediate:B,deep:K,flush:pt,once:_t}=E,Ot=ap({},E),jt=s&&B||!s&&pt!=="post";let te;if(U2){if(pt==="sync"){const pr=DY();te=pr.__watcherHandles||(pr.__watcherHandles=[])}else if(!jt){const pr=()=>{};return pr.stop=dg,pr.resume=dg,pr.pause=dg,pr}}const he=Kp;Ot.call=(pr,Mr,Tr)=>Lm(pr,he,Mr,Tr);let De=!1;pt==="post"?Ot.scheduler=pr=>{c0(pr,he&&he.suspense)}:pt!=="sync"&&(De=!0,Ot.scheduler=(pr,Mr)=>{Mr?pr():KA(pr)}),Ot.augmentJob=pr=>{s&&(pr.flags|=4),De&&(pr.flags|=2,he&&(pr.id=he.uid,pr.i=he))};const er=JG(d,s,Ot);return U2&&(te?te.push(er):jt&&er()),er}function FY(d,s,E){const B=this.proxy,K=sd(d)?d.includes(".")?Fz(B,d):()=>B[d]:d.bind(B,B);let pt;Vu(s)?pt=s:(pt=s.handler,E=s);const _t=rw(this),Ot=Dz(K,pt.bind(B),E);return _t(),Ot}function Fz(d,s){const E=s.split(".");return()=>{let B=d;for(let K=0;Ks==="modelValue"||s==="model-value"?d.modelModifiers:d[`${s}Modifiers`]||d[`${cm(s)}Modifiers`]||d[`${Py(s)}Modifiers`];function BY(d,s,...E){if(d.isUnmounted)return;const B=d.vnode.props||mf;let K=E;const pt=s.startsWith("update:"),_t=pt&&RY(B,s.slice(7));_t&&(_t.trim&&(K=E.map(he=>sd(he)?he.trim():he)),_t.number&&(K=E.map(o4)));let Ot,jt=B[Ot=y8(s)]||B[Ot=y8(cm(s))];!jt&&pt&&(jt=B[Ot=y8(Py(s))]),jt&&Lm(jt,d,6,K);const te=B[Ot+"Once"];if(te){if(!d.emitted)d.emitted={};else if(d.emitted[Ot])return;d.emitted[Ot]=!0,Lm(te,d,6,K)}}function Rz(d,s,E=!1){const B=s.emitsCache,K=B.get(d);if(K!==void 0)return K;const pt=d.emits;let _t={},Ot=!1;if(!Vu(d)){const jt=te=>{const he=Rz(te,s,!0);he&&(Ot=!0,ap(_t,he))};!E&&s.mixins.length&&s.mixins.forEach(jt),d.extends&&jt(d.extends),d.mixins&&d.mixins.forEach(jt)}return!pt&&!Ot?(gf(d)&&B.set(d,null),null):(au(pt)?pt.forEach(jt=>_t[jt]=null):ap(_t,pt),gf(d)&&B.set(d,_t),_t)}function F4(d,s){return!d||!S4(s)?!1:(s=s.slice(2).replace(/Once$/,""),Rh(d,s[0].toLowerCase()+s.slice(1))||Rh(d,Py(s))||Rh(d,s))}function YC(d){const{type:s,vnode:E,proxy:B,withProxy:K,propsOptions:[pt],slots:_t,attrs:Ot,emit:jt,render:te,renderCache:he,props:De,data:er,setupState:pr,ctx:Mr,inheritAttrs:Tr}=d,Vr=h4(d);let mn,Dt;try{if(E.shapeFlag&4){const Jn=K||B,Bn=Jn;mn=cg(te.call(Bn,Jn,he,De,pr,er,Mr)),Dt=Ot}else{const Jn=s;mn=cg(Jn.length>1?Jn(De,{attrs:Ot,slots:_t,emit:jt}):Jn(De,null)),Dt=s.props?Ot:NY(Ot)}}catch(Jn){S2.length=0,z4(Jn,d,1),mn=Wl(Yp)}let cn=mn;if(Dt&&Tr!==!1){const Jn=Object.keys(Dt),{shapeFlag:Bn}=cn;Jn.length&&Bn&7&&(pt&&Jn.some(NA)&&(Dt=jY(Dt,pt)),cn=y1(cn,Dt,!1,!0))}return E.dirs&&(cn=y1(cn,null,!1,!0),cn.dirs=cn.dirs?cn.dirs.concat(E.dirs):E.dirs),E.transition&&Sy(cn,E.transition),mn=cn,h4(Vr),mn}const NY=d=>{let s;for(const E in d)(E==="class"||E==="style"||S4(E))&&((s||(s={}))[E]=d[E]);return s},jY=(d,s)=>{const E={};for(const B in d)(!NA(B)||!(B.slice(9)in s))&&(E[B]=d[B]);return E};function UY(d,s,E){const{props:B,children:K,component:pt}=d,{props:_t,children:Ot,patchFlag:jt}=s,te=pt.emitsOptions;if(s.dirs||s.transition)return!0;if(E&&jt>=0){if(jt&1024)return!0;if(jt&16)return B?KC(B,_t,te):!!_t;if(jt&8){const he=s.dynamicProps;for(let De=0;Ded.__isSuspense;function HY(d,s){s&&s.pendingBranch?au(d)?s.effects.push(...d):s.effects.push(d):eY(d)}const Pu=Symbol.for("v-fgt"),R4=Symbol.for("v-txt"),Yp=Symbol.for("v-cmt"),X5=Symbol.for("v-stc"),S2=[];let $0=null;function _i(d=!1){S2.push($0=d?null:[])}function WY(){S2.pop(),$0=S2[S2.length-1]||null}let N2=1;function XC(d,s=!1){N2+=d,d<0&&$0&&s&&($0.hasOnce=!0)}function Nz(d){return d.dynamicChildren=N2>0?$0||s_:null,WY(),N2>0&&$0&&$0.push(d),d}function zi(d,s,E,B,K,pt){return Nz(Ee(d,s,E,B,K,pt,!0))}function Z0(d,s,E,B,K){return Nz(Wl(d,s,E,B,K,!0))}function j2(d){return d?d.__v_isVNode===!0:!1}function vy(d,s){return d.type===s.type&&d.key===s.key}const jz=({key:d})=>d??null,J5=({ref:d,ref_key:s,ref_for:E})=>(typeof d=="number"&&(d=""+d),d!=null?sd(d)||jd(d)||Vu(d)?{i:Op,r:d,k:s,f:!!E}:d:null);function Ee(d,s=null,E=null,B=0,K=null,pt=d===Pu?0:1,_t=!1,Ot=!1){const jt={__v_isVNode:!0,__v_skip:!0,type:d,props:s,key:s&&jz(s),ref:s&&J5(s),scopeId:oz,slotScopeIds:null,children:E,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:pt,patchFlag:B,dynamicProps:K,dynamicChildren:null,appContext:null,ctx:Op};return Ot?(nM(jt,E),pt&128&&d.normalize(jt)):E&&(jt.shapeFlag|=sd(E)?8:16),N2>0&&!_t&&$0&&(jt.patchFlag>0||pt&6)&&jt.patchFlag!==32&&$0.push(jt),jt}const Wl=qY;function qY(d,s=null,E=null,B=0,K=null,pt=!1){if((!d||d===_z)&&(d=Yp),j2(d)){const Ot=y1(d,s,!0);return E&&nM(Ot,E),N2>0&&!pt&&$0&&(Ot.shapeFlag&6?$0[$0.indexOf(d)]=Ot:$0.push(Ot)),Ot.patchFlag=-2,Ot}if(rK(d)&&(d=d.__vccOpts),s){s=$Y(s);let{class:Ot,style:jt}=s;Ot&&!sd(Ot)&&(s.class=jo(Ot)),gf(jt)&&(GA(jt)&&!au(jt)&&(jt=ap({},jt)),s.style=hm(jt))}const _t=sd(d)?1:Bz(d)?128:lz(d)?64:gf(d)?4:Vu(d)?2:0;return Ee(d,s,E,B,K,_t,pt,!0)}function $Y(d){return d?GA(d)||Ez(d)?ap({},d):d:null}function y1(d,s,E=!1,B=!1){const{props:K,ref:pt,patchFlag:_t,children:Ot,transition:jt}=d,te=s?ZY(K||{},s):K,he={__v_isVNode:!0,__v_skip:!0,type:d.type,props:te,key:te&&jz(te),ref:s&&s.ref?E&&pt?au(pt)?pt.concat(J5(s)):[pt,J5(s)]:J5(s):pt,scopeId:d.scopeId,slotScopeIds:d.slotScopeIds,children:Ot,target:d.target,targetStart:d.targetStart,targetAnchor:d.targetAnchor,staticCount:d.staticCount,shapeFlag:d.shapeFlag,patchFlag:s&&d.type!==Pu?_t===-1?16:_t|16:_t,dynamicProps:d.dynamicProps,dynamicChildren:d.dynamicChildren,appContext:d.appContext,dirs:d.dirs,transition:jt,component:d.component,suspense:d.suspense,ssContent:d.ssContent&&y1(d.ssContent),ssFallback:d.ssFallback&&y1(d.ssFallback),placeholder:d.placeholder,el:d.el,anchor:d.anchor,ctx:d.ctx,ce:d.ce};return jt&&B&&Sy(he,jt.clone(he)),he}function Qu(d=" ",s=0){return Wl(R4,null,d,s)}function $f(d,s){const E=Wl(X5,null,d);return E.staticCount=s,E}function is(d="",s=!1){return s?(_i(),Z0(Yp,null,d)):Wl(Yp,null,d)}function cg(d){return d==null||typeof d=="boolean"?Wl(Yp):au(d)?Wl(Pu,null,d.slice()):j2(d)?o1(d):Wl(R4,null,String(d))}function o1(d){return d.el===null&&d.patchFlag!==-1||d.memo?d:y1(d)}function nM(d,s){let E=0;const{shapeFlag:B}=d;if(s==null)s=null;else if(au(s))E=16;else if(typeof s=="object")if(B&65){const K=s.default;K&&(K._c&&(K._d=!1),nM(d,K()),K._c&&(K._d=!0));return}else{E=32;const K=s._;!K&&!Ez(s)?s._ctx=Op:K===3&&Op&&(Op.slots._===1?s._=1:(s._=2,d.patchFlag|=1024))}else Vu(s)?(s={default:s,_ctx:Op},E=32):(s=String(s),B&64?(E=16,s=[Qu(s)]):E=8);d.children=s,d.shapeFlag|=E}function ZY(...d){const s={};for(let E=0;EKp||Op;let p4,hA;{const d=P4(),s=(E,B)=>{let K;return(K=d[E])||(K=d[E]=[]),K.push(B),pt=>{K.length>1?K.forEach(_t=>_t(pt)):K[0](pt)}};p4=s("__VUE_INSTANCE_SETTERS__",E=>Kp=E),hA=s("__VUE_SSR_SETTERS__",E=>U2=E)}const rw=d=>{const s=Kp;return p4(d),d.scope.on(),()=>{d.scope.off(),p4(s)}},JC=()=>{Kp&&Kp.scope.off(),p4(null)};function Uz(d){return d.vnode.shapeFlag&4}let U2=!1;function XY(d,s=!1,E=!1){s&&hA(s);const{props:B,children:K}=d.vnode,pt=Uz(d);TY(d,B,pt,s),EY(d,K,E||s);const _t=pt?JY(d,s):void 0;return s&&hA(!1),_t}function JY(d,s){const E=d.type;d.accessCache=Object.create(null),d.proxy=new Proxy(d.ctx,mY);const{setup:B}=E;if(B){av();const K=d.setupContext=B.length>1?tK(d):null,pt=rw(d),_t=tw(B,d,0,[d.props,K]),Ot=CI(_t);if(ov(),pt(),(Ot||d.sp)&&!c_(d)&&gz(d),Ot){if(_t.then(JC,JC),s)return _t.then(jt=>{QC(d,jt)}).catch(jt=>{z4(jt,d,0)});d.asyncDep=_t}else QC(d,_t)}else Vz(d)}function QC(d,s,E){Vu(s)?d.type.__ssrInlineRender?d.ssrRender=s:d.render=s:gf(s)&&(d.setupState=ez(s)),Vz(d)}function Vz(d,s,E){const B=d.type;d.render||(d.render=B.render||dg);{const K=rw(d);av();try{gY(d)}finally{ov(),K()}}}const QY={get(d,s){return Zp(d,"get",""),d[s]}};function tK(d){const s=E=>{d.exposed=E||{}};return{attrs:new Proxy(d.attrs,QY),slots:d.slots,emit:d.emit,expose:s}}function N4(d){return d.exposed?d.exposeProxy||(d.exposeProxy=new Proxy(ez(YA(d.exposed)),{get(s,E){if(E in s)return s[E];if(E in M2)return M2[E](d)},has(s,E){return E in s||E in M2}})):d.proxy}function eK(d,s=!0){return Vu(d)?d.displayName||d.name:d.name||s&&d.__name}function rK(d){return Vu(d)&&"__vccOpts"in d}const $o=(d,s)=>KG(d,s,U2);function iM(d,s,E){const B=arguments.length;return B===2?gf(s)&&!au(s)?j2(s)?Wl(d,null,[s]):Wl(d,s):Wl(d,null,s):(B>3?E=Array.prototype.slice.call(arguments,2):B===3&&j2(E)&&(E=[E]),Wl(d,s,E))}const nK="3.5.18";/** +**/function tw(d,s,E,R){try{return R?d(...R):d()}catch(Y){D4(Y,s,E)}}function Lm(d,s,E,R){if(Vu(d)){const Y=tw(d,s,E,R);return Y&&II(Y)&&Y.catch(dt=>{D4(dt,s,E)}),Y}if(au(d)){const Y=[];for(let dt=0;dt>>1,Y=f0[R],dt=B2(Y);dt=B2(E)?f0.push(d):f0.splice(yY(s),0,d),d.flags|=1,oz()}}function oz(){h4||(h4=az.then(lz))}function xY(d){au(d)?c_.push(...d):o1&&d.id===-1?o1.splice(o_+1,0,d):d.flags&1||(c_.push(d),d.flags|=1),oz()}function NC(d,s,E=ug+1){for(;EB2(E)-B2(R));if(c_.length=0,o1){o1.push(...s);return}for(o1=s,o_=0;o_d.id==null?d.flags&2?-1:1/0:d.id;function lz(d){try{for(ug=0;ug{R._d&&QC(-1);const dt=f4(s);let _t;try{_t=d(...Y)}finally{f4(dt),R._d&&QC(1)}return _t};return R._n=!0,R._c=!0,R._d=!0,R}function Gp(d,s){if(Op===null)return d;const E=U4(Op),R=d.dirs||(d.dirs=[]);for(let Y=0;Yd.__isTeleport,T2=d=>d&&(d.disabled||d.disabled===""),jC=d=>d&&(d.defer||d.defer===""),UC=d=>typeof SVGElement<"u"&&d instanceof SVGElement,VC=d=>typeof MathMLElement=="function"&&d instanceof MathMLElement,uA=(d,s)=>{const E=d&&d.to;return ld(E)?s?s(E):null:E},fz={name:"Teleport",__isTeleport:!0,process(d,s,E,R,Y,dt,_t,zt,jt,te){const{mc:ce,pc:Ie,pbc:Je,o:{insert:fr,querySelector:Ar,createText:kr,createComment:Vr}}=te,fn=T2(s.props);let{shapeFlag:Dt,children:cn,dynamicChildren:ti}=s;if(d==null){const Dn=s.el=kr(""),ii=s.anchor=kr("");fr(Dn,E,R),fr(ii,E,R);const Vi=(Wr,Bi)=>{Dt&16&&(Y&&Y.isCE&&(Y.ce._teleportTarget=Wr),ce(cn,Wr,Bi,Y,dt,_t,zt,jt))},Nn=()=>{const Wr=s.target=uA(s.props,Ar),Bi=dz(Wr,s,kr,fr);Wr&&(_t!=="svg"&&UC(Wr)?_t="svg":_t!=="mathml"&&VC(Wr)&&(_t="mathml"),fn||(Vi(Wr,Bi),K5(s,!1)))};fn&&(Vi(E,ii),K5(s,!0)),jC(s.props)?(s.el.__isMounted=!1,c0(()=>{Nn(),delete s.el.__isMounted},dt)):Nn()}else{if(jC(s.props)&&d.el.__isMounted===!1){c0(()=>{fz.process(d,s,E,R,Y,dt,_t,zt,jt,te)},dt);return}s.el=d.el,s.targetStart=d.targetStart;const Dn=s.anchor=d.anchor,ii=s.target=d.target,Vi=s.targetAnchor=d.targetAnchor,Nn=T2(d.props),Wr=Nn?E:ii,Bi=Nn?Dn:Vi;if(_t==="svg"||UC(ii)?_t="svg":(_t==="mathml"||VC(ii))&&(_t="mathml"),ti?(Je(d.dynamicChildren,ti,Wr,Y,dt,_t,zt),iM(d,s,!0)):jt||Ie(d,s,Wr,Bi,Y,dt,_t,zt,!1),fn)Nn?s.props&&d.props&&s.props.to!==d.props.to&&(s.props.to=d.props.to):L5(s,E,Dn,te,1);else if((s.props&&s.props.to)!==(d.props&&d.props.to)){const Ri=s.target=uA(s.props,Ar);Ri&&L5(s,Ri,null,te,0)}else Nn&&L5(s,ii,Vi,te,1);K5(s,fn)}},remove(d,s,E,{um:R,o:{remove:Y}},dt){const{shapeFlag:_t,children:zt,anchor:jt,targetStart:te,targetAnchor:ce,target:Ie,props:Je}=d;if(Ie&&(Y(te),Y(ce)),dt&&Y(jt),_t&16){const fr=dt||!T2(Je);for(let Ar=0;Ar{d.isMounted=!0}),zm(()=>{d.isUnmounting=!0}),d}const am=[Function,Array],mz={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:am,onEnter:am,onAfterEnter:am,onEnterCancelled:am,onBeforeLeave:am,onLeave:am,onAfterLeave:am,onLeaveCancelled:am,onBeforeAppear:am,onAppear:am,onAfterAppear:am,onAppearCancelled:am},gz=d=>{const s=d.subTree;return s.component?gz(s.component):s},bY={name:"BaseTransition",props:mz,setup(d,{slots:s}){const E=j4(),R=pz();return()=>{const Y=s.default&&tM(s.default(),!0);if(!Y||!Y.length)return;const dt=vz(Y),_t=Eu(d),{mode:zt}=_t;if(R.isLeaving)return T8(dt);const jt=HC(dt);if(!jt)return T8(dt);let te=R2(jt,_t,R,E,Ie=>te=Ie);jt.type!==Yp&&Cy(jt,te);let ce=E.subTree&&HC(E.subTree);if(ce&&ce.type!==Yp&&!xy(jt,ce)&&gz(E).type!==Yp){let Ie=R2(ce,_t,R,E);if(Cy(ce,Ie),zt==="out-in"&&jt.type!==Yp)return R.isLeaving=!0,Ie.afterLeave=()=>{R.isLeaving=!1,E.job.flags&8||E.update(),delete Ie.afterLeave,ce=void 0},T8(dt);zt==="in-out"&&jt.type!==Yp?Ie.delayLeave=(Je,fr,Ar)=>{const kr=yz(R,ce);kr[String(ce.key)]=ce,Je[s1]=()=>{fr(),Je[s1]=void 0,delete te.delayedLeave,ce=void 0},te.delayedLeave=()=>{Ar(),delete te.delayedLeave,ce=void 0}}:ce=void 0}else ce&&(ce=void 0);return dt}}};function vz(d){let s=d[0];if(d.length>1){for(const E of d)if(E.type!==Yp){s=E;break}}return s}const wY=bY;function yz(d,s){const{leavingVNodes:E}=d;let R=E.get(s.type);return R||(R=Object.create(null),E.set(s.type,R)),R}function R2(d,s,E,R,Y){const{appear:dt,mode:_t,persisted:zt=!1,onBeforeEnter:jt,onEnter:te,onAfterEnter:ce,onEnterCancelled:Ie,onBeforeLeave:Je,onLeave:fr,onAfterLeave:Ar,onLeaveCancelled:kr,onBeforeAppear:Vr,onAppear:fn,onAfterAppear:Dt,onAppearCancelled:cn}=s,ti=String(d.key),Dn=yz(E,d),ii=(Wr,Bi)=>{Wr&&Lm(Wr,R,9,Bi)},Vi=(Wr,Bi)=>{const Ri=Bi[1];ii(Wr,Bi),au(Wr)?Wr.every(Li=>Li.length<=1)&&Ri():Wr.length<=1&&Ri()},Nn={mode:_t,persisted:zt,beforeEnter(Wr){let Bi=jt;if(!E.isMounted)if(dt)Bi=Vr||jt;else return;Wr[s1]&&Wr[s1](!0);const Ri=Dn[ti];Ri&&xy(d,Ri)&&Ri.el[s1]&&Ri.el[s1](),ii(Bi,[Wr])},enter(Wr){let Bi=te,Ri=ce,Li=Ie;if(!E.isMounted)if(dt)Bi=fn||te,Ri=Dt||ce,Li=cn||Ie;else return;let $n=!1;const Hn=Wr[P5]=sa=>{$n||($n=!0,sa?ii(Li,[Wr]):ii(Ri,[Wr]),Nn.delayedLeave&&Nn.delayedLeave(),Wr[P5]=void 0)};Bi?Vi(Bi,[Wr,Hn]):Hn()},leave(Wr,Bi){const Ri=String(d.key);if(Wr[P5]&&Wr[P5](!0),E.isUnmounting)return Bi();ii(Je,[Wr]);let Li=!1;const $n=Wr[s1]=Hn=>{Li||(Li=!0,Bi(),Hn?ii(kr,[Wr]):ii(Ar,[Wr]),Wr[s1]=void 0,Dn[Ri]===d&&delete Dn[Ri])};Dn[Ri]=d,fr?Vi(fr,[Wr,$n]):$n()},clone(Wr){const Bi=R2(Wr,s,E,R,Y);return Y&&Y(Bi),Bi}};return Nn}function T8(d){if(F4(d))return d=_1(d),d.children=null,d}function HC(d){if(!F4(d))return hz(d.type)&&d.children?vz(d.children):d;if(d.component)return d.component.subTree;const{shapeFlag:s,children:E}=d;if(E){if(s&16)return E[0];if(s&32&&Vu(E.default))return E.default()}}function Cy(d,s){d.shapeFlag&6&&d.component?(d.transition=s,Cy(d.component.subTree,s)):d.shapeFlag&128?(d.ssContent.transition=s.clone(d.ssContent),d.ssFallback.transition=s.clone(d.ssFallback)):d.transition=s}function tM(d,s=!1,E){let R=[],Y=0;for(let dt=0;dt1)for(let dt=0;dtA2(Ar,s&&(au(s)?s[kr]:s),E,R,Y));return}if(h_(R)&&!Y){R.shapeFlag&512&&R.type.__asyncResolved&&R.component.subTree.component&&A2(d,s,E,R.component.subTree);return}const dt=R.shapeFlag&4?U4(R.component):R.el,_t=Y?null:dt,{i:zt,r:jt}=d,te=s&&s.r,ce=zt.refs===mf?zt.refs={}:zt.refs,Ie=zt.setupState,Je=Eu(Ie),fr=Ie===mf?()=>!1:Ar=>Rh(Je,Ar);if(te!=null&&te!==jt&&(ld(te)?(ce[te]=null,fr(te)&&(Ie[te]=null)):jd(te)&&(te.value=null)),Vu(jt))tw(jt,zt,12,[_t,ce]);else{const Ar=ld(jt),kr=jd(jt);if(Ar||kr){const Vr=()=>{if(d.f){const fn=Ar?fr(jt)?Ie[jt]:ce[jt]:jt.value;Y?au(fn)&&VA(fn,dt):au(fn)?fn.includes(dt)||fn.push(dt):Ar?(ce[jt]=[dt],fr(jt)&&(Ie[jt]=ce[jt])):(jt.value=[dt],d.k&&(ce[d.k]=jt.value))}else Ar?(ce[jt]=_t,fr(jt)&&(Ie[jt]=_t)):kr&&(jt.value=_t,d.k&&(ce[d.k]=_t))};_t?(Vr.id=-1,c0(Vr,E)):Vr()}}}z4().requestIdleCallback;z4().cancelIdleCallback;const h_=d=>!!d.type.__asyncLoader,F4=d=>d.type.__isKeepAlive;function kY(d,s){_z(d,"a",s)}function TY(d,s){_z(d,"da",s)}function _z(d,s,E=Kp){const R=d.__wdc||(d.__wdc=()=>{let Y=E;for(;Y;){if(Y.isDeactivated)return;Y=Y.parent}return d()});if(B4(s,R,E),E){let Y=E.parent;for(;Y&&Y.parent;)F4(Y.parent.vnode)&&AY(R,s,E,Y),Y=Y.parent}}function AY(d,s,E,R){const Y=B4(s,d,R,!0);Oy(()=>{VA(R[s],Y)},E)}function B4(d,s,E=Kp,R=!1){if(E){const Y=E[d]||(E[d]=[]),dt=s.__weh||(s.__weh=(..._t)=>{sv();const zt=rw(E),jt=Lm(s,E,d,_t);return zt(),lv(),jt});return R?Y.unshift(dt):Y.push(dt),dt}}const uv=d=>(s,E=Kp)=>{(!U2||d==="sp")&&B4(d,(...R)=>s(...R),E)},MY=uv("bm"),op=uv("m"),SY=uv("bu"),bz=uv("u"),zm=uv("bum"),Oy=uv("um"),EY=uv("sp"),CY=uv("rtg"),LY=uv("rtc");function PY(d,s=Kp){B4("ec",d,s)}const wz="components";function eM(d,s){return Tz(wz,d,!0,s)||d}const kz=Symbol.for("v-ndc");function d4(d){return ld(d)?Tz(wz,d,!1)||d:d||kz}function Tz(d,s,E=!0,R=!1){const Y=Op||Kp;if(Y){const dt=Y.type;{const zt=xK(dt,!1);if(zt&&(zt===s||zt===cm(s)||zt===I4(cm(s))))return dt}const _t=WC(Y[d]||dt[d],s)||WC(Y.appContext[d],s);return!_t&&R?dt:_t}}function WC(d,s){return d&&(d[s]||d[cm(s)]||d[I4(cm(s))])}function Mh(d,s,E,R){let Y;const dt=E,_t=au(d);if(_t||ld(d)){const zt=_t&&v1(d);let jt=!1,te=!1;zt&&(jt=!lm(d),te=x1(d),d=O4(d)),Y=new Array(d.length);for(let ce=0,Ie=d.length;ces(zt,jt,void 0,dt));else{const zt=Object.keys(d);Y=new Array(zt.length);for(let jt=0,te=zt.length;jtj2(s)?!(s.type===Yp||s.type===_u&&!Az(s.children)):!0)?d:null}const cA=d=>d?Wz(d)?U4(d):cA(d.parent):null,M2=ap(Object.create(null),{$:d=>d,$el:d=>d.vnode.el,$data:d=>d.data,$props:d=>d.props,$attrs:d=>d.attrs,$slots:d=>d.slots,$refs:d=>d.refs,$parent:d=>cA(d.parent),$root:d=>cA(d.root),$host:d=>d.ce,$emit:d=>d.emit,$options:d=>Sz(d),$forceUpdate:d=>d.f||(d.f=()=>{JA(d.update)}),$nextTick:d=>d.n||(d.n=S0.bind(d.proxy)),$watch:d=>tK.bind(d)}),A8=(d,s)=>d!==mf&&!d.__isScriptSetup&&Rh(d,s),zY={get({_:d},s){if(s==="__v_skip")return!0;const{ctx:E,setupState:R,data:Y,props:dt,accessCache:_t,type:zt,appContext:jt}=d;let te;if(s[0]!=="$"){const fr=_t[s];if(fr!==void 0)switch(fr){case 1:return R[s];case 2:return Y[s];case 4:return E[s];case 3:return dt[s]}else{if(A8(R,s))return _t[s]=1,R[s];if(Y!==mf&&Rh(Y,s))return _t[s]=2,Y[s];if((te=d.propsOptions[0])&&Rh(te,s))return _t[s]=3,dt[s];if(E!==mf&&Rh(E,s))return _t[s]=4,E[s];hA&&(_t[s]=0)}}const ce=M2[s];let Ie,Je;if(ce)return s==="$attrs"&&Zp(d.attrs,"get",""),ce(d);if((Ie=zt.__cssModules)&&(Ie=Ie[s]))return Ie;if(E!==mf&&Rh(E,s))return _t[s]=4,E[s];if(Je=jt.config.globalProperties,Rh(Je,s))return Je[s]},set({_:d},s,E){const{data:R,setupState:Y,ctx:dt}=d;return A8(Y,s)?(Y[s]=E,!0):R!==mf&&Rh(R,s)?(R[s]=E,!0):Rh(d.props,s)||s[0]==="$"&&s.slice(1)in d?!1:(dt[s]=E,!0)},has({_:{data:d,setupState:s,accessCache:E,ctx:R,appContext:Y,propsOptions:dt}},_t){let zt;return!!E[_t]||d!==mf&&Rh(d,_t)||A8(s,_t)||(zt=dt[0])&&Rh(zt,_t)||Rh(R,_t)||Rh(M2,_t)||Rh(Y.config.globalProperties,_t)},defineProperty(d,s,E){return E.get!=null?d._.accessCache[s]=0:Rh(E,"value")&&this.set(d,s,E.value,null),Reflect.defineProperty(d,s,E)}};function qC(d){return au(d)?d.reduce((s,E)=>(s[E]=null,s),{}):d}let hA=!0;function OY(d){const s=Sz(d),E=d.proxy,R=d.ctx;hA=!1,s.beforeCreate&&$C(s.beforeCreate,d,"bc");const{data:Y,computed:dt,methods:_t,watch:zt,provide:jt,inject:te,created:ce,beforeMount:Ie,mounted:Je,beforeUpdate:fr,updated:Ar,activated:kr,deactivated:Vr,beforeDestroy:fn,beforeUnmount:Dt,destroyed:cn,unmounted:ti,render:Dn,renderTracked:ii,renderTriggered:Vi,errorCaptured:Nn,serverPrefetch:Wr,expose:Bi,inheritAttrs:Ri,components:Li,directives:$n,filters:Hn}=s;if(te&&DY(te,R,null),_t)for(const Qn in _t){const la=_t[Qn];Vu(la)&&(R[Qn]=la.bind(E))}if(Y){const Qn=Y.call(E,E);gf(Qn)&&(d.data=Ey(Qn))}if(hA=!0,dt)for(const Qn in dt){const la=dt[Qn],Eo=Vu(la)?la.bind(E,E):Vu(la.get)?la.get.bind(E,E):mg,no=!Vu(la)&&Vu(la.set)?la.set.bind(E):mg,mo=Wo({get:Eo,set:no});Object.defineProperty(R,Qn,{enumerable:!0,configurable:!0,get:()=>mo.value,set:Ts=>mo.value=Ts})}if(zt)for(const Qn in zt)Mz(zt[Qn],R,E,Qn);if(jt){const Qn=Vu(jt)?jt.call(E):jt;Reflect.ownKeys(Qn).forEach(la=>{X5(la,Qn[la])})}ce&&$C(ce,d,"c");function Ti(Qn,la){au(la)?la.forEach(Eo=>Qn(Eo.bind(E))):la&&Qn(la.bind(E))}if(Ti(MY,Ie),Ti(op,Je),Ti(SY,fr),Ti(bz,Ar),Ti(kY,kr),Ti(TY,Vr),Ti(PY,Nn),Ti(LY,ii),Ti(CY,Vi),Ti(zm,Dt),Ti(Oy,ti),Ti(EY,Wr),au(Bi))if(Bi.length){const Qn=d.exposed||(d.exposed={});Bi.forEach(la=>{Object.defineProperty(Qn,la,{get:()=>E[la],set:Eo=>E[la]=Eo,enumerable:!0})})}else d.exposed||(d.exposed={});Dn&&d.render===mg&&(d.render=Dn),Ri!=null&&(d.inheritAttrs=Ri),Li&&(d.components=Li),$n&&(d.directives=$n),Wr&&xz(d)}function DY(d,s,E=mg){au(d)&&(d=fA(d));for(const R in d){const Y=d[R];let dt;gf(Y)?"default"in Y?dt=um(Y.from||R,Y.default,!0):dt=um(Y.from||R):dt=um(Y),jd(dt)?Object.defineProperty(s,R,{enumerable:!0,configurable:!0,get:()=>dt.value,set:_t=>dt.value=_t}):s[R]=dt}}function $C(d,s,E){Lm(au(d)?d.map(R=>R.bind(s.proxy)):d.bind(s.proxy),s,E)}function Mz(d,s,E,R){let Y=R.includes(".")?Nz(E,R):()=>E[R];if(ld(d)){const dt=s[d];Vu(dt)&&Em(Y,dt)}else if(Vu(d))Em(Y,d.bind(E));else if(gf(d))if(au(d))d.forEach(dt=>Mz(dt,s,E,R));else{const dt=Vu(d.handler)?d.handler.bind(E):s[d.handler];Vu(dt)&&Em(Y,dt,d)}}function Sz(d){const s=d.type,{mixins:E,extends:R}=s,{mixins:Y,optionsCache:dt,config:{optionMergeStrategies:_t}}=d.appContext,zt=dt.get(s);let jt;return zt?jt=zt:!Y.length&&!E&&!R?jt=s:(jt={},Y.length&&Y.forEach(te=>p4(jt,te,_t,!0)),p4(jt,s,_t)),gf(s)&&dt.set(s,jt),jt}function p4(d,s,E,R=!1){const{mixins:Y,extends:dt}=s;dt&&p4(d,dt,E,!0),Y&&Y.forEach(_t=>p4(d,_t,E,!0));for(const _t in s)if(!(R&&_t==="expose")){const zt=FY[_t]||E&&E[_t];d[_t]=zt?zt(d[_t],s[_t]):s[_t]}return d}const FY={data:ZC,props:GC,emits:GC,methods:g2,computed:g2,beforeCreate:u0,created:u0,beforeMount:u0,mounted:u0,beforeUpdate:u0,updated:u0,beforeDestroy:u0,beforeUnmount:u0,destroyed:u0,unmounted:u0,activated:u0,deactivated:u0,errorCaptured:u0,serverPrefetch:u0,components:g2,directives:g2,watch:RY,provide:ZC,inject:BY};function ZC(d,s){return s?d?function(){return ap(Vu(d)?d.call(this,this):d,Vu(s)?s.call(this,this):s)}:s:d}function BY(d,s){return g2(fA(d),fA(s))}function fA(d){if(au(d)){const s={};for(let E=0;E1)return E&&Vu(s)?s.call(R&&R.proxy):s}}function UY(){return!!(j4()||Ay)}const Cz={},Lz=()=>Object.create(Cz),Pz=d=>Object.getPrototypeOf(d)===Cz;function VY(d,s,E,R=!1){const Y={},dt=Lz();d.propsDefaults=Object.create(null),Iz(d,s,Y,dt);for(const _t in d.propsOptions[0])_t in Y||(Y[_t]=void 0);E?d.props=R?Y:ez(Y):d.type.props?d.props=Y:d.props=dt,d.attrs=dt}function HY(d,s,E,R){const{props:Y,attrs:dt,vnode:{patchFlag:_t}}=d,zt=Eu(Y),[jt]=d.propsOptions;let te=!1;if((R||_t>0)&&!(_t&16)){if(_t&8){const ce=d.vnode.dynamicProps;for(let Ie=0;Ie{jt=!0;const[Je,fr]=zz(Ie,s,!0);ap(_t,Je),fr&&zt.push(...fr)};!E&&s.mixins.length&&s.mixins.forEach(ce),d.extends&&ce(d.extends),d.mixins&&d.mixins.forEach(ce)}if(!dt&&!jt)return gf(d)&&R.set(d,l_),l_;if(au(dt))for(let ce=0;ced==="_"||d==="__"||d==="_ctx"||d==="$stable",nM=d=>au(d)?d.map(hg):[hg(d)],qY=(d,s,E)=>{if(s._n)return s;const R=ew((...Y)=>nM(s(...Y)),E);return R._c=!1,R},Oz=(d,s,E)=>{const R=d._ctx;for(const Y in d){if(rM(Y))continue;const dt=d[Y];if(Vu(dt))s[Y]=qY(Y,dt,R);else if(dt!=null){const _t=nM(dt);s[Y]=()=>_t}}},Dz=(d,s)=>{const E=nM(s);d.slots.default=()=>E},Fz=(d,s,E)=>{for(const R in s)(E||!rM(R))&&(d[R]=s[R])},$Y=(d,s,E)=>{const R=d.slots=Lz();if(d.vnode.shapeFlag&32){const Y=s.__;Y&&aA(R,"__",Y,!0);const dt=s._;dt?(Fz(R,s,E),E&&aA(R,"_",dt,!0)):Oz(s,R)}else s&&Dz(d,s)},ZY=(d,s,E)=>{const{vnode:R,slots:Y}=d;let dt=!0,_t=mf;if(R.shapeFlag&32){const zt=s._;zt?E&&zt===1?dt=!1:Fz(Y,s,E):(dt=!s.$stable,Oz(s,Y)),_t=s}else s&&(Dz(d,s),_t={default:1});if(dt)for(const zt in Y)!rM(zt)&&_t[zt]==null&&delete Y[zt]},c0=sK;function GY(d){return YY(d)}function YY(d,s){const E=z4();E.__VUE__=!0;const{insert:R,remove:Y,patchProp:dt,createElement:_t,createText:zt,createComment:jt,setText:te,setElementText:ce,parentNode:Ie,nextSibling:Je,setScopeId:fr=mg,insertStaticContent:Ar}=d,kr=(_i,Ai,pi,go=null,Mo=null,To=null,ms=void 0,bs=null,as=!!Ai.dynamicChildren)=>{if(_i===Ai)return;_i&&!xy(_i,Ai)&&(go=ma(_i),Ts(_i,Mo,To,!0),_i=null),Ai.patchFlag===-2&&(as=!1,Ai.dynamicChildren=null);const{type:Ko,ref:Dl,shapeFlag:Ns}=Ai;switch(Ko){case N4:Vr(_i,Ai,pi,go);break;case Yp:fn(_i,Ai,pi,go);break;case J5:_i==null&&Dt(Ai,pi,go,ms);break;case _u:Li(_i,Ai,pi,go,Mo,To,ms,bs,as);break;default:Ns&1?Dn(_i,Ai,pi,go,Mo,To,ms,bs,as):Ns&6?$n(_i,Ai,pi,go,Mo,To,ms,bs,as):(Ns&64||Ns&128)&&Ko.process(_i,Ai,pi,go,Mo,To,ms,bs,as,us)}Dl!=null&&Mo?A2(Dl,_i&&_i.ref,To,Ai||_i,!Ai):Dl==null&&_i&&_i.ref!=null&&A2(_i.ref,null,To,_i,!0)},Vr=(_i,Ai,pi,go)=>{if(_i==null)R(Ai.el=zt(Ai.children),pi,go);else{const Mo=Ai.el=_i.el;Ai.children!==_i.children&&te(Mo,Ai.children)}},fn=(_i,Ai,pi,go)=>{_i==null?R(Ai.el=jt(Ai.children||""),pi,go):Ai.el=_i.el},Dt=(_i,Ai,pi,go)=>{[_i.el,_i.anchor]=Ar(_i.children,Ai,pi,go,_i.el,_i.anchor)},cn=({el:_i,anchor:Ai},pi,go)=>{let Mo;for(;_i&&_i!==Ai;)Mo=Je(_i),R(_i,pi,go),_i=Mo;R(Ai,pi,go)},ti=({el:_i,anchor:Ai})=>{let pi;for(;_i&&_i!==Ai;)pi=Je(_i),Y(_i),_i=pi;Y(Ai)},Dn=(_i,Ai,pi,go,Mo,To,ms,bs,as)=>{Ai.type==="svg"?ms="svg":Ai.type==="math"&&(ms="mathml"),_i==null?ii(Ai,pi,go,Mo,To,ms,bs,as):Wr(_i,Ai,Mo,To,ms,bs,as)},ii=(_i,Ai,pi,go,Mo,To,ms,bs)=>{let as,Ko;const{props:Dl,shapeFlag:Ns,transition:Nl,dirs:vu}=_i;if(as=_i.el=_t(_i.type,To,Dl&&Dl.is,Dl),Ns&8?ce(as,_i.children):Ns&16&&Nn(_i.children,as,null,go,Mo,M8(_i,To),ms,bs),vu&&sy(_i,null,go,"created"),Vi(as,_i,_i.scopeId,ms,go),Dl){for(const dh in Dl)dh!=="value"&&!b2(dh)&&dt(as,dh,null,Dl[dh],To,go);"value"in Dl&&dt(as,"value",null,Dl.value,To),(Ko=Dl.onVnodeBeforeMount)&&ig(Ko,go,_i)}vu&&sy(_i,null,go,"beforeMount");const tc=KY(Mo,Nl);tc&&Nl.beforeEnter(as),R(as,Ai,pi),((Ko=Dl&&Dl.onVnodeMounted)||tc||vu)&&c0(()=>{Ko&&ig(Ko,go,_i),tc&&Nl.enter(as),vu&&sy(_i,null,go,"mounted")},Mo)},Vi=(_i,Ai,pi,go,Mo)=>{if(pi&&fr(_i,pi),go)for(let To=0;To{for(let Ko=as;Ko<_i.length;Ko++){const Dl=_i[Ko]=bs?l1(_i[Ko]):hg(_i[Ko]);kr(null,Dl,Ai,pi,go,Mo,To,ms,bs)}},Wr=(_i,Ai,pi,go,Mo,To,ms)=>{const bs=Ai.el=_i.el;let{patchFlag:as,dynamicChildren:Ko,dirs:Dl}=Ai;as|=_i.patchFlag&16;const Ns=_i.props||mf,Nl=Ai.props||mf;let vu;if(pi&&ly(pi,!1),(vu=Nl.onVnodeBeforeUpdate)&&ig(vu,pi,Ai,_i),Dl&&sy(Ai,_i,pi,"beforeUpdate"),pi&&ly(pi,!0),(Ns.innerHTML&&Nl.innerHTML==null||Ns.textContent&&Nl.textContent==null)&&ce(bs,""),Ko?Bi(_i.dynamicChildren,Ko,bs,pi,go,M8(Ai,Mo),To):ms||la(_i,Ai,bs,null,pi,go,M8(Ai,Mo),To,!1),as>0){if(as&16)Ri(bs,Ns,Nl,pi,Mo);else if(as&2&&Ns.class!==Nl.class&&dt(bs,"class",null,Nl.class,Mo),as&4&&dt(bs,"style",Ns.style,Nl.style,Mo),as&8){const tc=Ai.dynamicProps;for(let dh=0;dh{vu&&ig(vu,pi,Ai,_i),Dl&&sy(Ai,_i,pi,"updated")},go)},Bi=(_i,Ai,pi,go,Mo,To,ms)=>{for(let bs=0;bs{if(Ai!==pi){if(Ai!==mf)for(const To in Ai)!b2(To)&&!(To in pi)&&dt(_i,To,Ai[To],null,Mo,go);for(const To in pi){if(b2(To))continue;const ms=pi[To],bs=Ai[To];ms!==bs&&To!=="value"&&dt(_i,To,bs,ms,Mo,go)}"value"in pi&&dt(_i,"value",Ai.value,pi.value,Mo)}},Li=(_i,Ai,pi,go,Mo,To,ms,bs,as)=>{const Ko=Ai.el=_i?_i.el:zt(""),Dl=Ai.anchor=_i?_i.anchor:zt("");let{patchFlag:Ns,dynamicChildren:Nl,slotScopeIds:vu}=Ai;vu&&(bs=bs?bs.concat(vu):vu),_i==null?(R(Ko,pi,go),R(Dl,pi,go),Nn(Ai.children||[],pi,Dl,Mo,To,ms,bs,as)):Ns>0&&Ns&64&&Nl&&_i.dynamicChildren?(Bi(_i.dynamicChildren,Nl,pi,Mo,To,ms,bs),(Ai.key!=null||Mo&&Ai===Mo.subTree)&&iM(_i,Ai,!0)):la(_i,Ai,pi,Dl,Mo,To,ms,bs,as)},$n=(_i,Ai,pi,go,Mo,To,ms,bs,as)=>{Ai.slotScopeIds=bs,_i==null?Ai.shapeFlag&512?Mo.ctx.activate(Ai,pi,go,ms,as):Hn(Ai,pi,go,Mo,To,ms,as):sa(_i,Ai,as)},Hn=(_i,Ai,pi,go,Mo,To,ms)=>{const bs=_i.component=pK(_i,go,Mo);if(F4(_i)&&(bs.ctx.renderer=us),mK(bs,!1,ms),bs.asyncDep){if(Mo&&Mo.registerDep(bs,Ti,ms),!_i.el){const as=bs.subTree=El(Yp);fn(null,as,Ai,pi),_i.placeholder=as.el}}else Ti(bs,_i,Ai,pi,Mo,To,ms)},sa=(_i,Ai,pi)=>{const go=Ai.component=_i.component;if(aK(_i,Ai,pi))if(go.asyncDep&&!go.asyncResolved){Qn(go,Ai,pi);return}else go.next=Ai,go.update();else Ai.el=_i.el,go.vnode=Ai},Ti=(_i,Ai,pi,go,Mo,To,ms)=>{const bs=()=>{if(_i.isMounted){let{next:Ns,bu:Nl,u:vu,parent:tc,vnode:dh}=_i;{const d0=Bz(_i);if(d0){Ns&&(Ns.el=dh.el,Qn(_i,Ns,ms)),d0.asyncDep.then(()=>{_i.isUnmounted||bs()});return}}let Fc=Ns,sp;ly(_i,!1),Ns?(Ns.el=dh.el,Qn(_i,Ns,ms)):Ns=dh,Nl&&Y5(Nl),(sp=Ns.props&&Ns.props.onVnodeBeforeUpdate)&&ig(sp,tc,Ns,dh),ly(_i,!0);const Kd=XC(_i),e0=_i.subTree;_i.subTree=Kd,kr(e0,Kd,Ie(e0.el),ma(e0),_i,Mo,To),Ns.el=Kd.el,Fc===null&&oK(_i,Kd.el),vu&&c0(vu,Mo),(sp=Ns.props&&Ns.props.onVnodeUpdated)&&c0(()=>ig(sp,tc,Ns,dh),Mo)}else{let Ns;const{el:Nl,props:vu}=Ai,{bm:tc,m:dh,parent:Fc,root:sp,type:Kd}=_i,e0=h_(Ai);ly(_i,!1),tc&&Y5(tc),!e0&&(Ns=vu&&vu.onVnodeBeforeMount)&&ig(Ns,Fc,Ai),ly(_i,!0);{sp.ce&&sp.ce._def.shadowRoot!==!1&&sp.ce._injectChildStyle(Kd);const d0=_i.subTree=XC(_i);kr(null,d0,pi,go,_i,Mo,To),Ai.el=d0.el}if(dh&&c0(dh,Mo),!e0&&(Ns=vu&&vu.onVnodeMounted)){const d0=Ai;c0(()=>ig(Ns,Fc,d0),Mo)}(Ai.shapeFlag&256||Fc&&h_(Fc.vnode)&&Fc.vnode.shapeFlag&256)&&_i.a&&c0(_i.a,Mo),_i.isMounted=!0,Ai=pi=go=null}};_i.scope.on();const as=_i.effect=new UI(bs);_i.scope.off();const Ko=_i.update=as.run.bind(as),Dl=_i.job=as.runIfDirty.bind(as);Dl.i=_i,Dl.id=_i.uid,as.scheduler=()=>JA(Dl),ly(_i,!0),Ko()},Qn=(_i,Ai,pi)=>{Ai.component=_i;const go=_i.vnode.props;_i.vnode=Ai,_i.next=null,HY(_i,Ai.props,go,pi),ZY(_i,Ai.children,pi),sv(),NC(_i),lv()},la=(_i,Ai,pi,go,Mo,To,ms,bs,as=!1)=>{const Ko=_i&&_i.children,Dl=_i?_i.shapeFlag:0,Ns=Ai.children,{patchFlag:Nl,shapeFlag:vu}=Ai;if(Nl>0){if(Nl&128){no(Ko,Ns,pi,go,Mo,To,ms,bs,as);return}else if(Nl&256){Eo(Ko,Ns,pi,go,Mo,To,ms,bs,as);return}}vu&8?(Dl&16&&Ia(Ko,Mo,To),Ns!==Ko&&ce(pi,Ns)):Dl&16?vu&16?no(Ko,Ns,pi,go,Mo,To,ms,bs,as):Ia(Ko,Mo,To,!0):(Dl&8&&ce(pi,""),vu&16&&Nn(Ns,pi,go,Mo,To,ms,bs,as))},Eo=(_i,Ai,pi,go,Mo,To,ms,bs,as)=>{_i=_i||l_,Ai=Ai||l_;const Ko=_i.length,Dl=Ai.length,Ns=Math.min(Ko,Dl);let Nl;for(Nl=0;NlDl?Ia(_i,Mo,To,!0,!1,Ns):Nn(Ai,pi,go,Mo,To,ms,bs,as,Ns)},no=(_i,Ai,pi,go,Mo,To,ms,bs,as)=>{let Ko=0;const Dl=Ai.length;let Ns=_i.length-1,Nl=Dl-1;for(;Ko<=Ns&&Ko<=Nl;){const vu=_i[Ko],tc=Ai[Ko]=as?l1(Ai[Ko]):hg(Ai[Ko]);if(xy(vu,tc))kr(vu,tc,pi,null,Mo,To,ms,bs,as);else break;Ko++}for(;Ko<=Ns&&Ko<=Nl;){const vu=_i[Ns],tc=Ai[Nl]=as?l1(Ai[Nl]):hg(Ai[Nl]);if(xy(vu,tc))kr(vu,tc,pi,null,Mo,To,ms,bs,as);else break;Ns--,Nl--}if(Ko>Ns){if(Ko<=Nl){const vu=Nl+1,tc=vuNl)for(;Ko<=Ns;)Ts(_i[Ko],Mo,To,!0),Ko++;else{const vu=Ko,tc=Ko,dh=new Map;for(Ko=tc;Ko<=Nl;Ko++){const lp=Ai[Ko]=as?l1(Ai[Ko]):hg(Ai[Ko]);lp.key!=null&&dh.set(lp.key,Ko)}let Fc,sp=0;const Kd=Nl-tc+1;let e0=!1,d0=0;const Fm=new Array(Kd);for(Ko=0;Ko=Kd){Ts(lp,Mo,To,!0);continue}let p0;if(lp.key!=null)p0=dh.get(lp.key);else for(Fc=tc;Fc<=Nl;Fc++)if(Fm[Fc-tc]===0&&xy(lp,Ai[Fc])){p0=Fc;break}p0===void 0?Ts(lp,Mo,To,!0):(Fm[p0-tc]=Ko+1,p0>=d0?d0=p0:e0=!0,kr(lp,Ai[p0],pi,null,Mo,To,ms,bs,as),sp++)}const hv=e0?XY(Fm):l_;for(Fc=hv.length-1,Ko=Kd-1;Ko>=0;Ko--){const lp=tc+Ko,p0=Ai[lp],Bm=Ai[lp+1],Ry=lp+1{const{el:To,type:ms,transition:bs,children:as,shapeFlag:Ko}=_i;if(Ko&6){mo(_i.component.subTree,Ai,pi,go);return}if(Ko&128){_i.suspense.move(Ai,pi,go);return}if(Ko&64){ms.move(_i,Ai,pi,us);return}if(ms===_u){R(To,Ai,pi);for(let Ns=0;Nsbs.enter(To),Mo);else{const{leave:Ns,delayLeave:Nl,afterLeave:vu}=bs,tc=()=>{_i.ctx.isUnmounted?Y(To):R(To,Ai,pi)},dh=()=>{Ns(To,()=>{tc(),vu&&vu()})};Nl?Nl(To,tc,dh):dh()}else R(To,Ai,pi)},Ts=(_i,Ai,pi,go=!1,Mo=!1)=>{const{type:To,props:ms,ref:bs,children:as,dynamicChildren:Ko,shapeFlag:Dl,patchFlag:Ns,dirs:Nl,cacheIndex:vu}=_i;if(Ns===-2&&(Mo=!1),bs!=null&&(sv(),A2(bs,null,pi,_i,!0),lv()),vu!=null&&(Ai.renderCache[vu]=void 0),Dl&256){Ai.ctx.deactivate(_i);return}const tc=Dl&1&&Nl,dh=!h_(_i);let Fc;if(dh&&(Fc=ms&&ms.onVnodeBeforeUnmount)&&ig(Fc,Ai,_i),Dl&6)ro(_i.component,pi,go);else{if(Dl&128){_i.suspense.unmount(pi,go);return}tc&&sy(_i,null,Ai,"beforeUnmount"),Dl&64?_i.type.remove(_i,Ai,pi,us,go):Ko&&!Ko.hasOnce&&(To!==_u||Ns>0&&Ns&64)?Ia(Ko,Ai,pi,!1,!0):(To===_u&&Ns&384||!Mo&&Dl&16)&&Ia(as,Ai,pi),go&&xl(_i)}(dh&&(Fc=ms&&ms.onVnodeUnmounted)||tc)&&c0(()=>{Fc&&ig(Fc,Ai,_i),tc&&sy(_i,null,Ai,"unmounted")},pi)},xl=_i=>{const{type:Ai,el:pi,anchor:go,transition:Mo}=_i;if(Ai===_u){ko(pi,go);return}if(Ai===J5){ti(_i);return}const To=()=>{Y(pi),Mo&&!Mo.persisted&&Mo.afterLeave&&Mo.afterLeave()};if(_i.shapeFlag&1&&Mo&&!Mo.persisted){const{leave:ms,delayLeave:bs}=Mo,as=()=>ms(pi,To);bs?bs(_i.el,To,as):as()}else To()},ko=(_i,Ai)=>{let pi;for(;_i!==Ai;)pi=Je(_i),Y(_i),_i=pi;Y(Ai)},ro=(_i,Ai,pi)=>{const{bum:go,scope:Mo,job:To,subTree:ms,um:bs,m:as,a:Ko,parent:Dl,slots:{__:Ns}}=_i;KC(as),KC(Ko),go&&Y5(go),Dl&&au(Ns)&&Ns.forEach(Nl=>{Dl.renderCache[Nl]=void 0}),Mo.stop(),To&&(To.flags|=8,Ts(ms,_i,Ai,pi)),bs&&c0(bs,Ai),c0(()=>{_i.isUnmounted=!0},Ai),Ai&&Ai.pendingBranch&&!Ai.isUnmounted&&_i.asyncDep&&!_i.asyncResolved&&_i.suspenseId===Ai.pendingId&&(Ai.deps--,Ai.deps===0&&Ai.resolve())},Ia=(_i,Ai,pi,go=!1,Mo=!1,To=0)=>{for(let ms=To;ms<_i.length;ms++)Ts(_i[ms],Ai,pi,go,Mo)},ma=_i=>{if(_i.shapeFlag&6)return ma(_i.component.subTree);if(_i.shapeFlag&128)return _i.suspense.next();const Ai=Je(_i.anchor||_i.el),pi=Ai&&Ai[cz];return pi?Je(pi):Ai};let io=!1;const po=(_i,Ai,pi)=>{_i==null?Ai._vnode&&Ts(Ai._vnode,null,null,!0):kr(Ai._vnode||null,_i,Ai,null,null,null,pi),Ai._vnode=_i,io||(io=!0,NC(),sz(),io=!1)},us={p:kr,um:Ts,m:mo,r:xl,mt:Hn,mc:Nn,pc:la,pbc:Bi,n:ma,o:d};return{render:po,hydrate:void 0,createApp:jY(po)}}function M8({type:d,props:s},E){return E==="svg"&&d==="foreignObject"||E==="mathml"&&d==="annotation-xml"&&s&&s.encoding&&s.encoding.includes("html")?void 0:E}function ly({effect:d,job:s},E){E?(d.flags|=32,s.flags|=4):(d.flags&=-33,s.flags&=-5)}function KY(d,s){return(!d||d&&!d.pendingBranch)&&s&&!s.persisted}function iM(d,s,E=!1){const R=d.children,Y=s.children;if(au(R)&&au(Y))for(let dt=0;dt>1,d[E[zt]]0&&(s[R]=E[dt-1]),E[dt]=R)}}for(dt=E.length,_t=E[dt-1];dt-- >0;)E[dt]=_t,_t=s[_t];return E}function Bz(d){const s=d.subTree.component;if(s)return s.asyncDep&&!s.asyncResolved?s:Bz(s)}function KC(d){if(d)for(let s=0;sum(JY);function Em(d,s,E){return Rz(d,s,E)}function Rz(d,s,E=mf){const{immediate:R,deep:Y,flush:dt,once:_t}=E,zt=ap({},E),jt=s&&R||!s&&dt!=="post";let te;if(U2){if(dt==="sync"){const fr=QY();te=fr.__watcherHandles||(fr.__watcherHandles=[])}else if(!jt){const fr=()=>{};return fr.stop=mg,fr.resume=mg,fr.pause=mg,fr}}const ce=Kp;zt.call=(fr,Ar,kr)=>Lm(fr,ce,Ar,kr);let Ie=!1;dt==="post"?zt.scheduler=fr=>{c0(fr,ce&&ce.suspense)}:dt!=="sync"&&(Ie=!0,zt.scheduler=(fr,Ar)=>{Ar?fr():JA(fr)}),zt.augmentJob=fr=>{s&&(fr.flags|=4),Ie&&(fr.flags|=2,ce&&(fr.id=ce.uid,fr.i=ce))};const Je=gY(d,s,zt);return U2&&(te?te.push(Je):jt&&Je()),Je}function tK(d,s,E){const R=this.proxy,Y=ld(d)?d.includes(".")?Nz(R,d):()=>R[d]:d.bind(R,R);let dt;Vu(s)?dt=s:(dt=s.handler,E=s);const _t=rw(this),zt=Rz(Y,dt.bind(R),E);return _t(),zt}function Nz(d,s){const E=s.split(".");return()=>{let R=d;for(let Y=0;Ys==="modelValue"||s==="model-value"?d.modelModifiers:d[`${s}Modifiers`]||d[`${cm(s)}Modifiers`]||d[`${zy(s)}Modifiers`];function rK(d,s,...E){if(d.isUnmounted)return;const R=d.vnode.props||mf;let Y=E;const dt=s.startsWith("update:"),_t=dt&&eK(R,s.slice(7));_t&&(_t.trim&&(Y=E.map(ce=>ld(ce)?ce.trim():ce)),_t.number&&(Y=E.map(s4)));let zt,jt=R[zt=x8(s)]||R[zt=x8(cm(s))];!jt&&dt&&(jt=R[zt=x8(zy(s))]),jt&&Lm(jt,d,6,Y);const te=R[zt+"Once"];if(te){if(!d.emitted)d.emitted={};else if(d.emitted[zt])return;d.emitted[zt]=!0,Lm(te,d,6,Y)}}function jz(d,s,E=!1){const R=s.emitsCache,Y=R.get(d);if(Y!==void 0)return Y;const dt=d.emits;let _t={},zt=!1;if(!Vu(d)){const jt=te=>{const ce=jz(te,s,!0);ce&&(zt=!0,ap(_t,ce))};!E&&s.mixins.length&&s.mixins.forEach(jt),d.extends&&jt(d.extends),d.mixins&&d.mixins.forEach(jt)}return!dt&&!zt?(gf(d)&&R.set(d,null),null):(au(dt)?dt.forEach(jt=>_t[jt]=null):ap(_t,dt),gf(d)&&R.set(d,_t),_t)}function R4(d,s){return!d||!C4(s)?!1:(s=s.slice(2).replace(/Once$/,""),Rh(d,s[0].toLowerCase()+s.slice(1))||Rh(d,zy(s))||Rh(d,s))}function XC(d){const{type:s,vnode:E,proxy:R,withProxy:Y,propsOptions:[dt],slots:_t,attrs:zt,emit:jt,render:te,renderCache:ce,props:Ie,data:Je,setupState:fr,ctx:Ar,inheritAttrs:kr}=d,Vr=f4(d);let fn,Dt;try{if(E.shapeFlag&4){const ti=Y||R,Dn=ti;fn=hg(te.call(Dn,ti,ce,Ie,fr,Je,Ar)),Dt=zt}else{const ti=s;fn=hg(ti.length>1?ti(Ie,{attrs:zt,slots:_t,emit:jt}):ti(Ie,null)),Dt=s.props?zt:nK(zt)}}catch(ti){S2.length=0,D4(ti,d,1),fn=El(Yp)}let cn=fn;if(Dt&&kr!==!1){const ti=Object.keys(Dt),{shapeFlag:Dn}=cn;ti.length&&Dn&7&&(dt&&ti.some(UA)&&(Dt=iK(Dt,dt)),cn=_1(cn,Dt,!1,!0))}return E.dirs&&(cn=_1(cn,null,!1,!0),cn.dirs=cn.dirs?cn.dirs.concat(E.dirs):E.dirs),E.transition&&Cy(cn,E.transition),fn=cn,f4(Vr),fn}const nK=d=>{let s;for(const E in d)(E==="class"||E==="style"||C4(E))&&((s||(s={}))[E]=d[E]);return s},iK=(d,s)=>{const E={};for(const R in d)(!UA(R)||!(R.slice(9)in s))&&(E[R]=d[R]);return E};function aK(d,s,E){const{props:R,children:Y,component:dt}=d,{props:_t,children:zt,patchFlag:jt}=s,te=dt.emitsOptions;if(s.dirs||s.transition)return!0;if(E&&jt>=0){if(jt&1024)return!0;if(jt&16)return R?JC(R,_t,te):!!_t;if(jt&8){const ce=s.dynamicProps;for(let Ie=0;Ied.__isSuspense;function sK(d,s){s&&s.pendingBranch?au(d)?s.effects.push(...d):s.effects.push(d):xY(d)}const _u=Symbol.for("v-fgt"),N4=Symbol.for("v-txt"),Yp=Symbol.for("v-cmt"),J5=Symbol.for("v-stc"),S2=[];let Z0=null;function ci(d=!1){S2.push(Z0=d?null:[])}function lK(){S2.pop(),Z0=S2[S2.length-1]||null}let N2=1;function QC(d,s=!1){N2+=d,d<0&&Z0&&s&&(Z0.hasOnce=!0)}function Vz(d){return d.dynamicChildren=N2>0?Z0||l_:null,lK(),N2>0&&Z0&&Z0.push(d),d}function wi(d,s,E,R,Y,dt){return Vz(ye(d,s,E,R,Y,dt,!0))}function G0(d,s,E,R,Y){return Vz(El(d,s,E,R,Y,!0))}function j2(d){return d?d.__v_isVNode===!0:!1}function xy(d,s){return d.type===s.type&&d.key===s.key}const Hz=({key:d})=>d??null,Q5=({ref:d,ref_key:s,ref_for:E})=>(typeof d=="number"&&(d=""+d),d!=null?ld(d)||jd(d)||Vu(d)?{i:Op,r:d,k:s,f:!!E}:d:null);function ye(d,s=null,E=null,R=0,Y=null,dt=d===_u?0:1,_t=!1,zt=!1){const jt={__v_isVNode:!0,__v_skip:!0,type:d,props:s,key:s&&Hz(s),ref:s&&Q5(s),scopeId:uz,slotScopeIds:null,children:E,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:dt,patchFlag:R,dynamicProps:Y,dynamicChildren:null,appContext:null,ctx:Op};return zt?(aM(jt,E),dt&128&&d.normalize(jt)):E&&(jt.shapeFlag|=ld(E)?8:16),N2>0&&!_t&&Z0&&(jt.patchFlag>0||dt&6)&&jt.patchFlag!==32&&Z0.push(jt),jt}const El=uK;function uK(d,s=null,E=null,R=0,Y=null,dt=!1){if((!d||d===kz)&&(d=Yp),j2(d)){const zt=_1(d,s,!0);return E&&aM(zt,E),N2>0&&!dt&&Z0&&(zt.shapeFlag&6?Z0[Z0.indexOf(d)]=zt:Z0.push(zt)),zt.patchFlag=-2,zt}if(_K(d)&&(d=d.__vccOpts),s){s=cK(s);let{class:zt,style:jt}=s;zt&&!ld(zt)&&(s.class=Fo(zt)),gf(jt)&&(KA(jt)&&!au(jt)&&(jt=ap({},jt)),s.style=hm(jt))}const _t=ld(d)?1:Uz(d)?128:hz(d)?64:gf(d)?4:Vu(d)?2:0;return ye(d,s,E,R,Y,_t,dt,!0)}function cK(d){return d?KA(d)||Pz(d)?ap({},d):d:null}function _1(d,s,E=!1,R=!1){const{props:Y,ref:dt,patchFlag:_t,children:zt,transition:jt}=d,te=s?hK(Y||{},s):Y,ce={__v_isVNode:!0,__v_skip:!0,type:d.type,props:te,key:te&&Hz(te),ref:s&&s.ref?E&&dt?au(dt)?dt.concat(Q5(s)):[dt,Q5(s)]:Q5(s):dt,scopeId:d.scopeId,slotScopeIds:d.slotScopeIds,children:zt,target:d.target,targetStart:d.targetStart,targetAnchor:d.targetAnchor,staticCount:d.staticCount,shapeFlag:d.shapeFlag,patchFlag:s&&d.type!==_u?_t===-1?16:_t|16:_t,dynamicProps:d.dynamicProps,dynamicChildren:d.dynamicChildren,appContext:d.appContext,dirs:d.dirs,transition:jt,component:d.component,suspense:d.suspense,ssContent:d.ssContent&&_1(d.ssContent),ssFallback:d.ssFallback&&_1(d.ssFallback),placeholder:d.placeholder,el:d.el,anchor:d.anchor,ctx:d.ctx,ce:d.ce};return jt&&R&&Cy(ce,jt.clone(ce)),ce}function Qu(d=" ",s=0){return El(N4,null,d,s)}function Ff(d,s){const E=El(J5,null,d);return E.staticCount=s,E}function Uo(d="",s=!1){return s?(ci(),G0(Yp,null,d)):El(Yp,null,d)}function hg(d){return d==null||typeof d=="boolean"?El(Yp):au(d)?El(_u,null,d.slice()):j2(d)?l1(d):El(N4,null,String(d))}function l1(d){return d.el===null&&d.patchFlag!==-1||d.memo?d:_1(d)}function aM(d,s){let E=0;const{shapeFlag:R}=d;if(s==null)s=null;else if(au(s))E=16;else if(typeof s=="object")if(R&65){const Y=s.default;Y&&(Y._c&&(Y._d=!1),aM(d,Y()),Y._c&&(Y._d=!0));return}else{E=32;const Y=s._;!Y&&!Pz(s)?s._ctx=Op:Y===3&&Op&&(Op.slots._===1?s._=1:(s._=2,d.patchFlag|=1024))}else Vu(s)?(s={default:s,_ctx:Op},E=32):(s=String(s),R&64?(E=16,s=[Qu(s)]):E=8);d.children=s,d.shapeFlag|=E}function hK(...d){const s={};for(let E=0;EKp||Op;let m4,pA;{const d=z4(),s=(E,R)=>{let Y;return(Y=d[E])||(Y=d[E]=[]),Y.push(R),dt=>{Y.length>1?Y.forEach(_t=>_t(dt)):Y[0](dt)}};m4=s("__VUE_INSTANCE_SETTERS__",E=>Kp=E),pA=s("__VUE_SSR_SETTERS__",E=>U2=E)}const rw=d=>{const s=Kp;return m4(d),d.scope.on(),()=>{d.scope.off(),m4(s)}},tL=()=>{Kp&&Kp.scope.off(),m4(null)};function Wz(d){return d.vnode.shapeFlag&4}let U2=!1;function mK(d,s=!1,E=!1){s&&pA(s);const{props:R,children:Y}=d.vnode,dt=Wz(d);VY(d,R,dt,s),$Y(d,Y,E||s);const _t=dt?gK(d,s):void 0;return s&&pA(!1),_t}function gK(d,s){const E=d.type;d.accessCache=Object.create(null),d.proxy=new Proxy(d.ctx,zY);const{setup:R}=E;if(R){sv();const Y=d.setupContext=R.length>1?yK(d):null,dt=rw(d),_t=tw(R,d,0,[d.props,Y]),zt=II(_t);if(lv(),dt(),(zt||d.sp)&&!h_(d)&&xz(d),zt){if(_t.then(tL,tL),s)return _t.then(jt=>{eL(d,jt)}).catch(jt=>{D4(jt,d,0)});d.asyncDep=_t}else eL(d,_t)}else qz(d)}function eL(d,s,E){Vu(s)?d.type.__ssrInlineRender?d.ssrRender=s:d.render=s:gf(s)&&(d.setupState=iz(s)),qz(d)}function qz(d,s,E){const R=d.type;d.render||(d.render=R.render||mg);{const Y=rw(d);sv();try{OY(d)}finally{lv(),Y()}}}const vK={get(d,s){return Zp(d,"get",""),d[s]}};function yK(d){const s=E=>{d.exposed=E||{}};return{attrs:new Proxy(d.attrs,vK),slots:d.slots,emit:d.emit,expose:s}}function U4(d){return d.exposed?d.exposeProxy||(d.exposeProxy=new Proxy(iz(XA(d.exposed)),{get(s,E){if(E in s)return s[E];if(E in M2)return M2[E](d)},has(s,E){return E in s||E in M2}})):d.proxy}function xK(d,s=!0){return Vu(d)?d.displayName||d.name:d.name||s&&d.__name}function _K(d){return Vu(d)&&"__vccOpts"in d}const Wo=(d,s)=>pY(d,s,U2);function oM(d,s,E){const R=arguments.length;return R===2?gf(s)&&!au(s)?j2(s)?El(d,null,[s]):El(d,s):El(d,null,s):(R>3?E=Array.prototype.slice.call(arguments,2):R===3&&j2(E)&&(E=[E]),El(d,s,E))}const bK="3.5.18";/** * @vue/runtime-dom v3.5.18 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let fA;const tL=typeof window<"u"&&window.trustedTypes;if(tL)try{fA=tL.createPolicy("vue",{createHTML:d=>d})}catch{}const Hz=fA?d=>fA.createHTML(d):d=>d,iK="http://www.w3.org/2000/svg",aK="http://www.w3.org/1998/Math/MathML",Jg=typeof document<"u"?document:null,eL=Jg&&Jg.createElement("template"),oK={insert:(d,s,E)=>{s.insertBefore(d,E||null)},remove:d=>{const s=d.parentNode;s&&s.removeChild(d)},createElement:(d,s,E,B)=>{const K=s==="svg"?Jg.createElementNS(iK,d):s==="mathml"?Jg.createElementNS(aK,d):E?Jg.createElement(d,{is:E}):Jg.createElement(d);return d==="select"&&B&&B.multiple!=null&&K.setAttribute("multiple",B.multiple),K},createText:d=>Jg.createTextNode(d),createComment:d=>Jg.createComment(d),setText:(d,s)=>{d.nodeValue=s},setElementText:(d,s)=>{d.textContent=s},parentNode:d=>d.parentNode,nextSibling:d=>d.nextSibling,querySelector:d=>Jg.querySelector(d),setScopeId(d,s){d.setAttribute(s,"")},insertStaticContent(d,s,E,B,K,pt){const _t=E?E.previousSibling:s.lastChild;if(K&&(K===pt||K.nextSibling))for(;s.insertBefore(K.cloneNode(!0),E),!(K===pt||!(K=K.nextSibling)););else{eL.innerHTML=Hz(B==="svg"?`${d}`:B==="mathml"?`${d}`:d);const Ot=eL.content;if(B==="svg"||B==="mathml"){const jt=Ot.firstChild;for(;jt.firstChild;)Ot.appendChild(jt.firstChild);Ot.removeChild(jt)}s.insertBefore(Ot,E)}return[_t?_t.nextSibling:s.firstChild,E?E.previousSibling:s.lastChild]}},Jv="transition",Qb="animation",p_=Symbol("_vtc"),Wz={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},qz=ap({},fz,Wz),sK=d=>(d.displayName="Transition",d.props=qz,d),$z=sK((d,{slots:s})=>iM(iY,Zz(d),s)),sy=(d,s=[])=>{au(d)?d.forEach(E=>E(...s)):d&&d(...s)},rL=d=>d?au(d)?d.some(s=>s.length>1):d.length>1:!1;function Zz(d){const s={};for(const Pi in d)Pi in Wz||(s[Pi]=d[Pi]);if(d.css===!1)return s;const{name:E="v",type:B,duration:K,enterFromClass:pt=`${E}-enter-from`,enterActiveClass:_t=`${E}-enter-active`,enterToClass:Ot=`${E}-enter-to`,appearFromClass:jt=pt,appearActiveClass:te=_t,appearToClass:he=Ot,leaveFromClass:De=`${E}-leave-from`,leaveActiveClass:er=`${E}-leave-active`,leaveToClass:pr=`${E}-leave-to`}=d,Mr=lK(K),Tr=Mr&&Mr[0],Vr=Mr&&Mr[1],{onBeforeEnter:mn,onEnter:Dt,onEnterCancelled:cn,onLeave:Jn,onLeaveCancelled:Bn,onBeforeAppear:ni=mn,onAppear:Wi=Dt,onAppearCancelled:Un=cn}=s,qr=(Pi,bi,Yi,Ca)=>{Pi._enterCancelled=Ca,e1(Pi,bi?he:Ot),e1(Pi,bi?te:_t),Yi&&Yi()},Di=(Pi,bi)=>{Pi._isLeaving=!1,e1(Pi,De),e1(Pi,pr),e1(Pi,er),bi&&bi()},Fi=Pi=>(bi,Yi)=>{const Ca=Pi?Wi:Dt,Ni=()=>qr(bi,Pi,Yi);sy(Ca,[bi,Ni]),nL(()=>{e1(bi,Pi?jt:pt),og(bi,Pi?he:Ot),rL(Ca)||iL(bi,B,Tr,Ni)})};return ap(s,{onBeforeEnter(Pi){sy(mn,[Pi]),og(Pi,pt),og(Pi,_t)},onBeforeAppear(Pi){sy(ni,[Pi]),og(Pi,jt),og(Pi,te)},onEnter:Fi(!1),onAppear:Fi(!0),onLeave(Pi,bi){Pi._isLeaving=!0;const Yi=()=>Di(Pi,bi);og(Pi,De),Pi._enterCancelled?(og(Pi,er),dA()):(dA(),og(Pi,er)),nL(()=>{Pi._isLeaving&&(e1(Pi,De),og(Pi,pr),rL(Jn)||iL(Pi,B,Vr,Yi))}),sy(Jn,[Pi,Yi])},onEnterCancelled(Pi){qr(Pi,!1,void 0,!0),sy(cn,[Pi])},onAppearCancelled(Pi){qr(Pi,!0,void 0,!0),sy(Un,[Pi])},onLeaveCancelled(Pi){Di(Pi),sy(Bn,[Pi])}})}function lK(d){if(d==null)return null;if(gf(d))return[M8(d.enter),M8(d.leave)];{const s=M8(d);return[s,s]}}function M8(d){return pG(d)}function og(d,s){s.split(/\s+/).forEach(E=>E&&d.classList.add(E)),(d[p_]||(d[p_]=new Set)).add(s)}function e1(d,s){s.split(/\s+/).forEach(B=>B&&d.classList.remove(B));const E=d[p_];E&&(E.delete(s),E.size||(d[p_]=void 0))}function nL(d){requestAnimationFrame(()=>{requestAnimationFrame(d)})}let uK=0;function iL(d,s,E,B){const K=d._endId=++uK,pt=()=>{K===d._endId&&B()};if(E!=null)return setTimeout(pt,E);const{type:_t,timeout:Ot,propCount:jt}=Gz(d,s);if(!_t)return B();const te=_t+"end";let he=0;const De=()=>{d.removeEventListener(te,er),pt()},er=pr=>{pr.target===d&&++he>=jt&&De()};setTimeout(()=>{he(E[Mr]||"").split(", "),K=B(`${Jv}Delay`),pt=B(`${Jv}Duration`),_t=aL(K,pt),Ot=B(`${Qb}Delay`),jt=B(`${Qb}Duration`),te=aL(Ot,jt);let he=null,De=0,er=0;s===Jv?_t>0&&(he=Jv,De=_t,er=pt.length):s===Qb?te>0&&(he=Qb,De=te,er=jt.length):(De=Math.max(_t,te),he=De>0?_t>te?Jv:Qb:null,er=he?he===Jv?pt.length:jt.length:0);const pr=he===Jv&&/\b(transform|all)(,|$)/.test(B(`${Jv}Property`).toString());return{type:he,timeout:De,propCount:er,hasTransform:pr}}function aL(d,s){for(;d.lengthoL(E)+oL(d[B])))}function oL(d){return d==="auto"?0:Number(d.slice(0,-1).replace(",","."))*1e3}function dA(){return document.body.offsetHeight}function cK(d,s,E){const B=d[p_];B&&(s=(s?[s,...B]:[...B]).join(" ")),s==null?d.removeAttribute("class"):E?d.setAttribute("class",s):d.className=s}const m4=Symbol("_vod"),Yz=Symbol("_vsh"),t2={beforeMount(d,{value:s},{transition:E}){d[m4]=d.style.display==="none"?"":d.style.display,E&&s?E.beforeEnter(d):e2(d,s)},mounted(d,{value:s},{transition:E}){E&&s&&E.enter(d)},updated(d,{value:s,oldValue:E},{transition:B}){!s!=!E&&(B?s?(B.beforeEnter(d),e2(d,!0),B.enter(d)):B.leave(d,()=>{e2(d,!1)}):e2(d,s))},beforeUnmount(d,{value:s}){e2(d,s)}};function e2(d,s){d.style.display=s?d[m4]:"none",d[Yz]=!s}const hK=Symbol(""),fK=/(^|;)\s*display\s*:/;function dK(d,s,E){const B=d.style,K=sd(E);let pt=!1;if(E&&!K){if(s)if(sd(s))for(const _t of s.split(";")){const Ot=_t.slice(0,_t.indexOf(":")).trim();E[Ot]==null&&Q5(B,Ot,"")}else for(const _t in s)E[_t]==null&&Q5(B,_t,"");for(const _t in E)_t==="display"&&(pt=!0),Q5(B,_t,E[_t])}else if(K){if(s!==E){const _t=B[hK];_t&&(E+=";"+_t),B.cssText=E,pt=fK.test(E)}}else s&&d.removeAttribute("style");m4 in d&&(d[m4]=pt?B.display:"",d[Yz]&&(B.display="none"))}const sL=/\s*!important$/;function Q5(d,s,E){if(au(E))E.forEach(B=>Q5(d,s,B));else if(E==null&&(E=""),s.startsWith("--"))d.setProperty(s,E);else{const B=pK(d,s);sL.test(E)?d.setProperty(Py(B),E.replace(sL,""),"important"):d[B]=E}}const lL=["Webkit","Moz","ms"],S8={};function pK(d,s){const E=S8[s];if(E)return E;let B=cm(s);if(B!=="filter"&&B in d)return S8[s]=B;B=L4(B);for(let K=0;KE8||(yK.then(()=>E8=0),E8=Date.now());function _K(d,s){const E=B=>{if(!B._vts)B._vts=Date.now();else if(B._vts<=E.attached)return;Lm(bK(B,E.value),s,5,[B])};return E.value=d,E.attached=xK(),E}function bK(d,s){if(au(s)){const E=d.stopImmediatePropagation;return d.stopImmediatePropagation=()=>{E.call(d),d._stopped=!0},s.map(B=>K=>!K._stopped&&B&&B(K))}else return s}const pL=d=>d.charCodeAt(0)===111&&d.charCodeAt(1)===110&&d.charCodeAt(2)>96&&d.charCodeAt(2)<123,wK=(d,s,E,B,K,pt)=>{const _t=K==="svg";s==="class"?cK(d,B,_t):s==="style"?dK(d,E,B):S4(s)?NA(s)||gK(d,s,E,B,pt):(s[0]==="."?(s=s.slice(1),!0):s[0]==="^"?(s=s.slice(1),!1):kK(d,s,B,_t))?(hL(d,s,B),!d.tagName.includes("-")&&(s==="value"||s==="checked"||s==="selected")&&cL(d,s,B,_t,pt,s!=="value")):d._isVueCE&&(/[A-Z]/.test(s)||!sd(B))?hL(d,cm(s),B,pt,s):(s==="true-value"?d._trueValue=B:s==="false-value"&&(d._falseValue=B),cL(d,s,B,_t))};function kK(d,s,E,B){if(B)return!!(s==="innerHTML"||s==="textContent"||s in d&&pL(s)&&Vu(E));if(s==="spellcheck"||s==="draggable"||s==="translate"||s==="autocorrect"||s==="form"||s==="list"&&d.tagName==="INPUT"||s==="type"&&d.tagName==="TEXTAREA")return!1;if(s==="width"||s==="height"){const K=d.tagName;if(K==="IMG"||K==="VIDEO"||K==="CANVAS"||K==="SOURCE")return!1}return pL(s)&&sd(E)?!1:s in d}const Kz=new WeakMap,Xz=new WeakMap,g4=Symbol("_moveCb"),mL=Symbol("_enterCb"),TK=d=>(delete d.props.mode,d),AK=TK({name:"TransitionGroup",props:ap({},qz,{tag:String,moveClass:String}),setup(d,{slots:s}){const E=B4(),B=hz();let K,pt;return yz(()=>{if(!K.length)return;const _t=d.moveClass||`${d.name||"v"}-move`;if(!LK(K[0].el,E.vnode.el,_t)){K=[];return}K.forEach(SK),K.forEach(EK);const Ot=K.filter(CK);dA(),Ot.forEach(jt=>{const te=jt.el,he=te.style;og(te,_t),he.transform=he.webkitTransform=he.transitionDuration="";const De=te[g4]=er=>{er&&er.target!==te||(!er||/transform$/.test(er.propertyName))&&(te.removeEventListener("transitionend",De),te[g4]=null,e1(te,_t))};te.addEventListener("transitionend",De)}),K=[]}),()=>{const _t=Uu(d),Ot=Zz(_t);let jt=_t.tag||Pu;if(K=[],pt)for(let te=0;te{Ot.split(/\s+/).forEach(jt=>jt&&B.classList.remove(jt))}),E.split(/\s+/).forEach(Ot=>Ot&&B.classList.add(Ot)),B.style.display="none";const pt=s.nodeType===1?s:s.parentNode;pt.appendChild(B);const{hasTransform:_t}=Gz(B);return pt.removeChild(B),_t}const m_=d=>{const s=d.props["onUpdate:modelValue"]||!1;return au(s)?E=>G5(s,E):s};function PK(d){d.target.composing=!0}function gL(d){const s=d.target;s.composing&&(s.composing=!1,s.dispatchEvent(new Event("input")))}const iv=Symbol("_assign"),aM={created(d,{modifiers:{lazy:s,trim:E,number:B}},K){d[iv]=m_(K);const pt=B||K.props&&K.props.type==="number";u1(d,s?"change":"input",_t=>{if(_t.target.composing)return;let Ot=d.value;E&&(Ot=Ot.trim()),pt&&(Ot=o4(Ot)),d[iv](Ot)}),E&&u1(d,"change",()=>{d.value=d.value.trim()}),s||(u1(d,"compositionstart",PK),u1(d,"compositionend",gL),u1(d,"change",gL))},mounted(d,{value:s}){d.value=s??""},beforeUpdate(d,{value:s,oldValue:E,modifiers:{lazy:B,trim:K,number:pt}},_t){if(d[iv]=m_(_t),d.composing)return;const Ot=(pt||d.type==="number")&&!/^0\d/.test(d.value)?o4(d.value):d.value,jt=s??"";Ot!==jt&&(document.activeElement===d&&d.type!=="range"&&(B&&s===E||K&&d.value.trim()===jt)||(d.value=jt))}},V2={created(d,{value:s},E){d.checked=d_(s,E.props.value),d[iv]=m_(E),u1(d,"change",()=>{d[iv](H2(d))})},beforeUpdate(d,{value:s,oldValue:E},B){d[iv]=m_(B),s!==E&&(d.checked=d_(s,B.props.value))}},pA={deep:!0,created(d,{value:s,modifiers:{number:E}},B){const K=E4(s);u1(d,"change",()=>{const pt=Array.prototype.filter.call(d.options,_t=>_t.selected).map(_t=>E?o4(H2(_t)):H2(_t));d[iv](d.multiple?K?new Set(pt):pt:pt[0]),d._assigning=!0,om(()=>{d._assigning=!1})}),d[iv]=m_(B)},mounted(d,{value:s}){vL(d,s)},beforeUpdate(d,s,E){d[iv]=m_(E)},updated(d,{value:s}){d._assigning||vL(d,s)}};function vL(d,s){const E=d.multiple,B=au(s);if(!(E&&!B&&!E4(s))){for(let K=0,pt=d.options.length;KString(te)===String(Ot)):_t.selected=wG(s,Ot)>-1}else _t.selected=s.has(Ot);else if(d_(H2(_t),s)){d.selectedIndex!==K&&(d.selectedIndex=K);return}}!E&&d.selectedIndex!==-1&&(d.selectedIndex=-1)}}function H2(d){return"_value"in d?d._value:d.value}const IK=["ctrl","shift","alt","meta"],zK={stop:d=>d.stopPropagation(),prevent:d=>d.preventDefault(),self:d=>d.target!==d.currentTarget,ctrl:d=>!d.ctrlKey,shift:d=>!d.shiftKey,alt:d=>!d.altKey,meta:d=>!d.metaKey,left:d=>"button"in d&&d.button!==0,middle:d=>"button"in d&&d.button!==1,right:d=>"button"in d&&d.button!==2,exact:(d,s)=>IK.some(E=>d[`${E}Key`]&&!s.includes(E))},Pm=(d,s)=>{const E=d._withMods||(d._withMods={}),B=s.join(".");return E[B]||(E[B]=(K,...pt)=>{for(let _t=0;_t{const s=DK().createApp(...d),{mount:E}=s;return s.mount=B=>{const K=BK(B);if(!K)return;const pt=s._component;!Vu(pt)&&!pt.render&&!pt.template&&(pt.template=K.innerHTML),K.nodeType===1&&(K.textContent="");const _t=E(K,!1,RK(K));return K instanceof Element&&(K.removeAttribute("v-cloak"),K.setAttribute("data-v-app","")),_t},s};function RK(d){if(d instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&d instanceof MathMLElement)return"mathml"}function BK(d){return sd(d)?document.querySelector(d):d}/*! +**/let mA;const rL=typeof window<"u"&&window.trustedTypes;if(rL)try{mA=rL.createPolicy("vue",{createHTML:d=>d})}catch{}const $z=mA?d=>mA.createHTML(d):d=>d,wK="http://www.w3.org/2000/svg",kK="http://www.w3.org/1998/Math/MathML",Qg=typeof document<"u"?document:null,nL=Qg&&Qg.createElement("template"),TK={insert:(d,s,E)=>{s.insertBefore(d,E||null)},remove:d=>{const s=d.parentNode;s&&s.removeChild(d)},createElement:(d,s,E,R)=>{const Y=s==="svg"?Qg.createElementNS(wK,d):s==="mathml"?Qg.createElementNS(kK,d):E?Qg.createElement(d,{is:E}):Qg.createElement(d);return d==="select"&&R&&R.multiple!=null&&Y.setAttribute("multiple",R.multiple),Y},createText:d=>Qg.createTextNode(d),createComment:d=>Qg.createComment(d),setText:(d,s)=>{d.nodeValue=s},setElementText:(d,s)=>{d.textContent=s},parentNode:d=>d.parentNode,nextSibling:d=>d.nextSibling,querySelector:d=>Qg.querySelector(d),setScopeId(d,s){d.setAttribute(s,"")},insertStaticContent(d,s,E,R,Y,dt){const _t=E?E.previousSibling:s.lastChild;if(Y&&(Y===dt||Y.nextSibling))for(;s.insertBefore(Y.cloneNode(!0),E),!(Y===dt||!(Y=Y.nextSibling)););else{nL.innerHTML=$z(R==="svg"?`${d}`:R==="mathml"?`${d}`:d);const zt=nL.content;if(R==="svg"||R==="mathml"){const jt=zt.firstChild;for(;jt.firstChild;)zt.appendChild(jt.firstChild);zt.removeChild(jt)}s.insertBefore(zt,E)}return[_t?_t.nextSibling:s.firstChild,E?E.previousSibling:s.lastChild]}},t1="transition",t2="animation",m_=Symbol("_vtc"),Zz={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Gz=ap({},mz,Zz),AK=d=>(d.displayName="Transition",d.props=Gz,d),Yz=AK((d,{slots:s})=>oM(wY,Kz(d),s)),uy=(d,s=[])=>{au(d)?d.forEach(E=>E(...s)):d&&d(...s)},iL=d=>d?au(d)?d.some(s=>s.length>1):d.length>1:!1;function Kz(d){const s={};for(const Li in d)Li in Zz||(s[Li]=d[Li]);if(d.css===!1)return s;const{name:E="v",type:R,duration:Y,enterFromClass:dt=`${E}-enter-from`,enterActiveClass:_t=`${E}-enter-active`,enterToClass:zt=`${E}-enter-to`,appearFromClass:jt=dt,appearActiveClass:te=_t,appearToClass:ce=zt,leaveFromClass:Ie=`${E}-leave-from`,leaveActiveClass:Je=`${E}-leave-active`,leaveToClass:fr=`${E}-leave-to`}=d,Ar=MK(Y),kr=Ar&&Ar[0],Vr=Ar&&Ar[1],{onBeforeEnter:fn,onEnter:Dt,onEnterCancelled:cn,onLeave:ti,onLeaveCancelled:Dn,onBeforeAppear:ii=fn,onAppear:Vi=Dt,onAppearCancelled:Nn=cn}=s,Wr=(Li,$n,Hn,sa)=>{Li._enterCancelled=sa,n1(Li,$n?ce:zt),n1(Li,$n?te:_t),Hn&&Hn()},Bi=(Li,$n)=>{Li._isLeaving=!1,n1(Li,Ie),n1(Li,fr),n1(Li,Je),$n&&$n()},Ri=Li=>($n,Hn)=>{const sa=Li?Vi:Dt,Ti=()=>Wr($n,Li,Hn);uy(sa,[$n,Ti]),aL(()=>{n1($n,Li?jt:dt),sg($n,Li?ce:zt),iL(sa)||oL($n,R,kr,Ti)})};return ap(s,{onBeforeEnter(Li){uy(fn,[Li]),sg(Li,dt),sg(Li,_t)},onBeforeAppear(Li){uy(ii,[Li]),sg(Li,jt),sg(Li,te)},onEnter:Ri(!1),onAppear:Ri(!0),onLeave(Li,$n){Li._isLeaving=!0;const Hn=()=>Bi(Li,$n);sg(Li,Ie),Li._enterCancelled?(sg(Li,Je),gA()):(gA(),sg(Li,Je)),aL(()=>{Li._isLeaving&&(n1(Li,Ie),sg(Li,fr),iL(ti)||oL(Li,R,Vr,Hn))}),uy(ti,[Li,Hn])},onEnterCancelled(Li){Wr(Li,!1,void 0,!0),uy(cn,[Li])},onAppearCancelled(Li){Wr(Li,!0,void 0,!0),uy(Nn,[Li])},onLeaveCancelled(Li){Bi(Li),uy(Dn,[Li])}})}function MK(d){if(d==null)return null;if(gf(d))return[S8(d.enter),S8(d.leave)];{const s=S8(d);return[s,s]}}function S8(d){return IG(d)}function sg(d,s){s.split(/\s+/).forEach(E=>E&&d.classList.add(E)),(d[m_]||(d[m_]=new Set)).add(s)}function n1(d,s){s.split(/\s+/).forEach(R=>R&&d.classList.remove(R));const E=d[m_];E&&(E.delete(s),E.size||(d[m_]=void 0))}function aL(d){requestAnimationFrame(()=>{requestAnimationFrame(d)})}let SK=0;function oL(d,s,E,R){const Y=d._endId=++SK,dt=()=>{Y===d._endId&&R()};if(E!=null)return setTimeout(dt,E);const{type:_t,timeout:zt,propCount:jt}=Xz(d,s);if(!_t)return R();const te=_t+"end";let ce=0;const Ie=()=>{d.removeEventListener(te,Je),dt()},Je=fr=>{fr.target===d&&++ce>=jt&&Ie()};setTimeout(()=>{ce(E[Ar]||"").split(", "),Y=R(`${t1}Delay`),dt=R(`${t1}Duration`),_t=sL(Y,dt),zt=R(`${t2}Delay`),jt=R(`${t2}Duration`),te=sL(zt,jt);let ce=null,Ie=0,Je=0;s===t1?_t>0&&(ce=t1,Ie=_t,Je=dt.length):s===t2?te>0&&(ce=t2,Ie=te,Je=jt.length):(Ie=Math.max(_t,te),ce=Ie>0?_t>te?t1:t2:null,Je=ce?ce===t1?dt.length:jt.length:0);const fr=ce===t1&&/\b(transform|all)(,|$)/.test(R(`${t1}Property`).toString());return{type:ce,timeout:Ie,propCount:Je,hasTransform:fr}}function sL(d,s){for(;d.lengthlL(E)+lL(d[R])))}function lL(d){return d==="auto"?0:Number(d.slice(0,-1).replace(",","."))*1e3}function gA(){return document.body.offsetHeight}function EK(d,s,E){const R=d[m_];R&&(s=(s?[s,...R]:[...R]).join(" ")),s==null?d.removeAttribute("class"):E?d.setAttribute("class",s):d.className=s}const g4=Symbol("_vod"),Jz=Symbol("_vsh"),e2={beforeMount(d,{value:s},{transition:E}){d[g4]=d.style.display==="none"?"":d.style.display,E&&s?E.beforeEnter(d):r2(d,s)},mounted(d,{value:s},{transition:E}){E&&s&&E.enter(d)},updated(d,{value:s,oldValue:E},{transition:R}){!s!=!E&&(R?s?(R.beforeEnter(d),r2(d,!0),R.enter(d)):R.leave(d,()=>{r2(d,!1)}):r2(d,s))},beforeUnmount(d,{value:s}){r2(d,s)}};function r2(d,s){d.style.display=s?d[g4]:"none",d[Jz]=!s}const CK=Symbol(""),LK=/(^|;)\s*display\s*:/;function PK(d,s,E){const R=d.style,Y=ld(E);let dt=!1;if(E&&!Y){if(s)if(ld(s))for(const _t of s.split(";")){const zt=_t.slice(0,_t.indexOf(":")).trim();E[zt]==null&&t4(R,zt,"")}else for(const _t in s)E[_t]==null&&t4(R,_t,"");for(const _t in E)_t==="display"&&(dt=!0),t4(R,_t,E[_t])}else if(Y){if(s!==E){const _t=R[CK];_t&&(E+=";"+_t),R.cssText=E,dt=LK.test(E)}}else s&&d.removeAttribute("style");g4 in d&&(d[g4]=dt?R.display:"",d[Jz]&&(R.display="none"))}const uL=/\s*!important$/;function t4(d,s,E){if(au(E))E.forEach(R=>t4(d,s,R));else if(E==null&&(E=""),s.startsWith("--"))d.setProperty(s,E);else{const R=IK(d,s);uL.test(E)?d.setProperty(zy(R),E.replace(uL,""),"important"):d[R]=E}}const cL=["Webkit","Moz","ms"],E8={};function IK(d,s){const E=E8[s];if(E)return E;let R=cm(s);if(R!=="filter"&&R in d)return E8[s]=R;R=I4(R);for(let Y=0;YC8||(FK.then(()=>C8=0),C8=Date.now());function RK(d,s){const E=R=>{if(!R._vts)R._vts=Date.now();else if(R._vts<=E.attached)return;Lm(NK(R,E.value),s,5,[R])};return E.value=d,E.attached=BK(),E}function NK(d,s){if(au(s)){const E=d.stopImmediatePropagation;return d.stopImmediatePropagation=()=>{E.call(d),d._stopped=!0},s.map(R=>Y=>!Y._stopped&&R&&R(Y))}else return s}const gL=d=>d.charCodeAt(0)===111&&d.charCodeAt(1)===110&&d.charCodeAt(2)>96&&d.charCodeAt(2)<123,jK=(d,s,E,R,Y,dt)=>{const _t=Y==="svg";s==="class"?EK(d,R,_t):s==="style"?PK(d,E,R):C4(s)?UA(s)||OK(d,s,E,R,dt):(s[0]==="."?(s=s.slice(1),!0):s[0]==="^"?(s=s.slice(1),!1):UK(d,s,R,_t))?(dL(d,s,R),!d.tagName.includes("-")&&(s==="value"||s==="checked"||s==="selected")&&fL(d,s,R,_t,dt,s!=="value")):d._isVueCE&&(/[A-Z]/.test(s)||!ld(R))?dL(d,cm(s),R,dt,s):(s==="true-value"?d._trueValue=R:s==="false-value"&&(d._falseValue=R),fL(d,s,R,_t))};function UK(d,s,E,R){if(R)return!!(s==="innerHTML"||s==="textContent"||s in d&&gL(s)&&Vu(E));if(s==="spellcheck"||s==="draggable"||s==="translate"||s==="autocorrect"||s==="form"||s==="list"&&d.tagName==="INPUT"||s==="type"&&d.tagName==="TEXTAREA")return!1;if(s==="width"||s==="height"){const Y=d.tagName;if(Y==="IMG"||Y==="VIDEO"||Y==="CANVAS"||Y==="SOURCE")return!1}return gL(s)&&ld(E)?!1:s in d}const Qz=new WeakMap,tO=new WeakMap,v4=Symbol("_moveCb"),vL=Symbol("_enterCb"),VK=d=>(delete d.props.mode,d),HK=VK({name:"TransitionGroup",props:ap({},Gz,{tag:String,moveClass:String}),setup(d,{slots:s}){const E=j4(),R=pz();let Y,dt;return bz(()=>{if(!Y.length)return;const _t=d.moveClass||`${d.name||"v"}-move`;if(!GK(Y[0].el,E.vnode.el,_t)){Y=[];return}Y.forEach(qK),Y.forEach($K);const zt=Y.filter(ZK);gA(),zt.forEach(jt=>{const te=jt.el,ce=te.style;sg(te,_t),ce.transform=ce.webkitTransform=ce.transitionDuration="";const Ie=te[v4]=Je=>{Je&&Je.target!==te||(!Je||/transform$/.test(Je.propertyName))&&(te.removeEventListener("transitionend",Ie),te[v4]=null,n1(te,_t))};te.addEventListener("transitionend",Ie)}),Y=[]}),()=>{const _t=Eu(d),zt=Kz(_t);let jt=_t.tag||_u;if(Y=[],dt)for(let te=0;te{zt.split(/\s+/).forEach(jt=>jt&&R.classList.remove(jt))}),E.split(/\s+/).forEach(zt=>zt&&R.classList.add(zt)),R.style.display="none";const dt=s.nodeType===1?s:s.parentNode;dt.appendChild(R);const{hasTransform:_t}=Xz(R);return dt.removeChild(R),_t}const g_=d=>{const s=d.props["onUpdate:modelValue"]||!1;return au(s)?E=>Y5(s,E):s};function YK(d){d.target.composing=!0}function yL(d){const s=d.target;s.composing&&(s.composing=!1,s.dispatchEvent(new Event("input")))}const ov=Symbol("_assign"),sM={created(d,{modifiers:{lazy:s,trim:E,number:R}},Y){d[ov]=g_(Y);const dt=R||Y.props&&Y.props.type==="number";h1(d,s?"change":"input",_t=>{if(_t.target.composing)return;let zt=d.value;E&&(zt=zt.trim()),dt&&(zt=s4(zt)),d[ov](zt)}),E&&h1(d,"change",()=>{d.value=d.value.trim()}),s||(h1(d,"compositionstart",YK),h1(d,"compositionend",yL),h1(d,"change",yL))},mounted(d,{value:s}){d.value=s??""},beforeUpdate(d,{value:s,oldValue:E,modifiers:{lazy:R,trim:Y,number:dt}},_t){if(d[ov]=g_(_t),d.composing)return;const zt=(dt||d.type==="number")&&!/^0\d/.test(d.value)?s4(d.value):d.value,jt=s??"";zt!==jt&&(document.activeElement===d&&d.type!=="range"&&(R&&s===E||Y&&d.value.trim()===jt)||(d.value=jt))}},V2={created(d,{value:s},E){d.checked=p_(s,E.props.value),d[ov]=g_(E),h1(d,"change",()=>{d[ov](H2(d))})},beforeUpdate(d,{value:s,oldValue:E},R){d[ov]=g_(R),s!==E&&(d.checked=p_(s,R.props.value))}},vA={deep:!0,created(d,{value:s,modifiers:{number:E}},R){const Y=L4(s);h1(d,"change",()=>{const dt=Array.prototype.filter.call(d.options,_t=>_t.selected).map(_t=>E?s4(H2(_t)):H2(_t));d[ov](d.multiple?Y?new Set(dt):dt:dt[0]),d._assigning=!0,S0(()=>{d._assigning=!1})}),d[ov]=g_(R)},mounted(d,{value:s}){xL(d,s)},beforeUpdate(d,s,E){d[ov]=g_(E)},updated(d,{value:s}){d._assigning||xL(d,s)}};function xL(d,s){const E=d.multiple,R=au(s);if(!(E&&!R&&!L4(s))){for(let Y=0,dt=d.options.length;YString(te)===String(zt)):_t.selected=jG(s,zt)>-1}else _t.selected=s.has(zt);else if(p_(H2(_t),s)){d.selectedIndex!==Y&&(d.selectedIndex=Y);return}}!E&&d.selectedIndex!==-1&&(d.selectedIndex=-1)}}function H2(d){return"_value"in d?d._value:d.value}const KK=["ctrl","shift","alt","meta"],XK={stop:d=>d.stopPropagation(),prevent:d=>d.preventDefault(),self:d=>d.target!==d.currentTarget,ctrl:d=>!d.ctrlKey,shift:d=>!d.shiftKey,alt:d=>!d.altKey,meta:d=>!d.metaKey,left:d=>"button"in d&&d.button!==0,middle:d=>"button"in d&&d.button!==1,right:d=>"button"in d&&d.button!==2,exact:(d,s)=>KK.some(E=>d[`${E}Key`]&&!s.includes(E))},Pm=(d,s)=>{const E=d._withMods||(d._withMods={}),R=s.join(".");return E[R]||(E[R]=(Y,...dt)=>{for(let _t=0;_t{const s=QK().createApp(...d),{mount:E}=s;return s.mount=R=>{const Y=rX(R);if(!Y)return;const dt=s._component;!Vu(dt)&&!dt.render&&!dt.template&&(dt.template=Y.innerHTML),Y.nodeType===1&&(Y.textContent="");const _t=E(Y,!1,eX(Y));return Y instanceof Element&&(Y.removeAttribute("v-cloak"),Y.setAttribute("data-v-app","")),_t},s};function eX(d){if(d instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&d instanceof MathMLElement)return"mathml"}function rX(d){return ld(d)?document.querySelector(d):d}/*! * pinia v3.0.4 * (c) 2025 Eduardo San Martin Morote * @license MIT - */let Jz;const j4=d=>Jz=d,Qz=Symbol();function mA(d){return d&&typeof d=="object"&&Object.prototype.toString.call(d)==="[object Object]"&&typeof d.toJSON!="function"}var E2;(function(d){d.direct="direct",d.patchObject="patch object",d.patchFunction="patch function"})(E2||(E2={}));function NK(){const d=FI(!0),s=d.run(()=>Ga({}));let E=[],B=[];const K=YA({install(pt){j4(K),K._a=pt,pt.provide(Qz,K),pt.config.globalProperties.$pinia=K,B.forEach(_t=>E.push(_t)),B=[]},use(pt){return this._a?E.push(pt):B.push(pt),this},_p:E,_a:null,_e:d,_s:new Map,state:s});return K}const tO=()=>{};function xL(d,s,E,B=tO){d.add(s);const K=()=>{d.delete(s)&&B()};return!E&&RI()&&kG(K),K}function t_(d,...s){d.forEach(E=>{E(...s)})}const jK=d=>d(),_L=Symbol(),C8=Symbol();function gA(d,s){d instanceof Map&&s instanceof Map?s.forEach((E,B)=>d.set(B,E)):d instanceof Set&&s instanceof Set&&s.forEach(d.add,d);for(const E in s){if(!s.hasOwnProperty(E))continue;const B=s[E],K=d[E];mA(K)&&mA(B)&&d.hasOwnProperty(E)&&!jd(B)&&!m1(B)?d[E]=gA(K,B):d[E]=B}return d}const UK=Symbol();function VK(d){return!mA(d)||!Object.prototype.hasOwnProperty.call(d,UK)}const{assign:r1}=Object;function HK(d){return!!(jd(d)&&d.effect)}function WK(d,s,E,B){const{state:K,actions:pt,getters:_t}=s,Ot=E.state.value[d];let jt;function te(){Ot||(E.state.value[d]=K?K():{});const he=$G(E.state.value[d]);return r1(he,pt,Object.keys(_t||{}).reduce((De,er)=>(De[er]=YA($o(()=>{j4(E);const pr=E._s.get(d);return _t[er].call(pr,pr)})),De),{}))}return jt=eO(d,te,s,E,B,!0),jt}function eO(d,s,E={},B,K,pt){let _t;const Ot=r1({actions:{}},E),jt={deep:!0};let te,he,De=new Set,er=new Set,pr;const Mr=B.state.value[d];!pt&&!Mr&&(B.state.value[d]={}),Ga({});let Tr;function Vr(Un){let qr;te=he=!1,typeof Un=="function"?(Un(B.state.value[d]),qr={type:E2.patchFunction,storeId:d,events:pr}):(gA(B.state.value[d],Un),qr={type:E2.patchObject,payload:Un,storeId:d,events:pr});const Di=Tr=Symbol();om().then(()=>{Tr===Di&&(te=!0)}),he=!0,t_(De,qr,B.state.value[d])}const mn=pt?function(){const{state:qr}=E,Di=qr?qr():{};this.$patch(Fi=>{r1(Fi,Di)})}:tO;function Dt(){_t.stop(),De.clear(),er.clear(),B._s.delete(d)}const cn=(Un,qr="")=>{if(_L in Un)return Un[C8]=qr,Un;const Di=function(){j4(B);const Fi=Array.from(arguments),Pi=new Set,bi=new Set;function Yi(si){Pi.add(si)}function Ca(si){bi.add(si)}t_(er,{args:Fi,name:Di[C8],store:Bn,after:Yi,onError:Ca});let Ni;try{Ni=Un.apply(this&&this.$id===d?this:Bn,Fi)}catch(si){throw t_(bi,si),si}return Ni instanceof Promise?Ni.then(si=>(t_(Pi,si),si)).catch(si=>(t_(bi,si),Promise.reject(si))):(t_(Pi,Ni),Ni)};return Di[_L]=!0,Di[C8]=qr,Di},Jn={_p:B,$id:d,$onAction:xL.bind(null,er),$patch:Vr,$reset:mn,$subscribe(Un,qr={}){const Di=xL(De,Un,qr.detached,()=>Fi()),Fi=_t.run(()=>Em(()=>B.state.value[d],Pi=>{(qr.flush==="sync"?he:te)&&Un({storeId:d,type:E2.direct,events:pr},Pi)},r1({},jt,qr)));return Di},$dispose:Dt},Bn=My(Jn);B._s.set(d,Bn);const Wi=(B._a&&B._a.runWithContext||jK)(()=>B._e.run(()=>(_t=FI()).run(()=>s({action:cn}))));for(const Un in Wi){const qr=Wi[Un];if(jd(qr)&&!HK(qr)||m1(qr))pt||(Mr&&VK(qr)&&(jd(qr)?qr.value=Mr[Un]:gA(qr,Mr[Un])),B.state.value[d][Un]=qr);else if(typeof qr=="function"){const Di=cn(qr,Un);Wi[Un]=Di,Ot.actions[Un]=qr}}return r1(Bn,Wi),r1(Uu(Bn),Wi),Object.defineProperty(Bn,"$state",{get:()=>B.state.value[d],set:Un=>{Vr(qr=>{r1(qr,Un)})}}),B._p.forEach(Un=>{r1(Bn,_t.run(()=>Un({store:Bn,app:B._a,pinia:B,options:Ot})))}),Mr&&pt&&E.hydrate&&E.hydrate(Bn.$state,Mr),te=!0,he=!0,Bn}/*! #__NO_SIDE_EFFECTS__ */function oM(d,s,E){let B;const K=typeof s=="function";B=K?E:s;function pt(_t,Ot){const jt=kY();return _t=_t||(jt?um(Qz,null):null),_t&&j4(_t),_t=Jz,_t._s.has(d)||(K?eO(d,s,B,_t):WK(d,B,_t)),_t._s.get(d)}return pt.$id=d,pt}/*! + */let eO;const V4=d=>eO=d,rO=Symbol();function yA(d){return d&&typeof d=="object"&&Object.prototype.toString.call(d)==="[object Object]"&&typeof d.toJSON!="function"}var E2;(function(d){d.direct="direct",d.patchObject="patch object",d.patchFunction="patch function"})(E2||(E2={}));function nX(){const d=NI(!0),s=d.run(()=>Ha({}));let E=[],R=[];const Y=XA({install(dt){V4(Y),Y._a=dt,dt.provide(rO,Y),dt.config.globalProperties.$pinia=Y,R.forEach(_t=>E.push(_t)),R=[]},use(dt){return this._a?E.push(dt):R.push(dt),this},_p:E,_a:null,_e:d,_s:new Map,state:s});return Y}const nO=()=>{};function bL(d,s,E,R=nO){d.add(s);const Y=()=>{d.delete(s)&&R()};return!E&&jI()&&UG(Y),Y}function r_(d,...s){d.forEach(E=>{E(...s)})}const iX=d=>d(),wL=Symbol(),L8=Symbol();function xA(d,s){d instanceof Map&&s instanceof Map?s.forEach((E,R)=>d.set(R,E)):d instanceof Set&&s instanceof Set&&s.forEach(d.add,d);for(const E in s){if(!s.hasOwnProperty(E))continue;const R=s[E],Y=d[E];yA(Y)&&yA(R)&&d.hasOwnProperty(E)&&!jd(R)&&!v1(R)?d[E]=xA(Y,R):d[E]=R}return d}const aX=Symbol();function oX(d){return!yA(d)||!Object.prototype.hasOwnProperty.call(d,aX)}const{assign:i1}=Object;function sX(d){return!!(jd(d)&&d.effect)}function lX(d,s,E,R){const{state:Y,actions:dt,getters:_t}=s,zt=E.state.value[d];let jt;function te(){zt||(E.state.value[d]=Y?Y():{});const ce=cY(E.state.value[d]);return i1(ce,dt,Object.keys(_t||{}).reduce((Ie,Je)=>(Ie[Je]=XA(Wo(()=>{V4(E);const fr=E._s.get(d);return _t[Je].call(fr,fr)})),Ie),{}))}return jt=iO(d,te,s,E,R,!0),jt}function iO(d,s,E={},R,Y,dt){let _t;const zt=i1({actions:{}},E),jt={deep:!0};let te,ce,Ie=new Set,Je=new Set,fr;const Ar=R.state.value[d];!dt&&!Ar&&(R.state.value[d]={}),Ha({});let kr;function Vr(Nn){let Wr;te=ce=!1,typeof Nn=="function"?(Nn(R.state.value[d]),Wr={type:E2.patchFunction,storeId:d,events:fr}):(xA(R.state.value[d],Nn),Wr={type:E2.patchObject,payload:Nn,storeId:d,events:fr});const Bi=kr=Symbol();S0().then(()=>{kr===Bi&&(te=!0)}),ce=!0,r_(Ie,Wr,R.state.value[d])}const fn=dt?function(){const{state:Wr}=E,Bi=Wr?Wr():{};this.$patch(Ri=>{i1(Ri,Bi)})}:nO;function Dt(){_t.stop(),Ie.clear(),Je.clear(),R._s.delete(d)}const cn=(Nn,Wr="")=>{if(wL in Nn)return Nn[L8]=Wr,Nn;const Bi=function(){V4(R);const Ri=Array.from(arguments),Li=new Set,$n=new Set;function Hn(Qn){Li.add(Qn)}function sa(Qn){$n.add(Qn)}r_(Je,{args:Ri,name:Bi[L8],store:Dn,after:Hn,onError:sa});let Ti;try{Ti=Nn.apply(this&&this.$id===d?this:Dn,Ri)}catch(Qn){throw r_($n,Qn),Qn}return Ti instanceof Promise?Ti.then(Qn=>(r_(Li,Qn),Qn)).catch(Qn=>(r_($n,Qn),Promise.reject(Qn))):(r_(Li,Ti),Ti)};return Bi[wL]=!0,Bi[L8]=Wr,Bi},ti={_p:R,$id:d,$onAction:bL.bind(null,Je),$patch:Vr,$reset:fn,$subscribe(Nn,Wr={}){const Bi=bL(Ie,Nn,Wr.detached,()=>Ri()),Ri=_t.run(()=>Em(()=>R.state.value[d],Li=>{(Wr.flush==="sync"?ce:te)&&Nn({storeId:d,type:E2.direct,events:fr},Li)},i1({},jt,Wr)));return Bi},$dispose:Dt},Dn=Ey(ti);R._s.set(d,Dn);const Vi=(R._a&&R._a.runWithContext||iX)(()=>R._e.run(()=>(_t=NI()).run(()=>s({action:cn}))));for(const Nn in Vi){const Wr=Vi[Nn];if(jd(Wr)&&!sX(Wr)||v1(Wr))dt||(Ar&&oX(Wr)&&(jd(Wr)?Wr.value=Ar[Nn]:xA(Wr,Ar[Nn])),R.state.value[d][Nn]=Wr);else if(typeof Wr=="function"){const Bi=cn(Wr,Nn);Vi[Nn]=Bi,zt.actions[Nn]=Wr}}return i1(Dn,Vi),i1(Eu(Dn),Vi),Object.defineProperty(Dn,"$state",{get:()=>R.state.value[d],set:Nn=>{Vr(Wr=>{i1(Wr,Nn)})}}),R._p.forEach(Nn=>{i1(Dn,_t.run(()=>Nn({store:Dn,app:R._a,pinia:R,options:zt})))}),Ar&&dt&&E.hydrate&&E.hydrate(Dn.$state,Ar),te=!0,ce=!0,Dn}/*! #__NO_SIDE_EFFECTS__ */function lM(d,s,E){let R;const Y=typeof s=="function";R=Y?E:s;function dt(_t,zt){const jt=UY();return _t=_t||(jt?um(rO,null):null),_t&&V4(_t),_t=eO,_t._s.has(d)||(Y?iO(d,s,R,_t):lX(d,R,_t)),_t._s.get(d)}return dt.$id=d,dt}/*! * vue-router v4.6.3 * (c) 2025 Eduardo San Martin Morote * @license MIT - */const a_=typeof document<"u";function rO(d){return typeof d=="object"||"displayName"in d||"props"in d||"__vccOpts"in d}function qK(d){return d.__esModule||d[Symbol.toStringTag]==="Module"||d.default&&rO(d.default)}const Fh=Object.assign;function L8(d,s){const E={};for(const B in s){const K=s[B];E[B]=Im(K)?K.map(d):d(K)}return E}const C2=()=>{},Im=Array.isArray;function bL(d,s){const E={};for(const B in d)E[B]=B in s?s[B]:d[B];return E}const nO=/#/g,$K=/&/g,ZK=/\//g,GK=/=/g,YK=/\?/g,iO=/\+/g,KK=/%5B/g,XK=/%5D/g,aO=/%5E/g,JK=/%60/g,oO=/%7B/g,QK=/%7C/g,sO=/%7D/g,tX=/%20/g;function sM(d){return d==null?"":encodeURI(""+d).replace(QK,"|").replace(KK,"[").replace(XK,"]")}function eX(d){return sM(d).replace(oO,"{").replace(sO,"}").replace(aO,"^")}function vA(d){return sM(d).replace(iO,"%2B").replace(tX,"+").replace(nO,"%23").replace($K,"%26").replace(JK,"`").replace(oO,"{").replace(sO,"}").replace(aO,"^")}function rX(d){return vA(d).replace(GK,"%3D")}function nX(d){return sM(d).replace(nO,"%23").replace(YK,"%3F")}function iX(d){return nX(d).replace(ZK,"%2F")}function W2(d){if(d==null)return null;try{return decodeURIComponent(""+d)}catch{}return""+d}const aX=/\/$/,oX=d=>d.replace(aX,"");function P8(d,s,E="/"){let B,K={},pt="",_t="";const Ot=s.indexOf("#");let jt=s.indexOf("?");return jt=Ot>=0&&jt>Ot?-1:jt,jt>=0&&(B=s.slice(0,jt),pt=s.slice(jt,Ot>0?Ot:s.length),K=d(pt.slice(1))),Ot>=0&&(B=B||s.slice(0,Ot),_t=s.slice(Ot,s.length)),B=cX(B??s,E),{fullPath:B+pt+_t,path:B,query:K,hash:W2(_t)}}function sX(d,s){const E=s.query?d(s.query):"";return s.path+(E&&"?")+E+(s.hash||"")}function wL(d,s){return!s||!d.toLowerCase().startsWith(s.toLowerCase())?d:d.slice(s.length)||"/"}function lX(d,s,E){const B=s.matched.length-1,K=E.matched.length-1;return B>-1&&B===K&&g_(s.matched[B],E.matched[K])&&lO(s.params,E.params)&&d(s.query)===d(E.query)&&s.hash===E.hash}function g_(d,s){return(d.aliasOf||d)===(s.aliasOf||s)}function lO(d,s){if(Object.keys(d).length!==Object.keys(s).length)return!1;for(const E in d)if(!uX(d[E],s[E]))return!1;return!0}function uX(d,s){return Im(d)?kL(d,s):Im(s)?kL(s,d):d===s}function kL(d,s){return Im(s)?d.length===s.length&&d.every((E,B)=>E===s[B]):d.length===1&&d[0]===s}function cX(d,s){if(d.startsWith("/"))return d;if(!d)return s;const E=s.split("/"),B=d.split("/"),K=B[B.length-1];(K===".."||K===".")&&B.push("");let pt=E.length-1,_t,Ot;for(_t=0;_t1&&pt--;else break;return E.slice(0,pt).join("/")+"/"+B.slice(_t).join("/")}const Qv={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let yA=function(d){return d.pop="pop",d.push="push",d}({}),I8=function(d){return d.back="back",d.forward="forward",d.unknown="",d}({});function hX(d){if(!d)if(a_){const s=document.querySelector("base");d=s&&s.getAttribute("href")||"/",d=d.replace(/^\w+:\/\/[^\/]+/,"")}else d="/";return d[0]!=="/"&&d[0]!=="#"&&(d="/"+d),oX(d)}const fX=/^[^#]+#/;function dX(d,s){return d.replace(fX,"#")+s}function pX(d,s){const E=document.documentElement.getBoundingClientRect(),B=d.getBoundingClientRect();return{behavior:s.behavior,left:B.left-E.left-(s.left||0),top:B.top-E.top-(s.top||0)}}const U4=()=>({left:window.scrollX,top:window.scrollY});function mX(d){let s;if("el"in d){const E=d.el,B=typeof E=="string"&&E.startsWith("#"),K=typeof E=="string"?B?document.getElementById(E.slice(1)):document.querySelector(E):E;if(!K)return;s=pX(K,d)}else s=d;"scrollBehavior"in document.documentElement.style?window.scrollTo(s):window.scrollTo(s.left!=null?s.left:window.scrollX,s.top!=null?s.top:window.scrollY)}function TL(d,s){return(history.state?history.state.position-s:-1)+d}const xA=new Map;function gX(d,s){xA.set(d,s)}function vX(d){const s=xA.get(d);return xA.delete(d),s}function yX(d){return typeof d=="string"||d&&typeof d=="object"}function uO(d){return typeof d=="string"||typeof d=="symbol"}let xd=function(d){return d[d.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",d[d.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",d[d.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",d[d.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",d[d.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",d}({});const cO=Symbol("");xd.MATCHER_NOT_FOUND+"",xd.NAVIGATION_GUARD_REDIRECT+"",xd.NAVIGATION_ABORTED+"",xd.NAVIGATION_CANCELLED+"",xd.NAVIGATION_DUPLICATED+"";function v_(d,s){return Fh(new Error,{type:d,[cO]:!0},s)}function Gg(d,s){return d instanceof Error&&cO in d&&(s==null||!!(d.type&s))}const xX=["params","query","hash"];function _X(d){if(typeof d=="string")return d;if(d.path!=null)return d.path;const s={};for(const E of xX)E in d&&(s[E]=d[E]);return JSON.stringify(s,null,2)}function bX(d){const s={};if(d===""||d==="?")return s;const E=(d[0]==="?"?d.slice(1):d).split("&");for(let B=0;BK&&vA(K)):[B&&vA(B)]).forEach(K=>{K!==void 0&&(s+=(s.length?"&":"")+E,K!=null&&(s+="="+K))})}return s}function wX(d){const s={};for(const E in d){const B=d[E];B!==void 0&&(s[E]=Im(B)?B.map(K=>K==null?null:""+K):B==null?B:""+B)}return s}const kX=Symbol(""),ML=Symbol(""),V4=Symbol(""),lM=Symbol(""),_A=Symbol("");function r2(){let d=[];function s(B){return d.push(B),()=>{const K=d.indexOf(B);K>-1&&d.splice(K,1)}}function E(){d=[]}return{add:s,list:()=>d.slice(),reset:E}}function s1(d,s,E,B,K,pt=_t=>_t()){const _t=B&&(B.enterCallbacks[K]=B.enterCallbacks[K]||[]);return()=>new Promise((Ot,jt)=>{const te=er=>{er===!1?jt(v_(xd.NAVIGATION_ABORTED,{from:E,to:s})):er instanceof Error?jt(er):yX(er)?jt(v_(xd.NAVIGATION_GUARD_REDIRECT,{from:s,to:er})):(_t&&B.enterCallbacks[K]===_t&&typeof er=="function"&&_t.push(er),Ot())},he=pt(()=>d.call(B&&B.instances[K],s,E,te));let De=Promise.resolve(he);d.length<3&&(De=De.then(te)),De.catch(er=>jt(er))})}function z8(d,s,E,B,K=pt=>pt()){const pt=[];for(const _t of d)for(const Ot in _t.components){let jt=_t.components[Ot];if(!(s!=="beforeRouteEnter"&&!_t.instances[Ot]))if(rO(jt)){const te=(jt.__vccOpts||jt)[s];te&&pt.push(s1(te,E,B,_t,Ot,K))}else{let te=jt();pt.push(()=>te.then(he=>{if(!he)throw new Error(`Couldn't resolve component "${Ot}" at "${_t.path}"`);const De=qK(he)?he.default:he;_t.mods[Ot]=he,_t.components[Ot]=De;const er=(De.__vccOpts||De)[s];return er&&s1(er,E,B,_t,Ot,K)()}))}}return pt}function TX(d,s){const E=[],B=[],K=[],pt=Math.max(s.matched.length,d.matched.length);for(let _t=0;_tg_(te,Ot))?B.push(Ot):E.push(Ot));const jt=d.matched[_t];jt&&(s.matched.find(te=>g_(te,jt))||K.push(jt))}return[E,B,K]}/*! + */const s_=typeof document<"u";function aO(d){return typeof d=="object"||"displayName"in d||"props"in d||"__vccOpts"in d}function uX(d){return d.__esModule||d[Symbol.toStringTag]==="Module"||d.default&&aO(d.default)}const Bh=Object.assign;function P8(d,s){const E={};for(const R in s){const Y=s[R];E[R]=Im(Y)?Y.map(d):d(Y)}return E}const C2=()=>{},Im=Array.isArray;function kL(d,s){const E={};for(const R in d)E[R]=R in s?s[R]:d[R];return E}const oO=/#/g,cX=/&/g,hX=/\//g,fX=/=/g,dX=/\?/g,sO=/\+/g,pX=/%5B/g,mX=/%5D/g,lO=/%5E/g,gX=/%60/g,uO=/%7B/g,vX=/%7C/g,cO=/%7D/g,yX=/%20/g;function uM(d){return d==null?"":encodeURI(""+d).replace(vX,"|").replace(pX,"[").replace(mX,"]")}function xX(d){return uM(d).replace(uO,"{").replace(cO,"}").replace(lO,"^")}function _A(d){return uM(d).replace(sO,"%2B").replace(yX,"+").replace(oO,"%23").replace(cX,"%26").replace(gX,"`").replace(uO,"{").replace(cO,"}").replace(lO,"^")}function _X(d){return _A(d).replace(fX,"%3D")}function bX(d){return uM(d).replace(oO,"%23").replace(dX,"%3F")}function wX(d){return bX(d).replace(hX,"%2F")}function W2(d){if(d==null)return null;try{return decodeURIComponent(""+d)}catch{}return""+d}const kX=/\/$/,TX=d=>d.replace(kX,"");function I8(d,s,E="/"){let R,Y={},dt="",_t="";const zt=s.indexOf("#");let jt=s.indexOf("?");return jt=zt>=0&&jt>zt?-1:jt,jt>=0&&(R=s.slice(0,jt),dt=s.slice(jt,zt>0?zt:s.length),Y=d(dt.slice(1))),zt>=0&&(R=R||s.slice(0,zt),_t=s.slice(zt,s.length)),R=EX(R??s,E),{fullPath:R+dt+_t,path:R,query:Y,hash:W2(_t)}}function AX(d,s){const E=s.query?d(s.query):"";return s.path+(E&&"?")+E+(s.hash||"")}function TL(d,s){return!s||!d.toLowerCase().startsWith(s.toLowerCase())?d:d.slice(s.length)||"/"}function MX(d,s,E){const R=s.matched.length-1,Y=E.matched.length-1;return R>-1&&R===Y&&v_(s.matched[R],E.matched[Y])&&hO(s.params,E.params)&&d(s.query)===d(E.query)&&s.hash===E.hash}function v_(d,s){return(d.aliasOf||d)===(s.aliasOf||s)}function hO(d,s){if(Object.keys(d).length!==Object.keys(s).length)return!1;for(const E in d)if(!SX(d[E],s[E]))return!1;return!0}function SX(d,s){return Im(d)?AL(d,s):Im(s)?AL(s,d):d===s}function AL(d,s){return Im(s)?d.length===s.length&&d.every((E,R)=>E===s[R]):d.length===1&&d[0]===s}function EX(d,s){if(d.startsWith("/"))return d;if(!d)return s;const E=s.split("/"),R=d.split("/"),Y=R[R.length-1];(Y===".."||Y===".")&&R.push("");let dt=E.length-1,_t,zt;for(_t=0;_t1&&dt--;else break;return E.slice(0,dt).join("/")+"/"+R.slice(_t).join("/")}const e1={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let bA=function(d){return d.pop="pop",d.push="push",d}({}),z8=function(d){return d.back="back",d.forward="forward",d.unknown="",d}({});function CX(d){if(!d)if(s_){const s=document.querySelector("base");d=s&&s.getAttribute("href")||"/",d=d.replace(/^\w+:\/\/[^\/]+/,"")}else d="/";return d[0]!=="/"&&d[0]!=="#"&&(d="/"+d),TX(d)}const LX=/^[^#]+#/;function PX(d,s){return d.replace(LX,"#")+s}function IX(d,s){const E=document.documentElement.getBoundingClientRect(),R=d.getBoundingClientRect();return{behavior:s.behavior,left:R.left-E.left-(s.left||0),top:R.top-E.top-(s.top||0)}}const H4=()=>({left:window.scrollX,top:window.scrollY});function zX(d){let s;if("el"in d){const E=d.el,R=typeof E=="string"&&E.startsWith("#"),Y=typeof E=="string"?R?document.getElementById(E.slice(1)):document.querySelector(E):E;if(!Y)return;s=IX(Y,d)}else s=d;"scrollBehavior"in document.documentElement.style?window.scrollTo(s):window.scrollTo(s.left!=null?s.left:window.scrollX,s.top!=null?s.top:window.scrollY)}function ML(d,s){return(history.state?history.state.position-s:-1)+d}const wA=new Map;function OX(d,s){wA.set(d,s)}function DX(d){const s=wA.get(d);return wA.delete(d),s}function FX(d){return typeof d=="string"||d&&typeof d=="object"}function fO(d){return typeof d=="string"||typeof d=="symbol"}let xd=function(d){return d[d.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",d[d.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",d[d.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",d[d.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",d[d.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",d}({});const dO=Symbol("");xd.MATCHER_NOT_FOUND+"",xd.NAVIGATION_GUARD_REDIRECT+"",xd.NAVIGATION_ABORTED+"",xd.NAVIGATION_CANCELLED+"",xd.NAVIGATION_DUPLICATED+"";function y_(d,s){return Bh(new Error,{type:d,[dO]:!0},s)}function Yg(d,s){return d instanceof Error&&dO in d&&(s==null||!!(d.type&s))}const BX=["params","query","hash"];function RX(d){if(typeof d=="string")return d;if(d.path!=null)return d.path;const s={};for(const E of BX)E in d&&(s[E]=d[E]);return JSON.stringify(s,null,2)}function NX(d){const s={};if(d===""||d==="?")return s;const E=(d[0]==="?"?d.slice(1):d).split("&");for(let R=0;RY&&_A(Y)):[R&&_A(R)]).forEach(Y=>{Y!==void 0&&(s+=(s.length?"&":"")+E,Y!=null&&(s+="="+Y))})}return s}function jX(d){const s={};for(const E in d){const R=d[E];R!==void 0&&(s[E]=Im(R)?R.map(Y=>Y==null?null:""+Y):R==null?R:""+R)}return s}const UX=Symbol(""),EL=Symbol(""),W4=Symbol(""),cM=Symbol(""),kA=Symbol("");function n2(){let d=[];function s(R){return d.push(R),()=>{const Y=d.indexOf(R);Y>-1&&d.splice(Y,1)}}function E(){d=[]}return{add:s,list:()=>d.slice(),reset:E}}function u1(d,s,E,R,Y,dt=_t=>_t()){const _t=R&&(R.enterCallbacks[Y]=R.enterCallbacks[Y]||[]);return()=>new Promise((zt,jt)=>{const te=Je=>{Je===!1?jt(y_(xd.NAVIGATION_ABORTED,{from:E,to:s})):Je instanceof Error?jt(Je):FX(Je)?jt(y_(xd.NAVIGATION_GUARD_REDIRECT,{from:s,to:Je})):(_t&&R.enterCallbacks[Y]===_t&&typeof Je=="function"&&_t.push(Je),zt())},ce=dt(()=>d.call(R&&R.instances[Y],s,E,te));let Ie=Promise.resolve(ce);d.length<3&&(Ie=Ie.then(te)),Ie.catch(Je=>jt(Je))})}function O8(d,s,E,R,Y=dt=>dt()){const dt=[];for(const _t of d)for(const zt in _t.components){let jt=_t.components[zt];if(!(s!=="beforeRouteEnter"&&!_t.instances[zt]))if(aO(jt)){const te=(jt.__vccOpts||jt)[s];te&&dt.push(u1(te,E,R,_t,zt,Y))}else{let te=jt();dt.push(()=>te.then(ce=>{if(!ce)throw new Error(`Couldn't resolve component "${zt}" at "${_t.path}"`);const Ie=uX(ce)?ce.default:ce;_t.mods[zt]=ce,_t.components[zt]=Ie;const Je=(Ie.__vccOpts||Ie)[s];return Je&&u1(Je,E,R,_t,zt,Y)()}))}}return dt}function VX(d,s){const E=[],R=[],Y=[],dt=Math.max(s.matched.length,d.matched.length);for(let _t=0;_tv_(te,zt))?R.push(zt):E.push(zt));const jt=d.matched[_t];jt&&(s.matched.find(te=>v_(te,jt))||Y.push(jt))}return[E,R,Y]}/*! * vue-router v4.6.3 * (c) 2025 Eduardo San Martin Morote * @license MIT - */let AX=()=>location.protocol+"//"+location.host;function hO(d,s){const{pathname:E,search:B,hash:K}=s,pt=d.indexOf("#");if(pt>-1){let _t=K.includes(d.slice(pt))?d.slice(pt).length:1,Ot=K.slice(_t);return Ot[0]!=="/"&&(Ot="/"+Ot),wL(Ot,"")}return wL(E,d)+B+K}function MX(d,s,E,B){let K=[],pt=[],_t=null;const Ot=({state:er})=>{const pr=hO(d,location),Mr=E.value,Tr=s.value;let Vr=0;if(er){if(E.value=pr,s.value=er,_t&&_t===Mr){_t=null;return}Vr=Tr?er.position-Tr.position:0}else B(pr);K.forEach(mn=>{mn(E.value,Mr,{delta:Vr,type:yA.pop,direction:Vr?Vr>0?I8.forward:I8.back:I8.unknown})})};function jt(){_t=E.value}function te(er){K.push(er);const pr=()=>{const Mr=K.indexOf(er);Mr>-1&&K.splice(Mr,1)};return pt.push(pr),pr}function he(){if(document.visibilityState==="hidden"){const{history:er}=window;if(!er.state)return;er.replaceState(Fh({},er.state,{scroll:U4()}),"")}}function De(){for(const er of pt)er();pt=[],window.removeEventListener("popstate",Ot),window.removeEventListener("pagehide",he),document.removeEventListener("visibilitychange",he)}return window.addEventListener("popstate",Ot),window.addEventListener("pagehide",he),document.addEventListener("visibilitychange",he),{pauseListeners:jt,listen:te,destroy:De}}function SL(d,s,E,B=!1,K=!1){return{back:d,current:s,forward:E,replaced:B,position:window.history.length,scroll:K?U4():null}}function SX(d){const{history:s,location:E}=window,B={value:hO(d,E)},K={value:s.state};K.value||pt(B.value,{back:null,current:B.value,forward:null,position:s.length-1,replaced:!0,scroll:null},!0);function pt(jt,te,he){const De=d.indexOf("#"),er=De>-1?(E.host&&document.querySelector("base")?d:d.slice(De))+jt:AX()+d+jt;try{s[he?"replaceState":"pushState"](te,"",er),K.value=te}catch(pr){console.error(pr),E[he?"replace":"assign"](er)}}function _t(jt,te){pt(jt,Fh({},s.state,SL(K.value.back,jt,K.value.forward,!0),te,{position:K.value.position}),!0),B.value=jt}function Ot(jt,te){const he=Fh({},K.value,s.state,{forward:jt,scroll:U4()});pt(he.current,he,!0),pt(jt,Fh({},SL(B.value,jt,null),{position:he.position+1},te),!1),B.value=jt}return{location:B,state:K,push:Ot,replace:_t}}function EX(d){d=hX(d);const s=SX(d),E=MX(d,s.state,s.location,s.replace);function B(pt,_t=!0){_t||E.pauseListeners(),history.go(pt)}const K=Fh({location:"",base:d,go:B,createHref:dX.bind(null,d)},s,E);return Object.defineProperty(K,"location",{enumerable:!0,get:()=>s.location.value}),Object.defineProperty(K,"state",{enumerable:!0,get:()=>s.state.value}),K}let xy=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.Group=2]="Group",d}({});var np=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.ParamRegExp=2]="ParamRegExp",d[d.ParamRegExpEnd=3]="ParamRegExpEnd",d[d.EscapeNext=4]="EscapeNext",d}(np||{});const CX={type:xy.Static,value:""},LX=/[a-zA-Z0-9_]/;function PX(d){if(!d)return[[]];if(d==="/")return[[CX]];if(!d.startsWith("/"))throw new Error(`Invalid path "${d}"`);function s(pr){throw new Error(`ERR (${E})/"${te}": ${pr}`)}let E=np.Static,B=E;const K=[];let pt;function _t(){pt&&K.push(pt),pt=[]}let Ot=0,jt,te="",he="";function De(){te&&(E===np.Static?pt.push({type:xy.Static,value:te}):E===np.Param||E===np.ParamRegExp||E===np.ParamRegExpEnd?(pt.length>1&&(jt==="*"||jt==="+")&&s(`A repeatable param (${te}) must be alone in its segment. eg: '/:ids+.`),pt.push({type:xy.Param,value:te,regexp:he,repeatable:jt==="*"||jt==="+",optional:jt==="*"||jt==="?"})):s("Invalid state to consume buffer"),te="")}function er(){te+=jt}for(;Ots.length?s.length===1&&s[0]===h0.Static+h0.Segment?1:-1:0}function fO(d,s){let E=0;const B=d.score,K=s.score;for(;E0&&s[s.length-1]<0}const FX={strict:!1,end:!0,sensitive:!1};function RX(d,s,E){const B=OX(PX(d.path),E),K=Fh(B,{record:d,parent:s,children:[],alias:[]});return s&&!K.record.aliasOf==!s.record.aliasOf&&s.children.push(K),K}function BX(d,s){const E=[],B=new Map;s=bL(FX,s);function K(De){return B.get(De)}function pt(De,er,pr){const Mr=!pr,Tr=PL(De);Tr.aliasOf=pr&&pr.record;const Vr=bL(s,De),mn=[Tr];if("alias"in De){const Jn=typeof De.alias=="string"?[De.alias]:De.alias;for(const Bn of Jn)mn.push(PL(Fh({},Tr,{components:pr?pr.record.components:Tr.components,path:Bn,aliasOf:pr?pr.record:Tr})))}let Dt,cn;for(const Jn of mn){const{path:Bn}=Jn;if(er&&Bn[0]!=="/"){const ni=er.record.path,Wi=ni[ni.length-1]==="/"?"":"/";Jn.path=er.record.path+(Bn&&Wi+Bn)}if(Dt=RX(Jn,er,Vr),pr?pr.alias.push(Dt):(cn=cn||Dt,cn!==Dt&&cn.alias.push(Dt),Mr&&De.name&&!IL(Dt)&&_t(De.name)),dO(Dt)&&jt(Dt),Tr.children){const ni=Tr.children;for(let Wi=0;Wi{_t(cn)}:C2}function _t(De){if(uO(De)){const er=B.get(De);er&&(B.delete(De),E.splice(E.indexOf(er),1),er.children.forEach(_t),er.alias.forEach(_t))}else{const er=E.indexOf(De);er>-1&&(E.splice(er,1),De.record.name&&B.delete(De.record.name),De.children.forEach(_t),De.alias.forEach(_t))}}function Ot(){return E}function jt(De){const er=UX(De,E);E.splice(er,0,De),De.record.name&&!IL(De)&&B.set(De.record.name,De)}function te(De,er){let pr,Mr={},Tr,Vr;if("name"in De&&De.name){if(pr=B.get(De.name),!pr)throw v_(xd.MATCHER_NOT_FOUND,{location:De});Vr=pr.record.name,Mr=Fh(LL(er.params,pr.keys.filter(cn=>!cn.optional).concat(pr.parent?pr.parent.keys.filter(cn=>cn.optional):[]).map(cn=>cn.name)),De.params&&LL(De.params,pr.keys.map(cn=>cn.name))),Tr=pr.stringify(Mr)}else if(De.path!=null)Tr=De.path,pr=E.find(cn=>cn.re.test(Tr)),pr&&(Mr=pr.parse(Tr),Vr=pr.record.name);else{if(pr=er.name?B.get(er.name):E.find(cn=>cn.re.test(er.path)),!pr)throw v_(xd.MATCHER_NOT_FOUND,{location:De,currentLocation:er});Vr=pr.record.name,Mr=Fh({},er.params,De.params),Tr=pr.stringify(Mr)}const mn=[];let Dt=pr;for(;Dt;)mn.unshift(Dt.record),Dt=Dt.parent;return{name:Vr,path:Tr,params:Mr,matched:mn,meta:jX(mn)}}d.forEach(De=>pt(De));function he(){E.length=0,B.clear()}return{addRoute:pt,resolve:te,removeRoute:_t,clearRoutes:he,getRoutes:Ot,getRecordMatcher:K}}function LL(d,s){const E={};for(const B of s)B in d&&(E[B]=d[B]);return E}function PL(d){const s={path:d.path,redirect:d.redirect,name:d.name,meta:d.meta||{},aliasOf:d.aliasOf,beforeEnter:d.beforeEnter,props:NX(d),children:d.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in d?d.components||null:d.component&&{default:d.component}};return Object.defineProperty(s,"mods",{value:{}}),s}function NX(d){const s={},E=d.props||!1;if("component"in d)s.default=E;else for(const B in d.components)s[B]=typeof E=="object"?E[B]:E;return s}function IL(d){for(;d;){if(d.record.aliasOf)return!0;d=d.parent}return!1}function jX(d){return d.reduce((s,E)=>Fh(s,E.meta),{})}function UX(d,s){let E=0,B=s.length;for(;E!==B;){const pt=E+B>>1;fO(d,s[pt])<0?B=pt:E=pt+1}const K=VX(d);return K&&(B=s.lastIndexOf(K,B-1)),B}function VX(d){let s=d;for(;s=s.parent;)if(dO(s)&&fO(d,s)===0)return s}function dO({record:d}){return!!(d.name||d.components&&Object.keys(d.components).length||d.redirect)}function zL(d){const s=um(V4),E=um(lM),B=$o(()=>{const jt=zl(d.to);return s.resolve(jt)}),K=$o(()=>{const{matched:jt}=B.value,{length:te}=jt,he=jt[te-1],De=E.matched;if(!he||!De.length)return-1;const er=De.findIndex(g_.bind(null,he));if(er>-1)return er;const pr=OL(jt[te-2]);return te>1&&OL(he)===pr&&De[De.length-1].path!==pr?De.findIndex(g_.bind(null,jt[te-2])):er}),pt=$o(()=>K.value>-1&&ZX(E.params,B.value.params)),_t=$o(()=>K.value>-1&&K.value===E.matched.length-1&&lO(E.params,B.value.params));function Ot(jt={}){if($X(jt)){const te=s[zl(d.replace)?"replace":"push"](zl(d.to)).catch(C2);return d.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>te),te}return Promise.resolve()}return{route:B,href:$o(()=>B.value.href),isActive:pt,isExactActive:_t,navigate:Ot}}function HX(d){return d.length===1?d[0]:d}const WX=Dc({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:zL,setup(d,{slots:s}){const E=My(zL(d)),{options:B}=um(V4),K=$o(()=>({[DL(d.activeClass,B.linkActiveClass,"router-link-active")]:E.isActive,[DL(d.exactActiveClass,B.linkExactActiveClass,"router-link-exact-active")]:E.isExactActive}));return()=>{const pt=s.default&&HX(s.default(E));return d.custom?pt:iM("a",{"aria-current":E.isExactActive?d.ariaCurrentValue:null,href:E.href,onClick:E.navigate,class:K.value},pt)}}}),qX=WX;function $X(d){if(!(d.metaKey||d.altKey||d.ctrlKey||d.shiftKey)&&!d.defaultPrevented&&!(d.button!==void 0&&d.button!==0)){if(d.currentTarget&&d.currentTarget.getAttribute){const s=d.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(s))return}return d.preventDefault&&d.preventDefault(),!0}}function ZX(d,s){for(const E in s){const B=s[E],K=d[E];if(typeof B=="string"){if(B!==K)return!1}else if(!Im(K)||K.length!==B.length||B.some((pt,_t)=>pt!==K[_t]))return!1}return!0}function OL(d){return d?d.aliasOf?d.aliasOf.path:d.path:""}const DL=(d,s,E)=>d??s??E,GX=Dc({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(d,{attrs:s,slots:E}){const B=um(_A),K=$o(()=>d.route||B.value),pt=um(ML,0),_t=$o(()=>{let te=zl(pt);const{matched:he}=K.value;let De;for(;(De=he[te])&&!De.components;)te++;return te}),Ot=$o(()=>K.value.matched[_t.value]);K5(ML,$o(()=>_t.value+1)),K5(kX,Ot),K5(_A,K);const jt=Ga();return Em(()=>[jt.value,Ot.value,d.name],([te,he,De],[er,pr,Mr])=>{he&&(he.instances[De]=te,pr&&pr!==he&&te&&te===er&&(he.leaveGuards.size||(he.leaveGuards=pr.leaveGuards),he.updateGuards.size||(he.updateGuards=pr.updateGuards))),te&&he&&(!pr||!g_(he,pr)||!er)&&(he.enterCallbacks[De]||[]).forEach(Tr=>Tr(te))},{flush:"post"}),()=>{const te=K.value,he=d.name,De=Ot.value,er=De&&De.components[he];if(!er)return FL(E.default,{Component:er,route:te});const pr=De.props[he],Mr=pr?pr===!0?te.params:typeof pr=="function"?pr(te):pr:null,Vr=iM(er,Fh({},Mr,s,{onVnodeUnmounted:mn=>{mn.component.isUnmounted&&(De.instances[he]=null)},ref:jt}));return FL(E.default,{Component:Vr,route:te})||Vr}}});function FL(d,s){if(!d)return null;const E=d(s);return E.length===1?E[0]:E}const YX=GX;function KX(d){const s=BX(d.routes,d),E=d.parseQuery||bX,B=d.stringifyQuery||AL,K=d.history,pt=r2(),_t=r2(),Ot=r2(),jt=HG(Qv);let te=Qv;a_&&d.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const he=L8.bind(null,da=>""+da),De=L8.bind(null,iX),er=L8.bind(null,W2);function pr(da,no){let po,us;return uO(da)?(po=s.getRecordMatcher(da),us=no):us=da,s.addRoute(us,po)}function Mr(da){const no=s.getRecordMatcher(da);no&&s.removeRoute(no)}function Tr(){return s.getRoutes().map(da=>da.record)}function Vr(da){return!!s.getRecordMatcher(da)}function mn(da,no){if(no=Fh({},no||jt.value),typeof da=="string"){const hi=P8(E,da,no.path),go=s.resolve({path:hi.path},no),Mo=K.createHref(hi.fullPath);return Fh(hi,go,{params:er(go.params),hash:W2(hi.hash),redirectedFrom:void 0,href:Mo})}let po;if(da.path!=null)po=Fh({},da,{path:P8(E,da.path,no.path).path});else{const hi=Fh({},da.params);for(const go in hi)hi[go]==null&&delete hi[go];po=Fh({},da,{params:De(hi)}),no.params=De(no.params)}const us=s.resolve(po,no),Ho=da.hash||"";us.params=he(er(us.params));const vi=sX(B,Fh({},da,{hash:eX(Ho),path:us.path})),wi=K.createHref(vi);return Fh({fullPath:vi,hash:Ho,query:B===AL?wX(da.query):da.query||{}},us,{redirectedFrom:void 0,href:wi})}function Dt(da){return typeof da=="string"?P8(E,da,jt.value.path):Fh({},da)}function cn(da,no){if(te!==da)return v_(xd.NAVIGATION_CANCELLED,{from:no,to:da})}function Jn(da){return Wi(da)}function Bn(da){return Jn(Fh(Dt(da),{replace:!0}))}function ni(da,no){const po=da.matched[da.matched.length-1];if(po&&po.redirect){const{redirect:us}=po;let Ho=typeof us=="function"?us(da,no):us;return typeof Ho=="string"&&(Ho=Ho.includes("?")||Ho.includes("#")?Ho=Dt(Ho):{path:Ho},Ho.params={}),Fh({query:da.query,hash:da.hash,params:Ho.path!=null?{}:da.params},Ho)}}function Wi(da,no){const po=te=mn(da),us=jt.value,Ho=da.state,vi=da.force,wi=da.replace===!0,hi=ni(po,us);if(hi)return Wi(Fh(Dt(hi),{state:typeof hi=="object"?Fh({},Ho,hi.state):Ho,force:vi,replace:wi}),no||po);const go=po;go.redirectedFrom=no;let Mo;return!vi&&lX(B,us,po)&&(Mo=v_(xd.NAVIGATION_DUPLICATED,{to:go,from:us}),mo(us,us,!0,!1)),(Mo?Promise.resolve(Mo):Di(go,us)).catch(To=>Gg(To)?Gg(To,xd.NAVIGATION_GUARD_REDIRECT)?To:ho(To):Ma(To,go,us)).then(To=>{if(To){if(Gg(To,xd.NAVIGATION_GUARD_REDIRECT))return Wi(Fh({replace:wi},Dt(To.to),{state:typeof To.to=="object"?Fh({},Ho,To.to.state):Ho,force:vi}),no||go)}else To=Pi(go,us,!0,wi,Ho);return Fi(go,us,To),To})}function Un(da,no){const po=cn(da,no);return po?Promise.reject(po):Promise.resolve()}function qr(da){const no=ko.values().next().value;return no&&typeof no.runWithContext=="function"?no.runWithContext(da):da()}function Di(da,no){let po;const[us,Ho,vi]=TX(da,no);po=z8(us.reverse(),"beforeRouteLeave",da,no);for(const hi of us)hi.leaveGuards.forEach(go=>{po.push(s1(go,da,no))});const wi=Un.bind(null,da,no);return po.push(wi),Ia(po).then(()=>{po=[];for(const hi of pt.list())po.push(s1(hi,da,no));return po.push(wi),Ia(po)}).then(()=>{po=z8(Ho,"beforeRouteUpdate",da,no);for(const hi of Ho)hi.updateGuards.forEach(go=>{po.push(s1(go,da,no))});return po.push(wi),Ia(po)}).then(()=>{po=[];for(const hi of vi)if(hi.beforeEnter)if(Im(hi.beforeEnter))for(const go of hi.beforeEnter)po.push(s1(go,da,no));else po.push(s1(hi.beforeEnter,da,no));return po.push(wi),Ia(po)}).then(()=>(da.matched.forEach(hi=>hi.enterCallbacks={}),po=z8(vi,"beforeRouteEnter",da,no,qr),po.push(wi),Ia(po))).then(()=>{po=[];for(const hi of _t.list())po.push(s1(hi,da,no));return po.push(wi),Ia(po)}).catch(hi=>Gg(hi,xd.NAVIGATION_CANCELLED)?hi:Promise.reject(hi))}function Fi(da,no,po){Ot.list().forEach(us=>qr(()=>us(da,no,po)))}function Pi(da,no,po,us,Ho){const vi=cn(da,no);if(vi)return vi;const wi=no===Qv,hi=a_?history.state:{};po&&(us||wi?K.replace(da.fullPath,Fh({scroll:wi&&hi&&hi.scroll},Ho)):K.push(da.fullPath,Ho)),jt.value=da,mo(da,no,po,wi),ho()}let bi;function Yi(){bi||(bi=K.listen((da,no,po)=>{if(!ro.listening)return;const us=mn(da),Ho=ni(us,ro.currentRoute.value);if(Ho){Wi(Fh(Ho,{replace:!0,force:!0}),us).catch(C2);return}te=us;const vi=jt.value;a_&&gX(TL(vi.fullPath,po.delta),U4()),Di(us,vi).catch(wi=>Gg(wi,xd.NAVIGATION_ABORTED|xd.NAVIGATION_CANCELLED)?wi:Gg(wi,xd.NAVIGATION_GUARD_REDIRECT)?(Wi(Fh(Dt(wi.to),{force:!0}),us).then(hi=>{Gg(hi,xd.NAVIGATION_ABORTED|xd.NAVIGATION_DUPLICATED)&&!po.delta&&po.type===yA.pop&&K.go(-1,!1)}).catch(C2),Promise.reject()):(po.delta&&K.go(-po.delta,!1),Ma(wi,us,vi))).then(wi=>{wi=wi||Pi(us,vi,!1),wi&&(po.delta&&!Gg(wi,xd.NAVIGATION_CANCELLED)?K.go(-po.delta,!1):po.type===yA.pop&&Gg(wi,xd.NAVIGATION_ABORTED|xd.NAVIGATION_DUPLICATED)&&K.go(-1,!1)),Fi(us,vi,wi)}).catch(C2)}))}let Ca=r2(),Ni=r2(),si;function Ma(da,no,po){ho(da);const us=Ni.list();return us.length?us.forEach(Ho=>Ho(da,no,po)):console.error(da),Promise.reject(da)}function zo(){return si&&jt.value!==Qv?Promise.resolve():new Promise((da,no)=>{Ca.add([da,no])})}function ho(da){return si||(si=!da,Yi(),Ca.list().forEach(([no,po])=>da?po(da):no()),Ca.reset()),da}function mo(da,no,po,us){const{scrollBehavior:Ho}=d;if(!a_||!Ho)return Promise.resolve();const vi=!po&&vX(TL(da.fullPath,0))||(us||!po)&&history.state&&history.state.scroll||null;return om().then(()=>Ho(da,no,vi)).then(wi=>wi&&mX(wi)).catch(wi=>Ma(wi,da,no))}const Ts=da=>K.go(da);let xl;const ko=new Set,ro={currentRoute:jt,listening:!0,addRoute:pr,removeRoute:Mr,clearRoutes:s.clearRoutes,hasRoute:Vr,getRoutes:Tr,resolve:mn,options:d,push:Jn,replace:Bn,go:Ts,back:()=>Ts(-1),forward:()=>Ts(1),beforeEach:pt.add,beforeResolve:_t.add,afterEach:Ot.add,onError:Ni.add,isReady:zo,install(da){da.component("RouterLink",qX),da.component("RouterView",YX),da.config.globalProperties.$router=ro,Object.defineProperty(da.config.globalProperties,"$route",{enumerable:!0,get:()=>zl(jt)}),a_&&!xl&&jt.value===Qv&&(xl=!0,Jn(K.location).catch(us=>{}));const no={};for(const us in Qv)Object.defineProperty(no,us,{get:()=>jt.value[us],enumerable:!0});da.provide(V4,ro),da.provide(lM,JI(no)),da.provide(_A,jt);const po=da.unmount;ko.add(da),da.unmount=function(){ko.delete(da),ko.size<1&&(te=Qv,bi&&bi(),bi=null,jt.value=Qv,xl=!1,si=!1),po()}}};function Ia(da){return da.reduce((no,po)=>no.then(()=>qr(po)),Promise.resolve())}return ro}function pO(){return um(V4)}function mO(d){return um(lM)}function gO(d,s){return function(){return d.apply(s,arguments)}}const{toString:XX}=Object.prototype,{getPrototypeOf:uM}=Object,{iterator:H4,toStringTag:vO}=Symbol,W4=(d=>s=>{const E=XX.call(s);return d[E]||(d[E]=E.slice(8,-1).toLowerCase())})(Object.create(null)),zm=d=>(d=d.toLowerCase(),s=>W4(s)===d),q4=d=>s=>typeof s===d,{isArray:w_}=Array,y_=q4("undefined");function nw(d){return d!==null&&!y_(d)&&d.constructor!==null&&!y_(d.constructor)&&S0(d.constructor.isBuffer)&&d.constructor.isBuffer(d)}const yO=zm("ArrayBuffer");function JX(d){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(d):s=d&&d.buffer&&yO(d.buffer),s}const QX=q4("string"),S0=q4("function"),xO=q4("number"),iw=d=>d!==null&&typeof d=="object",tJ=d=>d===!0||d===!1,t4=d=>{if(W4(d)!=="object")return!1;const s=uM(d);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(vO in d)&&!(H4 in d)},eJ=d=>{if(!iw(d)||nw(d))return!1;try{return Object.keys(d).length===0&&Object.getPrototypeOf(d)===Object.prototype}catch{return!1}},rJ=zm("Date"),nJ=zm("File"),iJ=zm("Blob"),aJ=zm("FileList"),oJ=d=>iw(d)&&S0(d.pipe),sJ=d=>{let s;return d&&(typeof FormData=="function"&&d instanceof FormData||S0(d.append)&&((s=W4(d))==="formdata"||s==="object"&&S0(d.toString)&&d.toString()==="[object FormData]"))},lJ=zm("URLSearchParams"),[uJ,cJ,hJ,fJ]=["ReadableStream","Request","Response","Headers"].map(zm),dJ=d=>d.trim?d.trim():d.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function aw(d,s,{allOwnKeys:E=!1}={}){if(d===null||typeof d>"u")return;let B,K;if(typeof d!="object"&&(d=[d]),w_(d))for(B=0,K=d.length;B0;)if(K=E[B],s===K.toLowerCase())return K;return null}const _y=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,bO=d=>!y_(d)&&d!==_y;function bA(){const{caseless:d,skipUndefined:s}=bO(this)&&this||{},E={},B=(K,pt)=>{const _t=d&&_O(E,pt)||pt;t4(E[_t])&&t4(K)?E[_t]=bA(E[_t],K):t4(K)?E[_t]=bA({},K):w_(K)?E[_t]=K.slice():(!s||!y_(K))&&(E[_t]=K)};for(let K=0,pt=arguments.length;K(aw(s,(K,pt)=>{E&&S0(K)?d[pt]=gO(K,E):d[pt]=K},{allOwnKeys:B}),d),mJ=d=>(d.charCodeAt(0)===65279&&(d=d.slice(1)),d),gJ=(d,s,E,B)=>{d.prototype=Object.create(s.prototype,B),d.prototype.constructor=d,Object.defineProperty(d,"super",{value:s.prototype}),E&&Object.assign(d.prototype,E)},vJ=(d,s,E,B)=>{let K,pt,_t;const Ot={};if(s=s||{},d==null)return s;do{for(K=Object.getOwnPropertyNames(d),pt=K.length;pt-- >0;)_t=K[pt],(!B||B(_t,d,s))&&!Ot[_t]&&(s[_t]=d[_t],Ot[_t]=!0);d=E!==!1&&uM(d)}while(d&&(!E||E(d,s))&&d!==Object.prototype);return s},yJ=(d,s,E)=>{d=String(d),(E===void 0||E>d.length)&&(E=d.length),E-=s.length;const B=d.indexOf(s,E);return B!==-1&&B===E},xJ=d=>{if(!d)return null;if(w_(d))return d;let s=d.length;if(!xO(s))return null;const E=new Array(s);for(;s-- >0;)E[s]=d[s];return E},_J=(d=>s=>d&&s instanceof d)(typeof Uint8Array<"u"&&uM(Uint8Array)),bJ=(d,s)=>{const B=(d&&d[H4]).call(d);let K;for(;(K=B.next())&&!K.done;){const pt=K.value;s.call(d,pt[0],pt[1])}},wJ=(d,s)=>{let E;const B=[];for(;(E=d.exec(s))!==null;)B.push(E);return B},kJ=zm("HTMLFormElement"),TJ=d=>d.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(E,B,K){return B.toUpperCase()+K}),RL=(({hasOwnProperty:d})=>(s,E)=>d.call(s,E))(Object.prototype),AJ=zm("RegExp"),wO=(d,s)=>{const E=Object.getOwnPropertyDescriptors(d),B={};aw(E,(K,pt)=>{let _t;(_t=s(K,pt,d))!==!1&&(B[pt]=_t||K)}),Object.defineProperties(d,B)},MJ=d=>{wO(d,(s,E)=>{if(S0(d)&&["arguments","caller","callee"].indexOf(E)!==-1)return!1;const B=d[E];if(S0(B)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+E+"'")})}})},SJ=(d,s)=>{const E={},B=K=>{K.forEach(pt=>{E[pt]=!0})};return w_(d)?B(d):B(String(d).split(s)),E},EJ=()=>{},CJ=(d,s)=>d!=null&&Number.isFinite(d=+d)?d:s;function LJ(d){return!!(d&&S0(d.append)&&d[vO]==="FormData"&&d[H4])}const PJ=d=>{const s=new Array(10),E=(B,K)=>{if(iw(B)){if(s.indexOf(B)>=0)return;if(nw(B))return B;if(!("toJSON"in B)){s[K]=B;const pt=w_(B)?[]:{};return aw(B,(_t,Ot)=>{const jt=E(_t,K+1);!y_(jt)&&(pt[Ot]=jt)}),s[K]=void 0,pt}}return B};return E(d,0)},IJ=zm("AsyncFunction"),zJ=d=>d&&(iw(d)||S0(d))&&S0(d.then)&&S0(d.catch),kO=((d,s)=>d?setImmediate:s?((E,B)=>(_y.addEventListener("message",({source:K,data:pt})=>{K===_y&&pt===E&&B.length&&B.shift()()},!1),K=>{B.push(K),_y.postMessage(E,"*")}))(`axios@${Math.random()}`,[]):E=>setTimeout(E))(typeof setImmediate=="function",S0(_y.postMessage)),OJ=typeof queueMicrotask<"u"?queueMicrotask.bind(_y):typeof process<"u"&&process.nextTick||kO,DJ=d=>d!=null&&S0(d[H4]),eo={isArray:w_,isArrayBuffer:yO,isBuffer:nw,isFormData:sJ,isArrayBufferView:JX,isString:QX,isNumber:xO,isBoolean:tJ,isObject:iw,isPlainObject:t4,isEmptyObject:eJ,isReadableStream:uJ,isRequest:cJ,isResponse:hJ,isHeaders:fJ,isUndefined:y_,isDate:rJ,isFile:nJ,isBlob:iJ,isRegExp:AJ,isFunction:S0,isStream:oJ,isURLSearchParams:lJ,isTypedArray:_J,isFileList:aJ,forEach:aw,merge:bA,extend:pJ,trim:dJ,stripBOM:mJ,inherits:gJ,toFlatObject:vJ,kindOf:W4,kindOfTest:zm,endsWith:yJ,toArray:xJ,forEachEntry:bJ,matchAll:wJ,isHTMLForm:kJ,hasOwnProperty:RL,hasOwnProp:RL,reduceDescriptors:wO,freezeMethods:MJ,toObjectSet:SJ,toCamelCase:TJ,noop:EJ,toFiniteNumber:CJ,findKey:_O,global:_y,isContextDefined:bO,isSpecCompliantForm:LJ,toJSONObject:PJ,isAsyncFn:IJ,isThenable:zJ,setImmediate:kO,asap:OJ,isIterable:DJ};function Ju(d,s,E,B,K){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=d,this.name="AxiosError",s&&(this.code=s),E&&(this.config=E),B&&(this.request=B),K&&(this.response=K,this.status=K.status?K.status:null)}eo.inherits(Ju,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:eo.toJSONObject(this.config),code:this.code,status:this.status}}});const TO=Ju.prototype,AO={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(d=>{AO[d]={value:d}});Object.defineProperties(Ju,AO);Object.defineProperty(TO,"isAxiosError",{value:!0});Ju.from=(d,s,E,B,K,pt)=>{const _t=Object.create(TO);eo.toFlatObject(d,_t,function(he){return he!==Error.prototype},te=>te!=="isAxiosError");const Ot=d&&d.message?d.message:"Error",jt=s==null&&d?d.code:s;return Ju.call(_t,Ot,jt,E,B,K),d&&_t.cause==null&&Object.defineProperty(_t,"cause",{value:d,configurable:!0}),_t.name=d&&d.name||"Error",pt&&Object.assign(_t,pt),_t};const FJ=null;function wA(d){return eo.isPlainObject(d)||eo.isArray(d)}function MO(d){return eo.endsWith(d,"[]")?d.slice(0,-2):d}function BL(d,s,E){return d?d.concat(s).map(function(K,pt){return K=MO(K),!E&&pt?"["+K+"]":K}).join(E?".":""):s}function RJ(d){return eo.isArray(d)&&!d.some(wA)}const BJ=eo.toFlatObject(eo,{},null,function(s){return/^is[A-Z]/.test(s)});function $4(d,s,E){if(!eo.isObject(d))throw new TypeError("target must be an object");s=s||new FormData,E=eo.toFlatObject(E,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Tr,Vr){return!eo.isUndefined(Vr[Tr])});const B=E.metaTokens,K=E.visitor||he,pt=E.dots,_t=E.indexes,jt=(E.Blob||typeof Blob<"u"&&Blob)&&eo.isSpecCompliantForm(s);if(!eo.isFunction(K))throw new TypeError("visitor must be a function");function te(Mr){if(Mr===null)return"";if(eo.isDate(Mr))return Mr.toISOString();if(eo.isBoolean(Mr))return Mr.toString();if(!jt&&eo.isBlob(Mr))throw new Ju("Blob is not supported. Use a Buffer instead.");return eo.isArrayBuffer(Mr)||eo.isTypedArray(Mr)?jt&&typeof Blob=="function"?new Blob([Mr]):Buffer.from(Mr):Mr}function he(Mr,Tr,Vr){let mn=Mr;if(Mr&&!Vr&&typeof Mr=="object"){if(eo.endsWith(Tr,"{}"))Tr=B?Tr:Tr.slice(0,-2),Mr=JSON.stringify(Mr);else if(eo.isArray(Mr)&&RJ(Mr)||(eo.isFileList(Mr)||eo.endsWith(Tr,"[]"))&&(mn=eo.toArray(Mr)))return Tr=MO(Tr),mn.forEach(function(cn,Jn){!(eo.isUndefined(cn)||cn===null)&&s.append(_t===!0?BL([Tr],Jn,pt):_t===null?Tr:Tr+"[]",te(cn))}),!1}return wA(Mr)?!0:(s.append(BL(Vr,Tr,pt),te(Mr)),!1)}const De=[],er=Object.assign(BJ,{defaultVisitor:he,convertValue:te,isVisitable:wA});function pr(Mr,Tr){if(!eo.isUndefined(Mr)){if(De.indexOf(Mr)!==-1)throw Error("Circular reference detected in "+Tr.join("."));De.push(Mr),eo.forEach(Mr,function(mn,Dt){(!(eo.isUndefined(mn)||mn===null)&&K.call(s,mn,eo.isString(Dt)?Dt.trim():Dt,Tr,er))===!0&&pr(mn,Tr?Tr.concat(Dt):[Dt])}),De.pop()}}if(!eo.isObject(d))throw new TypeError("data must be an object");return pr(d),s}function NL(d){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(d).replace(/[!'()~]|%20|%00/g,function(B){return s[B]})}function cM(d,s){this._pairs=[],d&&$4(d,this,s)}const SO=cM.prototype;SO.append=function(s,E){this._pairs.push([s,E])};SO.toString=function(s){const E=s?function(B){return s.call(this,B,NL)}:NL;return this._pairs.map(function(K){return E(K[0])+"="+E(K[1])},"").join("&")};function NJ(d){return encodeURIComponent(d).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function EO(d,s,E){if(!s)return d;const B=E&&E.encode||NJ;eo.isFunction(E)&&(E={serialize:E});const K=E&&E.serialize;let pt;if(K?pt=K(s,E):pt=eo.isURLSearchParams(s)?s.toString():new cM(s,E).toString(B),pt){const _t=d.indexOf("#");_t!==-1&&(d=d.slice(0,_t)),d+=(d.indexOf("?")===-1?"?":"&")+pt}return d}class jL{constructor(){this.handlers=[]}use(s,E,B){return this.handlers.push({fulfilled:s,rejected:E,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){eo.forEach(this.handlers,function(B){B!==null&&s(B)})}}const CO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jJ=typeof URLSearchParams<"u"?URLSearchParams:cM,UJ=typeof FormData<"u"?FormData:null,VJ=typeof Blob<"u"?Blob:null,HJ={isBrowser:!0,classes:{URLSearchParams:jJ,FormData:UJ,Blob:VJ},protocols:["http","https","file","blob","url","data"]},hM=typeof window<"u"&&typeof document<"u",kA=typeof navigator=="object"&&navigator||void 0,WJ=hM&&(!kA||["ReactNative","NativeScript","NS"].indexOf(kA.product)<0),qJ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$J=hM&&window.location.href||"http://localhost",ZJ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hM,hasStandardBrowserEnv:WJ,hasStandardBrowserWebWorkerEnv:qJ,navigator:kA,origin:$J},Symbol.toStringTag,{value:"Module"})),Xp={...ZJ,...HJ};function GJ(d,s){return $4(d,new Xp.classes.URLSearchParams,{visitor:function(E,B,K,pt){return Xp.isNode&&eo.isBuffer(E)?(this.append(B,E.toString("base64")),!1):pt.defaultVisitor.apply(this,arguments)},...s})}function YJ(d){return eo.matchAll(/\w+|\[(\w*)]/g,d).map(s=>s[0]==="[]"?"":s[1]||s[0])}function KJ(d){const s={},E=Object.keys(d);let B;const K=E.length;let pt;for(B=0;B=E.length;return _t=!_t&&eo.isArray(K)?K.length:_t,jt?(eo.hasOwnProp(K,_t)?K[_t]=[K[_t],B]:K[_t]=B,!Ot):((!K[_t]||!eo.isObject(K[_t]))&&(K[_t]=[]),s(E,B,K[_t],pt)&&eo.isArray(K[_t])&&(K[_t]=KJ(K[_t])),!Ot)}if(eo.isFormData(d)&&eo.isFunction(d.entries)){const E={};return eo.forEachEntry(d,(B,K)=>{s(YJ(B),K,E,0)}),E}return null}function XJ(d,s,E){if(eo.isString(d))try{return(s||JSON.parse)(d),eo.trim(d)}catch(B){if(B.name!=="SyntaxError")throw B}return(E||JSON.stringify)(d)}const ow={transitional:CO,adapter:["xhr","http","fetch"],transformRequest:[function(s,E){const B=E.getContentType()||"",K=B.indexOf("application/json")>-1,pt=eo.isObject(s);if(pt&&eo.isHTMLForm(s)&&(s=new FormData(s)),eo.isFormData(s))return K?JSON.stringify(LO(s)):s;if(eo.isArrayBuffer(s)||eo.isBuffer(s)||eo.isStream(s)||eo.isFile(s)||eo.isBlob(s)||eo.isReadableStream(s))return s;if(eo.isArrayBufferView(s))return s.buffer;if(eo.isURLSearchParams(s))return E.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),s.toString();let Ot;if(pt){if(B.indexOf("application/x-www-form-urlencoded")>-1)return GJ(s,this.formSerializer).toString();if((Ot=eo.isFileList(s))||B.indexOf("multipart/form-data")>-1){const jt=this.env&&this.env.FormData;return $4(Ot?{"files[]":s}:s,jt&&new jt,this.formSerializer)}}return pt||K?(E.setContentType("application/json",!1),XJ(s)):s}],transformResponse:[function(s){const E=this.transitional||ow.transitional,B=E&&E.forcedJSONParsing,K=this.responseType==="json";if(eo.isResponse(s)||eo.isReadableStream(s))return s;if(s&&eo.isString(s)&&(B&&!this.responseType||K)){const _t=!(E&&E.silentJSONParsing)&&K;try{return JSON.parse(s,this.parseReviver)}catch(Ot){if(_t)throw Ot.name==="SyntaxError"?Ju.from(Ot,Ju.ERR_BAD_RESPONSE,this,null,this.response):Ot}}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xp.classes.FormData,Blob:Xp.classes.Blob},validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};eo.forEach(["delete","get","head","post","put","patch"],d=>{ow.headers[d]={}});const JJ=eo.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),QJ=d=>{const s={};let E,B,K;return d&&d.split(` -`).forEach(function(_t){K=_t.indexOf(":"),E=_t.substring(0,K).trim().toLowerCase(),B=_t.substring(K+1).trim(),!(!E||s[E]&&JJ[E])&&(E==="set-cookie"?s[E]?s[E].push(B):s[E]=[B]:s[E]=s[E]?s[E]+", "+B:B)}),s},UL=Symbol("internals");function n2(d){return d&&String(d).trim().toLowerCase()}function e4(d){return d===!1||d==null?d:eo.isArray(d)?d.map(e4):String(d)}function tQ(d){const s=Object.create(null),E=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=E.exec(d);)s[B[1]]=B[2];return s}const eQ=d=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(d.trim());function O8(d,s,E,B,K){if(eo.isFunction(B))return B.call(this,s,E);if(K&&(s=E),!!eo.isString(s)){if(eo.isString(B))return s.indexOf(B)!==-1;if(eo.isRegExp(B))return B.test(s)}}function rQ(d){return d.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,E,B)=>E.toUpperCase()+B)}function nQ(d,s){const E=eo.toCamelCase(" "+s);["get","set","has"].forEach(B=>{Object.defineProperty(d,B+E,{value:function(K,pt,_t){return this[B].call(this,s,K,pt,_t)},configurable:!0})})}let E0=class{constructor(s){s&&this.set(s)}set(s,E,B){const K=this;function pt(Ot,jt,te){const he=n2(jt);if(!he)throw new Error("header name must be a non-empty string");const De=eo.findKey(K,he);(!De||K[De]===void 0||te===!0||te===void 0&&K[De]!==!1)&&(K[De||jt]=e4(Ot))}const _t=(Ot,jt)=>eo.forEach(Ot,(te,he)=>pt(te,he,jt));if(eo.isPlainObject(s)||s instanceof this.constructor)_t(s,E);else if(eo.isString(s)&&(s=s.trim())&&!eQ(s))_t(QJ(s),E);else if(eo.isObject(s)&&eo.isIterable(s)){let Ot={},jt,te;for(const he of s){if(!eo.isArray(he))throw TypeError("Object iterator must return a key-value pair");Ot[te=he[0]]=(jt=Ot[te])?eo.isArray(jt)?[...jt,he[1]]:[jt,he[1]]:he[1]}_t(Ot,E)}else s!=null&&pt(E,s,B);return this}get(s,E){if(s=n2(s),s){const B=eo.findKey(this,s);if(B){const K=this[B];if(!E)return K;if(E===!0)return tQ(K);if(eo.isFunction(E))return E.call(this,K,B);if(eo.isRegExp(E))return E.exec(K);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,E){if(s=n2(s),s){const B=eo.findKey(this,s);return!!(B&&this[B]!==void 0&&(!E||O8(this,this[B],B,E)))}return!1}delete(s,E){const B=this;let K=!1;function pt(_t){if(_t=n2(_t),_t){const Ot=eo.findKey(B,_t);Ot&&(!E||O8(B,B[Ot],Ot,E))&&(delete B[Ot],K=!0)}}return eo.isArray(s)?s.forEach(pt):pt(s),K}clear(s){const E=Object.keys(this);let B=E.length,K=!1;for(;B--;){const pt=E[B];(!s||O8(this,this[pt],pt,s,!0))&&(delete this[pt],K=!0)}return K}normalize(s){const E=this,B={};return eo.forEach(this,(K,pt)=>{const _t=eo.findKey(B,pt);if(_t){E[_t]=e4(K),delete E[pt];return}const Ot=s?rQ(pt):String(pt).trim();Ot!==pt&&delete E[pt],E[Ot]=e4(K),B[Ot]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const E=Object.create(null);return eo.forEach(this,(B,K)=>{B!=null&&B!==!1&&(E[K]=s&&eo.isArray(B)?B.join(", "):B)}),E}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,E])=>s+": "+E).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...E){const B=new this(s);return E.forEach(K=>B.set(K)),B}static accessor(s){const B=(this[UL]=this[UL]={accessors:{}}).accessors,K=this.prototype;function pt(_t){const Ot=n2(_t);B[Ot]||(nQ(K,_t),B[Ot]=!0)}return eo.isArray(s)?s.forEach(pt):pt(s),this}};E0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);eo.reduceDescriptors(E0.prototype,({value:d},s)=>{let E=s[0].toUpperCase()+s.slice(1);return{get:()=>d,set(B){this[E]=B}}});eo.freezeMethods(E0);function D8(d,s){const E=this||ow,B=s||E,K=E0.from(B.headers);let pt=B.data;return eo.forEach(d,function(Ot){pt=Ot.call(E,pt,K.normalize(),s?s.status:void 0)}),K.normalize(),pt}function PO(d){return!!(d&&d.__CANCEL__)}function k_(d,s,E){Ju.call(this,d??"canceled",Ju.ERR_CANCELED,s,E),this.name="CanceledError"}eo.inherits(k_,Ju,{__CANCEL__:!0});function IO(d,s,E){const B=E.config.validateStatus;!E.status||!B||B(E.status)?d(E):s(new Ju("Request failed with status code "+E.status,[Ju.ERR_BAD_REQUEST,Ju.ERR_BAD_RESPONSE][Math.floor(E.status/100)-4],E.config,E.request,E))}function iQ(d){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(d);return s&&s[1]||""}function aQ(d,s){d=d||10;const E=new Array(d),B=new Array(d);let K=0,pt=0,_t;return s=s!==void 0?s:1e3,function(jt){const te=Date.now(),he=B[pt];_t||(_t=te),E[K]=jt,B[K]=te;let De=pt,er=0;for(;De!==K;)er+=E[De++],De=De%d;if(K=(K+1)%d,K===pt&&(pt=(pt+1)%d),te-_t{E=he,K=null,pt&&(clearTimeout(pt),pt=null),d(...te)};return[(...te)=>{const he=Date.now(),De=he-E;De>=B?_t(te,he):(K=te,pt||(pt=setTimeout(()=>{pt=null,_t(K)},B-De)))},()=>K&&_t(K)]}const v4=(d,s,E=3)=>{let B=0;const K=aQ(50,250);return oQ(pt=>{const _t=pt.loaded,Ot=pt.lengthComputable?pt.total:void 0,jt=_t-B,te=K(jt),he=_t<=Ot;B=_t;const De={loaded:_t,total:Ot,progress:Ot?_t/Ot:void 0,bytes:jt,rate:te||void 0,estimated:te&&Ot&&he?(Ot-_t)/te:void 0,event:pt,lengthComputable:Ot!=null,[s?"download":"upload"]:!0};d(De)},E)},VL=(d,s)=>{const E=d!=null;return[B=>s[0]({lengthComputable:E,total:d,loaded:B}),s[1]]},HL=d=>(...s)=>eo.asap(()=>d(...s)),sQ=Xp.hasStandardBrowserEnv?((d,s)=>E=>(E=new URL(E,Xp.origin),d.protocol===E.protocol&&d.host===E.host&&(s||d.port===E.port)))(new URL(Xp.origin),Xp.navigator&&/(msie|trident)/i.test(Xp.navigator.userAgent)):()=>!0,lQ=Xp.hasStandardBrowserEnv?{write(d,s,E,B,K,pt,_t){if(typeof document>"u")return;const Ot=[`${d}=${encodeURIComponent(s)}`];eo.isNumber(E)&&Ot.push(`expires=${new Date(E).toUTCString()}`),eo.isString(B)&&Ot.push(`path=${B}`),eo.isString(K)&&Ot.push(`domain=${K}`),pt===!0&&Ot.push("secure"),eo.isString(_t)&&Ot.push(`SameSite=${_t}`),document.cookie=Ot.join("; ")},read(d){if(typeof document>"u")return null;const s=document.cookie.match(new RegExp("(?:^|; )"+d+"=([^;]*)"));return s?decodeURIComponent(s[1]):null},remove(d){this.write(d,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function uQ(d){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(d)}function cQ(d,s){return s?d.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):d}function zO(d,s,E){let B=!uQ(s);return d&&(B||E==!1)?cQ(d,s):s}const WL=d=>d instanceof E0?{...d}:d;function Ey(d,s){s=s||{};const E={};function B(te,he,De,er){return eo.isPlainObject(te)&&eo.isPlainObject(he)?eo.merge.call({caseless:er},te,he):eo.isPlainObject(he)?eo.merge({},he):eo.isArray(he)?he.slice():he}function K(te,he,De,er){if(eo.isUndefined(he)){if(!eo.isUndefined(te))return B(void 0,te,De,er)}else return B(te,he,De,er)}function pt(te,he){if(!eo.isUndefined(he))return B(void 0,he)}function _t(te,he){if(eo.isUndefined(he)){if(!eo.isUndefined(te))return B(void 0,te)}else return B(void 0,he)}function Ot(te,he,De){if(De in s)return B(te,he);if(De in d)return B(void 0,te)}const jt={url:pt,method:pt,data:pt,baseURL:_t,transformRequest:_t,transformResponse:_t,paramsSerializer:_t,timeout:_t,timeoutMessage:_t,withCredentials:_t,withXSRFToken:_t,adapter:_t,responseType:_t,xsrfCookieName:_t,xsrfHeaderName:_t,onUploadProgress:_t,onDownloadProgress:_t,decompress:_t,maxContentLength:_t,maxBodyLength:_t,beforeRedirect:_t,transport:_t,httpAgent:_t,httpsAgent:_t,cancelToken:_t,socketPath:_t,responseEncoding:_t,validateStatus:Ot,headers:(te,he,De)=>K(WL(te),WL(he),De,!0)};return eo.forEach(Object.keys({...d,...s}),function(he){const De=jt[he]||K,er=De(d[he],s[he],he);eo.isUndefined(er)&&De!==Ot||(E[he]=er)}),E}const OO=d=>{const s=Ey({},d);let{data:E,withXSRFToken:B,xsrfHeaderName:K,xsrfCookieName:pt,headers:_t,auth:Ot}=s;if(s.headers=_t=E0.from(_t),s.url=EO(zO(s.baseURL,s.url,s.allowAbsoluteUrls),d.params,d.paramsSerializer),Ot&&_t.set("Authorization","Basic "+btoa((Ot.username||"")+":"+(Ot.password?unescape(encodeURIComponent(Ot.password)):""))),eo.isFormData(E)){if(Xp.hasStandardBrowserEnv||Xp.hasStandardBrowserWebWorkerEnv)_t.setContentType(void 0);else if(eo.isFunction(E.getHeaders)){const jt=E.getHeaders(),te=["content-type","content-length"];Object.entries(jt).forEach(([he,De])=>{te.includes(he.toLowerCase())&&_t.set(he,De)})}}if(Xp.hasStandardBrowserEnv&&(B&&eo.isFunction(B)&&(B=B(s)),B||B!==!1&&sQ(s.url))){const jt=K&&pt&&lQ.read(pt);jt&&_t.set(K,jt)}return s},hQ=typeof XMLHttpRequest<"u",fQ=hQ&&function(d){return new Promise(function(E,B){const K=OO(d);let pt=K.data;const _t=E0.from(K.headers).normalize();let{responseType:Ot,onUploadProgress:jt,onDownloadProgress:te}=K,he,De,er,pr,Mr;function Tr(){pr&&pr(),Mr&&Mr(),K.cancelToken&&K.cancelToken.unsubscribe(he),K.signal&&K.signal.removeEventListener("abort",he)}let Vr=new XMLHttpRequest;Vr.open(K.method.toUpperCase(),K.url,!0),Vr.timeout=K.timeout;function mn(){if(!Vr)return;const cn=E0.from("getAllResponseHeaders"in Vr&&Vr.getAllResponseHeaders()),Bn={data:!Ot||Ot==="text"||Ot==="json"?Vr.responseText:Vr.response,status:Vr.status,statusText:Vr.statusText,headers:cn,config:d,request:Vr};IO(function(Wi){E(Wi),Tr()},function(Wi){B(Wi),Tr()},Bn),Vr=null}"onloadend"in Vr?Vr.onloadend=mn:Vr.onreadystatechange=function(){!Vr||Vr.readyState!==4||Vr.status===0&&!(Vr.responseURL&&Vr.responseURL.indexOf("file:")===0)||setTimeout(mn)},Vr.onabort=function(){Vr&&(B(new Ju("Request aborted",Ju.ECONNABORTED,d,Vr)),Vr=null)},Vr.onerror=function(Jn){const Bn=Jn&&Jn.message?Jn.message:"Network Error",ni=new Ju(Bn,Ju.ERR_NETWORK,d,Vr);ni.event=Jn||null,B(ni),Vr=null},Vr.ontimeout=function(){let Jn=K.timeout?"timeout of "+K.timeout+"ms exceeded":"timeout exceeded";const Bn=K.transitional||CO;K.timeoutErrorMessage&&(Jn=K.timeoutErrorMessage),B(new Ju(Jn,Bn.clarifyTimeoutError?Ju.ETIMEDOUT:Ju.ECONNABORTED,d,Vr)),Vr=null},pt===void 0&&_t.setContentType(null),"setRequestHeader"in Vr&&eo.forEach(_t.toJSON(),function(Jn,Bn){Vr.setRequestHeader(Bn,Jn)}),eo.isUndefined(K.withCredentials)||(Vr.withCredentials=!!K.withCredentials),Ot&&Ot!=="json"&&(Vr.responseType=K.responseType),te&&([er,Mr]=v4(te,!0),Vr.addEventListener("progress",er)),jt&&Vr.upload&&([De,pr]=v4(jt),Vr.upload.addEventListener("progress",De),Vr.upload.addEventListener("loadend",pr)),(K.cancelToken||K.signal)&&(he=cn=>{Vr&&(B(!cn||cn.type?new k_(null,d,Vr):cn),Vr.abort(),Vr=null)},K.cancelToken&&K.cancelToken.subscribe(he),K.signal&&(K.signal.aborted?he():K.signal.addEventListener("abort",he)));const Dt=iQ(K.url);if(Dt&&Xp.protocols.indexOf(Dt)===-1){B(new Ju("Unsupported protocol "+Dt+":",Ju.ERR_BAD_REQUEST,d));return}Vr.send(pt||null)})},dQ=(d,s)=>{const{length:E}=d=d?d.filter(Boolean):[];if(s||E){let B=new AbortController,K;const pt=function(te){if(!K){K=!0,Ot();const he=te instanceof Error?te:this.reason;B.abort(he instanceof Ju?he:new k_(he instanceof Error?he.message:he))}};let _t=s&&setTimeout(()=>{_t=null,pt(new Ju(`timeout ${s} of ms exceeded`,Ju.ETIMEDOUT))},s);const Ot=()=>{d&&(_t&&clearTimeout(_t),_t=null,d.forEach(te=>{te.unsubscribe?te.unsubscribe(pt):te.removeEventListener("abort",pt)}),d=null)};d.forEach(te=>te.addEventListener("abort",pt));const{signal:jt}=B;return jt.unsubscribe=()=>eo.asap(Ot),jt}},pQ=function*(d,s){let E=d.byteLength;if(E{const K=mQ(d,s);let pt=0,_t,Ot=jt=>{_t||(_t=!0,B&&B(jt))};return new ReadableStream({async pull(jt){try{const{done:te,value:he}=await K.next();if(te){Ot(),jt.close();return}let De=he.byteLength;if(E){let er=pt+=De;E(er)}jt.enqueue(new Uint8Array(he))}catch(te){throw Ot(te),te}},cancel(jt){return Ot(jt),K.return()}},{highWaterMark:2})},$L=64*1024,{isFunction:P5}=eo,vQ=(({Request:d,Response:s})=>({Request:d,Response:s}))(eo.global),{ReadableStream:ZL,TextEncoder:GL}=eo.global,YL=(d,...s)=>{try{return!!d(...s)}catch{return!1}},yQ=d=>{d=eo.merge.call({skipUndefined:!0},vQ,d);const{fetch:s,Request:E,Response:B}=d,K=s?P5(s):typeof fetch=="function",pt=P5(E),_t=P5(B);if(!K)return!1;const Ot=K&&P5(ZL),jt=K&&(typeof GL=="function"?(Mr=>Tr=>Mr.encode(Tr))(new GL):async Mr=>new Uint8Array(await new E(Mr).arrayBuffer())),te=pt&&Ot&&YL(()=>{let Mr=!1;const Tr=new E(Xp.origin,{body:new ZL,method:"POST",get duplex(){return Mr=!0,"half"}}).headers.has("Content-Type");return Mr&&!Tr}),he=_t&&Ot&&YL(()=>eo.isReadableStream(new B("").body)),De={stream:he&&(Mr=>Mr.body)};K&&["text","arrayBuffer","blob","formData","stream"].forEach(Mr=>{!De[Mr]&&(De[Mr]=(Tr,Vr)=>{let mn=Tr&&Tr[Mr];if(mn)return mn.call(Tr);throw new Ju(`Response type '${Mr}' is not supported`,Ju.ERR_NOT_SUPPORT,Vr)})});const er=async Mr=>{if(Mr==null)return 0;if(eo.isBlob(Mr))return Mr.size;if(eo.isSpecCompliantForm(Mr))return(await new E(Xp.origin,{method:"POST",body:Mr}).arrayBuffer()).byteLength;if(eo.isArrayBufferView(Mr)||eo.isArrayBuffer(Mr))return Mr.byteLength;if(eo.isURLSearchParams(Mr)&&(Mr=Mr+""),eo.isString(Mr))return(await jt(Mr)).byteLength},pr=async(Mr,Tr)=>{const Vr=eo.toFiniteNumber(Mr.getContentLength());return Vr??er(Tr)};return async Mr=>{let{url:Tr,method:Vr,data:mn,signal:Dt,cancelToken:cn,timeout:Jn,onDownloadProgress:Bn,onUploadProgress:ni,responseType:Wi,headers:Un,withCredentials:qr="same-origin",fetchOptions:Di}=OO(Mr),Fi=s||fetch;Wi=Wi?(Wi+"").toLowerCase():"text";let Pi=dQ([Dt,cn&&cn.toAbortSignal()],Jn),bi=null;const Yi=Pi&&Pi.unsubscribe&&(()=>{Pi.unsubscribe()});let Ca;try{if(ni&&te&&Vr!=="get"&&Vr!=="head"&&(Ca=await pr(Un,mn))!==0){let mo=new E(Tr,{method:"POST",body:mn,duplex:"half"}),Ts;if(eo.isFormData(mn)&&(Ts=mo.headers.get("content-type"))&&Un.setContentType(Ts),mo.body){const[xl,ko]=VL(Ca,v4(HL(ni)));mn=qL(mo.body,$L,xl,ko)}}eo.isString(qr)||(qr=qr?"include":"omit");const Ni=pt&&"credentials"in E.prototype,si={...Di,signal:Pi,method:Vr.toUpperCase(),headers:Un.normalize().toJSON(),body:mn,duplex:"half",credentials:Ni?qr:void 0};bi=pt&&new E(Tr,si);let Ma=await(pt?Fi(bi,Di):Fi(Tr,si));const zo=he&&(Wi==="stream"||Wi==="response");if(he&&(Bn||zo&&Yi)){const mo={};["status","statusText","headers"].forEach(ro=>{mo[ro]=Ma[ro]});const Ts=eo.toFiniteNumber(Ma.headers.get("content-length")),[xl,ko]=Bn&&VL(Ts,v4(HL(Bn),!0))||[];Ma=new B(qL(Ma.body,$L,xl,()=>{ko&&ko(),Yi&&Yi()}),mo)}Wi=Wi||"text";let ho=await De[eo.findKey(De,Wi)||"text"](Ma,Mr);return!zo&&Yi&&Yi(),await new Promise((mo,Ts)=>{IO(mo,Ts,{data:ho,headers:E0.from(Ma.headers),status:Ma.status,statusText:Ma.statusText,config:Mr,request:bi})})}catch(Ni){throw Yi&&Yi(),Ni&&Ni.name==="TypeError"&&/Load failed|fetch/i.test(Ni.message)?Object.assign(new Ju("Network Error",Ju.ERR_NETWORK,Mr,bi),{cause:Ni.cause||Ni}):Ju.from(Ni,Ni&&Ni.code,Mr,bi)}}},xQ=new Map,DO=d=>{let s=d&&d.env||{};const{fetch:E,Request:B,Response:K}=s,pt=[B,K,E];let _t=pt.length,Ot=_t,jt,te,he=xQ;for(;Ot--;)jt=pt[Ot],te=he.get(jt),te===void 0&&he.set(jt,te=Ot?new Map:yQ(s)),he=te;return te};DO();const fM={http:FJ,xhr:fQ,fetch:{get:DO}};eo.forEach(fM,(d,s)=>{if(d){try{Object.defineProperty(d,"name",{value:s})}catch{}Object.defineProperty(d,"adapterName",{value:s})}});const KL=d=>`- ${d}`,_Q=d=>eo.isFunction(d)||d===null||d===!1;function bQ(d,s){d=eo.isArray(d)?d:[d];const{length:E}=d;let B,K;const pt={};for(let _t=0;_t`adapter ${jt} `+(te===!1?"is not supported by the environment":"is not available in the build"));let Ot=E?_t.length>1?`since : -`+_t.map(KL).join(` -`):" "+KL(_t[0]):"as no adapter specified";throw new Ju("There is no suitable adapter to dispatch the request "+Ot,"ERR_NOT_SUPPORT")}return K}const FO={getAdapter:bQ,adapters:fM};function F8(d){if(d.cancelToken&&d.cancelToken.throwIfRequested(),d.signal&&d.signal.aborted)throw new k_(null,d)}function XL(d){return F8(d),d.headers=E0.from(d.headers),d.data=D8.call(d,d.transformRequest),["post","put","patch"].indexOf(d.method)!==-1&&d.headers.setContentType("application/x-www-form-urlencoded",!1),FO.getAdapter(d.adapter||ow.adapter,d)(d).then(function(B){return F8(d),B.data=D8.call(d,d.transformResponse,B),B.headers=E0.from(B.headers),B},function(B){return PO(B)||(F8(d),B&&B.response&&(B.response.data=D8.call(d,d.transformResponse,B.response),B.response.headers=E0.from(B.response.headers))),Promise.reject(B)})}const RO="1.13.2",Z4={};["object","boolean","number","function","string","symbol"].forEach((d,s)=>{Z4[d]=function(B){return typeof B===d||"a"+(s<1?"n ":" ")+d}});const JL={};Z4.transitional=function(s,E,B){function K(pt,_t){return"[Axios v"+RO+"] Transitional option '"+pt+"'"+_t+(B?". "+B:"")}return(pt,_t,Ot)=>{if(s===!1)throw new Ju(K(_t," has been removed"+(E?" in "+E:"")),Ju.ERR_DEPRECATED);return E&&!JL[_t]&&(JL[_t]=!0,console.warn(K(_t," has been deprecated since v"+E+" and will be removed in the near future"))),s?s(pt,_t,Ot):!0}};Z4.spelling=function(s){return(E,B)=>(console.warn(`${B} is likely a misspelling of ${s}`),!0)};function wQ(d,s,E){if(typeof d!="object")throw new Ju("options must be an object",Ju.ERR_BAD_OPTION_VALUE);const B=Object.keys(d);let K=B.length;for(;K-- >0;){const pt=B[K],_t=s[pt];if(_t){const Ot=d[pt],jt=Ot===void 0||_t(Ot,pt,d);if(jt!==!0)throw new Ju("option "+pt+" must be "+jt,Ju.ERR_BAD_OPTION_VALUE);continue}if(E!==!0)throw new Ju("Unknown option "+pt,Ju.ERR_BAD_OPTION)}}const r4={assertOptions:wQ,validators:Z4},ig=r4.validators;let Ty=class{constructor(s){this.defaults=s||{},this.interceptors={request:new jL,response:new jL}}async request(s,E){try{return await this._request(s,E)}catch(B){if(B instanceof Error){let K={};Error.captureStackTrace?Error.captureStackTrace(K):K=new Error;const pt=K.stack?K.stack.replace(/^.+\n/,""):"";try{B.stack?pt&&!String(B.stack).endsWith(pt.replace(/^.+\n.+\n/,""))&&(B.stack+=` -`+pt):B.stack=pt}catch{}}throw B}}_request(s,E){typeof s=="string"?(E=E||{},E.url=s):E=s||{},E=Ey(this.defaults,E);const{transitional:B,paramsSerializer:K,headers:pt}=E;B!==void 0&&r4.assertOptions(B,{silentJSONParsing:ig.transitional(ig.boolean),forcedJSONParsing:ig.transitional(ig.boolean),clarifyTimeoutError:ig.transitional(ig.boolean)},!1),K!=null&&(eo.isFunction(K)?E.paramsSerializer={serialize:K}:r4.assertOptions(K,{encode:ig.function,serialize:ig.function},!0)),E.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?E.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:E.allowAbsoluteUrls=!0),r4.assertOptions(E,{baseUrl:ig.spelling("baseURL"),withXsrfToken:ig.spelling("withXSRFToken")},!0),E.method=(E.method||this.defaults.method||"get").toLowerCase();let _t=pt&&eo.merge(pt.common,pt[E.method]);pt&&eo.forEach(["delete","get","head","post","put","patch","common"],Mr=>{delete pt[Mr]}),E.headers=E0.concat(_t,pt);const Ot=[];let jt=!0;this.interceptors.request.forEach(function(Tr){typeof Tr.runWhen=="function"&&Tr.runWhen(E)===!1||(jt=jt&&Tr.synchronous,Ot.unshift(Tr.fulfilled,Tr.rejected))});const te=[];this.interceptors.response.forEach(function(Tr){te.push(Tr.fulfilled,Tr.rejected)});let he,De=0,er;if(!jt){const Mr=[XL.bind(this),void 0];for(Mr.unshift(...Ot),Mr.push(...te),er=Mr.length,he=Promise.resolve(E);De{if(!B._listeners)return;let pt=B._listeners.length;for(;pt-- >0;)B._listeners[pt](K);B._listeners=null}),this.promise.then=K=>{let pt;const _t=new Promise(Ot=>{B.subscribe(Ot),pt=Ot}).then(K);return _t.cancel=function(){B.unsubscribe(pt)},_t},s(function(pt,_t,Ot){B.reason||(B.reason=new k_(pt,_t,Ot),E(B.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const E=this._listeners.indexOf(s);E!==-1&&this._listeners.splice(E,1)}toAbortSignal(){const s=new AbortController,E=B=>{s.abort(B)};return this.subscribe(E),s.signal.unsubscribe=()=>this.unsubscribe(E),s.signal}static source(){let s;return{token:new BO(function(K){s=K}),cancel:s}}};function TQ(d){return function(E){return d.apply(null,E)}}function AQ(d){return eo.isObject(d)&&d.isAxiosError===!0}const TA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(TA).forEach(([d,s])=>{TA[s]=d});function NO(d){const s=new Ty(d),E=gO(Ty.prototype.request,s);return eo.extend(E,Ty.prototype,s,{allOwnKeys:!0}),eo.extend(E,s,null,{allOwnKeys:!0}),E.create=function(K){return NO(Ey(d,K))},E}const _d=NO(ow);_d.Axios=Ty;_d.CanceledError=k_;_d.CancelToken=kQ;_d.isCancel=PO;_d.VERSION=RO;_d.toFormData=$4;_d.AxiosError=Ju;_d.Cancel=_d.CanceledError;_d.all=function(s){return Promise.all(s)};_d.spread=TQ;_d.isAxiosError=AQ;_d.mergeConfig=Ey;_d.AxiosHeaders=E0;_d.formToJSON=d=>LO(eo.isHTMLForm(d)?new FormData(d):d);_d.getAdapter=FO.getAdapter;_d.HttpStatusCode=TA;_d.default=_d;const{Axios:E1t,AxiosError:C1t,CanceledError:L1t,isCancel:P1t,CancelToken:I1t,VERSION:z1t,all:O1t,Cancel:D1t,isAxiosError:F1t,spread:R1t,toFormData:B1t,AxiosHeaders:N1t,HttpStatusCode:j1t,formToJSON:U1t,getAdapter:V1t,mergeConfig:H1t}=_d,MQ="/api",SQ="",EQ=MQ,CQ=SQ,yy=_d.create({baseURL:EQ,timeout:5e3,headers:{"Content-Type":"application/json"}});yy.interceptors.request.use(d=>d,d=>(console.error("API Request Error:",d),Promise.reject(d)));yy.interceptors.response.use(d=>d,d=>(console.error("API Response Error:",d.response?.data||d.message),Promise.reject(d)));class Ah{static async get(s,E){try{return(await yy.get(s,{params:E})).data}catch(B){throw this.handleError(B)}}static async post(s,E,B){try{return(await yy.post(s,E,B)).data}catch(K){throw this.handleError(K)}}static async put(s,E,B){try{return(await yy.put(s,E,B)).data}catch(K){throw this.handleError(K)}}static async delete(s,E){try{return(await yy.delete(s,E)).data}catch(B){throw this.handleError(B)}}static async getTransportKeys(){return this.get("transport_keys")}static async createTransportKey(s,E,B,K,pt){const _t={name:s,flood_policy:E,parent_id:K,last_used:pt};return B!==void 0&&(_t.transport_key=B),this.post("transport_keys",_t)}static async getTransportKey(s){return this.get(`transport_key/${s}`)}static async updateTransportKey(s,E,B,K,pt,_t){return this.put(`transport_key/${s}`,{name:E,flood_policy:B,transport_key:K,parent_id:pt,last_used:_t})}static async deleteTransportKey(s){return this.delete(`transport_key/${s}`)}static async updateGlobalFloodPolicy(s){return this.post("global_flood_policy",{global_flood_allow:s})}static async getLogs(){try{return(await yy.get("logs")).data}catch(s){throw this.handleError(s)}}static async deleteAdvert(s){return this.delete(`advert/${s}`)}static async pingNeighbor(s){return this.post("ping_neighbor",s)}static handleError(s){if(_d.isAxiosError(s)){if(s.response){const E=s.response.data?.error||s.response.data?.message||`HTTP ${s.response.status}`;return new Error(E)}else if(s.request)return new Error("Network error - no response received")}return new Error(s instanceof Error?s.message:"Unknown error occurred")}}const Om=oM("system",()=>{const d=Ga(null),s=Ga(!1),E=Ga(null),B=Ga(null),K=Ga("forward"),pt=Ga(!0),_t=Ga(0),Ot=Ga(10),jt=Ga(!1),te=$o(()=>d.value?.config?.node_name??"Unknown"),he=$o(()=>{const bi=d.value?.public_key;return!bi||bi==="Unknown"?"Unknown":bi.length>=16?`${bi.slice(0,8)} ... ${bi.slice(-8)}`:`${bi}`}),De=$o(()=>d.value!==null),er=$o(()=>d.value?.version??"Unknown"),pr=$o(()=>d.value?.core_version??"Unknown"),Mr=$o(()=>d.value?.noise_floor_dbm??null),Tr=$o(()=>Ot.value>0?Math.min(_t.value/Ot.value*100,100):0),Vr=$o(()=>K.value==="monitor"?{text:"Monitor Mode",title:"Monitoring only - not forwarding packets"}:pt.value?{text:"Active",title:"Forwarding with duty cycle enforcement"}:{text:"No Limits",title:"Forwarding without duty cycle enforcement"}),mn=$o(()=>K.value==="monitor"?{active:!1,warning:!0}:{active:!0,warning:!1}),Dt=$o(()=>pt.value?{active:!0,warning:!1}:{active:!1,warning:!0}),cn=bi=>{jt.value=bi};async function Jn(){try{s.value=!0,E.value=null;const bi=await Ah.get("/stats");if(bi.success&&bi.data)return d.value=bi.data,B.value=new Date,Bn(bi.data),bi.data;if(bi&&"version"in bi){const Yi=bi;return d.value=Yi,B.value=new Date,Bn(Yi),Yi}else throw new Error(bi.error||"Failed to fetch stats")}catch(bi){throw E.value=bi instanceof Error?bi.message:"Unknown error occurred",console.error("Error fetching stats:",bi),bi}finally{s.value=!1}}function Bn(bi){if(bi.config){const Ca=bi.config.repeater?.mode;(Ca==="forward"||Ca==="monitor")&&(K.value=Ca);const Ni=bi.config.duty_cycle;if(Ni){pt.value=Ni.enforcement_enabled!==!1;const si=Ni.max_airtime_percent;typeof si=="number"?Ot.value=si:si&&typeof si=="object"&&"parsedValue"in si&&(Ot.value=si.parsedValue||10)}}const Yi=bi.utilization_percent;typeof Yi=="number"?_t.value=Yi:Yi&&typeof Yi=="object"&&"parsedValue"in Yi&&(_t.value=Yi.parsedValue||0)}async function ni(bi){try{const Yi=await Ah.post("/set_mode",{mode:bi});if(Yi.success)return K.value=bi,!0;throw new Error(Yi.error||"Failed to set mode")}catch(Yi){throw E.value=Yi instanceof Error?Yi.message:"Unknown error occurred",console.error("Error setting mode:",Yi),Yi}}async function Wi(bi){try{const Yi=await Ah.post("/set_duty_cycle",{enabled:bi});if(Yi.success)return pt.value=bi,!0;throw new Error(Yi.error||"Failed to set duty cycle")}catch(Yi){throw E.value=Yi instanceof Error?Yi.message:"Unknown error occurred",console.error("Error setting duty cycle:",Yi),Yi}}async function Un(){try{const bi=await Ah.post("/send_advert",{},{timeout:1e4});if(bi.success)return console.log("Advertisement sent successfully:",bi.data),!0;throw new Error(bi.error||"Failed to send advert")}catch(bi){throw E.value=bi instanceof Error?bi.message:"Unknown error occurred",console.error("Error sending advert:",bi),bi}}async function qr(){const bi=K.value==="forward"?"monitor":"forward";return await ni(bi)}async function Di(){return await Wi(!pt.value)}async function Fi(bi=5e3){await Jn();const Yi=setInterval(async()=>{try{await Jn()}catch(Ca){console.error("Auto-refresh error:",Ca)}},bi);return()=>clearInterval(Yi)}function Pi(){d.value=null,E.value=null,B.value=null,s.value=!1,K.value="forward",pt.value=!0,_t.value=0,Ot.value=10}return{stats:d,isLoading:s,error:E,lastUpdated:B,currentMode:K,dutyCycleEnabled:pt,dutyCycleUtilization:_t,dutyCycleMax:Ot,cadCalibrationRunning:jt,nodeName:te,pubKey:he,hasStats:De,version:er,coreVersion:pr,noiseFloorDbm:Mr,dutyCyclePercentage:Tr,statusBadge:Vr,modeButtonState:mn,dutyCycleButtonState:Dt,fetchStats:Jn,setMode:ni,setDutyCycle:Wi,sendAdvert:Un,toggleMode:qr,toggleDutyCycle:Di,startAutoRefresh:Fi,reset:Pi,setCadCalibrationRunning:cn}}),ld=(d,s)=>{const E=d.__vccOpts||d;for(const[B,K]of s)E[B]=K;return E},LQ={},PQ={width:"23",height:"25",viewBox:"0 0 23 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function IQ(d,s){return _i(),zi("svg",PQ,s[0]||(s[0]=[Ee("path",{d:"M2.84279 2.25795C2.90709 1.12053 3.17879 0.625914 3.95795 0.228723C4.79631 -0.198778 6.11858 0.000168182 7.67449 0.788054C8.34465 1.12757 8.41289 1.13448 9.58736 0.983905C11.1485 0.783681 13.1582 0.784388 14.5991 0.985738C15.6887 1.13801 15.7603 1.1304 16.4321 0.790174C18.6406 -0.328212 20.3842 -0.255036 21.0156 0.982491C21.3308 1.6002 21.3893 3.20304 21.1449 4.52503C21.0094 5.25793 21.0238 5.34943 21.3502 5.83037C23.6466 9.21443 21.9919 14.6998 18.0569 16.7469C17.7558 16.9036 17.502 17.0005 17.2952 17.0795C16.6602 17.3219 16.4674 17.3956 16.7008 18.5117C16.8132 19.0486 16.9486 20.3833 17.0018 21.478C17.098 23.4567 17.0966 23.4705 16.7495 23.8742C16.2772 24.4233 15.5963 24.4326 15.135 23.8962C14.8341 23.5464 14.8047 23.3812 14.8047 22.0315C14.8047 20.037 14.5861 18.7113 14.0695 17.5753C13.4553 16.2235 13.9106 15.7194 15.3154 15.4173C17.268 14.9973 18.793 13.7923 19.643 11.9978C20.4511 10.2921 20.5729 7.93485 19.1119 6.50124C18.6964 6.00746 18.6674 5.56022 18.9641 4.21159C19.075 3.70754 19.168 3.05725 19.1707 2.76637C19.1749 2.30701 19.1331 2.23764 18.8509 2.23764C18.6724 2.23764 17.9902 2.49736 17.3352 2.81474L16.2897 3.32145C16.1947 3.36751 16.0883 3.38522 15.9834 3.37318C13.3251 3.06805 10.7991 3.06334 8.12774 3.37438C8.02244 3.38663 7.91563 3.36892 7.82025 3.32263L6.77535 2.81559C6.12027 2.49764 5.43813 2.23764 5.25963 2.23764C4.84693 2.23764 4.84072 2.54233 5.2169 4.35258C5.44669 5.45816 5.60133 5.70451 4.93703 6.58851C3.94131 7.91359 3.69258 9.55902 4.22654 11.2878C4.89952 13.4664 6.54749 14.9382 8.86436 15.4292C10.261 15.7253 10.6261 16.1115 10.0928 17.713C9.67293 18.9734 9.40748 19.2982 8.79738 19.2982C7.97649 19.2982 7.46228 18.5871 7.74527 17.843C7.86991 17.5151 7.83283 17.4801 7.06383 17.1996C4.71637 16.3437 2.9209 14.4254 2.10002 11.8959C1.46553 9.94098 1.74471 7.39642 2.76257 5.85843C3.10914 5.33477 3.1145 5.29036 2.95277 4.28787C2.86126 3.72037 2.81177 2.80699 2.84279 2.25795Z",fill:"white"},null,-1),Ee("path",{d:"M2.02306 16.5589C1.68479 16.0516 0.999227 15.9144 0.491814 16.2527C-0.0155884 16.591 -0.152708 17.2765 0.185564 17.7839C0.435301 18.1586 0.734065 18.4663 0.987777 18.72C1.03455 18.7668 1.08 18.8119 1.12438 18.856C1.3369 19.0671 1.52455 19.2535 1.71302 19.4748C2.12986 19.964 2.54572 20.623 2.78206 21.8047C2.88733 22.3311 3.26569 22.6147 3.47533 22.7386C3.70269 22.8728 3.9511 22.952 4.15552 23.0036C4.57369 23.109 5.08133 23.1638 5.56309 23.1957C6.09196 23.2308 6.665 23.2422 7.17743 23.2453C7.1778 23.8547 7.67202 24.3487 8.28162 24.3487C8.89146 24.3487 9.38582 23.8543 9.38582 23.2445V22.1403C9.38582 21.5305 8.89146 21.0361 8.28162 21.0361C8.17753 21.0361 8.06491 21.0364 7.94562 21.0369C7.29761 21.0389 6.45295 21.0414 5.70905 20.9922C5.35033 20.9684 5.05544 20.9347 4.8392 20.8936C4.50619 19.5863 3.96821 18.7165 3.39415 18.0426C3.14038 17.7448 2.87761 17.4842 2.66387 17.2722C2.62385 17.2326 2.58556 17.1946 2.54935 17.1584C2.30273 16.9118 2.1414 16.7365 2.02306 16.5589Z",fill:"white"},null,-1)]))}const zQ=ld(LQ,[["render",IQ]]),OQ={},DQ={width:"17",height:"24",viewBox:"0 0 17 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function FQ(d,s){return _i(),zi("svg",DQ,s[0]||(s[0]=[$f('',12)]))}const RQ=ld(OQ,[["render",FQ]]),sw=oM("packets",()=>{const d=Ga(null),s=Ga(null),E=Ga([]),B=Ga([]),K=Ga(null),pt=Ga(!1),_t=Ga(null),Ot=Ga(null),jt=Ga([]),te=Ga([]),he=$o(()=>d.value!==null),De=$o(()=>s.value!==null),er=$o(()=>E.value.length>0),pr=$o(()=>B.value.length>0),Mr=$o(()=>K.value?.avg_noise_floor??0),Tr=$o(()=>d.value?.total_packets??0),Vr=$o(()=>d.value?.avg_rssi??0),mn=$o(()=>d.value?.avg_snr??0),Dt=$o(()=>s.value?.uptime_seconds??0),cn=$o(()=>{if(!d.value?.packet_types)return[];const Ni=d.value.packet_types,si=Ni.reduce((Ma,zo)=>Ma+zo.count,0);return Ni.map(Ma=>({type:Ma.type.toString(),count:Ma.count,percentage:si>0?Ma.count/si*100:0}))}),Jn=$o(()=>{const Ni={};return E.value.forEach(si=>{Ni[si.type]||(Ni[si.type]=[]),Ni[si.type].push(si)}),Ni});async function Bn(){try{const Ni=await Ah.get("/stats");if(Ni.success&&Ni.data){s.value=Ni.data;const si=new Date;return te.value.push({timestamp:si,stats:Ni.data}),te.value.length>50&&(te.value=te.value.slice(-50)),Ni.data}else if(Ni&&"version"in Ni){const si=Ni;s.value=si;const Ma=new Date;return te.value.push({timestamp:Ma,stats:si}),te.value.length>50&&(te.value=te.value.slice(-50)),si}else throw new Error(Ni.error||"Failed to fetch system stats")}catch(Ni){throw _t.value=Ni instanceof Error?Ni.message:"Unknown error occurred",console.error("Error fetching system stats:",Ni),Ni}}async function ni(Ni={hours:24}){try{const si=await Ah.get("/noise_floor_history",Ni);if(si.success&&si.data&&si.data.history)return B.value=si.data.history,Ot.value=new Date,si.data.history;throw new Error(si.error||"Failed to fetch noise floor history")}catch(si){throw _t.value=si instanceof Error?si.message:"Unknown error occurred",console.error("Error fetching noise floor history:",si),si}}async function Wi(Ni={hours:24}){try{const si=await Ah.get("/noise_floor_stats",Ni);if(si.success&&si.data&&si.data.stats)return K.value=si.data.stats,Ot.value=new Date,si.data.stats;throw new Error(si.error||"Failed to fetch noise floor stats")}catch(si){throw _t.value=si instanceof Error?si.message:"Unknown error occurred",console.error("Error fetching noise floor stats:",si),si}}const Un=$o(()=>!B.value||!Array.isArray(B.value)?[]:B.value.slice(-50).map(Ni=>Ni.noise_floor_dbm));async function qr(Ni={hours:24}){try{pt.value=!0,_t.value=null;const si=await Ah.get("/packet_stats",Ni);if(si.success&&si.data){d.value=si.data;const Ma=new Date;jt.value.push({timestamp:Ma,stats:si.data}),jt.value.length>50&&(jt.value=jt.value.slice(-50)),Ot.value=Ma}else throw new Error(si.error||"Failed to fetch packet stats")}catch(si){_t.value=si instanceof Error?si.message:"Unknown error occurred",console.error("Error fetching packet stats:",si)}finally{pt.value=!1}}async function Di(Ni={limit:100}){try{pt.value=!0,_t.value=null;const si=await Ah.get("/recent_packets",Ni);if(si.success&&si.data)E.value=si.data,Ot.value=new Date;else throw new Error(si.error||"Failed to fetch recent packets")}catch(si){_t.value=si instanceof Error?si.message:"Unknown error occurred",console.error("Error fetching recent packets:",si)}finally{pt.value=!1}}async function Fi(Ni){try{pt.value=!0,_t.value=null;const si=await Ah.get("/filtered_packets",Ni);if(si.success&&si.data)return E.value=si.data,Ot.value=new Date,si.data;throw new Error(si.error||"Failed to fetch filtered packets")}catch(si){throw _t.value=si instanceof Error?si.message:"Unknown error occurred",console.error("Error fetching filtered packets:",si),si}finally{pt.value=!1}}async function Pi(Ni){try{pt.value=!0,_t.value=null;const si=await Ah.get("/packet_by_hash",{packet_hash:Ni});if(si.success&&si.data)return si.data;throw new Error(si.error||"Packet not found")}catch(si){throw _t.value=si instanceof Error?si.message:"Unknown error occurred",console.error("Error fetching packet by hash:",si),si}finally{pt.value=!1}}const bi=$o(()=>{const Ni=jt.value,si=te.value;return{totalPackets:Ni.map(Ma=>Ma.stats.total_packets),transmittedPackets:Ni.map(Ma=>Ma.stats.transmitted_packets),droppedPackets:Ni.map(Ma=>Ma.stats.dropped_packets),avgRssi:Ni.map(Ma=>Ma.stats.avg_rssi),uptimeHours:si.map(Ma=>Math.floor((Ma.stats.uptime_seconds||0)/3600))}});async function Yi(Ni=3e4){await Promise.all([Bn(),qr(),Di(),ni({hours:1}),Wi({hours:1})]);const si=setInterval(async()=>{try{await Promise.all([Bn(),qr(),Di(),ni({hours:1}),Wi({hours:1})])}catch(Ma){console.error("Auto-refresh error:",Ma)}},Ni);return()=>clearInterval(si)}function Ca(){d.value=null,s.value=null,E.value=[],B.value=[],K.value=null,jt.value=[],te.value=[],_t.value=null,Ot.value=null,pt.value=!1}return{packetStats:d,systemStats:s,recentPackets:E,noiseFloorHistory:B,noiseFloorStats:K,packetStatsHistory:jt,systemStatsHistory:te,isLoading:pt,error:_t,lastUpdated:Ot,hasPacketStats:he,hasSystemStats:De,hasRecentPackets:er,hasNoiseFloorData:pr,currentNoiseFloor:Mr,totalPackets:Tr,averageRSSI:Vr,averageSNR:mn,uptime:Dt,packetTypeBreakdown:cn,recentPacketsByType:Jn,sparklineData:bi,noiseFloorSparklineData:Un,fetchSystemStats:Bn,fetchPacketStats:qr,fetchRecentPackets:Di,fetchFilteredPackets:Fi,getPacketByHash:Pi,fetchNoiseFloorHistory:ni,fetchNoiseFloorStats:Wi,startAutoRefresh:Yi,reset:Ca}}),BQ={class:"glass-card-green p-5 relative overflow-hidden"},NQ={key:0,class:"absolute inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-10 rounded-lg"},jQ={class:"flex items-baseline gap-2 mb-8"},UQ={class:"text-primary text-2xl font-medium"},VQ={class:"absolute bottom-0 left-5 w-[196px] h-[30px]",viewBox:"0 0 196 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},HQ=["d"],WQ=["d"],qQ=["cy"],$Q=Dc({__name:"RFNoiseFloor",setup(d){const s=sw(),E=Om(),B=Ga(null),K=he=>{if(he.length<2)return"";const De=196,er=30,pr=4,Mr=-125,Vr=-105-Mr;let mn="";return he.forEach((Dt,cn)=>{const Jn=cn/(he.length-1)*De,Bn=(Dt-Mr)/Vr,ni=er-Bn*(er-pr*2)-pr;if(cn===0)mn+=`M ${Jn} ${ni}`;else{const Un=((cn-1)/(he.length-1)*De+Jn)/2;mn+=` Q ${Un} ${ni} ${Jn} ${ni}`}}),mn},pt=async()=>{try{await Promise.all([s.fetchNoiseFloorHistory({hours:1}),s.fetchNoiseFloorStats({hours:1})])}catch(he){console.error("Error fetching noise floor data:",he)}};bp(()=>{pt(),B.value=window.setInterval(pt,5e3)}),gg(()=>{B.value&&clearInterval(B.value)});const _t=$o(()=>{const he=s.noiseFloorSparklineData;return he&&he.length>0?he[he.length-1]:s.noiseFloorStats?.avg_noise_floor??-116}),Ot=$o(()=>s.noiseFloorSparklineData),jt=$o(()=>K(Ot.value)),te=$o(()=>{if(Ot.value.length===0)return 15;const he=Ot.value[Ot.value.length-1],De=-125,pr=-105-De;return 30-(he-De)/pr*22-4});return(he,De)=>(_i(),zi("div",BQ,[zl(E).cadCalibrationRunning?(_i(),zi("div",NQ,De[0]||(De[0]=[$f('CAD CalibrationIn Progress',1)]))):is("",!0),De[4]||(De[4]=Ee("p",{class:"text-dark-text text-xs uppercase mb-2"},"RF NOISE FLOOR",-1)),Ee("div",jQ,[Ee("span",UQ,Qi(_t.value),1),De[1]||(De[1]=Ee("span",{class:"text-dark-text text-xs uppercase"},"dBm",-1))]),(_i(),zi("svg",VQ,[De[3]||(De[3]=$f('',1)),Ot.value.length>1?(_i(),zi("path",{key:0,d:`${jt.value} L 196 30 L 0 30 Z`,fill:"url(#rf-noise-gradient)",class:"transition-all duration-500 ease-out"},null,8,HQ)):is("",!0),Ot.value.length>1?(_i(),zi("path",{key:1,d:jt.value,stroke:"#B1FFFF","stroke-width":"2",fill:"none",filter:"url(#line-glow)",class:"transition-all duration-500 ease-out"},null,8,WQ)):is("",!0),Ot.value.length>0?(_i(),zi("circle",{key:2,cx:196,cy:te.value,r:"2",fill:"#B1FFFF",class:"animate-pulse"},De[2]||(De[2]=[Ee("animate",{attributeName:"r",values:"2;3;2",dur:"2s",repeatCount:"indefinite"},null,-1)]),8,qQ)):is("",!0)]))]))}}),jO=ld($Q,[["__scopeId","data-v-ad12b3cb"]]),ZQ={},GQ={width:"800px",height:"800px",viewBox:"0 -1.5 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"w-full h-full"};function YQ(d,s){return _i(),zi("svg",GQ,s[0]||(s[0]=[Ee("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[Ee("g",{transform:"translate(-420.000000, -3641.000000)",fill:"currentColor"},[Ee("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},[Ee("path",{d:"M378.195439,3483.828 L376.781439,3485.242 C378.195439,3486.656 378.294439,3489.588 376.880439,3491.002 L378.294439,3492.417 C380.415439,3490.295 380.316439,3485.949 378.195439,3483.828 M381.023439,3481 L379.609439,3482.414 C382.438439,3485.242 382.537439,3491.002 379.708439,3493.831 L381.122439,3495.245 C385.365439,3491.002 384.559439,3484.535 381.023439,3481 M375.432439,3486.737 C375.409439,3486.711 375.392439,3486.682 375.367439,3486.656 L375.363439,3486.66 C374.582439,3485.879 373.243439,3485.952 372.536439,3486.659 C371.829439,3487.366 371.831439,3488.778 372.538439,3489.485 C372.547439,3489.494 372.558439,3489.499 372.567439,3489.508 C372.590439,3489.534 372.607439,3489.563 372.632439,3489.588 L372.636439,3489.585 C373.201439,3490.15 373.000439,3488.284 373.000439,3498 L375.000439,3498 C375.000439,3488.058 374.753439,3490.296 375.463439,3489.586 C376.170439,3488.879 376.168439,3487.467 375.461439,3486.76 C375.452439,3486.751 375.441439,3486.746 375.432439,3486.737 M371.119439,3485.242 L369.705439,3483.828 C367.584439,3485.949 367.683439,3490.295 369.804439,3492.417 L371.218439,3491.002 C369.804439,3489.588 369.705439,3486.656 371.119439,3485.242 M368.390439,3493.831 L366.976439,3495.245 C363.440439,3491.709 362.634439,3485.242 366.877439,3481 L368.291439,3482.414 C365.462439,3485.242 365.561439,3491.002 368.390439,3493.831",id:"radio_tower-[#1019]"})])])],-1)]))}const KQ=ld(ZQ,[["render",YQ]]),XQ={class:"text-center"},JQ={class:"relative flex items-center justify-center mb-8"},QQ={class:"relative w-32 h-32"},ttt={class:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2"},ett={key:0,class:"absolute inset-0 flex items-center justify-center"},rtt={key:1,class:"absolute inset-0 flex items-center justify-center"},ntt={key:2,class:"absolute inset-0"},itt={class:"mb-6"},att={key:0,class:"text-white text-lg"},ott={key:1,class:"text-accent-green text-lg font-medium"},stt={key:2,class:"text-secondary text-lg"},ltt={key:3,class:"text-accent-red text-lg"},utt={key:4,class:"text-dark-text"},ctt={key:5,class:"mt-3"},htt={key:0,class:"text-secondary text-sm"},ftt={key:1,class:"text-accent-red text-sm"},dtt={key:0,class:"flex gap-3"},ptt={key:1,class:"text-dark-text text-sm"},mtt=Dc({name:"AdvertModal",__name:"AdvertModal",props:{isOpen:{type:Boolean},isLoading:{type:Boolean},isSuccess:{type:Boolean},error:{default:null}},emits:["close","send"],setup(d,{emit:s}){const E=d,B=s,K=Ga(!1),pt=Ga(!1),_t=Ga(!1);Em(()=>E.isOpen,he=>{he?(K.value=!0,setTimeout(()=>{pt.value=!0},50)):(pt.value=!1,_t.value=!1,setTimeout(()=>{K.value=!1},300))},{immediate:!0}),Em(()=>E.isLoading,he=>{he||setTimeout(()=>{_t.value=!1},1e3)});const Ot=()=>{E.isLoading||B("close")},jt=()=>{E.isLoading||(_t.value=!0,B("send"))},te=he=>he?.includes("Network error - no response received")||he?.includes("timeout");return(he,De)=>(_i(),Z0(XA,{to:"body"},[K.value?(_i(),zi("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4",onClick:Pm(Ot,["self"])},[Ee("div",{class:jo(["absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300",pt.value?"opacity-100":"opacity-0"])},null,2),Ee("div",{class:jo(["relative glass-card rounded-[20px] p-8 max-w-md w-full transform transition-all duration-300",pt.value?"scale-100 opacity-100":"scale-95 opacity-0"])},[he.isLoading?is("",!0):(_i(),zi("button",{key:0,onClick:Ot,class:"absolute top-4 right-4 text-dark-text hover:text-white transition-colors p-2"},De[0]||(De[0]=[Ee("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[Ee("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]))),Ee("div",XQ,[De[6]||(De[6]=Ee("h2",{class:"text-white text-xl font-semibold mb-6"},"Send Advertisement",-1)),Ee("div",JQ,[Ee("div",QQ,[Ee("div",ttt,[Wl(KQ,{class:jo(["w-16 h-16 transition-all duration-500",[he.isLoading?"animate-pulse":"",he.isSuccess?"text-accent-green":he.error&&!te(he.error)?"text-accent-red":"text-primary"]]),style:hm({filter:he.isLoading?"drop-shadow(0 0 8px currentColor)":he.isSuccess?"drop-shadow(0 0 8px #A5E5B6)":he.error&&!te(he.error)?"drop-shadow(0 0 8px #FB787B)":"drop-shadow(0 0 4px #AAE8E8)"})},null,8,["class","style"])]),he.isLoading||he.isSuccess?(_i(),zi("div",ett,[Ee("div",{class:jo(["absolute w-16 h-16 rounded-full border-2 animate-ping",[he.isSuccess?"border-accent-green/60":"border-primary/60"]]),style:{"animation-duration":"1.5s"}},null,2),Ee("div",{class:jo(["absolute w-24 h-24 rounded-full border-2 animate-ping",[he.isSuccess?"border-accent-green/40":"border-primary/40"]]),style:{"animation-duration":"2s","animation-delay":"0.3s"}},null,2),Ee("div",{class:jo(["absolute w-32 h-32 rounded-full border-2 animate-ping",[he.isSuccess?"border-accent-green/20":"border-primary/20"]]),style:{"animation-duration":"2.5s","animation-delay":"0.6s"}},null,2)])):is("",!0),_t.value?(_i(),zi("div",rtt,De[1]||(De[1]=[Ee("div",{class:"absolute w-8 h-8 rounded-full border-4 border-secondary animate-ping-fast"},null,-1),Ee("div",{class:"absolute w-16 h-16 rounded-full border-3 border-secondary/70 animate-ping-fast",style:{"animation-delay":"0.1s"}},null,-1),Ee("div",{class:"absolute w-24 h-24 rounded-full border-2 border-secondary/50 animate-ping-fast",style:{"animation-delay":"0.2s"}},null,-1),Ee("div",{class:"absolute w-32 h-32 rounded-full border-2 border-secondary/30 animate-ping-fast",style:{"animation-delay":"0.3s"}},null,-1)]))):is("",!0),he.isLoading||he.isSuccess?(_i(),zi("div",ntt,[Ee("div",{class:jo(["absolute top-2 right-2 w-4 h-4 rounded-full transition-all duration-500 animate-pulse",[he.isSuccess?"bg-accent-green shadow-lg shadow-accent-green/50":"bg-primary/70 shadow-lg shadow-primary/30"]]),style:{"animation-delay":"0.5s"}},De[2]||(De[2]=[Ee("div",{class:"w-2 h-2 bg-white rounded-full mx-auto mt-1"},null,-1)]),2),Ee("div",{class:jo(["absolute bottom-2 left-2 w-4 h-4 rounded-full transition-all duration-500 animate-pulse",[he.isSuccess?"bg-accent-green shadow-lg shadow-accent-green/50":"bg-primary/70 shadow-lg shadow-primary/30"]]),style:{"animation-delay":"1s"}},De[3]||(De[3]=[Ee("div",{class:"w-2 h-2 bg-white rounded-full mx-auto mt-1"},null,-1)]),2),Ee("div",{class:jo(["absolute top-1/2 right-1 w-4 h-4 rounded-full transition-all duration-500 animate-pulse",[he.isSuccess?"bg-accent-green shadow-lg shadow-accent-green/50":"bg-primary/70 shadow-lg shadow-primary/30"]]),style:{"animation-delay":"1.5s",transform:"translateY(-50%)"}},De[4]||(De[4]=[Ee("div",{class:"w-2 h-2 bg-white rounded-full mx-auto mt-1"},null,-1)]),2),Ee("div",{class:jo(["absolute top-3 left-3 w-4 h-4 rounded-full transition-all duration-500 animate-pulse",[he.isSuccess?"bg-accent-green shadow-lg shadow-accent-green/50":"bg-primary/70 shadow-lg shadow-primary/30"]]),style:{"animation-delay":"2s"}},De[5]||(De[5]=[Ee("div",{class:"w-2 h-2 bg-white rounded-full mx-auto mt-1"},null,-1)]),2)])):is("",!0)])]),Ee("div",itt,[he.isLoading?(_i(),zi("p",att," Broadcasting advertisement... ")):he.isSuccess?(_i(),zi("p",ott," Advertisement sent successfully! ")):he.error&&te(he.error)?(_i(),zi("p",stt," Advertisement likely sent ")):he.error?(_i(),zi("p",ltt," Failed to send advertisement ")):(_i(),zi("p",utt," This will broadcast your node's presence to nearby nodes. ")),he.error?(_i(),zi("div",ctt,[te(he.error)?(_i(),zi("p",htt," Network timeout occurred, but the advertisement may have been successfully transmitted to nearby nodes. ")):(_i(),zi("p",ftt,Qi(he.error),1))])):is("",!0)]),!he.isLoading&&!he.isSuccess?(_i(),zi("div",dtt,[Ee("button",{onClick:Ot,class:"flex-1 glass-card border border-dark-border hover:border-primary rounded-[10px] px-6 py-3 text-dark-text hover:text-white transition-all duration-200"}," Cancel "),Ee("button",{onClick:jt,class:jo(["flex-1 rounded-[10px] px-6 py-3 font-medium transition-all duration-200 shadow-lg",[he.error&&te(he.error)?"bg-secondary hover:bg-secondary/90 text-dark-bg hover:shadow-secondary/20":"bg-primary hover:bg-primary/90 text-dark-bg hover:shadow-primary/20"]])},Qi(he.error&&te(he.error)?"Try Again":"Send Advertisement"),3)])):is("",!0),he.isSuccess?(_i(),zi("div",ptt," Closing automatically... ")):is("",!0)])],2)])):is("",!0)]))}}),UO=ld(mtt,[["__scopeId","data-v-a5eb8c7f"]]),gtt={},vtt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ytt(d,s){return _i(),zi("svg",vtt,s[0]||(s[0]=[$f('',2)]))}const VO=ld(gtt,[["render",ytt]]),xtt={},_tt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function btt(d,s){return _i(),zi("svg",_tt,s[0]||(s[0]=[$f('',9)]))}const HO=ld(xtt,[["render",btt]]),wtt={},ktt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ttt(d,s){return _i(),zi("svg",ktt,s[0]||(s[0]=[$f('',2)]))}const WO=ld(wtt,[["render",Ttt]]),Att={},Mtt={width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Stt(d,s){return _i(),zi("svg",Mtt,s[0]||(s[0]=[Ee("path",{d:"M9.81633 1.99133L8.5085 0.683492C8.29229 0.466088 8.03511 0.293723 7.75185 0.176372C7.46859 0.059021 7.16486 -0.000985579 6.85825 -0.000175002H1.75C1.28587 -0.000175002 0.840752 0.184199 0.512563 0.512388C0.184375 0.840577 0 1.2857 0 1.74983V13.9998H10.5V3.64099C10.4985 3.02248 10.2528 2.4296 9.81633 1.99133ZM8.9915 2.81616C9.02083 2.84799 9.04829 2.88149 9.07375 2.91649H7.58333V1.42608C7.61834 1.45153 7.65184 1.479 7.68367 1.50833L8.9915 2.81616ZM1.16667 12.8332V1.74983C1.16667 1.59512 1.22812 1.44674 1.33752 1.33735C1.44692 1.22795 1.59529 1.16649 1.75 1.16649H6.41667V4.08316H9.33333V12.8332H1.16667ZM2.33333 9.33316H8.16667V5.83316H2.33333V9.33316ZM3.5 6.99983H7V8.16649H3.5V6.99983ZM2.33333 10.4998H8.16667V11.6665H2.33333V10.4998Z",fill:"white"},null,-1)]))}const qO=ld(Att,[["render",Stt]]),Ett={},Ctt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ltt(d,s){return _i(),zi("svg",Ctt,s[0]||(s[0]=[$f('',2)]))}const $O=ld(Ett,[["render",Ltt]]),Ptt={},Itt={width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ztt(d,s){return _i(),zi("svg",Itt,s[0]||(s[0]=[Ee("path",{d:"M10.5 14.0004H9.33333V11.0586C9.33287 10.6013 9.15099 10.1628 8.82761 9.83942C8.50422 9.51603 8.06575 9.33415 7.60842 9.33369H2.89158C2.43425 9.33415 1.99578 9.51603 1.67239 9.83942C1.34901 10.1628 1.16713 10.6013 1.16667 11.0586V14.0004H0V11.0586C0.000926233 10.292 0.305872 9.55705 0.847948 9.01497C1.39002 8.47289 2.12497 8.16795 2.89158 8.16702H7.60842C8.37503 8.16795 9.10998 8.47289 9.65205 9.01497C10.1941 9.55705 10.4991 10.292 10.5 11.0586V14.0004Z",fill:"white"},null,-1),Ee("path",{d:"M5.25 6.99997C4.55777 6.99997 3.88108 6.7947 3.30551 6.41011C2.72993 6.02553 2.28133 5.4789 2.01642 4.83936C1.75152 4.19982 1.6822 3.49609 1.81725 2.81716C1.9523 2.13822 2.28564 1.51458 2.77513 1.0251C3.26461 0.535614 3.88825 0.202271 4.56719 0.0672226C5.24612 -0.0678257 5.94985 0.00148598 6.58939 0.266393C7.22894 0.531299 7.77556 0.979903 8.16015 1.55548C8.54473 2.13105 8.75 2.80774 8.75 3.49997C8.74908 4.42794 8.38003 5.31765 7.72385 5.97382C7.06768 6.63 6.17798 6.99904 5.25 6.99997ZM5.25 1.16664C4.78851 1.16664 4.33739 1.30349 3.95367 1.55988C3.56996 1.81627 3.27089 2.18068 3.09428 2.60704C2.91768 3.0334 2.87147 3.50256 2.9615 3.95518C3.05153 4.4078 3.27376 4.82357 3.60009 5.14989C3.92641 5.47621 4.34217 5.69844 4.79479 5.78847C5.24741 5.8785 5.71657 5.83229 6.14293 5.65569C6.56929 5.47909 6.93371 5.18002 7.1901 4.7963C7.44649 4.41259 7.58334 3.96146 7.58334 3.49997C7.58334 2.88113 7.3375 2.28764 6.89992 1.85006C6.46233 1.41247 5.86884 1.16664 5.25 1.16664Z",fill:"white"},null,-1)]))}const ZO=ld(Ptt,[["render",ztt]]),Ott={},Dtt={width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ftt(d,s){return _i(),zi("svg",Dtt,s[0]||(s[0]=[Ee("path",{d:"M6.77889 9.16667H10.1122V12.5M4.11222 3.83333H0.77889V0.5M10.3906 4.50227C10.0168 3.57711 9.39097 2.77536 8.58423 2.18815C7.77749 1.60094 6.82233 1.25168 5.82707 1.18034C4.8318 1.109 3.83627 1.31827 2.95402 1.78441C2.07177 2.25055 1.3381 2.95503 0.836182 3.81742M0.500244 8.49805C0.874034 9.42321 1.49986 10.225 2.30661 10.8122C3.11335 11.3994 4.06948 11.7482 5.06474 11.8195C6.06001 11.8909 7.05473 11.6816 7.93697 11.2155C8.81922 10.7494 9.55239 10.045 10.0543 9.18262",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const GO=ld(Ott,[["render",Ftt]]),Rtt={},Btt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ntt(d,s){return _i(),zi("svg",Btt,s[0]||(s[0]=[$f('',2)]))}const YO=ld(Rtt,[["render",Ntt]]),jtt={class:"w-[285px] flex-shrink-0 p-[15px] hidden lg:block"},Utt={class:"glass-card h-full p-6"},Vtt={class:"mb-12"},Htt={class:"text-[#C3C3C3] text-sm"},Wtt=["title"],qtt={class:"text-[#C3C3C3] text-sm mt-1"},$tt={class:"mb-8"},Ztt={class:"mb-8"},Gtt={class:"space-y-2"},Ytt=["onClick"],Ktt={class:"mb-8"},Xtt={class:"space-y-2"},Jtt=["onClick"],Qtt=["disabled"],tet={class:"flex items-center gap-3"},eet=["disabled"],ret={class:"flex items-center gap-3"},net={class:"mb-4"},iet={class:"flex items-center gap-2"},aet={class:"glass-card px-2 py-1 text-dark-text text-xs font-medium rounded border border-dark-border"},oet={class:"glass-card px-2 py-1 text-dark-text text-xs font-medium rounded border border-dark-border"},set={key:0,class:"mb-4"},uet={class:"text-dark-text text-xs mb-2"},cet={class:"text-white"},het={class:"w-full h-1 bg-white/10 rounded-full overflow-hidden"},fet={class:"flex items-center justify-between"},det={class:"flex items-center gap-2 text-dark-text text-xs"},pet={class:"flex items-center gap-2"},met={href:"https://github.com/rightup",target:"_blank",class:"inline-block"},get={href:"https://buymeacoffee.com/rightup",target:"_blank",class:"inline-block"},vet=Dc({name:"SidebarNav",__name:"Sidebar",setup(d){const s=pO(),E=mO(),B=Om(),K=Ga(!1),pt=Ga(!1),_t=Ga(!1),Ot=Ga(!1),jt=Ga(!1),te=Ga(null);let he=null;bp(async()=>{he=await B.startAutoRefresh(5e3)}),Iy(()=>{he&&he()});const De={dashboard:HO,neighbors:ZO,statistics:$O,configuration:VO,logs:qO,help:WO},er=[{name:"Dashboard",icon:"dashboard",route:"/"},{name:"Neighbors",icon:"neighbors",route:"/neighbors"},{name:"Statistics",icon:"statistics",route:"/statistics"},{name:"Configuration",icon:"configuration",route:"/configuration"},{name:"Logs",icon:"logs",route:"/logs"},{name:"Help",icon:"help",route:"/help"}],pr=$o(()=>Bn=>E.path===Bn),Mr=Bn=>{s.push(Bn)},Tr=async()=>{K.value=!0,te.value=null;try{await B.sendAdvert(),jt.value=!0,setTimeout(()=>{Vr()},2e3)}catch(Bn){te.value=Bn instanceof Error?Bn.message:"Unknown error occurred",console.error("Failed to send advert:",Bn)}finally{K.value=!1}},Vr=()=>{Ot.value=!1,jt.value=!1,te.value=null,K.value=!1},mn=async()=>{if(!pt.value){pt.value=!0;try{await B.toggleMode()}catch(Bn){console.error("Failed to toggle mode:",Bn)}finally{pt.value=!1}}},Dt=async()=>{if(!_t.value){_t.value=!0;try{await B.toggleDutyCycle()}catch(Bn){console.error("Failed to toggle duty cycle:",Bn)}finally{_t.value=!1}}},cn=Ga(new Date().toLocaleTimeString());setInterval(()=>{cn.value=new Date().toLocaleTimeString()},1e3);const Jn=$o(()=>{const Bn=B.dutyCyclePercentage;let ni="#A5E5B6";return Bn>90?ni="#FB787B":Bn>70&&(ni="#FFC246"),{width:Bn===0?"2px":`${Math.max(Bn,2)}%`,backgroundColor:ni}});return(Bn,ni)=>(_i(),zi(Pu,null,[Ee("aside",jtt,[Ee("div",Utt,[Ee("div",Vtt,[ni[1]||(ni[1]=Ee("h1",{class:"text-white text-[22px] font-bold mb-2"},"pyMC Repeater",-1)),Ee("p",Htt,[Qu(Qi(zl(B).nodeName)+" ",1),Ee("span",{class:jo(["inline-block w-2 h-2 rounded-full ml-2",zl(B).statusBadge.text==="Active"?"bg-accent-green":zl(B).statusBadge.text==="Monitor Mode"?"bg-secondary":"bg-accent-red"]),title:zl(B).statusBadge.title},null,10,Wtt)]),Ee("p",qtt,"<"+Qi(zl(B).pubKey)+">",1)]),ni[10]||(ni[10]=Ee("div",{class:"border-t border-dark-border mb-6"},null,-1)),Ee("div",$tt,[ni[3]||(ni[3]=Ee("p",{class:"text-dark-text text-xs uppercase mb-4"},"Actions",-1)),Ee("button",{onClick:ni[0]||(ni[0]=Wi=>Ot.value=!0),class:"w-full bg-white rounded-[10px] py-3 px-4 flex items-center gap-2 text-sm font-medium text-[#212122] hover:bg-gray-100 transition-colors"},ni[2]||(ni[2]=[Ee("svg",{class:"w-3.5 h-3.5",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Ee("path",{d:"M7 0C5.61553 0 4.26216 0.410543 3.11101 1.17971C1.95987 1.94888 1.06266 3.04213 0.532846 4.32122C0.003033 5.6003 -0.13559 7.00777 0.134506 8.36563C0.404603 9.7235 1.07129 10.9708 2.05026 11.9497C3.02922 12.9287 4.2765 13.5954 5.63437 13.8655C6.99224 14.1356 8.3997 13.997 9.67879 13.4672C10.9579 12.9373 12.0511 12.0401 12.8203 10.889C13.5895 9.73785 14 8.38447 14 7C13.998 5.1441 13.2599 3.36479 11.9475 2.05247C10.6352 0.74015 8.8559 0.0020073 7 0V0ZM7 12.8333C5.84628 12.8333 4.71846 12.4912 3.75918 11.8502C2.79989 11.2093 2.05222 10.2982 1.61071 9.23232C1.16919 8.16642 1.05368 6.99353 1.27876 5.86197C1.50384 4.73042 2.05941 3.69102 2.87521 2.87521C3.69102 2.0594 4.73042 1.50383 5.86198 1.27875C6.99353 1.05367 8.16642 1.16919 9.23232 1.6107C10.2982 2.05221 11.2093 2.79989 11.8502 3.75917C12.4912 4.71846 12.8333 5.84628 12.8333 7C12.8316 8.54658 12.2165 10.0293 11.1229 11.1229C10.0293 12.2165 8.54658 12.8316 7 12.8333ZM8.16667 7C8.1676 7.20501 8.11448 7.40665 8.01268 7.58461C7.91087 7.76256 7.76397 7.91054 7.58677 8.01365C7.40957 8.11676 7.20833 8.17136 7.00332 8.17194C6.7983 8.17252 6.59675 8.11906 6.41897 8.01696C6.24119 7.91485 6.09346 7.7677 5.99065 7.59033C5.88784 7.41295 5.83358 7.21162 5.83335 7.0066C5.83312 6.80159 5.88691 6.60013 5.98932 6.42252C6.09172 6.24491 6.23912 6.09743 6.41667 5.99492V3.5H7.58334V5.99492C7.76016 6.09659 7.90713 6.24298 8.00952 6.41939C8.1119 6.5958 8.1661 6.79603 8.16667 7Z",fill:"#212122"})],-1),Qu(" Send Advert ",-1)]))]),Ee("div",Ztt,[ni[4]||(ni[4]=Ee("p",{class:"text-dark-text text-xs uppercase mb-4"},"Monitoring",-1)),Ee("div",Gtt,[(_i(!0),zi(Pu,null,Jh(er.slice(0,3),Wi=>(_i(),zi("button",{key:Wi.name,onClick:Un=>Mr(Wi.route),class:jo([pr.value(Wi.route)?"bg-primary/20 shadow-[0_0_6px_0_rgba(170,232,232,0.20)] text-primary":"text-white hover:bg-white/5","w-full rounded-[10px] py-3 px-4 flex items-center gap-3 text-sm transition-all"])},[(_i(),Z0(f4(De[Wi.icon]),{class:"w-3.5 h-3.5"})),Qu(" "+Qi(Wi.name),1)],10,Ytt))),128))])]),Ee("div",Ktt,[ni[5]||(ni[5]=Ee("p",{class:"text-dark-text text-xs uppercase mb-4"},"System",-1)),Ee("div",Xtt,[(_i(!0),zi(Pu,null,Jh(er.slice(3),Wi=>(_i(),zi("button",{key:Wi.name,onClick:Un=>Mr(Wi.route),class:jo([pr.value(Wi.route)?"bg-primary/20 shadow-[0_0_6px_0_rgba(170,232,232,0.20)] text-primary":"text-white hover:bg-white/5","w-full rounded-[10px] py-3 px-4 flex items-center gap-3 text-sm transition-all"])},[(_i(),Z0(f4(De[Wi.icon]),{class:"w-3.5 h-3.5"})),Qu(" "+Qi(Wi.name),1)],10,Jtt))),128))])]),Wl(jO,{"current-value":zl(B).noiseFloorDbm||-116,"update-interval":3e3,class:"mb-6"},null,8,["current-value"]),Ee("button",{onClick:mn,disabled:pt.value,class:jo(["p-4 flex items-center justify-between mb-4 w-full transition-all duration-200 cursor-pointer group",zl(B).modeButtonState.warning?"glass-card-orange hover:bg-accent-red/10":"glass-card-green hover:bg-accent-green/10"])},[Ee("div",tet,[Wl(GO,{class:"w-4 h-4 text-white group-hover:text-primary transition-colors"}),ni[6]||(ni[6]=Ee("span",{class:"text-white text-sm group-hover:text-primary transition-colors"},"Mode",-1))]),Ee("span",{class:jo(["text-xs font-medium group-hover:text-white transition-colors",zl(B).modeButtonState.warning?"text-accent-red":"text-accent-green"])},Qi(pt.value?"Changing...":zl(B).currentMode.charAt(0).toUpperCase()+zl(B).currentMode.slice(1)),3)],10,Qtt),Ee("button",{onClick:Dt,disabled:_t.value,class:jo(["p-4 flex items-center justify-between mb-4 w-full transition-all duration-200 cursor-pointer group",zl(B).dutyCycleButtonState.warning?"glass-card-orange hover:bg-accent-red/10":"glass-card-green hover:bg-accent-green/10"])},[Ee("div",ret,[Wl(YO,{class:"w-3.5 h-3.5 text-white group-hover:text-primary transition-colors"}),ni[7]||(ni[7]=Ee("span",{class:"text-white text-sm group-hover:text-primary transition-colors"},"Duty Cycle",-1))]),Ee("span",{class:jo(["text-xs font-medium group-hover:text-white transition-colors",zl(B).dutyCycleButtonState.warning?"text-accent-red":"text-primary"])},Qi(_t.value?"Changing...":zl(B).dutyCycleEnabled?"Enabled":"Disabled"),3)],10,eet),Ee("div",net,[Ee("div",iet,[Ee("span",aet," R:v"+Qi(zl(B).version),1),Ee("span",oet," C:v"+Qi(zl(B).coreVersion),1)])]),ni[11]||(ni[11]=Ee("div",{class:"border-t border-accent-green mb-4"},null,-1)),zl(B).dutyCycleEnabled?(_i(),zi("div",set,[Ee("p",uet,[ni[8]||(ni[8]=Qu(" Duty Cycle: ",-1)),Ee("span",cet,Qi(zl(B).dutyCycleUtilization.toFixed(1))+"% / "+Qi(zl(B).dutyCycleMax.toFixed(1))+"%",1)]),Ee("div",het,[Ee("div",{class:"h-full rounded-full transition-all duration-300",style:hm(Jn.value)},null,4)])])):is("",!0),Ee("div",fet,[Ee("div",det,[ni[9]||(ni[9]=Ee("svg",{class:"w-3 h-3",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Ee("path",{d:"M6.5 13C5.59722 13 4.75174 12.8286 3.96355 12.4858C3.17537 12.143 2.48926 11.6795 1.90522 11.0955C1.32119 10.5115 0.85776 9.82535 0.514945 9.03717C0.172131 8.24898 0.000482491 7.40326 1.0101e-06 6.5C-0.000480471 5.59674 0.171168 4.75126 0.514945 3.96356C0.858723 3.17585 1.32191 2.48974 1.9045 1.90522C2.48709 1.3207 3.1732 0.857278 3.96283 0.514944C4.75246 0.172611 5.59818 0.000962963 6.5 0C7.48703 0 8.42303 0.210648 9.30799 0.631944C10.193 1.05324 10.9421 1.64907 11.5555 2.41944V1.44444C11.5555 1.23981 11.6249 1.06841 11.7635 0.930222C11.9022 0.792037 12.0736 0.722704 12.2778 0.722222C12.4819 0.721741 12.6536 0.791074 12.7927 0.930222C12.9319 1.06937 13.001 1.24078 13 1.44444V4.33333C13 4.53796 12.9307 4.70961 12.792 4.84828C12.6533 4.98694 12.4819 5.05604 12.2778 5.05556H9.38888C9.18425 5.05556 9.01285 4.98622 8.87466 4.84756C8.73647 4.70889 8.66714 4.53748 8.66666 4.33333C8.66618 4.12919 8.73551 3.95778 8.87466 3.81911C9.01381 3.68044 9.18521 3.61111 9.38888 3.61111H10.6528C10.1593 2.93704 9.55138 2.40741 8.82916 2.02222C8.10694 1.63704 7.33055 1.44444 6.5 1.44444C5.09166 1.44444 3.89711 1.93507 2.91633 2.91633C1.93555 3.89759 1.44493 5.09215 1.44444 6.5C1.44396 7.90785 1.93459 9.10265 2.91633 10.0844C3.89807 11.0661 5.09263 11.5565 6.5 11.5556C7.64351 11.5556 8.66666 11.2125 9.56944 10.5264C10.4722 9.84028 11.068 8.95555 11.3569 7.87222C11.4171 7.67963 11.5255 7.53519 11.6819 7.43889C11.8384 7.34259 12.013 7.30648 12.2055 7.33055C12.4102 7.35463 12.5727 7.44178 12.693 7.592C12.8134 7.74222 12.8495 7.90785 12.8014 8.08889C12.4523 9.5213 11.694 10.698 10.5264 11.6191C9.35879 12.5402 8.01666 13.0005 6.5 13ZM7.22222 6.21111L9.02777 8.01667C9.16018 8.14907 9.22638 8.31759 9.22638 8.52222C9.22638 8.72685 9.16018 8.89537 9.02777 9.02778C8.89536 9.16018 8.72685 9.22639 8.52222 9.22639C8.31759 9.22639 8.14907 9.16018 8.01666 9.02778L5.99444 7.00556C5.92222 6.93333 5.86805 6.8522 5.83194 6.76217C5.79583 6.67213 5.77777 6.57872 5.77777 6.48194V3.61111C5.77777 3.40648 5.84711 3.23507 5.98577 3.09689C6.12444 2.9587 6.29585 2.88937 6.5 2.88889C6.70414 2.88841 6.87579 2.95774 7.01494 3.09689C7.15409 3.23604 7.22318 3.40744 7.22222 3.61111V6.21111Z",fill:"currentColor"})],-1)),Qu(" Last Updated: "+Qi(cn.value),1)]),Ee("div",pet,[Ee("a",met,[Wl(zQ,{class:"w-4 h-4 text-dark-text hover:text-white transition-colors"})]),Ee("a",get,[Wl(RQ,{class:"w-4 h-4 text-dark-text hover:text-white transition-colors"})])])])])]),Wl(UO,{isOpen:Ot.value,isLoading:K.value,isSuccess:jt.value,error:te.value,onClose:Vr,onSend:Tr},null,8,["isOpen","isLoading","isSuccess","error"])],64))}}),yet={key:0,class:"fixed inset-0 z-40 lg:hidden"},xet={class:"absolute left-0 top-0 bottom-0 w-72 p-4"},_et={class:"glass-card h-full p-6 overflow-auto"},bet={class:"mb-6 flex items-center justify-between"},wet={class:"text-[#C3C3C3] text-sm"},ket=["title"],Tet={class:"text-[#C3C3C3] text-sm mt-1"},Aet={class:"mb-4"},Met={class:"mb-4"},Eet={class:"space-y-2 mb-3"},Cet=["onClick"],Let={class:"mb-4"},Pet={class:"space-y-2 mb-3"},Iet=["onClick"],zet=["disabled"],Oet={class:"flex items-center gap-3"},Det=["disabled"],Fet={class:"flex items-center gap-3"},Ret={class:"mb-4"},Bet={class:"flex items-center gap-2"},Net={class:"glass-card px-2 py-1 text-dark-text text-xs font-medium rounded border border-dark-border"},jet={class:"glass-card px-2 py-1 text-dark-text text-xs font-medium rounded border border-dark-border"},Uet={key:0,class:"mb-4"},Vet={class:"text-dark-text text-xs mb-2"},Het={class:"text-white"},Wet={class:"w-full h-1 bg-white/10 rounded-full overflow-hidden"},qet={class:"text-dark-text text-xs"},$et=Dc({name:"MobileSidebar",__name:"MobileSidebar",props:{showMobileSidebar:{type:Boolean}},emits:["update:showMobileSidebar"],setup(d,{emit:s}){const E=s,B=pO(),K=mO(),pt=Om(),_t=Ga(!1),Ot=Ga(!1),jt=Ga(!1),te=Ga(!1),he=Ga(!1),De=Ga(null);let er=null;bp(async()=>{er=await pt.startAutoRefresh(5e3)}),Iy(()=>{er&&er()});const pr={dashboard:HO,neighbors:ZO,statistics:$O,configuration:VO,logs:qO,help:WO},Mr=[{name:"Dashboard",icon:"dashboard",route:"/"},{name:"Neighbors",icon:"neighbors",route:"/neighbors"},{name:"Statistics",icon:"statistics",route:"/statistics"},{name:"Configuration",icon:"configuration",route:"/configuration"},{name:"Logs",icon:"logs",route:"/logs"},{name:"Help",icon:"help",route:"/help"}],Tr=$o(()=>Un=>K.path===Un),Vr=Un=>{B.push(Un),mn()},mn=()=>{E("update:showMobileSidebar",!1)},Dt=async()=>{_t.value=!0,De.value=null;try{await pt.sendAdvert(),he.value=!0,setTimeout(()=>{cn()},2e3)}catch(Un){De.value=Un instanceof Error?Un.message:"Unknown error occurred",console.error("Failed to send advert:",Un)}finally{_t.value=!1}},cn=()=>{te.value=!1,he.value=!1,De.value=null,_t.value=!1},Jn=async()=>{if(!Ot.value){Ot.value=!0;try{await pt.toggleMode()}catch(Un){console.error("Failed to toggle mode:",Un)}finally{Ot.value=!1}}},Bn=async()=>{if(!jt.value){jt.value=!0;try{await pt.toggleDutyCycle()}catch(Un){console.error("Failed to toggle duty cycle:",Un)}finally{jt.value=!1}}},ni=Ga(new Date().toLocaleTimeString());setInterval(()=>{ni.value=new Date().toLocaleTimeString()},1e3);const Wi=$o(()=>{const Un=pt.dutyCyclePercentage;let qr="#A5E5B6";return Un>90?qr="#FB787B":Un>70&&(qr="#FFC246"),{width:Un===0?"2px":`${Math.max(Un,2)}%`,backgroundColor:qr}});return(Un,qr)=>(_i(),zi(Pu,null,[Un.showMobileSidebar?(_i(),zi("div",yet,[Ee("div",{class:"absolute inset-0 bg-black/50",onClick:mn}),Ee("div",xet,[Ee("div",_et,[Ee("div",bet,[Ee("div",null,[qr[1]||(qr[1]=Ee("h1",{class:"text-white text-[20px] font-bold"},"pyMC Repeater",-1)),Ee("p",wet,[Qu(Qi(zl(pt).nodeName)+" ",1),Ee("span",{class:jo(["inline-block w-2 h-2 rounded-full ml-2",zl(pt).statusBadge.text==="Active"?"bg-accent-green":zl(pt).statusBadge.text==="Monitor Mode"?"bg-secondary":"bg-accent-red"]),title:zl(pt).statusBadge.title},null,10,ket)]),Ee("p",Tet,"<"+Qi(zl(pt).pubKey)+">",1)]),Ee("button",{onClick:mn,class:"text-dark-text"},"✕")]),qr[9]||(qr[9]=Ee("div",{class:"border-t border-dark-border mb-4"},null,-1)),Ee("div",Aet,[qr[3]||(qr[3]=Ee("p",{class:"text-dark-text text-xs uppercase mb-2"},"Actions",-1)),Ee("button",{onClick:qr[0]||(qr[0]=Di=>te.value=!0),class:"w-full bg-white rounded-[10px] py-3 px-4 flex items-center gap-2 text-sm font-medium text-[#212122] hover:bg-gray-100 transition-colors mb-2"},qr[2]||(qr[2]=[Ee("svg",{class:"w-3.5 h-3.5",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Ee("path",{d:"M7 0C5.61553 0 4.26216 0.410543 3.11101 1.17971C1.95987 1.94888 1.06266 3.04213 0.532846 4.32122C0.003033 5.6003 -0.13559 7.00777 0.134506 8.36563C0.404603 9.7235 1.07129 10.9708 2.05026 11.9497C3.02922 12.9287 4.2765 13.5954 5.63437 13.8655C6.99224 14.1356 8.3997 13.997 9.67879 13.4672C10.9579 12.9373 12.0511 12.0401 12.8203 10.889C13.5895 9.73785 14 8.38447 14 7C13.998 5.1441 13.2599 3.36479 11.9475 2.05247C10.6352 0.74015 8.8559 0.0020073 7 0V0ZM7 12.8333C5.84628 12.8333 4.71846 12.4912 3.75918 11.8502C2.79989 11.2093 2.05222 10.2982 1.61071 9.23232C1.16919 8.16642 1.05368 6.99353 1.27876 5.86197C1.50384 4.73042 2.05941 3.69102 2.87521 2.87521C3.69102 2.0594 4.73042 1.50383 5.86198 1.27875C6.99353 1.05367 8.16642 1.16919 9.23232 1.6107C10.2982 2.05221 11.2093 2.79989 11.8502 3.75917C12.4912 4.71846 12.8333 5.84628 12.8333 7C12.8316 8.54658 12.2165 10.0293 11.1229 11.1229C10.0293 12.2165 8.54658 12.8316 7 12.8333ZM8.16667 7C8.1676 7.20501 8.11448 7.40665 8.01268 7.58461C7.91087 7.76256 7.76397 7.91054 7.58677 8.01365C7.40957 8.11676 7.20833 8.17136 7.00332 8.17194C6.7983 8.17252 6.59675 8.11906 6.41897 8.01696C6.24119 7.91485 6.09346 7.7677 5.99065 7.59033C5.88784 7.41295 5.83358 7.21162 5.83335 7.0066C5.83312 6.80159 5.88691 6.60013 5.98932 6.42252C6.09172 6.24491 6.23912 6.09743 6.41667 5.99492V3.5H7.58334V5.99492C7.76016 6.09659 7.90713 6.24298 8.00952 6.41939C8.1119 6.5958 8.1661 6.79603 8.16667 7Z",fill:"#212122"})],-1),Qu(" Send Advert ",-1)]))]),Ee("div",Met,[qr[4]||(qr[4]=Ee("p",{class:"text-dark-text text-xs uppercase mb-2"},"Monitoring",-1)),Ee("div",Eet,[(_i(!0),zi(Pu,null,Jh(Mr.slice(0,3),Di=>(_i(),zi("button",{key:Di.name,onClick:Fi=>Vr(Di.route),class:jo([Tr.value(Di.route)?"bg-primary/20 shadow-[0_0_6px_0_rgba(170,232,232,0.20)] text-primary":"text-white hover:bg-white/5","w-full rounded-[10px] py-3 px-4 flex items-center gap-3 text-sm transition-all"])},[(_i(),Z0(f4(pr[Di.icon]),{class:"w-3.5 h-3.5"})),Qu(" "+Qi(Di.name),1)],10,Cet))),128))])]),Ee("div",Let,[qr[5]||(qr[5]=Ee("p",{class:"text-dark-text text-xs uppercase mb-2"},"System",-1)),Ee("div",Pet,[(_i(!0),zi(Pu,null,Jh(Mr.slice(3),Di=>(_i(),zi("button",{key:Di.name,onClick:Fi=>Vr(Di.route),class:jo([Tr.value(Di.route)?"bg-primary/20 shadow-[0_0_6px_0_rgba(170,232,232,0.20)] text-primary":"text-white hover:bg-white/5","w-full rounded-[10px] py-3 px-4 flex items-center gap-3 text-sm transition-all"])},[(_i(),Z0(f4(pr[Di.icon]),{class:"w-3.5 h-3.5"})),Qu(" "+Qi(Di.name),1)],10,Iet))),128))])]),Wl(jO,{"current-value":zl(pt).noiseFloorDbm||-116,"update-interval":3e3,class:"mb-4"},null,8,["current-value"]),Ee("button",{onClick:Jn,disabled:Ot.value,class:jo(["p-4 flex items-center justify-between mb-3 w-full transition-all duration-200 cursor-pointer group",zl(pt).modeButtonState.warning?"glass-card-orange hover:bg-accent-red/10":"glass-card-green hover:bg-accent-green/10"])},[Ee("div",Oet,[Wl(GO,{class:"w-4 h-4 text-white group-hover:text-primary transition-colors"}),qr[6]||(qr[6]=Ee("span",{class:"text-white text-sm group-hover:text-primary transition-colors"},"Mode",-1))]),Ee("span",{class:jo(["text-xs font-medium group-hover:text-white transition-colors",zl(pt).modeButtonState.warning?"text-accent-red":"text-accent-green"])},Qi(Ot.value?"Changing...":zl(pt).currentMode.charAt(0).toUpperCase()+zl(pt).currentMode.slice(1)),3)],10,zet),Ee("button",{onClick:Bn,disabled:jt.value,class:jo(["p-4 flex items-center justify-between mb-3 w-full transition-all duration-200 cursor-pointer group",zl(pt).dutyCycleButtonState.warning?"glass-card-orange hover:bg-accent-red/10":"glass-card-green hover:bg-accent-green/10"])},[Ee("div",Fet,[Wl(YO,{class:"w-3.5 h-3.5 text-white group-hover:text-primary transition-colors"}),qr[7]||(qr[7]=Ee("span",{class:"text-white text-sm group-hover:text-primary transition-colors"},"Duty Cycle",-1))]),Ee("span",{class:jo(["text-xs font-medium group-hover:text-white transition-colors",zl(pt).dutyCycleButtonState.warning?"text-accent-red":"text-primary"])},Qi(jt.value?"Changing...":zl(pt).dutyCycleEnabled?"Enabled":"Disabled"),3)],10,Det),Ee("div",Ret,[Ee("div",Bet,[Ee("span",Net," R:v"+Qi(zl(pt).version),1),Ee("span",jet," C:v"+Qi(zl(pt).coreVersion),1)])]),qr[10]||(qr[10]=Ee("div",{class:"border-t border-accent-green mb-4"},null,-1)),zl(pt).dutyCycleEnabled?(_i(),zi("div",Uet,[Ee("p",Vet,[qr[8]||(qr[8]=Qu(" Duty Cycle: ",-1)),Ee("span",Het,Qi(zl(pt).dutyCycleUtilization.toFixed(1))+"% / "+Qi(zl(pt).dutyCycleMax.toFixed(1))+"%",1)]),Ee("div",Wet,[Ee("div",{class:"h-full rounded-full transition-all duration-300",style:hm(Wi.value)},null,4)])])):is("",!0),Ee("p",qet,"Last Updated: "+Qi(ni.value),1)])])])):is("",!0),Wl(UO,{isOpen:te.value,isLoading:_t.value,isSuccess:he.value,error:De.value,onClose:cn,onSend:Dt},null,8,["isOpen","isLoading","isSuccess","error"])],64))}}),Zet={class:"glass-card p-6 mb-5 rounded-[20px] relative z-10"},Get={class:"flex flex-col lg:flex-row lg:items-center lg:justify-between gap-4"},Yet={class:"flex items-center gap-3"},Ket={class:"text-right mr-4"},Xet={key:0,class:"flex items-center gap-2"},Jet={key:1,class:"space-y-1"},Qet={class:"text-dark-text text-sm"},trt={class:"text-primary font-medium"},ert={key:0,class:"text-xs text-dark-text/80"},rrt={key:0},nrt={key:1,class:"text-xs text-dark-text/60"},irt={key:2},art={key:0,class:"text-xs text-dark-text/60"},ort=["disabled"],srt={class:"flex items-center justify-between mb-3"},lrt={class:"flex items-center gap-2"},urt=["disabled"],crt=["disabled"],hrt={class:"space-y-3 text-sm"},frt={key:0,class:"bg-[#0B1014] p-3 rounded-lg border border-accent-red/30 border-l-2 border-l-accent-red"},drt={class:"flex items-center justify-between"},prt={class:"text-accent-red font-bold"},mrt={class:"text-xs text-gray-400 mt-1"},grt={key:1,class:"bg-[#0B1014] p-3 rounded-lg border border-white/10 border-l-2 border-l-accent-green"},vrt={class:"flex items-center justify-between"},yrt={class:"text-accent-green font-bold"},xrt={key:0,class:"text-xs text-gray-400 mt-1"},_rt={key:2,class:"bg-[#0B1014] p-3 rounded-lg border border-white/10"},brt={key:3,class:"bg-[#0B1014] p-3 rounded-lg border border-accent-red/30 border-l-2 border-l-accent-red"},wrt={class:"text-xs text-gray-400"},krt={class:"bg-[#0B1014] p-3 rounded-lg border border-white/10 border-l-2 border-l-primary"},Trt={class:"flex items-center justify-between"},Art={class:"text-primary font-bold"},Mrt={key:0,class:"text-xs text-gray-400 mt-1"},Srt={class:"flex items-center justify-between"},Ert={class:"text-white font-medium"},Crt={key:0,class:"mt-2"},Lrt={class:"text-xs text-gray-400"},Prt={class:"text-gray-300"},Irt={key:4,class:"bg-[#0B1014] p-4 rounded-lg border border-white/10 text-center"},zrt={key:5,class:"bg-[#0B1014] p-3 rounded-lg border border-white/10 text-center"},Ort=Dc({name:"TopBar",__name:"TopBar",emits:["toggleMobileSidebar"],setup(d,{emit:s}){const E=s,B=Om(),K=Ga(!1),pt=Ga(null),_t=Ga({hasUpdate:!1,currentVersion:"",latestVersion:"",isChecking:!1,lastChecked:null,error:null}),Ot=Ga({}),jt=Ga(!0),te=Ga(null),he=["Chat Node","Repeater","Room Server"];function De(Un){const qr=Un.target;pt.value&&!pt.value.contains(qr)&&(K.value=!1)}const er=async()=>{try{jt.value=!0;const Un={};for(const qr of he)try{const Di=await Ah.get(`/adverts_by_contact_type?contact_type=${encodeURIComponent(qr)}&hours=168`);Di.success&&Array.isArray(Di.data)?Un[qr]=Di.data:Un[qr]=[]}catch(Di){console.error(`Error fetching ${qr} nodes:`,Di),Un[qr]=[]}Ot.value=Un,te.value=new Date}catch(Un){console.error("Error updating tracked nodes:",Un)}finally{jt.value=!1}},pr=async()=>{if(!_t.value.isChecking)try{_t.value.isChecking=!0,_t.value.error=null,await B.fetchStats();const Un=B.version;if(!Un||Un==="Unknown"){_t.value.error="Unable to determine current version";return}const Di=await fetch("https://raw.githubusercontent.com/rightup/pyMC_Repeater/main/repeater/__init__.py");if(!Di.ok)throw new Error(`GitHub request failed: ${Di.status}`);const Pi=(await Di.text()).match(/__version__\s*=\s*["']([^"']+)["']/);if(!Pi)throw new Error("Could not parse version from GitHub file");const bi=Pi[1];_t.value.currentVersion=Un,_t.value.latestVersion=bi,_t.value.lastChecked=new Date,_t.value.hasUpdate=Un!==bi}catch(Un){console.error("Error checking for updates:",Un),_t.value.error=Un instanceof Error?Un.message:"Failed to check for updates"}finally{_t.value.isChecking=!1}},Mr=$o(()=>Object.values(Ot.value).reduce((qr,Di)=>qr+Di.length,0)),Tr=$o(()=>he.map(qr=>({type:qr,count:Ot.value[qr]?.length||0})).filter(qr=>qr.count>0)),Vr=$o(()=>_t.value.hasUpdate||Mr.value>0),mn=Un=>({"Chat Node":"text-blue-400",Repeater:"text-accent-green","Room Server":"text-accent-purple"})[Un]||"text-gray-400",Dt=Un=>{const qr=Ot.value[Un]||[];return qr.length===0?"None":qr.reduce((Fi,Pi)=>Pi.last_seen>Fi.last_seen?Pi:Fi,qr[0]).node_name||"Unknown Node"};let cn=null,Jn=null;const Bn=()=>{cn&&clearInterval(cn),cn=setInterval(()=>{er()},3e4),Jn&&clearInterval(Jn),Jn=setInterval(()=>{pr()},6e5)},ni=()=>{cn&&(clearInterval(cn),cn=null),Jn&&(clearInterval(Jn),Jn=null)};bp(()=>{document.addEventListener("click",De),er(),pr(),Bn()}),gg(()=>{document.removeEventListener("click",De),ni()});const Wi=()=>{E("toggleMobileSidebar")};return(Un,qr)=>(_i(),zi("div",Zet,[Ee("div",Get,[Ee("div",{class:"flex items-center gap-3"},[Ee("button",{onClick:Wi,class:"lg:hidden w-10 h-10 rounded bg-[#1A1E1F] flex items-center justify-center hover:bg-[#2A2E2F] transition-colors"},qr[2]||(qr[2]=[Ee("svg",{class:"w-5 h-5 text-white",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Ee("path",{d:"M3 6h14M3 10h14M3 14h14",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),qr[3]||(qr[3]=Ee("div",null,[Ee("h1",{class:"text-white text-[35px] font-bold mb-2"},"Welcome👋")],-1))]),Ee("div",Yet,[Ee("div",Ket,[jt.value?(_i(),zi("div",Xet,qr[4]||(qr[4]=[Ee("div",{class:"animate-spin rounded-full h-3 w-3 border-b-2 border-primary"},null,-1),Ee("p",{class:"text-dark-text text-sm"},"Loading tracking data...",-1)]))):Mr.value>0?(_i(),zi("div",Jet,[Ee("p",Qet,[qr[5]||(qr[5]=Qu(" Tracking: ",-1)),Ee("span",trt,Qi(Mr.value)+" node"+Qi(Mr.value===1?"":"s"),1)]),Tr.value.length>1?(_i(),zi("div",ert,[(_i(!0),zi(Pu,null,Jh(Tr.value,(Di,Fi)=>(_i(),zi("span",{key:Di.type,class:"inline"},[Qu(Qi(Di.count)+" "+Qi(Di.type)+Qi(Di.count===1?"":"s"),1),FiK.value=!K.value,["stop"])),class:"w-[35px] h-[35px] rounded bg-[#1A1E1F] flex items-center justify-center hover:bg-[#2A2E2F] transition-colors relative"},[qr[8]||(qr[8]=Ee("svg",{class:"w-5 h-5",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Ee("path",{d:"M12.5 14.1667V15C12.5 16.3807 11.3807 17.5 9.99998 17.5C8.61927 17.5 7.49998 16.3807 7.49998 15V14.1667M12.5 14.1667L7.49998 14.1667M12.5 14.1667H15.8333C16.2936 14.1667 16.6666 13.7936 16.6666 13.3333V12.845C16.6666 12.624 16.5788 12.4122 16.4225 12.2559L15.9969 11.8302C15.8921 11.7255 15.8333 11.5833 15.8333 11.4351V8.33333C15.8333 8.1863 15.828 8.04045 15.817 7.89674M7.49998 14.1667L4.16665 14.1668C3.70641 14.1668 3.33331 13.7934 3.33331 13.3332V12.8451C3.33331 12.6241 3.42118 12.4124 3.57745 12.2561L4.00307 11.8299C4.10781 11.7251 4.16665 11.5835 4.16665 11.4353V8.33331C4.16665 5.11167 6.77831 2.5 9.99998 2.5C10.593 2.5 11.1653 2.58848 11.7045 2.75297M15.817 7.89674C16.8223 7.32275 17.5 6.24051 17.5 5C17.5 3.15905 16.0076 1.66666 14.1666 1.66666C13.1914 1.66666 12.3141 2.08544 11.7045 2.75297M15.817 7.89674C15.3304 8.17457 14.7671 8.33333 14.1666 8.33333C12.3257 8.33333 10.8333 6.84095 10.8333 5C10.8333 4.13425 11.1634 3.34558 11.7045 2.75297M15.817 7.89674C15.817 7.89674 15.817 7.89675 15.817 7.89674ZM11.7045 2.75297C11.7049 2.75309 11.7053 2.75321 11.7057 2.75333",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),Vr.value?(_i(),zi("span",{key:0,class:jo(["absolute top-2 right-2 w-2 h-2 rounded-full",_t.value.hasUpdate?"bg-accent-red animate-pulse":"bg-primary"])},null,2)):is("",!0)]),K.value?(_i(),zi("div",{key:0,ref_key:"notifRef",ref:pt,class:"absolute right-6 top-14 z-[100] w-80 bg-[#1A1E1F] border border-white/20 rounded-[15px] p-4 shadow-2xl backdrop-blur-sm",onClick:qr[1]||(qr[1]=Pm(()=>{},["stop"]))},[Ee("div",srt,[qr[10]||(qr[10]=Ee("p",{class:"text-white font-semibold"},"System Status",-1)),Ee("div",lrt,[Ee("button",{onClick:pr,disabled:_t.value.isChecking,class:"text-xs text-primary hover:text-primary/80 disabled:opacity-50",title:"Check for updates"},Qi(_t.value.isChecking?"Checking...":"Check Updates"),9,urt),qr[9]||(qr[9]=Ee("span",{class:"text-dark-text text-xs"},"•",-1)),Ee("button",{onClick:er,disabled:jt.value,class:"text-xs text-primary hover:text-primary/80 disabled:opacity-50"},Qi(jt.value?"Updating...":"Refresh"),9,crt)])]),Ee("div",hrt,[_t.value.hasUpdate?(_i(),zi("div",frt,[Ee("div",drt,[qr[11]||(qr[11]=Ee("span",{class:"text-white font-medium"},"Update Available",-1)),Ee("span",prt,Qi(_t.value.latestVersion),1)]),Ee("div",mrt," Current: "+Qi(_t.value.currentVersion),1),qr[12]||(qr[12]=Ee("div",{class:"text-xs text-gray-300 mt-2"},[Ee("a",{href:"https://github.com/rightup/pyMC_Repeater",target:"_blank",class:"text-accent-red hover:text-accent-red/80 underline"}," Goto Github→ ")],-1))])):_t.value.currentVersion&&!_t.value.isChecking?(_i(),zi("div",grt,[Ee("div",vrt,[qr[13]||(qr[13]=Ee("span",{class:"text-white font-medium"},"Up to Date",-1)),Ee("span",yrt,Qi(_t.value.currentVersion),1)]),_t.value.lastChecked?(_i(),zi("div",xrt," Last checked: "+Qi(_t.value.lastChecked.toLocaleTimeString()),1)):is("",!0)])):_t.value.isChecking?(_i(),zi("div",_rt,qr[14]||(qr[14]=[Ee("div",{class:"flex items-center justify-center gap-2"},[Ee("div",{class:"animate-spin rounded-full h-4 w-4 border-b-2 border-primary"}),Ee("span",{class:"text-gray-300"},"Checking for updates...")],-1)]))):_t.value.error?(_i(),zi("div",brt,[qr[15]||(qr[15]=Ee("div",{class:"text-white font-medium mb-1"},"Update Check Failed",-1)),Ee("div",wrt,Qi(_t.value.error),1)])):is("",!0),qr[20]||(qr[20]=Ee("div",{class:"border-t border-white/10"},null,-1)),qr[21]||(qr[21]=Ee("div",{class:"text-white font-medium text-sm mb-2"},"Mesh Network Status",-1)),Ee("div",krt,[Ee("div",Trt,[qr[16]||(qr[16]=Ee("span",{class:"text-white font-medium"},"Total Tracked Nodes",-1)),Ee("span",Art,Qi(Mr.value),1)]),te.value?(_i(),zi("div",Mrt," Last updated: "+Qi(te.value.toLocaleString()),1)):is("",!0)]),(_i(!0),zi(Pu,null,Jh(Tr.value,Di=>(_i(),zi("div",{key:Di.type,class:"bg-[#0B1014] p-3 rounded-lg border border-white/10"},[Ee("div",Srt,[Ee("span",Ert,Qi(Di.type)+Qi(Di.count===1?"":"s"),1),Ee("span",{class:jo([mn(Di.type),"font-bold"])},Qi(Di.count),3)]),Ot.value[Di.type]?.length>0?(_i(),zi("div",Crt,[Ee("div",Lrt,[qr[17]||(qr[17]=Qu(" Latest: ",-1)),Ee("span",Prt,Qi(Dt(Di.type)),1)])])):is("",!0)]))),128)),Mr.value===0&&!jt.value?(_i(),zi("div",Irt,qr[18]||(qr[18]=[Ee("div",{class:"text-gray-400"},[Ee("svg",{class:"w-8 h-8 mx-auto mb-2 opacity-50",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[Ee("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9.172 16.172a4 4 0 015.656 0M9 12h6m-6-4h6m2 5.291A7.962 7.962 0 0112 15c-2.034 0-3.9.785-5.291 2.09M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]),Ee("span",null,"No mesh nodes detected")],-1)]))):is("",!0),jt.value?(_i(),zi("div",zrt,qr[19]||(qr[19]=[Ee("div",{class:"flex items-center justify-center gap-2"},[Ee("div",{class:"animate-spin rounded-full h-4 w-4 border-b-2 border-primary"}),Ee("span",{class:"text-gray-300"},"Scanning mesh network...")],-1)]))):is("",!0)])],512)):is("",!0)])])]))}}),Drt=ld(Ort,[["__scopeId","data-v-0a06f286"]]),Frt={class:"min-h-screen bg-dark-bg overflow-hidden relative font-sans"},Rrt={class:"relative flex min-h-screen"},Brt={class:"flex-1 p-4 lg:p-[15px] overflow-y-auto"},Nrt=Dc({name:"DashboardLayout",__name:"DashboardLayout",setup(d){const s=Ga(!1),E=()=>{s.value=!s.value},B=()=>{s.value=!1};return(K,pt)=>{const _t=QA("router-view");return _i(),zi("div",Frt,[pt[1]||(pt[1]=Ee("div",{class:"absolute rounded-full -rotate-[24.22deg] w-[705px] h-[512px] bg-gradient-to-b from-cyan-400/25 to-cyan-200/10 blur-[120px] opacity-80 -top-[79px] left-[575px] mix-blend-screen pointer-events-none"},null,-1)),pt[2]||(pt[2]=Ee("div",{class:"absolute rounded-full -rotate-[24.22deg] w-[705px] h-[512px] bg-gradient-to-b from-cyan-400/25 to-cyan-200/10 blur-[120px] opacity-75 -top-[94px] -left-[92px] mix-blend-screen pointer-events-none"},null,-1)),pt[3]||(pt[3]=Ee("div",{class:"absolute rounded-full -rotate-[24.22deg] w-[705px] h-[512px] bg-gradient-to-b from-cyan-400/25 to-cyan-200/10 blur-[120px] opacity-80 top-[373px] left-[246px] mix-blend-screen pointer-events-none"},null,-1)),Ee("div",Rrt,[Wl(vet,{class:"hidden lg:block"}),Wl($et,{showMobileSidebar:s.value,"onUpdate:showMobileSidebar":pt[0]||(pt[0]=Ot=>s.value=Ot),onClose:B},null,8,["showMobileSidebar"]),Ee("main",Brt,[Wl(Drt,{onToggleMobileSidebar:E}),Wl(_t)])])])}}}),jrt=Dc({__name:"App",setup(d){return(s,E)=>(_i(),Z0(Nrt))}}),Urt={class:"sparkline-container"},Vrt={class:"text-white text-sm font-semibold mb-4"},Hrt={class:"flex items-end gap-4"},Wrt=["id","width","height","viewBox"],qrt=["id"],$rt=["stop-color"],Zrt=["stop-color"],Grt=["d","fill"],Yrt=["d","stroke"],Krt=["cx","cy","fill"],Xrt=Dc({name:"SparklineChart",__name:"Sparkline",props:{title:{},value:{},color:{},data:{default:()=>[]},width:{default:131},height:{default:37},animate:{type:Boolean,default:!0},showChart:{type:Boolean,default:!0}},setup(d){const s=d,E=$o(()=>{if(s.data&&s.data.length>0)return s.data;const _t=typeof s.value=="number"?s.value:10,Ot=20,jt=_t*.3;return Array.from({length:Ot},(te,he)=>{const De=Math.sin(he/Ot*Math.PI*2)*jt*.5,er=(Math.random()-.5)*jt*.3;return Math.max(0,_t+De+er)})}),B=$o(()=>{const _t=E.value;if(_t.length<2)return"";const Ot=Math.max(..._t),jt=Math.min(..._t),te=Ot-jt||1,he=s.width/(_t.length-1);let De="";return _t.forEach((er,pr)=>{const Mr=pr*he,Tr=s.height-(er-jt)/te*s.height;if(pr===0)De+=`M ${Mr} ${Tr}`;else{const mn=((pr-1)*he+Mr)/2;De+=` Q ${mn} ${Tr} ${Mr} ${Tr}`}}),De}),K=Ga("");bp(()=>{K.value=B.value}),Em(()=>s.data,(_t,Ot)=>{const jt=!Ot||_t.length!==Ot.length||Math.abs(_t.length-Ot.length)>5;s.animate&&jt?(K.value="",setTimeout(()=>{K.value=B.value},50)):K.value=B.value});const pt=$o(()=>`sparkline-${s.title.replace(/\s+/g,"-").toLowerCase()}`);return(_t,Ot)=>(_i(),zi("div",Urt,[Ee("p",Vrt,Qi(_t.title),1),Ee("div",Hrt,[Ee("span",{class:"text-[30px] font-bold",style:hm({color:_t.color})},[Qu(Qi(_t.value),1),pY(_t.$slots,"unit",{},void 0)],4),_t.showChart?(_i(),zi("svg",{key:0,id:pt.value,class:"mb-3 sparkline-svg",width:_t.width,height:_t.height,viewBox:`0 0 ${_t.width} ${_t.height}`,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Ee("defs",null,[Ee("linearGradient",{id:`gradient-${pt.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[Ee("stop",{offset:"0%","stop-color":_t.color,"stop-opacity":"0.3"},null,8,$rt),Ee("stop",{offset:"100%","stop-color":_t.color,"stop-opacity":"0.1"},null,8,Zrt)],8,qrt)]),Ee("path",{d:`${K.value} L ${_t.width} ${_t.height} L 0 ${_t.height} Z`,fill:`url(#gradient-${pt.value})`,class:"sparkline-fill"},null,8,Grt),Ee("path",{d:K.value,stroke:_t.color,"stroke-width":"2",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:jo(["sparkline-path",{"animate-draw":_t.animate}])},null,10,Yrt),E.value.length>0?(_i(),zi("circle",{key:0,cx:_t.width,cy:_t.height-(E.value[E.value.length-1]-Math.min(...E.value))/(Math.max(...E.value)-Math.min(...E.value)||1)*_t.height,r:"2",fill:_t.color,class:jo(["sparkline-dot",{"animate-pulse":_t.animate}])},null,10,Krt)):is("",!0)],8,Wrt)):is("",!0)])]))}}),o_=ld(Xrt,[["__scopeId","data-v-574bf55e"]]),Jrt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-5"},Qrt=Dc({name:"StatsCards",__name:"StatsCards",setup(d){const s=sw(),E=Ga(null),B=$o(()=>{const _t=s.packetStats,Ot=s.systemStats,jt=te=>{const he=Math.floor(te/86400),De=Math.floor(te%86400/3600),er=Math.floor(te%3600/60);return he>0?`${he}d ${De}h`:De>0?`${De}h ${er}m`:`${er}m`};return{packetsReceived:_t?.total_packets||0,packetsForwarded:_t?.transmitted_packets||0,uptimeFormatted:Ot?jt(Ot.uptime_seconds||0):"0m",uptimeHours:Ot?Math.floor((Ot.uptime_seconds||0)/3600):0,droppedPackets:_t?.dropped_packets||0,signalQuality:Math.round((_t?.avg_rssi||0)+120)}}),K=$o(()=>s.sparklineData),pt=async()=>{try{await Promise.all([s.fetchSystemStats(),s.fetchPacketStats({hours:24})])}catch(_t){console.error("Error fetching stats:",_t)}};return bp(()=>{pt(),E.value=window.setInterval(pt,5e3)}),gg(()=>{E.value&&clearInterval(E.value)}),(_t,Ot)=>(_i(),zi("div",Jrt,[Wl(o_,{title:"RX Packets",value:B.value.packetsReceived,color:"#AAE8E8",data:K.value.totalPackets},null,8,["value","data"]),Wl(o_,{title:"Forward",value:B.value.packetsForwarded,color:"#FFC246",data:K.value.transmittedPackets},null,8,["value","data"]),Wl(o_,{title:"Up Time",value:B.value.uptimeFormatted,color:"#EBA0FC",data:[],showChart:!1},null,8,["value"]),Wl(o_,{title:"Dropped",value:B.value.droppedPackets,color:"#FB787B",data:K.value.droppedPackets},null,8,["value","data"])]))}}),tnt={class:"glass-card rounded-[10px] p-6"},ent={class:"h-80 relative"},rnt={key:0,class:"absolute inset-0 flex items-center justify-center"},nnt={key:1,class:"absolute inset-0 flex items-center justify-center"},int={class:"text-red-400"},ant={key:2,class:"absolute inset-0 flex items-center justify-center"},ont={key:3,class:"h-full flex items-end justify-around gap-2 px-4"},snt={class:"relative w-full h-64 flex flex-col justify-end"},lnt={class:"text-white text-xs font-semibold drop-shadow-lg backdrop-blur-sm bg-black/20 px-2 py-0.5 rounded-md border border-white/10"},unt={class:"mt-2 text-center"},cnt={class:"text-white text-xs font-medium leading-tight"},hnt={key:0,class:"mt-4 text-sm text-white text-center"},fnt=Dc({name:"SignalQualityChart",__name:"SignalQualityChart",setup(d){const s=Ga([]),E=Ga(null),B=Ga(!0),K=Ga(null),pt=["rgba(59, 130, 246, 0.8)","rgba(16, 185, 129, 0.8)","rgba(139, 92, 246, 0.8)","rgba(245, 158, 11, 0.8)","rgba(239, 68, 68, 0.8)","rgba(6, 182, 212, 0.8)","rgba(249, 115, 22, 0.8)","rgba(132, 204, 22, 0.8)","rgba(236, 72, 153, 0.8)","rgba(107, 114, 128, 0.8)"],_t=async()=>{try{K.value=null;const jt=await Ah.get("/packet_type_graph_data");if(jt?.success&&jt?.data){const te=jt.data;if(te?.series){const he=[];te.series.forEach((De,er)=>{let pr=0;De.data&&Array.isArray(De.data)&&(pr=De.data.reduce((Mr,Tr)=>Mr+(Tr[1]||0),0)),pr>0&&he.push({name:De.name||`Type ${De.type}`,type:De.type,count:pr,color:pt[er%pt.length]})}),he.sort((De,er)=>er.count-De.count),s.value=he,B.value=!1}else console.error("No series data found in response"),K.value="No series data in server response",B.value=!1}else console.error("Invalid API response structure:",jt),K.value="Invalid response from server",B.value=!1}catch(jt){console.error("Failed to fetch packet type data:",jt),K.value=jt instanceof Error?jt.message:"Failed to load data",B.value=!1}},Ot=jt=>{if(s.value.length===0)return 0;const te=Math.max(...s.value.map(he=>he.count));return Math.max(jt/te*100,2)};return bp(()=>{_t(),E.value=setInterval(()=>{_t()},3e4)}),gg(()=>{E.value&&clearInterval(E.value)}),(jt,te)=>(_i(),zi("div",tnt,[te[2]||(te[2]=Ee("h3",{class:"text-white text-xl font-semibold mb-4"},"Packet Types",-1)),te[3]||(te[3]=Ee("p",{class:"text-white text-sm uppercase mb-4"},"Distribution by Type",-1)),Ee("div",ent,[B.value?(_i(),zi("div",rnt,te[0]||(te[0]=[Ee("div",{class:"text-white"},"Loading packet types...",-1)]))):K.value?(_i(),zi("div",nnt,[Ee("div",int,Qi(K.value),1)])):s.value.length===0?(_i(),zi("div",ant,te[1]||(te[1]=[Ee("div",{class:"text-white"},"No packet data available",-1)]))):(_i(),zi("div",ont,[(_i(!0),zi(Pu,null,Jh(s.value,he=>(_i(),zi("div",{key:he.type,class:"flex flex-col items-center flex-1 max-w-20 h-full"},[Ee("div",snt,[Ee("div",{class:"w-full rounded-t-[10px] transition-all duration-500 ease-out flex items-end justify-center pb-1 backdrop-blur-[50px] shadow-lg border border-white/20 hover:border-white/30",style:hm({height:Ot(he.count)+"%",background:`linear-gradient(135deg, - ${he.color} 0%, - ${he.color.replace("0.8","0.6")} 30%, - ${he.color.replace("0.8","0.4")} 70%, - ${he.color.replace("0.8","0.3")} 100%), + */let HX=()=>location.protocol+"//"+location.host;function pO(d,s){const{pathname:E,search:R,hash:Y}=s,dt=d.indexOf("#");if(dt>-1){let _t=Y.includes(d.slice(dt))?d.slice(dt).length:1,zt=Y.slice(_t);return zt[0]!=="/"&&(zt="/"+zt),TL(zt,"")}return TL(E,d)+R+Y}function WX(d,s,E,R){let Y=[],dt=[],_t=null;const zt=({state:Je})=>{const fr=pO(d,location),Ar=E.value,kr=s.value;let Vr=0;if(Je){if(E.value=fr,s.value=Je,_t&&_t===Ar){_t=null;return}Vr=kr?Je.position-kr.position:0}else R(fr);Y.forEach(fn=>{fn(E.value,Ar,{delta:Vr,type:bA.pop,direction:Vr?Vr>0?z8.forward:z8.back:z8.unknown})})};function jt(){_t=E.value}function te(Je){Y.push(Je);const fr=()=>{const Ar=Y.indexOf(Je);Ar>-1&&Y.splice(Ar,1)};return dt.push(fr),fr}function ce(){if(document.visibilityState==="hidden"){const{history:Je}=window;if(!Je.state)return;Je.replaceState(Bh({},Je.state,{scroll:H4()}),"")}}function Ie(){for(const Je of dt)Je();dt=[],window.removeEventListener("popstate",zt),window.removeEventListener("pagehide",ce),document.removeEventListener("visibilitychange",ce)}return window.addEventListener("popstate",zt),window.addEventListener("pagehide",ce),document.addEventListener("visibilitychange",ce),{pauseListeners:jt,listen:te,destroy:Ie}}function CL(d,s,E,R=!1,Y=!1){return{back:d,current:s,forward:E,replaced:R,position:window.history.length,scroll:Y?H4():null}}function qX(d){const{history:s,location:E}=window,R={value:pO(d,E)},Y={value:s.state};Y.value||dt(R.value,{back:null,current:R.value,forward:null,position:s.length-1,replaced:!0,scroll:null},!0);function dt(jt,te,ce){const Ie=d.indexOf("#"),Je=Ie>-1?(E.host&&document.querySelector("base")?d:d.slice(Ie))+jt:HX()+d+jt;try{s[ce?"replaceState":"pushState"](te,"",Je),Y.value=te}catch(fr){console.error(fr),E[ce?"replace":"assign"](Je)}}function _t(jt,te){dt(jt,Bh({},s.state,CL(Y.value.back,jt,Y.value.forward,!0),te,{position:Y.value.position}),!0),R.value=jt}function zt(jt,te){const ce=Bh({},Y.value,s.state,{forward:jt,scroll:H4()});dt(ce.current,ce,!0),dt(jt,Bh({},CL(R.value,jt,null),{position:ce.position+1},te),!1),R.value=jt}return{location:R,state:Y,push:zt,replace:_t}}function $X(d){d=CX(d);const s=qX(d),E=WX(d,s.state,s.location,s.replace);function R(dt,_t=!0){_t||E.pauseListeners(),history.go(dt)}const Y=Bh({location:"",base:d,go:R,createHref:PX.bind(null,d)},s,E);return Object.defineProperty(Y,"location",{enumerable:!0,get:()=>s.location.value}),Object.defineProperty(Y,"state",{enumerable:!0,get:()=>s.state.value}),Y}let by=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.Group=2]="Group",d}({});var np=function(d){return d[d.Static=0]="Static",d[d.Param=1]="Param",d[d.ParamRegExp=2]="ParamRegExp",d[d.ParamRegExpEnd=3]="ParamRegExpEnd",d[d.EscapeNext=4]="EscapeNext",d}(np||{});const ZX={type:by.Static,value:""},GX=/[a-zA-Z0-9_]/;function YX(d){if(!d)return[[]];if(d==="/")return[[ZX]];if(!d.startsWith("/"))throw new Error(`Invalid path "${d}"`);function s(fr){throw new Error(`ERR (${E})/"${te}": ${fr}`)}let E=np.Static,R=E;const Y=[];let dt;function _t(){dt&&Y.push(dt),dt=[]}let zt=0,jt,te="",ce="";function Ie(){te&&(E===np.Static?dt.push({type:by.Static,value:te}):E===np.Param||E===np.ParamRegExp||E===np.ParamRegExpEnd?(dt.length>1&&(jt==="*"||jt==="+")&&s(`A repeatable param (${te}) must be alone in its segment. eg: '/:ids+.`),dt.push({type:by.Param,value:te,regexp:ce,repeatable:jt==="*"||jt==="+",optional:jt==="*"||jt==="?"})):s("Invalid state to consume buffer"),te="")}function Je(){te+=jt}for(;zts.length?s.length===1&&s[0]===h0.Static+h0.Segment?1:-1:0}function mO(d,s){let E=0;const R=d.score,Y=s.score;for(;E0&&s[s.length-1]<0}const tJ={strict:!1,end:!0,sensitive:!1};function eJ(d,s,E){const R=JX(YX(d.path),E),Y=Bh(R,{record:d,parent:s,children:[],alias:[]});return s&&!Y.record.aliasOf==!s.record.aliasOf&&s.children.push(Y),Y}function rJ(d,s){const E=[],R=new Map;s=kL(tJ,s);function Y(Ie){return R.get(Ie)}function dt(Ie,Je,fr){const Ar=!fr,kr=zL(Ie);kr.aliasOf=fr&&fr.record;const Vr=kL(s,Ie),fn=[kr];if("alias"in Ie){const ti=typeof Ie.alias=="string"?[Ie.alias]:Ie.alias;for(const Dn of ti)fn.push(zL(Bh({},kr,{components:fr?fr.record.components:kr.components,path:Dn,aliasOf:fr?fr.record:kr})))}let Dt,cn;for(const ti of fn){const{path:Dn}=ti;if(Je&&Dn[0]!=="/"){const ii=Je.record.path,Vi=ii[ii.length-1]==="/"?"":"/";ti.path=Je.record.path+(Dn&&Vi+Dn)}if(Dt=eJ(ti,Je,Vr),fr?fr.alias.push(Dt):(cn=cn||Dt,cn!==Dt&&cn.alias.push(Dt),Ar&&Ie.name&&!OL(Dt)&&_t(Ie.name)),gO(Dt)&&jt(Dt),kr.children){const ii=kr.children;for(let Vi=0;Vi{_t(cn)}:C2}function _t(Ie){if(fO(Ie)){const Je=R.get(Ie);Je&&(R.delete(Ie),E.splice(E.indexOf(Je),1),Je.children.forEach(_t),Je.alias.forEach(_t))}else{const Je=E.indexOf(Ie);Je>-1&&(E.splice(Je,1),Ie.record.name&&R.delete(Ie.record.name),Ie.children.forEach(_t),Ie.alias.forEach(_t))}}function zt(){return E}function jt(Ie){const Je=aJ(Ie,E);E.splice(Je,0,Ie),Ie.record.name&&!OL(Ie)&&R.set(Ie.record.name,Ie)}function te(Ie,Je){let fr,Ar={},kr,Vr;if("name"in Ie&&Ie.name){if(fr=R.get(Ie.name),!fr)throw y_(xd.MATCHER_NOT_FOUND,{location:Ie});Vr=fr.record.name,Ar=Bh(IL(Je.params,fr.keys.filter(cn=>!cn.optional).concat(fr.parent?fr.parent.keys.filter(cn=>cn.optional):[]).map(cn=>cn.name)),Ie.params&&IL(Ie.params,fr.keys.map(cn=>cn.name))),kr=fr.stringify(Ar)}else if(Ie.path!=null)kr=Ie.path,fr=E.find(cn=>cn.re.test(kr)),fr&&(Ar=fr.parse(kr),Vr=fr.record.name);else{if(fr=Je.name?R.get(Je.name):E.find(cn=>cn.re.test(Je.path)),!fr)throw y_(xd.MATCHER_NOT_FOUND,{location:Ie,currentLocation:Je});Vr=fr.record.name,Ar=Bh({},Je.params,Ie.params),kr=fr.stringify(Ar)}const fn=[];let Dt=fr;for(;Dt;)fn.unshift(Dt.record),Dt=Dt.parent;return{name:Vr,path:kr,params:Ar,matched:fn,meta:iJ(fn)}}d.forEach(Ie=>dt(Ie));function ce(){E.length=0,R.clear()}return{addRoute:dt,resolve:te,removeRoute:_t,clearRoutes:ce,getRoutes:zt,getRecordMatcher:Y}}function IL(d,s){const E={};for(const R of s)R in d&&(E[R]=d[R]);return E}function zL(d){const s={path:d.path,redirect:d.redirect,name:d.name,meta:d.meta||{},aliasOf:d.aliasOf,beforeEnter:d.beforeEnter,props:nJ(d),children:d.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in d?d.components||null:d.component&&{default:d.component}};return Object.defineProperty(s,"mods",{value:{}}),s}function nJ(d){const s={},E=d.props||!1;if("component"in d)s.default=E;else for(const R in d.components)s[R]=typeof E=="object"?E[R]:E;return s}function OL(d){for(;d;){if(d.record.aliasOf)return!0;d=d.parent}return!1}function iJ(d){return d.reduce((s,E)=>Bh(s,E.meta),{})}function aJ(d,s){let E=0,R=s.length;for(;E!==R;){const dt=E+R>>1;mO(d,s[dt])<0?R=dt:E=dt+1}const Y=oJ(d);return Y&&(R=s.lastIndexOf(Y,R-1)),R}function oJ(d){let s=d;for(;s=s.parent;)if(gO(s)&&mO(d,s)===0)return s}function gO({record:d}){return!!(d.name||d.components&&Object.keys(d.components).length||d.redirect)}function DL(d){const s=um(W4),E=um(cM),R=Wo(()=>{const jt=Ol(d.to);return s.resolve(jt)}),Y=Wo(()=>{const{matched:jt}=R.value,{length:te}=jt,ce=jt[te-1],Ie=E.matched;if(!ce||!Ie.length)return-1;const Je=Ie.findIndex(v_.bind(null,ce));if(Je>-1)return Je;const fr=FL(jt[te-2]);return te>1&&FL(ce)===fr&&Ie[Ie.length-1].path!==fr?Ie.findIndex(v_.bind(null,jt[te-2])):Je}),dt=Wo(()=>Y.value>-1&&hJ(E.params,R.value.params)),_t=Wo(()=>Y.value>-1&&Y.value===E.matched.length-1&&hO(E.params,R.value.params));function zt(jt={}){if(cJ(jt)){const te=s[Ol(d.replace)?"replace":"push"](Ol(d.to)).catch(C2);return d.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>te),te}return Promise.resolve()}return{route:R,href:Wo(()=>R.value.href),isActive:dt,isExactActive:_t,navigate:zt}}function sJ(d){return d.length===1?d[0]:d}const lJ=Ec({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:DL,setup(d,{slots:s}){const E=Ey(DL(d)),{options:R}=um(W4),Y=Wo(()=>({[BL(d.activeClass,R.linkActiveClass,"router-link-active")]:E.isActive,[BL(d.exactActiveClass,R.linkExactActiveClass,"router-link-exact-active")]:E.isExactActive}));return()=>{const dt=s.default&&sJ(s.default(E));return d.custom?dt:oM("a",{"aria-current":E.isExactActive?d.ariaCurrentValue:null,href:E.href,onClick:E.navigate,class:Y.value},dt)}}}),uJ=lJ;function cJ(d){if(!(d.metaKey||d.altKey||d.ctrlKey||d.shiftKey)&&!d.defaultPrevented&&!(d.button!==void 0&&d.button!==0)){if(d.currentTarget&&d.currentTarget.getAttribute){const s=d.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(s))return}return d.preventDefault&&d.preventDefault(),!0}}function hJ(d,s){for(const E in s){const R=s[E],Y=d[E];if(typeof R=="string"){if(R!==Y)return!1}else if(!Im(Y)||Y.length!==R.length||R.some((dt,_t)=>dt!==Y[_t]))return!1}return!0}function FL(d){return d?d.aliasOf?d.aliasOf.path:d.path:""}const BL=(d,s,E)=>d??s??E,fJ=Ec({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(d,{attrs:s,slots:E}){const R=um(kA),Y=Wo(()=>d.route||R.value),dt=um(EL,0),_t=Wo(()=>{let te=Ol(dt);const{matched:ce}=Y.value;let Ie;for(;(Ie=ce[te])&&!Ie.components;)te++;return te}),zt=Wo(()=>Y.value.matched[_t.value]);X5(EL,Wo(()=>_t.value+1)),X5(UX,zt),X5(kA,Y);const jt=Ha();return Em(()=>[jt.value,zt.value,d.name],([te,ce,Ie],[Je,fr,Ar])=>{ce&&(ce.instances[Ie]=te,fr&&fr!==ce&&te&&te===Je&&(ce.leaveGuards.size||(ce.leaveGuards=fr.leaveGuards),ce.updateGuards.size||(ce.updateGuards=fr.updateGuards))),te&&ce&&(!fr||!v_(ce,fr)||!Je)&&(ce.enterCallbacks[Ie]||[]).forEach(kr=>kr(te))},{flush:"post"}),()=>{const te=Y.value,ce=d.name,Ie=zt.value,Je=Ie&&Ie.components[ce];if(!Je)return RL(E.default,{Component:Je,route:te});const fr=Ie.props[ce],Ar=fr?fr===!0?te.params:typeof fr=="function"?fr(te):fr:null,Vr=oM(Je,Bh({},Ar,s,{onVnodeUnmounted:fn=>{fn.component.isUnmounted&&(Ie.instances[ce]=null)},ref:jt}));return RL(E.default,{Component:Vr,route:te})||Vr}}});function RL(d,s){if(!d)return null;const E=d(s);return E.length===1?E[0]:E}const dJ=fJ;function pJ(d){const s=rJ(d.routes,d),E=d.parseQuery||NX,R=d.stringifyQuery||SL,Y=d.history,dt=n2(),_t=n2(),zt=n2(),jt=sY(e1);let te=e1;s_&&d.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const ce=P8.bind(null,ma=>""+ma),Ie=P8.bind(null,wX),Je=P8.bind(null,W2);function fr(ma,io){let po,us;return fO(ma)?(po=s.getRecordMatcher(ma),us=io):us=ma,s.addRoute(us,po)}function Ar(ma){const io=s.getRecordMatcher(ma);io&&s.removeRoute(io)}function kr(){return s.getRoutes().map(ma=>ma.record)}function Vr(ma){return!!s.getRecordMatcher(ma)}function fn(ma,io){if(io=Bh({},io||jt.value),typeof ma=="string"){const pi=I8(E,ma,io.path),go=s.resolve({path:pi.path},io),Mo=Y.createHref(pi.fullPath);return Bh(pi,go,{params:Je(go.params),hash:W2(pi.hash),redirectedFrom:void 0,href:Mo})}let po;if(ma.path!=null)po=Bh({},ma,{path:I8(E,ma.path,io.path).path});else{const pi=Bh({},ma.params);for(const go in pi)pi[go]==null&&delete pi[go];po=Bh({},ma,{params:Ie(pi)}),io.params=Ie(io.params)}const us=s.resolve(po,io),qo=ma.hash||"";us.params=ce(Je(us.params));const _i=AX(R,Bh({},ma,{hash:xX(qo),path:us.path})),Ai=Y.createHref(_i);return Bh({fullPath:_i,hash:qo,query:R===SL?jX(ma.query):ma.query||{}},us,{redirectedFrom:void 0,href:Ai})}function Dt(ma){return typeof ma=="string"?I8(E,ma,jt.value.path):Bh({},ma)}function cn(ma,io){if(te!==ma)return y_(xd.NAVIGATION_CANCELLED,{from:io,to:ma})}function ti(ma){return Vi(ma)}function Dn(ma){return ti(Bh(Dt(ma),{replace:!0}))}function ii(ma,io){const po=ma.matched[ma.matched.length-1];if(po&&po.redirect){const{redirect:us}=po;let qo=typeof us=="function"?us(ma,io):us;return typeof qo=="string"&&(qo=qo.includes("?")||qo.includes("#")?qo=Dt(qo):{path:qo},qo.params={}),Bh({query:ma.query,hash:ma.hash,params:qo.path!=null?{}:ma.params},qo)}}function Vi(ma,io){const po=te=fn(ma),us=jt.value,qo=ma.state,_i=ma.force,Ai=ma.replace===!0,pi=ii(po,us);if(pi)return Vi(Bh(Dt(pi),{state:typeof pi=="object"?Bh({},qo,pi.state):qo,force:_i,replace:Ai}),io||po);const go=po;go.redirectedFrom=io;let Mo;return!_i&&MX(R,us,po)&&(Mo=y_(xd.NAVIGATION_DUPLICATED,{to:go,from:us}),mo(us,us,!0,!1)),(Mo?Promise.resolve(Mo):Bi(go,us)).catch(To=>Yg(To)?Yg(To,xd.NAVIGATION_GUARD_REDIRECT)?To:no(To):la(To,go,us)).then(To=>{if(To){if(Yg(To,xd.NAVIGATION_GUARD_REDIRECT))return Vi(Bh({replace:Ai},Dt(To.to),{state:typeof To.to=="object"?Bh({},qo,To.to.state):qo,force:_i}),io||go)}else To=Li(go,us,!0,Ai,qo);return Ri(go,us,To),To})}function Nn(ma,io){const po=cn(ma,io);return po?Promise.reject(po):Promise.resolve()}function Wr(ma){const io=ko.values().next().value;return io&&typeof io.runWithContext=="function"?io.runWithContext(ma):ma()}function Bi(ma,io){let po;const[us,qo,_i]=VX(ma,io);po=O8(us.reverse(),"beforeRouteLeave",ma,io);for(const pi of us)pi.leaveGuards.forEach(go=>{po.push(u1(go,ma,io))});const Ai=Nn.bind(null,ma,io);return po.push(Ai),Ia(po).then(()=>{po=[];for(const pi of dt.list())po.push(u1(pi,ma,io));return po.push(Ai),Ia(po)}).then(()=>{po=O8(qo,"beforeRouteUpdate",ma,io);for(const pi of qo)pi.updateGuards.forEach(go=>{po.push(u1(go,ma,io))});return po.push(Ai),Ia(po)}).then(()=>{po=[];for(const pi of _i)if(pi.beforeEnter)if(Im(pi.beforeEnter))for(const go of pi.beforeEnter)po.push(u1(go,ma,io));else po.push(u1(pi.beforeEnter,ma,io));return po.push(Ai),Ia(po)}).then(()=>(ma.matched.forEach(pi=>pi.enterCallbacks={}),po=O8(_i,"beforeRouteEnter",ma,io,Wr),po.push(Ai),Ia(po))).then(()=>{po=[];for(const pi of _t.list())po.push(u1(pi,ma,io));return po.push(Ai),Ia(po)}).catch(pi=>Yg(pi,xd.NAVIGATION_CANCELLED)?pi:Promise.reject(pi))}function Ri(ma,io,po){zt.list().forEach(us=>Wr(()=>us(ma,io,po)))}function Li(ma,io,po,us,qo){const _i=cn(ma,io);if(_i)return _i;const Ai=io===e1,pi=s_?history.state:{};po&&(us||Ai?Y.replace(ma.fullPath,Bh({scroll:Ai&&pi&&pi.scroll},qo)):Y.push(ma.fullPath,qo)),jt.value=ma,mo(ma,io,po,Ai),no()}let $n;function Hn(){$n||($n=Y.listen((ma,io,po)=>{if(!ro.listening)return;const us=fn(ma),qo=ii(us,ro.currentRoute.value);if(qo){Vi(Bh(qo,{replace:!0,force:!0}),us).catch(C2);return}te=us;const _i=jt.value;s_&&OX(ML(_i.fullPath,po.delta),H4()),Bi(us,_i).catch(Ai=>Yg(Ai,xd.NAVIGATION_ABORTED|xd.NAVIGATION_CANCELLED)?Ai:Yg(Ai,xd.NAVIGATION_GUARD_REDIRECT)?(Vi(Bh(Dt(Ai.to),{force:!0}),us).then(pi=>{Yg(pi,xd.NAVIGATION_ABORTED|xd.NAVIGATION_DUPLICATED)&&!po.delta&&po.type===bA.pop&&Y.go(-1,!1)}).catch(C2),Promise.reject()):(po.delta&&Y.go(-po.delta,!1),la(Ai,us,_i))).then(Ai=>{Ai=Ai||Li(us,_i,!1),Ai&&(po.delta&&!Yg(Ai,xd.NAVIGATION_CANCELLED)?Y.go(-po.delta,!1):po.type===bA.pop&&Yg(Ai,xd.NAVIGATION_ABORTED|xd.NAVIGATION_DUPLICATED)&&Y.go(-1,!1)),Ri(us,_i,Ai)}).catch(C2)}))}let sa=n2(),Ti=n2(),Qn;function la(ma,io,po){no(ma);const us=Ti.list();return us.length?us.forEach(qo=>qo(ma,io,po)):console.error(ma),Promise.reject(ma)}function Eo(){return Qn&&jt.value!==e1?Promise.resolve():new Promise((ma,io)=>{sa.add([ma,io])})}function no(ma){return Qn||(Qn=!ma,Hn(),sa.list().forEach(([io,po])=>ma?po(ma):io()),sa.reset()),ma}function mo(ma,io,po,us){const{scrollBehavior:qo}=d;if(!s_||!qo)return Promise.resolve();const _i=!po&&DX(ML(ma.fullPath,0))||(us||!po)&&history.state&&history.state.scroll||null;return S0().then(()=>qo(ma,io,_i)).then(Ai=>Ai&&zX(Ai)).catch(Ai=>la(Ai,ma,io))}const Ts=ma=>Y.go(ma);let xl;const ko=new Set,ro={currentRoute:jt,listening:!0,addRoute:fr,removeRoute:Ar,clearRoutes:s.clearRoutes,hasRoute:Vr,getRoutes:kr,resolve:fn,options:d,push:ti,replace:Dn,go:Ts,back:()=>Ts(-1),forward:()=>Ts(1),beforeEach:dt.add,beforeResolve:_t.add,afterEach:zt.add,onError:Ti.add,isReady:Eo,install(ma){ma.component("RouterLink",uJ),ma.component("RouterView",dJ),ma.config.globalProperties.$router=ro,Object.defineProperty(ma.config.globalProperties,"$route",{enumerable:!0,get:()=>Ol(jt)}),s_&&!xl&&jt.value===e1&&(xl=!0,ti(Y.location).catch(us=>{}));const io={};for(const us in e1)Object.defineProperty(io,us,{get:()=>jt.value[us],enumerable:!0});ma.provide(W4,ro),ma.provide(cM,ez(io)),ma.provide(kA,jt);const po=ma.unmount;ko.add(ma),ma.unmount=function(){ko.delete(ma),ko.size<1&&(te=e1,$n&&$n(),$n=null,jt.value=e1,xl=!1,Qn=!1),po()}}};function Ia(ma){return ma.reduce((io,po)=>io.then(()=>Wr(po)),Promise.resolve())}return ro}function vO(){return um(W4)}function yO(d){return um(cM)}function xO(d,s){return function(){return d.apply(s,arguments)}}const{toString:mJ}=Object.prototype,{getPrototypeOf:hM}=Object,{iterator:q4,toStringTag:_O}=Symbol,$4=(d=>s=>{const E=mJ.call(s);return d[E]||(d[E]=E.slice(8,-1).toLowerCase())})(Object.create(null)),Om=d=>(d=d.toLowerCase(),s=>$4(s)===d),Z4=d=>s=>typeof s===d,{isArray:k_}=Array,x_=Z4("undefined");function nw(d){return d!==null&&!x_(d)&&d.constructor!==null&&!x_(d.constructor)&&E0(d.constructor.isBuffer)&&d.constructor.isBuffer(d)}const bO=Om("ArrayBuffer");function gJ(d){let s;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?s=ArrayBuffer.isView(d):s=d&&d.buffer&&bO(d.buffer),s}const vJ=Z4("string"),E0=Z4("function"),wO=Z4("number"),iw=d=>d!==null&&typeof d=="object",yJ=d=>d===!0||d===!1,e4=d=>{if($4(d)!=="object")return!1;const s=hM(d);return(s===null||s===Object.prototype||Object.getPrototypeOf(s)===null)&&!(_O in d)&&!(q4 in d)},xJ=d=>{if(!iw(d)||nw(d))return!1;try{return Object.keys(d).length===0&&Object.getPrototypeOf(d)===Object.prototype}catch{return!1}},_J=Om("Date"),bJ=Om("File"),wJ=Om("Blob"),kJ=Om("FileList"),TJ=d=>iw(d)&&E0(d.pipe),AJ=d=>{let s;return d&&(typeof FormData=="function"&&d instanceof FormData||E0(d.append)&&((s=$4(d))==="formdata"||s==="object"&&E0(d.toString)&&d.toString()==="[object FormData]"))},MJ=Om("URLSearchParams"),[SJ,EJ,CJ,LJ]=["ReadableStream","Request","Response","Headers"].map(Om),PJ=d=>d.trim?d.trim():d.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function aw(d,s,{allOwnKeys:E=!1}={}){if(d===null||typeof d>"u")return;let R,Y;if(typeof d!="object"&&(d=[d]),k_(d))for(R=0,Y=d.length;R0;)if(Y=E[R],s===Y.toLowerCase())return Y;return null}const wy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,TO=d=>!x_(d)&&d!==wy;function TA(){const{caseless:d,skipUndefined:s}=TO(this)&&this||{},E={},R=(Y,dt)=>{const _t=d&&kO(E,dt)||dt;e4(E[_t])&&e4(Y)?E[_t]=TA(E[_t],Y):e4(Y)?E[_t]=TA({},Y):k_(Y)?E[_t]=Y.slice():(!s||!x_(Y))&&(E[_t]=Y)};for(let Y=0,dt=arguments.length;Y(aw(s,(Y,dt)=>{E&&E0(Y)?d[dt]=xO(Y,E):d[dt]=Y},{allOwnKeys:R}),d),zJ=d=>(d.charCodeAt(0)===65279&&(d=d.slice(1)),d),OJ=(d,s,E,R)=>{d.prototype=Object.create(s.prototype,R),d.prototype.constructor=d,Object.defineProperty(d,"super",{value:s.prototype}),E&&Object.assign(d.prototype,E)},DJ=(d,s,E,R)=>{let Y,dt,_t;const zt={};if(s=s||{},d==null)return s;do{for(Y=Object.getOwnPropertyNames(d),dt=Y.length;dt-- >0;)_t=Y[dt],(!R||R(_t,d,s))&&!zt[_t]&&(s[_t]=d[_t],zt[_t]=!0);d=E!==!1&&hM(d)}while(d&&(!E||E(d,s))&&d!==Object.prototype);return s},FJ=(d,s,E)=>{d=String(d),(E===void 0||E>d.length)&&(E=d.length),E-=s.length;const R=d.indexOf(s,E);return R!==-1&&R===E},BJ=d=>{if(!d)return null;if(k_(d))return d;let s=d.length;if(!wO(s))return null;const E=new Array(s);for(;s-- >0;)E[s]=d[s];return E},RJ=(d=>s=>d&&s instanceof d)(typeof Uint8Array<"u"&&hM(Uint8Array)),NJ=(d,s)=>{const R=(d&&d[q4]).call(d);let Y;for(;(Y=R.next())&&!Y.done;){const dt=Y.value;s.call(d,dt[0],dt[1])}},jJ=(d,s)=>{let E;const R=[];for(;(E=d.exec(s))!==null;)R.push(E);return R},UJ=Om("HTMLFormElement"),VJ=d=>d.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(E,R,Y){return R.toUpperCase()+Y}),NL=(({hasOwnProperty:d})=>(s,E)=>d.call(s,E))(Object.prototype),HJ=Om("RegExp"),AO=(d,s)=>{const E=Object.getOwnPropertyDescriptors(d),R={};aw(E,(Y,dt)=>{let _t;(_t=s(Y,dt,d))!==!1&&(R[dt]=_t||Y)}),Object.defineProperties(d,R)},WJ=d=>{AO(d,(s,E)=>{if(E0(d)&&["arguments","caller","callee"].indexOf(E)!==-1)return!1;const R=d[E];if(E0(R)){if(s.enumerable=!1,"writable"in s){s.writable=!1;return}s.set||(s.set=()=>{throw Error("Can not rewrite read-only method '"+E+"'")})}})},qJ=(d,s)=>{const E={},R=Y=>{Y.forEach(dt=>{E[dt]=!0})};return k_(d)?R(d):R(String(d).split(s)),E},$J=()=>{},ZJ=(d,s)=>d!=null&&Number.isFinite(d=+d)?d:s;function GJ(d){return!!(d&&E0(d.append)&&d[_O]==="FormData"&&d[q4])}const YJ=d=>{const s=new Array(10),E=(R,Y)=>{if(iw(R)){if(s.indexOf(R)>=0)return;if(nw(R))return R;if(!("toJSON"in R)){s[Y]=R;const dt=k_(R)?[]:{};return aw(R,(_t,zt)=>{const jt=E(_t,Y+1);!x_(jt)&&(dt[zt]=jt)}),s[Y]=void 0,dt}}return R};return E(d,0)},KJ=Om("AsyncFunction"),XJ=d=>d&&(iw(d)||E0(d))&&E0(d.then)&&E0(d.catch),MO=((d,s)=>d?setImmediate:s?((E,R)=>(wy.addEventListener("message",({source:Y,data:dt})=>{Y===wy&&dt===E&&R.length&&R.shift()()},!1),Y=>{R.push(Y),wy.postMessage(E,"*")}))(`axios@${Math.random()}`,[]):E=>setTimeout(E))(typeof setImmediate=="function",E0(wy.postMessage)),JJ=typeof queueMicrotask<"u"?queueMicrotask.bind(wy):typeof process<"u"&&process.nextTick||MO,QJ=d=>d!=null&&E0(d[q4]),eo={isArray:k_,isArrayBuffer:bO,isBuffer:nw,isFormData:AJ,isArrayBufferView:gJ,isString:vJ,isNumber:wO,isBoolean:yJ,isObject:iw,isPlainObject:e4,isEmptyObject:xJ,isReadableStream:SJ,isRequest:EJ,isResponse:CJ,isHeaders:LJ,isUndefined:x_,isDate:_J,isFile:bJ,isBlob:wJ,isRegExp:HJ,isFunction:E0,isStream:TJ,isURLSearchParams:MJ,isTypedArray:RJ,isFileList:kJ,forEach:aw,merge:TA,extend:IJ,trim:PJ,stripBOM:zJ,inherits:OJ,toFlatObject:DJ,kindOf:$4,kindOfTest:Om,endsWith:FJ,toArray:BJ,forEachEntry:NJ,matchAll:jJ,isHTMLForm:UJ,hasOwnProperty:NL,hasOwnProp:NL,reduceDescriptors:AO,freezeMethods:WJ,toObjectSet:qJ,toCamelCase:VJ,noop:$J,toFiniteNumber:ZJ,findKey:kO,global:wy,isContextDefined:TO,isSpecCompliantForm:GJ,toJSONObject:YJ,isAsyncFn:KJ,isThenable:XJ,setImmediate:MO,asap:JJ,isIterable:QJ};function Ju(d,s,E,R,Y){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=d,this.name="AxiosError",s&&(this.code=s),E&&(this.config=E),R&&(this.request=R),Y&&(this.response=Y,this.status=Y.status?Y.status:null)}eo.inherits(Ju,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:eo.toJSONObject(this.config),code:this.code,status:this.status}}});const SO=Ju.prototype,EO={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(d=>{EO[d]={value:d}});Object.defineProperties(Ju,EO);Object.defineProperty(SO,"isAxiosError",{value:!0});Ju.from=(d,s,E,R,Y,dt)=>{const _t=Object.create(SO);eo.toFlatObject(d,_t,function(ce){return ce!==Error.prototype},te=>te!=="isAxiosError");const zt=d&&d.message?d.message:"Error",jt=s==null&&d?d.code:s;return Ju.call(_t,zt,jt,E,R,Y),d&&_t.cause==null&&Object.defineProperty(_t,"cause",{value:d,configurable:!0}),_t.name=d&&d.name||"Error",dt&&Object.assign(_t,dt),_t};const tQ=null;function AA(d){return eo.isPlainObject(d)||eo.isArray(d)}function CO(d){return eo.endsWith(d,"[]")?d.slice(0,-2):d}function jL(d,s,E){return d?d.concat(s).map(function(Y,dt){return Y=CO(Y),!E&&dt?"["+Y+"]":Y}).join(E?".":""):s}function eQ(d){return eo.isArray(d)&&!d.some(AA)}const rQ=eo.toFlatObject(eo,{},null,function(s){return/^is[A-Z]/.test(s)});function G4(d,s,E){if(!eo.isObject(d))throw new TypeError("target must be an object");s=s||new FormData,E=eo.toFlatObject(E,{metaTokens:!0,dots:!1,indexes:!1},!1,function(kr,Vr){return!eo.isUndefined(Vr[kr])});const R=E.metaTokens,Y=E.visitor||ce,dt=E.dots,_t=E.indexes,jt=(E.Blob||typeof Blob<"u"&&Blob)&&eo.isSpecCompliantForm(s);if(!eo.isFunction(Y))throw new TypeError("visitor must be a function");function te(Ar){if(Ar===null)return"";if(eo.isDate(Ar))return Ar.toISOString();if(eo.isBoolean(Ar))return Ar.toString();if(!jt&&eo.isBlob(Ar))throw new Ju("Blob is not supported. Use a Buffer instead.");return eo.isArrayBuffer(Ar)||eo.isTypedArray(Ar)?jt&&typeof Blob=="function"?new Blob([Ar]):Buffer.from(Ar):Ar}function ce(Ar,kr,Vr){let fn=Ar;if(Ar&&!Vr&&typeof Ar=="object"){if(eo.endsWith(kr,"{}"))kr=R?kr:kr.slice(0,-2),Ar=JSON.stringify(Ar);else if(eo.isArray(Ar)&&eQ(Ar)||(eo.isFileList(Ar)||eo.endsWith(kr,"[]"))&&(fn=eo.toArray(Ar)))return kr=CO(kr),fn.forEach(function(cn,ti){!(eo.isUndefined(cn)||cn===null)&&s.append(_t===!0?jL([kr],ti,dt):_t===null?kr:kr+"[]",te(cn))}),!1}return AA(Ar)?!0:(s.append(jL(Vr,kr,dt),te(Ar)),!1)}const Ie=[],Je=Object.assign(rQ,{defaultVisitor:ce,convertValue:te,isVisitable:AA});function fr(Ar,kr){if(!eo.isUndefined(Ar)){if(Ie.indexOf(Ar)!==-1)throw Error("Circular reference detected in "+kr.join("."));Ie.push(Ar),eo.forEach(Ar,function(fn,Dt){(!(eo.isUndefined(fn)||fn===null)&&Y.call(s,fn,eo.isString(Dt)?Dt.trim():Dt,kr,Je))===!0&&fr(fn,kr?kr.concat(Dt):[Dt])}),Ie.pop()}}if(!eo.isObject(d))throw new TypeError("data must be an object");return fr(d),s}function UL(d){const s={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(d).replace(/[!'()~]|%20|%00/g,function(R){return s[R]})}function fM(d,s){this._pairs=[],d&&G4(d,this,s)}const LO=fM.prototype;LO.append=function(s,E){this._pairs.push([s,E])};LO.toString=function(s){const E=s?function(R){return s.call(this,R,UL)}:UL;return this._pairs.map(function(Y){return E(Y[0])+"="+E(Y[1])},"").join("&")};function nQ(d){return encodeURIComponent(d).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function PO(d,s,E){if(!s)return d;const R=E&&E.encode||nQ;eo.isFunction(E)&&(E={serialize:E});const Y=E&&E.serialize;let dt;if(Y?dt=Y(s,E):dt=eo.isURLSearchParams(s)?s.toString():new fM(s,E).toString(R),dt){const _t=d.indexOf("#");_t!==-1&&(d=d.slice(0,_t)),d+=(d.indexOf("?")===-1?"?":"&")+dt}return d}class VL{constructor(){this.handlers=[]}use(s,E,R){return this.handlers.push({fulfilled:s,rejected:E,synchronous:R?R.synchronous:!1,runWhen:R?R.runWhen:null}),this.handlers.length-1}eject(s){this.handlers[s]&&(this.handlers[s]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(s){eo.forEach(this.handlers,function(R){R!==null&&s(R)})}}const IO={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},iQ=typeof URLSearchParams<"u"?URLSearchParams:fM,aQ=typeof FormData<"u"?FormData:null,oQ=typeof Blob<"u"?Blob:null,sQ={isBrowser:!0,classes:{URLSearchParams:iQ,FormData:aQ,Blob:oQ},protocols:["http","https","file","blob","url","data"]},dM=typeof window<"u"&&typeof document<"u",MA=typeof navigator=="object"&&navigator||void 0,lQ=dM&&(!MA||["ReactNative","NativeScript","NS"].indexOf(MA.product)<0),uQ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cQ=dM&&window.location.href||"http://localhost",hQ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:dM,hasStandardBrowserEnv:lQ,hasStandardBrowserWebWorkerEnv:uQ,navigator:MA,origin:cQ},Symbol.toStringTag,{value:"Module"})),Xp={...hQ,...sQ};function fQ(d,s){return G4(d,new Xp.classes.URLSearchParams,{visitor:function(E,R,Y,dt){return Xp.isNode&&eo.isBuffer(E)?(this.append(R,E.toString("base64")),!1):dt.defaultVisitor.apply(this,arguments)},...s})}function dQ(d){return eo.matchAll(/\w+|\[(\w*)]/g,d).map(s=>s[0]==="[]"?"":s[1]||s[0])}function pQ(d){const s={},E=Object.keys(d);let R;const Y=E.length;let dt;for(R=0;R=E.length;return _t=!_t&&eo.isArray(Y)?Y.length:_t,jt?(eo.hasOwnProp(Y,_t)?Y[_t]=[Y[_t],R]:Y[_t]=R,!zt):((!Y[_t]||!eo.isObject(Y[_t]))&&(Y[_t]=[]),s(E,R,Y[_t],dt)&&eo.isArray(Y[_t])&&(Y[_t]=pQ(Y[_t])),!zt)}if(eo.isFormData(d)&&eo.isFunction(d.entries)){const E={};return eo.forEachEntry(d,(R,Y)=>{s(dQ(R),Y,E,0)}),E}return null}function mQ(d,s,E){if(eo.isString(d))try{return(s||JSON.parse)(d),eo.trim(d)}catch(R){if(R.name!=="SyntaxError")throw R}return(E||JSON.stringify)(d)}const ow={transitional:IO,adapter:["xhr","http","fetch"],transformRequest:[function(s,E){const R=E.getContentType()||"",Y=R.indexOf("application/json")>-1,dt=eo.isObject(s);if(dt&&eo.isHTMLForm(s)&&(s=new FormData(s)),eo.isFormData(s))return Y?JSON.stringify(zO(s)):s;if(eo.isArrayBuffer(s)||eo.isBuffer(s)||eo.isStream(s)||eo.isFile(s)||eo.isBlob(s)||eo.isReadableStream(s))return s;if(eo.isArrayBufferView(s))return s.buffer;if(eo.isURLSearchParams(s))return E.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),s.toString();let zt;if(dt){if(R.indexOf("application/x-www-form-urlencoded")>-1)return fQ(s,this.formSerializer).toString();if((zt=eo.isFileList(s))||R.indexOf("multipart/form-data")>-1){const jt=this.env&&this.env.FormData;return G4(zt?{"files[]":s}:s,jt&&new jt,this.formSerializer)}}return dt||Y?(E.setContentType("application/json",!1),mQ(s)):s}],transformResponse:[function(s){const E=this.transitional||ow.transitional,R=E&&E.forcedJSONParsing,Y=this.responseType==="json";if(eo.isResponse(s)||eo.isReadableStream(s))return s;if(s&&eo.isString(s)&&(R&&!this.responseType||Y)){const _t=!(E&&E.silentJSONParsing)&&Y;try{return JSON.parse(s,this.parseReviver)}catch(zt){if(_t)throw zt.name==="SyntaxError"?Ju.from(zt,Ju.ERR_BAD_RESPONSE,this,null,this.response):zt}}return s}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xp.classes.FormData,Blob:Xp.classes.Blob},validateStatus:function(s){return s>=200&&s<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};eo.forEach(["delete","get","head","post","put","patch"],d=>{ow.headers[d]={}});const gQ=eo.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),vQ=d=>{const s={};let E,R,Y;return d&&d.split(` +`).forEach(function(_t){Y=_t.indexOf(":"),E=_t.substring(0,Y).trim().toLowerCase(),R=_t.substring(Y+1).trim(),!(!E||s[E]&&gQ[E])&&(E==="set-cookie"?s[E]?s[E].push(R):s[E]=[R]:s[E]=s[E]?s[E]+", "+R:R)}),s},HL=Symbol("internals");function i2(d){return d&&String(d).trim().toLowerCase()}function r4(d){return d===!1||d==null?d:eo.isArray(d)?d.map(r4):String(d)}function yQ(d){const s=Object.create(null),E=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let R;for(;R=E.exec(d);)s[R[1]]=R[2];return s}const xQ=d=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(d.trim());function D8(d,s,E,R,Y){if(eo.isFunction(R))return R.call(this,s,E);if(Y&&(s=E),!!eo.isString(s)){if(eo.isString(R))return s.indexOf(R)!==-1;if(eo.isRegExp(R))return R.test(s)}}function _Q(d){return d.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(s,E,R)=>E.toUpperCase()+R)}function bQ(d,s){const E=eo.toCamelCase(" "+s);["get","set","has"].forEach(R=>{Object.defineProperty(d,R+E,{value:function(Y,dt,_t){return this[R].call(this,s,Y,dt,_t)},configurable:!0})})}let C0=class{constructor(s){s&&this.set(s)}set(s,E,R){const Y=this;function dt(zt,jt,te){const ce=i2(jt);if(!ce)throw new Error("header name must be a non-empty string");const Ie=eo.findKey(Y,ce);(!Ie||Y[Ie]===void 0||te===!0||te===void 0&&Y[Ie]!==!1)&&(Y[Ie||jt]=r4(zt))}const _t=(zt,jt)=>eo.forEach(zt,(te,ce)=>dt(te,ce,jt));if(eo.isPlainObject(s)||s instanceof this.constructor)_t(s,E);else if(eo.isString(s)&&(s=s.trim())&&!xQ(s))_t(vQ(s),E);else if(eo.isObject(s)&&eo.isIterable(s)){let zt={},jt,te;for(const ce of s){if(!eo.isArray(ce))throw TypeError("Object iterator must return a key-value pair");zt[te=ce[0]]=(jt=zt[te])?eo.isArray(jt)?[...jt,ce[1]]:[jt,ce[1]]:ce[1]}_t(zt,E)}else s!=null&&dt(E,s,R);return this}get(s,E){if(s=i2(s),s){const R=eo.findKey(this,s);if(R){const Y=this[R];if(!E)return Y;if(E===!0)return yQ(Y);if(eo.isFunction(E))return E.call(this,Y,R);if(eo.isRegExp(E))return E.exec(Y);throw new TypeError("parser must be boolean|regexp|function")}}}has(s,E){if(s=i2(s),s){const R=eo.findKey(this,s);return!!(R&&this[R]!==void 0&&(!E||D8(this,this[R],R,E)))}return!1}delete(s,E){const R=this;let Y=!1;function dt(_t){if(_t=i2(_t),_t){const zt=eo.findKey(R,_t);zt&&(!E||D8(R,R[zt],zt,E))&&(delete R[zt],Y=!0)}}return eo.isArray(s)?s.forEach(dt):dt(s),Y}clear(s){const E=Object.keys(this);let R=E.length,Y=!1;for(;R--;){const dt=E[R];(!s||D8(this,this[dt],dt,s,!0))&&(delete this[dt],Y=!0)}return Y}normalize(s){const E=this,R={};return eo.forEach(this,(Y,dt)=>{const _t=eo.findKey(R,dt);if(_t){E[_t]=r4(Y),delete E[dt];return}const zt=s?_Q(dt):String(dt).trim();zt!==dt&&delete E[dt],E[zt]=r4(Y),R[zt]=!0}),this}concat(...s){return this.constructor.concat(this,...s)}toJSON(s){const E=Object.create(null);return eo.forEach(this,(R,Y)=>{R!=null&&R!==!1&&(E[Y]=s&&eo.isArray(R)?R.join(", "):R)}),E}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([s,E])=>s+": "+E).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(s){return s instanceof this?s:new this(s)}static concat(s,...E){const R=new this(s);return E.forEach(Y=>R.set(Y)),R}static accessor(s){const R=(this[HL]=this[HL]={accessors:{}}).accessors,Y=this.prototype;function dt(_t){const zt=i2(_t);R[zt]||(bQ(Y,_t),R[zt]=!0)}return eo.isArray(s)?s.forEach(dt):dt(s),this}};C0.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);eo.reduceDescriptors(C0.prototype,({value:d},s)=>{let E=s[0].toUpperCase()+s.slice(1);return{get:()=>d,set(R){this[E]=R}}});eo.freezeMethods(C0);function F8(d,s){const E=this||ow,R=s||E,Y=C0.from(R.headers);let dt=R.data;return eo.forEach(d,function(zt){dt=zt.call(E,dt,Y.normalize(),s?s.status:void 0)}),Y.normalize(),dt}function OO(d){return!!(d&&d.__CANCEL__)}function T_(d,s,E){Ju.call(this,d??"canceled",Ju.ERR_CANCELED,s,E),this.name="CanceledError"}eo.inherits(T_,Ju,{__CANCEL__:!0});function DO(d,s,E){const R=E.config.validateStatus;!E.status||!R||R(E.status)?d(E):s(new Ju("Request failed with status code "+E.status,[Ju.ERR_BAD_REQUEST,Ju.ERR_BAD_RESPONSE][Math.floor(E.status/100)-4],E.config,E.request,E))}function wQ(d){const s=/^([-+\w]{1,25})(:?\/\/|:)/.exec(d);return s&&s[1]||""}function kQ(d,s){d=d||10;const E=new Array(d),R=new Array(d);let Y=0,dt=0,_t;return s=s!==void 0?s:1e3,function(jt){const te=Date.now(),ce=R[dt];_t||(_t=te),E[Y]=jt,R[Y]=te;let Ie=dt,Je=0;for(;Ie!==Y;)Je+=E[Ie++],Ie=Ie%d;if(Y=(Y+1)%d,Y===dt&&(dt=(dt+1)%d),te-_t{E=ce,Y=null,dt&&(clearTimeout(dt),dt=null),d(...te)};return[(...te)=>{const ce=Date.now(),Ie=ce-E;Ie>=R?_t(te,ce):(Y=te,dt||(dt=setTimeout(()=>{dt=null,_t(Y)},R-Ie)))},()=>Y&&_t(Y)]}const y4=(d,s,E=3)=>{let R=0;const Y=kQ(50,250);return TQ(dt=>{const _t=dt.loaded,zt=dt.lengthComputable?dt.total:void 0,jt=_t-R,te=Y(jt),ce=_t<=zt;R=_t;const Ie={loaded:_t,total:zt,progress:zt?_t/zt:void 0,bytes:jt,rate:te||void 0,estimated:te&&zt&&ce?(zt-_t)/te:void 0,event:dt,lengthComputable:zt!=null,[s?"download":"upload"]:!0};d(Ie)},E)},WL=(d,s)=>{const E=d!=null;return[R=>s[0]({lengthComputable:E,total:d,loaded:R}),s[1]]},qL=d=>(...s)=>eo.asap(()=>d(...s)),AQ=Xp.hasStandardBrowserEnv?((d,s)=>E=>(E=new URL(E,Xp.origin),d.protocol===E.protocol&&d.host===E.host&&(s||d.port===E.port)))(new URL(Xp.origin),Xp.navigator&&/(msie|trident)/i.test(Xp.navigator.userAgent)):()=>!0,MQ=Xp.hasStandardBrowserEnv?{write(d,s,E,R,Y,dt,_t){if(typeof document>"u")return;const zt=[`${d}=${encodeURIComponent(s)}`];eo.isNumber(E)&&zt.push(`expires=${new Date(E).toUTCString()}`),eo.isString(R)&&zt.push(`path=${R}`),eo.isString(Y)&&zt.push(`domain=${Y}`),dt===!0&&zt.push("secure"),eo.isString(_t)&&zt.push(`SameSite=${_t}`),document.cookie=zt.join("; ")},read(d){if(typeof document>"u")return null;const s=document.cookie.match(new RegExp("(?:^|; )"+d+"=([^;]*)"));return s?decodeURIComponent(s[1]):null},remove(d){this.write(d,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function SQ(d){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(d)}function EQ(d,s){return s?d.replace(/\/?\/$/,"")+"/"+s.replace(/^\/+/,""):d}function FO(d,s,E){let R=!SQ(s);return d&&(R||E==!1)?EQ(d,s):s}const $L=d=>d instanceof C0?{...d}:d;function Ly(d,s){s=s||{};const E={};function R(te,ce,Ie,Je){return eo.isPlainObject(te)&&eo.isPlainObject(ce)?eo.merge.call({caseless:Je},te,ce):eo.isPlainObject(ce)?eo.merge({},ce):eo.isArray(ce)?ce.slice():ce}function Y(te,ce,Ie,Je){if(eo.isUndefined(ce)){if(!eo.isUndefined(te))return R(void 0,te,Ie,Je)}else return R(te,ce,Ie,Je)}function dt(te,ce){if(!eo.isUndefined(ce))return R(void 0,ce)}function _t(te,ce){if(eo.isUndefined(ce)){if(!eo.isUndefined(te))return R(void 0,te)}else return R(void 0,ce)}function zt(te,ce,Ie){if(Ie in s)return R(te,ce);if(Ie in d)return R(void 0,te)}const jt={url:dt,method:dt,data:dt,baseURL:_t,transformRequest:_t,transformResponse:_t,paramsSerializer:_t,timeout:_t,timeoutMessage:_t,withCredentials:_t,withXSRFToken:_t,adapter:_t,responseType:_t,xsrfCookieName:_t,xsrfHeaderName:_t,onUploadProgress:_t,onDownloadProgress:_t,decompress:_t,maxContentLength:_t,maxBodyLength:_t,beforeRedirect:_t,transport:_t,httpAgent:_t,httpsAgent:_t,cancelToken:_t,socketPath:_t,responseEncoding:_t,validateStatus:zt,headers:(te,ce,Ie)=>Y($L(te),$L(ce),Ie,!0)};return eo.forEach(Object.keys({...d,...s}),function(ce){const Ie=jt[ce]||Y,Je=Ie(d[ce],s[ce],ce);eo.isUndefined(Je)&&Ie!==zt||(E[ce]=Je)}),E}const BO=d=>{const s=Ly({},d);let{data:E,withXSRFToken:R,xsrfHeaderName:Y,xsrfCookieName:dt,headers:_t,auth:zt}=s;if(s.headers=_t=C0.from(_t),s.url=PO(FO(s.baseURL,s.url,s.allowAbsoluteUrls),d.params,d.paramsSerializer),zt&&_t.set("Authorization","Basic "+btoa((zt.username||"")+":"+(zt.password?unescape(encodeURIComponent(zt.password)):""))),eo.isFormData(E)){if(Xp.hasStandardBrowserEnv||Xp.hasStandardBrowserWebWorkerEnv)_t.setContentType(void 0);else if(eo.isFunction(E.getHeaders)){const jt=E.getHeaders(),te=["content-type","content-length"];Object.entries(jt).forEach(([ce,Ie])=>{te.includes(ce.toLowerCase())&&_t.set(ce,Ie)})}}if(Xp.hasStandardBrowserEnv&&(R&&eo.isFunction(R)&&(R=R(s)),R||R!==!1&&AQ(s.url))){const jt=Y&&dt&&MQ.read(dt);jt&&_t.set(Y,jt)}return s},CQ=typeof XMLHttpRequest<"u",LQ=CQ&&function(d){return new Promise(function(E,R){const Y=BO(d);let dt=Y.data;const _t=C0.from(Y.headers).normalize();let{responseType:zt,onUploadProgress:jt,onDownloadProgress:te}=Y,ce,Ie,Je,fr,Ar;function kr(){fr&&fr(),Ar&&Ar(),Y.cancelToken&&Y.cancelToken.unsubscribe(ce),Y.signal&&Y.signal.removeEventListener("abort",ce)}let Vr=new XMLHttpRequest;Vr.open(Y.method.toUpperCase(),Y.url,!0),Vr.timeout=Y.timeout;function fn(){if(!Vr)return;const cn=C0.from("getAllResponseHeaders"in Vr&&Vr.getAllResponseHeaders()),Dn={data:!zt||zt==="text"||zt==="json"?Vr.responseText:Vr.response,status:Vr.status,statusText:Vr.statusText,headers:cn,config:d,request:Vr};DO(function(Vi){E(Vi),kr()},function(Vi){R(Vi),kr()},Dn),Vr=null}"onloadend"in Vr?Vr.onloadend=fn:Vr.onreadystatechange=function(){!Vr||Vr.readyState!==4||Vr.status===0&&!(Vr.responseURL&&Vr.responseURL.indexOf("file:")===0)||setTimeout(fn)},Vr.onabort=function(){Vr&&(R(new Ju("Request aborted",Ju.ECONNABORTED,d,Vr)),Vr=null)},Vr.onerror=function(ti){const Dn=ti&&ti.message?ti.message:"Network Error",ii=new Ju(Dn,Ju.ERR_NETWORK,d,Vr);ii.event=ti||null,R(ii),Vr=null},Vr.ontimeout=function(){let ti=Y.timeout?"timeout of "+Y.timeout+"ms exceeded":"timeout exceeded";const Dn=Y.transitional||IO;Y.timeoutErrorMessage&&(ti=Y.timeoutErrorMessage),R(new Ju(ti,Dn.clarifyTimeoutError?Ju.ETIMEDOUT:Ju.ECONNABORTED,d,Vr)),Vr=null},dt===void 0&&_t.setContentType(null),"setRequestHeader"in Vr&&eo.forEach(_t.toJSON(),function(ti,Dn){Vr.setRequestHeader(Dn,ti)}),eo.isUndefined(Y.withCredentials)||(Vr.withCredentials=!!Y.withCredentials),zt&&zt!=="json"&&(Vr.responseType=Y.responseType),te&&([Je,Ar]=y4(te,!0),Vr.addEventListener("progress",Je)),jt&&Vr.upload&&([Ie,fr]=y4(jt),Vr.upload.addEventListener("progress",Ie),Vr.upload.addEventListener("loadend",fr)),(Y.cancelToken||Y.signal)&&(ce=cn=>{Vr&&(R(!cn||cn.type?new T_(null,d,Vr):cn),Vr.abort(),Vr=null)},Y.cancelToken&&Y.cancelToken.subscribe(ce),Y.signal&&(Y.signal.aborted?ce():Y.signal.addEventListener("abort",ce)));const Dt=wQ(Y.url);if(Dt&&Xp.protocols.indexOf(Dt)===-1){R(new Ju("Unsupported protocol "+Dt+":",Ju.ERR_BAD_REQUEST,d));return}Vr.send(dt||null)})},PQ=(d,s)=>{const{length:E}=d=d?d.filter(Boolean):[];if(s||E){let R=new AbortController,Y;const dt=function(te){if(!Y){Y=!0,zt();const ce=te instanceof Error?te:this.reason;R.abort(ce instanceof Ju?ce:new T_(ce instanceof Error?ce.message:ce))}};let _t=s&&setTimeout(()=>{_t=null,dt(new Ju(`timeout ${s} of ms exceeded`,Ju.ETIMEDOUT))},s);const zt=()=>{d&&(_t&&clearTimeout(_t),_t=null,d.forEach(te=>{te.unsubscribe?te.unsubscribe(dt):te.removeEventListener("abort",dt)}),d=null)};d.forEach(te=>te.addEventListener("abort",dt));const{signal:jt}=R;return jt.unsubscribe=()=>eo.asap(zt),jt}},IQ=function*(d,s){let E=d.byteLength;if(E{const Y=zQ(d,s);let dt=0,_t,zt=jt=>{_t||(_t=!0,R&&R(jt))};return new ReadableStream({async pull(jt){try{const{done:te,value:ce}=await Y.next();if(te){zt(),jt.close();return}let Ie=ce.byteLength;if(E){let Je=dt+=Ie;E(Je)}jt.enqueue(new Uint8Array(ce))}catch(te){throw zt(te),te}},cancel(jt){return zt(jt),Y.return()}},{highWaterMark:2})},GL=64*1024,{isFunction:I5}=eo,DQ=(({Request:d,Response:s})=>({Request:d,Response:s}))(eo.global),{ReadableStream:YL,TextEncoder:KL}=eo.global,XL=(d,...s)=>{try{return!!d(...s)}catch{return!1}},FQ=d=>{d=eo.merge.call({skipUndefined:!0},DQ,d);const{fetch:s,Request:E,Response:R}=d,Y=s?I5(s):typeof fetch=="function",dt=I5(E),_t=I5(R);if(!Y)return!1;const zt=Y&&I5(YL),jt=Y&&(typeof KL=="function"?(Ar=>kr=>Ar.encode(kr))(new KL):async Ar=>new Uint8Array(await new E(Ar).arrayBuffer())),te=dt&&zt&&XL(()=>{let Ar=!1;const kr=new E(Xp.origin,{body:new YL,method:"POST",get duplex(){return Ar=!0,"half"}}).headers.has("Content-Type");return Ar&&!kr}),ce=_t&&zt&&XL(()=>eo.isReadableStream(new R("").body)),Ie={stream:ce&&(Ar=>Ar.body)};Y&&["text","arrayBuffer","blob","formData","stream"].forEach(Ar=>{!Ie[Ar]&&(Ie[Ar]=(kr,Vr)=>{let fn=kr&&kr[Ar];if(fn)return fn.call(kr);throw new Ju(`Response type '${Ar}' is not supported`,Ju.ERR_NOT_SUPPORT,Vr)})});const Je=async Ar=>{if(Ar==null)return 0;if(eo.isBlob(Ar))return Ar.size;if(eo.isSpecCompliantForm(Ar))return(await new E(Xp.origin,{method:"POST",body:Ar}).arrayBuffer()).byteLength;if(eo.isArrayBufferView(Ar)||eo.isArrayBuffer(Ar))return Ar.byteLength;if(eo.isURLSearchParams(Ar)&&(Ar=Ar+""),eo.isString(Ar))return(await jt(Ar)).byteLength},fr=async(Ar,kr)=>{const Vr=eo.toFiniteNumber(Ar.getContentLength());return Vr??Je(kr)};return async Ar=>{let{url:kr,method:Vr,data:fn,signal:Dt,cancelToken:cn,timeout:ti,onDownloadProgress:Dn,onUploadProgress:ii,responseType:Vi,headers:Nn,withCredentials:Wr="same-origin",fetchOptions:Bi}=BO(Ar),Ri=s||fetch;Vi=Vi?(Vi+"").toLowerCase():"text";let Li=PQ([Dt,cn&&cn.toAbortSignal()],ti),$n=null;const Hn=Li&&Li.unsubscribe&&(()=>{Li.unsubscribe()});let sa;try{if(ii&&te&&Vr!=="get"&&Vr!=="head"&&(sa=await fr(Nn,fn))!==0){let mo=new E(kr,{method:"POST",body:fn,duplex:"half"}),Ts;if(eo.isFormData(fn)&&(Ts=mo.headers.get("content-type"))&&Nn.setContentType(Ts),mo.body){const[xl,ko]=WL(sa,y4(qL(ii)));fn=ZL(mo.body,GL,xl,ko)}}eo.isString(Wr)||(Wr=Wr?"include":"omit");const Ti=dt&&"credentials"in E.prototype,Qn={...Bi,signal:Li,method:Vr.toUpperCase(),headers:Nn.normalize().toJSON(),body:fn,duplex:"half",credentials:Ti?Wr:void 0};$n=dt&&new E(kr,Qn);let la=await(dt?Ri($n,Bi):Ri(kr,Qn));const Eo=ce&&(Vi==="stream"||Vi==="response");if(ce&&(Dn||Eo&&Hn)){const mo={};["status","statusText","headers"].forEach(ro=>{mo[ro]=la[ro]});const Ts=eo.toFiniteNumber(la.headers.get("content-length")),[xl,ko]=Dn&&WL(Ts,y4(qL(Dn),!0))||[];la=new R(ZL(la.body,GL,xl,()=>{ko&&ko(),Hn&&Hn()}),mo)}Vi=Vi||"text";let no=await Ie[eo.findKey(Ie,Vi)||"text"](la,Ar);return!Eo&&Hn&&Hn(),await new Promise((mo,Ts)=>{DO(mo,Ts,{data:no,headers:C0.from(la.headers),status:la.status,statusText:la.statusText,config:Ar,request:$n})})}catch(Ti){throw Hn&&Hn(),Ti&&Ti.name==="TypeError"&&/Load failed|fetch/i.test(Ti.message)?Object.assign(new Ju("Network Error",Ju.ERR_NETWORK,Ar,$n),{cause:Ti.cause||Ti}):Ju.from(Ti,Ti&&Ti.code,Ar,$n)}}},BQ=new Map,RO=d=>{let s=d&&d.env||{};const{fetch:E,Request:R,Response:Y}=s,dt=[R,Y,E];let _t=dt.length,zt=_t,jt,te,ce=BQ;for(;zt--;)jt=dt[zt],te=ce.get(jt),te===void 0&&ce.set(jt,te=zt?new Map:FQ(s)),ce=te;return te};RO();const pM={http:tQ,xhr:LQ,fetch:{get:RO}};eo.forEach(pM,(d,s)=>{if(d){try{Object.defineProperty(d,"name",{value:s})}catch{}Object.defineProperty(d,"adapterName",{value:s})}});const JL=d=>`- ${d}`,RQ=d=>eo.isFunction(d)||d===null||d===!1;function NQ(d,s){d=eo.isArray(d)?d:[d];const{length:E}=d;let R,Y;const dt={};for(let _t=0;_t`adapter ${jt} `+(te===!1?"is not supported by the environment":"is not available in the build"));let zt=E?_t.length>1?`since : +`+_t.map(JL).join(` +`):" "+JL(_t[0]):"as no adapter specified";throw new Ju("There is no suitable adapter to dispatch the request "+zt,"ERR_NOT_SUPPORT")}return Y}const NO={getAdapter:NQ,adapters:pM};function B8(d){if(d.cancelToken&&d.cancelToken.throwIfRequested(),d.signal&&d.signal.aborted)throw new T_(null,d)}function QL(d){return B8(d),d.headers=C0.from(d.headers),d.data=F8.call(d,d.transformRequest),["post","put","patch"].indexOf(d.method)!==-1&&d.headers.setContentType("application/x-www-form-urlencoded",!1),NO.getAdapter(d.adapter||ow.adapter,d)(d).then(function(R){return B8(d),R.data=F8.call(d,d.transformResponse,R),R.headers=C0.from(R.headers),R},function(R){return OO(R)||(B8(d),R&&R.response&&(R.response.data=F8.call(d,d.transformResponse,R.response),R.response.headers=C0.from(R.response.headers))),Promise.reject(R)})}const jO="1.13.2",Y4={};["object","boolean","number","function","string","symbol"].forEach((d,s)=>{Y4[d]=function(R){return typeof R===d||"a"+(s<1?"n ":" ")+d}});const tP={};Y4.transitional=function(s,E,R){function Y(dt,_t){return"[Axios v"+jO+"] Transitional option '"+dt+"'"+_t+(R?". "+R:"")}return(dt,_t,zt)=>{if(s===!1)throw new Ju(Y(_t," has been removed"+(E?" in "+E:"")),Ju.ERR_DEPRECATED);return E&&!tP[_t]&&(tP[_t]=!0,console.warn(Y(_t," has been deprecated since v"+E+" and will be removed in the near future"))),s?s(dt,_t,zt):!0}};Y4.spelling=function(s){return(E,R)=>(console.warn(`${R} is likely a misspelling of ${s}`),!0)};function jQ(d,s,E){if(typeof d!="object")throw new Ju("options must be an object",Ju.ERR_BAD_OPTION_VALUE);const R=Object.keys(d);let Y=R.length;for(;Y-- >0;){const dt=R[Y],_t=s[dt];if(_t){const zt=d[dt],jt=zt===void 0||_t(zt,dt,d);if(jt!==!0)throw new Ju("option "+dt+" must be "+jt,Ju.ERR_BAD_OPTION_VALUE);continue}if(E!==!0)throw new Ju("Unknown option "+dt,Ju.ERR_BAD_OPTION)}}const n4={assertOptions:jQ,validators:Y4},ag=n4.validators;let My=class{constructor(s){this.defaults=s||{},this.interceptors={request:new VL,response:new VL}}async request(s,E){try{return await this._request(s,E)}catch(R){if(R instanceof Error){let Y={};Error.captureStackTrace?Error.captureStackTrace(Y):Y=new Error;const dt=Y.stack?Y.stack.replace(/^.+\n/,""):"";try{R.stack?dt&&!String(R.stack).endsWith(dt.replace(/^.+\n.+\n/,""))&&(R.stack+=` +`+dt):R.stack=dt}catch{}}throw R}}_request(s,E){typeof s=="string"?(E=E||{},E.url=s):E=s||{},E=Ly(this.defaults,E);const{transitional:R,paramsSerializer:Y,headers:dt}=E;R!==void 0&&n4.assertOptions(R,{silentJSONParsing:ag.transitional(ag.boolean),forcedJSONParsing:ag.transitional(ag.boolean),clarifyTimeoutError:ag.transitional(ag.boolean)},!1),Y!=null&&(eo.isFunction(Y)?E.paramsSerializer={serialize:Y}:n4.assertOptions(Y,{encode:ag.function,serialize:ag.function},!0)),E.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?E.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:E.allowAbsoluteUrls=!0),n4.assertOptions(E,{baseUrl:ag.spelling("baseURL"),withXsrfToken:ag.spelling("withXSRFToken")},!0),E.method=(E.method||this.defaults.method||"get").toLowerCase();let _t=dt&&eo.merge(dt.common,dt[E.method]);dt&&eo.forEach(["delete","get","head","post","put","patch","common"],Ar=>{delete dt[Ar]}),E.headers=C0.concat(_t,dt);const zt=[];let jt=!0;this.interceptors.request.forEach(function(kr){typeof kr.runWhen=="function"&&kr.runWhen(E)===!1||(jt=jt&&kr.synchronous,zt.unshift(kr.fulfilled,kr.rejected))});const te=[];this.interceptors.response.forEach(function(kr){te.push(kr.fulfilled,kr.rejected)});let ce,Ie=0,Je;if(!jt){const Ar=[QL.bind(this),void 0];for(Ar.unshift(...zt),Ar.push(...te),Je=Ar.length,ce=Promise.resolve(E);Ie{if(!R._listeners)return;let dt=R._listeners.length;for(;dt-- >0;)R._listeners[dt](Y);R._listeners=null}),this.promise.then=Y=>{let dt;const _t=new Promise(zt=>{R.subscribe(zt),dt=zt}).then(Y);return _t.cancel=function(){R.unsubscribe(dt)},_t},s(function(dt,_t,zt){R.reason||(R.reason=new T_(dt,_t,zt),E(R.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(s){if(this.reason){s(this.reason);return}this._listeners?this._listeners.push(s):this._listeners=[s]}unsubscribe(s){if(!this._listeners)return;const E=this._listeners.indexOf(s);E!==-1&&this._listeners.splice(E,1)}toAbortSignal(){const s=new AbortController,E=R=>{s.abort(R)};return this.subscribe(E),s.signal.unsubscribe=()=>this.unsubscribe(E),s.signal}static source(){let s;return{token:new UO(function(Y){s=Y}),cancel:s}}};function VQ(d){return function(E){return d.apply(null,E)}}function HQ(d){return eo.isObject(d)&&d.isAxiosError===!0}const SA={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(SA).forEach(([d,s])=>{SA[s]=d});function VO(d){const s=new My(d),E=xO(My.prototype.request,s);return eo.extend(E,My.prototype,s,{allOwnKeys:!0}),eo.extend(E,s,null,{allOwnKeys:!0}),E.create=function(Y){return VO(Ly(d,Y))},E}const _d=VO(ow);_d.Axios=My;_d.CanceledError=T_;_d.CancelToken=UQ;_d.isCancel=OO;_d.VERSION=jO;_d.toFormData=G4;_d.AxiosError=Ju;_d.Cancel=_d.CanceledError;_d.all=function(s){return Promise.all(s)};_d.spread=VQ;_d.isAxiosError=HQ;_d.mergeConfig=Ly;_d.AxiosHeaders=C0;_d.formToJSON=d=>zO(eo.isHTMLForm(d)?new FormData(d):d);_d.getAdapter=NO.getAdapter;_d.HttpStatusCode=SA;_d.default=_d;const{Axios:Uyt,AxiosError:Vyt,CanceledError:Hyt,isCancel:Wyt,CancelToken:qyt,VERSION:$yt,all:Zyt,Cancel:Gyt,isAxiosError:Yyt,spread:Kyt,toFormData:Xyt,AxiosHeaders:Jyt,HttpStatusCode:Qyt,formToJSON:txt,getAdapter:ext,mergeConfig:rxt}=_d,WQ="/api",qQ="",$Q=WQ,ZQ=qQ,_y=_d.create({baseURL:$Q,timeout:5e3,headers:{"Content-Type":"application/json"}});_y.interceptors.request.use(d=>d,d=>(console.error("API Request Error:",d),Promise.reject(d)));_y.interceptors.response.use(d=>d,d=>(console.error("API Response Error:",d.response?.data||d.message),Promise.reject(d)));class ah{static async get(s,E){try{return(await _y.get(s,{params:E})).data}catch(R){throw this.handleError(R)}}static async post(s,E,R){try{return(await _y.post(s,E,R)).data}catch(Y){throw this.handleError(Y)}}static async put(s,E,R){try{return(await _y.put(s,E,R)).data}catch(Y){throw this.handleError(Y)}}static async delete(s,E){try{return(await _y.delete(s,E)).data}catch(R){throw this.handleError(R)}}static async getTransportKeys(){return this.get("transport_keys")}static async createTransportKey(s,E,R,Y,dt){const _t={name:s,flood_policy:E,parent_id:Y,last_used:dt};return R!==void 0&&(_t.transport_key=R),this.post("transport_keys",_t)}static async getTransportKey(s){return this.get(`transport_key/${s}`)}static async updateTransportKey(s,E,R,Y,dt,_t){return this.put(`transport_key/${s}`,{name:E,flood_policy:R,transport_key:Y,parent_id:dt,last_used:_t})}static async deleteTransportKey(s){return this.delete(`transport_key/${s}`)}static async updateGlobalFloodPolicy(s){return this.post("global_flood_policy",{global_flood_allow:s})}static async getLogs(){try{return(await _y.get("logs")).data}catch(s){throw this.handleError(s)}}static async deleteAdvert(s){return this.delete(`advert/${s}`)}static async pingNeighbor(s){return this.post("ping_neighbor",s)}static handleError(s){if(_d.isAxiosError(s)){if(s.response){const E=s.response.data?.error||s.response.data?.message||`HTTP ${s.response.status}`;return new Error(E)}else if(s.request)return new Error("Network error - no response received")}return new Error(s instanceof Error?s.message:"Unknown error occurred")}}const Dm=lM("system",()=>{const d=Ha(null),s=Ha(!1),E=Ha(null),R=Ha(null),Y=Ha("forward"),dt=Ha(!0),_t=Ha(0),zt=Ha(10),jt=Ha(!1),te=Wo(()=>d.value?.config?.node_name??"Unknown"),ce=Wo(()=>{const $n=d.value?.public_key;return!$n||$n==="Unknown"?"Unknown":$n.length>=16?`${$n.slice(0,8)} ... ${$n.slice(-8)}`:`${$n}`}),Ie=Wo(()=>d.value!==null),Je=Wo(()=>d.value?.version??"Unknown"),fr=Wo(()=>d.value?.core_version??"Unknown"),Ar=Wo(()=>d.value?.noise_floor_dbm??null),kr=Wo(()=>zt.value>0?Math.min(_t.value/zt.value*100,100):0),Vr=Wo(()=>Y.value==="monitor"?{text:"Monitor Mode",title:"Monitoring only - not forwarding packets"}:dt.value?{text:"Active",title:"Forwarding with duty cycle enforcement"}:{text:"No Limits",title:"Forwarding without duty cycle enforcement"}),fn=Wo(()=>Y.value==="monitor"?{active:!1,warning:!0}:{active:!0,warning:!1}),Dt=Wo(()=>dt.value?{active:!0,warning:!1}:{active:!1,warning:!0}),cn=$n=>{jt.value=$n};async function ti(){try{s.value=!0,E.value=null;const $n=await ah.get("/stats");if($n.success&&$n.data)return d.value=$n.data,R.value=new Date,Dn($n.data),$n.data;if($n&&"version"in $n){const Hn=$n;return d.value=Hn,R.value=new Date,Dn(Hn),Hn}else throw new Error($n.error||"Failed to fetch stats")}catch($n){throw E.value=$n instanceof Error?$n.message:"Unknown error occurred",console.error("Error fetching stats:",$n),$n}finally{s.value=!1}}function Dn($n){if($n.config){const sa=$n.config.repeater?.mode;(sa==="forward"||sa==="monitor")&&(Y.value=sa);const Ti=$n.config.duty_cycle;if(Ti){dt.value=Ti.enforcement_enabled!==!1;const Qn=Ti.max_airtime_percent;typeof Qn=="number"?zt.value=Qn:Qn&&typeof Qn=="object"&&"parsedValue"in Qn&&(zt.value=Qn.parsedValue||10)}}const Hn=$n.utilization_percent;typeof Hn=="number"?_t.value=Hn:Hn&&typeof Hn=="object"&&"parsedValue"in Hn&&(_t.value=Hn.parsedValue||0)}async function ii($n){try{const Hn=await ah.post("/set_mode",{mode:$n});if(Hn.success)return Y.value=$n,!0;throw new Error(Hn.error||"Failed to set mode")}catch(Hn){throw E.value=Hn instanceof Error?Hn.message:"Unknown error occurred",console.error("Error setting mode:",Hn),Hn}}async function Vi($n){try{const Hn=await ah.post("/set_duty_cycle",{enabled:$n});if(Hn.success)return dt.value=$n,!0;throw new Error(Hn.error||"Failed to set duty cycle")}catch(Hn){throw E.value=Hn instanceof Error?Hn.message:"Unknown error occurred",console.error("Error setting duty cycle:",Hn),Hn}}async function Nn(){try{const $n=await ah.post("/send_advert",{},{timeout:1e4});if($n.success)return console.log("Advertisement sent successfully:",$n.data),!0;throw new Error($n.error||"Failed to send advert")}catch($n){throw E.value=$n instanceof Error?$n.message:"Unknown error occurred",console.error("Error sending advert:",$n),$n}}async function Wr(){const $n=Y.value==="forward"?"monitor":"forward";return await ii($n)}async function Bi(){return await Vi(!dt.value)}async function Ri($n=5e3){await ti();const Hn=setInterval(async()=>{try{await ti()}catch(sa){console.error("Auto-refresh error:",sa)}},$n);return()=>clearInterval(Hn)}function Li(){d.value=null,E.value=null,R.value=null,s.value=!1,Y.value="forward",dt.value=!0,_t.value=0,zt.value=10}return{stats:d,isLoading:s,error:E,lastUpdated:R,currentMode:Y,dutyCycleEnabled:dt,dutyCycleUtilization:_t,dutyCycleMax:zt,cadCalibrationRunning:jt,nodeName:te,pubKey:ce,hasStats:Ie,version:Je,coreVersion:fr,noiseFloorDbm:Ar,dutyCyclePercentage:kr,statusBadge:Vr,modeButtonState:fn,dutyCycleButtonState:Dt,fetchStats:ti,setMode:ii,setDutyCycle:Vi,sendAdvert:Nn,toggleMode:Wr,toggleDutyCycle:Bi,startAutoRefresh:Ri,reset:Li,setCadCalibrationRunning:cn}}),Bf=(d,s)=>{const E=d.__vccOpts||d;for(const[R,Y]of s)E[R]=Y;return E},GQ={},YQ={width:"23",height:"25",viewBox:"0 0 23 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function KQ(d,s){return ci(),wi("svg",YQ,s[0]||(s[0]=[ye("path",{d:"M2.84279 2.25795C2.90709 1.12053 3.17879 0.625914 3.95795 0.228723C4.79631 -0.198778 6.11858 0.000168182 7.67449 0.788054C8.34465 1.12757 8.41289 1.13448 9.58736 0.983905C11.1485 0.783681 13.1582 0.784388 14.5991 0.985738C15.6887 1.13801 15.7603 1.1304 16.4321 0.790174C18.6406 -0.328212 20.3842 -0.255036 21.0156 0.982491C21.3308 1.6002 21.3893 3.20304 21.1449 4.52503C21.0094 5.25793 21.0238 5.34943 21.3502 5.83037C23.6466 9.21443 21.9919 14.6998 18.0569 16.7469C17.7558 16.9036 17.502 17.0005 17.2952 17.0795C16.6602 17.3219 16.4674 17.3956 16.7008 18.5117C16.8132 19.0486 16.9486 20.3833 17.0018 21.478C17.098 23.4567 17.0966 23.4705 16.7495 23.8742C16.2772 24.4233 15.5963 24.4326 15.135 23.8962C14.8341 23.5464 14.8047 23.3812 14.8047 22.0315C14.8047 20.037 14.5861 18.7113 14.0695 17.5753C13.4553 16.2235 13.9106 15.7194 15.3154 15.4173C17.268 14.9973 18.793 13.7923 19.643 11.9978C20.4511 10.2921 20.5729 7.93485 19.1119 6.50124C18.6964 6.00746 18.6674 5.56022 18.9641 4.21159C19.075 3.70754 19.168 3.05725 19.1707 2.76637C19.1749 2.30701 19.1331 2.23764 18.8509 2.23764C18.6724 2.23764 17.9902 2.49736 17.3352 2.81474L16.2897 3.32145C16.1947 3.36751 16.0883 3.38522 15.9834 3.37318C13.3251 3.06805 10.7991 3.06334 8.12774 3.37438C8.02244 3.38663 7.91563 3.36892 7.82025 3.32263L6.77535 2.81559C6.12027 2.49764 5.43813 2.23764 5.25963 2.23764C4.84693 2.23764 4.84072 2.54233 5.2169 4.35258C5.44669 5.45816 5.60133 5.70451 4.93703 6.58851C3.94131 7.91359 3.69258 9.55902 4.22654 11.2878C4.89952 13.4664 6.54749 14.9382 8.86436 15.4292C10.261 15.7253 10.6261 16.1115 10.0928 17.713C9.67293 18.9734 9.40748 19.2982 8.79738 19.2982C7.97649 19.2982 7.46228 18.5871 7.74527 17.843C7.86991 17.5151 7.83283 17.4801 7.06383 17.1996C4.71637 16.3437 2.9209 14.4254 2.10002 11.8959C1.46553 9.94098 1.74471 7.39642 2.76257 5.85843C3.10914 5.33477 3.1145 5.29036 2.95277 4.28787C2.86126 3.72037 2.81177 2.80699 2.84279 2.25795Z",fill:"white"},null,-1),ye("path",{d:"M2.02306 16.5589C1.68479 16.0516 0.999227 15.9144 0.491814 16.2527C-0.0155884 16.591 -0.152708 17.2765 0.185564 17.7839C0.435301 18.1586 0.734065 18.4663 0.987777 18.72C1.03455 18.7668 1.08 18.8119 1.12438 18.856C1.3369 19.0671 1.52455 19.2535 1.71302 19.4748C2.12986 19.964 2.54572 20.623 2.78206 21.8047C2.88733 22.3311 3.26569 22.6147 3.47533 22.7386C3.70269 22.8728 3.9511 22.952 4.15552 23.0036C4.57369 23.109 5.08133 23.1638 5.56309 23.1957C6.09196 23.2308 6.665 23.2422 7.17743 23.2453C7.1778 23.8547 7.67202 24.3487 8.28162 24.3487C8.89146 24.3487 9.38582 23.8543 9.38582 23.2445V22.1403C9.38582 21.5305 8.89146 21.0361 8.28162 21.0361C8.17753 21.0361 8.06491 21.0364 7.94562 21.0369C7.29761 21.0389 6.45295 21.0414 5.70905 20.9922C5.35033 20.9684 5.05544 20.9347 4.8392 20.8936C4.50619 19.5863 3.96821 18.7165 3.39415 18.0426C3.14038 17.7448 2.87761 17.4842 2.66387 17.2722C2.62385 17.2326 2.58556 17.1946 2.54935 17.1584C2.30273 16.9118 2.1414 16.7365 2.02306 16.5589Z",fill:"white"},null,-1)]))}const XQ=Bf(GQ,[["render",KQ]]),JQ={},QQ={width:"17",height:"24",viewBox:"0 0 17 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ttt(d,s){return ci(),wi("svg",QQ,s[0]||(s[0]=[Ff('',12)]))}const ett=Bf(JQ,[["render",ttt]]),sw=lM("packets",()=>{const d=Ha(null),s=Ha(null),E=Ha([]),R=Ha([]),Y=Ha(null),dt=Ha(!1),_t=Ha(null),zt=Ha(null),jt=Ha([]),te=Ha([]),ce=Wo(()=>d.value!==null),Ie=Wo(()=>s.value!==null),Je=Wo(()=>E.value.length>0),fr=Wo(()=>R.value.length>0),Ar=Wo(()=>Y.value?.avg_noise_floor??0),kr=Wo(()=>d.value?.total_packets??0),Vr=Wo(()=>d.value?.avg_rssi??0),fn=Wo(()=>d.value?.avg_snr??0),Dt=Wo(()=>s.value?.uptime_seconds??0),cn=Wo(()=>{if(!d.value?.packet_types)return[];const Ti=d.value.packet_types,Qn=Ti.reduce((la,Eo)=>la+Eo.count,0);return Ti.map(la=>({type:la.type.toString(),count:la.count,percentage:Qn>0?la.count/Qn*100:0}))}),ti=Wo(()=>{const Ti={};return E.value.forEach(Qn=>{Ti[Qn.type]||(Ti[Qn.type]=[]),Ti[Qn.type].push(Qn)}),Ti});async function Dn(){try{const Ti=await ah.get("/stats");if(Ti.success&&Ti.data){s.value=Ti.data;const Qn=new Date;return te.value.push({timestamp:Qn,stats:Ti.data}),te.value.length>50&&(te.value=te.value.slice(-50)),Ti.data}else if(Ti&&"version"in Ti){const Qn=Ti;s.value=Qn;const la=new Date;return te.value.push({timestamp:la,stats:Qn}),te.value.length>50&&(te.value=te.value.slice(-50)),Qn}else throw new Error(Ti.error||"Failed to fetch system stats")}catch(Ti){throw _t.value=Ti instanceof Error?Ti.message:"Unknown error occurred",console.error("Error fetching system stats:",Ti),Ti}}async function ii(Ti={hours:24}){try{const Qn=await ah.get("/noise_floor_history",Ti);if(Qn.success&&Qn.data&&Qn.data.history)return R.value=Qn.data.history,zt.value=new Date,Qn.data.history;throw new Error(Qn.error||"Failed to fetch noise floor history")}catch(Qn){throw _t.value=Qn instanceof Error?Qn.message:"Unknown error occurred",console.error("Error fetching noise floor history:",Qn),Qn}}async function Vi(Ti={hours:24}){try{const Qn=await ah.get("/noise_floor_stats",Ti);if(Qn.success&&Qn.data&&Qn.data.stats)return Y.value=Qn.data.stats,zt.value=new Date,Qn.data.stats;throw new Error(Qn.error||"Failed to fetch noise floor stats")}catch(Qn){throw _t.value=Qn instanceof Error?Qn.message:"Unknown error occurred",console.error("Error fetching noise floor stats:",Qn),Qn}}const Nn=Wo(()=>!R.value||!Array.isArray(R.value)?[]:R.value.slice(-50).map(Ti=>Ti.noise_floor_dbm));async function Wr(Ti={hours:24}){try{dt.value=!0,_t.value=null;const Qn=await ah.get("/packet_stats",Ti);if(Qn.success&&Qn.data){d.value=Qn.data;const la=new Date;jt.value.push({timestamp:la,stats:Qn.data}),jt.value.length>50&&(jt.value=jt.value.slice(-50)),zt.value=la}else throw new Error(Qn.error||"Failed to fetch packet stats")}catch(Qn){_t.value=Qn instanceof Error?Qn.message:"Unknown error occurred",console.error("Error fetching packet stats:",Qn)}finally{dt.value=!1}}async function Bi(Ti={limit:100}){try{dt.value=!0,_t.value=null;const Qn=await ah.get("/recent_packets",Ti);if(Qn.success&&Qn.data)E.value=Qn.data,zt.value=new Date;else throw new Error(Qn.error||"Failed to fetch recent packets")}catch(Qn){_t.value=Qn instanceof Error?Qn.message:"Unknown error occurred",console.error("Error fetching recent packets:",Qn)}finally{dt.value=!1}}async function Ri(Ti){try{dt.value=!0,_t.value=null;const Qn=await ah.get("/filtered_packets",Ti);if(Qn.success&&Qn.data)return E.value=Qn.data,zt.value=new Date,Qn.data;throw new Error(Qn.error||"Failed to fetch filtered packets")}catch(Qn){throw _t.value=Qn instanceof Error?Qn.message:"Unknown error occurred",console.error("Error fetching filtered packets:",Qn),Qn}finally{dt.value=!1}}async function Li(Ti){try{dt.value=!0,_t.value=null;const Qn=await ah.get("/packet_by_hash",{packet_hash:Ti});if(Qn.success&&Qn.data)return Qn.data;throw new Error(Qn.error||"Packet not found")}catch(Qn){throw _t.value=Qn instanceof Error?Qn.message:"Unknown error occurred",console.error("Error fetching packet by hash:",Qn),Qn}finally{dt.value=!1}}const $n=Wo(()=>{const Ti=jt.value,Qn=te.value;return{totalPackets:Ti.map(la=>la.stats.total_packets),transmittedPackets:Ti.map(la=>la.stats.transmitted_packets),droppedPackets:Ti.map(la=>la.stats.dropped_packets),avgRssi:Ti.map(la=>la.stats.avg_rssi),uptimeHours:Qn.map(la=>Math.floor((la.stats.uptime_seconds||0)/3600))}});async function Hn(Ti=3e4){await Promise.all([Dn(),Wr(),Bi(),ii({hours:1}),Vi({hours:1})]);const Qn=setInterval(async()=>{try{await Promise.all([Dn(),Wr(),Bi(),ii({hours:1}),Vi({hours:1})])}catch(la){console.error("Auto-refresh error:",la)}},Ti);return()=>clearInterval(Qn)}function sa(){d.value=null,s.value=null,E.value=[],R.value=[],Y.value=null,jt.value=[],te.value=[],_t.value=null,zt.value=null,dt.value=!1}return{packetStats:d,systemStats:s,recentPackets:E,noiseFloorHistory:R,noiseFloorStats:Y,packetStatsHistory:jt,systemStatsHistory:te,isLoading:dt,error:_t,lastUpdated:zt,hasPacketStats:ce,hasSystemStats:Ie,hasRecentPackets:Je,hasNoiseFloorData:fr,currentNoiseFloor:Ar,totalPackets:kr,averageRSSI:Vr,averageSNR:fn,uptime:Dt,packetTypeBreakdown:cn,recentPacketsByType:ti,sparklineData:$n,noiseFloorSparklineData:Nn,fetchSystemStats:Dn,fetchPacketStats:Wr,fetchRecentPackets:Bi,fetchFilteredPackets:Ri,getPacketByHash:Li,fetchNoiseFloorHistory:ii,fetchNoiseFloorStats:Vi,startAutoRefresh:Hn,reset:sa}}),rtt={class:"glass-card-green p-5 relative overflow-hidden"},ntt={key:0,class:"absolute inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-10 rounded-lg"},itt={class:"flex items-baseline gap-2 mb-8"},att={class:"text-primary text-2xl font-medium"},ott={class:"absolute bottom-0 left-5 w-[196px] h-[30px]",viewBox:"0 0 196 30",fill:"none",xmlns:"http://www.w3.org/2000/svg"},stt=["d"],ltt=["d"],utt=["cy"],ctt=Ec({__name:"RFNoiseFloor",setup(d){const s=sw(),E=Dm(),R=Ha(null),Y=ce=>{if(ce.length<2)return"";const Ie=196,Je=30,fr=4,Ar=-125,Vr=-105-Ar;let fn="";return ce.forEach((Dt,cn)=>{const ti=cn/(ce.length-1)*Ie,Dn=(Dt-Ar)/Vr,ii=Je-Dn*(Je-fr*2)-fr;if(cn===0)fn+=`M ${ti} ${ii}`;else{const Nn=((cn-1)/(ce.length-1)*Ie+ti)/2;fn+=` Q ${Nn} ${ii} ${ti} ${ii}`}}),fn},dt=async()=>{try{await Promise.all([s.fetchNoiseFloorHistory({hours:1}),s.fetchNoiseFloorStats({hours:1})])}catch(ce){console.error("Error fetching noise floor data:",ce)}};op(()=>{dt(),R.value=window.setInterval(dt,5e3)}),zm(()=>{R.value&&clearInterval(R.value)});const _t=Wo(()=>{const ce=s.noiseFloorSparklineData;return ce&&ce.length>0?ce[ce.length-1]:s.noiseFloorStats?.avg_noise_floor??-116}),zt=Wo(()=>s.noiseFloorSparklineData),jt=Wo(()=>Y(zt.value)),te=Wo(()=>{if(zt.value.length===0)return 15;const ce=zt.value[zt.value.length-1],Ie=-125,fr=-105-Ie;return 30-(ce-Ie)/fr*22-4});return(ce,Ie)=>(ci(),wi("div",rtt,[Ol(E).cadCalibrationRunning?(ci(),wi("div",ntt,Ie[0]||(Ie[0]=[Ff('CAD CalibrationIn Progress',1)]))):Uo("",!0),Ie[4]||(Ie[4]=ye("p",{class:"text-dark-text text-xs uppercase mb-2"},"RF NOISE FLOOR",-1)),ye("div",itt,[ye("span",att,Fi(_t.value),1),Ie[1]||(Ie[1]=ye("span",{class:"text-dark-text text-xs uppercase"},"dBm",-1))]),(ci(),wi("svg",ott,[Ie[3]||(Ie[3]=Ff('',1)),zt.value.length>1?(ci(),wi("path",{key:0,d:`${jt.value} L 196 30 L 0 30 Z`,fill:"url(#rf-noise-gradient)",class:"transition-all duration-500 ease-out"},null,8,stt)):Uo("",!0),zt.value.length>1?(ci(),wi("path",{key:1,d:jt.value,stroke:"#B1FFFF","stroke-width":"2",fill:"none",filter:"url(#line-glow)",class:"transition-all duration-500 ease-out"},null,8,ltt)):Uo("",!0),zt.value.length>0?(ci(),wi("circle",{key:2,cx:196,cy:te.value,r:"2",fill:"#B1FFFF",class:"animate-pulse"},Ie[2]||(Ie[2]=[ye("animate",{attributeName:"r",values:"2;3;2",dur:"2s",repeatCount:"indefinite"},null,-1)]),8,utt)):Uo("",!0)]))]))}}),HO=Bf(ctt,[["__scopeId","data-v-ad12b3cb"]]),htt={},ftt={width:"800px",height:"800px",viewBox:"0 -1.5 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",class:"w-full h-full"};function dtt(d,s){return ci(),wi("svg",ftt,s[0]||(s[0]=[ye("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[ye("g",{transform:"translate(-420.000000, -3641.000000)",fill:"currentColor"},[ye("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},[ye("path",{d:"M378.195439,3483.828 L376.781439,3485.242 C378.195439,3486.656 378.294439,3489.588 376.880439,3491.002 L378.294439,3492.417 C380.415439,3490.295 380.316439,3485.949 378.195439,3483.828 M381.023439,3481 L379.609439,3482.414 C382.438439,3485.242 382.537439,3491.002 379.708439,3493.831 L381.122439,3495.245 C385.365439,3491.002 384.559439,3484.535 381.023439,3481 M375.432439,3486.737 C375.409439,3486.711 375.392439,3486.682 375.367439,3486.656 L375.363439,3486.66 C374.582439,3485.879 373.243439,3485.952 372.536439,3486.659 C371.829439,3487.366 371.831439,3488.778 372.538439,3489.485 C372.547439,3489.494 372.558439,3489.499 372.567439,3489.508 C372.590439,3489.534 372.607439,3489.563 372.632439,3489.588 L372.636439,3489.585 C373.201439,3490.15 373.000439,3488.284 373.000439,3498 L375.000439,3498 C375.000439,3488.058 374.753439,3490.296 375.463439,3489.586 C376.170439,3488.879 376.168439,3487.467 375.461439,3486.76 C375.452439,3486.751 375.441439,3486.746 375.432439,3486.737 M371.119439,3485.242 L369.705439,3483.828 C367.584439,3485.949 367.683439,3490.295 369.804439,3492.417 L371.218439,3491.002 C369.804439,3489.588 369.705439,3486.656 371.119439,3485.242 M368.390439,3493.831 L366.976439,3495.245 C363.440439,3491.709 362.634439,3485.242 366.877439,3481 L368.291439,3482.414 C365.462439,3485.242 365.561439,3491.002 368.390439,3493.831",id:"radio_tower-[#1019]"})])])],-1)]))}const ptt=Bf(htt,[["render",dtt]]),mtt={class:"text-center"},gtt={class:"relative flex items-center justify-center mb-8"},vtt={class:"relative w-32 h-32"},ytt={class:"absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2"},xtt={key:0,class:"absolute inset-0 flex items-center justify-center"},_tt={key:1,class:"absolute inset-0 flex items-center justify-center"},btt={key:2,class:"absolute inset-0"},wtt={class:"mb-6"},ktt={key:0,class:"text-white text-lg"},Ttt={key:1,class:"text-accent-green text-lg font-medium"},Att={key:2,class:"text-secondary text-lg"},Mtt={key:3,class:"text-accent-red text-lg"},Stt={key:4,class:"text-dark-text"},Ett={key:5,class:"mt-3"},Ctt={key:0,class:"text-secondary text-sm"},Ltt={key:1,class:"text-accent-red text-sm"},Ptt={key:0,class:"flex gap-3"},Itt={key:1,class:"text-dark-text text-sm"},ztt=Ec({name:"AdvertModal",__name:"AdvertModal",props:{isOpen:{type:Boolean},isLoading:{type:Boolean},isSuccess:{type:Boolean},error:{default:null}},emits:["close","send"],setup(d,{emit:s}){const E=d,R=s,Y=Ha(!1),dt=Ha(!1),_t=Ha(!1);Em(()=>E.isOpen,ce=>{ce?(Y.value=!0,setTimeout(()=>{dt.value=!0},50)):(dt.value=!1,_t.value=!1,setTimeout(()=>{Y.value=!1},300))},{immediate:!0}),Em(()=>E.isLoading,ce=>{ce||setTimeout(()=>{_t.value=!1},1e3)});const zt=()=>{E.isLoading||R("close")},jt=()=>{E.isLoading||(_t.value=!0,R("send"))},te=ce=>ce?.includes("Network error - no response received")||ce?.includes("timeout");return(ce,Ie)=>(ci(),G0(QA,{to:"body"},[Y.value?(ci(),wi("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4",onClick:Pm(zt,["self"])},[ye("div",{class:Fo(["absolute inset-0 bg-black/60 backdrop-blur-sm transition-opacity duration-300",dt.value?"opacity-100":"opacity-0"])},null,2),ye("div",{class:Fo(["relative glass-card rounded-[20px] p-8 max-w-md w-full transform transition-all duration-300",dt.value?"scale-100 opacity-100":"scale-95 opacity-0"])},[ce.isLoading?Uo("",!0):(ci(),wi("button",{key:0,onClick:zt,class:"absolute top-4 right-4 text-dark-text hover:text-white transition-colors p-2"},Ie[0]||(Ie[0]=[ye("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[ye("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]))),ye("div",mtt,[Ie[6]||(Ie[6]=ye("h2",{class:"text-white text-xl font-semibold mb-6"},"Send Advertisement",-1)),ye("div",gtt,[ye("div",vtt,[ye("div",ytt,[El(ptt,{class:Fo(["w-16 h-16 transition-all duration-500",[ce.isLoading?"animate-pulse":"",ce.isSuccess?"text-accent-green":ce.error&&!te(ce.error)?"text-accent-red":"text-primary"]]),style:hm({filter:ce.isLoading?"drop-shadow(0 0 8px currentColor)":ce.isSuccess?"drop-shadow(0 0 8px #A5E5B6)":ce.error&&!te(ce.error)?"drop-shadow(0 0 8px #FB787B)":"drop-shadow(0 0 4px #AAE8E8)"})},null,8,["class","style"])]),ce.isLoading||ce.isSuccess?(ci(),wi("div",xtt,[ye("div",{class:Fo(["absolute w-16 h-16 rounded-full border-2 animate-ping",[ce.isSuccess?"border-accent-green/60":"border-primary/60"]]),style:{"animation-duration":"1.5s"}},null,2),ye("div",{class:Fo(["absolute w-24 h-24 rounded-full border-2 animate-ping",[ce.isSuccess?"border-accent-green/40":"border-primary/40"]]),style:{"animation-duration":"2s","animation-delay":"0.3s"}},null,2),ye("div",{class:Fo(["absolute w-32 h-32 rounded-full border-2 animate-ping",[ce.isSuccess?"border-accent-green/20":"border-primary/20"]]),style:{"animation-duration":"2.5s","animation-delay":"0.6s"}},null,2)])):Uo("",!0),_t.value?(ci(),wi("div",_tt,Ie[1]||(Ie[1]=[ye("div",{class:"absolute w-8 h-8 rounded-full border-4 border-secondary animate-ping-fast"},null,-1),ye("div",{class:"absolute w-16 h-16 rounded-full border-3 border-secondary/70 animate-ping-fast",style:{"animation-delay":"0.1s"}},null,-1),ye("div",{class:"absolute w-24 h-24 rounded-full border-2 border-secondary/50 animate-ping-fast",style:{"animation-delay":"0.2s"}},null,-1),ye("div",{class:"absolute w-32 h-32 rounded-full border-2 border-secondary/30 animate-ping-fast",style:{"animation-delay":"0.3s"}},null,-1)]))):Uo("",!0),ce.isLoading||ce.isSuccess?(ci(),wi("div",btt,[ye("div",{class:Fo(["absolute top-2 right-2 w-4 h-4 rounded-full transition-all duration-500 animate-pulse",[ce.isSuccess?"bg-accent-green shadow-lg shadow-accent-green/50":"bg-primary/70 shadow-lg shadow-primary/30"]]),style:{"animation-delay":"0.5s"}},Ie[2]||(Ie[2]=[ye("div",{class:"w-2 h-2 bg-white rounded-full mx-auto mt-1"},null,-1)]),2),ye("div",{class:Fo(["absolute bottom-2 left-2 w-4 h-4 rounded-full transition-all duration-500 animate-pulse",[ce.isSuccess?"bg-accent-green shadow-lg shadow-accent-green/50":"bg-primary/70 shadow-lg shadow-primary/30"]]),style:{"animation-delay":"1s"}},Ie[3]||(Ie[3]=[ye("div",{class:"w-2 h-2 bg-white rounded-full mx-auto mt-1"},null,-1)]),2),ye("div",{class:Fo(["absolute top-1/2 right-1 w-4 h-4 rounded-full transition-all duration-500 animate-pulse",[ce.isSuccess?"bg-accent-green shadow-lg shadow-accent-green/50":"bg-primary/70 shadow-lg shadow-primary/30"]]),style:{"animation-delay":"1.5s",transform:"translateY(-50%)"}},Ie[4]||(Ie[4]=[ye("div",{class:"w-2 h-2 bg-white rounded-full mx-auto mt-1"},null,-1)]),2),ye("div",{class:Fo(["absolute top-3 left-3 w-4 h-4 rounded-full transition-all duration-500 animate-pulse",[ce.isSuccess?"bg-accent-green shadow-lg shadow-accent-green/50":"bg-primary/70 shadow-lg shadow-primary/30"]]),style:{"animation-delay":"2s"}},Ie[5]||(Ie[5]=[ye("div",{class:"w-2 h-2 bg-white rounded-full mx-auto mt-1"},null,-1)]),2)])):Uo("",!0)])]),ye("div",wtt,[ce.isLoading?(ci(),wi("p",ktt," Broadcasting advertisement... ")):ce.isSuccess?(ci(),wi("p",Ttt," Advertisement sent successfully! ")):ce.error&&te(ce.error)?(ci(),wi("p",Att," Advertisement likely sent ")):ce.error?(ci(),wi("p",Mtt," Failed to send advertisement ")):(ci(),wi("p",Stt," This will broadcast your node's presence to nearby nodes. ")),ce.error?(ci(),wi("div",Ett,[te(ce.error)?(ci(),wi("p",Ctt," Network timeout occurred, but the advertisement may have been successfully transmitted to nearby nodes. ")):(ci(),wi("p",Ltt,Fi(ce.error),1))])):Uo("",!0)]),!ce.isLoading&&!ce.isSuccess?(ci(),wi("div",Ptt,[ye("button",{onClick:zt,class:"flex-1 glass-card border border-dark-border hover:border-primary rounded-[10px] px-6 py-3 text-dark-text hover:text-white transition-all duration-200"}," Cancel "),ye("button",{onClick:jt,class:Fo(["flex-1 rounded-[10px] px-6 py-3 font-medium transition-all duration-200 shadow-lg",[ce.error&&te(ce.error)?"bg-secondary hover:bg-secondary/90 text-dark-bg hover:shadow-secondary/20":"bg-primary hover:bg-primary/90 text-dark-bg hover:shadow-primary/20"]])},Fi(ce.error&&te(ce.error)?"Try Again":"Send Advertisement"),3)])):Uo("",!0),ce.isSuccess?(ci(),wi("div",Itt," Closing automatically... ")):Uo("",!0)])],2)])):Uo("",!0)]))}}),WO=Bf(ztt,[["__scopeId","data-v-a5eb8c7f"]]),Ott={},Dtt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ftt(d,s){return ci(),wi("svg",Dtt,s[0]||(s[0]=[Ff('',2)]))}const qO=Bf(Ott,[["render",Ftt]]),Btt={},Rtt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ntt(d,s){return ci(),wi("svg",Rtt,s[0]||(s[0]=[Ff('',9)]))}const $O=Bf(Btt,[["render",Ntt]]),jtt={},Utt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Vtt(d,s){return ci(),wi("svg",Utt,s[0]||(s[0]=[Ff('',2)]))}const ZO=Bf(jtt,[["render",Vtt]]),Htt={},Wtt={width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qtt(d,s){return ci(),wi("svg",Wtt,s[0]||(s[0]=[ye("path",{d:"M9.81633 1.99133L8.5085 0.683492C8.29229 0.466088 8.03511 0.293723 7.75185 0.176372C7.46859 0.059021 7.16486 -0.000985579 6.85825 -0.000175002H1.75C1.28587 -0.000175002 0.840752 0.184199 0.512563 0.512388C0.184375 0.840577 0 1.2857 0 1.74983V13.9998H10.5V3.64099C10.4985 3.02248 10.2528 2.4296 9.81633 1.99133ZM8.9915 2.81616C9.02083 2.84799 9.04829 2.88149 9.07375 2.91649H7.58333V1.42608C7.61834 1.45153 7.65184 1.479 7.68367 1.50833L8.9915 2.81616ZM1.16667 12.8332V1.74983C1.16667 1.59512 1.22812 1.44674 1.33752 1.33735C1.44692 1.22795 1.59529 1.16649 1.75 1.16649H6.41667V4.08316H9.33333V12.8332H1.16667ZM2.33333 9.33316H8.16667V5.83316H2.33333V9.33316ZM3.5 6.99983H7V8.16649H3.5V6.99983ZM2.33333 10.4998H8.16667V11.6665H2.33333V10.4998Z",fill:"white"},null,-1)]))}const GO=Bf(Htt,[["render",qtt]]),$tt={},Ztt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Gtt(d,s){return ci(),wi("svg",Ztt,s[0]||(s[0]=[Ff('',2)]))}const YO=Bf($tt,[["render",Gtt]]),Ytt={name:"SystemIcon"},Ktt={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xtt(d,s,E,R,Y,dt){return ci(),wi("svg",Ktt,s[0]||(s[0]=[Ff('',5)]))}const KO=Bf(Ytt,[["render",Xtt]]),Jtt={},Qtt={width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tet(d,s){return ci(),wi("svg",Qtt,s[0]||(s[0]=[ye("path",{d:"M10.5 14.0004H9.33333V11.0586C9.33287 10.6013 9.15099 10.1628 8.82761 9.83942C8.50422 9.51603 8.06575 9.33415 7.60842 9.33369H2.89158C2.43425 9.33415 1.99578 9.51603 1.67239 9.83942C1.34901 10.1628 1.16713 10.6013 1.16667 11.0586V14.0004H0V11.0586C0.000926233 10.292 0.305872 9.55705 0.847948 9.01497C1.39002 8.47289 2.12497 8.16795 2.89158 8.16702H7.60842C8.37503 8.16795 9.10998 8.47289 9.65205 9.01497C10.1941 9.55705 10.4991 10.292 10.5 11.0586V14.0004Z",fill:"white"},null,-1),ye("path",{d:"M5.25 6.99997C4.55777 6.99997 3.88108 6.7947 3.30551 6.41011C2.72993 6.02553 2.28133 5.4789 2.01642 4.83936C1.75152 4.19982 1.6822 3.49609 1.81725 2.81716C1.9523 2.13822 2.28564 1.51458 2.77513 1.0251C3.26461 0.535614 3.88825 0.202271 4.56719 0.0672226C5.24612 -0.0678257 5.94985 0.00148598 6.58939 0.266393C7.22894 0.531299 7.77556 0.979903 8.16015 1.55548C8.54473 2.13105 8.75 2.80774 8.75 3.49997C8.74908 4.42794 8.38003 5.31765 7.72385 5.97382C7.06768 6.63 6.17798 6.99904 5.25 6.99997ZM5.25 1.16664C4.78851 1.16664 4.33739 1.30349 3.95367 1.55988C3.56996 1.81627 3.27089 2.18068 3.09428 2.60704C2.91768 3.0334 2.87147 3.50256 2.9615 3.95518C3.05153 4.4078 3.27376 4.82357 3.60009 5.14989C3.92641 5.47621 4.34217 5.69844 4.79479 5.78847C5.24741 5.8785 5.71657 5.83229 6.14293 5.65569C6.56929 5.47909 6.93371 5.18002 7.1901 4.7963C7.44649 4.41259 7.58334 3.96146 7.58334 3.49997C7.58334 2.88113 7.3375 2.28764 6.89992 1.85006C6.46233 1.41247 5.86884 1.16664 5.25 1.16664Z",fill:"white"},null,-1)]))}const XO=Bf(Jtt,[["render",tet]]),eet={},ret={width:"11",height:"13",viewBox:"0 0 11 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function net(d,s){return ci(),wi("svg",ret,s[0]||(s[0]=[ye("path",{d:"M6.77889 9.16667H10.1122V12.5M4.11222 3.83333H0.77889V0.5M10.3906 4.50227C10.0168 3.57711 9.39097 2.77536 8.58423 2.18815C7.77749 1.60094 6.82233 1.25168 5.82707 1.18034C4.8318 1.109 3.83627 1.31827 2.95402 1.78441C2.07177 2.25055 1.3381 2.95503 0.836182 3.81742M0.500244 8.49805C0.874034 9.42321 1.49986 10.225 2.30661 10.8122C3.11335 11.3994 4.06948 11.7482 5.06474 11.8195C6.06001 11.8909 7.05473 11.6816 7.93697 11.2155C8.81922 10.7494 9.55239 10.045 10.0543 9.18262",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const JO=Bf(eet,[["render",net]]),iet={},aet={width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function oet(d,s){return ci(),wi("svg",aet,s[0]||(s[0]=[Ff('',2)]))}const QO=Bf(iet,[["render",oet]]),set={class:"w-[285px] flex-shrink-0 p-[15px] hidden lg:block"},uet={class:"glass-card h-full p-6"},cet={class:"mb-12"},het={class:"text-[#C3C3C3] text-sm"},fet=["title"],det={class:"text-[#C3C3C3] text-sm mt-1"},pet={class:"mb-8"},met={class:"mb-8"},get={class:"space-y-2"},vet=["onClick"],yet={class:"mb-8"},xet={class:"space-y-2"},_et=["onClick"],bet=["disabled"],wet={class:"flex items-center gap-3"},ket=["disabled"],Tet={class:"flex items-center gap-3"},Aet={class:"mb-4"},Met={class:"flex items-center gap-2"},Eet={class:"glass-card px-2 py-1 text-dark-text text-xs font-medium rounded border border-dark-border"},Cet={class:"glass-card px-2 py-1 text-dark-text text-xs font-medium rounded border border-dark-border"},Let={key:0,class:"mb-4"},Pet={class:"text-dark-text text-xs mb-2"},Iet={class:"text-white"},zet={class:"w-full h-1 bg-white/10 rounded-full overflow-hidden"},Oet={class:"flex items-center justify-between"},Det={class:"flex items-center gap-2 text-dark-text text-xs"},Fet={class:"flex items-center gap-2"},Bet={href:"https://github.com/rightup",target:"_blank",class:"inline-block"},Ret={href:"https://buymeacoffee.com/rightup",target:"_blank",class:"inline-block"},Net=Ec({name:"SidebarNav",__name:"Sidebar",setup(d){const s=vO(),E=yO(),R=Dm(),Y=Ha(!1),dt=Ha(!1),_t=Ha(!1),zt=Ha(!1),jt=Ha(!1),te=Ha(null);let ce=null;op(async()=>{ce=await R.startAutoRefresh(5e3)}),Oy(()=>{ce&&ce()});const Ie={dashboard:$O,neighbors:XO,statistics:YO,"system-stats":KO,configuration:qO,logs:GO,help:ZO},Je=[{name:"Dashboard",icon:"dashboard",route:"/"},{name:"Neighbors",icon:"neighbors",route:"/neighbors"},{name:"Statistics",icon:"statistics",route:"/statistics"},{name:"System Stats",icon:"system-stats",route:"/system-stats"},{name:"Configuration",icon:"configuration",route:"/configuration"},{name:"Logs",icon:"logs",route:"/logs"},{name:"Help",icon:"help",route:"/help"}],fr=Wo(()=>Dn=>E.path===Dn),Ar=Dn=>{s.push(Dn)},kr=async()=>{Y.value=!0,te.value=null;try{await R.sendAdvert(),jt.value=!0,setTimeout(()=>{Vr()},2e3)}catch(Dn){te.value=Dn instanceof Error?Dn.message:"Unknown error occurred",console.error("Failed to send advert:",Dn)}finally{Y.value=!1}},Vr=()=>{zt.value=!1,jt.value=!1,te.value=null,Y.value=!1},fn=async()=>{if(!dt.value){dt.value=!0;try{await R.toggleMode()}catch(Dn){console.error("Failed to toggle mode:",Dn)}finally{dt.value=!1}}},Dt=async()=>{if(!_t.value){_t.value=!0;try{await R.toggleDutyCycle()}catch(Dn){console.error("Failed to toggle duty cycle:",Dn)}finally{_t.value=!1}}},cn=Ha(new Date().toLocaleTimeString());setInterval(()=>{cn.value=new Date().toLocaleTimeString()},1e3);const ti=Wo(()=>{const Dn=R.dutyCyclePercentage;let ii="#A5E5B6";return Dn>90?ii="#FB787B":Dn>70&&(ii="#FFC246"),{width:Dn===0?"2px":`${Math.max(Dn,2)}%`,backgroundColor:ii}});return(Dn,ii)=>(ci(),wi(_u,null,[ye("aside",set,[ye("div",uet,[ye("div",cet,[ii[1]||(ii[1]=ye("h1",{class:"text-white text-[22px] font-bold mb-2"},"pyMC Repeater",-1)),ye("p",het,[Qu(Fi(Ol(R).nodeName)+" ",1),ye("span",{class:Fo(["inline-block w-2 h-2 rounded-full ml-2",Ol(R).statusBadge.text==="Active"?"bg-accent-green":Ol(R).statusBadge.text==="Monitor Mode"?"bg-secondary":"bg-accent-red"]),title:Ol(R).statusBadge.title},null,10,fet)]),ye("p",det,"<"+Fi(Ol(R).pubKey)+">",1)]),ii[10]||(ii[10]=ye("div",{class:"border-t border-dark-border mb-6"},null,-1)),ye("div",pet,[ii[3]||(ii[3]=ye("p",{class:"text-dark-text text-xs uppercase mb-4"},"Actions",-1)),ye("button",{onClick:ii[0]||(ii[0]=Vi=>zt.value=!0),class:"w-full bg-white rounded-[10px] py-3 px-4 flex items-center gap-2 text-sm font-medium text-[#212122] hover:bg-gray-100 transition-colors"},ii[2]||(ii[2]=[ye("svg",{class:"w-3.5 h-3.5",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ye("path",{d:"M7 0C5.61553 0 4.26216 0.410543 3.11101 1.17971C1.95987 1.94888 1.06266 3.04213 0.532846 4.32122C0.003033 5.6003 -0.13559 7.00777 0.134506 8.36563C0.404603 9.7235 1.07129 10.9708 2.05026 11.9497C3.02922 12.9287 4.2765 13.5954 5.63437 13.8655C6.99224 14.1356 8.3997 13.997 9.67879 13.4672C10.9579 12.9373 12.0511 12.0401 12.8203 10.889C13.5895 9.73785 14 8.38447 14 7C13.998 5.1441 13.2599 3.36479 11.9475 2.05247C10.6352 0.74015 8.8559 0.0020073 7 0V0ZM7 12.8333C5.84628 12.8333 4.71846 12.4912 3.75918 11.8502C2.79989 11.2093 2.05222 10.2982 1.61071 9.23232C1.16919 8.16642 1.05368 6.99353 1.27876 5.86197C1.50384 4.73042 2.05941 3.69102 2.87521 2.87521C3.69102 2.0594 4.73042 1.50383 5.86198 1.27875C6.99353 1.05367 8.16642 1.16919 9.23232 1.6107C10.2982 2.05221 11.2093 2.79989 11.8502 3.75917C12.4912 4.71846 12.8333 5.84628 12.8333 7C12.8316 8.54658 12.2165 10.0293 11.1229 11.1229C10.0293 12.2165 8.54658 12.8316 7 12.8333ZM8.16667 7C8.1676 7.20501 8.11448 7.40665 8.01268 7.58461C7.91087 7.76256 7.76397 7.91054 7.58677 8.01365C7.40957 8.11676 7.20833 8.17136 7.00332 8.17194C6.7983 8.17252 6.59675 8.11906 6.41897 8.01696C6.24119 7.91485 6.09346 7.7677 5.99065 7.59033C5.88784 7.41295 5.83358 7.21162 5.83335 7.0066C5.83312 6.80159 5.88691 6.60013 5.98932 6.42252C6.09172 6.24491 6.23912 6.09743 6.41667 5.99492V3.5H7.58334V5.99492C7.76016 6.09659 7.90713 6.24298 8.00952 6.41939C8.1119 6.5958 8.1661 6.79603 8.16667 7Z",fill:"#212122"})],-1),Qu(" Send Advert ",-1)]))]),ye("div",met,[ii[4]||(ii[4]=ye("p",{class:"text-dark-text text-xs uppercase mb-4"},"Monitoring",-1)),ye("div",get,[(ci(!0),wi(_u,null,Mh(Je.slice(0,3),Vi=>(ci(),wi("button",{key:Vi.name,onClick:Nn=>Ar(Vi.route),class:Fo([fr.value(Vi.route)?"bg-primary/20 shadow-[0_0_6px_0_rgba(170,232,232,0.20)] text-primary":"text-white hover:bg-white/5","w-full rounded-[10px] py-3 px-4 flex items-center gap-3 text-sm transition-all"])},[(ci(),G0(d4(Ie[Vi.icon]),{class:"w-3.5 h-3.5"})),Qu(" "+Fi(Vi.name),1)],10,vet))),128))])]),ye("div",yet,[ii[5]||(ii[5]=ye("p",{class:"text-dark-text text-xs uppercase mb-4"},"System",-1)),ye("div",xet,[(ci(!0),wi(_u,null,Mh(Je.slice(3),Vi=>(ci(),wi("button",{key:Vi.name,onClick:Nn=>Ar(Vi.route),class:Fo([fr.value(Vi.route)?"bg-primary/20 shadow-[0_0_6px_0_rgba(170,232,232,0.20)] text-primary":"text-white hover:bg-white/5","w-full rounded-[10px] py-3 px-4 flex items-center gap-3 text-sm transition-all"])},[(ci(),G0(d4(Ie[Vi.icon]),{class:"w-3.5 h-3.5"})),Qu(" "+Fi(Vi.name),1)],10,_et))),128))])]),El(HO,{"current-value":Ol(R).noiseFloorDbm||-116,"update-interval":3e3,class:"mb-6"},null,8,["current-value"]),ye("button",{onClick:fn,disabled:dt.value,class:Fo(["p-4 flex items-center justify-between mb-4 w-full transition-all duration-200 cursor-pointer group",Ol(R).modeButtonState.warning?"glass-card-orange hover:bg-accent-red/10":"glass-card-green hover:bg-accent-green/10"])},[ye("div",wet,[El(JO,{class:"w-4 h-4 text-white group-hover:text-primary transition-colors"}),ii[6]||(ii[6]=ye("span",{class:"text-white text-sm group-hover:text-primary transition-colors"},"Mode",-1))]),ye("span",{class:Fo(["text-xs font-medium group-hover:text-white transition-colors",Ol(R).modeButtonState.warning?"text-accent-red":"text-accent-green"])},Fi(dt.value?"Changing...":Ol(R).currentMode.charAt(0).toUpperCase()+Ol(R).currentMode.slice(1)),3)],10,bet),ye("button",{onClick:Dt,disabled:_t.value,class:Fo(["p-4 flex items-center justify-between mb-4 w-full transition-all duration-200 cursor-pointer group",Ol(R).dutyCycleButtonState.warning?"glass-card-orange hover:bg-accent-red/10":"glass-card-green hover:bg-accent-green/10"])},[ye("div",Tet,[El(QO,{class:"w-3.5 h-3.5 text-white group-hover:text-primary transition-colors"}),ii[7]||(ii[7]=ye("span",{class:"text-white text-sm group-hover:text-primary transition-colors"},"Duty Cycle",-1))]),ye("span",{class:Fo(["text-xs font-medium group-hover:text-white transition-colors",Ol(R).dutyCycleButtonState.warning?"text-accent-red":"text-primary"])},Fi(_t.value?"Changing...":Ol(R).dutyCycleEnabled?"Enabled":"Disabled"),3)],10,ket),ye("div",Aet,[ye("div",Met,[ye("span",Eet," R:v"+Fi(Ol(R).version),1),ye("span",Cet," C:v"+Fi(Ol(R).coreVersion),1)])]),ii[11]||(ii[11]=ye("div",{class:"border-t border-accent-green mb-4"},null,-1)),Ol(R).dutyCycleEnabled?(ci(),wi("div",Let,[ye("p",Pet,[ii[8]||(ii[8]=Qu(" Duty Cycle: ",-1)),ye("span",Iet,Fi(Ol(R).dutyCycleUtilization.toFixed(1))+"% / "+Fi(Ol(R).dutyCycleMax.toFixed(1))+"%",1)]),ye("div",zet,[ye("div",{class:"h-full rounded-full transition-all duration-300",style:hm(ti.value)},null,4)])])):Uo("",!0),ye("div",Oet,[ye("div",Det,[ii[9]||(ii[9]=ye("svg",{class:"w-3 h-3",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ye("path",{d:"M6.5 13C5.59722 13 4.75174 12.8286 3.96355 12.4858C3.17537 12.143 2.48926 11.6795 1.90522 11.0955C1.32119 10.5115 0.85776 9.82535 0.514945 9.03717C0.172131 8.24898 0.000482491 7.40326 1.0101e-06 6.5C-0.000480471 5.59674 0.171168 4.75126 0.514945 3.96356C0.858723 3.17585 1.32191 2.48974 1.9045 1.90522C2.48709 1.3207 3.1732 0.857278 3.96283 0.514944C4.75246 0.172611 5.59818 0.000962963 6.5 0C7.48703 0 8.42303 0.210648 9.30799 0.631944C10.193 1.05324 10.9421 1.64907 11.5555 2.41944V1.44444C11.5555 1.23981 11.6249 1.06841 11.7635 0.930222C11.9022 0.792037 12.0736 0.722704 12.2778 0.722222C12.4819 0.721741 12.6536 0.791074 12.7927 0.930222C12.9319 1.06937 13.001 1.24078 13 1.44444V4.33333C13 4.53796 12.9307 4.70961 12.792 4.84828C12.6533 4.98694 12.4819 5.05604 12.2778 5.05556H9.38888C9.18425 5.05556 9.01285 4.98622 8.87466 4.84756C8.73647 4.70889 8.66714 4.53748 8.66666 4.33333C8.66618 4.12919 8.73551 3.95778 8.87466 3.81911C9.01381 3.68044 9.18521 3.61111 9.38888 3.61111H10.6528C10.1593 2.93704 9.55138 2.40741 8.82916 2.02222C8.10694 1.63704 7.33055 1.44444 6.5 1.44444C5.09166 1.44444 3.89711 1.93507 2.91633 2.91633C1.93555 3.89759 1.44493 5.09215 1.44444 6.5C1.44396 7.90785 1.93459 9.10265 2.91633 10.0844C3.89807 11.0661 5.09263 11.5565 6.5 11.5556C7.64351 11.5556 8.66666 11.2125 9.56944 10.5264C10.4722 9.84028 11.068 8.95555 11.3569 7.87222C11.4171 7.67963 11.5255 7.53519 11.6819 7.43889C11.8384 7.34259 12.013 7.30648 12.2055 7.33055C12.4102 7.35463 12.5727 7.44178 12.693 7.592C12.8134 7.74222 12.8495 7.90785 12.8014 8.08889C12.4523 9.5213 11.694 10.698 10.5264 11.6191C9.35879 12.5402 8.01666 13.0005 6.5 13ZM7.22222 6.21111L9.02777 8.01667C9.16018 8.14907 9.22638 8.31759 9.22638 8.52222C9.22638 8.72685 9.16018 8.89537 9.02777 9.02778C8.89536 9.16018 8.72685 9.22639 8.52222 9.22639C8.31759 9.22639 8.14907 9.16018 8.01666 9.02778L5.99444 7.00556C5.92222 6.93333 5.86805 6.8522 5.83194 6.76217C5.79583 6.67213 5.77777 6.57872 5.77777 6.48194V3.61111C5.77777 3.40648 5.84711 3.23507 5.98577 3.09689C6.12444 2.9587 6.29585 2.88937 6.5 2.88889C6.70414 2.88841 6.87579 2.95774 7.01494 3.09689C7.15409 3.23604 7.22318 3.40744 7.22222 3.61111V6.21111Z",fill:"currentColor"})],-1)),Qu(" Last Updated: "+Fi(cn.value),1)]),ye("div",Fet,[ye("a",Bet,[El(XQ,{class:"w-4 h-4 text-dark-text hover:text-white transition-colors"})]),ye("a",Ret,[El(ett,{class:"w-4 h-4 text-dark-text hover:text-white transition-colors"})])])])])]),El(WO,{isOpen:zt.value,isLoading:Y.value,isSuccess:jt.value,error:te.value,onClose:Vr,onSend:kr},null,8,["isOpen","isLoading","isSuccess","error"])],64))}}),jet={key:0,class:"fixed inset-0 z-40 lg:hidden"},Uet={class:"absolute left-0 top-0 bottom-0 w-72 p-4"},Vet={class:"glass-card h-full p-6 overflow-auto"},Het={class:"mb-6 flex items-center justify-between"},Wet={class:"text-[#C3C3C3] text-sm"},qet=["title"],$et={class:"text-[#C3C3C3] text-sm mt-1"},Zet={class:"mb-4"},Get={class:"mb-4"},Yet={class:"space-y-2 mb-3"},Ket=["onClick"],Xet={class:"mb-4"},Jet={class:"space-y-2 mb-3"},Qet=["onClick"],trt=["disabled"],ert={class:"flex items-center gap-3"},rrt=["disabled"],nrt={class:"flex items-center gap-3"},irt={class:"mb-4"},art={class:"flex items-center gap-2"},ort={class:"glass-card px-2 py-1 text-dark-text text-xs font-medium rounded border border-dark-border"},srt={class:"glass-card px-2 py-1 text-dark-text text-xs font-medium rounded border border-dark-border"},lrt={key:0,class:"mb-4"},urt={class:"text-dark-text text-xs mb-2"},crt={class:"text-white"},hrt={class:"w-full h-1 bg-white/10 rounded-full overflow-hidden"},frt={class:"text-dark-text text-xs"},drt=Ec({name:"MobileSidebar",__name:"MobileSidebar",props:{showMobileSidebar:{type:Boolean}},emits:["update:showMobileSidebar"],setup(d,{emit:s}){const E=s,R=vO(),Y=yO(),dt=Dm(),_t=Ha(!1),zt=Ha(!1),jt=Ha(!1),te=Ha(!1),ce=Ha(!1),Ie=Ha(null);let Je=null;op(async()=>{Je=await dt.startAutoRefresh(5e3)}),Oy(()=>{Je&&Je()});const fr={dashboard:$O,neighbors:XO,statistics:YO,"system-stats":KO,configuration:qO,logs:GO,help:ZO},Ar=[{name:"Dashboard",icon:"dashboard",route:"/"},{name:"Neighbors",icon:"neighbors",route:"/neighbors"},{name:"Statistics",icon:"statistics",route:"/statistics"},{name:"System Stats",icon:"system-stats",route:"/system-stats"},{name:"Configuration",icon:"configuration",route:"/configuration"},{name:"Logs",icon:"logs",route:"/logs"},{name:"Help",icon:"help",route:"/help"}],kr=Wo(()=>Nn=>Y.path===Nn),Vr=Nn=>{R.push(Nn),fn()},fn=()=>{E("update:showMobileSidebar",!1)},Dt=async()=>{_t.value=!0,Ie.value=null;try{await dt.sendAdvert(),ce.value=!0,setTimeout(()=>{cn()},2e3)}catch(Nn){Ie.value=Nn instanceof Error?Nn.message:"Unknown error occurred",console.error("Failed to send advert:",Nn)}finally{_t.value=!1}},cn=()=>{te.value=!1,ce.value=!1,Ie.value=null,_t.value=!1},ti=async()=>{if(!zt.value){zt.value=!0;try{await dt.toggleMode()}catch(Nn){console.error("Failed to toggle mode:",Nn)}finally{zt.value=!1}}},Dn=async()=>{if(!jt.value){jt.value=!0;try{await dt.toggleDutyCycle()}catch(Nn){console.error("Failed to toggle duty cycle:",Nn)}finally{jt.value=!1}}},ii=Ha(new Date().toLocaleTimeString());setInterval(()=>{ii.value=new Date().toLocaleTimeString()},1e3);const Vi=Wo(()=>{const Nn=dt.dutyCyclePercentage;let Wr="#A5E5B6";return Nn>90?Wr="#FB787B":Nn>70&&(Wr="#FFC246"),{width:Nn===0?"2px":`${Math.max(Nn,2)}%`,backgroundColor:Wr}});return(Nn,Wr)=>(ci(),wi(_u,null,[Nn.showMobileSidebar?(ci(),wi("div",jet,[ye("div",{class:"absolute inset-0 bg-black/50",onClick:fn}),ye("div",Uet,[ye("div",Vet,[ye("div",Het,[ye("div",null,[Wr[1]||(Wr[1]=ye("h1",{class:"text-white text-[20px] font-bold"},"pyMC Repeater",-1)),ye("p",Wet,[Qu(Fi(Ol(dt).nodeName)+" ",1),ye("span",{class:Fo(["inline-block w-2 h-2 rounded-full ml-2",Ol(dt).statusBadge.text==="Active"?"bg-accent-green":Ol(dt).statusBadge.text==="Monitor Mode"?"bg-secondary":"bg-accent-red"]),title:Ol(dt).statusBadge.title},null,10,qet)]),ye("p",$et,"<"+Fi(Ol(dt).pubKey)+">",1)]),ye("button",{onClick:fn,class:"text-dark-text"},"✕")]),Wr[9]||(Wr[9]=ye("div",{class:"border-t border-dark-border mb-4"},null,-1)),ye("div",Zet,[Wr[3]||(Wr[3]=ye("p",{class:"text-dark-text text-xs uppercase mb-2"},"Actions",-1)),ye("button",{onClick:Wr[0]||(Wr[0]=Bi=>te.value=!0),class:"w-full bg-white rounded-[10px] py-3 px-4 flex items-center gap-2 text-sm font-medium text-[#212122] hover:bg-gray-100 transition-colors mb-2"},Wr[2]||(Wr[2]=[ye("svg",{class:"w-3.5 h-3.5",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ye("path",{d:"M7 0C5.61553 0 4.26216 0.410543 3.11101 1.17971C1.95987 1.94888 1.06266 3.04213 0.532846 4.32122C0.003033 5.6003 -0.13559 7.00777 0.134506 8.36563C0.404603 9.7235 1.07129 10.9708 2.05026 11.9497C3.02922 12.9287 4.2765 13.5954 5.63437 13.8655C6.99224 14.1356 8.3997 13.997 9.67879 13.4672C10.9579 12.9373 12.0511 12.0401 12.8203 10.889C13.5895 9.73785 14 8.38447 14 7C13.998 5.1441 13.2599 3.36479 11.9475 2.05247C10.6352 0.74015 8.8559 0.0020073 7 0V0ZM7 12.8333C5.84628 12.8333 4.71846 12.4912 3.75918 11.8502C2.79989 11.2093 2.05222 10.2982 1.61071 9.23232C1.16919 8.16642 1.05368 6.99353 1.27876 5.86197C1.50384 4.73042 2.05941 3.69102 2.87521 2.87521C3.69102 2.0594 4.73042 1.50383 5.86198 1.27875C6.99353 1.05367 8.16642 1.16919 9.23232 1.6107C10.2982 2.05221 11.2093 2.79989 11.8502 3.75917C12.4912 4.71846 12.8333 5.84628 12.8333 7C12.8316 8.54658 12.2165 10.0293 11.1229 11.1229C10.0293 12.2165 8.54658 12.8316 7 12.8333ZM8.16667 7C8.1676 7.20501 8.11448 7.40665 8.01268 7.58461C7.91087 7.76256 7.76397 7.91054 7.58677 8.01365C7.40957 8.11676 7.20833 8.17136 7.00332 8.17194C6.7983 8.17252 6.59675 8.11906 6.41897 8.01696C6.24119 7.91485 6.09346 7.7677 5.99065 7.59033C5.88784 7.41295 5.83358 7.21162 5.83335 7.0066C5.83312 6.80159 5.88691 6.60013 5.98932 6.42252C6.09172 6.24491 6.23912 6.09743 6.41667 5.99492V3.5H7.58334V5.99492C7.76016 6.09659 7.90713 6.24298 8.00952 6.41939C8.1119 6.5958 8.1661 6.79603 8.16667 7Z",fill:"#212122"})],-1),Qu(" Send Advert ",-1)]))]),ye("div",Get,[Wr[4]||(Wr[4]=ye("p",{class:"text-dark-text text-xs uppercase mb-2"},"Monitoring",-1)),ye("div",Yet,[(ci(!0),wi(_u,null,Mh(Ar.slice(0,3),Bi=>(ci(),wi("button",{key:Bi.name,onClick:Ri=>Vr(Bi.route),class:Fo([kr.value(Bi.route)?"bg-primary/20 shadow-[0_0_6px_0_rgba(170,232,232,0.20)] text-primary":"text-white hover:bg-white/5","w-full rounded-[10px] py-3 px-4 flex items-center gap-3 text-sm transition-all"])},[(ci(),G0(d4(fr[Bi.icon]),{class:"w-3.5 h-3.5"})),Qu(" "+Fi(Bi.name),1)],10,Ket))),128))])]),ye("div",Xet,[Wr[5]||(Wr[5]=ye("p",{class:"text-dark-text text-xs uppercase mb-2"},"System",-1)),ye("div",Jet,[(ci(!0),wi(_u,null,Mh(Ar.slice(3),Bi=>(ci(),wi("button",{key:Bi.name,onClick:Ri=>Vr(Bi.route),class:Fo([kr.value(Bi.route)?"bg-primary/20 shadow-[0_0_6px_0_rgba(170,232,232,0.20)] text-primary":"text-white hover:bg-white/5","w-full rounded-[10px] py-3 px-4 flex items-center gap-3 text-sm transition-all"])},[(ci(),G0(d4(fr[Bi.icon]),{class:"w-3.5 h-3.5"})),Qu(" "+Fi(Bi.name),1)],10,Qet))),128))])]),El(HO,{"current-value":Ol(dt).noiseFloorDbm||-116,"update-interval":3e3,class:"mb-4"},null,8,["current-value"]),ye("button",{onClick:ti,disabled:zt.value,class:Fo(["p-4 flex items-center justify-between mb-3 w-full transition-all duration-200 cursor-pointer group",Ol(dt).modeButtonState.warning?"glass-card-orange hover:bg-accent-red/10":"glass-card-green hover:bg-accent-green/10"])},[ye("div",ert,[El(JO,{class:"w-4 h-4 text-white group-hover:text-primary transition-colors"}),Wr[6]||(Wr[6]=ye("span",{class:"text-white text-sm group-hover:text-primary transition-colors"},"Mode",-1))]),ye("span",{class:Fo(["text-xs font-medium group-hover:text-white transition-colors",Ol(dt).modeButtonState.warning?"text-accent-red":"text-accent-green"])},Fi(zt.value?"Changing...":Ol(dt).currentMode.charAt(0).toUpperCase()+Ol(dt).currentMode.slice(1)),3)],10,trt),ye("button",{onClick:Dn,disabled:jt.value,class:Fo(["p-4 flex items-center justify-between mb-3 w-full transition-all duration-200 cursor-pointer group",Ol(dt).dutyCycleButtonState.warning?"glass-card-orange hover:bg-accent-red/10":"glass-card-green hover:bg-accent-green/10"])},[ye("div",nrt,[El(QO,{class:"w-3.5 h-3.5 text-white group-hover:text-primary transition-colors"}),Wr[7]||(Wr[7]=ye("span",{class:"text-white text-sm group-hover:text-primary transition-colors"},"Duty Cycle",-1))]),ye("span",{class:Fo(["text-xs font-medium group-hover:text-white transition-colors",Ol(dt).dutyCycleButtonState.warning?"text-accent-red":"text-primary"])},Fi(jt.value?"Changing...":Ol(dt).dutyCycleEnabled?"Enabled":"Disabled"),3)],10,rrt),ye("div",irt,[ye("div",art,[ye("span",ort," R:v"+Fi(Ol(dt).version),1),ye("span",srt," C:v"+Fi(Ol(dt).coreVersion),1)])]),Wr[10]||(Wr[10]=ye("div",{class:"border-t border-accent-green mb-4"},null,-1)),Ol(dt).dutyCycleEnabled?(ci(),wi("div",lrt,[ye("p",urt,[Wr[8]||(Wr[8]=Qu(" Duty Cycle: ",-1)),ye("span",crt,Fi(Ol(dt).dutyCycleUtilization.toFixed(1))+"% / "+Fi(Ol(dt).dutyCycleMax.toFixed(1))+"%",1)]),ye("div",hrt,[ye("div",{class:"h-full rounded-full transition-all duration-300",style:hm(Vi.value)},null,4)])])):Uo("",!0),ye("p",frt,"Last Updated: "+Fi(ii.value),1)])])])):Uo("",!0),El(WO,{isOpen:te.value,isLoading:_t.value,isSuccess:ce.value,error:Ie.value,onClose:cn,onSend:Dt},null,8,["isOpen","isLoading","isSuccess","error"])],64))}}),prt={class:"glass-card p-6 mb-5 rounded-[20px] relative z-10"},mrt={class:"flex flex-col lg:flex-row lg:items-center lg:justify-between gap-4"},grt={class:"flex items-center gap-3"},vrt={class:"text-right mr-4"},yrt={key:0,class:"flex items-center gap-2"},xrt={key:1,class:"space-y-1"},_rt={class:"text-dark-text text-sm"},brt={class:"text-primary font-medium"},wrt={key:0,class:"text-xs text-dark-text/80"},krt={key:0},Trt={key:1,class:"text-xs text-dark-text/60"},Art={key:2},Mrt={key:0,class:"text-xs text-dark-text/60"},Srt=["disabled"],Ert={class:"flex items-center justify-between mb-3"},Crt={class:"flex items-center gap-2"},Lrt=["disabled"],Prt=["disabled"],Irt={class:"space-y-3 text-sm"},zrt={key:0,class:"bg-[#0B1014] p-3 rounded-lg border border-accent-red/30 border-l-2 border-l-accent-red"},Ort={class:"flex items-center justify-between"},Drt={class:"text-accent-red font-bold"},Frt={class:"text-xs text-gray-400 mt-1"},Brt={key:1,class:"bg-[#0B1014] p-3 rounded-lg border border-white/10 border-l-2 border-l-accent-green"},Rrt={class:"flex items-center justify-between"},Nrt={class:"text-accent-green font-bold"},jrt={key:0,class:"text-xs text-gray-400 mt-1"},Urt={key:2,class:"bg-[#0B1014] p-3 rounded-lg border border-white/10"},Vrt={key:3,class:"bg-[#0B1014] p-3 rounded-lg border border-accent-red/30 border-l-2 border-l-accent-red"},Hrt={class:"text-xs text-gray-400"},Wrt={class:"bg-[#0B1014] p-3 rounded-lg border border-white/10 border-l-2 border-l-primary"},qrt={class:"flex items-center justify-between"},$rt={class:"text-primary font-bold"},Zrt={key:0,class:"text-xs text-gray-400 mt-1"},Grt={class:"flex items-center justify-between"},Yrt={class:"text-white font-medium"},Krt={key:0,class:"mt-2"},Xrt={class:"text-xs text-gray-400"},Jrt={class:"text-gray-300"},Qrt={key:4,class:"bg-[#0B1014] p-4 rounded-lg border border-white/10 text-center"},tnt={key:5,class:"bg-[#0B1014] p-3 rounded-lg border border-white/10 text-center"},ent=Ec({name:"TopBar",__name:"TopBar",emits:["toggleMobileSidebar"],setup(d,{emit:s}){const E=s,R=Dm(),Y=Ha(!1),dt=Ha(null),_t=Ha({hasUpdate:!1,currentVersion:"",latestVersion:"",isChecking:!1,lastChecked:null,error:null}),zt=Ha({}),jt=Ha(!0),te=Ha(null),ce=["Chat Node","Repeater","Room Server"];function Ie(Nn){const Wr=Nn.target;dt.value&&!dt.value.contains(Wr)&&(Y.value=!1)}const Je=async()=>{try{jt.value=!0;const Nn={};for(const Wr of ce)try{const Bi=await ah.get(`/adverts_by_contact_type?contact_type=${encodeURIComponent(Wr)}&hours=168`);Bi.success&&Array.isArray(Bi.data)?Nn[Wr]=Bi.data:Nn[Wr]=[]}catch(Bi){console.error(`Error fetching ${Wr} nodes:`,Bi),Nn[Wr]=[]}zt.value=Nn,te.value=new Date}catch(Nn){console.error("Error updating tracked nodes:",Nn)}finally{jt.value=!1}},fr=async()=>{if(!_t.value.isChecking)try{_t.value.isChecking=!0,_t.value.error=null,await R.fetchStats();const Nn=R.version;if(!Nn||Nn==="Unknown"){_t.value.error="Unable to determine current version";return}const Bi=await fetch("https://raw.githubusercontent.com/rightup/pyMC_Repeater/main/repeater/__init__.py");if(!Bi.ok)throw new Error(`GitHub request failed: ${Bi.status}`);const Li=(await Bi.text()).match(/__version__\s*=\s*["']([^"']+)["']/);if(!Li)throw new Error("Could not parse version from GitHub file");const $n=Li[1];_t.value.currentVersion=Nn,_t.value.latestVersion=$n,_t.value.lastChecked=new Date,_t.value.hasUpdate=Nn!==$n}catch(Nn){console.error("Error checking for updates:",Nn),_t.value.error=Nn instanceof Error?Nn.message:"Failed to check for updates"}finally{_t.value.isChecking=!1}},Ar=Wo(()=>Object.values(zt.value).reduce((Wr,Bi)=>Wr+Bi.length,0)),kr=Wo(()=>ce.map(Wr=>({type:Wr,count:zt.value[Wr]?.length||0})).filter(Wr=>Wr.count>0)),Vr=Wo(()=>_t.value.hasUpdate||Ar.value>0),fn=Nn=>({"Chat Node":"text-blue-400",Repeater:"text-accent-green","Room Server":"text-accent-purple"})[Nn]||"text-gray-400",Dt=Nn=>{const Wr=zt.value[Nn]||[];return Wr.length===0?"None":Wr.reduce((Ri,Li)=>Li.last_seen>Ri.last_seen?Li:Ri,Wr[0]).node_name||"Unknown Node"};let cn=null,ti=null;const Dn=()=>{cn&&clearInterval(cn),cn=setInterval(()=>{Je()},3e4),ti&&clearInterval(ti),ti=setInterval(()=>{fr()},6e5)},ii=()=>{cn&&(clearInterval(cn),cn=null),ti&&(clearInterval(ti),ti=null)};op(()=>{document.addEventListener("click",Ie),Je(),fr(),Dn()}),zm(()=>{document.removeEventListener("click",Ie),ii()});const Vi=()=>{E("toggleMobileSidebar")};return(Nn,Wr)=>(ci(),wi("div",prt,[ye("div",mrt,[ye("div",{class:"flex items-center gap-3"},[ye("button",{onClick:Vi,class:"lg:hidden w-10 h-10 rounded bg-[#1A1E1F] flex items-center justify-center hover:bg-[#2A2E2F] transition-colors"},Wr[2]||(Wr[2]=[ye("svg",{class:"w-5 h-5 text-white",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ye("path",{d:"M3 6h14M3 10h14M3 14h14",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),Wr[3]||(Wr[3]=ye("div",null,[ye("h1",{class:"text-white text-[35px] font-bold mb-2"},"Welcome👋")],-1))]),ye("div",grt,[ye("div",vrt,[jt.value?(ci(),wi("div",yrt,Wr[4]||(Wr[4]=[ye("div",{class:"animate-spin rounded-full h-3 w-3 border-b-2 border-primary"},null,-1),ye("p",{class:"text-dark-text text-sm"},"Loading tracking data...",-1)]))):Ar.value>0?(ci(),wi("div",xrt,[ye("p",_rt,[Wr[5]||(Wr[5]=Qu(" Tracking: ",-1)),ye("span",brt,Fi(Ar.value)+" node"+Fi(Ar.value===1?"":"s"),1)]),kr.value.length>1?(ci(),wi("div",wrt,[(ci(!0),wi(_u,null,Mh(kr.value,(Bi,Ri)=>(ci(),wi("span",{key:Bi.type,class:"inline"},[Qu(Fi(Bi.count)+" "+Fi(Bi.type)+Fi(Bi.count===1?"":"s"),1),RiY.value=!Y.value,["stop"])),class:"w-[35px] h-[35px] rounded bg-[#1A1E1F] flex items-center justify-center hover:bg-[#2A2E2F] transition-colors relative"},[Wr[8]||(Wr[8]=ye("svg",{class:"w-5 h-5",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ye("path",{d:"M12.5 14.1667V15C12.5 16.3807 11.3807 17.5 9.99998 17.5C8.61927 17.5 7.49998 16.3807 7.49998 15V14.1667M12.5 14.1667L7.49998 14.1667M12.5 14.1667H15.8333C16.2936 14.1667 16.6666 13.7936 16.6666 13.3333V12.845C16.6666 12.624 16.5788 12.4122 16.4225 12.2559L15.9969 11.8302C15.8921 11.7255 15.8333 11.5833 15.8333 11.4351V8.33333C15.8333 8.1863 15.828 8.04045 15.817 7.89674M7.49998 14.1667L4.16665 14.1668C3.70641 14.1668 3.33331 13.7934 3.33331 13.3332V12.8451C3.33331 12.6241 3.42118 12.4124 3.57745 12.2561L4.00307 11.8299C4.10781 11.7251 4.16665 11.5835 4.16665 11.4353V8.33331C4.16665 5.11167 6.77831 2.5 9.99998 2.5C10.593 2.5 11.1653 2.58848 11.7045 2.75297M15.817 7.89674C16.8223 7.32275 17.5 6.24051 17.5 5C17.5 3.15905 16.0076 1.66666 14.1666 1.66666C13.1914 1.66666 12.3141 2.08544 11.7045 2.75297M15.817 7.89674C15.3304 8.17457 14.7671 8.33333 14.1666 8.33333C12.3257 8.33333 10.8333 6.84095 10.8333 5C10.8333 4.13425 11.1634 3.34558 11.7045 2.75297M15.817 7.89674C15.817 7.89674 15.817 7.89675 15.817 7.89674ZM11.7045 2.75297C11.7049 2.75309 11.7053 2.75321 11.7057 2.75333",stroke:"white","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),Vr.value?(ci(),wi("span",{key:0,class:Fo(["absolute top-2 right-2 w-2 h-2 rounded-full",_t.value.hasUpdate?"bg-accent-red animate-pulse":"bg-primary"])},null,2)):Uo("",!0)]),Y.value?(ci(),wi("div",{key:0,ref_key:"notifRef",ref:dt,class:"absolute right-6 top-14 z-[100] w-80 bg-[#1A1E1F] border border-white/20 rounded-[15px] p-4 shadow-2xl backdrop-blur-sm",onClick:Wr[1]||(Wr[1]=Pm(()=>{},["stop"]))},[ye("div",Ert,[Wr[10]||(Wr[10]=ye("p",{class:"text-white font-semibold"},"System Status",-1)),ye("div",Crt,[ye("button",{onClick:fr,disabled:_t.value.isChecking,class:"text-xs text-primary hover:text-primary/80 disabled:opacity-50",title:"Check for updates"},Fi(_t.value.isChecking?"Checking...":"Check Updates"),9,Lrt),Wr[9]||(Wr[9]=ye("span",{class:"text-dark-text text-xs"},"•",-1)),ye("button",{onClick:Je,disabled:jt.value,class:"text-xs text-primary hover:text-primary/80 disabled:opacity-50"},Fi(jt.value?"Updating...":"Refresh"),9,Prt)])]),ye("div",Irt,[_t.value.hasUpdate?(ci(),wi("div",zrt,[ye("div",Ort,[Wr[11]||(Wr[11]=ye("span",{class:"text-white font-medium"},"Update Available",-1)),ye("span",Drt,Fi(_t.value.latestVersion),1)]),ye("div",Frt," Current: "+Fi(_t.value.currentVersion),1),Wr[12]||(Wr[12]=ye("div",{class:"text-xs text-gray-300 mt-2"},[ye("a",{href:"https://github.com/rightup/pyMC_Repeater",target:"_blank",class:"text-accent-red hover:text-accent-red/80 underline"}," Goto Github→ ")],-1))])):_t.value.currentVersion&&!_t.value.isChecking?(ci(),wi("div",Brt,[ye("div",Rrt,[Wr[13]||(Wr[13]=ye("span",{class:"text-white font-medium"},"Up to Date",-1)),ye("span",Nrt,Fi(_t.value.currentVersion),1)]),_t.value.lastChecked?(ci(),wi("div",jrt," Last checked: "+Fi(_t.value.lastChecked.toLocaleTimeString()),1)):Uo("",!0)])):_t.value.isChecking?(ci(),wi("div",Urt,Wr[14]||(Wr[14]=[ye("div",{class:"flex items-center justify-center gap-2"},[ye("div",{class:"animate-spin rounded-full h-4 w-4 border-b-2 border-primary"}),ye("span",{class:"text-gray-300"},"Checking for updates...")],-1)]))):_t.value.error?(ci(),wi("div",Vrt,[Wr[15]||(Wr[15]=ye("div",{class:"text-white font-medium mb-1"},"Update Check Failed",-1)),ye("div",Hrt,Fi(_t.value.error),1)])):Uo("",!0),Wr[20]||(Wr[20]=ye("div",{class:"border-t border-white/10"},null,-1)),Wr[21]||(Wr[21]=ye("div",{class:"text-white font-medium text-sm mb-2"},"Mesh Network Status",-1)),ye("div",Wrt,[ye("div",qrt,[Wr[16]||(Wr[16]=ye("span",{class:"text-white font-medium"},"Total Tracked Nodes",-1)),ye("span",$rt,Fi(Ar.value),1)]),te.value?(ci(),wi("div",Zrt," Last updated: "+Fi(te.value.toLocaleString()),1)):Uo("",!0)]),(ci(!0),wi(_u,null,Mh(kr.value,Bi=>(ci(),wi("div",{key:Bi.type,class:"bg-[#0B1014] p-3 rounded-lg border border-white/10"},[ye("div",Grt,[ye("span",Yrt,Fi(Bi.type)+Fi(Bi.count===1?"":"s"),1),ye("span",{class:Fo([fn(Bi.type),"font-bold"])},Fi(Bi.count),3)]),zt.value[Bi.type]?.length>0?(ci(),wi("div",Krt,[ye("div",Xrt,[Wr[17]||(Wr[17]=Qu(" Latest: ",-1)),ye("span",Jrt,Fi(Dt(Bi.type)),1)])])):Uo("",!0)]))),128)),Ar.value===0&&!jt.value?(ci(),wi("div",Qrt,Wr[18]||(Wr[18]=[ye("div",{class:"text-gray-400"},[ye("svg",{class:"w-8 h-8 mx-auto mb-2 opacity-50",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[ye("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9.172 16.172a4 4 0 015.656 0M9 12h6m-6-4h6m2 5.291A7.962 7.962 0 0112 15c-2.034 0-3.9.785-5.291 2.09M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]),ye("span",null,"No mesh nodes detected")],-1)]))):Uo("",!0),jt.value?(ci(),wi("div",tnt,Wr[19]||(Wr[19]=[ye("div",{class:"flex items-center justify-center gap-2"},[ye("div",{class:"animate-spin rounded-full h-4 w-4 border-b-2 border-primary"}),ye("span",{class:"text-gray-300"},"Scanning mesh network...")],-1)]))):Uo("",!0)])],512)):Uo("",!0)])])]))}}),rnt=Bf(ent,[["__scopeId","data-v-0a06f286"]]),nnt={class:"min-h-screen bg-dark-bg overflow-hidden relative font-sans"},int={class:"relative flex min-h-screen"},ant={class:"flex-1 p-4 lg:p-[15px] overflow-y-auto"},ont=Ec({name:"DashboardLayout",__name:"DashboardLayout",setup(d){const s=Ha(!1),E=()=>{s.value=!s.value},R=()=>{s.value=!1};return(Y,dt)=>{const _t=eM("router-view");return ci(),wi("div",nnt,[dt[1]||(dt[1]=ye("div",{class:"absolute rounded-full -rotate-[24.22deg] w-[705px] h-[512px] bg-gradient-to-b from-cyan-400/25 to-cyan-200/10 blur-[120px] opacity-80 -top-[79px] left-[575px] mix-blend-screen pointer-events-none"},null,-1)),dt[2]||(dt[2]=ye("div",{class:"absolute rounded-full -rotate-[24.22deg] w-[705px] h-[512px] bg-gradient-to-b from-cyan-400/25 to-cyan-200/10 blur-[120px] opacity-75 -top-[94px] -left-[92px] mix-blend-screen pointer-events-none"},null,-1)),dt[3]||(dt[3]=ye("div",{class:"absolute rounded-full -rotate-[24.22deg] w-[705px] h-[512px] bg-gradient-to-b from-cyan-400/25 to-cyan-200/10 blur-[120px] opacity-80 top-[373px] left-[246px] mix-blend-screen pointer-events-none"},null,-1)),ye("div",int,[El(Net,{class:"hidden lg:block"}),El(drt,{showMobileSidebar:s.value,"onUpdate:showMobileSidebar":dt[0]||(dt[0]=zt=>s.value=zt),onClose:R},null,8,["showMobileSidebar"]),ye("main",ant,[El(rnt,{onToggleMobileSidebar:E}),El(_t)])])])}}}),snt=Ec({__name:"App",setup(d){return(s,E)=>(ci(),G0(ont))}}),lnt={class:"sparkline-container"},unt={class:"text-white text-sm font-semibold mb-4"},cnt={class:"flex items-end gap-4"},hnt=["id","width","height","viewBox"],fnt=["id"],dnt=["stop-color"],pnt=["stop-color"],mnt=["d","fill"],gnt=["d","stroke"],vnt=["cx","cy","fill"],ynt=Ec({name:"SparklineChart",__name:"Sparkline",props:{title:{},value:{},color:{},data:{default:()=>[]},width:{default:131},height:{default:37},animate:{type:Boolean,default:!0},showChart:{type:Boolean,default:!0}},setup(d){const s=d,E=Wo(()=>{if(s.data&&s.data.length>0)return s.data;const _t=typeof s.value=="number"?s.value:10,zt=20,jt=_t*.3;return Array.from({length:zt},(te,ce)=>{const Ie=Math.sin(ce/zt*Math.PI*2)*jt*.5,Je=(Math.random()-.5)*jt*.3;return Math.max(0,_t+Ie+Je)})}),R=Wo(()=>{const _t=E.value;if(_t.length<2)return"";const zt=Math.max(..._t),jt=Math.min(..._t),te=zt-jt||1,ce=s.width/(_t.length-1);let Ie="";return _t.forEach((Je,fr)=>{const Ar=fr*ce,kr=s.height-(Je-jt)/te*s.height;if(fr===0)Ie+=`M ${Ar} ${kr}`;else{const fn=((fr-1)*ce+Ar)/2;Ie+=` Q ${fn} ${kr} ${Ar} ${kr}`}}),Ie}),Y=Ha("");op(()=>{Y.value=R.value}),Em(()=>s.data,(_t,zt)=>{const jt=!zt||_t.length!==zt.length||Math.abs(_t.length-zt.length)>5;s.animate&&jt?(Y.value="",setTimeout(()=>{Y.value=R.value},50)):Y.value=R.value});const dt=Wo(()=>`sparkline-${s.title.replace(/\s+/g,"-").toLowerCase()}`);return(_t,zt)=>(ci(),wi("div",lnt,[ye("p",unt,Fi(_t.title),1),ye("div",cnt,[ye("span",{class:"text-[30px] font-bold",style:hm({color:_t.color})},[Qu(Fi(_t.value),1),IY(_t.$slots,"unit",{},void 0)],4),_t.showChart?(ci(),wi("svg",{key:0,id:dt.value,class:"mb-3 sparkline-svg",width:_t.width,height:_t.height,viewBox:`0 0 ${_t.width} ${_t.height}`,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ye("defs",null,[ye("linearGradient",{id:`gradient-${dt.value}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[ye("stop",{offset:"0%","stop-color":_t.color,"stop-opacity":"0.3"},null,8,dnt),ye("stop",{offset:"100%","stop-color":_t.color,"stop-opacity":"0.1"},null,8,pnt)],8,fnt)]),ye("path",{d:`${Y.value} L ${_t.width} ${_t.height} L 0 ${_t.height} Z`,fill:`url(#gradient-${dt.value})`,class:"sparkline-fill"},null,8,mnt),ye("path",{d:Y.value,stroke:_t.color,"stroke-width":"2",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:Fo(["sparkline-path",{"animate-draw":_t.animate}])},null,10,gnt),E.value.length>0?(ci(),wi("circle",{key:0,cx:_t.width,cy:_t.height-(E.value[E.value.length-1]-Math.min(...E.value))/(Math.max(...E.value)-Math.min(...E.value)||1)*_t.height,r:"2",fill:_t.color,class:Fo(["sparkline-dot",{"animate-pulse":_t.animate}])},null,10,vnt)):Uo("",!0)],8,hnt)):Uo("",!0)])]))}}),pg=Bf(ynt,[["__scopeId","data-v-574bf55e"]]),xnt={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-5"},_nt=Ec({name:"StatsCards",__name:"StatsCards",setup(d){const s=sw(),E=Ha(null),R=Wo(()=>{const _t=s.packetStats,zt=s.systemStats,jt=te=>{const ce=Math.floor(te/86400),Ie=Math.floor(te%86400/3600),Je=Math.floor(te%3600/60);return ce>0?`${ce}d ${Ie}h`:Ie>0?`${Ie}h ${Je}m`:`${Je}m`};return{packetsReceived:_t?.total_packets||0,packetsForwarded:_t?.transmitted_packets||0,uptimeFormatted:zt?jt(zt.uptime_seconds||0):"0m",uptimeHours:zt?Math.floor((zt.uptime_seconds||0)/3600):0,droppedPackets:_t?.dropped_packets||0,signalQuality:Math.round((_t?.avg_rssi||0)+120)}}),Y=Wo(()=>s.sparklineData),dt=async()=>{try{await Promise.all([s.fetchSystemStats(),s.fetchPacketStats({hours:24})])}catch(_t){console.error("Error fetching stats:",_t)}};return op(()=>{dt(),E.value=window.setInterval(dt,5e3)}),zm(()=>{E.value&&clearInterval(E.value)}),(_t,zt)=>(ci(),wi("div",xnt,[El(pg,{title:"RX Packets",value:R.value.packetsReceived,color:"#AAE8E8",data:Y.value.totalPackets},null,8,["value","data"]),El(pg,{title:"Forward",value:R.value.packetsForwarded,color:"#FFC246",data:Y.value.transmittedPackets},null,8,["value","data"]),El(pg,{title:"Up Time",value:R.value.uptimeFormatted,color:"#EBA0FC",data:[],showChart:!1},null,8,["value"]),El(pg,{title:"Dropped",value:R.value.droppedPackets,color:"#FB787B",data:Y.value.droppedPackets},null,8,["value","data"])]))}}),bnt={class:"glass-card rounded-[10px] p-6"},wnt={class:"h-80 relative"},knt={key:0,class:"absolute inset-0 flex items-center justify-center"},Tnt={key:1,class:"absolute inset-0 flex items-center justify-center"},Ant={class:"text-red-400"},Mnt={key:2,class:"absolute inset-0 flex items-center justify-center"},Snt={key:3,class:"h-full flex items-end justify-around gap-2 px-4"},Ent={class:"relative w-full h-64 flex flex-col justify-end"},Cnt={class:"text-white text-xs font-semibold drop-shadow-lg backdrop-blur-sm bg-black/20 px-2 py-0.5 rounded-md border border-white/10"},Lnt={class:"mt-2 text-center"},Pnt={class:"text-white text-xs font-medium leading-tight"},Int={key:0,class:"mt-4 text-sm text-white text-center"},znt=Ec({name:"SignalQualityChart",__name:"SignalQualityChart",setup(d){const s=Ha([]),E=Ha(null),R=Ha(!0),Y=Ha(null),dt=["rgba(59, 130, 246, 0.8)","rgba(16, 185, 129, 0.8)","rgba(139, 92, 246, 0.8)","rgba(245, 158, 11, 0.8)","rgba(239, 68, 68, 0.8)","rgba(6, 182, 212, 0.8)","rgba(249, 115, 22, 0.8)","rgba(132, 204, 22, 0.8)","rgba(236, 72, 153, 0.8)","rgba(107, 114, 128, 0.8)"],_t=async()=>{try{Y.value=null;const jt=await ah.get("/packet_type_graph_data");if(jt?.success&&jt?.data){const te=jt.data;if(te?.series){const ce=[];te.series.forEach((Ie,Je)=>{let fr=0;Ie.data&&Array.isArray(Ie.data)&&(fr=Ie.data.reduce((Ar,kr)=>Ar+(kr[1]||0),0)),fr>0&&ce.push({name:Ie.name||`Type ${Ie.type}`,type:Ie.type,count:fr,color:dt[Je%dt.length]})}),ce.sort((Ie,Je)=>Je.count-Ie.count),s.value=ce,R.value=!1}else console.error("No series data found in response"),Y.value="No series data in server response",R.value=!1}else console.error("Invalid API response structure:",jt),Y.value="Invalid response from server",R.value=!1}catch(jt){console.error("Failed to fetch packet type data:",jt),Y.value=jt instanceof Error?jt.message:"Failed to load data",R.value=!1}},zt=jt=>{if(s.value.length===0)return 0;const te=Math.max(...s.value.map(ce=>ce.count));return Math.max(jt/te*100,2)};return op(()=>{_t(),E.value=setInterval(()=>{_t()},3e4)}),zm(()=>{E.value&&clearInterval(E.value)}),(jt,te)=>(ci(),wi("div",bnt,[te[2]||(te[2]=ye("h3",{class:"text-white text-xl font-semibold mb-4"},"Packet Types",-1)),te[3]||(te[3]=ye("p",{class:"text-white text-sm uppercase mb-4"},"Distribution by Type",-1)),ye("div",wnt,[R.value?(ci(),wi("div",knt,te[0]||(te[0]=[ye("div",{class:"text-white"},"Loading packet types...",-1)]))):Y.value?(ci(),wi("div",Tnt,[ye("div",Ant,Fi(Y.value),1)])):s.value.length===0?(ci(),wi("div",Mnt,te[1]||(te[1]=[ye("div",{class:"text-white"},"No packet data available",-1)]))):(ci(),wi("div",Snt,[(ci(!0),wi(_u,null,Mh(s.value,ce=>(ci(),wi("div",{key:ce.type,class:"flex flex-col items-center flex-1 max-w-20 h-full"},[ye("div",Ent,[ye("div",{class:"w-full rounded-t-[10px] transition-all duration-500 ease-out flex items-end justify-center pb-1 backdrop-blur-[50px] shadow-lg border border-white/20 hover:border-white/30",style:hm({height:zt(ce.count)+"%",background:`linear-gradient(135deg, + ${ce.color} 0%, + ${ce.color.replace("0.8","0.6")} 30%, + ${ce.color.replace("0.8","0.4")} 70%, + ${ce.color.replace("0.8","0.3")} 100%), linear-gradient(91deg, rgba(34, 34, 34, 0.43) 1.17%, rgba(135, 135, 136, 0.10) 99.82%)`,backgroundBlendMode:"overlay, normal",minHeight:"8px",boxShadow:` - 0 8px 32px ${he.color.replace("0.8","0.3")}, + 0 8px 32px ${ce.color.replace("0.8","0.3")}, 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.2) - `})},[Ee("span",lnt,Qi(he.count),1)],4)]),Ee("div",unt,[Ee("div",cnt,Qi(he.name.replace(/\([^)]*\)/g,"").trim()),1)])]))),128))]))]),s.value.length>0?(_i(),zi("div",hnt," Total packet types: "+Qi(s.value.length)+" | Total packets: "+Qi(s.value.reduce((he,De)=>he+De.count,0)),1)):is("",!0)]))}}),dnt=ld(fnt,[["__scopeId","data-v-dc58fd68"]]),pnt={class:"glass-card rounded-[10px] p-6"},mnt={class:"relative h-48"},gnt={class:"mt-4 grid grid-cols-2 gap-4"},vnt={class:"text-center"},ynt={class:"text-2xl font-bold text-white"},xnt={class:"text-center"},_nt={class:"text-2xl font-bold text-white"},bnt={class:"mt-3 grid grid-cols-3 gap-3 text-center"},wnt={class:"text-sm font-semibold text-accent-purple"},knt={class:"text-sm font-semibold text-accent-red"},Tnt={class:"text-sm font-semibold text-white"},Ant=Dc({name:"PerformanceChart",__name:"PerformanceChart",setup(d){const s=sw(),E=Ga(null),B=Ga([]),K=Ga(null),pt=Ga(!0),_t=async()=>{try{pt.value=!0;const jt=await Ah.get("/recent_packets",{limit:50});if(!jt.success){B.value=[],pt.value=!1,om(()=>{Ot()});return}const te=jt.data||[],he=Date.now(),De=24,er=12,pr=De*60*60*1e3/er,Mr=[];for(let Tr=0;Tr{const ni=Bn.timestamp*1e3;return ni>=Vr&&ni!Bn.transmitted).length,Jn=Dt.filter(Bn=>Bn.transmitted).length;Mr.push({time:new Date(Vr+pr/2).toISOString(),rxPackets:cn,txPackets:Jn})}B.value=Mr,pt.value=!1,om(()=>{Ot()})}catch{B.value=[],pt.value=!1,om(()=>{Ot()})}},Ot=()=>{if(!E.value)return;const jt=E.value,te=jt.getContext("2d");if(!te)return;const he=jt.parentElement;if(!he)return;const De=he.getBoundingClientRect(),er=De.width,pr=De.height;jt.width=er*window.devicePixelRatio,jt.height=pr*window.devicePixelRatio,jt.style.width=er+"px",jt.style.height=pr+"px",te.scale(window.devicePixelRatio,window.devicePixelRatio);const Mr=20;if(te.clearRect(0,0,er,pr),pt.value){te.fillStyle="#666",te.font="16px sans-serif",te.textAlign="center",te.fillText("Loading chart data...",er/2,pr/2);return}if(B.value.length===0){te.fillStyle="#666",te.font="16px sans-serif",te.textAlign="center",te.fillText("No data available",er/2,pr/2);return}const Tr=B.value.every(Un=>Un.rxPackets===0&&Un.txPackets===0),Vr=er-Mr*2,mn=pr-Mr*2,Dt=B.value.flatMap(Un=>[Un.rxPackets,Un.txPackets]),cn=Math.min(...Dt),Jn=Math.max(...Dt),Bn=cn,ni=Jn,Wi=Math.max(ni-Bn,1);if(te.strokeStyle="rgba(255, 255, 255, 0.1)",te.lineWidth=1,Bn<=0&&ni>=0){te.strokeStyle="rgba(255, 255, 255, 0.3)",te.lineWidth=2;const Un=pr-Mr-(0-Bn)/Wi*mn;te.beginPath(),te.moveTo(Mr,Un),te.lineTo(er-Mr,Un),te.stroke(),Un>20&&Un1&&(te.strokeStyle="#EBA0FC",te.lineWidth=2,te.beginPath(),B.value.forEach((Un,qr)=>{const Di=Mr+Vr*qr/(B.value.length-1),Fi=pr-Mr-(Un.rxPackets-Bn)/Wi*mn;qr===0?te.moveTo(Di,Fi):te.lineTo(Di,Fi)}),te.stroke(),te.fillStyle="#EBA0FC",B.value.forEach((Un,qr)=>{const Di=Mr+Vr*qr/(B.value.length-1),Fi=pr-Mr-(Un.rxPackets-Bn)/Wi*mn;te.beginPath(),te.arc(Di,Fi,2,0,2*Math.PI),te.fill()})),B.value.length>1&&(te.strokeStyle="#FB787B",te.lineWidth=2,te.beginPath(),B.value.forEach((Un,qr)=>{const Di=Mr+Vr*qr/(B.value.length-1),Fi=pr-Mr-(Un.txPackets-Bn)/Wi*mn;qr===0?te.moveTo(Di,Fi):te.lineTo(Di,Fi)}),te.stroke(),te.fillStyle="#FB787B",B.value.forEach((Un,qr)=>{const Di=Mr+Vr*qr/(B.value.length-1),Fi=pr-Mr-(Un.txPackets-Bn)/Wi*mn;te.beginPath(),te.arc(Di,Fi,2,0,2*Math.PI),te.fill()})),te.fillStyle="rgba(255, 255, 255, 0.6)",te.font="12px system-ui",te.textAlign="center",Tr&&(te.fillStyle="rgba(255, 255, 255, 0.6)",te.font="14px system-ui",te.textAlign="center",te.fillText("No packet activity in last 24 hours",er/2,pr-15))};return bp(()=>{_t(),K.value=window.setInterval(_t,3e4),om(()=>{Ot(),setTimeout(()=>{Ot()},100)}),window.addEventListener("resize",Ot)}),gg(()=>{K.value&&clearInterval(K.value),window.removeEventListener("resize",Ot)}),(jt,te)=>(_i(),zi("div",pnt,[te[5]||(te[5]=$f('Performance MetricsPacket Activity (Last 24 Hours)ReceivedTransmitted',3)),Ee("div",mnt,[Ee("canvas",{ref_key:"chartRef",ref:E,class:"absolute inset-0 w-full h-full"},null,512)]),Ee("div",gnt,[Ee("div",vnt,[Ee("div",ynt,Qi(zl(s).packetStats?.total_packets||0),1),te[0]||(te[0]=Ee("div",{class:"text-xs text-white/70 uppercase tracking-wide"},"Total Received",-1))]),Ee("div",xnt,[Ee("div",_nt,Qi(zl(s).packetStats?.transmitted_packets||0),1),te[1]||(te[1]=Ee("div",{class:"text-xs text-white/70 uppercase tracking-wide"},"Total Transmitted",-1))])]),Ee("div",bnt,[Ee("div",null,[Ee("div",wnt,Qi(B.value.length>0?Math.round(B.value.reduce((he,De)=>he+De.rxPackets,0)/B.value.length*100)/100:0),1),te[2]||(te[2]=Ee("div",{class:"text-xs text-white/60"},"Avg RX/hr",-1))]),Ee("div",null,[Ee("div",knt,Qi(B.value.length>0?Math.round(B.value.reduce((he,De)=>he+De.txPackets,0)/B.value.length*100)/100:0),1),te[3]||(te[3]=Ee("div",{class:"text-xs text-white/60"},"Avg TX/hr",-1))]),Ee("div",null,[Ee("div",Tnt,Qi(zl(s).packetStats?.dropped_packets||0),1),te[4]||(te[4]=Ee("div",{class:"text-xs text-white/60"},"Dropped",-1))])])]))}}),Mnt=ld(Ant,[["__scopeId","data-v-2ece57e8"]]),Snt={class:"relative w-full max-w-4xl max-h-[90vh] overflow-hidden"},Ent={class:"glass-card rounded-[20px] p-8 backdrop-blur-[50px] shadow-2xl border border-white/20"},Cnt={class:"flex items-center justify-between mb-6"},Lnt={class:"text-white/70 text-sm"},Pnt={class:"max-h-[70vh] overflow-y-auto custom-scrollbar"},Int={class:"mb-6"},znt={class:"glass-card bg-white/5 rounded-[15px] p-4"},Ont={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},Dnt={class:"space-y-3"},Fnt={class:"flex justify-between py-2 border-b border-white/10"},Rnt={class:"text-white font-mono text-sm"},Bnt={class:"flex justify-between py-2 border-b border-white/10"},Nnt={class:"text-white font-mono text-xs break-all"},jnt={key:0,class:"flex justify-between py-2 border-b border-white/10"},Unt={class:"text-white font-mono text-xs"},Vnt={class:"space-y-3"},Hnt={class:"flex justify-between py-2 border-b border-white/10"},Wnt={class:"text-white font-semibold"},qnt={class:"flex justify-between py-2 border-b border-white/10"},$nt={class:"text-white font-semibold"},Znt={class:"flex justify-between py-2 border-b border-white/10"},Gnt={class:"mb-6"},Ynt={class:"glass-card bg-white/5 rounded-[15px] p-4"},Knt={class:"space-y-3"},Xnt={class:"flex justify-between py-2 border-b border-white/10"},Jnt={class:"text-white"},Qnt={key:0,class:"pt-2"},tit={class:"glass-card bg-black/30 rounded-[10px] p-4 mb-4"},eit={class:"w-full overflow-x-auto"},rit={class:"text-white/90 text-xs font-mono whitespace-pre leading-relaxed min-w-full"},nit={class:"flex items-center justify-between mb-3"},iit={class:"text-white/80 text-sm font-semibold"},ait={class:"text-white/60 text-xs"},oit={class:"glass-card bg-black/40 rounded-[8px] p-3 mb-3 overflow-x-auto"},sit={class:"font-mono text-sm text-white whitespace-pre min-w-full"},lit={class:"glass-card bg-white/5 rounded-[10px] overflow-hidden"},uit={class:"text-cyan-400 text-sm font-mono"},cit={class:"text-white text-sm"},hit={class:"text-white text-sm font-semibold"},fit={class:"text-orange-400 text-sm font-mono"},dit={key:0,class:"text-white/60 text-xs italic mt-2 px-1"},pit={key:1,class:"py-2"},mit={class:"mb-6"},git={class:"glass-card bg-white/5 rounded-[15px] p-4"},vit={class:"space-y-4"},yit={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},xit={class:"flex justify-between py-2 border-b border-white/10"},_it={class:"flex justify-between py-2 border-b border-white/10"},bit={key:0,class:"py-2"},wit={class:"glass-card bg-black/20 rounded-[10px] p-4"},kit={class:"flex items-center flex-wrap gap-2"},Tit={class:"relative group"},Ait={class:"relative px-3 py-2 bg-gradient-to-br from-blue-500/20 to-cyan-500/20 border border-cyan-400/40 rounded-lg transform transition-all hover:scale-105"},Mit={class:"font-mono text-xs font-semibold text-white/90"},Sit={class:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-black/90 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none whitespace-nowrap z-10"},Eit={key:0,class:"mx-2 text-cyan-400/60"},Cit={key:1,class:"py-2"},Lit={class:"text-white/70 text-sm mb-2 flex items-center"},Pit={key:0,class:"w-4 h-4 ml-2 text-yellow-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Iit={key:1,class:"text-yellow-400 text-xs ml-1"},zit={class:"glass-card bg-black/20 rounded-[10px] p-4"},Oit={class:"flex items-center flex-wrap gap-2"},Dit={class:"relative group"},Fit={key:0,class:"absolute -top-1 -right-1 w-2 h-2 bg-yellow-400 rounded-full animate-pulse"},Rit={class:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-black/90 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none whitespace-nowrap z-10"},Bit={key:0,class:"mx-1 text-orange-400/60"},Nit={class:"mb-6"},jit={class:"glass-card bg-white/5 rounded-[15px] p-4"},Uit={class:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-4"},Vit={class:"text-center p-3 glass-card bg-black/20 rounded-[10px]"},Hit={class:"text-lg font-bold text-white"},Wit={class:"text-center p-3 glass-card bg-black/20 rounded-[10px]"},qit={class:"text-center p-3 glass-card bg-black/20 rounded-[10px]"},$it={class:"text-lg font-bold text-white"},Zit={class:"mb-4"},Git={class:"flex items-center gap-3"},Yit={class:"flex gap-1"},Kit={class:"text-white/80 text-sm capitalize"},Xit={key:0,class:"mb-4"},Jit={class:"text-white/70 text-sm mb-3"},Qit={class:"space-y-2"},tat={class:"flex items-center gap-3"},eat={class:"text-white/60 text-sm"},rat={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},nat={class:"space-y-2"},iat={class:"flex justify-between py-2 border-b border-white/10"},aat={class:"text-white"},oat={class:"flex justify-between py-2 border-b border-white/10"},sat={class:"space-y-2"},lat={class:"flex justify-between py-2 border-b border-white/10"},uat={key:0,class:"flex justify-between py-2 border-b border-white/10"},cat={class:"text-red-400 text-sm"},hat={class:"mt-6 pt-4 border-t border-white/10 flex justify-end"},fat=Dc({name:"PacketDetailsModal",__name:"PacketDetailsModal",props:{packet:{},isOpen:{type:Boolean},localHash:{}},emits:["close"],setup(d,{emit:s}){const E=d,B=s,K=Dt=>new Date(Dt*1e3).toLocaleString(),pt=Dt=>Dt.transmitted?Dt.is_duplicate?"text-amber-400":Dt.drop_reason?"text-red-400":"text-green-400":"text-red-400",_t=Dt=>Dt.transmitted?Dt.is_duplicate?"Duplicate":Dt.drop_reason?"Dropped":"Forwarded":"Dropped",Ot=Dt=>({0:"Request",1:"Response",2:"Plain Text Message",3:"Acknowledgment",4:"Node Advertisement",5:"Group Text Message",6:"Group Datagram",7:"Anonymous Request",8:"Returned Path",9:"Trace",10:"Multi-part Packet",15:"Custom Packet"})[Dt]||`Unknown Type (${Dt})`,jt=Dt=>({0:"Transport Flood",1:"Flood",2:"Direct",3:"Transport Direct"})[Dt]||`Unknown Route (${Dt})`,te=Dt=>{if(!Dt)return"None";const Jn=Dt.replace(/\s+/g,"").toUpperCase().match(/.{2}/g)||[],Bn=[];for(let ni=0;ni{try{let Bn=0;const ni=cn.length/2;if(ni>=100){if(cn.length>=Bn+64){const Wi=cn.slice(Bn,Bn+64);Dt.push({name:"Public Key",byteRange:`${(Jn+Bn)/2}-${(Jn+Bn+63)/2}`,hexData:Wi.match(/.{8}/g)?.join(" ")||Wi,description:"Ed25519 public key of the node (32 bytes)",fields:[{bits:"0-255",name:"Ed25519 Public Key",value:`${Wi.slice(0,16)}...${Wi.slice(-16)}`,binary:"32 bytes (256 bits)"}]}),Bn+=64}if(cn.length>=Bn+8){const Wi=cn.slice(Bn,Bn+8),Un=parseInt(Wi,16),qr=new Date(Un*1e3);Dt.push({name:"Timestamp",byteRange:`${(Jn+Bn)/2}-${(Jn+Bn+7)/2}`,hexData:Wi.match(/.{2}/g)?.join(" ")||Wi,description:"Unix timestamp of advertisement",fields:[{bits:"0-31",name:"Unix Timestamp",value:`${Un} (${qr.toLocaleString()})`,binary:Un.toString(2).padStart(32,"0")}]}),Bn+=8}if(cn.length>=Bn+128){const Wi=cn.slice(Bn,Bn+128);Dt.push({name:"Signature",byteRange:`${(Jn+Bn)/2}-${(Jn+Bn+127)/2}`,hexData:Wi.match(/.{8}/g)?.join(" ")||Wi,description:"Ed25519 signature of public key, timestamp, and appdata",fields:[{bits:"0-511",name:"Ed25519 Signature",value:`${Wi.slice(0,16)}...${Wi.slice(-16)}`,binary:"64 bytes (512 bits)"}]}),Bn+=128}if(cn.length>Bn){const Wi=cn.slice(Bn);De(Dt,Wi,Jn+Bn)}}else Dt.push({name:"ADVERT AppData (Partial)",byteRange:`${Jn/2}-${Jn/2+ni-1}`,hexData:cn.match(/.{2}/g)?.join(" ")||cn,description:`Partial ADVERT data - appears to be just AppData portion (${ni} bytes)`,fields:[{bits:`0-${ni*8-1}`,name:"Partial Data",value:`${ni} bytes - attempting to decode as AppData`,binary:`${ni} bytes (${ni*8} bits)`}]}),De(Dt,cn,Jn)}catch(Bn){Dt.push({name:"ADVERT Parse Error",byteRange:"N/A",hexData:cn.slice(0,32)+"...",description:"Failed to parse ADVERT payload structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${Bn instanceof Error?Bn.message:"Unknown error"}`,binary:"Invalid"}]})}},De=(Dt,cn,Jn)=>{try{const Bn=cn.length/2;Dt.push({name:"AppData",byteRange:`${Jn/2}-${Jn/2+Bn-1}`,hexData:cn.match(/.{2}/g)?.join(" ")||cn,description:`Node advertisement application data (${Bn} bytes)`,fields:[{bits:`0-${Bn*8-1}`,name:"Application Data",value:`${Bn} bytes (contains flags, location, name, etc.)`,binary:`${Bn} bytes (${Bn*8} bits)`}]});let ni=0;if(cn.length>=2){const Wi=parseInt(cn.slice(ni,ni+2),16),Un=[],qr=!!(Wi&16),Di=!!(Wi&32),Fi=!!(Wi&64),Pi=!!(Wi&128);if(Wi&1&&Un.push("is chat node"),Wi&2&&Un.push("is repeater"),Wi&4&&Un.push("is room server"),Wi&8&&Un.push("is sensor"),qr&&Un.push("has location"),Di&&Un.push("has feature 1"),Fi&&Un.push("has feature 2"),Pi&&Un.push("has name"),Dt.push({name:"AppData Flags",byteRange:`${(Jn+ni)/2}`,hexData:`0x${cn.slice(ni,ni+2)}`,description:"Flags indicating which optional fields are present",fields:[{bits:"0-7",name:"Flags",value:Un.join(", ")||"none",binary:Wi.toString(2).padStart(8,"0")}]}),ni+=2,qr&&cn.length>=ni+16){const bi=cn.slice(ni,ni+8),Yi=[];for(let xl=6;xl>=0;xl-=2)Yi.push(bi.slice(xl,xl+2));const Ca=parseInt(Yi.join(""),16),Ni=Ca>2147483647?Ca-4294967296:Ca,si=Ni/1e6,Ma=cn.slice(ni+8,ni+16),zo=[];for(let xl=6;xl>=0;xl-=2)zo.push(Ma.slice(xl,xl+2));const ho=parseInt(zo.join(""),16),mo=ho>2147483647?ho-4294967296:ho,Ts=mo/1e6;Dt.push({name:"Location Data",byteRange:`${(Jn+ni)/2}-${(Jn+ni+15)/2}`,hexData:`${bi.match(/.{2}/g)?.join(" ")||bi} ${Ma.match(/.{2}/g)?.join(" ")||Ma}`,description:"GPS coordinates (latitude and longitude)",fields:[{bits:"0-31",name:"Latitude",value:`${si.toFixed(6)}° (raw: ${Ni})`,binary:Ni.toString(2).padStart(32,"0")},{bits:"32-63",name:"Longitude",value:`${Ts.toFixed(6)}° (raw: ${mo})`,binary:mo.toString(2).padStart(32,"0")}]}),ni+=16}if(Di&&cn.length>=ni+4){const bi=cn.slice(ni,ni+4),Yi=parseInt(bi,16);Dt.push({name:"Feature 1",byteRange:`${(Jn+ni)/2}-${(Jn+ni+3)/2}`,hexData:bi.match(/.{2}/g)?.join(" ")||bi,description:"Reserved feature 1 (2 bytes)",fields:[{bits:"0-15",name:"Feature 1 Value",value:`${Yi}`,binary:Yi.toString(2).padStart(16,"0")}]}),ni+=4}if(Fi&&cn.length>=ni+4){const bi=cn.slice(ni,ni+4),Yi=parseInt(bi,16);Dt.push({name:"Feature 2",byteRange:`${(Jn+ni)/2}-${(Jn+ni+3)/2}`,hexData:bi.match(/.{2}/g)?.join(" ")||bi,description:"Reserved feature 2 (2 bytes)",fields:[{bits:"0-15",name:"Feature 2 Value",value:`${Yi}`,binary:Yi.toString(2).padStart(16,"0")}]}),ni+=4}if(Pi&&cn.length>ni){const bi=cn.slice(ni),Yi=bi.match(/.{2}/g)||[],Ca=Yi.map(Ni=>{const si=parseInt(Ni,16);return si>=32&&si<=126?String.fromCharCode(si):"."}).join("").replace(/\.+$/,"");Dt.push({name:"Node Name",byteRange:`${(Jn+ni)/2}-${(Jn+cn.length-1)/2}`,hexData:bi.match(/.{2}/g)?.join(" ")||bi,description:`Node name string (${Yi.length} bytes)`,fields:[{bits:`0-${Yi.length*8-1}`,name:"Node Name",value:`"${Ca}"`,binary:`ASCII text (${Yi.length} bytes)`}]})}}}catch(Bn){Dt.push({name:"AppData Parse Error",byteRange:"N/A",hexData:cn.slice(0,Math.min(32,cn.length)),description:"Failed to parse AppData structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${Bn instanceof Error?Bn.message:"Unknown error"}`,binary:"Invalid"}]})}},er=Dt=>{if(!Dt)return[];if(Array.isArray(Dt))return Dt;if(typeof Dt=="string")try{return JSON.parse(Dt)}catch{return[]}return[]},pr=Dt=>{const cn=[];if(!Dt)return cn;try{const Jn=Dt.raw_packet;if(Jn){const Bn=Jn.replace(/\s+/g,"").toUpperCase();let ni=0;if(Bn.length>=2){const Wi=Bn.slice(ni,ni+2),Un=parseInt(Wi,16),qr=Un&3,Di=(Un&60)>>2,Fi=(Un&192)>>6,Pi={0:"Transport Flood",1:"Flood",2:"Direct",3:"Transport Direct"},bi={0:"REQ",1:"RESPONSE",2:"TXT_MSG",3:"ACK",4:"ADVERT",5:"GRP_TXT",6:"GRP_DATA",7:"ANON_REQ",8:"PATH",9:"TRACE",10:"MULTIPART",15:"RAW_CUSTOM"};if(cn.push({name:"Header",byteRange:"0",hexData:`0x${Wi}`,description:"Contains routing type, payload type, and payload version",fields:[{bits:"0-1",name:"Route Type",value:Pi[qr]||"Unknown",binary:qr.toString(2).padStart(2,"0")},{bits:"2-5",name:"Payload Type",value:bi[Di]||"Unknown",binary:Di.toString(2).padStart(4,"0")},{bits:"6-7",name:"Version",value:Fi.toString(),binary:Fi.toString(2).padStart(2,"0")}]}),ni+=2,(qr===0||qr===3)&&Bn.length>=ni+8){const Ca=Bn.slice(ni,ni+8),Ni=parseInt(Ca.slice(0,4),16),si=parseInt(Ca.slice(4,8),16);cn.push({name:"Transport Codes",byteRange:"1-4",hexData:`${Ca.slice(0,4)} ${Ca.slice(4,8)}`,description:"2x 16-bit transport codes for routing optimization",fields:[{bits:"0-15",name:"Code 1",value:Ni.toString(),binary:Ni.toString(2).padStart(16,"0")},{bits:"16-31",name:"Code 2",value:si.toString(),binary:si.toString(2).padStart(16,"0")}]}),ni+=8}if(Bn.length>=ni+2){const Ca=Bn.slice(ni,ni+2),Ni=parseInt(Ca,16);if(cn.push({name:"Path Length",byteRange:`${ni/2}`,hexData:`0x${Ca}`,description:`${Ni} bytes of path data`,fields:[{bits:"0-7",name:"Path Length",value:`${Ni} bytes`,binary:Ni.toString(2).padStart(8,"0")}]}),ni+=2,Ni>0&&Bn.length>=ni+Ni*2){const si=Bn.slice(ni,ni+Ni*2);cn.push({name:"Path Data",byteRange:`${ni/2}-${(ni+Ni*2-2)/2}`,hexData:si.match(/.{2}/g)?.join(" ")||si,description:"Routing path information",fields:[{bits:`0-${Ni*8-1}`,name:"Route Path",value:`${Ni} bytes of routing data`,binary:`${Ni} bytes (${Ni*8} bits)`}]}),ni+=Ni*2}}if(Bn.length>ni){const Ca=Bn.slice(ni),Ni=Ca.length/2;Di===4?he(cn,Ca,ni):cn.push({name:"Payload Data",byteRange:`${ni/2}-${ni/2+Ni-1}`,hexData:Ca.match(/.{2}/g)?.join(" ")||Ca,description:"Application data content",fields:[{bits:`0-${Ni*8-1}`,name:"Application Data",value:`${Ni} bytes`,binary:`${Ni} bytes (${Ni*8} bits)`}]})}}}else{if(Dt.header){const Bn=Dt.header.replace(/0x/gi,"").replace(/\s+/g,"").toUpperCase(),ni=parseInt(Bn,16),Wi=ni&3,Un=(ni&60)>>2,qr=(ni&192)>>6,Di={0:"Transport Flood",1:"Flood",2:"Direct",3:"Transport Direct"},Fi={0:"REQ",1:"RESPONSE",2:"TXT_MSG",3:"ACK",4:"ADVERT",5:"GRP_TXT",6:"GRP_DATA",7:"ANON_REQ",8:"PATH",9:"TRACE",10:"MULTIPART",15:"RAW_CUSTOM"};cn.push({name:"Header",byteRange:"0",hexData:`0x${Bn}`,description:"Contains routing type, payload type, and payload version",fields:[{bits:"0-1",name:"Route Type",value:Di[Wi]||"Unknown",binary:Wi.toString(2).padStart(2,"0")},{bits:"2-5",name:"Payload Type",value:Fi[Un]||"Unknown",binary:Un.toString(2).padStart(4,"0")},{bits:"6-7",name:"Version",value:qr.toString(),binary:qr.toString(2).padStart(2,"0")}]}),Dt.transport_codes&&cn.push({name:"Transport Codes",byteRange:"1-4",hexData:Dt.transport_codes,description:"2x 16-bit transport codes for routing optimization",fields:[{bits:"0-31",name:"Transport Codes",value:Dt.transport_codes,binary:"Available in separate field"}]}),Dt.original_path&&Dt.original_path.length>0&&cn.push({name:"Original Path",byteRange:"?",hexData:Dt.original_path.join(" "),description:`Original routing path (${Dt.original_path.length} nodes)`,fields:[{bits:"0-?",name:"Path Nodes",value:`${Dt.original_path.length} nodes`,binary:"Available as node list"}]}),Dt.forwarded_path&&Dt.forwarded_path.length>0&&cn.push({name:"Forwarded Path",byteRange:"?",hexData:Dt.forwarded_path.join(" "),description:`Forwarded routing path (${Dt.forwarded_path.length} nodes)`,fields:[{bits:"0-?",name:"Path Nodes",value:`${Dt.forwarded_path.length} nodes`,binary:"Available as node list"}]})}if(Dt.payload){const Bn=Dt.payload.replace(/\s+/g,"").toUpperCase(),ni=Bn.length/2;Dt.type===4?he(cn,Bn,0):cn.push({name:"Payload Data",byteRange:`0-${ni-1}`,hexData:Bn.match(/.{2}/g)?.join(" ")||Bn,description:`Application data content (${ni} bytes)`,fields:[{bits:`0-${ni*8-1}`,name:"Application Data",value:`${ni} bytes`,binary:`${ni} bytes (${ni*8} bits)`}]})}}}catch{cn.push({name:"Parse Error",byteRange:"N/A",hexData:"Error",description:"Unable to parse packet structure",fields:[{bits:"N/A",name:"Error",value:"Parse failed",binary:"Invalid"}]})}return cn},Mr=Dt=>Dt>=10?"text-green-400":Dt>=5?"text-cyan-400":Dt>=0?"text-yellow-400":"text-red-400",Tr=(Dt,cn=8)=>{const Bn={7:-7.5,8:-10,9:-12.5,10:-15,11:-17.5,12:-20}[cn]||-10;let ni,Wi;return Dt>=Bn+10?(ni=4,Wi="signal-excellent"):Dt>=Bn+5?(ni=3,Wi="signal-good"):Dt>=Bn?(ni=2,Wi="signal-fair"):(ni=1,Wi="signal-poor"),{level:ni,className:Wi}},Vr=Dt=>{Dt.key==="Escape"&&B("close")},mn=Dt=>{Dt.target===Dt.currentTarget&&B("close")};return(Dt,cn)=>(_i(),Z0(XA,{to:"body"},[Wl($z,{name:"modal",appear:""},{default:ew(()=>[Dt.isOpen&&Dt.packet?(_i(),zi("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4",onClick:mn,onKeydown:Vr,tabindex:"0"},[cn[36]||(cn[36]=Ee("div",{class:"absolute inset-0 bg-black/60 backdrop-blur-md"},null,-1)),Ee("div",Snt,[Ee("div",Ent,[Ee("div",Cnt,[Ee("div",null,[cn[2]||(cn[2]=Ee("h2",{class:"text-2xl font-bold text-white mb-1"},"Packet Details",-1)),Ee("p",Lnt,Qi(Ot(Dt.packet.type))+" - "+Qi(jt(Dt.packet.route)),1)]),Ee("button",{onClick:cn[0]||(cn[0]=Jn=>B("close")),class:"w-8 h-8 flex items-center justify-center rounded-full bg-white/10 hover:bg-white/20 transition-colors duration-200 text-white/70 hover:text-white"},cn[3]||(cn[3]=[Ee("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[Ee("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]))]),Ee("div",Pnt,[Ee("div",Int,[cn[10]||(cn[10]=Ee("h3",{class:"text-lg font-semibold text-white mb-4 flex items-center"},[Ee("div",{class:"w-2 h-2 rounded-full bg-cyan-400 mr-3"}),Qu(" Basic Information ")],-1)),Ee("div",znt,[Ee("div",Ont,[Ee("div",Dnt,[Ee("div",Fnt,[cn[4]||(cn[4]=Ee("span",{class:"text-white/70 text-sm"},"Timestamp",-1)),Ee("span",Rnt,Qi(K(Dt.packet.timestamp)),1)]),Ee("div",Bnt,[cn[5]||(cn[5]=Ee("span",{class:"text-white/70 text-sm"},"Packet Hash",-1)),Ee("span",Nnt,Qi(Dt.packet.packet_hash),1)]),Dt.packet.header?(_i(),zi("div",jnt,[cn[6]||(cn[6]=Ee("span",{class:"text-white/70 text-sm"},"Header",-1)),Ee("span",Unt,Qi(Dt.packet.header),1)])):is("",!0)]),Ee("div",Vnt,[Ee("div",Hnt,[cn[7]||(cn[7]=Ee("span",{class:"text-white/70 text-sm"},"Type",-1)),Ee("span",Wnt,Qi(Dt.packet.type)+" ("+Qi(Ot(Dt.packet.type))+")",1)]),Ee("div",qnt,[cn[8]||(cn[8]=Ee("span",{class:"text-white/70 text-sm"},"Route",-1)),Ee("span",$nt,Qi(Dt.packet.route)+" ("+Qi(jt(Dt.packet.route))+")",1)]),Ee("div",Znt,[cn[9]||(cn[9]=Ee("span",{class:"text-white/70 text-sm"},"Status",-1)),Ee("span",{class:jo(["font-semibold",pt(Dt.packet)])},Qi(_t(Dt.packet)),3)])])])])]),Ee("div",Gnt,[cn[16]||(cn[16]=Ee("h3",{class:"text-lg font-semibold text-white mb-4 flex items-center"},[Ee("div",{class:"w-2 h-2 rounded-full bg-orange-400 mr-3"}),Qu(" Payload Data ")],-1)),Ee("div",Ynt,[Ee("div",Knt,[Ee("div",Xnt,[cn[11]||(cn[11]=Ee("span",{class:"text-white/70 text-sm"},"Payload Length",-1)),Ee("span",Jnt,Qi(Dt.packet.payload_length||Dt.packet.length)+" bytes",1)]),Dt.packet.payload?(_i(),zi("div",Qnt,[cn[14]||(cn[14]=Ee("div",{class:"text-white/70 text-sm mb-3"},"Payload Analysis",-1)),Ee("div",tit,[cn[12]||(cn[12]=Ee("div",{class:"text-white/70 text-xs mb-2 font-semibold"},"Raw Hex Data",-1)),Ee("div",eit,[Ee("pre",rit,Qi(te(Dt.packet.payload)),1)])]),(_i(!0),zi(Pu,null,Jh(pr(Dt.packet).filter(Jn=>!Jn.name.includes("Parse Error")),(Jn,Bn)=>(_i(),zi("div",{key:Bn,class:"mb-4"},[Ee("div",nit,[Ee("h4",iit,Qi(Jn.name),1),Ee("span",ait,"Bytes "+Qi(Jn.byteRange),1)]),Ee("div",oit,[Ee("div",sit,Qi(Jn.hexData),1)]),Ee("div",lit,[cn[13]||(cn[13]=Ee("div",{class:"grid grid-cols-4 gap-4 p-3 bg-white/10 text-white/70 text-xs font-semibold uppercase tracking-wide"},[Ee("div",null,"Bits"),Ee("div",null,"Field"),Ee("div",null,"Value"),Ee("div",null,"Binary")],-1)),(_i(!0),zi(Pu,null,Jh(Jn.fields,(ni,Wi)=>(_i(),zi("div",{key:Wi,class:"grid grid-cols-4 gap-4 p-3 border-b border-white/5 last:border-b-0 hover:bg-white/5 transition-colors"},[Ee("div",uit,Qi(ni.bits),1),Ee("div",cit,Qi(ni.name),1),Ee("div",hit,Qi(ni.value),1),Ee("div",fit,Qi(ni.binary),1)]))),128))]),Jn.description?(_i(),zi("div",dit,Qi(Jn.description),1)):is("",!0)]))),128))])):(_i(),zi("div",pit,cn[15]||(cn[15]=[Ee("span",{class:"text-white/70 text-sm"},"Payload:",-1),Ee("span",{class:"text-white/50 ml-2"},"None",-1)])))])])]),Ee("div",mit,[cn[24]||(cn[24]=Ee("h3",{class:"text-lg font-semibold text-white mb-4 flex items-center"},[Ee("div",{class:"w-2 h-2 rounded-full bg-purple-400 mr-3"}),Qu(" Path Information ")],-1)),Ee("div",git,[Ee("div",vit,[Ee("div",yit,[Ee("div",xit,[cn[17]||(cn[17]=Ee("span",{class:"text-white/70 text-sm"},"Source Hash",-1)),Ee("span",{class:jo(["text-white font-mono text-xs",E.localHash&&Dt.packet.src_hash===E.localHash?"bg-cyan-400/20 text-cyan-300 px-1 rounded":""])},Qi(Dt.packet.src_hash||"Unknown"),3)]),Ee("div",_it,[cn[18]||(cn[18]=Ee("span",{class:"text-white/70 text-sm"},"Destination Hash",-1)),Ee("span",{class:jo(["text-white font-mono text-xs",E.localHash&&Dt.packet.dst_hash===E.localHash?"bg-cyan-400/20 text-cyan-300 px-1 rounded":""])},Qi(Dt.packet.dst_hash||"Broadcast"),3)])]),er(Dt.packet.original_path).length>0?(_i(),zi("div",bit,[cn[20]||(cn[20]=Ee("div",{class:"text-white/70 text-sm mb-2"},"Original Path",-1)),Ee("div",wit,[Ee("div",kit,[(_i(!0),zi(Pu,null,Jh(er(Dt.packet.original_path),(Jn,Bn)=>(_i(),zi("div",{key:Bn,class:"flex items-center"},[Ee("div",Tit,[Ee("div",Ait,[Ee("div",Mit,Qi(Jn.length<=2?Jn.toUpperCase():Jn.slice(0,2).toUpperCase()),1)]),Ee("div",Sit," Node: "+Qi(Jn),1)]),Bn0?(_i(),zi("div",Cit,[Ee("div",Lit,[cn[22]||(cn[22]=Qu(" Forwarded Path ",-1)),JSON.stringify(er(Dt.packet.original_path))!==JSON.stringify(er(Dt.packet.forwarded_path))?(_i(),zi("svg",Pit,cn[21]||(cn[21]=[Ee("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)]))):is("",!0),JSON.stringify(er(Dt.packet.original_path))!==JSON.stringify(er(Dt.packet.forwarded_path))?(_i(),zi("span",Iit,"(Modified)")):is("",!0)]),Ee("div",zit,[Ee("div",Oit,[(_i(!0),zi(Pu,null,Jh(er(Dt.packet.forwarded_path),(Jn,Bn)=>(_i(),zi("div",{key:Bn,class:"flex items-center"},[Ee("div",Dit,[Ee("div",{class:jo(["relative px-3 py-2 bg-gradient-to-br from-orange-500/20 to-yellow-500/20 border border-orange-400/40 rounded-lg transform transition-all hover:scale-105",E.localHash&&Jn===E.localHash?"bg-gradient-to-br from-yellow-400/30 to-orange-400/30 border-yellow-300 shadow-yellow-400/20 shadow-lg":"hover:border-orange-400/60"])},[Ee("div",{class:jo(["font-mono text-xs font-semibold",E.localHash&&Jn===E.localHash?"text-yellow-200":"text-white/90"])},Qi(Jn.slice(0,2).toUpperCase()),3),E.localHash&&Jn===E.localHash?(_i(),zi("div",Fit)):is("",!0)],2),Ee("div",Rit,Qi(Jn),1)]),BnEe("div",{key:Jn,class:jo(["w-2 h-6 rounded-sm transition-all duration-300",Jn<=Tr(Dt.packet.snr).level?{"signal-excellent":"bg-green-400","signal-good":"bg-cyan-400","signal-fair":"bg-yellow-400","signal-poor":"bg-red-400"}[Tr(Dt.packet.snr).className]:"bg-white/10"])},null,2)),64))]),Ee("span",Kit,Qi(Tr(Dt.packet.snr).className.replace("signal-","")),1)])]),Dt.packet.is_trace&&Dt.packet.path_snr_details&&Dt.packet.path_snr_details.length>0?(_i(),zi("div",Xit,[Ee("div",Jit,"Path SNR Details ("+Qi(Dt.packet.path_snr_details.length)+" hops)",1),Ee("div",Qit,[(_i(!0),zi(Pu,null,Jh(Dt.packet.path_snr_details,(Jn,Bn)=>(_i(),zi("div",{key:Bn,class:"flex items-center justify-between p-2 glass-card bg-black/20 rounded-[8px]"},[Ee("div",tat,[Ee("span",eat,Qi(Bn+1)+".",1),Ee("span",{class:jo(["font-mono text-xs text-white",E.localHash&&Jn.hash===E.localHash?"bg-cyan-400/20 text-cyan-300 px-1 rounded":""])},Qi(Jn.hash),3)]),Ee("span",{class:jo(["text-sm font-bold",Mr(Jn.snr_db)])},Qi(Jn.snr_db.toFixed(1))+"dB ",3)]))),128))])])):is("",!0),Ee("div",rat,[Ee("div",nat,[Ee("div",iat,[cn[31]||(cn[31]=Ee("span",{class:"text-white/70 text-sm"},"TX Delay",-1)),Ee("span",aat,Qi(Number(Dt.packet.tx_delay_ms)>0?Number(Dt.packet.tx_delay_ms).toFixed(1)+"ms":"-"),1)]),Ee("div",oat,[cn[32]||(cn[32]=Ee("span",{class:"text-white/70 text-sm"},"Transmitted",-1)),Ee("span",{class:jo(Dt.packet.transmitted?"text-green-400":"text-red-400")},Qi(Dt.packet.transmitted?"Yes":"No"),3)])]),Ee("div",sat,[Ee("div",lat,[cn[33]||(cn[33]=Ee("span",{class:"text-white/70 text-sm"},"Is Duplicate",-1)),Ee("span",{class:jo(Dt.packet.is_duplicate?"text-amber-400":"text-white/60")},Qi(Dt.packet.is_duplicate?"Yes":"No"),3)]),Dt.packet.drop_reason?(_i(),zi("div",uat,[cn[34]||(cn[34]=Ee("span",{class:"text-white/70 text-sm"},"Drop Reason",-1)),Ee("span",cat,Qi(Dt.packet.drop_reason),1)])):is("",!0)])])])])]),Ee("div",hat,[Ee("button",{onClick:cn[1]||(cn[1]=Jn=>B("close")),class:"px-6 py-2 bg-gradient-to-r from-cyan-500/20 to-cyan-400/20 hover:from-cyan-500/30 hover:to-cyan-400/30 border border-cyan-400/30 rounded-[10px] text-white transition-all duration-200 backdrop-blur-sm"}," Close ")])])])],32)):is("",!0)]),_:1})]))}}),dat=ld(fat,[["__scopeId","data-v-3b73bfd6"]]),pat={class:"glass-card rounded-[20px] p-6"},mat={class:"flex justify-between items-center mb-6"},gat={class:"flex items-center gap-3"},vat={class:"text-dark-text text-sm"},yat=["title"],xat={key:1,class:"text-primary text-sm"},_at={key:2,class:"text-accent-red text-sm"},bat={class:"flex items-center gap-3"},wat={class:"flex flex-col"},kat=["value"],Tat={class:"flex flex-col"},Aat=["value"],Mat={class:"flex flex-col"},Sat={class:"flex flex-col"},Eat=["disabled"],Cat={class:"space-y-4 overflow-hidden"},Lat=["onClick"],Pat={class:"grid grid-cols-12 gap-2 items-center"},Iat={class:"col-span-1 text-white text-sm"},zat={class:"col-span-1 flex items-center gap-2"},Oat={class:"text-white text-xs"},Dat={class:"col-span-2"},Fat={class:"col-span-1 text-white text-xs"},Rat={class:"col-span-2"},Bat={class:"space-y-1"},Nat={class:"inline-block px-2 py-0.5 rounded bg-[#588187] text-accent-cyan text-xs"},jat={class:"col-span-1 text-white text-xs"},Uat={class:"col-span-1 text-white text-xs"},Vat={class:"col-span-1 text-white text-xs"},Hat={class:"col-span-1 text-white text-xs"},Wat={class:"col-span-1"},qat={key:0,class:"text-accent-red text-[8px] italic truncate"},$at={key:0,class:"flex justify-between items-center mt-6 pt-4 border-t border-dark-border"},Zat={class:"flex items-center gap-4"},Gat={class:"text-dark-text text-sm"},Yat={key:0,class:"flex items-center gap-2"},Kat=["disabled"],Xat={class:"text-dark-text text-xs"},Jat={class:"flex items-center gap-2"},Qat=["disabled"],tot={class:"flex items-center gap-1"},eot={key:1,class:"text-dark-text text-sm px-2"},rot=["onClick"],not={key:2,class:"text-dark-text text-sm px-2"},iot=["disabled"],aot={key:1,class:"flex justify-center mt-6 pt-4 border-t border-dark-border"},oot={class:"flex items-center gap-4"},sot={class:"text-dark-text text-sm"},lot={class:"text-dark-text text-xs"},uot={key:2,class:"flex justify-center mt-6 pt-4 border-t border-dark-border"},i2=10,ly=1e3,cot=Dc({name:"PacketTable",__name:"PacketTable",setup(d){const s=sw(),E=Ga(1),B=Ga(null),K=Ga(100),pt=Ga(!1),_t=Ga(null),Ot=Ga(!1),jt=zo=>{_t.value=zo,Ot.value=!0},te=()=>{Ot.value=!1,_t.value=null},he=Ga("all"),De=Ga("all"),er=Ga(!1),pr=Ga(null),Mr=["all","0","1","2","3","4","5","6","7","8","9","10","11"],Tr=["all","1","2"],Vr=$o(()=>{let zo=s.recentPackets;if(he.value!=="all"){const ho=parseInt(he.value);zo=zo.filter(mo=>mo.type===ho)}if(De.value!=="all"){const ho=parseInt(De.value);zo=zo.filter(mo=>mo.route===ho)}return er.value&&pr.value!==null&&(zo=zo.filter(ho=>ho.timestamp>=pr.value)),zo}),mn=$o(()=>{const zo=(E.value-1)*i2,ho=zo+i2;return Vr.value.slice(zo,ho)}),Dt=$o(()=>Math.ceil(Vr.value.length/i2)),cn=$o(()=>E.value===Dt.value),Jn=$o(()=>s.recentPackets.length>=K.value&&K.valuecn.value&&Jn.value&&!pt.value),ni=zo=>new Date(zo*1e3).toLocaleTimeString("en-US",{hour12:!1}),Wi=zo=>({0:"REQ",1:"RESPONSE",2:"TXT_MSG",3:"ACK",4:"ADVERT",5:"GRP_TXT",6:"GRP_DATA",7:"ANON_REQ",8:"PATH",9:"TRACE",10:"MULTI_PART",11:"CONTROL"})[zo]||`TYPE_${zo}`,Un=zo=>({0:"T-Flood",1:"Flood",2:"Direct",3:"T-Direct"})[zo]||`Route ${zo}`,qr=zo=>zo.transmitted?"text-accent-green":"text-primary",Di=zo=>zo.drop_reason?"Dropped":zo.transmitted?"Forward":"Received",Fi=zo=>zo===1?"bg-[#223231] text-accent-cyan":"bg-secondary/30 text-secondary",Pi=zo=>({0:"bg-primary",1:"bg-accent-green",2:"bg-secondary",3:"bg-accent-purple",4:"bg-accent-red",5:"bg-accent-cyan",6:"bg-primary",7:"bg-accent-purple",8:"bg-accent-green",9:"bg-secondary"})[zo]||"bg-gray-500",bi=zo=>({0:"border-l-primary",1:"border-l-accent-green",2:"border-l-secondary",3:"border-l-accent-purple",4:"border-l-accent-red",5:"border-l-accent-cyan",6:"border-l-primary",7:"border-l-accent-purple",8:"border-l-accent-green",9:"border-l-secondary"})[zo]||"border-l-gray-500",Yi=()=>{he.value="all",De.value="all",er.value=!1,pr.value=null,E.value=1},Ca=()=>{er.value?(er.value=!1,pr.value=null):(er.value=!0,pr.value=Date.now()/1e3),E.value=1},Ni=$o(()=>pr.value?new Date(pr.value*1e3).toLocaleTimeString():""),si=async zo=>{try{const ho=zo||K.value;await s.fetchRecentPackets({limit:ho})}catch(ho){console.error("Error fetching packet data:",ho)}},Ma=async()=>{if(!(pt.value||K.value>=ly)){pt.value=!0;try{const zo=Math.min(K.value+200,ly);K.value=zo,await si(zo)}catch(zo){console.error("Error loading more records:",zo)}finally{pt.value=!1}}};return bp(async()=>{await si(),B.value=window.setInterval(si,5e3)}),gg(()=>{B.value&&clearInterval(B.value)}),(zo,ho)=>(_i(),zi(Pu,null,[Ee("div",pat,[Ee("div",mat,[Ee("div",gat,[ho[6]||(ho[6]=Ee("h3",{class:"text-white text-xl font-semibold"},"Recent Packets",-1)),Ee("span",vat," ("+Qi(Vr.value.length)+" of "+Qi(zl(s).recentPackets.length)+") ",1),er.value?(_i(),zi("span",{key:0,class:"text-primary text-sm bg-primary/10 px-2 py-1 rounded-md border border-primary/20",title:`Filter activated at ${Ni.value}`}," Live Mode (since "+Qi(Ni.value)+") ",9,yat)):is("",!0),zl(s).isLoading?(_i(),zi("span",xat,"Loading...")):is("",!0),zl(s).error?(_i(),zi("span",_at,Qi(zl(s).error),1)):is("",!0)]),Ee("div",bat,[Ee("div",wat,[ho[7]||(ho[7]=Ee("label",{class:"text-dark-text text-xs mb-1"},"Type",-1)),Gp(Ee("select",{"onUpdate:modelValue":ho[0]||(ho[0]=mo=>he.value=mo),class:"glass-card border border-dark-border rounded-[10px] px-3 py-2 text-white text-sm focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary/20 transition-all duration-200 min-w-[120px] cursor-pointer hover:border-primary/50"},[(_i(),zi(Pu,null,Jh(Mr,mo=>Ee("option",{key:mo,value:mo,class:"bg-[#1A1E1F] text-white"},Qi(mo==="all"?"All Types":`Type ${mo} (${Wi(parseInt(mo))})`),9,kat)),64))],512),[[pA,he.value]])]),Ee("div",Tat,[ho[8]||(ho[8]=Ee("label",{class:"text-dark-text text-xs mb-1"},"Route",-1)),Gp(Ee("select",{"onUpdate:modelValue":ho[1]||(ho[1]=mo=>De.value=mo),class:"glass-card border border-dark-border rounded-[10px] px-3 py-2 text-white text-sm focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary/20 transition-all duration-200 min-w-[120px] cursor-pointer hover:border-primary/50"},[(_i(),zi(Pu,null,Jh(Tr,mo=>Ee("option",{key:mo,value:mo,class:"bg-[#1A1E1F] text-white"},Qi(mo==="all"?"All Routes":`Route ${mo} (${Un(parseInt(mo))})`),9,Aat)),64))],512),[[pA,De.value]])]),Ee("div",Mat,[ho[9]||(ho[9]=Ee("label",{class:"text-dark-text text-xs mb-1"},"Filter",-1)),Ee("button",{onClick:Ca,class:jo(["glass-card border rounded-[10px] px-4 py-2 text-sm transition-all duration-200 focus:outline-none focus:ring-1 focus:ring-primary/20 min-w-[120px]",{"border-primary bg-primary/10 text-primary":er.value,"border-dark-border text-dark-text hover:border-primary hover:text-white hover:bg-primary/5":!er.value}])},Qi(er.value?"New Only":"Show New"),3)]),Ee("div",Sat,[ho[10]||(ho[10]=Ee("label",{class:"text-transparent text-xs mb-1"},".",-1)),Ee("button",{onClick:Yi,class:jo(["glass-card border border-dark-border hover:border-primary rounded-[10px] px-4 py-2 text-dark-text hover:text-white text-sm transition-all duration-200 focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary/20",{"opacity-50 cursor-not-allowed hover:border-dark-border hover:text-dark-text":he.value==="all"&&De.value==="all"&&!er.value,"hover:bg-primary/10":he.value!=="all"||De.value!=="all"||er.value}]),disabled:he.value==="all"&&De.value==="all"&&!er.value}," Reset ",10,Eat)])])]),ho[14]||(ho[14]=$f('TimeTypeRouteLENPath/HashesRSSISNRScoreTX DelayStatus',1)),Ee("div",Cat,[Wl(MK,{name:"packet-list",tag:"div",class:"space-y-4",appear:""},{default:ew(()=>[(_i(!0),zi(Pu,null,Jh(mn.value,(mo,Ts)=>(_i(),zi("div",{key:`${mo.packet_hash}_${mo.timestamp}_${Ts}`,class:jo(["packet-row border-b border-dark-border/50 pb-4 hover:bg-white/5 transition-colors duration-200 cursor-pointer rounded-[10px] p-2 border-l-4",bi(mo.type)]),onClick:xl=>jt(mo)},[Ee("div",Pat,[Ee("div",Iat,Qi(ni(mo.timestamp)),1),Ee("div",zat,[Ee("div",{class:jo(["w-2 h-2 rounded-full",Pi(mo.type)])},null,2),Ee("span",Oat,Qi(Wi(mo.type)),1)]),Ee("div",Dat,[Ee("span",{class:jo(["inline-block px-2 py-1 rounded text-xs font-medium",Fi(mo.route)])},Qi(Un(mo.route)),3)]),Ee("div",Fat,Qi(mo.length)+"B",1),Ee("div",Rat,[Ee("div",Bat,[Ee("span",Nat,Qi(mo.src_hash?.slice(-4)||"????")+" → "+Qi(mo.dst_hash?.slice(-4)||"????"),1)])]),Ee("div",jat,Qi(mo.rssi.toFixed(0)),1),Ee("div",Uat,Qi(mo.snr.toFixed(1))+"dB",1),Ee("div",Vat,Qi(mo.score.toFixed(2)),1),Ee("div",Hat,Qi(Number(mo.tx_delay_ms)>0?Number(mo.tx_delay_ms).toFixed(1)+"ms":""),1),Ee("div",Wat,[Ee("div",null,[Ee("span",{class:jo(["text-xs font-medium",qr(mo)])},Qi(Di(mo)),3),mo.drop_reason?(_i(),zi("p",qat,Qi(mo.drop_reason),1)):is("",!0)])])])],10,Lat))),128))]),_:1})]),Dt.value>1?(_i(),zi("div",$at,[Ee("div",Zat,[Ee("span",Gat," Showing "+Qi((E.value-1)*i2+1)+" - "+Qi(Math.min(E.value*i2,Vr.value.length))+" of "+Qi(Vr.value.length)+" packets ",1),Bn.value?(_i(),zi("div",Yat,[ho[11]||(ho[11]=Ee("span",{class:"text-dark-text text-xs"},"•",-1)),Ee("button",{onClick:Ma,disabled:pt.value,class:jo(["glass-card border border-primary rounded-[8px] px-3 py-1.5 text-xs transition-all duration-200 focus:outline-none focus:ring-1 focus:ring-primary/20 hover:bg-primary/5",{"text-primary border-primary cursor-pointer":!pt.value,"text-dark-text border-dark-border cursor-not-allowed opacity-50":pt.value}])},Qi(pt.value?"Loading...":`Load ${Math.min(200,ly-K.value)} more`),11,Kat),Ee("span",Xat,"("+Qi(K.value)+"/"+Qi(ly)+" max)",1)])):is("",!0)]),Ee("div",Jat,[Ee("button",{onClick:ho[2]||(ho[2]=mo=>E.value=E.value-1),disabled:E.value<=1,class:jo(["glass-card border rounded-[10px] px-3 py-2 text-sm transition-all duration-200 focus:outline-none focus:ring-1 focus:ring-primary/20",{"border-dark-border text-dark-text cursor-not-allowed opacity-50":E.value<=1,"border-dark-border text-white hover:border-primary hover:text-primary hover:bg-primary/5":E.value>1}])}," Previous ",10,Qat),Ee("div",tot,[E.value>3?(_i(),zi("button",{key:0,onClick:ho[3]||(ho[3]=mo=>E.value=1),class:"glass-card border border-dark-border hover:border-primary rounded-[8px] px-3 py-2 text-sm text-white hover:text-primary hover:bg-primary/5 transition-all duration-200 focus:outline-none focus:ring-1 focus:ring-primary/20"}," 1 ")):is("",!0),E.value>4?(_i(),zi("span",eot,"...")):is("",!0),(_i(!0),zi(Pu,null,Jh(Array.from({length:Math.min(5,Dt.value)},(mo,Ts)=>Math.max(1,Math.min(E.value-2,Dt.value-4))+Ts).filter(mo=>mo<=Dt.value),mo=>(_i(),zi("button",{key:mo,onClick:Ts=>E.value=mo,class:jo(["glass-card border rounded-[8px] px-3 py-2 text-sm transition-all duration-200 focus:outline-none focus:ring-1 focus:ring-primary/20",{"border-primary bg-primary/10 text-primary":E.value===mo,"border-dark-border text-white hover:border-primary hover:text-primary hover:bg-primary/5":E.value!==mo}])},Qi(mo),11,rot))),128)),E.valueE.value=Dt.value),class:"glass-card border border-dark-border hover:border-primary rounded-[8px] px-3 py-2 text-sm text-white hover:text-primary hover:bg-primary/5 transition-all duration-200 focus:outline-none focus:ring-1 focus:ring-primary/20"},Qi(Dt.value),1)):is("",!0)]),Ee("button",{onClick:ho[5]||(ho[5]=mo=>E.value=E.value+1),disabled:E.value>=Dt.value,class:jo(["glass-card border rounded-[10px] px-3 py-2 text-sm transition-all duration-200 focus:outline-none focus:ring-1 focus:ring-primary/20",{"border-dark-border text-dark-text cursor-not-allowed opacity-50":E.value>=Dt.value,"border-dark-border text-white hover:border-primary hover:text-primary hover:bg-primary/5":E.value(_i(),zi("div",null,[Wl(Qrt),Ee("div",fot,[Wl(Mnt),Wl(dnt)]),Wl(hot)]))}}),pot={class:"bg-white/5 border border-white/10 rounded-lg p-4 mb-6"},mot={class:"flex items-center gap-3"},got={class:"flex-1 min-w-0"},vot={class:"text-white font-medium truncate"},yot={class:"text-white/60 text-sm font-mono"},xot={key:0,class:"text-white/50 text-xs"},_ot={key:1,class:"text-white/50 text-xs"},bot=Dc({__name:"DeleteNeighborModal",props:{show:{type:Boolean},neighbor:{}},emits:["close","delete"],setup(d,{emit:s}){const E=d,B=s,K=()=>{E.neighbor&&(B("delete",E.neighbor.id),pt())},pt=()=>{B("close")},_t=Ot=>{Ot.target===Ot.currentTarget&&pt()};return(Ot,jt)=>Ot.show&&Ot.neighbor?(_i(),zi("div",{key:0,onClick:_t,class:"fixed inset-0 bg-black/80 backdrop-blur-lg z-[99999] flex items-center justify-center p-4",style:{"backdrop-filter":"blur(8px) saturate(180%)",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"}},[Ee("div",{class:"glass-card rounded-[20px] p-6 w-full max-w-md border border-white/10",onClick:jt[0]||(jt[0]=Pm(()=>{},["stop"]))},[Ee("div",{class:"flex items-center gap-3 mb-6"},[jt[2]||(jt[2]=Ee("svg",{class:"w-6 h-6 text-accent-red",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[Ee("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})],-1)),jt[3]||(jt[3]=Ee("div",null,[Ee("h3",{class:"text-xl font-semibold text-white"},"Delete Neighbor"),Ee("p",{class:"text-white/60 text-sm mt-1"}," Are you sure you want to delete this neighbor? ")],-1)),Ee("button",{onClick:pt,class:"ml-auto text-white/60 hover:text-white transition-colors"},jt[1]||(jt[1]=[Ee("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[Ee("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]))]),Ee("div",pot,[Ee("div",mot,[Ee("div",got,[Ee("div",vot,Qi(Ot.neighbor?.node_name||Ot.neighbor?.long_name||Ot.neighbor?.short_name||"Unknown"),1),Ee("div",yot," ID: "+Qi(Ot.neighbor?.node_num_hex||Ot.neighbor?.node_num||Ot.neighbor?.id||"N/A"),1),Ot.neighbor?.contact_type?(_i(),zi("div",xot,Qi(Ot.neighbor.contact_type),1)):is("",!0),Ot.neighbor?.hw_model?(_i(),zi("div",_ot,Qi(Ot.neighbor.hw_model),1)):is("",!0)])])]),jt[4]||(jt[4]=Ee("div",{class:"bg-accent-red/10 border border-accent-red/30 rounded-lg p-4 mb-6"},[Ee("div",{class:"flex items-center gap-2 text-accent-red text-sm"},[Ee("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[Ee("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]),Ee("span",null,"This action cannot be undone")])],-1)),Ee("div",{class:"flex gap-3"},[Ee("button",{onClick:pt,class:"flex-1 px-4 py-3 bg-white/5 hover:bg-white/10 border border-white/20 text-white rounded-lg transition-colors"}," Cancel "),Ee("button",{onClick:K,class:"flex-1 px-4 py-3 bg-accent-red/20 hover:bg-accent-red/30 border border-accent-red/50 text-accent-red rounded-lg transition-colors font-medium"}," Delete ")])])])):is("",!0)}});function KO(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var g2={exports:{}};/* @preserve + `})},[ye("span",Cnt,Fi(ce.count),1)],4)]),ye("div",Lnt,[ye("div",Pnt,Fi(ce.name.replace(/\([^)]*\)/g,"").trim()),1)])]))),128))]))]),s.value.length>0?(ci(),wi("div",Int," Total packet types: "+Fi(s.value.length)+" | Total packets: "+Fi(s.value.reduce((ce,Ie)=>ce+Ie.count,0)),1)):Uo("",!0)]))}}),Ont=Bf(znt,[["__scopeId","data-v-dc58fd68"]]),Dnt={class:"glass-card rounded-[10px] p-6"},Fnt={class:"relative h-48"},Bnt={class:"mt-4 grid grid-cols-2 gap-4"},Rnt={class:"text-center"},Nnt={class:"text-2xl font-bold text-white"},jnt={class:"text-center"},Unt={class:"text-2xl font-bold text-white"},Vnt={class:"mt-3 grid grid-cols-3 gap-3 text-center"},Hnt={class:"text-sm font-semibold text-accent-purple"},Wnt={class:"text-sm font-semibold text-accent-red"},qnt={class:"text-sm font-semibold text-white"},$nt=Ec({name:"PerformanceChart",__name:"PerformanceChart",setup(d){const s=sw(),E=Ha(null),R=Ha([]),Y=Ha(null),dt=Ha(!0),_t=async()=>{try{dt.value=!0;const jt=await ah.get("/recent_packets",{limit:50});if(!jt.success){R.value=[],dt.value=!1,S0(()=>{zt()});return}const te=jt.data||[],ce=Date.now(),Ie=24,Je=12,fr=Ie*60*60*1e3/Je,Ar=[];for(let kr=0;kr{const ii=Dn.timestamp*1e3;return ii>=Vr&&ii!Dn.transmitted).length,ti=Dt.filter(Dn=>Dn.transmitted).length;Ar.push({time:new Date(Vr+fr/2).toISOString(),rxPackets:cn,txPackets:ti})}R.value=Ar,dt.value=!1,S0(()=>{zt()})}catch{R.value=[],dt.value=!1,S0(()=>{zt()})}},zt=()=>{if(!E.value)return;const jt=E.value,te=jt.getContext("2d");if(!te)return;const ce=jt.parentElement;if(!ce)return;const Ie=ce.getBoundingClientRect(),Je=Ie.width,fr=Ie.height;jt.width=Je*window.devicePixelRatio,jt.height=fr*window.devicePixelRatio,jt.style.width=Je+"px",jt.style.height=fr+"px",te.scale(window.devicePixelRatio,window.devicePixelRatio);const Ar=20;if(te.clearRect(0,0,Je,fr),dt.value){te.fillStyle="#666",te.font="16px sans-serif",te.textAlign="center",te.fillText("Loading chart data...",Je/2,fr/2);return}if(R.value.length===0){te.fillStyle="#666",te.font="16px sans-serif",te.textAlign="center",te.fillText("No data available",Je/2,fr/2);return}const kr=R.value.every(Nn=>Nn.rxPackets===0&&Nn.txPackets===0),Vr=Je-Ar*2,fn=fr-Ar*2,Dt=R.value.flatMap(Nn=>[Nn.rxPackets,Nn.txPackets]),cn=Math.min(...Dt),ti=Math.max(...Dt),Dn=cn,ii=ti,Vi=Math.max(ii-Dn,1);if(te.strokeStyle="rgba(255, 255, 255, 0.1)",te.lineWidth=1,Dn<=0&&ii>=0){te.strokeStyle="rgba(255, 255, 255, 0.3)",te.lineWidth=2;const Nn=fr-Ar-(0-Dn)/Vi*fn;te.beginPath(),te.moveTo(Ar,Nn),te.lineTo(Je-Ar,Nn),te.stroke(),Nn>20&&Nn1&&(te.strokeStyle="#EBA0FC",te.lineWidth=2,te.beginPath(),R.value.forEach((Nn,Wr)=>{const Bi=Ar+Vr*Wr/(R.value.length-1),Ri=fr-Ar-(Nn.rxPackets-Dn)/Vi*fn;Wr===0?te.moveTo(Bi,Ri):te.lineTo(Bi,Ri)}),te.stroke(),te.fillStyle="#EBA0FC",R.value.forEach((Nn,Wr)=>{const Bi=Ar+Vr*Wr/(R.value.length-1),Ri=fr-Ar-(Nn.rxPackets-Dn)/Vi*fn;te.beginPath(),te.arc(Bi,Ri,2,0,2*Math.PI),te.fill()})),R.value.length>1&&(te.strokeStyle="#FB787B",te.lineWidth=2,te.beginPath(),R.value.forEach((Nn,Wr)=>{const Bi=Ar+Vr*Wr/(R.value.length-1),Ri=fr-Ar-(Nn.txPackets-Dn)/Vi*fn;Wr===0?te.moveTo(Bi,Ri):te.lineTo(Bi,Ri)}),te.stroke(),te.fillStyle="#FB787B",R.value.forEach((Nn,Wr)=>{const Bi=Ar+Vr*Wr/(R.value.length-1),Ri=fr-Ar-(Nn.txPackets-Dn)/Vi*fn;te.beginPath(),te.arc(Bi,Ri,2,0,2*Math.PI),te.fill()})),te.fillStyle="rgba(255, 255, 255, 0.6)",te.font="12px system-ui",te.textAlign="center",kr&&(te.fillStyle="rgba(255, 255, 255, 0.6)",te.font="14px system-ui",te.textAlign="center",te.fillText("No packet activity in last 24 hours",Je/2,fr-15))};return op(()=>{_t(),Y.value=window.setInterval(_t,3e4),S0(()=>{zt(),setTimeout(()=>{zt()},100)}),window.addEventListener("resize",zt)}),zm(()=>{Y.value&&clearInterval(Y.value),window.removeEventListener("resize",zt)}),(jt,te)=>(ci(),wi("div",Dnt,[te[5]||(te[5]=Ff('Performance MetricsPacket Activity (Last 24 Hours)ReceivedTransmitted',3)),ye("div",Fnt,[ye("canvas",{ref_key:"chartRef",ref:E,class:"absolute inset-0 w-full h-full"},null,512)]),ye("div",Bnt,[ye("div",Rnt,[ye("div",Nnt,Fi(Ol(s).packetStats?.total_packets||0),1),te[0]||(te[0]=ye("div",{class:"text-xs text-white/70 uppercase tracking-wide"},"Total Received",-1))]),ye("div",jnt,[ye("div",Unt,Fi(Ol(s).packetStats?.transmitted_packets||0),1),te[1]||(te[1]=ye("div",{class:"text-xs text-white/70 uppercase tracking-wide"},"Total Transmitted",-1))])]),ye("div",Vnt,[ye("div",null,[ye("div",Hnt,Fi(R.value.length>0?Math.round(R.value.reduce((ce,Ie)=>ce+Ie.rxPackets,0)/R.value.length*100)/100:0),1),te[2]||(te[2]=ye("div",{class:"text-xs text-white/60"},"Avg RX/hr",-1))]),ye("div",null,[ye("div",Wnt,Fi(R.value.length>0?Math.round(R.value.reduce((ce,Ie)=>ce+Ie.txPackets,0)/R.value.length*100)/100:0),1),te[3]||(te[3]=ye("div",{class:"text-xs text-white/60"},"Avg TX/hr",-1))]),ye("div",null,[ye("div",qnt,Fi(Ol(s).packetStats?.dropped_packets||0),1),te[4]||(te[4]=ye("div",{class:"text-xs text-white/60"},"Dropped",-1))])])]))}}),Znt=Bf($nt,[["__scopeId","data-v-2ece57e8"]]),Gnt={class:"relative w-full max-w-4xl max-h-[90vh] overflow-hidden"},Ynt={class:"glass-card rounded-[20px] p-8 backdrop-blur-[50px] shadow-2xl border border-white/20"},Knt={class:"flex items-center justify-between mb-6"},Xnt={class:"text-white/70 text-sm"},Jnt={class:"max-h-[70vh] overflow-y-auto custom-scrollbar"},Qnt={class:"mb-6"},tit={class:"glass-card bg-white/5 rounded-[15px] p-4"},eit={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},rit={class:"space-y-3"},nit={class:"flex justify-between py-2 border-b border-white/10"},iit={class:"text-white font-mono text-sm"},ait={class:"flex justify-between py-2 border-b border-white/10"},oit={class:"text-white font-mono text-xs break-all"},sit={key:0,class:"flex justify-between py-2 border-b border-white/10"},lit={class:"text-white font-mono text-xs"},uit={class:"space-y-3"},cit={class:"flex justify-between py-2 border-b border-white/10"},hit={class:"text-white font-semibold"},fit={class:"flex justify-between py-2 border-b border-white/10"},dit={class:"text-white font-semibold"},pit={class:"flex justify-between py-2 border-b border-white/10"},mit={class:"mb-6"},git={class:"glass-card bg-white/5 rounded-[15px] p-4"},vit={class:"space-y-3"},yit={class:"flex justify-between py-2 border-b border-white/10"},xit={class:"text-white"},_it={key:0,class:"pt-2"},bit={class:"glass-card bg-black/30 rounded-[10px] p-4 mb-4"},wit={class:"w-full overflow-x-auto"},kit={class:"text-white/90 text-xs font-mono whitespace-pre leading-relaxed min-w-full"},Tit={class:"flex items-center justify-between mb-3"},Ait={class:"text-white/80 text-sm font-semibold"},Mit={class:"text-white/60 text-xs"},Sit={class:"glass-card bg-black/40 rounded-[8px] p-3 mb-3 overflow-x-auto"},Eit={class:"font-mono text-sm text-white whitespace-pre min-w-full"},Cit={class:"glass-card bg-white/5 rounded-[10px] overflow-hidden"},Lit={class:"text-cyan-400 text-sm font-mono"},Pit={class:"text-white text-sm"},Iit={class:"text-white text-sm font-semibold"},zit={class:"text-orange-400 text-sm font-mono"},Oit={key:0,class:"text-white/60 text-xs italic mt-2 px-1"},Dit={key:1,class:"py-2"},Fit={class:"mb-6"},Bit={class:"glass-card bg-white/5 rounded-[15px] p-4"},Rit={class:"space-y-4"},Nit={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},jit={class:"flex justify-between py-2 border-b border-white/10"},Uit={class:"flex justify-between py-2 border-b border-white/10"},Vit={key:0,class:"py-2"},Hit={class:"glass-card bg-black/20 rounded-[10px] p-4"},Wit={class:"flex items-center flex-wrap gap-2"},qit={class:"relative group"},$it={class:"relative px-3 py-2 bg-gradient-to-br from-blue-500/20 to-cyan-500/20 border border-cyan-400/40 rounded-lg transform transition-all hover:scale-105"},Zit={class:"font-mono text-xs font-semibold text-white/90"},Git={class:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-black/90 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none whitespace-nowrap z-10"},Yit={key:0,class:"mx-2 text-cyan-400/60"},Kit={key:1,class:"py-2"},Xit={class:"text-white/70 text-sm mb-2 flex items-center"},Jit={key:0,class:"w-4 h-4 ml-2 text-yellow-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},Qit={key:1,class:"text-yellow-400 text-xs ml-1"},tat={class:"glass-card bg-black/20 rounded-[10px] p-4"},eat={class:"flex items-center flex-wrap gap-2"},rat={class:"relative group"},nat={key:0,class:"absolute -top-1 -right-1 w-2 h-2 bg-yellow-400 rounded-full animate-pulse"},iat={class:"absolute bottom-full left-1/2 transform -translate-x-1/2 mb-2 px-2 py-1 bg-black/90 text-white text-xs rounded opacity-0 group-hover:opacity-100 transition-opacity pointer-events-none whitespace-nowrap z-10"},aat={key:0,class:"mx-1 text-orange-400/60"},oat={class:"mb-6"},sat={class:"glass-card bg-white/5 rounded-[15px] p-4"},lat={class:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-4"},uat={class:"text-center p-3 glass-card bg-black/20 rounded-[10px]"},cat={class:"text-lg font-bold text-white"},hat={class:"text-center p-3 glass-card bg-black/20 rounded-[10px]"},fat={class:"text-center p-3 glass-card bg-black/20 rounded-[10px]"},dat={class:"text-lg font-bold text-white"},pat={class:"mb-4"},mat={class:"flex items-center gap-3"},gat={class:"flex gap-1"},vat={class:"text-white/80 text-sm capitalize"},yat={key:0,class:"mb-4"},xat={class:"text-white/70 text-sm mb-3"},_at={class:"space-y-2"},bat={class:"flex items-center gap-3"},wat={class:"text-white/60 text-sm"},kat={class:"grid grid-cols-1 md:grid-cols-2 gap-4"},Tat={class:"space-y-2"},Aat={class:"flex justify-between py-2 border-b border-white/10"},Mat={class:"text-white"},Sat={class:"flex justify-between py-2 border-b border-white/10"},Eat={class:"space-y-2"},Cat={class:"flex justify-between py-2 border-b border-white/10"},Lat={key:0,class:"flex justify-between py-2 border-b border-white/10"},Pat={class:"text-red-400 text-sm"},Iat={class:"mt-6 pt-4 border-t border-white/10 flex justify-end"},zat=Ec({name:"PacketDetailsModal",__name:"PacketDetailsModal",props:{packet:{},isOpen:{type:Boolean},localHash:{}},emits:["close"],setup(d,{emit:s}){const E=d,R=s,Y=Dt=>new Date(Dt*1e3).toLocaleString(),dt=Dt=>Dt.transmitted?Dt.is_duplicate?"text-amber-400":Dt.drop_reason?"text-red-400":"text-green-400":"text-red-400",_t=Dt=>Dt.transmitted?Dt.is_duplicate?"Duplicate":Dt.drop_reason?"Dropped":"Forwarded":"Dropped",zt=Dt=>({0:"Request",1:"Response",2:"Plain Text Message",3:"Acknowledgment",4:"Node Advertisement",5:"Group Text Message",6:"Group Datagram",7:"Anonymous Request",8:"Returned Path",9:"Trace",10:"Multi-part Packet",15:"Custom Packet"})[Dt]||`Unknown Type (${Dt})`,jt=Dt=>({0:"Transport Flood",1:"Flood",2:"Direct",3:"Transport Direct"})[Dt]||`Unknown Route (${Dt})`,te=Dt=>{if(!Dt)return"None";const ti=Dt.replace(/\s+/g,"").toUpperCase().match(/.{2}/g)||[],Dn=[];for(let ii=0;ii{try{let Dn=0;const ii=cn.length/2;if(ii>=100){if(cn.length>=Dn+64){const Vi=cn.slice(Dn,Dn+64);Dt.push({name:"Public Key",byteRange:`${(ti+Dn)/2}-${(ti+Dn+63)/2}`,hexData:Vi.match(/.{8}/g)?.join(" ")||Vi,description:"Ed25519 public key of the node (32 bytes)",fields:[{bits:"0-255",name:"Ed25519 Public Key",value:`${Vi.slice(0,16)}...${Vi.slice(-16)}`,binary:"32 bytes (256 bits)"}]}),Dn+=64}if(cn.length>=Dn+8){const Vi=cn.slice(Dn,Dn+8),Nn=parseInt(Vi,16),Wr=new Date(Nn*1e3);Dt.push({name:"Timestamp",byteRange:`${(ti+Dn)/2}-${(ti+Dn+7)/2}`,hexData:Vi.match(/.{2}/g)?.join(" ")||Vi,description:"Unix timestamp of advertisement",fields:[{bits:"0-31",name:"Unix Timestamp",value:`${Nn} (${Wr.toLocaleString()})`,binary:Nn.toString(2).padStart(32,"0")}]}),Dn+=8}if(cn.length>=Dn+128){const Vi=cn.slice(Dn,Dn+128);Dt.push({name:"Signature",byteRange:`${(ti+Dn)/2}-${(ti+Dn+127)/2}`,hexData:Vi.match(/.{8}/g)?.join(" ")||Vi,description:"Ed25519 signature of public key, timestamp, and appdata",fields:[{bits:"0-511",name:"Ed25519 Signature",value:`${Vi.slice(0,16)}...${Vi.slice(-16)}`,binary:"64 bytes (512 bits)"}]}),Dn+=128}if(cn.length>Dn){const Vi=cn.slice(Dn);Ie(Dt,Vi,ti+Dn)}}else Dt.push({name:"ADVERT AppData (Partial)",byteRange:`${ti/2}-${ti/2+ii-1}`,hexData:cn.match(/.{2}/g)?.join(" ")||cn,description:`Partial ADVERT data - appears to be just AppData portion (${ii} bytes)`,fields:[{bits:`0-${ii*8-1}`,name:"Partial Data",value:`${ii} bytes - attempting to decode as AppData`,binary:`${ii} bytes (${ii*8} bits)`}]}),Ie(Dt,cn,ti)}catch(Dn){Dt.push({name:"ADVERT Parse Error",byteRange:"N/A",hexData:cn.slice(0,32)+"...",description:"Failed to parse ADVERT payload structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${Dn instanceof Error?Dn.message:"Unknown error"}`,binary:"Invalid"}]})}},Ie=(Dt,cn,ti)=>{try{const Dn=cn.length/2;Dt.push({name:"AppData",byteRange:`${ti/2}-${ti/2+Dn-1}`,hexData:cn.match(/.{2}/g)?.join(" ")||cn,description:`Node advertisement application data (${Dn} bytes)`,fields:[{bits:`0-${Dn*8-1}`,name:"Application Data",value:`${Dn} bytes (contains flags, location, name, etc.)`,binary:`${Dn} bytes (${Dn*8} bits)`}]});let ii=0;if(cn.length>=2){const Vi=parseInt(cn.slice(ii,ii+2),16),Nn=[],Wr=!!(Vi&16),Bi=!!(Vi&32),Ri=!!(Vi&64),Li=!!(Vi&128);if(Vi&1&&Nn.push("is chat node"),Vi&2&&Nn.push("is repeater"),Vi&4&&Nn.push("is room server"),Vi&8&&Nn.push("is sensor"),Wr&&Nn.push("has location"),Bi&&Nn.push("has feature 1"),Ri&&Nn.push("has feature 2"),Li&&Nn.push("has name"),Dt.push({name:"AppData Flags",byteRange:`${(ti+ii)/2}`,hexData:`0x${cn.slice(ii,ii+2)}`,description:"Flags indicating which optional fields are present",fields:[{bits:"0-7",name:"Flags",value:Nn.join(", ")||"none",binary:Vi.toString(2).padStart(8,"0")}]}),ii+=2,Wr&&cn.length>=ii+16){const $n=cn.slice(ii,ii+8),Hn=[];for(let xl=6;xl>=0;xl-=2)Hn.push($n.slice(xl,xl+2));const sa=parseInt(Hn.join(""),16),Ti=sa>2147483647?sa-4294967296:sa,Qn=Ti/1e6,la=cn.slice(ii+8,ii+16),Eo=[];for(let xl=6;xl>=0;xl-=2)Eo.push(la.slice(xl,xl+2));const no=parseInt(Eo.join(""),16),mo=no>2147483647?no-4294967296:no,Ts=mo/1e6;Dt.push({name:"Location Data",byteRange:`${(ti+ii)/2}-${(ti+ii+15)/2}`,hexData:`${$n.match(/.{2}/g)?.join(" ")||$n} ${la.match(/.{2}/g)?.join(" ")||la}`,description:"GPS coordinates (latitude and longitude)",fields:[{bits:"0-31",name:"Latitude",value:`${Qn.toFixed(6)}° (raw: ${Ti})`,binary:Ti.toString(2).padStart(32,"0")},{bits:"32-63",name:"Longitude",value:`${Ts.toFixed(6)}° (raw: ${mo})`,binary:mo.toString(2).padStart(32,"0")}]}),ii+=16}if(Bi&&cn.length>=ii+4){const $n=cn.slice(ii,ii+4),Hn=parseInt($n,16);Dt.push({name:"Feature 1",byteRange:`${(ti+ii)/2}-${(ti+ii+3)/2}`,hexData:$n.match(/.{2}/g)?.join(" ")||$n,description:"Reserved feature 1 (2 bytes)",fields:[{bits:"0-15",name:"Feature 1 Value",value:`${Hn}`,binary:Hn.toString(2).padStart(16,"0")}]}),ii+=4}if(Ri&&cn.length>=ii+4){const $n=cn.slice(ii,ii+4),Hn=parseInt($n,16);Dt.push({name:"Feature 2",byteRange:`${(ti+ii)/2}-${(ti+ii+3)/2}`,hexData:$n.match(/.{2}/g)?.join(" ")||$n,description:"Reserved feature 2 (2 bytes)",fields:[{bits:"0-15",name:"Feature 2 Value",value:`${Hn}`,binary:Hn.toString(2).padStart(16,"0")}]}),ii+=4}if(Li&&cn.length>ii){const $n=cn.slice(ii),Hn=$n.match(/.{2}/g)||[],sa=Hn.map(Ti=>{const Qn=parseInt(Ti,16);return Qn>=32&&Qn<=126?String.fromCharCode(Qn):"."}).join("").replace(/\.+$/,"");Dt.push({name:"Node Name",byteRange:`${(ti+ii)/2}-${(ti+cn.length-1)/2}`,hexData:$n.match(/.{2}/g)?.join(" ")||$n,description:`Node name string (${Hn.length} bytes)`,fields:[{bits:`0-${Hn.length*8-1}`,name:"Node Name",value:`"${sa}"`,binary:`ASCII text (${Hn.length} bytes)`}]})}}}catch(Dn){Dt.push({name:"AppData Parse Error",byteRange:"N/A",hexData:cn.slice(0,Math.min(32,cn.length)),description:"Failed to parse AppData structure",fields:[{bits:"N/A",name:"Error",value:`Parse error: ${Dn instanceof Error?Dn.message:"Unknown error"}`,binary:"Invalid"}]})}},Je=Dt=>{if(!Dt)return[];if(Array.isArray(Dt))return Dt;if(typeof Dt=="string")try{return JSON.parse(Dt)}catch{return[]}return[]},fr=Dt=>{const cn=[];if(!Dt)return cn;try{const ti=Dt.raw_packet;if(ti){const Dn=ti.replace(/\s+/g,"").toUpperCase();let ii=0;if(Dn.length>=2){const Vi=Dn.slice(ii,ii+2),Nn=parseInt(Vi,16),Wr=Nn&3,Bi=(Nn&60)>>2,Ri=(Nn&192)>>6,Li={0:"Transport Flood",1:"Flood",2:"Direct",3:"Transport Direct"},$n={0:"REQ",1:"RESPONSE",2:"TXT_MSG",3:"ACK",4:"ADVERT",5:"GRP_TXT",6:"GRP_DATA",7:"ANON_REQ",8:"PATH",9:"TRACE",10:"MULTIPART",15:"RAW_CUSTOM"};if(cn.push({name:"Header",byteRange:"0",hexData:`0x${Vi}`,description:"Contains routing type, payload type, and payload version",fields:[{bits:"0-1",name:"Route Type",value:Li[Wr]||"Unknown",binary:Wr.toString(2).padStart(2,"0")},{bits:"2-5",name:"Payload Type",value:$n[Bi]||"Unknown",binary:Bi.toString(2).padStart(4,"0")},{bits:"6-7",name:"Version",value:Ri.toString(),binary:Ri.toString(2).padStart(2,"0")}]}),ii+=2,(Wr===0||Wr===3)&&Dn.length>=ii+8){const sa=Dn.slice(ii,ii+8),Ti=parseInt(sa.slice(0,4),16),Qn=parseInt(sa.slice(4,8),16);cn.push({name:"Transport Codes",byteRange:"1-4",hexData:`${sa.slice(0,4)} ${sa.slice(4,8)}`,description:"2x 16-bit transport codes for routing optimization",fields:[{bits:"0-15",name:"Code 1",value:Ti.toString(),binary:Ti.toString(2).padStart(16,"0")},{bits:"16-31",name:"Code 2",value:Qn.toString(),binary:Qn.toString(2).padStart(16,"0")}]}),ii+=8}if(Dn.length>=ii+2){const sa=Dn.slice(ii,ii+2),Ti=parseInt(sa,16);if(cn.push({name:"Path Length",byteRange:`${ii/2}`,hexData:`0x${sa}`,description:`${Ti} bytes of path data`,fields:[{bits:"0-7",name:"Path Length",value:`${Ti} bytes`,binary:Ti.toString(2).padStart(8,"0")}]}),ii+=2,Ti>0&&Dn.length>=ii+Ti*2){const Qn=Dn.slice(ii,ii+Ti*2);cn.push({name:"Path Data",byteRange:`${ii/2}-${(ii+Ti*2-2)/2}`,hexData:Qn.match(/.{2}/g)?.join(" ")||Qn,description:"Routing path information",fields:[{bits:`0-${Ti*8-1}`,name:"Route Path",value:`${Ti} bytes of routing data`,binary:`${Ti} bytes (${Ti*8} bits)`}]}),ii+=Ti*2}}if(Dn.length>ii){const sa=Dn.slice(ii),Ti=sa.length/2;Bi===4?ce(cn,sa,ii):cn.push({name:"Payload Data",byteRange:`${ii/2}-${ii/2+Ti-1}`,hexData:sa.match(/.{2}/g)?.join(" ")||sa,description:"Application data content",fields:[{bits:`0-${Ti*8-1}`,name:"Application Data",value:`${Ti} bytes`,binary:`${Ti} bytes (${Ti*8} bits)`}]})}}}else{if(Dt.header){const Dn=Dt.header.replace(/0x/gi,"").replace(/\s+/g,"").toUpperCase(),ii=parseInt(Dn,16),Vi=ii&3,Nn=(ii&60)>>2,Wr=(ii&192)>>6,Bi={0:"Transport Flood",1:"Flood",2:"Direct",3:"Transport Direct"},Ri={0:"REQ",1:"RESPONSE",2:"TXT_MSG",3:"ACK",4:"ADVERT",5:"GRP_TXT",6:"GRP_DATA",7:"ANON_REQ",8:"PATH",9:"TRACE",10:"MULTIPART",15:"RAW_CUSTOM"};cn.push({name:"Header",byteRange:"0",hexData:`0x${Dn}`,description:"Contains routing type, payload type, and payload version",fields:[{bits:"0-1",name:"Route Type",value:Bi[Vi]||"Unknown",binary:Vi.toString(2).padStart(2,"0")},{bits:"2-5",name:"Payload Type",value:Ri[Nn]||"Unknown",binary:Nn.toString(2).padStart(4,"0")},{bits:"6-7",name:"Version",value:Wr.toString(),binary:Wr.toString(2).padStart(2,"0")}]}),Dt.transport_codes&&cn.push({name:"Transport Codes",byteRange:"1-4",hexData:Dt.transport_codes,description:"2x 16-bit transport codes for routing optimization",fields:[{bits:"0-31",name:"Transport Codes",value:Dt.transport_codes,binary:"Available in separate field"}]}),Dt.original_path&&Dt.original_path.length>0&&cn.push({name:"Original Path",byteRange:"?",hexData:Dt.original_path.join(" "),description:`Original routing path (${Dt.original_path.length} nodes)`,fields:[{bits:"0-?",name:"Path Nodes",value:`${Dt.original_path.length} nodes`,binary:"Available as node list"}]}),Dt.forwarded_path&&Dt.forwarded_path.length>0&&cn.push({name:"Forwarded Path",byteRange:"?",hexData:Dt.forwarded_path.join(" "),description:`Forwarded routing path (${Dt.forwarded_path.length} nodes)`,fields:[{bits:"0-?",name:"Path Nodes",value:`${Dt.forwarded_path.length} nodes`,binary:"Available as node list"}]})}if(Dt.payload){const Dn=Dt.payload.replace(/\s+/g,"").toUpperCase(),ii=Dn.length/2;Dt.type===4?ce(cn,Dn,0):cn.push({name:"Payload Data",byteRange:`0-${ii-1}`,hexData:Dn.match(/.{2}/g)?.join(" ")||Dn,description:`Application data content (${ii} bytes)`,fields:[{bits:`0-${ii*8-1}`,name:"Application Data",value:`${ii} bytes`,binary:`${ii} bytes (${ii*8} bits)`}]})}}}catch{cn.push({name:"Parse Error",byteRange:"N/A",hexData:"Error",description:"Unable to parse packet structure",fields:[{bits:"N/A",name:"Error",value:"Parse failed",binary:"Invalid"}]})}return cn},Ar=Dt=>Dt>=10?"text-green-400":Dt>=5?"text-cyan-400":Dt>=0?"text-yellow-400":"text-red-400",kr=(Dt,cn=8)=>{const Dn={7:-7.5,8:-10,9:-12.5,10:-15,11:-17.5,12:-20}[cn]||-10;let ii,Vi;return Dt>=Dn+10?(ii=4,Vi="signal-excellent"):Dt>=Dn+5?(ii=3,Vi="signal-good"):Dt>=Dn?(ii=2,Vi="signal-fair"):(ii=1,Vi="signal-poor"),{level:ii,className:Vi}},Vr=Dt=>{Dt.key==="Escape"&&R("close")},fn=Dt=>{Dt.target===Dt.currentTarget&&R("close")};return(Dt,cn)=>(ci(),G0(QA,{to:"body"},[El(Yz,{name:"modal",appear:""},{default:ew(()=>[Dt.isOpen&&Dt.packet?(ci(),wi("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4",onClick:fn,onKeydown:Vr,tabindex:"0"},[cn[36]||(cn[36]=ye("div",{class:"absolute inset-0 bg-black/60 backdrop-blur-md"},null,-1)),ye("div",Gnt,[ye("div",Ynt,[ye("div",Knt,[ye("div",null,[cn[2]||(cn[2]=ye("h2",{class:"text-2xl font-bold text-white mb-1"},"Packet Details",-1)),ye("p",Xnt,Fi(zt(Dt.packet.type))+" - "+Fi(jt(Dt.packet.route)),1)]),ye("button",{onClick:cn[0]||(cn[0]=ti=>R("close")),class:"w-8 h-8 flex items-center justify-center rounded-full bg-white/10 hover:bg-white/20 transition-colors duration-200 text-white/70 hover:text-white"},cn[3]||(cn[3]=[ye("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[ye("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]))]),ye("div",Jnt,[ye("div",Qnt,[cn[10]||(cn[10]=ye("h3",{class:"text-lg font-semibold text-white mb-4 flex items-center"},[ye("div",{class:"w-2 h-2 rounded-full bg-cyan-400 mr-3"}),Qu(" Basic Information ")],-1)),ye("div",tit,[ye("div",eit,[ye("div",rit,[ye("div",nit,[cn[4]||(cn[4]=ye("span",{class:"text-white/70 text-sm"},"Timestamp",-1)),ye("span",iit,Fi(Y(Dt.packet.timestamp)),1)]),ye("div",ait,[cn[5]||(cn[5]=ye("span",{class:"text-white/70 text-sm"},"Packet Hash",-1)),ye("span",oit,Fi(Dt.packet.packet_hash),1)]),Dt.packet.header?(ci(),wi("div",sit,[cn[6]||(cn[6]=ye("span",{class:"text-white/70 text-sm"},"Header",-1)),ye("span",lit,Fi(Dt.packet.header),1)])):Uo("",!0)]),ye("div",uit,[ye("div",cit,[cn[7]||(cn[7]=ye("span",{class:"text-white/70 text-sm"},"Type",-1)),ye("span",hit,Fi(Dt.packet.type)+" ("+Fi(zt(Dt.packet.type))+")",1)]),ye("div",fit,[cn[8]||(cn[8]=ye("span",{class:"text-white/70 text-sm"},"Route",-1)),ye("span",dit,Fi(Dt.packet.route)+" ("+Fi(jt(Dt.packet.route))+")",1)]),ye("div",pit,[cn[9]||(cn[9]=ye("span",{class:"text-white/70 text-sm"},"Status",-1)),ye("span",{class:Fo(["font-semibold",dt(Dt.packet)])},Fi(_t(Dt.packet)),3)])])])])]),ye("div",mit,[cn[16]||(cn[16]=ye("h3",{class:"text-lg font-semibold text-white mb-4 flex items-center"},[ye("div",{class:"w-2 h-2 rounded-full bg-orange-400 mr-3"}),Qu(" Payload Data ")],-1)),ye("div",git,[ye("div",vit,[ye("div",yit,[cn[11]||(cn[11]=ye("span",{class:"text-white/70 text-sm"},"Payload Length",-1)),ye("span",xit,Fi(Dt.packet.payload_length||Dt.packet.length)+" bytes",1)]),Dt.packet.payload?(ci(),wi("div",_it,[cn[14]||(cn[14]=ye("div",{class:"text-white/70 text-sm mb-3"},"Payload Analysis",-1)),ye("div",bit,[cn[12]||(cn[12]=ye("div",{class:"text-white/70 text-xs mb-2 font-semibold"},"Raw Hex Data",-1)),ye("div",wit,[ye("pre",kit,Fi(te(Dt.packet.payload)),1)])]),(ci(!0),wi(_u,null,Mh(fr(Dt.packet).filter(ti=>!ti.name.includes("Parse Error")),(ti,Dn)=>(ci(),wi("div",{key:Dn,class:"mb-4"},[ye("div",Tit,[ye("h4",Ait,Fi(ti.name),1),ye("span",Mit,"Bytes "+Fi(ti.byteRange),1)]),ye("div",Sit,[ye("div",Eit,Fi(ti.hexData),1)]),ye("div",Cit,[cn[13]||(cn[13]=ye("div",{class:"grid grid-cols-4 gap-4 p-3 bg-white/10 text-white/70 text-xs font-semibold uppercase tracking-wide"},[ye("div",null,"Bits"),ye("div",null,"Field"),ye("div",null,"Value"),ye("div",null,"Binary")],-1)),(ci(!0),wi(_u,null,Mh(ti.fields,(ii,Vi)=>(ci(),wi("div",{key:Vi,class:"grid grid-cols-4 gap-4 p-3 border-b border-white/5 last:border-b-0 hover:bg-white/5 transition-colors"},[ye("div",Lit,Fi(ii.bits),1),ye("div",Pit,Fi(ii.name),1),ye("div",Iit,Fi(ii.value),1),ye("div",zit,Fi(ii.binary),1)]))),128))]),ti.description?(ci(),wi("div",Oit,Fi(ti.description),1)):Uo("",!0)]))),128))])):(ci(),wi("div",Dit,cn[15]||(cn[15]=[ye("span",{class:"text-white/70 text-sm"},"Payload:",-1),ye("span",{class:"text-white/50 ml-2"},"None",-1)])))])])]),ye("div",Fit,[cn[24]||(cn[24]=ye("h3",{class:"text-lg font-semibold text-white mb-4 flex items-center"},[ye("div",{class:"w-2 h-2 rounded-full bg-purple-400 mr-3"}),Qu(" Path Information ")],-1)),ye("div",Bit,[ye("div",Rit,[ye("div",Nit,[ye("div",jit,[cn[17]||(cn[17]=ye("span",{class:"text-white/70 text-sm"},"Source Hash",-1)),ye("span",{class:Fo(["text-white font-mono text-xs",E.localHash&&Dt.packet.src_hash===E.localHash?"bg-cyan-400/20 text-cyan-300 px-1 rounded":""])},Fi(Dt.packet.src_hash||"Unknown"),3)]),ye("div",Uit,[cn[18]||(cn[18]=ye("span",{class:"text-white/70 text-sm"},"Destination Hash",-1)),ye("span",{class:Fo(["text-white font-mono text-xs",E.localHash&&Dt.packet.dst_hash===E.localHash?"bg-cyan-400/20 text-cyan-300 px-1 rounded":""])},Fi(Dt.packet.dst_hash||"Broadcast"),3)])]),Je(Dt.packet.original_path).length>0?(ci(),wi("div",Vit,[cn[20]||(cn[20]=ye("div",{class:"text-white/70 text-sm mb-2"},"Original Path",-1)),ye("div",Hit,[ye("div",Wit,[(ci(!0),wi(_u,null,Mh(Je(Dt.packet.original_path),(ti,Dn)=>(ci(),wi("div",{key:Dn,class:"flex items-center"},[ye("div",qit,[ye("div",$it,[ye("div",Zit,Fi(ti.length<=2?ti.toUpperCase():ti.slice(0,2).toUpperCase()),1)]),ye("div",Git," Node: "+Fi(ti),1)]),Dn0?(ci(),wi("div",Kit,[ye("div",Xit,[cn[22]||(cn[22]=Qu(" Forwarded Path ",-1)),JSON.stringify(Je(Dt.packet.original_path))!==JSON.stringify(Je(Dt.packet.forwarded_path))?(ci(),wi("svg",Jit,cn[21]||(cn[21]=[ye("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)]))):Uo("",!0),JSON.stringify(Je(Dt.packet.original_path))!==JSON.stringify(Je(Dt.packet.forwarded_path))?(ci(),wi("span",Qit,"(Modified)")):Uo("",!0)]),ye("div",tat,[ye("div",eat,[(ci(!0),wi(_u,null,Mh(Je(Dt.packet.forwarded_path),(ti,Dn)=>(ci(),wi("div",{key:Dn,class:"flex items-center"},[ye("div",rat,[ye("div",{class:Fo(["relative px-3 py-2 bg-gradient-to-br from-orange-500/20 to-yellow-500/20 border border-orange-400/40 rounded-lg transform transition-all hover:scale-105",E.localHash&&ti===E.localHash?"bg-gradient-to-br from-yellow-400/30 to-orange-400/30 border-yellow-300 shadow-yellow-400/20 shadow-lg":"hover:border-orange-400/60"])},[ye("div",{class:Fo(["font-mono text-xs font-semibold",E.localHash&&ti===E.localHash?"text-yellow-200":"text-white/90"])},Fi(ti.slice(0,2).toUpperCase()),3),E.localHash&&ti===E.localHash?(ci(),wi("div",nat)):Uo("",!0)],2),ye("div",iat,Fi(ti),1)]),Dnye("div",{key:ti,class:Fo(["w-2 h-6 rounded-sm transition-all duration-300",ti<=kr(Dt.packet.snr).level?{"signal-excellent":"bg-green-400","signal-good":"bg-cyan-400","signal-fair":"bg-yellow-400","signal-poor":"bg-red-400"}[kr(Dt.packet.snr).className]:"bg-white/10"])},null,2)),64))]),ye("span",vat,Fi(kr(Dt.packet.snr).className.replace("signal-","")),1)])]),Dt.packet.is_trace&&Dt.packet.path_snr_details&&Dt.packet.path_snr_details.length>0?(ci(),wi("div",yat,[ye("div",xat,"Path SNR Details ("+Fi(Dt.packet.path_snr_details.length)+" hops)",1),ye("div",_at,[(ci(!0),wi(_u,null,Mh(Dt.packet.path_snr_details,(ti,Dn)=>(ci(),wi("div",{key:Dn,class:"flex items-center justify-between p-2 glass-card bg-black/20 rounded-[8px]"},[ye("div",bat,[ye("span",wat,Fi(Dn+1)+".",1),ye("span",{class:Fo(["font-mono text-xs text-white",E.localHash&&ti.hash===E.localHash?"bg-cyan-400/20 text-cyan-300 px-1 rounded":""])},Fi(ti.hash),3)]),ye("span",{class:Fo(["text-sm font-bold",Ar(ti.snr_db)])},Fi(ti.snr_db.toFixed(1))+"dB ",3)]))),128))])])):Uo("",!0),ye("div",kat,[ye("div",Tat,[ye("div",Aat,[cn[31]||(cn[31]=ye("span",{class:"text-white/70 text-sm"},"TX Delay",-1)),ye("span",Mat,Fi(Number(Dt.packet.tx_delay_ms)>0?Number(Dt.packet.tx_delay_ms).toFixed(1)+"ms":"-"),1)]),ye("div",Sat,[cn[32]||(cn[32]=ye("span",{class:"text-white/70 text-sm"},"Transmitted",-1)),ye("span",{class:Fo(Dt.packet.transmitted?"text-green-400":"text-red-400")},Fi(Dt.packet.transmitted?"Yes":"No"),3)])]),ye("div",Eat,[ye("div",Cat,[cn[33]||(cn[33]=ye("span",{class:"text-white/70 text-sm"},"Is Duplicate",-1)),ye("span",{class:Fo(Dt.packet.is_duplicate?"text-amber-400":"text-white/60")},Fi(Dt.packet.is_duplicate?"Yes":"No"),3)]),Dt.packet.drop_reason?(ci(),wi("div",Lat,[cn[34]||(cn[34]=ye("span",{class:"text-white/70 text-sm"},"Drop Reason",-1)),ye("span",Pat,Fi(Dt.packet.drop_reason),1)])):Uo("",!0)])])])])]),ye("div",Iat,[ye("button",{onClick:cn[1]||(cn[1]=ti=>R("close")),class:"px-6 py-2 bg-gradient-to-r from-cyan-500/20 to-cyan-400/20 hover:from-cyan-500/30 hover:to-cyan-400/30 border border-cyan-400/30 rounded-[10px] text-white transition-all duration-200 backdrop-blur-sm"}," Close ")])])])],32)):Uo("",!0)]),_:1})]))}}),Oat=Bf(zat,[["__scopeId","data-v-3b73bfd6"]]),Dat={class:"glass-card rounded-[20px] p-6"},Fat={class:"flex justify-between items-center mb-6"},Bat={class:"flex items-center gap-3"},Rat={class:"text-dark-text text-sm"},Nat=["title"],jat={key:1,class:"text-primary text-sm"},Uat={key:2,class:"text-accent-red text-sm"},Vat={class:"flex items-center gap-3"},Hat={class:"flex flex-col"},Wat=["value"],qat={class:"flex flex-col"},$at=["value"],Zat={class:"flex flex-col"},Gat={class:"flex flex-col"},Yat=["disabled"],Kat={class:"space-y-4 overflow-hidden"},Xat=["onClick"],Jat={class:"grid grid-cols-12 gap-2 items-center"},Qat={class:"col-span-1 text-white text-sm"},tot={class:"col-span-1 flex items-center gap-2"},eot={class:"text-white text-xs"},rot={class:"col-span-2"},not={class:"col-span-1 text-white text-xs"},iot={class:"col-span-2"},aot={class:"space-y-1"},oot={class:"inline-block px-2 py-0.5 rounded bg-[#588187] text-accent-cyan text-xs"},sot={class:"col-span-1 text-white text-xs"},lot={class:"col-span-1 text-white text-xs"},uot={class:"col-span-1 text-white text-xs"},cot={class:"col-span-1 text-white text-xs"},hot={class:"col-span-1"},fot={key:0,class:"text-accent-red text-[8px] italic truncate"},dot={key:0,class:"flex justify-between items-center mt-6 pt-4 border-t border-dark-border"},pot={class:"flex items-center gap-4"},mot={class:"text-dark-text text-sm"},got={key:0,class:"flex items-center gap-2"},vot=["disabled"],yot={class:"text-dark-text text-xs"},xot={class:"flex items-center gap-2"},_ot=["disabled"],bot={class:"flex items-center gap-1"},wot={key:1,class:"text-dark-text text-sm px-2"},kot=["onClick"],Tot={key:2,class:"text-dark-text text-sm px-2"},Aot=["disabled"],Mot={key:1,class:"flex justify-center mt-6 pt-4 border-t border-dark-border"},Sot={class:"flex items-center gap-4"},Eot={class:"text-dark-text text-sm"},Cot={class:"text-dark-text text-xs"},Lot={key:2,class:"flex justify-center mt-6 pt-4 border-t border-dark-border"},a2=10,cy=1e3,Pot=Ec({name:"PacketTable",__name:"PacketTable",setup(d){const s=sw(),E=Ha(1),R=Ha(null),Y=Ha(100),dt=Ha(!1),_t=Ha(null),zt=Ha(!1),jt=Eo=>{_t.value=Eo,zt.value=!0},te=()=>{zt.value=!1,_t.value=null},ce=Ha("all"),Ie=Ha("all"),Je=Ha(!1),fr=Ha(null),Ar=["all","0","1","2","3","4","5","6","7","8","9","10","11"],kr=["all","1","2"],Vr=Wo(()=>{let Eo=s.recentPackets;if(ce.value!=="all"){const no=parseInt(ce.value);Eo=Eo.filter(mo=>mo.type===no)}if(Ie.value!=="all"){const no=parseInt(Ie.value);Eo=Eo.filter(mo=>mo.route===no)}return Je.value&&fr.value!==null&&(Eo=Eo.filter(no=>no.timestamp>=fr.value)),Eo}),fn=Wo(()=>{const Eo=(E.value-1)*a2,no=Eo+a2;return Vr.value.slice(Eo,no)}),Dt=Wo(()=>Math.ceil(Vr.value.length/a2)),cn=Wo(()=>E.value===Dt.value),ti=Wo(()=>s.recentPackets.length>=Y.value&&Y.valuecn.value&&ti.value&&!dt.value),ii=Eo=>new Date(Eo*1e3).toLocaleTimeString("en-US",{hour12:!1}),Vi=Eo=>({0:"REQ",1:"RESPONSE",2:"TXT_MSG",3:"ACK",4:"ADVERT",5:"GRP_TXT",6:"GRP_DATA",7:"ANON_REQ",8:"PATH",9:"TRACE",10:"MULTI_PART",11:"CONTROL"})[Eo]||`TYPE_${Eo}`,Nn=Eo=>({0:"T-Flood",1:"Flood",2:"Direct",3:"T-Direct"})[Eo]||`Route ${Eo}`,Wr=Eo=>Eo.transmitted?"text-accent-green":"text-primary",Bi=Eo=>Eo.drop_reason?"Dropped":Eo.transmitted?"Forward":"Received",Ri=Eo=>Eo===1?"bg-[#223231] text-accent-cyan":"bg-secondary/30 text-secondary",Li=Eo=>({0:"bg-primary",1:"bg-accent-green",2:"bg-secondary",3:"bg-accent-purple",4:"bg-accent-red",5:"bg-accent-cyan",6:"bg-primary",7:"bg-accent-purple",8:"bg-accent-green",9:"bg-secondary"})[Eo]||"bg-gray-500",$n=Eo=>({0:"border-l-primary",1:"border-l-accent-green",2:"border-l-secondary",3:"border-l-accent-purple",4:"border-l-accent-red",5:"border-l-accent-cyan",6:"border-l-primary",7:"border-l-accent-purple",8:"border-l-accent-green",9:"border-l-secondary"})[Eo]||"border-l-gray-500",Hn=()=>{ce.value="all",Ie.value="all",Je.value=!1,fr.value=null,E.value=1},sa=()=>{Je.value?(Je.value=!1,fr.value=null):(Je.value=!0,fr.value=Date.now()/1e3),E.value=1},Ti=Wo(()=>fr.value?new Date(fr.value*1e3).toLocaleTimeString():""),Qn=async Eo=>{try{const no=Eo||Y.value;await s.fetchRecentPackets({limit:no})}catch(no){console.error("Error fetching packet data:",no)}},la=async()=>{if(!(dt.value||Y.value>=cy)){dt.value=!0;try{const Eo=Math.min(Y.value+200,cy);Y.value=Eo,await Qn(Eo)}catch(Eo){console.error("Error loading more records:",Eo)}finally{dt.value=!1}}};return op(async()=>{await Qn(),R.value=window.setInterval(Qn,5e3)}),zm(()=>{R.value&&clearInterval(R.value)}),(Eo,no)=>(ci(),wi(_u,null,[ye("div",Dat,[ye("div",Fat,[ye("div",Bat,[no[6]||(no[6]=ye("h3",{class:"text-white text-xl font-semibold"},"Recent Packets",-1)),ye("span",Rat," ("+Fi(Vr.value.length)+" of "+Fi(Ol(s).recentPackets.length)+") ",1),Je.value?(ci(),wi("span",{key:0,class:"text-primary text-sm bg-primary/10 px-2 py-1 rounded-md border border-primary/20",title:`Filter activated at ${Ti.value}`}," Live Mode (since "+Fi(Ti.value)+") ",9,Nat)):Uo("",!0),Ol(s).isLoading?(ci(),wi("span",jat,"Loading...")):Uo("",!0),Ol(s).error?(ci(),wi("span",Uat,Fi(Ol(s).error),1)):Uo("",!0)]),ye("div",Vat,[ye("div",Hat,[no[7]||(no[7]=ye("label",{class:"text-dark-text text-xs mb-1"},"Type",-1)),Gp(ye("select",{"onUpdate:modelValue":no[0]||(no[0]=mo=>ce.value=mo),class:"glass-card border border-dark-border rounded-[10px] px-3 py-2 text-white text-sm focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary/20 transition-all duration-200 min-w-[120px] cursor-pointer hover:border-primary/50"},[(ci(),wi(_u,null,Mh(Ar,mo=>ye("option",{key:mo,value:mo,class:"bg-[#1A1E1F] text-white"},Fi(mo==="all"?"All Types":`Type ${mo} (${Vi(parseInt(mo))})`),9,Wat)),64))],512),[[vA,ce.value]])]),ye("div",qat,[no[8]||(no[8]=ye("label",{class:"text-dark-text text-xs mb-1"},"Route",-1)),Gp(ye("select",{"onUpdate:modelValue":no[1]||(no[1]=mo=>Ie.value=mo),class:"glass-card border border-dark-border rounded-[10px] px-3 py-2 text-white text-sm focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary/20 transition-all duration-200 min-w-[120px] cursor-pointer hover:border-primary/50"},[(ci(),wi(_u,null,Mh(kr,mo=>ye("option",{key:mo,value:mo,class:"bg-[#1A1E1F] text-white"},Fi(mo==="all"?"All Routes":`Route ${mo} (${Nn(parseInt(mo))})`),9,$at)),64))],512),[[vA,Ie.value]])]),ye("div",Zat,[no[9]||(no[9]=ye("label",{class:"text-dark-text text-xs mb-1"},"Filter",-1)),ye("button",{onClick:sa,class:Fo(["glass-card border rounded-[10px] px-4 py-2 text-sm transition-all duration-200 focus:outline-none focus:ring-1 focus:ring-primary/20 min-w-[120px]",{"border-primary bg-primary/10 text-primary":Je.value,"border-dark-border text-dark-text hover:border-primary hover:text-white hover:bg-primary/5":!Je.value}])},Fi(Je.value?"New Only":"Show New"),3)]),ye("div",Gat,[no[10]||(no[10]=ye("label",{class:"text-transparent text-xs mb-1"},".",-1)),ye("button",{onClick:Hn,class:Fo(["glass-card border border-dark-border hover:border-primary rounded-[10px] px-4 py-2 text-dark-text hover:text-white text-sm transition-all duration-200 focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary/20",{"opacity-50 cursor-not-allowed hover:border-dark-border hover:text-dark-text":ce.value==="all"&&Ie.value==="all"&&!Je.value,"hover:bg-primary/10":ce.value!=="all"||Ie.value!=="all"||Je.value}]),disabled:ce.value==="all"&&Ie.value==="all"&&!Je.value}," Reset ",10,Yat)])])]),no[14]||(no[14]=Ff('TimeTypeRouteLENPath/HashesRSSISNRScoreTX DelayStatus',1)),ye("div",Kat,[El(WK,{name:"packet-list",tag:"div",class:"space-y-4",appear:""},{default:ew(()=>[(ci(!0),wi(_u,null,Mh(fn.value,(mo,Ts)=>(ci(),wi("div",{key:`${mo.packet_hash}_${mo.timestamp}_${Ts}`,class:Fo(["packet-row border-b border-dark-border/50 pb-4 hover:bg-white/5 transition-colors duration-200 cursor-pointer rounded-[10px] p-2 border-l-4",$n(mo.type)]),onClick:xl=>jt(mo)},[ye("div",Jat,[ye("div",Qat,Fi(ii(mo.timestamp)),1),ye("div",tot,[ye("div",{class:Fo(["w-2 h-2 rounded-full",Li(mo.type)])},null,2),ye("span",eot,Fi(Vi(mo.type)),1)]),ye("div",rot,[ye("span",{class:Fo(["inline-block px-2 py-1 rounded text-xs font-medium",Ri(mo.route)])},Fi(Nn(mo.route)),3)]),ye("div",not,Fi(mo.length)+"B",1),ye("div",iot,[ye("div",aot,[ye("span",oot,Fi(mo.src_hash?.slice(-4)||"????")+" → "+Fi(mo.dst_hash?.slice(-4)||"????"),1)])]),ye("div",sot,Fi(mo.rssi.toFixed(0)),1),ye("div",lot,Fi(mo.snr.toFixed(1))+"dB",1),ye("div",uot,Fi(mo.score.toFixed(2)),1),ye("div",cot,Fi(Number(mo.tx_delay_ms)>0?Number(mo.tx_delay_ms).toFixed(1)+"ms":""),1),ye("div",hot,[ye("div",null,[ye("span",{class:Fo(["text-xs font-medium",Wr(mo)])},Fi(Bi(mo)),3),mo.drop_reason?(ci(),wi("p",fot,Fi(mo.drop_reason),1)):Uo("",!0)])])])],10,Xat))),128))]),_:1})]),Dt.value>1?(ci(),wi("div",dot,[ye("div",pot,[ye("span",mot," Showing "+Fi((E.value-1)*a2+1)+" - "+Fi(Math.min(E.value*a2,Vr.value.length))+" of "+Fi(Vr.value.length)+" packets ",1),Dn.value?(ci(),wi("div",got,[no[11]||(no[11]=ye("span",{class:"text-dark-text text-xs"},"•",-1)),ye("button",{onClick:la,disabled:dt.value,class:Fo(["glass-card border border-primary rounded-[8px] px-3 py-1.5 text-xs transition-all duration-200 focus:outline-none focus:ring-1 focus:ring-primary/20 hover:bg-primary/5",{"text-primary border-primary cursor-pointer":!dt.value,"text-dark-text border-dark-border cursor-not-allowed opacity-50":dt.value}])},Fi(dt.value?"Loading...":`Load ${Math.min(200,cy-Y.value)} more`),11,vot),ye("span",yot,"("+Fi(Y.value)+"/"+Fi(cy)+" max)",1)])):Uo("",!0)]),ye("div",xot,[ye("button",{onClick:no[2]||(no[2]=mo=>E.value=E.value-1),disabled:E.value<=1,class:Fo(["glass-card border rounded-[10px] px-3 py-2 text-sm transition-all duration-200 focus:outline-none focus:ring-1 focus:ring-primary/20",{"border-dark-border text-dark-text cursor-not-allowed opacity-50":E.value<=1,"border-dark-border text-white hover:border-primary hover:text-primary hover:bg-primary/5":E.value>1}])}," Previous ",10,_ot),ye("div",bot,[E.value>3?(ci(),wi("button",{key:0,onClick:no[3]||(no[3]=mo=>E.value=1),class:"glass-card border border-dark-border hover:border-primary rounded-[8px] px-3 py-2 text-sm text-white hover:text-primary hover:bg-primary/5 transition-all duration-200 focus:outline-none focus:ring-1 focus:ring-primary/20"}," 1 ")):Uo("",!0),E.value>4?(ci(),wi("span",wot,"...")):Uo("",!0),(ci(!0),wi(_u,null,Mh(Array.from({length:Math.min(5,Dt.value)},(mo,Ts)=>Math.max(1,Math.min(E.value-2,Dt.value-4))+Ts).filter(mo=>mo<=Dt.value),mo=>(ci(),wi("button",{key:mo,onClick:Ts=>E.value=mo,class:Fo(["glass-card border rounded-[8px] px-3 py-2 text-sm transition-all duration-200 focus:outline-none focus:ring-1 focus:ring-primary/20",{"border-primary bg-primary/10 text-primary":E.value===mo,"border-dark-border text-white hover:border-primary hover:text-primary hover:bg-primary/5":E.value!==mo}])},Fi(mo),11,kot))),128)),E.valueE.value=Dt.value),class:"glass-card border border-dark-border hover:border-primary rounded-[8px] px-3 py-2 text-sm text-white hover:text-primary hover:bg-primary/5 transition-all duration-200 focus:outline-none focus:ring-1 focus:ring-primary/20"},Fi(Dt.value),1)):Uo("",!0)]),ye("button",{onClick:no[5]||(no[5]=mo=>E.value=E.value+1),disabled:E.value>=Dt.value,class:Fo(["glass-card border rounded-[10px] px-3 py-2 text-sm transition-all duration-200 focus:outline-none focus:ring-1 focus:ring-primary/20",{"border-dark-border text-dark-text cursor-not-allowed opacity-50":E.value>=Dt.value,"border-dark-border text-white hover:border-primary hover:text-primary hover:bg-primary/5":E.value(ci(),wi("div",null,[El(_nt),ye("div",zot,[El(Znt),El(Ont)]),El(Iot)]))}}),Dot={class:"bg-white/5 border border-white/10 rounded-lg p-4 mb-6"},Fot={class:"flex items-center gap-3"},Bot={class:"flex-1 min-w-0"},Rot={class:"text-white font-medium truncate"},Not={class:"text-white/60 text-sm font-mono"},jot={key:0,class:"text-white/50 text-xs"},Uot={key:1,class:"text-white/50 text-xs"},Vot=Ec({__name:"DeleteNeighborModal",props:{show:{type:Boolean},neighbor:{}},emits:["close","delete"],setup(d,{emit:s}){const E=d,R=s,Y=()=>{E.neighbor&&(R("delete",E.neighbor.id),dt())},dt=()=>{R("close")},_t=zt=>{zt.target===zt.currentTarget&&dt()};return(zt,jt)=>zt.show&&zt.neighbor?(ci(),wi("div",{key:0,onClick:_t,class:"fixed inset-0 bg-black/80 backdrop-blur-lg z-[99999] flex items-center justify-center p-4",style:{"backdrop-filter":"blur(8px) saturate(180%)",position:"fixed",top:"0",left:"0",right:"0",bottom:"0"}},[ye("div",{class:"glass-card rounded-[20px] p-6 w-full max-w-md border border-white/10",onClick:jt[0]||(jt[0]=Pm(()=>{},["stop"]))},[ye("div",{class:"flex items-center gap-3 mb-6"},[jt[2]||(jt[2]=ye("svg",{class:"w-6 h-6 text-accent-red",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[ye("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L3.732 16.5c-.77.833.192 2.5 1.732 2.5z"})],-1)),jt[3]||(jt[3]=ye("div",null,[ye("h3",{class:"text-xl font-semibold text-white"},"Delete Neighbor"),ye("p",{class:"text-white/60 text-sm mt-1"}," Are you sure you want to delete this neighbor? ")],-1)),ye("button",{onClick:dt,class:"ml-auto text-white/60 hover:text-white transition-colors"},jt[1]||(jt[1]=[ye("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[ye("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"})],-1)]))]),ye("div",Dot,[ye("div",Fot,[ye("div",Bot,[ye("div",Rot,Fi(zt.neighbor?.node_name||zt.neighbor?.long_name||zt.neighbor?.short_name||"Unknown"),1),ye("div",Not," ID: "+Fi(zt.neighbor?.node_num_hex||zt.neighbor?.node_num||zt.neighbor?.id||"N/A"),1),zt.neighbor?.contact_type?(ci(),wi("div",jot,Fi(zt.neighbor.contact_type),1)):Uo("",!0),zt.neighbor?.hw_model?(ci(),wi("div",Uot,Fi(zt.neighbor.hw_model),1)):Uo("",!0)])])]),jt[4]||(jt[4]=ye("div",{class:"bg-accent-red/10 border border-accent-red/30 rounded-lg p-4 mb-6"},[ye("div",{class:"flex items-center gap-2 text-accent-red text-sm"},[ye("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[ye("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]),ye("span",null,"This action cannot be undone")])],-1)),ye("div",{class:"flex gap-3"},[ye("button",{onClick:dt,class:"flex-1 px-4 py-3 bg-white/5 hover:bg-white/10 border border-white/20 text-white rounded-lg transition-colors"}," Cancel "),ye("button",{onClick:Y,class:"flex-1 px-4 py-3 bg-accent-red/20 hover:bg-accent-red/30 border border-accent-red/50 text-accent-red rounded-lg transition-colors font-medium"}," Delete ")])])])):Uo("",!0)}});function tD(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var v2={exports:{}};/* @preserve * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade - */var wot=g2.exports,QL;function kot(){return QL||(QL=1,function(d,s){(function(E,B){B(s)})(wot,function(E){var B="1.9.4";function K(ct){var Bt,me,Qe,zr;for(me=1,Qe=arguments.length;me"u"||!L||!L.Mixin)){ct=cn(ct)?ct:[ct];for(var Bt=0;Bt0?Math.floor(ct):Math.ceil(ct)};Ma.prototype={clone:function(){return new Ma(this.x,this.y)},add:function(ct){return this.clone()._add(ho(ct))},_add:function(ct){return this.x+=ct.x,this.y+=ct.y,this},subtract:function(ct){return this.clone()._subtract(ho(ct))},_subtract:function(ct){return this.x-=ct.x,this.y-=ct.y,this},divideBy:function(ct){return this.clone()._divideBy(ct)},_divideBy:function(ct){return this.x/=ct,this.y/=ct,this},multiplyBy:function(ct){return this.clone()._multiplyBy(ct)},_multiplyBy:function(ct){return this.x*=ct,this.y*=ct,this},scaleBy:function(ct){return new Ma(this.x*ct.x,this.y*ct.y)},unscaleBy:function(ct){return new Ma(this.x/ct.x,this.y/ct.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=zo(this.x),this.y=zo(this.y),this},distanceTo:function(ct){ct=ho(ct);var Bt=ct.x-this.x,me=ct.y-this.y;return Math.sqrt(Bt*Bt+me*me)},equals:function(ct){return ct=ho(ct),ct.x===this.x&&ct.y===this.y},contains:function(ct){return ct=ho(ct),Math.abs(ct.x)<=Math.abs(this.x)&&Math.abs(ct.y)<=Math.abs(this.y)},toString:function(){return"Point("+er(this.x)+", "+er(this.y)+")"}};function ho(ct,Bt,me){return ct instanceof Ma?ct:cn(ct)?new Ma(ct[0],ct[1]):ct==null?ct:typeof ct=="object"&&"x"in ct&&"y"in ct?new Ma(ct.x,ct.y):new Ma(ct,Bt,me)}function mo(ct,Bt){if(ct)for(var me=Bt?[ct,Bt]:ct,Qe=0,zr=me.length;Qe=this.min.x&&me.x<=this.max.x&&Bt.y>=this.min.y&&me.y<=this.max.y},intersects:function(ct){ct=Ts(ct);var Bt=this.min,me=this.max,Qe=ct.min,zr=ct.max,An=zr.x>=Bt.x&&Qe.x<=me.x,qi=zr.y>=Bt.y&&Qe.y<=me.y;return An&&qi},overlaps:function(ct){ct=Ts(ct);var Bt=this.min,me=this.max,Qe=ct.min,zr=ct.max,An=zr.x>Bt.x&&Qe.xBt.y&&Qe.y=Bt.lat&&zr.lat<=me.lat&&Qe.lng>=Bt.lng&&zr.lng<=me.lng},intersects:function(ct){ct=ko(ct);var Bt=this._southWest,me=this._northEast,Qe=ct.getSouthWest(),zr=ct.getNorthEast(),An=zr.lat>=Bt.lat&&Qe.lat<=me.lat,qi=zr.lng>=Bt.lng&&Qe.lng<=me.lng;return An&&qi},overlaps:function(ct){ct=ko(ct);var Bt=this._southWest,me=this._northEast,Qe=ct.getSouthWest(),zr=ct.getNorthEast(),An=zr.lat>Bt.lat&&Qe.latBt.lng&&Qe.lng1,l6=function(){var ct=!1;try{var Bt=Object.defineProperty({},"passive",{get:function(){ct=!0}});window.addEventListener("testPassiveEventSupport",De,Bt),window.removeEventListener("testPassiveEventSupport",De,Bt)}catch{}return ct}(),u6=function(){return!!document.createElement("canvas").getContext}(),A_=!!(document.createElementNS&&go("svg").createSVGRect),c6=!!A_&&function(){var ct=document.createElement("div");return ct.innerHTML="",(ct.firstChild&&ct.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),h6=!A_&&function(){try{var ct=document.createElement("div");ct.innerHTML='';var Bt=ct.firstChild;return Bt.style.behavior="url(#default#VML)",Bt&&typeof Bt.adj=="object"}catch{return!1}}(),mw=navigator.platform.indexOf("Mac")===0,M_=navigator.platform.indexOf("Linux")===0;function r0(ct){return navigator.userAgent.toLowerCase().indexOf(ct)>=0}var El={ie:ms,ielt9:bs,edge:as,webkit:Yo,android:Ol,android23:Ns,androidStock:vu,opera:tc,chrome:fh,gecko:Fc,safari:op,phantom:Kd,opera12:e0,win:d0,ie3d:Dm,webkit3d:uv,gecko3d:sp,any3d:p0,mobile:Fm,mobileWebkit:Fy,mobileWebkit3d:n6,msPointer:fw,pointer:dw,touch:i6,touchNative:pw,mobileOpera:a6,mobileGecko:o6,retina:s6,passiveEvents:l6,canvas:u6,svg:A_,vml:h6,inlineSvg:c6,mac:mw,linux:M_},Yc=El.msPointer?"MSPointerDown":"pointerdown",kd=El.msPointer?"MSPointerMove":"pointermove",S_=El.msPointer?"MSPointerUp":"pointerup",Zu=El.msPointer?"MSPointerCancel":"pointercancel",_1={touchstart:Yc,touchmove:kd,touchend:S_,touchcancel:Zu},gw={touchstart:p6,touchmove:G0,touchend:G0,touchcancel:G0},cv={},Ry=!1;function b1(ct,Bt,me){return Bt==="touchstart"&&E_(),gw[Bt]?(me=gw[Bt].bind(this,me),ct.addEventListener(_1[Bt],me,!1),me):(console.warn("wrong event specified:",Bt),De)}function f6(ct,Bt,me){if(!_1[Bt]){console.warn("wrong event specified:",Bt);return}ct.removeEventListener(_1[Bt],me,!1)}function Jo(ct){cv[ct.pointerId]=ct}function d6(ct){cv[ct.pointerId]&&(cv[ct.pointerId]=ct)}function w1(ct){delete cv[ct.pointerId]}function E_(){Ry||(document.addEventListener(Yc,Jo,!0),document.addEventListener(kd,d6,!0),document.addEventListener(S_,w1,!0),document.addEventListener(Zu,w1,!0),Ry=!0)}function G0(ct,Bt){if(Bt.pointerType!==(Bt.MSPOINTER_TYPE_MOUSE||"mouse")){Bt.touches=[];for(var me in cv)Bt.touches.push(cv[me]);Bt.changedTouches=[Bt],ct(Bt)}}function p6(ct,Bt){Bt.MSPOINTER_TYPE_TOUCH&&Bt.pointerType===Bt.MSPOINTER_TYPE_TOUCH&&mc(Bt),G0(ct,Bt)}function m6(ct){var Bt={},me,Qe;for(Qe in ct)me=ct[Qe],Bt[Qe]=me&&me.bind?me.bind(ct):me;return ct=Bt,Bt.type="dblclick",Bt.detail=2,Bt.isTrusted=!1,Bt._simulated=!0,Bt}var g6=200;function v6(ct,Bt){ct.addEventListener("dblclick",Bt);var me=0,Qe;function zr(An){if(An.detail!==1){Qe=An.detail;return}if(!(An.pointerType==="mouse"||An.sourceCapabilities&&!An.sourceCapabilities.firesTouchEvents)){var qi=_w(An);if(!(qi.some(function(Ka){return Ka instanceof HTMLLabelElement&&Ka.attributes.for})&&!qi.some(function(Ka){return Ka instanceof HTMLInputElement||Ka instanceof HTMLSelectElement}))){var ja=Date.now();ja-me<=g6?(Qe++,Qe===2&&Bt(m6(An))):Qe=1,me=ja}}}return ct.addEventListener("click",zr),{dblclick:Bt,simDblclick:zr}}function C_(ct,Bt){ct.removeEventListener("dblclick",Bt.dblclick),ct.removeEventListener("click",Bt.simDblclick)}var L_=Nm(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),k1=Nm(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),vw=k1==="webkitTransition"||k1==="OTransition"?k1+"End":"transitionend";function yw(ct){return typeof ct=="string"?document.getElementById(ct):ct}function T1(ct,Bt){var me=ct.style[Bt]||ct.currentStyle&&ct.currentStyle[Bt];if((!me||me==="auto")&&document.defaultView){var Qe=document.defaultView.getComputedStyle(ct,null);me=Qe?Qe[Bt]:null}return me==="auto"?null:me}function Ec(ct,Bt,me){var Qe=document.createElement(ct);return Qe.className=Bt||"",me&&me.appendChild(Qe),Qe}function Tf(ct){var Bt=ct.parentNode;Bt&&Bt.removeChild(ct)}function By(ct){for(;ct.firstChild;)ct.removeChild(ct.firstChild)}function hv(ct){var Bt=ct.parentNode;Bt&&Bt.lastChild!==ct&&Bt.appendChild(ct)}function kn(ct){var Bt=ct.parentNode;Bt&&Bt.firstChild!==ct&&Bt.insertBefore(ct,Bt.firstChild)}function P_(ct,Bt){if(ct.classList!==void 0)return ct.classList.contains(Bt);var me=Bm(ct);return me.length>0&&new RegExp("(^|\\s)"+Bt+"(\\s|$)").test(me)}function Wu(ct,Bt){if(ct.classList!==void 0)for(var me=Mr(Bt),Qe=0,zr=me.length;Qe0?2*window.devicePixelRatio:1;function Tc(ct){return El.edge?ct.wheelDeltaY/2:ct.deltaY&&ct.deltaMode===0?-ct.deltaY/Xc:ct.deltaY&&ct.deltaMode===1?-ct.deltaY*20:ct.deltaY&&ct.deltaMode===2?-ct.deltaY*60:ct.deltaX||ct.deltaZ?0:ct.wheelDelta?(ct.wheelDeltaY||ct.wheelDelta)/2:ct.detail&&Math.abs(ct.detail)<32765?-ct.detail*20:ct.detail?ct.detail/-32765*60:0}function bg(ct,Bt){var me=Bt.relatedTarget;if(!me)return!0;try{for(;me&&me!==ct;)me=me.parentNode}catch{return!1}return me!==ct}var Fp={__proto__:null,on:zu,off:Nh,stopPropagation:n0,disableScrollPropagation:dm,disableClickPropagation:fv,preventDefault:mc,stop:_g,getPropagationPath:_w,getMousePosition:Xd,getWheelDelta:Tc,isExternalTarget:bg,addListener:zu,removeListener:Nh},S1=si.extend({run:function(ct,Bt,me,Qe){this.stop(),this._el=ct,this._inProgress=!0,this._duration=me||.25,this._easeOutPower=1/Math.max(Qe||.5,.2),this._startPos=Rc(ct),this._offset=Bt.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Fi(this._animate,this),this._step()},_step:function(ct){var Bt=+new Date-this._startTime,me=this._duration*1e3;Btthis.options.maxZoom)?this.setZoom(ct):this},panInsideBounds:function(ct,Bt){this._enforcingBounds=!0;var me=this.getCenter(),Qe=this._limitCenter(me,this._zoom,ko(ct));return me.equals(Qe)||this.panTo(Qe,Bt),this._enforcingBounds=!1,this},panInside:function(ct,Bt){Bt=Bt||{};var me=ho(Bt.paddingTopLeft||Bt.padding||[0,0]),Qe=ho(Bt.paddingBottomRight||Bt.padding||[0,0]),zr=this.project(this.getCenter()),An=this.project(ct),qi=this.getPixelBounds(),ja=Ts([qi.min.add(me),qi.max.subtract(Qe)]),Ka=ja.getSize();if(!ja.contains(An)){this._enforcingBounds=!0;var xo=An.subtract(ja.getCenter()),Ws=ja.extend(An).getSize().subtract(Ka);zr.x+=xo.x<0?-Ws.x:Ws.x,zr.y+=xo.y<0?-Ws.y:Ws.y,this.panTo(this.unproject(zr),Bt),this._enforcingBounds=!1}return this},invalidateSize:function(ct){if(!this._loaded)return this;ct=K({animate:!1,pan:!0},ct===!0?{animate:!0}:ct);var Bt=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var me=this.getSize(),Qe=Bt.divideBy(2).round(),zr=me.divideBy(2).round(),An=Qe.subtract(zr);return!An.x&&!An.y?this:(ct.animate&&ct.pan?this.panBy(An):(ct.pan&&this._rawPanBy(An),this.fire("move"),ct.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(_t(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:Bt,newSize:me}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(ct){if(ct=this._locateOptions=K({timeout:1e4,watch:!1},ct),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var Bt=_t(this._handleGeolocationResponse,this),me=_t(this._handleGeolocationError,this);return ct.watch?this._locationWatchId=navigator.geolocation.watchPosition(Bt,me,ct):navigator.geolocation.getCurrentPosition(Bt,me,ct),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(ct){if(this._container._leaflet_id){var Bt=ct.code,me=ct.message||(Bt===1?"permission denied":Bt===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:Bt,message:"Geolocation error: "+me+"."})}},_handleGeolocationResponse:function(ct){if(this._container._leaflet_id){var Bt=ct.coords.latitude,me=ct.coords.longitude,Qe=new ro(Bt,me),zr=Qe.toBounds(ct.coords.accuracy*2),An=this._locateOptions;if(An.setView){var qi=this.getBoundsZoom(zr);this.setView(Qe,An.maxZoom?Math.min(qi,An.maxZoom):qi)}var ja={latlng:Qe,bounds:zr,timestamp:ct.timestamp};for(var Ka in ct.coords)typeof ct.coords[Ka]=="number"&&(ja[Ka]=ct.coords[Ka]);this.fire("locationfound",ja)}},addHandler:function(ct,Bt){if(!Bt)return this;var me=this[ct]=new Bt(this);return this._handlers.push(me),this.options[ct]&&me.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Tf(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Pi(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var ct;for(ct in this._layers)this._layers[ct].remove();for(ct in this._panes)Tf(this._panes[ct]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(ct,Bt){var me="leaflet-pane"+(ct?" leaflet-"+ct.replace("Pane","")+"-pane":""),Qe=Ec("div",me,Bt||this._mapPane);return ct&&(this._panes[ct]=Qe),Qe},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var ct=this.getPixelBounds(),Bt=this.unproject(ct.getBottomLeft()),me=this.unproject(ct.getTopRight());return new xl(Bt,me)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(ct,Bt,me){ct=ko(ct),me=ho(me||[0,0]);var Qe=this.getZoom()||0,zr=this.getMinZoom(),An=this.getMaxZoom(),qi=ct.getNorthWest(),ja=ct.getSouthEast(),Ka=this.getSize().subtract(me),xo=Ts(this.project(ja,Qe),this.project(qi,Qe)).getSize(),Ws=El.any3d?this.options.zoomSnap:1,_l=Ka.x/xo.x,Fu=Ka.y/xo.y,Md=Bt?Math.max(_l,Fu):Math.min(_l,Fu);return Qe=this.getScaleZoom(Md,Qe),Ws&&(Qe=Math.round(Qe/(Ws/100))*(Ws/100),Qe=Bt?Math.ceil(Qe/Ws)*Ws:Math.floor(Qe/Ws)*Ws),Math.max(zr,Math.min(An,Qe))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new Ma(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(ct,Bt){var me=this._getTopLeftPoint(ct,Bt);return new mo(me,me.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(ct){return this.options.crs.getProjectedBounds(ct===void 0?this.getZoom():ct)},getPane:function(ct){return typeof ct=="string"?this._panes[ct]:ct},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(ct,Bt){var me=this.options.crs;return Bt=Bt===void 0?this._zoom:Bt,me.scale(ct)/me.scale(Bt)},getScaleZoom:function(ct,Bt){var me=this.options.crs;Bt=Bt===void 0?this._zoom:Bt;var Qe=me.zoom(ct*me.scale(Bt));return isNaN(Qe)?1/0:Qe},project:function(ct,Bt){return Bt=Bt===void 0?this._zoom:Bt,this.options.crs.latLngToPoint(Ia(ct),Bt)},unproject:function(ct,Bt){return Bt=Bt===void 0?this._zoom:Bt,this.options.crs.pointToLatLng(ho(ct),Bt)},layerPointToLatLng:function(ct){var Bt=ho(ct).add(this.getPixelOrigin());return this.unproject(Bt)},latLngToLayerPoint:function(ct){var Bt=this.project(Ia(ct))._round();return Bt._subtract(this.getPixelOrigin())},wrapLatLng:function(ct){return this.options.crs.wrapLatLng(Ia(ct))},wrapLatLngBounds:function(ct){return this.options.crs.wrapLatLngBounds(ko(ct))},distance:function(ct,Bt){return this.options.crs.distance(Ia(ct),Ia(Bt))},containerPointToLayerPoint:function(ct){return ho(ct).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(ct){return ho(ct).add(this._getMapPanePos())},containerPointToLatLng:function(ct){var Bt=this.containerPointToLayerPoint(ho(ct));return this.layerPointToLatLng(Bt)},latLngToContainerPoint:function(ct){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Ia(ct)))},mouseEventToContainerPoint:function(ct){return Xd(ct,this._container)},mouseEventToLayerPoint:function(ct){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(ct))},mouseEventToLatLng:function(ct){return this.layerPointToLatLng(this.mouseEventToLayerPoint(ct))},_initContainer:function(ct){var Bt=this._container=yw(ct);if(Bt){if(Bt._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");zu(Bt,"scroll",this._onScroll,this),this._containerId=jt(Bt)},_initLayout:function(){var ct=this._container;this._fadeAnimated=this.options.fadeAnimation&&El.any3d,Wu(ct,"leaflet-container"+(El.touch?" leaflet-touch":"")+(El.retina?" leaflet-retina":"")+(El.ielt9?" leaflet-oldie":"")+(El.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var Bt=T1(ct,"position");Bt!=="absolute"&&Bt!=="relative"&&Bt!=="fixed"&&Bt!=="sticky"&&(ct.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var ct=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ic(this._mapPane,new Ma(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Wu(ct.markerPane,"leaflet-zoom-hide"),Wu(ct.shadowPane,"leaflet-zoom-hide"))},_resetView:function(ct,Bt,me){ic(this._mapPane,new Ma(0,0));var Qe=!this._loaded;this._loaded=!0,Bt=this._limitZoom(Bt),this.fire("viewprereset");var zr=this._zoom!==Bt;this._moveStart(zr,me)._move(ct,Bt)._moveEnd(zr),this.fire("viewreset"),Qe&&this.fire("load")},_moveStart:function(ct,Bt){return ct&&this.fire("zoomstart"),Bt||this.fire("movestart"),this},_move:function(ct,Bt,me,Qe){Bt===void 0&&(Bt=this._zoom);var zr=this._zoom!==Bt;return this._zoom=Bt,this._lastCenter=ct,this._pixelOrigin=this._getNewPixelOrigin(ct),Qe?me&&me.pinch&&this.fire("zoom",me):((zr||me&&me.pinch)&&this.fire("zoom",me),this.fire("move",me)),this},_moveEnd:function(ct){return ct&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Pi(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(ct){ic(this._mapPane,this._getMapPanePos().subtract(ct))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(ct){this._targets={},this._targets[jt(this._container)]=this;var Bt=ct?Nh:zu;Bt(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&Bt(window,"resize",this._onResize,this),El.any3d&&this.options.transform3DLimit&&(ct?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Pi(this._resizeRequest),this._resizeRequest=Fi(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var ct=this._getMapPanePos();Math.max(Math.abs(ct.x),Math.abs(ct.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(ct,Bt){for(var me=[],Qe,zr=Bt==="mouseout"||Bt==="mouseover",An=ct.target||ct.srcElement,qi=!1;An;){if(Qe=this._targets[jt(An)],Qe&&(Bt==="click"||Bt==="preclick")&&this._draggableMoved(Qe)){qi=!0;break}if(Qe&&Qe.listens(Bt,!0)&&(zr&&!bg(An,ct)||(me.push(Qe),zr))||An===this._container)break;An=An.parentNode}return!me.length&&!qi&&!zr&&this.listens(Bt,!0)&&(me=[this]),me},_isClickDisabled:function(ct){for(;ct&&ct!==this._container;){if(ct._leaflet_disable_click)return!0;ct=ct.parentNode}},_handleDOMEvent:function(ct){var Bt=ct.target||ct.srcElement;if(!(!this._loaded||Bt._leaflet_disable_events||ct.type==="click"&&this._isClickDisabled(Bt))){var me=ct.type;me==="mousedown"&&Ud(Bt),this._fireDOMEvent(ct,me)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(ct,Bt,me){if(ct.type==="click"){var Qe=K({},ct);Qe.type="preclick",this._fireDOMEvent(Qe,Qe.type,me)}var zr=this._findEventTargets(ct,Bt);if(me){for(var An=[],qi=0;qi0?Math.round(ct-Bt)/2:Math.max(0,Math.ceil(ct))-Math.max(0,Math.floor(Bt))},_limitZoom:function(ct){var Bt=this.getMinZoom(),me=this.getMaxZoom(),Qe=El.any3d?this.options.zoomSnap:1;return Qe&&(ct=Math.round(ct/Qe)*Qe),Math.max(Bt,Math.min(me,ct))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Ff(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(ct,Bt){var me=this._getCenterOffset(ct)._trunc();return(Bt&&Bt.animate)!==!0&&!this.getSize().contains(me)?!1:(this.panBy(me,Bt),!0)},_createAnimProxy:function(){var ct=this._proxy=Ec("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(ct),this.on("zoomanim",function(Bt){var me=L_,Qe=this._proxy.style[me];mu(this._proxy,this.project(Bt.center,Bt.zoom),this.getZoomScale(Bt.zoom,1)),Qe===this._proxy.style[me]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Tf(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var ct=this.getCenter(),Bt=this.getZoom();mu(this._proxy,this.project(ct,Bt),this.getZoomScale(Bt,1))},_catchTransitionEnd:function(ct){this._animatingZoom&&ct.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(ct,Bt,me){if(this._animatingZoom)return!0;if(me=me||{},!this._zoomAnimated||me.animate===!1||this._nothingToAnimate()||Math.abs(Bt-this._zoom)>this.options.zoomAnimationThreshold)return!1;var Qe=this.getZoomScale(Bt),zr=this._getCenterOffset(ct)._divideBy(1-1/Qe);return me.animate!==!0&&!this.getSize().contains(zr)?!1:(Fi(function(){this._moveStart(!0,me.noMoveStart||!1)._animateZoom(ct,Bt,!0)},this),!0)},_animateZoom:function(ct,Bt,me,Qe){this._mapPane&&(me&&(this._animatingZoom=!0,this._animateToCenter=ct,this._animateToZoom=Bt,Wu(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:ct,zoom:Bt,noUpdate:Qe}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(_t(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Ff(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Vs(ct,Bt){return new Ac(ct,Bt)}var lp=Yi.extend({options:{position:"topright"},initialize:function(ct){Tr(this,ct)},getPosition:function(){return this.options.position},setPosition:function(ct){var Bt=this._map;return Bt&&Bt.removeControl(this),this.options.position=ct,Bt&&Bt.addControl(this),this},getContainer:function(){return this._container},addTo:function(ct){this.remove(),this._map=ct;var Bt=this._container=this.onAdd(ct),me=this.getPosition(),Qe=ct._controlCorners[me];return Wu(Bt,"leaflet-control"),me.indexOf("bottom")!==-1?Qe.insertBefore(Bt,Qe.firstChild):Qe.appendChild(Bt),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Tf(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(ct){this._map&&ct&&ct.screenX>0&&ct.screenY>0&&this._map.getContainer().focus()}}),i0=function(ct){return new lp(ct)};Ac.include({addControl:function(ct){return ct.addTo(this),this},removeControl:function(ct){return ct.remove(),this},_initControlPos:function(){var ct=this._controlCorners={},Bt="leaflet-",me=this._controlContainer=Ec("div",Bt+"control-container",this._container);function Qe(zr,An){var qi=Bt+zr+" "+Bt+An;ct[zr+An]=Ec("div",qi,me)}Qe("top","left"),Qe("top","right"),Qe("bottom","left"),Qe("bottom","right")},_clearControlPos:function(){for(var ct in this._controlCorners)Tf(this._controlCorners[ct]);Tf(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var dv=lp.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(ct,Bt,me,Qe){return me1,this._baseLayersList.style.display=ct?"":"none"),this._separator.style.display=Bt&&ct?"":"none",this},_onLayerChange:function(ct){this._handlingClick||this._update();var Bt=this._getLayer(jt(ct.target)),me=Bt.overlay?ct.type==="add"?"overlayadd":"overlayremove":ct.type==="add"?"baselayerchange":null;me&&this._map.fire(me,Bt)},_createRadioElement:function(ct,Bt){var me='",Qe=document.createElement("div");return Qe.innerHTML=me,Qe.firstChild},_addItem:function(ct){var Bt=document.createElement("label"),me=this._map.hasLayer(ct.layer),Qe;ct.overlay?(Qe=document.createElement("input"),Qe.type="checkbox",Qe.className="leaflet-control-layers-selector",Qe.defaultChecked=me):Qe=this._createRadioElement("leaflet-base-layers_"+jt(this),me),this._layerControlInputs.push(Qe),Qe.layerId=jt(ct.layer),zu(Qe,"click",this._onInputClick,this);var zr=document.createElement("span");zr.innerHTML=" "+ct.name;var An=document.createElement("span");Bt.appendChild(An),An.appendChild(Qe),An.appendChild(zr);var qi=ct.overlay?this._overlaysList:this._baseLayersList;return qi.appendChild(Bt),this._checkDisabledLayers(),Bt},_onInputClick:function(){if(!this._preventClick){var ct=this._layerControlInputs,Bt,me,Qe=[],zr=[];this._handlingClick=!0;for(var An=ct.length-1;An>=0;An--)Bt=ct[An],me=this._getLayer(Bt.layerId).layer,Bt.checked?Qe.push(me):Bt.checked||zr.push(me);for(An=0;An=0;zr--)Bt=ct[zr],me=this._getLayer(Bt.layerId).layer,Bt.disabled=me.options.minZoom!==void 0&&Qeme.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var ct=this._section;this._preventClick=!0,zu(ct,"click",mc),this.expand();var Bt=this;setTimeout(function(){Nh(ct,"click",mc),Bt._preventClick=!1})}}),Y0=function(ct,Bt,me){return new dv(ct,Bt,me)},Ls=lp.extend({options:{position:"topleft",zoomInText:'+',zoomInTitle:"Zoom in",zoomOutText:'−',zoomOutTitle:"Zoom out"},onAdd:function(ct){var Bt="leaflet-control-zoom",me=Ec("div",Bt+" leaflet-bar"),Qe=this.options;return this._zoomInButton=this._createButton(Qe.zoomInText,Qe.zoomInTitle,Bt+"-in",me,this._zoomIn),this._zoomOutButton=this._createButton(Qe.zoomOutText,Qe.zoomOutTitle,Bt+"-out",me,this._zoomOut),this._updateDisabled(),ct.on("zoomend zoomlevelschange",this._updateDisabled,this),me},onRemove:function(ct){ct.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(ct){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(ct.shiftKey?3:1))},_createButton:function(ct,Bt,me,Qe,zr){var An=Ec("a",me,Qe);return An.innerHTML=ct,An.href="#",An.title=Bt,An.setAttribute("role","button"),An.setAttribute("aria-label",Bt),fv(An),zu(An,"click",_g),zu(An,"click",zr,this),zu(An,"click",this._refocusOnMap,this),An},_updateDisabled:function(){var ct=this._map,Bt="leaflet-disabled";Ff(this._zoomInButton,Bt),Ff(this._zoomOutButton,Bt),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||ct._zoom===ct.getMinZoom())&&(Wu(this._zoomOutButton,Bt),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||ct._zoom===ct.getMaxZoom())&&(Wu(this._zoomInButton,Bt),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ac.mergeOptions({zoomControl:!0}),Ac.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ls,this.addControl(this.zoomControl))});var bw=function(ct){return new Ls(ct)},I_=lp.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(ct){var Bt="leaflet-control-scale",me=Ec("div",Bt),Qe=this.options;return this._addScales(Qe,Bt+"-line",me),ct.on(Qe.updateWhenIdle?"moveend":"move",this._update,this),ct.whenReady(this._update,this),me},onRemove:function(ct){ct.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(ct,Bt,me){ct.metric&&(this._mScale=Ec("div",Bt,me)),ct.imperial&&(this._iScale=Ec("div",Bt,me))},_update:function(){var ct=this._map,Bt=ct.getSize().y/2,me=ct.distance(ct.containerPointToLatLng([0,Bt]),ct.containerPointToLatLng([this.options.maxWidth,Bt]));this._updateScales(me)},_updateScales:function(ct){this.options.metric&&ct&&this._updateMetric(ct),this.options.imperial&&ct&&this._updateImperial(ct)},_updateMetric:function(ct){var Bt=this._getRoundNum(ct),me=Bt<1e3?Bt+" m":Bt/1e3+" km";this._updateScale(this._mScale,me,Bt/ct)},_updateImperial:function(ct){var Bt=ct*3.2808399,me,Qe,zr;Bt>5280?(me=Bt/5280,Qe=this._getRoundNum(me),this._updateScale(this._iScale,Qe+" mi",Qe/me)):(zr=this._getRoundNum(Bt),this._updateScale(this._iScale,zr+" ft",zr/Bt))},_updateScale:function(ct,Bt,me){ct.style.width=Math.round(this.options.maxWidth*me)+"px",ct.innerHTML=Bt},_getRoundNum:function(ct){var Bt=Math.pow(10,(Math.floor(ct)+"").length-1),me=ct/Bt;return me=me>=10?10:me>=5?5:me>=3?3:me>=2?2:1,Bt*me}}),y6=function(ct){return new I_(ct)},z_='',O_=lp.extend({options:{position:"bottomright",prefix:''+(El.inlineSvg?z_+" ":"")+"Leaflet"},initialize:function(ct){Tr(this,ct),this._attributions={}},onAdd:function(ct){ct.attributionControl=this,this._container=Ec("div","leaflet-control-attribution"),fv(this._container);for(var Bt in ct._layers)ct._layers[Bt].getAttribution&&this.addAttribution(ct._layers[Bt].getAttribution());return this._update(),ct.on("layeradd",this._addAttribution,this),this._container},onRemove:function(ct){ct.off("layeradd",this._addAttribution,this)},_addAttribution:function(ct){ct.layer.getAttribution&&(this.addAttribution(ct.layer.getAttribution()),ct.layer.once("remove",function(){this.removeAttribution(ct.layer.getAttribution())},this))},setPrefix:function(ct){return this.options.prefix=ct,this._update(),this},addAttribution:function(ct){return ct?(this._attributions[ct]||(this._attributions[ct]=0),this._attributions[ct]++,this._update(),this):this},removeAttribution:function(ct){return ct?(this._attributions[ct]&&(this._attributions[ct]--,this._update()),this):this},_update:function(){if(this._map){var ct=[];for(var Bt in this._attributions)this._attributions[Bt]&&ct.push(Bt);var me=[];this.options.prefix&&me.push(this.options.prefix),ct.length&&me.push(ct.join(", ")),this._container.innerHTML=me.join(' | ')}}});Ac.mergeOptions({attributionControl:!0}),Ac.addInitHook(function(){this.options.attributionControl&&new O_().addTo(this)});var x6=function(ct){return new O_(ct)};lp.Layers=dv,lp.Zoom=Ls,lp.Scale=I_,lp.Attribution=O_,i0.layers=Y0,i0.zoom=bw,i0.scale=y6,i0.attribution=x6;var K0=Yi.extend({initialize:function(ct){this._map=ct},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});K0.addTo=function(ct,Bt){return ct.addHandler(Bt,this),this};var up={Events:Ni},P0=El.touch?"touchstart mousedown":"mousedown",jm=si.extend({options:{clickTolerance:3},initialize:function(ct,Bt,me,Qe){Tr(this,Qe),this._element=ct,this._dragStartTarget=Bt||ct,this._preventOutline=me},enable:function(){this._enabled||(zu(this._dragStartTarget,P0,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(jm._dragging===this&&this.finishDrag(!0),Nh(this._dragStartTarget,P0,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(ct){if(this._enabled&&(this._moved=!1,!P_(this._element,"leaflet-zoom-anim"))){if(ct.touches&&ct.touches.length!==1){jm._dragging===this&&this.finishDrag();return}if(!(jm._dragging||ct.shiftKey||ct.which!==1&&ct.button!==1&&!ct.touches)&&(jm._dragging=this,this._preventOutline&&Ud(this._element),Kc(),C0(),!this._moving)){this.fire("down");var Bt=ct.touches?ct.touches[0]:ct,me=Td(this._element);this._startPoint=new Ma(Bt.clientX,Bt.clientY),this._startPos=Rc(this._element),this._parentScale=M1(me);var Qe=ct.type==="mousedown";zu(document,Qe?"mousemove":"touchmove",this._onMove,this),zu(document,Qe?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(ct){if(this._enabled){if(ct.touches&&ct.touches.length>1){this._moved=!0;return}var Bt=ct.touches&&ct.touches.length===1?ct.touches[0]:ct,me=new Ma(Bt.clientX,Bt.clientY)._subtract(this._startPoint);!me.x&&!me.y||Math.abs(me.x)+Math.abs(me.y)An&&(qi=ja,An=Ka);An>me&&(Bt[qi]=1,kg(ct,Bt,me,Qe,qi),kg(ct,Bt,me,qi,zr))}function kw(ct,Bt){for(var me=[ct[0]],Qe=1,zr=0,An=ct.length;QeBt&&(me.push(ct[Qe]),zr=Qe);return zrBt.max.x&&(me|=2),ct.yBt.max.y&&(me|=8),me}function w6(ct,Bt){var me=Bt.x-ct.x,Qe=Bt.y-ct.y;return me*me+Qe*Qe}function pv(ct,Bt,me,Qe){var zr=Bt.x,An=Bt.y,qi=me.x-zr,ja=me.y-An,Ka=qi*qi+ja*ja,xo;return Ka>0&&(xo=((ct.x-zr)*qi+(ct.y-An)*ja)/Ka,xo>1?(zr=me.x,An=me.y):xo>0&&(zr+=qi*xo,An+=ja*xo)),qi=ct.x-zr,ja=ct.y-An,Qe?qi*qi+ja*ja:new Ma(zr,An)}function g0(ct){return!cn(ct[0])||typeof ct[0][0]!="object"&&typeof ct[0][0]<"u"}function Tw(ct){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),g0(ct)}function Aw(ct,Bt){var me,Qe,zr,An,qi,ja,Ka,xo;if(!ct||ct.length===0)throw new Error("latlngs not passed");g0(ct)||(console.warn("latlngs are not flat! Only the first ring will be used"),ct=ct[0]);var Ws=Ia([0,0]),_l=ko(ct),Fu=_l.getNorthWest().distanceTo(_l.getSouthWest())*_l.getNorthEast().distanceTo(_l.getNorthWest());Fu<1700&&(Ws=Uy(ct));var Md=ct.length,Rf=[];for(me=0;meQe){Ka=(An-Qe)/zr,xo=[ja.x-Ka*(ja.x-qi.x),ja.y-Ka*(ja.y-qi.y)];break}var kp=Bt.unproject(ho(xo));return Ia([kp.lat+Ws.lat,kp.lng+Ws.lng])}var tf={__proto__:null,simplify:F_,pointToSegmentDistance:ww,closestPointOnSegment:wg,clipSegment:B_,_getEdgeIntersection:Tg,_getBitCode:Ag,_sqClosestPointOnSegment:pv,isFlat:g0,_flat:Tw,polylineCenter:Aw},v0={project:function(ct){return new Ma(ct.lng,ct.lat)},unproject:function(ct){return new ro(ct.y,ct.x)},bounds:new mo([-180,-90],[180,90])},mv={R:6378137,R_MINOR:6356752314245179e-9,bounds:new mo([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(ct){var Bt=Math.PI/180,me=this.R,Qe=ct.lat*Bt,zr=this.R_MINOR/me,An=Math.sqrt(1-zr*zr),qi=An*Math.sin(Qe),ja=Math.tan(Math.PI/4-Qe/2)/Math.pow((1-qi)/(1+qi),An/2);return Qe=-me*Math.log(Math.max(ja,1e-10)),new Ma(ct.lng*Bt*me,Qe)},unproject:function(ct){for(var Bt=180/Math.PI,me=this.R,Qe=this.R_MINOR/me,zr=Math.sqrt(1-Qe*Qe),An=Math.exp(-ct.y/me),qi=Math.PI/2-2*Math.atan(An),ja=0,Ka=.1,xo;ja<15&&Math.abs(Ka)>1e-7;ja++)xo=zr*Math.sin(qi),xo=Math.pow((1-xo)/(1+xo),zr/2),Ka=Math.PI/2-2*Math.atan(An*xo)-qi,qi+=Ka;return new ro(qi*Bt,ct.x*Bt/me)}},N_={__proto__:null,LonLat:v0,Mercator:mv,SphericalMercator:us},j_=K({},no,{code:"EPSG:3395",projection:mv,transformation:function(){var ct=.5/(Math.PI*mv.R);return vi(ct,.5,-ct,.5)}()}),Vy=K({},no,{code:"EPSG:4326",projection:v0,transformation:vi(1/180,1,-1/180,.5)}),Mg=K({},da,{projection:v0,transformation:vi(1,0,-1,0),scale:function(ct){return Math.pow(2,ct)},zoom:function(ct){return Math.log(ct)/Math.LN2},distance:function(ct,Bt){var me=Bt.lng-ct.lng,Qe=Bt.lat-ct.lat;return Math.sqrt(me*me+Qe*Qe)},infinite:!0});da.Earth=no,da.EPSG3395=j_,da.EPSG3857=wi,da.EPSG900913=hi,da.EPSG4326=Vy,da.Simple=Mg;var a0=si.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(ct){return ct.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(ct){return ct&&ct.removeLayer(this),this},getPane:function(ct){return this._map.getPane(ct?this.options[ct]||ct:this.options.pane)},addInteractiveTarget:function(ct){return this._map._targets[jt(ct)]=this,this},removeInteractiveTarget:function(ct){return delete this._map._targets[jt(ct)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(ct){var Bt=ct.target;if(Bt.hasLayer(this)){if(this._map=Bt,this._zoomAnimated=Bt._zoomAnimated,this.getEvents){var me=this.getEvents();Bt.on(me,this),this.once("remove",function(){Bt.off(me,this)},this)}this.onAdd(Bt),this.fire("add"),Bt.fire("layeradd",{layer:this})}}});Ac.include({addLayer:function(ct){if(!ct._layerAdd)throw new Error("The provided object is not a Layer.");var Bt=jt(ct);return this._layers[Bt]?this:(this._layers[Bt]=ct,ct._mapToAdd=this,ct.beforeAdd&&ct.beforeAdd(this),this.whenReady(ct._layerAdd,ct),this)},removeLayer:function(ct){var Bt=jt(ct);return this._layers[Bt]?(this._loaded&&ct.onRemove(this),delete this._layers[Bt],this._loaded&&(this.fire("layerremove",{layer:ct}),ct.fire("remove")),ct._map=ct._mapToAdd=null,this):this},hasLayer:function(ct){return jt(ct)in this._layers},eachLayer:function(ct,Bt){for(var me in this._layers)ct.call(Bt,this._layers[me]);return this},_addLayers:function(ct){ct=ct?cn(ct)?ct:[ct]:[];for(var Bt=0,me=ct.length;Btthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&Bt[0]instanceof ro&&Bt[0].equals(Bt[me-1])&&Bt.pop(),Bt},_setLatLngs:function(ct){y0.prototype._setLatLngs.call(this,ct),g0(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return g0(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var ct=this._renderer._bounds,Bt=this.options.weight,me=new Ma(Bt,Bt);if(ct=new mo(ct.min.subtract(me),ct.max.add(me)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(ct))){if(this.options.noClip){this._parts=this._rings;return}for(var Qe=0,zr=this._rings.length,An;Qect.y!=zr.y>ct.y&&ct.x<(zr.x-Qe.x)*(ct.y-Qe.y)/(zr.y-Qe.y)+Qe.x&&(Bt=!Bt);return Bt||y0.prototype._containsPoint.call(this,ct,!0)}});function T6(ct,Bt){return new yv(ct,Bt)}var pm=wp.extend({initialize:function(ct,Bt){Tr(this,Bt),this._layers={},ct&&this.addData(ct)},addData:function(ct){var Bt=cn(ct)?ct:ct.features,me,Qe,zr;if(Bt){for(me=0,Qe=Bt.length;me0&&zr.push(zr[0].slice()),zr}function mm(ct,Bt){return ct.feature?K({},ct.feature,{geometry:Bt}):Yy(Bt)}function Yy(ct){return ct.type==="Feature"||ct.type==="FeatureCollection"?ct:{type:"Feature",properties:{},geometry:ct}}var q_={toGeoJSON:function(ct){return mm(this,{type:"Point",coordinates:W_(this.getLatLng(),ct)})}};E1.include(q_),qy.include(q_),Wy.include(q_),y0.include({toGeoJSON:function(ct){var Bt=!g0(this._latlngs),me=Gy(this._latlngs,Bt?1:0,!1,ct);return mm(this,{type:(Bt?"Multi":"")+"LineString",coordinates:me})}}),yv.include({toGeoJSON:function(ct){var Bt=!g0(this._latlngs),me=Bt&&!g0(this._latlngs[0]),Qe=Gy(this._latlngs,me?2:Bt?1:0,!0,ct);return Bt||(Qe=[Qe]),mm(this,{type:(me?"Multi":"")+"Polygon",coordinates:Qe})}}),Sg.include({toMultiPoint:function(ct){var Bt=[];return this.eachLayer(function(me){Bt.push(me.toGeoJSON(ct).geometry.coordinates)}),mm(this,{type:"MultiPoint",coordinates:Bt})},toGeoJSON:function(ct){var Bt=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(Bt==="MultiPoint")return this.toMultiPoint(ct);var me=Bt==="GeometryCollection",Qe=[];return this.eachLayer(function(zr){if(zr.toGeoJSON){var An=zr.toGeoJSON(ct);if(me)Qe.push(An.geometry);else{var qi=Yy(An);qi.type==="FeatureCollection"?Qe.push.apply(Qe,qi.features):Qe.push(qi)}}}),me?mm(this,{geometries:Qe,type:"GeometryCollection"}):{type:"FeatureCollection",features:Qe}}});function $_(ct,Bt){return new pm(ct,Bt)}var Ky=$_,gm=a0.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(ct,Bt,me){this._url=ct,this._bounds=ko(Bt),Tr(this,me)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Wu(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Tf(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(ct){return this.options.opacity=ct,this._image&&this._updateOpacity(),this},setStyle:function(ct){return ct.opacity&&this.setOpacity(ct.opacity),this},bringToFront:function(){return this._map&&hv(this._image),this},bringToBack:function(){return this._map&&kn(this._image),this},setUrl:function(ct){return this._url=ct,this._image&&(this._image.src=ct),this},setBounds:function(ct){return this._bounds=ko(ct),this._map&&this._reset(),this},getEvents:function(){var ct={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(ct.zoomanim=this._animateZoom),ct},setZIndex:function(ct){return this.options.zIndex=ct,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var ct=this._url.tagName==="IMG",Bt=this._image=ct?this._url:Ec("img");if(Wu(Bt,"leaflet-image-layer"),this._zoomAnimated&&Wu(Bt,"leaflet-zoom-animated"),this.options.className&&Wu(Bt,this.options.className),Bt.onselectstart=De,Bt.onmousemove=De,Bt.onload=_t(this.fire,this,"load"),Bt.onerror=_t(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(Bt.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),ct){this._url=Bt.src;return}Bt.src=this._url,Bt.alt=this.options.alt},_animateZoom:function(ct){var Bt=this._map.getZoomScale(ct.zoom),me=this._map._latLngBoundsToNewLayerBounds(this._bounds,ct.zoom,ct.center).min;mu(this._image,me,Bt)},_reset:function(){var ct=this._image,Bt=new mo(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),me=Bt.getSize();ic(ct,Bt.min),ct.style.width=me.x+"px",ct.style.height=me.y+"px"},_updateOpacity:function(){m0(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var ct=this.options.errorOverlayUrl;ct&&this._url!==ct&&(this._url=ct,this._image.src=ct)},getCenter:function(){return this._bounds.getCenter()}}),vm=function(ct,Bt,me){return new gm(ct,Bt,me)},I0=gm.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var ct=this._url.tagName==="VIDEO",Bt=this._image=ct?this._url:Ec("video");if(Wu(Bt,"leaflet-image-layer"),this._zoomAnimated&&Wu(Bt,"leaflet-zoom-animated"),this.options.className&&Wu(Bt,this.options.className),Bt.onselectstart=De,Bt.onmousemove=De,Bt.onloadeddata=_t(this.fire,this,"load"),ct){for(var me=Bt.getElementsByTagName("source"),Qe=[],zr=0;zr0?Qe:[Bt.src];return}cn(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(Bt.style,"objectFit")&&(Bt.style.objectFit="fill"),Bt.autoplay=!!this.options.autoplay,Bt.loop=!!this.options.loop,Bt.muted=!!this.options.muted,Bt.playsInline=!!this.options.playsInline;for(var An=0;An×',zu(Qe,"click",function(zr){mc(zr),this.close()},this)}},_updateLayout:function(){var ct=this._contentNode,Bt=ct.style;Bt.width="",Bt.whiteSpace="nowrap";var me=ct.offsetWidth;me=Math.min(me,this.options.maxWidth),me=Math.max(me,this.options.minWidth),Bt.width=me+1+"px",Bt.whiteSpace="",Bt.height="";var Qe=ct.offsetHeight,zr=this.options.maxHeight,An="leaflet-popup-scrolled";zr&&Qe>zr?(Bt.height=zr+"px",Wu(ct,An)):Ff(ct,An),this._containerWidth=this._container.offsetWidth},_animateZoom:function(ct){var Bt=this._map._latLngToNewLayerPoint(this._latlng,ct.zoom,ct.center),me=this._getAnchor();ic(this._container,Bt.add(me))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var ct=this._map,Bt=parseInt(T1(this._container,"marginBottom"),10)||0,me=this._container.offsetHeight+Bt,Qe=this._containerWidth,zr=new Ma(this._containerLeft,-me-this._containerBottom);zr._add(Rc(this._container));var An=ct.layerPointToContainerPoint(zr),qi=ho(this.options.autoPanPadding),ja=ho(this.options.autoPanPaddingTopLeft||qi),Ka=ho(this.options.autoPanPaddingBottomRight||qi),xo=ct.getSize(),Ws=0,_l=0;An.x+Qe+Ka.x>xo.x&&(Ws=An.x+Qe-xo.x+Ka.x),An.x-Ws-ja.x<0&&(Ws=An.x-ja.x),An.y+me+Ka.y>xo.y&&(_l=An.y+me-xo.y+Ka.y),An.y-_l-ja.y<0&&(_l=An.y-ja.y),(Ws||_l)&&(this.options.keepInView&&(this._autopanning=!0),ct.fire("autopanstart").panBy([Ws,_l]))}},_getAnchor:function(){return ho(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),vf=function(ct,Bt){return new Eg(ct,Bt)};Ac.mergeOptions({closePopupOnClick:!0}),Ac.include({openPopup:function(ct,Bt,me){return this._initOverlay(Eg,ct,Bt,me).openOn(this),this},closePopup:function(ct){return ct=arguments.length?ct:this._popup,ct&&ct.close(),this}}),a0.include({bindPopup:function(ct,Bt){return this._popup=this._initOverlay(Eg,this._popup,ct,Bt),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(ct){return this._popup&&(this instanceof wp||(this._popup._source=this),this._popup._prepareOpen(ct||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(ct){return this._popup&&this._popup.setContent(ct),this},getPopup:function(){return this._popup},_openPopup:function(ct){if(!(!this._popup||!this._map)){_g(ct);var Bt=ct.layer||ct.target;if(this._popup._source===Bt&&!(Bt instanceof Vm)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(ct.latlng);return}this._popup._source=Bt,this.openPopup(ct.latlng)}},_movePopup:function(ct){this._popup.setLatLng(ct.latlng)},_onKeyPress:function(ct){ct.originalEvent.keyCode===13&&this._openPopup(ct)}});var C1=X0.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(ct){X0.prototype.onAdd.call(this,ct),this.setOpacity(this.options.opacity),ct.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(ct){X0.prototype.onRemove.call(this,ct),ct.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var ct=X0.prototype.getEvents.call(this);return this.options.permanent||(ct.preclick=this.close),ct},_initLayout:function(){var ct="leaflet-tooltip",Bt=ct+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Ec("div",Bt),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+jt(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(ct){var Bt,me,Qe=this._map,zr=this._container,An=Qe.latLngToContainerPoint(Qe.getCenter()),qi=Qe.layerPointToContainerPoint(ct),ja=this.options.direction,Ka=zr.offsetWidth,xo=zr.offsetHeight,Ws=ho(this.options.offset),_l=this._getAnchor();ja==="top"?(Bt=Ka/2,me=xo):ja==="bottom"?(Bt=Ka/2,me=0):ja==="center"?(Bt=Ka/2,me=xo/2):ja==="right"?(Bt=0,me=xo/2):ja==="left"?(Bt=Ka,me=xo/2):qi.xthis.options.maxZoom||meQe?this._retainParent(zr,An,qi,Qe):!1)},_retainChildren:function(ct,Bt,me,Qe){for(var zr=2*ct;zr<2*ct+2;zr++)for(var An=2*Bt;An<2*Bt+2;An++){var qi=new Ma(zr,An);qi.z=me+1;var ja=this._tileCoordsToKey(qi),Ka=this._tiles[ja];if(Ka&&Ka.active){Ka.retain=!0;continue}else Ka&&Ka.loaded&&(Ka.retain=!0);me+1this.options.maxZoom||this.options.minZoom!==void 0&&zr1){this._setView(ct,me);return}for(var _l=zr.min.y;_l<=zr.max.y;_l++)for(var Fu=zr.min.x;Fu<=zr.max.x;Fu++){var Md=new Ma(Fu,_l);if(Md.z=this._tileZoom,!!this._isValidTile(Md)){var Rf=this._tiles[this._tileCoordsToKey(Md)];Rf?Rf.current=!0:qi.push(Md)}}if(qi.sort(function(kp,Wm){return kp.distanceTo(An)-Wm.distanceTo(An)}),qi.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var _0=document.createDocumentFragment();for(Fu=0;Fume.max.x)||!Bt.wrapLat&&(ct.yme.max.y))return!1}if(!this.options.bounds)return!0;var Qe=this._tileCoordsToBounds(ct);return ko(this.options.bounds).overlaps(Qe)},_keyToBounds:function(ct){return this._tileCoordsToBounds(this._keyToTileCoords(ct))},_tileCoordsToNwSe:function(ct){var Bt=this._map,me=this.getTileSize(),Qe=ct.scaleBy(me),zr=Qe.add(me),An=Bt.unproject(Qe,ct.z),qi=Bt.unproject(zr,ct.z);return[An,qi]},_tileCoordsToBounds:function(ct){var Bt=this._tileCoordsToNwSe(ct),me=new xl(Bt[0],Bt[1]);return this.options.noWrap||(me=this._map.wrapLatLngBounds(me)),me},_tileCoordsToKey:function(ct){return ct.x+":"+ct.y+":"+ct.z},_keyToTileCoords:function(ct){var Bt=ct.split(":"),me=new Ma(+Bt[0],+Bt[1]);return me.z=+Bt[2],me},_removeTile:function(ct){var Bt=this._tiles[ct];Bt&&(Tf(Bt.el),delete this._tiles[ct],this.fire("tileunload",{tile:Bt.el,coords:this._keyToTileCoords(ct)}))},_initTile:function(ct){Wu(ct,"leaflet-tile");var Bt=this.getTileSize();ct.style.width=Bt.x+"px",ct.style.height=Bt.y+"px",ct.onselectstart=De,ct.onmousemove=De,El.ielt9&&this.options.opacity<1&&m0(ct,this.options.opacity)},_addTile:function(ct,Bt){var me=this._getTilePos(ct),Qe=this._tileCoordsToKey(ct),zr=this.createTile(this._wrapCoords(ct),_t(this._tileReady,this,ct));this._initTile(zr),this.createTile.length<2&&Fi(_t(this._tileReady,this,ct,null,zr)),ic(zr,me),this._tiles[Qe]={el:zr,coords:ct,current:!0},Bt.appendChild(zr),this.fire("tileloadstart",{tile:zr,coords:ct})},_tileReady:function(ct,Bt,me){Bt&&this.fire("tileerror",{error:Bt,tile:me,coords:ct});var Qe=this._tileCoordsToKey(ct);me=this._tiles[Qe],me&&(me.loaded=+new Date,this._map._fadeAnimated?(m0(me.el,0),Pi(this._fadeFrame),this._fadeFrame=Fi(this._updateOpacity,this)):(me.active=!0,this._pruneTiles()),Bt||(Wu(me.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:me.el,coords:ct})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),El.ielt9||!this._map._fadeAnimated?Fi(this._pruneTiles,this):setTimeout(_t(this._pruneTiles,this),250)))},_getTilePos:function(ct){return ct.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(ct){var Bt=new Ma(this._wrapX?he(ct.x,this._wrapX):ct.x,this._wrapY?he(ct.y,this._wrapY):ct.y);return Bt.z=ct.z,Bt},_pxBoundsToTileRange:function(ct){var Bt=this.getTileSize();return new mo(ct.min.unscaleBy(Bt).floor(),ct.max.unscaleBy(Bt).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var ct in this._tiles)if(!this._tiles[ct].loaded)return!1;return!0}});function G_(ct){return new L1(ct)}var o0=L1.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(ct,Bt){this._url=ct,Bt=Tr(this,Bt),Bt.detectRetina&&El.retina&&Bt.maxZoom>0?(Bt.tileSize=Math.floor(Bt.tileSize/2),Bt.zoomReverse?(Bt.zoomOffset--,Bt.minZoom=Math.min(Bt.maxZoom,Bt.minZoom+1)):(Bt.zoomOffset++,Bt.maxZoom=Math.max(Bt.minZoom,Bt.maxZoom-1)),Bt.minZoom=Math.max(0,Bt.minZoom)):Bt.zoomReverse?Bt.minZoom=Math.min(Bt.maxZoom,Bt.minZoom):Bt.maxZoom=Math.max(Bt.minZoom,Bt.maxZoom),typeof Bt.subdomains=="string"&&(Bt.subdomains=Bt.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(ct,Bt){return this._url===ct&&Bt===void 0&&(Bt=!0),this._url=ct,Bt||this.redraw(),this},createTile:function(ct,Bt){var me=document.createElement("img");return zu(me,"load",_t(this._tileOnLoad,this,Bt,me)),zu(me,"error",_t(this._tileOnError,this,Bt,me)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(me.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(me.referrerPolicy=this.options.referrerPolicy),me.alt="",me.src=this.getTileUrl(ct),me},getTileUrl:function(ct){var Bt={r:El.retina?"@2x":"",s:this._getSubdomain(ct),x:ct.x,y:ct.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var me=this._globalTileRange.max.y-ct.y;this.options.tms&&(Bt.y=me),Bt["-y"]=me}return Dt(this._url,K(Bt,this.options))},_tileOnLoad:function(ct,Bt){El.ielt9?setTimeout(_t(ct,this,null,Bt),0):ct(null,Bt)},_tileOnError:function(ct,Bt,me){var Qe=this.options.errorTileUrl;Qe&&Bt.getAttribute("src")!==Qe&&(Bt.src=Qe),ct(me,Bt)},_onTileRemove:function(ct){ct.tile.onload=null},_getZoomForUrl:function(){var ct=this._tileZoom,Bt=this.options.maxZoom,me=this.options.zoomReverse,Qe=this.options.zoomOffset;return me&&(ct=Bt-ct),ct+Qe},_getSubdomain:function(ct){var Bt=Math.abs(ct.x+ct.y)%this.options.subdomains.length;return this.options.subdomains[Bt]},_abortLoading:function(){var ct,Bt;for(ct in this._tiles)if(this._tiles[ct].coords.z!==this._tileZoom&&(Bt=this._tiles[ct].el,Bt.onload=De,Bt.onerror=De,!Bt.complete)){Bt.src=Bn;var me=this._tiles[ct].coords;Tf(Bt),delete this._tiles[ct],this.fire("tileabort",{tile:Bt,coords:me})}},_removeTile:function(ct){var Bt=this._tiles[ct];if(Bt)return Bt.el.setAttribute("src",Bn),L1.prototype._removeTile.call(this,ct)},_tileReady:function(ct,Bt,me){if(!(!this._map||me&&me.getAttribute("src")===Bn))return L1.prototype._tileReady.call(this,ct,Bt,me)}});function Xy(ct,Bt){return new o0(ct,Bt)}var Jy=o0.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(ct,Bt){this._url=ct;var me=K({},this.defaultWmsParams);for(var Qe in Bt)Qe in this.options||(me[Qe]=Bt[Qe]);Bt=Tr(this,Bt);var zr=Bt.detectRetina&&El.retina?2:1,An=this.getTileSize();me.width=An.x*zr,me.height=An.y*zr,this.wmsParams=me},onAdd:function(ct){this._crs=this.options.crs||ct.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var Bt=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[Bt]=this._crs.code,o0.prototype.onAdd.call(this,ct)},getTileUrl:function(ct){var Bt=this._tileCoordsToNwSe(ct),me=this._crs,Qe=Ts(me.project(Bt[0]),me.project(Bt[1])),zr=Qe.min,An=Qe.max,qi=(this._wmsVersion>=1.3&&this._crs===Vy?[zr.y,zr.x,An.y,An.x]:[zr.x,zr.y,An.x,An.y]).join(","),ja=o0.prototype.getTileUrl.call(this,ct);return ja+Vr(this.wmsParams,ja,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+qi},setParams:function(ct,Bt){return K(this.wmsParams,ct),Bt||this.redraw(),this}});function Iw(ct,Bt){return new Jy(ct,Bt)}o0.WMS=Jy,Xy.wms=Iw;var ym=a0.extend({options:{padding:.1},initialize:function(ct){Tr(this,ct),jt(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Wu(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var ct={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(ct.zoomanim=this._onAnimZoom),ct},_onAnimZoom:function(ct){this._updateTransform(ct.center,ct.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(ct,Bt){var me=this._map.getZoomScale(Bt,this._zoom),Qe=this._map.getSize().multiplyBy(.5+this.options.padding),zr=this._map.project(this._center,Bt),An=Qe.multiplyBy(-me).add(zr).subtract(this._map._getNewPixelOrigin(ct,Bt));El.any3d?mu(this._container,An,me):ic(this._container,An)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var ct in this._layers)this._layers[ct]._reset()},_onZoomEnd:function(){for(var ct in this._layers)this._layers[ct]._project()},_updatePaths:function(){for(var ct in this._layers)this._layers[ct]._update()},_update:function(){var ct=this.options.padding,Bt=this._map.getSize(),me=this._map.containerPointToLayerPoint(Bt.multiplyBy(-ct)).round();this._bounds=new mo(me,me.add(Bt.multiplyBy(1+ct*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),zw=ym.extend({options:{tolerance:0},getEvents:function(){var ct=ym.prototype.getEvents.call(this);return ct.viewprereset=this._onViewPreReset,ct},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ym.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var ct=this._container=document.createElement("canvas");zu(ct,"mousemove",this._onMouseMove,this),zu(ct,"click dblclick mousedown mouseup contextmenu",this._onClick,this),zu(ct,"mouseout",this._handleMouseOut,this),ct._leaflet_disable_events=!0,this._ctx=ct.getContext("2d")},_destroyContainer:function(){Pi(this._redrawRequest),delete this._ctx,Tf(this._container),Nh(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var ct;this._redrawBounds=null;for(var Bt in this._layers)ct=this._layers[Bt],ct._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ym.prototype._update.call(this);var ct=this._bounds,Bt=this._container,me=ct.getSize(),Qe=El.retina?2:1;ic(Bt,ct.min),Bt.width=Qe*me.x,Bt.height=Qe*me.y,Bt.style.width=me.x+"px",Bt.style.height=me.y+"px",El.retina&&this._ctx.scale(2,2),this._ctx.translate(-ct.min.x,-ct.min.y),this.fire("update")}},_reset:function(){ym.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(ct){this._updateDashArray(ct),this._layers[jt(ct)]=ct;var Bt=ct._order={layer:ct,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=Bt),this._drawLast=Bt,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(ct){this._requestRedraw(ct)},_removePath:function(ct){var Bt=ct._order,me=Bt.next,Qe=Bt.prev;me?me.prev=Qe:this._drawLast=Qe,Qe?Qe.next=me:this._drawFirst=me,delete ct._order,delete this._layers[jt(ct)],this._requestRedraw(ct)},_updatePath:function(ct){this._extendRedrawBounds(ct),ct._project(),ct._update(),this._requestRedraw(ct)},_updateStyle:function(ct){this._updateDashArray(ct),this._requestRedraw(ct)},_updateDashArray:function(ct){if(typeof ct.options.dashArray=="string"){var Bt=ct.options.dashArray.split(/[, ]+/),me=[],Qe,zr;for(zr=0;zr')}}catch{}return function(ct){return document.createElement("<"+ct+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),S6={_initContainer:function(){this._container=Ec("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ym.prototype._update.call(this),this.fire("update"))},_initPath:function(ct){var Bt=ct._container=P1("shape");Wu(Bt,"leaflet-vml-shape "+(this.options.className||"")),Bt.coordsize="1 1",ct._path=P1("path"),Bt.appendChild(ct._path),this._updateStyle(ct),this._layers[jt(ct)]=ct},_addPath:function(ct){var Bt=ct._container;this._container.appendChild(Bt),ct.options.interactive&&ct.addInteractiveTarget(Bt)},_removePath:function(ct){var Bt=ct._container;Tf(Bt),ct.removeInteractiveTarget(Bt),delete this._layers[jt(ct)]},_updateStyle:function(ct){var Bt=ct._stroke,me=ct._fill,Qe=ct.options,zr=ct._container;zr.stroked=!!Qe.stroke,zr.filled=!!Qe.fill,Qe.stroke?(Bt||(Bt=ct._stroke=P1("stroke")),zr.appendChild(Bt),Bt.weight=Qe.weight+"px",Bt.color=Qe.color,Bt.opacity=Qe.opacity,Qe.dashArray?Bt.dashStyle=cn(Qe.dashArray)?Qe.dashArray.join(" "):Qe.dashArray.replace(/( *, *)/g," "):Bt.dashStyle="",Bt.endcap=Qe.lineCap.replace("butt","flat"),Bt.joinstyle=Qe.lineJoin):Bt&&(zr.removeChild(Bt),ct._stroke=null),Qe.fill?(me||(me=ct._fill=P1("fill")),zr.appendChild(me),me.color=Qe.fillColor||Qe.color,me.opacity=Qe.fillOpacity):me&&(zr.removeChild(me),ct._fill=null)},_updateCircle:function(ct){var Bt=ct._point.round(),me=Math.round(ct._radius),Qe=Math.round(ct._radiusY||me);this._setPath(ct,ct._empty()?"M0 0":"AL "+Bt.x+","+Bt.y+" "+me+","+Qe+" 0,"+65535*360)},_setPath:function(ct,Bt){ct._path.v=Bt},_bringToFront:function(ct){hv(ct._container)},_bringToBack:function(ct){kn(ct._container)}},Hm=El.vml?P1:go,Rp=ym.extend({_initContainer:function(){this._container=Hm("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Hm("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Tf(this._container),Nh(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ym.prototype._update.call(this);var ct=this._bounds,Bt=ct.getSize(),me=this._container;(!this._svgSize||!this._svgSize.equals(Bt))&&(this._svgSize=Bt,me.setAttribute("width",Bt.x),me.setAttribute("height",Bt.y)),ic(me,ct.min),me.setAttribute("viewBox",[ct.min.x,ct.min.y,Bt.x,Bt.y].join(" ")),this.fire("update")}},_initPath:function(ct){var Bt=ct._path=Hm("path");ct.options.className&&Wu(Bt,ct.options.className),ct.options.interactive&&Wu(Bt,"leaflet-interactive"),this._updateStyle(ct),this._layers[jt(ct)]=ct},_addPath:function(ct){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(ct._path),ct.addInteractiveTarget(ct._path)},_removePath:function(ct){Tf(ct._path),ct.removeInteractiveTarget(ct._path),delete this._layers[jt(ct)]},_updatePath:function(ct){ct._project(),ct._update()},_updateStyle:function(ct){var Bt=ct._path,me=ct.options;Bt&&(me.stroke?(Bt.setAttribute("stroke",me.color),Bt.setAttribute("stroke-opacity",me.opacity),Bt.setAttribute("stroke-width",me.weight),Bt.setAttribute("stroke-linecap",me.lineCap),Bt.setAttribute("stroke-linejoin",me.lineJoin),me.dashArray?Bt.setAttribute("stroke-dasharray",me.dashArray):Bt.removeAttribute("stroke-dasharray"),me.dashOffset?Bt.setAttribute("stroke-dashoffset",me.dashOffset):Bt.removeAttribute("stroke-dashoffset")):Bt.setAttribute("stroke","none"),me.fill?(Bt.setAttribute("fill",me.fillColor||me.color),Bt.setAttribute("fill-opacity",me.fillOpacity),Bt.setAttribute("fill-rule",me.fillRule||"evenodd")):Bt.setAttribute("fill","none"))},_updatePoly:function(ct,Bt){this._setPath(ct,Mo(ct._parts,Bt))},_updateCircle:function(ct){var Bt=ct._point,me=Math.max(Math.round(ct._radius),1),Qe=Math.max(Math.round(ct._radiusY),1)||me,zr="a"+me+","+Qe+" 0 1,0 ",An=ct._empty()?"M0 0":"M"+(Bt.x-me)+","+Bt.y+zr+me*2+",0 "+zr+-me*2+",0 ";this._setPath(ct,An)},_setPath:function(ct,Bt){ct._path.setAttribute("d",Bt)},_bringToFront:function(ct){hv(ct._path)},_bringToBack:function(ct){kn(ct._path)}});El.vml&&Rp.include(S6);function Ow(ct){return El.svg||El.vml?new Rp(ct):null}Ac.include({getRenderer:function(ct){var Bt=ct.options.renderer||this._getPaneRenderer(ct.options.pane)||this.options.renderer||this._renderer;return Bt||(Bt=this._renderer=this._createRenderer()),this.hasLayer(Bt)||this.addLayer(Bt),Bt},_getPaneRenderer:function(ct){if(ct==="overlayPane"||ct===void 0)return!1;var Bt=this._paneRenderers[ct];return Bt===void 0&&(Bt=this._createRenderer({pane:ct}),this._paneRenderers[ct]=Bt),Bt},_createRenderer:function(ct){return this.options.preferCanvas&&Y_(ct)||Ow(ct)}});var s0=yv.extend({initialize:function(ct,Bt){yv.prototype.initialize.call(this,this._boundsToLatLngs(ct),Bt)},setBounds:function(ct){return this.setLatLngs(this._boundsToLatLngs(ct))},_boundsToLatLngs:function(ct){return ct=ko(ct),[ct.getSouthWest(),ct.getNorthWest(),ct.getNorthEast(),ct.getSouthEast()]}});function z0(ct,Bt){return new s0(ct,Bt)}Rp.create=Hm,Rp.pointsToPath=Mo,pm.geometryToLayer=$y,pm.coordsToLatLng=H_,pm.coordsToLatLngs=Zy,pm.latLngToCoords=W_,pm.latLngsToCoords=Gy,pm.getFeature=mm,pm.asFeature=Yy,Ac.mergeOptions({boxZoom:!0});var xv=K0.extend({initialize:function(ct){this._map=ct,this._container=ct._container,this._pane=ct._panes.overlayPane,this._resetStateTimeout=0,ct.on("unload",this._destroy,this)},addHooks:function(){zu(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Nh(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Tf(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(ct){if(!ct.shiftKey||ct.which!==1&&ct.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),C0(),Kc(),this._startPoint=this._map.mouseEventToContainerPoint(ct),zu(document,{contextmenu:_g,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(ct){this._moved||(this._moved=!0,this._box=Ec("div","leaflet-zoom-box",this._container),Wu(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(ct);var Bt=new mo(this._point,this._startPoint),me=Bt.getSize();ic(this._box,Bt.min),this._box.style.width=me.x+"px",this._box.style.height=me.y+"px"},_finish:function(){this._moved&&(Tf(this._box),Ff(this._container,"leaflet-crosshair")),vg(),Dp(),Nh(document,{contextmenu:_g,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(ct){if(!(ct.which!==1&&ct.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(_t(this._resetState,this),0);var Bt=new xl(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(Bt).fire("boxzoomend",{boxZoomBounds:Bt})}},_onKeyDown:function(ct){ct.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ac.addInitHook("addHandler","boxZoom",xv),Ac.mergeOptions({doubleClickZoom:!0});var x0=K0.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(ct){var Bt=this._map,me=Bt.getZoom(),Qe=Bt.options.zoomDelta,zr=ct.originalEvent.shiftKey?me-Qe:me+Qe;Bt.options.doubleClickZoom==="center"?Bt.setZoom(zr):Bt.setZoomAround(ct.containerPoint,zr)}});Ac.addInitHook("addHandler","doubleClickZoom",x0),Ac.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var O0=K0.extend({addHooks:function(){if(!this._draggable){var ct=this._map;this._draggable=new jm(ct._mapPane,ct._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),ct.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),ct.on("zoomend",this._onZoomEnd,this),ct.whenReady(this._onZoomEnd,this))}Wu(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Ff(this._map._container,"leaflet-grab"),Ff(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var ct=this._map;if(ct._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var Bt=ko(this._map.options.maxBounds);this._offsetLimit=Ts(this._map.latLngToContainerPoint(Bt.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(Bt.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;ct.fire("movestart").fire("dragstart"),ct.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(ct){if(this._map.options.inertia){var Bt=this._lastTime=+new Date,me=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(me),this._times.push(Bt),this._prunePositions(Bt)}this._map.fire("move",ct).fire("drag",ct)},_prunePositions:function(ct){for(;this._positions.length>1&&ct-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var ct=this._map.getSize().divideBy(2),Bt=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=Bt.subtract(ct).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(ct,Bt){return ct-(ct-Bt)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var ct=this._draggable._newPos.subtract(this._draggable._startPos),Bt=this._offsetLimit;ct.xBt.max.x&&(ct.x=this._viscousLimit(ct.x,Bt.max.x)),ct.y>Bt.max.y&&(ct.y=this._viscousLimit(ct.y,Bt.max.y)),this._draggable._newPos=this._draggable._startPos.add(ct)}},_onPreDragWrap:function(){var ct=this._worldWidth,Bt=Math.round(ct/2),me=this._initialWorldOffset,Qe=this._draggable._newPos.x,zr=(Qe-Bt+me)%ct+Bt-me,An=(Qe+Bt+me)%ct-Bt-me,qi=Math.abs(zr+me)0?An:-An))-Bt;this._delta=0,this._startTime=null,qi&&(ct.options.scrollWheelZoom==="center"?ct.setZoom(Bt+qi):ct.setZoomAround(this._lastMousePos,Bt+qi))}});Ac.addInitHook("addHandler","scrollWheelZoom",Cg);var Fw=600;Ac.mergeOptions({tapHold:El.touchNative&&El.safari&&El.mobile,tapTolerance:15});var Rw=K0.extend({addHooks:function(){zu(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Nh(this._map._container,"touchstart",this._onDown,this)},_onDown:function(ct){if(clearTimeout(this._holdTimeout),ct.touches.length===1){var Bt=ct.touches[0];this._startPos=this._newPos=new Ma(Bt.clientX,Bt.clientY),this._holdTimeout=setTimeout(_t(function(){this._cancel(),this._isTapValid()&&(zu(document,"touchend",mc),zu(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",Bt))},this),Fw),zu(document,"touchend touchcancel contextmenu",this._cancel,this),zu(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function ct(){Nh(document,"touchend",mc),Nh(document,"touchend touchcancel",ct)},_cancel:function(){clearTimeout(this._holdTimeout),Nh(document,"touchend touchcancel contextmenu",this._cancel,this),Nh(document,"touchmove",this._onMove,this)},_onMove:function(ct){var Bt=ct.touches[0];this._newPos=new Ma(Bt.clientX,Bt.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(ct,Bt){var me=new MouseEvent(ct,{bubbles:!0,cancelable:!0,view:window,screenX:Bt.screenX,screenY:Bt.screenY,clientX:Bt.clientX,clientY:Bt.clientY});me._simulated=!0,Bt.target.dispatchEvent(me)}});Ac.addInitHook("addHandler","tapHold",Rw),Ac.mergeOptions({touchZoom:El.touch,bounceAtZoomLimits:!0});var D0=K0.extend({addHooks:function(){Wu(this._map._container,"leaflet-touch-zoom"),zu(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Ff(this._map._container,"leaflet-touch-zoom"),Nh(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(ct){var Bt=this._map;if(!(!ct.touches||ct.touches.length!==2||Bt._animatingZoom||this._zooming)){var me=Bt.mouseEventToContainerPoint(ct.touches[0]),Qe=Bt.mouseEventToContainerPoint(ct.touches[1]);this._centerPoint=Bt.getSize()._divideBy(2),this._startLatLng=Bt.containerPointToLatLng(this._centerPoint),Bt.options.touchZoom!=="center"&&(this._pinchStartLatLng=Bt.containerPointToLatLng(me.add(Qe)._divideBy(2))),this._startDist=me.distanceTo(Qe),this._startZoom=Bt.getZoom(),this._moved=!1,this._zooming=!0,Bt._stop(),zu(document,"touchmove",this._onTouchMove,this),zu(document,"touchend touchcancel",this._onTouchEnd,this),mc(ct)}},_onTouchMove:function(ct){if(!(!ct.touches||ct.touches.length!==2||!this._zooming)){var Bt=this._map,me=Bt.mouseEventToContainerPoint(ct.touches[0]),Qe=Bt.mouseEventToContainerPoint(ct.touches[1]),zr=me.distanceTo(Qe)/this._startDist;if(this._zoom=Bt.getScaleZoom(zr,this._startZoom),!Bt.options.bounceAtZoomLimits&&(this._zoomBt.getMaxZoom()&&zr>1)&&(this._zoom=Bt._limitZoom(this._zoom)),Bt.options.touchZoom==="center"){if(this._center=this._startLatLng,zr===1)return}else{var An=me._add(Qe)._divideBy(2)._subtract(this._centerPoint);if(zr===1&&An.x===0&&An.y===0)return;this._center=Bt.unproject(Bt.project(this._pinchStartLatLng,this._zoom).subtract(An),this._zoom)}this._moved||(Bt._moveStart(!0,!1),this._moved=!0),Pi(this._animRequest);var qi=_t(Bt._move,Bt,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Fi(qi,this,!0),mc(ct)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Pi(this._animRequest),Nh(document,"touchmove",this._onTouchMove,this),Nh(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Ac.addInitHook("addHandler","touchZoom",D0),Ac.BoxZoom=xv,Ac.DoubleClickZoom=x0,Ac.Drag=O0,Ac.Keyboard=Dw,Ac.ScrollWheelZoom=Cg,Ac.TapHold=Rw,Ac.TouchZoom=D0,E.Bounds=mo,E.Browser=El,E.CRS=da,E.Canvas=zw,E.Circle=qy,E.CircleMarker=Wy,E.Class=Yi,E.Control=lp,E.DivIcon=Pw,E.DivOverlay=X0,E.DomEvent=Fp,E.DomUtil=kc,E.Draggable=jm,E.Evented=si,E.FeatureGroup=wp,E.GeoJSON=pm,E.GridLayer=L1,E.Handler=K0,E.Icon=Um,E.ImageOverlay=gm,E.LatLng=ro,E.LatLngBounds=xl,E.Layer=a0,E.LayerGroup=Sg,E.LineUtil=tf,E.Map=Ac,E.Marker=E1,E.Mixin=up,E.Path=Vm,E.Point=Ma,E.PolyUtil=_6,E.Polygon=yv,E.Polyline=y0,E.Popup=Eg,E.PosAnimation=S1,E.Projection=N_,E.Rectangle=s0,E.Renderer=ym,E.SVG=Rp,E.SVGOverlay=Z_,E.TileLayer=o0,E.Tooltip=C1,E.Transformation=Ho,E.Util=bi,E.VideoOverlay=I0,E.bind=_t,E.bounds=Ts,E.canvas=Y_,E.circle=vv,E.circleMarker=Sw,E.control=i0,E.divIcon=M6,E.extend=K,E.featureGroup=Mw,E.geoJSON=$_,E.geoJson=Ky,E.gridLayer=G_,E.icon=U_,E.imageOverlay=vm,E.latLng=Ia,E.latLngBounds=ko,E.layerGroup=Hy,E.map=Vs,E.marker=k6,E.point=ho,E.polygon=T6,E.polyline=Ew,E.popup=vf,E.rectangle=z0,E.setOptions=Tr,E.stamp=jt,E.svg=Ow,E.svgOverlay=A6,E.tileLayer=Xy,E.tooltip=Lw,E.transformation=vi,E.version=B,E.videoOverlay=ef;var F0=window.L;E.noConflict=function(){return window.L=F0,this},window.L=E})}(g2,g2.exports)),g2.exports}var Tot=kot();const Mm=KO(Tot),tP=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],R8=1,a2=8;class dM{static from(s){if(!(s instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[E,B]=new Uint8Array(s,0,2);if(E!==219)throw new Error("Data does not appear to be in a KDBush format.");const K=B>>4;if(K!==R8)throw new Error(`Got v${K} data when expected v${R8}.`);const pt=tP[B&15];if(!pt)throw new Error("Unrecognized array type.");const[_t]=new Uint16Array(s,2,1),[Ot]=new Uint32Array(s,4,1);return new dM(Ot,_t,pt,s)}constructor(s,E=64,B=Float64Array,K){if(isNaN(s)||s<0)throw new Error(`Unpexpected numItems value: ${s}.`);this.numItems=+s,this.nodeSize=Math.min(Math.max(+E,2),65535),this.ArrayType=B,this.IndexArrayType=s<65536?Uint16Array:Uint32Array;const pt=tP.indexOf(this.ArrayType),_t=s*2*this.ArrayType.BYTES_PER_ELEMENT,Ot=s*this.IndexArrayType.BYTES_PER_ELEMENT,jt=(8-Ot%8)%8;if(pt<0)throw new Error(`Unexpected typed array class: ${B}.`);K&&K instanceof ArrayBuffer?(this.data=K,this.ids=new this.IndexArrayType(this.data,a2,s),this.coords=new this.ArrayType(this.data,a2+Ot+jt,s*2),this._pos=s*2,this._finished=!0):(this.data=new ArrayBuffer(a2+_t+Ot+jt),this.ids=new this.IndexArrayType(this.data,a2,s),this.coords=new this.ArrayType(this.data,a2+Ot+jt,s*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(R8<<4)+pt]),new Uint16Array(this.data,2,1)[0]=E,new Uint32Array(this.data,4,1)[0]=s)}add(s,E){const B=this._pos>>1;return this.ids[B]=B,this.coords[this._pos++]=s,this.coords[this._pos++]=E,B}finish(){const s=this._pos>>1;if(s!==this.numItems)throw new Error(`Added ${s} items when expected ${this.numItems}.`);return AA(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(s,E,B,K){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:pt,coords:_t,nodeSize:Ot}=this,jt=[0,pt.length-1,0],te=[];for(;jt.length;){const he=jt.pop()||0,De=jt.pop()||0,er=jt.pop()||0;if(De-er<=Ot){for(let Vr=er;Vr<=De;Vr++){const mn=_t[2*Vr],Dt=_t[2*Vr+1];mn>=s&&mn<=B&&Dt>=E&&Dt<=K&&te.push(pt[Vr])}continue}const pr=er+De>>1,Mr=_t[2*pr],Tr=_t[2*pr+1];Mr>=s&&Mr<=B&&Tr>=E&&Tr<=K&&te.push(pt[pr]),(he===0?s<=Mr:E<=Tr)&&(jt.push(er),jt.push(pr-1),jt.push(1-he)),(he===0?B>=Mr:K>=Tr)&&(jt.push(pr+1),jt.push(De),jt.push(1-he))}return te}within(s,E,B){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:K,coords:pt,nodeSize:_t}=this,Ot=[0,K.length-1,0],jt=[],te=B*B;for(;Ot.length;){const he=Ot.pop()||0,De=Ot.pop()||0,er=Ot.pop()||0;if(De-er<=_t){for(let Vr=er;Vr<=De;Vr++)eP(pt[2*Vr],pt[2*Vr+1],s,E)<=te&&jt.push(K[Vr]);continue}const pr=er+De>>1,Mr=pt[2*pr],Tr=pt[2*pr+1];eP(Mr,Tr,s,E)<=te&&jt.push(K[pr]),(he===0?s-B<=Mr:E-B<=Tr)&&(Ot.push(er),Ot.push(pr-1),Ot.push(1-he)),(he===0?s+B>=Mr:E+B>=Tr)&&(Ot.push(pr+1),Ot.push(De),Ot.push(1-he))}return jt}}function AA(d,s,E,B,K,pt){if(K-B<=E)return;const _t=B+K>>1;XO(d,s,_t,B,K,pt),AA(d,s,E,B,_t-1,1-pt),AA(d,s,E,_t+1,K,1-pt)}function XO(d,s,E,B,K,pt){for(;K>B;){if(K-B>600){const te=K-B+1,he=E-B+1,De=Math.log(te),er=.5*Math.exp(2*De/3),pr=.5*Math.sqrt(De*er*(te-er)/te)*(he-te/2<0?-1:1),Mr=Math.max(B,Math.floor(E-he*er/te+pr)),Tr=Math.min(K,Math.floor(E+(te-he)*er/te+pr));XO(d,s,E,Mr,Tr,pt)}const _t=s[2*E+pt];let Ot=B,jt=K;for(o2(d,s,B,E),s[2*K+pt]>_t&&o2(d,s,B,K);Ot_t;)jt--}s[2*B+pt]===_t?o2(d,s,B,jt):(jt++,o2(d,s,jt,K)),jt<=E&&(B=jt+1),E<=jt&&(K=jt-1)}}function o2(d,s,E,B){B8(d,E,B),B8(s,2*E,2*B),B8(s,2*E+1,2*B+1)}function B8(d,s,E){const B=d[s];d[s]=d[E],d[E]=B}function eP(d,s,E,B){const K=d-E,pt=s-B;return K*K+pt*pt}const Aot={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:d=>d},rP=Math.fround||(d=>s=>(d[0]=+s,d[0]))(new Float32Array(1)),uy=2,l1=3,N8=4,n1=5,JO=6;class Mot{constructor(s){this.options=Object.assign(Object.create(Aot),s),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(s){const{log:E,minZoom:B,maxZoom:K}=this.options;E&&console.time("total time");const pt=`prepare ${s.length} points`;E&&console.time(pt),this.points=s;const _t=[];for(let jt=0;jt=B;jt--){const te=+Date.now();Ot=this.trees[jt]=this._createTree(this._cluster(Ot,jt)),E&&console.log("z%d: %d clusters in %dms",jt,Ot.numItems,+Date.now()-te)}return E&&console.timeEnd("total time"),this}getClusters(s,E){let B=((s[0]+180)%360+360)%360-180;const K=Math.max(-90,Math.min(90,s[1]));let pt=s[2]===180?180:((s[2]+180)%360+360)%360-180;const _t=Math.max(-90,Math.min(90,s[3]));if(s[2]-s[0]>=360)B=-180,pt=180;else if(B>pt){const De=this.getClusters([B,K,180,_t],E),er=this.getClusters([-180,K,pt,_t],E);return De.concat(er)}const Ot=this.trees[this._limitZoom(E)],jt=Ot.range(I5(B),z5(_t),I5(pt),z5(K)),te=Ot.data,he=[];for(const De of jt){const er=this.stride*De;he.push(te[er+n1]>1?nP(te,er,this.clusterProps):this.points[te[er+l1]])}return he}getChildren(s){const E=this._getOriginId(s),B=this._getOriginZoom(s),K="No cluster with the specified id.",pt=this.trees[B];if(!pt)throw new Error(K);const _t=pt.data;if(E*this.stride>=_t.length)throw new Error(K);const Ot=this.options.radius/(this.options.extent*Math.pow(2,B-1)),jt=_t[E*this.stride],te=_t[E*this.stride+1],he=pt.within(jt,te,Ot),De=[];for(const er of he){const pr=er*this.stride;_t[pr+N8]===s&&De.push(_t[pr+n1]>1?nP(_t,pr,this.clusterProps):this.points[_t[pr+l1]])}if(De.length===0)throw new Error(K);return De}getLeaves(s,E,B){E=E||10,B=B||0;const K=[];return this._appendLeaves(K,s,E,B,0),K}getTile(s,E,B){const K=this.trees[this._limitZoom(s)],pt=Math.pow(2,s),{extent:_t,radius:Ot}=this.options,jt=Ot/_t,te=(B-jt)/pt,he=(B+1+jt)/pt,De={features:[]};return this._addTileFeatures(K.range((E-jt)/pt,te,(E+1+jt)/pt,he),K.data,E,B,pt,De),E===0&&this._addTileFeatures(K.range(1-jt/pt,te,1,he),K.data,pt,B,pt,De),E===pt-1&&this._addTileFeatures(K.range(0,te,jt/pt,he),K.data,-1,B,pt,De),De.features.length?De:null}getClusterExpansionZoom(s){let E=this._getOriginZoom(s)-1;for(;E<=this.options.maxZoom;){const B=this.getChildren(s);if(E++,B.length!==1)break;s=B[0].properties.cluster_id}return E}_appendLeaves(s,E,B,K,pt){const _t=this.getChildren(E);for(const Ot of _t){const jt=Ot.properties;if(jt&&jt.cluster?pt+jt.point_count<=K?pt+=jt.point_count:pt=this._appendLeaves(s,jt.cluster_id,B,K,pt):pt1;let he,De,er;if(te)he=QO(E,jt,this.clusterProps),De=E[jt],er=E[jt+1];else{const Tr=this.points[E[jt+l1]];he=Tr.properties;const[Vr,mn]=Tr.geometry.coordinates;De=I5(Vr),er=z5(mn)}const pr={type:1,geometry:[[Math.round(this.options.extent*(De*pt-B)),Math.round(this.options.extent*(er*pt-K))]],tags:he};let Mr;te||this.options.generateId?Mr=E[jt+l1]:Mr=this.points[E[jt+l1]].id,Mr!==void 0&&(pr.id=Mr),_t.features.push(pr)}}_limitZoom(s){return Math.max(this.options.minZoom,Math.min(Math.floor(+s),this.options.maxZoom+1))}_cluster(s,E){const{radius:B,extent:K,reduce:pt,minPoints:_t}=this.options,Ot=B/(K*Math.pow(2,E)),jt=s.data,te=[],he=this.stride;for(let De=0;DeE&&(Vr+=jt[Dt+n1])}if(Vr>Tr&&Vr>=_t){let mn=er*Tr,Dt=pr*Tr,cn,Jn=-1;const Bn=((De/he|0)<<5)+(E+1)+this.points.length;for(const ni of Mr){const Wi=ni*he;if(jt[Wi+uy]<=E)continue;jt[Wi+uy]=E;const Un=jt[Wi+n1];mn+=jt[Wi]*Un,Dt+=jt[Wi+1]*Un,jt[Wi+N8]=Bn,pt&&(cn||(cn=this._map(jt,De,!0),Jn=this.clusterProps.length,this.clusterProps.push(cn)),pt(cn,this._map(jt,Wi)))}jt[De+N8]=Bn,te.push(mn/Vr,Dt/Vr,1/0,Bn,-1,Vr),pt&&te.push(Jn)}else{for(let mn=0;mn1)for(const mn of Mr){const Dt=mn*he;if(!(jt[Dt+uy]<=E)){jt[Dt+uy]=E;for(let cn=0;cn>5}_getOriginZoom(s){return(s-this.points.length)%32}_map(s,E,B){if(s[E+n1]>1){const _t=this.clusterProps[s[E+JO]];return B?Object.assign({},_t):_t}const K=this.points[s[E+l1]].properties,pt=this.options.map(K);return B&&pt===K?Object.assign({},pt):pt}}function nP(d,s,E){return{type:"Feature",id:d[s+l1],properties:QO(d,s,E),geometry:{type:"Point",coordinates:[Sot(d[s]),Eot(d[s+1])]}}}function QO(d,s,E){const B=d[s+n1],K=B>=1e4?`${Math.round(B/1e3)}k`:B>=1e3?`${Math.round(B/100)/10}k`:B,pt=d[s+JO],_t=pt===-1?{}:Object.assign({},E[pt]);return Object.assign(_t,{cluster:!0,cluster_id:d[s+l1],point_count:B,point_count_abbreviated:K})}function I5(d){return d/360+.5}function z5(d){const s=Math.sin(d*Math.PI/180),E=.5-.25*Math.log((1+s)/(1-s))/Math.PI;return E<0?0:E>1?1:E}function Sot(d){return(d-.5)*360}function Eot(d){const s=(180-d*360)*Math.PI/180;return 360*Math.atan(Math.exp(s))/Math.PI-90}const Cot={class:"map-container"},Lot={key:0,class:"flex items-center justify-center h-96 bg-dark-card/30 backdrop-blur border border-white/10 rounded-[15px]"},Pot={key:2,class:"map-legend"},Iot={class:"legend-footer"},zot={key:3,class:"map-attribution"},Oot=Dc({__name:"NetworkMap",props:{adverts:{},baseLatitude:{default:null},baseLongitude:{default:null}},setup(d,{expose:s}){typeof window<"u"&&!window.chrome&&(window.chrome={runtime:{}});const E=d,B=Ga();let K=null;const pt=Ga(new Map);let _t=null;const Ot=Ga(new Map),jt=Ga([]),te=Ga(!0),he=Ga(60),De=Ga(14),er=$o(()=>E.baseLatitude!==null&&E.baseLongitude!==null&&typeof E.baseLatitude=="number"&&typeof E.baseLongitude=="number"&&E.baseLatitude!==0&&E.baseLongitude!==0&&Math.abs(E.baseLatitude)<=90&&Math.abs(E.baseLongitude)<=180),pr=Un=>new Date(Un*1e3).toLocaleString(),Mr=Un=>Un?`${Un} dBm`:"N/A",Tr=Un=>Un?`${Un} dB`:"N/A",Vr=Un=>({0:"Transport Flood",1:"Flood",2:"Direct",3:"Transport Direct"})[Un||0]||"Unknown",mn=(Un,qr,Di,Fi)=>{const bi=(Di-Un)*Math.PI/180,Yi=(Fi-qr)*Math.PI/180,Ca=Math.sin(bi/2)*Math.sin(bi/2)+Math.cos(Un*Math.PI/180)*Math.cos(Di*Math.PI/180)*Math.sin(Yi/2)*Math.sin(Yi/2);return 6371*(2*Math.atan2(Math.sqrt(Ca),Math.sqrt(1-Ca)))},Dt=()=>{K&&(jt.value.forEach(Un=>{K&&Un.remove()}),jt.value.length=0,K.remove(),K=null),pt.value.clear(),Ot.value.clear(),_t=null},cn=Un=>{const qr=new Map;return Un.filter(Di=>Di.latitude!==null&&Di.longitude!==null).map(Di=>{let Fi=Di.latitude,Pi=Di.longitude;const bi=`${Fi.toFixed(6)}_${Pi.toFixed(6)}`,Yi=qr.get(bi)||0;if(qr.set(bi,Yi+1),Yi>0){const Ni=Yi*60*(Math.PI/180);Fi+=Math.sin(Ni)*.001*(Yi*.5),Pi+=Math.cos(Ni)*.001*(Yi*.5)}return{type:"Feature",properties:{advert:{...Di,jittered_latitude:Fi,jittered_longitude:Pi}},geometry:{type:"Point",coordinates:[Pi,Fi]}}})},Jn=Un=>{_t=new Mot({radius:he.value,maxZoom:De.value,minPoints:2}),_t.load(Un)},Bn=async()=>{if(!B.value||!er.value){console.warn("Cannot initialize map: missing container or coordinates");return}Dt(),await om();const Un=E.baseLatitude,qr=E.baseLongitude;try{K=Mm.map(B.value,{center:[Un,qr],zoom:10,zoomControl:!0,scrollWheelZoom:!0,doubleClickZoom:!0,boxZoom:!0,keyboard:!0,attributionControl:!1});try{const si=Mm.tileLayer("https://{s}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}{r}.png",{maxZoom:19,attribution:'© OpenStreetMap contributors © CARTO',errorTileUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="}),Ma=Mm.tileLayer("https://{s}.basemaps.cartocdn.com/dark_only_labels/{z}/{x}/{y}{r}.png",{maxZoom:19,attribution:"",errorTileUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="});si.addTo(K),Ma.addTo(K)}catch(si){console.warn("Error loading tiles:",si)}const Di=(si,Ma=!1)=>{const zo=Ma?16:12;return Mm.divIcon({className:"custom-div-icon",html:``,iconSize:[zo+4,zo+4],iconAnchor:[(zo+4)/2,(zo+4)/2]})},Fi=si=>{const Ma=si<10?30:si<100?40:50;return Mm.divIcon({className:"custom-cluster-icon",html:` + */var Hot=v2.exports,eP;function Wot(){return eP||(eP=1,function(d,s){(function(E,R){R(s)})(Hot,function(E){var R="1.9.4";function Y(ct){var Rt,me,tr,zr;for(me=1,tr=arguments.length;me"u"||!L||!L.Mixin)){ct=cn(ct)?ct:[ct];for(var Rt=0;Rt0?Math.floor(ct):Math.ceil(ct)};la.prototype={clone:function(){return new la(this.x,this.y)},add:function(ct){return this.clone()._add(no(ct))},_add:function(ct){return this.x+=ct.x,this.y+=ct.y,this},subtract:function(ct){return this.clone()._subtract(no(ct))},_subtract:function(ct){return this.x-=ct.x,this.y-=ct.y,this},divideBy:function(ct){return this.clone()._divideBy(ct)},_divideBy:function(ct){return this.x/=ct,this.y/=ct,this},multiplyBy:function(ct){return this.clone()._multiplyBy(ct)},_multiplyBy:function(ct){return this.x*=ct,this.y*=ct,this},scaleBy:function(ct){return new la(this.x*ct.x,this.y*ct.y)},unscaleBy:function(ct){return new la(this.x/ct.x,this.y/ct.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Eo(this.x),this.y=Eo(this.y),this},distanceTo:function(ct){ct=no(ct);var Rt=ct.x-this.x,me=ct.y-this.y;return Math.sqrt(Rt*Rt+me*me)},equals:function(ct){return ct=no(ct),ct.x===this.x&&ct.y===this.y},contains:function(ct){return ct=no(ct),Math.abs(ct.x)<=Math.abs(this.x)&&Math.abs(ct.y)<=Math.abs(this.y)},toString:function(){return"Point("+Je(this.x)+", "+Je(this.y)+")"}};function no(ct,Rt,me){return ct instanceof la?ct:cn(ct)?new la(ct[0],ct[1]):ct==null?ct:typeof ct=="object"&&"x"in ct&&"y"in ct?new la(ct.x,ct.y):new la(ct,Rt,me)}function mo(ct,Rt){if(ct)for(var me=Rt?[ct,Rt]:ct,tr=0,zr=me.length;tr=this.min.x&&me.x<=this.max.x&&Rt.y>=this.min.y&&me.y<=this.max.y},intersects:function(ct){ct=Ts(ct);var Rt=this.min,me=this.max,tr=ct.min,zr=ct.max,An=zr.x>=Rt.x&&tr.x<=me.x,Zi=zr.y>=Rt.y&&tr.y<=me.y;return An&&Zi},overlaps:function(ct){ct=Ts(ct);var Rt=this.min,me=this.max,tr=ct.min,zr=ct.max,An=zr.x>Rt.x&&tr.xRt.y&&tr.y=Rt.lat&&zr.lat<=me.lat&&tr.lng>=Rt.lng&&zr.lng<=me.lng},intersects:function(ct){ct=ko(ct);var Rt=this._southWest,me=this._northEast,tr=ct.getSouthWest(),zr=ct.getNorthEast(),An=zr.lat>=Rt.lat&&tr.lat<=me.lat,Zi=zr.lng>=Rt.lng&&tr.lng<=me.lng;return An&&Zi},overlaps:function(ct){ct=ko(ct);var Rt=this._southWest,me=this._northEast,tr=ct.getSouthWest(),zr=ct.getNorthEast(),An=zr.lat>Rt.lat&&tr.latRt.lng&&tr.lng1,u6=function(){var ct=!1;try{var Rt=Object.defineProperty({},"passive",{get:function(){ct=!0}});window.addEventListener("testPassiveEventSupport",Ie,Rt),window.removeEventListener("testPassiveEventSupport",Ie,Rt)}catch{}return ct}(),c6=function(){return!!document.createElement("canvas").getContext}(),M_=!!(document.createElementNS&&go("svg").createSVGRect),h6=!!M_&&function(){var ct=document.createElement("div");return ct.innerHTML="",(ct.firstChild&&ct.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),f6=!M_&&function(){try{var ct=document.createElement("div");ct.innerHTML='';var Rt=ct.firstChild;return Rt.style.behavior="url(#default#VML)",Rt&&typeof Rt.adj=="object"}catch{return!1}}(),gw=navigator.platform.indexOf("Mac")===0,S_=navigator.platform.indexOf("Linux")===0;function r0(ct){return navigator.userAgent.toLowerCase().indexOf(ct)>=0}var Cl={ie:ms,ielt9:bs,edge:as,webkit:Ko,android:Dl,android23:Ns,androidStock:vu,opera:tc,chrome:dh,gecko:Fc,safari:sp,phantom:Kd,opera12:e0,win:d0,ie3d:Fm,webkit3d:hv,gecko3d:lp,any3d:p0,mobile:Bm,mobileWebkit:Ry,mobileWebkit3d:i6,msPointer:dw,pointer:pw,touch:a6,touchNative:mw,mobileOpera:o6,mobileGecko:s6,retina:l6,passiveEvents:u6,canvas:c6,svg:M_,vml:f6,inlineSvg:h6,mac:gw,linux:S_},Yc=Cl.msPointer?"MSPointerDown":"pointerdown",kd=Cl.msPointer?"MSPointerMove":"pointermove",E_=Cl.msPointer?"MSPointerUp":"pointerup",Zu=Cl.msPointer?"MSPointerCancel":"pointercancel",w1={touchstart:Yc,touchmove:kd,touchend:E_,touchcancel:Zu},vw={touchstart:m6,touchmove:Y0,touchend:Y0,touchcancel:Y0},fv={},Ny=!1;function k1(ct,Rt,me){return Rt==="touchstart"&&C_(),vw[Rt]?(me=vw[Rt].bind(this,me),ct.addEventListener(w1[Rt],me,!1),me):(console.warn("wrong event specified:",Rt),Ie)}function d6(ct,Rt,me){if(!w1[Rt]){console.warn("wrong event specified:",Rt);return}ct.removeEventListener(w1[Rt],me,!1)}function Qo(ct){fv[ct.pointerId]=ct}function p6(ct){fv[ct.pointerId]&&(fv[ct.pointerId]=ct)}function T1(ct){delete fv[ct.pointerId]}function C_(){Ny||(document.addEventListener(Yc,Qo,!0),document.addEventListener(kd,p6,!0),document.addEventListener(E_,T1,!0),document.addEventListener(Zu,T1,!0),Ny=!0)}function Y0(ct,Rt){if(Rt.pointerType!==(Rt.MSPOINTER_TYPE_MOUSE||"mouse")){Rt.touches=[];for(var me in fv)Rt.touches.push(fv[me]);Rt.changedTouches=[Rt],ct(Rt)}}function m6(ct,Rt){Rt.MSPOINTER_TYPE_TOUCH&&Rt.pointerType===Rt.MSPOINTER_TYPE_TOUCH&&mc(Rt),Y0(ct,Rt)}function g6(ct){var Rt={},me,tr;for(tr in ct)me=ct[tr],Rt[tr]=me&&me.bind?me.bind(ct):me;return ct=Rt,Rt.type="dblclick",Rt.detail=2,Rt.isTrusted=!1,Rt._simulated=!0,Rt}var v6=200;function y6(ct,Rt){ct.addEventListener("dblclick",Rt);var me=0,tr;function zr(An){if(An.detail!==1){tr=An.detail;return}if(!(An.pointerType==="mouse"||An.sourceCapabilities&&!An.sourceCapabilities.firesTouchEvents)){var Zi=bw(An);if(!(Zi.some(function(Ka){return Ka instanceof HTMLLabelElement&&Ka.attributes.for})&&!Zi.some(function(Ka){return Ka instanceof HTMLInputElement||Ka instanceof HTMLSelectElement}))){var ja=Date.now();ja-me<=v6?(tr++,tr===2&&Rt(g6(An))):tr=1,me=ja}}}return ct.addEventListener("click",zr),{dblclick:Rt,simDblclick:zr}}function L_(ct,Rt){ct.removeEventListener("dblclick",Rt.dblclick),ct.removeEventListener("click",Rt.simDblclick)}var P_=jm(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),A1=jm(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),yw=A1==="webkitTransition"||A1==="OTransition"?A1+"End":"transitionend";function xw(ct){return typeof ct=="string"?document.getElementById(ct):ct}function M1(ct,Rt){var me=ct.style[Rt]||ct.currentStyle&&ct.currentStyle[Rt];if((!me||me==="auto")&&document.defaultView){var tr=document.defaultView.getComputedStyle(ct,null);me=tr?tr[Rt]:null}return me==="auto"?null:me}function Cc(ct,Rt,me){var tr=document.createElement(ct);return tr.className=Rt||"",me&&me.appendChild(tr),tr}function Tf(ct){var Rt=ct.parentNode;Rt&&Rt.removeChild(ct)}function jy(ct){for(;ct.firstChild;)ct.removeChild(ct.firstChild)}function dv(ct){var Rt=ct.parentNode;Rt&&Rt.lastChild!==ct&&Rt.appendChild(ct)}function kn(ct){var Rt=ct.parentNode;Rt&&Rt.firstChild!==ct&&Rt.insertBefore(ct,Rt.firstChild)}function I_(ct,Rt){if(ct.classList!==void 0)return ct.classList.contains(Rt);var me=Nm(ct);return me.length>0&&new RegExp("(^|\\s)"+Rt+"(\\s|$)").test(me)}function Wu(ct,Rt){if(ct.classList!==void 0)for(var me=Ar(Rt),tr=0,zr=me.length;tr0?2*window.devicePixelRatio:1;function Tc(ct){return Cl.edge?ct.wheelDeltaY/2:ct.deltaY&&ct.deltaMode===0?-ct.deltaY/Xc:ct.deltaY&&ct.deltaMode===1?-ct.deltaY*20:ct.deltaY&&ct.deltaMode===2?-ct.deltaY*60:ct.deltaX||ct.deltaZ?0:ct.wheelDelta?(ct.wheelDeltaY||ct.wheelDelta)/2:ct.detail&&Math.abs(ct.detail)<32765?-ct.detail*20:ct.detail?ct.detail/-32765*60:0}function wg(ct,Rt){var me=Rt.relatedTarget;if(!me)return!0;try{for(;me&&me!==ct;)me=me.parentNode}catch{return!1}return me!==ct}var Fp={__proto__:null,on:Ou,off:jh,stopPropagation:n0,disableScrollPropagation:dm,disableClickPropagation:pv,preventDefault:mc,stop:bg,getPropagationPath:bw,getMousePosition:Xd,getWheelDelta:Tc,isExternalTarget:wg,addListener:Ou,removeListener:jh},C1=Qn.extend({run:function(ct,Rt,me,tr){this.stop(),this._el=ct,this._inProgress=!0,this._duration=me||.25,this._easeOutPower=1/Math.max(tr||.5,.2),this._startPos=Bc(ct),this._offset=Rt.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=Ri(this._animate,this),this._step()},_step:function(ct){var Rt=+new Date-this._startTime,me=this._duration*1e3;Rtthis.options.maxZoom)?this.setZoom(ct):this},panInsideBounds:function(ct,Rt){this._enforcingBounds=!0;var me=this.getCenter(),tr=this._limitCenter(me,this._zoom,ko(ct));return me.equals(tr)||this.panTo(tr,Rt),this._enforcingBounds=!1,this},panInside:function(ct,Rt){Rt=Rt||{};var me=no(Rt.paddingTopLeft||Rt.padding||[0,0]),tr=no(Rt.paddingBottomRight||Rt.padding||[0,0]),zr=this.project(this.getCenter()),An=this.project(ct),Zi=this.getPixelBounds(),ja=Ts([Zi.min.add(me),Zi.max.subtract(tr)]),Ka=ja.getSize();if(!ja.contains(An)){this._enforcingBounds=!0;var xo=An.subtract(ja.getCenter()),Ws=ja.extend(An).getSize().subtract(Ka);zr.x+=xo.x<0?-Ws.x:Ws.x,zr.y+=xo.y<0?-Ws.y:Ws.y,this.panTo(this.unproject(zr),Rt),this._enforcingBounds=!1}return this},invalidateSize:function(ct){if(!this._loaded)return this;ct=Y({animate:!1,pan:!0},ct===!0?{animate:!0}:ct);var Rt=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var me=this.getSize(),tr=Rt.divideBy(2).round(),zr=me.divideBy(2).round(),An=tr.subtract(zr);return!An.x&&!An.y?this:(ct.animate&&ct.pan?this.panBy(An):(ct.pan&&this._rawPanBy(An),this.fire("move"),ct.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(_t(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:Rt,newSize:me}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(ct){if(ct=this._locateOptions=Y({timeout:1e4,watch:!1},ct),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var Rt=_t(this._handleGeolocationResponse,this),me=_t(this._handleGeolocationError,this);return ct.watch?this._locationWatchId=navigator.geolocation.watchPosition(Rt,me,ct):navigator.geolocation.getCurrentPosition(Rt,me,ct),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(ct){if(this._container._leaflet_id){var Rt=ct.code,me=ct.message||(Rt===1?"permission denied":Rt===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:Rt,message:"Geolocation error: "+me+"."})}},_handleGeolocationResponse:function(ct){if(this._container._leaflet_id){var Rt=ct.coords.latitude,me=ct.coords.longitude,tr=new ro(Rt,me),zr=tr.toBounds(ct.coords.accuracy*2),An=this._locateOptions;if(An.setView){var Zi=this.getBoundsZoom(zr);this.setView(tr,An.maxZoom?Math.min(Zi,An.maxZoom):Zi)}var ja={latlng:tr,bounds:zr,timestamp:ct.timestamp};for(var Ka in ct.coords)typeof ct.coords[Ka]=="number"&&(ja[Ka]=ct.coords[Ka]);this.fire("locationfound",ja)}},addHandler:function(ct,Rt){if(!Rt)return this;var me=this[ct]=new Rt(this);return this._handlers.push(me),this.options[ct]&&me.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Tf(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Li(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var ct;for(ct in this._layers)this._layers[ct].remove();for(ct in this._panes)Tf(this._panes[ct]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(ct,Rt){var me="leaflet-pane"+(ct?" leaflet-"+ct.replace("Pane","")+"-pane":""),tr=Cc("div",me,Rt||this._mapPane);return ct&&(this._panes[ct]=tr),tr},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var ct=this.getPixelBounds(),Rt=this.unproject(ct.getBottomLeft()),me=this.unproject(ct.getTopRight());return new xl(Rt,me)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(ct,Rt,me){ct=ko(ct),me=no(me||[0,0]);var tr=this.getZoom()||0,zr=this.getMinZoom(),An=this.getMaxZoom(),Zi=ct.getNorthWest(),ja=ct.getSouthEast(),Ka=this.getSize().subtract(me),xo=Ts(this.project(ja,tr),this.project(Zi,tr)).getSize(),Ws=Cl.any3d?this.options.zoomSnap:1,_l=Ka.x/xo.x,Bu=Ka.y/xo.y,Md=Rt?Math.max(_l,Bu):Math.min(_l,Bu);return tr=this.getScaleZoom(Md,tr),Ws&&(tr=Math.round(tr/(Ws/100))*(Ws/100),tr=Rt?Math.ceil(tr/Ws)*Ws:Math.floor(tr/Ws)*Ws),Math.max(zr,Math.min(An,tr))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new la(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(ct,Rt){var me=this._getTopLeftPoint(ct,Rt);return new mo(me,me.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(ct){return this.options.crs.getProjectedBounds(ct===void 0?this.getZoom():ct)},getPane:function(ct){return typeof ct=="string"?this._panes[ct]:ct},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(ct,Rt){var me=this.options.crs;return Rt=Rt===void 0?this._zoom:Rt,me.scale(ct)/me.scale(Rt)},getScaleZoom:function(ct,Rt){var me=this.options.crs;Rt=Rt===void 0?this._zoom:Rt;var tr=me.zoom(ct*me.scale(Rt));return isNaN(tr)?1/0:tr},project:function(ct,Rt){return Rt=Rt===void 0?this._zoom:Rt,this.options.crs.latLngToPoint(Ia(ct),Rt)},unproject:function(ct,Rt){return Rt=Rt===void 0?this._zoom:Rt,this.options.crs.pointToLatLng(no(ct),Rt)},layerPointToLatLng:function(ct){var Rt=no(ct).add(this.getPixelOrigin());return this.unproject(Rt)},latLngToLayerPoint:function(ct){var Rt=this.project(Ia(ct))._round();return Rt._subtract(this.getPixelOrigin())},wrapLatLng:function(ct){return this.options.crs.wrapLatLng(Ia(ct))},wrapLatLngBounds:function(ct){return this.options.crs.wrapLatLngBounds(ko(ct))},distance:function(ct,Rt){return this.options.crs.distance(Ia(ct),Ia(Rt))},containerPointToLayerPoint:function(ct){return no(ct).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(ct){return no(ct).add(this._getMapPanePos())},containerPointToLatLng:function(ct){var Rt=this.containerPointToLayerPoint(no(ct));return this.layerPointToLatLng(Rt)},latLngToContainerPoint:function(ct){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Ia(ct)))},mouseEventToContainerPoint:function(ct){return Xd(ct,this._container)},mouseEventToLayerPoint:function(ct){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(ct))},mouseEventToLatLng:function(ct){return this.layerPointToLatLng(this.mouseEventToLayerPoint(ct))},_initContainer:function(ct){var Rt=this._container=xw(ct);if(Rt){if(Rt._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Ou(Rt,"scroll",this._onScroll,this),this._containerId=jt(Rt)},_initLayout:function(){var ct=this._container;this._fadeAnimated=this.options.fadeAnimation&&Cl.any3d,Wu(ct,"leaflet-container"+(Cl.touch?" leaflet-touch":"")+(Cl.retina?" leaflet-retina":"")+(Cl.ielt9?" leaflet-oldie":"")+(Cl.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var Rt=M1(ct,"position");Rt!=="absolute"&&Rt!=="relative"&&Rt!=="fixed"&&Rt!=="sticky"&&(ct.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var ct=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ic(this._mapPane,new la(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Wu(ct.markerPane,"leaflet-zoom-hide"),Wu(ct.shadowPane,"leaflet-zoom-hide"))},_resetView:function(ct,Rt,me){ic(this._mapPane,new la(0,0));var tr=!this._loaded;this._loaded=!0,Rt=this._limitZoom(Rt),this.fire("viewprereset");var zr=this._zoom!==Rt;this._moveStart(zr,me)._move(ct,Rt)._moveEnd(zr),this.fire("viewreset"),tr&&this.fire("load")},_moveStart:function(ct,Rt){return ct&&this.fire("zoomstart"),Rt||this.fire("movestart"),this},_move:function(ct,Rt,me,tr){Rt===void 0&&(Rt=this._zoom);var zr=this._zoom!==Rt;return this._zoom=Rt,this._lastCenter=ct,this._pixelOrigin=this._getNewPixelOrigin(ct),tr?me&&me.pinch&&this.fire("zoom",me):((zr||me&&me.pinch)&&this.fire("zoom",me),this.fire("move",me)),this},_moveEnd:function(ct){return ct&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Li(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(ct){ic(this._mapPane,this._getMapPanePos().subtract(ct))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(ct){this._targets={},this._targets[jt(this._container)]=this;var Rt=ct?jh:Ou;Rt(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&Rt(window,"resize",this._onResize,this),Cl.any3d&&this.options.transform3DLimit&&(ct?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Li(this._resizeRequest),this._resizeRequest=Ri(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var ct=this._getMapPanePos();Math.max(Math.abs(ct.x),Math.abs(ct.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(ct,Rt){for(var me=[],tr,zr=Rt==="mouseout"||Rt==="mouseover",An=ct.target||ct.srcElement,Zi=!1;An;){if(tr=this._targets[jt(An)],tr&&(Rt==="click"||Rt==="preclick")&&this._draggableMoved(tr)){Zi=!0;break}if(tr&&tr.listens(Rt,!0)&&(zr&&!wg(An,ct)||(me.push(tr),zr))||An===this._container)break;An=An.parentNode}return!me.length&&!Zi&&!zr&&this.listens(Rt,!0)&&(me=[this]),me},_isClickDisabled:function(ct){for(;ct&&ct!==this._container;){if(ct._leaflet_disable_click)return!0;ct=ct.parentNode}},_handleDOMEvent:function(ct){var Rt=ct.target||ct.srcElement;if(!(!this._loaded||Rt._leaflet_disable_events||ct.type==="click"&&this._isClickDisabled(Rt))){var me=ct.type;me==="mousedown"&&Ud(Rt),this._fireDOMEvent(ct,me)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(ct,Rt,me){if(ct.type==="click"){var tr=Y({},ct);tr.type="preclick",this._fireDOMEvent(tr,tr.type,me)}var zr=this._findEventTargets(ct,Rt);if(me){for(var An=[],Zi=0;Zi0?Math.round(ct-Rt)/2:Math.max(0,Math.ceil(ct))-Math.max(0,Math.floor(Rt))},_limitZoom:function(ct){var Rt=this.getMinZoom(),me=this.getMaxZoom(),tr=Cl.any3d?this.options.zoomSnap:1;return tr&&(ct=Math.round(ct/tr)*tr),Math.max(Rt,Math.min(me,ct))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Rf(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(ct,Rt){var me=this._getCenterOffset(ct)._trunc();return(Rt&&Rt.animate)!==!0&&!this.getSize().contains(me)?!1:(this.panBy(me,Rt),!0)},_createAnimProxy:function(){var ct=this._proxy=Cc("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(ct),this.on("zoomanim",function(Rt){var me=P_,tr=this._proxy.style[me];mu(this._proxy,this.project(Rt.center,Rt.zoom),this.getZoomScale(Rt.zoom,1)),tr===this._proxy.style[me]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Tf(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var ct=this.getCenter(),Rt=this.getZoom();mu(this._proxy,this.project(ct,Rt),this.getZoomScale(Rt,1))},_catchTransitionEnd:function(ct){this._animatingZoom&&ct.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(ct,Rt,me){if(this._animatingZoom)return!0;if(me=me||{},!this._zoomAnimated||me.animate===!1||this._nothingToAnimate()||Math.abs(Rt-this._zoom)>this.options.zoomAnimationThreshold)return!1;var tr=this.getZoomScale(Rt),zr=this._getCenterOffset(ct)._divideBy(1-1/tr);return me.animate!==!0&&!this.getSize().contains(zr)?!1:(Ri(function(){this._moveStart(!0,me.noMoveStart||!1)._animateZoom(ct,Rt,!0)},this),!0)},_animateZoom:function(ct,Rt,me,tr){this._mapPane&&(me&&(this._animatingZoom=!0,this._animateToCenter=ct,this._animateToZoom=Rt,Wu(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:ct,zoom:Rt,noUpdate:tr}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(_t(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Rf(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Vs(ct,Rt){return new Ac(ct,Rt)}var up=Hn.extend({options:{position:"topright"},initialize:function(ct){kr(this,ct)},getPosition:function(){return this.options.position},setPosition:function(ct){var Rt=this._map;return Rt&&Rt.removeControl(this),this.options.position=ct,Rt&&Rt.addControl(this),this},getContainer:function(){return this._container},addTo:function(ct){this.remove(),this._map=ct;var Rt=this._container=this.onAdd(ct),me=this.getPosition(),tr=ct._controlCorners[me];return Wu(Rt,"leaflet-control"),me.indexOf("bottom")!==-1?tr.insertBefore(Rt,tr.firstChild):tr.appendChild(Rt),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Tf(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(ct){this._map&&ct&&ct.screenX>0&&ct.screenY>0&&this._map.getContainer().focus()}}),i0=function(ct){return new up(ct)};Ac.include({addControl:function(ct){return ct.addTo(this),this},removeControl:function(ct){return ct.remove(),this},_initControlPos:function(){var ct=this._controlCorners={},Rt="leaflet-",me=this._controlContainer=Cc("div",Rt+"control-container",this._container);function tr(zr,An){var Zi=Rt+zr+" "+Rt+An;ct[zr+An]=Cc("div",Zi,me)}tr("top","left"),tr("top","right"),tr("bottom","left"),tr("bottom","right")},_clearControlPos:function(){for(var ct in this._controlCorners)Tf(this._controlCorners[ct]);Tf(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var mv=up.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(ct,Rt,me,tr){return me1,this._baseLayersList.style.display=ct?"":"none"),this._separator.style.display=Rt&&ct?"":"none",this},_onLayerChange:function(ct){this._handlingClick||this._update();var Rt=this._getLayer(jt(ct.target)),me=Rt.overlay?ct.type==="add"?"overlayadd":"overlayremove":ct.type==="add"?"baselayerchange":null;me&&this._map.fire(me,Rt)},_createRadioElement:function(ct,Rt){var me='",tr=document.createElement("div");return tr.innerHTML=me,tr.firstChild},_addItem:function(ct){var Rt=document.createElement("label"),me=this._map.hasLayer(ct.layer),tr;ct.overlay?(tr=document.createElement("input"),tr.type="checkbox",tr.className="leaflet-control-layers-selector",tr.defaultChecked=me):tr=this._createRadioElement("leaflet-base-layers_"+jt(this),me),this._layerControlInputs.push(tr),tr.layerId=jt(ct.layer),Ou(tr,"click",this._onInputClick,this);var zr=document.createElement("span");zr.innerHTML=" "+ct.name;var An=document.createElement("span");Rt.appendChild(An),An.appendChild(tr),An.appendChild(zr);var Zi=ct.overlay?this._overlaysList:this._baseLayersList;return Zi.appendChild(Rt),this._checkDisabledLayers(),Rt},_onInputClick:function(){if(!this._preventClick){var ct=this._layerControlInputs,Rt,me,tr=[],zr=[];this._handlingClick=!0;for(var An=ct.length-1;An>=0;An--)Rt=ct[An],me=this._getLayer(Rt.layerId).layer,Rt.checked?tr.push(me):Rt.checked||zr.push(me);for(An=0;An=0;zr--)Rt=ct[zr],me=this._getLayer(Rt.layerId).layer,Rt.disabled=me.options.minZoom!==void 0&&trme.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var ct=this._section;this._preventClick=!0,Ou(ct,"click",mc),this.expand();var Rt=this;setTimeout(function(){jh(ct,"click",mc),Rt._preventClick=!1})}}),K0=function(ct,Rt,me){return new mv(ct,Rt,me)},Ls=up.extend({options:{position:"topleft",zoomInText:'+',zoomInTitle:"Zoom in",zoomOutText:'−',zoomOutTitle:"Zoom out"},onAdd:function(ct){var Rt="leaflet-control-zoom",me=Cc("div",Rt+" leaflet-bar"),tr=this.options;return this._zoomInButton=this._createButton(tr.zoomInText,tr.zoomInTitle,Rt+"-in",me,this._zoomIn),this._zoomOutButton=this._createButton(tr.zoomOutText,tr.zoomOutTitle,Rt+"-out",me,this._zoomOut),this._updateDisabled(),ct.on("zoomend zoomlevelschange",this._updateDisabled,this),me},onRemove:function(ct){ct.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(ct){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(ct.shiftKey?3:1))},_createButton:function(ct,Rt,me,tr,zr){var An=Cc("a",me,tr);return An.innerHTML=ct,An.href="#",An.title=Rt,An.setAttribute("role","button"),An.setAttribute("aria-label",Rt),pv(An),Ou(An,"click",bg),Ou(An,"click",zr,this),Ou(An,"click",this._refocusOnMap,this),An},_updateDisabled:function(){var ct=this._map,Rt="leaflet-disabled";Rf(this._zoomInButton,Rt),Rf(this._zoomOutButton,Rt),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||ct._zoom===ct.getMinZoom())&&(Wu(this._zoomOutButton,Rt),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||ct._zoom===ct.getMaxZoom())&&(Wu(this._zoomInButton,Rt),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ac.mergeOptions({zoomControl:!0}),Ac.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ls,this.addControl(this.zoomControl))});var ww=function(ct){return new Ls(ct)},z_=up.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(ct){var Rt="leaflet-control-scale",me=Cc("div",Rt),tr=this.options;return this._addScales(tr,Rt+"-line",me),ct.on(tr.updateWhenIdle?"moveend":"move",this._update,this),ct.whenReady(this._update,this),me},onRemove:function(ct){ct.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(ct,Rt,me){ct.metric&&(this._mScale=Cc("div",Rt,me)),ct.imperial&&(this._iScale=Cc("div",Rt,me))},_update:function(){var ct=this._map,Rt=ct.getSize().y/2,me=ct.distance(ct.containerPointToLatLng([0,Rt]),ct.containerPointToLatLng([this.options.maxWidth,Rt]));this._updateScales(me)},_updateScales:function(ct){this.options.metric&&ct&&this._updateMetric(ct),this.options.imperial&&ct&&this._updateImperial(ct)},_updateMetric:function(ct){var Rt=this._getRoundNum(ct),me=Rt<1e3?Rt+" m":Rt/1e3+" km";this._updateScale(this._mScale,me,Rt/ct)},_updateImperial:function(ct){var Rt=ct*3.2808399,me,tr,zr;Rt>5280?(me=Rt/5280,tr=this._getRoundNum(me),this._updateScale(this._iScale,tr+" mi",tr/me)):(zr=this._getRoundNum(Rt),this._updateScale(this._iScale,zr+" ft",zr/Rt))},_updateScale:function(ct,Rt,me){ct.style.width=Math.round(this.options.maxWidth*me)+"px",ct.innerHTML=Rt},_getRoundNum:function(ct){var Rt=Math.pow(10,(Math.floor(ct)+"").length-1),me=ct/Rt;return me=me>=10?10:me>=5?5:me>=3?3:me>=2?2:1,Rt*me}}),x6=function(ct){return new z_(ct)},O_='',D_=up.extend({options:{position:"bottomright",prefix:''+(Cl.inlineSvg?O_+" ":"")+"Leaflet"},initialize:function(ct){kr(this,ct),this._attributions={}},onAdd:function(ct){ct.attributionControl=this,this._container=Cc("div","leaflet-control-attribution"),pv(this._container);for(var Rt in ct._layers)ct._layers[Rt].getAttribution&&this.addAttribution(ct._layers[Rt].getAttribution());return this._update(),ct.on("layeradd",this._addAttribution,this),this._container},onRemove:function(ct){ct.off("layeradd",this._addAttribution,this)},_addAttribution:function(ct){ct.layer.getAttribution&&(this.addAttribution(ct.layer.getAttribution()),ct.layer.once("remove",function(){this.removeAttribution(ct.layer.getAttribution())},this))},setPrefix:function(ct){return this.options.prefix=ct,this._update(),this},addAttribution:function(ct){return ct?(this._attributions[ct]||(this._attributions[ct]=0),this._attributions[ct]++,this._update(),this):this},removeAttribution:function(ct){return ct?(this._attributions[ct]&&(this._attributions[ct]--,this._update()),this):this},_update:function(){if(this._map){var ct=[];for(var Rt in this._attributions)this._attributions[Rt]&&ct.push(Rt);var me=[];this.options.prefix&&me.push(this.options.prefix),ct.length&&me.push(ct.join(", ")),this._container.innerHTML=me.join(' | ')}}});Ac.mergeOptions({attributionControl:!0}),Ac.addInitHook(function(){this.options.attributionControl&&new D_().addTo(this)});var _6=function(ct){return new D_(ct)};up.Layers=mv,up.Zoom=Ls,up.Scale=z_,up.Attribution=D_,i0.layers=K0,i0.zoom=ww,i0.scale=x6,i0.attribution=_6;var X0=Hn.extend({initialize:function(ct){this._map=ct},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});X0.addTo=function(ct,Rt){return ct.addHandler(Rt,this),this};var cp={Events:Ti},I0=Cl.touch?"touchstart mousedown":"mousedown",Um=Qn.extend({options:{clickTolerance:3},initialize:function(ct,Rt,me,tr){kr(this,tr),this._element=ct,this._dragStartTarget=Rt||ct,this._preventOutline=me},enable:function(){this._enabled||(Ou(this._dragStartTarget,I0,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Um._dragging===this&&this.finishDrag(!0),jh(this._dragStartTarget,I0,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(ct){if(this._enabled&&(this._moved=!1,!I_(this._element,"leaflet-zoom-anim"))){if(ct.touches&&ct.touches.length!==1){Um._dragging===this&&this.finishDrag();return}if(!(Um._dragging||ct.shiftKey||ct.which!==1&&ct.button!==1&&!ct.touches)&&(Um._dragging=this,this._preventOutline&&Ud(this._element),Kc(),L0(),!this._moving)){this.fire("down");var Rt=ct.touches?ct.touches[0]:ct,me=Td(this._element);this._startPoint=new la(Rt.clientX,Rt.clientY),this._startPos=Bc(this._element),this._parentScale=E1(me);var tr=ct.type==="mousedown";Ou(document,tr?"mousemove":"touchmove",this._onMove,this),Ou(document,tr?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(ct){if(this._enabled){if(ct.touches&&ct.touches.length>1){this._moved=!0;return}var Rt=ct.touches&&ct.touches.length===1?ct.touches[0]:ct,me=new la(Rt.clientX,Rt.clientY)._subtract(this._startPoint);!me.x&&!me.y||Math.abs(me.x)+Math.abs(me.y)An&&(Zi=ja,An=Ka);An>me&&(Rt[Zi]=1,Tg(ct,Rt,me,tr,Zi),Tg(ct,Rt,me,Zi,zr))}function Tw(ct,Rt){for(var me=[ct[0]],tr=1,zr=0,An=ct.length;trRt&&(me.push(ct[tr]),zr=tr);return zrRt.max.x&&(me|=2),ct.yRt.max.y&&(me|=8),me}function k6(ct,Rt){var me=Rt.x-ct.x,tr=Rt.y-ct.y;return me*me+tr*tr}function gv(ct,Rt,me,tr){var zr=Rt.x,An=Rt.y,Zi=me.x-zr,ja=me.y-An,Ka=Zi*Zi+ja*ja,xo;return Ka>0&&(xo=((ct.x-zr)*Zi+(ct.y-An)*ja)/Ka,xo>1?(zr=me.x,An=me.y):xo>0&&(zr+=Zi*xo,An+=ja*xo)),Zi=ct.x-zr,ja=ct.y-An,tr?Zi*Zi+ja*ja:new la(zr,An)}function g0(ct){return!cn(ct[0])||typeof ct[0][0]!="object"&&typeof ct[0][0]<"u"}function Aw(ct){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),g0(ct)}function Mw(ct,Rt){var me,tr,zr,An,Zi,ja,Ka,xo;if(!ct||ct.length===0)throw new Error("latlngs not passed");g0(ct)||(console.warn("latlngs are not flat! Only the first ring will be used"),ct=ct[0]);var Ws=Ia([0,0]),_l=ko(ct),Bu=_l.getNorthWest().distanceTo(_l.getSouthWest())*_l.getNorthEast().distanceTo(_l.getNorthWest());Bu<1700&&(Ws=Hy(ct));var Md=ct.length,Nf=[];for(me=0;metr){Ka=(An-tr)/zr,xo=[ja.x-Ka*(ja.x-Zi.x),ja.y-Ka*(ja.y-Zi.y)];break}var kp=Rt.unproject(no(xo));return Ia([kp.lat+Ws.lat,kp.lng+Ws.lng])}var tf={__proto__:null,simplify:B_,pointToSegmentDistance:kw,closestPointOnSegment:kg,clipSegment:N_,_getEdgeIntersection:Ag,_getBitCode:Mg,_sqClosestPointOnSegment:gv,isFlat:g0,_flat:Aw,polylineCenter:Mw},v0={project:function(ct){return new la(ct.lng,ct.lat)},unproject:function(ct){return new ro(ct.y,ct.x)},bounds:new mo([-180,-90],[180,90])},vv={R:6378137,R_MINOR:6356752314245179e-9,bounds:new mo([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(ct){var Rt=Math.PI/180,me=this.R,tr=ct.lat*Rt,zr=this.R_MINOR/me,An=Math.sqrt(1-zr*zr),Zi=An*Math.sin(tr),ja=Math.tan(Math.PI/4-tr/2)/Math.pow((1-Zi)/(1+Zi),An/2);return tr=-me*Math.log(Math.max(ja,1e-10)),new la(ct.lng*Rt*me,tr)},unproject:function(ct){for(var Rt=180/Math.PI,me=this.R,tr=this.R_MINOR/me,zr=Math.sqrt(1-tr*tr),An=Math.exp(-ct.y/me),Zi=Math.PI/2-2*Math.atan(An),ja=0,Ka=.1,xo;ja<15&&Math.abs(Ka)>1e-7;ja++)xo=zr*Math.sin(Zi),xo=Math.pow((1-xo)/(1+xo),zr/2),Ka=Math.PI/2-2*Math.atan(An*xo)-Zi,Zi+=Ka;return new ro(Zi*Rt,ct.x*Rt/me)}},j_={__proto__:null,LonLat:v0,Mercator:vv,SphericalMercator:us},U_=Y({},io,{code:"EPSG:3395",projection:vv,transformation:function(){var ct=.5/(Math.PI*vv.R);return _i(ct,.5,-ct,.5)}()}),Wy=Y({},io,{code:"EPSG:4326",projection:v0,transformation:_i(1/180,1,-1/180,.5)}),Sg=Y({},ma,{projection:v0,transformation:_i(1,0,-1,0),scale:function(ct){return Math.pow(2,ct)},zoom:function(ct){return Math.log(ct)/Math.LN2},distance:function(ct,Rt){var me=Rt.lng-ct.lng,tr=Rt.lat-ct.lat;return Math.sqrt(me*me+tr*tr)},infinite:!0});ma.Earth=io,ma.EPSG3395=U_,ma.EPSG3857=Ai,ma.EPSG900913=pi,ma.EPSG4326=Wy,ma.Simple=Sg;var a0=Qn.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(ct){return ct.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(ct){return ct&&ct.removeLayer(this),this},getPane:function(ct){return this._map.getPane(ct?this.options[ct]||ct:this.options.pane)},addInteractiveTarget:function(ct){return this._map._targets[jt(ct)]=this,this},removeInteractiveTarget:function(ct){return delete this._map._targets[jt(ct)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(ct){var Rt=ct.target;if(Rt.hasLayer(this)){if(this._map=Rt,this._zoomAnimated=Rt._zoomAnimated,this.getEvents){var me=this.getEvents();Rt.on(me,this),this.once("remove",function(){Rt.off(me,this)},this)}this.onAdd(Rt),this.fire("add"),Rt.fire("layeradd",{layer:this})}}});Ac.include({addLayer:function(ct){if(!ct._layerAdd)throw new Error("The provided object is not a Layer.");var Rt=jt(ct);return this._layers[Rt]?this:(this._layers[Rt]=ct,ct._mapToAdd=this,ct.beforeAdd&&ct.beforeAdd(this),this.whenReady(ct._layerAdd,ct),this)},removeLayer:function(ct){var Rt=jt(ct);return this._layers[Rt]?(this._loaded&&ct.onRemove(this),delete this._layers[Rt],this._loaded&&(this.fire("layerremove",{layer:ct}),ct.fire("remove")),ct._map=ct._mapToAdd=null,this):this},hasLayer:function(ct){return jt(ct)in this._layers},eachLayer:function(ct,Rt){for(var me in this._layers)ct.call(Rt,this._layers[me]);return this},_addLayers:function(ct){ct=ct?cn(ct)?ct:[ct]:[];for(var Rt=0,me=ct.length;Rtthis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()=2&&Rt[0]instanceof ro&&Rt[0].equals(Rt[me-1])&&Rt.pop(),Rt},_setLatLngs:function(ct){y0.prototype._setLatLngs.call(this,ct),g0(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return g0(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var ct=this._renderer._bounds,Rt=this.options.weight,me=new la(Rt,Rt);if(ct=new mo(ct.min.subtract(me),ct.max.add(me)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(ct))){if(this.options.noClip){this._parts=this._rings;return}for(var tr=0,zr=this._rings.length,An;trct.y!=zr.y>ct.y&&ct.x<(zr.x-tr.x)*(ct.y-tr.y)/(zr.y-tr.y)+tr.x&&(Rt=!Rt);return Rt||y0.prototype._containsPoint.call(this,ct,!0)}});function A6(ct,Rt){return new _v(ct,Rt)}var pm=wp.extend({initialize:function(ct,Rt){kr(this,Rt),this._layers={},ct&&this.addData(ct)},addData:function(ct){var Rt=cn(ct)?ct:ct.features,me,tr,zr;if(Rt){for(me=0,tr=Rt.length;me0&&zr.push(zr[0].slice()),zr}function mm(ct,Rt){return ct.feature?Y({},ct.feature,{geometry:Rt}):Xy(Rt)}function Xy(ct){return ct.type==="Feature"||ct.type==="FeatureCollection"?ct:{type:"Feature",properties:{},geometry:ct}}var $_={toGeoJSON:function(ct){return mm(this,{type:"Point",coordinates:q_(this.getLatLng(),ct)})}};L1.include($_),Zy.include($_),$y.include($_),y0.include({toGeoJSON:function(ct){var Rt=!g0(this._latlngs),me=Ky(this._latlngs,Rt?1:0,!1,ct);return mm(this,{type:(Rt?"Multi":"")+"LineString",coordinates:me})}}),_v.include({toGeoJSON:function(ct){var Rt=!g0(this._latlngs),me=Rt&&!g0(this._latlngs[0]),tr=Ky(this._latlngs,me?2:Rt?1:0,!0,ct);return Rt||(tr=[tr]),mm(this,{type:(me?"Multi":"")+"Polygon",coordinates:tr})}}),Eg.include({toMultiPoint:function(ct){var Rt=[];return this.eachLayer(function(me){Rt.push(me.toGeoJSON(ct).geometry.coordinates)}),mm(this,{type:"MultiPoint",coordinates:Rt})},toGeoJSON:function(ct){var Rt=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(Rt==="MultiPoint")return this.toMultiPoint(ct);var me=Rt==="GeometryCollection",tr=[];return this.eachLayer(function(zr){if(zr.toGeoJSON){var An=zr.toGeoJSON(ct);if(me)tr.push(An.geometry);else{var Zi=Xy(An);Zi.type==="FeatureCollection"?tr.push.apply(tr,Zi.features):tr.push(Zi)}}}),me?mm(this,{geometries:tr,type:"GeometryCollection"}):{type:"FeatureCollection",features:tr}}});function Z_(ct,Rt){return new pm(ct,Rt)}var Jy=Z_,gm=a0.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(ct,Rt,me){this._url=ct,this._bounds=ko(Rt),kr(this,me)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Wu(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Tf(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(ct){return this.options.opacity=ct,this._image&&this._updateOpacity(),this},setStyle:function(ct){return ct.opacity&&this.setOpacity(ct.opacity),this},bringToFront:function(){return this._map&&dv(this._image),this},bringToBack:function(){return this._map&&kn(this._image),this},setUrl:function(ct){return this._url=ct,this._image&&(this._image.src=ct),this},setBounds:function(ct){return this._bounds=ko(ct),this._map&&this._reset(),this},getEvents:function(){var ct={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(ct.zoomanim=this._animateZoom),ct},setZIndex:function(ct){return this.options.zIndex=ct,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var ct=this._url.tagName==="IMG",Rt=this._image=ct?this._url:Cc("img");if(Wu(Rt,"leaflet-image-layer"),this._zoomAnimated&&Wu(Rt,"leaflet-zoom-animated"),this.options.className&&Wu(Rt,this.options.className),Rt.onselectstart=Ie,Rt.onmousemove=Ie,Rt.onload=_t(this.fire,this,"load"),Rt.onerror=_t(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(Rt.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),ct){this._url=Rt.src;return}Rt.src=this._url,Rt.alt=this.options.alt},_animateZoom:function(ct){var Rt=this._map.getZoomScale(ct.zoom),me=this._map._latLngBoundsToNewLayerBounds(this._bounds,ct.zoom,ct.center).min;mu(this._image,me,Rt)},_reset:function(){var ct=this._image,Rt=new mo(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),me=Rt.getSize();ic(ct,Rt.min),ct.style.width=me.x+"px",ct.style.height=me.y+"px"},_updateOpacity:function(){m0(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var ct=this.options.errorOverlayUrl;ct&&this._url!==ct&&(this._url=ct,this._image.src=ct)},getCenter:function(){return this._bounds.getCenter()}}),vm=function(ct,Rt,me){return new gm(ct,Rt,me)},z0=gm.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var ct=this._url.tagName==="VIDEO",Rt=this._image=ct?this._url:Cc("video");if(Wu(Rt,"leaflet-image-layer"),this._zoomAnimated&&Wu(Rt,"leaflet-zoom-animated"),this.options.className&&Wu(Rt,this.options.className),Rt.onselectstart=Ie,Rt.onmousemove=Ie,Rt.onloadeddata=_t(this.fire,this,"load"),ct){for(var me=Rt.getElementsByTagName("source"),tr=[],zr=0;zr0?tr:[Rt.src];return}cn(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(Rt.style,"objectFit")&&(Rt.style.objectFit="fill"),Rt.autoplay=!!this.options.autoplay,Rt.loop=!!this.options.loop,Rt.muted=!!this.options.muted,Rt.playsInline=!!this.options.playsInline;for(var An=0;An×',Ou(tr,"click",function(zr){mc(zr),this.close()},this)}},_updateLayout:function(){var ct=this._contentNode,Rt=ct.style;Rt.width="",Rt.whiteSpace="nowrap";var me=ct.offsetWidth;me=Math.min(me,this.options.maxWidth),me=Math.max(me,this.options.minWidth),Rt.width=me+1+"px",Rt.whiteSpace="",Rt.height="";var tr=ct.offsetHeight,zr=this.options.maxHeight,An="leaflet-popup-scrolled";zr&&tr>zr?(Rt.height=zr+"px",Wu(ct,An)):Rf(ct,An),this._containerWidth=this._container.offsetWidth},_animateZoom:function(ct){var Rt=this._map._latLngToNewLayerPoint(this._latlng,ct.zoom,ct.center),me=this._getAnchor();ic(this._container,Rt.add(me))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var ct=this._map,Rt=parseInt(M1(this._container,"marginBottom"),10)||0,me=this._container.offsetHeight+Rt,tr=this._containerWidth,zr=new la(this._containerLeft,-me-this._containerBottom);zr._add(Bc(this._container));var An=ct.layerPointToContainerPoint(zr),Zi=no(this.options.autoPanPadding),ja=no(this.options.autoPanPaddingTopLeft||Zi),Ka=no(this.options.autoPanPaddingBottomRight||Zi),xo=ct.getSize(),Ws=0,_l=0;An.x+tr+Ka.x>xo.x&&(Ws=An.x+tr-xo.x+Ka.x),An.x-Ws-ja.x<0&&(Ws=An.x-ja.x),An.y+me+Ka.y>xo.y&&(_l=An.y+me-xo.y+Ka.y),An.y-_l-ja.y<0&&(_l=An.y-ja.y),(Ws||_l)&&(this.options.keepInView&&(this._autopanning=!0),ct.fire("autopanstart").panBy([Ws,_l]))}},_getAnchor:function(){return no(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),vf=function(ct,Rt){return new Cg(ct,Rt)};Ac.mergeOptions({closePopupOnClick:!0}),Ac.include({openPopup:function(ct,Rt,me){return this._initOverlay(Cg,ct,Rt,me).openOn(this),this},closePopup:function(ct){return ct=arguments.length?ct:this._popup,ct&&ct.close(),this}}),a0.include({bindPopup:function(ct,Rt){return this._popup=this._initOverlay(Cg,this._popup,ct,Rt),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(ct){return this._popup&&(this instanceof wp||(this._popup._source=this),this._popup._prepareOpen(ct||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(ct){return this._popup&&this._popup.setContent(ct),this},getPopup:function(){return this._popup},_openPopup:function(ct){if(!(!this._popup||!this._map)){bg(ct);var Rt=ct.layer||ct.target;if(this._popup._source===Rt&&!(Rt instanceof Hm)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(ct.latlng);return}this._popup._source=Rt,this.openPopup(ct.latlng)}},_movePopup:function(ct){this._popup.setLatLng(ct.latlng)},_onKeyPress:function(ct){ct.originalEvent.keyCode===13&&this._openPopup(ct)}});var P1=J0.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(ct){J0.prototype.onAdd.call(this,ct),this.setOpacity(this.options.opacity),ct.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(ct){J0.prototype.onRemove.call(this,ct),ct.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var ct=J0.prototype.getEvents.call(this);return this.options.permanent||(ct.preclick=this.close),ct},_initLayout:function(){var ct="leaflet-tooltip",Rt=ct+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Cc("div",Rt),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+jt(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(ct){var Rt,me,tr=this._map,zr=this._container,An=tr.latLngToContainerPoint(tr.getCenter()),Zi=tr.layerPointToContainerPoint(ct),ja=this.options.direction,Ka=zr.offsetWidth,xo=zr.offsetHeight,Ws=no(this.options.offset),_l=this._getAnchor();ja==="top"?(Rt=Ka/2,me=xo):ja==="bottom"?(Rt=Ka/2,me=0):ja==="center"?(Rt=Ka/2,me=xo/2):ja==="right"?(Rt=0,me=xo/2):ja==="left"?(Rt=Ka,me=xo/2):Zi.xthis.options.maxZoom||metr?this._retainParent(zr,An,Zi,tr):!1)},_retainChildren:function(ct,Rt,me,tr){for(var zr=2*ct;zr<2*ct+2;zr++)for(var An=2*Rt;An<2*Rt+2;An++){var Zi=new la(zr,An);Zi.z=me+1;var ja=this._tileCoordsToKey(Zi),Ka=this._tiles[ja];if(Ka&&Ka.active){Ka.retain=!0;continue}else Ka&&Ka.loaded&&(Ka.retain=!0);me+1this.options.maxZoom||this.options.minZoom!==void 0&&zr1){this._setView(ct,me);return}for(var _l=zr.min.y;_l<=zr.max.y;_l++)for(var Bu=zr.min.x;Bu<=zr.max.x;Bu++){var Md=new la(Bu,_l);if(Md.z=this._tileZoom,!!this._isValidTile(Md)){var Nf=this._tiles[this._tileCoordsToKey(Md)];Nf?Nf.current=!0:Zi.push(Md)}}if(Zi.sort(function(kp,qm){return kp.distanceTo(An)-qm.distanceTo(An)}),Zi.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var _0=document.createDocumentFragment();for(Bu=0;Bume.max.x)||!Rt.wrapLat&&(ct.yme.max.y))return!1}if(!this.options.bounds)return!0;var tr=this._tileCoordsToBounds(ct);return ko(this.options.bounds).overlaps(tr)},_keyToBounds:function(ct){return this._tileCoordsToBounds(this._keyToTileCoords(ct))},_tileCoordsToNwSe:function(ct){var Rt=this._map,me=this.getTileSize(),tr=ct.scaleBy(me),zr=tr.add(me),An=Rt.unproject(tr,ct.z),Zi=Rt.unproject(zr,ct.z);return[An,Zi]},_tileCoordsToBounds:function(ct){var Rt=this._tileCoordsToNwSe(ct),me=new xl(Rt[0],Rt[1]);return this.options.noWrap||(me=this._map.wrapLatLngBounds(me)),me},_tileCoordsToKey:function(ct){return ct.x+":"+ct.y+":"+ct.z},_keyToTileCoords:function(ct){var Rt=ct.split(":"),me=new la(+Rt[0],+Rt[1]);return me.z=+Rt[2],me},_removeTile:function(ct){var Rt=this._tiles[ct];Rt&&(Tf(Rt.el),delete this._tiles[ct],this.fire("tileunload",{tile:Rt.el,coords:this._keyToTileCoords(ct)}))},_initTile:function(ct){Wu(ct,"leaflet-tile");var Rt=this.getTileSize();ct.style.width=Rt.x+"px",ct.style.height=Rt.y+"px",ct.onselectstart=Ie,ct.onmousemove=Ie,Cl.ielt9&&this.options.opacity<1&&m0(ct,this.options.opacity)},_addTile:function(ct,Rt){var me=this._getTilePos(ct),tr=this._tileCoordsToKey(ct),zr=this.createTile(this._wrapCoords(ct),_t(this._tileReady,this,ct));this._initTile(zr),this.createTile.length<2&&Ri(_t(this._tileReady,this,ct,null,zr)),ic(zr,me),this._tiles[tr]={el:zr,coords:ct,current:!0},Rt.appendChild(zr),this.fire("tileloadstart",{tile:zr,coords:ct})},_tileReady:function(ct,Rt,me){Rt&&this.fire("tileerror",{error:Rt,tile:me,coords:ct});var tr=this._tileCoordsToKey(ct);me=this._tiles[tr],me&&(me.loaded=+new Date,this._map._fadeAnimated?(m0(me.el,0),Li(this._fadeFrame),this._fadeFrame=Ri(this._updateOpacity,this)):(me.active=!0,this._pruneTiles()),Rt||(Wu(me.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:me.el,coords:ct})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Cl.ielt9||!this._map._fadeAnimated?Ri(this._pruneTiles,this):setTimeout(_t(this._pruneTiles,this),250)))},_getTilePos:function(ct){return ct.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(ct){var Rt=new la(this._wrapX?ce(ct.x,this._wrapX):ct.x,this._wrapY?ce(ct.y,this._wrapY):ct.y);return Rt.z=ct.z,Rt},_pxBoundsToTileRange:function(ct){var Rt=this.getTileSize();return new mo(ct.min.unscaleBy(Rt).floor(),ct.max.unscaleBy(Rt).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var ct in this._tiles)if(!this._tiles[ct].loaded)return!1;return!0}});function Y_(ct){return new I1(ct)}var o0=I1.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(ct,Rt){this._url=ct,Rt=kr(this,Rt),Rt.detectRetina&&Cl.retina&&Rt.maxZoom>0?(Rt.tileSize=Math.floor(Rt.tileSize/2),Rt.zoomReverse?(Rt.zoomOffset--,Rt.minZoom=Math.min(Rt.maxZoom,Rt.minZoom+1)):(Rt.zoomOffset++,Rt.maxZoom=Math.max(Rt.minZoom,Rt.maxZoom-1)),Rt.minZoom=Math.max(0,Rt.minZoom)):Rt.zoomReverse?Rt.minZoom=Math.min(Rt.maxZoom,Rt.minZoom):Rt.maxZoom=Math.max(Rt.minZoom,Rt.maxZoom),typeof Rt.subdomains=="string"&&(Rt.subdomains=Rt.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(ct,Rt){return this._url===ct&&Rt===void 0&&(Rt=!0),this._url=ct,Rt||this.redraw(),this},createTile:function(ct,Rt){var me=document.createElement("img");return Ou(me,"load",_t(this._tileOnLoad,this,Rt,me)),Ou(me,"error",_t(this._tileOnError,this,Rt,me)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(me.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(me.referrerPolicy=this.options.referrerPolicy),me.alt="",me.src=this.getTileUrl(ct),me},getTileUrl:function(ct){var Rt={r:Cl.retina?"@2x":"",s:this._getSubdomain(ct),x:ct.x,y:ct.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var me=this._globalTileRange.max.y-ct.y;this.options.tms&&(Rt.y=me),Rt["-y"]=me}return Dt(this._url,Y(Rt,this.options))},_tileOnLoad:function(ct,Rt){Cl.ielt9?setTimeout(_t(ct,this,null,Rt),0):ct(null,Rt)},_tileOnError:function(ct,Rt,me){var tr=this.options.errorTileUrl;tr&&Rt.getAttribute("src")!==tr&&(Rt.src=tr),ct(me,Rt)},_onTileRemove:function(ct){ct.tile.onload=null},_getZoomForUrl:function(){var ct=this._tileZoom,Rt=this.options.maxZoom,me=this.options.zoomReverse,tr=this.options.zoomOffset;return me&&(ct=Rt-ct),ct+tr},_getSubdomain:function(ct){var Rt=Math.abs(ct.x+ct.y)%this.options.subdomains.length;return this.options.subdomains[Rt]},_abortLoading:function(){var ct,Rt;for(ct in this._tiles)if(this._tiles[ct].coords.z!==this._tileZoom&&(Rt=this._tiles[ct].el,Rt.onload=Ie,Rt.onerror=Ie,!Rt.complete)){Rt.src=Dn;var me=this._tiles[ct].coords;Tf(Rt),delete this._tiles[ct],this.fire("tileabort",{tile:Rt,coords:me})}},_removeTile:function(ct){var Rt=this._tiles[ct];if(Rt)return Rt.el.setAttribute("src",Dn),I1.prototype._removeTile.call(this,ct)},_tileReady:function(ct,Rt,me){if(!(!this._map||me&&me.getAttribute("src")===Dn))return I1.prototype._tileReady.call(this,ct,Rt,me)}});function Qy(ct,Rt){return new o0(ct,Rt)}var tx=o0.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(ct,Rt){this._url=ct;var me=Y({},this.defaultWmsParams);for(var tr in Rt)tr in this.options||(me[tr]=Rt[tr]);Rt=kr(this,Rt);var zr=Rt.detectRetina&&Cl.retina?2:1,An=this.getTileSize();me.width=An.x*zr,me.height=An.y*zr,this.wmsParams=me},onAdd:function(ct){this._crs=this.options.crs||ct.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var Rt=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[Rt]=this._crs.code,o0.prototype.onAdd.call(this,ct)},getTileUrl:function(ct){var Rt=this._tileCoordsToNwSe(ct),me=this._crs,tr=Ts(me.project(Rt[0]),me.project(Rt[1])),zr=tr.min,An=tr.max,Zi=(this._wmsVersion>=1.3&&this._crs===Wy?[zr.y,zr.x,An.y,An.x]:[zr.x,zr.y,An.x,An.y]).join(","),ja=o0.prototype.getTileUrl.call(this,ct);return ja+Vr(this.wmsParams,ja,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Zi},setParams:function(ct,Rt){return Y(this.wmsParams,ct),Rt||this.redraw(),this}});function zw(ct,Rt){return new tx(ct,Rt)}o0.WMS=tx,Qy.wms=zw;var ym=a0.extend({options:{padding:.1},initialize:function(ct){kr(this,ct),jt(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Wu(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var ct={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(ct.zoomanim=this._onAnimZoom),ct},_onAnimZoom:function(ct){this._updateTransform(ct.center,ct.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(ct,Rt){var me=this._map.getZoomScale(Rt,this._zoom),tr=this._map.getSize().multiplyBy(.5+this.options.padding),zr=this._map.project(this._center,Rt),An=tr.multiplyBy(-me).add(zr).subtract(this._map._getNewPixelOrigin(ct,Rt));Cl.any3d?mu(this._container,An,me):ic(this._container,An)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var ct in this._layers)this._layers[ct]._reset()},_onZoomEnd:function(){for(var ct in this._layers)this._layers[ct]._project()},_updatePaths:function(){for(var ct in this._layers)this._layers[ct]._update()},_update:function(){var ct=this.options.padding,Rt=this._map.getSize(),me=this._map.containerPointToLayerPoint(Rt.multiplyBy(-ct)).round();this._bounds=new mo(me,me.add(Rt.multiplyBy(1+ct*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Ow=ym.extend({options:{tolerance:0},getEvents:function(){var ct=ym.prototype.getEvents.call(this);return ct.viewprereset=this._onViewPreReset,ct},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ym.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var ct=this._container=document.createElement("canvas");Ou(ct,"mousemove",this._onMouseMove,this),Ou(ct,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Ou(ct,"mouseout",this._handleMouseOut,this),ct._leaflet_disable_events=!0,this._ctx=ct.getContext("2d")},_destroyContainer:function(){Li(this._redrawRequest),delete this._ctx,Tf(this._container),jh(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var ct;this._redrawBounds=null;for(var Rt in this._layers)ct=this._layers[Rt],ct._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ym.prototype._update.call(this);var ct=this._bounds,Rt=this._container,me=ct.getSize(),tr=Cl.retina?2:1;ic(Rt,ct.min),Rt.width=tr*me.x,Rt.height=tr*me.y,Rt.style.width=me.x+"px",Rt.style.height=me.y+"px",Cl.retina&&this._ctx.scale(2,2),this._ctx.translate(-ct.min.x,-ct.min.y),this.fire("update")}},_reset:function(){ym.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(ct){this._updateDashArray(ct),this._layers[jt(ct)]=ct;var Rt=ct._order={layer:ct,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=Rt),this._drawLast=Rt,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(ct){this._requestRedraw(ct)},_removePath:function(ct){var Rt=ct._order,me=Rt.next,tr=Rt.prev;me?me.prev=tr:this._drawLast=tr,tr?tr.next=me:this._drawFirst=me,delete ct._order,delete this._layers[jt(ct)],this._requestRedraw(ct)},_updatePath:function(ct){this._extendRedrawBounds(ct),ct._project(),ct._update(),this._requestRedraw(ct)},_updateStyle:function(ct){this._updateDashArray(ct),this._requestRedraw(ct)},_updateDashArray:function(ct){if(typeof ct.options.dashArray=="string"){var Rt=ct.options.dashArray.split(/[, ]+/),me=[],tr,zr;for(zr=0;zr')}}catch{}return function(ct){return document.createElement("<"+ct+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),E6={_initContainer:function(){this._container=Cc("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ym.prototype._update.call(this),this.fire("update"))},_initPath:function(ct){var Rt=ct._container=z1("shape");Wu(Rt,"leaflet-vml-shape "+(this.options.className||"")),Rt.coordsize="1 1",ct._path=z1("path"),Rt.appendChild(ct._path),this._updateStyle(ct),this._layers[jt(ct)]=ct},_addPath:function(ct){var Rt=ct._container;this._container.appendChild(Rt),ct.options.interactive&&ct.addInteractiveTarget(Rt)},_removePath:function(ct){var Rt=ct._container;Tf(Rt),ct.removeInteractiveTarget(Rt),delete this._layers[jt(ct)]},_updateStyle:function(ct){var Rt=ct._stroke,me=ct._fill,tr=ct.options,zr=ct._container;zr.stroked=!!tr.stroke,zr.filled=!!tr.fill,tr.stroke?(Rt||(Rt=ct._stroke=z1("stroke")),zr.appendChild(Rt),Rt.weight=tr.weight+"px",Rt.color=tr.color,Rt.opacity=tr.opacity,tr.dashArray?Rt.dashStyle=cn(tr.dashArray)?tr.dashArray.join(" "):tr.dashArray.replace(/( *, *)/g," "):Rt.dashStyle="",Rt.endcap=tr.lineCap.replace("butt","flat"),Rt.joinstyle=tr.lineJoin):Rt&&(zr.removeChild(Rt),ct._stroke=null),tr.fill?(me||(me=ct._fill=z1("fill")),zr.appendChild(me),me.color=tr.fillColor||tr.color,me.opacity=tr.fillOpacity):me&&(zr.removeChild(me),ct._fill=null)},_updateCircle:function(ct){var Rt=ct._point.round(),me=Math.round(ct._radius),tr=Math.round(ct._radiusY||me);this._setPath(ct,ct._empty()?"M0 0":"AL "+Rt.x+","+Rt.y+" "+me+","+tr+" 0,"+65535*360)},_setPath:function(ct,Rt){ct._path.v=Rt},_bringToFront:function(ct){dv(ct._container)},_bringToBack:function(ct){kn(ct._container)}},Wm=Cl.vml?z1:go,Bp=ym.extend({_initContainer:function(){this._container=Wm("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Wm("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Tf(this._container),jh(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ym.prototype._update.call(this);var ct=this._bounds,Rt=ct.getSize(),me=this._container;(!this._svgSize||!this._svgSize.equals(Rt))&&(this._svgSize=Rt,me.setAttribute("width",Rt.x),me.setAttribute("height",Rt.y)),ic(me,ct.min),me.setAttribute("viewBox",[ct.min.x,ct.min.y,Rt.x,Rt.y].join(" ")),this.fire("update")}},_initPath:function(ct){var Rt=ct._path=Wm("path");ct.options.className&&Wu(Rt,ct.options.className),ct.options.interactive&&Wu(Rt,"leaflet-interactive"),this._updateStyle(ct),this._layers[jt(ct)]=ct},_addPath:function(ct){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(ct._path),ct.addInteractiveTarget(ct._path)},_removePath:function(ct){Tf(ct._path),ct.removeInteractiveTarget(ct._path),delete this._layers[jt(ct)]},_updatePath:function(ct){ct._project(),ct._update()},_updateStyle:function(ct){var Rt=ct._path,me=ct.options;Rt&&(me.stroke?(Rt.setAttribute("stroke",me.color),Rt.setAttribute("stroke-opacity",me.opacity),Rt.setAttribute("stroke-width",me.weight),Rt.setAttribute("stroke-linecap",me.lineCap),Rt.setAttribute("stroke-linejoin",me.lineJoin),me.dashArray?Rt.setAttribute("stroke-dasharray",me.dashArray):Rt.removeAttribute("stroke-dasharray"),me.dashOffset?Rt.setAttribute("stroke-dashoffset",me.dashOffset):Rt.removeAttribute("stroke-dashoffset")):Rt.setAttribute("stroke","none"),me.fill?(Rt.setAttribute("fill",me.fillColor||me.color),Rt.setAttribute("fill-opacity",me.fillOpacity),Rt.setAttribute("fill-rule",me.fillRule||"evenodd")):Rt.setAttribute("fill","none"))},_updatePoly:function(ct,Rt){this._setPath(ct,Mo(ct._parts,Rt))},_updateCircle:function(ct){var Rt=ct._point,me=Math.max(Math.round(ct._radius),1),tr=Math.max(Math.round(ct._radiusY),1)||me,zr="a"+me+","+tr+" 0 1,0 ",An=ct._empty()?"M0 0":"M"+(Rt.x-me)+","+Rt.y+zr+me*2+",0 "+zr+-me*2+",0 ";this._setPath(ct,An)},_setPath:function(ct,Rt){ct._path.setAttribute("d",Rt)},_bringToFront:function(ct){dv(ct._path)},_bringToBack:function(ct){kn(ct._path)}});Cl.vml&&Bp.include(E6);function Dw(ct){return Cl.svg||Cl.vml?new Bp(ct):null}Ac.include({getRenderer:function(ct){var Rt=ct.options.renderer||this._getPaneRenderer(ct.options.pane)||this.options.renderer||this._renderer;return Rt||(Rt=this._renderer=this._createRenderer()),this.hasLayer(Rt)||this.addLayer(Rt),Rt},_getPaneRenderer:function(ct){if(ct==="overlayPane"||ct===void 0)return!1;var Rt=this._paneRenderers[ct];return Rt===void 0&&(Rt=this._createRenderer({pane:ct}),this._paneRenderers[ct]=Rt),Rt},_createRenderer:function(ct){return this.options.preferCanvas&&K_(ct)||Dw(ct)}});var s0=_v.extend({initialize:function(ct,Rt){_v.prototype.initialize.call(this,this._boundsToLatLngs(ct),Rt)},setBounds:function(ct){return this.setLatLngs(this._boundsToLatLngs(ct))},_boundsToLatLngs:function(ct){return ct=ko(ct),[ct.getSouthWest(),ct.getNorthWest(),ct.getNorthEast(),ct.getSouthEast()]}});function O0(ct,Rt){return new s0(ct,Rt)}Bp.create=Wm,Bp.pointsToPath=Mo,pm.geometryToLayer=Gy,pm.coordsToLatLng=W_,pm.coordsToLatLngs=Yy,pm.latLngToCoords=q_,pm.latLngsToCoords=Ky,pm.getFeature=mm,pm.asFeature=Xy,Ac.mergeOptions({boxZoom:!0});var bv=X0.extend({initialize:function(ct){this._map=ct,this._container=ct._container,this._pane=ct._panes.overlayPane,this._resetStateTimeout=0,ct.on("unload",this._destroy,this)},addHooks:function(){Ou(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){jh(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Tf(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(ct){if(!ct.shiftKey||ct.which!==1&&ct.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),L0(),Kc(),this._startPoint=this._map.mouseEventToContainerPoint(ct),Ou(document,{contextmenu:bg,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(ct){this._moved||(this._moved=!0,this._box=Cc("div","leaflet-zoom-box",this._container),Wu(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(ct);var Rt=new mo(this._point,this._startPoint),me=Rt.getSize();ic(this._box,Rt.min),this._box.style.width=me.x+"px",this._box.style.height=me.y+"px"},_finish:function(){this._moved&&(Tf(this._box),Rf(this._container,"leaflet-crosshair")),yg(),Dp(),jh(document,{contextmenu:bg,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(ct){if(!(ct.which!==1&&ct.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(_t(this._resetState,this),0);var Rt=new xl(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(Rt).fire("boxzoomend",{boxZoomBounds:Rt})}},_onKeyDown:function(ct){ct.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ac.addInitHook("addHandler","boxZoom",bv),Ac.mergeOptions({doubleClickZoom:!0});var x0=X0.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(ct){var Rt=this._map,me=Rt.getZoom(),tr=Rt.options.zoomDelta,zr=ct.originalEvent.shiftKey?me-tr:me+tr;Rt.options.doubleClickZoom==="center"?Rt.setZoom(zr):Rt.setZoomAround(ct.containerPoint,zr)}});Ac.addInitHook("addHandler","doubleClickZoom",x0),Ac.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var D0=X0.extend({addHooks:function(){if(!this._draggable){var ct=this._map;this._draggable=new Um(ct._mapPane,ct._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),ct.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),ct.on("zoomend",this._onZoomEnd,this),ct.whenReady(this._onZoomEnd,this))}Wu(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Rf(this._map._container,"leaflet-grab"),Rf(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var ct=this._map;if(ct._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var Rt=ko(this._map.options.maxBounds);this._offsetLimit=Ts(this._map.latLngToContainerPoint(Rt.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(Rt.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;ct.fire("movestart").fire("dragstart"),ct.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(ct){if(this._map.options.inertia){var Rt=this._lastTime=+new Date,me=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(me),this._times.push(Rt),this._prunePositions(Rt)}this._map.fire("move",ct).fire("drag",ct)},_prunePositions:function(ct){for(;this._positions.length>1&&ct-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var ct=this._map.getSize().divideBy(2),Rt=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=Rt.subtract(ct).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(ct,Rt){return ct-(ct-Rt)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var ct=this._draggable._newPos.subtract(this._draggable._startPos),Rt=this._offsetLimit;ct.xRt.max.x&&(ct.x=this._viscousLimit(ct.x,Rt.max.x)),ct.y>Rt.max.y&&(ct.y=this._viscousLimit(ct.y,Rt.max.y)),this._draggable._newPos=this._draggable._startPos.add(ct)}},_onPreDragWrap:function(){var ct=this._worldWidth,Rt=Math.round(ct/2),me=this._initialWorldOffset,tr=this._draggable._newPos.x,zr=(tr-Rt+me)%ct+Rt-me,An=(tr+Rt+me)%ct-Rt-me,Zi=Math.abs(zr+me)0?An:-An))-Rt;this._delta=0,this._startTime=null,Zi&&(ct.options.scrollWheelZoom==="center"?ct.setZoom(Rt+Zi):ct.setZoomAround(this._lastMousePos,Rt+Zi))}});Ac.addInitHook("addHandler","scrollWheelZoom",Lg);var Bw=600;Ac.mergeOptions({tapHold:Cl.touchNative&&Cl.safari&&Cl.mobile,tapTolerance:15});var Rw=X0.extend({addHooks:function(){Ou(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){jh(this._map._container,"touchstart",this._onDown,this)},_onDown:function(ct){if(clearTimeout(this._holdTimeout),ct.touches.length===1){var Rt=ct.touches[0];this._startPos=this._newPos=new la(Rt.clientX,Rt.clientY),this._holdTimeout=setTimeout(_t(function(){this._cancel(),this._isTapValid()&&(Ou(document,"touchend",mc),Ou(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",Rt))},this),Bw),Ou(document,"touchend touchcancel contextmenu",this._cancel,this),Ou(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function ct(){jh(document,"touchend",mc),jh(document,"touchend touchcancel",ct)},_cancel:function(){clearTimeout(this._holdTimeout),jh(document,"touchend touchcancel contextmenu",this._cancel,this),jh(document,"touchmove",this._onMove,this)},_onMove:function(ct){var Rt=ct.touches[0];this._newPos=new la(Rt.clientX,Rt.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(ct,Rt){var me=new MouseEvent(ct,{bubbles:!0,cancelable:!0,view:window,screenX:Rt.screenX,screenY:Rt.screenY,clientX:Rt.clientX,clientY:Rt.clientY});me._simulated=!0,Rt.target.dispatchEvent(me)}});Ac.addInitHook("addHandler","tapHold",Rw),Ac.mergeOptions({touchZoom:Cl.touch,bounceAtZoomLimits:!0});var F0=X0.extend({addHooks:function(){Wu(this._map._container,"leaflet-touch-zoom"),Ou(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Rf(this._map._container,"leaflet-touch-zoom"),jh(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(ct){var Rt=this._map;if(!(!ct.touches||ct.touches.length!==2||Rt._animatingZoom||this._zooming)){var me=Rt.mouseEventToContainerPoint(ct.touches[0]),tr=Rt.mouseEventToContainerPoint(ct.touches[1]);this._centerPoint=Rt.getSize()._divideBy(2),this._startLatLng=Rt.containerPointToLatLng(this._centerPoint),Rt.options.touchZoom!=="center"&&(this._pinchStartLatLng=Rt.containerPointToLatLng(me.add(tr)._divideBy(2))),this._startDist=me.distanceTo(tr),this._startZoom=Rt.getZoom(),this._moved=!1,this._zooming=!0,Rt._stop(),Ou(document,"touchmove",this._onTouchMove,this),Ou(document,"touchend touchcancel",this._onTouchEnd,this),mc(ct)}},_onTouchMove:function(ct){if(!(!ct.touches||ct.touches.length!==2||!this._zooming)){var Rt=this._map,me=Rt.mouseEventToContainerPoint(ct.touches[0]),tr=Rt.mouseEventToContainerPoint(ct.touches[1]),zr=me.distanceTo(tr)/this._startDist;if(this._zoom=Rt.getScaleZoom(zr,this._startZoom),!Rt.options.bounceAtZoomLimits&&(this._zoomRt.getMaxZoom()&&zr>1)&&(this._zoom=Rt._limitZoom(this._zoom)),Rt.options.touchZoom==="center"){if(this._center=this._startLatLng,zr===1)return}else{var An=me._add(tr)._divideBy(2)._subtract(this._centerPoint);if(zr===1&&An.x===0&&An.y===0)return;this._center=Rt.unproject(Rt.project(this._pinchStartLatLng,this._zoom).subtract(An),this._zoom)}this._moved||(Rt._moveStart(!0,!1),this._moved=!0),Li(this._animRequest);var Zi=_t(Rt._move,Rt,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Ri(Zi,this,!0),mc(ct)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Li(this._animRequest),jh(document,"touchmove",this._onTouchMove,this),jh(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Ac.addInitHook("addHandler","touchZoom",F0),Ac.BoxZoom=bv,Ac.DoubleClickZoom=x0,Ac.Drag=D0,Ac.Keyboard=Fw,Ac.ScrollWheelZoom=Lg,Ac.TapHold=Rw,Ac.TouchZoom=F0,E.Bounds=mo,E.Browser=Cl,E.CRS=ma,E.Canvas=Ow,E.Circle=Zy,E.CircleMarker=$y,E.Class=Hn,E.Control=up,E.DivIcon=Iw,E.DivOverlay=J0,E.DomEvent=Fp,E.DomUtil=kc,E.Draggable=Um,E.Evented=Qn,E.FeatureGroup=wp,E.GeoJSON=pm,E.GridLayer=I1,E.Handler=X0,E.Icon=Vm,E.ImageOverlay=gm,E.LatLng=ro,E.LatLngBounds=xl,E.Layer=a0,E.LayerGroup=Eg,E.LineUtil=tf,E.Map=Ac,E.Marker=L1,E.Mixin=cp,E.Path=Hm,E.Point=la,E.PolyUtil=b6,E.Polygon=_v,E.Polyline=y0,E.Popup=Cg,E.PosAnimation=C1,E.Projection=j_,E.Rectangle=s0,E.Renderer=ym,E.SVG=Bp,E.SVGOverlay=G_,E.TileLayer=o0,E.Tooltip=P1,E.Transformation=qo,E.Util=$n,E.VideoOverlay=z0,E.bind=_t,E.bounds=Ts,E.canvas=K_,E.circle=xv,E.circleMarker=Ew,E.control=i0,E.divIcon=S6,E.extend=Y,E.featureGroup=Sw,E.geoJSON=Z_,E.geoJson=Jy,E.gridLayer=Y_,E.icon=V_,E.imageOverlay=vm,E.latLng=Ia,E.latLngBounds=ko,E.layerGroup=qy,E.map=Vs,E.marker=T6,E.point=no,E.polygon=A6,E.polyline=Cw,E.popup=vf,E.rectangle=O0,E.setOptions=kr,E.stamp=jt,E.svg=Dw,E.svgOverlay=M6,E.tileLayer=Qy,E.tooltip=Pw,E.transformation=_i,E.version=R,E.videoOverlay=ef;var B0=window.L;E.noConflict=function(){return window.L=B0,this},window.L=E})}(v2,v2.exports)),v2.exports}var qot=Wot();const Mm=tD(qot),rP=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],R8=1,o2=8;class mM{static from(s){if(!(s instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[E,R]=new Uint8Array(s,0,2);if(E!==219)throw new Error("Data does not appear to be in a KDBush format.");const Y=R>>4;if(Y!==R8)throw new Error(`Got v${Y} data when expected v${R8}.`);const dt=rP[R&15];if(!dt)throw new Error("Unrecognized array type.");const[_t]=new Uint16Array(s,2,1),[zt]=new Uint32Array(s,4,1);return new mM(zt,_t,dt,s)}constructor(s,E=64,R=Float64Array,Y){if(isNaN(s)||s<0)throw new Error(`Unpexpected numItems value: ${s}.`);this.numItems=+s,this.nodeSize=Math.min(Math.max(+E,2),65535),this.ArrayType=R,this.IndexArrayType=s<65536?Uint16Array:Uint32Array;const dt=rP.indexOf(this.ArrayType),_t=s*2*this.ArrayType.BYTES_PER_ELEMENT,zt=s*this.IndexArrayType.BYTES_PER_ELEMENT,jt=(8-zt%8)%8;if(dt<0)throw new Error(`Unexpected typed array class: ${R}.`);Y&&Y instanceof ArrayBuffer?(this.data=Y,this.ids=new this.IndexArrayType(this.data,o2,s),this.coords=new this.ArrayType(this.data,o2+zt+jt,s*2),this._pos=s*2,this._finished=!0):(this.data=new ArrayBuffer(o2+_t+zt+jt),this.ids=new this.IndexArrayType(this.data,o2,s),this.coords=new this.ArrayType(this.data,o2+zt+jt,s*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(R8<<4)+dt]),new Uint16Array(this.data,2,1)[0]=E,new Uint32Array(this.data,4,1)[0]=s)}add(s,E){const R=this._pos>>1;return this.ids[R]=R,this.coords[this._pos++]=s,this.coords[this._pos++]=E,R}finish(){const s=this._pos>>1;if(s!==this.numItems)throw new Error(`Added ${s} items when expected ${this.numItems}.`);return EA(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(s,E,R,Y){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:dt,coords:_t,nodeSize:zt}=this,jt=[0,dt.length-1,0],te=[];for(;jt.length;){const ce=jt.pop()||0,Ie=jt.pop()||0,Je=jt.pop()||0;if(Ie-Je<=zt){for(let Vr=Je;Vr<=Ie;Vr++){const fn=_t[2*Vr],Dt=_t[2*Vr+1];fn>=s&&fn<=R&&Dt>=E&&Dt<=Y&&te.push(dt[Vr])}continue}const fr=Je+Ie>>1,Ar=_t[2*fr],kr=_t[2*fr+1];Ar>=s&&Ar<=R&&kr>=E&&kr<=Y&&te.push(dt[fr]),(ce===0?s<=Ar:E<=kr)&&(jt.push(Je),jt.push(fr-1),jt.push(1-ce)),(ce===0?R>=Ar:Y>=kr)&&(jt.push(fr+1),jt.push(Ie),jt.push(1-ce))}return te}within(s,E,R){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:Y,coords:dt,nodeSize:_t}=this,zt=[0,Y.length-1,0],jt=[],te=R*R;for(;zt.length;){const ce=zt.pop()||0,Ie=zt.pop()||0,Je=zt.pop()||0;if(Ie-Je<=_t){for(let Vr=Je;Vr<=Ie;Vr++)nP(dt[2*Vr],dt[2*Vr+1],s,E)<=te&&jt.push(Y[Vr]);continue}const fr=Je+Ie>>1,Ar=dt[2*fr],kr=dt[2*fr+1];nP(Ar,kr,s,E)<=te&&jt.push(Y[fr]),(ce===0?s-R<=Ar:E-R<=kr)&&(zt.push(Je),zt.push(fr-1),zt.push(1-ce)),(ce===0?s+R>=Ar:E+R>=kr)&&(zt.push(fr+1),zt.push(Ie),zt.push(1-ce))}return jt}}function EA(d,s,E,R,Y,dt){if(Y-R<=E)return;const _t=R+Y>>1;eD(d,s,_t,R,Y,dt),EA(d,s,E,R,_t-1,1-dt),EA(d,s,E,_t+1,Y,1-dt)}function eD(d,s,E,R,Y,dt){for(;Y>R;){if(Y-R>600){const te=Y-R+1,ce=E-R+1,Ie=Math.log(te),Je=.5*Math.exp(2*Ie/3),fr=.5*Math.sqrt(Ie*Je*(te-Je)/te)*(ce-te/2<0?-1:1),Ar=Math.max(R,Math.floor(E-ce*Je/te+fr)),kr=Math.min(Y,Math.floor(E+(te-ce)*Je/te+fr));eD(d,s,E,Ar,kr,dt)}const _t=s[2*E+dt];let zt=R,jt=Y;for(s2(d,s,R,E),s[2*Y+dt]>_t&&s2(d,s,R,Y);zt_t;)jt--}s[2*R+dt]===_t?s2(d,s,R,jt):(jt++,s2(d,s,jt,Y)),jt<=E&&(R=jt+1),E<=jt&&(Y=jt-1)}}function s2(d,s,E,R){N8(d,E,R),N8(s,2*E,2*R),N8(s,2*E+1,2*R+1)}function N8(d,s,E){const R=d[s];d[s]=d[E],d[E]=R}function nP(d,s,E,R){const Y=d-E,dt=s-R;return Y*Y+dt*dt}const $ot={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:d=>d},iP=Math.fround||(d=>s=>(d[0]=+s,d[0]))(new Float32Array(1)),hy=2,c1=3,j8=4,a1=5,rD=6;class Zot{constructor(s){this.options=Object.assign(Object.create($ot),s),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(s){const{log:E,minZoom:R,maxZoom:Y}=this.options;E&&console.time("total time");const dt=`prepare ${s.length} points`;E&&console.time(dt),this.points=s;const _t=[];for(let jt=0;jt=R;jt--){const te=+Date.now();zt=this.trees[jt]=this._createTree(this._cluster(zt,jt)),E&&console.log("z%d: %d clusters in %dms",jt,zt.numItems,+Date.now()-te)}return E&&console.timeEnd("total time"),this}getClusters(s,E){let R=((s[0]+180)%360+360)%360-180;const Y=Math.max(-90,Math.min(90,s[1]));let dt=s[2]===180?180:((s[2]+180)%360+360)%360-180;const _t=Math.max(-90,Math.min(90,s[3]));if(s[2]-s[0]>=360)R=-180,dt=180;else if(R>dt){const Ie=this.getClusters([R,Y,180,_t],E),Je=this.getClusters([-180,Y,dt,_t],E);return Ie.concat(Je)}const zt=this.trees[this._limitZoom(E)],jt=zt.range(z5(R),O5(_t),z5(dt),O5(Y)),te=zt.data,ce=[];for(const Ie of jt){const Je=this.stride*Ie;ce.push(te[Je+a1]>1?aP(te,Je,this.clusterProps):this.points[te[Je+c1]])}return ce}getChildren(s){const E=this._getOriginId(s),R=this._getOriginZoom(s),Y="No cluster with the specified id.",dt=this.trees[R];if(!dt)throw new Error(Y);const _t=dt.data;if(E*this.stride>=_t.length)throw new Error(Y);const zt=this.options.radius/(this.options.extent*Math.pow(2,R-1)),jt=_t[E*this.stride],te=_t[E*this.stride+1],ce=dt.within(jt,te,zt),Ie=[];for(const Je of ce){const fr=Je*this.stride;_t[fr+j8]===s&&Ie.push(_t[fr+a1]>1?aP(_t,fr,this.clusterProps):this.points[_t[fr+c1]])}if(Ie.length===0)throw new Error(Y);return Ie}getLeaves(s,E,R){E=E||10,R=R||0;const Y=[];return this._appendLeaves(Y,s,E,R,0),Y}getTile(s,E,R){const Y=this.trees[this._limitZoom(s)],dt=Math.pow(2,s),{extent:_t,radius:zt}=this.options,jt=zt/_t,te=(R-jt)/dt,ce=(R+1+jt)/dt,Ie={features:[]};return this._addTileFeatures(Y.range((E-jt)/dt,te,(E+1+jt)/dt,ce),Y.data,E,R,dt,Ie),E===0&&this._addTileFeatures(Y.range(1-jt/dt,te,1,ce),Y.data,dt,R,dt,Ie),E===dt-1&&this._addTileFeatures(Y.range(0,te,jt/dt,ce),Y.data,-1,R,dt,Ie),Ie.features.length?Ie:null}getClusterExpansionZoom(s){let E=this._getOriginZoom(s)-1;for(;E<=this.options.maxZoom;){const R=this.getChildren(s);if(E++,R.length!==1)break;s=R[0].properties.cluster_id}return E}_appendLeaves(s,E,R,Y,dt){const _t=this.getChildren(E);for(const zt of _t){const jt=zt.properties;if(jt&&jt.cluster?dt+jt.point_count<=Y?dt+=jt.point_count:dt=this._appendLeaves(s,jt.cluster_id,R,Y,dt):dt1;let ce,Ie,Je;if(te)ce=nD(E,jt,this.clusterProps),Ie=E[jt],Je=E[jt+1];else{const kr=this.points[E[jt+c1]];ce=kr.properties;const[Vr,fn]=kr.geometry.coordinates;Ie=z5(Vr),Je=O5(fn)}const fr={type:1,geometry:[[Math.round(this.options.extent*(Ie*dt-R)),Math.round(this.options.extent*(Je*dt-Y))]],tags:ce};let Ar;te||this.options.generateId?Ar=E[jt+c1]:Ar=this.points[E[jt+c1]].id,Ar!==void 0&&(fr.id=Ar),_t.features.push(fr)}}_limitZoom(s){return Math.max(this.options.minZoom,Math.min(Math.floor(+s),this.options.maxZoom+1))}_cluster(s,E){const{radius:R,extent:Y,reduce:dt,minPoints:_t}=this.options,zt=R/(Y*Math.pow(2,E)),jt=s.data,te=[],ce=this.stride;for(let Ie=0;IeE&&(Vr+=jt[Dt+a1])}if(Vr>kr&&Vr>=_t){let fn=Je*kr,Dt=fr*kr,cn,ti=-1;const Dn=((Ie/ce|0)<<5)+(E+1)+this.points.length;for(const ii of Ar){const Vi=ii*ce;if(jt[Vi+hy]<=E)continue;jt[Vi+hy]=E;const Nn=jt[Vi+a1];fn+=jt[Vi]*Nn,Dt+=jt[Vi+1]*Nn,jt[Vi+j8]=Dn,dt&&(cn||(cn=this._map(jt,Ie,!0),ti=this.clusterProps.length,this.clusterProps.push(cn)),dt(cn,this._map(jt,Vi)))}jt[Ie+j8]=Dn,te.push(fn/Vr,Dt/Vr,1/0,Dn,-1,Vr),dt&&te.push(ti)}else{for(let fn=0;fn1)for(const fn of Ar){const Dt=fn*ce;if(!(jt[Dt+hy]<=E)){jt[Dt+hy]=E;for(let cn=0;cn>5}_getOriginZoom(s){return(s-this.points.length)%32}_map(s,E,R){if(s[E+a1]>1){const _t=this.clusterProps[s[E+rD]];return R?Object.assign({},_t):_t}const Y=this.points[s[E+c1]].properties,dt=this.options.map(Y);return R&&dt===Y?Object.assign({},dt):dt}}function aP(d,s,E){return{type:"Feature",id:d[s+c1],properties:nD(d,s,E),geometry:{type:"Point",coordinates:[Got(d[s]),Yot(d[s+1])]}}}function nD(d,s,E){const R=d[s+a1],Y=R>=1e4?`${Math.round(R/1e3)}k`:R>=1e3?`${Math.round(R/100)/10}k`:R,dt=d[s+rD],_t=dt===-1?{}:Object.assign({},E[dt]);return Object.assign(_t,{cluster:!0,cluster_id:d[s+c1],point_count:R,point_count_abbreviated:Y})}function z5(d){return d/360+.5}function O5(d){const s=Math.sin(d*Math.PI/180),E=.5-.25*Math.log((1+s)/(1-s))/Math.PI;return E<0?0:E>1?1:E}function Got(d){return(d-.5)*360}function Yot(d){const s=(180-d*360)*Math.PI/180;return 360*Math.atan(Math.exp(s))/Math.PI-90}const Kot={class:"map-container"},Xot={key:0,class:"flex items-center justify-center h-96 bg-dark-card/30 backdrop-blur border border-white/10 rounded-[15px]"},Jot={key:2,class:"map-legend"},Qot={class:"legend-footer"},tst={key:3,class:"map-attribution"},est=Ec({__name:"NetworkMap",props:{adverts:{},baseLatitude:{default:null},baseLongitude:{default:null}},setup(d,{expose:s}){typeof window<"u"&&!window.chrome&&(window.chrome={runtime:{}});const E=d,R=Ha();let Y=null;const dt=Ha(new Map);let _t=null;const zt=Ha(new Map),jt=Ha([]),te=Ha(!0),ce=Ha(60),Ie=Ha(14),Je=Wo(()=>E.baseLatitude!==null&&E.baseLongitude!==null&&typeof E.baseLatitude=="number"&&typeof E.baseLongitude=="number"&&E.baseLatitude!==0&&E.baseLongitude!==0&&Math.abs(E.baseLatitude)<=90&&Math.abs(E.baseLongitude)<=180),fr=Nn=>new Date(Nn*1e3).toLocaleString(),Ar=Nn=>Nn?`${Nn} dBm`:"N/A",kr=Nn=>Nn?`${Nn} dB`:"N/A",Vr=Nn=>({0:"Transport Flood",1:"Flood",2:"Direct",3:"Transport Direct"})[Nn||0]||"Unknown",fn=(Nn,Wr,Bi,Ri)=>{const $n=(Bi-Nn)*Math.PI/180,Hn=(Ri-Wr)*Math.PI/180,sa=Math.sin($n/2)*Math.sin($n/2)+Math.cos(Nn*Math.PI/180)*Math.cos(Bi*Math.PI/180)*Math.sin(Hn/2)*Math.sin(Hn/2);return 6371*(2*Math.atan2(Math.sqrt(sa),Math.sqrt(1-sa)))},Dt=()=>{Y&&(jt.value.forEach(Nn=>{Y&&Nn.remove()}),jt.value.length=0,Y.remove(),Y=null),dt.value.clear(),zt.value.clear(),_t=null},cn=Nn=>{const Wr=new Map;return Nn.filter(Bi=>Bi.latitude!==null&&Bi.longitude!==null).map(Bi=>{let Ri=Bi.latitude,Li=Bi.longitude;const $n=`${Ri.toFixed(6)}_${Li.toFixed(6)}`,Hn=Wr.get($n)||0;if(Wr.set($n,Hn+1),Hn>0){const Ti=Hn*60*(Math.PI/180);Ri+=Math.sin(Ti)*.001*(Hn*.5),Li+=Math.cos(Ti)*.001*(Hn*.5)}return{type:"Feature",properties:{advert:{...Bi,jittered_latitude:Ri,jittered_longitude:Li}},geometry:{type:"Point",coordinates:[Li,Ri]}}})},ti=Nn=>{_t=new Zot({radius:ce.value,maxZoom:Ie.value,minPoints:2}),_t.load(Nn)},Dn=async()=>{if(!R.value||!Je.value){console.warn("Cannot initialize map: missing container or coordinates");return}Dt(),await S0();const Nn=E.baseLatitude,Wr=E.baseLongitude;try{Y=Mm.map(R.value,{center:[Nn,Wr],zoom:10,zoomControl:!0,scrollWheelZoom:!0,doubleClickZoom:!0,boxZoom:!0,keyboard:!0,attributionControl:!1});try{const Qn=Mm.tileLayer("https://{s}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}{r}.png",{maxZoom:19,attribution:'© OpenStreetMap contributors © CARTO',errorTileUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="}),la=Mm.tileLayer("https://{s}.basemaps.cartocdn.com/dark_only_labels/{z}/{x}/{y}{r}.png",{maxZoom:19,attribution:"",errorTileUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="});Qn.addTo(Y),la.addTo(Y)}catch(Qn){console.warn("Error loading tiles:",Qn)}const Bi=(Qn,la=!1)=>{const Eo=la?16:12;return Mm.divIcon({className:"custom-div-icon",html:``,iconSize:[Eo+4,Eo+4],iconAnchor:[(Eo+4)/2,(Eo+4)/2]})},Ri=Qn=>{const la=Qn<10?30:Qn<100?40:50;return Mm.divIcon({className:"custom-cluster-icon",html:` - ${si} + ${Qn} - `,iconSize:[Ma,Ma],iconAnchor:[Ma/2,Ma/2]})},Pi=Di("#ef4444",!0);Mm.marker([Un,qr],{icon:Pi}).addTo(K).bindPopup(` + `,iconSize:[la,la],iconAnchor:[la/2,la/2]})},Li=Bi("#ef4444",!0);Mm.marker([Nn,Wr],{icon:Li}).addTo(Y).bindPopup(` Base Station Base Station - ${Un.toFixed(6)}, ${qr.toFixed(6)} + ${Nn.toFixed(6)}, ${Wr.toFixed(6)} - `);const bi={Unknown:"#9CA3AF","Chat Node":"#60A5FA",Repeater:"#A5E5B6","Room Server":"#EBA0FC","Hybrid Node":"#FFC246"},Yi=(si,Ma,zo,ho,mo=0)=>{if(!K)return;const Ts=si.jittered_latitude||si.latitude,xl=si.jittered_longitude||si.longitude;if(Ts===null||xl===null)return;const ko=si.route_type||0;let ro=ho,Ia=3,da=.7,no;ko===2?(ro="#A5E5B6",Ia=4,da=.9):ko===1?(ro="#FFC246",no="10, 5",da=.8):ko===3?(ro="#059669",Ia=5,da=.95):ko===0?(ro="#ea580c",no="12, 6",da=.8):(ro="#9CA3AF",no="2, 5",da=.6);const po=[Ma,zo],us=[Ts,xl],Ho=Mm.polyline([po,us],{color:ro,weight:Ia,opacity:0,dashArray:no,className:"connection-line"}).addTo(K),vi=Mm.polyline([po,po],{color:ro,weight:Ia,opacity:0,dashArray:no,className:"connection-line animated-line"}).addTo(K);setTimeout(()=>{let wi=0;const hi=30;vi.setStyle({opacity:da+.2});const go=()=>{wi++;const Mo=wi/hi,To=po[0]+(us[0]-po[0])*Mo,ms=po[1]+(us[1]-po[1])*Mo;vi.setLatLngs([po,[To,ms]]),wi{K&&vi&&vi.remove(),Ho.setStyle({opacity:da}),Ho.on("mouseover",()=>{Ho.setStyle({weight:Ia+2,opacity:Math.min(da+.3,1)})}),Ho.on("mouseout",()=>{Ho.setStyle({weight:Ia,opacity:da})});const bs=mn(Ma,zo,Ts,xl);Ho.bindPopup(` + `);const $n={Unknown:"#9CA3AF","Chat Node":"#60A5FA",Repeater:"#A5E5B6","Room Server":"#EBA0FC","Hybrid Node":"#FFC246"},Hn=(Qn,la,Eo,no,mo=0)=>{if(!Y)return;const Ts=Qn.jittered_latitude||Qn.latitude,xl=Qn.jittered_longitude||Qn.longitude;if(Ts===null||xl===null)return;const ko=Qn.route_type||0;let ro=no,Ia=3,ma=.7,io;ko===2?(ro="#A5E5B6",Ia=4,ma=.9):ko===1?(ro="#FFC246",io="10, 5",ma=.8):ko===3?(ro="#059669",Ia=5,ma=.95):ko===0?(ro="#ea580c",io="12, 6",ma=.8):(ro="#9CA3AF",io="2, 5",ma=.6);const po=[la,Eo],us=[Ts,xl],qo=Mm.polyline([po,us],{color:ro,weight:Ia,opacity:0,dashArray:io,className:"connection-line"}).addTo(Y),_i=Mm.polyline([po,po],{color:ro,weight:Ia,opacity:0,dashArray:io,className:"connection-line animated-line"}).addTo(Y);setTimeout(()=>{let Ai=0;const pi=30;_i.setStyle({opacity:ma+.2});const go=()=>{Ai++;const Mo=Ai/pi,To=po[0]+(us[0]-po[0])*Mo,ms=po[1]+(us[1]-po[1])*Mo;_i.setLatLngs([po,[To,ms]]),Ai{Y&&_i&&_i.remove(),qo.setStyle({opacity:ma}),qo.on("mouseover",()=>{qo.setStyle({weight:Ia+2,opacity:Math.min(ma+.3,1)})}),qo.on("mouseout",()=>{qo.setStyle({weight:Ia,opacity:ma})});const bs=fn(la,Eo,Ts,xl);qo.bindPopup(` - Connection to ${si.node_name||"Unknown Node"} + Connection to ${Qn.node_name||"Unknown Node"} Distance: ${bs.toFixed(2)} km - Route: ${Vr(si.route_type)} - Signal: ${Mr(si.rssi)} / ${Tr(si.snr)} + Route: ${Vr(Qn.route_type)} + Signal: ${Ar(Qn.rssi)} / ${kr(Qn.snr)} - `),jt.value.push(Ho)},200)};go()},mo)},Ca=()=>{if(!K||!_t)return;const si=K.getBounds(),Ma=Math.floor(K.getZoom());Ot.value.forEach(ho=>{K&&ho.remove()}),Ot.value.clear(),jt.value.forEach(ho=>{K&&ho.remove()}),jt.value.length=0,_t.getClusters([si.getWest(),si.getSouth(),si.getEast(),si.getNorth()],Ma).forEach(ho=>{const[mo,Ts]=ho.geometry.coordinates,xl=ho.properties;if(xl.cluster){const ko=Mm.marker([Ts,mo],{icon:Fi(xl.point_count||0)}).addTo(K);ko.on("click",()=>{if(K&&_t){const us=_t.getClusterExpansionZoom(xl.cluster_id);K.setView([Ts,mo],us)}});const Ia=_t.getLeaves(xl.cluster_id,1/0).map(us=>` + `),jt.value.push(qo)},200)};go()},mo)},sa=()=>{if(!Y||!_t)return;const Qn=Y.getBounds(),la=Math.floor(Y.getZoom());zt.value.forEach(no=>{Y&&no.remove()}),zt.value.clear(),jt.value.forEach(no=>{Y&&no.remove()}),jt.value.length=0,_t.getClusters([Qn.getWest(),Qn.getSouth(),Qn.getEast(),Qn.getNorth()],la).forEach(no=>{const[mo,Ts]=no.geometry.coordinates,xl=no.properties;if(xl.cluster){const ko=Mm.marker([Ts,mo],{icon:Ri(xl.point_count||0)}).addTo(Y);ko.on("click",()=>{if(Y&&_t){const us=_t.getClusterExpansionZoom(xl.cluster_id);Y.setView([Ts,mo],us)}});const Ia=_t.getLeaves(xl.cluster_id,1/0).map(us=>` • ${us.properties.advert.node_name||"Unknown Node"} (${us.properties.advert.contact_type}) `).join("");ko.bindPopup(` @@ -89,110 +89,110 @@ Click to zoom in and separate nodes - `),Ot.value.set(`cluster-${xl.cluster_id}`,ko);const da=mn(Un,qr,Ts,mo),no=Math.min(Math.floor(da*5),200),po={node_name:`Cluster of ${xl.point_count} nodes`,contact_type:"Cluster",route_type:2,rssi:null,snr:null,jittered_latitude:Ts,jittered_longitude:mo,latitude:Ts,longitude:mo};Yi(po,Un,qr,"#AAE8E8",no)}else{const ko=xl.advert,ro=bi[ko.contact_type]||bi.Unknown,Ia=Di(ro),da=Ts,no=mo,po=mn(Un,qr,da,no),us=Mm.marker([da,no],{icon:Ia}).addTo(K).bindPopup(` + `),zt.value.set(`cluster-${xl.cluster_id}`,ko);const ma=fn(Nn,Wr,Ts,mo),io=Math.min(Math.floor(ma*5),200),po={node_name:`Cluster of ${xl.point_count} nodes`,contact_type:"Cluster",route_type:2,rssi:null,snr:null,jittered_latitude:Ts,jittered_longitude:mo,latitude:Ts,longitude:mo};Hn(po,Nn,Wr,"#AAE8E8",io)}else{const ko=xl.advert,ro=$n[ko.contact_type]||$n.Unknown,Ia=Bi(ro),ma=Ts,io=mo,po=fn(Nn,Wr,ma,io),us=Mm.marker([ma,io],{icon:Ia}).addTo(Y).bindPopup(` ${ko.node_name||"Unknown Node"} Type: ${ko.contact_type} Distance: ${po.toFixed(2)} km - Signal: ${Mr(ko.rssi)} / ${Tr(ko.snr)} + Signal: ${Ar(ko.rssi)} / ${kr(ko.snr)} Route: ${Vr(ko.route_type)} - Last Seen: ${pr(ko.last_seen)} + Last Seen: ${fr(ko.last_seen)} ${ko.jittered_latitude?'Position adjusted to separate overlapping nodes':""} - `);pt.value.set(ko.pubkey,us),Ot.value.set(`node-${ko.pubkey}`,us);const Ho=Math.min(Math.floor(po*5),200),vi={...ko,jittered_latitude:da,jittered_longitude:no};Yi(vi,Un,qr,ro,Ho)}})},Ni=(si,Ma)=>{let zo=0;cn(E.adverts).forEach(mo=>{const Ts=mo.properties.advert;if(Ts.latitude!==null&&Ts.longitude!==null){const xl=bi[Ts.contact_type]||bi.Unknown,ko=Di(xl),ro=Ts.jittered_latitude||Ts.latitude,Ia=Ts.jittered_longitude||Ts.longitude,da=Mm.marker([ro,Ia],{icon:ko}).addTo(K).bindPopup(` + `);dt.value.set(ko.pubkey,us),zt.value.set(`node-${ko.pubkey}`,us);const qo=Math.min(Math.floor(po*5),200),_i={...ko,jittered_latitude:ma,jittered_longitude:io};Hn(_i,Nn,Wr,ro,qo)}})},Ti=(Qn,la)=>{let Eo=0;cn(E.adverts).forEach(mo=>{const Ts=mo.properties.advert;if(Ts.latitude!==null&&Ts.longitude!==null){const xl=$n[Ts.contact_type]||$n.Unknown,ko=Bi(xl),ro=Ts.jittered_latitude||Ts.latitude,Ia=Ts.jittered_longitude||Ts.longitude,ma=Mm.marker([ro,Ia],{icon:ko}).addTo(Y).bindPopup(` ${Ts.node_name||"Unknown Node"} Type: ${Ts.contact_type} - Distance: ${mn(si,Ma,ro,Ia).toFixed(2)} km - Signal: ${Mr(Ts.rssi)} / ${Tr(Ts.snr)} + Distance: ${fn(Qn,la,ro,Ia).toFixed(2)} km + Signal: ${Ar(Ts.rssi)} / ${kr(Ts.snr)} Route: ${Vr(Ts.route_type)} - Last Seen: ${pr(Ts.last_seen)} + Last Seen: ${fr(Ts.last_seen)} ${Ts.jittered_latitude?'Position adjusted to separate overlapping nodes':""} - `);pt.value.set(Ts.pubkey,da);const no=da.getElement();no&&(no.style.opacity="0",no.style.transition="opacity 0.5s ease-out"),Yi(Ts,si,Ma,xl,zo),setTimeout(()=>{no&&(no.style.opacity="1")},zo+1e3),zo+=100}})};if(te.value&&E.adverts.length>0)try{const si=cn(E.adverts);Jn(si);const Ma=Math.min(14,K.getZoom());K.setZoom(Ma),setTimeout(()=>{try{Ca()}catch(zo){console.warn("Error updating clusters:",zo),Ni(Un,qr)}},100),K.on("moveend",()=>{try{Ca()}catch(zo){console.warn("Error updating clusters on move:",zo)}}),K.on("zoomend",()=>{try{Ca()}catch(zo){console.warn("Error updating clusters on zoom:",zo)}})}catch(si){console.warn("Error initializing clustering:",si),Ni(Un,qr)}else Ni(Un,qr);setTimeout(()=>{K&&K.invalidateSize()},1e3)}catch(Di){console.error("Error initializing map:",Di)}};return s({highlightNode:Un=>{const qr=pt.value.get(Un);if(qr){const Di=qr.getElement();if(Di){const Fi=Di.querySelector("div");Fi&&Fi.classList.add("marker-highlight")}}},unhighlightNode:Un=>{const qr=pt.value.get(Un);if(qr){const Di=qr.getElement();if(Di){const Fi=Di.querySelector("div");Fi&&Fi.classList.remove("marker-highlight")}}},initializeOpenStreetMap:Bn}),Em(()=>E.adverts,()=>{K&&er.value&&setTimeout(()=>{Bn()},100)},{immediate:!1}),bp(()=>{er.value&&E.adverts.length>0&&setTimeout(()=>{Bn()},300)}),Iy(()=>{Dt()}),(Un,qr)=>(_i(),zi("div",Cot,[er.value?(_i(),zi("div",{key:1,ref_key:"mapContainer",ref:B,class:"leaflet-map-container h-96 w-full bg-dark-card/30 backdrop-blur border border-white/10 rounded-[15px] overflow-hidden",style:{"min-height":"384px",position:"relative"}},null,512)):(_i(),zi("div",Lot,qr[0]||(qr[0]=[$f('No valid coordinates availableConfigure base station location to view map',1)]))),er.value&&Un.adverts.length>0?(_i(),zi("div",Pot,[qr[1]||(qr[1]=$f('Network MapNode TypesBase StationChat NodeRepeaterRoom ServerHybrid NodeUnknown2+ClusterRoute TypesDirectTransport DirectFloodTransport Flood',3)),Ee("div",Iot,Qi(Un.adverts.length)+" node"+Qi(Un.adverts.length!==1?"s":"")+" visible ",1)])):is("",!0),er.value?(_i(),zi("div",zot," © OpenStreetMap contributors © CARTO ")):is("",!0)]))}}),Dot=ld(Oot,[["__scopeId","data-v-ab4f1a7c"]]),Fot={class:"relative","data-menu-container":""},Rot=Dc({__name:"NeighborMenu",props:{neighbor:{},canPing:{type:Boolean}},emits:["ping","delete"],setup(d,{emit:s}){const E=window.__neighborMenuManager||{activeMenu:null,setActiveMenu:Mr=>{if(E.activeMenu&&E.activeMenu!==Mr)try{E.activeMenu.closeMenu()}catch(Tr){console.warn("Error closing previous menu:",Tr)}E.activeMenu=Mr}};window.__neighborMenuManager=E;const B=d,K=s,pt=Ga(!1),_t=Ga(),Ot=Ga({top:0,left:0}),jt=()=>{pt.value=!1,document.removeEventListener("click",De,!0),document.removeEventListener("keydown",er),E.activeMenu===te&&(E.activeMenu=null)},te={closeMenu:jt},he=()=>{jt(),K("delete",B.neighbor)},De=Mr=>{Mr.target.closest("[data-menu-container]")||jt()},er=Mr=>{Mr.key==="Escape"&&jt()},pr=async()=>{if(!pt.value&&_t.value){E.setActiveMenu(te);const Mr=_t.value.getBoundingClientRect();Ot.value={top:Mr.bottom+4,left:Mr.left},pt.value=!0,await om(),document.addEventListener("click",De,!0),document.addEventListener("keydown",er)}else jt()};return Iy(()=>{jt()}),(Mr,Tr)=>(_i(),zi("div",Fot,[Ee("button",{ref_key:"buttonRef",ref:_t,onClick:pr,class:jo(["p-1 rounded hover:bg-white/10 transition-colors text-white/60 hover:text-white/80",{"bg-white/10 text-white/80":pt.value}]),"data-menu-container":""},Tr[0]||(Tr[0]=[Ee("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[Ee("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})],-1)]),2),(_i(),Z0(XA,{to:"body"},[pt.value?(_i(),zi("div",{key:0,class:"fixed w-36 bg-dark-card/90 backdrop-blur-lg border border-white/20 rounded-[15px] shadow-2xl z-[999999]",style:hm({top:Ot.value.top+"px",left:Ot.value.left+"px"}),"data-menu-container":""},[Ee("div",{class:"py-2"},[Ee("button",{onClick:he,class:"flex items-center gap-3 w-full px-4 py-3 text-sm text-accent-red hover:bg-accent-red/10 transition-colors"},Tr[1]||(Tr[1]=[Ee("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[Ee("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1),Ee("span",{class:"font-medium"},"Delete",-1)]))])],4)):is("",!0)]))]))}}),Bot={class:"bg-dark-card/30 backdrop-blur border border-white/10 rounded-[15px] p-6"},Not={class:"flex items-center justify-between mb-4"},jot={class:"flex items-center gap-3"},Uot={class:"text-white text-lg font-semibold"},Vot={class:"bg-white/10 text-white text-xs px-2 py-1 rounded-full"},Hot={key:0,class:"flex bg-dark-card/30 backdrop-blur rounded-lg border border-white/10 p-1"},Wot={class:"overflow-x-auto"},qot={class:"w-full"},$ot={class:"bg-dark-bg/50"},Zot={class:"bg-dark-bg/30"},Got=["onMouseenter","onMouseleave"],Yot=["onClick","title"],Kot={key:0,class:"ml-1 text-xs"},Xot={key:0,class:"flex items-center gap-3"},Jot={class:"text-white/70"},Qot={class:"flex gap-1"},tst=["onClick"],est=["onClick"],rst={key:1,class:"text-dark-text"},nst={class:"flex items-center gap-2"},ist={class:"flex items-end gap-0.5"},ast={class:"flex items-center gap-2"},ost=["title"],sst=["title"],lst=Dc({__name:"NeighborTable",props:{contactType:{},contactTypeKey:{},adverts:{},color:{},baseLatitude:{default:null},baseLongitude:{default:null},isCompactView:{type:Boolean,default:!1},isFirstTable:{type:Boolean,default:!1},showViewToggle:{type:Boolean,default:!1}},emits:["highlight-node","unhighlight-node","menu-ping","menu-delete","toggle-view"],setup(d,{emit:s}){const E=Ga(null),B=d,K=s,pt=qr=>new Date(qr*1e3).toLocaleString(),_t=qr=>`${qr.slice(0,8)}...${qr.slice(-8)}`,Ot=qr=>{switch(qr){case 2:return{text:"Direct",bgColor:"bg-green-500/20",borderColor:"border-green-400/30",textColor:"text-green-400"};case 3:return{text:"Transport Direct",bgColor:"bg-green-600/20",borderColor:"border-green-500/30",textColor:"text-green-500"};case 1:return{text:"Flood",bgColor:"bg-yellow-500/20",borderColor:"border-yellow-400/30",textColor:"text-yellow-400"};case 0:return{text:"Transport Flood",bgColor:"bg-orange-500/20",borderColor:"border-orange-400/30",textColor:"text-orange-400"};default:return{text:"Unknown",bgColor:"bg-gray-500/20",borderColor:"border-gray-400/30",textColor:"text-gray-400"}}},jt=qr=>qr?`${qr} dBm`:"N/A",te=qr=>qr?`${qr} dB`:"N/A",he=(qr,Di,Fi,Pi)=>{const Yi=(Fi-qr)*Math.PI/180,Ca=(Pi-Di)*Math.PI/180,Ni=Math.sin(Yi/2)*Math.sin(Yi/2)+Math.cos(qr*Math.PI/180)*Math.cos(Fi*Math.PI/180)*Math.sin(Ca/2)*Math.sin(Ca/2);return 6371*(2*Math.atan2(Math.sqrt(Ni),Math.sqrt(1-Ni)))},De=qr=>B.baseLatitude===null||B.baseLongitude===null||qr.latitude===null||qr.longitude===null?"N/A":`${he(B.baseLatitude,B.baseLongitude,qr.latitude,qr.longitude).toFixed(1)} km`,er=async qr=>{try{return await navigator.clipboard.writeText(qr),!0}catch{const Di=document.createElement("textarea");return Di.value=qr,document.body.appendChild(Di),Di.select(),document.execCommand("copy"),document.body.removeChild(Di),!0}},pr=qr=>{const Di=Date.now(),Fi=qr*1e3,Pi=Di-Fi,bi=Math.floor(Pi/1e3),Yi=Math.floor(bi/60),Ca=Math.floor(Yi/60),Ni=Math.floor(Ca/24);return bi<60?`${bi}s ago`:Yi<60?`${Yi}m ago`:Ca<24?`${Ca}h ago`:`${Ni}d ago`},Mr=qr=>{const Di=Date.now(),Fi=qr*1e3,Pi=Di-Fi,bi=Math.floor(Pi/(1e3*60*60));return bi<1?{color:"text-green-400"}:bi<26?{color:"text-yellow-400"}:{color:"text-red-400"}},Tr=async(qr,Di)=>{const Fi=`${qr.toFixed(6)}, ${Di.toFixed(6)}`;await er(Fi)},Vr=(qr,Di)=>{const Fi=`https://www.google.com/maps?q=${qr},${Di}`;window.open(Fi,"_blank")},mn=async qr=>{await er(qr),E.value=qr,setTimeout(()=>{E.value=null},2e3)},Dt=qr=>qr?qr>=-50?{bars:5,color:"text-green-400"}:qr>=-60?{bars:4,color:"text-green-300"}:qr>=-70?{bars:3,color:"text-yellow-400"}:qr>=-80?{bars:2,color:"text-orange-400"}:qr>=-90?{bars:1,color:"text-red-400"}:{bars:0,color:"text-red-500"}:{bars:0,color:"text-gray-400"},cn=()=>B.isCompactView?"py-2 px-2":"py-4 px-3",Jn=()=>{K("toggle-view")},Bn=qr=>{K("highlight-node",qr)},ni=qr=>{K("unhighlight-node",qr)},Wi=qr=>{K("menu-ping",qr)},Un=qr=>{K("menu-delete",qr)};return(qr,Di)=>(_i(),zi("div",Bot,[Ee("div",Not,[Ee("div",jot,[Ee("div",{class:"w-3 h-3 rounded-full border border-white/20",style:hm({backgroundColor:qr.color})},null,4),Ee("h3",Uot,Qi(qr.contactType),1),Ee("span",Vot,Qi(qr.adverts.length),1)]),qr.isFirstTable&&qr.showViewToggle?(_i(),zi("div",Hot,[Ee("button",{onClick:Jn,class:jo(["p-2 rounded-md transition-colors",qr.isCompactView?"text-white/60 hover:text-primary hover:bg-primary/10":"bg-primary/20 text-primary border border-primary/30"]),title:"Comfortable view"},Di[0]||(Di[0]=[Ee("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Ee("rect",{x:"3",y:"3",width:"18",height:"6",rx:"2",stroke:"currentColor","stroke-width":"2"}),Ee("rect",{x:"3",y:"12",width:"18",height:"6",rx:"2",stroke:"currentColor","stroke-width":"2"})],-1)]),2),Ee("button",{onClick:Jn,class:jo(["p-2 rounded-md transition-colors",qr.isCompactView?"bg-primary/20 text-primary border border-primary/30":"text-white/60 hover:text-primary hover:bg-primary/10"]),title:"Compact view"},Di[1]||(Di[1]=[Ee("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Ee("rect",{x:"3",y:"3",width:"18",height:"4",rx:"2",stroke:"currentColor","stroke-width":"2"}),Ee("rect",{x:"3",y:"10",width:"18",height:"4",rx:"2",stroke:"currentColor","stroke-width":"2"}),Ee("rect",{x:"3",y:"17",width:"18",height:"4",rx:"2",stroke:"currentColor","stroke-width":"2"})],-1)]),2)])):is("",!0)]),Ee("div",Wot,[Ee("table",qot,[Ee("thead",null,[Ee("tr",$ot,[Ee("th",{class:jo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},null,2),Ee("th",{class:jo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"Node Name",2),Ee("th",{class:jo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"Public Key",2),Ee("th",{class:jo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"Location",2),Ee("th",{class:jo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"Distance",2),Ee("th",{class:jo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"Route Type",2),Ee("th",{class:jo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"RSSI",2),Ee("th",{class:jo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"SNR",2),Ee("th",{class:jo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"Last Seen",2),Ee("th",{class:jo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"First Seen",2),Ee("th",{class:jo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"Advert Count",2)])]),Ee("tbody",Zot,[(_i(!0),zi(Pu,null,Jh(qr.adverts,Fi=>(_i(),zi("tr",{key:Fi.id,class:"hover:bg-white/5 transition-colors",onMouseenter:Pi=>Bn(Fi.pubkey),onMouseleave:Pi=>ni(Fi.pubkey)},[Ee("td",{class:jo(cn())},[Wl(Rot,{neighbor:Fi,onPing:Wi,onDelete:Un},null,8,["neighbor"])],2),Ee("td",{class:jo(`${cn()} text-white text-sm`)},Qi(Fi.node_name||"Unknown"),3),Ee("td",{class:jo(`${cn()} text-white text-sm font-mono`)},[Ee("button",{onClick:Pi=>mn(Fi.pubkey),class:jo(["text-white hover:text-primary-light transition-colors cursor-pointer underline underline-offset-2 decoration-white/30 hover:decoration-primary-light/60",E.value===Fi.pubkey?"text-green-400 decoration-green-400/60":""]),title:E.value===Fi.pubkey?"Copied!":"Click to copy full public key"},[Qu(Qi(_t(Fi.pubkey))+" ",1),E.value===Fi.pubkey?(_i(),zi("span",Kot,"✓")):is("",!0)],10,Yot)],2),Ee("td",{class:jo(`${cn()} text-white text-sm`)},[Fi.latitude!==null&&Fi.longitude!==null?(_i(),zi("div",Xot,[Ee("span",Jot,Qi(Fi.latitude.toFixed(4))+", "+Qi(Fi.longitude.toFixed(4)),1),Ee("div",Qot,[Ee("button",{onClick:Pi=>Tr(Fi.latitude,Fi.longitude),class:"text-white/60 hover:text-white transition-colors cursor-pointer",title:"Copy coordinates to clipboard"},Di[2]||(Di[2]=[Ee("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Ee("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),Ee("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1)]),8,tst),Ee("button",{onClick:Pi=>Vr(Fi.latitude,Fi.longitude),class:"text-white/60 hover:text-blue-400 transition-colors cursor-pointer",title:"Open in Google Maps"},Di[3]||(Di[3]=[Ee("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[Ee("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z",stroke:"currentColor","stroke-width":"2"}),Ee("circle",{cx:"12",cy:"10",r:"3",stroke:"currentColor","stroke-width":"2"})],-1)]),8,est)])])):(_i(),zi("span",rst,"Unknown"))],2),Ee("td",{class:jo(`${cn()} text-white text-sm`)},Qi(De(Fi)),3),Ee("td",{class:jo(`${cn()} text-white text-sm`)},[Ee("span",{class:jo(["inline-block px-2 py-1 rounded-full text-xs border transition-colors",Ot(Fi.route_type).bgColor,Ot(Fi.route_type).borderColor,Ot(Fi.route_type).textColor])},Qi(Ot(Fi.route_type).text),3)],2),Ee("td",{class:jo(`${cn()} text-white text-sm`)},[Ee("div",nst,[Ee("div",ist,[(_i(),zi(Pu,null,Jh(5,Pi=>Ee("div",{key:Pi,class:jo(["w-1 transition-colors",Pi<=Dt(Fi.rssi).bars?Dt(Fi.rssi).color:"text-gray-600"]),style:hm({height:`${4+Pi*2}px`})},Di[4]||(Di[4]=[Ee("div",{class:"w-full h-full bg-current rounded-sm"},null,-1)]),6)),64))]),Ee("span",{class:jo(Dt(Fi.rssi).color)},Qi(jt(Fi.rssi)),3)])],2),Ee("td",{class:jo(`${cn()} text-white text-sm`)},Qi(te(Fi.snr)),3),Ee("td",{class:jo(`${cn()} text-white text-sm`)},[Ee("div",ast,[Ee("div",{class:jo(["w-2 h-2 rounded-full",Mr(Fi.last_seen).color==="text-green-400"?"bg-green-400":"",Mr(Fi.last_seen).color==="text-yellow-400"?"bg-yellow-400":"",Mr(Fi.last_seen).color==="text-red-400"?"bg-red-400":""])},null,2),Ee("span",{class:jo([Mr(Fi.last_seen).color,"cursor-help"]),title:pt(Fi.last_seen)},Qi(pr(Fi.last_seen)),11,ost)])],2),Ee("td",{class:jo(`${cn()} text-white text-sm`)},[Ee("span",{title:pt(Fi.first_seen),class:"cursor-help"},Qi(pr(Fi.first_seen)),9,sst)],2),Ee("td",{class:jo(`${cn()} text-white text-sm text-center`)},Qi(Fi.advert_count),3)],40,Got))),128))])])])]))}}),ust={class:"space-y-6"},cst={key:0,class:"flex items-center justify-center py-12"},hst={key:1,class:"bg-accent-red/10 border border-accent-red/20 rounded-[15px] p-6"},fst={class:"flex items-center gap-3"},dst={class:"text-accent-red/80 text-sm"},pst={key:0,class:"text-center py-12"},mst=Dc({name:"NeighborsView",__name:"Neighbors",setup(d){const s=Om(),E={0:"Unknown",1:"Chat Node",2:"Repeater",3:"Room Server",4:"Hybrid Node"},B={0:"#6b7280",1:"#60a5fa",2:"#34d399",3:"#a855f7",4:"#f59e0b"},K=Ga({}),pt=Ga(!0),_t=Ga(null),Ot=Ga(!1),jt=Ga(!1),te=Ga(null),he=$o(()=>{if(!te.value)return null;const Un=te.value;return{id:Un.id,pubkey:Un.pubkey,node_name:Un.node_name,contact_type:Un.contact_type,latitude:Un.latitude,longitude:Un.longitude,rssi:Un.rssi,snr:Un.snr,route_type:Un.route_type,last_seen:Un.last_seen,first_seen:Un.first_seen,advert_count:Un.advert_count,timestamp:Un.timestamp,is_repeater:Un.is_repeater,is_new_neighbor:Un.is_new_neighbor}}),De=$o(()=>s.stats?.config?.repeater?.latitude),er=$o(()=>s.stats?.config?.repeater?.longitude),pr=$o(()=>Object.entries(E).filter(([Un])=>K.value[Un]?.length>0).sort(([Un],[qr])=>parseInt(Un)-parseInt(qr))),Mr=$o(()=>Object.values(K.value).flat().filter(Un=>Un.latitude!==null&&Un.longitude!==null)),Tr=async Un=>{try{const qr=await Ah.get(`/adverts_by_contact_type?contact_type=${encodeURIComponent(Un)}&hours=168`);return qr.success&&Array.isArray(qr.data)?qr.data:[]}catch(qr){return console.error(`Error fetching adverts for contact type ${Un}:`,qr),[]}},Vr=async()=>{pt.value=!0,_t.value=null;try{K.value={};for(const[Un,qr]of Object.entries(E)){const Di=await Tr(qr);Di.length>0&&(K.value[Un]=Di)}}catch(Un){console.error("Error loading adverts:",Un),_t.value=Un instanceof Error?Un.message:"Failed to load neighbor data"}finally{pt.value=!1}},mn=Ga(),Dt=Un=>{mn.value?.highlightNode(Un)},cn=Un=>{mn.value?.unhighlightNode(Un)},Jn=async Un=>{const qr=Un;try{const Di=await Ah.post("/ping_neighbor",{pubkey:qr.pubkey});Di.success?console.log("Ping sent successfully"):console.error("Failed to ping neighbor:",Di.error)}catch(Di){console.error("Error pinging neighbor:",Di)}},Bn=Un=>{te.value=Un,jt.value=!0},ni=()=>{jt.value=!1,te.value=null},Wi=async Un=>{try{await Ah.deleteAdvert(Un),await Vr(),ni()}catch(qr){console.error("Error deleting neighbor:",qr)}};return bp(async()=>{await Vr()}),(Un,qr)=>(_i(),zi("div",ust,[pt.value?(_i(),zi("div",cst,qr[1]||(qr[1]=[Ee("div",{class:"text-center"},[Ee("div",{class:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),Ee("p",{class:"text-dark-text"},"Loading neighbor data...")],-1)]))):_t.value?(_i(),zi("div",hst,[Ee("div",fst,[qr[3]||(qr[3]=Ee("svg",{class:"w-5 h-5 text-accent-red",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[Ee("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"})],-1)),Ee("div",null,[qr[2]||(qr[2]=Ee("h3",{class:"text-accent-red font-medium"},"Error Loading Neighbors",-1)),Ee("p",dst,Qi(_t.value),1)])])])):(_i(),zi(Pu,{key:2},[Wl(Dot,{ref_key:"networkMapRef",ref:mn,adverts:Mr.value,"base-latitude":De.value,"base-longitude":er.value},null,8,["adverts","base-latitude","base-longitude"]),(_i(!0),zi(Pu,null,Jh(pr.value,([Di,Fi])=>(_i(),zi("div",{key:Di,class:"space-y-6"},[Wl(lst,{"contact-type":Fi,"contact-type-key":Di,adverts:K.value[Di],color:B[parseInt(Di)],"base-latitude":De.value,"base-longitude":er.value,"is-compact-view":Ot.value,"is-first-table":Di===pr.value[0]?.[0],"show-view-toggle":pr.value.length>0,onHighlightNode:Dt,onUnhighlightNode:cn,onMenuPing:Jn,onMenuDelete:Bn,onToggleView:qr[0]||(qr[0]=Pi=>Ot.value=!Ot.value)},null,8,["contact-type","contact-type-key","adverts","color","base-latitude","base-longitude","is-compact-view","is-first-table","show-view-toggle"])]))),128)),pr.value.length===0?(_i(),zi("div",pst,[qr[4]||(qr[4]=$f('No Neighbors FoundNo mesh neighbors have been discovered in your area yet.',3)),Ee("button",{onClick:Vr,class:"mt-4 px-4 py-2 bg-primary/20 text-primary border border-primary/30 rounded-lg hover:bg-primary/30 transition-colors"}," Refresh ")])):is("",!0)],64)),Wl(bot,{show:jt.value,neighbor:he.value,onClose:ni,onDelete:Wi},null,8,["show","neighbor"])]))}});/*! + `);dt.value.set(Ts.pubkey,ma);const io=ma.getElement();io&&(io.style.opacity="0",io.style.transition="opacity 0.5s ease-out"),Hn(Ts,Qn,la,xl,Eo),setTimeout(()=>{io&&(io.style.opacity="1")},Eo+1e3),Eo+=100}})};if(te.value&&E.adverts.length>0)try{const Qn=cn(E.adverts);ti(Qn);const la=Math.min(14,Y.getZoom());Y.setZoom(la),setTimeout(()=>{try{sa()}catch(Eo){console.warn("Error updating clusters:",Eo),Ti(Nn,Wr)}},100),Y.on("moveend",()=>{try{sa()}catch(Eo){console.warn("Error updating clusters on move:",Eo)}}),Y.on("zoomend",()=>{try{sa()}catch(Eo){console.warn("Error updating clusters on zoom:",Eo)}})}catch(Qn){console.warn("Error initializing clustering:",Qn),Ti(Nn,Wr)}else Ti(Nn,Wr);setTimeout(()=>{Y&&Y.invalidateSize()},1e3)}catch(Bi){console.error("Error initializing map:",Bi)}};return s({highlightNode:Nn=>{const Wr=dt.value.get(Nn);if(Wr){const Bi=Wr.getElement();if(Bi){const Ri=Bi.querySelector("div");Ri&&Ri.classList.add("marker-highlight")}}},unhighlightNode:Nn=>{const Wr=dt.value.get(Nn);if(Wr){const Bi=Wr.getElement();if(Bi){const Ri=Bi.querySelector("div");Ri&&Ri.classList.remove("marker-highlight")}}},initializeOpenStreetMap:Dn}),Em(()=>E.adverts,()=>{Y&&Je.value&&setTimeout(()=>{Dn()},100)},{immediate:!1}),op(()=>{Je.value&&E.adverts.length>0&&setTimeout(()=>{Dn()},300)}),Oy(()=>{Dt()}),(Nn,Wr)=>(ci(),wi("div",Kot,[Je.value?(ci(),wi("div",{key:1,ref_key:"mapContainer",ref:R,class:"leaflet-map-container h-96 w-full bg-dark-card/30 backdrop-blur border border-white/10 rounded-[15px] overflow-hidden",style:{"min-height":"384px",position:"relative"}},null,512)):(ci(),wi("div",Xot,Wr[0]||(Wr[0]=[Ff('No valid coordinates availableConfigure base station location to view map',1)]))),Je.value&&Nn.adverts.length>0?(ci(),wi("div",Jot,[Wr[1]||(Wr[1]=Ff('Network MapNode TypesBase StationChat NodeRepeaterRoom ServerHybrid NodeUnknown2+ClusterRoute TypesDirectTransport DirectFloodTransport Flood',3)),ye("div",Qot,Fi(Nn.adverts.length)+" node"+Fi(Nn.adverts.length!==1?"s":"")+" visible ",1)])):Uo("",!0),Je.value?(ci(),wi("div",tst," © OpenStreetMap contributors © CARTO ")):Uo("",!0)]))}}),rst=Bf(est,[["__scopeId","data-v-ab4f1a7c"]]),nst={class:"relative","data-menu-container":""},ist=Ec({__name:"NeighborMenu",props:{neighbor:{},canPing:{type:Boolean}},emits:["ping","delete"],setup(d,{emit:s}){const E=window.__neighborMenuManager||{activeMenu:null,setActiveMenu:Ar=>{if(E.activeMenu&&E.activeMenu!==Ar)try{E.activeMenu.closeMenu()}catch(kr){console.warn("Error closing previous menu:",kr)}E.activeMenu=Ar}};window.__neighborMenuManager=E;const R=d,Y=s,dt=Ha(!1),_t=Ha(),zt=Ha({top:0,left:0}),jt=()=>{dt.value=!1,document.removeEventListener("click",Ie,!0),document.removeEventListener("keydown",Je),E.activeMenu===te&&(E.activeMenu=null)},te={closeMenu:jt},ce=()=>{jt(),Y("delete",R.neighbor)},Ie=Ar=>{Ar.target.closest("[data-menu-container]")||jt()},Je=Ar=>{Ar.key==="Escape"&&jt()},fr=async()=>{if(!dt.value&&_t.value){E.setActiveMenu(te);const Ar=_t.value.getBoundingClientRect();zt.value={top:Ar.bottom+4,left:Ar.left},dt.value=!0,await S0(),document.addEventListener("click",Ie,!0),document.addEventListener("keydown",Je)}else jt()};return Oy(()=>{jt()}),(Ar,kr)=>(ci(),wi("div",nst,[ye("button",{ref_key:"buttonRef",ref:_t,onClick:fr,class:Fo(["p-1 rounded hover:bg-white/10 transition-colors text-white/60 hover:text-white/80",{"bg-white/10 text-white/80":dt.value}]),"data-menu-container":""},kr[0]||(kr[0]=[ye("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[ye("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"})],-1)]),2),(ci(),G0(QA,{to:"body"},[dt.value?(ci(),wi("div",{key:0,class:"fixed w-36 bg-dark-card/90 backdrop-blur-lg border border-white/20 rounded-[15px] shadow-2xl z-[999999]",style:hm({top:zt.value.top+"px",left:zt.value.left+"px"}),"data-menu-container":""},[ye("div",{class:"py-2"},[ye("button",{onClick:ce,class:"flex items-center gap-3 w-full px-4 py-3 text-sm text-accent-red hover:bg-accent-red/10 transition-colors"},kr[1]||(kr[1]=[ye("svg",{class:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[ye("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"})],-1),ye("span",{class:"font-medium"},"Delete",-1)]))])],4)):Uo("",!0)]))]))}}),ast={class:"bg-dark-card/30 backdrop-blur border border-white/10 rounded-[15px] p-6"},ost={class:"flex items-center justify-between mb-4"},sst={class:"flex items-center gap-3"},lst={class:"text-white text-lg font-semibold"},ust={class:"bg-white/10 text-white text-xs px-2 py-1 rounded-full"},cst={key:0,class:"flex bg-dark-card/30 backdrop-blur rounded-lg border border-white/10 p-1"},hst={class:"overflow-x-auto"},fst={class:"w-full"},dst={class:"bg-dark-bg/50"},pst={class:"bg-dark-bg/30"},mst=["onMouseenter","onMouseleave"],gst=["onClick","title"],vst={key:0,class:"ml-1 text-xs"},yst={key:0,class:"flex items-center gap-3"},xst={class:"text-white/70"},_st={class:"flex gap-1"},bst=["onClick"],wst=["onClick"],kst={key:1,class:"text-dark-text"},Tst={class:"flex items-center gap-2"},Ast={class:"flex items-end gap-0.5"},Mst={class:"flex items-center gap-2"},Sst=["title"],Est=["title"],Cst=Ec({__name:"NeighborTable",props:{contactType:{},contactTypeKey:{},adverts:{},color:{},baseLatitude:{default:null},baseLongitude:{default:null},isCompactView:{type:Boolean,default:!1},isFirstTable:{type:Boolean,default:!1},showViewToggle:{type:Boolean,default:!1}},emits:["highlight-node","unhighlight-node","menu-ping","menu-delete","toggle-view"],setup(d,{emit:s}){const E=Ha(null),R=d,Y=s,dt=Wr=>new Date(Wr*1e3).toLocaleString(),_t=Wr=>`${Wr.slice(0,8)}...${Wr.slice(-8)}`,zt=Wr=>{switch(Wr){case 2:return{text:"Direct",bgColor:"bg-green-500/20",borderColor:"border-green-400/30",textColor:"text-green-400"};case 3:return{text:"Transport Direct",bgColor:"bg-green-600/20",borderColor:"border-green-500/30",textColor:"text-green-500"};case 1:return{text:"Flood",bgColor:"bg-yellow-500/20",borderColor:"border-yellow-400/30",textColor:"text-yellow-400"};case 0:return{text:"Transport Flood",bgColor:"bg-orange-500/20",borderColor:"border-orange-400/30",textColor:"text-orange-400"};default:return{text:"Unknown",bgColor:"bg-gray-500/20",borderColor:"border-gray-400/30",textColor:"text-gray-400"}}},jt=Wr=>Wr?`${Wr} dBm`:"N/A",te=Wr=>Wr?`${Wr} dB`:"N/A",ce=(Wr,Bi,Ri,Li)=>{const Hn=(Ri-Wr)*Math.PI/180,sa=(Li-Bi)*Math.PI/180,Ti=Math.sin(Hn/2)*Math.sin(Hn/2)+Math.cos(Wr*Math.PI/180)*Math.cos(Ri*Math.PI/180)*Math.sin(sa/2)*Math.sin(sa/2);return 6371*(2*Math.atan2(Math.sqrt(Ti),Math.sqrt(1-Ti)))},Ie=Wr=>R.baseLatitude===null||R.baseLongitude===null||Wr.latitude===null||Wr.longitude===null?"N/A":`${ce(R.baseLatitude,R.baseLongitude,Wr.latitude,Wr.longitude).toFixed(1)} km`,Je=async Wr=>{try{return await navigator.clipboard.writeText(Wr),!0}catch{const Bi=document.createElement("textarea");return Bi.value=Wr,document.body.appendChild(Bi),Bi.select(),document.execCommand("copy"),document.body.removeChild(Bi),!0}},fr=Wr=>{const Bi=Date.now(),Ri=Wr*1e3,Li=Bi-Ri,$n=Math.floor(Li/1e3),Hn=Math.floor($n/60),sa=Math.floor(Hn/60),Ti=Math.floor(sa/24);return $n<60?`${$n}s ago`:Hn<60?`${Hn}m ago`:sa<24?`${sa}h ago`:`${Ti}d ago`},Ar=Wr=>{const Bi=Date.now(),Ri=Wr*1e3,Li=Bi-Ri,$n=Math.floor(Li/(1e3*60*60));return $n<1?{color:"text-green-400"}:$n<26?{color:"text-yellow-400"}:{color:"text-red-400"}},kr=async(Wr,Bi)=>{const Ri=`${Wr.toFixed(6)}, ${Bi.toFixed(6)}`;await Je(Ri)},Vr=(Wr,Bi)=>{const Ri=`https://www.google.com/maps?q=${Wr},${Bi}`;window.open(Ri,"_blank")},fn=async Wr=>{await Je(Wr),E.value=Wr,setTimeout(()=>{E.value=null},2e3)},Dt=Wr=>Wr?Wr>=-50?{bars:5,color:"text-green-400"}:Wr>=-60?{bars:4,color:"text-green-300"}:Wr>=-70?{bars:3,color:"text-yellow-400"}:Wr>=-80?{bars:2,color:"text-orange-400"}:Wr>=-90?{bars:1,color:"text-red-400"}:{bars:0,color:"text-red-500"}:{bars:0,color:"text-gray-400"},cn=()=>R.isCompactView?"py-2 px-2":"py-4 px-3",ti=()=>{Y("toggle-view")},Dn=Wr=>{Y("highlight-node",Wr)},ii=Wr=>{Y("unhighlight-node",Wr)},Vi=Wr=>{Y("menu-ping",Wr)},Nn=Wr=>{Y("menu-delete",Wr)};return(Wr,Bi)=>(ci(),wi("div",ast,[ye("div",ost,[ye("div",sst,[ye("div",{class:"w-3 h-3 rounded-full border border-white/20",style:hm({backgroundColor:Wr.color})},null,4),ye("h3",lst,Fi(Wr.contactType),1),ye("span",ust,Fi(Wr.adverts.length),1)]),Wr.isFirstTable&&Wr.showViewToggle?(ci(),wi("div",cst,[ye("button",{onClick:ti,class:Fo(["p-2 rounded-md transition-colors",Wr.isCompactView?"text-white/60 hover:text-primary hover:bg-primary/10":"bg-primary/20 text-primary border border-primary/30"]),title:"Comfortable view"},Bi[0]||(Bi[0]=[ye("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ye("rect",{x:"3",y:"3",width:"18",height:"6",rx:"2",stroke:"currentColor","stroke-width":"2"}),ye("rect",{x:"3",y:"12",width:"18",height:"6",rx:"2",stroke:"currentColor","stroke-width":"2"})],-1)]),2),ye("button",{onClick:ti,class:Fo(["p-2 rounded-md transition-colors",Wr.isCompactView?"bg-primary/20 text-primary border border-primary/30":"text-white/60 hover:text-primary hover:bg-primary/10"]),title:"Compact view"},Bi[1]||(Bi[1]=[ye("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ye("rect",{x:"3",y:"3",width:"18",height:"4",rx:"2",stroke:"currentColor","stroke-width":"2"}),ye("rect",{x:"3",y:"10",width:"18",height:"4",rx:"2",stroke:"currentColor","stroke-width":"2"}),ye("rect",{x:"3",y:"17",width:"18",height:"4",rx:"2",stroke:"currentColor","stroke-width":"2"})],-1)]),2)])):Uo("",!0)]),ye("div",hst,[ye("table",fst,[ye("thead",null,[ye("tr",dst,[ye("th",{class:Fo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},null,2),ye("th",{class:Fo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"Node Name",2),ye("th",{class:Fo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"Public Key",2),ye("th",{class:Fo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"Location",2),ye("th",{class:Fo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"Distance",2),ye("th",{class:Fo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"Route Type",2),ye("th",{class:Fo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"RSSI",2),ye("th",{class:Fo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"SNR",2),ye("th",{class:Fo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"Last Seen",2),ye("th",{class:Fo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"First Seen",2),ye("th",{class:Fo(`text-left text-dark-text text-xs font-medium py-3 ${cn().split(" ")[1]} border-b border-white/5`)},"Advert Count",2)])]),ye("tbody",pst,[(ci(!0),wi(_u,null,Mh(Wr.adverts,Ri=>(ci(),wi("tr",{key:Ri.id,class:"hover:bg-white/5 transition-colors",onMouseenter:Li=>Dn(Ri.pubkey),onMouseleave:Li=>ii(Ri.pubkey)},[ye("td",{class:Fo(cn())},[El(ist,{neighbor:Ri,onPing:Vi,onDelete:Nn},null,8,["neighbor"])],2),ye("td",{class:Fo(`${cn()} text-white text-sm`)},Fi(Ri.node_name||"Unknown"),3),ye("td",{class:Fo(`${cn()} text-white text-sm font-mono`)},[ye("button",{onClick:Li=>fn(Ri.pubkey),class:Fo(["text-white hover:text-primary-light transition-colors cursor-pointer underline underline-offset-2 decoration-white/30 hover:decoration-primary-light/60",E.value===Ri.pubkey?"text-green-400 decoration-green-400/60":""]),title:E.value===Ri.pubkey?"Copied!":"Click to copy full public key"},[Qu(Fi(_t(Ri.pubkey))+" ",1),E.value===Ri.pubkey?(ci(),wi("span",vst,"✓")):Uo("",!0)],10,gst)],2),ye("td",{class:Fo(`${cn()} text-white text-sm`)},[Ri.latitude!==null&&Ri.longitude!==null?(ci(),wi("div",yst,[ye("span",xst,Fi(Ri.latitude.toFixed(4))+", "+Fi(Ri.longitude.toFixed(4)),1),ye("div",_st,[ye("button",{onClick:Li=>kr(Ri.latitude,Ri.longitude),class:"text-white/60 hover:text-white transition-colors cursor-pointer",title:"Copy coordinates to clipboard"},Bi[2]||(Bi[2]=[ye("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ye("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),ye("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1)]),8,bst),ye("button",{onClick:Li=>Vr(Ri.latitude,Ri.longitude),class:"text-white/60 hover:text-blue-400 transition-colors cursor-pointer",title:"Open in Google Maps"},Bi[3]||(Bi[3]=[ye("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[ye("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z",stroke:"currentColor","stroke-width":"2"}),ye("circle",{cx:"12",cy:"10",r:"3",stroke:"currentColor","stroke-width":"2"})],-1)]),8,wst)])])):(ci(),wi("span",kst,"Unknown"))],2),ye("td",{class:Fo(`${cn()} text-white text-sm`)},Fi(Ie(Ri)),3),ye("td",{class:Fo(`${cn()} text-white text-sm`)},[ye("span",{class:Fo(["inline-block px-2 py-1 rounded-full text-xs border transition-colors",zt(Ri.route_type).bgColor,zt(Ri.route_type).borderColor,zt(Ri.route_type).textColor])},Fi(zt(Ri.route_type).text),3)],2),ye("td",{class:Fo(`${cn()} text-white text-sm`)},[ye("div",Tst,[ye("div",Ast,[(ci(),wi(_u,null,Mh(5,Li=>ye("div",{key:Li,class:Fo(["w-1 transition-colors",Li<=Dt(Ri.rssi).bars?Dt(Ri.rssi).color:"text-gray-600"]),style:hm({height:`${4+Li*2}px`})},Bi[4]||(Bi[4]=[ye("div",{class:"w-full h-full bg-current rounded-sm"},null,-1)]),6)),64))]),ye("span",{class:Fo(Dt(Ri.rssi).color)},Fi(jt(Ri.rssi)),3)])],2),ye("td",{class:Fo(`${cn()} text-white text-sm`)},Fi(te(Ri.snr)),3),ye("td",{class:Fo(`${cn()} text-white text-sm`)},[ye("div",Mst,[ye("div",{class:Fo(["w-2 h-2 rounded-full",Ar(Ri.last_seen).color==="text-green-400"?"bg-green-400":"",Ar(Ri.last_seen).color==="text-yellow-400"?"bg-yellow-400":"",Ar(Ri.last_seen).color==="text-red-400"?"bg-red-400":""])},null,2),ye("span",{class:Fo([Ar(Ri.last_seen).color,"cursor-help"]),title:dt(Ri.last_seen)},Fi(fr(Ri.last_seen)),11,Sst)])],2),ye("td",{class:Fo(`${cn()} text-white text-sm`)},[ye("span",{title:dt(Ri.first_seen),class:"cursor-help"},Fi(fr(Ri.first_seen)),9,Est)],2),ye("td",{class:Fo(`${cn()} text-white text-sm text-center`)},Fi(Ri.advert_count),3)],40,mst))),128))])])])]))}}),Lst={class:"space-y-6"},Pst={key:0,class:"flex items-center justify-center py-12"},Ist={key:1,class:"bg-accent-red/10 border border-accent-red/20 rounded-[15px] p-6"},zst={class:"flex items-center gap-3"},Ost={class:"text-accent-red/80 text-sm"},Dst={key:0,class:"text-center py-12"},Fst=Ec({name:"NeighborsView",__name:"Neighbors",setup(d){const s=Dm(),E={0:"Unknown",1:"Chat Node",2:"Repeater",3:"Room Server",4:"Hybrid Node"},R={0:"#6b7280",1:"#60a5fa",2:"#34d399",3:"#a855f7",4:"#f59e0b"},Y=Ha({}),dt=Ha(!0),_t=Ha(null),zt=Ha(!1),jt=Ha(!1),te=Ha(null),ce=Wo(()=>{if(!te.value)return null;const Nn=te.value;return{id:Nn.id,pubkey:Nn.pubkey,node_name:Nn.node_name,contact_type:Nn.contact_type,latitude:Nn.latitude,longitude:Nn.longitude,rssi:Nn.rssi,snr:Nn.snr,route_type:Nn.route_type,last_seen:Nn.last_seen,first_seen:Nn.first_seen,advert_count:Nn.advert_count,timestamp:Nn.timestamp,is_repeater:Nn.is_repeater,is_new_neighbor:Nn.is_new_neighbor}}),Ie=Wo(()=>s.stats?.config?.repeater?.latitude),Je=Wo(()=>s.stats?.config?.repeater?.longitude),fr=Wo(()=>Object.entries(E).filter(([Nn])=>Y.value[Nn]?.length>0).sort(([Nn],[Wr])=>parseInt(Nn)-parseInt(Wr))),Ar=Wo(()=>Object.values(Y.value).flat().filter(Nn=>Nn.latitude!==null&&Nn.longitude!==null)),kr=async Nn=>{try{const Wr=await ah.get(`/adverts_by_contact_type?contact_type=${encodeURIComponent(Nn)}&hours=168`);return Wr.success&&Array.isArray(Wr.data)?Wr.data:[]}catch(Wr){return console.error(`Error fetching adverts for contact type ${Nn}:`,Wr),[]}},Vr=async()=>{dt.value=!0,_t.value=null;try{Y.value={};for(const[Nn,Wr]of Object.entries(E)){const Bi=await kr(Wr);Bi.length>0&&(Y.value[Nn]=Bi)}}catch(Nn){console.error("Error loading adverts:",Nn),_t.value=Nn instanceof Error?Nn.message:"Failed to load neighbor data"}finally{dt.value=!1}},fn=Ha(),Dt=Nn=>{fn.value?.highlightNode(Nn)},cn=Nn=>{fn.value?.unhighlightNode(Nn)},ti=async Nn=>{const Wr=Nn;try{const Bi=await ah.post("/ping_neighbor",{pubkey:Wr.pubkey});Bi.success?console.log("Ping sent successfully"):console.error("Failed to ping neighbor:",Bi.error)}catch(Bi){console.error("Error pinging neighbor:",Bi)}},Dn=Nn=>{te.value=Nn,jt.value=!0},ii=()=>{jt.value=!1,te.value=null},Vi=async Nn=>{try{await ah.deleteAdvert(Nn),await Vr(),ii()}catch(Wr){console.error("Error deleting neighbor:",Wr)}};return op(async()=>{await Vr()}),(Nn,Wr)=>(ci(),wi("div",Lst,[dt.value?(ci(),wi("div",Pst,Wr[1]||(Wr[1]=[ye("div",{class:"text-center"},[ye("div",{class:"animate-spin rounded-full h-12 w-12 border-b-2 border-primary mx-auto mb-4"}),ye("p",{class:"text-dark-text"},"Loading neighbor data...")],-1)]))):_t.value?(ci(),wi("div",Ist,[ye("div",zst,[Wr[3]||(Wr[3]=ye("svg",{class:"w-5 h-5 text-accent-red",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[ye("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"})],-1)),ye("div",null,[Wr[2]||(Wr[2]=ye("h3",{class:"text-accent-red font-medium"},"Error Loading Neighbors",-1)),ye("p",Ost,Fi(_t.value),1)])])])):(ci(),wi(_u,{key:2},[El(rst,{ref_key:"networkMapRef",ref:fn,adverts:Ar.value,"base-latitude":Ie.value,"base-longitude":Je.value},null,8,["adverts","base-latitude","base-longitude"]),(ci(!0),wi(_u,null,Mh(fr.value,([Bi,Ri])=>(ci(),wi("div",{key:Bi,class:"space-y-6"},[El(Cst,{"contact-type":Ri,"contact-type-key":Bi,adverts:Y.value[Bi],color:R[parseInt(Bi)],"base-latitude":Ie.value,"base-longitude":Je.value,"is-compact-view":zt.value,"is-first-table":Bi===fr.value[0]?.[0],"show-view-toggle":fr.value.length>0,onHighlightNode:Dt,onUnhighlightNode:cn,onMenuPing:ti,onMenuDelete:Dn,onToggleView:Wr[0]||(Wr[0]=Li=>zt.value=!zt.value)},null,8,["contact-type","contact-type-key","adverts","color","base-latitude","base-longitude","is-compact-view","is-first-table","show-view-toggle"])]))),128)),fr.value.length===0?(ci(),wi("div",Dst,[Wr[4]||(Wr[4]=Ff('No Neighbors FoundNo mesh neighbors have been discovered in your area yet.',3)),ye("button",{onClick:Vr,class:"mt-4 px-4 py-2 bg-primary/20 text-primary border border-primary/30 rounded-lg hover:bg-primary/30 transition-colors"}," Refresh ")])):Uo("",!0)],64)),El(Vot,{show:jt.value,neighbor:ce.value,onClose:ii,onDelete:Vi},null,8,["show","neighbor"])]))}});/*! * @kurkle/color v0.3.4 * https://github.com/kurkle/color#readme * (c) 2024 Jukka Kurkela * Released under the MIT License - */function lw(d){return d+.5|0}const h1=(d,s,E)=>Math.max(Math.min(d,E),s);function v2(d){return h1(lw(d*2.55),0,255)}function g1(d){return h1(lw(d*255),0,255)}function Qg(d){return h1(lw(d/2.55)/100,0,1)}function iP(d){return h1(lw(d*100),0,100)}const am={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},MA=[..."0123456789ABCDEF"],gst=d=>MA[d&15],vst=d=>MA[(d&240)>>4]+MA[d&15],O5=d=>(d&240)>>4===(d&15),yst=d=>O5(d.r)&&O5(d.g)&&O5(d.b)&&O5(d.a);function xst(d){var s=d.length,E;return d[0]==="#"&&(s===4||s===5?E={r:255&am[d[1]]*17,g:255&am[d[2]]*17,b:255&am[d[3]]*17,a:s===5?am[d[4]]*17:255}:(s===7||s===9)&&(E={r:am[d[1]]<<4|am[d[2]],g:am[d[3]]<<4|am[d[4]],b:am[d[5]]<<4|am[d[6]],a:s===9?am[d[7]]<<4|am[d[8]]:255})),E}const _st=(d,s)=>d<255?s(d):"";function bst(d){var s=yst(d)?gst:vst;return d?"#"+s(d.r)+s(d.g)+s(d.b)+_st(d.a,s):void 0}const wst=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function tD(d,s,E){const B=s*Math.min(E,1-E),K=(pt,_t=(pt+d/30)%12)=>E-B*Math.max(Math.min(_t-3,9-_t,1),-1);return[K(0),K(8),K(4)]}function kst(d,s,E){const B=(K,pt=(K+d/60)%6)=>E-E*s*Math.max(Math.min(pt,4-pt,1),0);return[B(5),B(3),B(1)]}function Tst(d,s,E){const B=tD(d,1,.5);let K;for(s+E>1&&(K=1/(s+E),s*=K,E*=K),K=0;K<3;K++)B[K]*=1-s-E,B[K]+=s;return B}function Ast(d,s,E,B,K){return d===K?(s-E)/B+(s.5?he/(2-pt-_t):he/(pt+_t),jt=Ast(E,B,K,he,pt),jt=jt*60+.5),[jt|0,te||0,Ot]}function mM(d,s,E,B){return(Array.isArray(s)?d(s[0],s[1],s[2]):d(s,E,B)).map(g1)}function gM(d,s,E){return mM(tD,d,s,E)}function Mst(d,s,E){return mM(Tst,d,s,E)}function Sst(d,s,E){return mM(kst,d,s,E)}function eD(d){return(d%360+360)%360}function Est(d){const s=wst.exec(d);let E=255,B;if(!s)return;s[5]!==B&&(E=s[6]?v2(+s[5]):g1(+s[5]));const K=eD(+s[2]),pt=+s[3]/100,_t=+s[4]/100;return s[1]==="hwb"?B=Mst(K,pt,_t):s[1]==="hsv"?B=Sst(K,pt,_t):B=gM(K,pt,_t),{r:B[0],g:B[1],b:B[2],a:E}}function Cst(d,s){var E=pM(d);E[0]=eD(E[0]+s),E=gM(E),d.r=E[0],d.g=E[1],d.b=E[2]}function Lst(d){if(!d)return;const s=pM(d),E=s[0],B=iP(s[1]),K=iP(s[2]);return d.a<255?`hsla(${E}, ${B}%, ${K}%, ${Qg(d.a)})`:`hsl(${E}, ${B}%, ${K}%)`}const aP={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},oP={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Pst(){const d={},s=Object.keys(oP),E=Object.keys(aP);let B,K,pt,_t,Ot;for(B=0;B>16&255,pt>>8&255,pt&255]}return d}let D5;function Ist(d){D5||(D5=Pst(),D5.transparent=[0,0,0,0]);const s=D5[d.toLowerCase()];return s&&{r:s[0],g:s[1],b:s[2],a:s.length===4?s[3]:255}}const zst=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Ost(d){const s=zst.exec(d);let E=255,B,K,pt;if(s){if(s[7]!==B){const _t=+s[7];E=s[8]?v2(_t):h1(_t*255,0,255)}return B=+s[1],K=+s[3],pt=+s[5],B=255&(s[2]?v2(B):h1(B,0,255)),K=255&(s[4]?v2(K):h1(K,0,255)),pt=255&(s[6]?v2(pt):h1(pt,0,255)),{r:B,g:K,b:pt,a:E}}}function Dst(d){return d&&(d.a<255?`rgba(${d.r}, ${d.g}, ${d.b}, ${Qg(d.a)})`:`rgb(${d.r}, ${d.g}, ${d.b})`)}const j8=d=>d<=.0031308?d*12.92:Math.pow(d,1/2.4)*1.055-.055,e_=d=>d<=.04045?d/12.92:Math.pow((d+.055)/1.055,2.4);function Fst(d,s,E){const B=e_(Qg(d.r)),K=e_(Qg(d.g)),pt=e_(Qg(d.b));return{r:g1(j8(B+E*(e_(Qg(s.r))-B))),g:g1(j8(K+E*(e_(Qg(s.g))-K))),b:g1(j8(pt+E*(e_(Qg(s.b))-pt))),a:d.a+E*(s.a-d.a)}}function F5(d,s,E){if(d){let B=pM(d);B[s]=Math.max(0,Math.min(B[s]+B[s]*E,s===0?360:1)),B=gM(B),d.r=B[0],d.g=B[1],d.b=B[2]}}function rD(d,s){return d&&Object.assign(s||{},d)}function sP(d){var s={r:0,g:0,b:0,a:255};return Array.isArray(d)?d.length>=3&&(s={r:d[0],g:d[1],b:d[2],a:255},d.length>3&&(s.a=g1(d[3]))):(s=rD(d,{r:0,g:0,b:0,a:1}),s.a=g1(s.a)),s}function Rst(d){return d.charAt(0)==="r"?Ost(d):Est(d)}class q2{constructor(s){if(s instanceof q2)return s;const E=typeof s;let B;E==="object"?B=sP(s):E==="string"&&(B=xst(s)||Ist(s)||Rst(s)),this._rgb=B,this._valid=!!B}get valid(){return this._valid}get rgb(){var s=rD(this._rgb);return s&&(s.a=Qg(s.a)),s}set rgb(s){this._rgb=sP(s)}rgbString(){return this._valid?Dst(this._rgb):void 0}hexString(){return this._valid?bst(this._rgb):void 0}hslString(){return this._valid?Lst(this._rgb):void 0}mix(s,E){if(s){const B=this.rgb,K=s.rgb;let pt;const _t=E===pt?.5:E,Ot=2*_t-1,jt=B.a-K.a,te=((Ot*jt===-1?Ot:(Ot+jt)/(1+Ot*jt))+1)/2;pt=1-te,B.r=255&te*B.r+pt*K.r+.5,B.g=255&te*B.g+pt*K.g+.5,B.b=255&te*B.b+pt*K.b+.5,B.a=_t*B.a+(1-_t)*K.a,this.rgb=B}return this}interpolate(s,E){return s&&(this._rgb=Fst(this._rgb,s._rgb,E)),this}clone(){return new q2(this.rgb)}alpha(s){return this._rgb.a=g1(s),this}clearer(s){const E=this._rgb;return E.a*=1-s,this}greyscale(){const s=this._rgb,E=lw(s.r*.3+s.g*.59+s.b*.11);return s.r=s.g=s.b=E,this}opaquer(s){const E=this._rgb;return E.a*=1+s,this}negate(){const s=this._rgb;return s.r=255-s.r,s.g=255-s.g,s.b=255-s.b,this}lighten(s){return F5(this._rgb,2,s),this}darken(s){return F5(this._rgb,2,-s),this}saturate(s){return F5(this._rgb,1,s),this}desaturate(s){return F5(this._rgb,1,-s),this}rotate(s){return Cst(this._rgb,s),this}}/*! + */function lw(d){return d+.5|0}const f1=(d,s,E)=>Math.max(Math.min(d,E),s);function y2(d){return f1(lw(d*2.55),0,255)}function y1(d){return f1(lw(d*255),0,255)}function tv(d){return f1(lw(d/2.55)/100,0,1)}function oP(d){return f1(lw(d*100),0,100)}const om={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},CA=[..."0123456789ABCDEF"],Bst=d=>CA[d&15],Rst=d=>CA[(d&240)>>4]+CA[d&15],D5=d=>(d&240)>>4===(d&15),Nst=d=>D5(d.r)&&D5(d.g)&&D5(d.b)&&D5(d.a);function jst(d){var s=d.length,E;return d[0]==="#"&&(s===4||s===5?E={r:255&om[d[1]]*17,g:255&om[d[2]]*17,b:255&om[d[3]]*17,a:s===5?om[d[4]]*17:255}:(s===7||s===9)&&(E={r:om[d[1]]<<4|om[d[2]],g:om[d[3]]<<4|om[d[4]],b:om[d[5]]<<4|om[d[6]],a:s===9?om[d[7]]<<4|om[d[8]]:255})),E}const Ust=(d,s)=>d<255?s(d):"";function Vst(d){var s=Nst(d)?Bst:Rst;return d?"#"+s(d.r)+s(d.g)+s(d.b)+Ust(d.a,s):void 0}const Hst=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function iD(d,s,E){const R=s*Math.min(E,1-E),Y=(dt,_t=(dt+d/30)%12)=>E-R*Math.max(Math.min(_t-3,9-_t,1),-1);return[Y(0),Y(8),Y(4)]}function Wst(d,s,E){const R=(Y,dt=(Y+d/60)%6)=>E-E*s*Math.max(Math.min(dt,4-dt,1),0);return[R(5),R(3),R(1)]}function qst(d,s,E){const R=iD(d,1,.5);let Y;for(s+E>1&&(Y=1/(s+E),s*=Y,E*=Y),Y=0;Y<3;Y++)R[Y]*=1-s-E,R[Y]+=s;return R}function $st(d,s,E,R,Y){return d===Y?(s-E)/R+(s.5?ce/(2-dt-_t):ce/(dt+_t),jt=$st(E,R,Y,ce,dt),jt=jt*60+.5),[jt|0,te||0,zt]}function vM(d,s,E,R){return(Array.isArray(s)?d(s[0],s[1],s[2]):d(s,E,R)).map(y1)}function yM(d,s,E){return vM(iD,d,s,E)}function Zst(d,s,E){return vM(qst,d,s,E)}function Gst(d,s,E){return vM(Wst,d,s,E)}function aD(d){return(d%360+360)%360}function Yst(d){const s=Hst.exec(d);let E=255,R;if(!s)return;s[5]!==R&&(E=s[6]?y2(+s[5]):y1(+s[5]));const Y=aD(+s[2]),dt=+s[3]/100,_t=+s[4]/100;return s[1]==="hwb"?R=Zst(Y,dt,_t):s[1]==="hsv"?R=Gst(Y,dt,_t):R=yM(Y,dt,_t),{r:R[0],g:R[1],b:R[2],a:E}}function Kst(d,s){var E=gM(d);E[0]=aD(E[0]+s),E=yM(E),d.r=E[0],d.g=E[1],d.b=E[2]}function Xst(d){if(!d)return;const s=gM(d),E=s[0],R=oP(s[1]),Y=oP(s[2]);return d.a<255?`hsla(${E}, ${R}%, ${Y}%, ${tv(d.a)})`:`hsl(${E}, ${R}%, ${Y}%)`}const sP={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},lP={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Jst(){const d={},s=Object.keys(lP),E=Object.keys(sP);let R,Y,dt,_t,zt;for(R=0;R>16&255,dt>>8&255,dt&255]}return d}let F5;function Qst(d){F5||(F5=Jst(),F5.transparent=[0,0,0,0]);const s=F5[d.toLowerCase()];return s&&{r:s[0],g:s[1],b:s[2],a:s.length===4?s[3]:255}}const tlt=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function elt(d){const s=tlt.exec(d);let E=255,R,Y,dt;if(s){if(s[7]!==R){const _t=+s[7];E=s[8]?y2(_t):f1(_t*255,0,255)}return R=+s[1],Y=+s[3],dt=+s[5],R=255&(s[2]?y2(R):f1(R,0,255)),Y=255&(s[4]?y2(Y):f1(Y,0,255)),dt=255&(s[6]?y2(dt):f1(dt,0,255)),{r:R,g:Y,b:dt,a:E}}}function rlt(d){return d&&(d.a<255?`rgba(${d.r}, ${d.g}, ${d.b}, ${tv(d.a)})`:`rgb(${d.r}, ${d.g}, ${d.b})`)}const U8=d=>d<=.0031308?d*12.92:Math.pow(d,1/2.4)*1.055-.055,n_=d=>d<=.04045?d/12.92:Math.pow((d+.055)/1.055,2.4);function nlt(d,s,E){const R=n_(tv(d.r)),Y=n_(tv(d.g)),dt=n_(tv(d.b));return{r:y1(U8(R+E*(n_(tv(s.r))-R))),g:y1(U8(Y+E*(n_(tv(s.g))-Y))),b:y1(U8(dt+E*(n_(tv(s.b))-dt))),a:d.a+E*(s.a-d.a)}}function B5(d,s,E){if(d){let R=gM(d);R[s]=Math.max(0,Math.min(R[s]+R[s]*E,s===0?360:1)),R=yM(R),d.r=R[0],d.g=R[1],d.b=R[2]}}function oD(d,s){return d&&Object.assign(s||{},d)}function uP(d){var s={r:0,g:0,b:0,a:255};return Array.isArray(d)?d.length>=3&&(s={r:d[0],g:d[1],b:d[2],a:255},d.length>3&&(s.a=y1(d[3]))):(s=oD(d,{r:0,g:0,b:0,a:1}),s.a=y1(s.a)),s}function ilt(d){return d.charAt(0)==="r"?elt(d):Yst(d)}class q2{constructor(s){if(s instanceof q2)return s;const E=typeof s;let R;E==="object"?R=uP(s):E==="string"&&(R=jst(s)||Qst(s)||ilt(s)),this._rgb=R,this._valid=!!R}get valid(){return this._valid}get rgb(){var s=oD(this._rgb);return s&&(s.a=tv(s.a)),s}set rgb(s){this._rgb=uP(s)}rgbString(){return this._valid?rlt(this._rgb):void 0}hexString(){return this._valid?Vst(this._rgb):void 0}hslString(){return this._valid?Xst(this._rgb):void 0}mix(s,E){if(s){const R=this.rgb,Y=s.rgb;let dt;const _t=E===dt?.5:E,zt=2*_t-1,jt=R.a-Y.a,te=((zt*jt===-1?zt:(zt+jt)/(1+zt*jt))+1)/2;dt=1-te,R.r=255&te*R.r+dt*Y.r+.5,R.g=255&te*R.g+dt*Y.g+.5,R.b=255&te*R.b+dt*Y.b+.5,R.a=_t*R.a+(1-_t)*Y.a,this.rgb=R}return this}interpolate(s,E){return s&&(this._rgb=nlt(this._rgb,s._rgb,E)),this}clone(){return new q2(this.rgb)}alpha(s){return this._rgb.a=y1(s),this}clearer(s){const E=this._rgb;return E.a*=1-s,this}greyscale(){const s=this._rgb,E=lw(s.r*.3+s.g*.59+s.b*.11);return s.r=s.g=s.b=E,this}opaquer(s){const E=this._rgb;return E.a*=1+s,this}negate(){const s=this._rgb;return s.r=255-s.r,s.g=255-s.g,s.b=255-s.b,this}lighten(s){return B5(this._rgb,2,s),this}darken(s){return B5(this._rgb,2,-s),this}saturate(s){return B5(this._rgb,1,s),this}desaturate(s){return B5(this._rgb,1,-s),this}rotate(s){return Kst(this._rgb,s),this}}/*! * Chart.js v4.5.1 * https://www.chartjs.org * (c) 2025 Chart.js Contributors * Released under the MIT License - */function Yg(){}const Bst=(()=>{let d=0;return()=>d++})();function Bh(d){return d==null}function Yd(d){if(Array.isArray&&Array.isArray(d))return!0;const s=Object.prototype.toString.call(d);return s.slice(0,7)==="[object"&&s.slice(-6)==="Array]"}function Sc(d){return d!==null&&Object.prototype.toString.call(d)==="[object Object]"}function t0(d){return(typeof d=="number"||d instanceof Number)&&isFinite(+d)}function ag(d,s){return t0(d)?d:s}function cc(d,s){return typeof d>"u"?s:d}const Nst=(d,s)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100:+d/s,nD=(d,s)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100*s:+d;function Df(d,s,E){if(d&&typeof d.call=="function")return d.apply(E,s)}function Xh(d,s,E,B){let K,pt,_t;if(Yd(d))for(pt=d.length,K=0;Kd,x:d=>d.x,y:d=>d.y};function Vst(d){const s=d.split("."),E=[];let B="";for(const K of s)B+=K,B.endsWith("\\")?B=B.slice(0,-1)+".":(E.push(B),B="");return E}function Hst(d){const s=Vst(d);return E=>{for(const B of s){if(B==="")break;E=E&&E[B]}return E}}function Cy(d,s){return(lP[s]||(lP[s]=Hst(s)))(d)}function vM(d){return d.charAt(0).toUpperCase()+d.slice(1)}const Z2=d=>typeof d<"u",x1=d=>typeof d=="function",uP=(d,s)=>{if(d.size!==s.size)return!1;for(const E of d)if(!s.has(E))return!1;return!0};function Wst(d){return d.type==="mouseup"||d.type==="click"||d.type==="contextmenu"}const Qh=Math.PI,od=2*Qh,qst=od+Qh,_4=Number.POSITIVE_INFINITY,$st=Qh/180,ip=Qh/2,cy=Qh/4,cP=Qh*2/3,aD=Math.log10,pg=Math.sign;function P2(d,s,E){return Math.abs(d-s)K-pt).pop(),s}function Gst(d){return typeof d=="symbol"||typeof d=="object"&&d!==null&&!(Symbol.toPrimitive in d||"toString"in d||"valueOf"in d)}function G2(d){return!Gst(d)&&!isNaN(parseFloat(d))&&isFinite(d)}function Yst(d,s){const E=Math.round(d);return E-s<=d&&E+s>=d}function Kst(d,s,E){let B,K,pt;for(B=0,K=d.length;Bjt&&te=Math.min(s,E)-B&&d<=Math.max(s,E)+B}function yM(d,s,E){E=E||(_t=>d[_t]1;)pt=K+B>>1,E(pt)?K=pt:B=pt;return{lo:K,hi:B}}const by=(d,s,E,B)=>yM(d,E,B?K=>{const pt=d[K][s];return ptd[K][s]yM(d,E,B=>d[B][s]>=E);function elt(d,s,E){let B=0,K=d.length;for(;BB&&d[K-1]>E;)K--;return B>0||K{const B="_onData"+vM(E),K=d[E];Object.defineProperty(d,E,{configurable:!0,enumerable:!1,value(...pt){const _t=K.apply(this,pt);return d._chartjs.listeners.forEach(Ot=>{typeof Ot[B]=="function"&&Ot[B](...pt)}),_t}})})}function dP(d,s){const E=d._chartjs;if(!E)return;const B=E.listeners,K=B.indexOf(s);K!==-1&&B.splice(K,1),!(B.length>0)&&(sD.forEach(pt=>{delete d[pt]}),delete d._chartjs)}function lD(d){const s=new Set(d);return s.size===d.length?d:Array.from(s)}const uD=function(){return typeof window>"u"?function(d){return d()}:window.requestAnimationFrame}();function cD(d,s){let E=[],B=!1;return function(...K){E=K,B||(B=!0,uD.call(window,()=>{B=!1,d.apply(s,E)}))}}function nlt(d,s){let E;return function(...B){return s?(clearTimeout(E),E=setTimeout(d,s,B)):d.apply(this,B),s}}const xM=d=>d==="start"?"left":d==="end"?"right":"center",qp=(d,s,E)=>d==="start"?s:d==="end"?E:(s+E)/2,ilt=(d,s,E,B)=>d===(B?"left":"right")?E:d==="center"?(s+E)/2:s;function alt(d,s,E){const B=s.length;let K=0,pt=B;if(d._sorted){const{iScale:_t,vScale:Ot,_parsed:jt}=d,te=d.dataset&&d.dataset.options?d.dataset.options.spanGaps:null,he=_t.axis,{min:De,max:er,minDefined:pr,maxDefined:Mr}=_t.getUserBounds();if(pr){if(K=Math.min(by(jt,he,De).lo,E?B:by(s,he,_t.getPixelForValue(De)).lo),te){const Tr=jt.slice(0,K+1).reverse().findIndex(Vr=>!Bh(Vr[Ot.axis]));K-=Math.max(0,Tr)}K=Jp(K,0,B-1)}if(Mr){let Tr=Math.max(by(jt,_t.axis,er,!0).hi+1,E?0:by(s,he,_t.getPixelForValue(er),!0).hi+1);if(te){const Vr=jt.slice(Tr-1).findIndex(mn=>!Bh(mn[Ot.axis]));Tr+=Math.max(0,Vr)}pt=Jp(Tr,K,B)-K}else pt=B-K}return{start:K,count:pt}}function olt(d){const{xScale:s,yScale:E,_scaleRanges:B}=d,K={xmin:s.min,xmax:s.max,ymin:E.min,ymax:E.max};if(!B)return d._scaleRanges=K,!0;const pt=B.xmin!==s.min||B.xmax!==s.max||B.ymin!==E.min||B.ymax!==E.max;return Object.assign(B,K),pt}const R5=d=>d===0||d===1,pP=(d,s,E)=>-(Math.pow(2,10*(d-=1))*Math.sin((d-s)*od/E)),mP=(d,s,E)=>Math.pow(2,-10*d)*Math.sin((d-s)*od/E)+1,I2={linear:d=>d,easeInQuad:d=>d*d,easeOutQuad:d=>-d*(d-2),easeInOutQuad:d=>(d/=.5)<1?.5*d*d:-.5*(--d*(d-2)-1),easeInCubic:d=>d*d*d,easeOutCubic:d=>(d-=1)*d*d+1,easeInOutCubic:d=>(d/=.5)<1?.5*d*d*d:.5*((d-=2)*d*d+2),easeInQuart:d=>d*d*d*d,easeOutQuart:d=>-((d-=1)*d*d*d-1),easeInOutQuart:d=>(d/=.5)<1?.5*d*d*d*d:-.5*((d-=2)*d*d*d-2),easeInQuint:d=>d*d*d*d*d,easeOutQuint:d=>(d-=1)*d*d*d*d+1,easeInOutQuint:d=>(d/=.5)<1?.5*d*d*d*d*d:.5*((d-=2)*d*d*d*d+2),easeInSine:d=>-Math.cos(d*ip)+1,easeOutSine:d=>Math.sin(d*ip),easeInOutSine:d=>-.5*(Math.cos(Qh*d)-1),easeInExpo:d=>d===0?0:Math.pow(2,10*(d-1)),easeOutExpo:d=>d===1?1:-Math.pow(2,-10*d)+1,easeInOutExpo:d=>R5(d)?d:d<.5?.5*Math.pow(2,10*(d*2-1)):.5*(-Math.pow(2,-10*(d*2-1))+2),easeInCirc:d=>d>=1?d:-(Math.sqrt(1-d*d)-1),easeOutCirc:d=>Math.sqrt(1-(d-=1)*d),easeInOutCirc:d=>(d/=.5)<1?-.5*(Math.sqrt(1-d*d)-1):.5*(Math.sqrt(1-(d-=2)*d)+1),easeInElastic:d=>R5(d)?d:pP(d,.075,.3),easeOutElastic:d=>R5(d)?d:mP(d,.075,.3),easeInOutElastic(d){return R5(d)?d:d<.5?.5*pP(d*2,.1125,.45):.5+.5*mP(d*2-1,.1125,.45)},easeInBack(d){return d*d*((1.70158+1)*d-1.70158)},easeOutBack(d){return(d-=1)*d*((1.70158+1)*d+1.70158)+1},easeInOutBack(d){let s=1.70158;return(d/=.5)<1?.5*(d*d*(((s*=1.525)+1)*d-s)):.5*((d-=2)*d*(((s*=1.525)+1)*d+s)+2)},easeInBounce:d=>1-I2.easeOutBounce(1-d),easeOutBounce(d){return d<1/2.75?7.5625*d*d:d<2/2.75?7.5625*(d-=1.5/2.75)*d+.75:d<2.5/2.75?7.5625*(d-=2.25/2.75)*d+.9375:7.5625*(d-=2.625/2.75)*d+.984375},easeInOutBounce:d=>d<.5?I2.easeInBounce(d*2)*.5:I2.easeOutBounce(d*2-1)*.5+.5};function _M(d){if(d&&typeof d=="object"){const s=d.toString();return s==="[object CanvasPattern]"||s==="[object CanvasGradient]"}return!1}function gP(d){return _M(d)?d:new q2(d)}function U8(d){return _M(d)?d:new q2(d).saturate(.5).darken(.1).hexString()}const slt=["x","y","borderWidth","radius","tension"],llt=["color","borderColor","backgroundColor"];function ult(d){d.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),d.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:s=>s!=="onProgress"&&s!=="onComplete"&&s!=="fn"}),d.set("animations",{colors:{type:"color",properties:llt},numbers:{type:"number",properties:slt}}),d.describe("animations",{_fallback:"animation"}),d.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:s=>s|0}}}})}function clt(d){d.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const vP=new Map;function hlt(d,s){s=s||{};const E=d+JSON.stringify(s);let B=vP.get(E);return B||(B=new Intl.NumberFormat(d,s),vP.set(E,B)),B}function bM(d,s,E){return hlt(s,E).format(d)}const flt={values(d){return Yd(d)?d:""+d},numeric(d,s,E){if(d===0)return"0";const B=this.chart.options.locale;let K,pt=d;if(E.length>1){const te=Math.max(Math.abs(E[0].value),Math.abs(E[E.length-1].value));(te<1e-4||te>1e15)&&(K="scientific"),pt=dlt(d,E)}const _t=aD(Math.abs(pt)),Ot=isNaN(_t)?1:Math.max(Math.min(-1*Math.floor(_t),20),0),jt={notation:K,minimumFractionDigits:Ot,maximumFractionDigits:Ot};return Object.assign(jt,this.options.ticks.format),bM(d,B,jt)}};function dlt(d,s){let E=s.length>3?s[2].value-s[1].value:s[1].value-s[0].value;return Math.abs(E)>=1&&d!==Math.floor(d)&&(E=d-Math.floor(d)),E}var hD={formatters:flt};function plt(d){d.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(s,E)=>E.lineWidth,tickColor:(s,E)=>E.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:hD.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),d.route("scale.ticks","color","","color"),d.route("scale.grid","color","","borderColor"),d.route("scale.border","color","","borderColor"),d.route("scale.title","color","","color"),d.describe("scale",{_fallback:!1,_scriptable:s=>!s.startsWith("before")&&!s.startsWith("after")&&s!=="callback"&&s!=="parser",_indexable:s=>s!=="borderDash"&&s!=="tickBorderDash"&&s!=="dash"}),d.describe("scales",{_fallback:"scale"}),d.describe("scale.ticks",{_scriptable:s=>s!=="backdropPadding"&&s!=="callback",_indexable:s=>s!=="backdropPadding"})}const Ly=Object.create(null),EA=Object.create(null);function z2(d,s){if(!s)return d;const E=s.split(".");for(let B=0,K=E.length;BB.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(B,K)=>U8(K.backgroundColor),this.hoverBorderColor=(B,K)=>U8(K.borderColor),this.hoverColor=(B,K)=>U8(K.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(s),this.apply(E)}set(s,E){return V8(this,s,E)}get(s){return z2(this,s)}describe(s,E){return V8(EA,s,E)}override(s,E){return V8(Ly,s,E)}route(s,E,B,K){const pt=z2(this,s),_t=z2(this,B),Ot="_"+E;Object.defineProperties(pt,{[Ot]:{value:pt[E],writable:!0},[E]:{enumerable:!0,get(){const jt=this[Ot],te=_t[K];return Sc(jt)?Object.assign({},te,jt):cc(jt,te)},set(jt){this[Ot]=jt}}})}apply(s){s.forEach(E=>E(this))}}var Rd=new mlt({_scriptable:d=>!d.startsWith("on"),_indexable:d=>d!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[ult,clt,plt]);function glt(d){return!d||Bh(d.size)||Bh(d.family)?null:(d.style?d.style+" ":"")+(d.weight?d.weight+" ":"")+d.size+"px "+d.family}function yP(d,s,E,B,K){let pt=s[K];return pt||(pt=s[K]=d.measureText(K).width,E.push(K)),pt>B&&(B=pt),B}function hy(d,s,E){const B=d.currentDevicePixelRatio,K=E!==0?Math.max(E/2,.5):0;return Math.round((s-K)*B)/B+K}function xP(d,s){!s&&!d||(s=s||d.getContext("2d"),s.save(),s.resetTransform(),s.clearRect(0,0,d.width,d.height),s.restore())}function CA(d,s,E,B){fD(d,s,E,B,null)}function fD(d,s,E,B,K){let pt,_t,Ot,jt,te,he,De,er;const pr=s.pointStyle,Mr=s.rotation,Tr=s.radius;let Vr=(Mr||0)*$st;if(pr&&typeof pr=="object"&&(pt=pr.toString(),pt==="[object HTMLImageElement]"||pt==="[object HTMLCanvasElement]")){d.save(),d.translate(E,B),d.rotate(Vr),d.drawImage(pr,-pr.width/2,-pr.height/2,pr.width,pr.height),d.restore();return}if(!(isNaN(Tr)||Tr<=0)){switch(d.beginPath(),pr){default:K?d.ellipse(E,B,K/2,Tr,0,0,od):d.arc(E,B,Tr,0,od),d.closePath();break;case"triangle":he=K?K/2:Tr,d.moveTo(E+Math.sin(Vr)*he,B-Math.cos(Vr)*Tr),Vr+=cP,d.lineTo(E+Math.sin(Vr)*he,B-Math.cos(Vr)*Tr),Vr+=cP,d.lineTo(E+Math.sin(Vr)*he,B-Math.cos(Vr)*Tr),d.closePath();break;case"rectRounded":te=Tr*.516,jt=Tr-te,_t=Math.cos(Vr+cy)*jt,De=Math.cos(Vr+cy)*(K?K/2-te:jt),Ot=Math.sin(Vr+cy)*jt,er=Math.sin(Vr+cy)*(K?K/2-te:jt),d.arc(E-De,B-Ot,te,Vr-Qh,Vr-ip),d.arc(E+er,B-_t,te,Vr-ip,Vr),d.arc(E+De,B+Ot,te,Vr,Vr+ip),d.arc(E-er,B+_t,te,Vr+ip,Vr+Qh),d.closePath();break;case"rect":if(!Mr){jt=Math.SQRT1_2*Tr,he=K?K/2:jt,d.rect(E-he,B-jt,2*he,2*jt);break}Vr+=cy;case"rectRot":De=Math.cos(Vr)*(K?K/2:Tr),_t=Math.cos(Vr)*Tr,Ot=Math.sin(Vr)*Tr,er=Math.sin(Vr)*(K?K/2:Tr),d.moveTo(E-De,B-Ot),d.lineTo(E+er,B-_t),d.lineTo(E+De,B+Ot),d.lineTo(E-er,B+_t),d.closePath();break;case"crossRot":Vr+=cy;case"cross":De=Math.cos(Vr)*(K?K/2:Tr),_t=Math.cos(Vr)*Tr,Ot=Math.sin(Vr)*Tr,er=Math.sin(Vr)*(K?K/2:Tr),d.moveTo(E-De,B-Ot),d.lineTo(E+De,B+Ot),d.moveTo(E+er,B-_t),d.lineTo(E-er,B+_t);break;case"star":De=Math.cos(Vr)*(K?K/2:Tr),_t=Math.cos(Vr)*Tr,Ot=Math.sin(Vr)*Tr,er=Math.sin(Vr)*(K?K/2:Tr),d.moveTo(E-De,B-Ot),d.lineTo(E+De,B+Ot),d.moveTo(E+er,B-_t),d.lineTo(E-er,B+_t),Vr+=cy,De=Math.cos(Vr)*(K?K/2:Tr),_t=Math.cos(Vr)*Tr,Ot=Math.sin(Vr)*Tr,er=Math.sin(Vr)*(K?K/2:Tr),d.moveTo(E-De,B-Ot),d.lineTo(E+De,B+Ot),d.moveTo(E+er,B-_t),d.lineTo(E-er,B+_t);break;case"line":_t=K?K/2:Math.cos(Vr)*Tr,Ot=Math.sin(Vr)*Tr,d.moveTo(E-_t,B-Ot),d.lineTo(E+_t,B+Ot);break;case"dash":d.moveTo(E,B),d.lineTo(E+Math.cos(Vr)*(K?K/2:Tr),B+Math.sin(Vr)*Tr);break;case!1:d.closePath();break}d.fill(),s.borderWidth>0&&d.stroke()}}function K2(d,s,E){return E=E||.5,!s||d&&d.x>s.left-E&&d.xs.top-E&&d.y0&&pt.strokeColor!=="";let jt,te;for(d.save(),d.font=K.string,xlt(d,pt),jt=0;jt<_t.length;++jt)te=_t[jt],pt.backdrop&&blt(d,pt.backdrop),Ot&&(pt.strokeColor&&(d.strokeStyle=pt.strokeColor),Bh(pt.strokeWidth)||(d.lineWidth=pt.strokeWidth),d.strokeText(te,E,B,pt.maxWidth)),d.fillText(te,E,B,pt.maxWidth),_lt(d,E,B,te,pt),B+=Number(K.lineHeight);d.restore()}function b4(d,s){const{x:E,y:B,w:K,h:pt,radius:_t}=s;d.arc(E+_t.topLeft,B+_t.topLeft,_t.topLeft,1.5*Qh,Qh,!0),d.lineTo(E,B+pt-_t.bottomLeft),d.arc(E+_t.bottomLeft,B+pt-_t.bottomLeft,_t.bottomLeft,Qh,ip,!0),d.lineTo(E+K-_t.bottomRight,B+pt),d.arc(E+K-_t.bottomRight,B+pt-_t.bottomRight,_t.bottomRight,ip,0,!0),d.lineTo(E+K,B+_t.topRight),d.arc(E+K-_t.topRight,B+_t.topRight,_t.topRight,0,-ip,!0),d.lineTo(E+_t.topLeft,B)}const wlt=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,klt=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Tlt(d,s){const E=(""+d).match(wlt);if(!E||E[1]==="normal")return s*1.2;switch(d=+E[2],E[3]){case"px":return d;case"%":d/=100;break}return s*d}const Alt=d=>+d||0;function wM(d,s){const E={},B=Sc(s),K=B?Object.keys(s):s,pt=Sc(d)?B?_t=>cc(d[_t],d[s[_t]]):_t=>d[_t]:()=>d;for(const _t of K)E[_t]=Alt(pt(_t));return E}function dD(d){return wM(d,{top:"y",right:"x",bottom:"y",left:"x"})}function h_(d){return wM(d,["topLeft","topRight","bottomLeft","bottomRight"])}function fm(d){const s=dD(d);return s.width=s.left+s.right,s.height=s.top+s.bottom,s}function Qp(d,s){d=d||{},s=s||Rd.font;let E=cc(d.size,s.size);typeof E=="string"&&(E=parseInt(E,10));let B=cc(d.style,s.style);B&&!(""+B).match(klt)&&(console.warn('Invalid font style specified: "'+B+'"'),B=void 0);const K={family:cc(d.family,s.family),lineHeight:Tlt(cc(d.lineHeight,s.lineHeight),E),size:E,style:B,weight:cc(d.weight,s.weight),string:""};return K.string=glt(K),K}function B5(d,s,E,B){let K,pt,_t;for(K=0,pt=d.length;KE&&Ot===0?0:Ot+jt;return{min:_t(B,-Math.abs(pt)),max:_t(K,pt)}}function zy(d,s){return Object.assign(Object.create(d),s)}function kM(d,s=[""],E,B,K=()=>d[0]){const pt=E||d;typeof B>"u"&&(B=vD("_fallback",d));const _t={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:d,_rootScopes:pt,_fallback:B,_getTarget:K,override:Ot=>kM([Ot,...d],s,pt,B)};return new Proxy(_t,{deleteProperty(Ot,jt){return delete Ot[jt],delete Ot._keys,delete d[0][jt],!0},get(Ot,jt){return mD(Ot,jt,()=>Olt(jt,s,d,Ot))},getOwnPropertyDescriptor(Ot,jt){return Reflect.getOwnPropertyDescriptor(Ot._scopes[0],jt)},getPrototypeOf(){return Reflect.getPrototypeOf(d[0])},has(Ot,jt){return bP(Ot).includes(jt)},ownKeys(Ot){return bP(Ot)},set(Ot,jt,te){const he=Ot._storage||(Ot._storage=K());return Ot[jt]=he[jt]=te,delete Ot._keys,!0}})}function x_(d,s,E,B){const K={_cacheable:!1,_proxy:d,_context:s,_subProxy:E,_stack:new Set,_descriptors:pD(d,B),setContext:pt=>x_(d,pt,E,B),override:pt=>x_(d.override(pt),s,E,B)};return new Proxy(K,{deleteProperty(pt,_t){return delete pt[_t],delete d[_t],!0},get(pt,_t,Ot){return mD(pt,_t,()=>Elt(pt,_t,Ot))},getOwnPropertyDescriptor(pt,_t){return pt._descriptors.allKeys?Reflect.has(d,_t)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(d,_t)},getPrototypeOf(){return Reflect.getPrototypeOf(d)},has(pt,_t){return Reflect.has(d,_t)},ownKeys(){return Reflect.ownKeys(d)},set(pt,_t,Ot){return d[_t]=Ot,delete pt[_t],!0}})}function pD(d,s={scriptable:!0,indexable:!0}){const{_scriptable:E=s.scriptable,_indexable:B=s.indexable,_allKeys:K=s.allKeys}=d;return{allKeys:K,scriptable:E,indexable:B,isScriptable:x1(E)?E:()=>E,isIndexable:x1(B)?B:()=>B}}const Slt=(d,s)=>d?d+vM(s):s,TM=(d,s)=>Sc(s)&&d!=="adapters"&&(Object.getPrototypeOf(s)===null||s.constructor===Object);function mD(d,s,E){if(Object.prototype.hasOwnProperty.call(d,s)||s==="constructor")return d[s];const B=E();return d[s]=B,B}function Elt(d,s,E){const{_proxy:B,_context:K,_subProxy:pt,_descriptors:_t}=d;let Ot=B[s];return x1(Ot)&&_t.isScriptable(s)&&(Ot=Clt(s,Ot,d,E)),Yd(Ot)&&Ot.length&&(Ot=Llt(s,Ot,d,_t.isIndexable)),TM(s,Ot)&&(Ot=x_(Ot,K,pt&&pt[s],_t)),Ot}function Clt(d,s,E,B){const{_proxy:K,_context:pt,_subProxy:_t,_stack:Ot}=E;if(Ot.has(d))throw new Error("Recursion detected: "+Array.from(Ot).join("->")+"->"+d);Ot.add(d);let jt=s(pt,_t||B);return Ot.delete(d),TM(d,jt)&&(jt=AM(K._scopes,K,d,jt)),jt}function Llt(d,s,E,B){const{_proxy:K,_context:pt,_subProxy:_t,_descriptors:Ot}=E;if(typeof pt.index<"u"&&B(d))return s[pt.index%s.length];if(Sc(s[0])){const jt=s,te=K._scopes.filter(he=>he!==jt);s=[];for(const he of jt){const De=AM(te,K,d,he);s.push(x_(De,pt,_t&&_t[d],Ot))}}return s}function gD(d,s,E){return x1(d)?d(s,E):d}const Plt=(d,s)=>d===!0?s:typeof d=="string"?Cy(s,d):void 0;function Ilt(d,s,E,B,K){for(const pt of s){const _t=Plt(E,pt);if(_t){d.add(_t);const Ot=gD(_t._fallback,E,K);if(typeof Ot<"u"&&Ot!==E&&Ot!==B)return Ot}else if(_t===!1&&typeof B<"u"&&E!==B)return null}return!1}function AM(d,s,E,B){const K=s._rootScopes,pt=gD(s._fallback,E,B),_t=[...d,...K],Ot=new Set;Ot.add(B);let jt=_P(Ot,_t,E,pt||E,B);return jt===null||typeof pt<"u"&&pt!==E&&(jt=_P(Ot,_t,pt,jt,B),jt===null)?!1:kM(Array.from(Ot),[""],K,pt,()=>zlt(s,E,B))}function _P(d,s,E,B,K){for(;E;)E=Ilt(d,s,E,B,K);return E}function zlt(d,s,E){const B=d._getTarget();s in B||(B[s]={});const K=B[s];return Yd(K)&&Sc(E)?E:K||{}}function Olt(d,s,E,B){let K;for(const pt of s)if(K=vD(Slt(pt,d),E),typeof K<"u")return TM(d,K)?AM(E,B,d,K):K}function vD(d,s){for(const E of s){if(!E)continue;const B=E[d];if(typeof B<"u")return B}}function bP(d){let s=d._keys;return s||(s=d._keys=Dlt(d._scopes)),s}function Dlt(d){const s=new Set;for(const E of d)for(const B of Object.keys(E).filter(K=>!K.startsWith("_")))s.add(B);return Array.from(s)}const Flt=Number.EPSILON||1e-14,__=(d,s)=>sd==="x"?"y":"x";function Rlt(d,s,E,B){const K=d.skip?s:d,pt=s,_t=E.skip?s:E,Ot=SA(pt,K),jt=SA(_t,pt);let te=Ot/(Ot+jt),he=jt/(Ot+jt);te=isNaN(te)?0:te,he=isNaN(he)?0:he;const De=B*te,er=B*he;return{previous:{x:pt.x-De*(_t.x-K.x),y:pt.y-De*(_t.y-K.y)},next:{x:pt.x+er*(_t.x-K.x),y:pt.y+er*(_t.y-K.y)}}}function Blt(d,s,E){const B=d.length;let K,pt,_t,Ot,jt,te=__(d,0);for(let he=0;he!te.skip)),s.cubicInterpolationMode==="monotone")jlt(d,K);else{let te=B?d[d.length-1]:d[0];for(pt=0,_t=d.length;pt<_t;++pt)Ot=d[pt],jt=Rlt(te,Ot,d[Math.min(pt+1,_t-(B?0:1))%_t],s.tension),Ot.cp1x=jt.previous.x,Ot.cp1y=jt.previous.y,Ot.cp2x=jt.next.x,Ot.cp2y=jt.next.y,te=Ot}s.capBezierPoints&&Ult(d,E)}function MM(){return typeof window<"u"&&typeof document<"u"}function SM(d){let s=d.parentNode;return s&&s.toString()==="[object ShadowRoot]"&&(s=s.host),s}function w4(d,s,E){let B;return typeof d=="string"?(B=parseInt(d,10),d.indexOf("%")!==-1&&(B=B/100*s.parentNode[E])):B=d,B}const K4=d=>d.ownerDocument.defaultView.getComputedStyle(d,null);function Hlt(d,s){return K4(d).getPropertyValue(s)}const Wlt=["top","right","bottom","left"];function Ay(d,s,E){const B={};E=E?"-"+E:"";for(let K=0;K<4;K++){const pt=Wlt[K];B[pt]=parseFloat(d[s+"-"+pt+E])||0}return B.width=B.left+B.right,B.height=B.top+B.bottom,B}const qlt=(d,s,E)=>(d>0||s>0)&&(!E||!E.shadowRoot);function $lt(d,s){const E=d.touches,B=E&&E.length?E[0]:d,{offsetX:K,offsetY:pt}=B;let _t=!1,Ot,jt;if(qlt(K,pt,d.target))Ot=K,jt=pt;else{const te=s.getBoundingClientRect();Ot=B.clientX-te.left,jt=B.clientY-te.top,_t=!0}return{x:Ot,y:jt,box:_t}}function py(d,s){if("native"in d)return d;const{canvas:E,currentDevicePixelRatio:B}=s,K=K4(E),pt=K.boxSizing==="border-box",_t=Ay(K,"padding"),Ot=Ay(K,"border","width"),{x:jt,y:te,box:he}=$lt(d,E),De=_t.left+(he&&Ot.left),er=_t.top+(he&&Ot.top);let{width:pr,height:Mr}=s;return pt&&(pr-=_t.width+Ot.width,Mr-=_t.height+Ot.height),{x:Math.round((jt-De)/pr*E.width/B),y:Math.round((te-er)/Mr*E.height/B)}}function Zlt(d,s,E){let B,K;if(s===void 0||E===void 0){const pt=d&&SM(d);if(!pt)s=d.clientWidth,E=d.clientHeight;else{const _t=pt.getBoundingClientRect(),Ot=K4(pt),jt=Ay(Ot,"border","width"),te=Ay(Ot,"padding");s=_t.width-te.width-jt.width,E=_t.height-te.height-jt.height,B=w4(Ot.maxWidth,pt,"clientWidth"),K=w4(Ot.maxHeight,pt,"clientHeight")}}return{width:s,height:E,maxWidth:B||_4,maxHeight:K||_4}}const f1=d=>Math.round(d*10)/10;function Glt(d,s,E,B){const K=K4(d),pt=Ay(K,"margin"),_t=w4(K.maxWidth,d,"clientWidth")||_4,Ot=w4(K.maxHeight,d,"clientHeight")||_4,jt=Zlt(d,s,E);let{width:te,height:he}=jt;if(K.boxSizing==="content-box"){const er=Ay(K,"border","width"),pr=Ay(K,"padding");te-=pr.width+er.width,he-=pr.height+er.height}return te=Math.max(0,te-pt.width),he=Math.max(0,B?te/B:he-pt.height),te=f1(Math.min(te,_t,jt.maxWidth)),he=f1(Math.min(he,Ot,jt.maxHeight)),te&&!he&&(he=f1(te/2)),(s!==void 0||E!==void 0)&&B&&jt.height&&he>jt.height&&(he=jt.height,te=f1(Math.floor(he*B))),{width:te,height:he}}function wP(d,s,E){const B=s||1,K=f1(d.height*B),pt=f1(d.width*B);d.height=f1(d.height),d.width=f1(d.width);const _t=d.canvas;return _t.style&&(E||!_t.style.height&&!_t.style.width)&&(_t.style.height=`${d.height}px`,_t.style.width=`${d.width}px`),d.currentDevicePixelRatio!==B||_t.height!==K||_t.width!==pt?(d.currentDevicePixelRatio=B,_t.height=K,_t.width=pt,d.ctx.setTransform(B,0,0,B,0,0),!0):!1}const Ylt=function(){let d=!1;try{const s={get passive(){return d=!0,!1}};MM()&&(window.addEventListener("test",null,s),window.removeEventListener("test",null,s))}catch{}return d}();function kP(d,s){const E=Hlt(d,s),B=E&&E.match(/^(\d+)(\.\d+)?px$/);return B?+B[1]:void 0}function my(d,s,E,B){return{x:d.x+E*(s.x-d.x),y:d.y+E*(s.y-d.y)}}function Klt(d,s,E,B){return{x:d.x+E*(s.x-d.x),y:B==="middle"?E<.5?d.y:s.y:B==="after"?E<1?d.y:s.y:E>0?s.y:d.y}}function Xlt(d,s,E,B){const K={x:d.cp2x,y:d.cp2y},pt={x:s.cp1x,y:s.cp1y},_t=my(d,K,E),Ot=my(K,pt,E),jt=my(pt,s,E),te=my(_t,Ot,E),he=my(Ot,jt,E);return my(te,he,E)}const Jlt=function(d,s){return{x(E){return d+d+s-E},setWidth(E){s=E},textAlign(E){return E==="center"?E:E==="right"?"left":"right"},xPlus(E,B){return E-B},leftForLtr(E,B){return E-B}}},Qlt=function(){return{x(d){return d},setWidth(d){},textAlign(d){return d},xPlus(d,s){return d+s},leftForLtr(d,s){return d}}};function f_(d,s,E){return d?Jlt(s,E):Qlt()}function xD(d,s){let E,B;(s==="ltr"||s==="rtl")&&(E=d.canvas.style,B=[E.getPropertyValue("direction"),E.getPropertyPriority("direction")],E.setProperty("direction",s,"important"),d.prevTextDirection=B)}function _D(d,s){s!==void 0&&(delete d.prevTextDirection,d.canvas.style.setProperty("direction",s[0],s[1]))}function bD(d){return d==="angle"?{between:Y2,compare:Jst,normalize:q0}:{between:nv,compare:(s,E)=>s-E,normalize:s=>s}}function TP({start:d,end:s,count:E,loop:B,style:K}){return{start:d%E,end:s%E,loop:B&&(s-d+1)%E===0,style:K}}function tut(d,s,E){const{property:B,start:K,end:pt}=E,{between:_t,normalize:Ot}=bD(B),jt=s.length;let{start:te,end:he,loop:De}=d,er,pr;if(De){for(te+=jt,he+=jt,er=0,pr=jt;erjt(K,cn,mn)&&Ot(K,cn)!==0,Bn=()=>Ot(pt,mn)===0||jt(pt,cn,mn),ni=()=>Tr||Jn(),Wi=()=>!Tr||Bn();for(let Un=he,qr=he;Un<=De;++Un)Dt=s[Un%_t],!Dt.skip&&(mn=te(Dt[B]),mn!==cn&&(Tr=jt(mn,K,pt),Vr===null&&ni()&&(Vr=Ot(mn,K)===0?Un:qr),Vr!==null&&Wi()&&(Mr.push(TP({start:Vr,end:Un,loop:er,count:_t,style:pr})),Vr=null),qr=Un,cn=mn));return Vr!==null&&Mr.push(TP({start:Vr,end:De,loop:er,count:_t,style:pr})),Mr}function kD(d,s){const E=[],B=d.segments;for(let K=0;KK&&d[pt%s].skip;)pt--;return pt%=s,{start:K,end:pt}}function rut(d,s,E,B){const K=d.length,pt=[];let _t=s,Ot=d[s],jt;for(jt=s+1;jt<=E;++jt){const te=d[jt%K];te.skip||te.stop?Ot.skip||(B=!1,pt.push({start:s%K,end:(jt-1)%K,loop:B}),s=_t=te.stop?jt:null):(_t=jt,Ot.skip&&(s=jt)),Ot=te}return _t!==null&&pt.push({start:s%K,end:_t%K,loop:B}),pt}function nut(d,s){const E=d.points,B=d.options.spanGaps,K=E.length;if(!K)return[];const pt=!!d._loop,{start:_t,end:Ot}=eut(E,K,pt,B);if(B===!0)return AP(d,[{start:_t,end:Ot,loop:pt}],E,s);const jt=Ot<_t?Ot+K:Ot,te=!!d._fullLoop&&_t===0&&Ot===K-1;return AP(d,rut(E,_t,jt,te),E,s)}function AP(d,s,E,B){return!B||!B.setContext||!E?s:iut(d,s,E,B)}function iut(d,s,E,B){const K=d._chart.getContext(),pt=MP(d.options),{_datasetIndex:_t,options:{spanGaps:Ot}}=d,jt=E.length,te=[];let he=pt,De=s[0].start,er=De;function pr(Mr,Tr,Vr,mn){const Dt=Ot?-1:1;if(Mr!==Tr){for(Mr+=jt;E[Mr%jt].skip;)Mr-=Dt;for(;E[Tr%jt].skip;)Tr+=Dt;Mr%jt!==Tr%jt&&(te.push({start:Mr%jt,end:Tr%jt,loop:Vr,style:mn}),he=mn,De=Tr%jt)}}for(const Mr of s){De=Ot?De:Mr.start;let Tr=E[De%jt],Vr;for(er=De+1;er<=Mr.end;er++){const mn=E[er%jt];Vr=MP(B.setContext(zy(K,{type:"segment",p0:Tr,p1:mn,p0DataIndex:(er-1)%jt,p1DataIndex:er%jt,datasetIndex:_t}))),aut(Vr,he)&&pr(De,er-1,Mr.loop,he),Tr=mn,he=Vr}De{let d=0;return()=>d++})();function Nh(d){return d==null}function Yd(d){if(Array.isArray&&Array.isArray(d))return!0;const s=Object.prototype.toString.call(d);return s.slice(0,7)==="[object"&&s.slice(-6)==="Array]"}function Sc(d){return d!==null&&Object.prototype.toString.call(d)==="[object Object]"}function t0(d){return(typeof d=="number"||d instanceof Number)&&isFinite(+d)}function og(d,s){return t0(d)?d:s}function cc(d,s){return typeof d>"u"?s:d}const olt=(d,s)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100:+d/s,sD=(d,s)=>typeof d=="string"&&d.endsWith("%")?parseFloat(d)/100*s:+d;function Df(d,s,E){if(d&&typeof d.call=="function")return d.apply(E,s)}function Jh(d,s,E,R){let Y,dt,_t;if(Yd(d))for(dt=d.length,Y=0;Yd,x:d=>d.x,y:d=>d.y};function ult(d){const s=d.split("."),E=[];let R="";for(const Y of s)R+=Y,R.endsWith("\\")?R=R.slice(0,-1)+".":(E.push(R),R="");return E}function clt(d){const s=ult(d);return E=>{for(const R of s){if(R==="")break;E=E&&E[R]}return E}}function Py(d,s){return(cP[s]||(cP[s]=clt(s)))(d)}function xM(d){return d.charAt(0).toUpperCase()+d.slice(1)}const Z2=d=>typeof d<"u",b1=d=>typeof d=="function",hP=(d,s)=>{if(d.size!==s.size)return!1;for(const E of d)if(!s.has(E))return!1;return!0};function hlt(d){return d.type==="mouseup"||d.type==="click"||d.type==="contextmenu"}const Qh=Math.PI,sd=2*Qh,flt=sd+Qh,b4=Number.POSITIVE_INFINITY,dlt=Qh/180,ip=Qh/2,fy=Qh/4,fP=Qh*2/3,uD=Math.log10,gg=Math.sign;function P2(d,s,E){return Math.abs(d-s)Y-dt).pop(),s}function mlt(d){return typeof d=="symbol"||typeof d=="object"&&d!==null&&!(Symbol.toPrimitive in d||"toString"in d||"valueOf"in d)}function G2(d){return!mlt(d)&&!isNaN(parseFloat(d))&&isFinite(d)}function glt(d,s){const E=Math.round(d);return E-s<=d&&E+s>=d}function vlt(d,s,E){let R,Y,dt;for(R=0,Y=d.length;Rjt&&te=Math.min(s,E)-R&&d<=Math.max(s,E)+R}function _M(d,s,E){E=E||(_t=>d[_t]1;)dt=Y+R>>1,E(dt)?Y=dt:R=dt;return{lo:Y,hi:R}}const ky=(d,s,E,R)=>_M(d,E,R?Y=>{const dt=d[Y][s];return dtd[Y][s]_M(d,E,R=>d[R][s]>=E);function wlt(d,s,E){let R=0,Y=d.length;for(;RR&&d[Y-1]>E;)Y--;return R>0||Y{const R="_onData"+xM(E),Y=d[E];Object.defineProperty(d,E,{configurable:!0,enumerable:!1,value(...dt){const _t=Y.apply(this,dt);return d._chartjs.listeners.forEach(zt=>{typeof zt[R]=="function"&&zt[R](...dt)}),_t}})})}function mP(d,s){const E=d._chartjs;if(!E)return;const R=E.listeners,Y=R.indexOf(s);Y!==-1&&R.splice(Y,1),!(R.length>0)&&(hD.forEach(dt=>{delete d[dt]}),delete d._chartjs)}function fD(d){const s=new Set(d);return s.size===d.length?d:Array.from(s)}const dD=function(){return typeof window>"u"?function(d){return d()}:window.requestAnimationFrame}();function pD(d,s){let E=[],R=!1;return function(...Y){E=Y,R||(R=!0,dD.call(window,()=>{R=!1,d.apply(s,E)}))}}function Tlt(d,s){let E;return function(...R){return s?(clearTimeout(E),E=setTimeout(d,s,R)):d.apply(this,R),s}}const bM=d=>d==="start"?"left":d==="end"?"right":"center",qp=(d,s,E)=>d==="start"?s:d==="end"?E:(s+E)/2,Alt=(d,s,E,R)=>d===(R?"left":"right")?E:d==="center"?(s+E)/2:s;function Mlt(d,s,E){const R=s.length;let Y=0,dt=R;if(d._sorted){const{iScale:_t,vScale:zt,_parsed:jt}=d,te=d.dataset&&d.dataset.options?d.dataset.options.spanGaps:null,ce=_t.axis,{min:Ie,max:Je,minDefined:fr,maxDefined:Ar}=_t.getUserBounds();if(fr){if(Y=Math.min(ky(jt,ce,Ie).lo,E?R:ky(s,ce,_t.getPixelForValue(Ie)).lo),te){const kr=jt.slice(0,Y+1).reverse().findIndex(Vr=>!Nh(Vr[zt.axis]));Y-=Math.max(0,kr)}Y=Jp(Y,0,R-1)}if(Ar){let kr=Math.max(ky(jt,_t.axis,Je,!0).hi+1,E?0:ky(s,ce,_t.getPixelForValue(Je),!0).hi+1);if(te){const Vr=jt.slice(kr-1).findIndex(fn=>!Nh(fn[zt.axis]));kr+=Math.max(0,Vr)}dt=Jp(kr,Y,R)-Y}else dt=R-Y}return{start:Y,count:dt}}function Slt(d){const{xScale:s,yScale:E,_scaleRanges:R}=d,Y={xmin:s.min,xmax:s.max,ymin:E.min,ymax:E.max};if(!R)return d._scaleRanges=Y,!0;const dt=R.xmin!==s.min||R.xmax!==s.max||R.ymin!==E.min||R.ymax!==E.max;return Object.assign(R,Y),dt}const R5=d=>d===0||d===1,gP=(d,s,E)=>-(Math.pow(2,10*(d-=1))*Math.sin((d-s)*sd/E)),vP=(d,s,E)=>Math.pow(2,-10*d)*Math.sin((d-s)*sd/E)+1,I2={linear:d=>d,easeInQuad:d=>d*d,easeOutQuad:d=>-d*(d-2),easeInOutQuad:d=>(d/=.5)<1?.5*d*d:-.5*(--d*(d-2)-1),easeInCubic:d=>d*d*d,easeOutCubic:d=>(d-=1)*d*d+1,easeInOutCubic:d=>(d/=.5)<1?.5*d*d*d:.5*((d-=2)*d*d+2),easeInQuart:d=>d*d*d*d,easeOutQuart:d=>-((d-=1)*d*d*d-1),easeInOutQuart:d=>(d/=.5)<1?.5*d*d*d*d:-.5*((d-=2)*d*d*d-2),easeInQuint:d=>d*d*d*d*d,easeOutQuint:d=>(d-=1)*d*d*d*d+1,easeInOutQuint:d=>(d/=.5)<1?.5*d*d*d*d*d:.5*((d-=2)*d*d*d*d+2),easeInSine:d=>-Math.cos(d*ip)+1,easeOutSine:d=>Math.sin(d*ip),easeInOutSine:d=>-.5*(Math.cos(Qh*d)-1),easeInExpo:d=>d===0?0:Math.pow(2,10*(d-1)),easeOutExpo:d=>d===1?1:-Math.pow(2,-10*d)+1,easeInOutExpo:d=>R5(d)?d:d<.5?.5*Math.pow(2,10*(d*2-1)):.5*(-Math.pow(2,-10*(d*2-1))+2),easeInCirc:d=>d>=1?d:-(Math.sqrt(1-d*d)-1),easeOutCirc:d=>Math.sqrt(1-(d-=1)*d),easeInOutCirc:d=>(d/=.5)<1?-.5*(Math.sqrt(1-d*d)-1):.5*(Math.sqrt(1-(d-=2)*d)+1),easeInElastic:d=>R5(d)?d:gP(d,.075,.3),easeOutElastic:d=>R5(d)?d:vP(d,.075,.3),easeInOutElastic(d){return R5(d)?d:d<.5?.5*gP(d*2,.1125,.45):.5+.5*vP(d*2-1,.1125,.45)},easeInBack(d){return d*d*((1.70158+1)*d-1.70158)},easeOutBack(d){return(d-=1)*d*((1.70158+1)*d+1.70158)+1},easeInOutBack(d){let s=1.70158;return(d/=.5)<1?.5*(d*d*(((s*=1.525)+1)*d-s)):.5*((d-=2)*d*(((s*=1.525)+1)*d+s)+2)},easeInBounce:d=>1-I2.easeOutBounce(1-d),easeOutBounce(d){return d<1/2.75?7.5625*d*d:d<2/2.75?7.5625*(d-=1.5/2.75)*d+.75:d<2.5/2.75?7.5625*(d-=2.25/2.75)*d+.9375:7.5625*(d-=2.625/2.75)*d+.984375},easeInOutBounce:d=>d<.5?I2.easeInBounce(d*2)*.5:I2.easeOutBounce(d*2-1)*.5+.5};function wM(d){if(d&&typeof d=="object"){const s=d.toString();return s==="[object CanvasPattern]"||s==="[object CanvasGradient]"}return!1}function yP(d){return wM(d)?d:new q2(d)}function V8(d){return wM(d)?d:new q2(d).saturate(.5).darken(.1).hexString()}const Elt=["x","y","borderWidth","radius","tension"],Clt=["color","borderColor","backgroundColor"];function Llt(d){d.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),d.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:s=>s!=="onProgress"&&s!=="onComplete"&&s!=="fn"}),d.set("animations",{colors:{type:"color",properties:Clt},numbers:{type:"number",properties:Elt}}),d.describe("animations",{_fallback:"animation"}),d.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:s=>s|0}}}})}function Plt(d){d.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const xP=new Map;function Ilt(d,s){s=s||{};const E=d+JSON.stringify(s);let R=xP.get(E);return R||(R=new Intl.NumberFormat(d,s),xP.set(E,R)),R}function kM(d,s,E){return Ilt(s,E).format(d)}const zlt={values(d){return Yd(d)?d:""+d},numeric(d,s,E){if(d===0)return"0";const R=this.chart.options.locale;let Y,dt=d;if(E.length>1){const te=Math.max(Math.abs(E[0].value),Math.abs(E[E.length-1].value));(te<1e-4||te>1e15)&&(Y="scientific"),dt=Olt(d,E)}const _t=uD(Math.abs(dt)),zt=isNaN(_t)?1:Math.max(Math.min(-1*Math.floor(_t),20),0),jt={notation:Y,minimumFractionDigits:zt,maximumFractionDigits:zt};return Object.assign(jt,this.options.ticks.format),kM(d,R,jt)}};function Olt(d,s){let E=s.length>3?s[2].value-s[1].value:s[1].value-s[0].value;return Math.abs(E)>=1&&d!==Math.floor(d)&&(E=d-Math.floor(d)),E}var mD={formatters:zlt};function Dlt(d){d.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(s,E)=>E.lineWidth,tickColor:(s,E)=>E.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:mD.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),d.route("scale.ticks","color","","color"),d.route("scale.grid","color","","borderColor"),d.route("scale.border","color","","borderColor"),d.route("scale.title","color","","color"),d.describe("scale",{_fallback:!1,_scriptable:s=>!s.startsWith("before")&&!s.startsWith("after")&&s!=="callback"&&s!=="parser",_indexable:s=>s!=="borderDash"&&s!=="tickBorderDash"&&s!=="dash"}),d.describe("scales",{_fallback:"scale"}),d.describe("scale.ticks",{_scriptable:s=>s!=="backdropPadding"&&s!=="callback",_indexable:s=>s!=="backdropPadding"})}const Iy=Object.create(null),PA=Object.create(null);function z2(d,s){if(!s)return d;const E=s.split(".");for(let R=0,Y=E.length;RR.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(R,Y)=>V8(Y.backgroundColor),this.hoverBorderColor=(R,Y)=>V8(Y.borderColor),this.hoverColor=(R,Y)=>V8(Y.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(s),this.apply(E)}set(s,E){return H8(this,s,E)}get(s){return z2(this,s)}describe(s,E){return H8(PA,s,E)}override(s,E){return H8(Iy,s,E)}route(s,E,R,Y){const dt=z2(this,s),_t=z2(this,R),zt="_"+E;Object.defineProperties(dt,{[zt]:{value:dt[E],writable:!0},[E]:{enumerable:!0,get(){const jt=this[zt],te=_t[Y];return Sc(jt)?Object.assign({},te,jt):cc(jt,te)},set(jt){this[zt]=jt}}})}apply(s){s.forEach(E=>E(this))}}var Bd=new Flt({_scriptable:d=>!d.startsWith("on"),_indexable:d=>d!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Llt,Plt,Dlt]);function Blt(d){return!d||Nh(d.size)||Nh(d.family)?null:(d.style?d.style+" ":"")+(d.weight?d.weight+" ":"")+d.size+"px "+d.family}function _P(d,s,E,R,Y){let dt=s[Y];return dt||(dt=s[Y]=d.measureText(Y).width,E.push(Y)),dt>R&&(R=dt),R}function dy(d,s,E){const R=d.currentDevicePixelRatio,Y=E!==0?Math.max(E/2,.5):0;return Math.round((s-Y)*R)/R+Y}function bP(d,s){!s&&!d||(s=s||d.getContext("2d"),s.save(),s.resetTransform(),s.clearRect(0,0,d.width,d.height),s.restore())}function IA(d,s,E,R){gD(d,s,E,R,null)}function gD(d,s,E,R,Y){let dt,_t,zt,jt,te,ce,Ie,Je;const fr=s.pointStyle,Ar=s.rotation,kr=s.radius;let Vr=(Ar||0)*dlt;if(fr&&typeof fr=="object"&&(dt=fr.toString(),dt==="[object HTMLImageElement]"||dt==="[object HTMLCanvasElement]")){d.save(),d.translate(E,R),d.rotate(Vr),d.drawImage(fr,-fr.width/2,-fr.height/2,fr.width,fr.height),d.restore();return}if(!(isNaN(kr)||kr<=0)){switch(d.beginPath(),fr){default:Y?d.ellipse(E,R,Y/2,kr,0,0,sd):d.arc(E,R,kr,0,sd),d.closePath();break;case"triangle":ce=Y?Y/2:kr,d.moveTo(E+Math.sin(Vr)*ce,R-Math.cos(Vr)*kr),Vr+=fP,d.lineTo(E+Math.sin(Vr)*ce,R-Math.cos(Vr)*kr),Vr+=fP,d.lineTo(E+Math.sin(Vr)*ce,R-Math.cos(Vr)*kr),d.closePath();break;case"rectRounded":te=kr*.516,jt=kr-te,_t=Math.cos(Vr+fy)*jt,Ie=Math.cos(Vr+fy)*(Y?Y/2-te:jt),zt=Math.sin(Vr+fy)*jt,Je=Math.sin(Vr+fy)*(Y?Y/2-te:jt),d.arc(E-Ie,R-zt,te,Vr-Qh,Vr-ip),d.arc(E+Je,R-_t,te,Vr-ip,Vr),d.arc(E+Ie,R+zt,te,Vr,Vr+ip),d.arc(E-Je,R+_t,te,Vr+ip,Vr+Qh),d.closePath();break;case"rect":if(!Ar){jt=Math.SQRT1_2*kr,ce=Y?Y/2:jt,d.rect(E-ce,R-jt,2*ce,2*jt);break}Vr+=fy;case"rectRot":Ie=Math.cos(Vr)*(Y?Y/2:kr),_t=Math.cos(Vr)*kr,zt=Math.sin(Vr)*kr,Je=Math.sin(Vr)*(Y?Y/2:kr),d.moveTo(E-Ie,R-zt),d.lineTo(E+Je,R-_t),d.lineTo(E+Ie,R+zt),d.lineTo(E-Je,R+_t),d.closePath();break;case"crossRot":Vr+=fy;case"cross":Ie=Math.cos(Vr)*(Y?Y/2:kr),_t=Math.cos(Vr)*kr,zt=Math.sin(Vr)*kr,Je=Math.sin(Vr)*(Y?Y/2:kr),d.moveTo(E-Ie,R-zt),d.lineTo(E+Ie,R+zt),d.moveTo(E+Je,R-_t),d.lineTo(E-Je,R+_t);break;case"star":Ie=Math.cos(Vr)*(Y?Y/2:kr),_t=Math.cos(Vr)*kr,zt=Math.sin(Vr)*kr,Je=Math.sin(Vr)*(Y?Y/2:kr),d.moveTo(E-Ie,R-zt),d.lineTo(E+Ie,R+zt),d.moveTo(E+Je,R-_t),d.lineTo(E-Je,R+_t),Vr+=fy,Ie=Math.cos(Vr)*(Y?Y/2:kr),_t=Math.cos(Vr)*kr,zt=Math.sin(Vr)*kr,Je=Math.sin(Vr)*(Y?Y/2:kr),d.moveTo(E-Ie,R-zt),d.lineTo(E+Ie,R+zt),d.moveTo(E+Je,R-_t),d.lineTo(E-Je,R+_t);break;case"line":_t=Y?Y/2:Math.cos(Vr)*kr,zt=Math.sin(Vr)*kr,d.moveTo(E-_t,R-zt),d.lineTo(E+_t,R+zt);break;case"dash":d.moveTo(E,R),d.lineTo(E+Math.cos(Vr)*(Y?Y/2:kr),R+Math.sin(Vr)*kr);break;case!1:d.closePath();break}d.fill(),s.borderWidth>0&&d.stroke()}}function K2(d,s,E){return E=E||.5,!s||d&&d.x>s.left-E&&d.xs.top-E&&d.y0&&dt.strokeColor!=="";let jt,te;for(d.save(),d.font=Y.string,jlt(d,dt),jt=0;jt<_t.length;++jt)te=_t[jt],dt.backdrop&&Vlt(d,dt.backdrop),zt&&(dt.strokeColor&&(d.strokeStyle=dt.strokeColor),Nh(dt.strokeWidth)||(d.lineWidth=dt.strokeWidth),d.strokeText(te,E,R,dt.maxWidth)),d.fillText(te,E,R,dt.maxWidth),Ult(d,E,R,te,dt),R+=Number(Y.lineHeight);d.restore()}function w4(d,s){const{x:E,y:R,w:Y,h:dt,radius:_t}=s;d.arc(E+_t.topLeft,R+_t.topLeft,_t.topLeft,1.5*Qh,Qh,!0),d.lineTo(E,R+dt-_t.bottomLeft),d.arc(E+_t.bottomLeft,R+dt-_t.bottomLeft,_t.bottomLeft,Qh,ip,!0),d.lineTo(E+Y-_t.bottomRight,R+dt),d.arc(E+Y-_t.bottomRight,R+dt-_t.bottomRight,_t.bottomRight,ip,0,!0),d.lineTo(E+Y,R+_t.topRight),d.arc(E+Y-_t.topRight,R+_t.topRight,_t.topRight,0,-ip,!0),d.lineTo(E+_t.topLeft,R)}const Hlt=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Wlt=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function qlt(d,s){const E=(""+d).match(Hlt);if(!E||E[1]==="normal")return s*1.2;switch(d=+E[2],E[3]){case"px":return d;case"%":d/=100;break}return s*d}const $lt=d=>+d||0;function TM(d,s){const E={},R=Sc(s),Y=R?Object.keys(s):s,dt=Sc(d)?R?_t=>cc(d[_t],d[s[_t]]):_t=>d[_t]:()=>d;for(const _t of Y)E[_t]=$lt(dt(_t));return E}function vD(d){return TM(d,{top:"y",right:"x",bottom:"y",left:"x"})}function f_(d){return TM(d,["topLeft","topRight","bottomLeft","bottomRight"])}function fm(d){const s=vD(d);return s.width=s.left+s.right,s.height=s.top+s.bottom,s}function Qp(d,s){d=d||{},s=s||Bd.font;let E=cc(d.size,s.size);typeof E=="string"&&(E=parseInt(E,10));let R=cc(d.style,s.style);R&&!(""+R).match(Wlt)&&(console.warn('Invalid font style specified: "'+R+'"'),R=void 0);const Y={family:cc(d.family,s.family),lineHeight:qlt(cc(d.lineHeight,s.lineHeight),E),size:E,style:R,weight:cc(d.weight,s.weight),string:""};return Y.string=Blt(Y),Y}function N5(d,s,E,R){let Y,dt,_t;for(Y=0,dt=d.length;YE&&zt===0?0:zt+jt;return{min:_t(R,-Math.abs(dt)),max:_t(Y,dt)}}function Dy(d,s){return Object.assign(Object.create(d),s)}function AM(d,s=[""],E,R,Y=()=>d[0]){const dt=E||d;typeof R>"u"&&(R=bD("_fallback",d));const _t={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:d,_rootScopes:dt,_fallback:R,_getTarget:Y,override:zt=>AM([zt,...d],s,dt,R)};return new Proxy(_t,{deleteProperty(zt,jt){return delete zt[jt],delete zt._keys,delete d[0][jt],!0},get(zt,jt){return xD(zt,jt,()=>eut(jt,s,d,zt))},getOwnPropertyDescriptor(zt,jt){return Reflect.getOwnPropertyDescriptor(zt._scopes[0],jt)},getPrototypeOf(){return Reflect.getPrototypeOf(d[0])},has(zt,jt){return kP(zt).includes(jt)},ownKeys(zt){return kP(zt)},set(zt,jt,te){const ce=zt._storage||(zt._storage=Y());return zt[jt]=ce[jt]=te,delete zt._keys,!0}})}function __(d,s,E,R){const Y={_cacheable:!1,_proxy:d,_context:s,_subProxy:E,_stack:new Set,_descriptors:yD(d,R),setContext:dt=>__(d,dt,E,R),override:dt=>__(d.override(dt),s,E,R)};return new Proxy(Y,{deleteProperty(dt,_t){return delete dt[_t],delete d[_t],!0},get(dt,_t,zt){return xD(dt,_t,()=>Ylt(dt,_t,zt))},getOwnPropertyDescriptor(dt,_t){return dt._descriptors.allKeys?Reflect.has(d,_t)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(d,_t)},getPrototypeOf(){return Reflect.getPrototypeOf(d)},has(dt,_t){return Reflect.has(d,_t)},ownKeys(){return Reflect.ownKeys(d)},set(dt,_t,zt){return d[_t]=zt,delete dt[_t],!0}})}function yD(d,s={scriptable:!0,indexable:!0}){const{_scriptable:E=s.scriptable,_indexable:R=s.indexable,_allKeys:Y=s.allKeys}=d;return{allKeys:Y,scriptable:E,indexable:R,isScriptable:b1(E)?E:()=>E,isIndexable:b1(R)?R:()=>R}}const Glt=(d,s)=>d?d+xM(s):s,MM=(d,s)=>Sc(s)&&d!=="adapters"&&(Object.getPrototypeOf(s)===null||s.constructor===Object);function xD(d,s,E){if(Object.prototype.hasOwnProperty.call(d,s)||s==="constructor")return d[s];const R=E();return d[s]=R,R}function Ylt(d,s,E){const{_proxy:R,_context:Y,_subProxy:dt,_descriptors:_t}=d;let zt=R[s];return b1(zt)&&_t.isScriptable(s)&&(zt=Klt(s,zt,d,E)),Yd(zt)&&zt.length&&(zt=Xlt(s,zt,d,_t.isIndexable)),MM(s,zt)&&(zt=__(zt,Y,dt&&dt[s],_t)),zt}function Klt(d,s,E,R){const{_proxy:Y,_context:dt,_subProxy:_t,_stack:zt}=E;if(zt.has(d))throw new Error("Recursion detected: "+Array.from(zt).join("->")+"->"+d);zt.add(d);let jt=s(dt,_t||R);return zt.delete(d),MM(d,jt)&&(jt=SM(Y._scopes,Y,d,jt)),jt}function Xlt(d,s,E,R){const{_proxy:Y,_context:dt,_subProxy:_t,_descriptors:zt}=E;if(typeof dt.index<"u"&&R(d))return s[dt.index%s.length];if(Sc(s[0])){const jt=s,te=Y._scopes.filter(ce=>ce!==jt);s=[];for(const ce of jt){const Ie=SM(te,Y,d,ce);s.push(__(Ie,dt,_t&&_t[d],zt))}}return s}function _D(d,s,E){return b1(d)?d(s,E):d}const Jlt=(d,s)=>d===!0?s:typeof d=="string"?Py(s,d):void 0;function Qlt(d,s,E,R,Y){for(const dt of s){const _t=Jlt(E,dt);if(_t){d.add(_t);const zt=_D(_t._fallback,E,Y);if(typeof zt<"u"&&zt!==E&&zt!==R)return zt}else if(_t===!1&&typeof R<"u"&&E!==R)return null}return!1}function SM(d,s,E,R){const Y=s._rootScopes,dt=_D(s._fallback,E,R),_t=[...d,...Y],zt=new Set;zt.add(R);let jt=wP(zt,_t,E,dt||E,R);return jt===null||typeof dt<"u"&&dt!==E&&(jt=wP(zt,_t,dt,jt,R),jt===null)?!1:AM(Array.from(zt),[""],Y,dt,()=>tut(s,E,R))}function wP(d,s,E,R,Y){for(;E;)E=Qlt(d,s,E,R,Y);return E}function tut(d,s,E){const R=d._getTarget();s in R||(R[s]={});const Y=R[s];return Yd(Y)&&Sc(E)?E:Y||{}}function eut(d,s,E,R){let Y;for(const dt of s)if(Y=bD(Glt(dt,d),E),typeof Y<"u")return MM(d,Y)?SM(E,R,d,Y):Y}function bD(d,s){for(const E of s){if(!E)continue;const R=E[d];if(typeof R<"u")return R}}function kP(d){let s=d._keys;return s||(s=d._keys=rut(d._scopes)),s}function rut(d){const s=new Set;for(const E of d)for(const R of Object.keys(E).filter(Y=>!Y.startsWith("_")))s.add(R);return Array.from(s)}const nut=Number.EPSILON||1e-14,b_=(d,s)=>sd==="x"?"y":"x";function iut(d,s,E,R){const Y=d.skip?s:d,dt=s,_t=E.skip?s:E,zt=LA(dt,Y),jt=LA(_t,dt);let te=zt/(zt+jt),ce=jt/(zt+jt);te=isNaN(te)?0:te,ce=isNaN(ce)?0:ce;const Ie=R*te,Je=R*ce;return{previous:{x:dt.x-Ie*(_t.x-Y.x),y:dt.y-Ie*(_t.y-Y.y)},next:{x:dt.x+Je*(_t.x-Y.x),y:dt.y+Je*(_t.y-Y.y)}}}function aut(d,s,E){const R=d.length;let Y,dt,_t,zt,jt,te=b_(d,0);for(let ce=0;ce!te.skip)),s.cubicInterpolationMode==="monotone")sut(d,Y);else{let te=R?d[d.length-1]:d[0];for(dt=0,_t=d.length;dt<_t;++dt)zt=d[dt],jt=iut(te,zt,d[Math.min(dt+1,_t-(R?0:1))%_t],s.tension),zt.cp1x=jt.previous.x,zt.cp1y=jt.previous.y,zt.cp2x=jt.next.x,zt.cp2y=jt.next.y,te=zt}s.capBezierPoints&&lut(d,E)}function EM(){return typeof window<"u"&&typeof document<"u"}function CM(d){let s=d.parentNode;return s&&s.toString()==="[object ShadowRoot]"&&(s=s.host),s}function k4(d,s,E){let R;return typeof d=="string"?(R=parseInt(d,10),d.indexOf("%")!==-1&&(R=R/100*s.parentNode[E])):R=d,R}const J4=d=>d.ownerDocument.defaultView.getComputedStyle(d,null);function cut(d,s){return J4(d).getPropertyValue(s)}const hut=["top","right","bottom","left"];function Sy(d,s,E){const R={};E=E?"-"+E:"";for(let Y=0;Y<4;Y++){const dt=hut[Y];R[dt]=parseFloat(d[s+"-"+dt+E])||0}return R.width=R.left+R.right,R.height=R.top+R.bottom,R}const fut=(d,s,E)=>(d>0||s>0)&&(!E||!E.shadowRoot);function dut(d,s){const E=d.touches,R=E&&E.length?E[0]:d,{offsetX:Y,offsetY:dt}=R;let _t=!1,zt,jt;if(fut(Y,dt,d.target))zt=Y,jt=dt;else{const te=s.getBoundingClientRect();zt=R.clientX-te.left,jt=R.clientY-te.top,_t=!0}return{x:zt,y:jt,box:_t}}function gy(d,s){if("native"in d)return d;const{canvas:E,currentDevicePixelRatio:R}=s,Y=J4(E),dt=Y.boxSizing==="border-box",_t=Sy(Y,"padding"),zt=Sy(Y,"border","width"),{x:jt,y:te,box:ce}=dut(d,E),Ie=_t.left+(ce&&zt.left),Je=_t.top+(ce&&zt.top);let{width:fr,height:Ar}=s;return dt&&(fr-=_t.width+zt.width,Ar-=_t.height+zt.height),{x:Math.round((jt-Ie)/fr*E.width/R),y:Math.round((te-Je)/Ar*E.height/R)}}function put(d,s,E){let R,Y;if(s===void 0||E===void 0){const dt=d&&CM(d);if(!dt)s=d.clientWidth,E=d.clientHeight;else{const _t=dt.getBoundingClientRect(),zt=J4(dt),jt=Sy(zt,"border","width"),te=Sy(zt,"padding");s=_t.width-te.width-jt.width,E=_t.height-te.height-jt.height,R=k4(zt.maxWidth,dt,"clientWidth"),Y=k4(zt.maxHeight,dt,"clientHeight")}}return{width:s,height:E,maxWidth:R||b4,maxHeight:Y||b4}}const d1=d=>Math.round(d*10)/10;function mut(d,s,E,R){const Y=J4(d),dt=Sy(Y,"margin"),_t=k4(Y.maxWidth,d,"clientWidth")||b4,zt=k4(Y.maxHeight,d,"clientHeight")||b4,jt=put(d,s,E);let{width:te,height:ce}=jt;if(Y.boxSizing==="content-box"){const Je=Sy(Y,"border","width"),fr=Sy(Y,"padding");te-=fr.width+Je.width,ce-=fr.height+Je.height}return te=Math.max(0,te-dt.width),ce=Math.max(0,R?te/R:ce-dt.height),te=d1(Math.min(te,_t,jt.maxWidth)),ce=d1(Math.min(ce,zt,jt.maxHeight)),te&&!ce&&(ce=d1(te/2)),(s!==void 0||E!==void 0)&&R&&jt.height&&ce>jt.height&&(ce=jt.height,te=d1(Math.floor(ce*R))),{width:te,height:ce}}function TP(d,s,E){const R=s||1,Y=d1(d.height*R),dt=d1(d.width*R);d.height=d1(d.height),d.width=d1(d.width);const _t=d.canvas;return _t.style&&(E||!_t.style.height&&!_t.style.width)&&(_t.style.height=`${d.height}px`,_t.style.width=`${d.width}px`),d.currentDevicePixelRatio!==R||_t.height!==Y||_t.width!==dt?(d.currentDevicePixelRatio=R,_t.height=Y,_t.width=dt,d.ctx.setTransform(R,0,0,R,0,0),!0):!1}const gut=function(){let d=!1;try{const s={get passive(){return d=!0,!1}};EM()&&(window.addEventListener("test",null,s),window.removeEventListener("test",null,s))}catch{}return d}();function AP(d,s){const E=cut(d,s),R=E&&E.match(/^(\d+)(\.\d+)?px$/);return R?+R[1]:void 0}function vy(d,s,E,R){return{x:d.x+E*(s.x-d.x),y:d.y+E*(s.y-d.y)}}function vut(d,s,E,R){return{x:d.x+E*(s.x-d.x),y:R==="middle"?E<.5?d.y:s.y:R==="after"?E<1?d.y:s.y:E>0?s.y:d.y}}function yut(d,s,E,R){const Y={x:d.cp2x,y:d.cp2y},dt={x:s.cp1x,y:s.cp1y},_t=vy(d,Y,E),zt=vy(Y,dt,E),jt=vy(dt,s,E),te=vy(_t,zt,E),ce=vy(zt,jt,E);return vy(te,ce,E)}const xut=function(d,s){return{x(E){return d+d+s-E},setWidth(E){s=E},textAlign(E){return E==="center"?E:E==="right"?"left":"right"},xPlus(E,R){return E-R},leftForLtr(E,R){return E-R}}},_ut=function(){return{x(d){return d},setWidth(d){},textAlign(d){return d},xPlus(d,s){return d+s},leftForLtr(d,s){return d}}};function d_(d,s,E){return d?xut(s,E):_ut()}function kD(d,s){let E,R;(s==="ltr"||s==="rtl")&&(E=d.canvas.style,R=[E.getPropertyValue("direction"),E.getPropertyPriority("direction")],E.setProperty("direction",s,"important"),d.prevTextDirection=R)}function TD(d,s){s!==void 0&&(delete d.prevTextDirection,d.canvas.style.setProperty("direction",s[0],s[1]))}function AD(d){return d==="angle"?{between:Y2,compare:xlt,normalize:$0}:{between:av,compare:(s,E)=>s-E,normalize:s=>s}}function MP({start:d,end:s,count:E,loop:R,style:Y}){return{start:d%E,end:s%E,loop:R&&(s-d+1)%E===0,style:Y}}function but(d,s,E){const{property:R,start:Y,end:dt}=E,{between:_t,normalize:zt}=AD(R),jt=s.length;let{start:te,end:ce,loop:Ie}=d,Je,fr;if(Ie){for(te+=jt,ce+=jt,Je=0,fr=jt;Jejt(Y,cn,fn)&&zt(Y,cn)!==0,Dn=()=>zt(dt,fn)===0||jt(dt,cn,fn),ii=()=>kr||ti(),Vi=()=>!kr||Dn();for(let Nn=ce,Wr=ce;Nn<=Ie;++Nn)Dt=s[Nn%_t],!Dt.skip&&(fn=te(Dt[R]),fn!==cn&&(kr=jt(fn,Y,dt),Vr===null&&ii()&&(Vr=zt(fn,Y)===0?Nn:Wr),Vr!==null&&Vi()&&(Ar.push(MP({start:Vr,end:Nn,loop:Je,count:_t,style:fr})),Vr=null),Wr=Nn,cn=fn));return Vr!==null&&Ar.push(MP({start:Vr,end:Ie,loop:Je,count:_t,style:fr})),Ar}function SD(d,s){const E=[],R=d.segments;for(let Y=0;YY&&d[dt%s].skip;)dt--;return dt%=s,{start:Y,end:dt}}function kut(d,s,E,R){const Y=d.length,dt=[];let _t=s,zt=d[s],jt;for(jt=s+1;jt<=E;++jt){const te=d[jt%Y];te.skip||te.stop?zt.skip||(R=!1,dt.push({start:s%Y,end:(jt-1)%Y,loop:R}),s=_t=te.stop?jt:null):(_t=jt,zt.skip&&(s=jt)),zt=te}return _t!==null&&dt.push({start:s%Y,end:_t%Y,loop:R}),dt}function Tut(d,s){const E=d.points,R=d.options.spanGaps,Y=E.length;if(!Y)return[];const dt=!!d._loop,{start:_t,end:zt}=wut(E,Y,dt,R);if(R===!0)return SP(d,[{start:_t,end:zt,loop:dt}],E,s);const jt=zt<_t?zt+Y:zt,te=!!d._fullLoop&&_t===0&&zt===Y-1;return SP(d,kut(E,_t,jt,te),E,s)}function SP(d,s,E,R){return!R||!R.setContext||!E?s:Aut(d,s,E,R)}function Aut(d,s,E,R){const Y=d._chart.getContext(),dt=EP(d.options),{_datasetIndex:_t,options:{spanGaps:zt}}=d,jt=E.length,te=[];let ce=dt,Ie=s[0].start,Je=Ie;function fr(Ar,kr,Vr,fn){const Dt=zt?-1:1;if(Ar!==kr){for(Ar+=jt;E[Ar%jt].skip;)Ar-=Dt;for(;E[kr%jt].skip;)kr+=Dt;Ar%jt!==kr%jt&&(te.push({start:Ar%jt,end:kr%jt,loop:Vr,style:fn}),ce=fn,Ie=kr%jt)}}for(const Ar of s){Ie=zt?Ie:Ar.start;let kr=E[Ie%jt],Vr;for(Je=Ie+1;Je<=Ar.end;Je++){const fn=E[Je%jt];Vr=EP(R.setContext(Dy(Y,{type:"segment",p0:kr,p1:fn,p0DataIndex:(Je-1)%jt,p1DataIndex:Je%jt,datasetIndex:_t}))),Mut(Vr,ce)&&fr(Ie,Je-1,Ar.loop,ce),kr=fn,ce=Vr}Ie
In Progress
Packet Activity (Last 24 Hours)
No valid coordinates available
Configure base station location to view map
No mesh neighbors have been discovered in your area yet.