node-red-contrib-knx-ultimate 6.3.32 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/CHANGELOG.md +128 -116
  2. package/README.md +4 -0
  3. package/nodes/knxUltimateAI.html +29 -11
  4. package/nodes/knxUltimateAI.js +1567 -237
  5. package/nodes/knxUltimateAIHomeAssistant.html +40 -0
  6. package/nodes/knxUltimateAIHomeAssistant.js +152 -0
  7. package/nodes/knxUltimateHueController.html +1 -1
  8. package/nodes/knxUltimateMatterBridge.html +2 -2
  9. package/nodes/knxUltimateMatterControllerDevice.html +12 -12
  10. package/nodes/locales/de/knxUltimateAI.html +4 -199
  11. package/nodes/locales/de/knxUltimateAI.json +11 -8
  12. package/nodes/locales/de/knxUltimateViewer.html +1 -1
  13. package/nodes/locales/en/knxUltimateAI.html +4 -203
  14. package/nodes/locales/en/knxUltimateAI.json +11 -8
  15. package/nodes/locales/en/knxUltimateViewer.html +1 -1
  16. package/nodes/locales/es/knxUltimateAI.html +4 -199
  17. package/nodes/locales/es/knxUltimateAI.json +11 -8
  18. package/nodes/locales/es/knxUltimateViewer.html +1 -1
  19. package/nodes/locales/fr/knxUltimateAI.html +4 -199
  20. package/nodes/locales/fr/knxUltimateAI.json +11 -8
  21. package/nodes/locales/fr/knxUltimateViewer.html +1 -1
  22. package/nodes/locales/it/knxUltimateAI.html +4 -203
  23. package/nodes/locales/it/knxUltimateAI.json +11 -8
  24. package/nodes/locales/it/knxUltimateViewer.html +1 -1
  25. package/nodes/locales/zh-CN/knxUltimateAI.html +4 -199
  26. package/nodes/locales/zh-CN/knxUltimateAI.json +11 -8
  27. package/nodes/locales/zh-CN/knxUltimateViewer.html +1 -1
  28. package/nodes/plugins/knxUltimate-cerebrum-runtime-plugin.js +79 -0
  29. package/nodes/plugins/knxUltimateAI-vue/assets/app.css +1 -1
  30. package/nodes/plugins/knxUltimateAI-vue/assets/app.js +13 -4
  31. package/nodes/plugins/knxUltimateAI-vue/index.html +1 -1
  32. package/nodes/plugins/knxUltimateViewer-vue/assets/app.js +2 -2
  33. package/nodes/utils/knxAiCamera.js +4 -4
  34. package/nodes/utils/knxAiCerebrum.js +406 -0
  35. package/nodes/utils/knxAiChatContext.js +4 -4
  36. package/nodes/utils/knxAiHomeMemory.js +543 -9
  37. package/nodes/utils/knxAiScheduler.js +2 -2
  38. package/nodes/utils/knxAiSemanticContext.js +5 -5
  39. package/package.json +4 -2
  40. package/resources/KNXAIChatAdapterMappings.js +35 -9
  41. package/resources/hueControllerProfiles.js +7614 -7622
  42. package/examples/KNX AI - Conversational Control with Confirmation.json +0 -395
  43. package/examples/KNX AI - Summary Anomalies and Ask.json +0 -226
  44. package/examples/KNX AI - Telegrambot Direct Chat.json +0 -198
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>KNX AI Vue Preview</title>
6
+ <title>Cerebrum Ultimate Vue Preview</title>
7
7
  <script type="module" crossorigin src="./assets/app.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="./assets/app.css">
9
9
  </head>
