@blueking/ai-blueking 2.0.0-dev.30 → 2.0.0-dev.32

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.
@@ -71,6 +71,7 @@ const isImageFile = (e) => e ? e.startsWith("image/") : !1, getFilePreviewUrl =
71
71
  复制失败: "Copy Failed",
72
72
  返回底部: "Return to bottom",
73
73
  停止生成: "Stop generating",
74
+ 正在停止: "Stopping",
74
75
  耗时: "Duration",
75
76
  参数: "Parameters",
76
77
  描述: "Description",
@@ -123,7 +124,8 @@ const isImageFile = (e) => e ? e.startsWith("image/") : !1, getFilePreviewUrl =
123
124
  重新加载: "Reload",
124
125
  宽: "W",
125
126
  高: "H",
126
- 上传图片: "Upload Image"
127
+ 上传图片: "Upload Image",
128
+ "上传图片, 最多支持上传 3 个, 最大支持 2.4MB": "Upload Image, up to 3 images supported, max 2.4MB each"
127
129
  }, t$1 = (e) => isEn ? lang$1[e] : e, CHAT_Z_INDEX = 9999;
128
130
  CHAT_Z_INDEX + 1;
129
131
  const EDITOR_MENU_Z_INDEX = 10001, SHORTCUT_MENU_Z_INDEX = EDITOR_MENU_Z_INDEX + 1, SELECTION_Z_INDEX = SHORTCUT_MENU_Z_INDEX + 1, CONST_MESSAGE_TOOLS = [
@@ -700,7 +702,7 @@ const AgentIcon = h$1("svg", {
700
702
  name: t$1("问问小鲸"),
701
703
  icon: () => AIBluekingIcon
702
704
  }];
703
- var _hoisted_1$45 = ["src"], shortcut_btn_default = /* @__PURE__ */ defineComponent({
705
+ var _hoisted_1$44 = ["src"], shortcut_btn_default = /* @__PURE__ */ defineComponent({
704
706
  __name: "shortcut-btn",
705
707
  props: {
706
708
  mode: {},
@@ -722,7 +724,7 @@ var _hoisted_1$45 = ["src"], shortcut_btn_default = /* @__PURE__ */ defineCompon
722
724
  key: 0,
723
725
  class: "ai-common-icon ai-shortcut-btn-icon",
724
726
  src: e.shortcut.icon
725
- }, null, 8, _hoisted_1$45)) : createCommentVNode("v-if", !0), createElementVNode("span", { class: normalizeClass(e.shortcut.icon) }, null, 2)], 64)) : (openBlock(), createBlock(resolveDynamicComponent(typeof e.shortcut?.icon == "function" ? e.shortcut.icon?.(h$1) : e.shortcut.icon), {
727
+ }, null, 8, _hoisted_1$44)) : createCommentVNode("v-if", !0), createElementVNode("span", { class: normalizeClass(e.shortcut.icon) }, null, 2)], 64)) : (openBlock(), createBlock(resolveDynamicComponent(typeof e.shortcut?.icon == "function" ? e.shortcut.icon?.(h$1) : e.shortcut.icon), {
726
728
  key: 1,
727
729
  class: "ai-shortcut-btn-icon"
728
730
  }))], 64)) : e.shortcut && !e.shortcut.components?.length ? (openBlock(), createBlock(unref(AgentIcon), {
@@ -730,7 +732,7 @@ var _hoisted_1$45 = ["src"], shortcut_btn_default = /* @__PURE__ */ defineCompon
730
732
  class: "ai-shortcut-btn-icon"
731
733
  })) : createCommentVNode("v-if", !0), createTextVNode(" " + toDisplayString(e.shortcut?.alias || e.shortcut?.name), 1)]), renderSlot(n.$slots, "append")], 2));
732
734
  }
