@kernelift/ai-chat 2.5.3 → 2.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createElementBlock as fe, openBlock as ue, createStaticVNode as Dn, defineComponent as xt, mergeModels as bt, defineAsyncComponent as Xa, useModel as Ct, createElementVNode as te, withDirectives as ct, renderSlot as ge, createVNode as wt, toDisplayString as De, createTextVNode as jt, createBlock as Mt, resolveDynamicComponent as Za, unref as et, normalizeClass as tt, vShow as pt, ref as we, computed as Be, createCommentVNode as Le, withCtx as ze, Fragment as Ut, renderList as Dt, normalizeStyle as Nt, Teleport as Vn, withModifiers as Gr, onMounted as qr, nextTick as Qr, toValue as at, readonly as _a, watch as mt, getCurrentScope as Pn, onScopeDispose as On, getCurrentInstance as Kn, toRef as Mn, customRef as xn, shallowRef as Fn, useCssVars as Hr, onUnmounted as $a, Transition as jr, vModelText as Gn, isRef as $r } from "vue";
1
+ import { createElementBlock as fe, openBlock as ue, createStaticVNode as Dn, defineComponent as xt, mergeModels as bt, defineAsyncComponent as Xa, useModel as Ct, createElementVNode as re, withDirectives as ct, renderSlot as ge, createVNode as wt, toDisplayString as De, createTextVNode as jt, createBlock as Mt, resolveDynamicComponent as Za, unref as et, normalizeClass as tt, vShow as pt, ref as we, computed as Be, createCommentVNode as Ne, withCtx as ze, Fragment as Ut, renderList as Dt, normalizeStyle as Nt, Teleport as Vn, withModifiers as Gr, onMounted as qr, nextTick as Qr, toValue as at, readonly as _a, watch as mt, getCurrentScope as Pn, onScopeDispose as On, getCurrentInstance as Kn, toRef as Mn, customRef as xn, shallowRef as Fn, useCssVars as Hr, onUnmounted as $a, Transition as jr, vModelText as Gn, isRef as $r } from "vue";
2
2
  const Vt = (t, e) => {
3
3
  const a = t.__vccOpts || t;
4
4
  for (const [h, I] of e)
@@ -61,23 +61,23 @@ const en = /* @__PURE__ */ Vt(jn, [["render", qn]]), Qn = { class: "kernelift-th
61
61
  a.value = !a.value;
62
62
  }
63
63
  return (I, b) => (ue(), fe("div", Qn, [
64
- te("header", {
64
+ re("header", {
65
65
  class: "kernelift-thinking-process__header",
66
66
  onClick: h
67
67
  }, [
68
68
  t.loading ? (ue(), fe("div", Hn, [
69
69
  wt(en, { class: "kernelift-thinking-process__loading-icon" }),
70
- te("div", Jn, De(t.i18n?.chat?.thinking ?? "正在思考中"), 1)
70
+ re("div", Jn, De(t.i18n?.chat?.thinking ?? "正在思考中"), 1)
71
71
  ])) : (ue(), fe("div", Wn, [
72
- b[0] || (b[0] = te("i", { class: "material-symbols--conversion-path kernelift-thinking-process__completed-icon" }, null, -1)),
72
+ b[0] || (b[0] = re("i", { class: "material-symbols--conversion-path kernelift-thinking-process__completed-icon" }, null, -1)),
73
73
  jt(" " + De(t.i18n?.chat?.thinked ?? "已深度思考"), 1)
74
74
  ])),
75
- te("div", Yn, [
75
+ re("div", Yn, [
76
76
  a.value ? (ue(), fe("i", Xn)) : (ue(), fe("i", Zn))
77
77
  ]),
78
78
  ge(I.$slots, "header", {}, void 0, !0)
79
79
  ]),
80
- ct(te("main", _n, [
80
+ ct(re("main", _n, [
81
81
  (ue(), Mt(Za(t.markdownRender || et(e)), {
82
82
  class: tt(["kernelift-thinking-process__markdown", t.markdownClass || ""]),
83
83
  "model-value": t.data,
@@ -209,7 +209,7 @@ const en = /* @__PURE__ */ Vt(jn, [["render", qn]]), Qn = { class: "kernelift-th
209
209
  return { color: i.activeColor };
210
210
  };
211
211
  return (i, n) => (ue(), fe("div", ti, [
212
- te("main", ri, [
212
+ re("main", ri, [
213
213
  ge(i.$slots, "header", {}, void 0, !0),
214
214
  I.value.thoughtProcess ? (ue(), fe("div", ai, [
215
215
  wt(ei, {
@@ -232,7 +232,7 @@ const en = /* @__PURE__ */ Vt(jn, [["render", qn]]), Qn = { class: "kernelift-th
232
232
  ]),
233
233
  _: 3
234
234
  }, 8, ["collapse", "loading", "data", "markdown-class", "on-copy", "i18n", "plugins", "options", "markdown-render", "after-render", "theme-mode", "incremental"])
235
- ])) : Le("", !0),
235
+ ])) : Ne("", !0),
236
236
  (I.value.role === "assistant" || I.value.role === "system") && !I.value.isThinking ? (ue(), fe("div", {
237
237
  key: 1,
238
238
  class: tt(["kernelift-chat-bubble__assistant", {
@@ -262,14 +262,14 @@ const en = /* @__PURE__ */ Vt(jn, [["render", qn]]), Qn = { class: "kernelift-th
262
262
  ], !0),
263
263
  ge(i.$slots, "content-footer", {}, void 0, !0)
264
264
  ], 34)) : I.value.role === "user" ? (ue(), fe("div", ni, [
265
- te("div", ii, De(I.value.content), 1)
266
- ])) : Le("", !0),
265
+ re("div", ii, De(I.value.content), 1)
266
+ ])) : Ne("", !0),
267
267
  ge(i.$slots, "footer", {}, () => [
268
268
  !I.value.loading && !I.value.hideFooterTools ? (ue(), fe("footer", {
269
269
  key: 0,
270
270
  class: tt(["kernelift-chat-bubble__footer", { "kernelift-chat-bubble__footer--user": I.value.role === "user" }])
271
271
  }, [
272
- te("section", {
272
+ re("section", {
273
273
  class: tt(["kernelift-chat-bubble__actions", {
274
274
  "kernelift-chat-bubble__actions--hover": !t.isLast && !I.value.isLiked && !t.isMobile && I.value.role !== "user"
275
275
  }])
@@ -279,14 +279,14 @@ const en = /* @__PURE__ */ Vt(jn, [["render", qn]]), Qn = { class: "kernelift-th
279
279
  class: "kernelift-chat-bubble__action-item",
280
280
  onClick: (V) => T(B.key)
281
281
  }, [
282
- te("i", {
282
+ re("i", {
283
283
  class: tt(R(B)),
284
284
  style: Nt(d(B))
285
285
  }, null, 6)
286
286
  ], 8, si))), 128)),
287
287
  ge(i.$slots, "bubble-event", {}, void 0, !0)
288
288
  ], 2)
289
- ], 2)) : Le("", !0)
289
+ ], 2)) : Ne("", !0)
290
290
  ], !0),
291
291
  (ue(), Mt(Vn, { to: "body" }, [
292
292
  c.value && t.isMobile ? (ue(), fe("div", {
@@ -294,7 +294,7 @@ const en = /* @__PURE__ */ Vt(jn, [["render", qn]]), Qn = { class: "kernelift-th
294
294
  class: "kernelift-chat-bubble__context-overlay",
295
295
  onClick: v
296
296
  }, [
297
- te("div", {
297
+ re("div", {
298
298
  class: "kernelift-chat-bubble__context-menu",
299
299
  style: Nt({
300
300
  left: r.value.x + "px",
@@ -308,14 +308,14 @@ const en = /* @__PURE__ */ Vt(jn, [["render", qn]]), Qn = { class: "kernelift-th
308
308
  class: "kernelift-chat-bubble__context-item",
309
309
  onClick: (V) => p(B.key)
310
310
  }, [
311
- te("i", {
311
+ re("i", {
312
312
  class: tt(R(B)),
313
313
  style: Nt(d(B))
314
314
  }, null, 6),
315
- te("span", null, De(B.label), 1)
315
+ re("span", null, De(B.label), 1)
316
316
  ], 8, oi))), 128))
317
317
  ], 4)
318
- ])) : Le("", !0)
318
+ ])) : Ne("", !0)
319
319
  ]))
320
320
  ])
321
321
  ]));
@@ -620,10 +620,10 @@ function kt(t, e, a, h = {}) {
620
620
  }
621
621
  return C;
622
622
  }
623
- const Li = { class: "kernelift-chat-sidebar" }, Ui = { class: "kernelift-chat-sidebar__new-chat" }, Di = { class: "kernelift-chat-sidebar__actions" }, Vi = { class: "kernelift-chat-sidebar__action-group" }, Pi = { class: "material-symbols--dark-mode" }, Oi = { class: "material-symbols--light-mode" }, Ki = { class: "material-symbols--left-panel-close-outline" }, Mi = { class: "kernelift-chat-sidebar__records" }, xi = ["onClick"], Fi = { class: "kernelift-chat-sidebar__category-label" }, Gi = { class: "kernelift-chat-sidebar__category-count" }, ji = {
623
+ const Li = { class: "kernelift-chat-sidebar" }, Ui = { class: "kernelift-chat-sidebar__new-chat" }, Di = ["disabled"], Vi = { class: "kernelift-chat-sidebar__actions" }, Pi = { class: "kernelift-chat-sidebar__action-group" }, Oi = { class: "material-symbols--dark-mode" }, Ki = { class: "material-symbols--light-mode" }, Mi = { class: "material-symbols--left-panel-close-outline" }, xi = { class: "kernelift-chat-sidebar__records" }, Fi = ["onClick"], Gi = { class: "kernelift-chat-sidebar__category-label" }, ji = { class: "kernelift-chat-sidebar__category-count" }, zi = {
624
624
  key: 0,
625
625
  class: "kernelift-chat-sidebar__category-content"
626
- }, zi = ["onClick"], qi = { class: "kernelift-chat-sidebar__record-content" }, Qi = { class: "kernelift-chat-sidebar__record-info" }, Hi = { class: "kernelift-chat-sidebar__record-name" }, Ji = { class: "kernelift-chat-sidebar__record-time" }, Wi = /* @__PURE__ */ xt({
626
+ }, qi = ["onClick"], Qi = { class: "kernelift-chat-sidebar__record-content" }, Hi = { class: "kernelift-chat-sidebar__record-info" }, Ji = { class: "kernelift-chat-sidebar__record-name" }, Wi = { class: "kernelift-chat-sidebar__record-time" }, Yi = /* @__PURE__ */ xt({
627
627
  __name: "chat-sidebar",
628
628
  props: /* @__PURE__ */ bt({
629
629
  data: {},
@@ -634,7 +634,8 @@ const Li = { class: "kernelift-chat-sidebar" }, Ui = { class: "kernelift-chat-si
634
634
  i18n: { default: () => ({}) },
635
635
  isMobile: { type: Boolean, default: !1 },
636
636
  actionHeight: { default: "2.375rem" },
637
- uuid: { default: "default" }
637
+ uuid: { default: "default" },
638
+ disabledCreateRecord: { type: Boolean, default: !1 }
638
639
  }, {
639
640
  modelValue: {},
640
641
  modelModifiers: {}
@@ -642,8 +643,8 @@ const Li = { class: "kernelift-chat-sidebar" }, Ui = { class: "kernelift-chat-si
642
643
  emits: /* @__PURE__ */ bt(["change", "clear", "change-collapse", "change-theme", "click-logo", "scroll-bottom"], ["update:modelValue"]),
643
644
  setup(t, { emit: e }) {
644
645
  Hr((m) => ({
645
- f3999540: m.actionHeight,
646
- v6f822ba7: U.value
646
+ v25207d55: m.actionHeight,
647
+ v3246d65c: U.value
647
648
  }));
648
649
  const a = t, h = Ct(t, "modelValue"), I = e;
649
650
  function b() {
@@ -706,79 +707,83 @@ const Li = { class: "kernelift-chat-sidebar" }, Ui = { class: "kernelift-chat-si
706
707
  }), $a(() => {
707
708
  E && E?.disconnect();
708
709
  }), (m, s) => (ue(), fe("div", Li, [
709
- te("div", {
710
+ re("div", {
710
711
  ref_key: "headerRef",
711
712
  ref: g,
712
713
  class: "kernelift-chat-sidebar__header"
713
714
  }, [
714
- te("div", {
715
+ re("div", {
715
716
  class: "kernelift-chat-sidebar__logo",
716
717
  onClick: s[0] || (s[0] = (p) => I("click-logo"))
717
718
  }, [
718
719
  ge(m.$slots, "logo", {}, () => [
719
- s[3] || (s[3] = te("img", {
720
+ s[3] || (s[3] = re("img", {
720
721
  src: zr,
721
722
  class: "kernelift-chat-sidebar__logo-img"
722
723
  }, null, -1))
723
724
  ], !0)
724
725
  ]),
725
- te("div", Ui, [
726
- ge(m.$slots, "new-chat-button", { execute: b }, () => [
727
- te("button", {
726
+ re("div", Ui, [
727
+ ge(m.$slots, "new-chat-button", {
728
+ disabled: t.disabledCreateRecord,
729
+ execute: b
730
+ }, () => [
731
+ re("button", {
728
732
  class: "kernelift-chat-sidebar__new-chat-btn",
729
- onClick: b
733
+ onClick: b,
734
+ disabled: t.disabledCreateRecord
730
735
  }, [
731
- s[4] || (s[4] = te("i", { class: "material-symbols--add-2 kernelift-chat-sidebar__new-chat-icon" }, null, -1)),
736
+ s[4] || (s[4] = re("i", { class: "material-symbols--add-2 kernelift-chat-sidebar__new-chat-icon" }, null, -1)),
732
737
  jt(" " + De(t.i18n?.chat?.newChat ?? "创建新对话"), 1)
733
- ])
738
+ ], 8, Di)
734
739
  ], !0)
735
740
  ]),
736
- te("div", Di, [
737
- te("div", Vi, [
741
+ re("div", Vi, [
742
+ re("div", Pi, [
738
743
  t.hasThemeMode ? (ue(), fe("div", {
739
744
  key: 0,
740
745
  class: "kernelift-chat-sidebar__action-item",
741
746
  onClick: s[1] || (s[1] = (p) => I("change-theme", t.themeMode === "dark" ? "light" : "dark"))
742
747
  }, [
743
- ct(te("i", Pi, null, 512), [
748
+ ct(re("i", Oi, null, 512), [
744
749
  [pt, t.themeMode === "light"]
745
750
  ]),
746
- ct(te("i", Oi, null, 512), [
751
+ ct(re("i", Ki, null, 512), [
747
752
  [pt, t.themeMode === "dark"]
748
753
  ])
749
- ])) : Le("", !0),
750
- te("div", {
754
+ ])) : Ne("", !0),
755
+ re("div", {
751
756
  class: "kernelift-chat-sidebar__action-item",
752
757
  onClick: s[2] || (s[2] = (p) => I("change-collapse", !0))
753
758
  }, [
754
- ct(te("i", Ki, null, 512), [
759
+ ct(re("i", Mi, null, 512), [
755
760
  [pt, !t.collapse]
756
761
  ])
757
762
  ])
758
763
  ])
759
764
  ])
760
765
  ], 512),
761
- te("div", Mi, [
766
+ re("div", xi, [
762
767
  (ue(!0), fe(Ut, null, Dt(S.value, (p) => (ue(), fe("div", {
763
768
  key: p.category,
764
769
  class: "kernelift-chat-sidebar__category-group"
765
770
  }, [
766
- te("div", {
771
+ re("div", {
767
772
  class: "kernelift-chat-sidebar__category-header",
768
773
  onClick: (v) => u(p.category)
769
774
  }, [
770
- te("i", {
775
+ re("i", {
771
776
  class: tt(["kernelift-chat-sidebar__category-icon", {
772
777
  "material-symbols--expand-more": !p.collapsed,
773
778
  "material-symbols--chevron-right": p.collapsed
774
779
  }])
775
780
  }, null, 2),
776
- te("span", Fi, De(p.label), 1),
777
- te("span", Gi, "(" + De(p.records.length) + ")", 1)
778
- ], 8, xi),
781
+ re("span", Gi, De(p.label), 1),
782
+ re("span", ji, "(" + De(p.records.length) + ")", 1)
783
+ ], 8, Fi),
779
784
  wt(jr, { name: "category-fade" }, {
780
785
  default: ze(() => [
781
- p.collapsed ? Le("", !0) : (ue(), fe("div", ji, [
786
+ p.collapsed ? Ne("", !0) : (ue(), fe("div", zi, [
782
787
  (ue(!0), fe(Ut, null, Dt(p.records, (v) => (ue(), fe("div", {
783
788
  key: v.id,
784
789
  class: tt(["kernelift-chat-sidebar__record-item", {
@@ -790,20 +795,20 @@ const Li = { class: "kernelift-chat-sidebar" }, Ui = { class: "kernelift-chat-si
790
795
  record: v,
791
796
  actions: t.actions
792
797
  }, () => [
793
- s[5] || (s[5] = te("i", { class: "material-symbols--more-vert kernelift-chat-sidebar__record-action-icon" }, null, -1))
798
+ s[5] || (s[5] = re("i", { class: "material-symbols--more-vert kernelift-chat-sidebar__record-action-icon" }, null, -1))
794
799
  ], !0),
795
- te("div", qi, De(v.content), 1),
796
- te("div", Qi, [
797
- te("div", Hi, De(v.footerLeftText ?? et(ta)(new Date(v.createTime), "YY-MM-DD")), 1),
798
- te("div", Ji, De(v.footerRightText ?? et(ta)(new Date(v.createTime), "HH:mm:ss")), 1)
800
+ re("div", Qi, De(v.content), 1),
801
+ re("div", Hi, [
802
+ re("div", Ji, De(v.footerLeftText ?? et(ta)(new Date(v.createTime), "YY-MM-DD")), 1),
803
+ re("div", Wi, De(v.footerRightText ?? et(ta)(new Date(v.createTime), "HH:mm:ss")), 1)
799
804
  ])
800
- ], 10, zi))), 128))
805
+ ], 10, qi))), 128))
801
806
  ]))
802
807
  ]),
803
808
  _: 2
804
809
  }, 1024)
805
810
  ]))), 128)),
806
- te("div", {
811
+ re("div", {
807
812
  class: "sentinel",
808
813
  ref_key: "sentinel",
809
814
  ref: l
@@ -812,19 +817,19 @@ const Li = { class: "kernelift-chat-sidebar" }, Ui = { class: "kernelift-chat-si
812
817
  ge(m.$slots, "footer", {}, void 0, !0)
813
818
  ]));
814
819
  }
815
- }), Yi = /* @__PURE__ */ Vt(Wi, [["__scopeId", "data-v-32af60a0"]]), Xi = { class: "kernelift-chat-sender" }, Zi = { class: "kernelift-chat-sender__container" }, _i = { class: "kernelift-chat-sender__toolbar" }, $i = { class: "kernelift-chat-sender__tools" }, es = {
820
+ }), Xi = /* @__PURE__ */ Vt(Yi, [["__scopeId", "data-v-5d186c43"]]), Zi = { class: "kernelift-chat-sender" }, _i = { class: "kernelift-chat-sender__container" }, $i = { class: "kernelift-chat-sender__toolbar" }, es = { class: "kernelift-chat-sender__tools" }, ts = {
816
821
  class: "material-symbols--genetics thinking-button__icon",
817
822
  style: { width: "1rem", height: "1rem" }
818
- }, ts = {
823
+ }, rs = {
819
824
  class: "material-symbols--planet net-button__icon",
820
825
  style: { width: "1rem", height: "1rem" }
821
- }, rs = ["disabled"], as = {
826
+ }, as = ["disabled"], ns = {
822
827
  class: "material-symbols--stop",
823
828
  style: { color: "white" }
824
- }, ns = {
829
+ }, is = {
825
830
  class: "material-symbols--prompt-suggestion",
826
831
  style: { color: "white" }
827
- }, is = /* @__PURE__ */ xt({
832
+ }, ss = /* @__PURE__ */ xt({
828
833
  __name: "chat-sender",
829
834
  props: /* @__PURE__ */ bt({
830
835
  loading: { type: Boolean, default: !1 },
@@ -862,8 +867,8 @@ const Li = { class: "kernelift-chat-sidebar" }, Ui = { class: "kernelift-chat-si
862
867
  function l() {
863
868
  c.value = !c.value;
864
869
  }
865
- return (g, C) => (ue(), fe("div", Xi, [
866
- te("div", Zi, [
870
+ return (g, C) => (ue(), fe("div", Zi, [
871
+ re("div", _i, [
867
872
  ge(g.$slots, "textarea", {
868
873
  height: t.inputHeight,
869
874
  execute: S,
@@ -872,7 +877,7 @@ const Li = { class: "kernelift-chat-sidebar" }, Ui = { class: "kernelift-chat-si
872
877
  inputText: I.value
873
878
  }
874
879
  }, () => [
875
- ct(te("textarea", {
880
+ ct(re("textarea", {
876
881
  "onUpdate:modelValue": C[0] || (C[0] = (m) => I.value = m),
877
882
  rows: "5",
878
883
  cols: "30",
@@ -883,8 +888,8 @@ const Li = { class: "kernelift-chat-sidebar" }, Ui = { class: "kernelift-chat-si
883
888
  [Gn, I.value]
884
889
  ])
885
890
  ], !0),
886
- te("div", _i, [
887
- te("div", $i, [
891
+ re("div", $i, [
892
+ re("div", es, [
888
893
  ge(g.$slots, "think-button", {
889
894
  state: { hasThinking: t.hasThinking, enableThink: b.value },
890
895
  execute: E
@@ -896,11 +901,11 @@ const Li = { class: "kernelift-chat-sidebar" }, Ui = { class: "kernelift-chat-si
896
901
  }]),
897
902
  onClick: E
898
903
  }, [
899
- ct(te("span", es, null, 512), [
904
+ ct(re("span", ts, null, 512), [
900
905
  [pt, t.loading]
901
906
  ]),
902
907
  jt(" " + De(t.i18n?.chat?.button?.think ?? "深度思考"), 1)
903
- ], 2)) : Le("", !0)
908
+ ], 2)) : Ne("", !0)
904
909
  ], !0),
905
910
  ge(g.$slots, "net-button", {
906
911
  state: { hasNetSearch: t.hasNetSearch, enableNet: c.value },
@@ -913,11 +918,11 @@ const Li = { class: "kernelift-chat-sidebar" }, Ui = { class: "kernelift-chat-si
913
918
  }]),
914
919
  onClick: l
915
920
  }, [
916
- ct(te("span", ts, null, 512), [
921
+ ct(re("span", rs, null, 512), [
917
922
  [pt, t.loading]
918
923
  ]),
919
924
  jt(" " + De(t.i18n?.chat?.button?.net ?? "联网搜索"), 1)
920
- ], 2)) : Le("", !0)
925
+ ], 2)) : Ne("", !0)
921
926
  ], !0),
922
927
  ge(g.$slots, "tools", {
923
928
  value: I.value,
@@ -931,36 +936,36 @@ const Li = { class: "kernelift-chat-sidebar" }, Ui = { class: "kernelift-chat-si
931
936
  inputText: I.value
932
937
  }
933
938
  }, () => [
934
- te("button", {
939
+ re("button", {
935
940
  disabled: !I.value && !t.loading,
936
941
  class: "kernelift-chat-sender__send-btn",
937
942
  style: { "background-color": "var(--kl-chat-primary-color)", "border-radius": "50%" },
938
943
  onClick: S
939
944
  }, [
940
- ct(te("i", as, null, 512), [
945
+ ct(re("i", ns, null, 512), [
941
946
  [pt, t.loading]
942
947
  ]),
943
- ct(te("i", ns, null, 512), [
948
+ ct(re("i", is, null, 512), [
944
949
  [pt, !t.loading]
945
950
  ])
946
- ], 8, rs)
951
+ ], 8, as)
947
952
  ], !0)
948
953
  ])
949
954
  ])
950
955
  ]));
951
956
  }
952
- }), ss = /* @__PURE__ */ Vt(is, [["__scopeId", "data-v-3b9bccf1"]]), os = { class: "kernelift-chat-header" }, ls = { class: "kernelift-chat-header__text" }, us = /* @__PURE__ */ xt({
957
+ }), os = /* @__PURE__ */ Vt(ss, [["__scopeId", "data-v-3b9bccf1"]]), ls = { class: "kernelift-chat-header" }, us = { class: "kernelift-chat-header__text" }, cs = /* @__PURE__ */ xt({
953
958
  __name: "chat-header",
954
959
  props: {
955
960
  record: {}
956
961
  },
957
962
  setup(t) {
958
- return (e, a) => (ue(), fe("div", os, [
959
- te("span", ls, De(t.record?.content), 1)
963
+ return (e, a) => (ue(), fe("div", ls, [
964
+ re("span", us, De(t.record?.content), 1)
960
965
  ]));
961
966
  }
962
- }), cs = /* @__PURE__ */ Vt(us, [["__scopeId", "data-v-c2d862c2"]]);
963
- function fs(t) {
967
+ }), fs = /* @__PURE__ */ Vt(cs, [["__scopeId", "data-v-c2d862c2"]]);
968
+ function ds(t) {
964
969
  t = t.replace(/^#/, ""), t.length === 3 && (t = t.split("").map((b) => b + b).join(""));
965
970
  const e = parseInt(t, 16), a = e >> 16 & 255, h = e >> 8 & 255, I = e & 255;
966
971
  return { r: a, g: h, b: I };
@@ -968,8 +973,8 @@ function fs(t) {
968
973
  function ar(t) {
969
974
  return `rgb(${Math.round(t.r)}, ${Math.round(t.g)}, ${Math.round(t.b)})`;
970
975
  }
971
- function ds(t, e = 11, a = 1, h = 5) {
972
- const I = fs(t);
976
+ function hs(t, e = 11, a = 1, h = 5) {
977
+ const I = ds(t);
973
978
  if (h < 0 || h >= e)
974
979
  throw new Error(`targetIndex必须在0到${e - 1}之间`);
975
980
  const b = [];
@@ -1000,8 +1005,8 @@ function ds(t, e = 11, a = 1, h = 5) {
1000
1005
  }
1001
1006
  return b;
1002
1007
  }
1003
- var hs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1004
- function ps(t) {
1008
+ var ps = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1009
+ function gs(t) {
1005
1010
  if (Object.prototype.hasOwnProperty.call(t, "__esModule")) return t;
1006
1011
  var e = t.default;
1007
1012
  if (typeof e == "function") {
@@ -1035,7 +1040,7 @@ function Ce() {
1035
1040
  }), na;
1036
1041
  }
1037
1042
  var nr = { exports: {} }, ir, sa;
1038
- function gs() {
1043
+ function ys() {
1039
1044
  if (sa) return ir;
1040
1045
  sa = 1;
1041
1046
  var t = {};
@@ -1114,7 +1119,7 @@ var oa;
1114
1119
  function Se() {
1115
1120
  if (oa) return nr.exports;
1116
1121
  oa = 1;
1117
- var t = Ce(), e = gs(), a = nr.exports = t.util = t.util || {};
1122
+ var t = Ce(), e = ys(), a = nr.exports = t.util = t.util || {};
1118
1123
  (function() {
1119
1124
  if (typeof process < "u" && process.nextTick && !process.browser) {
1120
1125
  a.nextTick = process.nextTick, typeof setImmediate == "function" ? a.setImmediate = setImmediate : a.setImmediate = a.nextTick;
@@ -1160,7 +1165,7 @@ function Se() {
1160
1165
  }
1161
1166
  a.nextTick = a.setImmediate;
1162
1167
  })(), a.isNodejs = typeof process < "u" && process.versions && process.versions.node, a.globalScope = (function() {
1163
- return a.isNodejs ? hs : typeof self > "u" ? window : self;
1168
+ return a.isNodejs ? ps : typeof self > "u" ? window : self;
1164
1169
  })(), a.isArray = Array.isArray || function(s) {
1165
1170
  return Object.prototype.toString.call(s) === "[object Array]";
1166
1171
  }, a.isArrayBuffer = function(s) {
@@ -3290,11 +3295,11 @@ function _t() {
3290
3295
  var a = [16843776, 0, 65536, 16843780, 16842756, 66564, 4, 65536, 1024, 16843776, 16843780, 1024, 16778244, 16842756, 16777216, 4, 1028, 16778240, 16778240, 66560, 66560, 16842752, 16842752, 16778244, 65540, 16777220, 16777220, 65540, 0, 1028, 66564, 16777216, 65536, 16843780, 4, 16842752, 16843776, 16777216, 16777216, 1024, 16842756, 65536, 66560, 16777220, 1024, 4, 16778244, 66564, 16843780, 65540, 16842752, 16778244, 16777220, 1028, 66564, 16843776, 1028, 16778240, 16778240, 0, 65540, 66560, 0, 16842756], h = [-2146402272, -2147450880, 32768, 1081376, 1048576, 32, -2146435040, -2147450848, -2147483616, -2146402272, -2146402304, -2147483648, -2147450880, 1048576, 32, -2146435040, 1081344, 1048608, -2147450848, 0, -2147483648, 32768, 1081376, -2146435072, 1048608, -2147483616, 0, 1081344, 32800, -2146402304, -2146435072, 32800, 0, 1081376, -2146435040, 1048576, -2147450848, -2146435072, -2146402304, 32768, -2146435072, -2147450880, 32, -2146402272, 1081376, 32, 32768, -2147483648, 32800, -2146402304, 1048576, -2147483616, 1048608, -2147450848, -2147483616, 1048608, 1081344, 0, -2147450880, 32800, -2147483648, -2146435040, -2146402272, 1081344], I = [520, 134349312, 0, 134348808, 134218240, 0, 131592, 134218240, 131080, 134217736, 134217736, 131072, 134349320, 131080, 134348800, 520, 134217728, 8, 134349312, 512, 131584, 134348800, 134348808, 131592, 134218248, 131584, 131072, 134218248, 8, 134349320, 512, 134217728, 134349312, 134217728, 131080, 520, 131072, 134349312, 134218240, 0, 512, 131080, 134349320, 134218240, 134217736, 512, 0, 134348808, 134218248, 131072, 134217728, 134349320, 8, 131592, 131584, 134217736, 134348800, 134218248, 520, 134348800, 131592, 8, 134348808, 131584], b = [8396801, 8321, 8321, 128, 8396928, 8388737, 8388609, 8193, 0, 8396800, 8396800, 8396929, 129, 0, 8388736, 8388609, 1, 8192, 8388608, 8396801, 128, 8388608, 8193, 8320, 8388737, 1, 8320, 8388736, 8192, 8396928, 8396929, 129, 8388736, 8388609, 8396800, 8396929, 129, 0, 0, 8396800, 8320, 8388736, 8388737, 1, 8396801, 8321, 8321, 128, 8396929, 129, 1, 8192, 8388609, 8193, 8396928, 8388737, 8193, 8320, 8388608, 8396801, 128, 8388608, 8192, 8396928], c = [256, 34078976, 34078720, 1107296512, 524288, 256, 1073741824, 34078720, 1074266368, 524288, 33554688, 1074266368, 1107296512, 1107820544, 524544, 1073741824, 33554432, 1074266112, 1074266112, 0, 1073742080, 1107820800, 1107820800, 33554688, 1107820544, 1073742080, 0, 1107296256, 34078976, 33554432, 1107296256, 524544, 524288, 1107296512, 256, 33554432, 1073741824, 34078720, 1107296512, 1074266368, 33554688, 1073741824, 1107820544, 34078976, 1074266368, 256, 33554432, 1107820544, 1107820800, 524544, 1107296256, 1107820800, 34078720, 0, 1074266112, 1107296256, 524544, 33554688, 1073742080, 524288, 0, 1074266112, 34078976, 1073742080], r = [536870928, 541065216, 16384, 541081616, 541065216, 16, 541081616, 4194304, 536887296, 4210704, 4194304, 536870928, 4194320, 536887296, 536870912, 16400, 0, 4194320, 536887312, 16384, 4210688, 536887312, 16, 541065232, 541065232, 0, 4210704, 541081600, 16400, 4210688, 541081600, 536870912, 536887296, 16, 541065232, 4210688, 541081616, 4194304, 16400, 536870928, 4194304, 536887296, 536870912, 16400, 536870928, 541081616, 4210688, 541065216, 4210704, 541081600, 0, 541065232, 16, 16384, 541065216, 4210704, 16384, 4194320, 536887312, 0, 541081600, 536870912, 4194320, 536887312], y = [2097152, 69206018, 67110914, 0, 2048, 67110914, 2099202, 69208064, 69208066, 2097152, 0, 67108866, 2, 67108864, 69206018, 2050, 67110912, 2099202, 2097154, 67110912, 67108866, 69206016, 69208064, 2097154, 69206016, 2048, 2050, 69208066, 2099200, 2, 67108864, 2099200, 67108864, 2099200, 2097152, 67110914, 67110914, 69206018, 69206018, 2, 2097154, 67108864, 67110912, 2097152, 69208064, 2050, 2099202, 69208064, 2050, 67108866, 69208066, 69206016, 2099200, 0, 2, 69208066, 0, 2099202, 69206016, 2048, 67108866, 67110912, 2048, 2097154], u = [268439616, 4096, 262144, 268701760, 268435456, 268439616, 64, 268435456, 262208, 268697600, 268701760, 266240, 268701696, 266304, 4096, 64, 268697600, 268435520, 268439552, 4160, 266240, 262208, 268697664, 268701696, 4160, 0, 0, 268697664, 268435520, 268439552, 266304, 262144, 266304, 262144, 268701696, 4096, 64, 268697664, 4096, 266304, 268439552, 64, 268435520, 268697600, 268697664, 268435456, 262144, 268439616, 0, 268701760, 262208, 268435520, 268697600, 268439552, 268439616, 0, 268701760, 266240, 266240, 4160, 4160, 262208, 268435456, 268701696];
3291
3296
  function S(l) {
3292
3297
  for (var g = [0, 4, 536870912, 536870916, 65536, 65540, 536936448, 536936452, 512, 516, 536871424, 536871428, 66048, 66052, 536936960, 536936964], C = [0, 1, 1048576, 1048577, 67108864, 67108865, 68157440, 68157441, 256, 257, 1048832, 1048833, 67109120, 67109121, 68157696, 68157697], m = [0, 8, 2048, 2056, 16777216, 16777224, 16779264, 16779272, 0, 8, 2048, 2056, 16777216, 16777224, 16779264, 16779272], s = [0, 2097152, 134217728, 136314880, 8192, 2105344, 134225920, 136323072, 131072, 2228224, 134348800, 136445952, 139264, 2236416, 134356992, 136454144], p = [0, 262144, 16, 262160, 0, 262144, 16, 262160, 4096, 266240, 4112, 266256, 4096, 266240, 4112, 266256], v = [0, 1024, 32, 1056, 0, 1024, 32, 1056, 33554432, 33555456, 33554464, 33555488, 33554432, 33555456, 33554464, 33555488], T = [0, 268435456, 524288, 268959744, 2, 268435458, 524290, 268959746, 0, 268435456, 524288, 268959744, 2, 268435458, 524290, 268959746], R = [0, 65536, 2048, 67584, 536870912, 536936448, 536872960, 536938496, 131072, 196608, 133120, 198656, 537001984, 537067520, 537004032, 537069568], d = [0, 262144, 0, 262144, 2, 262146, 2, 262146, 33554432, 33816576, 33554432, 33816576, 33554434, 33816578, 33554434, 33816578], i = [0, 268435456, 8, 268435464, 0, 268435456, 8, 268435464, 1024, 268436480, 1032, 268436488, 1024, 268436480, 1032, 268436488], n = [0, 32, 0, 32, 1048576, 1048608, 1048576, 1048608, 8192, 8224, 8192, 8224, 1056768, 1056800, 1056768, 1056800], B = [0, 16777216, 512, 16777728, 2097152, 18874368, 2097664, 18874880, 67108864, 83886080, 67109376, 83886592, 69206016, 85983232, 69206528, 85983744], V = [0, 4096, 134217728, 134221824, 524288, 528384, 134742016, 134746112, 16, 4112, 134217744, 134221840, 524304, 528400, 134742032, 134746128], K = [0, 4, 256, 260, 0, 4, 256, 260, 1, 5, 257, 261, 1, 5, 257, 261], D = l.length() > 8 ? 3 : 1, M = [], x = [0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0], G = 0, z, Y = 0; Y < D; Y++) {
3293
- var _ = l.getInt32(), re = l.getInt32();
3294
- z = (_ >>> 4 ^ re) & 252645135, re ^= z, _ ^= z << 4, z = (re >>> -16 ^ _) & 65535, _ ^= z, re ^= z << -16, z = (_ >>> 2 ^ re) & 858993459, re ^= z, _ ^= z << 2, z = (re >>> -16 ^ _) & 65535, _ ^= z, re ^= z << -16, z = (_ >>> 1 ^ re) & 1431655765, re ^= z, _ ^= z << 1, z = (re >>> 8 ^ _) & 16711935, _ ^= z, re ^= z << 8, z = (_ >>> 1 ^ re) & 1431655765, re ^= z, _ ^= z << 1, z = _ << 8 | re >>> 20 & 240, _ = re << 24 | re << 8 & 16711680 | re >>> 8 & 65280 | re >>> 24 & 240, re = z;
3298
+ var _ = l.getInt32(), te = l.getInt32();
3299
+ z = (_ >>> 4 ^ te) & 252645135, te ^= z, _ ^= z << 4, z = (te >>> -16 ^ _) & 65535, _ ^= z, te ^= z << -16, z = (_ >>> 2 ^ te) & 858993459, te ^= z, _ ^= z << 2, z = (te >>> -16 ^ _) & 65535, _ ^= z, te ^= z << -16, z = (_ >>> 1 ^ te) & 1431655765, te ^= z, _ ^= z << 1, z = (te >>> 8 ^ _) & 16711935, _ ^= z, te ^= z << 8, z = (_ >>> 1 ^ te) & 1431655765, te ^= z, _ ^= z << 1, z = _ << 8 | te >>> 20 & 240, _ = te << 24 | te << 8 & 16711680 | te >>> 8 & 65280 | te >>> 24 & 240, te = z;
3295
3300
  for (var le = 0; le < x.length; ++le) {
3296
- x[le] ? (_ = _ << 2 | _ >>> 26, re = re << 2 | re >>> 26) : (_ = _ << 1 | _ >>> 27, re = re << 1 | re >>> 27), _ &= -15, re &= -15;
3297
- var he = g[_ >>> 28] | C[_ >>> 24 & 15] | m[_ >>> 20 & 15] | s[_ >>> 16 & 15] | p[_ >>> 12 & 15] | v[_ >>> 8 & 15] | T[_ >>> 4 & 15], Ee = R[re >>> 28] | d[re >>> 24 & 15] | i[re >>> 20 & 15] | n[re >>> 16 & 15] | B[re >>> 12 & 15] | V[re >>> 8 & 15] | K[re >>> 4 & 15];
3301
+ x[le] ? (_ = _ << 2 | _ >>> 26, te = te << 2 | te >>> 26) : (_ = _ << 1 | _ >>> 27, te = te << 1 | te >>> 27), _ &= -15, te &= -15;
3302
+ var he = g[_ >>> 28] | C[_ >>> 24 & 15] | m[_ >>> 20 & 15] | s[_ >>> 16 & 15] | p[_ >>> 12 & 15] | v[_ >>> 8 & 15] | T[_ >>> 4 & 15], Ee = R[te >>> 28] | d[te >>> 24 & 15] | i[te >>> 20 & 15] | n[te >>> 16 & 15] | B[te >>> 12 & 15] | V[te >>> 8 & 15] | K[te >>> 4 & 15];
3298
3303
  z = (Ee >>> 16 ^ he) & 65535, M[G++] = he ^ z, M[G++] = Ee ^ z << 16;
3299
3304
  }
3300
3305
  }
@@ -3326,10 +3331,10 @@ function _t() {
3326
3331
  }
3327
3332
  return vr;
3328
3333
  }
3329
- const ys = {}, vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3334
+ const vs = {}, ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3330
3335
  __proto__: null,
3331
- default: ys
3332
- }, Symbol.toStringTag, { value: "Module" })), Yr = /* @__PURE__ */ ps(vs);
3336
+ default: vs
3337
+ }, Symbol.toStringTag, { value: "Module" })), Yr = /* @__PURE__ */ gs(ms);
3333
3338
  var mr, ma;
3334
3339
  function Xr() {
3335
3340
  if (ma) return mr;
@@ -4323,7 +4328,7 @@ function $t() {
4323
4328
  function _(A) {
4324
4329
  this.m = A;
4325
4330
  }
4326
- function re(A) {
4331
+ function te(A) {
4327
4332
  return A.s < 0 || A.compareTo(this.m) >= 0 ? A.mod(this.m) : A;
4328
4333
  }
4329
4334
  function le(A) {
@@ -4335,10 +4340,10 @@ function $t() {
4335
4340
  function Ee(A, w, P) {
4336
4341
  A.multiplyTo(w, P), this.reduce(P);
4337
4342
  }
4338
- function Ne(A, w) {
4343
+ function Re(A, w) {
4339
4344
  A.squareTo(w), this.reduce(w);
4340
4345
  }
4341
- _.prototype.convert = re, _.prototype.revert = le, _.prototype.reduce = he, _.prototype.mulTo = Ee, _.prototype.sqrTo = Ne;
4346
+ _.prototype.convert = te, _.prototype.revert = le, _.prototype.reduce = he, _.prototype.mulTo = Ee, _.prototype.sqrTo = Re;
4342
4347
  function $() {
4343
4348
  if (this.t < 1) return 0;
4344
4349
  var A = this.data[0];
@@ -4467,7 +4472,7 @@ function $t() {
4467
4472
  function Ue(A) {
4468
4473
  return this.compareTo(A) > 0 ? this : A;
4469
4474
  }
4470
- function Re(A, w, P) {
4475
+ function Le(A, w, P) {
4471
4476
  var j, W, X = Math.min(A.t, this.t);
4472
4477
  for (j = 0; j < X; ++j) P.data[j] = w(this.data[j], A.data[j]);
4473
4478
  if (A.t < this.t) {
@@ -4759,7 +4764,7 @@ function $t() {
4759
4764
  }
4760
4765
  };
4761
4766
  }
4762
- return a.prototype.chunkSize = H, a.prototype.toRadix = se, a.prototype.fromRadix = ce, a.prototype.fromNumber = me, a.prototype.bitwiseTo = Re, a.prototype.changeBit = Bt, a.prototype.addTo = Q, a.prototype.dMultiply = We, a.prototype.dAddOffset = Ye, a.prototype.multiplyLowerTo = mn, a.prototype.multiplyUpperTo = Cn, a.prototype.modInt = kn, a.prototype.millerRabin = Ln, a.prototype.clone = F, a.prototype.intValue = O, a.prototype.byteValue = J, a.prototype.shortValue = ie, a.prototype.signum = q, a.prototype.toByteArray = de, a.prototype.equals = Te, a.prototype.min = Ve, a.prototype.max = Ue, a.prototype.and = Ae, a.prototype.or = qe, a.prototype.xor = Je, a.prototype.andNot = rt, a.prototype.not = nt, a.prototype.shiftLeft = it, a.prototype.shiftRight = lt, a.prototype.getLowestSetBit = yt, a.prototype.bitCount = At, a.prototype.testBit = Rt, a.prototype.setBit = xe, a.prototype.clearBit = Fe, a.prototype.flipBit = Ge, a.prototype.add = Z, a.prototype.subtract = ae, a.prototype.multiply = pe, a.prototype.divide = be, a.prototype.remainder = Ke, a.prototype.divideAndRemainder = je, a.prototype.modPow = Bn, a.prototype.modInverse = wn, a.prototype.pow = vn, a.prototype.gcd = Tn, a.prototype.isProbablePrime = Rn, br;
4767
+ return a.prototype.chunkSize = H, a.prototype.toRadix = se, a.prototype.fromRadix = ce, a.prototype.fromNumber = me, a.prototype.bitwiseTo = Le, a.prototype.changeBit = Bt, a.prototype.addTo = Q, a.prototype.dMultiply = We, a.prototype.dAddOffset = Ye, a.prototype.multiplyLowerTo = mn, a.prototype.multiplyUpperTo = Cn, a.prototype.modInt = kn, a.prototype.millerRabin = Ln, a.prototype.clone = F, a.prototype.intValue = O, a.prototype.byteValue = J, a.prototype.shortValue = ie, a.prototype.signum = q, a.prototype.toByteArray = de, a.prototype.equals = Te, a.prototype.min = Ve, a.prototype.max = Ue, a.prototype.and = Ae, a.prototype.or = qe, a.prototype.xor = Je, a.prototype.andNot = rt, a.prototype.not = nt, a.prototype.shiftLeft = it, a.prototype.shiftRight = lt, a.prototype.getLowestSetBit = yt, a.prototype.bitCount = At, a.prototype.testBit = Rt, a.prototype.setBit = xe, a.prototype.clearBit = Fe, a.prototype.flipBit = Ge, a.prototype.add = Z, a.prototype.subtract = ae, a.prototype.multiply = pe, a.prototype.divide = be, a.prototype.remainder = Ke, a.prototype.divideAndRemainder = je, a.prototype.modPow = Bn, a.prototype.modInverse = wn, a.prototype.pow = vn, a.prototype.gcd = Tn, a.prototype.isProbablePrime = Rn, br;
4763
4768
  }
4764
4769
  var Ir = { exports: {} }, Ar = { exports: {} }, Aa;
4765
4770
  function qt() {
@@ -5306,8 +5311,8 @@ function er() {
5306
5311
  "algorithm" in i || (i.algorithm = "PRIMEINC");
5307
5312
  var B = new e(null);
5308
5313
  B.fromInt(30);
5309
- for (var V = 0, K = function(_, re) {
5310
- return _ | re;
5314
+ for (var V = 0, K = function(_, te) {
5315
+ return _ | te;
5311
5316
  }, D = +/* @__PURE__ */ new Date(), M, x = 0; i.keys === null && (n <= 0 || x < n); ) {
5312
5317
  if (i.state === 0) {
5313
5318
  var G = i.p === null ? i.pBits : i.qBits, z = G - 1;
@@ -5405,12 +5410,12 @@ function er() {
5405
5410
  G.privateKey
5406
5411
  );
5407
5412
  z.oncomplete = function(Y) {
5408
- var _ = Y.target.result, re = b.privateKeyFromAsn1(
5413
+ var _ = Y.target.result, te = b.privateKeyFromAsn1(
5409
5414
  h.fromDer(t.util.createBuffer(_))
5410
5415
  );
5411
5416
  V(null, {
5412
- privateKey: re,
5413
- publicKey: b.setRsaPublicKey(re.n, re.e)
5417
+ privateKey: te,
5418
+ publicKey: b.setRsaPublicKey(te.n, te.e)
5414
5419
  });
5415
5420
  }, z.onerror = function(Y) {
5416
5421
  V(Y);
@@ -5477,12 +5482,12 @@ function er() {
5477
5482
  z = C(z, B, !0);
5478
5483
  var Y = h.fromDer(z, {
5479
5484
  parseAllBytes: M._parseAllDigestBytes
5480
- }), _ = {}, re = [];
5481
- if (!h.validate(Y, U, _, re)) {
5485
+ }), _ = {}, te = [];
5486
+ if (!h.validate(Y, U, _, te)) {
5482
5487
  var le = new Error(
5483
5488
  "ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value."
5484
5489
  );
5485
- throw le.errors = re, le;
5490
+ throw le.errors = te, le;
5486
5491
  }
5487
5492
  var he = h.derToOid(_.algorithmIdentifier);
5488
5493
  if (!(he === t.oids.md2 || he === t.oids.md5 || he === t.oids.sha1 || he === t.oids.sha224 || he === t.oids.sha256 || he === t.oids.sha384 || he === t.oids.sha512 || he === t.oids["sha512-224"] || he === t.oids["sha512-256"])) {
@@ -5518,7 +5523,7 @@ function er() {
5518
5523
  };
5519
5524
  return G.decrypt = function(z, Y, _) {
5520
5525
  typeof Y == "string" ? Y = Y.toUpperCase() : Y === void 0 && (Y = "RSAES-PKCS1-V1_5");
5521
- var re = b.rsa.decrypt(z, G, !1, !1);
5526
+ var te = b.rsa.decrypt(z, G, !1, !1);
5522
5527
  if (Y === "RSAES-PKCS1-V1_5")
5523
5528
  Y = { decode: C };
5524
5529
  else if (Y === "RSA-OAEP" || Y === "RSAES-OAEP")
@@ -5533,14 +5538,14 @@ function er() {
5533
5538
  } };
5534
5539
  else
5535
5540
  throw new Error('Unsupported encryption scheme: "' + Y + '".');
5536
- return Y.decode(re, G, !1);
5541
+ return Y.decode(te, G, !1);
5537
5542
  }, G.sign = function(z, Y) {
5538
5543
  var _ = !1;
5539
5544
  typeof Y == "string" && (Y = Y.toUpperCase()), Y === void 0 || Y === "RSASSA-PKCS1-V1_5" ? (Y = { encode: E }, _ = 1) : (Y === "NONE" || Y === "NULL" || Y === null) && (Y = { encode: function() {
5540
5545
  return z;
5541
5546
  } }, _ = 1);
5542
- var re = Y.encode(z, G.n.bitLength());
5543
- return b.rsa.encrypt(re, G, _);
5547
+ var te = Y.encode(z, G.n.bitLength());
5548
+ return b.rsa.encrypt(te, G, _);
5544
5549
  }, G;
5545
5550
  }, b.wrapRsaPrivateKey = function(i) {
5546
5551
  return h.create(h.Class.UNIVERSAL, h.Type.SEQUENCE, !0, [
@@ -6236,17 +6241,17 @@ function un() {
6236
6241
  for (var z = Math.ceil(m / T), Y = 1; Y <= z; Y++) {
6237
6242
  var _ = new t.util.ByteBuffer();
6238
6243
  _.putBytes(V.bytes()), _.putBytes(G.bytes());
6239
- for (var re = 0; re < C; re++)
6244
+ for (var te = 0; te < C; te++)
6240
6245
  s.start(), s.update(_.getBytes()), _ = s.digest();
6241
6246
  var le = new t.util.ByteBuffer();
6242
6247
  for (v = 0; v < R; v++)
6243
6248
  le.putByte(_.at(v % T));
6244
6249
  var he = Math.ceil(B / R) + Math.ceil(n / R), Ee = new t.util.ByteBuffer();
6245
6250
  for (p = 0; p < he; p++) {
6246
- var Ne = new t.util.ByteBuffer(G.getBytes(R)), $ = 511;
6251
+ var Re = new t.util.ByteBuffer(G.getBytes(R)), $ = 511;
6247
6252
  for (v = le.length() - 1; v >= 0; v--)
6248
- $ = $ >> 8, $ += le.at(v) + Ne.at(v), Ne.setAt(v, $ & 255);
6249
- Ee.putBuffer(Ne);
6253
+ $ = $ >> 8, $ += le.at(v) + Re.at(v), Re.setAt(v, $ & 255);
6254
+ Ee.putBuffer(Re);
6250
6255
  }
6251
6256
  G = Ee, d.putBuffer(_);
6252
6257
  }
@@ -6754,7 +6759,7 @@ function fn() {
6754
6759
  }, Rr.exports;
6755
6760
  }
6756
6761
  var Lr, La;
6757
- function ms() {
6762
+ function Cs() {
6758
6763
  if (La) return Lr;
6759
6764
  La = 1;
6760
6765
  var t = Ce();
@@ -6831,7 +6836,7 @@ function _r() {
6831
6836
  if (Da) return Nr.exports;
6832
6837
  Da = 1;
6833
6838
  var t = Ce();
6834
- Pt(), Et(), _t(), It(), ms(), Ot(), Ft(), Zr(), er(), Se();
6839
+ Pt(), Et(), _t(), It(), Cs(), Ot(), Ft(), Zr(), er(), Se();
6835
6840
  var e = t.asn1, a = Nr.exports = t.pki = t.pki || {}, h = a.oids, I = {};
6836
6841
  I.CN = h.commonName, I.commonName = "CN", I.C = h.countryName, I.countryName = "C", I.L = h.localityName, I.localityName = "L", I.ST = h.stateOrProvinceName, I.stateOrProvinceName = "ST", I.O = h.organizationName, I.organizationName = "O", I.OU = h.organizationalUnitName, I.organizationalUnitName = "OU", I.E = h.emailAddress, I.emailAddress = "E";
6837
6842
  var b = t.pki.rsa.publicKeyValidator, c = {
@@ -7494,8 +7499,8 @@ function _r() {
7494
7499
  }, D.issuer.addField = function(le) {
7495
7500
  C([le]), D.issuer.attributes.push(le);
7496
7501
  }, D.issuer.attributes = a.RDNAttributesAsArray(n.certIssuer), n.certIssuerUniqueId && (D.issuer.uniqueId = n.certIssuerUniqueId), D.issuer.hash = z.digest().toHex();
7497
- var _ = t.md.sha1.create(), re = e.toDer(n.certSubject);
7498
- return _.update(re.getBytes()), D.subject.getField = function(le) {
7502
+ var _ = t.md.sha1.create(), te = e.toDer(n.certSubject);
7503
+ return _.update(te.getBytes()), D.subject.getField = function(le) {
7499
7504
  return S(D.subject, le);
7500
7505
  }, D.subject.addField = function(le) {
7501
7506
  C([le]), D.subject.attributes.push(le);
@@ -7799,13 +7804,13 @@ function _r() {
7799
7804
  );
7800
7805
  }
7801
7806
  if (d.authorityCertIssuer) {
7802
- var re = [
7807
+ var te = [
7803
7808
  e.create(e.Class.CONTEXT_SPECIFIC, 4, !0, [
7804
7809
  g(d.authorityCertIssuer === !0 ? i.cert.issuer : d.authorityCertIssuer)
7805
7810
  ])
7806
7811
  ];
7807
7812
  M.push(
7808
- e.create(e.Class.CONTEXT_SPECIFIC, 1, !0, re)
7813
+ e.create(e.Class.CONTEXT_SPECIFIC, 1, !0, te)
7809
7814
  );
7810
7815
  }
7811
7816
  if (d.serialNumber) {
@@ -8222,25 +8227,25 @@ function _r() {
8222
8227
  message: "Certificate issuer is invalid.",
8223
8228
  error: a.certificateError.bad_certificate
8224
8229
  }), D === null)
8225
- for (var re = {
8230
+ for (var te = {
8226
8231
  keyUsage: !0,
8227
8232
  basicConstraints: !0
8228
8233
  }, le = 0; D === null && le < x.extensions.length; ++le) {
8229
8234
  var he = x.extensions[le];
8230
- he.critical && !(he.name in re) && (D = {
8235
+ he.critical && !(he.name in te) && (D = {
8231
8236
  message: "Certificate has an unsupported critical extension.",
8232
8237
  error: a.certificateError.unsupported_certificate
8233
8238
  });
8234
8239
  }
8235
8240
  if (D === null && (!K || i.length === 0 && (!G || z))) {
8236
- var Ee = x.getExtension("basicConstraints"), Ne = x.getExtension("keyUsage");
8237
- if (Ne !== null && (!Ne.keyCertSign || Ee === null) && (D = {
8241
+ var Ee = x.getExtension("basicConstraints"), Re = x.getExtension("keyUsage");
8242
+ if (Re !== null && (!Re.keyCertSign || Ee === null) && (D = {
8238
8243
  message: "Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",
8239
8244
  error: a.certificateError.bad_certificate
8240
8245
  }), D === null && Ee !== null && !Ee.cA && (D = {
8241
8246
  message: "Certificate basicConstraints indicates the certificate is not a CA.",
8242
8247
  error: a.certificateError.bad_certificate
8243
- }), D === null && Ne !== null && "pathLenConstraint" in Ee) {
8248
+ }), D === null && Re !== null && "pathLenConstraint" in Ee) {
8244
8249
  var $ = M - 1;
8245
8250
  $ > Ee.pathLenConstraint && (D = {
8246
8251
  message: "Certificate basicConstraints pathLenConstraint violated.",
@@ -8858,7 +8863,7 @@ function dn() {
8858
8863
  // bagAttributes (OPTIONAL)
8859
8864
  T
8860
8865
  ]);
8861
- var re = e.create(e.Class.UNIVERSAL, e.Type.SEQUENCE, !0, [Y]), le = (
8866
+ var te = e.create(e.Class.UNIVERSAL, e.Type.SEQUENCE, !0, [Y]), le = (
8862
8867
  // PKCS#7 ContentInfo
8863
8868
  e.create(e.Class.UNIVERSAL, e.Type.SEQUENCE, !0, [
8864
8869
  // contentType
@@ -8875,7 +8880,7 @@ function dn() {
8875
8880
  e.Class.UNIVERSAL,
8876
8881
  e.Type.OCTETSTRING,
8877
8882
  !1,
8878
- e.toDer(re).getBytes()
8883
+ e.toDer(te).getBytes()
8879
8884
  )
8880
8885
  ])
8881
8886
  ])
@@ -8889,9 +8894,9 @@ function dn() {
8889
8894
  n
8890
8895
  ), Ee;
8891
8896
  if (p.useMac) {
8892
- var d = t.md.sha1.create(), Ne = new t.util.ByteBuffer(
8897
+ var d = t.md.sha1.create(), Re = new t.util.ByteBuffer(
8893
8898
  t.random.getBytes(p.saltSize)
8894
- ), $ = p.count, C = h.generateKey(s, Ne, 3, $, 20), ye = t.hmac.create();
8899
+ ), $ = p.count, C = h.generateKey(s, Re, 3, $, 20), ye = t.hmac.create();
8895
8900
  ye.start(d, C), ye.update(e.toDer(he).getBytes());
8896
8901
  var ee = ye.getMac();
8897
8902
  Ee = e.create(e.Class.UNIVERSAL, e.Type.SEQUENCE, !0, [
@@ -8922,7 +8927,7 @@ function dn() {
8922
8927
  e.Class.UNIVERSAL,
8923
8928
  e.Type.OCTETSTRING,
8924
8929
  !1,
8925
- Ne.getBytes()
8930
+ Re.getBytes()
8926
8931
  ),
8927
8932
  // iterations INTEGER (XXX: Only support count < 65536)
8928
8933
  e.create(
@@ -9701,17 +9706,17 @@ function pn() {
9701
9706
  /*CER*/
9702
9707
  [n, V, K, n, M]
9703
9708
  ];
9704
- var G = r.handleHelloRequest, z = r.handleServerHello, Y = r.handleCertificate, _ = r.handleServerKeyExchange, re = r.handleCertificateRequest, le = r.handleServerHelloDone, he = r.handleFinished, Ee = [];
9709
+ var G = r.handleHelloRequest, z = r.handleServerHello, Y = r.handleCertificate, _ = r.handleServerKeyExchange, te = r.handleCertificateRequest, le = r.handleServerHelloDone, he = r.handleFinished, Ee = [];
9705
9710
  Ee[r.ConnectionEnd.client] = [
9706
9711
  // HR,01,SH,03,04,05,06,07,08,09,10,SC,SK,CR,HD,15,CK,17,18,19,FI
9707
9712
  /*SHE*/
9708
9713
  [n, n, z, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n],
9709
9714
  /*SCE*/
9710
- [G, n, n, n, n, n, n, n, n, n, n, Y, _, re, le, n, n, n, n, n, n],
9715
+ [G, n, n, n, n, n, n, n, n, n, n, Y, _, te, le, n, n, n, n, n, n],
9711
9716
  /*SKE*/
9712
- [G, n, n, n, n, n, n, n, n, n, n, n, _, re, le, n, n, n, n, n, n],
9717
+ [G, n, n, n, n, n, n, n, n, n, n, n, _, te, le, n, n, n, n, n, n],
9713
9718
  /*SCR*/
9714
- [G, n, n, n, n, n, n, n, n, n, n, n, n, re, le, n, n, n, n, n, n],
9719
+ [G, n, n, n, n, n, n, n, n, n, n, n, n, te, le, n, n, n, n, n, n],
9715
9720
  /*SHD*/
9716
9721
  [G, n, n, n, n, n, n, n, n, n, n, n, n, n, le, n, n, n, n, n, n],
9717
9722
  /*SCC*/
@@ -9723,11 +9728,11 @@ function pn() {
9723
9728
  /*SER*/
9724
9729
  [G, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n]
9725
9730
  ];
9726
- var Ne = r.handleClientHello, $ = r.handleClientKeyExchange, ye = r.handleCertificateVerify;
9731
+ var Re = r.handleClientHello, $ = r.handleClientKeyExchange, ye = r.handleCertificateVerify;
9727
9732
  Ee[r.ConnectionEnd.server] = [
9728
9733
  // 01,CH,02,03,04,05,06,07,08,09,10,CC,12,13,14,CV,CK,17,18,19,FI
9729
9734
  /*CHE*/
9730
- [n, Ne, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n],
9735
+ [n, Re, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n, n],
9731
9736
  /*CCE*/
9732
9737
  [n, n, n, n, n, n, n, n, n, n, n, Y, n, n, n, n, n, n, n, n, n],
9733
9738
  /*CKE*/
@@ -10293,7 +10298,7 @@ function pn() {
10293
10298
  return t.tls.prf_tls1 = e, t.tls.hmac_sha1 = a, t.tls.createSessionCache = r.createSessionCache, t.tls.createConnection = r.createConnection, Dr;
10294
10299
  }
10295
10300
  var Ka;
10296
- function Cs() {
10301
+ function Es() {
10297
10302
  if (Ka) return ur.exports;
10298
10303
  Ka = 1;
10299
10304
  var t = Ce();
@@ -10569,7 +10574,7 @@ function gn() {
10569
10574
  ], I = !0;
10570
10575
  }
10571
10576
  function y(u, S, U) {
10572
- for (var E, l, g, C, m, s, p, v, T, R, d, i, n, B, V, K, D, M, x, G, z, Y, _, re, le, he, Ee, Ne, $, ye, ee, Me, ve, f, L, N = U.length(); N >= 128; ) {
10577
+ for (var E, l, g, C, m, s, p, v, T, R, d, i, n, B, V, K, D, M, x, G, z, Y, _, te, le, he, Ee, Re, $, ye, ee, Me, ve, f, L, N = U.length(); N >= 128; ) {
10573
10578
  for ($ = 0; $ < 16; ++$)
10574
10579
  S[$][0] = U.getInt32() >>> 0, S[$][1] = U.getInt32() >>> 0;
10575
10580
  for (; $ < 80; ++$)
@@ -10582,23 +10587,23 @@ function gn() {
10582
10587
  ye >>> 7) >>> 0, C = ((ye << 31 | ee >>> 1) ^ // ROTR 1
10583
10588
  (ye << 24 | ee >>> 8) ^ // ROTR 8
10584
10589
  (ye << 25 | ee >>> 7)) >>> 0, ve = S[$ - 7], L = S[$ - 16], ee = l + ve[1] + C + L[1], S[$][0] = E + ve[0] + g + L[0] + (ee / 4294967296 >>> 0) >>> 0, S[$][1] = ee >>> 0;
10585
- for (n = u[0][0], B = u[0][1], V = u[1][0], K = u[1][1], D = u[2][0], M = u[2][1], x = u[3][0], G = u[3][1], z = u[4][0], Y = u[4][1], _ = u[5][0], re = u[5][1], le = u[6][0], he = u[6][1], Ee = u[7][0], Ne = u[7][1], $ = 0; $ < 80; ++$)
10590
+ for (n = u[0][0], B = u[0][1], V = u[1][0], K = u[1][1], D = u[2][0], M = u[2][1], x = u[3][0], G = u[3][1], z = u[4][0], Y = u[4][1], _ = u[5][0], te = u[5][1], le = u[6][0], he = u[6][1], Ee = u[7][0], Re = u[7][1], $ = 0; $ < 80; ++$)
10586
10591
  p = ((z >>> 14 | Y << 18) ^ // ROTR 14
10587
10592
  (z >>> 18 | Y << 14) ^ // ROTR 18
10588
10593
  (Y >>> 9 | z << 23)) >>> 0, v = ((z << 18 | Y >>> 14) ^ // ROTR 14
10589
10594
  (z << 14 | Y >>> 18) ^ // ROTR 18
10590
- (Y << 23 | z >>> 9)) >>> 0, T = (le ^ z & (_ ^ le)) >>> 0, R = (he ^ Y & (re ^ he)) >>> 0, m = ((n >>> 28 | B << 4) ^ // ROTR 28
10595
+ (Y << 23 | z >>> 9)) >>> 0, T = (le ^ z & (_ ^ le)) >>> 0, R = (he ^ Y & (te ^ he)) >>> 0, m = ((n >>> 28 | B << 4) ^ // ROTR 28
10591
10596
  (B >>> 2 | n << 30) ^ // ROTR 34/(swap + ROTR 2)
10592
10597
  (B >>> 7 | n << 25)) >>> 0, s = ((n << 4 | B >>> 28) ^ // ROTR 28
10593
10598
  (B << 30 | n >>> 2) ^ // ROTR 34/(swap + ROTR 2)
10594
- (B << 25 | n >>> 7)) >>> 0, d = (n & V | D & (n ^ V)) >>> 0, i = (B & K | M & (B ^ K)) >>> 0, ee = Ne + v + R + b[$][1] + S[$][1], E = Ee + p + T + b[$][0] + S[$][0] + (ee / 4294967296 >>> 0) >>> 0, l = ee >>> 0, ee = s + i, g = m + d + (ee / 4294967296 >>> 0) >>> 0, C = ee >>> 0, Ee = le, Ne = he, le = _, he = re, _ = z, re = Y, ee = G + l, z = x + E + (ee / 4294967296 >>> 0) >>> 0, Y = ee >>> 0, x = D, G = M, D = V, M = K, V = n, K = B, ee = l + C, n = E + g + (ee / 4294967296 >>> 0) >>> 0, B = ee >>> 0;
10595
- ee = u[0][1] + B, u[0][0] = u[0][0] + n + (ee / 4294967296 >>> 0) >>> 0, u[0][1] = ee >>> 0, ee = u[1][1] + K, u[1][0] = u[1][0] + V + (ee / 4294967296 >>> 0) >>> 0, u[1][1] = ee >>> 0, ee = u[2][1] + M, u[2][0] = u[2][0] + D + (ee / 4294967296 >>> 0) >>> 0, u[2][1] = ee >>> 0, ee = u[3][1] + G, u[3][0] = u[3][0] + x + (ee / 4294967296 >>> 0) >>> 0, u[3][1] = ee >>> 0, ee = u[4][1] + Y, u[4][0] = u[4][0] + z + (ee / 4294967296 >>> 0) >>> 0, u[4][1] = ee >>> 0, ee = u[5][1] + re, u[5][0] = u[5][0] + _ + (ee / 4294967296 >>> 0) >>> 0, u[5][1] = ee >>> 0, ee = u[6][1] + he, u[6][0] = u[6][0] + le + (ee / 4294967296 >>> 0) >>> 0, u[6][1] = ee >>> 0, ee = u[7][1] + Ne, u[7][0] = u[7][0] + Ee + (ee / 4294967296 >>> 0) >>> 0, u[7][1] = ee >>> 0, N -= 128;
10599
+ (B << 25 | n >>> 7)) >>> 0, d = (n & V | D & (n ^ V)) >>> 0, i = (B & K | M & (B ^ K)) >>> 0, ee = Re + v + R + b[$][1] + S[$][1], E = Ee + p + T + b[$][0] + S[$][0] + (ee / 4294967296 >>> 0) >>> 0, l = ee >>> 0, ee = s + i, g = m + d + (ee / 4294967296 >>> 0) >>> 0, C = ee >>> 0, Ee = le, Re = he, le = _, he = te, _ = z, te = Y, ee = G + l, z = x + E + (ee / 4294967296 >>> 0) >>> 0, Y = ee >>> 0, x = D, G = M, D = V, M = K, V = n, K = B, ee = l + C, n = E + g + (ee / 4294967296 >>> 0) >>> 0, B = ee >>> 0;
10600
+ ee = u[0][1] + B, u[0][0] = u[0][0] + n + (ee / 4294967296 >>> 0) >>> 0, u[0][1] = ee >>> 0, ee = u[1][1] + K, u[1][0] = u[1][0] + V + (ee / 4294967296 >>> 0) >>> 0, u[1][1] = ee >>> 0, ee = u[2][1] + M, u[2][0] = u[2][0] + D + (ee / 4294967296 >>> 0) >>> 0, u[2][1] = ee >>> 0, ee = u[3][1] + G, u[3][0] = u[3][0] + x + (ee / 4294967296 >>> 0) >>> 0, u[3][1] = ee >>> 0, ee = u[4][1] + Y, u[4][0] = u[4][0] + z + (ee / 4294967296 >>> 0) >>> 0, u[4][1] = ee >>> 0, ee = u[5][1] + te, u[5][0] = u[5][0] + _ + (ee / 4294967296 >>> 0) >>> 0, u[5][1] = ee >>> 0, ee = u[6][1] + he, u[6][0] = u[6][0] + le + (ee / 4294967296 >>> 0) >>> 0, u[6][1] = ee >>> 0, ee = u[7][1] + Re, u[7][0] = u[7][0] + Ee + (ee / 4294967296 >>> 0) >>> 0, u[7][1] = ee >>> 0, N -= 128;
10596
10601
  }
10597
10602
  }
10598
10603
  return Vr.exports;
10599
10604
  }
10600
10605
  var Zt = {}, xa;
10601
- function Es() {
10606
+ function Ss() {
10602
10607
  if (xa) return Zt;
10603
10608
  xa = 1;
10604
10609
  var t = Ce();
@@ -10688,12 +10693,12 @@ function Es() {
10688
10693
  }, Zt;
10689
10694
  }
10690
10695
  var Pr, Fa;
10691
- function Ss() {
10696
+ function bs() {
10692
10697
  if (Fa) return Pr;
10693
10698
  Fa = 1;
10694
10699
  var t = Ce();
10695
10700
  $t(), gt(), gn(), Se();
10696
- var e = Es(), a = e.publicKeyValidator, h = e.privateKeyValidator;
10701
+ var e = Ss(), a = e.publicKeyValidator, h = e.privateKeyValidator;
10697
10702
  if (typeof I > "u")
10698
10703
  var I = t.jsbn.BigInteger;
10699
10704
  var b = t.util.ByteBuffer, c = typeof Buffer > "u" ? Uint8Array : Buffer;
@@ -10965,7 +10970,7 @@ function Ss() {
10965
10970
  }
10966
10971
  function p(f, L) {
10967
10972
  var N = [$(), $(), $(), $()], o, k = s(L, 32);
10968
- for (k[0] &= 248, k[31] &= 127, k[31] |= 64, re(N, k), B(f, N), o = 0; o < 32; ++o)
10973
+ for (k[0] &= 248, k[31] &= 127, k[31] |= 64, te(N, k), B(f, N), o = 0; o < 32; ++o)
10969
10974
  L[o + 32] = f[o];
10970
10975
  return 0;
10971
10976
  }
@@ -10978,7 +10983,7 @@ function Ss() {
10978
10983
  for (k = 0; k < 32; ++k)
10979
10984
  f[32 + k] = ie[32 + k];
10980
10985
  var q = s(f.subarray(32), N + 32);
10981
- for (d(q), re(J, q), B(f, J), k = 32; k < 64; ++k)
10986
+ for (d(q), te(J, q), B(f, J), k = 32; k < 64; ++k)
10982
10987
  f[k] = o[k];
10983
10988
  var se = s(f, N + 64);
10984
10989
  for (d(se), k = 32; k < 64; ++k)
@@ -10999,7 +11004,7 @@ function Ss() {
10999
11004
  for (k = 0; k < 32; ++k)
11000
11005
  f[k + 32] = o[k];
11001
11006
  var H = s(f, N);
11002
- if (d(H), _(J, ie, H), re(ie, L.subarray(32)), i(J, ie), B(O, J), N -= 64, G(L, 0, O, 0)) {
11007
+ if (d(H), _(J, ie, H), te(ie, L.subarray(32)), i(J, ie), B(O, J), N -= 64, G(L, 0, O, 0)) {
11003
11008
  for (k = 0; k < N; ++k)
11004
11009
  f[k] = 0;
11005
11010
  return -1;
@@ -11033,7 +11038,7 @@ function Ss() {
11033
11038
  }
11034
11039
  function n(f, L, N) {
11035
11040
  for (var o = 0; o < 4; ++o)
11036
- Ne(f[o], L[o], N);
11041
+ Re(f[o], L[o], N);
11037
11042
  }
11038
11043
  function B(f, L) {
11039
11044
  var N = $(), o = $(), k = $();
@@ -11046,7 +11051,7 @@ function Ss() {
11046
11051
  for (Ee(O), Ee(O), Ee(O), o = 0; o < 2; ++o) {
11047
11052
  for (F[0] = O[0] - 65517, N = 1; N < 15; ++N)
11048
11053
  F[N] = O[N] - 65535 - (F[N - 1] >> 16 & 1), F[N - 1] &= 65535;
11049
- F[15] = O[15] - 32767 - (F[14] >> 16 & 1), k = F[15] >> 16 & 1, F[14] &= 65535, Ne(O, F, 1 - k);
11054
+ F[15] = O[15] - 32767 - (F[14] >> 16 & 1), k = F[15] >> 16 & 1, F[14] &= 65535, Re(O, F, 1 - k);
11050
11055
  }
11051
11056
  for (N = 0; N < 16; N++)
11052
11057
  f[2 * N] = O[N] & 255, f[2 * N + 1] = O[N] >> 8;
@@ -11092,7 +11097,7 @@ function Ss() {
11092
11097
  for (le(f[0], u), le(f[1], S), le(f[2], S), le(f[3], u), k = 255; k >= 0; --k)
11093
11098
  o = N[k / 8 | 0] >> (k & 7) & 1, n(f, L, o), i(L, f), i(f, f), n(f, L, o);
11094
11099
  }
11095
- function re(f, L) {
11100
+ function te(f, L) {
11096
11101
  var N = [$(), $(), $(), $()];
11097
11102
  le(N[0], l), le(N[1], g), le(N[2], S), ve(N[3], l, g), _(f, N, L);
11098
11103
  }
@@ -11116,7 +11121,7 @@ function Ss() {
11116
11121
  N = f[L] + o + 65535, o = Math.floor(N / 65536), f[L] = N - o * 65536;
11117
11122
  f[0] += o - 1 + 37 * (o - 1);
11118
11123
  }
11119
- function Ne(f, L, N) {
11124
+ function Re(f, L, N) {
11120
11125
  for (var o, k = ~(N - 1), F = 0; F < 16; ++F)
11121
11126
  o = k & (f[F] ^ L[F]), f[F] ^= o, L[F] ^= o;
11122
11127
  }
@@ -11139,13 +11144,13 @@ function Ss() {
11139
11144
  ve(f, L, L);
11140
11145
  }
11141
11146
  function ve(f, L, N) {
11142
- var o, k, F = 0, O = 0, J = 0, ie = 0, H = 0, q = 0, se = 0, ce = 0, me = 0, de = 0, Te = 0, Ve = 0, Ue = 0, Re = 0, ke = 0, Ae = 0, Pe = 0, qe = 0, Qe = 0, Je = 0, $e = 0, rt = 0, nt = 0, it = 0, lt = 0, st = 0, yt = 0, vt = 0, At = 0, Rt = 0, Bt = 0, xe = N[0], Fe = N[1], Ge = N[2], Q = N[3], Z = N[4], ae = N[5], pe = N[6], be = N[7], Ke = N[8], je = N[9], We = N[10], Ye = N[11], Oe = N[12], He = N[13], Xe = N[14], Ze = N[15];
11143
- o = L[0], F += o * xe, O += o * Fe, J += o * Ge, ie += o * Q, H += o * Z, q += o * ae, se += o * pe, ce += o * be, me += o * Ke, de += o * je, Te += o * We, Ve += o * Ye, Ue += o * Oe, Re += o * He, ke += o * Xe, Ae += o * Ze, o = L[1], O += o * xe, J += o * Fe, ie += o * Ge, H += o * Q, q += o * Z, se += o * ae, ce += o * pe, me += o * be, de += o * Ke, Te += o * je, Ve += o * We, Ue += o * Ye, Re += o * Oe, ke += o * He, Ae += o * Xe, Pe += o * Ze, o = L[2], J += o * xe, ie += o * Fe, H += o * Ge, q += o * Q, se += o * Z, ce += o * ae, me += o * pe, de += o * be, Te += o * Ke, Ve += o * je, Ue += o * We, Re += o * Ye, ke += o * Oe, Ae += o * He, Pe += o * Xe, qe += o * Ze, o = L[3], ie += o * xe, H += o * Fe, q += o * Ge, se += o * Q, ce += o * Z, me += o * ae, de += o * pe, Te += o * be, Ve += o * Ke, Ue += o * je, Re += o * We, ke += o * Ye, Ae += o * Oe, Pe += o * He, qe += o * Xe, Qe += o * Ze, o = L[4], H += o * xe, q += o * Fe, se += o * Ge, ce += o * Q, me += o * Z, de += o * ae, Te += o * pe, Ve += o * be, Ue += o * Ke, Re += o * je, ke += o * We, Ae += o * Ye, Pe += o * Oe, qe += o * He, Qe += o * Xe, Je += o * Ze, o = L[5], q += o * xe, se += o * Fe, ce += o * Ge, me += o * Q, de += o * Z, Te += o * ae, Ve += o * pe, Ue += o * be, Re += o * Ke, ke += o * je, Ae += o * We, Pe += o * Ye, qe += o * Oe, Qe += o * He, Je += o * Xe, $e += o * Ze, o = L[6], se += o * xe, ce += o * Fe, me += o * Ge, de += o * Q, Te += o * Z, Ve += o * ae, Ue += o * pe, Re += o * be, ke += o * Ke, Ae += o * je, Pe += o * We, qe += o * Ye, Qe += o * Oe, Je += o * He, $e += o * Xe, rt += o * Ze, o = L[7], ce += o * xe, me += o * Fe, de += o * Ge, Te += o * Q, Ve += o * Z, Ue += o * ae, Re += o * pe, ke += o * be, Ae += o * Ke, Pe += o * je, qe += o * We, Qe += o * Ye, Je += o * Oe, $e += o * He, rt += o * Xe, nt += o * Ze, o = L[8], me += o * xe, de += o * Fe, Te += o * Ge, Ve += o * Q, Ue += o * Z, Re += o * ae, ke += o * pe, Ae += o * be, Pe += o * Ke, qe += o * je, Qe += o * We, Je += o * Ye, $e += o * Oe, rt += o * He, nt += o * Xe, it += o * Ze, o = L[9], de += o * xe, Te += o * Fe, Ve += o * Ge, Ue += o * Q, Re += o * Z, ke += o * ae, Ae += o * pe, Pe += o * be, qe += o * Ke, Qe += o * je, Je += o * We, $e += o * Ye, rt += o * Oe, nt += o * He, it += o * Xe, lt += o * Ze, o = L[10], Te += o * xe, Ve += o * Fe, Ue += o * Ge, Re += o * Q, ke += o * Z, Ae += o * ae, Pe += o * pe, qe += o * be, Qe += o * Ke, Je += o * je, $e += o * We, rt += o * Ye, nt += o * Oe, it += o * He, lt += o * Xe, st += o * Ze, o = L[11], Ve += o * xe, Ue += o * Fe, Re += o * Ge, ke += o * Q, Ae += o * Z, Pe += o * ae, qe += o * pe, Qe += o * be, Je += o * Ke, $e += o * je, rt += o * We, nt += o * Ye, it += o * Oe, lt += o * He, st += o * Xe, yt += o * Ze, o = L[12], Ue += o * xe, Re += o * Fe, ke += o * Ge, Ae += o * Q, Pe += o * Z, qe += o * ae, Qe += o * pe, Je += o * be, $e += o * Ke, rt += o * je, nt += o * We, it += o * Ye, lt += o * Oe, st += o * He, yt += o * Xe, vt += o * Ze, o = L[13], Re += o * xe, ke += o * Fe, Ae += o * Ge, Pe += o * Q, qe += o * Z, Qe += o * ae, Je += o * pe, $e += o * be, rt += o * Ke, nt += o * je, it += o * We, lt += o * Ye, st += o * Oe, yt += o * He, vt += o * Xe, At += o * Ze, o = L[14], ke += o * xe, Ae += o * Fe, Pe += o * Ge, qe += o * Q, Qe += o * Z, Je += o * ae, $e += o * pe, rt += o * be, nt += o * Ke, it += o * je, lt += o * We, st += o * Ye, yt += o * Oe, vt += o * He, At += o * Xe, Rt += o * Ze, o = L[15], Ae += o * xe, Pe += o * Fe, qe += o * Ge, Qe += o * Q, Je += o * Z, $e += o * ae, rt += o * pe, nt += o * be, it += o * Ke, lt += o * je, st += o * We, yt += o * Ye, vt += o * Oe, At += o * He, Rt += o * Xe, Bt += o * Ze, F += 38 * Pe, O += 38 * qe, J += 38 * Qe, ie += 38 * Je, H += 38 * $e, q += 38 * rt, se += 38 * nt, ce += 38 * it, me += 38 * lt, de += 38 * st, Te += 38 * yt, Ve += 38 * vt, Ue += 38 * At, Re += 38 * Rt, ke += 38 * Bt, k = 1, o = F + k + 65535, k = Math.floor(o / 65536), F = o - k * 65536, o = O + k + 65535, k = Math.floor(o / 65536), O = o - k * 65536, o = J + k + 65535, k = Math.floor(o / 65536), J = o - k * 65536, o = ie + k + 65535, k = Math.floor(o / 65536), ie = o - k * 65536, o = H + k + 65535, k = Math.floor(o / 65536), H = o - k * 65536, o = q + k + 65535, k = Math.floor(o / 65536), q = o - k * 65536, o = se + k + 65535, k = Math.floor(o / 65536), se = o - k * 65536, o = ce + k + 65535, k = Math.floor(o / 65536), ce = o - k * 65536, o = me + k + 65535, k = Math.floor(o / 65536), me = o - k * 65536, o = de + k + 65535, k = Math.floor(o / 65536), de = o - k * 65536, o = Te + k + 65535, k = Math.floor(o / 65536), Te = o - k * 65536, o = Ve + k + 65535, k = Math.floor(o / 65536), Ve = o - k * 65536, o = Ue + k + 65535, k = Math.floor(o / 65536), Ue = o - k * 65536, o = Re + k + 65535, k = Math.floor(o / 65536), Re = o - k * 65536, o = ke + k + 65535, k = Math.floor(o / 65536), ke = o - k * 65536, o = Ae + k + 65535, k = Math.floor(o / 65536), Ae = o - k * 65536, F += k - 1 + 37 * (k - 1), k = 1, o = F + k + 65535, k = Math.floor(o / 65536), F = o - k * 65536, o = O + k + 65535, k = Math.floor(o / 65536), O = o - k * 65536, o = J + k + 65535, k = Math.floor(o / 65536), J = o - k * 65536, o = ie + k + 65535, k = Math.floor(o / 65536), ie = o - k * 65536, o = H + k + 65535, k = Math.floor(o / 65536), H = o - k * 65536, o = q + k + 65535, k = Math.floor(o / 65536), q = o - k * 65536, o = se + k + 65535, k = Math.floor(o / 65536), se = o - k * 65536, o = ce + k + 65535, k = Math.floor(o / 65536), ce = o - k * 65536, o = me + k + 65535, k = Math.floor(o / 65536), me = o - k * 65536, o = de + k + 65535, k = Math.floor(o / 65536), de = o - k * 65536, o = Te + k + 65535, k = Math.floor(o / 65536), Te = o - k * 65536, o = Ve + k + 65535, k = Math.floor(o / 65536), Ve = o - k * 65536, o = Ue + k + 65535, k = Math.floor(o / 65536), Ue = o - k * 65536, o = Re + k + 65535, k = Math.floor(o / 65536), Re = o - k * 65536, o = ke + k + 65535, k = Math.floor(o / 65536), ke = o - k * 65536, o = Ae + k + 65535, k = Math.floor(o / 65536), Ae = o - k * 65536, F += k - 1 + 37 * (k - 1), f[0] = F, f[1] = O, f[2] = J, f[3] = ie, f[4] = H, f[5] = q, f[6] = se, f[7] = ce, f[8] = me, f[9] = de, f[10] = Te, f[11] = Ve, f[12] = Ue, f[13] = Re, f[14] = ke, f[15] = Ae;
11147
+ var o, k, F = 0, O = 0, J = 0, ie = 0, H = 0, q = 0, se = 0, ce = 0, me = 0, de = 0, Te = 0, Ve = 0, Ue = 0, Le = 0, ke = 0, Ae = 0, Pe = 0, qe = 0, Qe = 0, Je = 0, $e = 0, rt = 0, nt = 0, it = 0, lt = 0, st = 0, yt = 0, vt = 0, At = 0, Rt = 0, Bt = 0, xe = N[0], Fe = N[1], Ge = N[2], Q = N[3], Z = N[4], ae = N[5], pe = N[6], be = N[7], Ke = N[8], je = N[9], We = N[10], Ye = N[11], Oe = N[12], He = N[13], Xe = N[14], Ze = N[15];
11148
+ o = L[0], F += o * xe, O += o * Fe, J += o * Ge, ie += o * Q, H += o * Z, q += o * ae, se += o * pe, ce += o * be, me += o * Ke, de += o * je, Te += o * We, Ve += o * Ye, Ue += o * Oe, Le += o * He, ke += o * Xe, Ae += o * Ze, o = L[1], O += o * xe, J += o * Fe, ie += o * Ge, H += o * Q, q += o * Z, se += o * ae, ce += o * pe, me += o * be, de += o * Ke, Te += o * je, Ve += o * We, Ue += o * Ye, Le += o * Oe, ke += o * He, Ae += o * Xe, Pe += o * Ze, o = L[2], J += o * xe, ie += o * Fe, H += o * Ge, q += o * Q, se += o * Z, ce += o * ae, me += o * pe, de += o * be, Te += o * Ke, Ve += o * je, Ue += o * We, Le += o * Ye, ke += o * Oe, Ae += o * He, Pe += o * Xe, qe += o * Ze, o = L[3], ie += o * xe, H += o * Fe, q += o * Ge, se += o * Q, ce += o * Z, me += o * ae, de += o * pe, Te += o * be, Ve += o * Ke, Ue += o * je, Le += o * We, ke += o * Ye, Ae += o * Oe, Pe += o * He, qe += o * Xe, Qe += o * Ze, o = L[4], H += o * xe, q += o * Fe, se += o * Ge, ce += o * Q, me += o * Z, de += o * ae, Te += o * pe, Ve += o * be, Ue += o * Ke, Le += o * je, ke += o * We, Ae += o * Ye, Pe += o * Oe, qe += o * He, Qe += o * Xe, Je += o * Ze, o = L[5], q += o * xe, se += o * Fe, ce += o * Ge, me += o * Q, de += o * Z, Te += o * ae, Ve += o * pe, Ue += o * be, Le += o * Ke, ke += o * je, Ae += o * We, Pe += o * Ye, qe += o * Oe, Qe += o * He, Je += o * Xe, $e += o * Ze, o = L[6], se += o * xe, ce += o * Fe, me += o * Ge, de += o * Q, Te += o * Z, Ve += o * ae, Ue += o * pe, Le += o * be, ke += o * Ke, Ae += o * je, Pe += o * We, qe += o * Ye, Qe += o * Oe, Je += o * He, $e += o * Xe, rt += o * Ze, o = L[7], ce += o * xe, me += o * Fe, de += o * Ge, Te += o * Q, Ve += o * Z, Ue += o * ae, Le += o * pe, ke += o * be, Ae += o * Ke, Pe += o * je, qe += o * We, Qe += o * Ye, Je += o * Oe, $e += o * He, rt += o * Xe, nt += o * Ze, o = L[8], me += o * xe, de += o * Fe, Te += o * Ge, Ve += o * Q, Ue += o * Z, Le += o * ae, ke += o * pe, Ae += o * be, Pe += o * Ke, qe += o * je, Qe += o * We, Je += o * Ye, $e += o * Oe, rt += o * He, nt += o * Xe, it += o * Ze, o = L[9], de += o * xe, Te += o * Fe, Ve += o * Ge, Ue += o * Q, Le += o * Z, ke += o * ae, Ae += o * pe, Pe += o * be, qe += o * Ke, Qe += o * je, Je += o * We, $e += o * Ye, rt += o * Oe, nt += o * He, it += o * Xe, lt += o * Ze, o = L[10], Te += o * xe, Ve += o * Fe, Ue += o * Ge, Le += o * Q, ke += o * Z, Ae += o * ae, Pe += o * pe, qe += o * be, Qe += o * Ke, Je += o * je, $e += o * We, rt += o * Ye, nt += o * Oe, it += o * He, lt += o * Xe, st += o * Ze, o = L[11], Ve += o * xe, Ue += o * Fe, Le += o * Ge, ke += o * Q, Ae += o * Z, Pe += o * ae, qe += o * pe, Qe += o * be, Je += o * Ke, $e += o * je, rt += o * We, nt += o * Ye, it += o * Oe, lt += o * He, st += o * Xe, yt += o * Ze, o = L[12], Ue += o * xe, Le += o * Fe, ke += o * Ge, Ae += o * Q, Pe += o * Z, qe += o * ae, Qe += o * pe, Je += o * be, $e += o * Ke, rt += o * je, nt += o * We, it += o * Ye, lt += o * Oe, st += o * He, yt += o * Xe, vt += o * Ze, o = L[13], Le += o * xe, ke += o * Fe, Ae += o * Ge, Pe += o * Q, qe += o * Z, Qe += o * ae, Je += o * pe, $e += o * be, rt += o * Ke, nt += o * je, it += o * We, lt += o * Ye, st += o * Oe, yt += o * He, vt += o * Xe, At += o * Ze, o = L[14], ke += o * xe, Ae += o * Fe, Pe += o * Ge, qe += o * Q, Qe += o * Z, Je += o * ae, $e += o * pe, rt += o * be, nt += o * Ke, it += o * je, lt += o * We, st += o * Ye, yt += o * Oe, vt += o * He, At += o * Xe, Rt += o * Ze, o = L[15], Ae += o * xe, Pe += o * Fe, qe += o * Ge, Qe += o * Q, Je += o * Z, $e += o * ae, rt += o * pe, nt += o * be, it += o * Ke, lt += o * je, st += o * We, yt += o * Ye, vt += o * Oe, At += o * He, Rt += o * Xe, Bt += o * Ze, F += 38 * Pe, O += 38 * qe, J += 38 * Qe, ie += 38 * Je, H += 38 * $e, q += 38 * rt, se += 38 * nt, ce += 38 * it, me += 38 * lt, de += 38 * st, Te += 38 * yt, Ve += 38 * vt, Ue += 38 * At, Le += 38 * Rt, ke += 38 * Bt, k = 1, o = F + k + 65535, k = Math.floor(o / 65536), F = o - k * 65536, o = O + k + 65535, k = Math.floor(o / 65536), O = o - k * 65536, o = J + k + 65535, k = Math.floor(o / 65536), J = o - k * 65536, o = ie + k + 65535, k = Math.floor(o / 65536), ie = o - k * 65536, o = H + k + 65535, k = Math.floor(o / 65536), H = o - k * 65536, o = q + k + 65535, k = Math.floor(o / 65536), q = o - k * 65536, o = se + k + 65535, k = Math.floor(o / 65536), se = o - k * 65536, o = ce + k + 65535, k = Math.floor(o / 65536), ce = o - k * 65536, o = me + k + 65535, k = Math.floor(o / 65536), me = o - k * 65536, o = de + k + 65535, k = Math.floor(o / 65536), de = o - k * 65536, o = Te + k + 65535, k = Math.floor(o / 65536), Te = o - k * 65536, o = Ve + k + 65535, k = Math.floor(o / 65536), Ve = o - k * 65536, o = Ue + k + 65535, k = Math.floor(o / 65536), Ue = o - k * 65536, o = Le + k + 65535, k = Math.floor(o / 65536), Le = o - k * 65536, o = ke + k + 65535, k = Math.floor(o / 65536), ke = o - k * 65536, o = Ae + k + 65535, k = Math.floor(o / 65536), Ae = o - k * 65536, F += k - 1 + 37 * (k - 1), k = 1, o = F + k + 65535, k = Math.floor(o / 65536), F = o - k * 65536, o = O + k + 65535, k = Math.floor(o / 65536), O = o - k * 65536, o = J + k + 65535, k = Math.floor(o / 65536), J = o - k * 65536, o = ie + k + 65535, k = Math.floor(o / 65536), ie = o - k * 65536, o = H + k + 65535, k = Math.floor(o / 65536), H = o - k * 65536, o = q + k + 65535, k = Math.floor(o / 65536), q = o - k * 65536, o = se + k + 65535, k = Math.floor(o / 65536), se = o - k * 65536, o = ce + k + 65535, k = Math.floor(o / 65536), ce = o - k * 65536, o = me + k + 65535, k = Math.floor(o / 65536), me = o - k * 65536, o = de + k + 65535, k = Math.floor(o / 65536), de = o - k * 65536, o = Te + k + 65535, k = Math.floor(o / 65536), Te = o - k * 65536, o = Ve + k + 65535, k = Math.floor(o / 65536), Ve = o - k * 65536, o = Ue + k + 65535, k = Math.floor(o / 65536), Ue = o - k * 65536, o = Le + k + 65535, k = Math.floor(o / 65536), Le = o - k * 65536, o = ke + k + 65535, k = Math.floor(o / 65536), ke = o - k * 65536, o = Ae + k + 65535, k = Math.floor(o / 65536), Ae = o - k * 65536, F += k - 1 + 37 * (k - 1), f[0] = F, f[1] = O, f[2] = J, f[3] = ie, f[4] = H, f[5] = q, f[6] = se, f[7] = ce, f[8] = me, f[9] = de, f[10] = Te, f[11] = Ve, f[12] = Ue, f[13] = Le, f[14] = ke, f[15] = Ae;
11144
11149
  }
11145
11150
  return Pr;
11146
11151
  }
11147
11152
  var Or, Ga;
11148
- function bs() {
11153
+ function Is() {
11149
11154
  if (Ga) return Or;
11150
11155
  Ga = 1;
11151
11156
  var t = Ce();
@@ -11189,7 +11194,7 @@ function bs() {
11189
11194
  return Or;
11190
11195
  }
11191
11196
  var Kr, ja;
11192
- function Is() {
11197
+ function As() {
11193
11198
  if (ja) return Kr;
11194
11199
  ja = 1;
11195
11200
  var t = Ce();
@@ -11309,11 +11314,11 @@ function Is() {
11309
11314
  return t.log.consoleLogger = h, Kr;
11310
11315
  }
11311
11316
  var za, qa;
11312
- function As() {
11317
+ function Bs() {
11313
11318
  return qa || (qa = 1, za = It(), Wr(), qt(), an(), gn()), za;
11314
11319
  }
11315
11320
  var Mr = { exports: {} }, Qa;
11316
- function Bs() {
11321
+ function Ts() {
11317
11322
  if (Qa) return Mr.exports;
11318
11323
  Qa = 1;
11319
11324
  var t = Ce();
@@ -12124,7 +12129,7 @@ function Bs() {
12124
12129
  return Mr.exports;
12125
12130
  }
12126
12131
  var xr = { exports: {} }, Ha;
12127
- function Ts() {
12132
+ function ks() {
12128
12133
  if (Ha) return xr.exports;
12129
12134
  Ha = 1;
12130
12135
  var t = Ce();
@@ -12212,31 +12217,31 @@ Private-MAC: ` + i.digest().toHex() + `\r
12212
12217
  return xr.exports;
12213
12218
  }
12214
12219
  var Ja, Wa;
12215
- function ks() {
12216
- return Wa || (Wa = 1, Ja = Ce(), Pt(), Cs(), Et(), Jr(), _t(), Ss(), zt(), bs(), Is(), As(), fn(), Xr(), Ft(), on(), dn(), Bs(), hn(), ln(), nn(), Zr(), gt(), sn(), Ts(), pn(), Se()), Ja;
12220
+ function ws() {
12221
+ return Wa || (Wa = 1, Ja = Ce(), Pt(), Es(), Et(), Jr(), _t(), bs(), zt(), Is(), As(), Bs(), fn(), Xr(), Ft(), on(), dn(), Ts(), hn(), ln(), nn(), Zr(), gt(), sn(), ks(), pn(), Se()), Ja;
12217
12222
  }
12218
- ks();
12219
- const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "复制代码", expand: "展开", collapse: "折叠", copy: "复制", reload: "重新生成", like: "点赞", dislike: "点踩" }, newChat: "创建新对话", placeholder: "请输入消息,按 Enter 发送", loading: "正在生成中,请稍候...", thinking: "正在思考中...", thinked: "已深度思考", darkMode: "暗黑模式", lightMode: "明亮模式", userMessages: "我的提问", noUserMessages: "暂无用户消息", note: "内容由AI生成,无法确保准确性和完整性,仅供参考", empty: "参考npm使用文档,开始你的对话吧。npm地址:https://www.npmjs.com/package/@kernelift/ai-chat", welcome: "欢迎使用AI聊天组件,该工具是由Kernelift开发的开源项目,旨在为用户提供便捷的AI对话体验。" }, yn = {
12220
- chat: ws
12221
- }, Ns = { class: "kernelift-chat-container__box" }, Rs = { class: "kernelift-chat-container__action-header" }, Ls = { class: "kernelift-chat-container__header-actions" }, Us = ["title"], Ds = { class: "material-symbols--dark-mode" }, Vs = { class: "material-symbols--light-mode" }, Ps = ["title"], Os = ["title"], Ks = {
12223
+ ws();
12224
+ const Ns = { button: { think: "深度思考", net: "联网搜索", copyCode: "复制代码", expand: "展开", collapse: "折叠", copy: "复制", reload: "重新生成", like: "点赞", dislike: "点踩" }, newChat: "创建新对话", placeholder: "请输入消息,按 Enter 发送", loading: "正在生成中,请稍候...", thinking: "正在思考中...", thinked: "已深度思考", darkMode: "暗黑模式", lightMode: "明亮模式", userMessages: "我的提问", noUserMessages: "暂无用户消息", note: "内容由AI生成,无法确保准确性和完整性,仅供参考", empty: "参考npm使用文档,开始你的对话吧。npm地址:https://www.npmjs.com/package/@kernelift/ai-chat", welcome: "欢迎使用AI聊天组件,该工具是由Kernelift开发的开源项目,旨在为用户提供便捷的AI对话体验。" }, yn = {
12225
+ chat: Ns
12226
+ }, Rs = { class: "kernelift-chat-container__box" }, Ls = { class: "kernelift-chat-container__action-header" }, Us = { class: "kernelift-chat-container__header-actions" }, Ds = ["title"], Vs = { class: "material-symbols--dark-mode" }, Ps = { class: "material-symbols--light-mode" }, Os = ["title"], Ks = ["title"], Ms = {
12222
12227
  key: 0,
12223
12228
  class: "material-symbols--keyboard-off"
12224
- }, Ms = {
12229
+ }, xs = {
12225
12230
  key: 1,
12226
12231
  class: "material-symbols--keyboard"
12227
- }, xs = ["title"], Fs = { class: "kernelift-chat-container__user-messages-panel" }, Gs = { class: "kernelift-chat-container__user-messages-header" }, js = { class: "kernelift-chat-container__user-messages-list" }, zs = ["onClick"], qs = { class: "kernelift-chat-container__user-message-index" }, Qs = { class: "kernelift-chat-container__user-message-content" }, Hs = {
12232
+ }, Fs = ["title"], Gs = { class: "kernelift-chat-container__user-messages-panel" }, js = { class: "kernelift-chat-container__user-messages-header" }, zs = { class: "kernelift-chat-container__user-messages-list" }, qs = ["onClick"], Qs = { class: "kernelift-chat-container__user-message-index" }, Hs = { class: "kernelift-chat-container__user-message-content" }, Js = {
12228
12233
  key: 0,
12229
12234
  class: "kernelift-chat-container__user-messages-empty"
12230
- }, Js = { class: "kernelift-chat-container__messages-section" }, Ws = { class: "kernelift-chat-container__messages-container" }, Ys = { class: "kernelift-chat-container__messages-list-wrapper" }, Xs = {
12235
+ }, Ws = { class: "kernelift-chat-container__messages-section" }, Ys = { class: "kernelift-chat-container__messages-container" }, Xs = { class: "kernelift-chat-container__messages-list-wrapper" }, Zs = {
12231
12236
  key: 1,
12232
12237
  class: "kernelift-chat-container__empty-state"
12233
- }, Zs = { class: "kernelift-chat-container__empty-text" }, _s = { class: "kernelift-chat-container__empty-text" }, $s = {
12238
+ }, _s = { class: "kernelift-chat-container__empty-text" }, $s = { class: "kernelift-chat-container__empty-text" }, eo = {
12234
12239
  key: 2,
12235
12240
  class: "kernelift-chat-container__next-tips"
12236
- }, eo = ["onClick"], to = ["title"], ro = { class: "kernelift-chat-container__footer-wrapper" }, ao = {
12241
+ }, to = ["onClick"], ro = ["title"], ao = { class: "kernelift-chat-container__footer-wrapper" }, no = {
12237
12242
  key: 0,
12238
12243
  class: "kernelift-chat-container__sender-tools"
12239
- }, no = { class: "kernelift-chat-container__footer-note" }, io = { class: "kernelift-chat-container__workspace-close" }, Fr = 62, so = 300, Ya = 376, oo = 476, lo = /* @__PURE__ */ xt({
12244
+ }, io = { class: "kernelift-chat-container__footer-note" }, so = { class: "kernelift-chat-container__workspace-close" }, Fr = 62, oo = 300, Ya = 376, lo = 476, uo = /* @__PURE__ */ xt({
12240
12245
  __name: "chat-container",
12241
12246
  props: /* @__PURE__ */ bt({
12242
12247
  uuid: { default: "default" },
@@ -12261,6 +12266,7 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12261
12266
  themeMode: { default: "light" },
12262
12267
  enableNet: { type: Boolean },
12263
12268
  enableThink: { type: Boolean },
12269
+ disabledCreateRecord: { type: Boolean, default: !1 },
12264
12270
  onCopy: {},
12265
12271
  i18n: { default: () => yn },
12266
12272
  autoScroll: { type: Boolean, default: !0 },
@@ -12285,18 +12291,18 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12285
12291
  emits: /* @__PURE__ */ bt(["send", "cancel", "clear", "change-record", "change-collapse", "change-theme", "change-aside-width", "change-workspace-width", "click-logo", "bubble-event", "close-workspace", "scroll-bottom"], ["update:messages", "update:modelValue", "update:loading", "update:record-id"]),
12286
12292
  setup(t, { expose: e, emit: a }) {
12287
12293
  Hr((Q) => ({
12288
- v7cb3434f: Q.primaryColor,
12289
- v3c99d7b9: y.value,
12290
- e3615da0: c.value[0],
12291
- e3615d62: c.value[1],
12292
- e3615d24: c.value[2],
12293
- e3615ce6: c.value[3],
12294
- e3615ca8: c.value[4],
12295
- v5e3b87ef: vt.value,
12296
- v7f33443e: At.value,
12297
- v50abfae1: yt.value
12294
+ v6f57cc49: Q.primaryColor,
12295
+ b23f519a: y.value,
12296
+ v69f583aa: c.value[0],
12297
+ v69f583c9: c.value[1],
12298
+ v69f583e8: c.value[2],
12299
+ v69f58407: c.value[3],
12300
+ v69f58426: c.value[4],
12301
+ v2fc78b35: vt.value,
12302
+ v41b0ac90: At.value,
12303
+ v2c522d5b: yt.value
12298
12304
  }));
12299
- const h = t, I = parseFloat(getComputedStyle(document.documentElement).fontSize), b = we(Fr), c = Be(() => ds(h.primaryColor, 5, 0.8, 4));
12305
+ const h = t, I = parseFloat(getComputedStyle(document.documentElement).fontSize), b = we(Fr), c = Be(() => hs(h.primaryColor, 5, 0.8, 4));
12300
12306
  function r(Q) {
12301
12307
  if (!Q || !Q.startsWith("#")) return "0, 0, 0";
12302
12308
  const Z = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(Q);
@@ -12370,21 +12376,21 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12370
12376
  b.value = Fr;
12371
12377
  }
12372
12378
  );
12373
- const re = kt(h.uuid + "__kl-ai-chat_aside-width", h.defaultAsideWidth), le = we(!1), he = we(0), Ee = we(0);
12379
+ const te = kt(h.uuid + "__kl-ai-chat_aside-width", h.defaultAsideWidth), le = we(!1), he = we(0), Ee = we(0);
12374
12380
  mt(
12375
- () => re.value,
12381
+ () => te.value,
12376
12382
  (Q) => {
12377
12383
  s("change-aside-width", Q);
12378
12384
  }
12379
12385
  );
12380
- const Ne = (Q) => {
12381
- le.value = !0, he.value = Q.clientX, Ee.value = re.value, document.body.style.userSelect = "none";
12386
+ const Re = (Q) => {
12387
+ le.value = !0, he.value = Q.clientX, Ee.value = te.value, document.body.style.userSelect = "none";
12382
12388
  }, $ = (Q) => {
12383
12389
  if (!le.value) return;
12384
12390
  const Z = Q.clientX - he.value;
12385
12391
  let ae = Ee.value + Z;
12386
12392
  const pe = Math.max(15.6 * I, 250);
12387
- ae = Math.max(pe, Math.min(700, window.innerWidth - pe, ae)), re.value = ae;
12393
+ ae = Math.max(pe, Math.min(700, window.innerWidth - pe, ae)), te.value = ae;
12388
12394
  }, ye = () => {
12389
12395
  le.value = !1, document.body.style.userSelect = "";
12390
12396
  }, ee = kt(h.uuid + "__kl-ai-chat_workspace-width", 50), Me = we(!1), ve = we(0), f = we(0), L = we(null);
@@ -12444,7 +12450,7 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12444
12450
  function Ue() {
12445
12451
  s("close-workspace");
12446
12452
  }
12447
- function Re(Q) {
12453
+ function Le(Q) {
12448
12454
  U.value = Q;
12449
12455
  }
12450
12456
  function ke() {
@@ -12455,7 +12461,7 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12455
12461
  }
12456
12462
  function Pe(Q) {
12457
12463
  const Z = (/* @__PURE__ */ new Date()).getTime(), ae = Z - G;
12458
- ae < so && ae > 0 && (Q.preventDefault(), Ae()), G = Z;
12464
+ ae < oo && ae > 0 && (Q.preventDefault(), Ae()), G = Z;
12459
12465
  }
12460
12466
  function qe() {
12461
12467
  d.value.length > 0 && (D.value = !D.value);
@@ -12481,7 +12487,7 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12481
12487
  "mobile-aside": H.value
12482
12488
  })), it = Be(() => {
12483
12489
  const Q = {
12484
- width: H.value ? "100%" : q.value ? "0px" : `${re.value}px`,
12490
+ width: H.value ? "100%" : q.value ? "0px" : `${te.value}px`,
12485
12491
  zIndex: q.value && !me.value ? -1 : 99,
12486
12492
  opacity: q.value ? 0 : 1,
12487
12493
  transform: q.value && !H.value ? "translateX(-100%)" : "translateX(0%)"
@@ -12495,7 +12501,7 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12495
12501
  };
12496
12502
  return H.value && (Q.transition = "all 0.2s ease"), Q;
12497
12503
  }), st = Be(() => h.hasSenderTools ? ce.value && h.showSender || h.alwaysShowSenderTools : !1), yt = Be(() => `calc(100% - ${(h.showSender && ce.value ? b.value + 52 : 0) / I}rem - ${(st.value ? 40 : 0) / I}rem - 2rem)`), vt = Be(() => `${h.headerHeight / I}rem`), At = Be(() => `${(h.headerHeight + 8) / I}rem`), Rt = Be(() => ((h.showSender && ce.value ? b.value + 52 : 0) + (st.value ? 40 : 0)) / I + "rem"), Bt = Be(() => (h.markdownClassName || "") + (h.themeMode === "dark" ? " dark" : "")), xe = Be(
12498
- () => B.value > 0 && B.value < oo
12504
+ () => B.value > 0 && B.value < lo
12499
12505
  ), Fe = Be(() => !h.showWorkspace || H.value ? { width: "100%" } : {
12500
12506
  width: `${100 - ee.value}%`,
12501
12507
  minWidth: `${Ya}px`
@@ -12505,7 +12511,7 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12505
12511
  return e({
12506
12512
  isMobile: H,
12507
12513
  collapse: q,
12508
- asideWidth: re,
12514
+ asideWidth: te,
12509
12515
  workspaceWidth: ee,
12510
12516
  scrollToBottom: Y
12511
12517
  }), (Q, Z) => (ue(), fe("div", {
@@ -12514,8 +12520,8 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12514
12520
  }])
12515
12521
  }, [
12516
12522
  ge(Q.$slots, "left-aside", { mobile: H.value }, void 0, !0),
12517
- te("div", Ns, [
12518
- te("aside", {
12523
+ re("div", Rs, [
12524
+ re("aside", {
12519
12525
  class: tt(["kernelift-chat-container__aside", nt.value]),
12520
12526
  style: Nt(it.value),
12521
12527
  onClick: Gr(rt, ["self"])
@@ -12524,7 +12530,7 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12524
12530
  record: g.value,
12525
12531
  mobile: H.value
12526
12532
  }, () => [
12527
- wt(Yi, {
12533
+ wt(Xi, {
12528
12534
  modelValue: g.value,
12529
12535
  "onUpdate:modelValue": Z[0] || (Z[0] = (ae) => g.value = ae),
12530
12536
  style: Nt(lt.value),
@@ -12536,6 +12542,7 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12536
12542
  "has-theme-mode": t.hasThemeMode,
12537
12543
  "action-height": vt.value,
12538
12544
  uuid: t.uuid,
12545
+ "disabled-create-record": t.disabledCreateRecord,
12539
12546
  onClear: Je,
12540
12547
  onChange: T,
12541
12548
  onClickLogo: Z[1] || (Z[1] = (ae) => s("click-logo")),
@@ -12555,29 +12562,30 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12555
12562
  "new-chat-button": ze(({ execute: ae }) => [
12556
12563
  ge(Q.$slots, "new-chat-button", {
12557
12564
  mobile: H.value,
12558
- execute: ae
12565
+ execute: ae,
12566
+ disabled: t.disabledCreateRecord
12559
12567
  }, void 0, !0)
12560
12568
  ]),
12561
12569
  "record-dropdown": ze(() => [
12562
12570
  ge(Q.$slots, "record-dropdown", { mobile: H.value }, void 0, !0)
12563
12571
  ]),
12564
12572
  _: 3
12565
- }, 8, ["modelValue", "style", "data", "theme-mode", "collapse", "actions", "i18n", "has-theme-mode", "action-height", "uuid"])
12573
+ }, 8, ["modelValue", "style", "data", "theme-mode", "collapse", "actions", "i18n", "has-theme-mode", "action-height", "uuid", "disabled-create-record"])
12566
12574
  ], !0)
12567
12575
  ], 6),
12568
12576
  !et(q) && !H.value ? (ue(), fe("div", {
12569
12577
  key: 0,
12570
12578
  class: "kernelift-chat-container__resize-handle",
12571
- onMousedown: Ne
12572
- }, null, 32)) : Le("", !0),
12573
- te("main", {
12579
+ onMousedown: Re
12580
+ }, null, 32)) : Ne("", !0),
12581
+ re("main", {
12574
12582
  ref_key: "mainAreaRef",
12575
12583
  ref: L,
12576
12584
  class: tt(["kernelift-chat-container__main", {
12577
12585
  "kernelift-chat-container__main--flex": t.showWorkspace
12578
12586
  }])
12579
12587
  }, [
12580
- te("div", {
12588
+ re("div", {
12581
12589
  ref_key: "chatAreaRef",
12582
12590
  ref: n,
12583
12591
  class: "kernelift-chat-container__chat-area",
@@ -12593,72 +12601,73 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12593
12601
  record: g.value,
12594
12602
  mobile: H.value
12595
12603
  }, () => [
12596
- ct(wt(cs, { record: g.value }, null, 8, ["record"]), [
12604
+ ct(wt(fs, { record: g.value }, null, 8, ["record"]), [
12597
12605
  [pt, !H.value && !xe.value]
12598
12606
  ])
12599
12607
  ], !0),
12600
- te("div", Rs, [
12608
+ re("div", Ls, [
12601
12609
  et(q) ? (ue(), fe("div", {
12602
12610
  key: 0,
12603
12611
  class: "kernelift-chat-container__logo",
12604
12612
  onClick: Z[3] || (Z[3] = (ae) => s("click-logo"))
12605
12613
  }, [
12606
12614
  ge(Q.$slots, "header-logo", { mobile: H.value }, () => [
12607
- Z[13] || (Z[13] = te("img", {
12615
+ Z[13] || (Z[13] = re("img", {
12608
12616
  src: zr,
12609
12617
  class: "kernelift-chat-container__logo-img"
12610
12618
  }, null, -1))
12611
12619
  ], !0)
12612
- ])) : Le("", !0),
12613
- te("div", Ls, [
12620
+ ])) : Ne("", !0),
12621
+ re("div", Us, [
12614
12622
  t.hasThemeMode && et(q) ? (ue(), fe("div", {
12615
12623
  key: 0,
12616
12624
  class: "kernelift-chat-container__header-action",
12617
12625
  onClick: Z[4] || (Z[4] = (ae) => Te(t.themeMode === "light" ? "dark" : "light")),
12618
12626
  title: t.themeMode === "light" ? t.i18n?.chat?.darkMode ?? "切换到暗黑模式" : t.i18n?.chat?.lightMode ?? "切换到明亮模式"
12619
12627
  }, [
12620
- ct(te("i", Ds, null, 512), [
12628
+ ct(re("i", Vs, null, 512), [
12621
12629
  [pt, t.themeMode === "light"]
12622
12630
  ]),
12623
- ct(te("i", Vs, null, 512), [
12631
+ ct(re("i", Ps, null, 512), [
12624
12632
  [pt, t.themeMode === "dark"]
12625
12633
  ])
12626
- ], 8, Us)) : Le("", !0),
12634
+ ], 8, Ds)) : Ne("", !0),
12627
12635
  et(q) ? (ue(), fe("div", {
12628
12636
  key: 1,
12629
12637
  class: "kernelift-chat-container__header-action",
12630
12638
  onClick: Z[5] || (Z[5] = (ae) => de(!1))
12631
12639
  }, [...Z[14] || (Z[14] = [
12632
- te("i", { class: "material-symbols--left-panel-open-outline" }, null, -1)
12633
- ])])) : Le("", !0),
12640
+ re("i", { class: "material-symbols--left-panel-open-outline" }, null, -1)
12641
+ ])])) : Ne("", !0),
12634
12642
  d.value.length > 0 ? (ue(), fe("div", {
12635
12643
  key: 2,
12636
12644
  class: "kernelift-chat-container__header-action",
12637
12645
  onClick: qe,
12638
12646
  title: t.i18n?.chat?.userMessages ?? "我的提问"
12639
12647
  }, [...Z[15] || (Z[15] = [
12640
- te("i", { class: "material-symbols--article-person" }, null, -1)
12641
- ])], 8, Ps)) : Le("", !0),
12648
+ re("i", { class: "material-symbols--article-person" }, null, -1)
12649
+ ])], 8, Os)) : Ne("", !0),
12642
12650
  t.showSender ? (ue(), fe("div", {
12643
12651
  key: 3,
12644
12652
  class: "kernelift-chat-container__header-action",
12645
12653
  onClick: $e,
12646
12654
  title: et(ce) ? t.i18n?.chat?.hideSender ?? "隐藏输入框" : t.i18n?.chat?.showSender ?? "显示输入框"
12647
12655
  }, [
12648
- et(ce) ? (ue(), fe("i", Ks)) : (ue(), fe("i", Ms))
12649
- ], 8, Os)) : Le("", !0),
12650
- te("div", {
12656
+ et(ce) ? (ue(), fe("i", Ms)) : (ue(), fe("i", xs))
12657
+ ], 8, Ks)) : Ne("", !0),
12658
+ t.disabledCreateRecord ? Ne("", !0) : (ue(), fe("div", {
12659
+ key: 4,
12651
12660
  class: "kernelift-chat-container__header-action",
12652
- onClick: Je,
12653
- title: t.i18n?.chat?.newChat ?? "新建聊天"
12661
+ title: t.i18n?.chat?.newChat ?? "新建聊天",
12662
+ onClick: Je
12654
12663
  }, [...Z[16] || (Z[16] = [
12655
- te("i", { class: "material-symbols--add-circle-outline" }, null, -1)
12656
- ])], 8, xs)
12664
+ re("i", { class: "material-symbols--add-circle-outline" }, null, -1)
12665
+ ])], 8, Fs))
12657
12666
  ]),
12658
12667
  ge(Q.$slots, "collapsed-header-extra", { mobile: H.value }, void 0, !0)
12659
12668
  ]),
12660
12669
  ge(Q.$slots, "header-extra", { mobile: H.value }, void 0, !0)
12661
- ], 32)) : Le("", !0),
12670
+ ], 32)) : Ne("", !0),
12662
12671
  wt(jr, { name: "user-messages-fade" }, {
12663
12672
  default: ze(() => [
12664
12673
  D.value ? (ue(), fe("div", {
@@ -12666,32 +12675,32 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12666
12675
  class: "kernelift-chat-container__user-messages-overlay",
12667
12676
  onClick: Z[8] || (Z[8] = Gr((ae) => D.value = !1, ["self"]))
12668
12677
  }, [
12669
- te("div", Fs, [
12670
- te("div", Gs, [
12671
- te("span", null, De(t.i18n?.chat?.userMessages ?? "我的提问"), 1),
12672
- te("i", {
12678
+ re("div", Gs, [
12679
+ re("div", js, [
12680
+ re("span", null, De(t.i18n?.chat?.userMessages ?? "我的提问"), 1),
12681
+ re("i", {
12673
12682
  class: "material-symbols--close",
12674
12683
  onClick: Z[7] || (Z[7] = (ae) => D.value = !1)
12675
12684
  })
12676
12685
  ]),
12677
- te("div", js, [
12686
+ re("div", zs, [
12678
12687
  (ue(!0), fe(Ut, null, Dt(d.value, (ae, pe) => (ue(), fe("div", {
12679
12688
  key: ae.id,
12680
12689
  class: "kernelift-chat-container__user-message-item",
12681
12690
  onClick: (be) => Qe(ae.id)
12682
12691
  }, [
12683
- te("div", qs, De(pe + 1), 1),
12684
- te("div", Qs, De(ae.content.substring(0, 100)) + De(ae.content.length > 100 ? "..." : ""), 1)
12685
- ], 8, zs))), 128)),
12686
- d.value.length === 0 ? (ue(), fe("div", Hs, De(t.i18n?.chat?.noUserMessages ?? "暂无提问记录"), 1)) : Le("", !0)
12692
+ re("div", Qs, De(pe + 1), 1),
12693
+ re("div", Hs, De(ae.content.substring(0, 100)) + De(ae.content.length > 100 ? "..." : ""), 1)
12694
+ ], 8, qs))), 128)),
12695
+ d.value.length === 0 ? (ue(), fe("div", Js, De(t.i18n?.chat?.noUserMessages ?? "暂无提问记录"), 1)) : Ne("", !0)
12687
12696
  ])
12688
12697
  ])
12689
- ])) : Le("", !0)
12698
+ ])) : Ne("", !0)
12690
12699
  ]),
12691
12700
  _: 1
12692
12701
  }),
12693
- te("section", Js, [
12694
- te("div", Ws, [
12702
+ re("section", Ws, [
12703
+ re("div", Ys, [
12695
12704
  S.value && S.value.length ? (ue(), fe("div", {
12696
12705
  key: 0,
12697
12706
  ref_key: "messagesListRef",
@@ -12699,7 +12708,7 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12699
12708
  class: "kernelift-chat-container__messages-list",
12700
12709
  onScroll: _
12701
12710
  }, [
12702
- te("div", Ys, [
12711
+ re("div", Xs, [
12703
12712
  (ue(!0), fe(Ut, null, Dt(S.value, (ae, pe) => (ue(), Mt(ea, {
12704
12713
  modelValue: S.value[pe],
12705
12714
  "onUpdate:modelValue": (be) => S.value[pe] = be,
@@ -12775,38 +12784,38 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12775
12784
  }, {
12776
12785
  content: ze(() => [
12777
12786
  ge(Q.$slots, "bubble-loading-content", { mobile: H.value }, () => [
12778
- te("div", {
12787
+ re("div", {
12779
12788
  class: tt(["kernelift-chat-container__loading-text", Bt.value])
12780
12789
  }, [
12781
12790
  wt(en, { style: { width: "1.125rem", height: "1.125rem", "margin-right": "0.5rem" } }),
12782
- te("div", null, De(t.i18n?.chat?.loading ?? "正在生成中,请稍候..."), 1)
12791
+ re("div", null, De(t.i18n?.chat?.loading ?? "正在生成中,请稍候..."), 1)
12783
12792
  ], 2)
12784
12793
  ], !0)
12785
12794
  ]),
12786
12795
  _: 3
12787
- }, 8, ["model-value", "i18n", "theme-mode", "markdown-class", "is-mobile", "plugins", "options", "markdown-render", "after-render"])) : Le("", !0)
12796
+ }, 8, ["model-value", "i18n", "theme-mode", "markdown-class", "is-mobile", "plugins", "options", "markdown-render", "after-render"])) : Ne("", !0)
12788
12797
  ])
12789
- ], 544)) : (ue(), fe("div", Xs, [
12798
+ ], 544)) : (ue(), fe("div", Zs, [
12790
12799
  ge(Q.$slots, "empty", { mobile: H.value }, () => [
12791
- te("div", null, [
12792
- Z[17] || (Z[17] = te("div", { class: "kernelift-chat-container__empty-img-wrapper" }, [
12793
- te("img", {
12800
+ re("div", null, [
12801
+ Z[17] || (Z[17] = re("div", { class: "kernelift-chat-container__empty-img-wrapper" }, [
12802
+ re("img", {
12794
12803
  src: zr,
12795
12804
  class: "kernelift-chat-container__empty-img"
12796
12805
  })
12797
12806
  ], -1)),
12798
- te("div", Zs, De(t.i18n?.chat?.welcome ?? "欢迎使用AI聊天组件,该工具是由Kernelift开发的开源项目,旨在为用户提供便捷的AI对话体验。"), 1),
12799
- te("div", _s, De(t.i18n?.chat?.empty ?? "参考npm使用文档,开始你的对话吧。npm地址:https://www.npmjs.com/package/@kernelift/ai-chat"), 1)
12807
+ re("div", _s, De(t.i18n?.chat?.welcome ?? "欢迎使用AI聊天组件,该工具是由Kernelift开发的开源项目,旨在为用户提供便捷的AI对话体验。"), 1),
12808
+ re("div", $s, De(t.i18n?.chat?.empty ?? "参考npm使用文档,开始你的对话吧。npm地址:https://www.npmjs.com/package/@kernelift/ai-chat"), 1)
12800
12809
  ])
12801
12810
  ], !0)
12802
12811
  ])),
12803
- R.value?.length && !H.value && !U.value ? (ue(), fe("div", $s, [
12812
+ R.value?.length && !H.value && !U.value ? (ue(), fe("div", eo, [
12804
12813
  (ue(!0), fe(Ut, null, Dt(R.value, (ae) => (ue(), fe("div", {
12805
12814
  key: ae,
12806
12815
  class: "kernelift-chat-container__next-tip",
12807
- onClick: () => Re(ae)
12808
- }, De(ae), 9, eo))), 128))
12809
- ])) : Le("", !0),
12816
+ onClick: () => Le(ae)
12817
+ }, De(ae), 9, to))), 128))
12818
+ ])) : Ne("", !0),
12810
12819
  wt(jr, { name: "scroll-to-bottom-fade" }, {
12811
12820
  default: ze(() => [
12812
12821
  K.value ? (ue(), fe("div", {
@@ -12815,24 +12824,24 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12815
12824
  onClick: ke,
12816
12825
  title: t.i18n?.chat?.scrollToBottom ?? "滚动到底部"
12817
12826
  }, [...Z[18] || (Z[18] = [
12818
- te("i", { class: "material-symbols--stat-minus-1" }, null, -1)
12819
- ])], 8, to)) : Le("", !0)
12827
+ re("i", { class: "material-symbols--stat-minus-1" }, null, -1)
12828
+ ])], 8, ro)) : Ne("", !0)
12820
12829
  ]),
12821
12830
  _: 1
12822
12831
  })
12823
12832
  ])
12824
12833
  ]),
12825
- te("footer", {
12834
+ re("footer", {
12826
12835
  class: "kernelift-chat-container__footer",
12827
12836
  style: Nt({
12828
12837
  height: Rt.value
12829
12838
  })
12830
12839
  }, [
12831
- te("div", ro, [
12832
- st.value ? (ue(), fe("div", ao, [
12840
+ re("div", ao, [
12841
+ st.value ? (ue(), fe("div", no, [
12833
12842
  ge(Q.$slots, "sender-tools", { mobile: H.value }, void 0, !0)
12834
- ])) : Le("", !0),
12835
- t.showSender && et(ce) ? (ue(), Mt(ss, {
12843
+ ])) : Ne("", !0),
12844
+ t.showSender && et(ce) ? (ue(), Mt(os, {
12836
12845
  key: 1,
12837
12846
  modelValue: U.value,
12838
12847
  "onUpdate:modelValue": Z[9] || (Z[9] = (ae) => U.value = ae),
@@ -12888,8 +12897,8 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12888
12897
  }, void 0, !0)
12889
12898
  ]),
12890
12899
  _: 3
12891
- }, 8, ["modelValue", "enable-net", "enable-think", "has-net-search", "has-thinking", "input-height", "loading", "i18n", "is-mobile"])) : Le("", !0),
12892
- te("div", no, [
12900
+ }, 8, ["modelValue", "enable-net", "enable-think", "has-net-search", "has-thinking", "input-height", "loading", "i18n", "is-mobile"])) : Ne("", !0),
12901
+ re("div", io, [
12893
12902
  ge(Q.$slots, "footer", { mobile: H.value }, () => [
12894
12903
  jt(De(t.i18n?.chat?.note ?? "内容由AI生成,无法确保准确性和完整性,仅供参考"), 1)
12895
12904
  ], !0)
@@ -12903,7 +12912,7 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12903
12912
  "kernelift-chat-container__workspace-resize-handle--dragging": Me.value
12904
12913
  }]),
12905
12914
  onMousedown: N
12906
- }, null, 34)) : Le("", !0),
12915
+ }, null, 34)) : Ne("", !0),
12907
12916
  t.showWorkspace ? (ue(), fe("div", {
12908
12917
  key: 1,
12909
12918
  class: tt(["kernelift-chat-container__workspace", {
@@ -12911,8 +12920,8 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12911
12920
  }]),
12912
12921
  style: Nt(Ge.value)
12913
12922
  }, [
12914
- te("div", io, [
12915
- te("i", {
12923
+ re("div", so, [
12924
+ re("i", {
12916
12925
  class: "material-symbols--close",
12917
12926
  onClick: Z[12] || (Z[12] = (ae) => Ue())
12918
12927
  })
@@ -12921,13 +12930,13 @@ const ws = { button: { think: "深度思考", net: "联网搜索", copyCode: "
12921
12930
  record: g.value,
12922
12931
  mobile: H.value
12923
12932
  }, void 0, !0)
12924
- ], 6)) : Le("", !0)
12933
+ ], 6)) : Ne("", !0)
12925
12934
  ], 2)
12926
12935
  ])
12927
12936
  ], 2));
12928
12937
  }
12929
- }), ho = /* @__PURE__ */ Vt(lo, [["__scopeId", "data-v-b41e1b78"]]);
12930
- class po {
12938
+ }), po = /* @__PURE__ */ Vt(uo, [["__scopeId", "data-v-2f7398ad"]]);
12939
+ class go {
12931
12940
  controller;
12932
12941
  buffer;
12933
12942
  token;
@@ -13028,18 +13037,18 @@ class po {
13028
13037
  this.controller.abort();
13029
13038
  }
13030
13039
  }
13031
- const uo = { button: { think: "Deep Think", net: "Net Search", copyCode: "Copy Code", expand: "Expand Code", collapse: "Collapse Code", copy: "Copy", reload: "Regenerate", like: "Like", dislike: "Dislike" }, newChat: "Create New Chat", placeholder: "Please enter a message and press Enter to send", loading: "Generating, please wait...", thinking: "Thinking...", thinked: "Deep Thought Completed", userMessages: "My Questions", darkMode: "Dark Mode", lightMode: "Light Mode", noUserMessages: "No user messages available", note: "Content generated by AI, accuracy and completeness cannot be guaranteed", empty: "Refer to the npm documentation to start your conversation. NPM link: https://www.npmjs.com/package/@kernelift/ai-chat", welcome: "Welcome to the AI chat component, an open-source project developed by Kernelift, designed to provide users with a convenient AI conversation experience." }, co = {
13032
- chat: uo
13033
- }, go = {
13040
+ const co = { button: { think: "Deep Think", net: "Net Search", copyCode: "Copy Code", expand: "Expand Code", collapse: "Collapse Code", copy: "Copy", reload: "Regenerate", like: "Like", dislike: "Dislike" }, newChat: "Create New Chat", placeholder: "Please enter a message and press Enter to send", loading: "Generating, please wait...", thinking: "Thinking...", thinked: "Deep Thought Completed", userMessages: "My Questions", darkMode: "Dark Mode", lightMode: "Light Mode", noUserMessages: "No user messages available", note: "Content generated by AI, accuracy and completeness cannot be guaranteed", empty: "Refer to the npm documentation to start your conversation. NPM link: https://www.npmjs.com/package/@kernelift/ai-chat", welcome: "Welcome to the AI chat component, an open-source project developed by Kernelift, designed to provide users with a convenient AI conversation experience." }, fo = {
13041
+ chat: co
13042
+ }, yo = {
13034
13043
  "zh-CN": yn,
13035
- "en-US": co
13044
+ "en-US": fo
13036
13045
  };
13037
13046
  export {
13038
13047
  ea as ChatBubble,
13039
- ho as ChatContainer,
13040
- cs as ChatHeader,
13041
- ss as ChatSender,
13042
- po as SSEClient,
13048
+ po as ChatContainer,
13049
+ fs as ChatHeader,
13050
+ os as ChatSender,
13051
+ go as SSEClient,
13043
13052
  ei as ThinkingProcess,
13044
- go as i18nMessages
13053
+ yo as i18nMessages
13045
13054
  };