@sy-design/svelte 1.0.14 → 1.0.15

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.es.js CHANGED
@@ -129,7 +129,7 @@ function Ne(s, e) {
129
129
  function st(s, e) {
130
130
  s.value = e == null ? "" : e;
131
131
  }
132
- function F(s, e, t, n) {
132
+ function N(s, e, t, n) {
133
133
  t == null ? s.style.removeProperty(e) : s.style.setProperty(e, t, "");
134
134
  }
135
135
  function os(s, e, t) {
@@ -2167,7 +2167,7 @@ const Rt = {
2167
2167
  };
2168
2168
  function wi() {
2169
2169
  let s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : tl();
2170
- const e = (H) => wi(H);
2170
+ const e = (F) => wi(F);
2171
2171
  if (e.version = "3.2.3", e.removed = [], !s || !s.document || s.document.nodeType !== Rt.document)
2172
2172
  return e.isSupported = !1, e;
2173
2173
  let {
@@ -2185,8 +2185,8 @@ function wi() {
2185
2185
  trustedTypes: g
2186
2186
  } = s, _ = c.prototype, T = It(_, "cloneNode"), R = It(_, "remove"), L = It(_, "nextSibling"), A = It(_, "childNodes"), w = It(_, "parentNode");
2187
2187
  if (typeof i == "function") {
2188
- const H = t.createElement("template");
2189
- H.content && H.content.ownerDocument && (t = H.content.ownerDocument);
2188
+ const F = t.createElement("template");
2189
+ F.content && F.content.ownerDocument && (t = F.content.ownerDocument);
2190
2190
  }
2191
2191
  let k, y = "";
2192
2192
  const {
@@ -2203,7 +2203,7 @@ function wi() {
2203
2203
  MUSTACHE_EXPR: I,
2204
2204
  ERB_EXPR: C,
2205
2205
  TMPLIT_EXPR: U,
2206
- DATA_ATTR: V,
2206
+ DATA_ATTR: X,
2207
2207
  ARIA_ATTR: ne,
2208
2208
  IS_SCRIPT_OR_DATA: he,
2209
2209
  ATTR_WHITESPACE: He,
@@ -2241,9 +2241,9 @@ function wi() {
2241
2241
  let Ht = null;
2242
2242
  const Bt = Q({}, ["audio", "video", "img", "source", "image", "track"]);
2243
2243
  let yt = null;
2244
- const Ut = Q({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), b = "http://www.w3.org/1998/Math/MathML", N = "http://www.w3.org/2000/svg", X = "http://www.w3.org/1999/xhtml";
2245
- let ce = X, fe = !1, ke = null;
2246
- const xe = Q({}, [b, N, X], hn);
2244
+ const Ut = Q({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), b = "http://www.w3.org/1998/Math/MathML", H = "http://www.w3.org/2000/svg", V = "http://www.w3.org/1999/xhtml";
2245
+ let ce = V, fe = !1, ke = null;
2246
+ const xe = Q({}, [b, H, V], hn);
2247
2247
  let Je = Q({}, ["mi", "mo", "mn", "ms", "mtext"]), Ue = Q({}, ["annotation-xml"]);
2248
2248
  const yi = Q({}, ["title", "style", "font", "a", "script"]);
2249
2249
  let Tt = null;
@@ -2255,7 +2255,7 @@ function wi() {
2255
2255
  let f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2256
2256
  if (!(pt && pt === f)) {
2257
2257
  if ((!f || typeof f != "object") && (f = {}), f = lt(f), Tt = // eslint-disable-next-line unicorn/prefer-includes
2258
- Ti.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? vi : f.PARSER_MEDIA_TYPE, _e = Tt === "application/xhtml+xml" ? hn : Qt, ee = Ge(f, "ALLOWED_TAGS") ? Q({}, f.ALLOWED_TAGS, _e) : qe, se = Ge(f, "ALLOWED_ATTR") ? Q({}, f.ALLOWED_ATTR, _e) : Ae, ke = Ge(f, "ALLOWED_NAMESPACES") ? Q({}, f.ALLOWED_NAMESPACES, hn) : xe, yt = Ge(f, "ADD_URI_SAFE_ATTR") ? Q(lt(Ut), f.ADD_URI_SAFE_ATTR, _e) : Ut, Ht = Ge(f, "ADD_DATA_URI_TAGS") ? Q(lt(Bt), f.ADD_DATA_URI_TAGS, _e) : Bt, nt = Ge(f, "FORBID_CONTENTS") ? Q({}, f.FORBID_CONTENTS, _e) : Ft, Le = Ge(f, "FORBID_TAGS") ? Q({}, f.FORBID_TAGS, _e) : {}, Te = Ge(f, "FORBID_ATTR") ? Q({}, f.FORBID_ATTR, _e) : {}, tt = Ge(f, "USE_PROFILES") ? f.USE_PROFILES : !1, Qe = f.ALLOW_ARIA_ATTR !== !1, P = f.ALLOW_DATA_ATTR !== !1, le = f.ALLOW_UNKNOWN_PROTOCOLS || !1, D = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, q = f.SAFE_FOR_TEMPLATES || !1, me = f.SAFE_FOR_XML !== !1, ge = f.WHOLE_DOCUMENT || !1, et = f.RETURN_DOM || !1, ft = f.RETURN_DOM_FRAGMENT || !1, ht = f.RETURN_TRUSTED_TYPE || !1, De = f.FORCE_BODY || !1, Pt = f.SANITIZE_DOM !== !1, Nt = f.SANITIZE_NAMED_PROPS || !1, bt = f.KEEP_CONTENT !== !1, ot = f.IN_PLACE || !1, Be = f.ALLOWED_URI_REGEXP || _i, ce = f.NAMESPACE || X, Je = f.MATHML_TEXT_INTEGRATION_POINTS || Je, Ue = f.HTML_INTEGRATION_POINTS || Ue, K = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && jn(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (K.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && jn(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (K.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (K.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), q && (P = !1), ft && (et = !0), tt && (ee = Q({}, ws), se = [], tt.html === !0 && (Q(ee, ks), Q(se, bs)), tt.svg === !0 && (Q(ee, pn), Q(se, gn), Q(se, Zt)), tt.svgFilters === !0 && (Q(ee, dn), Q(se, gn), Q(se, Zt)), tt.mathMl === !0 && (Q(ee, mn), Q(se, ys), Q(se, Zt))), f.ADD_TAGS && (ee === qe && (ee = lt(ee)), Q(ee, f.ADD_TAGS, _e)), f.ADD_ATTR && (se === Ae && (se = lt(se)), Q(se, f.ADD_ATTR, _e)), f.ADD_URI_SAFE_ATTR && Q(yt, f.ADD_URI_SAFE_ATTR, _e), f.FORBID_CONTENTS && (nt === Ft && (nt = lt(nt)), Q(nt, f.FORBID_CONTENTS, _e)), bt && (ee["#text"] = !0), ge && Q(ee, ["html", "head", "body"]), ee.table && (Q(ee, ["tbody"]), delete Le.tbody), f.TRUSTED_TYPES_POLICY) {
2258
+ Ti.indexOf(f.PARSER_MEDIA_TYPE) === -1 ? vi : f.PARSER_MEDIA_TYPE, _e = Tt === "application/xhtml+xml" ? hn : Qt, ee = Ge(f, "ALLOWED_TAGS") ? Q({}, f.ALLOWED_TAGS, _e) : qe, se = Ge(f, "ALLOWED_ATTR") ? Q({}, f.ALLOWED_ATTR, _e) : Ae, ke = Ge(f, "ALLOWED_NAMESPACES") ? Q({}, f.ALLOWED_NAMESPACES, hn) : xe, yt = Ge(f, "ADD_URI_SAFE_ATTR") ? Q(lt(Ut), f.ADD_URI_SAFE_ATTR, _e) : Ut, Ht = Ge(f, "ADD_DATA_URI_TAGS") ? Q(lt(Bt), f.ADD_DATA_URI_TAGS, _e) : Bt, nt = Ge(f, "FORBID_CONTENTS") ? Q({}, f.FORBID_CONTENTS, _e) : Ft, Le = Ge(f, "FORBID_TAGS") ? Q({}, f.FORBID_TAGS, _e) : {}, Te = Ge(f, "FORBID_ATTR") ? Q({}, f.FORBID_ATTR, _e) : {}, tt = Ge(f, "USE_PROFILES") ? f.USE_PROFILES : !1, Qe = f.ALLOW_ARIA_ATTR !== !1, P = f.ALLOW_DATA_ATTR !== !1, le = f.ALLOW_UNKNOWN_PROTOCOLS || !1, D = f.ALLOW_SELF_CLOSE_IN_ATTR !== !1, q = f.SAFE_FOR_TEMPLATES || !1, me = f.SAFE_FOR_XML !== !1, ge = f.WHOLE_DOCUMENT || !1, et = f.RETURN_DOM || !1, ft = f.RETURN_DOM_FRAGMENT || !1, ht = f.RETURN_TRUSTED_TYPE || !1, De = f.FORCE_BODY || !1, Pt = f.SANITIZE_DOM !== !1, Nt = f.SANITIZE_NAMED_PROPS || !1, bt = f.KEEP_CONTENT !== !1, ot = f.IN_PLACE || !1, Be = f.ALLOWED_URI_REGEXP || _i, ce = f.NAMESPACE || V, Je = f.MATHML_TEXT_INTEGRATION_POINTS || Je, Ue = f.HTML_INTEGRATION_POINTS || Ue, K = f.CUSTOM_ELEMENT_HANDLING || {}, f.CUSTOM_ELEMENT_HANDLING && jn(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (K.tagNameCheck = f.CUSTOM_ELEMENT_HANDLING.tagNameCheck), f.CUSTOM_ELEMENT_HANDLING && jn(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (K.attributeNameCheck = f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), f.CUSTOM_ELEMENT_HANDLING && typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (K.allowCustomizedBuiltInElements = f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), q && (P = !1), ft && (et = !0), tt && (ee = Q({}, ws), se = [], tt.html === !0 && (Q(ee, ks), Q(se, bs)), tt.svg === !0 && (Q(ee, pn), Q(se, gn), Q(se, Zt)), tt.svgFilters === !0 && (Q(ee, dn), Q(se, gn), Q(se, Zt)), tt.mathMl === !0 && (Q(ee, mn), Q(se, ys), Q(se, Zt))), f.ADD_TAGS && (ee === qe && (ee = lt(ee)), Q(ee, f.ADD_TAGS, _e)), f.ADD_ATTR && (se === Ae && (se = lt(se)), Q(se, f.ADD_ATTR, _e)), f.ADD_URI_SAFE_ATTR && Q(yt, f.ADD_URI_SAFE_ATTR, _e), f.FORBID_CONTENTS && (nt === Ft && (nt = lt(nt)), Q(nt, f.FORBID_CONTENTS, _e)), bt && (ee["#text"] = !0), ge && Q(ee, ["html", "head", "body"]), ee.table && (Q(ee, ["tbody"]), delete Le.tbody), f.TRUSTED_TYPES_POLICY) {
2259
2259
  if (typeof f.TRUSTED_TYPES_POLICY.createHTML != "function")
2260
2260
  throw xt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
2261
2261
  if (typeof f.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -2272,7 +2272,7 @@ function wi() {
2272
2272
  tagName: "template"
2273
2273
  });
2274
2274
  const O = Qt(f.tagName), ae = Qt(E.tagName);
2275
- return ke[f.namespaceURI] ? f.namespaceURI === N ? E.namespaceURI === X ? O === "svg" : E.namespaceURI === b ? O === "svg" && (ae === "annotation-xml" || Je[ae]) : !!Wn[O] : f.namespaceURI === b ? E.namespaceURI === X ? O === "math" : E.namespaceURI === N ? O === "math" && Ue[ae] : !!qn[O] : f.namespaceURI === X ? E.namespaceURI === N && !Ue[ae] || E.namespaceURI === b && !Je[ae] ? !1 : !qn[O] && (yi[O] || !Wn[O]) : !!(Tt === "application/xhtml+xml" && ke[f.namespaceURI]) : !1;
2275
+ return ke[f.namespaceURI] ? f.namespaceURI === H ? E.namespaceURI === V ? O === "svg" : E.namespaceURI === b ? O === "svg" && (ae === "annotation-xml" || Je[ae]) : !!Wn[O] : f.namespaceURI === b ? E.namespaceURI === V ? O === "math" : E.namespaceURI === H ? O === "math" && Ue[ae] : !!qn[O] : f.namespaceURI === V ? E.namespaceURI === H && !Ue[ae] || E.namespaceURI === b && !Je[ae] ? !1 : !qn[O] && (yi[O] || !Wn[O]) : !!(Tt === "application/xhtml+xml" && ke[f.namespaceURI]) : !1;
2276
2276
  }, Ye = function(f) {
2277
2277
  St(e.removed, {
2278
2278
  element: f
@@ -2313,9 +2313,9 @@ function wi() {
2313
2313
  const we = _s(f, /^[\r\n\t ]+/);
2314
2314
  O = we && we[0];
2315
2315
  }
2316
- Tt === "application/xhtml+xml" && ce === X && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
2316
+ Tt === "application/xhtml+xml" && ce === V && (f = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + f + "</body></html>");
2317
2317
  const ae = k ? k.createHTML(f) : f;
2318
- if (ce === X)
2318
+ if (ce === V)
2319
2319
  try {
2320
2320
  E = new m().parseFromString(ae, Tt);
2321
2321
  } catch (we) {
@@ -2328,7 +2328,7 @@ function wi() {
2328
2328
  }
2329
2329
  }
2330
2330
  const ve = E.body || E.documentElement;
2331
- return f && O && ve.insertBefore(t.createTextNode(O), ve.childNodes[0] || null), ce === X ? z.call(E, ge ? "html" : "body")[0] : ge ? E.documentElement : ve;
2331
+ return f && O && ve.insertBefore(t.createTextNode(O), ve.childNodes[0] || null), ce === V ? z.call(E, ge ? "html" : "body")[0] : ge ? E.documentElement : ve;
2332
2332
  }, Yn = function(f) {
2333
2333
  return x.call(
2334
2334
  f.ownerDocument || f,
@@ -2342,8 +2342,8 @@ function wi() {
2342
2342
  }, Zn = function(f) {
2343
2343
  return typeof r == "function" && f instanceof r;
2344
2344
  };
2345
- function Ke(H, f, E) {
2346
- Yt(H, (O) => {
2345
+ function Ke(F, f, E) {
2346
+ Yt(F, (O) => {
2347
2347
  O.call(e, f, E, pt);
2348
2348
  });
2349
2349
  }
@@ -2380,7 +2380,7 @@ function wi() {
2380
2380
  }, Vn = function(f, E, O) {
2381
2381
  if (Pt && (E === "id" || E === "name") && (O in t || O in Ei))
2382
2382
  return !1;
2383
- if (!(P && !Te[E] && Re(V, E))) {
2383
+ if (!(P && !Te[E] && Re(X, E))) {
2384
2384
  if (!(Qe && Re(ne, E))) {
2385
2385
  if (!se[E] || Te[E]) {
2386
2386
  if (
@@ -2461,44 +2461,44 @@ function wi() {
2461
2461
  }
2462
2462
  }
2463
2463
  Ke(B.afterSanitizeAttributes, f, null);
2464
- }, Ai = function H(f) {
2464
+ }, Ai = function F(f) {
2465
2465
  let E = null;
2466
2466
  const O = Yn(f);
2467
2467
  for (Ke(B.beforeSanitizeShadowDOM, f, null); E = O.nextNode(); )
2468
- Ke(B.uponSanitizeShadowNode, E, null), Xn(E), Jn(E), E.content instanceof l && H(E.content);
2468
+ Ke(B.uponSanitizeShadowNode, E, null), Xn(E), Jn(E), E.content instanceof l && F(E.content);
2469
2469
  Ke(B.afterSanitizeShadowDOM, f, null);
2470
2470
  };
2471
- return e.sanitize = function(H) {
2471
+ return e.sanitize = function(F) {
2472
2472
  let f = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, E = null, O = null, ae = null, ve = null;
2473
- if (fe = !H, fe && (H = "<!-->"), typeof H != "string" && !Zn(H))
2474
- if (typeof H.toString == "function") {
2475
- if (H = H.toString(), typeof H != "string")
2473
+ if (fe = !F, fe && (F = "<!-->"), typeof F != "string" && !Zn(F))
2474
+ if (typeof F.toString == "function") {
2475
+ if (F = F.toString(), typeof F != "string")
2476
2476
  throw xt("dirty is not a string, aborting");
2477
2477
  } else
2478
2478
  throw xt("toString is not a function");
2479
2479
  if (!e.isSupported)
2480
- return H;
2481
- if (Me || an(f), e.removed = [], typeof H == "string" && (ot = !1), ot) {
2482
- if (H.nodeName) {
2483
- const Ze = _e(H.nodeName);
2480
+ return F;
2481
+ if (Me || an(f), e.removed = [], typeof F == "string" && (ot = !1), ot) {
2482
+ if (F.nodeName) {
2483
+ const Ze = _e(F.nodeName);
2484
2484
  if (!ee[Ze] || Le[Ze])
2485
2485
  throw xt("root node is forbidden and cannot be sanitized in-place");
2486
2486
  }
2487
- } else if (H instanceof r)
2488
- E = Gn("<!---->"), O = E.ownerDocument.importNode(H, !0), O.nodeType === Rt.element && O.nodeName === "BODY" || O.nodeName === "HTML" ? E = O : E.appendChild(O);
2487
+ } else if (F instanceof r)
2488
+ E = Gn("<!---->"), O = E.ownerDocument.importNode(F, !0), O.nodeType === Rt.element && O.nodeName === "BODY" || O.nodeName === "HTML" ? E = O : E.appendChild(O);
2489
2489
  else {
2490
2490
  if (!et && !q && !ge && // eslint-disable-next-line unicorn/prefer-includes
2491
- H.indexOf("<") === -1)
2492
- return k && ht ? k.createHTML(H) : H;
2493
- if (E = Gn(H), !E)
2491
+ F.indexOf("<") === -1)
2492
+ return k && ht ? k.createHTML(F) : F;
2493
+ if (E = Gn(F), !E)
2494
2494
  return et ? null : ht ? y : "";
2495
2495
  }
2496
2496
  E && De && Ye(E.firstChild);
2497
- const we = Yn(ot ? H : E);
2497
+ const we = Yn(ot ? F : E);
2498
2498
  for (; ae = we.nextNode(); )
2499
2499
  Xn(ae), Jn(ae), ae.content instanceof l && Ai(ae.content);
2500
2500
  if (ot)
2501
- return H;
2501
+ return F;
2502
2502
  if (et) {
2503
2503
  if (ft)
2504
2504
  for (ve = M.call(E.ownerDocument); E.firstChild; )
@@ -2513,20 +2513,20 @@ function wi() {
2513
2513
  ze = At(ze, Ze, " ");
2514
2514
  }), k && ht ? k.createHTML(ze) : ze;
2515
2515
  }, e.setConfig = function() {
2516
- let H = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2517
- an(H), Me = !0;
2516
+ let F = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2517
+ an(F), Me = !0;
2518
2518
  }, e.clearConfig = function() {
2519
2519
  pt = null, Me = !1;
2520
- }, e.isValidAttribute = function(H, f, E) {
2520
+ }, e.isValidAttribute = function(F, f, E) {
2521
2521
  pt || an({});
2522
- const O = _e(H), ae = _e(f);
2522
+ const O = _e(F), ae = _e(f);
2523
2523
  return Vn(O, ae, E);
2524
- }, e.addHook = function(H, f) {
2525
- typeof f == "function" && St(B[H], f);
2526
- }, e.removeHook = function(H) {
2527
- return gs(B[H]);
2528
- }, e.removeHooks = function(H) {
2529
- B[H] = [];
2524
+ }, e.addHook = function(F, f) {
2525
+ typeof f == "function" && St(B[F], f);
2526
+ }, e.removeHook = function(F) {
2527
+ return gs(B[F]);
2528
+ }, e.removeHooks = function(F) {
2529
+ B[F] = [];
2530
2530
  }, e.removeAllHooks = function() {
2531
2531
  B = vs();
2532
2532
  }, e;
@@ -2565,17 +2565,17 @@ function xs(s) {
2565
2565
  ), n;
2566
2566
  return {
2567
2567
  c() {
2568
- e = S("div"), n = ye(t), a(e, "class", "sy-assistant-button-tooltip svelte-1g6fj9a"), F(
2568
+ e = S("div"), n = ye(t), a(e, "class", "sy-assistant-button-tooltip svelte-1g6fj9a"), N(
2569
2569
  e,
2570
2570
  "left",
2571
2571
  /*buttonTooltip*/
2572
2572
  s[9].x + "px"
2573
- ), F(
2573
+ ), N(
2574
2574
  e,
2575
2575
  "top",
2576
2576
  /*buttonTooltip*/
2577
2577
  s[9].y + "px"
2578
- ), F(
2578
+ ), N(
2579
2579
  e,
2580
2580
  "z-index",
2581
2581
  /*zIndex*/
@@ -2589,19 +2589,19 @@ function xs(s) {
2589
2589
  l & /*buttonTooltip*/
2590
2590
  512 && t !== (t = /*buttonTooltip*/
2591
2591
  o[9].text + "") && Ne(n, t), l & /*buttonTooltip*/
2592
- 512 && F(
2592
+ 512 && N(
2593
2593
  e,
2594
2594
  "left",
2595
2595
  /*buttonTooltip*/
2596
2596
  o[9].x + "px"
2597
2597
  ), l & /*buttonTooltip*/
2598
- 512 && F(
2598
+ 512 && N(
2599
2599
  e,
2600
2600
  "top",
2601
2601
  /*buttonTooltip*/
2602
2602
  o[9].y + "px"
2603
2603
  ), l & /*zIndex*/
2604
- 8 && F(
2604
+ 8 && N(
2605
2605
  e,
2606
2606
  "z-index",
2607
2607
  /*zIndex*/
@@ -2775,17 +2775,17 @@ function Cs(s) {
2775
2775
  let e, t, n, o, l, i, r, c, u;
2776
2776
  return {
2777
2777
  c() {
2778
- e = S("div"), t = S("div"), t.textContent = "确认删除此会话?", n = j(), o = S("div"), l = S("button"), l.textContent = "取消", i = j(), r = S("button"), r.textContent = "删除", a(t, "class", "sy-session-confirm-content svelte-1g6fj9a"), a(l, "class", "sy-session-confirm-cancel svelte-1g6fj9a"), a(r, "class", "sy-session-confirm-delete svelte-1g6fj9a"), a(o, "class", "sy-session-confirm-actions svelte-1g6fj9a"), a(e, "class", "sy-session-confirm-popup svelte-1g6fj9a"), F(
2778
+ e = S("div"), t = S("div"), t.textContent = "确认删除此会话?", n = j(), o = S("div"), l = S("button"), l.textContent = "取消", i = j(), r = S("button"), r.textContent = "删除", a(t, "class", "sy-session-confirm-content svelte-1g6fj9a"), a(l, "class", "sy-session-confirm-cancel svelte-1g6fj9a"), a(r, "class", "sy-session-confirm-delete svelte-1g6fj9a"), a(o, "class", "sy-session-confirm-actions svelte-1g6fj9a"), a(e, "class", "sy-session-confirm-popup svelte-1g6fj9a"), N(
2779
2779
  e,
2780
2780
  "left",
2781
2781
  /*confirmPosition*/
2782
2782
  s[8].x + "px"
2783
- ), F(
2783
+ ), N(
2784
2784
  e,
2785
2785
  "top",
2786
2786
  /*confirmPosition*/
2787
2787
  s[8].y + "px"
2788
- ), F(
2788
+ ), N(
2789
2789
  e,
2790
2790
  "z-index",
2791
2791
  /*zIndex*/
@@ -2810,19 +2810,19 @@ function Cs(s) {
2810
2810
  },
2811
2811
  p(h, p) {
2812
2812
  p & /*confirmPosition*/
2813
- 256 && F(
2813
+ 256 && N(
2814
2814
  e,
2815
2815
  "left",
2816
2816
  /*confirmPosition*/
2817
2817
  h[8].x + "px"
2818
2818
  ), p & /*confirmPosition*/
2819
- 256 && F(
2819
+ 256 && N(
2820
2820
  e,
2821
2821
  "top",
2822
2822
  /*confirmPosition*/
2823
2823
  h[8].y + "px"
2824
2824
  ), p & /*zIndex*/
2825
- 8 && F(
2825
+ 8 && N(
2826
2826
  e,
2827
2827
  "z-index",
2828
2828
  /*zIndex*/
@@ -2851,7 +2851,7 @@ function ol(s) {
2851
2851
  );
2852
2852
  return {
2853
2853
  c() {
2854
- e = S("div"), t = S("div"), n = S("h2"), n.textContent = "历史会话", o = j(), l = S("button"), l.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>', i = j(), r = S("div"), c = S("input"), u = j(), h = J("svg"), p = J("circle"), m = J("line"), g = j(), k && k.c(), _ = j(), T = S("div"), x.c(), R = j(), M && M.c(), L = nn(), a(n, "class", "svelte-1g6fj9a"), a(l, "class", "sy-session-close svelte-1g6fj9a"), a(l, "aria-label", "关闭历史会话"), a(t, "class", "sy-session-header svelte-1g6fj9a"), a(c, "type", "text"), a(c, "class", "sy-session-search-input svelte-1g6fj9a"), a(c, "placeholder", "搜索历史会话..."), a(p, "cx", "11"), a(p, "cy", "11"), a(p, "r", "8"), a(m, "x1", "21"), a(m, "y1", "21"), a(m, "x2", "16.65"), a(m, "y2", "16.65"), a(h, "class", "sy-session-search-icon svelte-1g6fj9a"), a(h, "xmlns", "http://www.w3.org/2000/svg"), a(h, "width", "16"), a(h, "height", "16"), a(h, "viewBox", "0 0 24 24"), a(h, "fill", "none"), a(h, "stroke", "currentColor"), a(h, "stroke-width", "2"), a(h, "stroke-linecap", "round"), a(h, "stroke-linejoin", "round"), a(r, "class", "sy-session-search svelte-1g6fj9a"), a(T, "class", "sy-session-list svelte-1g6fj9a"), a(e, "class", "sy-session-history svelte-1g6fj9a"), F(
2854
+ e = S("div"), t = S("div"), n = S("h2"), n.textContent = "历史会话", o = j(), l = S("button"), l.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>', i = j(), r = S("div"), c = S("input"), u = j(), h = J("svg"), p = J("circle"), m = J("line"), g = j(), k && k.c(), _ = j(), T = S("div"), x.c(), R = j(), M && M.c(), L = nn(), a(n, "class", "svelte-1g6fj9a"), a(l, "class", "sy-session-close svelte-1g6fj9a"), a(l, "aria-label", "关闭历史会话"), a(t, "class", "sy-session-header svelte-1g6fj9a"), a(c, "type", "text"), a(c, "class", "sy-session-search-input svelte-1g6fj9a"), a(c, "placeholder", "搜索历史会话..."), a(p, "cx", "11"), a(p, "cy", "11"), a(p, "r", "8"), a(m, "x1", "21"), a(m, "y1", "21"), a(m, "x2", "16.65"), a(m, "y2", "16.65"), a(h, "class", "sy-session-search-icon svelte-1g6fj9a"), a(h, "xmlns", "http://www.w3.org/2000/svg"), a(h, "width", "16"), a(h, "height", "16"), a(h, "viewBox", "0 0 24 24"), a(h, "fill", "none"), a(h, "stroke", "currentColor"), a(h, "stroke-width", "2"), a(h, "stroke-linecap", "round"), a(h, "stroke-linejoin", "round"), a(r, "class", "sy-session-search svelte-1g6fj9a"), a(T, "class", "sy-session-list svelte-1g6fj9a"), a(e, "class", "sy-session-history svelte-1g6fj9a"), N(
2855
2855
  e,
2856
2856
  "z-index",
2857
2857
  /*zIndex*/
@@ -2905,7 +2905,7 @@ function ol(s) {
2905
2905
  s[4]
2906
2906
  ), /*buttonTooltip*/
2907
2907
  s[9] ? k ? k.p(s, Z) : (k = xs(s), k.c(), k.m(e, _)) : k && (k.d(1), k = null), v === (v = y(s)) && x ? x.p(s, Z) : (x.d(1), x = v(s), x && (x.c(), x.m(T, null))), Z & /*zIndex*/
2908
- 8 && F(
2908
+ 8 && N(
2909
2909
  e,
2910
2910
  "z-index",
2911
2911
  /*zIndex*/
@@ -2944,10 +2944,10 @@ function ll(s, e, t) {
2944
2944
  throw new Error("Failed to load sessions");
2945
2945
  const C = yield I.json();
2946
2946
  if (C.code === 0) {
2947
- const U = C.data.sessionList.map((V) => ({
2948
- sessionId: V.sessionId,
2949
- title: V.name,
2950
- timestamp: new Date(V.createDate).getTime()
2947
+ const U = C.data.sessionList.map((X) => ({
2948
+ sessionId: X.sessionId,
2949
+ title: X.name,
2950
+ timestamp: new Date(X.createDate).getTime()
2951
2951
  }));
2952
2952
  t(0, n = [...n, ...U]), h += _n, u = U.length === _n;
2953
2953
  }
@@ -2960,30 +2960,30 @@ function ll(s, e, t) {
2960
2960
  });
2961
2961
  }
2962
2962
  function R(I) {
2963
- const C = I.target, { scrollTop: U, scrollHeight: V, clientHeight: ne } = C;
2964
- V - U - ne < 50 && T();
2963
+ const C = I.target, { scrollTop: U, scrollHeight: X, clientHeight: ne } = C;
2964
+ X - U - ne < 50 && T();
2965
2965
  }
2966
2966
  Rn(() => {
2967
2967
  T();
2968
2968
  });
2969
2969
  let L = null;
2970
2970
  function A(I, C) {
2971
- const V = I.currentTarget.getBoundingClientRect();
2971
+ const X = I.currentTarget.getBoundingClientRect();
2972
2972
  t(9, L = {
2973
2973
  text: C,
2974
- x: V.left + V.width / 2,
2975
- y: V.bottom + 8
2974
+ x: X.left + X.width / 2,
2975
+ y: X.bottom + 8
2976
2976
  });
2977
2977
  }
2978
2978
  function w() {
2979
2979
  t(9, L = null);
2980
2980
  }
2981
2981
  function k(I, C) {
2982
- const V = I.currentTarget.getBoundingClientRect();
2982
+ const X = I.currentTarget.getBoundingClientRect();
2983
2983
  t(8, _ = {
2984
- x: V.left - 16,
2984
+ x: X.left - 16,
2985
2985
  // 靠近删除按钮
2986
- y: V.top + V.height / 2
2986
+ y: X.top + X.height / 2
2987
2987
  }), t(7, g = C);
2988
2988
  }
2989
2989
  function y(I) {
@@ -3004,8 +3004,8 @@ function ll(s, e, t) {
3004
3004
  });
3005
3005
  if (!U.ok)
3006
3006
  throw new Error("Delete request failed");
3007
- const V = yield U.json();
3008
- if (V.code === 0 && V.data.respCode === 0)
3007
+ const X = yield U.json();
3008
+ if (X.code === 0 && X.data.respCode === 0)
3009
3009
  t(0, n = n.map((ne) => be(ie({}, ne), {
3010
3010
  deleting: ne.sessionId === I
3011
3011
  }))), setTimeout(
@@ -3015,7 +3015,7 @@ function ll(s, e, t) {
3015
3015
  300
3016
3016
  );
3017
3017
  else
3018
- throw new Error("Delete failed: " + V.message);
3018
+ throw new Error("Delete failed: " + X.message);
3019
3019
  } catch (C) {
3020
3020
  console.error("Failed to delete session:", C);
3021
3021
  const U = document.querySelector(`[data-session-id="${I}"]`);
@@ -3334,17 +3334,17 @@ function Ns(s) {
3334
3334
  ), n, o;
3335
3335
  return {
3336
3336
  c() {
3337
- e = S("div"), a(e, "class", "sy-assistant-tooltip svelte-mogmt"), a(e, "role", "tooltip"), F(
3337
+ e = S("div"), a(e, "class", "sy-assistant-tooltip svelte-mogmt"), a(e, "role", "tooltip"), N(
3338
3338
  e,
3339
3339
  "left",
3340
3340
  /*tooltipPosition*/
3341
3341
  s[7].x + "px"
3342
- ), F(
3342
+ ), N(
3343
3343
  e,
3344
3344
  "top",
3345
3345
  /*tooltipPosition*/
3346
3346
  s[7].y + "px"
3347
- ), F(
3347
+ ), N(
3348
3348
  e,
3349
3349
  "z-index",
3350
3350
  /*zIndex*/
@@ -3376,19 +3376,19 @@ function Ns(s) {
3376
3376
  i[0] & /*tooltipContent*/
3377
3377
  64 && t !== (t = /*tooltipContent*/
3378
3378
  l[6].replace(/\n/g, "<br>") + "") && (e.innerHTML = t), i[0] & /*tooltipPosition*/
3379
- 128 && F(
3379
+ 128 && N(
3380
3380
  e,
3381
3381
  "left",
3382
3382
  /*tooltipPosition*/
3383
3383
  l[7].x + "px"
3384
3384
  ), i[0] & /*tooltipPosition*/
3385
- 128 && F(
3385
+ 128 && N(
3386
3386
  e,
3387
3387
  "top",
3388
3388
  /*tooltipPosition*/
3389
3389
  l[7].y + "px"
3390
3390
  ), i[0] & /*zIndex*/
3391
- 1 && F(
3391
+ 1 && N(
3392
3392
  e,
3393
3393
  "z-index",
3394
3394
  /*zIndex*/
@@ -3698,17 +3698,17 @@ function Bs(s) {
3698
3698
  }
3699
3699
  return {
3700
3700
  c() {
3701
- e = S("div"), t = S("div"), t.textContent = "反馈意见", n = j(), o = S("textarea"), l = j(), i = S("div"), r = S("button"), r.textContent = "取消", c = j(), u = S("button"), u.textContent = "提交", a(t, "class", "sy-assistant-dislike-title svelte-mogmt"), a(o, "class", "sy-assistant-dislike-input svelte-mogmt"), a(o, "placeholder", "请输入您的反馈意见..."), a(r, "class", "sy-assistant-popup-cancel svelte-mogmt"), a(u, "class", "sy-assistant-popup-submit svelte-mogmt"), a(i, "class", "sy-assistant-popup-actions svelte-mogmt"), a(e, "class", "sy-assistant-dislike-popup svelte-mogmt"), F(
3701
+ e = S("div"), t = S("div"), t.textContent = "反馈意见", n = j(), o = S("textarea"), l = j(), i = S("div"), r = S("button"), r.textContent = "取消", c = j(), u = S("button"), u.textContent = "提交", a(t, "class", "sy-assistant-dislike-title svelte-mogmt"), a(o, "class", "sy-assistant-dislike-input svelte-mogmt"), a(o, "placeholder", "请输入您的反馈意见..."), a(r, "class", "sy-assistant-popup-cancel svelte-mogmt"), a(u, "class", "sy-assistant-popup-submit svelte-mogmt"), a(i, "class", "sy-assistant-popup-actions svelte-mogmt"), a(e, "class", "sy-assistant-dislike-popup svelte-mogmt"), N(
3702
3702
  e,
3703
3703
  "left",
3704
3704
  /*dislikeFeedbackPosition*/
3705
3705
  s[17].x + "px"
3706
- ), F(
3706
+ ), N(
3707
3707
  e,
3708
3708
  "top",
3709
3709
  /*dislikeFeedbackPosition*/
3710
3710
  s[17].y + "px"
3711
- ), F(
3711
+ ), N(
3712
3712
  e,
3713
3713
  "z-index",
3714
3714
  /*zIndex*/
@@ -3739,19 +3739,19 @@ function Bs(s) {
3739
3739
  s[69].id
3740
3740
  ]
3741
3741
  ), R[0] & /*dislikeFeedbackPosition*/
3742
- 131072 && F(
3742
+ 131072 && N(
3743
3743
  e,
3744
3744
  "left",
3745
3745
  /*dislikeFeedbackPosition*/
3746
3746
  s[17].x + "px"
3747
3747
  ), R[0] & /*dislikeFeedbackPosition*/
3748
- 131072 && F(
3748
+ 131072 && N(
3749
3749
  e,
3750
3750
  "top",
3751
3751
  /*dislikeFeedbackPosition*/
3752
3752
  s[17].y + "px"
3753
3753
  ), R[0] & /*zIndex*/
3754
- 1 && F(
3754
+ 1 && N(
3755
3755
  e,
3756
3756
  "z-index",
3757
3757
  /*zIndex*/
@@ -3853,8 +3853,8 @@ function js(s) {
3853
3853
  s[3].trim() || /*isOverLimit*/
3854
3854
  s[20], a(y, "aria-label", "发送消息"), a(p, "class", "sy-assistant-input-container svelte-mogmt"), a(h, "class", "sy-assistant-input-area svelte-mogmt");
3855
3855
  },
3856
- m(U, V) {
3857
- Y(U, e, V), d(e, t), I && I.m(t, null), d(t, n), C && C.m(t, null), d(t, o), d(t, l), d(l, i), d(l, r), d(l, c), Y(U, u, V), Y(U, h, V), d(h, p), d(p, m), d(m, g), d(g, _), st(
3856
+ m(U, X) {
3857
+ Y(U, e, X), d(e, t), I && I.m(t, null), d(t, n), C && C.m(t, null), d(t, o), d(t, l), d(l, i), d(l, r), d(l, c), Y(U, u, X), Y(U, h, X), d(h, p), d(p, m), d(m, g), d(g, _), st(
3858
3858
  _,
3859
3859
  /*message*/
3860
3860
  s[3]
@@ -3927,26 +3927,26 @@ function js(s) {
3927
3927
  )
3928
3928
  ], Z = !0);
3929
3929
  },
3930
- p(U, V) {
3930
+ p(U, X) {
3931
3931
  /*hasScene*/
3932
- U[1] ? I ? I.p(U, V) : (I = Ws(U), I.c(), I.m(t, n)) : I && (I.d(1), I = null), /*hasScene*/
3933
- U[1] ? C && (C.d(1), C = null) : C || (C = Gs(), C.c(), C.m(t, o)), V[0] & /*message*/
3932
+ U[1] ? I ? I.p(U, X) : (I = Ws(U), I.c(), I.m(t, n)) : I && (I.d(1), I = null), /*hasScene*/
3933
+ U[1] ? C && (C.d(1), C = null) : C || (C = Gs(), C.c(), C.m(t, o)), X[0] & /*message*/
3934
3934
  8 && st(
3935
3935
  _,
3936
3936
  /*message*/
3937
3937
  U[3]
3938
- ), V[0] & /*messageLength*/
3938
+ ), X[0] & /*messageLength*/
3939
3939
  16 && Ne(
3940
3940
  L,
3941
3941
  /*messageLength*/
3942
3942
  U[4]
3943
- ), V[0] & /*isOverLimit*/
3943
+ ), X[0] & /*isOverLimit*/
3944
3944
  1048576 && $(
3945
3945
  R,
3946
3946
  "over-limit",
3947
3947
  /*isOverLimit*/
3948
3948
  U[20]
3949
- ), V[0] & /*message, isOverLimit*/
3949
+ ), X[0] & /*message, isOverLimit*/
3950
3950
  1048584 && z !== (z = !/*message*/
3951
3951
  U[3].trim() || /*isOverLimit*/
3952
3952
  U[20]) && (y.disabled = z);
@@ -4064,12 +4064,12 @@ function Ys(s) {
4064
4064
  ), n;
4065
4065
  return {
4066
4066
  c() {
4067
- e = S("div"), n = ye(t), a(e, "class", "sy-assistant-button-tooltip svelte-mogmt"), F(
4067
+ e = S("div"), n = ye(t), a(e, "class", "sy-assistant-button-tooltip svelte-mogmt"), N(
4068
4068
  e,
4069
4069
  "left",
4070
4070
  /*buttonTooltip*/
4071
4071
  s[18].x + "px"
4072
- ), F(
4072
+ ), N(
4073
4073
  e,
4074
4074
  "top",
4075
4075
  /*buttonTooltip*/
@@ -4083,13 +4083,13 @@ function Ys(s) {
4083
4083
  l[0] & /*buttonTooltip*/
4084
4084
  262144 && t !== (t = /*buttonTooltip*/
4085
4085
  o[18].text + "") && Ne(n, t), l[0] & /*buttonTooltip*/
4086
- 262144 && F(
4086
+ 262144 && N(
4087
4087
  e,
4088
4088
  "left",
4089
4089
  /*buttonTooltip*/
4090
4090
  o[18].x + "px"
4091
4091
  ), l[0] & /*buttonTooltip*/
4092
- 262144 && F(
4092
+ 262144 && N(
4093
4093
  e,
4094
4094
  "top",
4095
4095
  /*buttonTooltip*/
@@ -4118,7 +4118,7 @@ function ml(s) {
4118
4118
  );
4119
4119
  return {
4120
4120
  c() {
4121
- e = S("div"), n.c(), o = j(), p && p.c(), l = j(), m && m.c(), i = nn(), a(e, "class", "sy-assistant-chat-container svelte-mogmt"), F(
4121
+ e = S("div"), n.c(), o = j(), p && p.c(), l = j(), m && m.c(), i = nn(), a(e, "class", "sy-assistant-chat-container svelte-mogmt"), N(
4122
4122
  e,
4123
4123
  "z-index",
4124
4124
  /*zIndex*/
@@ -4134,7 +4134,7 @@ function ml(s) {
4134
4134
  u[T] = null;
4135
4135
  }), Ln(), n = u[t], n ? n.p(g, _) : (n = u[t] = c[t](g), n.c()), je(n, 1), n.m(e, o)), /*showHistory*/
4136
4136
  g[19] ? p && (p.d(1), p = null) : p ? p.p(g, _) : (p = js(g), p.c(), p.m(e, null)), (!r || _[0] & /*zIndex*/
4137
- 1) && F(
4137
+ 1) && N(
4138
4138
  e,
4139
4139
  "z-index",
4140
4140
  /*zIndex*/
@@ -4198,19 +4198,19 @@ function _l(s, e, t) {
4198
4198
  });
4199
4199
  function g(b) {
4200
4200
  try {
4201
- const N = te(b);
4202
- return Es.sanitize(N);
4203
- } catch (N) {
4204
- console.warn("Markdown parsing failed, fallback to HTML:", N);
4201
+ const H = te(b);
4202
+ return Es.sanitize(H);
4203
+ } catch (H) {
4204
+ console.warn("Markdown parsing failed, fallback to HTML:", H);
4205
4205
  try {
4206
- const X = b.replace(/\n/g, "<br>").replace(
4206
+ const V = b.replace(/\n/g, "<br>").replace(
4207
4207
  /\*\*(.*?)\*\*/g,
4208
4208
  "<strong>$1</strong>"
4209
4209
  // 处理加粗
4210
4210
  ).replace(/\*(.*?)\*/g, "<em>$1</em>");
4211
- return Es.sanitize(X);
4212
- } catch (X) {
4213
- return console.error("HTML fallback failed:", X), b;
4211
+ return Es.sanitize(V);
4212
+ } catch (V) {
4213
+ return console.error("HTML fallback failed:", V), b;
4214
4214
  }
4215
4215
  }
4216
4216
  }
@@ -4227,20 +4227,19 @@ function _l(s, e, t) {
4227
4227
  let { zIndex: R } = e, { sessionId: L } = e, { hasScene: A } = e, { apiPrefix: w } = e, k = [], y = "";
4228
4228
  function v() {
4229
4229
  return Ee(this, null, function* () {
4230
- var b;
4231
4230
  if (A)
4232
4231
  try {
4233
- const N = yield fetch(`${w}/chat/getSceneList`, {
4232
+ const b = yield fetch(`${w}/chat/getSceneList`, {
4234
4233
  headers: {
4235
4234
  "Auth-Token": `${de()}`,
4236
4235
  Authorization: `bearer ${de()}`
4237
4236
  }
4238
4237
  });
4239
- if (!N.ok) throw new Error("Failed to fetch scenes");
4240
- const X = yield N.json();
4241
- X.status === "success" && ((b = X.data) != null && b.sceneList) && (t(11, k = X.data.sceneList), k.length > 0 && t(12, y = k[0].code));
4242
- } catch (N) {
4243
- console.error("Failed to fetch scenes:", N);
4238
+ if (!b.ok) throw new Error("Failed to fetch scenes");
4239
+ const H = yield b.json();
4240
+ H.code === 0 && (t(11, k = H.data.sceneList || []), k.length > 0 && t(12, y = k[0].code));
4241
+ } catch (b) {
4242
+ console.error("Failed to fetch scenes:", b);
4244
4243
  }
4245
4244
  });
4246
4245
  }
@@ -4254,15 +4253,15 @@ function _l(s, e, t) {
4254
4253
  console.error("No session ID available");
4255
4254
  return;
4256
4255
  }
4257
- const b = Date.now().toString(), N = Date.now().toString() + Math.random().toString().slice(2, 8), X = {
4256
+ const b = Date.now().toString(), H = Date.now().toString() + Math.random().toString().slice(2, 8), V = {
4258
4257
  sessionId: L,
4259
- requestId: N,
4258
+ requestId: H,
4260
4259
  id: b,
4261
4260
  type: "user",
4262
4261
  content: l.trim(),
4263
4262
  timestamp: Date.now()
4264
4263
  };
4265
- t(5, i = [...i, X]);
4264
+ t(5, i = [...i, V]);
4266
4265
  const ce = l.trim();
4267
4266
  t(3, l = "");
4268
4267
  const fe = (Date.now() + 1).toString();
@@ -4270,7 +4269,7 @@ function _l(s, e, t) {
4270
4269
  ...i,
4271
4270
  {
4272
4271
  sessionId: L,
4273
- requestId: N,
4272
+ requestId: H,
4274
4273
  id: fe,
4275
4274
  type: "assistant",
4276
4275
  content: "",
@@ -4287,7 +4286,7 @@ function _l(s, e, t) {
4287
4286
  },
4288
4287
  body: JSON.stringify({
4289
4288
  sessionId: L,
4290
- requestId: N,
4289
+ requestId: H,
4291
4290
  keyword: ce,
4292
4291
  flowId: "1",
4293
4292
  extendKeys: A ? { sceneCode: y } : void 0
@@ -4316,9 +4315,9 @@ function _l(s, e, t) {
4316
4315
  }
4317
4316
  });
4318
4317
  }
4319
- function M(b, N, X) {
4320
- const ce = X.getBoundingClientRect(), fe = _.getBoundingClientRect(), ke = ce.left < fe.width / 2;
4321
- t(6, u = N), t(7, h = {
4318
+ function M(b, H, V) {
4319
+ const ce = V.getBoundingClientRect(), fe = _.getBoundingClientRect(), ke = ce.left < fe.width / 2;
4320
+ t(6, u = H), t(7, h = {
4322
4321
  x: ce.left,
4323
4322
  y: ce.top + ce.height / 2,
4324
4323
  alignRight: ke
@@ -4335,56 +4334,56 @@ function _l(s, e, t) {
4335
4334
  Hi(() => {
4336
4335
  c && c.abort(), p && clearTimeout(p);
4337
4336
  });
4338
- function Z(b, N) {
4337
+ function Z(b, H) {
4339
4338
  return Ee(this, null, function* () {
4340
4339
  try {
4341
- const X = yield fetch(`${w}/file/downloadFile`, {
4340
+ const V = yield fetch(`${w}/file/downloadFile`, {
4342
4341
  method: "POST",
4343
4342
  headers: {
4344
4343
  "Content-Type": "application/json",
4345
4344
  "Auth-Token": `${de()}`,
4346
4345
  Authorization: `bearer ${de()}`
4347
4346
  },
4348
- body: JSON.stringify({ fileName: b, fileUrl: N })
4347
+ body: JSON.stringify({ fileName: b, fileUrl: H })
4349
4348
  });
4350
- if (!X.ok)
4349
+ if (!V.ok)
4351
4350
  throw new Error("Download failed");
4352
- const ce = X.headers.get("content-type") || "application/octet-stream", fe = yield X.blob(), ke = window.URL.createObjectURL(fe), xe = document.createElement("a");
4351
+ const ce = V.headers.get("content-type") || "application/octet-stream", fe = yield V.blob(), ke = window.URL.createObjectURL(fe), xe = document.createElement("a");
4353
4352
  xe.href = ke, xe.download = b, document.body.appendChild(xe), xe.click(), window.URL.revokeObjectURL(ke), document.body.removeChild(xe);
4354
- } catch (X) {
4355
- console.error("Failed to download file:", X);
4353
+ } catch (V) {
4354
+ console.error("Failed to download file:", V);
4356
4355
  }
4357
4356
  });
4358
4357
  }
4359
4358
  let B = {};
4360
- function I(b, N) {
4359
+ function I(b, H) {
4361
4360
  return Ee(this, null, function* () {
4362
4361
  try {
4363
- const X = N.replace(/<br\s*\/?>/g, `
4362
+ const V = H.replace(/<br\s*\/?>/g, `
4364
4363
  `).replace(
4365
4364
  /\*\*(.*?)\*\*/g,
4366
4365
  "$1"
4367
4366
  // 移除加粗标记
4368
4367
  ).replace(/###/g, "").trim();
4369
- yield navigator.clipboard.writeText(X), t(13, B[b] = !0, B), setTimeout(
4368
+ yield navigator.clipboard.writeText(V), t(13, B[b] = !0, B), setTimeout(
4370
4369
  () => {
4371
4370
  t(13, B[b] = !1, B), t(13, B);
4372
4371
  },
4373
4372
  1500
4374
4373
  );
4375
- } catch (X) {
4376
- console.error("Failed to copy:", X);
4374
+ } catch (V) {
4375
+ console.error("Failed to copy:", V);
4377
4376
  }
4378
4377
  });
4379
4378
  }
4380
- let C = {}, U = {}, V = !1;
4381
- function ne(b, N) {
4379
+ let C = {}, U = {}, X = !1;
4380
+ function ne(b, H) {
4382
4381
  return Ee(this, null, function* () {
4383
- if (C[b] === N) {
4382
+ if (C[b] === H) {
4384
4383
  t(14, C[b] = null, C), t(14, C);
4385
4384
  return;
4386
4385
  }
4387
- if (t(14, C[b] = N, C), t(14, C), N === "like")
4386
+ if (t(14, C[b] = H, C), t(14, C), H === "like")
4388
4387
  try {
4389
4388
  if (!(yield fetch(`${w}/chat/record/feedback`, {
4390
4389
  method: "POST",
@@ -4401,17 +4400,17 @@ function _l(s, e, t) {
4401
4400
  })
4402
4401
  })).ok)
4403
4402
  throw new Error("Feedback failed");
4404
- } catch (X) {
4405
- console.error("Failed to send feedback:", X), t(14, C[b] = null, C), t(14, C);
4403
+ } catch (V) {
4404
+ console.error("Failed to send feedback:", V), t(14, C[b] = null, C), t(14, C);
4406
4405
  }
4407
4406
  else
4408
- t(16, V = !0);
4407
+ t(16, X = !0);
4409
4408
  });
4410
4409
  }
4411
4410
  function he(b) {
4412
4411
  return Ee(this, null, function* () {
4413
- var N;
4414
- if ((N = U[b]) != null && N.trim())
4412
+ var H;
4413
+ if ((H = U[b]) != null && H.trim())
4415
4414
  try {
4416
4415
  if (!(yield fetch(`${w}/chat/record/feedback`, {
4417
4416
  method: "POST",
@@ -4428,27 +4427,27 @@ function _l(s, e, t) {
4428
4427
  })
4429
4428
  })).ok)
4430
4429
  throw new Error("Feedback failed");
4431
- t(16, V = !1), t(15, U[b] = "", U), t(15, U);
4432
- } catch (X) {
4433
- console.error("Failed to send feedback:", X), t(14, C[b] = null, C), t(14, C);
4430
+ t(16, X = !1), t(15, U[b] = "", U), t(15, U);
4431
+ } catch (V) {
4432
+ console.error("Failed to send feedback:", V), t(14, C[b] = null, C), t(14, C);
4434
4433
  }
4435
4434
  });
4436
4435
  }
4437
4436
  let He = { x: 0, y: 0 };
4438
- function ue(b, N) {
4437
+ function ue(b, H) {
4439
4438
  const ce = b.currentTarget.getBoundingClientRect();
4440
4439
  t(17, He = {
4441
4440
  x: ce.left - 290,
4442
4441
  // 弹框宽度 + 间距
4443
4442
  y: ce.top - 160
4444
4443
  // 弹框高度 + 间距
4445
- }), ne(N, "dislike");
4444
+ }), ne(H, "dislike");
4446
4445
  }
4447
4446
  let Be = null;
4448
- function ee(b, N) {
4447
+ function ee(b, H) {
4449
4448
  const ce = b.currentTarget.getBoundingClientRect();
4450
4449
  t(18, Be = {
4451
- text: N,
4450
+ text: H,
4452
4451
  x: ce.left + ce.width / 2,
4453
4452
  y: ce.top - 8
4454
4453
  });
@@ -4468,7 +4467,7 @@ function _l(s, e, t) {
4468
4467
  if (!m) {
4469
4468
  t(9, m = !0);
4470
4469
  try {
4471
- const N = yield fetch(`${w}/chat/record/session/detail/query`, {
4470
+ const H = yield fetch(`${w}/chat/record/session/detail/query`, {
4472
4471
  method: "POST",
4473
4472
  headers: {
4474
4473
  "Content-Type": "application/json",
@@ -4477,12 +4476,12 @@ function _l(s, e, t) {
4477
4476
  },
4478
4477
  body: JSON.stringify({ sessionId: b })
4479
4478
  });
4480
- if (!N.ok)
4479
+ if (!H.ok)
4481
4480
  throw new Error("Failed to load sessions");
4482
- const X = yield N.json();
4483
- if (X.code === 0) {
4481
+ const V = yield H.json();
4482
+ if (V.code === 0) {
4484
4483
  K = b, t(19, se = !1);
4485
- const ce = X.data.map((fe, ke) => {
4484
+ const ce = V.data.map((fe, ke) => {
4486
4485
  const xe = Zs(fe.answer), Je = gl(fe.answer);
4487
4486
  return [
4488
4487
  {
@@ -4506,8 +4505,8 @@ function _l(s, e, t) {
4506
4505
  });
4507
4506
  t(5, i = ce.flat());
4508
4507
  }
4509
- } catch (N) {
4510
- console.error("Failed to load sessions:", N);
4508
+ } catch (H) {
4509
+ console.error("Failed to load sessions:", H);
4511
4510
  } finally {
4512
4511
  t(9, m = !1);
4513
4512
  }
@@ -4546,25 +4545,25 @@ function _l(s, e, t) {
4546
4545
  });
4547
4546
  if (!b.ok)
4548
4547
  throw new Error("Failed to get session ID");
4549
- const N = yield b.json();
4550
- if (N.code === 0)
4551
- return K = N.data.sessionId, K;
4552
- throw new Error(N.message || "Failed to get session ID");
4548
+ const H = yield b.json();
4549
+ if (H.code === 0)
4550
+ return K = H.data.sessionId, K;
4551
+ throw new Error(H.message || "Failed to get session ID");
4553
4552
  } catch (b) {
4554
4553
  return console.error("Failed to get session ID:", b), null;
4555
4554
  }
4556
4555
  });
4557
4556
  }
4558
- const D = (b, N) => M(N, b.tips, N.currentTarget), q = (b) => Z(b.content_title, b.link), me = () => {
4557
+ const D = (b, H) => M(H, b.tips, H.currentTarget), q = (b) => Z(b.content_title, b.link), me = () => {
4559
4558
  p && (clearTimeout(p), t(8, p = null));
4560
4559
  }, ge = () => {
4561
4560
  t(6, u = null);
4562
- }, Me = (b) => I(b.id, b.content), De = (b, N) => ee(N, B[b.id] ? "已复制" : "复制内容"), et = (b) => ne(b.id, "like"), ft = (b, N) => ee(N, C[b.id] === "like" ? "取消点赞" : "点赞"), ht = (b, N) => ue(N, b.id), Pt = (b, N) => ee(N, C[b.id] === "dislike" ? "取消点踩" : "点踩");
4561
+ }, Me = (b) => I(b.id, b.content), De = (b, H) => ee(H, B[b.id] ? "已复制" : "复制内容"), et = (b) => ne(b.id, "like"), ft = (b, H) => ee(H, C[b.id] === "like" ? "取消点赞" : "点赞"), ht = (b, H) => ue(H, b.id), Pt = (b, H) => ee(H, C[b.id] === "dislike" ? "取消点踩" : "点踩");
4563
4562
  function Nt(b) {
4564
4563
  U[b.id] = this.value, t(15, U);
4565
4564
  }
4566
4565
  const rn = (b) => {
4567
- t(16, V = !1), t(14, C[b.id] = null, C), t(14, C);
4566
+ t(16, X = !1), t(14, C[b.id] = null, C), t(14, C);
4568
4567
  }, bt = (b) => he(b.id);
4569
4568
  function ot(b) {
4570
4569
  wt[b ? "unshift" : "push"](() => {
@@ -4607,7 +4606,7 @@ function _l(s, e, t) {
4607
4606
  B,
4608
4607
  C,
4609
4608
  U,
4610
- V,
4609
+ X,
4611
4610
  He,
4612
4611
  Be,
4613
4612
  se,
@@ -4681,7 +4680,7 @@ function Xs(s) {
4681
4680
  ), R, L, A, w, k, y, v, x, M = (
4682
4681
  /*isSnapped*/
4683
4682
  s[7] ? "取消吸附" : "吸附到边缘"
4684
- ), z, Z, B, I, C, U, V, ne, he, He = `${/*mergedOptions*/
4683
+ ), z, Z, B, I, C, U, X, ne, he, He = `${/*mergedOptions*/
4685
4684
  s[3].height}px`, ue, Be, ee;
4686
4685
  function qe(D, q) {
4687
4686
  return (
@@ -4707,13 +4706,13 @@ function Xs(s) {
4707
4706
  return ne = le(s), he = P[ne] = Qe[ne](s), {
4708
4707
  c() {
4709
4708
  var D, q, me;
4710
- e = S("div"), t = S("div"), n = S("div"), o = S("h3"), i = ye(l), r = j(), c = S("div"), u = S("div"), h = S("button"), p = J("svg"), Ae.c(), g = j(), _ = S("span"), R = ye(T), L = j(), A = S("div"), w = S("button"), k = J("svg"), Te.c(), v = j(), x = S("span"), z = ye(M), Z = j(), B = S("div"), I = S("button"), I.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>', C = j(), U = S("span"), U.textContent = "关闭助手", V = j(), he.c(), a(o, "class", "svelte-1427avp"), a(p, "xmlns", "http://www.w3.org/2000/svg"), a(p, "width", "18"), a(p, "height", "18"), a(p, "viewBox", "0 0 24 24"), a(p, "fill", "none"), a(p, "stroke", "currentColor"), a(p, "stroke-width", "2"), a(p, "stroke-linecap", "round"), a(p, "stroke-linejoin", "round"), a(h, "class", "sy-assistant-action-button svelte-1427avp"), a(h, "aria-label", m = /*isFullscreen*/
4709
+ e = S("div"), t = S("div"), n = S("div"), o = S("h3"), i = ye(l), r = j(), c = S("div"), u = S("div"), h = S("button"), p = J("svg"), Ae.c(), g = j(), _ = S("span"), R = ye(T), L = j(), A = S("div"), w = S("button"), k = J("svg"), Te.c(), v = j(), x = S("span"), z = ye(M), Z = j(), B = S("div"), I = S("button"), I.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>', C = j(), U = S("span"), U.textContent = "关闭助手", X = j(), he.c(), a(o, "class", "svelte-1427avp"), a(p, "xmlns", "http://www.w3.org/2000/svg"), a(p, "width", "18"), a(p, "height", "18"), a(p, "viewBox", "0 0 24 24"), a(p, "fill", "none"), a(p, "stroke", "currentColor"), a(p, "stroke-width", "2"), a(p, "stroke-linecap", "round"), a(p, "stroke-linejoin", "round"), a(h, "class", "sy-assistant-action-button svelte-1427avp"), a(h, "aria-label", m = /*isFullscreen*/
4711
4710
  s[2] ? "退出全屏" : "全屏显示"), $(
4712
4711
  h,
4713
4712
  "active",
4714
4713
  /*isFullscreen*/
4715
4714
  s[2]
4716
- ), a(_, "class", "sy-assistant-tooltip svelte-1427avp"), F(
4715
+ ), a(_, "class", "sy-assistant-tooltip svelte-1427avp"), N(
4717
4716
  _,
4718
4717
  "z-index",
4719
4718
  /*mergedOptions*/
@@ -4724,12 +4723,12 @@ function Xs(s) {
4724
4723
  "active",
4725
4724
  /*isSnapped*/
4726
4725
  s[7]
4727
- ), a(x, "class", "sy-assistant-tooltip svelte-1427avp"), F(
4726
+ ), a(x, "class", "sy-assistant-tooltip svelte-1427avp"), N(
4728
4727
  x,
4729
4728
  "z-index",
4730
4729
  /*mergedOptions*/
4731
4730
  ((q = s[3].zIndex) != null ? q : 1e3) + 3
4732
- ), a(A, "class", "sy-assistant-tooltip-wrapper svelte-1427avp"), a(I, "class", "sy-assistant-close-button svelte-1427avp"), a(I, "aria-label", "关闭助手"), a(U, "class", "sy-assistant-tooltip svelte-1427avp"), F(
4731
+ ), a(A, "class", "sy-assistant-tooltip-wrapper svelte-1427avp"), a(I, "class", "sy-assistant-close-button svelte-1427avp"), a(I, "aria-label", "关闭助手"), a(U, "class", "sy-assistant-tooltip svelte-1427avp"), N(
4733
4732
  U,
4734
4733
  "z-index",
4735
4734
  /*mergedOptions*/
@@ -4754,10 +4753,10 @@ function Xs(s) {
4754
4753
  "fullscreen",
4755
4754
  /*isFullscreen*/
4756
4755
  s[2]
4757
- ), F(e, "height", He);
4756
+ ), N(e, "height", He);
4758
4757
  },
4759
4758
  m(D, q) {
4760
- Y(D, e, q), d(e, t), d(t, n), d(n, o), d(o, i), d(n, r), d(n, c), d(c, u), d(u, h), d(h, p), Ae.m(p, null), d(u, g), d(u, _), d(_, R), d(c, L), d(c, A), d(A, w), d(w, k), Te.m(k, null), d(A, v), d(A, x), d(x, z), d(c, Z), d(c, B), d(B, I), d(B, C), d(B, U), d(t, V), P[ne].m(t, null), ue = !0, Be || (ee = [
4759
+ Y(D, e, q), d(e, t), d(t, n), d(n, o), d(o, i), d(n, r), d(n, c), d(c, u), d(u, h), d(h, p), Ae.m(p, null), d(u, g), d(u, _), d(_, R), d(c, L), d(c, A), d(A, w), d(w, k), Te.m(k, null), d(A, v), d(A, x), d(x, z), d(c, Z), d(c, B), d(B, I), d(B, C), d(B, U), d(t, X), P[ne].m(t, null), ue = !0, Be || (ee = [
4761
4760
  G(
4762
4761
  h,
4763
4762
  "click",
@@ -4797,7 +4796,7 @@ function Xs(s) {
4797
4796
  ), (!ue || q[0] & /*isFullscreen*/
4798
4797
  4) && T !== (T = /*isFullscreen*/
4799
4798
  D[2] ? "退出全屏" : "全屏显示") && Ne(R, T), q[0] & /*mergedOptions*/
4800
- 8 && F(
4799
+ 8 && N(
4801
4800
  _,
4802
4801
  "z-index",
4803
4802
  /*mergedOptions*/
@@ -4813,13 +4812,13 @@ function Xs(s) {
4813
4812
  ), (!ue || q[0] & /*isSnapped*/
4814
4813
  128) && M !== (M = /*isSnapped*/
4815
4814
  D[7] ? "取消吸附" : "吸附到边缘") && Ne(z, M), q[0] & /*mergedOptions*/
4816
- 8 && F(
4815
+ 8 && N(
4817
4816
  x,
4818
4817
  "z-index",
4819
4818
  /*mergedOptions*/
4820
4819
  ((Me = D[3].zIndex) != null ? Me : 1e3) + 3
4821
4820
  ), q[0] & /*mergedOptions*/
4822
- 8 && F(
4821
+ 8 && N(
4823
4822
  U,
4824
4823
  "z-index",
4825
4824
  /*mergedOptions*/
@@ -4854,7 +4853,7 @@ function Xs(s) {
4854
4853
  D[2]
4855
4854
  ), q[0] & /*mergedOptions*/
4856
4855
  8 && He !== (He = `${/*mergedOptions*/
4857
- D[3].height}px`) && F(e, "height", He);
4856
+ D[3].height}px`) && N(e, "height", He);
4858
4857
  },
4859
4858
  i(D) {
4860
4859
  ue || (je(he), ue = !0);
@@ -5045,7 +5044,7 @@ function Sl(s) {
5045
5044
  "fullscreen",
5046
5045
  /*isFullscreen*/
5047
5046
  s[2]
5048
- ), F(t, "width", n), a(r, "d", "M896.512 698.88H132.608c-58.88 0-107.008-48.128-107.008-107.008v-10.24c0-58.88 48.128-107.008 107.008-107.008h763.904c58.88 0 107.008 48.128 107.008 107.008v10.24c0 58.88-48.128 107.008-107.008 107.008zM496.64 201.728h35.84v117.248h-35.84z"), a(r, "fill", "#6F8698"), a(c, "d", "M516.608 223.744h-4.608c-37.888 0-68.096-30.72-68.096-68.096v-6.656c0-37.888 30.72-68.096 68.096-68.096h4.608c37.888 0 68.096 30.72 68.096 68.096v6.656c0.512 37.888-30.208 68.096-68.096 68.096z"), a(c, "fill", "#3677FF"), a(u, "d", "M573.44 944.64H450.56c-181.248 0-327.68-146.432-327.68-327.68v-4.096c0-181.248 146.432-327.68 327.68-327.68h122.88c181.248 0 327.68 146.432 327.68 327.68v4.096c0 180.224-146.432 327.68-327.68 327.68z"), a(u, "fill", "#D0D5F1"), a(h, "d", "M681.984 715.264H347.136c-72.704 0-131.584-58.88-131.584-131.584s58.88-131.584 131.584-131.584h334.336c72.704 0 131.584 58.88 131.584 131.584 0.512 72.704-58.368 131.584-131.072 131.584z"), a(h, "fill", "#3677FF"), a(p, "d", "M286.72 583.68a78.336 70.144 90 1 0 140.288 0 78.336 70.144 90 1 0-140.288 0Z"), a(p, "fill", "#FFFFFF"), a(m, "d", "M608.256 583.68a78.336 70.144 90 1 0 140.288 0 78.336 70.144 90 1 0-140.288 0Z"), a(m, "fill", "#FFFFFF"), a(g, "d", "M443.392 799.232s2.56 58.88 68.096 58.88c58.88 0 69.632-61.952 69.632-61.952s-27.136 33.28-68.096 33.28c-42.496 0-69.632-30.208-69.632-30.208z"), a(g, "fill", "#8896A4"), a(i, "class", "sy-assistant-icon"), a(i, "viewBox", "0 0 1024 1024"), a(i, "version", "1.1"), a(i, "xmlns", "http://www.w3.org/2000/svg"), a(i, "width", "32"), a(i, "height", "32"), a(i, "fill", "currentColor"), a(i, "aria-label", "助手图标"), a(l, "class", "sy-assistant-floating-button svelte-1427avp"), a(l, "aria-label", "打开助手"), a(l, "style", _ = /*buttonStyle*/
5047
+ ), N(t, "width", n), a(r, "d", "M896.512 698.88H132.608c-58.88 0-107.008-48.128-107.008-107.008v-10.24c0-58.88 48.128-107.008 107.008-107.008h763.904c58.88 0 107.008 48.128 107.008 107.008v10.24c0 58.88-48.128 107.008-107.008 107.008zM496.64 201.728h35.84v117.248h-35.84z"), a(r, "fill", "#6F8698"), a(c, "d", "M516.608 223.744h-4.608c-37.888 0-68.096-30.72-68.096-68.096v-6.656c0-37.888 30.72-68.096 68.096-68.096h4.608c37.888 0 68.096 30.72 68.096 68.096v6.656c0.512 37.888-30.208 68.096-68.096 68.096z"), a(c, "fill", "#3677FF"), a(u, "d", "M573.44 944.64H450.56c-181.248 0-327.68-146.432-327.68-327.68v-4.096c0-181.248 146.432-327.68 327.68-327.68h122.88c181.248 0 327.68 146.432 327.68 327.68v4.096c0 180.224-146.432 327.68-327.68 327.68z"), a(u, "fill", "#D0D5F1"), a(h, "d", "M681.984 715.264H347.136c-72.704 0-131.584-58.88-131.584-131.584s58.88-131.584 131.584-131.584h334.336c72.704 0 131.584 58.88 131.584 131.584 0.512 72.704-58.368 131.584-131.072 131.584z"), a(h, "fill", "#3677FF"), a(p, "d", "M286.72 583.68a78.336 70.144 90 1 0 140.288 0 78.336 70.144 90 1 0-140.288 0Z"), a(p, "fill", "#FFFFFF"), a(m, "d", "M608.256 583.68a78.336 70.144 90 1 0 140.288 0 78.336 70.144 90 1 0-140.288 0Z"), a(m, "fill", "#FFFFFF"), a(g, "d", "M443.392 799.232s2.56 58.88 68.096 58.88c58.88 0 69.632-61.952 69.632-61.952s-27.136 33.28-68.096 33.28c-42.496 0-69.632-30.208-69.632-30.208z"), a(g, "fill", "#8896A4"), a(i, "class", "sy-assistant-icon"), a(i, "viewBox", "0 0 1024 1024"), a(i, "version", "1.1"), a(i, "xmlns", "http://www.w3.org/2000/svg"), a(i, "width", "32"), a(i, "height", "32"), a(i, "fill", "currentColor"), a(i, "aria-label", "助手图标"), a(l, "class", "sy-assistant-floating-button svelte-1427avp"), a(l, "aria-label", "打开助手"), a(l, "style", _ = /*buttonStyle*/
5049
5048
  s[10] + " z-index: " + /*mergedOptions*/
5050
5049
  (((w = s[3].zIndex) != null ? w : 1e3) + 1) + ";"), a(e, "class", "sy-assistant-container sy-assistant-theme svelte-1427avp"), $(
5051
5050
  e,
@@ -5057,35 +5056,35 @@ function Sl(s) {
5057
5056
  "snapped",
5058
5057
  /*isSnapped*/
5059
5058
  s[7]
5060
- ), F(
5059
+ ), N(
5061
5060
  e,
5062
5061
  "position",
5063
5062
  /*mergedOptions*/
5064
5063
  s[3].position
5065
- ), F(
5064
+ ), N(
5066
5065
  e,
5067
5066
  "right",
5068
5067
  /*isSnapped*/
5069
5068
  s[7] ? 0 : `${/*right*/
5070
5069
  s[0]}px`
5071
- ), F(
5070
+ ), N(
5072
5071
  e,
5073
5072
  "bottom",
5074
5073
  /*isSnapped*/
5075
5074
  s[7] ? 0 : `${/*bottom*/
5076
5075
  s[1]}px`
5077
- ), F(
5076
+ ), N(
5078
5077
  e,
5079
5078
  "top",
5080
5079
  /*isSnapped*/
5081
5080
  s[7] || /*isFullscreen*/
5082
5081
  s[2] ? "0" : "auto"
5083
- ), F(
5082
+ ), N(
5084
5083
  e,
5085
5084
  "left",
5086
5085
  /*isFullscreen*/
5087
5086
  s[2] ? "0" : "auto"
5088
- ), F(
5087
+ ), N(
5089
5088
  e,
5090
5089
  "z-index",
5091
5090
  /*mergedOptions*/
@@ -5120,7 +5119,7 @@ function Sl(s) {
5120
5119
  w[2]
5121
5120
  ), k[0] & /*$drawerWidth*/
5122
5121
  4096 && n !== (n = `${/*$drawerWidth*/
5123
- w[12]}px`) && F(t, "width", n), (!T || k[0] & /*buttonStyle, mergedOptions*/
5122
+ w[12]}px`) && N(t, "width", n), (!T || k[0] & /*buttonStyle, mergedOptions*/
5124
5123
  1032 && _ !== (_ = /*buttonStyle*/
5125
5124
  w[10] + " z-index: " + /*mergedOptions*/
5126
5125
  (((y = w[3].zIndex) != null ? y : 1e3) + 1) + ";")) && a(l, "style", _), (!T || k[0] & /*isFullscreen*/
@@ -5136,40 +5135,40 @@ function Sl(s) {
5136
5135
  /*isSnapped*/
5137
5136
  w[7]
5138
5137
  ), k[0] & /*mergedOptions*/
5139
- 8 && F(
5138
+ 8 && N(
5140
5139
  e,
5141
5140
  "position",
5142
5141
  /*mergedOptions*/
5143
5142
  w[3].position
5144
5143
  ), k[0] & /*isSnapped, right*/
5145
- 129 && F(
5144
+ 129 && N(
5146
5145
  e,
5147
5146
  "right",
5148
5147
  /*isSnapped*/
5149
5148
  w[7] ? 0 : `${/*right*/
5150
5149
  w[0]}px`
5151
5150
  ), k[0] & /*isSnapped, bottom*/
5152
- 130 && F(
5151
+ 130 && N(
5153
5152
  e,
5154
5153
  "bottom",
5155
5154
  /*isSnapped*/
5156
5155
  w[7] ? 0 : `${/*bottom*/
5157
5156
  w[1]}px`
5158
5157
  ), k[0] & /*isSnapped, isFullscreen*/
5159
- 132 && F(
5158
+ 132 && N(
5160
5159
  e,
5161
5160
  "top",
5162
5161
  /*isSnapped*/
5163
5162
  w[7] || /*isFullscreen*/
5164
5163
  w[2] ? "0" : "auto"
5165
5164
  ), k[0] & /*isFullscreen*/
5166
- 4 && F(
5165
+ 4 && N(
5167
5166
  e,
5168
5167
  "left",
5169
5168
  /*isFullscreen*/
5170
5169
  w[2] ? "0" : "auto"
5171
5170
  ), k[0] & /*mergedOptions*/
5172
- 8 && F(
5171
+ 8 && N(
5173
5172
  e,
5174
5173
  "z-index",
5175
5174
  /*mergedOptions*/
@@ -5204,7 +5203,7 @@ function Al(s, e, t) {
5204
5203
  hasScene: !1,
5205
5204
  apiPrefix: "/aiops/aigc"
5206
5205
  };
5207
- let { target: h = "body" } = e, { options: p = {} } = e, m, g = null, _ = !1, T, R = !1, L = 0, A = 0, w = pe, k = 20, y = w, v = k, x = !1, M = pe, z = 50, Z = !1, B = { width: 0, height: 0, right: 0, bottom: 0 }, I = !1, C = !1, U = [], V = null;
5206
+ let { target: h = "body" } = e, { options: p = {} } = e, m, g = null, _ = !1, T, R = !1, L = 0, A = 0, w = pe, k = 20, y = w, v = k, x = !1, M = pe, z = 50, Z = !1, B = { width: 0, height: 0, right: 0, bottom: 0 }, I = !1, C = !1, U = [], X = null;
5208
5207
  function ne() {
5209
5208
  return Ee(this, null, function* () {
5210
5209
  try {
@@ -5220,7 +5219,7 @@ function Al(s, e, t) {
5220
5219
  throw new Error("Failed to get session ID");
5221
5220
  const le = yield P.json();
5222
5221
  if (le.code === 0)
5223
- return t(9, V = le.data.sessionId), V;
5222
+ return t(9, X = le.data.sessionId), X;
5224
5223
  throw new Error(le.message || "Failed to get session ID");
5225
5224
  } catch (P) {
5226
5225
  return console.error("Failed to get session ID:", P), null;
@@ -5340,7 +5339,7 @@ function Al(s, e, t) {
5340
5339
  R,
5341
5340
  I,
5342
5341
  C,
5343
- V,
5342
+ X,
5344
5343
  l,
5345
5344
  o,
5346
5345
  i,