733
- }), _hoisted_1$44 = { class: "ai-selection-popover-content" }, _hoisted_2$32 = {
735
+ }), _hoisted_1$43 = { class: "ai-selection-popover-content" }, _hoisted_2$32 = {
734
736
  key: 0,
735
737
  class: "shortcut-menu"
736
738
  }, ai_selection_default = /* @__PURE__ */ defineComponent({
@@ -832,25 +834,25 @@ var _hoisted_1$45 = ["src"], shortcut_btn_default = /* @__PURE__ */ defineCompon
832
834
  i.value &&= (O.value?.removeAllRanges(), !1);
833
835
  }, B = (e) => {
834
836
  z(), a("selectShortcut", e, E.value);
835
- }, H = null, i_ = (e) => {
837
+ }, H = null, G = (e) => {
836
838
  H && clearTimeout(H), H = window.setTimeout(() => {
837
839
  L();
838
840
  }, e);
839
- }, G = () => {
840
- i_(200);
841
841
  }, K = () => {
842
- i_(300);
843
- }, q = (e) => {
842
+ G(200);
843
+ }, q = () => {
844
+ G(300);
845
+ }, J = (e) => {
844
846
  i.value && l.value?.contains(e.target) || z();
845
- }, a_ = (e) => {
847
+ }, n_ = (e) => {
846
848
  !O.value || !i.value || e.target instanceof HTMLElement && e.target.contains(O.value?.anchorNode) && z();
847
- }, Z = () => {
849
+ }, Q = () => {
848
850
  d.value?.show();
849
851
  };
850
852
  return onMounted(() => {
851
- document.addEventListener("selectionchange", K), document.addEventListener("mouseup", G), document.addEventListener("mousedown", q), document.addEventListener("scroll", a_, !0), window.addEventListener("resize", z), window.addEventListener("blur", z);
853
+ document.addEventListener("selectionchange", q), document.addEventListener("mouseup", K), document.addEventListener("mousedown", J), document.addEventListener("scroll", n_, !0), window.addEventListener("resize", z), window.addEventListener("blur", z);
852
854
  }), onUnmounted(() => {
853
- document.removeEventListener("selectionchange", K), document.removeEventListener("mouseup", G), document.removeEventListener("mousedown", q), document.removeEventListener("scroll", a_, !0), window.removeEventListener("resize", z), window.removeEventListener("blur", z);
855
+ document.removeEventListener("selectionchange", q), document.removeEventListener("mouseup", K), document.removeEventListener("mousedown", J), document.removeEventListener("scroll", n_, !0), window.removeEventListener("resize", z), window.removeEventListener("blur", z);
854
856
  }), (n, r) => (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(Transition, { name: "ai-fade" }, {
855
857
  default: withCtx(() => [i.value ? (openBlock(), createElementBlock("div", {
856
858
  key: 0,
@@ -863,7 +865,7 @@ var _hoisted_1$45 = ["src"], shortcut_btn_default = /* @__PURE__ */ defineCompon
863
865
  zIndex: unref(SELECTION_Z_INDEX)
864
866
  }),
865
867
  onMousedown: r[2] ||= withModifiers(() => {}, ["stop"])
866
- }, [createElementVNode("div", _hoisted_1$44, [renderSlot(n.$slots, "default", { shortcuts: e.shortcuts }, () => [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.shortcuts.slice(0, e.maxShortcutCount), (n, r) => (openBlock(), createElementBlock(Fragment, { key: n.id }, [r < e.maxShortcutCount ? (openBlock(), createBlock(shortcut_btn_default, {
868
+ }, [createElementVNode("div", _hoisted_1$43, [renderSlot(n.$slots, "default", { shortcuts: e.shortcuts }, () => [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.shortcuts.slice(0, e.maxShortcutCount), (n, r) => (openBlock(), createElementBlock(Fragment, { key: n.id }, [r < e.maxShortcutCount ? (openBlock(), createBlock(shortcut_btn_default, {
867
869
  key: 0,
868
870
  shortcut: n,
869
871
  onClick: (e) => B(n)
@@ -893,7 +895,7 @@ var _hoisted_1$45 = ["src"], shortcut_btn_default = /* @__PURE__ */ defineCompon
893
895
  }, null, 8, ["shortcut", "onClick"]))), 128))])) : createCommentVNode("v-if", !0)]),
894
896
  default: withCtx(() => [createVNode(shortcut_btn_default, {
895
897
  style: { width: "28px" },
896
- onClick: Z
898
+ onClick: Q
897
899
  }, {
898
900
  default: withCtx(() => [createVNode(unref(CollapsedIcon), { class: "shortcut-btn-more-icon" })]),
899
901
  _: 1
@@ -935,7 +937,7 @@ const useObserverVisibleList = (e, n, r) => {
935
937
  calculateVisibleMenuItems: a
936
938
  };
937
939
  };
938
- var _hoisted_1$43 = { class: "shortcut-menu" }, GAP = 4, shortcut_btns_default = /* @__PURE__ */ defineComponent({
940
+ var _hoisted_1$42 = { class: "shortcut-menu" }, GAP = 4, shortcut_btns_default = /* @__PURE__ */ defineComponent({
939
941
  __name: "shortcut-btns",
940
942
  props: { shortcuts: {} },
941
943
  emits: ["selectShortcut"],
@@ -987,7 +989,7 @@ var _hoisted_1$43 = { class: "shortcut-menu" }, GAP = 4, shortcut_btns_default =
987
989
  j.value = !1;
988
990
  }
989
991
  }, {
990
- content: withCtx(() => [createElementVNode("div", _hoisted_1$43, [(openBlock(!0), createElementBlock(Fragment, null, renderList(O.value, (e) => (openBlock(), createBlock(shortcut_btn_default, {
992
+ content: withCtx(() => [createElementVNode("div", _hoisted_1$42, [(openBlock(!0), createElementBlock(Fragment, null, renderList(O.value, (e) => (openBlock(), createBlock(shortcut_btn_default, {
991
993
  key: e.id,
992
994
  mode: "menu",
993
995
  shortcut: e,
@@ -1005,7 +1007,7 @@ var _hoisted_1$43 = { class: "shortcut-menu" }, GAP = 4, shortcut_btns_default =
1005
1007
  _: 1
1006
1008
  }, 8, ["append-to", "z-index"])) : createCommentVNode("v-if", !0)], 512));
1007
1009
  }
1008
- }), _hoisted_1$42 = { class: "shortcut-render" }, _hoisted_2$31 = { class: "shortcut-render-header" }, _hoisted_3$22 = { class: "header-name" }, _hoisted_4$21 = { class: "shortcut-render-content" }, _hoisted_5$14 = { class: "shortcut-footer" }, shortcut_render_default = /* @__PURE__ */ defineComponent({
1010
+ }), _hoisted_1$41 = { class: "shortcut-render" }, _hoisted_2$31 = { class: "shortcut-render-header" }, _hoisted_3$22 = { class: "header-name" }, _hoisted_4$21 = { class: "shortcut-render-content" }, _hoisted_5$14 = { class: "shortcut-footer" }, shortcut_render_default = /* @__PURE__ */ defineComponent({
1009
1011
  __name: "shortcut-render",
1010
1012
  props: {
1011
1013
  alias: {},
@@ -1074,7 +1076,7 @@ var _hoisted_1$43 = { class: "shortcut-menu" }, GAP = 4, shortcut_btns_default =
1074
1076
  }, j = () => {
1075
1077
  i("close");
1076
1078
  };
1077
- return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$42, [createElementVNode("div", _hoisted_2$31, [
1079
+ return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$41, [createElementVNode("div", _hoisted_2$31, [
1078
1080
  createVNode(unref(ThinkingIcon), { class: "header-icon" }),
1079
1081
  createElementVNode("span", _hoisted_3$22, toDisplayString(e.alias || e.name), 1),
1080
1082
  createVNode(unref(CloseIcon), {
@@ -1218,19 +1220,19 @@ var _hoisted_1$43 = { class: "shortcut-menu" }, GAP = 4, shortcut_btns_default =
1218
1220
  }
1219
1221
  function H() {
1220
1222
  var e = i();
1221
- if (B(e)) return i_(e);
1223
+ if (B(e)) return G(e);
1222
1224
  v = setTimeout(H, z(e));
1223
1225
  }
1224
- function i_(e) {
1226
+ function G(e) {
1225
1227
  return v = void 0, j && d ? I(e) : (d = m = void 0, _);
1226
1228
  }
1227
- function G() {
1228
- v !== void 0 && clearTimeout(v), E = 0, d = T = m = v = void 0;
1229
- }
1230
1229
  function K() {
1231
- return v === void 0 ? _ : i_(i());
1230
+ v !== void 0 && clearTimeout(v), E = 0, d = T = m = v = void 0;
1232
1231
  }
1233
1232
  function q() {
1233
+ return v === void 0 ? _ : G(i());
1234
+ }
1235
+ function J() {
1234
1236
  var e = i(), r = B(e);
1235
1237
  if (d = arguments, m = this, T = e, r) {
1236
1238
  if (v === void 0) return L(T);
@@ -1238,7 +1240,7 @@ var _hoisted_1$43 = { class: "shortcut-menu" }, GAP = 4, shortcut_btns_default =
1238
1240
  }
1239
1241
  return v === void 0 && (v = setTimeout(H, n)), _;
1240
1242
  }
1241
- return q.cancel = G, q.flush = K, q;
1243
+ return J.cancel = K, J.flush = q, J;
1242
1244
  }
1243
1245
  n.exports = u;
1244
1246
  })), require_throttle = /* @__PURE__ */ __commonJSMin(((e, n) => {
@@ -4926,7 +4928,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4926
4928
  return a;
4927
4929
  }).map((e) => `(${e})`).join(n);
4928
4930
  }
4929
- var i_ = /\b\B/, G = "[a-zA-Z]\\w*", K = "[a-zA-Z_]\\w*", q = "\\b\\d+(\\.\\d+)?", J = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", a_ = "\\b(0b[01]+)", Z = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", o_ = (e = {}) => {
4931
+ var G = /\b\B/, K = "[a-zA-Z]\\w*", q = "[a-zA-Z_]\\w*", J = "\\b\\d+(\\.\\d+)?", Z = "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", n_ = "\\b(0b[01]+)", Q = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", r_ = (e = {}) => {
4930
4932
  let n = /^#![ ]*\//;
4931
4933
  return e.binary && (e.begin = k(n, /.*\b/, e.binary, /\b.*/)), o({
4932
4934
  scope: "meta",
@@ -4937,22 +4939,22 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4937
4939
  e.index !== 0 && n.ignoreMatch();
4938
4940
  }
4939
4941
  }, e);
4940
- }, Q = {
4942
+ }, i_ = {
4941
4943
  begin: "\\\\[\\s\\S]",
4942
4944
  relevance: 0
4943
- }, s_ = {
4945
+ }, a_ = {
4944
4946
  scope: "string",
4945
4947
  begin: "'",
4946
4948
  end: "'",
4947
4949
  illegal: "\\n",
4948
- contains: [Q]
4950
+ contains: [i_]
4949
4951
  }, $ = {
4950
4952
  scope: "string",
4951
4953
  begin: "\"",
4952
4954
  end: "\"",
4953
4955
  illegal: "\\n",
4954
- contains: [Q]
4955
- }, c_ = { begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ }, l_ = function(e, n, r = {}) {
4956
+ contains: [i_]
4957
+ }, o_ = { begin: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/ }, s_ = function(e, n, r = {}) {
4956
4958
  let i = o({
4957
4959
  scope: "comment",
4958
4960
  begin: e,
@@ -4968,50 +4970,50 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
4968
4970
  });
4969
4971
  let a = I("I", "a", "is", "so", "us", "to", "at", "if", "in", "it", "on", /[A-Za-z]+['](d|ve|re|ll|t|s|n)/, /[A-Za-z]+[-][a-z]+/, /[A-Za-z][a-z]{2,}/);
4970
4972
  return i.contains.push({ begin: k(/[ ]+/, "(", a, /[.]?[:]?([.][ ]|[ ])/, "){3}") }), i;
4971
- }, u_ = l_("//", "$"), d_ = l_("/\\*", "\\*/"), f_ = l_("#", "$"), p_ = {
4973
+ }, c_ = s_("//", "$"), l_ = s_("/\\*", "\\*/"), u_ = s_("#", "$"), d_ = {
4972
4974
  scope: "number",
4973
- begin: q,
4975
+ begin: J,
4974
4976
  relevance: 0
4975
- }, m_ = {
4977
+ }, f_ = {
4976
4978
  scope: "number",
4977
- begin: J,
4979
+ begin: Z,
4978
4980
  relevance: 0
4979
- }, h_ = {
4981
+ }, p_ = {
4980
4982
  scope: "number",
4981
- begin: a_,
4983
+ begin: n_,
4982
4984
  relevance: 0
4983
- }, g_ = {
4985
+ }, m_ = {
4984
4986
  scope: "regexp",
4985
4987
  begin: /\/(?=[^/\n]*\/)/,
4986
4988
  end: /\/[gimuy]*/,
4987
- contains: [Q, {
4989
+ contains: [i_, {
4988
4990
  begin: /\[/,
4989
4991
  end: /\]/,
4990
4992
  relevance: 0,
4991
- contains: [Q]
4993
+ contains: [i_]
4992
4994
  }]
4993
- }, __ = {
4995
+ }, h_ = {
4994
4996
  scope: "title",
4995
- begin: G,
4997
+ begin: K,
4996
4998
  relevance: 0
4997
- }, v_ = {
4999
+ }, g_ = {
4998
5000
  scope: "title",
4999
- begin: K,
5001
+ begin: q,
5000
5002
  relevance: 0
5001
- }, y_ = {
5002
- begin: "\\.\\s*" + K,
5003
+ }, __ = {
5004
+ begin: "\\.\\s*" + q,
5003
5005
  relevance: 0
5004
- }, b_ = /* @__PURE__ */ Object.freeze({
5006
+ }, v_ = /* @__PURE__ */ Object.freeze({
5005
5007
  __proto__: null,
5006
- APOS_STRING_MODE: s_,
5007
- BACKSLASH_ESCAPE: Q,
5008
- BINARY_NUMBER_MODE: h_,
5009
- BINARY_NUMBER_RE: a_,
5010
- COMMENT: l_,
5011
- C_BLOCK_COMMENT_MODE: d_,
5012
- C_LINE_COMMENT_MODE: u_,
5013
- C_NUMBER_MODE: m_,
5014
- C_NUMBER_RE: J,
5008
+ APOS_STRING_MODE: a_,
5009
+ BACKSLASH_ESCAPE: i_,
5010
+ BINARY_NUMBER_MODE: p_,
5011
+ BINARY_NUMBER_RE: n_,
5012
+ COMMENT: s_,
5013
+ C_BLOCK_COMMENT_MODE: l_,
5014
+ C_LINE_COMMENT_MODE: c_,
5015
+ C_NUMBER_MODE: f_,
5016
+ C_NUMBER_RE: Z,
5015
5017
  END_SAME_AS_BEGIN: function(e) {
5016
5018
  return Object.assign(e, {
5017
5019
  "on:begin": (e, n) => {
@@ -5022,43 +5024,43 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5022
5024
  }
5023
5025
  });
5024
5026
  },
5025
- HASH_COMMENT_MODE: f_,
5026
- IDENT_RE: G,
5027
- MATCH_NOTHING_RE: i_,
5028
- METHOD_GUARD: y_,
5029
- NUMBER_MODE: p_,
5030
- NUMBER_RE: q,
5031
- PHRASAL_WORDS_MODE: c_,
5027
+ HASH_COMMENT_MODE: u_,
5028
+ IDENT_RE: K,
5029
+ MATCH_NOTHING_RE: G,
5030
+ METHOD_GUARD: __,
5031
+ NUMBER_MODE: d_,
5032
+ NUMBER_RE: J,
5033
+ PHRASAL_WORDS_MODE: o_,
5032
5034
  QUOTE_STRING_MODE: $,
5033
- REGEXP_MODE: g_,
5034
- RE_STARTERS_RE: Z,
5035
- SHEBANG: o_,
5036
- TITLE_MODE: __,
5037
- UNDERSCORE_IDENT_RE: K,
5038
- UNDERSCORE_TITLE_MODE: v_
5035
+ REGEXP_MODE: m_,
5036
+ RE_STARTERS_RE: Q,
5037
+ SHEBANG: r_,
5038
+ TITLE_MODE: h_,
5039
+ UNDERSCORE_IDENT_RE: q,
5040
+ UNDERSCORE_TITLE_MODE: g_
5039
5041
  });
5040
- function x_(e, n) {
5042
+ function y_(e, n) {
5041
5043
  e.input[e.index - 1] === "." && n.ignoreMatch();
5042
5044
  }
5043
- function S_(e, n) {
5045
+ function b_(e, n) {
5044
5046
  e.className !== void 0 && (e.scope = e.className, delete e.className);
5045
5047
  }
5046
- function C_(e, n) {
5047
- n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = x_, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
5048
+ function x_(e, n) {
5049
+ n && e.beginKeywords && (e.begin = "\\b(" + e.beginKeywords.split(" ").join("|") + ")(?!\\.)(?=\\b|\\s)", e.__beforeBegin = y_, e.keywords = e.keywords || e.beginKeywords, delete e.beginKeywords, e.relevance === void 0 && (e.relevance = 0));
5048
5050
  }
5049
- function w_(e, n) {
5051
+ function S_(e, n) {
5050
5052
  Array.isArray(e.illegal) && (e.illegal = I(...e.illegal));
5051
5053
  }
5052
- function T_(e, n) {
5054
+ function C_(e, n) {
5053
5055
  if (e.match) {
5054
5056
  if (e.begin || e.end) throw Error("begin & end are not supported with match");
5055
5057
  e.begin = e.match, delete e.match;
5056
5058
  }
5057
5059
  }
5058
- function E_(e, n) {
5060
+ function w_(e, n) {
5059
5061
  e.relevance === void 0 && (e.relevance = 1);
5060
5062
  }
5061
- var D_ = (e, n) => {
5063
+ var T_ = (e, n) => {
5062
5064
  if (!e.beforeMatch) return;
5063
5065
  if (e.starts) throw Error("beforeMatch cannot be used with starts");
5064
5066
  let r = Object.assign({}, e);
@@ -5068,7 +5070,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5068
5070
  relevance: 0,
5069
5071
  contains: [Object.assign(r, { endsParent: !0 })]
5070
5072
  }, e.relevance = 0, delete r.beforeMatch;
5071
- }, O_ = [
5073
+ }, E_ = [
5072
5074
  "of",
5073
5075
  "and",
5074
5076
  "for",
@@ -5080,58 +5082,58 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5080
5082
  "parent",
5081
5083
  "list",
5082
5084
  "value"
5083
- ], k_ = "keyword";
5084
- function A_(e, n, r = k_) {
5085
+ ], D_ = "keyword";
5086
+ function O_(e, n, r = D_) {
5085
5087
  let i = Object.create(null);
5086
5088
  return typeof e == "string" ? a(r, e.split(" ")) : Array.isArray(e) ? a(r, e) : Object.keys(e).forEach(function(r) {
5087
- Object.assign(i, A_(e[r], n, r));
5089
+ Object.assign(i, O_(e[r], n, r));
5088
5090
  }), i;
5089
5091
  function a(e, r) {
5090
5092
  n && (r = r.map((e) => e.toLowerCase())), r.forEach(function(n) {
5091
5093
  let r = n.split("|");
5092
- i[r[0]] = [e, j_(r[0], r[1])];
5094
+ i[r[0]] = [e, k_(r[0], r[1])];
5093
5095
  });
5094
5096
  }
5095
5097
  }
5096
- function j_(e, n) {
5097
- return n ? Number(n) : M_(e) ? 0 : 1;
5098
+ function k_(e, n) {
5099
+ return n ? Number(n) : A_(e) ? 0 : 1;
5098
5100
  }
5099
- function M_(e) {
5100
- return O_.includes(e.toLowerCase());
5101
+ function A_(e) {
5102
+ return E_.includes(e.toLowerCase());
5101
5103
  }
5102
- var N_ = {}, P_ = (e) => {
5104
+ var j_ = {}, M_ = (e) => {
5103
5105
  console.error(e);
5104
- }, F_ = (e, ...n) => {
5106
+ }, N_ = (e, ...n) => {
5105
5107
  console.log(`WARN: ${e}`, ...n);
5106
- }, I_ = (e, n) => {
5107
- N_[`${e}/${n}`] || (console.log(`Deprecated as of ${e}. ${n}`), N_[`${e}/${n}`] = !0);
5108
- }, L_ = /* @__PURE__ */ Error();
5109
- function R_(e, n, { key: r }) {
5108
+ }, P_ = (e, n) => {
5109
+ j_[`${e}/${n}`] || (console.log(`Deprecated as of ${e}. ${n}`), j_[`${e}/${n}`] = !0);
5110
+ }, F_ = /* @__PURE__ */ Error();
5111
+ function I_(e, n, { key: r }) {
5110
5112
  let i = 0, a = e[r], o = {}, s = {};
5111
5113
  for (let e = 1; e <= n.length; e++) s[e + i] = a[e], o[e + i] = !0, i += L(n[e - 1]);
5112
5114
  e[r] = s, e[r]._emit = o, e[r]._multi = !0;
5113
5115
  }
5114
- function z_(e) {
5116
+ function L_(e) {
5115
5117
  if (Array.isArray(e.begin)) {
5116
- if (e.skip || e.excludeBegin || e.returnBegin) throw P_("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), L_;
5117
- if (typeof e.beginScope != "object" || e.beginScope === null) throw P_("beginScope must be object"), L_;
5118
- R_(e, e.begin, { key: "beginScope" }), e.begin = H(e.begin, { joinWith: "" });
5118
+ if (e.skip || e.excludeBegin || e.returnBegin) throw M_("skip, excludeBegin, returnBegin not compatible with beginScope: {}"), F_;
5119
+ if (typeof e.beginScope != "object" || e.beginScope === null) throw M_("beginScope must be object"), F_;
5120
+ I_(e, e.begin, { key: "beginScope" }), e.begin = H(e.begin, { joinWith: "" });
5119
5121
  }
5120
5122
  }
5121
- function B_(e) {
5123
+ function R_(e) {
5122
5124
  if (Array.isArray(e.end)) {
5123
- if (e.skip || e.excludeEnd || e.returnEnd) throw P_("skip, excludeEnd, returnEnd not compatible with endScope: {}"), L_;
5124
- if (typeof e.endScope != "object" || e.endScope === null) throw P_("endScope must be object"), L_;
5125
- R_(e, e.end, { key: "endScope" }), e.end = H(e.end, { joinWith: "" });
5125
+ if (e.skip || e.excludeEnd || e.returnEnd) throw M_("skip, excludeEnd, returnEnd not compatible with endScope: {}"), F_;
5126
+ if (typeof e.endScope != "object" || e.endScope === null) throw M_("endScope must be object"), F_;
5127
+ I_(e, e.end, { key: "endScope" }), e.end = H(e.end, { joinWith: "" });
5126
5128
  }
5127
5129
  }
5128
- function V_(e) {
5130
+ function z_(e) {
5129
5131
  e.scope && typeof e.scope == "object" && e.scope !== null && (e.beginScope = e.scope, delete e.scope);
5130
5132
  }
5131
- function H_(e) {
5132
- V_(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), z_(e), B_(e);
5133
+ function B_(e) {
5134
+ z_(e), typeof e.beginScope == "string" && (e.beginScope = { _wrap: e.beginScope }), typeof e.endScope == "string" && (e.endScope = { _wrap: e.endScope }), L_(e), R_(e);
5133
5135
  }
5134
- function U_(e) {
5136
+ function V_(e) {
5135
5137
  function n(n, r) {
5136
5138
  return new RegExp(v(n), "m" + (e.case_insensitive ? "i" : "") + (e.unicodeRegex ? "u" : "") + (r ? "g" : ""));
5137
5139
  }
@@ -5193,18 +5195,18 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5193
5195
  let o = r;
5194
5196
  if (r.isCompiled) return o;
5195
5197
  [
5196
- S_,
5197
- T_,
5198
- H_,
5199
- D_
5200
- ].forEach((e) => e(r, i)), e.compilerExtensions.forEach((e) => e(r, i)), r.__beforeBegin = null, [
5198
+ b_,
5201
5199
  C_,
5202
- w_,
5203
- E_
5200
+ B_,
5201
+ T_
5202
+ ].forEach((e) => e(r, i)), e.compilerExtensions.forEach((e) => e(r, i)), r.__beforeBegin = null, [
5203
+ x_,
5204
+ S_,
5205
+ w_
5204
5206
  ].forEach((e) => e(r, i)), r.isCompiled = !0;
5205
5207
  let l = null;
5206
- return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), l = r.keywords.$pattern, delete r.keywords.$pattern), l ||= /\w+/, r.keywords &&= A_(r.keywords, e.case_insensitive), o.keywordPatternRe = n(l, !0), i && (r.begin ||= /\B|\b/, o.beginRe = n(o.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (o.endRe = n(o.end)), o.terminatorEnd = v(o.end) || "", r.endsWithParent && i.terminatorEnd && (o.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (o.illegalRe = n(r.illegal)), r.contains ||= [], r.contains = [].concat(...r.contains.map(function(e) {
5207
- return G_(e === "self" ? r : e);
5208
+ return typeof r.keywords == "object" && r.keywords.$pattern && (r.keywords = Object.assign({}, r.keywords), l = r.keywords.$pattern, delete r.keywords.$pattern), l ||= /\w+/, r.keywords &&= O_(r.keywords, e.case_insensitive), o.keywordPatternRe = n(l, !0), i && (r.begin ||= /\B|\b/, o.beginRe = n(o.begin), !r.end && !r.endsWithParent && (r.end = /\B|\b/), r.end && (o.endRe = n(o.end)), o.terminatorEnd = v(o.end) || "", r.endsWithParent && i.terminatorEnd && (o.terminatorEnd += (r.end ? "|" : "") + i.terminatorEnd)), r.illegal && (o.illegalRe = n(r.illegal)), r.contains ||= [], r.contains = [].concat(...r.contains.map(function(e) {
5209
+ return U_(e === "self" ? r : e);
5208
5210
  })), r.contains.forEach(function(e) {
5209
5211
  s(e, o);
5210
5212
  }), r.starts && s(r.starts, i), o.matcher = a(o), o;
@@ -5212,19 +5214,19 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5212
5214
  if (e.compilerExtensions ||= [], e.contains && e.contains.includes("self")) throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");
5213
5215
  return e.classNameAliases = o(e.classNameAliases || {}), s(e);
5214
5216
  }
5215
- function W_(e) {
5216
- return e ? e.endsWithParent || W_(e.starts) : !1;
5217
+ function H_(e) {
5218
+ return e ? e.endsWithParent || H_(e.starts) : !1;
5217
5219
  }
5218
- function G_(e) {
5220
+ function U_(e) {
5219
5221
  return e.variants && !e.cachedVariants && (e.cachedVariants = e.variants.map(function(n) {
5220
5222
  return o(e, { variants: null }, n);
5221
- })), e.cachedVariants ? e.cachedVariants : W_(e) ? o(e, { starts: e.starts ? o(e.starts) : null }) : Object.isFrozen(e) ? o(e) : e;
5223
+ })), e.cachedVariants ? e.cachedVariants : H_(e) ? o(e, { starts: e.starts ? o(e.starts) : null }) : Object.isFrozen(e) ? o(e) : e;
5222
5224
  }
5223
- var K_ = "11.11.1", q_ = class extends Error {
5225
+ var W_ = "11.11.1", G_ = class extends Error {
5224
5226
  constructor(e, n) {
5225
5227
  super(e), this.name = "HTMLInjectionError", this.html = n;
5226
5228
  }
5227
- }, J_ = a, Y_ = o, X_ = Symbol("nomatch"), Z_ = 7, Q_ = function(e) {
5229
+ }, K_ = a, q_ = o, J_ = Symbol("nomatch"), Y_ = 7, X_ = function(e) {
5228
5230
  let n = Object.create(null), a = Object.create(null), o = [], s = !0, l = "Could not find the language '{}', did you forget to load/include a language module?", u = {
5229
5231
  disableAutodetect: !0,
5230
5232
  name: "Plain text",
@@ -5247,21 +5249,21 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5247
5249
  n += e.parentNode ? e.parentNode.className : "";
5248
5250
  let r = d.languageDetectRe.exec(n);
5249
5251
  if (r) {
5250
- let n = s_(r[1]);
5251
- return n || (F_(l.replace("{}", r[1])), F_("Falling back to no-highlight mode for this block.", e)), n ? r[1] : "no-highlight";
5252
+ let n = a_(r[1]);
5253
+ return n || (N_(l.replace("{}", r[1])), N_("Falling back to no-highlight mode for this block.", e)), n ? r[1] : "no-highlight";
5252
5254
  }
5253
- return n.split(/\s+/).find((e) => m(e) || s_(e));
5255
+ return n.split(/\s+/).find((e) => m(e) || a_(e));
5254
5256
  }
5255
5257
  function v(e, n, r) {
5256
5258
  let i = "", a = "";
5257
- typeof n == "object" ? (i = e, r = n.ignoreIllegals, a = n.language) : (I_("10.7.0", "highlight(lang, code, ...args) has been deprecated."), I_("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), a = e, i = n), r === void 0 && (r = !0);
5259
+ typeof n == "object" ? (i = e, r = n.ignoreIllegals, a = n.language) : (P_("10.7.0", "highlight(lang, code, ...args) has been deprecated."), P_("10.7.0", "Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"), a = e, i = n), r === void 0 && (r = !0);
5258
5260
  let o = {
5259
5261
  code: i,
5260
5262
  language: a
5261
5263
  };
5262
- f_("before:highlight", o);
5264
+ u_("before:highlight", o);
5263
5265
  let s = o.result ? o.result : j(o.language, o.code, r);
5264
- return s.code = o.code, f_("after:highlight", s), s;
5266
+ return s.code = o.code, u_("after:highlight", s), s;
5265
5267
  }
5266
5268
  function j(e, r, a, o) {
5267
5269
  let u = Object.create(null);
@@ -5269,45 +5271,45 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5269
5271
  return e.keywords[n];
5270
5272
  }
5271
5273
  function g() {
5272
- if (!Z.keywords) {
5273
- Q.addText($);
5274
+ if (!Q.keywords) {
5275
+ i_.addText($);
5274
5276
  return;
5275
5277
  }
5276
5278
  let e = 0;
5277
- Z.keywordPatternRe.lastIndex = 0;
5278
- let n = Z.keywordPatternRe.exec($), r = "";
5279
+ Q.keywordPatternRe.lastIndex = 0;
5280
+ let n = Q.keywordPatternRe.exec($), r = "";
5279
5281
  for (; n;) {
5280
5282
  r += $.substring(e, n.index);
5281
- let i = q.case_insensitive ? n[0].toLowerCase() : n[0], a = m(Z, i);
5283
+ let i = J.case_insensitive ? n[0].toLowerCase() : n[0], a = m(Q, i);
5282
5284
  if (a) {
5283
5285
  let [e, o] = a;
5284
- if (Q.addText(r), r = "", u[i] = (u[i] || 0) + 1, u[i] <= Z_ && (c_ += o), e.startsWith("_")) r += n[0];
5286
+ if (i_.addText(r), r = "", u[i] = (u[i] || 0) + 1, u[i] <= Y_ && (o_ += o), e.startsWith("_")) r += n[0];
5285
5287
  else {
5286
- let r = q.classNameAliases[e] || e;
5288
+ let r = J.classNameAliases[e] || e;
5287
5289
  T(n[0], r);
5288
5290
  }
5289
5291
  } else r += n[0];
5290
- e = Z.keywordPatternRe.lastIndex, n = Z.keywordPatternRe.exec($);
5292
+ e = Q.keywordPatternRe.lastIndex, n = Q.keywordPatternRe.exec($);
5291
5293
  }
5292
- r += $.substring(e), Q.addText(r);
5294
+ r += $.substring(e), i_.addText(r);
5293
5295
  }
5294
5296
  function _() {
5295
5297
  if ($ === "") return;
5296
5298
  let e = null;
5297
- if (typeof Z.subLanguage == "string") {
5298
- if (!n[Z.subLanguage]) {
5299
- Q.addText($);
5299
+ if (typeof Q.subLanguage == "string") {
5300
+ if (!n[Q.subLanguage]) {
5301
+ i_.addText($);
5300
5302
  return;
5301
5303
  }
5302
- e = j(Z.subLanguage, $, !0, o_[Z.subLanguage]), o_[Z.subLanguage] = e._top;
5303
- } else e = B($, Z.subLanguage.length ? Z.subLanguage : null);
5304
- Z.relevance > 0 && (c_ += e.relevance), Q.__addSublanguage(e._emitter, e.language);
5304
+ e = j(Q.subLanguage, $, !0, r_[Q.subLanguage]), r_[Q.subLanguage] = e._top;
5305
+ } else e = B($, Q.subLanguage.length ? Q.subLanguage : null);
5306
+ Q.relevance > 0 && (o_ += e.relevance), i_.__addSublanguage(e._emitter, e.language);
5305
5307
  }
5306
5308
  function v() {
5307
- Z.subLanguage == null ? g() : _(), $ = "";
5309
+ Q.subLanguage == null ? g() : _(), $ = "";
5308
5310
  }
5309
5311
  function T(e, n) {
5310
- e !== "" && (Q.startScope(n), Q.addText(e), Q.endScope());
5312
+ e !== "" && (i_.startScope(n), i_.addText(e), i_.endScope());
5311
5313
  }
5312
5314
  function E(e, n) {
5313
5315
  let r = 1, i = n.length - 1;
@@ -5316,12 +5318,12 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5316
5318
  r++;
5317
5319
  continue;
5318
5320
  }
5319
- let i = q.classNameAliases[e[r]] || e[r], a = n[r];
5321
+ let i = J.classNameAliases[e[r]] || e[r], a = n[r];
5320
5322
  i ? T(a, i) : ($ = a, g(), $ = ""), r++;
5321
5323
  }
5322
5324
  }
5323
5325
  function O(e, n) {
5324
- return e.scope && typeof e.scope == "string" && Q.openNode(q.classNameAliases[e.scope] || e.scope), e.beginScope && (e.beginScope._wrap ? (T($, q.classNameAliases[e.beginScope._wrap] || e.beginScope._wrap), $ = "") : e.beginScope._multi && (E(e.beginScope, n), $ = "")), Z = Object.create(e, { parent: { value: Z } }), Z;
5326
+ return e.scope && typeof e.scope == "string" && i_.openNode(J.classNameAliases[e.scope] || e.scope), e.beginScope && (e.beginScope._wrap ? (T($, J.classNameAliases[e.beginScope._wrap] || e.beginScope._wrap), $ = "") : e.beginScope._multi && (E(e.beginScope, n), $ = "")), Q = Object.create(e, { parent: { value: Q } }), Q;
5325
5327
  }
5326
5328
  function k(e, n, r) {
5327
5329
  let a = z(e.endRe, r);
@@ -5338,7 +5340,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5338
5340
  if (e.endsWithParent) return k(e.parent, n, r);
5339
5341
  }
5340
5342
  function I(e) {
5341
- return Z.matcher.regexIndex === 0 ? ($ += e[0], 1) : (d_ = !0, 0);
5343
+ return Q.matcher.regexIndex === 0 ? ($ += e[0], 1) : (l_ = !0, 0);
5342
5344
  }
5343
5345
  function L(e) {
5344
5346
  let n = e[0], r = e.rule, a = new i(r), o = [r.__beforeBegin, r["on:begin"]];
@@ -5346,98 +5348,98 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5346
5348
  return r.skip ? $ += n : (r.excludeBegin && ($ += n), v(), !r.returnBegin && !r.excludeBegin && ($ = n)), O(r, e), r.returnBegin ? 0 : n.length;
5347
5349
  }
5348
5350
  function H(e) {
5349
- let n = e[0], i = r.substring(e.index), a = k(Z, e, i);
5350
- if (!a) return X_;
5351
- let o = Z;
5352
- Z.endScope && Z.endScope._wrap ? (v(), T(n, Z.endScope._wrap)) : Z.endScope && Z.endScope._multi ? (v(), E(Z.endScope, e)) : o.skip ? $ += n : (o.returnEnd || o.excludeEnd || ($ += n), v(), o.excludeEnd && ($ = n));
5351
+ let n = e[0], i = r.substring(e.index), a = k(Q, e, i);
5352
+ if (!a) return J_;
5353
+ let o = Q;
5354
+ Q.endScope && Q.endScope._wrap ? (v(), T(n, Q.endScope._wrap)) : Q.endScope && Q.endScope._multi ? (v(), E(Q.endScope, e)) : o.skip ? $ += n : (o.returnEnd || o.excludeEnd || ($ += n), v(), o.excludeEnd && ($ = n));
5353
5355
  do
5354
- Z.scope && Q.closeNode(), !Z.skip && !Z.subLanguage && (c_ += Z.relevance), Z = Z.parent;
5355
- while (Z !== a.parent);
5356
+ Q.scope && i_.closeNode(), !Q.skip && !Q.subLanguage && (o_ += Q.relevance), Q = Q.parent;
5357
+ while (Q !== a.parent);
5356
5358
  return a.starts && O(a.starts, e), o.returnEnd ? 0 : n.length;
5357
5359
  }
5358
- function i_() {
5360
+ function G() {
5359
5361
  let e = [];
5360
- for (let n = Z; n !== q; n = n.parent) n.scope && e.unshift(n.scope);
5361
- e.forEach((e) => Q.openNode(e));
5362
+ for (let n = Q; n !== J; n = n.parent) n.scope && e.unshift(n.scope);
5363
+ e.forEach((e) => i_.openNode(e));
5362
5364
  }
5363
- let G = {};
5364
- function K(n, i) {
5365
+ let K = {};
5366
+ function q(n, i) {
5365
5367
  let o = i && i[0];
5366
5368
  if ($ += n, o == null) return v(), 0;
5367
- if (G.type === "begin" && i.type === "end" && G.index === i.index && o === "") {
5369
+ if (K.type === "begin" && i.type === "end" && K.index === i.index && o === "") {
5368
5370
  if ($ += r.slice(i.index, i.index + 1), !s) {
5369
5371
  let n = /* @__PURE__ */ Error(`0 width match regex (${e})`);
5370
- throw n.languageName = e, n.badRule = G.rule, n;
5372
+ throw n.languageName = e, n.badRule = K.rule, n;
5371
5373
  }
5372
5374
  return 1;
5373
5375
  }
5374
- if (G = i, i.type === "begin") return L(i);
5376
+ if (K = i, i.type === "begin") return L(i);
5375
5377
  if (i.type === "illegal" && !a) {
5376
- let e = /* @__PURE__ */ Error("Illegal lexeme \"" + o + "\" for mode \"" + (Z.scope || "<unnamed>") + "\"");
5377
- throw e.mode = Z, e;
5378
+ let e = /* @__PURE__ */ Error("Illegal lexeme \"" + o + "\" for mode \"" + (Q.scope || "<unnamed>") + "\"");
5379
+ throw e.mode = Q, e;
5378
5380
  } else if (i.type === "end") {
5379
5381
  let e = H(i);
5380
- if (e !== X_) return e;
5382
+ if (e !== J_) return e;
5381
5383
  }
5382
5384
  if (i.type === "illegal" && o === "") return $ += "\n", 1;
5383
- if (u_ > 1e5 && u_ > i.index * 3) throw /* @__PURE__ */ Error("potential infinite loop, way more iterations than matches");
5385
+ if (c_ > 1e5 && c_ > i.index * 3) throw /* @__PURE__ */ Error("potential infinite loop, way more iterations than matches");
5384
5386
  return $ += o, o.length;
5385
5387
  }
5386
- let q = s_(e);
5387
- if (!q) throw P_(l.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
5388
- let J = U_(q), a_ = "", Z = o || J, o_ = {}, Q = new d.__emitter(d);
5389
- i_();
5390
- let $ = "", c_ = 0, l_ = 0, u_ = 0, d_ = !1;
5388
+ let J = a_(e);
5389
+ if (!J) throw M_(l.replace("{}", e)), Error("Unknown language: \"" + e + "\"");
5390
+ let Z = V_(J), n_ = "", Q = o || Z, r_ = {}, i_ = new d.__emitter(d);
5391
+ G();
5392
+ let $ = "", o_ = 0, s_ = 0, c_ = 0, l_ = !1;
5391
5393
  try {
5392
- if (q.__emitTokens) q.__emitTokens(r, Q);
5394
+ if (J.__emitTokens) J.__emitTokens(r, i_);
5393
5395
  else {
5394
- for (Z.matcher.considerAll();;) {
5395
- u_++, d_ ? d_ = !1 : Z.matcher.considerAll(), Z.matcher.lastIndex = l_;
5396
- let e = Z.matcher.exec(r);
5396
+ for (Q.matcher.considerAll();;) {
5397
+ c_++, l_ ? l_ = !1 : Q.matcher.considerAll(), Q.matcher.lastIndex = s_;
5398
+ let e = Q.matcher.exec(r);
5397
5399
  if (!e) break;
5398
- let n = K(r.substring(l_, e.index), e);
5399
- l_ = e.index + n;
5400
+ let n = q(r.substring(s_, e.index), e);
5401
+ s_ = e.index + n;
5400
5402
  }
5401
- K(r.substring(l_));
5403
+ q(r.substring(s_));
5402
5404
  }
5403
- return Q.finalize(), a_ = Q.toHTML(), {
5405
+ return i_.finalize(), n_ = i_.toHTML(), {
5404
5406
  language: e,
5405
- value: a_,
5406
- relevance: c_,
5407
+ value: n_,
5408
+ relevance: o_,
5407
5409
  illegal: !1,
5408
- _emitter: Q,
5409
- _top: Z
5410
+ _emitter: i_,
5411
+ _top: Q
5410
5412
  };
5411
5413
  } catch (n) {
5412
5414
  if (n.message && n.message.includes("Illegal")) return {
5413
5415
  language: e,
5414
- value: J_(r),
5416
+ value: K_(r),
5415
5417
  illegal: !0,
5416
5418
  relevance: 0,
5417
5419
  _illegalBy: {
5418
5420
  message: n.message,
5419
- index: l_,
5420
- context: r.slice(l_ - 100, l_ + 100),
5421
+ index: s_,
5422
+ context: r.slice(s_ - 100, s_ + 100),
5421
5423
  mode: n.mode,
5422
- resultSoFar: a_
5424
+ resultSoFar: n_
5423
5425
  },
5424
- _emitter: Q
5426
+ _emitter: i_
5425
5427
  };
5426
5428
  if (s) return {
5427
5429
  language: e,
5428
- value: J_(r),
5430
+ value: K_(r),
5429
5431
  illegal: !1,
5430
5432
  relevance: 0,
5431
5433
  errorRaised: n,
5432
- _emitter: Q,
5433
- _top: Z
5434
+ _emitter: i_,
5435
+ _top: Q
5434
5436
  };
5435
5437
  throw n;
5436
5438
  }
5437
5439
  }
5438
5440
  function L(e) {
5439
5441
  let n = {
5440
- value: J_(e),
5442
+ value: K_(e),
5441
5443
  illegal: !1,
5442
5444
  relevance: 0,
5443
5445
  _top: u,
@@ -5447,13 +5449,13 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5447
5449
  }
5448
5450
  function B(e, r) {
5449
5451
  r = r || d.languages || Object.keys(n);
5450
- let i = L(e), a = r.filter(s_).filter(c_).map((n) => j(n, e, !1));
5452
+ let i = L(e), a = r.filter(a_).filter(o_).map((n) => j(n, e, !1));
5451
5453
  a.unshift(i);
5452
5454
  let [o, s] = a.sort((e, n) => {
5453
5455
  if (e.relevance !== n.relevance) return n.relevance - e.relevance;
5454
5456
  if (e.language && n.language) {
5455
- if (s_(e.language).supersetOf === n.language) return 1;
5456
- if (s_(n.language).supersetOf === e.language) return -1;
5457
+ if (a_(e.language).supersetOf === n.language) return 1;
5458
+ if (a_(n.language).supersetOf === e.language) return -1;
5457
5459
  }
5458
5460
  return 0;
5459
5461
  }), l = o;
@@ -5463,17 +5465,17 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5463
5465
  let i = n && a[n] || r;
5464
5466
  e.classList.add("hljs"), e.classList.add(`language-${i}`);
5465
5467
  }
5466
- function i_(e) {
5468
+ function G(e) {
5467
5469
  let n = null, r = g(e);
5468
5470
  if (m(r)) return;
5469
- if (f_("before:highlightElement", {
5471
+ if (u_("before:highlightElement", {
5470
5472
  el: e,
5471
5473
  language: r
5472
5474
  }), e.dataset.highlighted) {
5473
5475
  console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.", e);
5474
5476
  return;
5475
5477
  }
5476
- if (e.children.length > 0 && (d.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(e)), d.throwUnescapedHTML)) throw new q_("One of your code blocks includes unescaped HTML.", e.innerHTML);
5478
+ if (e.children.length > 0 && (d.ignoreUnescapedHTML || (console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."), console.warn("https://github.com/highlightjs/highlight.js/wiki/security"), console.warn("The element with unescaped HTML:"), console.warn(e)), d.throwUnescapedHTML)) throw new G_("One of your code blocks includes unescaped HTML.", e.innerHTML);
5477
5479
  n = e;
5478
5480
  let i = n.textContent, a = r ? v(i, {
5479
5481
  language: r,
@@ -5486,51 +5488,51 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5486
5488
  }, a.secondBest && (e.secondBest = {
5487
5489
  language: a.secondBest.language,
5488
5490
  relevance: a.secondBest.relevance
5489
- }), f_("after:highlightElement", {
5491
+ }), u_("after:highlightElement", {
5490
5492
  el: e,
5491
5493
  result: a,
5492
5494
  text: i
5493
5495
  });
5494
5496
  }
5495
- function G(e) {
5496
- d = Y_(d, e);
5497
+ function K(e) {
5498
+ d = q_(d, e);
5497
5499
  }
5498
- let K = () => {
5499
- a_(), I_("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
5500
+ let q = () => {
5501
+ n_(), P_("10.6.0", "initHighlighting() deprecated. Use highlightAll() now.");
5500
5502
  };
5501
- function q() {
5502
- a_(), I_("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
5503
+ function J() {
5504
+ n_(), P_("10.6.0", "initHighlightingOnLoad() deprecated. Use highlightAll() now.");
5503
5505
  }
5504
- let J = !1;
5505
- function a_() {
5506
+ let Z = !1;
5507
+ function n_() {
5506
5508
  function e() {
5507
- a_();
5509
+ n_();
5508
5510
  }
5509
5511
  if (document.readyState === "loading") {
5510
- J || window.addEventListener("DOMContentLoaded", e, !1), J = !0;
5512
+ Z || window.addEventListener("DOMContentLoaded", e, !1), Z = !0;
5511
5513
  return;
5512
5514
  }
5513
- document.querySelectorAll(d.cssSelector).forEach(i_);
5515
+ document.querySelectorAll(d.cssSelector).forEach(G);
5514
5516
  }
5515
- function Z(r, i) {
5517
+ function Q(r, i) {
5516
5518
  let a = null;
5517
5519
  try {
5518
5520
  a = i(e);
5519
5521
  } catch (e) {
5520
- if (P_("Language definition for '{}' could not be registered.".replace("{}", r)), s) P_(e);
5522
+ if (M_("Language definition for '{}' could not be registered.".replace("{}", r)), s) M_(e);
5521
5523
  else throw e;
5522
5524
  a = u;
5523
5525
  }
5524
5526
  a.name ||= r, n[r] = a, a.rawDefinition = i.bind(null, e), a.aliases && $(a.aliases, { languageName: r });
5525
5527
  }
5526
- function o_(e) {
5528
+ function r_(e) {
5527
5529
  delete n[e];
5528
5530
  for (let n of Object.keys(a)) a[n] === e && delete a[n];
5529
5531
  }
5530
- function Q() {
5532
+ function i_() {
5531
5533
  return Object.keys(n);
5532
5534
  }
5533
- function s_(e) {
5535
+ function a_(e) {
5534
5536
  return e = (e || "").toLowerCase(), n[e] || n[a[e]];
5535
5537
  }
5536
5538
  function $(e, { languageName: n }) {
@@ -5538,65 +5540,65 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
5538
5540
  a[e.toLowerCase()] = n;
5539
5541
  });
5540
5542
  }
5541
- function c_(e) {
5542
- let n = s_(e);
5543
+ function o_(e) {
5544
+ let n = a_(e);
5543
5545
  return n && !n.disableAutodetect;
5544
5546
  }
5545
- function l_(e) {
5547
+ function s_(e) {
5546
5548
  e["before:highlightBlock"] && !e["before:highlightElement"] && (e["before:highlightElement"] = (n) => {
5547
5549
  e["before:highlightBlock"](Object.assign({ block: n.el }, n));
5548
5550
  }), e["after:highlightBlock"] && !e["after:highlightElement"] && (e["after:highlightElement"] = (n) => {
5549
5551
  e["after:highlightBlock"](Object.assign({ block: n.el }, n));
5550
5552
  });
5551
5553
  }
5552
- function u_(e) {
5553
- l_(e), o.push(e);
5554
+ function c_(e) {
5555
+ s_(e), o.push(e);
5554
5556
  }
5555
- function d_(e) {
5557
+ function l_(e) {
5556
5558
  let n = o.indexOf(e);
5557
5559
  n !== -1 && o.splice(n, 1);
5558
5560
  }
5559
- function f_(e, n) {
5561
+ function u_(e, n) {
5560
5562
  let r = e;
5561
5563
  o.forEach(function(e) {
5562
5564
  e[r] && e[r](n);
5563
5565
  });
5564
5566
  }
5565
- function p_(e) {
5566
- return I_("10.7.0", "highlightBlock will be removed entirely in v12.0"), I_("10.7.0", "Please use highlightElement now."), i_(e);
5567
+ function d_(e) {
5568
+ return P_("10.7.0", "highlightBlock will be removed entirely in v12.0"), P_("10.7.0", "Please use highlightElement now."), G(e);
5567
5569
  }
5568
5570
  for (let n in Object.assign(e, {
5569
5571
  highlight: v,
5570
5572
  highlightAuto: B,
5571
- highlightAll: a_,
5572
- highlightElement: i_,
5573
- highlightBlock: p_,
5574
- configure: G,
5575
- initHighlighting: K,
5576
- initHighlightingOnLoad: q,
5577
- registerLanguage: Z,
5578
- unregisterLanguage: o_,
5579
- listLanguages: Q,
5580
- getLanguage: s_,
5573
+ highlightAll: n_,
5574
+ highlightElement: G,
5575
+ highlightBlock: d_,
5576
+ configure: K,
5577
+ initHighlighting: q,
5578
+ initHighlightingOnLoad: J,
5579
+ registerLanguage: Q,
5580
+ unregisterLanguage: r_,
5581
+ listLanguages: i_,
5582
+ getLanguage: a_,
5581
5583
  registerAliases: $,
5582
- autoDetection: c_,
5583
- inherit: Y_,
5584
- addPlugin: u_,
5585
- removePlugin: d_
5584
+ autoDetection: o_,
5585
+ inherit: q_,
5586
+ addPlugin: c_,
5587
+ removePlugin: l_
5586
5588
  }), e.debugMode = function() {
5587
5589
  s = !1;
5588
5590
  }, e.safeMode = function() {
5589
5591
  s = !0;
5590
- }, e.versionString = K_, e.regex = {
5592
+ }, e.versionString = W_, e.regex = {
5591
5593
  concat: k,
5592
5594
  lookahead: T,
5593
5595
  either: I,
5594
5596
  optional: O,
5595
5597
  anyNumberOfTimes: E
5596
- }, b_) typeof b_[n] == "object" && r(b_[n]);
5597
- return Object.assign(e, b_), e;
5598
- }, $_ = Q_({});
5599
- $_.newInstance = () => Q_({}), n.exports = $_, $_.HighlightJS = $_, $_.default = $_;
5598
+ }, v_) typeof v_[n] == "object" && r(v_[n]);
5599
+ return Object.assign(e, v_), e;
5600
+ }, Z_ = X_({});
5601
+ Z_.newInstance = () => X_({}), n.exports = Z_, Z_.HighlightJS = Z_, Z_.default = Z_;
5600
5602
  })), require__1c = /* @__PURE__ */ __commonJSMin(((e, n) => {
5601
5603
  function r(e) {
5602
5604
  let n = "[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+", r = "далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ", i = "null истина ложь неопределено", a = e.inherit(e.NUMBER_MODE), o = {
@@ -11702,10 +11704,10 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11702
11704
  },
11703
11705
  z
11704
11706
  ]
11705
- }, i_ = {
11707
+ }, G = {
11706
11708
  scope: "computation-expression",
11707
11709
  match: /\b[_a-z]\w*(?=\s*\{)/
11708
- }, G = {
11710
+ }, K = {
11709
11711
  begin: [
11710
11712
  /^\s*/,
11711
11713
  o(/#/, l(...s)),
@@ -11713,27 +11715,27 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11713
11715
  ],
11714
11716
  beginScope: { 2: "meta" },
11715
11717
  end: a(/\s|$/)
11716
- }, K = { variants: [e.BINARY_NUMBER_MODE, e.C_NUMBER_MODE] }, q = {
11718
+ }, q = { variants: [e.BINARY_NUMBER_MODE, e.C_NUMBER_MODE] }, J = {
11717
11719
  scope: "string",
11718
11720
  begin: /"/,
11719
11721
  end: /"/,
11720
11722
  contains: [e.BACKSLASH_ESCAPE]
11721
- }, J = {
11723
+ }, Z = {
11722
11724
  scope: "string",
11723
11725
  begin: /@"/,
11724
11726
  end: /"/,
11725
11727
  contains: [{ match: /""/ }, e.BACKSLASH_ESCAPE]
11726
- }, a_ = {
11728
+ }, n_ = {
11727
11729
  scope: "string",
11728
11730
  begin: /"""/,
11729
11731
  end: /"""/,
11730
11732
  relevance: 2
11731
- }, Z = {
11733
+ }, Q = {
11732
11734
  scope: "subst",
11733
11735
  begin: /\{/,
11734
11736
  end: /\}/,
11735
11737
  keywords: g
11736
- }, o_ = {
11738
+ }, r_ = {
11737
11739
  scope: "string",
11738
11740
  begin: /\$"/,
11739
11741
  end: /"/,
@@ -11741,9 +11743,9 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11741
11743
  { match: /\{\{/ },
11742
11744
  { match: /\}\}/ },
11743
11745
  e.BACKSLASH_ESCAPE,
11744
- Z
11746
+ Q
11745
11747
  ]
11746
- }, Q = {
11748
+ }, i_ = {
11747
11749
  scope: "string",
11748
11750
  begin: /(\$@|@\$)"/,
11749
11751
  end: /"/,
@@ -11752,45 +11754,45 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11752
11754
  { match: /\}\}/ },
11753
11755
  { match: /""/ },
11754
11756
  e.BACKSLASH_ESCAPE,
11755
- Z
11757
+ Q
11756
11758
  ]
11757
- }, s_ = {
11759
+ }, a_ = {
11758
11760
  scope: "string",
11759
11761
  begin: /\$"""/,
11760
11762
  end: /"""/,
11761
11763
  contains: [
11762
11764
  { match: /\{\{/ },
11763
11765
  { match: /\}\}/ },
11764
- Z
11766
+ Q
11765
11767
  ],
11766
11768
  relevance: 2
11767
11769
  }, $ = {
11768
11770
  scope: "string",
11769
11771
  match: o(/'/, l(/[^\\']/, /\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/), /'/)
11770
11772
  };
11771
- Z.contains = [
11772
- Q,
11773
- o_,
11773
+ Q.contains = [
11774
+ i_,
11775
+ r_,
11776
+ Z,
11774
11777
  J,
11775
- q,
11776
11778
  $,
11777
11779
  i,
11778
11780
  _,
11779
11781
  T,
11780
11782
  z,
11781
- i_,
11782
11783
  G,
11783
11784
  K,
11785
+ q,
11784
11786
  O,
11785
11787
  j
11786
11788
  ];
11787
- let c_ = { variants: [
11788
- s_,
11789
- Q,
11790
- o_,
11789
+ let o_ = { variants: [
11791
11790
  a_,
11791
+ i_,
11792
+ r_,
11793
+ n_,
11794
+ Z,
11792
11795
  J,
11793
- q,
11794
11796
  $
11795
11797
  ] };
11796
11798
  return {
@@ -11801,7 +11803,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11801
11803
  classNameAliases: { "computation-expression": "keyword" },
11802
11804
  contains: [
11803
11805
  i,
11804
- c_,
11806
+ o_,
11805
11807
  _,
11806
11808
  T,
11807
11809
  H,
@@ -11812,18 +11814,18 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
11812
11814
  relevance: 2,
11813
11815
  contains: [
11814
11816
  T,
11815
- a_,
11817
+ n_,
11818
+ Z,
11816
11819
  J,
11817
- q,
11818
11820
  $,
11819
- K
11821
+ q
11820
11822
  ]
11821
11823
  },
11822
11824
  B,
11823
11825
  z,
11824
- i_,
11825
11826
  G,
11826
11827
  K,
11828
+ q,
11827
11829
  O,
11828
11830
  j
11829
11831
  ]
@@ -13937,12 +13939,12 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
13937
13939
  contains: [e.BACKSLASH_ESCAPE, L],
13938
13940
  subLanguage: "graphql"
13939
13941
  }
13940
- }, i_ = {
13942
+ }, G = {
13941
13943
  className: "string",
13942
13944
  begin: "`",
13943
13945
  end: "`",
13944
13946
  contains: [e.BACKSLASH_ESCAPE, L]
13945
- }, G = {
13947
+ }, K = {
13946
13948
  className: "comment",
13947
13949
  variants: [
13948
13950
  e.COMMENT(/\/\*\*(?!\/)/, "\\*/", {
@@ -13979,36 +13981,36 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
13979
13981
  e.C_BLOCK_COMMENT_MODE,
13980
13982
  e.C_LINE_COMMENT_MODE
13981
13983
  ]
13982
- }, K = [
13984
+ }, q = [
13983
13985
  e.APOS_STRING_MODE,
13984
13986
  e.QUOTE_STRING_MODE,
13985
13987
  z,
13986
13988
  B,
13987
13989
  H,
13988
- i_,
13990
+ G,
13989
13991
  { match: /\$\d+/ },
13990
13992
  I
13991
13993
  ];
13992
- L.contains = K.concat({
13994
+ L.contains = q.concat({
13993
13995
  begin: /\{/,
13994
13996
  end: /\}/,
13995
13997
  keywords: E,
13996
- contains: ["self"].concat(K)
13998
+ contains: ["self"].concat(q)
13997
13999
  });
13998
- let q = [].concat(G, L.contains), J = q.concat([{
14000
+ let J = [].concat(K, L.contains), Z = J.concat([{
13999
14001
  begin: /(\s*)\(/,
14000
14002
  end: /\)/,
14001
14003
  keywords: E,
14002
- contains: ["self"].concat(q)
14003
- }]), a_ = {
14004
+ contains: ["self"].concat(J)
14005
+ }]), n_ = {
14004
14006
  className: "params",
14005
14007
  begin: /(\s*)\(/,
14006
14008
  end: /\)/,
14007
14009
  excludeBegin: !0,
14008
14010
  excludeEnd: !0,
14009
14011
  keywords: E,
14010
- contains: J
14011
- }, Z = { variants: [{
14012
+ contains: Z
14013
+ }, Q = { variants: [{
14012
14014
  match: [
14013
14015
  /class/,
14014
14016
  /\s+/,
@@ -14034,17 +14036,17 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14034
14036
  1: "keyword",
14035
14037
  3: "title.class"
14036
14038
  }
14037
- }] }, o_ = {
14039
+ }] }, r_ = {
14038
14040
  relevance: 0,
14039
14041
  match: n.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
14040
14042
  className: "title.class",
14041
14043
  keywords: { _: [...o, ...s] }
14042
- }, Q = {
14044
+ }, i_ = {
14043
14045
  label: "use_strict",
14044
14046
  className: "meta",
14045
14047
  relevance: 10,
14046
14048
  begin: /^\s*['"]use (strict|asm)['"]/
14047
- }, s_ = {
14049
+ }, a_ = {
14048
14050
  variants: [{ match: [
14049
14051
  /function/,
14050
14052
  /\s+/,
@@ -14056,32 +14058,32 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14056
14058
  3: "title.function"
14057
14059
  },
14058
14060
  label: "func.def",
14059
- contains: [a_],
14061
+ contains: [n_],
14060
14062
  illegal: /%/
14061
14063
  }, $ = {
14062
14064
  relevance: 0,
14063
14065
  match: /\b[A-Z][A-Z_0-9]+\b/,
14064
14066
  className: "variable.constant"
14065
14067
  };
14066
- function c_(e) {
14068
+ function o_(e) {
14067
14069
  return n.concat("(?!", e.join("|"), ")");
14068
14070
  }
14069
- let l_ = {
14070
- match: n.concat(/\b/, c_([
14071
+ let s_ = {
14072
+ match: n.concat(/\b/, o_([
14071
14073
  ...l,
14072
14074
  "super",
14073
14075
  "import"
14074
14076
  ].map((e) => `${e}\\s*\\(`)), g, n.lookahead(/\s*\(/)),
14075
14077
  className: "title.function",
14076
14078
  relevance: 0
14077
- }, u_ = {
14079
+ }, c_ = {
14078
14080
  begin: n.concat(/\./, n.lookahead(n.concat(g, /(?![0-9A-Za-z$_(])/))),
14079
14081
  end: g,
14080
14082
  excludeBegin: !0,
14081
14083
  keywords: "prototype",
14082
14084
  className: "property",
14083
14085
  relevance: 0
14084
- }, d_ = {
14086
+ }, l_ = {
14085
14087
  match: [
14086
14088
  /get|set/,
14087
14089
  /\s+/,
@@ -14092,8 +14094,8 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14092
14094
  1: "keyword",
14093
14095
  3: "title.function"
14094
14096
  },
14095
- contains: [{ begin: /\(\)/ }, a_]
14096
- }, f_ = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", p_ = {
14097
+ contains: [{ begin: /\(\)/ }, n_]
14098
+ }, u_ = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", d_ = {
14097
14099
  match: [
14098
14100
  /const|var|let/,
14099
14101
  /\s+/,
@@ -14101,14 +14103,14 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14101
14103
  /\s*/,
14102
14104
  /=\s*/,
14103
14105
  /(async\s*)?/,
14104
- n.lookahead(f_)
14106
+ n.lookahead(u_)
14105
14107
  ],
14106
14108
  keywords: "async",
14107
14109
  className: {
14108
14110
  1: "keyword",
14109
14111
  3: "title.function"
14110
14112
  },
14111
- contains: [a_]
14113
+ contains: [n_]
14112
14114
  };
14113
14115
  return {
14114
14116
  name: "JavaScript",
@@ -14120,8 +14122,8 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14120
14122
  ],
14121
14123
  keywords: E,
14122
14124
  exports: {
14123
- PARAMS_CONTAINS: J,
14124
- CLASS_REFERENCE: o_
14125
+ PARAMS_CONTAINS: Z,
14126
+ CLASS_REFERENCE: r_
14125
14127
  },
14126
14128
  illegal: /#(?![$_A-z])/,
14127
14129
  contains: [
@@ -14130,33 +14132,33 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14130
14132
  binary: "node",
14131
14133
  relevance: 5
14132
14134
  }),
14133
- Q,
14135
+ i_,
14134
14136
  e.APOS_STRING_MODE,
14135
14137
  e.QUOTE_STRING_MODE,
14136
14138
  z,
14137
14139
  B,
14138
14140
  H,
14139
- i_,
14140
14141
  G,
14142
+ K,
14141
14143
  { match: /\$\d+/ },
14142
14144
  I,
14143
- o_,
14145
+ r_,
14144
14146
  {
14145
14147
  scope: "attr",
14146
14148
  match: g + n.lookahead(":"),
14147
14149
  relevance: 0
14148
14150
  },
14149
- p_,
14151
+ d_,
14150
14152
  {
14151
14153
  begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
14152
14154
  keywords: "return throw case",
14153
14155
  relevance: 0,
14154
14156
  contains: [
14155
- G,
14157
+ K,
14156
14158
  e.REGEXP_MODE,
14157
14159
  {
14158
14160
  className: "function",
14159
- begin: f_,
14161
+ begin: u_,
14160
14162
  returnBegin: !0,
14161
14163
  end: "\\s*=>",
14162
14164
  contains: [{
@@ -14177,7 +14179,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14177
14179
  excludeBegin: !0,
14178
14180
  excludeEnd: !0,
14179
14181
  keywords: E,
14180
- contains: J
14182
+ contains: Z
14181
14183
  }
14182
14184
  ]
14183
14185
  }]
@@ -14213,13 +14215,13 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14213
14215
  }
14214
14216
  ]
14215
14217
  },
14216
- s_,
14218
+ a_,
14217
14219
  { beginKeywords: "while if switch catch for" },
14218
14220
  {
14219
14221
  begin: "\\b(?!function)" + e.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
14220
14222
  returnBegin: !0,
14221
14223
  label: "func.def",
14222
- contains: [a_, e.inherit(e.TITLE_MODE, {
14224
+ contains: [n_, e.inherit(e.TITLE_MODE, {
14223
14225
  begin: g,
14224
14226
  className: "title.function"
14225
14227
  })]
@@ -14228,7 +14230,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14228
14230
  match: /\.\.\./,
14229
14231
  relevance: 0
14230
14232
  },
14231
- u_,
14233
+ c_,
14232
14234
  {
14233
14235
  match: "\\$" + g,
14234
14236
  relevance: 0
@@ -14236,12 +14238,12 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
14236
14238
  {
14237
14239
  match: [/\bconstructor(?=\s*\()/],
14238
14240
  className: { 1: "title.function" },
14239
- contains: [a_]
14241
+ contains: [n_]
14240
14242
  },
14241
- l_,
14243
+ s_,
14242
14244
  $,
14243
- Z,
14244
- d_,
14245
+ Q,
14246
+ l_,
14245
14247
  { match: /\$[(.]/ }
14246
14248
  ]
14247
14249
  };
@@ -15195,12 +15197,12 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
15195
15197
  { begin: "!important" },
15196
15198
  n.FUNCTION_DISPATCH
15197
15199
  ]
15198
- }, i_ = {
15200
+ }, G = {
15199
15201
  begin: `[\\w-]+:(:)?(${i.join("|")})`,
15200
15202
  returnBegin: !0,
15201
15203
  contains: [H]
15202
15204
  };
15203
- return _.push(e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, z, B, i_, L, H, I, n.FUNCTION_DISPATCH), {
15205
+ return _.push(e.C_LINE_COMMENT_MODE, e.C_BLOCK_COMMENT_MODE, z, B, G, L, H, I, n.FUNCTION_DISPATCH), {
15204
15206
  name: "Less",
15205
15207
  case_insensitive: !0,
15206
15208
  illegal: "[=>'/<($\"]",
@@ -17726,16 +17728,16 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17726
17728
  3: "variable.language"
17727
17729
  }
17728
17730
  }
17729
- ] }, i_ = {
17731
+ ] }, G = {
17730
17732
  scope: "attr",
17731
17733
  match: n.concat(i, n.lookahead(":"), n.lookahead(/(?!::)/))
17732
- }, G = {
17734
+ }, K = {
17733
17735
  relevance: 0,
17734
17736
  begin: /\(/,
17735
17737
  end: /\)/,
17736
17738
  keywords: I,
17737
17739
  contains: [
17738
- i_,
17740
+ G,
17739
17741
  s,
17740
17742
  H,
17741
17743
  e.C_BLOCK_COMMENT_MODE,
@@ -17743,7 +17745,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17743
17745
  E,
17744
17746
  z
17745
17747
  ]
17746
- }, K = {
17748
+ }, q = {
17747
17749
  relevance: 0,
17748
17750
  match: [
17749
17751
  /\b/,
@@ -17753,17 +17755,17 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17753
17755
  n.lookahead(/(?=\()/)
17754
17756
  ],
17755
17757
  scope: { 3: "title.function.invoke" },
17756
- contains: [G]
17758
+ contains: [K]
17757
17759
  };
17758
- G.contains.push(K);
17759
- let q = [
17760
- i_,
17760
+ K.contains.push(q);
17761
+ let J = [
17762
+ G,
17761
17763
  H,
17762
17764
  e.C_BLOCK_COMMENT_MODE,
17763
17765
  T,
17764
17766
  E,
17765
17767
  z
17766
- ], J = {
17768
+ ], Z = {
17767
17769
  begin: n.concat(/#\[\s*\\?/, n.either(a, o)),
17768
17770
  beginScope: "meta",
17769
17771
  end: /]/,
@@ -17780,9 +17782,9 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17780
17782
  literal: O,
17781
17783
  keyword: ["new", "array"]
17782
17784
  },
17783
- contains: ["self", ...q]
17785
+ contains: ["self", ...J]
17784
17786
  },
17785
- ...q,
17787
+ ...J,
17786
17788
  {
17787
17789
  scope: "meta",
17788
17790
  variants: [{ match: a }, { match: o }]
@@ -17793,7 +17795,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17793
17795
  case_insensitive: !1,
17794
17796
  keywords: I,
17795
17797
  contains: [
17796
- J,
17798
+ Z,
17797
17799
  e.HASH_COMMENT_MODE,
17798
17800
  e.COMMENT("//", "$"),
17799
17801
  e.COMMENT("/\\*", "\\*/", { contains: [{
@@ -17819,7 +17821,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17819
17821
  match: /\$this\b/
17820
17822
  },
17821
17823
  s,
17822
- K,
17824
+ q,
17823
17825
  H,
17824
17826
  {
17825
17827
  match: [
@@ -17856,7 +17858,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
17856
17858
  keywords: I,
17857
17859
  contains: [
17858
17860
  "self",
17859
- J,
17861
+ Z,
17860
17862
  s,
17861
17863
  H,
17862
17864
  e.C_BLOCK_COMMENT_MODE,
@@ -21175,7 +21177,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21175
21177
  "unknown",
21176
21178
  "usableFromInline",
21177
21179
  "warn_unqualified_access"
21178
- ], i_ = [
21180
+ ], G = [
21179
21181
  "iOS",
21180
21182
  "iOSApplicationExtension",
21181
21183
  "macOS",
@@ -21188,7 +21190,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21188
21190
  "tvOSApplicationExtension",
21189
21191
  "swift"
21190
21192
  ];
21191
- function G(e) {
21193
+ function K(e) {
21192
21194
  let n = {
21193
21195
  match: /\s+/,
21194
21196
  relevance: 0
@@ -21198,104 +21200,104 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21198
21200
  }, I = {
21199
21201
  match: a(/\./, s(...g)),
21200
21202
  relevance: 0
21201
- }, G = g.filter((e) => typeof e == "string").concat(["_|0"]), K = { variants: [{
21203
+ }, K = g.filter((e) => typeof e == "string").concat(["_|0"]), q = { variants: [{
21202
21204
  className: "keyword",
21203
21205
  match: s(...g.filter((e) => typeof e != "string").concat(m).map(l), ...d)
21204
- }] }, q = {
21206
+ }] }, J = {
21205
21207
  $pattern: s(/\b\w+/, /#\w+/),
21206
- keyword: G.concat(T),
21208
+ keyword: K.concat(T),
21207
21209
  literal: _
21208
- }, J = [
21210
+ }, Z = [
21209
21211
  O,
21210
21212
  I,
21211
- K
21212
- ], a_ = [{
21213
+ q
21214
+ ], n_ = [{
21213
21215
  match: a(/\./, s(...E)),
21214
21216
  relevance: 0
21215
21217
  }, {
21216
21218
  className: "built_in",
21217
21219
  match: a(/\b/, s(...E), /(?=\()/)
21218
- }], Z = {
21220
+ }], Q = {
21219
21221
  match: /->/,
21220
21222
  relevance: 0
21221
- }, o_ = [Z, {
21223
+ }, r_ = [Q, {
21222
21224
  className: "operator",
21223
21225
  relevance: 0,
21224
21226
  variants: [{ match: j }, { match: `\\.(\\.|${k})+` }]
21225
- }], Q = "([0-9]_*)+", s_ = "([0-9a-fA-F]_*)+", $ = {
21227
+ }], i_ = "([0-9]_*)+", a_ = "([0-9a-fA-F]_*)+", $ = {
21226
21228
  className: "number",
21227
21229
  relevance: 0,
21228
21230
  variants: [
21229
- { match: `\\b(${Q})(\\.(${Q}))?([eE][+-]?(${Q}))?\\b` },
21230
- { match: `\\b0x(${s_})(\\.(${s_}))?([pP][+-]?(${Q}))?\\b` },
21231
+ { match: `\\b(${i_})(\\.(${i_}))?([eE][+-]?(${i_}))?\\b` },
21232
+ { match: `\\b0x(${a_})(\\.(${a_}))?([pP][+-]?(${i_}))?\\b` },
21231
21233
  { match: /\b0o([0-7]_*)+\b/ },
21232
21234
  { match: /\b0b([01]_*)+\b/ }
21233
21235
  ]
21234
- }, c_ = (e = "") => ({
21236
+ }, o_ = (e = "") => ({
21235
21237
  className: "subst",
21236
21238
  variants: [{ match: a(/\\/, e, /[0\\tnr"']/) }, { match: a(/\\/, e, /u\{[0-9a-fA-F]{1,8}\}/) }]
21237
- }), l_ = (e = "") => ({
21239
+ }), s_ = (e = "") => ({
21238
21240
  className: "subst",
21239
21241
  match: a(/\\/, e, /[\t ]*(?:[\r\n]|\r\n)/)
21240
- }), u_ = (e = "") => ({
21242
+ }), c_ = (e = "") => ({
21241
21243
  className: "subst",
21242
21244
  label: "interpol",
21243
21245
  begin: a(/\\/, e, /\(/),
21244
21246
  end: /\)/
21245
- }), d_ = (e = "") => ({
21247
+ }), l_ = (e = "") => ({
21246
21248
  begin: a(e, /"""/),
21247
21249
  end: a(/"""/, e),
21248
21250
  contains: [
21249
- c_(e),
21250
- l_(e),
21251
- u_(e)
21251
+ o_(e),
21252
+ s_(e),
21253
+ c_(e)
21252
21254
  ]
21253
- }), f_ = (e = "") => ({
21255
+ }), u_ = (e = "") => ({
21254
21256
  begin: a(e, /"/),
21255
21257
  end: a(/"/, e),
21256
- contains: [c_(e), u_(e)]
21257
- }), p_ = {
21258
+ contains: [o_(e), c_(e)]
21259
+ }), d_ = {
21258
21260
  className: "string",
21259
21261
  variants: [
21260
- d_(),
21261
- d_("#"),
21262
- d_("##"),
21263
- d_("###"),
21264
- f_(),
21265
- f_("#"),
21266
- f_("##"),
21267
- f_("###")
21262
+ l_(),
21263
+ l_("#"),
21264
+ l_("##"),
21265
+ l_("###"),
21266
+ u_(),
21267
+ u_("#"),
21268
+ u_("##"),
21269
+ u_("###")
21268
21270
  ]
21269
- }, m_ = [e.BACKSLASH_ESCAPE, {
21271
+ }, f_ = [e.BACKSLASH_ESCAPE, {
21270
21272
  begin: /\[/,
21271
21273
  end: /\]/,
21272
21274
  relevance: 0,
21273
21275
  contains: [e.BACKSLASH_ESCAPE]
21274
- }], h_ = {
21276
+ }], p_ = {
21275
21277
  begin: /\/[^\s](?=[^/\n]*\/)/,
21276
21278
  end: /\//,
21277
- contains: m_
21278
- }, g_ = (e) => {
21279
+ contains: f_
21280
+ }, m_ = (e) => {
21279
21281
  let n = a(e, /\//), r = a(/\//, e);
21280
21282
  return {
21281
21283
  begin: n,
21282
21284
  end: r,
21283
- contains: [...m_, {
21285
+ contains: [...f_, {
21284
21286
  scope: "comment",
21285
21287
  begin: `#(?!.*${r})`,
21286
21288
  end: /$/
21287
21289
  }]
21288
21290
  };
21289
- }, __ = {
21291
+ }, h_ = {
21290
21292
  scope: "regexp",
21291
21293
  variants: [
21292
- g_("###"),
21293
- g_("##"),
21294
- g_("#"),
21295
- h_
21294
+ m_("###"),
21295
+ m_("##"),
21296
+ m_("#"),
21297
+ p_
21296
21298
  ]
21297
- }, v_ = { match: a(/`/, z, /`/) }, y_ = [
21298
- v_,
21299
+ }, g_ = { match: a(/`/, z, /`/) }, __ = [
21300
+ g_,
21299
21301
  {
21300
21302
  className: "variable",
21301
21303
  match: /\$\d+/
@@ -21304,18 +21306,18 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21304
21306
  className: "variable",
21305
21307
  match: `\\$${L}+`
21306
21308
  }
21307
- ], b_ = [
21309
+ ], v_ = [
21308
21310
  {
21309
21311
  match: /(@|#(un)?)available/,
21310
21312
  scope: "keyword",
21311
21313
  starts: { contains: [{
21312
21314
  begin: /\(/,
21313
21315
  end: /\)/,
21314
- keywords: i_,
21316
+ keywords: G,
21315
21317
  contains: [
21316
- ...o_,
21318
+ ...r_,
21317
21319
  $,
21318
- p_
21320
+ d_
21319
21321
  ]
21320
21322
  }] }
21321
21323
  },
@@ -21327,7 +21329,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21327
21329
  scope: "meta",
21328
21330
  match: a(/@/, z)
21329
21331
  }
21330
- ], x_ = {
21332
+ ], y_ = {
21331
21333
  match: i(/\b[A-Z]/),
21332
21334
  relevance: 0,
21333
21335
  contains: [
@@ -21353,24 +21355,24 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21353
21355
  relevance: 0
21354
21356
  }
21355
21357
  ]
21356
- }, S_ = {
21358
+ }, b_ = {
21357
21359
  begin: /</,
21358
21360
  end: />/,
21359
- keywords: q,
21361
+ keywords: J,
21360
21362
  contains: [
21361
21363
  ...o,
21362
- ...J,
21363
- ...b_,
21364
- Z,
21365
- x_
21364
+ ...Z,
21365
+ ...v_,
21366
+ Q,
21367
+ y_
21366
21368
  ]
21367
21369
  };
21368
- x_.contains.push(S_);
21369
- let C_ = {
21370
+ y_.contains.push(b_);
21371
+ let x_ = {
21370
21372
  begin: /\(/,
21371
21373
  end: /\)/,
21372
21374
  relevance: 0,
21373
- keywords: q,
21375
+ keywords: J,
21374
21376
  contains: [
21375
21377
  "self",
21376
21378
  {
@@ -21379,25 +21381,25 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21379
21381
  relevance: 0
21380
21382
  },
21381
21383
  ...o,
21382
- __,
21383
- ...J,
21384
- ...a_,
21385
- ...o_,
21384
+ h_,
21385
+ ...Z,
21386
+ ...n_,
21387
+ ...r_,
21386
21388
  $,
21387
- p_,
21388
- ...y_,
21389
- ...b_,
21390
- x_
21389
+ d_,
21390
+ ...__,
21391
+ ...v_,
21392
+ y_
21391
21393
  ]
21392
- }, w_ = {
21394
+ }, S_ = {
21393
21395
  begin: /</,
21394
21396
  end: />/,
21395
21397
  keywords: "repeat each",
21396
- contains: [...o, x_]
21397
- }, T_ = {
21398
+ contains: [...o, y_]
21399
+ }, C_ = {
21398
21400
  begin: /\(/,
21399
21401
  end: /\)/,
21400
- keywords: q,
21402
+ keywords: J,
21401
21403
  contains: [
21402
21404
  {
21403
21405
  begin: s(i(a(z, /\s*:/)), i(a(z, /\s+/, z, /\s*:/))),
@@ -21412,42 +21414,42 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21412
21414
  }]
21413
21415
  },
21414
21416
  ...o,
21415
- ...J,
21416
- ...o_,
21417
+ ...Z,
21418
+ ...r_,
21417
21419
  $,
21418
- p_,
21419
- ...b_,
21420
- x_,
21421
- C_
21420
+ d_,
21421
+ ...v_,
21422
+ y_,
21423
+ x_
21422
21424
  ],
21423
21425
  endsParent: !0,
21424
21426
  illegal: /["']/
21425
- }, E_ = {
21427
+ }, w_ = {
21426
21428
  match: [
21427
21429
  /(func|macro)/,
21428
21430
  /\s+/,
21429
- s(v_.match, z, j)
21431
+ s(g_.match, z, j)
21430
21432
  ],
21431
21433
  className: {
21432
21434
  1: "keyword",
21433
21435
  3: "title.function"
21434
21436
  },
21435
21437
  contains: [
21436
- w_,
21437
- T_,
21438
+ S_,
21439
+ C_,
21438
21440
  n
21439
21441
  ],
21440
21442
  illegal: [/\[/, /%/]
21441
- }, D_ = {
21443
+ }, T_ = {
21442
21444
  match: [/\b(?:subscript|init[?!]?)/, /\s*(?=[<(])/],
21443
21445
  className: { 1: "keyword" },
21444
21446
  contains: [
21445
- w_,
21446
- T_,
21447
+ S_,
21448
+ C_,
21447
21449
  n
21448
21450
  ],
21449
21451
  illegal: /\[|%/
21450
- }, O_ = {
21452
+ }, E_ = {
21451
21453
  match: [
21452
21454
  /operator/,
21453
21455
  /\s+/,
@@ -21457,7 +21459,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21457
21459
  1: "keyword",
21458
21460
  3: "title"
21459
21461
  }
21460
- }, k_ = {
21462
+ }, D_ = {
21461
21463
  begin: [
21462
21464
  /precedencegroup/,
21463
21465
  /\s+/,
@@ -21467,10 +21469,10 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21467
21469
  1: "keyword",
21468
21470
  3: "title"
21469
21471
  },
21470
- contains: [x_],
21472
+ contains: [y_],
21471
21473
  keywords: [...v, ..._],
21472
21474
  end: /}/
21473
- }, A_ = {
21475
+ }, O_ = {
21474
21476
  match: [
21475
21477
  /class\b/,
21476
21478
  /\s+/,
@@ -21483,7 +21485,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21483
21485
  3: "keyword",
21484
21486
  5: "title.function"
21485
21487
  }
21486
- }, j_ = {
21488
+ }, k_ = {
21487
21489
  match: [
21488
21490
  /class\b/,
21489
21491
  /\s+/,
@@ -21493,7 +21495,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21493
21495
  1: "keyword",
21494
21496
  3: "keyword"
21495
21497
  }
21496
- }, M_ = {
21498
+ }, A_ = {
21497
21499
  begin: [
21498
21500
  /(struct|protocol|class|extension|enum|actor)/,
21499
21501
  /\s+/,
@@ -21504,32 +21506,32 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21504
21506
  1: "keyword",
21505
21507
  3: "title.class"
21506
21508
  },
21507
- keywords: q,
21509
+ keywords: J,
21508
21510
  contains: [
21509
- w_,
21510
- ...J,
21511
+ S_,
21512
+ ...Z,
21511
21513
  {
21512
21514
  begin: /:/,
21513
21515
  end: /\{/,
21514
- keywords: q,
21516
+ keywords: J,
21515
21517
  contains: [{
21516
21518
  scope: "title.class.inherited",
21517
21519
  match: B
21518
- }, ...J],
21520
+ }, ...Z],
21519
21521
  relevance: 0
21520
21522
  }
21521
21523
  ]
21522
21524
  };
21523
- for (let e of p_.variants) {
21525
+ for (let e of d_.variants) {
21524
21526
  let n = e.contains.find((e) => e.label === "interpol");
21525
- n.keywords = q;
21527
+ n.keywords = J;
21526
21528
  let r = [
21527
- ...J,
21528
- ...a_,
21529
- ...o_,
21529
+ ...Z,
21530
+ ...n_,
21531
+ ...r_,
21530
21532
  $,
21531
- p_,
21532
- ...y_
21533
+ d_,
21534
+ ...__
21533
21535
  ];
21534
21536
  n.contains = [...r, {
21535
21537
  begin: /\(/,
@@ -21539,36 +21541,36 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
21539
21541
  }
21540
21542
  return {
21541
21543
  name: "Swift",
21542
- keywords: q,
21544
+ keywords: J,
21543
21545
  contains: [
21544
21546
  ...o,
21545
- E_,
21546
- D_,
21547
- A_,
21548
- j_,
21549
- M_,
21547
+ w_,
21548
+ T_,
21550
21549
  O_,
21551
21550
  k_,
21551
+ A_,
21552
+ E_,
21553
+ D_,
21552
21554
  {
21553
21555
  beginKeywords: "import",
21554
21556
  end: /$/,
21555
21557
  contains: [...o],
21556
21558
  relevance: 0
21557
21559
  },
21558
- __,
21559
- ...J,
21560
- ...a_,
21561
- ...o_,
21560
+ h_,
21561
+ ...Z,
21562
+ ...n_,
21563
+ ...r_,
21562
21564
  $,
21563
- p_,
21564
- ...y_,
21565
- ...b_,
21566
- x_,
21567
- C_
21565
+ d_,
21566
+ ...__,
21567
+ ...v_,
21568
+ y_,
21569
+ x_
21568
21570
  ]
21569
21571
  };
21570
21572
  }
21571
- n.exports = G;
21573
+ n.exports = K;
21572
21574
  })), require_taggerscript = /* @__PURE__ */ __commonJSMin(((e, n) => {
21573
21575
  function r(e) {
21574
21576
  return {
@@ -22174,12 +22176,12 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22174
22176
  contains: [e.BACKSLASH_ESCAPE, L],
22175
22177
  subLanguage: "graphql"
22176
22178
  }
22177
- }, i_ = {
22179
+ }, G = {
22178
22180
  className: "string",
22179
22181
  begin: "`",
22180
22182
  end: "`",
22181
22183
  contains: [e.BACKSLASH_ESCAPE, L]
22182
- }, G = {
22184
+ }, K = {
22183
22185
  className: "comment",
22184
22186
  variants: [
22185
22187
  e.COMMENT(/\/\*\*(?!\/)/, "\\*/", {
@@ -22216,36 +22218,36 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22216
22218
  e.C_BLOCK_COMMENT_MODE,
22217
22219
  e.C_LINE_COMMENT_MODE
22218
22220
  ]
22219
- }, K = [
22221
+ }, q = [
22220
22222
  e.APOS_STRING_MODE,
22221
22223
  e.QUOTE_STRING_MODE,
22222
22224
  z,
22223
22225
  B,
22224
22226
  H,
22225
- i_,
22227
+ G,
22226
22228
  { match: /\$\d+/ },
22227
22229
  I
22228
22230
  ];
22229
- L.contains = K.concat({
22231
+ L.contains = q.concat({
22230
22232
  begin: /\{/,
22231
22233
  end: /\}/,
22232
22234
  keywords: E,
22233
- contains: ["self"].concat(K)
22235
+ contains: ["self"].concat(q)
22234
22236
  });
22235
- let q = [].concat(G, L.contains), J = q.concat([{
22237
+ let J = [].concat(K, L.contains), Z = J.concat([{
22236
22238
  begin: /(\s*)\(/,
22237
22239
  end: /\)/,
22238
22240
  keywords: E,
22239
- contains: ["self"].concat(q)
22240
- }]), a_ = {
22241
+ contains: ["self"].concat(J)
22242
+ }]), n_ = {
22241
22243
  className: "params",
22242
22244
  begin: /(\s*)\(/,
22243
22245
  end: /\)/,
22244
22246
  excludeBegin: !0,
22245
22247
  excludeEnd: !0,
22246
22248
  keywords: E,
22247
- contains: J
22248
- }, Z = { variants: [{
22249
+ contains: Z
22250
+ }, Q = { variants: [{
22249
22251
  match: [
22250
22252
  /class/,
22251
22253
  /\s+/,
@@ -22271,17 +22273,17 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22271
22273
  1: "keyword",
22272
22274
  3: "title.class"
22273
22275
  }
22274
- }] }, o_ = {
22276
+ }] }, r_ = {
22275
22277
  relevance: 0,
22276
22278
  match: n.either(/\bJSON/, /\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/, /\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/, /\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
22277
22279
  className: "title.class",
22278
22280
  keywords: { _: [...o, ...s] }
22279
- }, Q = {
22281
+ }, i_ = {
22280
22282
  label: "use_strict",
22281
22283
  className: "meta",
22282
22284
  relevance: 10,
22283
22285
  begin: /^\s*['"]use (strict|asm)['"]/
22284
- }, s_ = {
22286
+ }, a_ = {
22285
22287
  variants: [{ match: [
22286
22288
  /function/,
22287
22289
  /\s+/,
@@ -22293,32 +22295,32 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22293
22295
  3: "title.function"
22294
22296
  },
22295
22297
  label: "func.def",
22296
- contains: [a_],
22298
+ contains: [n_],
22297
22299
  illegal: /%/
22298
22300
  }, $ = {
22299
22301
  relevance: 0,
22300
22302
  match: /\b[A-Z][A-Z_0-9]+\b/,
22301
22303
  className: "variable.constant"
22302
22304
  };
22303
- function c_(e) {
22305
+ function o_(e) {
22304
22306
  return n.concat("(?!", e.join("|"), ")");
22305
22307
  }
22306
- let l_ = {
22307
- match: n.concat(/\b/, c_([
22308
+ let s_ = {
22309
+ match: n.concat(/\b/, o_([
22308
22310
  ...l,
22309
22311
  "super",
22310
22312
  "import"
22311
22313
  ].map((e) => `${e}\\s*\\(`)), g, n.lookahead(/\s*\(/)),
22312
22314
  className: "title.function",
22313
22315
  relevance: 0
22314
- }, u_ = {
22316
+ }, c_ = {
22315
22317
  begin: n.concat(/\./, n.lookahead(n.concat(g, /(?![0-9A-Za-z$_(])/))),
22316
22318
  end: g,
22317
22319
  excludeBegin: !0,
22318
22320
  keywords: "prototype",
22319
22321
  className: "property",
22320
22322
  relevance: 0
22321
- }, d_ = {
22323
+ }, l_ = {
22322
22324
  match: [
22323
22325
  /get|set/,
22324
22326
  /\s+/,
@@ -22329,8 +22331,8 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22329
22331
  1: "keyword",
22330
22332
  3: "title.function"
22331
22333
  },
22332
- contains: [{ begin: /\(\)/ }, a_]
22333
- }, f_ = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", p_ = {
22334
+ contains: [{ begin: /\(\)/ }, n_]
22335
+ }, u_ = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", d_ = {
22334
22336
  match: [
22335
22337
  /const|var|let/,
22336
22338
  /\s+/,
@@ -22338,14 +22340,14 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22338
22340
  /\s*/,
22339
22341
  /=\s*/,
22340
22342
  /(async\s*)?/,
22341
- n.lookahead(f_)
22343
+ n.lookahead(u_)
22342
22344
  ],
22343
22345
  keywords: "async",
22344
22346
  className: {
22345
22347
  1: "keyword",
22346
22348
  3: "title.function"
22347
22349
  },
22348
- contains: [a_]
22350
+ contains: [n_]
22349
22351
  };
22350
22352
  return {
22351
22353
  name: "JavaScript",
@@ -22357,8 +22359,8 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22357
22359
  ],
22358
22360
  keywords: E,
22359
22361
  exports: {
22360
- PARAMS_CONTAINS: J,
22361
- CLASS_REFERENCE: o_
22362
+ PARAMS_CONTAINS: Z,
22363
+ CLASS_REFERENCE: r_
22362
22364
  },
22363
22365
  illegal: /#(?![$_A-z])/,
22364
22366
  contains: [
@@ -22367,33 +22369,33 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22367
22369
  binary: "node",
22368
22370
  relevance: 5
22369
22371
  }),
22370
- Q,
22372
+ i_,
22371
22373
  e.APOS_STRING_MODE,
22372
22374
  e.QUOTE_STRING_MODE,
22373
22375
  z,
22374
22376
  B,
22375
22377
  H,
22376
- i_,
22377
22378
  G,
22379
+ K,
22378
22380
  { match: /\$\d+/ },
22379
22381
  I,
22380
- o_,
22382
+ r_,
22381
22383
  {
22382
22384
  scope: "attr",
22383
22385
  match: g + n.lookahead(":"),
22384
22386
  relevance: 0
22385
22387
  },
22386
- p_,
22388
+ d_,
22387
22389
  {
22388
22390
  begin: "(" + e.RE_STARTERS_RE + "|\\b(case|return|throw)\\b)\\s*",
22389
22391
  keywords: "return throw case",
22390
22392
  relevance: 0,
22391
22393
  contains: [
22392
- G,
22394
+ K,
22393
22395
  e.REGEXP_MODE,
22394
22396
  {
22395
22397
  className: "function",
22396
- begin: f_,
22398
+ begin: u_,
22397
22399
  returnBegin: !0,
22398
22400
  end: "\\s*=>",
22399
22401
  contains: [{
@@ -22414,7 +22416,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22414
22416
  excludeBegin: !0,
22415
22417
  excludeEnd: !0,
22416
22418
  keywords: E,
22417
- contains: J
22419
+ contains: Z
22418
22420
  }
22419
22421
  ]
22420
22422
  }]
@@ -22450,13 +22452,13 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22450
22452
  }
22451
22453
  ]
22452
22454
  },
22453
- s_,
22455
+ a_,
22454
22456
  { beginKeywords: "while if switch catch for" },
22455
22457
  {
22456
22458
  begin: "\\b(?!function)" + e.UNDERSCORE_IDENT_RE + "\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
22457
22459
  returnBegin: !0,
22458
22460
  label: "func.def",
22459
- contains: [a_, e.inherit(e.TITLE_MODE, {
22461
+ contains: [n_, e.inherit(e.TITLE_MODE, {
22460
22462
  begin: g,
22461
22463
  className: "title.function"
22462
22464
  })]
@@ -22465,7 +22467,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22465
22467
  match: /\.\.\./,
22466
22468
  relevance: 0
22467
22469
  },
22468
- u_,
22470
+ c_,
22469
22471
  {
22470
22472
  match: "\\$" + g,
22471
22473
  relevance: 0
@@ -22473,12 +22475,12 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
22473
22475
  {
22474
22476
  match: [/\bconstructor(?=\s*\()/],
22475
22477
  className: { 1: "title.function" },
22476
- contains: [a_]
22478
+ contains: [n_]
22477
22479
  },
22478
- l_,
22480
+ s_,
22479
22481
  $,
22480
- Z,
22481
- d_,
22482
+ Q,
22483
+ l_,
22482
22484
  { match: /\$[(.]/ }
22483
22485
  ]
22484
22486
  };
@@ -23516,7 +23518,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
23516
23518
  })), es_default = (/* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e, n) => {
23517
23519
  var r = require_core();
23518
23520
  r.registerLanguage("1c", require__1c()), r.registerLanguage("abnf", require_abnf()), r.registerLanguage("accesslog", require_accesslog()), r.registerLanguage("actionscript", require_actionscript()), r.registerLanguage("ada", require_ada()), r.registerLanguage("angelscript", require_angelscript()), r.registerLanguage("apache", require_apache()), r.registerLanguage("applescript", require_applescript()), r.registerLanguage("arcade", require_arcade()), r.registerLanguage("arduino", require_arduino()), r.registerLanguage("armasm", require_armasm()), r.registerLanguage("xml", require_xml()), r.registerLanguage("asciidoc", require_asciidoc()), r.registerLanguage("aspectj", require_aspectj()), r.registerLanguage("autohotkey", require_autohotkey()), r.registerLanguage("autoit", require_autoit()), r.registerLanguage("avrasm", require_avrasm()), r.registerLanguage("awk", require_awk()), r.registerLanguage("axapta", require_axapta()), r.registerLanguage("bash", require_bash()), r.registerLanguage("basic", require_basic()), r.registerLanguage("bnf", require_bnf()), r.registerLanguage("brainfuck", require_brainfuck()), r.registerLanguage("c", require_c()), r.registerLanguage("cal", require_cal()), r.registerLanguage("capnproto", require_capnproto()), r.registerLanguage("ceylon", require_ceylon()), r.registerLanguage("clean", require_clean()), r.registerLanguage("clojure", require_clojure()), r.registerLanguage("clojure-repl", require_clojure_repl()), r.registerLanguage("cmake", require_cmake()), r.registerLanguage("coffeescript", require_coffeescript()), r.registerLanguage("coq", require_coq()), r.registerLanguage("cos", require_cos()), r.registerLanguage("cpp", require_cpp()), r.registerLanguage("crmsh", require_crmsh()), r.registerLanguage("crystal", require_crystal()), r.registerLanguage("csharp", require_csharp()), r.registerLanguage("csp", require_csp()), r.registerLanguage("css", require_css()), r.registerLanguage("d", require_d()), r.registerLanguage("markdown", require_markdown()), r.registerLanguage("dart", require_dart()), r.registerLanguage("delphi", require_delphi()), r.registerLanguage("diff", require_diff()), r.registerLanguage("django", require_django()), r.registerLanguage("dns", require_dns()), r.registerLanguage("dockerfile", require_dockerfile()), r.registerLanguage("dos", require_dos()), r.registerLanguage("dsconfig", require_dsconfig()), r.registerLanguage("dts", require_dts()), r.registerLanguage("dust", require_dust()), r.registerLanguage("ebnf", require_ebnf()), r.registerLanguage("elixir", require_elixir()), r.registerLanguage("elm", require_elm()), r.registerLanguage("ruby", require_ruby()), r.registerLanguage("erb", require_erb()), r.registerLanguage("erlang-repl", require_erlang_repl()), r.registerLanguage("erlang", require_erlang()), r.registerLanguage("excel", require_excel()), r.registerLanguage("fix", require_fix()), r.registerLanguage("flix", require_flix()), r.registerLanguage("fortran", require_fortran()), r.registerLanguage("fsharp", require_fsharp()), r.registerLanguage("gams", require_gams()), r.registerLanguage("gauss", require_gauss()), r.registerLanguage("gcode", require_gcode()), r.registerLanguage("gherkin", require_gherkin()), r.registerLanguage("glsl", require_glsl()), r.registerLanguage("gml", require_gml()), r.registerLanguage("go", require_go()), r.registerLanguage("golo", require_golo()), r.registerLanguage("gradle", require_gradle()), r.registerLanguage("graphql", require_graphql()), r.registerLanguage("groovy", require_groovy()), r.registerLanguage("haml", require_haml()), r.registerLanguage("handlebars", require_handlebars()), r.registerLanguage("haskell", require_haskell()), r.registerLanguage("haxe", require_haxe()), r.registerLanguage("hsp", require_hsp()), r.registerLanguage("http", require_http()), r.registerLanguage("hy", require_hy()), r.registerLanguage("inform7", require_inform7()), r.registerLanguage("ini", require_ini()), r.registerLanguage("irpf90", require_irpf90()), r.registerLanguage("isbl", require_isbl()), r.registerLanguage("java", require_java()), r.registerLanguage("javascript", require_javascript()), r.registerLanguage("jboss-cli", require_jboss_cli()), r.registerLanguage("json", require_json()), r.registerLanguage("julia", require_julia()), r.registerLanguage("julia-repl", require_julia_repl()), r.registerLanguage("kotlin", require_kotlin()), r.registerLanguage("lasso", require_lasso()), r.registerLanguage("latex", require_latex()), r.registerLanguage("ldif", require_ldif()), r.registerLanguage("leaf", require_leaf()), r.registerLanguage("less", require_less()), r.registerLanguage("lisp", require_lisp()), r.registerLanguage("livecodeserver", require_livecodeserver()), r.registerLanguage("livescript", require_livescript()), r.registerLanguage("llvm", require_llvm()), r.registerLanguage("lsl", require_lsl()), r.registerLanguage("lua", require_lua()), r.registerLanguage("makefile", require_makefile()), r.registerLanguage("mathematica", require_mathematica()), r.registerLanguage("matlab", require_matlab()), r.registerLanguage("maxima", require_maxima()), r.registerLanguage("mel", require_mel()), r.registerLanguage("mercury", require_mercury()), r.registerLanguage("mipsasm", require_mipsasm()), r.registerLanguage("mizar", require_mizar()), r.registerLanguage("perl", require_perl()), r.registerLanguage("mojolicious", require_mojolicious()), r.registerLanguage("monkey", require_monkey()), r.registerLanguage("moonscript", require_moonscript()), r.registerLanguage("n1ql", require_n1ql()), r.registerLanguage("nestedtext", require_nestedtext()), r.registerLanguage("nginx", require_nginx()), r.registerLanguage("nim", require_nim()), r.registerLanguage("nix", require_nix()), r.registerLanguage("node-repl", require_node_repl()), r.registerLanguage("nsis", require_nsis()), r.registerLanguage("objectivec", require_objectivec()), r.registerLanguage("ocaml", require_ocaml()), r.registerLanguage("openscad", require_openscad()), r.registerLanguage("oxygene", require_oxygene()), r.registerLanguage("parser3", require_parser3()), r.registerLanguage("pf", require_pf()), r.registerLanguage("pgsql", require_pgsql()), r.registerLanguage("php", require_php()), r.registerLanguage("php-template", require_php_template()), r.registerLanguage("plaintext", require_plaintext()), r.registerLanguage("pony", require_pony()), r.registerLanguage("powershell", require_powershell()), r.registerLanguage("processing", require_processing()), r.registerLanguage("profile", require_profile()), r.registerLanguage("prolog", require_prolog()), r.registerLanguage("properties", require_properties()), r.registerLanguage("protobuf", require_protobuf()), r.registerLanguage("puppet", require_puppet()), r.registerLanguage("purebasic", require_purebasic()), r.registerLanguage("python", require_python()), r.registerLanguage("python-repl", require_python_repl()), r.registerLanguage("q", require_q()), r.registerLanguage("qml", require_qml()), r.registerLanguage("r", require_r()), r.registerLanguage("reasonml", require_reasonml()), r.registerLanguage("rib", require_rib()), r.registerLanguage("roboconf", require_roboconf()), r.registerLanguage("routeros", require_routeros()), r.registerLanguage("rsl", require_rsl()), r.registerLanguage("ruleslanguage", require_ruleslanguage()), r.registerLanguage("rust", require_rust()), r.registerLanguage("sas", require_sas()), r.registerLanguage("scala", require_scala()), r.registerLanguage("scheme", require_scheme()), r.registerLanguage("scilab", require_scilab()), r.registerLanguage("scss", require_scss()), r.registerLanguage("shell", require_shell()), r.registerLanguage("smali", require_smali()), r.registerLanguage("smalltalk", require_smalltalk()), r.registerLanguage("sml", require_sml()), r.registerLanguage("sqf", require_sqf()), r.registerLanguage("sql", require_sql()), r.registerLanguage("stan", require_stan()), r.registerLanguage("stata", require_stata()), r.registerLanguage("step21", require_step21()), r.registerLanguage("stylus", require_stylus()), r.registerLanguage("subunit", require_subunit()), r.registerLanguage("swift", require_swift()), r.registerLanguage("taggerscript", require_taggerscript()), r.registerLanguage("yaml", require_yaml()), r.registerLanguage("tap", require_tap()), r.registerLanguage("tcl", require_tcl()), r.registerLanguage("thrift", require_thrift()), r.registerLanguage("tp", require_tp()), r.registerLanguage("twig", require_twig()), r.registerLanguage("typescript", require_typescript()), r.registerLanguage("vala", require_vala()), r.registerLanguage("vbnet", require_vbnet()), r.registerLanguage("vbscript", require_vbscript()), r.registerLanguage("vbscript-html", require_vbscript_html()), r.registerLanguage("verilog", require_verilog()), r.registerLanguage("vhdl", require_vhdl()), r.registerLanguage("vim", require_vim()), r.registerLanguage("wasm", require_wasm()), r.registerLanguage("wren", require_wren()), r.registerLanguage("x86asm", require_x86asm()), r.registerLanguage("xl", require_xl()), r.registerLanguage("xquery", require_xquery()), r.registerLanguage("zephir", require_zephir()), r.HighlightJS = r, r.default = r, n.exports = r;
23519
- })))())).default, _hoisted_1$41 = { key: 1 }, tool_btn_default = /* @__PURE__ */ defineComponent({
23521
+ })))())).default, _hoisted_1$40 = { key: 1 }, tool_btn_default = /* @__PURE__ */ defineComponent({
23520
23522
  __name: "tool-btn",
23521
23523
  props: {
23522
23524
  description: {},
@@ -23545,9 +23547,9 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
23545
23547
  }]),
23546
23548
  style: normalizeStyle({ "--ai-tool-btn-active-color": e.id === "like" || e.id === "activeLike" ? "#3a84ff" : "#E71818" }),
23547
23549
  onClick: o
23548
- }, [e.id in unref(ToolIconsMap) ? (openBlock(), createBlock(resolveDynamicComponent(unref(ToolIconsMap)[e.id]), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1$41, toDisplayString(e.name), 1))], 6)), [[unref(directive), a.value]]);
23550
+ }, [e.id in unref(ToolIconsMap) ? (openBlock(), createBlock(resolveDynamicComponent(unref(ToolIconsMap)[e.id]), { key: 0 })) : (openBlock(), createElementBlock("div", _hoisted_1$40, toDisplayString(e.name), 1))], 6)), [[unref(directive), a.value]]);
23549
23551
  }
23550
- }), _hoisted_1$40 = { class: "code-content-wrapper" }, _hoisted_2$30 = { class: "code-content-header" }, _hoisted_3$21 = { class: "code-header-language" }, _hoisted_4$20 = { class: "hljs-pre" }, _hoisted_5$13 = ["innerHTML"], _hoisted_6$7 = ["innerHTML"], MAX_CACHE_SIZE = 500, code_content_default = /* @__PURE__ */ defineComponent({
23552
+ }), _hoisted_1$39 = { class: "code-content-wrapper" }, _hoisted_2$30 = { class: "code-content-header" }, _hoisted_3$21 = { class: "code-header-language" }, _hoisted_4$20 = { class: "hljs-pre" }, _hoisted_5$13 = ["innerHTML"], _hoisted_6$7 = ["innerHTML"], MAX_CACHE_SIZE = 500, code_content_default = /* @__PURE__ */ defineComponent({
23551
23553
  __name: "code-content",
23552
23554
  props: { token: {} },
23553
23555
  emits: ["mounted"],
@@ -23617,15 +23619,15 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
23617
23619
  immediate: !0,
23618
23620
  deep: !0
23619
23621
  });
23620
- let i_ = () => {
23622
+ let G = () => {
23621
23623
  let e = a.value?.innerText;
23622
23624
  e && l(e);
23623
23625
  };
23624
- return (e, n) => (openBlock(), createElementBlock("div", _hoisted_1$40, [createElementVNode("div", _hoisted_2$30, [createElementVNode("span", _hoisted_3$21, toDisplayString(s.value), 1), createVNode(tool_btn_default, {
23626
+ return (e, n) => (openBlock(), createElementBlock("div", _hoisted_1$39, [createElementVNode("div", _hoisted_2$30, [createElementVNode("span", _hoisted_3$21, toDisplayString(s.value), 1), createVNode(tool_btn_default, {
23625
23627
  id: "copy",
23626
23628
  description: "复制",
23627
23629
  name: "复制",
23628
- onClick: i_
23630
+ onClick: G
23629
23631
  })]), createElementVNode("pre", _hoisted_4$20, [createElementVNode("code", {
23630
23632
  ref_key: "codeRef",
23631
23633
  ref: a,
@@ -23644,7 +23646,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
23644
23646
  }, null, 8, _hoisted_6$7)) : createCommentVNode("v-if", !0)
23645
23647
  ], 2)])]));
23646
23648
  }
23647
- }), import_debounce = /* @__PURE__ */ __toESM(require_debounce()), _hoisted_1$39 = { class: "md-image-wrapper" }, _hoisted_2$29 = {
23649
+ }), import_debounce = /* @__PURE__ */ __toESM(require_debounce()), _hoisted_1$38 = { class: "md-image-wrapper" }, _hoisted_2$29 = {
23648
23650
  key: 0,
23649
23651
  class: "md-image-loading"
23650
23652
  }, _hoisted_3$20 = { class: "md-image-loading-text" }, _hoisted_4$19 = { class: "md-image-error" }, _hoisted_5$12 = { class: "md-image-error-text" }, _hoisted_6$6 = ["alt", "src"], image_content_default = /* @__PURE__ */ defineComponent({
@@ -23695,7 +23697,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
23695
23697
  l.value = !1, E(), O.value ? j(e) : (a.value = !0, s.value = !1);
23696
23698
  }, { immediate: !0 }), watch(O, (e) => {
23697
23699
  e && r.src && j(r.src);
23698
- }), (n, r) => (openBlock(), createElementBlock("span", _hoisted_1$39, [createCommentVNode(" 加载中、URL 不完整、或 URL 不稳定时显示 Loading "), m.value ? (openBlock(), createElementBlock("span", _hoisted_2$29, [createVNode(unref(Loading), {
23700
+ }), (n, r) => (openBlock(), createElementBlock("span", _hoisted_1$38, [createCommentVNode(" 加载中、URL 不完整、或 URL 不稳定时显示 Loading "), m.value ? (openBlock(), createElementBlock("span", _hoisted_2$29, [createVNode(unref(Loading), {
23699
23701
  mode: "spin",
23700
23702
  size: "mini",
23701
23703
  theme: "primary"
@@ -23927,7 +23929,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
23927
23929
  innerHTML: r.value
23928
23930
  }, null, 8, ["class", "innerHTML"]));
23929
23931
  }
23930
- }), import_throttle$1 = /* @__PURE__ */ __toESM(require_throttle()), _hoisted_1$38 = ["innerHTML"], mermaid_content_default = /* @__PURE__ */ defineComponent({
23932
+ }), import_throttle$1 = /* @__PURE__ */ __toESM(require_throttle()), _hoisted_1$37 = ["innerHTML"], mermaid_content_default = /* @__PURE__ */ defineComponent({
23931
23933
  __name: "mermaid-content",
23932
23934
  props: { token: {} },
23933
23935
  emits: ["mounted"],
@@ -23976,13 +23978,13 @@ var require_core = /* @__PURE__ */ __commonJSMin(((e, n) => {
23976
23978
  ref: i,
23977
23979
  class: "mermaid-content",
23978
23980
  innerHTML: r.value
23979
- }, null, 8, _hoisted_1$38));
23981
+ }, null, 8, _hoisted_1$37));
23980
23982
  }
23981
- }), _hoisted_1$37 = { class: "ai-error-content" }, _hoisted_2$28 = { class: "ai-error-content-text" }, common_error_content_default = /* @__PURE__ */ defineComponent({
23983
+ }), _hoisted_1$36 = { class: "ai-error-content" }, _hoisted_2$28 = { class: "ai-error-content-text" }, common_error_content_default = /* @__PURE__ */ defineComponent({
23982
23984
  __name: "common-error-content",
23983
23985
  props: { content: {} },
23984
23986
  setup(e) {
23985
- return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$37, [createVNode(unref(ErrorIcon)), createElementVNode("div", _hoisted_2$28, toDisplayString(e.content), 1)]));
23987
+ return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$36, [createVNode(unref(ErrorIcon)), createElementVNode("div", _hoisted_2$28, toDisplayString(e.content), 1)]));
23986
23988
  }
23987
23989
  }), keyCounterMap = /* @__PURE__ */ new Map(), resetKeyCounter = () => {
23988
23990
  keyCounterMap = /* @__PURE__ */ new Map();
@@ -24145,7 +24147,7 @@ var vnode_renderer_default = defineComponent({
24145
24147
  setup(e) {
24146
24148
  return () => tokensToVNodes(e.tokens, e.options);
24147
24149
  }
24148
- }), import_throttle = /* @__PURE__ */ __toESM(require_throttle()), _hoisted_1$36 = { class: "markdown-content" }, _hoisted_2$27 = {
24150
+ }), import_throttle = /* @__PURE__ */ __toESM(require_throttle()), _hoisted_1$35 = { class: "markdown-content" }, _hoisted_2$27 = {
24149
24151
  key: 1,
24150
24152
  class: "markdown-body"
24151
24153
  }, markdown_content_default = /* @__PURE__ */ defineComponent({
@@ -24238,7 +24240,7 @@ var vnode_renderer_default = defineComponent({
24238
24240
  leading: !0,
24239
24241
  trailing: !0
24240
24242
  });
24241
- return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$36, [e.status === unref(MessageStatus).Error ? (openBlock(), createBlock(common_error_content_default, {
24243
+ return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$35, [e.status === unref(MessageStatus).Error ? (openBlock(), createBlock(common_error_content_default, {
24242
24244
  key: 0,
24243
24245
  content: e.content
24244
24246
  }, null, 8, ["content"])) : (openBlock(), createElementBlock("div", _hoisted_2$27, [(openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (e, n) => (openBlock(), createElementBlock(Fragment, { key: n }, [d(e) ? (openBlock(), createBlock(unref(mermaid_content_default), {
@@ -24260,7 +24262,7 @@ var vnode_renderer_default = defineComponent({
24260
24262
  onVnodeMounted: unref(E)
24261
24263
  }, null, 8, ["tokens", "onVnodeMounted"]))], 64))), 128))]))]));
24262
24264
  }
24263
- }), _hoisted_1$35 = ["onClick"], reference_content_default = /* @__PURE__ */ defineComponent({
24265
+ }), _hoisted_1$34 = ["onClick"], reference_content_default = /* @__PURE__ */ defineComponent({
24264
24266
  __name: "reference-content",
24265
24267
  props: { content: {} },
24266
24268
  setup(e) {
@@ -24280,7 +24282,7 @@ var vnode_renderer_default = defineComponent({
24280
24282
  createElementVNode("span", {
24281
24283
  class: "ai-reference-item-title",
24282
24284
  onClick: (n) => e.url && r(e.url, n)
24283
- }, toDisplayString(e.title), 9, _hoisted_1$35),
24285
+ }, toDisplayString(e.title), 9, _hoisted_1$34),
24284
24286
  e.url && e.originFileUrl ? withDirectives((openBlock(), createBlock(unref(PreviewIcon), {
24285
24287
  key: 0,
24286
24288
  onClick: (n) => e.url && r(e.url, n)
@@ -24659,97 +24661,97 @@ const createEditor = ({ schema: { single: e, js: n, doc: r, copy: i, paste: a },
24659
24661
  if (!(window.InputEvent && typeof InputEvent.prototype.getTargetRanges == "function")) return console.error("beforeinput event is not supported."), noop;
24660
24662
  let { contentEditable: o, role: T, ariaMultiLine: O, ariaReadOnly: k } = r, j = r.style.whiteSpace;
24661
24663
  r.role = "textbox", r.style.whiteSpace = "pre-wrap", e || (r.ariaMultiLine = "true");
24662
- let I = !1, L = !1, z = null, B = !1, H = !1, i_ = !1, G = getCurrentDocument(r), K = {
24663
- _document: G,
24664
+ let I = !1, L = !1, z = null, B = !1, H = !1, G = !1, K = getCurrentDocument(r), q = {
24665
+ _document: K,
24664
24666
  _isBlock: s
24665
24667
  };
24666
24668
  g = () => {
24667
24669
  r.contentEditable = m ? "false" : "true", r.ariaReadOnly = m ? "true" : null;
24668
24670
  }, g();
24669
- let q = createMutationObserver(r, () => {
24670
- H && setSelectionToDOM(G, r, d, K);
24671
- }), J = () => {
24672
- d = takeSelectionSnapshot(r, K);
24673
- }, a_ = () => {
24674
- let e = q._flush();
24675
- if (q._record(!1), e.length) {
24671
+ let J = createMutationObserver(r, () => {
24672
+ H && setSelectionToDOM(K, r, d, q);
24673
+ }), Z = () => {
24674
+ d = takeSelectionSnapshot(r, q);
24675
+ }, n_ = () => {
24676
+ let e = J._flush();
24677
+ if (J._record(!1), e.length) {
24676
24678
  let n;
24677
24679
  for (; n = e.pop();) if (n.type === "childList") {
24678
24680
  let { target: e, removedNodes: r, addedNodes: i, nextSibling: a } = n;
24679
24681
  for (let n = r.length - 1; n >= 0; n--) e.insertBefore(r[n], a);
24680
24682
  for (let n = i.length - 1; n >= 0; n--) e.removeChild(i[n]);
24681
24683
  } else n.target.nodeValue = n.oldValue;
24682
- q._flush(), L = setSelectionToDOM(G, r, d, K);
24684
+ J._flush(), L = setSelectionToDOM(K, r, d, q);
24683
24685
  }
24684
24686
  E(z), B = !1, z = null;
24685
- }, Z = (e) => {
24687
+ }, Q = (e) => {
24686
24688
  if (!B) {
24687
24689
  if (u?.(e)) {
24688
24690
  e.preventDefault();
24689
24691
  return;
24690
24692
  }
24691
- if ((e.metaKey || e.ctrlKey) && !e.altKey && e.code === "KeyZ" && (e.preventDefault(), q._record(!1), !m)) {
24693
+ if ((e.metaKey || e.ctrlKey) && !e.altKey && e.code === "KeyZ" && (e.preventDefault(), J._record(!1), !m)) {
24692
24694
  let r = e.shiftKey ? v.redo() : v.undo();
24693
24695
  r && (l(n(r[0])), d = r[1]);
24694
24696
  }
24695
24697
  }
24696
- }, o_ = () => {
24697
- B || a_();
24698
- }, Q = (e) => {
24698
+ }, r_ = () => {
24699
+ B || n_();
24700
+ }, i_ = (e) => {
24699
24701
  e.preventDefault();
24700
24702
  let n = e.inputType;
24701
24703
  if (n.startsWith("format") || n === "historyUndo" || n === "historyRedo") return;
24702
- B ? q._record(!0) : J();
24704
+ B ? J._record(!0) : Z();
24703
24705
  let i = e.getTargetRanges()[0];
24704
24706
  if (i) {
24705
- let a = serializeRange(r, K, i), o = n === "insertParagraph" || n === "insertLineBreak" ? "\n" : e.data;
24707
+ let a = serializeRange(r, q, i), o = n === "insertParagraph" || n === "insertLineBreak" ? "\n" : e.data;
24706
24708
  if (o == null) {
24707
24709
  let n = e.dataTransfer;
24708
24710
  n && (o = n.getData("text/plain"));
24709
24711
  }
24710
24712
  z ||= new Transaction().select(...d), comparePosition(...a) !== 0 && z.delete(...a), o && z.insert(a[0], stringToDoc(o));
24711
24713
  }
24712
- B || a_();
24713
- }, s_ = () => {
24714
- B || J(), B = !0;
24714
+ B || n_();
24715
+ }, a_ = () => {
24716
+ B || Z(), B = !0;
24715
24717
  }, $ = () => {
24716
- a_();
24717
- }, c_ = () => {
24718
- H = !0, J();
24719
- }, l_ = () => {
24718
+ n_();
24719
+ }, o_ = () => {
24720
+ H = !0, Z();
24721
+ }, s_ = () => {
24720
24722
  H = !1;
24721
- }, u_ = () => {
24723
+ }, c_ = () => {
24722
24724
  if (L) {
24723
24725
  L = !1;
24724
24726
  return;
24725
24727
  }
24726
- H && !B && !i_ && J();
24728
+ H && !B && !G && Z();
24729
+ }, l_ = (e) => {
24730
+ Z(), comparePosition(...d) !== 0 && i(e, sliceDoc(_(), ...range(d)), r);
24731
+ }, u_ = (e) => {
24732
+ e.preventDefault(), l_(e.clipboardData);
24727
24733
  }, d_ = (e) => {
24728
- J(), comparePosition(...d) !== 0 && i(e, sliceDoc(_(), ...range(d)), r);
24734
+ e.preventDefault(), m || (l_(e.clipboardData), E(new Transaction().delete(...range(d))));
24729
24735
  }, f_ = (e) => {
24730
- e.preventDefault(), d_(e.clipboardData);
24731
- }, p_ = (e) => {
24732
- e.preventDefault(), m || (d_(e.clipboardData), E(new Transaction().delete(...range(d))));
24733
- }, m_ = (e) => {
24734
24736
  e.preventDefault();
24735
24737
  let [n, r] = range(d);
24736
- E(new Transaction().delete(n, r).insert(n, a(e.clipboardData, K)));
24737
- }, h_ = (e) => {
24738
+ E(new Transaction().delete(n, r).insert(n, a(e.clipboardData, q)));
24739
+ }, p_ = (e) => {
24738
24740
  e.preventDefault();
24739
- let n = e.dataTransfer, i = getPointedCaretPosition(G, r, e, K);
24741
+ let n = e.dataTransfer, i = getPointedCaretPosition(K, r, e, q);
24740
24742
  if (n && i) {
24741
24743
  let e = new Transaction();
24742
- i_ && e.delete(...range(d));
24744
+ G && e.delete(...range(d));
24743
24745
  let o = e.transform(i);
24744
- e.select(o, o).insert(o, a(n, K)).select(o), E(e), r.focus({ preventScroll: !0 });
24746
+ e.select(o, o).insert(o, a(n, q)).select(o), E(e), r.focus({ preventScroll: !0 });
24745
24747
  }
24746
- }, g_ = (e) => {
24747
- i_ = !0, d_(e.dataTransfer);
24748
- }, __ = () => {
24749
- i_ = !1;
24748
+ }, m_ = (e) => {
24749
+ G = !0, l_(e.dataTransfer);
24750
+ }, h_ = () => {
24751
+ G = !1;
24750
24752
  };
24751
- return G.addEventListener("selectionchange", u_), r.addEventListener("keydown", Z), r.addEventListener("input", o_), r.addEventListener("beforeinput", Q), r.addEventListener("compositionstart", s_), r.addEventListener("compositionend", $), r.addEventListener("focus", c_), r.addEventListener("blur", l_), r.addEventListener("copy", f_), r.addEventListener("cut", p_), r.addEventListener("paste", m_), r.addEventListener("drop", h_), r.addEventListener("dragstart", g_), r.addEventListener("dragend", __), () => {
24752
- I || (I = !0, g = noop, r.contentEditable = o, r.role = T, r.ariaMultiLine = O, r.ariaReadOnly = k, r.style.whiteSpace = j, q._dispose(), G.removeEventListener("selectionchange", u_), r.removeEventListener("keydown", Z), r.removeEventListener("input", o_), r.removeEventListener("beforeinput", Q), r.removeEventListener("compositionstart", s_), r.removeEventListener("compositionend", $), r.removeEventListener("focus", c_), r.removeEventListener("blur", l_), r.removeEventListener("copy", f_), r.removeEventListener("cut", p_), r.removeEventListener("paste", m_), r.removeEventListener("drop", h_), r.removeEventListener("dragstart", g_), r.removeEventListener("dragend", __));
24753
+ return K.addEventListener("selectionchange", c_), r.addEventListener("keydown", Q), r.addEventListener("input", r_), r.addEventListener("beforeinput", i_), r.addEventListener("compositionstart", a_), r.addEventListener("compositionend", $), r.addEventListener("focus", o_), r.addEventListener("blur", s_), r.addEventListener("copy", u_), r.addEventListener("cut", d_), r.addEventListener("paste", f_), r.addEventListener("drop", p_), r.addEventListener("dragstart", m_), r.addEventListener("dragend", h_), () => {
24754
+ I || (I = !0, g = noop, r.contentEditable = o, r.role = T, r.ariaMultiLine = O, r.ariaReadOnly = k, r.style.whiteSpace = j, J._dispose(), K.removeEventListener("selectionchange", c_), r.removeEventListener("keydown", Q), r.removeEventListener("input", r_), r.removeEventListener("beforeinput", i_), r.removeEventListener("compositionstart", a_), r.removeEventListener("compositionend", $), r.removeEventListener("focus", o_), r.removeEventListener("blur", s_), r.removeEventListener("copy", u_), r.removeEventListener("cut", d_), r.removeEventListener("paste", f_), r.removeEventListener("drop", p_), r.removeEventListener("dragstart", m_), r.removeEventListener("dragend", h_));
24753
24755
  };
24754
24756
  },
24755
24757
  command: (e, ...n) => {
@@ -24829,7 +24831,7 @@ let UploadStatus = /* @__PURE__ */ function(e) {
24829
24831
  }({}), MessageToolsStatus = /* @__PURE__ */ function(e) {
24830
24832
  return e.Disabled = "disabled", e.Hidden = "hidden", e;
24831
24833
  }({});
24832
- var _hoisted_1$34 = { class: "file-upload-btn" }, _hoisted_2$26 = ["accept"], file_upload_btn_default = /* @__PURE__ */ defineComponent({
24834
+ var _hoisted_1$33 = { class: "file-upload-btn" }, _hoisted_2$26 = ["accept"], file_upload_btn_default = /* @__PURE__ */ defineComponent({
24833
24835
  __name: "file-upload-btn",
24834
24836
  props: {
24835
24837
  accept: { default: "image/*" },
@@ -24858,7 +24860,7 @@ var _hoisted_1$34 = { class: "file-upload-btn" }, _hoisted_2$26 = ["accept"], fi
24858
24860
  }
24859
24861
  n.value = "";
24860
24862
  };
24861
- return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$34, [createElementVNode("input", {
24863
+ return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$33, [createElementVNode("input", {
24862
24864
  ref_key: "fileInputRef",
24863
24865
  ref: a,
24864
24866
  accept: e.accept,
@@ -24871,19 +24873,19 @@ var _hoisted_1$34 = { class: "file-upload-btn" }, _hoisted_2$26 = ["accept"], fi
24871
24873
  onClick: o
24872
24874
  }, [renderSlot(n.$slots, "default", {}, () => [createVNode(unref(FileUploadIcon))])])), [[unref(directive), {
24873
24875
  ...e.tippyOptions,
24874
- content: unref(t$1)("上传图片"),
24876
+ content: unref(t$1)("上传图片, 最多支持上传 3 个, 最大支持 2.4MB"),
24875
24877
  theme: "ai-chat-box",
24876
24878
  offset: [0, 16]
24877
24879
  }]])]));
24878
24880
  }
24879
- }), _hoisted_1$33 = { class: "ai-cite-content" }, _hoisted_2$25 = { class: "ai-cite-content-text" }, cite_content_default = /* @__PURE__ */ defineComponent({
24881
+ }), _hoisted_1$32 = { class: "ai-cite-content" }, _hoisted_2$25 = { class: "ai-cite-content-text" }, cite_content_default = /* @__PURE__ */ defineComponent({
24880
24882
  __name: "cite-content",
24881
24883
  props: {
24882
24884
  content: {},
24883
24885
  onClose: { type: Function }
24884
24886
  },
24885
24887
  setup(e) {
24886
- return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$33, [
24888
+ return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$32, [
24887
24889
  createVNode(unref(CiteIcon)),
24888
24890
  createElementVNode("span", _hoisted_2$25, toDisplayString(e.content), 1),
24889
24891
  e.onClose ? (openBlock(), createBlock(unref(CloseIcon), {
@@ -24892,7 +24894,7 @@ var _hoisted_1$34 = { class: "file-upload-btn" }, _hoisted_2$26 = ["accept"], fi
24892
24894
  })) : createCommentVNode("v-if", !0)
24893
24895
  ]));
24894
24896
  }
24895
- }), _hoisted_1$32 = { class: "ai-image-preview-toolbar" }, _hoisted_2$24 = { class: "ai-image-preview-toolbar-inner" }, _hoisted_3$19 = {
24897
+ }), _hoisted_1$31 = { class: "ai-image-preview-toolbar" }, _hoisted_2$24 = { class: "ai-image-preview-toolbar-inner" }, _hoisted_3$19 = {
24896
24898
  key: 0,
24897
24899
  class: "ai-image-preview-toolbar-pages"
24898
24900
  }, _hoisted_4$18 = {
@@ -24917,7 +24919,7 @@ var _hoisted_1$34 = { class: "file-upload-btn" }, _hoisted_2$26 = ["accept"], fi
24917
24919
  ],
24918
24920
  setup(e, { emit: n }) {
24919
24921
  let r = n;
24920
- return (n, i) => (openBlock(), createElementBlock("div", _hoisted_1$32, [createElementVNode("div", _hoisted_2$24, [
24922
+ return (n, i) => (openBlock(), createElementBlock("div", _hoisted_1$31, [createElementVNode("div", _hoisted_2$24, [
24921
24923
  e.isMultiple ? (openBlock(), createElementBlock("span", _hoisted_3$19, toDisplayString(e.activeIndex + 1) + " / " + toDisplayString(e.total), 1)) : createCommentVNode("v-if", !0),
24922
24924
  e.isMultiple ? (openBlock(), createElementBlock("span", _hoisted_4$18)) : createCommentVNode("v-if", !0),
24923
24925
  createElementVNode("div", {
@@ -25019,7 +25021,7 @@ function usePreviewKeyboard(e) {
25019
25021
  l();
25020
25022
  });
25021
25023
  }
25022
- var _hoisted_1$31 = ["src"], _hoisted_2$23 = {
25024
+ var _hoisted_1$30 = ["src"], _hoisted_2$23 = {
25023
25025
  key: 1,
25024
25026
  class: "ai-image-preview-error"
25025
25027
  }, _hoisted_3$18 = { class: "ai-image-preview-error-text" }, _hoisted_4$17 = {
@@ -25055,54 +25057,54 @@ var _hoisted_1$31 = ["src"], _hoisted_2$23 = {
25055
25057
  setup(e) {
25056
25058
  let n = e, r = useModel(e, "visible"), i = useModel(e, "current"), { imageStyle: a, resetTransform: l, zoomIn: m, zoomOut: O, rotateCW: j, handleWheel: I, handleDragStart: L } = useImageTransform(), z = shallowRef("loading"), B = [], H = () => {
25057
25059
  B.forEach((e) => URL.revokeObjectURL(e)), B.length = 0;
25058
- }, i_ = (e) => {
25060
+ }, G = (e) => {
25059
25061
  let n = URL.createObjectURL(e);
25060
25062
  return B.push(n), {
25061
25063
  url: n,
25062
25064
  name: e.name,
25063
25065
  file: e
25064
25066
  };
25065
- }, G = computed(() => (H(), n.images.map((e) => e instanceof File ? i_(e) : typeof e == "string" ? { url: e } : e.file && !e.url ? {
25067
+ }, K = computed(() => (H(), n.images.map((e) => e instanceof File ? G(e) : typeof e == "string" ? { url: e } : e.file && !e.url ? {
25066
25068
  ...e,
25067
- url: i_(e.file).url
25069
+ url: G(e.file).url
25068
25070
  } : e)));
25069
25071
  watch(r, (e) => {
25070
25072
  e || H();
25071
25073
  }), onBeforeUnmount(H);
25072
- let K = computed(() => G.value[i.value] ?? { url: "" }), q = computed(() => G.value.length > 1), J = computed(() => {
25073
- let e = K.value;
25074
+ let q = computed(() => K.value[i.value] ?? { url: "" }), J = computed(() => K.value.length > 1), Z = computed(() => {
25075
+ let e = q.value;
25074
25076
  return !e.width && !e.resolution ? null : {
25075
25077
  width: e.width,
25076
25078
  resolution: e.resolution
25077
25079
  };
25078
- }), a_ = () => {
25080
+ }), n_ = () => {
25079
25081
  r.value = !1;
25080
- }, Z = () => {
25081
- n.maskClosable && a_();
25082
- }, s_ = (e) => {
25082
+ }, Q = () => {
25083
+ n.maskClosable && n_();
25084
+ }, a_ = (e) => {
25083
25085
  i.value = e, l(), z.value = "loading";
25084
25086
  }, $ = () => {
25085
- s_(i.value > 0 ? i.value - 1 : G.value.length - 1);
25087
+ a_(i.value > 0 ? i.value - 1 : K.value.length - 1);
25088
+ }, o_ = () => {
25089
+ a_(i.value < K.value.length - 1 ? i.value + 1 : 0);
25086
25090
  }, c_ = () => {
25087
- s_(i.value < G.value.length - 1 ? i.value + 1 : 0);
25088
- }, u_ = () => {
25089
- let e = K.value, r = e.downloadUrl || e.url;
25091
+ let e = q.value, r = e.downloadUrl || e.url;
25090
25092
  if (n.onDownload) {
25091
25093
  n.onDownload(r);
25092
25094
  return;
25093
25095
  }
25094
25096
  let i = document.createElement("a");
25095
25097
  i.href = r, i.download = e.name || r.split("/").pop() || "image", i.target = "_blank", document.body.appendChild(i), i.click(), document.body.removeChild(i);
25096
- }, d_ = () => {
25098
+ }, l_ = () => {
25097
25099
  z.value = "loaded";
25098
- }, f_ = () => {
25100
+ }, u_ = () => {
25099
25101
  z.value = "error";
25100
25102
  };
25101
25103
  return usePreviewKeyboard({
25102
25104
  visible: r,
25103
- onClose: a_,
25104
- onPrev: () => q.value && $(),
25105
- onNext: () => q.value && c_()
25105
+ onClose: n_,
25106
+ onPrev: () => J.value && $(),
25107
+ onNext: () => J.value && o_()
25106
25108
  }), (n, d) => (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(Transition, { name: "ai-image-preview-fade" }, {
25107
25109
  default: withCtx(() => [r.value ? (openBlock(), createElementBlock("div", {
25108
25110
  key: 0,
@@ -25111,45 +25113,45 @@ var _hoisted_1$31 = ["src"], _hoisted_2$23 = {
25111
25113
  }, [
25112
25114
  createElementVNode("div", {
25113
25115
  class: "ai-image-preview-close",
25114
- onClick: a_
25116
+ onClick: n_
25115
25117
  }, [createVNode(unref(PreviewCloseIcon), { class: "ai-image-preview-close-icon" })]),
25116
- q.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("div", {
25118
+ J.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("div", {
25117
25119
  class: "ai-image-preview-arrow ai-image-preview-arrow-left",
25118
25120
  onClick: $
25119
25121
  }, [createVNode(unref(ArrowLeftIcon), { class: "ai-image-preview-arrow-icon" })]), createElementVNode("div", {
25120
25122
  class: "ai-image-preview-arrow ai-image-preview-arrow-right",
25121
- onClick: c_
25123
+ onClick: o_
25122
25124
  }, [createVNode(unref(ArrowRightPreviewIcon), { class: "ai-image-preview-arrow-icon" })])], 64)) : createCommentVNode("v-if", !0),
25123
25125
  createElementVNode("div", {
25124
25126
  class: "ai-image-preview-body",
25125
- onClick: withModifiers(Z, ["self"]),
25127
+ onClick: withModifiers(Q, ["self"]),
25126
25128
  onMousedown: d[0] ||= (...e) => unref(L) && unref(L)(...e)
25127
25129
  }, [
25128
25130
  z.value === "error" ? createCommentVNode("v-if", !0) : (openBlock(), createElementBlock("img", {
25129
25131
  key: 0,
25130
25132
  class: "ai-image-preview-img",
25131
25133
  draggable: "false",
25132
- src: K.value.url,
25134
+ src: q.value.url,
25133
25135
  style: normalizeStyle(unref(a)),
25134
- onError: f_,
25135
- onLoad: d_
25136
- }, null, 44, _hoisted_1$31)),
25136
+ onError: u_,
25137
+ onLoad: l_
25138
+ }, null, 44, _hoisted_1$30)),
25137
25139
  z.value === "error" ? (openBlock(), createElementBlock("div", _hoisted_2$23, [createVNode(unref(ImageBrokenIcon), { class: "ai-image-preview-error-icon" }), createElementVNode("p", _hoisted_3$18, toDisplayString(unref(t$1)("抱歉,图片加载失败,可尝试重新加载")), 1)])) : createCommentVNode("v-if", !0),
25138
- z.value === "loading" ? (openBlock(), createElementBlock("div", _hoisted_4$17, [K.value.thumbnailUrl ? (openBlock(), createElementBlock("img", {
25140
+ z.value === "loading" ? (openBlock(), createElementBlock("div", _hoisted_4$17, [q.value.thumbnailUrl ? (openBlock(), createElementBlock("img", {
25139
25141
  key: 0,
25140
25142
  class: "ai-image-preview-img ai-image-preview-img--blur",
25141
25143
  draggable: "false",
25142
- src: K.value.thumbnailUrl,
25144
+ src: q.value.thumbnailUrl,
25143
25145
  style: normalizeStyle(unref(a))
25144
25146
  }, null, 12, _hoisted_5$10)) : createCommentVNode("v-if", !0)])) : createCommentVNode("v-if", !0)
25145
25147
  ], 32),
25146
25148
  createVNode(preview_toolbar_default, {
25147
25149
  "active-index": i.value,
25148
- "current-image-info": J.value,
25149
- "is-multiple": q.value,
25150
+ "current-image-info": Z.value,
25151
+ "is-multiple": J.value,
25150
25152
  "show-info": e.showInfo,
25151
- total: G.value.length,
25152
- onDownload: u_,
25153
+ total: K.value.length,
25154
+ onDownload: c_,
25153
25155
  onReset: unref(l),
25154
25156
  onRotate: unref(j),
25155
25157
  onZoomIn: unref(m),
@@ -25173,7 +25175,7 @@ var _hoisted_1$31 = ["src"], _hoisted_2$23 = {
25173
25175
  _: 3
25174
25176
  })]));
25175
25177
  }
25176
- }), _hoisted_1$30 = { class: "ai-files-content" }, _hoisted_2$22 = [
25178
+ }), _hoisted_1$29 = { class: "ai-files-content" }, _hoisted_2$22 = [
25177
25179
  "alt",
25178
25180
  "src",
25179
25181
  "onClick",
@@ -25200,7 +25202,7 @@ var _hoisted_1$31 = ["src"], _hoisted_2$23 = {
25200
25202
  let n = j.value.indexOf(e);
25201
25203
  n < 0 || (O.value = n, E.value = !0);
25202
25204
  };
25203
- return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$30, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.files, (n) => (openBlock(), createElementBlock("div", {
25205
+ return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$29, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.files, (n) => (openBlock(), createElementBlock("div", {
25204
25206
  key: n.file?.name,
25205
25207
  class: normalizeClass(["file-content", { "is-file-object": !s(n) || a[l(n)] }])
25206
25208
  }, [s(n) && !a[l(n)] ? (openBlock(), createElementBlock("img", {
@@ -25230,7 +25232,7 @@ var _hoisted_1$31 = ["src"], _hoisted_2$23 = {
25230
25232
  "images"
25231
25233
  ])]));
25232
25234
  }
25233
- }), _hoisted_1$29 = ["onClick"], ai_prompt_list_default = /* @__PURE__ */ defineComponent({
25235
+ }), _hoisted_1$28 = ["onClick"], ai_prompt_list_default = /* @__PURE__ */ defineComponent({
25234
25236
  __name: "ai-prompt-list",
25235
25237
  props: {
25236
25238
  onSelect: { type: Function },
@@ -25250,7 +25252,7 @@ var _hoisted_1$31 = ["src"], _hoisted_2$23 = {
25250
25252
  key: n,
25251
25253
  class: normalizeClass(["ai-prompt-list-item", { "is-active": unref(i) === r }]),
25252
25254
  onClick: (r) => e.onSelect(n)
25253
- }, toDisplayString(n), 11, _hoisted_1$29))), 128))], 512));
25255
+ }, toDisplayString(n), 11, _hoisted_1$28))), 128))], 512));
25254
25256
  }
25255
25257
  }), DelayMs = 300;
25256
25258
  const OverflowTips = {
@@ -25290,7 +25292,7 @@ const OverflowTips = {
25290
25292
  e.removeEventListener("mouseenter", e.mouseEnterFunc), e.removeEventListener("mouseleave", e.mouseLeaveFunc), e.unObserverFunc?.(), e.mouseEnterFunc = void 0, e.mouseLeaveFunc = void 0, e.unObserverFunc = void 0;
25291
25293
  }
25292
25294
  };
25293
- var _hoisted_1$28 = { class: "ai-slash-item ai-slash-group-title" }, _hoisted_2$21 = ["onClick"], _hoisted_3$16 = ["onClick"], _hoisted_4$15 = ["title"], ai_slash_menu_default = /* @__PURE__ */ defineComponent({
25295
+ var _hoisted_1$27 = { class: "ai-slash-item ai-slash-group-title" }, _hoisted_2$21 = ["onClick"], _hoisted_3$16 = ["onClick"], _hoisted_4$15 = ["title"], ai_slash_menu_default = /* @__PURE__ */ defineComponent({
25294
25296
  __name: "ai-slash-menu",
25295
25297
  props: {
25296
25298
  onSelect: { type: Function },
@@ -25333,7 +25335,7 @@ var _hoisted_1$28 = { class: "ai-slash-item ai-slash-group-title" }, _hoisted_2$
25333
25335
  }, [(openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (n, r) => (openBlock(), createElementBlock(Fragment, null, [n.items.length > 0 ? (openBlock(), createElementBlock("div", {
25334
25336
  key: r,
25335
25337
  class: "ai-slash-group"
25336
- }, [createElementVNode("div", _hoisted_1$28, [
25338
+ }, [createElementVNode("div", _hoisted_1$27, [
25337
25339
  (openBlock(), createElementBlock("svg", {
25338
25340
  class: "title-icon",
25339
25341
  style: normalizeStyle({ transform: i.value.includes(n.type) ? "rotate(90deg)" : "rotate(0deg)" }),
@@ -25373,7 +25375,7 @@ const DeleteTag = (e, n, r, i) => new Transaction().delete(r, i), InsertTag = (e
25373
25375
  plain: (e) => e.label
25374
25376
  }) }
25375
25377
  });
25376
- var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-placeholder"], _hoisted_3$15 = { key: 0 }, _hoisted_4$14 = ["data-tag-type"], _hoisted_5$8 = { key: 1 }, ai_slash_input_default = /* @__PURE__ */ defineComponent({
25378
+ var _hoisted_1$26 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-placeholder"], _hoisted_3$15 = { key: 0 }, _hoisted_4$14 = ["data-tag-type"], _hoisted_5$8 = { key: 1 }, ai_slash_input_default = /* @__PURE__ */ defineComponent({
25377
25379
  __name: "ai-slash-input",
25378
25380
  props: {
25379
25381
  modelValue: {},
@@ -25394,9 +25396,9 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25394
25396
  set(e) {
25395
25397
  s("update:modelValue", e, e?.flat()?.filter((e) => e.type === "tag")?.map((e) => l.resources?.find((n) => (n.id === e.data.value || n.name === e.data.value) && n.type === e.data.type) || null)?.filter((e) => !!e) || []), n();
25396
25398
  }
25397
- })), d = shallowRef("slash"), m = shallowRef(""), E = shallowRef([]), I = shallowRef([]), L, z, B = document.body, { commandSelection: H, GetCursorPosition: i_ } = useCommandSelection(), G = () => {
25399
+ })), d = shallowRef("slash"), m = shallowRef(""), E = shallowRef([]), I = shallowRef([]), L, z, B = document.body, { commandSelection: H, GetCursorPosition: G } = useCommandSelection(), K = () => {
25398
25400
  setTimeout(() => {
25399
- let e = J();
25401
+ let e = Z();
25400
25402
  m.value = e.query || "", e.isActive ? (a.value?.setProps({ getReferenceClientRect: () => ({
25401
25403
  left: e.coordinates?.left || 0,
25402
25404
  top: e.coordinates?.top || 0,
@@ -25404,12 +25406,12 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25404
25406
  height: 0
25405
25407
  }) }), a.value?.show()) : a.value?.hide();
25406
25408
  }, 16);
25407
- }, K = (e) => {
25409
+ }, q = (e) => {
25408
25410
  if (s("keydown", e), e.key === "Enter" || e.key === "NumpadEnter") return e.shiftKey ? void 0 : (e.preventDefault?.(), !1);
25409
- e.key === "@" && (d.value = "slash", G()), e.key === "/" && (d.value = "prompt", G());
25410
- }, q = () => {
25411
- m.value = "";
25411
+ e.key === "@" && (d.value = "slash", K()), e.key === "/" && (d.value = "prompt", K());
25412
25412
  }, J = () => {
25413
+ m.value = "";
25414
+ }, Z = () => {
25413
25415
  let e = {
25414
25416
  isActive: !1,
25415
25417
  query: "",
@@ -25439,28 +25441,28 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25439
25441
  } catch {
25440
25442
  return e;
25441
25443
  }
25442
- }, Z = (e, n) => e.reduce((e, r, i) => i >= n ? e : (r.type === "text" && (e += r.text?.length || 0), r.type === "tag" && (e += 1), e), 0), o_ = (e) => {
25443
- L.command(i_);
25444
+ }, Q = (e, n) => e.reduce((e, r, i) => i >= n ? e : (r.type === "text" && (e += r.text?.length || 0), r.type === "tag" && (e += 1), e), 0), r_ = (e) => {
25445
+ L.command(G);
25444
25446
  let { column: n, line: r } = H.value;
25445
- L.command(DeleteTag, [r, n - m.value.length - 1], [r, n]), L.command(InsertTag, [r, n], e), L.command(InsertText, [r, n + m.value.length + 1 + 1], " "), a.value?.hide(), Q();
25446
- }, Q = () => {
25447
+ L.command(DeleteTag, [r, n - m.value.length - 1], [r, n]), L.command(InsertTag, [r, n], e), L.command(InsertText, [r, n + m.value.length + 1 + 1], " "), a.value?.hide(), i_();
25448
+ }, i_ = () => {
25447
25449
  setTimeout(() => {
25448
25450
  let e = window.getSelection(), n = document.createRange();
25449
25451
  i.value && e && (n.selectNodeContents(i.value), n.collapse(!1), e.removeAllRanges(), e.addRange(n));
25450
25452
  }, 100);
25451
25453
  }, $ = (e) => {
25452
- L.command(ReplaceAll, e), Q();
25454
+ L.command(ReplaceAll, e), i_();
25453
25455
  };
25454
25456
  watchEffect(() => {
25455
25457
  let e = l.resources?.filter((e) => !u.value?.some((n) => n.some((n) => n.type === "tag" && n.data.value === e.id && n.data.type === e.type)));
25456
25458
  m.value ? (E.value = e.filter((e) => e.name.toLowerCase().includes(m.value.toLowerCase())), I.value = l.prompts.filter((e) => e.toLowerCase().includes(m.value.toLowerCase()))) : (E.value = e, I.value = l.prompts), !E.value.length && !I.value.length && a.value?.hide();
25457
25459
  });
25458
- let u_ = (e, n, r, i) => {
25460
+ let c_ = (e, n, r, i) => {
25459
25461
  if (n.type === "tag") {
25460
- let n = Z(e, r);
25462
+ let n = Q(e, r);
25461
25463
  L.command(DeleteTag, [i, n], [i, n + 1]);
25462
25464
  }
25463
- }, d_ = (e) => {
25465
+ }, l_ = (e) => {
25464
25466
  let n = e.clipboardData?.items;
25465
25467
  if (!n) return;
25466
25468
  let r = [];
@@ -25469,26 +25471,26 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25469
25471
  n && r.push(n);
25470
25472
  }
25471
25473
  r.length > 0 && (e.preventDefault(), console.log("handlePaste files", r), s("upload", r));
25472
- }, f_ = () => {
25474
+ }, u_ = () => {
25473
25475
  z?.(), L = createEditor({
25474
25476
  doc: u.value,
25475
25477
  schema: tagSchema,
25476
25478
  onChange: async (e) => {
25477
- u.value = e, G();
25479
+ u.value = e, K();
25478
25480
  },
25479
- onKeyDown: (e) => K(e)
25481
+ onKeyDown: (e) => q(e)
25480
25482
  }), z = L.input(i.value);
25481
- }, p_ = () => d.value === "slash" ? E.value.length < 1 ? !1 : void 0 : I.value.length < 1 ? !1 : void 0;
25483
+ }, d_ = () => d.value === "slash" ? E.value.length < 1 ? !1 : void 0 : I.value.length < 1 ? !1 : void 0;
25482
25484
  return onMounted(() => {
25483
- f_(), i.value?.addEventListener("paste", d_);
25485
+ u_(), i.value?.addEventListener("paste", l_);
25484
25486
  }), onUnmounted(() => {
25485
- L.command(ReplaceAll, ""), z?.(), i.value?.removeEventListener("paste", d_);
25487
+ L.command(ReplaceAll, ""), z?.(), i.value?.removeEventListener("paste", l_);
25486
25488
  }), n({
25487
25489
  cleanup: () => {
25488
25490
  L.command(ReplaceAll, "");
25489
25491
  },
25490
- focus: Q
25491
- }), (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$27, [createElementVNode("div", {
25492
+ focus: i_
25493
+ }), (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$26, [createElementVNode("div", {
25492
25494
  ref_key: "editorRef",
25493
25495
  ref: i,
25494
25496
  "aria-placeholder": e.placeholder,
@@ -25501,7 +25503,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25501
25503
  "data-tag-type": r.data.type
25502
25504
  }, [createTextVNode(toDisplayString(r.data.label) + " ", 1), createVNode(unref(RemoveIcon), {
25503
25505
  class: "mention-tag-remove-icon",
25504
- onClick: (a) => u_(e, r, i, n)
25506
+ onClick: (a) => c_(e, r, i, n)
25505
25507
  }, null, 8, ["onClick"])], 10, _hoisted_4$14)) : createCommentVNode("v-if", !0)], 64))), 128)) : (openBlock(), createElementBlock("br", _hoisted_5$8))]))), 128)) : createCommentVNode("v-if", !0)], 8, _hoisted_2$20), createVNode(unref(Tippy), {
25506
25508
  ref_key: "tippyRef",
25507
25509
  ref: a,
@@ -25515,12 +25517,12 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25515
25517
  trigger: "manual",
25516
25518
  "trigger-target": i.value,
25517
25519
  "z-index": unref(EDITOR_MENU_Z_INDEX),
25518
- onHidden: q,
25519
- onShow: p_
25520
+ onHidden: J,
25521
+ onShow: d_
25520
25522
  }, {
25521
25523
  content: withCtx(() => [d.value === "slash" ? (openBlock(), createBlock(ai_slash_menu_default, {
25522
25524
  key: 0,
25523
- "on-select": o_,
25525
+ "on-select": r_,
25524
25526
  "resource-list": E.value
25525
25527
  }, null, 8, ["resource-list"])) : d.value === "prompt" ? (openBlock(), createBlock(ai_prompt_list_default, {
25526
25528
  key: 1,
@@ -25534,7 +25536,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25534
25536
  "z-index"
25535
25537
  ])]));
25536
25538
  }
25537
- }), _hoisted_1$26 = { class: "ai-input-attachment" }, input_attachment_default = /* @__PURE__ */ defineComponent({
25539
+ }), _hoisted_1$25 = { class: "ai-input-attachment" }, input_attachment_default = /* @__PURE__ */ defineComponent({
25538
25540
  __name: "input-attachment",
25539
25541
  props: {
25540
25542
  messageState: {},
@@ -25547,7 +25549,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25547
25549
  }, o = () => {
25548
25550
  r.messageState === MessageStatus.Disabled || r.messageState === MessageStatus.Pending || r.messageState === MessageStatus.Streaming || i("sendMessage");
25549
25551
  };
25550
- return (n, i) => (openBlock(), createElementBlock("div", _hoisted_1$26, [renderSlot(n.$slots, "default"), renderSlot(n.$slots, "send-icon", {}, () => [createElementVNode("div", { class: normalizeClass(["send-message-icon", { ["send-message-icon__" + e.messageState]: !0 }]) }, [e.messageState === unref(MessageStatus).Streaming || e.messageState === unref(MessageStatus).Pending ? withDirectives((openBlock(), createBlock(unref(LoadingMessageIcon), {
25552
+ return (n, i) => (openBlock(), createElementBlock("div", _hoisted_1$25, [renderSlot(n.$slots, "default"), renderSlot(n.$slots, "send-icon", {}, () => [createElementVNode("div", { class: normalizeClass(["send-message-icon", { ["send-message-icon__" + e.messageState]: !0 }]) }, [e.messageState === unref(MessageStatus).Streaming || e.messageState === unref(MessageStatus).Pending ? withDirectives((openBlock(), createBlock(unref(LoadingMessageIcon), {
25551
25553
  key: 0,
25552
25554
  onClick: a
25553
25555
  }, null, 512)), [[unref(directive), {
@@ -25565,7 +25567,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25565
25567
  offset: [0, 16]
25566
25568
  }]])], 2)])]));
25567
25569
  }
25568
- }), _hoisted_1$25 = { class: "chat-input-container" }, _hoisted_2$19 = {
25570
+ }), _hoisted_1$24 = { class: "chat-input-container" }, _hoisted_2$19 = {
25569
25571
  key: 1,
25570
25572
  class: "ai-divider"
25571
25573
  }, chat_input_default = /* @__PURE__ */ defineComponent({
@@ -25578,7 +25580,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25578
25580
  onSendMessage: {},
25579
25581
  onStopSending: {},
25580
25582
  onUpload: {},
25581
- placeholder: { default: isEn ? "Input \"/\" to trigger prompt\nInput \"@\" to trigger tool\nUse Shift + Enter to enter a new line" : "输入 “/”唤出 Prompt\n输入“@”唤出工具\n通过 Shift + Enter 进行换行输入" },
25583
+ placeholder: { default: isEn ? "Input \"/\" to trigger prompt\nInput \"@\" to trigger tool and MCP\nUse Shift + Enter to enter a new line" : "输入 “/”唤出 Prompt\n输入“@”唤出 工具 和 MCP\n通过 Shift + Enter 进行换行输入" },
25582
25584
  prompts: { default: () => [] },
25583
25585
  resources: { default: () => [] },
25584
25586
  shortcutId: {},
@@ -25601,7 +25603,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25601
25603
  "update:modelValue"
25602
25604
  ], ["update:cite"]),
25603
25605
  setup(e, { expose: n, emit: r }) {
25604
- useCssVars((e) => ({ v7948c92e: unref(CHAT_Z_INDEX) }));
25606
+ useCssVars((e) => ({ v2ada5094: unref(CHAT_Z_INDEX) }));
25605
25607
  let i = useTemplateRef("aiSlashInputRef"), a = useTemplateRef("filesRef"), o = useModel(e, "cite"), s = shallowRef(200), l = e, u = r, m = ref(l.defaultUploadFiles || []), E = computed(() => l.shortcuts?.find((e) => e.id === l.shortcutId)), O = computed(() => l.modelValue?.length < 1 || Array.isArray(l.modelValue) && !docToString(l.modelValue).trim() ? MessageStatus.Disabled : l.messageStatus);
25606
25608
  watchPostEffect(() => {
25607
25609
  let e = l.inputMaxHeight || 200;
@@ -25642,13 +25644,13 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25642
25644
  o.value = "";
25643
25645
  }, H = (e) => {
25644
25646
  u("selectShortcut", e);
25645
- }, i_ = () => {
25647
+ }, G = () => {
25646
25648
  u("deleteShortcut");
25647
- }, G = (e) => `${e.name}_${e.size}_${e.lastModified}`, K = async (e) => {
25649
+ }, K = (e) => `${e.name}_${e.size}_${e.lastModified}`, q = async (e) => {
25648
25650
  if (!l.supportUpload) return;
25649
- let n = new Set(m.value.map((e) => e.file ? G(e.file) : ""));
25651
+ let n = new Set(m.value.map((e) => e.file ? K(e.file) : ""));
25650
25652
  for (let r of e) {
25651
- let e = G(r);
25653
+ let e = K(r);
25652
25654
  if (n.has(e)) continue;
25653
25655
  n.add(e);
25654
25656
  let i = {
@@ -25665,9 +25667,9 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25665
25667
  i.status = UploadStatus.Error;
25666
25668
  });
25667
25669
  }
25668
- }, q = (e) => {
25670
+ }, J = (e) => {
25669
25671
  m.value = m.value.filter((n) => n.file ? n.file !== e.file : n.url ? n.url !== e.url : n.filename ? n.filename !== e.filename : !0);
25670
- }, J = (e, n) => {
25672
+ }, Z = (e, n) => {
25671
25673
  u("update:modelValue", e, n);
25672
25674
  };
25673
25675
  return n({
@@ -25675,7 +25677,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25675
25677
  i.value?.focus?.();
25676
25678
  },
25677
25679
  triggerSendMessage: j
25678
- }), (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$25, [renderSlot(n.$slots, "top"), createElementVNode("div", {
25680
+ }), (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$24, [renderSlot(n.$slots, "top"), createElementVNode("div", {
25679
25681
  class: "chat-input",
25680
25682
  style: normalizeStyle({ maxHeight: s.value + "px" })
25681
25683
  }, [
@@ -25692,7 +25694,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25692
25694
  class: "chat-input-files"
25693
25695
  }, [createVNode(file_content_default, {
25694
25696
  files: m.value,
25695
- onDeleteFile: q
25697
+ onDeleteFile: J
25696
25698
  }, null, 8, ["files"])], 512)) : createCommentVNode("v-if", !0)]),
25697
25699
  createVNode(ai_slash_input_default, {
25698
25700
  ref_key: "aiSlashInputRef",
@@ -25702,8 +25704,8 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25702
25704
  prompts: e.prompts,
25703
25705
  resources: e.resources,
25704
25706
  onKeydown: I,
25705
- "onUpdate:modelValue": J,
25706
- onUpload: K
25707
+ "onUpdate:modelValue": Z,
25708
+ onUpload: q
25707
25709
  }, null, 8, [
25708
25710
  "model-value",
25709
25711
  "placeholder",
@@ -25720,7 +25722,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25720
25722
  e.supportUpload ? (openBlock(), createBlock(file_upload_btn_default, {
25721
25723
  key: 0,
25722
25724
  "tippy-options": e.tippyOptions,
25723
- onUpload: K
25725
+ onUpload: q
25724
25726
  }, null, 8, ["tippy-options"])) : createCommentVNode("v-if", !0),
25725
25727
  e.supportUpload && (e.shortcuts?.length || E.value) ? (openBlock(), createElementBlock("span", _hoisted_2$19)) : createCommentVNode("v-if", !0),
25726
25728
  renderSlot(n.$slots, "attachment", {}, () => [e.shortcuts && !E.value ? (openBlock(), createBlock(shortcut_btns_default, {
@@ -25732,7 +25734,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25732
25734
  class: "selected-shortcut-btn",
25733
25735
  shortcut: E.value
25734
25736
  }, {
25735
- append: withCtx(() => [createVNode(unref(CloseIcon), { onClick: i_ })]),
25737
+ append: withCtx(() => [createVNode(unref(CloseIcon), { onClick: G })]),
25736
25738
  _: 1
25737
25739
  }, 8, ["shortcut"])) : createCommentVNode("v-if", !0)])
25738
25740
  ]),
@@ -25741,14 +25743,30 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
25741
25743
  }, 8, ["message-state", "tippy-options"])
25742
25744
  ], 4)]));
25743
25745
  }
25744
- }), _hoisted_1$24 = { class: "ai-scroll-btn" }, scroll_btn_default = /* @__PURE__ */ defineComponent({
25746
+ }), scroll_btn_default = /* @__PURE__ */ defineComponent({
25745
25747
  __name: "scroll-btn",
25746
25748
  props: {
25747
25749
  disabled: { type: Boolean },
25750
+ loading: { type: Boolean },
25748
25751
  title: {}
25749
25752
  },
25750
- setup(e) {
25751
- return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$24, [renderSlot(n.$slots, "icon"), renderSlot(n.$slots, "title", {}, () => [createTextVNode(toDisplayString(e.title), 1)])]));
25753
+ emits: ["click"],
25754
+ setup(e, { emit: n }) {
25755
+ let r = e, i = n, a = (e) => {
25756
+ r.loading || r.disabled || i("click", e);
25757
+ };
25758
+ return (n, r) => (openBlock(), createElementBlock("div", {
25759
+ class: normalizeClass(["ai-scroll-btn", {
25760
+ "is-loading": e.loading,
25761
+ "is-disabled": e.disabled
25762
+ }]),
25763
+ onClick: a
25764
+ }, [e.loading ? (openBlock(), createBlock(unref(Loading), {
25765
+ key: 0,
25766
+ mode: "spin",
25767
+ size: "mini",
25768
+ theme: "primary"
25769
+ })) : renderSlot(n.$slots, "icon", { key: 1 }), renderSlot(n.$slots, "title", {}, () => [createTextVNode(toDisplayString(e.title), 1)])], 2));
25752
25770
  }
25753
25771
  }), _hoisted_1$23 = { class: "ai-delete-confirm" }, _hoisted_2$18 = { class: "ai-delete-confirm__title" }, _hoisted_3$14 = { class: "ai-delete-confirm__desc" }, _hoisted_4$13 = { class: "ai-delete-confirm__actions" }, delete_tool_default = /* @__PURE__ */ defineComponent({
25754
25772
  __name: "delete-tool",
@@ -26401,13 +26419,13 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
26401
26419
  await n.onAction?.(e);
26402
26420
  }, H = async () => {
26403
26421
  await s.value?.triggerSendMessage?.(), i.value = !1;
26404
- }, i_ = () => {
26405
- i.value = !1;
26406
26422
  }, G = () => {
26407
26423
  i.value = !1;
26408
- }, K = async (e) => {
26424
+ }, K = () => {
26425
+ i.value = !1;
26426
+ }, q = async (e) => {
26409
26427
  n.onShortcutConfirm?.(e), i.value = !1;
26410
- }, J = async (e, r) => {
26428
+ }, Z = async (e, r) => {
26411
26429
  n.onInputConfirm?.(e, r), i.value = !1;
26412
26430
  };
26413
26431
  return (n, r) => (openBlock(), createElementBlock("div", _hoisted_1$10, [
@@ -26419,8 +26437,8 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
26419
26437
  createCommentVNode(" 非编辑状态 "),
26420
26438
  i.value ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [createCommentVNode(" 编辑状态 "), m.value ? (openBlock(), createBlock(shortcut_render_default, mergeProps({ key: 0 }, m.value, {
26421
26439
  class: "user-shortcut-render",
26422
- onClose: G,
26423
- onSubmit: K
26440
+ onClose: K,
26441
+ onSubmit: q
26424
26442
  }), null, 16)) : (openBlock(), createBlock(chat_input_default, {
26425
26443
  key: 1,
26426
26444
  ref_key: "chatInputRef",
@@ -26429,11 +26447,11 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
26429
26447
  "onUpdate:modelValue": r[0] ||= (e) => a.value = e,
26430
26448
  class: "user-edit-input",
26431
26449
  "default-upload-files": j.value,
26432
- "on-send-message": J
26450
+ "on-send-message": Z
26433
26451
  }, {
26434
26452
  "send-icon": withCtx(() => [createElementVNode("div", _hoisted_4$4, [createVNode(unref(Button), {
26435
26453
  size: "small",
26436
- onClick: i_
26454
+ onClick: G
26437
26455
  }, {
26438
26456
  default: withCtx(() => [createTextVNode(toDisplayString(unref(t$1)("取消")), 1)]),
26439
26457
  _: 1
@@ -26532,26 +26550,30 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
26532
26550
  onAgentAction: {},
26533
26551
  onAgentFeedback: {},
26534
26552
  onUserAction: {},
26553
+ stopLoading: {
26554
+ type: Boolean,
26555
+ default: !1
26556
+ },
26535
26557
  onUserInputConfirm: {},
26536
26558
  onUserShortcutConfirm: {}
26537
26559
  }, {
26538
- selectedMessages: { required: !1 },
26539
- selectedMessagesModifiers: {}
26560
+ selectedUserMessages: { required: !1 },
26561
+ selectedUserMessagesModifiers: {}
26540
26562
  }),
26541
- emits: /* @__PURE__ */ mergeModels(["stopStreaming"], ["update:selectedMessages"]),
26542
- setup(e) {
26543
- let n = e, r = useModel(e, "selectedMessages"), i = useTemplateRef("messageContainerRef"), a = useTemplateRef("messageContainerBottomRef"), s = ref([]), { toScrollBottom: l, debouncedShowScrollBottomBtn: u } = useContainerScrollProvider(i, a), { copy: d } = useClipboard();
26563
+ emits: /* @__PURE__ */ mergeModels(["stopStreaming"], ["update:selectedUserMessages"]),
26564
+ setup(e, { expose: n }) {
26565
+ let r = e, i = useModel(e, "selectedUserMessages"), a = useTemplateRef("messageContainerRef"), s = useTemplateRef("messageContainerBottomRef"), l = ref([]), { toScrollBottom: u, debouncedShowScrollBottomBtn: m } = useContainerScrollProvider(a, s), { copy: E } = useClipboard();
26544
26566
  watchEffect(() => {
26545
- let e = [], r = [];
26546
- for (let i of n.messages) {
26567
+ let e = [], n = [];
26568
+ for (let i of r.messages) {
26547
26569
  if (i.role === MessageRole$1.User) {
26548
- e.length > 0 && (r.push({
26570
+ e.length > 0 && (n.push({
26549
26571
  messages: e,
26550
26572
  type: MessageRole$1.Assistant,
26551
26573
  isHover: !1,
26552
26574
  checked: !1,
26553
26575
  pause: e?.some((e) => e.property?.extra?.pause) ?? !1
26554
- }), e = []), r.push({
26576
+ }), e = []), n.push({
26555
26577
  messages: [i],
26556
26578
  type: MessageRole$1.User,
26557
26579
  isHover: !1,
@@ -26560,7 +26582,7 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
26560
26582
  continue;
26561
26583
  }
26562
26584
  if (i.role === MessageRole$1.Tool) {
26563
- let e = n.messages.find((e) => e.role === MessageRole$1.Assistant && e.toolCalls?.some((e) => e.id === i.toolCallId));
26585
+ let e = r.messages.find((e) => e.role === MessageRole$1.Assistant && e.toolCalls?.some((e) => e.id === i.toolCallId));
26564
26586
  if (e) {
26565
26587
  let n = e.toolCalls.find((e) => e.id === i.toolCallId);
26566
26588
  n.toolMessage = i, e.status = i.error ? MessageStatus.Error : e.status || MessageStatus.Complete;
@@ -26569,13 +26591,13 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
26569
26591
  }
26570
26592
  e.push(i);
26571
26593
  }
26572
- e.length > 0 && r.push({
26594
+ e.length > 0 && n.push({
26573
26595
  messages: e,
26574
26596
  type: MessageRole$1.Assistant,
26575
26597
  isHover: !1,
26576
26598
  checked: !1,
26577
26599
  pause: e?.some((e) => e.property?.extra?.pause) ?? !1
26578
- }), n.messages.at(-1)?.role === MessageRole$1.User && r.push({
26600
+ }), r.messages.at(-1)?.role === MessageRole$1.User && n.push({
26579
26601
  messages: [{
26580
26602
  role: MessageRole$1.Loading,
26581
26603
  content: "",
@@ -26586,65 +26608,90 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
26586
26608
  type: MessageRole$1.Loading,
26587
26609
  isHover: !1,
26588
26610
  checked: !1
26589
- }), s.value = r;
26590
- }), watch(r, (e) => {
26591
- if (s.value.length) for (let n of s.value ?? []) n && (n.checked = e?.some((e) => n.messages.some((n) => e.id === n.id)) ?? !1);
26611
+ }), l.value = n;
26612
+ }), watch(i, (e) => {
26613
+ if (l.value.length) for (let [n, r] of l.value.entries()) {
26614
+ if (r.type === MessageRole$1.Assistant) continue;
26615
+ let i = e?.some((e) => r.messages.some((n) => e.id === n.id)) ?? !1;
26616
+ if (r.checked = i, r.type === MessageRole$1.User) {
26617
+ let e = l.value.at(n + 1);
26618
+ e && (e.checked = i);
26619
+ }
26620
+ }
26592
26621
  }, {
26593
26622
  immediate: !0,
26594
26623
  flush: "post"
26595
26624
  });
26596
- let m = async (e, r) => (e.id === "copy" && (console.log("messages", r), d(r.filter((e) => e.role !== MessageRole$1.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n"))), n.onAgentAction?.(e, r)), E = async (e, r) => {
26597
- n.onUserAction?.(e, r);
26598
- }, O = (e) => {
26625
+ let O = async (e, n) => (e.id === "copy" && E(n.filter((e) => e.role !== MessageRole$1.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n")), r.onAgentAction?.(e, n)), j = async (e, n) => {
26626
+ r.onUserAction?.(e, n);
26627
+ }, I = (e) => {
26599
26628
  e.isHover = !0;
26600
- }, j = (e) => {
26629
+ }, L = (e) => {
26601
26630
  e.isHover = !1;
26602
- }, I = (e, n) => {
26603
- let i = e.type === MessageRole$1.User;
26604
- s.value?.forEach((r, a) => {
26605
- if (r === e) {
26606
- r.checked = n;
26607
- let e = i ? s.value.at(a + 1) : s.value.at(a - 1);
26631
+ }, z = () => {
26632
+ i.value = l.value?.filter((e) => e.checked && e.type === MessageRole$1.User).map((e) => e.messages).flat();
26633
+ }, B = (e, n) => {
26634
+ let r = e.type === MessageRole$1.User;
26635
+ l.value?.forEach((i, a) => {
26636
+ if (i === e) {
26637
+ i.checked = n;
26638
+ let e = r ? l.value.at(a + 1) : l.value.at(a - 1);
26608
26639
  e && (e.checked = n);
26609
26640
  }
26610
- }), r.value = s.value?.filter((e) => e.checked).map((e) => e.messages).flat();
26611
- }, L = async (e, r, i) => {
26612
- n.onUserInputConfirm?.(e, r, i);
26613
- }, z = async (e, r) => {
26614
- n.onUserShortcutConfirm?.(e, r);
26641
+ }), z();
26642
+ }, H = computed(() => l.value.filter((e) => e.type !== MessageRole$1.Loading)), G = computed(() => H.value.length > 0 && H.value.every((e) => e.checked)), K = () => {
26643
+ H.value.forEach((e) => {
26644
+ e.checked = !0;
26645
+ }), z();
26646
+ }, q = () => {
26647
+ l.value.forEach((e) => {
26648
+ e.checked = !1;
26649
+ }), i.value = [];
26615
26650
  };
26616
- return (r, d) => (openBlock(), createElementBlock("div", {
26651
+ watch(() => r.enableSelection, (e) => {
26652
+ e || q();
26653
+ }), n({
26654
+ selectAll: K,
26655
+ deselectAll: q,
26656
+ isAllSelected: G
26657
+ });
26658
+ let Z = async (e, n, i) => {
26659
+ r.onUserInputConfirm?.(e, n, i);
26660
+ }, Q = async (e, n) => {
26661
+ r.onUserShortcutConfirm?.(e, n);
26662
+ };
26663
+ return (n, i) => (openBlock(), createElementBlock("div", {
26617
26664
  ref_key: "messageContainerRef",
26618
- ref: i,
26665
+ ref: a,
26619
26666
  class: "ai-message-container"
26620
26667
  }, [
26621
- (openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (i, a) => (openBlock(), createElementBlock("div", {
26668
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(l.value, (i, a) => (openBlock(), createElementBlock("div", {
26622
26669
  key: a,
26623
26670
  class: "message-group",
26624
26671
  style: normalizeStyle({ backgroundColor: i.checked ? "#f5f7fa" : "transparent" }),
26625
- onMouseenter: (e) => O(i),
26626
- onMouseleave: (e) => j(i)
26672
+ onMouseenter: (e) => I(i),
26673
+ onMouseleave: (e) => L(i)
26627
26674
  }, [e.enableSelection && i.type !== unref(MessageRole$1).Loading ? (openBlock(), createBlock(unref(Checkbox), {
26628
26675
  key: 0,
26629
26676
  class: "message-group-checkbox",
26630
26677
  "model-value": i.checked,
26631
- "onUpdate:modelValue": (e) => I(i, e)
26678
+ "onUpdate:modelValue": (e) => B(i, e)
26632
26679
  }, null, 8, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", !0), createElementVNode("div", {
26633
- class: "message-group-messages",
26680
+ class: normalizeClass(["message-group-messages", { "message-group-enabled-selection": e.enableSelection && i.type !== unref(MessageRole$1).Loading }]),
26634
26681
  style: normalizeStyle({ width: e.enableSelection && i.type !== unref(MessageRole$1).Loading ? "calc(100% - 16px)" : "100%" })
26635
- }, [(openBlock(!0), createElementBlock(Fragment, null, renderList(i.messages, (n, i) => renderSlot(r.$slots, "default", mergeProps({
26682
+ }, [(openBlock(!0), createElementBlock(Fragment, null, renderList(i.messages, (r, i) => renderSlot(n.$slots, "default", mergeProps({
26636
26683
  key: i,
26637
26684
  ref_for: !0
26638
26685
  }, {
26639
- message: n,
26686
+ message: r,
26640
26687
  messageToolsStatus: e.messageToolsStatus
26641
26688
  }), () => [(openBlock(), createBlock(message_render_default, {
26642
26689
  key: i,
26643
- message: n,
26690
+ message: r,
26644
26691
  "message-tools-status": e.messageToolsStatus,
26645
- "on-action": (e) => E(e, n),
26646
- "on-input-confirm": (e, r) => L(n, e, r),
26647
- "on-shortcut-confirm": (e) => z(n, e),
26692
+ "on-action": (e) => j(e, r),
26693
+ "on-input-confirm": (e, n) => Z(r, e, n),
26694
+ "on-shortcut-confirm": (e) => Q(r, e),
26648
26695
  "tippy-options": e.messageToolsTippyOptions
26649
26696
  }, null, 8, [
26650
26697
  "message",
@@ -26656,34 +26703,35 @@ var _hoisted_1$27 = { class: "ai-slash-input-wrapper" }, _hoisted_2$20 = ["aria-
26656
26703
  ]))])), 128)), !(e.enableSelection && i.type !== unref(MessageRole$1).Loading) && !i.pause && i.type === unref(MessageRole$1).Assistant && e.messageToolsStatus !== unref(MessageToolsStatus).Hidden ? (openBlock(), createBlock(message_tools_default, {
26657
26704
  key: 0,
26658
26705
  "message-tools-status": e.messageToolsStatus,
26659
- "on-action": (e) => m(e, i.messages),
26660
- "tippy-options": n.messageToolsTippyOptions,
26661
- onFeedback: (e, r, a) => n.onAgentFeedback?.(e, i.messages, r, a)
26706
+ "on-action": (e) => O(e, i.messages),
26707
+ "tippy-options": r.messageToolsTippyOptions,
26708
+ onFeedback: (e, n, a) => r.onAgentFeedback?.(e, i.messages, n, a)
26662
26709
  }, null, 8, [
26663
26710
  "message-tools-status",
26664
26711
  "on-action",
26665
26712
  "tippy-options",
26666
26713
  "onFeedback"
26667
- ])) : createCommentVNode("v-if", !0)], 4)], 44, _hoisted_1$9))), 128)),
26714
+ ])) : createCommentVNode("v-if", !0)], 6)], 44, _hoisted_1$9))), 128)),
26668
26715
  createElementVNode("div", {
26669
26716
  ref_key: "messageContainerBottomRef",
26670
- ref: a,
26717
+ ref: s,
26671
26718
  class: "message-container-bottom",
26672
26719
  tabindex: "0"
26673
26720
  }, null, 512),
26674
26721
  createElementVNode("div", _hoisted_2$7, [withDirectives(createVNode(scroll_btn_default, {
26675
- title: unref(t$1)("停止生成"),
26676
- onClick: d[0] ||= (e) => r.$emit("stopStreaming")
26722
+ loading: e.stopLoading,
26723
+ title: e.stopLoading ? unref(t$1)("正在停止") : unref(t$1)("停止生成"),
26724
+ onClick: i[0] ||= (e) => n.$emit("stopStreaming")
26677
26725
  }, {
26678
26726
  icon: withCtx(() => [createVNode(unref(CloseCircleIcon))]),
26679
26727
  _: 1
26680
- }, 8, ["title"]), [[vShow, e.messageStatus === unref(MessageStatus).Streaming]]), withDirectives(createVNode(scroll_btn_default, {
26728
+ }, 8, ["loading", "title"]), [[vShow, e.messageStatus === unref(MessageStatus).Streaming]]), withDirectives(createVNode(scroll_btn_default, {
26681
26729
  title: unref(t$1)("返回底部"),
26682
- onClick: unref(l)
26730
+ onClick: unref(u)
26683
26731
  }, {
26684
26732
  icon: withCtx(() => [createVNode(unref(ArrowDownIcon))]),
26685
26733
  _: 1
26686
- }, 8, ["title", "onClick"]), [[vShow, unref(u)]])])
26734
+ }, 8, ["title", "onClick"]), [[vShow, unref(m)]])])
26687
26735
  ], 512));
26688
26736
  }
26689
26737
  }), avatar_default = "data:image/png;base64,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";
@@ -27171,7 +27219,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27171
27219
  onSessionDelete: (e) => a("history-session-delete", e),
27172
27220
  onSessionRename: (e, n) => a("history-session-rename", e, n)
27173
27221
  }));
27174
- }, B = computed(() => i.hasPermission ? i.enableChatSession ? i.title || `${i.agentName || ""}-${i.sessionName || ""}` : i.agentName : t("无智能体使用权限")), H = computed(() => i.isCompressionHeight ? "bkai-morenchicun" : "bkai-yasuo"), i_ = computed(() => i.isCompressionHeight ? t("恢复默认尺寸") : t("缩小高度")), G = computed(() => i.hasPermission), K = (e) => G.value ? e : t("暂无使用权限"), q = () => ({ cursor: G.value ? "pointer" : "not-allowed" }), J = computed(() => {
27222
+ }, B = computed(() => i.hasPermission ? i.enableChatSession ? i.title || `${i.agentName || ""}-${i.sessionName || ""}` : i.agentName : t("无智能体使用权限")), H = computed(() => i.isCompressionHeight ? "bkai-morenchicun" : "bkai-yasuo"), G = computed(() => i.isCompressionHeight ? t("恢复默认尺寸") : t("缩小高度")), K = computed(() => i.hasPermission), q = (e) => K.value ? e : t("暂无使用权限"), J = () => ({ cursor: K.value ? "pointer" : "not-allowed" }), Z = computed(() => {
27175
27223
  let e = !i.hasSessionContents, n = e ? "disabled" : "", r = e ? `data-tippy-content="${t("请先发起会话")}"` : "", a = "";
27176
27224
  return i.dropdownMenuConfig?.showRename && (a += `
27177
27225
  <div class="tippy-menu-item" data-action="rename">
@@ -27193,7 +27241,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27193
27241
  ${a}
27194
27242
  </div>
27195
27243
  `;
27196
- }), Z = async () => {
27244
+ }), Q = async () => {
27197
27245
  if (i.sessionBusinessManager) try {
27198
27246
  await i.sessionBusinessManager.createNewSession();
27199
27247
  } catch (e) {
@@ -27205,16 +27253,16 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27205
27253
  a("new-chat");
27206
27254
  }, $ = (e) => {
27207
27255
  e.stopPropagation(), i.sessionBusinessManager ? (L || z(), L && L.handleTriggerClick(e)) : a("history-click", e);
27208
- }, c_ = () => {
27256
+ }, o_ = () => {
27209
27257
  a("help-click");
27210
- }, u_ = (e) => {
27258
+ }, c_ = (e) => {
27211
27259
  e.stopPropagation(), L && L.isVisible() && L.hide(), j && (j.state.isVisible ? j.hide() : j.show());
27212
- }, d_ = (e) => {
27260
+ }, l_ = (e) => {
27213
27261
  e.stopPropagation(), e.preventDefault();
27214
27262
  let n = e.currentTarget, r = n.dataset.action;
27215
27263
  if (!n.classList.contains("disabled")) switch (j && j.hide(), r) {
27216
27264
  case "rename":
27217
- p_();
27265
+ d_();
27218
27266
  break;
27219
27267
  case "auto-generate":
27220
27268
  a("auto-generate-name");
@@ -27223,9 +27271,9 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27223
27271
  a("share");
27224
27272
  break;
27225
27273
  }
27226
- }, p_ = () => {
27227
- document.removeEventListener("click", __), g.value = i.sessionName || "", m.value = !0, setTimeout(() => {
27228
- document.addEventListener("click", __);
27274
+ }, d_ = () => {
27275
+ document.removeEventListener("click", h_), g.value = i.sessionName || "", m.value = !0, setTimeout(() => {
27276
+ document.addEventListener("click", h_);
27229
27277
  }, 100), setTimeout(() => {
27230
27278
  if (E.value) try {
27231
27279
  let e = E.value;
@@ -27236,26 +27284,26 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27236
27284
  console.warn("Failed to focus rename input:", e);
27237
27285
  }
27238
27286
  }, 100);
27239
- }, m_ = () => {
27287
+ }, f_ = () => {
27240
27288
  let e = g.value.trim();
27241
27289
  if (!e) {
27242
- h_();
27290
+ p_();
27243
27291
  return;
27244
27292
  }
27245
27293
  a("rename", e), m.value = !1, g.value = "";
27246
- }, h_ = () => {
27294
+ }, p_ = () => {
27247
27295
  m.value = !1, g.value = "";
27248
- }, g_ = (e, n) => {
27249
- g.value = e, n.key === "Enter" ? m_() : n.key === "Escape" && h_();
27250
- }, __ = (e) => {
27296
+ }, m_ = (e, n) => {
27297
+ g.value = e, n.key === "Enter" ? f_() : n.key === "Escape" && p_();
27298
+ }, h_ = (e) => {
27251
27299
  if (!m.value) return;
27252
27300
  let n = e.target, r = document.querySelector(".rename-tooltip");
27253
- r && !r.contains(n) && h_();
27254
- }, y_ = async () => {
27301
+ r && !r.contains(n) && p_();
27302
+ }, __ = async () => {
27255
27303
  if (!u.value) return;
27256
27304
  let e = (await import("tippy.js")).default;
27257
27305
  j &&= (j.destroy(), null), j = e(u.value, {
27258
- content: J.value,
27306
+ content: Z.value,
27259
27307
  theme: "ai-blueking-light more-menu-light light",
27260
27308
  placement: "bottom-start",
27261
27309
  trigger: "manual",
@@ -27269,7 +27317,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27269
27317
  let { default: e } = await import("tippy.js");
27270
27318
  document.querySelectorAll(".tippy-menu-item").forEach((n) => {
27271
27319
  let r = n;
27272
- r.addEventListener("click", d_);
27320
+ r.addEventListener("click", l_);
27273
27321
  let i = r.getAttribute("data-tippy-content");
27274
27322
  if (i && !I.has(r)) {
27275
27323
  let n = e(r, {
@@ -27288,7 +27336,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27288
27336
  onHide: () => {
27289
27337
  document.querySelectorAll(".tippy-menu-item").forEach((e) => {
27290
27338
  let n = e;
27291
- n.removeEventListener("click", d_);
27339
+ n.removeEventListener("click", l_);
27292
27340
  let r = I.get(n);
27293
27341
  r && (r.destroy(), I.delete(n));
27294
27342
  });
@@ -27296,13 +27344,13 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27296
27344
  });
27297
27345
  };
27298
27346
  return watch(() => [i.isCompressionHeight, i.hasSessionContents], () => {
27299
- j && j.setContent(J.value);
27347
+ j && j.setContent(Z.value);
27300
27348
  }), onMounted(() => {
27301
- y_(), i.sessionBusinessManager && z(), document.addEventListener("click", __);
27349
+ __(), i.sessionBusinessManager && z(), document.addEventListener("click", h_);
27302
27350
  }), onBeforeUnmount(() => {
27303
27351
  j &&= (j.destroy(), null), I.forEach((e) => {
27304
27352
  e.destroy();
27305
- }), I.clear(), L &&= (L.destroy(), null), document.removeEventListener("click", __);
27353
+ }), I.clear(), L &&= (L.destroy(), null), document.removeEventListener("click", h_);
27306
27354
  }), n({
27307
27355
  headerRef: s,
27308
27356
  historyIconRef: l
@@ -27325,21 +27373,21 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27325
27373
  "onUpdate:modelValue": r[0] ||= (e) => g.value = e,
27326
27374
  class: "rename-input",
27327
27375
  placeholder: unref(t)("请输入新的会话名称"),
27328
- onKeyup: g_
27376
+ onKeyup: m_
27329
27377
  }, null, 8, ["modelValue", "placeholder"]), createElementVNode("div", { class: "rename-buttons" }, [createElementVNode("i", {
27330
27378
  class: "bkai-icon bkai-check-1 rename-btn confirm-btn",
27331
- onClick: m_
27379
+ onClick: f_
27332
27380
  }), createElementVNode("i", {
27333
27381
  class: "bkai-icon bkai-close rename-btn cancel-btn",
27334
- onClick: h_
27382
+ onClick: p_
27335
27383
  })])])])) : createCommentVNode("v-if", !0)
27336
27384
  ], 2),
27337
- i.showMoreIcon && G.value ? (openBlock(), createElementBlock("span", {
27385
+ i.showMoreIcon && K.value ? (openBlock(), createElementBlock("span", {
27338
27386
  key: 0,
27339
27387
  ref_key: "moreIconRef",
27340
27388
  ref: u,
27341
27389
  class: "bkai-icon bkai-more",
27342
- onClick: u_
27390
+ onClick: c_
27343
27391
  }, null, 512)) : createCommentVNode("v-if", !0)
27344
27392
  ]), createElementVNode("div", _hoisted_6$1, [
27345
27393
  createCommentVNode(" 新增会话按钮 "),
@@ -27348,12 +27396,12 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27348
27396
  class: normalizeClass([
27349
27397
  "bkai-icon",
27350
27398
  "bkai-xinzengliaotian",
27351
- { disabled: !G.value }
27399
+ { disabled: !K.value }
27352
27400
  ]),
27353
- style: normalizeStyle(q()),
27354
- onClick: r[1] ||= (e) => G.value ? Z() : void 0
27401
+ style: normalizeStyle(J()),
27402
+ onClick: r[1] ||= (e) => K.value ? Q() : void 0
27355
27403
  }, null, 6)), [[unref(o), {
27356
- content: K(unref(t)("新增会话")),
27404
+ content: q(unref(t)("新增会话")),
27357
27405
  boundary: "parent"
27358
27406
  }]]) : createCommentVNode("v-if", !0),
27359
27407
  createCommentVNode(" 历史会话按钮 "),
@@ -27364,18 +27412,18 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27364
27412
  class: normalizeClass([
27365
27413
  "bkai-icon",
27366
27414
  "bkai-history",
27367
- { disabled: !G.value }
27415
+ { disabled: !K.value }
27368
27416
  ]),
27369
- style: normalizeStyle(q()),
27370
- onClick: r[2] ||= (e) => G.value ? $(e) : void 0
27417
+ style: normalizeStyle(J()),
27418
+ onClick: r[2] ||= (e) => K.value ? $(e) : void 0
27371
27419
  }, null, 6)), [[unref(o), {
27372
- content: K(unref(t)("历史会话")),
27420
+ content: q(unref(t)("历史会话")),
27373
27421
  boundary: "parent"
27374
27422
  }]]) : createCommentVNode("v-if", !0),
27375
27423
  e.chatGroup?.enabled ? withDirectives((openBlock(), createElementBlock("i", {
27376
27424
  key: 2,
27377
27425
  class: "bkai-icon bkai-zhushou",
27378
- onClick: c_
27426
+ onClick: o_
27379
27427
  }, null, 512)), [[unref(o), {
27380
27428
  content: unref(t)("转人工"),
27381
27429
  boundary: "parent"
@@ -27385,7 +27433,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27385
27433
  class: normalizeClass(["bkai-icon", H.value]),
27386
27434
  onClick: r[3] ||= (e) => a("toggle-compression")
27387
27435
  }, null, 2)), [[unref(o), {
27388
- content: i_.value,
27436
+ content: G.value,
27389
27437
  boundary: "parent"
27390
27438
  }]]) : createCommentVNode("v-if", !0),
27391
27439
  withDirectives(createElementVNode("i", {
@@ -27399,6 +27447,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27399
27447
  }
27400
27448
  }), [["__scopeId", "data-v-3cf2263c"]]), ChatBusinessManager = class {
27401
27449
  _isGenerating;
27450
+ _isStopLoading;
27402
27451
  agentModule;
27403
27452
  config;
27404
27453
  eventEmitter;
@@ -27413,11 +27462,14 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27413
27462
  this.eventEmitter?.emit(e, n);
27414
27463
  }
27415
27464
  constructor(e, n, r = null, i = null, a = {}) {
27416
- this.agentModule = e, this.messageModule = n, this.sessionModule = r, this.eventEmitter = i, this.config = a, this._isGenerating = ref(!1);
27465
+ this.agentModule = e, this.messageModule = n, this.sessionModule = r, this.eventEmitter = i, this.config = a, this._isGenerating = ref(!1), this._isStopLoading = ref(!1);
27417
27466
  }
27418
27467
  get isGenerating() {
27419
27468
  return this._isGenerating;
27420
27469
  }
27470
+ get isStopLoading() {
27471
+ return this._isStopLoading;
27472
+ }
27421
27473
  get isMessagesLoading() {
27422
27474
  return this.messageModule.isListLoading;
27423
27475
  }
@@ -27534,15 +27586,18 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27534
27586
  }), e;
27535
27587
  }
27536
27588
  }
27537
- stopGeneration() {
27589
+ async stopGeneration() {
27590
+ let e = this.sessionModule?.current?.value?.sessionCode ?? "";
27591
+ this._isStopLoading.value = !0;
27538
27592
  try {
27539
- let e = this.sessionModule?.current?.value?.sessionCode ?? "";
27540
- this.agentModule.stopChat(e), this._isGenerating.value = !1, this.emit("stop", {});
27593
+ await this.agentModule.stopChat(e), this._isGenerating.value = !1, this.emit("stop", {});
27541
27594
  } catch (e) {
27542
27595
  console.error("Failed to stop generation:", e), this.emit("chat-error", {
27543
27596
  action: "stop",
27544
27597
  error: e
27545
27598
  });
27599
+ } finally {
27600
+ this._isStopLoading.value = !1;
27546
27601
  }
27547
27602
  }
27548
27603
  }, SessionBusinessManager = class {
@@ -27688,7 +27743,7 @@ var _hoisted_1$4 = { class: "left-section" }, _hoisted_2$3 = { class: "logo" },
27688
27743
  if (!r) throw Error("Share failed: no result returned");
27689
27744
  return {
27690
27745
  shareUrl: `${r.share_page}share-page/${r.share_token}`,
27691
- userMessageIds: e.filter((e) => e.role === "user").map((e) => String(e.id))
27746
+ userMessageIds: e.map((e) => String(e.id))
27692
27747
  };
27693
27748
  }
27694
27749
  }, ShortcutManager = class {
@@ -28201,15 +28256,15 @@ var UIStateManager = class {
28201
28256
  "stop"
28202
28257
  ],
28203
28258
  setup(e, { expose: n, emit: r }) {
28204
- let i = e, a = r, s = ref(), l = ref(), u = ref(null), m = shallowRef([]), E = ref(!1), O = ref(!1), j = ref(!1), I = ref(null), L = () => i.chatHelper ? !i.chatHelper.agent || !i.chatHelper.session || !i.chatHelper.message ? {
28259
+ let i = e, a = r, s = ref(), l = ref(), u = ref(), m = ref(null), E = shallowRef([]), O = ref(!1), j = ref(!1), I = ref(!1), L = ref(null), z = () => i.chatHelper ? !i.chatHelper.agent || !i.chatHelper.session || !i.chatHelper.message ? {
28205
28260
  valid: !1,
28206
28261
  error: "[ChatBot] Invalid chatHelper: missing required modules (agent, session, message)"
28207
28262
  } : { valid: !0 } : i.url ? { valid: !0 } : {
28208
28263
  valid: !1,
28209
28264
  error: "[ChatBot] Neither chatHelper nor url provided. Component requires at least one."
28210
- }, z = (() => {
28211
- let e = L();
28212
- if (!e.valid) return console.error(e.error), I.value = Error(e.error), null;
28265
+ }, B = (() => {
28266
+ let e = z();
28267
+ if (!e.valid) return console.error(e.error), L.value = Error(e.error), null;
28213
28268
  if (i.chatHelper) return i.chatHelper;
28214
28269
  let n = new AGUIProtocol({
28215
28270
  onStart: () => {
@@ -28219,7 +28274,7 @@ var UIStateManager = class {
28219
28274
  a("receive-text");
28220
28275
  },
28221
28276
  onDone: () => {
28222
- a("receive-end"), J_();
28277
+ a("receive-end"), X_();
28223
28278
  },
28224
28279
  onError: (e) => {
28225
28280
  a("error", e);
@@ -28233,50 +28288,50 @@ var UIStateManager = class {
28233
28288
  protocol: n
28234
28289
  });
28235
28290
  return n.injectMessageModule(r.message), r;
28236
- })(), B = computed(() => ((i.chatHelper || z)?.agent)?.isChatting?.value ? MessageStatus.Streaming : MessageStatus.Complete), H = computed(() => B.value === MessageStatus.Streaming ? MessageToolsStatus.Disabled : void 0), i_ = async (e, n) => {
28291
+ })(), H = computed(() => ((i.chatHelper || B)?.agent)?.isChatting?.value ? MessageStatus.Streaming : MessageStatus.Complete), G = computed(() => H.value === MessageStatus.Streaming ? MessageToolsStatus.Disabled : void 0), K = async (e, n) => {
28237
28292
  if (e.id === "cite") {
28238
- D_.value = n.filter((e) => e.role !== MessageRole$1.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n"), dv();
28293
+ E_.value = n.filter((e) => e.role !== MessageRole$1.Reasoning).map((e) => typeof e.content == "string" ? e.content : JSON.stringify(e.content || "")).join("\n"), dv();
28239
28294
  return;
28240
28295
  }
28241
28296
  if (e.id === "rebuild") {
28242
- await Z(n);
28297
+ await $(n);
28243
28298
  return;
28244
28299
  }
28245
28300
  if (e.id === "delete") {
28246
- await K(n);
28301
+ await Q(n);
28247
28302
  return;
28248
28303
  }
28249
28304
  if (e.id === "share") {
28250
- g_ && (E.value = !0), a("request-share");
28305
+ __ && (O.value = !0), a("request-share");
28251
28306
  return;
28252
28307
  }
28253
28308
  if (e.id === "like" || e.id === "unlike") {
28254
28309
  let n = e.id === "like" ? 5 : 0;
28255
28310
  try {
28256
- return await z?.session.getSessionFeedbackReasons(n) || [];
28311
+ return await B?.session.getSessionFeedbackReasons(n) || [];
28257
28312
  } catch (e) {
28258
28313
  return console.error("[ChatBot] Failed to get feedback reasons:", e), [];
28259
28314
  }
28260
28315
  }
28261
28316
  console.log("handleAgentAction", e, n);
28262
- }, G = async (e, n, r, i) => {
28263
- if (!z) {
28317
+ }, q = async (e, n, r, i) => {
28318
+ if (!B) {
28264
28319
  console.error("[ChatBot] Cannot submit feedback: chatHelper not initialized");
28265
28320
  return;
28266
28321
  }
28267
- let o = z.session.current?.value?.sessionCode;
28322
+ let o = B.session.current?.value?.sessionCode;
28268
28323
  if (!o) {
28269
28324
  console.error("[ChatBot] Cannot submit feedback: no active session");
28270
28325
  return;
28271
28326
  }
28272
- let s = findLastUserMessageIdBefore(C_?.messages.value || [], n[0]);
28327
+ let s = findLastUserMessageIdBefore(S_?.messages.value || [], n[0]);
28273
28328
  if (s === void 0) {
28274
28329
  console.error("[ChatBot] Cannot submit feedback: no user message found");
28275
28330
  return;
28276
28331
  }
28277
28332
  let l = e.id === "like" ? 5 : 0;
28278
28333
  try {
28279
- await z.session.postSessionFeedback({
28334
+ await B.session.postSessionFeedback({
28280
28335
  sessionCode: o,
28281
28336
  sessionContentIds: [s],
28282
28337
  rate: l,
@@ -28286,53 +28341,53 @@ var UIStateManager = class {
28286
28341
  } catch (e) {
28287
28342
  console.error("[ChatBot] Failed to submit feedback:", e), a("error", e);
28288
28343
  }
28289
- }, K = async (e) => {
28290
- if (!C_ || !z) {
28344
+ }, Q = async (e) => {
28345
+ if (!S_ || !B) {
28291
28346
  console.error("[ChatBot] Cannot delete messages: chatBusinessManager not initialized");
28292
28347
  return;
28293
28348
  }
28294
28349
  try {
28295
- let n = C_.messages.value, r = findLastUserMessageBefore(n, e[0]);
28350
+ let n = S_.messages.value, r = findLastUserMessageBefore(n, e[0]);
28296
28351
  if (!r) {
28297
28352
  console.error("[ChatBot] No user message found before AI messages");
28298
28353
  return;
28299
28354
  }
28300
28355
  let i = [r, ...e];
28301
- await z.message.deleteMessages(i);
28356
+ await B.message.deleteMessages(i);
28302
28357
  } catch (e) {
28303
28358
  console.error("[ChatBot] Failed to delete messages:", e), a("error", e);
28304
28359
  }
28305
- }, Z = async (e) => {
28306
- if (!C_ || !z) {
28360
+ }, $ = async (e) => {
28361
+ if (!S_ || !B) {
28307
28362
  console.error("[ChatBot] Cannot regenerate: chatBusinessManager not initialized");
28308
28363
  return;
28309
28364
  }
28310
- let n = z.session.current?.value?.sessionCode;
28365
+ let n = B.session.current?.value?.sessionCode;
28311
28366
  if (!n) {
28312
28367
  console.error("[ChatBot] Cannot regenerate: no active session");
28313
28368
  return;
28314
28369
  }
28315
28370
  try {
28316
- await C_.regenerateFromAIMessages(e, n), J_();
28371
+ await S_.regenerateFromAIMessages(e, n), X_();
28317
28372
  } catch (e) {
28318
28373
  console.error("[ChatBot] Failed to regenerate:", e), a("error", e);
28319
28374
  }
28320
- }, $ = async (e, n) => {
28375
+ }, o_ = async (e, n) => {
28321
28376
  if (e.id === "delete") {
28322
- await p_(n);
28377
+ await f_(n);
28323
28378
  return;
28324
28379
  }
28325
28380
  if (e.id === "cite") {
28326
- D_.value = typeof n.content == "string" ? n.content : JSON.stringify(n.content || ""), dv();
28381
+ E_.value = typeof n.content == "string" ? n.content : JSON.stringify(n.content || ""), dv();
28327
28382
  return;
28328
28383
  }
28329
28384
  console.log("handleUserAction", e, n);
28330
28385
  }, c_ = async (e, n, r) => {
28331
- if (!z) {
28386
+ if (!B) {
28332
28387
  console.error("[ChatBot] Cannot edit message: chatHelper not initialized");
28333
28388
  return;
28334
28389
  }
28335
- let i = z.session.current?.value?.sessionCode;
28390
+ let i = B.session.current?.value?.sessionCode;
28336
28391
  if (!i) {
28337
28392
  console.error("[ChatBot] Cannot edit message: no active session");
28338
28393
  return;
@@ -28343,16 +28398,16 @@ var UIStateManager = class {
28343
28398
  return;
28344
28399
  }
28345
28400
  try {
28346
- console.log("handleUserInputConfirm", o, i, n), await z.agent.resendMessage(String(o), i, n), J_();
28401
+ console.log("handleUserInputConfirm", o, i, n), await B.agent.resendMessage(String(o), i, n), X_();
28347
28402
  } catch (e) {
28348
28403
  console.error("[ChatBot] Failed to edit and resend message:", e), a("error", e);
28349
28404
  }
28350
- }, u_ = async (e, n) => {
28351
- if (!C_ || !z) {
28405
+ }, l_ = async (e, n) => {
28406
+ if (!S_ || !B) {
28352
28407
  console.error("[ChatBot] Cannot edit shortcut message: chatHelper not initialized");
28353
28408
  return;
28354
28409
  }
28355
- let r = z.session.current?.value?.sessionCode;
28410
+ let r = B.session.current?.value?.sessionCode;
28356
28411
  if (!r) {
28357
28412
  console.error("[ChatBot] Cannot edit shortcut message: no active session");
28358
28413
  return;
@@ -28369,20 +28424,20 @@ var UIStateManager = class {
28369
28424
  return;
28370
28425
  }
28371
28426
  let o = ov(a, n), s = String(n.input ?? "");
28372
- await C_.resendMessageWithProperty(String(i), r, s, o), J_();
28427
+ await S_.resendMessageWithProperty(String(i), r, s, o), X_();
28373
28428
  } catch (e) {
28374
28429
  console.error("[ChatBot] Failed to edit shortcut message:", e), a("error", e);
28375
28430
  }
28376
28431
  }, d_ = (e) => {
28377
28432
  let n = e.property?.extra;
28378
- return n?.shortcut ? n.shortcut : n?.command ? q_.value.find((e) => e.id === n.command) ?? null : null;
28379
- }, p_ = async (e) => {
28380
- if (!C_ || !z) {
28433
+ return n?.shortcut ? n.shortcut : n?.command ? J_.value.find((e) => e.id === n.command) ?? null : null;
28434
+ }, f_ = async (e) => {
28435
+ if (!S_ || !B) {
28381
28436
  console.error("[ChatBot] Cannot delete message: chatHelper not initialized");
28382
28437
  return;
28383
28438
  }
28384
28439
  try {
28385
- let n = C_.messages.value, r = n.findIndex((n) => n === e);
28440
+ let n = S_.messages.value, r = n.findIndex((n) => n === e);
28386
28441
  if (r === -1) {
28387
28442
  console.error("[ChatBot] User message not found in messages list");
28388
28443
  return;
@@ -28394,41 +28449,41 @@ var UIStateManager = class {
28394
28449
  i.push(r);
28395
28450
  }
28396
28451
  let a = [e, ...i];
28397
- await z.message.deleteMessages(a);
28452
+ await B.message.deleteMessages(a);
28398
28453
  } catch (e) {
28399
28454
  console.error("[ChatBot] Failed to delete user message:", e), a("error", e);
28400
28455
  }
28401
28456
  }, m_ = async () => {
28402
- ((i.chatHelper || z)?.agent)?.stopChat?.(z?.session.current?.value?.sessionCode ?? "");
28403
- }, g_ = !i.chatHelper, y_ = computed(() => g_ ? E.value : i.enableSelection), x_ = computed(() => g_ ? O.value : i.shareLoading), S_ = z ? new SessionBusinessManager(z.session, z.agent, null, {
28457
+ await cv();
28458
+ }, __ = !i.chatHelper, y_ = computed(() => __ ? O.value : i.enableSelection), b_ = computed(() => __ ? j.value : i.shareLoading), x_ = B ? new SessionBusinessManager(B.session, B.agent, null, {
28404
28459
  enableChatSession: !0,
28405
28460
  autoSwitchToInitialSession: !!i.sessionCode,
28406
28461
  loadRecentSessionOnMount: i.autoLoad,
28407
28462
  initialSessionCode: i.sessionCode
28408
- }) : null, C_ = z ? new ChatBusinessManager(z.agent, z.message, z.session, null, {
28463
+ }) : null, S_ = B ? new ChatBusinessManager(B.agent, B.message, B.session, null, {
28409
28464
  openingRemark: i.helloText,
28410
28465
  predefinedQuestions: i.prompts,
28411
28466
  placeholder: i.placeholder
28412
- }) : null, w_ = new ShortcutManager(null, i.shortcuts || []), T_ = shallowRef([[]]), D_ = ref(""), O_ = shallowRef([]), k_ = (e, n) => {
28413
- T_.value = e, O_.value = n;
28414
- }, A_ = computed(() => C_?.messages.value ?? []), j_ = computed(() => C_?.isMessagesLoading.value ?? !1), M_ = computed(() => C_?.isGenerating.value ?? !1), N_ = computed(() => S_?.currentSession.value ?? null), P_ = computed(() => g_ && !j.value ? !1 : !j_.value && A_.value.length === 0), F_ = computed(() => z?.agent.info.value?.conversationSettings?.openingRemark || ""), I_ = computed(() => i.resources?.length ? i.resources : z?.agent.info.value?.resources ?? []), L_ = computed(() => i.prompts?.length ? i.prompts : z?.agent.info.value?.conversationSettings?.predefinedQuestions ?? []), R_ = computed(() => u.value?.supportUpload ? u.value.supportUpload.vision === !0 : z?.agent.info.value?.promptSetting?.supportUpload?.vision === !0), V_ = computed(() => ({
28467
+ }) : null, C_ = new ShortcutManager(null, i.shortcuts || []), T_ = shallowRef([[]]), E_ = ref(""), D_ = shallowRef([]), O_ = (e, n) => {
28468
+ T_.value = e, D_.value = n;
28469
+ }, k_ = computed(() => S_?.messages.value ?? []), A_ = computed(() => S_?.isMessagesLoading.value ?? !1), j_ = computed(() => S_?.isGenerating.value ?? !1), M_ = computed(() => S_?.isStopLoading.value ?? !1), N_ = computed(() => x_?.currentSession.value ?? null), P_ = computed(() => __ && !I.value ? !1 : !A_.value && k_.value.length === 0), F_ = computed(() => B?.agent.info.value?.conversationSettings?.openingRemark || ""), I_ = computed(() => i.resources?.length ? i.resources : B?.agent.info.value?.resources ?? []), z_ = computed(() => i.prompts?.length ? i.prompts : B?.agent.info.value?.conversationSettings?.predefinedQuestions ?? []), B_ = computed(() => m.value?.supportUpload ? m.value.supportUpload.vision === !0 : B?.agent.info.value?.promptSetting?.supportUpload?.vision === !0), V_ = computed(() => ({
28415
28470
  height: typeof i.height == "number" ? `${i.height}px` : i.height,
28416
28471
  maxWidth: typeof i.maxWidth == "number" ? `${i.maxWidth}px` : i.maxWidth
28417
- })), H_ = computed(() => w_.shortcuts.value), U_ = () => {
28418
- m.value = [], g_ && (E.value = !1), a("cancel-share");
28472
+ })), H_ = computed(() => C_.shortcuts.value), U_ = () => {
28473
+ E.value = [], __ && (O.value = !1), a("cancel-share");
28419
28474
  }, W_ = async () => {
28420
- let e = m.value;
28421
- g_ && await G_(e), a("confirm-share", e);
28475
+ let e = E.value;
28476
+ __ && await G_(e), a("confirm-share", e), E.value = [];
28422
28477
  }, G_ = async (e) => {
28423
- if (!z || e.length === 0) return;
28424
- let n = z.session.current?.value?.sessionCode;
28478
+ if (!B || e.length === 0) return;
28479
+ let n = B.session.current?.value?.sessionCode;
28425
28480
  if (!n) {
28426
28481
  console.error("[ChatBot] Cannot share: no active session");
28427
28482
  return;
28428
28483
  }
28429
- O.value = !0;
28484
+ j.value = !0;
28430
28485
  try {
28431
- let r = await z.message.shareMessages(n, e);
28486
+ let r = await B.message.shareMessages(n, e);
28432
28487
  r && (await copyToClipboard(`${r.share_page}share-page/${r.share_token}`), Message({
28433
28488
  message: "分享链接已复制到剪贴板",
28434
28489
  theme: "success"
@@ -28439,33 +28494,33 @@ var UIStateManager = class {
28439
28494
  theme: "error"
28440
28495
  });
28441
28496
  } finally {
28442
- O.value = !1, E.value = !1, m.value = [];
28497
+ j.value = !1, O.value = !1, E.value = [];
28443
28498
  }
28444
28499
  }, K_ = (e) => {
28445
- e ? m.value = A_.value : m.value = [];
28446
- }, q_ = w_.effectiveShortcuts;
28500
+ e ? l.value?.selectAll() : l.value?.deselectAll();
28501
+ }, J_ = C_.effectiveShortcuts;
28447
28502
  watch(() => i.shortcuts, (e) => {
28448
- w_.setShortcuts(e || []);
28449
- }, { immediate: !0 }), watch(() => z?.agent.info.value?.conversationSettings?.commands, (e) => {
28450
- e && w_.setAgentShortcuts(e);
28503
+ C_.setShortcuts(e || []);
28504
+ }, { immediate: !0 }), watch(() => B?.agent.info.value?.conversationSettings?.commands, (e) => {
28505
+ e && C_.setAgentShortcuts(e);
28451
28506
  }, { immediate: !0 });
28452
- let J_ = async () => {
28507
+ let X_ = async () => {
28453
28508
  await nextTick(), s.value && (s.value.scrollTop = s.value.scrollHeight);
28454
- }, X_ = async (e, n = {}) => {
28455
- if (!C_ || !z) throw Error("[ChatBot] Cannot send message: chatBusinessManager not initialized");
28456
- let r = z.session.current?.value?.sessionCode;
28509
+ }, $_ = async (e, n = {}) => {
28510
+ if (!S_ || !B) throw Error("[ChatBot] Cannot send message: chatBusinessManager not initialized");
28511
+ let r = B.session.current?.value?.sessionCode;
28457
28512
  if (!r) throw Error("[ChatBot] Cannot send message: no active session");
28458
- T_.value = [[]], D_.value = "", O_.value = [], a("send-message", typeof e == "string" ? e : ""), await C_.sendMessage(e, r, n);
28459
- }, Q_ = async (e) => {
28460
- let n = z?.session.current?.value?.sessionCode;
28513
+ T_.value = [[]], E_.value = "", D_.value = [], a("send-message", typeof e == "string" ? e : ""), await S_.sendMessage(e, r, n);
28514
+ }, ev = async (e) => {
28515
+ let n = B?.session.current?.value?.sessionCode;
28461
28516
  if (!n) throw Error("[ChatBot] Cannot upload: no active session");
28462
- let r = await z.session.uploadFile(n, e);
28517
+ let r = await B.session.uploadFile(n, e);
28463
28518
  if (!r?.download_url) throw Error("[ChatBot] Upload failed: no download URL returned");
28464
28519
  return r;
28465
28520
  }, tv = async (e, n) => {
28466
28521
  try {
28467
28522
  let n = {};
28468
- D_.value && (n.cite = D_.value), u.value && (n.command = u.value.id), O_.value.length && (n.resources = O_.value), await X_(e, Object.keys(n).length ? { property: { extra: n } } : {});
28523
+ E_.value && (n.cite = E_.value), m.value && (n.command = m.value.id), D_.value.length && (n.resources = D_.value), await $_(e, Object.keys(n).length ? { property: { extra: n } } : {});
28469
28524
  } catch (e) {
28470
28525
  console.error("Failed to send message:", e), a("error", e);
28471
28526
  }
@@ -28486,7 +28541,7 @@ var UIStateManager = class {
28486
28541
  ...e,
28487
28542
  default: e.default ?? void 0
28488
28543
  });
28489
- u.value = {
28544
+ m.value = {
28490
28545
  ...r,
28491
28546
  components: e,
28492
28547
  formModel: {
@@ -28494,12 +28549,12 @@ var UIStateManager = class {
28494
28549
  [i]: n
28495
28550
  }
28496
28551
  };
28497
- } else u.value = {
28552
+ } else m.value = {
28498
28553
  ...r,
28499
28554
  formModel: { ...r.formModel }
28500
28555
  };
28501
28556
  }, av = () => {
28502
- u.value = null;
28557
+ m.value = null;
28503
28558
  }, ov = (e, n) => {
28504
28559
  let r = e.components || [];
28505
28560
  return { extra: {
@@ -28521,62 +28576,62 @@ var UIStateManager = class {
28521
28576
  }))
28522
28577
  } };
28523
28578
  }, sv = async (e) => {
28524
- if (!u.value) {
28579
+ if (!m.value) {
28525
28580
  console.error("[ChatBot] No selected shortcut");
28526
28581
  return;
28527
28582
  }
28528
- let n = ov(u.value, e), r = u.value.name, i = u.value;
28583
+ let n = ov(m.value, e), r = m.value.name, i = m.value;
28529
28584
  av();
28530
28585
  try {
28531
- await X_(r, { property: n });
28586
+ await $_(r, { property: n });
28532
28587
  } catch (e) {
28533
- u.value = i, console.error("[ChatBot] Failed to submit shortcut:", e), a("error", e);
28588
+ m.value = i, console.error("[ChatBot] Failed to submit shortcut:", e), a("error", e);
28534
28589
  }
28535
- }, cv = () => {
28536
- if (!C_) {
28590
+ }, cv = async () => {
28591
+ if (!S_) {
28537
28592
  console.error("[ChatBot] Cannot stop generation: chatBusinessManager not initialized");
28538
28593
  return;
28539
28594
  }
28540
- C_.stopGeneration(), a("stop");
28595
+ await S_.stopGeneration(), a("stop");
28541
28596
  }, lv = async (e) => {
28542
- if (!S_) {
28597
+ if (!x_) {
28543
28598
  console.error("[ChatBot] Cannot switch session: sessionBusinessManager not initialized");
28544
28599
  return;
28545
28600
  }
28546
28601
  try {
28547
- await S_.switchSession(e), a("session-switched", S_.currentSession.value);
28602
+ await x_.switchSession(e), a("session-switched", x_.currentSession.value);
28548
28603
  } catch (e) {
28549
28604
  console.error("Failed to switch session:", e), a("error", e);
28550
28605
  }
28551
28606
  }, uv = (e) => {
28552
- D_.value = e;
28607
+ E_.value = e;
28553
28608
  }, dv = () => {
28554
- l.value?.focus?.();
28609
+ u.value?.focus?.();
28555
28610
  };
28556
28611
  return onMounted(async () => {
28557
- if (!(!z || I.value)) try {
28558
- if (g_) {
28559
- if (await z.agent.getAgentInfo(), await z.session.getSessions(), i.sessionCode) await z.session.chooseSession(i.sessionCode);
28560
- else if (z.session.list.value.length > 0) {
28561
- let e = z.session.list.value[0];
28562
- await z.session.chooseSession(e.sessionCode);
28612
+ if (!(!B || L.value)) try {
28613
+ if (__) {
28614
+ if (await B.agent.getAgentInfo(), await B.session.getSessions(), i.sessionCode) await B.session.chooseSession(i.sessionCode);
28615
+ else if (B.session.list.value.length > 0) {
28616
+ let e = B.session.list.value[0];
28617
+ await B.session.chooseSession(e.sessionCode);
28563
28618
  }
28564
- j.value = !0;
28565
- } else j.value = !0;
28566
- a("agent-info-loaded", z);
28619
+ I.value = !0;
28620
+ } else I.value = !0;
28621
+ a("agent-info-loaded", B);
28567
28622
  } catch (e) {
28568
- console.error("Failed to initialize ChatBot:", e), I.value = e, a("error", e);
28623
+ console.error("Failed to initialize ChatBot:", e), L.value = e, a("error", e);
28569
28624
  }
28570
28625
  }), onBeforeUnmount(() => {
28571
- g_ && z && z.agent.stopChat(z.session.current?.value?.sessionCode ?? "");
28626
+ __ && B && B.agent.stopChat(B.session.current?.value?.sessionCode ?? "");
28572
28627
  }), n({
28573
28628
  sendMessage: (e) => tv(e, [[]]),
28574
28629
  stopGeneration: cv,
28575
28630
  switchSession: lv,
28576
- messages: A_,
28631
+ messages: k_,
28577
28632
  currentSession: N_,
28578
- isGenerating: M_,
28579
- getChatHelper: () => z,
28633
+ isGenerating: j_,
28634
+ getChatHelper: () => B,
28580
28635
  setCiteText: uv,
28581
28636
  focusInput: dv,
28582
28637
  selectShortcut: (e, n) => {
@@ -28589,7 +28644,7 @@ var UIStateManager = class {
28589
28644
  { "welcome-state": P_.value }
28590
28645
  ]),
28591
28646
  style: normalizeStyle(V_.value)
28592
- }, [createCommentVNode(" 初始化错误提示 "), I.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [createElementVNode("span", null, toDisplayString(I.value.message), 1)])) : g_ && !j.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 独立模式:初始化中(getAgentInfo → getSessions → chooseSession)统一展示 Loading "), createElementVNode("div", _hoisted_2$1, [createVNode(unref(Loading), {
28647
+ }, [createCommentVNode(" 初始化错误提示 "), L.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [createElementVNode("span", null, toDisplayString(L.value.message), 1)])) : __ && !I.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" 独立模式:初始化中(getAgentInfo → getSessions → chooseSession)统一展示 Loading "), createElementVNode("div", _hoisted_2$1, [createVNode(unref(Loading), {
28593
28648
  mode: "spin",
28594
28649
  size: "small",
28595
28650
  theme: "primary"
@@ -28607,39 +28662,43 @@ var UIStateManager = class {
28607
28662
  ref_key: "messagesContainerRef",
28608
28663
  ref: s,
28609
28664
  class: "chatbot-messages"
28610
- }, [j_.value ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(unref(Loading), {
28665
+ }, [A_.value ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(unref(Loading), {
28611
28666
  mode: "spin",
28612
28667
  size: "small",
28613
28668
  theme: "primary"
28614
28669
  })])) : (openBlock(), createBlock(unref(message_container_default), {
28615
28670
  key: 1,
28616
- "selected-messages": m.value,
28617
- "onUpdate:selectedMessages": r[0] ||= (e) => m.value = e,
28671
+ ref_key: "messageContainerRef",
28672
+ ref: l,
28673
+ "selected-user-messages": E.value,
28674
+ "onUpdate:selectedUserMessages": r[0] ||= (e) => E.value = e,
28618
28675
  "enable-selection": y_.value,
28619
- "message-status": B.value,
28620
- "message-tools-status": H.value,
28676
+ "message-status": H.value,
28677
+ "message-tools-status": G.value,
28621
28678
  "message-tools-tippy-options": i.messageToolsTippyOptions,
28622
- messages: A_.value,
28623
- "on-agent-action": i_,
28624
- "on-agent-feedback": G,
28625
- "on-user-action": $,
28679
+ messages: k_.value,
28680
+ "on-agent-action": K,
28681
+ "on-agent-feedback": q,
28682
+ "on-user-action": o_,
28626
28683
  "on-user-input-confirm": c_,
28627
- "on-user-shortcut-confirm": u_,
28684
+ "on-user-shortcut-confirm": l_,
28685
+ "stop-loading": M_.value,
28628
28686
  onStopStreaming: m_
28629
28687
  }, null, 8, [
28630
- "selected-messages",
28688
+ "selected-user-messages",
28631
28689
  "enable-selection",
28632
28690
  "message-status",
28633
28691
  "message-tools-status",
28634
28692
  "message-tools-tippy-options",
28635
- "messages"
28693
+ "messages",
28694
+ "stop-loading"
28636
28695
  ]))], 512)], 2112)),
28637
28696
  createCommentVNode(" 统一底部区域 "),
28638
28697
  !P_.value && y_.value ? (openBlock(), createBlock(selection_footer_default, {
28639
28698
  key: 2,
28640
- "is-all-selected": m.value.length === A_.value.length,
28641
- loading: x_.value,
28642
- "selected-count": m.value.length,
28699
+ "is-all-selected": l.value?.isAllSelected ?? !1,
28700
+ loading: b_.value,
28701
+ "selected-count": E.value.length,
28643
28702
  onCancel: U_,
28644
28703
  onConfirm: W_,
28645
28704
  onToggleAll: K_
@@ -28647,29 +28706,29 @@ var UIStateManager = class {
28647
28706
  "is-all-selected",
28648
28707
  "loading",
28649
28708
  "selected-count"
28650
- ])) : (openBlock(), createElementBlock("div", _hoisted_7, [u.value?.components?.length ? (openBlock(), createBlock(unref(shortcut_render_default), mergeProps({ key: 0 }, u.value, {
28709
+ ])) : (openBlock(), createElementBlock("div", _hoisted_7, [m.value?.components?.length ? (openBlock(), createBlock(unref(shortcut_render_default), mergeProps({ key: 0 }, m.value, {
28651
28710
  onClose: av,
28652
28711
  onSubmit: sv
28653
28712
  }), null, 16)) : renderSlot(n.$slots, "input", { key: 1 }, () => [createVNode(unref(chat_input_default), {
28654
28713
  ref_key: "chatInputRef",
28655
- ref: l,
28656
- cite: D_.value,
28657
- "onUpdate:cite": r[1] ||= (e) => D_.value = e,
28658
- "message-status": B.value,
28714
+ ref: u,
28715
+ cite: E_.value,
28716
+ "onUpdate:cite": r[1] ||= (e) => E_.value = e,
28717
+ "message-status": H.value,
28659
28718
  "model-value": T_.value,
28660
28719
  "on-send-message": tv,
28661
28720
  "on-stop-sending": nv,
28662
- "on-upload": Q_,
28721
+ "on-upload": ev,
28663
28722
  placeholder: i.placeholder,
28664
- prompts: L_.value,
28723
+ prompts: z_.value,
28665
28724
  resources: I_.value,
28666
- "shortcut-id": u.value?.id,
28725
+ "shortcut-id": m.value?.id,
28667
28726
  shortcuts: H_.value,
28668
- "support-upload": R_.value,
28727
+ "support-upload": B_.value,
28669
28728
  "tippy-options": e.messageToolsTippyOptions,
28670
28729
  onDeleteShortcut: av,
28671
28730
  onSelectShortcut: rv,
28672
- "onUpdate:modelValue": k_
28731
+ "onUpdate:modelValue": O_
28673
28732
  }, null, 8, [
28674
28733
  "cite",
28675
28734
  "message-status",
@@ -29455,7 +29514,7 @@ function useDraggable(e = {}, n) {
29455
29514
  v.value = e, _.value = r, j.value = e - (window.innerWidth - T.value), n?.onDragStop?.(I());
29456
29515
  }, H = (e, r, i, a) => {
29457
29516
  v.value = e, _.value = r, T.value = Math.min(i, O.value), E.value = a, n?.onResizeStop?.(I());
29458
- }, i_ = () => {
29517
+ }, G = () => {
29459
29518
  O.value = Math.max(window.innerWidth * (o / 100), T.value), nextTick(() => {
29460
29519
  if (k.value) v.value = window.innerWidth - T.value - l, _.value = window.innerHeight - s - l;
29461
29520
  else {
@@ -29466,19 +29525,19 @@ function useDraggable(e = {}, n) {
29466
29525
  }
29467
29526
  T.value > O.value && (T.value = O.value);
29468
29527
  });
29469
- }, G = () => {
29528
+ }, K = () => {
29470
29529
  k.value ? (_.value = d.value, nextTick(() => {
29471
29530
  E.value = m.value, v.value = u.value, T.value = g.value;
29472
29531
  })) : (_.value = window.innerHeight - s - l, v.value = u.value - l, T.value = r, E.value = s), k.value = !k.value;
29473
- }, K = (e, n) => {
29474
- v.value = e, _.value = n, j.value = e - (window.innerWidth - T.value);
29475
29532
  }, q = (e, n) => {
29533
+ v.value = e, _.value = n, j.value = e - (window.innerWidth - T.value);
29534
+ }, J = (e, n) => {
29476
29535
  T.value = Math.max(i, Math.min(e, O.value)), E.value = Math.max(a, n);
29477
29536
  };
29478
29537
  return onMounted(() => {
29479
- window.addEventListener("resize", i_);
29538
+ window.addEventListener("resize", G);
29480
29539
  }), onBeforeUnmount(() => {
29481
- window.removeEventListener("resize", i_);
29540
+ window.removeEventListener("resize", G);
29482
29541
  }), {
29483
29542
  minWidth: i,
29484
29543
  minHeight: a,
@@ -29492,11 +29551,11 @@ function useDraggable(e = {}, n) {
29492
29551
  handleResizing: z,
29493
29552
  handleDragStop: B,
29494
29553
  handleResizeStop: H,
29495
- toggleCompression: G,
29496
- updatePosition: K,
29497
- updateSize: q,
29554
+ toggleCompression: K,
29555
+ updatePosition: q,
29556
+ updateSize: J,
29498
29557
  updatePositionAndSize: (e, n, r, i) => {
29499
- K(e, n), q(r, i);
29558
+ q(e, n), J(r, i);
29500
29559
  }
29501
29560
  };
29502
29561
  }
@@ -29537,7 +29596,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29537
29596
  "compression-change"
29538
29597
  ],
29539
29598
  setup(e, { expose: n, emit: r }) {
29540
- let i = e, a = r, o = ref(!1), { minWidth: s, minHeight: l, maxWidth: u, top: m, left: _, width: v, height: E, isCompressed: O, handleDragging: k, handleResizing: j, handleDragStop: I, handleResizeStop: L, toggleCompression: z, updatePosition: B, updateSize: H, updatePositionAndSize: i_ } = useDraggable({
29599
+ let i = e, a = r, o = ref(!1), { minWidth: s, minHeight: l, maxWidth: u, top: m, left: _, width: v, height: E, isCompressed: O, handleDragging: k, handleResizing: j, handleDragStop: I, handleResizeStop: L, toggleCompression: z, updatePosition: B, updateSize: H, updatePositionAndSize: G } = useDraggable({
29541
29600
  initWidth: i.defaultWidth,
29542
29601
  minWidth: i.minWidth,
29543
29602
  minHeight: i.minHeight,
@@ -29552,39 +29611,39 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29552
29611
  onResizeStop: (e) => a("resize-stop", e),
29553
29612
  onDragging: (e) => a("dragging", e),
29554
29613
  onResizing: (e) => a("resizing", e)
29555
- }), G = computed(() => {
29614
+ }), K = computed(() => {
29556
29615
  let e = typeof i.maxWidth == "number" ? `${i.maxWidth}px` : i.maxWidth ?? `${u.value}px`;
29557
29616
  return { "--draggable-max-width": e };
29558
- }), K = computed(() => ({
29617
+ }), q = computed(() => ({
29559
29618
  x: _.value,
29560
29619
  y: m.value,
29561
29620
  width: v.value,
29562
29621
  height: E.value
29563
- })), q = () => {
29622
+ })), J = () => {
29564
29623
  document.querySelectorAll("iframe").forEach((e) => {
29565
29624
  e.style.pointerEvents = "none";
29566
29625
  });
29567
- }, J = () => {
29626
+ }, Z = () => {
29568
29627
  document.querySelectorAll("iframe").forEach((e) => {
29569
29628
  e.style.pointerEvents = "";
29570
29629
  });
29571
- }, Z = (e, n) => {
29572
- o.value || (o.value = !0, q()), k(e, n);
29573
- }, Q = (e, n, r, i) => {
29574
- o.value || (o.value = !0, q()), j(e, n, r, i);
29575
- }, s_ = (e, n) => {
29576
- I(e, n), o.value = !1, J();
29630
+ }, Q = (e, n) => {
29631
+ o.value || (o.value = !0, J()), k(e, n);
29632
+ }, i_ = (e, n, r, i) => {
29633
+ o.value || (o.value = !0, J()), j(e, n, r, i);
29634
+ }, a_ = (e, n) => {
29635
+ I(e, n), o.value = !1, Z();
29577
29636
  }, $ = (e, n, r, i) => {
29578
- L(e, n, r, i), o.value = !1, J();
29637
+ L(e, n, r, i), o.value = !1, Z();
29579
29638
  };
29580
29639
  return watch(O, (e) => {
29581
29640
  a("compression-change", e);
29582
29641
  }), n({
29583
29642
  updatePosition: B,
29584
29643
  updateSize: H,
29585
- updatePositionAndSize: i_,
29644
+ updatePositionAndSize: G,
29586
29645
  toggleCompression: z,
29587
- positionAndSize: K,
29646
+ positionAndSize: q,
29588
29647
  isCompressed: O
29589
29648
  }), (e, n) => withDirectives((openBlock(), createBlock(unref(U), {
29590
29649
  ref: "draggableRef",
@@ -29599,15 +29658,15 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29599
29658
  "prevent-deactivation": !0,
29600
29659
  resizable: i.resizable,
29601
29660
  "drag-handle": i.dragHandle,
29602
- style: normalizeStyle(G.value),
29661
+ style: normalizeStyle(K.value),
29603
29662
  "class-name": "draggable-container-inner",
29604
29663
  w: unref(v),
29605
29664
  x: unref(_),
29606
29665
  y: unref(m),
29607
- onDragStop: s_,
29608
- onDragging: Z,
29666
+ onDragStop: a_,
29667
+ onDragging: Q,
29609
29668
  onResizeStop: $,
29610
- onResizing: Q
29669
+ onResizing: i_
29611
29670
  }, {
29612
29671
  default: withCtx(() => [createElementVNode("div", _hoisted_1$1, [renderSlot(e.$slots, "default", {}, void 0, !0)])]),
29613
29672
  _: 3
@@ -29690,23 +29749,23 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29690
29749
  let z = computed(() => _.value ? t("恢复默认大小") : t("最小化,将缩成锚点")), { createTooltip: B, destroyAll: H } = useTooltip({
29691
29750
  theme: "ai-blueking",
29692
29751
  delay: [0, 0]
29693
- }), i_ = () => {
29752
+ }), G = () => {
29694
29753
  nextTick(() => {
29695
- G();
29754
+ K();
29696
29755
  });
29697
- }, G = () => {
29756
+ }, K = () => {
29698
29757
  H(), s.value && !_.value && B(s.value, getTogglePanelShortcut(), { placement: "left" }), l.value && B(l.value, z.value, { placement: "top" });
29699
29758
  };
29700
29759
  return watch(() => _.value, () => {
29701
29760
  nextTick(() => {
29702
- G();
29761
+ K();
29703
29762
  });
29704
29763
  }), onMounted(() => {
29705
29764
  nextTick(() => {
29706
- G();
29707
- }), window.addEventListener("resize", i_);
29765
+ K();
29766
+ }), window.addEventListener("resize", G);
29708
29767
  }), onBeforeUnmount(() => {
29709
- window.removeEventListener("resize", i_);
29768
+ window.removeEventListener("resize", G);
29710
29769
  }), (n, r) => (openBlock(), createBlock(unref(U), {
29711
29770
  active: !e.isPanelShow,
29712
29771
  axis: "y",
@@ -29847,15 +29906,15 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29847
29906
  });
29848
29907
  }
29849
29908
  }
29850
- }), G = I, K = new SessionBusinessManager(G.session, G.agent, null, {
29909
+ }), K = I, q = new SessionBusinessManager(K.session, K.agent, null, {
29851
29910
  enableChatSession: i.enableChatSession,
29852
29911
  initialSessionCode: i.initialSessionCode
29853
- }), q = new ShareBusinessManager(G.message, G.session), J = new UIStateManager(), Z = computed(() => J.isSelectionMode.value), o_ = ref(!1), $ = new ShortcutManager(null, i.shortcuts || []), c_ = ref(!1), u_ = ref(""), d_ = { appendTo: (e) => {
29912
+ }), J = new ShareBusinessManager(K.message, K.session), Z = new UIStateManager(), Q = computed(() => Z.isSelectionMode.value), r_ = ref(!1), $ = new ShortcutManager(null, i.shortcuts || []), o_ = ref(!1), c_ = ref(""), l_ = { appendTo: (e) => {
29854
29913
  let n = e.closest(".draggable-container-content");
29855
29914
  return console.log("[ai-blueking] appendTo called, ref:", e), console.log("[ai-blueking] appendTo closest result:", n), n ?? document.body;
29856
- } }, p_ = computed(() => m.isCompressed.value), m_ = computed(() => B.value), h_ = ref(""), g_ = ref(!0), __ = ref(!1), v_ = computed(() => G.message.list.value.length === 0), y_ = computed(() => i.resources?.length ? i.resources : z.value?.resources ?? []), x_ = computed(() => i.prompts?.length ? i.prompts : z.value?.conversationSettings?.predefinedQuestions ?? []), S_ = computed(() => {
29915
+ } }, d_ = computed(() => m.isCompressed.value), f_ = computed(() => B.value), p_ = ref(""), m_ = ref(!0), h_ = ref(!1), g_ = computed(() => K.message.list.value.length === 0), __ = computed(() => i.resources?.length ? i.resources : z.value?.resources ?? []), y_ = computed(() => i.prompts?.length ? i.prompts : z.value?.conversationSettings?.predefinedQuestions ?? []), b_ = computed(() => {
29857
29916
  let e = $.effectiveShortcuts.value;
29858
- return typeof i.shortcutFilter == "function" && u_.value ? e.filter((e) => i.shortcutFilter?.(e, u_.value)) : e;
29917
+ return typeof i.shortcutFilter == "function" && c_.value ? e.filter((e) => i.shortcutFilter?.(e, c_.value)) : e;
29859
29918
  });
29860
29919
  watch(() => L.value, async (e) => {
29861
29920
  if (e && z.value) {
@@ -29867,7 +29926,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29867
29926
  openingRemark: e.conversationSettings.openingRemark || "",
29868
29927
  predefinedQuestions: e.conversationSettings.predefinedQuestions || []
29869
29928
  }), e.conversationSettings.commands && $.setAgentShortcuts(e.conversationSettings.commands)), i.loadRecentSessionOnMount) try {
29870
- await K.loadRecentSession({ skipLoadSessions: !0 });
29929
+ await q.loadRecentSession({ skipLoadSessions: !0 });
29871
29930
  } catch (e) {
29872
29931
  console.error("[AIBlueking] Failed to load recent session:", e);
29873
29932
  }
@@ -29875,164 +29934,170 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
29875
29934
  }, { immediate: !0 }), watch(() => i.shortcuts, (e) => {
29876
29935
  $.setShortcuts(e || []);
29877
29936
  }, { immediate: !0 }), watch(() => H.value, (e) => {
29878
- e && (h_.value = e.sessionName || "", __.value = (e.sessionContentCount ?? 0) > 0);
29879
- }, { immediate: !0 }), watch(() => G.message.list.value.length, (e) => {
29880
- __.value = e > 0;
29937
+ e && (p_.value = e.sessionName || "", h_.value = (e.sessionContentCount ?? 0) > 0);
29938
+ }, { immediate: !0 });
29939
+ let x_ = () => K.message.list.value.some((e) => {
29940
+ if (!("property" in e)) return !0;
29941
+ let { property: n } = e;
29942
+ return !n?.extra?.pause;
29881
29943
  });
29882
- let C_ = async (e) => {
29944
+ watch(() => K.message.list.value.length, () => {
29945
+ h_.value = x_();
29946
+ });
29947
+ let S_ = async (e) => {
29883
29948
  m.showPanel(e), e && l.value && await l.value.switchSession(e);
29884
- }, w_ = async (e) => {
29885
- await C_(e);
29949
+ }, C_ = async (e) => {
29950
+ await S_(e);
29886
29951
  }, T_ = () => {
29887
29952
  m.hidePanel();
29888
- }, D_ = () => {
29953
+ }, E_ = () => {
29889
29954
  T_();
29890
29955
  }, O_ = () => {
29891
29956
  m.handleNimbusClick();
29892
- }, A_ = (e) => {
29893
- u_.value = e;
29894
- }, j_ = async (e, n) => {
29895
- c_.value = !1, await C_(), l.value && (e.components?.length ? l.value.selectShortcut(e, n) : (l.value.selectShortcut(e), l.value.setCiteText(n), l.value.focusInput())), O("shortcut-click", {
29957
+ }, k_ = (e) => {
29958
+ c_.value = e;
29959
+ }, A_ = async (e, n) => {
29960
+ o_.value = !1, await S_(), l.value && (e.components?.length ? l.value.selectShortcut(e, n) : (l.value.selectShortcut(e), l.value.setCiteText(n), l.value.focusInput())), O("shortcut-click", {
29896
29961
  shortcut: e,
29897
29962
  source: "popup"
29898
29963
  });
29899
- }, M_ = (e) => {
29964
+ }, j_ = (e) => {
29900
29965
  O("shortcut-click", e);
29901
- }, N_ = (e) => {
29966
+ }, M_ = (e) => {
29902
29967
  m.handleDragging(e);
29903
- }, P_ = (e) => {
29968
+ }, N_ = (e) => {
29904
29969
  m.handleResizing(e);
29905
- }, F_ = (e) => {
29970
+ }, P_ = (e) => {
29906
29971
  m.handleDragStop(e);
29907
- }, I_ = (e) => {
29972
+ }, F_ = (e) => {
29908
29973
  m.handleResizeStop(e);
29909
- }, L_ = () => {
29974
+ }, I_ = () => {
29910
29975
  m.container.toggleCompression();
29911
- }, R_ = (e) => {
29976
+ }, L_ = (e) => {
29912
29977
  m.setCompressed(e);
29913
29978
  }, z_ = async () => {
29914
- j.newChat();
29915
- }, V_ = (e) => {
29979
+ Z.disableSelectionMode(), j.newChat();
29980
+ }, B_ = (e) => {
29916
29981
  j.historyClick(e);
29982
+ }, V_ = async (e) => {
29983
+ Z.disableSelectionMode(), await q.switchSession(e);
29917
29984
  }, H_ = async (e) => {
29918
- await K.switchSession(e);
29919
- }, U_ = async (e) => {
29920
- await K.deleteSession(e);
29921
- }, W_ = async (e, n) => {
29922
- await K.updateSessionName(e, n);
29923
- }, G_ = async () => {
29924
- let e = G.session.current?.value?.sessionCode;
29985
+ await q.deleteSession(e);
29986
+ }, U_ = async (e, n) => {
29987
+ await q.updateSessionName(e, n);
29988
+ }, W_ = async () => {
29989
+ let e = K.session.current?.value?.sessionCode;
29925
29990
  if (!e) {
29926
29991
  console.error("[AIBlueking] Cannot auto-generate name: no active session");
29927
29992
  return;
29928
29993
  }
29929
29994
  try {
29930
- await G.session.renameSession(e);
29931
- let n = G.session.list.value.find((n) => n.sessionCode === e);
29932
- n && (h_.value = n.sessionName || "");
29995
+ await K.session.renameSession(e);
29996
+ let n = K.session.list.value.find((n) => n.sessionCode === e);
29997
+ n && (p_.value = n.sessionName || "");
29933
29998
  } catch (e) {
29934
- console.error("[AIBlueking] Failed to auto-generate session name:", e), cv(e);
29999
+ console.error("[AIBlueking] Failed to auto-generate session name:", e), sv(e);
29935
30000
  }
29936
30001
  j.autoGenerateName();
29937
- }, K_ = () => {
30002
+ }, G_ = () => {
29938
30003
  j.helpClick();
29939
- }, q_ = async (e) => {
29940
- let n = G.session.current?.value;
30004
+ }, K_ = async (e) => {
30005
+ let n = K.session.current?.value;
29941
30006
  if (!n) {
29942
30007
  console.error("[AIBlueking] Cannot rename: no active session");
29943
30008
  return;
29944
30009
  }
29945
30010
  try {
29946
- await G.session.updateSession({
30011
+ await K.session.updateSession({
29947
30012
  ...n,
29948
30013
  sessionName: e
29949
- }), h_.value = e;
30014
+ }), p_.value = e;
29950
30015
  } catch (e) {
29951
- console.error("[AIBlueking] Failed to rename session:", e), cv(e);
30016
+ console.error("[AIBlueking] Failed to rename session:", e), sv(e);
29952
30017
  }
29953
30018
  j.rename(e);
30019
+ }, q_ = () => {
30020
+ Z.enableSelectionMode(), j.share();
29954
30021
  }, J_ = () => {
29955
- J.enableSelectionMode(), j.share();
29956
- }, Y_ = () => {
29957
- J.disableSelectionMode();
29958
- }, X_ = async (e) => {
29959
- o_.value = !0;
30022
+ Z.disableSelectionMode();
30023
+ }, Y_ = async (e) => {
30024
+ r_.value = !0;
29960
30025
  try {
29961
- let { shareUrl: n, userMessageIds: r } = await q.shareMessages(e);
30026
+ let { shareUrl: n, userMessageIds: r } = await J.shareMessages(e);
29962
30027
  await copyToClipboard(n), Message({
29963
30028
  message: t("分享链接已复制到剪贴板"),
29964
30029
  theme: "success"
29965
- }), J.disableSelectionMode(), j.shareMessages(r);
30030
+ }), Z.disableSelectionMode(), j.shareMessages(r);
29966
30031
  } catch (e) {
29967
- console.error("[AIBlueking] Failed to share messages:", e), cv(e);
30032
+ console.error("[AIBlueking] Failed to share messages:", e), sv(e);
29968
30033
  } finally {
29969
- o_.value = !1;
30034
+ r_.value = !1;
29970
30035
  }
29971
- }, Z_ = async (e) => {
30036
+ }, X_ = async (e) => {
29972
30037
  l.value && await l.value.sendMessage(e);
29973
- }, Q_ = (e) => {
29974
- __.value = !0, j.sendMessage(e);
29975
- }, $_ = () => {
30038
+ }, Z_ = (e) => {
30039
+ h_.value = !0, j.sendMessage(e);
30040
+ }, Q_ = () => {
29976
30041
  j.receiveStart();
29977
- }, ev = () => {
30042
+ }, $_ = () => {
29978
30043
  j.receiveText();
29979
- }, tv = () => {
30044
+ }, ev = () => {
29980
30045
  j.receiveEnd();
29981
- }, nv = () => {
30046
+ }, tv = () => {
29982
30047
  j.stop();
29983
- }, rv = () => {
30048
+ }, nv = () => {
29984
30049
  l.value && l.value.stopGeneration();
30050
+ }, rv = async (e) => {
30051
+ e ? await q.createSession({ sessionCode: e }) : await q.createNewSession();
29985
30052
  }, iv = async (e) => {
29986
- e ? await K.createSession({ sessionCode: e }) : await K.createNewSession();
29987
- }, av = async (e) => {
29988
30053
  l.value && await l.value.switchSession(e);
29989
- }, ov = async (e, n) => {
30054
+ }, av = async (e, n) => {
29990
30055
  try {
29991
- await K.updateSessionName(e, n), h_.value = n;
30056
+ await q.updateSessionName(e, n), p_.value = n;
29992
30057
  } catch (e) {
29993
- console.error("[AIBlueking] Failed to update session name:", e), cv(e);
30058
+ console.error("[AIBlueking] Failed to update session name:", e), sv(e);
29994
30059
  }
30060
+ }, ov = (e) => {
30061
+ e && (p_.value = e.sessionName || "", h_.value = (e.sessionContentCount ?? 0) > 0 || x_());
29995
30062
  }, sv = (e) => {
29996
- e && (h_.value = e.sessionName || "", __.value = (e.sessionContentCount ?? 0) > 0 || G.message.list.value.length > 0);
29997
- }, cv = (e) => {
29998
30063
  console.error("ChatBot error:", e), m.emitInternal("sdk-error", {
29999
30064
  apiName: "chat",
30000
30065
  code: -1,
30001
30066
  message: e.message,
30002
30067
  data: e
30003
30068
  });
30004
- }, lv = (e, n) => {
30069
+ }, cv = (e, n) => {
30005
30070
  m.container.updatePosition(e, n);
30006
- }, uv = (e, n) => {
30071
+ }, lv = (e, n) => {
30007
30072
  m.container.updateSize(e, n);
30008
- }, dv = (e, n, r, i) => {
30073
+ }, uv = (e, n, r, i) => {
30009
30074
  m.container.updatePositionAndSize(e, n, r, i);
30010
- }, fv = (e) => {
30075
+ }, dv = (e) => {
30011
30076
  l.value && l.value.setCiteText(e);
30012
- }, pv = () => {
30077
+ }, fv = () => {
30013
30078
  l.value && l.value.focusInput();
30014
- }, mv = (e) => {
30015
- isTogglePanelShortcut(e) && (e.preventDefault(), v.value ? T_() : C_());
30079
+ }, pv = (e) => {
30080
+ isTogglePanelShortcut(e) && (e.preventDefault(), v.value ? T_() : S_());
30016
30081
  };
30017
30082
  return onMounted(async () => {
30018
- o.value && m.setContainerRef(o.value), window.addEventListener("keydown", mv);
30083
+ o.value && m.setContainerRef(o.value), window.addEventListener("keydown", pv);
30019
30084
  }), onBeforeUnmount(() => {
30020
- window.removeEventListener("keydown", mv), m.destroy();
30085
+ window.removeEventListener("keydown", pv), m.destroy();
30021
30086
  }), n({
30022
- show: C_,
30023
- handleShow: w_,
30024
- handleClose: D_,
30087
+ show: S_,
30088
+ handleShow: C_,
30089
+ handleClose: E_,
30025
30090
  hide: T_,
30026
- sendMessage: Z_,
30027
- stopGeneration: rv,
30028
- addNewSession: iv,
30029
- switchToSession: av,
30030
- updateSessionName: ov,
30031
- updatePosition: lv,
30032
- updateSize: uv,
30033
- updatePositionAndSize: dv,
30034
- setCiteText: fv,
30035
- focusInput: pv
30091
+ sendMessage: X_,
30092
+ stopGeneration: nv,
30093
+ addNewSession: rv,
30094
+ switchToSession: iv,
30095
+ updateSessionName: av,
30096
+ updatePosition: cv,
30097
+ updateSize: lv,
30098
+ updatePositionAndSize: uv,
30099
+ setCiteText: dv,
30100
+ focusInput: fv
30036
30101
  }), (e, n) => (openBlock(), createBlock(Teleport, { to: i.teleportTo }, [createElementVNode("div", { class: normalizeClass(["ai-blueking-v2", i.extCls]) }, [
30037
30102
  createCommentVNode(" 可拖拽容器 "),
30038
30103
  createVNode(unref(draggable_container_default), {
@@ -30048,42 +30113,42 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
30048
30113
  "max-width": i.maxWidth,
30049
30114
  "max-width-percent": 80,
30050
30115
  visible: unref(v),
30051
- onCompressionChange: R_,
30052
- onDragStop: F_,
30053
- onDragging: N_,
30054
- onResizeStop: I_,
30055
- onResizing: P_
30116
+ onCompressionChange: L_,
30117
+ onDragStop: P_,
30118
+ onDragging: M_,
30119
+ onResizeStop: F_,
30120
+ onResizing: N_
30056
30121
  }, {
30057
- default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["ai-blueking-panel", { "has-messages": !v_.value }]) }, [
30122
+ default: withCtx(() => [createElementVNode("div", { class: normalizeClass(["ai-blueking-panel", { "has-messages": !g_.value }]) }, [
30058
30123
  createCommentVNode(" 独立的 Header 组件 "),
30059
30124
  i.hideHeader ? createCommentVNode("v-if", !0) : (openBlock(), createBlock(ai_header_default, {
30060
30125
  key: 0,
30061
- "agent-name": m_.value,
30062
- "chat-helper": unref(G),
30126
+ "agent-name": f_.value,
30127
+ "chat-helper": unref(K),
30063
30128
  draggable: i.draggable,
30064
30129
  "dropdown-menu-config": i.dropdownMenuConfig,
30065
30130
  "enable-chat-session": i.enableChatSession,
30066
- "has-permission": g_.value,
30067
- "has-session-contents": __.value,
30068
- "is-compression-height": p_.value,
30069
- "session-business-manager": unref(K),
30070
- "session-name": h_.value,
30131
+ "has-permission": m_.value,
30132
+ "has-session-contents": h_.value,
30133
+ "is-compression-height": d_.value,
30134
+ "session-business-manager": unref(q),
30135
+ "session-name": p_.value,
30071
30136
  "show-compression-icon": i.showCompressionIcon,
30072
30137
  "show-history-icon": i.showHistoryIcon,
30073
30138
  "show-more-icon": i.showMoreIcon,
30074
30139
  "show-new-chat-icon": i.showNewChatIcon,
30075
30140
  title: i.title,
30076
- onAutoGenerateName: G_,
30077
- onClose: D_,
30078
- onHelpClick: K_,
30079
- onHistoryClick: V_,
30080
- onHistorySessionDelete: U_,
30081
- onHistorySessionRename: W_,
30082
- onHistorySessionSwitch: H_,
30141
+ onAutoGenerateName: W_,
30142
+ onClose: E_,
30143
+ onHelpClick: G_,
30144
+ onHistoryClick: B_,
30145
+ onHistorySessionDelete: H_,
30146
+ onHistorySessionRename: U_,
30147
+ onHistorySessionSwitch: V_,
30083
30148
  onNewChat: z_,
30084
- onRename: q_,
30085
- onShare: J_,
30086
- onToggleCompression: L_
30149
+ onRename: K_,
30150
+ onShare: q_,
30151
+ onToggleCompression: I_
30087
30152
  }, null, 8, [
30088
30153
  "agent-name",
30089
30154
  "chat-helper",
@@ -30106,29 +30171,29 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
30106
30171
  ref_key: "chatBotRef",
30107
30172
  ref: l,
30108
30173
  "auto-load": i.loadRecentSessionOnMount,
30109
- "chat-helper": unref(G),
30110
- "enable-selection": Z.value,
30174
+ "chat-helper": unref(K),
30175
+ "enable-selection": Q.value,
30111
30176
  "hello-text": i.helloText,
30112
- "message-tools-tippy-options": d_,
30177
+ "message-tools-tippy-options": l_,
30113
30178
  placeholder: i.placeholder,
30114
- prompts: x_.value,
30179
+ prompts: y_.value,
30115
30180
  "request-options": i.requestOptions,
30116
- resources: y_.value,
30181
+ resources: __.value,
30117
30182
  "session-code": i.initialSessionCode,
30118
- "share-loading": o_.value,
30183
+ "share-loading": r_.value,
30119
30184
  shortcuts: i.shortcuts,
30120
30185
  url: u.value,
30121
- onCancelShare: Y_,
30122
- onConfirmShare: n[0] ||= (e) => X_(e),
30123
- onError: n[1] ||= (e) => cv(e),
30124
- onReceiveEnd: tv,
30125
- onReceiveStart: $_,
30126
- onReceiveText: ev,
30127
- onRequestShare: J_,
30128
- onSendMessage: n[2] ||= (e) => Q_(e),
30129
- onSessionSwitched: n[3] ||= (e) => sv(e),
30130
- onShortcutClick: M_,
30131
- onStop: nv
30186
+ onCancelShare: J_,
30187
+ onConfirmShare: n[0] ||= (e) => Y_(e),
30188
+ onError: n[1] ||= (e) => sv(e),
30189
+ onReceiveEnd: ev,
30190
+ onReceiveStart: Q_,
30191
+ onReceiveText: $_,
30192
+ onRequestShare: q_,
30193
+ onSendMessage: n[2] ||= (e) => Z_(e),
30194
+ onSessionSwitched: n[3] ||= (e) => ov(e),
30195
+ onShortcutClick: j_,
30196
+ onStop: tv
30132
30197
  }, null, 8, [
30133
30198
  "auto-load",
30134
30199
  "chat-helper",
@@ -30174,13 +30239,13 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
30174
30239
  createCommentVNode(" 划词选择弹窗(使用 chat-x 的 AiSelection 组件) "),
30175
30240
  i.enablePopup ? (openBlock(), createBlock(unref(ai_selection_default), {
30176
30241
  key: 1,
30177
- visible: c_.value,
30178
- "onUpdate:visible": n[6] ||= (e) => c_.value = e,
30242
+ visible: o_.value,
30243
+ "onUpdate:visible": n[6] ||= (e) => o_.value = e,
30179
30244
  "exclude-selectors": [".draggable-container-wrapper"],
30180
30245
  "max-shortcut-count": i.shortcutLimit,
30181
- shortcuts: S_.value,
30182
- onSelectShortcut: j_,
30183
- onSelectionChange: A_
30246
+ shortcuts: b_.value,
30247
+ onSelectShortcut: A_,
30248
+ onSelectionChange: k_
30184
30249
  }, null, 8, [
30185
30250
  "visible",
30186
30251
  "max-shortcut-count",
@@ -30188,7 +30253,7 @@ var _hoisted_1$1 = { class: "draggable-container-content" }, draggable_container
30188
30253
  ])) : createCommentVNode("v-if", !0)
30189
30254
  ], 2)], 8, ["to"]));
30190
30255
  }
30191
- }), [["__scopeId", "data-v-8e778364"]]), vue2_default = {
30256
+ }), [["__scopeId", "data-v-06c0f2a6"]]), vue2_default = {
30192
30257
  name: "AIBluekingV2",
30193
30258
  render(e) {
30194
30259
  return e("div", { style: {