vite-plugin-aipanel 1.2.6 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/client.js CHANGED
@@ -278,10 +278,10 @@ function ho(e) {
278
278
  t && (t.nextDep = i, e.prevDep = void 0), i && (i.prevDep = t, e.nextDep = void 0);
279
279
  }
280
280
  var vt = !0, Mr = [];
281
- function kt() {
281
+ function Rt() {
282
282
  Mr.push(vt), vt = !1;
283
283
  }
284
- function Rt() {
284
+ function kt() {
285
285
  const e = Mr.pop();
286
286
  vt = e === void 0 ? !0 : e;
287
287
  }
@@ -518,9 +518,9 @@ function Oi(e, t, i) {
518
518
  return (s === -1 || s === !1) && /* @__PURE__ */ yi(i[0]) ? (i[0] = /* @__PURE__ */ re(i[0]), n[t](...i)) : s;
519
519
  }
520
520
  function En(e, t, i = []) {
521
- kt(), rs();
521
+ Rt(), rs();
522
522
  const n = (/* @__PURE__ */ re(e))[t].apply(e, i);
523
- return ls(), Rt(), n;
523
+ return ls(), kt(), n;
524
524
  }
525
525
  var _o = /* @__PURE__ */ fi("__proto__,__v_isRef,__isVue"), Pr = new Set(/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(lt));
526
526
  function yo(e) {
@@ -539,16 +539,16 @@ var Ar = class {
539
539
  if (t === "__v_isReadonly") return n;
540
540
  if (t === "__v_isShallow") return s;
541
541
  if (t === "__v_raw")
542
- return i === (n ? s ? Po : Lr : s ? Rr : kr).get(e) || Object.getPrototypeOf(e) === Object.getPrototypeOf(i) ? e : void 0;
542
+ return i === (n ? s ? Po : Lr : s ? kr : Rr).get(e) || Object.getPrototypeOf(e) === Object.getPrototypeOf(i) ? e : void 0;
543
543
  const r = X(e);
544
544
  if (!n) {
545
545
  let o;
546
546
  if (r && (o = go[t])) return o;
547
547
  if (t === "hasOwnProperty") return yo;
548
548
  }
549
- const l = Reflect.get(e, t, /* @__PURE__ */ Re(e) ? e : i);
549
+ const l = Reflect.get(e, t, /* @__PURE__ */ ke(e) ? e : i);
550
550
  if ((lt(t) ? Pr.has(t) : _o(t)) || (n || He(e, "get", t), s)) return l;
551
- if (/* @__PURE__ */ Re(l)) {
551
+ if (/* @__PURE__ */ ke(l)) {
552
552
  const o = r && vi(t) ? l : l.value;
553
553
  return n && he(o) ? /* @__PURE__ */ qi(o) : o;
554
554
  }
@@ -563,10 +563,10 @@ var Ar = class {
563
563
  const r = X(e) && vi(t);
564
564
  if (!this._isShallow) {
565
565
  const a = /* @__PURE__ */ Lt(s);
566
- if (!/* @__PURE__ */ st(i) && !/* @__PURE__ */ Lt(i) && (s = /* @__PURE__ */ re(s), i = /* @__PURE__ */ re(i)), !r && /* @__PURE__ */ Re(s) && !/* @__PURE__ */ Re(i))
566
+ if (!/* @__PURE__ */ st(i) && !/* @__PURE__ */ Lt(i) && (s = /* @__PURE__ */ re(s), i = /* @__PURE__ */ re(i)), !r && /* @__PURE__ */ ke(s) && !/* @__PURE__ */ ke(i))
567
567
  return a || (s.value = i), !0;
568
568
  }
569
- const l = r ? Number(t) < e.length : ce(e, t), o = Reflect.set(e, t, i, /* @__PURE__ */ Re(e) ? e : n);
569
+ const l = r ? Number(t) < e.length : ce(e, t), o = Reflect.set(e, t, i, /* @__PURE__ */ ke(e) ? e : n);
570
570
  return e === /* @__PURE__ */ re(n) && o && (l ? Et(i, s) && Pt(e, "set", t, i, s) : Pt(e, "add", t, i)), o;
571
571
  }
572
572
  deleteProperty(e, t) {
@@ -676,7 +676,7 @@ function us(e, t) {
676
676
  const i = Co(e, t);
677
677
  return (n, s, r) => s === "__v_isReactive" ? !e : s === "__v_isReadonly" ? e : s === "__v_raw" ? n : Reflect.get(ce(i, s) && s in n ? i : n, s, r);
678
678
  }
679
- var xo = { get: /* @__PURE__ */ us(!1, !1) }, Mo = { get: /* @__PURE__ */ us(!1, !0) }, Io = { get: /* @__PURE__ */ us(!0, !1) }, kr = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap();
679
+ var xo = { get: /* @__PURE__ */ us(!1, !1) }, Mo = { get: /* @__PURE__ */ us(!1, !0) }, Io = { get: /* @__PURE__ */ us(!0, !1) }, Rr = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), Po = /* @__PURE__ */ new WeakMap();
680
680
  function Ao(e) {
681
681
  switch (e) {
682
682
  case "Object":
@@ -693,11 +693,11 @@ function Ao(e) {
693
693
  }
694
694
  // @__NO_SIDE_EFFECTS__
695
695
  function Nr(e) {
696
- return /* @__PURE__ */ Lt(e) ? e : cs(e, !1, So, xo, kr);
696
+ return /* @__PURE__ */ Lt(e) ? e : cs(e, !1, So, xo, Rr);
697
697
  }
698
698
  // @__NO_SIDE_EFFECTS__
699
699
  function Oo(e) {
700
- return cs(e, !1, wo, Mo, Rr);
700
+ return cs(e, !1, wo, Mo, kr);
701
701
  }
702
702
  // @__NO_SIDE_EFFECTS__
703
703
  function qi(e) {
@@ -733,20 +733,20 @@ function re(e) {
733
733
  const t = e && e.__v_raw;
734
734
  return t ? /* @__PURE__ */ re(t) : e;
735
735
  }
736
- function ko(e) {
736
+ function Ro(e) {
737
737
  return !ce(e, "__v_skip") && Object.isExtensible(e) && gr(e, "__v_skip", !0), e;
738
738
  }
739
739
  var gt = (e) => he(e) ? /* @__PURE__ */ Nr(e) : e, dn = (e) => he(e) ? /* @__PURE__ */ qi(e) : e;
740
740
  // @__NO_SIDE_EFFECTS__
741
- function Re(e) {
741
+ function ke(e) {
742
742
  return e ? e.__v_isRef === !0 : !1;
743
743
  }
744
744
  // @__NO_SIDE_EFFECTS__
745
- function R(e) {
746
- return Ro(e, !1);
745
+ function k(e) {
746
+ return ko(e, !1);
747
747
  }
748
- function Ro(e, t) {
749
- return /* @__PURE__ */ Re(e) ? e : new Lo(e, t);
748
+ function ko(e, t) {
749
+ return /* @__PURE__ */ ke(e) ? e : new Lo(e, t);
750
750
  }
751
751
  var Lo = class {
752
752
  constructor(e, t) {
@@ -761,13 +761,13 @@ var Lo = class {
761
761
  }
762
762
  };
763
763
  function _e(e) {
764
- return /* @__PURE__ */ Re(e) ? e.value : e;
764
+ return /* @__PURE__ */ ke(e) ? e.value : e;
765
765
  }
766
766
  var No = {
767
767
  get: (e, t, i) => t === "__v_raw" ? e : _e(Reflect.get(e, t, i)),
768
768
  set: (e, t, i, n) => {
769
769
  const s = e[t];
770
- return /* @__PURE__ */ Re(s) && !/* @__PURE__ */ Re(i) ? (s.value = i, !0) : Reflect.set(e, t, i, n);
770
+ return /* @__PURE__ */ ke(s) && !/* @__PURE__ */ ke(i) ? (s.value = i, !0) : Reflect.set(e, t, i, n);
771
771
  }
772
772
  };
773
773
  function Dr(e) {
@@ -787,9 +787,9 @@ var Do = class {
787
787
  return this._shallow && (e = _e(e)), this._value = e === void 0 ? this._defaultValue : e;
788
788
  }
789
789
  set value(e) {
790
- if (this._shallow && /* @__PURE__ */ Re(this._raw[this._key])) {
790
+ if (this._shallow && /* @__PURE__ */ ke(this._raw[this._key])) {
791
791
  const t = this._object[this._key];
792
- if (/* @__PURE__ */ Re(t)) {
792
+ if (/* @__PURE__ */ ke(t)) {
793
793
  t.value = e;
794
794
  return;
795
795
  }
@@ -809,7 +809,7 @@ var Do = class {
809
809
  };
810
810
  // @__NO_SIDE_EFFECTS__
811
811
  function se(e, t, i) {
812
- return /* @__PURE__ */ Re(e) ? e : ue(e) ? new Fo(e) : he(e) && arguments.length > 1 ? $o(e, t, i) : /* @__PURE__ */ R(e);
812
+ return /* @__PURE__ */ ke(e) ? e : ue(e) ? new Fo(e) : he(e) && arguments.length > 1 ? $o(e, t, i) : /* @__PURE__ */ k(e);
813
813
  }
814
814
  function $o(e, t, i) {
815
815
  return new Do(e, t, i);
@@ -843,76 +843,76 @@ function Ho(e, t = !1, i = Kt) {
843
843
  }
844
844
  }
845
845
  function Vo(e, t, i = ve) {
846
- const { immediate: n, deep: s, once: r, scheduler: l, augmentJob: o, call: a } = i, u = (I) => s ? I : /* @__PURE__ */ st(I) || s === !1 || s === 0 ? At(I, 1) : At(I);
846
+ const { immediate: n, deep: s, once: r, scheduler: l, augmentJob: o, call: a } = i, u = (M) => s ? M : /* @__PURE__ */ st(M) || s === !1 || s === 0 ? At(M, 1) : At(M);
847
847
  let c, f, p, m, T = !1, v = !1;
848
- if (/* @__PURE__ */ Re(e) ? (f = () => e.value, T = /* @__PURE__ */ st(e)) : /* @__PURE__ */ Jt(e) ? (f = () => u(e), T = !0) : X(e) ? (v = !0, T = e.some((I) => /* @__PURE__ */ Jt(I) || /* @__PURE__ */ st(I)), f = () => e.map((I) => {
849
- if (/* @__PURE__ */ Re(I)) return I.value;
850
- if (/* @__PURE__ */ Jt(I)) return u(I);
851
- if (ue(I)) return a ? a(I, 2) : I();
848
+ if (/* @__PURE__ */ ke(e) ? (f = () => e.value, T = /* @__PURE__ */ st(e)) : /* @__PURE__ */ Jt(e) ? (f = () => u(e), T = !0) : X(e) ? (v = !0, T = e.some((M) => /* @__PURE__ */ Jt(M) || /* @__PURE__ */ st(M)), f = () => e.map((M) => {
849
+ if (/* @__PURE__ */ ke(M)) return M.value;
850
+ if (/* @__PURE__ */ Jt(M)) return u(M);
851
+ if (ue(M)) return a ? a(M, 2) : M();
852
852
  })) : ue(e) ? t ? f = a ? () => a(e, 2) : e : f = () => {
853
853
  if (p) {
854
- kt();
854
+ Rt();
855
855
  try {
856
856
  p();
857
857
  } finally {
858
- Rt();
858
+ kt();
859
859
  }
860
860
  }
861
- const I = Kt;
861
+ const M = Kt;
862
862
  Kt = c;
863
863
  try {
864
864
  return a ? a(e, 3, [m]) : e(m);
865
865
  } finally {
866
- Kt = I;
866
+ Kt = M;
867
867
  }
868
868
  } : f = Ht, t && s) {
869
- const I = f, V = s === !0 ? 1 / 0 : s;
870
- f = () => At(I(), V);
869
+ const M = f, B = s === !0 ? 1 / 0 : s;
870
+ f = () => At(M(), B);
871
871
  }
872
872
  const _ = fo(), L = () => {
873
873
  c.stop(), _ && _.active && cr(_.effects, c);
874
874
  };
875
875
  if (r && t) {
876
- const I = t;
877
- t = (...V) => {
878
- const Z = I(...V);
876
+ const M = t;
877
+ t = (...B) => {
878
+ const Z = M(...B);
879
879
  return L(), Z;
880
880
  };
881
881
  }
882
- let M = v ? new Array(e.length).fill(Yn) : Yn;
883
- const P = (I) => {
884
- if (!(!(c.flags & 1) || !c.dirty && !I))
882
+ let I = v ? new Array(e.length).fill(Yn) : Yn;
883
+ const A = (M) => {
884
+ if (!(!(c.flags & 1) || !c.dirty && !M))
885
885
  if (t) {
886
- const V = c.run();
887
- if (I || s || T || (v ? V.some((Z, B) => Et(Z, M[B])) : Et(V, M))) {
886
+ const B = c.run();
887
+ if (M || s || T || (v ? B.some((Z, W) => Et(Z, I[W])) : Et(B, I))) {
888
888
  p && p();
889
889
  const Z = Kt;
890
890
  Kt = c;
891
891
  try {
892
- const B = [
893
- V,
894
- M === Yn ? void 0 : v && M[0] === Yn ? [] : M,
892
+ const W = [
893
+ B,
894
+ I === Yn ? void 0 : v && I[0] === Yn ? [] : I,
895
895
  m
896
896
  ];
897
- M = V, a ? a(t, 3, B) : t(...B);
897
+ I = B, a ? a(t, 3, W) : t(...W);
898
898
  } finally {
899
899
  Kt = Z;
900
900
  }
901
901
  }
902
902
  } else c.run();
903
903
  };
904
- return o && o(P), c = new Sr(f), c.scheduler = l ? () => l(P, !1) : P, m = (I) => Ho(I, !1, c), p = c.onStop = () => {
905
- const I = ti.get(c);
906
- if (I) {
907
- if (a) a(I, 4);
908
- else for (const V of I) V();
904
+ return o && o(A), c = new Sr(f), c.scheduler = l ? () => l(A, !1) : A, m = (M) => Ho(M, !1, c), p = c.onStop = () => {
905
+ const M = ti.get(c);
906
+ if (M) {
907
+ if (a) a(M, 4);
908
+ else for (const B of M) B();
909
909
  ti.delete(c);
910
910
  }
911
- }, t ? n ? P(!0) : M = c.run() : l ? l(P.bind(null, !0), !0) : c.run(), L.pause = c.pause.bind(c), L.resume = c.resume.bind(c), L.stop = L, L;
911
+ }, t ? n ? A(!0) : I = c.run() : l ? l(A.bind(null, !0), !0) : c.run(), L.pause = c.pause.bind(c), L.resume = c.resume.bind(c), L.stop = L, L;
912
912
  }
913
913
  function At(e, t = 1 / 0, i) {
914
914
  if (t <= 0 || !he(e) || e.__v_skip || (i = i || /* @__PURE__ */ new Map(), (i.get(e) || 0) >= t)) return e;
915
- if (i.set(e, t), t--, /* @__PURE__ */ Re(e)) At(e.value, t, i);
915
+ if (i.set(e, t), t--, /* @__PURE__ */ ke(e)) At(e.value, t, i);
916
916
  else if (X(e)) for (let n = 0; n < e.length; n++) At(e[n], t, i);
917
917
  else if (dr(e) || ln(e)) e.forEach((n) => {
918
918
  At(n, t, i);
@@ -956,11 +956,11 @@ function bi(e, t, i, n = !0) {
956
956
  o = o.parent;
957
957
  }
958
958
  if (r) {
959
- kt(), jn(r, null, 10, [
959
+ Rt(), jn(r, null, 10, [
960
960
  e,
961
961
  a,
962
962
  u
963
- ]), Rt();
963
+ ]), kt();
964
964
  return;
965
965
  }
966
966
  }
@@ -1078,12 +1078,12 @@ function Ut(e, t, i, n) {
1078
1078
  const o = s[l];
1079
1079
  r && (o.oldValue = r[l].value);
1080
1080
  let a = o.dir[n];
1081
- a && (kt(), wt(a, i, 8, [
1081
+ a && (Rt(), wt(a, i, 8, [
1082
1082
  e.el,
1083
1083
  o,
1084
1084
  e,
1085
1085
  t
1086
- ]), Rt());
1086
+ ]), kt());
1087
1087
  }
1088
1088
  }
1089
1089
  function Uo(e, t) {
@@ -1143,48 +1143,48 @@ var Bt = /* @__PURE__ */ new WeakMap(), zr = /* @__PURE__ */ Symbol("_vte"), Yo
1143
1143
  name: "Teleport",
1144
1144
  __isTeleport: !0,
1145
1145
  process(e, t, i, n, s, r, l, o, a, u) {
1146
- const { mc: c, pc: f, pbc: p, o: { insert: m, querySelector: T, createText: v, createComment: _, parentNode: L } } = u, M = Gt(t.props);
1147
- let { dynamicChildren: P } = t;
1148
- const I = (B, q, H) => {
1149
- B.shapeFlag & 16 && c(B.children, q, H, s, r, l, o, a);
1150
- }, V = (B = t) => {
1151
- const q = Gt(B.props), H = B.target = Ki(B.props, T), oe = Gi(H, B, v, m);
1152
- H && (l !== "svg" && Ps(H) ? l = "svg" : l !== "mathml" && As(H) && (l = "mathml"), s && s.isCE && (s.ce._teleportTargets || (s.ce._teleportTargets = /* @__PURE__ */ new Set())).add(H), q || (I(B, H, oe), xn(B, !1)));
1153
- }, Z = (B) => {
1146
+ const { mc: c, pc: f, pbc: p, o: { insert: m, querySelector: T, createText: v, createComment: _, parentNode: L } } = u, I = Gt(t.props);
1147
+ let { dynamicChildren: A } = t;
1148
+ const M = (W, q, V) => {
1149
+ W.shapeFlag & 16 && c(W.children, q, V, s, r, l, o, a);
1150
+ }, B = (W = t) => {
1151
+ const q = Gt(W.props), V = W.target = Ki(W.props, T), oe = Gi(V, W, v, m);
1152
+ V && (l !== "svg" && Ps(V) ? l = "svg" : l !== "mathml" && As(V) && (l = "mathml"), s && s.isCE && (s.ce._teleportTargets || (s.ce._teleportTargets = /* @__PURE__ */ new Set())).add(V), q || (M(W, V, oe), xn(W, !1)));
1153
+ }, Z = (W) => {
1154
1154
  const q = () => {
1155
- if (Bt.get(B) === q) {
1156
- if (Bt.delete(B), Gt(B.props)) {
1157
- const H = L(B.el) || i;
1158
- I(B, H, B.anchor), xn(B, !0);
1155
+ if (Bt.get(W) === q) {
1156
+ if (Bt.delete(W), Gt(W.props)) {
1157
+ const V = L(W.el) || i;
1158
+ M(W, V, W.anchor), xn(W, !0);
1159
1159
  }
1160
- V(B);
1160
+ B(W);
1161
1161
  }
1162
1162
  };
1163
- Bt.set(B, q), qe(q, r);
1163
+ Bt.set(W, q), qe(q, r);
1164
1164
  };
1165
1165
  if (e == null) {
1166
- const B = t.el = v(""), q = t.anchor = v("");
1167
- if (m(B, i, n), m(q, i, n), Xo(t.props) || r && r.pendingBranch) {
1166
+ const W = t.el = v(""), q = t.anchor = v("");
1167
+ if (m(W, i, n), m(q, i, n), Xo(t.props) || r && r.pendingBranch) {
1168
1168
  Z(t);
1169
1169
  return;
1170
1170
  }
1171
- M && (I(t, i, q), xn(t, !0)), V();
1171
+ I && (M(t, i, q), xn(t, !0)), B();
1172
1172
  } else {
1173
1173
  t.el = e.el;
1174
- const B = t.anchor = e.anchor, q = Bt.get(e);
1174
+ const W = t.anchor = e.anchor, q = Bt.get(e);
1175
1175
  if (q) {
1176
1176
  q.flags |= 8, Bt.delete(e), Z(t);
1177
1177
  return;
1178
1178
  }
1179
1179
  t.targetStart = e.targetStart;
1180
- const H = t.target = e.target, oe = t.targetAnchor = e.targetAnchor, K = Gt(e.props), Oe = K ? i : H, N = K ? B : oe;
1181
- if (l === "svg" || Ps(H) ? l = "svg" : (l === "mathml" || As(H)) && (l = "mathml"), P ? (p(e.dynamicChildren, P, Oe, s, r, l, o), vs(e, t, !0)) : a || f(e, t, Oe, N, s, r, l, o, !1), M)
1182
- K ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : Xn(t, i, B, u, 1);
1180
+ const V = t.target = e.target, oe = t.targetAnchor = e.targetAnchor, K = Gt(e.props), Oe = K ? i : V, N = K ? W : oe;
1181
+ if (l === "svg" || Ps(V) ? l = "svg" : (l === "mathml" || As(V)) && (l = "mathml"), A ? (p(e.dynamicChildren, A, Oe, s, r, l, o), vs(e, t, !0)) : a || f(e, t, Oe, N, s, r, l, o, !1), I)
1182
+ K ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : Xn(t, i, W, u, 1);
1183
1183
  else if ((t.props && t.props.to) !== (e.props && e.props.to)) {
1184
1184
  const G = Ki(t.props, T);
1185
1185
  G && (t.target = G, Xn(t, G, null, u, 0));
1186
- } else K && Xn(t, H, oe, u, 1);
1187
- xn(t, M);
1186
+ } else K && Xn(t, V, oe, u, 1);
1187
+ xn(t, I);
1188
1188
  }
1189
1189
  },
1190
1190
  remove(e, t, i, { um: n, o: { remove: s } }, r) {
@@ -1206,16 +1206,16 @@ function Xn(e, t, i, { o: { insert: n }, m: s }, r = 2) {
1206
1206
  }
1207
1207
  function Zo(e, t, i, n, s, r, { o: { nextSibling: l, parentNode: o, querySelector: a, insert: u, createText: c } }, f) {
1208
1208
  function p(_, L) {
1209
- let M = L;
1210
- for (; M; ) {
1211
- if (M && M.nodeType === 8) {
1212
- if (M.data === "teleport start anchor") t.targetStart = M;
1213
- else if (M.data === "teleport anchor") {
1214
- t.targetAnchor = M, _._lpa = t.targetAnchor && l(t.targetAnchor);
1209
+ let I = L;
1210
+ for (; I; ) {
1211
+ if (I && I.nodeType === 8) {
1212
+ if (I.data === "teleport start anchor") t.targetStart = I;
1213
+ else if (I.data === "teleport anchor") {
1214
+ t.targetAnchor = I, _._lpa = t.targetAnchor && l(t.targetAnchor);
1215
1215
  break;
1216
1216
  }
1217
1217
  }
1218
- M = l(M);
1218
+ I = l(I);
1219
1219
  }
1220
1220
  }
1221
1221
  function m(_, L) {
@@ -1242,7 +1242,7 @@ function Gi(e, t, i, n, s = null) {
1242
1242
  const r = t.targetStart = i(""), l = t.targetAnchor = i("");
1243
1243
  return r[zr] = l, e && (n(r, e, s), n(l, e, s)), l;
1244
1244
  }
1245
- var ki = /* @__PURE__ */ Symbol("_leaveCb");
1245
+ var Ri = /* @__PURE__ */ Symbol("_leaveCb");
1246
1246
  function fs(e, t) {
1247
1247
  e.shapeFlag & 6 && e.component ? (e.transition = t, fs(e.component.subTree, t)) : e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
1248
1248
  }
@@ -1277,48 +1277,48 @@ function On(e, t, i, n, s = !1) {
1277
1277
  }
1278
1278
  const r = n.shapeFlag & 4 ? Ti(n.component) : n.el, l = s ? null : r, { i: o, r: a } = e, u = t && t.r, c = o.refs === ve ? o.refs = {} : o.refs, f = o.setupState, p = /* @__PURE__ */ re(f), m = f === ve ? ur : (v) => Os(c, v) ? !1 : ce(p, v), T = (v, _) => !(_ && Os(c, _));
1279
1279
  if (u != null && u !== a) {
1280
- if (ks(t), Te(u))
1280
+ if (Rs(t), Te(u))
1281
1281
  c[u] = null, m(u) && (f[u] = null);
1282
- else if (/* @__PURE__ */ Re(u)) {
1282
+ else if (/* @__PURE__ */ ke(u)) {
1283
1283
  const v = t;
1284
1284
  T(u, v.k) && (u.value = null), v.k && (c[v.k] = null);
1285
1285
  }
1286
1286
  }
1287
1287
  if (ue(a)) {
1288
- kt();
1288
+ Rt();
1289
1289
  try {
1290
1290
  jn(a, o, 12, [l, c]);
1291
1291
  } finally {
1292
- Rt();
1292
+ kt();
1293
1293
  }
1294
1294
  } else {
1295
- const v = Te(a), _ = /* @__PURE__ */ Re(a);
1295
+ const v = Te(a), _ = /* @__PURE__ */ ke(a);
1296
1296
  if (v || _) {
1297
1297
  const L = () => {
1298
1298
  if (e.f) {
1299
- const M = v ? m(a) ? f[a] : c[a] : T(a) || !e.k ? a.value : c[e.k];
1300
- if (s) X(M) && cr(M, r);
1301
- else if (X(M))
1302
- M.includes(r) || M.push(r);
1299
+ const I = v ? m(a) ? f[a] : c[a] : T(a) || !e.k ? a.value : c[e.k];
1300
+ if (s) X(I) && cr(I, r);
1301
+ else if (X(I))
1302
+ I.includes(r) || I.push(r);
1303
1303
  else if (v)
1304
1304
  c[a] = [r], m(a) && (f[a] = c[a]);
1305
1305
  else {
1306
- const P = [r];
1307
- T(a, e.k) && (a.value = P), e.k && (c[e.k] = P);
1306
+ const A = [r];
1307
+ T(a, e.k) && (a.value = A), e.k && (c[e.k] = A);
1308
1308
  }
1309
1309
  } else v ? (c[a] = l, m(a) && (f[a] = l)) : _ && (T(a, e.k) && (a.value = l), e.k && (c[e.k] = l));
1310
1310
  };
1311
1311
  if (l) {
1312
- const M = () => {
1312
+ const I = () => {
1313
1313
  L(), si.delete(e);
1314
1314
  };
1315
- M.id = -1, si.set(e, M), qe(M, i);
1315
+ I.id = -1, si.set(e, I), qe(I, i);
1316
1316
  } else
1317
- ks(e), L();
1317
+ Rs(e), L();
1318
1318
  }
1319
1319
  }
1320
1320
  }
1321
- function ks(e) {
1321
+ function Rs(e) {
1322
1322
  const t = si.get(e);
1323
1323
  t && (t.flags |= 8, si.delete(e));
1324
1324
  }
@@ -1326,9 +1326,9 @@ var uh = mi().requestIdleCallback || ((e) => setTimeout(e, 1)), ch = mi().cancel
1326
1326
  function na(e, t, i = nt, n = !1) {
1327
1327
  if (i) {
1328
1328
  const s = i[e] || (i[e] = []), r = t.__weh || (t.__weh = (...l) => {
1329
- kt();
1329
+ Rt();
1330
1330
  const o = _s(i), a = wt(t, i, e, l);
1331
- return o(), Rt(), a;
1331
+ return o(), kt(), a;
1332
1332
  });
1333
1333
  return n ? s.unshift(r) : s.push(r), r;
1334
1334
  }
@@ -1384,7 +1384,7 @@ function te(e, t, i = {}, n, s) {
1384
1384
  function qr(e) {
1385
1385
  return e.some((t) => gs(t) ? !(t.type === Nt || t.type === be && !qr(t.children)) : !0) ? e : null;
1386
1386
  }
1387
- var Xi = (e) => e ? al(e) ? Ti(e) : Xi(e.parent) : null, kn = /* @__PURE__ */ rt(/* @__PURE__ */ Object.create(null), {
1387
+ var Xi = (e) => e ? al(e) ? Ti(e) : Xi(e.parent) : null, Rn = /* @__PURE__ */ rt(/* @__PURE__ */ Object.create(null), {
1388
1388
  $: (e) => e,
1389
1389
  $el: (e) => e.vnode.el,
1390
1390
  $data: (e) => e.data,
@@ -1402,7 +1402,7 @@ var Xi = (e) => e ? al(e) ? Ti(e) : Xi(e.parent) : null, kn = /* @__PURE__ */ rt
1402
1402
  }),
1403
1403
  $nextTick: (e) => e.n || (e.n = an.bind(e.proxy)),
1404
1404
  $watch: (e) => Ht
1405
- }), Ri = (e, t) => e !== ve && !e.__isScriptSetup && ce(e, t), ra = {
1405
+ }), ki = (e, t) => e !== ve && !e.__isScriptSetup && ce(e, t), ra = {
1406
1406
  get({ _: e }, t) {
1407
1407
  if (t === "__v_skip") return !0;
1408
1408
  const { ctx: i, setupState: n, data: s, props: r, accessCache: l, type: o, appContext: a } = e;
@@ -1419,7 +1419,7 @@ var Xi = (e) => e ? al(e) ? Ti(e) : Xi(e.parent) : null, kn = /* @__PURE__ */ rt
1419
1419
  return r[t];
1420
1420
  }
1421
1421
  else {
1422
- if (Ri(n, t))
1422
+ if (ki(n, t))
1423
1423
  return l[t] = 1, n[t];
1424
1424
  if (ce(r, t))
1425
1425
  return l[t] = 3, r[t];
@@ -1428,7 +1428,7 @@ var Xi = (e) => e ? al(e) ? Ti(e) : Xi(e.parent) : null, kn = /* @__PURE__ */ rt
1428
1428
  l[t] = 0;
1429
1429
  }
1430
1430
  }
1431
- const u = kn[t];
1431
+ const u = Rn[t];
1432
1432
  let c, f;
1433
1433
  if (u)
1434
1434
  return t === "$attrs" && He(e.attrs, "get", ""), u(e);
@@ -1439,11 +1439,11 @@ var Xi = (e) => e ? al(e) ? Ti(e) : Xi(e.parent) : null, kn = /* @__PURE__ */ rt
1439
1439
  },
1440
1440
  set({ _: e }, t, i) {
1441
1441
  const { data: n, setupState: s, ctx: r } = e;
1442
- return Ri(s, t) ? (s[t] = i, !0) : ce(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (r[t] = i, !0);
1442
+ return ki(s, t) ? (s[t] = i, !0) : ce(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (r[t] = i, !0);
1443
1443
  },
1444
1444
  has({ _: { data: e, setupState: t, accessCache: i, ctx: n, appContext: s, props: r, type: l } }, o) {
1445
1445
  let a;
1446
- return !!(i[o] || Ri(t, o) || ce(r, o) || ce(n, o) || ce(kn, o) || ce(s.config.globalProperties, o) || (a = l.__cssModules) && a[o]);
1446
+ return !!(i[o] || ki(t, o) || ce(r, o) || ce(n, o) || ce(Rn, o) || ce(s.config.globalProperties, o) || (a = l.__cssModules) && a[o]);
1447
1447
  },
1448
1448
  defineProperty(e, t, i) {
1449
1449
  return i.get != null ? e._.accessCache[t] = 0 : ce(i, "value") && this.set(e, t, i.value, null), Reflect.defineProperty(e, t, i);
@@ -1564,28 +1564,28 @@ function Si(e, t) {
1564
1564
  }
1565
1565
  function Li(e) {
1566
1566
  const { type: t, vnode: i, proxy: n, withProxy: s, propsOptions: [r], slots: l, attrs: o, emit: a, render: u, renderCache: c, props: f, data: p, setupState: m, ctx: T, inheritAttrs: v } = e, _ = ii(e);
1567
- let L, M;
1567
+ let L, I;
1568
1568
  try {
1569
1569
  if (i.shapeFlag & 4) {
1570
- const I = s || n, V = I;
1571
- L = St(u.call(V, I, c, f, m, p, T)), M = o;
1570
+ const M = s || n, B = M;
1571
+ L = St(u.call(B, M, c, f, m, p, T)), I = o;
1572
1572
  } else {
1573
- const I = t;
1574
- L = St(I.length > 1 ? I(f, {
1573
+ const M = t;
1574
+ L = St(M.length > 1 ? M(f, {
1575
1575
  attrs: o,
1576
1576
  slots: l,
1577
1577
  emit: a
1578
- }) : I(f, null)), M = t.props ? o : fa(o);
1578
+ }) : M(f, null)), I = t.props ? o : fa(o);
1579
1579
  }
1580
- } catch (I) {
1581
- Ln.length = 0, bi(I, e, 1), L = Ae(Nt);
1580
+ } catch (M) {
1581
+ Ln.length = 0, bi(M, e, 1), L = Ae(Nt);
1582
1582
  }
1583
- let P = L;
1584
- if (M && v !== !1) {
1585
- const I = Object.keys(M), { shapeFlag: V } = P;
1586
- I.length && V & 7 && (r && I.some(pi) && (M = ha(M, r)), P = fn(P, M, !1, !0));
1583
+ let A = L;
1584
+ if (I && v !== !1) {
1585
+ const M = Object.keys(I), { shapeFlag: B } = A;
1586
+ M.length && B & 7 && (r && M.some(pi) && (I = ha(I, r)), A = fn(A, I, !1, !0));
1587
1587
  }
1588
- return i.dirs && (P = fn(P, null, !1, !0), P.dirs = P.dirs ? P.dirs.concat(i.dirs) : i.dirs), i.transition && fs(P, i.transition), L = P, ii(_), L;
1588
+ return i.dirs && (A = fn(A, null, !1, !0), A.dirs = A.dirs ? A.dirs.concat(i.dirs) : i.dirs), i.transition && fs(A, i.transition), L = A, ii(_), L;
1589
1589
  }
1590
1590
  var fa = (e) => {
1591
1591
  let t;
@@ -1602,7 +1602,7 @@ function pa(e, t, i) {
1602
1602
  if (i && a >= 0) {
1603
1603
  if (a & 1024) return !0;
1604
1604
  if (a & 16)
1605
- return n ? Rs(n, l, u) : !!l;
1605
+ return n ? ks(n, l, u) : !!l;
1606
1606
  if (a & 8) {
1607
1607
  const c = t.dynamicProps;
1608
1608
  for (let f = 0; f < c.length; f++) {
@@ -1611,10 +1611,10 @@ function pa(e, t, i) {
1611
1611
  }
1612
1612
  }
1613
1613
  } else
1614
- return (s || o) && (!o || !o.$stable) ? !0 : n === l ? !1 : n ? l ? Rs(n, l, u) : !0 : !!l;
1614
+ return (s || o) && (!o || !o.$stable) ? !0 : n === l ? !1 : n ? l ? ks(n, l, u) : !0 : !!l;
1615
1615
  return !1;
1616
1616
  }
1617
- function Rs(e, t, i) {
1617
+ function ks(e, t, i) {
1618
1618
  const n = Object.keys(t);
1619
1619
  if (n.length !== Object.keys(e).length) return !0;
1620
1620
  for (let s = 0; s < n.length; s++) {
@@ -1726,11 +1726,11 @@ function _a(e, t, i = !1) {
1726
1726
  const f = r[u], p = l[c] = X(f) || ue(f) ? { type: f } : rt({}, f), m = p.type;
1727
1727
  let T = !1, v = !0;
1728
1728
  if (X(m)) for (let _ = 0; _ < m.length; ++_) {
1729
- const L = m[_], M = ue(L) && L.name;
1730
- if (M === "Boolean") {
1729
+ const L = m[_], I = ue(L) && L.name;
1730
+ if (I === "Boolean") {
1731
1731
  T = !0;
1732
1732
  break;
1733
- } else M === "String" && (v = !1);
1733
+ } else I === "String" && (v = !1);
1734
1734
  }
1735
1735
  else T = ue(m) && m.name === "Boolean";
1736
1736
  p[0] = T, p[1] = v, (T || ce(p, "default")) && o.push(c);
@@ -1784,9 +1784,9 @@ function Ea(e) {
1784
1784
  function wa(e, t) {
1785
1785
  const i = mi();
1786
1786
  i.__VUE__ = !0;
1787
- const { insert: n, remove: s, patchProp: r, createElement: l, createText: o, createComment: a, setText: u, setElementText: c, parentNode: f, nextSibling: p, setScopeId: m = Ht, insertStaticContent: T } = e, v = (d, h, g, C = null, b = null, S = null, k = void 0, O = null, A = !!h.dynamicChildren) => {
1787
+ const { insert: n, remove: s, patchProp: r, createElement: l, createText: o, createComment: a, setText: u, setElementText: c, parentNode: f, nextSibling: p, setScopeId: m = Ht, insertStaticContent: T } = e, v = (d, h, g, C = null, b = null, S = null, R = void 0, O = null, P = !!h.dynamicChildren) => {
1788
1788
  if (d === h) return;
1789
- d && !wn(d, h) && (C = ke(d), Ne(d, b, S, !0), d = null), h.patchFlag === -2 && (A = !1, h.dynamicChildren = null);
1789
+ d && !wn(d, h) && (C = Re(d), Ne(d, b, S, !0), d = null), h.patchFlag === -2 && (P = !1, h.dynamicChildren = null);
1790
1790
  const { type: E, ref: F, shapeFlag: D } = h;
1791
1791
  switch (E) {
1792
1792
  case Ei:
@@ -1795,14 +1795,14 @@ function wa(e, t) {
1795
1795
  case Nt:
1796
1796
  L(d, h, g, C);
1797
1797
  break;
1798
- case Rn:
1799
- d == null && M(h, g, C, k);
1798
+ case kn:
1799
+ d == null && I(h, g, C, R);
1800
1800
  break;
1801
1801
  case be:
1802
- Oe(d, h, g, C, b, S, k, O, A);
1802
+ Oe(d, h, g, C, b, S, R, O, P);
1803
1803
  break;
1804
1804
  default:
1805
- D & 1 ? V(d, h, g, C, b, S, k, O, A) : D & 6 ? N(d, h, g, C, b, S, k, O, A) : (D & 64 || D & 128) && E.process(d, h, g, C, b, S, k, O, A, ge);
1805
+ D & 1 ? B(d, h, g, C, b, S, R, O, P) : D & 6 ? N(d, h, g, C, b, S, R, O, P) : (D & 64 || D & 128) && E.process(d, h, g, C, b, S, R, O, P, ge);
1806
1806
  }
1807
1807
  F != null && b ? On(F, d && d.ref, S, h || d, !h) : F == null && d && d.ref != null && On(d.ref, null, S, d, !0);
1808
1808
  }, _ = (d, h, g, C) => {
@@ -1813,78 +1813,78 @@ function wa(e, t) {
1813
1813
  }
1814
1814
  }, L = (d, h, g, C) => {
1815
1815
  d == null ? n(h.el = a(h.children || ""), g, C) : h.el = d.el;
1816
- }, M = (d, h, g, C) => {
1816
+ }, I = (d, h, g, C) => {
1817
1817
  [d.el, d.anchor] = T(d.children, h, g, C, d.el, d.anchor);
1818
- }, P = ({ el: d, anchor: h }, g, C) => {
1818
+ }, A = ({ el: d, anchor: h }, g, C) => {
1819
1819
  let b;
1820
1820
  for (; d && d !== h; )
1821
1821
  b = p(d), n(d, g, C), d = b;
1822
1822
  n(h, g, C);
1823
- }, I = ({ el: d, anchor: h }) => {
1823
+ }, M = ({ el: d, anchor: h }) => {
1824
1824
  let g;
1825
1825
  for (; d && d !== h; )
1826
1826
  g = p(d), s(d), d = g;
1827
1827
  s(h);
1828
- }, V = (d, h, g, C, b, S, k, O, A) => {
1829
- if (h.type === "svg" ? k = "svg" : h.type === "math" && (k = "mathml"), d == null) Z(h, g, C, b, S, k, O, A);
1828
+ }, B = (d, h, g, C, b, S, R, O, P) => {
1829
+ if (h.type === "svg" ? R = "svg" : h.type === "math" && (R = "mathml"), d == null) Z(h, g, C, b, S, R, O, P);
1830
1830
  else {
1831
1831
  const E = d.el && d.el._isVueCE ? d.el : null;
1832
1832
  try {
1833
- E && E._beginPatch(), H(d, h, b, S, k, O, A);
1833
+ E && E._beginPatch(), V(d, h, b, S, R, O, P);
1834
1834
  } finally {
1835
1835
  E && E._endPatch();
1836
1836
  }
1837
1837
  }
1838
- }, Z = (d, h, g, C, b, S, k, O) => {
1839
- let A, E;
1840
- const { props: F, shapeFlag: D, transition: W, dirs: z } = d;
1841
- if (A = d.el = l(d.type, S, F && F.is, F), D & 8 ? c(A, d.children) : D & 16 && q(d.children, A, null, C, b, Ni(d, S), k, O), z && Ut(d, null, C, "created"), B(A, d, d.scopeId, k, C), F) {
1842
- for (const le in F) le !== "value" && !In(le) && r(A, le, null, F[le], S, C);
1843
- "value" in F && r(A, "value", null, F.value, S), (E = F.onVnodeBeforeMount) && mt(E, C, d);
1838
+ }, Z = (d, h, g, C, b, S, R, O) => {
1839
+ let P, E;
1840
+ const { props: F, shapeFlag: D, transition: H, dirs: z } = d;
1841
+ if (P = d.el = l(d.type, S, F && F.is, F), D & 8 ? c(P, d.children) : D & 16 && q(d.children, P, null, C, b, Ni(d, S), R, O), z && Ut(d, null, C, "created"), W(P, d, d.scopeId, R, C), F) {
1842
+ for (const le in F) le !== "value" && !In(le) && r(P, le, null, F[le], S, C);
1843
+ "value" in F && r(P, "value", null, F.value, S), (E = F.onVnodeBeforeMount) && mt(E, C, d);
1844
1844
  }
1845
1845
  z && Ut(d, null, C, "beforeMount");
1846
- const J = Ta(b, W);
1847
- J && W.beforeEnter(A), n(A, h, g), ((E = F && F.onVnodeMounted) || J || z) && qe(() => {
1848
- E && mt(E, C, d), J && W.enter(A), z && Ut(d, null, C, "mounted");
1846
+ const J = Ta(b, H);
1847
+ J && H.beforeEnter(P), n(P, h, g), ((E = F && F.onVnodeMounted) || J || z) && qe(() => {
1848
+ E && mt(E, C, d), J && H.enter(P), z && Ut(d, null, C, "mounted");
1849
1849
  }, b);
1850
- }, B = (d, h, g, C, b) => {
1850
+ }, W = (d, h, g, C, b) => {
1851
1851
  if (g && m(d, g), C) for (let S = 0; S < C.length; S++) m(d, C[S]);
1852
1852
  if (b) {
1853
1853
  let S = b.subTree;
1854
1854
  if (h === S || rl(S.type) && (S.ssContent === h || S.ssFallback === h)) {
1855
- const k = b.vnode;
1856
- B(d, k, k.scopeId, k.slotScopeIds, b.parent);
1855
+ const R = b.vnode;
1856
+ W(d, R, R.scopeId, R.slotScopeIds, b.parent);
1857
1857
  }
1858
1858
  }
1859
- }, q = (d, h, g, C, b, S, k, O, A = 0) => {
1860
- for (let E = A; E < d.length; E++) {
1859
+ }, q = (d, h, g, C, b, S, R, O, P = 0) => {
1860
+ for (let E = P; E < d.length; E++) {
1861
1861
  const F = d[E] = O ? It(d[E]) : St(d[E]);
1862
- v(null, F, h, g, C, b, S, k, O);
1862
+ v(null, F, h, g, C, b, S, R, O);
1863
1863
  }
1864
- }, H = (d, h, g, C, b, S, k) => {
1864
+ }, V = (d, h, g, C, b, S, R) => {
1865
1865
  const O = h.el = d.el;
1866
- let { patchFlag: A, dynamicChildren: E, dirs: F } = h;
1867
- A |= d.patchFlag & 16;
1868
- const D = d.props || ve, W = h.props || ve;
1866
+ let { patchFlag: P, dynamicChildren: E, dirs: F } = h;
1867
+ P |= d.patchFlag & 16;
1868
+ const D = d.props || ve, H = h.props || ve;
1869
1869
  let z;
1870
- if (g && qt(g, !1), (z = W.onVnodeBeforeUpdate) && mt(z, g, h, d), F && Ut(h, d, g, "beforeUpdate"), g && qt(g, !0), E && (!d.dynamicChildren || d.dynamicChildren.length !== E.length) && (A = 0, k = !1, E = null), (D.innerHTML && W.innerHTML == null || D.textContent && W.textContent == null) && c(O, ""), E ? oe(d.dynamicChildren, E, O, g, C, Ni(h, b), S) : k || Le(d, h, O, null, g, C, Ni(h, b), S, !1), A > 0) {
1871
- if (A & 16) K(O, D, W, g, b);
1872
- else if (A & 2 && D.class !== W.class && r(O, "class", null, W.class, b), A & 4 && r(O, "style", D.style, W.style, b), A & 8) {
1870
+ if (g && qt(g, !1), (z = H.onVnodeBeforeUpdate) && mt(z, g, h, d), F && Ut(h, d, g, "beforeUpdate"), g && qt(g, !0), E && (!d.dynamicChildren || d.dynamicChildren.length !== E.length) && (P = 0, R = !1, E = null), (D.innerHTML && H.innerHTML == null || D.textContent && H.textContent == null) && c(O, ""), E ? oe(d.dynamicChildren, E, O, g, C, Ni(h, b), S) : R || Le(d, h, O, null, g, C, Ni(h, b), S, !1), P > 0) {
1871
+ if (P & 16) K(O, D, H, g, b);
1872
+ else if (P & 2 && D.class !== H.class && r(O, "class", null, H.class, b), P & 4 && r(O, "style", D.style, H.style, b), P & 8) {
1873
1873
  const J = h.dynamicProps;
1874
1874
  for (let le = 0; le < J.length; le++) {
1875
- const ee = J[le], Q = D[ee], pe = W[ee];
1875
+ const ee = J[le], Q = D[ee], pe = H[ee];
1876
1876
  (pe !== Q || ee === "value") && r(O, ee, Q, pe, b, g);
1877
1877
  }
1878
1878
  }
1879
- A & 1 && d.children !== h.children && c(O, h.children);
1880
- } else !k && E == null && K(O, D, W, g, b);
1881
- ((z = W.onVnodeUpdated) || F) && qe(() => {
1879
+ P & 1 && d.children !== h.children && c(O, h.children);
1880
+ } else !R && E == null && K(O, D, H, g, b);
1881
+ ((z = H.onVnodeUpdated) || F) && qe(() => {
1882
1882
  z && mt(z, g, h, d), F && Ut(h, d, g, "updated");
1883
1883
  }, C);
1884
- }, oe = (d, h, g, C, b, S, k) => {
1884
+ }, oe = (d, h, g, C, b, S, R) => {
1885
1885
  for (let O = 0; O < h.length; O++) {
1886
- const A = d[O], E = h[O], F = A.el && (A.type === be || !wn(A, E) || A.shapeFlag & 198) ? f(A.el) : g;
1887
- v(A, E, F, null, C, b, S, k, !0);
1886
+ const P = d[O], E = h[O], F = P.el && (P.type === be || !wn(P, E) || P.shapeFlag & 198) ? f(P.el) : g;
1887
+ v(P, E, F, null, C, b, S, R, !0);
1888
1888
  }
1889
1889
  }, K = (d, h, g, C, b) => {
1890
1890
  if (h !== g) {
@@ -1892,25 +1892,25 @@ function wa(e, t) {
1892
1892
  for (const S in h) !In(S) && !(S in g) && r(d, S, h[S], null, b, C);
1893
1893
  for (const S in g) {
1894
1894
  if (In(S)) continue;
1895
- const k = g[S], O = h[S];
1896
- k !== O && S !== "value" && r(d, S, O, k, b, C);
1895
+ const R = g[S], O = h[S];
1896
+ R !== O && S !== "value" && r(d, S, O, R, b, C);
1897
1897
  }
1898
1898
  "value" in g && r(d, "value", h.value, g.value, b);
1899
1899
  }
1900
- }, Oe = (d, h, g, C, b, S, k, O, A) => {
1900
+ }, Oe = (d, h, g, C, b, S, R, O, P) => {
1901
1901
  const E = h.el = d ? d.el : o(""), F = h.anchor = d ? d.anchor : o("");
1902
- let { patchFlag: D, dynamicChildren: W, slotScopeIds: z } = h;
1903
- z && (O = O ? O.concat(z) : z), d == null ? (n(E, g, C), n(F, g, C), q(h.children || [], g, F, b, S, k, O, A)) : D > 0 && D & 64 && W && d.dynamicChildren && d.dynamicChildren.length === W.length ? (oe(d.dynamicChildren, W, g, b, S, k, O), (h.key != null || b && h === b.subTree) && vs(d, h, !0)) : Le(d, h, g, F, b, S, k, O, A);
1904
- }, N = (d, h, g, C, b, S, k, O, A) => {
1905
- h.slotScopeIds = O, d == null ? h.shapeFlag & 512 ? b.ctx.activate(h, g, C, k, A) : G(h, g, C, b, S, k, A) : ne(d, h, A);
1906
- }, G = (d, h, g, C, b, S, k) => {
1907
- const O = d.component = Ra(d, C, b);
1908
- if (ta(d) && (O.ctx.renderer = ge), La(O, !1, k), O.asyncDep) {
1909
- if (b && b.registerDep(O, Y, k), !d.el) {
1910
- const A = O.subTree = Ae(Nt);
1911
- L(null, A, h, g), d.placeholder = A.el;
1902
+ let { patchFlag: D, dynamicChildren: H, slotScopeIds: z } = h;
1903
+ z && (O = O ? O.concat(z) : z), d == null ? (n(E, g, C), n(F, g, C), q(h.children || [], g, F, b, S, R, O, P)) : D > 0 && D & 64 && H && d.dynamicChildren && d.dynamicChildren.length === H.length ? (oe(d.dynamicChildren, H, g, b, S, R, O), (h.key != null || b && h === b.subTree) && vs(d, h, !0)) : Le(d, h, g, F, b, S, R, O, P);
1904
+ }, N = (d, h, g, C, b, S, R, O, P) => {
1905
+ h.slotScopeIds = O, d == null ? h.shapeFlag & 512 ? b.ctx.activate(h, g, C, R, P) : G(h, g, C, b, S, R, P) : ne(d, h, P);
1906
+ }, G = (d, h, g, C, b, S, R) => {
1907
+ const O = d.component = ka(d, C, b);
1908
+ if (ta(d) && (O.ctx.renderer = ge), La(O, !1, R), O.asyncDep) {
1909
+ if (b && b.registerDep(O, Y, R), !d.el) {
1910
+ const P = O.subTree = Ae(Nt);
1911
+ L(null, P, h, g), d.placeholder = P.el;
1912
1912
  }
1913
- } else Y(O, d, h, g, b, S, k);
1913
+ } else Y(O, d, h, g, b, S, R);
1914
1914
  }, ne = (d, h, g) => {
1915
1915
  const C = h.component = d.component;
1916
1916
  if (pa(d, h, g))
@@ -1921,14 +1921,14 @@ function wa(e, t) {
1921
1921
  C.next = h, C.update();
1922
1922
  else
1923
1923
  h.el = d.el, C.vnode = h;
1924
- }, Y = (d, h, g, C, b, S, k) => {
1924
+ }, Y = (d, h, g, C, b, S, R) => {
1925
1925
  const O = () => {
1926
1926
  if (d.isMounted) {
1927
- let { next: D, bu: W, u: z, parent: J, vnode: le } = d;
1927
+ let { next: D, bu: H, u: z, parent: J, vnode: le } = d;
1928
1928
  {
1929
1929
  const Ie = il(d);
1930
1930
  if (Ie) {
1931
- D && (D.el = le.el, ie(d, D, k)), Ie.asyncDep.then(() => {
1931
+ D && (D.el = le.el, ie(d, D, R)), Ie.asyncDep.then(() => {
1932
1932
  qe(() => {
1933
1933
  d.isUnmounted || E();
1934
1934
  }, b);
@@ -1937,17 +1937,17 @@ function wa(e, t) {
1937
1937
  }
1938
1938
  }
1939
1939
  let ee = D, Q;
1940
- qt(d, !1), D ? (D.el = le.el, ie(d, D, k)) : D = le, W && Mi(W), (Q = D.props && D.props.onVnodeBeforeUpdate) && mt(Q, J, D, le), qt(d, !0);
1940
+ qt(d, !1), D ? (D.el = le.el, ie(d, D, R)) : D = le, H && Mi(H), (Q = D.props && D.props.onVnodeBeforeUpdate) && mt(Q, J, D, le), qt(d, !0);
1941
1941
  const pe = Li(d), Ce = d.subTree;
1942
- d.subTree = pe, v(Ce, pe, f(Ce.el), ke(Ce), d, b, S), D.el = pe.el, ee === null && va(d, pe.el), z && qe(z, b), (Q = D.props && D.props.onVnodeUpdated) && qe(() => mt(Q, J, D, le), b);
1942
+ d.subTree = pe, v(Ce, pe, f(Ce.el), Re(Ce), d, b, S), D.el = pe.el, ee === null && va(d, pe.el), z && qe(z, b), (Q = D.props && D.props.onVnodeUpdated) && qe(() => mt(Q, J, D, le), b);
1943
1943
  } else {
1944
1944
  let D;
1945
- const { el: W, props: z } = h, { bm: J, m: le, parent: ee, root: Q, type: pe } = d, Ce = un(h);
1946
- if (qt(d, !1), J && Mi(J), !Ce && (D = z && z.onVnodeBeforeMount) && mt(D, ee, h), qt(d, !0), W && et) {
1945
+ const { el: H, props: z } = h, { bm: J, m: le, parent: ee, root: Q, type: pe } = d, Ce = un(h);
1946
+ if (qt(d, !1), J && Mi(J), !Ce && (D = z && z.onVnodeBeforeMount) && mt(D, ee, h), qt(d, !0), H && et) {
1947
1947
  const Ie = () => {
1948
- d.subTree = Li(d), et(W, d.subTree, d, b, null);
1948
+ d.subTree = Li(d), et(H, d.subTree, d, b, null);
1949
1949
  };
1950
- Ce && pe.__asyncHydrate ? pe.__asyncHydrate(W, d, Ie) : Ie();
1950
+ Ce && pe.__asyncHydrate ? pe.__asyncHydrate(H, d, Ie) : Ie();
1951
1951
  } else {
1952
1952
  Q.ce && Q.ce._hasShadowRoot() && Q.ce._injectChildStyle(pe, d.parent ? d.parent.type : void 0);
1953
1953
  const Ie = d.subTree = Li(d);
@@ -1961,67 +1961,67 @@ function wa(e, t) {
1961
1961
  }
1962
1962
  };
1963
1963
  d.scope.on();
1964
- const A = d.effect = new Sr(O);
1964
+ const P = d.effect = new Sr(O);
1965
1965
  d.scope.off();
1966
- const E = d.update = A.run.bind(A), F = d.job = A.runIfDirty.bind(A);
1967
- F.i = d, F.id = d.uid, A.scheduler = () => ds(F), qt(d, !0), E();
1966
+ const E = d.update = P.run.bind(P), F = d.job = P.runIfDirty.bind(P);
1967
+ F.i = d, F.id = d.uid, P.scheduler = () => ds(F), qt(d, !0), E();
1968
1968
  }, ie = (d, h, g) => {
1969
1969
  h.component = d;
1970
1970
  const C = d.vnode.props;
1971
- d.vnode = h, d.next = null, ma(d, h.props, C, g), Sa(d, h.children, g), kt(), Ms(d), Rt();
1972
- }, Le = (d, h, g, C, b, S, k, O, A = !1) => {
1973
- const E = d && d.children, F = d ? d.shapeFlag : 0, D = h.children, { patchFlag: W, shapeFlag: z } = h;
1974
- if (W > 0) {
1975
- if (W & 128) {
1976
- Xe(E, D, g, C, b, S, k, O, A);
1971
+ d.vnode = h, d.next = null, ma(d, h.props, C, g), Sa(d, h.children, g), Rt(), Ms(d), kt();
1972
+ }, Le = (d, h, g, C, b, S, R, O, P = !1) => {
1973
+ const E = d && d.children, F = d ? d.shapeFlag : 0, D = h.children, { patchFlag: H, shapeFlag: z } = h;
1974
+ if (H > 0) {
1975
+ if (H & 128) {
1976
+ Xe(E, D, g, C, b, S, R, O, P);
1977
1977
  return;
1978
- } else if (W & 256) {
1979
- je(E, D, g, C, b, S, k, O, A);
1978
+ } else if (H & 256) {
1979
+ je(E, D, g, C, b, S, R, O, P);
1980
1980
  return;
1981
1981
  }
1982
1982
  }
1983
- z & 8 ? (F & 16 && Qe(E, b, S), D !== E && c(g, D)) : F & 16 ? z & 16 ? Xe(E, D, g, C, b, S, k, O, A) : Qe(E, b, S, !0) : (F & 8 && c(g, ""), z & 16 && q(D, g, C, b, S, k, O, A));
1984
- }, je = (d, h, g, C, b, S, k, O, A) => {
1983
+ z & 8 ? (F & 16 && Qe(E, b, S), D !== E && c(g, D)) : F & 16 ? z & 16 ? Xe(E, D, g, C, b, S, R, O, P) : Qe(E, b, S, !0) : (F & 8 && c(g, ""), z & 16 && q(D, g, C, b, S, R, O, P));
1984
+ }, je = (d, h, g, C, b, S, R, O, P) => {
1985
1985
  d = d || rn, h = h || rn;
1986
1986
  const E = d.length, F = h.length, D = Math.min(E, F);
1987
- let W;
1988
- for (W = 0; W < D; W++) {
1989
- const z = h[W] = A ? It(h[W]) : St(h[W]);
1990
- v(d[W], z, g, null, b, S, k, O, A);
1987
+ let H;
1988
+ for (H = 0; H < D; H++) {
1989
+ const z = h[H] = P ? It(h[H]) : St(h[H]);
1990
+ v(d[H], z, g, null, b, S, R, O, P);
1991
1991
  }
1992
- E > F ? Qe(d, b, S, !0, !1, D) : q(h, g, C, b, S, k, O, A, D);
1993
- }, Xe = (d, h, g, C, b, S, k, O, A) => {
1992
+ E > F ? Qe(d, b, S, !0, !1, D) : q(h, g, C, b, S, R, O, P, D);
1993
+ }, Xe = (d, h, g, C, b, S, R, O, P) => {
1994
1994
  let E = 0;
1995
1995
  const F = h.length;
1996
- let D = d.length - 1, W = F - 1;
1997
- for (; E <= D && E <= W; ) {
1998
- const z = d[E], J = h[E] = A ? It(h[E]) : St(h[E]);
1999
- if (wn(z, J)) v(z, J, g, null, b, S, k, O, A);
1996
+ let D = d.length - 1, H = F - 1;
1997
+ for (; E <= D && E <= H; ) {
1998
+ const z = d[E], J = h[E] = P ? It(h[E]) : St(h[E]);
1999
+ if (wn(z, J)) v(z, J, g, null, b, S, R, O, P);
2000
2000
  else break;
2001
2001
  E++;
2002
2002
  }
2003
- for (; E <= D && E <= W; ) {
2004
- const z = d[D], J = h[W] = A ? It(h[W]) : St(h[W]);
2005
- if (wn(z, J)) v(z, J, g, null, b, S, k, O, A);
2003
+ for (; E <= D && E <= H; ) {
2004
+ const z = d[D], J = h[H] = P ? It(h[H]) : St(h[H]);
2005
+ if (wn(z, J)) v(z, J, g, null, b, S, R, O, P);
2006
2006
  else break;
2007
- D--, W--;
2007
+ D--, H--;
2008
2008
  }
2009
2009
  if (E > D) {
2010
- if (E <= W) {
2011
- const z = W + 1, J = z < F ? h[z].el : C;
2012
- for (; E <= W; )
2013
- v(null, h[E] = A ? It(h[E]) : St(h[E]), g, J, b, S, k, O, A), E++;
2010
+ if (E <= H) {
2011
+ const z = H + 1, J = z < F ? h[z].el : C;
2012
+ for (; E <= H; )
2013
+ v(null, h[E] = P ? It(h[E]) : St(h[E]), g, J, b, S, R, O, P), E++;
2014
2014
  }
2015
- } else if (E > W) for (; E <= D; )
2015
+ } else if (E > H) for (; E <= D; )
2016
2016
  Ne(d[E], b, S, !0), E++;
2017
2017
  else {
2018
2018
  const z = E, J = E, le = /* @__PURE__ */ new Map();
2019
- for (E = J; E <= W; E++) {
2020
- const ye = h[E] = A ? It(h[E]) : St(h[E]);
2019
+ for (E = J; E <= H; E++) {
2020
+ const ye = h[E] = P ? It(h[E]) : St(h[E]);
2021
2021
  ye.key != null && le.set(ye.key, E);
2022
2022
  }
2023
2023
  let ee, Q = 0;
2024
- const pe = W - J + 1;
2024
+ const pe = H - J + 1;
2025
2025
  let Ce = !1, Ie = 0;
2026
2026
  const dt = new Array(pe);
2027
2027
  for (E = 0; E < pe; E++) dt[E] = 0;
@@ -2033,20 +2033,20 @@ function wa(e, t) {
2033
2033
  }
2034
2034
  let Se;
2035
2035
  if (ye.key != null) Se = le.get(ye.key);
2036
- else for (ee = J; ee <= W; ee++) if (dt[ee - J] === 0 && wn(ye, h[ee])) {
2036
+ else for (ee = J; ee <= H; ee++) if (dt[ee - J] === 0 && wn(ye, h[ee])) {
2037
2037
  Se = ee;
2038
2038
  break;
2039
2039
  }
2040
- Se === void 0 ? Ne(ye, b, S, !0) : (dt[Se - J] = E + 1, Se >= Ie ? Ie = Se : Ce = !0, v(ye, h[Se], g, null, b, S, k, O, A), Q++);
2040
+ Se === void 0 ? Ne(ye, b, S, !0) : (dt[Se - J] = E + 1, Se >= Ie ? Ie = Se : Ce = !0, v(ye, h[Se], g, null, b, S, R, O, P), Q++);
2041
2041
  }
2042
2042
  const jt = Ce ? Ca(dt) : rn;
2043
2043
  for (ee = jt.length - 1, E = pe - 1; E >= 0; E--) {
2044
2044
  const ye = J + E, Se = h[ye], Ue = h[ye + 1], $t = ye + 1 < F ? Ue.el || sl(Ue) : C;
2045
- dt[E] === 0 ? v(null, Se, g, $t, b, S, k, O, A) : Ce && (ee < 0 || E !== jt[ee] ? ze(Se, g, $t, 2) : ee--);
2045
+ dt[E] === 0 ? v(null, Se, g, $t, b, S, R, O, P) : Ce && (ee < 0 || E !== jt[ee] ? ze(Se, g, $t, 2) : ee--);
2046
2046
  }
2047
2047
  }
2048
2048
  }, ze = (d, h, g, C, b = null) => {
2049
- const { el: S, type: k, transition: O, children: A, shapeFlag: E } = d;
2049
+ const { el: S, type: R, transition: O, children: P, shapeFlag: E } = d;
2050
2050
  if (E & 6) {
2051
2051
  ze(d.component.subTree, h, g, C);
2052
2052
  return;
@@ -2056,52 +2056,52 @@ function wa(e, t) {
2056
2056
  return;
2057
2057
  }
2058
2058
  if (E & 64) {
2059
- k.move(d, h, g, ge);
2059
+ R.move(d, h, g, ge);
2060
2060
  return;
2061
2061
  }
2062
- if (k === be) {
2062
+ if (R === be) {
2063
2063
  n(S, h, g);
2064
- for (let F = 0; F < A.length; F++) ze(A[F], h, g, C);
2064
+ for (let F = 0; F < P.length; F++) ze(P[F], h, g, C);
2065
2065
  n(d.anchor, h, g);
2066
2066
  return;
2067
2067
  }
2068
- if (k === Rn) {
2069
- P(d, h, g);
2068
+ if (R === kn) {
2069
+ A(d, h, g);
2070
2070
  return;
2071
2071
  }
2072
2072
  if (C !== 2 && E & 1 && O)
2073
2073
  if (C === 0)
2074
- O.persisted && !S[ki] ? n(S, h, g) : (O.beforeEnter(S), n(S, h, g), qe(() => O.enter(S), b));
2074
+ O.persisted && !S[Ri] ? n(S, h, g) : (O.beforeEnter(S), n(S, h, g), qe(() => O.enter(S), b));
2075
2075
  else {
2076
- const { leave: F, delayLeave: D, afterLeave: W } = O, z = () => {
2076
+ const { leave: F, delayLeave: D, afterLeave: H } = O, z = () => {
2077
2077
  d.ctx.isUnmounted ? s(S) : n(S, h, g);
2078
2078
  }, J = () => {
2079
- const le = S._isLeaving || !!S[ki];
2080
- S._isLeaving && S[ki](!0), O.persisted && !le ? z() : F(S, () => {
2081
- z(), W && W();
2079
+ const le = S._isLeaving || !!S[Ri];
2080
+ S._isLeaving && S[Ri](!0), O.persisted && !le ? z() : F(S, () => {
2081
+ z(), H && H();
2082
2082
  });
2083
2083
  };
2084
2084
  D ? D(S, z, J) : J();
2085
2085
  }
2086
2086
  else n(S, h, g);
2087
2087
  }, Ne = (d, h, g, C = !1, b = !1) => {
2088
- const { type: S, props: k, ref: O, children: A, dynamicChildren: E, shapeFlag: F, patchFlag: D, dirs: W, cacheIndex: z, memo: J } = d;
2089
- if (D === -2 && (b = !1), O != null && (kt(), On(O, null, g, d, !0), Rt()), z != null && (h.renderCache[z] = void 0), F & 256) {
2088
+ const { type: S, props: R, ref: O, children: P, dynamicChildren: E, shapeFlag: F, patchFlag: D, dirs: H, cacheIndex: z, memo: J } = d;
2089
+ if (D === -2 && (b = !1), O != null && (Rt(), On(O, null, g, d, !0), kt()), z != null && (h.renderCache[z] = void 0), F & 256) {
2090
2090
  h.ctx.deactivate(d);
2091
2091
  return;
2092
2092
  }
2093
- const le = F & 1 && W, ee = !un(d);
2093
+ const le = F & 1 && H, ee = !un(d);
2094
2094
  let Q;
2095
- if (ee && (Q = k && k.onVnodeBeforeUnmount) && mt(Q, h, d), F & 6) Ct(d.component, g, C);
2095
+ if (ee && (Q = R && R.onVnodeBeforeUnmount) && mt(Q, h, d), F & 6) Ct(d.component, g, C);
2096
2096
  else {
2097
2097
  if (F & 128) {
2098
2098
  d.suspense.unmount(g, C);
2099
2099
  return;
2100
2100
  }
2101
- le && Ut(d, null, h, "beforeUnmount"), F & 64 ? d.type.remove(d, h, g, ge, C) : E && !E.hasOnce && (S !== be || D > 0 && D & 64) ? Qe(E, h, g, !1, !0) : (S === be && D & 384 || !b && F & 16) && Qe(A, h, g), C && ot(d);
2101
+ le && Ut(d, null, h, "beforeUnmount"), F & 64 ? d.type.remove(d, h, g, ge, C) : E && !E.hasOnce && (S !== be || D > 0 && D & 64) ? Qe(E, h, g, !1, !0) : (S === be && D & 384 || !b && F & 16) && Qe(P, h, g), C && ot(d);
2102
2102
  }
2103
2103
  const pe = J != null && z == null;
2104
- (ee && (Q = k && k.onVnodeUnmounted) || le || pe) && qe(() => {
2104
+ (ee && (Q = R && R.onVnodeUnmounted) || le || pe) && qe(() => {
2105
2105
  Q && mt(Q, h, d), le && Ut(d, null, h, "unmounted"), pe && (d.el = null);
2106
2106
  }, g);
2107
2107
  }, ot = (d) => {
@@ -2110,16 +2110,16 @@ function wa(e, t) {
2110
2110
  ut(g, C);
2111
2111
  return;
2112
2112
  }
2113
- if (h === Rn) {
2114
- I(d);
2113
+ if (h === kn) {
2114
+ M(d);
2115
2115
  return;
2116
2116
  }
2117
2117
  const S = () => {
2118
2118
  s(g), b && !b.persisted && b.afterLeave && b.afterLeave();
2119
2119
  };
2120
2120
  if (d.shapeFlag & 1 && b && !b.persisted) {
2121
- const { leave: k, delayLeave: O } = b, A = () => k(g, S);
2122
- O ? O(d.el, S, A) : A();
2121
+ const { leave: R, delayLeave: O } = b, P = () => R(g, S);
2122
+ O ? O(d.el, S, P) : P();
2123
2123
  } else S();
2124
2124
  }, ut = (d, h) => {
2125
2125
  let g;
@@ -2127,14 +2127,14 @@ function wa(e, t) {
2127
2127
  g = p(d), s(d), d = g;
2128
2128
  s(h);
2129
2129
  }, Ct = (d, h, g) => {
2130
- const { bum: C, scope: b, job: S, subTree: k, um: O, m: A, a: E } = d;
2131
- Ns(A), Ns(E), C && Mi(C), b.stop(), S && (S.flags |= 8, Ne(k, d, h, g)), O && qe(O, h), qe(() => {
2130
+ const { bum: C, scope: b, job: S, subTree: R, um: O, m: P, a: E } = d;
2131
+ Ns(P), Ns(E), C && Mi(C), b.stop(), S && (S.flags |= 8, Ne(R, d, h, g)), O && qe(O, h), qe(() => {
2132
2132
  d.isUnmounted = !0;
2133
2133
  }, h);
2134
2134
  }, Qe = (d, h, g, C = !1, b = !1, S = 0) => {
2135
- for (let k = S; k < d.length; k++) Ne(d[k], h, g, C, b);
2136
- }, ke = (d) => {
2137
- if (d.shapeFlag & 6) return ke(d.component.subTree);
2135
+ for (let R = S; R < d.length; R++) Ne(d[R], h, g, C, b);
2136
+ }, Re = (d) => {
2137
+ if (d.shapeFlag & 6) return Re(d.component.subTree);
2138
2138
  if (d.shapeFlag & 128) return d.suspense.next();
2139
2139
  const h = p(d.anchor || d.el), g = h && h[zr];
2140
2140
  return g ? p(g) : h;
@@ -2152,7 +2152,7 @@ function wa(e, t) {
2152
2152
  mc: q,
2153
2153
  pc: Le,
2154
2154
  pbc: oe,
2155
- n: ke,
2155
+ n: Re,
2156
2156
  o: e
2157
2157
  };
2158
2158
  let ct, et;
@@ -2216,7 +2216,7 @@ var rl = (e) => e.__isSuspense;
2216
2216
  function xa(e, t) {
2217
2217
  t && t.pendingBranch ? X(e) ? t.effects.push(...e) : t.effects.push(e) : Br(e);
2218
2218
  }
2219
- var be = /* @__PURE__ */ Symbol.for("v-fgt"), Ei = /* @__PURE__ */ Symbol.for("v-txt"), Nt = /* @__PURE__ */ Symbol.for("v-cmt"), Rn = /* @__PURE__ */ Symbol.for("v-stc"), Ln = [], it = null;
2219
+ var be = /* @__PURE__ */ Symbol.for("v-fgt"), Ei = /* @__PURE__ */ Symbol.for("v-txt"), Nt = /* @__PURE__ */ Symbol.for("v-cmt"), kn = /* @__PURE__ */ Symbol.for("v-stc"), Ln = [], it = null;
2220
2220
  function $(e = !1) {
2221
2221
  Ln.push(it = e ? null : []);
2222
2222
  }
@@ -2242,7 +2242,7 @@ function gs(e) {
2242
2242
  function wn(e, t) {
2243
2243
  return e.type === t.type && e.key === t.key;
2244
2244
  }
2245
- var ol = ({ key: e }) => e ?? null, Qn = ({ ref: e, ref_key: t, ref_for: i }) => (typeof e == "number" && (e = "" + e), e != null ? Te(e) || /* @__PURE__ */ Re(e) || ue(e) ? {
2245
+ var ol = ({ key: e }) => e ?? null, Qn = ({ ref: e, ref_key: t, ref_for: i }) => (typeof e == "number" && (e = "" + e), e != null ? Te(e) || /* @__PURE__ */ ke(e) || ue(e) ? {
2246
2246
  i: Ve,
2247
2247
  r: e,
2248
2248
  k: t,
@@ -2335,7 +2335,7 @@ function ms(e = " ", t = 0) {
2335
2335
  return Ae(Ei, null, e, t);
2336
2336
  }
2337
2337
  function Zi(e, t) {
2338
- const i = Ae(Rn, null, e);
2338
+ const i = Ae(kn, null, e);
2339
2339
  return i.staticCount = t, i;
2340
2340
  }
2341
2341
  function ae(e = "", t = !1) {
@@ -2392,10 +2392,10 @@ function Aa(...e) {
2392
2392
  function mt(e, t, i, n = null) {
2393
2393
  wt(e, t, 7, [i, n]);
2394
2394
  }
2395
- var Oa = Gr(), ka = 0;
2396
- function Ra(e, t, i) {
2395
+ var Oa = Gr(), Ra = 0;
2396
+ function ka(e, t, i) {
2397
2397
  const n = e.type, s = (t ? t.appContext : e.appContext) || Oa, r = {
2398
- uid: ka++,
2398
+ uid: Ra++,
2399
2399
  vnode: e,
2400
2400
  type: n,
2401
2401
  parent: t,
@@ -2494,9 +2494,9 @@ function Na(e, t) {
2494
2494
  e.accessCache = /* @__PURE__ */ Object.create(null), e.proxy = new Proxy(e.ctx, ra);
2495
2495
  const { setup: n } = i;
2496
2496
  if (n) {
2497
- kt();
2497
+ Rt();
2498
2498
  const s = e.setupContext = n.length > 1 ? cl(e) : null, r = _s(e), l = jn(n, e, 0, [e.props, s]), o = fr(l);
2499
- if (Rt(), r(), (o || e.sp) && !un(e) && ea(e), o) {
2499
+ if (kt(), r(), (o || e.sp) && !un(e) && ea(e), o) {
2500
2500
  if (l.then(Fs, Fs), t) return l.then((a) => {
2501
2501
  $s(e, a, t);
2502
2502
  }).catch((a) => {
@@ -2541,13 +2541,13 @@ function cl(e) {
2541
2541
  };
2542
2542
  }
2543
2543
  function Ti(e) {
2544
- return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(Dr(ko(e.exposed)), {
2544
+ return e.exposed ? e.exposeProxy || (e.exposeProxy = new Proxy(Dr(Ro(e.exposed)), {
2545
2545
  get(t, i) {
2546
2546
  if (i in t) return t[i];
2547
- if (i in kn) return kn[i](e);
2547
+ if (i in Rn) return Rn[i](e);
2548
2548
  },
2549
2549
  has(t, i) {
2550
- return i in t || i in kn;
2550
+ return i in t || i in Rn;
2551
2551
  }
2552
2552
  })) : e.proxy;
2553
2553
  }
@@ -2654,7 +2654,7 @@ function ts(e, t) {
2654
2654
  for (; e.component; ) e = e.component.subTree;
2655
2655
  if (e.shapeFlag & 1 && e.el) ui(e.el, t);
2656
2656
  else if (e.type === be) e.children.forEach((i) => ts(i, t));
2657
- else if (e.type === Rn) {
2657
+ else if (e.type === kn) {
2658
2658
  let { el: i, anchor: n } = e;
2659
2659
  for (; i && (ui(i, t), i !== n); )
2660
2660
  i = i.nextSibling;
@@ -3066,7 +3066,7 @@ function pn() {
3066
3066
  var El = /* @__PURE__ */ Je({
3067
3067
  __name: "Frame",
3068
3068
  setup(e, { expose: t }) {
3069
- const i = /* @__PURE__ */ R(null), { frameLoading: n, showEmptyState: s, showError: r, iframeSource: l, emptyStateText: o, emptyStateActionText: a, handleEmptyAction: u, handleFrameLoaded: c } = pn();
3069
+ const i = /* @__PURE__ */ k(null), { frameLoading: n, showEmptyState: s, showError: r, iframeSource: l, emptyStateText: o, emptyStateActionText: a, handleEmptyAction: u, handleFrameLoaded: c } = pn();
3070
3070
  function f(m, T) {
3071
3071
  i.value?.contentWindow && i.value.contentWindow.postMessage({
3072
3072
  type: m,
@@ -3132,7 +3132,7 @@ var Iu = El, wl = /* @__PURE__ */ Je({
3132
3132
  __name: "Header",
3133
3133
  setup(e, { expose: t }) {
3134
3134
  t();
3135
- const { title: i, sessionListTitle: n, sessionListCollapsed: s, selectMode: r, selectEnabled: l, theme: o, resolvedTheme: a, minimized: u, promptDockVisible: c, reviewPanelVisible: f, reviewPanelEnabled: p, mode: m, displayMode: T, splitPosition: v, handleToggleSessionList: _, handleToggleSelectMode: L, handleToggleTheme: M, handleToggleDisplayMode: P, handleToggleSplitPosition: I, handleClose: V, handleToggleMinimize: Z, handleTogglePromptDock: B, handleToggleReviewPanel: q, handleRefresh: H, handleCreateSession: oe } = pn(), K = {
3135
+ const { title: i, sessionListTitle: n, sessionListCollapsed: s, selectMode: r, selectEnabled: l, theme: o, resolvedTheme: a, minimized: u, promptDockVisible: c, reviewPanelVisible: f, reviewPanelEnabled: p, mode: m, displayMode: T, splitPosition: v, handleToggleSessionList: _, handleToggleSelectMode: L, handleToggleTheme: I, handleToggleDisplayMode: A, handleToggleSplitPosition: M, handleClose: B, handleToggleMinimize: Z, handleTogglePromptDock: W, handleToggleReviewPanel: q, handleRefresh: V, handleCreateSession: oe } = pn(), K = {
3136
3136
  title: i,
3137
3137
  sessionListTitle: n,
3138
3138
  sessionListCollapsed: s,
@@ -3149,14 +3149,14 @@ var Iu = El, wl = /* @__PURE__ */ Je({
3149
3149
  splitPosition: v,
3150
3150
  handleToggleSessionList: _,
3151
3151
  handleToggleSelectMode: L,
3152
- handleToggleTheme: M,
3153
- handleToggleDisplayMode: P,
3154
- handleToggleSplitPosition: I,
3155
- handleClose: V,
3152
+ handleToggleTheme: I,
3153
+ handleToggleDisplayMode: A,
3154
+ handleToggleSplitPosition: M,
3155
+ handleClose: B,
3156
3156
  handleToggleMinimize: Z,
3157
- handleTogglePromptDock: B,
3157
+ handleTogglePromptDock: W,
3158
3158
  handleToggleReviewPanel: q,
3159
- handleRefresh: H,
3159
+ handleRefresh: V,
3160
3160
  handleCreateSession: oe,
3161
3161
  isSplitMode: U(() => m.value === "split"),
3162
3162
  themeIconTitle: U(() => `主题: ${{
@@ -3205,7 +3205,7 @@ var Iu = El, wl = /* @__PURE__ */ Je({
3205
3205
  "title",
3206
3206
  "aria-label",
3207
3207
  "aria-expanded"
3208
- ], ku = ["aria-pressed", "disabled"], Ru = ["title", "aria-label"], Lu = {
3208
+ ], Ru = ["aria-pressed", "disabled"], ku = ["title", "aria-label"], Lu = {
3209
3209
  key: 0,
3210
3210
  viewBox: "0 0 24 24",
3211
3211
  width: "16",
@@ -3349,14 +3349,14 @@ function Ju(e, t, i, n, s, r) {
3349
3349
  }), y("path", {
3350
3350
  fill: "currentColor",
3351
3351
  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"
3352
- })], -1))])], 10, ku),
3352
+ })], -1))])], 10, Ru),
3353
3353
  y("button", {
3354
3354
  class: "aipanel-header-btn theme-btn",
3355
3355
  type: "button",
3356
3356
  title: n.themeIconTitle,
3357
3357
  "aria-label": n.themeIconLabel,
3358
3358
  onClick: t[2] || (t[2] = (...l) => n.handleToggleTheme && n.handleToggleTheme(...l))
3359
- }, [te(e.$slots, "theme-icon", {}, () => [n.theme === "light" ? ($(), j("svg", Lu, [...t[13] || (t[13] = [Zi('<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)])])) : n.theme === "dark" ? ($(), j("svg", Nu, [...t[14] || (t[14] = [y("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }, null, -1)])])) : ($(), j("svg", Du, [...t[15] || (t[15] = [Zi('<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, Ru),
3359
+ }, [te(e.$slots, "theme-icon", {}, () => [n.theme === "light" ? ($(), j("svg", Lu, [...t[13] || (t[13] = [Zi('<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)])])) : n.theme === "dark" ? ($(), j("svg", Nu, [...t[14] || (t[14] = [y("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }, null, -1)])])) : ($(), j("svg", Du, [...t[15] || (t[15] = [Zi('<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, ku),
3360
3360
  n.displayMode !== "extension" ? ($(), j("button", {
3361
3361
  key: 0,
3362
3362
  class: "aipanel-header-btn display-mode-btn",
@@ -3563,7 +3563,7 @@ var Zu = wl, Tl = /* @__PURE__ */ Je({
3563
3563
  __name: "SessionList",
3564
3564
  setup(e, { expose: t }) {
3565
3565
  t();
3566
- const { sessionListCollapsed: i, sessionItems: n, loadingSessionList: s, showSessionListSkeleton: r, handleCreateSession: l, handleSelectSession: o, handleDeleteSession: a, sessionKey: u, sessionStates: c } = pn(), f = /* @__PURE__ */ R(!1);
3566
+ const { sessionListCollapsed: i, sessionItems: n, loadingSessionList: s, showSessionListSkeleton: r, handleCreateSession: l, handleSelectSession: o, handleDeleteSession: a, sessionKey: u, sessionStates: c } = pn(), f = /* @__PURE__ */ k(!1);
3567
3567
  let p = null;
3568
3568
  Be(i, () => {
3569
3569
  f.value = !0, p && clearTimeout(p), p = setTimeout(() => {
@@ -3729,7 +3729,7 @@ var _c = Cl, xl = /* @__PURE__ */ Je({
3729
3729
  ],
3730
3730
  setup(e, { expose: t, emit: i }) {
3731
3731
  t();
3732
- const n = e, s = i, r = /* @__PURE__ */ R(!1), l = /* @__PURE__ */ R(0), o = /* @__PURE__ */ R(0), a = (m) => {
3732
+ const n = e, s = i, r = /* @__PURE__ */ k(!1), l = /* @__PURE__ */ k(0), o = /* @__PURE__ */ k(0), a = (m) => {
3733
3733
  m.preventDefault(), r.value = !0, l.value = m.clientX, o.value = n.width, s("resize-start"), document.addEventListener("mousemove", u), document.addEventListener("mouseup", c);
3734
3734
  }, u = (m) => {
3735
3735
  if (!r.value) return;
@@ -3867,7 +3867,7 @@ var bc = xl, Ml = /* @__PURE__ */ Je({
3867
3867
  "-animationOrigin.x": m.animationOrigin.x,
3868
3868
  "-animationOrigin.y": m.animationOrigin.y
3869
3869
  }));
3870
- const n = e, s = i, r = Kr(), l = /* @__PURE__ */ R(null), o = (m, T) => {
3870
+ const n = e, s = i, r = Kr(), l = /* @__PURE__ */ k(null), o = (m, T) => {
3871
3871
  l.value?.sendMessageToIframe(m, T);
3872
3872
  };
3873
3873
  t({
@@ -4068,7 +4068,7 @@ function Oc(e, t, i, n, s, r) {
4068
4068
  return $(), j("div", { class: xe(["aipanel-select-mode-hint", { visible: n.visible }]) }, [t[0] || (t[0] = Zi('<span class="aipanel-hint-main"><span class="aipanel-hint-icon" aria-hidden="true"><svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="8"></circle><circle cx="12" cy="12" r="2.5" fill="currentColor"></circle><line x1="12" y1="2" x2="12" y2="5"></line><line x1="12" y1="19" x2="12" y2="22"></line><line x1="2" y1="12" x2="5" y2="12"></line><line x1="19" y1="12" x2="22" y2="12"></line></svg></span><span class="aipanel-hint-text">选择模式已开启 · 点击元素进行选择</span></span>', 1)), y("span", Ac, $e(n.shortcutLabel), 1)], 2);
4069
4069
  }
4070
4070
  Il.render = Oc;
4071
- var kc = Il, Pl = /* @__PURE__ */ Je({
4071
+ var Rc = Il, Pl = /* @__PURE__ */ Je({
4072
4072
  name: "FloatingBubble",
4073
4073
  __name: "FloatingBubble",
4074
4074
  props: {
@@ -4106,12 +4106,12 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
4106
4106
  "drag-end"
4107
4107
  ],
4108
4108
  setup(e, { expose: t, emit: i }) {
4109
- const n = e, s = i, r = /* @__PURE__ */ R(null), l = /* @__PURE__ */ R({
4109
+ const n = e, s = i, r = /* @__PURE__ */ k(null), l = /* @__PURE__ */ k({
4110
4110
  x: 0,
4111
4111
  y: 0,
4112
4112
  width: 0,
4113
4113
  height: 0
4114
- }), o = (N) => N !== null && typeof N == "object", a = U(() => o(n.gap) ? n.gap.x : n.gap), u = U(() => o(n.gap) ? n.gap.y : n.gap), c = /* @__PURE__ */ R(typeof window < "u" ? window.innerWidth : 0), f = /* @__PURE__ */ R(typeof window < "u" ? window.innerHeight : 0), p = U(() => ({
4114
+ }), o = (N) => N !== null && typeof N == "object", a = U(() => o(n.gap) ? n.gap.x : n.gap), u = U(() => o(n.gap) ? n.gap.y : n.gap), c = /* @__PURE__ */ k(typeof window < "u" ? window.innerWidth : 0), f = /* @__PURE__ */ k(typeof window < "u" ? window.innerHeight : 0), p = U(() => ({
4115
4115
  top: u.value,
4116
4116
  right: c.value - l.value.width - a.value,
4117
4117
  bottom: f.value - l.value.height - u.value,
@@ -4128,10 +4128,10 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
4128
4128
  const N = m([p.value.top, p.value.bottom], l.value.y);
4129
4129
  l.value.y = N;
4130
4130
  }
4131
- }, v = /* @__PURE__ */ R(!1), _ = /* @__PURE__ */ R(!1), L = /* @__PURE__ */ R(null), M = U(() => {
4131
+ }, v = /* @__PURE__ */ k(!1), _ = /* @__PURE__ */ k(!1), L = /* @__PURE__ */ k(null), I = U(() => {
4132
4132
  const N = {};
4133
4133
  return N.transform = `translate3d(${`${l.value.x}px`}, ${`${l.value.y}px`}, 0)`, v.value || !_.value ? N.transition = "none" : N.transition = "transform 0.3s ease", N;
4134
- }), P = () => {
4134
+ }), A = () => {
4135
4135
  if (!r.value || typeof window > "u") return;
4136
4136
  const N = r.value.getBoundingClientRect(), { offset: G } = n;
4137
4137
  let ne = G ? G.x : c.value - N.width - a.value, Y = G ? G.y : f.value - N.height - u.value;
@@ -4150,14 +4150,14 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
4150
4150
  };
4151
4151
  s("update:offset", ze), s("offset-change", ze);
4152
4152
  }
4153
- }, I = {
4154
- startX: /* @__PURE__ */ R(0),
4155
- startY: /* @__PURE__ */ R(0),
4156
- deltaX: /* @__PURE__ */ R(0),
4157
- deltaY: /* @__PURE__ */ R(0),
4158
- offsetX: /* @__PURE__ */ R(0),
4159
- offsetY: /* @__PURE__ */ R(0),
4160
- isTap: /* @__PURE__ */ R(!0),
4153
+ }, M = {
4154
+ startX: /* @__PURE__ */ k(0),
4155
+ startY: /* @__PURE__ */ k(0),
4156
+ deltaX: /* @__PURE__ */ k(0),
4157
+ deltaY: /* @__PURE__ */ k(0),
4158
+ offsetX: /* @__PURE__ */ k(0),
4159
+ offsetY: /* @__PURE__ */ k(0),
4160
+ isTap: /* @__PURE__ */ k(!0),
4161
4161
  start(N) {
4162
4162
  this.startX.value = "touches" in N ? N.touches[0].clientX : N.clientX, this.startY.value = "touches" in N ? N.touches[0].clientY : N.clientY, this.deltaX.value = 0, this.deltaY.value = 0, this.offsetX.value = 0, this.offsetY.value = 0, this.isTap.value = !0;
4163
4163
  },
@@ -4168,19 +4168,19 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
4168
4168
  this.isTap.value && (this.offsetX.value > Y || this.offsetY.value > Y) && (this.isTap.value = !1);
4169
4169
  }
4170
4170
  };
4171
- let V = 0, Z = 0;
4172
- const B = (N) => {
4173
- I.start(N), v.value = !0, V = l.value.x, Z = l.value.y, document.body.classList.add("floating-bubble-dragging"), "touches" in N || (window.addEventListener("mousemove", q, { passive: !1 }), window.addEventListener("mouseup", H));
4171
+ let B = 0, Z = 0;
4172
+ const W = (N) => {
4173
+ M.start(N), v.value = !0, B = l.value.x, Z = l.value.y, document.body.classList.add("floating-bubble-dragging"), "touches" in N || (window.addEventListener("mousemove", q, { passive: !1 }), window.addEventListener("mouseup", V));
4174
4174
  }, q = (N) => {
4175
4175
  N.cancelable && N.preventDefault();
4176
- const G = I.isTap.value;
4177
- if (I.move(N), G && !I.isTap.value && s("drag-start"), n.axis !== "lock" && !I.isTap.value) {
4176
+ const G = M.isTap.value;
4177
+ if (M.move(N), G && !M.isTap.value && s("drag-start"), n.axis !== "lock" && !M.isTap.value) {
4178
4178
  if (n.axis === "x" || n.axis === "xy") {
4179
- let Y = V + I.deltaX.value;
4179
+ let Y = B + M.deltaX.value;
4180
4180
  Y < p.value.left && (Y = p.value.left), Y > p.value.right && (Y = p.value.right), l.value.x = Y;
4181
4181
  }
4182
4182
  if (n.axis === "y" || n.axis === "xy") {
4183
- let Y = Z + I.deltaY.value;
4183
+ let Y = Z + M.deltaY.value;
4184
4184
  Y < p.value.top && (Y = p.value.top), Y > p.value.bottom && (Y = p.value.bottom), l.value.y = Y;
4185
4185
  }
4186
4186
  const ne = {
@@ -4189,39 +4189,39 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
4189
4189
  };
4190
4190
  s("update:offset", ne);
4191
4191
  }
4192
- }, H = (N) => {
4193
- v.value = !1, document.body.classList.remove("floating-bubble-dragging"), N && !("touches" in N) && N.type === "mouseup" && (window.removeEventListener("mousemove", q), window.removeEventListener("mouseup", H)), requestAnimationFrame(() => {
4194
- if (n.magnetic === "x" && !I.isTap.value) {
4192
+ }, V = (N) => {
4193
+ v.value = !1, document.body.classList.remove("floating-bubble-dragging"), N && !("touches" in N) && N.type === "mouseup" && (window.removeEventListener("mousemove", q), window.removeEventListener("mouseup", V)), requestAnimationFrame(() => {
4194
+ if (n.magnetic === "x" && !M.isTap.value) {
4195
4195
  const G = l.value.x + l.value.width / 2, ne = c.value / 2;
4196
4196
  L.value = G < ne ? "left" : "right";
4197
4197
  }
4198
- if (T(), !I.isTap.value) {
4198
+ if (T(), !M.isTap.value) {
4199
4199
  s("drag-end");
4200
4200
  const G = {
4201
4201
  x: l.value.x,
4202
4202
  y: l.value.y
4203
4203
  };
4204
- s("update:offset", G), (V !== G.x || Z !== G.y) && s("offset-change", G);
4204
+ s("update:offset", G), (B !== G.x || Z !== G.y) && s("offset-change", G);
4205
4205
  }
4206
4206
  });
4207
4207
  }, oe = (N) => {
4208
- I.isTap.value ? s("click", N) : N.stopPropagation();
4208
+ M.isTap.value ? s("click", N) : N.stopPropagation();
4209
4209
  }, K = () => {
4210
4210
  typeof window < "u" && (c.value = window.innerWidth, f.value = window.innerHeight);
4211
4211
  };
4212
4212
  Ze(() => {
4213
- P(), requestAnimationFrame(() => {
4213
+ A(), requestAnimationFrame(() => {
4214
4214
  _.value = !0;
4215
4215
  }), typeof window < "u" && window.addEventListener("resize", K), r.value && r.value.addEventListener("touchmove", q, { passive: !1 });
4216
4216
  }), Ye(() => {
4217
- document.body.classList.remove("floating-bubble-dragging"), typeof window < "u" && (window.removeEventListener("resize", K), window.removeEventListener("mousemove", q), window.removeEventListener("mouseup", H)), r.value && r.value.removeEventListener("touchmove", q);
4217
+ document.body.classList.remove("floating-bubble-dragging"), typeof window < "u" && (window.removeEventListener("resize", K), window.removeEventListener("mousemove", q), window.removeEventListener("mouseup", V)), r.value && r.value.removeEventListener("touchmove", q);
4218
4218
  }), Be([
4219
4219
  c,
4220
4220
  f,
4221
4221
  a,
4222
4222
  u
4223
- ], P), Be(() => n.offset, (N) => {
4224
- N && (L.value = null), P();
4223
+ ], A), Be(() => n.offset, (N) => {
4224
+ N && (L.value = null), A();
4225
4225
  }, { deep: !0 }), t({ offset: U(() => ({
4226
4226
  x: l.value.x,
4227
4227
  y: l.value.y
@@ -4242,14 +4242,14 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
4242
4242
  dragging: v,
4243
4243
  initialized: _,
4244
4244
  magneticSide: L,
4245
- rootStyle: M,
4246
- updateState: P,
4247
- touch: I,
4245
+ rootStyle: I,
4246
+ updateState: A,
4247
+ touch: M,
4248
4248
  get prevX() {
4249
- return V;
4249
+ return B;
4250
4250
  },
4251
4251
  set prevX(N) {
4252
- V = N;
4252
+ B = N;
4253
4253
  },
4254
4254
  get prevY() {
4255
4255
  return Z;
@@ -4257,9 +4257,9 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
4257
4257
  set prevY(N) {
4258
4258
  Z = N;
4259
4259
  },
4260
- onTouchStart: B,
4260
+ onTouchStart: W,
4261
4261
  onTouchMove: q,
4262
- onTouchEnd: H,
4262
+ onTouchEnd: V,
4263
4263
  onClick: oe,
4264
4264
  handleResize: K
4265
4265
  };
@@ -4269,7 +4269,7 @@ var kc = Il, Pl = /* @__PURE__ */ Je({
4269
4269
  }), Oe;
4270
4270
  }
4271
4271
  });
4272
- function Rc(e, t, i, n, s, r) {
4272
+ function kc(e, t, i, n, s, r) {
4273
4273
  return $(), Tt(Ur, { to: i.teleport }, [y("div", {
4274
4274
  ref: "rootRef",
4275
4275
  class: "floating-bubble",
@@ -4281,7 +4281,7 @@ function Rc(e, t, i, n, s, r) {
4281
4281
  onClickCapture: n.onClick
4282
4282
  }, [te(e.$slots, "default")], 36)], 8, ["to"]);
4283
4283
  }
4284
- Pl.render = Rc;
4284
+ Pl.render = kc;
4285
4285
  var Lc = Pl, Nc = `<svg t="1775402599580" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5390" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%">
4286
4286
  <defs>
4287
4287
  <linearGradient id="aipanel-logo-gradient" x1="0%" y1="0%" x2="100%" y2="100%">
@@ -4338,7 +4338,7 @@ var $c = Al, Ol = /* @__PURE__ */ Je({
4338
4338
  __name: "Trigger",
4339
4339
  emits: ["drag-start", "drag-end"],
4340
4340
  setup(e, { expose: t, emit: i }) {
4341
- const { buttonActive: n, open: s, hotkeyLabel: r, thinking: l, resolvedTheme: o, handleToggle: a, bubbleOffset: u, handleBubbleOffsetChange: c } = pn(), f = /* @__PURE__ */ R(u.value), p = i, m = (v) => {
4341
+ const { buttonActive: n, open: s, hotkeyLabel: r, thinking: l, resolvedTheme: o, handleToggle: a, bubbleOffset: u, handleBubbleOffsetChange: c } = pn(), f = /* @__PURE__ */ k(u.value), p = i, m = (v) => {
4342
4342
  f.value = v, c(v);
4343
4343
  };
4344
4344
  Be(u, (v) => {
@@ -4511,7 +4511,7 @@ var Bi = [
4511
4511
  "dark"
4512
4512
  ];
4513
4513
  function Gc(e) {
4514
- const t = /* @__PURE__ */ R("light");
4514
+ const t = /* @__PURE__ */ k("light");
4515
4515
  function i() {
4516
4516
  return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
4517
4517
  }
@@ -4558,7 +4558,7 @@ function Gc(e) {
4558
4558
  handleToggleTheme: T
4559
4559
  };
4560
4560
  }
4561
- function kl(e) {
4561
+ function Rl(e) {
4562
4562
  return typeof e == "object" && e !== null && e.nodeType === Node.ELEMENT_NODE;
4563
4563
  }
4564
4564
  var Hn = {
@@ -4604,11 +4604,11 @@ function Cn(e) {
4604
4604
  function Zc(e) {
4605
4605
  return Array.isArray(e) ? e.filter((t) => Yc(we, t)) : [];
4606
4606
  }
4607
- function Rl(e) {
4607
+ function kl(e) {
4608
4608
  return e instanceof RegExp;
4609
4609
  }
4610
4610
  function Qc(e) {
4611
- return ["string", "function"].includes(typeof e) || Rl(e);
4611
+ return ["string", "function"].includes(typeof e) || kl(e);
4612
4612
  }
4613
4613
  function er(e) {
4614
4614
  return Array.isArray(e) ? e.filter(Qc) : [];
@@ -4662,7 +4662,7 @@ function id(e) {
4662
4662
  }
4663
4663
  function di(e) {
4664
4664
  const t = e.map((i) => {
4665
- if (Rl(i)) return (n) => i.test(n);
4665
+ if (kl(i)) return (n) => i.test(n);
4666
4666
  if (typeof i == "function") return (n) => {
4667
4667
  const s = i(n);
4668
4668
  return typeof s != "boolean" ? (ci("pattern matcher function invalid", "Provided pattern matching function does not return boolean. It's result will be ignored.", i), !1) : s;
@@ -4684,7 +4684,7 @@ function Nl(e, t) {
4684
4684
  const i = [];
4685
4685
  let n = e;
4686
4686
  for (; n && n !== t; )
4687
- kl(n) && i.push(n), n = n.parentNode;
4687
+ Rl(n) && i.push(n), n = n.parentNode;
4688
4688
  return i;
4689
4689
  }
4690
4690
  function sd(e, t) {
@@ -4873,11 +4873,11 @@ function Od(e = [], t) {
4873
4873
  return s && !r ? -1 : !s && r ? 1 : 0;
4874
4874
  });
4875
4875
  }
4876
- function* kd(e, t) {
4877
- const i = /* @__PURE__ */ new Set(), n = Rd(e, t);
4876
+ function* Rd(e, t) {
4877
+ const i = /* @__PURE__ */ new Set(), n = kd(e, t);
4878
4878
  for (const s of Fd(n, t)) i.has(s) || (i.add(s), yield s);
4879
4879
  }
4880
- function Rd(e, t) {
4880
+ function kd(e, t) {
4881
4881
  const { blacklist: i, whitelist: n, combineWithinSelector: s, maxCombinations: r } = t, l = di(i), o = di(n), a = (u, c) => {
4882
4882
  const f = Od(Ad(Pd(e, c, t), l, o), o);
4883
4883
  return u[c] = s ? Array.from(zl(f, { maxResults: r })) : f.map((p) => [p]), u;
@@ -4921,7 +4921,7 @@ function* Vd(e, t) {
4921
4921
  else for (const i of e) yield* Hd([i], t);
4922
4922
  }
4923
4923
  function* jd(e, t, i = "", n) {
4924
- const s = kd(e, n);
4924
+ const s = Rd(e, n);
4925
4925
  for (const r of Vd(s, i)) ys(e, r, t) && (yield r);
4926
4926
  }
4927
4927
  function* zd(e, t, i = "", n) {
@@ -4949,7 +4949,7 @@ function* Ud({ elements: e, root: t, rootSelector: i = "", options: n }) {
4949
4949
  }
4950
4950
  function qd(e) {
4951
4951
  (e instanceof NodeList || e instanceof HTMLCollection) && (e = Array.from(e));
4952
- const t = (Array.isArray(e) ? e : [e]).filter(kl);
4952
+ const t = (Array.isArray(e) ? e : [e]).filter(Rl);
4953
4953
  return [...new Set(t)];
4954
4954
  }
4955
4955
  function Kd(e) {
@@ -5160,15 +5160,15 @@ function sr(e, t) {
5160
5160
  return hf(i, n);
5161
5161
  }
5162
5162
  function pf(e) {
5163
- const t = /* @__PURE__ */ R(!1), i = /* @__PURE__ */ R({
5163
+ const t = /* @__PURE__ */ k(!1), i = /* @__PURE__ */ k({
5164
5164
  top: "0px",
5165
5165
  left: "0px",
5166
5166
  width: "0px",
5167
5167
  height: "0px"
5168
- }), n = /* @__PURE__ */ R(!1), s = /* @__PURE__ */ R({
5168
+ }), n = /* @__PURE__ */ k(!1), s = /* @__PURE__ */ k({
5169
5169
  top: "0px",
5170
5170
  left: "0px"
5171
- }), r = /* @__PURE__ */ R({
5171
+ }), r = /* @__PURE__ */ k({
5172
5172
  description: "",
5173
5173
  fileInfo: ""
5174
5174
  }), l = 500;
@@ -5192,22 +5192,22 @@ function pf(e) {
5192
5192
  document.querySelector(".floating-bubble")
5193
5193
  ];
5194
5194
  c(L);
5195
- const M = ir(_), P = sr(_, M);
5196
- if (f(L), M) {
5197
- const I = document.querySelector(".aipanel-widget");
5198
- if (I) {
5199
- const G = getComputedStyle(I);
5195
+ const I = ir(_), A = sr(_, I);
5196
+ if (f(L), I) {
5197
+ const M = document.querySelector(".aipanel-widget");
5198
+ if (M) {
5199
+ const G = getComputedStyle(M);
5200
5200
  a = G.getPropertyValue("--ap-primary").trim() || a, u = G.getPropertyValue("--ap-primary-bg").trim() || u;
5201
5201
  }
5202
- const V = nr(M), Z = P.file ? P.file.split("/").pop() : "";
5203
- let B = "";
5204
- P.line && (B = `:${P.line}`, P.column && (B += `:${P.column}`));
5205
- const q = Z ? `${Z}${B}` : "";
5202
+ const B = nr(I), Z = A.file ? A.file.split("/").pop() : "";
5203
+ let W = "";
5204
+ A.line && (W = `:${A.line}`, A.column && (W += `:${A.column}`));
5205
+ const q = Z ? `${Z}${W}` : "";
5206
5206
  r.value = {
5207
- description: V,
5207
+ description: B,
5208
5208
  fileInfo: q
5209
5209
  };
5210
- const H = M.getBoundingClientRect(), oe = `${H.top}px`, K = `${H.left}px`, Oe = `${H.width}px`, N = `${H.height}px`;
5210
+ const V = I.getBoundingClientRect(), oe = `${V.top}px`, K = `${V.left}px`, Oe = `${V.width}px`, N = `${V.height}px`;
5211
5211
  (i.value.top !== oe || i.value.left !== K || i.value.width !== Oe || i.value.height !== N) && (i.value = {
5212
5212
  top: oe,
5213
5213
  left: K,
@@ -5220,9 +5220,9 @@ function pf(e) {
5220
5220
  if (!G) return;
5221
5221
  const ne = G.offsetWidth, Y = G.offsetHeight;
5222
5222
  if (ne === 0 || Y === 0) return;
5223
- const ie = 10, Le = 4, je = window.innerWidth, Xe = window.innerHeight, ze = (d) => Math.max(ie, Math.min(d, je - ne - ie)), Ne = (d) => Math.max(ie, Math.min(d, Xe - Y - ie)), ot = H.top - Y - Le, ut = H.bottom + Le, Ct = H.right + Le, Qe = H.left - ne - Le, ke = H.top + (H.height - Y) / 2;
5223
+ const ie = 10, Le = 4, je = window.innerWidth, Xe = window.innerHeight, ze = (d) => Math.max(ie, Math.min(d, je - ne - ie)), Ne = (d) => Math.max(ie, Math.min(d, Xe - Y - ie)), ot = V.top - Y - Le, ut = V.bottom + Le, Ct = V.right + Le, Qe = V.left - ne - Le, Re = V.top + (V.height - Y) / 2;
5224
5224
  let We = 0, Me = 0, ge = !1;
5225
- if (ot >= ie && (We = ot, Me = ze(H.left), ge = !0), !ge && ut + Y <= Xe - ie && (We = ut, Me = ze(H.left), ge = !0), !ge && Ct + ne <= je - ie && (Me = Ct, We = Ne(ke), ge = !0), !ge && Qe >= ie && (Me = Qe, We = Ne(ke), ge = !0), !ge) {
5225
+ if (ot >= ie && (We = ot, Me = ze(V.left), ge = !0), !ge && ut + Y <= Xe - ie && (We = ut, Me = ze(V.left), ge = !0), !ge && Ct + ne <= je - ie && (Me = Ct, We = Ne(Re), ge = !0), !ge && Qe >= ie && (Me = Qe, We = Ne(Re), ge = !0), !ge) {
5226
5226
  const d = [
5227
5227
  {
5228
5228
  top: ie,
@@ -5243,7 +5243,7 @@ function pf(e) {
5243
5243
  ];
5244
5244
  for (const h of d) {
5245
5245
  const g = h.left + ne, C = h.top + Y;
5246
- if (g <= H.left || H.right <= h.left || C <= H.top || H.bottom <= h.top) {
5246
+ if (g <= V.left || V.right <= h.left || C <= V.top || V.bottom <= h.top) {
5247
5247
  We = h.top, Me = h.left, ge = !0;
5248
5248
  break;
5249
5249
  }
@@ -5264,25 +5264,25 @@ function pf(e) {
5264
5264
  const _ = window.__VUE_INSPECTOR__;
5265
5265
  if (!_ || _.__aipanel_hooked) return;
5266
5266
  const L = _.handleClick.bind(_);
5267
- _.handleClick = function(M) {
5267
+ _.handleClick = function(I) {
5268
5268
  if (e.selectMode.value) {
5269
- const P = M.target instanceof Element ? M.target : null;
5270
- if (P && P.closest(".aipanel-widget")) return L.call(_, M);
5271
- M.preventDefault(), M.stopPropagation();
5272
- const I = ir(M), V = sr(M, I);
5273
- if (I) {
5274
- const Z = sf(I), B = nr(I), q = {
5275
- filePath: V.file,
5276
- line: V.line,
5277
- column: V.column,
5269
+ const A = I.target instanceof Element ? I.target : null;
5270
+ if (A && A.closest(".aipanel-widget")) return L.call(_, I);
5271
+ I.preventDefault(), I.stopPropagation();
5272
+ const M = ir(I), B = sr(I, M);
5273
+ if (M) {
5274
+ const Z = sf(M), W = nr(M), q = {
5275
+ filePath: B.file,
5276
+ line: B.line,
5277
+ column: B.column,
5278
5278
  innerText: bl(Z, 200),
5279
- description: B
5279
+ description: W
5280
5280
  };
5281
5281
  e.onAddSelectedNode(q);
5282
5282
  }
5283
5283
  return;
5284
5284
  }
5285
- return L.call(_, M);
5285
+ return L.call(_, I);
5286
5286
  }, _.__aipanel_hooked = !0;
5287
5287
  }
5288
5288
  function v(_) {
@@ -5361,7 +5361,7 @@ function mf(e) {
5361
5361
  }
5362
5362
  var _f = 1440;
5363
5363
  function yf(e) {
5364
- const t = /* @__PURE__ */ R(typeof window < "u" ? window.innerWidth : 0), i = /* @__PURE__ */ R(e.splitPosition?.value ?? "right"), n = U(() => e.displayMode.value === "extension"), s = U(() => n.value || e.displayMode.value === "extension-selector"), r = U(() => {
5364
+ const t = /* @__PURE__ */ k(typeof window < "u" ? window.innerWidth : 0), i = /* @__PURE__ */ k(e.splitPosition?.value ?? "right"), n = U(() => e.displayMode.value === "extension"), s = U(() => n.value || e.displayMode.value === "extension-selector"), r = U(() => {
5365
5365
  const v = e.splitMode.value || {}, _ = n.value;
5366
5366
  return {
5367
5367
  width: v.width ?? 500,
@@ -5372,7 +5372,7 @@ function yf(e) {
5372
5372
  defaultOpen: _ ? !0 : v.defaultOpen ?? !0,
5373
5373
  position: v.position ?? i.value
5374
5374
  };
5375
- }), l = /* @__PURE__ */ R(r.value.width), o = U(() => n.value ? "split" : e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || t.value >= _f ? "split" : "bubble"), a = U(() => o.value === "split"), u = U(() => r.value.position), c = (v) => {
5375
+ }), l = /* @__PURE__ */ k(r.value.width), o = U(() => n.value ? "split" : e.displayMode.value === "bubble" ? "bubble" : e.displayMode.value === "split" || t.value >= _f ? "split" : "bubble"), a = U(() => o.value === "split"), u = U(() => r.value.position), c = (v) => {
5376
5376
  l.value = v, e.onWidthChange?.(v);
5377
5377
  }, f = () => {
5378
5378
  const v = !e.open.value;
@@ -5589,14 +5589,14 @@ var Yl = /* @__PURE__ */ Je({
5589
5589
  "-chatAnimationOrigin.x": Qt.value.x,
5590
5590
  "-chatAnimationOrigin.y": Qt.value.y
5591
5591
  }));
5592
- const n = e, s = i, r = Kr(), l = /* @__PURE__ */ R(""), o = /* @__PURE__ */ R(!1), a = /* @__PURE__ */ R("widget");
5592
+ const n = e, s = i, r = Kr(), l = /* @__PURE__ */ k(""), o = /* @__PURE__ */ k(!1), a = /* @__PURE__ */ k("widget");
5593
5593
  let u = null;
5594
5594
  const c = (w, De) => {
5595
5595
  const { duration: at = 3e3, mode: ft = "widget" } = De || {};
5596
5596
  l.value = w, o.value = !0, a.value = ft, u && clearTimeout(u), u = setTimeout(() => {
5597
5597
  o.value = !1;
5598
5598
  }, at);
5599
- }, f = /* @__PURE__ */ R(!1), p = /* @__PURE__ */ R("");
5599
+ }, f = /* @__PURE__ */ k(!1), p = /* @__PURE__ */ k("");
5600
5600
  let m = null;
5601
5601
  const T = (w) => (p.value = w, f.value = !0, new Promise((De) => {
5602
5602
  m = De;
@@ -5604,34 +5604,34 @@ var Yl = /* @__PURE__ */ Je({
5604
5604
  f.value = !1, m && m(!0);
5605
5605
  }, _ = () => {
5606
5606
  f.value = !1, m && m(!1);
5607
- }, L = /* @__PURE__ */ R(null), M = /* @__PURE__ */ R(null), P = (w, De) => {
5607
+ }, L = /* @__PURE__ */ k(null), I = /* @__PURE__ */ k(null), A = (w, De) => {
5608
5608
  L.value?.sendMessageToIframe(w, De);
5609
- }, I = /* @__PURE__ */ R(n.sessionListCollapsed), V = /* @__PURE__ */ R(n.displayMode), Z = /* @__PURE__ */ R(n.splitMode?.position ?? "right"), B = /* @__PURE__ */ R(!1), q = /* @__PURE__ */ R(!0), H = /* @__PURE__ */ R(!1), oe = /* @__PURE__ */ R(!0), K = /* @__PURE__ */ R(!1), Oe = /* @__PURE__ */ R(!1), N = /* @__PURE__ */ R(n.splitPanelWidth), G = () => {
5610
- !K.value || !Oe.value || (P(de.PROMPT_DOCK_VISIBILITY, { visible: q.value }), P(de.MINIMIZE_STATE, { minimized: B.value }), n.reviewPanelEnabled && P(de.REVIEW_PANEL_TOGGLE, { visible: H.value }));
5609
+ }, M = /* @__PURE__ */ k(n.sessionListCollapsed), B = /* @__PURE__ */ k(n.displayMode), Z = /* @__PURE__ */ k(n.splitMode?.position ?? "right"), W = /* @__PURE__ */ k(!1), q = /* @__PURE__ */ k(!0), V = /* @__PURE__ */ k(!1), oe = /* @__PURE__ */ k(!0), K = /* @__PURE__ */ k(!1), Oe = /* @__PURE__ */ k(!1), N = /* @__PURE__ */ k(n.splitPanelWidth), G = () => {
5610
+ !K.value || !Oe.value || (A(de.PROMPT_DOCK_VISIBILITY, { visible: q.value }), A(de.MINIMIZE_STATE, { minimized: W.value }), n.reviewPanelEnabled && A(de.REVIEW_PANEL_TOGGLE, { visible: V.value }));
5611
5611
  }, ne = () => {
5612
5612
  s("frame-loaded"), K.value = !0;
5613
5613
  };
5614
5614
  Be(() => n.sessionListCollapsed, (w) => {
5615
- I.value = w;
5615
+ M.value = w;
5616
5616
  }), Be(() => n.splitPanelWidth, (w) => {
5617
5617
  N.value = w;
5618
5618
  }), Be(() => n.displayMode, (w) => {
5619
- V.value = w;
5619
+ B.value = w;
5620
5620
  });
5621
5621
  const Y = () => {
5622
- if (V.value === "extension" || V.value === "extension-selector") return;
5622
+ if (B.value === "extension" || B.value === "extension-selector") return;
5623
5623
  const w = [
5624
5624
  "bubble",
5625
5625
  "split",
5626
5626
  "auto"
5627
- ], De = (w.indexOf(V.value) + 1) % w.length;
5628
- V.value = w[De];
5627
+ ], De = (w.indexOf(B.value) + 1) % w.length;
5628
+ B.value = w[De];
5629
5629
  }, { buttonActive: ie, containerClasses: Le, iframeSource: je, sessionListTitle: Xe, resolvedTheme: ze, handleClose: Ne, handleEmptyAction: ot, handleToggle: ut, handleToggleSessionList: Ct, handleToggleTheme: Qe } = Gc({
5630
5630
  theme: /* @__PURE__ */ se(n, "theme"),
5631
5631
  open: /* @__PURE__ */ se(n, "open"),
5632
5632
  selectMode: /* @__PURE__ */ se(n, "selectMode"),
5633
5633
  iframeSrc: /* @__PURE__ */ se(n, "iframeSrc"),
5634
- sessionListCollapsed: I,
5634
+ sessionListCollapsed: M,
5635
5635
  onToggle: (w) => {
5636
5636
  s("update:open", w), s("toggle", w);
5637
5637
  },
@@ -5642,7 +5642,7 @@ var Yl = /* @__PURE__ */ Je({
5642
5642
  s("update:open", !1), s("close");
5643
5643
  },
5644
5644
  onToggleSessionList: (w) => {
5645
- I.value = w, s("update:sessionListCollapsed", w), s("toggle-session-list", w);
5645
+ M.value = w, s("update:sessionListCollapsed", w), s("toggle-session-list", w);
5646
5646
  },
5647
5647
  onEmptyAction: () => {
5648
5648
  s("empty-action");
@@ -5650,7 +5650,7 @@ var Yl = /* @__PURE__ */ Je({
5650
5650
  onToggleTheme: (w) => {
5651
5651
  s("update:theme", w), s("toggle-theme", w);
5652
5652
  }
5653
- }), { sessionItems: ke, handleCreateSession: We, handleDeleteSession: Me, handleSelectSession: ge } = Kc({
5653
+ }), { sessionItems: Re, handleCreateSession: We, handleDeleteSession: Me, handleSelectSession: ge } = Kc({
5654
5654
  sessions: /* @__PURE__ */ se(n, "sessions"),
5655
5655
  currentSessionId: /* @__PURE__ */ se(n, "currentSessionId"),
5656
5656
  onCreateSession: () => s("create-session"),
@@ -5674,7 +5674,7 @@ var Yl = /* @__PURE__ */ Je({
5674
5674
  s("clear-selected-nodes"), s("update:selectedElements", []);
5675
5675
  },
5676
5676
  showConfirmDialog: T
5677
- }), { highlightVisible: S, highlightStyle: k, tooltipVisible: O, tooltipStyle: A, tooltipContent: E } = pf({
5677
+ }), { highlightVisible: S, highlightStyle: R, tooltipVisible: O, tooltipStyle: P, tooltipContent: E } = pf({
5678
5678
  selectMode: /* @__PURE__ */ se(n, "selectMode"),
5679
5679
  onAddSelectedNode: (w) => {
5680
5680
  s("click-selected-node", w);
@@ -5682,8 +5682,8 @@ var Yl = /* @__PURE__ */ Je({
5682
5682
  onExitSelectMode: () => {
5683
5683
  s("update:selectMode", !1), s("toggle-select-mode", !1);
5684
5684
  }
5685
- }), F = /* @__PURE__ */ R(void 0), { effectiveMode: D, isSplitMode: W, isExtensionMode: z, panelWidth: J, splitConfig: le, splitPosition: ee, handleResize: Q, handleToggle: pe, handleTogglePosition: Ce } = yf({
5686
- displayMode: V,
5685
+ }), F = /* @__PURE__ */ k(void 0), { effectiveMode: D, isSplitMode: H, isExtensionMode: z, panelWidth: J, splitConfig: le, splitPosition: ee, handleResize: Q, handleToggle: pe, handleTogglePosition: Ce } = yf({
5686
+ displayMode: B,
5687
5687
  splitMode: /* @__PURE__ */ se(n, "splitMode"),
5688
5688
  open: /* @__PURE__ */ se(n, "open"),
5689
5689
  splitPosition: Z,
@@ -5699,24 +5699,24 @@ var Yl = /* @__PURE__ */ Je({
5699
5699
  });
5700
5700
  mf({
5701
5701
  open: /* @__PURE__ */ se(n, "open"),
5702
- minimized: B,
5702
+ minimized: W,
5703
5703
  promptDockVisible: q,
5704
- reviewPanelVisible: H,
5704
+ reviewPanelVisible: V,
5705
5705
  bubbleOffset: F,
5706
5706
  theme: /* @__PURE__ */ se(n, "theme"),
5707
- sessionListCollapsed: I,
5707
+ sessionListCollapsed: M,
5708
5708
  splitPanelWidth: N,
5709
- displayMode: V,
5709
+ displayMode: B,
5710
5710
  splitPosition: Z,
5711
5711
  onRestore: (w) => {
5712
- if (w.open !== void 0 && w.open !== n.open && (s("update:open", w.open), s("toggle", w.open)), w.minimized !== void 0 && (B.value = w.minimized), w.bubbleOffset !== void 0) {
5712
+ if (w.open !== void 0 && w.open !== n.open && (s("update:open", w.open), s("toggle", w.open)), w.minimized !== void 0 && (W.value = w.minimized), w.bubbleOffset !== void 0) {
5713
5713
  const ft = window.innerWidth - 44 - 10, tt = window.innerHeight - 44 - 10;
5714
5714
  F.value = {
5715
5715
  x: Math.max(10, Math.min(w.bubbleOffset.x, ft)),
5716
5716
  y: Math.max(10, Math.min(w.bubbleOffset.y, tt))
5717
5717
  };
5718
5718
  }
5719
- w.theme !== void 0 && w.theme !== n.theme && (s("update:theme", w.theme), s("toggle-theme", w.theme)), w.sessionListCollapsed !== void 0 && w.sessionListCollapsed !== n.sessionListCollapsed && (I.value = w.sessionListCollapsed, s("update:sessionListCollapsed", w.sessionListCollapsed)), w.promptDockVisible !== void 0 ? q.value = w.promptDockVisible : B.value && (q.value = !1), w.reviewPanelVisible !== void 0 && (H.value = w.reviewPanelVisible), w.splitPanelWidth !== void 0 && w.splitPanelWidth !== n.splitPanelWidth && Q(w.splitPanelWidth), w.displayMode !== void 0 && w.displayMode !== n.displayMode && n.displayMode !== "extension" && n.displayMode !== "extension-selector" && (V.value = w.displayMode), w.splitPosition !== void 0 && (Z.value = w.splitPosition), an(() => {
5719
+ w.theme !== void 0 && w.theme !== n.theme && (s("update:theme", w.theme), s("toggle-theme", w.theme)), w.sessionListCollapsed !== void 0 && w.sessionListCollapsed !== n.sessionListCollapsed && (M.value = w.sessionListCollapsed, s("update:sessionListCollapsed", w.sessionListCollapsed)), w.promptDockVisible !== void 0 ? q.value = w.promptDockVisible : W.value && (q.value = !1), w.reviewPanelVisible !== void 0 && (V.value = w.reviewPanelVisible), w.splitPanelWidth !== void 0 && w.splitPanelWidth !== n.splitPanelWidth && Q(w.splitPanelWidth), w.displayMode !== void 0 && w.displayMode !== n.displayMode && n.displayMode !== "extension" && n.displayMode !== "extension-selector" && (B.value = w.displayMode), w.splitPosition !== void 0 && (Z.value = w.splitPosition), an(() => {
5720
5720
  G(), setTimeout(() => {
5721
5721
  oe.value = !1;
5722
5722
  }, 50);
@@ -5724,14 +5724,14 @@ var Yl = /* @__PURE__ */ Je({
5724
5724
  }
5725
5725
  });
5726
5726
  const Ie = () => {
5727
- B.value = !B.value, q.value = !B.value, P(de.PROMPT_DOCK_VISIBILITY, { visible: q.value }), P(de.MINIMIZE_STATE, { minimized: B.value });
5727
+ W.value = !W.value, q.value = !W.value, A(de.PROMPT_DOCK_VISIBILITY, { visible: q.value }), A(de.MINIMIZE_STATE, { minimized: W.value });
5728
5728
  }, dt = () => {
5729
- q.value = !q.value, P(de.PROMPT_DOCK_VISIBILITY, { visible: q.value });
5729
+ q.value = !q.value, A(de.PROMPT_DOCK_VISIBILITY, { visible: q.value });
5730
5730
  }, jt = () => {
5731
- H.value = !H.value, P(de.REVIEW_PANEL_TOGGLE, { visible: H.value });
5731
+ V.value = !V.value, A(de.REVIEW_PANEL_TOGGLE, { visible: V.value });
5732
5732
  }, ye = () => {
5733
5733
  window.location.reload();
5734
- }, Se = /* @__PURE__ */ R(typeof window < "u" ? window.innerWidth : 0), Ue = /* @__PURE__ */ R(typeof window < "u" ? window.innerHeight : 0), $t = () => {
5734
+ }, Se = /* @__PURE__ */ k(typeof window < "u" ? window.innerWidth : 0), Ue = /* @__PURE__ */ k(typeof window < "u" ? window.innerHeight : 0), $t = () => {
5735
5735
  typeof window < "u" && (Se.value = window.innerWidth, Ue.value = window.innerHeight);
5736
5736
  }, vn = (w) => {
5737
5737
  w.data?.type === de.READY && (Oe.value = !0, G());
@@ -5743,14 +5743,14 @@ var Yl = /* @__PURE__ */ Je({
5743
5743
  });
5744
5744
  const gn = U(() => {
5745
5745
  if (typeof window > "u") return "bottom-right";
5746
- const w = Se.value / 2, De = Ue.value / 2, at = 44, ft = M.value?.offset ?? F.value, tt = (ft?.x ?? Se.value - at - 24) + at / 2, zt = (ft?.y ?? Ue.value - at - 24) + at / 2;
5746
+ const w = Se.value / 2, De = Ue.value / 2, at = 44, ft = I.value?.offset ?? F.value, tt = (ft?.x ?? Se.value - at - 24) + at / 2, zt = (ft?.y ?? Ue.value - at - 24) + at / 2;
5747
5747
  return tt >= w && zt >= De ? "bottom-right" : tt < w && zt >= De ? "bottom-left" : tt >= w && zt < De ? "top-right" : "top-left";
5748
5748
  }), x = U(() => {
5749
5749
  const w = gn.value;
5750
5750
  return w === "top-right" || w === "bottom-right";
5751
5751
  }), me = U(() => {
5752
5752
  if (typeof window > "u") return {};
5753
- const w = B.value ? 300 : 700, De = B.value ? 300 : Math.min(Ue.value * 0.86, Ue.value - 40), at = 24, ft = 44, tt = 20, zt = M.value?.offset ?? F.value ?? {
5753
+ const w = W.value ? 300 : 700, De = W.value ? 300 : Math.min(Ue.value * 0.86, Ue.value - 40), at = 24, ft = 44, tt = 20, zt = I.value?.offset ?? F.value ?? {
5754
5754
  x: Se.value - ft - at,
5755
5755
  y: Ue.value - ft - at
5756
5756
  }, en = {};
@@ -5795,7 +5795,7 @@ var Yl = /* @__PURE__ */ Je({
5795
5795
  y: "20px"
5796
5796
  };
5797
5797
  }
5798
- }), _n = /* @__PURE__ */ R(!1);
5798
+ }), _n = /* @__PURE__ */ k(!1);
5799
5799
  let qn = !1;
5800
5800
  const Xl = () => {
5801
5801
  _n.value = !0, qn = n.open, n.open && s("update:open", !1);
@@ -5810,7 +5810,7 @@ var Yl = /* @__PURE__ */ Je({
5810
5810
  selectShortcutLabel: /* @__PURE__ */ se(n, "selectShortcutLabel"),
5811
5811
  selectMode: /* @__PURE__ */ se(n, "selectMode"),
5812
5812
  selectEnabled: /* @__PURE__ */ se(n, "selectEnabled"),
5813
- sessionListCollapsed: I,
5813
+ sessionListCollapsed: M,
5814
5814
  sessionKey: /* @__PURE__ */ se(n, "sessionKey"),
5815
5815
  frameLoading: /* @__PURE__ */ se(n, "frameLoading"),
5816
5816
  loadingSessionList: /* @__PURE__ */ se(n, "loadingSessionList"),
@@ -5822,13 +5822,13 @@ var Yl = /* @__PURE__ */ Je({
5822
5822
  showClearAll: /* @__PURE__ */ se(n, "showClearAll"),
5823
5823
  open: /* @__PURE__ */ se(n, "open"),
5824
5824
  thinking: /* @__PURE__ */ se(n, "thinking"),
5825
- minimized: B,
5825
+ minimized: W,
5826
5826
  promptDockVisible: q,
5827
- reviewPanelVisible: H,
5827
+ reviewPanelVisible: V,
5828
5828
  reviewPanelEnabled: /* @__PURE__ */ se(n, "reviewPanelEnabled"),
5829
5829
  bubbleOffset: F,
5830
5830
  mode: D,
5831
- displayMode: V,
5831
+ displayMode: B,
5832
5832
  splitPosition: ee,
5833
5833
  sessionStates: U(() => n.sessionStates ?? {}),
5834
5834
  iframeSource: je,
@@ -5836,7 +5836,7 @@ var Yl = /* @__PURE__ */ Je({
5836
5836
  sessionListTitle: Xe,
5837
5837
  bubbleVisible: ct,
5838
5838
  hasSelectedElements: et,
5839
- sessionItems: ke,
5839
+ sessionItems: Re,
5840
5840
  selectedElementItems: d,
5841
5841
  handleToggle: ut,
5842
5842
  handleClose: Ne,
@@ -5861,8 +5861,8 @@ var Yl = /* @__PURE__ */ Je({
5861
5861
  }), t({
5862
5862
  showNotification: c,
5863
5863
  showConfirmDialog: T,
5864
- sendMessageToIframe: P,
5865
- isSplitMode: W
5864
+ sendMessageToIframe: A,
5865
+ isSplitMode: H
5866
5866
  });
5867
5867
  const Ss = {
5868
5868
  props: n,
@@ -5890,14 +5890,14 @@ var Yl = /* @__PURE__ */ Je({
5890
5890
  handleDialogConfirm: v,
5891
5891
  handleDialogCancel: _,
5892
5892
  frameRef: L,
5893
- triggerRef: M,
5894
- sendMessageToIframe: P,
5895
- localSessionListCollapsed: I,
5896
- localDisplayMode: V,
5893
+ triggerRef: I,
5894
+ sendMessageToIframe: A,
5895
+ localSessionListCollapsed: M,
5896
+ localDisplayMode: B,
5897
5897
  localSplitPosition: Z,
5898
- minimized: B,
5898
+ minimized: W,
5899
5899
  promptDockVisible: q,
5900
- reviewPanelVisible: H,
5900
+ reviewPanelVisible: V,
5901
5901
  isRestoring: oe,
5902
5902
  iframeLoaded: K,
5903
5903
  iframeReady: Oe,
@@ -5915,7 +5915,7 @@ var Yl = /* @__PURE__ */ Je({
5915
5915
  handleToggle: ut,
5916
5916
  handleToggleSessionList: Ct,
5917
5917
  handleToggleTheme: Qe,
5918
- sessionItems: ke,
5918
+ sessionItems: Re,
5919
5919
  handleCreateSession: We,
5920
5920
  handleDeleteSession: Me,
5921
5921
  handleSelectSession: ge,
@@ -5927,13 +5927,13 @@ var Yl = /* @__PURE__ */ Je({
5927
5927
  handleRemoveSelectedNode: C,
5928
5928
  handleToggleSelectMode: b,
5929
5929
  highlightVisible: S,
5930
- highlightStyle: k,
5930
+ highlightStyle: R,
5931
5931
  tooltipVisible: O,
5932
- tooltipStyle: A,
5932
+ tooltipStyle: P,
5933
5933
  tooltipContent: E,
5934
5934
  bubbleOffset: F,
5935
5935
  effectiveMode: D,
5936
- isSplitMode: W,
5936
+ isSplitMode: H,
5937
5937
  isExtensionMode: z,
5938
5938
  panelWidth: J,
5939
5939
  splitConfig: le,
@@ -5966,7 +5966,7 @@ var Yl = /* @__PURE__ */ Je({
5966
5966
  handleDragStart: Xl,
5967
5967
  handleDragEnd: Jl,
5968
5968
  ChatPanel: Pc,
5969
- SelectHint: kc,
5969
+ SelectHint: Rc,
5970
5970
  Trigger: Hc
5971
5971
  };
5972
5972
  return Object.defineProperty(Ss, "__isScriptSetup", {
@@ -6133,14 +6133,14 @@ function rr(e, t) {
6133
6133
  }), { hotkeyConfig: i };
6134
6134
  }
6135
6135
  var nn = Dt("SSE"), Af = 10, Of = 1e3;
6136
- function kf(e) {
6137
- const { endpoint: t, autoConnect: i = !0, enabled: n, maxRetries: s = Af, retryDelay: r = Of, onConnected: l, onDisconnected: o, onError: a, onMessage: u } = e, c = /* @__PURE__ */ R(null), f = /* @__PURE__ */ R("idle"), p = /* @__PURE__ */ R(0);
6138
- function m(M) {
6136
+ function Rf(e) {
6137
+ const { endpoint: t, autoConnect: i = !0, enabled: n, maxRetries: s = Af, retryDelay: r = Of, onConnected: l, onDisconnected: o, onError: a, onMessage: u } = e, c = /* @__PURE__ */ k(null), f = /* @__PURE__ */ k("idle"), p = /* @__PURE__ */ k(0);
6138
+ function m(I) {
6139
6139
  try {
6140
- const P = JSON.parse(M.data);
6141
- u?.(P);
6140
+ const A = JSON.parse(I.data);
6141
+ u?.(A);
6142
6142
  } catch {
6143
- u?.(M.data);
6143
+ u?.(I.data);
6144
6144
  }
6145
6145
  }
6146
6146
  function T() {
@@ -6155,31 +6155,31 @@ function kf(e) {
6155
6155
  f.value = "connected", p.value = 0, nn.debug(`connected: ${t}`), l?.();
6156
6156
  }, c.value.onmessage = m, c.value.onerror = () => {
6157
6157
  if (!c.value) return;
6158
- const M = f.value === "connected";
6158
+ const I = f.value === "connected";
6159
6159
  f.value = "error", c.value?.close(), c.value = null, nn.debug("error on", {
6160
6160
  endpoint: t,
6161
- wasConnected: M,
6161
+ wasConnected: I,
6162
6162
  retryCount: p.value,
6163
6163
  maxRetries: s
6164
6164
  });
6165
- const P = /* @__PURE__ */ new Error(`SSE connection error: ${t}`);
6166
- if (a?.(P), p.value < s) {
6165
+ const A = /* @__PURE__ */ new Error(`SSE connection error: ${t}`);
6166
+ if (a?.(A), p.value < s) {
6167
6167
  p.value++;
6168
- const I = r * p.value;
6169
- nn.debug(`will retry #${p.value} in ${I}ms -> ${t}`), setTimeout(() => {
6168
+ const M = r * p.value;
6169
+ nn.debug(`will retry #${p.value} in ${M}ms -> ${t}`), setTimeout(() => {
6170
6170
  n?.value !== !1 && !c.value && f.value !== "disconnected" && T();
6171
- }, I);
6172
- } else M ? (nn.debug(`max retries reached, calling onDisconnected for ${t}`), o?.()) : nn.debug(`max retries reached, was never connected, NOT calling onDisconnected for ${t}`);
6171
+ }, M);
6172
+ } else I ? (nn.debug(`max retries reached, calling onDisconnected for ${t}`), o?.()) : nn.debug(`max retries reached, was never connected, NOT calling onDisconnected for ${t}`);
6173
6173
  };
6174
- } catch (M) {
6174
+ } catch (I) {
6175
6175
  f.value = "error";
6176
- const P = M instanceof Error ? M : new Error(String(M));
6177
- if (a?.(P), p.value < s) {
6176
+ const A = I instanceof Error ? I : new Error(String(I));
6177
+ if (a?.(A), p.value < s) {
6178
6178
  p.value++;
6179
- const I = r * p.value;
6179
+ const M = r * p.value;
6180
6180
  setTimeout(() => {
6181
6181
  !c.value && f.value !== "disconnected" && T();
6182
- }, I);
6182
+ }, M);
6183
6183
  }
6184
6184
  }
6185
6185
  }
@@ -6208,8 +6208,8 @@ function kf(e) {
6208
6208
  };
6209
6209
  }
6210
6210
  var lr = Dt("ServerSSE");
6211
- function Rf(e = {}) {
6212
- const { viteBaseUrl: t = "", onStatusSync: i, onTaskUpdate: n, onSessionEvent: s, onClearElements: r, onConnected: l, onDisconnected: o } = e, a = t ? `${t}${Zs}` : Zs, { status: u, isConnected: c, connect: f, disconnect: p } = kf({
6211
+ function kf(e = {}) {
6212
+ const { viteBaseUrl: t = "", onStatusSync: i, onTaskUpdate: n, onSessionEvent: s, onClearElements: r, onConnected: l, onDisconnected: o } = e, a = t ? `${t}${Zs}` : Zs, { status: u, isConnected: c, connect: f, disconnect: p } = Rf({
6213
6213
  endpoint: a,
6214
6214
  autoConnect: !1,
6215
6215
  onDisconnected: () => {
@@ -6243,7 +6243,7 @@ function Rf(e = {}) {
6243
6243
  };
6244
6244
  }
6245
6245
  function Lf(e) {
6246
- const { currentSessionId: t, onSessionUpdate: i } = e, n = /* @__PURE__ */ R({});
6246
+ const { currentSessionId: t, onSessionUpdate: i } = e, n = /* @__PURE__ */ k({});
6247
6247
  function s(f) {
6248
6248
  switch (f.type) {
6249
6249
  case "session.updated": {
@@ -6315,31 +6315,31 @@ function or(e) {
6315
6315
  };
6316
6316
  }
6317
6317
  function Df(e) {
6318
- const { showNotification: t, viteBaseUrl: i = "", onFocusSession: n } = e, s = (P) => i ? `${i}${P}` : P, r = /* @__PURE__ */ R([]), l = /* @__PURE__ */ R(void 0), o = /* @__PURE__ */ R(null), a = /* @__PURE__ */ R(!0), u = /* @__PURE__ */ R(!0), c = /* @__PURE__ */ R(!1), f = () => u.value, p = U(() => f() ? o.value && r.value.find((P) => P.id === o.value)?.url || "" : r.value[0]?.url || ""), m = (P) => {
6319
- a.value = !0, f() || n?.(P);
6318
+ const { showNotification: t, viteBaseUrl: i = "", onFocusSession: n } = e, s = (A) => i ? `${i}${A}` : A, r = /* @__PURE__ */ k([]), l = /* @__PURE__ */ k(void 0), o = /* @__PURE__ */ k(null), a = /* @__PURE__ */ k(!0), u = /* @__PURE__ */ k(!0), c = /* @__PURE__ */ k(!1), f = () => u.value, p = U(() => f() ? o.value && r.value.find((A) => A.id === o.value)?.url || "" : r.value[0]?.url || ""), m = (A) => {
6319
+ a.value = !0, f() || n?.(A);
6320
6320
  }, T = async () => {
6321
6321
  l.value = !0, (f() || r.value.length === 0) && (a.value = !0);
6322
6322
  try {
6323
- const P = await (await fetch(s($i))).json();
6324
- u.value = P.capabilities?.deepLink !== !1, c.value = P.capabilities?.reviewPanel === !0, r.value = P.sessions.map(or), r.value.length || _(), o.value = r.value[0]?.id || null, o.value && m(o.value);
6325
- } catch (P) {
6326
- Nf.error("Failed to load sessions:", { error: P });
6323
+ const A = o.value, M = A ? `?current=${encodeURIComponent(A)}` : "", B = await (await fetch(s($i + M))).json();
6324
+ u.value = B.capabilities?.deepLink !== !1, c.value = B.capabilities?.reviewPanel === !0, r.value = B.sessions.map(or), r.value.length || _(), o.value = r.value[0]?.id || null, o.value && m(o.value);
6325
+ } catch (A) {
6326
+ Nf.error("Failed to load sessions:", { error: A });
6327
6327
  } finally {
6328
6328
  l.value = !1;
6329
6329
  }
6330
- }, v = (P) => {
6331
- const I = r.value.findIndex((Z) => Z.id === P.id);
6332
- if (I === -1) return;
6333
- const V = r.value[I];
6334
- P.title && P.title !== V.title && (r.value[I] = {
6335
- ...V,
6336
- title: P.title,
6337
- updatedAt: P.time?.updated || Date.now()
6330
+ }, v = (A) => {
6331
+ const M = r.value.findIndex((Z) => Z.id === A.id);
6332
+ if (M === -1) return;
6333
+ const B = r.value[M];
6334
+ A.title && A.title !== B.title && (r.value[M] = {
6335
+ ...B,
6336
+ title: A.title,
6337
+ updatedAt: A.time?.updated || Date.now()
6338
6338
  });
6339
6339
  }, _ = async () => {
6340
6340
  try {
6341
- const P = await (await fetch(s($i), { method: "POST" })).json();
6342
- r.value.unshift(or(P)), a.value = !0, await an(), o.value = P.id, m(P.id);
6341
+ const A = await (await fetch(s($i), { method: "POST" })).json();
6342
+ r.value.unshift(or(A)), a.value = !0, await an(), o.value = A.id, m(A.id);
6343
6343
  } catch {
6344
6344
  t("创建会话失败");
6345
6345
  }
@@ -6355,26 +6355,26 @@ function Df(e) {
6355
6355
  isDeepLink: f,
6356
6356
  loadSessions: T,
6357
6357
  createSession: _,
6358
- deleteSession: async (P) => {
6358
+ deleteSession: async (A) => {
6359
6359
  try {
6360
- if (await fetch(s(`${$i}?id=${P.id}`), { method: "DELETE" }), await T(), t("会话已删除"), o.value === P.id)
6360
+ if (await fetch(s(`${$i}?id=${A.id}`), { method: "DELETE" }), await T(), t("会话已删除"), o.value === A.id)
6361
6361
  if (r.value.length > 0) {
6362
- const I = r.value[0];
6363
- a.value = !0, await an(), o.value = I.id, m(I.id);
6362
+ const M = r.value[0];
6363
+ a.value = !0, await an(), o.value = M.id, m(M.id);
6364
6364
  } else
6365
6365
  a.value = !1, o.value = null;
6366
6366
  } catch {
6367
6367
  t("删除会话失败");
6368
6368
  }
6369
6369
  },
6370
- selectSession: async (P) => {
6371
- o.value !== P.id && (a.value = !0, await an(), o.value = P.id, m(P.id));
6370
+ selectSession: async (A) => {
6371
+ o.value !== A.id && (a.value = !0, await an(), o.value = A.id, m(A.id));
6372
6372
  },
6373
6373
  updateSessionInfo: v
6374
6374
  };
6375
6375
  }
6376
6376
  function Ff(e, t) {
6377
- const i = /* @__PURE__ */ R(e), n = U(() => i.value === "auto" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : i.value), s = () => {
6377
+ const i = /* @__PURE__ */ k(e), n = U(() => i.value === "auto" ? window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : i.value), s = () => {
6378
6378
  t.value?.sendMessageToIframe(de.SET_THEME, { theme: n.value });
6379
6379
  };
6380
6380
  let r = null;
@@ -6394,7 +6394,7 @@ function Ff(e, t) {
6394
6394
  };
6395
6395
  }
6396
6396
  function $f(e = "") {
6397
- const t = e ? `${Qs}_${e}` : Qs, i = /* @__PURE__ */ R([]);
6397
+ const t = e ? `${Qs}_${e}` : Qs, i = /* @__PURE__ */ k([]);
6398
6398
  try {
6399
6399
  const l = sessionStorage.getItem(t);
6400
6400
  l && (i.value = JSON.parse(l));
@@ -6414,7 +6414,7 @@ function $f(e = "") {
6414
6414
  };
6415
6415
  }
6416
6416
  function Bf() {
6417
- const e = /* @__PURE__ */ R(""), t = /* @__PURE__ */ R("idle"), i = /* @__PURE__ */ R(!1), n = /* @__PURE__ */ R(void 0), s = /* @__PURE__ */ R(void 0), r = Dt("useServiceStatus"), l = U(() => e.value && Su[e.value] || "加载中...");
6417
+ const e = /* @__PURE__ */ k(""), t = /* @__PURE__ */ k("idle"), i = /* @__PURE__ */ k(!1), n = /* @__PURE__ */ k(void 0), s = /* @__PURE__ */ k(void 0), r = Dt("useServiceStatus"), l = U(() => e.value && Su[e.value] || "加载中...");
6418
6418
  return {
6419
6419
  currentTask: e,
6420
6420
  serviceStatus: t,
@@ -6470,7 +6470,7 @@ function Wf(e, t, i = "") {
6470
6470
  }
6471
6471
  function Hf(e, t, i = "", n = "") {
6472
6472
  let s = "", r = "", l, o;
6473
- const a = /* @__PURE__ */ R(""), u = /* @__PURE__ */ R(""), c = /* @__PURE__ */ R(""), f = Dt("ExtCtx"), p = (_) => i ? `${i}${_}` : _, m = (_, L) => {
6473
+ const a = /* @__PURE__ */ k(""), u = /* @__PURE__ */ k(""), c = /* @__PURE__ */ k(""), f = Dt("ExtCtx"), p = (_) => i ? `${i}${_}` : _, m = (_, L) => {
6474
6474
  f.debug(`POST 上下文: tabId=${l} url=${_} title=${L}`), fetch(p(_l), {
6475
6475
  method: "POST",
6476
6476
  headers: { "Content-Type": "application/json" },
@@ -6487,8 +6487,8 @@ function Hf(e, t, i = "", n = "") {
6487
6487
  });
6488
6488
  }, T = (_ = !1) => {
6489
6489
  if (e.value === "idle") return;
6490
- const L = a.value, M = u.value;
6491
- !L && !M || (_ || L !== s || M !== r) && (s = L, r = M, m(L, M));
6490
+ const L = a.value, I = u.value;
6491
+ !L && !I || (_ || L !== s || I !== r) && (s = L, r = I, m(L, I));
6492
6492
  }, v = (_) => {
6493
6493
  if (!(_.serviceInstanceId && _.serviceInstanceId !== n)) {
6494
6494
  if (_.type === Ot.TAB_SWITCHED) {
@@ -6665,7 +6665,7 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
6665
6665
  __name: "App",
6666
6666
  props: { config: {} },
6667
6667
  setup(e) {
6668
- const t = e, i = /* @__PURE__ */ R(!1), n = /* @__PURE__ */ R(!1), s = /* @__PURE__ */ R(!0), r = /* @__PURE__ */ R(!1), l = /* @__PURE__ */ R(null), o = /* @__PURE__ */ R(!1), { theme: a = "auto", open: u = !1, hotkey: c = "ctrl+k", proxyPort: f = 6097, displayMode: p = "bubble", splitMode: m, vitePort: T = "", serviceInstanceId: v = "", myWindowId: _ } = t.config, L = Dt("AIPanel"), M = Dt("App"), P = a, I = /* @__PURE__ */ R(m?.width ?? 500), V = p === "extension", Z = p === "extension-selector", B = U(() => T ? `http://127.0.0.1:${T}` : ""), q = (x) => B.value ? `${B.value}${x}` : x, H = {
6668
+ const t = e, i = /* @__PURE__ */ k(!1), n = /* @__PURE__ */ k(!1), s = /* @__PURE__ */ k(!0), r = /* @__PURE__ */ k(!1), l = /* @__PURE__ */ k(null), o = /* @__PURE__ */ k(!1), { theme: a = "auto", open: u = !1, hotkey: c = "ctrl+k", proxyPort: f = 6097, displayMode: p = "bubble", splitMode: m, vitePort: T = "", serviceInstanceId: v = "", myWindowId: _ } = t.config, L = Dt("AIPanel"), I = Dt("App"), A = a, M = /* @__PURE__ */ k(m?.width ?? 500), B = p === "extension", Z = p === "extension-selector", W = U(() => T ? `http://127.0.0.1:${T}` : ""), q = (x) => W.value ? `${W.value}${x}` : x, V = {
6669
6669
  onSelectModeChange: null,
6670
6670
  broadcastTheme: null,
6671
6671
  notifySelectionResult: null,
@@ -6673,43 +6673,43 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
6673
6673
  }, oe = (x, me) => {
6674
6674
  l.value?.showNotification?.(x, {
6675
6675
  ...me,
6676
- mode: V ? "widget" : me?.mode
6676
+ mode: B ? "widget" : me?.mode
6677
6677
  });
6678
- }, { serviceStatus: K, currentTask: Oe, chromeMcpFailed: N, chromeMcpErrorType: G, chromeMcpErrorMessage: ne, loadingText: Y, updateStatusFromTask: ie, setStarting: Le } = Bf(), { selectedElements: je, addElement: Xe, removeElement: ze, clearElements: Ne } = $f(v), { theme: ot, sendThemeToIframe: ut } = Ff(P, l), { sessions: Ct, loadingSessionList: Qe, currentSessionId: ke, iframeSrc: We, iframeLoading: Me, isDeepLink: ge, reviewPanelEnabled: ct, loadSessions: et, createSession: d, deleteSession: h, selectSession: g, updateSessionInfo: C } = Df({
6678
+ }, { serviceStatus: K, currentTask: Oe, chromeMcpFailed: N, chromeMcpErrorType: G, chromeMcpErrorMessage: ne, loadingText: Y, updateStatusFromTask: ie, setStarting: Le } = Bf(), { selectedElements: je, addElement: Xe, removeElement: ze, clearElements: Ne } = $f(v), { theme: ot, sendThemeToIframe: ut } = Ff(A, l), { sessions: Ct, loadingSessionList: Qe, currentSessionId: Re, iframeSrc: We, iframeLoading: Me, isDeepLink: ge, reviewPanelEnabled: ct, loadSessions: et, createSession: d, deleteSession: h, selectSession: g, updateSessionInfo: C } = Df({
6679
6679
  showNotification: oe,
6680
- viteBaseUrl: B.value,
6680
+ viteBaseUrl: W.value,
6681
6681
  onFocusSession: (x) => {
6682
6682
  l.value?.sendMessageToIframe(de.FOCUS_SESSION, { sessionId: x });
6683
6683
  }
6684
- }), { updateContext: b } = V ? Hf(K, je, B.value, v) : Wf(K, je, B.value), S = Lf({
6685
- currentSessionId: ke,
6684
+ }), { updateContext: b } = B ? Hf(K, je, W.value, v) : Wf(K, je, W.value), S = Lf({
6685
+ currentSessionId: Re,
6686
6686
  onSessionUpdate: (x) => {
6687
6687
  C(x);
6688
6688
  }
6689
- }), k = Rf({
6690
- viteBaseUrl: B.value,
6689
+ }), R = kf({
6690
+ viteBaseUrl: W.value,
6691
6691
  onStatusSync: (x) => {
6692
- if (M.debug(`SSE STATUS_SYNC: ${JSON.stringify(x)} currentStatus: ${K.value}`), A && x.task && x.task !== "ready" && x.task !== "chrome_mcp_failed" && x.task !== "session_creation_failed" && x.task !== "provider_not_installed" && x.task !== "web_start_timeout" && x.task !== "proxy_start_failed") {
6693
- M.debug(`SSE 重连后服务仍在启动中(${x.task}),重置 status 为 starting`), Oe.value = x.task, K.value = "starting", A = !1;
6692
+ if (I.debug(`SSE STATUS_SYNC: ${JSON.stringify(x)} currentStatus: ${K.value}`), P && x.task && x.task !== "ready" && x.task !== "chrome_mcp_failed" && x.task !== "session_creation_failed" && x.task !== "provider_not_installed" && x.task !== "web_start_timeout" && x.task !== "proxy_start_failed") {
6693
+ I.debug(`SSE 重连后服务仍在启动中(${x.task}),重置 status 为 starting`), Oe.value = x.task, K.value = "starting", P = !1;
6694
6694
  return;
6695
6695
  }
6696
- A = !1, x.isStarted !== void 0 && x.isStarted && K.value === "idle" && Le(), x.task && ie(x.task, x.errorType, x.errorMessage);
6696
+ P = !1, x.isStarted !== void 0 && x.isStarted && K.value === "idle" && Le(), x.task && ie(x.task, x.errorType, x.errorMessage);
6697
6697
  },
6698
6698
  onTaskUpdate: (x) => {
6699
- M.debug(`SSE TASK_UPDATE: ${JSON.stringify(x)} currentStatus: ${K.value}`), ie(x.task, x.errorType, x.errorMessage);
6699
+ I.debug(`SSE TASK_UPDATE: ${JSON.stringify(x)} currentStatus: ${K.value}`), ie(x.task, x.errorType, x.errorMessage);
6700
6700
  },
6701
6701
  onSessionEvent: (x) => S.handleEvent(x),
6702
6702
  onClearElements: () => Ne(),
6703
6703
  onConnected: () => b(!0)
6704
6704
  });
6705
- let O = !1, A = !1;
6706
- Be(k.isConnected, (x, me) => {
6707
- !x && me && v ? (O = !0, M.debug(`SSE 断开,通知服务下线: ${v}`), chrome.runtime.sendMessage({
6705
+ let O = !1, P = !1;
6706
+ Be(R.isConnected, (x, me) => {
6707
+ !x && me && v ? (O = !0, I.debug(`SSE 断开,通知服务下线: ${v}`), chrome.runtime.sendMessage({
6708
6708
  type: Ot.SERVICE_GONE,
6709
6709
  serviceInstanceId: v,
6710
6710
  windowId: _
6711
6711
  }).catch(() => {
6712
- })) : x && !me && O && v && (O = !1, A = !0, M.debug(`SSE 重连,通知服务上线: ${v}`), chrome.runtime.sendMessage({
6712
+ })) : x && !me && O && v && (O = !1, P = !0, I.debug(`SSE 重连,通知服务上线: ${v}`), chrome.runtime.sendMessage({
6713
6713
  type: Ot.SERVICE_APPEARED,
6714
6714
  proxyPort: f,
6715
6715
  vitePort: T,
@@ -6718,7 +6718,7 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
6718
6718
  }).catch(() => {
6719
6719
  }));
6720
6720
  });
6721
- const E = S.hasAnyThinking, F = S.sessionStates, D = U(() => K.value === "starting"), W = U(() => K.value === "starting" || Me.value), z = U(() => K.value === "starting" ? Y.value : "加载会话..."), J = async () => {
6721
+ const E = S.hasAnyThinking, F = S.sessionStates, D = U(() => K.value === "starting"), H = U(() => K.value === "starting" || Me.value), z = U(() => K.value === "starting" ? Y.value : "加载会话..."), J = async () => {
6722
6722
  o.value = !0;
6723
6723
  try {
6724
6724
  const x = await (await fetch(q(vu), { method: "POST" })).json();
@@ -6733,9 +6733,9 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
6733
6733
  try {
6734
6734
  const x = await (await fetch(q(hu))).json();
6735
6735
  if (K.value !== "idle")
6736
- return M.debug(`[ensureServicesStarted] fetch 完成但 serviceStatus 已变为 ${K.value},跳过启动`), !0;
6736
+ return I.debug(`[ensureServicesStarted] fetch 完成但 serviceStatus 已变为 ${K.value},跳过启动`), !0;
6737
6737
  if (x.success)
6738
- return Le(), k.connect(), !0;
6738
+ return Le(), R.connect(), !0;
6739
6739
  } catch {
6740
6740
  }
6741
6741
  return !1;
@@ -6744,33 +6744,33 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
6744
6744
  x.preventDefault(), Ie(!i.value);
6745
6745
  });
6746
6746
  const ee = () => {
6747
- if (V) {
6747
+ if (B) {
6748
6748
  ye(!n.value);
6749
6749
  return;
6750
6750
  }
6751
6751
  window.__VUE_INSPECTOR__ ? ye(!n.value) : oe("Vue Inspector 未加载,无法使用元素选择功能");
6752
6752
  };
6753
- V || rr("ctrl+p", (x) => {
6753
+ B || rr("ctrl+p", (x) => {
6754
6754
  x.preventDefault(), ee();
6755
6755
  }), Be(K, (x, me) => {
6756
- x !== "idle" && me === "idle" && k.connect(), x === "ready" && me !== "ready" && (M.debug("服务就绪,加载会话列表"), et());
6756
+ x !== "idle" && me === "idle" && R.connect(), x === "ready" && me !== "ready" && (I.debug("服务就绪,加载会话列表"), et());
6757
6757
  });
6758
- const Q = /* @__PURE__ */ R(null), pe = (x) => {
6758
+ const Q = /* @__PURE__ */ k(null), pe = (x) => {
6759
6759
  if (x.data?.type === de.SESSION_READY) {
6760
6760
  const me = x.data.sessionId;
6761
- if (ut(), me && me === ke.value) {
6761
+ if (ut(), me && me === Re.value) {
6762
6762
  Q.value && (clearTimeout(Q.value), Q.value = null), Me.value = !1;
6763
6763
  return;
6764
6764
  }
6765
- Me.value && ke.value && l.value?.sendMessageToIframe(de.FOCUS_SESSION, { sessionId: ke.value });
6765
+ Me.value && Re.value && l.value?.sendMessageToIframe(de.FOCUS_SESSION, { sessionId: Re.value });
6766
6766
  return;
6767
6767
  }
6768
- x.data?.type === de.READY && ge() && (Q.value && (clearTimeout(Q.value), Q.value = null), Me.value = !1, ut(), ke.value && l.value?.sendMessageToIframe(de.FOCUS_SESSION, { sessionId: ke.value })), x.data?.type === de.KEYDOWN && (x.data.key === "Escape" && n.value && ye(!1), x.data.ctrlKey && x.data.key.toLowerCase() === "p" && ee());
6768
+ x.data?.type === de.READY && ge() && (Q.value && (clearTimeout(Q.value), Q.value = null), Me.value = !1, ut(), Re.value && l.value?.sendMessageToIframe(de.FOCUS_SESSION, { sessionId: Re.value })), x.data?.type === de.KEYDOWN && (x.data.key === "Escape" && n.value && ye(!1), x.data.ctrlKey && x.data.key.toLowerCase() === "p" && ee());
6769
6769
  }, Ce = () => {
6770
- n.value && H.onSelectModeChange?.(!1);
6770
+ n.value && V.onSelectModeChange?.(!1);
6771
6771
  };
6772
6772
  Ze(() => {
6773
- M.debug(`onMounted, sid=${v}, serviceStatus=${K.value}, config: ${JSON.stringify(t.config)}`), K.value === "ready" ? (M.debug("onMounted: ready 分支,直接加载会话"), et(), k.connect(), b(!0)) : K.value === "idle" && (V ? (M.debug("onMounted: idle 分支(扩展模式),先 setStarting 显示蒙层"), Le(), k.connect()) : (M.debug("onMounted: idle 分支(非扩展模式),直接加载会话"), et(), k.connect())), u && K.value === "ready" && setTimeout(() => {
6773
+ I.debug(`onMounted, sid=${v}, serviceStatus=${K.value}, config: ${JSON.stringify(t.config)}`), K.value === "ready" ? (I.debug("onMounted: ready 分支,直接加载会话"), et(), R.connect(), b(!0)) : K.value === "idle" && (B ? (I.debug("onMounted: idle 分支(扩展模式),先 setStarting 显示蒙层"), Le(), R.connect()) : (I.debug("onMounted: idle 分支(非扩展模式),直接加载会话"), et(), R.connect())), u && K.value === "ready" && setTimeout(() => {
6774
6774
  i.value = !0;
6775
6775
  }, 1e3), window.addEventListener("message", pe), document.addEventListener("visibilitychange", Ce), window.addEventListener("pagehide", Ce);
6776
6776
  }), Ye(() => {
@@ -6788,25 +6788,25 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
6788
6788
  i.value = x, x && b();
6789
6789
  }, dt = async (x, me, mn) => {
6790
6790
  if (Z) {
6791
- H.notifySelectionResult?.(x), oe("元素已选中", { mode: "page" });
6791
+ V.notifySelectionResult?.(x), oe("元素已选中", { mode: "page" });
6792
6792
  return;
6793
6793
  }
6794
6794
  const Ci = je.value.find((Qt) => Qt.filePath === x.filePath && Qt.line === x.line)?.id ?? Eu(x), Un = {
6795
6795
  ...x,
6796
6796
  id: Ci,
6797
- previewPageUrl: V && me ? me : window.location.href,
6798
- previewPageTitle: V && mn ? mn : document.title
6797
+ previewPageUrl: B && me ? me : window.location.href,
6798
+ previewPageTitle: B && mn ? mn : document.title
6799
6799
  };
6800
6800
  Xe(Un) && b(!0), l.value?.sendMessageToIframe(de.INSERT_FILE_PART, { element: Un }), oe("节点已添加到对话框", { mode: "page" });
6801
6801
  }, jt = () => {
6802
6802
  Ne(), b(!0), oe("已清除所有选中元素");
6803
6803
  }, ye = (x) => {
6804
6804
  if (n.value === x) return;
6805
- n.value = x, V && H.onSelectModeChange?.(x), l.value?.sendMessageToIframe(de.SELECT_MODE_CHANGE, { selectMode: x });
6805
+ n.value = x, B && V.onSelectModeChange?.(x), l.value?.sendMessageToIframe(de.SELECT_MODE_CHANGE, { selectMode: x });
6806
6806
  const me = l.value?.isSplitMode;
6807
- x && !me && i.value && (i.value = !1), !x && !i.value && (i.value = !0), Z && H.notifySelectModeChange?.(x);
6807
+ x && !me && i.value && (i.value = !1), !x && !i.value && (i.value = !0), Z && V.notifySelectModeChange?.(x);
6808
6808
  };
6809
- if (V) {
6809
+ if (B) {
6810
6810
  const x = Vf({
6811
6811
  selectMode: n,
6812
6812
  serviceInstanceId: v,
@@ -6815,18 +6815,18 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
6815
6815
  ot.value = me, ut();
6816
6816
  }
6817
6817
  });
6818
- H.onSelectModeChange = x.onSelectModeChange, H.broadcastTheme = x.broadcastTheme;
6818
+ V.onSelectModeChange = x.onSelectModeChange, V.broadcastTheme = x.broadcastTheme;
6819
6819
  }
6820
6820
  if (Z) {
6821
6821
  const x = jf({ onSelectModeChange: ye });
6822
- H.notifySelectionResult = x.notifySelectionResult, H.notifySelectModeChange = x.notifySelectModeChange;
6822
+ V.notifySelectionResult = x.notifySelectionResult, V.notifySelectModeChange = x.notifySelectModeChange;
6823
6823
  }
6824
6824
  const Se = (x) => {
6825
6825
  s.value = x;
6826
6826
  }, Ue = (x) => {
6827
- ot.value = x, V && H.broadcastTheme?.(x);
6827
+ ot.value = x, B && V.broadcastTheme?.(x);
6828
6828
  }, $t = (x) => {
6829
- I.value = x;
6829
+ M.value = x;
6830
6830
  }, vn = ({ index: x }) => {
6831
6831
  ze(x), b(!0);
6832
6832
  }, gn = () => {
@@ -6842,12 +6842,12 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
6842
6842
  open: i.value,
6843
6843
  "select-mode": n.value,
6844
6844
  "session-list-collapsed": s.value,
6845
- "frame-loading": W.value,
6845
+ "frame-loading": H.value,
6846
6846
  "loading-session-list": _e(Qe),
6847
6847
  "show-session-list-skeleton": D.value,
6848
6848
  "show-error": _e(N),
6849
6849
  "iframe-src": _e(We),
6850
- "current-session-id": _e(ke),
6850
+ "current-session-id": _e(Re),
6851
6851
  sessions: _e(Ct),
6852
6852
  "session-states": _e(F),
6853
6853
  "review-panel-enabled": _e(ct),
@@ -6856,7 +6856,7 @@ var zf = { class: "aipanel-custom-loading" }, Uf = { class: "aipanel-loading-tex
6856
6856
  thinking: _e(E),
6857
6857
  "display-mode": _e(p),
6858
6858
  "split-mode": _e(m),
6859
- "split-panel-width": I.value,
6859
+ "split-panel-width": M.value,
6860
6860
  "onUpdate:open": Ie,
6861
6861
  "onUpdate:selectMode": ye,
6862
6862
  "onUpdate:sessionListCollapsed": Se,