@johnnycubides/catalejo-vue3-desktop-v2 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -26,9 +26,17 @@ defaultPaths.push("work")
26
26
  console.log("plugins to load");
27
27
  export { plugins, defaultPaths }
28
28
  ```
29
- 5. Ejecutar el comando `make build` y verificando que la carpeta plugins solo contenga
30
- el archivo `plugins.js` y `plugins.d.ts`
31
- 6. Ejecute el comando `make publish` y realice la autenticación de dos pasos.
29
+ 5. Subir la versión en `package.json` (por ejemplo `npm version 0.5.2 --no-git-tag-version`)
30
+ y hacer commit.
31
+ 6. Opcional: `make publish-dry` muestra qué se subiría a npm, sin publicar.
32
+ 7. Ejecute el comando `make publish` y realice la autenticación de dos pasos.
33
+
34
+ `make publish` (y `make publish-dry`) primero corre `make check-publish`
35
+ (`scripts/check-publish.sh`), que **no deja publicar** si `plugins/` tiene algo
36
+ más que `plugins.js` y `plugins.d.ts` (por ejemplo el enlace de `make dev-plugin`),
37
+ si `plugins/plugins.js` tiene plugins activos, o si en `vite.config.ts` la línea
38
+ `external: ['../plugins/plugins.js']` está comentada. Avisa si hay cambios sin
39
+ commit. `make help` lista todos los comandos.
32
40
 
33
41
  Observación: No suba cambios de la carpeta plugins ni de "external" de `./vite.config.ts`
34
42
 
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @vue/shared v3.5.12
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **//*! #__NO_SIDE_EFFECTS__ */function Zn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const W={},dt=[],Le=()=>{},Li=()=>!1,fn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),es=e=>e.startsWith("onUpdate:"),se=Object.assign,ts=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ni=Object.prototype.hasOwnProperty,B=(e,t)=>Ni.call(e,t),R=Array.isArray,ht=e=>cn(e)==="[object Map]",cr=e=>cn(e)==="[object Set]",L=e=>typeof e=="function",X=e=>typeof e=="string",Be=e=>typeof e=="symbol",z=e=>e!==null&&typeof e=="object",ur=e=>(z(e)||L(e))&&L(e.then)&&L(e.catch),ar=Object.prototype.toString,cn=e=>ar.call(e),Di=e=>cn(e).slice(8,-1),dr=e=>cn(e)==="[object Object]",ns=e=>X(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Et=Zn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),un=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Hi=/-(\w)/g,we=un(e=>e.replace(Hi,(t,n)=>n?n.toUpperCase():"")),$i=/\B([A-Z])/g,Ye=un(e=>e.replace($i,"-$1").toLowerCase()),an=un(e=>e.charAt(0).toUpperCase()+e.slice(1)),Jt=un(e=>e?`on${an(e)}`:""),qe=(e,t)=>!Object.is(e,t),Yt=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},hr=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Hn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ji=e=>{const t=X(e)?Number(e):NaN;return isNaN(t)?e:t};let ws;const dn=()=>ws||(ws=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hn(e){if(R(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=X(s)?Ui(s):hn(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(X(e)||z(e))return e}const Bi=/;(?![^(]*\))/g,Vi=/:([^]+)/,Ki=/\/\*[^]*?\*\//g;function Ui(e){const t={};return e.replace(Ki,"").split(Bi).forEach(n=>{if(n){const s=n.split(Vi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function pn(e){let t="";if(X(e))t=e;else if(R(e))for(let n=0;n<e.length;n++){const s=pn(e[n]);s&&(t+=s+" ")}else if(z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function mf(e){if(!e)return null;let{class:t,style:n}=e;return t&&!X(t)&&(e.class=pn(t)),n&&(e.style=hn(n)),e}const Wi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Gi=Zn(Wi);function pr(e){return!!e||e===""}const gr=e=>!!(e&&e.__v_isRef===!0),ki=e=>X(e)?e:e==null?"":R(e)||z(e)&&(e.toString===ar||!L(e.toString))?gr(e)?ki(e.value):JSON.stringify(e,mr,2):String(e),mr=(e,t)=>gr(t)?mr(e,t.value):ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Tn(s,i)+" =>"]=r,n),{})}:cr(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Tn(n))}:Be(t)?Tn(t):z(t)&&!R(t)&&!dr(t)?String(t):t,Tn=(e,t="")=>{var n;return Be(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
+ * @vue/reactivity v3.5.12
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let xe;class qi{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=xe,!t&&xe&&(this.index=(xe.scopes||(xe.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=xe;try{return xe=this,t()}finally{xe=n}}}on(){xe=this}off(){xe=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Ji(){return xe}let Y;const Sn=new WeakSet;class _r{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,xe&&xe.active&&xe.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Sn.has(this)&&(Sn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||yr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Es(this),vr(this);const t=Y,n=Ae;Y=this,Ae=!0;try{return this.fn()}finally{xr(this),Y=t,Ae=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)is(t);this.deps=this.depsTail=void 0,Es(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Sn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$n(this)&&this.run()}get dirty(){return $n(this)}}let br=0,At,Mt;function yr(e,t=!1){if(e.flags|=8,t){e.next=Mt,Mt=e;return}e.next=At,At=e}function ss(){br++}function rs(){if(--br>0)return;if(Mt){let t=Mt;for(Mt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;At;){let t=At;for(At=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 vr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function xr(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),is(s),Yi(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function $n(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Cr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Cr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Rt))return;e.globalVersion=Rt;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!$n(e)){e.flags&=-3;return}const n=Y,s=Ae;Y=e,Ae=!0;try{vr(e);const r=e.fn(e._value);(t.version===0||qe(r,e._value))&&(e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Y=n,Ae=s,xr(e),e.flags&=-3}}function is(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)is(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Yi(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ae=!0;const Tr=[];function ze(){Tr.push(Ae),Ae=!1}function Qe(){const e=Tr.pop();Ae=e===void 0?!0:e}function Es(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Y;Y=void 0;try{t()}finally{Y=n}}}let Rt=0;class zi{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}track(t){if(!Y||!Ae||Y===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Y)n=this.activeLink=new zi(Y,this),Y.deps?(n.prevDep=Y.depsTail,Y.depsTail.nextDep=n,Y.depsTail=n):Y.deps=Y.depsTail=n,Sr(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=Y.depsTail,n.nextDep=void 0,Y.depsTail.nextDep=n,Y.depsTail=n,Y.deps===n&&(Y.deps=s)}return n}trigger(t){this.version++,Rt++,this.notify(t)}notify(t){ss();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{rs()}}}function Sr(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)Sr(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const jn=new WeakMap,ot=Symbol(""),Bn=Symbol(""),Ft=Symbol("");function ce(e,t,n){if(Ae&&Y){let s=jn.get(e);s||jn.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new os),r.map=s,r.key=n),r.track()}}function $e(e,t,n,s,r,i){const o=jn.get(e);if(!o){Rt++;return}const l=f=>{f&&f.trigger()};if(ss(),t==="clear")o.forEach(l);else{const f=R(e),d=f&&ns(n);if(f&&n==="length"){const u=Number(s);o.forEach((h,g)=>{(g==="length"||g===Ft||!Be(g)&&g>=u)&&l(h)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),d&&l(o.get(Ft)),t){case"add":f?d&&l(o.get("length")):(l(o.get(ot)),ht(e)&&l(o.get(Bn)));break;case"delete":f||(l(o.get(ot)),ht(e)&&l(o.get(Bn)));break;case"set":ht(e)&&l(o.get(ot));break}}rs()}function ct(e){const t=$(e);return t===e?t:(ce(t,"iterate",Ft),Se(e)?t:t.map(ue))}function gn(e){return ce(e=$(e),"iterate",Ft),e}const Qi={__proto__:null,[Symbol.iterator](){return wn(this,Symbol.iterator,ue)},concat(...e){return ct(this).concat(...e.map(t=>R(t)?ct(t):t))},entries(){return wn(this,"entries",e=>(e[1]=ue(e[1]),e))},every(e,t){return Ne(this,"every",e,t,void 0,arguments)},filter(e,t){return Ne(this,"filter",e,t,n=>n.map(ue),arguments)},find(e,t){return Ne(this,"find",e,t,ue,arguments)},findIndex(e,t){return Ne(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ne(this,"findLast",e,t,ue,arguments)},findLastIndex(e,t){return Ne(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ne(this,"forEach",e,t,void 0,arguments)},includes(...e){return En(this,"includes",e)},indexOf(...e){return En(this,"indexOf",e)},join(e){return ct(this).join(e)},lastIndexOf(...e){return En(this,"lastIndexOf",e)},map(e,t){return Ne(this,"map",e,t,void 0,arguments)},pop(){return Ct(this,"pop")},push(...e){return Ct(this,"push",e)},reduce(e,...t){return As(this,"reduce",e,t)},reduceRight(e,...t){return As(this,"reduceRight",e,t)},shift(){return Ct(this,"shift")},some(e,t){return Ne(this,"some",e,t,void 0,arguments)},splice(...e){return Ct(this,"splice",e)},toReversed(){return ct(this).toReversed()},toSorted(e){return ct(this).toSorted(e)},toSpliced(...e){return ct(this).toSpliced(...e)},unshift(...e){return Ct(this,"unshift",e)},values(){return wn(this,"values",ue)}};function wn(e,t,n){const s=gn(e),r=s[t]();return s!==e&&!Se(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.value&&(i.value=n(i.value)),i}),r}const Xi=Array.prototype;function Ne(e,t,n,s,r,i){const o=gn(e),l=o!==e&&!Se(e),f=o[t];if(f!==Xi[t]){const h=f.apply(e,i);return l?ue(h):h}let d=n;o!==e&&(l?d=function(h,g){return n.call(this,ue(h),g,e)}:n.length>2&&(d=function(h,g){return n.call(this,h,g,e)}));const u=f.call(o,d,s);return l&&r?r(u):u}function As(e,t,n,s){const r=gn(e);let i=n;return r!==e&&(Se(e)?n.length>3&&(i=function(o,l,f){return n.call(this,o,l,f,e)}):i=function(o,l,f){return n.call(this,o,ue(l),f,e)}),r[t](i,...s)}function En(e,t,n){const s=$(e);ce(s,"iterate",Ft);const r=s[t](...n);return(r===-1||r===!1)&&us(n[0])?(n[0]=$(n[0]),s[t](...n)):r}function Ct(e,t,n=[]){ze(),ss();const s=$(e)[t].apply(e,n);return rs(),Qe(),s}const Zi=Zn("__proto__,__v_isRef,__isVue"),wr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Be));function eo(e){Be(e)||(e=String(e));const t=$(this);return ce(t,"has",e),t.hasOwnProperty(e)}class Er{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?uo:Pr:i?Or:Mr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=R(t);if(!r){let f;if(o&&(f=Qi[n]))return f;if(n==="hasOwnProperty")return eo}const l=Reflect.get(t,n,ae(t)?t:s);return(Be(n)?wr.has(n):Zi(n))||(r||ce(t,"get",n),i)?l:ae(l)?o&&ns(n)?l:l.value:z(l)?r?Ir(l):fs(l):l}}class Ar extends Er{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const f=lt(i);if(!Se(s)&&!lt(s)&&(i=$(i),s=$(s)),!R(t)&&ae(i)&&!ae(s))return f?!1:(i.value=s,!0)}const o=R(t)&&ns(n)?Number(n)<t.length:B(t,n),l=Reflect.set(t,n,s,ae(t)?t:r);return t===$(r)&&(o?qe(s,i)&&$e(t,"set",n,s):$e(t,"add",n,s)),l}deleteProperty(t,n){const s=B(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&$e(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Be(n)||!wr.has(n))&&ce(t,"has",n),s}ownKeys(t){return ce(t,"iterate",R(t)?"length":ot),Reflect.ownKeys(t)}}class to extends Er{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const no=new Ar,so=new to,ro=new Ar(!0);const Vn=e=>e,Ut=e=>Reflect.getPrototypeOf(e);function io(e,t,n){return function(...s){const r=this.__v_raw,i=$(r),o=ht(i),l=e==="entries"||e===Symbol.iterator&&o,f=e==="keys"&&o,d=r[e](...s),u=n?Vn:t?Kn:ue;return!t&&ce(i,"iterate",f?Bn:ot),{next(){const{value:h,done:g}=d.next();return g?{value:h,done:g}:{value:l?[u(h[0]),u(h[1])]:u(h),done:g}},[Symbol.iterator](){return this}}}}function Wt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function oo(e,t){const n={get(r){const i=this.__v_raw,o=$(i),l=$(r);e||(qe(r,l)&&ce(o,"get",r),ce(o,"get",l));const{has:f}=Ut(o),d=t?Vn:e?Kn:ue;if(f.call(o,r))return d(i.get(r));if(f.call(o,l))return d(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&ce($(r),"iterate",ot),Reflect.get(r,"size",r)},has(r){const i=this.__v_raw,o=$(i),l=$(r);return e||(qe(r,l)&&ce(o,"has",r),ce(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,f=$(l),d=t?Vn:e?Kn:ue;return!e&&ce(f,"iterate",ot),l.forEach((u,h)=>r.call(i,d(u),d(h),o))}};return se(n,e?{add:Wt("add"),set:Wt("set"),delete:Wt("delete"),clear:Wt("clear")}:{add(r){!t&&!Se(r)&&!lt(r)&&(r=$(r));const i=$(this);return Ut(i).has.call(i,r)||(i.add(r),$e(i,"add",r,r)),this},set(r,i){!t&&!Se(i)&&!lt(i)&&(i=$(i));const o=$(this),{has:l,get:f}=Ut(o);let d=l.call(o,r);d||(r=$(r),d=l.call(o,r));const u=f.call(o,r);return o.set(r,i),d?qe(i,u)&&$e(o,"set",r,i):$e(o,"add",r,i),this},delete(r){const i=$(this),{has:o,get:l}=Ut(i);let f=o.call(i,r);f||(r=$(r),f=o.call(i,r)),l&&l.call(i,r);const d=i.delete(r);return f&&$e(i,"delete",r,void 0),d},clear(){const r=$(this),i=r.size!==0,o=r.clear();return i&&$e(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=io(r,e,t)}),n}function ls(e,t){const n=oo(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(B(n,r)&&r in s?n:s,r,i)}const lo={get:ls(!1,!1)},fo={get:ls(!1,!0)},co={get:ls(!0,!1)};const Mr=new WeakMap,Or=new WeakMap,Pr=new WeakMap,uo=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 ho(e){return e.__v_skip||!Object.isExtensible(e)?0:ao(Di(e))}function fs(e){return lt(e)?e:cs(e,!1,no,lo,Mr)}function po(e){return cs(e,!1,ro,fo,Or)}function Ir(e){return cs(e,!0,so,co,Pr)}function cs(e,t,n,s,r){if(!z(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=ho(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function pt(e){return lt(e)?pt(e.__v_raw):!!(e&&e.__v_isReactive)}function lt(e){return!!(e&&e.__v_isReadonly)}function Se(e){return!!(e&&e.__v_isShallow)}function us(e){return e?!!e.__v_raw:!1}function $(e){const t=e&&e.__v_raw;return t?$(t):e}function go(e){return!B(e,"__v_skip")&&Object.isExtensible(e)&&hr(e,"__v_skip",!0),e}const ue=e=>z(e)?fs(e):e,Kn=e=>z(e)?Ir(e):e;function ae(e){return e?e.__v_isRef===!0:!1}function _f(e){return Rr(e,!1)}function bf(e){return Rr(e,!0)}function Rr(e,t){return ae(e)?e:new mo(e,t)}class mo{constructor(t,n){this.dep=new os,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:$(t),this._value=n?t:ue(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Se(t)||lt(t);t=s?t:$(t),qe(t,n)&&(this._rawValue=t,this._value=s?t:ue(t),this.dep.trigger())}}function _o(e){return ae(e)?e.value:e}const bo={get:(e,t,n)=>t==="__v_raw"?e:_o(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ae(r)&&!ae(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Fr(e){return pt(e)?e:new Proxy(e,bo)}class yo{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=Rt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Y!==this)return yr(this,!0),!0}get value(){const t=this.dep.track();return Cr(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,r;return L(e)?s=e:(s=e.get,r=e.set),new yo(s,r,n)}const Gt={},en=new WeakMap;let rt;function xo(e,t=!1,n=rt){if(n){let s=en.get(n);s||en.set(n,s=[]),s.push(e)}}function Co(e,t,n=W){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:f}=n,d=O=>r?O:Se(O)||r===!1||r===0?je(O,1):je(O);let u,h,g,v,w=!1,E=!1;if(ae(e)?(h=()=>e.value,w=Se(e)):pt(e)?(h=()=>d(e),w=!0):R(e)?(E=!0,w=e.some(O=>pt(O)||Se(O)),h=()=>e.map(O=>{if(ae(O))return O.value;if(pt(O))return d(O);if(L(O))return f?f(O,2):O()})):L(e)?t?h=f?()=>f(e,2):e:h=()=>{if(g){ze();try{g()}finally{Qe()}}const O=rt;rt=u;try{return f?f(e,3,[v]):e(v)}finally{rt=O}}:h=Le,t&&r){const O=h,j=r===!0?1/0:r;h=()=>je(O(),j)}const ee=Ji(),N=()=>{u.stop(),ee&&ts(ee.effects,u)};if(i&&t){const O=t;t=(...j)=>{O(...j),N()}}let V=E?new Array(e.length).fill(Gt):Gt;const K=O=>{if(!(!(u.flags&1)||!u.dirty&&!O))if(t){const j=u.run();if(r||w||(E?j.some((G,ne)=>qe(G,V[ne])):qe(j,V))){g&&g();const G=rt;rt=u;try{const ne=[j,V===Gt?void 0:E&&V[0]===Gt?[]:V,v];f?f(t,3,ne):t(...ne),V=j}finally{rt=G}}}else u.run()};return l&&l(K),u=new _r(h),u.scheduler=o?()=>o(K,!1):K,v=O=>xo(O,!1,u),g=u.onStop=()=>{const O=en.get(u);if(O){if(f)f(O,4);else for(const j of O)j();en.delete(u)}},t?s?K(!0):V=u.run():o?o(K.bind(null,!0),!0):u.run(),N.pause=u.pause.bind(u),N.resume=u.resume.bind(u),N.stop=N,N}function je(e,t=1/0,n){if(t<=0||!z(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ae(e))je(e.value,t,n);else if(R(e))for(let s=0;s<e.length;s++)je(e[s],t,n);else if(cr(e)||ht(e))e.forEach(s=>{je(s,t,n)});else if(dr(e)){for(const s in e)je(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&je(e[s],t,n)}return e}/**
10
+ * @vue/runtime-core v3.5.12
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/function jt(e,t,n,s){try{return s?e(...s):e()}catch(r){mn(r,t,n)}}function Me(e,t,n,s){if(L(e)){const r=jt(e,t,n,s);return r&&ur(r)&&r.catch(i=>{mn(i,t,n)}),r}if(R(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Me(e[i],t,n,s));return r}}function mn(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||W;if(t){let l=t.parent;const f=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let h=0;h<u.length;h++)if(u[h](e,f,d)===!1)return}l=l.parent}if(i){ze(),jt(i,null,10,[e,f,d]),Qe();return}}To(e,n,r,s,o)}function To(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const he=[];let Re=-1;const gt=[];let We=null,ut=0;const Lr=Promise.resolve();let tn=null;function So(e){const t=tn||Lr;return e?t.then(this?e.bind(this):e):t}function wo(e){let t=Re+1,n=he.length;for(;t<n;){const s=t+n>>>1,r=he[s],i=Lt(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function as(e){if(!(e.flags&1)){const t=Lt(e),n=he[he.length-1];!n||!(e.flags&2)&&t>=Lt(n)?he.push(e):he.splice(wo(t),0,e),e.flags|=1,Nr()}}function Nr(){tn||(tn=Lr.then(Hr))}function Eo(e){R(e)?gt.push(...e):We&&e.id===-1?We.splice(ut+1,0,e):e.flags&1||(gt.push(e),e.flags|=1),Nr()}function Ms(e,t,n=Re+1){for(;n<he.length;n++){const s=he[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;he.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Dr(e){if(gt.length){const t=[...new Set(gt)].sort((n,s)=>Lt(n)-Lt(s));if(gt.length=0,We){We.push(...t);return}for(We=t,ut=0;ut<We.length;ut++){const n=We[ut];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}We=null,ut=0}}const Lt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Hr(e){try{for(Re=0;Re<he.length;Re++){const t=he[Re];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),jt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Re<he.length;Re++){const t=he[Re];t&&(t.flags&=-2)}Re=-1,he.length=0,Dr(),tn=null,(he.length||gt.length)&&Hr()}}let ie=null,$r=null;function nn(e){const t=ie;return ie=e,$r=e&&e.type.__scopeId||null,t}function Ao(e,t=ie,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Bs(-1);const i=nn(t);let o;try{o=e(...r)}finally{nn(i),s._d&&Bs(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function yf(e,t){if(ie===null)return e;const n=xn(ie),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,f=W]=t[r];i&&(L(i)&&(i={mounted:i,updated:i}),i.deep&&je(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:f}))}return e}function tt(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let f=l.dir[s];f&&(ze(),Me(f,n,8,[e.el,l,e,t]),Qe())}}const jr=Symbol("_vte"),Br=e=>e.__isTeleport,Ot=e=>e&&(e.disabled||e.disabled===""),Mo=e=>e&&(e.defer||e.defer===""),Os=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ps=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Un=(e,t)=>{const n=e&&e.to;return X(n)?t?t(n):null:n},Oo={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,o,l,f,d){const{mc:u,pc:h,pbc:g,o:{insert:v,querySelector:w,createText:E,createComment:ee}}=d,N=Ot(t.props);let{shapeFlag:V,children:K,dynamicChildren:O}=t;if(e==null){const j=t.el=E(""),G=t.anchor=E("");v(j,n,s),v(G,n,s);const ne=(P,D)=>{V&16&&(r&&r.isCE&&(r.ce._teleportTarget=P),u(K,P,D,r,i,o,l,f))},te=()=>{const P=t.target=Un(t.props,w),D=Vr(P,t,E,v);P&&(o!=="svg"&&Os(P)?o="svg":o!=="mathml"&&Ps(P)&&(o="mathml"),N||(ne(P,D),zt(t,!1)))};N&&(ne(n,G),zt(t,!0)),Mo(t.props)?me(te,i):te()}else{t.el=e.el,t.targetStart=e.targetStart;const j=t.anchor=e.anchor,G=t.target=e.target,ne=t.targetAnchor=e.targetAnchor,te=Ot(e.props),P=te?n:G,D=te?j:ne;if(o==="svg"||Os(G)?o="svg":(o==="mathml"||Ps(G))&&(o="mathml"),O?(g(e.dynamicChildren,O,P,r,i,o,l),_s(e,t,!0)):f||h(e,t,P,D,r,i,o,l,!1),N)te?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):kt(t,n,j,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const k=t.target=Un(t.props,w);k&&kt(t,k,null,d,0)}else te&&kt(t,G,ne,d,1);zt(t,N)}},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:o,children:l,anchor:f,targetStart:d,targetAnchor:u,target:h,props:g}=e;if(h&&(r(d),r(u)),i&&r(f),o&16){const v=i||!Ot(g);for(let w=0;w<l.length;w++){const E=l[w];s(E,t,n,v,!!E.dynamicChildren)}}},move:kt,hydrate:Po};function kt(e,t,n,{o:{insert:s},m:r},i=2){i===0&&s(e.targetAnchor,t,n);const{el:o,anchor:l,shapeFlag:f,children:d,props:u}=e,h=i===2;if(h&&s(o,t,n),(!h||Ot(u))&&f&16)for(let g=0;g<d.length;g++)r(d[g],t,n,2);h&&s(l,t,n)}function Po(e,t,n,s,r,i,{o:{nextSibling:o,parentNode:l,querySelector:f,insert:d,createText:u}},h){const g=t.target=Un(t.props,f);if(g){const v=Ot(t.props),w=g._lpa||g.firstChild;if(t.shapeFlag&16)if(v)t.anchor=h(o(e),t,l(e),n,s,r,i),t.targetStart=w,t.targetAnchor=w&&o(w);else{t.anchor=o(e);let E=w;for(;E;){if(E&&E.nodeType===8){if(E.data==="teleport start anchor")t.targetStart=E;else if(E.data==="teleport anchor"){t.targetAnchor=E,g._lpa=t.targetAnchor&&o(t.targetAnchor);break}}E=o(E)}t.targetAnchor||Vr(g,t,u,d),h(w&&o(w),t,g,n,s,r,i)}zt(t,v)}return t.anchor&&o(t.anchor)}const vf=Oo;function zt(e,t){const n=e.ctx;if(n&&n.ut){let s,r;for(t?(s=e.el,r=e.anchor):(s=e.targetStart,r=e.targetAnchor);s&&s!==r;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Vr(e,t,n,s){const r=t.targetStart=n(""),i=t.targetAnchor=n("");return r[jr]=i,e&&(s(r,e),s(i,e)),i}const Ge=Symbol("_leaveCb"),qt=Symbol("_enterCb");function Kr(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Yr(()=>{e.isMounted=!0}),Qr(()=>{e.isUnmounting=!0}),e}const Te=[Function,Array],Ur={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Te,onEnter:Te,onAfterEnter:Te,onEnterCancelled:Te,onBeforeLeave:Te,onLeave:Te,onAfterLeave:Te,onLeaveCancelled:Te,onBeforeAppear:Te,onAppear:Te,onAfterAppear:Te,onAppearCancelled:Te},Wr=e=>{const t=e.subTree;return t.component?Wr(t.component):t},Io={name:"BaseTransition",props:Ur,setup(e,{slots:t}){const n=vi(),s=Kr();return()=>{const r=t.default&&ds(t.default(),!0);if(!r||!r.length)return;const i=Gr(r),o=$(e),{mode:l}=o;if(s.isLeaving)return An(i);const f=Is(i);if(!f)return An(i);let d=Nt(f,o,s,n,g=>d=g);f.type!==pe&&ft(f,d);const u=n.subTree,h=u&&Is(u);if(h&&h.type!==pe&&!it(f,h)&&Wr(n).type!==pe){const g=Nt(h,o,s,n);if(ft(h,g),l==="out-in"&&f.type!==pe)return s.isLeaving=!0,g.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete g.afterLeave},An(i);l==="in-out"&&f.type!==pe&&(g.delayLeave=(v,w,E)=>{const ee=kr(s,h);ee[String(h.key)]=h,v[Ge]=()=>{w(),v[Ge]=void 0,delete d.delayedLeave},d.delayedLeave=E})}return i}}};function Gr(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==pe){t=n;break}}return t}const Ro=Io;function kr(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Nt(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:f,onEnter:d,onAfterEnter:u,onEnterCancelled:h,onBeforeLeave:g,onLeave:v,onAfterLeave:w,onLeaveCancelled:E,onBeforeAppear:ee,onAppear:N,onAfterAppear:V,onAppearCancelled:K}=t,O=String(e.key),j=kr(n,e),G=(P,D)=>{P&&Me(P,s,9,D)},ne=(P,D)=>{const k=D[1];G(P,D),R(P)?P.every(A=>A.length<=1)&&k():P.length<=1&&k()},te={mode:o,persisted:l,beforeEnter(P){let D=f;if(!n.isMounted)if(i)D=ee||f;else return;P[Ge]&&P[Ge](!0);const k=j[O];k&&it(e,k)&&k.el[Ge]&&k.el[Ge](),G(D,[P])},enter(P){let D=d,k=u,A=h;if(!n.isMounted)if(i)D=N||d,k=V||u,A=K||h;else return;let Q=!1;const le=P[qt]=Xe=>{Q||(Q=!0,Xe?G(A,[P]):G(k,[P]),te.delayedLeave&&te.delayedLeave(),P[qt]=void 0)};D?ne(D,[P,le]):le()},leave(P,D){const k=String(e.key);if(P[qt]&&P[qt](!0),n.isUnmounting)return D();G(g,[P]);let A=!1;const Q=P[Ge]=le=>{A||(A=!0,D(),le?G(E,[P]):G(w,[P]),P[Ge]=void 0,j[k]===e&&delete j[k])};j[k]=e,v?ne(v,[P,Q]):Q()},clone(P){const D=Nt(P,t,n,s,r);return r&&r(D),D}};return te}function An(e){if(_n(e))return e=Je(e),e.children=null,e}function Is(e){if(!_n(e))return Br(e.type)&&e.children?Gr(e.children):e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&L(n.default))return n.default()}}function ft(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ft(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ds(e,t=!1,n){let s=[],r=0;for(let i=0;i<e.length;i++){let o=e[i];const l=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===_e?(o.patchFlag&128&&r++,s=s.concat(ds(o.children,t,l))):(t||o.type!==pe)&&s.push(l!=null?Je(o,{key:l}):o)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function xf(e,t){return L(e)?se({name:e.name},t,{setup:e}):e}function qr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Wn(e,t,n,s,r=!1){if(R(e)){e.forEach((w,E)=>Wn(w,t&&(R(t)?t[E]:t),n,s,r));return}if(mt(s)&&!r)return;const i=s.shapeFlag&4?xn(s.component):s.el,o=r?null:i,{i:l,r:f}=e,d=t&&t.r,u=l.refs===W?l.refs={}:l.refs,h=l.setupState,g=$(h),v=h===W?()=>!1:w=>B(g,w);if(d!=null&&d!==f&&(X(d)?(u[d]=null,v(d)&&(h[d]=null)):ae(d)&&(d.value=null)),L(f))jt(f,l,12,[o,u]);else{const w=X(f),E=ae(f);if(w||E){const ee=()=>{if(e.f){const N=w?v(f)?h[f]:u[f]:f.value;r?R(N)&&ts(N,i):R(N)?N.includes(i)||N.push(i):w?(u[f]=[i],v(f)&&(h[f]=u[f])):(f.value=[i],e.k&&(u[e.k]=f.value))}else w?(u[f]=o,v(f)&&(h[f]=o)):E&&(f.value=o,e.k&&(u[e.k]=o))};o?(ee.id=-1,me(ee,n)):ee()}}}dn().requestIdleCallback;dn().cancelIdleCallback;const mt=e=>!!e.type.__asyncLoader,_n=e=>e.type.__isKeepAlive;function Fo(e,t){Jr(e,"a",t)}function Lo(e,t){Jr(e,"da",t)}function Jr(e,t,n=oe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(bn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)_n(r.parent.vnode)&&No(s,t,n,r),r=r.parent}}function No(e,t,n,s){const r=bn(t,e,s,!0);Xr(()=>{ts(s[t],r)},n)}function bn(e,t,n=oe,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ze();const l=Bt(n),f=Me(t,n,e,o);return l(),Qe(),f});return s?r.unshift(i):r.push(i),i}}const Ve=e=>(t,n=oe)=>{(!$t||e==="sp")&&bn(e,(...s)=>t(...s),n)},Do=Ve("bm"),Yr=Ve("m"),Ho=Ve("bu"),zr=Ve("u"),Qr=Ve("bum"),Xr=Ve("um"),$o=Ve("sp"),jo=Ve("rtg"),Bo=Ve("rtc");function Vo(e,t=oe){bn("ec",e,t)}const hs="components",Ko="directives";function Cf(e,t){return ps(hs,e,!0,t)||e}const Zr=Symbol.for("v-ndc");function Tf(e){return X(e)?ps(hs,e,!1)||e:e||Zr}function Sf(e){return ps(Ko,e)}function ps(e,t,n=!0,s=!1){const r=ie||oe;if(r){const i=r.type;if(e===hs){const l=Pl(i,!1);if(l&&(l===t||l===we(t)||l===an(we(t))))return i}const o=Rs(r[e]||i[e],t)||Rs(r.appContext[e],t);return!o&&s?i:o}}function Rs(e,t){return e&&(e[t]||e[we(t)]||e[an(we(t))])}function wf(e,t,n,s){let r;const i=n,o=R(e);if(o||X(e)){const l=o&&pt(e);let f=!1;l&&(f=!Se(e),e=gn(e)),r=new Array(e.length);for(let d=0,u=e.length;d<u;d++)r[d]=t(f?ue(e[d]):e[d],d,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(z(e))if(e[Symbol.iterator])r=Array.from(e,(l,f)=>t(l,f,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let f=0,d=l.length;f<d;f++){const u=l[f];r[f]=t(e[u],u,f,i)}}else r=[];return r}function Ef(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(R(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return e}function Af(e,t,n={},s,r){if(ie.ce||ie.parent&&mt(ie.parent)&&ie.parent.ce)return t!=="default"&&(n.name=t),Yn(),zn(_e,null,[ge("slot",n,s&&s())],64);let i=e[t];i&&i._c&&(i._d=!1),Yn();const o=i&&ei(i(n)),l=n.key||o&&o.key,f=zn(_e,{key:(l&&!Be(l)?l:`_${t}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&e._===1?64:-2);return f.scopeId&&(f.slotScopeIds=[f.scopeId+"-s"]),i&&i._c&&(i._d=!0),f}function ei(e){return e.some(t=>Ht(t)?!(t.type===pe||t.type===_e&&!ei(t.children)):!0)?e:null}function Mf(e,t){const n={};for(const s in e)n[Jt(s)]=e[s];return n}const Gn=e=>e?xi(e)?xn(e):Gn(e.parent):null,Pt=se(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=>Gn(e.parent),$root:e=>Gn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>gs(e),$forceUpdate:e=>e.f||(e.f=()=>{as(e.update)}),$nextTick:e=>e.n||(e.n=So.bind(e.proxy)),$watch:e=>ul.bind(e)}),Mn=(e,t)=>e!==W&&!e.__isScriptSetup&&B(e,t),Uo={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:f}=e;let d;if(t[0]!=="$"){const v=o[t];if(v!==void 0)switch(v){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Mn(s,t))return o[t]=1,s[t];if(r!==W&&B(r,t))return o[t]=2,r[t];if((d=e.propsOptions[0])&&B(d,t))return o[t]=3,i[t];if(n!==W&&B(n,t))return o[t]=4,n[t];kn&&(o[t]=0)}}const u=Pt[t];let h,g;if(u)return t==="$attrs"&&ce(e.attrs,"get",""),u(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==W&&B(n,t))return o[t]=4,n[t];if(g=f.config.globalProperties,B(g,t))return g[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Mn(r,t)?(r[t]=n,!0):s!==W&&B(s,t)?(s[t]=n,!0):B(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==W&&B(e,o)||Mn(t,o)||(l=i[0])&&B(l,o)||B(s,o)||B(Pt,o)||B(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:B(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Fs(e){return R(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let kn=!0;function Wo(e){const t=gs(e),n=e.proxy,s=e.ctx;kn=!1,t.beforeCreate&&Ls(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:f,inject:d,created:u,beforeMount:h,mounted:g,beforeUpdate:v,updated:w,activated:E,deactivated:ee,beforeDestroy:N,beforeUnmount:V,destroyed:K,unmounted:O,render:j,renderTracked:G,renderTriggered:ne,errorCaptured:te,serverPrefetch:P,expose:D,inheritAttrs:k,components:A,directives:Q,filters:le}=t;if(d&&Go(d,s,null),o)for(const Z in o){const q=o[Z];L(q)&&(s[Z]=q.bind(n))}if(r){const Z=r.call(n,n);z(Z)&&(e.data=fs(Z))}if(kn=!0,i)for(const Z in i){const q=i[Z],Ze=L(q)?q.bind(n,n):L(q.get)?q.get.bind(n,n):Le,Vt=!L(q)&&L(q.set)?q.set.bind(n):Le,et=Rl({get:Ze,set:Vt});Object.defineProperty(s,Z,{enumerable:!0,configurable:!0,get:()=>et.value,set:Oe=>et.value=Oe})}if(l)for(const Z in l)ti(l[Z],s,n,Z);if(f){const Z=L(f)?f.call(n):f;Reflect.ownKeys(Z).forEach(q=>{Qo(q,Z[q])})}u&&Ls(u,e,"c");function re(Z,q){R(q)?q.forEach(Ze=>Z(Ze.bind(n))):q&&Z(q.bind(n))}if(re(Do,h),re(Yr,g),re(Ho,v),re(zr,w),re(Fo,E),re(Lo,ee),re(Vo,te),re(Bo,G),re(jo,ne),re(Qr,V),re(Xr,O),re($o,P),R(D))if(D.length){const Z=e.exposed||(e.exposed={});D.forEach(q=>{Object.defineProperty(Z,q,{get:()=>n[q],set:Ze=>n[q]=Ze})})}else e.exposed||(e.exposed={});j&&e.render===Le&&(e.render=j),k!=null&&(e.inheritAttrs=k),A&&(e.components=A),Q&&(e.directives=Q),P&&qr(e)}function Go(e,t,n=Le){R(e)&&(e=qn(e));for(const s in e){const r=e[s];let i;z(r)?"default"in r?i=Qt(r.from||s,r.default,!0):i=Qt(r.from||s):i=Qt(r),ae(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function Ls(e,t,n){Me(R(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function ti(e,t,n,s){let r=s.includes(".")?pi(n,s):()=>n[s];if(X(e)){const i=t[e];L(i)&&Pn(r,i)}else if(L(e))Pn(r,e.bind(n));else if(z(e))if(R(e))e.forEach(i=>ti(i,t,n,s));else{const i=L(e.handler)?e.handler.bind(n):t[e.handler];L(i)&&Pn(r,i,e)}}function gs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let f;return l?f=l:!r.length&&!n&&!s?f=t:(f={},r.length&&r.forEach(d=>sn(f,d,o,!0)),sn(f,t,o)),z(t)&&i.set(t,f),f}function sn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&sn(e,i,n,!0),r&&r.forEach(o=>sn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=ko[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const ko={data:Ns,props:Ds,emits:Ds,methods:wt,computed:wt,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:wt,directives:wt,watch:Jo,provide:Ns,inject:qo};function Ns(e,t){return t?e?function(){return se(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function qo(e,t){return wt(qn(e),qn(t))}function qn(e){if(R(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function de(e,t){return e?[...new Set([].concat(e,t))]:t}function wt(e,t){return e?se(Object.create(null),e,t):t}function Ds(e,t){return e?R(e)&&R(t)?[...new Set([...e,...t])]:se(Object.create(null),Fs(e),Fs(t??{})):t}function Jo(e,t){if(!e)return t;if(!t)return e;const n=se(Object.create(null),e);for(const s in t)n[s]=de(e[s],t[s]);return n}function ni(){return{app:null,config:{isNativeTag:Li,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Yo=0;function zo(e,t){return function(s,r=null){L(s)||(s=se({},s)),r!=null&&!z(r)&&(r=null);const i=ni(),o=new WeakSet,l=[];let f=!1;const d=i.app={_uid:Yo++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:Ll,get config(){return i.config},set config(u){},use(u,...h){return o.has(u)||(u&&L(u.install)?(o.add(u),u.install(d,...h)):L(u)&&(o.add(u),u(d,...h))),d},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),d},component(u,h){return h?(i.components[u]=h,d):i.components[u]},directive(u,h){return h?(i.directives[u]=h,d):i.directives[u]},mount(u,h,g){if(!f){const v=d._ceVNode||ge(s,r);return v.appContext=i,g===!0?g="svg":g===!1&&(g=void 0),h&&t?t(v,u):e(v,u,g),f=!0,d._container=u,u.__vue_app__=d,xn(v.component)}},onUnmount(u){l.push(u)},unmount(){f&&(Me(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(u,h){return i.provides[u]=h,d},runWithContext(u){const h=_t;_t=d;try{return u()}finally{_t=h}}};return d}}let _t=null;function Qo(e,t){if(oe){let n=oe.provides;const s=oe.parent&&oe.parent.provides;s===n&&(n=oe.provides=Object.create(s)),n[e]=t}}function Qt(e,t,n=!1){const s=oe||ie;if(s||_t){const r=_t?_t._context.provides:s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&L(t)?t.call(s&&s.proxy):t}}const si={},ri=()=>Object.create(si),ii=e=>Object.getPrototypeOf(e)===si;function Xo(e,t,n,s=!1){const r={},i=ri();e.propsDefaults=Object.create(null),oi(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:po(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Zo(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=$(r),[f]=e.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let h=0;h<u.length;h++){let g=u[h];if(yn(e.emitsOptions,g))continue;const v=t[g];if(f)if(B(i,g))v!==i[g]&&(i[g]=v,d=!0);else{const w=we(g);r[w]=Jn(f,l,w,v,e,!1)}else v!==i[g]&&(i[g]=v,d=!0)}}}else{oi(e,t,r,i)&&(d=!0);let u;for(const h in l)(!t||!B(t,h)&&((u=Ye(h))===h||!B(t,u)))&&(f?n&&(n[h]!==void 0||n[u]!==void 0)&&(r[h]=Jn(f,l,h,void 0,e,!0)):delete r[h]);if(i!==l)for(const h in i)(!t||!B(t,h))&&(delete i[h],d=!0)}d&&$e(e.attrs,"set","")}function oi(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let f in t){if(Et(f))continue;const d=t[f];let u;r&&B(r,u=we(f))?!i||!i.includes(u)?n[u]=d:(l||(l={}))[u]=d:yn(e.emitsOptions,f)||(!(f in s)||d!==s[f])&&(s[f]=d,o=!0)}if(i){const f=$(n),d=l||W;for(let u=0;u<i.length;u++){const h=i[u];n[h]=Jn(r,f,h,d[h],e,!B(d,h))}}return o}function Jn(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=B(o,"default");if(l&&s===void 0){const f=o.default;if(o.type!==Function&&!o.skipFactory&&L(f)){const{propsDefaults:d}=r;if(n in d)s=d[n];else{const u=Bt(r);s=d[n]=f.call(null,t),u()}}else s=f;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===Ye(n))&&(s=!0))}return s}const el=new WeakMap;function li(e,t,n=!1){const s=n?el:t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let f=!1;if(!L(e)){const u=h=>{f=!0;const[g,v]=li(h,t,!0);se(o,g),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!f)return z(e)&&s.set(e,dt),dt;if(R(i))for(let u=0;u<i.length;u++){const h=we(i[u]);Hs(h)&&(o[h]=W)}else if(i)for(const u in i){const h=we(u);if(Hs(h)){const g=i[u],v=o[h]=R(g)||L(g)?{type:g}:se({},g),w=v.type;let E=!1,ee=!0;if(R(w))for(let N=0;N<w.length;++N){const V=w[N],K=L(V)&&V.name;if(K==="Boolean"){E=!0;break}else K==="String"&&(ee=!1)}else E=L(w)&&w.name==="Boolean";v[0]=E,v[1]=ee,(E||B(v,"default"))&&l.push(h)}}const d=[o,l];return z(e)&&s.set(e,d),d}function Hs(e){return e[0]!=="$"&&!Et(e)}const fi=e=>e[0]==="_"||e==="$stable",ms=e=>R(e)?e.map(Fe):[Fe(e)],tl=(e,t,n)=>{if(t._n)return t;const s=Ao((...r)=>ms(t(...r)),n);return s._c=!1,s},ci=(e,t,n)=>{const s=e._ctx;for(const r in e){if(fi(r))continue;const i=e[r];if(L(i))t[r]=tl(r,i,s);else if(i!=null){const o=ms(i);t[r]=()=>o}}},ui=(e,t)=>{const n=ms(t);e.slots.default=()=>n},ai=(e,t,n)=>{for(const s in t)(n||s!=="_")&&(e[s]=t[s])},nl=(e,t,n)=>{const s=e.slots=ri();if(e.vnode.shapeFlag&32){const r=t._;r?(ai(s,t,n),n&&hr(s,"_",r,!0)):ci(t,s)}else t&&ui(e,t)},sl=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=W;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:ai(r,t,n):(i=!t.$stable,ci(t,r)),o=t}else t&&(ui(e,t),o={default:1});if(i)for(const l in r)!fi(l)&&o[l]==null&&delete r[l]},me=_l;function rl(e){return il(e)}function il(e,t){const n=dn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:f,setText:d,setElementText:u,parentNode:h,nextSibling:g,setScopeId:v=Le,insertStaticContent:w}=e,E=(c,a,p,b=null,m=null,_=null,T=void 0,C=null,x=!!a.dynamicChildren)=>{if(c===a)return;c&&!it(c,a)&&(b=Kt(c),Oe(c,m,_,!0),c=null),a.patchFlag===-2&&(x=!1,a.dynamicChildren=null);const{type:y,ref:I,shapeFlag:S}=a;switch(y){case vn:ee(c,a,p,b);break;case pe:N(c,a,p,b);break;case Rn:c==null&&V(a,p,b,T);break;case _e:A(c,a,p,b,m,_,T,C,x);break;default:S&1?j(c,a,p,b,m,_,T,C,x):S&6?Q(c,a,p,b,m,_,T,C,x):(S&64||S&128)&&y.process(c,a,p,b,m,_,T,C,x,vt)}I!=null&&m&&Wn(I,c&&c.ref,_,a||c,!a)},ee=(c,a,p,b)=>{if(c==null)s(a.el=l(a.children),p,b);else{const m=a.el=c.el;a.children!==c.children&&d(m,a.children)}},N=(c,a,p,b)=>{c==null?s(a.el=f(a.children||""),p,b):a.el=c.el},V=(c,a,p,b)=>{[c.el,c.anchor]=w(c.children,a,p,b,c.el,c.anchor)},K=({el:c,anchor:a},p,b)=>{let m;for(;c&&c!==a;)m=g(c),s(c,p,b),c=m;s(a,p,b)},O=({el:c,anchor:a})=>{let p;for(;c&&c!==a;)p=g(c),r(c),c=p;r(a)},j=(c,a,p,b,m,_,T,C,x)=>{a.type==="svg"?T="svg":a.type==="math"&&(T="mathml"),c==null?G(a,p,b,m,_,T,C,x):P(c,a,m,_,T,C,x)},G=(c,a,p,b,m,_,T,C)=>{let x,y;const{props:I,shapeFlag:S,transition:M,dirs:F}=c;if(x=c.el=o(c.type,_,I&&I.is,I),S&8?u(x,c.children):S&16&&te(c.children,x,null,b,m,On(c,_),T,C),F&&tt(c,null,b,"created"),ne(x,c,c.scopeId,T,b),I){for(const J in I)J!=="value"&&!Et(J)&&i(x,J,null,I[J],_,b);"value"in I&&i(x,"value",null,I.value,_),(y=I.onVnodeBeforeMount)&&Ie(y,b,c)}F&&tt(c,null,b,"beforeMount");const H=ol(m,M);H&&M.beforeEnter(x),s(x,a,p),((y=I&&I.onVnodeMounted)||H||F)&&me(()=>{y&&Ie(y,b,c),H&&M.enter(x),F&&tt(c,null,b,"mounted")},m)},ne=(c,a,p,b,m)=>{if(p&&v(c,p),b)for(let _=0;_<b.length;_++)v(c,b[_]);if(m){let _=m.subTree;if(a===_||mi(_.type)&&(_.ssContent===a||_.ssFallback===a)){const T=m.vnode;ne(c,T,T.scopeId,T.slotScopeIds,m.parent)}}},te=(c,a,p,b,m,_,T,C,x=0)=>{for(let y=x;y<c.length;y++){const I=c[y]=C?ke(c[y]):Fe(c[y]);E(null,I,a,p,b,m,_,T,C)}},P=(c,a,p,b,m,_,T)=>{const C=a.el=c.el;let{patchFlag:x,dynamicChildren:y,dirs:I}=a;x|=c.patchFlag&16;const S=c.props||W,M=a.props||W;let F;if(p&&nt(p,!1),(F=M.onVnodeBeforeUpdate)&&Ie(F,p,a,c),I&&tt(a,c,p,"beforeUpdate"),p&&nt(p,!0),(S.innerHTML&&M.innerHTML==null||S.textContent&&M.textContent==null)&&u(C,""),y?D(c.dynamicChildren,y,C,p,b,On(a,m),_):T||q(c,a,C,null,p,b,On(a,m),_,!1),x>0){if(x&16)k(C,S,M,p,m);else if(x&2&&S.class!==M.class&&i(C,"class",null,M.class,m),x&4&&i(C,"style",S.style,M.style,m),x&8){const H=a.dynamicProps;for(let J=0;J<H.length;J++){const U=H[J],be=S[U],fe=M[U];(fe!==be||U==="value")&&i(C,U,be,fe,m,p)}}x&1&&c.children!==a.children&&u(C,a.children)}else!T&&y==null&&k(C,S,M,p,m);((F=M.onVnodeUpdated)||I)&&me(()=>{F&&Ie(F,p,a,c),I&&tt(a,c,p,"updated")},b)},D=(c,a,p,b,m,_,T)=>{for(let C=0;C<a.length;C++){const x=c[C],y=a[C],I=x.el&&(x.type===_e||!it(x,y)||x.shapeFlag&70)?h(x.el):p;E(x,y,I,null,b,m,_,T,!0)}},k=(c,a,p,b,m)=>{if(a!==p){if(a!==W)for(const _ in a)!Et(_)&&!(_ in p)&&i(c,_,a[_],null,m,b);for(const _ in p){if(Et(_))continue;const T=p[_],C=a[_];T!==C&&_!=="value"&&i(c,_,C,T,m,b)}"value"in p&&i(c,"value",a.value,p.value,m)}},A=(c,a,p,b,m,_,T,C,x)=>{const y=a.el=c?c.el:l(""),I=a.anchor=c?c.anchor:l("");let{patchFlag:S,dynamicChildren:M,slotScopeIds:F}=a;F&&(C=C?C.concat(F):F),c==null?(s(y,p,b),s(I,p,b),te(a.children||[],p,I,m,_,T,C,x)):S>0&&S&64&&M&&c.dynamicChildren?(D(c.dynamicChildren,M,p,m,_,T,C),(a.key!=null||m&&a===m.subTree)&&_s(c,a,!0)):q(c,a,p,I,m,_,T,C,x)},Q=(c,a,p,b,m,_,T,C,x)=>{a.slotScopeIds=C,c==null?a.shapeFlag&512?m.ctx.activate(a,p,b,T,x):le(a,p,b,m,_,T,x):Xe(c,a,x)},le=(c,a,p,b,m,_,T)=>{const C=c.component=wl(c,b,m);if(_n(c)&&(C.ctx.renderer=vt),El(C,!1,T),C.asyncDep){if(m&&m.registerDep(C,re,T),!c.el){const x=C.subTree=ge(pe);N(null,x,a,p)}}else re(C,c,a,p,m,_,T)},Xe=(c,a,p)=>{const b=a.component=c.component;if(gl(c,a,p))if(b.asyncDep&&!b.asyncResolved){Z(b,a,p);return}else b.next=a,b.update();else a.el=c.el,b.vnode=a},re=(c,a,p,b,m,_,T)=>{const C=()=>{if(c.isMounted){let{next:S,bu:M,u:F,parent:H,vnode:J}=c;{const ye=di(c);if(ye){S&&(S.el=J.el,Z(c,S,T)),ye.asyncDep.then(()=>{c.isUnmounted||C()});return}}let U=S,be;nt(c,!1),S?(S.el=J.el,Z(c,S,T)):S=J,M&&Yt(M),(be=S.props&&S.props.onVnodeBeforeUpdate)&&Ie(be,H,S,J),nt(c,!0);const fe=In(c),Ee=c.subTree;c.subTree=fe,E(Ee,fe,h(Ee.el),Kt(Ee),c,m,_),S.el=fe.el,U===null&&ml(c,fe.el),F&&me(F,m),(be=S.props&&S.props.onVnodeUpdated)&&me(()=>Ie(be,H,S,J),m)}else{let S;const{el:M,props:F}=a,{bm:H,m:J,parent:U,root:be,type:fe}=c,Ee=mt(a);if(nt(c,!1),H&&Yt(H),!Ee&&(S=F&&F.onVnodeBeforeMount)&&Ie(S,U,a),nt(c,!0),M&&Cs){const ye=()=>{c.subTree=In(c),Cs(M,c.subTree,c,m,null)};Ee&&fe.__asyncHydrate?fe.__asyncHydrate(M,c,ye):ye()}else{be.ce&&be.ce._injectChildStyle(fe);const ye=c.subTree=In(c);E(null,ye,p,b,c,m,_),a.el=ye.el}if(J&&me(J,m),!Ee&&(S=F&&F.onVnodeMounted)){const ye=a;me(()=>Ie(S,U,ye),m)}(a.shapeFlag&256||U&&mt(U.vnode)&&U.vnode.shapeFlag&256)&&c.a&&me(c.a,m),c.isMounted=!0,a=p=b=null}};c.scope.on();const x=c.effect=new _r(C);c.scope.off();const y=c.update=x.run.bind(x),I=c.job=x.runIfDirty.bind(x);I.i=c,I.id=c.uid,x.scheduler=()=>as(I),nt(c,!0),y()},Z=(c,a,p)=>{a.component=c;const b=c.vnode.props;c.vnode=a,c.next=null,Zo(c,a.props,b,p),sl(c,a.children,p),ze(),Ms(c),Qe()},q=(c,a,p,b,m,_,T,C,x=!1)=>{const y=c&&c.children,I=c?c.shapeFlag:0,S=a.children,{patchFlag:M,shapeFlag:F}=a;if(M>0){if(M&128){Vt(y,S,p,b,m,_,T,C,x);return}else if(M&256){Ze(y,S,p,b,m,_,T,C,x);return}}F&8?(I&16&&yt(y,m,_),S!==y&&u(p,S)):I&16?F&16?Vt(y,S,p,b,m,_,T,C,x):yt(y,m,_,!0):(I&8&&u(p,""),F&16&&te(S,p,b,m,_,T,C,x))},Ze=(c,a,p,b,m,_,T,C,x)=>{c=c||dt,a=a||dt;const y=c.length,I=a.length,S=Math.min(y,I);let M;for(M=0;M<S;M++){const F=a[M]=x?ke(a[M]):Fe(a[M]);E(c[M],F,p,null,m,_,T,C,x)}y>I?yt(c,m,_,!0,!1,S):te(a,p,b,m,_,T,C,x,S)},Vt=(c,a,p,b,m,_,T,C,x)=>{let y=0;const I=a.length;let S=c.length-1,M=I-1;for(;y<=S&&y<=M;){const F=c[y],H=a[y]=x?ke(a[y]):Fe(a[y]);if(it(F,H))E(F,H,p,null,m,_,T,C,x);else break;y++}for(;y<=S&&y<=M;){const F=c[S],H=a[M]=x?ke(a[M]):Fe(a[M]);if(it(F,H))E(F,H,p,null,m,_,T,C,x);else break;S--,M--}if(y>S){if(y<=M){const F=M+1,H=F<I?a[F].el:b;for(;y<=M;)E(null,a[y]=x?ke(a[y]):Fe(a[y]),p,H,m,_,T,C,x),y++}}else if(y>M)for(;y<=S;)Oe(c[y],m,_,!0),y++;else{const F=y,H=y,J=new Map;for(y=H;y<=M;y++){const ve=a[y]=x?ke(a[y]):Fe(a[y]);ve.key!=null&&J.set(ve.key,y)}let U,be=0;const fe=M-H+1;let Ee=!1,ye=0;const xt=new Array(fe);for(y=0;y<fe;y++)xt[y]=0;for(y=F;y<=S;y++){const ve=c[y];if(be>=fe){Oe(ve,m,_,!0);continue}let Pe;if(ve.key!=null)Pe=J.get(ve.key);else for(U=H;U<=M;U++)if(xt[U-H]===0&&it(ve,a[U])){Pe=U;break}Pe===void 0?Oe(ve,m,_,!0):(xt[Pe-H]=y+1,Pe>=ye?ye=Pe:Ee=!0,E(ve,a[Pe],p,null,m,_,T,C,x),be++)}const Ts=Ee?ll(xt):dt;for(U=Ts.length-1,y=fe-1;y>=0;y--){const ve=H+y,Pe=a[ve],Ss=ve+1<I?a[ve+1].el:b;xt[y]===0?E(null,Pe,p,Ss,m,_,T,C,x):Ee&&(U<0||y!==Ts[U]?et(Pe,p,Ss,2):U--)}}},et=(c,a,p,b,m=null)=>{const{el:_,type:T,transition:C,children:x,shapeFlag:y}=c;if(y&6){et(c.component.subTree,a,p,b);return}if(y&128){c.suspense.move(a,p,b);return}if(y&64){T.move(c,a,p,vt);return}if(T===_e){s(_,a,p);for(let S=0;S<x.length;S++)et(x[S],a,p,b);s(c.anchor,a,p);return}if(T===Rn){K(c,a,p);return}if(b!==2&&y&1&&C)if(b===0)C.beforeEnter(_),s(_,a,p),me(()=>C.enter(_),m);else{const{leave:S,delayLeave:M,afterLeave:F}=C,H=()=>s(_,a,p),J=()=>{S(_,()=>{H(),F&&F()})};M?M(_,H,J):J()}else s(_,a,p)},Oe=(c,a,p,b=!1,m=!1)=>{const{type:_,props:T,ref:C,children:x,dynamicChildren:y,shapeFlag:I,patchFlag:S,dirs:M,cacheIndex:F}=c;if(S===-2&&(m=!1),C!=null&&Wn(C,null,p,c,!0),F!=null&&(a.renderCache[F]=void 0),I&256){a.ctx.deactivate(c);return}const H=I&1&&M,J=!mt(c);let U;if(J&&(U=T&&T.onVnodeBeforeUnmount)&&Ie(U,a,c),I&6)Fi(c.component,p,b);else{if(I&128){c.suspense.unmount(p,b);return}H&&tt(c,null,a,"beforeUnmount"),I&64?c.type.remove(c,a,p,vt,b):y&&!y.hasOnce&&(_!==_e||S>0&&S&64)?yt(y,a,p,!1,!0):(_===_e&&S&384||!m&&I&16)&&yt(x,a,p),b&&ys(c)}(J&&(U=T&&T.onVnodeUnmounted)||H)&&me(()=>{U&&Ie(U,a,c),H&&tt(c,null,a,"unmounted")},p)},ys=c=>{const{type:a,el:p,anchor:b,transition:m}=c;if(a===_e){Ri(p,b);return}if(a===Rn){O(c);return}const _=()=>{r(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(c.shapeFlag&1&&m&&!m.persisted){const{leave:T,delayLeave:C}=m,x=()=>T(p,_);C?C(c.el,_,x):x()}else _()},Ri=(c,a)=>{let p;for(;c!==a;)p=g(c),r(c),c=p;r(a)},Fi=(c,a,p)=>{const{bum:b,scope:m,job:_,subTree:T,um:C,m:x,a:y}=c;$s(x),$s(y),b&&Yt(b),m.stop(),_&&(_.flags|=8,Oe(T,c,a,p)),C&&me(C,a),me(()=>{c.isUnmounted=!0},a),a&&a.pendingBranch&&!a.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===a.pendingId&&(a.deps--,a.deps===0&&a.resolve())},yt=(c,a,p,b=!1,m=!1,_=0)=>{for(let T=_;T<c.length;T++)Oe(c[T],a,p,b,m)},Kt=c=>{if(c.shapeFlag&6)return Kt(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const a=g(c.anchor||c.el),p=a&&a[jr];return p?g(p):a};let Cn=!1;const vs=(c,a,p)=>{c==null?a._vnode&&Oe(a._vnode,null,null,!0):E(a._vnode||null,c,a,null,null,null,p),a._vnode=c,Cn||(Cn=!0,Ms(),Dr(),Cn=!1)},vt={p:E,um:Oe,m:et,r:ys,mt:le,mc:te,pc:q,pbc:D,n:Kt,o:e};let xs,Cs;return{render:vs,hydrate:xs,createApp:zo(vs,xs)}}function On({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 nt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ol(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function _s(e,t,n=!1){const s=e.children,r=t.children;if(R(s)&&R(r))for(let i=0;i<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=ke(r[i]),l.el=o.el),!n&&l.patchFlag!==-2&&_s(o,l)),l.type===vn&&(l.el=o.el)}}function ll(e){const t=e.slice(),n=[0];let s,r,i,o,l;const f=e.length;for(s=0;s<f;s++){const d=e[s];if(d!==0){if(r=n[n.length-1],e[r]<d){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<d?i=l+1:o=l;d<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function di(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:di(t)}function $s(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const fl=Symbol.for("v-scx"),cl=()=>Qt(fl);function Pn(e,t,n){return hi(e,t,n)}function hi(e,t,n=W){const{immediate:s,deep:r,flush:i,once:o}=n,l=se({},n),f=t&&s||!t&&i!=="post";let d;if($t){if(i==="sync"){const v=cl();d=v.__watcherHandles||(v.__watcherHandles=[])}else if(!f){const v=()=>{};return v.stop=Le,v.resume=Le,v.pause=Le,v}}const u=oe;l.call=(v,w,E)=>Me(v,u,w,E);let h=!1;i==="post"?l.scheduler=v=>{me(v,u&&u.suspense)}:i!=="sync"&&(h=!0,l.scheduler=(v,w)=>{w?v():as(v)}),l.augmentJob=v=>{t&&(v.flags|=4),h&&(v.flags|=2,u&&(v.id=u.uid,v.i=u))};const g=Co(e,t,l);return $t&&(d?d.push(g):f&&g()),g}function ul(e,t,n){const s=this.proxy,r=X(e)?e.includes(".")?pi(s,e):()=>s[e]:e.bind(s,s);let i;L(t)?i=t:(i=t.handler,n=t);const o=Bt(this),l=hi(r,i.bind(s),n);return o(),l}function pi(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const al=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${we(t)}Modifiers`]||e[`${Ye(t)}Modifiers`];function dl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||W;let r=n;const i=t.startsWith("update:"),o=i&&al(s,t.slice(7));o&&(o.trim&&(r=n.map(u=>X(u)?u.trim():u)),o.number&&(r=n.map(Hn)));let l,f=s[l=Jt(t)]||s[l=Jt(we(t))];!f&&i&&(f=s[l=Jt(Ye(t))]),f&&Me(f,e,6,r);const d=s[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Me(d,e,6,r)}}function gi(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!L(e)){const f=d=>{const u=gi(d,t,!0);u&&(l=!0,se(o,u))};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!l?(z(e)&&s.set(e,null),null):(R(i)?i.forEach(f=>o[f]=null):se(o,i),z(e)&&s.set(e,o),o)}function yn(e,t){return!e||!fn(t)?!1:(t=t.slice(2).replace(/Once$/,""),B(e,t[0].toLowerCase()+t.slice(1))||B(e,Ye(t))||B(e,t))}function In(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:f,render:d,renderCache:u,props:h,data:g,setupState:v,ctx:w,inheritAttrs:E}=e,ee=nn(e);let N,V;try{if(n.shapeFlag&4){const O=r||s,j=O;N=Fe(d.call(j,O,u,h,v,g,w)),V=l}else{const O=t;N=Fe(O.length>1?O(h,{attrs:l,slots:o,emit:f}):O(h,null)),V=t.props?l:hl(l)}}catch(O){It.length=0,mn(O,e,1),N=ge(pe)}let K=N;if(V&&E!==!1){const O=Object.keys(V),{shapeFlag:j}=K;O.length&&j&7&&(i&&O.some(es)&&(V=pl(V,i)),K=Je(K,V,!1,!0))}return n.dirs&&(K=Je(K,null,!1,!0),K.dirs=K.dirs?K.dirs.concat(n.dirs):n.dirs),n.transition&&ft(K,n.transition),N=K,nn(ee),N}const hl=e=>{let t;for(const n in e)(n==="class"||n==="style"||fn(n))&&((t||(t={}))[n]=e[n]);return t},pl=(e,t)=>{const n={};for(const s in e)(!es(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function gl(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:f}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&f>=0){if(f&1024)return!0;if(f&16)return s?js(s,o,d):!!o;if(f&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const g=u[h];if(o[g]!==s[g]&&!yn(d,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?js(s,o,d):!0:!!o;return!1}function js(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(t[i]!==e[i]&&!yn(n,i))return!0}return!1}function ml({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const mi=e=>e.__isSuspense;function _l(e,t){t&&t.pendingBranch?R(e)?t.effects.push(...e):t.effects.push(e):Eo(e)}const _e=Symbol.for("v-fgt"),vn=Symbol.for("v-txt"),pe=Symbol.for("v-cmt"),Rn=Symbol.for("v-stc"),It=[];let Ce=null;function Yn(e=!1){It.push(Ce=e?null:[])}function bl(){It.pop(),Ce=It[It.length-1]||null}let Dt=1;function Bs(e){Dt+=e,e<0&&Ce&&(Ce.hasOnce=!0)}function _i(e){return e.dynamicChildren=Dt>0?Ce||dt:null,bl(),Dt>0&&Ce&&Ce.push(e),e}function Of(e,t,n,s,r,i){return _i(yi(e,t,n,s,r,i,!0))}function zn(e,t,n,s,r){return _i(ge(e,t,n,s,r,!0))}function Ht(e){return e?e.__v_isVNode===!0:!1}function it(e,t){return e.type===t.type&&e.key===t.key}const bi=({key:e})=>e??null,Xt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?X(e)||ae(e)||L(e)?{i:ie,r:e,k:t,f:!!n}:e:null);function yi(e,t=null,n=null,s=0,r=null,i=e===_e?0:1,o=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bi(t),ref:t&&Xt(t),scopeId:$r,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:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ie};return l?(bs(f,n),i&128&&e.normalize(f)):n&&(f.shapeFlag|=X(n)?8:16),Dt>0&&!o&&Ce&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&Ce.push(f),f}const ge=yl;function yl(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Zr)&&(e=pe),Ht(e)){const l=Je(e,t,!0);return n&&bs(l,n),Dt>0&&!i&&Ce&&(l.shapeFlag&6?Ce[Ce.indexOf(e)]=l:Ce.push(l)),l.patchFlag=-2,l}if(Il(e)&&(e=e.__vccOpts),t){t=vl(t);let{class:l,style:f}=t;l&&!X(l)&&(t.class=pn(l)),z(f)&&(us(f)&&!R(f)&&(f=se({},f)),t.style=hn(f))}const o=X(e)?1:mi(e)?128:Br(e)?64:z(e)?4:L(e)?2:0;return yi(e,t,n,s,r,o,i,!0)}function vl(e){return e?us(e)||ii(e)?se({},e):e:null}function Je(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:f}=e,d=t?Cl(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&bi(d),ref:t&&t.ref?n&&i?R(i)?i.concat(Xt(t)):[i,Xt(t)]:Xt(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Je(e.ssContent),ssFallback:e.ssFallback&&Je(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&s&&ft(u,f.clone(u)),u}function xl(e=" ",t=0){return ge(vn,null,e,t)}function Pf(e="",t=!1){return t?(Yn(),zn(pe,null,e)):ge(pe,null,e)}function Fe(e){return e==null||typeof e=="boolean"?ge(pe):R(e)?ge(_e,null,e.slice()):Ht(e)?ke(e):ge(vn,null,String(e))}function ke(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Je(e)}function bs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(R(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),bs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!ii(t)?t._ctx=ie:r===3&&ie&&(ie.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else L(t)?(t={default:t,_ctx:ie},n=32):(t=String(t),s&64?(n=16,t=[xl(t)]):n=8);e.children=t,e.shapeFlag|=n}function Cl(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=pn([t.class,s.class]));else if(r==="style")t.style=hn([t.style,s.style]);else if(fn(r)){const i=t[r],o=s[r];o&&i!==o&&!(R(i)&&i.includes(o))&&(t[r]=i?[].concat(i,o):o)}else r!==""&&(t[r]=s[r])}return t}function Ie(e,t,n,s=null){Me(e,t,7,[n,s])}const Tl=ni();let Sl=0;function wl(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||Tl,i={uid:Sl++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new qi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:li(s,r),emitsOptions:gi(s,r),emit:null,emitted:null,propsDefaults:W,inheritAttrs:s.inheritAttrs,ctx:W,data:W,props:W,attrs:W,slots:W,refs:W,setupState:W,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=dl.bind(null,i),e.ce&&e.ce(i),i}let oe=null;const vi=()=>oe||ie;let rn,Qn;{const e=dn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};rn=t("__VUE_INSTANCE_SETTERS__",n=>oe=n),Qn=t("__VUE_SSR_SETTERS__",n=>$t=n)}const Bt=e=>{const t=oe;return rn(e),e.scope.on(),()=>{e.scope.off(),rn(t)}},Vs=()=>{oe&&oe.scope.off(),rn(null)};function xi(e){return e.vnode.shapeFlag&4}let $t=!1;function El(e,t=!1,n=!1){t&&Qn(t);const{props:s,children:r}=e.vnode,i=xi(e);Xo(e,s,i,t),nl(e,r,n);const o=i?Al(e,t):void 0;return t&&Qn(!1),o}function Al(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Uo);const{setup:s}=n;if(s){ze();const r=e.setupContext=s.length>1?Ol(e):null,i=Bt(e),o=jt(s,e,0,[e.props,r]),l=ur(o);if(Qe(),i(),(l||e.sp)&&!mt(e)&&qr(e),l){if(o.then(Vs,Vs),t)return o.then(f=>{Ks(e,f,t)}).catch(f=>{mn(f,e,0)});e.asyncDep=o}else Ks(e,o,t)}else Ci(e,t)}function Ks(e,t,n){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:z(t)&&(e.setupState=Fr(t)),Ci(e,n)}let Us;function Ci(e,t,n){const s=e.type;if(!e.render){if(!t&&Us&&!s.render){const r=s.template||gs(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:f}=s,d=se(se({isCustomElement:i,delimiters:l},o),f);s.render=Us(r,d)}}e.render=s.render||Le}{const r=Bt(e);ze();try{Wo(e)}finally{Qe(),r()}}}const Ml={get(e,t){return ce(e,"get",""),e[t]}};function Ol(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ml),slots:e.slots,emit:e.emit,expose:t}}function xn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Fr(go(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pt)return Pt[n](e)},has(t,n){return n in t||n in Pt}})):e.proxy}function Pl(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}function Il(e){return L(e)&&"__vccOpts"in e}const Rl=(e,t)=>vo(e,t,$t);function Fl(e,t,n){const s=arguments.length;return s===2?z(t)&&!R(t)?Ht(t)?ge(e,null,[t]):ge(e,t):ge(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Ht(n)&&(n=[n]),ge(e,t,n))}const Ll="3.5.12";/**
14
+ * @vue/runtime-dom v3.5.12
15
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
+ * @license MIT
17
+ **/let Xn;const Ws=typeof window<"u"&&window.trustedTypes;if(Ws)try{Xn=Ws.createPolicy("vue",{createHTML:e=>e})}catch{}const Ti=Xn?e=>Xn.createHTML(e):e=>e,Nl="http://www.w3.org/2000/svg",Dl="http://www.w3.org/1998/Math/MathML",He=typeof document<"u"?document:null,Gs=He&&He.createElement("template"),Hl={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 r=t==="svg"?He.createElementNS(Nl,e):t==="mathml"?He.createElementNS(Dl,e):n?He.createElement(e,{is:n}):He.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>He.createTextNode(e),createComment:e=>He.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>He.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Gs.innerHTML=Ti(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Gs.content;if(s==="svg"||s==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ke="transition",Tt="animation",bt=Symbol("_vtc"),Si={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},wi=se({},Ur,Si),$l=e=>(e.displayName="Transition",e.props=wi,e),If=$l((e,{slots:t})=>Fl(Ro,Ei(e),t)),st=(e,t=[])=>{R(e)?e.forEach(n=>n(...t)):e&&e(...t)},ks=e=>e?R(e)?e.some(t=>t.length>1):e.length>1:!1;function Ei(e){const t={};for(const A in e)A in Si||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:f=i,appearActiveClass:d=o,appearToClass:u=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:g=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,w=jl(r),E=w&&w[0],ee=w&&w[1],{onBeforeEnter:N,onEnter:V,onEnterCancelled:K,onLeave:O,onLeaveCancelled:j,onBeforeAppear:G=N,onAppear:ne=V,onAppearCancelled:te=K}=t,P=(A,Q,le)=>{Ue(A,Q?u:l),Ue(A,Q?d:o),le&&le()},D=(A,Q)=>{A._isLeaving=!1,Ue(A,h),Ue(A,v),Ue(A,g),Q&&Q()},k=A=>(Q,le)=>{const Xe=A?ne:V,re=()=>P(Q,A,le);st(Xe,[Q,re]),qs(()=>{Ue(Q,A?f:i),De(Q,A?u:l),ks(Xe)||Js(Q,s,E,re)})};return se(t,{onBeforeEnter(A){st(N,[A]),De(A,i),De(A,o)},onBeforeAppear(A){st(G,[A]),De(A,f),De(A,d)},onEnter:k(!1),onAppear:k(!0),onLeave(A,Q){A._isLeaving=!0;const le=()=>D(A,Q);De(A,h),De(A,g),Mi(),qs(()=>{A._isLeaving&&(Ue(A,h),De(A,v),ks(O)||Js(A,s,ee,le))}),st(O,[A,le])},onEnterCancelled(A){P(A,!1),st(K,[A])},onAppearCancelled(A){P(A,!0),st(te,[A])},onLeaveCancelled(A){D(A),st(j,[A])}})}function jl(e){if(e==null)return null;if(z(e))return[Fn(e.enter),Fn(e.leave)];{const t=Fn(e);return[t,t]}}function Fn(e){return ji(e)}function De(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[bt]||(e[bt]=new Set)).add(t)}function Ue(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[bt];n&&(n.delete(t),n.size||(e[bt]=void 0))}function qs(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Bl=0;function Js(e,t,n,s){const r=e._endId=++Bl,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:f}=Ai(e,t);if(!o)return s();const d=o+"end";let u=0;const h=()=>{e.removeEventListener(d,g),i()},g=v=>{v.target===e&&++u>=f&&h()};setTimeout(()=>{u<f&&h()},l+1),e.addEventListener(d,g)}function Ai(e,t){const n=window.getComputedStyle(e),s=w=>(n[w]||"").split(", "),r=s(`${Ke}Delay`),i=s(`${Ke}Duration`),o=Ys(r,i),l=s(`${Tt}Delay`),f=s(`${Tt}Duration`),d=Ys(l,f);let u=null,h=0,g=0;t===Ke?o>0&&(u=Ke,h=o,g=i.length):t===Tt?d>0&&(u=Tt,h=d,g=f.length):(h=Math.max(o,d),u=h>0?o>d?Ke:Tt:null,g=u?u===Ke?i.length:f.length:0);const v=u===Ke&&/\b(transform|all)(,|$)/.test(s(`${Ke}Property`).toString());return{type:u,timeout:h,propCount:g,hasTransform:v}}function Ys(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>zs(n)+zs(e[s])))}function zs(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Mi(){return document.body.offsetHeight}function Vl(e,t,n){const s=e[bt];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const on=Symbol("_vod"),Oi=Symbol("_vsh"),Rf={beforeMount(e,{value:t},{transition:n}){e[on]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):St(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),St(e,!0),s.enter(e)):s.leave(e,()=>{St(e,!1)}):St(e,t))},beforeUnmount(e,{value:t}){St(e,t)}};function St(e,t){e.style.display=t?e[on]:"none",e[Oi]=!t}const Kl=Symbol(""),Ul=/(^|;)\s*display\s*:/;function Wl(e,t,n){const s=e.style,r=X(n);let i=!1;if(n&&!r){if(t)if(X(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&Zt(s,l,"")}else for(const o in t)n[o]==null&&Zt(s,o,"");for(const o in n)o==="display"&&(i=!0),Zt(s,o,n[o])}else if(r){if(t!==n){const o=s[Kl];o&&(n+=";"+o),s.cssText=n,i=Ul.test(n)}}else t&&e.removeAttribute("style");on in e&&(e[on]=i?s.display:"",e[Oi]&&(s.display="none"))}const Qs=/\s*!important$/;function Zt(e,t,n){if(R(n))n.forEach(s=>Zt(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Gl(e,t);Qs.test(n)?e.setProperty(Ye(s),n.replace(Qs,""),"important"):e[s]=n}}const Xs=["Webkit","Moz","ms"],Ln={};function Gl(e,t){const n=Ln[t];if(n)return n;let s=we(t);if(s!=="filter"&&s in e)return Ln[t]=s;s=an(s);for(let r=0;r<Xs.length;r++){const i=Xs[r]+s;if(i in e)return Ln[t]=i}return t}const Zs="http://www.w3.org/1999/xlink";function er(e,t,n,s,r,i=Gi(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Zs,t.slice(6,t.length)):e.setAttributeNS(Zs,t,n):n==null||i&&!pr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Be(n)?String(n):n)}function tr(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Ti(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,f=n==null?e.type==="checkbox"?"on":"":String(n);(l!==f||!("_value"in e))&&(e.value=f),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=pr(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(r||t)}function at(e,t,n,s){e.addEventListener(t,n,s)}function kl(e,t,n,s){e.removeEventListener(t,n,s)}const nr=Symbol("_vei");function ql(e,t,n,s,r=null){const i=e[nr]||(e[nr]={}),o=i[t];if(s&&o)o.value=s;else{const[l,f]=Jl(t);if(s){const d=i[t]=Ql(s,r);at(e,l,d,f)}else o&&(kl(e,l,o,f),i[t]=void 0)}}const sr=/(?:Once|Passive|Capture)$/;function Jl(e){let t;if(sr.test(e)){t={};let s;for(;s=e.match(sr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ye(e.slice(2)),t]}let Nn=0;const Yl=Promise.resolve(),zl=()=>Nn||(Yl.then(()=>Nn=0),Nn=Date.now());function Ql(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Me(Xl(s,n.value),t,5,[s])};return n.value=e,n.attached=zl(),n}function Xl(e,t){if(R(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const rr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Zl=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?Vl(e,s,o):t==="style"?Wl(e,n,s):fn(t)?es(t)||ql(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ef(e,t,s,o))?(tr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&er(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!X(s))?tr(e,we(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),er(e,t,s,o))};function ef(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&rr(t)&&L(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return rr(t)&&X(n)?!1:t in e}const Pi=new WeakMap,Ii=new WeakMap,ln=Symbol("_moveCb"),ir=Symbol("_enterCb"),tf=e=>(delete e.props.mode,e),nf=tf({name:"TransitionGroup",props:se({},wi,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=vi(),s=Kr();let r,i;return zr(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!lf(r[0].el,n.vnode.el,o))return;r.forEach(sf),r.forEach(rf);const l=r.filter(of);Mi(),l.forEach(f=>{const d=f.el,u=d.style;De(d,o),u.transform=u.webkitTransform=u.transitionDuration="";const h=d[ln]=g=>{g&&g.target!==d||(!g||/transform$/.test(g.propertyName))&&(d.removeEventListener("transitionend",h),d[ln]=null,Ue(d,o))};d.addEventListener("transitionend",h)})}),()=>{const o=$(e),l=Ei(o);let f=o.tag||_e;if(r=[],i)for(let d=0;d<i.length;d++){const u=i[d];u.el&&u.el instanceof Element&&(r.push(u),ft(u,Nt(u,l,s,n)),Pi.set(u,u.el.getBoundingClientRect()))}i=t.default?ds(t.default()):[];for(let d=0;d<i.length;d++){const u=i[d];u.key!=null&&ft(u,Nt(u,l,s,n))}return ge(f,null,i)}}}),Ff=nf;function sf(e){const t=e.el;t[ln]&&t[ln](),t[ir]&&t[ir]()}function rf(e){Ii.set(e,e.el.getBoundingClientRect())}function of(e){const t=Pi.get(e),n=Ii.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",e}}function lf(e,t,n){const s=e.cloneNode(),r=e[bt];r&&r.forEach(l=>{l.split(/\s+/).forEach(f=>f&&s.classList.remove(f))}),n.split(/\s+/).forEach(l=>l&&s.classList.add(l)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:o}=Ai(s);return i.removeChild(s),o}const or=e=>{const t=e.props["onUpdate:modelValue"]||!1;return R(t)?n=>Yt(t,n):t};function ff(e){e.target.composing=!0}function lr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Dn=Symbol("_assign"),Lf={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Dn]=or(r);const i=s||r.props&&r.props.type==="number";at(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=Hn(l)),e[Dn](l)}),n&&at(e,"change",()=>{e.value=e.value.trim()}),t||(at(e,"compositionstart",ff),at(e,"compositionend",lr),at(e,"change",lr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[Dn]=or(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?Hn(e.value):e.value,f=t??"";l!==f&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===f)||(e.value=f))}},cf=["ctrl","shift","alt","meta"],uf={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>cf.some(n=>e[`${n}Key`]&&!t.includes(n))},Nf=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o<t.length;o++){const l=uf[t[o]];if(l&&l(r,t))return}return e(r,...i)})},af={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Df=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=Ye(r.key);if(t.some(o=>o===i||af[o]===i))return e(r)})},df=se({patchProp:Zl},Hl);let fr;function hf(){return fr||(fr=rl(df))}const Hf=(...e)=>{const t=hf().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=gf(s);if(!r)return;const i=t._component;!L(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,pf(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function pf(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function gf(e){return X(e)?document.querySelector(e):e}export{Cf as A,Ao as B,ge as C,Ff as D,wf as E,_e as F,pn as G,Nf as H,xl as I,Lf as J,Rf as K,hn as L,vl as M,If as N,Df as O,Ef as P,Mf as Q,_o as R,Qr as S,vf as T,Hf as U,Xr as a,fs as b,Rl as c,xf as d,Af as e,Yn as f,zn as g,Fl as h,Qt as i,Pf as j,Ir as k,vi as l,go as m,So as n,Yr as o,Cl as p,Of as q,_f as r,bf as s,yi as t,Sf as u,Tf as v,Pn as w,ki as x,mf as y,yf as z};
@@ -1,4 +1,4 @@
1
- import{t as B,N as ge,T as me,a as En,s as Uc,I as Dl,b as Gc,P as Tl,c as Yc,d as Zi,h as Jc,p as Xc,e as _c}from"./@lezer-D9M01xfV.js";import{c as V}from"./crelt-C8TCjufn.js";import{d as Qc,r as Li,s as Zc,c as Ut,w as Hr,o as ef,n as tf,a as nf,h as sf}from"./@vue-zv1stXxC.js";import{S as Ze}from"./style-mod-Bc2inJdb.js";import{k as rf,b as of,s as lf}from"./w3c-keyname-Vcq4gwWv.js";class R{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=Et(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),Oe.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Et(this,e,t);let i=[];return this.decompose(e,t,i,0),Oe.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new ni(this),r=new ni(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new ni(this,e)}iterRange(e,t=this.length){return new Ol(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new El(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?R.empty:e.length<=32?new $(e):Oe.from($.split(e,[]))}}class $ extends R{constructor(e,t=af(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?i:l)>=e)return new hf(s,l,i,o);s=l+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new $(Wr(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),l=en(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new $(l,o.length+r.length));else{let a=l.length>>1;i.push(new $(l.slice(0,a)),new $(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof $))return super.replace(e,t,i);[e,t]=Et(this,e,t);let s=en(this.text,en(i.text,Wr(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new $(s,r):Oe.from($.split(s,[]),r)}sliceString(e,t=this.length,i=`
1
+ import{t as B,N as ge,T as me,a as En,s as Uc,I as Dl,b as Gc,P as Tl,c as Yc,d as Zi,h as Jc,p as Xc,e as _c}from"./@lezer-D9M01xfV.js";import{c as V}from"./crelt-C8TCjufn.js";import{d as Qc,r as Li,s as Zc,c as Ut,w as Hr,o as ef,n as tf,a as nf,h as sf}from"./@vue-BUkdQqNw.js";import{S as Ze}from"./style-mod-Bc2inJdb.js";import{k as rf,b as of,s as lf}from"./w3c-keyname-Vcq4gwWv.js";class R{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=Et(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),Oe.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Et(this,e,t);let i=[];return this.decompose(e,t,i,0),Oe.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new ni(this),r=new ni(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new ni(this,e)}iterRange(e,t=this.length){return new Ol(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new El(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?R.empty:e.length<=32?new $(e):Oe.from($.split(e,[]))}}class $ extends R{constructor(e,t=af(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?i:l)>=e)return new hf(s,l,i,o);s=l+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new $(Wr(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),l=en(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new $(l,o.length+r.length));else{let a=l.length>>1;i.push(new $(l.slice(0,a)),new $(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof $))return super.replace(e,t,i);[e,t]=Et(this,e,t);let s=en(this.text,en(i.text,Wr(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new $(s,r):Oe.from($.split(s,[]),r)}sliceString(e,t=this.length,i=`
2
2
  `){[e,t]=Et(this,e,t);let s="";for(let r=0,o=0;r<=t&&o<this.text.length;o++){let l=this.text[o],a=r+l.length;r>e&&o&&(s+=i),e<a&&t>r&&(s+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],s=-1;for(let r of e)i.push(r),s+=r.length+1,i.length==32&&(t.push(new $(i,s)),i=[],s=-1);return s>-1&&t.push(new $(i,s)),t}}class Oe extends R{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,a=i+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,i,s);s=l+1,i=a+1}}decompose(e,t,i,s){for(let r=0,o=0;o<=t&&r<this.children.length;r++){let l=this.children[r],a=o+l.length;if(e<=a&&t>=o){let h=s&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!h?i.push(l):l.decompose(e-o,t-o,i,h)}o=a+1}}replace(e,t,i){if([e,t]=Et(this,e,t),i.lines<this.lines)for(let s=0,r=0;s<this.children.length;s++){let o=this.children[s],l=r+o.length;if(e>=r&&t<=l){let a=o.replace(e-r,t-r,i),h=this.lines-o.lines+a.lines;if(a.lines<h>>4&&a.lines>h>>6){let c=this.children.slice();return c[s]=a,new Oe(c,this.length-(t-e)+i.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
3
3
  `){[e,t]=Et(this,e,t);let s="";for(let r=0,o=0;r<this.children.length&&o<=t;r++){let l=this.children[r],a=o+l.length;o>e&&r&&(s+=i),e<a&&t>o&&(s+=l.sliceString(e-o,t-o,i)),o=a+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Oe))return 0;let i=0,[s,r,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,r+=t){if(s==o||r==l)return i;let a=this.children[s],h=e.children[r];if(a!=h)return i+a.scanIdentical(h,t);i+=a.length+1}}static from(e,t=e.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new $(d,t)}let s=Math.max(32,i>>5),r=s<<1,o=s>>1,l=[],a=0,h=-1,c=[];function f(d){let p;if(d.lines>r&&d instanceof Oe)for(let m of d.children)f(m);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof $&&a&&(p=c[c.length-1])instanceof $&&d.lines+p.lines<=32?(a+=d.lines,h+=d.length+1,c[c.length-1]=new $(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>s&&u(),a+=d.lines,h+=d.length+1,c.push(d))}function u(){a!=0&&(l.push(c.length==1?c[0]:Oe.from(c,h)),h=-1,a=c.length=0)}for(let d of e)f(d);return u(),l.length==1?l[0]:new Oe(l,t)}}R.empty=new $([""],0);function af(n){let e=-1;for(let t of n)e+=t.length+1;return e}function en(n,e,t=0,i=1e9){for(let s=0,r=0,o=!0;r<n.length&&s<=i;r++){let l=n[r],a=s+l.length;a>=t&&(a>i&&(l=l.slice(0,i-s)),s<t&&(l=l.slice(t-s)),o?(e[e.length-1]+=l,o=!1):e.push(l)),s=a+1}return e}function Wr(n,e,t){return en(n,[""],e,t)}class ni{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof $?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],o=r>>1,l=s instanceof $?s.text.length:s.children.length;if(o==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
4
4
  `,this;e--}else if(s instanceof $){let a=s.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=s.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof $?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Ol{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new ni(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class El{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(R.prototype[Symbol.iterator]=function(){return this.iter()},ni.prototype[Symbol.iterator]=Ol.prototype[Symbol.iterator]=El.prototype[Symbol.iterator]=function(){return this});class hf{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}}function Et(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}let Ct="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(n=>n?parseInt(n,36):1);for(let n=1;n<Ct.length;n++)Ct[n]+=Ct[n-1];function cf(n){for(let e=1;e<Ct.length;e+=2)if(Ct[e]>n)return Ct[e-1]<=n;return!1}function zr(n){return n>=127462&&n<=127487}const qr=8205;function te(n,e,t=!0,i=!0){return(t?Pl:ff)(n,e,i)}function Pl(n,e,t){if(e==n.length)return e;e&&Bl(n.charCodeAt(e))&&Ll(n.charCodeAt(e-1))&&e--;let i=Q(n,e);for(e+=ye(i);e<n.length;){let s=Q(n,e);if(i==qr||s==qr||t&&cf(s))e+=ye(s),i=s;else if(zr(s)){let r=0,o=e-2;for(;o>=0&&zr(Q(n,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function ff(n,e,t){for(;e>0;){let i=Pl(n,e-2,t);if(i<e)return i;e--}return 0}function Bl(n){return n>=56320&&n<57344}function Ll(n){return n>=55296&&n<56320}function Q(n,e){let t=n.charCodeAt(e);if(!Ll(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return Bl(i)?(t-55296<<10)+(i-56320)+65536:t}function rr(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function ye(n){return n<65536?1:2}const ms=/\r\n?|\n/;var Z=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(Z||(Z={}));class Re{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,s=0;t<this.sections.length;){let r=this.sections[t++],o=this.sections[t++];o<0?(e(i,s,r),s+=r):s+=o,i+=r}}iterChangedRanges(e,t=!1){gs(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?e.push(i,s):e.push(s,i)}return new Re(e)}composeDesc(e){return this.empty?e:e.empty?this:Rl(this,e)}mapDesc(e,t=!1){return e.empty?this:ys(this,e,t)}mapPos(e,t=-1,i=Z.Simple){let s=0,r=0;for(let o=0;o<this.sections.length;){let l=this.sections[o++],a=this.sections[o++],h=s+l;if(a<0){if(h>e)return r+(e-s);r+=l}else{if(i!=Z.Simple&&h>=e&&(i==Z.TrackDel&&s<e&&h>e||i==Z.TrackBefore&&s<e||i==Z.TrackAfter&&h>e))return null;if(h>e||h==e&&t<0&&!l)return e==s||t<0?r:r+a;r+=a}s=h}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return r}touchesRange(e,t=e){for(let i=0,s=0;i<this.sections.length&&s<=t;){let r=this.sections[i++],o=this.sections[i++],l=s+r;if(o>=0&&s<=t&&l>=e)return s<e&&l>t?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];e+=(e?" ":"")+i+(s>=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Re(e)}static create(e){return new Re(e)}}class J extends Re{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return gs(this,(t,i,s,r,o)=>e=e.replace(s,s+(i-t),o),!1),e}mapDesc(e,t=!1){return ys(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let s=0,r=0;s<t.length;s+=2){let o=t[s],l=t[s+1];if(l>=0){t[s]=l,t[s+1]=o;let a=s>>1;for(;i.length<a;)i.push(R.empty);i.push(o?e.slice(r,r+o):R.empty)}r+=o}return new J(t,i)}compose(e){return this.empty?e:e.empty?this:Rl(this,e,!0)}map(e,t=!1){return e.empty?this:ys(this,e,t,!0)}iterChanges(e,t=!1){gs(this,e,t)}get desc(){return Re.create(this.sections)}filter(e){let t=[],i=[],s=[],r=new ai(this);e:for(let o=0,l=0;;){let a=o==e.length?1e9:e[o++];for(;l<a||l==a&&r.len==0;){if(r.done)break e;let c=Math.min(r.len,a-l);ie(s,c,-1);let f=r.ins==-1?-1:r.off==0?r.ins:0;ie(t,c,f),f>0&&Ye(i,t,r.text),r.forward(c),l+=c}let h=e[o++];for(;l<h;){if(r.done)break e;let c=Math.min(r.len,h-l);ie(t,c,-1),ie(s,c,r.ins==-1?-1:r.off==0?r.ins:0),r.forward(c),l+=c}}return{changes:new J(t,i),filtered:Re.create(s)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],s=this.sections[t+1];s<0?e.push(i):s==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let s=[],r=[],o=0,l=null;function a(c=!1){if(!c&&!s.length)return;o<t&&ie(s,t-o,-1);let f=new J(s,r);l=l?l.compose(f.map(l)):f,s=[],r=[],o=0}function h(c){if(Array.isArray(c))for(let f of c)h(f);else if(c instanceof J){if(c.length!=t)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${t})`);a(),l=l?l.compose(c.map(l)):c}else{let{from:f,to:u=f,insert:d}=c;if(f>u||f<0||u>t)throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${t})`);let p=d?typeof d=="string"?R.of(d.split(i||ms)):d:R.empty,m=p.length;if(f==u&&m==0)return;f<o&&a(),f>o&&ie(s,f-o,-1),ie(s,u-f,m),Ye(r,s,p),o=u}}return h(e),a(!l),l}static empty(e){return new J(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let s=0;s<e.length;s++){let r=e[s];if(typeof r=="number")t.push(r,-1);else{if(!Array.isArray(r)||typeof r[0]!="number"||r.some((o,l)=>l&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;i.length<s;)i.push(R.empty);i[s]=R.of(r.slice(1)),t.push(r[0],i[s].length)}}}return new J(t,i)}static createSet(e,t){return new J(e,t)}}function ie(n,e,t,i=!1){if(e==0&&t<=0)return;let s=n.length-2;s>=0&&t<=0&&t==n[s+1]?n[s]+=e:e==0&&n[s]==0?n[s+1]+=t:i?(n[s]+=e,n[s+1]+=t):n.push(e,t)}function Ye(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<n.length)n[n.length-1]=n[n.length-1].append(t);else{for(;n.length<i;)n.push(R.empty);n.push(t)}}function gs(n,e,t){let i=n.inserted;for(let s=0,r=0,o=0;o<n.sections.length;){let l=n.sections[o++],a=n.sections[o++];if(a<0)s+=l,r+=l;else{let h=s,c=r,f=R.empty;for(;h+=l,c+=a,a&&i&&(f=f.append(i[o-2>>1])),!(t||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],a=n.sections[o++];e(s,h,r,c,f),s=h,r=c}}}function ys(n,e,t,i=!1){let s=[],r=i?[]:null,o=new ai(n),l=new ai(e);for(let a=-1;;)if(o.ins==-1&&l.ins==-1){let h=Math.min(o.len,l.len);ie(s,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len<o.len||l.len==o.len&&!t))){let h=l.len;for(ie(s,l.ins,-1);h;){let c=Math.min(o.len,h);o.ins>=0&&a<o.i&&o.len<=c&&(ie(s,0,o.ins),r&&Ye(r,s,o.text),a=o.i),o.forward(c),h-=c}l.next()}else if(o.ins>=0){let h=0,c=o.len;for(;c;)if(l.ins==-1){let f=Math.min(c,l.len);h+=f,c-=f,l.forward(f)}else if(l.ins==0&&l.len<c)c-=l.len,l.next();else break;ie(s,h,a<o.i?o.ins:0),r&&a<o.i&&Ye(r,s,o.text),a=o.i,o.forward(o.len-c)}else{if(o.done&&l.done)return r?J.createSet(s,r):Re.create(s);throw new Error("Mismatched change set lengths")}}function Rl(n,e,t=!1){let i=[],s=t?[]:null,r=new ai(n),o=new ai(e);for(let l=!1;;){if(r.done&&o.done)return s?J.createSet(i,s):Re.create(i);if(r.ins==0)ie(i,r.len,0,l),r.next();else if(o.len==0&&!o.done)ie(i,0,o.ins,l),s&&Ye(s,i,o.text),o.next();else{if(r.done||o.done)throw new Error("Mismatched change set lengths");{let a=Math.min(r.len2,o.len),h=i.length;if(r.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;ie(i,a,c,l),s&&c&&Ye(s,i,o.text)}else o.ins==-1?(ie(i,r.off?0:r.len,a,l),s&&Ye(s,i,r.textBit(a))):(ie(i,r.off?0:r.len,o.off?0:o.ins,l),s&&!o.off&&Ye(s,i,o.text));l=(r.ins>a||o.ins>=0&&o.len>a)&&(l||i.length>h),r.forward2(a),o.forward(a)}}}}class ai{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?R.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?R.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class ht{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,s;return this.empty?i=s=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new ht(i,s,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return b.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return b.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return b.range(e.anchor,e.head)}static create(e,t,i){return new ht(e,t,i)}}class b{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:b.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new b([this.main],0)}addRange(e,t=!0){return b.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,b.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new b(e.ranges.map(t=>ht.fromJSON(t)),e.main)}static single(e,t=e){return new b([b.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;s<e.length;s++){let r=e[s];if(r.empty?r.from<=i:r.from<i)return b.normalized(e.slice(),t);i=r.to}return new b(e,t)}static cursor(e,t=0,i,s){return ht.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(s??16777215)<<6)}static range(e,t,i,s){let r=(i??16777215)<<6|(s==null?7:Math.min(6,s));return t<e?ht.create(t,e,48|r):ht.create(e,t,(t>e?8:0)|r)}static normalized(e,t=0){let i=e[t];e.sort((s,r)=>s.from-r.from),t=e.indexOf(i);for(let s=1;s<e.length;s++){let r=e[s],o=e[s-1];if(r.empty?r.from<=o.to:r.from<o.to){let l=o.from,a=Math.max(r.to,o.to);s<=t&&t--,e.splice(--s,2,r.anchor>r.head?b.range(a,l):b.range(l,a))}}return new b(e,t)}}function Il(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let or=0;class k{constructor(e,t,i,s,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=s,this.id=or++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(e={}){return new k(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:lr),!!e.static,e.enables)}of(e){return new tn([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new tn(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new tn(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function lr(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class tn{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=or++}dynamicSlot(e){var t;let i=this.value,s=this.facet.compareInput,r=this.id,o=e[r]>>1,l=this.type==2,a=!1,h=!1,c=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?h=!0:((t=e[f.id])!==null&&t!==void 0?t:1)&1||c.push(e[f.id]);return{create(f){return f.values[o]=i(f),1},update(f,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||bs(f,c)){let d=i(f);if(l?!$r(d,f.values[o],s):!s(d,f.values[o]))return f.values[o]=d,1}return 0},reconfigure:(f,u)=>{let d,p=u.config.address[r];if(p!=null){let m=fn(u,p);if(this.dependencies.every(g=>g instanceof k?u.facet(g)===f.facet(g):g instanceof U?u.field(g,!1)==f.field(g,!1):!0)||(l?$r(d=i(f),m,s):s(d=i(f),m)))return f.values[o]=m,0}else d=i(f);return f.values[o]=d,1}}}}function $r(n,e,t){if(n.length!=e.length)return!1;for(let i=0;i<n.length;i++)if(!t(n[i],e[i]))return!1;return!0}function bs(n,e){let t=!1;for(let i of e)si(n,i)&1&&(t=!0);return t}function uf(n,e,t){let i=t.map(a=>n[a.id]),s=t.map(a=>a.type),r=i.filter(a=>!(a&1)),o=n[e.id]>>1;function l(a){let h=[];for(let c=0;c<i.length;c++){let f=fn(a,i[c]);if(s[c]==2)for(let u of f)h.push(u);else h.push(f)}return e.combine(h)}return{create(a){for(let h of i)si(a,h);return a.values[o]=l(a),1},update(a,h){if(!bs(a,r))return 0;let c=l(a);return e.compare(c,a.values[o])?0:(a.values[o]=c,1)},reconfigure(a,h){let c=bs(a,i),f=h.config.facets[e.id],u=h.facet(e);if(f&&!c&&lr(t,f))return a.values[o]=u,0;let d=l(a);return e.compare(d,u)?(a.values[o]=u,0):(a.values[o]=d,1)}}}const Kr=k.define({static:!0});class U{constructor(e,t,i,s,r){this.id=e,this.createF=t,this.updateF=i,this.compareF=s,this.spec=r,this.provides=void 0}static define(e){let t=new U(or++,e.create,e.update,e.compare||((i,s)=>i===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Kr).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,s)=>{let r=i.values[t],o=this.updateF(r,s);return this.compareF(r,o)?0:(i.values[t]=o,1)},reconfigure:(i,s)=>s.config.address[this.id]!=null?(i.values[t]=s.field(this),0):(i.values[t]=this.create(i),1)}}init(e){return[this,Kr.of({field:this,create:e})]}get extension(){return this}}const lt={lowest:4,low:3,default:2,high:1,highest:0};function Gt(n){return e=>new Nl(e,n)}const nt={highest:Gt(lt.highest),high:Gt(lt.high),default:Gt(lt.default),low:Gt(lt.low),lowest:Gt(lt.lowest)};class Nl{constructor(e,t){this.inner=e,this.prec=t}}class Pt{of(e){return new ws(this,e)}reconfigure(e){return Pt.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class ws{constructor(e,t){this.compartment=e,this.inner=t}}class cn{constructor(e,t,i,s,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let s=[],r=Object.create(null),o=new Map;for(let u of df(e,t,o))u instanceof U?s.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],h=[];for(let u of s)l[u.id]=h.length<<1,h.push(d=>u.slot(d));let c=i==null?void 0:i.config.facets;for(let u in r){let d=r[u],p=d[0].facet,m=c&&c[u]||[];if(d.every(g=>g.type==0))if(l[p.id]=a.length<<1|1,lr(m,d))a.push(i.facet(p));else{let g=p.combine(d.map(y=>y.value));a.push(i&&p.compare(g,i.facet(p))?i.facet(p):g)}else{for(let g of d)g.type==0?(l[g.id]=a.length<<1|1,a.push(g.value)):(l[g.id]=h.length<<1,h.push(y=>g.dynamicSlot(y)));l[p.id]=h.length<<1,h.push(g=>uf(g,p,d))}}let f=h.map(u=>u(l));return new cn(e,o,f,l,a,r)}}function df(n,e,t){let i=[[],[],[],[],[]],s=new Map;function r(o,l){let a=s.get(o);if(a!=null){if(a<=l)return;let h=i[a].indexOf(o);h>-1&&i[a].splice(h,1),o instanceof ws&&t.delete(o.compartment)}if(s.set(o,l),Array.isArray(o))for(let h of o)r(h,l);else if(o instanceof ws){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(o.compartment)||o.inner;t.set(o.compartment,h),r(h,l)}else if(o instanceof Nl)r(o.inner,o.prec);else if(o instanceof U)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof tn)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,lt.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(h,l)}}return r(n,lt.default),i.reduce((o,l)=>o.concat(l))}function si(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let s=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|s}function fn(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const Fl=k.define(),xs=k.define({combine:n=>n.some(e=>e),static:!0}),Vl=k.define({combine:n=>n.length?n[0]:void 0,static:!0}),Hl=k.define(),Wl=k.define(),zl=k.define(),ql=k.define({combine:n=>n.length?n[0]:!1});class je{constructor(e,t){this.type=e,this.value=t}static define(){return new pf}}class pf{of(e){return new je(this,e)}}class mf{constructor(e){this.map=e}of(e){return new O(this,e)}}class O{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new O(this.type,t)}is(e){return this.type==e}static define(e={}){return new mf(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let s of e){let r=s.map(t);r&&i.push(r)}return i}}O.reconfigure=O.define();O.appendConfig=O.define();class j{constructor(e,t,i,s,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&Il(i,t.newLength),r.some(l=>l.type==j.time)||(this.annotations=r.concat(j.time.of(Date.now())))}static create(e,t,i,s,r,o){return new j(e,t,i,s,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(j.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}j.time=je.define();j.userEvent=je.define();j.addToHistory=je.define();j.remote=je.define();function gf(n,e){let t=[];for(let i=0,s=0;;){let r,o;if(i<n.length&&(s==e.length||e[s]>=n[i]))r=n[i++],o=n[i++];else if(s<e.length)r=e[s++],o=e[s++];else return t;!t.length||t[t.length-1]<r?t.push(r,o):t[t.length-1]<o&&(t[t.length-1]=o)}}function $l(n,e,t){var i;let s,r,o;return t?(s=e.changes,r=J.empty(e.changes.length),o=n.changes.compose(e.changes)):(s=e.changes.map(n.changes),r=n.changes.mapDesc(e.changes,!0),o=n.changes.compose(s)),{changes:o,selection:e.selection?e.selection.map(r):(i=n.selection)===null||i===void 0?void 0:i.map(s),effects:O.mapEffects(n.effects,s).concat(O.mapEffects(e.effects,r)),annotations:n.annotations.length?n.annotations.concat(e.annotations):e.annotations,scrollIntoView:n.scrollIntoView||e.scrollIntoView}}function vs(n,e,t){let i=e.selection,s=Mt(e.annotations);return e.userEvent&&(s=s.concat(j.userEvent.of(e.userEvent))),{changes:e.changes instanceof J?e.changes:J.of(e.changes||[],t,n.facet(Vl)),selection:i&&(i instanceof b?i:b.single(i.anchor,i.head)),effects:Mt(e.effects),annotations:s,scrollIntoView:!!e.scrollIntoView}}function Kl(n,e,t){let i=vs(n,e.length?e[0]:{},n.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let r=1;r<e.length;r++){e[r].filter===!1&&(t=!1);let o=!!e[r].sequential;i=$l(i,vs(n,e[r],o?i.changes.newLength:n.doc.length),o)}let s=j.create(n,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return bf(t?yf(s):s)}function yf(n){let e=n.startState,t=!0;for(let s of e.facet(Hl)){let r=s(n);if(r===!1){t=!1;break}Array.isArray(r)&&(t=t===!0?r:gf(t,r))}if(t!==!0){let s,r;if(t===!1)r=n.changes.invertedDesc,s=J.empty(e.doc.length);else{let o=n.changes.filter(t);s=o.changes,r=o.filtered.mapDesc(o.changes).invertedDesc}n=j.create(e,s,n.selection&&n.selection.map(r),O.mapEffects(n.effects,r),n.annotations,n.scrollIntoView)}let i=e.facet(Wl);for(let s=i.length-1;s>=0;s--){let r=i[s](n);r instanceof j?n=r:Array.isArray(r)&&r.length==1&&r[0]instanceof j?n=r[0]:n=Kl(e,Mt(r),!1)}return n}function bf(n){let e=n.startState,t=e.facet(zl),i=n;for(let s=t.length-1;s>=0;s--){let r=t[s](n);r&&Object.keys(r).length&&(i=$l(i,vs(e,r,n.changes.newLength),!0))}return i==n?n:j.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const wf=[];function Mt(n){return n==null?wf:Array.isArray(n)?n:[n]}var z=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(z||(z={}));const xf=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let ks;try{ks=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function vf(n){if(ks)return ks.test(n);for(let e=0;e<n.length;e++){let t=n[e];if(/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||xf.test(t)))return!0}return!1}function kf(n){return e=>{if(!/\S/.test(e))return z.Space;if(vf(e))return z.Word;for(let t=0;t<n.length;t++)if(e.indexOf(n[t])>-1)return z.Word;return z.Other}}class E{constructor(e,t,i,s,r,o){this.config=e,this.doc=t,this.selection=i,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)si(this,l<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return si(this,i),fn(this,i)}update(...e){return Kl(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:s}=t;for(let l of e.effects)l.is(Pt.reconfigure)?(t&&(s=new Map,t.compartments.forEach((a,h)=>s.set(h,a)),t=null),s.set(l.value.compartment,l.value.extension)):l.is(O.reconfigure)?(t=null,i=l.value):l.is(O.appendConfig)&&(t=null,i=Mt(i).concat(l.value));let r;t?r=e.startState.values.slice():(t=cn.resolve(i,s,this),r=new E(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,h)=>h.reconfigure(a,this),null).values);let o=e.startState.facet(xs)?e.newSelection:e.newSelection.asSingle();new E(t,e.newDoc,o,r,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:b.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),s=this.changes(i.changes),r=[i.range],o=Mt(i.effects);for(let l=1;l<t.ranges.length;l++){let a=e(t.ranges[l]),h=this.changes(a.changes),c=h.map(s);for(let u=0;u<l;u++)r[u]=r[u].map(c);let f=s.mapDesc(h,!0);r.push(a.range.map(f)),s=s.compose(c),o=O.mapEffects(o,c).concat(O.mapEffects(Mt(a.effects),f))}return{changes:s,selection:b.create(r,t.mainIndex),effects:o}}changes(e=[]){return e instanceof J?e:J.of(e,this.doc.length,this.facet(E.lineSeparator))}toText(e){return R.of(e.split(this.facet(E.lineSeparator)||ms))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(si(this,t),fn(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let s=e[i];s instanceof U&&this.config.address[s.id]!=null&&(t[i]=s.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(i){for(let r in i)if(Object.prototype.hasOwnProperty.call(e,r)){let o=i[r],l=e[r];s.push(o.init(a=>o.spec.fromJSON(l,a)))}}return E.create({doc:e.doc,selection:b.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=cn.resolve(e.extensions||[],new Map),i=e.doc instanceof R?e.doc:R.of((e.doc||"").split(t.staticFacet(E.lineSeparator)||ms)),s=e.selection?e.selection instanceof b?e.selection:b.single(e.selection.anchor,e.selection.head):b.single(0);return Il(s,i.length),t.staticFacet(xs)||(s=s.asSingle()),new E(t,i,s,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(E.tabSize)}get lineBreak(){return this.facet(E.lineSeparator)||`
@@ -0,0 +1,19 @@
1
+ /* empty css */import{s as rt,a as qt,b as Kt,u as pt,c as ft,d as Ge,e as ue,f as R,g as Ce,h as Me,i as Mt,j as Xt,k as Xe,l as zt,m as Ht,n as Qt,o as Gt,p as Yt,q as Jt,P as Zt,T as eo,D as to}from"./primevue-vy0M_DVI.js";import{d as T,r as u,w as F,g as H,R as r,f as b,o as X,q as C,t as v,x as E,C as k,B as ne,F as W,E as se,e as oo,n as ao,c as Pe,j as B,I as xe,H as vt,i as be,S as no,b as so,z as Ie,K as Se,U as lo}from"./@vue-BUkdQqNw.js";import{S as ro,l as io,p as uo,s as co}from"./codemirror-Bdii5hJ-.js";import{b as Y,E as it,B as po,p as fo,l as vo}from"./blockly-BA4rjO3i.js";import{q as mo}from"./qrcode-generator-D27alG57.js";import{defaultPaths as go,plugins as ho}from"../plugins/plugins.js";import"./@lezer-D9M01xfV.js";import"./crelt-C8TCjufn.js";import"./style-mod-Bc2inJdb.js";import"./w3c-keyname-Vcq4gwWv.js";(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const l of n)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function t(n){const l={};return n.integrity&&(l.integrity=n.integrity),n.referrerPolicy&&(l.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?l.credentials="include":n.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(n){if(n.ep)return;n.ep=!0;const l=t(n);fetch(n.href,l)}})();const Be="py lua json ck",mt="py lua ck",gt="json",bo={py:"Python",lua:"Lua",ck:"Chuck",json:"JSON",txt:"Text plain"},ht={name:"Python",extension:"py"},bt={name:"Lua",extension:"lua"};var h=(e=>(e[e.OK=0]="OK",e[e.FAILED=1]="FAILED",e[e.CHANGE=2]="CHANGE",e[e.WITHOUTCHANGE=3]="WITHOUTCHANGE",e[e.REQUEST=4]="REQUEST",e[e.REQUEST_SELECT_FILE_IN_TABVIEW=5]="REQUEST_SELECT_FILE_IN_TABVIEW",e[e.EXISTS=6]="EXISTS",e[e.NOEXIST=7]="NOEXIST",e[e.FOUND=8]="FOUND",e[e.NOTFOUND=9]="NOTFOUND",e[e.ADDED=10]="ADDED",e[e.SAVED=11]="SAVED",e[e.UNSAVED=12]="UNSAVED",e[e.SET_WS=13]="SET_WS",e[e.ENABLED=14]="ENABLED",e[e.DESABLED=15]="DESABLED",e))(h||{}),Ee=(e=>(e[e.TOAST=0]="TOAST",e[e.TEXT_PRINT=1]="TEXT_PRINT",e[e.TEXT_AREA=2]="TEXT_AREA",e[e.URL_PRINT=3]="URL_PRINT",e[e.TERM=4]="TERM",e))(Ee||{}),me=(e=>(e[e.YES_OR_NO_QUESTION=0]="YES_OR_NO_QUESTION",e[e.UPLOADFILE=1]="UPLOADFILE",e))(me||{}),M=(e=>(e[e.WELCOME=0]="WELCOME",e[e.CODEMIRROR=1]="CODEMIRROR",e[e.BLOCKLY=2]="BLOCKLY",e[e.FREE=3]="FREE",e))(M||{}),ce=(e=>(e[e.EN=0]="EN",e[e.ES=1]="ES",e))(ce||{}),V=(e=>(e[e.UNIX=0]="UNIX",e[e.WINDOWS=1]="WINDOWS",e[e.LINUX=2]="LINUX",e[e.MACOS=3]="MACOS",e[e.UNKNOW=4]="UNKNOW",e))(V||{}),ze=(e=>(e[e.WEBSOCKET=0]="WEBSOCKET",e[e.TCP_IP=1]="TCP_IP",e[e.SERIAL=2]="SERIAL",e))(ze||{}),ie=(e=>(e[e.RELATIVE=0]="RELATIVE",e[e.ABSOLUTE=1]="ABSOLUTE",e[e.UNKNOW=2]="UNKNOW",e))(ie||{});function yo(e){switch(e){case ht.extension:return uo();case bt.extension:return ro.define(io);default:return}}const wo=T({__name:"TextEditor",props:["projects","index","update","activate","workspace"],emits:["content-cursor-index"],setup(e,{emit:o}){const t=e,a=o,n=u(""),l=u(),s=u();return F(()=>[t.index,t.update],async()=>{t.projects.length>0&&t.workspace==M.CODEMIRROR&&(s.value.setCursor(0),l.value=yo(t.projects[t.index].extension),n.value=t.projects[t.index].content)}),F(n,y=>{a("content-cursor-index",y,s.value.getCursor(),t.index)}),(y,d)=>(b(),H(r(co),{ref_key:"cm",ref:s,modelValue:n.value,"onUpdate:modelValue":d[0]||(d[0]=i=>n.value=i),basic:"","tab-size":2,dark:!1,gutter:!0,tab:!0,lang:l.value},null,8,["modelValue","lang"]))}});function _o(){const e=navigator.userAgent||navigator.vendor||window.opera;return/windows/i.test(e)?V.WINDOWS:/macintosh|mac os x/i.test(e)||/linux/i.test(e)?V.UNIX:V.UNKNOW}function yt(e,o){for(let t=0;t<e.length;t++)if(e[t]==o)return{status:h.FOUND,data:t};return{status:h.NOTFOUND}}function Ye(e){const o=/^[a-zA-Z]:[\\/]/,t=/^\//,a=/^(?:\.\\|\.\.\\|[^\/\\:*?"<>|]+(?:\\|$))/,n=/^(?:\.\.\/|\.\/|[^\/]+(?:\/|$))/;if(o.test(e))return{so:V.WINDOWS,pathType:ie.ABSOLUTE};if(t.test(e))return{so:V.UNIX,pathType:ie.ABSOLUTE};if(a.test(e)&&e.includes("\\"))return{so:V.WINDOWS,pathType:ie.RELATIVE};if(n.test(e)&&e.includes("/"))return{so:V.UNIX,pathType:ie.RELATIVE};if(/^[^\/\\:*?"<>|]+$/.test(e)){const l=_o();return{so:l==V.UNKNOW?V.UNIX:l,pathType:ie.RELATIVE}}return{so:V.UNKNOW,pathType:ie.UNKNOW}}const ko=1,Eo=3e4;let ve,oe,Co=1;const he=new Map,He=new Map,A={role:"",capabilities:[],name:"",folder:"",guestSerial:!1},xo=4001,wt=[];function Do(e){wt.push(e)}const _t="catalejo.guestName";function Je(){const e=location.hostname;return!(e=="localhost"||e=="::1"||e=="[::1]"||/^127\./.test(e))}function Oo(){try{return localStorage.getItem(_t)||""}catch{return""}}function kt(){return new URLSearchParams(location.search).get("c")||""}let ge;const Et=[];async function jo(e,o){ge={name:e,code:o};try{await ye();try{localStorage.setItem(_t,e)}catch{}for(const t of Et.splice(0))t();return{status:h.OK}}catch(t){return ge=void 0,J("guestLogin",t)}}const Q={name:"",root:""},Ct=new Map;function Qe(e,o){const t=He.get(e)||[];t.push(o),He.set(e,t)}function Io(e){for(const[o,t]of he)clearTimeout(t.timer),t.reject({code:-1,message:e}),he.delete(o)}function So(e){const o=JSON.parse(e.data);if(o.id!==void 0&&o.id!==null){const t=he.get(o.id);t&&(he.delete(o.id),clearTimeout(t.timer),o.error?t.reject(o.error):t.resolve(o.result))}else if(o.method){o.method=="share.changed"&&typeof o.params.guestSerial=="boolean"&&(A.guestSerial=o.params.guestSerial),o.method=="workspace.changed"&&$e("workspace.get",{}).then(t=>Ze(t.name,t.root||"")).catch(t=>console.error("workspace.get",t));for(const t of He.get(o.method)||[])t(o.params)}}function $e(e,o,t=Eo){return new Promise((a,n)=>{const l=Co++,s=setTimeout(()=>{he.delete(l),n({code:-1,message:"El backend no respondió: "+e})},t);he.set(l,{resolve:a,reject:n,timer:s}),ve.send(JSON.stringify({jsonrpc:"2.0",id:l,method:e,params:o}))})}async function ye(){return Je()&&!ge&&await new Promise(e=>Et.push(e)),No()}function No(){return ve&&ve.readyState==WebSocket.OPEN&&!oe?Promise.resolve():oe||(oe=new Promise((e,o)=>{const t=location.protocol=="https:"?"wss:":"ws:",a=new WebSocket(t+"//"+location.host+"/ws");ve=a;let n=!1;a.onmessage=So,a.onclose=l=>{if(ve===a&&(ve=void 0,oe=void 0),Io("Se perdió la conexión con el backend"),o({code:-1,message:"No hay conexión con el backend"}),n)for(const s of wt)s(l.code,l.reason)},a.onopen=async()=>{try{const l={client:"catalejo-vue3-desktop",api:ko,code:kt()};ge&&(l.code=ge.code,l.name=ge.name);const s=await $e("session.hello",l);A.role=s.role,A.capabilities=s.capabilities,A.name=s.name||"",A.folder=s.folder||"",A.guestSerial=s.guestSerial===!0;const y=await $e("workspace.get",{});Ze(y.name,y.root||""),n=!0,oe=void 0,e()}catch(l){oe=void 0,a.close(),o(l)}}}),oe)}async function G(e,o={},t){return await ye(),await $e(e,o,t)}window.catalejo={call:G,onEvent:Qe,session:A};function J(e,o){return console.error(e,o),{status:h.FAILED,data:o}}function Ze(e,o){Q.name=e,Q.root=o,o!=""&&Ct.set(e,o)}function ae(e){return e.replace(/\\/g,"/").replace(/\/+$/,"")}function et(e){if(A.role!="guest"||A.folder==""||Q.name=="")return e;const o=ae(e).replace(/^\.\//,"").split("/");return o[0]!=Q.name?e:(o[0]=A.folder.split("/").pop()||o[0],o.join("/"))}function xt(e){return/^([a-zA-Z]:)?\//.test(ae(e))}function Dt(e,o){const t=/^[a-zA-Z]:/.test(o),a=t?e.toLowerCase():e,n=t?o.toLowerCase():o;return a==n||a.startsWith(n+"/")}function Fe(e){let o=ae(e).replace(/^\.\//,"");if(xt(o)){const a=ae(Q.root);if(a==""||!Dt(o,a))throw{code:1001,message:"La ruta no está en la carpeta de trabajo: "+e};return o.substring(a.length+1)}const t=o.split("/").filter(a=>a!=""&&a!=".");if(t[0]!=Q.name)throw{code:1001,message:'La ruta no está en la carpeta de trabajo "'+Q.name+'": '+e};return t.slice(1).join("/")}async function Lo(e){const o=ae(e).replace(/^\.\//,"");let t="";if(xt(o)){if(Q.root!=""&&Dt(o,ae(Q.root)))return;t=o}else{const n=o.split("/")[0];if(n==Q.name||(t=Ct.get(n)||"",t==""))return}const a=await G("workspace.set",{root:t});Ze(ae(a.root).split("/").pop()||"",a.root)}const Ve=new Map;async function Po(e){try{await ye(),await Lo(e);const o=await G("fs.list",{path:Fe(e)}),t=ae(e),a=[];for(const n of o.entries)n.type=="file"&&a.push(t+"/"+n.name);return{status:h.OK,data:a}}catch(o){return J("getDirContent",o)}}async function $o(e){try{await ye();const o=await G("fs.read",{path:Fe(e)});return Ve.set(e,o.version),{status:h.OK,data:o.content}}catch(o){return J("readFile",o)}}async function Vo(e,o){try{await ye();const t=await G("fs.write",{path:Fe(e),content:o,version:Ve.get(e)});return Ve.set(e,t.version),{status:h.OK}}catch(t){return J("saveFile",t)}}async function Bo(e){try{return await ye(),await G("fs.delete",{path:Fe(e)}),Ve.delete(e),{status:h.OK}}catch(o){return J("deleteFile",o)}}async function Fo(){try{return await G("session.shutdown",{}),{status:h.OK}}catch(e){return J("shutdownBackend",e)}}async function To(){try{return{status:h.OK,data:await G("share.get",{})}}catch(e){return J("getShare",e)}}async function Uo(e){try{return{status:h.OK,data:await G("share.set",e)}}catch(o){return J("setShare",o)}}async function Ro(e){try{const o=e.get("file");if(!(o instanceof File))throw{code:-32602,message:"No hay archivo para subir"};let t;try{t=new TextDecoder("utf-8",{fatal:!0}).decode(await o.arrayBuffer())}catch{throw{code:1005,message:"Solo se pueden subir archivos de texto: "+o.name}}return await G("fs.write",{path:o.name,content:t}),{status:h.OK}}catch(o){return J("uploadFile",o)}}function Wo(e){const o=Ye(e);if(o.so==V.UNIX){const t=e.split("/").pop(),a=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:a||""}}else if(o.so==V.WINDOWS){const t=e.split("\\").pop(),a=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:a||""}}else return{path:"",filename:"",extension:""}}function Ao(e){return Be.includes(e)?"pi pi-file-edit":""}function qo(e){let o=[];for(let t=0;t<e.length;t++){const a=Wo(e[t]);o.push({key:String(t),label:a.filename,leaf:!0,icon:a.extension!=""?Ao(a.extension):"",data:a.path,extension:a.extension})}return o}function Ko(e){const o=Ye(e);if(o.so==V.UNIX){const t=e.split("/").pop();return(e.includes(".")?e.split(".").pop():"")!=""?{status:h.FAILED}:{status:h.OK,data:{path:e,dirname:t||"noname"}}}else if(o.so==V.WINDOWS){const t=e.split("\\").pop();return(e.includes(".")?e.split(".").pop():"")!=""?{status:h.FAILED}:{status:h.OK,data:{path:e,dirname:t||"noname"}}}else return{status:h.FAILED}}function Mo(e){let o=[];for(let t=0;t<e.length;t++){const a=Ko(e[t]);if(a.status==h.OK){const n=et(a.data.path);o.push({key:String(t),label:n!=a.data.path?n.split("/").pop():a.data.dirname,leaf:!0,icon:"pi pi-folder",data:a.data.path})}}return o}const ut={dirTitle:{en:"Directories:",es:"Directorios:"},fileTitle:{en:"Files:",es:"Archivos:"}},Ne={menu:{en:"",es:""},save:{en:"Save",es:"Guardar"},close:{en:"Close",es:"cerrar"},config:{en:"Config",es:"Configurar"}},P={save:{en:"Save",es:"Guardar"},close:{en:"Close",es:"cerrar"},file:{en:"File",es:"Archivo"},opendir:{en:"Open dir",es:"Abrir directorio"},selectDirPath:{header:{en:"Put dir path.",es:"Poner ruta de directorio"}},newProject:{en:"New project",es:"Nuevo proyecto"},delete:{en:"Delete file",es:"Borrar archivo"},fileUpload:{en:"Upload files",es:"Subir archivos"},shutdown:{en:"Close Catalejo",es:"Cerrar Catalejo"},share:{en:"Share on the network",es:"Compartir en la red"},dialogShutdown:{title:{en:"Close Catalejo?",es:"¿Cerrar Catalejo?"},content:{en:"Catalejo will close for everyone connected. Unsaved changes will be lost.",es:"Catalejo se cerrará para todos los que estén conectados. Los cambios sin guardar se perderán."}},dialogDeleteFile:{title:{en:"Delete file?",es:"¿Borrar archivo?"},content:{en:"Do you want delete the file: ",es:"Quiere borrar el archivo: "}},dialogNewProject:{header:{en:"New project",es:"Nuevo proyecto"},labelInput:{en:"1. Insert a file name for project, the extension file will created atomatically.",es:"1. Agregar un nombre de archivo para el proyecto, la extensión será creada automáticamente."},labelDirPath:{en:"The project file will created in the path: ",es:"El proyecto será creado en el path: "},labelSelectPlatform:{en:"2. Select a platform compatible with editor: ",es:"2. Seleccionar una plataforma compatible con el editor: "},labelSelectProjectType:{en:"3. Select project type to create.",es:"3. Selecciona el tipo de proyecto a crear."}},dialogButtonYesNo:{ok:{en:"Yes",es:"Sí"},close:{en:"Cancel",es:"Cancelar"}},dialogButton:{ok:{en:"Ok",es:"Ok"},close:{en:"Close",es:"Cerrar"}}},j={share:{title:{en:"Share on the network",es:"Compartir en la red"},toggle:{en:"Share this Catalejo with other devices on the network",es:"Compartir este Catalejo con otros equipos de la red"},locked:{en:"In the server profile Catalejo is always shared.",es:"En el perfil servidor Catalejo siempre se comparte."},off:{en:"Only this computer can use Catalejo. When you share, others on the same network can open it in their browser with the address and code shown here.",es:"Solo este equipo usa Catalejo. Al compartir, otros en la misma red pueden abrirlo en su navegador con la dirección y el código que aparecen aquí."},code:{en:"Access code",es:"Código de acceso"},addresses:{en:"Open in the browser of the other device (or scan the code):",es:"Abrir en el navegador del otro equipo (o escanear el código):"},noAddress:{en:"This computer has no network address. Connect it to a WiFi or cable network.",es:"Este equipo no tiene dirección de red. Conéctelo a una red WiFi o de cable."},folders:{en:"Each guest works in their own folder: work/invitados/<name>/.",es:"Cada invitado trabaja en su propia carpeta: work/invitados/<nombre>/."},guestSerial:{en:"Allow guests to use the serial ports of this computer",es:"Permitir que los invitados usen los puertos serial de este equipo"},guests:{en:"Guests connected:",es:"Invitados conectados:"},noGuests:{en:"No guests connected.",es:"No hay invitados conectados."},stopNote:{en:"When you stop sharing, guests are disconnected.",es:"Al dejar de compartir se desconecta a los invitados."},error:{en:"Sharing could not be changed",es:"No se pudo cambiar el modo de compartir"},status:{en:"Sharing · guests: ",es:"Compartiendo · invitados: "},stopped:{en:"The person sharing Catalejo stopped sharing. You can close this tab.",es:"Quien compartía Catalejo dejó de compartir. Puede cerrar esta pestaña."}},guest:{title:{en:"Join Catalejo",es:"Entrar a Catalejo"},intro:{en:"You are opening the Catalejo of another computer. Write your name: your work is saved in a folder with that name.",es:"Está abriendo el Catalejo de otro equipo. Escriba su nombre: su trabajo se guarda en una carpeta con ese nombre."},name:{en:"Your name",es:"Su nombre"},code:{en:"Access code",es:"Código de acceso"},enter:{en:"Enter",es:"Entrar"},noConnection:{en:"Could not connect to the computer that shares Catalejo.",es:"No se pudo conectar con el equipo que comparte Catalejo."},status:{en:"Guest: ",es:"Invitado: "},serialRemote:{en:"Serial ports are those of the computer that shares",es:"Los puertos serial son los del equipo que comparte"},serialOff:{en:"Serial ports not available",es:"Sin puertos serial"}},shutdown:{closed:{en:"Catalejo was closed. You can close this tab.",es:"Catalejo se cerró. Puede cerrar esta pestaña."},error:{en:"Catalejo could not be closed",es:"No se pudo cerrar Catalejo"},hostOnly:{en:"Only the person sharing Catalejo can close it",es:"Solo quien comparte Catalejo puede cerrarlo"}},savefile:{ok:{en:"File save",es:"Archivo guardado"},error:{en:"Don't save file",es:"No se guardó el archivo"}},deleteFile:{ok:{en:"The file has been deleted",es:"El archivo ha sido eliminado"},error:{en:"The file was not deleted",es:"El archivo no fue borrado"}},titleConfigProjectDialog:{en:"Config project",es:"Configuar proyecto"},dialogButton:{ok:{en:"Ok",es:"Ok"},close:{en:"Close",es:"Cerrar"}},dialogButtonYesNo:{ok:{en:"Yes",es:"Sí"},close:{en:"Cancel",es:"Cancelar"}},toastProccess:{en:"In process",es:"En proceso"},toastUpdateContentDir:{en:"Updated files in editor from directory: ",es:"Archivos actualizados en el editor desde directorio: "}},Xo={scrollableTabsDefault:{en:"Projects loaded in workspace",es:"Proyectos cargados en el área de trabajo"}};function _(e,o){return o==ce.EN?e.en:o==ce.ES?e.es:"noname"}const zo={class:"card flex justify-content-center"},Ho={for:"mask",class:"font-bold block mb-2"},Qo={for:"mask",class:"font-bold block mb-2"},Go=T({__name:"TreeView",props:["dirPaths","dirPathsLength","filePaths","lang"],emits:["dir-path-selected","file-selected"],setup(e,{emit:o}){const t=e,a=o,n=u(),l=u(),s=u(""),y=u("");X(()=>{s.value=_(ut.dirTitle,t.lang),y.value=_(ut.fileTitle,t.lang)});const d=f=>{console.log(f.data),a("dir-path-selected",f.data)},i=f=>{console.log(f.data),a("file-selected",f.data)};return F(()=>t.dirPathsLength,()=>{l.value=Mo(t.dirPaths)}),F(()=>t.filePaths,async f=>{n.value=qo(f)}),(f,c)=>(b(),C("div",zo,[v("label",Ho,E(s.value),1),k(r(rt),{value:l.value,selectionMode:"single",onNodeSelect:d,class:"w-full md:w-30rem"},null,8,["value"]),v("label",Qo,E(y.value),1),k(r(rt),{value:n.value,selectionMode:"single",onNodeSelect:i,class:"w-full md:w-30rem"},null,8,["value"])]))}}),Z=(e,o)=>{const t=e.__vccOpts||e;for(const[a,n]of o)t[a]=n;return t},Yo=Z(Go,[["__scopeId","data-v-7d510def"]]);function Jo(e){let o=[];for(let t=0;t<e.length;t++)o.push({title:e[t].filename,indexOfProject:t});return o}const Zo={id:"divTabview",class:"card"},ea=T({__name:"TabViewEditor",props:["index","update","projects","contentchanges","lang"],emits:["index-of-project-to-load"],setup(e,{emit:o}){const t=o,a=e,n=u([]),l=u(0),s=d=>a.projects.length>0?Jo(a.projects):[{title:_(Xo.scrollableTabsDefault,d),indexOfProject:-1}];F(()=>[a.index,a.update],([d])=>{n.value=s(a.lang),a.projects.length>0?l.value=d:l.value=0}),F(()=>a.lang,d=>{n.value=s(d)}),X(()=>{n.value=s(a.lang)});const y=d=>{t("index-of-project-to-load",d.index)};return(d,i)=>(b(),C("div",Zo,[k(r(qt),{scrollable:!0,onTabClick:y,activeIndex:l.value,"onUpdate:activeIndex":i[0]||(i[0]=f=>l.value=f)},{default:ne(()=>[(b(!0),C(W,null,se(n.value,f=>(b(),H(r(Kt),{key:f.title,header:f.title},null,8,["header"]))),128))]),_:1},8,["activeIndex"])]))}}),ta=Z(ea,[["__scopeId","data-v-8ef45e55"]]);function Ot(e,o){for(let t=0;t<e.length;t++)if(e[t].path===o)return{status:h.EXISTS,data:t};return{status:h.NOEXIST}}async function oa(e,o){const t=It(o);if(t.extension=="")return{status:h.WITHOUTCHANGE};if(!Be.includes(t.extension))return{status:h.WITHOUTCHANGE};const a=Ot(e,t.path);if(a.status==h.EXISTS)return{status:h.REQUEST_SELECT_FILE_IN_TABVIEW,data:a.data};{const n=await $o(t.path);if(n.status==0){const l=t.extension=="json"?JSON.parse(n.data):{},s=tt(n.data,t.extension),y={path:t.path,filename:t.filename,extension:t.extension,content:n.data,blocklycode:l.blocklycode||void 0,codemirrorCursor:0,config:s,status:h.ADDED};return e.push(y),{status:h.REQUEST_SELECT_FILE_IN_TABVIEW,data:e.length-1}}else return{status:h.WITHOUTCHANGE}}}async function aa(e,o,t){const a=It(o);if(a.extension=="")return{status:h.WITHOUTCHANGE};if(!Be.includes(a.extension))return{status:h.WITHOUTCHANGE};const n=Ot(e,a.path);if(n.status==h.EXISTS)return{status:h.REQUEST_SELECT_FILE_IN_TABVIEW,data:n.data};if(t!=""){const l=a.extension=="json"?JSON.parse(t):{},s=tt(t,a.extension),y={path:a.path,filename:a.filename,extension:a.extension,content:t,blocklycode:l.blocklycode||void 0,codemirrorCursor:0,config:s,status:h.ADDED};return e.push(y),{status:h.REQUEST_SELECT_FILE_IN_TABVIEW,data:e.length-1}}else return{status:h.WITHOUTCHANGE}}function na(e,o){return e!==void 0&&e.length>o?(e.splice(o,1),{status:h.OK}):{status:h.FAILED}}function sa(e,o,t,a){return e[a].content=o,e[a].codemirrorCursor=t,e[a].status=h.UNSAVED,{status:h.OK}}function la(e,o,t){return e[t].blocklycode=o,e[t].status=h.UNSAVED,{status:h.OK}}function ra(e){return gt.includes(e.extension)?{status:h.SET_WS,data:M.BLOCKLY}:mt.includes(e.extension)?{status:h.SET_WS,data:M.CODEMIRROR}:{status:h.SET_WS,data:M.WELCOME}}function ia(e,o){const t=e[o];if(t.extension=="json"&&t.blocklycode!==void 0){const a={config:t.config||"",blocklycode:t.blocklycode};e[o].content=JSON.stringify(a)}return{status:h.OK}}function ua(e,o,t){const a=e[o];let n;if(gt.includes(a.extension)&&t!=null)n=t;else if(mt.includes(a.extension))n=tt(a.content,a.extension);else return{status:h.FAILED};return e[o].config=n,{status:h.OK}}function tt(e,o){const t=Te(o);return t!=null?Ue(e,t):o=="json"?va(e):{}}function Te(e){if(e=="py")return"#";if(e=="lua")return"--"}function ca(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function jt(e){return new RegExp("^(\\s*)"+ca(e)+" (\\w+):[ \\t]*(.*?)\\s*$")}function Ue(e,o){const t={},a=jt(o);for(const n of e.split(/\r?\n/)){const l=n.match(a);l&&l[3]!=""&&(t[l[2]]=l[3])}return t}function da(e,o,t){const a=Te(o);if(a==null)return e;const n={};for(const O of Object.keys(t)){const D=String(O).trim();/^\w+$/.test(D)&&(n[D]=String(t[O]??"").replace(/[\r\n]+/g," ").trim())}const l=jt(a),s=e.includes(`\r
2
+ `)?`\r
3
+ `:`
4
+ `,y=e.split(/\r?\n/),d=Ue(e,a),i=(O,D)=>O+a+" "+D+":"+(n[D]!=""?" "+n[D]:"");let f=0;for(;f<y.length&&y[f].trim().startsWith(a);)f++;const c=[],w=new Set;let m=-1;y.forEach((O,D)=>{const U=O.match(l);if(!U){c.push(O);return}const[,ee,$,z]=U;if($ in n)w.add($),c.push(z==n[$]?O:i(ee,$));else{if($ in d)return;c.push(O)}D<f&&(m=c.length)});const I=Object.keys(n).filter(O=>!w.has(O)).map(O=>i("",O));return I.length>0&&(m<0&&(m=c.length>0&&c[0].startsWith("#!")?1:0),c.splice(m,0,...I)),c.join(s)}function pa(e,o,t){const a=e[o],n=Te(a.extension);if(n!=null){const l=da(a.content,a.extension,t),s=l!=a.content;return a.content=l,a.config=Ue(l,n),s&&(a.status=h.UNSAVED),{status:h.OK,data:s}}return a.config=t,a.status=h.UNSAVED,{status:h.OK,data:!1}}function fa(e,o){const t=e[o],a=Te(t.extension);a!=null&&(t.config=Ue(t.content,a))}function va(e){const o=JSON.parse(e).config;return o===void 0?{}:o}function ma(e){let o=[];return e.config!=null&&(Object.keys(e.config).forEach(t=>{o.push({label:[t],value:e.config[t]})}),o.push({label:"",value:""})),o}function ga(e){let o={};for(let t=0;t<e.length;t++){const a=e[t].label;if(a!=""&&a!=null){const n=e[t].value;o[a]=n}}return o}function It(e){const o=Ye(e);if(o.so==V.UNIX){const t=e.split("/").pop(),a=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:a||""}}else if(o.so==V.WINDOWS){const t=e.split("\\").pop(),a=e.includes(".")?e.split(".").pop():"";return{path:e,filename:t||"",extension:a||""}}else return{path:"",filename:"",extension:""}}async function ha(e){return await Po(e)}async function ba(e,o){return ia(e,o),ua(e,o),await Vo(e[o].path,e[o].content)}async function ya(){return await Fo()}async function wa(e){return await Bo(e)}async function _a(e){return await Ro(e)}function ka(e,o){if(o.length>0)for(let t=0;t<o.length;t++)e[o[t].platform]=o[t]}const Ea={class:"card"},Ca={class:"flex align-items-center"},xa=["for"],Da={class:"flex align-items-center"},Oa=["for"],ja=T({__name:"MenubarCommon",props:{lang:{},workDirPath:{},filePathSelected:{},plugins:{}},emits:["dirconfig-update","save-project-request","dir-path-selected","new-project-request","run-app-function-with-dialog-request","share-request"],setup(e,{emit:o}){pt(),u("Soltar aquí el directorio de trabajo");const t=e,a=u(!1),n=u(""),l=u(""),s=u(!1),y=u(""),d=u(""),i=u(""),f=u(""),c=u(""),w=u(""),m=u(""),I=u(""),O=u(""),D=o,U=Je(),ee=u([]),$=x=>{ee.value=[{label:_(P.file,x),icon:"pi pi-file",items:[{label:_(P.newProject,x),icon:"pi pi-file-plus",command:()=>{i.value="",q(t.lang),s.value=!0}},{label:_(P.opendir,x),icon:"pi pi-folder-open",visible:!U,command:()=>{l.value="",a.value=!0}},{label:_(P.save,x),icon:"pi pi-save",command:()=>{D("save-project-request")}},{label:_(P.delete,x),icon:"pi pi-eraser",command:()=>{const N={typeDialog:me.YES_OR_NO_QUESTION,data:{title:_(P.dialogDeleteFile.title,x),content:_(P.dialogDeleteFile.content,x)+t.filePathSelected,emit:"delete-file-request",args:{filePath:t.filePathSelected},okLabel:_(P.dialogButtonYesNo.ok,x),cancelLabel:_(P.dialogButtonYesNo.close,x)}};D("run-app-function-with-dialog-request",N)}},{label:_(P.share,x),icon:"pi pi-share-alt",visible:!U,command:()=>{D("share-request")}},{label:_(P.shutdown,x),icon:"pi pi-power-off",visible:!U,command:()=>{const N={typeDialog:me.YES_OR_NO_QUESTION,data:{title:_(P.dialogShutdown.title,x),content:_(P.dialogShutdown.content,x),emit:"shutdown-request",args:{},okLabel:_(P.dialogButtonYesNo.ok,x),cancelLabel:_(P.dialogButtonYesNo.close,x)}};D("run-app-function-with-dialog-request",N)}},{label:_(P.fileUpload,x),icon:"pi pi-file-arrow-up",command:()=>{const N={title:"Subir archivos",content:"nn",emit:"upload-file",args:{}},L={typeDialog:me.UPLOADFILE,data:N};D("run-app-function-with-dialog-request",L)}}]}]},z=()=>{a.value=!1,D("dir-path-selected",l.value)};F(i,x=>{x.split(".").pop()&&x.split(".").pop()});const te=x=>{n.value=_(P.selectDirPath.header,x)},q=x=>{y.value=_(P.dialogNewProject.header,x),d.value=_(P.dialogNewProject.labelInput,x)+" (."+Be.replace(/ /g,", .")+"):",f.value=_(P.dialogNewProject.labelDirPath,x)+'"'+et(t.workDirPath)+'".',c.value=_(P.dialogNewProject.labelSelectPlatform,x),w.value=_(P.dialogNewProject.labelSelectProjectType,x)},le=x=>{m.value=_(P.dialogButton.ok,x),I.value=_(P.dialogButton.close,x)},De=x=>{te(x),q(x),le(x)},We=()=>{let x="",N="";we.value=="Blockly"?(x=t.plugins[O.value].blockly_template,N=".json"):(x=t.plugins[O.value].lang_template,N="."+t.plugins[O.value].platformLang.extension);const L=t.workDirPath+"/"+i.value+N;D("new-project-request",L,x),s.value=!1};F(()=>t.lang,x=>{De(x),$(x)});const de=u([]),we=u("");return F(O,()=>{de.value=[];const x=t.plugins[O.value].platformLang.extension,N=bo[x];de.value.push(N),t.plugins[O.value].blockly_template!=null&&de.value.push("Blockly")}),X(()=>{De(t.lang),$(t.lang)}),(x,N)=>(b(),C("div",Ea,[k(r(ft),{model:ee.value},null,8,["model"]),k(r(Ge)),k(r(Ce),{visible:a.value,"onUpdate:visible":N[2]||(N[2]=L=>a.value=L),modal:"",header:n.value,style:{width:"25rem"}},{default:ne(()=>[v("div",null,[k(r(ue),{type:"text",modelValue:l.value,"onUpdate:modelValue":N[0]||(N[0]=L=>l.value=L)},null,8,["modelValue"])]),v("div",null,[k(r(R),{type:"button",label:I.value,severity:"secondary",onClick:N[1]||(N[1]=L=>a.value=!1)},null,8,["label"]),k(r(R),{type:"button",label:m.value,onClick:z},null,8,["label"])])]),_:1},8,["visible","header"]),k(r(Ce),{visible:s.value,"onUpdate:visible":N[7]||(N[7]=L=>s.value=L),modal:"",header:y.value,style:{width:"35rem"}},{default:ne(()=>[v("div",null,[v("p",null,E(d.value),1),k(r(ue),{type:"text",modelValue:i.value,"onUpdate:modelValue":N[3]||(N[3]=L=>i.value=L)},null,8,["modelValue"]),v("p",null,E(f.value),1),v("p",null,E(c.value),1)]),(b(!0),C(W,null,se(t.plugins,L=>(b(),C("div",Ca,[k(r(Me),{modelValue:O.value,"onUpdate:modelValue":N[4]||(N[4]=_e=>O.value=_e),inputId:L.platform,name:"dynamic",value:L.platform},null,8,["modelValue","inputId","value"]),v("label",{for:L.platform,class:"ml-2"},E(L.platform),9,xa)]))),256)),v("div",null,[v("p",null,E(w.value),1)]),(b(!0),C(W,null,se(de.value,L=>(b(),C("div",Da,[k(r(Me),{modelValue:we.value,"onUpdate:modelValue":N[5]||(N[5]=_e=>we.value=_e),inputId:L,name:"dynamic",value:L},null,8,["modelValue","inputId","value"]),v("label",{for:L,class:"ml-2"},E(L),9,Oa)]))),256)),v("div",null,[k(r(R),{type:"button",label:I.value,severity:"secondary",onClick:N[6]||(N[6]=L=>s.value=!1)},null,8,["label"]),k(r(R),{type:"button",label:m.value,onClick:We},null,8,["label"])])]),_:1},8,["visible","header"])]))}}),Ia=Z(ja,[["__scopeId","data-v-11984dec"]]),Sa=`
5
+
6
+ <xml id="toolbox" style="display: none">
7
+ <category name="Lógica" colour="%{BKY_LOGIC_HUE}">
8
+ <block type="controls_if"></block>
9
+ </category>
10
+ <category name="Secuencias" colour="%{BKY_LOOPS_HUE}">
11
+ <block type="controls_repeat_ext">
12
+ <value name="TIMES">
13
+ <shadow type="math_number">
14
+ <field name="NUM">10</field>
15
+ </shadow>
16
+ </value>
17
+ </block>
18
+ </category>
19
+ </xml>`;function Na(){const e=window.innerWidth,o=window.innerHeight;return e<o}const La={media:"media/",renderer:"geras",toolboxPosition:"start",horizontalLayout:Na(),zoom:{controls:!0,wheel:!0,startScale:1,maxScale:3,minScale:.3,scaleSpeed:1.2,pinch:!0},trashcan:!0,grid:{spacing:25,length:1,colour:"#ccc",snap:!0},toolbox:Sa};function Pa(e){return Y.inject(e.value,La)}function $a(e,o){const t=Y.utils.xml.textToDom(e);try{return Y.Xml.clearWorkspaceAndLoadFromXml(t,o),{status:h.OK}}catch{return{status:h.FAILED}}}function Va(e){e==ce.ES?Y.setLocale(it):Y.setLocale(it)}function Ba(e){switch(e.platformLang.name){case bt.name:return vo.luaGenerator;case ht.name:return fo.pythonGenerator;default:return}}let ct=[];function Fa(e,o){yt(ct,e.platform).status==h.NOTFOUND&&(e.initBlockly(po,Ba(e),o),ct.push(e.platform))}const Ta={class:"div_blockly"},Ua=T({__name:"BlocklyEditor",props:["projects","index","update","workspace","plugin"],emits:["xmltext-index","blockly-mounted"],setup(e,{emit:o}){const t=e,a=o,n=u(),l=u();let s;const y=[Y.Events.SELECTED],d=i=>{for(const f in y)if(i.type===y[f]){const c=Y.Xml.workspaceToDom(s),w=Y.Xml.domToPrettyText(c);a("xmltext-index",w,t.index)}};return X(async()=>{s=Pa(n),Va(0),s.addChangeListener(d),a("blockly-mounted")}),F(()=>[t.index,t.update],async([i])=>{if(t.projects.length>0&&t.workspace==M.BLOCKLY){await ao();const f=t.projects[i].config.platform;f!=null&&f!=""&&(Fa(t.plugin,s),s.updateToolbox(t.plugin.toolbox)),$a(t.projects[i].blocklycode,s),Y.svgResize(s),s.scrollCenter()}}),(i,f)=>(b(),C("div",Ta,[v("div",{class:"blocklyDivClass",id:"blocklyDiv",ref_key:"blocklyDivRef",ref:n},null,512),v("xml",{style:{display:"none"},ref_key:"blocklyToolbox",ref:l},[oo(i.$slots,"default")],512)]))}}),Ra={class:"card"},Wa=T({__name:"ToolBar",props:["lang","plugin"],emits:["menu-toggle","save-project-request","close-project","config-project","plugin-command"],setup(e,{emit:o}){const t=e,a=o,n=u([]),l=u(ce.EN),s=[{label:_(Ne.menu,t.lang),icon:"pi pi-arrow-right-arrow-left",command:()=>{a("menu-toggle")}},{label:_(Ne.save,t.lang),icon:"pi pi-save",command:()=>{a("save-project-request")}},{label:_(Ne.close,t.lang),icon:"pi pi-times",command:()=>{a("close-project")}},{label:_(Ne.config,t.lang),icon:"pi pi-cog",command:()=>{a("config-project")}}];function y(i){for(let f=0;f<i.length;f++)if(Array.isArray(i[f].items))y(i[f].items);else{const c=i[f].command;i[f].command=function(){a("plugin-command",c)}}return i}const d=i=>{if(i!=null){let f=i.getItemsToolBarOfPlugin(t.lang);f!=null&&f.length>0?(f=y(f),n.value=[...s,...f]):n.value=s}else n.value=s};return F(()=>t.plugin,i=>{d(i)}),F(()=>t.lang,()=>{l.value=t.lang}),X(()=>{n.value=s}),(i,f)=>(b(),C("div",Ra,[k(r(ft),{model:n.value},null,8,["model"]),k(r(Ge))]))}}),Aa=["viewBox","width","height","aria-label"],qa=["d"],Le=4,Ka=T({__name:"QrCode",props:{text:{},size:{default:200}},setup(e){const o=e,t=Pe(()=>{const l=mo(0,"M");return l.addData(o.text),l.make(),l}),a=Pe(()=>o.text?t.value.getModuleCount():0),n=Pe(()=>{const l=[],s=a.value;for(let y=0;y<s;y++)for(let d=0;d<s;d++)t.value.isDark(y,d)&&l.push(`M${d+Le} ${y+Le}h1v1h-1z`);return l.join("")});return(l,s)=>a.value>0?(b(),C("svg",{key:0,viewBox:`0 0 ${a.value+2*Le} ${a.value+2*Le}`,width:l.size,height:l.size,"shape-rendering":"crispEdges",role:"img","aria-label":l.text},[s[0]||(s[0]=v("rect",{width:"100%",height:"100%",fill:"#ffffff"},null,-1)),v("path",{d:n.value,fill:"#000000"},null,8,qa)],8,Aa)):B("",!0)}}),Ma={class:"share_row"},Xa={for:"share-enabled"},za={key:0,class:"share_note"},Ha={key:1,class:"share_error"},Qa={class:"share_code"},Ga=["for"],Ya={class:"share_qr"},Ja={key:1,class:"share_error"},Za={class:"share_note"},en={key:3,class:"share_note"},tn={class:"share_row"},on={for:"share-serial"},an={key:0},nn={key:1,class:"share_note"},sn={key:2,class:"share_note"},ln={class:"share_buttons"},rn=T({__name:"ShareDialog",props:{visible:{type:Boolean},lang:{},state:{}},emits:["update:visible","changed"],setup(e,{emit:o}){const t=e,a=o,n=i=>_(i,t.lang),l=u(!1),s=u(""),y=u("");F(()=>{var i;return(i=t.state)==null?void 0:i.urls},i=>{(!i||!i.includes(y.value))&&(y.value=i&&i.length>0?i[0]:"")},{immediate:!0}),F(()=>t.visible,i=>{i&&(s.value="")});const d=async i=>{l.value=!0,s.value="";const f=await Uo(i);l.value=!1,f.status==h.OK?a("changed",f.data):s.value=n(j.share.error)+": "+(f.data&&f.data.message||"")};return(i,f)=>(b(),H(r(Ce),{visible:i.visible,"onUpdate:visible":f[4]||(f[4]=c=>a("update:visible",c)),modal:"",header:n(r(j).share.title),style:{width:"34rem"}},{default:ne(()=>{var c,w,m,I,O;return[v("div",Ma,[k(r(Mt),{inputId:"share-enabled",modelValue:((c=i.state)==null?void 0:c.enabled)||!1,disabled:l.value||!i.state||i.state.locked,"onUpdate:modelValue":f[0]||(f[0]=D=>d({enabled:D}))},null,8,["modelValue","disabled"]),v("label",Xa,E(n(r(j).share.toggle)),1)]),(w=i.state)!=null&&w.locked?(b(),C("p",za,E(n(r(j).share.locked)),1)):B("",!0),s.value?(b(),C("p",Ha,E(s.value),1)):B("",!0),(m=i.state)!=null&&m.enabled?(b(),C(W,{key:2},[v("p",null,[xe(E(n(r(j).share.code))+": ",1),v("span",Qa,E(i.state.code),1)]),i.state.urls.length>0?(b(),C(W,{key:0},[v("p",null,E(n(r(j).share.addresses)),1),(b(!0),C(W,null,se(i.state.urls,D=>(b(),C("div",{key:D,class:"share_row"},[k(r(Me),{modelValue:y.value,"onUpdate:modelValue":f[1]||(f[1]=U=>y.value=U),inputId:D,name:"share-url",value:D},null,8,["modelValue","inputId","value"]),v("label",{for:D,class:"share_url"},E(D),9,Ga)]))),128)),v("div",Ya,[k(Ka,{text:y.value,size:200},null,8,["text"])])],64)):(b(),C("p",Ja,E(n(r(j).share.noAddress)),1)),v("p",Za,E(n(r(j).share.folders)),1)],64)):i.state?(b(),C("p",en,E(n(r(j).share.off)),1)):B("",!0),v("div",tn,[k(r(Xt),{inputId:"share-serial",binary:!0,modelValue:((I=i.state)==null?void 0:I.guestSerial)||!1,disabled:l.value||!i.state,"onUpdate:modelValue":f[2]||(f[2]=D=>d({guestSerial:D}))},null,8,["modelValue","disabled"]),v("label",on,E(n(r(j).share.guestSerial)),1)]),(O=i.state)!=null&&O.enabled?(b(),C(W,{key:4},[v("p",null,E(n(r(j).share.guests)),1),i.state.guests.length>0?(b(),C("ul",an,[(b(!0),C(W,null,se(i.state.guests,D=>(b(),C("li",{key:D.id},E(D.name)+" — invitados/"+E(D.folder)+" ("+E(D.address)+") ",1))),128))])):(b(),C("p",nn,E(n(r(j).share.noGuests)),1)),i.state.locked?B("",!0):(b(),C("p",sn,E(n(r(j).share.stopNote)),1))],64)):B("",!0),v("div",ln,[k(r(R),{type:"button",label:n(r(j).dialogButton.close),severity:"secondary",onClick:f[3]||(f[3]=D=>a("update:visible",!1))},null,8,["label"])])]}),_:1},8,["visible","header"]))}}),un=Z(rn,[["__scopeId","data-v-06f441fb"]]),cn={class:"guest_field"},dn={for:"guest-name"},pn={key:0,class:"guest_field"},fn={for:"guest-code"},vn={key:1,class:"guest_error"},mn={class:"guest_buttons"},gn=1103,hn=T({__name:"GuestLogin",props:{visible:{type:Boolean},lang:{}},emits:["entered"],setup(e,{emit:o}){const t=e,a=o,n=c=>_(c,t.lang),l=u(Oo()),s=u(kt()),y=u(s.value==""),d=u(!1),i=u(""),f=async()=>{d.value=!0,i.value="";const c=await jo(l.value.trim(),s.value.trim());if(d.value=!1,c.status==h.OK){a("entered");return}const w=c.data||{};w.code==gn&&(y.value=!0),i.value=w.code==-1||!w.message?n(j.guest.noConnection):w.message};return(c,w)=>(b(),H(r(Ce),{visible:c.visible,modal:"",closable:!1,closeOnEscape:!1,header:n(r(j).guest.title),style:{width:"28rem"}},{default:ne(()=>[v("form",{onSubmit:vt(f,["prevent"])},[v("p",null,E(n(r(j).guest.intro)),1),v("div",cn,[v("label",dn,E(n(r(j).guest.name)),1),k(r(ue),{id:"guest-name",modelValue:l.value,"onUpdate:modelValue":w[0]||(w[0]=m=>l.value=m),autofocus:"",maxlength:"40",disabled:d.value},null,8,["modelValue","disabled"])]),y.value?(b(),C("div",pn,[v("label",fn,E(n(r(j).guest.code)),1),k(r(ue),{id:"guest-code",modelValue:s.value,"onUpdate:modelValue":w[1]||(w[1]=m=>s.value=m),inputmode:"numeric",maxlength:"12",disabled:d.value},null,8,["modelValue","disabled"])])):B("",!0),i.value?(b(),C("p",vn,E(i.value),1)):B("",!0),v("div",mn,[k(r(R),{type:"submit",label:n(r(j).guest.enter),loading:d.value},null,8,["label","loading"])])],32)]),_:1},8,["visible","header"]))}}),bn=Z(hn,[["__scopeId","data-v-863b6817"]]),yn={class:"container"},wn=T({__name:"TextareaDialog",setup(e){const o=be("dialogRef");let t;const a=u(""),n=u("");return X(()=>{t=o.value.data,a.value=t.description,n.value=t.content}),(l,s)=>(b(),C("div",yn,[v("p",null,E(a.value),1),k(r(Xe),{modelValue:n.value,"onUpdate:modelValue":s[0]||(s[0]=y=>n.value=y),autoResize:""},null,8,["modelValue"])]))}}),_n=Z(wn,[["__scopeId","data-v-e2622354"]]),kn=["href"],En=T({__name:"UrlprintDialog",setup(e){const o=be("dialogRef");let t;const a=u(""),n=u("");return X(()=>{t=o.value.data,a.value=t.description,n.value=t.content}),(l,s)=>(b(),C(W,null,[v("p",null,E(a.value),1),v("a",{href:n.value,target:" _blank"},E(n.value),9,kn)],64))}}),Cn={class:"p-fluid p-formgrid p-grid"},xn={class:"p-col-12"},Dn={class:"p-col-12"},On={class:"p-col-12"},jn={class:"p-col-12"},In={key:0},Sn=T({__name:"TerminalDialog",setup(e){const o=be("dialogRef");let t;const a=u(""),n=u(""),l=u([]),s=u(null),y=u(!1);X(()=>{var w,m,I,O,D;if(t=o.value.data,t.typeConnection==ze.WEBSOCKET){const U=(w=t.data)==null?void 0:w.ip,ee=(m=t.data)==null?void 0:m.port,$=(I=t.data)==null?void 0:I.user,z=(O=t.data)==null?void 0:O.password,te=(D=t.data)==null?void 0:D.endOfCommand;s.value=new WebSocket("ws://"+U+":"+ee+"/"),s.value.onopen=async()=>{var q,le;y.value=!0,console.log("onopen"),await c(100),$!=""&&$!=null&&((q=s.value)==null||q.send($+te),await c(100)),z!=""&&z!=null&&((le=s.value)==null||le.send(z+te),await c(100))},s.value.onmessage=q=>{a.value+=q.data},s.value.onclose=()=>{y.value=!1,console.log("onclose")},s.value.onerror=q=>{console.error("WebSocket error: ",q)}}}),no(()=>{s.value&&s.value.close()});const d=()=>{var w,m;n.value.trim()!==""&&(t.typeConnection==ze.WEBSOCKET&&((m=s.value)==null||m.send(n.value+((w=t.data)==null?void 0:w.endOfCommand))),l.value.unshift(n.value),l.value.length>10&&l.value.pop(),n.value="")},i=w=>{n.value=w},f=w=>(w.length>20?w.slice(0,20)+"...":w).replace(/\n/g," ");function c(w){return new Promise(m=>setTimeout(m,w))}return(w,m)=>(b(),C("div",Cn,[v("div",xn,[m[2]||(m[2]=v("h3",null,"Área de Lectura",-1)),k(r(Xe),{modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=I=>a.value=I),readonly:!0,rows:"10",placeholder:"Este es el área de lectura.",class:"full-width-textarea"},null,8,["modelValue"])]),v("div",Dn,[m[3]||(m[3]=v("h3",null,"Área de Escritura",-1)),k(r(Xe),{modelValue:n.value,"onUpdate:modelValue":m[1]||(m[1]=I=>n.value=I),rows:"4",placeholder:"Escribe aquí algo...",class:"full-width-textarea"},null,8,["modelValue"])]),v("div",On,[k(r(R),{label:"Enviar",icon:"pi pi-send",onClick:d})]),v("div",jn,[m[4]||(m[4]=v("h3",null,"Buffer (últimos 10 envíos)",-1)),l.value.length===0?(b(),C("div",In,"No hay mensajes recientes")):B("",!0),(b(!0),C(W,null,se(l.value,(I,O)=>(b(),C("div",{key:O,class:"p-mb-2"},[k(r(R),{class:"p-button-text",onClick:D=>i(I)},{default:ne(()=>[xe(E(f(I)),1)]),_:2},1032,["onClick"])]))),128))])]))}}),Nn=Z(Sn,[["__scopeId","data-v-84f4b391"]]),Ln={class:"flex justify-end gap-2"},dt=T({__name:"YesNoQuestionDialog",setup(e){const o=be("dialogRef");let t;const a=u(""),n=u(""),l=u("Ok"),s=u("Cancel");X(()=>{t=o.value.data,n.value=t.content,t.description&&(a.value=t.description),t.okLabel&&(l.value=t.okLabel),t.cancelLabel&&(s.value=t.cancelLabel)});const y=()=>{o.value.close(!0)},d=()=>{o.value.close(!1)};return(i,f)=>(b(),C(W,null,[v("div",null,[v("p",null,E(a.value),1),v("p",null,E(n.value),1)]),v("div",Ln,[k(r(R),{type:"button",label:l.value,severity:"secondary",onClick:y},null,8,["label"]),k(r(R),{type:"button",label:s.value,onClick:d},null,8,["label"])])],64))}}),Pn=T({__name:"FileUploadDialog",setup(e){const o=u(),t=be("dialogRef"),a=u("Soltar aquí el directorio de trabajo");let n;const l=u(""),s=u("");X(()=>{n=t.value.data,l.value=n.description,s.value=n.content});const y=()=>{console.log(o.value.files),t.value.close(o.value.files)};return(d,i)=>(b(),C("div",null,[v("p",null,E(l.value),1),v("p",null,E(s.value),1),k(r(zt),{ref_key:"fileupload",ref:o,mode:"advanced",name:"demo[]",url:"/api/upload",disable:"true",multiple:!1,accept:"",maxFileSize:1e8,showUploadButton:!1,showCancelButton:!1,fileLimit:10,auto:!1},{empty:ne(()=>[v("p",null,E(a.value),1)]),_:1},512),k(r(R),{label:"Upload",onClick:y,severity:"secondary"})]))}}),$n={key:0,class:"form-dialog-description"},Vn=["for"],Bn={key:0},Fn={key:4},Tn={class:"form-dialog-buttons"},Un=T({__name:"FormDialog",setup(e){const o=be("dialogRef"),t=o.value.data.spec,a=o.value.data.okLabel,n=o.value.data.cancelLabel,l=so({});for(const c of t.fields)l[c.name]=c.value??(c.type=="number"?null:"");function s(c){return(c.options||[]).map(w=>typeof w=="string"?{label:w,value:w}:w)}function y(c){return c==null||typeof c=="string"&&c.trim()==""}const d=Pe(()=>t.fields.every(c=>!c.required||!y(l[c.name]))),i=()=>{if(!d.value)return;const c={};for(const w of t.fields){const m=l[w.name];c[w.name]=typeof m=="string"&&w.type!="password"?m.trim():m}o.value.close(c)},f=()=>{o.value.close(null)};return(c,w)=>(b(),C("form",{class:"form-dialog",onSubmit:vt(i,["prevent"])},[r(t).description?(b(),C("p",$n,E(r(t).description),1)):B("",!0),(b(!0),C(W,null,se(r(t).fields,m=>(b(),C("div",{key:m.name,class:"form-dialog-field"},[v("label",{for:"form-"+m.name},[xe(E(m.label||m.name),1),m.required?(b(),C("span",Bn," *")):B("",!0)],8,Vn),m.type=="password"?(b(),H(r(Ht),{key:0,inputId:"form-"+m.name,modelValue:l[m.name],"onUpdate:modelValue":I=>l[m.name]=I,feedback:!1,toggleMask:""},null,8,["inputId","modelValue","onUpdate:modelValue"])):m.type=="number"?(b(),H(r(Qt),{key:1,inputId:"form-"+m.name,modelValue:l[m.name],"onUpdate:modelValue":I=>l[m.name]=I,useGrouping:!1},null,8,["inputId","modelValue","onUpdate:modelValue"])):m.type=="select"?(b(),H(r(Gt),{key:2,inputId:"form-"+m.name,modelValue:l[m.name],"onUpdate:modelValue":I=>l[m.name]=I,options:s(m),optionLabel:"label",optionValue:"value"},null,8,["inputId","modelValue","onUpdate:modelValue","options"])):(b(),H(r(ue),{key:3,id:"form-"+m.name,type:"text",modelValue:l[m.name],"onUpdate:modelValue":I=>l[m.name]=I},null,8,["id","modelValue","onUpdate:modelValue"])),m.hint?(b(),C("small",Fn,E(m.hint),1)):B("",!0)]))),128)),v("div",Tn,[k(r(R),{type:"button",label:r(t).cancelLabel||r(n),severity:"secondary",onClick:f},null,8,["label"]),k(r(R),{type:"submit",label:r(t).okLabel||r(a),disabled:!d.value},null,8,["label","disabled"])])],32))}}),Rn=Z(Un,[["__scopeId","data-v-2f970e35"]]),Wn=["text","password","number","select"];function An(e){if(!e||typeof e.title!="string"||!Array.isArray(e.fields)||e.fields.length==0)throw new TypeError("ui.form: se espera { title, fields: [...] }");const o=new Set;for(const t of e.fields){if(!t||typeof t.name!="string"||t.name==""||o.has(t.name))throw new TypeError("ui.form: cada campo necesita un name distinto");if(t.type!=null&&!Wn.includes(t.type))throw new TypeError("ui.form: tipo de campo no válido: "+t.type);o.add(t.name)}}function qn(e){return{version:1,form(o){An(o);const t=e.labels();return new Promise(a=>{e.openDialog(e.formDialog,{data:{spec:o,okLabel:t.ok,cancelLabel:t.cancel},props:{header:o.title,modal:!0},onClose:n=>a((n==null?void 0:n.data)??null)})})},confirm(o){const t=e.labels();return new Promise(a=>{e.openDialog(e.confirmDialog,{data:{content:"",description:o==null?void 0:o.description,okLabel:(o==null?void 0:o.okLabel)||t.yes,cancelLabel:(o==null?void 0:o.cancelLabel)||t.cancel},props:{header:o==null?void 0:o.title,modal:!0},onClose:n=>a((n==null?void 0:n.data)===!0)})})},toast(o){e.addToast({severity:(o==null?void 0:o.severity)||"info",summary:(o==null?void 0:o.summary)||"",detail:(o==null?void 0:o.detail)||"",life:(o==null?void 0:o.life)||3e3})}}}const Kn={style:{height:"100%"}},Mn={class:"main_div"},Xn={key:0,class:"share_status"},zn={id:"tree_and_commands",class:"tree_and_commands"},Hn={id:"treeview",class:"treeview"},Qn={id:"editor",class:"editor"},Gn={id:"toolbar",class:"toolbar"},Yn={id:"tabView",class:"tabview"},Jn={id:"blocklyEditor",class:"blocklyeditorclass"},Zn={id:"textEditor",class:"texteditorclass"},es={key:0,class:"backend_closed"},K="bl",ts=T({__name:"App",setup(e){const o=u([]),t=u(""),a=u([]),n=u(""),l=u(0),s=u([]),y=u(),d=u(),i=u(!1),f=u(!1),c=u(ce.EN),w=u(M.BLOCKLY),m=u({}),I=u();c.value=ce.ES;const O=pt(),D=Yt(),U=u(!0),ee={group:K};window.catalejo.ui=qn({openDialog:(p,g)=>D.open(p,g),addToast:p=>O.add({...p,group:K}),formDialog:Rn,confirmDialog:dt,labels:()=>({ok:_(j.dialogButton.ok,c.value),cancel:_(j.dialogButtonYesNo.close,c.value),yes:_(j.dialogButtonYesNo.ok,c.value)})});const $=u(!1),z=u(""),te=u([{label:"",value:""}]),q=u(""),le=u(""),De=p=>{o.value=p},We=p=>{t.value=p},de=p=>{d.value=p},we=(p,g,S)=>{f.value=!f.value,sa(s.value,p,g,S)},x=(p,g)=>{f.value=!f.value,la(s.value,p,g)},N=async(p,g)=>{const S=await aa(s.value,p,g);S.status==h.REQUEST_SELECT_FILE_IN_TABVIEW&&(d.value=S.data)},L=async()=>{(await ba(s.value,d.value||0)).status==h.OK?O.add({severity:"success",summary:_(j.savefile.ok,c.value),detail:"",life:3e3,group:K}):O.add({severity:"error",summary:_(j.savefile.error,c.value),detail:"",life:3e3,group:K})},_e=()=>{s.value.length>0&&(na(s.value,d.value||0),s.value.length>0&&d.value!=null?d.value<s.value.length?i.value=!i.value:d.value=d.value-1:(w.value=M.WELCOME,d.value=-1))},Oe=u(!1),ot=u(!1),pe=Je(),ke=u(),Ae=u(!1),re=u(),je=u(!1),St=()=>{ke.value={name:A.name,folder:A.folder},Ae.value=A.guestSerial},at=async()=>{const p=await To();p.status==h.OK&&(re.value=p.data)};Qe("share.changed",p=>{pe?Ae.value=p.guestSerial===!0:re.value=p}),Qe("session.clients",()=>{pe||at()}),Do(p=>{pe&&p==xo&&(ot.value=!0,Oe.value=!0)});const Nt=async()=>{const p=await ya();if(p.status==h.OK){Oe.value=!0;return}const g=p.data&&p.data.code==1101;O.add({severity:"error",summary:_(g?j.shutdown.hostOnly:j.shutdown.error,c.value),detail:g?"":p.data&&p.data.message||"",life:5e3,group:K})},Lt=async p=>{if((await wa(p)).status==h.OK){const S={severity:"success",summary:_(j.deleteFile.ok,c.value),detail:p,life:3e3,group:K};O.add(S)}else{const S={severity:"error",summary:_(j.deleteFile.error,c.value),detail:p,life:3e3,group:K};O.add(S)}},Pt=()=>{z.value=_(j.titleConfigProjectDialog,c.value),q.value=_(j.dialogButton.ok,c.value),le.value=_(j.dialogButton.close,c.value),d.value!=null&&(te.value=ma(s.value[d.value])),$.value=!0},$t=()=>{w.value=M.WELCOME},qe=async p=>{const g=await ha(p);if(g.status==h.OK){yt(a.value,p).status==h.NOTFOUND&&a.value.push(p),o.value=g.data,n.value=p,l.value=a.value.length;const S={severity:"info",summary:_(j.toastUpdateContentDir,c.value),detail:et(p),life:3e3,group:K};O.add(S)}},Vt=async p=>{for(let g=0;g<p.length;g++){const S=p[g],fe=new FormData;fe.append("file",S);const At=await _a(fe);let Ke;At.status==h.OK?Ke={severity:"info",summary:"Update file",detail:"",life:3e3,group:K}:Ke={severity:"warn",summary:"Dont update",detail:"",life:3e3,group:K},O.add(Ke)}};u(!1),u(""),u();const Bt=async p=>{if(O.add({severity:"info",summary:_(j.toastProccess,c.value),detail:"",life:1500,group:K}),I.value!=null){d.value!=null&&fa(s.value,d.value);const g=await I.value.commandEmit(y.value,p,c.value);switch(g.typeResult){case Ee.TOAST:O.add({...g.data,...ee});break;case Ee.TEXT_PRINT:D.open(_n,{data:g.data,props:{maximizable:!0,header:g.data.title}});break;case Ee.URL_PRINT:D.open(En,{data:g.data,props:{maximizable:!0,header:g.data.title}});break;case Ee.TERM:D.open(Nn,{data:g.data,props:{maximizable:!0}});break}}},nt=(p,g)=>{switch(p){case"delete-file-request":g.filePath&&Lt(g.filePath);break;case"shutdown-request":Nt();break;case"upload-file":g.files&&Vt(g.files);break}},Ft=async p=>{switch(p.typeDialog){case me.YES_OR_NO_QUESTION:D.open(dt,{data:p.data,props:{maximizable:!0,header:p.data.title},onClose:g=>{(g?g.data:!1)==!0&&nt(p.data.emit,p.data.args)}});break;case me.UPLOADFILE:D.open(Pn,{data:p.data,props:{maximizable:!0,header:p.data.title},onClose:g=>{const S=g?g.data:void 0;S&&nt(p.data.emit,{files:S})}});break}},st=p=>{},Tt=()=>{U.value=!U.value,i.value=!i.value},Ut=()=>{if($.value=!1,d.value!=null){const p=ga(te.value);pa(s.value,d.value,p).data==!0&&(i.value=!i.value),lt()}},Rt=()=>{if(s.value.length>0&&d.value!==void 0){const p=ra(s.value[d.value]);p.status==h.SET_WS&&(w.value=p.data)}},lt=()=>{if(s.value.length>0&&d.value!==void 0){const p=s.value[d.value].config.platform;p!=null&&p!=""?I.value=m.value[p]:I.value=void 0}},Wt=()=>{d.value!=null&&(y.value=s.value[d.value])};return F(d,()=>{Rt(),lt(),Wt()}),F(t,async p=>{const g=await oa(s.value,p||"");g.status==h.REQUEST_SELECT_FILE_IN_TABVIEW&&(d.value=g.data)}),X(async()=>{for(const p of go)qe(p);ka(m.value,ho),pe||at()}),(p,g)=>(b(),C("main",Kn,[v("div",Mn,[Ie(v("div",{id:"menu_collapse",class:"menu_collapse",onMouseover:g[2]||(g[2]=S=>st()),onMouseout:g[3]||(g[3]=S=>st())},[g[9]||(g[9]=v("p",null,"Catalejo",-1)),ke.value?(b(),C("div",Xn,[xe(E(r(_)(r(j).guest.status,c.value))+E(ke.value.name)+" ("+E(ke.value.folder)+")",1),g[8]||(g[8]=v("br",null,null,-1)),xe(" "+E(r(_)(Ae.value?r(j).guest.serialRemote:r(j).guest.serialOff,c.value)),1)])):B("",!0),re.value&&re.value.enabled?(b(),C("div",{key:1,class:"share_status share_status_host",onClick:g[0]||(g[0]=S=>je.value=!0)},E(r(_)(r(j).share.status,c.value))+E(re.value.guests.length),1)):B("",!0),Ie(v("div",zn,[v("div",null,[k(Ia,{plugins:m.value,lang:c.value,workDirPath:n.value,filePathSelected:t.value,onDirconfigUpdate:De,onSaveProjectRequest:L,onNewProjectRequest:N,onDirPathSelected:qe,onShareRequest:g[1]||(g[1]=S=>je.value=!0),onRunAppFunctionWithDialogRequest:Ft},null,8,["plugins","lang","workDirPath","filePathSelected"])]),v("div",Hn,[k(Yo,{filePaths:o.value,dirPaths:a.value,dirPathsLength:l.value,lang:c.value,onFileSelected:We,onDirPathSelected:qe},null,8,["filePaths","dirPaths","dirPathsLength","lang"])])],512),[[Se,U.value]])],544),[[Se,U.value]]),v("div",Qn,[v("div",Gn,[k(Wa,{lang:c.value,plugin:I.value,onMenuToggle:Tt,onSaveProjectRequest:L,onCloseProject:_e,onConfigProject:Pt,onPluginCommand:Bt},null,8,["lang","plugin"])]),v("div",Yn,[k(ta,{index:d.value,projects:s.value,contentchanges:f.value,lang:c.value,update:i.value,onIndexOfProjectToLoad:de},null,8,["index","projects","contentchanges","lang","update"])]),Ie(v("div",Jn,[k(Ua,{projects:s.value,index:d.value,workspace:w.value,plugin:I.value,update:i.value,onXmltextIndex:x,onBlocklyMounted:$t},null,8,["projects","index","workspace","plugin","update"])],512),[[Se,w.value==r(M).BLOCKLY]]),Ie(v("div",Zn,[k(wo,{projects:s.value,index:d.value,workspace:w.value,update:i.value,onContentCursorIndex:we},null,8,["projects","index","workspace","update"])],512),[[Se,w.value==r(M).CODEMIRROR]])]),k(r(Ce),{visible:$.value,"onUpdate:visible":g[5]||(g[5]=S=>$.value=S),modal:"",header:z.value,style:{width:"32rem"}},{default:ne(()=>[v("div",null,[(b(!0),C(W,null,se(te.value,S=>(b(),C("div",null,[k(r(ue),{type:"text",size:"small",modelValue:S.label,"onUpdate:modelValue":fe=>S.label=fe,class:"textInputDialogClass"},null,8,["modelValue","onUpdate:modelValue"]),g[10]||(g[10]=v("span",null,": ",-1)),k(r(ue),{type:"text",size:"small",modelValue:S.value,"onUpdate:modelValue":fe=>S.value=fe},null,8,["modelValue","onUpdate:modelValue"])]))),256)),k(r(R),{type:"button",label:le.value,severity:"secondary",onClick:g[4]||(g[4]=S=>$.value=!1)},null,8,["label"]),k(r(R),{type:"button",label:q.value,onClick:Ut},null,8,["label"])])]),_:1},8,["visible","header"]),k(r(Ge),{position:"bottom-left",group:"bl"}),k(r(Jt)),r(pe)?B("",!0):(b(),H(un,{key:0,visible:je.value,"onUpdate:visible":g[6]||(g[6]=S=>je.value=S),lang:c.value,state:re.value,onChanged:g[7]||(g[7]=S=>re.value=S)},null,8,["visible","lang","state"])),r(pe)?(b(),H(bn,{key:1,visible:ke.value==null&&!Oe.value,lang:c.value,onEntered:St},null,8,["visible","lang"])):B("",!0)]),Oe.value?(b(),C("div",es,[v("p",null,E(r(_)(ot.value?r(j).share.stopped:r(j).shutdown.closed,c.value)),1)])):B("",!0),g[11]||(g[11]=v("div",{id:"log"},null,-1))]))}}),os=Z(ts,[["__scopeId","data-v-4a6a095f"]]),Re=lo(os);Re.use(Zt);Re.use(eo);Re.use(to);Re.mount("#app");
@@ -1 +1 @@
1
- .main_div{display:flex;padding:0;margin:0;height:100%}.menu_collapse{width:200px;flex:0 0 auto;margin:0;padding:0}.tree_and_commands{width:100%;margin:0;padding:0}.editor{flex:1 0 0 auto;display:flex;flex-direction:column;align-items:stretch;overflow:auto;width:100%}.tabview{max-height:content;overflow-y:auto;width:100%;height:55px}.toolbar{height:55px}.textInputDialogClass{background-color:#00ff001a}.blocklyeditorclass{flex:1;height:100%;max-width:100%;overflow-x:auto;overflow-y:auto}.texteditorclass{flex:1;max-width:100%;overflow-x:auto;overflow-y:auto}@media (max-width: 768px){.main_div{font-size:10px}}.backend_closed{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5000;display:flex;align-items:center;justify-content:center;background:#fffffff2;font-size:1.4rem}.share_status{font-size:.8rem;margin:0 .5rem .4rem;padding:.3rem .5rem;border-radius:6px;background:#eef6ee}.share_status_host{cursor:pointer}[data-v-7d510def] .p-tree{padding:0}.card[data-v-8ef45e55]{background:var(--surface-card);padding:0;border-radius:10px;margin-bottom:0}[data-v-8ef45e55] .p-tabview .p-tabview-panels{padding:0;background:gray}[data-v-8ef45e55] .p-tabview .p-tabview-nav{padding:3px}.card[data-v-11984dec]{background:var(--surface-card);padding:0rem;border-radius:10px;margin-bottom:0rem}.blocklyWorkspace:hover .blocklyTreeLabel{display:none}.blocklyToolboxContents{flex-wrap:nowrap}.blocklyToolboxDiv{background-color:#63a1d2}.blocklyToolboxDiv:hover{width:auto}.div_blockly{width:100%;height:100%}.blocklyDivClass{height:100%;width:100%;text-align:left;position:relative}.blocklyTreeLabel{display:block-inline;color:#fff}.blocklySvg{width:100%;height:100%}.blocklyAreaClass{height:100%}.share_row[data-v-06f441fb]{display:flex;align-items:center;gap:.6rem;margin:.6rem 0}.share_code[data-v-06f441fb]{font-size:1.6rem;font-weight:700;letter-spacing:.2rem}.share_url[data-v-06f441fb]{font-family:monospace;word-break:break-all}.share_qr[data-v-06f441fb]{display:flex;justify-content:center;margin:.8rem 0}.share_note[data-v-06f441fb]{color:#555;font-size:.9rem}.share_error[data-v-06f441fb]{color:#b00020}.share_buttons[data-v-06f441fb]{display:flex;justify-content:flex-end;margin-top:1rem}.guest_field[data-v-863b6817]{display:flex;flex-direction:column;gap:.3rem;margin:.8rem 0}.guest_error[data-v-863b6817]{color:#b00020}.guest_buttons[data-v-863b6817]{display:flex;justify-content:flex-end}.container[data-v-e2622354],.container textarea[data-v-e2622354],.full-width-textarea[data-v-84f4b391]{width:100%}.p-col-12[data-v-84f4b391]{margin-bottom:1em}.main_div[data-v-085fe9ab]{display:flex;padding:0;margin:0;height:100%}.menu_collapse[data-v-085fe9ab]{width:200px;flex:0 0 auto;margin:0;padding:0}.tree_and_commands[data-v-085fe9ab]{width:100%;margin:0;padding:0}.editor[data-v-085fe9ab]{flex:1 0 0 auto;display:flex;flex-direction:column;align-items:stretch;overflow:auto;width:100%}.tabview[data-v-085fe9ab]{max-height:content;overflow-y:auto;width:100%;height:55px}.toolbar[data-v-085fe9ab]{height:55px}.textInputDialogClass[data-v-085fe9ab]{background-color:#00ff001a}.blocklyeditorclass[data-v-085fe9ab]{flex:1;height:100%;max-width:100%;overflow-x:auto;overflow-y:auto}.texteditorclass[data-v-085fe9ab]{flex:1;max-width:100%;overflow-x:auto;overflow-y:auto}@media (max-width: 768px){.main_div[data-v-085fe9ab]{font-size:10px}}.backend_closed[data-v-085fe9ab]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5000;display:flex;align-items:center;justify-content:center;background:#fffffff2;font-size:1.4rem}.share_status[data-v-085fe9ab]{font-size:.8rem;margin:0 .5rem .4rem;padding:.3rem .5rem;border-radius:6px;background:#eef6ee}.share_status_host[data-v-085fe9ab]{cursor:pointer}
1
+ .main_div{display:flex;padding:0;margin:0;height:100%}.menu_collapse{width:200px;flex:0 0 auto;margin:0;padding:0}.tree_and_commands{width:100%;margin:0;padding:0}.editor{flex:1 0 0 auto;display:flex;flex-direction:column;align-items:stretch;overflow:auto;width:100%}.tabview{max-height:content;overflow-y:auto;width:100%;height:55px}.toolbar{height:55px}.textInputDialogClass{background-color:#00ff001a}.blocklyeditorclass{flex:1;height:100%;max-width:100%;overflow-x:auto;overflow-y:auto}.texteditorclass{flex:1;max-width:100%;overflow-x:auto;overflow-y:auto}@media (max-width: 768px){.main_div{font-size:10px}}.backend_closed{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5000;display:flex;align-items:center;justify-content:center;background:#fffffff2;font-size:1.4rem}.share_status{font-size:.8rem;margin:0 .5rem .4rem;padding:.3rem .5rem;border-radius:6px;background:#eef6ee}.share_status_host{cursor:pointer}[data-v-7d510def] .p-tree{padding:0}.card[data-v-8ef45e55]{background:var(--surface-card);padding:0;border-radius:10px;margin-bottom:0}[data-v-8ef45e55] .p-tabview .p-tabview-panels{padding:0;background:gray}[data-v-8ef45e55] .p-tabview .p-tabview-nav{padding:3px}.card[data-v-11984dec]{background:var(--surface-card);padding:0rem;border-radius:10px;margin-bottom:0rem}.blocklyWorkspace:hover .blocklyTreeLabel{display:none}.blocklyToolboxContents{flex-wrap:nowrap}.blocklyToolboxDiv{background-color:#63a1d2}.blocklyToolboxDiv:hover{width:auto}.div_blockly{width:100%;height:100%}.blocklyDivClass{height:100%;width:100%;text-align:left;position:relative}.blocklyTreeLabel{display:block-inline;color:#fff}.blocklySvg{width:100%;height:100%}.blocklyAreaClass{height:100%}.share_row[data-v-06f441fb]{display:flex;align-items:center;gap:.6rem;margin:.6rem 0}.share_code[data-v-06f441fb]{font-size:1.6rem;font-weight:700;letter-spacing:.2rem}.share_url[data-v-06f441fb]{font-family:monospace;word-break:break-all}.share_qr[data-v-06f441fb]{display:flex;justify-content:center;margin:.8rem 0}.share_note[data-v-06f441fb]{color:#555;font-size:.9rem}.share_error[data-v-06f441fb]{color:#b00020}.share_buttons[data-v-06f441fb]{display:flex;justify-content:flex-end;margin-top:1rem}.guest_field[data-v-863b6817]{display:flex;flex-direction:column;gap:.3rem;margin:.8rem 0}.guest_error[data-v-863b6817]{color:#b00020}.guest_buttons[data-v-863b6817]{display:flex;justify-content:flex-end}.container[data-v-e2622354],.container textarea[data-v-e2622354],.full-width-textarea[data-v-84f4b391]{width:100%}.p-col-12[data-v-84f4b391]{margin-bottom:1em}.form-dialog[data-v-2f970e35]{display:flex;flex-direction:column;gap:.75rem;min-width:20rem}.form-dialog-field[data-v-2f970e35]{display:flex;flex-direction:column;gap:.25rem}.form-dialog-field small[data-v-2f970e35]{opacity:.7}.form-dialog-buttons[data-v-2f970e35]{display:flex;justify-content:flex-end;gap:.5rem}.main_div[data-v-4a6a095f]{display:flex;padding:0;margin:0;height:100%}.menu_collapse[data-v-4a6a095f]{width:200px;flex:0 0 auto;margin:0;padding:0}.tree_and_commands[data-v-4a6a095f]{width:100%;margin:0;padding:0}.editor[data-v-4a6a095f]{flex:1 0 0 auto;display:flex;flex-direction:column;align-items:stretch;overflow:auto;width:100%}.tabview[data-v-4a6a095f]{max-height:content;overflow-y:auto;width:100%;height:55px}.toolbar[data-v-4a6a095f]{height:55px}.textInputDialogClass[data-v-4a6a095f]{background-color:#00ff001a}.blocklyeditorclass[data-v-4a6a095f]{flex:1;height:100%;max-width:100%;overflow-x:auto;overflow-y:auto}.texteditorclass[data-v-4a6a095f]{flex:1;max-width:100%;overflow-x:auto;overflow-y:auto}@media (max-width: 768px){.main_div[data-v-4a6a095f]{font-size:10px}}.backend_closed[data-v-4a6a095f]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:5000;display:flex;align-items:center;justify-content:center;background:#fffffff2;font-size:1.4rem}.share_status[data-v-4a6a095f]{font-size:.8rem;margin:0 .5rem .4rem;padding:.3rem .5rem;border-radius:6px;background:#eef6ee}.share_status_host[data-v-4a6a095f]{cursor:pointer}