From e648634ce1f3a916c81c892c79ac08d66df10938 Mon Sep 17 00:00:00 2001 From: tajniak81 <13187254+tajniak81@users.noreply.github.com> Date: Sat, 29 Aug 2026 23:30:56 +0200 Subject: [PATCH] The plugin list, grouped by what a plugin actually is MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Category has been in the plugin contract since it was written — apis-external, drives-external, drives-local — and every builtin declared the same one, so it grouped nothing. Two of the three talk to a wallbox and one talks to a car manufacturer, and those are different questions an operator arrives with: the Toyota card is where a driver's account gets linked, the Anker and Greencell cards are where a charger's broker and credentials live. So vehicles and chargers join the constants and the three builtins say which they are. The panel groups on that field rather than on a list of names, which is what keeps an external plugin from needing panel code. Tab order mirrors the constants; a category with nothing in it gets no tab, and a single group hides the bar entirely, so an install with one connector looks exactly as it did. A category the panel does not recognise — or an empty one — falls to the external-APIs tab rather than vanishing, because a plugin nobody can see is a plugin nobody can disable. The selected tab falls back to the first group when its own goes away, which is what removing the last external plugin does. Registration still asks only for name, base URL and provider, so a plugin registered at runtime lands under Other APIs until its manifest names a category. That path already works and is the honest default: the panel is guessing about a service it has never spoken to, and the service can say. The header lockup is the other half. It was a copy of the Web App's mark rather than the same mark, and copies drift — a 32px icon against 28, a 24px wordmark against 21.6, "Driver" at text-strong instead of white, "Vault" a step lighter than brand-400. The Web App's Logo.vue moves in verbatim, props included. The one thing it cannot inherit is which variant to render: the Web App's rail is always dark, while this panel flips with its own theme toggle, so on-dark is bound to the theme and the hand-rolled bar fills that existed to survive that flip are gone. Co-Authored-By: Claude Opus 5 --- .../api/dist/assets/index-BjBOfjar.js | 17 ++++++++ .../api/dist/assets/index-CGuUVjJH.css | 1 - .../api/dist/assets/index-DYiq470x.js | 17 -------- .../api/dist/assets/index-nQWOOvsA.css | 1 + API Server/internal/api/dist/index.html | 4 +- .../plugins/builtin/ankersolix/ankersolix.go | 2 +- .../plugins/builtin/greencell/greencell.go | 2 +- .../internal/plugins/builtin/toyota/toyota.go | 2 +- API Server/internal/plugins/plugin.go | 4 +- API Server/panel/src/App.vue | 22 ++-------- API Server/panel/src/components/Logo.vue | 30 +++++++++++++ .../panel/src/components/PluginsCard.vue | 42 ++++++++++++++++++- API Server/panel/src/i18n/da.json | 7 ++++ API Server/panel/src/i18n/en.json | 7 ++++ API Server/panel/src/i18n/pl.json | 7 ++++ 15 files changed, 120 insertions(+), 45 deletions(-) create mode 100644 API Server/internal/api/dist/assets/index-BjBOfjar.js delete mode 100644 API Server/internal/api/dist/assets/index-CGuUVjJH.css delete mode 100644 API Server/internal/api/dist/assets/index-DYiq470x.js create mode 100644 API Server/internal/api/dist/assets/index-nQWOOvsA.css create mode 100644 API Server/panel/src/components/Logo.vue diff --git a/API Server/internal/api/dist/assets/index-BjBOfjar.js b/API Server/internal/api/dist/assets/index-BjBOfjar.js new file mode 100644 index 0000000..d347f7b --- /dev/null +++ b/API Server/internal/api/dist/assets/index-BjBOfjar.js @@ -0,0 +1,17 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=s(i);fetch(i.href,o)}})();/** +* @vue/shared v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function cn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const ne={},Tt=[],Ze=()=>{},mi=()=>!1,Ss=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Es=e=>e.startsWith("onUpdate:"),_e=Object.assign,un=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},$o=Object.prototype.hasOwnProperty,X=(e,t)=>$o.call(e,t),L=Array.isArray,St=e=>ts(e)==="[object Map]",zt=e=>ts(e)==="[object Set]",zn=e=>ts(e)==="[object Date]",W=e=>typeof e=="function",ue=e=>typeof e=="string",Je=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",bi=e=>(te(e)||W(e))&&W(e.then)&&W(e.catch),vi=Object.prototype.toString,ts=e=>vi.call(e),Oo=e=>ts(e).slice(8,-1),yi=e=>ts(e)==="[object Object]",dn=e=>ue(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Bt=cn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ps=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Do=/-\w/g,je=Ps(e=>e.replace(Do,t=>t.slice(1).toUpperCase())),Ro=/\B([A-Z])/g,ft=Ps(e=>e.replace(Ro,"-$1").toLowerCase()),_i=Ps(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ns=Ps(e=>e?`on${_i(e)}`:""),qe=(e,t)=>!Object.is(e,t),ps=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Cs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let In;const As=()=>In||(In=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pn(e){if(L(e)){const t={};for(let s=0;s{if(s){const n=s.split(Io);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ee(e){let t="";if(ue(e))t=e;else if(L(e))for(let s=0;sut(s,t))}const ki=e=>!!(e&&e.__v_isRef===!0),m=e=>ue(e)?e:e==null?"":L(e)||te(e)&&(e.toString===vi||!W(e.toString))?ki(e)?m(e.value):JSON.stringify(e,Ti,2):String(e),Ti=(e,t)=>ki(t)?Ti(e,t.value):St(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],o)=>(s[Ms(n,o)+" =>"]=i,s),{})}:zt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Ms(s))}:Je(t)?Ms(t):te(t)&&!L(t)&&!yi(t)?String(t):t,Ms=(e,t="")=>{var s;return Je(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** +* @vue/reactivity v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let me;class Fo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&me&&(me.active?(this.parent=me,this.index=(me.scopes||(me.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0){if(me===this)me=this.prevScope;else{let t=me;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(Vt){let t=Vt;for(Vt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Ht;){let t=Ht;for(Ht=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Ci(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ai(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),mn(n),Ho(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Js(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($i(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $i(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Zt)||(e.globalVersion=Zt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Js(e))))return;e.flags|=2;const t=e.dep,s=oe,n=Ue;oe=e,Ue=!0;try{Ci(e);const i=e.fn(e._value);(t.version===0||qe(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{oe=s,Ue=n,Ai(e),e.flags&=-3}}function mn(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)mn(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Ho(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Ue=!0;const Oi=[];function Ye(){Oi.push(Ue),Ue=!1}function Xe(){const e=Oi.pop();Ue=e===void 0?!0:e}function jn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=oe;oe=void 0;try{t()}finally{oe=s}}}let Zt=0;class Vo{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class bn{constructor(t){this.computed=t,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(t){if(!oe||!Ue||oe===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==oe)s=this.activeLink=new Vo(oe,this),oe.deps?(s.prevDep=oe.depsTail,oe.depsTail.nextDep=s,oe.depsTail=s):oe.deps=oe.depsTail=s,Di(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=oe.depsTail,s.nextDep=void 0,oe.depsTail.nextDep=s,oe.depsTail=s,oe.deps===s&&(oe.deps=n)}return s}trigger(t){this.version++,Zt++,this.notify(t)}notify(t){hn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{gn()}}}function Di(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Di(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Ys=new WeakMap,yt=Symbol(""),Xs=Symbol(""),Jt=Symbol("");function ve(e,t,s){if(Ue&&oe){let n=Ys.get(e);n||Ys.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new bn),i.map=n,i.key=s),i.track()}}function nt(e,t,s,n,i,o){const r=Ys.get(e);if(!r){Zt++;return}const a=l=>{l&&l.trigger()};if(hn(),t==="clear")r.forEach(a);else{const l=L(e),g=l&&dn(s);if(l&&s==="length"){const d=Number(n);r.forEach((b,E)=>{(E==="length"||E===Jt||!Je(E)&&E>=d)&&a(b)})}else switch((s!==void 0||r.has(void 0))&&a(r.get(s)),g&&a(r.get(Jt)),t){case"add":l?g&&a(r.get("length")):(a(r.get(yt)),St(e)&&a(r.get(Xs)));break;case"delete":l||(a(r.get(yt)),St(e)&&a(r.get(Xs)));break;case"set":St(e)&&a(r.get(yt));break}}gn()}function xt(e){const t=Y(e);return t===e?t:(ve(t,"iterate",Jt),ze(e)?t:t.map(Ne))}function $s(e){return ve(e=Y(e),"iterate",Jt),e}function Ke(e,t){return rt(e)?At(_t(e)?Ne(t):t):Ne(t)}const Go={__proto__:null,[Symbol.iterator](){return Fs(this,Symbol.iterator,e=>Ke(this,e))},concat(...e){return xt(this).concat(...e.map(t=>L(t)?xt(t):t))},entries(){return Fs(this,"entries",e=>(e[1]=Ke(this,e[1]),e))},every(e,t){return Qe(this,"every",e,t,void 0,arguments)},filter(e,t){return Qe(this,"filter",e,t,s=>s.map(n=>Ke(this,n)),arguments)},find(e,t){return Qe(this,"find",e,t,s=>Ke(this,s),arguments)},findIndex(e,t){return Qe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Qe(this,"findLast",e,t,s=>Ke(this,s),arguments)},findLastIndex(e,t){return Qe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Qe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Bs(this,"includes",e)},indexOf(...e){return Bs(this,"indexOf",e)},join(e){return xt(this).join(e)},lastIndexOf(...e){return Bs(this,"lastIndexOf",e)},map(e,t){return Qe(this,"map",e,t,void 0,arguments)},pop(){return Nt(this,"pop")},push(...e){return Nt(this,"push",e)},reduce(e,...t){return Un(this,"reduce",e,t)},reduceRight(e,...t){return Un(this,"reduceRight",e,t)},shift(){return Nt(this,"shift")},some(e,t){return Qe(this,"some",e,t,void 0,arguments)},splice(...e){return Nt(this,"splice",e)},toReversed(){return xt(this).toReversed()},toSorted(e){return xt(this).toSorted(e)},toSpliced(...e){return xt(this).toSpliced(...e)},unshift(...e){return Nt(this,"unshift",e)},values(){return Fs(this,"values",e=>Ke(this,e))}};function Fs(e,t,s){const n=$s(e),i=n[t]();return n!==e&&!ze(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=s(o.value)),o}),i}const Ko=Array.prototype;function Qe(e,t,s,n,i,o){const r=$s(e),a=r!==e&&!ze(e),l=r[t];if(l!==Ko[t]){const b=l.apply(e,o);return a?Ne(b):b}let g=s;r!==e&&(a?g=function(b,E){return s.call(this,Ke(e,b),E,e)}:s.length>2&&(g=function(b,E){return s.call(this,b,E,e)}));const d=l.call(r,g,n);return a&&i?i(d):d}function Un(e,t,s,n){const i=$s(e),o=i!==e&&!ze(e);let r=s,a=!1;i!==e&&(o?(a=n.length===0,r=function(g,d,b){return a&&(a=!1,g=Ke(e,g)),s.call(this,g,Ke(e,d),b,e)}):s.length>3&&(r=function(g,d,b){return s.call(this,g,d,b,e)}));const l=i[t](r,...n);return a?Ke(e,l):l}function Bs(e,t,s){const n=Y(e);ve(n,"iterate",Jt);const i=n[t](...s);return(i===-1||i===!1)&&_n(s[0])?(s[0]=Y(s[0]),n[t](...s)):i}function Nt(e,t,s=[]){Ye(),hn();const n=Y(e)[t].apply(e,s);return gn(),Xe(),n}const Wo=cn("__proto__,__v_isRef,__isVue"),Ri=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Je));function qo(e){Je(e)||(e=String(e));const t=Y(this);return ve(t,"has",e),t.hasOwnProperty(e)}class zi{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(i?o?ir:Ni:o?Ui:ji).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=L(t);if(!i){let l;if(r&&(l=Go[s]))return l;if(s==="hasOwnProperty")return qo}const a=Reflect.get(t,s,ye(t)?t:n);if((Je(s)?Ri.has(s):Wo(s))||(i||ve(t,"get",s),o))return a;if(ye(a)){const l=r&&dn(s)?a:a.value;return i&&te(l)?en(l):l}return te(a)?i?en(a):Yt(a):a}}class Ii extends zi{constructor(t=!1){super(!1,t)}set(t,s,n,i){let o=t[s];const r=L(t)&&dn(s);if(!this._isShallow){const g=rt(o);if(!ze(n)&&!rt(n)&&(o=Y(o),n=Y(n)),!r&&ye(o)&&!ye(n))return g||(o.value=n),!0}const a=r?Number(s)e,ls=e=>Reflect.getPrototypeOf(e);function Qo(e,t,s){return function(...n){const i=this.__v_raw,o=Y(i),r=St(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,g=i[e](...n),d=s?Qs:t?At:Ne;return!t&&ve(o,"iterate",l?Xs:yt),_e(Object.create(g),{next(){const{value:b,done:E}=g.next();return E?{value:b,done:E}:{value:a?[d(b[0]),d(b[1])]:d(b),done:E}}})}}function cs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function er(e,t){const s={get(i){const o=this.__v_raw,r=Y(o),a=Y(i);e||(qe(i,a)&&ve(r,"get",i),ve(r,"get",a));const{has:l}=ls(r),g=t?Qs:e?At:Ne;if(l.call(r,i))return g(o.get(i));if(l.call(r,a))return g(o.get(a));o!==r&&o.get(i)},get size(){const i=this.__v_raw;return!e&&ve(Y(i),"iterate",yt),i.size},has(i){const o=this.__v_raw,r=Y(o),a=Y(i);return e||(qe(i,a)&&ve(r,"has",i),ve(r,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const r=this,a=r.__v_raw,l=Y(a),g=t?Qs:e?At:Ne;return!e&&ve(l,"iterate",yt),a.forEach((d,b)=>i.call(o,g(d),g(b),r))}};return _e(s,e?{add:cs("add"),set:cs("set"),delete:cs("delete"),clear:cs("clear")}:{add(i){const o=Y(this),r=ls(o),a=Y(i),l=!t&&!ze(i)&&!rt(i)?a:i;return r.has.call(o,l)||qe(i,l)&&r.has.call(o,i)||qe(a,l)&&r.has.call(o,a)||(o.add(l),nt(o,"add",l,l)),this},set(i,o){!t&&!ze(o)&&!rt(o)&&(o=Y(o));const r=Y(this),{has:a,get:l}=ls(r);let g=a.call(r,i);g||(i=Y(i),g=a.call(r,i));const d=l.call(r,i);return r.set(i,o),g?qe(o,d)&&nt(r,"set",i,o):nt(r,"add",i,o),this},delete(i){const o=Y(this),{has:r,get:a}=ls(o);let l=r.call(o,i);l||(i=Y(i),l=r.call(o,i)),a&&a.call(o,i);const g=o.delete(i);return l&&nt(o,"delete",i,void 0),g},clear(){const i=Y(this),o=i.size!==0,r=i.clear();return o&&nt(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=Qo(i,e,t)}),s}function vn(e,t){const s=er(e,t);return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(X(s,i)&&i in n?s:n,i,o)}const tr={get:vn(!1,!1)},sr={get:vn(!1,!0)},nr={get:vn(!0,!1)};const ji=new WeakMap,Ui=new WeakMap,Ni=new WeakMap,ir=new WeakMap;function or(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yt(e){return rt(e)?e:yn(e,!1,Jo,tr,ji)}function rr(e){return yn(e,!1,Xo,sr,Ui)}function en(e){return yn(e,!0,Yo,nr,Ni)}function yn(e,t,s,n,i){if(!te(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=i.get(e);if(o)return o;const r=or(Oo(e));if(r===0)return e;const a=new Proxy(e,r===2?n:s);return i.set(e,a),a}function _t(e){return rt(e)?_t(e.__v_raw):!!(e&&e.__v_isReactive)}function rt(e){return!!(e&&e.__v_isReadonly)}function ze(e){return!!(e&&e.__v_isShallow)}function _n(e){return e?!!e.__v_raw:!1}function Y(e){const t=e&&e.__v_raw;return t?Y(t):e}function ar(e){return!X(e,"__v_skip")&&Object.isExtensible(e)&&wi(e,"__v_skip",!0),e}const Ne=e=>te(e)?Yt(e):e,At=e=>te(e)?en(e):e;function ye(e){return e?e.__v_isRef===!0:!1}function H(e){return lr(e,!1)}function lr(e,t){return ye(e)?e:new cr(e,t)}class cr{constructor(t,s){this.dep=new bn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:Y(t),this._value=s?t:Ne(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||ze(t)||rt(t);t=n?t:Y(t),qe(t,s)&&(this._rawValue=t,this._value=n?t:Ne(t),this.dep.trigger())}}function h(e){return ye(e)?e.value:e}const ur={get:(e,t,s)=>t==="__v_raw"?e:h(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return ye(i)&&!ye(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function Mi(e){return _t(e)?e:new Proxy(e,ur)}class dr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new bn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Zt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&oe!==this)return Pi(this,!0),!0}get value(){const t=this.dep.track();return $i(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function pr(e,t,s=!1){let n,i;return W(e)?n=e:(n=e.get,i=e.set),new dr(n,i,s)}const us={},ms=new WeakMap;let vt;function fr(e,t=!1,s=vt){if(s){let n=ms.get(s);n||ms.set(s,n=[]),n.push(e)}}function hr(e,t,s=ne){const{immediate:n,deep:i,once:o,scheduler:r,augmentJob:a,call:l}=s,g=U=>i?U:ze(U)||i===!1||i===0?it(U,1):it(U);let d,b,E,A,V=!1,x=!1;if(ye(e)?(b=()=>e.value,V=ze(e)):_t(e)?(b=()=>g(e),V=!0):L(e)?(x=!0,V=e.some(U=>_t(U)||ze(U)),b=()=>e.map(U=>{if(ye(U))return U.value;if(_t(U))return g(U);if(W(U))return l?l(U,2):U()})):W(e)?t?b=l?()=>l(e,2):e:b=()=>{if(E){Ye();try{E()}finally{Xe()}}const U=vt;vt=d;try{return l?l(e,3,[A]):e(A)}finally{vt=U}}:b=Ze,t&&i){const U=b,le=i===!0?1/0:i;b=()=>it(U(),le)}const N=Bo(),R=()=>{d.stop(),N&&N.active&&un(N.effects,d)};if(o&&t){const U=t;t=(...le)=>{const z=U(...le);return R(),z}}let G=x?new Array(e.length).fill(us):us;const Z=U=>{if(!(!(d.flags&1)||!d.dirty&&!U))if(t){const le=d.run();if(U||i||V||(x?le.some((z,K)=>qe(z,G[K])):qe(le,G))){E&&E();const z=vt;vt=d;try{const K=[le,G===us?void 0:x&&G[0]===us?[]:G,A];G=le,l?l(t,3,K):t(...K)}finally{vt=z}}}else d.run()};return a&&a(Z),d=new Si(b),d.scheduler=r?()=>r(Z,!1):Z,A=U=>fr(U,!1,d),E=d.onStop=()=>{const U=ms.get(d);if(U){if(l)l(U,4);else for(const le of U)le();ms.delete(d)}},t?n?Z(!0):G=d.run():r?r(Z.bind(null,!0),!0):d.run(),R.pause=d.pause.bind(d),R.resume=d.resume.bind(d),R.stop=R,R}function it(e,t=1/0,s){if(t<=0||!te(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ye(e))it(e.value,t,s);else if(L(e))for(let n=0;n{it(n,t,s)});else if(yi(e)){for(const n in e)it(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&it(e[n],t,s)}return e}/** +* @vue/runtime-core v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function ss(e,t,s,n){try{return n?e(...n):e()}catch(i){Os(i,t,s)}}function Me(e,t,s,n){if(W(e)){const i=ss(e,t,s,n);return i&&bi(i)&&i.catch(o=>{Os(o,t,s)}),i}if(L(e)){const i=[];for(let o=0;o>>1,i=ke[n],o=Xt(i);o=Xt(s)?ke.push(e):ke.splice(mr(t),0,e),e.flags|=1,Bi()}}function Bi(){bs||(bs=Li.then(Vi))}function br(e){L(e)?Et.push(...e):ct&&e.id===-1?ct.splice(kt+1,0,e):e.flags&1||(Et.push(e),e.flags|=1),Bi()}function Nn(e,t,s=Ge+1){for(;sXt(s)-Xt(n));if(Et.length=0,ct){ct.push(...t);return}for(ct=t,kt=0;kte.id==null?e.flags&2?-1:1/0:e.id;function Vi(e){try{for(Ge=0;Ge{n._d&&Zn(-1);const o=vs(t);let r;try{r=e(...i)}finally{vs(o),n._d&&Zn(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function pe(e,t){if(Re===null)return e;const s=Is(Re),n=e.dirs||(e.dirs=[]);for(let i=0;i1)return s&&W(t)?t.call(n&&n.proxy):t}}const _r=Symbol.for("v-scx"),wr=()=>fs(_r);function Hs(e,t,s){return Ki(e,t,s)}function Ki(e,t,s=ne){const{immediate:n,deep:i,flush:o,once:r}=s,a=_e({},s),l=t&&n||!t&&o!=="post";let g;if(es){if(o==="sync"){const A=wr();g=A.__watcherHandles||(A.__watcherHandles=[])}else if(!l){const A=()=>{};return A.stop=Ze,A.resume=Ze,A.pause=Ze,A}}const d=Te;a.call=(A,V,x)=>Me(A,d,V,x);let b=!1;o==="post"?a.scheduler=A=>{Se(A,d&&d.suspense)}:o!=="sync"&&(b=!0,a.scheduler=(A,V)=>{V?A():wn(A)}),a.augmentJob=A=>{t&&(A.flags|=4),b&&(A.flags|=2,d&&(A.id=d.uid,A.i=d))};const E=hr(e,t,a);return es&&(g?g.push(E):l&&E()),E}function xr(e,t,s){const n=this.proxy,i=ue(e)?e.includes(".")?Wi(n,e):()=>n[e]:e.bind(n,n);let o;W(t)?o=t:(o=t.handler,s=t);const r=ns(this),a=Ki(i,o.bind(n),s);return r(),a}function Wi(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;ie.__isTeleport,Vs=Symbol("_leaveCb");function xn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function qi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Mn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ys=new WeakMap;function Gt(e,t,s,n,i=!1){if(L(e)){e.forEach((x,N)=>Gt(x,t&&(L(t)?t[N]:t),s,n,i));return}if(Kt(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Gt(e,t,s,n.component.subTree);return}const o=n.shapeFlag&4?Is(n.component):n.el,r=i?null:o,{i:a,r:l}=e,g=t&&t.r,d=a.refs===ne?a.refs={}:a.refs,b=a.setupState,E=Y(b),A=b===ne?mi:x=>Mn(d,x)?!1:X(E,x),V=(x,N)=>!(N&&Mn(d,N));if(g!=null&&g!==l){if(Ln(t),ue(g))d[g]=null,A(g)&&(b[g]=null);else if(ye(g)){const x=t;V(g,x.k)&&(g.value=null),x.k&&(d[x.k]=null)}}if(W(l)){Ye();try{ss(l,a,12,[r,d])}finally{Xe()}}else{const x=ue(l),N=ye(l);if(x||N){const R=()=>{if(e.f){const G=x?A(l)?b[l]:d[l]:V()||!e.k?l.value:d[e.k];if(i)L(G)&&un(G,o);else if(L(G))G.includes(o)||G.push(o);else if(x)d[l]=[o],A(l)&&(b[l]=d[l]);else{const Z=[o];V(l,e.k)&&(l.value=Z),e.k&&(d[e.k]=Z)}}else x?(d[l]=r,A(l)&&(b[l]=r)):N&&(V(l,e.k)&&(l.value=r),e.k&&(d[e.k]=r))};if(r){const G=()=>{R(),ys.delete(e)};G.id=-1,ys.set(e,G),Se(G,s)}else Ln(e),R()}}}function Ln(e){const t=ys.get(e);t&&(t.flags|=8,ys.delete(e))}As().requestIdleCallback;As().cancelIdleCallback;const Kt=e=>!!e.type.__asyncLoader,Zi=e=>e.type.__isKeepAlive;function Sr(e,t){Ji(e,"a",t)}function Er(e,t){Ji(e,"da",t)}function Ji(e,t,s=Te){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Ds(t,n,s),s){let i=s.parent;for(;i&&i.parent;)Zi(i.parent.vnode)&&Pr(n,t,s,i),i=i.parent}}function Pr(e,t,s,n){const i=Ds(t,e,n,!0);kn(()=>{un(n[t],i)},s)}function Ds(e,t,s=Te,n=!1){if(s){const i=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...r)=>{Ye();const a=ns(s),l=Me(t,s,e,r);return a(),Xe(),l});return n?i.unshift(o):i.push(o),o}}const at=e=>(t,s=Te)=>{(!es||e==="sp")&&Ds(e,(...n)=>t(...n),s)},Cr=at("bm"),lt=at("m"),Ar=at("bu"),$r=at("u"),Or=at("bum"),kn=at("um"),Dr=at("sp"),Rr=at("rtg"),zr=at("rtc");function Ir(e,t=Te){Ds("ec",e,t)}const jr=Symbol.for("v-ndc");function Ce(e,t,s,n){let i;const o=s,r=L(e);if(r||ue(e)){const a=r&&_t(e);let l=!1,g=!1;a&&(l=!ze(e),g=rt(e),e=$s(e)),i=new Array(e.length);for(let d=0,b=e.length;dt(a,l,void 0,o));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,g=a.length;le?vo(e)?Is(e):tn(e.parent):null,Wt=_e(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>tn(e.parent),$root:e=>tn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Xi(e),$forceUpdate:e=>e.f||(e.f=()=>{wn(e.update)}),$nextTick:e=>e.n||(e.n=Fi.bind(e.proxy)),$watch:e=>xr.bind(e)}),Gs=(e,t)=>e!==ne&&!e.__isScriptSetup&&X(e,t),Ur={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:o,accessCache:r,type:a,appContext:l}=e;if(t[0]!=="$"){const E=r[t];if(E!==void 0)switch(E){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return o[t]}else{if(Gs(n,t))return r[t]=1,n[t];if(i!==ne&&X(i,t))return r[t]=2,i[t];if(X(o,t))return r[t]=3,o[t];if(s!==ne&&X(s,t))return r[t]=4,s[t];sn&&(r[t]=0)}}const g=Wt[t];let d,b;if(g)return t==="$attrs"&&ve(e.attrs,"get",""),g(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(s!==ne&&X(s,t))return r[t]=4,s[t];if(b=l.config.globalProperties,X(b,t))return b[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:o}=e;return Gs(i,t)?(i[t]=s,!0):n!==ne&&X(n,t)?(n[t]=s,!0):X(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:o,type:r}},a){let l;return!!(s[a]||e!==ne&&a[0]!=="$"&&X(e,a)||Gs(t,a)||X(o,a)||X(n,a)||X(Wt,a)||X(i.config.globalProperties,a)||(l=r.__cssModules)&&l[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:X(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Fn(e){return L(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let sn=!0;function Nr(e){const t=Xi(e),s=e.proxy,n=e.ctx;sn=!1,t.beforeCreate&&Bn(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:g,created:d,beforeMount:b,mounted:E,beforeUpdate:A,updated:V,activated:x,deactivated:N,beforeDestroy:R,beforeUnmount:G,destroyed:Z,unmounted:U,render:le,renderTracked:z,renderTriggered:K,errorCaptured:P,serverPrefetch:I,expose:J,inheritAttrs:wt,components:is,directives:os,filters:js}=t;if(g&&Mr(g,n,null),r)for(const ce in r){const ie=r[ce];W(ie)&&(n[ce]=ie.bind(s))}if(i){const ce=i.call(s,s);te(ce)&&(e.data=Yt(ce))}if(sn=!0,o)for(const ce in o){const ie=o[ce],ht=W(ie)?ie.bind(s,s):W(ie.get)?ie.get.bind(s,s):Ze,rs=!W(ie)&&W(ie.set)?ie.set.bind(s):Ze,gt=Oe({get:ht,set:rs});Object.defineProperty(n,ce,{enumerable:!0,configurable:!0,get:()=>gt.value,set:Le=>gt.value=Le})}if(a)for(const ce in a)Yi(a[ce],n,s,ce);if(l){const ce=W(l)?l.call(s):l;Reflect.ownKeys(ce).forEach(ie=>{yr(ie,ce[ie])})}d&&Bn(d,e,"c");function we(ce,ie){L(ie)?ie.forEach(ht=>ce(ht.bind(s))):ie&&ce(ie.bind(s))}if(we(Cr,b),we(lt,E),we(Ar,A),we($r,V),we(Sr,x),we(Er,N),we(Ir,P),we(zr,z),we(Rr,K),we(Or,G),we(kn,U),we(Dr,I),L(J))if(J.length){const ce=e.exposed||(e.exposed={});J.forEach(ie=>{Object.defineProperty(ce,ie,{get:()=>s[ie],set:ht=>s[ie]=ht,enumerable:!0})})}else e.exposed||(e.exposed={});le&&e.render===Ze&&(e.render=le),wt!=null&&(e.inheritAttrs=wt),is&&(e.components=is),os&&(e.directives=os),I&&qi(e)}function Mr(e,t,s=Ze){L(e)&&(e=nn(e));for(const n in e){const i=e[n];let o;te(i)?"default"in i?o=fs(i.from||n,i.default,!0):o=fs(i.from||n):o=fs(i),ye(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[n]=o}}function Bn(e,t,s){Me(L(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Yi(e,t,s,n){let i=n.includes(".")?Wi(s,n):()=>s[n];if(ue(e)){const o=t[e];W(o)&&Hs(i,o)}else if(W(e))Hs(i,e.bind(s));else if(te(e))if(L(e))e.forEach(o=>Yi(o,t,s,n));else{const o=W(e.handler)?e.handler.bind(s):t[e.handler];W(o)&&Hs(i,o,e)}}function Xi(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!s&&!n?l=t:(l={},i.length&&i.forEach(g=>_s(l,g,r,!0)),_s(l,t,r)),te(t)&&o.set(t,l),l}function _s(e,t,s,n=!1){const{mixins:i,extends:o}=t;o&&_s(e,o,s,!0),i&&i.forEach(r=>_s(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const a=Lr[r]||s&&s[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const Lr={data:Hn,props:Vn,emits:Vn,methods:Lt,computed:Lt,beforeCreate:xe,created:xe,beforeMount:xe,mounted:xe,beforeUpdate:xe,updated:xe,beforeDestroy:xe,beforeUnmount:xe,destroyed:xe,unmounted:xe,activated:xe,deactivated:xe,errorCaptured:xe,serverPrefetch:xe,components:Lt,directives:Lt,watch:Br,provide:Hn,inject:Fr};function Hn(e,t){return t?e?function(){return _e(W(e)?e.call(this,this):e,W(t)?t.call(this,this):t)}:t:e}function Fr(e,t){return Lt(nn(e),nn(t))}function nn(e){if(L(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${je(t)}Modifiers`]||e[`${ft(t)}Modifiers`];function Kr(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||ne;let i=s;const o=t.startsWith("update:"),r=o&&Gr(n,t.slice(7));r&&(r.trim&&(i=s.map(d=>ue(d)?d.trim():d)),r.number&&(i=s.map(Cs)));let a,l=n[a=Ns(t)]||n[a=Ns(je(t))];!l&&o&&(l=n[a=Ns(ft(t))]),l&&Me(l,e,6,i);const g=n[a+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Me(g,e,6,i)}}const Wr=new WeakMap;function eo(e,t,s=!1){const n=s?Wr:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!W(e)){const l=g=>{const d=eo(g,t,!0);d&&(a=!0,_e(r,d))};!s&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(te(e)&&n.set(e,null),null):(L(o)?o.forEach(l=>r[l]=null):_e(r,o),te(e)&&n.set(e,r),r)}function Rs(e,t){return!e||!Ss(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),X(e,t[0].toLowerCase()+t.slice(1))||X(e,ft(t))||X(e,t))}function Gn(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[o],slots:r,attrs:a,emit:l,render:g,renderCache:d,props:b,data:E,setupState:A,ctx:V,inheritAttrs:x}=e,N=vs(e);let R,G;try{if(s.shapeFlag&4){const U=i||n,le=U;R=We(g.call(le,U,d,b,A,E,V)),G=a}else{const U=t;R=We(U.length>1?U(b,{attrs:a,slots:r,emit:l}):U(b,null)),G=t.props?a:qr(a)}}catch(U){qt.length=0,Os(U,e,1),R=ee(dt)}let Z=R;if(G&&x!==!1){const U=Object.keys(G),{shapeFlag:le}=Z;U.length&&le&7&&(o&&U.some(Es)&&(G=Zr(G,o)),Z=$t(Z,G,!1,!0))}return s.dirs&&(Z=$t(Z,null,!1,!0),Z.dirs=Z.dirs?Z.dirs.concat(s.dirs):s.dirs),s.transition&&xn(Z,s.transition),R=Z,vs(N),R}const qr=e=>{let t;for(const s in e)(s==="class"||s==="style"||Ss(s))&&((t||(t={}))[s]=e[s]);return t},Zr=(e,t)=>{const s={};for(const n in e)(!Es(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Jr(e,t,s){const{props:n,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,g=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&l>=0){if(l&1024)return!0;if(l&16)return n?Kn(n,r,g):!!r;if(l&8){const d=t.dynamicProps;for(let b=0;bObject.create(so),io=e=>Object.getPrototypeOf(e)===so;function Xr(e,t,s,n=!1){const i={},o=no();e.propsDefaults=Object.create(null),oo(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);s?e.props=n?i:rr(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Qr(e,t,s,n){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=Y(i),[l]=e.propsOptions;let g=!1;if((n||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let b=0;b{l=!0;const[E,A]=ro(b,t,!0);_e(r,E),A&&a.push(...A)};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!l)return te(e)&&n.set(e,Tt),Tt;if(L(o))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",Sn=e=>L(e)?e.map(We):[We(e)],ta=(e,t,s)=>{if(t._n)return t;const n=vr((...i)=>Sn(t(...i)),s);return n._c=!1,n},ao=(e,t,s)=>{const n=e._ctx;for(const i in e){if(Tn(i))continue;const o=e[i];if(W(o))t[i]=ta(i,o,n);else if(o!=null){const r=Sn(o);t[i]=()=>r}}},lo=(e,t)=>{const s=Sn(t);e.slots.default=()=>s},co=(e,t,s)=>{for(const n in t)(s||!Tn(n))&&(e[n]=t[n])},sa=(e,t,s)=>{const n=e.slots=no();if(e.vnode.shapeFlag&32){const i=t._;i?(co(n,t,s),s&&wi(n,"_",i,!0)):ao(t,n)}else t&&lo(e,t)},na=(e,t,s)=>{const{vnode:n,slots:i}=e;let o=!0,r=ne;if(n.shapeFlag&32){const a=t._;a?s&&a===1?o=!1:co(i,t,s):(o=!t.$stable,ao(t,i)),r=t}else t&&(lo(e,t),r={default:1});if(o)for(const a in i)!Tn(a)&&r[a]==null&&delete i[a]},Se=la;function ia(e){return oa(e)}function oa(e,t){const s=As();s.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:g,setElementText:d,parentNode:b,nextSibling:E,setScopeId:A=Ze,insertStaticContent:V}=e,x=(c,p,v,S=null,k=null,_=null,O=void 0,$=null,C=!!p.dynamicChildren)=>{if(c===p)return;c&&!Mt(c,p)&&(S=as(c),Le(c,k,_,!0),c=null),p.patchFlag===-2&&(C=!1,p.dynamicChildren=null);const{type:w,ref:M,shapeFlag:D}=p;switch(w){case zs:N(c,p,v,S);break;case dt:R(c,p,v,S);break;case Ws:c==null&&G(p,v,S,O);break;case re:is(c,p,v,S,k,_,O,$,C);break;default:D&1?le(c,p,v,S,k,_,O,$,C):D&6?os(c,p,v,S,k,_,O,$,C):(D&64||D&128)&&w.process(c,p,v,S,k,_,O,$,C,jt)}M!=null&&k?Gt(M,c&&c.ref,_,p||c,!p):M==null&&c&&c.ref!=null&&Gt(c.ref,null,_,c,!0)},N=(c,p,v,S)=>{if(c==null)n(p.el=a(p.children),v,S);else{const k=p.el=c.el;p.children!==c.children&&g(k,p.children)}},R=(c,p,v,S)=>{c==null?n(p.el=l(p.children||""),v,S):p.el=c.el},G=(c,p,v,S)=>{[c.el,c.anchor]=V(c.children,p,v,S,c.el,c.anchor)},Z=({el:c,anchor:p},v,S)=>{let k;for(;c&&c!==p;)k=E(c),n(c,v,S),c=k;n(p,v,S)},U=({el:c,anchor:p})=>{let v;for(;c&&c!==p;)v=E(c),i(c),c=v;i(p)},le=(c,p,v,S,k,_,O,$,C)=>{if(p.type==="svg"?O="svg":p.type==="math"&&(O="mathml"),c==null)z(p,v,S,k,_,O,$,C);else{const w=c.el&&c.el._isVueCE?c.el:null;try{w&&w._beginPatch(),I(c,p,k,_,O,$,C)}finally{w&&w._endPatch()}}},z=(c,p,v,S,k,_,O,$)=>{let C,w;const{props:M,shapeFlag:D,transition:j,dirs:B}=c;if(C=c.el=r(c.type,_,M&&M.is,M),D&8?d(C,c.children):D&16&&P(c.children,C,null,S,k,Ks(c,_),O,$),B&&mt(c,null,S,"created"),K(C,c,c.scopeId,O,S),M){for(const se in M)se!=="value"&&!Bt(se)&&o(C,se,null,M[se],_,S);"value"in M&&o(C,"value",null,M.value,_),(w=M.onVnodeBeforeMount)&&Ve(w,S,c)}B&&mt(c,null,S,"beforeMount");const q=ra(k,j);q&&j.beforeEnter(C),n(C,p,v),((w=M&&M.onVnodeMounted)||q||B)&&Se(()=>{try{w&&Ve(w,S,c),q&&j.enter(C),B&&mt(c,null,S,"mounted")}finally{}},k)},K=(c,p,v,S,k)=>{if(v&&A(c,v),S)for(let _=0;_{for(let w=C;w{const $=p.el=c.el;let{patchFlag:C,dynamicChildren:w,dirs:M}=p;C|=c.patchFlag&16;const D=c.props||ne,j=p.props||ne;let B;if(v&&bt(v,!1),(B=j.onVnodeBeforeUpdate)&&Ve(B,v,p,c),M&&mt(p,c,v,"beforeUpdate"),v&&bt(v,!0),w&&(!c.dynamicChildren||c.dynamicChildren.length!==w.length)&&(C=0,O=!1,w=null),(D.innerHTML&&j.innerHTML==null||D.textContent&&j.textContent==null)&&d($,""),w?J(c.dynamicChildren,w,$,v,S,Ks(p,k),_):O||ie(c,p,$,null,v,S,Ks(p,k),_,!1),C>0){if(C&16)wt($,D,j,v,k);else if(C&2&&D.class!==j.class&&o($,"class",null,j.class,k),C&4&&o($,"style",D.style,j.style,k),C&8){const q=p.dynamicProps;for(let se=0;se{B&&Ve(B,v,p,c),M&&mt(p,c,v,"updated")},S)},J=(c,p,v,S,k,_,O)=>{for(let $=0;${if(p!==v){if(p!==ne)for(const _ in p)!Bt(_)&&!(_ in v)&&o(c,_,p[_],null,k,S);for(const _ in v){if(Bt(_))continue;const O=v[_],$=p[_];O!==$&&_!=="value"&&o(c,_,$,O,k,S)}"value"in v&&o(c,"value",p.value,v.value,k)}},is=(c,p,v,S,k,_,O,$,C)=>{const w=p.el=c?c.el:a(""),M=p.anchor=c?c.anchor:a("");let{patchFlag:D,dynamicChildren:j,slotScopeIds:B}=p;B&&($=$?$.concat(B):B),c==null?(n(w,v,S),n(M,v,S),P(p.children||[],v,M,k,_,O,$,C)):D>0&&D&64&&j&&c.dynamicChildren&&c.dynamicChildren.length===j.length?(J(c.dynamicChildren,j,v,k,_,O,$),(p.key!=null||k&&p===k.subTree)&&uo(c,p,!0)):ie(c,p,v,M,k,_,O,$,C)},os=(c,p,v,S,k,_,O,$,C)=>{p.slotScopeIds=$,c==null?p.shapeFlag&512?k.ctx.activate(p,v,S,O,C):js(p,v,S,k,_,O,C):Cn(c,p,C)},js=(c,p,v,S,k,_,O)=>{const $=c.component=ga(c,S,k);if(Zi(c)&&($.ctx.renderer=jt),ba($,!1,O),$.asyncDep){if(k&&k.registerDep($,we,O),!c.el){const C=$.subTree=ee(dt);R(null,C,p,v),c.placeholder=C.el}}else we($,c,p,v,k,_,O)},Cn=(c,p,v)=>{const S=p.component=c.component;if(Jr(c,p,v))if(S.asyncDep&&!S.asyncResolved){ce(S,p,v);return}else S.next=p,S.update();else p.el=c.el,S.vnode=p},we=(c,p,v,S,k,_,O)=>{const $=()=>{if(c.isMounted){let{next:D,bu:j,u:B,parent:q,vnode:se}=c;{const Be=po(c);if(Be){D&&(D.el=se.el,ce(c,D,O)),Be.asyncDep.then(()=>{Se(()=>{c.isUnmounted||w()},k)});return}}let Q=D,de;bt(c,!1),D?(D.el=se.el,ce(c,D,O)):D=se,j&&ps(j),(de=D.props&&D.props.onVnodeBeforeUpdate)&&Ve(de,q,D,se),bt(c,!0);const ge=Gn(c),Fe=c.subTree;c.subTree=ge,x(Fe,ge,b(Fe.el),as(Fe),c,k,_),D.el=ge.el,Q===null&&Yr(c,ge.el),B&&Se(B,k),(de=D.props&&D.props.onVnodeUpdated)&&Se(()=>Ve(de,q,D,se),k)}else{let D;const{el:j,props:B}=p,{bm:q,m:se,parent:Q,root:de,type:ge}=c,Fe=Kt(p);bt(c,!1),q&&ps(q),!Fe&&(D=B&&B.onVnodeBeforeMount)&&Ve(D,Q,p),bt(c,!0);{de.ce&&de.ce._hasShadowRoot()&&de.ce._injectChildStyle(ge,c.parent?c.parent.type:void 0);const Be=c.subTree=Gn(c);x(null,Be,v,S,c,k,_),p.el=Be.el}if(se&&Se(se,k),!Fe&&(D=B&&B.onVnodeMounted)){const Be=p;Se(()=>Ve(D,Q,Be),k)}(p.shapeFlag&256||Q&&Kt(Q.vnode)&&Q.vnode.shapeFlag&256)&&c.a&&Se(c.a,k),c.isMounted=!0,p=v=S=null}};c.scope.on();const C=c.effect=new Si($);c.scope.off();const w=c.update=C.run.bind(C),M=c.job=C.runIfDirty.bind(C);M.i=c,M.id=c.uid,C.scheduler=()=>wn(M),bt(c,!0),w()},ce=(c,p,v)=>{p.component=c;const S=c.vnode.props;c.vnode=p,c.next=null,Qr(c,p.props,S,v),na(c,p.children,v),Ye(),Nn(c),Xe()},ie=(c,p,v,S,k,_,O,$,C=!1)=>{const w=c&&c.children,M=c?c.shapeFlag:0,D=p.children,{patchFlag:j,shapeFlag:B}=p;if(j>0){if(j&128){rs(w,D,v,S,k,_,O,$,C);return}else if(j&256){ht(w,D,v,S,k,_,O,$,C);return}}B&8?(M&16&&It(w,k,_),D!==w&&d(v,D)):M&16?B&16?rs(w,D,v,S,k,_,O,$,C):It(w,k,_,!0):(M&8&&d(v,""),B&16&&P(D,v,S,k,_,O,$,C))},ht=(c,p,v,S,k,_,O,$,C)=>{c=c||Tt,p=p||Tt;const w=c.length,M=p.length,D=Math.min(w,M);let j;for(j=0;jM?It(c,k,_,!0,!1,D):P(p,v,S,k,_,O,$,C,D)},rs=(c,p,v,S,k,_,O,$,C)=>{let w=0;const M=p.length;let D=c.length-1,j=M-1;for(;w<=D&&w<=j;){const B=c[w],q=p[w]=C?st(p[w]):We(p[w]);if(Mt(B,q))x(B,q,v,null,k,_,O,$,C);else break;w++}for(;w<=D&&w<=j;){const B=c[D],q=p[j]=C?st(p[j]):We(p[j]);if(Mt(B,q))x(B,q,v,null,k,_,O,$,C);else break;D--,j--}if(w>D){if(w<=j){const B=j+1,q=Bj)for(;w<=D;)Le(c[w],k,_,!0),w++;else{const B=w,q=w,se=new Map;for(w=q;w<=j;w++){const Pe=p[w]=C?st(p[w]):We(p[w]);Pe.key!=null&&se.set(Pe.key,w)}let Q,de=0;const ge=j-q+1;let Fe=!1,Be=0;const Ut=new Array(ge);for(w=0;w=ge){Le(Pe,k,_,!0);continue}let He;if(Pe.key!=null)He=se.get(Pe.key);else for(Q=q;Q<=j;Q++)if(Ut[Q-q]===0&&Mt(Pe,p[Q])){He=Q;break}He===void 0?Le(Pe,k,_,!0):(Ut[He-q]=w+1,He>=Be?Be=He:Fe=!0,x(Pe,p[He],v,null,k,_,O,$,C),de++)}const On=Fe?aa(Ut):Tt;for(Q=On.length-1,w=ge-1;w>=0;w--){const Pe=q+w,He=p[Pe],Dn=p[Pe+1],Rn=Pe+1{const{el:_,type:O,transition:$,children:C,shapeFlag:w}=c;if(w&6){gt(c.component.subTree,p,v,S);return}if(w&128){c.suspense.move(p,v,S);return}if(w&64){O.move(c,p,v,jt);return}if(O===re){n(_,p,v);for(let D=0;D$.enter(_),k));else{const{leave:D,delayLeave:j,afterLeave:B}=$,q=()=>{c.ctx.isUnmounted?i(_):n(_,p,v)},se=()=>{const Q=_._isLeaving||!!_[Vs];_._isLeaving&&_[Vs](!0),$.persisted&&!Q?q():D(_,()=>{q(),B&&B()})};j?j(_,q,se):se()}else n(_,p,v)},Le=(c,p,v,S=!1,k=!1)=>{const{type:_,props:O,ref:$,children:C,dynamicChildren:w,shapeFlag:M,patchFlag:D,dirs:j,cacheIndex:B,memo:q}=c;if(D===-2&&(k=!1),$!=null&&(Ye(),Gt($,null,v,c,!0),Xe()),B!=null&&(p.renderCache[B]=void 0),M&256){p.ctx.deactivate(c);return}const se=M&1&&j,Q=!Kt(c);let de;if(Q&&(de=O&&O.onVnodeBeforeUnmount)&&Ve(de,p,c),M&6)Ao(c.component,v,S);else{if(M&128){c.suspense.unmount(v,S);return}se&&mt(c,null,p,"beforeUnmount"),M&64?c.type.remove(c,p,v,jt,S):w&&!w.hasOnce&&(_!==re||D>0&&D&64)?It(w,p,v,!1,!0):(_===re&&D&384||!k&&M&16)&&It(C,p,v),S&&An(c)}const ge=q!=null&&B==null;(Q&&(de=O&&O.onVnodeUnmounted)||se||ge)&&Se(()=>{de&&Ve(de,p,c),se&&mt(c,null,p,"unmounted"),ge&&(c.el=null)},v)},An=c=>{const{type:p,el:v,anchor:S,transition:k}=c;if(p===re){Co(v,S);return}if(p===Ws){U(c);return}const _=()=>{i(v),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(c.shapeFlag&1&&k&&!k.persisted){const{leave:O,delayLeave:$}=k,C=()=>O(v,_);$?$(c.el,_,C):C()}else _()},Co=(c,p)=>{let v;for(;c!==p;)v=E(c),i(c),c=v;i(p)},Ao=(c,p,v)=>{const{bum:S,scope:k,job:_,subTree:O,um:$,m:C,a:w}=c;qn(C),qn(w),S&&ps(S),k.stop(),_&&(_.flags|=8,Le(O,c,p,v)),$&&Se($,p),Se(()=>{c.isUnmounted=!0},p)},It=(c,p,v,S=!1,k=!1,_=0)=>{for(let O=_;O{if(c.shapeFlag&6)return as(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const p=E(c.anchor||c.el),v=p&&p[kr];return v?E(v):p};let Us=!1;const $n=(c,p,v)=>{let S;c==null?p._vnode&&(Le(p._vnode,null,null,!0),S=p._vnode.component):x(p._vnode||null,c,p,null,null,null,v),p._vnode=c,Us||(Us=!0,Nn(S),Hi(),Us=!1)},jt={p:x,um:Le,m:gt,r:An,mt:js,mc:P,pc:ie,pbc:J,n:as,o:e};return{render:$n,hydrate:void 0,createApp:Vr($n)}}function Ks({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function bt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ra(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function uo(e,t,s=!1){const n=e.children,i=t.children;if(L(n)&&L(i))for(let o=0;o>1,e[s[a]]0&&(t[n]=s[o-1]),s[o]=n)}}for(o=s.length,r=s[o-1];o-- >0;)s[o]=r,r=t[r];return s}function po(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:po(t)}function qn(e){if(e)for(let t=0;te.__isSuspense;function la(e,t){t&&t.pendingBranch?L(e)?t.effects.push(...e):t.effects.push(e):br(e)}const re=Symbol.for("v-fgt"),zs=Symbol.for("v-txt"),dt=Symbol.for("v-cmt"),Ws=Symbol.for("v-stc"),qt=[];let Ae=null;function y(e=!1){qt.push(Ae=e?null:[])}function ca(){qt.pop(),Ae=qt[qt.length-1]||null}let Qt=1;function Zn(e,t=!1){Qt+=e,e<0&&Ae&&t&&(Ae.hasOnce=!0)}function go(e){return e.dynamicChildren=Qt>0?Ae||Tt:null,ca(),Qt>0&&Ae&&Ae.push(e),e}function T(e,t,s,n,i,o){return go(u(e,t,s,n,i,o,!0))}function et(e,t,s,n,i){return go(ee(e,t,s,n,i,!0))}function mo(e){return e?e.__v_isVNode===!0:!1}function Mt(e,t){return e.type===t.type&&e.key===t.key}const bo=({key:e})=>e??null,hs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ue(e)||ye(e)||W(e)?{i:Re,r:e,k:t,f:!!s}:e:null);function u(e,t=null,s=null,n=0,i=null,o=e===re?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bo(t),ref:t&&hs(t),scopeId:Gi,slotScopeIds:null,children:s,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:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Re};return a?(ws(l,s),o&128&&e.normalize(l)):s&&(l.shapeFlag|=ue(s)?8:16),Qt>0&&!r&&Ae&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ae.push(l),l}const ee=ua;function ua(e,t=null,s=null,n=0,i=null,o=!1){if((!e||e===jr)&&(e=dt),mo(e)){const a=$t(e,t,!0);return s&&ws(a,s),Qt>0&&!o&&Ae&&(a.shapeFlag&6?Ae[Ae.indexOf(e)]=a:Ae.push(a)),a.patchFlag=-2,a}if(wa(e)&&(e=e.__vccOpts),t){t=da(t);let{class:a,style:l}=t;a&&!ue(a)&&(t.class=Ee(a)),te(l)&&(_n(l)&&!L(l)&&(l=_e({},l)),t.style=pn(l))}const r=ue(e)?1:ho(e)?128:Tr(e)?64:te(e)?4:W(e)?2:0;return u(e,t,s,n,i,r,o,!0)}function da(e){return e?_n(e)||io(e)?_e({},e):e:null}function $t(e,t,s=!1,n=!1){const{props:i,ref:o,patchFlag:r,children:a,transition:l}=e,g=t?pa(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&bo(g),ref:t&&t.ref?s&&o?L(o)?o.concat(hs(t)):[o,hs(t)]:hs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==re?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$t(e.ssContent),ssFallback:e.ssFallback&&$t(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&xn(d,l.clone(d)),d}function $e(e=" ",t=0){return ee(zs,null,e,t)}function F(e="",t=!1){return t?(y(),et(dt,null,e)):ee(dt,null,e)}function We(e){return e==null||typeof e=="boolean"?ee(dt):L(e)?ee(re,null,e.slice()):mo(e)?st(e):ee(zs,null,String(e))}function st(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$t(e)}function ws(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(L(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),ws(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!io(t)?t._ctx=Re:i===3&&Re&&(Re.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(W(t)){if(n&65){ws(e,{default:t});return}t={default:t,_ctx:Re},s=32}else t=String(t),n&64?(s=16,t=[$e(t)]):s=8;e.children=t,e.shapeFlag|=s}function pa(...e){const t={};for(let s=0;sTe||Re;let xs,rn;{const e=As(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};xs=t("__VUE_INSTANCE_SETTERS__",s=>Te=s),rn=t("__VUE_SSR_SETTERS__",s=>es=s)}const ns=e=>{const t=Te;return xs(e),e.scope.on(),()=>{e.scope.off(),xs(t)}},Jn=()=>{Te&&Te.scope.off(),xs(null)};function vo(e){return e.vnode.shapeFlag&4}let es=!1;function ba(e,t=!1,s=!1){t&&rn(t);const{props:n,children:i}=e.vnode,o=vo(e);Xr(e,n,o,t),sa(e,i,s||t);const r=o?va(e,t):void 0;return t&&rn(!1),r}function va(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ur);const{setup:n}=s;if(n){Ye();const i=e.setupContext=n.length>1?_a(e):null,o=ns(e),r=ss(n,e,0,[e.props,i]),a=bi(r);if(Xe(),o(),(a||e.sp)&&!Kt(e)&&qi(e),a){if(r.then(Jn,Jn),t)return r.then(l=>{Yn(e,l)}).catch(l=>{Os(l,e,0)});e.asyncDep=r}else Yn(e,r)}else yo(e)}function Yn(e,t,s){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:te(t)&&(e.setupState=Mi(t)),yo(e)}function yo(e,t,s){const n=e.type;e.render||(e.render=n.render||Ze);{const i=ns(e);Ye();try{Nr(e)}finally{Xe(),i()}}}const ya={get(e,t){return ve(e,"get",""),e[t]}};function _a(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ya),slots:e.slots,emit:e.emit,expose:t}}function Is(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Mi(ar(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Wt)return Wt[s](e)},has(t,s){return s in t||s in Wt}})):e.proxy}function wa(e){return W(e)&&"__vccOpts"in e}const Oe=(e,t)=>pr(e,t,es),xa="3.5.39";/** +* @vue/runtime-dom v3.5.39 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let an;const Xn=typeof window<"u"&&window.trustedTypes;if(Xn)try{an=Xn.createPolicy("vue",{createHTML:e=>e})}catch{}const _o=an?e=>an.createHTML(e):e=>e,ka="http://www.w3.org/2000/svg",Ta="http://www.w3.org/1998/Math/MathML",tt=typeof document<"u"?document:null,Qn=tt&&tt.createElement("template"),Sa={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?tt.createElementNS(ka,e):t==="mathml"?tt.createElementNS(Ta,e):s?tt.createElement(e,{is:s}):tt.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>tt.createTextNode(e),createComment:e=>tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,o){const r=s?s.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===o||!(i=i.nextSibling)););else{Qn.innerHTML=_o(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const a=Qn.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Ea=Symbol("_vtc");function Pa(e,t,s){const n=e[Ea];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const ei=Symbol("_vod"),Ca=Symbol("_vsh"),Aa=Symbol(""),$a=/(?:^|;)\s*display\s*:/;function Oa(e,t,s){const n=e.style,i=ue(s);let o=!1;if(s&&!i){if(t)if(ue(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();s[a]==null&&Ft(n,a,"")}else for(const r in t)s[r]==null&&Ft(n,r,"");for(const r in s){r==="display"&&(o=!0);const a=s[r];a!=null?Ra(e,r,!ue(t)&&t?t[r]:void 0,a)||Ft(n,r,a):Ft(n,r,"")}}else if(i){if(t!==s){const r=n[Aa];r&&(s+=";"+r),n.cssText=s,o=$a.test(s)}}else t&&e.removeAttribute("style");ei in e&&(e[ei]=o?n.display:"",e[Ca]&&(n.display="none"))}const ti=/\s*!important$/;function Ft(e,t,s){if(L(s))s.forEach(n=>Ft(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Da(e,t);ti.test(s)?e.setProperty(ft(n),s.replace(ti,""),"important"):e[n]=s}}const si=["Webkit","Moz","ms"],qs={};function Da(e,t){const s=qs[t];if(s)return s;let n=je(t);if(n!=="filter"&&n in e)return qs[t]=n;n=_i(n);for(let i=0;iZs||(Ma.then(()=>Zs=0),Zs=Date.now());function Fa(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const i=s.value;if(L(i)){const o=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{o.call(n),n._stopped=!0};const r=i.slice(),a=[n];for(let l=0;le.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ba=(e,t,s,n,i,o)=>{const r=i==="svg";t==="class"?Pa(e,n,r):t==="style"?Oa(e,s,n):Ss(t)?Es(t)||Ia(e,t,s,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ha(e,t,n,r))?(oi(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ii(e,t,n,r,o,t!=="value")):e._isVueCE&&(Va(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ue(n)))?oi(e,je(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),ii(e,t,n,r))};function Ha(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ai(t)&&W(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ai(t)&&ue(s)?!1:t in e}function Va(e,t){const s=e._def.props;if(!s)return!1;const n=je(t);return Array.isArray(s)?s.some(i=>je(i)===n):Object.keys(s).some(i=>je(i)===n)}const pt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return L(t)?s=>ps(t,s):t};function Ga(e){e.target.composing=!0}function li(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ie=Symbol("_assign");function ci(e,t,s){return t&&(e=e.trim()),s&&(e=Cs(e)),e}const be={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[Ie]=pt(i);const o=n||i.props&&i.props.type==="number";ot(e,t?"change":"input",r=>{r.target.composing||e[Ie](ci(e.value,s,o))}),(s||o)&&ot(e,"change",()=>{e.value=ci(e.value,s,o)}),t||(ot(e,"compositionstart",Ga),ot(e,"compositionend",li),ot(e,"change",li))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:o}},r){if(e[Ie]=pt(r),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?Cs(e.value):e.value,l=t??"";if(a===l)return;const g=e.getRootNode();(g instanceof Document||g instanceof ShadowRoot)&&g.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===l)||(e.value=l)}},Ka={deep:!0,created(e,t,s){e[Ie]=pt(s),ot(e,"change",()=>{const n=e._modelValue,i=Ot(e),o=e.checked,r=e[Ie];if(L(n)){const a=fn(n,i),l=a!==-1;if(o&&!l)r(n.concat(i));else if(!o&&l){const g=[...n];g.splice(a,1),r(g)}}else if(zt(n)){const a=new Set(n);o?a.add(i):a.delete(i),r(a)}else r(wo(e,o))})},mounted:ui,beforeUpdate(e,t,s){e[Ie]=pt(s),ui(e,t,s)}};function ui(e,{value:t,oldValue:s},n){e._modelValue=t;let i;if(L(t))i=fn(t,n.props.value)>-1;else if(zt(t))i=t.has(n.props.value);else{if(t===s)return;i=ut(t,wo(e,!0))}e.checked!==i&&(e.checked=i)}const Wa={created(e,{value:t},s){e.checked=ut(t,s.props.value),e[Ie]=pt(s),ot(e,"change",()=>{e[Ie](Ot(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e[Ie]=pt(n),t!==s&&(e.checked=ut(t,n.props.value))}},ks={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=zt(t);ot(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>s?Cs(Ot(r)):Ot(r));e[Ie](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,Fi(()=>{e._assigning=!1})}),e[Ie]=pt(n)},mounted(e,{value:t}){di(e,t)},beforeUpdate(e,t,s){e[Ie]=pt(s)},updated(e,{value:t}){e._assigning||di(e,t)}};function di(e,t){const s=e.multiple,n=L(t);if(!(s&&!n&&!zt(t))){for(let i=0,o=e.options.length;iString(g)===String(a)):r.selected=fn(t,a)>-1}else r.selected=t.has(a);else if(ut(Ot(r),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ot(e){return"_value"in e?e._value:e.value}function wo(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const qa={created(e,t,s){ds(e,t,s,null,"created")},mounted(e,t,s){ds(e,t,s,null,"mounted")},beforeUpdate(e,t,s,n){ds(e,t,s,n,"beforeUpdate")},updated(e,t,s,n){ds(e,t,s,n,"updated")}};function Za(e,t){switch(e){case"SELECT":return ks;case"TEXTAREA":return be;default:switch(t){case"checkbox":return Ka;case"radio":return Wa;default:return be}}}function ds(e,t,s,n,i){const r=Za(e.tagName,s.props&&s.props.type)[i];r&&r(e,t,s,n)}const Ja=["ctrl","shift","alt","meta"],Ya={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ja.some(s=>e[`${s}Key`]&&!t.includes(s))},Xa=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((i,...o)=>{for(let r=0;r{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(i=>{if(!("key"in i))return;const o=ft(i.key);if(t.some(r=>r===o||Qa[r]===o))return e(i)}))},el=_e({patchProp:Ba},Sa);let pi;function tl(){return pi||(pi=ia(el))}const sl=((...e)=>{const t=tl().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=il(n);if(!i)return;const o=t._component;!W(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=s(i,!1,nl(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t});function nl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function il(e){return ue(e)?document.querySelector(e):e}const ko="dh-panel-theme";function ol(){var e;try{const t=localStorage.getItem(ko);if(t==="dark"||t==="light")return t}catch{}return(e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches?"dark":"light"}const Ct=H(ol());function To(e){Ct.value=e,document.documentElement.classList.toggle("dark",e==="dark");try{localStorage.setItem(ko,e)}catch{}}function fi(){To(Ct.value==="dark"?"light":"dark")}To(Ct.value);const rl={apiServer:"API server",switchToLight:"Switch to light theme",switchToDark:"Switch to dark theme",theme:"Theme",signOut:"Sign out",loading:"Loading…",standardUserNote:"Signed in as a standard user — management sections need an admin role",footer:"DriverVault — car maintenance & service tracker."},al={overview:"Overview",users:"Users",orgs:"Organizations",server:"API Server",pocketbase:"PocketBase",webapp:"Web App",plugins:"Plugins",api:"API"},ll={title:"Sign in",subtitle:"Superadmin console for the DriverVault API Server.",email:"Email",password:"Password",submit:"Sign in",submitting:"Signing in…",invalid:"Invalid email or password.",failed:"Could not sign in.",authNote:"Authenticates against PocketBase through this server"},cl={title:"Status",unreachable:"unreachable",checking:"Checking…",apiServer:"API Server",pocketBase:"PocketBase",webApp:"Web App",thisProcess:"this process"},ul={create:"Create",save:"Save",cancel:"Cancel",edit:"Edit",delete:"Delete",rename:"Rename",empty:"—",name:"Name",email:"Email",role:"Role",organization:"Organization"},dl={title:"Users",allOrgs:"All organizations",yourOrg:"Your organization",newUser:"New user",password:"Password",passwordUnchanged:"Password (blank = unchanged)",passwordPlaceholder:"min 8 characters",orgNone:"— none —",you:"you",empty:"No users.",confirmDelete:"Delete {email}? This cannot be undone."},pl={title:"Organizations",subtitle:"Tenants users belong to",subtitleOwn:"Your organization",subtitleNone:"Create one to manage your own team",newOrg:"New organization",namePlaceholder:"Acme Fleet",empty:"No organizations yet.",createHint:"You have no organization yet. Create one to become its admin.",colId:"ID",confirmDelete:'Delete the organization "{name}"?',confirmDeleteOwn:'Delete your organization "{name}"? You will be removed from it and become a regular user.'},fl={title:"API Server",subtitle:"How this server identifies itself to the clients that connect to it",name:"Server name",nameHint:"Shown by clients that can be pointed at more than one DriverVault, such as the Web App's server switcher. Reported by /api/health.",saveApply:"Save & apply",persistedEnv:"persisted to .env",savedNotice:"Saved. The new name applies to the next request."},hl={title:"PocketBase",subtitle:"Database connection used by every endpoint",connected:"connected",noSuperuser:"no superuser",unreachable:"unreachable",baseUrl:"Base URL",superuserEmail:"Superuser email",superuserPassword:"Superuser password",passwordUnchanged:"unchanged",passwordNotSet:"not set",saveApply:"Save & apply",testConnection:"Test connection",persistedEnv:"persisted to .env",testOk:"Connection OK — superuser authenticated.",testReachableNoAuth:"PocketBase is reachable, but the service account did not authenticate.",testUnreachable:"PocketBase is not reachable at that address.",savedNotice:"Saved. The server is now using this PocketBase."},gl={title:"Web App",subtitle:"Address probed by the status check, and who may call this API from a browser",reachable:"reachable",unreachable:"unreachable",baseUrl:"Base URL",allowedOrigins:"Allowed origins",originsHint:"Comma separated, or {star} for any. Native mobile apps are not subject to CORS.",saveApply:"Save & apply",testConnection:"Test connection",persistedEnv:"persisted to .env",testOk:"Web App is reachable.",testFailed:"Web App did not answer its health check at that address.",savedNotice:"Saved. New origins apply to the next request."},ml={title:"Plugins",subtitle:"Third-party service integrations",categories:{vehicles:"Car manufacturers",chargers:"EV chargers","apis-external":"Other APIs","drives-external":"Remote drives","drives-local":"Local drives"},registerExternal:"Register external",cancelRegister:"Cancel",name:"Name",baseUrl:"Base URL",provider:"Provider",register:"Register",empty:"No plugins yet. Register an external one above, or compile a built-in connector.",builtin:"builtin",enabled:"enabled",disabled:"disabled",health:"Health",configure:"Configure",close:"Close",noConfig:"This plugin takes no configuration.",notSet:"Not set — let organizations and users choose",capabilities:"Capabilities",saved:"Saved.",checking:"Checking…",save:"Save",saveEnable:"Save & enable",disable:"Disable",remove:"Remove",builtinNote:"Built-in plugins can be disabled but not removed",confirmRemove:'Remove the external plugin "{name}"? Its saved config is deleted.'},bl={colEndpoint:"Endpoint",colDescription:"Description",authNone:"No auth",authBearer:"Bearer token",authManager:"Admin / superadmin",authSuperadmin:"Superadmin",authCharger:"Charger credentials",groupPublic:"Public",groupIdentity:"Identity",groupCars:"Cars",groupService:"Service records",groupTechnical:"Technical checks",groupParts:"Parts",groupFuel:"Fuel",groupCharging:"Charging",groupMaintenance:"Maintenance",groupDocuments:"Documents",groupReminders:"Reminders",groupAttachments:"Attachments",groupProviders:"Vehicle providers",groupIntegrations:"Integrations",groupOcpp:"OCPP",groupAccount:"Account",groupManagement:"Management",groupSuperadmin:"Superadmin"},vl={app:rl,sections:al,login:ll,status:cl,common:ul,users:dl,orgs:pl,server:fl,pocketbase:hl,webapp:gl,plugins:ml,api:bl},yl={apiServer:"Serwer API",switchToLight:"Przełącz na motyw jasny",switchToDark:"Przełącz na motyw ciemny",theme:"Motyw",signOut:"Wyloguj się",loading:"Ładowanie…",standardUserNote:"Zalogowano jako zwykły użytkownik — sekcje zarządzania wymagają roli administratora",footer:"DriverVault — rejestr serwisu i konserwacji samochodu."},_l={overview:"Przegląd",users:"Użytkownicy",orgs:"Organizacje",server:"Serwer API",pocketbase:"PocketBase",webapp:"Aplikacja webowa",plugins:"Wtyczki",api:"API"},wl={title:"Zaloguj się",subtitle:"Konsola superadministratora serwera API DriverVault.",email:"E-mail",password:"Hasło",submit:"Zaloguj się",submitting:"Logowanie…",invalid:"Nieprawidłowy e-mail lub hasło.",failed:"Nie udało się zalogować.",authNote:"Uwierzytelnia w PocketBase za pośrednictwem tego serwera"},xl={title:"Status",unreachable:"niedostępny",checking:"Sprawdzanie…",apiServer:"Serwer API",pocketBase:"PocketBase",webApp:"Aplikacja webowa",thisProcess:"ten proces"},kl={create:"Utwórz",save:"Zapisz",cancel:"Anuluj",edit:"Edytuj",delete:"Usuń",rename:"Zmień nazwę",empty:"—",name:"Nazwa",email:"E-mail",role:"Rola",organization:"Organizacja"},Tl={title:"Użytkownicy",allOrgs:"Wszystkie organizacje",yourOrg:"Twoja organizacja",newUser:"Nowy użytkownik",password:"Hasło",passwordUnchanged:"Hasło (puste = bez zmian)",passwordPlaceholder:"min. 8 znaków",orgNone:"— brak —",you:"Ty",empty:"Brak użytkowników.",confirmDelete:"Usunąć {email}? Tej operacji nie można cofnąć."},Sl={title:"Organizacje",subtitle:"Podmioty, do których należą użytkownicy",subtitleOwn:"Twoja organizacja",subtitleNone:"Utwórz ją, aby zarządzać własnym zespołem",newOrg:"Nowa organizacja",namePlaceholder:"Acme Fleet",empty:"Brak organizacji.",createHint:"Nie masz jeszcze organizacji. Utwórz ją, aby zostać jej administratorem.",colId:"ID",confirmDelete:"Usunąć organizację „{name}”?",confirmDeleteOwn:"Usunąć Twoją organizację „{name}”? Zostaniesz z niej usunięty i staniesz się zwykłym użytkownikiem."},El={title:"Serwer API",subtitle:"Jak ten serwer przedstawia się klientom, które się z nim łączą",name:"Nazwa serwera",nameHint:"Widoczna w klientach, które można skierować na więcej niż jeden DriverVault, na przykład w przełączniku serwerów aplikacji webowej. Zwracana przez /api/health.",saveApply:"Zapisz i zastosuj",persistedEnv:"zapisano w .env",savedNotice:"Zapisano. Nowa nazwa obowiązuje od następnego żądania."},Pl={title:"PocketBase",subtitle:"Połączenie z bazą danych używane przez każdy punkt końcowy",connected:"połączono",noSuperuser:"brak superużytkownika",unreachable:"niedostępny",baseUrl:"Adres bazowy",superuserEmail:"E-mail superużytkownika",superuserPassword:"Hasło superużytkownika",passwordUnchanged:"bez zmian",passwordNotSet:"nie ustawiono",saveApply:"Zapisz i zastosuj",testConnection:"Testuj połączenie",persistedEnv:"zapisano w .env",testOk:"Połączenie OK — superużytkownik uwierzytelniony.",testReachableNoAuth:"PocketBase jest dostępny, ale konto usługowe nie zostało uwierzytelnione.",testUnreachable:"PocketBase jest niedostępny pod tym adresem.",savedNotice:"Zapisano. Serwer korzysta teraz z tego PocketBase."},Cl={title:"Aplikacja webowa",subtitle:"Adres sprawdzany podczas kontroli statusu oraz kto może wywoływać to API z przeglądarki",reachable:"dostępna",unreachable:"niedostępna",baseUrl:"Adres bazowy",allowedOrigins:"Dozwolone źródła",originsHint:"Oddzielone przecinkami lub {star} dla dowolnego. Natywne aplikacje mobilne nie podlegają CORS.",saveApply:"Zapisz i zastosuj",testConnection:"Testuj połączenie",persistedEnv:"zapisano w .env",testOk:"Aplikacja webowa jest dostępna.",testFailed:"Aplikacja webowa nie odpowiedziała na kontrolę stanu pod tym adresem.",savedNotice:"Zapisano. Nowe źródła obowiązują od następnego żądania."},Al={title:"Wtyczki",subtitle:"Integracje z usługami zewnętrznymi",categories:{vehicles:"Producenci samochodów",chargers:"Ładowarki EV","apis-external":"Pozostałe API","drives-external":"Dyski zdalne","drives-local":"Dyski lokalne"},registerExternal:"Zarejestruj zewnętrzną",cancelRegister:"Anuluj",name:"Nazwa",baseUrl:"Adres bazowy",provider:"Dostawca",register:"Zarejestruj",empty:"Brak wtyczek. Zarejestruj zewnętrzną powyżej lub skompiluj wbudowany łącznik.",builtin:"wbudowana",enabled:"włączona",disabled:"wyłączona",health:"Stan",configure:"Konfiguruj",close:"Zamknij",noConfig:"Ta wtyczka nie wymaga konfiguracji.",notSet:"Nie ustawiono — pozwól organizacjom i użytkownikom wybrać",capabilities:"Możliwości",saved:"Zapisano.",checking:"Sprawdzanie…",save:"Zapisz",saveEnable:"Zapisz i włącz",disable:"Wyłącz",remove:"Usuń",builtinNote:"Wtyczki wbudowane można wyłączyć, ale nie usunąć",confirmRemove:"Usunąć zewnętrzną wtyczkę „{name}”? Jej zapisana konfiguracja zostanie usunięta."},$l={colEndpoint:"Punkt końcowy",colDescription:"Opis",authNone:"Bez uwierzytelniania",authBearer:"Token Bearer",authManager:"Administrator / superadministrator",authSuperadmin:"Superadministrator",authCharger:"Dane logowania ładowarki",groupPublic:"Publiczne",groupIdentity:"Tożsamość",groupCars:"Samochody",groupService:"Wpisy serwisowe",groupTechnical:"Przeglądy techniczne",groupParts:"Części",groupFuel:"Paliwo",groupCharging:"Ładowanie",groupMaintenance:"Naprawy",groupDocuments:"Dokumenty",groupReminders:"Przypomnienia",groupAttachments:"Załączniki",groupProviders:"Dostawcy pojazdów",groupIntegrations:"Integracje",groupOcpp:"OCPP",groupAccount:"Konto",groupManagement:"Zarządzanie",groupSuperadmin:"Superadministrator"},Ol={app:yl,sections:_l,login:wl,status:xl,common:kl,users:Tl,orgs:Sl,server:El,pocketbase:Pl,webapp:Cl,plugins:Al,api:$l},Dl={apiServer:"API-server",switchToLight:"Skift til lyst tema",switchToDark:"Skift til mørkt tema",theme:"Tema",signOut:"Log ud",loading:"Indlæser…",standardUserNote:"Logget ind som almindelig bruger — administrationssektioner kræver en administratorrolle",footer:"DriverVault — bilservice- og vedligeholdelsesregister."},Rl={overview:"Oversigt",users:"Brugere",orgs:"Organisationer",server:"API-server",pocketbase:"PocketBase",webapp:"Webapp",plugins:"Plugins",api:"API"},zl={title:"Log ind",subtitle:"Superadmin-konsol til DriverVault API-serveren.",email:"E-mail",password:"Adgangskode",submit:"Log ind",submitting:"Logger ind…",invalid:"Ugyldig e-mail eller adgangskode.",failed:"Kunne ikke logge ind.",authNote:"Godkender mod PocketBase gennem denne server"},Il={title:"Status",unreachable:"utilgængelig",checking:"Tjekker…",apiServer:"API-server",pocketBase:"PocketBase",webApp:"Webapp",thisProcess:"denne proces"},jl={create:"Opret",save:"Gem",cancel:"Annuller",edit:"Rediger",delete:"Slet",rename:"Omdøb",empty:"—",name:"Navn",email:"E-mail",role:"Rolle",organization:"Organisation"},Ul={title:"Brugere",allOrgs:"Alle organisationer",yourOrg:"Din organisation",newUser:"Ny bruger",password:"Adgangskode",passwordUnchanged:"Adgangskode (tom = uændret)",passwordPlaceholder:"mindst 8 tegn",orgNone:"— ingen —",you:"dig",empty:"Ingen brugere.",confirmDelete:"Slet {email}? Dette kan ikke fortrydes."},Nl={title:"Organisationer",subtitle:"Enheder, som brugere tilhører",subtitleOwn:"Din organisation",subtitleNone:"Opret en for at administrere dit eget team",newOrg:"Ny organisation",namePlaceholder:"Acme Fleet",empty:"Ingen organisationer endnu.",createHint:"Du har endnu ingen organisation. Opret en for at blive dens administrator.",colId:"ID",confirmDelete:'Slet organisationen "{name}"?',confirmDeleteOwn:"Slet din organisation „{name}“? Du fjernes fra den og bliver en almindelig bruger."},Ml={title:"API-server",subtitle:"Hvordan denne server identificerer sig over for de klienter, der forbinder til den",name:"Servernavn",nameHint:"Vises af klienter, der kan pege på mere end én DriverVault, for eksempel webappens serverskifter. Returneres af /api/health.",saveApply:"Gem og anvend",persistedEnv:"gemt i .env",savedNotice:"Gemt. Det nye navn gælder fra næste anmodning."},Ll={title:"PocketBase",subtitle:"Databaseforbindelse brugt af hvert endpoint",connected:"forbundet",noSuperuser:"ingen superbruger",unreachable:"utilgængelig",baseUrl:"Basis-URL",superuserEmail:"Superbrugerens e-mail",superuserPassword:"Superbrugerens adgangskode",passwordUnchanged:"uændret",passwordNotSet:"ikke angivet",saveApply:"Gem og anvend",testConnection:"Test forbindelse",persistedEnv:"gemt i .env",testOk:"Forbindelse OK — superbruger godkendt.",testReachableNoAuth:"PocketBase er tilgængelig, men servicekontoen blev ikke godkendt.",testUnreachable:"PocketBase er ikke tilgængelig på den adresse.",savedNotice:"Gemt. Serveren bruger nu denne PocketBase."},Fl={title:"Webapp",subtitle:"Adressen, der tjekkes ved statuskontrol, og hvem der må kalde dette API fra en browser",reachable:"tilgængelig",unreachable:"utilgængelig",baseUrl:"Basis-URL",allowedOrigins:"Tilladte oprindelser",originsHint:"Kommasepareret, eller {star} for enhver. Native mobilapps er ikke underlagt CORS.",saveApply:"Gem og anvend",testConnection:"Test forbindelse",persistedEnv:"gemt i .env",testOk:"Webappen er tilgængelig.",testFailed:"Webappen svarede ikke på sit helbredstjek på den adresse.",savedNotice:"Gemt. Nye oprindelser gælder fra næste anmodning."},Bl={title:"Plugins",subtitle:"Integrationer med tredjepartstjenester",categories:{vehicles:"Bilproducenter",chargers:"EV-ladere","apis-external":"Øvrige API'er","drives-external":"Eksterne drev","drives-local":"Lokale drev"},registerExternal:"Registrér ekstern",cancelRegister:"Annuller",name:"Navn",baseUrl:"Basis-URL",provider:"Udbyder",register:"Registrér",empty:"Ingen plugins endnu. Registrér et eksternt ovenfor, eller kompilér et indbygget stik.",builtin:"indbygget",enabled:"aktiveret",disabled:"deaktiveret",health:"Helbred",configure:"Konfigurer",close:"Luk",noConfig:"Dette plugin kræver ingen konfiguration.",notSet:"Ikke angivet — lad organisationer og brugere vælge",capabilities:"Funktioner",saved:"Gemt.",checking:"Tjekker…",save:"Gem",saveEnable:"Gem og aktivér",disable:"Deaktiver",remove:"Fjern",builtinNote:"Indbyggede plugins kan deaktiveres, men ikke fjernes",confirmRemove:'Fjern det eksterne plugin "{name}"? Dets gemte konfiguration slettes.'},Hl={colEndpoint:"Endpoint",colDescription:"Beskrivelse",authNone:"Ingen godkendelse",authBearer:"Bearer-token",authManager:"Admin / superadmin",authSuperadmin:"Superadmin",authCharger:"Laderens loginoplysninger",groupPublic:"Offentlig",groupIdentity:"Identitet",groupCars:"Biler",groupService:"Serviceposter",groupTechnical:"Syn",groupParts:"Reservedele",groupFuel:"Brændstof",groupCharging:"Opladning",groupMaintenance:"Værksted",groupDocuments:"Dokumenter",groupReminders:"Påmindelser",groupAttachments:"Vedhæftede filer",groupProviders:"Køretøjsudbydere",groupIntegrations:"Integrationer",groupOcpp:"OCPP",groupAccount:"Konto",groupManagement:"Administration",groupSuperadmin:"Superadmin"},Vl={app:Dl,sections:Rl,login:zl,status:Il,common:jl,users:Ul,orgs:Nl,server:Ml,pocketbase:Ll,webapp:Fl,plugins:Bl,api:Hl},So="dh-panel-lang",Eo="en",Dt={en:vl,pl:Ol,da:Vl},Gl=Object.keys(Dt);function Kl(){try{const t=localStorage.getItem(So);if(t&&Dt[t])return t}catch{}const e=(navigator.language||"en").split("-")[0];return Dt[e]?e:Eo}const En=H(Kl());function Wl(e){if(Dt[e]){En.value=e;try{localStorage.setItem(So,e)}catch{}}}function hi(e,t){return t.split(".").reduce((s,n)=>s==null?void 0:s[n],e)}function ql(e,t){return t?e.replace(/\{(\w+)\}/g,(s,n)=>t[n]==null?s:String(t[n])):e}function Zl(e,t,s){let n="other";try{n=new Intl.PluralRules(s).select(t)}catch{n=t===1?"one":"other"}return e[n]??e.other??e.one}function f(e,t){const s=En.value;let n=hi(Dt[s],e);if(n==null&&(n=hi(Dt[Eo],e)),n==null)return e;if(typeof n=="object"){if((t==null?void 0:t.n)==null)return e;n=Zl(n,t.n,s)}return typeof n!="string"?e:ql(n,t)}function gi(e,t,s){const i=f(e,{...s,[t]:"\0"}),o=i.indexOf("\0");return o===-1?{before:i,after:""}:{before:i.slice(0,o),after:i.slice(o+1)}}const ln="dh-panel-token";function Jl(){try{return localStorage.getItem(ln)||""}catch{return""}}const Rt=H(Jl()),he=H(null),De=Oe(()=>{var e;return((e=he.value)==null?void 0:e.role)==="superadmin"}),gs=Oe(()=>{var e,t;return((e=he.value)==null?void 0:e.role)==="admin"||((t=he.value)==null?void 0:t.role)==="superadmin"});function Po(e){Rt.value=e;try{e?localStorage.setItem(ln,e):localStorage.removeItem(ln)}catch{}}class Yl extends Error{constructor(t,s,n){super(t),this.status=s,this.body=n}}function Xl(e,t){if(!e||typeof e!="object")return`HTTP ${t}`;if(e.error)return e.error;const s=Object.entries(e.data||{}).map(([n,i])=>`${n}: ${(i==null?void 0:i.message)||i}`).filter(Boolean);return s.length?s.join("; "):e.message||`HTTP ${t}`}async function ae(e,{method:t="GET",body:s,auth:n=!0}={}){const i={};s!==void 0&&(i["Content-Type"]="application/json"),n&&Rt.value&&(i.Authorization=Rt.value);const o=await fetch(e,{method:t,headers:i,body:s===void 0?void 0:JSON.stringify(s)}),r=await o.text();let a=null;try{a=r?JSON.parse(r):null}catch{a=null}if(!o.ok)throw o.status===401&&n&&Pn(),new Yl(Xl(a,o.status),o.status,a);return a}async function Ql(e,t){const s=await ae("/api/auth/login",{method:"POST",body:{email:e,password:t},auth:!1});return Po(s.token),await Ts(),he.value}async function Ts(){return he.value=await ae("/api/identity"),he.value}function Pn(){Po(""),he.value=null}async function ec(){if(!Rt.value)return null;try{return await Ts()}catch{return Pn(),null}}const tc={class:"inline-flex items-center gap-2.5 select-none"},sc={class:"h-full w-auto shrink-0",viewBox:"0 0 48 48",fill:"none","aria-hidden":"true"},nc={transform:"translate(7 0) skewX(-13)"},ic=["fill"],oc=["fill"],rc=["fill"],ac={key:0,class:"text-[1.35em] font-extrabold italic leading-none tracking-[-0.03em]"},lc={__name:"Logo",props:{iconOnly:{type:Boolean,default:!1},onDark:{type:Boolean,default:!1}},setup(e){return(t,s)=>(y(),T("span",tc,[(y(),T("svg",sc,[u("g",nc,[u("rect",{x:"9",y:"16",width:"6",height:"16",rx:"3",fill:e.onDark?"#60A5FA":"var(--brand-700)"},null,8,ic),u("rect",{x:"19",y:"12",width:"6",height:"24",rx:"3",fill:e.onDark?"#93C5FD":"var(--brand-500)"},null,8,oc),u("rect",{x:"29",y:"8",width:"6",height:"32",rx:"3",fill:e.onDark?"#ffffff":"var(--brand-400)"},null,8,rc)])])),e.iconOnly?F("",!0):(y(),T("span",ac,[u("span",{class:Ee(e.onDark?"text-white":"text-strong")},"Driver",2),u("span",{class:Ee(e.onDark?"text-brand-400":"text-brandtext")},"Vault",2)])),s[0]||(s[0]=u("span",{class:"sr-only"},"DriverVault",-1))]))}},cc={class:"mx-auto flex w-full max-w-sm flex-col gap-5 pt-24"},uc={class:"dh-card p-6"},dc={class:"text-lg font-bold tracking-[-0.02em] text-strong"},pc={class:"mt-1 mb-5 text-sm text-body"},fc={class:"dh-label",for:"login-email"},hc={class:"dh-label",for:"login-password"},gc={key:0,class:"rounded-control bg-danger-soft px-3 py-2 text-xs text-danger"},mc=["disabled"],bc={class:"eyebrow text-center"},vc={__name:"LoginView",emits:["authenticated"],setup(e,{emit:t}){const s=t,n=H(""),i=H(""),o=H(""),r=H(!1),a=Oe(()=>n.value.trim()!==""&&i.value!==""&&!r.value);async function l(){if(a.value){o.value="",r.value=!0;try{const g=await Ql(n.value.trim(),i.value);s("authenticated",g)}catch(g){o.value=g.status===400||g.status===404?f("login.invalid"):g.message||f("login.failed"),i.value=""}finally{r.value=!1}}}return(g,d)=>(y(),T("div",cc,[u("div",uc,[u("h1",dc,m(h(f)("login.title")),1),u("p",pc,m(h(f)("login.subtitle")),1),u("form",{class:"flex flex-col gap-4",onSubmit:Xa(l,["prevent"])},[u("div",null,[u("label",fc,m(h(f)("login.email")),1),pe(u("input",{id:"login-email","onUpdate:modelValue":d[0]||(d[0]=b=>n.value=b),class:"dh-input",type:"email",autocomplete:"username",autofocus:"",placeholder:"you@example.com"},null,512),[[be,n.value]])]),u("div",null,[u("label",hc,m(h(f)("login.password")),1),pe(u("input",{id:"login-password","onUpdate:modelValue":d[1]||(d[1]=b=>i.value=b),class:"dh-input",type:"password",autocomplete:"current-password",placeholder:"••••••••"},null,512),[[be,i.value]])]),o.value?(y(),T("p",gc,m(o.value),1)):F("",!0),u("button",{class:"dh-btn w-full",type:"submit",disabled:!a.value},m(r.value?h(f)("login.submitting"):h(f)("login.submit")),9,mc)],32)]),u("p",bc,m(h(f)("login.authNote")),1)]))}},yc={class:"dh-card overflow-hidden"},_c={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},wc={class:"text-base font-bold tracking-[-0.02em] text-strong"},xc={key:0,class:"dh-pill bg-danger-soft text-danger"},kc={key:0,class:"px-5 py-4 text-sm text-danger"},Tc={key:1,class:"w-full text-left text-sm"},Sc={class:"px-5 py-3 font-medium text-strong"},Ec={class:"data px-5 py-3 text-xs text-muted"},Pc={class:"data px-5 py-3 text-right text-xs text-muted"},Cc={class:"px-5 py-3 text-right"},Ac={key:2,class:"px-5 py-4 text-sm text-muted"},$c={__name:"StatusCard",setup(e){const t=H(null),s=H("");let n=null;async function i(){try{t.value=await ae("/api/status",{auth:!1}),s.value=""}catch(a){t.value=null,s.value=a.message||f("status.unreachable")}}const o=Oe(()=>{var a,l,g;return[{key:"apiServer",label:f("status.apiServer"),h:(a=t.value)==null?void 0:a.apiServer},{key:"pocketBase",label:f("status.pocketBase"),h:(l=t.value)==null?void 0:l.pocketBase},{key:"webApp",label:f("status.webApp"),h:(g=t.value)==null?void 0:g.webApp}]});lt(()=>{i(),n=setInterval(i,1e4)}),kn(()=>clearInterval(n));const r=a=>a==="ok"?"bg-success-soft text-success":"bg-danger-soft text-danger";return(a,l)=>(y(),T("div",yc,[u("div",_c,[u("div",wc,m(h(f)("status.title")),1),s.value?(y(),T("span",xc,[l[0]||(l[0]=u("span",{class:"h-1.5 w-1.5 rounded-full bg-current"},null,-1)),$e(m(h(f)("status.unreachable")),1)])):F("",!0)]),s.value?(y(),T("div",kc,m(s.value),1)):t.value?(y(),T("table",Tc,[u("tbody",null,[(y(!0),T(re,null,Ce(o.value,g=>(y(),T("tr",{key:g.key,class:"border-t border-subtle first:border-t-0"},[u("td",Sc,m(g.label),1),u("td",Ec,m(g.h.url||h(f)("status.thisProcess")),1),u("td",Pc,m(g.h.latencyMs!=null?g.h.latencyMs+"ms":h(f)("common.empty")),1),u("td",Cc,[u("span",{class:Ee(["dh-pill",r(g.h.status)])},[l[1]||(l[1]=u("span",{class:"h-1.5 w-1.5 rounded-full bg-current"},null,-1)),$e(m(g.h.status),1)],2)])]))),128))])])):(y(),T("div",Ac,m(h(f)("status.checking")),1))]))}},Oc={class:"dh-card overflow-hidden"},Dc={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},Rc={class:"text-base font-bold tracking-[-0.02em] text-strong"},zc={class:"mt-0.5 text-xs text-muted"},Ic={class:"flex flex-col gap-4 px-5 py-4"},jc={class:"dh-label",for:"pb-url"},Uc={class:"grid gap-4 sm:grid-cols-2"},Nc={class:"dh-label",for:"pb-email"},Mc={class:"dh-label",for:"pb-password"},Lc=["placeholder"],Fc={key:0,class:"data text-xs text-muted"},Bc={key:1,class:"rounded-control bg-info-soft px-3 py-2 text-xs text-info"},Hc={key:2,class:"rounded-control bg-danger-soft px-3 py-2 text-xs text-danger"},Vc={class:"flex items-center gap-2"},Gc=["disabled"],Kc=["disabled"],Wc={class:"eyebrow"},qc={__name:"PocketBaseCard",setup(e){const t=H(null),s=H({url:"",adminEmail:"",adminPassword:""}),n=H(null),i=H(""),o=H(""),r=H(!1);async function a(){try{t.value=await ae("/api/admin/pb-config"),s.value={url:t.value.url,adminEmail:t.value.adminEmail,adminPassword:""},n.value=t.value.probe}catch(d){i.value=d.message}}lt(a);async function l(){i.value="",o.value="",r.value=!0;try{n.value=await ae("/api/admin/pb-config/test",{method:"POST",body:s.value}),o.value=n.value.superuser?f("pocketbase.testOk"):n.value.reachable?f("pocketbase.testReachableNoAuth"):f("pocketbase.testUnreachable")}catch(d){i.value=d.message}finally{r.value=!1}}async function g(){i.value="",o.value="",r.value=!0;try{const d=await ae("/api/admin/pb-config",{method:"PUT",body:s.value});t.value=d.config,n.value=d.config.probe,s.value.adminPassword="",o.value=d.warning||f("pocketbase.savedNotice")}catch(d){i.value=d.message}finally{r.value=!1}}return(d,b)=>{var E,A;return y(),T("div",Oc,[u("div",Dc,[u("div",null,[u("div",Rc,m(h(f)("pocketbase.title")),1),u("p",zc,m(h(f)("pocketbase.subtitle")),1)]),n.value?(y(),T("span",{key:0,class:Ee(["dh-pill",n.value.superuser?"bg-success-soft text-success":n.value.reachable?"bg-warning-soft text-warning":"bg-danger-soft text-danger"])},[b[3]||(b[3]=u("span",{class:"h-1.5 w-1.5 rounded-full bg-current"},null,-1)),$e(" "+m(n.value.superuser?h(f)("pocketbase.connected"):n.value.reachable?h(f)("pocketbase.noSuperuser"):h(f)("pocketbase.unreachable")),1)],2)):F("",!0)]),u("div",Ic,[u("div",null,[u("label",jc,m(h(f)("pocketbase.baseUrl")),1),pe(u("input",{id:"pb-url","onUpdate:modelValue":b[0]||(b[0]=V=>s.value.url=V),class:"dh-input",placeholder:"http://10.2.1.10:8027"},null,512),[[be,s.value.url]])]),u("div",Uc,[u("div",null,[u("label",Nc,m(h(f)("pocketbase.superuserEmail")),1),pe(u("input",{id:"pb-email","onUpdate:modelValue":b[1]||(b[1]=V=>s.value.adminEmail=V),class:"dh-input",autocomplete:"off"},null,512),[[be,s.value.adminEmail]])]),u("div",null,[u("label",Mc,m(h(f)("pocketbase.superuserPassword")),1),pe(u("input",{id:"pb-password","onUpdate:modelValue":b[2]||(b[2]=V=>s.value.adminPassword=V),class:"dh-input",type:"password",autocomplete:"new-password",placeholder:(E=t.value)!=null&&E.adminConfigured?h(f)("pocketbase.passwordUnchanged"):h(f)("pocketbase.passwordNotSet")},null,8,Lc),[[be,s.value.adminPassword]])])]),(A=n.value)!=null&&A.detail?(y(),T("p",Fc,m(n.value.detail),1)):F("",!0),o.value?(y(),T("p",Bc,m(o.value),1)):F("",!0),i.value?(y(),T("p",Hc,m(i.value),1)):F("",!0),u("div",Vc,[u("button",{class:"dh-btn",disabled:r.value,onClick:g},m(h(f)("pocketbase.saveApply")),9,Gc),u("button",{class:"dh-btn-ghost",disabled:r.value,onClick:l},m(h(f)("pocketbase.testConnection")),9,Kc),b[4]||(b[4]=u("span",{class:"flex-1"},null,-1)),u("span",Wc,m(h(f)("pocketbase.persistedEnv")),1)])])])}}},Zc={class:"dh-card overflow-hidden"},Jc={class:"border-b border-subtle px-5 py-4"},Yc={class:"text-base font-bold tracking-[-0.02em] text-strong"},Xc={class:"mt-0.5 text-xs text-muted"},Qc={class:"flex flex-col gap-4 px-5 py-4"},eu={class:"dh-label",for:"server-name"},tu={class:"mt-1 text-xs text-muted"},su={key:0,class:"rounded-control bg-info-soft px-3 py-2 text-xs text-info"},nu={key:1,class:"rounded-control bg-danger-soft px-3 py-2 text-xs text-danger"},iu={class:"flex items-center gap-2"},ou=["disabled"],ru={class:"eyebrow"},au={__name:"ServerCard",setup(e){const t=H({name:""}),s=H(""),n=H(""),i=H(!1);async function o(){try{const a=await ae("/api/admin/server-config");t.value={name:a.name}}catch(a){s.value=a.message}}lt(o);async function r(){s.value="",n.value="",i.value=!0;try{const a=await ae("/api/admin/server-config",{method:"PUT",body:{name:t.value.name}});t.value={name:a.config.name},n.value=a.warning||f("server.savedNotice")}catch(a){s.value=a.message}finally{i.value=!1}}return(a,l)=>(y(),T("div",Zc,[u("div",Jc,[u("div",Yc,m(h(f)("server.title")),1),u("p",Xc,m(h(f)("server.subtitle")),1)]),u("div",Qc,[u("div",null,[u("label",eu,m(h(f)("server.name")),1),pe(u("input",{id:"server-name","onUpdate:modelValue":l[0]||(l[0]=g=>t.value.name=g),class:"dh-input",maxlength:"64",placeholder:"DriverVault API Server",onKeyup:xo(r,["enter"])},null,544),[[be,t.value.name]]),u("p",tu,m(h(f)("server.nameHint")),1)]),n.value?(y(),T("p",su,m(n.value),1)):F("",!0),s.value?(y(),T("p",nu,m(s.value),1)):F("",!0),u("div",iu,[u("button",{class:"dh-btn",disabled:i.value,onClick:r},m(h(f)("server.saveApply")),9,ou),l[1]||(l[1]=u("span",{class:"flex-1"},null,-1)),u("span",ru,m(h(f)("server.persistedEnv")),1)])])]))}},lu={class:"dh-card overflow-hidden"},cu={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},uu={class:"text-base font-bold tracking-[-0.02em] text-strong"},du={class:"mt-0.5 text-xs text-muted"},pu={class:"flex flex-col gap-4 px-5 py-4"},fu={class:"dh-label",for:"web-url"},hu={class:"dh-label",for:"web-origins"},gu={class:"mt-1 text-xs text-muted"},mu={key:0,class:"data text-xs text-muted"},bu={key:1,class:"rounded-control bg-info-soft px-3 py-2 text-xs text-info"},vu={key:2,class:"rounded-control bg-danger-soft px-3 py-2 text-xs text-danger"},yu={class:"flex items-center gap-2"},_u=["disabled"],wu=["disabled"],xu={class:"eyebrow"},ku={__name:"WebAppCard",setup(e){const t=H(null),s=H({url:"",origins:""}),n=H(null),i=H(""),o=H(""),r=H(!1),a=E=>E.split(",").map(A=>A.trim()).filter(Boolean);function l(E){t.value=E,s.value={url:E.url,origins:(E.allowOrigins||[]).join(", ")},n.value=E.probe}async function g(){try{l(await ae("/api/admin/webapp-config"))}catch(E){i.value=E.message}}lt(g);async function d(){i.value="",o.value="",r.value=!0;try{n.value=await ae("/api/admin/webapp-config/test",{method:"POST",body:{url:s.value.url}}),o.value=n.value.status==="ok"?f("webapp.testOk"):f("webapp.testFailed")}catch(E){i.value=E.message}finally{r.value=!1}}async function b(){i.value="",o.value="",r.value=!0;try{const E=await ae("/api/admin/webapp-config",{method:"PUT",body:{url:s.value.url,allowOrigins:a(s.value.origins)}});l(E.config),o.value=E.warning||f("webapp.savedNotice")}catch(E){i.value=E.message}finally{r.value=!1}}return(E,A)=>{var V;return y(),T("div",lu,[u("div",cu,[u("div",null,[u("div",uu,m(h(f)("webapp.title")),1),u("p",du,m(h(f)("webapp.subtitle")),1)]),n.value?(y(),T("span",{key:0,class:Ee(["dh-pill",n.value.status==="ok"?"bg-success-soft text-success":"bg-danger-soft text-danger"])},[A[2]||(A[2]=u("span",{class:"h-1.5 w-1.5 rounded-full bg-current"},null,-1)),$e(" "+m(n.value.status==="ok"?h(f)("webapp.reachable"):h(f)("webapp.unreachable")),1)],2)):F("",!0)]),u("div",pu,[u("div",null,[u("label",fu,m(h(f)("webapp.baseUrl")),1),pe(u("input",{id:"web-url","onUpdate:modelValue":A[0]||(A[0]=x=>s.value.url=x),class:"dh-input",placeholder:"http://localhost:8090"},null,512),[[be,s.value.url]])]),u("div",null,[u("label",hu,m(h(f)("webapp.allowedOrigins")),1),pe(u("input",{id:"web-origins","onUpdate:modelValue":A[1]||(A[1]=x=>s.value.origins=x),class:"dh-input",placeholder:"http://localhost:8090, https://app.example.com"},null,512),[[be,s.value.origins]]),u("p",gu,[$e(m(h(gi)("webapp.originsHint","star").before),1),A[3]||(A[3]=u("span",{class:"data"},"*",-1)),$e(m(h(gi)("webapp.originsHint","star").after),1)])]),(V=n.value)!=null&&V.error?(y(),T("p",mu,m(n.value.error),1)):F("",!0),o.value?(y(),T("p",bu,m(o.value),1)):F("",!0),i.value?(y(),T("p",vu,m(i.value),1)):F("",!0),u("div",yu,[u("button",{class:"dh-btn",disabled:r.value,onClick:b},m(h(f)("webapp.saveApply")),9,_u),u("button",{class:"dh-btn-ghost",disabled:r.value,onClick:d},m(h(f)("webapp.testConnection")),9,wu),A[4]||(A[4]=u("span",{class:"flex-1"},null,-1)),u("span",xu,m(h(f)("webapp.persistedEnv")),1)])])])}}},Tu={class:"dh-card overflow-hidden"},Su={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},Eu={class:"text-base font-bold tracking-[-0.02em] text-strong"},Pu={class:"mt-0.5 text-xs text-muted"},Cu={key:0,class:"border-b border-subtle bg-sunken px-5 py-4"},Au={class:"grid gap-3 sm:grid-cols-3"},$u={class:"dh-label"},Ou={class:"dh-label"},Du={class:"dh-label"},Ru=["disabled"],zu={key:1,class:"border-b border-subtle px-5 py-3 text-xs text-danger"},Iu={key:2,class:"px-5 py-6 text-center text-sm text-muted"},ju={key:3,class:"flex flex-wrap gap-1.5 border-b border-subtle px-5 py-3"},Uu=["onClick"],Nu={class:"dh-pill bg-sunken text-muted"},Mu={class:"flex items-center gap-3 px-5 py-3"},Lu=["onClick"],Fu={class:"font-semibold text-strong"},Bu={class:"dh-pill bg-sunken text-muted"},Hu={key:0,class:"text-xs text-muted"},Vu=["disabled","onClick"],Gu=["disabled","onClick"],Ku={key:0,class:"bg-sunken px-5 py-4"},Wu={key:0,class:"data mb-3 text-xs text-muted"},qu={key:1,class:"grid gap-3 sm:grid-cols-2"},Zu={class:"dh-label"},Ju={key:0,class:"text-danger"},Yu=["onUpdate:modelValue"],Xu={key:0,value:""},Qu=["value"],ed=["onUpdate:modelValue","type","placeholder"],td={key:2,class:"mt-1 text-xs text-muted"},sd={key:2,class:"text-xs text-muted"},nd={key:3,class:"mt-4"},id={class:"eyebrow mb-1.5"},od={class:"data flex flex-col gap-1 text-xs text-muted"},rd={class:"text-strong"},ad={key:0},ld={key:1},cd={key:4,class:"data mt-3 text-xs text-body"},ud={class:"mt-4 flex items-center gap-2"},dd=["disabled","onClick"],pd=["disabled","onClick"],fd=["disabled","onClick"],hd={key:5,class:"eyebrow mt-2"},gd={__name:"PluginsCard",setup(e){const t=H([]),s=H(""),n=H(!1),i=H(null),o=Yt({}),r=Yt({}),a=H(!1),l=H({name:"",baseURL:"",provider:""}),g=H(""),d=["vehicles","chargers","apis-external","drives-external","drives-local"],b=z=>d.includes(z.category)?z.category:"apis-external",E=Oe(()=>{var K;const z={};for(const P of t.value)(z[K=b(P)]||(z[K]=[])).push(P);return d.filter(P=>z[P]).map(P=>({id:P,label:f(`plugins.categories.${P}`),plugins:z[P]}))}),A=Oe(()=>E.value.find(z=>z.id===g.value)||E.value[0]),V=Oe(()=>{var z;return((z=A.value)==null?void 0:z.plugins)||[]});async function x(){try{const z=await ae("/api/admin/plugins");t.value=z.plugins||[],s.value=""}catch(z){s.value=z.message}}lt(x);function N(z){var P;if(i.value===z.name){i.value=null;return}const K={};for(const I of z.configFields||[])K[I.key]=((P=z.config)==null?void 0:P[I.key])??"";o[z.name]=K,i.value=z.name}async function R(z,K){n.value=!0,r[z.name]="";try{const P=await ae(`/api/admin/plugins/${encodeURIComponent(z.name)}`,{method:"PUT",body:{enabled:K,config:o[z.name]??{}}});r[z.name]=P.warning||f("plugins.saved"),await x()}catch(P){r[z.name]=P.message}finally{n.value=!1}}async function G(z){n.value=!0,r[z.name]=f("plugins.checking");try{const K=await ae(`/api/admin/plugins/${encodeURIComponent(z.name)}/health`,{method:"POST"});r[z.name]=`${K.health.status}${K.health.detail?" — "+K.health.detail:""}`,await x()}catch(K){r[z.name]=K.message}finally{n.value=!1}}async function Z(z){if(confirm(f("plugins.confirmRemove",{name:z.name}))){n.value=!0;try{await ae(`/api/admin/plugins/${encodeURIComponent(z.name)}`,{method:"DELETE"}),i.value===z.name&&(i.value=null),await x()}catch(K){r[z.name]=K.message}finally{n.value=!1}}}async function U(){n.value=!0,s.value="";try{await ae("/api/admin/plugins",{method:"POST",body:l.value}),l.value={name:"",baseURL:"",provider:""},a.value=!1,await x()}catch(z){s.value=z.message}finally{n.value=!1}}const le=z=>z==="ok"?"bg-success-soft text-success":z==="degraded"?"bg-warning-soft text-warning":"bg-danger-soft text-danger";return(z,K)=>(y(),T("div",Tu,[u("div",Su,[u("div",null,[u("div",Eu,m(h(f)("plugins.title")),1),u("p",Pu,m(h(f)("plugins.subtitle")),1)]),u("button",{class:"dh-btn-ghost",onClick:K[0]||(K[0]=P=>a.value=!a.value)},m(a.value?h(f)("plugins.cancelRegister"):h(f)("plugins.registerExternal")),1)]),a.value?(y(),T("div",Cu,[u("div",Au,[u("div",null,[u("label",$u,m(h(f)("plugins.name")),1),pe(u("input",{"onUpdate:modelValue":K[1]||(K[1]=P=>l.value.name=P),class:"dh-input",placeholder:"acme-parts"},null,512),[[be,l.value.name]])]),u("div",null,[u("label",Ou,m(h(f)("plugins.baseUrl")),1),pe(u("input",{"onUpdate:modelValue":K[2]||(K[2]=P=>l.value.baseURL=P),class:"dh-input",placeholder:"http://127.0.0.1:9100"},null,512),[[be,l.value.baseURL]])]),u("div",null,[u("label",Du,m(h(f)("plugins.provider")),1),pe(u("input",{"onUpdate:modelValue":K[3]||(K[3]=P=>l.value.provider=P),class:"dh-input",placeholder:"ACME Corp"},null,512),[[be,l.value.provider]])])]),u("button",{class:"dh-btn mt-3",disabled:n.value||!l.value.name||!l.value.baseURL,onClick:U},m(h(f)("plugins.register")),9,Ru)])):F("",!0),s.value?(y(),T("p",zu,m(s.value),1)):F("",!0),t.value.length?F("",!0):(y(),T("p",Iu,m(h(f)("plugins.empty")),1)),E.value.length>1?(y(),T("nav",ju,[(y(!0),T(re,null,Ce(E.value,P=>{var I;return y(),T("button",{key:P.id,class:Ee(["dh-btn-ghost",((I=A.value)==null?void 0:I.id)===P.id?"border-accent text-brandtext":""]),onClick:J=>g.value=P.id},[$e(m(P.label)+" ",1),u("span",Nu,m(P.plugins.length),1)],10,Uu)}),128))])):F("",!0),(y(!0),T(re,null,Ce(V.value,P=>(y(),T("div",{key:P.name,class:"border-t border-subtle first:border-t-0"},[u("div",Mu,[u("button",{class:"flex flex-1 items-center gap-3 text-left",onClick:I=>N(P)},[u("span",Fu,m(P.name),1),u("span",Bu,m(P.kind||h(f)("plugins.builtin")),1),P.provider?(y(),T("span",Hu,m(P.provider),1)):F("",!0),P.health?(y(),T("span",{key:1,class:Ee(["dh-pill",le(P.health.status)])},[K[4]||(K[4]=u("span",{class:"h-1.5 w-1.5 rounded-full bg-current"},null,-1)),$e(m(P.health.status),1)],2)):F("",!0)],8,Lu),u("span",{class:Ee(["dh-pill",P.enabled?"bg-success-soft text-success":"bg-sunken text-muted"])},m(P.enabled?h(f)("plugins.enabled"):h(f)("plugins.disabled")),3),u("button",{class:"dh-btn-ghost",disabled:n.value,onClick:I=>G(P)},m(h(f)("plugins.health")),9,Vu),u("button",{class:"dh-btn-ghost",disabled:n.value,onClick:I=>N(P)},m(i.value===P.name?h(f)("plugins.close"):h(f)("plugins.configure")),9,Gu)]),i.value===P.name?(y(),T("div",Ku,[P.baseURL?(y(),T("div",Wu,m(P.baseURL),1)):F("",!0),(P.configFields||[]).length?(y(),T("div",qu,[(y(!0),T(re,null,Ce(P.configFields,I=>(y(),T("div",{key:I.key},[u("label",Zu,[$e(m(I.label||I.key),1),I.required?(y(),T("span",Ju," *")):F("",!0)]),I.type==="select"?pe((y(),T("select",{key:0,"onUpdate:modelValue":J=>o[P.name][I.key]=J,class:"dh-select"},[I.required?F("",!0):(y(),T("option",Xu,m(h(f)("plugins.notSet")),1)),(y(!0),T(re,null,Ce(I.options||[],J=>(y(),T("option",{key:J.value,value:J.value},m(J.label||J.value),9,Qu))),128))],8,Yu)),[[ks,o[P.name][I.key]]]):pe((y(),T("input",{key:1,"onUpdate:modelValue":J=>o[P.name][I.key]=J,class:"dh-input",type:I.type==="password"?"password":I.type==="number"?"number":"text",placeholder:I.default||"",autocomplete:"off"},null,8,ed)),[[qa,o[P.name][I.key]]]),I.help?(y(),T("p",td,m(I.help),1)):F("",!0)]))),128))])):(y(),T("p",sd,m(h(f)("plugins.noConfig")),1)),(P.capabilities||[]).length?(y(),T("div",nd,[u("div",id,m(h(f)("plugins.capabilities")),1),u("ul",od,[(y(!0),T(re,null,Ce(P.capabilities,I=>(y(),T("li",{key:I.id},[u("span",rd,m(I.id),1),I.method||I.endpoint?(y(),T("span",ad," — "+m(I.method)+" "+m(I.endpoint),1)):F("",!0),I.description?(y(),T("span",ld," · "+m(I.description),1)):F("",!0)]))),128))])])):F("",!0),r[P.name]?(y(),T("p",cd,m(r[P.name]),1)):F("",!0),u("div",ud,[u("button",{class:"dh-btn",disabled:n.value,onClick:I=>R(P,!0)},m(P.enabled?h(f)("plugins.save"):h(f)("plugins.saveEnable")),9,dd),P.enabled?(y(),T("button",{key:0,class:"dh-btn-ghost",disabled:n.value,onClick:I=>R(P,!1)},m(h(f)("plugins.disable")),9,pd)):F("",!0),K[5]||(K[5]=u("span",{class:"flex-1"},null,-1)),P.kind==="external"?(y(),T("button",{key:1,class:"dh-btn-danger",disabled:n.value,onClick:I=>Z(P)},m(h(f)("plugins.remove")),9,fd)):F("",!0)]),P.kind!=="external"?(y(),T("p",hd,m(h(f)("plugins.builtinNote")),1)):F("",!0)])):F("",!0)]))),128))]))}},md={class:"dh-card overflow-hidden"},bd={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},vd={class:"text-base font-bold tracking-[-0.02em] text-strong"},yd={class:"mt-0.5 text-xs text-muted"},_d={key:0,class:"border-b border-subtle px-5 py-3 text-xs text-danger"},wd={key:1,class:"border-b border-subtle bg-sunken px-5 py-4"},xd={class:"grid gap-3 sm:grid-cols-2"},kd={class:"dh-label"},Td={class:"dh-label"},Sd={class:"dh-label"},Ed=["placeholder"],Pd={class:"dh-label"},Cd=["value"],Ad={key:0},$d={class:"dh-label"},Od={value:""},Dd=["value"],Rd={class:"mt-3 flex items-center gap-2"},zd=["disabled"],Id=["disabled"],jd={key:2,class:"px-5 py-6 text-center text-sm text-muted"},Ud={key:3,class:"w-full text-left text-sm"},Nd={class:"[&>th]:eyebrow [&>th]:px-5 [&>th]:py-2.5 [&>th]:font-medium"},Md={class:"data px-5 py-2.5 text-xs text-strong"},Ld={key:0,class:"eyebrow ml-1"},Fd={class:"px-5 py-2.5 text-body"},Bd={class:"px-5 py-2.5 text-body"},Hd={class:"px-5 py-2.5"},Vd={class:"px-5 py-2.5 text-right whitespace-nowrap"},Gd=["onClick"],Kd=["disabled","onClick"],Wd={__name:"UsersCard",setup(e){const t=H([]),s=H([]),n=H(""),i=H(!1),o=H(null),r=H({}),a=Oe(()=>De.value?["user","admin","superadmin"]:["user","admin"]);async function l(){try{const[x,N]=await Promise.all([ae("/api/users"),ae("/api/orgs")]);t.value=x.users||[],s.value=N.organizations||[],n.value=""}catch(x){n.value=x.message}}lt(l);function g(){var x;o.value="new",r.value={email:"",name:"",password:"",role:"user",organization:De.value?"":((x=he.value)==null?void 0:x.organization)||""}}function d(x){o.value=x.id,r.value={email:x.email,name:x.name||"",password:"",role:x.role,organization:x.organization||""}}function b(){o.value=null,n.value=""}async function E(){i.value=!0,n.value="";try{if(o.value==="new")await ae("/api/users",{method:"POST",body:r.value});else{const x={...r.value};x.password||delete x.password,await ae(`/api/users/${o.value}`,{method:"PATCH",body:x})}o.value=null,await l()}catch(x){n.value=x.message}finally{i.value=!1}}async function A(x){if(confirm(f("users.confirmDelete",{email:x.email}))){i.value=!0,n.value="";try{await ae(`/api/users/${x.id}`,{method:"DELETE"}),await l()}catch(N){n.value=N.message}finally{i.value=!1}}}const V=x=>x==="superadmin"?"bg-info-soft text-info":x==="admin"?"bg-warning-soft text-warning":"bg-sunken text-muted";return(x,N)=>(y(),T("div",md,[u("div",bd,[u("div",null,[u("div",vd,m(h(f)("users.title")),1),u("p",yd,m(h(De)?h(f)("users.allOrgs"):h(f)("users.yourOrg")),1)]),u("button",{class:"dh-btn",onClick:g},m(h(f)("users.newUser")),1)]),n.value?(y(),T("p",_d,m(n.value),1)):F("",!0),o.value?(y(),T("div",wd,[u("div",xd,[u("div",null,[u("label",kd,m(h(f)("common.email")),1),pe(u("input",{"onUpdate:modelValue":N[0]||(N[0]=R=>r.value.email=R),class:"dh-input",type:"email",autocomplete:"off"},null,512),[[be,r.value.email]])]),u("div",null,[u("label",Td,m(h(f)("common.name")),1),pe(u("input",{"onUpdate:modelValue":N[1]||(N[1]=R=>r.value.name=R),class:"dh-input",autocomplete:"off"},null,512),[[be,r.value.name]])]),u("div",null,[u("label",Sd,m(o.value==="new"?h(f)("users.password"):h(f)("users.passwordUnchanged")),1),pe(u("input",{"onUpdate:modelValue":N[2]||(N[2]=R=>r.value.password=R),class:"dh-input",type:"password",autocomplete:"new-password",placeholder:h(f)("users.passwordPlaceholder")},null,8,Ed),[[be,r.value.password]])]),u("div",null,[u("label",Pd,m(h(f)("common.role")),1),pe(u("select",{"onUpdate:modelValue":N[3]||(N[3]=R=>r.value.role=R),class:"dh-select"},[(y(!0),T(re,null,Ce(a.value,R=>(y(),T("option",{key:R,value:R},m(R),9,Cd))),128))],512),[[ks,r.value.role]])]),h(De)?(y(),T("div",Ad,[u("label",$d,m(h(f)("common.organization")),1),pe(u("select",{"onUpdate:modelValue":N[4]||(N[4]=R=>r.value.organization=R),class:"dh-select"},[u("option",Od,m(h(f)("users.orgNone")),1),(y(!0),T(re,null,Ce(s.value,R=>(y(),T("option",{key:R.id,value:R.id},m(R.name),9,Dd))),128))],512),[[ks,r.value.organization]])])):F("",!0)]),u("div",Rd,[u("button",{class:"dh-btn",disabled:i.value,onClick:E},m(o.value==="new"?h(f)("common.create"):h(f)("common.save")),9,zd),u("button",{class:"dh-btn-ghost",disabled:i.value,onClick:b},m(h(f)("common.cancel")),9,Id)])])):F("",!0),t.value.length?(y(),T("table",Ud,[u("thead",null,[u("tr",Nd,[u("th",null,m(h(f)("common.email")),1),u("th",null,m(h(f)("common.name")),1),u("th",null,m(h(f)("common.organization")),1),u("th",null,m(h(f)("common.role")),1),N[5]||(N[5]=u("th",null,null,-1))])]),u("tbody",null,[(y(!0),T(re,null,Ce(t.value,R=>{var G,Z;return y(),T("tr",{key:R.id,class:"border-t border-subtle transition-colors hover:bg-sunken"},[u("td",Md,[$e(m(R.email)+" ",1),R.id===((G=h(he))==null?void 0:G.id)?(y(),T("span",Ld,m(h(f)("users.you")),1)):F("",!0)]),u("td",Fd,m(R.name||h(f)("common.empty")),1),u("td",Bd,m(R.organizationName||h(f)("common.empty")),1),u("td",Hd,[u("span",{class:Ee(["dh-pill",V(R.role)])},m(R.role),3)]),u("td",Vd,[u("button",{class:"dh-btn-ghost",onClick:U=>d(R)},m(h(f)("common.edit")),9,Gd),R.id!==((Z=h(he))==null?void 0:Z.id)?(y(),T("button",{key:0,class:"dh-btn-danger ml-1.5",disabled:i.value,onClick:U=>A(R)},m(h(f)("common.delete")),9,Kd)):F("",!0)])])}),128))])])):(y(),T("p",jd,m(h(f)("users.empty")),1))]))}},qd={class:"dh-card overflow-hidden"},Zd={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},Jd={class:"text-base font-bold tracking-[-0.02em] text-strong"},Yd={class:"mt-0.5 text-xs text-muted"},Xd={key:0,class:"border-b border-subtle px-5 py-3 text-xs text-danger"},Qd={key:1,class:"border-b border-subtle bg-sunken px-5 py-4"},ep={class:"dh-label"},tp=["placeholder"],sp={class:"mt-3 flex items-center gap-2"},np=["disabled"],ip=["disabled"],op={key:2,class:"px-5 py-6 text-center text-sm text-muted"},rp={key:3,class:"w-full text-left text-sm"},ap={class:"[&>th]:eyebrow [&>th]:px-5 [&>th]:py-2.5 [&>th]:font-medium"},lp={class:"px-5 py-2.5 font-medium text-strong"},cp={class:"data px-5 py-2.5 text-xs text-muted"},up={class:"px-5 py-2.5 text-right whitespace-nowrap"},dp=["onClick"],pp=["disabled","onClick"],fp={__name:"OrgsCard",setup(e){const t=H([]),s=H(""),n=H(!1),i=H(null),o=H(""),r=Oe(()=>{var x;return((x=he.value)==null?void 0:x.organization)||""}),a=Oe(()=>De.value||!r.value);function l(x){return De.value||x.id===r.value}async function g(){if(!gs.value){t.value=[];return}try{const x=await ae("/api/orgs");t.value=x.organizations||[],s.value=""}catch(x){s.value=x.message}}lt(g);function d(){i.value="new",o.value=""}function b(x){i.value=x.id,o.value=x.name}function E(){i.value=null,s.value=""}async function A(){n.value=!0,s.value="";try{i.value==="new"?(await ae("/api/orgs",{method:"POST",body:{name:o.value}}),De.value||await Ts()):await ae(`/api/orgs/${i.value}`,{method:"PATCH",body:{name:o.value}}),i.value=null,await g()}catch(x){s.value=x.message}finally{n.value=!1}}async function V(x){const N=!De.value&&x.id===r.value;if(confirm(f(N?"orgs.confirmDeleteOwn":"orgs.confirmDelete",{name:x.name}))){n.value=!0,s.value="";try{await ae(`/api/orgs/${x.id}`,{method:"DELETE"}),N&&await Ts(),await g()}catch(G){s.value=G.message}finally{n.value=!1}}}return(x,N)=>(y(),T("div",qd,[u("div",Zd,[u("div",null,[u("div",Jd,m(h(De)?h(f)("orgs.title"):h(f)("common.organization")),1),u("p",Yd,m(h(De)?h(f)("orgs.subtitle"):r.value?h(f)("orgs.subtitleOwn"):h(f)("orgs.subtitleNone")),1)]),a.value?(y(),T("button",{key:0,class:"dh-btn",onClick:d},m(h(f)("orgs.newOrg")),1)):F("",!0)]),s.value?(y(),T("p",Xd,m(s.value),1)):F("",!0),i.value?(y(),T("div",Qd,[u("label",ep,m(h(f)("common.name")),1),pe(u("input",{"onUpdate:modelValue":N[0]||(N[0]=R=>o.value=R),class:"dh-input",placeholder:h(f)("orgs.namePlaceholder"),onKeyup:xo(A,["enter"])},null,40,tp),[[be,o.value]]),u("div",sp,[u("button",{class:"dh-btn",disabled:n.value||!o.value.trim(),onClick:A},m(i.value==="new"?h(f)("common.create"):h(f)("common.save")),9,np),u("button",{class:"dh-btn-ghost",disabled:n.value,onClick:E},m(h(f)("common.cancel")),9,ip)])])):F("",!0),t.value.length?(y(),T("table",rp,[u("thead",null,[u("tr",ap,[u("th",null,m(h(f)("common.name")),1),u("th",null,m(h(f)("orgs.colId")),1),N[1]||(N[1]=u("th",null,null,-1))])]),u("tbody",null,[(y(!0),T(re,null,Ce(t.value,R=>(y(),T("tr",{key:R.id,class:"border-t border-subtle transition-colors hover:bg-sunken"},[u("td",lp,m(R.name),1),u("td",cp,m(R.id),1),u("td",up,[l(R)?(y(),T(re,{key:0},[u("button",{class:"dh-btn-ghost",onClick:G=>b(R)},m(h(f)("common.rename")),9,dp),u("button",{class:"dh-btn-danger ml-1.5",disabled:n.value,onClick:G=>V(R)},m(h(f)("common.delete")),9,pp)],64)):F("",!0)])]))),128))])])):(y(),T("p",op,m(a.value&&!h(De)?h(f)("orgs.createHint"):h(f)("orgs.empty")),1))]))}},hp={class:"dh-card overflow-hidden"},gp={class:"border-b border-subtle px-5 py-4"},mp={class:"flex items-center justify-between"},bp={class:"text-base font-bold tracking-[-0.02em] text-strong"},vp={class:"eyebrow"},yp={key:0,class:"mt-1.5 text-xs text-muted"},_p={class:"overflow-x-auto"},wp={class:"w-full text-left text-sm"},xp={class:"[&>th]:eyebrow [&>th]:px-5 [&>th]:py-2.5 [&>th]:font-medium"},kp={class:"data border-t border-subtle px-5 py-2.5 text-xs whitespace-nowrap"},Tp={class:"text-strong"},Sp={class:"border-t border-subtle px-5 py-2.5 text-body"},fe={__name:"EndpointTable",props:{title:String,auth:String,endpoints:Array,note:String},setup(e){const t={GET:"text-success",POST:"text-brandtext",PUT:"text-info",PATCH:"text-warning",DELETE:"text-danger"};return(s,n)=>(y(),T("div",hp,[u("div",gp,[u("div",mp,[u("div",bp,m(e.title),1),u("span",vp,m(e.auth),1)]),e.note?(y(),T("p",yp,m(e.note),1)):F("",!0)]),u("div",_p,[u("table",wp,[u("thead",null,[u("tr",xp,[u("th",null,m(h(f)("api.colEndpoint")),1),u("th",null,m(h(f)("api.colDescription")),1)])]),u("tbody",null,[(y(!0),T(re,null,Ce(e.endpoints,i=>(y(),T("tr",{key:i.method+i.path,class:"transition-colors hover:bg-sunken"},[u("td",kp,[u("span",{class:Ee(["font-semibold",t[i.method]])},m(i.method),3),u("span",Tp,m(i.path),1)]),u("td",Sp,m(i.desc),1)]))),128))])])])]))}},Ep={class:"mx-auto flex max-w-4xl flex-col gap-6 px-6 pt-12 pb-16"},Pp={class:"flex items-center gap-3"},Cp={class:"eyebrow mt-1.5"},Ap={key:0,class:"data hidden text-xs text-muted sm:inline"},$p={key:0},Op={key:1,class:"dh-pill bg-info-soft text-info"},Dp=["value","aria-label"],Rp=["value"],zp=["title"],Ip={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.75",class:"h-4 w-4"},jp={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.75",class:"h-4 w-4"},Up={key:0,class:"eyebrow py-16 text-center"},Np={class:"flex flex-wrap gap-1.5"},Mp=["onClick"],Lp={key:8,class:"eyebrow text-center"},Fp={class:"eyebrow text-center"},Bp="{records} is any of service-records, technical-checks, maintenance, fuel-entries, charging-sessions, car-documents, parts.",Hp={__name:"App",setup(e){const t=H(!0),s=H("overview");lt(async()=>{await ec(),t.value=!1});const n=Oe(()=>{const P=[{id:"overview",label:f("sections.overview")}];return gs.value&&P.push({id:"users",label:f("sections.users")}),(gs.value||he.value)&&P.push({id:"orgs",label:f("sections.orgs")}),De.value&&P.push({id:"server",label:f("sections.server")},{id:"pocketbase",label:f("sections.pocketbase")},{id:"webapp",label:f("sections.webapp")},{id:"plugins",label:f("sections.plugins")}),P.push({id:"api",label:f("sections.api")}),P}),i=Oe(()=>Gl.map(P=>{let I=P;try{I=new Intl.DisplayNames([P],{type:"language"}).of(P)||P}catch{}return{code:P,label:I.charAt(0).toUpperCase()+I.slice(1)}}));function o(){Pn(),s.value="overview"}const r=[{method:"GET",path:"/api/health",desc:"Liveness probe (no auth)"},{method:"GET",path:"/healthz",desc:"The same probe under the conventional container path"},{method:"GET",path:"/api/status",desc:"Health of PocketBase + Web App"},{method:"POST",path:"/api/auth/login",desc:"Exchange email + password for a PocketBase token"},{method:"GET",path:"/api/auth/validate",desc:"Check whether a token is still valid"}],a=[{method:"GET",path:"/api/auth/me",desc:"Identity of the bearer token"},{method:"GET",path:"/api/identity",desc:"Identity incl. role + organization"}],l=[{method:"GET",path:"/api/cars",desc:"List owned + shared cars"},{method:"POST",path:"/api/cars",desc:"Create a car"},{method:"GET",path:"/api/cars/{id}",desc:"Fetch one car"},{method:"PATCH",path:"/api/cars/{id}",desc:"Update a car"},{method:"PUT",path:"/api/cars/{id}/view",desc:"Save the car's layout — hidden tabs/fields/columns and their order"},{method:"DELETE",path:"/api/cars/{id}",desc:"Delete a car (owner only)"},{method:"GET",path:"/api/cars/{id}/service-records",desc:"A car's service history"},{method:"GET",path:"/api/cars/{id}/technical-checks",desc:"A car's roadworthiness inspections"},{method:"GET",path:"/api/cars/{id}/parts",desc:"A car's parts catalog"},{method:"GET",path:"/api/cars/{id}/fuel-entries",desc:"A car's refuelings"},{method:"GET",path:"/api/cars/{id}/fuel-stats",desc:"Consumption + cost totals from the fuel log"},{method:"GET",path:"/api/cars/{id}/charging-sessions",desc:"A car's charging sessions"},{method:"GET",path:"/api/cars/{id}/charging-stats",desc:"Energy + cost totals from the charging log"},{method:"GET",path:"/api/cars/{id}/maintenance",desc:"A car's maintenance log"},{method:"GET",path:"/api/cars/{id}/documents",desc:"A car's documents"},{method:"GET",path:"/api/cars/{id}/reminders",desc:"A car's reminders"},{method:"GET",path:"/api/cars/{id}/provider",desc:"Live snapshot from the car's connected service"},{method:"POST",path:"/api/cars/{id}/provider",desc:"Link the car to a provider vehicle (an empty provider unlinks)"},{method:"POST",path:"/api/cars/{id}/provider/sync",desc:"Re-apply the provider's data to the car"},{method:"GET",path:"/api/cars/{id}/shares",desc:"Who a car is shared with (owner)"},{method:"POST",path:"/api/cars/{id}/shares",desc:"Share a car by email (owner)"},{method:"DELETE",path:"/api/cars/{id}/shares/{userId}",desc:"Revoke a share (owner)"}],g=[{method:"GET",path:"/api/service-records",desc:"List one car's service records (?car={id})"},{method:"POST",path:"/api/service-records",desc:"Log a service record"},{method:"GET",path:"/api/service-records/{id}",desc:"Fetch one record"},{method:"PATCH",path:"/api/service-records/{id}",desc:"Update a record"},{method:"DELETE",path:"/api/service-records/{id}",desc:"Delete a record"}],d=[{method:"GET",path:"/api/technical-checks",desc:"List one car's inspections (?car={id})"},{method:"POST",path:"/api/technical-checks",desc:"Log an inspection"},{method:"GET",path:"/api/technical-checks/{id}",desc:"Fetch one inspection"},{method:"PATCH",path:"/api/technical-checks/{id}",desc:"Update an inspection"},{method:"DELETE",path:"/api/technical-checks/{id}",desc:"Delete an inspection"}],b=[{method:"GET",path:"/api/parts",desc:"List one car's parts (?car={id})"},{method:"POST",path:"/api/parts",desc:"Add a part"},{method:"GET",path:"/api/parts/{id}",desc:"Fetch one part"},{method:"PATCH",path:"/api/parts/{id}",desc:"Update a part"},{method:"DELETE",path:"/api/parts/{id}",desc:"Delete a part"}],E=[{method:"GET",path:"/api/fuel-entries",desc:"List one car's refuelings (?car={id})"},{method:"POST",path:"/api/fuel-entries",desc:"Log a refueling"},{method:"GET",path:"/api/fuel-entries/{id}",desc:"Fetch one refueling"},{method:"PATCH",path:"/api/fuel-entries/{id}",desc:"Update a refueling"},{method:"DELETE",path:"/api/fuel-entries/{id}",desc:"Delete a refueling"}],A=[{method:"GET",path:"/api/charging-sessions",desc:"List one car's charging sessions (?car={id})"},{method:"POST",path:"/api/charging-sessions",desc:"Log a charging session"},{method:"GET",path:"/api/charging-sessions/{id}",desc:"Fetch one session"},{method:"PATCH",path:"/api/charging-sessions/{id}",desc:"Update a session"},{method:"DELETE",path:"/api/charging-sessions/{id}",desc:"Delete a session"}],V=[{method:"GET",path:"/api/maintenance",desc:"List one car's maintenance jobs (?car={id})"},{method:"POST",path:"/api/maintenance",desc:"Log a maintenance job"},{method:"GET",path:"/api/maintenance/{id}",desc:"Fetch one job"},{method:"PATCH",path:"/api/maintenance/{id}",desc:"Update a job"},{method:"DELETE",path:"/api/maintenance/{id}",desc:"Delete a job"}],x=[{method:"GET",path:"/api/car-documents",desc:"List one car's documents (?car={id})"},{method:"POST",path:"/api/car-documents",desc:"Add a document"},{method:"GET",path:"/api/car-documents/{id}",desc:"Fetch one document"},{method:"PATCH",path:"/api/car-documents/{id}",desc:"Update a document"},{method:"DELETE",path:"/api/car-documents/{id}",desc:"Delete a document"}],N=[{method:"GET",path:"/api/reminders",desc:"List one car's reminders (?car={id})"},{method:"POST",path:"/api/reminders",desc:"Create a reminder"},{method:"GET",path:"/api/reminders/{id}",desc:"Fetch one reminder"},{method:"PATCH",path:"/api/reminders/{id}",desc:"Update a reminder"},{method:"DELETE",path:"/api/reminders/{id}",desc:"Delete a reminder"},{method:"POST",path:"/api/reminders/{id}/complete",desc:"Mark done — a recurring reminder rolls forward from now"}],R=[{method:"POST",path:"/api/{records}/{id}/file",desc:"Attach a file, replacing any previous one (PDF or image, max 10 MB)"},{method:"GET",path:"/api/{records}/{id}/file",desc:"Download the attachment (car access re-checked on every request)"},{method:"DELETE",path:"/api/{records}/{id}/file",desc:"Detach and delete the file"}],G=[{method:"GET",path:"/api/vehicle-providers",desc:"Registered providers and whether the caller can use each one"},{method:"GET",path:"/api/vehicle-providers/{provider}/vehicles",desc:"Vehicles on the caller's provider account, as importable cars"},{method:"POST",path:"/api/vehicle-providers/{provider}/import",desc:"Create a car from a provider vehicle (409 if already imported)"}],Z=[{method:"GET",path:"/api/integrations/toyota",desc:"Resolved Toyota Connected settings (secrets masked)"},{method:"PUT",path:"/api/integrations/toyota",desc:"Save the caller's own layer (user or org scope)"},{method:"POST",path:"/api/integrations/toyota/health",desc:"Live probe with the resolved credentials"},{method:"GET",path:"/api/integrations/toyota/vehicles",desc:"Raw MyToyota vehicle payload"},{method:"GET",path:"/api/integrations/anker-solix",desc:"Resolved Anker Solix settings (secrets masked)"},{method:"PUT",path:"/api/integrations/anker-solix",desc:"Save the caller's own layer (user or org scope)"},{method:"POST",path:"/api/integrations/anker-solix/health",desc:"Live probe with the resolved credentials"},{method:"GET",path:"/api/integrations/anker-solix/chargers",desc:"EV chargers on the linked Anker account"},{method:"GET",path:"/api/integrations/anker-solix/chargers/{sn}/control",desc:"Control mode, token state and live CSMS session for one charger"},{method:"POST",path:"/api/integrations/anker-solix/chargers/{sn}/control/token",desc:"(Re)issue the charger's control token"},{method:"DELETE",path:"/api/integrations/anker-solix/chargers/{sn}/control/token",desc:"Revoke the control token"},{method:"POST",path:"/api/integrations/anker-solix/chargers/{sn}/{action}",desc:"One OCPP command: start, stop, limit, clear-limit, availability, reset, unlock, trigger, config"},{method:"GET",path:"/api/integrations/greencell",desc:"Resolved Greencell settings (secrets masked)"},{method:"PUT",path:"/api/integrations/greencell",desc:"Save the caller's own layer (user or org scope)"},{method:"POST",path:"/api/integrations/greencell/health",desc:"Live probe: connect to the broker and broadcast for devices"},{method:"GET",path:"/api/integrations/greencell/chargers",desc:"Greencell chargers answering on the configured MQTT broker"},{method:"GET",path:"/api/integrations/greencell/chargers/{sn}/state",desc:"Live EVSE state, access level, power and per-phase current/voltage"}],U=[{method:"GET",path:"/ocpp/{serial}",desc:"WebSocket the charger dials out to; OCPP Basic auth with the serial + its control token"}],le=[{method:"GET",path:"/api/me",desc:"Current user profile"},{method:"PATCH",path:"/api/me",desc:"Update profile"},{method:"POST",path:"/api/me/password",desc:"Change password"},{method:"POST",path:"/api/me/avatar",desc:"Upload avatar"},{method:"GET",path:"/api/me/avatar",desc:"Fetch avatar"},{method:"DELETE",path:"/api/me/avatar",desc:"Remove avatar"},{method:"POST",path:"/api/me/verify/request",desc:"Request email verification"},{method:"GET",path:"/api/me/export",desc:"Export your data"},{method:"POST",path:"/api/me/import",desc:"Import data"},{method:"POST",path:"/api/me/delete",desc:"Request account deletion"},{method:"POST",path:"/api/me/delete/cancel",desc:"Cancel deletion request"},{method:"DELETE",path:"/api/me",desc:"Finalize account deletion"}],z=[{method:"GET",path:"/api/users",desc:"List users (scoped by role)"},{method:"POST",path:"/api/users",desc:"Create a user"},{method:"PATCH",path:"/api/users/{id}",desc:"Update email / name / role / org / password"},{method:"DELETE",path:"/api/users/{id}",desc:"Delete a user"},{method:"GET",path:"/api/orgs",desc:"List organizations"},{method:"POST",path:"/api/orgs",desc:"Create an organization (any user without one; creator becomes admin)"},{method:"PATCH",path:"/api/orgs/{id}",desc:"Rename an organization (own org; any as superadmin)"},{method:"DELETE",path:"/api/orgs/{id}",desc:"Delete an organization (own org; any as superadmin)"}],K=[{method:"GET",path:"/api/admin/pb-config",desc:"PocketBase connection + live probe"},{method:"POST",path:"/api/admin/pb-config/test",desc:"Probe a candidate connection"},{method:"PUT",path:"/api/admin/pb-config",desc:"Apply + persist a connection"},{method:"GET",path:"/api/admin/server-config",desc:"This server's display name"},{method:"PUT",path:"/api/admin/server-config",desc:"Rename this server (applied + persisted)"},{method:"GET",path:"/api/admin/webapp-config",desc:"Web App URL + CORS origins, with a live probe"},{method:"POST",path:"/api/admin/webapp-config/test",desc:"Probe a candidate Web App address"},{method:"PUT",path:"/api/admin/webapp-config",desc:"Apply + persist Web App settings"},{method:"GET",path:"/api/admin/plugins",desc:"List plugins (secrets masked)"},{method:"POST",path:"/api/admin/plugins",desc:"Register an external plugin"},{method:"GET",path:"/api/admin/plugins/{name}",desc:"Fetch one plugin"},{method:"PUT",path:"/api/admin/plugins/{name}",desc:"Enable/disable + configure"},{method:"DELETE",path:"/api/admin/plugins/{name}",desc:"Remove an external plugin"},{method:"POST",path:"/api/admin/plugins/{name}/health",desc:"Run a health check now"}];return(P,I)=>(y(),T("div",Ep,[u("div",Pp,[ee(lc,{"on-dark":h(Ct)==="dark",class:"h-7"},null,8,["on-dark"]),u("span",Cp,m(h(f)("app.apiServer")),1),I[4]||(I[4]=u("div",{class:"flex-1"},null,-1)),h(he)?(y(),T("span",Ap,[$e(m(h(he).email),1),h(he).organizationName?(y(),T("span",$p," · "+m(h(he).organizationName),1)):F("",!0)])):F("",!0),h(he)?(y(),T("span",Op,m(h(he).role),1)):F("",!0),u("select",{class:"dh-select !w-auto !py-1 !text-xs",value:h(En),"aria-label":h(f)("sections.overview"),onChange:I[0]||(I[0]=J=>h(Wl)(J.target.value))},[(y(!0),T(re,null,Ce(i.value,J=>(y(),T("option",{key:J.code,value:J.code},m(J.label),9,Rp))),128))],40,Dp),u("button",{class:"dh-btn-ghost",title:h(Ct)==="dark"?h(f)("app.switchToLight"):h(f)("app.switchToDark"),onClick:I[1]||(I[1]=(...J)=>h(fi)&&h(fi)(...J))},[h(Ct)==="dark"?(y(),T("svg",Ip,[...I[2]||(I[2]=[u("circle",{cx:"12",cy:"12",r:"4"},null,-1),u("path",{"stroke-linecap":"round",d:"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"},null,-1)])])):(y(),T("svg",jp,[...I[3]||(I[3]=[u("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"},null,-1)])])),$e(" "+m(h(f)("app.theme")),1)],8,zp),h(Rt)?(y(),T("button",{key:2,class:"dh-btn-ghost",onClick:o},m(h(f)("app.signOut")),1)):F("",!0)]),t.value?(y(),T("p",Up,m(h(f)("app.loading")),1)):h(Rt)?(y(),T(re,{key:2},[u("nav",Np,[(y(!0),T(re,null,Ce(n.value,J=>(y(),T("button",{key:J.id,class:Ee(["dh-btn-ghost",s.value===J.id?"border-accent text-brandtext":""]),onClick:wt=>s.value=J.id},m(J.label),11,Mp))),128))]),s.value==="overview"?(y(),et($c,{key:0})):s.value==="users"?(y(),et(Wd,{key:1})):s.value==="orgs"?(y(),et(fp,{key:2})):s.value==="server"?(y(),et(au,{key:3})):s.value==="pocketbase"?(y(),et(qc,{key:4})):s.value==="webapp"?(y(),et(ku,{key:5})):s.value==="plugins"?(y(),et(gd,{key:6})):s.value==="api"?(y(),T(re,{key:7},[ee(fe,{title:h(f)("api.groupPublic"),auth:h(f)("api.authNone"),endpoints:r},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupIdentity"),auth:h(f)("api.authBearer"),endpoints:a},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupCars"),auth:h(f)("api.authBearer"),endpoints:l},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupService"),auth:h(f)("api.authBearer"),endpoints:g},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupTechnical"),auth:h(f)("api.authBearer"),endpoints:d},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupParts"),auth:h(f)("api.authBearer"),endpoints:b},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupFuel"),auth:h(f)("api.authBearer"),endpoints:E},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupCharging"),auth:h(f)("api.authBearer"),endpoints:A},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupMaintenance"),auth:h(f)("api.authBearer"),endpoints:V},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupDocuments"),auth:h(f)("api.authBearer"),endpoints:x},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupReminders"),auth:h(f)("api.authBearer"),endpoints:N},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupAttachments"),auth:h(f)("api.authBearer"),endpoints:R,note:Bp},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupProviders"),auth:h(f)("api.authBearer"),endpoints:G},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupIntegrations"),auth:h(f)("api.authBearer"),endpoints:Z},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupOcpp"),auth:h(f)("api.authCharger"),endpoints:U},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupAccount"),auth:h(f)("api.authBearer"),endpoints:le},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupManagement"),auth:h(f)("api.authManager"),endpoints:z},null,8,["title","auth"]),ee(fe,{title:h(f)("api.groupSuperadmin"),auth:h(f)("api.authSuperadmin"),endpoints:K},null,8,["title","auth"])],64)):F("",!0),!h(gs)&&s.value==="overview"?(y(),T("p",Lp,m(h(f)("app.standardUserNote")),1)):F("",!0)],64)):(y(),et(vc,{key:1})),u("p",Fp,m(h(f)("app.footer")),1)]))}};sl(Hp).mount("#app"); diff --git a/API Server/internal/api/dist/assets/index-CGuUVjJH.css b/API Server/internal/api/dist/assets/index-CGuUVjJH.css deleted file mode 100644 index 400f8f0..0000000 --- a/API Server/internal/api/dist/assets/index-CGuUVjJH.css +++ /dev/null @@ -1 +0,0 @@ -/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial}}}@layer theme{:root,:host{--font-sans:var(--font-sans);--font-mono:var(--font-mono);--spacing:.25rem;--container-sm:24rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--shadow-xs:var(--shadow-xs);--shadow-sm:var(--shadow-sm);--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius-control:12px;--radius-card:18px;--radius-pill:999px}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.table{display:table}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-4{height:calc(var(--spacing) * 4)}.h-8{height:calc(var(--spacing) * 8)}.\!w-auto{width:auto!important}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-4{width:calc(var(--spacing) * 4)}.w-8{width:calc(var(--spacing) * 8)}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-sm{max-width:var(--container-sm)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded-control{border-radius:12px}.rounded-full{border-radius:3.40282e38px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-accent{border-color:var(--accent)}.border-subtle{border-color:var(--border-subtle)}.bg-current{background-color:currentColor}.bg-danger-soft{background-color:var(--danger-100)}.bg-info-soft{background-color:var(--info-100)}.bg-success-soft{background-color:var(--success-100)}.bg-sunken{background-color:var(--surface-sunken)}.bg-warning-soft{background-color:var(--warning-100)}.p-6{padding:calc(var(--spacing) * 6)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.\!py-1{padding-block:var(--spacing)!important}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.\!text-xs{font-size:var(--text-xs)!important;line-height:var(--tw-leading,var(--text-xs--line-height))!important}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[-0\.02em\]{--tw-tracking:-.02em;letter-spacing:-.02em}.tracking-\[-0\.03em\]{--tw-tracking:-.03em;letter-spacing:-.03em}.whitespace-nowrap{white-space:nowrap}.text-body{color:var(--text-body)}.text-brandtext{color:var(--text-brand)}.text-danger{color:var(--danger-600)}.text-info{color:var(--info-600)}.text-muted{color:var(--text-muted)}.text-strong{color:var(--text-strong)}.text-success{color:var(--success-600)}.text-warning{color:var(--warning-600)}.italic{font-style:italic}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.select-none{-webkit-user-select:none;user-select:none}.first\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}@media(hover:hover){.hover\:bg-sunken:hover{background-color:var(--surface-sunken)}}@media(min-width:40rem){.sm\:inline{display:inline}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&\>th\]\:px-5>th{padding-inline:calc(var(--spacing) * 5)}.\[\&\>th\]\:py-2\.5>th{padding-block:calc(var(--spacing) * 2.5)}.\[\&\>th\]\:font-medium>th{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}}:root{color-scheme:light;--brand-900:#0b1730;--brand-800:#0f1e3d;--brand-700:#1e40af;--brand-600:#2563eb;--brand-500:#3b82f6;--brand-400:#60a5fa;--brand-300:#93c5fd;--brand-200:#c7dbfb;--brand-100:#e8f0fd;--ink-900:#0f1e3d;--ink-700:#28374f;--ink-600:#3e4e68;--ink-500:#5c6b85;--ink-400:#7a8aa6;--ink-300:#b4bece;--ink-200:#d6deea;--ink-100:#e4e9f2;--ink-50:#eef2f8;--ink-25:#f7f9fc;--white:#fff;--success-600:#1f8a5b;--success-100:#e1f3ea;--warning-600:#d9822b;--warning-100:#fbeddd;--danger-600:#dc2a45;--danger-100:#fbe3e7;--info-600:#2563eb;--info-100:#e8f0fd;--surface-page:var(--ink-25);--surface-card:var(--white);--surface-sunken:var(--ink-50);--border-subtle:var(--ink-100);--border-default:var(--ink-200);--border-strong:var(--ink-300);--text-strong:var(--ink-900);--text-body:var(--ink-600);--text-muted:var(--ink-400);--text-brand:var(--brand-700);--accent:var(--brand-600);--accent-hover:var(--brand-700);--focus-ring:var(--brand-400);--shadow-xs:0 1px 2px #0f1e3d0f;--shadow-sm:0 1px 2px #0f1e3d0a, 0 2px 6px #0f1e3d0f;--shadow-md:0 1px 2px #0f1e3d0a, 0 12px 30px -12px #0f1e3d24;--font-display:"Archivo", system-ui, sans-serif;--font-sans:"Archivo", system-ui, sans-serif;--font-mono:"DM Mono", ui-monospace, "SF Mono", monospace}html.dark{color-scheme:dark;--success-100:#12352a;--warning-100:#3a2a16;--danger-100:#3a1620;--info-100:#122a4d;--surface-page:#0b1730;--surface-card:#13233f;--surface-sunken:#0f1e38;--border-subtle:#21324f;--border-default:#2c3f5e;--border-strong:#3c5173;--text-strong:#f2f6fc;--text-body:#b7c4d9;--text-muted:#7c8ca8;--text-brand:#93c5fd;--accent:#3b82f6;--accent-hover:#60a5fa;--focus-ring:#60a5fa;--success-600:#35b27a;--warning-600:#e0a03a;--danger-600:#e85c74;--shadow-xs:0 1px 2px #0006;--shadow-sm:0 1px 2px #0006, 0 2px 6px #0006;--shadow-md:0 1px 2px #00000059, 0 12px 30px -12px #0000008c}html,body,#app{height:100%}body{font-family:var(--font-sans);background:var(--surface-page);color:var(--text-body);-webkit-font-smoothing:antialiased;margin:0}.eyebrow{font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.16em;color:var(--text-muted);font-size:11px}.data{font-family:var(--font-mono);letter-spacing:.02em;font-variant-numeric:tabular-nums}.dh-btn-ghost{border-radius:var(--radius-control);border:1px solid var(--border-default);background:var(--surface-card);height:34px;color:var(--text-strong);font-family:var(--font-sans);cursor:pointer;justify-content:center;align-items:center;gap:8px;padding:0 12px;font-size:.8125rem;font-weight:600;transition:background-color .14s,border-color .14s;display:inline-flex}.dh-btn-ghost:hover{background:var(--surface-sunken);border-color:var(--border-strong)}.dh-btn-ghost:focus-visible{box-shadow:0 0 0 3px var(--focus-ring);outline:none}.dh-btn{border-radius:var(--radius-control);background:var(--accent);color:#fff;height:34px;font-family:var(--font-sans);cursor:pointer;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:0 14px;font-size:.8125rem;font-weight:600;transition:background-color .14s;display:inline-flex}.dh-btn:hover:not(:disabled){background:var(--accent-hover)}.dh-btn:focus-visible{box-shadow:0 0 0 3px var(--focus-ring);outline:none}.dh-btn:disabled,.dh-btn-ghost:disabled,.dh-btn-danger:disabled{opacity:.55;cursor:not-allowed}.dh-btn-danger{border-radius:var(--radius-control);border:1px solid var(--border-default);height:30px;color:var(--danger-600);font-family:var(--font-sans);cursor:pointer;background:0 0;justify-content:center;align-items:center;gap:6px;padding:0 10px;font-size:.75rem;font-weight:600;transition:background-color .14s,border-color .14s;display:inline-flex}.dh-btn-danger:hover:not(:disabled){background:var(--danger-100);border-color:var(--danger-600)}.dh-input,.dh-select{border-radius:var(--radius-control);border:1px solid var(--border-default);background:var(--surface-card);width:100%;height:36px;color:var(--text-strong);font-family:var(--font-sans);padding:0 10px;font-size:.8125rem;transition:border-color .14s}.dh-input::placeholder{color:var(--text-muted)}.dh-input:focus,.dh-select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-ring);outline:none}.dh-label{font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.16em;color:var(--text-muted);margin-bottom:5px;font-size:10px;display:block}.dh-pill{border-radius:var(--radius-pill);font-family:var(--font-mono);white-space:nowrap;align-items:center;gap:6px;padding:3px 9px;font-size:11px;font-weight:500;display:inline-flex}.dh-card{border:1px solid var(--border-subtle);background:var(--surface-card);border-radius:var(--radius-card);box-shadow:var(--shadow-sm)}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false} diff --git a/API Server/internal/api/dist/assets/index-DYiq470x.js b/API Server/internal/api/dist/assets/index-DYiq470x.js deleted file mode 100644 index d831908..0000000 --- a/API Server/internal/api/dist/assets/index-DYiq470x.js +++ /dev/null @@ -1,17 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&n(r)}).observe(document,{childList:!0,subtree:!0});function s(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=s(i);fetch(i.href,o)}})();/** -* @vue/shared v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function cn(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const X={},Tt=[],Je=()=>{},mi=()=>!1,Ss=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Es=e=>e.startsWith("onUpdate:"),ve=Object.assign,un=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},$o=Object.prototype.hasOwnProperty,W=(e,t)=>$o.call(e,t),M=Array.isArray,St=e=>ss(e)==="[object Map]",Dt=e=>ss(e)==="[object Set]",Dn=e=>ss(e)==="[object Date]",V=e=>typeof e=="function",oe=e=>typeof e=="string",Ye=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",bi=e=>(Z(e)||V(e))&&V(e.then)&&V(e.catch),vi=Object.prototype.toString,ss=e=>vi.call(e),Oo=e=>ss(e).slice(8,-1),yi=e=>ss(e)==="[object Object]",dn=e=>oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ht=cn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ps=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},Ro=/-\w/g,De=Ps(e=>e.replace(Ro,t=>t.slice(1).toUpperCase())),zo=/\B([A-Z])/g,ht=Ps(e=>e.replace(zo,"-$1").toLowerCase()),_i=Ps(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ns=Ps(e=>e?`on${_i(e)}`:""),Ze=(e,t)=>!Object.is(e,t),ps=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},Cs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let In;const As=()=>In||(In=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function pn(e){if(M(e)){const t={};for(let s=0;s{if(s){const n=s.split(Io);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ue(e){let t="";if(oe(e))t=e;else if(M(e))for(let s=0;sdt(s,t))}const ki=e=>!!(e&&e.__v_isRef===!0),m=e=>oe(e)?e:e==null?"":M(e)||Z(e)&&(e.toString===vi||!V(e.toString))?ki(e)?m(e.value):JSON.stringify(e,Ti,2):String(e),Ti=(e,t)=>ki(t)?Ti(e,t.value):St(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,i],o)=>(s[Ms(n,o)+" =>"]=i,s),{})}:Dt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Ms(s))}:Ye(t)?Ms(t):Z(t)&&!M(t)&&!yi(t)?String(t):t,Ms=(e,t="")=>{var s;return Ye(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** -* @vue/reactivity v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let he;class Fo{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&he&&(he.active?(this.parent=he,this.index=(he.scopes||(he.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0){if(he===this)he=this.prevScope;else{let t=he;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(Gt){let t=Gt;for(Gt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Vt;){let t=Vt;for(Vt=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function Ci(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ai(e){let t,s=e.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),mn(n),Ho(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=s}function Js(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($i(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $i(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Jt)||(e.globalVersion=Jt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Js(e))))return;e.flags|=2;const t=e.dep,s=ee,n=Ie;ee=e,Ie=!0;try{Ci(e);const i=e.fn(e._value);(t.version===0||Ze(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{ee=s,Ie=n,Ai(e),e.flags&=-3}}function mn(e,t=!1){const{dep:s,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)mn(o,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function Ho(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Ie=!0;const Oi=[];function Xe(){Oi.push(Ie),Ie=!1}function Qe(){const e=Oi.pop();Ie=e===void 0?!0:e}function jn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=ee;ee=void 0;try{t()}finally{ee=s}}}let Jt=0;class Vo{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class bn{constructor(t){this.computed=t,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(t){if(!ee||!Ie||ee===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ee)s=this.activeLink=new Vo(ee,this),ee.deps?(s.prevDep=ee.depsTail,ee.depsTail.nextDep=s,ee.depsTail=s):ee.deps=ee.depsTail=s,Ri(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ee.depsTail,s.nextDep=void 0,ee.depsTail.nextDep=s,ee.depsTail=s,ee.deps===s&&(ee.deps=n)}return s}trigger(t){this.version++,Jt++,this.notify(t)}notify(t){hn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{gn()}}}function Ri(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Ri(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Ys=new WeakMap,_t=Symbol(""),Xs=Symbol(""),Yt=Symbol("");function me(e,t,s){if(Ie&&ee){let n=Ys.get(e);n||Ys.set(e,n=new Map);let i=n.get(s);i||(n.set(s,i=new bn),i.map=n,i.key=s),i.track()}}function it(e,t,s,n,i,o){const r=Ys.get(e);if(!r){Jt++;return}const a=l=>{l&&l.trigger()};if(hn(),t==="clear")r.forEach(a);else{const l=M(e),g=l&&dn(s);if(l&&s==="length"){const d=Number(n);r.forEach((b,P)=>{(P==="length"||P===Yt||!Ye(P)&&P>=d)&&a(b)})}else switch((s!==void 0||r.has(void 0))&&a(r.get(s)),g&&a(r.get(Yt)),t){case"add":l?g&&a(r.get("length")):(a(r.get(_t)),St(e)&&a(r.get(Xs)));break;case"delete":l||(a(r.get(_t)),St(e)&&a(r.get(Xs)));break;case"set":St(e)&&a(r.get(_t));break}}gn()}function xt(e){const t=K(e);return t===e?t:(me(t,"iterate",Yt),Oe(e)?t:t.map(Ne))}function $s(e){return me(e=K(e),"iterate",Yt),e}function We(e,t){return at(e)?At(wt(e)?Ne(t):t):Ne(t)}const Go={__proto__:null,[Symbol.iterator](){return Fs(this,Symbol.iterator,e=>We(this,e))},concat(...e){return xt(this).concat(...e.map(t=>M(t)?xt(t):t))},entries(){return Fs(this,"entries",e=>(e[1]=We(this,e[1]),e))},every(e,t){return et(this,"every",e,t,void 0,arguments)},filter(e,t){return et(this,"filter",e,t,s=>s.map(n=>We(this,n)),arguments)},find(e,t){return et(this,"find",e,t,s=>We(this,s),arguments)},findIndex(e,t){return et(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return et(this,"findLast",e,t,s=>We(this,s),arguments)},findLastIndex(e,t){return et(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return et(this,"forEach",e,t,void 0,arguments)},includes(...e){return Bs(this,"includes",e)},indexOf(...e){return Bs(this,"indexOf",e)},join(e){return xt(this).join(e)},lastIndexOf(...e){return Bs(this,"lastIndexOf",e)},map(e,t){return et(this,"map",e,t,void 0,arguments)},pop(){return Mt(this,"pop")},push(...e){return Mt(this,"push",e)},reduce(e,...t){return Un(this,"reduce",e,t)},reduceRight(e,...t){return Un(this,"reduceRight",e,t)},shift(){return Mt(this,"shift")},some(e,t){return et(this,"some",e,t,void 0,arguments)},splice(...e){return Mt(this,"splice",e)},toReversed(){return xt(this).toReversed()},toSorted(e){return xt(this).toSorted(e)},toSpliced(...e){return xt(this).toSpliced(...e)},unshift(...e){return Mt(this,"unshift",e)},values(){return Fs(this,"values",e=>We(this,e))}};function Fs(e,t,s){const n=$s(e),i=n[t]();return n!==e&&!Oe(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=s(o.value)),o}),i}const Ko=Array.prototype;function et(e,t,s,n,i,o){const r=$s(e),a=r!==e&&!Oe(e),l=r[t];if(l!==Ko[t]){const b=l.apply(e,o);return a?Ne(b):b}let g=s;r!==e&&(a?g=function(b,P){return s.call(this,We(e,b),P,e)}:s.length>2&&(g=function(b,P){return s.call(this,b,P,e)}));const d=l.call(r,g,n);return a&&i?i(d):d}function Un(e,t,s,n){const i=$s(e),o=i!==e&&!Oe(e);let r=s,a=!1;i!==e&&(o?(a=n.length===0,r=function(g,d,b){return a&&(a=!1,g=We(e,g)),s.call(this,g,We(e,d),b,e)}):s.length>3&&(r=function(g,d,b){return s.call(this,g,d,b,e)}));const l=i[t](r,...n);return a?We(e,l):l}function Bs(e,t,s){const n=K(e);me(n,"iterate",Yt);const i=n[t](...s);return(i===-1||i===!1)&&_n(s[0])?(s[0]=K(s[0]),n[t](...s)):i}function Mt(e,t,s=[]){Xe(),hn();const n=K(e)[t].apply(e,s);return gn(),Qe(),n}const Wo=cn("__proto__,__v_isRef,__isVue"),zi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ye));function qo(e){Ye(e)||(e=String(e));const t=K(this);return me(t,"has",e),t.hasOwnProperty(e)}class Di{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(i?o?ir:Ni:o?Ui:ji).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const r=M(t);if(!i){let l;if(r&&(l=Go[s]))return l;if(s==="hasOwnProperty")return qo}const a=Reflect.get(t,s,be(t)?t:n);if((Ye(s)?zi.has(s):Wo(s))||(i||me(t,"get",s),o))return a;if(be(a)){const l=r&&dn(s)?a:a.value;return i&&Z(l)?en(l):l}return Z(a)?i?en(a):Xt(a):a}}class Ii extends Di{constructor(t=!1){super(!1,t)}set(t,s,n,i){let o=t[s];const r=M(t)&&dn(s);if(!this._isShallow){const g=at(o);if(!Oe(n)&&!at(n)&&(o=K(o),n=K(n)),!r&&be(o)&&!be(n))return g||(o.value=n),!0}const a=r?Number(s)e,ls=e=>Reflect.getPrototypeOf(e);function Qo(e,t,s){return function(...n){const i=this.__v_raw,o=K(i),r=St(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,g=i[e](...n),d=s?Qs:t?At:Ne;return!t&&me(o,"iterate",l?Xs:_t),ve(Object.create(g),{next(){const{value:b,done:P}=g.next();return P?{value:b,done:P}:{value:a?[d(b[0]),d(b[1])]:d(b),done:P}}})}}function cs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function er(e,t){const s={get(i){const o=this.__v_raw,r=K(o),a=K(i);e||(Ze(i,a)&&me(r,"get",i),me(r,"get",a));const{has:l}=ls(r),g=t?Qs:e?At:Ne;if(l.call(r,i))return g(o.get(i));if(l.call(r,a))return g(o.get(a));o!==r&&o.get(i)},get size(){const i=this.__v_raw;return!e&&me(K(i),"iterate",_t),i.size},has(i){const o=this.__v_raw,r=K(o),a=K(i);return e||(Ze(i,a)&&me(r,"has",i),me(r,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const r=this,a=r.__v_raw,l=K(a),g=t?Qs:e?At:Ne;return!e&&me(l,"iterate",_t),a.forEach((d,b)=>i.call(o,g(d),g(b),r))}};return ve(s,e?{add:cs("add"),set:cs("set"),delete:cs("delete"),clear:cs("clear")}:{add(i){const o=K(this),r=ls(o),a=K(i),l=!t&&!Oe(i)&&!at(i)?a:i;return r.has.call(o,l)||Ze(i,l)&&r.has.call(o,i)||Ze(a,l)&&r.has.call(o,a)||(o.add(l),it(o,"add",l,l)),this},set(i,o){!t&&!Oe(o)&&!at(o)&&(o=K(o));const r=K(this),{has:a,get:l}=ls(r);let g=a.call(r,i);g||(i=K(i),g=a.call(r,i));const d=l.call(r,i);return r.set(i,o),g?Ze(o,d)&&it(r,"set",i,o):it(r,"add",i,o),this},delete(i){const o=K(this),{has:r,get:a}=ls(o);let l=r.call(o,i);l||(i=K(i),l=r.call(o,i)),a&&a.call(o,i);const g=o.delete(i);return l&&it(o,"delete",i,void 0),g},clear(){const i=K(this),o=i.size!==0,r=i.clear();return o&&it(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=Qo(i,e,t)}),s}function vn(e,t){const s=er(e,t);return(n,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(W(s,i)&&i in n?s:n,i,o)}const tr={get:vn(!1,!1)},sr={get:vn(!1,!0)},nr={get:vn(!0,!1)};const ji=new WeakMap,Ui=new WeakMap,Ni=new WeakMap,ir=new WeakMap;function or(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xt(e){return at(e)?e:yn(e,!1,Jo,tr,ji)}function rr(e){return yn(e,!1,Xo,sr,Ui)}function en(e){return yn(e,!0,Yo,nr,Ni)}function yn(e,t,s,n,i){if(!Z(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const o=i.get(e);if(o)return o;const r=or(Oo(e));if(r===0)return e;const a=new Proxy(e,r===2?n:s);return i.set(e,a),a}function wt(e){return at(e)?wt(e.__v_raw):!!(e&&e.__v_isReactive)}function at(e){return!!(e&&e.__v_isReadonly)}function Oe(e){return!!(e&&e.__v_isShallow)}function _n(e){return e?!!e.__v_raw:!1}function K(e){const t=e&&e.__v_raw;return t?K(t):e}function ar(e){return!W(e,"__v_skip")&&Object.isExtensible(e)&&wi(e,"__v_skip",!0),e}const Ne=e=>Z(e)?Xt(e):e,At=e=>Z(e)?en(e):e;function be(e){return e?e.__v_isRef===!0:!1}function H(e){return lr(e,!1)}function lr(e,t){return be(e)?e:new cr(e,t)}class cr{constructor(t,s){this.dep=new bn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:K(t),this._value=s?t:Ne(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,n=this.__v_isShallow||Oe(t)||at(t);t=n?t:K(t),Ze(t,s)&&(this._rawValue=t,this._value=n?t:Ne(t),this.dep.trigger())}}function h(e){return be(e)?e.value:e}const ur={get:(e,t,s)=>t==="__v_raw"?e:h(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const i=e[t];return be(i)&&!be(s)?(i.value=s,!0):Reflect.set(e,t,s,n)}};function Mi(e){return wt(e)?e:new Proxy(e,ur)}class dr{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new bn(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Jt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ee!==this)return Pi(this,!0),!0}get value(){const t=this.dep.track();return $i(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function pr(e,t,s=!1){let n,i;return V(e)?n=e:(n=e.get,i=e.set),new dr(n,i,s)}const us={},ms=new WeakMap;let yt;function fr(e,t=!1,s=yt){if(s){let n=ms.get(s);n||ms.set(s,n=[]),n.push(e)}}function hr(e,t,s=X){const{immediate:n,deep:i,once:o,scheduler:r,augmentJob:a,call:l}=s,g=j=>i?j:Oe(j)||i===!1||i===0?ot(j,1):ot(j);let d,b,P,$,F=!1,k=!1;if(be(e)?(b=()=>e.value,F=Oe(e)):wt(e)?(b=()=>g(e),F=!0):M(e)?(k=!0,F=e.some(j=>wt(j)||Oe(j)),b=()=>e.map(j=>{if(be(j))return j.value;if(wt(j))return g(j);if(V(j))return l?l(j,2):j()})):V(e)?t?b=l?()=>l(e,2):e:b=()=>{if(P){Xe();try{P()}finally{Qe()}}const j=yt;yt=d;try{return l?l(e,3,[$]):e($)}finally{yt=j}}:b=Je,t&&i){const j=b,re=i===!0?1/0:i;b=()=>ot(j(),re)}const O=Bo(),E=()=>{d.stop(),O&&O.active&&un(O.effects,d)};if(o&&t){const j=t;t=(...re)=>{const Ee=j(...re);return E(),Ee}}let C=k?new Array(e.length).fill(us):us;const I=j=>{if(!(!(d.flags&1)||!d.dirty&&!j))if(t){const re=d.run();if(j||i||F||(k?re.some((Ee,Pe)=>Ze(Ee,C[Pe])):Ze(re,C))){P&&P();const Ee=yt;yt=d;try{const Pe=[re,C===us?void 0:k&&C[0]===us?[]:C,$];C=re,l?l(t,3,Pe):t(...Pe)}finally{yt=Ee}}}else d.run()};return a&&a(I),d=new Si(b),d.scheduler=r?()=>r(I,!1):I,$=j=>fr(j,!1,d),P=d.onStop=()=>{const j=ms.get(d);if(j){if(l)l(j,4);else for(const re of j)re();ms.delete(d)}},t?n?I(!0):C=d.run():r?r(I.bind(null,!0),!0):d.run(),E.pause=d.pause.bind(d),E.resume=d.resume.bind(d),E.stop=E,E}function ot(e,t=1/0,s){if(t<=0||!Z(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,be(e))ot(e.value,t,s);else if(M(e))for(let n=0;n{ot(n,t,s)});else if(yi(e)){for(const n in e)ot(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&ot(e[n],t,s)}return e}/** -* @vue/runtime-core v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/function ns(e,t,s,n){try{return n?e(...n):e()}catch(i){Os(i,t,s)}}function Me(e,t,s,n){if(V(e)){const i=ns(e,t,s,n);return i&&bi(i)&&i.catch(o=>{Os(o,t,s)}),i}if(M(e)){const i=[];for(let o=0;o>>1,i=we[n],o=Qt(i);o=Qt(s)?we.push(e):we.splice(mr(t),0,e),e.flags|=1,Bi()}}function Bi(){bs||(bs=Li.then(Vi))}function br(e){M(e)?Et.push(...e):ut&&e.id===-1?ut.splice(kt+1,0,e):e.flags&1||(Et.push(e),e.flags|=1),Bi()}function Nn(e,t,s=Ke+1){for(;sQt(s)-Qt(n));if(Et.length=0,ut){ut.push(...t);return}for(ut=t,kt=0;kte.id==null?e.flags&2?-1:1/0:e.id;function Vi(e){try{for(Ke=0;Ke{n._d&&Zn(-1);const o=vs(t);let r;try{r=e(...i)}finally{vs(o),n._d&&Zn(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function le(e,t){if(Ae===null)return e;const s=Is(Ae),n=e.dirs||(e.dirs=[]);for(let i=0;i1)return s&&V(t)?t.call(n&&n.proxy):t}}const _r=Symbol.for("v-scx"),wr=()=>fs(_r);function Hs(e,t,s){return Ki(e,t,s)}function Ki(e,t,s=X){const{immediate:n,deep:i,flush:o,once:r}=s,a=ve({},s),l=t&&n||!t&&o!=="post";let g;if(ts){if(o==="sync"){const $=wr();g=$.__watcherHandles||($.__watcherHandles=[])}else if(!l){const $=()=>{};return $.stop=Je,$.resume=Je,$.pause=Je,$}}const d=xe;a.call=($,F,k)=>Me($,d,F,k);let b=!1;o==="post"?a.scheduler=$=>{ke($,d&&d.suspense)}:o!=="sync"&&(b=!0,a.scheduler=($,F)=>{F?$():wn($)}),a.augmentJob=$=>{t&&($.flags|=4),b&&($.flags|=2,d&&($.id=d.uid,$.i=d))};const P=hr(e,t,a);return ts&&(g?g.push(P):l&&P()),P}function xr(e,t,s){const n=this.proxy,i=oe(e)?e.includes(".")?Wi(n,e):()=>n[e]:e.bind(n,n);let o;V(t)?o=t:(o=t.handler,s=t);const r=is(this),a=Ki(i,o.bind(n),s);return r(),a}function Wi(e,t){const s=t.split(".");return()=>{let n=e;for(let i=0;ie.__isTeleport,Vs=Symbol("_leaveCb");function xn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,xn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function qi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Mn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const ys=new WeakMap;function Kt(e,t,s,n,i=!1){if(M(e)){e.forEach((k,O)=>Kt(k,t&&(M(t)?t[O]:t),s,n,i));return}if(Wt(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Kt(e,t,s,n.component.subTree);return}const o=n.shapeFlag&4?Is(n.component):n.el,r=i?null:o,{i:a,r:l}=e,g=t&&t.r,d=a.refs===X?a.refs={}:a.refs,b=a.setupState,P=K(b),$=b===X?mi:k=>Mn(d,k)?!1:W(P,k),F=(k,O)=>!(O&&Mn(d,O));if(g!=null&&g!==l){if(Ln(t),oe(g))d[g]=null,$(g)&&(b[g]=null);else if(be(g)){const k=t;F(g,k.k)&&(g.value=null),k.k&&(d[k.k]=null)}}if(V(l)){Xe();try{ns(l,a,12,[r,d])}finally{Qe()}}else{const k=oe(l),O=be(l);if(k||O){const E=()=>{if(e.f){const C=k?$(l)?b[l]:d[l]:F()||!e.k?l.value:d[e.k];if(i)M(C)&&un(C,o);else if(M(C))C.includes(o)||C.push(o);else if(k)d[l]=[o],$(l)&&(b[l]=d[l]);else{const I=[o];F(l,e.k)&&(l.value=I),e.k&&(d[e.k]=I)}}else k?(d[l]=r,$(l)&&(b[l]=r)):O&&(F(l,e.k)&&(l.value=r),e.k&&(d[e.k]=r))};if(r){const C=()=>{E(),ys.delete(e)};C.id=-1,ys.set(e,C),ke(C,s)}else Ln(e),E()}}}function Ln(e){const t=ys.get(e);t&&(t.flags|=8,ys.delete(e))}As().requestIdleCallback;As().cancelIdleCallback;const Wt=e=>!!e.type.__asyncLoader,Zi=e=>e.type.__isKeepAlive;function Sr(e,t){Ji(e,"a",t)}function Er(e,t){Ji(e,"da",t)}function Ji(e,t,s=xe){const n=e.__wdc||(e.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Rs(t,n,s),s){let i=s.parent;for(;i&&i.parent;)Zi(i.parent.vnode)&&Pr(n,t,s,i),i=i.parent}}function Pr(e,t,s,n){const i=Rs(t,e,n,!0);kn(()=>{un(n[t],i)},s)}function Rs(e,t,s=xe,n=!1){if(s){const i=s[e]||(s[e]=[]),o=t.__weh||(t.__weh=(...r)=>{Xe();const a=is(s),l=Me(t,s,e,r);return a(),Qe(),l});return n?i.unshift(o):i.push(o),o}}const lt=e=>(t,s=xe)=>{(!ts||e==="sp")&&Rs(e,(...n)=>t(...n),s)},Cr=lt("bm"),ct=lt("m"),Ar=lt("bu"),$r=lt("u"),Or=lt("bum"),kn=lt("um"),Rr=lt("sp"),zr=lt("rtg"),Dr=lt("rtc");function Ir(e,t=xe){Rs("ec",e,t)}const jr=Symbol.for("v-ndc");function $e(e,t,s,n){let i;const o=s,r=M(e);if(r||oe(e)){const a=r&&wt(e);let l=!1,g=!1;a&&(l=!Oe(e),g=at(e),e=$s(e)),i=new Array(e.length);for(let d=0,b=e.length;dt(a,l,void 0,o));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,g=a.length;le?vo(e)?Is(e):tn(e.parent):null,qt=ve(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>tn(e.parent),$root:e=>tn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Xi(e),$forceUpdate:e=>e.f||(e.f=()=>{wn(e.update)}),$nextTick:e=>e.n||(e.n=Fi.bind(e.proxy)),$watch:e=>xr.bind(e)}),Gs=(e,t)=>e!==X&&!e.__isScriptSetup&&W(e,t),Ur={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:o,accessCache:r,type:a,appContext:l}=e;if(t[0]!=="$"){const P=r[t];if(P!==void 0)switch(P){case 1:return n[t];case 2:return i[t];case 4:return s[t];case 3:return o[t]}else{if(Gs(n,t))return r[t]=1,n[t];if(i!==X&&W(i,t))return r[t]=2,i[t];if(W(o,t))return r[t]=3,o[t];if(s!==X&&W(s,t))return r[t]=4,s[t];sn&&(r[t]=0)}}const g=qt[t];let d,b;if(g)return t==="$attrs"&&me(e.attrs,"get",""),g(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(s!==X&&W(s,t))return r[t]=4,s[t];if(b=l.config.globalProperties,W(b,t))return b[t]},set({_:e},t,s){const{data:n,setupState:i,ctx:o}=e;return Gs(i,t)?(i[t]=s,!0):n!==X&&W(n,t)?(n[t]=s,!0):W(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:i,props:o,type:r}},a){let l;return!!(s[a]||e!==X&&a[0]!=="$"&&W(e,a)||Gs(t,a)||W(o,a)||W(n,a)||W(qt,a)||W(i.config.globalProperties,a)||(l=r.__cssModules)&&l[a])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:W(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Fn(e){return M(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let sn=!0;function Nr(e){const t=Xi(e),s=e.proxy,n=e.ctx;sn=!1,t.beforeCreate&&Bn(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:g,created:d,beforeMount:b,mounted:P,beforeUpdate:$,updated:F,activated:k,deactivated:O,beforeDestroy:E,beforeUnmount:C,destroyed:I,unmounted:j,render:re,renderTracked:Ee,renderTriggered:Pe,errorCaptured:Le,serverPrefetch:pe,expose:se,inheritAttrs:ce,components:It,directives:os,filters:js}=t;if(g&&Mr(g,n,null),r)for(const ie in r){const Q=r[ie];V(Q)&&(n[ie]=Q.bind(s))}if(i){const ie=i.call(s,s);Z(ie)&&(e.data=Xt(ie))}if(sn=!0,o)for(const ie in o){const Q=o[ie],gt=V(Q)?Q.bind(s,s):V(Q.get)?Q.get.bind(s,s):Je,rs=!V(Q)&&V(Q.set)?Q.set.bind(s):Je,mt=je({get:gt,set:rs});Object.defineProperty(n,ie,{enumerable:!0,configurable:!0,get:()=>mt.value,set:Fe=>mt.value=Fe})}if(a)for(const ie in a)Yi(a[ie],n,s,ie);if(l){const ie=V(l)?l.call(s):l;Reflect.ownKeys(ie).forEach(Q=>{yr(Q,ie[Q])})}d&&Bn(d,e,"c");function ye(ie,Q){M(Q)?Q.forEach(gt=>ie(gt.bind(s))):Q&&ie(Q.bind(s))}if(ye(Cr,b),ye(ct,P),ye(Ar,$),ye($r,F),ye(Sr,k),ye(Er,O),ye(Ir,Le),ye(Dr,Ee),ye(zr,Pe),ye(Or,C),ye(kn,j),ye(Rr,pe),M(se))if(se.length){const ie=e.exposed||(e.exposed={});se.forEach(Q=>{Object.defineProperty(ie,Q,{get:()=>s[Q],set:gt=>s[Q]=gt,enumerable:!0})})}else e.exposed||(e.exposed={});re&&e.render===Je&&(e.render=re),ce!=null&&(e.inheritAttrs=ce),It&&(e.components=It),os&&(e.directives=os),pe&&qi(e)}function Mr(e,t,s=Je){M(e)&&(e=nn(e));for(const n in e){const i=e[n];let o;Z(i)?"default"in i?o=fs(i.from||n,i.default,!0):o=fs(i.from||n):o=fs(i),be(o)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[n]=o}}function Bn(e,t,s){Me(M(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Yi(e,t,s,n){let i=n.includes(".")?Wi(s,n):()=>s[n];if(oe(e)){const o=t[e];V(o)&&Hs(i,o)}else if(V(e))Hs(i,e.bind(s));else if(Z(e))if(M(e))e.forEach(o=>Yi(o,t,s,n));else{const o=V(e.handler)?e.handler.bind(s):t[e.handler];V(o)&&Hs(i,o,e)}}function Xi(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!s&&!n?l=t:(l={},i.length&&i.forEach(g=>_s(l,g,r,!0)),_s(l,t,r)),Z(t)&&o.set(t,l),l}function _s(e,t,s,n=!1){const{mixins:i,extends:o}=t;o&&_s(e,o,s,!0),i&&i.forEach(r=>_s(e,r,s,!0));for(const r in t)if(!(n&&r==="expose")){const a=Lr[r]||s&&s[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const Lr={data:Hn,props:Vn,emits:Vn,methods:Ft,computed:Ft,beforeCreate:_e,created:_e,beforeMount:_e,mounted:_e,beforeUpdate:_e,updated:_e,beforeDestroy:_e,beforeUnmount:_e,destroyed:_e,unmounted:_e,activated:_e,deactivated:_e,errorCaptured:_e,serverPrefetch:_e,components:Ft,directives:Ft,watch:Br,provide:Hn,inject:Fr};function Hn(e,t){return t?e?function(){return ve(V(e)?e.call(this,this):e,V(t)?t.call(this,this):t)}:t:e}function Fr(e,t){return Ft(nn(e),nn(t))}function nn(e){if(M(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${De(t)}Modifiers`]||e[`${ht(t)}Modifiers`];function Kr(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||X;let i=s;const o=t.startsWith("update:"),r=o&&Gr(n,t.slice(7));r&&(r.trim&&(i=s.map(d=>oe(d)?d.trim():d)),r.number&&(i=s.map(Cs)));let a,l=n[a=Ns(t)]||n[a=Ns(De(t))];!l&&o&&(l=n[a=Ns(ht(t))]),l&&Me(l,e,6,i);const g=n[a+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Me(g,e,6,i)}}const Wr=new WeakMap;function eo(e,t,s=!1){const n=s?Wr:t.emitsCache,i=n.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!V(e)){const l=g=>{const d=eo(g,t,!0);d&&(a=!0,ve(r,d))};!s&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Z(e)&&n.set(e,null),null):(M(o)?o.forEach(l=>r[l]=null):ve(r,o),Z(e)&&n.set(e,r),r)}function zs(e,t){return!e||!Ss(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),W(e,t[0].toLowerCase()+t.slice(1))||W(e,ht(t))||W(e,t))}function Gn(e){const{type:t,vnode:s,proxy:n,withProxy:i,propsOptions:[o],slots:r,attrs:a,emit:l,render:g,renderCache:d,props:b,data:P,setupState:$,ctx:F,inheritAttrs:k}=e,O=vs(e);let E,C;try{if(s.shapeFlag&4){const j=i||n,re=j;E=qe(g.call(re,j,d,b,$,P,F)),C=a}else{const j=t;E=qe(j.length>1?j(b,{attrs:a,slots:r,emit:l}):j(b,null)),C=t.props?a:qr(a)}}catch(j){Zt.length=0,Os(j,e,1),E=Y(pt)}let I=E;if(C&&k!==!1){const j=Object.keys(C),{shapeFlag:re}=I;j.length&&re&7&&(o&&j.some(Es)&&(C=Zr(C,o)),I=$t(I,C,!1,!0))}return s.dirs&&(I=$t(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(s.dirs):s.dirs),s.transition&&xn(I,s.transition),E=I,vs(O),E}const qr=e=>{let t;for(const s in e)(s==="class"||s==="style"||Ss(s))&&((t||(t={}))[s]=e[s]);return t},Zr=(e,t)=>{const s={};for(const n in e)(!Es(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function Jr(e,t,s){const{props:n,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,g=o.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&l>=0){if(l&1024)return!0;if(l&16)return n?Kn(n,r,g):!!r;if(l&8){const d=t.dynamicProps;for(let b=0;bObject.create(so),io=e=>Object.getPrototypeOf(e)===so;function Xr(e,t,s,n=!1){const i={},o=no();e.propsDefaults=Object.create(null),oo(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);s?e.props=n?i:rr(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function Qr(e,t,s,n){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=K(i),[l]=e.propsOptions;let g=!1;if((n||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let b=0;b{l=!0;const[P,$]=ro(b,t,!0);ve(r,P),$&&a.push(...$)};!s&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!l)return Z(e)&&n.set(e,Tt),Tt;if(M(o))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",Sn=e=>M(e)?e.map(qe):[qe(e)],ta=(e,t,s)=>{if(t._n)return t;const n=vr((...i)=>Sn(t(...i)),s);return n._c=!1,n},ao=(e,t,s)=>{const n=e._ctx;for(const i in e){if(Tn(i))continue;const o=e[i];if(V(o))t[i]=ta(i,o,n);else if(o!=null){const r=Sn(o);t[i]=()=>r}}},lo=(e,t)=>{const s=Sn(t);e.slots.default=()=>s},co=(e,t,s)=>{for(const n in t)(s||!Tn(n))&&(e[n]=t[n])},sa=(e,t,s)=>{const n=e.slots=no();if(e.vnode.shapeFlag&32){const i=t._;i?(co(n,t,s),s&&wi(n,"_",i,!0)):ao(t,n)}else t&&lo(e,t)},na=(e,t,s)=>{const{vnode:n,slots:i}=e;let o=!0,r=X;if(n.shapeFlag&32){const a=t._;a?s&&a===1?o=!1:co(i,t,s):(o=!t.$stable,ao(t,i)),r=t}else t&&(lo(e,t),r={default:1});if(o)for(const a in i)!Tn(a)&&r[a]==null&&delete i[a]},ke=la;function ia(e){return oa(e)}function oa(e,t){const s=As();s.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:g,setElementText:d,parentNode:b,nextSibling:P,setScopeId:$=Je,insertStaticContent:F}=e,k=(c,p,v,T=null,x=null,_=null,z=void 0,R=null,A=!!p.dynamicChildren)=>{if(c===p)return;c&&!Lt(c,p)&&(T=as(c),Fe(c,x,_,!0),c=null),p.patchFlag===-2&&(A=!1,p.dynamicChildren=null);const{type:w,ref:N,shapeFlag:D}=p;switch(w){case Ds:O(c,p,v,T);break;case pt:E(c,p,v,T);break;case Ws:c==null&&C(p,v,T,z);break;case ne:It(c,p,v,T,x,_,z,R,A);break;default:D&1?re(c,p,v,T,x,_,z,R,A):D&6?os(c,p,v,T,x,_,z,R,A):(D&64||D&128)&&w.process(c,p,v,T,x,_,z,R,A,Ut)}N!=null&&x?Kt(N,c&&c.ref,_,p||c,!p):N==null&&c&&c.ref!=null&&Kt(c.ref,null,_,c,!0)},O=(c,p,v,T)=>{if(c==null)n(p.el=a(p.children),v,T);else{const x=p.el=c.el;p.children!==c.children&&g(x,p.children)}},E=(c,p,v,T)=>{c==null?n(p.el=l(p.children||""),v,T):p.el=c.el},C=(c,p,v,T)=>{[c.el,c.anchor]=F(c.children,p,v,T,c.el,c.anchor)},I=({el:c,anchor:p},v,T)=>{let x;for(;c&&c!==p;)x=P(c),n(c,v,T),c=x;n(p,v,T)},j=({el:c,anchor:p})=>{let v;for(;c&&c!==p;)v=P(c),i(c),c=v;i(p)},re=(c,p,v,T,x,_,z,R,A)=>{if(p.type==="svg"?z="svg":p.type==="math"&&(z="mathml"),c==null)Ee(p,v,T,x,_,z,R,A);else{const w=c.el&&c.el._isVueCE?c.el:null;try{w&&w._beginPatch(),pe(c,p,x,_,z,R,A)}finally{w&&w._endPatch()}}},Ee=(c,p,v,T,x,_,z,R)=>{let A,w;const{props:N,shapeFlag:D,transition:U,dirs:L}=c;if(A=c.el=r(c.type,_,N&&N.is,N),D&8?d(A,c.children):D&16&&Le(c.children,A,null,T,x,Ks(c,_),z,R),L&&bt(c,null,T,"created"),Pe(A,c,c.scopeId,z,T),N){for(const J in N)J!=="value"&&!Ht(J)&&o(A,J,null,N[J],_,T);"value"in N&&o(A,"value",null,N.value,_),(w=N.onVnodeBeforeMount)&&Ge(w,T,c)}L&&bt(c,null,T,"beforeMount");const G=ra(x,U);G&&U.beforeEnter(A),n(A,p,v),((w=N&&N.onVnodeMounted)||G||L)&&ke(()=>{try{w&&Ge(w,T,c),G&&U.enter(A),L&&bt(c,null,T,"mounted")}finally{}},x)},Pe=(c,p,v,T,x)=>{if(v&&$(c,v),T)for(let _=0;_{for(let w=A;w{const R=p.el=c.el;let{patchFlag:A,dynamicChildren:w,dirs:N}=p;A|=c.patchFlag&16;const D=c.props||X,U=p.props||X;let L;if(v&&vt(v,!1),(L=U.onVnodeBeforeUpdate)&&Ge(L,v,p,c),N&&bt(p,c,v,"beforeUpdate"),v&&vt(v,!0),w&&(!c.dynamicChildren||c.dynamicChildren.length!==w.length)&&(A=0,z=!1,w=null),(D.innerHTML&&U.innerHTML==null||D.textContent&&U.textContent==null)&&d(R,""),w?se(c.dynamicChildren,w,R,v,T,Ks(p,x),_):z||Q(c,p,R,null,v,T,Ks(p,x),_,!1),A>0){if(A&16)ce(R,D,U,v,x);else if(A&2&&D.class!==U.class&&o(R,"class",null,U.class,x),A&4&&o(R,"style",D.style,U.style,x),A&8){const G=p.dynamicProps;for(let J=0;J{L&&Ge(L,v,p,c),N&&bt(p,c,v,"updated")},T)},se=(c,p,v,T,x,_,z)=>{for(let R=0;R{if(p!==v){if(p!==X)for(const _ in p)!Ht(_)&&!(_ in v)&&o(c,_,p[_],null,x,T);for(const _ in v){if(Ht(_))continue;const z=v[_],R=p[_];z!==R&&_!=="value"&&o(c,_,R,z,x,T)}"value"in v&&o(c,"value",p.value,v.value,x)}},It=(c,p,v,T,x,_,z,R,A)=>{const w=p.el=c?c.el:a(""),N=p.anchor=c?c.anchor:a("");let{patchFlag:D,dynamicChildren:U,slotScopeIds:L}=p;L&&(R=R?R.concat(L):L),c==null?(n(w,v,T),n(N,v,T),Le(p.children||[],v,N,x,_,z,R,A)):D>0&&D&64&&U&&c.dynamicChildren&&c.dynamicChildren.length===U.length?(se(c.dynamicChildren,U,v,x,_,z,R),(p.key!=null||x&&p===x.subTree)&&uo(c,p,!0)):Q(c,p,v,N,x,_,z,R,A)},os=(c,p,v,T,x,_,z,R,A)=>{p.slotScopeIds=R,c==null?p.shapeFlag&512?x.ctx.activate(p,v,T,z,A):js(p,v,T,x,_,z,A):Cn(c,p,A)},js=(c,p,v,T,x,_,z)=>{const R=c.component=ga(c,T,x);if(Zi(c)&&(R.ctx.renderer=Ut),ba(R,!1,z),R.asyncDep){if(x&&x.registerDep(R,ye,z),!c.el){const A=R.subTree=Y(pt);E(null,A,p,v),c.placeholder=A.el}}else ye(R,c,p,v,x,_,z)},Cn=(c,p,v)=>{const T=p.component=c.component;if(Jr(c,p,v))if(T.asyncDep&&!T.asyncResolved){ie(T,p,v);return}else T.next=p,T.update();else p.el=c.el,T.vnode=p},ye=(c,p,v,T,x,_,z)=>{const R=()=>{if(c.isMounted){let{next:D,bu:U,u:L,parent:G,vnode:J}=c;{const He=po(c);if(He){D&&(D.el=J.el,ie(c,D,z)),He.asyncDep.then(()=>{ke(()=>{c.isUnmounted||w()},x)});return}}let q=D,ae;vt(c,!1),D?(D.el=J.el,ie(c,D,z)):D=J,U&&ps(U),(ae=D.props&&D.props.onVnodeBeforeUpdate)&&Ge(ae,G,D,J),vt(c,!0);const fe=Gn(c),Be=c.subTree;c.subTree=fe,k(Be,fe,b(Be.el),as(Be),c,x,_),D.el=fe.el,q===null&&Yr(c,fe.el),L&&ke(L,x),(ae=D.props&&D.props.onVnodeUpdated)&&ke(()=>Ge(ae,G,D,J),x)}else{let D;const{el:U,props:L}=p,{bm:G,m:J,parent:q,root:ae,type:fe}=c,Be=Wt(p);vt(c,!1),G&&ps(G),!Be&&(D=L&&L.onVnodeBeforeMount)&&Ge(D,q,p),vt(c,!0);{ae.ce&&ae.ce._hasShadowRoot()&&ae.ce._injectChildStyle(fe,c.parent?c.parent.type:void 0);const He=c.subTree=Gn(c);k(null,He,v,T,c,x,_),p.el=He.el}if(J&&ke(J,x),!Be&&(D=L&&L.onVnodeMounted)){const He=p;ke(()=>Ge(D,q,He),x)}(p.shapeFlag&256||q&&Wt(q.vnode)&&q.vnode.shapeFlag&256)&&c.a&&ke(c.a,x),c.isMounted=!0,p=v=T=null}};c.scope.on();const A=c.effect=new Si(R);c.scope.off();const w=c.update=A.run.bind(A),N=c.job=A.runIfDirty.bind(A);N.i=c,N.id=c.uid,A.scheduler=()=>wn(N),vt(c,!0),w()},ie=(c,p,v)=>{p.component=c;const T=c.vnode.props;c.vnode=p,c.next=null,Qr(c,p.props,T,v),na(c,p.children,v),Xe(),Nn(c),Qe()},Q=(c,p,v,T,x,_,z,R,A=!1)=>{const w=c&&c.children,N=c?c.shapeFlag:0,D=p.children,{patchFlag:U,shapeFlag:L}=p;if(U>0){if(U&128){rs(w,D,v,T,x,_,z,R,A);return}else if(U&256){gt(w,D,v,T,x,_,z,R,A);return}}L&8?(N&16&&jt(w,x,_),D!==w&&d(v,D)):N&16?L&16?rs(w,D,v,T,x,_,z,R,A):jt(w,x,_,!0):(N&8&&d(v,""),L&16&&Le(D,v,T,x,_,z,R,A))},gt=(c,p,v,T,x,_,z,R,A)=>{c=c||Tt,p=p||Tt;const w=c.length,N=p.length,D=Math.min(w,N);let U;for(U=0;UN?jt(c,x,_,!0,!1,D):Le(p,v,T,x,_,z,R,A,D)},rs=(c,p,v,T,x,_,z,R,A)=>{let w=0;const N=p.length;let D=c.length-1,U=N-1;for(;w<=D&&w<=U;){const L=c[w],G=p[w]=A?nt(p[w]):qe(p[w]);if(Lt(L,G))k(L,G,v,null,x,_,z,R,A);else break;w++}for(;w<=D&&w<=U;){const L=c[D],G=p[U]=A?nt(p[U]):qe(p[U]);if(Lt(L,G))k(L,G,v,null,x,_,z,R,A);else break;D--,U--}if(w>D){if(w<=U){const L=U+1,G=LU)for(;w<=D;)Fe(c[w],x,_,!0),w++;else{const L=w,G=w,J=new Map;for(w=G;w<=U;w++){const Te=p[w]=A?nt(p[w]):qe(p[w]);Te.key!=null&&J.set(Te.key,w)}let q,ae=0;const fe=U-G+1;let Be=!1,He=0;const Nt=new Array(fe);for(w=0;w=fe){Fe(Te,x,_,!0);continue}let Ve;if(Te.key!=null)Ve=J.get(Te.key);else for(q=G;q<=U;q++)if(Nt[q-G]===0&&Lt(Te,p[q])){Ve=q;break}Ve===void 0?Fe(Te,x,_,!0):(Nt[Ve-G]=w+1,Ve>=He?He=Ve:Be=!0,k(Te,p[Ve],v,null,x,_,z,R,A),ae++)}const On=Be?aa(Nt):Tt;for(q=On.length-1,w=fe-1;w>=0;w--){const Te=G+w,Ve=p[Te],Rn=p[Te+1],zn=Te+1{const{el:_,type:z,transition:R,children:A,shapeFlag:w}=c;if(w&6){mt(c.component.subTree,p,v,T);return}if(w&128){c.suspense.move(p,v,T);return}if(w&64){z.move(c,p,v,Ut);return}if(z===ne){n(_,p,v);for(let D=0;DR.enter(_),x));else{const{leave:D,delayLeave:U,afterLeave:L}=R,G=()=>{c.ctx.isUnmounted?i(_):n(_,p,v)},J=()=>{const q=_._isLeaving||!!_[Vs];_._isLeaving&&_[Vs](!0),R.persisted&&!q?G():D(_,()=>{G(),L&&L()})};U?U(_,G,J):J()}else n(_,p,v)},Fe=(c,p,v,T=!1,x=!1)=>{const{type:_,props:z,ref:R,children:A,dynamicChildren:w,shapeFlag:N,patchFlag:D,dirs:U,cacheIndex:L,memo:G}=c;if(D===-2&&(x=!1),R!=null&&(Xe(),Kt(R,null,v,c,!0),Qe()),L!=null&&(p.renderCache[L]=void 0),N&256){p.ctx.deactivate(c);return}const J=N&1&&U,q=!Wt(c);let ae;if(q&&(ae=z&&z.onVnodeBeforeUnmount)&&Ge(ae,p,c),N&6)Ao(c.component,v,T);else{if(N&128){c.suspense.unmount(v,T);return}J&&bt(c,null,p,"beforeUnmount"),N&64?c.type.remove(c,p,v,Ut,T):w&&!w.hasOnce&&(_!==ne||D>0&&D&64)?jt(w,p,v,!1,!0):(_===ne&&D&384||!x&&N&16)&&jt(A,p,v),T&&An(c)}const fe=G!=null&&L==null;(q&&(ae=z&&z.onVnodeUnmounted)||J||fe)&&ke(()=>{ae&&Ge(ae,p,c),J&&bt(c,null,p,"unmounted"),fe&&(c.el=null)},v)},An=c=>{const{type:p,el:v,anchor:T,transition:x}=c;if(p===ne){Co(v,T);return}if(p===Ws){j(c);return}const _=()=>{i(v),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(c.shapeFlag&1&&x&&!x.persisted){const{leave:z,delayLeave:R}=x,A=()=>z(v,_);R?R(c.el,_,A):A()}else _()},Co=(c,p)=>{let v;for(;c!==p;)v=P(c),i(c),c=v;i(p)},Ao=(c,p,v)=>{const{bum:T,scope:x,job:_,subTree:z,um:R,m:A,a:w}=c;qn(A),qn(w),T&&ps(T),x.stop(),_&&(_.flags|=8,Fe(z,c,p,v)),R&&ke(R,p),ke(()=>{c.isUnmounted=!0},p)},jt=(c,p,v,T=!1,x=!1,_=0)=>{for(let z=_;z{if(c.shapeFlag&6)return as(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const p=P(c.anchor||c.el),v=p&&p[kr];return v?P(v):p};let Us=!1;const $n=(c,p,v)=>{let T;c==null?p._vnode&&(Fe(p._vnode,null,null,!0),T=p._vnode.component):k(p._vnode||null,c,p,null,null,null,v),p._vnode=c,Us||(Us=!0,Nn(T),Hi(),Us=!1)},Ut={p:k,um:Fe,m:mt,r:An,mt:js,mc:Le,pc:Q,pbc:se,n:as,o:e};return{render:$n,hydrate:void 0,createApp:Vr($n)}}function Ks({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function vt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ra(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function uo(e,t,s=!1){const n=e.children,i=t.children;if(M(n)&&M(i))for(let o=0;o>1,e[s[a]]0&&(t[n]=s[o-1]),s[o]=n)}}for(o=s.length,r=s[o-1];o-- >0;)s[o]=r,r=t[r];return s}function po(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:po(t)}function qn(e){if(e)for(let t=0;te.__isSuspense;function la(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):br(e)}const ne=Symbol.for("v-fgt"),Ds=Symbol.for("v-txt"),pt=Symbol.for("v-cmt"),Ws=Symbol.for("v-stc"),Zt=[];let Se=null;function y(e=!1){Zt.push(Se=e?null:[])}function ca(){Zt.pop(),Se=Zt[Zt.length-1]||null}let es=1;function Zn(e,t=!1){es+=e,e<0&&Se&&t&&(Se.hasOnce=!0)}function go(e){return e.dynamicChildren=es>0?Se||Tt:null,ca(),es>0&&Se&&Se.push(e),e}function S(e,t,s,n,i,o){return go(u(e,t,s,n,i,o,!0))}function tt(e,t,s,n,i){return go(Y(e,t,s,n,i,!0))}function mo(e){return e?e.__v_isVNode===!0:!1}function Lt(e,t){return e.type===t.type&&e.key===t.key}const bo=({key:e})=>e??null,hs=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?oe(e)||be(e)||V(e)?{i:Ae,r:e,k:t,f:!!s}:e:null);function u(e,t=null,s=null,n=0,i=null,o=e===ne?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bo(t),ref:t&&hs(t),scopeId:Gi,slotScopeIds:null,children:s,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:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ae};return a?(ws(l,s),o&128&&e.normalize(l)):s&&(l.shapeFlag|=oe(s)?8:16),es>0&&!r&&Se&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Se.push(l),l}const Y=ua;function ua(e,t=null,s=null,n=0,i=null,o=!1){if((!e||e===jr)&&(e=pt),mo(e)){const a=$t(e,t,!0);return s&&ws(a,s),es>0&&!o&&Se&&(a.shapeFlag&6?Se[Se.indexOf(e)]=a:Se.push(a)),a.patchFlag=-2,a}if(wa(e)&&(e=e.__vccOpts),t){t=da(t);let{class:a,style:l}=t;a&&!oe(a)&&(t.class=Ue(a)),Z(l)&&(_n(l)&&!M(l)&&(l=ve({},l)),t.style=pn(l))}const r=oe(e)?1:ho(e)?128:Tr(e)?64:Z(e)?4:V(e)?2:0;return u(e,t,s,n,i,r,o,!0)}function da(e){return e?_n(e)||io(e)?ve({},e):e:null}function $t(e,t,s=!1,n=!1){const{props:i,ref:o,patchFlag:r,children:a,transition:l}=e,g=t?pa(i||{},t):i,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&bo(g),ref:t&&t.ref?s&&o?M(o)?o.concat(hs(t)):[o,hs(t)]:hs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ne?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$t(e.ssContent),ssFallback:e.ssFallback&&$t(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&xn(d,l.clone(d)),d}function Re(e=" ",t=0){return Y(Ds,null,e,t)}function B(e="",t=!1){return t?(y(),tt(pt,null,e)):Y(pt,null,e)}function qe(e){return e==null||typeof e=="boolean"?Y(pt):M(e)?Y(ne,null,e.slice()):mo(e)?nt(e):Y(Ds,null,String(e))}function nt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$t(e)}function ws(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(M(t))s=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),ws(e,i()),i._c&&(i._d=!0));return}else{s=32;const i=t._;!i&&!io(t)?t._ctx=Ae:i===3&&Ae&&(Ae.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(V(t)){if(n&65){ws(e,{default:t});return}t={default:t,_ctx:Ae},s=32}else t=String(t),n&64?(s=16,t=[Re(t)]):s=8;e.children=t,e.shapeFlag|=s}function pa(...e){const t={};for(let s=0;sxe||Ae;let xs,rn;{const e=As(),t=(s,n)=>{let i;return(i=e[s])||(i=e[s]=[]),i.push(n),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};xs=t("__VUE_INSTANCE_SETTERS__",s=>xe=s),rn=t("__VUE_SSR_SETTERS__",s=>ts=s)}const is=e=>{const t=xe;return xs(e),e.scope.on(),()=>{e.scope.off(),xs(t)}},Jn=()=>{xe&&xe.scope.off(),xs(null)};function vo(e){return e.vnode.shapeFlag&4}let ts=!1;function ba(e,t=!1,s=!1){t&&rn(t);const{props:n,children:i}=e.vnode,o=vo(e);Xr(e,n,o,t),sa(e,i,s||t);const r=o?va(e,t):void 0;return t&&rn(!1),r}function va(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ur);const{setup:n}=s;if(n){Xe();const i=e.setupContext=n.length>1?_a(e):null,o=is(e),r=ns(n,e,0,[e.props,i]),a=bi(r);if(Qe(),o(),(a||e.sp)&&!Wt(e)&&qi(e),a){if(r.then(Jn,Jn),t)return r.then(l=>{Yn(e,l)}).catch(l=>{Os(l,e,0)});e.asyncDep=r}else Yn(e,r)}else yo(e)}function Yn(e,t,s){V(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Z(t)&&(e.setupState=Mi(t)),yo(e)}function yo(e,t,s){const n=e.type;e.render||(e.render=n.render||Je);{const i=is(e);Xe();try{Nr(e)}finally{Qe(),i()}}}const ya={get(e,t){return me(e,"get",""),e[t]}};function _a(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,ya),slots:e.slots,emit:e.emit,expose:t}}function Is(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Mi(ar(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in qt)return qt[s](e)},has(t,s){return s in t||s in qt}})):e.proxy}function wa(e){return V(e)&&"__vccOpts"in e}const je=(e,t)=>pr(e,t,ts),xa="3.5.39";/** -* @vue/runtime-dom v3.5.39 -* (c) 2018-present Yuxi (Evan) You and Vue contributors -* @license MIT -**/let an;const Xn=typeof window<"u"&&window.trustedTypes;if(Xn)try{an=Xn.createPolicy("vue",{createHTML:e=>e})}catch{}const _o=an?e=>an.createHTML(e):e=>e,ka="http://www.w3.org/2000/svg",Ta="http://www.w3.org/1998/Math/MathML",st=typeof document<"u"?document:null,Qn=st&&st.createElement("template"),Sa={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const i=t==="svg"?st.createElementNS(ka,e):t==="mathml"?st.createElementNS(Ta,e):s?st.createElement(e,{is:s}):st.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>st.createTextNode(e),createComment:e=>st.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>st.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,i,o){const r=s?s.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),s),!(i===o||!(i=i.nextSibling)););else{Qn.innerHTML=_o(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const a=Qn.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,s)}return[r?r.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},Ea=Symbol("_vtc");function Pa(e,t,s){const n=e[Ea];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const ei=Symbol("_vod"),Ca=Symbol("_vsh"),Aa=Symbol(""),$a=/(?:^|;)\s*display\s*:/;function Oa(e,t,s){const n=e.style,i=oe(s);let o=!1;if(s&&!i){if(t)if(oe(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();s[a]==null&&Bt(n,a,"")}else for(const r in t)s[r]==null&&Bt(n,r,"");for(const r in s){r==="display"&&(o=!0);const a=s[r];a!=null?za(e,r,!oe(t)&&t?t[r]:void 0,a)||Bt(n,r,a):Bt(n,r,"")}}else if(i){if(t!==s){const r=n[Aa];r&&(s+=";"+r),n.cssText=s,o=$a.test(s)}}else t&&e.removeAttribute("style");ei in e&&(e[ei]=o?n.display:"",e[Ca]&&(n.display="none"))}const ti=/\s*!important$/;function Bt(e,t,s){if(M(s))s.forEach(n=>Bt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=Ra(e,t);ti.test(s)?e.setProperty(ht(n),s.replace(ti,""),"important"):e[n]=s}}const si=["Webkit","Moz","ms"],qs={};function Ra(e,t){const s=qs[t];if(s)return s;let n=De(t);if(n!=="filter"&&n in e)return qs[t]=n;n=_i(n);for(let i=0;iZs||(Ma.then(()=>Zs=0),Zs=Date.now());function Fa(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const i=s.value;if(M(i)){const o=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{o.call(n),n._stopped=!0};const r=i.slice(),a=[n];for(let l=0;le.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ba=(e,t,s,n,i,o)=>{const r=i==="svg";t==="class"?Pa(e,n,r):t==="style"?Oa(e,s,n):Ss(t)?Es(t)||Ia(e,t,s,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ha(e,t,n,r))?(oi(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ii(e,t,n,r,o,t!=="value")):e._isVueCE&&(Va(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!oe(n)))?oi(e,De(t),n,o,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),ii(e,t,n,r))};function Ha(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&ai(t)&&V(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return ai(t)&&oe(s)?!1:t in e}function Va(e,t){const s=e._def.props;if(!s)return!1;const n=De(t);return Array.isArray(s)?s.some(i=>De(i)===n):Object.keys(s).some(i=>De(i)===n)}const ft=e=>{const t=e.props["onUpdate:modelValue"]||!1;return M(t)?s=>ps(t,s):t};function Ga(e){e.target.composing=!0}function li(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ze=Symbol("_assign");function ci(e,t,s){return t&&(e=e.trim()),s&&(e=Cs(e)),e}const ge={created(e,{modifiers:{lazy:t,trim:s,number:n}},i){e[ze]=ft(i);const o=n||i.props&&i.props.type==="number";rt(e,t?"change":"input",r=>{r.target.composing||e[ze](ci(e.value,s,o))}),(s||o)&&rt(e,"change",()=>{e.value=ci(e.value,s,o)}),t||(rt(e,"compositionstart",Ga),rt(e,"compositionend",li),rt(e,"change",li))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:i,number:o}},r){if(e[ze]=ft(r),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?Cs(e.value):e.value,l=t??"";if(a===l)return;const g=e.getRootNode();(g instanceof Document||g instanceof ShadowRoot)&&g.activeElement===e&&e.type!=="range"&&(n&&t===s||i&&e.value.trim()===l)||(e.value=l)}},Ka={deep:!0,created(e,t,s){e[ze]=ft(s),rt(e,"change",()=>{const n=e._modelValue,i=Ot(e),o=e.checked,r=e[ze];if(M(n)){const a=fn(n,i),l=a!==-1;if(o&&!l)r(n.concat(i));else if(!o&&l){const g=[...n];g.splice(a,1),r(g)}}else if(Dt(n)){const a=new Set(n);o?a.add(i):a.delete(i),r(a)}else r(wo(e,o))})},mounted:ui,beforeUpdate(e,t,s){e[ze]=ft(s),ui(e,t,s)}};function ui(e,{value:t,oldValue:s},n){e._modelValue=t;let i;if(M(t))i=fn(t,n.props.value)>-1;else if(Dt(t))i=t.has(n.props.value);else{if(t===s)return;i=dt(t,wo(e,!0))}e.checked!==i&&(e.checked=i)}const Wa={created(e,{value:t},s){e.checked=dt(t,s.props.value),e[ze]=ft(s),rt(e,"change",()=>{e[ze](Ot(e))})},beforeUpdate(e,{value:t,oldValue:s},n){e[ze]=ft(n),t!==s&&(e.checked=dt(t,n.props.value))}},ks={deep:!0,created(e,{value:t,modifiers:{number:s}},n){const i=Dt(t);rt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>s?Cs(Ot(r)):Ot(r));e[ze](e.multiple?i?new Set(o):o:o[0]),e._assigning=!0,Fi(()=>{e._assigning=!1})}),e[ze]=ft(n)},mounted(e,{value:t}){di(e,t)},beforeUpdate(e,t,s){e[ze]=ft(s)},updated(e,{value:t}){e._assigning||di(e,t)}};function di(e,t){const s=e.multiple,n=M(t);if(!(s&&!n&&!Dt(t))){for(let i=0,o=e.options.length;iString(g)===String(a)):r.selected=fn(t,a)>-1}else r.selected=t.has(a);else if(dt(Ot(r),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ot(e){return"_value"in e?e._value:e.value}function wo(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const qa={created(e,t,s){ds(e,t,s,null,"created")},mounted(e,t,s){ds(e,t,s,null,"mounted")},beforeUpdate(e,t,s,n){ds(e,t,s,n,"beforeUpdate")},updated(e,t,s,n){ds(e,t,s,n,"updated")}};function Za(e,t){switch(e){case"SELECT":return ks;case"TEXTAREA":return ge;default:switch(t){case"checkbox":return Ka;case"radio":return Wa;default:return ge}}}function ds(e,t,s,n,i){const r=Za(e.tagName,s.props&&s.props.type)[i];r&&r(e,t,s,n)}const Ja=["ctrl","shift","alt","meta"],Ya={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ja.some(s=>e[`${s}Key`]&&!t.includes(s))},Xa=(e,t)=>{if(!e)return e;const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=((i,...o)=>{for(let r=0;r{const s=e._withKeys||(e._withKeys={}),n=t.join(".");return s[n]||(s[n]=(i=>{if(!("key"in i))return;const o=ht(i.key);if(t.some(r=>r===o||Qa[r]===o))return e(i)}))},el=ve({patchProp:Ba},Sa);let pi;function tl(){return pi||(pi=ia(el))}const sl=((...e)=>{const t=tl().createApp(...e),{mount:s}=t;return t.mount=n=>{const i=il(n);if(!i)return;const o=t._component;!V(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=s(i,!1,nl(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},t});function nl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function il(e){return oe(e)?document.querySelector(e):e}const ko="dh-panel-theme";function ol(){var e;try{const t=localStorage.getItem(ko);if(t==="dark"||t==="light")return t}catch{}return(e=window.matchMedia)!=null&&e.call(window,"(prefers-color-scheme: dark)").matches?"dark":"light"}const Ct=H(ol());function To(e){Ct.value=e,document.documentElement.classList.toggle("dark",e==="dark");try{localStorage.setItem(ko,e)}catch{}}function fi(){To(Ct.value==="dark"?"light":"dark")}To(Ct.value);const rl={apiServer:"API server",switchToLight:"Switch to light theme",switchToDark:"Switch to dark theme",theme:"Theme",signOut:"Sign out",loading:"Loading…",standardUserNote:"Signed in as a standard user — management sections need an admin role",footer:"DriverVault — car maintenance & service tracker."},al={overview:"Overview",users:"Users",orgs:"Organizations",server:"API Server",pocketbase:"PocketBase",webapp:"Web App",plugins:"Plugins",api:"API"},ll={title:"Sign in",subtitle:"Superadmin console for the DriverVault API Server.",email:"Email",password:"Password",submit:"Sign in",submitting:"Signing in…",invalid:"Invalid email or password.",failed:"Could not sign in.",authNote:"Authenticates against PocketBase through this server"},cl={title:"Status",unreachable:"unreachable",checking:"Checking…",apiServer:"API Server",pocketBase:"PocketBase",webApp:"Web App",thisProcess:"this process"},ul={create:"Create",save:"Save",cancel:"Cancel",edit:"Edit",delete:"Delete",rename:"Rename",empty:"—",name:"Name",email:"Email",role:"Role",organization:"Organization"},dl={title:"Users",allOrgs:"All organizations",yourOrg:"Your organization",newUser:"New user",password:"Password",passwordUnchanged:"Password (blank = unchanged)",passwordPlaceholder:"min 8 characters",orgNone:"— none —",you:"you",empty:"No users.",confirmDelete:"Delete {email}? This cannot be undone."},pl={title:"Organizations",subtitle:"Tenants users belong to",subtitleOwn:"Your organization",subtitleNone:"Create one to manage your own team",newOrg:"New organization",namePlaceholder:"Acme Fleet",empty:"No organizations yet.",createHint:"You have no organization yet. Create one to become its admin.",colId:"ID",confirmDelete:'Delete the organization "{name}"?',confirmDeleteOwn:'Delete your organization "{name}"? You will be removed from it and become a regular user.'},fl={title:"API Server",subtitle:"How this server identifies itself to the clients that connect to it",name:"Server name",nameHint:"Shown by clients that can be pointed at more than one DriverVault, such as the Web App's server switcher. Reported by /api/health.",saveApply:"Save & apply",persistedEnv:"persisted to .env",savedNotice:"Saved. The new name applies to the next request."},hl={title:"PocketBase",subtitle:"Database connection used by every endpoint",connected:"connected",noSuperuser:"no superuser",unreachable:"unreachable",baseUrl:"Base URL",superuserEmail:"Superuser email",superuserPassword:"Superuser password",passwordUnchanged:"unchanged",passwordNotSet:"not set",saveApply:"Save & apply",testConnection:"Test connection",persistedEnv:"persisted to .env",testOk:"Connection OK — superuser authenticated.",testReachableNoAuth:"PocketBase is reachable, but the service account did not authenticate.",testUnreachable:"PocketBase is not reachable at that address.",savedNotice:"Saved. The server is now using this PocketBase."},gl={title:"Web App",subtitle:"Address probed by the status check, and who may call this API from a browser",reachable:"reachable",unreachable:"unreachable",baseUrl:"Base URL",allowedOrigins:"Allowed origins",originsHint:"Comma separated, or {star} for any. Native mobile apps are not subject to CORS.",saveApply:"Save & apply",testConnection:"Test connection",persistedEnv:"persisted to .env",testOk:"Web App is reachable.",testFailed:"Web App did not answer its health check at that address.",savedNotice:"Saved. New origins apply to the next request."},ml={title:"Plugins",subtitle:"Third-party service integrations",registerExternal:"Register external",cancelRegister:"Cancel",name:"Name",baseUrl:"Base URL",provider:"Provider",register:"Register",empty:"No plugins yet. Register an external one above, or compile a built-in connector.",builtin:"builtin",enabled:"enabled",disabled:"disabled",health:"Health",configure:"Configure",close:"Close",noConfig:"This plugin takes no configuration.",notSet:"Not set — let organizations and users choose",capabilities:"Capabilities",saved:"Saved.",checking:"Checking…",save:"Save",saveEnable:"Save & enable",disable:"Disable",remove:"Remove",builtinNote:"Built-in plugins can be disabled but not removed",confirmRemove:'Remove the external plugin "{name}"? Its saved config is deleted.'},bl={colEndpoint:"Endpoint",colDescription:"Description",authNone:"No auth",authBearer:"Bearer token",authManager:"Admin / superadmin",authSuperadmin:"Superadmin",authCharger:"Charger credentials",groupPublic:"Public",groupIdentity:"Identity",groupCars:"Cars",groupService:"Service records",groupTechnical:"Technical checks",groupParts:"Parts",groupFuel:"Fuel",groupCharging:"Charging",groupMaintenance:"Maintenance",groupDocuments:"Documents",groupReminders:"Reminders",groupAttachments:"Attachments",groupProviders:"Vehicle providers",groupIntegrations:"Integrations",groupOcpp:"OCPP",groupAccount:"Account",groupManagement:"Management",groupSuperadmin:"Superadmin"},vl={app:rl,sections:al,login:ll,status:cl,common:ul,users:dl,orgs:pl,server:fl,pocketbase:hl,webapp:gl,plugins:ml,api:bl},yl={apiServer:"Serwer API",switchToLight:"Przełącz na motyw jasny",switchToDark:"Przełącz na motyw ciemny",theme:"Motyw",signOut:"Wyloguj się",loading:"Ładowanie…",standardUserNote:"Zalogowano jako zwykły użytkownik — sekcje zarządzania wymagają roli administratora",footer:"DriverVault — rejestr serwisu i konserwacji samochodu."},_l={overview:"Przegląd",users:"Użytkownicy",orgs:"Organizacje",server:"Serwer API",pocketbase:"PocketBase",webapp:"Aplikacja webowa",plugins:"Wtyczki",api:"API"},wl={title:"Zaloguj się",subtitle:"Konsola superadministratora serwera API DriverVault.",email:"E-mail",password:"Hasło",submit:"Zaloguj się",submitting:"Logowanie…",invalid:"Nieprawidłowy e-mail lub hasło.",failed:"Nie udało się zalogować.",authNote:"Uwierzytelnia w PocketBase za pośrednictwem tego serwera"},xl={title:"Status",unreachable:"niedostępny",checking:"Sprawdzanie…",apiServer:"Serwer API",pocketBase:"PocketBase",webApp:"Aplikacja webowa",thisProcess:"ten proces"},kl={create:"Utwórz",save:"Zapisz",cancel:"Anuluj",edit:"Edytuj",delete:"Usuń",rename:"Zmień nazwę",empty:"—",name:"Nazwa",email:"E-mail",role:"Rola",organization:"Organizacja"},Tl={title:"Użytkownicy",allOrgs:"Wszystkie organizacje",yourOrg:"Twoja organizacja",newUser:"Nowy użytkownik",password:"Hasło",passwordUnchanged:"Hasło (puste = bez zmian)",passwordPlaceholder:"min. 8 znaków",orgNone:"— brak —",you:"Ty",empty:"Brak użytkowników.",confirmDelete:"Usunąć {email}? Tej operacji nie można cofnąć."},Sl={title:"Organizacje",subtitle:"Podmioty, do których należą użytkownicy",subtitleOwn:"Twoja organizacja",subtitleNone:"Utwórz ją, aby zarządzać własnym zespołem",newOrg:"Nowa organizacja",namePlaceholder:"Acme Fleet",empty:"Brak organizacji.",createHint:"Nie masz jeszcze organizacji. Utwórz ją, aby zostać jej administratorem.",colId:"ID",confirmDelete:"Usunąć organizację „{name}”?",confirmDeleteOwn:"Usunąć Twoją organizację „{name}”? Zostaniesz z niej usunięty i staniesz się zwykłym użytkownikiem."},El={title:"Serwer API",subtitle:"Jak ten serwer przedstawia się klientom, które się z nim łączą",name:"Nazwa serwera",nameHint:"Widoczna w klientach, które można skierować na więcej niż jeden DriverVault, na przykład w przełączniku serwerów aplikacji webowej. Zwracana przez /api/health.",saveApply:"Zapisz i zastosuj",persistedEnv:"zapisano w .env",savedNotice:"Zapisano. Nowa nazwa obowiązuje od następnego żądania."},Pl={title:"PocketBase",subtitle:"Połączenie z bazą danych używane przez każdy punkt końcowy",connected:"połączono",noSuperuser:"brak superużytkownika",unreachable:"niedostępny",baseUrl:"Adres bazowy",superuserEmail:"E-mail superużytkownika",superuserPassword:"Hasło superużytkownika",passwordUnchanged:"bez zmian",passwordNotSet:"nie ustawiono",saveApply:"Zapisz i zastosuj",testConnection:"Testuj połączenie",persistedEnv:"zapisano w .env",testOk:"Połączenie OK — superużytkownik uwierzytelniony.",testReachableNoAuth:"PocketBase jest dostępny, ale konto usługowe nie zostało uwierzytelnione.",testUnreachable:"PocketBase jest niedostępny pod tym adresem.",savedNotice:"Zapisano. Serwer korzysta teraz z tego PocketBase."},Cl={title:"Aplikacja webowa",subtitle:"Adres sprawdzany podczas kontroli statusu oraz kto może wywoływać to API z przeglądarki",reachable:"dostępna",unreachable:"niedostępna",baseUrl:"Adres bazowy",allowedOrigins:"Dozwolone źródła",originsHint:"Oddzielone przecinkami lub {star} dla dowolnego. Natywne aplikacje mobilne nie podlegają CORS.",saveApply:"Zapisz i zastosuj",testConnection:"Testuj połączenie",persistedEnv:"zapisano w .env",testOk:"Aplikacja webowa jest dostępna.",testFailed:"Aplikacja webowa nie odpowiedziała na kontrolę stanu pod tym adresem.",savedNotice:"Zapisano. Nowe źródła obowiązują od następnego żądania."},Al={title:"Wtyczki",subtitle:"Integracje z usługami zewnętrznymi",registerExternal:"Zarejestruj zewnętrzną",cancelRegister:"Anuluj",name:"Nazwa",baseUrl:"Adres bazowy",provider:"Dostawca",register:"Zarejestruj",empty:"Brak wtyczek. Zarejestruj zewnętrzną powyżej lub skompiluj wbudowany łącznik.",builtin:"wbudowana",enabled:"włączona",disabled:"wyłączona",health:"Stan",configure:"Konfiguruj",close:"Zamknij",noConfig:"Ta wtyczka nie wymaga konfiguracji.",notSet:"Nie ustawiono — pozwól organizacjom i użytkownikom wybrać",capabilities:"Możliwości",saved:"Zapisano.",checking:"Sprawdzanie…",save:"Zapisz",saveEnable:"Zapisz i włącz",disable:"Wyłącz",remove:"Usuń",builtinNote:"Wtyczki wbudowane można wyłączyć, ale nie usunąć",confirmRemove:"Usunąć zewnętrzną wtyczkę „{name}”? Jej zapisana konfiguracja zostanie usunięta."},$l={colEndpoint:"Punkt końcowy",colDescription:"Opis",authNone:"Bez uwierzytelniania",authBearer:"Token Bearer",authManager:"Administrator / superadministrator",authSuperadmin:"Superadministrator",authCharger:"Dane logowania ładowarki",groupPublic:"Publiczne",groupIdentity:"Tożsamość",groupCars:"Samochody",groupService:"Wpisy serwisowe",groupTechnical:"Przeglądy techniczne",groupParts:"Części",groupFuel:"Paliwo",groupCharging:"Ładowanie",groupMaintenance:"Naprawy",groupDocuments:"Dokumenty",groupReminders:"Przypomnienia",groupAttachments:"Załączniki",groupProviders:"Dostawcy pojazdów",groupIntegrations:"Integracje",groupOcpp:"OCPP",groupAccount:"Konto",groupManagement:"Zarządzanie",groupSuperadmin:"Superadministrator"},Ol={app:yl,sections:_l,login:wl,status:xl,common:kl,users:Tl,orgs:Sl,server:El,pocketbase:Pl,webapp:Cl,plugins:Al,api:$l},Rl={apiServer:"API-server",switchToLight:"Skift til lyst tema",switchToDark:"Skift til mørkt tema",theme:"Tema",signOut:"Log ud",loading:"Indlæser…",standardUserNote:"Logget ind som almindelig bruger — administrationssektioner kræver en administratorrolle",footer:"DriverVault — bilservice- og vedligeholdelsesregister."},zl={overview:"Oversigt",users:"Brugere",orgs:"Organisationer",server:"API-server",pocketbase:"PocketBase",webapp:"Webapp",plugins:"Plugins",api:"API"},Dl={title:"Log ind",subtitle:"Superadmin-konsol til DriverVault API-serveren.",email:"E-mail",password:"Adgangskode",submit:"Log ind",submitting:"Logger ind…",invalid:"Ugyldig e-mail eller adgangskode.",failed:"Kunne ikke logge ind.",authNote:"Godkender mod PocketBase gennem denne server"},Il={title:"Status",unreachable:"utilgængelig",checking:"Tjekker…",apiServer:"API-server",pocketBase:"PocketBase",webApp:"Webapp",thisProcess:"denne proces"},jl={create:"Opret",save:"Gem",cancel:"Annuller",edit:"Rediger",delete:"Slet",rename:"Omdøb",empty:"—",name:"Navn",email:"E-mail",role:"Rolle",organization:"Organisation"},Ul={title:"Brugere",allOrgs:"Alle organisationer",yourOrg:"Din organisation",newUser:"Ny bruger",password:"Adgangskode",passwordUnchanged:"Adgangskode (tom = uændret)",passwordPlaceholder:"mindst 8 tegn",orgNone:"— ingen —",you:"dig",empty:"Ingen brugere.",confirmDelete:"Slet {email}? Dette kan ikke fortrydes."},Nl={title:"Organisationer",subtitle:"Enheder, som brugere tilhører",subtitleOwn:"Din organisation",subtitleNone:"Opret en for at administrere dit eget team",newOrg:"Ny organisation",namePlaceholder:"Acme Fleet",empty:"Ingen organisationer endnu.",createHint:"Du har endnu ingen organisation. Opret en for at blive dens administrator.",colId:"ID",confirmDelete:'Slet organisationen "{name}"?',confirmDeleteOwn:"Slet din organisation „{name}“? Du fjernes fra den og bliver en almindelig bruger."},Ml={title:"API-server",subtitle:"Hvordan denne server identificerer sig over for de klienter, der forbinder til den",name:"Servernavn",nameHint:"Vises af klienter, der kan pege på mere end én DriverVault, for eksempel webappens serverskifter. Returneres af /api/health.",saveApply:"Gem og anvend",persistedEnv:"gemt i .env",savedNotice:"Gemt. Det nye navn gælder fra næste anmodning."},Ll={title:"PocketBase",subtitle:"Databaseforbindelse brugt af hvert endpoint",connected:"forbundet",noSuperuser:"ingen superbruger",unreachable:"utilgængelig",baseUrl:"Basis-URL",superuserEmail:"Superbrugerens e-mail",superuserPassword:"Superbrugerens adgangskode",passwordUnchanged:"uændret",passwordNotSet:"ikke angivet",saveApply:"Gem og anvend",testConnection:"Test forbindelse",persistedEnv:"gemt i .env",testOk:"Forbindelse OK — superbruger godkendt.",testReachableNoAuth:"PocketBase er tilgængelig, men servicekontoen blev ikke godkendt.",testUnreachable:"PocketBase er ikke tilgængelig på den adresse.",savedNotice:"Gemt. Serveren bruger nu denne PocketBase."},Fl={title:"Webapp",subtitle:"Adressen, der tjekkes ved statuskontrol, og hvem der må kalde dette API fra en browser",reachable:"tilgængelig",unreachable:"utilgængelig",baseUrl:"Basis-URL",allowedOrigins:"Tilladte oprindelser",originsHint:"Kommasepareret, eller {star} for enhver. Native mobilapps er ikke underlagt CORS.",saveApply:"Gem og anvend",testConnection:"Test forbindelse",persistedEnv:"gemt i .env",testOk:"Webappen er tilgængelig.",testFailed:"Webappen svarede ikke på sit helbredstjek på den adresse.",savedNotice:"Gemt. Nye oprindelser gælder fra næste anmodning."},Bl={title:"Plugins",subtitle:"Integrationer med tredjepartstjenester",registerExternal:"Registrér ekstern",cancelRegister:"Annuller",name:"Navn",baseUrl:"Basis-URL",provider:"Udbyder",register:"Registrér",empty:"Ingen plugins endnu. Registrér et eksternt ovenfor, eller kompilér et indbygget stik.",builtin:"indbygget",enabled:"aktiveret",disabled:"deaktiveret",health:"Helbred",configure:"Konfigurer",close:"Luk",noConfig:"Dette plugin kræver ingen konfiguration.",notSet:"Ikke angivet — lad organisationer og brugere vælge",capabilities:"Funktioner",saved:"Gemt.",checking:"Tjekker…",save:"Gem",saveEnable:"Gem og aktivér",disable:"Deaktiver",remove:"Fjern",builtinNote:"Indbyggede plugins kan deaktiveres, men ikke fjernes",confirmRemove:'Fjern det eksterne plugin "{name}"? Dets gemte konfiguration slettes.'},Hl={colEndpoint:"Endpoint",colDescription:"Beskrivelse",authNone:"Ingen godkendelse",authBearer:"Bearer-token",authManager:"Admin / superadmin",authSuperadmin:"Superadmin",authCharger:"Laderens loginoplysninger",groupPublic:"Offentlig",groupIdentity:"Identitet",groupCars:"Biler",groupService:"Serviceposter",groupTechnical:"Syn",groupParts:"Reservedele",groupFuel:"Brændstof",groupCharging:"Opladning",groupMaintenance:"Værksted",groupDocuments:"Dokumenter",groupReminders:"Påmindelser",groupAttachments:"Vedhæftede filer",groupProviders:"Køretøjsudbydere",groupIntegrations:"Integrationer",groupOcpp:"OCPP",groupAccount:"Konto",groupManagement:"Administration",groupSuperadmin:"Superadmin"},Vl={app:Rl,sections:zl,login:Dl,status:Il,common:jl,users:Ul,orgs:Nl,server:Ml,pocketbase:Ll,webapp:Fl,plugins:Bl,api:Hl},So="dh-panel-lang",Eo="en",Rt={en:vl,pl:Ol,da:Vl},Gl=Object.keys(Rt);function Kl(){try{const t=localStorage.getItem(So);if(t&&Rt[t])return t}catch{}const e=(navigator.language||"en").split("-")[0];return Rt[e]?e:Eo}const En=H(Kl());function Wl(e){if(Rt[e]){En.value=e;try{localStorage.setItem(So,e)}catch{}}}function hi(e,t){return t.split(".").reduce((s,n)=>s==null?void 0:s[n],e)}function ql(e,t){return t?e.replace(/\{(\w+)\}/g,(s,n)=>t[n]==null?s:String(t[n])):e}function Zl(e,t,s){let n="other";try{n=new Intl.PluralRules(s).select(t)}catch{n=t===1?"one":"other"}return e[n]??e.other??e.one}function f(e,t){const s=En.value;let n=hi(Rt[s],e);if(n==null&&(n=hi(Rt[Eo],e)),n==null)return e;if(typeof n=="object"){if((t==null?void 0:t.n)==null)return e;n=Zl(n,t.n,s)}return typeof n!="string"?e:ql(n,t)}function gi(e,t,s){const i=f(e,{...s,[t]:"\0"}),o=i.indexOf("\0");return o===-1?{before:i,after:""}:{before:i.slice(0,o),after:i.slice(o+1)}}const ln="dh-panel-token";function Jl(){try{return localStorage.getItem(ln)||""}catch{return""}}const zt=H(Jl()),de=H(null),Ce=je(()=>{var e;return((e=de.value)==null?void 0:e.role)==="superadmin"}),gs=je(()=>{var e,t;return((e=de.value)==null?void 0:e.role)==="admin"||((t=de.value)==null?void 0:t.role)==="superadmin"});function Po(e){zt.value=e;try{e?localStorage.setItem(ln,e):localStorage.removeItem(ln)}catch{}}class Yl extends Error{constructor(t,s,n){super(t),this.status=s,this.body=n}}function Xl(e,t){if(!e||typeof e!="object")return`HTTP ${t}`;if(e.error)return e.error;const s=Object.entries(e.data||{}).map(([n,i])=>`${n}: ${(i==null?void 0:i.message)||i}`).filter(Boolean);return s.length?s.join("; "):e.message||`HTTP ${t}`}async function te(e,{method:t="GET",body:s,auth:n=!0}={}){const i={};s!==void 0&&(i["Content-Type"]="application/json"),n&&zt.value&&(i.Authorization=zt.value);const o=await fetch(e,{method:t,headers:i,body:s===void 0?void 0:JSON.stringify(s)}),r=await o.text();let a=null;try{a=r?JSON.parse(r):null}catch{a=null}if(!o.ok)throw o.status===401&&n&&Pn(),new Yl(Xl(a,o.status),o.status,a);return a}async function Ql(e,t){const s=await te("/api/auth/login",{method:"POST",body:{email:e,password:t},auth:!1});return Po(s.token),await Ts(),de.value}async function Ts(){return de.value=await te("/api/identity"),de.value}function Pn(){Po(""),de.value=null}async function ec(){if(!zt.value)return null;try{return await Ts()}catch{return Pn(),null}}const tc={class:"mx-auto flex w-full max-w-sm flex-col gap-5 pt-24"},sc={class:"dh-card p-6"},nc={class:"text-lg font-bold tracking-[-0.02em] text-strong"},ic={class:"mt-1 mb-5 text-sm text-body"},oc={class:"dh-label",for:"login-email"},rc={class:"dh-label",for:"login-password"},ac={key:0,class:"rounded-control bg-danger-soft px-3 py-2 text-xs text-danger"},lc=["disabled"],cc={class:"eyebrow text-center"},uc={__name:"LoginView",emits:["authenticated"],setup(e,{emit:t}){const s=t,n=H(""),i=H(""),o=H(""),r=H(!1),a=je(()=>n.value.trim()!==""&&i.value!==""&&!r.value);async function l(){if(a.value){o.value="",r.value=!0;try{const g=await Ql(n.value.trim(),i.value);s("authenticated",g)}catch(g){o.value=g.status===400||g.status===404?f("login.invalid"):g.message||f("login.failed"),i.value=""}finally{r.value=!1}}}return(g,d)=>(y(),S("div",tc,[u("div",sc,[u("h1",nc,m(h(f)("login.title")),1),u("p",ic,m(h(f)("login.subtitle")),1),u("form",{class:"flex flex-col gap-4",onSubmit:Xa(l,["prevent"])},[u("div",null,[u("label",oc,m(h(f)("login.email")),1),le(u("input",{id:"login-email","onUpdate:modelValue":d[0]||(d[0]=b=>n.value=b),class:"dh-input",type:"email",autocomplete:"username",autofocus:"",placeholder:"you@example.com"},null,512),[[ge,n.value]])]),u("div",null,[u("label",rc,m(h(f)("login.password")),1),le(u("input",{id:"login-password","onUpdate:modelValue":d[1]||(d[1]=b=>i.value=b),class:"dh-input",type:"password",autocomplete:"current-password",placeholder:"••••••••"},null,512),[[ge,i.value]])]),o.value?(y(),S("p",ac,m(o.value),1)):B("",!0),u("button",{class:"dh-btn w-full",type:"submit",disabled:!a.value},m(r.value?h(f)("login.submitting"):h(f)("login.submit")),9,lc)],32)]),u("p",cc,m(h(f)("login.authNote")),1)]))}},dc={class:"dh-card overflow-hidden"},pc={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},fc={class:"text-base font-bold tracking-[-0.02em] text-strong"},hc={key:0,class:"dh-pill bg-danger-soft text-danger"},gc={key:0,class:"px-5 py-4 text-sm text-danger"},mc={key:1,class:"w-full text-left text-sm"},bc={class:"px-5 py-3 font-medium text-strong"},vc={class:"data px-5 py-3 text-xs text-muted"},yc={class:"data px-5 py-3 text-right text-xs text-muted"},_c={class:"px-5 py-3 text-right"},wc={key:2,class:"px-5 py-4 text-sm text-muted"},xc={__name:"StatusCard",setup(e){const t=H(null),s=H("");let n=null;async function i(){try{t.value=await te("/api/status",{auth:!1}),s.value=""}catch(a){t.value=null,s.value=a.message||f("status.unreachable")}}const o=je(()=>{var a,l,g;return[{key:"apiServer",label:f("status.apiServer"),h:(a=t.value)==null?void 0:a.apiServer},{key:"pocketBase",label:f("status.pocketBase"),h:(l=t.value)==null?void 0:l.pocketBase},{key:"webApp",label:f("status.webApp"),h:(g=t.value)==null?void 0:g.webApp}]});ct(()=>{i(),n=setInterval(i,1e4)}),kn(()=>clearInterval(n));const r=a=>a==="ok"?"bg-success-soft text-success":"bg-danger-soft text-danger";return(a,l)=>(y(),S("div",dc,[u("div",pc,[u("div",fc,m(h(f)("status.title")),1),s.value?(y(),S("span",hc,[l[0]||(l[0]=u("span",{class:"h-1.5 w-1.5 rounded-full bg-current"},null,-1)),Re(m(h(f)("status.unreachable")),1)])):B("",!0)]),s.value?(y(),S("div",gc,m(s.value),1)):t.value?(y(),S("table",mc,[u("tbody",null,[(y(!0),S(ne,null,$e(o.value,g=>(y(),S("tr",{key:g.key,class:"border-t border-subtle first:border-t-0"},[u("td",bc,m(g.label),1),u("td",vc,m(g.h.url||h(f)("status.thisProcess")),1),u("td",yc,m(g.h.latencyMs!=null?g.h.latencyMs+"ms":h(f)("common.empty")),1),u("td",_c,[u("span",{class:Ue(["dh-pill",r(g.h.status)])},[l[1]||(l[1]=u("span",{class:"h-1.5 w-1.5 rounded-full bg-current"},null,-1)),Re(m(g.h.status),1)],2)])]))),128))])])):(y(),S("div",wc,m(h(f)("status.checking")),1))]))}},kc={class:"dh-card overflow-hidden"},Tc={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},Sc={class:"text-base font-bold tracking-[-0.02em] text-strong"},Ec={class:"mt-0.5 text-xs text-muted"},Pc={class:"flex flex-col gap-4 px-5 py-4"},Cc={class:"dh-label",for:"pb-url"},Ac={class:"grid gap-4 sm:grid-cols-2"},$c={class:"dh-label",for:"pb-email"},Oc={class:"dh-label",for:"pb-password"},Rc=["placeholder"],zc={key:0,class:"data text-xs text-muted"},Dc={key:1,class:"rounded-control bg-info-soft px-3 py-2 text-xs text-info"},Ic={key:2,class:"rounded-control bg-danger-soft px-3 py-2 text-xs text-danger"},jc={class:"flex items-center gap-2"},Uc=["disabled"],Nc=["disabled"],Mc={class:"eyebrow"},Lc={__name:"PocketBaseCard",setup(e){const t=H(null),s=H({url:"",adminEmail:"",adminPassword:""}),n=H(null),i=H(""),o=H(""),r=H(!1);async function a(){try{t.value=await te("/api/admin/pb-config"),s.value={url:t.value.url,adminEmail:t.value.adminEmail,adminPassword:""},n.value=t.value.probe}catch(d){i.value=d.message}}ct(a);async function l(){i.value="",o.value="",r.value=!0;try{n.value=await te("/api/admin/pb-config/test",{method:"POST",body:s.value}),o.value=n.value.superuser?f("pocketbase.testOk"):n.value.reachable?f("pocketbase.testReachableNoAuth"):f("pocketbase.testUnreachable")}catch(d){i.value=d.message}finally{r.value=!1}}async function g(){i.value="",o.value="",r.value=!0;try{const d=await te("/api/admin/pb-config",{method:"PUT",body:s.value});t.value=d.config,n.value=d.config.probe,s.value.adminPassword="",o.value=d.warning||f("pocketbase.savedNotice")}catch(d){i.value=d.message}finally{r.value=!1}}return(d,b)=>{var P,$;return y(),S("div",kc,[u("div",Tc,[u("div",null,[u("div",Sc,m(h(f)("pocketbase.title")),1),u("p",Ec,m(h(f)("pocketbase.subtitle")),1)]),n.value?(y(),S("span",{key:0,class:Ue(["dh-pill",n.value.superuser?"bg-success-soft text-success":n.value.reachable?"bg-warning-soft text-warning":"bg-danger-soft text-danger"])},[b[3]||(b[3]=u("span",{class:"h-1.5 w-1.5 rounded-full bg-current"},null,-1)),Re(" "+m(n.value.superuser?h(f)("pocketbase.connected"):n.value.reachable?h(f)("pocketbase.noSuperuser"):h(f)("pocketbase.unreachable")),1)],2)):B("",!0)]),u("div",Pc,[u("div",null,[u("label",Cc,m(h(f)("pocketbase.baseUrl")),1),le(u("input",{id:"pb-url","onUpdate:modelValue":b[0]||(b[0]=F=>s.value.url=F),class:"dh-input",placeholder:"http://10.2.1.10:8027"},null,512),[[ge,s.value.url]])]),u("div",Ac,[u("div",null,[u("label",$c,m(h(f)("pocketbase.superuserEmail")),1),le(u("input",{id:"pb-email","onUpdate:modelValue":b[1]||(b[1]=F=>s.value.adminEmail=F),class:"dh-input",autocomplete:"off"},null,512),[[ge,s.value.adminEmail]])]),u("div",null,[u("label",Oc,m(h(f)("pocketbase.superuserPassword")),1),le(u("input",{id:"pb-password","onUpdate:modelValue":b[2]||(b[2]=F=>s.value.adminPassword=F),class:"dh-input",type:"password",autocomplete:"new-password",placeholder:(P=t.value)!=null&&P.adminConfigured?h(f)("pocketbase.passwordUnchanged"):h(f)("pocketbase.passwordNotSet")},null,8,Rc),[[ge,s.value.adminPassword]])])]),($=n.value)!=null&&$.detail?(y(),S("p",zc,m(n.value.detail),1)):B("",!0),o.value?(y(),S("p",Dc,m(o.value),1)):B("",!0),i.value?(y(),S("p",Ic,m(i.value),1)):B("",!0),u("div",jc,[u("button",{class:"dh-btn",disabled:r.value,onClick:g},m(h(f)("pocketbase.saveApply")),9,Uc),u("button",{class:"dh-btn-ghost",disabled:r.value,onClick:l},m(h(f)("pocketbase.testConnection")),9,Nc),b[4]||(b[4]=u("span",{class:"flex-1"},null,-1)),u("span",Mc,m(h(f)("pocketbase.persistedEnv")),1)])])])}}},Fc={class:"dh-card overflow-hidden"},Bc={class:"border-b border-subtle px-5 py-4"},Hc={class:"text-base font-bold tracking-[-0.02em] text-strong"},Vc={class:"mt-0.5 text-xs text-muted"},Gc={class:"flex flex-col gap-4 px-5 py-4"},Kc={class:"dh-label",for:"server-name"},Wc={class:"mt-1 text-xs text-muted"},qc={key:0,class:"rounded-control bg-info-soft px-3 py-2 text-xs text-info"},Zc={key:1,class:"rounded-control bg-danger-soft px-3 py-2 text-xs text-danger"},Jc={class:"flex items-center gap-2"},Yc=["disabled"],Xc={class:"eyebrow"},Qc={__name:"ServerCard",setup(e){const t=H({name:""}),s=H(""),n=H(""),i=H(!1);async function o(){try{const a=await te("/api/admin/server-config");t.value={name:a.name}}catch(a){s.value=a.message}}ct(o);async function r(){s.value="",n.value="",i.value=!0;try{const a=await te("/api/admin/server-config",{method:"PUT",body:{name:t.value.name}});t.value={name:a.config.name},n.value=a.warning||f("server.savedNotice")}catch(a){s.value=a.message}finally{i.value=!1}}return(a,l)=>(y(),S("div",Fc,[u("div",Bc,[u("div",Hc,m(h(f)("server.title")),1),u("p",Vc,m(h(f)("server.subtitle")),1)]),u("div",Gc,[u("div",null,[u("label",Kc,m(h(f)("server.name")),1),le(u("input",{id:"server-name","onUpdate:modelValue":l[0]||(l[0]=g=>t.value.name=g),class:"dh-input",maxlength:"64",placeholder:"DriverVault API Server",onKeyup:xo(r,["enter"])},null,544),[[ge,t.value.name]]),u("p",Wc,m(h(f)("server.nameHint")),1)]),n.value?(y(),S("p",qc,m(n.value),1)):B("",!0),s.value?(y(),S("p",Zc,m(s.value),1)):B("",!0),u("div",Jc,[u("button",{class:"dh-btn",disabled:i.value,onClick:r},m(h(f)("server.saveApply")),9,Yc),l[1]||(l[1]=u("span",{class:"flex-1"},null,-1)),u("span",Xc,m(h(f)("server.persistedEnv")),1)])])]))}},eu={class:"dh-card overflow-hidden"},tu={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},su={class:"text-base font-bold tracking-[-0.02em] text-strong"},nu={class:"mt-0.5 text-xs text-muted"},iu={class:"flex flex-col gap-4 px-5 py-4"},ou={class:"dh-label",for:"web-url"},ru={class:"dh-label",for:"web-origins"},au={class:"mt-1 text-xs text-muted"},lu={key:0,class:"data text-xs text-muted"},cu={key:1,class:"rounded-control bg-info-soft px-3 py-2 text-xs text-info"},uu={key:2,class:"rounded-control bg-danger-soft px-3 py-2 text-xs text-danger"},du={class:"flex items-center gap-2"},pu=["disabled"],fu=["disabled"],hu={class:"eyebrow"},gu={__name:"WebAppCard",setup(e){const t=H(null),s=H({url:"",origins:""}),n=H(null),i=H(""),o=H(""),r=H(!1),a=P=>P.split(",").map($=>$.trim()).filter(Boolean);function l(P){t.value=P,s.value={url:P.url,origins:(P.allowOrigins||[]).join(", ")},n.value=P.probe}async function g(){try{l(await te("/api/admin/webapp-config"))}catch(P){i.value=P.message}}ct(g);async function d(){i.value="",o.value="",r.value=!0;try{n.value=await te("/api/admin/webapp-config/test",{method:"POST",body:{url:s.value.url}}),o.value=n.value.status==="ok"?f("webapp.testOk"):f("webapp.testFailed")}catch(P){i.value=P.message}finally{r.value=!1}}async function b(){i.value="",o.value="",r.value=!0;try{const P=await te("/api/admin/webapp-config",{method:"PUT",body:{url:s.value.url,allowOrigins:a(s.value.origins)}});l(P.config),o.value=P.warning||f("webapp.savedNotice")}catch(P){i.value=P.message}finally{r.value=!1}}return(P,$)=>{var F;return y(),S("div",eu,[u("div",tu,[u("div",null,[u("div",su,m(h(f)("webapp.title")),1),u("p",nu,m(h(f)("webapp.subtitle")),1)]),n.value?(y(),S("span",{key:0,class:Ue(["dh-pill",n.value.status==="ok"?"bg-success-soft text-success":"bg-danger-soft text-danger"])},[$[2]||($[2]=u("span",{class:"h-1.5 w-1.5 rounded-full bg-current"},null,-1)),Re(" "+m(n.value.status==="ok"?h(f)("webapp.reachable"):h(f)("webapp.unreachable")),1)],2)):B("",!0)]),u("div",iu,[u("div",null,[u("label",ou,m(h(f)("webapp.baseUrl")),1),le(u("input",{id:"web-url","onUpdate:modelValue":$[0]||($[0]=k=>s.value.url=k),class:"dh-input",placeholder:"http://localhost:8090"},null,512),[[ge,s.value.url]])]),u("div",null,[u("label",ru,m(h(f)("webapp.allowedOrigins")),1),le(u("input",{id:"web-origins","onUpdate:modelValue":$[1]||($[1]=k=>s.value.origins=k),class:"dh-input",placeholder:"http://localhost:8090, https://app.example.com"},null,512),[[ge,s.value.origins]]),u("p",au,[Re(m(h(gi)("webapp.originsHint","star").before),1),$[3]||($[3]=u("span",{class:"data"},"*",-1)),Re(m(h(gi)("webapp.originsHint","star").after),1)])]),(F=n.value)!=null&&F.error?(y(),S("p",lu,m(n.value.error),1)):B("",!0),o.value?(y(),S("p",cu,m(o.value),1)):B("",!0),i.value?(y(),S("p",uu,m(i.value),1)):B("",!0),u("div",du,[u("button",{class:"dh-btn",disabled:r.value,onClick:b},m(h(f)("webapp.saveApply")),9,pu),u("button",{class:"dh-btn-ghost",disabled:r.value,onClick:d},m(h(f)("webapp.testConnection")),9,fu),$[4]||($[4]=u("span",{class:"flex-1"},null,-1)),u("span",hu,m(h(f)("webapp.persistedEnv")),1)])])])}}},mu={class:"dh-card overflow-hidden"},bu={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},vu={class:"text-base font-bold tracking-[-0.02em] text-strong"},yu={class:"mt-0.5 text-xs text-muted"},_u={key:0,class:"border-b border-subtle bg-sunken px-5 py-4"},wu={class:"grid gap-3 sm:grid-cols-3"},xu={class:"dh-label"},ku={class:"dh-label"},Tu={class:"dh-label"},Su=["disabled"],Eu={key:1,class:"border-b border-subtle px-5 py-3 text-xs text-danger"},Pu={key:2,class:"px-5 py-6 text-center text-sm text-muted"},Cu={class:"flex items-center gap-3 px-5 py-3"},Au=["onClick"],$u={class:"font-semibold text-strong"},Ou={class:"dh-pill bg-sunken text-muted"},Ru={key:0,class:"text-xs text-muted"},zu=["disabled","onClick"],Du=["disabled","onClick"],Iu={key:0,class:"bg-sunken px-5 py-4"},ju={key:0,class:"data mb-3 text-xs text-muted"},Uu={key:1,class:"grid gap-3 sm:grid-cols-2"},Nu={class:"dh-label"},Mu={key:0,class:"text-danger"},Lu=["onUpdate:modelValue"],Fu={key:0,value:""},Bu=["value"],Hu=["onUpdate:modelValue","type","placeholder"],Vu={key:2,class:"mt-1 text-xs text-muted"},Gu={key:2,class:"text-xs text-muted"},Ku={key:3,class:"mt-4"},Wu={class:"eyebrow mb-1.5"},qu={class:"data flex flex-col gap-1 text-xs text-muted"},Zu={class:"text-strong"},Ju={key:0},Yu={key:1},Xu={key:4,class:"data mt-3 text-xs text-body"},Qu={class:"mt-4 flex items-center gap-2"},ed=["disabled","onClick"],td=["disabled","onClick"],sd=["disabled","onClick"],nd={key:5,class:"eyebrow mt-2"},id={__name:"PluginsCard",setup(e){const t=H([]),s=H(""),n=H(!1),i=H(null),o=Xt({}),r=Xt({}),a=H(!1),l=H({name:"",baseURL:"",provider:""});async function g(){try{const O=await te("/api/admin/plugins");t.value=O.plugins||[],s.value=""}catch(O){s.value=O.message}}ct(g);function d(O){var C;if(i.value===O.name){i.value=null;return}const E={};for(const I of O.configFields||[])E[I.key]=((C=O.config)==null?void 0:C[I.key])??"";o[O.name]=E,i.value=O.name}async function b(O,E){n.value=!0,r[O.name]="";try{const C=await te(`/api/admin/plugins/${encodeURIComponent(O.name)}`,{method:"PUT",body:{enabled:E,config:o[O.name]??{}}});r[O.name]=C.warning||f("plugins.saved"),await g()}catch(C){r[O.name]=C.message}finally{n.value=!1}}async function P(O){n.value=!0,r[O.name]=f("plugins.checking");try{const E=await te(`/api/admin/plugins/${encodeURIComponent(O.name)}/health`,{method:"POST"});r[O.name]=`${E.health.status}${E.health.detail?" — "+E.health.detail:""}`,await g()}catch(E){r[O.name]=E.message}finally{n.value=!1}}async function $(O){if(confirm(f("plugins.confirmRemove",{name:O.name}))){n.value=!0;try{await te(`/api/admin/plugins/${encodeURIComponent(O.name)}`,{method:"DELETE"}),i.value===O.name&&(i.value=null),await g()}catch(E){r[O.name]=E.message}finally{n.value=!1}}}async function F(){n.value=!0,s.value="";try{await te("/api/admin/plugins",{method:"POST",body:l.value}),l.value={name:"",baseURL:"",provider:""},a.value=!1,await g()}catch(O){s.value=O.message}finally{n.value=!1}}const k=O=>O==="ok"?"bg-success-soft text-success":O==="degraded"?"bg-warning-soft text-warning":"bg-danger-soft text-danger";return(O,E)=>(y(),S("div",mu,[u("div",bu,[u("div",null,[u("div",vu,m(h(f)("plugins.title")),1),u("p",yu,m(h(f)("plugins.subtitle")),1)]),u("button",{class:"dh-btn-ghost",onClick:E[0]||(E[0]=C=>a.value=!a.value)},m(a.value?h(f)("plugins.cancelRegister"):h(f)("plugins.registerExternal")),1)]),a.value?(y(),S("div",_u,[u("div",wu,[u("div",null,[u("label",xu,m(h(f)("plugins.name")),1),le(u("input",{"onUpdate:modelValue":E[1]||(E[1]=C=>l.value.name=C),class:"dh-input",placeholder:"acme-parts"},null,512),[[ge,l.value.name]])]),u("div",null,[u("label",ku,m(h(f)("plugins.baseUrl")),1),le(u("input",{"onUpdate:modelValue":E[2]||(E[2]=C=>l.value.baseURL=C),class:"dh-input",placeholder:"http://127.0.0.1:9100"},null,512),[[ge,l.value.baseURL]])]),u("div",null,[u("label",Tu,m(h(f)("plugins.provider")),1),le(u("input",{"onUpdate:modelValue":E[3]||(E[3]=C=>l.value.provider=C),class:"dh-input",placeholder:"ACME Corp"},null,512),[[ge,l.value.provider]])])]),u("button",{class:"dh-btn mt-3",disabled:n.value||!l.value.name||!l.value.baseURL,onClick:F},m(h(f)("plugins.register")),9,Su)])):B("",!0),s.value?(y(),S("p",Eu,m(s.value),1)):B("",!0),t.value.length?B("",!0):(y(),S("p",Pu,m(h(f)("plugins.empty")),1)),(y(!0),S(ne,null,$e(t.value,C=>(y(),S("div",{key:C.name,class:"border-t border-subtle first:border-t-0"},[u("div",Cu,[u("button",{class:"flex flex-1 items-center gap-3 text-left",onClick:I=>d(C)},[u("span",$u,m(C.name),1),u("span",Ou,m(C.kind||h(f)("plugins.builtin")),1),C.provider?(y(),S("span",Ru,m(C.provider),1)):B("",!0),C.health?(y(),S("span",{key:1,class:Ue(["dh-pill",k(C.health.status)])},[E[4]||(E[4]=u("span",{class:"h-1.5 w-1.5 rounded-full bg-current"},null,-1)),Re(m(C.health.status),1)],2)):B("",!0)],8,Au),u("span",{class:Ue(["dh-pill",C.enabled?"bg-success-soft text-success":"bg-sunken text-muted"])},m(C.enabled?h(f)("plugins.enabled"):h(f)("plugins.disabled")),3),u("button",{class:"dh-btn-ghost",disabled:n.value,onClick:I=>P(C)},m(h(f)("plugins.health")),9,zu),u("button",{class:"dh-btn-ghost",disabled:n.value,onClick:I=>d(C)},m(i.value===C.name?h(f)("plugins.close"):h(f)("plugins.configure")),9,Du)]),i.value===C.name?(y(),S("div",Iu,[C.baseURL?(y(),S("div",ju,m(C.baseURL),1)):B("",!0),(C.configFields||[]).length?(y(),S("div",Uu,[(y(!0),S(ne,null,$e(C.configFields,I=>(y(),S("div",{key:I.key},[u("label",Nu,[Re(m(I.label||I.key),1),I.required?(y(),S("span",Mu," *")):B("",!0)]),I.type==="select"?le((y(),S("select",{key:0,"onUpdate:modelValue":j=>o[C.name][I.key]=j,class:"dh-select"},[I.required?B("",!0):(y(),S("option",Fu,m(h(f)("plugins.notSet")),1)),(y(!0),S(ne,null,$e(I.options||[],j=>(y(),S("option",{key:j.value,value:j.value},m(j.label||j.value),9,Bu))),128))],8,Lu)),[[ks,o[C.name][I.key]]]):le((y(),S("input",{key:1,"onUpdate:modelValue":j=>o[C.name][I.key]=j,class:"dh-input",type:I.type==="password"?"password":I.type==="number"?"number":"text",placeholder:I.default||"",autocomplete:"off"},null,8,Hu)),[[qa,o[C.name][I.key]]]),I.help?(y(),S("p",Vu,m(I.help),1)):B("",!0)]))),128))])):(y(),S("p",Gu,m(h(f)("plugins.noConfig")),1)),(C.capabilities||[]).length?(y(),S("div",Ku,[u("div",Wu,m(h(f)("plugins.capabilities")),1),u("ul",qu,[(y(!0),S(ne,null,$e(C.capabilities,I=>(y(),S("li",{key:I.id},[u("span",Zu,m(I.id),1),I.method||I.endpoint?(y(),S("span",Ju," — "+m(I.method)+" "+m(I.endpoint),1)):B("",!0),I.description?(y(),S("span",Yu," · "+m(I.description),1)):B("",!0)]))),128))])])):B("",!0),r[C.name]?(y(),S("p",Xu,m(r[C.name]),1)):B("",!0),u("div",Qu,[u("button",{class:"dh-btn",disabled:n.value,onClick:I=>b(C,!0)},m(C.enabled?h(f)("plugins.save"):h(f)("plugins.saveEnable")),9,ed),C.enabled?(y(),S("button",{key:0,class:"dh-btn-ghost",disabled:n.value,onClick:I=>b(C,!1)},m(h(f)("plugins.disable")),9,td)):B("",!0),E[5]||(E[5]=u("span",{class:"flex-1"},null,-1)),C.kind==="external"?(y(),S("button",{key:1,class:"dh-btn-danger",disabled:n.value,onClick:I=>$(C)},m(h(f)("plugins.remove")),9,sd)):B("",!0)]),C.kind!=="external"?(y(),S("p",nd,m(h(f)("plugins.builtinNote")),1)):B("",!0)])):B("",!0)]))),128))]))}},od={class:"dh-card overflow-hidden"},rd={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},ad={class:"text-base font-bold tracking-[-0.02em] text-strong"},ld={class:"mt-0.5 text-xs text-muted"},cd={key:0,class:"border-b border-subtle px-5 py-3 text-xs text-danger"},ud={key:1,class:"border-b border-subtle bg-sunken px-5 py-4"},dd={class:"grid gap-3 sm:grid-cols-2"},pd={class:"dh-label"},fd={class:"dh-label"},hd={class:"dh-label"},gd=["placeholder"],md={class:"dh-label"},bd=["value"],vd={key:0},yd={class:"dh-label"},_d={value:""},wd=["value"],xd={class:"mt-3 flex items-center gap-2"},kd=["disabled"],Td=["disabled"],Sd={key:2,class:"px-5 py-6 text-center text-sm text-muted"},Ed={key:3,class:"w-full text-left text-sm"},Pd={class:"[&>th]:eyebrow [&>th]:px-5 [&>th]:py-2.5 [&>th]:font-medium"},Cd={class:"data px-5 py-2.5 text-xs text-strong"},Ad={key:0,class:"eyebrow ml-1"},$d={class:"px-5 py-2.5 text-body"},Od={class:"px-5 py-2.5 text-body"},Rd={class:"px-5 py-2.5"},zd={class:"px-5 py-2.5 text-right whitespace-nowrap"},Dd=["onClick"],Id=["disabled","onClick"],jd={__name:"UsersCard",setup(e){const t=H([]),s=H([]),n=H(""),i=H(!1),o=H(null),r=H({}),a=je(()=>Ce.value?["user","admin","superadmin"]:["user","admin"]);async function l(){try{const[k,O]=await Promise.all([te("/api/users"),te("/api/orgs")]);t.value=k.users||[],s.value=O.organizations||[],n.value=""}catch(k){n.value=k.message}}ct(l);function g(){var k;o.value="new",r.value={email:"",name:"",password:"",role:"user",organization:Ce.value?"":((k=de.value)==null?void 0:k.organization)||""}}function d(k){o.value=k.id,r.value={email:k.email,name:k.name||"",password:"",role:k.role,organization:k.organization||""}}function b(){o.value=null,n.value=""}async function P(){i.value=!0,n.value="";try{if(o.value==="new")await te("/api/users",{method:"POST",body:r.value});else{const k={...r.value};k.password||delete k.password,await te(`/api/users/${o.value}`,{method:"PATCH",body:k})}o.value=null,await l()}catch(k){n.value=k.message}finally{i.value=!1}}async function $(k){if(confirm(f("users.confirmDelete",{email:k.email}))){i.value=!0,n.value="";try{await te(`/api/users/${k.id}`,{method:"DELETE"}),await l()}catch(O){n.value=O.message}finally{i.value=!1}}}const F=k=>k==="superadmin"?"bg-info-soft text-info":k==="admin"?"bg-warning-soft text-warning":"bg-sunken text-muted";return(k,O)=>(y(),S("div",od,[u("div",rd,[u("div",null,[u("div",ad,m(h(f)("users.title")),1),u("p",ld,m(h(Ce)?h(f)("users.allOrgs"):h(f)("users.yourOrg")),1)]),u("button",{class:"dh-btn",onClick:g},m(h(f)("users.newUser")),1)]),n.value?(y(),S("p",cd,m(n.value),1)):B("",!0),o.value?(y(),S("div",ud,[u("div",dd,[u("div",null,[u("label",pd,m(h(f)("common.email")),1),le(u("input",{"onUpdate:modelValue":O[0]||(O[0]=E=>r.value.email=E),class:"dh-input",type:"email",autocomplete:"off"},null,512),[[ge,r.value.email]])]),u("div",null,[u("label",fd,m(h(f)("common.name")),1),le(u("input",{"onUpdate:modelValue":O[1]||(O[1]=E=>r.value.name=E),class:"dh-input",autocomplete:"off"},null,512),[[ge,r.value.name]])]),u("div",null,[u("label",hd,m(o.value==="new"?h(f)("users.password"):h(f)("users.passwordUnchanged")),1),le(u("input",{"onUpdate:modelValue":O[2]||(O[2]=E=>r.value.password=E),class:"dh-input",type:"password",autocomplete:"new-password",placeholder:h(f)("users.passwordPlaceholder")},null,8,gd),[[ge,r.value.password]])]),u("div",null,[u("label",md,m(h(f)("common.role")),1),le(u("select",{"onUpdate:modelValue":O[3]||(O[3]=E=>r.value.role=E),class:"dh-select"},[(y(!0),S(ne,null,$e(a.value,E=>(y(),S("option",{key:E,value:E},m(E),9,bd))),128))],512),[[ks,r.value.role]])]),h(Ce)?(y(),S("div",vd,[u("label",yd,m(h(f)("common.organization")),1),le(u("select",{"onUpdate:modelValue":O[4]||(O[4]=E=>r.value.organization=E),class:"dh-select"},[u("option",_d,m(h(f)("users.orgNone")),1),(y(!0),S(ne,null,$e(s.value,E=>(y(),S("option",{key:E.id,value:E.id},m(E.name),9,wd))),128))],512),[[ks,r.value.organization]])])):B("",!0)]),u("div",xd,[u("button",{class:"dh-btn",disabled:i.value,onClick:P},m(o.value==="new"?h(f)("common.create"):h(f)("common.save")),9,kd),u("button",{class:"dh-btn-ghost",disabled:i.value,onClick:b},m(h(f)("common.cancel")),9,Td)])])):B("",!0),t.value.length?(y(),S("table",Ed,[u("thead",null,[u("tr",Pd,[u("th",null,m(h(f)("common.email")),1),u("th",null,m(h(f)("common.name")),1),u("th",null,m(h(f)("common.organization")),1),u("th",null,m(h(f)("common.role")),1),O[5]||(O[5]=u("th",null,null,-1))])]),u("tbody",null,[(y(!0),S(ne,null,$e(t.value,E=>{var C,I;return y(),S("tr",{key:E.id,class:"border-t border-subtle transition-colors hover:bg-sunken"},[u("td",Cd,[Re(m(E.email)+" ",1),E.id===((C=h(de))==null?void 0:C.id)?(y(),S("span",Ad,m(h(f)("users.you")),1)):B("",!0)]),u("td",$d,m(E.name||h(f)("common.empty")),1),u("td",Od,m(E.organizationName||h(f)("common.empty")),1),u("td",Rd,[u("span",{class:Ue(["dh-pill",F(E.role)])},m(E.role),3)]),u("td",zd,[u("button",{class:"dh-btn-ghost",onClick:j=>d(E)},m(h(f)("common.edit")),9,Dd),E.id!==((I=h(de))==null?void 0:I.id)?(y(),S("button",{key:0,class:"dh-btn-danger ml-1.5",disabled:i.value,onClick:j=>$(E)},m(h(f)("common.delete")),9,Id)):B("",!0)])])}),128))])])):(y(),S("p",Sd,m(h(f)("users.empty")),1))]))}},Ud={class:"dh-card overflow-hidden"},Nd={class:"flex items-center justify-between border-b border-subtle px-5 py-4"},Md={class:"text-base font-bold tracking-[-0.02em] text-strong"},Ld={class:"mt-0.5 text-xs text-muted"},Fd={key:0,class:"border-b border-subtle px-5 py-3 text-xs text-danger"},Bd={key:1,class:"border-b border-subtle bg-sunken px-5 py-4"},Hd={class:"dh-label"},Vd=["placeholder"],Gd={class:"mt-3 flex items-center gap-2"},Kd=["disabled"],Wd=["disabled"],qd={key:2,class:"px-5 py-6 text-center text-sm text-muted"},Zd={key:3,class:"w-full text-left text-sm"},Jd={class:"[&>th]:eyebrow [&>th]:px-5 [&>th]:py-2.5 [&>th]:font-medium"},Yd={class:"px-5 py-2.5 font-medium text-strong"},Xd={class:"data px-5 py-2.5 text-xs text-muted"},Qd={class:"px-5 py-2.5 text-right whitespace-nowrap"},ep=["onClick"],tp=["disabled","onClick"],sp={__name:"OrgsCard",setup(e){const t=H([]),s=H(""),n=H(!1),i=H(null),o=H(""),r=je(()=>{var k;return((k=de.value)==null?void 0:k.organization)||""}),a=je(()=>Ce.value||!r.value);function l(k){return Ce.value||k.id===r.value}async function g(){if(!gs.value){t.value=[];return}try{const k=await te("/api/orgs");t.value=k.organizations||[],s.value=""}catch(k){s.value=k.message}}ct(g);function d(){i.value="new",o.value=""}function b(k){i.value=k.id,o.value=k.name}function P(){i.value=null,s.value=""}async function $(){n.value=!0,s.value="";try{i.value==="new"?(await te("/api/orgs",{method:"POST",body:{name:o.value}}),Ce.value||await Ts()):await te(`/api/orgs/${i.value}`,{method:"PATCH",body:{name:o.value}}),i.value=null,await g()}catch(k){s.value=k.message}finally{n.value=!1}}async function F(k){const O=!Ce.value&&k.id===r.value;if(confirm(f(O?"orgs.confirmDeleteOwn":"orgs.confirmDelete",{name:k.name}))){n.value=!0,s.value="";try{await te(`/api/orgs/${k.id}`,{method:"DELETE"}),O&&await Ts(),await g()}catch(C){s.value=C.message}finally{n.value=!1}}}return(k,O)=>(y(),S("div",Ud,[u("div",Nd,[u("div",null,[u("div",Md,m(h(Ce)?h(f)("orgs.title"):h(f)("common.organization")),1),u("p",Ld,m(h(Ce)?h(f)("orgs.subtitle"):r.value?h(f)("orgs.subtitleOwn"):h(f)("orgs.subtitleNone")),1)]),a.value?(y(),S("button",{key:0,class:"dh-btn",onClick:d},m(h(f)("orgs.newOrg")),1)):B("",!0)]),s.value?(y(),S("p",Fd,m(s.value),1)):B("",!0),i.value?(y(),S("div",Bd,[u("label",Hd,m(h(f)("common.name")),1),le(u("input",{"onUpdate:modelValue":O[0]||(O[0]=E=>o.value=E),class:"dh-input",placeholder:h(f)("orgs.namePlaceholder"),onKeyup:xo($,["enter"])},null,40,Vd),[[ge,o.value]]),u("div",Gd,[u("button",{class:"dh-btn",disabled:n.value||!o.value.trim(),onClick:$},m(i.value==="new"?h(f)("common.create"):h(f)("common.save")),9,Kd),u("button",{class:"dh-btn-ghost",disabled:n.value,onClick:P},m(h(f)("common.cancel")),9,Wd)])])):B("",!0),t.value.length?(y(),S("table",Zd,[u("thead",null,[u("tr",Jd,[u("th",null,m(h(f)("common.name")),1),u("th",null,m(h(f)("orgs.colId")),1),O[1]||(O[1]=u("th",null,null,-1))])]),u("tbody",null,[(y(!0),S(ne,null,$e(t.value,E=>(y(),S("tr",{key:E.id,class:"border-t border-subtle transition-colors hover:bg-sunken"},[u("td",Yd,m(E.name),1),u("td",Xd,m(E.id),1),u("td",Qd,[l(E)?(y(),S(ne,{key:0},[u("button",{class:"dh-btn-ghost",onClick:C=>b(E)},m(h(f)("common.rename")),9,ep),u("button",{class:"dh-btn-danger ml-1.5",disabled:n.value,onClick:C=>F(E)},m(h(f)("common.delete")),9,tp)],64)):B("",!0)])]))),128))])])):(y(),S("p",qd,m(a.value&&!h(Ce)?h(f)("orgs.createHint"):h(f)("orgs.empty")),1))]))}},np={class:"dh-card overflow-hidden"},ip={class:"border-b border-subtle px-5 py-4"},op={class:"flex items-center justify-between"},rp={class:"text-base font-bold tracking-[-0.02em] text-strong"},ap={class:"eyebrow"},lp={key:0,class:"mt-1.5 text-xs text-muted"},cp={class:"overflow-x-auto"},up={class:"w-full text-left text-sm"},dp={class:"[&>th]:eyebrow [&>th]:px-5 [&>th]:py-2.5 [&>th]:font-medium"},pp={class:"data border-t border-subtle px-5 py-2.5 text-xs whitespace-nowrap"},fp={class:"text-strong"},hp={class:"border-t border-subtle px-5 py-2.5 text-body"},ue={__name:"EndpointTable",props:{title:String,auth:String,endpoints:Array,note:String},setup(e){const t={GET:"text-success",POST:"text-brandtext",PUT:"text-info",PATCH:"text-warning",DELETE:"text-danger"};return(s,n)=>(y(),S("div",np,[u("div",ip,[u("div",op,[u("div",rp,m(e.title),1),u("span",ap,m(e.auth),1)]),e.note?(y(),S("p",lp,m(e.note),1)):B("",!0)]),u("div",cp,[u("table",up,[u("thead",null,[u("tr",dp,[u("th",null,m(h(f)("api.colEndpoint")),1),u("th",null,m(h(f)("api.colDescription")),1)])]),u("tbody",null,[(y(!0),S(ne,null,$e(e.endpoints,i=>(y(),S("tr",{key:i.method+i.path,class:"transition-colors hover:bg-sunken"},[u("td",pp,[u("span",{class:Ue(["font-semibold",t[i.method]])},m(i.method),3),u("span",fp,m(i.path),1)]),u("td",hp,m(i.desc),1)]))),128))])])])]))}},gp={class:"mx-auto flex max-w-4xl flex-col gap-6 px-6 pt-12 pb-16"},mp={class:"flex items-center gap-3"},bp={class:"inline-flex items-center gap-2.5 select-none"},vp={class:"h-8 w-8 shrink-0",viewBox:"0 0 48 48",fill:"none","aria-hidden":"true"},yp={transform:"translate(7 0) skewX(-13)"},_p=["fill"],wp=["fill"],xp=["fill"],kp={class:"eyebrow mt-1.5"},Tp={key:0,class:"data hidden text-xs text-muted sm:inline"},Sp={key:0},Ep={key:1,class:"dh-pill bg-info-soft text-info"},Pp=["value","aria-label"],Cp=["value"],Ap=["title"],$p={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.75",class:"h-4 w-4"},Op={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.75",class:"h-4 w-4"},Rp={key:0,class:"eyebrow py-16 text-center"},zp={class:"flex flex-wrap gap-1.5"},Dp=["onClick"],Ip={key:8,class:"eyebrow text-center"},jp={class:"eyebrow text-center"},Up="{records} is any of service-records, technical-checks, maintenance, fuel-entries, charging-sessions, car-documents, parts.",Np={__name:"App",setup(e){const t=H(!0),s=H("overview");ct(async()=>{await ec(),t.value=!1});const n=je(()=>{const pe=[{id:"overview",label:f("sections.overview")}];return gs.value&&pe.push({id:"users",label:f("sections.users")}),(gs.value||de.value)&&pe.push({id:"orgs",label:f("sections.orgs")}),Ce.value&&pe.push({id:"server",label:f("sections.server")},{id:"pocketbase",label:f("sections.pocketbase")},{id:"webapp",label:f("sections.webapp")},{id:"plugins",label:f("sections.plugins")}),pe.push({id:"api",label:f("sections.api")}),pe}),i=je(()=>Gl.map(pe=>{let se=pe;try{se=new Intl.DisplayNames([pe],{type:"language"}).of(pe)||pe}catch{}return{code:pe,label:se.charAt(0).toUpperCase()+se.slice(1)}}));function o(){Pn(),s.value="overview"}const r=je(()=>Ct.value==="dark"?["#60a5fa","#93c5fd","#ffffff"]:["var(--brand-700)","var(--brand-500)","var(--brand-400)"]),a=[{method:"GET",path:"/api/health",desc:"Liveness probe (no auth)"},{method:"GET",path:"/healthz",desc:"The same probe under the conventional container path"},{method:"GET",path:"/api/status",desc:"Health of PocketBase + Web App"},{method:"POST",path:"/api/auth/login",desc:"Exchange email + password for a PocketBase token"},{method:"GET",path:"/api/auth/validate",desc:"Check whether a token is still valid"}],l=[{method:"GET",path:"/api/auth/me",desc:"Identity of the bearer token"},{method:"GET",path:"/api/identity",desc:"Identity incl. role + organization"}],g=[{method:"GET",path:"/api/cars",desc:"List owned + shared cars"},{method:"POST",path:"/api/cars",desc:"Create a car"},{method:"GET",path:"/api/cars/{id}",desc:"Fetch one car"},{method:"PATCH",path:"/api/cars/{id}",desc:"Update a car"},{method:"PUT",path:"/api/cars/{id}/view",desc:"Save the car's layout — hidden tabs/fields/columns and their order"},{method:"DELETE",path:"/api/cars/{id}",desc:"Delete a car (owner only)"},{method:"GET",path:"/api/cars/{id}/service-records",desc:"A car's service history"},{method:"GET",path:"/api/cars/{id}/technical-checks",desc:"A car's roadworthiness inspections"},{method:"GET",path:"/api/cars/{id}/parts",desc:"A car's parts catalog"},{method:"GET",path:"/api/cars/{id}/fuel-entries",desc:"A car's refuelings"},{method:"GET",path:"/api/cars/{id}/fuel-stats",desc:"Consumption + cost totals from the fuel log"},{method:"GET",path:"/api/cars/{id}/charging-sessions",desc:"A car's charging sessions"},{method:"GET",path:"/api/cars/{id}/charging-stats",desc:"Energy + cost totals from the charging log"},{method:"GET",path:"/api/cars/{id}/maintenance",desc:"A car's maintenance log"},{method:"GET",path:"/api/cars/{id}/documents",desc:"A car's documents"},{method:"GET",path:"/api/cars/{id}/reminders",desc:"A car's reminders"},{method:"GET",path:"/api/cars/{id}/provider",desc:"Live snapshot from the car's connected service"},{method:"POST",path:"/api/cars/{id}/provider",desc:"Link the car to a provider vehicle (an empty provider unlinks)"},{method:"POST",path:"/api/cars/{id}/provider/sync",desc:"Re-apply the provider's data to the car"},{method:"GET",path:"/api/cars/{id}/shares",desc:"Who a car is shared with (owner)"},{method:"POST",path:"/api/cars/{id}/shares",desc:"Share a car by email (owner)"},{method:"DELETE",path:"/api/cars/{id}/shares/{userId}",desc:"Revoke a share (owner)"}],d=[{method:"GET",path:"/api/service-records",desc:"List one car's service records (?car={id})"},{method:"POST",path:"/api/service-records",desc:"Log a service record"},{method:"GET",path:"/api/service-records/{id}",desc:"Fetch one record"},{method:"PATCH",path:"/api/service-records/{id}",desc:"Update a record"},{method:"DELETE",path:"/api/service-records/{id}",desc:"Delete a record"}],b=[{method:"GET",path:"/api/technical-checks",desc:"List one car's inspections (?car={id})"},{method:"POST",path:"/api/technical-checks",desc:"Log an inspection"},{method:"GET",path:"/api/technical-checks/{id}",desc:"Fetch one inspection"},{method:"PATCH",path:"/api/technical-checks/{id}",desc:"Update an inspection"},{method:"DELETE",path:"/api/technical-checks/{id}",desc:"Delete an inspection"}],P=[{method:"GET",path:"/api/parts",desc:"List one car's parts (?car={id})"},{method:"POST",path:"/api/parts",desc:"Add a part"},{method:"GET",path:"/api/parts/{id}",desc:"Fetch one part"},{method:"PATCH",path:"/api/parts/{id}",desc:"Update a part"},{method:"DELETE",path:"/api/parts/{id}",desc:"Delete a part"}],$=[{method:"GET",path:"/api/fuel-entries",desc:"List one car's refuelings (?car={id})"},{method:"POST",path:"/api/fuel-entries",desc:"Log a refueling"},{method:"GET",path:"/api/fuel-entries/{id}",desc:"Fetch one refueling"},{method:"PATCH",path:"/api/fuel-entries/{id}",desc:"Update a refueling"},{method:"DELETE",path:"/api/fuel-entries/{id}",desc:"Delete a refueling"}],F=[{method:"GET",path:"/api/charging-sessions",desc:"List one car's charging sessions (?car={id})"},{method:"POST",path:"/api/charging-sessions",desc:"Log a charging session"},{method:"GET",path:"/api/charging-sessions/{id}",desc:"Fetch one session"},{method:"PATCH",path:"/api/charging-sessions/{id}",desc:"Update a session"},{method:"DELETE",path:"/api/charging-sessions/{id}",desc:"Delete a session"}],k=[{method:"GET",path:"/api/maintenance",desc:"List one car's maintenance jobs (?car={id})"},{method:"POST",path:"/api/maintenance",desc:"Log a maintenance job"},{method:"GET",path:"/api/maintenance/{id}",desc:"Fetch one job"},{method:"PATCH",path:"/api/maintenance/{id}",desc:"Update a job"},{method:"DELETE",path:"/api/maintenance/{id}",desc:"Delete a job"}],O=[{method:"GET",path:"/api/car-documents",desc:"List one car's documents (?car={id})"},{method:"POST",path:"/api/car-documents",desc:"Add a document"},{method:"GET",path:"/api/car-documents/{id}",desc:"Fetch one document"},{method:"PATCH",path:"/api/car-documents/{id}",desc:"Update a document"},{method:"DELETE",path:"/api/car-documents/{id}",desc:"Delete a document"}],E=[{method:"GET",path:"/api/reminders",desc:"List one car's reminders (?car={id})"},{method:"POST",path:"/api/reminders",desc:"Create a reminder"},{method:"GET",path:"/api/reminders/{id}",desc:"Fetch one reminder"},{method:"PATCH",path:"/api/reminders/{id}",desc:"Update a reminder"},{method:"DELETE",path:"/api/reminders/{id}",desc:"Delete a reminder"},{method:"POST",path:"/api/reminders/{id}/complete",desc:"Mark done — a recurring reminder rolls forward from now"}],C=[{method:"POST",path:"/api/{records}/{id}/file",desc:"Attach a file, replacing any previous one (PDF or image, max 10 MB)"},{method:"GET",path:"/api/{records}/{id}/file",desc:"Download the attachment (car access re-checked on every request)"},{method:"DELETE",path:"/api/{records}/{id}/file",desc:"Detach and delete the file"}],I=[{method:"GET",path:"/api/vehicle-providers",desc:"Registered providers and whether the caller can use each one"},{method:"GET",path:"/api/vehicle-providers/{provider}/vehicles",desc:"Vehicles on the caller's provider account, as importable cars"},{method:"POST",path:"/api/vehicle-providers/{provider}/import",desc:"Create a car from a provider vehicle (409 if already imported)"}],j=[{method:"GET",path:"/api/integrations/toyota",desc:"Resolved Toyota Connected settings (secrets masked)"},{method:"PUT",path:"/api/integrations/toyota",desc:"Save the caller's own layer (user or org scope)"},{method:"POST",path:"/api/integrations/toyota/health",desc:"Live probe with the resolved credentials"},{method:"GET",path:"/api/integrations/toyota/vehicles",desc:"Raw MyToyota vehicle payload"},{method:"GET",path:"/api/integrations/anker-solix",desc:"Resolved Anker Solix settings (secrets masked)"},{method:"PUT",path:"/api/integrations/anker-solix",desc:"Save the caller's own layer (user or org scope)"},{method:"POST",path:"/api/integrations/anker-solix/health",desc:"Live probe with the resolved credentials"},{method:"GET",path:"/api/integrations/anker-solix/chargers",desc:"EV chargers on the linked Anker account"},{method:"GET",path:"/api/integrations/anker-solix/chargers/{sn}/control",desc:"Control mode, token state and live CSMS session for one charger"},{method:"POST",path:"/api/integrations/anker-solix/chargers/{sn}/control/token",desc:"(Re)issue the charger's control token"},{method:"DELETE",path:"/api/integrations/anker-solix/chargers/{sn}/control/token",desc:"Revoke the control token"},{method:"POST",path:"/api/integrations/anker-solix/chargers/{sn}/{action}",desc:"One OCPP command: start, stop, limit, clear-limit, availability, reset, unlock, trigger, config"},{method:"GET",path:"/api/integrations/greencell",desc:"Resolved Greencell settings (secrets masked)"},{method:"PUT",path:"/api/integrations/greencell",desc:"Save the caller's own layer (user or org scope)"},{method:"POST",path:"/api/integrations/greencell/health",desc:"Live probe: connect to the broker and broadcast for devices"},{method:"GET",path:"/api/integrations/greencell/chargers",desc:"Greencell chargers answering on the configured MQTT broker"},{method:"GET",path:"/api/integrations/greencell/chargers/{sn}/state",desc:"Live EVSE state, access level, power and per-phase current/voltage"}],re=[{method:"GET",path:"/ocpp/{serial}",desc:"WebSocket the charger dials out to; OCPP Basic auth with the serial + its control token"}],Ee=[{method:"GET",path:"/api/me",desc:"Current user profile"},{method:"PATCH",path:"/api/me",desc:"Update profile"},{method:"POST",path:"/api/me/password",desc:"Change password"},{method:"POST",path:"/api/me/avatar",desc:"Upload avatar"},{method:"GET",path:"/api/me/avatar",desc:"Fetch avatar"},{method:"DELETE",path:"/api/me/avatar",desc:"Remove avatar"},{method:"POST",path:"/api/me/verify/request",desc:"Request email verification"},{method:"GET",path:"/api/me/export",desc:"Export your data"},{method:"POST",path:"/api/me/import",desc:"Import data"},{method:"POST",path:"/api/me/delete",desc:"Request account deletion"},{method:"POST",path:"/api/me/delete/cancel",desc:"Cancel deletion request"},{method:"DELETE",path:"/api/me",desc:"Finalize account deletion"}],Pe=[{method:"GET",path:"/api/users",desc:"List users (scoped by role)"},{method:"POST",path:"/api/users",desc:"Create a user"},{method:"PATCH",path:"/api/users/{id}",desc:"Update email / name / role / org / password"},{method:"DELETE",path:"/api/users/{id}",desc:"Delete a user"},{method:"GET",path:"/api/orgs",desc:"List organizations"},{method:"POST",path:"/api/orgs",desc:"Create an organization (any user without one; creator becomes admin)"},{method:"PATCH",path:"/api/orgs/{id}",desc:"Rename an organization (own org; any as superadmin)"},{method:"DELETE",path:"/api/orgs/{id}",desc:"Delete an organization (own org; any as superadmin)"}],Le=[{method:"GET",path:"/api/admin/pb-config",desc:"PocketBase connection + live probe"},{method:"POST",path:"/api/admin/pb-config/test",desc:"Probe a candidate connection"},{method:"PUT",path:"/api/admin/pb-config",desc:"Apply + persist a connection"},{method:"GET",path:"/api/admin/server-config",desc:"This server's display name"},{method:"PUT",path:"/api/admin/server-config",desc:"Rename this server (applied + persisted)"},{method:"GET",path:"/api/admin/webapp-config",desc:"Web App URL + CORS origins, with a live probe"},{method:"POST",path:"/api/admin/webapp-config/test",desc:"Probe a candidate Web App address"},{method:"PUT",path:"/api/admin/webapp-config",desc:"Apply + persist Web App settings"},{method:"GET",path:"/api/admin/plugins",desc:"List plugins (secrets masked)"},{method:"POST",path:"/api/admin/plugins",desc:"Register an external plugin"},{method:"GET",path:"/api/admin/plugins/{name}",desc:"Fetch one plugin"},{method:"PUT",path:"/api/admin/plugins/{name}",desc:"Enable/disable + configure"},{method:"DELETE",path:"/api/admin/plugins/{name}",desc:"Remove an external plugin"},{method:"POST",path:"/api/admin/plugins/{name}/health",desc:"Run a health check now"}];return(pe,se)=>(y(),S("div",gp,[u("div",mp,[u("span",bp,[(y(),S("svg",vp,[u("g",yp,[u("rect",{x:"9",y:"16",width:"6",height:"16",rx:"3",fill:r.value[0]},null,8,_p),u("rect",{x:"19",y:"12",width:"6",height:"24",rx:"3",fill:r.value[1]},null,8,wp),u("rect",{x:"29",y:"8",width:"6",height:"32",rx:"3",fill:r.value[2]},null,8,xp)])])),se[2]||(se[2]=u("span",{class:"text-2xl leading-none font-extrabold tracking-[-0.03em] italic"},[u("span",{class:"text-strong"},"Driver"),u("span",{class:"text-brandtext"},"Vault")],-1))]),u("span",kp,m(h(f)("app.apiServer")),1),se[5]||(se[5]=u("div",{class:"flex-1"},null,-1)),h(de)?(y(),S("span",Tp,[Re(m(h(de).email),1),h(de).organizationName?(y(),S("span",Sp," · "+m(h(de).organizationName),1)):B("",!0)])):B("",!0),h(de)?(y(),S("span",Ep,m(h(de).role),1)):B("",!0),u("select",{class:"dh-select !w-auto !py-1 !text-xs",value:h(En),"aria-label":h(f)("sections.overview"),onChange:se[0]||(se[0]=ce=>h(Wl)(ce.target.value))},[(y(!0),S(ne,null,$e(i.value,ce=>(y(),S("option",{key:ce.code,value:ce.code},m(ce.label),9,Cp))),128))],40,Pp),u("button",{class:"dh-btn-ghost",title:h(Ct)==="dark"?h(f)("app.switchToLight"):h(f)("app.switchToDark"),onClick:se[1]||(se[1]=(...ce)=>h(fi)&&h(fi)(...ce))},[h(Ct)==="dark"?(y(),S("svg",$p,[...se[3]||(se[3]=[u("circle",{cx:"12",cy:"12",r:"4"},null,-1),u("path",{"stroke-linecap":"round",d:"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"},null,-1)])])):(y(),S("svg",Op,[...se[4]||(se[4]=[u("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"},null,-1)])])),Re(" "+m(h(f)("app.theme")),1)],8,Ap),h(zt)?(y(),S("button",{key:2,class:"dh-btn-ghost",onClick:o},m(h(f)("app.signOut")),1)):B("",!0)]),t.value?(y(),S("p",Rp,m(h(f)("app.loading")),1)):h(zt)?(y(),S(ne,{key:2},[u("nav",zp,[(y(!0),S(ne,null,$e(n.value,ce=>(y(),S("button",{key:ce.id,class:Ue(["dh-btn-ghost",s.value===ce.id?"border-accent text-brandtext":""]),onClick:It=>s.value=ce.id},m(ce.label),11,Dp))),128))]),s.value==="overview"?(y(),tt(xc,{key:0})):s.value==="users"?(y(),tt(jd,{key:1})):s.value==="orgs"?(y(),tt(sp,{key:2})):s.value==="server"?(y(),tt(Qc,{key:3})):s.value==="pocketbase"?(y(),tt(Lc,{key:4})):s.value==="webapp"?(y(),tt(gu,{key:5})):s.value==="plugins"?(y(),tt(id,{key:6})):s.value==="api"?(y(),S(ne,{key:7},[Y(ue,{title:h(f)("api.groupPublic"),auth:h(f)("api.authNone"),endpoints:a},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupIdentity"),auth:h(f)("api.authBearer"),endpoints:l},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupCars"),auth:h(f)("api.authBearer"),endpoints:g},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupService"),auth:h(f)("api.authBearer"),endpoints:d},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupTechnical"),auth:h(f)("api.authBearer"),endpoints:b},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupParts"),auth:h(f)("api.authBearer"),endpoints:P},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupFuel"),auth:h(f)("api.authBearer"),endpoints:$},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupCharging"),auth:h(f)("api.authBearer"),endpoints:F},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupMaintenance"),auth:h(f)("api.authBearer"),endpoints:k},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupDocuments"),auth:h(f)("api.authBearer"),endpoints:O},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupReminders"),auth:h(f)("api.authBearer"),endpoints:E},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupAttachments"),auth:h(f)("api.authBearer"),endpoints:C,note:Up},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupProviders"),auth:h(f)("api.authBearer"),endpoints:I},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupIntegrations"),auth:h(f)("api.authBearer"),endpoints:j},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupOcpp"),auth:h(f)("api.authCharger"),endpoints:re},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupAccount"),auth:h(f)("api.authBearer"),endpoints:Ee},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupManagement"),auth:h(f)("api.authManager"),endpoints:Pe},null,8,["title","auth"]),Y(ue,{title:h(f)("api.groupSuperadmin"),auth:h(f)("api.authSuperadmin"),endpoints:Le},null,8,["title","auth"])],64)):B("",!0),!h(gs)&&s.value==="overview"?(y(),S("p",Ip,m(h(f)("app.standardUserNote")),1)):B("",!0)],64)):(y(),tt(uc,{key:1})),u("p",jp,m(h(f)("app.footer")),1)]))}};sl(Np).mount("#app"); diff --git a/API Server/internal/api/dist/assets/index-nQWOOvsA.css b/API Server/internal/api/dist/assets/index-nQWOOvsA.css new file mode 100644 index 0000000..7cbc29b --- /dev/null +++ b/API Server/internal/api/dist/assets/index-nQWOOvsA.css @@ -0,0 +1 @@ +/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial}}}@layer theme{:root,:host{--font-sans:var(--font-sans);--font-mono:var(--font-mono);--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-4xl:56rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--shadow-xs:var(--shadow-xs);--shadow-sm:var(--shadow-sm);--shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--radius-control:12px;--radius-card:18px;--radius-pill:999px}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.container{width:100%}@media(min-width:40rem){.container{max-width:40rem}}@media(min-width:48rem){.container{max-width:48rem}}@media(min-width:64rem){.container{max-width:64rem}}@media(min-width:80rem){.container{max-width:80rem}}@media(min-width:96rem){.container{max-width:96rem}}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-1\.5{margin-top:calc(var(--spacing) * 1.5)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mb-1\.5{margin-bottom:calc(var(--spacing) * 1.5)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-5{margin-bottom:calc(var(--spacing) * 5)}.ml-1{margin-left:var(--spacing)}.ml-1\.5{margin-left:calc(var(--spacing) * 1.5)}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline-flex{display:inline-flex}.table{display:table}.h-1\.5{height:calc(var(--spacing) * 1.5)}.h-4{height:calc(var(--spacing) * 4)}.h-7{height:calc(var(--spacing) * 7)}.h-full{height:100%}.\!w-auto{width:auto!important}.w-1\.5{width:calc(var(--spacing) * 1.5)}.w-4{width:calc(var(--spacing) * 4)}.w-auto{width:auto}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-sm{max-width:var(--container-sm)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-5{gap:calc(var(--spacing) * 5)}.gap-6{gap:calc(var(--spacing) * 6)}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded-control{border-radius:12px}.rounded-full{border-radius:3.40282e38px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-accent{border-color:var(--accent)}.border-subtle{border-color:var(--border-subtle)}.bg-current{background-color:currentColor}.bg-danger-soft{background-color:var(--danger-100)}.bg-info-soft{background-color:var(--info-100)}.bg-success-soft{background-color:var(--success-100)}.bg-sunken{background-color:var(--surface-sunken)}.bg-warning-soft{background-color:var(--warning-100)}.p-6{padding:calc(var(--spacing) * 6)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.\!py-1{padding-block:var(--spacing)!important}.py-2{padding-block:calc(var(--spacing) * 2)}.py-2\.5{padding-block:calc(var(--spacing) * 2.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-16{padding-block:calc(var(--spacing) * 16)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-24{padding-top:calc(var(--spacing) * 24)}.pb-16{padding-bottom:calc(var(--spacing) * 16)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.\!text-xs{font-size:var(--text-xs)!important;line-height:var(--tw-leading,var(--text-xs--line-height))!important}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[1\.35em\]{font-size:1.35em}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-extrabold{--tw-font-weight:var(--font-weight-extrabold);font-weight:var(--font-weight-extrabold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[-0\.02em\]{--tw-tracking:-.02em;letter-spacing:-.02em}.tracking-\[-0\.03em\]{--tw-tracking:-.03em;letter-spacing:-.03em}.whitespace-nowrap{white-space:nowrap}.text-body{color:var(--text-body)}.text-brand-400{color:var(--brand-400)}.text-brandtext{color:var(--text-brand)}.text-danger{color:var(--danger-600)}.text-info{color:var(--info-600)}.text-muted{color:var(--text-muted)}.text-strong{color:var(--text-strong)}.text-success{color:var(--success-600)}.text-warning{color:var(--warning-600)}.text-white{color:var(--color-white)}.italic{font-style:italic}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.select-none{-webkit-user-select:none;user-select:none}.first\:border-t-0:first-child{border-top-style:var(--tw-border-style);border-top-width:0}@media(hover:hover){.hover\:bg-sunken:hover{background-color:var(--surface-sunken)}}@media(min-width:40rem){.sm\:inline{display:inline}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&\>th\]\:px-5>th{padding-inline:calc(var(--spacing) * 5)}.\[\&\>th\]\:py-2\.5>th{padding-block:calc(var(--spacing) * 2.5)}.\[\&\>th\]\:font-medium>th{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}}:root{color-scheme:light;--brand-900:#0b1730;--brand-800:#0f1e3d;--brand-700:#1e40af;--brand-600:#2563eb;--brand-500:#3b82f6;--brand-400:#60a5fa;--brand-300:#93c5fd;--brand-200:#c7dbfb;--brand-100:#e8f0fd;--ink-900:#0f1e3d;--ink-700:#28374f;--ink-600:#3e4e68;--ink-500:#5c6b85;--ink-400:#7a8aa6;--ink-300:#b4bece;--ink-200:#d6deea;--ink-100:#e4e9f2;--ink-50:#eef2f8;--ink-25:#f7f9fc;--white:#fff;--success-600:#1f8a5b;--success-100:#e1f3ea;--warning-600:#d9822b;--warning-100:#fbeddd;--danger-600:#dc2a45;--danger-100:#fbe3e7;--info-600:#2563eb;--info-100:#e8f0fd;--surface-page:var(--ink-25);--surface-card:var(--white);--surface-sunken:var(--ink-50);--border-subtle:var(--ink-100);--border-default:var(--ink-200);--border-strong:var(--ink-300);--text-strong:var(--ink-900);--text-body:var(--ink-600);--text-muted:var(--ink-400);--text-brand:var(--brand-700);--accent:var(--brand-600);--accent-hover:var(--brand-700);--focus-ring:var(--brand-400);--shadow-xs:0 1px 2px #0f1e3d0f;--shadow-sm:0 1px 2px #0f1e3d0a, 0 2px 6px #0f1e3d0f;--shadow-md:0 1px 2px #0f1e3d0a, 0 12px 30px -12px #0f1e3d24;--font-display:"Archivo", system-ui, sans-serif;--font-sans:"Archivo", system-ui, sans-serif;--font-mono:"DM Mono", ui-monospace, "SF Mono", monospace}html.dark{color-scheme:dark;--success-100:#12352a;--warning-100:#3a2a16;--danger-100:#3a1620;--info-100:#122a4d;--surface-page:#0b1730;--surface-card:#13233f;--surface-sunken:#0f1e38;--border-subtle:#21324f;--border-default:#2c3f5e;--border-strong:#3c5173;--text-strong:#f2f6fc;--text-body:#b7c4d9;--text-muted:#7c8ca8;--text-brand:#93c5fd;--accent:#3b82f6;--accent-hover:#60a5fa;--focus-ring:#60a5fa;--success-600:#35b27a;--warning-600:#e0a03a;--danger-600:#e85c74;--shadow-xs:0 1px 2px #0006;--shadow-sm:0 1px 2px #0006, 0 2px 6px #0006;--shadow-md:0 1px 2px #00000059, 0 12px 30px -12px #0000008c}html,body,#app{height:100%}body{font-family:var(--font-sans);background:var(--surface-page);color:var(--text-body);-webkit-font-smoothing:antialiased;margin:0}.eyebrow{font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.16em;color:var(--text-muted);font-size:11px}.data{font-family:var(--font-mono);letter-spacing:.02em;font-variant-numeric:tabular-nums}.dh-btn-ghost{border-radius:var(--radius-control);border:1px solid var(--border-default);background:var(--surface-card);height:34px;color:var(--text-strong);font-family:var(--font-sans);cursor:pointer;justify-content:center;align-items:center;gap:8px;padding:0 12px;font-size:.8125rem;font-weight:600;transition:background-color .14s,border-color .14s;display:inline-flex}.dh-btn-ghost:hover{background:var(--surface-sunken);border-color:var(--border-strong)}.dh-btn-ghost:focus-visible{box-shadow:0 0 0 3px var(--focus-ring);outline:none}.dh-btn{border-radius:var(--radius-control);background:var(--accent);color:#fff;height:34px;font-family:var(--font-sans);cursor:pointer;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:0 14px;font-size:.8125rem;font-weight:600;transition:background-color .14s;display:inline-flex}.dh-btn:hover:not(:disabled){background:var(--accent-hover)}.dh-btn:focus-visible{box-shadow:0 0 0 3px var(--focus-ring);outline:none}.dh-btn:disabled,.dh-btn-ghost:disabled,.dh-btn-danger:disabled{opacity:.55;cursor:not-allowed}.dh-btn-danger{border-radius:var(--radius-control);border:1px solid var(--border-default);height:30px;color:var(--danger-600);font-family:var(--font-sans);cursor:pointer;background:0 0;justify-content:center;align-items:center;gap:6px;padding:0 10px;font-size:.75rem;font-weight:600;transition:background-color .14s,border-color .14s;display:inline-flex}.dh-btn-danger:hover:not(:disabled){background:var(--danger-100);border-color:var(--danger-600)}.dh-input,.dh-select{border-radius:var(--radius-control);border:1px solid var(--border-default);background:var(--surface-card);width:100%;height:36px;color:var(--text-strong);font-family:var(--font-sans);padding:0 10px;font-size:.8125rem;transition:border-color .14s}.dh-input::placeholder{color:var(--text-muted)}.dh-input:focus,.dh-select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-ring);outline:none}.dh-label{font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.16em;color:var(--text-muted);margin-bottom:5px;font-size:10px;display:block}.dh-pill{border-radius:var(--radius-pill);font-family:var(--font-mono);white-space:nowrap;align-items:center;gap:6px;padding:3px 9px;font-size:11px;font-weight:500;display:inline-flex}.dh-card{border:1px solid var(--border-subtle);background:var(--surface-card);border-radius:var(--radius-card);box-shadow:var(--shadow-sm)}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false} diff --git a/API Server/internal/api/dist/index.html b/API Server/internal/api/dist/index.html index f998109..fdbdb93 100644 --- a/API Server/internal/api/dist/index.html +++ b/API Server/internal/api/dist/index.html @@ -6,8 +6,8 @@ DriverVault · API Server - - + +
diff --git a/API Server/internal/plugins/builtin/ankersolix/ankersolix.go b/API Server/internal/plugins/builtin/ankersolix/ankersolix.go index c05819a..3b2f273 100644 --- a/API Server/internal/plugins/builtin/ankersolix/ankersolix.go +++ b/API Server/internal/plugins/builtin/ankersolix/ankersolix.go @@ -171,7 +171,7 @@ func (p *Plugin) Descriptor() plugins.Descriptor { Provider: "Anker Solix (V1 Smart EV Charger)", Version: "0.2.0", Kind: plugins.KindBuiltin, - Category: plugins.CategoryAPIsExternal, + Category: plugins.CategoryChargers, AuthType: plugins.AuthBasic, Capabilities: []plugins.Capability{ {ID: "chargers", Method: "POST", Endpoint: epStandaloneChargers, Description: "List EV chargers bound to the account."}, diff --git a/API Server/internal/plugins/builtin/greencell/greencell.go b/API Server/internal/plugins/builtin/greencell/greencell.go index 560499c..9db2a7b 100644 --- a/API Server/internal/plugins/builtin/greencell/greencell.go +++ b/API Server/internal/plugins/builtin/greencell/greencell.go @@ -169,7 +169,7 @@ func (p *Plugin) Descriptor() plugins.Descriptor { Provider: "Greencell (HabuDen EV charger)", Version: "1.0.0", Kind: plugins.KindBuiltin, - Category: plugins.CategoryAPIsExternal, + Category: plugins.CategoryChargers, AuthType: plugins.AuthBasic, Capabilities: []plugins.Capability{ {ID: "chargers", Method: "SUB", Endpoint: discoveryTopic, diff --git a/API Server/internal/plugins/builtin/toyota/toyota.go b/API Server/internal/plugins/builtin/toyota/toyota.go index 0cb381a..a02593c 100644 --- a/API Server/internal/plugins/builtin/toyota/toyota.go +++ b/API Server/internal/plugins/builtin/toyota/toyota.go @@ -124,7 +124,7 @@ func (p *Plugin) Descriptor() plugins.Descriptor { Provider: "Toyota Connected Europe", Version: "0.2.0", Kind: plugins.KindBuiltin, - Category: plugins.CategoryAPIsExternal, + Category: plugins.CategoryVehicles, AuthType: plugins.AuthOAuth2, Capabilities: []plugins.Capability{ {ID: "vehicles", Method: "GET", Endpoint: epVehicleGUID, Description: "List vehicles registered to the account."}, diff --git a/API Server/internal/plugins/plugin.go b/API Server/internal/plugins/plugin.go index fe73d9b..819a5f6 100644 --- a/API Server/internal/plugins/plugin.go +++ b/API Server/internal/plugins/plugin.go @@ -90,8 +90,10 @@ func (c *Capability) UnmarshalJSON(b []byte) error { } // Category groups a plugin under a tab in the admin panel. A plugin with an -// empty category is treated as CategoryAPIsExternal by the panel. +// empty or unrecognised category is treated as CategoryAPIsExternal by the panel. const ( + CategoryVehicles = "vehicles" // car manufacturers' connected-car services + CategoryChargers = "chargers" // EV chargers and charging hardware CategoryAPIsExternal = "apis-external" // remote HTTP APIs (external plugins) CategoryDrivesExternal = "drives-external" // remote file stores (FTP/SFTP) CategoryDrivesLocal = "drives-local" // drives on the host machine diff --git a/API Server/panel/src/App.vue b/API Server/panel/src/App.vue index b2b75a2..b8fbb21 100644 --- a/API Server/panel/src/App.vue +++ b/API Server/panel/src/App.vue @@ -3,6 +3,7 @@ import { ref, computed, onMounted } from "vue"; import { theme, toggleTheme } from "./theme"; import { t, lang, setLang, TRANSLATED_LANGUAGES } from "./i18n"; import { me, token, restore, logout, isManager, isSuperadmin } from "./api"; +import Logo from "./components/Logo.vue"; import LoginView from "./components/LoginView.vue"; import StatusCard from "./components/StatusCard.vue"; import PocketBaseCard from "./components/PocketBaseCard.vue"; @@ -67,13 +68,6 @@ function signOut() { section.value = "overview"; } -// Logo bar fills — flip for legibility on the dark shell. -const barFills = computed(() => - theme.value === "dark" - ? ["#60a5fa", "#93c5fd", "#ffffff"] - : ["var(--brand-700)", "var(--brand-500)", "var(--brand-400)"], -); - // The DriverVault REST surface, grouped by resource. Mirrors the routes // registered in internal/api/server.go. const publicApi = [ @@ -270,18 +264,8 @@ const superadminApi = [
- - - - DriverVault - - + + {{ t("app.apiServer") }}
diff --git a/API Server/panel/src/components/Logo.vue b/API Server/panel/src/components/Logo.vue new file mode 100644 index 0000000..2dffec9 --- /dev/null +++ b/API Server/panel/src/components/Logo.vue @@ -0,0 +1,30 @@ + + + diff --git a/API Server/panel/src/components/PluginsCard.vue b/API Server/panel/src/components/PluginsCard.vue index d1b3b3a..5ee7c39 100644 --- a/API Server/panel/src/components/PluginsCard.vue +++ b/API Server/panel/src/components/PluginsCard.vue @@ -1,5 +1,5 @@