diff --git a/public/dx-maps/doxa-maps-spa/manifest.json b/public/dx-maps/doxa-maps-spa/manifest.json index 837ec407b..bccc53640 100644 --- a/public/dx-maps/doxa-maps-spa/manifest.json +++ b/public/dx-maps/doxa-maps-spa/manifest.json @@ -1185,7 +1185,7 @@ "bundle": "rudder-voice", "scriptUrl": "./rudder-voice/rudder-voice.js", "output": "dx-maps/rudder-voice/rudder-voice.js", - "integrity": "sha384-8peisEPoi2/GbZ5DpAWgeGBfNM8oMZE7zgrz5BG69cG+Y/o8G07AHPf4c+QNUel8", + "integrity": "sha384-lqcS7pu6TbqD85IFlYC3qwsYsPTR3ySV8DrBwfKW/o4mLaBxn+rZSZ5BEIzwMXop", "elements": [ "rudder-voice" ], @@ -1206,7 +1206,7 @@ "scriptUrl": "./rudder-voice/rudder-voice.js", "embed": { "iframe": "", - "script": "\n\n" + "script": "\n\n" } } ] diff --git a/public/dx-maps/manifest.json b/public/dx-maps/manifest.json index 837ec407b..bccc53640 100644 --- a/public/dx-maps/manifest.json +++ b/public/dx-maps/manifest.json @@ -1185,7 +1185,7 @@ "bundle": "rudder-voice", "scriptUrl": "./rudder-voice/rudder-voice.js", "output": "dx-maps/rudder-voice/rudder-voice.js", - "integrity": "sha384-8peisEPoi2/GbZ5DpAWgeGBfNM8oMZE7zgrz5BG69cG+Y/o8G07AHPf4c+QNUel8", + "integrity": "sha384-lqcS7pu6TbqD85IFlYC3qwsYsPTR3ySV8DrBwfKW/o4mLaBxn+rZSZ5BEIzwMXop", "elements": [ "rudder-voice" ], @@ -1206,7 +1206,7 @@ "scriptUrl": "./rudder-voice/rudder-voice.js", "embed": { "iframe": "", - "script": "\n\n" + "script": "\n\n" } } ] diff --git a/public/dx-maps/rudder-voice/rudder-voice.js b/public/dx-maps/rudder-voice/rudder-voice.js index 3a66653f2..d1963da04 100644 --- a/public/dx-maps/rudder-voice/rudder-voice.js +++ b/public/dx-maps/rudder-voice/rudder-voice.js @@ -2,22 +2,22 @@ * @vue/shared v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function qn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const q={},Ot=[],$e=()=>{},Ds=()=>!1,un=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),fn=e=>e.startsWith("onUpdate:"),oe=Object.assign,Xn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Nr=Object.prototype.hasOwnProperty,U=(e,t)=>Nr.call(e,t),I=Array.isArray,ut=e=>Ht(e)==="[object Map]",vt=e=>Ht(e)==="[object Set]",Fs=e=>Ht(e)==="[object Date]",F=e=>typeof e=="function",ee=e=>typeof e=="string",Ue=e=>typeof e=="symbol",G=e=>e!==null&&typeof e=="object",js=e=>(G(e)||F(e))&&F(e.then)&&F(e.catch),Vs=Object.prototype.toString,Ht=e=>Vs.call(e),Dr=e=>Ht(e).slice(8,-1),dn=e=>Ht(e)==="[object Object]",Yn=e=>ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$t=qn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),pn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Fr=/-\w/g,be=pn(e=>e.replace(Fr,t=>t.slice(1).toUpperCase())),jr=/\B([A-Z])/g,Pe=pn(e=>e.replace(jr,"-$1").toLowerCase()),Ls=pn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Zn=pn(e=>e?`on${Ls(e)}`:""),Be=(e,t)=>!Object.is(e,t),hn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},gn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},$s=e=>{const t=ee(e)?Number(e):NaN;return isNaN(t)?e:t};let Us;const mn=()=>Us||(Us=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function vn(e){if(I(e)){const t={};for(let n=0;n{if(n){const s=n.split(Lr);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Pt(e){let t="";if(ee(e))t=e;else if(I(e))for(let n=0;nft(n,t))}const Ws=e=>!!(e&&e.__v_isRef===!0),X=e=>ee(e)?e:e==null?"":I(e)||G(e)&&(e.toString===Vs||!F(e.toString))?Ws(e)?X(e.value):JSON.stringify(e,zs,2):String(e),zs=(e,t)=>Ws(t)?zs(e,t.value):ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],r)=>(n[Qn(s,r)+" =>"]=i,n),{})}:vt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Qn(n))}:Ue(t)?Qn(t):G(t)&&!I(t)&&!dn(t)?String(t):t,Qn=(e,t="")=>{var n;return Ue(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**/function Xn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const G={},Rt=[],Be=()=>{},Ds=()=>!1,dn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),pn=e=>e.startsWith("onUpdate:"),ie=Object.assign,Yn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Dr=Object.prototype.hasOwnProperty,K=(e,t)=>Dr.call(e,t),M=Array.isArray,dt=e=>$t(e)==="[object Map]",bt=e=>$t(e)==="[object Set]",Fs=e=>$t(e)==="[object Date]",F=e=>typeof e=="function",Z=e=>typeof e=="string",Ke=e=>typeof e=="symbol",z=e=>e!==null&&typeof e=="object",Vs=e=>(z(e)||F(e))&&F(e.then)&&F(e.catch),js=Object.prototype.toString,$t=e=>js.call(e),Fr=e=>$t(e).slice(8,-1),hn=e=>$t(e)==="[object Object]",Zn=e=>Z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ut=Xn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Vr=/-\w/g,ve=gn(e=>e.replace(Vr,t=>t.slice(1).toUpperCase())),jr=/\B([A-Z])/g,Ee=gn(e=>e.replace(jr,"-$1").toLowerCase()),Ls=gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qn=gn(e=>e?`on${Ls(e)}`:""),We=(e,t)=>!Object.is(e,t),mn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},vn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},$s=e=>{const t=Z(e)?Number(e):NaN;return isNaN(t)?e:t};let Us;const bn=()=>Us||(Us=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function _n(e){if(M(e)){const t={};for(let n=0;n{if(n){const s=n.split(Hr);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ot(e){let t="";if(Z(e))t=e;else if(M(e))for(let n=0;npt(n,t))}const Ws=e=>!!(e&&e.__v_isRef===!0),q=e=>Z(e)?e:e==null?"":M(e)||z(e)&&(e.toString===js||!F(e.toString))?Ws(e)?q(e.value):JSON.stringify(e,zs,2):String(e),zs=(e,t)=>Ws(t)?zs(e,t.value):dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],r)=>(n[es(s,r)+" =>"]=i,n),{})}:bt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>es(n))}:Ke(t)?es(t):z(t)&&!M(t)&&!hn(t)?String(t):t,es=(e,t="")=>{var n;return Ke(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 Wr{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;t0&&--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;n0)return;if(Bt){let t=Bt;for(Bt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ut;){let t=Ut;for(Ut=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 Xs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ys(e){let t,n=e.depsTail,s=n;for(;s;){const i=s.prevDep;s.version===-1?(s===n&&(n=i),is(s),Jr(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=i}e.deps=t,e.depsTail=n}function ss(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Kt)||(e.globalVersion=Kt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ss(e))))return;e.flags|=2;const t=e.dep,n=Z,s=Fe;Z=e,Fe=!0;try{Xs(e);const i=e.fn(e._value);(t.version===0||Be(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Z=n,Fe=s,Ys(e),e.flags&=-3}}function is(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)is(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Jr(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Fe=!0;const Qs=[];function Ke(){Qs.push(Fe),Fe=!1}function We(){const e=Qs.pop();Fe=e===void 0?!0:e}function ei(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Z;Z=void 0;try{t()}finally{Z=n}}}let Kt=0;class Gr{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 rs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Z||!Fe||Z===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Z)n=this.activeLink=new Gr(Z,this),Z.deps?(n.prevDep=Z.depsTail,Z.depsTail.nextDep=n,Z.depsTail=n):Z.deps=Z.depsTail=n,ti(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=Z.depsTail,n.nextDep=void 0,Z.depsTail.nextDep=n,Z.depsTail=n,Z.deps===n&&(Z.deps=s)}return n}trigger(t){this.version++,Kt++,this.notify(t)}notify(t){ts();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ns()}}}function ti(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)ti(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const os=new WeakMap,bt=Symbol(""),ls=Symbol(""),Wt=Symbol("");function de(e,t,n){if(Fe&&Z){let s=os.get(e);s||os.set(e,s=new Map);let i=s.get(n);i||(s.set(n,i=new rs),i.map=s,i.key=n),i.track()}}function Ze(e,t,n,s,i,r){const o=os.get(e);if(!o){Kt++;return}const l=c=>{c&&c.trigger()};if(ts(),t==="clear")o.forEach(l);else{const c=I(e),d=c&&Yn(n);if(c&&n==="length"){const f=Number(s);o.forEach((g,E)=>{(E==="length"||E===Wt||!Ue(E)&&E>=f)&&l(g)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),d&&l(o.get(Wt)),t){case"add":c?d&&l(o.get("length")):(l(o.get(bt)),ut(e)&&l(o.get(ls)));break;case"delete":c||(l(o.get(bt)),ut(e)&&l(o.get(ls)));break;case"set":ut(e)&&l(o.get(bt));break}}ns()}function Mt(e){const t=$(e);return t===e?t:(de(t,"iterate",Wt),Me(e)?t:t.map(je))}function bn(e){return de(e=$(e),"iterate",Wt),e}function ze(e,t){return et(e)?kt(_t(e)?je(t):t):je(t)}const qr={__proto__:null,[Symbol.iterator](){return cs(this,Symbol.iterator,e=>ze(this,e))},concat(...e){return Mt(this).concat(...e.map(t=>I(t)?Mt(t):t))},entries(){return cs(this,"entries",e=>(e[1]=ze(this,e[1]),e))},every(e,t){return Qe(this,"every",e,t,void 0,arguments)},filter(e,t){return Qe(this,"filter",e,t,n=>n.map(s=>ze(this,s)),arguments)},find(e,t){return Qe(this,"find",e,t,n=>ze(this,n),arguments)},findIndex(e,t){return Qe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Qe(this,"findLast",e,t,n=>ze(this,n),arguments)},findLastIndex(e,t){return Qe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Qe(this,"forEach",e,t,void 0,arguments)},includes(...e){return as(this,"includes",e)},indexOf(...e){return as(this,"indexOf",e)},join(e){return Mt(this).join(e)},lastIndexOf(...e){return as(this,"lastIndexOf",e)},map(e,t){return Qe(this,"map",e,t,void 0,arguments)},pop(){return zt(this,"pop")},push(...e){return zt(this,"push",e)},reduce(e,...t){return ni(this,"reduce",e,t)},reduceRight(e,...t){return ni(this,"reduceRight",e,t)},shift(){return zt(this,"shift")},some(e,t){return Qe(this,"some",e,t,void 0,arguments)},splice(...e){return zt(this,"splice",e)},toReversed(){return Mt(this).toReversed()},toSorted(e){return Mt(this).toSorted(e)},toSpliced(...e){return Mt(this).toSpliced(...e)},unshift(...e){return zt(this,"unshift",e)},values(){return cs(this,"values",e=>ze(this,e))}};function cs(e,t,n){const s=bn(e),i=s[t]();return s!==e&&!Me(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=n(r.value)),r}),i}const Xr=Array.prototype;function Qe(e,t,n,s,i,r){const o=bn(e),l=o!==e&&!Me(e),c=o[t];if(c!==Xr[t]){const g=c.apply(e,r);return l?je(g):g}let d=n;o!==e&&(l?d=function(g,E){return n.call(this,ze(e,g),E,e)}:n.length>2&&(d=function(g,E){return n.call(this,g,E,e)}));const f=c.call(o,d,s);return l&&i?i(f):f}function ni(e,t,n,s){const i=bn(e),r=i!==e&&!Me(e);let o=n,l=!1;i!==e&&(r?(l=s.length===0,o=function(d,f,g){return l&&(l=!1,d=ze(e,d)),n.call(this,d,ze(e,f),g,e)}):n.length>3&&(o=function(d,f,g){return n.call(this,d,f,g,e)}));const c=i[t](o,...s);return l?ze(e,c):c}function as(e,t,n){const s=$(e);de(s,"iterate",Wt);const i=s[t](...n);return(i===-1||i===!1)&&ps(n[0])?(n[0]=$(n[0]),s[t](...n)):i}function zt(e,t,n=[]){Ke(),ts();const s=$(e)[t].apply(e,n);return ns(),We(),s}const Yr=qn("__proto__,__v_isRef,__isVue"),si=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ue));function Zr(e){Ue(e)||(e=String(e));const t=$(this);return de(t,"has",e),t.hasOwnProperty(e)}class ii{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?ui:ai:r?ci:li).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=I(t);if(!i){let c;if(o&&(c=qr[n]))return c;if(n==="hasOwnProperty")return Zr}const l=Reflect.get(t,n,ae(t)?t:s);if((Ue(n)?si.has(n):Yr(n))||(i||de(t,"get",n),r))return l;if(ae(l)){const c=o&&Yn(n)?l:l.value;return i&&G(c)?ds(c):c}return G(l)?i?ds(l):fs(l):l}}class ri extends ii{constructor(t=!1){super(!1,t)}set(t,n,s,i){let r=t[n];const o=I(t)&&Yn(n);if(!this._isShallow){const d=et(r);if(!Me(s)&&!et(s)&&(r=$(r),s=$(s)),!o&&ae(r)&&!ae(s))return d||(r.value=s),!0}const l=o?Number(n)e,_n=e=>Reflect.getPrototypeOf(e);function so(e,t,n){return function(...s){const i=this.__v_raw,r=$(i),o=ut(r),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,d=i[e](...s),f=n?us:t?kt:je;return!t&&de(r,"iterate",c?ls:bt),oe(Object.create(d),{next(){const{value:g,done:E}=d.next();return E?{value:g,done:E}:{value:l?[f(g[0]),f(g[1])]:f(g),done:E}}})}}function xn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function io(e,t){const n={get(i){const r=this.__v_raw,o=$(r),l=$(i);e||(Be(i,l)&&de(o,"get",i),de(o,"get",l));const{has:c}=_n(o),d=t?us:e?kt:je;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",bt),i.size},has(i){const r=this.__v_raw,o=$(r),l=$(i);return e||(Be(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?us:e?kt:je;return!e&&de(c,"iterate",bt),l.forEach((f,g)=>i.call(r,d(f),d(g),o))}};return oe(n,e?{add:xn("add"),set:xn("set"),delete:xn("delete"),clear:xn("clear")}:{add(i){const r=$(this),o=_n(r),l=$(i),c=!t&&!Me(i)&&!et(i)?l:i;return o.has.call(r,c)||Be(i,c)&&o.has.call(r,i)||Be(l,c)&&o.has.call(r,l)||(r.add(c),Ze(r,"add",c,c)),this},set(i,r){!t&&!Me(r)&&!et(r)&&(r=$(r));const o=$(this),{has:l,get:c}=_n(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?Be(r,f)&&Ze(o,"set",i,r):Ze(o,"add",i,r),this},delete(i){const r=$(this),{has:o,get:l}=_n(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&&Ze(r,"delete",i,void 0),d},clear(){const i=$(this),r=i.size!==0,o=i.clear();return r&&Ze(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=so(i,e,t)}),n}function yn(e,t){const n=io(e,t);return(s,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(U(n,i)&&i in s?n:s,i,r)}const ro={get:yn(!1,!1)},oo={get:yn(!1,!0)},lo={get:yn(!0,!1)},co={get:yn(!0,!0)},li=new WeakMap,ci=new WeakMap,ai=new WeakMap,ui=new WeakMap;function ao(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fs(e){return et(e)?e:wn(e,!1,Qr,ro,li)}function uo(e){return wn(e,!1,to,oo,ci)}function ds(e){return wn(e,!0,eo,lo,ai)}function da(e){return wn(e,!0,no,co,ui)}function wn(e,t,n,s,i){if(!G(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=ao(Dr(e));if(o===0)return e;const l=new Proxy(e,o===2?s:n);return i.set(e,l),l}function _t(e){return et(e)?_t(e.__v_raw):!!(e&&e.__v_isReactive)}function et(e){return!!(e&&e.__v_isReadonly)}function Me(e){return!!(e&&e.__v_isShallow)}function ps(e){return e?!!e.__v_raw:!1}function $(e){const t=e&&e.__v_raw;return t?$(t):e}function fo(e){return!U(e,"__v_skip")&&Object.isExtensible(e)&&Hs(e,"__v_skip",!0),e}const je=e=>G(e)?fs(e):e,kt=e=>G(e)?ds(e):e;function ae(e){return e?e.__v_isRef===!0:!1}function te(e){return po(e,!1)}function po(e,t){return ae(e)?e:new ho(e,t)}class ho{constructor(t,n){this.dep=new rs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:$(t),this._value=n?t:je(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Me(t)||et(t);t=s?t:$(t),Be(t,n)&&(this._rawValue=t,this._value=s?t:je(t),this.dep.trigger())}}function fi(e){return ae(e)?e.value:e}const go={get:(e,t,n)=>t==="__v_raw"?e:fi(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return ae(i)&&!ae(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function di(e){return _t(e)?e:new Proxy(e,go)}class mo{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new rs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Kt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Z!==this)return qs(this,!0),!0}get value(){const t=this.dep.track();return Zs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function vo(e,t,n=!1){let s,i;return F(e)?s=e:(s=e.get,i=e.set),new mo(s,i,n)}const Sn={},Cn=new WeakMap;let xt;function bo(e,t=!1,n=xt){if(n){let s=Cn.get(n);s||Cn.set(n,s=[]),s.push(e)}}function _o(e,t,n=q){const{immediate:s,deep:i,once:r,scheduler:o,augmentJob:l,call:c}=n,d=k=>i?k:Me(k)||i===!1||i===0?tt(k,1):tt(k);let f,g,E,R,B=!1,T=!1;if(ae(e)?(g=()=>e.value,B=Me(e)):_t(e)?(g=()=>d(e),B=!0):I(e)?(T=!0,B=e.some(k=>_t(k)||Me(k)),g=()=>e.map(k=>{if(ae(k))return k.value;if(_t(k))return d(k);if(F(k))return c?c(k,2):k()})):F(e)?t?g=c?()=>c(e,2):e:g=()=>{if(E){Ke();try{E()}finally{We()}}const k=xt;xt=f;try{return c?c(e,3,[R]):e(R)}finally{xt=k}}:g=$e,t&&i){const k=g,ne=i===!0?1/0:i;g=()=>tt(k(),ne)}const Q=zr(),K=()=>{f.stop(),Q&&Q.active&&Xn(Q.effects,f)};if(r&&t){const k=t;t=(...ne)=>{const ye=k(...ne);return K(),ye}}let O=T?new Array(e.length).fill(Sn):Sn;const L=k=>{if(!(!(f.flags&1)||!f.dirty&&!k))if(t){const ne=f.run();if(k||i||B||(T?ne.some((ye,me)=>Be(ye,O[me])):Be(ne,O))){E&&E();const ye=xt;xt=f;try{const me=[ne,O===Sn?void 0:T&&O[0]===Sn?[]:O,R];O=ne,c?c(t,3,me):t(...me)}finally{xt=ye}}}else f.run()};return l&&l(L),f=new Js(g),f.scheduler=o?()=>o(L,!1):L,R=k=>bo(k,!1,f),E=f.onStop=()=>{const k=Cn.get(f);if(k){if(c)c(k,4);else for(const ne of k)ne();Cn.delete(f)}},t?s?L(!0):O=f.run():o?o(L.bind(null,!0),!0):f.run(),K.pause=f.pause.bind(f),K.resume=f.resume.bind(f),K.stop=K,K}function tt(e,t=1/0,n){if(t<=0||!G(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ae(e))tt(e.value,t,n);else if(I(e))for(let s=0;s{tt(s,t,n)});else if(dn(e)){for(const s in e)tt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&tt(e[s],t,n)}return e}/** +**/let le;class zr{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&&le&&(le.active?(this.parent=le,this.index=(le.scopes||(le.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;t0&&--this._on===0){if(le===this)le=this.prevScope;else{let t=le;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;n0)return;if(Kt){let t=Kt;for(Kt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Bt;){let t=Bt;for(Bt=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 Xs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ys(e){let t,n=e.depsTail,s=n;for(;s;){const i=s.prevDep;s.version===-1?(s===n&&(n=i),rs(s),Gr(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=i}e.deps=t,e.depsTail=n}function is(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wt)||(e.globalVersion=Wt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!is(e))))return;e.flags|=2;const t=e.dep,n=X,s=Ve;X=e,Ve=!0;try{Xs(e);const i=e.fn(e._value);(t.version===0||We(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{X=n,Ve=s,Ys(e),e.flags&=-3}}function rs(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)rs(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Gr(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ve=!0;const Qs=[];function ze(){Qs.push(Ve),Ve=!1}function Je(){const e=Qs.pop();Ve=e===void 0?!0:e}function ei(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=X;X=void 0;try{t()}finally{X=n}}}let Wt=0;class qr{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 os{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||!Ve||X===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==X)n=this.activeLink=new qr(X,this),X.deps?(n.prevDep=X.depsTail,X.depsTail.nextDep=n,X.depsTail=n):X.deps=X.depsTail=n,ti(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++,Wt++,this.notify(t)}notify(t){ns();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ss()}}}function ti(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)ti(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ls=new WeakMap,_t=Symbol(""),cs=Symbol(""),zt=Symbol("");function ae(e,t,n){if(Ve&&X){let s=ls.get(e);s||ls.set(e,s=new Map);let i=s.get(n);i||(s.set(n,i=new os),i.map=s,i.key=n),i.track()}}function et(e,t,n,s,i,r){const o=ls.get(e);if(!o){Wt++;return}const l=a=>{a&&a.trigger()};if(ns(),t==="clear")o.forEach(l);else{const a=M(e),d=a&&Zn(n);if(a&&n==="length"){const f=Number(s);o.forEach((g,A)=>{(A==="length"||A===zt||!Ke(A)&&A>=f)&&l(g)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),d&&l(o.get(zt)),t){case"add":a?d&&l(o.get("length")):(l(o.get(_t)),dt(e)&&l(o.get(cs)));break;case"delete":a||(l(o.get(_t)),dt(e)&&l(o.get(cs)));break;case"set":dt(e)&&l(o.get(_t));break}}ss()}function Pt(e){const t=U(e);return t===e?t:(ae(t,"iterate",zt),Re(e)?t:t.map(je))}function xn(e){return ae(e=U(e),"iterate",zt),e}function Ge(e,t){return nt(e)?kt(xt(e)?je(t):t):je(t)}const Xr={__proto__:null,[Symbol.iterator](){return as(this,Symbol.iterator,e=>Ge(this,e))},concat(...e){return Pt(this).concat(...e.map(t=>M(t)?Pt(t):t))},entries(){return as(this,"entries",e=>(e[1]=Ge(this,e[1]),e))},every(e,t){return tt(this,"every",e,t,void 0,arguments)},filter(e,t){return tt(this,"filter",e,t,n=>n.map(s=>Ge(this,s)),arguments)},find(e,t){return tt(this,"find",e,t,n=>Ge(this,n),arguments)},findIndex(e,t){return tt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return tt(this,"findLast",e,t,n=>Ge(this,n),arguments)},findLastIndex(e,t){return tt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return tt(this,"forEach",e,t,void 0,arguments)},includes(...e){return us(this,"includes",e)},indexOf(...e){return us(this,"indexOf",e)},join(e){return Pt(this).join(e)},lastIndexOf(...e){return us(this,"lastIndexOf",e)},map(e,t){return tt(this,"map",e,t,void 0,arguments)},pop(){return Jt(this,"pop")},push(...e){return Jt(this,"push",e)},reduce(e,...t){return ni(this,"reduce",e,t)},reduceRight(e,...t){return ni(this,"reduceRight",e,t)},shift(){return Jt(this,"shift")},some(e,t){return tt(this,"some",e,t,void 0,arguments)},splice(...e){return Jt(this,"splice",e)},toReversed(){return Pt(this).toReversed()},toSorted(e){return Pt(this).toSorted(e)},toSpliced(...e){return Pt(this).toSpliced(...e)},unshift(...e){return Jt(this,"unshift",e)},values(){return as(this,"values",e=>Ge(this,e))}};function as(e,t,n){const s=xn(e),i=s[t]();return s!==e&&!Re(e)&&(i._next=i.next,i.next=()=>{const r=i._next();return r.done||(r.value=n(r.value)),r}),i}const Yr=Array.prototype;function tt(e,t,n,s,i,r){const o=xn(e),l=o!==e&&!Re(e),a=o[t];if(a!==Yr[t]){const g=a.apply(e,r);return l?je(g):g}let d=n;o!==e&&(l?d=function(g,A){return n.call(this,Ge(e,g),A,e)}:n.length>2&&(d=function(g,A){return n.call(this,g,A,e)}));const f=a.call(o,d,s);return l&&i?i(f):f}function ni(e,t,n,s){const i=xn(e),r=i!==e&&!Re(e);let o=n,l=!1;i!==e&&(r?(l=s.length===0,o=function(d,f,g){return l&&(l=!1,d=Ge(e,d)),n.call(this,d,Ge(e,f),g,e)}):n.length>3&&(o=function(d,f,g){return n.call(this,d,f,g,e)}));const a=i[t](o,...s);return l?Ge(e,a):a}function us(e,t,n){const s=U(e);ae(s,"iterate",zt);const i=s[t](...n);return(i===-1||i===!1)&&hs(n[0])?(n[0]=U(n[0]),s[t](...n)):i}function Jt(e,t,n=[]){ze(),ns();const s=U(e)[t].apply(e,n);return ss(),Je(),s}const Zr=Xn("__proto__,__v_isRef,__isVue"),si=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ke));function Qr(e){Ke(e)||(e=String(e));const t=U(this);return ae(t,"has",e),t.hasOwnProperty(e)}class ii{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?ui:ai:r?ci:li).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=M(t);if(!i){let a;if(o&&(a=Xr[n]))return a;if(n==="hasOwnProperty")return Qr}const l=Reflect.get(t,n,ce(t)?t:s);if((Ke(n)?si.has(n):Zr(n))||(i||ae(t,"get",n),r))return l;if(ce(l)){const a=o&&Zn(n)?l:l.value;return i&&z(a)?ps(a):a}return z(l)?i?ps(l):ds(l):l}}class ri extends ii{constructor(t=!1){super(!1,t)}set(t,n,s,i){let r=t[n];const o=M(t)&&Zn(n);if(!this._isShallow){const d=nt(r);if(!Re(s)&&!nt(s)&&(r=U(r),s=U(s)),!o&&ce(r)&&!ce(s))return d||(r.value=s),!0}const l=o?Number(n)e,yn=e=>Reflect.getPrototypeOf(e);function io(e,t,n){return function(...s){const i=this.__v_raw,r=U(i),o=dt(r),l=e==="entries"||e===Symbol.iterator&&o,a=e==="keys"&&o,d=i[e](...s),f=n?fs:t?kt:je;return!t&&ae(r,"iterate",a?cs:_t),ie(Object.create(d),{next(){const{value:g,done:A}=d.next();return A?{value:g,done:A}:{value:l?[f(g[0]),f(g[1])]:f(g),done:A}}})}}function wn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ro(e,t){const n={get(i){const r=this.__v_raw,o=U(r),l=U(i);e||(We(i,l)&&ae(o,"get",i),ae(o,"get",l));const{has:a}=yn(o),d=t?fs:e?kt:je;if(a.call(o,i))return d(r.get(i));if(a.call(o,l))return d(r.get(l));r!==o&&r.get(i)},get size(){const i=this.__v_raw;return!e&&ae(U(i),"iterate",_t),i.size},has(i){const r=this.__v_raw,o=U(r),l=U(i);return e||(We(i,l)&&ae(o,"has",i),ae(o,"has",l)),i===l?r.has(i):r.has(i)||r.has(l)},forEach(i,r){const o=this,l=o.__v_raw,a=U(l),d=t?fs:e?kt:je;return!e&&ae(a,"iterate",_t),l.forEach((f,g)=>i.call(r,d(f),d(g),o))}};return ie(n,e?{add:wn("add"),set:wn("set"),delete:wn("delete"),clear:wn("clear")}:{add(i){const r=U(this),o=yn(r),l=U(i),a=!t&&!Re(i)&&!nt(i)?l:i;return o.has.call(r,a)||We(i,a)&&o.has.call(r,i)||We(l,a)&&o.has.call(r,l)||(r.add(a),et(r,"add",a,a)),this},set(i,r){!t&&!Re(r)&&!nt(r)&&(r=U(r));const o=U(this),{has:l,get:a}=yn(o);let d=l.call(o,i);d||(i=U(i),d=l.call(o,i));const f=a.call(o,i);return o.set(i,r),d?We(r,f)&&et(o,"set",i,r):et(o,"add",i,r),this},delete(i){const r=U(this),{has:o,get:l}=yn(r);let a=o.call(r,i);a||(i=U(i),a=o.call(r,i)),l&&l.call(r,i);const d=r.delete(i);return a&&et(r,"delete",i,void 0),d},clear(){const i=U(this),r=i.size!==0,o=i.clear();return r&&et(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=io(i,e,t)}),n}function Sn(e,t){const n=ro(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 oo={get:Sn(!1,!1)},lo={get:Sn(!1,!0)},co={get:Sn(!0,!1)},ao={get:Sn(!0,!0)},li=new WeakMap,ci=new WeakMap,ai=new WeakMap,ui=new WeakMap;function uo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ds(e){return nt(e)?e:Cn(e,!1,eo,oo,li)}function fo(e){return Cn(e,!1,no,lo,ci)}function ps(e){return Cn(e,!0,to,co,ai)}function ga(e){return Cn(e,!0,so,ao,ui)}function Cn(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=uo(Fr(e));if(o===0)return e;const l=new Proxy(e,o===2?s:n);return i.set(e,l),l}function xt(e){return nt(e)?xt(e.__v_raw):!!(e&&e.__v_isReactive)}function nt(e){return!!(e&&e.__v_isReadonly)}function Re(e){return!!(e&&e.__v_isShallow)}function hs(e){return e?!!e.__v_raw:!1}function U(e){const t=e&&e.__v_raw;return t?U(t):e}function po(e){return!K(e,"__v_skip")&&Object.isExtensible(e)&&Hs(e,"__v_skip",!0),e}const je=e=>z(e)?ds(e):e,kt=e=>z(e)?ps(e):e;function ce(e){return e?e.__v_isRef===!0:!1}function Q(e){return ho(e,!1)}function ho(e,t){return ce(e)?e:new go(e,t)}class go{constructor(t,n){this.dep=new os,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:U(t),this._value=n?t:je(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Re(t)||nt(t);t=s?t:U(t),We(t,n)&&(this._rawValue=t,this._value=s?t:je(t),this.dep.trigger())}}function fi(e){return ce(e)?e.value:e}const mo={get:(e,t,n)=>t==="__v_raw"?e:fi(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return ce(i)&&!ce(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function di(e){return xt(e)?e:new Proxy(e,mo)}class vo{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new os(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wt-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 qs(this,!0),!0}get value(){const t=this.dep.track();return Zs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function bo(e,t,n=!1){let s,i;return F(e)?s=e:(s=e.get,i=e.set),new vo(s,i,n)}const Tn={},An=new WeakMap;let yt;function _o(e,t=!1,n=yt){if(n){let s=An.get(n);s||An.set(n,s=[]),s.push(e)}}function xo(e,t,n=G){const{immediate:s,deep:i,once:r,scheduler:o,augmentJob:l,call:a}=n,d=T=>i?T:Re(T)||i===!1||i===0?st(T,1):st(T);let f,g,A,E,$=!1,N=!1;if(ce(e)?(g=()=>e.value,$=Re(e)):xt(e)?(g=()=>d(e),$=!0):M(e)?(N=!0,$=e.some(T=>xt(T)||Re(T)),g=()=>e.map(T=>{if(ce(T))return T.value;if(xt(T))return d(T);if(F(T))return a?a(T,2):T()})):F(e)?t?g=a?()=>a(e,2):e:g=()=>{if(A){ze();try{A()}finally{Je()}}const T=yt;yt=f;try{return a?a(e,3,[E]):e(E)}finally{yt=T}}:g=Be,t&&i){const T=g,Y=i===!0?1/0:i;g=()=>st(T(),Y)}const ne=Jr(),k=()=>{f.stop(),ne&&ne.active&&Yn(ne.effects,f)};if(r&&t){const T=t;t=(...Y)=>{const xe=T(...Y);return k(),xe}}let V=N?new Array(e.length).fill(Tn):Tn;const H=T=>{if(!(!(f.flags&1)||!f.dirty&&!T))if(t){const Y=f.run();if(T||i||$||(N?Y.some((xe,he)=>We(xe,V[he])):We(Y,V))){A&&A();const xe=yt;yt=f;try{const he=[Y,V===Tn?void 0:N&&V[0]===Tn?[]:V,E];V=Y,a?a(t,3,he):t(...he)}finally{yt=xe}}}else f.run()};return l&&l(H),f=new Js(g),f.scheduler=o?()=>o(H,!1):H,E=T=>_o(T,!1,f),A=f.onStop=()=>{const T=An.get(f);if(T){if(a)a(T,4);else for(const Y of T)Y();An.delete(f)}},t?s?H(!0):V=f.run():o?o(H.bind(null,!0),!0):f.run(),k.pause=f.pause.bind(f),k.resume=f.resume.bind(f),k.stop=k,k}function st(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--,ce(e))st(e.value,t,n);else if(M(e))for(let s=0;s{st(s,t,n)});else if(hn(e)){for(const s in e)st(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&st(e[s],t,n)}return e}/** * @vue/runtime-core v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const Jt=[];let hs=!1;function pa(e,...t){if(hs)return;hs=!0,Ke();const n=Jt.length?Jt[Jt.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=xo();if(s)It(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 <${fr(n,r.type)}>`).join(` +**/const Gt=[];let gs=!1;function ma(e,...t){if(gs)return;gs=!0,ze();const n=Gt.length?Gt[Gt.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=yo();if(s)Mt(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 <${fr(n,r.type)}>`).join(` `),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(` -`,...yo(i)),console.warn(...r)}We(),hs=!1}function xo(){let e=Jt[Jt.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 yo(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[` -`],...wo(n))}),t}function wo({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,i=` at <${fr(e.component,e.type,s)}`,r=">"+n;return e.props?[i,...So(e.props),r]:[i+r]}function So(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...pi(s,e[s]))}),n.length>3&&t.push(" ..."),t}function pi(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}`]:ae(t)?(t=pi(e,$(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):F(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=$(t),n?t:[`${e}=`,t])}function It(e,t,n,s){try{return s?e(...s):e()}catch(i){Tn(i,t,n)}}function Ve(e,t,n,s){if(F(e)){const i=It(e,t,n,s);return i&&js(i)&&i.catch(r=>{Tn(r,t,n)}),i}if(I(e)){const i=[];for(let r=0;r>>1,i=pe[s],r=qt(i);r=qt(n)?pe.push(e):pe.splice(To(t),0,e),e.flags|=1,gi()}}function gi(){En||(En=hi.then(bi))}function Eo(e){if(!I(e))dt&&e.id===-1?dt.splice(Dt+1,0,e):e.flags&1||(Nt.push(e),e.flags|=1);else for(let t=0;tqt(n)-qt(s));if(Nt.length=0,dt){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function bi(e){try{for(Je=0;Je{s._d&&sr(-1);const r=An(t),o=St.length;let l;try{l=e(...i)}finally{for(let c=St.length;c>o;c--)nr();An(r),s._d&&sr(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function ms(e,t){if(ke===null)return e;const n=Hn(ke),s=e.dirs||(e.dirs=[]);for(let i=0;i1)return n&&F(t)?t.call(s&&s.proxy):t}}const Oo=Symbol.for("v-scx"),Po=()=>Rn(Oo);function On(e,t,n){return xi(e,t,n)}function xi(e,t,n=q){const{immediate:s,deep:i,flush:r,once:o}=n,l=oe({},n),c=t&&s||!t&&r!=="post";let d;if(rn){if(r==="sync"){const R=Po();d=R.__watcherHandles||(R.__watcherHandles=[])}else if(!c){const R=()=>{};return R.stop=$e,R.resume=$e,R.pause=$e,R}}const f=ge;l.call=(R,B,T)=>Ve(R,f,B,T);let g=!1;r==="post"?l.scheduler=R=>{_e(R,f&&f.suspense)}:r!=="sync"&&(g=!0,l.scheduler=(R,B)=>{B?R():gs(R)}),l.augmentJob=R=>{t&&(R.flags|=4),g&&(R.flags|=2,f&&(R.id=f.uid,R.i=f))};const E=_o(e,t,l);return rn&&(d?d.push(E):c&&E()),E}function Mo(e,t,n){const s=this.proxy,i=ee(e)?e.includes(".")?yi(s,e):()=>s[e]:e.bind(s,s);let r;F(t)?r=t:(r=t.handler,n=t);const o=sn(this),l=xi(i,r.bind(s),n);return o(),l}function yi(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;ie.__isTeleport,vs=Symbol("_leaveCb");function Io(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==st){t=n;break}}return t}function wi(e){if(!_s(e))return Pn(e.type)&&e.children?Io(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 bs(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;bs(Pn(n.type)&&wi(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 No(e,t){return F(e)?oe({name:e.name},t,{setup:e}):e}function Si(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ci(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Mn=new WeakMap;function Xt(e,t,n,s,i=!1){if(I(e)){e.forEach((T,Q)=>Xt(T,t&&(I(t)?t[Q]:t),n,s,i));return}if(Yt(s)&&!i){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Xt(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?Hn(s.component):s.el,o=i?null:r,{i:l,r:c}=e,d=t&&t.r,f=l.refs===q?l.refs={}:l.refs,g=l.setupState,E=$(g),R=g===q?Ds:T=>Ci(f,T)?!1:U(E,T),B=(T,Q)=>!(Q&&Ci(f,Q));if(d!=null&&d!==c){if(Ti(t),ee(d))f[d]=null,R(d)&&(g[d]=null);else if(ae(d)){const T=t;B(d,T.k)&&(d.value=null),T.k&&(f[T.k]=null)}}if(F(c))It(c,l,12,[o,f]);else{const T=ee(c),Q=ae(c);if(T||Q){const K=()=>{if(e.f){const O=T?R(c)?g[c]:f[c]:B()||!e.k?c.value:f[e.k];if(i)I(O)&&Xn(O,r);else if(I(O))O.includes(r)||O.push(r);else if(T)f[c]=[r],R(c)&&(g[c]=f[c]);else{const L=[r];B(c,e.k)&&(c.value=L),e.k&&(f[e.k]=L)}}else T?(f[c]=o,R(c)&&(g[c]=o)):Q&&(B(c,e.k)&&(c.value=o),e.k&&(f[e.k]=o))};if(o){const O=()=>{K(),Mn.delete(e)};O.id=-1,Mn.set(e,O),_e(O,n)}else Ti(e),K()}}}function Ti(e){const t=Mn.get(e);t&&(t.flags|=8,Mn.delete(e))}mn().requestIdleCallback,mn().cancelIdleCallback;const Yt=e=>!!e.type.__asyncLoader,_s=e=>e.type.__isKeepAlive;function Do(e,t){Ei(e,"a",t)}function Fo(e,t){Ei(e,"da",t)}function Ei(e,t,n=ge){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(kn(t,s,n),n){let i=n.parent;for(;i&&i.parent;)_s(i.parent.vnode)&&jo(s,t,n,i),i=i.parent}}function jo(e,t,n,s){const i=kn(t,e,s,!0);Oi(()=>{Xn(s[t],i)},n)}function kn(e,t,n=ge,s=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{Ke();const l=sn(n),c=Ve(t,n,e,o);return l(),We(),c});return s?i.unshift(r):i.push(r),r}}const nt=e=>(t,n=ge)=>{(!rn||e==="sp")&&kn(e,(...s)=>t(...s),n)},Vo=nt("bm"),Ai=nt("m"),Lo=nt("bu"),Ho=nt("u"),Ri=nt("bum"),Oi=nt("um"),$o=nt("sp"),Uo=nt("rtg"),Bo=nt("rtc");function Ko(e,t=ge){kn("ec",e,t)}const Wo=Symbol.for("v-ndc");function Pi(e,t,n,s){let i;const r=n,o=I(e);if(o||ee(e)){const l=o&&_t(e);let c=!1,d=!1;l&&(c=!Me(e),d=et(e),e=bn(e)),i=new Array(e.length);for(let f=0,g=e.length;ft(l,c,void 0,r));else{const l=Object.keys(e);i=new Array(l.length);for(let c=0,d=l.length;ce?cr(e)?Hn(e):xs(e.parent):null,Zt=oe(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=>xs(e.parent),$root:e=>xs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ni(e),$forceUpdate:e=>e.f||(e.f=()=>{gs(e.update)}),$nextTick:e=>e.n||(e.n=Gt.bind(e.proxy)),$watch:e=>Mo.bind(e)}),ys=(e,t)=>e!==q&&!e.__isScriptSetup&&U(e,t),zo={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(ys(s,t))return o[t]=1,s[t];if(i!==q&&U(i,t))return o[t]=2,i[t];if(U(r,t))return o[t]=3,r[t];if(n!==q&&U(n,t))return o[t]=4,n[t];ws&&(o[t]=0)}}const d=Zt[t];let f,g;if(d)return t==="$attrs"&&de(e.attrs,"get",""),d(e);if((f=l.__cssModules)&&(f=f[t]))return f;if(n!==q&&U(n,t))return o[t]=4,n[t];if(g=c.config.globalProperties,U(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:r}=e;return ys(i,t)?(i[t]=n,!0):s!==q&&U(s,t)?(s[t]=n,!0):U(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!==q&&l[0]!=="$"&&U(e,l)||ys(t,l)||U(r,l)||U(s,l)||U(Zt,l)||U(i.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:U(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Mi(e){return I(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ws=!0;function Jo(e){const t=Ni(e),n=e.proxy,s=e.ctx;ws=!1,t.beforeCreate&&ki(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:l,provide:c,inject:d,created:f,beforeMount:g,mounted:E,beforeUpdate:R,updated:B,activated:T,deactivated:Q,beforeDestroy:K,beforeUnmount:O,destroyed:L,unmounted:k,render:ne,renderTracked:ye,renderTriggered:me,errorCaptured:we,serverPrefetch:ot,expose:ve,inheritAttrs:Te,components:Ye,directives:Ne,filters:ht}=t;if(d&&Go(d,s,null),o)for(const W in o){const j=o[W];F(j)&&(s[W]=j.bind(n))}if(i){const W=i.call(n,n);G(W)&&(e.data=fs(W))}if(ws=!0,r)for(const W in r){const j=r[W],lt=F(j)?j.bind(n,n):F(j.get)?j.get.bind(n,n):$e,Vt=!F(j)&&F(j.set)?j.set.bind(n):$e,He=pt({get:lt,set:Vt});Object.defineProperty(s,W,{enumerable:!0,configurable:!0,get:()=>He.value,set:Se=>He.value=Se})}if(l)for(const W in l)Ii(l[W],s,n,W);if(c){const W=F(c)?c.call(n):c;Reflect.ownKeys(W).forEach(j=>{Ro(j,W[j])})}f&&ki(f,e,"c");function Y(W,j){I(j)?j.forEach(lt=>W(lt.bind(n))):j&&W(j.bind(n))}if(Y(Vo,g),Y(Ai,E),Y(Lo,R),Y(Ho,B),Y(Do,T),Y(Fo,Q),Y(Ko,we),Y(Bo,ye),Y(Uo,me),Y(Ri,O),Y(Oi,k),Y($o,ot),I(ve))if(ve.length){const W=e.exposed||(e.exposed={});ve.forEach(j=>{Object.defineProperty(W,j,{get:()=>n[j],set:lt=>n[j]=lt,enumerable:!0})})}else e.exposed||(e.exposed={});ne&&e.render===$e&&(e.render=ne),Te!=null&&(e.inheritAttrs=Te),Ye&&(e.components=Ye),Ne&&(e.directives=Ne),ot&&Si(e)}function Go(e,t,n=$e){I(e)&&(e=Ss(e));for(const s in e){const i=e[s];let r;G(i)?"default"in i?r=Rn(i.from||s,i.default,!0):r=Rn(i.from||s):r=Rn(i),ae(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[s]=r}}function ki(e,t,n){Ve(I(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ii(e,t,n,s){let i=s.includes(".")?yi(n,s):()=>n[s];if(ee(e)){const r=t[e];F(r)&&On(i,r)}else if(F(e))On(i,e.bind(n));else if(G(e))if(I(e))e.forEach(r=>Ii(r,t,n,s));else{const r=F(e.handler)?e.handler.bind(n):t[e.handler];F(r)&&On(i,r,e)}}function Ni(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=>In(c,d,o,!0)),In(c,t,o)),G(t)&&r.set(t,c),c}function In(e,t,n,s=!1){const{mixins:i,extends:r}=t;r&&In(e,r,n,!0),i&&i.forEach(o=>In(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=qo[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const qo={data:Di,props:Fi,emits:Fi,methods:Qt,computed:Qt,beforeCreate:he,created:he,beforeMount:he,mounted:he,beforeUpdate:he,updated:he,beforeDestroy:he,beforeUnmount:he,destroyed:he,unmounted:he,activated:he,deactivated:he,errorCaptured:he,serverPrefetch:he,components:Qt,directives:Qt,watch:Yo,provide:Di,inject:Xo};function Di(e,t){return t?e?function(){return oe(F(e)?e.call(this,this):e,F(t)?t.call(this,this):t)}:t:e}function Xo(e,t){return Qt(Ss(e),Ss(t))}function Ss(e){if(I(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${be(t)}Modifiers`]||e[`${Pe(t)}Modifiers`];function tl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||q;let i=n;const r=t.startsWith("update:"),o=r&&el(s,t.slice(7));o&&(o.trim&&(i=n.map(f=>ee(f)?f.trim():f)),o.number&&(i=i.map(gn)));let l,c=s[l=Zn(t)]||s[l=Zn(be(t))];!c&&r&&(c=s[l=Zn(Pe(t))]),c&&Ve(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,Ve(d,e,6,i)}}const nl=new WeakMap;function Vi(e,t,n=!1){const s=n?nl: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=Vi(d,t,!0);f&&(l=!0,oe(o,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!l?(G(e)&&s.set(e,null),null):(I(r)?r.forEach(c=>o[c]=null):oe(o,r),G(e)&&s.set(e,o),o)}function Nn(e,t){return!e||!un(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),U(e,t[0].toLowerCase()+t.slice(1))||U(e,Pe(t))||U(e,t))}function ha(){}function Li(e){const{type:t,vnode:n,proxy:s,withProxy:i,propsOptions:[r],slots:o,attrs:l,emit:c,render:d,renderCache:f,props:g,data:E,setupState:R,ctx:B,inheritAttrs:T}=e,Q=An(e);let K,O;try{if(n.shapeFlag&4){const k=i||s,ne=k;K=qe(d.call(ne,k,f,g,R,E,B)),O=l}else{const k=t;K=qe(k.length>1?k(g,{attrs:l,slots:o,emit:c}):k(g,null)),O=t.props?l:sl(l)}}catch(k){St.length=0,Tn(k,e,1),K=Le(st)}let L=K;if(O&&T!==!1){const k=Object.keys(O),{shapeFlag:ne}=L;k.length&&ne&7&&(r&&k.some(fn)&&(O=il(O,r)),L=jt(L,O,!1,!0))}if(n.dirs&&(L=jt(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition){const k=Pn(L.type)&&wi(L)||L;bs(k,n.transition)}return K=L,An(Q),K}const sl=e=>{let t;for(const n in e)(n==="class"||n==="style"||un(n))&&((t||(t={}))[n]=e[n]);return t},il=(e,t)=>{const n={};for(const s in e)(!fn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function rl(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?Hi(s,o,d):!!o;if(c&8){const f=t.dynamicProps;for(let g=0;gObject.create(Ui),Ki=e=>Object.getPrototypeOf(e)===Ui;function ll(e,t,n,s=!1){const i={},r=Bi();e.propsDefaults=Object.create(null),Wi(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=s?i:uo(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function cl(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 g=0;g{c=!0;const[E,R]=zi(g,t,!0);oe(o,E),R&&l.push(...R)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!c)return G(e)&&s.set(e,Ot),Ot;if(I(r))for(let f=0;fe==="_"||e==="_ctx"||e==="$stable",Es=e=>I(e)?e.map(qe):[qe(e)],ul=(e,t,n)=>{if(t._n)return t;const s=Ao((...i)=>Es(t(...i)),n);return s._c=!1,s},Gi=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Ts(i))continue;const r=e[i];if(F(r))t[i]=ul(i,r,s);else if(r!=null){const o=Es(r);t[i]=()=>o}}},qi=(e,t)=>{const n=Es(t);e.slots.default=()=>n},Xi=(e,t,n)=>{for(const s in t)(n||!Ts(s))&&(e[s]=t[s])},fl=(e,t,n)=>{const s=e.slots=Bi();if(e.vnode.shapeFlag&32){const i=t._;i?(Xi(s,t,n),n&&Hs(s,"_",i,!0)):Gi(t,s)}else t&&qi(e,t)},dl=(e,t,n)=>{const{vnode:s,slots:i}=e;let r=!0,o=q;if(s.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:Xi(i,t,n):(r=!t.$stable,Gi(t,i)),o=t}else t&&(qi(e,t),o={default:1});if(r)for(const l in i)!Ts(l)&&o[l]==null&&delete i[l]},_e=vl;function pl(e){return hl(e)}function hl(e,t){const n=mn();n.__VUE__=!0;const{insert:s,remove:i,patchProp:r,createElement:o,createText:l,createComment:c,setText:d,setElementText:f,parentNode:g,nextSibling:E,setScopeId:R=$e,insertStaticContent:B}=e,T=(a,u,h,x=null,b=null,v=null,S=void 0,w=null,y=!!u.dynamicChildren)=>{if(a===u)return;a&&!tn(a,u)&&(x=gt(a),Se(a,b,v,!0),a=null),u.patchFlag===-2&&(y=!1,u.dynamicChildren=null);const{type:m,ref:M,shapeFlag:C}=u;switch(m){case Dn:Q(a,u,h,x);break;case st:K(a,u,h,x);break;case Fn:a==null&&O(u,h,x,S);break;case Ie:Ye(a,u,h,x,b,v,S,w,y);break;default:C&1?ne(a,u,h,x,b,v,S,w,y):C&6?Ne(a,u,h,x,b,v,S,w,y):(C&64||C&128)&&m.process(a,u,h,x,b,v,S,w,y,H)}M!=null&&b?Xt(M,a&&a.ref,v,u||a,!u):M==null&&a&&a.ref!=null&&Xt(a.ref,null,v,a,!0)},Q=(a,u,h,x)=>{if(a==null)s(u.el=l(u.children),h,x);else{const b=u.el=a.el;u.children!==a.children&&d(b,u.children)}},K=(a,u,h,x)=>{a==null?s(u.el=c(u.children||""),h,x):u.el=a.el},O=(a,u,h,x)=>{[a.el,a.anchor]=B(a.children,u,h,x,a.el,a.anchor)},L=({el:a,anchor:u},h,x)=>{let b;for(;a&&a!==u;)b=E(a),s(a,h,x),a=b;s(u,h,x)},k=({el:a,anchor:u})=>{let h;for(;a&&a!==u;)h=E(a),i(a),a=h;i(u)},ne=(a,u,h,x,b,v,S,w,y)=>{if(u.type==="svg"?S="svg":u.type==="math"&&(S="mathml"),a==null)ye(u,h,x,b,v,S,w,y);else{const m=a.el&&a.el._isVueCE?a.el:null;try{m&&m._beginPatch(),ot(a,u,b,v,S,w,y)}finally{m&&m._endPatch()}}},ye=(a,u,h,x,b,v,S,w)=>{let y,m;const{props:M,shapeFlag:C,transition:P,dirs:N}=a;if(y=a.el=o(a.type,v,M&&M.is,M),C&8?f(y,a.children):C&16&&we(a.children,y,null,x,b,As(a,v),S,w),N&&yt(a,null,x,"created"),me(y,a,a.scopeId,S,x),M){for(const J in M)J!=="value"&&!$t(J)&&r(y,J,null,M[J],v,x);"value"in M&&r(y,"value",null,M.value,v),(m=M.onVnodeBeforeMount)&&Xe(m,x,a)}N&&yt(a,null,x,"beforeMount");const V=gl(b,P);V&&P.beforeEnter(y),s(y,u,h),((m=M&&M.onVnodeMounted)||V||N)&&_e(()=>{try{m&&Xe(m,x,a),V&&P.enter(y),N&&yt(a,null,x,"mounted")}finally{}},b)},me=(a,u,h,x,b)=>{if(h&&R(a,h),x)for(let v=0;v{for(let m=y;m{const w=u.el=a.el;let{patchFlag:y,dynamicChildren:m,dirs:M}=u;y|=a.patchFlag&16;const C=a.props||q,P=u.props||q;let N;if(h&&wt(h,!1),(N=P.onVnodeBeforeUpdate)&&Xe(N,h,u,a),M&&yt(u,a,h,"beforeUpdate"),h&&wt(h,!0),m&&(!a.dynamicChildren||a.dynamicChildren.length!==m.length)&&(y=0,S=!1,m=null),(C.innerHTML&&P.innerHTML==null||C.textContent&&P.textContent==null)&&f(w,""),m?ve(a.dynamicChildren,m,w,h,x,As(u,b),v):S||j(a,u,w,null,h,x,As(u,b),v,!1),y>0){if(y&16)Te(w,C,P,h,b);else if(y&2&&C.class!==P.class&&r(w,"class",null,P.class,b),y&4&&r(w,"style",C.style,P.style,b),y&8){const V=u.dynamicProps;for(let J=0;J{N&&Xe(N,h,u,a),M&&yt(u,a,h,"updated")},x)},ve=(a,u,h,x,b,v,S)=>{for(let w=0;w{if(u!==h){if(u!==q)for(const v in u)!$t(v)&&!(v in h)&&r(a,v,u[v],null,b,x);for(const v in h){if($t(v))continue;const S=h[v],w=u[v];S!==w&&v!=="value"&&r(a,v,w,S,b,x)}"value"in h&&r(a,"value",u.value,h.value,b)}},Ye=(a,u,h,x,b,v,S,w,y)=>{const m=u.el=a?a.el:l(""),M=u.anchor=a?a.anchor:l("");let{patchFlag:C,dynamicChildren:P,slotScopeIds:N}=u;N&&(w=w?w.concat(N):N),a==null?(s(m,h,x),s(M,h,x),we(u.children||[],h,M,b,v,S,w,y)):C>0&&C&64&&P&&a.dynamicChildren&&a.dynamicChildren.length===P.length?(ve(a.dynamicChildren,P,h,b,v,S,w),(u.key!=null||b&&u===b.subTree)&&Yi(a,u,!0)):j(a,u,h,M,b,v,S,w,y)},Ne=(a,u,h,x,b,v,S,w,y)=>{u.slotScopeIds=w,a==null?u.shapeFlag&512?b.ctx.activate(u,h,x,S,y):ht(u,h,x,b,v,S,y):Et(a,u,y)},ht=(a,u,h,x,b,v,S)=>{const w=a.component=Tl(a,x,b);if(_s(a)&&(w.ctx.renderer=H),Al(w,!1,S),w.asyncDep){if(b&&b.registerDep(w,Y,S),!a.el){const y=w.subTree=Le(st);K(null,y,u,h),a.placeholder=y.el}}else Y(w,a,u,h,b,v,S)},Et=(a,u,h)=>{const x=u.component=a.component;if(rl(a,u,h))if(x.asyncDep&&!x.asyncResolved){W(x,u,h);return}else x.next=u,x.update();else u.el=a.el,x.vnode=u},Y=(a,u,h,x,b,v,S)=>{const w=()=>{if(a.isMounted){let{next:C,bu:P,u:N,parent:V,vnode:J}=a;{const Re=Zi(a);if(Re){C&&(C.el=J.el,W(a,C,S)),Re.asyncDep.then(()=>{_e(()=>{a.isUnmounted||m()},b)});return}}let z=C,se;wt(a,!1),C?(C.el=J.el,W(a,C,S)):C=J,P&&hn(P),(se=C.props&&C.props.onVnodeBeforeUpdate)&&Xe(se,V,C,J),wt(a,!0);const le=Li(a),Ae=a.subTree;a.subTree=le,T(Ae,le,g(Ae.el),gt(Ae),a,b,v),C.el=le.el,z===null&&ol(a,le.el),N&&_e(N,b),(se=C.props&&C.props.onVnodeUpdated)&&_e(()=>Xe(se,V,C,J),b)}else{let C;const{el:P,props:N}=u,{bm:V,m:J,parent:z,root:se,type:le}=a,Ae=Yt(u);wt(a,!1),V&&hn(V),!Ae&&(C=N&&N.onVnodeBeforeMount)&&Xe(C,z,u),wt(a,!0);{se.ce&&se.ce._hasShadowRoot()&&se.ce._injectChildStyle(le,a.parent?a.parent.type:void 0);const Re=a.subTree=Li(a);T(null,Re,h,x,a,b,v),u.el=Re.el}if(J&&_e(J,b),!Ae&&(C=N&&N.onVnodeMounted)){const Re=u;_e(()=>Xe(C,z,Re),b)}(u.shapeFlag&256||z&&Yt(z.vnode)&&z.vnode.shapeFlag&256)&&a.a&&_e(a.a,b),a.isMounted=!0,u=h=x=null}};a.scope.on();const y=a.effect=new Js(w);a.scope.off();const m=a.update=y.run.bind(y),M=a.job=y.runIfDirty.bind(y);M.i=a,M.id=a.uid,y.scheduler=()=>gs(M),wt(a,!0),m()},W=(a,u,h)=>{u.component=a;const x=a.vnode.props;a.vnode=u,a.next=null,cl(a,u.props,x,h),dl(a,u.children,h),Ke(),mi(a),We()},j=(a,u,h,x,b,v,S,w,y=!1)=>{const m=a&&a.children,M=a?a.shapeFlag:0,C=u.children,{patchFlag:P,shapeFlag:N}=u;if(P>0){if(P&128){Vt(m,C,h,x,b,v,S,w,y);return}else if(P&256){lt(m,C,h,x,b,v,S,w,y);return}}N&8?(M&16&&ue(m,b,v),C!==m&&f(h,C)):M&16?N&16?Vt(m,C,h,x,b,v,S,w,y):ue(m,b,v,!0):(M&8&&f(h,""),N&16&&we(C,h,x,b,v,S,w,y))},lt=(a,u,h,x,b,v,S,w,y)=>{a=a||Ot,u=u||Ot;const m=a.length,M=u.length,C=Math.min(m,M);let P;for(P=0;PM?ue(a,b,v,!0,!1,C):we(u,h,x,b,v,S,w,y,C)},Vt=(a,u,h,x,b,v,S,w,y)=>{let m=0;const M=u.length;let C=a.length-1,P=M-1;for(;m<=C&&m<=P;){const N=a[m],V=u[m]=y?it(u[m]):qe(u[m]);if(tn(N,V))T(N,V,h,null,b,v,S,w,y);else break;m++}for(;m<=C&&m<=P;){const N=a[C],V=u[P]=y?it(u[P]):qe(u[P]);if(tn(N,V))T(N,V,h,null,b,v,S,w,y);else break;C--,P--}if(m>C){if(m<=P){const N=P+1,V=NP)for(;m<=C;)Se(a[m],b,v,!0),m++;else{const N=m,V=m,J=new Map;for(m=V;m<=P;m++){const fe=u[m]=y?it(u[m]):qe(u[m]);fe.key!=null&&J.set(fe.key,m)}let z,se=0;const le=P-V+1;let Ae=!1,Re=0;const At=new Array(le);for(m=0;m=le){Se(fe,b,v,!0);continue}let Oe;if(fe.key!=null)Oe=J.get(fe.key);else for(z=V;z<=P;z++)if(At[z-V]===0&&tn(fe,u[z])){Oe=z;break}Oe===void 0?Se(fe,b,v,!0):(At[Oe-V]=m+1,Oe>=Re?Re=Oe:Ae=!0,T(fe,u[Oe],h,null,b,v,S,w,y),se++)}const Lt=Ae?ml(At):Ot;for(z=Lt.length-1,m=le-1;m>=0;m--){const fe=V+m,Oe=u[fe],cn=u[fe+1],zn=fe+1{const{el:v,type:S,transition:w,children:y,shapeFlag:m}=a;if(m&6){He(a.component.subTree,u,h,x);return}if(m&128){a.suspense.move(u,h,x);return}if(m&64){S.move(a,u,h,H);return}if(S===Ie){s(v,u,h);for(let C=0;Cw.enter(v),b));else{const{leave:C,delayLeave:P,afterLeave:N}=w,V=()=>{a.ctx.isUnmounted?i(v):s(v,u,h)},J=()=>{const z=v._isLeaving||!!v[vs];v._isLeaving&&v[vs](!0),w.persisted&&!z?V():C(v,()=>{V(),N&&N()})};P?P(v,V,J):J()}else s(v,u,h)},Se=(a,u,h,x=!1,b=!1)=>{const{type:v,props:S,ref:w,children:y,dynamicChildren:m,shapeFlag:M,patchFlag:C,dirs:P,cacheIndex:N,memo:V}=a;if(C===-2&&(b=!1),w!=null&&(Ke(),Xt(w,null,h,a,!0),We()),N!=null&&(u.renderCache[N]=void 0),M&256){u.ctx.deactivate(a);return}const J=M&1&&P,z=!Yt(a);let se;if(z&&(se=S&&S.onVnodeBeforeUnmount)&&Xe(se,u,a),M&6)Is(a.component,h,x);else{if(M&128){a.suspense.unmount(h,x);return}J&&yt(a,null,u,"beforeUnmount"),M&64?a.type.remove(a,u,h,H,x):m&&!m.hasOnce&&(v!==Ie||C>0&&C&64)?ue(m,u,h,!1,!0):(v===Ie&&C&384||!b&&M&16)&&ue(y,u,h),x&&ln(a)}const le=V!=null&&N==null;(z&&(se=S&&S.onVnodeUnmounted)||J||le)&&_e(()=>{se&&Xe(se,u,a),J&&yt(a,null,u,"unmounted"),le&&(a.el=null)},h)},ln=a=>{const{type:u,el:h,anchor:x,transition:b}=a;if(u===Ie){Wn(h,x);return}if(u===Fn){k(a);return}const v=()=>{i(h),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(a.shapeFlag&1&&b&&!b.persisted){const{leave:S,delayLeave:w}=b,y=()=>S(h,v);w?w(a.el,v,y):y()}else v()},Wn=(a,u)=>{let h;for(;a!==u;)h=E(a),i(a),a=h;i(u)},Is=(a,u,h)=>{const{bum:x,scope:b,job:v,subTree:S,um:w,m:y,a:m}=a;Qi(y),Qi(m),x&&hn(x),b.stop(),v&&(v.flags|=8,Se(S,a,u,h)),w&&_e(w,u),_e(()=>{a.isUnmounted=!0},u)},ue=(a,u,h,x=!1,b=!1,v=0)=>{for(let S=v;S{if(a.shapeFlag&6)return gt(a.component.subTree);if(a.shapeFlag&128)return a.suspense.next();const u=E(a.anchor||a.el),h=u&&u[ko];return h?E(h):u};let ct=!1;const Ee=(a,u,h)=>{let x;a==null?u._vnode&&(Se(u._vnode,null,null,!0),x=u._vnode.component):T(u._vnode||null,a,u,null,null,null,h),u._vnode=a,ct||(ct=!0,mi(x),vi(),ct=!1)},H={p:T,um:Se,m:He,r:ln,mt:ht,mc:we,pc:j,pbc:ve,n:gt,o:e};return{render:Ee,hydrate:void 0,createApp:Qo(Ee)}}function As({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 wt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function gl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yi(e,t,n=!1){const s=e.children,i=t.children;if(I(s)&&I(i))for(let r=0;r>1,e[n[l]]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 Zi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zi(t)}function Qi(e){if(e)for(let t=0;te.__isSuspense;function vl(e,t){t&&t.pendingBranch?I(e)?t.effects.push(...e):t.effects.push(e):Eo(e)}const Ie=Symbol.for("v-fgt"),Dn=Symbol.for("v-txt"),st=Symbol.for("v-cmt"),Fn=Symbol.for("v-stc"),St=[];let Ce=null;function ie(e=!1){St.push(Ce=e?null:[])}function nr(){St.pop(),Ce=St[St.length-1]||null}let en=1;function sr(e,t=!1){en+=e,e<0&&Ce&&t&&(Ce.hasOnce=!0)}function ir(e){return e.dynamicChildren=en>0?Ce||Ot:null,nr(),en>0&&Ce&&Ce.push(e),e}function re(e,t,n,s,i,r){return ir(A(e,t,n,s,i,r,!0))}function bl(e,t,n,s,i){return ir(Le(e,t,n,s,i,!0))}function rr(e){return e?e.__v_isVNode===!0:!1}function tn(e,t){return e.type===t.type&&e.key===t.key}const or=({key:e})=>e??null,jn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ee(e)||ae(e)||F(e)?{i:ke,r:e,k:t,f:!!n}:e:null);function A(e,t=null,n=null,s=0,i=null,r=e===Ie?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&or(t),ref:t&&jn(t),scopeId:_i,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:ke};return l?(Vn(c,n),r&128&&e.normalize(c)):n&&(c.shapeFlag|=ee(n)?8:16),en>0&&!o&&Ce&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Ce.push(c),c}const Le=_l;function _l(e,t=null,n=null,s=0,i=null,r=!1){if((!e||e===Wo)&&(e=st),rr(e)){const l=jt(e,t,!0);return n&&Vn(l,n),en>0&&!r&&Ce&&(l.shapeFlag&6?Ce[Ce.indexOf(e)]=l:Ce.push(l)),l.patchFlag=-2,l}if(Nl(e)&&(e=e.__vccOpts),t){t=xl(t);let{class:l,style:c}=t;l&&!ee(l)&&(t.class=Pt(l)),G(c)&&(ps(c)&&!I(c)&&(c=oe({},c)),t.style=vn(c))}const o=ee(e)?1:tr(e)?128:Pn(e)?64:G(e)?4:F(e)?2:0;return A(e,t,n,s,i,o,r,!0)}function xl(e){return e?ps(e)||Ki(e)?oe({},e):e:null}function jt(e,t,n=!1,s=!1){const{props:i,ref:r,patchFlag:o,children:l,transition:c}=e,d=t?wl(i||{},t):i,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&or(d),ref:t&&t.ref?n&&r?I(r)?r.concat(jn(t)):[r,jn(t)]:jn(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!==Ie?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&&jt(e.ssContent),ssFallback:e.ssFallback&&jt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&bs(f,c.clone(f)),f}function Ge(e=" ",t=0){return Le(Dn,null,e,t)}function yl(e,t){const n=Le(Fn,null,e);return n.staticCount=t,n}function xe(e="",t=!1){return t?(ie(),bl(st,null,e)):Le(st,null,e)}function qe(e){return e==null||typeof e=="boolean"?Le(st):I(e)?Le(Ie,null,e.slice()):rr(e)?it(e):Le(Dn,null,String(e))}function it(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:jt(e)}function Vn(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),Vn(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Ki(t)?t._ctx=ke:i===3&&ke&&(ke.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(F(t)){if(s&65){Vn(e,{default:t});return}t={default:t,_ctx:ke},n=32}else t=String(t),s&64?(n=16,t=[Ge(t)]):n=8;e.children=t,e.shapeFlag|=n}function wl(...e){const t={};for(let n=0;nge||ke;let Ln,nn;{const e=mn(),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)}};Ln=t("__VUE_INSTANCE_SETTERS__",n=>ge=n),nn=t("__VUE_SSR_SETTERS__",n=>rn=n)}const sn=e=>{const t=ge;return Ln(e),e.scope.on(),()=>{e.scope.off(),Ln(t)}},lr=()=>{ge&&ge.scope.off(),Ln(null)};function cr(e){return e.vnode.shapeFlag&4}let rn=!1;function Al(e,t=!1,n=!1){t&&nn(t);const{props:s,children:i}=e.vnode,r=cr(e);ll(e,s,r,t),fl(e,i,n||t);const o=r?Rl(e,t):void 0;return t&&nn(!1),o}function Rl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,zo);const{setup:s}=n;if(s){Ke();const i=e.setupContext=s.length>1?Pl(e):null,r=sn(e),o=It(s,e,0,[e.props,i]),l=js(o);if(We(),r(),(l||e.sp)&&!Yt(e)&&Si(e),l){if(o.then(lr,lr),t)return o.then(c=>{nn(!0);try{ar(e,c,t)}finally{nn(!1)}}).catch(c=>{Tn(c,e,0)});e.asyncDep=o}else ar(e,o)}else ur(e)}function ar(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G(t)&&(e.setupState=di(t)),ur(e)}function ur(e,t,n){const s=e.type;e.render||(e.render=s.render||$e);{const i=sn(e);Ke();try{Jo(e)}finally{We(),i()}}}const Ol={get(e,t){return de(e,"get",""),e[t]}};function Pl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ol),slots:e.slots,emit:e.emit,expose:t}}function Hn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(di(fo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Zt)return Zt[n](e)},has(t,n){return n in t||n in Zt}})):e.proxy}const Ml=/(?:^|[-_])\w/g,kl=e=>e.replace(Ml,t=>t.toUpperCase()).replace(/[-_]/g,"");function Il(e,t=!0){return F(e)?e.displayName||e.name:e.name||t&&e.__name}function fr(e,t,n=!1){let s=Il(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?kl(s):n?"App":"Anonymous"}function Nl(e){return F(e)&&"__vccOpts"in e}const pt=(e,t)=>vo(e,t,rn),Dl="3.5.42";/** +`,...wo(i)),console.warn(...r)}Je(),gs=!1}function yo(){let e=Gt[Gt.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 wo(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[` +`],...So(n))}),t}function So({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,i=` at <${fr(e.component,e.type,s)}`,r=">"+n;return e.props?[i,...Co(e.props),r]:[i+r]}function Co(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...pi(s,e[s]))}),n.length>3&&t.push(" ..."),t}function pi(e,t,n){return Z(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ce(t)?(t=pi(e,U(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):F(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=U(t),n?t:[`${e}=`,t])}function Mt(e,t,n,s){try{return s?e(...s):e()}catch(i){En(i,t,n)}}function Le(e,t,n,s){if(F(e)){const i=Mt(e,t,n,s);return i&&Vs(i)&&i.catch(r=>{En(r,t,n)}),i}if(M(e)){const i=[];for(let r=0;r>>1,i=fe[s],r=Xt(i);r=Xt(n)?fe.push(e):fe.splice(Ao(t),0,e),e.flags|=1,gi()}}function gi(){Rn||(Rn=hi.then(bi))}function Eo(e){if(!M(e))ht&&e.id===-1?ht.splice(Nt+1,0,e):e.flags&1||(It.push(e),e.flags|=1);else for(let t=0;tXt(n)-Xt(s));if(It.length=0,ht){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function bi(e){try{for(qe=0;qe{s._d&&sr(-1);const r=On(t),o=Ct.length;let l;try{l=e(...i)}finally{for(let a=Ct.length;a>o;a--)nr();On(r),s._d&&sr(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function vs(e,t){if(Oe===null)return e;const n=Un(Oe),s=e.dirs||(e.dirs=[]);for(let i=0;i1)return n&&F(t)?t.call(s&&s.proxy):t}}const Po=Symbol.for("v-scx"),ko=()=>Pn(Po);function kn(e,t,n){return xi(e,t,n)}function xi(e,t,n=G){const{immediate:s,deep:i,flush:r,once:o}=n,l=ie({},n),a=t&&s||!t&&r!=="post";let d;if(on){if(r==="sync"){const E=ko();d=E.__watcherHandles||(E.__watcherHandles=[])}else if(!a){const E=()=>{};return E.stop=Be,E.resume=Be,E.pause=Be,E}}const f=pe;l.call=(E,$,N)=>Le(E,f,$,N);let g=!1;r==="post"?l.scheduler=E=>{be(E,f&&f.suspense)}:r!=="sync"&&(g=!0,l.scheduler=(E,$)=>{$?E():ms(E)}),l.augmentJob=E=>{t&&(E.flags|=4),g&&(E.flags|=2,f&&(E.id=f.uid,E.i=f))};const A=xo(e,t,l);return on&&(d?d.push(A):a&&A()),A}function Mo(e,t,n){const s=this.proxy,i=Z(e)?e.includes(".")?yi(s,e):()=>s[e]:e.bind(s,s);let r;F(t)?r=t:(r=t.handler,n=t);const o=rn(this),l=xi(i,r.bind(s),n);return o(),l}function yi(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;ie.__isTeleport,bs=Symbol("_leaveCb");function No(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==rt){t=n;break}}return t}function wi(e){if(!xs(e))return Mn(e.type)&&e.children?No(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 _s(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;_s(Mn(n.type)&&wi(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 Do(e,t){return F(e)?ie({name:e.name},t,{setup:e}):e}function Si(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Ci(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const In=new WeakMap;function Yt(e,t,n,s,i=!1){if(M(e)){e.forEach((N,ne)=>Yt(N,t&&(M(t)?t[ne]:t),n,s,i));return}if(Zt(s)&&!i){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Yt(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?Un(s.component):s.el,o=i?null:r,{i:l,r:a}=e,d=t&&t.r,f=l.refs===G?l.refs={}:l.refs,g=l.setupState,A=U(g),E=g===G?Ds:N=>Ci(f,N)?!1:K(A,N),$=(N,ne)=>!(ne&&Ci(f,ne));if(d!=null&&d!==a){if(Ti(t),Z(d))f[d]=null,E(d)&&(g[d]=null);else if(ce(d)){const N=t;$(d,N.k)&&(d.value=null),N.k&&(f[N.k]=null)}}if(F(a))Mt(a,l,12,[o,f]);else{const N=Z(a),ne=ce(a);if(N||ne){const k=()=>{if(e.f){const V=N?E(a)?g[a]:f[a]:$()||!e.k?a.value:f[e.k];if(i)M(V)&&Yn(V,r);else if(M(V))V.includes(r)||V.push(r);else if(N)f[a]=[r],E(a)&&(g[a]=f[a]);else{const H=[r];$(a,e.k)&&(a.value=H),e.k&&(f[e.k]=H)}}else N?(f[a]=o,E(a)&&(g[a]=o)):ne&&($(a,e.k)&&(a.value=o),e.k&&(f[e.k]=o))};if(o){const V=()=>{k(),In.delete(e)};V.id=-1,In.set(e,V),be(V,n)}else Ti(e),k()}}}function Ti(e){const t=In.get(e);t&&(t.flags|=8,In.delete(e))}bn().requestIdleCallback,bn().cancelIdleCallback;const Zt=e=>!!e.type.__asyncLoader,xs=e=>e.type.__isKeepAlive;function Fo(e,t){Ai(e,"a",t)}function Vo(e,t){Ai(e,"da",t)}function Ai(e,t,n=pe){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Nn(t,s,n),n){let i=n.parent;for(;i&&i.parent;)xs(i.parent.vnode)&&jo(s,t,n,i),i=i.parent}}function jo(e,t,n,s){const i=Nn(t,e,s,!0);Oi(()=>{Yn(s[t],i)},n)}function Nn(e,t,n=pe,s=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...o)=>{ze();const l=rn(n),a=Le(t,n,e,o);return l(),Je(),a});return s?i.unshift(r):i.push(r),r}}const it=e=>(t,n=pe)=>{(!on||e==="sp")&&Nn(e,(...s)=>t(...s),n)},Lo=it("bm"),Ei=it("m"),Ho=it("bu"),$o=it("u"),Ri=it("bum"),Oi=it("um"),Uo=it("sp"),Bo=it("rtg"),Ko=it("rtc");function Wo(e,t=pe){Nn("ec",e,t)}const zo=Symbol.for("v-ndc");function Pi(e,t,n,s){let i;const r=n,o=M(e);if(o||Z(e)){const l=o&&xt(e);let a=!1,d=!1;l&&(a=!Re(e),d=nt(e),e=xn(e)),i=new Array(e.length);for(let f=0,g=e.length;ft(l,a,void 0,r));else{const l=Object.keys(e);i=new Array(l.length);for(let a=0,d=l.length;ae?cr(e)?Un(e):ys(e.parent):null,Qt=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=>ys(e.parent),$root:e=>ys(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ni(e),$forceUpdate:e=>e.f||(e.f=()=>{ms(e.update)}),$nextTick:e=>e.n||(e.n=qt.bind(e.proxy)),$watch:e=>Mo.bind(e)}),ws=(e,t)=>e!==G&&!e.__isScriptSetup&&K(e,t),Jo={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:i,props:r,accessCache:o,type:l,appContext:a}=e;if(t[0]!=="$"){const A=o[t];if(A!==void 0)switch(A){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(ws(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];Ss&&(o[t]=0)}}const d=Qt[t];let f,g;if(d)return t==="$attrs"&&ae(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(g=a.config.globalProperties,K(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:r}=e;return ws(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 a;return!!(n[l]||e!==G&&l[0]!=="$"&&K(e,l)||ws(t,l)||K(r,l)||K(s,l)||K(Qt,l)||K(i.config.globalProperties,l)||(a=o.__cssModules)&&a[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 ki(e){return M(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Ss=!0;function Go(e){const t=Ni(e),n=e.proxy,s=e.ctx;Ss=!1,t.beforeCreate&&Mi(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:o,watch:l,provide:a,inject:d,created:f,beforeMount:g,mounted:A,beforeUpdate:E,updated:$,activated:N,deactivated:ne,beforeDestroy:k,beforeUnmount:V,destroyed:H,unmounted:T,render:Y,renderTracked:xe,renderTriggered:he,errorCaptured:Me,serverPrefetch:at,expose:Ae,inheritAttrs:Ze,components:Ie,directives:Ne,filters:ut}=t;if(d&&qo(d,s,null),o)for(const J in o){const j=o[J];F(j)&&(s[J]=j.bind(n))}if(i){const J=i.call(n,n);z(J)&&(e.data=ds(J))}if(Ss=!0,r)for(const J in r){const j=r[J],ye=F(j)?j.bind(n,n):F(j.get)?j.get.bind(n,n):Be,ue=!F(j)&&F(j.set)?j.set.bind(n):Be,ft=lt({get:ye,set:ue});Object.defineProperty(s,J,{enumerable:!0,configurable:!0,get:()=>ft.value,set:De=>ft.value=De})}if(l)for(const J in l)Ii(l[J],s,n,J);if(a){const J=F(a)?a.call(n):a;Reflect.ownKeys(J).forEach(j=>{Oo(j,J[j])})}f&&Mi(f,e,"c");function re(J,j){M(j)?j.forEach(ye=>J(ye.bind(n))):j&&J(j.bind(n))}if(re(Lo,g),re(Ei,A),re(Ho,E),re($o,$),re(Fo,N),re(Vo,ne),re(Wo,Me),re(Ko,xe),re(Bo,he),re(Ri,V),re(Oi,T),re(Uo,at),M(Ae))if(Ae.length){const J=e.exposed||(e.exposed={});Ae.forEach(j=>{Object.defineProperty(J,j,{get:()=>n[j],set:ye=>n[j]=ye,enumerable:!0})})}else e.exposed||(e.exposed={});Y&&e.render===Be&&(e.render=Y),Ze!=null&&(e.inheritAttrs=Ze),Ie&&(e.components=Ie),Ne&&(e.directives=Ne),at&&Si(e)}function qo(e,t,n=Be){M(e)&&(e=Cs(e));for(const s in e){const i=e[s];let r;z(i)?"default"in i?r=Pn(i.from||s,i.default,!0):r=Pn(i.from||s):r=Pn(i),ce(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[s]=r}}function Mi(e,t,n){Le(M(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ii(e,t,n,s){let i=s.includes(".")?yi(n,s):()=>n[s];if(Z(e)){const r=t[e];F(r)&&kn(i,r)}else if(F(e))kn(i,e.bind(n));else if(z(e))if(M(e))e.forEach(r=>Ii(r,t,n,s));else{const r=F(e.handler)?e.handler.bind(n):t[e.handler];F(r)&&kn(i,r,e)}}function Ni(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=e.appContext,l=r.get(t);let a;return l?a=l:!i.length&&!n&&!s?a=t:(a={},i.length&&i.forEach(d=>Dn(a,d,o,!0)),Dn(a,t,o)),z(t)&&r.set(t,a),a}function Dn(e,t,n,s=!1){const{mixins:i,extends:r}=t;r&&Dn(e,r,n,!0),i&&i.forEach(o=>Dn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=Xo[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Xo={data:Di,props:Fi,emits:Fi,methods:en,computed:en,beforeCreate:de,created:de,beforeMount:de,mounted:de,beforeUpdate:de,updated:de,beforeDestroy:de,beforeUnmount:de,destroyed:de,unmounted:de,activated:de,deactivated:de,errorCaptured:de,serverPrefetch:de,components:en,directives:en,watch:Zo,provide:Di,inject:Yo};function Di(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 Yo(e,t){return en(Cs(e),Cs(t))}function Cs(e){if(M(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ve(t)}Modifiers`]||e[`${Ee(t)}Modifiers`];function nl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||G;let i=n;const r=t.startsWith("update:"),o=r&&tl(s,t.slice(7));o&&(o.trim&&(i=n.map(f=>Z(f)?f.trim():f)),o.number&&(i=i.map(vn)));let l,a=s[l=Qn(t)]||s[l=Qn(ve(t))];!a&&r&&(a=s[l=Qn(Ee(t))]),a&&Le(a,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,Le(d,e,6,i)}}const sl=new WeakMap;function ji(e,t,n=!1){const s=n?sl:t.emitsCache,i=s.get(e);if(i!==void 0)return i;const r=e.emits;let o={},l=!1;if(!F(e)){const a=d=>{const f=ji(d,t,!0);f&&(l=!0,ie(o,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(z(e)&&s.set(e,null),null):(M(r)?r.forEach(a=>o[a]=null):ie(o,r),z(e)&&s.set(e,o),o)}function Fn(e,t){return!e||!dn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),K(e,t[0].toLowerCase()+t.slice(1))||K(e,Ee(t))||K(e,t))}function va(){}function Li(e){const{type:t,vnode:n,proxy:s,withProxy:i,propsOptions:[r],slots:o,attrs:l,emit:a,render:d,renderCache:f,props:g,data:A,setupState:E,ctx:$,inheritAttrs:N}=e,ne=On(e);let k,V;try{if(n.shapeFlag&4){const T=i||s,Y=T;k=Xe(d.call(Y,T,f,g,E,A,$)),V=l}else{const T=t;k=Xe(T.length>1?T(g,{attrs:l,slots:o,emit:a}):T(g,null)),V=t.props?l:il(l)}}catch(T){Ct.length=0,En(T,e,1),k=He(rt)}let H=k;if(V&&N!==!1){const T=Object.keys(V),{shapeFlag:Y}=H;T.length&&Y&7&&(r&&T.some(pn)&&(V=rl(V,r)),H=Ft(H,V,!1,!0))}if(n.dirs&&(H=Ft(H,null,!1,!0),H.dirs=H.dirs?H.dirs.concat(n.dirs):n.dirs),n.transition){const T=Mn(H.type)&&wi(H)||H;_s(T,n.transition)}return k=H,On(ne),k}const il=e=>{let t;for(const n in e)(n==="class"||n==="style"||dn(n))&&((t||(t={}))[n]=e[n]);return t},rl=(e,t)=>{const n={};for(const s in e)(!pn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ol(e,t,n){const{props:s,children:i,component:r}=e,{props:o,children:l,patchFlag:a}=t,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?Hi(s,o,d):!!o;if(a&8){const f=t.dynamicProps;for(let g=0;gObject.create(Ui),Ki=e=>Object.getPrototypeOf(e)===Ui;function cl(e,t,n,s=!1){const i={},r=Bi();e.propsDefaults=Object.create(null),Wi(e,t,i,r);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);n?e.props=s?i:fo(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function al(e,t,n,s){const{props:i,attrs:r,vnode:{patchFlag:o}}=e,l=U(i),[a]=e.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let g=0;g{a=!0;const[A,E]=zi(g,t,!0);ie(o,A),E&&l.push(...E)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!a)return z(e)&&s.set(e,Rt),Rt;if(M(r))for(let f=0;fe==="_"||e==="_ctx"||e==="$stable",Es=e=>M(e)?e.map(Xe):[Xe(e)],fl=(e,t,n)=>{if(t._n)return t;const s=Ro((...i)=>Es(t(...i)),n);return s._c=!1,s},Gi=(e,t,n)=>{const s=e._ctx;for(const i in e){if(As(i))continue;const r=e[i];if(F(r))t[i]=fl(i,r,s);else if(r!=null){const o=Es(r);t[i]=()=>o}}},qi=(e,t)=>{const n=Es(t);e.slots.default=()=>n},Xi=(e,t,n)=>{for(const s in t)(n||!As(s))&&(e[s]=t[s])},dl=(e,t,n)=>{const s=e.slots=Bi();if(e.vnode.shapeFlag&32){const i=t._;i?(Xi(s,t,n),n&&Hs(s,"_",i,!0)):Gi(t,s)}else t&&qi(e,t)},pl=(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:Xi(i,t,n):(r=!t.$stable,Gi(t,i)),o=t}else t&&(qi(e,t),o={default:1});if(r)for(const l in i)!As(l)&&o[l]==null&&delete i[l]},be=bl;function hl(e){return gl(e)}function gl(e,t){const n=bn();n.__VUE__=!0;const{insert:s,remove:i,patchProp:r,createElement:o,createText:l,createComment:a,setText:d,setElementText:f,parentNode:g,nextSibling:A,setScopeId:E=Be,insertStaticContent:$}=e,N=(c,u,h,x=null,b=null,m=null,S=void 0,w=null,y=!!u.dynamicChildren)=>{if(c===u)return;c&&!nn(c,u)&&(x=jt(c),De(c,b,m,!0),c=null),u.patchFlag===-2&&(y=!1,u.dynamicChildren=null);const{type:v,ref:O,shapeFlag:C}=u;switch(v){case Vn:ne(c,u,h,x);break;case rt:k(c,u,h,x);break;case jn:c==null&&V(u,h,x,S);break;case Pe:Ie(c,u,h,x,b,m,S,w,y);break;default:C&1?Y(c,u,h,x,b,m,S,w,y):C&6?Ne(c,u,h,x,b,m,S,w,y):(C&64||C&128)&&v.process(c,u,h,x,b,m,S,w,y,$e)}O!=null&&b?Yt(O,c&&c.ref,m,u||c,!u):O==null&&c&&c.ref!=null&&Yt(c.ref,null,m,c,!0)},ne=(c,u,h,x)=>{if(c==null)s(u.el=l(u.children),h,x);else{const b=u.el=c.el;u.children!==c.children&&d(b,u.children)}},k=(c,u,h,x)=>{c==null?s(u.el=a(u.children||""),h,x):u.el=c.el},V=(c,u,h,x)=>{[c.el,c.anchor]=$(c.children,u,h,x,c.el,c.anchor)},H=({el:c,anchor:u},h,x)=>{let b;for(;c&&c!==u;)b=A(c),s(c,h,x),c=b;s(u,h,x)},T=({el:c,anchor:u})=>{let h;for(;c&&c!==u;)h=A(c),i(c),c=h;i(u)},Y=(c,u,h,x,b,m,S,w,y)=>{if(u.type==="svg"?S="svg":u.type==="math"&&(S="mathml"),c==null)xe(u,h,x,b,m,S,w,y);else{const v=c.el&&c.el._isVueCE?c.el:null;try{v&&v._beginPatch(),at(c,u,b,m,S,w,y)}finally{v&&v._endPatch()}}},xe=(c,u,h,x,b,m,S,w)=>{let y,v;const{props:O,shapeFlag:C,transition:P,dirs:I}=c;if(y=c.el=o(c.type,m,O&&O.is,O),C&8?f(y,c.children):C&16&&Me(c.children,y,null,x,b,Rs(c,m),S,w),I&&wt(c,null,x,"created"),he(y,c,c.scopeId,S,x),O){for(const W in O)W!=="value"&&!Ut(W)&&r(y,W,null,O[W],m,x);"value"in O&&r(y,"value",null,O.value,m),(v=O.onVnodeBeforeMount)&&Ye(v,x,c)}I&&wt(c,null,x,"beforeMount");const L=ml(b,P);L&&P.beforeEnter(y),s(y,u,h),((v=O&&O.onVnodeMounted)||L||I)&&be(()=>{try{v&&Ye(v,x,c),L&&P.enter(y),I&&wt(c,null,x,"mounted")}finally{}},b)},he=(c,u,h,x,b)=>{if(h&&E(c,h),x)for(let m=0;m{for(let v=y;v{const w=u.el=c.el;let{patchFlag:y,dynamicChildren:v,dirs:O}=u;y|=c.patchFlag&16;const C=c.props||G,P=u.props||G;let I;if(h&&St(h,!1),(I=P.onVnodeBeforeUpdate)&&Ye(I,h,u,c),O&&wt(u,c,h,"beforeUpdate"),h&&St(h,!0),v&&(!c.dynamicChildren||c.dynamicChildren.length!==v.length)&&(y=0,S=!1,v=null),(C.innerHTML&&P.innerHTML==null||C.textContent&&P.textContent==null)&&f(w,""),v?Ae(c.dynamicChildren,v,w,h,x,Rs(u,b),m):S||j(c,u,w,null,h,x,Rs(u,b),m,!1),y>0){if(y&16)Ze(w,C,P,h,b);else if(y&2&&C.class!==P.class&&r(w,"class",null,P.class,b),y&4&&r(w,"style",C.style,P.style,b),y&8){const L=u.dynamicProps;for(let W=0;W{I&&Ye(I,h,u,c),O&&wt(u,c,h,"updated")},x)},Ae=(c,u,h,x,b,m,S)=>{for(let w=0;w{if(u!==h){if(u!==G)for(const m in u)!Ut(m)&&!(m in h)&&r(c,m,u[m],null,b,x);for(const m in h){if(Ut(m))continue;const S=h[m],w=u[m];S!==w&&m!=="value"&&r(c,m,w,S,b,x)}"value"in h&&r(c,"value",u.value,h.value,b)}},Ie=(c,u,h,x,b,m,S,w,y)=>{const v=u.el=c?c.el:l(""),O=u.anchor=c?c.anchor:l("");let{patchFlag:C,dynamicChildren:P,slotScopeIds:I}=u;I&&(w=w?w.concat(I):I),c==null?(s(v,h,x),s(O,h,x),Me(u.children||[],h,O,b,m,S,w,y)):C>0&&C&64&&P&&c.dynamicChildren&&c.dynamicChildren.length===P.length?(Ae(c.dynamicChildren,P,h,b,m,S,w),(u.key!=null||b&&u===b.subTree)&&Yi(c,u,!0)):j(c,u,h,O,b,m,S,w,y)},Ne=(c,u,h,x,b,m,S,w,y)=>{u.slotScopeIds=w,c==null?u.shapeFlag&512?b.ctx.activate(u,h,x,S,y):ut(u,h,x,b,m,S,y):Qe(c,u,y)},ut=(c,u,h,x,b,m,S)=>{const w=c.component=Al(c,x,b);if(xs(c)&&(w.ctx.renderer=$e),Rl(w,!1,S),w.asyncDep){if(b&&b.registerDep(w,re,S),!c.el){const y=w.subTree=He(rt);k(null,y,u,h),c.placeholder=y.el}}else re(w,c,u,h,b,m,S)},Qe=(c,u,h)=>{const x=u.component=c.component;if(ol(c,u,h))if(x.asyncDep&&!x.asyncResolved){J(x,u,h);return}else x.next=u,x.update();else u.el=c.el,x.vnode=u},re=(c,u,h,x,b,m,S)=>{const w=()=>{if(c.isMounted){let{next:C,bu:P,u:I,parent:L,vnode:W}=c;{const Se=Zi(c);if(Se){C&&(C.el=W.el,J(c,C,S)),Se.asyncDep.then(()=>{be(()=>{c.isUnmounted||v()},b)});return}}let B=C,se;St(c,!1),C?(C.el=W.el,J(c,C,S)):C=W,P&&mn(P),(se=C.props&&C.props.onVnodeBeforeUpdate)&&Ye(se,L,C,W),St(c,!0);const oe=Li(c),we=c.subTree;c.subTree=oe,N(we,oe,g(we.el),jt(we),c,b,m),C.el=oe.el,B===null&&ll(c,oe.el),I&&be(I,b),(se=C.props&&C.props.onVnodeUpdated)&&be(()=>Ye(se,L,C,W),b)}else{let C;const{el:P,props:I}=u,{bm:L,m:W,parent:B,root:se,type:oe}=c,we=Zt(u);St(c,!1),L&&mn(L),!we&&(C=I&&I.onVnodeBeforeMount)&&Ye(C,B,u),St(c,!0);{se.ce&&se.ce._hasShadowRoot()&&se.ce._injectChildStyle(oe,c.parent?c.parent.type:void 0);const Se=c.subTree=Li(c);N(null,Se,h,x,c,b,m),u.el=Se.el}if(W&&be(W,b),!we&&(C=I&&I.onVnodeMounted)){const Se=u;be(()=>Ye(C,B,Se),b)}(u.shapeFlag&256||B&&Zt(B.vnode)&&B.vnode.shapeFlag&256)&&c.a&&be(c.a,b),c.isMounted=!0,u=h=x=null}};c.scope.on();const y=c.effect=new Js(w);c.scope.off();const v=c.update=y.run.bind(y),O=c.job=y.runIfDirty.bind(y);O.i=c,O.id=c.uid,y.scheduler=()=>ms(O),St(c,!0),v()},J=(c,u,h)=>{u.component=c;const x=c.vnode.props;c.vnode=u,c.next=null,al(c,u.props,x,h),pl(c,u.children,h),ze(),mi(c),Je()},j=(c,u,h,x,b,m,S,w,y=!1)=>{const v=c&&c.children,O=c?c.shapeFlag:0,C=u.children,{patchFlag:P,shapeFlag:I}=u;if(P>0){if(P&128){ue(v,C,h,x,b,m,S,w,y);return}else if(P&256){ye(v,C,h,x,b,m,S,w,y);return}}I&8?(O&16&>(v,b,m),C!==v&&f(h,C)):O&16?I&16?ue(v,C,h,x,b,m,S,w,y):gt(v,b,m,!0):(O&8&&f(h,""),I&16&&Me(C,h,x,b,m,S,w,y))},ye=(c,u,h,x,b,m,S,w,y)=>{c=c||Rt,u=u||Rt;const v=c.length,O=u.length,C=Math.min(v,O);let P;for(P=0;PO?gt(c,b,m,!0,!1,C):Me(u,h,x,b,m,S,w,y,C)},ue=(c,u,h,x,b,m,S,w,y)=>{let v=0;const O=u.length;let C=c.length-1,P=O-1;for(;v<=C&&v<=P;){const I=c[v],L=u[v]=y?ot(u[v]):Xe(u[v]);if(nn(I,L))N(I,L,h,null,b,m,S,w,y);else break;v++}for(;v<=C&&v<=P;){const I=c[C],L=u[P]=y?ot(u[P]):Xe(u[P]);if(nn(I,L))N(I,L,h,null,b,m,S,w,y);else break;C--,P--}if(v>C){if(v<=P){const I=P+1,L=IP)for(;v<=C;)De(c[v],b,m,!0),v++;else{const I=v,L=v,W=new Map;for(v=L;v<=P;v++){const me=u[v]=y?ot(u[v]):Xe(u[v]);me.key!=null&&W.set(me.key,v)}let B,se=0;const oe=P-L+1;let we=!1,Se=0;const mt=new Array(oe);for(v=0;v=oe){De(me,b,m,!0);continue}let Ce;if(me.key!=null)Ce=W.get(me.key);else for(B=L;B<=P;B++)if(mt[B-L]===0&&nn(me,u[B])){Ce=B;break}Ce===void 0?De(me,b,m,!0):(mt[Ce-L]=v+1,Ce>=Se?Se=Ce:we=!0,N(me,u[Ce],h,null,b,m,S,w,y),se++)}const an=we?vl(mt):Rt;for(B=an.length-1,v=oe-1;v>=0;v--){const me=L+v,Ce=u[me],Ht=u[me+1],un=me+1{const{el:m,type:S,transition:w,children:y,shapeFlag:v}=c;if(v&6){ft(c.component.subTree,u,h,x);return}if(v&128){c.suspense.move(u,h,x);return}if(v&64){S.move(c,u,h,$e);return}if(S===Pe){s(m,u,h);for(let C=0;Cw.enter(m),b));else{const{leave:C,delayLeave:P,afterLeave:I}=w,L=()=>{c.ctx.isUnmounted?i(m):s(m,u,h)},W=()=>{const B=m._isLeaving||!!m[bs];m._isLeaving&&m[bs](!0),w.persisted&&!B?L():C(m,()=>{L(),I&&I()})};P?P(m,L,W):W()}else s(m,u,h)},De=(c,u,h,x=!1,b=!1)=>{const{type:m,props:S,ref:w,children:y,dynamicChildren:v,shapeFlag:O,patchFlag:C,dirs:P,cacheIndex:I,memo:L}=c;if(C===-2&&(b=!1),w!=null&&(ze(),Yt(w,null,h,c,!0),Je()),I!=null&&(u.renderCache[I]=void 0),O&256){u.ctx.deactivate(c);return}const W=O&1&&P,B=!Zt(c);let se;if(B&&(se=S&&S.onVnodeBeforeUnmount)&&Ye(se,u,c),O&6)Jn(c.component,h,x);else{if(O&128){c.suspense.unmount(h,x);return}W&&wt(c,null,u,"beforeUnmount"),O&64?c.type.remove(c,u,h,$e,x):v&&!v.hasOnce&&(m!==Pe||C>0&&C&64)?gt(v,u,h,!1,!0):(m===Pe&&C&384||!b&&O&16)&>(y,u,h),x&&Vt(c)}const oe=L!=null&&I==null;(B&&(se=S&&S.onVnodeUnmounted)||W||oe)&&be(()=>{se&&Ye(se,u,c),W&&wt(c,null,u,"unmounted"),oe&&(c.el=null)},h)},Vt=c=>{const{type:u,el:h,anchor:x,transition:b}=c;if(u===Pe){cn(h,x);return}if(u===jn){T(c);return}const m=()=>{i(h),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(c.shapeFlag&1&&b&&!b.persisted){const{leave:S,delayLeave:w}=b,y=()=>S(h,m);w?w(c.el,m,y):y()}else m()},cn=(c,u)=>{let h;for(;c!==u;)h=A(c),i(c),c=h;i(u)},Jn=(c,u,h)=>{const{bum:x,scope:b,job:m,subTree:S,um:w,m:y,a:v}=c;Qi(y),Qi(v),x&&mn(x),b.stop(),m&&(m.flags|=8,De(S,c,u,h)),w&&be(w,u),be(()=>{c.isUnmounted=!0},u)},gt=(c,u,h,x=!1,b=!1,m=0)=>{for(let S=m;S{if(c.shapeFlag&6)return jt(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const u=A(c.anchor||c.el),h=u&&u[Io];return h?A(h):u};let ge=!1;const Lt=(c,u,h)=>{let x;c==null?u._vnode&&(De(u._vnode,null,null,!0),x=u._vnode.component):N(u._vnode||null,c,u,null,null,null,h),u._vnode=c,ge||(ge=!0,mi(x),vi(),ge=!1)},$e={p:N,um:De,m:ft,r:Vt,mt:ut,mc:Me,pc:j,pbc:Ae,n:jt,o:e};return{render:Lt,hydrate:void 0,createApp:el(Lt)}}function Rs({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 St({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ml(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yi(e,t,n=!1){const s=e.children,i=t.children;if(M(s)&&M(i))for(let r=0;r>1,e[n[l]]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 Zi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zi(t)}function Qi(e){if(e)for(let t=0;te.__isSuspense;function bl(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):Eo(e)}const Pe=Symbol.for("v-fgt"),Vn=Symbol.for("v-txt"),rt=Symbol.for("v-cmt"),jn=Symbol.for("v-stc"),Ct=[];let Te=null;function ee(e=!1){Ct.push(Te=e?null:[])}function nr(){Ct.pop(),Te=Ct[Ct.length-1]||null}let tn=1;function sr(e,t=!1){tn+=e,e<0&&Te&&t&&(Te.hasOnce=!0)}function ir(e){return e.dynamicChildren=tn>0?Te||Rt:null,nr(),tn>0&&Te&&Te.push(e),e}function te(e,t,n,s,i,r){return ir(R(e,t,n,s,i,r,!0))}function _l(e,t,n,s,i){return ir(He(e,t,n,s,i,!0))}function rr(e){return e?e.__v_isVNode===!0:!1}function nn(e,t){return e.type===t.type&&e.key===t.key}const or=({key:e})=>e??null,Ln=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Z(e)||ce(e)||F(e)?{i:Oe,r:e,k:t,f:!!n}:e:null);function R(e,t=null,n=null,s=0,i=null,r=e===Pe?0:1,o=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&or(t),ref:t&&Ln(t),scopeId:_i,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:Oe};return l?(Hn(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Z(n)?8:16),tn>0&&!o&&Te&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&Te.push(a),a}const He=xl;function xl(e,t=null,n=null,s=0,i=null,r=!1){if((!e||e===zo)&&(e=rt),rr(e)){const l=Ft(e,t,!0);return n&&Hn(l,n),tn>0&&!r&&Te&&(l.shapeFlag&6?Te[Te.indexOf(e)]=l:Te.push(l)),l.patchFlag=-2,l}if(Dl(e)&&(e=e.__vccOpts),t){t=yl(t);let{class:l,style:a}=t;l&&!Z(l)&&(t.class=Ot(l)),z(a)&&(hs(a)&&!M(a)&&(a=ie({},a)),t.style=_n(a))}const o=Z(e)?1:tr(e)?128:Mn(e)?64:z(e)?4:F(e)?2:0;return R(e,t,n,s,i,o,r,!0)}function yl(e){return e?hs(e)||Ki(e)?ie({},e):e:null}function Ft(e,t,n=!1,s=!1){const{props:i,ref:r,patchFlag:o,children:l,transition:a}=e,d=t?Sl(i||{},t):i,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&or(d),ref:t&&t.ref?n&&r?M(r)?r.concat(Ln(t)):[r,Ln(t)]:Ln(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!==Pe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ft(e.ssContent),ssFallback:e.ssFallback&&Ft(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&_s(f,a.clone(f)),f}function ke(e=" ",t=0){return He(Vn,null,e,t)}function wl(e,t){const n=He(jn,null,e);return n.staticCount=t,n}function _e(e="",t=!1){return t?(ee(),_l(rt,null,e)):He(rt,null,e)}function Xe(e){return e==null||typeof e=="boolean"?He(rt):M(e)?He(Pe,null,e.slice()):rr(e)?ot(e):He(Vn,null,String(e))}function ot(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ft(e)}function Hn(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(M(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),Hn(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Ki(t)?t._ctx=Oe:i===3&&Oe&&(Oe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(F(t)){if(s&65){Hn(e,{default:t});return}t={default:t,_ctx:Oe},n=32}else t=String(t),s&64?(n=16,t=[ke(t)]):n=8;e.children=t,e.shapeFlag|=n}function Sl(...e){const t={};for(let n=0;npe||Oe;let $n,sn;{const e=bn(),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)}};$n=t("__VUE_INSTANCE_SETTERS__",n=>pe=n),sn=t("__VUE_SSR_SETTERS__",n=>on=n)}const rn=e=>{const t=pe;return $n(e),e.scope.on(),()=>{e.scope.off(),$n(t)}},lr=()=>{pe&&pe.scope.off(),$n(null)};function cr(e){return e.vnode.shapeFlag&4}let on=!1;function Rl(e,t=!1,n=!1){t&&sn(t);const{props:s,children:i}=e.vnode,r=cr(e);cl(e,s,r,t),dl(e,i,n||t);const o=r?Ol(e,t):void 0;return t&&sn(!1),o}function Ol(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Jo);const{setup:s}=n;if(s){ze();const i=e.setupContext=s.length>1?kl(e):null,r=rn(e),o=Mt(s,e,0,[e.props,i]),l=Vs(o);if(Je(),r(),(l||e.sp)&&!Zt(e)&&Si(e),l){if(o.then(lr,lr),t)return o.then(a=>{sn(!0);try{ar(e,a,t)}finally{sn(!1)}}).catch(a=>{En(a,e,0)});e.asyncDep=o}else ar(e,o)}else ur(e)}function ar(e,t,n){F(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:z(t)&&(e.setupState=di(t)),ur(e)}function ur(e,t,n){const s=e.type;e.render||(e.render=s.render||Be);{const i=rn(e);ze();try{Go(e)}finally{Je(),i()}}}const Pl={get(e,t){return ae(e,"get",""),e[t]}};function kl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Pl),slots:e.slots,emit:e.emit,expose:t}}function Un(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(di(po(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Qt)return Qt[n](e)},has(t,n){return n in t||n in Qt}})):e.proxy}const Ml=/(?:^|[-_])\w/g,Il=e=>e.replace(Ml,t=>t.toUpperCase()).replace(/[-_]/g,"");function Nl(e,t=!0){return F(e)?e.displayName||e.name:e.name||t&&e.__name}function fr(e,t,n=!1){let s=Nl(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?Il(s):n?"App":"Anonymous"}function Dl(e){return F(e)&&"__vccOpts"in e}const lt=(e,t)=>bo(e,t,on),Fl="3.5.42";/** * @vue/runtime-dom v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let Rs;const dr=typeof window<"u"&&window.trustedTypes;if(dr)try{Rs=dr.createPolicy("vue",{createHTML:e=>e})}catch{}const pr=Rs?e=>Rs.createHTML(e):e=>e,Fl="http://www.w3.org/2000/svg",jl="http://www.w3.org/1998/Math/MathML",rt=typeof document<"u"?document:null,hr=rt&&rt.createElement("template"),Vl={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"?rt.createElementNS(Fl,e):t==="mathml"?rt.createElementNS(jl,e):n?rt.createElement(e,{is:n}):rt.createElement(e);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>rt.createTextNode(e),createComment:e=>rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rt.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{hr.innerHTML=pr(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=hr.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]}},Ll=Symbol("_vtc");function Hl(e,t,n){const s=e[Ll];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const gr=Symbol("_vod"),$l=Symbol("_vsh"),Ul=Symbol(""),Bl=/(?:^|;)\s*display\s*:/;function Kl(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&&on(s,l,"")}else for(const o in t)n[o]==null&&on(s,o,"");for(const o in n){o==="display"&&(r=!0);const l=n[o];l!=null?zl(e,o,!ee(t)&&t?t[o]:void 0,l)||on(s,o,l):on(s,o,"")}}else if(i){if(t!==n){const o=s[Ul];o&&(n+=";"+o),s.cssText=n,r=Bl.test(n)}}else t&&e.removeAttribute("style");gr in e&&(e[gr]=r?s.display:"",e[$l]&&(s.display="none"))}const $n=/\s*!important$/;function on(e,t,n){if(I(n))n.forEach(s=>on(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))$n.test(n)?e.setProperty(t,n.replace($n,""),"important"):e.setProperty(t,n);else{const s=Wl(e,t);$n.test(n)?e.setProperty(Pe(s),n.replace($n,""),"important"):e[s]=n}}const mr=["Webkit","Moz","ms"],Os={};function Wl(e,t){const n=Os[t];if(n)return n;let s=be(t);if(s!=="filter"&&s in e)return Os[t]=s;s=Ls(s);for(let i=0;iPs||(Zl.then(()=>Ps=0),Ps=Date.now());function ec(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;ce.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,tc=(e,t,n,s,i,r)=>{const o=i==="svg";t==="class"?Hl(e,s,o):t==="style"?Kl(e,n,s):un(t)?fn(t)||Gl(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):nc(e,t,s,o))?(_r(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&br(e,t,s,o,r,t!=="value")):e._isVueCE&&(sc(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!ee(s)))?_r(e,be(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),br(e,t,s,o))};function nc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&yr(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 yr(t)&&ee(n)?!1:t in e}function sc(e,t){const n=e._def.props;if(!n)return!1;const s=be(t);return Array.isArray(n)?n.some(i=>be(i)===s):Object.keys(n).some(i=>be(i)===s)}const wr={};function ic(e,t,n){let s=No(e,t);dn(s)&&(s=oe({},s,t));class i extends Ms{constructor(o){super(s,o,n)}}return i.def=s,i}const rc=typeof HTMLElement<"u"?HTMLElement:class{};class Ms extends rc{constructor(t,n={},s=Rr){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!==Rr?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(oe({},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 Ms){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,Gt(()=>{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._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]=$s(this._props[c])),(l||(l=Object.create(null)))[be(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)U(this,s)||Object.defineProperty(this,s,{get:()=>fi(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(be))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):wr;const i=be(t);n&&this._numberProps&&this._numberProps[i]&&(s=$s(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===wr?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(Pe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Pe(t),n+""):n||this.removeAttribute(Pe(t)),r&&r.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),uc(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=Le(this._def,oe(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,dn(o[0])?oe({detail:o},o[0]):{detail:o}))};s.emit=(r,...o)=>{i(r,o),Pe(r)!==r&&i(Pe(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{const t=e.props["onUpdate:modelValue"]||!1;return I(t)?n=>hn(t,n):t};function oc(e){e.target.composing=!0}function Sr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Tt=Symbol("_assign"),Bn=Symbol("_initialValue");function ks(e,t,n){return t&&(e=e.trim()),n&&(e=gn(e)),e}const lc={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e.parentNode&&(e.type==="text"?e[Bn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Bn]=e.defaultValue.replace(/\r\n?/g,` -`))),e[Tt]=Un(i);const r=s||i.props&&i.props.type==="number";Ct(e,t?"change":"input",o=>{o.target.composing||e[Tt](ks(e.value,n,r))}),(n||r)&&Ct(e,"change",()=>{e.value=ks(e.value,n,r)}),t||(Ct(e,"compositionstart",oc),Ct(e,"compositionend",Sr),Ct(e,"change",Sr))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const i=t??"",r=e[Bn];delete e[Bn],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[Tt](ks(e.value,n,s)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:i,number:r}},o){if(e[Tt]=Un(o),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?gn(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)}},Cr={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,Ct(e,"change",()=>{const i=Array.prototype.filter.call(e.options,c=>c.selected).map(c=>n?gn(Kn(c)):Kn(c)),r=e.multiple,o=r?vt(e._modelValue)?new Set(i):i:i[0],l=e._pendingValue=[r,r?I(o)?i.slice():i:o];try{e[Tt](o)}finally{Gt(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[Tt]=Un(s)},mounted(e,{value:t}){Tr(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[Tt]=Un(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!cc(t,n[1],n[0]))&&Tr(e,t)}};function cc(e,t,n){if(!n||I(e))return ft(e,t);if(vt(e)){if(e.size!==t.length)return!1;for(const s of t)if(!e.has(s))return!1;return!0}return!1}function Tr(e,t){const n=e.multiple,s=I(t);if(!(n&&!s&&!vt(t))){for(let i=0,r=e.options.length;iString(d)===String(l)):o.selected=Kr(t,l)>-1}else o.selected=t.has(l);else if(ft(Kn(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Kn(e){return"_value"in e?e._value:e.value}const ac=oe({patchProp:tc},Vl);let Er;function Ar(){return Er||(Er=pl(ac))}const uc=(...e)=>{Ar().render(...e)},Rr=(...e)=>{const t=Ar().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=dc(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,fc(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function fc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function dc(e){return ee(e)?document.querySelector(e):e}const pc=":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{min-height:100%;padding:10px 12px 12px;gap:8px;font-size:14px}.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{min-height:140px}.compact .draft{min-height:120px;resize:none;padding:10px 12px;font-size:15px;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:7px 14px;font-size:14px;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:3;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}}",hc=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},gc={key:0,class:"bar"},mc=["data-state"],vc=["aria-expanded"],bc=["aria-expanded"],_c={key:1,class:"top"},xc=["aria-expanded"],yc=["data-state"],wc={key:2,class:"info"},Sc={key:3,class:"controls"},Cc=["disabled","aria-pressed","aria-label"],Tc={class:"mic-icon","aria-hidden":"true"},Ec={class:"meter","aria-hidden":"true"},Ac={class:"lang"},Rc=["disabled"],Oc=["value"],Pc={key:4,class:"mics"},Mc={class:"mic-pick"},kc=["disabled"],Ic={value:""},Nc=["value"],Dc=["disabled"],Fc=["disabled"],jc=["data-kind"],Vc={key:6,class:"notice","data-kind":"warn"},Lc={key:7,class:"notice","data-kind":"error"},Hc={key:8,class:"notice","data-kind":"warn"},$c={key:9,class:"hint"},Uc=["data-kind"],Bc={key:11,class:"notice","data-kind":"warn"},Kc={class:"compose"},Wc={class:"hearing","aria-live":"polite"},zc={class:"bottom"},Jc=["disabled","aria-pressed","aria-label"],Gc={class:"mic-icon","aria-hidden":"true"},qc=["disabled"],Xc=["disabled"],Yc={class:"count"},Zc=["aria-expanded"],Qc={key:12,class:"debug"},ea={key:0},Or="rudder-voice:v1",Pr=700,ta=ic(hc(Object.assign({inheritAttrs:!1},{__name:"rudder-voice",props:{profileConfig:{type:String,default:""},variant:{type:String,default:""}},emits:["recording"],setup(e,{emit:t}){const n=e,s=pt(()=>n.variant==="widget"),i=t,r=pt(()=>{try{return n.profileConfig?JSON.parse(n.profileConfig):{}}catch{return{}}}),o=pt(()=>(r.value.apiBase||"/api/rudder").replace(/\/$/,"")),l=[["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 c(){try{return JSON.parse(localStorage.getItem(Or)||"{}")}catch{return{}}}function d(){try{localStorage.setItem(Or,JSON.stringify({language:K.value,device:Y.value,draft:O.value}))}catch{}}const f=c(),g=te("connecting"),E=te(""),R=te(""),B=te(""),T=te(!1),Q=te(!1),K=te(f.language||r.value.language||"en-US"),O=te(typeof f.draft=="string"?f.draft:Array.isArray(f.lines)?f.lines.map(_=>_.text).join(" "):""),L=te(""),k=te(null),ne=te(0),ye=te(""),me=te("info"),we=te(""),ot=te(!1),ve=te(!1),Te=te(!1),Ye=te([]),Ne=te([]),ht=te([]),Et=te(""),Y=te(f.device||""),W=te(!1),j=te(null),lt={bluetooth:"🎧",usb:"πŸ”Œ",pci:"πŸ’»"};function Vt(_){const p=[(lt[_.bus]||"πŸŽ™")+" "+_.label];return _.muted?p.push("(muted)"):_.volume&&p.push("Β· "+_.volume),p.join(" ")}const He=pt(()=>Ne.value.find(_=>_.default)),Se=pt(()=>Ne.value.find(_=>_.id===Y.value)||(Y.value?null:He.value));function ln(_){_&&(Ne.value=_.devices||[],ht.value=_.offCards||[],Et.value=_.error||"",Y.value&&!Ne.value.some(p=>p.id===Y.value)&&(T.value||(Ee("Your chosen microphone is no longer connected β€” using the system default instead.","warn"),Y.value="",d())))}async function Wn(){try{ln(await(await fetch(o.value+"/devices")).json())}catch(_){ct("devices fetch failed: "+_)}}async function Is(){if(!(W.value||T.value)){W.value=!0,j.value=null;try{j.value=await Lt("/test",{device:Y.value})}catch(_){j.value={ok:!1,verdict:String(_.message||_)}}finally{W.value=!1,ne.value=0}}}let ue=null,gt=null;function ct(_){Ye.value.push(new Date().toISOString().slice(11,23)+" "+_),Ye.value.length>200&&Ye.value.splice(0,Ye.value.length-200)}function Ee(_,p="info"){ye.value=_,me.value=p}let H=null,at=0;function a(){return!H||!O.value.endsWith(H.text)?!1:(H.start=O.value.length-H.text.length,!0)}function u(_){const p=k.value,D=p&&p.getRootNode().activeElement===p,De=p?p.selectionStart:0,Ns=p?p.selectionEnd:0,an=!p||p.scrollHeight-p.scrollTop-p.clientHeight<32;O.value=_,d(),Gt(()=>{p&&(D&&p.setSelectionRange(Math.min(De,_.length),Math.min(Ns,_.length)),(an||!D)&&(p.scrollTop=p.scrollHeight))})}const h=_=>!_||/\s$/.test(_)?"":" ",x=_=>(_||"").trim().split(/\s+/).filter(Boolean),b=_=>(_||"").toLowerCase().replace(/[^\p{L}\p{N}']/gu,"");function v(_){const p=x(H.text),D=p[p.length-1]||"",De=_[at+H.shown-1],Ns=H.shown>0&&De!==void 0&&b(De)!==b(D)&&b(De).startsWith(b(D)),an=O.value.lastIndexOf(H.text);an>=0&&(H.start=an);const Jn=H.start+H.text.length,oa=an>=0;if(Ns&&oa&&D){let Rt=Jn-D.length;Rt>H.start&&O.value[Rt-1]===" "&&Rt--;const la=Jn-Rt,mt=k.value,ca=mt&&mt.getRootNode().activeElement===mt,Ir=Gn=>Gn>=Jn?Gn-la:Gn>Rt?Rt:Gn,aa=mt?Ir(mt.selectionStart):0,ua=mt?Ir(mt.selectionEnd):0;O.value=O.value.slice(0,Rt)+O.value.slice(Jn),ca&&Gt(()=>mt.setSelectionRange(aa,ua)),at+=H.shown-1}else at+=H.shown;H=null}function S(_,p){const D=_.join(" ");if(a()){const De=H.text.match(/^\s*/)[0];H.text=D?De+D:"",H.shown=_.length,u(O.value.slice(0,H.start)+H.text);return}H&&v(p),D&&(H={start:O.value.length,text:h(O.value)+D,shown:_.length},u(O.value+H.text))}let w=0,y=null;const m=[];let M=null;function C(){w=Date.now()}function P(){C(),d()}function N(){return Date.now()-w{if(N())return V();const _=m.splice(0),p=y;y=null;for(const D of _)le(D);p!==null&&se(p)},Pr)}function J(_){if(N()||m.length){y=_,V();return}se(_)}function z(_){if(N()||m.length){m.push(_),y=null,V();return}le(_)}function se(_){const p=x(_);H&&!a()&&v(p),S(p.slice(at),p)}function le(_){const p=x(_);H&&!a()&&v(p),S(p.slice(at),p),H=null,at=0}function Ae(_){_&&(_.engine&&(g.value=_.engine),E.value=_.error||"",_.runtime&&(R.value=_.runtime),_.model&&(B.value=_.model),typeof _.recording=="boolean"&&(T.value=_.recording))}function Re(){clearTimeout(gt);try{ue==null||ue.close()}catch{}if(typeof window>"u"||typeof window.EventSource!="function"){E.value="The desktop engine is not running.";return}ue=new window.EventSource(o.value+"/events"),ue.onopen=()=>ct("events connected"),ue.onmessage=_=>{let p;try{p=JSON.parse(_.data)}catch{return}switch(p.type){case"status":Ae(p.status||p),p.engine==="error"&&Ee(p.error||"Speech engine error","error"),p.engine==="ready"&&me.value!=="error"&&Ee("");break;case"recording":T.value=!!p.recording,p.recording||(ne.value=0,At());break;case"partial":L.value+=p.text,J(L.value);break;case"final":L.value="",z(p.text);break;case"recovering":Ee(p.message,"warn");break;case"recovered":Ee(p.message,"ok"),setTimeout(()=>{me.value==="ok"&&Ee("")},4e3);break;case"devices":ln(p.devices);break;case"level":ne.value=Math.min(1,(p.peak||0)*3);break;case"warning":Ee(p.message,"warn");break;case"error":Ee(p.message,"error"),ct("engine error: "+p.message);break}},ue.onerror=()=>{g.value="offline",T.value=!1,ct("events disconnected; retrying in 3s");try{ue.close()}catch{}gt=setTimeout(Re,3e3)}}function At(){clearTimeout(M);const _=m.splice(0),p=y;y=null;for(const D of _)le(D);p!==null&&se(p),L.value="",H=null,at=0,at=0}async function Lt(_,p){const D=await fetch(o.value+_,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p||{})}),De=await D.json().catch(()=>({}));if(!D.ok)throw new Error(De.error||`HTTP ${D.status}`);return De}async function fe(){if(!Q.value){Q.value=!0;try{T.value?await Lt("/stop"):(Ee(""),j.value=null,Ae(await Lt("/start",{language:K.value,device:Y.value})))}catch(_){Ee(String(_.message||_),"error"),ct("toggle failed: "+_)}finally{Q.value=!1}}}const Oe=pt(()=>O.value.trim()?O.value.trim().split(/\s+/).length:0);async function cn(_,p){try{await navigator.clipboard.writeText(_)}catch{const D=document.createElement("textarea");D.value=_,document.body.appendChild(D),D.select();try{document.execCommand("copy")}catch{}D.remove()}we.value=p,setTimeout(()=>{we.value===p&&(we.value="")},1500)}function zn(){O.value.trim()&&!window.confirm("Clear the whole text box? This cannot be undone.")||(O.value="",L.value="",H=null,d())}const na=/\b([0-9a-f]{2}[:_]){5}[0-9a-f]{2}\b/gi;function sa(){return Ne.value.map((_,p)=>({mic:"mic "+(p+1),bus:_.bus,default:_.default,muted:_.muted,volume:_.volume,state:_.state}))}function ia(){const _=navigator.userAgent;return/firefox/i.test(_)?"Firefox":/edg\//i.test(_)?"Edge":/chrom/i.test(_)?"Chromium-based":/safari/i.test(_)?"Safari":"other"}async function ra(){let _="(unreachable)",p="(unreachable)";try{_=await(await fetch(o.value+"/log")).text()}catch{}try{p=JSON.stringify(await(await fetch(o.value+"/status")).json(),null,2)}catch{}const D=["// 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:O.value.length,engine:g.value,recording:T.value,language:K.value,device:Y.value?"chosen mic":"(system default)",browser:ia()},null,2),"== microphones ==",JSON.stringify({devices:sa(),offCards:ht.value.length,error:Et.value,lastTest:j.value},null,2),"== client log ==",Ye.value.join(` +**/let Os;const dr=typeof window<"u"&&window.trustedTypes;if(dr)try{Os=dr.createPolicy("vue",{createHTML:e=>e})}catch{}const pr=Os?e=>Os.createHTML(e):e=>e,Vl="http://www.w3.org/2000/svg",jl="http://www.w3.org/1998/Math/MathML",ct=typeof document<"u"?document:null,hr=ct&&ct.createElement("template"),Ll={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"?ct.createElementNS(Vl,e):t==="mathml"?ct.createElementNS(jl,e):n?ct.createElement(e,{is:n}):ct.createElement(e);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>ct.createTextNode(e),createComment:e=>ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ct.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{hr.innerHTML=pr(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=hr.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Hl=Symbol("_vtc");function $l(e,t,n){const s=e[Hl];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const gr=Symbol("_vod"),Ul=Symbol("_vsh"),Bl=Symbol(""),Kl=/(?:^|;)\s*display\s*:/;function Wl(e,t,n){const s=e.style,i=Z(n);let r=!1;if(n&&!i){if(t)if(Z(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&ln(s,l,"")}else for(const o in t)n[o]==null&&ln(s,o,"");for(const o in n){o==="display"&&(r=!0);const l=n[o];l!=null?Jl(e,o,!Z(t)&&t?t[o]:void 0,l)||ln(s,o,l):ln(s,o,"")}}else if(i){if(t!==n){const o=s[Bl];o&&(n+=";"+o),s.cssText=n,r=Kl.test(n)}}else t&&e.removeAttribute("style");gr in e&&(e[gr]=r?s.display:"",e[Ul]&&(s.display="none"))}const Bn=/\s*!important$/;function ln(e,t,n){if(M(n))n.forEach(s=>ln(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))Bn.test(n)?e.setProperty(t,n.replace(Bn,""),"important"):e.setProperty(t,n);else{const s=zl(e,t);Bn.test(n)?e.setProperty(Ee(s),n.replace(Bn,""),"important"):e[s]=n}}const mr=["Webkit","Moz","ms"],Ps={};function zl(e,t){const n=Ps[t];if(n)return n;let s=ve(t);if(s!=="filter"&&s in e)return Ps[t]=s;s=Ls(s);for(let i=0;iks||(Ql.then(()=>ks=0),ks=Date.now());function tc(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const i=n.value;if(M(i)){const r=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{r.call(s),s._stopped=!0};const o=i.slice(),l=[s];for(let a=0;ae.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,nc=(e,t,n,s,i,r)=>{const o=i==="svg";t==="class"?$l(e,s,o):t==="style"?Wl(e,n,s):dn(t)?pn(t)||ql(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):sc(e,t,s,o))?(_r(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&br(e,t,s,o,r,t!=="value")):e._isVueCE&&(ic(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Z(s)))?_r(e,ve(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),br(e,t,s,o))};function sc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&yr(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 yr(t)&&Z(n)?!1:t in e}function ic(e,t){const n=e._def.props;if(!n)return!1;const s=ve(t);return Array.isArray(n)?n.some(i=>ve(i)===s):Object.keys(n).some(i=>ve(i)===s)}const wr={};function rc(e,t,n){let s=Do(e,t);hn(s)&&(s=ie({},s,t));class i extends Ms{constructor(o){super(s,o,n)}}return i.def=s,i}const oc=typeof HTMLElement<"u"?HTMLElement:class{};class Ms extends oc{constructor(t,n={},s=Rr){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!==Rr?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 Ms){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,qt(()=>{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._resolved=!0,this._pendingResolve=void 0;const{props:r,styles:o}=s;let l;if(r&&!M(r))for(const a in r){const d=r[a];(d===Number||d&&d.type===Number)&&(a in this._props&&(this._props[a]=$s(this._props[a])),(l||(l=Object.create(null)))[ve(a)]=!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:()=>fi(n[s])})}_resolveProps(t){const{props:n}=t,s=M(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(ve))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):wr;const i=ve(t);n&&this._numberProps&&this._numberProps[i]&&(s=$s(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===wr?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(Ee(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ee(t),n+""):n||this.removeAttribute(Ee(t)),r&&r.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),fc(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=He(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,hn(o[0])?ie({detail:o},o[0]):{detail:o}))};s.emit=(r,...o)=>{i(r,o),Ee(r)!==r&&i(Ee(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 a=t.length-1;a>=0;a--){const d=document.createElement("style");i&&d.setAttribute("nonce",i),d.textContent=t[a],r.insertBefore(d,l||o),l=d,a===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{const t=e.props["onUpdate:modelValue"]||!1;return M(t)?n=>mn(t,n):t};function lc(e){e.target.composing=!0}function Sr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const At=Symbol("_assign"),Wn=Symbol("_initialValue");function Is(e,t,n){return t&&(e=e.trim()),n&&(e=vn(e)),e}const cc={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e.parentNode&&(e.type==="text"?e[Wn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Wn]=e.defaultValue.replace(/\r\n?/g,` +`))),e[At]=Kn(i);const r=s||i.props&&i.props.type==="number";Tt(e,t?"change":"input",o=>{o.target.composing||e[At](Is(e.value,n,r))}),(n||r)&&Tt(e,"change",()=>{e.value=Is(e.value,n,r)}),t||(Tt(e,"compositionstart",lc),Tt(e,"compositionend",Sr),Tt(e,"change",Sr))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const i=t??"",r=e[Wn];delete e[Wn],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[At](Is(e.value,n,s)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:i,number:r}},o){if(e[At]=Kn(o),e.composing)return;const l=(r||e.type==="number")&&!/^0\d/.test(e.value)?vn(e.value):e.value,a=t??"";if(l===a)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(s&&t===n||i&&e.value.trim()===a)||(e.value=a)}},Cr={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,Tt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?vn(zn(a)):zn(a)),r=e.multiple,o=r?bt(e._modelValue)?new Set(i):i:i[0],l=e._pendingValue=[r,r?M(o)?i.slice():i:o];try{e[At](o)}finally{qt(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[At]=Kn(s)},mounted(e,{value:t}){Tr(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[At]=Kn(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!ac(t,n[1],n[0]))&&Tr(e,t)}};function ac(e,t,n){if(!n||M(e))return pt(e,t);if(bt(e)){if(e.size!==t.length)return!1;for(const s of t)if(!e.has(s))return!1;return!0}return!1}function Tr(e,t){const n=e.multiple,s=M(t);if(!(n&&!s&&!bt(t))){for(let i=0,r=e.options.length;iString(d)===String(l)):o.selected=Wr(t,l)>-1}else o.selected=t.has(l);else if(pt(zn(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function zn(e){return"_value"in e?e._value:e.value}const uc=ie({patchProp:nc},Ll);let Ar;function Er(){return Ar||(Ar=hl(uc))}const fc=(...e)=>{Er().render(...e)},Rr=(...e)=>{const t=Er().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=pc(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,dc(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function dc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function pc(e){return Z(e)?document.querySelector(e):e}const hc=":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{min-height:100%;padding:10px 12px 12px;gap:8px;font-size:14px}.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{min-height:140px}.compact .draft{min-height:120px;resize:none;padding:10px 12px;font-size:15px;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:7px 14px;font-size:14px;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:3;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}}",gc=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},mc={key:0,class:"bar"},vc=["data-state"],bc=["aria-expanded"],_c=["aria-expanded"],xc={key:1,class:"top"},yc=["aria-expanded"],wc=["data-state"],Sc={key:2,class:"info"},Cc={key:3,class:"controls"},Tc=["disabled","aria-pressed","aria-label"],Ac={class:"mic-icon","aria-hidden":"true"},Ec={class:"meter","aria-hidden":"true"},Rc={class:"lang"},Oc=["disabled"],Pc=["value"],kc={key:4,class:"mics"},Mc={class:"mic-pick"},Ic=["disabled"],Nc={value:""},Dc=["value"],Fc=["disabled"],Vc=["disabled"],jc=["data-kind"],Lc={key:6,class:"notice","data-kind":"warn"},Hc={key:7,class:"notice","data-kind":"error"},$c={key:8,class:"notice","data-kind":"warn"},Uc={key:9,class:"hint"},Bc=["data-kind"],Kc={key:11,class:"notice","data-kind":"warn"},Wc={key:12,class:"notice","data-kind":"warn"},zc={class:"compose"},Jc={class:"hearing","aria-live":"polite"},Gc={class:"bottom"},qc=["disabled","aria-pressed","aria-label"],Xc={class:"mic-icon","aria-hidden":"true"},Yc=["disabled"],Zc=["disabled"],Qc={class:"count"},ea=["aria-expanded"],ta={key:13,class:"debug"},na={key:0},Or="rudder-voice:v1",Pr=700,sa=rc(gc(Object.assign({inheritAttrs:!1},{__name:"rudder-voice",props:{profileConfig:{type:String,default:""},variant:{type:String,default:""}},emits:["recording"],setup(e,{emit:t}){const n=e,s=lt(()=>n.variant==="widget"),i=t,r=lt(()=>{try{return n.profileConfig?JSON.parse(n.profileConfig):{}}catch{return{}}}),o=lt(()=>(r.value.apiBase||"/api/rudder").replace(/\/$/,"")),l=/^(localhost|127\.\d+\.\d+\.\d+|\[?::1\]?|tauri\.localhost)$/,a=lt(()=>{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(Or)||"{}")}catch{return{}}}function g(){try{localStorage.setItem(Or,JSON.stringify({language:H.value,device:j.value,draft:T.value}))}catch{}}const A=f(),E=Q("connecting"),$=Q(""),N=Q(""),ne=Q(""),k=Q(!1),V=Q(!1),H=Q(A.language||r.value.language||"en-US"),T=Q(typeof A.draft=="string"?A.draft:Array.isArray(A.lines)?A.lines.map(_=>_.text).join(" "):""),Y=Q(""),xe=Q(null),he=Q(0),Me=Q(""),at=Q("info"),Ae=Q(""),Ze=Q(!1),Ie=Q(!1),Ne=Q(!1),ut=Q([]),Qe=Q([]),re=Q([]),J=Q(""),j=Q(A.device||""),ye=Q(!1),ue=Q(null),ft={bluetooth:"🎧",usb:"πŸ”Œ",pci:"πŸ’»"};function De(_){const p=[(ft[_.bus]||"πŸŽ™")+" "+_.label];return _.muted?p.push("(muted)"):_.volume&&p.push("Β· "+_.volume),p.join(" ")}const Vt=lt(()=>Qe.value.find(_=>_.default)),cn=lt(()=>Qe.value.find(_=>_.id===j.value)||(j.value?null:Vt.value));function Jn(_){_&&(Qe.value=_.devices||[],re.value=_.offCards||[],J.value=_.error||"",j.value&&!Qe.value.some(p=>p.id===j.value)&&(k.value||(Ue("Your chosen microphone is no longer connected β€” using the system default instead.","warn"),j.value="",g())))}async function gt(){try{Jn(await(await fetch(o.value+"/devices")).json())}catch(_){$e("devices fetch failed: "+_)}}async function jt(){if(!(ye.value||k.value)){ye.value=!0,ue.value=null;try{ue.value=await Ce("/test",{device:j.value})}catch(_){ue.value={ok:!1,verdict:String(_.message||_)}}finally{ye.value=!1,he.value=0}}}let ge=null,Lt=null;function $e(_){ut.value.push(new Date().toISOString().slice(11,23)+" "+_),ut.value.length>200&&ut.value.splice(0,ut.value.length-200)}function Ue(_,p="info"){Me.value=_,at.value=p}let c=null,u=0;function h(){return!c||!T.value.endsWith(c.text)?!1:(c.start=T.value.length-c.text.length,!0)}function x(_){const p=xe.value,D=p&&p.getRootNode().activeElement===p,Fe=p?p.selectionStart:0,Ns=p?p.selectionEnd:0,fn=!p||p.scrollHeight-p.scrollTop-p.clientHeight<32;T.value=_,g(),qt(()=>{p&&(D&&p.setSelectionRange(Math.min(Fe,_.length),Math.min(Ns,_.length)),(fn||!D)&&(p.scrollTop=p.scrollHeight))})}const b=_=>!_||/\s$/.test(_)?"":" ",m=_=>(_||"").trim().split(/\s+/).filter(Boolean),S=_=>(_||"").toLowerCase().replace(/[^\p{L}\p{N}']/gu,"");function w(_){const p=m(c.text),D=p[p.length-1]||"",Fe=_[u+c.shown-1],Ns=c.shown>0&&Fe!==void 0&&S(Fe)!==S(D)&&S(Fe).startsWith(S(D)),fn=T.value.lastIndexOf(c.text);fn>=0&&(c.start=fn);const Gn=c.start+c.text.length,aa=fn>=0;if(Ns&&aa&&D){let Et=Gn-D.length;Et>c.start&&T.value[Et-1]===" "&&Et--;const ua=Gn-Et,vt=xe.value,fa=vt&&vt.getRootNode().activeElement===vt,Nr=qn=>qn>=Gn?qn-ua:qn>Et?Et:qn,da=vt?Nr(vt.selectionStart):0,pa=vt?Nr(vt.selectionEnd):0;T.value=T.value.slice(0,Et)+T.value.slice(Gn),fa&&qt(()=>vt.setSelectionRange(da,pa)),u+=c.shown-1}else u+=c.shown;c=null}function y(_,p){const D=_.join(" ");if(h()){const Fe=c.text.match(/^\s*/)[0];c.text=D?Fe+D:"",c.shown=_.length,x(T.value.slice(0,c.start)+c.text);return}c&&w(p),D&&(c={start:T.value.length,text:b(T.value)+D,shown:_.length},x(T.value+c.text))}let v=0,O=null;const C=[];let P=null;function I(){v=Date.now()}function L(){I(),g()}function W(){return Date.now()-v{if(W())return B();const _=C.splice(0),p=O;O=null;for(const D of _)Se(D);p!==null&&we(p)},Pr)}function se(_){if(W()||C.length){O=_,B();return}we(_)}function oe(_){if(W()||C.length){C.push(_),O=null,B();return}Se(_)}function we(_){const p=m(_);c&&!h()&&w(p),y(p.slice(u),p)}function Se(_){const p=m(_);c&&!h()&&w(p),y(p.slice(u),p),c=null,u=0}function mt(_){_&&(_.engine&&(E.value=_.engine),$.value=_.error||"",_.runtime&&(N.value=_.runtime),_.model&&(ne.value=_.model),typeof _.recording=="boolean"&&(k.value=_.recording))}function an(){clearTimeout(Lt);try{ge==null||ge.close()}catch{}if(typeof window>"u"||typeof window.EventSource!="function"){$.value="The desktop engine is not running.";return}ge=new window.EventSource(o.value+"/events"),ge.onopen=()=>$e("events connected"),ge.onmessage=_=>{let p;try{p=JSON.parse(_.data)}catch{return}switch(p.type){case"status":mt(p.status||p),p.engine==="error"&&Ue(p.error||"Speech engine error","error"),p.engine==="ready"&&at.value!=="error"&&Ue("");break;case"recording":k.value=!!p.recording,p.recording||(he.value=0,me());break;case"partial":Y.value+=p.text,se(Y.value);break;case"final":Y.value="",oe(p.text);break;case"recovering":Ue(p.message,"warn");break;case"recovered":Ue(p.message,"ok"),setTimeout(()=>{at.value==="ok"&&Ue("")},4e3);break;case"devices":Jn(p.devices);break;case"level":he.value=Math.min(1,(p.peak||0)*3);break;case"warning":Ue(p.message,"warn");break;case"error":Ue(p.message,"error"),$e("engine error: "+p.message);break}},ge.onerror=()=>{E.value="offline",k.value=!1,$e("events disconnected; retrying in 3s");try{ge.close()}catch{}Lt=setTimeout(an,3e3)}}function me(){clearTimeout(P);const _=C.splice(0),p=O;O=null;for(const D of _)Se(D);p!==null&&we(p),Y.value="",c=null,u=0,u=0}async function Ce(_,p){const D=await fetch(o.value+_,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p||{})}),Fe=await D.json().catch(()=>({}));if(!D.ok)throw new Error(Fe.error||`HTTP ${D.status}`);return Fe}async function Ht(){if(!V.value){V.value=!0;try{k.value?await Ce("/stop"):(Ue(""),ue.value=null,mt(await Ce("/start",{language:H.value,device:j.value})))}catch(_){Ue(String(_.message||_),"error"),$e("toggle failed: "+_)}finally{V.value=!1}}}const un=lt(()=>T.value.trim()?T.value.trim().split(/\s+/).length:0);async function kr(_,p){try{await navigator.clipboard.writeText(_)}catch{const D=document.createElement("textarea");D.value=_,document.body.appendChild(D),D.select();try{document.execCommand("copy")}catch{}D.remove()}Ae.value=p,setTimeout(()=>{Ae.value===p&&(Ae.value="")},1500)}function ia(){T.value.trim()&&!window.confirm("Clear the whole text box? This cannot be undone.")||(T.value="",Y.value="",c=null,g())}const ra=/\b([0-9a-f]{2}[:_]){5}[0-9a-f]{2}\b/gi;function oa(){return Qe.value.map((_,p)=>({mic:"mic "+(p+1),bus:_.bus,default:_.default,muted:_.muted,volume:_.volume,state:_.state}))}function la(){const _=navigator.userAgent;return/firefox/i.test(_)?"Firefox":/edg\//i.test(_)?"Edge":/chrom/i.test(_)?"Chromium-based":/safari/i.test(_)?"Safari":"other"}async function ca(){let _="(unreachable)",p="(unreachable)";try{_=await(await fetch(o.value+"/log")).text()}catch{}try{p=JSON.stringify(await(await fetch(o.value+"/status")).json(),null,2)}catch{}const D=["// 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:E.value,recording:k.value,language:H.value,device:j.value?"chosen mic":"(system default)",browser:la()},null,2),"== microphones ==",JSON.stringify({devices:oa(),offCards:re.value.length,error:J.value,lastTest:ue.value},null,2),"== client log ==",ut.value.join(` `),"== engine log ==",_].join(` -`).replace(na,"XX:XX:XX:XX:XX:XX");cn(D,"debug")}function Mr(_){_.ctrlKey&&_.shiftKey&&_.code==="Space"&&(_.preventDefault(),fe())}Ai(()=>{Re(),Wn(),window.addEventListener("keydown",Mr)}),Ri(()=>{clearTimeout(gt);try{ue==null||ue.close()}catch{}window.removeEventListener("keydown",Mr)}),On(T,_=>i("recording",_));const kr=pt(()=>({connecting:"Connecting…",starting:"Loading speech model… (about 20 s the first time)",ready:T.value?"Listening":"Ready",error:"Engine error",offline:"Engine offline"})[g.value]||g.value);return(_,p)=>(ie(),re("div",{class:Pt(["rudder",{rec:T.value,compact:s.value}])},[s.value?(ie(),re("header",gc,[p[12]||(p[12]=A("b",{class:"name"},"Rudder",-1)),A("div",{class:"status","data-state":g.value,role:"status"},[p[9]||(p[9]=A("span",{class:"dot","aria-hidden":"true"},null,-1)),Ge(X(kr.value),1)],8,mc),p[13]||(p[13]=A("span",{class:"spacer"},null,-1)),A("button",{class:"icon-btn","aria-expanded":Te.value,title:"Language and microphone","aria-label":"Language and microphone",onClick:p[0]||(p[0]=D=>Te.value=!Te.value)},[...p[10]||(p[10]=[A("svg",{viewBox:"0 0 24 24","aria-hidden":"true"},[A("path",{d:"M4 7h10M18 7h2M4 17h4M12 17h8"}),A("circle",{cx:"16",cy:"7",r:"2"}),A("circle",{cx:"10",cy:"17",r:"2"})],-1)])],8,vc),A("button",{class:"icon-btn","aria-expanded":ve.value,title:"What is Rudder?","aria-label":"What is Rudder?",onClick:p[1]||(p[1]=D=>ve.value=!ve.value)},[...p[11]||(p[11]=[A("svg",{viewBox:"0 0 24 24","aria-hidden":"true"},[A("circle",{cx:"12",cy:"12",r:"9"}),A("path",{d:"M12 11v6M12 7.5v.5"})],-1)])],8,bc)])):(ie(),re("header",_c,[p[15]||(p[15]=A("div",{class:"brand"},[A("span",{class:"logo","aria-hidden":"true"},"⎈"),A("div",null,[A("h1",null,"Rudder"),A("p",{class:"sub"},"Voice-to-text for vibe coders Β· private Β· runs on this computer Β· no internet")])],-1)),A("button",{class:"info-btn","aria-expanded":ve.value,title:"What is Rudder?","aria-label":"What is Rudder?",onClick:p[2]||(p[2]=D=>ve.value=!ve.value)},"β“˜",8,xc),A("div",{class:"status","data-state":g.value,role:"status"},[p[14]||(p[14]=A("span",{class:"dot","aria-hidden":"true"},null,-1)),Ge(X(kr.value),1)],8,yc)])),ve.value?(ie(),re("section",wc,[...p[16]||(p[16]=[yl('

What is Rudder?

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.

  • Streaming. 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.
  • Runs on your CPU. No graphics card needed. The model uses about 1 GB of memory and keeps up with normal speech on an ordinary laptop processor.
  • Private and offline. Your voice never leaves this computer. No account, no cloud, no telemetry β€” checked with a network tracer: zero connections while transcribing.
  • The model. NVIDIA Nemotron 3.5 ASR Streaming (0.6B), run by NVIDIA's open-source NeMo-Speech.cpp. It adds punctuation and capital letters by itself.
  • Why it lives in dx-maps. 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.

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.

',4)])])):xe("",!0),!s.value||Te.value?(ie(),re("section",Sc,[A("button",{class:Pt(["mic",{on:T.value}]),disabled:Q.value||g.value!=="ready","aria-pressed":T.value,"aria-label":T.value?"Stop recording":"Start recording",onClick:fe},[A("span",Tc,X(T.value?"β– ":"●"),1),Ge(" "+X(T.value?"Stop":"Record"),1)],10,Cc),A("div",Ec,[A("div",{class:"fill",style:vn({width:(ne.value*100).toFixed(0)+"%"})},null,4)]),A("label",Ac,[p[17]||(p[17]=A("span",null,"Language",-1)),ms(A("select",{"onUpdate:modelValue":p[3]||(p[3]=D=>K.value=D),disabled:T.value,onChange:d},[(ie(),re(Ie,null,Pi(l,([D,De])=>A("option",{key:D,value:D},X(De),9,Oc)),64))],40,Rc),[[Cr,K.value]])])])):xe("",!0),!s.value||Te.value?(ie(),re("section",Pc,[A("label",Mc,[p[18]||(p[18]=A("span",null,"Microphone",-1)),ms(A("select",{"onUpdate:modelValue":p[4]||(p[4]=D=>Y.value=D),disabled:T.value||W.value,onChange:p[5]||(p[5]=D=>{d(),j.value=null})},[A("option",Ic,"System default"+X(He.value?" β€” "+He.value.label:""),1),(ie(!0),re(Ie,null,Pi(Ne.value,D=>(ie(),re("option",{key:D.id,value:D.id},X(Vt(D)),9,Nc))),128))],40,kc),[[Cr,Y.value]])]),A("button",{class:"small",disabled:W.value||T.value||g.value==="offline",onClick:Is},X(W.value?"Testing… speak now":"Test mic"),9,Dc),A("button",{class:"small ghost",title:"Look for microphones again","aria-label":"Look for microphones again",disabled:T.value,onClick:Wn},"↻",8,Fc)])):xe("",!0),j.value?(ie(),re("p",{key:5,class:"notice","data-kind":j.value.ok?j.value.peak<.01?"warn":"ok":"error"},X(j.value.ok?"βœ“ ":"βœ— ")+X(j.value.verdict),9,jc)):xe("",!0),Se.value&&Se.value.muted?(ie(),re("p",Vc,"β€œ"+X(Se.value.label)+"” is muted in your system sound settings β€” Rudder won't hear anything until it's unmuted.",1)):xe("",!0),Et.value?(ie(),re("p",Lc,X(Et.value),1)):!Ne.value.length&&g.value!=="offline"?(ie(),re("p",Hc,"No microphone found. Connect a headset or turn on your computer's microphone in Sound settings.")):xe("",!0),ht.value.length?(ie(),re("p",$c,"Also available but switched off in Sound settings: "+X(ht.value.join(", "))+". Turn it on there to use it here.",1)):xe("",!0),ye.value?(ie(),re("p",{key:10,class:"notice","data-kind":me.value},X(ye.value),9,Uc)):g.value==="offline"?(ie(),re("p",Bc,[p[19]||(p[19]=Ge(" The local speech engine isn't reachable at ",-1)),A("code",null,X(o.value),1),p[20]||(p[20]=Ge(". In the Plugin Studio it starts with ",-1)),p[21]||(p[21]=A("code",null,"bun run dev",-1)),p[22]||(p[22]=Ge(" once built: ",-1)),p[23]||(p[23]=A("code",null,"cd backend/rudder-engine && go build -o ../bin/rudder-engine .",-1))])):xe("",!0),A("section",Kc,[ms(A("textarea",{ref_key:"box",ref:k,"onUpdate:modelValue":p[6]||(p[6]=D=>O.value=D),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:P,onKeydown:C},null,544),[[lc,O.value]]),A("p",Wc,[T.value?(ie(),re(Ie,{key:0},[p[24]||(p[24]=A("span",{class:"tag"},"listening",-1)),p[25]||(p[25]=Ge(" words appear at the end of the box as you speak β€” keep typing or pasting anywhere",-1))],64)):xe("",!0)])]),A("footer",zc,[s.value?(ie(),re("button",{key:0,class:Pt(["mic sm",{on:T.value}]),disabled:Q.value||g.value!=="ready","aria-pressed":T.value,"aria-label":T.value?"Stop recording":"Start recording",onClick:fe},[A("span",Gc,X(T.value?"β– ":"●"),1),Ge(" "+X(T.value?"Stop":"Record"),1)],10,Jc)):xe("",!0),A("button",{disabled:!O.value.trim(),onClick:p[7]||(p[7]=D=>cn(O.value,"all"))},X(we.value==="all"?"Copied βœ“":"Copy all"),9,qc),!s.value||Te.value?(ie(),re("button",{key:1,disabled:!O.value.trim()||T.value,onClick:zn},"Clear",8,Xc)):xe("",!0),A("span",Yc,X(Oe.value)+" "+X(Oe.value===1?"word":"words"),1),p[26]||(p[26]=A("span",{class:"spacer"},null,-1)),!s.value||Te.value?(ie(),re("button",{key:2,class:"ghost","aria-expanded":ot.value,onClick:p[8]||(p[8]=D=>ot.value=!ot.value)},"🐞 Debug",8,Zc)):xe("",!0)]),ot.value?(ie(),re("section",Qc,[A("dl",null,[p[27]||(p[27]=A("dt",null,"API",-1)),A("dd",null,[A("code",null,X(o.value),1)]),p[28]||(p[28]=A("dt",null,"Runtime",-1)),A("dd",null,X(R.value||"β€”"),1),p[29]||(p[29]=A("dt",null,"Model",-1)),A("dd",null,X(B.value||"β€”"),1),p[30]||(p[30]=A("dt",null,"Engine",-1)),A("dd",null,[Ge(X(g.value),1),E.value?(ie(),re("span",ea," β€” "+X(E.value),1)):xe("",!0)])]),A("button",{onClick:ra},X(we.value==="debug"?"Copied βœ“":"Copy debug report for an agent"),1)])):xe("",!0)],2))}}),[["styles",[pc]]]));typeof customElements<"u"&&(customElements.get("rudder-voice")||customElements.define("rudder-voice",ta))})(); +`).replace(ra,"XX:XX:XX:XX:XX:XX");kr(D,"debug")}function Mr(_){_.ctrlKey&&_.shiftKey&&_.code==="Space"&&(_.preventDefault(),Ht())}Ei(()=>{an(),gt(),window.addEventListener("keydown",Mr)}),Ri(()=>{clearTimeout(Lt);try{ge==null||ge.close()}catch{}window.removeEventListener("keydown",Mr)}),kn(k,_=>i("recording",_));const Ir=lt(()=>({connecting:"Connecting…",starting:"Loading speech model… (about 20 s the first time)",ready:k.value?"Listening":"Ready",error:"Engine error",offline:a.value?"Engine offline":"Runs on your computer"})[E.value]||E.value);return(_,p)=>(ee(),te("div",{class:Ot(["rudder",{rec:k.value,compact:s.value}])},[s.value?(ee(),te("header",mc,[p[12]||(p[12]=R("b",{class:"name"},"Rudder",-1)),R("div",{class:"status","data-state":E.value,role:"status"},[p[9]||(p[9]=R("span",{class:"dot","aria-hidden":"true"},null,-1)),ke(q(Ir.value),1)],8,vc),p[13]||(p[13]=R("span",{class:"spacer"},null,-1)),R("button",{class:"icon-btn","aria-expanded":Ne.value,title:"Language and microphone","aria-label":"Language and microphone",onClick:p[0]||(p[0]=D=>Ne.value=!Ne.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,bc),R("button",{class:"icon-btn","aria-expanded":Ie.value,title:"What is Rudder?","aria-label":"What is Rudder?",onClick:p[1]||(p[1]=D=>Ie.value=!Ie.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,_c)])):(ee(),te("header",xc,[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":Ie.value,title:"What is Rudder?","aria-label":"What is Rudder?",onClick:p[2]||(p[2]=D=>Ie.value=!Ie.value)},"β“˜",8,yc),R("div",{class:"status","data-state":E.value,role:"status"},[p[14]||(p[14]=R("span",{class:"dot","aria-hidden":"true"},null,-1)),ke(q(Ir.value),1)],8,wc)])),Ie.value?(ee(),te("section",Sc,[...p[16]||(p[16]=[wl('

What is Rudder?

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.

  • Streaming. 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.
  • Runs on your CPU. No graphics card needed. The model uses about 1 GB of memory and keeps up with normal speech on an ordinary laptop processor.
  • Private and offline. Your voice never leaves this computer. No account, no cloud, no telemetry β€” checked with a network tracer: zero connections while transcribing.
  • The model. NVIDIA Nemotron 3.5 ASR Streaming (0.6B), run by NVIDIA's open-source NeMo-Speech.cpp. It adds punctuation and capital letters by itself.
  • Why it lives in dx-maps. 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.

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.

',4)])])):_e("",!0),!s.value||Ne.value?(ee(),te("section",Cc,[R("button",{class:Ot(["mic",{on:k.value}]),disabled:V.value||E.value!=="ready","aria-pressed":k.value,"aria-label":k.value?"Stop recording":"Start recording",onClick:Ht},[R("span",Ac,q(k.value?"β– ":"●"),1),ke(" "+q(k.value?"Stop":"Record"),1)],10,Tc),R("div",Ec,[R("div",{class:"fill",style:_n({width:(he.value*100).toFixed(0)+"%"})},null,4)]),R("label",Rc,[p[17]||(p[17]=R("span",null,"Language",-1)),vs(R("select",{"onUpdate:modelValue":p[3]||(p[3]=D=>H.value=D),disabled:k.value,onChange:g},[(ee(),te(Pe,null,Pi(d,([D,Fe])=>R("option",{key:D,value:D},q(Fe),9,Pc)),64))],40,Oc),[[Cr,H.value]])])])):_e("",!0),!s.value||Ne.value?(ee(),te("section",kc,[R("label",Mc,[p[18]||(p[18]=R("span",null,"Microphone",-1)),vs(R("select",{"onUpdate:modelValue":p[4]||(p[4]=D=>j.value=D),disabled:k.value||ye.value,onChange:p[5]||(p[5]=D=>{g(),ue.value=null})},[R("option",Nc,"System default"+q(Vt.value?" β€” "+Vt.value.label:""),1),(ee(!0),te(Pe,null,Pi(Qe.value,D=>(ee(),te("option",{key:D.id,value:D.id},q(De(D)),9,Dc))),128))],40,Ic),[[Cr,j.value]])]),R("button",{class:"small",disabled:ye.value||k.value||E.value==="offline",onClick:jt},q(ye.value?"Testing… speak now":"Test mic"),9,Fc),R("button",{class:"small ghost",title:"Look for microphones again","aria-label":"Look for microphones again",disabled:k.value,onClick:gt},"↻",8,Vc)])):_e("",!0),ue.value?(ee(),te("p",{key:5,class:"notice","data-kind":ue.value.ok?ue.value.peak<.01?"warn":"ok":"error"},q(ue.value.ok?"βœ“ ":"βœ— ")+q(ue.value.verdict),9,jc)):_e("",!0),cn.value&&cn.value.muted?(ee(),te("p",Lc,"β€œ"+q(cn.value.label)+"” is muted in your system sound settings β€” Rudder won't hear anything until it's unmuted.",1)):_e("",!0),J.value?(ee(),te("p",Hc,q(J.value),1)):!Qe.value.length&&E.value!=="offline"?(ee(),te("p",$c,"No microphone found. Connect a headset or turn on your computer's microphone in Sound settings.")):_e("",!0),re.value.length?(ee(),te("p",Uc,"Also available but switched off in Sound settings: "+q(re.value.join(", "))+". Turn it on there to use it here.",1)):_e("",!0),Me.value?(ee(),te("p",{key:10,class:"notice","data-kind":at.value},q(Me.value),9,Bc)):E.value==="offline"&&!a.value?(ee(),te("p",Kc,[...p[19]||(p[19]=[ke(" 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),ke(") or use the Rudder desktop app. ",-1)])])):E.value==="offline"?(ee(),te("p",Wc,[p[20]||(p[20]=ke(" The local speech engine isn't reachable at ",-1)),R("code",null,q(o.value),1),p[21]||(p[21]=ke(". In the Plugin Studio it starts with ",-1)),p[22]||(p[22]=R("code",null,"bun run dev",-1)),p[23]||(p[23]=ke(" once built: ",-1)),p[24]||(p[24]=R("code",null,"cd backend/rudder-engine && go build -o ../bin/rudder-engine .",-1))])):_e("",!0),R("section",zc,[vs(R("textarea",{ref_key:"box",ref:xe,"onUpdate:modelValue":p[6]||(p[6]=D=>T.value=D),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:L,onKeydown:I},null,544),[[cc,T.value]]),R("p",Jc,[k.value?(ee(),te(Pe,{key:0},[p[25]||(p[25]=R("span",{class:"tag"},"listening",-1)),p[26]||(p[26]=ke(" words appear at the end of the box as you speak β€” keep typing or pasting anywhere",-1))],64)):_e("",!0)])]),R("footer",Gc,[s.value?(ee(),te("button",{key:0,class:Ot(["mic sm",{on:k.value}]),disabled:V.value||E.value!=="ready","aria-pressed":k.value,"aria-label":k.value?"Stop recording":"Start recording",onClick:Ht},[R("span",Xc,q(k.value?"β– ":"●"),1),ke(" "+q(k.value?"Stop":"Record"),1)],10,qc)):_e("",!0),R("button",{disabled:!T.value.trim(),onClick:p[7]||(p[7]=D=>kr(T.value,"all"))},q(Ae.value==="all"?"Copied βœ“":"Copy all"),9,Yc),!s.value||Ne.value?(ee(),te("button",{key:1,disabled:!T.value.trim()||k.value,onClick:ia},"Clear",8,Zc)):_e("",!0),R("span",Qc,q(un.value)+" "+q(un.value===1?"word":"words"),1),p[27]||(p[27]=R("span",{class:"spacer"},null,-1)),!s.value||Ne.value?(ee(),te("button",{key:2,class:"ghost","aria-expanded":Ze.value,onClick:p[8]||(p[8]=D=>Ze.value=!Ze.value)},"🐞 Debug",8,ea)):_e("",!0)]),Ze.value?(ee(),te("section",ta,[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(N.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,[ke(q(E.value),1),$.value?(ee(),te("span",na," β€” "+q($.value),1)):_e("",!0)])]),R("button",{onClick:ca},q(Ae.value==="debug"?"Copied βœ“":"Copy debug report for an agent"),1)])):_e("",!0)],2))}}),[["styles",[hc]]]));typeof customElements<"u"&&(customElements.get("rudder-voice")||customElements.define("rudder-voice",sa))})(); diff --git a/public/dx-maps/rudder-voice/rudder-voice/index.html b/public/dx-maps/rudder-voice/rudder-voice/index.html index 7b8e0cc28..31e58b5e7 100644 --- a/public/dx-maps/rudder-voice/rudder-voice/index.html +++ b/public/dx-maps/rudder-voice/rudder-voice/index.html @@ -32,7 +32,7 @@ - +