@@ -1,2 +1,2 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=s(r);fetch(r.href,i)}})();function Js(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const G={},pt=[],De=()=>{},Gn=()=>!1,fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),us=e=>e.startsWith("onUpdate:"),ie=Object.assign,Gs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},oi=Object.prototype.hasOwnProperty,W=(e,t)=>oi.call(e,t),M=Array.isArray,gt=e=>Bt(e)==="[object Map]",wt=e=>Bt(e)==="[object Set]",gn=e=>Bt(e)==="[object Date]",D=e=>typeof e=="function",Q=e=>typeof e=="string",Le=e=>typeof e=="symbol",X=e=>e!==null&&typeof e=="object",zn=e=>(X(e)||D(e))&&D(e.then)&&D(e.catch),Yn=Object.prototype.toString,Bt=e=>Yn.call(e),li=e=>Bt(e).slice(8,-1),Zn=e=>Bt(e)==="[object Object]",zs=e=>Q(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Nt=Js(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),as=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},ci=/-\w/g,Se=as(e=>e.replace(ci,t=>t.slice(1).toUpperCase())),fi=/\B([A-Z])/g,at=as(e=>e.replace(fi,"-$1").toLowerCase()),Qn=as(e=>e.charAt(0).toUpperCase()+e.slice(1)),Cs=as(e=>e?`on${Qn(e)}`:""),Ue=(e,t)=>!Object.is(e,t),Qt=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},er=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},ds=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let mn;const hs=()=>mn||(mn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ps(e){if(M(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=Q(n)?hi(n):ps(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(Q(e)||X(e))return e}const ui=/;(?![^(]*\))/g,ai=/:([^]+)/,di=/\/\*[^]*?\*\//g;function hi(e){const t={};return e.replace(di,"").split(ui).forEach(s=>{if(s){const n=s.split(ai);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Qe(e){let t="";if(Q(e))t=e;else if(M(e))for(let s=0;s<e.length;s++){const n=Qe(e[s]);n&&(t+=n+" ")}else if(X(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const pi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gi=Js(pi);function tr(e){return!!e||e===""}function mi(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=St(e[n],t[n]);return s}function St(e,t){if(e===t)return!0;let s=gn(e),n=gn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Le(e),n=Le(t),s||n)return e===t;if(s=M(e),n=M(t),s||n)return s&&n?mi(e,t):!1;if(s=X(e),n=X(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),f=t.hasOwnProperty(o);if(l&&!f||!l&&f||!St(e[o],t[o]))return!1}}return String(e)===String(t)}function Ys(e,t){return e.findIndex(s=>St(s,t))}const sr=e=>!!(e&&e.__v_isRef===!0),K=e=>Q(e)?e:e==null?"":M(e)||X(e)&&(e.toString===Yn||!D(e.toString))?sr(e)?K(e.value):JSON.stringify(e,nr,2):String(e),nr=(e,t)=>sr(t)?nr(e,t.value):gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[Ts(n,i)+" =>"]=r,s),{})}:wt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Ts(s))}:Le(t)?Ts(t):X(t)&&!M(t)&&!Zn(t)?String(t):t,Ts=(e,t="")=>{var s;return Le(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let se;class _i{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&&se&&(se.active?(this.parent=se,this.index=(se.scopes||(se.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){const n=this.scopes.slice();for(t=0,s=n.length;t<s;t++)n[t].pause()}for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes){const r=this.scopes.slice();for(t=0,s=r.length;t<s;t++)r[t].resume()}const n=this.effects.slice();for(t=0,s=n.length;t<s;t++)n[t].resume()}}run(t){if(this._active){const s=se;try{return se=this,t()}finally{se=s}}}on(){++this._on===1&&(this.prevScope=se,se=this)}off(){if(this._on>0&&--this._on===0){if(se===this)se=this.prevScope;else{let t=se;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;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(s=0,n=r.length;s<n;s++)r[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function bi(){return se}let z;const As=new WeakSet;class rr{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,se&&(se.active?se.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,As.has(this)&&(As.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||or(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_n(this),lr(this);const t=z,s=Ce;z=this,Ce=!0;try{return this.fn()}finally{cr(this),z=t,Ce=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)en(t);this.deps=this.depsTail=void 0,_n(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?As.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$s(this)&&this.run()}get dirty(){return $s(this)}}let ir=0,Mt,Rt;function or(e,t=!1){if(e.flags|=8,t){e.next=Rt,Rt=e;return}e.next=Mt,Mt=e}function Zs(){ir++}function Qs(){if(--ir>0)return;if(Rt){let t=Rt;for(Rt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Mt;){let t=Mt;for(Mt=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 lr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function cr(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),en(n),yi(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function $s(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Lt)||(e.globalVersion=Lt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$s(e))))return;e.flags|=2;const t=e.dep,s=z,n=Ce;z=e,Ce=!0;try{lr(e);const r=e.fn(e._value);(t.version===0||Ue(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{z=s,Ce=n,cr(e),e.flags&=-3}}function en(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)en(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function yi(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Ce=!0;const ur=[];function ke(){ur.push(Ce),Ce=!1}function qe(){const e=ur.pop();Ce=e===void 0?!0:e}function _n(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=z;z=void 0;try{t()}finally{z=s}}}let Lt=0;class vi{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 ar{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(!z||!Ce||z===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==z)s=this.activeLink=new vi(z,this),z.deps?(s.prevDep=z.depsTail,z.depsTail.nextDep=s,z.depsTail=s):z.deps=z.depsTail=s,dr(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=z.depsTail,s.nextDep=void 0,z.depsTail.nextDep=s,z.depsTail=s,z.deps===s&&(z.deps=n)}return s}trigger(t){this.version++,Lt++,this.notify(t)}notify(t){Zs();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Qs()}}}function dr(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)dr(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Hs=new WeakMap,ot=Symbol(""),js=Symbol(""),$t=Symbol("");function re(e,t,s){if(Ce&&z){let n=Hs.get(e);n||Hs.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new ar),r.map=n,r.key=s),r.track()}}function We(e,t,s,n,r,i){const o=Hs.get(e);if(!o){Lt++;return}const l=f=>{f&&f.trigger()};if(Zs(),t==="clear")o.forEach(l);else{const f=M(e),d=f&&zs(s);if(f&&s==="length"){const a=Number(n);o.forEach((p,A)=>{(A==="length"||A===$t||!Le(A)&&A>=a)&&l(p)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),d&&l(o.get($t)),t){case"add":f?d&&l(o.get("length")):(l(o.get(ot)),gt(e)&&l(o.get(js)));break;case"delete":f||(l(o.get(ot)),gt(e)&&l(o.get(js)));break;case"set":gt(e)&&l(o.get(ot));break}}Qs()}function dt(e){const t=q(e);return t===e?t:(re(t,"iterate",$t),Te(e)?t:t.map(Xe))}function gs(e){return re(e=q(e),"iterate",$t),e}function Re(e,t){return tt(e)?yt(lt(e)?Xe(t):t):Xe(t)}const xi={__proto__:null,[Symbol.iterator](){return Es(this,Symbol.iterator,e=>Re(this,e))},concat(...e){return dt(this).concat(...e.map(t=>M(t)?dt(t):t))},entries(){return Es(this,"entries",e=>(e[1]=Re(this,e[1]),e))},every(e,t){return He(this,"every",e,t,void 0,arguments)},filter(e,t){return He(this,"filter",e,t,s=>s.map(n=>Re(this,n)),arguments)},find(e,t){return He(this,"find",e,t,s=>Re(this,s),arguments)},findIndex(e,t){return He(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return He(this,"findLast",e,t,s=>Re(this,s),arguments)},findLastIndex(e,t){return He(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return He(this,"forEach",e,t,void 0,arguments)},includes(...e){return Os(this,"includes",e)},indexOf(...e){return Os(this,"indexOf",e)},join(e){return dt(this).join(e)},lastIndexOf(...e){return Os(this,"lastIndexOf",e)},map(e,t){return He(this,"map",e,t,void 0,arguments)},pop(){return Et(this,"pop")},push(...e){return Et(this,"push",e)},reduce(e,...t){return bn(this,"reduce",e,t)},reduceRight(e,...t){return bn(this,"reduceRight",e,t)},shift(){return Et(this,"shift")},some(e,t){return He(this,"some",e,t,void 0,arguments)},splice(...e){return Et(this,"splice",e)},toReversed(){return dt(this).toReversed()},toSorted(e){return dt(this).toSorted(e)},toSpliced(...e){return dt(this).toSpliced(...e)},unshift(...e){return Et(this,"unshift",e)},values(){return Es(this,"values",e=>Re(this,e))}};function Es(e,t,s){const n=gs(e),r=n[t]();return n!==e&&!Te(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=s(i.value)),i}),r}const wi=Array.prototype;function He(e,t,s,n,r,i){const o=gs(e),l=o!==e&&!Te(e),f=o[t];if(f!==wi[t]){const p=f.apply(e,i);return l?Xe(p):p}let d=s;o!==e&&(l?d=function(p,A){return s.call(this,Re(e,p),A,e)}:s.length>2&&(d=function(p,A){return s.call(this,p,A,e)}));const a=f.call(o,d,n);return l&&r?r(a):a}function bn(e,t,s,n){const r=gs(e),i=r!==e&&!Te(e);let o=s,l=!1;r!==e&&(i?(l=n.length===0,o=function(d,a,p){return l&&(l=!1,d=Re(e,d)),s.call(this,d,Re(e,a),p,e)}):s.length>3&&(o=function(d,a,p){return s.call(this,d,a,p,e)}));const f=r[t](o,...n);return l?Re(e,f):f}function Os(e,t,s){const n=q(e);re(n,"iterate",$t);const r=n[t](...s);return(r===-1||r===!1)&&nn(s[0])?(s[0]=q(s[0]),n[t](...s)):r}function Et(e,t,s=[]){ke(),Zs();const n=q(e)[t].apply(e,s);return Qs(),qe(),n}const Si=Js("__proto__,__v_isRef,__isVue"),hr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Le));function Ci(e){Le(e)||(e=String(e));const t=q(this);return re(t,"has",e),t.hasOwnProperty(e)}class pr{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?Fi:br:i?_r:mr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=M(t);if(!r){let f;if(o&&(f=xi[s]))return f;if(s==="hasOwnProperty")return Ci}const l=Reflect.get(t,s,ae(t)?t:n);if((Le(s)?hr.has(s):Si(s))||(r||re(t,"get",s),i))return l;if(ae(l)){const f=o&&zs(s)?l:l.value;return r&&X(f)?Us(f):f}return X(l)?r?Us(l):ms(l):l}}class gr extends pr{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];const o=M(t)&&zs(s);if(!this._isShallow){const d=tt(i);if(!Te(n)&&!tt(n)&&(i=q(i),n=q(n)),!o&&ae(i)&&!ae(n))return d||(i.value=n),!0}const l=o?Number(s)<t.length:W(t,s),f=Reflect.set(t,s,n,ae(t)?t:r);return t===q(r)&&f&&(l?Ue(n,i)&&We(t,"set",s,n):We(t,"add",s,n)),f}deleteProperty(t,s){const n=W(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&n&&We(t,"delete",s,void 0),r}has(t,s){const n=Reflect.has(t,s);return(!Le(s)||!hr.has(s))&&re(t,"has",s),n}ownKeys(t){return re(t,"iterate",M(t)?"length":ot),Reflect.ownKeys(t)}}class Ti extends pr{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Ai=new gr,Ei=new Ti,Oi=new gr(!0);const Ks=e=>e,Jt=e=>Reflect.getPrototypeOf(e);function Ii(e,t,s){return function(...n){const r=this.__v_raw,i=q(r),o=gt(i),l=e==="entries"||e===Symbol.iterator&&o,f=e==="keys"&&o,d=r[e](...n),a=s?Ks:t?yt:Xe;return!t&&re(i,"iterate",f?js:ot),ie(Object.create(d),{next(){const{value:p,done:A}=d.next();return A?{value:p,done:A}:{value:l?[a(p[0]),a(p[1])]:a(p),done:A}}})}}function Gt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Pi(e,t){const s={get(r){const i=this.__v_raw,o=q(i),l=q(r);e||(Ue(r,l)&&re(o,"get",r),re(o,"get",l));const{has:f}=Jt(o),d=t?Ks:e?yt:Xe;if(f.call(o,r))return d(i.get(r));if(f.call(o,l))return d(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&re(q(r),"iterate",ot),r.size},has(r){const i=this.__v_raw,o=q(i),l=q(r);return e||(Ue(r,l)&&re(o,"has",r),re(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,f=q(l),d=t?Ks:e?yt:Xe;return!e&&re(f,"iterate",ot),l.forEach((a,p)=>r.call(i,d(a),d(p),o))}};return ie(s,e?{add:Gt("add"),set:Gt("set"),delete:Gt("delete"),clear:Gt("clear")}:{add(r){const i=q(this),o=Jt(i),l=q(r),f=!t&&!Te(r)&&!tt(r)?l:r;return o.has.call(i,f)||Ue(r,f)&&o.has.call(i,r)||Ue(l,f)&&o.has.call(i,l)||(i.add(f),We(i,"add",f,f)),this},set(r,i){!t&&!Te(i)&&!tt(i)&&(i=q(i));const o=q(this),{has:l,get:f}=Jt(o);let d=l.call(o,r);d||(r=q(r),d=l.call(o,r));const a=f.call(o,r);return o.set(r,i),d?Ue(i,a)&&We(o,"set",r,i):We(o,"add",r,i),this},delete(r){const i=q(this),{has:o,get:l}=Jt(i);let f=o.call(i,r);f||(r=q(r),f=o.call(i,r)),l&&l.call(i,r);const d=i.delete(r);return f&&We(i,"delete",r,void 0),d},clear(){const r=q(this),i=r.size!==0,o=r.clear();return i&&We(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Ii(r,e,t)}),s}function tn(e,t){const s=Pi(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(W(s,r)&&r in n?s:n,r,i)}const Ni={get:tn(!1,!1)},Mi={get:tn(!1,!0)},Ri={get:tn(!0,!1)};const mr=new WeakMap,_r=new WeakMap,br=new WeakMap,Fi=new WeakMap;function Vi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ms(e){return tt(e)?e:sn(e,!1,Ai,Ni,mr)}function Di(e){return sn(e,!1,Oi,Mi,_r)}function Us(e){return sn(e,!0,Ei,Ri,br)}function sn(e,t,s,n,r){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const o=Vi(li(e));if(o===0)return e;const l=new Proxy(e,o===2?n:s);return r.set(e,l),l}function lt(e){return tt(e)?lt(e.__v_raw):!!(e&&e.__v_isReactive)}function tt(e){return!!(e&&e.__v_isReadonly)}function Te(e){return!!(e&&e.__v_isShallow)}function nn(e){return e?!!e.__v_raw:!1}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function Li(e){return!W(e,"__v_skip")&&Object.isExtensible(e)&&er(e,"__v_skip",!0),e}const Xe=e=>X(e)?ms(e):e,yt=e=>X(e)?Us(e):e;function ae(e){return e?e.__v_isRef===!0:!1}function $i(e){return ae(e)?e.value:e}const Hi={get:(e,t,s)=>t==="__v_raw"?e:$i(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return ae(r)&&!ae(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function yr(e){return lt(e)?e:new Proxy(e,Hi)}class ji{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new ar(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Lt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&z!==this)return or(this,!0),!0}get value(){const t=this.dep.track();return fr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ki(e,t,s=!1){let n,r;return D(e)?n=e:(n=e.get,r=e.set),new ji(n,r,s)}const zt={},ss=new WeakMap;let it;function Ui(e,t=!1,s=it){if(s){let n=ss.get(s);n||ss.set(s,n=[]),n.push(e)}}function Wi(e,t,s=G){const{immediate:n,deep:r,once:i,scheduler:o,augmentJob:l,call:f}=s,d=P=>r?P:Te(P)||r===!1||r===0?Be(P,1):Be(P);let a,p,A,O,U=!1,F=!1;if(ae(e)?(p=()=>e.value,U=Te(e)):lt(e)?(p=()=>d(e),U=!0):M(e)?(F=!0,U=e.some(P=>lt(P)||Te(P)),p=()=>e.map(P=>{if(ae(P))return P.value;if(lt(P))return d(P);if(D(P))return f?f(P,2):P()})):D(e)?t?p=f?()=>f(e,2):e:p=()=>{if(A){ke();try{A()}finally{qe()}}const P=it;it=a;try{return f?f(e,3,[O]):e(O)}finally{it=P}}:p=De,t&&r){const P=p,Z=r===!0?1/0:r;p=()=>Be(P(),Z)}const Y=bi(),B=()=>{a.stop(),Y&&Y.active&&Gs(Y.effects,a)};if(i&&t){const P=t;t=(...Z)=>{const ye=P(...Z);return B(),ye}}let $=F?new Array(e.length).fill(zt):zt;const j=P=>{if(!(!(a.flags&1)||!a.dirty&&!P))if(t){const Z=a.run();if(P||r||U||(F?Z.some((ye,ge)=>Ue(ye,$[ge])):Ue(Z,$))){A&&A();const ye=it;it=a;try{const ge=[Z,$===zt?void 0:F&&$[0]===zt?[]:$,O];$=Z,f?f(t,3,ge):t(...ge)}finally{it=ye}}}else a.run()};return l&&l(j),a=new rr(p),a.scheduler=o?()=>o(j,!1):j,O=P=>Ui(P,!1,a),A=a.onStop=()=>{const P=ss.get(a);if(P){if(f)f(P,4);else for(const Z of P)Z();ss.delete(a)}},t?n?j(!0):$=a.run():o?o(j.bind(null,!0),!0):a.run(),B.pause=a.pause.bind(a),B.resume=a.resume.bind(a),B.stop=B,B}function Be(e,t=1/0,s){if(t<=0||!X(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ae(e))Be(e.value,t,s);else if(M(e))for(let n=0;n<e.length;n++)Be(e[n],t,s);else if(wt(e)||gt(e))e.forEach(n=>{Be(n,t,s)});else if(Zn(e)){for(const n in e)Be(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Be(e[n],t,s)}return e}function kt(e,t,s,n){try{return n?e(...n):e()}catch(r){_s(r,t,s)}}function Ae(e,t,s,n){if(D(e)){const r=kt(e,t,s,n);return r&&zn(r)&&r.catch(i=>{_s(i,t,s)}),r}if(M(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Ae(e[i],t,s,n));return r}}function _s(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||G;if(t){let l=t.parent;const f=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const a=l.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](e,f,d)===!1)return}l=l.parent}if(i){ke(),kt(i,null,10,[e,f,d]),qe();return}}Bi(e,s,r,n,o)}function Bi(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const fe=[];let Me=-1;const mt=[];let Ze=null,ht=0;const vr=Promise.resolve();let ns=null;function xr(e){const t=ns||vr;return e?t.then(this?e.bind(this):e):t}function ki(e){let t=Me+1,s=fe.length;for(;t<s;){const n=t+s>>>1,r=fe[n],i=Ht(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function rn(e){if(!(e.flags&1)){const t=Ht(e),s=fe[fe.length-1];!s||!(e.flags&2)&&t>=Ht(s)?fe.push(e):fe.splice(ki(t),0,e),e.flags|=1,wr()}}function wr(){ns||(ns=vr.then(Cr))}function qi(e){if(!M(e))Ze&&e.id===-1?Ze.splice(ht+1,0,e):e.flags&1||(mt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)mt.push(e[t]);wr()}function yn(e,t,s=Me+1){for(;s<fe.length;s++){const n=fe[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;fe.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Sr(e){if(mt.length){const t=[...new Set(mt)].sort((s,n)=>Ht(s)-Ht(n));if(mt.length=0,Ze){for(let s=0;s<t.length;s++)Ze.push(t[s]);return}for(Ze=t,ht=0;ht<Ze.length;ht++){const s=Ze[ht];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Ze=null,ht=0}}const Ht=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Cr(e){try{for(Me=0;Me<fe.length;Me++){const t=fe[Me];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),kt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Me<fe.length;Me++){const t=fe[Me];t&&(t.flags&=-2)}Me=-1,fe.length=0,Sr(),ns=null,(fe.length||mt.length)&&Cr()}}let ve=null,Tr=null;function rs(e){const t=ve;return ve=e,Tr=e&&e.type.__scopeId||null,t}function Xi(e,t=ve,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&Pn(-1);const i=rs(t),o=ct.length;let l;try{l=e(...r)}finally{for(let f=ct.length;f>o;f--)Yr();rs(i),n._d&&Pn(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function Is(e,t){if(ve===null)return e;const s=ws(ve),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,f=G]=t[r];i&&(D(i)&&(i={mounted:i,updated:i}),i.deep&&Be(o),n.push({dir:i,instance:s,value:o,oldValue:void 0,arg:l,modifiers:f}))}return e}function nt(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let f=l.dir[n];f&&(ke(),Ae(f,s,8,[e.el,l,e,t]),qe())}}function Ji(e,t){if(ue){let s=ue.provides;const n=ue.parent&&ue.parent.provides;n===s&&(s=ue.provides=Object.create(n)),s[e]=t}}function es(e,t,s=!1){const n=qo();if(n||bt){let r=bt?bt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&D(t)?t.call(n&&n.proxy):t}}const Gi=Symbol.for("v-scx"),zi=()=>es(Gi);function _t(e,t,s){return Ar(e,t,s)}function Ar(e,t,s=G){const{immediate:n,deep:r,flush:i,once:o}=s,l=ie({},s),f=t&&n||!t&&i!=="post";let d;if(Ut){if(i==="sync"){const O=zi();d=O.__watcherHandles||(O.__watcherHandles=[])}else if(!f){const O=()=>{};return O.stop=De,O.resume=De,O.pause=De,O}}const a=ue;l.call=(O,U,F)=>Ae(O,a,U,F);let p=!1;i==="post"?l.scheduler=O=>{pe(O,a&&a.suspense)}:i!=="sync"&&(p=!0,l.scheduler=(O,U)=>{U?O():rn(O)}),l.augmentJob=O=>{t&&(O.flags|=4),p&&(O.flags|=2,a&&(O.id=a.uid,O.i=a))};const A=Wi(e,t,l);return Ut&&(d?d.push(A):f&&A()),A}function Yi(e,t,s){const n=this.proxy,r=Q(e)?e.includes(".")?Er(n,e):()=>n[e]:e.bind(n,n);let i;D(t)?i=t:(i=t.handler,s=t);const o=qt(this),l=Ar(r,i.bind(n),s);return o(),l}function Er(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const Zi=Symbol("_vte"),bs=e=>e.__isTeleport,Ps=Symbol("_leaveCb");function Qi(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==ut){t=s;break}}return t}function Or(e){if(!ln(e))return bs(e.type)&&e.children?Qi(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&D(s.default))return s.default()}}function on(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const s=e.component.subTree;on(bs(s.type)&&Or(s)||s,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ir(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function vn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const is=new WeakMap;function Ft(e,t,s,n,r=!1){if(M(e)){e.forEach((F,Y)=>Ft(F,t&&(M(t)?t[Y]:t),s,n,r));return}if(Vt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Ft(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?ws(n.component):n.el,o=r?null:i,{i:l,r:f}=e,d=t&&t.r,a=l.refs===G?l.refs={}:l.refs,p=l.setupState,A=q(p),O=p===G?Gn:F=>vn(a,F)?!1:W(A,F),U=(F,Y)=>!(Y&&vn(a,Y));if(d!=null&&d!==f){if(xn(t),Q(d))a[d]=null,O(d)&&(p[d]=null);else if(ae(d)){const F=t;U(d,F.k)&&(d.value=null),F.k&&(a[F.k]=null)}}if(D(f))kt(f,l,12,[o,a]);else{const F=Q(f),Y=ae(f);if(F||Y){const B=()=>{if(e.f){const $=F?O(f)?p[f]:a[f]:U()||!e.k?f.value:a[e.k];if(r)M($)&&Gs($,i);else if(M($))$.includes(i)||$.push(i);else if(F)a[f]=[i],O(f)&&(p[f]=a[f]);else{const j=[i];U(f,e.k)&&(f.value=j),e.k&&(a[e.k]=j)}}else F?(a[f]=o,O(f)&&(p[f]=o)):Y&&(U(f,e.k)&&(f.value=o),e.k&&(a[e.k]=o))};if(o){const $=()=>{B(),is.delete(e)};$.id=-1,is.set(e,$),pe($,s)}else xn(e),B()}}}function xn(e){const t=is.get(e);t&&(t.flags|=8,is.delete(e))}hs().requestIdleCallback;hs().cancelIdleCallback;const Vt=e=>!!e.type.__asyncLoader,ln=e=>e.type.__isKeepAlive;function eo(e,t){Pr(e,"a",t)}function to(e,t){Pr(e,"da",t)}function Pr(e,t,s=ue){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ys(t,n,s),s){let r=s.parent;for(;r&&r.parent;)ln(r.parent.vnode)&&so(n,t,s,r),r=r.parent}}function so(e,t,s,n){const r=ys(t,e,n,!0);Rr(()=>{Gs(n[t],r)},s)}function ys(e,t,s=ue,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ke();const l=qt(s),f=Ae(t,s,e,o);return l(),qe(),f});return n?r.unshift(i):r.push(i),i}}const Je=e=>(t,s=ue)=>{(!Ut||e==="sp")&&ys(e,(...n)=>t(...n),s)},no=Je("bm"),Nr=Je("m"),ro=Je("bu"),io=Je("u"),Mr=Je("bum"),Rr=Je("um"),oo=Je("sp"),lo=Je("rtg"),co=Je("rtc");function fo(e,t=ue){ys("ec",e,t)}const uo=Symbol.for("v-ndc");function Yt(e,t,s,n){let r;const i=s,o=M(e);if(o||Q(e)){const l=o&&lt(e);let f=!1,d=!1;l&&(f=!Te(e),d=tt(e),e=gs(e)),r=new Array(e.length);for(let a=0,p=e.length;a<p;a++)r[a]=t(f?d?yt(Xe(e[a])):Xe(e[a]):e[a],a,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(X(e))if(e[Symbol.iterator])r=Array.from(e,(l,f)=>t(l,f,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let f=0,d=l.length;f<d;f++){const a=l[f];r[f]=t(e[a],a,f,i)}}else r=[];return r}const Ws=e=>e?ei(e)?ws(e):Ws(e.parent):null,Dt=ie(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=>Ws(e.parent),$root:e=>Ws(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Vr(e),$forceUpdate:e=>e.f||(e.f=()=>{rn(e.update)}),$nextTick:e=>e.n||(e.n=xr.bind(e.proxy)),$watch:e=>Yi.bind(e)}),Ns=(e,t)=>e!==G&&!e.__isScriptSetup&&W(e,t),ao={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:l,appContext:f}=e;if(t[0]!=="$"){const A=o[t];if(A!==void 0)switch(A){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(Ns(n,t))return o[t]=1,n[t];if(r!==G&&W(r,t))return o[t]=2,r[t];if(W(i,t))return o[t]=3,i[t];if(s!==G&&W(s,t))return o[t]=4,s[t];Bs&&(o[t]=0)}}const d=Dt[t];let a,p;if(d)return t==="$attrs"&&re(e.attrs,"get",""),d(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(s!==G&&W(s,t))return o[t]=4,s[t];if(p=f.config.globalProperties,W(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return Ns(r,t)?(r[t]=s,!0):n!==G&&W(n,t)?(n[t]=s,!0):W(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:i,type:o}},l){let f;return!!(s[l]||e!==G&&l[0]!=="$"&&W(e,l)||Ns(t,l)||W(i,l)||W(n,l)||W(Dt,l)||W(r.config.globalProperties,l)||(f=o.__cssModules)&&f[l])},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 wn(e){return M(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Bs=!0;function ho(e){const t=Vr(e),s=e.proxy,n=e.ctx;Bs=!1,t.beforeCreate&&Sn(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:f,inject:d,created:a,beforeMount:p,mounted:A,beforeUpdate:O,updated:U,activated:F,deactivated:Y,beforeDestroy:B,beforeUnmount:$,destroyed:j,unmounted:P,render:Z,renderTracked:ye,renderTriggered:ge,errorCaptured:ne,serverPrefetch:st,expose:xe,inheritAttrs:$e,components:Ge,directives:ze,filters:E}=t;if(d&&po(d,n,null),o)for(const L in o){const V=o[L];D(V)&&(n[L]=V.bind(s))}if(r){const L=r.call(s,s);X(L)&&(e.data=ms(L))}if(Bs=!0,i)for(const L in i){const V=i[L],de=D(V)?V.bind(s,s):D(V.get)?V.get.bind(s,s):De,he=!D(V)&&D(V.set)?V.set.bind(s):De,we=Ye({get:de,set:he});Object.defineProperty(n,L,{enumerable:!0,configurable:!0,get:()=>we.value,set:Ee=>we.value=Ee})}if(l)for(const L in l)Fr(l[L],n,s,L);if(f){const L=D(f)?f.call(s):f;Reflect.ownKeys(L).forEach(V=>{Ji(V,L[V])})}a&&Sn(a,e,"c");function y(L,V){M(V)?V.forEach(de=>L(de.bind(s))):V&&L(V.bind(s))}if(y(no,p),y(Nr,A),y(ro,O),y(io,U),y(eo,F),y(to,Y),y(fo,ne),y(co,ye),y(lo,ge),y(Mr,$),y(Rr,P),y(oo,st),M(xe))if(xe.length){const L=e.exposed||(e.exposed={});xe.forEach(V=>{Object.defineProperty(L,V,{get:()=>s[V],set:de=>s[V]=de,enumerable:!0})})}else e.exposed||(e.exposed={});Z&&e.render===De&&(e.render=Z),$e!=null&&(e.inheritAttrs=$e),Ge&&(e.components=Ge),ze&&(e.directives=ze),st&&Ir(e)}function po(e,t,s=De){M(e)&&(e=ks(e));for(const n in e){const r=e[n];let i;X(r)?"default"in r?i=es(r.from||n,r.default,!0):i=es(r.from||n):i=es(r),ae(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function Sn(e,t,s){Ae(M(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Fr(e,t,s,n){let r=n.includes(".")?Er(s,n):()=>s[n];if(Q(e)){const i=t[e];D(i)&&_t(r,i)}else if(D(e))_t(r,e.bind(s));else if(X(e))if(M(e))e.forEach(i=>Fr(i,t,s,n));else{const i=D(e.handler)?e.handler.bind(s):t[e.handler];D(i)&&_t(r,i,e)}}function Vr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let f;return l?f=l:!r.length&&!s&&!n?f=t:(f={},r.length&&r.forEach(d=>os(f,d,o,!0)),os(f,t,o)),X(t)&&i.set(t,f),f}function os(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&os(e,i,s,!0),r&&r.forEach(o=>os(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=go[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const go={data:Cn,props:Tn,emits:Tn,methods:It,computed:It,beforeCreate:ce,created:ce,beforeMount:ce,mounted:ce,beforeUpdate:ce,updated:ce,beforeDestroy:ce,beforeUnmount:ce,destroyed:ce,unmounted:ce,activated:ce,deactivated:ce,errorCaptured:ce,serverPrefetch:ce,components:It,directives:It,watch:_o,provide:Cn,inject:mo};function Cn(e,t){return t?e?function(){return ie(D(e)?e.call(this,this):e,D(t)?t.call(this,this):t)}:t:e}function mo(e,t){return It(ks(e),ks(t))}function ks(e){if(M(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function ce(e,t){return e?[...new Set([].concat(e,t))]:t}function It(e,t){return e?ie(Object.create(null),e,t):t}function Tn(e,t){return e?M(e)&&M(t)?[...new Set([...e,...t])]:ie(Object.create(null),wn(e),wn(t??{})):t}function _o(e,t){if(!e)return t;if(!t)return e;const s=ie(Object.create(null),e);for(const n in t)s[n]=ce(e[n],t[n]);return s}function Dr(){return{app:null,config:{isNativeTag:Gn,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let bo=0;function yo(e,t){return function(n,r=null){D(n)||(n=ie({},n)),r!=null&&!X(r)&&(r=null);const i=Dr(),o=new WeakSet,l=[];let f=!1;const d=i.app={_uid:bo++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Zo,get config(){return i.config},set config(a){},use(a,...p){return o.has(a)||(a&&D(a.install)?(o.add(a),a.install(d,...p)):D(a)&&(o.add(a),a(d,...p))),d},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),d},component(a,p){return p?(i.components[a]=p,d):i.components[a]},directive(a,p){return p?(i.directives[a]=p,d):i.directives[a]},mount(a,p,A){if(!f){const O=d._ceVNode||ft(n,r);return O.appContext=i,A===!0?A="svg":A===!1&&(A=void 0),e(O,a,A),f=!0,d._container=a,a.__vue_app__=d,ws(O.component)}},onUnmount(a){l.push(a)},unmount(){f&&(Ae(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(a,p){return i.provides[a]=p,d},runWithContext(a){const p=bt;bt=d;try{return a()}finally{bt=p}}};return d}}let bt=null;const vo=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Se(t)}Modifiers`]||e[`${at(t)}Modifiers`];function xo(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||G;let r=s;const i=t.startsWith("update:"),o=i&&vo(n,t.slice(7));o&&(o.trim&&(r=s.map(a=>Q(a)?a.trim():a)),o.number&&(r=s.map(ds)));let l,f=n[l=Cs(t)]||n[l=Cs(Se(t))];!f&&i&&(f=n[l=Cs(at(t))]),f&&Ae(f,e,6,r);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ae(d,e,6,r)}}const wo=new WeakMap;function Lr(e,t,s=!1){const n=s?wo:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!D(e)){const f=d=>{const a=Lr(d,t,!0);a&&(l=!0,ie(o,a))};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!l?(X(e)&&n.set(e,null),null):(M(i)?i.forEach(f=>o[f]=null):ie(o,i),X(e)&&n.set(e,o),o)}function vs(e,t){return!e||!fs(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),W(e,t[0].toLowerCase()+t.slice(1))||W(e,at(t))||W(e,t))}function An(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:f,render:d,renderCache:a,props:p,data:A,setupState:O,ctx:U,inheritAttrs:F}=e,Y=rs(e);let B,$;try{if(s.shapeFlag&4){const P=r||n,Z=P;B=Fe(d.call(Z,P,a,p,O,A,U)),$=l}else{const P=t;B=Fe(P.length>1?P(p,{attrs:l,slots:o,emit:f}):P(p,null)),$=t.props?l:So(l)}}catch(P){ct.length=0,_s(P,e,1),B=ft(ut)}let j=B;if($&&F!==!1){const P=Object.keys($),{shapeFlag:Z}=j;P.length&&Z&7&&(i&&P.some(us)&&($=Co($,i)),j=vt(j,$,!1,!0))}if(s.dirs&&(j=vt(j,null,!1,!0),j.dirs=j.dirs?j.dirs.concat(s.dirs):s.dirs),s.transition){const P=bs(j.type)&&Or(j)||j;on(P,s.transition)}return B=j,rs(Y),B}const So=e=>{let t;for(const s in e)(s==="class"||s==="style"||fs(s))&&((t||(t={}))[s]=e[s]);return t},Co=(e,t)=>{const s={};for(const n in e)(!us(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function To(e,t,s){const{props:n,children:r,component:i}=e,{props:o,children:l,patchFlag:f}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&f>=0){if(f&1024)return!0;if(f&16)return n?En(n,o,d):!!o;if(f&8){const a=t.dynamicProps;for(let p=0;p<a.length;p++){const A=a[p];if($r(o,n,A)&&!vs(d,A))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?En(n,o,d):!0:!!o;return!1}function En(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if($r(t,e,i)&&!vs(s,i))return!0}return!1}function $r(e,t,s){const n=e[s],r=t[s];return s==="style"&&X(n)&&X(r)?!St(n,r):n!==r}function Ao({vnode:e,parent:t,suspense:s},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=n,e=r),r===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const Hr={},jr=()=>Object.create(Hr),Kr=e=>Object.getPrototypeOf(e)===Hr;function Eo(e,t,s,n=!1){const r={},i=jr();e.propsDefaults=Object.create(null),Ur(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=n?r:Di(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Oo(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=q(r),[f]=e.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let p=0;p<a.length;p++){let A=a[p];if(vs(e.emitsOptions,A))continue;const O=t[A];if(f)if(W(i,A))O!==i[A]&&(i[A]=O,d=!0);else{const U=Se(A);r[U]=qs(f,l,U,O,e,!1)}else O!==i[A]&&(i[A]=O,d=!0)}}}else{Ur(e,t,r,i)&&(d=!0);let a;for(const p in l)(!t||!W(t,p)&&((a=at(p))===p||!W(t,a)))&&(f?s&&(s[p]!==void 0||s[a]!==void 0)&&(r[p]=qs(f,l,p,void 0,e,!0)):delete r[p]);if(i!==l)for(const p in i)(!t||!W(t,p))&&(delete i[p],d=!0)}d&&We(e.attrs,"set","")}function Ur(e,t,s,n){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let f in t){if(Nt(f))continue;const d=t[f];let a;r&&W(r,a=Se(f))?!i||!i.includes(a)?s[a]=d:(l||(l={}))[a]=d:vs(e.emitsOptions,f)||(!(f in n)||d!==n[f])&&(n[f]=d,o=!0)}if(i){const f=q(s),d=l||G;for(let a=0;a<i.length;a++){const p=i[a];s[p]=qs(r,f,p,d[p],e,!W(d,p))}}return o}function qs(e,t,s,n,r,i){const o=e[s];if(o!=null){const l=W(o,"default");if(l&&n===void 0){const f=o.default;if(o.type!==Function&&!o.skipFactory&&D(f)){const{propsDefaults:d}=r;if(s in d)n=d[s];else{const a=qt(r);n=d[s]=f.call(null,t),a()}}else n=f;r.ce&&r.ce._setProp(s,n)}o[0]&&(i&&!l?n=!1:o[1]&&(n===""||n===at(s))&&(n=!0))}return n}const Io=new WeakMap;function Wr(e,t,s=!1){const n=s?Io:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,o={},l=[];let f=!1;if(!D(e)){const a=p=>{f=!0;const[A,O]=Wr(p,t,!0);ie(o,A),O&&l.push(...O)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!f)return X(e)&&n.set(e,pt),pt;if(M(i))for(let a=0;a<i.length;a++){const p=Se(i[a]);On(p)&&(o[p]=G)}else if(i)for(const a in i){const p=Se(a);if(On(p)){const A=i[a],O=o[p]=M(A)||D(A)?{type:A}:ie({},A),U=O.type;let F=!1,Y=!0;if(M(U))for(let B=0;B<U.length;++B){const $=U[B],j=D($)&&$.name;if(j==="Boolean"){F=!0;break}else j==="String"&&(Y=!1)}else F=D(U)&&U.name==="Boolean";O[0]=F,O[1]=Y,(F||W(O,"default"))&&l.push(p)}}const d=[o,l];return X(e)&&n.set(e,d),d}function On(e){return e[0]!=="$"&&!Nt(e)}const cn=e=>e==="_"||e==="_ctx"||e==="$stable",fn=e=>M(e)?e.map(Fe):[Fe(e)],Po=(e,t,s)=>{if(t._n)return t;const n=Xi((...r)=>fn(t(...r)),s);return n._c=!1,n},Br=(e,t,s)=>{const n=e._ctx;for(const r in e){if(cn(r))continue;const i=e[r];if(D(i))t[r]=Po(r,i,n);else if(i!=null){const o=fn(i);t[r]=()=>o}}},kr=(e,t)=>{const s=fn(t);e.slots.default=()=>s},qr=(e,t,s)=>{for(const n in t)(s||!cn(n))&&(e[n]=t[n])},No=(e,t,s)=>{const n=e.slots=jr();if(e.vnode.shapeFlag&32){const r=t._;r?(qr(n,t,s),s&&er(n,"_",r,!0)):Br(t,n)}else t&&kr(e,t)},Mo=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,o=G;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:qr(r,t,s):(i=!t.$stable,Br(t,r)),o=t}else t&&(kr(e,t),o={default:1});if(i)for(const l in r)!cn(l)&&o[l]==null&&delete r[l]},pe=Lo;function Ro(e){return Fo(e)}function Fo(e,t){const s=hs();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:f,setText:d,setElementText:a,parentNode:p,nextSibling:A,setScopeId:O=De,insertStaticContent:U}=e,F=(c,u,h,b=null,_=null,g=null,C=void 0,w=null,x=!!u.dynamicChildren)=>{if(c===u)return;c&&!Ot(c,u)&&(b=Xt(c),Ee(c,_,g,!0),c=null),u.patchFlag===-2&&(x=!1,u.dynamicChildren=null);const{type:m,ref:N,shapeFlag:T}=u;switch(m){case xs:Y(c,u,h,b);break;case ut:B(c,u,h,b);break;case Rs:c==null&&$(u,h,b,C);break;case _e:Ge(c,u,h,b,_,g,C,w,x);break;default:T&1?Z(c,u,h,b,_,g,C,w,x):T&6?ze(c,u,h,b,_,g,C,w,x):(T&64||T&128)&&m.process(c,u,h,b,_,g,C,w,x,Tt)}N!=null&&_?Ft(N,c&&c.ref,g,u||c,!u):N==null&&c&&c.ref!=null&&Ft(c.ref,null,g,c,!0)},Y=(c,u,h,b)=>{if(c==null)n(u.el=l(u.children),h,b);else{const _=u.el=c.el;u.children!==c.children&&d(_,u.children)}},B=(c,u,h,b)=>{c==null?n(u.el=f(u.children||""),h,b):u.el=c.el},$=(c,u,h,b)=>{[c.el,c.anchor]=U(c.children,u,h,b,c.el,c.anchor)},j=({el:c,anchor:u},h,b)=>{let _;for(;c&&c!==u;)_=A(c),n(c,h,b),c=_;n(u,h,b)},P=({el:c,anchor:u})=>{let h;for(;c&&c!==u;)h=A(c),r(c),c=h;r(u)},Z=(c,u,h,b,_,g,C,w,x)=>{if(u.type==="svg"?C="svg":u.type==="math"&&(C="mathml"),c==null)ye(u,h,b,_,g,C,w,x);else{const m=c.el&&c.el._isVueCE?c.el:null;try{m&&m._beginPatch(),st(c,u,_,g,C,w,x)}finally{m&&m._endPatch()}}},ye=(c,u,h,b,_,g,C,w)=>{let x,m;const{props:N,shapeFlag:T,transition:I,dirs:R}=c;if(x=c.el=o(c.type,g,N&&N.is,N),T&8?a(x,c.children):T&16&&ne(c.children,x,null,b,_,Ms(c,g),C,w),R&&nt(c,null,b,"created"),ge(x,c,c.scopeId,C,b),N){for(const J in N)J!=="value"&&!Nt(J)&&i(x,J,null,N[J],g,b);"value"in N&&i(x,"value",null,N.value,g),(m=N.onVnodeBeforeMount)&&Ne(m,b,c)}R&&nt(c,null,b,"beforeMount");const H=Vo(_,I);H&&I.beforeEnter(x),n(x,u,h),((m=N&&N.onVnodeMounted)||H||R)&&pe(()=>{m&&Ne(m,b,c),H&&I.enter(x),R&&nt(c,null,b,"mounted")},_)},ge=(c,u,h,b,_)=>{if(h&&O(c,h),b)for(let g=0;g<b.length;g++)O(c,b[g]);if(_){let g=_.subTree;if(u===g||zr(g.type)&&(g.ssContent===u||g.ssFallback===u)){const C=_.vnode;ge(c,C,C.scopeId,C.slotScopeIds,_.parent)}}},ne=(c,u,h,b,_,g,C,w,x=0)=>{for(let m=x;m<c.length;m++){const N=c[m]=w?Ke(c[m]):Fe(c[m]);F(null,N,u,h,b,_,g,C,w)}},st=(c,u,h,b,_,g,C)=>{const w=u.el=c.el;let{patchFlag:x,dynamicChildren:m,dirs:N}=u;x|=c.patchFlag&16;const T=c.props||G,I=u.props||G;let R;if(h&&rt(h,!1),(R=I.onVnodeBeforeUpdate)&&Ne(R,h,u,c),N&&nt(u,c,h,"beforeUpdate"),h&&rt(h,!0),m&&(!c.dynamicChildren||c.dynamicChildren.length!==m.length)&&(x=0,C=!1,m=null),(T.innerHTML&&I.innerHTML==null||T.textContent&&I.textContent==null)&&a(w,""),m?xe(c.dynamicChildren,m,w,h,b,Ms(u,_),g):C||V(c,u,w,null,h,b,Ms(u,_),g,!1),x>0){if(x&16)$e(w,T,I,h,_);else if(x&2&&T.class!==I.class&&i(w,"class",null,I.class,_),x&4&&i(w,"style",T.style,I.style,_),x&8){const H=u.dynamicProps;for(let J=0;J<H.length;J++){const k=H[J],ee=T[k],te=I[k];(te!==ee||k==="value")&&i(w,k,ee,te,_,h)}}x&1&&c.children!==u.children&&a(w,u.children)}else!C&&m==null&&$e(w,T,I,h,_);((R=I.onVnodeUpdated)||N)&&pe(()=>{R&&Ne(R,h,u,c),N&&nt(u,c,h,"updated")},b)},xe=(c,u,h,b,_,g,C)=>{for(let w=0;w<u.length;w++){const x=c[w],m=u[w],N=x.el&&(x.type===_e||!Ot(x,m)||x.shapeFlag&198)?p(x.el):h;F(x,m,N,null,b,_,g,C,!0)}},$e=(c,u,h,b,_)=>{if(u!==h){if(u!==G)for(const g in u)!Nt(g)&&!(g in h)&&i(c,g,u[g],null,_,b);for(const g in h){if(Nt(g))continue;const C=h[g],w=u[g];C!==w&&g!=="value"&&i(c,g,w,C,_,b)}"value"in h&&i(c,"value",u.value,h.value,_)}},Ge=(c,u,h,b,_,g,C,w,x)=>{const m=u.el=c?c.el:l(""),N=u.anchor=c?c.anchor:l("");let{patchFlag:T,dynamicChildren:I,slotScopeIds:R}=u;R&&(w=w?w.concat(R):R),c==null?(n(m,h,b),n(N,h,b),ne(u.children||[],h,N,_,g,C,w,x)):T>0&&T&64&&I&&c.dynamicChildren&&c.dynamicChildren.length===I.length?(xe(c.dynamicChildren,I,h,_,g,C,w),(u.key!=null||_&&u===_.subTree)&&Xr(c,u,!0)):V(c,u,h,N,_,g,C,w,x)},ze=(c,u,h,b,_,g,C,w,x)=>{u.slotScopeIds=w,c==null?u.shapeFlag&512?_.ctx.activate(u,h,b,C,x):E(u,h,b,_,g,C,x):v(c,u,x)},E=(c,u,h,b,_,g,C)=>{const w=c.component=ko(c,b,_);if(ln(c)&&(w.ctx.renderer=Tt),Xo(w,!1,C),w.asyncDep){if(_&&_.registerDep(w,y,C),!c.el){const x=w.subTree=ft(ut);B(null,x,u,h),c.placeholder=x.el}}else y(w,c,u,h,_,g,C)},v=(c,u,h)=>{const b=u.component=c.component;if(To(c,u,h))if(b.asyncDep&&!b.asyncResolved){L(b,u,h);return}else b.next=u,b.update();else u.el=c.el,b.vnode=u},y=(c,u,h,b,_,g,C)=>{const w=()=>{if(c.isMounted){let{next:T,bu:I,u:R,parent:H,vnode:J}=c;{const Ie=Jr(c);if(Ie){T&&(T.el=J.el,L(c,T,C)),Ie.asyncDep.then(()=>{pe(()=>{c.isUnmounted||m()},_)});return}}let k=T,ee;rt(c,!1),T?(T.el=J.el,L(c,T,C)):T=J,I&&Qt(I),(ee=T.props&&T.props.onVnodeBeforeUpdate)&&Ne(ee,H,T,J),rt(c,!0);const te=An(c),Oe=c.subTree;c.subTree=te,F(Oe,te,p(Oe.el),Xt(Oe),c,_,g),T.el=te.el,k===null&&Ao(c,te.el),R&&pe(R,_),(ee=T.props&&T.props.onVnodeUpdated)&&pe(()=>Ne(ee,H,T,J),_)}else{let T;const{el:I,props:R}=u,{bm:H,m:J,parent:k,root:ee,type:te}=c,Oe=Vt(u);rt(c,!1),H&&Qt(H),!Oe&&(T=R&&R.onVnodeBeforeMount)&&Ne(T,k,u),rt(c,!0);{ee.ce&&ee.ce._hasShadowRoot()&&ee.ce._injectChildStyle(te,c.parent?c.parent.type:void 0);const Ie=c.subTree=An(c);F(null,Ie,h,b,c,_,g),u.el=Ie.el}if(J&&pe(J,_),!Oe&&(T=R&&R.onVnodeMounted)){const Ie=u;pe(()=>Ne(T,k,Ie),_)}(u.shapeFlag&256||k&&Vt(k.vnode)&&k.vnode.shapeFlag&256)&&c.a&&pe(c.a,_),c.isMounted=!0,u=h=b=null}};c.scope.on();const x=c.effect=new rr(w);c.scope.off();const m=c.update=x.run.bind(x),N=c.job=x.runIfDirty.bind(x);N.i=c,N.id=c.uid,x.scheduler=()=>rn(N),rt(c,!0),m()},L=(c,u,h)=>{u.component=c;const b=c.vnode.props;c.vnode=u,c.next=null,Oo(c,u.props,b,h),Mo(c,u.children,h),ke(),yn(c),qe()},V=(c,u,h,b,_,g,C,w,x=!1)=>{const m=c&&c.children,N=c?c.shapeFlag:0,T=u.children,{patchFlag:I,shapeFlag:R}=u;if(I>0){if(I&128){he(m,T,h,b,_,g,C,w,x);return}else if(I&256){de(m,T,h,b,_,g,C,w,x);return}}R&8?(N&16&&Ct(m,_,g),T!==m&&a(h,T)):N&16?R&16?he(m,T,h,b,_,g,C,w,x):Ct(m,_,g,!0):(N&8&&a(h,""),R&16&&ne(T,h,b,_,g,C,w,x))},de=(c,u,h,b,_,g,C,w,x)=>{c=c||pt,u=u||pt;const m=c.length,N=u.length,T=Math.min(m,N);let I;for(I=0;I<T;I++){const R=u[I]=x?Ke(u[I]):Fe(u[I]);F(c[I],R,h,null,_,g,C,w,x)}m>N?Ct(c,_,g,!0,!1,T):ne(u,h,b,_,g,C,w,x,T)},he=(c,u,h,b,_,g,C,w,x)=>{let m=0;const N=u.length;let T=c.length-1,I=N-1;for(;m<=T&&m<=I;){const R=c[m],H=u[m]=x?Ke(u[m]):Fe(u[m]);if(Ot(R,H))F(R,H,h,null,_,g,C,w,x);else break;m++}for(;m<=T&&m<=I;){const R=c[T],H=u[I]=x?Ke(u[I]):Fe(u[I]);if(Ot(R,H))F(R,H,h,null,_,g,C,w,x);else break;T--,I--}if(m>T){if(m<=I){const R=I+1,H=R<N?u[R].el:b;for(;m<=I;)F(null,u[m]=x?Ke(u[m]):Fe(u[m]),h,H,_,g,C,w,x),m++}}else if(m>I)for(;m<=T;)Ee(c[m],_,g,!0),m++;else{const R=m,H=m,J=new Map;for(m=H;m<=I;m++){const me=u[m]=x?Ke(u[m]):Fe(u[m]);me.key!=null&&J.set(me.key,m)}let k,ee=0;const te=I-H+1;let Oe=!1,Ie=0;const At=new Array(te);for(m=0;m<te;m++)At[m]=0;for(m=R;m<=T;m++){const me=c[m];if(ee>=te){Ee(me,_,g,!0);continue}let Pe;if(me.key!=null)Pe=J.get(me.key);else for(k=H;k<=I;k++)if(At[k-H]===0&&Ot(me,u[k])){Pe=k;break}Pe===void 0?Ee(me,_,g,!0):(At[Pe-H]=m+1,Pe>=Ie?Ie=Pe:Oe=!0,F(me,u[Pe],h,null,_,g,C,w,x),ee++)}const dn=Oe?Do(At):pt;for(k=dn.length-1,m=te-1;m>=0;m--){const me=H+m,Pe=u[me],hn=u[me+1],pn=me+1<N?hn.el||Gr(hn):b;At[m]===0?F(null,Pe,h,pn,_,g,C,w,x):Oe&&(k<0||m!==dn[k]?we(Pe,h,pn,2):k--)}}},we=(c,u,h,b,_=null)=>{const{el:g,type:C,transition:w,children:x,shapeFlag:m}=c;if(m&6){we(c.component.subTree,u,h,b);return}if(m&128){c.suspense.move(u,h,b);return}if(m&64){C.move(c,u,h,Tt);return}if(C===_e){n(g,u,h);for(let T=0;T<x.length;T++)we(x[T],u,h,b);n(c.anchor,u,h);return}if(C===Rs){j(c,u,h);return}if(b!==2&&m&1&&w)if(b===0)w.persisted&&!g[Ps]?n(g,u,h):(w.beforeEnter(g),n(g,u,h),pe(()=>w.enter(g),_));else{const{leave:T,delayLeave:I,afterLeave:R}=w,H=()=>{c.ctx.isUnmounted?r(g):n(g,u,h)},J=()=>{const k=g._isLeaving||!!g[Ps];g._isLeaving&&g[Ps](!0),w.persisted&&!k?H():T(g,()=>{H(),R&&R()})};I?I(g,H,J):J()}else n(g,u,h)},Ee=(c,u,h,b=!1,_=!1)=>{const{type:g,props:C,ref:w,children:x,dynamicChildren:m,shapeFlag:N,patchFlag:T,dirs:I,cacheIndex:R,memo:H}=c;if(T===-2&&(_=!1),w!=null&&(ke(),Ft(w,null,h,c,!0),qe()),R!=null&&(u.renderCache[R]=void 0),N&256){u.ctx.deactivate(c);return}const J=N&1&&I,k=!Vt(c);let ee;if(k&&(ee=C&&C.onVnodeBeforeUnmount)&&Ne(ee,u,c),N&6)ii(c.component,h,b);else{if(N&128){c.suspense.unmount(h,b);return}J&&nt(c,null,u,"beforeUnmount"),N&64?c.type.remove(c,u,h,Tt,b):m&&!m.hasOnce&&(g!==_e||T>0&&T&64)?Ct(m,u,h,!1,!0):(g===_e&&T&384||!_&&N&16)&&Ct(x,u,h),b&&un(c)}const te=H!=null&&R==null;(k&&(ee=C&&C.onVnodeUnmounted)||J||te)&&pe(()=>{ee&&Ne(ee,u,c),J&&nt(c,null,u,"unmounted"),te&&(c.el=null)},h)},un=c=>{const{type:u,el:h,anchor:b,transition:_}=c;if(u===_e){ri(h,b);return}if(u===Rs){P(c);return}const g=()=>{r(h),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(c.shapeFlag&1&&_&&!_.persisted){const{leave:C,delayLeave:w}=_,x=()=>C(h,g);w?w(c.el,g,x):x()}else g()},ri=(c,u)=>{let h;for(;c!==u;)h=A(c),r(c),c=h;r(u)},ii=(c,u,h)=>{const{bum:b,scope:_,job:g,subTree:C,um:w,m:x,a:m}=c;In(x),In(m),b&&Qt(b),_.stop(),g&&(g.flags|=8,Ee(C,c,u,h)),w&&pe(w,u),pe(()=>{c.isUnmounted=!0},u)},Ct=(c,u,h,b=!1,_=!1,g=0)=>{for(let C=g;C<c.length;C++)Ee(c[C],u,h,b,_)},Xt=c=>{if(c.shapeFlag&6)return Xt(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const u=A(c.anchor||c.el),h=u&&u[Zi];return h?A(h):u};let Ss=!1;const an=(c,u,h)=>{let b;c==null?u._vnode&&(Ee(u._vnode,null,null,!0),b=u._vnode.component):F(u._vnode||null,c,u,null,null,null,h),u._vnode=c,Ss||(Ss=!0,yn(b),Sr(),Ss=!1)},Tt={p:F,um:Ee,m:we,r:un,mt:E,mc:ne,pc:V,pbc:xe,n:Xt,o:e};return{render:an,hydrate:void 0,createApp:yo(an)}}function Ms({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 rt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Vo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Xr(e,t,s=!1){const n=e.children,r=t.children;if(M(n)&&M(r))for(let i=0;i<n.length;i++){const o=n[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Ke(r[i]),l.el=o.el),!s&&l.patchFlag!==-2&&Xr(o,l)),l.type===xs&&(l.patchFlag===-1&&(l=r[i]=Ke(l)),l.el=o.el),l.type===ut&&!l.el&&(l.el=o.el)}}function Do(e){const t=e.slice(),s=[0];let n,r,i,o,l;const f=e.length;for(n=0;n<f;n++){const d=e[n];if(d!==0){if(r=s[s.length-1],e[r]<d){t[n]=r,s.push(n);continue}for(i=0,o=s.length-1;i<o;)l=i+o>>1,e[s[l]]<d?i=l+1:o=l;d<e[s[i]]&&(i>0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=t[o];return s}function Jr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Jr(t)}function In(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Gr(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Gr(t.subTree):null}const zr=e=>e.__isSuspense;function Lo(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):qi(e)}const _e=Symbol.for("v-fgt"),xs=Symbol.for("v-txt"),ut=Symbol.for("v-cmt"),Rs=Symbol.for("v-stc"),ct=[];let be=null;function oe(e=!1){ct.push(be=e?null:[])}function Yr(){ct.pop(),be=ct[ct.length-1]||null}let jt=1;function Pn(e,t=!1){jt+=e,e<0&&be&&t&&(be.hasOnce=!0)}function $o(e){return e.dynamicChildren=jt>0?be||pt:null,Yr(),jt>0&&be&&be.push(e),e}function le(e,t,s,n,r,i){return $o(S(e,t,s,n,r,i,!0))}function Zr(e){return e?e.__v_isVNode===!0:!1}function Ot(e,t){return e.type===t.type&&e.key===t.key}const Qr=({key:e})=>e??null,ts=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Q(e)||ae(e)||D(e)?{i:ve,r:e,k:t,f:!!s}:e:null);function S(e,t=null,s=null,n=0,r=null,i=e===_e?0:1,o=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qr(t),ref:t&&ts(t),scopeId:Tr,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:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ve};return l?(ls(f,s),i&128&&e.normalize(f)):s&&(f.shapeFlag|=Q(s)?8:16),jt>0&&!o&&be&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&be.push(f),f}const ft=Ho;function Ho(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===uo)&&(e=ut),Zr(e)){const l=vt(e,t,!0);return s&&ls(l,s),jt>0&&!i&&be&&(l.shapeFlag&6?be[be.indexOf(e)]=l:be.push(l)),l.patchFlag=-2,l}if(Yo(e)&&(e=e.__vccOpts),t){t=jo(t);let{class:l,style:f}=t;l&&!Q(l)&&(t.class=Qe(l)),X(f)&&(nn(f)&&!M(f)&&(f=ie({},f)),t.style=ps(f))}const o=Q(e)?1:zr(e)?128:bs(e)?64:X(e)?4:D(e)?2:0;return S(e,t,s,n,r,o,i,!0)}function jo(e){return e?nn(e)||Kr(e)?ie({},e):e:null}function vt(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:f}=e,d=t?Uo(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Qr(d),ref:t&&t.ref?s&&i?M(i)?i.concat(ts(t)):[i,ts(t)]:ts(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vt(e.ssContent),ssFallback:e.ssFallback&&vt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&n&&on(a,f.clone(a)),a}function Ko(e=" ",t=0){return ft(xs,null,e,t)}function Fe(e){return e==null||typeof e=="boolean"?ft(ut):M(e)?ft(_e,null,e.slice()):Zr(e)?Ke(e):ft(xs,null,String(e))}function Ke(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vt(e)}function ls(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 r=t.default;r&&(r._c&&(r._d=!1),ls(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Kr(t)?t._ctx=ve:r===3&&ve&&(ve.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(D(t)){if(n&65){ls(e,{default:t});return}t={default:t,_ctx:ve},s=32}else t=String(t),n&64?(s=16,t=[Ko(t)]):s=8;e.children=t,e.shapeFlag|=s}function Uo(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=Qe([t.class,n.class]));else if(r==="style")t.style=ps([t.style,n.style]);else if(fs(r)){const i=t[r],o=n[r];o&&i!==o&&!(M(i)&&i.includes(o))?t[r]=i?[].concat(i,o):o:o==null&&i==null&&!us(r)&&(t[r]=o)}else r!==""&&(t[r]=n[r])}return t}function Ne(e,t,s,n=null){Ae(e,t,7,[s,n])}const Wo=Dr();let Bo=0;function ko(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||Wo,i={uid:Bo++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new _i(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Wr(n,r),emitsOptions:Lr(n,r),emit:null,emitted:null,propsDefaults:G,inheritAttrs:n.inheritAttrs,ctx:G,data:G,props:G,attrs:G,slots:G,refs:G,setupState:G,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=xo.bind(null,i),e.ce&&e.ce(i),i}let ue=null;const qo=()=>ue||ve;let cs,Kt;{const e=hs(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};cs=t("__VUE_INSTANCE_SETTERS__",s=>ue=s),Kt=t("__VUE_SSR_SETTERS__",s=>Ut=s)}const qt=e=>{const t=ue;return cs(e),e.scope.on(),()=>{e.scope.off(),cs(t)}},Nn=()=>{ue&&ue.scope.off(),cs(null)};function ei(e){return e.vnode.shapeFlag&4}let Ut=!1;function Xo(e,t=!1,s=!1){t&&Kt(t);const{props:n,children:r}=e.vnode,i=ei(e);Eo(e,n,i,t),No(e,r,s||t);const o=i?Jo(e,t):void 0;return t&&Kt(!1),o}function Jo(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ao);const{setup:n}=s;if(n){ke();const r=e.setupContext=n.length>1?zo(e):null,i=qt(e),o=kt(n,e,0,[e.props,r]),l=zn(o);if(qe(),i(),(l||e.sp)&&!Vt(e)&&Ir(e),l){if(o.then(Nn,Nn),t)return o.then(f=>{Kt(!0);try{Mn(e,f,t)}finally{Kt(!1)}}).catch(f=>{_s(f,e,0)});e.asyncDep=o}else Mn(e,o)}else ti(e)}function Mn(e,t,s){D(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=yr(t)),ti(e)}function ti(e,t,s){const n=e.type;e.render||(e.render=n.render||De);{const r=qt(e);ke();try{ho(e)}finally{qe(),r()}}}const Go={get(e,t){return re(e,"get",""),e[t]}};function zo(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Go),slots:e.slots,emit:e.emit,expose:t}}function ws(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(yr(Li(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Dt)return Dt[s](e)},has(t,s){return s in t||s in Dt}})):e.proxy}function Yo(e){return D(e)&&"__vccOpts"in e}const Ye=(e,t)=>Ki(e,t,Ut),Zo="3.5.41";let Xs;const Rn=typeof window<"u"&&window.trustedTypes;if(Rn)try{Xs=Rn.createPolicy("vue",{createHTML:e=>e})}catch{}const si=Xs?e=>Xs.createHTML(e):e=>e,Qo="http://www.w3.org/2000/svg",el="http://www.w3.org/1998/Math/MathML",je=typeof document<"u"?document:null,Fn=je&&je.createElement("template"),tl={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 r=t==="svg"?je.createElementNS(Qo,e):t==="mathml"?je.createElementNS(el,e):s?je.createElement(e,{is:s}):je.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>je.createTextNode(e),createComment:e=>je.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>je.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Fn.innerHTML=si(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Fn.content;if(n==="svg"||n==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},sl=Symbol("_vtc");function nl(e,t,s){const n=e[sl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Vn=Symbol("_vod"),rl=Symbol("_vsh"),il=Symbol(""),ol=/(?:^|;)\s*display\s*:/;function ll(e,t,s){const n=e.style,r=Q(s);let i=!1;if(s&&!r){if(t)if(Q(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Pt(n,l,"")}else for(const o in t)s[o]==null&&Pt(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?fl(e,o,!Q(t)&&t?t[o]:void 0,l)||Pt(n,o,l):Pt(n,o,"")}}else if(r){if(t!==s){const o=n[il];o&&(s+=";"+o),n.cssText=s,i=ol.test(s)}}else t&&e.removeAttribute("style");Vn in e&&(e[Vn]=i?n.display:"",e[rl]&&(n.display="none"))}const Dn=/\s*!important$/;function Pt(e,t,s){if(M(s))s.forEach(n=>Pt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=cl(e,t);Dn.test(s)?e.setProperty(at(n),s.replace(Dn,""),"important"):e[n]=s}}const Ln=["Webkit","Moz","ms"],Fs={};function cl(e,t){const s=Fs[t];if(s)return s;let n=Se(t);if(n!=="filter"&&n in e)return Fs[t]=n;n=Qn(n);for(let r=0;r<Ln.length;r++){const i=Ln[r]+n;if(i in e)return Fs[t]=i}return t}function fl(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Q(n)&&s===n}const $n="http://www.w3.org/1999/xlink";function Hn(e,t,s,n,r,i=gi(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS($n,t.slice(6,t.length)):e.setAttributeNS($n,t,s):s==null||i&&!tr(s)?e.removeAttribute(t):e.setAttribute(t,i?"":Le(s)?String(s):s)}function jn(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?si(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,f=s==null?e.type==="checkbox"?"on":"":String(s);(l!==f||!("_value"in e))&&(e.value=f),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=tr(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function et(e,t,s,n){e.addEventListener(t,s,n)}function ul(e,t,s,n){e.removeEventListener(t,s,n)}const Kn=Symbol("_vei");function al(e,t,s,n,r=null){const i=e[Kn]||(e[Kn]={}),o=i[t];if(n&&o)o.value=n;else{const[l,f]=pl(t);if(n){const d=i[t]=_l(n,r);et(e,l,d,f)}else o&&(ul(e,l,o,f),i[t]=void 0)}}const dl=/(Once|Passive|Capture)$/,hl=/^on:?(?:Once|Passive|Capture)$/;function pl(e){let t,s;for(;(s=e.match(dl))&&!hl.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):at(e.slice(2)),t]}let Vs=0;const gl=Promise.resolve(),ml=()=>Vs||(gl.then(()=>Vs=0),Vs=Date.now());function _l(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const r=s.value;if(M(r)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const o=r.slice(),l=[n];for(let f=0;f<o.length&&!n._stopped;f++){const d=o[f];d&&Ae(d,t,5,l)}}else Ae(r,t,5,[n])};return s.value=e,s.attached=ml(),s}const Un=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?nl(e,n,o):t==="style"?ll(e,s,n):fs(t)?us(t)||al(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yl(e,t,n,o))?(jn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Hn(e,t,n,o,i,t!=="value")):e._isVueCE&&(vl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Q(n)))?jn(e,Se(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Hn(e,t,n,o))};function yl(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Un(t)&&D(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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Un(t)&&Q(s)?!1:t in e}function vl(e,t){const s=e._def.props;if(!s)return!1;const n=Se(t);return Array.isArray(s)?s.some(r=>Se(r)===n):Object.keys(s).some(r=>Se(r)===n)}const xt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return M(t)?s=>Qt(t,s):t};function xl(e){e.target.composing=!0}function Wn(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ve=Symbol("_assign"),Zt=Symbol("_initialValue");function Ds(e,t,s){return t&&(e=e.trim()),s&&(e=ds(e)),e}const wl={created(e,{modifiers:{lazy:t,trim:s,number:n}},r){e.parentNode&&(e.type==="text"?e[Zt]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Zt]=e.defaultValue.replace(/\r\n?/g,`
2
- `))),e[Ve]=xt(r);const i=n||r.props&&r.props.type==="number";et(e,t?"change":"input",o=>{o.target.composing||e[Ve](Ds(e.value,s,i))}),(s||i)&&et(e,"change",()=>{e.value=Ds(e.value,s,i)}),t||(et(e,"compositionstart",xl),et(e,"compositionend",Wn),et(e,"change",Wn))},mounted(e,{value:t,modifiers:{trim:s,number:n}}){const r=t??"",i=e[Zt];delete e[Zt],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Ve](Ds(e.value,s,n)):e.value=r},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:r,number:i}},o){if(e[Ve]=xt(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?ds(e.value):e.value,f=t??"";if(l===f)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(n&&t===s||r&&e.value.trim()===f)||(e.value=f)}},Sl={deep:!0,created(e,t,s){e[Ve]=xt(s),et(e,"change",()=>{const n=e._modelValue,r=Wt(e),i=e.checked,o=e[Ve];if(M(n)){const l=Ys(n,r),f=l!==-1;if(i&&!f)o(n.concat(r));else if(!i&&f){const d=[...n];d.splice(l,1),o(d)}}else if(wt(n)){const l=new Set(n);i?l.add(r):l.delete(r),o(l)}else o(ni(e,i))})},mounted:Bn,beforeUpdate(e,t,s){e[Ve]=xt(s),Bn(e,t,s)}};function Bn(e,{value:t,oldValue:s},n){e._modelValue=t;let r;if(M(t))r=Ys(t,n.props.value)>-1;else if(wt(t))r=t.has(n.props.value);else{if(t===s)return;r=St(t,ni(e,!0))}e.checked!==r&&(e.checked=r)}const Cl={deep:!0,created(e,{value:t,modifiers:{number:s}},n){e._modelValue=t,et(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?ds(Wt(i)):Wt(i));e[Ve](e.multiple?wt(e._modelValue)?new Set(r):r:r[0]),e._assigning=!0,xr(()=>{e._assigning=!1})}),e[Ve]=xt(n)},mounted(e,{value:t}){kn(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[Ve]=xt(s)},updated(e,{value:t}){e._assigning||kn(e,t)}};function kn(e,t){const s=e.multiple,n=M(t);if(!(s&&!n&&!wt(t))){for(let r=0,i=e.options.length;r<i;r++){const o=e.options[r],l=Wt(o);if(s)if(n){const f=typeof l;f==="string"||f==="number"?o.selected=t.some(d=>String(d)===String(l)):o.selected=Ys(t,l)>-1}else o.selected=t.has(l);else if(St(Wt(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Wt(e){return"_value"in e?e._value:e.value}function ni(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const Tl=ie({patchProp:bl},tl);let qn;function Al(){return qn||(qn=Ro(Tl))}const El=((...e)=>{const t=Al().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=Il(n);if(!r)return;const i=t._component;!D(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,Ol(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function Ol(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Il(e){return Q(e)?document.querySelector(e):e}const Pl={class:"page-shell"},Nl={class:"topbar"},Ml={class:"toolbar"},Rl=["value"],Fl={class:"checkbox"},Vl=["disabled"],Dl={class:"statusbar"},Ll={class:"pill-row"},$l={class:"pill neutral"},Hl={class:"pill success"},jl={class:"pill neutral"},Kl={class:"pill warn"},Ul={class:"metric-grid"},Wl={class:"metric-card"},Bl={class:"metric-card"},kl={class:"metric-card"},ql={class:"metric-card"},Xl={class:"card"},Jl={class:"card-head"},Gl={class:"meta-chip"},zl={class:"section-tools"},Yl={key:0,class:"lights-grid"},Zl={class:"tile-head"},Ql={class:"meta-chip"},ec={class:"tile-meta"},tc={class:"tile-stats"},sc={class:"pill neutral"},nc={key:1,class:"empty-state"},rc={class:"card"},ic={class:"card-head"},oc={class:"meta-chip"},lc={key:0,class:"dimmer-grid"},cc={class:"tile-head"},fc={class:"meta-chip"},uc={class:"pill warn"},ac={class:"tile-meta"},dc={class:"dimmer-track"},hc={class:"tile-stats"},pc={class:"pill neutral"},gc={key:1,class:"empty-state"},mc={class:"card"},_c={class:"card-head"},bc={class:"meta-chip"},yc={key:0,class:"other-list"},vc={class:"other-side"},xc={class:"pill neutral"},wc={class:"pill neutral"},Sc={key:1,class:"empty-state"},Ls="knxUltimateViewer:selectedNodeId",Xn="knxUltimateViewer:autoRefresh",Jn="knxUltimateViewer:search",Cc={__name:"App",setup(e){const t=(()=>{try{return new URLSearchParams(window.location.search).get("nodeId")||""}catch{return""}})(),s=(()=>{try{return new URLSearchParams(window.location.search).get("access_token")||""}catch{return""}})();function n(){try{if(!window.localStorage)return"";const E=[];for(let v=0;v<window.localStorage.length;v+=1){const y=String(window.localStorage.key(v)||"");if(!y.startsWith("auth-tokens"))continue;const L=window.localStorage.getItem(y);if(!L)continue;let V=null;try{V=JSON.parse(L)}catch{V=null}const de=V&&typeof V.access_token=="string"?V.access_token.trim():"";if(!de)continue;const he=Number(V&&(V.expires_at||V.expiry||V.expires)?V.expires_at||V.expiry||V.expires:0);E.push({token:de,expiresAt:Number.isFinite(he)?he:0})}return E.length?(E.sort((v,y)=>y.expiresAt-v.expiresAt),E[0].token||""):""}catch{return""}}const r=(()=>{const E=String(s||"").trim();return E||n()})();function i(E){const v=Object.assign({},E||{});return r&&!v.Authorization&&!v.authorization&&(v.Authorization=`Bearer ${r}`),v}const o=ms({nodes:[],selectedNodeId:t||l(Ls,""),autoRefresh:f(Xn,!0),search:l(Jn,""),status:"Ready",loadingNodes:!1,loadingState:!1,data:null,lastError:"",pollHandle:null});function l(E,v=""){try{return window.localStorage&&window.localStorage.getItem(E)||v}catch{return v}}function f(E,v){try{if(!window.localStorage)return v;const y=window.localStorage.getItem(E);return y==null||y===""?v:y==="true"}catch{return v}}function d(E,v){try{window.localStorage&&window.localStorage.setItem(E,String(v??""))}catch{}}function a(E,v){try{window.localStorage&&window.localStorage.setItem(E,v?"true":"false")}catch{}}function p(E){const v=new URL(E,window.location.href);return s&&v.searchParams.set("access_token",s),v.toString()}function A(E){o.status=String(E||"")}async function O(E,v){const y=Object.assign({credentials:"same-origin"},{});y.headers=i(y.headers);const L=await fetch(E,y),V=String(L.headers.get("content-type")||"").toLowerCase(),de=await L.text();if(L.ok&&V.includes("text/html"))throw new Error("Authentication required or insufficient permissions (session token missing or expired).");let he={};try{he=de?JSON.parse(de):{}}catch{he={error:de||`HTTP ${L.status}`}}if(!L.ok){const we=he&&he.error?he.error:`HTTP ${L.status}`;throw L.status===401||L.status===403?new Error(`Authentication required or insufficient permissions (${L.status}).`):new Error(we)}return he}function U(E){return String(E||"").trim()}function F(E){const v=t&&E.find(V=>V.id===t)?t:"",y=l(Ls,""),L=y&&E.find(V=>V.id===y)?y:"";return v||L||(E[0]?E[0].id:"")}async function Y({preserveSelection:E=!0}={}){o.loadingNodes=!0;try{const v=await O(p("nodes")),y=Array.isArray(v&&v.nodes)?v.nodes:[];o.nodes=y,(!E||!o.selectedNodeId||!y.find(L=>L.id===o.selectedNodeId))&&(o.selectedNodeId=F(y))}finally{o.loadingNodes=!1}}async function B(){if(!o.selectedNodeId){o.data=null,o.lastError="No KNX Viewer node available.",A("No viewer nodes");return}o.loadingState=!0,o.lastError="",A("Refreshing KNX Viewer...");try{const E=await O(p(`state?nodeId=${encodeURIComponent(o.selectedNodeId)}`));o.data=E,A("Live state loaded")}catch(E){o.lastError=E.message||String(E),A("Unable to load state")}finally{o.loadingState=!1}}function $(){o.pollHandle&&(clearInterval(o.pollHandle),o.pollHandle=null)}function j(){$(),o.autoRefresh&&(o.pollHandle=setInterval(()=>{B().catch(()=>{})},3e3))}async function P(){await Y({preserveSelection:!0}),await B()}function Z(E){const v=Number(E||0);if(!Number.isFinite(v)||v<=0)return"n/a";const y=Math.max(0,Date.now()-v);return y<15e3?"just now":y<6e4?`${Math.round(y/1e3)}s ago`:y<36e5?`${Math.round(y/6e4)}m ago`:`${Math.round(y/36e5)}h ago`}function ye(E){if(!E)return"n/a";const v=new Date(E);return Number.isFinite(v.getTime())?v.toLocaleString():"n/a"}const ge=Ye(()=>o.data&&o.data.node?o.data.node:{}),ne=Ye(()=>o.data&&o.data.summary?o.data.summary:{}),st=Ye(()=>Array.isArray(o.data&&o.data.items)?o.data.items:[]),xe=Ye(()=>{const E=U(o.search).toLowerCase();return E?st.value.filter(v=>`${v.address||""} ${v.devicename||""} ${v.dpt||""}`.toLowerCase().includes(E)):st.value}),$e=Ye(()=>xe.value.filter(E=>E.kind==="light")),Ge=Ye(()=>xe.value.filter(E=>E.kind==="dimmer")),ze=Ye(()=>xe.value.filter(E=>E.kind==="other").slice(0,12));return _t(()=>o.selectedNodeId,async(E,v)=>{d(Ls,E||""),!(!E||E===v)&&await B()}),_t(()=>o.autoRefresh,E=>{a(Xn,E),j()}),_t(()=>o.search,E=>{d(Jn,E||"")}),Nr(async()=>{await Y({preserveSelection:!1}),await B(),j()}),Mr(()=>{$()}),(E,v)=>(oe(),le("div",Pl,[S("header",Nl,[S("div",null,[v[3]||(v[3]=S("p",{class:"eyebrow"},"KNX Viewer Web",-1)),S("h1",null,K(ge.value.name||"KNX Viewer"),1),v[4]||(v[4]=S("p",{class:"subhead"}," Live lights and dimmer values collected by the KNX Viewer node. The visual language stays aligned with KNX AI, but focused on field states. ",-1))]),S("div",Ml,[Is(S("select",{"onUpdate:modelValue":v[0]||(v[0]=y=>o.selectedNodeId=y),class:"node-select"},[v[5]||(v[5]=S("option",{value:"",disabled:""},"Select KNX Viewer",-1)),(oe(!0),le(_e,null,Yt(o.nodes,y=>(oe(),le("option",{key:y.id,value:y.id},K(`${y.name||"KNXViewer"}${y.gatewayName?` | ${y.gatewayName}`:""}`),9,Rl))),128))],512),[[Cl,o.selectedNodeId]]),S("label",Fl,[Is(S("input",{"onUpdate:modelValue":v[1]||(v[1]=y=>o.autoRefresh=y),type:"checkbox"},null,512),[[Sl,o.autoRefresh]]),v[6]||(v[6]=S("span",null,"Auto refresh",-1))]),S("button",{class:"secondary-button",type:"button",disabled:o.loadingState||o.loadingNodes,onClick:P}," Refresh ",8,Vl)]),S("div",Dl,[S("span",{class:Qe(["status-pill",o.lastError?"status-error":"status-ok"])},K(o.lastError||o.status),3),S("div",Ll,[S("span",$l,"Gateway "+K(ge.value.gatewayName||"n/a"),1),S("span",Hl,"Lights on "+K(ne.value.lightOnCount||0),1),S("span",jl,"Lights off "+K(ne.value.lightOffCount||0),1),S("span",Kl,"Avg dimmer "+K(ne.value.averageDimmerLevel||0)+"%",1)])])]),S("section",Ul,[S("article",Wl,[v[7]||(v[7]=S("span",{class:"metric-label"},"Detected lights",-1)),S("strong",null,K(ne.value.lightCount||0),1),v[8]||(v[8]=S("p",null,"Boolean-style KNX values currently visible to this Viewer node.",-1))]),S("article",Bl,[v[9]||(v[9]=S("span",{class:"metric-label"},"Detected dimmers",-1)),S("strong",null,K(ne.value.dimmerCount||0),1),v[10]||(v[10]=S("p",null,"5.001-like level values rendered as dimmer cards.",-1))]),S("article",kl,[v[11]||(v[11]=S("span",{class:"metric-label"},"Known group addresses",-1)),S("strong",null,K(ne.value.totalItems||0),1),v[12]||(v[12]=S("p",null,"Total KNX group addresses seen by the Viewer in this runtime session.",-1))]),S("article",ql,[v[13]||(v[13]=S("span",{class:"metric-label"},"Last KNX update",-1)),S("strong",null,K(ye(ne.value.lastUpdate)),1),v[14]||(v[14]=S("p",null,"Most recent telegram reflected in this web page.",-1))])]),S("section",Xl,[S("div",Jl,[v[15]||(v[15]=S("h2",null,"Lights",-1)),S("span",Gl,K($e.value.length)+" visible",1)]),S("div",zl,[Is(S("input",{"onUpdate:modelValue":v[2]||(v[2]=y=>o.search=y),class:"search-input",type:"text",placeholder:"Search GA, label or DPT"},null,512),[[wl,o.search]]),v[16]||(v[16]=S("p",{class:"section-note"},"Rendering is based on the live values currently exposed by KNX Viewer.",-1))]),$e.value.length?(oe(),le("div",Yl,[(oe(!0),le(_e,null,Yt($e.value,y=>(oe(),le("article",{key:y.address,class:Qe(["tile-card light-card",{"is-on":y.isOn,"is-off":!y.isOn}])},[S("div",Zl,[v[17]||(v[17]=S("div",{class:"light-badge"},[S("span",{class:"light-badge-core"})],-1)),S("span",Ql,K(y.address),1)]),S("h3",null,K(y.devicename||y.address),1),S("p",ec,K(y.dpt||"no dpt"),1),S("div",tc,[S("span",{class:Qe(["pill",y.isOn?"success":"neutral"])},K(y.isOn?"ON":"OFF"),3),S("span",sc,"Updated "+K(Z(y.lastUpdateMs)),1)])],2))),128))])):(oe(),le("p",nc,"No boolean light-style values detected yet."))]),S("section",rc,[S("div",ic,[v[18]||(v[18]=S("h2",null,"Dimmers",-1)),S("span",oc,K(Ge.value.length)+" visible",1)]),Ge.value.length?(oe(),le("div",lc,[(oe(!0),le(_e,null,Yt(Ge.value,y=>(oe(),le("article",{key:y.address,class:Qe(["tile-card dimmer-card",{"is-active":Number(y.level||0)>0}])},[S("div",cc,[S("span",fc,K(y.address),1),S("span",uc,K(y.level||0)+"%",1)]),S("h3",null,K(y.devicename||y.address),1),S("p",ac,K(y.dpt||"no dpt"),1),S("div",dc,[S("span",{class:"dimmer-fill",style:ps({width:`${y.level||0}%`})},null,4)]),S("div",hc,[S("span",pc,"Updated "+K(Z(y.lastUpdateMs)),1),S("span",{class:Qe(["pill",Number(y.level||0)>0?"success":"neutral"])},K(Number(y.level||0)>0?"ACTIVE":"IDLE"),3)])],2))),128))])):(oe(),le("p",gc,"No dimmer values detected yet."))]),S("section",mc,[S("div",_c,[v[19]||(v[19]=S("h2",null,"Recent KNX Values",-1)),S("span",bc,K(ze.value.length)+" preview",1)]),ze.value.length?(oe(),le("div",yc,[(oe(!0),le(_e,null,Yt(ze.value,y=>(oe(),le("article",{key:y.address,class:"other-row"},[S("div",null,[S("strong",null,K(y.devicename||y.address),1),S("p",null,K(y.address)+K(y.dpt?` | ${y.dpt}`:""),1)]),S("div",vc,[S("span",xc,K(y.payloadText||"-"),1),S("span",wc,K(Z(y.lastUpdateMs)),1)])]))),128))])):(oe(),le("p",Sc,"No additional KNX values available for preview."))])]))}};El(Cc).mount("#app");
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function s(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=s(r);fetch(r.href,i)}})();function Js(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const G={},pt=[],De=()=>{},Gn=()=>!1,fs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),us=e=>e.startsWith("onUpdate:"),ie=Object.assign,Gs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},oi=Object.prototype.hasOwnProperty,W=(e,t)=>oi.call(e,t),M=Array.isArray,gt=e=>Bt(e)==="[object Map]",wt=e=>Bt(e)==="[object Set]",gn=e=>Bt(e)==="[object Date]",D=e=>typeof e=="function",Q=e=>typeof e=="string",Le=e=>typeof e=="symbol",X=e=>e!==null&&typeof e=="object",zn=e=>(X(e)||D(e))&&D(e.then)&&D(e.catch),Yn=Object.prototype.toString,Bt=e=>Yn.call(e),li=e=>Bt(e).slice(8,-1),Zn=e=>Bt(e)==="[object Object]",zs=e=>Q(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Nt=Js(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),as=e=>{const t=Object.create(null);return(s=>t[s]||(t[s]=e(s)))},ci=/-\w/g,Se=as(e=>e.replace(ci,t=>t.slice(1).toUpperCase())),fi=/\B([A-Z])/g,at=as(e=>e.replace(fi,"-$1").toLowerCase()),Qn=as(e=>e.charAt(0).toUpperCase()+e.slice(1)),Cs=as(e=>e?`on${Qn(e)}`:""),Ke=(e,t)=>!Object.is(e,t),Qt=(e,...t)=>{for(let s=0;s<e.length;s++)e[s](...t)},er=(e,t,s,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},ds=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let mn;const hs=()=>mn||(mn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ps(e){if(M(e)){const t={};for(let s=0;s<e.length;s++){const n=e[s],r=Q(n)?hi(n):ps(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(Q(e)||X(e))return e}const ui=/;(?![^(]*\))/g,ai=/:([^]+)/,di=/\/\*[^]*?\*\//g;function hi(e){const t={};return e.replace(di,"").split(ui).forEach(s=>{if(s){const n=s.split(ai);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Qe(e){let t="";if(Q(e))t=e;else if(M(e))for(let s=0;s<e.length;s++){const n=Qe(e[s]);n&&(t+=n+" ")}else if(X(e))for(const s in e)e[s]&&(t+=s+" ");return t.trim()}const pi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gi=Js(pi);function tr(e){return!!e||e===""}function mi(e,t){if(e.length!==t.length)return!1;let s=!0;for(let n=0;s&&n<e.length;n++)s=St(e[n],t[n]);return s}function St(e,t){if(e===t)return!0;let s=gn(e),n=gn(t);if(s||n)return s&&n?e.getTime()===t.getTime():!1;if(s=Le(e),n=Le(t),s||n)return e===t;if(s=M(e),n=M(t),s||n)return s&&n?mi(e,t):!1;if(s=X(e),n=X(t),s||n){if(!s||!n)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),f=t.hasOwnProperty(o);if(l&&!f||!l&&f||!St(e[o],t[o]))return!1}}return String(e)===String(t)}function Ys(e,t){return e.findIndex(s=>St(s,t))}const sr=e=>!!(e&&e.__v_isRef===!0),U=e=>Q(e)?e:e==null?"":M(e)||X(e)&&(e.toString===Yn||!D(e.toString))?sr(e)?U(e.value):JSON.stringify(e,nr,2):String(e),nr=(e,t)=>sr(t)?nr(e,t.value):gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[Ts(n,i)+" =>"]=r,s),{})}:wt(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>Ts(s))}:Le(t)?Ts(t):X(t)&&!M(t)&&!Zn(t)?String(t):t,Ts=(e,t="")=>{var s;return Le(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};let se;class _i{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&&se&&(se.active?(this.parent=se,this.index=(se.scopes||(se.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){const n=this.scopes.slice();for(t=0,s=n.length;t<s;t++)n[t].pause()}for(t=0,s=this.effects.length;t<s;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,s;if(this.scopes){const r=this.scopes.slice();for(t=0,s=r.length;t<s;t++)r[t].resume()}const n=this.effects.slice();for(t=0,s=n.length;t<s;t++)n[t].resume()}}run(t){if(this._active){const s=se;try{return se=this,t()}finally{se=s}}}on(){++this._on===1&&(this.prevScope=se,se=this)}off(){if(this._on>0&&--this._on===0){if(se===this)se=this.prevScope;else{let t=se;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;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(s=0,n=r.length;s<n;s++)r[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function bi(){return se}let z;const As=new WeakSet;class rr{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,se&&(se.active?se.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,As.has(this)&&(As.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||or(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_n(this),lr(this);const t=z,s=Ce;z=this,Ce=!0;try{return this.fn()}finally{cr(this),z=t,Ce=s,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)en(t);this.deps=this.depsTail=void 0,_n(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?As.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$s(this)&&this.run()}get dirty(){return $s(this)}}let ir=0,Mt,Rt;function or(e,t=!1){if(e.flags|=8,t){e.next=Rt,Rt=e;return}e.next=Mt,Mt=e}function Zs(){ir++}function Qs(){if(--ir>0)return;if(Rt){let t=Rt;for(Rt=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;Mt;){let t=Mt;for(Mt=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 lr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function cr(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),en(n),yi(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function $s(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Lt)||(e.globalVersion=Lt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$s(e))))return;e.flags|=2;const t=e.dep,s=z,n=Ce;z=e,Ce=!0;try{lr(e);const r=e.fn(e._value);(t.version===0||Ke(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{z=s,Ce=n,cr(e),e.flags&=-3}}function en(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)en(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function yi(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let Ce=!0;const ur=[];function ke(){ur.push(Ce),Ce=!1}function qe(){const e=ur.pop();Ce=e===void 0?!0:e}function _n(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=z;z=void 0;try{t()}finally{z=s}}}let Lt=0;class vi{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 ar{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(!z||!Ce||z===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==z)s=this.activeLink=new vi(z,this),z.deps?(s.prevDep=z.depsTail,z.depsTail.nextDep=s,z.depsTail=s):z.deps=z.depsTail=s,dr(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=z.depsTail,s.nextDep=void 0,z.depsTail.nextDep=s,z.depsTail=s,z.deps===s&&(z.deps=n)}return s}trigger(t){this.version++,Lt++,this.notify(t)}notify(t){Zs();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Qs()}}}function dr(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)dr(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const Hs=new WeakMap,ot=Symbol(""),js=Symbol(""),$t=Symbol("");function re(e,t,s){if(Ce&&z){let n=Hs.get(e);n||Hs.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new ar),r.map=n,r.key=s),r.track()}}function We(e,t,s,n,r,i){const o=Hs.get(e);if(!o){Lt++;return}const l=f=>{f&&f.trigger()};if(Zs(),t==="clear")o.forEach(l);else{const f=M(e),d=f&&zs(s);if(f&&s==="length"){const a=Number(n);o.forEach((p,A)=>{(A==="length"||A===$t||!Le(A)&&A>=a)&&l(p)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),d&&l(o.get($t)),t){case"add":f?d&&l(o.get("length")):(l(o.get(ot)),gt(e)&&l(o.get(js)));break;case"delete":f||(l(o.get(ot)),gt(e)&&l(o.get(js)));break;case"set":gt(e)&&l(o.get(ot));break}}Qs()}function dt(e){const t=q(e);return t===e?t:(re(t,"iterate",$t),Te(e)?t:t.map(Xe))}function gs(e){return re(e=q(e),"iterate",$t),e}function Re(e,t){return tt(e)?yt(lt(e)?Xe(t):t):Xe(t)}const xi={__proto__:null,[Symbol.iterator](){return Es(this,Symbol.iterator,e=>Re(this,e))},concat(...e){return dt(this).concat(...e.map(t=>M(t)?dt(t):t))},entries(){return Es(this,"entries",e=>(e[1]=Re(this,e[1]),e))},every(e,t){return He(this,"every",e,t,void 0,arguments)},filter(e,t){return He(this,"filter",e,t,s=>s.map(n=>Re(this,n)),arguments)},find(e,t){return He(this,"find",e,t,s=>Re(this,s),arguments)},findIndex(e,t){return He(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return He(this,"findLast",e,t,s=>Re(this,s),arguments)},findLastIndex(e,t){return He(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return He(this,"forEach",e,t,void 0,arguments)},includes(...e){return Os(this,"includes",e)},indexOf(...e){return Os(this,"indexOf",e)},join(e){return dt(this).join(e)},lastIndexOf(...e){return Os(this,"lastIndexOf",e)},map(e,t){return He(this,"map",e,t,void 0,arguments)},pop(){return Et(this,"pop")},push(...e){return Et(this,"push",e)},reduce(e,...t){return bn(this,"reduce",e,t)},reduceRight(e,...t){return bn(this,"reduceRight",e,t)},shift(){return Et(this,"shift")},some(e,t){return He(this,"some",e,t,void 0,arguments)},splice(...e){return Et(this,"splice",e)},toReversed(){return dt(this).toReversed()},toSorted(e){return dt(this).toSorted(e)},toSpliced(...e){return dt(this).toSpliced(...e)},unshift(...e){return Et(this,"unshift",e)},values(){return Es(this,"values",e=>Re(this,e))}};function Es(e,t,s){const n=gs(e),r=n[t]();return n!==e&&!Te(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=s(i.value)),i}),r}const wi=Array.prototype;function He(e,t,s,n,r,i){const o=gs(e),l=o!==e&&!Te(e),f=o[t];if(f!==wi[t]){const p=f.apply(e,i);return l?Xe(p):p}let d=s;o!==e&&(l?d=function(p,A){return s.call(this,Re(e,p),A,e)}:s.length>2&&(d=function(p,A){return s.call(this,p,A,e)}));const a=f.call(o,d,n);return l&&r?r(a):a}function bn(e,t,s,n){const r=gs(e),i=r!==e&&!Te(e);let o=s,l=!1;r!==e&&(i?(l=n.length===0,o=function(d,a,p){return l&&(l=!1,d=Re(e,d)),s.call(this,d,Re(e,a),p,e)}):s.length>3&&(o=function(d,a,p){return s.call(this,d,a,p,e)}));const f=r[t](o,...n);return l?Re(e,f):f}function Os(e,t,s){const n=q(e);re(n,"iterate",$t);const r=n[t](...s);return(r===-1||r===!1)&&nn(s[0])?(s[0]=q(s[0]),n[t](...s)):r}function Et(e,t,s=[]){ke(),Zs();const n=q(e)[t].apply(e,s);return Qs(),qe(),n}const Si=Js("__proto__,__v_isRef,__isVue"),hr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Le));function Ci(e){Le(e)||(e=String(e));const t=q(this);return re(t,"has",e),t.hasOwnProperty(e)}class pr{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?Fi:br:i?_r:mr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=M(t);if(!r){let f;if(o&&(f=xi[s]))return f;if(s==="hasOwnProperty")return Ci}const l=Reflect.get(t,s,ae(t)?t:n);if((Le(s)?hr.has(s):Si(s))||(r||re(t,"get",s),i))return l;if(ae(l)){const f=o&&zs(s)?l:l.value;return r&&X(f)?Ks(f):f}return X(l)?r?Ks(l):ms(l):l}}class gr extends pr{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];const o=M(t)&&zs(s);if(!this._isShallow){const d=tt(i);if(!Te(n)&&!tt(n)&&(i=q(i),n=q(n)),!o&&ae(i)&&!ae(n))return d||(i.value=n),!0}const l=o?Number(s)<t.length:W(t,s),f=Reflect.set(t,s,n,ae(t)?t:r);return t===q(r)&&f&&(l?Ke(n,i)&&We(t,"set",s,n):We(t,"add",s,n)),f}deleteProperty(t,s){const n=W(t,s);t[s];const r=Reflect.deleteProperty(t,s);return r&&n&&We(t,"delete",s,void 0),r}has(t,s){const n=Reflect.has(t,s);return(!Le(s)||!hr.has(s))&&re(t,"has",s),n}ownKeys(t){return re(t,"iterate",M(t)?"length":ot),Reflect.ownKeys(t)}}class Ti extends pr{constructor(t=!1){super(!0,t)}set(t,s){return!0}deleteProperty(t,s){return!0}}const Ai=new gr,Ei=new Ti,Oi=new gr(!0);const Us=e=>e,Jt=e=>Reflect.getPrototypeOf(e);function Ii(e,t,s){return function(...n){const r=this.__v_raw,i=q(r),o=gt(i),l=e==="entries"||e===Symbol.iterator&&o,f=e==="keys"&&o,d=r[e](...n),a=s?Us:t?yt:Xe;return!t&&re(i,"iterate",f?js:ot),ie(Object.create(d),{next(){const{value:p,done:A}=d.next();return A?{value:p,done:A}:{value:l?[a(p[0]),a(p[1])]:a(p),done:A}}})}}function Gt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Pi(e,t){const s={get(r){const i=this.__v_raw,o=q(i),l=q(r);e||(Ke(r,l)&&re(o,"get",r),re(o,"get",l));const{has:f}=Jt(o),d=t?Us:e?yt:Xe;if(f.call(o,r))return d(i.get(r));if(f.call(o,l))return d(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&re(q(r),"iterate",ot),r.size},has(r){const i=this.__v_raw,o=q(i),l=q(r);return e||(Ke(r,l)&&re(o,"has",r),re(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,f=q(l),d=t?Us:e?yt:Xe;return!e&&re(f,"iterate",ot),l.forEach((a,p)=>r.call(i,d(a),d(p),o))}};return ie(s,e?{add:Gt("add"),set:Gt("set"),delete:Gt("delete"),clear:Gt("clear")}:{add(r){const i=q(this),o=Jt(i),l=q(r),f=!t&&!Te(r)&&!tt(r)?l:r;return o.has.call(i,f)||Ke(r,f)&&o.has.call(i,r)||Ke(l,f)&&o.has.call(i,l)||(i.add(f),We(i,"add",f,f)),this},set(r,i){!t&&!Te(i)&&!tt(i)&&(i=q(i));const o=q(this),{has:l,get:f}=Jt(o);let d=l.call(o,r);d||(r=q(r),d=l.call(o,r));const a=f.call(o,r);return o.set(r,i),d?Ke(i,a)&&We(o,"set",r,i):We(o,"add",r,i),this},delete(r){const i=q(this),{has:o,get:l}=Jt(i);let f=o.call(i,r);f||(r=q(r),f=o.call(i,r)),l&&l.call(i,r);const d=i.delete(r);return f&&We(i,"delete",r,void 0),d},clear(){const r=q(this),i=r.size!==0,o=r.clear();return i&&We(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Ii(r,e,t)}),s}function tn(e,t){const s=Pi(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(W(s,r)&&r in n?s:n,r,i)}const Ni={get:tn(!1,!1)},Mi={get:tn(!1,!0)},Ri={get:tn(!0,!1)};const mr=new WeakMap,_r=new WeakMap,br=new WeakMap,Fi=new WeakMap;function Vi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ms(e){return tt(e)?e:sn(e,!1,Ai,Ni,mr)}function Di(e){return sn(e,!1,Oi,Mi,_r)}function Ks(e){return sn(e,!0,Ei,Ri,br)}function sn(e,t,s,n,r){if(!X(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const o=Vi(li(e));if(o===0)return e;const l=new Proxy(e,o===2?n:s);return r.set(e,l),l}function lt(e){return tt(e)?lt(e.__v_raw):!!(e&&e.__v_isReactive)}function tt(e){return!!(e&&e.__v_isReadonly)}function Te(e){return!!(e&&e.__v_isShallow)}function nn(e){return e?!!e.__v_raw:!1}function q(e){const t=e&&e.__v_raw;return t?q(t):e}function Li(e){return!W(e,"__v_skip")&&Object.isExtensible(e)&&er(e,"__v_skip",!0),e}const Xe=e=>X(e)?ms(e):e,yt=e=>X(e)?Ks(e):e;function ae(e){return e?e.__v_isRef===!0:!1}function $i(e){return ae(e)?e.value:e}const Hi={get:(e,t,s)=>t==="__v_raw"?e:$i(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return ae(r)&&!ae(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function yr(e){return lt(e)?e:new Proxy(e,Hi)}class ji{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new ar(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Lt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&z!==this)return or(this,!0),!0}get value(){const t=this.dep.track();return fr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ui(e,t,s=!1){let n,r;return D(e)?n=e:(n=e.get,r=e.set),new ji(n,r,s)}const zt={},ss=new WeakMap;let it;function Ki(e,t=!1,s=it){if(s){let n=ss.get(s);n||ss.set(s,n=[]),n.push(e)}}function Wi(e,t,s=G){const{immediate:n,deep:r,once:i,scheduler:o,augmentJob:l,call:f}=s,d=P=>r?P:Te(P)||r===!1||r===0?Be(P,1):Be(P);let a,p,A,O,K=!1,F=!1;if(ae(e)?(p=()=>e.value,K=Te(e)):lt(e)?(p=()=>d(e),K=!0):M(e)?(F=!0,K=e.some(P=>lt(P)||Te(P)),p=()=>e.map(P=>{if(ae(P))return P.value;if(lt(P))return d(P);if(D(P))return f?f(P,2):P()})):D(e)?t?p=f?()=>f(e,2):e:p=()=>{if(A){ke();try{A()}finally{qe()}}const P=it;it=a;try{return f?f(e,3,[O]):e(O)}finally{it=P}}:p=De,t&&r){const P=p,Z=r===!0?1/0:r;p=()=>Be(P(),Z)}const Y=bi(),B=()=>{a.stop(),Y&&Y.active&&Gs(Y.effects,a)};if(i&&t){const P=t;t=(...Z)=>{const ye=P(...Z);return B(),ye}}let $=F?new Array(e.length).fill(zt):zt;const j=P=>{if(!(!(a.flags&1)||!a.dirty&&!P))if(t){const Z=a.run();if(P||r||K||(F?Z.some((ye,ge)=>Ke(ye,$[ge])):Ke(Z,$))){A&&A();const ye=it;it=a;try{const ge=[Z,$===zt?void 0:F&&$[0]===zt?[]:$,O];$=Z,f?f(t,3,ge):t(...ge)}finally{it=ye}}}else a.run()};return l&&l(j),a=new rr(p),a.scheduler=o?()=>o(j,!1):j,O=P=>Ki(P,!1,a),A=a.onStop=()=>{const P=ss.get(a);if(P){if(f)f(P,4);else for(const Z of P)Z();ss.delete(a)}},t?n?j(!0):$=a.run():o?o(j.bind(null,!0),!0):a.run(),B.pause=a.pause.bind(a),B.resume=a.resume.bind(a),B.stop=B,B}function Be(e,t=1/0,s){if(t<=0||!X(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,ae(e))Be(e.value,t,s);else if(M(e))for(let n=0;n<e.length;n++)Be(e[n],t,s);else if(wt(e)||gt(e))e.forEach(n=>{Be(n,t,s)});else if(Zn(e)){for(const n in e)Be(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Be(e[n],t,s)}return e}function kt(e,t,s,n){try{return n?e(...n):e()}catch(r){_s(r,t,s)}}function Ae(e,t,s,n){if(D(e)){const r=kt(e,t,s,n);return r&&zn(r)&&r.catch(i=>{_s(i,t,s)}),r}if(M(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Ae(e[i],t,s,n));return r}}function _s(e,t,s,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||G;if(t){let l=t.parent;const f=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${s}`;for(;l;){const a=l.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](e,f,d)===!1)return}l=l.parent}if(i){ke(),kt(i,null,10,[e,f,d]),qe();return}}Bi(e,s,r,n,o)}function Bi(e,t,s,n=!0,r=!1){if(r)throw e;console.error(e)}const fe=[];let Me=-1;const mt=[];let Ze=null,ht=0;const vr=Promise.resolve();let ns=null;function xr(e){const t=ns||vr;return e?t.then(this?e.bind(this):e):t}function ki(e){let t=Me+1,s=fe.length;for(;t<s;){const n=t+s>>>1,r=fe[n],i=Ht(r);i<e||i===e&&r.flags&2?t=n+1:s=n}return t}function rn(e){if(!(e.flags&1)){const t=Ht(e),s=fe[fe.length-1];!s||!(e.flags&2)&&t>=Ht(s)?fe.push(e):fe.splice(ki(t),0,e),e.flags|=1,wr()}}function wr(){ns||(ns=vr.then(Cr))}function qi(e){if(!M(e))Ze&&e.id===-1?Ze.splice(ht+1,0,e):e.flags&1||(mt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)mt.push(e[t]);wr()}function yn(e,t,s=Me+1){for(;s<fe.length;s++){const n=fe[s];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;fe.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Sr(e){if(mt.length){const t=[...new Set(mt)].sort((s,n)=>Ht(s)-Ht(n));if(mt.length=0,Ze){for(let s=0;s<t.length;s++)Ze.push(t[s]);return}for(Ze=t,ht=0;ht<Ze.length;ht++){const s=Ze[ht];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Ze=null,ht=0}}const Ht=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Cr(e){try{for(Me=0;Me<fe.length;Me++){const t=fe[Me];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),kt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Me<fe.length;Me++){const t=fe[Me];t&&(t.flags&=-2)}Me=-1,fe.length=0,Sr(),ns=null,(fe.length||mt.length)&&Cr()}}let ve=null,Tr=null;function rs(e){const t=ve;return ve=e,Tr=e&&e.type.__scopeId||null,t}function Xi(e,t=ve,s){if(!t||e._n)return e;const n=(...r)=>{n._d&&Pn(-1);const i=rs(t),o=ct.length;let l;try{l=e(...r)}finally{for(let f=ct.length;f>o;f--)Yr();rs(i),n._d&&Pn(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function Is(e,t){if(ve===null)return e;const s=ws(ve),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,f=G]=t[r];i&&(D(i)&&(i={mounted:i,updated:i}),i.deep&&Be(o),n.push({dir:i,instance:s,value:o,oldValue:void 0,arg:l,modifiers:f}))}return e}function nt(e,t,s,n){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let f=l.dir[n];f&&(ke(),Ae(f,s,8,[e.el,l,e,t]),qe())}}function Ji(e,t){if(ue){let s=ue.provides;const n=ue.parent&&ue.parent.provides;n===s&&(s=ue.provides=Object.create(n)),s[e]=t}}function es(e,t,s=!1){const n=qo();if(n||bt){let r=bt?bt._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return s&&D(t)?t.call(n&&n.proxy):t}}const Gi=Symbol.for("v-scx"),zi=()=>es(Gi);function _t(e,t,s){return Ar(e,t,s)}function Ar(e,t,s=G){const{immediate:n,deep:r,flush:i,once:o}=s,l=ie({},s),f=t&&n||!t&&i!=="post";let d;if(Kt){if(i==="sync"){const O=zi();d=O.__watcherHandles||(O.__watcherHandles=[])}else if(!f){const O=()=>{};return O.stop=De,O.resume=De,O.pause=De,O}}const a=ue;l.call=(O,K,F)=>Ae(O,a,K,F);let p=!1;i==="post"?l.scheduler=O=>{pe(O,a&&a.suspense)}:i!=="sync"&&(p=!0,l.scheduler=(O,K)=>{K?O():rn(O)}),l.augmentJob=O=>{t&&(O.flags|=4),p&&(O.flags|=2,a&&(O.id=a.uid,O.i=a))};const A=Wi(e,t,l);return Kt&&(d?d.push(A):f&&A()),A}function Yi(e,t,s){const n=this.proxy,r=Q(e)?e.includes(".")?Er(n,e):()=>n[e]:e.bind(n,n);let i;D(t)?i=t:(i=t.handler,s=t);const o=qt(this),l=Ar(r,i.bind(n),s);return o(),l}function Er(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;r<s.length&&n;r++)n=n[s[r]];return n}}const Zi=Symbol("_vte"),bs=e=>e.__isTeleport,Ps=Symbol("_leaveCb");function Qi(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==ut){t=s;break}}return t}function Or(e){if(!ln(e))return bs(e.type)&&e.children?Qi(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&D(s.default))return s.default()}}function on(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const s=e.component.subTree;on(bs(s.type)&&Or(s)||s,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ir(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function vn(e,t){let s;return!!((s=Object.getOwnPropertyDescriptor(e,t))&&!s.configurable)}const is=new WeakMap;function Ft(e,t,s,n,r=!1){if(M(e)){e.forEach((F,Y)=>Ft(F,t&&(M(t)?t[Y]:t),s,n,r));return}if(Vt(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Ft(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?ws(n.component):n.el,o=r?null:i,{i:l,r:f}=e,d=t&&t.r,a=l.refs===G?l.refs={}:l.refs,p=l.setupState,A=q(p),O=p===G?Gn:F=>vn(a,F)?!1:W(A,F),K=(F,Y)=>!(Y&&vn(a,Y));if(d!=null&&d!==f){if(xn(t),Q(d))a[d]=null,O(d)&&(p[d]=null);else if(ae(d)){const F=t;K(d,F.k)&&(d.value=null),F.k&&(a[F.k]=null)}}if(D(f))kt(f,l,12,[o,a]);else{const F=Q(f),Y=ae(f);if(F||Y){const B=()=>{if(e.f){const $=F?O(f)?p[f]:a[f]:K()||!e.k?f.value:a[e.k];if(r)M($)&&Gs($,i);else if(M($))$.includes(i)||$.push(i);else if(F)a[f]=[i],O(f)&&(p[f]=a[f]);else{const j=[i];K(f,e.k)&&(f.value=j),e.k&&(a[e.k]=j)}}else F?(a[f]=o,O(f)&&(p[f]=o)):Y&&(K(f,e.k)&&(f.value=o),e.k&&(a[e.k]=o))};if(o){const $=()=>{B(),is.delete(e)};$.id=-1,is.set(e,$),pe($,s)}else xn(e),B()}}}function xn(e){const t=is.get(e);t&&(t.flags|=8,is.delete(e))}hs().requestIdleCallback;hs().cancelIdleCallback;const Vt=e=>!!e.type.__asyncLoader,ln=e=>e.type.__isKeepAlive;function eo(e,t){Pr(e,"a",t)}function to(e,t){Pr(e,"da",t)}function Pr(e,t,s=ue){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ys(t,n,s),s){let r=s.parent;for(;r&&r.parent;)ln(r.parent.vnode)&&so(n,t,s,r),r=r.parent}}function so(e,t,s,n){const r=ys(t,e,n,!0);Rr(()=>{Gs(n[t],r)},s)}function ys(e,t,s=ue,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ke();const l=qt(s),f=Ae(t,s,e,o);return l(),qe(),f});return n?r.unshift(i):r.push(i),i}}const Je=e=>(t,s=ue)=>{(!Kt||e==="sp")&&ys(e,(...n)=>t(...n),s)},no=Je("bm"),Nr=Je("m"),ro=Je("bu"),io=Je("u"),Mr=Je("bum"),Rr=Je("um"),oo=Je("sp"),lo=Je("rtg"),co=Je("rtc");function fo(e,t=ue){ys("ec",e,t)}const uo=Symbol.for("v-ndc");function Yt(e,t,s,n){let r;const i=s,o=M(e);if(o||Q(e)){const l=o&&lt(e);let f=!1,d=!1;l&&(f=!Te(e),d=tt(e),e=gs(e)),r=new Array(e.length);for(let a=0,p=e.length;a<p;a++)r[a]=t(f?d?yt(Xe(e[a])):Xe(e[a]):e[a],a,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(X(e))if(e[Symbol.iterator])r=Array.from(e,(l,f)=>t(l,f,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let f=0,d=l.length;f<d;f++){const a=l[f];r[f]=t(e[a],a,f,i)}}else r=[];return r}const Ws=e=>e?ei(e)?ws(e):Ws(e.parent):null,Dt=ie(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=>Ws(e.parent),$root:e=>Ws(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Vr(e),$forceUpdate:e=>e.f||(e.f=()=>{rn(e.update)}),$nextTick:e=>e.n||(e.n=xr.bind(e.proxy)),$watch:e=>Yi.bind(e)}),Ns=(e,t)=>e!==G&&!e.__isScriptSetup&&W(e,t),ao={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:l,appContext:f}=e;if(t[0]!=="$"){const A=o[t];if(A!==void 0)switch(A){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(Ns(n,t))return o[t]=1,n[t];if(r!==G&&W(r,t))return o[t]=2,r[t];if(W(i,t))return o[t]=3,i[t];if(s!==G&&W(s,t))return o[t]=4,s[t];Bs&&(o[t]=0)}}const d=Dt[t];let a,p;if(d)return t==="$attrs"&&re(e.attrs,"get",""),d(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(s!==G&&W(s,t))return o[t]=4,s[t];if(p=f.config.globalProperties,W(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return Ns(r,t)?(r[t]=s,!0):n!==G&&W(n,t)?(n[t]=s,!0):W(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:i,type:o}},l){let f;return!!(s[l]||e!==G&&l[0]!=="$"&&W(e,l)||Ns(t,l)||W(i,l)||W(n,l)||W(Dt,l)||W(r.config.globalProperties,l)||(f=o.__cssModules)&&f[l])},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 wn(e){return M(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let Bs=!0;function ho(e){const t=Vr(e),s=e.proxy,n=e.ctx;Bs=!1,t.beforeCreate&&Sn(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:f,inject:d,created:a,beforeMount:p,mounted:A,beforeUpdate:O,updated:K,activated:F,deactivated:Y,beforeDestroy:B,beforeUnmount:$,destroyed:j,unmounted:P,render:Z,renderTracked:ye,renderTriggered:ge,errorCaptured:ne,serverPrefetch:st,expose:xe,inheritAttrs:$e,components:Ge,directives:ze,filters:E}=t;if(d&&po(d,n,null),o)for(const L in o){const V=o[L];D(V)&&(n[L]=V.bind(s))}if(r){const L=r.call(s,s);X(L)&&(e.data=ms(L))}if(Bs=!0,i)for(const L in i){const V=i[L],de=D(V)?V.bind(s,s):D(V.get)?V.get.bind(s,s):De,he=!D(V)&&D(V.set)?V.set.bind(s):De,we=Ye({get:de,set:he});Object.defineProperty(n,L,{enumerable:!0,configurable:!0,get:()=>we.value,set:Ee=>we.value=Ee})}if(l)for(const L in l)Fr(l[L],n,s,L);if(f){const L=D(f)?f.call(s):f;Reflect.ownKeys(L).forEach(V=>{Ji(V,L[V])})}a&&Sn(a,e,"c");function y(L,V){M(V)?V.forEach(de=>L(de.bind(s))):V&&L(V.bind(s))}if(y(no,p),y(Nr,A),y(ro,O),y(io,K),y(eo,F),y(to,Y),y(fo,ne),y(co,ye),y(lo,ge),y(Mr,$),y(Rr,P),y(oo,st),M(xe))if(xe.length){const L=e.exposed||(e.exposed={});xe.forEach(V=>{Object.defineProperty(L,V,{get:()=>s[V],set:de=>s[V]=de,enumerable:!0})})}else e.exposed||(e.exposed={});Z&&e.render===De&&(e.render=Z),$e!=null&&(e.inheritAttrs=$e),Ge&&(e.components=Ge),ze&&(e.directives=ze),st&&Ir(e)}function po(e,t,s=De){M(e)&&(e=ks(e));for(const n in e){const r=e[n];let i;X(r)?"default"in r?i=es(r.from||n,r.default,!0):i=es(r.from||n):i=es(r),ae(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function Sn(e,t,s){Ae(M(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Fr(e,t,s,n){let r=n.includes(".")?Er(s,n):()=>s[n];if(Q(e)){const i=t[e];D(i)&&_t(r,i)}else if(D(e))_t(r,e.bind(s));else if(X(e))if(M(e))e.forEach(i=>Fr(i,t,s,n));else{const i=D(e.handler)?e.handler.bind(s):t[e.handler];D(i)&&_t(r,i,e)}}function Vr(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let f;return l?f=l:!r.length&&!s&&!n?f=t:(f={},r.length&&r.forEach(d=>os(f,d,o,!0)),os(f,t,o)),X(t)&&i.set(t,f),f}function os(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&os(e,i,s,!0),r&&r.forEach(o=>os(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=go[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const go={data:Cn,props:Tn,emits:Tn,methods:It,computed:It,beforeCreate:ce,created:ce,beforeMount:ce,mounted:ce,beforeUpdate:ce,updated:ce,beforeDestroy:ce,beforeUnmount:ce,destroyed:ce,unmounted:ce,activated:ce,deactivated:ce,errorCaptured:ce,serverPrefetch:ce,components:It,directives:It,watch:_o,provide:Cn,inject:mo};function Cn(e,t){return t?e?function(){return ie(D(e)?e.call(this,this):e,D(t)?t.call(this,this):t)}:t:e}function mo(e,t){return It(ks(e),ks(t))}function ks(e){if(M(e)){const t={};for(let s=0;s<e.length;s++)t[e[s]]=e[s];return t}return e}function ce(e,t){return e?[...new Set([].concat(e,t))]:t}function It(e,t){return e?ie(Object.create(null),e,t):t}function Tn(e,t){return e?M(e)&&M(t)?[...new Set([...e,...t])]:ie(Object.create(null),wn(e),wn(t??{})):t}function _o(e,t){if(!e)return t;if(!t)return e;const s=ie(Object.create(null),e);for(const n in t)s[n]=ce(e[n],t[n]);return s}function Dr(){return{app:null,config:{isNativeTag:Gn,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let bo=0;function yo(e,t){return function(n,r=null){D(n)||(n=ie({},n)),r!=null&&!X(r)&&(r=null);const i=Dr(),o=new WeakSet,l=[];let f=!1;const d=i.app={_uid:bo++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Zo,get config(){return i.config},set config(a){},use(a,...p){return o.has(a)||(a&&D(a.install)?(o.add(a),a.install(d,...p)):D(a)&&(o.add(a),a(d,...p))),d},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),d},component(a,p){return p?(i.components[a]=p,d):i.components[a]},directive(a,p){return p?(i.directives[a]=p,d):i.directives[a]},mount(a,p,A){if(!f){const O=d._ceVNode||ft(n,r);return O.appContext=i,A===!0?A="svg":A===!1&&(A=void 0),e(O,a,A),f=!0,d._container=a,a.__vue_app__=d,ws(O.component)}},onUnmount(a){l.push(a)},unmount(){f&&(Ae(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(a,p){return i.provides[a]=p,d},runWithContext(a){const p=bt;bt=d;try{return a()}finally{bt=p}}};return d}}let bt=null;const vo=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Se(t)}Modifiers`]||e[`${at(t)}Modifiers`];function xo(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||G;let r=s;const i=t.startsWith("update:"),o=i&&vo(n,t.slice(7));o&&(o.trim&&(r=s.map(a=>Q(a)?a.trim():a)),o.number&&(r=s.map(ds)));let l,f=n[l=Cs(t)]||n[l=Cs(Se(t))];!f&&i&&(f=n[l=Cs(at(t))]),f&&Ae(f,e,6,r);const d=n[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ae(d,e,6,r)}}const wo=new WeakMap;function Lr(e,t,s=!1){const n=s?wo:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!D(e)){const f=d=>{const a=Lr(d,t,!0);a&&(l=!0,ie(o,a))};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!l?(X(e)&&n.set(e,null),null):(M(i)?i.forEach(f=>o[f]=null):ie(o,i),X(e)&&n.set(e,o),o)}function vs(e,t){return!e||!fs(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),W(e,t[0].toLowerCase()+t.slice(1))||W(e,at(t))||W(e,t))}function An(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:f,render:d,renderCache:a,props:p,data:A,setupState:O,ctx:K,inheritAttrs:F}=e,Y=rs(e);let B,$;try{if(s.shapeFlag&4){const P=r||n,Z=P;B=Fe(d.call(Z,P,a,p,O,A,K)),$=l}else{const P=t;B=Fe(P.length>1?P(p,{attrs:l,slots:o,emit:f}):P(p,null)),$=t.props?l:So(l)}}catch(P){ct.length=0,_s(P,e,1),B=ft(ut)}let j=B;if($&&F!==!1){const P=Object.keys($),{shapeFlag:Z}=j;P.length&&Z&7&&(i&&P.some(us)&&($=Co($,i)),j=vt(j,$,!1,!0))}if(s.dirs&&(j=vt(j,null,!1,!0),j.dirs=j.dirs?j.dirs.concat(s.dirs):s.dirs),s.transition){const P=bs(j.type)&&Or(j)||j;on(P,s.transition)}return B=j,rs(Y),B}const So=e=>{let t;for(const s in e)(s==="class"||s==="style"||fs(s))&&((t||(t={}))[s]=e[s]);return t},Co=(e,t)=>{const s={};for(const n in e)(!us(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function To(e,t,s){const{props:n,children:r,component:i}=e,{props:o,children:l,patchFlag:f}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&f>=0){if(f&1024)return!0;if(f&16)return n?En(n,o,d):!!o;if(f&8){const a=t.dynamicProps;for(let p=0;p<a.length;p++){const A=a[p];if($r(o,n,A)&&!vs(d,A))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:n===o?!1:n?o?En(n,o,d):!0:!!o;return!1}function En(e,t,s){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if($r(t,e,i)&&!vs(s,i))return!0}return!1}function $r(e,t,s){const n=e[s],r=t[s];return s==="style"&&X(n)&&X(r)?!St(n,r):n!==r}function Ao({vnode:e,parent:t,suspense:s},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=n,e=r),r===e)(e=t.vnode).el=n,t=t.parent;else break}s&&s.activeBranch===e&&(s.vnode.el=n)}const Hr={},jr=()=>Object.create(Hr),Ur=e=>Object.getPrototypeOf(e)===Hr;function Eo(e,t,s,n=!1){const r={},i=jr();e.propsDefaults=Object.create(null),Kr(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=n?r:Di(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Oo(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=q(r),[f]=e.propsOptions;let d=!1;if((n||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let p=0;p<a.length;p++){let A=a[p];if(vs(e.emitsOptions,A))continue;const O=t[A];if(f)if(W(i,A))O!==i[A]&&(i[A]=O,d=!0);else{const K=Se(A);r[K]=qs(f,l,K,O,e,!1)}else O!==i[A]&&(i[A]=O,d=!0)}}}else{Kr(e,t,r,i)&&(d=!0);let a;for(const p in l)(!t||!W(t,p)&&((a=at(p))===p||!W(t,a)))&&(f?s&&(s[p]!==void 0||s[a]!==void 0)&&(r[p]=qs(f,l,p,void 0,e,!0)):delete r[p]);if(i!==l)for(const p in i)(!t||!W(t,p))&&(delete i[p],d=!0)}d&&We(e.attrs,"set","")}function Kr(e,t,s,n){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let f in t){if(Nt(f))continue;const d=t[f];let a;r&&W(r,a=Se(f))?!i||!i.includes(a)?s[a]=d:(l||(l={}))[a]=d:vs(e.emitsOptions,f)||(!(f in n)||d!==n[f])&&(n[f]=d,o=!0)}if(i){const f=q(s),d=l||G;for(let a=0;a<i.length;a++){const p=i[a];s[p]=qs(r,f,p,d[p],e,!W(d,p))}}return o}function qs(e,t,s,n,r,i){const o=e[s];if(o!=null){const l=W(o,"default");if(l&&n===void 0){const f=o.default;if(o.type!==Function&&!o.skipFactory&&D(f)){const{propsDefaults:d}=r;if(s in d)n=d[s];else{const a=qt(r);n=d[s]=f.call(null,t),a()}}else n=f;r.ce&&r.ce._setProp(s,n)}o[0]&&(i&&!l?n=!1:o[1]&&(n===""||n===at(s))&&(n=!0))}return n}const Io=new WeakMap;function Wr(e,t,s=!1){const n=s?Io:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,o={},l=[];let f=!1;if(!D(e)){const a=p=>{f=!0;const[A,O]=Wr(p,t,!0);ie(o,A),O&&l.push(...O)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!f)return X(e)&&n.set(e,pt),pt;if(M(i))for(let a=0;a<i.length;a++){const p=Se(i[a]);On(p)&&(o[p]=G)}else if(i)for(const a in i){const p=Se(a);if(On(p)){const A=i[a],O=o[p]=M(A)||D(A)?{type:A}:ie({},A),K=O.type;let F=!1,Y=!0;if(M(K))for(let B=0;B<K.length;++B){const $=K[B],j=D($)&&$.name;if(j==="Boolean"){F=!0;break}else j==="String"&&(Y=!1)}else F=D(K)&&K.name==="Boolean";O[0]=F,O[1]=Y,(F||W(O,"default"))&&l.push(p)}}const d=[o,l];return X(e)&&n.set(e,d),d}function On(e){return e[0]!=="$"&&!Nt(e)}const cn=e=>e==="_"||e==="_ctx"||e==="$stable",fn=e=>M(e)?e.map(Fe):[Fe(e)],Po=(e,t,s)=>{if(t._n)return t;const n=Xi((...r)=>fn(t(...r)),s);return n._c=!1,n},Br=(e,t,s)=>{const n=e._ctx;for(const r in e){if(cn(r))continue;const i=e[r];if(D(i))t[r]=Po(r,i,n);else if(i!=null){const o=fn(i);t[r]=()=>o}}},kr=(e,t)=>{const s=fn(t);e.slots.default=()=>s},qr=(e,t,s)=>{for(const n in t)(s||!cn(n))&&(e[n]=t[n])},No=(e,t,s)=>{const n=e.slots=jr();if(e.vnode.shapeFlag&32){const r=t._;r?(qr(n,t,s),s&&er(n,"_",r,!0)):Br(t,n)}else t&&kr(e,t)},Mo=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,o=G;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:qr(r,t,s):(i=!t.$stable,Br(t,r)),o=t}else t&&(kr(e,t),o={default:1});if(i)for(const l in r)!cn(l)&&o[l]==null&&delete r[l]},pe=Lo;function Ro(e){return Fo(e)}function Fo(e,t){const s=hs();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:f,setText:d,setElementText:a,parentNode:p,nextSibling:A,setScopeId:O=De,insertStaticContent:K}=e,F=(c,u,h,b=null,_=null,g=null,C=void 0,w=null,x=!!u.dynamicChildren)=>{if(c===u)return;c&&!Ot(c,u)&&(b=Xt(c),Ee(c,_,g,!0),c=null),u.patchFlag===-2&&(x=!1,u.dynamicChildren=null);const{type:m,ref:N,shapeFlag:T}=u;switch(m){case xs:Y(c,u,h,b);break;case ut:B(c,u,h,b);break;case Rs:c==null&&$(u,h,b,C);break;case _e:Ge(c,u,h,b,_,g,C,w,x);break;default:T&1?Z(c,u,h,b,_,g,C,w,x):T&6?ze(c,u,h,b,_,g,C,w,x):(T&64||T&128)&&m.process(c,u,h,b,_,g,C,w,x,Tt)}N!=null&&_?Ft(N,c&&c.ref,g,u||c,!u):N==null&&c&&c.ref!=null&&Ft(c.ref,null,g,c,!0)},Y=(c,u,h,b)=>{if(c==null)n(u.el=l(u.children),h,b);else{const _=u.el=c.el;u.children!==c.children&&d(_,u.children)}},B=(c,u,h,b)=>{c==null?n(u.el=f(u.children||""),h,b):u.el=c.el},$=(c,u,h,b)=>{[c.el,c.anchor]=K(c.children,u,h,b,c.el,c.anchor)},j=({el:c,anchor:u},h,b)=>{let _;for(;c&&c!==u;)_=A(c),n(c,h,b),c=_;n(u,h,b)},P=({el:c,anchor:u})=>{let h;for(;c&&c!==u;)h=A(c),r(c),c=h;r(u)},Z=(c,u,h,b,_,g,C,w,x)=>{if(u.type==="svg"?C="svg":u.type==="math"&&(C="mathml"),c==null)ye(u,h,b,_,g,C,w,x);else{const m=c.el&&c.el._isVueCE?c.el:null;try{m&&m._beginPatch(),st(c,u,_,g,C,w,x)}finally{m&&m._endPatch()}}},ye=(c,u,h,b,_,g,C,w)=>{let x,m;const{props:N,shapeFlag:T,transition:I,dirs:R}=c;if(x=c.el=o(c.type,g,N&&N.is,N),T&8?a(x,c.children):T&16&&ne(c.children,x,null,b,_,Ms(c,g),C,w),R&&nt(c,null,b,"created"),ge(x,c,c.scopeId,C,b),N){for(const J in N)J!=="value"&&!Nt(J)&&i(x,J,null,N[J],g,b);"value"in N&&i(x,"value",null,N.value,g),(m=N.onVnodeBeforeMount)&&Ne(m,b,c)}R&&nt(c,null,b,"beforeMount");const H=Vo(_,I);H&&I.beforeEnter(x),n(x,u,h),((m=N&&N.onVnodeMounted)||H||R)&&pe(()=>{m&&Ne(m,b,c),H&&I.enter(x),R&&nt(c,null,b,"mounted")},_)},ge=(c,u,h,b,_)=>{if(h&&O(c,h),b)for(let g=0;g<b.length;g++)O(c,b[g]);if(_){let g=_.subTree;if(u===g||zr(g.type)&&(g.ssContent===u||g.ssFallback===u)){const C=_.vnode;ge(c,C,C.scopeId,C.slotScopeIds,_.parent)}}},ne=(c,u,h,b,_,g,C,w,x=0)=>{for(let m=x;m<c.length;m++){const N=c[m]=w?Ue(c[m]):Fe(c[m]);F(null,N,u,h,b,_,g,C,w)}},st=(c,u,h,b,_,g,C)=>{const w=u.el=c.el;let{patchFlag:x,dynamicChildren:m,dirs:N}=u;x|=c.patchFlag&16;const T=c.props||G,I=u.props||G;let R;if(h&&rt(h,!1),(R=I.onVnodeBeforeUpdate)&&Ne(R,h,u,c),N&&nt(u,c,h,"beforeUpdate"),h&&rt(h,!0),m&&(!c.dynamicChildren||c.dynamicChildren.length!==m.length)&&(x=0,C=!1,m=null),(T.innerHTML&&I.innerHTML==null||T.textContent&&I.textContent==null)&&a(w,""),m?xe(c.dynamicChildren,m,w,h,b,Ms(u,_),g):C||V(c,u,w,null,h,b,Ms(u,_),g,!1),x>0){if(x&16)$e(w,T,I,h,_);else if(x&2&&T.class!==I.class&&i(w,"class",null,I.class,_),x&4&&i(w,"style",T.style,I.style,_),x&8){const H=u.dynamicProps;for(let J=0;J<H.length;J++){const k=H[J],ee=T[k],te=I[k];(te!==ee||k==="value")&&i(w,k,ee,te,_,h)}}x&1&&c.children!==u.children&&a(w,u.children)}else!C&&m==null&&$e(w,T,I,h,_);((R=I.onVnodeUpdated)||N)&&pe(()=>{R&&Ne(R,h,u,c),N&&nt(u,c,h,"updated")},b)},xe=(c,u,h,b,_,g,C)=>{for(let w=0;w<u.length;w++){const x=c[w],m=u[w],N=x.el&&(x.type===_e||!Ot(x,m)||x.shapeFlag&198)?p(x.el):h;F(x,m,N,null,b,_,g,C,!0)}},$e=(c,u,h,b,_)=>{if(u!==h){if(u!==G)for(const g in u)!Nt(g)&&!(g in h)&&i(c,g,u[g],null,_,b);for(const g in h){if(Nt(g))continue;const C=h[g],w=u[g];C!==w&&g!=="value"&&i(c,g,w,C,_,b)}"value"in h&&i(c,"value",u.value,h.value,_)}},Ge=(c,u,h,b,_,g,C,w,x)=>{const m=u.el=c?c.el:l(""),N=u.anchor=c?c.anchor:l("");let{patchFlag:T,dynamicChildren:I,slotScopeIds:R}=u;R&&(w=w?w.concat(R):R),c==null?(n(m,h,b),n(N,h,b),ne(u.children||[],h,N,_,g,C,w,x)):T>0&&T&64&&I&&c.dynamicChildren&&c.dynamicChildren.length===I.length?(xe(c.dynamicChildren,I,h,_,g,C,w),(u.key!=null||_&&u===_.subTree)&&Xr(c,u,!0)):V(c,u,h,N,_,g,C,w,x)},ze=(c,u,h,b,_,g,C,w,x)=>{u.slotScopeIds=w,c==null?u.shapeFlag&512?_.ctx.activate(u,h,b,C,x):E(u,h,b,_,g,C,x):v(c,u,x)},E=(c,u,h,b,_,g,C)=>{const w=c.component=ko(c,b,_);if(ln(c)&&(w.ctx.renderer=Tt),Xo(w,!1,C),w.asyncDep){if(_&&_.registerDep(w,y,C),!c.el){const x=w.subTree=ft(ut);B(null,x,u,h),c.placeholder=x.el}}else y(w,c,u,h,_,g,C)},v=(c,u,h)=>{const b=u.component=c.component;if(To(c,u,h))if(b.asyncDep&&!b.asyncResolved){L(b,u,h);return}else b.next=u,b.update();else u.el=c.el,b.vnode=u},y=(c,u,h,b,_,g,C)=>{const w=()=>{if(c.isMounted){let{next:T,bu:I,u:R,parent:H,vnode:J}=c;{const Ie=Jr(c);if(Ie){T&&(T.el=J.el,L(c,T,C)),Ie.asyncDep.then(()=>{pe(()=>{c.isUnmounted||m()},_)});return}}let k=T,ee;rt(c,!1),T?(T.el=J.el,L(c,T,C)):T=J,I&&Qt(I),(ee=T.props&&T.props.onVnodeBeforeUpdate)&&Ne(ee,H,T,J),rt(c,!0);const te=An(c),Oe=c.subTree;c.subTree=te,F(Oe,te,p(Oe.el),Xt(Oe),c,_,g),T.el=te.el,k===null&&Ao(c,te.el),R&&pe(R,_),(ee=T.props&&T.props.onVnodeUpdated)&&pe(()=>Ne(ee,H,T,J),_)}else{let T;const{el:I,props:R}=u,{bm:H,m:J,parent:k,root:ee,type:te}=c,Oe=Vt(u);rt(c,!1),H&&Qt(H),!Oe&&(T=R&&R.onVnodeBeforeMount)&&Ne(T,k,u),rt(c,!0);{ee.ce&&ee.ce._hasShadowRoot()&&ee.ce._injectChildStyle(te,c.parent?c.parent.type:void 0);const Ie=c.subTree=An(c);F(null,Ie,h,b,c,_,g),u.el=Ie.el}if(J&&pe(J,_),!Oe&&(T=R&&R.onVnodeMounted)){const Ie=u;pe(()=>Ne(T,k,Ie),_)}(u.shapeFlag&256||k&&Vt(k.vnode)&&k.vnode.shapeFlag&256)&&c.a&&pe(c.a,_),c.isMounted=!0,u=h=b=null}};c.scope.on();const x=c.effect=new rr(w);c.scope.off();const m=c.update=x.run.bind(x),N=c.job=x.runIfDirty.bind(x);N.i=c,N.id=c.uid,x.scheduler=()=>rn(N),rt(c,!0),m()},L=(c,u,h)=>{u.component=c;const b=c.vnode.props;c.vnode=u,c.next=null,Oo(c,u.props,b,h),Mo(c,u.children,h),ke(),yn(c),qe()},V=(c,u,h,b,_,g,C,w,x=!1)=>{const m=c&&c.children,N=c?c.shapeFlag:0,T=u.children,{patchFlag:I,shapeFlag:R}=u;if(I>0){if(I&128){he(m,T,h,b,_,g,C,w,x);return}else if(I&256){de(m,T,h,b,_,g,C,w,x);return}}R&8?(N&16&&Ct(m,_,g),T!==m&&a(h,T)):N&16?R&16?he(m,T,h,b,_,g,C,w,x):Ct(m,_,g,!0):(N&8&&a(h,""),R&16&&ne(T,h,b,_,g,C,w,x))},de=(c,u,h,b,_,g,C,w,x)=>{c=c||pt,u=u||pt;const m=c.length,N=u.length,T=Math.min(m,N);let I;for(I=0;I<T;I++){const R=u[I]=x?Ue(u[I]):Fe(u[I]);F(c[I],R,h,null,_,g,C,w,x)}m>N?Ct(c,_,g,!0,!1,T):ne(u,h,b,_,g,C,w,x,T)},he=(c,u,h,b,_,g,C,w,x)=>{let m=0;const N=u.length;let T=c.length-1,I=N-1;for(;m<=T&&m<=I;){const R=c[m],H=u[m]=x?Ue(u[m]):Fe(u[m]);if(Ot(R,H))F(R,H,h,null,_,g,C,w,x);else break;m++}for(;m<=T&&m<=I;){const R=c[T],H=u[I]=x?Ue(u[I]):Fe(u[I]);if(Ot(R,H))F(R,H,h,null,_,g,C,w,x);else break;T--,I--}if(m>T){if(m<=I){const R=I+1,H=R<N?u[R].el:b;for(;m<=I;)F(null,u[m]=x?Ue(u[m]):Fe(u[m]),h,H,_,g,C,w,x),m++}}else if(m>I)for(;m<=T;)Ee(c[m],_,g,!0),m++;else{const R=m,H=m,J=new Map;for(m=H;m<=I;m++){const me=u[m]=x?Ue(u[m]):Fe(u[m]);me.key!=null&&J.set(me.key,m)}let k,ee=0;const te=I-H+1;let Oe=!1,Ie=0;const At=new Array(te);for(m=0;m<te;m++)At[m]=0;for(m=R;m<=T;m++){const me=c[m];if(ee>=te){Ee(me,_,g,!0);continue}let Pe;if(me.key!=null)Pe=J.get(me.key);else for(k=H;k<=I;k++)if(At[k-H]===0&&Ot(me,u[k])){Pe=k;break}Pe===void 0?Ee(me,_,g,!0):(At[Pe-H]=m+1,Pe>=Ie?Ie=Pe:Oe=!0,F(me,u[Pe],h,null,_,g,C,w,x),ee++)}const dn=Oe?Do(At):pt;for(k=dn.length-1,m=te-1;m>=0;m--){const me=H+m,Pe=u[me],hn=u[me+1],pn=me+1<N?hn.el||Gr(hn):b;At[m]===0?F(null,Pe,h,pn,_,g,C,w,x):Oe&&(k<0||m!==dn[k]?we(Pe,h,pn,2):k--)}}},we=(c,u,h,b,_=null)=>{const{el:g,type:C,transition:w,children:x,shapeFlag:m}=c;if(m&6){we(c.component.subTree,u,h,b);return}if(m&128){c.suspense.move(u,h,b);return}if(m&64){C.move(c,u,h,Tt);return}if(C===_e){n(g,u,h);for(let T=0;T<x.length;T++)we(x[T],u,h,b);n(c.anchor,u,h);return}if(C===Rs){j(c,u,h);return}if(b!==2&&m&1&&w)if(b===0)w.persisted&&!g[Ps]?n(g,u,h):(w.beforeEnter(g),n(g,u,h),pe(()=>w.enter(g),_));else{const{leave:T,delayLeave:I,afterLeave:R}=w,H=()=>{c.ctx.isUnmounted?r(g):n(g,u,h)},J=()=>{const k=g._isLeaving||!!g[Ps];g._isLeaving&&g[Ps](!0),w.persisted&&!k?H():T(g,()=>{H(),R&&R()})};I?I(g,H,J):J()}else n(g,u,h)},Ee=(c,u,h,b=!1,_=!1)=>{const{type:g,props:C,ref:w,children:x,dynamicChildren:m,shapeFlag:N,patchFlag:T,dirs:I,cacheIndex:R,memo:H}=c;if(T===-2&&(_=!1),w!=null&&(ke(),Ft(w,null,h,c,!0),qe()),R!=null&&(u.renderCache[R]=void 0),N&256){u.ctx.deactivate(c);return}const J=N&1&&I,k=!Vt(c);let ee;if(k&&(ee=C&&C.onVnodeBeforeUnmount)&&Ne(ee,u,c),N&6)ii(c.component,h,b);else{if(N&128){c.suspense.unmount(h,b);return}J&&nt(c,null,u,"beforeUnmount"),N&64?c.type.remove(c,u,h,Tt,b):m&&!m.hasOnce&&(g!==_e||T>0&&T&64)?Ct(m,u,h,!1,!0):(g===_e&&T&384||!_&&N&16)&&Ct(x,u,h),b&&un(c)}const te=H!=null&&R==null;(k&&(ee=C&&C.onVnodeUnmounted)||J||te)&&pe(()=>{ee&&Ne(ee,u,c),J&&nt(c,null,u,"unmounted"),te&&(c.el=null)},h)},un=c=>{const{type:u,el:h,anchor:b,transition:_}=c;if(u===_e){ri(h,b);return}if(u===Rs){P(c);return}const g=()=>{r(h),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(c.shapeFlag&1&&_&&!_.persisted){const{leave:C,delayLeave:w}=_,x=()=>C(h,g);w?w(c.el,g,x):x()}else g()},ri=(c,u)=>{let h;for(;c!==u;)h=A(c),r(c),c=h;r(u)},ii=(c,u,h)=>{const{bum:b,scope:_,job:g,subTree:C,um:w,m:x,a:m}=c;In(x),In(m),b&&Qt(b),_.stop(),g&&(g.flags|=8,Ee(C,c,u,h)),w&&pe(w,u),pe(()=>{c.isUnmounted=!0},u)},Ct=(c,u,h,b=!1,_=!1,g=0)=>{for(let C=g;C<c.length;C++)Ee(c[C],u,h,b,_)},Xt=c=>{if(c.shapeFlag&6)return Xt(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const u=A(c.anchor||c.el),h=u&&u[Zi];return h?A(h):u};let Ss=!1;const an=(c,u,h)=>{let b;c==null?u._vnode&&(Ee(u._vnode,null,null,!0),b=u._vnode.component):F(u._vnode||null,c,u,null,null,null,h),u._vnode=c,Ss||(Ss=!0,yn(b),Sr(),Ss=!1)},Tt={p:F,um:Ee,m:we,r:un,mt:E,mc:ne,pc:V,pbc:xe,n:Xt,o:e};return{render:an,hydrate:void 0,createApp:yo(an)}}function Ms({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 rt({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Vo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Xr(e,t,s=!1){const n=e.children,r=t.children;if(M(n)&&M(r))for(let i=0;i<n.length;i++){const o=n[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=Ue(r[i]),l.el=o.el),!s&&l.patchFlag!==-2&&Xr(o,l)),l.type===xs&&(l.patchFlag===-1&&(l=r[i]=Ue(l)),l.el=o.el),l.type===ut&&!l.el&&(l.el=o.el)}}function Do(e){const t=e.slice(),s=[0];let n,r,i,o,l;const f=e.length;for(n=0;n<f;n++){const d=e[n];if(d!==0){if(r=s[s.length-1],e[r]<d){t[n]=r,s.push(n);continue}for(i=0,o=s.length-1;i<o;)l=i+o>>1,e[s[l]]<d?i=l+1:o=l;d<e[s[i]]&&(i>0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=t[o];return s}function Jr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Jr(t)}function In(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Gr(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Gr(t.subTree):null}const zr=e=>e.__isSuspense;function Lo(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):qi(e)}const _e=Symbol.for("v-fgt"),xs=Symbol.for("v-txt"),ut=Symbol.for("v-cmt"),Rs=Symbol.for("v-stc"),ct=[];let be=null;function oe(e=!1){ct.push(be=e?null:[])}function Yr(){ct.pop(),be=ct[ct.length-1]||null}let jt=1;function Pn(e,t=!1){jt+=e,e<0&&be&&t&&(be.hasOnce=!0)}function $o(e){return e.dynamicChildren=jt>0?be||pt:null,Yr(),jt>0&&be&&be.push(e),e}function le(e,t,s,n,r,i){return $o(S(e,t,s,n,r,i,!0))}function Zr(e){return e?e.__v_isVNode===!0:!1}function Ot(e,t){return e.type===t.type&&e.key===t.key}const Qr=({key:e})=>e??null,ts=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?Q(e)||ae(e)||D(e)?{i:ve,r:e,k:t,f:!!s}:e:null);function S(e,t=null,s=null,n=0,r=null,i=e===_e?0:1,o=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Qr(t),ref:t&&ts(t),scopeId:Tr,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:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ve};return l?(ls(f,s),i&128&&e.normalize(f)):s&&(f.shapeFlag|=Q(s)?8:16),jt>0&&!o&&be&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&be.push(f),f}const ft=Ho;function Ho(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===uo)&&(e=ut),Zr(e)){const l=vt(e,t,!0);return s&&ls(l,s),jt>0&&!i&&be&&(l.shapeFlag&6?be[be.indexOf(e)]=l:be.push(l)),l.patchFlag=-2,l}if(Yo(e)&&(e=e.__vccOpts),t){t=jo(t);let{class:l,style:f}=t;l&&!Q(l)&&(t.class=Qe(l)),X(f)&&(nn(f)&&!M(f)&&(f=ie({},f)),t.style=ps(f))}const o=Q(e)?1:zr(e)?128:bs(e)?64:X(e)?4:D(e)?2:0;return S(e,t,s,n,r,o,i,!0)}function jo(e){return e?nn(e)||Ur(e)?ie({},e):e:null}function vt(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:f}=e,d=t?Ko(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Qr(d),ref:t&&t.ref?s&&i?M(i)?i.concat(ts(t)):[i,ts(t)]:ts(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vt(e.ssContent),ssFallback:e.ssFallback&&vt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&n&&on(a,f.clone(a)),a}function Uo(e=" ",t=0){return ft(xs,null,e,t)}function Fe(e){return e==null||typeof e=="boolean"?ft(ut):M(e)?ft(_e,null,e.slice()):Zr(e)?Ue(e):ft(xs,null,String(e))}function Ue(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vt(e)}function ls(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 r=t.default;r&&(r._c&&(r._d=!1),ls(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!Ur(t)?t._ctx=ve:r===3&&ve&&(ve.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(D(t)){if(n&65){ls(e,{default:t});return}t={default:t,_ctx:ve},s=32}else t=String(t),n&64?(s=16,t=[Uo(t)]):s=8;e.children=t,e.shapeFlag|=s}function Ko(...e){const t={};for(let s=0;s<e.length;s++){const n=e[s];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=Qe([t.class,n.class]));else if(r==="style")t.style=ps([t.style,n.style]);else if(fs(r)){const i=t[r],o=n[r];o&&i!==o&&!(M(i)&&i.includes(o))?t[r]=i?[].concat(i,o):o:o==null&&i==null&&!us(r)&&(t[r]=o)}else r!==""&&(t[r]=n[r])}return t}function Ne(e,t,s,n=null){Ae(e,t,7,[s,n])}const Wo=Dr();let Bo=0;function ko(e,t,s){const n=e.type,r=(t?t.appContext:e.appContext)||Wo,i={uid:Bo++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new _i(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Wr(n,r),emitsOptions:Lr(n,r),emit:null,emitted:null,propsDefaults:G,inheritAttrs:n.inheritAttrs,ctx:G,data:G,props:G,attrs:G,slots:G,refs:G,setupState:G,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=xo.bind(null,i),e.ce&&e.ce(i),i}let ue=null;const qo=()=>ue||ve;let cs,Ut;{const e=hs(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};cs=t("__VUE_INSTANCE_SETTERS__",s=>ue=s),Ut=t("__VUE_SSR_SETTERS__",s=>Kt=s)}const qt=e=>{const t=ue;return cs(e),e.scope.on(),()=>{e.scope.off(),cs(t)}},Nn=()=>{ue&&ue.scope.off(),cs(null)};function ei(e){return e.vnode.shapeFlag&4}let Kt=!1;function Xo(e,t=!1,s=!1){t&&Ut(t);const{props:n,children:r}=e.vnode,i=ei(e);Eo(e,n,i,t),No(e,r,s||t);const o=i?Jo(e,t):void 0;return t&&Ut(!1),o}function Jo(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ao);const{setup:n}=s;if(n){ke();const r=e.setupContext=n.length>1?zo(e):null,i=qt(e),o=kt(n,e,0,[e.props,r]),l=zn(o);if(qe(),i(),(l||e.sp)&&!Vt(e)&&Ir(e),l){if(o.then(Nn,Nn),t)return o.then(f=>{Ut(!0);try{Mn(e,f,t)}finally{Ut(!1)}}).catch(f=>{_s(f,e,0)});e.asyncDep=o}else Mn(e,o)}else ti(e)}function Mn(e,t,s){D(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:X(t)&&(e.setupState=yr(t)),ti(e)}function ti(e,t,s){const n=e.type;e.render||(e.render=n.render||De);{const r=qt(e);ke();try{ho(e)}finally{qe(),r()}}}const Go={get(e,t){return re(e,"get",""),e[t]}};function zo(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Go),slots:e.slots,emit:e.emit,expose:t}}function ws(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(yr(Li(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in Dt)return Dt[s](e)},has(t,s){return s in t||s in Dt}})):e.proxy}function Yo(e){return D(e)&&"__vccOpts"in e}const Ye=(e,t)=>Ui(e,t,Kt),Zo="3.5.41";let Xs;const Rn=typeof window<"u"&&window.trustedTypes;if(Rn)try{Xs=Rn.createPolicy("vue",{createHTML:e=>e})}catch{}const si=Xs?e=>Xs.createHTML(e):e=>e,Qo="http://www.w3.org/2000/svg",el="http://www.w3.org/1998/Math/MathML",je=typeof document<"u"?document:null,Fn=je&&je.createElement("template"),tl={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 r=t==="svg"?je.createElementNS(Qo,e):t==="mathml"?je.createElementNS(el,e):s?je.createElement(e,{is:s}):je.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>je.createTextNode(e),createComment:e=>je.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>je.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Fn.innerHTML=si(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const l=Fn.content;if(n==="svg"||n==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},sl=Symbol("_vtc");function nl(e,t,s){const n=e[sl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Vn=Symbol("_vod"),rl=Symbol("_vsh"),il=Symbol(""),ol=/(?:^|;)\s*display\s*:/;function ll(e,t,s){const n=e.style,r=Q(s);let i=!1;if(s&&!r){if(t)if(Q(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&Pt(n,l,"")}else for(const o in t)s[o]==null&&Pt(n,o,"");for(const o in s){o==="display"&&(i=!0);const l=s[o];l!=null?fl(e,o,!Q(t)&&t?t[o]:void 0,l)||Pt(n,o,l):Pt(n,o,"")}}else if(r){if(t!==s){const o=n[il];o&&(s+=";"+o),n.cssText=s,i=ol.test(s)}}else t&&e.removeAttribute("style");Vn in e&&(e[Vn]=i?n.display:"",e[rl]&&(n.display="none"))}const Dn=/\s*!important$/;function Pt(e,t,s){if(M(s))s.forEach(n=>Pt(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=cl(e,t);Dn.test(s)?e.setProperty(at(n),s.replace(Dn,""),"important"):e[n]=s}}const Ln=["Webkit","Moz","ms"],Fs={};function cl(e,t){const s=Fs[t];if(s)return s;let n=Se(t);if(n!=="filter"&&n in e)return Fs[t]=n;n=Qn(n);for(let r=0;r<Ln.length;r++){const i=Ln[r]+n;if(i in e)return Fs[t]=i}return t}function fl(e,t,s,n){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&Q(n)&&s===n}const $n="http://www.w3.org/1999/xlink";function Hn(e,t,s,n,r,i=gi(t)){n&&t.startsWith("xlink:")?s==null?e.removeAttributeNS($n,t.slice(6,t.length)):e.setAttributeNS($n,t,s):s==null||i&&!tr(s)?e.removeAttribute(t):e.setAttribute(t,i?"":Le(s)?String(s):s)}function jn(e,t,s,n,r){if(t==="innerHTML"||t==="textContent"){s!=null&&(e[t]=t==="innerHTML"?si(s):s);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,f=s==null?e.type==="checkbox"?"on":"":String(s);(l!==f||!("_value"in e))&&(e.value=f),s==null&&e.removeAttribute(t),e._value=s;return}let o=!1;if(s===""||s==null){const l=typeof e[t];l==="boolean"?s=tr(s):s==null&&l==="string"?(s="",o=!0):l==="number"&&(s=0,o=!0)}try{e[t]=s}catch{}o&&e.removeAttribute(r||t)}function et(e,t,s,n){e.addEventListener(t,s,n)}function ul(e,t,s,n){e.removeEventListener(t,s,n)}const Un=Symbol("_vei");function al(e,t,s,n,r=null){const i=e[Un]||(e[Un]={}),o=i[t];if(n&&o)o.value=n;else{const[l,f]=pl(t);if(n){const d=i[t]=_l(n,r);et(e,l,d,f)}else o&&(ul(e,l,o,f),i[t]=void 0)}}const dl=/(Once|Passive|Capture)$/,hl=/^on:?(?:Once|Passive|Capture)$/;function pl(e){let t,s;for(;(s=e.match(dl))&&!hl.test(e);)t||(t={}),e=e.slice(0,e.length-s[1].length),t[s[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):at(e.slice(2)),t]}let Vs=0;const gl=Promise.resolve(),ml=()=>Vs||(gl.then(()=>Vs=0),Vs=Date.now());function _l(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const r=s.value;if(M(r)){const i=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{i.call(n),n._stopped=!0};const o=r.slice(),l=[n];for(let f=0;f<o.length&&!n._stopped;f++){const d=o[f];d&&Ae(d,t,5,l)}}else Ae(r,t,5,[n])};return s.value=e,s.attached=ml(),s}const Kn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,bl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?nl(e,n,o):t==="style"?ll(e,s,n):fs(t)?us(t)||al(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):yl(e,t,n,o))?(jn(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Hn(e,t,n,o,i,t!=="value")):e._isVueCE&&(vl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Q(n)))?jn(e,Se(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Hn(e,t,n,o))};function yl(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Kn(t)&&D(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 r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Kn(t)&&Q(s)?!1:t in e}function vl(e,t){const s=e._def.props;if(!s)return!1;const n=Se(t);return Array.isArray(s)?s.some(r=>Se(r)===n):Object.keys(s).some(r=>Se(r)===n)}const xt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return M(t)?s=>Qt(t,s):t};function xl(e){e.target.composing=!0}function Wn(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ve=Symbol("_assign"),Zt=Symbol("_initialValue");function Ds(e,t,s){return t&&(e=e.trim()),s&&(e=ds(e)),e}const wl={created(e,{modifiers:{lazy:t,trim:s,number:n}},r){e.parentNode&&(e.type==="text"?e[Zt]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Zt]=e.defaultValue.replace(/\r\n?/g,`
2
+ `))),e[Ve]=xt(r);const i=n||r.props&&r.props.type==="number";et(e,t?"change":"input",o=>{o.target.composing||e[Ve](Ds(e.value,s,i))}),(s||i)&&et(e,"change",()=>{e.value=Ds(e.value,s,i)}),t||(et(e,"compositionstart",xl),et(e,"compositionend",Wn),et(e,"change",Wn))},mounted(e,{value:t,modifiers:{trim:s,number:n}}){const r=t??"",i=e[Zt];delete e[Zt],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[Ve](Ds(e.value,s,n)):e.value=r},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:r,number:i}},o){if(e[Ve]=xt(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?ds(e.value):e.value,f=t??"";if(l===f)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(n&&t===s||r&&e.value.trim()===f)||(e.value=f)}},Sl={deep:!0,created(e,t,s){e[Ve]=xt(s),et(e,"change",()=>{const n=e._modelValue,r=Wt(e),i=e.checked,o=e[Ve];if(M(n)){const l=Ys(n,r),f=l!==-1;if(i&&!f)o(n.concat(r));else if(!i&&f){const d=[...n];d.splice(l,1),o(d)}}else if(wt(n)){const l=new Set(n);i?l.add(r):l.delete(r),o(l)}else o(ni(e,i))})},mounted:Bn,beforeUpdate(e,t,s){e[Ve]=xt(s),Bn(e,t,s)}};function Bn(e,{value:t,oldValue:s},n){e._modelValue=t;let r;if(M(t))r=Ys(t,n.props.value)>-1;else if(wt(t))r=t.has(n.props.value);else{if(t===s)return;r=St(t,ni(e,!0))}e.checked!==r&&(e.checked=r)}const Cl={deep:!0,created(e,{value:t,modifiers:{number:s}},n){e._modelValue=t,et(e,"change",()=>{const r=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>s?ds(Wt(i)):Wt(i));e[Ve](e.multiple?wt(e._modelValue)?new Set(r):r:r[0]),e._assigning=!0,xr(()=>{e._assigning=!1})}),e[Ve]=xt(n)},mounted(e,{value:t}){kn(e,t)},beforeUpdate(e,{value:t},s){e._modelValue=t,e[Ve]=xt(s)},updated(e,{value:t}){e._assigning||kn(e,t)}};function kn(e,t){const s=e.multiple,n=M(t);if(!(s&&!n&&!wt(t))){for(let r=0,i=e.options.length;r<i;r++){const o=e.options[r],l=Wt(o);if(s)if(n){const f=typeof l;f==="string"||f==="number"?o.selected=t.some(d=>String(d)===String(l)):o.selected=Ys(t,l)>-1}else o.selected=t.has(l);else if(St(Wt(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Wt(e){return"_value"in e?e._value:e.value}function ni(e,t){const s=t?"_trueValue":"_falseValue";return s in e?e[s]:t}const Tl=ie({patchProp:bl},tl);let qn;function Al(){return qn||(qn=Ro(Tl))}const El=((...e)=>{const t=Al().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=Il(n);if(!r)return;const i=t._component;!D(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,Ol(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function Ol(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Il(e){return Q(e)?document.querySelector(e):e}const Pl={class:"page-shell"},Nl={class:"topbar"},Ml={class:"toolbar"},Rl=["value"],Fl={class:"checkbox"},Vl=["disabled"],Dl={class:"statusbar"},Ll={class:"pill-row"},$l={class:"pill neutral"},Hl={class:"pill success"},jl={class:"pill neutral"},Ul={class:"pill warn"},Kl={class:"metric-grid"},Wl={class:"metric-card"},Bl={class:"metric-card"},kl={class:"metric-card"},ql={class:"metric-card"},Xl={class:"card"},Jl={class:"card-head"},Gl={class:"meta-chip"},zl={class:"section-tools"},Yl={key:0,class:"lights-grid"},Zl={class:"tile-head"},Ql={class:"meta-chip"},ec={class:"tile-meta"},tc={class:"tile-stats"},sc={class:"pill neutral"},nc={key:1,class:"empty-state"},rc={class:"card"},ic={class:"card-head"},oc={class:"meta-chip"},lc={key:0,class:"dimmer-grid"},cc={class:"tile-head"},fc={class:"meta-chip"},uc={class:"pill warn"},ac={class:"tile-meta"},dc={class:"dimmer-track"},hc={class:"tile-stats"},pc={class:"pill neutral"},gc={key:1,class:"empty-state"},mc={class:"card"},_c={class:"card-head"},bc={class:"meta-chip"},yc={key:0,class:"other-list"},vc={class:"other-side"},xc={class:"pill neutral"},wc={class:"pill neutral"},Sc={key:1,class:"empty-state"},Ls="knxUltimateViewer:selectedNodeId",Xn="knxUltimateViewer:autoRefresh",Jn="knxUltimateViewer:search",Cc={__name:"App",setup(e){const t=(()=>{try{return new URLSearchParams(window.location.search).get("nodeId")||""}catch{return""}})(),s=(()=>{try{return new URLSearchParams(window.location.search).get("access_token")||""}catch{return""}})();function n(){try{if(!window.localStorage)return"";const E=[];for(let v=0;v<window.localStorage.length;v+=1){const y=String(window.localStorage.key(v)||"");if(!y.startsWith("auth-tokens"))continue;const L=window.localStorage.getItem(y);if(!L)continue;let V=null;try{V=JSON.parse(L)}catch{V=null}const de=V&&typeof V.access_token=="string"?V.access_token.trim():"";if(!de)continue;const he=Number(V&&(V.expires_at||V.expiry||V.expires)?V.expires_at||V.expiry||V.expires:0);E.push({token:de,expiresAt:Number.isFinite(he)?he:0})}return E.length?(E.sort((v,y)=>y.expiresAt-v.expiresAt),E[0].token||""):""}catch{return""}}const r=(()=>{const E=String(s||"").trim();return E||n()})();function i(E){const v=Object.assign({},E||{});return r&&!v.Authorization&&!v.authorization&&(v.Authorization=`Bearer ${r}`),v}const o=ms({nodes:[],selectedNodeId:t||l(Ls,""),autoRefresh:f(Xn,!0),search:l(Jn,""),status:"Ready",loadingNodes:!1,loadingState:!1,data:null,lastError:"",pollHandle:null});function l(E,v=""){try{return window.localStorage&&window.localStorage.getItem(E)||v}catch{return v}}function f(E,v){try{if(!window.localStorage)return v;const y=window.localStorage.getItem(E);return y==null||y===""?v:y==="true"}catch{return v}}function d(E,v){try{window.localStorage&&window.localStorage.setItem(E,String(v??""))}catch{}}function a(E,v){try{window.localStorage&&window.localStorage.setItem(E,v?"true":"false")}catch{}}function p(E){const v=new URL(E,window.location.href);return s&&v.searchParams.set("access_token",s),v.toString()}function A(E){o.status=String(E||"")}async function O(E,v){const y=Object.assign({credentials:"same-origin"},{});y.headers=i(y.headers);const L=await fetch(E,y),V=String(L.headers.get("content-type")||"").toLowerCase(),de=await L.text();if(L.ok&&V.includes("text/html"))throw new Error("Authentication required or insufficient permissions (session token missing or expired).");let he={};try{he=de?JSON.parse(de):{}}catch{he={error:de||`HTTP ${L.status}`}}if(!L.ok){const we=he&&he.error?he.error:`HTTP ${L.status}`;throw L.status===401||L.status===403?new Error(`Authentication required or insufficient permissions (${L.status}).`):new Error(we)}return he}function K(E){return String(E||"").trim()}function F(E){const v=t&&E.find(V=>V.id===t)?t:"",y=l(Ls,""),L=y&&E.find(V=>V.id===y)?y:"";return v||L||(E[0]?E[0].id:"")}async function Y({preserveSelection:E=!0}={}){o.loadingNodes=!0;try{const v=await O(p("nodes")),y=Array.isArray(v&&v.nodes)?v.nodes:[];o.nodes=y,(!E||!o.selectedNodeId||!y.find(L=>L.id===o.selectedNodeId))&&(o.selectedNodeId=F(y))}finally{o.loadingNodes=!1}}async function B(){if(!o.selectedNodeId){o.data=null,o.lastError="No KNX Viewer node available.",A("No viewer nodes");return}o.loadingState=!0,o.lastError="",A("Refreshing KNX Viewer...");try{const E=await O(p(`state?nodeId=${encodeURIComponent(o.selectedNodeId)}`));o.data=E,A("Live state loaded")}catch(E){o.lastError=E.message||String(E),A("Unable to load state")}finally{o.loadingState=!1}}function $(){o.pollHandle&&(clearInterval(o.pollHandle),o.pollHandle=null)}function j(){$(),o.autoRefresh&&(o.pollHandle=setInterval(()=>{B().catch(()=>{})},3e3))}async function P(){await Y({preserveSelection:!0}),await B()}function Z(E){const v=Number(E||0);if(!Number.isFinite(v)||v<=0)return"n/a";const y=Math.max(0,Date.now()-v);return y<15e3?"just now":y<6e4?`${Math.round(y/1e3)}s ago`:y<36e5?`${Math.round(y/6e4)}m ago`:`${Math.round(y/36e5)}h ago`}function ye(E){if(!E)return"n/a";const v=new Date(E);return Number.isFinite(v.getTime())?v.toLocaleString():"n/a"}const ge=Ye(()=>o.data&&o.data.node?o.data.node:{}),ne=Ye(()=>o.data&&o.data.summary?o.data.summary:{}),st=Ye(()=>Array.isArray(o.data&&o.data.items)?o.data.items:[]),xe=Ye(()=>{const E=K(o.search).toLowerCase();return E?st.value.filter(v=>`${v.address||""} ${v.devicename||""} ${v.dpt||""}`.toLowerCase().includes(E)):st.value}),$e=Ye(()=>xe.value.filter(E=>E.kind==="light")),Ge=Ye(()=>xe.value.filter(E=>E.kind==="dimmer")),ze=Ye(()=>xe.value.filter(E=>E.kind==="other").slice(0,12));return _t(()=>o.selectedNodeId,async(E,v)=>{d(Ls,E||""),!(!E||E===v)&&await B()}),_t(()=>o.autoRefresh,E=>{a(Xn,E),j()}),_t(()=>o.search,E=>{d(Jn,E||"")}),Nr(async()=>{await Y({preserveSelection:!1}),await B(),j()}),Mr(()=>{$()}),(E,v)=>(oe(),le("div",Pl,[S("header",Nl,[S("div",null,[v[3]||(v[3]=S("p",{class:"eyebrow"},"KNX Viewer Web",-1)),S("h1",null,U(ge.value.name||"KNX Viewer"),1),v[4]||(v[4]=S("p",{class:"subhead"}," Live lights and dimmer values collected by the KNX Viewer node. The visual language stays aligned with Cerebrum Ultimate, but focused on field states. ",-1))]),S("div",Ml,[Is(S("select",{"onUpdate:modelValue":v[0]||(v[0]=y=>o.selectedNodeId=y),class:"node-select"},[v[5]||(v[5]=S("option",{value:"",disabled:""},"Select KNX Viewer",-1)),(oe(!0),le(_e,null,Yt(o.nodes,y=>(oe(),le("option",{key:y.id,value:y.id},U(`${y.name||"KNXViewer"}${y.gatewayName?` | ${y.gatewayName}`:""}`),9,Rl))),128))],512),[[Cl,o.selectedNodeId]]),S("label",Fl,[Is(S("input",{"onUpdate:modelValue":v[1]||(v[1]=y=>o.autoRefresh=y),type:"checkbox"},null,512),[[Sl,o.autoRefresh]]),v[6]||(v[6]=S("span",null,"Auto refresh",-1))]),S("button",{class:"secondary-button",type:"button",disabled:o.loadingState||o.loadingNodes,onClick:P}," Refresh ",8,Vl)]),S("div",Dl,[S("span",{class:Qe(["status-pill",o.lastError?"status-error":"status-ok"])},U(o.lastError||o.status),3),S("div",Ll,[S("span",$l,"Gateway "+U(ge.value.gatewayName||"n/a"),1),S("span",Hl,"Lights on "+U(ne.value.lightOnCount||0),1),S("span",jl,"Lights off "+U(ne.value.lightOffCount||0),1),S("span",Ul,"Avg dimmer "+U(ne.value.averageDimmerLevel||0)+"%",1)])])]),S("section",Kl,[S("article",Wl,[v[7]||(v[7]=S("span",{class:"metric-label"},"Detected lights",-1)),S("strong",null,U(ne.value.lightCount||0),1),v[8]||(v[8]=S("p",null,"Boolean-style KNX values currently visible to this Viewer node.",-1))]),S("article",Bl,[v[9]||(v[9]=S("span",{class:"metric-label"},"Detected dimmers",-1)),S("strong",null,U(ne.value.dimmerCount||0),1),v[10]||(v[10]=S("p",null,"5.001-like level values rendered as dimmer cards.",-1))]),S("article",kl,[v[11]||(v[11]=S("span",{class:"metric-label"},"Known group addresses",-1)),S("strong",null,U(ne.value.totalItems||0),1),v[12]||(v[12]=S("p",null,"Total KNX group addresses seen by the Viewer in this runtime session.",-1))]),S("article",ql,[v[13]||(v[13]=S("span",{class:"metric-label"},"Last KNX update",-1)),S("strong",null,U(ye(ne.value.lastUpdate)),1),v[14]||(v[14]=S("p",null,"Most recent telegram reflected in this web page.",-1))])]),S("section",Xl,[S("div",Jl,[v[15]||(v[15]=S("h2",null,"Lights",-1)),S("span",Gl,U($e.value.length)+" visible",1)]),S("div",zl,[Is(S("input",{"onUpdate:modelValue":v[2]||(v[2]=y=>o.search=y),class:"search-input",type:"text",placeholder:"Search GA, label or DPT"},null,512),[[wl,o.search]]),v[16]||(v[16]=S("p",{class:"section-note"},"Rendering is based on the live values currently exposed by KNX Viewer.",-1))]),$e.value.length?(oe(),le("div",Yl,[(oe(!0),le(_e,null,Yt($e.value,y=>(oe(),le("article",{key:y.address,class:Qe(["tile-card light-card",{"is-on":y.isOn,"is-off":!y.isOn}])},[S("div",Zl,[v[17]||(v[17]=S("div",{class:"light-badge"},[S("span",{class:"light-badge-core"})],-1)),S("span",Ql,U(y.address),1)]),S("h3",null,U(y.devicename||y.address),1),S("p",ec,U(y.dpt||"no dpt"),1),S("div",tc,[S("span",{class:Qe(["pill",y.isOn?"success":"neutral"])},U(y.isOn?"ON":"OFF"),3),S("span",sc,"Updated "+U(Z(y.lastUpdateMs)),1)])],2))),128))])):(oe(),le("p",nc,"No boolean light-style values detected yet."))]),S("section",rc,[S("div",ic,[v[18]||(v[18]=S("h2",null,"Dimmers",-1)),S("span",oc,U(Ge.value.length)+" visible",1)]),Ge.value.length?(oe(),le("div",lc,[(oe(!0),le(_e,null,Yt(Ge.value,y=>(oe(),le("article",{key:y.address,class:Qe(["tile-card dimmer-card",{"is-active":Number(y.level||0)>0}])},[S("div",cc,[S("span",fc,U(y.address),1),S("span",uc,U(y.level||0)+"%",1)]),S("h3",null,U(y.devicename||y.address),1),S("p",ac,U(y.dpt||"no dpt"),1),S("div",dc,[S("span",{class:"dimmer-fill",style:ps({width:`${y.level||0}%`})},null,4)]),S("div",hc,[S("span",pc,"Updated "+U(Z(y.lastUpdateMs)),1),S("span",{class:Qe(["pill",Number(y.level||0)>0?"success":"neutral"])},U(Number(y.level||0)>0?"ACTIVE":"IDLE"),3)])],2))),128))])):(oe(),le("p",gc,"No dimmer values detected yet."))]),S("section",mc,[S("div",_c,[v[19]||(v[19]=S("h2",null,"Recent KNX Values",-1)),S("span",bc,U(ze.value.length)+" preview",1)]),ze.value.length?(oe(),le("div",yc,[(oe(!0),le(_e,null,Yt(ze.value,y=>(oe(),le("article",{key:y.address,class:"other-row"},[S("div",null,[S("strong",null,U(y.devicename||y.address),1),S("p",null,U(y.address)+U(y.dpt?` | ${y.dpt}`:""),1)]),S("div",vc,[S("span",xc,U(y.payloadText||"-"),1),S("span",wc,U(Z(y.lastUpdateMs)),1)])]))),128))])):(oe(),le("p",Sc,"No additional KNX values available for preview."))])]))}};El(Cc).mount("#app");
@@ -163,8 +163,8 @@ const normalizeKnxAiCameraAction = (value, cameras = []) => {
163
163
  ? eventType === 'smartDetectLine'
164
164
  ? camera.lines
165
165
  : ['smartDetectZone', 'smartDetectLoiterZone'].includes(eventType)
166
- ? camera.zones
167
- : []
166
+ ? camera.zones
167
+ : []
168
168
  : []
169
169
  const normalizedScopeTarget = normalizeSearchText(requestedScope)
170
170
  const matchingScopes = normalizedScopeTarget
@@ -231,8 +231,8 @@ const cameraWatchMatchesEvent = (watch, event) => {
231
231
  const wantedObjects = (Array.isArray(watch.objectTypes) ? watch.objectTypes : []).map(normalizeCameraObjectType).filter(Boolean)
232
232
  const watchEventType = normalizeCameraEventType(watch.eventType)
233
233
  const eventType = normalizeCameraEventType(event.eventType)
234
- const genericSmartDetection = watchEventType === 'smartDetect'
235
- || (watchEventType === 'motion' && wantedObjects.length > 0)
234
+ const genericSmartDetection = watchEventType === 'smartDetect' ||
235
+ (watchEventType === 'motion' && wantedObjects.length > 0)
236
236
  if (genericSmartDetection) {
237
237
  if (!['smartDetectZone', 'smartDetectLine', 'smartDetectLoiterZone'].includes(eventType)) return false
238
238
  } else if (watchEventType && watchEventType !== eventType) return false