vite-plugin-opencode-assistant 1.1.6 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/client.js +616 -610
  2. package/package.json +5 -5
package/lib/client.js CHANGED
@@ -8,7 +8,7 @@ var ye = {}, an = [], Ut = () => {
8
8
  }, Rr = () => !1, bi = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && (e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97), Si = (e) => e.startsWith("onUpdate:"), ot = Object.assign, kr = (e, t) => {
9
9
  const n = e.indexOf(t);
10
10
  n > -1 && e.splice(n, 1);
11
- }, Tl = Object.prototype.hasOwnProperty, de = (e, t) => Tl.call(e, t), J = Array.isArray, un = (e) => Hn(e) === "[object Map]", Ei = (e) => Hn(e) === "[object Set]", Ao = (e) => Hn(e) === "[object Date]", ce = (e) => typeof e == "function", we = (e) => typeof e == "string", rt = (e) => typeof e == "symbol", ge = (e) => e !== null && typeof e == "object", Nr = (e) => (ge(e) || ce(e)) && ce(e.then) && ce(e.catch), Lr = Object.prototype.toString, Hn = (e) => Lr.call(e), Cl = (e) => Hn(e).slice(8, -1), Dr = (e) => Hn(e) === "[object Object]", wi = (e) => we(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Pn = /* @__PURE__ */ yi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"), Ti = (e) => {
11
+ }, Tl = Object.prototype.hasOwnProperty, de = (e, t) => Tl.call(e, t), J = Array.isArray, cn = (e) => Hn(e) === "[object Map]", Ei = (e) => Hn(e) === "[object Set]", Ao = (e) => Hn(e) === "[object Date]", ue = (e) => typeof e == "function", we = (e) => typeof e == "string", rt = (e) => typeof e == "symbol", ge = (e) => e !== null && typeof e == "object", Nr = (e) => (ge(e) || ue(e)) && ue(e.then) && ue(e.catch), Lr = Object.prototype.toString, Hn = (e) => Lr.call(e), Cl = (e) => Hn(e).slice(8, -1), Dr = (e) => Hn(e) === "[object Object]", wi = (e) => we(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Pn = /* @__PURE__ */ yi(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"), Ti = (e) => {
12
12
  const t = /* @__PURE__ */ Object.create(null);
13
13
  return ((n) => t[n] || (t[n] = e(n)));
14
14
  }, xl = /-\w/g, pt = Ti((e) => e.replace(xl, (t) => t.slice(1).toUpperCase())), Ol = /\B([A-Z])/g, on = Ti((e) => e.replace(Ol, "-$1").toLowerCase()), $r = Ti((e) => e.charAt(0).toUpperCase() + e.slice(1)), Li = Ti((e) => e ? `on${$r(e)}` : ""), Tt = (e, t) => !Object.is(e, t), oi = (e, ...t) => {
@@ -83,7 +83,7 @@ function zn(e, t) {
83
83
  function Nl(e, t) {
84
84
  return e.findIndex((n) => zn(n, t));
85
85
  }
86
- var Wr = (e) => !!(e && e.__v_isRef === !0), Ce = (e) => we(e) ? e : e == null ? "" : J(e) || ge(e) && (e.toString === Lr || !ce(e.toString)) ? Wr(e) ? Ce(e.value) : JSON.stringify(e, Hr, 2) : String(e), Hr = (e, t) => Wr(t) ? Hr(e, t.value) : un(t) ? { [`Map(${t.size})`]: [...t.entries()].reduce((n, [i, o], r) => (n[Di(i, r) + " =>"] = o, n), {}) } : Ei(t) ? { [`Set(${t.size})`]: [...t.values()].map((n) => Di(n)) } : rt(t) ? Di(t) : ge(t) && !J(t) && !Dr(t) ? String(t) : t, Di = (e, t = "") => {
86
+ var Wr = (e) => !!(e && e.__v_isRef === !0), Ce = (e) => we(e) ? e : e == null ? "" : J(e) || ge(e) && (e.toString === Lr || !ue(e.toString)) ? Wr(e) ? Ce(e.value) : JSON.stringify(e, Hr, 2) : String(e), Hr = (e, t) => Wr(t) ? Hr(e, t.value) : cn(t) ? { [`Map(${t.size})`]: [...t.entries()].reduce((n, [i, o], r) => (n[Di(i, r) + " =>"] = o, n), {}) } : Ei(t) ? { [`Set(${t.size})`]: [...t.values()].map((n) => Di(n)) } : rt(t) ? Di(t) : ge(t) && !J(t) && !Dr(t) ? String(t) : t, Di = (e, t = "") => {
87
87
  var n;
88
88
  return rt(e) ? `Symbol(${(n = e.description) != null ? n : t})` : e;
89
89
  };
@@ -362,22 +362,22 @@ function Rt(e, t, n, i, o, r) {
362
362
  };
363
363
  if (ho(), t === "clear") s.forEach(l);
364
364
  else {
365
- const a = J(e), u = a && wi(n);
365
+ const a = J(e), c = a && wi(n);
366
366
  if (a && n === "length") {
367
- const c = Number(i);
367
+ const u = Number(i);
368
368
  s.forEach((f, p) => {
369
- (p === "length" || p === $n || !rt(p) && p >= c) && l(f);
369
+ (p === "length" || p === $n || !rt(p) && p >= u) && l(f);
370
370
  });
371
371
  } else
372
- switch ((n !== void 0 || s.has(void 0)) && l(s.get(n)), u && l(s.get($n)), t) {
372
+ switch ((n !== void 0 || s.has(void 0)) && l(s.get(n)), c && l(s.get($n)), t) {
373
373
  case "add":
374
- a ? u && l(s.get("length")) : (l(s.get(tn)), un(e) && l(s.get(Qi)));
374
+ a ? c && l(s.get("length")) : (l(s.get(tn)), cn(e) && l(s.get(Qi)));
375
375
  break;
376
376
  case "delete":
377
- a || (l(s.get(tn)), un(e) && l(s.get(Qi)));
377
+ a || (l(s.get(tn)), cn(e) && l(s.get(Qi)));
378
378
  break;
379
379
  case "set":
380
- un(e) && l(s.get(tn));
380
+ cn(e) && l(s.get(tn));
381
381
  break;
382
382
  }
383
383
  }
@@ -495,22 +495,22 @@ function Mt(e, t, n, i, o, r) {
495
495
  const f = a.apply(e, r);
496
496
  return l ? gt(f) : f;
497
497
  }
498
- let u = n;
499
- s !== e && (l ? u = function(f, p) {
498
+ let c = n;
499
+ s !== e && (l ? c = function(f, p) {
500
500
  return n.call(this, Et(e, f), p, e);
501
- } : n.length > 2 && (u = function(f, p) {
501
+ } : n.length > 2 && (c = function(f, p) {
502
502
  return n.call(this, f, p, e);
503
503
  }));
504
- const c = a.call(s, u, i);
505
- return l && o ? o(c) : c;
504
+ const u = a.call(s, c, i);
505
+ return l && o ? o(u) : u;
506
506
  }
507
507
  function No(e, t, n, i) {
508
508
  const o = xi(e), r = o !== e && !/* @__PURE__ */ it(e);
509
509
  let s = n, l = !1;
510
- o !== e && (r ? (l = i.length === 0, s = function(u, c, f) {
511
- return l && (l = !1, u = Et(e, u)), n.call(this, u, Et(e, c), f, e);
512
- }) : n.length > 3 && (s = function(u, c, f) {
513
- return n.call(this, u, c, f, e);
510
+ o !== e && (r ? (l = i.length === 0, s = function(c, u, f) {
511
+ return l && (l = !1, c = Et(e, c)), n.call(this, c, Et(e, u), f, e);
512
+ }) : n.length > 3 && (s = function(c, u, f) {
513
+ return n.call(this, c, u, f, e);
514
514
  }));
515
515
  const a = o[t](s, ...i);
516
516
  return l ? Et(e, a) : a;
@@ -596,14 +596,14 @@ var Qr = class {
596
596
  }, ql = /* @__PURE__ */ new es(), Kl = /* @__PURE__ */ new Ul(), Gl = /* @__PURE__ */ new es(!0), eo = (e) => e, Xn = (e) => Reflect.getPrototypeOf(e);
597
597
  function Yl(e, t, n) {
598
598
  return function(...i) {
599
- const o = this.__v_raw, r = /* @__PURE__ */ oe(o), s = un(r), l = e === "entries" || e === Symbol.iterator && s, a = e === "keys" && s, u = o[e](...i), c = n ? eo : t ? hn : gt;
600
- return !t && Ve(r, "iterate", a ? Qi : tn), ot(Object.create(u), { next() {
601
- const { value: f, done: p } = u.next();
599
+ const o = this.__v_raw, r = /* @__PURE__ */ oe(o), s = cn(r), l = e === "entries" || e === Symbol.iterator && s, a = e === "keys" && s, c = o[e](...i), u = n ? eo : t ? hn : gt;
600
+ return !t && Ve(r, "iterate", a ? Qi : tn), ot(Object.create(c), { next() {
601
+ const { value: f, done: p } = c.next();
602
602
  return p ? {
603
603
  value: f,
604
604
  done: p
605
605
  } : {
606
- value: l ? [c(f[0]), c(f[1])] : c(f),
606
+ value: l ? [u(f[0]), u(f[1])] : u(f),
607
607
  done: p
608
608
  };
609
609
  } });
@@ -634,7 +634,7 @@ function Xl(e, t) {
634
634
  },
635
635
  forEach(i, o) {
636
636
  const r = this, s = r.__v_raw, l = /* @__PURE__ */ oe(s), a = t ? eo : e ? hn : gt;
637
- return !e && Ve(l, "iterate", tn), s.forEach((u, c) => i.call(o, a(u), a(c), r));
637
+ return !e && Ve(l, "iterate", tn), s.forEach((c, u) => i.call(o, a(c), a(u), r));
638
638
  }
639
639
  };
640
640
  return ot(n, e ? {
@@ -652,15 +652,15 @@ function Xl(e, t) {
652
652
  const r = /* @__PURE__ */ oe(this), { has: s, get: l } = Xn(r);
653
653
  let a = s.call(r, i);
654
654
  a || (i = /* @__PURE__ */ oe(i), a = s.call(r, i));
655
- const u = l.call(r, i);
656
- return r.set(i, o), a ? Tt(o, u) && Rt(r, "set", i, o, u) : Rt(r, "add", i, o), this;
655
+ const c = l.call(r, i);
656
+ return r.set(i, o), a ? Tt(o, c) && Rt(r, "set", i, o, c) : Rt(r, "add", i, o), this;
657
657
  },
658
658
  delete(i) {
659
659
  const o = /* @__PURE__ */ oe(this), { has: r, get: s } = Xn(o);
660
660
  let l = r.call(o, i);
661
661
  l || (i = /* @__PURE__ */ oe(i), l = r.call(o, i));
662
- const a = s ? s.call(o, i) : void 0, u = o.delete(i);
663
- return l && Rt(o, "delete", i, void 0, a), u;
662
+ const a = s ? s.call(o, i) : void 0, c = o.delete(i);
663
+ return l && Rt(o, "delete", i, void 0, a), c;
664
664
  },
665
665
  clear() {
666
666
  const i = /* @__PURE__ */ oe(this), o = i.size !== 0, r = void 0, s = i.clear();
@@ -812,12 +812,12 @@ var la = class {
812
812
  };
813
813
  // @__NO_SIDE_EFFECTS__
814
814
  function se(e, t, n) {
815
- return /* @__PURE__ */ Ae(e) ? e : ce(e) ? new aa(e) : ge(e) && arguments.length > 1 ? ua(e, t, n) : /* @__PURE__ */ L(e);
815
+ return /* @__PURE__ */ Ae(e) ? e : ue(e) ? new aa(e) : ge(e) && arguments.length > 1 ? ca(e, t, n) : /* @__PURE__ */ L(e);
816
816
  }
817
- function ua(e, t, n) {
817
+ function ca(e, t, n) {
818
818
  return new la(e, t, n);
819
819
  }
820
- var ca = class {
820
+ var ua = class {
821
821
  constructor(e, t, n) {
822
822
  this.fn = e, this.setter = t, this._value = void 0, this.dep = new go(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = Dn - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !t, this.isSSR = n;
823
823
  }
@@ -836,7 +836,7 @@ var ca = class {
836
836
  // @__NO_SIDE_EFFECTS__
837
837
  function da(e, t, n = !1) {
838
838
  let i, o;
839
- return ce(e) ? i = e : (i = e.get, o = e.set), new ca(i, o, n);
839
+ return ue(e) ? i = e : (i = e.get, o = e.set), new ua(i, o, n);
840
840
  }
841
841
  var Zn = {}, li = /* @__PURE__ */ new WeakMap(), Jt = void 0;
842
842
  function fa(e, t = !1, n = Jt) {
@@ -846,13 +846,13 @@ function fa(e, t = !1, n = Jt) {
846
846
  }
847
847
  }
848
848
  function ha(e, t, n = ye) {
849
- const { immediate: i, deep: o, once: r, scheduler: s, augmentJob: l, call: a } = n, u = (S) => o ? S : /* @__PURE__ */ it(S) || o === !1 || o === 0 ? kt(S, 1) : kt(S);
850
- let c, f, p, v, b = !1, g = !1;
851
- if (/* @__PURE__ */ Ae(e) ? (f = () => e.value, b = /* @__PURE__ */ it(e)) : /* @__PURE__ */ nn(e) ? (f = () => u(e), b = !0) : J(e) ? (g = !0, b = e.some((S) => /* @__PURE__ */ nn(S) || /* @__PURE__ */ it(S)), f = () => e.map((S) => {
849
+ const { immediate: i, deep: o, once: r, scheduler: s, augmentJob: l, call: a } = n, c = (S) => o ? S : /* @__PURE__ */ it(S) || o === !1 || o === 0 ? kt(S, 1) : kt(S);
850
+ let u, f, p, v, b = !1, g = !1;
851
+ if (/* @__PURE__ */ Ae(e) ? (f = () => e.value, b = /* @__PURE__ */ it(e)) : /* @__PURE__ */ nn(e) ? (f = () => c(e), b = !0) : J(e) ? (g = !0, b = e.some((S) => /* @__PURE__ */ nn(S) || /* @__PURE__ */ it(S)), f = () => e.map((S) => {
852
852
  if (/* @__PURE__ */ Ae(S)) return S.value;
853
- if (/* @__PURE__ */ nn(S)) return u(S);
854
- if (ce(S)) return a ? a(S, 2) : S();
855
- })) : ce(e) ? t ? f = a ? () => a(e, 2) : e : f = () => {
853
+ if (/* @__PURE__ */ nn(S)) return c(S);
854
+ if (ue(S)) return a ? a(S, 2) : S();
855
+ })) : ue(e) ? t ? f = a ? () => a(e, 2) : e : f = () => {
856
856
  if (p) {
857
857
  Lt();
858
858
  try {
@@ -862,7 +862,7 @@ function ha(e, t, n = ye) {
862
862
  }
863
863
  }
864
864
  const S = Jt;
865
- Jt = c;
865
+ Jt = u;
866
866
  try {
867
867
  return a ? a(e, 3, [v]) : e(v);
868
868
  } finally {
@@ -873,7 +873,7 @@ function ha(e, t, n = ye) {
873
873
  f = () => kt(S(), W);
874
874
  }
875
875
  const _ = $l(), O = () => {
876
- c.stop(), _ && _.active && kr(_.effects, c);
876
+ u.stop(), _ && _.active && kr(_.effects, u);
877
877
  };
878
878
  if (r && t) {
879
879
  const S = t;
@@ -884,13 +884,13 @@ function ha(e, t, n = ye) {
884
884
  }
885
885
  let M = g ? new Array(e.length).fill(Zn) : Zn;
886
886
  const F = (S) => {
887
- if (!(!(c.flags & 1) || !c.dirty && !S))
887
+ if (!(!(u.flags & 1) || !u.dirty && !S))
888
888
  if (t) {
889
- const W = c.run();
889
+ const W = u.run();
890
890
  if (S || o || b || (g ? W.some((U, k) => Tt(U, M[k])) : Tt(W, M))) {
891
891
  p && p();
892
892
  const U = Jt;
893
- Jt = c;
893
+ Jt = u;
894
894
  try {
895
895
  const k = [
896
896
  W,
@@ -902,22 +902,22 @@ function ha(e, t, n = ye) {
902
902
  Jt = U;
903
903
  }
904
904
  }
905
- } else c.run();
905
+ } else u.run();
906
906
  };
907
- return l && l(F), c = new zr(f), c.scheduler = s ? () => s(F, !1) : F, v = (S) => fa(S, !1, c), p = c.onStop = () => {
908
- const S = li.get(c);
907
+ return l && l(F), u = new zr(f), u.scheduler = s ? () => s(F, !1) : F, v = (S) => fa(S, !1, u), p = u.onStop = () => {
908
+ const S = li.get(u);
909
909
  if (S) {
910
910
  if (a) a(S, 4);
911
911
  else for (const W of S) W();
912
- li.delete(c);
912
+ li.delete(u);
913
913
  }
914
- }, t ? i ? F(!0) : M = c.run() : s ? s(F.bind(null, !0), !0) : c.run(), O.pause = c.pause.bind(c), O.resume = c.resume.bind(c), O.stop = O, O;
914
+ }, t ? i ? F(!0) : M = u.run() : s ? s(F.bind(null, !0), !0) : u.run(), O.pause = u.pause.bind(u), O.resume = u.resume.bind(u), O.stop = O, O;
915
915
  }
916
916
  function kt(e, t = 1 / 0, n) {
917
917
  if (t <= 0 || !ge(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t)) return e;
918
918
  if (n.set(e, t), t--, /* @__PURE__ */ Ae(e)) kt(e.value, t, n);
919
919
  else if (J(e)) for (let i = 0; i < e.length; i++) kt(e[i], t, n);
920
- else if (Ei(e) || un(e)) e.forEach((i) => {
920
+ else if (Ei(e) || cn(e)) e.forEach((i) => {
921
921
  kt(i, t, n);
922
922
  });
923
923
  else if (Dr(e)) {
@@ -934,7 +934,7 @@ function Un(e, t, n, i) {
934
934
  }
935
935
  }
936
936
  function Ct(e, t, n, i) {
937
- if (ce(e)) {
937
+ if (ue(e)) {
938
938
  const o = Un(e, t, n, i);
939
939
  return o && Nr(o) && o.catch((r) => {
940
940
  Pi(r, t, n);
@@ -950,11 +950,11 @@ function Pi(e, t, n, i = !0) {
950
950
  const o = t ? t.vnode : null, { errorHandler: r, throwUnhandledErrorInProduction: s } = t && t.appContext.config || ye;
951
951
  if (t) {
952
952
  let l = t.parent;
953
- const a = t.proxy, u = `https://vuejs.org/error-reference/#runtime-${n}`;
953
+ const a = t.proxy, c = `https://vuejs.org/error-reference/#runtime-${n}`;
954
954
  for (; l; ) {
955
- const c = l.ec;
956
- if (c) {
957
- for (let f = 0; f < c.length; f++) if (c[f](e, a, u) === !1) return;
955
+ const u = l.ec;
956
+ if (u) {
957
+ for (let f = 0; f < u.length; f++) if (u[f](e, a, c) === !1) return;
958
958
  }
959
959
  l = l.parent;
960
960
  }
@@ -962,7 +962,7 @@ function Pi(e, t, n, i = !0) {
962
962
  Lt(), Un(r, null, 10, [
963
963
  e,
964
964
  a,
965
- u
965
+ c
966
966
  ]), Dt();
967
967
  return;
968
968
  }
@@ -973,7 +973,7 @@ function pa(e, t, n, i = !0, o = !1) {
973
973
  if (o) throw e;
974
974
  console.error(e);
975
975
  }
976
- var Ue = [], St = -1, cn = [], zt = null, ln = 0, ss = /* @__PURE__ */ Promise.resolve(), ai = null;
976
+ var Ue = [], St = -1, un = [], zt = null, ln = 0, ss = /* @__PURE__ */ Promise.resolve(), ai = null;
977
977
  function Mi(e) {
978
978
  const t = ai || ss;
979
979
  return e ? t.then(this ? e.bind(this) : e) : t;
@@ -993,10 +993,10 @@ function yo(e) {
993
993
  }
994
994
  }
995
995
  function ls() {
996
- ai || (ai = ss.then(cs));
996
+ ai || (ai = ss.then(us));
997
997
  }
998
998
  function as(e) {
999
- J(e) ? cn.push(...e) : zt && e.id === -1 ? zt.splice(ln + 1, 0, e) : e.flags & 1 || (cn.push(e), e.flags |= 1), ls();
999
+ J(e) ? un.push(...e) : zt && e.id === -1 ? zt.splice(ln + 1, 0, e) : e.flags & 1 || (un.push(e), e.flags |= 1), ls();
1000
1000
  }
1001
1001
  function Lo(e, t, n = St + 1) {
1002
1002
  for (; n < Ue.length; n++) {
@@ -1007,10 +1007,10 @@ function Lo(e, t, n = St + 1) {
1007
1007
  }
1008
1008
  }
1009
1009
  }
1010
- function us(e) {
1011
- if (cn.length) {
1012
- const t = [...new Set(cn)].sort((n, i) => Fn(n) - Fn(i));
1013
- if (cn.length = 0, zt) {
1010
+ function cs(e) {
1011
+ if (un.length) {
1012
+ const t = [...new Set(un)].sort((n, i) => Fn(n) - Fn(i));
1013
+ if (un.length = 0, zt) {
1014
1014
  zt.push(...t);
1015
1015
  return;
1016
1016
  }
@@ -1022,7 +1022,7 @@ function us(e) {
1022
1022
  }
1023
1023
  }
1024
1024
  var Fn = (e) => e.id == null ? e.flags & 2 ? -1 : 1 / 0 : e.id;
1025
- function cs(e) {
1025
+ function us(e) {
1026
1026
  try {
1027
1027
  for (St = 0; St < Ue.length; St++) {
1028
1028
  const t = Ue[St];
@@ -1033,11 +1033,11 @@ function cs(e) {
1033
1033
  const t = Ue[St];
1034
1034
  t && (t.flags &= -2);
1035
1035
  }
1036
- St = -1, Ue.length = 0, us(e), ai = null, (Ue.length || cn.length) && cs(e);
1036
+ St = -1, Ue.length = 0, cs(e), ai = null, (Ue.length || un.length) && us(e);
1037
1037
  }
1038
1038
  }
1039
1039
  var We = null, ds = null;
1040
- function ui(e) {
1040
+ function ci(e) {
1041
1041
  const t = We;
1042
1042
  return We = e, ds = e && e.type.__scopeId || null, t;
1043
1043
  }
@@ -1045,12 +1045,12 @@ function Se(e, t = We, n) {
1045
1045
  if (!t || e._n) return e;
1046
1046
  const i = (...o) => {
1047
1047
  i._d && Ho(-1);
1048
- const r = ui(t);
1048
+ const r = ci(t);
1049
1049
  let s;
1050
1050
  try {
1051
1051
  s = e(...o);
1052
1052
  } finally {
1053
- ui(r), i._d && Ho(1);
1053
+ ci(r), i._d && Ho(1);
1054
1054
  }
1055
1055
  return s;
1056
1056
  };
@@ -1061,7 +1061,7 @@ function no(e, t) {
1061
1061
  const n = ki(We), i = e.dirs || (e.dirs = []);
1062
1062
  for (let o = 0; o < t.length; o++) {
1063
1063
  let [r, s, l, a = ye] = t[o];
1064
- r && (ce(r) && (r = {
1064
+ r && (ue(r) && (r = {
1065
1065
  mounted: r,
1066
1066
  updated: r
1067
1067
  }), r.deep && kt(s), i.push({
@@ -1101,7 +1101,7 @@ function fs(e, t, n = !1) {
1101
1101
  if (i || fn) {
1102
1102
  let o = fn ? fn._context.provides : i ? i.parent == null || i.ce ? i.vnode.appContext && i.vnode.appContext.provides : i.parent.provides : void 0;
1103
1103
  if (o && e in o) return o[e];
1104
- if (arguments.length > 1) return n && ce(t) ? t.call(i && i.proxy) : t;
1104
+ if (arguments.length > 1) return n && ue(t) ? t.call(i && i.proxy) : t;
1105
1105
  }
1106
1106
  }
1107
1107
  var ma = /* @__PURE__ */ Symbol.for("v-scx"), _a = () => {
@@ -1115,29 +1115,29 @@ function Me(e, t, n) {
1115
1115
  }
1116
1116
  function ya(e, t, n = ye) {
1117
1117
  const { immediate: i, deep: o, flush: r, once: s } = n, l = ot({}, n), a = t && i || !t && r !== "post";
1118
- let u;
1118
+ let c;
1119
1119
  if (Vn) {
1120
1120
  if (r === "sync") {
1121
1121
  const v = _a();
1122
- u = v.__watcherHandles || (v.__watcherHandles = []);
1122
+ c = v.__watcherHandles || (v.__watcherHandles = []);
1123
1123
  } else if (!a) {
1124
1124
  const v = () => {
1125
1125
  };
1126
1126
  return v.stop = Ut, v.resume = Ut, v.pause = Ut, v;
1127
1127
  }
1128
1128
  }
1129
- const c = tt;
1130
- l.call = (v, b, g) => Ct(v, c, b, g);
1129
+ const u = tt;
1130
+ l.call = (v, b, g) => Ct(v, u, b, g);
1131
1131
  let f = !1;
1132
1132
  r === "post" ? l.scheduler = (v) => {
1133
- ze(v, c && c.suspense);
1133
+ ze(v, u && u.suspense);
1134
1134
  } : r !== "sync" && (f = !0, l.scheduler = (v, b) => {
1135
1135
  b ? v() : yo(v);
1136
1136
  }), l.augmentJob = (v) => {
1137
- t && (v.flags |= 4), f && (v.flags |= 2, c && (v.id = c.uid, v.i = c));
1137
+ t && (v.flags |= 4), f && (v.flags |= 2, u && (v.id = u.uid, v.i = u));
1138
1138
  };
1139
1139
  const p = ha(e, t, l);
1140
- return Vn && (u ? u.push(p) : a && p()), p;
1140
+ return Vn && (c ? c.push(p) : a && p()), p;
1141
1141
  }
1142
1142
  var Wt = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ Symbol("_vte"), ba = (e) => e.__isTeleport, Qt = (e) => e && (e.disabled || e.disabled === ""), Sa = (e) => e && (e.defer || e.defer === ""), Do = (e) => typeof SVGElement < "u" && e instanceof SVGElement, $o = (e) => typeof MathMLElement == "function" && e instanceof MathMLElement, io = (e, t) => {
1143
1143
  const n = e && e.to;
@@ -1145,11 +1145,11 @@ var Wt = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ Symbol("_vte"), ba
1145
1145
  }, Ea = {
1146
1146
  name: "Teleport",
1147
1147
  __isTeleport: !0,
1148
- process(e, t, n, i, o, r, s, l, a, u) {
1149
- const { mc: c, pc: f, pbc: p, o: { insert: v, querySelector: b, createText: g, createComment: _, parentNode: O } } = u, M = Qt(t.props);
1148
+ process(e, t, n, i, o, r, s, l, a, c) {
1149
+ const { mc: u, pc: f, pbc: p, o: { insert: v, querySelector: b, createText: g, createComment: _, parentNode: O } } = c, M = Qt(t.props);
1150
1150
  let { dynamicChildren: F } = t;
1151
1151
  const S = (k, H, j) => {
1152
- k.shapeFlag & 16 && c(k.children, H, j, o, r, s, l, a);
1152
+ k.shapeFlag & 16 && u(k.children, H, j, o, r, s, l, a);
1153
1153
  }, W = (k = t) => {
1154
1154
  const H = Qt(k.props), j = k.target = io(k.props, b), Y = oo(j, k, g, v);
1155
1155
  j && (s !== "svg" && Do(j) ? s = "svg" : s !== "mathml" && $o(j) && (s = "mathml"), o && o.isCE && (o.ce._teleportTargets || (o.ce._teleportTargets = /* @__PURE__ */ new Set())).add(j), H || (S(k, j, Y), xn(k, !1)));
@@ -1182,17 +1182,17 @@ var Wt = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ Symbol("_vte"), ba
1182
1182
  t.targetStart = e.targetStart;
1183
1183
  const j = t.target = e.target, Y = t.targetAnchor = e.targetAnchor, le = Qt(e.props), fe = le ? n : j, I = le ? k : Y;
1184
1184
  if (s === "svg" || Do(j) ? s = "svg" : (s === "mathml" || $o(j)) && (s = "mathml"), F ? (p(e.dynamicChildren, F, fe, o, r, s, l), wo(e, t, !0)) : a || f(e, t, fe, I, o, r, s, l, !1), M)
1185
- le ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : Qn(t, n, k, u, 1);
1185
+ le ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : Qn(t, n, k, c, 1);
1186
1186
  else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
1187
1187
  const X = io(t.props, b);
1188
- X && (t.target = X, Qn(t, X, null, u, 0));
1189
- } else le && Qn(t, j, Y, u, 1);
1188
+ X && (t.target = X, Qn(t, X, null, c, 0));
1189
+ } else le && Qn(t, j, Y, c, 1);
1190
1190
  xn(t, M);
1191
1191
  }
1192
1192
  },
1193
1193
  remove(e, t, n, { um: i, o: { remove: o } }, r) {
1194
- const { shapeFlag: s, children: l, anchor: a, targetStart: u, targetAnchor: c, target: f, props: p } = e, v = Qt(p), b = r || !v, g = Wt.get(e);
1195
- if (g && (g.flags |= 8, Wt.delete(e)), f && (o(u), o(c)), r && o(a), !g && (v || f) && s & 16) for (let _ = 0; _ < l.length; _++) {
1194
+ const { shapeFlag: s, children: l, anchor: a, targetStart: c, targetAnchor: u, target: f, props: p } = e, v = Qt(p), b = r || !v, g = Wt.get(e);
1195
+ if (g && (g.flags |= 8, Wt.delete(e)), f && (o(c), o(u)), r && o(a), !g && (v || f) && s & 16) for (let _ = 0; _ < l.length; _++) {
1196
1196
  const O = l[_];
1197
1197
  i(O, t, n, b, !!O.dynamicChildren);
1198
1198
  }
@@ -1202,12 +1202,12 @@ var Wt = /* @__PURE__ */ new WeakMap(), hs = /* @__PURE__ */ Symbol("_vte"), ba
1202
1202
  };
1203
1203
  function Qn(e, t, n, { o: { insert: i }, m: o }, r = 2) {
1204
1204
  r === 0 && i(e.targetAnchor, t, n);
1205
- const { el: s, anchor: l, shapeFlag: a, children: u, props: c } = e, f = r === 2;
1206
- if (f && i(s, t, n), !Wt.has(e) && (!f || Qt(c)) && a & 16)
1207
- for (let p = 0; p < u.length; p++) o(u[p], t, n, 2);
1205
+ const { el: s, anchor: l, shapeFlag: a, children: c, props: u } = e, f = r === 2;
1206
+ if (f && i(s, t, n), !Wt.has(e) && (!f || Qt(u)) && a & 16)
1207
+ for (let p = 0; p < c.length; p++) o(c[p], t, n, 2);
1208
1208
  f && i(l, t, n);
1209
1209
  }
1210
- function wa(e, t, n, i, o, r, { o: { nextSibling: s, parentNode: l, querySelector: a, insert: u, createText: c } }, f) {
1210
+ function wa(e, t, n, i, o, r, { o: { nextSibling: s, parentNode: l, querySelector: a, insert: c, createText: u } }, f) {
1211
1211
  function p(_, O) {
1212
1212
  let M = O;
1213
1213
  for (; M; ) {
@@ -1227,7 +1227,7 @@ function wa(e, t, n, i, o, r, { o: { nextSibling: s, parentNode: l, querySelecto
1227
1227
  const b = t.target = io(t.props, a), g = Qt(t.props);
1228
1228
  if (b) {
1229
1229
  const _ = b._lpa || b.firstChild;
1230
- t.shapeFlag & 16 && (g ? (v(e, t), p(b, _), t.targetAnchor || oo(b, t, c, u, l(e) === b ? e : null)) : (t.anchor = s(e), p(b, _), t.targetAnchor || oo(b, t, c, u), f(_ && s(_), t, b, n, i, o, r))), xn(t, g);
1230
+ t.shapeFlag & 16 && (g ? (v(e, t), p(b, _), t.targetAnchor || oo(b, t, u, c, l(e) === b ? e : null)) : (t.anchor = s(e), p(b, _), t.targetAnchor || oo(b, t, u, c), f(_ && s(_), t, b, n, i, o, r))), xn(t, g);
1231
1231
  } else g && t.shapeFlag & 16 && (v(e, t), t.targetStart = e, t.targetAnchor = s(e));
1232
1232
  return t.anchor && s(t.anchor);
1233
1233
  }
@@ -1251,7 +1251,7 @@ function bo(e, t) {
1251
1251
  }
1252
1252
  // @__NO_SIDE_EFFECTS__
1253
1253
  function Ye(e, t) {
1254
- return ce(e) ? ot({ name: e.name }, t, { setup: e }) : e;
1254
+ return ue(e) ? ot({ name: e.name }, t, { setup: e }) : e;
1255
1255
  }
1256
1256
  function Ta() {
1257
1257
  const e = Ri();
@@ -1268,7 +1268,7 @@ function Fo(e, t) {
1268
1268
  let n;
1269
1269
  return !!((n = Object.getOwnPropertyDescriptor(e, t)) && !n.configurable);
1270
1270
  }
1271
- var ci = /* @__PURE__ */ new WeakMap();
1271
+ var ui = /* @__PURE__ */ new WeakMap();
1272
1272
  function An(e, t, n, i, o = !1) {
1273
1273
  if (J(e)) {
1274
1274
  e.forEach((g, _) => An(g, t && (J(t) ? t[_] : t), n, i, o));
@@ -1278,19 +1278,19 @@ function An(e, t, n, i, o = !1) {
1278
1278
  i.shapeFlag & 512 && i.type.__asyncResolved && i.component.subTree.component && An(e, t, n, i.component.subTree);
1279
1279
  return;
1280
1280
  }
1281
- const r = i.shapeFlag & 4 ? ki(i.component) : i.el, s = o ? null : r, { i: l, r: a } = e, u = t && t.r, c = l.refs === ye ? l.refs = {} : l.refs, f = l.setupState, p = /* @__PURE__ */ oe(f), v = f === ye ? Rr : (g) => Fo(c, g) ? !1 : de(p, g), b = (g, _) => !(_ && Fo(c, _));
1282
- if (u != null && u !== a) {
1283
- if (Bo(t), we(u))
1284
- c[u] = null, v(u) && (f[u] = null);
1285
- else if (/* @__PURE__ */ Ae(u)) {
1281
+ const r = i.shapeFlag & 4 ? ki(i.component) : i.el, s = o ? null : r, { i: l, r: a } = e, c = t && t.r, u = l.refs === ye ? l.refs = {} : l.refs, f = l.setupState, p = /* @__PURE__ */ oe(f), v = f === ye ? Rr : (g) => Fo(u, g) ? !1 : de(p, g), b = (g, _) => !(_ && Fo(u, _));
1282
+ if (c != null && c !== a) {
1283
+ if (Bo(t), we(c))
1284
+ u[c] = null, v(c) && (f[c] = null);
1285
+ else if (/* @__PURE__ */ Ae(c)) {
1286
1286
  const g = t;
1287
- b(u, g.k) && (u.value = null), g.k && (c[g.k] = null);
1287
+ b(c, g.k) && (c.value = null), g.k && (u[g.k] = null);
1288
1288
  }
1289
1289
  }
1290
- if (ce(a)) {
1290
+ if (ue(a)) {
1291
1291
  Lt();
1292
1292
  try {
1293
- Un(a, l, 12, [s, c]);
1293
+ Un(a, l, 12, [s, u]);
1294
1294
  } finally {
1295
1295
  Dt();
1296
1296
  }
@@ -1299,30 +1299,30 @@ function An(e, t, n, i, o = !1) {
1299
1299
  if (g || _) {
1300
1300
  const O = () => {
1301
1301
  if (e.f) {
1302
- const M = g ? v(a) ? f[a] : c[a] : b(a) || !e.k ? a.value : c[e.k];
1302
+ const M = g ? v(a) ? f[a] : u[a] : b(a) || !e.k ? a.value : u[e.k];
1303
1303
  if (o) J(M) && kr(M, r);
1304
1304
  else if (J(M)) M.includes(r) || M.push(r);
1305
1305
  else if (g)
1306
- c[a] = [r], v(a) && (f[a] = c[a]);
1306
+ u[a] = [r], v(a) && (f[a] = u[a]);
1307
1307
  else {
1308
1308
  const F = [r];
1309
- b(a, e.k) && (a.value = F), e.k && (c[e.k] = F);
1309
+ b(a, e.k) && (a.value = F), e.k && (u[e.k] = F);
1310
1310
  }
1311
- } else g ? (c[a] = s, v(a) && (f[a] = s)) : _ && (b(a, e.k) && (a.value = s), e.k && (c[e.k] = s));
1311
+ } else g ? (u[a] = s, v(a) && (f[a] = s)) : _ && (b(a, e.k) && (a.value = s), e.k && (u[e.k] = s));
1312
1312
  };
1313
1313
  if (s) {
1314
1314
  const M = () => {
1315
- O(), ci.delete(e);
1315
+ O(), ui.delete(e);
1316
1316
  };
1317
- M.id = -1, ci.set(e, M), ze(M, n);
1317
+ M.id = -1, ui.set(e, M), ze(M, n);
1318
1318
  } else
1319
1319
  Bo(e), O();
1320
1320
  }
1321
1321
  }
1322
1322
  }
1323
1323
  function Bo(e) {
1324
- const t = ci.get(e);
1325
- t && (t.flags |= 8, ci.delete(e));
1324
+ const t = ui.get(e);
1325
+ t && (t.flags |= 8, ui.delete(e));
1326
1326
  }
1327
1327
  var Np = Ci().requestIdleCallback || ((e) => setTimeout(e, 1)), Lp = Ci().cancelIdleCallback || ((e) => clearTimeout(e)), dn = (e) => !!e.type.__asyncLoader, xa = (e) => e.type.__isKeepAlive;
1328
1328
  function Oa(e, t, n = tt, i = !1) {
@@ -1343,9 +1343,9 @@ function Bn(e, t, n, i) {
1343
1343
  const r = n && n[i], s = J(e);
1344
1344
  if (s || we(e)) {
1345
1345
  const l = s && /* @__PURE__ */ nn(e);
1346
- let a = !1, u = !1;
1347
- l && (a = !/* @__PURE__ */ it(e), u = /* @__PURE__ */ $t(e), e = xi(e)), o = new Array(e.length);
1348
- for (let c = 0, f = e.length; c < f; c++) o[c] = t(a ? u ? hn(gt(e[c])) : gt(e[c]) : e[c], c, void 0, r && r[c]);
1346
+ let a = !1, c = !1;
1347
+ l && (a = !/* @__PURE__ */ it(e), c = /* @__PURE__ */ $t(e), e = xi(e)), o = new Array(e.length);
1348
+ for (let u = 0, f = e.length; u < f; u++) o[u] = t(a ? c ? hn(gt(e[u])) : gt(e[u]) : e[u], u, void 0, r && r[u]);
1349
1349
  } else if (typeof e == "number") {
1350
1350
  o = new Array(e);
1351
1351
  for (let l = 0; l < e; l++) o[l] = t(l + 1, l, void 0, r && r[l]);
@@ -1353,9 +1353,9 @@ function Bn(e, t, n, i) {
1353
1353
  else {
1354
1354
  const l = Object.keys(e);
1355
1355
  o = new Array(l.length);
1356
- for (let a = 0, u = l.length; a < u; a++) {
1357
- const c = l[a];
1358
- o[a] = t(e[c], c, a, r && r[a]);
1356
+ for (let a = 0, c = l.length; a < c; a++) {
1357
+ const u = l[a];
1358
+ o[a] = t(e[u], u, a, r && r[a]);
1359
1359
  }
1360
1360
  }
1361
1361
  else o = [];
@@ -1374,8 +1374,8 @@ function di(e, t) {
1374
1374
  }
1375
1375
  function te(e, t, n = {}, i, o) {
1376
1376
  if (We.ce || We.parent && dn(We.parent) && We.parent.ce) {
1377
- const u = Object.keys(n).length > 0;
1378
- return t !== "default" && (n.name = t), $(), xt(ve, null, [Oe("slot", n, i && i())], u ? -2 : 64);
1377
+ const c = Object.keys(n).length > 0;
1378
+ return t !== "default" && (n.name = t), $(), xt(ve, null, [Oe("slot", n, i && i())], c ? -2 : 64);
1379
1379
  }
1380
1380
  let r = e[t];
1381
1381
  r && r._c && (r._d = !1), $();
@@ -1429,11 +1429,11 @@ var ro = (e) => e ? As(e) ? ki(e) : ro(e.parent) : null, Rn = /* @__PURE__ */ ot
1429
1429
  s[t] = 0;
1430
1430
  }
1431
1431
  }
1432
- const u = Rn[t];
1433
- let c, f;
1434
- if (u)
1435
- return t === "$attrs" && Ve(e.attrs, "get", ""), u(e);
1436
- if ((c = l.__cssModules) && (c = c[t])) return c;
1432
+ const c = Rn[t];
1433
+ let u, f;
1434
+ if (c)
1435
+ return t === "$attrs" && Ve(e.attrs, "get", ""), c(e);
1436
+ if ((u = l.__cssModules) && (u = u[t])) return u;
1437
1437
  if (n !== ye && de(n, t))
1438
1438
  return s[t] = 4, n[t];
1439
1439
  if (f = a.config.globalProperties, de(f, t)) return f[t];
@@ -1481,60 +1481,60 @@ function ms() {
1481
1481
  var Ra = 0;
1482
1482
  function ka(e, t) {
1483
1483
  return function(i, o = null) {
1484
- ce(i) || (i = ot({}, i)), o != null && !ge(o) && (o = null);
1484
+ ue(i) || (i = ot({}, i)), o != null && !ge(o) && (o = null);
1485
1485
  const r = ms(), s = /* @__PURE__ */ new WeakSet(), l = [];
1486
1486
  let a = !1;
1487
- const u = r.app = {
1487
+ const c = r.app = {
1488
1488
  _uid: Ra++,
1489
1489
  _component: i,
1490
1490
  _props: o,
1491
1491
  _container: null,
1492
1492
  _context: r,
1493
1493
  _instance: null,
1494
- version: uu,
1494
+ version: cc,
1495
1495
  get config() {
1496
1496
  return r.config;
1497
1497
  },
1498
- set config(c) {
1498
+ set config(u) {
1499
1499
  },
1500
- use(c, ...f) {
1501
- return s.has(c) || (c && ce(c.install) ? (s.add(c), c.install(u, ...f)) : ce(c) && (s.add(c), c(u, ...f))), u;
1500
+ use(u, ...f) {
1501
+ return s.has(u) || (u && ue(u.install) ? (s.add(u), u.install(c, ...f)) : ue(u) && (s.add(u), u(c, ...f))), c;
1502
1502
  },
1503
- mixin(c) {
1504
- return u;
1503
+ mixin(u) {
1504
+ return c;
1505
1505
  },
1506
- component(c, f) {
1507
- return f ? (r.components[c] = f, u) : r.components[c];
1506
+ component(u, f) {
1507
+ return f ? (r.components[u] = f, c) : r.components[u];
1508
1508
  },
1509
- directive(c, f) {
1510
- return f ? (r.directives[c] = f, u) : r.directives[c];
1509
+ directive(u, f) {
1510
+ return f ? (r.directives[u] = f, c) : r.directives[u];
1511
1511
  },
1512
- mount(c, f, p) {
1512
+ mount(u, f, p) {
1513
1513
  if (!a) {
1514
- const v = u._ceVNode || Oe(i, o);
1515
- return v.appContext = r, p === !0 ? p = "svg" : p === !1 && (p = void 0), f && t ? t(v, c) : e(v, c, p), a = !0, u._container = c, c.__vue_app__ = u, ki(v.component);
1514
+ const v = c._ceVNode || Oe(i, o);
1515
+ return v.appContext = r, p === !0 ? p = "svg" : p === !1 && (p = void 0), f && t ? t(v, u) : e(v, u, p), a = !0, c._container = u, u.__vue_app__ = c, ki(v.component);
1516
1516
  }
1517
1517
  },
1518
- onUnmount(c) {
1519
- l.push(c);
1518
+ onUnmount(u) {
1519
+ l.push(u);
1520
1520
  },
1521
1521
  unmount() {
1522
- a && (Ct(l, u._instance, 16), e(null, u._container), delete u._container.__vue_app__);
1522
+ a && (Ct(l, c._instance, 16), e(null, c._container), delete c._container.__vue_app__);
1523
1523
  },
1524
- provide(c, f) {
1525
- return r.provides[c] = f, u;
1524
+ provide(u, f) {
1525
+ return r.provides[u] = f, c;
1526
1526
  },
1527
- runWithContext(c) {
1527
+ runWithContext(u) {
1528
1528
  const f = fn;
1529
- fn = u;
1529
+ fn = c;
1530
1530
  try {
1531
- return c();
1531
+ return u();
1532
1532
  } finally {
1533
1533
  fn = f;
1534
1534
  }
1535
1535
  }
1536
1536
  };
1537
- return u;
1537
+ return c;
1538
1538
  };
1539
1539
  }
1540
1540
  var fn = null, Na = (e, t) => t === "modelValue" || t === "model-value" ? e.modelModifiers : e[`${t}Modifiers`] || e[`${pt(t)}Modifiers`] || e[`${on(t)}Modifiers`];
@@ -1543,14 +1543,14 @@ function La(e, t, ...n) {
1543
1543
  const i = e.vnode.props || ye;
1544
1544
  let o = n;
1545
1545
  const r = t.startsWith("update:"), s = r && Na(i, t.slice(7));
1546
- s && (s.trim && (o = n.map((c) => we(c) ? c.trim() : c)), s.number && (o = n.map(Br)));
1546
+ s && (s.trim && (o = n.map((u) => we(u) ? u.trim() : u)), s.number && (o = n.map(Br)));
1547
1547
  let l, a = i[l = Li(t)] || i[l = Li(pt(t))];
1548
1548
  !a && r && (a = i[l = Li(on(t))]), a && Ct(a, e, 6, o);
1549
- const u = i[l + "Once"];
1550
- if (u) {
1549
+ const c = i[l + "Once"];
1550
+ if (c) {
1551
1551
  if (!e.emitted) e.emitted = {};
1552
1552
  else if (e.emitted[l]) return;
1553
- e.emitted[l] = !0, Ct(u, e, 6, o);
1553
+ e.emitted[l] = !0, Ct(c, e, 6, o);
1554
1554
  }
1555
1555
  }
1556
1556
  function Da(e, t, n = !1) {
@@ -1564,12 +1564,12 @@ function Ii(e, t) {
1564
1564
  return !e || !bi(t) ? !1 : (t = t.slice(2), t = t === "Once" ? t : t.replace(/Once$/, ""), de(e, t[0].toLowerCase() + t.slice(1)) || de(e, on(t)) || de(e, t));
1565
1565
  }
1566
1566
  function Wi(e) {
1567
- const { type: t, vnode: n, proxy: i, withProxy: o, propsOptions: [r], slots: s, attrs: l, emit: a, render: u, renderCache: c, props: f, data: p, setupState: v, ctx: b, inheritAttrs: g } = e, _ = ui(e);
1567
+ const { type: t, vnode: n, proxy: i, withProxy: o, propsOptions: [r], slots: s, attrs: l, emit: a, render: c, renderCache: u, props: f, data: p, setupState: v, ctx: b, inheritAttrs: g } = e, _ = ci(e);
1568
1568
  let O, M;
1569
1569
  try {
1570
1570
  if (n.shapeFlag & 4) {
1571
1571
  const S = o || i, W = S;
1572
- O = wt(u.call(W, S, c, f, v, p, b)), M = l;
1572
+ O = wt(c.call(W, S, u, f, v, p, b)), M = l;
1573
1573
  } else {
1574
1574
  const S = t;
1575
1575
  O = wt(S.length > 1 ? S(f, {
@@ -1586,7 +1586,7 @@ function Wi(e) {
1586
1586
  const S = Object.keys(M), { shapeFlag: W } = F;
1587
1587
  S.length && W & 7 && (r && S.some(Si) && (M = Fa(M, r)), F = pn(F, M, !1, !0));
1588
1588
  }
1589
- return n.dirs && (F = pn(F, null, !1, !0), F.dirs = F.dirs ? F.dirs.concat(n.dirs) : n.dirs), n.transition && bo(F, n.transition), O = F, ui(_), O;
1589
+ return n.dirs && (F = pn(F, null, !1, !0), F.dirs = F.dirs ? F.dirs.concat(n.dirs) : n.dirs), n.transition && bo(F, n.transition), O = F, ci(_), O;
1590
1590
  }
1591
1591
  var $a = (e) => {
1592
1592
  let t;
@@ -1598,21 +1598,21 @@ var $a = (e) => {
1598
1598
  return n;
1599
1599
  };
1600
1600
  function Ba(e, t, n) {
1601
- const { props: i, children: o, component: r } = e, { props: s, children: l, patchFlag: a } = t, u = r.emitsOptions;
1601
+ const { props: i, children: o, component: r } = e, { props: s, children: l, patchFlag: a } = t, c = r.emitsOptions;
1602
1602
  if (t.dirs || t.transition) return !0;
1603
1603
  if (n && a >= 0) {
1604
1604
  if (a & 1024) return !0;
1605
1605
  if (a & 16)
1606
- return i ? jo(i, s, u) : !!s;
1606
+ return i ? jo(i, s, c) : !!s;
1607
1607
  if (a & 8) {
1608
- const c = t.dynamicProps;
1609
- for (let f = 0; f < c.length; f++) {
1610
- const p = c[f];
1611
- if (_s(s, i, p) && !Ii(u, p)) return !0;
1608
+ const u = t.dynamicProps;
1609
+ for (let f = 0; f < u.length; f++) {
1610
+ const p = u[f];
1611
+ if (_s(s, i, p) && !Ii(c, p)) return !0;
1612
1612
  }
1613
1613
  }
1614
1614
  } else
1615
- return (o || l) && (!l || !l.$stable) ? !0 : i === s ? !1 : i ? s ? jo(i, s, u) : !0 : !!s;
1615
+ return (o || l) && (!l || !l.$stable) ? !0 : i === s ? !1 : i ? s ? jo(i, s, c) : !0 : !!s;
1616
1616
  return !1;
1617
1617
  }
1618
1618
  function jo(e, t, n) {
@@ -1646,46 +1646,46 @@ function Va(e, t, n, i = !1) {
1646
1646
  }
1647
1647
  function Wa(e, t, n, i) {
1648
1648
  const { props: o, attrs: r, vnode: { patchFlag: s } } = e, l = /* @__PURE__ */ oe(o), [a] = e.propsOptions;
1649
- let u = !1;
1649
+ let c = !1;
1650
1650
  if ((i || s > 0) && !(s & 16)) {
1651
1651
  if (s & 8) {
1652
- const c = e.vnode.dynamicProps;
1653
- for (let f = 0; f < c.length; f++) {
1654
- let p = c[f];
1652
+ const u = e.vnode.dynamicProps;
1653
+ for (let f = 0; f < u.length; f++) {
1654
+ let p = u[f];
1655
1655
  if (Ii(e.emitsOptions, p)) continue;
1656
1656
  const v = t[p];
1657
1657
  if (a) if (de(r, p))
1658
- v !== r[p] && (r[p] = v, u = !0);
1658
+ v !== r[p] && (r[p] = v, c = !0);
1659
1659
  else {
1660
1660
  const b = pt(p);
1661
1661
  o[b] = so(a, l, b, v, e, !1);
1662
1662
  }
1663
- else v !== r[p] && (r[p] = v, u = !0);
1663
+ else v !== r[p] && (r[p] = v, c = !0);
1664
1664
  }
1665
1665
  }
1666
1666
  } else {
1667
- Es(e, t, o, r) && (u = !0);
1668
- let c;
1669
- for (const f in l) (!t || !de(t, f) && ((c = on(f)) === f || !de(t, c))) && (a ? n && (n[f] !== void 0 || n[c] !== void 0) && (o[f] = so(a, l, f, void 0, e, !0)) : delete o[f]);
1667
+ Es(e, t, o, r) && (c = !0);
1668
+ let u;
1669
+ for (const f in l) (!t || !de(t, f) && ((u = on(f)) === f || !de(t, u))) && (a ? n && (n[f] !== void 0 || n[u] !== void 0) && (o[f] = so(a, l, f, void 0, e, !0)) : delete o[f]);
1670
1670
  if (r !== l)
1671
- for (const f in r) (!t || !de(t, f)) && (delete r[f], u = !0);
1671
+ for (const f in r) (!t || !de(t, f)) && (delete r[f], c = !0);
1672
1672
  }
1673
- u && Rt(e.attrs, "set", "");
1673
+ c && Rt(e.attrs, "set", "");
1674
1674
  }
1675
1675
  function Es(e, t, n, i) {
1676
1676
  const [o, r] = e.propsOptions;
1677
1677
  let s = !1, l;
1678
1678
  if (t) for (let a in t) {
1679
1679
  if (Pn(a)) continue;
1680
- const u = t[a];
1681
- let c;
1682
- o && de(o, c = pt(a)) ? !r || !r.includes(c) ? n[c] = u : (l || (l = {}))[c] = u : Ii(e.emitsOptions, a) || (!(a in i) || u !== i[a]) && (i[a] = u, s = !0);
1680
+ const c = t[a];
1681
+ let u;
1682
+ o && de(o, u = pt(a)) ? !r || !r.includes(u) ? n[u] = c : (l || (l = {}))[u] = c : Ii(e.emitsOptions, a) || (!(a in i) || c !== i[a]) && (i[a] = c, s = !0);
1683
1683
  }
1684
1684
  if (r) {
1685
- const a = /* @__PURE__ */ oe(n), u = l || ye;
1686
- for (let c = 0; c < r.length; c++) {
1687
- const f = r[c];
1688
- n[f] = so(o, a, f, u[f], e, !de(u, f));
1685
+ const a = /* @__PURE__ */ oe(n), c = l || ye;
1686
+ for (let u = 0; u < r.length; u++) {
1687
+ const f = r[u];
1688
+ n[f] = so(o, a, f, c[f], e, !de(c, f));
1689
1689
  }
1690
1690
  }
1691
1691
  return s;
@@ -1696,12 +1696,12 @@ function so(e, t, n, i, o, r) {
1696
1696
  const l = de(s, "default");
1697
1697
  if (l && i === void 0) {
1698
1698
  const a = s.default;
1699
- if (s.type !== Function && !s.skipFactory && ce(a)) {
1700
- const { propsDefaults: u } = o;
1701
- if (n in u) i = u[n];
1699
+ if (s.type !== Function && !s.skipFactory && ue(a)) {
1700
+ const { propsDefaults: c } = o;
1701
+ if (n in c) i = c[n];
1702
1702
  else {
1703
- const c = xo(o);
1704
- i = u[n] = a.call(null, t), c();
1703
+ const u = xo(o);
1704
+ i = c[n] = a.call(null, t), u();
1705
1705
  }
1706
1706
  } else i = a;
1707
1707
  o.ce && o.ce._setProp(n, i);
@@ -1716,24 +1716,24 @@ function Ha(e, t, n = !1) {
1716
1716
  const r = e.props, s = {}, l = [];
1717
1717
  if (!r)
1718
1718
  return ge(e) && i.set(e, an), an;
1719
- if (J(r)) for (let u = 0; u < r.length; u++) {
1720
- const c = pt(r[u]);
1721
- Vo(c) && (s[c] = ye);
1722
- }
1723
- else if (r) for (const u in r) {
1724
- const c = pt(u);
1725
- if (Vo(c)) {
1726
- const f = r[u], p = s[c] = J(f) || ce(f) ? { type: f } : ot({}, f), v = p.type;
1719
+ if (J(r)) for (let c = 0; c < r.length; c++) {
1720
+ const u = pt(r[c]);
1721
+ Vo(u) && (s[u] = ye);
1722
+ }
1723
+ else if (r) for (const c in r) {
1724
+ const u = pt(c);
1725
+ if (Vo(u)) {
1726
+ const f = r[c], p = s[u] = J(f) || ue(f) ? { type: f } : ot({}, f), v = p.type;
1727
1727
  let b = !1, g = !0;
1728
1728
  if (J(v)) for (let _ = 0; _ < v.length; ++_) {
1729
- const O = v[_], M = ce(O) && O.name;
1729
+ const O = v[_], M = ue(O) && O.name;
1730
1730
  if (M === "Boolean") {
1731
1731
  b = !0;
1732
1732
  break;
1733
1733
  } else M === "String" && (g = !1);
1734
1734
  }
1735
- else b = ce(v) && v.name === "Boolean";
1736
- p[0] = b, p[1] = g, (b || de(p, "default")) && l.push(c);
1735
+ else b = ue(v) && v.name === "Boolean";
1736
+ p[0] = b, p[1] = g, (b || de(p, "default")) && l.push(u);
1737
1737
  }
1738
1738
  }
1739
1739
  const a = [s, l];
@@ -1751,7 +1751,7 @@ var So = (e) => e === "_" || e === "_ctx" || e === "$stable", Eo = (e) => J(e) ?
1751
1751
  for (const o in e) {
1752
1752
  if (So(o)) continue;
1753
1753
  const r = e[o];
1754
- if (ce(r)) t[o] = za(o, r, i);
1754
+ if (ue(r)) t[o] = za(o, r, i);
1755
1755
  else if (r != null) {
1756
1756
  const s = Eo(r);
1757
1757
  t[o] = () => s;
@@ -1784,7 +1784,7 @@ function Ka(e) {
1784
1784
  function Ga(e, t) {
1785
1785
  const n = Ci();
1786
1786
  n.__VUE__ = !0;
1787
- const { insert: i, remove: o, patchProp: r, createElement: s, createText: l, createComment: a, setText: u, setElementText: c, parentNode: f, nextSibling: p, setScopeId: v = Ut, insertStaticContent: b } = e, g = (d, h, m, T = null, E = null, w = null, N = void 0, A = null, R = !!h.dynamicChildren) => {
1787
+ const { insert: i, remove: o, patchProp: r, createElement: s, createText: l, createComment: a, setText: c, setElementText: u, parentNode: f, nextSibling: p, setScopeId: v = Ut, insertStaticContent: b } = e, g = (d, h, m, T = null, E = null, w = null, N = void 0, A = null, R = !!h.dynamicChildren) => {
1788
1788
  if (d === h) return;
1789
1789
  d && !wn(d, h) && (T = st(d), Fe(d, E, w, !0), d = null), h.patchFlag === -2 && (R = !1, h.dynamicChildren = null);
1790
1790
  const { type: C, ref: z, shapeFlag: D } = h;
@@ -1809,7 +1809,7 @@ function Ga(e, t) {
1809
1809
  if (d == null) i(h.el = l(h.children), m, T);
1810
1810
  else {
1811
1811
  const E = h.el = d.el;
1812
- h.children !== d.children && u(E, h.children);
1812
+ h.children !== d.children && c(E, h.children);
1813
1813
  }
1814
1814
  }, O = (d, h, m, T) => {
1815
1815
  d == null ? i(h.el = a(h.children || ""), m, T) : h.el = d.el;
@@ -1838,7 +1838,7 @@ function Ga(e, t) {
1838
1838
  }, U = (d, h, m, T, E, w, N, A) => {
1839
1839
  let R, C;
1840
1840
  const { props: z, shapeFlag: D, transition: V, dirs: K } = d;
1841
- if (R = d.el = s(d.type, w, z && z.is, z), D & 8 ? c(R, d.children) : D & 16 && H(d.children, R, null, T, E, Hi(d, w), N, A), K && Yt(d, null, T, "created"), k(R, d, d.scopeId, N, T), z) {
1841
+ if (R = d.el = s(d.type, w, z && z.is, z), D & 8 ? u(R, d.children) : D & 16 && H(d.children, R, null, T, E, Hi(d, w), N, A), K && Yt(d, null, T, "created"), k(R, d, d.scopeId, N, T), z) {
1842
1842
  for (const re in z) re !== "value" && !Pn(re) && r(R, re, null, z[re], w, T);
1843
1843
  "value" in z && r(R, "value", null, z.value, w), (C = z.onVnodeBeforeMount) && bt(C, T, d);
1844
1844
  }
@@ -1867,7 +1867,7 @@ function Ga(e, t) {
1867
1867
  R |= d.patchFlag & 16;
1868
1868
  const D = d.props || ye, V = h.props || ye;
1869
1869
  let K;
1870
- if (m && Xt(m, !1), (K = V.onVnodeBeforeUpdate) && bt(K, m, h, d), z && Yt(h, d, m, "beforeUpdate"), m && Xt(m, !0), C && (!d.dynamicChildren || d.dynamicChildren.length !== C.length) && (R = 0, N = !1, C = null), (D.innerHTML && V.innerHTML == null || D.textContent && V.textContent == null) && c(A, ""), C ? Y(d.dynamicChildren, C, A, m, T, Hi(h, E), w) : N || Le(d, h, A, null, m, T, Hi(h, E), w, !1), R > 0) {
1870
+ if (m && Xt(m, !1), (K = V.onVnodeBeforeUpdate) && bt(K, m, h, d), z && Yt(h, d, m, "beforeUpdate"), m && Xt(m, !0), C && (!d.dynamicChildren || d.dynamicChildren.length !== C.length) && (R = 0, N = !1, C = null), (D.innerHTML && V.innerHTML == null || D.textContent && V.textContent == null) && u(A, ""), C ? Y(d.dynamicChildren, C, A, m, T, Hi(h, E), w) : N || Le(d, h, A, null, m, T, Hi(h, E), w, !1), R > 0) {
1871
1871
  if (R & 16) le(A, D, V, m, E);
1872
1872
  else if (R & 2 && D.class !== V.class && r(A, "class", null, V.class, E), R & 4 && r(A, "style", D.style, V.style, E), R & 8) {
1873
1873
  const Z = h.dynamicProps;
@@ -1876,7 +1876,7 @@ function Ga(e, t) {
1876
1876
  (ae !== he || ne === "value") && r(A, ne, he, ae, E, m);
1877
1877
  }
1878
1878
  }
1879
- R & 1 && d.children !== h.children && c(A, h.children);
1879
+ R & 1 && d.children !== h.children && u(A, h.children);
1880
1880
  } else !N && C == null && le(A, D, V, m, E);
1881
1881
  ((K = V.onVnodeUpdated) || z) && ze(() => {
1882
1882
  K && bt(K, m, h, d), z && Yt(h, d, m, "updated");
@@ -1904,8 +1904,8 @@ function Ga(e, t) {
1904
1904
  }, I = (d, h, m, T, E, w, N, A, R) => {
1905
1905
  h.slotScopeIds = A, d == null ? h.shapeFlag & 512 ? E.ctx.activate(h, m, T, N, R) : X(h, m, T, E, w, N, R) : Q(d, h, R);
1906
1906
  }, X = (d, h, m, T, E, w, N) => {
1907
- const A = d.component = ou(d, T, E);
1908
- if (xa(d) && (A.ctx.renderer = me), ru(A, !1, N), A.asyncDep) {
1907
+ const A = d.component = oc(d, T, E);
1908
+ if (xa(d) && (A.ctx.renderer = me), rc(A, !1, N), A.asyncDep) {
1909
1909
  if (E && E.registerDep(A, G, N), !d.el) {
1910
1910
  const R = A.subTree = Oe(Ft);
1911
1911
  O(null, R, h, m), d.placeholder = R.el;
@@ -1979,7 +1979,7 @@ function Ga(e, t) {
1979
1979
  return;
1980
1980
  }
1981
1981
  }
1982
- K & 8 ? (z & 16 && Ze(C, E, w), D !== C && c(m, D)) : z & 16 ? K & 16 ? De(C, D, m, T, E, w, N, A, R) : Ze(C, E, w, !0) : (z & 8 && c(m, ""), K & 16 && H(D, m, T, E, w, N, A, R));
1982
+ K & 8 ? (z & 16 && Ze(C, E, w), D !== C && u(m, D)) : z & 16 ? K & 16 ? De(C, D, m, T, E, w, N, A, R) : Ze(C, E, w, !0) : (z & 8 && u(m, ""), K & 16 && H(D, m, T, E, w, N, A, R));
1983
1983
  }, Je = (d, h, m, T, E, w, N, A, R) => {
1984
1984
  d = d || an, h = h || an;
1985
1985
  const C = d.length, z = h.length, D = Math.min(C, z);
@@ -2095,16 +2095,16 @@ function Ga(e, t) {
2095
2095
  d.suspense.unmount(m, T);
2096
2096
  return;
2097
2097
  }
2098
- re && Yt(d, null, h, "beforeUnmount"), z & 64 ? d.type.remove(d, h, m, me, T) : C && !C.hasOnce && (w !== ve || D > 0 && D & 64) ? Ze(C, h, m, !1, !0) : (w === ve && D & 384 || !E && z & 16) && Ze(R, h, m), T && ut(d);
2098
+ re && Yt(d, null, h, "beforeUnmount"), z & 64 ? d.type.remove(d, h, m, me, T) : C && !C.hasOnce && (w !== ve || D > 0 && D & 64) ? Ze(C, h, m, !1, !0) : (w === ve && D & 384 || !E && z & 16) && Ze(R, h, m), T && ct(d);
2099
2099
  }
2100
2100
  const ae = Z != null && K == null;
2101
2101
  (ne && (he = N && N.onVnodeUnmounted) || re || ae) && ze(() => {
2102
2102
  he && bt(he, h, d), re && Yt(d, null, h, "unmounted"), ae && (d.el = null);
2103
2103
  }, m);
2104
- }, ut = (d) => {
2104
+ }, ct = (d) => {
2105
2105
  const { type: h, el: m, anchor: T, transition: E } = d;
2106
2106
  if (h === ve) {
2107
- ct(m, T);
2107
+ ut(m, T);
2108
2108
  return;
2109
2109
  }
2110
2110
  if (h === kn) {
@@ -2118,7 +2118,7 @@ function Ga(e, t) {
2118
2118
  const { leave: N, delayLeave: A } = E, R = () => N(m, w);
2119
2119
  A ? A(d.el, w, R) : R();
2120
2120
  } else w();
2121
- }, ct = (d, h) => {
2121
+ }, ut = (d, h) => {
2122
2122
  let m;
2123
2123
  for (; d !== h; )
2124
2124
  m = p(d), o(d), d = m;
@@ -2139,12 +2139,12 @@ function Ga(e, t) {
2139
2139
  let Re = !1;
2140
2140
  const He = (d, h, m) => {
2141
2141
  let T;
2142
- d == null ? h._vnode && (Fe(h._vnode, null, null, !0), T = h._vnode.component) : g(h._vnode || null, d, h, null, null, null, m), h._vnode = d, Re || (Re = !0, Lo(T), us(), Re = !1);
2142
+ d == null ? h._vnode && (Fe(h._vnode, null, null, !0), T = h._vnode.component) : g(h._vnode || null, d, h, null, null, null, m), h._vnode = d, Re || (Re = !0, Lo(T), cs(), Re = !1);
2143
2143
  }, me = {
2144
2144
  p: g,
2145
2145
  um: Fe,
2146
2146
  m: $e,
2147
- r: ut,
2147
+ r: ct,
2148
2148
  mt: X,
2149
2149
  mc: H,
2150
2150
  pc: Le,
@@ -2181,15 +2181,15 @@ function Xa(e) {
2181
2181
  let i, o, r, s, l;
2182
2182
  const a = e.length;
2183
2183
  for (i = 0; i < a; i++) {
2184
- const u = e[i];
2185
- if (u !== 0) {
2186
- if (o = n[n.length - 1], e[o] < u) {
2184
+ const c = e[i];
2185
+ if (c !== 0) {
2186
+ if (o = n[n.length - 1], e[o] < c) {
2187
2187
  t[i] = o, n.push(i);
2188
2188
  continue;
2189
2189
  }
2190
2190
  for (r = 0, s = n.length - 1; r < s; )
2191
- l = r + s >> 1, e[n[l]] < u ? r = l + 1 : s = l;
2192
- u < e[n[r]] && (r > 0 && (t[i] = n[r - 1]), n[r] = i);
2191
+ l = r + s >> 1, e[n[l]] < c ? r = l + 1 : s = l;
2192
+ c < e[n[r]] && (r > 0 && (t[i] = n[r - 1]), n[r] = i);
2193
2193
  }
2194
2194
  }
2195
2195
  for (r = n.length, s = n[r - 1]; r-- > 0; )
@@ -2238,7 +2238,7 @@ function To(e) {
2238
2238
  function wn(e, t) {
2239
2239
  return e.type === t.type && e.key === t.key;
2240
2240
  }
2241
- var Is = ({ key: e }) => e ?? null, ri = ({ ref: e, ref_key: t, ref_for: n }) => (typeof e == "number" && (e = "" + e), e != null ? we(e) || /* @__PURE__ */ Ae(e) || ce(e) ? {
2241
+ var Is = ({ key: e }) => e ?? null, ri = ({ ref: e, ref_key: t, ref_for: n }) => (typeof e == "number" && (e = "" + e), e != null ? we(e) || /* @__PURE__ */ Ae(e) || ue(e) ? {
2242
2242
  i: We,
2243
2243
  r: e,
2244
2244
  k: t,
@@ -2282,24 +2282,24 @@ function Qa(e, t = null, n = null, i = 0, o = null, r = !1) {
2282
2282
  const l = pn(e, t, !0);
2283
2283
  return n && fi(l, n), jn > 0 && !r && nt && (l.shapeFlag & 6 ? nt[nt.indexOf(e)] = l : nt.push(l)), l.patchFlag = -2, l;
2284
2284
  }
2285
- if (au(e) && (e = e.__vccOpts), t) {
2286
- t = eu(t);
2285
+ if (ac(e) && (e = e.__vccOpts), t) {
2286
+ t = ec(t);
2287
2287
  let { class: l, style: a } = t;
2288
2288
  l && !we(l) && (t.class = Pe(l)), ge(a) && (/* @__PURE__ */ Oi(a) && !J(a) && (a = ot({}, a)), t.style = qt(a));
2289
2289
  }
2290
- const s = we(e) ? 1 : Ps(e) ? 128 : ba(e) ? 64 : ge(e) ? 4 : ce(e) ? 2 : 0;
2290
+ const s = we(e) ? 1 : Ps(e) ? 128 : ba(e) ? 64 : ge(e) ? 4 : ue(e) ? 2 : 0;
2291
2291
  return y(e, t, n, i, o, s, r, !0);
2292
2292
  }
2293
- function eu(e) {
2293
+ function ec(e) {
2294
2294
  return e ? /* @__PURE__ */ Oi(e) || Ss(e) ? ot({}, e) : e : null;
2295
2295
  }
2296
2296
  function pn(e, t, n = !1, i = !1) {
2297
- const { props: o, ref: r, patchFlag: s, children: l, transition: a } = e, u = t ? tu(o || {}, t) : o, c = {
2297
+ const { props: o, ref: r, patchFlag: s, children: l, transition: a } = e, c = t ? tc(o || {}, t) : o, u = {
2298
2298
  __v_isVNode: !0,
2299
2299
  __v_skip: !0,
2300
2300
  type: e.type,
2301
- props: u,
2302
- key: u && Is(u),
2301
+ props: c,
2302
+ key: c && Is(c),
2303
2303
  ref: t && t.ref ? n && r ? J(r) ? r.concat(ri(t)) : [r, ri(t)] : ri(t) : r,
2304
2304
  scopeId: e.scopeId,
2305
2305
  slotScopeIds: e.slotScopeIds,
@@ -2325,7 +2325,7 @@ function pn(e, t, n = !1, i = !1) {
2325
2325
  ctx: e.ctx,
2326
2326
  ce: e.ce
2327
2327
  };
2328
- return a && i && bo(c, a.clone(c)), c;
2328
+ return a && i && bo(u, a.clone(u)), u;
2329
2329
  }
2330
2330
  function Co(e = " ", t = 0) {
2331
2331
  return Oe(Ai, null, e, t);
@@ -2334,7 +2334,7 @@ function lo(e, t) {
2334
2334
  const n = Oe(kn, null, e);
2335
2335
  return n.staticCount = t, n;
2336
2336
  }
2337
- function ue(e = "", t = !1) {
2337
+ function ce(e = "", t = !1) {
2338
2338
  return t ? ($(), xt(Ft, null, e)) : Oe(Ft, null, e);
2339
2339
  }
2340
2340
  function wt(e) {
@@ -2357,7 +2357,7 @@ function fi(e, t) {
2357
2357
  const o = t._;
2358
2358
  !o && !Ss(t) ? t._ctx = We : o === 3 && We && (We.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
2359
2359
  }
2360
- else if (ce(t)) {
2360
+ else if (ue(t)) {
2361
2361
  if (i & 65) {
2362
2362
  fi(e, { default: t });
2363
2363
  return;
@@ -2370,7 +2370,7 @@ function fi(e, t) {
2370
2370
  t = String(t), i & 64 ? (n = 16, t = [Co(t)]) : n = 8;
2371
2371
  e.children = t, e.shapeFlag |= n;
2372
2372
  }
2373
- function tu(...e) {
2373
+ function tc(...e) {
2374
2374
  const t = {};
2375
2375
  for (let n = 0; n < e.length; n++) {
2376
2376
  const i = e[n];
@@ -2387,10 +2387,10 @@ function tu(...e) {
2387
2387
  function bt(e, t, n, i = null) {
2388
2388
  Ct(e, t, 7, [n, i]);
2389
2389
  }
2390
- var nu = ms(), iu = 0;
2391
- function ou(e, t, n) {
2392
- const i = e.type, o = (t ? t.appContext : e.appContext) || nu, r = {
2393
- uid: iu++,
2390
+ var nc = ms(), ic = 0;
2391
+ function oc(e, t, n) {
2392
+ const i = e.type, o = (t ? t.appContext : e.appContext) || nc, r = {
2393
+ uid: ic++,
2394
2394
  vnode: e,
2395
2395
  type: i,
2396
2396
  parent: t,
@@ -2477,14 +2477,14 @@ function As(e) {
2477
2477
  return e.vnode.shapeFlag & 4;
2478
2478
  }
2479
2479
  var Vn = !1;
2480
- function ru(e, t = !1, n = !1) {
2480
+ function rc(e, t = !1, n = !1) {
2481
2481
  t && ao(t);
2482
2482
  const { props: i, children: o } = e.vnode, r = As(e);
2483
2483
  Va(e, i, r, t), Ua(e, o, n || t);
2484
- const s = r ? su(e, t) : void 0;
2484
+ const s = r ? sc(e, t) : void 0;
2485
2485
  return t && ao(!1), s;
2486
2486
  }
2487
- function su(e, t) {
2487
+ function sc(e, t) {
2488
2488
  const n = e.type;
2489
2489
  e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx, Ia);
2490
2490
  const { setup: i } = n;
@@ -2502,7 +2502,7 @@ function su(e, t) {
2502
2502
  } else Rs(e, t);
2503
2503
  }
2504
2504
  function Uo(e, t, n) {
2505
- ce(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : ge(t) && (e.setupState = rs(t)), Rs(e, n);
2505
+ ue(t) ? e.type.__ssrInlineRender ? e.ssrRender = t : e.render = t : ge(t) && (e.setupState = rs(t)), Rs(e, n);
2506
2506
  }
2507
2507
  var qo, Ko;
2508
2508
  function Rs(e, t, n) {
@@ -2511,17 +2511,17 @@ function Rs(e, t, n) {
2511
2511
  if (!t && qo && !i.render) {
2512
2512
  const o = i.template || !1;
2513
2513
  if (o) {
2514
- const { isCustomElement: r, compilerOptions: s } = e.appContext.config, { delimiters: l, compilerOptions: a } = i, u = ot(ot({
2514
+ const { isCustomElement: r, compilerOptions: s } = e.appContext.config, { delimiters: l, compilerOptions: a } = i, c = ot(ot({
2515
2515
  isCustomElement: r,
2516
2516
  delimiters: l
2517
2517
  }, s), a);
2518
- i.render = qo(o, u);
2518
+ i.render = qo(o, c);
2519
2519
  }
2520
2520
  }
2521
2521
  e.render = i.render || Ut, Ko && Ko(e);
2522
2522
  }
2523
2523
  }
2524
- var lu = { get(e, t) {
2524
+ var lc = { get(e, t) {
2525
2525
  return Ve(e, "get", ""), e[t];
2526
2526
  } };
2527
2527
  function ks(e) {
@@ -2529,7 +2529,7 @@ function ks(e) {
2529
2529
  e.exposed = n || {};
2530
2530
  };
2531
2531
  return {
2532
- attrs: new Proxy(e.attrs, lu),
2532
+ attrs: new Proxy(e.attrs, lc),
2533
2533
  slots: e.slots,
2534
2534
  emit: e.emit,
2535
2535
  expose: t
@@ -2546,15 +2546,15 @@ function ki(e) {
2546
2546
  }
2547
2547
  })) : e.proxy;
2548
2548
  }
2549
- function au(e) {
2550
- return ce(e) && "__vccOpts" in e;
2549
+ function ac(e) {
2550
+ return ue(e) && "__vccOpts" in e;
2551
2551
  }
2552
- var q = (e, t) => /* @__PURE__ */ da(e, t, Vn), uu = "3.5.39", uo = void 0, Go = typeof window < "u" && window.trustedTypes;
2552
+ var q = (e, t) => /* @__PURE__ */ da(e, t, Vn), cc = "3.5.39", co = void 0, Go = typeof window < "u" && window.trustedTypes;
2553
2553
  if (Go) try {
2554
- uo = /* @__PURE__ */ Go.createPolicy("vue", { createHTML: (e) => e });
2554
+ co = /* @__PURE__ */ Go.createPolicy("vue", { createHTML: (e) => e });
2555
2555
  } catch {
2556
2556
  }
2557
- var Ns = uo ? (e) => uo.createHTML(e) : (e) => e, cu = "http://www.w3.org/2000/svg", du = "http://www.w3.org/1998/Math/MathML", It = typeof document < "u" ? document : null, Yo = It && /* @__PURE__ */ It.createElement("template"), fu = {
2557
+ var Ns = co ? (e) => co.createHTML(e) : (e) => e, uc = "http://www.w3.org/2000/svg", dc = "http://www.w3.org/1998/Math/MathML", It = typeof document < "u" ? document : null, Yo = It && /* @__PURE__ */ It.createElement("template"), fc = {
2558
2558
  insert: (e, t, n) => {
2559
2559
  t.insertBefore(e, n || null);
2560
2560
  },
@@ -2563,7 +2563,7 @@ var Ns = uo ? (e) => uo.createHTML(e) : (e) => e, cu = "http://www.w3.org/2000/s
2563
2563
  t && t.removeChild(e);
2564
2564
  },
2565
2565
  createElement: (e, t, n, i) => {
2566
- const o = t === "svg" ? It.createElementNS(cu, e) : t === "mathml" ? It.createElementNS(du, e) : n ? It.createElement(e, { is: n }) : It.createElement(e);
2566
+ const o = t === "svg" ? It.createElementNS(uc, e) : t === "mathml" ? It.createElementNS(dc, e) : n ? It.createElement(e, { is: n }) : It.createElement(e);
2567
2567
  return e === "select" && i && i.multiple != null && o.setAttribute("multiple", i.multiple), o;
2568
2568
  },
2569
2569
  createText: (e) => It.createTextNode(e),
@@ -2596,9 +2596,9 @@ var Ns = uo ? (e) => uo.createHTML(e) : (e) => e, cu = "http://www.w3.org/2000/s
2596
2596
  }
2597
2597
  return [s ? s.nextSibling : t.firstChild, n ? n.previousSibling : t.lastChild];
2598
2598
  }
2599
- }, hu = /* @__PURE__ */ Symbol("_vtc");
2600
- function pu(e, t, n) {
2601
- const i = e[hu];
2599
+ }, hc = /* @__PURE__ */ Symbol("_vtc");
2600
+ function pc(e, t, n) {
2601
+ const i = e[hc];
2602
2602
  i && (t = (t ? [t, ...i] : [...i]).join(" ")), t == null ? e.removeAttribute("class") : n ? e.setAttribute("class", t) : e.className = t;
2603
2603
  }
2604
2604
  var pi = /* @__PURE__ */ Symbol("_vod"), Ls = /* @__PURE__ */ Symbol("_vsh"), Xo = {
@@ -2629,7 +2629,7 @@ function $s(e) {
2629
2629
  Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((r) => vi(r, o));
2630
2630
  }, i = () => {
2631
2631
  const o = e(t.proxy);
2632
- t.ce ? vi(t.ce, o) : co(t.subTree, o), n(o);
2632
+ t.ce ? vi(t.ce, o) : uo(t.subTree, o), n(o);
2633
2633
  };
2634
2634
  Pa(() => {
2635
2635
  as(i);
@@ -2639,16 +2639,16 @@ function $s(e) {
2639
2639
  o.observe(t.subTree.el.parentNode, { childList: !0 }), Ke(() => o.disconnect());
2640
2640
  });
2641
2641
  }
2642
- function co(e, t) {
2642
+ function uo(e, t) {
2643
2643
  if (e.shapeFlag & 128) {
2644
2644
  const n = e.suspense;
2645
2645
  e = n.activeBranch, n.pendingBranch && !n.isHydrating && n.effects.push(() => {
2646
- co(n.activeBranch, t);
2646
+ uo(n.activeBranch, t);
2647
2647
  });
2648
2648
  }
2649
2649
  for (; e.component; ) e = e.component.subTree;
2650
2650
  if (e.shapeFlag & 1 && e.el) vi(e.el, t);
2651
- else if (e.type === ve) e.children.forEach((n) => co(n, t));
2651
+ else if (e.type === ve) e.children.forEach((n) => uo(n, t));
2652
2652
  else if (e.type === kn) {
2653
2653
  let { el: n, anchor: i } = e;
2654
2654
  for (; n && (vi(n, t), n !== i); )
@@ -2666,8 +2666,8 @@ function vi(e, t) {
2666
2666
  n[Ds] = i;
2667
2667
  }
2668
2668
  }
2669
- var vu = /(?:^|;)\s*display\s*:/;
2670
- function gu(e, t, n) {
2669
+ var vc = /(?:^|;)\s*display\s*:/;
2670
+ function gc(e, t, n) {
2671
2671
  const i = e.style, o = we(n);
2672
2672
  let r = !1;
2673
2673
  if (n && !o) {
@@ -2680,12 +2680,12 @@ function gu(e, t, n) {
2680
2680
  for (const s in n) {
2681
2681
  s === "display" && (r = !0);
2682
2682
  const l = n[s];
2683
- l != null ? _u(e, s, !we(t) && t ? t[s] : void 0, l) || On(i, s, l) : On(i, s, "");
2683
+ l != null ? _c(e, s, !we(t) && t ? t[s] : void 0, l) || On(i, s, l) : On(i, s, "");
2684
2684
  }
2685
2685
  } else if (o) {
2686
2686
  if (t !== n) {
2687
2687
  const s = i[Ds];
2688
- s && (n += ";" + s), i.cssText = n, r = vu.test(n);
2688
+ s && (n += ";" + s), i.cssText = n, r = vc.test(n);
2689
2689
  }
2690
2690
  } else t && e.removeAttribute("style");
2691
2691
  pi in e && (e[pi] = r ? i.display : "", e[Ls] && (i.display = "none"));
@@ -2695,7 +2695,7 @@ function On(e, t, n) {
2695
2695
  if (J(n)) n.forEach((i) => On(e, t, i));
2696
2696
  else if (n == null && (n = ""), t.startsWith("--")) e.setProperty(t, n);
2697
2697
  else {
2698
- const i = mu(e, t);
2698
+ const i = mc(e, t);
2699
2699
  Jo.test(n) ? e.setProperty(on(i), n.replace(Jo, ""), "important") : e[i] = n;
2700
2700
  }
2701
2701
  }
@@ -2704,7 +2704,7 @@ var Zo = [
2704
2704
  "Moz",
2705
2705
  "ms"
2706
2706
  ], zi = {};
2707
- function mu(e, t) {
2707
+ function mc(e, t) {
2708
2708
  const n = zi[t];
2709
2709
  if (n) return n;
2710
2710
  let i = pt(t);
@@ -2716,7 +2716,7 @@ function mu(e, t) {
2716
2716
  }
2717
2717
  return t;
2718
2718
  }
2719
- function _u(e, t, n, i) {
2719
+ function _c(e, t, n, i) {
2720
2720
  return e.tagName === "TEXTAREA" && (t === "width" || t === "height") && we(i) && n === i;
2721
2721
  }
2722
2722
  var Qo = "http://www.w3.org/1999/xlink";
@@ -2748,27 +2748,27 @@ function tr(e, t, n, i, o) {
2748
2748
  function Fs(e, t, n, i) {
2749
2749
  e.addEventListener(t, n, i);
2750
2750
  }
2751
- function yu(e, t, n, i) {
2751
+ function yc(e, t, n, i) {
2752
2752
  e.removeEventListener(t, n, i);
2753
2753
  }
2754
2754
  var nr = /* @__PURE__ */ Symbol("_vei");
2755
- function bu(e, t, n, i, o = null) {
2755
+ function bc(e, t, n, i, o = null) {
2756
2756
  const r = e[nr] || (e[nr] = {}), s = r[t];
2757
2757
  if (i && s) s.value = i;
2758
2758
  else {
2759
- const [l, a] = wu(t);
2760
- i ? Fs(e, l, r[t] = xu(i, o), a) : s && (yu(e, l, s, a), r[t] = void 0);
2759
+ const [l, a] = wc(t);
2760
+ i ? Fs(e, l, r[t] = xc(i, o), a) : s && (yc(e, l, s, a), r[t] = void 0);
2761
2761
  }
2762
2762
  }
2763
- var Su = /(Once|Passive|Capture)$/, Eu = /^on:?(?:Once|Passive|Capture)$/;
2764
- function wu(e) {
2763
+ var Sc = /(Once|Passive|Capture)$/, Ec = /^on:?(?:Once|Passive|Capture)$/;
2764
+ function wc(e) {
2765
2765
  let t, n;
2766
- for (; (n = e.match(Su)) && !Eu.test(e); )
2766
+ for (; (n = e.match(Sc)) && !Ec.test(e); )
2767
2767
  t || (t = {}), e = e.slice(0, e.length - n[1].length), t[n[1].toLowerCase()] = !0;
2768
2768
  return [e[2] === ":" ? e.slice(3) : on(e.slice(2)), t];
2769
2769
  }
2770
- var Ui = 0, Tu = /* @__PURE__ */ Promise.resolve(), Cu = () => Ui || (Tu.then(() => Ui = 0), Ui = Date.now());
2771
- function xu(e, t) {
2770
+ var Ui = 0, Tc = /* @__PURE__ */ Promise.resolve(), Cc = () => Ui || (Tc.then(() => Ui = 0), Ui = Date.now());
2771
+ function xc(e, t) {
2772
2772
  const n = (i) => {
2773
2773
  if (!i._vts) i._vts = Date.now();
2774
2774
  else if (i._vts <= n.attached) return;
@@ -2780,20 +2780,20 @@ function xu(e, t) {
2780
2780
  };
2781
2781
  const s = o.slice(), l = [i];
2782
2782
  for (let a = 0; a < s.length && !i._stopped; a++) {
2783
- const u = s[a];
2784
- u && Ct(u, t, 5, l);
2783
+ const c = s[a];
2784
+ c && Ct(c, t, 5, l);
2785
2785
  }
2786
2786
  } else Ct(o, t, 5, [i]);
2787
2787
  };
2788
- return n.value = e, n.attached = Cu(), n;
2788
+ return n.value = e, n.attached = Cc(), n;
2789
2789
  }
2790
- var ir = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, Ou = (e, t, n, i, o, r) => {
2790
+ var ir = (e) => e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) > 96 && e.charCodeAt(2) < 123, Oc = (e, t, n, i, o, r) => {
2791
2791
  const s = o === "svg";
2792
- t === "class" ? pu(e, i, s) : t === "style" ? gu(e, n, i) : bi(t) ? Si(t) || bu(e, t, n, i, r) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : Pu(e, t, i, s)) ? (tr(e, t, i), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && er(e, t, i, s, r, t !== "value")) : e._isVueCE && (Mu(e, t) || e._def.__asyncLoader && (/[A-Z]/.test(t) || !we(i))) ? tr(e, pt(t), i, r, t) : (t === "true-value" ? e._trueValue = i : t === "false-value" && (e._falseValue = i), er(e, t, i, s));
2792
+ t === "class" ? pc(e, i, s) : t === "style" ? gc(e, n, i) : bi(t) ? Si(t) || bc(e, t, n, i, r) : (t[0] === "." ? (t = t.slice(1), !0) : t[0] === "^" ? (t = t.slice(1), !1) : Pc(e, t, i, s)) ? (tr(e, t, i), !e.tagName.includes("-") && (t === "value" || t === "checked" || t === "selected") && er(e, t, i, s, r, t !== "value")) : e._isVueCE && (Mc(e, t) || e._def.__asyncLoader && (/[A-Z]/.test(t) || !we(i))) ? tr(e, pt(t), i, r, t) : (t === "true-value" ? e._trueValue = i : t === "false-value" && (e._falseValue = i), er(e, t, i, s));
2793
2793
  };
2794
- function Pu(e, t, n, i) {
2794
+ function Pc(e, t, n, i) {
2795
2795
  if (i)
2796
- return !!(t === "innerHTML" || t === "textContent" || t in e && ir(t) && ce(n));
2796
+ return !!(t === "innerHTML" || t === "textContent" || t in e && ir(t) && ue(n));
2797
2797
  if (t === "spellcheck" || t === "draggable" || t === "translate" || t === "autocorrect" || t === "sandbox" && e.tagName === "IFRAME" || t === "form" || t === "list" && e.tagName === "INPUT" || t === "type" && e.tagName === "TEXTAREA") return !1;
2798
2798
  if (t === "width" || t === "height") {
2799
2799
  const o = e.tagName;
@@ -2801,7 +2801,7 @@ function Pu(e, t, n, i) {
2801
2801
  }
2802
2802
  return ir(t) && we(n) ? !1 : t in e;
2803
2803
  }
2804
- function Mu(e, t) {
2804
+ function Mc(e, t) {
2805
2805
  const n = e._def.props;
2806
2806
  if (!n) return !1;
2807
2807
  const i = pt(t);
@@ -2810,7 +2810,7 @@ function Mu(e, t) {
2810
2810
  var or = (e) => {
2811
2811
  const t = e.props["onUpdate:modelValue"] || !1;
2812
2812
  return J(t) ? (n) => oi(t, n) : t;
2813
- }, qi = /* @__PURE__ */ Symbol("_assign"), Iu = {
2813
+ }, qi = /* @__PURE__ */ Symbol("_assign"), Ic = {
2814
2814
  deep: !0,
2815
2815
  created(e, { value: t, modifiers: { number: n } }, i) {
2816
2816
  const o = Ei(t);
@@ -2838,7 +2838,7 @@ function rr(e, t) {
2838
2838
  const s = e.options[o], l = gi(s);
2839
2839
  if (n) if (i) {
2840
2840
  const a = typeof l;
2841
- a === "string" || a === "number" ? s.selected = t.some((u) => String(u) === String(l)) : s.selected = Nl(t, l) > -1;
2841
+ a === "string" || a === "number" ? s.selected = t.some((c) => String(c) === String(l)) : s.selected = Nl(t, l) > -1;
2842
2842
  } else s.selected = t.has(l);
2843
2843
  else if (zn(gi(s), t)) {
2844
2844
  e.selectedIndex !== o && (e.selectedIndex = o);
@@ -2851,12 +2851,12 @@ function rr(e, t) {
2851
2851
  function gi(e) {
2852
2852
  return "_value" in e ? e._value : e.value;
2853
2853
  }
2854
- var Au = [
2854
+ var Ac = [
2855
2855
  "ctrl",
2856
2856
  "shift",
2857
2857
  "alt",
2858
2858
  "meta"
2859
- ], Ru = {
2859
+ ], Rc = {
2860
2860
  stop: (e) => e.stopPropagation(),
2861
2861
  prevent: (e) => e.preventDefault(),
2862
2862
  self: (e) => e.target !== e.currentTarget,
@@ -2867,55 +2867,55 @@ var Au = [
2867
2867
  left: (e) => "button" in e && e.button !== 0,
2868
2868
  middle: (e) => "button" in e && e.button !== 1,
2869
2869
  right: (e) => "button" in e && e.button !== 2,
2870
- exact: (e, t) => Au.some((n) => e[`${n}Key`] && !t.includes(n))
2870
+ exact: (e, t) => Ac.some((n) => e[`${n}Key`] && !t.includes(n))
2871
2871
  }, Bs = (e, t) => {
2872
2872
  if (!e) return e;
2873
2873
  const n = e._withMods || (e._withMods = {}), i = t.join(".");
2874
2874
  return n[i] || (n[i] = ((o, ...r) => {
2875
2875
  for (let s = 0; s < t.length; s++) {
2876
- const l = Ru[t[s]];
2876
+ const l = Rc[t[s]];
2877
2877
  if (l && l(o, t)) return;
2878
2878
  }
2879
2879
  return e(o, ...r);
2880
2880
  }));
2881
- }, ku = /* @__PURE__ */ ot({ patchProp: Ou }, fu), sr;
2882
- function Nu() {
2883
- return sr || (sr = Ka(ku));
2881
+ }, kc = /* @__PURE__ */ ot({ patchProp: Oc }, fc), sr;
2882
+ function Nc() {
2883
+ return sr || (sr = Ka(kc));
2884
2884
  }
2885
- var Lu = ((...e) => {
2886
- const t = Nu().createApp(...e), { mount: n } = t;
2885
+ var Lc = ((...e) => {
2886
+ const t = Nc().createApp(...e), { mount: n } = t;
2887
2887
  return t.mount = (i) => {
2888
- const o = $u(i);
2888
+ const o = $c(i);
2889
2889
  if (!o) return;
2890
2890
  const r = t._component;
2891
- !ce(r) && !r.render && !r.template && (r.template = o.innerHTML), o.nodeType === 1 && (o.textContent = "");
2892
- const s = n(o, !1, Du(o));
2891
+ !ue(r) && !r.render && !r.template && (r.template = o.innerHTML), o.nodeType === 1 && (o.textContent = "");
2892
+ const s = n(o, !1, Dc(o));
2893
2893
  return o instanceof Element && (o.removeAttribute("v-cloak"), o.setAttribute("data-v-app", "")), s;
2894
2894
  }, t;
2895
2895
  });
2896
- function Du(e) {
2896
+ function Dc(e) {
2897
2897
  if (e instanceof SVGElement) return "svg";
2898
2898
  if (typeof MathMLElement == "function" && e instanceof MathMLElement) return "mathml";
2899
2899
  }
2900
- function $u(e) {
2900
+ function $c(e) {
2901
2901
  return we(e) ? document.querySelector(e) : e;
2902
2902
  }
2903
- var Fu = Object.defineProperty, Bu = Object.defineProperties, ju = Object.getOwnPropertyDescriptors, lr = Object.getOwnPropertySymbols, Vu = Object.prototype.hasOwnProperty, Wu = Object.prototype.propertyIsEnumerable, ar = (e, t, n) => t in e ? Fu(e, t, {
2903
+ var Fc = Object.defineProperty, Bc = Object.defineProperties, jc = Object.getOwnPropertyDescriptors, lr = Object.getOwnPropertySymbols, Vc = Object.prototype.hasOwnProperty, Wc = Object.prototype.propertyIsEnumerable, ar = (e, t, n) => t in e ? Fc(e, t, {
2904
2904
  enumerable: !0,
2905
2905
  configurable: !0,
2906
2906
  writable: !0,
2907
2907
  value: n
2908
- }) : e[t] = n, Hu = (e, t) => {
2909
- for (var n in t || (t = {})) Vu.call(t, n) && ar(e, n, t[n]);
2908
+ }) : e[t] = n, Hc = (e, t) => {
2909
+ for (var n in t || (t = {})) Vc.call(t, n) && ar(e, n, t[n]);
2910
2910
  if (lr)
2911
- for (var n of lr(t)) Wu.call(t, n) && ar(e, n, t[n]);
2911
+ for (var n of lr(t)) Wc.call(t, n) && ar(e, n, t[n]);
2912
2912
  return e;
2913
- }, zu = (e, t) => Bu(e, ju(t)), js = "[vite-plugin-opencode]", Vs = "data-opencode-config", Ws = "/__opencode_context__", Uu = "/__opencode_start__", Ki = "/__opencode_sessions__", ur = "/__opencode_events__", cr = "__opencode_selected_elements__", qu = {
2913
+ }, zc = (e, t) => Bc(e, jc(t)), js = "[vite-plugin-opencode]", Vs = "data-opencode-config", Ws = "/__opencode_context__", Uc = "/__opencode_start__", Ki = "/__opencode_sessions__", cr = "/__opencode_events__", ur = "__opencode_selected_elements__", qc = {
2914
2914
  PAGE_CONTEXT: "PAGE_CONTEXT",
2915
2915
  THEME_CHANGE: "THEME_CHANGE",
2916
2916
  SERVICE_APPEARED: "SERVICE_APPEARED",
2917
2917
  SERVICE_GONE: "SERVICE_GONE"
2918
- }, Nt = zu(Hu({}, qu), {
2918
+ }, Nt = zc(Hc({}, qc), {
2919
2919
  GET_PORT_INFO: "GET_PORT_INFO",
2920
2920
  TAB_SWITCHED: "TAB_SWITCHED",
2921
2921
  REQUEST_PAGE_CONTEXT: "REQUEST_PAGE_CONTEXT",
@@ -2935,7 +2935,7 @@ var Fu = Object.defineProperty, Bu = Object.defineProperties, ju = Object.getOwn
2935
2935
  MINIMIZE_STATE: "MINIMIZE_STATE_CHANGE",
2936
2936
  PROMPT_DOCK_VISIBILITY: "PROMPT_DOCK_VISIBILITY_CHANGE",
2937
2937
  REVIEW_PANEL_TOGGLE: "REVIEW_PANEL_TOGGLE"
2938
- }, dr = "/__opencode_warmup__", xe = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e[e.NONE = 4] = "NONE", e))(xe || {}), Ku = {
2938
+ }, dr = "/__opencode_warmup__", xe = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e[e.NONE = 4] = "NONE", e))(xe || {}), Kc = {
2939
2939
  verbose: !1,
2940
2940
  level: 1,
2941
2941
  showTimestamp: !0,
@@ -2944,9 +2944,9 @@ var Fu = Object.defineProperty, Bu = Object.defineProperties, ju = Object.getOwn
2944
2944
  indent: " "
2945
2945
  };
2946
2946
  function Ln() {
2947
- return Ku;
2947
+ return Kc;
2948
2948
  }
2949
- function Gu() {
2949
+ function Gc() {
2950
2950
  const e = /* @__PURE__ */ new Date();
2951
2951
  return `${String(e.getHours()).padStart(2, "0")}:${String(e.getMinutes()).padStart(2, "0")}:${String(e.getSeconds()).padStart(2, "0")}.${String(e.getMilliseconds()).padStart(3, "0")}`;
2952
2952
  }
@@ -2966,7 +2966,7 @@ ${e.stack}` : ""}`;
2966
2966
  }
2967
2967
  return String(e);
2968
2968
  }
2969
- function Yu(e) {
2969
+ function Yc(e) {
2970
2970
  if (!e || Object.keys(e).length === 0) return "";
2971
2971
  const t = [];
2972
2972
  e.module && t.push(`[${e.module}]`), e.operation && t.push(`(${e.operation})`), e.traceId && t.push(`trace:${e.traceId}`), e.duration !== void 0 && t.push(`${e.duration}ms`);
@@ -2983,17 +2983,17 @@ function Yu(e) {
2983
2983
  }
2984
2984
  return t.join(" ");
2985
2985
  }
2986
- var Xu = Object.defineProperty, Ju = Object.defineProperties, Zu = Object.getOwnPropertyDescriptors, fr = Object.getOwnPropertySymbols, Qu = Object.prototype.hasOwnProperty, ec = Object.prototype.propertyIsEnumerable, hr = (e, t, n) => t in e ? Xu(e, t, {
2986
+ var Xc = Object.defineProperty, Jc = Object.defineProperties, Zc = Object.getOwnPropertyDescriptors, fr = Object.getOwnPropertySymbols, Qc = Object.prototype.hasOwnProperty, eu = Object.prototype.propertyIsEnumerable, hr = (e, t, n) => t in e ? Xc(e, t, {
2987
2987
  enumerable: !0,
2988
2988
  configurable: !0,
2989
2989
  writable: !0,
2990
2990
  value: n
2991
2991
  }) : e[t] = n, ei = (e, t) => {
2992
- for (var n in t || (t = {})) Qu.call(t, n) && hr(e, n, t[n]);
2992
+ for (var n in t || (t = {})) Qc.call(t, n) && hr(e, n, t[n]);
2993
2993
  if (fr)
2994
- for (var n of fr(t)) ec.call(t, n) && hr(e, n, t[n]);
2994
+ for (var n of fr(t)) eu.call(t, n) && hr(e, n, t[n]);
2995
2995
  return e;
2996
- }, ti = (e, t) => Ju(e, Zu(t)), tc = {
2996
+ }, ti = (e, t) => Jc(e, Zc(t)), tu = {
2997
2997
  [xe.DEBUG]: "DEBUG",
2998
2998
  [xe.INFO]: "INFO ",
2999
2999
  [xe.WARN]: "WARN ",
@@ -3009,7 +3009,7 @@ var Xu = Object.defineProperty, Ju = Object.defineProperties, Zu = Object.getOwn
3009
3009
  magenta: "color: #cd00cd",
3010
3010
  cyan: "color: #00cdcd",
3011
3011
  reset: ""
3012
- }, nc = {
3012
+ }, nu = {
3013
3013
  [xe.DEBUG]: qe.cyan,
3014
3014
  [xe.INFO]: qe.green,
3015
3015
  [xe.WARN]: qe.yellow,
@@ -3019,18 +3019,18 @@ var Xu = Object.defineProperty, Ju = Object.defineProperties, Zu = Object.getOwn
3019
3019
  function ni(e, t, n, ...i) {
3020
3020
  if (e < Ln().level) return;
3021
3021
  const o = [], r = [];
3022
- Ln().showTimestamp && (o.push("%c%s"), r.push(qe.dim, Gu())), o.push(`%c${tc[e]}`), r.push(nc[e]), o.push(`%c${js}`), r.push(qe.bright);
3023
- const s = Yu(n);
3022
+ Ln().showTimestamp && (o.push("%c%s"), r.push(qe.dim, Gc())), o.push(`%c${tu[e]}`), r.push(nu[e]), o.push(`%c${js}`), r.push(qe.bright);
3023
+ const s = Yc(n);
3024
3024
  s && (o.push(`%c${s}`), r.push(qe.magenta));
3025
- const l = i.length > 0 ? ` ${i.map((u) => en(u)).join(" ")}` : "";
3025
+ const l = i.length > 0 ? ` ${i.map((c) => en(c)).join(" ")}` : "";
3026
3026
  o.push(`%c${t}${l}`), r.push(qe.reset);
3027
3027
  const a = o.join(" ");
3028
3028
  if (n?.error) {
3029
- const u = n.error;
3030
- u instanceof Error ? e >= xe.ERROR && Ln().showTrace && u.stack ? console.error(a, ...r, `
3031
- ${u.stack}`) : console.error(a, ...r, `
3032
- %cError: ${u.message}`, qe.red) : console.error(a, ...r, `
3033
- %cError: ${en(u)}`, qe.red);
3029
+ const c = n.error;
3030
+ c instanceof Error ? e >= xe.ERROR && Ln().showTrace && c.stack ? console.error(a, ...r, `
3031
+ ${c.stack}`) : console.error(a, ...r, `
3032
+ %cError: ${c.message}`, qe.red) : console.error(a, ...r, `
3033
+ %cError: ${en(c)}`, qe.red);
3034
3034
  return;
3035
3035
  }
3036
3036
  e >= xe.ERROR ? console.error(a, ...r) : e === xe.WARN ? console.warn(a, ...r) : e === xe.DEBUG ? console.debug(a, ...r) : console.log(a, ...r);
@@ -3071,7 +3071,7 @@ function Bt(e) {
3071
3071
  }
3072
3072
  };
3073
3073
  }
3074
- var ic = {
3074
+ var iu = {
3075
3075
  checking_opencode: "检查 OpenCode 安装",
3076
3076
  allocating_port: "分配服务端口",
3077
3077
  preparing_runtime: "准备运行环境",
@@ -3090,7 +3090,7 @@ function Hs(e, t) {
3090
3090
  return e.length <= t ? e : `${e.slice(0, t)}...`;
3091
3091
  }
3092
3092
  var zs = /* @__PURE__ */ Symbol("OpenCodeWidgetContext");
3093
- function oc(e) {
3093
+ function ou(e) {
3094
3094
  ga(zs, e);
3095
3095
  }
3096
3096
  function gn() {
@@ -3098,23 +3098,23 @@ function gn() {
3098
3098
  if (!e) throw new Error("useOpenCodeWidgetContext must be used within OpenCodeWidget");
3099
3099
  return e;
3100
3100
  }
3101
- var rc = Object.defineProperty, pr = Object.getOwnPropertySymbols, sc = Object.prototype.hasOwnProperty, lc = Object.prototype.propertyIsEnumerable, vr = (e, t, n) => t in e ? rc(e, t, {
3101
+ var ru = Object.defineProperty, pr = Object.getOwnPropertySymbols, su = Object.prototype.hasOwnProperty, lu = Object.prototype.propertyIsEnumerable, vr = (e, t, n) => t in e ? ru(e, t, {
3102
3102
  enumerable: !0,
3103
3103
  configurable: !0,
3104
3104
  writable: !0,
3105
3105
  value: n
3106
- }) : e[t] = n, ac = (e, t) => {
3107
- for (var n in t || (t = {})) sc.call(t, n) && vr(e, n, t[n]);
3106
+ }) : e[t] = n, au = (e, t) => {
3107
+ for (var n in t || (t = {})) su.call(t, n) && vr(e, n, t[n]);
3108
3108
  if (pr)
3109
- for (var n of pr(t)) lc.call(t, n) && vr(e, n, t[n]);
3109
+ for (var n of pr(t)) lu.call(t, n) && vr(e, n, t[n]);
3110
3110
  return e;
3111
3111
  }, Us = /* @__PURE__ */ Ye({
3112
3112
  __name: "Frame",
3113
3113
  setup(e, { expose: t }) {
3114
- const n = /* @__PURE__ */ L(null), { frameLoading: i, showEmptyState: o, showError: r, iframeSource: s, emptyStateText: l, emptyStateActionText: a, handleEmptyAction: u, handleFrameLoaded: c } = gn();
3114
+ const n = /* @__PURE__ */ L(null), { frameLoading: i, showEmptyState: o, showError: r, iframeSource: s, emptyStateText: l, emptyStateActionText: a, handleEmptyAction: c, handleFrameLoaded: u } = gn();
3115
3115
  function f(v, b) {
3116
3116
  var g;
3117
- (g = n.value) != null && g.contentWindow && n.value.contentWindow.postMessage(ac({ type: v }, b), "*");
3117
+ (g = n.value) != null && g.contentWindow && n.value.contentWindow.postMessage(au({ type: v }, b), "*");
3118
3118
  }
3119
3119
  t({ sendMessageToIframe: f });
3120
3120
  const p = {
@@ -3125,8 +3125,8 @@ var rc = Object.defineProperty, pr = Object.getOwnPropertySymbols, sc = Object.p
3125
3125
  iframeSrc: s,
3126
3126
  emptyStateText: l,
3127
3127
  emptyStateActionText: a,
3128
- handleEmptyAction: u,
3129
- handleFrameLoaded: c,
3128
+ handleEmptyAction: c,
3129
+ handleFrameLoaded: u,
3130
3130
  sendMessageToIframe: f
3131
3131
  };
3132
3132
  return Object.defineProperty(p, "__isScriptSetup", {
@@ -3134,9 +3134,9 @@ var rc = Object.defineProperty, pr = Object.getOwnPropertySymbols, sc = Object.p
3134
3134
  value: !0
3135
3135
  }), p;
3136
3136
  }
3137
- }), uc = { class: "opencode-iframe-container" }, cc = { class: "opencode-empty-state-text" }, dc = ["src"];
3138
- function fc(e, t, n, i, o, r) {
3139
- return $(), B("div", uc, [
3137
+ }), cu = { class: "opencode-iframe-container" }, uu = { class: "opencode-empty-state-text" }, du = ["src"];
3138
+ function fu(e, t, n, i, o, r) {
3139
+ return $(), B("div", cu, [
3140
3140
  y("div", { class: Pe(["opencode-empty-state-overlay", { visible: i.showEmptyState }]) }, [te(e.$slots, "empty-state", {}, () => [
3141
3141
  t[2] || (t[2] = y("div", { class: "opencode-empty-state-icon" }, [y("svg", {
3142
3142
  viewBox: "0 0 24 24",
@@ -3151,7 +3151,7 @@ function fc(e, t, n, i, o, r) {
3151
3151
  "stroke-linejoin": "round",
3152
3152
  d: "M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 0 1-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"
3153
3153
  })])], -1)),
3154
- y("div", cc, Ce(i.emptyStateText), 1),
3154
+ y("div", uu, Ce(i.emptyStateText), 1),
3155
3155
  y("button", {
3156
3156
  class: "opencode-empty-state-btn",
3157
3157
  type: "button",
@@ -3167,15 +3167,15 @@ function fc(e, t, n, i, o, r) {
3167
3167
  allow: "clipboard-write; clipboard-read",
3168
3168
  referrerpolicy: "origin",
3169
3169
  onLoad: t[1] || (t[1] = (...s) => i.handleFrameLoaded && i.handleFrameLoaded(...s))
3170
- }, null, 40, dc)])
3170
+ }, null, 40, du)])
3171
3171
  ]);
3172
3172
  }
3173
- Us.render = fc;
3174
- var hc = Us, qs = /* @__PURE__ */ Ye({
3173
+ Us.render = fu;
3174
+ var hu = Us, qs = /* @__PURE__ */ Ye({
3175
3175
  __name: "Header",
3176
3176
  setup(e, { expose: t }) {
3177
3177
  t();
3178
- const { title: n, sessionListTitle: i, sessionListCollapsed: o, selectMode: r, selectEnabled: s, theme: l, resolvedTheme: a, minimized: u, promptDockVisible: c, reviewPanelVisible: f, mode: p, displayMode: v, splitPosition: b, handleToggleSessionList: g, handleToggleSelectMode: _, handleToggleTheme: O, handleToggleDisplayMode: M, handleToggleSplitPosition: F, handleClose: S, handleToggleMinimize: W, handleTogglePromptDock: U, handleToggleReviewPanel: k, handleRefresh: H } = gn(), j = {
3178
+ const { title: n, sessionListTitle: i, sessionListCollapsed: o, selectMode: r, selectEnabled: s, theme: l, resolvedTheme: a, minimized: c, promptDockVisible: u, reviewPanelVisible: f, mode: p, displayMode: v, splitPosition: b, handleToggleSessionList: g, handleToggleSelectMode: _, handleToggleTheme: O, handleToggleDisplayMode: M, handleToggleSplitPosition: F, handleClose: S, handleToggleMinimize: W, handleTogglePromptDock: U, handleToggleReviewPanel: k, handleRefresh: H } = gn(), j = {
3179
3179
  title: n,
3180
3180
  sessionListTitle: i,
3181
3181
  sessionListCollapsed: o,
@@ -3183,8 +3183,8 @@ var hc = Us, qs = /* @__PURE__ */ Ye({
3183
3183
  selectEnabled: s,
3184
3184
  theme: l,
3185
3185
  resolvedTheme: a,
3186
- minimized: u,
3187
- promptDockVisible: c,
3186
+ minimized: c,
3187
+ promptDockVisible: u,
3188
3188
  reviewPanelVisible: f,
3189
3189
  mode: p,
3190
3190
  displayMode: v,
@@ -3242,11 +3242,11 @@ var hc = Us, qs = /* @__PURE__ */ Ye({
3242
3242
  value: !0
3243
3243
  }), j;
3244
3244
  }
3245
- }), pc = { class: "opencode-chat-header" }, vc = { class: "opencode-chat-header-left" }, gc = [
3245
+ }), pu = { class: "opencode-chat-header" }, vu = { class: "opencode-chat-header-left" }, gu = [
3246
3246
  "title",
3247
3247
  "aria-label",
3248
3248
  "aria-expanded"
3249
- ], mc = ["aria-pressed", "disabled"], _c = ["title", "aria-label"], yc = {
3249
+ ], mu = ["aria-pressed", "disabled"], _u = ["title", "aria-label"], yu = {
3250
3250
  key: 0,
3251
3251
  viewBox: "0 0 24 24",
3252
3252
  width: "16",
@@ -3255,7 +3255,7 @@ var hc = Us, qs = /* @__PURE__ */ Ye({
3255
3255
  stroke: "currentColor",
3256
3256
  "stroke-width": "2",
3257
3257
  "aria-hidden": "true"
3258
- }, bc = {
3258
+ }, bu = {
3259
3259
  key: 1,
3260
3260
  viewBox: "0 0 24 24",
3261
3261
  width: "16",
@@ -3264,7 +3264,7 @@ var hc = Us, qs = /* @__PURE__ */ Ye({
3264
3264
  stroke: "currentColor",
3265
3265
  "stroke-width": "2",
3266
3266
  "aria-hidden": "true"
3267
- }, Sc = {
3267
+ }, Su = {
3268
3268
  key: 2,
3269
3269
  viewBox: "0 0 24 24",
3270
3270
  width: "16",
@@ -3273,7 +3273,7 @@ var hc = Us, qs = /* @__PURE__ */ Ye({
3273
3273
  stroke: "currentColor",
3274
3274
  "stroke-width": "2",
3275
3275
  "aria-hidden": "true"
3276
- }, Ec = ["title", "aria-label"], wc = {
3276
+ }, Eu = ["title", "aria-label"], wu = {
3277
3277
  key: 0,
3278
3278
  viewBox: "0 0 24 24",
3279
3279
  width: "16",
@@ -3282,7 +3282,7 @@ var hc = Us, qs = /* @__PURE__ */ Ye({
3282
3282
  stroke: "currentColor",
3283
3283
  "stroke-width": "2",
3284
3284
  "aria-hidden": "true"
3285
- }, Tc = {
3285
+ }, Tu = {
3286
3286
  key: 1,
3287
3287
  viewBox: "0 0 24 24",
3288
3288
  width: "16",
@@ -3291,7 +3291,7 @@ var hc = Us, qs = /* @__PURE__ */ Ye({
3291
3291
  stroke: "currentColor",
3292
3292
  "stroke-width": "2",
3293
3293
  "aria-hidden": "true"
3294
- }, Cc = {
3294
+ }, Cu = {
3295
3295
  key: 2,
3296
3296
  viewBox: "0 0 24 24",
3297
3297
  width: "16",
@@ -3300,7 +3300,7 @@ var hc = Us, qs = /* @__PURE__ */ Ye({
3300
3300
  stroke: "currentColor",
3301
3301
  "stroke-width": "2",
3302
3302
  "aria-hidden": "true"
3303
- }, xc = { class: "opencode-chat-header-title" }, Oc = { class: "opencode-chat-header-actions" }, Pc = ["title", "aria-label"], Mc = {
3303
+ }, xu = { class: "opencode-chat-header-title" }, Ou = { class: "opencode-chat-header-actions" }, Pu = ["title", "aria-label"], Mu = {
3304
3304
  key: 0,
3305
3305
  viewBox: "0 0 24 24",
3306
3306
  width: "16",
@@ -3309,7 +3309,7 @@ var hc = Us, qs = /* @__PURE__ */ Ye({
3309
3309
  stroke: "currentColor",
3310
3310
  "stroke-width": "2",
3311
3311
  "aria-hidden": "true"
3312
- }, Ic = {
3312
+ }, Iu = {
3313
3313
  key: 1,
3314
3314
  viewBox: "0 0 24 24",
3315
3315
  width: "16",
@@ -3318,19 +3318,19 @@ var hc = Us, qs = /* @__PURE__ */ Ye({
3318
3318
  stroke: "currentColor",
3319
3319
  "stroke-width": "2",
3320
3320
  "aria-hidden": "true"
3321
- }, Ac = [
3321
+ }, Au = [
3322
3322
  "title",
3323
3323
  "aria-label",
3324
3324
  "aria-pressed"
3325
- ], Rc = [
3325
+ ], Ru = [
3326
3326
  "title",
3327
3327
  "aria-label",
3328
3328
  "aria-pressed"
3329
- ], kc = [
3329
+ ], ku = [
3330
3330
  "title",
3331
3331
  "aria-label",
3332
3332
  "aria-pressed"
3333
- ], Nc = {
3333
+ ], Nu = {
3334
3334
  key: 0,
3335
3335
  viewBox: "0 0 24 24",
3336
3336
  width: "14",
@@ -3339,7 +3339,7 @@ var hc = Us, qs = /* @__PURE__ */ Ye({
3339
3339
  stroke: "currentColor",
3340
3340
  "stroke-width": "2",
3341
3341
  "aria-hidden": "true"
3342
- }, Lc = {
3342
+ }, Lu = {
3343
3343
  key: 1,
3344
3344
  viewBox: "0 0 24 24",
3345
3345
  width: "14",
@@ -3349,9 +3349,9 @@ var hc = Us, qs = /* @__PURE__ */ Ye({
3349
3349
  "stroke-width": "2",
3350
3350
  "aria-hidden": "true"
3351
3351
  };
3352
- function Dc(e, t, n, i, o, r) {
3353
- return $(), B("div", pc, [
3354
- y("div", vc, [
3352
+ function Du(e, t, n, i, o, r) {
3353
+ return $(), B("div", pu, [
3354
+ y("div", vu, [
3355
3355
  y("button", {
3356
3356
  class: Pe(["opencode-header-btn session-toggle", { active: !i.sessionListCollapsed }]),
3357
3357
  type: "button",
@@ -3370,7 +3370,7 @@ function Dc(e, t, n, i, o, r) {
3370
3370
  }, [y("path", {
3371
3371
  d: "M4 6h16M4 12h16M4 18h16",
3372
3372
  "stroke-linecap": "round"
3373
- })], -1))])], 10, gc),
3373
+ })], -1))])], 10, gu),
3374
3374
  y("button", {
3375
3375
  class: Pe(["opencode-header-btn select-btn", { active: i.selectMode }]),
3376
3376
  type: "button",
@@ -3390,14 +3390,14 @@ function Dc(e, t, n, i, o, r) {
3390
3390
  }), y("path", {
3391
3391
  fill: "currentColor",
3392
3392
  d: "M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"
3393
- })], -1))])], 10, mc),
3393
+ })], -1))])], 10, mu),
3394
3394
  y("button", {
3395
3395
  class: "opencode-header-btn theme-btn",
3396
3396
  type: "button",
3397
3397
  title: i.themeIconTitle,
3398
3398
  "aria-label": i.themeIconLabel,
3399
3399
  onClick: t[2] || (t[2] = (...s) => i.handleToggleTheme && i.handleToggleTheme(...s))
3400
- }, [te(e.$slots, "theme-icon", {}, () => [i.theme === "light" ? ($(), B("svg", yc, [...t[12] || (t[12] = [lo('<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>', 9)])])) : i.theme === "dark" ? ($(), B("svg", bc, [...t[13] || (t[13] = [y("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }, null, -1)])])) : ($(), B("svg", Sc, [...t[14] || (t[14] = [lo('<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line><circle cx="12" cy="10" r="3"></circle><path d="M7 7l2 2M17 7l-2 2M7 13l2-2M17 13l-2-2"></path>', 5)])]))])], 8, _c),
3400
+ }, [te(e.$slots, "theme-icon", {}, () => [i.theme === "light" ? ($(), B("svg", yu, [...t[12] || (t[12] = [lo('<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>', 9)])])) : i.theme === "dark" ? ($(), B("svg", bu, [...t[13] || (t[13] = [y("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }, null, -1)])])) : ($(), B("svg", Su, [...t[14] || (t[14] = [lo('<rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line><circle cx="12" cy="10" r="3"></circle><path d="M7 7l2 2M17 7l-2 2M7 13l2-2M17 13l-2-2"></path>', 5)])]))])], 8, _u),
3401
3401
  i.displayMode !== "extension" ? ($(), B("button", {
3402
3402
  key: 0,
3403
3403
  class: "opencode-header-btn display-mode-btn",
@@ -3405,7 +3405,7 @@ function Dc(e, t, n, i, o, r) {
3405
3405
  title: i.displayModeIconTitle,
3406
3406
  "aria-label": i.displayModeIconLabel,
3407
3407
  onClick: t[3] || (t[3] = (...s) => i.handleToggleDisplayMode && i.handleToggleDisplayMode(...s))
3408
- }, [te(e.$slots, "display-mode-icon", {}, () => [i.displayMode === "bubble" ? ($(), B("svg", wc, [...t[15] || (t[15] = [
3408
+ }, [te(e.$slots, "display-mode-icon", {}, () => [i.displayMode === "bubble" ? ($(), B("svg", wu, [...t[15] || (t[15] = [
3409
3409
  y("circle", {
3410
3410
  cx: "12",
3411
3411
  cy: "12",
@@ -3429,7 +3429,7 @@ function Dc(e, t, n, i, o, r) {
3429
3429
  y2: "9",
3430
3430
  "stroke-linecap": "round"
3431
3431
  }, null, -1)
3432
- ])])) : i.displayMode === "split" ? ($(), B("svg", Tc, [...t[16] || (t[16] = [y("rect", {
3432
+ ])])) : i.displayMode === "split" ? ($(), B("svg", Tu, [...t[16] || (t[16] = [y("rect", {
3433
3433
  x: "3",
3434
3434
  y: "3",
3435
3435
  width: "18",
@@ -3440,7 +3440,7 @@ function Dc(e, t, n, i, o, r) {
3440
3440
  y1: "3",
3441
3441
  x2: "12",
3442
3442
  y2: "21"
3443
- }, null, -1)])])) : ($(), B("svg", Cc, [...t[17] || (t[17] = [
3443
+ }, null, -1)])])) : ($(), B("svg", Cu, [...t[17] || (t[17] = [
3444
3444
  y("rect", {
3445
3445
  x: "3",
3446
3446
  y: "3",
@@ -3467,10 +3467,10 @@ function Dc(e, t, n, i, o, r) {
3467
3467
  cy: "18",
3468
3468
  r: "3"
3469
3469
  }, null, -1)
3470
- ])]))])], 8, Ec)) : ue("v-if", !0)
3470
+ ])]))])], 8, Eu)) : ce("v-if", !0)
3471
3471
  ]),
3472
- y("span", xc, Ce(i.title), 1),
3473
- y("div", Oc, [
3472
+ y("span", xu, Ce(i.title), 1),
3473
+ y("div", Ou, [
3474
3474
  i.displayMode === "extension" ? ($(), B("button", {
3475
3475
  key: 0,
3476
3476
  class: "opencode-header-btn refresh-btn",
@@ -3486,7 +3486,7 @@ function Dc(e, t, n, i, o, r) {
3486
3486
  stroke: "currentColor",
3487
3487
  "stroke-width": "2",
3488
3488
  "aria-hidden": "true"
3489
- }, [y("polyline", { points: "23,4 23,10 17,10" }), y("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" })], -1)])])) : ue("v-if", !0),
3489
+ }, [y("polyline", { points: "23,4 23,10 17,10" }), y("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" })], -1)])])) : ce("v-if", !0),
3490
3490
  i.isSplitMode && i.displayMode !== "extension" ? ($(), B("button", {
3491
3491
  key: 1,
3492
3492
  class: "opencode-header-btn split-position-btn",
@@ -3494,7 +3494,7 @@ function Dc(e, t, n, i, o, r) {
3494
3494
  title: i.splitPositionIconTitle,
3495
3495
  "aria-label": i.splitPositionIconLabel,
3496
3496
  onClick: t[5] || (t[5] = (...s) => i.handleToggleSplitPosition && i.handleToggleSplitPosition(...s))
3497
- }, [te(e.$slots, "split-position-icon", {}, () => [i.splitPosition === "right" ? ($(), B("svg", Mc, [...t[19] || (t[19] = [y("rect", {
3497
+ }, [te(e.$slots, "split-position-icon", {}, () => [i.splitPosition === "right" ? ($(), B("svg", Mu, [...t[19] || (t[19] = [y("rect", {
3498
3498
  x: "3",
3499
3499
  y: "3",
3500
3500
  width: "18",
@@ -3505,7 +3505,7 @@ function Dc(e, t, n, i, o, r) {
3505
3505
  y1: "3",
3506
3506
  x2: "15",
3507
3507
  y2: "21"
3508
- }, null, -1)])])) : ($(), B("svg", Ic, [...t[20] || (t[20] = [y("rect", {
3508
+ }, null, -1)])])) : ($(), B("svg", Iu, [...t[20] || (t[20] = [y("rect", {
3509
3509
  x: "3",
3510
3510
  y: "3",
3511
3511
  width: "18",
@@ -3516,7 +3516,7 @@ function Dc(e, t, n, i, o, r) {
3516
3516
  y1: "3",
3517
3517
  x2: "9",
3518
3518
  y2: "21"
3519
- }, null, -1)])]))])], 8, Pc)) : ue("v-if", !0),
3519
+ }, null, -1)])]))])], 8, Pu)) : ce("v-if", !0),
3520
3520
  y("button", {
3521
3521
  class: Pe(["opencode-header-btn review-panel", { active: i.reviewPanelVisible }]),
3522
3522
  type: "button",
@@ -3534,8 +3534,8 @@ function Dc(e, t, n, i, o, r) {
3534
3534
  "stroke-linecap": "round",
3535
3535
  "stroke-linejoin": "round",
3536
3536
  "aria-hidden": "true"
3537
- }, [y("polyline", { points: "16 18 22 12 16 6" }), y("polyline", { points: "8 6 2 12 8 18" })], -1)])], 10, Ac),
3538
- i.isSplitMode ? ue("v-if", !0) : ($(), B("button", {
3537
+ }, [y("polyline", { points: "16 18 22 12 16 6" }), y("polyline", { points: "8 6 2 12 8 18" })], -1)])], 10, Au),
3538
+ i.isSplitMode ? ce("v-if", !0) : ($(), B("button", {
3539
3539
  key: 2,
3540
3540
  class: "opencode-header-btn prompt-dock",
3541
3541
  type: "button",
@@ -3551,8 +3551,8 @@ function Dc(e, t, n, i, o, r) {
3551
3551
  stroke: "currentColor",
3552
3552
  "stroke-width": "2",
3553
3553
  "aria-hidden": "true"
3554
- }, [y("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" })], -1))])], 8, Rc)),
3555
- i.isSplitMode ? ue("v-if", !0) : ($(), B("button", {
3554
+ }, [y("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" })], -1))])], 8, Ru)),
3555
+ i.isSplitMode ? ce("v-if", !0) : ($(), B("button", {
3556
3556
  key: 3,
3557
3557
  class: "opencode-header-btn minimize",
3558
3558
  type: "button",
@@ -3560,8 +3560,8 @@ function Dc(e, t, n, i, o, r) {
3560
3560
  "aria-label": i.minimized ? "展开面板" : "最小化面板",
3561
3561
  "aria-pressed": i.minimized,
3562
3562
  onClick: t[8] || (t[8] = (...s) => i.handleToggleMinimize && i.handleToggleMinimize(...s))
3563
- }, [te(e.$slots, "minimize-icon", {}, () => [i.minimized ? ($(), B("svg", Nc, [...t[23] || (t[23] = [y("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }, null, -1)])])) : ($(), B("svg", Lc, [...t[24] || (t[24] = [y("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }, null, -1)])]))])], 8, kc)),
3564
- i.isSplitMode ? ue("v-if", !0) : ($(), B("button", {
3563
+ }, [te(e.$slots, "minimize-icon", {}, () => [i.minimized ? ($(), B("svg", Nu, [...t[23] || (t[23] = [y("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }, null, -1)])])) : ($(), B("svg", Lu, [...t[24] || (t[24] = [y("path", { d: "M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3" }, null, -1)])]))])], 8, ku)),
3564
+ i.isSplitMode ? ce("v-if", !0) : ($(), B("button", {
3565
3565
  key: 4,
3566
3566
  class: "opencode-header-btn close",
3567
3567
  type: "button",
@@ -3580,12 +3580,12 @@ function Dc(e, t, n, i, o, r) {
3580
3580
  ])
3581
3581
  ]);
3582
3582
  }
3583
- qs.render = Dc;
3584
- var $c = qs, Ks = /* @__PURE__ */ Ye({
3583
+ qs.render = Du;
3584
+ var $u = qs, Ks = /* @__PURE__ */ Ye({
3585
3585
  __name: "SessionList",
3586
3586
  setup(e, { expose: t }) {
3587
3587
  t();
3588
- const { sessionListCollapsed: n, sessionItems: i, loadingSessionList: o, showSessionListSkeleton: r, handleCreateSession: s, handleSelectSession: l, handleDeleteSession: a, sessionKey: u, sessionStates: c } = gn(), f = /* @__PURE__ */ L(!1);
3588
+ const { sessionListCollapsed: n, sessionItems: i, loadingSessionList: o, showSessionListSkeleton: r, handleCreateSession: s, handleSelectSession: l, handleDeleteSession: a, sessionKey: c, sessionStates: u } = gn(), f = /* @__PURE__ */ L(!1);
3589
3589
  let p = null;
3590
3590
  Me(n, () => {
3591
3591
  f.value = !0, p && clearTimeout(p), p = setTimeout(() => {
@@ -3595,7 +3595,7 @@ var $c = qs, Ks = /* @__PURE__ */ Ye({
3595
3595
  const v = q(() => !!(f.value || r.value));
3596
3596
  function b(_) {
3597
3597
  var O, M;
3598
- return !c?.value || !_ ? !1 : (M = (O = c.value[_]) == null ? void 0 : O.thinking) != null ? M : !1;
3598
+ return !u?.value || !_ ? !1 : (M = (O = u.value[_]) == null ? void 0 : O.thinking) != null ? M : !1;
3599
3599
  }
3600
3600
  const g = {
3601
3601
  collapsed: n,
@@ -3605,8 +3605,8 @@ var $c = qs, Ks = /* @__PURE__ */ Ye({
3605
3605
  handleCreateSession: s,
3606
3606
  handleSelectSession: l,
3607
3607
  handleDeleteSession: a,
3608
- sessionKey: u,
3609
- sessionStates: c,
3608
+ sessionKey: c,
3609
+ sessionStates: u,
3610
3610
  isAnimating: f,
3611
3611
  get animTimer() {
3612
3612
  return p;
@@ -3622,38 +3622,38 @@ var $c = qs, Ks = /* @__PURE__ */ Ye({
3622
3622
  value: !0
3623
3623
  }), g;
3624
3624
  }
3625
- }), Fc = {
3625
+ }), Fu = {
3626
3626
  key: 0,
3627
3627
  class: "opencode-session-list-header"
3628
- }, Bc = {
3628
+ }, Bu = {
3629
3629
  key: 2,
3630
3630
  class: "opencode-session-skeleton visible"
3631
- }, jc = {
3631
+ }, ju = {
3632
3632
  class: "opencode-session-list-content",
3633
3633
  role: "listbox",
3634
3634
  "aria-labelledby": "opencode-session-list-title"
3635
- }, Vc = {
3635
+ }, Vu = {
3636
3636
  key: 0,
3637
3637
  class: "opencode-session-list-loading-overlay"
3638
- }, Wc = ["aria-selected", "onClick"], Hc = { class: "opencode-session-header" }, zc = { class: "opencode-session-title" }, Uc = {
3638
+ }, Wu = ["aria-selected", "onClick"], Hu = { class: "opencode-session-header" }, zu = { class: "opencode-session-title" }, Uu = {
3639
3639
  key: 0,
3640
3640
  class: "opencode-thinking-loading"
3641
- }, qc = ["aria-label", "onClick"], Kc = { class: "opencode-session-meta" };
3642
- function Gc(e, t, n, i, o, r) {
3641
+ }, qu = ["aria-label", "onClick"], Ku = { class: "opencode-session-meta" };
3642
+ function Gu(e, t, n, i, o, r) {
3643
3643
  return $(), B("div", { class: Pe(["opencode-session-list", { collapsed: i.collapsed }]) }, [
3644
- ue(" Header "),
3645
- i.showSkeleton ? ($(), B(ve, { key: 1 }, [ue(" Header Skeleton "), t[2] || (t[2] = y("div", { class: "opencode-session-header-skeleton visible" }, [y("div", { class: "opencode-skeleton-header-title" }), y("div", { class: "opencode-skeleton-header-btn" })], -1))], 2112)) : ($(), B("div", Fc, [t[1] || (t[1] = y("span", { id: "opencode-session-list-title" }, "会话列表", -1)), y("button", {
3644
+ ce(" Header "),
3645
+ i.showSkeleton ? ($(), B(ve, { key: 1 }, [ce(" Header Skeleton "), t[2] || (t[2] = y("div", { class: "opencode-session-header-skeleton visible" }, [y("div", { class: "opencode-skeleton-header-title" }), y("div", { class: "opencode-skeleton-header-btn" })], -1))], 2112)) : ($(), B("div", Fu, [t[1] || (t[1] = y("span", { id: "opencode-session-list-title" }, "会话列表", -1)), y("button", {
3646
3646
  class: "opencode-new-session-btn",
3647
3647
  type: "button",
3648
3648
  title: "新建会话",
3649
3649
  "aria-label": "新建会话",
3650
3650
  onClick: t[0] || (t[0] = (...s) => i.handleCreateSession && i.handleCreateSession(...s))
3651
3651
  }, " + ")])),
3652
- ue(" Content Skeleton "),
3653
- i.showSkeleton ? ($(), B("div", Bc, [($(), B(ve, null, Bn(5, (s) => y("div", {
3652
+ ce(" Content Skeleton "),
3653
+ i.showSkeleton ? ($(), B("div", Bu, [($(), B(ve, null, Bn(5, (s) => y("div", {
3654
3654
  key: `skeleton-${s}`,
3655
3655
  class: "opencode-skeleton-item"
3656
- }, [...t[3] || (t[3] = [y("div", { class: "opencode-skeleton-title" }, null, -1), y("div", { class: "opencode-skeleton-meta" }, null, -1)])])), 64))])) : ($(), B(ve, { key: 3 }, [ue(" Content "), y("div", jc, [i.loadingSessionList ? ($(), B("div", Vc, [...t[4] || (t[4] = [y("div", { class: "opencode-loading-spinner small" }, null, -1)])])) : ue("v-if", !0), i.sessions.length > 0 ? ($(!0), B(ve, { key: 1 }, Bn(i.sessions, (s) => ($(), B("div", {
3656
+ }, [...t[3] || (t[3] = [y("div", { class: "opencode-skeleton-title" }, null, -1), y("div", { class: "opencode-skeleton-meta" }, null, -1)])])), 64))])) : ($(), B(ve, { key: 3 }, [ce(" Content "), y("div", ju, [i.loadingSessionList ? ($(), B("div", Vu, [...t[4] || (t[4] = [y("div", { class: "opencode-loading-spinner small" }, null, -1)])])) : ce("v-if", !0), i.sessions.length > 0 ? ($(!0), B(ve, { key: 1 }, Bn(i.sessions, (s) => ($(), B("div", {
3657
3657
  key: s[i.sessionKey],
3658
3658
  class: Pe(["opencode-session-item", {
3659
3659
  active: s.active,
@@ -3662,16 +3662,16 @@ function Gc(e, t, n, i, o, r) {
3662
3662
  role: "option",
3663
3663
  "aria-selected": s.active,
3664
3664
  onClick: (l) => i.handleSelectSession(s)
3665
- }, [y("div", Hc, [y("div", zc, [i.isSessionThinking(s.id) ? ($(), B("span", Uc)) : ue("v-if", !0), Co(" " + Ce(s.title), 1)]), y("button", {
3665
+ }, [y("div", Hu, [y("div", zu, [i.isSessionThinking(s.id) ? ($(), B("span", Uu)) : ce("v-if", !0), Co(" " + Ce(s.title), 1)]), y("button", {
3666
3666
  class: "opencode-session-delete-btn",
3667
3667
  type: "button",
3668
3668
  "aria-label": `删除会话: ${s.title}`,
3669
3669
  onClick: Bs((l) => i.handleDeleteSession(s), ["stop"])
3670
- }, " × ", 8, qc)]), y("div", Kc, Ce(s.meta), 1)], 10, Wc))), 128)) : ($(), B(ve, { key: 2 }, [ue(" Empty State "), te(e.$slots, "empty")], 64))])], 2112))
3670
+ }, " × ", 8, qu)]), y("div", Ku, Ce(s.meta), 1)], 10, Wu))), 128)) : ($(), B(ve, { key: 2 }, [ce(" Empty State "), te(e.$slots, "empty")], 64))])], 2112))
3671
3671
  ], 2);
3672
3672
  }
3673
- Ks.render = Gc;
3674
- var Yc = Ks, Gs = /* @__PURE__ */ Ye({
3673
+ Ks.render = Gu;
3674
+ var Yu = Ks, Gs = /* @__PURE__ */ Ye({
3675
3675
  __name: "SelectedNodes",
3676
3676
  setup(e, { expose: t }) {
3677
3677
  t();
@@ -3687,20 +3687,20 @@ var Yc = Ks, Gs = /* @__PURE__ */ Ye({
3687
3687
  value: !0
3688
3688
  }), l;
3689
3689
  }
3690
- }), Xc = {
3690
+ }), Xu = {
3691
3691
  class: "opencode-selected-nodes",
3692
3692
  role: "list",
3693
3693
  "aria-label": "已选元素列表"
3694
- }, Jc = ["onClick"], Zc = { class: "opencode-node-content" }, Qc = { class: "opencode-node-text" }, ed = { class: "opencode-node-file" }, td = ["aria-label", "onClick"];
3694
+ }, Ju = ["onClick"], Zu = { class: "opencode-node-content" }, Qu = { class: "opencode-node-text" }, ed = { class: "opencode-node-file" }, td = ["aria-label", "onClick"];
3695
3695
  function nd(e, t, n, i, o, r) {
3696
3696
  return $(), B("div", { class: Pe(["opencode-right-toolbar", { collapsed: i.items.length === 0 }]) }, [
3697
3697
  t[1] || (t[1] = y("div", { class: "opencode-selected-nodes-header" }, [y("div", { class: "opencode-selected-nodes-title" }, "已选节点"), y("div", { class: "opencode-selected-nodes-desc" }, "选中的节点会在对话时一起发送给助手")], -1)),
3698
- y("div", Xc, [($(!0), B(ve, null, Bn(i.items, (s, l) => ($(), B("div", {
3698
+ y("div", Xu, [($(!0), B(ve, null, Bn(i.items, (s, l) => ($(), B("div", {
3699
3699
  key: s.key,
3700
3700
  class: "opencode-selected-node",
3701
3701
  role: "listitem",
3702
3702
  onClick: (a) => i.handleClickSelectedNode(s)
3703
- }, [y("div", Zc, [y("span", Qc, Ce(s.description), 1), y("span", ed, Ce(s.panelFileText), 1)]), y("button", {
3703
+ }, [y("div", Zu, [y("span", Qu, Ce(s.description), 1), y("span", ed, Ce(s.panelFileText), 1)]), y("button", {
3704
3704
  class: "opencode-node-remove",
3705
3705
  type: "button",
3706
3706
  "aria-label": `移除元素: ${s.description}`,
@@ -3709,14 +3709,14 @@ function nd(e, t, n, i, o, r) {
3709
3709
  index: l,
3710
3710
  source: "panel"
3711
3711
  }), ["stop"])
3712
- }, " × ", 8, td)], 8, Jc))), 128))]),
3712
+ }, " × ", 8, td)], 8, Ju))), 128))]),
3713
3713
  i.showClearAll && i.items.length > 0 ? ($(), B("button", {
3714
3714
  key: 0,
3715
3715
  class: "opencode-clear-all-btn",
3716
3716
  type: "button",
3717
3717
  "aria-label": "清空所有已选节点",
3718
3718
  onClick: t[0] || (t[0] = (...s) => i.handleClearSelectedNodes && i.handleClearSelectedNodes(...s))
3719
- }, " 一键清空 ")) : ue("v-if", !0)
3719
+ }, " 一键清空 ")) : ce("v-if", !0)
3720
3720
  ], 2);
3721
3721
  }
3722
3722
  Gs.render = nd;
@@ -3725,12 +3725,12 @@ var id = Gs, od = Object.defineProperty, rd = Object.defineProperties, sd = Obje
3725
3725
  configurable: !0,
3726
3726
  writable: !0,
3727
3727
  value: n
3728
- }) : e[t] = n, ud = (e, t) => {
3728
+ }) : e[t] = n, cd = (e, t) => {
3729
3729
  for (var n in t || (t = {})) ld.call(t, n) && mr(e, n, t[n]);
3730
3730
  if (gr)
3731
3731
  for (var n of gr(t)) ad.call(t, n) && mr(e, n, t[n]);
3732
3732
  return e;
3733
- }, cd = (e, t) => rd(e, sd(t)), Ys = /* @__PURE__ */ Ye(cd(ud({}, { name: "ResizeHandle" }), {
3733
+ }, ud = (e, t) => rd(e, sd(t)), Ys = /* @__PURE__ */ Ye(ud(cd({}, { name: "ResizeHandle" }), {
3734
3734
  __name: "ResizeHandle",
3735
3735
  props: {
3736
3736
  width: {
@@ -3762,20 +3762,20 @@ var id = Gs, od = Object.defineProperty, rd = Object.defineProperties, sd = Obje
3762
3762
  setup(e, { expose: t, emit: n }) {
3763
3763
  t();
3764
3764
  const i = e, o = n, r = /* @__PURE__ */ L(!1), s = /* @__PURE__ */ L(0), l = /* @__PURE__ */ L(0), a = (v) => {
3765
- v.preventDefault(), r.value = !0, s.value = v.clientX, l.value = i.width, o("resize-start"), document.addEventListener("mousemove", u), document.addEventListener("mouseup", c);
3766
- }, u = (v) => {
3765
+ v.preventDefault(), r.value = !0, s.value = v.clientX, l.value = i.width, o("resize-start"), document.addEventListener("mousemove", c), document.addEventListener("mouseup", u);
3766
+ }, c = (v) => {
3767
3767
  if (!r.value) return;
3768
3768
  let b;
3769
3769
  i.position === "right" ? b = s.value - v.clientX : b = v.clientX - s.value;
3770
3770
  const g = Math.max(i.minWidth, Math.min(i.maxWidth, l.value + b));
3771
3771
  o("resize", g);
3772
- }, c = () => {
3773
- r.value = !1, o("resize-end"), document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", c);
3772
+ }, u = () => {
3773
+ r.value = !1, o("resize-end"), document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", u);
3774
3774
  }, f = () => {
3775
3775
  o("resize", 500);
3776
3776
  };
3777
3777
  Ke(() => {
3778
- document.removeEventListener("mousemove", u), document.removeEventListener("mouseup", c);
3778
+ document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", u);
3779
3779
  });
3780
3780
  const p = {
3781
3781
  props: i,
@@ -3784,8 +3784,8 @@ var id = Gs, od = Object.defineProperty, rd = Object.defineProperties, sd = Obje
3784
3784
  startX: s,
3785
3785
  startWidth: l,
3786
3786
  handleMouseDown: a,
3787
- handleMouseMove: u,
3788
- handleMouseUp: c,
3787
+ handleMouseMove: c,
3788
+ handleMouseUp: u,
3789
3789
  handleDoubleClick: f
3790
3790
  };
3791
3791
  return Object.defineProperty(p, "__isScriptSetup", {
@@ -3945,9 +3945,9 @@ var fd = Ys, hd = Object.defineProperty, pd = Object.defineProperties, vd = Obje
3945
3945
  "split-right": i.mode === "split" && i.splitPosition === "right" && !i.extension,
3946
3946
  "extension-mode": i.extension
3947
3947
  }]),
3948
- Frame: hc,
3949
- Header: $c,
3950
- SessionList: Yc,
3948
+ Frame: hu,
3949
+ Header: $u,
3950
+ SessionList: Yu,
3951
3951
  SelectedNodes: id,
3952
3952
  ResizeHandle: fd
3953
3953
  };
@@ -4008,7 +4008,7 @@ function Od(e, t, n, i, o, r) {
4008
4008
  "min-width",
4009
4009
  "max-width",
4010
4010
  "position"
4011
- ])) : ue("v-if", !0),
4011
+ ])) : ce("v-if", !0),
4012
4012
  n.mode === "split" && n.resizable ? ($(), B("button", {
4013
4013
  key: 1,
4014
4014
  type: "button",
@@ -4026,23 +4026,23 @@ function Od(e, t, n, i, o, r) {
4026
4026
  d: "M9 18l6-6-6-6",
4027
4027
  "stroke-linecap": "round",
4028
4028
  "stroke-linejoin": "round"
4029
- }, null, -1)])])) : ue("v-if", !0),
4029
+ }, null, -1)])])) : ce("v-if", !0),
4030
4030
  !n.open && n.splitPosition === "right" ? ($(), B("svg", wd, [...t[1] || (t[1] = [y("path", {
4031
4031
  d: "M15 18l-6-6 6-6",
4032
4032
  "stroke-linecap": "round",
4033
4033
  "stroke-linejoin": "round"
4034
- }, null, -1)])])) : ue("v-if", !0),
4034
+ }, null, -1)])])) : ce("v-if", !0),
4035
4035
  n.open && n.splitPosition === "left" ? ($(), B("svg", Td, [...t[2] || (t[2] = [y("path", {
4036
4036
  d: "M15 18l-6-6 6-6",
4037
4037
  "stroke-linecap": "round",
4038
4038
  "stroke-linejoin": "round"
4039
- }, null, -1)])])) : ue("v-if", !0),
4039
+ }, null, -1)])])) : ce("v-if", !0),
4040
4040
  !n.open && n.splitPosition === "left" ? ($(), B("svg", Cd, [...t[3] || (t[3] = [y("path", {
4041
4041
  d: "M9 18l6-6-6-6",
4042
4042
  "stroke-linecap": "round",
4043
4043
  "stroke-linejoin": "round"
4044
- }, null, -1)])])) : ue("v-if", !0)
4045
- ])], 10, bd)) : ue("v-if", !0),
4044
+ }, null, -1)])])) : ce("v-if", !0)
4045
+ ])], 10, bd)) : ce("v-if", !0),
4046
4046
  Oe(i.Header, null, di({ _: 2 }, [
4047
4047
  i.slots["session-toggle-icon"] ? {
4048
4048
  name: "session-toggle-icon",
@@ -4162,10 +4162,10 @@ var Ad = Js, Rd = Object.defineProperty, kd = Object.defineProperties, Nd = Obje
4162
4162
  y: 0,
4163
4163
  width: 0,
4164
4164
  height: 0
4165
- }), l = (I) => I !== null && typeof I == "object", a = q(() => l(i.gap) ? i.gap.x : i.gap), u = q(() => l(i.gap) ? i.gap.y : i.gap), c = /* @__PURE__ */ L(typeof window < "u" ? window.innerWidth : 0), f = /* @__PURE__ */ L(typeof window < "u" ? window.innerHeight : 0), p = q(() => ({
4166
- top: u.value,
4167
- right: c.value - s.value.width - a.value,
4168
- bottom: f.value - s.value.height - u.value,
4165
+ }), l = (I) => I !== null && typeof I == "object", a = q(() => l(i.gap) ? i.gap.x : i.gap), c = q(() => l(i.gap) ? i.gap.y : i.gap), u = /* @__PURE__ */ L(typeof window < "u" ? window.innerWidth : 0), f = /* @__PURE__ */ L(typeof window < "u" ? window.innerHeight : 0), p = q(() => ({
4166
+ top: c.value,
4167
+ right: u.value - s.value.width - a.value,
4168
+ bottom: f.value - s.value.height - c.value,
4169
4169
  left: a.value
4170
4170
  })), v = (I, X) => I.reduce((Q, G) => Math.abs(Q - X) < Math.abs(G - X) ? Q : G), b = () => {
4171
4171
  if (i.magnetic === "x") if (O.value === "left") s.value.x = p.value.left;
@@ -4184,9 +4184,9 @@ var Ad = Js, Rd = Object.defineProperty, kd = Object.defineProperties, Nd = Obje
4184
4184
  }), F = () => {
4185
4185
  if (!r.value || typeof window > "u") return;
4186
4186
  const I = r.value.getBoundingClientRect(), { offset: X } = i;
4187
- let Q = X ? X.x : c.value - I.width - a.value, G = X ? X.y : f.value - I.height - u.value;
4188
- const ee = c.value - I.width - a.value, Le = f.value - I.height - u.value;
4189
- Q < a.value && (Q = a.value), Q > ee && (Q = ee), G < u.value && (G = u.value), G > Le && (G = Le);
4187
+ let Q = X ? X.x : u.value - I.width - a.value, G = X ? X.y : f.value - I.height - c.value;
4188
+ const ee = u.value - I.width - a.value, Le = f.value - I.height - c.value;
4189
+ Q < a.value && (Q = a.value), Q > ee && (Q = ee), G < c.value && (G = c.value), G > Le && (G = Le);
4190
4190
  const Je = s.value.x, De = s.value.y;
4191
4191
  if (s.value = {
4192
4192
  x: Q,
@@ -4242,7 +4242,7 @@ var Ad = Js, Rd = Object.defineProperty, kd = Object.defineProperties, Nd = Obje
4242
4242
  }, j = (I) => {
4243
4243
  g.value = !1, document.body.classList.remove("floating-bubble-dragging"), I && !("touches" in I) && I.type === "mouseup" && (window.removeEventListener("mousemove", H), window.removeEventListener("mouseup", j)), requestAnimationFrame(() => {
4244
4244
  if (i.magnetic === "x" && !S.isTap.value) {
4245
- const X = s.value.x + s.value.width / 2, Q = c.value / 2;
4245
+ const X = s.value.x + s.value.width / 2, Q = u.value / 2;
4246
4246
  O.value = X < Q ? "left" : "right";
4247
4247
  }
4248
4248
  if (b(), !S.isTap.value) {
@@ -4257,7 +4257,7 @@ var Ad = Js, Rd = Object.defineProperty, kd = Object.defineProperties, Nd = Obje
4257
4257
  }, Y = (I) => {
4258
4258
  S.isTap.value ? o("click", I) : I.stopPropagation();
4259
4259
  }, le = () => {
4260
- typeof window < "u" && (c.value = window.innerWidth, f.value = window.innerHeight);
4260
+ typeof window < "u" && (u.value = window.innerWidth, f.value = window.innerHeight);
4261
4261
  };
4262
4262
  Xe(() => {
4263
4263
  F(), requestAnimationFrame(() => {
@@ -4266,10 +4266,10 @@ var Ad = Js, Rd = Object.defineProperty, kd = Object.defineProperties, Nd = Obje
4266
4266
  }), Ke(() => {
4267
4267
  document.body.classList.remove("floating-bubble-dragging"), typeof window < "u" && (window.removeEventListener("resize", le), window.removeEventListener("mousemove", H), window.removeEventListener("mouseup", j)), r.value && r.value.removeEventListener("touchmove", H);
4268
4268
  }), Me([
4269
- c,
4269
+ u,
4270
4270
  f,
4271
4271
  a,
4272
- u
4272
+ c
4273
4273
  ], F), Me(() => i.offset, (I) => {
4274
4274
  I && (O.value = null), F();
4275
4275
  }, { deep: !0 }), t({ offset: q(() => ({
@@ -4283,8 +4283,8 @@ var Ad = Js, Rd = Object.defineProperty, kd = Object.defineProperties, Nd = Obje
4283
4283
  state: s,
4284
4284
  isObject: l,
4285
4285
  gapX: a,
4286
- gapY: u,
4287
- windowWidth: c,
4286
+ gapY: c,
4287
+ windowWidth: u,
4288
4288
  windowHeight: f,
4289
4289
  boundary: p,
4290
4290
  closest: v,
@@ -4388,10 +4388,10 @@ var zd = Qs, el = /* @__PURE__ */ Ye({
4388
4388
  __name: "Trigger",
4389
4389
  emits: ["drag-start", "drag-end"],
4390
4390
  setup(e, { expose: t, emit: n }) {
4391
- const { buttonActive: i, open: o, hotkeyLabel: r, thinking: s, resolvedTheme: l, handleToggle: a, bubbleOffset: u, handleBubbleOffsetChange: c } = gn(), f = /* @__PURE__ */ L(u.value), p = n, v = (g) => {
4392
- f.value = g, c(g);
4391
+ const { buttonActive: i, open: o, hotkeyLabel: r, thinking: s, resolvedTheme: l, handleToggle: a, bubbleOffset: c, handleBubbleOffsetChange: u } = gn(), f = /* @__PURE__ */ L(c.value), p = n, v = (g) => {
4392
+ f.value = g, u(g);
4393
4393
  };
4394
- Me(u, (g) => {
4394
+ Me(c, (g) => {
4395
4395
  f.value = g;
4396
4396
  }), t({ offset: f });
4397
4397
  const b = {
@@ -4401,8 +4401,8 @@ var zd = Qs, el = /* @__PURE__ */ Ye({
4401
4401
  thinking: s,
4402
4402
  resolvedTheme: l,
4403
4403
  handleToggle: a,
4404
- bubbleOffset: u,
4405
- handleBubbleOffsetChange: c,
4404
+ bubbleOffset: c,
4405
+ handleBubbleOffsetChange: u,
4406
4406
  offset: f,
4407
4407
  emit: p,
4408
4408
  handleOffsetChange: v,
@@ -4447,14 +4447,14 @@ var Kd = el, Gd = (e, t, n) => new Promise((i, o) => {
4447
4447
  var r = (a) => {
4448
4448
  try {
4449
4449
  l(n.next(a));
4450
- } catch (u) {
4451
- o(u);
4450
+ } catch (c) {
4451
+ o(c);
4452
4452
  }
4453
4453
  }, s = (a) => {
4454
4454
  try {
4455
4455
  l(n.throw(a));
4456
- } catch (u) {
4457
- o(u);
4456
+ } catch (c) {
4457
+ o(c);
4458
4458
  }
4459
4459
  }, l = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(r, s);
4460
4460
  l((n = n.apply(e, t)).next());
@@ -4473,8 +4473,8 @@ function Jd(e) {
4473
4473
  return `${(n = e.innerText) != null && n.trim() ? `${Hs(e.innerText.trim(), 30)} · ` : ""}${i}${o}`;
4474
4474
  }
4475
4475
  function Zd(e) {
4476
- const t = q(() => e.selectMode.value), n = q(() => (e.selectedElements.value || []).map((a, u) => ({
4477
- key: Yd(a, u),
4476
+ const t = q(() => e.selectMode.value), n = q(() => (e.selectedElements.value || []).map((a, c) => ({
4477
+ key: Yd(a, c),
4478
4478
  description: a.description || "未知元素",
4479
4479
  bubbleFileText: Xd(a),
4480
4480
  panelFileText: Jd(a),
@@ -4484,26 +4484,26 @@ function Zd(e) {
4484
4484
  e.onToggleSelectMode(!e.selectMode.value);
4485
4485
  }
4486
4486
  function r(a) {
4487
- const u = a.element.description;
4488
- if (!u) return;
4489
- let c = null;
4490
- if (u.includes("#")) {
4491
- const f = u.match(/#([^.[\s]+)/);
4492
- f && (c = document.getElementById(f[1]));
4487
+ const c = a.element.description;
4488
+ if (!c) return;
4489
+ let u = null;
4490
+ if (c.includes("#")) {
4491
+ const f = c.match(/#([^.[\s]+)/);
4492
+ f && (u = document.getElementById(f[1]));
4493
4493
  }
4494
- if (!c && u.includes(".")) {
4495
- const f = u.match(/^([a-z]+)\.([^[\s]+)/i);
4494
+ if (!u && c.includes(".")) {
4495
+ const f = c.match(/^([a-z]+)\.([^[\s]+)/i);
4496
4496
  if (f) {
4497
4497
  const p = `${f[1]}.${f[2].split(".").filter(Boolean).join(".")}`;
4498
- c = document.querySelector(p);
4498
+ u = document.querySelector(p);
4499
4499
  }
4500
4500
  }
4501
- if (!c && u.match(/^([a-z]+)/i)) {
4502
- const f = u.split(/[.[\s]/)[0];
4503
- c = document.querySelector(f);
4501
+ if (!u && c.match(/^([a-z]+)/i)) {
4502
+ const f = c.split(/[.[\s]/)[0];
4503
+ u = document.querySelector(f);
4504
4504
  }
4505
- if (c) {
4506
- c.scrollIntoView({
4505
+ if (u) {
4506
+ u.scrollIntoView({
4507
4507
  behavior: "smooth",
4508
4508
  block: "center"
4509
4509
  });
@@ -4516,17 +4516,17 @@ function Zd(e) {
4516
4516
  v = _.getPropertyValue("--oc-primary").trim() || v, b = _.getPropertyValue("--oc-primary-bg").trim() || b;
4517
4517
  }
4518
4518
  f.style.border = `2px solid ${v}`, f.style.background = b;
4519
- const g = c.getBoundingClientRect();
4519
+ const g = u.getBoundingClientRect();
4520
4520
  f.style.top = `${g.top + window.scrollY}px`, f.style.left = `${g.left + window.scrollX}px`, f.style.width = `${g.width}px`, f.style.height = `${g.height}px`, document.body.appendChild(f), setTimeout(() => {
4521
4521
  f.remove();
4522
4522
  }, 2e3);
4523
4523
  }
4524
4524
  }
4525
- function s(a, u, c) {
4525
+ function s(a, c, u) {
4526
4526
  e.onRemoveSelectedNode({
4527
4527
  element: a.element,
4528
- index: u,
4529
- source: c
4528
+ index: c,
4529
+ source: u
4530
4530
  });
4531
4531
  }
4532
4532
  function l() {
@@ -4548,14 +4548,14 @@ var Qd = (e, t, n) => new Promise((i, o) => {
4548
4548
  var r = (a) => {
4549
4549
  try {
4550
4550
  l(n.next(a));
4551
- } catch (u) {
4552
- o(u);
4551
+ } catch (c) {
4552
+ o(c);
4553
4553
  }
4554
4554
  }, s = (a) => {
4555
4555
  try {
4556
4556
  l(n.throw(a));
4557
- } catch (u) {
4558
- o(u);
4557
+ } catch (c) {
4558
+ o(c);
4559
4559
  }
4560
4560
  }, l = (a) => a.done ? i(a.value) : Promise.resolve(a.value).then(r, s);
4561
4561
  l((n = n.apply(e, t)).next());
@@ -4611,8 +4611,8 @@ function nf(e) {
4611
4611
  }), Ke(() => {
4612
4612
  i && o && i.removeEventListener("change", o);
4613
4613
  });
4614
- const r = q(() => e.theme.value === "auto" ? t.value : e.theme.value), s = q(() => ["opencode-widget", `opencode-theme-${r.value}`]), l = q(() => !!(e.open.value || e.selectMode.value)), a = q(() => e.iframeSrc.value || "about:blank"), u = q(() => e.sessionListCollapsed.value ? "展开会话列表" : "折叠会话列表");
4615
- function c() {
4614
+ const r = q(() => e.theme.value === "auto" ? t.value : e.theme.value), s = q(() => ["opencode-widget", `opencode-theme-${r.value}`]), l = q(() => !!(e.open.value || e.selectMode.value)), a = q(() => e.iframeSrc.value || "about:blank"), c = q(() => e.sessionListCollapsed.value ? "展开会话列表" : "折叠会话列表");
4615
+ function u() {
4616
4616
  var g;
4617
4617
  if (e.selectMode.value) {
4618
4618
  (g = e.onToggleSelectMode) == null || g.call(e, !1);
@@ -4639,11 +4639,11 @@ function nf(e) {
4639
4639
  buttonActive: l,
4640
4640
  containerClasses: s,
4641
4641
  iframeSource: a,
4642
- sessionListTitle: u,
4642
+ sessionListTitle: c,
4643
4643
  resolvedTheme: r,
4644
4644
  handleClose: f,
4645
4645
  handleEmptyAction: v,
4646
- handleToggle: c,
4646
+ handleToggle: u,
4647
4647
  handleToggleSessionList: p,
4648
4648
  handleToggleTheme: b
4649
4649
  };
@@ -4703,7 +4703,7 @@ function af(e) {
4703
4703
  function Er(e) {
4704
4704
  return Array.isArray(e) ? e.filter(af) : [];
4705
4705
  }
4706
- function uf(e) {
4706
+ function cf(e) {
4707
4707
  return e != null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
4708
4708
  }
4709
4709
  function wr(e) {
@@ -4712,7 +4712,7 @@ function wr(e) {
4712
4712
  Node.DOCUMENT_FRAGMENT_NODE,
4713
4713
  Node.ELEMENT_NODE
4714
4714
  ];
4715
- return uf(e) && t.includes(e.nodeType);
4715
+ return cf(e) && t.includes(e.nodeType);
4716
4716
  }
4717
4717
  function il(e, t) {
4718
4718
  if (wr(e))
@@ -4723,7 +4723,7 @@ function il(e, t) {
4723
4723
  function Yi(e) {
4724
4724
  return typeof e == "number" ? e : Number.POSITIVE_INFINITY;
4725
4725
  }
4726
- function cf(e, t = {}) {
4726
+ function uf(e, t = {}) {
4727
4727
  const n = Object.assign(Object.assign({}, sf), t);
4728
4728
  return {
4729
4729
  selectors: lf(n.selectors),
@@ -4851,7 +4851,7 @@ function al(e, t) {
4851
4851
  function xf(e, t) {
4852
4852
  return e.length === 0 || e.length > 1 ? [] : al(e[0], t);
4853
4853
  }
4854
- function ul(e, t) {
4854
+ function cl(e, t) {
4855
4855
  const n = e.parentNode, i = n && "children" in n ? n.children : null;
4856
4856
  if (i) {
4857
4857
  for (let o = 0; o < i.length; o++) if (i[o] === e) return [`:nth-child(${String(o + 1)})`];
@@ -4859,13 +4859,13 @@ function ul(e, t) {
4859
4859
  return [];
4860
4860
  }
4861
4861
  function Of(e, t) {
4862
- return qn(e.map((n) => ul(n, t)));
4862
+ return qn(e.map((n) => cl(n, t)));
4863
4863
  }
4864
- function cl(e, t) {
4864
+ function ul(e, t) {
4865
4865
  return [vn(e.tagName.toLowerCase())];
4866
4866
  }
4867
4867
  function dl(e, t) {
4868
- const n = [...new Set(df(e.map((i) => cl(i, t))))];
4868
+ const n = [...new Set(df(e.map((i) => ul(i, t))))];
4869
4869
  return n.length === 0 || n.length > 1 ? [] : [n[0]];
4870
4870
  }
4871
4871
  function fl(e, t) {
@@ -4938,11 +4938,11 @@ var Lf = {
4938
4938
  nthchild: Of,
4939
4939
  nthoftype: Pf
4940
4940
  }, Df = {
4941
- tag: cl,
4941
+ tag: ul,
4942
4942
  id: al,
4943
4943
  class: ll,
4944
4944
  attribute: sl,
4945
- nthchild: ul,
4945
+ nthchild: cl,
4946
4946
  nthoftype: fl
4947
4947
  };
4948
4948
  function $f(e, t, n) {
@@ -4966,9 +4966,9 @@ function* Vf(e, t) {
4966
4966
  for (const o of qf(i, t)) n.has(o) || (n.add(o), yield o);
4967
4967
  }
4968
4968
  function Wf(e, t) {
4969
- const { blacklist: n, whitelist: i, combineWithinSelector: o, maxCombinations: r } = t, s = _i(n), l = _i(i), a = (u, c) => {
4970
- const f = jf(Bf(Ff(e, c, t), s, l), l);
4971
- return u[c] = o ? Array.from(hl(f, { maxResults: r })) : f.map((p) => [p]), u;
4969
+ const { blacklist: n, whitelist: i, combineWithinSelector: o, maxCombinations: r } = t, s = _i(n), l = _i(i), a = (c, u) => {
4970
+ const f = jf(Bf(Ff(e, u, t), s, l), l);
4971
+ return c[u] = o ? Array.from(hl(f, { maxResults: r })) : f.map((p) => [p]), c;
4972
4972
  };
4973
4973
  return Hf(t).reduce(a, {});
4974
4974
  }
@@ -5025,10 +5025,10 @@ function* eh({ elements: e, root: t, rootSelector: n = "", options: i }) {
5025
5025
  for (; s; ) {
5026
5026
  let l = !1;
5027
5027
  for (const a of Qf(e, o, r, i)) {
5028
- const { foundElements: u, selector: c } = a;
5029
- if (l = !0, Oo(e, c, t)) yield c;
5028
+ const { foundElements: c, selector: u } = a;
5029
+ if (l = !0, Oo(e, u, t)) yield u;
5030
5030
  else {
5031
- o = u[0], r = c;
5031
+ o = c[0], r = u;
5032
5032
  break;
5033
5033
  }
5034
5034
  }
@@ -5071,8 +5071,8 @@ function rh(e, t) {
5071
5071
  const n = ol(e, t).reverse(), i = t instanceof ShadowRoot, o = n.map((r, s) => {
5072
5072
  var l;
5073
5073
  const a = ih(r, [Ee.nthchild], i && s === 0 ? Wn.NONE : Wn.CHILD);
5074
- return ((l = a.selectors.nthchild) !== null && l !== void 0 ? l : []).forEach((u) => {
5075
- u.include = !0;
5074
+ return ((l = a.selectors.nthchild) !== null && l !== void 0 ? l : []).forEach((c) => {
5075
+ c.include = !0;
5076
5076
  }), a;
5077
5077
  });
5078
5078
  return [i ? "" : t ? ":scope" : ":root", ...o.map(oh)].join("");
@@ -5092,7 +5092,7 @@ function pl(e, t = {}) {
5092
5092
  }
5093
5093
  function* ah(e, t = {}) {
5094
5094
  var n;
5095
- const i = th(e), o = cf(i[0], t), r = (n = o.root) !== null && n !== void 0 ? n : Po(i[0]);
5095
+ const i = th(e), o = uf(i[0], t), r = (n = o.root) !== null && n !== void 0 ? n : Po(i[0]);
5096
5096
  let s = 0;
5097
5097
  for (const a of eh({
5098
5098
  elements: i,
@@ -5102,20 +5102,20 @@ function* ah(e, t = {}) {
5102
5102
  }))
5103
5103
  if (yield a, s++, s >= o.maxResults) return;
5104
5104
  if (i.length > 1) {
5105
- const { maxResults: a } = t, u = lh(t, ["maxResults"]);
5106
- if (yield i.map((c) => pl(c, u)).join(", "), s++, s >= o.maxResults) return;
5105
+ const { maxResults: a } = t, c = lh(t, ["maxResults"]);
5106
+ if (yield i.map((u) => pl(u, c)).join(", "), s++, s >= o.maxResults) return;
5107
5107
  }
5108
5108
  const l = t.root !== void 0;
5109
5109
  yield sh(i, o.useScope || l ? r : void 0);
5110
5110
  }
5111
- var uh = [
5111
+ var ch = [
5112
5112
  "#vue-inspector-container",
5113
5113
  ".opencode-widget",
5114
5114
  ".opencode-element-highlight",
5115
5115
  ".opencode-element-tooltip",
5116
5116
  ".opencode-select-mode-hint",
5117
5117
  ".floating-bubble"
5118
- ], ch = "data-v-inspector-ignore", Xi = "__v_inspector", dh = "data-v-inspector";
5118
+ ], uh = "data-v-inspector-ignore", Xi = "__v_inspector", dh = "data-v-inspector";
5119
5119
  function fh(e) {
5120
5120
  let t = "";
5121
5121
  for (let n = 0; n < e.childNodes.length; n++) {
@@ -5191,21 +5191,21 @@ function _h(e) {
5191
5191
  return null;
5192
5192
  }
5193
5193
  function vl(e) {
5194
- if (e.hasAttribute(ch)) return !0;
5195
- for (const t of uh) if (e.closest(t)) return !0;
5194
+ if (e.hasAttribute(uh)) return !0;
5195
+ for (const t of ch) if (e.closest(t)) return !0;
5196
5196
  return !1;
5197
5197
  }
5198
5198
  function yh(e) {
5199
5199
  var t, n, i, o, r, s, l;
5200
5200
  const a = (n = (t = e.__vnode) == null ? void 0 : t.props) == null ? void 0 : n[Xi];
5201
5201
  if (a) return a;
5202
- const u = (o = (i = e.__vnode) == null ? void 0 : i.ctx) == null ? void 0 : o.vnode;
5203
- if (u?.el === e) {
5204
- const v = (r = u.props) == null ? void 0 : r[Xi];
5202
+ const c = (o = (i = e.__vnode) == null ? void 0 : i.ctx) == null ? void 0 : o.vnode;
5203
+ if (c?.el === e) {
5204
+ const v = (r = c.props) == null ? void 0 : r[Xi];
5205
5205
  if (v) return v;
5206
5206
  }
5207
- const c = e.__vueParentComponent;
5208
- let f = c?.parent;
5207
+ const u = e.__vueParentComponent;
5208
+ let f = u?.parent;
5209
5209
  for (; f; ) {
5210
5210
  if (((s = f.vnode) == null ? void 0 : s.el) === e) {
5211
5211
  const v = (l = f.vnode.props) == null ? void 0 : l[Xi];
@@ -5269,8 +5269,8 @@ function Eh(e) {
5269
5269
  description: "",
5270
5270
  fileInfo: ""
5271
5271
  }), s = 500;
5272
- let l = null, a = "#3b82f6", u = "rgba(59, 130, 246, 0.1)";
5273
- function c(_) {
5272
+ let l = null, a = "#3b82f6", c = "rgba(59, 130, 246, 0.1)";
5273
+ function u(_) {
5274
5274
  _.forEach((O) => {
5275
5275
  O && (O.style.pointerEvents = "none");
5276
5276
  });
@@ -5288,13 +5288,13 @@ function Eh(e) {
5288
5288
  document.querySelector(".opencode-select-mode-hint"),
5289
5289
  document.querySelector(".floating-bubble")
5290
5290
  ];
5291
- c(O);
5291
+ u(O);
5292
5292
  const M = Cr(_), F = xr(_, M);
5293
5293
  if (f(O), M) {
5294
5294
  const S = document.querySelector(".opencode-widget");
5295
5295
  if (S) {
5296
5296
  const X = getComputedStyle(S);
5297
- a = X.getPropertyValue("--oc-primary").trim() || a, u = X.getPropertyValue("--oc-primary-bg").trim() || u;
5297
+ a = X.getPropertyValue("--oc-primary").trim() || a, c = X.getPropertyValue("--oc-primary-bg").trim() || c;
5298
5298
  }
5299
5299
  const W = Tr(M), U = F.file ? F.file.split("/").pop() : "";
5300
5300
  let k = "";
@@ -5311,15 +5311,15 @@ function Eh(e) {
5311
5311
  width: fe,
5312
5312
  height: I,
5313
5313
  border: `2px solid ${a}`,
5314
- background: u
5314
+ background: c
5315
5315
  }), t.value = !0, i.value = !0, Mi(() => {
5316
5316
  const X = document.querySelector(".opencode-element-tooltip");
5317
5317
  if (!X) return;
5318
5318
  const Q = X.offsetWidth, G = X.offsetHeight;
5319
5319
  if (Q === 0 || G === 0) return;
5320
- const ee = 10, Le = 4, Je = window.innerWidth, De = window.innerHeight, $e = (d) => Math.max(ee, Math.min(d, Je - Q - ee)), Fe = (d) => Math.max(ee, Math.min(d, De - G - ee)), ut = j.top - G - Le, ct = j.bottom + Le, mt = j.right + Le, Ze = j.left - Q - Le, st = j.top + (j.height - G) / 2;
5320
+ const ee = 10, Le = 4, Je = window.innerWidth, De = window.innerHeight, $e = (d) => Math.max(ee, Math.min(d, Je - Q - ee)), Fe = (d) => Math.max(ee, Math.min(d, De - G - ee)), ct = j.top - G - Le, ut = j.bottom + Le, mt = j.right + Le, Ze = j.left - Q - Le, st = j.top + (j.height - G) / 2;
5321
5321
  let Re = 0, He = 0, me = !1;
5322
- if (ut >= ee && (Re = ut, He = $e(j.left), me = !0), !me && ct + G <= De - ee && (Re = ct, He = $e(j.left), me = !0), !me && mt + Q <= Je - ee && (He = mt, Re = Fe(st), me = !0), !me && Ze >= ee && (He = Ze, Re = Fe(st), me = !0), !me) {
5322
+ if (ct >= ee && (Re = ct, He = $e(j.left), me = !0), !me && ut + G <= De - ee && (Re = ut, He = $e(j.left), me = !0), !me && mt + Q <= Je - ee && (He = mt, Re = Fe(st), me = !0), !me && Ze >= ee && (He = Ze, Re = Fe(st), me = !0), !me) {
5323
5323
  const d = [
5324
5324
  {
5325
5325
  top: ee,
@@ -5474,7 +5474,7 @@ function Oh(e) {
5474
5474
  defaultOpen: H ? !0 : (W = k.defaultOpen) != null ? W : !0,
5475
5475
  position: (U = k.position) != null ? U : o.value
5476
5476
  };
5477
- }), l = /* @__PURE__ */ L(s.value.width), a = q(() => r.value ? "split" : e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || i.value >= xh ? "split" : "bubble"), u = q(() => a.value === "split"), c = q(() => s.value.position), f = (_) => {
5477
+ }), l = /* @__PURE__ */ L(s.value.width), a = q(() => r.value ? "split" : e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || i.value >= xh ? "split" : "bubble"), c = q(() => a.value === "split"), u = q(() => s.value.position), f = (_) => {
5478
5478
  var O;
5479
5479
  l.value = _, (O = e.onWidthChange) == null || O.call(e, _);
5480
5480
  }, p = () => {
@@ -5488,13 +5488,19 @@ function Oh(e) {
5488
5488
  }, b = () => {
5489
5489
  typeof window < "u" && (i.value = window.innerWidth);
5490
5490
  }, g = () => {
5491
- typeof document > "u" || r.value || (u.value && e.open.value && s.value.shrinkPage ? (document.body.classList.add("has-opencode-split"), document.body.style.setProperty("--opencode-split-width", `${l.value}px`), c.value === "left" ? (document.body.classList.add("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right")) : (document.body.classList.add("has-opencode-split-right"), document.body.classList.remove("has-opencode-split-left"))) : (document.body.classList.remove("has-opencode-split"), document.body.classList.remove("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right"), document.body.style.removeProperty("--opencode-split-width")));
5491
+ if (!(typeof document > "u")) {
5492
+ if (r.value) {
5493
+ document.body.classList.remove("has-opencode-split"), document.body.classList.remove("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right"), document.body.style.removeProperty("--opencode-split-width");
5494
+ return;
5495
+ }
5496
+ c.value && e.open.value && s.value.shrinkPage ? (document.body.classList.add("has-opencode-split"), document.body.style.setProperty("--opencode-split-width", `${l.value}px`), u.value === "left" ? (document.body.classList.add("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right")) : (document.body.classList.add("has-opencode-split-right"), document.body.classList.remove("has-opencode-split-left"))) : (document.body.classList.remove("has-opencode-split"), document.body.classList.remove("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right"), document.body.style.removeProperty("--opencode-split-width"));
5497
+ }
5492
5498
  };
5493
5499
  return Me([
5494
- u,
5500
+ c,
5495
5501
  e.open,
5496
5502
  l,
5497
- c
5503
+ u
5498
5504
  ], g, { immediate: !0 }), Me(s, (_) => {
5499
5505
  l.value < _.minWidth && (l.value = _.minWidth), l.value > _.maxWidth && (l.value = _.maxWidth);
5500
5506
  }), Me(() => {
@@ -5504,16 +5510,16 @@ function Oh(e) {
5504
5510
  _ && _ !== o.value && (o.value = _);
5505
5511
  }), Xe(() => {
5506
5512
  var _;
5507
- typeof window < "u" && (window.addEventListener("resize", b), !r.value && u.value && s.value.defaultOpen && !e.open.value && ((_ = e.onOpenChange) == null || _.call(e, !0)));
5513
+ typeof window < "u" && (window.addEventListener("resize", b), !r.value && c.value && s.value.defaultOpen && !e.open.value && ((_ = e.onOpenChange) == null || _.call(e, !0)));
5508
5514
  }), Ke(() => {
5509
5515
  typeof window < "u" && (window.removeEventListener("resize", b), r.value || (document.body.classList.remove("has-opencode-split"), document.body.classList.remove("has-opencode-split-left"), document.body.classList.remove("has-opencode-split-right"), document.body.style.removeProperty("--opencode-split-width")));
5510
5516
  }), {
5511
5517
  effectiveMode: a,
5512
- isSplitMode: u,
5518
+ isSplitMode: c,
5513
5519
  isExtensionMode: r,
5514
5520
  panelWidth: l,
5515
5521
  splitConfig: s,
5516
- splitPosition: c,
5522
+ splitPosition: u,
5517
5523
  handleResize: f,
5518
5524
  handleToggle: p,
5519
5525
  handleTogglePosition: v
@@ -5697,12 +5703,12 @@ var Ph = Object.defineProperty, Mh = Object.defineProperties, Ih = Object.getOwn
5697
5703
  "-chatAnimationOrigin.x": Ni.value.x,
5698
5704
  "-chatAnimationOrigin.y": Ni.value.y
5699
5705
  }));
5700
- const r = e, s = n, l = gs(), a = /* @__PURE__ */ L(""), u = /* @__PURE__ */ L(!1), c = /* @__PURE__ */ L("widget");
5706
+ const r = e, s = n, l = gs(), a = /* @__PURE__ */ L(""), c = /* @__PURE__ */ L(!1), u = /* @__PURE__ */ L("widget");
5701
5707
  let f = null;
5702
5708
  const p = (x, ke) => {
5703
5709
  const { duration: ft = 3e3, mode: Ot = "widget" } = ke || {};
5704
- a.value = x, u.value = !0, c.value = Ot, f && clearTimeout(f), f = setTimeout(() => {
5705
- u.value = !1;
5710
+ a.value = x, c.value = !0, u.value = Ot, f && clearTimeout(f), f = setTimeout(() => {
5711
+ c.value = !1;
5706
5712
  }, ft);
5707
5713
  }, v = /* @__PURE__ */ L(!1), b = /* @__PURE__ */ L("");
5708
5714
  let g = null;
@@ -5735,7 +5741,7 @@ var Ph = Object.defineProperty, Mh = Object.defineProperties, Ih = Object.getOwn
5735
5741
  "auto"
5736
5742
  ], ke = (x.indexOf(k.value) + 1) % x.length;
5737
5743
  k.value = x[ke];
5738
- }, { buttonActive: Le, containerClasses: Je, iframeSource: De, sessionListTitle: $e, resolvedTheme: Fe, handleClose: ut, handleEmptyAction: ct, handleToggle: mt, handleToggleSessionList: Ze, handleToggleTheme: st } = nf({
5744
+ }, { buttonActive: Le, containerClasses: Je, iframeSource: De, sessionListTitle: $e, resolvedTheme: Fe, handleClose: ct, handleEmptyAction: ut, handleToggle: mt, handleToggleSessionList: Ze, handleToggleTheme: st } = nf({
5739
5745
  theme: /* @__PURE__ */ se(r, "theme"),
5740
5746
  open: /* @__PURE__ */ se(r, "open"),
5741
5747
  selectMode: /* @__PURE__ */ se(r, "selectMode"),
@@ -5911,7 +5917,7 @@ var Ph = Object.defineProperty, Mh = Object.defineProperties, Ih = Object.getOwn
5911
5917
  }, wl = () => {
5912
5918
  _n.value = !1, Yn && s("update:open", !0);
5913
5919
  };
5914
- oc({
5920
+ ou({
5915
5921
  theme: /* @__PURE__ */ se(r, "theme"),
5916
5922
  resolvedTheme: Fe,
5917
5923
  title: /* @__PURE__ */ se(r, "title"),
@@ -5950,7 +5956,7 @@ var Ph = Object.defineProperty, Mh = Object.defineProperties, Ih = Object.getOwn
5950
5956
  sessionItems: Re,
5951
5957
  selectedElementItems: h,
5952
5958
  handleToggle: mt,
5953
- handleClose: ut,
5959
+ handleClose: ct,
5954
5960
  handleToggleMinimize: _t,
5955
5961
  handleTogglePromptDock: dt,
5956
5962
  handleToggleReviewPanel: Ie,
@@ -5958,7 +5964,7 @@ var Ph = Object.defineProperty, Mh = Object.defineProperties, Ih = Object.getOwn
5958
5964
  handleToggleTheme: st,
5959
5965
  handleToggleDisplayMode: ee,
5960
5966
  handleToggleSplitPosition: Te,
5961
- handleEmptyAction: ct,
5967
+ handleEmptyAction: ut,
5962
5968
  handleCreateSession: He,
5963
5969
  handleSelectSession: Qe,
5964
5970
  handleDeleteSession: me,
@@ -5980,8 +5986,8 @@ var Ph = Object.defineProperty, Mh = Object.defineProperties, Ih = Object.getOwn
5980
5986
  emit: s,
5981
5987
  slots: l,
5982
5988
  notificationMessage: a,
5983
- notificationVisible: u,
5984
- notificationMode: c,
5989
+ notificationVisible: c,
5990
+ notificationMode: u,
5985
5991
  get notificationTimer() {
5986
5992
  return f;
5987
5993
  },
@@ -6020,8 +6026,8 @@ var Ph = Object.defineProperty, Mh = Object.defineProperties, Ih = Object.getOwn
6020
6026
  iframeSource: De,
6021
6027
  sessionListTitle: $e,
6022
6028
  resolvedTheme: Fe,
6023
- handleClose: ut,
6024
- handleEmptyAction: ct,
6029
+ handleClose: ct,
6030
+ handleEmptyAction: ut,
6025
6031
  handleToggle: mt,
6026
6032
  handleToggleSessionList: Ze,
6027
6033
  handleToggleTheme: st,
@@ -6103,7 +6109,7 @@ function Vh(e, t, n, i, o, r) {
6103
6109
  name: "default",
6104
6110
  fn: Se(() => [te(e.$slots, "button-icon")]),
6105
6111
  key: "0"
6106
- } : void 0]), 1536)) : ue("v-if", !0),
6112
+ } : void 0]), 1536)) : ce("v-if", !0),
6107
6113
  Oe(i.ChatPanel, {
6108
6114
  ref: "frameRef",
6109
6115
  mode: i.effectiveMode,
@@ -6184,7 +6190,7 @@ function Vh(e, t, n, i, o, r) {
6184
6190
  "onToggle"
6185
6191
  ]),
6186
6192
  Oe(i.SelectHint)
6187
- ], 64)) : ue("v-if", !0),
6193
+ ], 64)) : ce("v-if", !0),
6188
6194
  no(y("div", {
6189
6195
  class: "opencode-element-highlight",
6190
6196
  style: qt(i.highlightStyle)
@@ -6199,7 +6205,7 @@ function Vh(e, t, n, i, o, r) {
6199
6205
  }, "取消"), y("button", {
6200
6206
  class: "opencode-dialog-btn confirm",
6201
6207
  onClick: i.handleDialogConfirm
6202
- }, "确认")])])])) : ue("v-if", !0),
6208
+ }, "确认")])])])) : ce("v-if", !0),
6203
6209
  ($(), xt(ps, {
6204
6210
  to: "body",
6205
6211
  disabled: i.notificationMode === "widget"
@@ -6207,7 +6213,7 @@ function Vh(e, t, n, i, o, r) {
6207
6213
  key: 0,
6208
6214
  class: Pe(i.notificationMode === "page" ? "opencode-page-notification" : "opencode-notification"),
6209
6215
  role: "alert"
6210
- }, Ce(i.notificationMessage), 3)) : ue("v-if", !0)], 8, ["disabled"]))
6216
+ }, Ce(i.notificationMessage), 3)) : ce("v-if", !0)], 8, ["disabled"]))
6211
6217
  ], 2);
6212
6218
  }
6213
6219
  _l.render = Vh;
@@ -6243,29 +6249,29 @@ function Mr(e, t) {
6243
6249
  }
6244
6250
  var sn = Bt("SSE"), Uh = 10, qh = 1e3;
6245
6251
  function yl(e) {
6246
- const { endpoint: t, autoConnect: n = !0, enabled: i, maxRetries: o = Uh, retryDelay: r = qh, onConnected: s, onDisconnected: l, onError: a, onMessage: u } = e, c = /* @__PURE__ */ L(null), f = /* @__PURE__ */ L("idle"), p = /* @__PURE__ */ L(0);
6252
+ const { endpoint: t, autoConnect: n = !0, enabled: i, maxRetries: o = Uh, retryDelay: r = qh, onConnected: s, onDisconnected: l, onError: a, onMessage: c } = e, u = /* @__PURE__ */ L(null), f = /* @__PURE__ */ L("idle"), p = /* @__PURE__ */ L(0);
6247
6253
  function v(M) {
6248
6254
  try {
6249
6255
  const F = JSON.parse(M.data);
6250
- u?.(F);
6256
+ c?.(F);
6251
6257
  } catch {
6252
- u?.(M.data);
6258
+ c?.(M.data);
6253
6259
  }
6254
6260
  }
6255
6261
  function b() {
6256
- if (!(c.value || f.value === "connecting")) {
6262
+ if (!(u.value || f.value === "connecting")) {
6257
6263
  if (i?.value === !1) {
6258
6264
  f.value = "idle";
6259
6265
  return;
6260
6266
  }
6261
6267
  f.value = "connecting", sn.debug(`connecting to ${t}`);
6262
6268
  try {
6263
- c.value = new EventSource(t), c.value.onopen = () => {
6269
+ u.value = new EventSource(t), u.value.onopen = () => {
6264
6270
  f.value = "connected", p.value = 0, sn.debug(`connected: ${t}`), s?.();
6265
- }, c.value.onmessage = v, c.value.onerror = () => {
6266
- if (!c.value) return;
6271
+ }, u.value.onmessage = v, u.value.onerror = () => {
6272
+ if (!u.value) return;
6267
6273
  const M = f.value === "connected";
6268
- f.value = "error", c.value?.close(), c.value = null, sn.debug("error on", {
6274
+ f.value = "error", u.value?.close(), u.value = null, sn.debug("error on", {
6269
6275
  endpoint: t,
6270
6276
  wasConnected: M,
6271
6277
  retryCount: p.value,
@@ -6276,7 +6282,7 @@ function yl(e) {
6276
6282
  p.value++;
6277
6283
  const S = r * p.value;
6278
6284
  sn.debug(`will retry #${p.value} in ${S}ms -> ${t}`), setTimeout(() => {
6279
- i?.value !== !1 && !c.value && f.value !== "disconnected" && b();
6285
+ i?.value !== !1 && !u.value && f.value !== "disconnected" && b();
6280
6286
  }, S);
6281
6287
  } else M ? (sn.debug(`max retries reached, calling onDisconnected for ${t}`), l?.()) : sn.debug(`max retries reached, was never connected, NOT calling onDisconnected for ${t}`);
6282
6288
  };
@@ -6287,14 +6293,14 @@ function yl(e) {
6287
6293
  p.value++;
6288
6294
  const S = r * p.value;
6289
6295
  setTimeout(() => {
6290
- !c.value && f.value !== "disconnected" && b();
6296
+ !u.value && f.value !== "disconnected" && b();
6291
6297
  }, S);
6292
6298
  }
6293
6299
  }
6294
6300
  }
6295
6301
  }
6296
6302
  function g() {
6297
- c.value && (c.value.close(), c.value = null), f.value = "disconnected", p.value = 0, l?.();
6303
+ u.value && (u.value.close(), u.value = null), f.value = "disconnected", p.value = 0, l?.();
6298
6304
  }
6299
6305
  function _() {
6300
6306
  g(), b();
@@ -6305,7 +6311,7 @@ function yl(e) {
6305
6311
  return n && i?.value !== !1 && b(), Ke(() => {
6306
6312
  g();
6307
6313
  }), {
6308
- connection: c,
6314
+ connection: u,
6309
6315
  status: f,
6310
6316
  retryCount: p,
6311
6317
  isConnected: q(() => f.value === "connected"),
@@ -6318,7 +6324,7 @@ function yl(e) {
6318
6324
  }
6319
6325
  var Ir = Bt("ServerSSE");
6320
6326
  function Kh(e = {}) {
6321
- const { viteBaseUrl: t = "", onStatusSync: n, onTaskUpdate: i, onClearElements: o, onConnected: r, onDisconnected: s } = e, l = t ? `${t}${ur}` : ur, { status: a, isConnected: u, connect: c, disconnect: f } = yl({
6327
+ const { viteBaseUrl: t = "", onStatusSync: n, onTaskUpdate: i, onClearElements: o, onConnected: r, onDisconnected: s } = e, l = t ? `${t}${cr}` : cr, { status: a, isConnected: c, connect: u, disconnect: f } = yl({
6322
6328
  endpoint: l,
6323
6329
  autoConnect: !1,
6324
6330
  onDisconnected: () => {
@@ -6344,18 +6350,18 @@ function Kh(e = {}) {
6344
6350
  });
6345
6351
  return {
6346
6352
  status: a,
6347
- isConnected: u,
6348
- connect: c,
6353
+ isConnected: c,
6354
+ connect: u,
6349
6355
  disconnect: f
6350
6356
  };
6351
6357
  }
6352
6358
  function Gh(e) {
6353
- const { proxyBaseUrl: t, enabled: n, onEvent: i, onConnected: o, onError: r } = e, { status: s, isConnected: l, connect: a, disconnect: u } = yl({
6359
+ const { proxyBaseUrl: t, enabled: n, onEvent: i, onConnected: o, onError: r } = e, { status: s, isConnected: l, connect: a, disconnect: c } = yl({
6354
6360
  endpoint: `${t}/global/event`,
6355
6361
  autoConnect: !1,
6356
6362
  enabled: n,
6357
- onMessage: (c) => {
6358
- const f = c.payload;
6363
+ onMessage: (u) => {
6364
+ const f = u.payload;
6359
6365
  f && i?.(f);
6360
6366
  },
6361
6367
  onConnected: o,
@@ -6365,7 +6371,7 @@ function Gh(e) {
6365
6371
  status: s,
6366
6372
  isConnected: l,
6367
6373
  connect: a,
6368
- disconnect: u
6374
+ disconnect: c
6369
6375
  };
6370
6376
  }
6371
6377
  function Yh(e) {
@@ -6381,7 +6387,7 @@ function Yh(e) {
6381
6387
  hasPending: W?.hasPending || !1
6382
6388
  };
6383
6389
  }
6384
- function u(S) {
6390
+ function c(S) {
6385
6391
  const W = S.type, U = S.properties;
6386
6392
  switch (W) {
6387
6393
  case "session.updated": {
@@ -6436,10 +6442,10 @@ function Yh(e) {
6436
6442
  }
6437
6443
  }
6438
6444
  }
6439
- const c = Gh({
6445
+ const u = Gh({
6440
6446
  proxyBaseUrl: t,
6441
6447
  enabled: i,
6442
- onEvent: u,
6448
+ onEvent: c,
6443
6449
  onConnected: o
6444
6450
  }), f = q(() => {
6445
6451
  const S = n.value;
@@ -6464,15 +6470,15 @@ function Yh(e) {
6464
6470
  return S.reduce((W, U) => (W[U] = M(U), W), {});
6465
6471
  }
6466
6472
  return {
6467
- status: c.status,
6468
- isConnected: c.isConnected,
6473
+ status: u.status,
6474
+ isConnected: u.isConnected,
6469
6475
  sessionStates: s,
6470
6476
  currentThinking: f,
6471
6477
  currentSessionState: p,
6472
6478
  hasAnyThinking: v,
6473
6479
  thinkingSessionCount: b,
6474
- connect: c.connect,
6475
- disconnect: c.disconnect,
6480
+ connect: u.connect,
6481
+ disconnect: u.disconnect,
6476
6482
  clearSessionState: g,
6477
6483
  clearAllSessionStates: _,
6478
6484
  getSessionState: O,
@@ -6482,7 +6488,7 @@ function Yh(e) {
6482
6488
  }
6483
6489
  var Xh = Bt("OpenCode");
6484
6490
  function Jh(e) {
6485
- const { showNotification: t, viteBaseUrl: n = "" } = e, i = (b) => n ? `${n}${b}` : b, o = /* @__PURE__ */ L([]), r = /* @__PURE__ */ L(void 0), s = /* @__PURE__ */ L(null), l = /* @__PURE__ */ L(!1), a = q(() => s.value && o.value.find((b) => b.id === s.value)?.url || ""), u = async () => {
6491
+ const { showNotification: t, viteBaseUrl: n = "" } = e, i = (b) => n ? `${n}${b}` : b, o = /* @__PURE__ */ L([]), r = /* @__PURE__ */ L(void 0), s = /* @__PURE__ */ L(null), l = /* @__PURE__ */ L(!1), a = q(() => s.value && o.value.find((b) => b.id === s.value)?.url || ""), c = async () => {
6486
6492
  r.value = !0;
6487
6493
  try {
6488
6494
  const b = await (await fetch(i(Ki))).json();
@@ -6495,7 +6501,7 @@ function Jh(e) {
6495
6501
  } finally {
6496
6502
  r.value = !1;
6497
6503
  }
6498
- }, c = (b) => {
6504
+ }, u = (b) => {
6499
6505
  const g = o.value.findIndex((O) => O.id === b.id);
6500
6506
  if (g === -1) return;
6501
6507
  const _ = o.value[g];
@@ -6523,11 +6529,11 @@ function Jh(e) {
6523
6529
  currentSessionId: s,
6524
6530
  iframeSrc: a,
6525
6531
  iframeLoading: l,
6526
- loadSessions: u,
6532
+ loadSessions: c,
6527
6533
  createSession: f,
6528
6534
  deleteSession: async (b) => {
6529
6535
  try {
6530
- if (await fetch(i(`${Ki}?id=${b.id}`), { method: "DELETE" }), await u(), t("会话已删除"), s.value === b.id) if (o.value.length > 0) {
6536
+ if (await fetch(i(`${Ki}?id=${b.id}`), { method: "DELETE" }), await c(), t("会话已删除"), s.value === b.id) if (o.value.length > 0) {
6531
6537
  const g = o.value[0];
6532
6538
  s.value = g.id, l.value = !0;
6533
6539
  } else s.value = null;
@@ -6538,7 +6544,7 @@ function Jh(e) {
6538
6544
  selectSession: (b) => {
6539
6545
  s.value !== b.id && (s.value = b.id, l.value = !0);
6540
6546
  },
6541
- updateSessionInfo: c
6547
+ updateSessionInfo: u
6542
6548
  };
6543
6549
  }
6544
6550
  function Zh(e, t) {
@@ -6562,7 +6568,7 @@ function Zh(e, t) {
6562
6568
  };
6563
6569
  }
6564
6570
  function Qh(e = "") {
6565
- const t = e ? `${cr}_${e}` : cr, n = /* @__PURE__ */ L([]);
6571
+ const t = e ? `${ur}_${e}` : ur, n = /* @__PURE__ */ L([]);
6566
6572
  try {
6567
6573
  const s = sessionStorage.getItem(t);
6568
6574
  s && (n.value = JSON.parse(s));
@@ -6582,7 +6588,7 @@ function Qh(e = "") {
6582
6588
  };
6583
6589
  }
6584
6590
  function ep() {
6585
- const e = /* @__PURE__ */ L(""), t = /* @__PURE__ */ L("idle"), n = /* @__PURE__ */ L(!1), i = /* @__PURE__ */ L(void 0), o = /* @__PURE__ */ L(void 0), r = Bt("useServiceStatus"), s = q(() => e.value && ic[e.value] || "加载中...");
6591
+ const e = /* @__PURE__ */ L(""), t = /* @__PURE__ */ L("idle"), n = /* @__PURE__ */ L(!1), i = /* @__PURE__ */ L(void 0), o = /* @__PURE__ */ L(void 0), r = Bt("useServiceStatus"), s = q(() => e.value && iu[e.value] || "加载中...");
6586
6592
  return {
6587
6593
  currentTask: e,
6588
6594
  serviceStatus: t,
@@ -6590,9 +6596,9 @@ function ep() {
6590
6596
  chromeMcpErrorType: i,
6591
6597
  chromeMcpErrorMessage: o,
6592
6598
  loadingText: s,
6593
- updateStatusFromTask: (u, c, f) => {
6599
+ updateStatusFromTask: (c, u, f) => {
6594
6600
  const p = t.value;
6595
- e.value = u, u === "ready" ? (t.value = "ready", n.value = !1, i.value = void 0, o.value = void 0) : u === "chrome_mcp_failed" ? (t.value = "partial", n.value = !0, i.value = c, o.value = f) : u === "session_creation_failed" || u === "opencode_not_installed" || u === "web_start_timeout" ? t.value = "failed" : t.value === "idle" && u && (t.value = "starting"), r.debug(`updateStatusFromTask: task="${u}" status: ${p} -> ${t.value}`);
6601
+ e.value = c, c === "ready" ? (t.value = "ready", n.value = !1, i.value = void 0, o.value = void 0) : c === "chrome_mcp_failed" ? (t.value = "partial", n.value = !0, i.value = u, o.value = f) : c === "session_creation_failed" || c === "opencode_not_installed" || c === "web_start_timeout" ? t.value = "failed" : t.value === "idle" && c && (t.value = "starting"), r.debug(`updateStatusFromTask: task="${c}" status: ${p} -> ${t.value}`);
6596
6602
  },
6597
6603
  setStarting: () => {
6598
6604
  t.value = "starting";
@@ -6619,27 +6625,27 @@ function tp(e, t, n = "") {
6619
6625
  }, a = () => {
6620
6626
  requestAnimationFrame(() => l());
6621
6627
  };
6622
- let u = null;
6623
- const c = history.pushState, f = history.replaceState;
6628
+ let c = null;
6629
+ const u = history.pushState, f = history.replaceState;
6624
6630
  return Xe(() => {
6625
6631
  history.pushState = function(...p) {
6626
- c.apply(this, p), a();
6632
+ u.apply(this, p), a();
6627
6633
  }, history.replaceState = function(...p) {
6628
6634
  f.apply(this, p), a();
6629
- }, window.addEventListener("popstate", a), window.addEventListener("hashchange", a), u = new MutationObserver(() => {
6635
+ }, window.addEventListener("popstate", a), window.addEventListener("hashchange", a), c = new MutationObserver(() => {
6630
6636
  document.title !== o && l();
6631
- }), document.head && u.observe(document.head, {
6637
+ }), document.head && c.observe(document.head, {
6632
6638
  childList: !0,
6633
6639
  subtree: !0
6634
6640
  });
6635
6641
  }), Ke(() => {
6636
- history.pushState = c, history.replaceState = f, window.removeEventListener("popstate", a), window.removeEventListener("hashchange", a), u && u.disconnect();
6642
+ history.pushState = u, history.replaceState = f, window.removeEventListener("popstate", a), window.removeEventListener("hashchange", a), c && c.disconnect();
6637
6643
  }), { updateContext: l };
6638
6644
  }
6639
6645
  function np(e, t, n = "", i = "") {
6640
6646
  let o = "", r = "", s, l;
6641
- const a = /* @__PURE__ */ L(""), u = /* @__PURE__ */ L(""), c = Bt("ExtCtx"), f = (g) => n ? `${n}${g}` : g, p = (g, _) => {
6642
- c.debug(`sendContext: tabId=${s} tabIndex=${l} url=${g}`), fetch(f(Ws), {
6647
+ const a = /* @__PURE__ */ L(""), c = /* @__PURE__ */ L(""), u = Bt("ExtCtx"), f = (g) => n ? `${n}${g}` : g, p = (g, _) => {
6648
+ u.debug(`sendContext: tabId=${s} tabIndex=${l} url=${g}`), fetch(f(Ws), {
6643
6649
  method: "POST",
6644
6650
  headers: { "Content-Type": "application/json" },
6645
6651
  body: JSON.stringify({
@@ -6653,7 +6659,7 @@ function np(e, t, n = "", i = "") {
6653
6659
  });
6654
6660
  }, v = (g = !1) => {
6655
6661
  if (e.value === "idle") return;
6656
- const _ = a.value, O = u.value;
6662
+ const _ = a.value, O = c.value;
6657
6663
  !_ && !O || (g || _ !== o || O !== r) && (o = _, r = O, p(_, O));
6658
6664
  }, b = (g) => {
6659
6665
  if (!(g.serviceInstanceId && g.serviceInstanceId !== i)) {
@@ -6662,8 +6668,8 @@ function np(e, t, n = "", i = "") {
6662
6668
  return;
6663
6669
  }
6664
6670
  if (g.type === Nt.PAGE_CONTEXT && g.ctx) {
6665
- if (c.debug(`收到 PAGE_CONTEXT: msg.tabId=${g.tabId} activeTabId=${s} url=${g.ctx.url}`), s === void 0 && g.tabId !== void 0 && (s = g.tabId, c.debug(`activeTabId 从消息初始化: ${s}`)), s !== void 0 && g.tabId !== void 0 && g.tabId !== s) return;
6666
- a.value = g.ctx.url, u.value = g.ctx.title, v(!0);
6671
+ if (u.debug(`收到 PAGE_CONTEXT: msg.tabId=${g.tabId} activeTabId=${s} url=${g.ctx.url}`), s === void 0 && g.tabId !== void 0 && (s = g.tabId, u.debug(`activeTabId 从消息初始化: ${s}`)), s !== void 0 && g.tabId !== void 0 && g.tabId !== s) return;
6672
+ a.value = g.ctx.url, c.value = g.ctx.title, v(!0);
6667
6673
  }
6668
6674
  }
6669
6675
  };
@@ -6674,27 +6680,27 @@ function np(e, t, n = "", i = "") {
6674
6680
  active: !0,
6675
6681
  currentWindow: !0
6676
6682
  });
6677
- g[0]?.id !== void 0 ? (s = g[0].id, l = g[0].index, c.debug(`onMounted activeTabId=${s} tabIndex=${l} url=${g[0].url}`), chrome.tabs.sendMessage(g[0].id, { type: Nt.REQUEST_PAGE_CONTEXT }).catch(() => {
6678
- })) : c.debug(`onMounted 未查询到活跃 Tab, tabs=${JSON.stringify(g)}`);
6683
+ g[0]?.id !== void 0 ? (s = g[0].id, l = g[0].index, u.debug(`onMounted activeTabId=${s} tabIndex=${l} url=${g[0].url}`), chrome.tabs.sendMessage(g[0].id, { type: Nt.REQUEST_PAGE_CONTEXT }).catch(() => {
6684
+ })) : u.debug(`onMounted 未查询到活跃 Tab, tabs=${JSON.stringify(g)}`);
6679
6685
  } catch (g) {
6680
- c.debug(`onMounted 查询 Tab 失败: ${g}`);
6686
+ u.debug(`onMounted 查询 Tab 失败: ${g}`);
6681
6687
  }
6682
6688
  }), Ke(() => {
6683
6689
  chrome.runtime.onMessage.removeListener(b);
6684
6690
  }), { updateContext: v };
6685
6691
  }
6686
6692
  function ip(e) {
6687
- const { selectMode: t, serviceInstanceId: n, onElementSelected: i, onThemeChange: o } = e, r = (u) => {
6688
- if (!(u.serviceInstanceId && u.serviceInstanceId !== n))
6689
- switch (u.type) {
6693
+ const { selectMode: t, serviceInstanceId: n, onElementSelected: i, onThemeChange: o } = e, r = (c) => {
6694
+ if (!(c.serviceInstanceId && c.serviceInstanceId !== n))
6695
+ switch (c.type) {
6690
6696
  case be.ELEMENT_SELECTED:
6691
6697
  i({
6692
- filePath: u.filePath ?? null,
6693
- line: u.line ?? null,
6694
- column: u.column ?? null,
6695
- innerText: u.innerText ?? "",
6696
- description: u.description
6697
- }, u.pageUrl, u.pageTitle);
6698
+ filePath: c.filePath ?? null,
6699
+ line: c.line ?? null,
6700
+ column: c.column ?? null,
6701
+ innerText: c.innerText ?? "",
6702
+ description: c.description
6703
+ }, c.pageUrl, c.pageTitle);
6698
6704
  break;
6699
6705
  case be.SELECTION_CANCELLED:
6700
6706
  t.value = !1;
@@ -6706,7 +6712,7 @@ function ip(e) {
6706
6712
  t.value = !1;
6707
6713
  break;
6708
6714
  case Nt.THEME_CHANGE:
6709
- u.theme && o && o(u.theme);
6715
+ c.theme && o && o(c.theme);
6710
6716
  break;
6711
6717
  }
6712
6718
  };
@@ -6715,23 +6721,23 @@ function ip(e) {
6715
6721
  }), Ke(() => {
6716
6722
  chrome.runtime.onMessage.removeListener(r);
6717
6723
  });
6718
- async function s(u) {
6724
+ async function s(c) {
6719
6725
  try {
6720
- const c = await chrome.tabs.query({
6726
+ const u = await chrome.tabs.query({
6721
6727
  active: !0,
6722
6728
  currentWindow: !0
6723
6729
  });
6724
- c[0]?.id && await chrome.tabs.sendMessage(c[0].id, u);
6730
+ u[0]?.id && await chrome.tabs.sendMessage(u[0].id, c);
6725
6731
  } catch {
6726
6732
  }
6727
6733
  }
6728
- function l(u) {
6729
- s({ type: u ? Nt.SELECTION_START : Nt.SELECTION_STOP });
6734
+ function l(c) {
6735
+ s({ type: c ? Nt.SELECTION_START : Nt.SELECTION_STOP });
6730
6736
  }
6731
- function a(u) {
6737
+ function a(c) {
6732
6738
  chrome.runtime.sendMessage({
6733
6739
  type: Nt.THEME_CHANGE,
6734
- theme: u
6740
+ theme: c
6735
6741
  }).catch(() => {
6736
6742
  });
6737
6743
  }
@@ -6774,7 +6780,7 @@ var rp = { class: "opencode-custom-loading" }, sp = { class: "opencode-loading-t
6774
6780
  setup(e) {
6775
6781
  return (t, n) => ($(), B("div", rp, [n[0] || (n[0] = y("div", { class: "opencode-loading-spinner" }, null, -1)), y("div", sp, Ce(e.loadingText), 1)]));
6776
6782
  }
6777
- }), ap = lp, up = { class: "opencode-chrome-warmup-failed" }, cp = { class: "opencode-chrome-warmup-failed-text" }, dp = {
6783
+ }), ap = lp, cp = { class: "opencode-chrome-warmup-failed" }, up = { class: "opencode-chrome-warmup-failed-text" }, dp = {
6778
6784
  key: 0,
6779
6785
  style: {
6780
6786
  "margin-top": "12px",
@@ -6816,20 +6822,20 @@ var rp = { class: "opencode-custom-loading" }, sp = { class: "opencode-loading-t
6816
6822
  if (!o.value || !n.models) return n.models?.[0] || null;
6817
6823
  const [p, v] = o.value.split(":");
6818
6824
  return n.models.find((b) => b.providerID === p && b.modelID === v) || null;
6819
- }), u = (p) => ({
6825
+ }), c = (p) => ({
6820
6826
  anthropic: "Anthropic",
6821
6827
  openai: "OpenAI",
6822
6828
  google: "Google",
6823
6829
  xai: "xAI",
6824
6830
  opencode: "OpenCode",
6825
6831
  opencode_go: "OpenCode Go"
6826
- })[p] || p, c = (p) => `${p.providerID}:${p.modelID}`, f = () => {
6832
+ })[p] || p, u = (p) => `${p.providerID}:${p.modelID}`, f = () => {
6827
6833
  r.value && s.value && a.value ? i("retry", {
6828
6834
  providerID: a.value.providerID,
6829
6835
  modelID: a.value.modelID
6830
6836
  }) : i("retry");
6831
6837
  };
6832
- return (p, v) => ($(), B("div", up, [
6838
+ return (p, v) => ($(), B("div", cp, [
6833
6839
  v[11] || (v[11] = y("div", { class: "opencode-chrome-warmup-failed-icon" }, [y("svg", {
6834
6840
  xmlns: "http://www.w3.org/2000/svg",
6835
6841
  fill: "none",
@@ -6848,30 +6854,30 @@ var rp = { class: "opencode-custom-loading" }, sp = { class: "opencode-loading-t
6848
6854
  y("div", null, "勾选 'Allow remote debugging for this browser instance' 选项"),
6849
6855
  y("div", null, "重新启动浏览器"),
6850
6856
  y("div", null, "完成后点击下方按钮重试")
6851
- ])], -1))], 64)) : e.errorType === _e(Zt).AI_TIMEOUT ? ($(), B(ve, { key: 1 }, [v[6] || (v[6] = y("div", { class: "opencode-chrome-warmup-failed-title" }, "AI 响应超时", -1)), y("div", cp, [
6857
+ ])], -1))], 64)) : e.errorType === _e(Zt).AI_TIMEOUT ? ($(), B(ve, { key: 1 }, [v[6] || (v[6] = y("div", { class: "opencode-chrome-warmup-failed-title" }, "AI 响应超时", -1)), y("div", up, [
6852
6858
  v[4] || (v[4] = y("p", null, "AI 模型响应超时,可能的原因:", -1)),
6853
6859
  v[5] || (v[5] = y("div", { class: "opencode-chrome-warmup-steps" }, [
6854
6860
  y("div", null, "当前选择的 AI 模型服务不可用或响应缓慢"),
6855
6861
  y("div", null, "网络连接问题"),
6856
6862
  y("div", null, "模型配置不正确")
6857
6863
  ], -1)),
6858
- s.value ? ($(), B("p", dp, "可选择其他模型重试:")) : ue("", !0)
6864
+ s.value ? ($(), B("p", dp, "可选择其他模型重试:")) : ce("", !0)
6859
6865
  ])], 64)) : e.errorType === _e(Zt).AI_RESPONSE_ERROR ? ($(), B(ve, { key: 2 }, [v[8] || (v[8] = y("div", { class: "opencode-chrome-warmup-failed-title" }, "AI 响应错误", -1)), y("div", fp, [
6860
6866
  v[7] || (v[7] = y("p", null, "AI 模型返回了意外的响应:", -1)),
6861
6867
  y("div", hp, Ce(e.errorMessage || "未知错误"), 1),
6862
- s.value ? ($(), B("p", pp, "可选择其他模型重试:")) : ue("", !0)
6863
- ])], 64)) : ($(), B(ve, { key: 3 }, [v[9] || (v[9] = y("div", { class: "opencode-chrome-warmup-failed-title" }, "Chrome DevTools MCP 连接失败", -1)), y("div", vp, [e.errorMessage ? ($(), B("p", gp, Ce(e.errorMessage), 1)) : ($(), B("p", mp, "连接失败,请重试")), s.value ? ($(), B("p", _p, "可选择模型重试:")) : ue("", !0)])], 64)),
6868
+ s.value ? ($(), B("p", pp, "可选择其他模型重试:")) : ce("", !0)
6869
+ ])], 64)) : ($(), B(ve, { key: 3 }, [v[9] || (v[9] = y("div", { class: "opencode-chrome-warmup-failed-title" }, "Chrome DevTools MCP 连接失败", -1)), y("div", vp, [e.errorMessage ? ($(), B("p", gp, Ce(e.errorMessage), 1)) : ($(), B("p", mp, "连接失败,请重试")), s.value ? ($(), B("p", _p, "可选择模型重试:")) : ce("", !0)])], 64)),
6864
6870
  r.value && s.value ? ($(), B("div", yp, [y("div", bp, [no(y("select", {
6865
6871
  "onUpdate:modelValue": v[0] || (v[0] = (b) => o.value = b),
6866
6872
  class: "native-select",
6867
6873
  disabled: e.retrying
6868
6874
  }, [($(!0), B(ve, null, Bn(l.value, (b, g) => ($(), B("optgroup", {
6869
6875
  key: g,
6870
- label: u(g)
6876
+ label: c(g)
6871
6877
  }, [($(!0), B(ve, null, Bn(b, (_) => ($(), B("option", {
6872
- key: c(_),
6873
- value: c(_)
6874
- }, Ce(_.name || _.modelID), 9, wp))), 128))], 8, Ep))), 128))], 8, Sp), [[Iu, o.value]]), v[10] || (v[10] = y("span", { class: "select-arrow" }, [y("svg", {
6878
+ key: u(_),
6879
+ value: u(_)
6880
+ }, Ce(_.name || _.modelID), 9, wp))), 128))], 8, Ep))), 128))], 8, Sp), [[Ic, o.value]]), v[10] || (v[10] = y("span", { class: "select-arrow" }, [y("svg", {
6875
6881
  viewBox: "0 0 24 24",
6876
6882
  width: "16",
6877
6883
  height: "16",
@@ -6901,7 +6907,7 @@ var rp = { class: "opencode-custom-loading" }, sp = { class: "opencode-loading-t
6901
6907
  __name: "App",
6902
6908
  props: { config: {} },
6903
6909
  setup(e) {
6904
- const t = e, n = /* @__PURE__ */ L(!1), i = /* @__PURE__ */ L(!1), o = /* @__PURE__ */ L(!0), r = /* @__PURE__ */ L(!1), s = /* @__PURE__ */ L(null), l = /* @__PURE__ */ L(!1), a = /* @__PURE__ */ L([]), { theme: u = "auto", open: c = !1, hotkey: f = "ctrl+k", proxyPort: p = 4098, proxyHost: v = "localhost", displayMode: b = "bubble", splitMode: g, vitePort: _ = "", serviceInstanceId: O = "" } = t.config, M = Bt("OpenCode"), F = Bt("App"), S = u, W = /* @__PURE__ */ L(g?.width ?? 500), U = b === "extension", k = b === "extension-selector", H = q(() => _ ? `http://127.0.0.1:${_}` : ""), j = (P) => H.value ? `${H.value}${P}` : P, Y = {
6910
+ const t = e, n = /* @__PURE__ */ L(!1), i = /* @__PURE__ */ L(!1), o = /* @__PURE__ */ L(!0), r = /* @__PURE__ */ L(!1), s = /* @__PURE__ */ L(null), l = /* @__PURE__ */ L(!1), a = /* @__PURE__ */ L([]), { theme: c = "auto", open: u = !1, hotkey: f = "ctrl+k", proxyPort: p = 4098, proxyHost: v = "localhost", displayMode: b = "bubble", splitMode: g, vitePort: _ = "", serviceInstanceId: O = "" } = t.config, M = Bt("OpenCode"), F = Bt("App"), S = c, W = /* @__PURE__ */ L(g?.width ?? 500), U = b === "extension", k = b === "extension-selector", H = q(() => _ ? `http://127.0.0.1:${_}` : ""), j = (P) => H.value ? `${H.value}${P}` : P, Y = {
6905
6911
  onSelectModeChange: null,
6906
6912
  broadcastTheme: null,
6907
6913
  notifySelectionResult: null,
@@ -6911,7 +6917,7 @@ var rp = { class: "opencode-custom-loading" }, sp = { class: "opencode-loading-t
6911
6917
  ...ie,
6912
6918
  mode: U ? "widget" : ie?.mode
6913
6919
  });
6914
- }, { serviceStatus: I, currentTask: X, chromeMcpFailed: Q, chromeMcpErrorType: G, chromeMcpErrorMessage: ee, loadingText: Le, updateStatusFromTask: Je, setStarting: De } = ep(), { selectedElements: $e, removeElement: Fe, clearElements: ut } = Qh(O), { theme: ct, sendThemeToIframe: mt } = Zh(S, s), { sessions: Ze, loadingSessionList: st, currentSessionId: Re, iframeSrc: He, iframeLoading: me, loadSessions: Qe, createSession: lt, deleteSession: d, selectSession: h, updateSessionInfo: m } = Jh({
6920
+ }, { serviceStatus: I, currentTask: X, chromeMcpFailed: Q, chromeMcpErrorType: G, chromeMcpErrorMessage: ee, loadingText: Le, updateStatusFromTask: Je, setStarting: De } = ep(), { selectedElements: $e, removeElement: Fe, clearElements: ct } = Qh(O), { theme: ut, sendThemeToIframe: mt } = Zh(S, s), { sessions: Ze, loadingSessionList: st, currentSessionId: Re, iframeSrc: He, iframeLoading: me, loadSessions: Qe, createSession: lt, deleteSession: d, selectSession: h, updateSessionInfo: m } = Jh({
6915
6921
  showNotification: fe,
6916
6922
  viteBaseUrl: H.value
6917
6923
  }), { updateContext: T } = U ? np(I, $e, H.value, O) : tp(I, $e, H.value), E = Kh({
@@ -6926,7 +6932,7 @@ var rp = { class: "opencode-custom-loading" }, sp = { class: "opencode-loading-t
6926
6932
  onTaskUpdate: (P) => {
6927
6933
  F.debug(`SSE TASK_UPDATE: ${JSON.stringify(P)} currentStatus: ${I.value}`), Je(P.task, P.errorType, P.errorMessage);
6928
6934
  },
6929
- onClearElements: () => ut(),
6935
+ onClearElements: () => ct(),
6930
6936
  onConnected: () => T(!0)
6931
6937
  });
6932
6938
  let w = !1, N = !1;
@@ -6976,7 +6982,7 @@ var rp = { class: "opencode-custom-loading" }, sp = { class: "opencode-loading-t
6976
6982
  }, re = async () => {
6977
6983
  if (I.value !== "idle") return !0;
6978
6984
  try {
6979
- const P = await (await fetch(j(Uu))).json();
6985
+ const P = await (await fetch(j(Uc))).json();
6980
6986
  if (I.value !== "idle")
6981
6987
  return F.debug(`[ensureServicesStarted] fetch 完成但 serviceStatus 已变为 ${I.value},跳过启动`), !0;
6982
6988
  if (P.success)
@@ -7008,7 +7014,7 @@ var rp = { class: "opencode-custom-loading" }, sp = { class: "opencode-loading-t
7008
7014
  i.value && Y.onSelectModeChange?.(!1);
7009
7015
  };
7010
7016
  Xe(() => {
7011
- F.debug(`onMounted, sid=${O}, serviceStatus=${I.value}, config: ${JSON.stringify(t.config)}`), I.value === "ready" ? (F.debug("onMounted: ready 分支,直接加载会话"), Qe(), E.connect(), A.connect(), T(!0)) : I.value === "idle" && (U ? (F.debug("onMounted: idle 分支(扩展模式),先 setStarting 显示蒙层"), De(), E.connect()) : (F.debug("onMounted: idle 分支(非扩展模式),直接加载会话"), Qe(), E.connect())), c && I.value === "ready" && setTimeout(() => {
7017
+ F.debug(`onMounted, sid=${O}, serviceStatus=${I.value}, config: ${JSON.stringify(t.config)}`), I.value === "ready" ? (F.debug("onMounted: ready 分支,直接加载会话"), Qe(), E.connect(), A.connect(), T(!0)) : I.value === "idle" && (U ? (F.debug("onMounted: idle 分支(扩展模式),先 setStarting 显示蒙层"), De(), E.connect()) : (F.debug("onMounted: idle 分支(非扩展模式),直接加载会话"), Qe(), E.connect())), u && I.value === "ready" && setTimeout(() => {
7012
7018
  n.value = !0;
7013
7019
  }, 1e3), window.addEventListener("message", he), document.addEventListener("visibilitychange", ae), window.addEventListener("pagehide", ae);
7014
7020
  }), Ke(() => {
@@ -7036,7 +7042,7 @@ var rp = { class: "opencode-custom-loading" }, sp = { class: "opencode-loading-t
7036
7042
  };
7037
7043
  s.value?.sendMessageToIframe(be.INSERT_FILE_PART, { element: Gn }), fe("节点已添加到对话框", { mode: "page" });
7038
7044
  }, _t = () => {
7039
- ut(), T(!0), fe("已清除所有选中元素");
7045
+ ct(), T(!0), fe("已清除所有选中元素");
7040
7046
  }, dt = (P) => {
7041
7047
  if (i.value === P) return;
7042
7048
  i.value = P, U && Y.onSelectModeChange?.(P), s.value?.sendMessageToIframe(be.SELECT_MODE_CHANGE, { selectMode: P });
@@ -7049,7 +7055,7 @@ var rp = { class: "opencode-custom-loading" }, sp = { class: "opencode-loading-t
7049
7055
  serviceInstanceId: O,
7050
7056
  onElementSelected: Te,
7051
7057
  onThemeChange: (ie) => {
7052
- ct.value = ie, mt();
7058
+ ut.value = ie, mt();
7053
7059
  }
7054
7060
  });
7055
7061
  Y.onSelectModeChange = P.onSelectModeChange, Y.broadcastTheme = P.broadcastTheme;
@@ -7061,7 +7067,7 @@ var rp = { class: "opencode-custom-loading" }, sp = { class: "opencode-loading-t
7061
7067
  const Ie = (P) => {
7062
7068
  o.value = P;
7063
7069
  }, je = (P) => {
7064
- ct.value = P, U && Y.broadcastTheme?.(P);
7070
+ ut.value = P, U && Y.broadcastTheme?.(P);
7065
7071
  }, et = (P) => {
7066
7072
  W.value = P;
7067
7073
  }, Ge = ({ index: P }) => {
@@ -7072,7 +7078,7 @@ var rp = { class: "opencode-custom-loading" }, sp = { class: "opencode-loading-t
7072
7078
  return (P, ie) => ($(), xt(_e(Wh), {
7073
7079
  ref_key: "widgetRef",
7074
7080
  ref: s,
7075
- theme: _e(ct),
7081
+ theme: _e(ut),
7076
7082
  open: n.value,
7077
7083
  "select-mode": i.value,
7078
7084
  "session-list-collapsed": o.value,
@@ -7118,7 +7124,7 @@ var rp = { class: "opencode-custom-loading" }, sp = { class: "opencode-loading-t
7118
7124
  "error-type",
7119
7125
  "error-message",
7120
7126
  "models"
7121
- ])) : ue("", !0)]),
7127
+ ])) : ce("", !0)]),
7122
7128
  _: 1
7123
7129
  }, 8, [
7124
7130
  "theme",
@@ -7175,7 +7181,7 @@ if (!window[Ji]) {
7175
7181
  }
7176
7182
  const t = document.createElement("div");
7177
7183
  document.body.appendChild(t);
7178
- const n = Lu(Ap, { config: Ht });
7184
+ const n = Lc(Ap, { config: Ht });
7179
7185
  n.mount(t), window.__OPENCODE_CLEANUP__ = () => {
7180
7186
  e && clearInterval(e), n.unmount(), t.remove(), window[Ji] = !1;
7181
7187
  };