doxa-maps/public/dx-maps/rudder-voice/rudder-voice.js
Doxa Maps fb5016405d
Some checks are pending
Deploy to GitHub Pages / build (push) Waiting to run
Deploy to GitHub Pages / deploy (push) Blocked by required conditions
Update from source bbcc52cbc
2026-09-28 03:38:45 +00:00

37 lines
100 KiB
JavaScript

(function(){"use strict";/**
* @vue/shared v3.5.42
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function ss(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const G={},It=[],We=()=>{},zs=()=>!1,bn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),_n=e=>e.startsWith("onUpdate:"),ie=Object.assign,is=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},qr=Object.prototype.hasOwnProperty,K=(e,t)=>qr.call(e,t),I=Array.isArray,vt=e=>Jt(e)==="[object Map]",wt=e=>Jt(e)==="[object Set]",Js=e=>Jt(e)==="[object Date]",F=e=>typeof e=="function",ee=e=>typeof e=="string",ze=e=>typeof e=="symbol",z=e=>e!==null&&typeof e=="object",Gs=e=>(z(e)||F(e))&&F(e.then)&&F(e.catch),qs=Object.prototype.toString,Jt=e=>qs.call(e),Xr=e=>Jt(e).slice(8,-1),yn=e=>Jt(e)==="[object Object]",rs=e=>ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Gt=ss(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Yr=/-\w/g,_e=xn(e=>e.replace(Yr,t=>t.slice(1).toUpperCase())),Zr=/\B([A-Z])/g,Me=xn(e=>e.replace(Zr,"-$1").toLowerCase()),Xs=xn(e=>e.charAt(0).toUpperCase()+e.slice(1)),os=xn(e=>e?`on${Xs(e)}`:""),Je=(e,t)=>!Object.is(e,t),wn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Ys=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Sn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Zs=e=>{const t=ee(e)?Number(e):NaN;return isNaN(t)?e:t};let Qs;const Cn=()=>Qs||(Qs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Tn(e){if(I(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=ee(s)?no(s):Tn(s);if(i)for(const r in i)t[r]=i[r]}return t}else if(ee(e)||z(e))return e}const Qr=/;(?![^(]*\))/g,eo=/:([^]+)/,to=/\/\*[^]*?\*\//g;function no(e){const t={};return e.replace(to,"").split(Qr).forEach(n=>{if(n){const s=n.split(eo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Nt(e){let t="";if(ee(e))t=e;else if(I(e))for(let n=0;n<e.length;n++){const s=Nt(e[n]);s&&(t+=s+" ")}else if(z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const so=ss("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ei(e){return!!e||e===""}function io(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=bt(e[s],t[s]);return n}function ti(e,t){if(e.size!==t.size)return!1;const n=Array.from(t),s=new Uint8Array(n.length);for(const i of e){let r=-1;for(let o=0;o<n.length;o++)if(!s[o]&&bt(i,n[o])){r=o;break}if(r<0)return!1;s[r]=1}return!0}function bt(e,t){if(e===t)return!0;let n=Js(e),s=Js(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=ze(e),s=ze(t),n||s)return e===t;if(n=I(e),s=I(t),n||s)return n&&s?io(e,t):!1;if(n=z(e),s=z(t),n||s){if(!n||!s)return!1;if(n=vt(e),s=vt(t),n||s||(n=wt(e),s=wt(t),n||s))return n&&s?ti(e,t):!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!bt(e[o],t[o]))return!1}}return String(e)===String(t)}function ro(e,t){return e.findIndex(n=>bt(n,t))}const ni=e=>!!(e&&e.__v_isRef===!0),q=e=>ee(e)?e:e==null?"":I(e)||z(e)&&(e.toString===qs||!F(e.toString))?ni(e)?q(e.value):JSON.stringify(e,si,2):String(e),si=(e,t)=>ni(t)?si(e,t.value):vt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],r)=>(n[ls(s,r)+" =>"]=i,n),{})}:wt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ls(n))}:ze(t)?ls(t):z(t)&&!I(t)&&!yn(t)?String(t):t,ls=(e,t="")=>{var n;return ze(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.42
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let ce;class oo{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&&ce&&(ce.active?(this.parent=ce,this.index=(ce.scopes||(ce.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const i=this.scopes.slice();for(t=0,n=i.length;t<n;t++)i[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=ce;try{return ce=this,t()}finally{ce=n}}}on(){++this._on===1&&(this.prevScope=ce,ce=this)}off(){if(this._on>0&&--this._on===0){if(ce===this)ce=this.prevScope;else{let t=ce;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 n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const i=this.scopes.slice();for(n=0,s=i.length;n<s;n++)i[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function lo(){return ce}let X;const as=new WeakSet;class ii{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,ce&&(ce.active?ce.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||oi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,fi(this),li(this);const t=X,n=Ue;X=this,Ue=!0;try{return this.fn()}finally{ai(this),X=t,Ue=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ds(t);this.deps=this.depsTail=void 0,fi(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?as.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){fs(this)&&this.run()}get dirty(){return fs(this)}}let ri=0,qt,Xt;function oi(e,t=!1){if(e.flags|=8,t){e.next=Xt,Xt=e;return}e.next=qt,qt=e}function cs(){ri++}function us(){if(--ri>0)return;if(Xt){let t=Xt;for(Xt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;qt;){let t=qt;for(qt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function li(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ai(e){let t,n=e.depsTail,s=n;for(;s;){const i=s.prevDep;s.version===-1?(s===n&&(n=i),ds(s),ao(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=i}e.deps=t,e.depsTail=n}function fs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ci(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ci(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Yt)||(e.globalVersion=Yt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!fs(e))))return;e.flags|=2;const t=e.dep,n=X,s=Ue;X=e,Ue=!0;try{li(e);const i=e.fn(e._value);(t.version===0||Je(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{X=n,Ue=s,ai(e),e.flags&=-3}}function ds(e,t=!1){const{dep:n,prevSub:s,nextSub:i}=e;if(s&&(s.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)ds(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ao(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ue=!0;const ui=[];function Ge(){ui.push(Ue),Ue=!1}function qe(){const e=ui.pop();Ue=e===void 0?!0:e}function fi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=X;X=void 0;try{t()}finally{X=n}}}let Yt=0;class co{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ps{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(!X||!Ue||X===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==X)n=this.activeLink=new co(X,this),X.deps?(n.prevDep=X.depsTail,X.depsTail.nextDep=n,X.depsTail=n):X.deps=X.depsTail=n,di(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=X.depsTail,n.nextDep=void 0,X.depsTail.nextDep=n,X.depsTail=n,X.deps===n&&(X.deps=s)}return n}trigger(t){this.version++,Yt++,this.notify(t)}notify(t){cs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{us()}}}function di(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)di(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const hs=new WeakMap,St=Symbol(""),gs=Symbol(""),Zt=Symbol("");function de(e,t,n){if(Ue&&X){let s=hs.get(e);s||hs.set(e,s=new Map);let i=s.get(n);i||(s.set(n,i=new ps),i.map=s,i.key=n),i.track()}}function it(e,t,n,s,i,r){const o=hs.get(e);if(!o){Yt++;return}const l=c=>{c&&c.trigger()};if(cs(),t==="clear")o.forEach(l);else{const c=I(e),d=c&&rs(n);if(c&&n==="length"){const f=Number(s);o.forEach((m,E)=>{(E==="length"||E===Zt||!ze(E)&&E>=f)&&l(m)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),d&&l(o.get(Zt)),t){case"add":c?d&&l(o.get("length")):(l(o.get(St)),vt(e)&&l(o.get(gs)));break;case"delete":c||(l(o.get(St)),vt(e)&&l(o.get(gs)));break;case"set":vt(e)&&l(o.get(St));break}}us()}function Dt(e){const t=$(e);return t===e?t:(de(t,"iterate",Zt),Ie(e)?t:t.map(He))}function An(e){return de(e=$(e),"iterate",Zt),e}function Xe(e,t){return ot(e)?Ft(Ct(e)?He(t):t):He(t)}const uo={__proto__:null,[Symbol.iterator](){return ms(this,Symbol.iterator,e=>Xe(this,e))},concat(...e){return Dt(this).concat(...e.map(t=>I(t)?Dt(t):t))},entries(){return ms(this,"entries",e=>(e[1]=Xe(this,e[1]),e))},every(e,t){return rt(this,"every",e,t,void 0,arguments)},filter(e,t){return rt(this,"filter",e,t,n=>n.map(s=>Xe(this,s)),arguments)},find(e,t){return rt(this,"find",e,t,n=>Xe(this,n),arguments)},findIndex(e,t){return rt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return rt(this,"findLast",e,t,n=>Xe(this,n),arguments)},findLastIndex(e,t){return rt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return rt(this,"forEach",e,t,void 0,arguments)},includes(...e){return vs(this,"includes",e)},indexOf(...e){return vs(this,"indexOf",e)},join(e){return Dt(this).join(e)},lastIndexOf(...e){return vs(this,"lastIndexOf",e)},map(e,t){return rt(this,"map",e,t,void 0,arguments)},pop(){return Qt(this,"pop")},push(...e){return Qt(this,"push",e)},reduce(e,...t){return pi(this,"reduce",e,t)},reduceRight(e,...t){return pi(this,"reduceRight",e,t)},shift(){return Qt(this,"shift")},some(e,t){return rt(this,"some",e,t,void 0,arguments)},splice(...e){return Qt(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 Qt(this,"unshift",e)},values(){return ms(this,"values",e=>Xe(this,e))}};function ms(e,t,n){const s=An(e),i=s[t]();return s!==e&&!Ie(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=n(r.value)),r}),i}const fo=Array.prototype;function rt(e,t,n,s,i,r){const o=An(e),l=o!==e&&!Ie(e),c=o[t];if(c!==fo[t]){const m=c.apply(e,r);return l?He(m):m}let d=n;o!==e&&(l?d=function(m,E){return n.call(this,Xe(e,m),E,e)}:n.length>2&&(d=function(m,E){return n.call(this,m,E,e)}));const f=c.call(o,d,s);return l&&i?i(f):f}function pi(e,t,n,s){const i=An(e),r=i!==e&&!Ie(e);let o=n,l=!1;i!==e&&(r?(l=s.length===0,o=function(d,f,m){return l&&(l=!1,d=Xe(e,d)),n.call(this,d,Xe(e,f),m,e)}):n.length>3&&(o=function(d,f,m){return n.call(this,d,f,m,e)}));const c=i[t](o,...s);return l?Xe(e,c):c}function vs(e,t,n){const s=$(e);de(s,"iterate",Zt);const i=s[t](...n);return(i===-1||i===!1)&&xs(n[0])?(n[0]=$(n[0]),s[t](...n)):i}function Qt(e,t,n=[]){Ge(),cs();const s=$(e)[t].apply(e,n);return us(),qe(),s}const po=ss("__proto__,__v_isRef,__isVue"),hi=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ze));function ho(e){ze(e)||(e=String(e));const t=$(this);return de(t,"has",e),t.hasOwnProperty(e)}class gi{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(i?r?xi:yi:r?_i:bi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=I(t);if(!i){let c;if(o&&(c=uo[n]))return c;if(n==="hasOwnProperty")return ho}const l=Reflect.get(t,n,ue(t)?t:s);if((ze(n)?hi.has(n):po(n))||(i||de(t,"get",n),r))return l;if(ue(l)){const c=o&&rs(n)?l:l.value;return i&&z(c)?ys(c):c}return z(l)?i?ys(l):_s(l):l}}class mi extends gi{constructor(t=!1){super(!1,t)}set(t,n,s,i){let r=t[n];const o=I(t)&&rs(n);if(!this._isShallow){const d=ot(r);if(!Ie(s)&&!ot(s)&&(r=$(r),s=$(s)),!o&&ue(r)&&!ue(s))return d||(r.value=s),!0}const l=o?Number(n)<t.length:K(t,n),c=Reflect.set(t,n,s,ue(t)?t:i);return t===$(i)&&c&&(l?Je(s,r)&&it(t,"set",n,s):it(t,"add",n,s)),c}deleteProperty(t,n){const s=K(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&s&&it(t,"delete",n,void 0),i}has(t,n){const s=Reflect.has(t,n);return(!ze(n)||!hi.has(n))&&de(t,"has",n),s}ownKeys(t){return de(t,"iterate",I(t)?"length":St),Reflect.ownKeys(t)}}class vi extends gi{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const go=new mi,mo=new vi,vo=new mi(!0),bo=new vi(!0),bs=e=>e,En=e=>Reflect.getPrototypeOf(e);function _o(e,t,n){return function(...s){const i=this.__v_raw,r=$(i),o=vt(r),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,d=i[e](...s),f=n?bs:t?Ft:He;return!t&&de(r,"iterate",c?gs:St),ie(Object.create(d),{next(){const{value:m,done:E}=d.next();return E?{value:m,done:E}:{value:l?[f(m[0]),f(m[1])]:f(m),done:E}}})}}function Rn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function yo(e,t){const n={get(i){const r=this.__v_raw,o=$(r),l=$(i);e||(Je(i,l)&&de(o,"get",i),de(o,"get",l));const{has:c}=En(o),d=t?bs:e?Ft:He;if(c.call(o,i))return d(r.get(i));if(c.call(o,l))return d(r.get(l));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!e&&de($(i),"iterate",St),i.size},has(i){const r=this.__v_raw,o=$(r),l=$(i);return e||(Je(i,l)&&de(o,"has",i),de(o,"has",l)),i===l?r.has(i):r.has(i)||r.has(l)},forEach(i,r){const o=this,l=o.__v_raw,c=$(l),d=t?bs:e?Ft:He;return!e&&de(c,"iterate",St),l.forEach((f,m)=>i.call(r,d(f),d(m),o))}};return ie(n,e?{add:Rn("add"),set:Rn("set"),delete:Rn("delete"),clear:Rn("clear")}:{add(i){const r=$(this),o=En(r),l=$(i),c=!t&&!Ie(i)&&!ot(i)?l:i;return o.has.call(r,c)||Je(i,c)&&o.has.call(r,i)||Je(l,c)&&o.has.call(r,l)||(r.add(c),it(r,"add",c,c)),this},set(i,r){!t&&!Ie(r)&&!ot(r)&&(r=$(r));const o=$(this),{has:l,get:c}=En(o);let d=l.call(o,i);d||(i=$(i),d=l.call(o,i));const f=c.call(o,i);return o.set(i,r),d?Je(r,f)&&it(o,"set",i,r):it(o,"add",i,r),this},delete(i){const r=$(this),{has:o,get:l}=En(r);let c=o.call(r,i);c||(i=$(i),c=o.call(r,i)),l&&l.call(r,i);const d=r.delete(i);return c&&it(r,"delete",i,void 0),d},clear(){const i=$(this),r=i.size!==0,o=i.clear();return r&&it(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=_o(i,e,t)}),n}function On(e,t){const n=yo(e,t);return(s,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(K(n,i)&&i in s?n:s,i,r)}const xo={get:On(!1,!1)},wo={get:On(!1,!0)},So={get:On(!0,!1)},Co={get:On(!0,!0)},bi=new WeakMap,_i=new WeakMap,yi=new WeakMap,xi=new WeakMap;function To(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _s(e){return ot(e)?e:Pn(e,!1,go,xo,bi)}function Ao(e){return Pn(e,!1,vo,wo,_i)}function ys(e){return Pn(e,!0,mo,So,yi)}function Dc(e){return Pn(e,!0,bo,Co,xi)}function Pn(e,t,n,s,i){if(!z(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=i.get(e);if(r)return r;const o=To(Xr(e));if(o===0)return e;const l=new Proxy(e,o===2?s:n);return i.set(e,l),l}function Ct(e){return ot(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function ot(e){return!!(e&&e.__v_isReadonly)}function Ie(e){return!!(e&&e.__v_isShallow)}function xs(e){return e?!!e.__v_raw:!1}function $(e){const t=e&&e.__v_raw;return t?$(t):e}function Eo(e){return!K(e,"__v_skip")&&Object.isExtensible(e)&&Ys(e,"__v_skip",!0),e}const He=e=>z(e)?_s(e):e,Ft=e=>z(e)?ys(e):e;function ue(e){return e?e.__v_isRef===!0:!1}function Y(e){return Ro(e,!1)}function Ro(e,t){return ue(e)?e:new Oo(e,t)}class Oo{constructor(t,n){this.dep=new ps,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:$(t),this._value=n?t:He(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ie(t)||ot(t);t=s?t:$(t),Je(t,n)&&(this._rawValue=t,this._value=s?t:He(t),this.dep.trigger())}}function wi(e){return ue(e)?e.value:e}const Po={get:(e,t,n)=>t==="__v_raw"?e:wi(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return ue(i)&&!ue(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function Si(e){return Ct(e)?e:new Proxy(e,Po)}class ko{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ps(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Yt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&X!==this)return oi(this,!0),!0}get value(){const t=this.dep.track();return ci(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Mo(e,t,n=!1){let s,i;return F(e)?s=e:(s=e.get,i=e.set),new ko(s,i,n)}const kn={},Mn=new WeakMap;let Tt;function Io(e,t=!1,n=Tt){if(n){let s=Mn.get(n);s||Mn.set(n,s=[]),s.push(e)}}function No(e,t,n=G){const{immediate:s,deep:i,once:r,scheduler:o,augmentJob:l,call:c}=n,d=T=>i?T:Ie(T)||i===!1||i===0?lt(T,1):lt(T);let f,m,E,A,H=!1,D=!1;if(ue(e)?(m=()=>e.value,H=Ie(e)):Ct(e)?(m=()=>d(e),H=!0):I(e)?(D=!0,H=e.some(T=>Ct(T)||Ie(T)),m=()=>e.map(T=>{if(ue(T))return T.value;if(Ct(T))return d(T);if(F(T))return c?c(T,2):T()})):F(e)?t?m=c?()=>c(e,2):e:m=()=>{if(E){Ge();try{E()}finally{qe()}}const T=Tt;Tt=f;try{return c?c(e,3,[A]):e(A)}finally{Tt=T}}:m=We,t&&i){const T=m,Q=i===!0?1/0:i;m=()=>lt(T(),Q)}const ne=lo(),O=()=>{f.stop(),ne&&ne.active&&is(ne.effects,f)};if(r&&t){const T=t;t=(...Q)=>{const we=T(...Q);return O(),we}}let j=D?new Array(e.length).fill(kn):kn;const V=T=>{if(!(!(f.flags&1)||!f.dirty&&!T))if(t){const Q=f.run();if(T||i||H||(D?Q.some((we,ae)=>Je(we,j[ae])):Je(Q,j))){E&&E();const we=Tt;Tt=f;try{const ae=[Q,j===kn?void 0:D&&j[0]===kn?[]:j,A];j=Q,c?c(t,3,ae):t(...ae)}finally{Tt=we}}}else f.run()};return l&&l(V),f=new ii(m),f.scheduler=o?()=>o(V,!1):V,A=T=>Io(T,!1,f),E=f.onStop=()=>{const T=Mn.get(f);if(T){if(c)c(T,4);else for(const Q of T)Q();Mn.delete(f)}},t?s?V(!0):j=f.run():o?o(V.bind(null,!0),!0):f.run(),O.pause=f.pause.bind(f),O.resume=f.resume.bind(f),O.stop=O,O}function lt(e,t=1/0,n){if(t<=0||!z(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ue(e))lt(e.value,t,n);else if(I(e))for(let s=0;s<e.length;s++)lt(e[s],t,n);else if(wt(e)||vt(e))e.forEach(s=>{lt(s,t,n)});else if(yn(e)){for(const s in e)lt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&lt(e[s],t,n)}return e}/**
* @vue/runtime-core v3.5.42
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/const en=[];let ws=!1;function Fc(e,...t){if(ws)return;ws=!0,Ge();const n=en.length?en[en.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=Do();if(s)jt(s,n,11,[e+t.map(r=>{var o,l;return(l=(o=r.toString)==null?void 0:o.call(r))!=null?l:JSON.stringify(r)}).join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${wr(n,r.type)}>`).join(`
`),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
`,...Fo(i)),console.warn(...r)}qe(),ws=!1}function Do(){let e=en[en.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function Fo(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
`],...jo(n))}),t}function jo({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,i=` at <${wr(e.component,e.type,s)}`,r=">"+n;return e.props?[i,...Lo(e.props),r]:[i+r]}function Lo(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...Ci(s,e[s]))}),n.length>3&&t.push(" ..."),t}function Ci(e,t,n){return ee(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ue(t)?(t=Ci(e,$(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):F(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=$(t),n?t:[`${e}=`,t])}function jt(e,t,n,s){try{return s?e(...s):e()}catch(i){In(i,t,n)}}function $e(e,t,n,s){if(F(e)){const i=jt(e,t,n,s);return i&&Gs(i)&&i.catch(r=>{In(r,t,n)}),i}if(I(e)){const i=[];for(let r=0;r<e.length;r++)i.push($e(e[r],t,n,s));return i}}function In(e,t,n,s=!0){const i=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||G;if(t){let l=t.parent;const c=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const f=l.ec;if(f){for(let m=0;m<f.length;m++)if(f[m](e,c,d)===!1)return}l=l.parent}if(r){Ge(),jt(r,null,10,[e,c,d]),qe();return}}Vo(e,n,i,s,o)}function Vo(e,t,n,s=!0,i=!1){if(i)throw e;console.error(e)}const ge=[];let Ye=-1;const Lt=[];let _t=null,Vt=0;const Ti=Promise.resolve();let Nn=null;function tn(e){const t=Nn||Ti;return e?t.then(this?e.bind(this):e):t}function Uo(e){let t=Ye+1,n=ge.length;for(;t<n;){const s=t+n>>>1,i=ge[s],r=nn(i);r<e||r===e&&i.flags&2?t=s+1:n=s}return t}function Ss(e){if(!(e.flags&1)){const t=nn(e),n=ge[ge.length-1];!n||!(e.flags&2)&&t>=nn(n)?ge.push(e):ge.splice(Uo(t),0,e),e.flags|=1,Ai()}}function Ai(){Nn||(Nn=Ti.then(Oi))}function Ho(e){if(!I(e))_t&&e.id===-1?_t.splice(Vt+1,0,e):e.flags&1||(Lt.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Lt.push(e[t]);Ai()}function Ei(e,t,n=Ye+1){for(;n<ge.length;n++){const s=ge[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;ge.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Ri(e){if(Lt.length){const t=[...new Set(Lt)].sort((n,s)=>nn(n)-nn(s));if(Lt.length=0,_t){for(let n=0;n<t.length;n++)_t.push(t[n]);return}for(_t=t,Vt=0;Vt<_t.length;Vt++){const n=_t[Vt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}_t=null,Vt=0}}const nn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Oi(e){try{for(Ye=0;Ye<ge.length;Ye++){const t=ge[Ye];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),jt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ye<ge.length;Ye++){const t=ge[Ye];t&&(t.flags&=-2)}Ye=-1,ge.length=0,Ri(),Nn=null,(ge.length||Lt.length)&&Oi()}}let Ne=null,Pi=null;function Dn(e){const t=Ne;return Ne=e,Pi=e&&e.type.__scopeId||null,t}function $o(e,t=Ne,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&hr(-1);const r=Dn(t),o=Rt.length;let l;try{l=e(...i)}finally{for(let c=Rt.length;c>o;c--)pr();Dn(r),s._d&&hr(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function Cs(e,t){if(Ne===null)return e;const n=Jn(Ne),s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,l,c=G]=t[i];r&&(F(r)&&(r={mounted:r,updated:r}),r.deep&&lt(o),s.push({dir:r,instance:n,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function At(e,t,n,s){const i=e.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const l=i[o];r&&(l.oldValue=r[o].value);let c=l.dir[s];c&&(Ge(),$e(c,n,8,[e.el,l,e,t]),qe())}}function Bo(e,t){if(ve){let n=ve.provides;const s=ve.parent&&ve.parent.provides;s===n&&(n=ve.provides=Object.create(s)),n[e]=t}}function Fn(e,t,n=!1){const s=Hl();if(s||Ht){let i=Ht?Ht._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&F(t)?t.call(s&&s.proxy):t}}const Ko=Symbol.for("v-scx"),Wo=()=>Fn(Ko);function Ut(e,t,n){return ki(e,t,n)}function ki(e,t,n=G){const{immediate:s,deep:i,flush:r,once:o}=n,l=ie({},n),c=t&&s||!t&&r!=="post";let d;if(dn){if(r==="sync"){const A=Wo();d=A.__watcherHandles||(A.__watcherHandles=[])}else if(!c){const A=()=>{};return A.stop=We,A.resume=We,A.pause=We,A}}const f=ve;l.call=(A,H,D)=>$e(A,f,H,D);let m=!1;r==="post"?l.scheduler=A=>{ye(A,f&&f.suspense)}:r!=="sync"&&(m=!0,l.scheduler=(A,H)=>{H?A():Ss(A)}),l.augmentJob=A=>{t&&(A.flags|=4),m&&(A.flags|=2,f&&(A.id=f.uid,A.i=f))};const E=No(e,t,l);return dn&&(d?d.push(E):c&&E()),E}function zo(e,t,n){const s=this.proxy,i=ee(e)?e.includes(".")?Mi(s,e):()=>s[e]:e.bind(s,s);let r;F(t)?r=t:(r=t.handler,n=t);const o=fn(this),l=ki(i,r.bind(s),n);return o(),l}function Mi(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}const Jo=Symbol("_vte"),jn=e=>e.__isTeleport,Ts=Symbol("_leaveCb");function Go(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ct){t=n;break}}return t}function Ii(e){if(!Es(e))return jn(e.type)&&e.children?Go(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&F(n.default))return n.default()}}function As(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;As(jn(n.type)&&Ii(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function qo(e,t){return F(e)?ie({name:e.name},t,{setup:e}):e}function Ni(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Di(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ln=new WeakMap;function sn(e,t,n,s,i=!1){if(I(e)){e.forEach((D,ne)=>sn(D,t&&(I(t)?t[ne]:t),n,s,i));return}if(rn(s)&&!i){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&sn(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?Jn(s.component):s.el,o=i?null:r,{i:l,r:c}=e,d=t&&t.r,f=l.refs===G?l.refs={}:l.refs,m=l.setupState,E=$(m),A=m===G?zs:D=>Di(f,D)?!1:K(E,D),H=(D,ne)=>!(ne&&Di(f,ne));if(d!=null&&d!==c){if(Fi(t),ee(d))f[d]=null,A(d)&&(m[d]=null);else if(ue(d)){const D=t;H(d,D.k)&&(d.value=null),D.k&&(f[D.k]=null)}}if(F(c))jt(c,l,12,[o,f]);else{const D=ee(c),ne=ue(c);if(D||ne){const O=()=>{if(e.f){const j=D?A(c)?m[c]:f[c]:H()||!e.k?c.value:f[e.k];if(i)I(j)&&is(j,r);else if(I(j))j.includes(r)||j.push(r);else if(D)f[c]=[r],A(c)&&(m[c]=f[c]);else{const V=[r];H(c,e.k)&&(c.value=V),e.k&&(f[e.k]=V)}}else D?(f[c]=o,A(c)&&(m[c]=o)):ne&&(H(c,e.k)&&(c.value=o),e.k&&(f[e.k]=o))};if(o){const j=()=>{O(),Ln.delete(e)};j.id=-1,Ln.set(e,j),ye(j,n)}else Fi(e),O()}}}function Fi(e){const t=Ln.get(e);t&&(t.flags|=8,Ln.delete(e))}Cn().requestIdleCallback,Cn().cancelIdleCallback;const rn=e=>!!e.type.__asyncLoader,Es=e=>e.type.__isKeepAlive;function Xo(e,t){ji(e,"a",t)}function Yo(e,t){ji(e,"da",t)}function ji(e,t,n=ve){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Vn(t,s,n),n){let i=n.parent;for(;i&&i.parent;)Es(i.parent.vnode)&&Zo(s,t,n,i),i=i.parent}}function Zo(e,t,n,s){const i=Vn(t,e,s,!0);Ui(()=>{is(s[t],i)},n)}function Vn(e,t,n=ve,s=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{Ge();const l=fn(n),c=$e(t,n,e,o);return l(),qe(),c});return s?i.unshift(r):i.push(r),r}}const at=e=>(t,n=ve)=>{(!dn||e==="sp")&&Vn(e,(...s)=>t(...s),n)},Qo=at("bm"),Li=at("m"),el=at("bu"),tl=at("u"),Vi=at("bum"),Ui=at("um"),nl=at("sp"),sl=at("rtg"),il=at("rtc");function rl(e,t=ve){Vn("ec",e,t)}const ol=Symbol.for("v-ndc");function Hi(e,t,n,s){let i;const r=n,o=I(e);if(o||ee(e)){const l=o&&Ct(e);let c=!1,d=!1;l&&(c=!Ie(e),d=ot(e),e=An(e)),i=new Array(e.length);for(let f=0,m=e.length;f<m;f++)i[f]=t(c?d?Ft(He(e[f])):He(e[f]):e[f],f,void 0,r)}else if(typeof e=="number"){i=new Array(e);for(let l=0;l<e;l++)i[l]=t(l+1,l,void 0,r)}else if(z(e))if(e[Symbol.iterator])i=Array.from(e,(l,c)=>t(l,c,void 0,r));else{const l=Object.keys(e);i=new Array(l.length);for(let c=0,d=l.length;c<d;c++){const f=l[c];i[c]=t(e[f],f,c,r)}}else i=[];return i}const Rs=e=>e?_r(e)?Jn(e):Rs(e.parent):null,on=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=>Rs(e.parent),$root:e=>Rs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Wi(e),$forceUpdate:e=>e.f||(e.f=()=>{Ss(e.update)}),$nextTick:e=>e.n||(e.n=tn.bind(e.proxy)),$watch:e=>zo.bind(e)}),Os=(e,t)=>e!==G&&!e.__isScriptSetup&&K(e,t),ll={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:i,props:r,accessCache:o,type:l,appContext:c}=e;if(t[0]!=="$"){const E=o[t];if(E!==void 0)switch(E){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(Os(s,t))return o[t]=1,s[t];if(i!==G&&K(i,t))return o[t]=2,i[t];if(K(r,t))return o[t]=3,r[t];if(n!==G&&K(n,t))return o[t]=4,n[t];Ps&&(o[t]=0)}}const d=on[t];let f,m;if(d)return t==="$attrs"&&de(e.attrs,"get",""),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==G&&K(n,t))return o[t]=4,n[t];if(m=c.config.globalProperties,K(m,t))return m[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:r}=e;return Os(i,t)?(i[t]=n,!0):s!==G&&K(s,t)?(s[t]=n,!0):K(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,props:r,type:o}},l){let c;return!!(n[l]||e!==G&&l[0]!=="$"&&K(e,l)||Os(t,l)||K(r,l)||K(s,l)||K(on,l)||K(i.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:K(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function $i(e){return I(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ps=!0;function al(e){const t=Wi(e),n=e.proxy,s=e.ctx;Ps=!1,t.beforeCreate&&Bi(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:l,provide:c,inject:d,created:f,beforeMount:m,mounted:E,beforeUpdate:A,updated:H,activated:D,deactivated:ne,beforeDestroy:O,beforeUnmount:j,destroyed:V,unmounted:T,render:Q,renderTracked:we,renderTriggered:ae,errorCaptured:je,serverPrefetch:dt,expose:Ee,inheritAttrs:tt,components:Re,directives:Oe,filters:pt}=t;if(d&&cl(d,s,null),o)for(const J in o){const L=o[J];F(L)&&(s[J]=L.bind(n))}if(i){const J=i.call(n,n);z(J)&&(e.data=_s(J))}if(Ps=!0,r)for(const J in r){const L=r[J],Se=F(L)?L.bind(n,n):F(L.get)?L.get.bind(n,n):We,pe=!F(L)&&F(L.set)?L.set.bind(n):We,ht=et({get:Se,set:pe});Object.defineProperty(s,J,{enumerable:!0,configurable:!0,get:()=>ht.value,set:Le=>ht.value=Le})}if(l)for(const J in l)Ki(l[J],s,n,J);if(c){const J=F(c)?c.call(n):c;Reflect.ownKeys(J).forEach(L=>{Bo(L,J[L])})}f&&Bi(f,e,"c");function re(J,L){I(L)?L.forEach(Se=>J(Se.bind(n))):L&&J(L.bind(n))}if(re(Qo,m),re(Li,E),re(el,A),re(tl,H),re(Xo,D),re(Yo,ne),re(rl,je),re(il,we),re(sl,ae),re(Vi,j),re(Ui,T),re(nl,dt),I(Ee))if(Ee.length){const J=e.exposed||(e.exposed={});Ee.forEach(L=>{Object.defineProperty(J,L,{get:()=>n[L],set:Se=>n[L]=Se,enumerable:!0})})}else e.exposed||(e.exposed={});Q&&e.render===We&&(e.render=Q),tt!=null&&(e.inheritAttrs=tt),Re&&(e.components=Re),Oe&&(e.directives=Oe),dt&&Ni(e)}function cl(e,t,n=We){I(e)&&(e=ks(e));for(const s in e){const i=e[s];let r;z(i)?"default"in i?r=Fn(i.from||s,i.default,!0):r=Fn(i.from||s):r=Fn(i),ue(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[s]=r}}function Bi(e,t,n){$e(I(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ki(e,t,n,s){let i=s.includes(".")?Mi(n,s):()=>n[s];if(ee(e)){const r=t[e];F(r)&&Ut(i,r)}else if(F(e))Ut(i,e.bind(n));else if(z(e))if(I(e))e.forEach(r=>Ki(r,t,n,s));else{const r=F(e.handler)?e.handler.bind(n):t[e.handler];F(r)&&Ut(i,r,e)}}function Wi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,l=r.get(t);let c;return l?c=l:!i.length&&!n&&!s?c=t:(c={},i.length&&i.forEach(d=>Un(c,d,o,!0)),Un(c,t,o)),z(t)&&r.set(t,c),c}function Un(e,t,n,s=!1){const{mixins:i,extends:r}=t;r&&Un(e,r,n,!0),i&&i.forEach(o=>Un(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=ul[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const ul={data:zi,props:Ji,emits:Ji,methods:ln,computed:ln,beforeCreate:me,created:me,beforeMount:me,mounted:me,beforeUpdate:me,updated:me,beforeDestroy:me,beforeUnmount:me,destroyed:me,unmounted:me,activated:me,deactivated:me,errorCaptured:me,serverPrefetch:me,components:ln,directives:ln,watch:dl,provide:zi,inject:fl};function zi(e,t){return t?e?function(){return ie(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function fl(e,t){return ln(ks(e),ks(t))}function ks(e){if(I(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function me(e,t){return e?[...new Set([].concat(e,t))]:t}function ln(e,t){return e?ie(Object.create(null),e,t):t}function Ji(e,t){return e?I(e)&&I(t)?[...new Set([...e,...t])]:ie(Object.create(null),$i(e),$i(t??{})):t}function dl(e,t){if(!e)return t;if(!t)return e;const n=ie(Object.create(null),e);for(const s in t)n[s]=me(e[s],t[s]);return n}function Gi(){return{app:null,config:{isNativeTag:zs,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 pl=0;function hl(e,t){return function(s,i=null){F(s)||(s=ie({},s)),i!=null&&!z(i)&&(i=null);const r=Gi(),o=new WeakSet,l=[];let c=!1;const d=r.app={_uid:pl++,_component:s,_props:i,_container:null,_context:r,_instance:null,version:Xl,get config(){return r.config},set config(f){},use(f,...m){return o.has(f)||(f&&F(f.install)?(o.add(f),f.install(d,...m)):F(f)&&(o.add(f),f(d,...m))),d},mixin(f){return r.mixins.includes(f)||r.mixins.push(f),d},component(f,m){return m?(r.components[f]=m,d):r.components[f]},directive(f,m){return m?(r.directives[f]=m,d):r.directives[f]},mount(f,m,E){if(!c){const A=d._ceVNode||Be(s,i);return A.appContext=r,E===!0?E="svg":E===!1&&(E=void 0),e(A,f,E),c=!0,d._container=f,f.__vue_app__=d,Jn(A.component)}},onUnmount(f){l.push(f)},unmount(){c&&($e(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(f,m){return r.provides[f]=m,d},runWithContext(f){const m=Ht;Ht=d;try{return f()}finally{Ht=m}}};return d}}let Ht=null;const gl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${_e(t)}Modifiers`]||e[`${Me(t)}Modifiers`];function ml(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||G;let i=n;const r=t.startsWith("update:"),o=r&&gl(s,t.slice(7));o&&(o.trim&&(i=n.map(f=>ee(f)?f.trim():f)),o.number&&(i=i.map(Sn)));let l,c=s[l=os(t)]||s[l=os(_e(t))];!c&&r&&(c=s[l=os(Me(t))]),c&&$e(c,e,6,i);const d=s[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,$e(d,e,6,i)}}const vl=new WeakMap;function qi(e,t,n=!1){const s=n?vl:t.emitsCache,i=s.get(e);if(i!==void 0)return i;const r=e.emits;let o={},l=!1;if(!F(e)){const c=d=>{const f=qi(d,t,!0);f&&(l=!0,ie(o,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!l?(z(e)&&s.set(e,null),null):(I(r)?r.forEach(c=>o[c]=null):ie(o,r),z(e)&&s.set(e,o),o)}function Hn(e,t){return!e||!bn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),K(e,t[0].toLowerCase()+t.slice(1))||K(e,Me(t))||K(e,t))}function jc(){}function Xi(e){const{type:t,vnode:n,proxy:s,withProxy:i,propsOptions:[r],slots:o,attrs:l,emit:c,render:d,renderCache:f,props:m,data:E,setupState:A,ctx:H,inheritAttrs:D}=e,ne=Dn(e);let O,j;try{if(n.shapeFlag&4){const T=i||s,Q=T;O=Ze(d.call(Q,T,f,m,A,E,H)),j=l}else{const T=t;O=Ze(T.length>1?T(m,{attrs:l,slots:o,emit:c}):T(m,null)),j=t.props?l:bl(l)}}catch(T){Rt.length=0,In(T,e,1),O=Be(ct)}let V=O;if(j&&D!==!1){const T=Object.keys(j),{shapeFlag:Q}=V;T.length&&Q&7&&(r&&T.some(_n)&&(j=_l(j,r)),V=$t(V,j,!1,!0))}if(n.dirs&&(V=$t(V,null,!1,!0),V.dirs=V.dirs?V.dirs.concat(n.dirs):n.dirs),n.transition){const T=jn(V.type)&&Ii(V)||V;As(T,n.transition)}return O=V,Dn(ne),O}const bl=e=>{let t;for(const n in e)(n==="class"||n==="style"||bn(n))&&((t||(t={}))[n]=e[n]);return t},_l=(e,t)=>{const n={};for(const s in e)(!_n(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function yl(e,t,n){const{props:s,children:i,component:r}=e,{props:o,children:l,patchFlag:c}=t,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Yi(s,o,d):!!o;if(c&8){const f=t.dynamicProps;for(let m=0;m<f.length;m++){const E=f[m];if(Zi(o,s,E)&&!Hn(d,E))return!0}}}else return(i||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?Yi(s,o,d):!0:!!o;return!1}function Yi(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const r=s[i];if(Zi(t,e,r)&&!Hn(n,r))return!0}return!1}function Zi(e,t,n){const s=e[n],i=t[n];return n==="style"&&z(s)&&z(i)?!bt(s,i):s!==i}function xl({vnode:e,parent:t,suspense:n},s){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=s,e=i),i===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const Qi={},er=()=>Object.create(Qi),tr=e=>Object.getPrototypeOf(e)===Qi;function wl(e,t,n,s=!1){const i={},r=er();e.propsDefaults=Object.create(null),nr(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=s?i:Ao(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function Sl(e,t,n,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,l=$(i),[c]=e.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let m=0;m<f.length;m++){let E=f[m];if(Hn(e.emitsOptions,E))continue;const A=t[E];if(c)if(K(r,E))A!==r[E]&&(r[E]=A,d=!0);else{const H=_e(E);i[H]=Ms(c,l,H,A,e,!1)}else A!==r[E]&&(r[E]=A,d=!0)}}}else{nr(e,t,i,r)&&(d=!0);let f;for(const m in l)(!t||!K(t,m)&&((f=Me(m))===m||!K(t,f)))&&(c?n&&(n[m]!==void 0||n[f]!==void 0)&&(i[m]=Ms(c,l,m,void 0,e,!0)):delete i[m]);if(r!==l)for(const m in r)(!t||!K(t,m))&&(delete r[m],d=!0)}d&&it(e.attrs,"set","")}function nr(e,t,n,s){const[i,r]=e.propsOptions;let o=!1,l;if(t)for(let c in t){if(Gt(c))continue;const d=t[c];let f;i&&K(i,f=_e(c))?!r||!r.includes(f)?n[f]=d:(l||(l={}))[f]=d:Hn(e.emitsOptions,c)||(!(c in s)||d!==s[c])&&(s[c]=d,o=!0)}if(r){const c=$(n),d=l||G;for(let f=0;f<r.length;f++){const m=r[f];n[m]=Ms(i,c,m,d[m],e,!K(d,m))}}return o}function Ms(e,t,n,s,i,r){const o=e[n];if(o!=null){const l=K(o,"default");if(l&&s===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&F(c)){const{propsDefaults:d}=i;if(n in d)s=d[n];else{const f=fn(i);s=d[n]=c.call(null,t),f()}}else s=c;i.ce&&i.ce._setProp(n,s)}o[0]&&(r&&!l?s=!1:o[1]&&(s===""||s===Me(n))&&(s=!0))}return s}const Cl=new WeakMap;function sr(e,t,n=!1){const s=n?Cl:t.propsCache,i=s.get(e);if(i)return i;const r=e.props,o={},l=[];let c=!1;if(!F(e)){const f=m=>{c=!0;const[E,A]=sr(m,t,!0);ie(o,E),A&&l.push(...A)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!c)return z(e)&&s.set(e,It),It;if(I(r))for(let f=0;f<r.length;f++){const m=_e(r[f]);ir(m)&&(o[m]=G)}else if(r)for(const f in r){const m=_e(f);if(ir(m)){const E=r[f],A=o[m]=I(E)||F(E)?{type:E}:ie({},E),H=A.type;let D=!1,ne=!0;if(I(H))for(let O=0;O<H.length;++O){const j=H[O],V=F(j)&&j.name;if(V==="Boolean"){D=!0;break}else V==="String"&&(ne=!1)}else D=F(H)&&H.name==="Boolean";A[0]=D,A[1]=ne,(D||K(A,"default"))&&l.push(m)}}const d=[o,l];return z(e)&&s.set(e,d),d}function ir(e){return e[0]!=="$"&&!Gt(e)}const Is=e=>e==="_"||e==="_ctx"||e==="$stable",Ns=e=>I(e)?e.map(Ze):[Ze(e)],Tl=(e,t,n)=>{if(t._n)return t;const s=$o((...i)=>Ns(t(...i)),n);return s._c=!1,s},rr=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Is(i))continue;const r=e[i];if(F(r))t[i]=Tl(i,r,s);else if(r!=null){const o=Ns(r);t[i]=()=>o}}},or=(e,t)=>{const n=Ns(t);e.slots.default=()=>n},lr=(e,t,n)=>{for(const s in t)(n||!Is(s))&&(e[s]=t[s])},Al=(e,t,n)=>{const s=e.slots=er();if(e.vnode.shapeFlag&32){const i=t._;i?(lr(s,t,n),n&&Ys(s,"_",i,!0)):rr(t,s)}else t&&or(e,t)},El=(e,t,n)=>{const{vnode:s,slots:i}=e;let r=!0,o=G;if(s.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:lr(i,t,n):(r=!t.$stable,rr(t,i)),o=t}else t&&(or(e,t),o={default:1});if(r)for(const l in i)!Is(l)&&o[l]==null&&delete i[l]},ye=Ml;function Rl(e){return Ol(e)}function Ol(e,t){const n=Cn();n.__VUE__=!0;const{insert:s,remove:i,patchProp:r,createElement:o,createText:l,createComment:c,setText:d,setElementText:f,parentNode:m,nextSibling:E,setScopeId:A=We,insertStaticContent:H}=e,D=(a,u,h,y=null,_=null,v=null,S=void 0,w=null,x=!!u.dynamicChildren)=>{if(a===u)return;a&&!cn(a,u)&&(y=Kt(a),Le(a,_,v,!0),a=null),u.patchFlag===-2&&(x=!1,u.dynamicChildren=null);const{type:b,ref:P,shapeFlag:C}=u;switch(b){case $n:ne(a,u,h,y);break;case ct:O(a,u,h,y);break;case Bn:a==null&&j(u,h,y,S);break;case De:Re(a,u,h,y,_,v,S,w,x);break;default:C&1?Q(a,u,h,y,_,v,S,w,x):C&6?Oe(a,u,h,y,_,v,S,w,x):(C&64||C&128)&&b.process(a,u,h,y,_,v,S,w,x,Ke)}P!=null&&_?sn(P,a&&a.ref,v,u||a,!u):P==null&&a&&a.ref!=null&&sn(a.ref,null,v,a,!0)},ne=(a,u,h,y)=>{if(a==null)s(u.el=l(u.children),h,y);else{const _=u.el=a.el;u.children!==a.children&&d(_,u.children)}},O=(a,u,h,y)=>{a==null?s(u.el=c(u.children||""),h,y):u.el=a.el},j=(a,u,h,y)=>{[a.el,a.anchor]=H(a.children,u,h,y,a.el,a.anchor)},V=({el:a,anchor:u},h,y)=>{let _;for(;a&&a!==u;)_=E(a),s(a,h,y),a=_;s(u,h,y)},T=({el:a,anchor:u})=>{let h;for(;a&&a!==u;)h=E(a),i(a),a=h;i(u)},Q=(a,u,h,y,_,v,S,w,x)=>{if(u.type==="svg"?S="svg":u.type==="math"&&(S="mathml"),a==null)we(u,h,y,_,v,S,w,x);else{const b=a.el&&a.el._isVueCE?a.el:null;try{b&&b._beginPatch(),dt(a,u,_,v,S,w,x)}finally{b&&b._endPatch()}}},we=(a,u,h,y,_,v,S,w)=>{let x,b;const{props:P,shapeFlag:C,transition:k,dirs:N}=a;if(x=a.el=o(a.type,v,P&&P.is,P),C&8?f(x,a.children):C&16&&je(a.children,x,null,y,_,Ds(a,v),S,w),N&&At(a,null,y,"created"),ae(x,a,a.scopeId,S,y),P){for(const W in P)W!=="value"&&!Gt(W)&&r(x,W,null,P[W],v,y);"value"in P&&r(x,"value",null,P.value,v),(b=P.onVnodeBeforeMount)&&Qe(b,y,a)}N&&At(a,null,y,"beforeMount");const U=Pl(_,k);U&&k.beforeEnter(x),s(x,u,h),((b=P&&P.onVnodeMounted)||U||N)&&ye(()=>{try{b&&Qe(b,y,a),U&&k.enter(x),N&&At(a,null,y,"mounted")}finally{}},_)},ae=(a,u,h,y,_)=>{if(h&&A(a,h),y)for(let v=0;v<y.length;v++)A(a,y[v]);if(_){let v=_.subTree;if(u===v||dr(v.type)&&(v.ssContent===u||v.ssFallback===u)){const S=_.vnode;ae(a,S,S.scopeId,S.slotScopeIds,_.parent)}}},je=(a,u,h,y,_,v,S,w,x=0)=>{for(let b=x;b<a.length;b++){const P=a[b]=w?ut(a[b]):Ze(a[b]);D(null,P,u,h,y,_,v,S,w)}},dt=(a,u,h,y,_,v,S)=>{const w=u.el=a.el;let{patchFlag:x,dynamicChildren:b,dirs:P}=u;x|=a.patchFlag&16;const C=a.props||G,k=u.props||G;let N;if(h&&Et(h,!1),(N=k.onVnodeBeforeUpdate)&&Qe(N,h,u,a),P&&At(u,a,h,"beforeUpdate"),h&&Et(h,!0),b&&(!a.dynamicChildren||a.dynamicChildren.length!==b.length)&&(x=0,S=!1,b=null),(C.innerHTML&&k.innerHTML==null||C.textContent&&k.textContent==null)&&f(w,""),b?Ee(a.dynamicChildren,b,w,h,y,Ds(u,_),v):S||L(a,u,w,null,h,y,Ds(u,_),v,!1),x>0){if(x&16)tt(w,C,k,h,_);else if(x&2&&C.class!==k.class&&r(w,"class",null,k.class,_),x&4&&r(w,"style",C.style,k.style,_),x&8){const U=u.dynamicProps;for(let W=0;W<U.length;W++){const B=U[W],se=C[B],le=k[B];(le!==se||B==="value")&&r(w,B,se,le,_,h)}}x&1&&a.children!==u.children&&f(w,u.children)}else!S&&b==null&&tt(w,C,k,h,_);((N=k.onVnodeUpdated)||P)&&ye(()=>{N&&Qe(N,h,u,a),P&&At(u,a,h,"updated")},y)},Ee=(a,u,h,y,_,v,S)=>{for(let w=0;w<u.length;w++){const x=a[w],b=u[w],P=x.el&&(x.type===De||!cn(x,b)||x.shapeFlag&198)?m(x.el):h;D(x,b,P,null,y,_,v,S,!0)}},tt=(a,u,h,y,_)=>{if(u!==h){if(u!==G)for(const v in u)!Gt(v)&&!(v in h)&&r(a,v,u[v],null,_,y);for(const v in h){if(Gt(v))continue;const S=h[v],w=u[v];S!==w&&v!=="value"&&r(a,v,w,S,_,y)}"value"in h&&r(a,"value",u.value,h.value,_)}},Re=(a,u,h,y,_,v,S,w,x)=>{const b=u.el=a?a.el:l(""),P=u.anchor=a?a.anchor:l("");let{patchFlag:C,dynamicChildren:k,slotScopeIds:N}=u;N&&(w=w?w.concat(N):N),a==null?(s(b,h,y),s(P,h,y),je(u.children||[],h,P,_,v,S,w,x)):C>0&&C&64&&k&&a.dynamicChildren&&a.dynamicChildren.length===k.length?(Ee(a.dynamicChildren,k,h,_,v,S,w),(u.key!=null||_&&u===_.subTree)&&ar(a,u,!0)):L(a,u,h,P,_,v,S,w,x)},Oe=(a,u,h,y,_,v,S,w,x)=>{u.slotScopeIds=w,a==null?u.shapeFlag&512?_.ctx.activate(u,h,y,S,x):pt(u,h,y,_,v,S,x):nt(a,u,x)},pt=(a,u,h,y,_,v,S)=>{const w=a.component=Ul(a,y,_);if(Es(a)&&(w.ctx.renderer=Ke),$l(w,!1,S),w.asyncDep){if(_&&_.registerDep(w,re,S),!a.el){const x=w.subTree=Be(ct);O(null,x,u,h),a.placeholder=x.el}}else re(w,a,u,h,_,v,S)},nt=(a,u,h)=>{const y=u.component=a.component;if(yl(a,u,h))if(y.asyncDep&&!y.asyncResolved){J(y,u,h);return}else y.next=u,y.update();else u.el=a.el,y.vnode=u},re=(a,u,h,y,_,v,S)=>{const w=()=>{if(a.isMounted){let{next:C,bu:k,u:N,parent:U,vnode:W}=a;{const Te=cr(a);if(Te){C&&(C.el=W.el,J(a,C,S)),Te.asyncDep.then(()=>{ye(()=>{a.isUnmounted||b()},_)});return}}let B=C,se;Et(a,!1),C?(C.el=W.el,J(a,C,S)):C=W,k&&wn(k),(se=C.props&&C.props.onVnodeBeforeUpdate)&&Qe(se,U,C,W),Et(a,!0);const le=Xi(a),Ce=a.subTree;a.subTree=le,D(Ce,le,m(Ce.el),Kt(Ce),a,_,v),C.el=le.el,B===null&&xl(a,le.el),N&&ye(N,_),(se=C.props&&C.props.onVnodeUpdated)&&ye(()=>Qe(se,U,C,W),_)}else{let C;const{el:k,props:N}=u,{bm:U,m:W,parent:B,root:se,type:le}=a,Ce=rn(u);Et(a,!1),U&&wn(U),!Ce&&(C=N&&N.onVnodeBeforeMount)&&Qe(C,B,u),Et(a,!0);{se.ce&&se.ce._hasShadowRoot()&&se.ce._injectChildStyle(le,a.parent?a.parent.type:void 0);const Te=a.subTree=Xi(a);D(null,Te,h,y,a,_,v),u.el=Te.el}if(W&&ye(W,_),!Ce&&(C=N&&N.onVnodeMounted)){const Te=u;ye(()=>Qe(C,B,Te),_)}(u.shapeFlag&256||B&&rn(B.vnode)&&B.vnode.shapeFlag&256)&&a.a&&ye(a.a,_),a.isMounted=!0,u=h=y=null}};a.scope.on();const x=a.effect=new ii(w);a.scope.off();const b=a.update=x.run.bind(x),P=a.job=x.runIfDirty.bind(x);P.i=a,P.id=a.uid,x.scheduler=()=>Ss(P),Et(a,!0),b()},J=(a,u,h)=>{u.component=a;const y=a.vnode.props;a.vnode=u,a.next=null,Sl(a,u.props,y,h),El(a,u.children,h),Ge(),Ei(a),qe()},L=(a,u,h,y,_,v,S,w,x=!1)=>{const b=a&&a.children,P=a?a.shapeFlag:0,C=u.children,{patchFlag:k,shapeFlag:N}=u;if(k>0){if(k&128){pe(b,C,h,y,_,v,S,w,x);return}else if(k&256){Se(b,C,h,y,_,v,S,w,x);return}}N&8?(P&16&&yt(b,_,v),C!==b&&f(h,C)):P&16?N&16?pe(b,C,h,y,_,v,S,w,x):yt(b,_,v,!0):(P&8&&f(h,""),N&16&&je(C,h,y,_,v,S,w,x))},Se=(a,u,h,y,_,v,S,w,x)=>{a=a||It,u=u||It;const b=a.length,P=u.length,C=Math.min(b,P);let k;for(k=0;k<C;k++){const N=u[k]=x?ut(u[k]):Ze(u[k]);D(a[k],N,h,null,_,v,S,w,x)}b>P?yt(a,_,v,!0,!1,C):je(u,h,y,_,v,S,w,x,C)},pe=(a,u,h,y,_,v,S,w,x)=>{let b=0;const P=u.length;let C=a.length-1,k=P-1;for(;b<=C&&b<=k;){const N=a[b],U=u[b]=x?ut(u[b]):Ze(u[b]);if(cn(N,U))D(N,U,h,null,_,v,S,w,x);else break;b++}for(;b<=C&&b<=k;){const N=a[C],U=u[k]=x?ut(u[k]):Ze(u[k]);if(cn(N,U))D(N,U,h,null,_,v,S,w,x);else break;C--,k--}if(b>C){if(b<=k){const N=k+1,U=N<P?u[N].el:y;for(;b<=k;)D(null,u[b]=x?ut(u[b]):Ze(u[b]),h,U,_,v,S,w,x),b++}}else if(b>k)for(;b<=C;)Le(a[b],_,v,!0),b++;else{const N=b,U=b,W=new Map;for(b=U;b<=k;b++){const he=u[b]=x?ut(u[b]):Ze(u[b]);he.key!=null&&W.set(he.key,b)}let B,se=0;const le=k-U+1;let Ce=!1,Te=0;const gt=new Array(le);for(b=0;b<le;b++)gt[b]=0;for(b=N;b<=C;b++){const he=a[b];if(se>=le){Le(he,_,v,!0);continue}let oe;if(he.key!=null)oe=W.get(he.key);else for(B=U;B<=k;B++)if(gt[B-U]===0&&cn(he,u[B])){oe=B;break}oe===void 0?Le(he,_,v,!0):(gt[oe-U]=b+1,oe>=Te?Te=oe:Ce=!0,D(he,u[oe],h,null,_,v,S,w,x),se++)}const gn=Ce?kl(gt):It;for(B=gn.length-1,b=le-1;b>=0;b--){const he=U+b,oe=u[he],zt=u[he+1],kt=he+1<P?zt.el||fr(zt):y;gt[b]===0?D(null,oe,h,kt,_,v,S,w,x):Ce&&(B<0||b!==gn[B]?ht(oe,h,kt,2):B--)}}},ht=(a,u,h,y,_=null)=>{const{el:v,type:S,transition:w,children:x,shapeFlag:b}=a;if(b&6){ht(a.component.subTree,u,h,y);return}if(b&128){a.suspense.move(u,h,y);return}if(b&64){S.move(a,u,h,Ke);return}if(S===De){s(v,u,h);for(let C=0;C<x.length;C++)ht(x[C],u,h,y);s(a.anchor,u,h);return}if(S===Bn){V(a,u,h);return}if(y!==2&&b&1&&w)if(y===0)w.persisted&&!v[Ts]?s(v,u,h):(w.beforeEnter(v),s(v,u,h),ye(()=>w.enter(v),_));else{const{leave:C,delayLeave:k,afterLeave:N}=w,U=()=>{a.ctx.isUnmounted?i(v):s(v,u,h)},W=()=>{const B=v._isLeaving||!!v[Ts];v._isLeaving&&v[Ts](!0),w.persisted&&!B?U():C(v,()=>{U(),N&&N()})};k?k(v,U,W):W()}else s(v,u,h)},Le=(a,u,h,y=!1,_=!1)=>{const{type:v,props:S,ref:w,children:x,dynamicChildren:b,shapeFlag:P,patchFlag:C,dirs:k,cacheIndex:N,memo:U}=a;if(C===-2&&(_=!1),w!=null&&(Ge(),sn(w,null,h,a,!0),qe()),N!=null&&(u.renderCache[N]=void 0),P&256){u.ctx.deactivate(a);return}const W=P&1&&k,B=!rn(a);let se;if(B&&(se=S&&S.onVnodeBeforeUnmount)&&Qe(se,u,a),P&6)Zn(a.component,h,y);else{if(P&128){a.suspense.unmount(h,y);return}W&&At(a,null,u,"beforeUnmount"),P&64?a.type.remove(a,u,h,Ke,y):b&&!b.hasOnce&&(v!==De||C>0&&C&64)?yt(b,u,h,!1,!0):(v===De&&C&384||!_&&P&16)&&yt(x,u,h),y&&Bt(a)}const le=U!=null&&N==null;(B&&(se=S&&S.onVnodeUnmounted)||W||le)&&ye(()=>{se&&Qe(se,u,a),W&&At(a,null,u,"unmounted"),le&&(a.el=null)},h)},Bt=a=>{const{type:u,el:h,anchor:y,transition:_}=a;if(u===De){hn(h,y);return}if(u===Bn){T(a);return}const v=()=>{i(h),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(a.shapeFlag&1&&_&&!_.persisted){const{leave:S,delayLeave:w}=_,x=()=>S(h,v);w?w(a.el,v,x):x()}else v()},hn=(a,u)=>{let h;for(;a!==u;)h=E(a),i(a),a=h;i(u)},Zn=(a,u,h)=>{const{bum:y,scope:_,job:v,subTree:S,um:w,m:x,a:b}=a;ur(x),ur(b),y&&wn(y),_.stop(),v&&(v.flags|=8,Le(S,a,u,h)),w&&ye(w,u),ye(()=>{a.isUnmounted=!0},u)},yt=(a,u,h,y=!1,_=!1,v=0)=>{for(let S=v;S<a.length;S++)Le(a[S],u,h,y,_)},Kt=a=>{if(a.shapeFlag&6)return Kt(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const u=E(a.anchor||a.el),h=u&&u[Jo];return h?E(h):u};let be=!1;const Wt=(a,u,h)=>{let y;a==null?u._vnode&&(Le(u._vnode,null,null,!0),y=u._vnode.component):D(u._vnode||null,a,u,null,null,null,h),u._vnode=a,be||(be=!0,Ei(y),Ri(),be=!1)},Ke={p:D,um:Le,m:ht,r:Bt,mt:pt,mc:je,pc:L,pbc:Ee,n:Kt,o:e};return{render:Wt,hydrate:void 0,createApp:hl(Wt)}}function Ds({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Et({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ar(e,t,n=!1){const s=e.children,i=t.children;if(I(s)&&I(i))for(let r=0;r<s.length;r++){const o=s[r];let l=i[r];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=i[r]=ut(i[r]),l.el=o.el),!n&&l.patchFlag!==-2&&ar(o,l)),l.type===$n&&(l.patchFlag===-1&&(l=i[r]=ut(l)),l.el=o.el),l.type===ct&&!l.el&&(l.el=o.el)}}function kl(e){const t=e.slice(),n=[0];let s,i,r,o,l;const c=e.length;for(s=0;s<c;s++){const d=e[s];if(d!==0){if(i=n[n.length-1],e[i]<d){t[s]=i,n.push(s);continue}for(r=0,o=n.length-1;r<o;)l=r+o>>1,e[n[l]]<d?r=l+1:o=l;d<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,o=n[r-1];r-- >0;)n[r]=o,o=t[o];return n}function cr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:cr(t)}function ur(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function fr(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?fr(t.subTree):null}const dr=e=>e.__isSuspense;function Ml(e,t){t&&t.pendingBranch?I(e)?t.effects.push(...e):t.effects.push(e):Ho(e)}const De=Symbol.for("v-fgt"),$n=Symbol.for("v-txt"),ct=Symbol.for("v-cmt"),Bn=Symbol.for("v-stc"),Rt=[];let Ae=null;function Z(e=!1){Rt.push(Ae=e?null:[])}function pr(){Rt.pop(),Ae=Rt[Rt.length-1]||null}let an=1;function hr(e,t=!1){an+=e,e<0&&Ae&&t&&(Ae.hasOnce=!0)}function gr(e){return e.dynamicChildren=an>0?Ae||It:null,pr(),an>0&&Ae&&Ae.push(e),e}function te(e,t,n,s,i,r){return gr(R(e,t,n,s,i,r,!0))}function Il(e,t,n,s,i){return gr(Be(e,t,n,s,i,!0))}function mr(e){return e?e.__v_isVNode===!0:!1}function cn(e,t){return e.type===t.type&&e.key===t.key}const vr=({key:e})=>e??null,Kn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ee(e)||ue(e)||F(e)?{i:Ne,r:e,k:t,f:!!n}:e:null);function R(e,t=null,n=null,s=0,i=null,r=e===De?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&vr(t),ref:t&&Kn(t),scopeId:Pi,slotScopeIds:null,children:n,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:r,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Ne};return l?(Wn(c,n),r&128&&e.normalize(c)):n&&(c.shapeFlag|=ee(n)?8:16),an>0&&!o&&Ae&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Ae.push(c),c}const Be=Nl;function Nl(e,t=null,n=null,s=0,i=null,r=!1){if((!e||e===ol)&&(e=ct),mr(e)){const l=$t(e,t,!0);return n&&Wn(l,n),an>0&&!r&&Ae&&(l.shapeFlag&6?Ae[Ae.indexOf(e)]=l:Ae.push(l)),l.patchFlag=-2,l}if(ql(e)&&(e=e.__vccOpts),t){t=Dl(t);let{class:l,style:c}=t;l&&!ee(l)&&(t.class=Nt(l)),z(c)&&(xs(c)&&!I(c)&&(c=ie({},c)),t.style=Tn(c))}const o=ee(e)?1:dr(e)?128:jn(e)?64:z(e)?4:F(e)?2:0;return R(e,t,n,s,i,o,r,!0)}function Dl(e){return e?xs(e)||tr(e)?ie({},e):e:null}function $t(e,t,n=!1,s=!1){const{props:i,ref:r,patchFlag:o,children:l,transition:c}=e,d=t?jl(i||{},t):i,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&vr(d),ref:t&&t.ref?n&&r?I(r)?r.concat(Kn(t)):[r,Kn(t)]:Kn(t):r,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!==De?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$t(e.ssContent),ssFallback:e.ssFallback&&$t(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&As(f,c.clone(f)),f}function Fe(e=" ",t=0){return Be($n,null,e,t)}function Fl(e,t){const n=Be(Bn,null,e);return n.staticCount=t,n}function xe(e="",t=!1){return t?(Z(),Il(ct,null,e)):Be(ct,null,e)}function Ze(e){return e==null||typeof e=="boolean"?Be(ct):I(e)?Be(De,null,e.slice()):mr(e)?ut(e):Be($n,null,String(e))}function ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$t(e)}function Wn(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(I(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),Wn(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!tr(t)?t._ctx=Ne:i===3&&Ne&&(Ne.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(F(t)){if(s&65){Wn(e,{default:t});return}t={default:t,_ctx:Ne},n=32}else t=String(t),s&64?(n=16,t=[Fe(t)]):n=8;e.children=t,e.shapeFlag|=n}function jl(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=Nt([t.class,s.class]));else if(i==="style")t.style=Tn([t.style,s.style]);else if(bn(i)){const r=t[i],o=s[i];o&&r!==o&&!(I(r)&&r.includes(o))?t[i]=r?[].concat(r,o):o:o==null&&r==null&&!_n(i)&&(t[i]=o)}else i!==""&&(t[i]=s[i])}return t}function Qe(e,t,n,s=null){$e(e,t,7,[n,s])}const Ll=Gi();let Vl=0;function Ul(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||Ll,r={uid:Vl++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new oo(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:sr(s,i),emitsOptions:qi(s,i),emit:null,emitted:null,propsDefaults:G,inheritAttrs:s.inheritAttrs,ctx:G,data:G,props:G,attrs:G,slots:G,refs:G,setupState:G,setupContext:null,suspense:n,suspenseId:n?n.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 r.ctx={_:r},r.root=t?t.root:r,r.emit=ml.bind(null,r),e.ce&&e.ce(r),r}let ve=null;const Hl=()=>ve||Ne;let zn,un;{const e=Cn(),t=(n,s)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(s),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};zn=t("__VUE_INSTANCE_SETTERS__",n=>ve=n),un=t("__VUE_SSR_SETTERS__",n=>dn=n)}const fn=e=>{const t=ve;return zn(e),e.scope.on(),()=>{e.scope.off(),zn(t)}},br=()=>{ve&&ve.scope.off(),zn(null)};function _r(e){return e.vnode.shapeFlag&4}let dn=!1;function $l(e,t=!1,n=!1){t&&un(t);const{props:s,children:i}=e.vnode,r=_r(e);wl(e,s,r,t),Al(e,i,n||t);const o=r?Bl(e,t):void 0;return t&&un(!1),o}function Bl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ll);const{setup:s}=n;if(s){Ge();const i=e.setupContext=s.length>1?Wl(e):null,r=fn(e),o=jt(s,e,0,[e.props,i]),l=Gs(o);if(qe(),r(),(l||e.sp)&&!rn(e)&&Ni(e),l){if(o.then(br,br),t)return o.then(c=>{un(!0);try{yr(e,c,t)}finally{un(!1)}}).catch(c=>{In(c,e,0)});e.asyncDep=o}else yr(e,o)}else xr(e)}function yr(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:z(t)&&(e.setupState=Si(t)),xr(e)}function xr(e,t,n){const s=e.type;e.render||(e.render=s.render||We);{const i=fn(e);Ge();try{al(e)}finally{qe(),i()}}}const Kl={get(e,t){return de(e,"get",""),e[t]}};function Wl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Kl),slots:e.slots,emit:e.emit,expose:t}}function Jn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Si(Eo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in on)return on[n](e)},has(t,n){return n in t||n in on}})):e.proxy}const zl=/(?:^|[-_])\w/g,Jl=e=>e.replace(zl,t=>t.toUpperCase()).replace(/[-_]/g,"");function Gl(e,t=!0){return F(e)?e.displayName||e.name:e.name||t&&e.__name}function wr(e,t,n=!1){let s=Gl(t);if(!s&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&e){const i=r=>{for(const o in r)if(r[o]===t)return o};s=i(e.components)||e.parent&&i(e.parent.type.components)||i(e.appContext.components)}return s?Jl(s):n?"App":"Anonymous"}function ql(e){return F(e)&&"__vccOpts"in e}const et=(e,t)=>Mo(e,t,dn),Xl="3.5.42";/**
* @vue/runtime-dom v3.5.42
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Fs;const Sr=typeof window<"u"&&window.trustedTypes;if(Sr)try{Fs=Sr.createPolicy("vue",{createHTML:e=>e})}catch{}const Cr=Fs?e=>Fs.createHTML(e):e=>e,Yl="http://www.w3.org/2000/svg",Zl="http://www.w3.org/1998/Math/MathML",ft=typeof document<"u"?document:null,Tr=ft&&ft.createElement("template"),Ql={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?ft.createElementNS(Yl,e):t==="mathml"?ft.createElementNS(Zl,e):n?ft.createElement(e,{is:n}):ft.createElement(e);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>ft.createTextNode(e),createComment:e=>ft.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ft.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,r){const o=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{Tr.innerHTML=Cr(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Tr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ea=Symbol("_vtc");function ta(e,t,n){const s=e[ea];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ar=Symbol("_vod"),na=Symbol("_vsh"),sa=Symbol(""),ia=/(?:^|;)\s*display\s*:/;function ra(e,t,n){const s=e.style,i=ee(n);let r=!1;if(n&&!i){if(t)if(ee(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&pn(s,l,"")}else for(const o in t)n[o]==null&&pn(s,o,"");for(const o in n){o==="display"&&(r=!0);const l=n[o];l!=null?la(e,o,!ee(t)&&t?t[o]:void 0,l)||pn(s,o,l):pn(s,o,"")}}else if(i){if(t!==n){const o=s[sa];o&&(n+=";"+o),s.cssText=n,r=ia.test(n)}}else t&&e.removeAttribute("style");Ar in e&&(e[Ar]=r?s.display:"",e[na]&&(s.display="none"))}const Gn=/\s*!important$/;function pn(e,t,n){if(I(n))n.forEach(s=>pn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))Gn.test(n)?e.setProperty(t,n.replace(Gn,""),"important"):e.setProperty(t,n);else{const s=oa(e,t);Gn.test(n)?e.setProperty(Me(s),n.replace(Gn,""),"important"):e[s]=n}}const Er=["Webkit","Moz","ms"],js={};function oa(e,t){const n=js[t];if(n)return n;let s=_e(t);if(s!=="filter"&&s in e)return js[t]=s;s=Xs(s);for(let i=0;i<Er.length;i++){const r=Er[i]+s;if(r in e)return js[t]=r}return t}function la(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&ee(s)&&n===s}const Rr="http://www.w3.org/1999/xlink";function Or(e,t,n,s,i,r=so(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Rr,t.slice(6,t.length)):e.setAttributeNS(Rr,t,n):n==null||r&&!ei(n)?e.removeAttribute(t):e.setAttribute(t,r?"":ze(n)?String(n):n)}function Pr(e,t,n,s,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Cr(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const l=r==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=ei(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function Ot(e,t,n,s){e.addEventListener(t,n,s)}function aa(e,t,n,s){e.removeEventListener(t,n,s)}const kr=Symbol("_vei");function ca(e,t,n,s,i=null){const r=e[kr]||(e[kr]={}),o=r[t];if(s&&o)o.value=s;else{const[l,c]=da(t);if(s){const d=r[t]=ga(s,i);Ot(e,l,d,c)}else o&&(aa(e,l,o,c),r[t]=void 0)}}const ua=/(Once|Passive|Capture)$/,fa=/^on:?(?:Once|Passive|Capture)$/;function da(e){let t,n;for(;(n=e.match(ua))&&!fa.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Me(e.slice(2)),t]}let Ls=0;const pa=Promise.resolve(),ha=()=>Ls||(pa.then(()=>Ls=0),Ls=Date.now());function ga(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const i=n.value;if(I(i)){const r=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{r.call(s),s._stopped=!0};const o=i.slice(),l=[s];for(let c=0;c<o.length&&!s._stopped;c++){const d=o[c];d&&$e(d,t,5,l)}}else $e(i,t,5,[s])};return n.value=e,n.attached=ha(),n}const Mr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ma=(e,t,n,s,i,r)=>{const o=i==="svg";t==="class"?ta(e,s,o):t==="style"?ra(e,n,s):bn(t)?_n(t)||ca(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):va(e,t,s,o))?(Pr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Or(e,t,s,o,r,t!=="value")):e._isVueCE&&(ba(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ee(s)))?Pr(e,_e(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Or(e,t,s,o))};function va(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Mr(t)&&F(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Mr(t)&&ee(n)?!1:t in e}function ba(e,t){const n=e._def.props;if(!n)return!1;const s=_e(t);return Array.isArray(n)?n.some(i=>_e(i)===s):Object.keys(n).some(i=>_e(i)===s)}const Ir={};function _a(e,t,n){let s=qo(e,t);yn(s)&&(s=ie({},s,t));class i extends Vs{constructor(o){super(s,o,n)}}return i.def=s,i}const ya=typeof HTMLElement<"u"?HTMLElement:class{};class Vs extends ya{constructor(t,n={},s=Vr){super(),this._def=t,this._props=n,this._createApp=s,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&s!==Vr?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(ie({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.assignedSlot||t.parentNode||t.host);)if(t instanceof Vs){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,tn(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(s,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:r,styles:o}=s;let l;if(r&&!I(r))for(const c in r){const d=r[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=Zs(this._props[c])),(l||(l=Object.create(null)))[_e(c)]=!0)}this._numberProps=l,this._resolveProps(s),this.shadowRoot&&this._applyStyles(o),this._mount(s)},n=this._def.__asyncLoader;if(n)return this._pendingResolve=n().then(s=>{s.configureApp=this._def.configureApp,t(this._def=s,!0)}),this._pendingResolve;t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const s in n)K(this,s)||Object.defineProperty(this,s,{get:()=>wi(n[s])})}_resolveProps(t){const{props:n}=t,s=I(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&s.includes(i)&&this._setProp(i,this[i]);for(const i of s.map(_e))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(r){this._setProp(i,r,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let s=n?this.getAttribute(t):Ir;const i=_e(t);n&&this._numberProps&&this._numberProps[i]&&(s=Zs(s)),this._setProp(i,s,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,i=!1){if(n!==this._props[t]&&(this._dirty=!0,n===Ir?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),i&&this._instance&&this._update(),s)){const r=this._ob;r&&(this._processMutations(r.takeRecords()),r.disconnect()),n===!0?this.setAttribute(Me(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Me(t),n+""):n||this.removeAttribute(Me(t)),r&&r.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Ta(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=Be(this._def,ie(t,this._props));return this._instance||(n.ce=s=>{this._instance=s,s.ce=this,s.isCE=!0;const i=(r,o)=>{this.dispatchEvent(new CustomEvent(r,yn(o[0])?ie({detail:o},o[0]):{detail:o}))};s.emit=(r,...o)=>{i(r,o),Me(r)!==r&&i(Me(r),o)},this._setParent()}),n}_applyStyles(t,n,s){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const i=this._nonce,r=this.shadowRoot,o=s?this._getStyleAnchor(s)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(r);let l=null;for(let c=t.length-1;c>=0;c--){const d=document.createElement("style");i&&d.setAttribute("nonce",i),d.textContent=t[c],r.insertBefore(d,l||o),l=d,c===0&&(s||this._styleAnchors.set(this._def,d),n&&this._styleAnchors.set(n,d))}}_getStyleAnchor(t){if(!t)return null;const n=this._styleAnchors.get(t);return n&&n.parentNode===this.shadowRoot?n:(n&&this._styleAnchors.delete(t),null)}_getRootStyleInsertionAnchor(t){for(let n=0;n<t.childNodes.length;n++){const s=t.childNodes[n];if(!(s instanceof HTMLStyleElement))return s}return null}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const s=n.nodeType===1&&n.getAttribute("slot")||"default";(t[s]||(t[s]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let s=0;s<t.length;s++){const i=t[s],r=i.getAttribute("name")||"default",o=this._slots[r],l=i.parentNode;if(o)for(const c of o){if(n&&c.nodeType===1){const d=n+"-s",f=document.createTreeWalker(c,1);c.setAttribute(d,"");let m;for(;m=f.nextNode();)m.setAttribute(d,"")}l.insertBefore(c,i)}else for(;i.firstChild;)l.insertBefore(i.firstChild,i);l.removeChild(i)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const s of t){const i=s.querySelectorAll("slot");for(let r=0;r<i.length;r++)n.add(i[r])}return Array.from(n)}_injectChildStyle(t,n){this._applyStyles(t.styles,t,n)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(t){}}const qn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return I(t)?n=>wn(t,n):t};function xa(e){e.target.composing=!0}function Nr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Pt=Symbol("_assign"),Xn=Symbol("_initialValue");function Us(e,t,n){return t&&(e=e.trim()),n&&(e=Sn(e)),e}const wa={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e.parentNode&&(e.type==="text"?e[Xn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Xn]=e.defaultValue.replace(/\r\n?/g,`
`))),e[Pt]=qn(i);const r=s||i.props&&i.props.type==="number";Ot(e,t?"change":"input",o=>{o.target.composing||e[Pt](Us(e.value,n,r))}),(n||r)&&Ot(e,"change",()=>{e.value=Us(e.value,n,r)}),t||(Ot(e,"compositionstart",xa),Ot(e,"compositionend",Nr),Ot(e,"change",Nr))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const i=t??"",r=e[Xn];delete e[Xn],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[Pt](Us(e.value,n,s)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:i,number:r}},o){if(e[Pt]=qn(o),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?Sn(e.value):e.value,c=t??"";if(l===c)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(s&&t===n||i&&e.value.trim()===c)||(e.value=c)}},Dr={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,Ot(e,"change",()=>{const i=Array.prototype.filter.call(e.options,c=>c.selected).map(c=>n?Sn(Yn(c)):Yn(c)),r=e.multiple,o=r?wt(e._modelValue)?new Set(i):i:i[0],l=e._pendingValue=[r,r?I(o)?i.slice():i:o];try{e[Pt](o)}finally{tn(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[Pt]=qn(s)},mounted(e,{value:t}){Fr(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Pt]=qn(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Sa(t,n[1],n[0]))&&Fr(e,t)}};function Sa(e,t,n){if(!n||I(e))return bt(e,t);if(wt(e)){if(e.size!==t.length)return!1;for(const s of t)if(!e.has(s))return!1;return!0}return!1}function Fr(e,t){const n=e.multiple,s=I(t);if(!(n&&!s&&!wt(t))){for(let i=0,r=e.options.length;i<r;i++){const o=e.options[i],l=Yn(o);if(n)if(s){const c=typeof l;c==="string"||c==="number"?o.selected=t.some(d=>String(d)===String(l)):o.selected=ro(t,l)>-1}else o.selected=t.has(l);else if(bt(Yn(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Yn(e){return"_value"in e?e._value:e.value}const Ca=ie({patchProp:ma},Ql);let jr;function Lr(){return jr||(jr=Rl(Ca))}const Ta=(...e)=>{Lr().render(...e)},Vr=(...e)=>{const t=Lr().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=Ea(s);if(!i)return;const r=t._component;!F(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=n(i,!1,Aa(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function Aa(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Ea(e){return ee(e)?document.querySelector(e):e}const Ra=":host{display:block}.rudder{--bg: #0b0f14;--panel: #111823;--line: #1f2937;--text: #e5e7eb;--muted: #9ca3af;--accent: #38bdf8;--rec: #ef4444;--ok: #22c55e;--warn: #f59e0b;box-sizing:border-box;display:flex;flex-direction:column;gap:14px;min-height:max(100%,480px);padding:18px;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;font-size:15px}.rudder *,.rudder *:before,.rudder *:after{box-sizing:border-box}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:12px}.logo{font-size:30px;color:var(--accent);line-height:1}h1{margin:0;font-size:20px;letter-spacing:-.01em}.sub{margin:2px 0 0;color:var(--muted);font-size:12.5px}.status{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;font-size:13px;color:var(--muted);background:var(--panel)}.status .dot{width:8px;height:8px;border-radius:50%;background:var(--muted)}.status[data-state=ready] .dot{background:var(--ok)}.status[data-state=starting] .dot,.status[data-state=connecting] .dot{background:var(--warn);animation:pulse 1.2s infinite}.status[data-state=error] .dot,.status[data-state=offline] .dot{background:var(--rec)}.rec .status .dot{background:var(--rec);animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.35}}.controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.mic{display:inline-flex;align-items:center;gap:10px;padding:12px 22px;border-radius:999px;border:1px solid var(--line);background:var(--accent);color:#04121c;font-weight:700;font-size:16px;cursor:pointer}.mic.on{background:var(--rec);color:#fff}.mic:disabled{opacity:.45;cursor:not-allowed}.mic:focus-visible,button:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.mic-icon{font-size:14px}.meter{flex:1 1 140px;min-width:100px;height:8px;border-radius:4px;background:var(--panel);border:1px solid var(--line);overflow:hidden}.meter .fill{height:100%;background:linear-gradient(90deg,var(--ok),var(--warn),var(--rec));transition:width .12s linear}.lang{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}select{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:7px 10px;font-size:14px}.notice{margin:0;padding:10px 12px;border-radius:8px;border:1px solid var(--line);background:var(--panel);font-size:13.5px;line-height:1.45}.notice[data-kind=error]{border-color:#7f1d1d;background:#1f0f12}.notice[data-kind=warn]{border-color:#78350f;background:#1c140a}.notice[data-kind=ok]{border-color:#14532d;background:#0b1a11}.mics{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.mic-pick{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;flex:1 1 260px}.mic-pick select{flex:1;min-width:0}.small{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:7px 12px;cursor:pointer;font-size:13.5px}.small:disabled{opacity:.45;cursor:not-allowed}.small.ghost{background:transparent}.hint{margin:0;color:var(--muted);font-size:12.5px}code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;color:#c4b5fd;overflow-wrap:anywhere}.compose{flex:1 1 auto;display:flex;flex-direction:column;gap:6px;min-height:260px}.draft{flex:1 1 auto;width:100%;min-height:240px;resize:vertical;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);font:inherit;font-size:16px;line-height:1.6}.draft:focus{outline:2px solid var(--accent);outline-offset:1px}.draft::placeholder{color:#6b7280}.hearing{margin:0;min-height:1.5em;color:var(--accent);font-size:14px;overflow-wrap:anywhere}.hearing .tag{display:inline-block;margin-right:6px;padding:1px 7px;border-radius:999px;background:#0c2a3a;color:var(--accent);font-size:11px;text-transform:uppercase;letter-spacing:.04em}.count{color:var(--muted);font-size:12.5px}.bottom{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.bottom button,.debug button{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:8px 14px;cursor:pointer;font-size:14px}.bottom button:disabled{opacity:.45;cursor:not-allowed}.bottom .ghost{background:transparent}.spacer{flex:1}.info-btn{margin-left:auto;background:transparent;border:1px solid var(--line);color:var(--muted);border-radius:999px;width:30px;height:30px;font-size:16px;cursor:pointer}.info-btn:hover,.info-btn[aria-expanded=true]{color:var(--accent);border-color:var(--accent)}.info{border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:14px 16px;font-size:14px;line-height:1.55}.info h2{margin:0 0 6px;font-size:16px}.info p{margin:0 0 8px}.info ul{margin:0 0 8px;padding-left:18px}.info li{margin-bottom:6px}.info .fine{color:var(--muted);font-size:12.5px;margin:0}.debug{border:1px dashed var(--line);border-radius:10px;padding:12px;font-size:13px}.debug dl{display:grid;grid-template-columns:90px 1fr;gap:6px 10px;margin:0 0 10px}.debug dt{color:var(--muted)}.debug dd{margin:0;overflow-wrap:anywhere}.rudder.compact{height:100%;min-height:0;overflow:hidden;padding:10px 12px 12px;gap:8px;font-size:14px}.rudder.compact.more{overflow-y:auto}.bar{display:flex;align-items:center;gap:8px}.bar .name{font-size:14px}.bar .status{padding:3px 9px;font-size:12px;gap:6px}.icon-btn{display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--muted);cursor:pointer}.icon-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.icon-btn[aria-expanded=true],.icon-btn:hover{color:var(--accent);border-color:var(--accent)}.compact .controls .mic{display:none}.compact .compose{flex:1 1 0;min-height:120px}.compact.more .compose{flex:0 0 auto;height:200px}.compact .draft{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;resize:none;padding:10px 12px;font-size:16px;line-height:1.5}.compact .hearing{display:none}.compact .bottom{order:2;gap:8px}.compact .bottom button{padding:7px 12px}.compact .bottom .mic.sm{padding:9px 18px;font-size:15px;gap:6px;border-radius:999px}.compact .bottom .mic.sm:not(.on){background:var(--accent);color:#04121c;border-color:var(--accent)}.compact .bottom .mic.sm.on{background:var(--rec);color:#fff;border-color:var(--rec)}.compact .notice,.compact .hint{order:0;font-size:12.5px;padding:8px 10px}.compact .debug{order:4}@media (max-width: 480px){.rudder{min-height:100%;padding:12px;gap:10px}.compose{min-height:200px}.draft{min-height:180px}.notice,.hint{order:1}.bottom{order:2}.debug{order:3}}",Oa=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},Pa={key:0,class:"bar"},ka=["data-state"],Ma=["aria-expanded"],Ia=["aria-expanded"],Na={key:1,class:"top"},Da=["aria-expanded"],Fa=["data-state"],ja={key:2,class:"info"},La={key:3,class:"controls"},Va=["disabled","aria-pressed","aria-label"],Ua={class:"mic-icon","aria-hidden":"true"},Ha={class:"meter","aria-hidden":"true"},$a={class:"lang"},Ba=["disabled"],Ka=["value"],Wa={key:4,class:"mics"},za={class:"mic-pick"},Ja=["disabled"],Ga={value:""},qa=["value"],Xa=["disabled"],Ya=["disabled"],Za=["data-kind"],Qa={key:6,class:"notice","data-kind":"warn"},ec={key:7,class:"notice","data-kind":"error"},tc={key:8,class:"notice","data-kind":"warn"},nc={key:9,class:"hint"},sc=["data-kind"],ic={key:11,class:"notice","data-kind":"warn"},rc={key:12,class:"notice","data-kind":"warn"},oc={key:13,class:"notice","data-kind":"warn"},lc={class:"compose"},ac={class:"hearing","aria-live":"polite"},cc={class:"bottom"},uc=["disabled","aria-pressed","aria-label"],fc={class:"mic-icon","aria-hidden":"true"},dc=["disabled"],pc=["disabled"],hc={class:"count"},gc=["aria-expanded"],mc={key:14,class:"debug"},vc={key:0},Ur="rudder-voice:v1",Hr=700,bc=`class RudderPcm16k extends AudioWorkletProcessor {
constructor () { super(); this.step = sampleRate / 16000; this.pos = 0; this.out = new Int16Array(1600); this.n = 0 }
process (inputs) {
const ch = inputs[0] && inputs[0][0]
if (!ch) return true
for (; this.pos < ch.length; this.pos += this.step) {
const v = Math.max(-1, Math.min(1, ch[Math.floor(this.pos)]))
this.out[this.n++] = v < 0 ? v * 32768 : v * 32767
if (this.n === this.out.length) { this.port.postMessage(this.out.buffer, [this.out.buffer]); this.out = new Int16Array(1600); this.n = 0 }
}
this.pos -= ch.length
return true
}
}
registerProcessor('rudder-pcm16k', RudderPcm16k)`,_c=_a(Oa(Object.assign({inheritAttrs:!1},{__name:"rudder-voice",props:{profileConfig:{type:String,default:""},variant:{type:String,default:""}},emits:["recording","activity"],setup(e,{emit:t}){const n=e,s=et(()=>n.variant==="widget"),i=t,r=et(()=>{try{return n.profileConfig?JSON.parse(n.profileConfig):{}}catch{return{}}}),o=et(()=>(r.value.apiBase||"/api/rudder").replace(/\/$/,"")),l=/^(localhost|127\.\d+\.\d+\.\d+|\[?::1\]?|tauri\.localhost)$/,c=et(()=>{try{return/^https?:\/\//.test(o.value)?l.test(new URL(o.value).hostname):typeof location>"u"||location.protocol==="tauri:"||l.test(location.hostname)}catch{return!0}}),d=[["en-US","English (US)"],["en-GB","English (UK)"],["es-US","Spanish (US)"],["es-ES","Spanish (Spain)"],["fr-FR","French"],["de-DE","German"],["it-IT","Italian"],["pt-BR","Portuguese (Brazil)"],["nl-NL","Dutch"],["ru-RU","Russian"],["uk-UA","Ukrainian"],["tr-TR","Turkish"],["ar-AR","Arabic"],["hi-IN","Hindi"],["ja-JP","Japanese"],["ko-KR","Korean"],["vi-VN","Vietnamese"],["zh-CN","Mandarin"]];function f(){try{return JSON.parse(localStorage.getItem(Ur)||"{}")}catch{return{}}}function m(){try{localStorage.setItem(Ur,JSON.stringify({language:V.value,device:L.value,draft:T.value}))}catch{}}const E=f(),A=Y("connecting"),H=Y(""),D=Y(""),ne=Y(""),O=Y(!1),j=Y(!1),V=Y(E.language||r.value.language||"en-US"),T=Y(typeof E.draft=="string"?E.draft:Array.isArray(E.lines)?E.lines.map(g=>g.text).join(" "):""),Q=Y(""),we=Y(null),ae=Y(0),je=Y(""),dt=Y("info"),Ee=Y(""),tt=Y(!1),Re=Y(!1),Oe=Y(!1),pt=Y([]),nt=Y([]),re=Y([]),J=Y(""),L=Y(E.device||""),Se=Y(!1),pe=Y(null),ht={bluetooth:"🎧",usb:"🔌",pci:"💻"};function Le(g){const p=[(ht[g.bus]||"🎙")+" "+g.label];return g.muted?p.push("(muted)"):g.volume&&p.push("· "+g.volume),p.join(" ")}const Bt=et(()=>nt.value.find(g=>g.default)),hn=et(()=>nt.value.find(g=>g.id===L.value)||(L.value?null:Bt.value));function Zn(g){g&&(nt.value=g.devices||[],re.value=g.offCards||[],J.value=g.error||"",L.value&&!nt.value.some(p=>p.id===L.value)&&(O.value||(Pe("Your chosen microphone is no longer connected — using the system default instead.","warn"),L.value="",m())))}async function yt(){try{Zn(await(await fetch(o.value+"/devices")).json())}catch(g){Ke("devices fetch failed: "+g)}}async function Kt(){if(!(Se.value||O.value)){Se.value=!0,pe.value=null;try{pe.value=await Hs("/test",{device:L.value})}catch(g){pe.value={ok:!1,verdict:String(g.message||g)}}finally{Se.value=!1,ae.value=0}}}let be=null,Wt=null;function Ke(g){pt.value.push(new Date().toISOString().slice(11,23)+" "+g),pt.value.length>200&&pt.value.splice(0,pt.value.length-200)}function Pe(g,p="info"){je.value=g,dt.value=p}let a=null,u=0;function h(){return!a||!T.value.endsWith(a.text)?!1:(a.start=T.value.length-a.text.length,!0)}function y(g){const p=we.value,M=p&&p.getRootNode().activeElement===p,fe=p?p.selectionStart:0,st=p?p.selectionEnd:0,Ve=!p||p.scrollHeight-p.scrollTop-p.clientHeight<32;T.value=g,m(),tn(()=>{p&&(M&&p.setSelectionRange(Math.min(fe,g.length),Math.min(st,g.length)),(Ve||!M)&&(p.scrollTop=p.scrollHeight))})}const _=g=>!g||/\s$/.test(g)?"":" ",v=g=>(g||"").trim().split(/\s+/).filter(Boolean),S=g=>(g||"").toLowerCase().replace(/[^\p{L}\p{N}']/gu,"");function w(g){const p=v(a.text),M=p[p.length-1]||"",fe=g[u+a.shown-1],st=a.shown>0&&fe!==void 0&&S(fe)!==S(M)&&S(fe).startsWith(S(M)),Ve=T.value.lastIndexOf(a.text);Ve>=0&&(a.start=Ve);const ts=a.start+a.text.length,Oc=Ve>=0;if(st&&Oc&&M){let Mt=ts-M.length;Mt>a.start&&T.value[Mt-1]===" "&&Mt--;const Pc=ts-Mt,xt=we.value,kc=xt&&xt.getRootNode().activeElement===xt,Gr=ns=>ns>=ts?ns-Pc:ns>Mt?Mt:ns,Mc=xt?Gr(xt.selectionStart):0,Ic=xt?Gr(xt.selectionEnd):0;T.value=T.value.slice(0,Mt)+T.value.slice(ts),kc&&tn(()=>xt.setSelectionRange(Mc,Ic)),u+=a.shown-1}else u+=a.shown;a=null}function x(g,p){const M=g.join(" ");if(h()){const fe=a.text.match(/^\s*/)[0];a.text=M?fe+M:"",a.shown=g.length,y(T.value.slice(0,a.start)+a.text);return}a&&w(p),M&&(a={start:T.value.length,text:_(T.value)+M,shown:g.length},y(T.value+a.text))}let b=0,P=null;const C=[];let k=null;function N(){b=Date.now()}function U(){N(),m()}function W(){return Date.now()-b<Hr}function B(){clearTimeout(k),k=setTimeout(()=>{if(W())return B();const g=C.splice(0),p=P;P=null;for(const M of g)Te(M);p!==null&&Ce(p)},Hr)}function se(g){if(W()||C.length){P=g,B();return}Ce(g)}function le(g){if(W()||C.length){C.push(g),P=null,B();return}Te(g)}function Ce(g){const p=v(g);a&&!h()&&w(p),x(p.slice(u),p)}function Te(g){const p=v(g);a&&!h()&&w(p),x(p.slice(u),p),a=null,u=0}function gt(g){g&&(g.engine&&(A.value=g.engine),H.value=g.error||"",g.runtime&&(D.value=g.runtime),g.model&&(ne.value=g.model),g.audio&&(oe.value=g.audio),typeof g.expected=="boolean"&&(zt.value=g.expected),typeof g.recording=="boolean"&&oe.value!=="browser"&&(O.value=g.recording))}function gn(){clearTimeout(Wt);try{be==null||be.close()}catch{}if(typeof window>"u"||typeof window.EventSource!="function"){H.value="The desktop engine is not running.";return}be=new window.EventSource(o.value+"/events"),be.onopen=()=>Ke("events connected"),be.onmessage=g=>he(g.data),be.onerror=()=>{A.value="offline",oe.value!=="browser"&&(O.value=!1),Ke("events disconnected; retrying in 3s"),Kr();try{be.close()}catch{}Wt=setTimeout(gn,3e3)}}function he(g){let p;try{p=JSON.parse(g)}catch{return}switch(p.type){case"status":gt(p.status||p),p.engine==="error"&&Pe(p.error||"Speech engine error","error"),p.engine==="ready"&&dt.value!=="error"&&Pe("");break;case"recording":O.value=!!p.recording,p.recording||(ae.value=0,es(),vn());break;case"partial":Q.value+=p.text,se(Q.value);break;case"final":Q.value="",le(p.text);break;case"recovering":Pe(p.message,"warn");break;case"recovered":Pe(p.message,"ok"),setTimeout(()=>{dt.value==="ok"&&Pe("")},4e3);break;case"devices":Zn(p.devices);break;case"level":ae.value=Math.min(1,(p.peak||0)*3);break;case"warning":Pe(p.message,"warn");break;case"error":Pe(p.message,"error"),Ke("engine error: "+p.message);break}}const oe=Y("local"),zt=Y(!1),kt=et(()=>oe.value==="local"&&!c.value&&A.value==="ready");let ke=null,mn=null,mt=null;async function yc(){if(ke&&(vn(),es()),!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw new Error("This browser cannot share its microphone here (it needs a secure https:// page).");mn=await navigator.mediaDevices.getUserMedia({audio:{channelCount:1,echoCancellation:!0,noiseSuppression:!0}}),mt=new window.AudioContext;const g=URL.createObjectURL(new Blob([bc],{type:"text/javascript"}));await mt.audioWorklet.addModule(g),URL.revokeObjectURL(g);const p=new window.AudioWorkletNode(mt,"rudder-pcm16k"),M=mt.createGain();M.gain.value=0,mt.createMediaStreamSource(mn).connect(p),p.connect(M).connect(mt.destination);const fe=new URL(o.value+"/stream",location.href);fe.protocol=fe.protocol==="https:"?"wss:":"ws:",fe.searchParams.set("language",V.value);const st=new window.WebSocket(fe);ke=st,st.binaryType="arraybuffer",st.onmessage=Ve=>{ke===st&&he(Ve.data)},st.onclose=Ve=>{ke===st&&(Ve.code===4409&&Pe(Ve.reason||"Someone else is recording on this server.","error"),ke=null,Qn(),O.value&&(O.value=!1,ae.value=0),es())},p.port.onmessage=Ve=>{ke&&ke.readyState===1&&ke.send(Ve.data)}}function Qn(){try{mn&&mn.getTracks().forEach(g=>g.stop())}catch{}try{mt&&mt.close()}catch{}mn=null,mt=null}function xc(){Qn(),O.value=!1,ae.value=0,ke&&ke.readyState===1?ke.send(JSON.stringify({type:"stop"})):(vn(),es())}function vn(){const g=ke;if(ke=null,g)try{g.close()}catch{}}function es(){clearTimeout(k);const g=C.splice(0),p=P;P=null;for(const M of g)Te(M);p!==null&&Ce(p),Q.value="",a=null,u=0,u=0}async function Hs(g,p){const M=await fetch(o.value+g,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p||{})}),fe=await M.json().catch(()=>({}));if(!M.ok)throw new Error(fe.error||`HTTP ${M.status}`);return fe}async function $s(){if(!j.value){j.value=!0;try{oe.value==="browser"?O.value?xc():(Pe(""),await yc()):O.value?await Hs("/stop"):(Pe(""),pe.value=null,gt(await Hs("/start",{language:V.value,device:L.value})))}catch(g){oe.value==="browser"&&(Qn(),vn()),Pe(g&&g.name==="NotAllowedError"?"Microphone permission was refused — allow it for this site to record.":String(g.message||g),"error"),Ke("toggle failed: "+g)}finally{j.value=!1}}}const $r=et(()=>T.value.trim()?T.value.trim().split(/\s+/).length:0);async function Br(g,p){try{await navigator.clipboard.writeText(g)}catch{const M=document.createElement("textarea");M.value=g,document.body.appendChild(M),M.select();try{document.execCommand("copy")}catch{}M.remove()}Ee.value=p,setTimeout(()=>{Ee.value===p&&(Ee.value="")},1500)}function wc(){T.value.trim()&&!window.confirm("Clear the whole text box? This cannot be undone.")||(T.value="",Q.value="",a=null,m())}const Sc=/\b([0-9a-f]{2}[:_]){5}[0-9a-f]{2}\b/gi;function Cc(){return nt.value.map((g,p)=>({mic:"mic "+(p+1),bus:g.bus,default:g.default,muted:g.muted,volume:g.volume,state:g.state}))}function Tc(){const g=navigator.userAgent;return/firefox/i.test(g)?"Firefox":/edg\//i.test(g)?"Edge":/chrom/i.test(g)?"Chromium-based":/safari/i.test(g)?"Safari":"other"}async function Ac(){let g="(unreachable)",p="(unreachable)";try{g=await(await fetch(o.value+"/log")).text()}catch{}try{p=JSON.stringify(await(await fetch(o.value+"/status")).json(),null,2)}catch{}const M=["// RUDDER DEBUG REPORT — for a coding agent.","// Read the engine status and log below, find why transcription failed or misbehaved, and propose a fix","// in backend/rudder-engine/main.go or plugin-designs/rudder-voice/rudder-voice.vue. Do not guess:","// quote the log lines that prove the cause.","","== status ==",p,"== plugin ==",JSON.stringify({apiBase:o.value,draftChars:T.value.length,engine:A.value,recording:O.value,language:V.value,device:L.value?"chosen mic":"(system default)",browser:Tc()},null,2),"== microphones ==",JSON.stringify({devices:Cc(),offCards:re.value.length,error:J.value,lastTest:pe.value},null,2),"== client log ==",pt.value.join(`
`),"== engine log ==",g].join(`
`).replace(Sc,"XX:XX:XX:XX:XX:XX");Br(M,"debug")}function Bs(g){g.ctrlKey&&g.shiftKey&&g.code==="Space"&&(g.preventDefault(),$s())}async function Kr(){try{const g=await fetch(o.value+"/status");g.ok&&gt(await g.json())}catch{}}const Ec=!!r.value.apiBase||!1||typeof window<"u"&&(!!window.__TAURI__||!!window.__TAURI_INTERNALS__||location.protocol==="tauri:");Li(()=>{if(!Ec){A.value="offline",window.addEventListener("keydown",Bs);return}Kr(),gn(),yt(),window.addEventListener("keydown",Bs)}),Vi(()=>{clearTimeout(Wt);try{be==null||be.close()}catch{}Qn(),vn(),window.removeEventListener("keydown",Bs)}),Ut(O,g=>i("recording",g));let Wr=0,Ks=null,zr="";function Rc(){Ks=null;const g=O.value&&Date.now()<Wr,p=O.value?T.value.trim().split(/\s+/).slice(-5).join(" "):"",M=g+"|"+p;M!==zr&&(zr=M,i("activity",{speaking:g,words:p}))}function Ws(){Ks||(Ks=setTimeout(Rc,150))}Ut(ae,g=>{g>.12&&(Wr=Date.now()+400),Ws(),setTimeout(Ws,450)}),Ut([T,O],Ws);const Jr=et(()=>({connecting:"Connecting…",starting:"Loading speech model… (about 20 s the first time)",ready:kt.value?"Runs on your computer":O.value?"Listening":"Ready",error:"Engine error",offline:c.value?"Engine offline":zt.value?"Not running yet":"Runs on your computer"})[A.value]||A.value);return(g,p)=>(Z(),te("div",{class:Nt(["rudder",{rec:O.value,compact:s.value,more:s.value&&(Oe.value||Re.value)}])},[s.value?(Z(),te("header",Pa,[p[12]||(p[12]=R("b",{class:"name"},"Rudder",-1)),R("div",{class:"status","data-state":A.value,role:"status"},[p[9]||(p[9]=R("span",{class:"dot","aria-hidden":"true"},null,-1)),Fe(q(Jr.value),1)],8,ka),p[13]||(p[13]=R("span",{class:"spacer"},null,-1)),R("button",{class:"icon-btn","aria-expanded":Oe.value,title:"Language and microphone","aria-label":"Language and microphone",onClick:p[0]||(p[0]=M=>Oe.value=!Oe.value)},[...p[10]||(p[10]=[R("svg",{viewBox:"0 0 24 24","aria-hidden":"true"},[R("path",{d:"M4 7h10M18 7h2M4 17h4M12 17h8"}),R("circle",{cx:"16",cy:"7",r:"2"}),R("circle",{cx:"10",cy:"17",r:"2"})],-1)])],8,Ma),R("button",{class:"icon-btn","aria-expanded":Re.value,title:"What is Rudder?","aria-label":"What is Rudder?",onClick:p[1]||(p[1]=M=>Re.value=!Re.value)},[...p[11]||(p[11]=[R("svg",{viewBox:"0 0 24 24","aria-hidden":"true"},[R("circle",{cx:"12",cy:"12",r:"9"}),R("path",{d:"M12 11v6M12 7.5v.5"})],-1)])],8,Ia)])):(Z(),te("header",Na,[p[15]||(p[15]=R("div",{class:"brand"},[R("span",{class:"logo","aria-hidden":"true"},"⎈"),R("div",null,[R("h1",null,"Rudder"),R("p",{class:"sub"},"Voice-to-text for vibe coders · private · runs on this computer · no internet")])],-1)),R("button",{class:"info-btn","aria-expanded":Re.value,title:"What is Rudder?","aria-label":"What is Rudder?",onClick:p[2]||(p[2]=M=>Re.value=!Re.value)},"ⓘ",8,Da),R("div",{class:"status","data-state":A.value,role:"status"},[p[14]||(p[14]=R("span",{class:"dot","aria-hidden":"true"},null,-1)),Fe(q(Jr.value),1)],8,Fa)])),Re.value?(Z(),te("section",ja,[...p[16]||(p[16]=[Fl('<h2>What is Rudder?</h2><p>A voice-to-text tool for vibe coders: talk to your agents instead of typing to them. Paste links, code and notes into the box while you talk; everything you say is added to the end, ready to copy into a chat.</p><ul><li><b>Streaming.</b> Words appear while you speak, and you can keep talking for as long as you like — an hour is fine. There is no time limit and nothing to wait for at the end.</li><li><b>Runs on your CPU.</b> No graphics card needed. The model uses about 1 GB of memory and keeps up with normal speech on an ordinary laptop processor.</li><li><b>Private and offline.</b> Your voice never leaves this computer. No account, no cloud, no telemetry — checked with a network tracer: zero connections while transcribing.</li><li><b>The model.</b> NVIDIA Nemotron 3.5 ASR Streaming (0.6B), run by NVIDIA&#39;s open-source NeMo-Speech.cpp. It adds punctuation and capital letters by itself.</li><li><b>Why it lives in dx-maps.</b> Rudder is a plugin like the maps: built in the Plugin Studio, tested in the browser, and shipped as a desktop app with its own local backend — proof that one dx-maps codebase can build desktop apps, not only maps.</li></ul><p class="fine">Bluetooth headsets: Rudder switches them to their stable voice mode (CVSD), because the higher-quality mode (mSBC) kept dropping the mic after a few words.</p>',4)])])):xe("",!0),!s.value||Oe.value?(Z(),te("section",La,[R("button",{class:Nt(["mic",{on:O.value}]),disabled:j.value||A.value!=="ready"||kt.value,"aria-pressed":O.value,"aria-label":O.value?"Stop recording":"Start recording",onClick:$s},[R("span",Ua,q(O.value?"■":"●"),1),Fe(" "+q(O.value?"Stop":"Record"),1)],10,Va),R("div",Ha,[R("div",{class:"fill",style:Tn({width:(ae.value*100).toFixed(0)+"%"})},null,4)]),R("label",$a,[p[17]||(p[17]=R("span",null,"Language",-1)),Cs(R("select",{"onUpdate:modelValue":p[3]||(p[3]=M=>V.value=M),disabled:O.value,onChange:m},[(Z(),te(De,null,Hi(d,([M,fe])=>R("option",{key:M,value:M},q(fe),9,Ka)),64))],40,Ba),[[Dr,V.value]])])])):xe("",!0),(!s.value||Oe.value)&&oe.value!=="browser"?(Z(),te("section",Wa,[R("label",za,[p[18]||(p[18]=R("span",null,"Microphone",-1)),Cs(R("select",{"onUpdate:modelValue":p[4]||(p[4]=M=>L.value=M),disabled:O.value||Se.value,onChange:p[5]||(p[5]=M=>{m(),pe.value=null})},[R("option",Ga,"System default"+q(Bt.value?" — "+Bt.value.label:""),1),(Z(!0),te(De,null,Hi(nt.value,M=>(Z(),te("option",{key:M.id,value:M.id},q(Le(M)),9,qa))),128))],40,Ja),[[Dr,L.value]])]),R("button",{class:"small",disabled:Se.value||O.value||A.value==="offline",onClick:Kt},q(Se.value?"Testing… speak now":"Test mic"),9,Xa),R("button",{class:"small ghost",title:"Look for microphones again","aria-label":"Look for microphones again",disabled:O.value,onClick:yt},"↻",8,Ya)])):xe("",!0),pe.value?(Z(),te("p",{key:5,class:"notice","data-kind":pe.value.ok?pe.value.peak<.01?"warn":"ok":"error"},q(pe.value.ok?"✓ ":"✗ ")+q(pe.value.verdict),9,Za)):xe("",!0),hn.value&&hn.value.muted?(Z(),te("p",Qa,"“"+q(hn.value.label)+"” is muted in your system sound settings — Rudder won't hear anything until it's unmuted.",1)):xe("",!0),J.value&&oe.value!=="browser"?(Z(),te("p",ec,q(J.value),1)):!nt.value.length&&A.value!=="offline"&&oe.value!=="browser"&&c.value?(Z(),te("p",tc,"No microphone found. Connect a headset or turn on your computer's microphone in Sound settings.")):xe("",!0),re.value.length?(Z(),te("p",nc,"Also available but switched off in Sound settings: "+q(re.value.join(", "))+". Turn it on there to use it here.",1)):xe("",!0),je.value?(Z(),te("p",{key:10,class:"notice","data-kind":dt.value},q(je.value),9,sc)):A.value==="offline"&&!c.value&&zt.value?(Z(),te("p",ic," The voice engine on this server isn't running yet (it is starting, or it failed to set up). Try again in a minute. ")):(A.value==="offline"||kt.value)&&!c.value?(Z(),te("p",rc,[...p[19]||(p[19]=[Fe(" Voice to text runs on your own computer, not on this server: it listens to the microphone of the machine the engine runs on. Open the Plugin Studio on your computer (",-1),R("code",null,"bun run dev",-1),Fe(") or use the Rudder desktop app. ",-1)])])):A.value==="offline"?(Z(),te("p",oc,[p[20]||(p[20]=Fe(" The local speech engine isn't reachable at ",-1)),R("code",null,q(o.value),1),p[21]||(p[21]=Fe(". In the Plugin Studio it starts with ",-1)),p[22]||(p[22]=R("code",null,"bun run dev",-1)),p[23]||(p[23]=Fe(" once built: ",-1)),p[24]||(p[24]=R("code",null,"cd backend/rudder-engine && go build -o ../bin/rudder-engine .",-1))])):xe("",!0),R("section",lc,[Cs(R("textarea",{ref_key:"box",ref:we,"onUpdate:modelValue":p[6]||(p[6]=M=>T.value=M),class:"draft",spellcheck:"true","aria-label":"Your text. Type or paste here; everything Rudder hears is added to the end.",placeholder:"Type or paste here — and press Record (Ctrl+Shift+Space) to talk. Your words stream into the end of this box as you speak.",onInput:U,onKeydown:N},null,544),[[wa,T.value]]),R("p",ac,[O.value?(Z(),te(De,{key:0},[p[25]||(p[25]=R("span",{class:"tag"},"listening",-1)),p[26]||(p[26]=Fe(" words appear at the end of the box as you speak — keep typing or pasting anywhere",-1))],64)):xe("",!0)])]),R("footer",cc,[s.value?(Z(),te("button",{key:0,class:Nt(["mic sm",{on:O.value}]),disabled:j.value||A.value!=="ready"||kt.value,"aria-pressed":O.value,"aria-label":O.value?"Stop recording":"Start recording",onClick:$s},[R("span",fc,q(O.value?"■":"●"),1),Fe(" "+q(O.value?"Stop":"Record"),1)],10,uc)):xe("",!0),R("button",{disabled:!T.value.trim(),onClick:p[7]||(p[7]=M=>Br(T.value,"all"))},q(Ee.value==="all"?"Copied ✓":"Copy all"),9,dc),!s.value||Oe.value?(Z(),te("button",{key:1,disabled:!T.value.trim()||O.value,onClick:wc},"Clear",8,pc)):xe("",!0),R("span",hc,q($r.value)+" "+q($r.value===1?"word":"words"),1),p[27]||(p[27]=R("span",{class:"spacer"},null,-1)),!s.value||Oe.value?(Z(),te("button",{key:2,class:"ghost","aria-expanded":tt.value,onClick:p[8]||(p[8]=M=>tt.value=!tt.value)},"🐞 Debug",8,gc)):xe("",!0)]),tt.value?(Z(),te("section",mc,[R("dl",null,[p[28]||(p[28]=R("dt",null,"API",-1)),R("dd",null,[R("code",null,q(o.value),1)]),p[29]||(p[29]=R("dt",null,"Runtime",-1)),R("dd",null,q(D.value||"—"),1),p[30]||(p[30]=R("dt",null,"Model",-1)),R("dd",null,q(ne.value||"—"),1),p[31]||(p[31]=R("dt",null,"Engine",-1)),R("dd",null,[Fe(q(A.value),1),H.value?(Z(),te("span",vc," — "+q(H.value),1)):xe("",!0)])]),R("button",{onClick:Ac},q(Ee.value==="debug"?"Copied ✓":"Copy debug report for an agent"),1)])):xe("",!0)],2))}}),[["styles",[Ra]]]));typeof customElements<"u"&&(customElements.get("rudder-voice")||customElements.define("rudder-voice",_c))})();