lianshu-editor 1.0.147 → 1.0.148

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.
@@ -246,7 +246,7 @@ const Yp = async (e, t, n) => {
246
246
  x: C,
247
247
  y: T,
248
248
  data: I,
249
- reset: S
249
+ reset: x
250
250
  } = await k({
251
251
  x: c,
252
252
  y: f,
@@ -270,11 +270,11 @@ const Yp = async (e, t, n) => {
270
270
  ...g[E],
271
271
  ...I
272
272
  }
273
- }, S && p <= 50 && (p++, typeof S == "object" && (S.placement && (h = S.placement), S.rects && (l = S.rects === !0 ? await s.getElementRects({
273
+ }, x && p <= 50 && (p++, typeof x == "object" && (x.placement && (h = x.placement), x.rects && (l = x.rects === !0 ? await s.getElementRects({
274
274
  reference: e,
275
275
  floating: t,
276
276
  strategy: a
277
- }) : S.rects), {
277
+ }) : x.rects), {
278
278
  x: c,
279
279
  y: f
280
280
  } = wc(l, h, u)), A = -1);
@@ -307,15 +307,15 @@ const Yp = async (e, t, n) => {
307
307
  const f = Zu(c), h = {
308
308
  x: n,
309
309
  y: r
310
- }, g = Ju(a), p = Vu(g), m = await s.getDimensions(l), A = g === "y", E = A ? "top" : "left", k = A ? "bottom" : "right", C = A ? "clientHeight" : "clientWidth", T = i.reference[p] + i.reference[g] - h[g] - i.floating[p], I = h[g] - i.reference[g], S = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
311
- let B = S ? S[C] : 0;
312
- (!B || !await (s.isElement == null ? void 0 : s.isElement(S))) && (B = o.floating[C] || i.floating[p]);
313
- const D = T / 2 - I / 2, N = B / 2 - m[p] / 2 - 1, _ = On(f[E], N), F = On(f[k], N), L = _, x = B - m[p] - F, M = B / 2 - m[p] / 2 + D, Q = qo(L, M, x), G = !u.arrow && hn(a) != null && M !== Q && i.reference[p] / 2 - (M < L ? _ : F) - m[p] / 2 < 0, W = G ? M < L ? M - L : M - x : 0;
310
+ }, g = Ju(a), p = Vu(g), m = await s.getDimensions(l), A = g === "y", E = A ? "top" : "left", k = A ? "bottom" : "right", C = A ? "clientHeight" : "clientWidth", T = i.reference[p] + i.reference[g] - h[g] - i.floating[p], I = h[g] - i.reference[g], x = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
311
+ let R = x ? x[C] : 0;
312
+ (!R || !await (s.isElement == null ? void 0 : s.isElement(x))) && (R = o.floating[C] || i.floating[p]);
313
+ const D = T / 2 - I / 2, N = R / 2 - m[p] / 2 - 1, _ = On(f[E], N), F = On(f[k], N), L = _, M = R - m[p] - F, S = R / 2 - m[p] / 2 + D, Q = qo(L, S, M), G = !u.arrow && hn(a) != null && S !== Q && i.reference[p] / 2 - (S < L ? _ : F) - m[p] / 2 < 0, W = G ? S < L ? S - L : S - M : 0;
314
314
  return {
315
315
  [g]: h[g] + W,
316
316
  data: {
317
317
  [g]: Q,
318
- centerOffset: M - Q - W,
318
+ centerOffset: S - Q - W,
319
319
  ...G && {
320
320
  alignmentOffset: W
321
321
  }
@@ -358,32 +358,32 @@ const Wp = function(e) {
358
358
  const T = [A[sn(k)], A[C[0]], A[C[1]]], I = [...((r = s.autoPlacement) == null ? void 0 : r.overflows) || [], {
359
359
  placement: k,
360
360
  overflows: T
361
- }], S = m[E + 1];
362
- if (S)
361
+ }], x = m[E + 1];
362
+ if (x)
363
363
  return {
364
364
  data: {
365
365
  index: E + 1,
366
366
  overflows: I
367
367
  },
368
368
  reset: {
369
- placement: S
369
+ placement: x
370
370
  }
371
371
  };
372
- const B = I.map((_) => {
372
+ const R = I.map((_) => {
373
373
  const F = hn(_.placement);
374
374
  return [_.placement, F && c ? (
375
375
  // Check along the mainAxis and main crossAxis side.
376
- _.overflows.slice(0, 2).reduce((L, x) => L + x, 0)
376
+ _.overflows.slice(0, 2).reduce((L, M) => L + M, 0)
377
377
  ) : (
378
378
  // Check only the mainAxis.
379
379
  _.overflows[0]
380
380
  ), _.overflows];
381
- }).sort((_, F) => _[1] - F[1]), N = ((a = B.filter((_) => _[2].slice(
381
+ }).sort((_, F) => _[1] - F[1]), N = ((a = R.filter((_) => _[2].slice(
382
382
  0,
383
383
  // Aligned placements should not check their opposite crossAxis
384
384
  // side.
385
385
  hn(_[0]) ? 2 : 3
386
- ).every((F) => F <= 0))[0]) == null ? void 0 : a[0]) || B[0][0];
386
+ ).every((F) => F <= 0))[0]) == null ? void 0 : a[0]) || R[0][0];
387
387
  return N !== o ? {
388
388
  data: {
389
389
  index: E + 1,
@@ -419,26 +419,26 @@ const Wp = function(e) {
419
419
  } = Vn(e, t);
420
420
  if ((n = i.arrow) != null && n.alignmentOffset)
421
421
  return {};
422
- const E = sn(a), k = Cn(o), C = sn(o) === o, T = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), I = h || (C || !m ? [fs(o)] : Bp(o)), S = p !== "none";
423
- !h && S && I.push(...Hp(o, m, p, T));
424
- const B = [o, ...I], D = await u.detectOverflow(t, A), N = [];
422
+ const E = sn(a), k = Cn(o), C = sn(o) === o, T = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), I = h || (C || !m ? [fs(o)] : Bp(o)), x = p !== "none";
423
+ !h && x && I.push(...Hp(o, m, p, T));
424
+ const R = [o, ...I], D = await u.detectOverflow(t, A), N = [];
425
425
  let _ = ((r = i.flip) == null ? void 0 : r.overflows) || [];
426
426
  if (c && N.push(D[E]), f) {
427
- const M = Pd(a, s, T);
428
- N.push(D[M[0]], D[M[1]]);
427
+ const S = Pd(a, s, T);
428
+ N.push(D[S[0]], D[S[1]]);
429
429
  }
430
430
  if (_ = [..._, {
431
431
  placement: a,
432
432
  overflows: N
433
- }], !N.every((M) => M <= 0)) {
433
+ }], !N.every((S) => S <= 0)) {
434
434
  var F, L;
435
- const M = (((F = i.flip) == null ? void 0 : F.index) || 0) + 1, Q = B[M];
435
+ const S = (((F = i.flip) == null ? void 0 : F.index) || 0) + 1, Q = R[S];
436
436
  if (Q && (!(f === "alignment" ? k !== Cn(Q) : !1) || // We leave the current main axis only if every placement on that axis
437
437
  // overflows the main axis.
438
438
  _.every((K) => Cn(K.placement) === k ? K.overflows[0] > 0 : !0)))
439
439
  return {
440
440
  data: {
441
- index: M,
441
+ index: S,
442
442
  overflows: _
443
443
  },
444
444
  reset: {
@@ -449,16 +449,16 @@ const Wp = function(e) {
449
449
  if (!G)
450
450
  switch (g) {
451
451
  case "bestFit": {
452
- var x;
453
- const W = (x = _.filter((K) => {
454
- if (S) {
452
+ var M;
453
+ const W = (M = _.filter((K) => {
454
+ if (x) {
455
455
  const fe = Cn(K.placement);
456
456
  return fe === k || // Create a bias to the `y` side axis due to horizontal
457
457
  // reading directions favoring greater width.
458
458
  fe === "y";
459
459
  }
460
460
  return !0;
461
- }).map((K) => [K.placement, K.overflows.filter((fe) => fe > 0).reduce((fe, Be) => fe + Be, 0)]).sort((K, fe) => K[1] - fe[1])[0]) == null ? void 0 : x[0];
461
+ }).map((K) => [K.placement, K.overflows.filter((fe) => fe > 0).reduce((fe, Be) => fe + Be, 0)]).sort((K, fe) => K[1] - fe[1])[0]) == null ? void 0 : M[0];
462
462
  W && (G = W);
463
463
  break;
464
464
  }
@@ -570,27 +570,27 @@ const Vp = function(e) {
570
570
  return f.find((A) => u > A.left - g.left && u < A.right + g.right && l > A.top - g.top && l < A.bottom + g.bottom) || h;
571
571
  if (f.length >= 2) {
572
572
  if (Cn(n) === "y") {
573
- const _ = f[0], F = f[f.length - 1], L = sn(n) === "top", x = _.top, M = F.bottom, Q = L ? _.left : F.left, G = L ? _.right : F.right, W = G - Q, K = M - x;
573
+ const _ = f[0], F = f[f.length - 1], L = sn(n) === "top", M = _.top, S = F.bottom, Q = L ? _.left : F.left, G = L ? _.right : F.right, W = G - Q, K = S - M;
574
574
  return {
575
- top: x,
576
- bottom: M,
575
+ top: M,
576
+ bottom: S,
577
577
  left: Q,
578
578
  right: G,
579
579
  width: W,
580
580
  height: K,
581
581
  x: Q,
582
- y: x
582
+ y: M
583
583
  };
584
584
  }
585
- const A = sn(n) === "left", E = Dt(...f.map((_) => _.right)), k = On(...f.map((_) => _.left)), C = f.filter((_) => A ? _.left === k : _.right === E), T = C[0].top, I = C[C.length - 1].bottom, S = k, B = E, D = B - S, N = I - T;
585
+ const A = sn(n) === "left", E = Dt(...f.map((_) => _.right)), k = On(...f.map((_) => _.left)), C = f.filter((_) => A ? _.left === k : _.right === E), T = C[0].top, I = C[C.length - 1].bottom, x = k, R = E, D = R - x, N = I - T;
586
586
  return {
587
587
  top: T,
588
588
  bottom: I,
589
- left: S,
590
- right: B,
589
+ left: x,
590
+ right: R,
591
591
  width: D,
592
592
  height: N,
593
- x: S,
593
+ x,
594
594
  y: T
595
595
  };
596
596
  }
@@ -738,16 +738,16 @@ const Xp = function(e) {
738
738
  } = i.floating;
739
739
  let A, E;
740
740
  f === "top" || f === "bottom" ? (A = f, E = h === (await (s.isRTL == null ? void 0 : s.isRTL(o.floating)) ? "start" : "end") ? "left" : "right") : (E = f, A = h === "end" ? "top" : "bottom");
741
- const k = m - c.top - c.bottom, C = p - c.left - c.right, T = On(m - c[A], k), I = On(p - c[E], C), S = !t.middlewareData.shift;
742
- let B = T, D = I;
743
- if ((n = t.middlewareData.shift) != null && n.enabled.x && (D = C), (r = t.middlewareData.shift) != null && r.enabled.y && (B = k), S && !h) {
744
- const _ = Dt(c.left, 0), F = Dt(c.right, 0), L = Dt(c.top, 0), x = Dt(c.bottom, 0);
745
- g ? D = p - 2 * (_ !== 0 || F !== 0 ? _ + F : Dt(c.left, c.right)) : B = m - 2 * (L !== 0 || x !== 0 ? L + x : Dt(c.top, c.bottom));
741
+ const k = m - c.top - c.bottom, C = p - c.left - c.right, T = On(m - c[A], k), I = On(p - c[E], C), x = !t.middlewareData.shift;
742
+ let R = T, D = I;
743
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (D = C), (r = t.middlewareData.shift) != null && r.enabled.y && (R = k), x && !h) {
744
+ const _ = Dt(c.left, 0), F = Dt(c.right, 0), L = Dt(c.top, 0), M = Dt(c.bottom, 0);
745
+ g ? D = p - 2 * (_ !== 0 || F !== 0 ? _ + F : Dt(c.left, c.right)) : R = m - 2 * (L !== 0 || M !== 0 ? L + M : Dt(c.top, c.bottom));
746
746
  }
747
747
  await u({
748
748
  ...t,
749
749
  availableWidth: D,
750
- availableHeight: B
750
+ availableHeight: R
751
751
  });
752
752
  const N = await s.getDimensions(o.floating);
753
753
  return p !== N.width || m !== N.height ? {
@@ -5224,10 +5224,10 @@ function Lb(e) {
5224
5224
  pos: c,
5225
5225
  n: A - I
5226
5226
  });
5227
- const S = k && k[I];
5228
- if (S) {
5229
- const B = (T + I) % t * 2, D = s[B];
5230
- D == null || D != S && s[B + 1] == 1 ? (s[B] = S, s[B + 1] = 1) : D == S && s[B + 1]++;
5227
+ const x = k && k[I];
5228
+ if (x) {
5229
+ const R = (T + I) % t * 2, D = s[R];
5230
+ D == null || D != x && s[R + 1] == 1 ? (s[R] = x, s[R + 1] = 1) : D == x && s[R + 1]++;
5231
5231
  }
5232
5232
  }
5233
5233
  }
@@ -7200,9 +7200,9 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
7200
7200
  s.value = !1, i.value = !1, u.value = !1, o.value = !o.value;
7201
7201
  }, I = () => {
7202
7202
  s.value = !1, o.value = !1;
7203
- }, S = () => {
7203
+ }, x = () => {
7204
7204
  s.value = !1, o.value = !1, i.value = !1, u.value = !1, W.value = !1;
7205
- }, B = (re) => {
7205
+ }, R = (re) => {
7206
7206
  n.editor && (re ? n.editor.chain().focus().setColor(re).run() : n.editor.chain().focus().unsetColor().run(), s.value = !1);
7207
7207
  }, D = (re) => {
7208
7208
  n.editor && (re ? n.editor.chain().focus().setHighlight({ color: re }).run() : n.editor.chain().focus().unsetHighlight().run(), o.value = !1);
@@ -7247,11 +7247,11 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
7247
7247
  }
7248
7248
  _();
7249
7249
  }
7250
- }, x = () => {
7250
+ }, M = () => {
7251
7251
  if (!n.editor) return;
7252
7252
  const { from: re, to: ae } = n.editor.state.selection, Se = re !== ae ? n.editor.state.doc.textBetween(re, ae) : "";
7253
- n.editor.commands.showAIPromptInput(Se), S();
7254
- }, M = () => {
7253
+ n.editor.commands.showAIPromptInput(Se), x();
7254
+ }, S = () => {
7255
7255
  n.editor && n.editor.chain().focus().unsetAllMarks().run();
7256
7256
  }, Q = Dn("editorTemplateConfig", j(void 0)), G = ne(() => Q.value), W = j(!1), K = j(""), fe = j(null), Be = () => {
7257
7257
  I(), i.value = !1, u.value = !1, W.value = !W.value, K.value = "", W.value && Ct(() => {
@@ -7343,7 +7343,7 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
7343
7343
  ], 2),
7344
7344
  b("button", {
7345
7345
  class: "toolbar-btn",
7346
- onClick: M,
7346
+ onClick: S,
7347
7347
  title: "清除格式"
7348
7348
  }, [
7349
7349
  z(P(Z0), { size: 16 })
@@ -7367,7 +7367,7 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
7367
7367
  z(tr, {
7368
7368
  type: "text",
7369
7369
  "current-color": E.value,
7370
- onSelect: B
7370
+ onSelect: R
7371
7371
  }, null, 8, ["current-color"])
7372
7372
  ])) : te("", !0)
7373
7373
  ]),
@@ -7467,7 +7467,7 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
7467
7467
  b("div", h2, [
7468
7468
  b("button", {
7469
7469
  class: "toolbar-btn ai-btn",
7470
- onClick: x,
7470
+ onClick: M,
7471
7471
  title: "AI 写作"
7472
7472
  }, [
7473
7473
  z(P(Js), { size: 16 })
@@ -7528,7 +7528,7 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
7528
7528
  s.value || o.value || i.value || u.value || W.value ? (O(), U("div", {
7529
7529
  key: 1,
7530
7530
  class: "color-overlay",
7531
- onClick: S
7531
+ onClick: x
7532
7532
  })) : te("", !0)
7533
7533
  ]);
7534
7534
  };
@@ -7551,7 +7551,7 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
7551
7551
  editor: {}
7552
7552
  },
7553
7553
  setup(e) {
7554
- const t = e, n = Dn("editorTheme", "light"), r = ne(() => typeof n == "object" && (n != null && n.value) ? n.value === "dark" : n === "dark"), a = j(!1), i = j(null), s = j(!1), o = j(!1), u = j([]), l = j(!1), c = j(null), f = j(!1), h = j(!1), g = j(!1), p = j(!1), m = j(!1), A = j(!1), E = j(!1), k = j(!1), C = j(!1), T = j(!1), I = j(!1), S = j(!1), B = ne(() => {
7554
+ const t = e, n = Dn("editorTheme", "light"), r = ne(() => typeof n == "object" && (n != null && n.value) ? n.value === "dark" : n === "dark"), a = j(!1), i = j(null), s = j(!1), o = j(!1), u = j([]), l = j(!1), c = j(null), f = j(!1), h = j(!1), g = j(!1), p = j(!1), m = j(!1), A = j(!1), E = j(!1), k = j(!1), C = j(!1), T = j(!1), I = j(!1), x = j(!1), R = ne(() => {
7555
7555
  if (!c.value) return !1;
7556
7556
  const ee = c.value;
7557
7557
  return window.innerWidth - ee.right < 160 + 240 + 40;
@@ -7609,7 +7609,7 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
7609
7609
  transform: "translate(-50%, -50%)",
7610
7610
  zIndex: 1e3
7611
7611
  };
7612
- }), x = ne(() => {
7612
+ }), M = ne(() => {
7613
7613
  var Re;
7614
7614
  if (!c.value) return {};
7615
7615
  const ee = c.value, Y = ee.left + ee.width / 2;
@@ -7628,7 +7628,7 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
7628
7628
  transform: "translate(-50%, -50%)",
7629
7629
  zIndex: 1e3
7630
7630
  };
7631
- }), M = ne(() => {
7631
+ }), S = ne(() => {
7632
7632
  var Re;
7633
7633
  if (!c.value) return {};
7634
7634
  const ee = c.value, Y = ee.right - 1;
@@ -7926,10 +7926,10 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
7926
7926
  I.value || (h.value = !1);
7927
7927
  }, 200);
7928
7928
  }, Ci = () => {
7929
- S.value = !0;
7929
+ x.value = !0;
7930
7930
  }, Ni = () => {
7931
- S.value = !1, setTimeout(() => {
7932
- S.value || (g.value = !1);
7931
+ x.value = !1, setTimeout(() => {
7932
+ x.value || (g.value = !1);
7933
7933
  }, 200);
7934
7934
  }, bc = (ee) => {
7935
7935
  const Y = ee.target;
@@ -8013,7 +8013,7 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
8013
8013
  ]),
8014
8014
  p.value ? (O(), U("div", {
8015
8015
  key: 0,
8016
- class: X(["color-picker-dropdown", { "show-left": B.value }]),
8016
+ class: X(["color-picker-dropdown", { "show-left": R.value }]),
8017
8017
  onClick: Y[0] || (Y[0] = oe(() => {
8018
8018
  }, ["stop"]))
8019
8019
  }, [
@@ -8033,7 +8033,7 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
8033
8033
  ]),
8034
8034
  m.value ? (O(), U("div", {
8035
8035
  key: 0,
8036
- class: X(["color-picker-dropdown", { "show-left": B.value }]),
8036
+ class: X(["color-picker-dropdown", { "show-left": R.value }]),
8037
8037
  onClick: Y[1] || (Y[1] = oe(() => {
8038
8038
  }, ["stop"]))
8039
8039
  }, [
@@ -8056,7 +8056,7 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
8056
8056
  a.value && i.value && s.value ? (O(), U("div", {
8057
8057
  key: 2,
8058
8058
  class: X(["table-col-handle", { "theme-dark": r.value }]),
8059
- style: Ht(x.value),
8059
+ style: Ht(M.value),
8060
8060
  onMouseenter: kt,
8061
8061
  onMouseleave: Un
8062
8062
  }, [
@@ -8101,7 +8101,7 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
8101
8101
  ]),
8102
8102
  A.value ? (O(), U("div", {
8103
8103
  key: 0,
8104
- class: X(["color-picker-dropdown", { "show-left": B.value }]),
8104
+ class: X(["color-picker-dropdown", { "show-left": R.value }]),
8105
8105
  onClick: Y[2] || (Y[2] = oe(() => {
8106
8106
  }, ["stop"]))
8107
8107
  }, [
@@ -8121,7 +8121,7 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
8121
8121
  ]),
8122
8122
  E.value ? (O(), U("div", {
8123
8123
  key: 0,
8124
- class: X(["color-picker-dropdown", { "show-left": B.value }]),
8124
+ class: X(["color-picker-dropdown", { "show-left": R.value }]),
8125
8125
  onClick: Y[3] || (Y[3] = oe(() => {
8126
8126
  }, ["stop"]))
8127
8127
  }, [
@@ -8144,14 +8144,14 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
8144
8144
  a.value && i.value ? (O(), U("div", {
8145
8145
  key: 3,
8146
8146
  class: X(["table-cell-handle", { "theme-dark": r.value }]),
8147
- style: Ht(M.value),
8147
+ style: Ht(S.value),
8148
8148
  onMouseenter: Ci,
8149
8149
  onMouseleave: Ni
8150
8150
  }, [
8151
8151
  b("div", {
8152
- class: X(["handle-trigger cell-trigger", { "opacity-0": S.value || g.value }])
8152
+ class: X(["handle-trigger cell-trigger", { "opacity-0": x.value || g.value }])
8153
8153
  }, null, 2),
8154
- S.value || g.value ? (O(), U("button", {
8154
+ x.value || g.value ? (O(), U("button", {
8155
8155
  key: 0,
8156
8156
  class: "handle-btn",
8157
8157
  onClick: oe(Ge, ["stop"]),
@@ -8178,7 +8178,7 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
8178
8178
  ]),
8179
8179
  k.value ? (O(), U("div", {
8180
8180
  key: 0,
8181
- class: X(["color-picker-dropdown", { "show-left": B.value }]),
8181
+ class: X(["color-picker-dropdown", { "show-left": R.value }]),
8182
8182
  onClick: Y[4] || (Y[4] = oe(() => {
8183
8183
  }, ["stop"]))
8184
8184
  }, [
@@ -8198,7 +8198,7 @@ const WA = { class: "bubble-toolbar" }, $A = { class: "toolbar-group" }, GA = {
8198
8198
  ]),
8199
8199
  C.value ? (O(), U("div", {
8200
8200
  key: 0,
8201
- class: X(["color-picker-dropdown", { "show-left": B.value }]),
8201
+ class: X(["color-picker-dropdown", { "show-left": R.value }]),
8202
8202
  onClick: Y[5] || (Y[5] = oe(() => {
8203
8203
  }, ["stop"]))
8204
8204
  }, [
@@ -20671,8 +20671,8 @@ var O3 = function(t, n) {
20671
20671
  function L3(e) {
20672
20672
  var t, n = e.state, r = e.name, a = e.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, o = Mn(n.placement), u = Il(o), l = [Yt, un].indexOf(o) >= 0, c = l ? "height" : "width";
20673
20673
  if (!(!i || !s)) {
20674
- var f = O3(a.padding, n), h = vl(i), g = u === "y" ? jt : Yt, p = u === "y" ? on : un, m = n.rects.reference[c] + n.rects.reference[u] - s[u] - n.rects.popper[c], A = s[u] - n.rects.reference[u], E = bi(i), k = E ? u === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0, C = m / 2 - A / 2, T = f[g], I = k - h[c] - f[p], S = k / 2 - h[c] / 2 + C, B = La(T, S, I), D = u;
20675
- n.modifiersData[r] = (t = {}, t[D] = B, t.centerOffset = B - S, t);
20674
+ var f = O3(a.padding, n), h = vl(i), g = u === "y" ? jt : Yt, p = u === "y" ? on : un, m = n.rects.reference[c] + n.rects.reference[u] - s[u] - n.rects.popper[c], A = s[u] - n.rects.reference[u], E = bi(i), k = E ? u === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0, C = m / 2 - A / 2, T = f[g], I = k - h[c] - f[p], x = k / 2 - h[c] / 2 + C, R = La(T, x, I), D = u;
20675
+ n.modifiersData[r] = (t = {}, t[D] = R, t.centerOffset = R - x, t);
20676
20676
  }
20677
20677
  }
20678
20678
  function R3(e) {
@@ -20707,15 +20707,15 @@ function U3(e) {
20707
20707
  function Ef(e) {
20708
20708
  var t, n = e.popper, r = e.popperRect, a = e.placement, i = e.variation, s = e.offsets, o = e.position, u = e.gpuAcceleration, l = e.adaptive, c = e.roundOffsets, f = e.isFixed, h = c === !0 ? U3(s) : typeof c == "function" ? c(s) : s, g = h.x, p = g === void 0 ? 0 : g, m = h.y, A = m === void 0 ? 0 : m, E = s.hasOwnProperty("x"), k = s.hasOwnProperty("y"), C = Yt, T = jt, I = window;
20709
20709
  if (l) {
20710
- var S = bi(n), B = "clientHeight", D = "clientWidth";
20711
- if (S === En(n) && (S = hr(n), Pn(S).position !== "static" && o === "absolute" && (B = "scrollHeight", D = "scrollWidth")), S = S, a === jt || (a === Yt || a === un) && i === Xa) {
20710
+ var x = bi(n), R = "clientHeight", D = "clientWidth";
20711
+ if (x === En(n) && (x = hr(n), Pn(x).position !== "static" && o === "absolute" && (R = "scrollHeight", D = "scrollWidth")), x = x, a === jt || (a === Yt || a === un) && i === Xa) {
20712
20712
  T = on;
20713
- var N = f && I.visualViewport ? I.visualViewport.height : S[B];
20713
+ var N = f && I.visualViewport ? I.visualViewport.height : x[R];
20714
20714
  A -= N - r.height, A *= u ? 1 : -1;
20715
20715
  }
20716
20716
  if (a === Yt || (a === jt || a === on) && i === Xa) {
20717
20717
  C = un;
20718
- var _ = f && I.visualViewport ? I.visualViewport.width : S[D];
20718
+ var _ = f && I.visualViewport ? I.visualViewport.width : x[D];
20719
20719
  p -= _ - r.width, p *= u ? 1 : -1;
20720
20720
  }
20721
20721
  }
@@ -20920,17 +20920,17 @@ function ei(e, t) {
20920
20920
  reference: T,
20921
20921
  element: E,
20922
20922
  placement: a
20923
- }), S = du(Object.assign({}, E, I)), B = c === va ? S : T, D = {
20924
- top: C.top - B.top + m.top,
20925
- bottom: B.bottom - C.bottom + m.bottom,
20926
- left: C.left - B.left + m.left,
20927
- right: B.right - C.right + m.right
20923
+ }), x = du(Object.assign({}, E, I)), R = c === va ? x : T, D = {
20924
+ top: C.top - R.top + m.top,
20925
+ bottom: R.bottom - C.bottom + m.bottom,
20926
+ left: C.left - R.left + m.left,
20927
+ right: R.right - C.right + m.right
20928
20928
  }, N = e.modifiersData.offset;
20929
20929
  if (c === va && N) {
20930
20930
  var _ = N[a];
20931
20931
  Object.keys(D).forEach(function(F) {
20932
- var L = [un, on].indexOf(F) >= 0 ? 1 : -1, x = [jt, on].indexOf(F) >= 0 ? "y" : "x";
20933
- D[F] += _[x] * L;
20932
+ var L = [un, on].indexOf(F) >= 0 ? 1 : -1, M = [jt, on].indexOf(F) >= 0 ? "y" : "x";
20933
+ D[F] += _[M] * L;
20934
20934
  });
20935
20935
  }
20936
20936
  return D;
@@ -20973,15 +20973,15 @@ function Z3(e) {
20973
20973
  flipVariations: p,
20974
20974
  allowedAutoPlacements: m
20975
20975
  }) : Se);
20976
- }, []), I = t.rects.reference, S = t.rects.popper, B = /* @__PURE__ */ new Map(), D = !0, N = T[0], _ = 0; _ < T.length; _++) {
20977
- var F = T[_], L = Mn(F), x = ca(F) === sa, M = [jt, on].indexOf(L) >= 0, Q = M ? "width" : "height", G = ei(t, {
20976
+ }, []), I = t.rects.reference, x = t.rects.popper, R = /* @__PURE__ */ new Map(), D = !0, N = T[0], _ = 0; _ < T.length; _++) {
20977
+ var F = T[_], L = Mn(F), M = ca(F) === sa, S = [jt, on].indexOf(L) >= 0, Q = S ? "width" : "height", G = ei(t, {
20978
20978
  placement: F,
20979
20979
  boundary: c,
20980
20980
  rootBoundary: f,
20981
20981
  altBoundary: h,
20982
20982
  padding: l
20983
- }), W = M ? x ? un : Yt : x ? on : jt;
20984
- I[Q] > S[Q] && (W = rs(W));
20983
+ }), W = S ? M ? un : Yt : M ? on : jt;
20984
+ I[Q] > x[Q] && (W = rs(W));
20985
20985
  var K = rs(W), fe = [];
20986
20986
  if (i && fe.push(G[L] <= 0), o && fe.push(G[W] <= 0, G[K] <= 0), fe.every(function(ae) {
20987
20987
  return ae;
@@ -20989,12 +20989,12 @@ function Z3(e) {
20989
20989
  N = F, D = !1;
20990
20990
  break;
20991
20991
  }
20992
- B.set(F, fe);
20992
+ R.set(F, fe);
20993
20993
  }
20994
20994
  if (D)
20995
20995
  for (var Be = p ? 3 : 1, _e = function(Se) {
20996
20996
  var Je = T.find(function(ge) {
20997
- var Z = B.get(ge);
20997
+ var Z = R.get(ge);
20998
20998
  if (Z)
20999
20999
  return Z.slice(0, Se).every(function(he) {
21000
21000
  return he;
@@ -21108,7 +21108,7 @@ function uE(e) {
21108
21108
  rootBoundary: l,
21109
21109
  padding: f,
21110
21110
  altBoundary: c
21111
- }), E = Mn(t.placement), k = ca(t.placement), C = !k, T = Il(E), I = oE(T), S = t.modifiersData.popperOffsets, B = t.rects.reference, D = t.rects.popper, N = typeof m == "function" ? m(Object.assign({}, t.rects, {
21111
+ }), E = Mn(t.placement), k = ca(t.placement), C = !k, T = Il(E), I = oE(T), x = t.modifiersData.popperOffsets, R = t.rects.reference, D = t.rects.popper, N = typeof m == "function" ? m(Object.assign({}, t.rects, {
21112
21112
  placement: t.placement
21113
21113
  })) : m, _ = typeof N == "number" ? {
21114
21114
  mainAxis: N,
@@ -21120,17 +21120,17 @@ function uE(e) {
21120
21120
  x: 0,
21121
21121
  y: 0
21122
21122
  };
21123
- if (S) {
21123
+ if (x) {
21124
21124
  if (i) {
21125
- var x, M = T === "y" ? jt : Yt, Q = T === "y" ? on : un, G = T === "y" ? "height" : "width", W = S[T], K = W + A[M], fe = W - A[Q], Be = g ? -D[G] / 2 : 0, _e = k === sa ? B[G] : D[G], ze = k === sa ? -D[G] : -B[G], re = t.elements.arrow, ae = g && re ? vl(re) : {
21125
+ var M, S = T === "y" ? jt : Yt, Q = T === "y" ? on : un, G = T === "y" ? "height" : "width", W = x[T], K = W + A[S], fe = W - A[Q], Be = g ? -D[G] / 2 : 0, _e = k === sa ? R[G] : D[G], ze = k === sa ? -D[G] : -R[G], re = t.elements.arrow, ae = g && re ? vl(re) : {
21126
21126
  width: 0,
21127
21127
  height: 0
21128
- }, Se = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : p1(), Je = Se[M], ge = Se[Q], Z = La(0, B[G], ae[G]), he = C ? B[G] / 2 - Be - Z - Je - _.mainAxis : _e - Z - Je - _.mainAxis, Pe = C ? -B[G] / 2 + Be + Z + ge + _.mainAxis : ze + Z + ge + _.mainAxis, pe = t.elements.arrow && bi(t.elements.arrow), Te = pe ? T === "y" ? pe.clientTop || 0 : pe.clientLeft || 0 : 0, Ue = (x = F == null ? void 0 : F[T]) != null ? x : 0, Ae = W + he - Ue - Te, ct = W + Pe - Ue, ce = La(g ? ys(K, Ae) : K, W, g ? Mr(fe, ct) : fe);
21129
- S[T] = ce, L[T] = ce - W;
21128
+ }, Se = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : p1(), Je = Se[S], ge = Se[Q], Z = La(0, R[G], ae[G]), he = C ? R[G] / 2 - Be - Z - Je - _.mainAxis : _e - Z - Je - _.mainAxis, Pe = C ? -R[G] / 2 + Be + Z + ge + _.mainAxis : ze + Z + ge + _.mainAxis, pe = t.elements.arrow && bi(t.elements.arrow), Te = pe ? T === "y" ? pe.clientTop || 0 : pe.clientLeft || 0 : 0, Ue = (M = F == null ? void 0 : F[T]) != null ? M : 0, Ae = W + he - Ue - Te, ct = W + Pe - Ue, ce = La(g ? ys(K, Ae) : K, W, g ? Mr(fe, ct) : fe);
21129
+ x[T] = ce, L[T] = ce - W;
21130
21130
  }
21131
21131
  if (o) {
21132
- var nt, Ge = T === "x" ? jt : Yt, ft = T === "x" ? on : un, Qe = S[I], dt = I === "y" ? "height" : "width", mr = Qe + A[Ge], zr = Qe - A[ft], Bt = [jt, Yt].indexOf(E) !== -1, kt = (nt = F == null ? void 0 : F[I]) != null ? nt : 0, Un = Bt ? mr : Qe - B[dt] - D[dt] - kt + _.altAxis, Ci = Bt ? Qe + B[dt] + D[dt] - kt - _.altAxis : zr, Ni = g && Bt ? D3(Un, Qe, Ci) : La(g ? Un : mr, Qe, g ? Ci : zr);
21133
- S[I] = Ni, L[I] = Ni - Qe;
21132
+ var nt, Ge = T === "x" ? jt : Yt, ft = T === "x" ? on : un, Qe = x[I], dt = I === "y" ? "height" : "width", mr = Qe + A[Ge], zr = Qe - A[ft], Bt = [jt, Yt].indexOf(E) !== -1, kt = (nt = F == null ? void 0 : F[I]) != null ? nt : 0, Un = Bt ? mr : Qe - R[dt] - D[dt] - kt + _.altAxis, Ci = Bt ? Qe + R[dt] + D[dt] - kt - _.altAxis : zr, Ni = g && Bt ? D3(Un, Qe, Ci) : La(g ? Un : mr, Qe, g ? Ci : zr);
21133
+ x[I] = Ni, L[I] = Ni - Qe;
21134
21134
  }
21135
21135
  t.modifiersData[r] = L;
21136
21136
  }
@@ -21276,8 +21276,8 @@ function AE(e) {
21276
21276
  c.reset = !1, T = -1;
21277
21277
  continue;
21278
21278
  }
21279
- var I = c.orderedModifiers[T], S = I.fn, B = I.options, D = B === void 0 ? {} : B, N = I.name;
21280
- typeof S == "function" && (c = S({
21279
+ var I = c.orderedModifiers[T], x = I.fn, R = I.options, D = R === void 0 ? {} : R, N = I.name;
21280
+ typeof x == "function" && (c = x({
21281
21281
  state: c,
21282
21282
  options: D,
21283
21283
  name: N,
@@ -21310,9 +21310,9 @@ function AE(e) {
21310
21310
  name: E,
21311
21311
  instance: g,
21312
21312
  options: C
21313
- }), S = function() {
21313
+ }), x = function() {
21314
21314
  };
21315
- f.push(I || S);
21315
+ f.push(I || x);
21316
21316
  }
21317
21317
  });
21318
21318
  }
@@ -23600,12 +23600,12 @@ function K1(e, t, n) {
23600
23600
  if (m !== "exists") {
23601
23601
  if (Oo(t.charCodeAt(n))) {
23602
23602
  const I = t.charCodeAt(n);
23603
- let S = n + 1;
23604
- for (; S < t.length && (t.charCodeAt(S) !== I || o(S)); )
23605
- S += 1;
23606
- if (t.charCodeAt(S) !== I)
23603
+ let x = n + 1;
23604
+ for (; x < t.length && (t.charCodeAt(x) !== I || o(x)); )
23605
+ x += 1;
23606
+ if (t.charCodeAt(x) !== I)
23607
23607
  throw new Error("Attribute value didn't end");
23608
- E = Ia(t.slice(n + 1, S)), n = S + 1;
23608
+ E = Ia(t.slice(n + 1, x)), n = x + 1;
23609
23609
  } else {
23610
23610
  const I = n;
23611
23611
  for (; n < t.length && (!Of(t.charCodeAt(n)) && t.charCodeAt(n) !== 93 || o(n)); )
@@ -25664,138 +25664,138 @@ var Vt;
25664
25664
  (function(e) {
25665
25665
  e.NO_QUIRKS = "no-quirks", e.QUIRKS = "quirks", e.LIMITED_QUIRKS = "limited-quirks";
25666
25666
  })(Vt || (Vt = {}));
25667
- var R;
25667
+ var B;
25668
25668
  (function(e) {
25669
25669
  e.A = "a", e.ADDRESS = "address", e.ANNOTATION_XML = "annotation-xml", e.APPLET = "applet", e.AREA = "area", e.ARTICLE = "article", e.ASIDE = "aside", e.B = "b", e.BASE = "base", e.BASEFONT = "basefont", e.BGSOUND = "bgsound", e.BIG = "big", e.BLOCKQUOTE = "blockquote", e.BODY = "body", e.BR = "br", e.BUTTON = "button", e.CAPTION = "caption", e.CENTER = "center", e.CODE = "code", e.COL = "col", e.COLGROUP = "colgroup", e.DD = "dd", e.DESC = "desc", e.DETAILS = "details", e.DIALOG = "dialog", e.DIR = "dir", e.DIV = "div", e.DL = "dl", e.DT = "dt", e.EM = "em", e.EMBED = "embed", e.FIELDSET = "fieldset", e.FIGCAPTION = "figcaption", e.FIGURE = "figure", e.FONT = "font", e.FOOTER = "footer", e.FOREIGN_OBJECT = "foreignObject", e.FORM = "form", e.FRAME = "frame", e.FRAMESET = "frameset", e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e.HEAD = "head", e.HEADER = "header", e.HGROUP = "hgroup", e.HR = "hr", e.HTML = "html", e.I = "i", e.IMG = "img", e.IMAGE = "image", e.INPUT = "input", e.IFRAME = "iframe", e.KEYGEN = "keygen", e.LABEL = "label", e.LI = "li", e.LINK = "link", e.LISTING = "listing", e.MAIN = "main", e.MALIGNMARK = "malignmark", e.MARQUEE = "marquee", e.MATH = "math", e.MENU = "menu", e.META = "meta", e.MGLYPH = "mglyph", e.MI = "mi", e.MO = "mo", e.MN = "mn", e.MS = "ms", e.MTEXT = "mtext", e.NAV = "nav", e.NOBR = "nobr", e.NOFRAMES = "noframes", e.NOEMBED = "noembed", e.NOSCRIPT = "noscript", e.OBJECT = "object", e.OL = "ol", e.OPTGROUP = "optgroup", e.OPTION = "option", e.P = "p", e.PARAM = "param", e.PLAINTEXT = "plaintext", e.PRE = "pre", e.RB = "rb", e.RP = "rp", e.RT = "rt", e.RTC = "rtc", e.RUBY = "ruby", e.S = "s", e.SCRIPT = "script", e.SEARCH = "search", e.SECTION = "section", e.SELECT = "select", e.SOURCE = "source", e.SMALL = "small", e.SPAN = "span", e.STRIKE = "strike", e.STRONG = "strong", e.STYLE = "style", e.SUB = "sub", e.SUMMARY = "summary", e.SUP = "sup", e.TABLE = "table", e.TBODY = "tbody", e.TEMPLATE = "template", e.TEXTAREA = "textarea", e.TFOOT = "tfoot", e.TD = "td", e.TH = "th", e.THEAD = "thead", e.TITLE = "title", e.TR = "tr", e.TRACK = "track", e.TT = "tt", e.U = "u", e.UL = "ul", e.SVG = "svg", e.VAR = "var", e.WBR = "wbr", e.XMP = "xmp";
25670
- })(R || (R = {}));
25670
+ })(B || (B = {}));
25671
25671
  var d;
25672
25672
  (function(e) {
25673
25673
  e[e.UNKNOWN = 0] = "UNKNOWN", e[e.A = 1] = "A", e[e.ADDRESS = 2] = "ADDRESS", e[e.ANNOTATION_XML = 3] = "ANNOTATION_XML", e[e.APPLET = 4] = "APPLET", e[e.AREA = 5] = "AREA", e[e.ARTICLE = 6] = "ARTICLE", e[e.ASIDE = 7] = "ASIDE", e[e.B = 8] = "B", e[e.BASE = 9] = "BASE", e[e.BASEFONT = 10] = "BASEFONT", e[e.BGSOUND = 11] = "BGSOUND", e[e.BIG = 12] = "BIG", e[e.BLOCKQUOTE = 13] = "BLOCKQUOTE", e[e.BODY = 14] = "BODY", e[e.BR = 15] = "BR", e[e.BUTTON = 16] = "BUTTON", e[e.CAPTION = 17] = "CAPTION", e[e.CENTER = 18] = "CENTER", e[e.CODE = 19] = "CODE", e[e.COL = 20] = "COL", e[e.COLGROUP = 21] = "COLGROUP", e[e.DD = 22] = "DD", e[e.DESC = 23] = "DESC", e[e.DETAILS = 24] = "DETAILS", e[e.DIALOG = 25] = "DIALOG", e[e.DIR = 26] = "DIR", e[e.DIV = 27] = "DIV", e[e.DL = 28] = "DL", e[e.DT = 29] = "DT", e[e.EM = 30] = "EM", e[e.EMBED = 31] = "EMBED", e[e.FIELDSET = 32] = "FIELDSET", e[e.FIGCAPTION = 33] = "FIGCAPTION", e[e.FIGURE = 34] = "FIGURE", e[e.FONT = 35] = "FONT", e[e.FOOTER = 36] = "FOOTER", e[e.FOREIGN_OBJECT = 37] = "FOREIGN_OBJECT", e[e.FORM = 38] = "FORM", e[e.FRAME = 39] = "FRAME", e[e.FRAMESET = 40] = "FRAMESET", e[e.H1 = 41] = "H1", e[e.H2 = 42] = "H2", e[e.H3 = 43] = "H3", e[e.H4 = 44] = "H4", e[e.H5 = 45] = "H5", e[e.H6 = 46] = "H6", e[e.HEAD = 47] = "HEAD", e[e.HEADER = 48] = "HEADER", e[e.HGROUP = 49] = "HGROUP", e[e.HR = 50] = "HR", e[e.HTML = 51] = "HTML", e[e.I = 52] = "I", e[e.IMG = 53] = "IMG", e[e.IMAGE = 54] = "IMAGE", e[e.INPUT = 55] = "INPUT", e[e.IFRAME = 56] = "IFRAME", e[e.KEYGEN = 57] = "KEYGEN", e[e.LABEL = 58] = "LABEL", e[e.LI = 59] = "LI", e[e.LINK = 60] = "LINK", e[e.LISTING = 61] = "LISTING", e[e.MAIN = 62] = "MAIN", e[e.MALIGNMARK = 63] = "MALIGNMARK", e[e.MARQUEE = 64] = "MARQUEE", e[e.MATH = 65] = "MATH", e[e.MENU = 66] = "MENU", e[e.META = 67] = "META", e[e.MGLYPH = 68] = "MGLYPH", e[e.MI = 69] = "MI", e[e.MO = 70] = "MO", e[e.MN = 71] = "MN", e[e.MS = 72] = "MS", e[e.MTEXT = 73] = "MTEXT", e[e.NAV = 74] = "NAV", e[e.NOBR = 75] = "NOBR", e[e.NOFRAMES = 76] = "NOFRAMES", e[e.NOEMBED = 77] = "NOEMBED", e[e.NOSCRIPT = 78] = "NOSCRIPT", e[e.OBJECT = 79] = "OBJECT", e[e.OL = 80] = "OL", e[e.OPTGROUP = 81] = "OPTGROUP", e[e.OPTION = 82] = "OPTION", e[e.P = 83] = "P", e[e.PARAM = 84] = "PARAM", e[e.PLAINTEXT = 85] = "PLAINTEXT", e[e.PRE = 86] = "PRE", e[e.RB = 87] = "RB", e[e.RP = 88] = "RP", e[e.RT = 89] = "RT", e[e.RTC = 90] = "RTC", e[e.RUBY = 91] = "RUBY", e[e.S = 92] = "S", e[e.SCRIPT = 93] = "SCRIPT", e[e.SEARCH = 94] = "SEARCH", e[e.SECTION = 95] = "SECTION", e[e.SELECT = 96] = "SELECT", e[e.SOURCE = 97] = "SOURCE", e[e.SMALL = 98] = "SMALL", e[e.SPAN = 99] = "SPAN", e[e.STRIKE = 100] = "STRIKE", e[e.STRONG = 101] = "STRONG", e[e.STYLE = 102] = "STYLE", e[e.SUB = 103] = "SUB", e[e.SUMMARY = 104] = "SUMMARY", e[e.SUP = 105] = "SUP", e[e.TABLE = 106] = "TABLE", e[e.TBODY = 107] = "TBODY", e[e.TEMPLATE = 108] = "TEMPLATE", e[e.TEXTAREA = 109] = "TEXTAREA", e[e.TFOOT = 110] = "TFOOT", e[e.TD = 111] = "TD", e[e.TH = 112] = "TH", e[e.THEAD = 113] = "THEAD", e[e.TITLE = 114] = "TITLE", e[e.TR = 115] = "TR", e[e.TRACK = 116] = "TRACK", e[e.TT = 117] = "TT", e[e.U = 118] = "U", e[e.UL = 119] = "UL", e[e.SVG = 120] = "SVG", e[e.VAR = 121] = "VAR", e[e.WBR = 122] = "WBR", e[e.XMP = 123] = "XMP";
25674
25674
  })(d || (d = {}));
25675
25675
  const rv = /* @__PURE__ */ new Map([
25676
- [R.A, d.A],
25677
- [R.ADDRESS, d.ADDRESS],
25678
- [R.ANNOTATION_XML, d.ANNOTATION_XML],
25679
- [R.APPLET, d.APPLET],
25680
- [R.AREA, d.AREA],
25681
- [R.ARTICLE, d.ARTICLE],
25682
- [R.ASIDE, d.ASIDE],
25683
- [R.B, d.B],
25684
- [R.BASE, d.BASE],
25685
- [R.BASEFONT, d.BASEFONT],
25686
- [R.BGSOUND, d.BGSOUND],
25687
- [R.BIG, d.BIG],
25688
- [R.BLOCKQUOTE, d.BLOCKQUOTE],
25689
- [R.BODY, d.BODY],
25690
- [R.BR, d.BR],
25691
- [R.BUTTON, d.BUTTON],
25692
- [R.CAPTION, d.CAPTION],
25693
- [R.CENTER, d.CENTER],
25694
- [R.CODE, d.CODE],
25695
- [R.COL, d.COL],
25696
- [R.COLGROUP, d.COLGROUP],
25697
- [R.DD, d.DD],
25698
- [R.DESC, d.DESC],
25699
- [R.DETAILS, d.DETAILS],
25700
- [R.DIALOG, d.DIALOG],
25701
- [R.DIR, d.DIR],
25702
- [R.DIV, d.DIV],
25703
- [R.DL, d.DL],
25704
- [R.DT, d.DT],
25705
- [R.EM, d.EM],
25706
- [R.EMBED, d.EMBED],
25707
- [R.FIELDSET, d.FIELDSET],
25708
- [R.FIGCAPTION, d.FIGCAPTION],
25709
- [R.FIGURE, d.FIGURE],
25710
- [R.FONT, d.FONT],
25711
- [R.FOOTER, d.FOOTER],
25712
- [R.FOREIGN_OBJECT, d.FOREIGN_OBJECT],
25713
- [R.FORM, d.FORM],
25714
- [R.FRAME, d.FRAME],
25715
- [R.FRAMESET, d.FRAMESET],
25716
- [R.H1, d.H1],
25717
- [R.H2, d.H2],
25718
- [R.H3, d.H3],
25719
- [R.H4, d.H4],
25720
- [R.H5, d.H5],
25721
- [R.H6, d.H6],
25722
- [R.HEAD, d.HEAD],
25723
- [R.HEADER, d.HEADER],
25724
- [R.HGROUP, d.HGROUP],
25725
- [R.HR, d.HR],
25726
- [R.HTML, d.HTML],
25727
- [R.I, d.I],
25728
- [R.IMG, d.IMG],
25729
- [R.IMAGE, d.IMAGE],
25730
- [R.INPUT, d.INPUT],
25731
- [R.IFRAME, d.IFRAME],
25732
- [R.KEYGEN, d.KEYGEN],
25733
- [R.LABEL, d.LABEL],
25734
- [R.LI, d.LI],
25735
- [R.LINK, d.LINK],
25736
- [R.LISTING, d.LISTING],
25737
- [R.MAIN, d.MAIN],
25738
- [R.MALIGNMARK, d.MALIGNMARK],
25739
- [R.MARQUEE, d.MARQUEE],
25740
- [R.MATH, d.MATH],
25741
- [R.MENU, d.MENU],
25742
- [R.META, d.META],
25743
- [R.MGLYPH, d.MGLYPH],
25744
- [R.MI, d.MI],
25745
- [R.MO, d.MO],
25746
- [R.MN, d.MN],
25747
- [R.MS, d.MS],
25748
- [R.MTEXT, d.MTEXT],
25749
- [R.NAV, d.NAV],
25750
- [R.NOBR, d.NOBR],
25751
- [R.NOFRAMES, d.NOFRAMES],
25752
- [R.NOEMBED, d.NOEMBED],
25753
- [R.NOSCRIPT, d.NOSCRIPT],
25754
- [R.OBJECT, d.OBJECT],
25755
- [R.OL, d.OL],
25756
- [R.OPTGROUP, d.OPTGROUP],
25757
- [R.OPTION, d.OPTION],
25758
- [R.P, d.P],
25759
- [R.PARAM, d.PARAM],
25760
- [R.PLAINTEXT, d.PLAINTEXT],
25761
- [R.PRE, d.PRE],
25762
- [R.RB, d.RB],
25763
- [R.RP, d.RP],
25764
- [R.RT, d.RT],
25765
- [R.RTC, d.RTC],
25766
- [R.RUBY, d.RUBY],
25767
- [R.S, d.S],
25768
- [R.SCRIPT, d.SCRIPT],
25769
- [R.SEARCH, d.SEARCH],
25770
- [R.SECTION, d.SECTION],
25771
- [R.SELECT, d.SELECT],
25772
- [R.SOURCE, d.SOURCE],
25773
- [R.SMALL, d.SMALL],
25774
- [R.SPAN, d.SPAN],
25775
- [R.STRIKE, d.STRIKE],
25776
- [R.STRONG, d.STRONG],
25777
- [R.STYLE, d.STYLE],
25778
- [R.SUB, d.SUB],
25779
- [R.SUMMARY, d.SUMMARY],
25780
- [R.SUP, d.SUP],
25781
- [R.TABLE, d.TABLE],
25782
- [R.TBODY, d.TBODY],
25783
- [R.TEMPLATE, d.TEMPLATE],
25784
- [R.TEXTAREA, d.TEXTAREA],
25785
- [R.TFOOT, d.TFOOT],
25786
- [R.TD, d.TD],
25787
- [R.TH, d.TH],
25788
- [R.THEAD, d.THEAD],
25789
- [R.TITLE, d.TITLE],
25790
- [R.TR, d.TR],
25791
- [R.TRACK, d.TRACK],
25792
- [R.TT, d.TT],
25793
- [R.U, d.U],
25794
- [R.UL, d.UL],
25795
- [R.SVG, d.SVG],
25796
- [R.VAR, d.VAR],
25797
- [R.WBR, d.WBR],
25798
- [R.XMP, d.XMP]
25676
+ [B.A, d.A],
25677
+ [B.ADDRESS, d.ADDRESS],
25678
+ [B.ANNOTATION_XML, d.ANNOTATION_XML],
25679
+ [B.APPLET, d.APPLET],
25680
+ [B.AREA, d.AREA],
25681
+ [B.ARTICLE, d.ARTICLE],
25682
+ [B.ASIDE, d.ASIDE],
25683
+ [B.B, d.B],
25684
+ [B.BASE, d.BASE],
25685
+ [B.BASEFONT, d.BASEFONT],
25686
+ [B.BGSOUND, d.BGSOUND],
25687
+ [B.BIG, d.BIG],
25688
+ [B.BLOCKQUOTE, d.BLOCKQUOTE],
25689
+ [B.BODY, d.BODY],
25690
+ [B.BR, d.BR],
25691
+ [B.BUTTON, d.BUTTON],
25692
+ [B.CAPTION, d.CAPTION],
25693
+ [B.CENTER, d.CENTER],
25694
+ [B.CODE, d.CODE],
25695
+ [B.COL, d.COL],
25696
+ [B.COLGROUP, d.COLGROUP],
25697
+ [B.DD, d.DD],
25698
+ [B.DESC, d.DESC],
25699
+ [B.DETAILS, d.DETAILS],
25700
+ [B.DIALOG, d.DIALOG],
25701
+ [B.DIR, d.DIR],
25702
+ [B.DIV, d.DIV],
25703
+ [B.DL, d.DL],
25704
+ [B.DT, d.DT],
25705
+ [B.EM, d.EM],
25706
+ [B.EMBED, d.EMBED],
25707
+ [B.FIELDSET, d.FIELDSET],
25708
+ [B.FIGCAPTION, d.FIGCAPTION],
25709
+ [B.FIGURE, d.FIGURE],
25710
+ [B.FONT, d.FONT],
25711
+ [B.FOOTER, d.FOOTER],
25712
+ [B.FOREIGN_OBJECT, d.FOREIGN_OBJECT],
25713
+ [B.FORM, d.FORM],
25714
+ [B.FRAME, d.FRAME],
25715
+ [B.FRAMESET, d.FRAMESET],
25716
+ [B.H1, d.H1],
25717
+ [B.H2, d.H2],
25718
+ [B.H3, d.H3],
25719
+ [B.H4, d.H4],
25720
+ [B.H5, d.H5],
25721
+ [B.H6, d.H6],
25722
+ [B.HEAD, d.HEAD],
25723
+ [B.HEADER, d.HEADER],
25724
+ [B.HGROUP, d.HGROUP],
25725
+ [B.HR, d.HR],
25726
+ [B.HTML, d.HTML],
25727
+ [B.I, d.I],
25728
+ [B.IMG, d.IMG],
25729
+ [B.IMAGE, d.IMAGE],
25730
+ [B.INPUT, d.INPUT],
25731
+ [B.IFRAME, d.IFRAME],
25732
+ [B.KEYGEN, d.KEYGEN],
25733
+ [B.LABEL, d.LABEL],
25734
+ [B.LI, d.LI],
25735
+ [B.LINK, d.LINK],
25736
+ [B.LISTING, d.LISTING],
25737
+ [B.MAIN, d.MAIN],
25738
+ [B.MALIGNMARK, d.MALIGNMARK],
25739
+ [B.MARQUEE, d.MARQUEE],
25740
+ [B.MATH, d.MATH],
25741
+ [B.MENU, d.MENU],
25742
+ [B.META, d.META],
25743
+ [B.MGLYPH, d.MGLYPH],
25744
+ [B.MI, d.MI],
25745
+ [B.MO, d.MO],
25746
+ [B.MN, d.MN],
25747
+ [B.MS, d.MS],
25748
+ [B.MTEXT, d.MTEXT],
25749
+ [B.NAV, d.NAV],
25750
+ [B.NOBR, d.NOBR],
25751
+ [B.NOFRAMES, d.NOFRAMES],
25752
+ [B.NOEMBED, d.NOEMBED],
25753
+ [B.NOSCRIPT, d.NOSCRIPT],
25754
+ [B.OBJECT, d.OBJECT],
25755
+ [B.OL, d.OL],
25756
+ [B.OPTGROUP, d.OPTGROUP],
25757
+ [B.OPTION, d.OPTION],
25758
+ [B.P, d.P],
25759
+ [B.PARAM, d.PARAM],
25760
+ [B.PLAINTEXT, d.PLAINTEXT],
25761
+ [B.PRE, d.PRE],
25762
+ [B.RB, d.RB],
25763
+ [B.RP, d.RP],
25764
+ [B.RT, d.RT],
25765
+ [B.RTC, d.RTC],
25766
+ [B.RUBY, d.RUBY],
25767
+ [B.S, d.S],
25768
+ [B.SCRIPT, d.SCRIPT],
25769
+ [B.SEARCH, d.SEARCH],
25770
+ [B.SECTION, d.SECTION],
25771
+ [B.SELECT, d.SELECT],
25772
+ [B.SOURCE, d.SOURCE],
25773
+ [B.SMALL, d.SMALL],
25774
+ [B.SPAN, d.SPAN],
25775
+ [B.STRIKE, d.STRIKE],
25776
+ [B.STRONG, d.STRONG],
25777
+ [B.STYLE, d.STYLE],
25778
+ [B.SUB, d.SUB],
25779
+ [B.SUMMARY, d.SUMMARY],
25780
+ [B.SUP, d.SUP],
25781
+ [B.TABLE, d.TABLE],
25782
+ [B.TBODY, d.TBODY],
25783
+ [B.TEMPLATE, d.TEMPLATE],
25784
+ [B.TEXTAREA, d.TEXTAREA],
25785
+ [B.TFOOT, d.TFOOT],
25786
+ [B.TD, d.TD],
25787
+ [B.TH, d.TH],
25788
+ [B.THEAD, d.THEAD],
25789
+ [B.TITLE, d.TITLE],
25790
+ [B.TR, d.TR],
25791
+ [B.TRACK, d.TRACK],
25792
+ [B.TT, d.TT],
25793
+ [B.U, d.U],
25794
+ [B.UL, d.UL],
25795
+ [B.SVG, d.SVG],
25796
+ [B.VAR, d.VAR],
25797
+ [B.WBR, d.WBR],
25798
+ [B.XMP, d.XMP]
25799
25799
  ]);
25800
25800
  function so(e) {
25801
25801
  var t;
@@ -25891,16 +25891,16 @@ const V = d, av = {
25891
25891
  [$.XML]: /* @__PURE__ */ new Set(),
25892
25892
  [$.XMLNS]: /* @__PURE__ */ new Set()
25893
25893
  }, vu = /* @__PURE__ */ new Set([V.H1, V.H2, V.H3, V.H4, V.H5, V.H6]), iv = /* @__PURE__ */ new Set([
25894
- R.STYLE,
25895
- R.SCRIPT,
25896
- R.XMP,
25897
- R.IFRAME,
25898
- R.NOEMBED,
25899
- R.NOFRAMES,
25900
- R.PLAINTEXT
25894
+ B.STYLE,
25895
+ B.SCRIPT,
25896
+ B.XMP,
25897
+ B.IFRAME,
25898
+ B.NOEMBED,
25899
+ B.NOFRAMES,
25900
+ B.PLAINTEXT
25901
25901
  ]);
25902
25902
  function sv(e, t) {
25903
- return iv.has(e) || t && e === R.NOSCRIPT;
25903
+ return iv.has(e) || t && e === B.NOSCRIPT;
25904
25904
  }
25905
25905
  var v;
25906
25906
  (function(e) {
@@ -28633,7 +28633,7 @@ let vh = class {
28633
28633
  ...Gf,
28634
28634
  ...n
28635
28635
  };
28636
- t ?? (t = r.treeAdapter.createElement(R.TEMPLATE, $.HTML, []));
28636
+ t ?? (t = r.treeAdapter.createElement(B.TEMPLATE, $.HTML, []));
28637
28637
  const a = r.treeAdapter.createElement("documentmock", $.HTML, []), i = new this(r, a, t);
28638
28638
  return i.fragmentContextID === d.TEMPLATE && i.tmplInsertionModeStack.unshift(w.IN_TEMPLATE), i._initTokenizerForFragmentParsing(), i._insertFakeRootElement(), i._resetInsertionMode(), i._findFormInFragmentContext(), i;
28639
28639
  }
@@ -28692,7 +28692,7 @@ let vh = class {
28692
28692
  _findFormInFragmentContext() {
28693
28693
  let t = this.fragmentContext;
28694
28694
  for (; t; ) {
28695
- if (this.treeAdapter.getTagName(t) === R.FORM) {
28695
+ if (this.treeAdapter.getTagName(t) === B.FORM) {
28696
28696
  this.formElement = t;
28697
28697
  break;
28698
28698
  }
@@ -28777,7 +28777,7 @@ let vh = class {
28777
28777
  }
28778
28778
  /** @protected */
28779
28779
  _insertFakeRootElement() {
28780
- const t = this.treeAdapter.createElement(R.HTML, $.HTML, []);
28780
+ const t = this.treeAdapter.createElement(B.HTML, $.HTML, []);
28781
28781
  this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(t, null), this.treeAdapter.appendChild(this.openElements.current, t), this.openElements.push(t, d.HTML);
28782
28782
  }
28783
28783
  /** @protected */
@@ -28826,7 +28826,7 @@ let vh = class {
28826
28826
  if (!this.currentNotInHTML)
28827
28827
  return !1;
28828
28828
  let n, r;
28829
- return this.openElements.stackTop === 0 && this.fragmentContext ? (n = this.fragmentContext, r = this.fragmentContextID) : { current: n, currentTagId: r } = this.openElements, t.tagID === d.SVG && this.treeAdapter.getTagName(n) === R.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(n) === $.MATHML ? !1 : (
28829
+ return this.openElements.stackTop === 0 && this.fragmentContext ? (n = this.fragmentContext, r = this.fragmentContextID) : { current: n, currentTagId: r } = this.openElements, t.tagID === d.SVG && this.treeAdapter.getTagName(n) === B.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(n) === $.MATHML ? !1 : (
28830
28830
  // Check that `current` is not an integration point for HTML or MathML elements.
28831
28831
  this.tokenizer.inForeignNode || // If it _is_ an integration point, then we might have to check that it is not an HTML
28832
28832
  // integration point.
@@ -29629,7 +29629,7 @@ function Xv(e, t) {
29629
29629
  n === d.HEAD || n === d.BODY || n === d.HTML || n === d.BR ? Ua(e, t) : e._err(t, H.endTagWithoutMatchingOpenElement);
29630
29630
  }
29631
29631
  function Ua(e, t) {
29632
- e._insertFakeElement(R.HEAD, d.HEAD), e.headElement = e.openElements.current, e.insertionMode = w.IN_HEAD, e._processToken(t);
29632
+ e._insertFakeElement(B.HEAD, d.HEAD), e.headElement = e.openElements.current, e.insertionMode = w.IN_HEAD, e._processToken(t);
29633
29633
  }
29634
29634
  function yn(e, t) {
29635
29635
  switch (t.tagID) {
@@ -29794,7 +29794,7 @@ function aI(e, t) {
29794
29794
  }
29795
29795
  }
29796
29796
  function za(e, t) {
29797
- e._insertFakeElement(R.BODY, d.BODY), e.insertionMode = w.IN_BODY, oo(e, t);
29797
+ e._insertFakeElement(B.BODY, d.BODY), e.insertionMode = w.IN_BODY, oo(e, t);
29798
29798
  }
29799
29799
  function oo(e, t) {
29800
29800
  switch (t.type) {
@@ -29875,7 +29875,7 @@ function gI(e, t) {
29875
29875
  e.openElements.hasInScope(d.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(d.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, $.HTML), e.framesetOk = !1;
29876
29876
  }
29877
29877
  function pI(e, t) {
29878
- const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(R.A);
29878
+ const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(B.A);
29879
29879
  n && ($l(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, $.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
29880
29880
  }
29881
29881
  function mI(e, t) {
@@ -29907,7 +29907,7 @@ function vI(e, t) {
29907
29907
  e.openElements.hasInButtonScope(d.P) && e._closePElement(), e._appendElement(t, $.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
29908
29908
  }
29909
29909
  function II(e, t) {
29910
- t.tagName = R.IMG, t.tagID = d.IMG, wh(e, t);
29910
+ t.tagName = B.IMG, t.tagID = d.IMG, wh(e, t);
29911
29911
  }
29912
29912
  function kI(e, t) {
29913
29913
  e._insertElement(t, $.HTML), e.skipNextNewLine = !0, e.tokenizer.state = zt.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = w.TEXT;
@@ -30170,7 +30170,7 @@ function BI(e) {
30170
30170
  t || (e.formElement = null), (n || t) && e.openElements.hasInScope(d.FORM) && (e.openElements.generateImpliedEndTags(), t ? e.openElements.popUntilTagNamePopped(d.FORM) : n && e.openElements.remove(n));
30171
30171
  }
30172
30172
  function PI(e) {
30173
- e.openElements.hasInButtonScope(d.P) || e._insertFakeElement(R.P, d.P), e._closePElement();
30173
+ e.openElements.hasInButtonScope(d.P) || e._insertFakeElement(B.P, d.P), e._closePElement();
30174
30174
  }
30175
30175
  function UI(e) {
30176
30176
  e.openElements.hasInListItemScope(d.LI) && (e.openElements.generateImpliedEndTagsWithExclusion(d.LI), e.openElements.popUntilTagNamePopped(d.LI));
@@ -30187,7 +30187,7 @@ function zI(e, t) {
30187
30187
  e.openElements.hasInScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker());
30188
30188
  }
30189
30189
  function jI(e) {
30190
- e._reconstructActiveFormattingElements(), e._insertFakeElement(R.BR, d.BR), e.openElements.pop(), e.framesetOk = !1;
30190
+ e._reconstructActiveFormattingElements(), e._insertFakeElement(B.BR, d.BR), e.openElements.pop(), e.framesetOk = !1;
30191
30191
  }
30192
30192
  function Nh(e, t) {
30193
30193
  const n = t.tagName, r = t.tagID;
@@ -30334,13 +30334,13 @@ function WI(e, t) {
30334
30334
  e.openElements.clearBackToTableContext(), e._insertElement(t, $.HTML), e.insertionMode = w.IN_COLUMN_GROUP;
30335
30335
  }
30336
30336
  function $I(e, t) {
30337
- e.openElements.clearBackToTableContext(), e._insertFakeElement(R.COLGROUP, d.COLGROUP), e.insertionMode = w.IN_COLUMN_GROUP, ql(e, t);
30337
+ e.openElements.clearBackToTableContext(), e._insertFakeElement(B.COLGROUP, d.COLGROUP), e.insertionMode = w.IN_COLUMN_GROUP, ql(e, t);
30338
30338
  }
30339
30339
  function GI(e, t) {
30340
30340
  e.openElements.clearBackToTableContext(), e._insertElement(t, $.HTML), e.insertionMode = w.IN_TABLE_BODY;
30341
30341
  }
30342
30342
  function qI(e, t) {
30343
- e.openElements.clearBackToTableContext(), e._insertFakeElement(R.TBODY, d.TBODY), e.insertionMode = w.IN_TABLE_BODY, lo(e, t);
30343
+ e.openElements.clearBackToTableContext(), e._insertFakeElement(B.TBODY, d.TBODY), e.insertionMode = w.IN_TABLE_BODY, lo(e, t);
30344
30344
  }
30345
30345
  function VI(e, t) {
30346
30346
  e.openElements.hasInTableScope(d.TABLE) && (e.openElements.popUntilTagNamePopped(d.TABLE), e._resetInsertionMode(), e._processStartTag(t));
@@ -30518,7 +30518,7 @@ function lo(e, t) {
30518
30518
  }
30519
30519
  case d.TH:
30520
30520
  case d.TD: {
30521
- e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(R.TR, d.TR), e.insertionMode = w.IN_ROW, co(e, t);
30521
+ e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(B.TR, d.TR), e.insertionMode = w.IN_ROW, co(e, t);
30522
30522
  break;
30523
30523
  }
30524
30524
  case d.CAPTION:
@@ -30872,24 +30872,24 @@ const Ek = /* @__PURE__ */ Uh(/["&\u00A0]/g, /* @__PURE__ */ new Map([
30872
30872
  [62, "&gt;"],
30873
30873
  [160, "&nbsp;"]
30874
30874
  ])), Tk = /* @__PURE__ */ new Set([
30875
- R.AREA,
30876
- R.BASE,
30877
- R.BASEFONT,
30878
- R.BGSOUND,
30879
- R.BR,
30880
- R.COL,
30881
- R.EMBED,
30882
- R.FRAME,
30883
- R.HR,
30884
- R.IMG,
30885
- R.INPUT,
30886
- R.KEYGEN,
30887
- R.LINK,
30888
- R.META,
30889
- R.PARAM,
30890
- R.SOURCE,
30891
- R.TRACK,
30892
- R.WBR
30875
+ B.AREA,
30876
+ B.BASE,
30877
+ B.BASEFONT,
30878
+ B.BGSOUND,
30879
+ B.BR,
30880
+ B.COL,
30881
+ B.EMBED,
30882
+ B.FRAME,
30883
+ B.HR,
30884
+ B.IMG,
30885
+ B.INPUT,
30886
+ B.KEYGEN,
30887
+ B.LINK,
30888
+ B.META,
30889
+ B.PARAM,
30890
+ B.SOURCE,
30891
+ B.TRACK,
30892
+ B.WBR
30893
30893
  ]);
30894
30894
  function vk(e, t) {
30895
30895
  return t.treeAdapter.isElementNode(e) && t.treeAdapter.getNamespaceURI(e) === $.HTML && Tk.has(t.treeAdapter.getTagName(e));
@@ -30901,7 +30901,7 @@ function kk(e, t) {
30901
30901
  }
30902
30902
  function wk(e, t) {
30903
30903
  let n = "";
30904
- const r = t.treeAdapter.isElementNode(e) && t.treeAdapter.getTagName(e) === R.TEMPLATE && t.treeAdapter.getNamespaceURI(e) === $.HTML ? t.treeAdapter.getTemplateContent(e) : e, a = t.treeAdapter.getChildNodes(r);
30904
+ const r = t.treeAdapter.isElementNode(e) && t.treeAdapter.getTagName(e) === B.TEMPLATE && t.treeAdapter.getNamespaceURI(e) === $.HTML ? t.treeAdapter.getTemplateContent(e) : e, a = t.treeAdapter.getChildNodes(r);
30905
30905
  if (a)
30906
30906
  for (const i of a)
30907
30907
  n += Fh(i, t);
@@ -32163,10 +32163,10 @@ var Vl = Kh.exports;
32163
32163
  var W = f.pop();
32164
32164
  return c = f[f.length - 1], W;
32165
32165
  }
32166
- function S(W) {
32166
+ function x(W) {
32167
32167
  return c = W, f.push(c), f.length;
32168
32168
  }
32169
- function B(W) {
32169
+ function R(W) {
32170
32170
  var K = c;
32171
32171
  return f[f.length - 1] = c = W, K;
32172
32172
  }
@@ -32235,13 +32235,13 @@ var Vl = Kh.exports;
32235
32235
  case ":":
32236
32236
  switch (A()) {
32237
32237
  case "name":
32238
- h.name = a.trim(), a = "", B("before-value");
32238
+ h.name = a.trim(), a = "", R("before-value");
32239
32239
  break;
32240
32240
  case "before-selector":
32241
- a += i, _("selector"), S("selector");
32241
+ a += i, _("selector"), x("selector");
32242
32242
  break;
32243
32243
  case "before-value":
32244
- B("value"), a += i;
32244
+ R("value"), a += i;
32245
32245
  break;
32246
32246
  default:
32247
32247
  a += i;
@@ -32253,7 +32253,7 @@ var Vl = Kh.exports;
32253
32253
  case "name":
32254
32254
  case "before-value":
32255
32255
  case "value":
32256
- a.trim().length > 0 && (h.value = a.trim(), N()), B("before-name");
32256
+ a.trim().length > 0 && (h.value = a.trim(), N()), R("before-name");
32257
32257
  break;
32258
32258
  case "value-paren":
32259
32259
  a += i;
@@ -32275,23 +32275,23 @@ var Vl = Kh.exports;
32275
32275
  a += i;
32276
32276
  break;
32277
32277
  }
32278
- h.text = a.trim(), N(), B("before-name"), u = u + 1;
32278
+ h.text = a.trim(), N(), R("before-name"), u = u + 1;
32279
32279
  break;
32280
32280
  case "at-group":
32281
32281
  switch (h.name = a.trim(), h.type) {
32282
32282
  case "font-face":
32283
32283
  case "viewport":
32284
32284
  case "page":
32285
- S("before-name");
32285
+ x("before-name");
32286
32286
  break;
32287
32287
  default:
32288
- S("before-selector");
32288
+ x("before-selector");
32289
32289
  }
32290
32290
  N(), u = u + 1;
32291
32291
  break;
32292
32292
  case "name":
32293
32293
  case "at-rule":
32294
- h.name = a.trim(), N(), S("before-name"), u = u + 1;
32294
+ h.name = a.trim(), N(), x("before-name"), u = u + 1;
32295
32295
  break;
32296
32296
  case "comment":
32297
32297
  case "double-string":
@@ -32299,7 +32299,7 @@ var Vl = Kh.exports;
32299
32299
  a += i;
32300
32300
  break;
32301
32301
  case "before-value":
32302
- B("value"), a += i;
32302
+ R("value"), a += i;
32303
32303
  break;
32304
32304
  }
32305
32305
  break;
@@ -32337,15 +32337,15 @@ var Vl = Kh.exports;
32337
32337
  i === "'" && T(-1) !== "\\" && I();
32338
32338
  break;
32339
32339
  case "before-at-value":
32340
- B("at-value"), S(i === '"' ? "double-string" : "single-string");
32340
+ R("at-value"), x(i === '"' ? "double-string" : "single-string");
32341
32341
  break;
32342
32342
  case "before-value":
32343
- B("value"), S(i === '"' ? "double-string" : "single-string");
32343
+ R("value"), x(i === '"' ? "double-string" : "single-string");
32344
32344
  break;
32345
32345
  case "comment":
32346
32346
  break;
32347
32347
  default:
32348
- T(-1) !== "\\" && S(i === '"' ? "double-string" : "single-string");
32348
+ T(-1) !== "\\" && x(i === '"' ? "double-string" : "single-string");
32349
32349
  }
32350
32350
  a += i;
32351
32351
  break;
@@ -32364,10 +32364,10 @@ var Vl = Kh.exports;
32364
32364
  var F = k("*/");
32365
32365
  F && D(F + 1);
32366
32366
  } else
32367
- A() == "before-value" && B("value"), a += i;
32367
+ A() == "before-value" && R("value"), a += i;
32368
32368
  break;
32369
32369
  default:
32370
- C("*") ? (_("comment"), S("comment"), D()) : a += i;
32370
+ C("*") ? (_("comment"), x("comment"), D()) : a += i;
32371
32371
  break;
32372
32372
  }
32373
32373
  break;
@@ -32377,10 +32377,10 @@ var Vl = Kh.exports;
32377
32377
  C("/") ? (h.text = a, D(), N(), I()) : a += i;
32378
32378
  break;
32379
32379
  case "before-selector":
32380
- a += i, _("selector"), S("selector");
32380
+ a += i, _("selector"), x("selector");
32381
32381
  break;
32382
32382
  case "before-value":
32383
- B("value"), a += i;
32383
+ R("value"), a += i;
32384
32384
  break;
32385
32385
  default:
32386
32386
  a += i;
@@ -32394,11 +32394,11 @@ var Vl = Kh.exports;
32394
32394
  a += i;
32395
32395
  break;
32396
32396
  case "before-value":
32397
- B("value"), a += i;
32397
+ R("value"), a += i;
32398
32398
  break;
32399
32399
  default:
32400
- for (var L = !1, x, M, Q = 0, G = p.length; !L && Q < G; ++Q)
32401
- M = p[Q], x = M.name || M, E(x) && (L = !0, _(x), S(M.state || "at-group"), D(x.length), M.prefix && (h.prefix = M.prefix), M.type && (h.type = M.type));
32400
+ for (var L = !1, M, S, Q = 0, G = p.length; !L && Q < G; ++Q)
32401
+ S = p[Q], M = S.name || S, E(M) && (L = !0, _(M), x(S.state || "at-group"), D(M.length), S.prefix && (h.prefix = S.prefix), S.type && (h.type = S.type));
32402
32402
  L || (a += i);
32403
32403
  break;
32404
32404
  }
@@ -32406,10 +32406,10 @@ var Vl = Kh.exports;
32406
32406
  case "(":
32407
32407
  switch (A()) {
32408
32408
  case "value":
32409
- S("value-paren");
32409
+ x("value-paren");
32410
32410
  break;
32411
32411
  case "before-value":
32412
- B("value");
32412
+ R("value");
32413
32413
  break;
32414
32414
  }
32415
32415
  a += i;
@@ -32420,7 +32420,7 @@ var Vl = Kh.exports;
32420
32420
  I();
32421
32421
  break;
32422
32422
  case "before-value":
32423
- B("value");
32423
+ R("value");
32424
32424
  break;
32425
32425
  }
32426
32426
  a += i;
@@ -32428,16 +32428,16 @@ var Vl = Kh.exports;
32428
32428
  default:
32429
32429
  switch (A()) {
32430
32430
  case "before-selector":
32431
- _("selector"), S("selector");
32431
+ _("selector"), x("selector");
32432
32432
  break;
32433
32433
  case "before-name":
32434
- _("property"), B("name");
32434
+ _("property"), R("name");
32435
32435
  break;
32436
32436
  case "before-value":
32437
- B("value");
32437
+ R("value");
32438
32438
  break;
32439
32439
  case "before-at-value":
32440
- B("at-value");
32440
+ R("at-value");
32441
32441
  break;
32442
32442
  }
32443
32443
  a += i;
@@ -32452,10 +32452,10 @@ var Wh = Qh.exports, $h = { exports: {} };
32452
32452
  var n = Wh;
32453
32453
  e.exports = o;
32454
32454
  var r, a, i, s;
32455
- function o(I, S) {
32456
- S || (S = {}), r = !!S.comments, i = !!S.position, a = 0, s = Array.isArray(I) ? I.slice() : n(I);
32457
- for (var B, D = [], N; N = l(); )
32458
- B = E(N), B && D.push(B);
32455
+ function o(I, x) {
32456
+ x || (x = {}), r = !!x.comments, i = !!x.position, a = 0, s = Array.isArray(I) ? I.slice() : n(I);
32457
+ for (var R, D = [], N; N = l(); )
32458
+ R = E(N), R && D.push(R);
32459
32459
  return {
32460
32460
  type: "stylesheet",
32461
32461
  stylesheet: {
@@ -32463,12 +32463,12 @@ var Wh = Qh.exports, $h = { exports: {} };
32463
32463
  }
32464
32464
  };
32465
32465
  }
32466
- function u(I, S) {
32467
- S || (S = {});
32468
- for (var B, D = ["type", "name", "value"], N = {}, _ = 0; _ < D.length; ++_)
32469
- B = D[_], I[B] && (N[B] = S[B] || I[B]);
32470
- for (D = Object.keys(S), _ = 0; _ < D.length; ++_)
32471
- B = D[_], N[B] || (N[B] = S[B]);
32466
+ function u(I, x) {
32467
+ x || (x = {});
32468
+ for (var R, D = ["type", "name", "value"], N = {}, _ = 0; _ < D.length; ++_)
32469
+ R = D[_], I[R] && (N[R] = x[R] || I[R]);
32470
+ for (D = Object.keys(x), _ = 0; _ < D.length; ++_)
32471
+ R = D[_], N[R] || (N[R] = x[R]);
32472
32472
  return i && (N.position = {
32473
32473
  start: I.start,
32474
32474
  end: I.end
@@ -32480,19 +32480,19 @@ var Wh = Qh.exports, $h = { exports: {} };
32480
32480
  }
32481
32481
  function c(I) {
32482
32482
  a = a + 1;
32483
- var S = {};
32483
+ var x = {};
32484
32484
  switch (I.type) {
32485
32485
  case "font-face":
32486
32486
  case "viewport":
32487
- S.declarations = C();
32487
+ x.declarations = C();
32488
32488
  break;
32489
32489
  case "page":
32490
- S.prefix = I.prefix, S.declarations = C();
32490
+ x.prefix = I.prefix, x.declarations = C();
32491
32491
  break;
32492
32492
  default:
32493
- S.prefix = I.prefix, S.rules = T();
32493
+ x.prefix = I.prefix, x.rules = T();
32494
32494
  }
32495
- return u(I, S);
32495
+ return u(I, x);
32496
32496
  }
32497
32497
  function f(I) {
32498
32498
  return u(I);
@@ -32510,12 +32510,12 @@ var Wh = Qh.exports, $h = { exports: {} };
32510
32510
  return u(I);
32511
32511
  }
32512
32512
  function A(I) {
32513
- function S(B) {
32514
- return B.trim();
32513
+ function x(R) {
32514
+ return R.trim();
32515
32515
  }
32516
32516
  return u(I, {
32517
32517
  type: "rule",
32518
- selectors: I.text.split(",").map(S),
32518
+ selectors: I.text.split(",").map(x),
32519
32519
  declarations: C()
32520
32520
  });
32521
32521
  }
@@ -32550,9 +32550,9 @@ var Wh = Qh.exports, $h = { exports: {} };
32550
32550
  }
32551
32551
  }
32552
32552
  function k(I) {
32553
- for (var S, B = [], D; (D = l()) && I && I(D); )
32554
- S = E(D), S && B.push(S);
32555
- return D && D.type !== "end" && s.unshift(D), B;
32553
+ for (var x, R = [], D; (D = l()) && I && I(D); )
32554
+ x = E(D), x && R.push(x);
32555
+ return D && D.type !== "end" && s.unshift(D), R;
32556
32556
  }
32557
32557
  function C() {
32558
32558
  return k(function(I) {
@@ -32573,9 +32573,9 @@ var tw = $h.exports, Gh = { exports: {} };
32573
32573
  function u(T, I) {
32574
32574
  I || (I = {}), a = I.indentation || "", r = !!I.compress, n = !!I.comments, i = 1, r ? s = o = "" : (s = `
32575
32575
  `, o = " ");
32576
- var S = p(T.stylesheet.rules, k).join(`
32576
+ var x = p(T.stylesheet.rules, k).join(`
32577
32577
  `).trim();
32578
- return S;
32578
+ return x;
32579
32579
  }
32580
32580
  function l(T) {
32581
32581
  if (T) {
@@ -32588,10 +32588,10 @@ var tw = $h.exports, Gh = { exports: {} };
32588
32588
  return "@" + T.type + " " + T.value + ";" + s;
32589
32589
  }
32590
32590
  function f(T) {
32591
- var I = "", S = T.prefix || "";
32591
+ var I = "", x = T.prefix || "";
32592
32592
  T.name && (I = " " + T.name);
32593
- var B = T.type !== "page";
32594
- return "@" + S + T.type + I + o + m(T, B) + s;
32593
+ var R = T.type !== "page";
32594
+ return "@" + x + T.type + I + o + m(T, R) + s;
32595
32595
  }
32596
32596
  function h(T) {
32597
32597
  return n ? "/*" + (T.text || "") + "*/" + s : "";
@@ -32601,21 +32601,21 @@ var tw = $h.exports, Gh = { exports: {} };
32601
32601
  return T.selectors ? I = T.selectors.join("," + s) : (I = "@" + T.type, I += T.name ? " " + T.name : ""), l() + I + o + m(T) + s;
32602
32602
  }
32603
32603
  function p(T, I) {
32604
- return T.reduce(function(S, B) {
32605
- var D = B.type === "comment" ? h(B) : I(B);
32606
- return D && S.push(D), S;
32604
+ return T.reduce(function(x, R) {
32605
+ var D = R.type === "comment" ? h(R) : I(R);
32606
+ return D && x.push(D), x;
32607
32607
  }, []);
32608
32608
  }
32609
32609
  function m(T, I) {
32610
- var S = T.declarations, B = E;
32611
- return T.rules && (S = T.rules, B = g), S = A(S, B), S && (S = s + S + (I ? "" : s)), "{" + S + l() + "}";
32610
+ var x = T.declarations, R = E;
32611
+ return T.rules && (x = T.rules, R = g), x = A(x, R), x && (x = s + x + (I ? "" : s)), "{" + x + l() + "}";
32612
32612
  }
32613
32613
  function A(T, I) {
32614
32614
  if (!T)
32615
32615
  return "";
32616
32616
  l(1);
32617
- var S = p(T, I);
32618
- return l(-1), S.length ? S.join(s) : "";
32617
+ var x = p(T, I);
32618
+ return l(-1), x.length ? x.join(s) : "";
32619
32619
  }
32620
32620
  function E(T) {
32621
32621
  if (T.type === "property")
@@ -32867,7 +32867,7 @@ function Jl() {
32867
32867
  C.type === "property" && A.push(C);
32868
32868
  }
32869
32869
  if (A.length > 0)
32870
- for (var I = 0, S = m.length; I < S; I++)
32870
+ for (var I = 0, x = m.length; I < x; I++)
32871
32871
  o.push([m[I], A]);
32872
32872
  }
32873
32873
  }
@@ -33231,8 +33231,8 @@ var sd;
33231
33231
  for (; F < _.length; ) {
33232
33232
  const L = _.charCodeAt(F);
33233
33233
  if (o(L) || u(L)) {
33234
- const x = L <= i.NINE ? L - i.ZERO : (L | s) - i.LOWER_A + 10;
33235
- this.result = this.result * 16 + x, this.consumed++, F++;
33234
+ const M = L <= i.NINE ? L - i.ZERO : (L | s) - i.LOWER_A + 10;
33235
+ this.result = this.result * 16 + M, this.consumed++, F++;
33236
33236
  } else
33237
33237
  return this.emitNumericEntity(L, 3);
33238
33238
  }
@@ -33291,12 +33291,12 @@ var sd;
33291
33291
  */
33292
33292
  stateNamedEntity(_, F) {
33293
33293
  const { decodeTree: L } = this;
33294
- let x = L[this.treeIndex], M = (x & a.BinTrieFlags.VALUE_LENGTH) >> 14;
33294
+ let M = L[this.treeIndex], S = (M & a.BinTrieFlags.VALUE_LENGTH) >> 14;
33295
33295
  for (; F < _.length; ) {
33296
- if (M === 0 && x & a.BinTrieFlags.FLAG13) {
33297
- const G = (x & a.BinTrieFlags.BRANCH_LENGTH) >> 7;
33296
+ if (S === 0 && M & a.BinTrieFlags.FLAG13) {
33297
+ const G = (M & a.BinTrieFlags.BRANCH_LENGTH) >> 7;
33298
33298
  if (this.runConsumed === 0) {
33299
- const W = x & a.BinTrieFlags.JUMP_TABLE;
33299
+ const W = M & a.BinTrieFlags.JUMP_TABLE;
33300
33300
  if (_.charCodeAt(F) !== W)
33301
33301
  return this.result === 0 ? 0 : this.emitNotTerminatedNamedEntity();
33302
33302
  F++, this.excess++, this.runConsumed++;
@@ -33309,22 +33309,22 @@ var sd;
33309
33309
  return this.runConsumed = 0, this.result === 0 ? 0 : this.emitNotTerminatedNamedEntity();
33310
33310
  F++, this.excess++, this.runConsumed++;
33311
33311
  }
33312
- this.runConsumed = 0, this.treeIndex += 1 + (G >> 1), x = L[this.treeIndex], M = (x & a.BinTrieFlags.VALUE_LENGTH) >> 14;
33312
+ this.runConsumed = 0, this.treeIndex += 1 + (G >> 1), M = L[this.treeIndex], S = (M & a.BinTrieFlags.VALUE_LENGTH) >> 14;
33313
33313
  }
33314
33314
  if (F >= _.length)
33315
33315
  break;
33316
33316
  const Q = _.charCodeAt(F);
33317
- if (Q === i.SEMI && M !== 0 && x & a.BinTrieFlags.FLAG13)
33318
- return this.emitNamedEntityData(this.treeIndex, M, this.consumed + this.excess);
33319
- if (this.treeIndex = m(L, x, this.treeIndex + Math.max(1, M), Q), this.treeIndex < 0)
33317
+ if (Q === i.SEMI && S !== 0 && M & a.BinTrieFlags.FLAG13)
33318
+ return this.emitNamedEntityData(this.treeIndex, S, this.consumed + this.excess);
33319
+ if (this.treeIndex = m(L, M, this.treeIndex + Math.max(1, S), Q), this.treeIndex < 0)
33320
33320
  return this.result === 0 || // If we are parsing an attribute
33321
33321
  this.decodeMode === h.Attribute && // We shouldn't have consumed any characters after the entity,
33322
- (M === 0 || // And there should be no invalid characters.
33322
+ (S === 0 || // And there should be no invalid characters.
33323
33323
  c(Q)) ? 0 : this.emitNotTerminatedNamedEntity();
33324
- if (x = L[this.treeIndex], M = (x & a.BinTrieFlags.VALUE_LENGTH) >> 14, M !== 0) {
33324
+ if (M = L[this.treeIndex], S = (M & a.BinTrieFlags.VALUE_LENGTH) >> 14, S !== 0) {
33325
33325
  if (Q === i.SEMI)
33326
- return this.emitNamedEntityData(this.treeIndex, M, this.consumed + this.excess);
33327
- this.decodeMode !== h.Strict && !(x & a.BinTrieFlags.FLAG13) && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
33326
+ return this.emitNamedEntityData(this.treeIndex, S, this.consumed + this.excess);
33327
+ this.decodeMode !== h.Strict && !(M & a.BinTrieFlags.FLAG13) && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
33328
33328
  }
33329
33329
  F++, this.excess++;
33330
33330
  }
@@ -33337,8 +33337,8 @@ var sd;
33337
33337
  */
33338
33338
  emitNotTerminatedNamedEntity() {
33339
33339
  var _;
33340
- const { result: F, decodeTree: L } = this, x = (L[F] & a.BinTrieFlags.VALUE_LENGTH) >> 14;
33341
- return this.emitNamedEntityData(F, x, this.consumed), (_ = this.errors) === null || _ === void 0 || _.missingSemicolonAfterCharacterReference(), this.consumed;
33340
+ const { result: F, decodeTree: L } = this, M = (L[F] & a.BinTrieFlags.VALUE_LENGTH) >> 14;
33341
+ return this.emitNamedEntityData(F, M, this.consumed), (_ = this.errors) === null || _ === void 0 || _.missingSemicolonAfterCharacterReference(), this.consumed;
33342
33342
  }
33343
33343
  /**
33344
33344
  * Emit a named entity.
@@ -33350,8 +33350,8 @@ var sd;
33350
33350
  * @returns The number of characters consumed.
33351
33351
  */
33352
33352
  emitNamedEntityData(_, F, L) {
33353
- const { decodeTree: x } = this;
33354
- return this.emitCodePoint(F === 1 ? x[_] & ~(a.BinTrieFlags.VALUE_LENGTH | a.BinTrieFlags.FLAG13) : x[_ + 1], L), F === 3 && this.emitCodePoint(x[_ + 2], L), L;
33353
+ const { decodeTree: M } = this;
33354
+ return this.emitCodePoint(F === 1 ? M[_] & ~(a.BinTrieFlags.VALUE_LENGTH | a.BinTrieFlags.FLAG13) : M[_ + 1], L), F === 3 && this.emitCodePoint(M[_ + 2], L), L;
33355
33355
  }
33356
33356
  /**
33357
33357
  * Signal to the parser that the end of the input was reached.
@@ -33380,12 +33380,12 @@ var sd;
33380
33380
  function p(N) {
33381
33381
  let _ = "";
33382
33382
  const F = new g(N, (L) => _ += (0, t.fromCodePoint)(L));
33383
- return function(x, M) {
33383
+ return function(M, S) {
33384
33384
  let Q = 0, G = 0;
33385
- for (; (G = x.indexOf("&", G)) >= 0; ) {
33386
- _ += x.slice(Q, G), F.startEntity(M);
33385
+ for (; (G = M.indexOf("&", G)) >= 0; ) {
33386
+ _ += M.slice(Q, G), F.startEntity(S);
33387
33387
  const K = F.write(
33388
- x,
33388
+ M,
33389
33389
  // Skip the "&"
33390
33390
  G + 1
33391
33391
  );
@@ -33395,20 +33395,20 @@ var sd;
33395
33395
  }
33396
33396
  Q = G + K, G = K === 0 ? Q + 1 : Q;
33397
33397
  }
33398
- const W = _ + x.slice(Q);
33398
+ const W = _ + M.slice(Q);
33399
33399
  return _ = "", W;
33400
33400
  };
33401
33401
  }
33402
33402
  function m(N, _, F, L) {
33403
- const x = (_ & a.BinTrieFlags.BRANCH_LENGTH) >> 7, M = _ & a.BinTrieFlags.JUMP_TABLE;
33404
- if (x === 0)
33405
- return M !== 0 && L === M ? F : -1;
33406
- if (M) {
33407
- const K = L - M;
33408
- return K < 0 || K >= x ? -1 : N[F + K] - 1;
33409
- }
33410
- const Q = x + 1 >> 1;
33411
- let G = 0, W = x - 1;
33403
+ const M = (_ & a.BinTrieFlags.BRANCH_LENGTH) >> 7, S = _ & a.BinTrieFlags.JUMP_TABLE;
33404
+ if (M === 0)
33405
+ return S !== 0 && L === S ? F : -1;
33406
+ if (S) {
33407
+ const K = L - S;
33408
+ return K < 0 || K >= M ? -1 : N[F + K] - 1;
33409
+ }
33410
+ const Q = M + 1 >> 1;
33411
+ let G = 0, W = M - 1;
33412
33412
  for (; G <= W; ) {
33413
33413
  const K = G + W >>> 1, fe = K >> 1, _e = N[F + fe] >> (K & 1) * 8 & 255;
33414
33414
  if (_e < L)
@@ -33433,17 +33433,17 @@ var sd;
33433
33433
  function I(N) {
33434
33434
  return E(N, h.Strict);
33435
33435
  }
33436
- var S = _u;
33436
+ var x = _u;
33437
33437
  Object.defineProperty(e, "decodeCodePoint", { enumerable: !0, get: function() {
33438
- return S.decodeCodePoint;
33438
+ return x.decodeCodePoint;
33439
33439
  } }), Object.defineProperty(e, "fromCodePoint", { enumerable: !0, get: function() {
33440
- return S.fromCodePoint;
33440
+ return x.fromCodePoint;
33441
33441
  } }), Object.defineProperty(e, "replaceCodePoint", { enumerable: !0, get: function() {
33442
- return S.replaceCodePoint;
33442
+ return x.replaceCodePoint;
33443
33443
  } });
33444
- var B = oi;
33444
+ var R = oi;
33445
33445
  Object.defineProperty(e, "htmlDecodeTree", { enumerable: !0, get: function() {
33446
- return B.htmlDecodeTree;
33446
+ return R.htmlDecodeTree;
33447
33447
  } });
33448
33448
  var D = ui;
33449
33449
  Object.defineProperty(e, "xmlDecodeTree", { enumerable: !0, get: function() {
@@ -33787,8 +33787,8 @@ var ww = { replaceVariables: kw, findVariableValue: ng }, { decode: Cw } = Xh, z
33787
33787
  m = m || {};
33788
33788
  var A = zn.parseCSS(p), E = [], k = "style", C = {}, T = m.removeInlinedSelectors ? /* @__PURE__ */ new Set() : null;
33789
33789
  m.styleAttributeName && (k = m.styleAttributeName);
33790
- function I(x) {
33791
- var M = x[0], Q = x[1], G = new zn.Selector(M), W = G.parsed();
33790
+ function I(M) {
33791
+ var S = M[0], Q = M[1], G = new zn.Selector(S), W = G.parsed();
33792
33792
  if (W) {
33793
33793
  for (var K = s(W), fe = 0; fe < W.length; ++fe) {
33794
33794
  var Be = W[fe];
@@ -33801,11 +33801,11 @@ var ww = { replaceVariables: kw, findVariableValue: ng }, { decode: Cw } = Xh, z
33801
33801
  }
33802
33802
  if (K) {
33803
33803
  var re = W[W.length - 1], ae = re.pseudos;
33804
- re.pseudos = u(re.pseudos), M = W.toString(), re.pseudos = ae;
33804
+ re.pseudos = u(re.pseudos), S = W.toString(), re.pseudos = ae;
33805
33805
  }
33806
33806
  var Se;
33807
33807
  try {
33808
- Se = g(M);
33808
+ Se = g(S);
33809
33809
  } catch {
33810
33810
  return;
33811
33811
  }
@@ -33864,74 +33864,74 @@ var ww = { replaceVariables: kw, findVariableValue: ng }, { decode: Cw } = Xh, z
33864
33864
  }
33865
33865
  }
33866
33866
  ct(Q, G);
33867
- }), Je && T && T.add(x[0]);
33867
+ }), Je && T && T.add(M[0]);
33868
33868
  }
33869
33869
  }
33870
- function S(x) {
33871
- Object.keys(x.styleProps).length;
33872
- var M = [];
33873
- Object.keys(x.styleProps).forEach(function(G) {
33874
- for (var W = x.styleProps[G]; typeof W < "u"; )
33875
- M.push(W), W = W.nextProp;
33876
- }), M.sort(function(G, W) {
33870
+ function x(M) {
33871
+ Object.keys(M.styleProps).length;
33872
+ var S = [];
33873
+ Object.keys(M.styleProps).forEach(function(G) {
33874
+ for (var W = M.styleProps[G]; typeof W < "u"; )
33875
+ S.push(W), W = W.nextProp;
33876
+ }), S.sort(function(G, W) {
33877
33877
  return G.compareFunc(W);
33878
33878
  });
33879
- var Q = M.filter(function(G) {
33879
+ var Q = S.filter(function(G) {
33880
33880
  return m.resolveCSSVariables && G.prop.indexOf("--") === 0 ? !1 : G.prop !== "content";
33881
33881
  }).map(function(G) {
33882
- return m.resolveCSSVariables && (G.value = od.replaceVariables(x, G.value)), G.prop + ": " + G.value.replace(/["]/g, "'") + ";";
33882
+ return m.resolveCSSVariables && (G.value = od.replaceVariables(M, G.value)), G.prop + ": " + G.value.replace(/["]/g, "'") + ";";
33883
33883
  }).join(" ");
33884
- Q && g(x).attr(k, Q);
33885
- }
33886
- function B(x) {
33887
- if (x.pseudoElementType && x.styleProps.content) {
33888
- var M = i(x);
33889
- M.img ? (x.name = "img", g(x).attr("src", M.img)) : g(x).text(M);
33890
- var Q = x.pseudoElementParent;
33891
- x.pseudoElementType === "before" ? g(Q).prepend(x) : g(Q).append(x);
33892
- }
33893
- }
33894
- function D(x, M) {
33895
- if (x.name) {
33896
- var Q = x.name.toUpperCase();
33897
- if (t[M + "Elements"].indexOf(Q) > -1) {
33898
- for (var G in x.styleProps)
33899
- if (x.styleProps[G].prop === M) {
33900
- var W = x.styleProps[G].value;
33884
+ Q && g(M).attr(k, Q);
33885
+ }
33886
+ function R(M) {
33887
+ if (M.pseudoElementType && M.styleProps.content) {
33888
+ var S = i(M);
33889
+ S.img ? (M.name = "img", g(M).attr("src", S.img)) : g(M).text(S);
33890
+ var Q = M.pseudoElementParent;
33891
+ M.pseudoElementType === "before" ? g(Q).prepend(M) : g(Q).append(M);
33892
+ }
33893
+ }
33894
+ function D(M, S) {
33895
+ if (M.name) {
33896
+ var Q = M.name.toUpperCase();
33897
+ if (t[S + "Elements"].indexOf(Q) > -1) {
33898
+ for (var G in M.styleProps)
33899
+ if (M.styleProps[G].prop === S) {
33900
+ var W = M.styleProps[G].value;
33901
33901
  if (m.preserveImportant && (W = r(W)), W.match(/(px|auto)/)) {
33902
33902
  var K = W.replace("px", "");
33903
- g(x).attr(M, K);
33903
+ g(M).attr(S, K);
33904
33904
  return;
33905
33905
  }
33906
33906
  if (t.tableElements.indexOf(Q) > -1 && W.match(/\%/)) {
33907
- g(x).attr(M, W);
33907
+ g(M).attr(S, W);
33908
33908
  return;
33909
33909
  }
33910
33910
  }
33911
33911
  }
33912
33912
  }
33913
33913
  }
33914
- function N(x) {
33915
- return x.indexOf("url(") !== 0 ? x : x.replace(/^url\((["'])?([^"']+)\1\)$/, "$2");
33914
+ function N(M) {
33915
+ return M.indexOf("url(") !== 0 ? M : M.replace(/^url\((["'])?([^"']+)\1\)$/, "$2");
33916
33916
  }
33917
- function _(x) {
33918
- if (x.name) {
33919
- var M = x.name.toUpperCase(), Q = Object.keys(t.styleToAttribute);
33920
- if (t.tableElements.indexOf(M) > -1) {
33921
- for (var G in x.styleProps)
33922
- if (Q.indexOf(x.styleProps[G].prop) > -1) {
33923
- var W = t.styleToAttribute[x.styleProps[G].prop], K = x.styleProps[G].value;
33917
+ function _(M) {
33918
+ if (M.name) {
33919
+ var S = M.name.toUpperCase(), Q = Object.keys(t.styleToAttribute);
33920
+ if (t.tableElements.indexOf(S) > -1) {
33921
+ for (var G in M.styleProps)
33922
+ if (Q.indexOf(M.styleProps[G].prop) > -1) {
33923
+ var W = t.styleToAttribute[M.styleProps[G].prop], K = M.styleProps[G].value;
33924
33924
  if (m.preserveImportant && (K = r(K)), W === "background" && (K = N(K)), /(linear|radial)-gradient\(/i.test(K))
33925
33925
  continue;
33926
- g(x).attr(W, K);
33926
+ g(M).attr(W, K);
33927
33927
  }
33928
33928
  }
33929
33929
  }
33930
33930
  }
33931
- if (A.forEach(I), E.forEach(S), m.inlinePseudoElements && E.forEach(B), m.applyWidthAttributes && E.forEach(function(x) {
33932
- D(x, "width");
33933
- }), m.applyHeightAttributes && E.forEach(function(x) {
33934
- D(x, "height");
33931
+ if (A.forEach(I), E.forEach(x), m.inlinePseudoElements && E.forEach(R), m.applyWidthAttributes && E.forEach(function(M) {
33932
+ D(M, "width");
33933
+ }), m.applyHeightAttributes && E.forEach(function(M) {
33934
+ D(M, "height");
33935
33935
  }), m.applyAttributesTableElements && E.forEach(_), m.insertPreservedExtraCss && m.extraCss) {
33936
33936
  var F = zn.getPreservedText(m.extraCss, {
33937
33937
  mediaQueries: m.preserveMediaQueries,
@@ -33982,10 +33982,10 @@ var ww = { replaceVariables: kw, findVariableValue: ng }, { decode: Cw } = Xh, z
33982
33982
  E.push(I.replace(/^['"]|['"]$/g, ""));
33983
33983
  continue;
33984
33984
  }
33985
- var S = k[C].match(/counter\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i);
33986
- if (S && S[1] in g.counterProps) {
33987
- var B = g.counterProps[S[1]];
33988
- E.push(a(B, S[3]));
33985
+ var x = k[C].match(/counter\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i);
33986
+ if (x && x[1] in g.counterProps) {
33987
+ var R = g.counterProps[x[1]];
33988
+ E.push(a(R, x[3]));
33989
33989
  continue;
33990
33990
  }
33991
33991
  var D = k[C].match(/attr\s*\(\s*(.*?)\s*\)/i);
@@ -34203,8 +34203,8 @@ const ja = /* @__PURE__ */ w1(Mw), Sw = {
34203
34203
  if (o.value)
34204
34204
  try {
34205
34205
  u.value = await o.value.getTemplates();
34206
- } catch (x) {
34207
- console.error("[模板] 加载失败:", x);
34206
+ } catch (M) {
34207
+ console.error("[模板] 加载失败:", M);
34208
34208
  }
34209
34209
  };
34210
34210
  ln(() => {
@@ -34214,10 +34214,10 @@ const ja = /* @__PURE__ */ w1(Mw), Sw = {
34214
34214
  let p = null;
34215
34215
  const m = () => {
34216
34216
  if (!h.value || !f.value) return;
34217
- const x = h.value.getBoundingClientRect(), M = f.value.getBoundingClientRect();
34217
+ const M = h.value.getBoundingClientRect(), S = f.value.getBoundingClientRect();
34218
34218
  g.value = {
34219
- top: `${x.top}px`,
34220
- left: `${M.right + 6}px`
34219
+ top: `${M.top}px`,
34220
+ left: `${S.right + 6}px`
34221
34221
  };
34222
34222
  }, A = () => {
34223
34223
  p && clearTimeout(p), l(), m(), c.value = !0;
@@ -34227,25 +34227,25 @@ const ja = /* @__PURE__ */ w1(Mw), Sw = {
34227
34227
  }, 200);
34228
34228
  }, k = () => {
34229
34229
  p && clearTimeout(p);
34230
- }, C = (x) => {
34231
- r("select", `template:${x.id}`), c.value = !1;
34232
- }, T = j(!1), I = j(""), S = j({ top: "0px", left: "0px" });
34233
- let B = null;
34234
- const D = (x, M) => {
34235
- B && clearTimeout(B);
34236
- const G = x.currentTarget.getBoundingClientRect();
34237
- B = setTimeout(() => {
34238
- I.value = M, S.value = {
34230
+ }, C = (M) => {
34231
+ r("select", `template:${M.id}`), c.value = !1;
34232
+ }, T = j(!1), I = j(""), x = j({ top: "0px", left: "0px" });
34233
+ let R = null;
34234
+ const D = (M, S) => {
34235
+ R && clearTimeout(R);
34236
+ const G = M.currentTarget.getBoundingClientRect();
34237
+ R = setTimeout(() => {
34238
+ I.value = S, x.value = {
34239
34239
  left: `${G.left + G.width / 2}px`,
34240
34240
  top: `${G.bottom + 8}px`
34241
34241
  }, T.value = !0;
34242
34242
  }, 200);
34243
34243
  }, N = () => {
34244
- B && clearTimeout(B), T.value = !1;
34244
+ R && clearTimeout(R), T.value = !1;
34245
34245
  }, _ = j(0);
34246
- return t({ onKeyDown: ({ event: x }) => !1, resetSelection: () => {
34246
+ return t({ onKeyDown: ({ event: M }) => !1, resetSelection: () => {
34247
34247
  _.value = 0;
34248
- }, loadTemplates: l }), (x, M) => (O(), U("div", {
34248
+ }, loadTemplates: l }), (M, S) => (O(), U("div", {
34249
34249
  ref_key: "panelRef",
34250
34250
  ref: f,
34251
34251
  class: X(["block-menu-panel", { "bmp-dark": i.value }])
@@ -34253,172 +34253,172 @@ const ja = /* @__PURE__ */ w1(Mw), Sw = {
34253
34253
  b("div", Yw, [
34254
34254
  b("div", {
34255
34255
  class: X(["toolbar-item", { "is-active": e.currentBlockType === "paragraph" }]),
34256
- onClick: M[0] || (M[0] = (Q) => x.$emit("select", "paragraph")),
34257
- onMouseenter: M[1] || (M[1] = (Q) => D(Q, "正文")),
34256
+ onClick: S[0] || (S[0] = (Q) => M.$emit("select", "paragraph")),
34257
+ onMouseenter: S[1] || (S[1] = (Q) => D(Q, "正文")),
34258
34258
  onMouseleave: N
34259
34259
  }, [
34260
34260
  z(P(xr), { size: 18 })
34261
34261
  ], 34),
34262
34262
  b("div", {
34263
34263
  class: X(["toolbar-item", { "is-active": e.currentBlockType === "heading1" }]),
34264
- onClick: M[2] || (M[2] = (Q) => x.$emit("select", "heading1")),
34265
- onMouseenter: M[3] || (M[3] = (Q) => D(Q, "标题 1")),
34264
+ onClick: S[2] || (S[2] = (Q) => M.$emit("select", "heading1")),
34265
+ onMouseenter: S[3] || (S[3] = (Q) => D(Q, "标题 1")),
34266
34266
  onMouseleave: N
34267
- }, [...M[26] || (M[26] = [
34267
+ }, [...S[26] || (S[26] = [
34268
34268
  b("span", { class: "heading-text" }, "H1", -1)
34269
34269
  ])], 34),
34270
34270
  b("div", {
34271
34271
  class: X(["toolbar-item", { "is-active": e.currentBlockType === "heading2" }]),
34272
- onClick: M[4] || (M[4] = (Q) => x.$emit("select", "heading2")),
34273
- onMouseenter: M[5] || (M[5] = (Q) => D(Q, "标题 2")),
34272
+ onClick: S[4] || (S[4] = (Q) => M.$emit("select", "heading2")),
34273
+ onMouseenter: S[5] || (S[5] = (Q) => D(Q, "标题 2")),
34274
34274
  onMouseleave: N
34275
- }, [...M[27] || (M[27] = [
34275
+ }, [...S[27] || (S[27] = [
34276
34276
  b("span", { class: "heading-text" }, "H2", -1)
34277
34277
  ])], 34),
34278
34278
  b("div", {
34279
34279
  class: X(["toolbar-item", { "is-active": e.currentBlockType === "heading3" }]),
34280
- onClick: M[6] || (M[6] = (Q) => x.$emit("select", "heading3")),
34281
- onMouseenter: M[7] || (M[7] = (Q) => D(Q, "标题 3")),
34280
+ onClick: S[6] || (S[6] = (Q) => M.$emit("select", "heading3")),
34281
+ onMouseenter: S[7] || (S[7] = (Q) => D(Q, "标题 3")),
34282
34282
  onMouseleave: N
34283
- }, [...M[28] || (M[28] = [
34283
+ }, [...S[28] || (S[28] = [
34284
34284
  b("span", { class: "heading-text" }, "H3", -1)
34285
34285
  ])], 34),
34286
34286
  b("div", {
34287
34287
  class: X(["toolbar-item", { "is-active": e.currentBlockType === "bulletList" }]),
34288
- onClick: M[8] || (M[8] = (Q) => x.$emit("select", "bulletList")),
34289
- onMouseenter: M[9] || (M[9] = (Q) => D(Q, "无序列表")),
34288
+ onClick: S[8] || (S[8] = (Q) => M.$emit("select", "bulletList")),
34289
+ onMouseenter: S[9] || (S[9] = (Q) => D(Q, "无序列表")),
34290
34290
  onMouseleave: N
34291
34291
  }, [
34292
34292
  z(P(ml), { size: 18 })
34293
34293
  ], 34),
34294
34294
  b("div", {
34295
34295
  class: X(["toolbar-item", { "is-active": e.currentBlockType === "orderedList" }]),
34296
- onClick: M[10] || (M[10] = (Q) => x.$emit("select", "orderedList")),
34297
- onMouseenter: M[11] || (M[11] = (Q) => D(Q, "有序列表")),
34296
+ onClick: S[10] || (S[10] = (Q) => M.$emit("select", "orderedList")),
34297
+ onMouseenter: S[11] || (S[11] = (Q) => D(Q, "有序列表")),
34298
34298
  onMouseleave: N
34299
34299
  }, [
34300
34300
  z(P(pl), { size: 18 })
34301
34301
  ], 34),
34302
34302
  b("div", {
34303
34303
  class: X(["toolbar-item", { "is-active": e.currentBlockType === "taskList" }]),
34304
- onClick: M[12] || (M[12] = (Q) => x.$emit("select", "taskList")),
34305
- onMouseenter: M[13] || (M[13] = (Q) => D(Q, "任务列表")),
34304
+ onClick: S[12] || (S[12] = (Q) => M.$emit("select", "taskList")),
34305
+ onMouseenter: S[13] || (S[13] = (Q) => D(Q, "任务列表")),
34306
34306
  onMouseleave: N
34307
34307
  }, [
34308
34308
  z(P(t1), { size: 18 })
34309
34309
  ], 34),
34310
34310
  b("div", {
34311
34311
  class: X(["toolbar-item", { "is-active": e.currentBlockType === "blockquote" }]),
34312
- onClick: M[14] || (M[14] = (Q) => x.$emit("select", "blockquote")),
34313
- onMouseenter: M[15] || (M[15] = (Q) => D(Q, "引用")),
34312
+ onClick: S[14] || (S[14] = (Q) => M.$emit("select", "blockquote")),
34313
+ onMouseenter: S[15] || (S[15] = (Q) => D(Q, "引用")),
34314
34314
  onMouseleave: N
34315
34315
  }, [
34316
34316
  z(P(r1), { size: 18 })
34317
34317
  ], 34),
34318
34318
  b("div", {
34319
34319
  class: X(["toolbar-item", { "is-active": e.currentBlockType === "codeBlock" }]),
34320
- onClick: M[16] || (M[16] = (Q) => x.$emit("select", "codeBlock")),
34321
- onMouseenter: M[17] || (M[17] = (Q) => D(Q, "代码块")),
34320
+ onClick: S[16] || (S[16] = (Q) => M.$emit("select", "codeBlock")),
34321
+ onMouseenter: S[17] || (S[17] = (Q) => D(Q, "代码块")),
34322
34322
  onMouseleave: N
34323
34323
  }, [
34324
34324
  z(P(sA), { size: 18 })
34325
34325
  ], 34)
34326
34326
  ]),
34327
- M[38] || (M[38] = b("div", { class: "menu-divider" }, null, -1)),
34328
- M[39] || (M[39] = b("div", { class: "section-title" }, "插入", -1)),
34327
+ S[38] || (S[38] = b("div", { class: "menu-divider" }, null, -1)),
34328
+ S[39] || (S[39] = b("div", { class: "section-title" }, "插入", -1)),
34329
34329
  b("div", Qw, [
34330
34330
  b("div", {
34331
34331
  class: X(["list-item", { "is-active": e.currentBlockType === "table" }]),
34332
- onClick: M[18] || (M[18] = (Q) => x.$emit("select", "table"))
34332
+ onClick: S[18] || (S[18] = (Q) => M.$emit("select", "table"))
34333
34333
  }, [
34334
34334
  b("div", Kw, [
34335
34335
  z(P(LA), { size: 18 })
34336
34336
  ]),
34337
- M[29] || (M[29] = b("div", { class: "list-item-content" }, [
34337
+ S[29] || (S[29] = b("div", { class: "list-item-content" }, [
34338
34338
  b("span", { class: "list-item-title" }, "表格"),
34339
34339
  b("span", { class: "list-item-desc" }, "插入 3x3 表格")
34340
34340
  ], -1))
34341
34341
  ], 2),
34342
34342
  b("div", {
34343
34343
  class: X(["list-item", { "is-active": e.currentBlockType === "colorBlock" }]),
34344
- onClick: M[19] || (M[19] = (Q) => x.$emit("select", "colorBlock"))
34344
+ onClick: S[19] || (S[19] = (Q) => M.$emit("select", "colorBlock"))
34345
34345
  }, [
34346
34346
  b("div", Ww, [
34347
34347
  z(P(n1), { size: 18 })
34348
34348
  ]),
34349
- M[30] || (M[30] = b("div", { class: "list-item-content" }, [
34349
+ S[30] || (S[30] = b("div", { class: "list-item-content" }, [
34350
34350
  b("span", { class: "list-item-title" }, "彩色块"),
34351
34351
  b("span", { class: "list-item-desc" }, "添加带颜色的提示块")
34352
34352
  ], -1))
34353
34353
  ], 2),
34354
34354
  b("div", {
34355
34355
  class: X(["list-item", { "is-active": e.currentBlockType === "linkCard" }]),
34356
- onClick: M[20] || (M[20] = (Q) => x.$emit("select", "linkCard"))
34356
+ onClick: S[20] || (S[20] = (Q) => M.$emit("select", "linkCard"))
34357
34357
  }, [
34358
34358
  b("div", $w, [
34359
34359
  z(P(vA), { size: 18 })
34360
34360
  ]),
34361
- M[31] || (M[31] = b("div", { class: "list-item-content" }, [
34361
+ S[31] || (S[31] = b("div", { class: "list-item-content" }, [
34362
34362
  b("span", { class: "list-item-title" }, "链接卡片"),
34363
34363
  b("span", { class: "list-item-desc" }, "嵌入链接预览卡片")
34364
34364
  ], -1))
34365
34365
  ], 2),
34366
34366
  b("div", {
34367
34367
  class: "list-item",
34368
- onClick: M[21] || (M[21] = (Q) => x.$emit("select", "videoEmbed"))
34368
+ onClick: S[21] || (S[21] = (Q) => M.$emit("select", "videoEmbed"))
34369
34369
  }, [
34370
34370
  b("div", Gw, [
34371
34371
  z(P(ns), { size: 18 })
34372
34372
  ]),
34373
- M[32] || (M[32] = b("div", { class: "list-item-content" }, [
34373
+ S[32] || (S[32] = b("div", { class: "list-item-content" }, [
34374
34374
  b("span", { class: "list-item-title" }, "视频"),
34375
34375
  b("span", { class: "list-item-desc" }, "嵌入 B站 / YouTube 视频")
34376
34376
  ], -1))
34377
34377
  ]),
34378
34378
  b("div", {
34379
34379
  class: X(["list-item", { "is-active": e.currentBlockType === "horizontalRule" }]),
34380
- onClick: M[22] || (M[22] = (Q) => x.$emit("select", "horizontalRule"))
34380
+ onClick: S[22] || (S[22] = (Q) => M.$emit("select", "horizontalRule"))
34381
34381
  }, [
34382
34382
  b("div", qw, [
34383
34383
  z(P(kA), { size: 18 })
34384
34384
  ]),
34385
- M[33] || (M[33] = b("div", { class: "list-item-content" }, [
34385
+ S[33] || (S[33] = b("div", { class: "list-item-content" }, [
34386
34386
  b("span", { class: "list-item-title" }, "分割线"),
34387
34387
  b("span", { class: "list-item-desc" }, "插入水平分割线")
34388
34388
  ], -1))
34389
34389
  ], 2),
34390
34390
  b("div", {
34391
34391
  class: "list-item",
34392
- onClick: M[23] || (M[23] = (Q) => x.$emit("select", "imageUpload"))
34392
+ onClick: S[23] || (S[23] = (Q) => M.$emit("select", "imageUpload"))
34393
34393
  }, [
34394
34394
  b("div", Vw, [
34395
34395
  z(P(X0), { size: 18 })
34396
34396
  ]),
34397
- M[34] || (M[34] = b("div", { class: "list-item-content" }, [
34397
+ S[34] || (S[34] = b("div", { class: "list-item-content" }, [
34398
34398
  b("span", { class: "list-item-title" }, "图片"),
34399
34399
  b("span", { class: "list-item-desc" }, "上传本地图片")
34400
34400
  ], -1))
34401
34401
  ]),
34402
34402
  b("div", {
34403
34403
  class: "list-item",
34404
- onClick: M[24] || (M[24] = (Q) => x.$emit("select", "videoUpload"))
34404
+ onClick: S[24] || (S[24] = (Q) => M.$emit("select", "videoUpload"))
34405
34405
  }, [
34406
34406
  b("div", Jw, [
34407
34407
  z(P(BA), { size: 18 })
34408
34408
  ]),
34409
- M[35] || (M[35] = b("div", { class: "list-item-content" }, [
34409
+ S[35] || (S[35] = b("div", { class: "list-item-content" }, [
34410
34410
  b("span", { class: "list-item-title" }, "视频上传"),
34411
34411
  b("span", { class: "list-item-desc" }, "上传本地视频")
34412
34412
  ], -1))
34413
34413
  ]),
34414
34414
  b("div", {
34415
34415
  class: "list-item",
34416
- onClick: M[25] || (M[25] = (Q) => x.$emit("select", "aiImage"))
34416
+ onClick: S[25] || (S[25] = (Q) => M.$emit("select", "aiImage"))
34417
34417
  }, [
34418
34418
  b("div", Zw, [
34419
34419
  z(P(qs), { size: 18 })
34420
34420
  ]),
34421
- M[36] || (M[36] = b("div", { class: "list-item-content" }, [
34421
+ S[36] || (S[36] = b("div", { class: "list-item-content" }, [
34422
34422
  b("span", { class: "list-item-title" }, "AI 图片"),
34423
34423
  b("span", { class: "list-item-desc" }, "输入描述,AI 生成图片")
34424
34424
  ], -1))
@@ -34435,7 +34435,7 @@ const ja = /* @__PURE__ */ w1(Mw), Sw = {
34435
34435
  b("div", Xw, [
34436
34436
  z(P(hl), { size: 18 })
34437
34437
  ]),
34438
- M[37] || (M[37] = b("div", { class: "list-item-content" }, [
34438
+ S[37] || (S[37] = b("div", { class: "list-item-content" }, [
34439
34439
  b("span", { class: "list-item-title" }, "模板"),
34440
34440
  b("span", { class: "list-item-desc" }, "插入已保存的模板")
34441
34441
  ], -1)),
@@ -34465,7 +34465,7 @@ const ja = /* @__PURE__ */ w1(Mw), Sw = {
34465
34465
  T.value ? (O(), U("div", {
34466
34466
  key: 0,
34467
34467
  class: "block-menu-tooltip",
34468
- style: Ht(S.value)
34468
+ style: Ht(x.value)
34469
34469
  }, we(I.value), 5)) : te("", !0)
34470
34470
  ]))
34471
34471
  ], 2));
@@ -34568,13 +34568,13 @@ const eC = {
34568
34568
  return "codeBlock";
34569
34569
  const _ = n.editor.state.doc.resolve(n.currentNodePos);
34570
34570
  for (let F = _.depth; F > 0; F--) {
34571
- const x = _.node(F).type.name;
34572
- if (x === "bulletList") return "bulletList";
34573
- if (x === "orderedList") return "orderedList";
34574
- if (x === "taskList") return "taskList";
34575
- if (x === "blockquote") return "blockquote";
34576
- if (x === "codeBlock") return "codeBlock";
34577
- if (x === "colorBlock") return "colorBlock";
34571
+ const M = _.node(F).type.name;
34572
+ if (M === "bulletList") return "bulletList";
34573
+ if (M === "orderedList") return "orderedList";
34574
+ if (M === "taskList") return "taskList";
34575
+ if (M === "blockquote") return "blockquote";
34576
+ if (M === "codeBlock") return "codeBlock";
34577
+ if (M === "colorBlock") return "colorBlock";
34578
34578
  }
34579
34579
  if (N === "paragraph")
34580
34580
  return "paragraph";
@@ -34615,8 +34615,8 @@ const eC = {
34615
34615
  convertToHeading: _,
34616
34616
  convertToBulletList: F,
34617
34617
  convertToOrderedList: L,
34618
- convertToTaskList: x,
34619
- convertToBlockquote: M,
34618
+ convertToTaskList: M,
34619
+ convertToBlockquote: S,
34620
34620
  convertToCodeBlock: Q
34621
34621
  } = i1(n.editor);
34622
34622
  switch (D) {
@@ -34639,10 +34639,10 @@ const eC = {
34639
34639
  L(), c();
34640
34640
  break;
34641
34641
  case "taskList":
34642
- x(), c();
34642
+ M(), c();
34643
34643
  break;
34644
34644
  case "blockquote":
34645
- M(), c();
34645
+ S(), c();
34646
34646
  break;
34647
34647
  case "colorBlock":
34648
34648
  k();
@@ -34654,7 +34654,7 @@ const eC = {
34654
34654
  Q(), c();
34655
34655
  break;
34656
34656
  case "horizontalRule":
34657
- B();
34657
+ R();
34658
34658
  break;
34659
34659
  case "table":
34660
34660
  E();
@@ -34666,7 +34666,7 @@ const eC = {
34666
34666
  I();
34667
34667
  break;
34668
34668
  case "videoUpload":
34669
- S();
34669
+ x();
34670
34670
  break;
34671
34671
  }
34672
34672
  }, E = () => {
@@ -34747,9 +34747,9 @@ const eC = {
34747
34747
  }
34748
34748
  }, I = () => {
34749
34749
  c(), window.dispatchEvent(new CustomEvent("editor-trigger-image-upload"));
34750
- }, S = () => {
34750
+ }, x = () => {
34751
34751
  c(), window.dispatchEvent(new CustomEvent("editor-trigger-video-upload"));
34752
- }, B = () => {
34752
+ }, R = () => {
34753
34753
  if (!(!n.editor || n.currentNodePos === void 0)) {
34754
34754
  if (m.value) {
34755
34755
  const D = n.editor.state.doc.nodeAt(n.currentNodePos);
@@ -35321,7 +35321,7 @@ function lg(e) {
35321
35321
  keywords: o,
35322
35322
  contains: ["self"].concat(T)
35323
35323
  }
35324
- ]), S = {
35324
+ ]), x = {
35325
35325
  className: "params",
35326
35326
  // convert this to negative lookbehind in v12
35327
35327
  begin: /(\s*)\(/,
@@ -35331,7 +35331,7 @@ function lg(e) {
35331
35331
  excludeEnd: !0,
35332
35332
  keywords: o,
35333
35333
  contains: I
35334
- }, B = {
35334
+ }, R = {
35335
35335
  variants: [
35336
35336
  // class Car extends vehicle
35337
35337
  {
@@ -35416,7 +35416,7 @@ function lg(e) {
35416
35416
  3: "title.function"
35417
35417
  },
35418
35418
  label: "func.def",
35419
- contains: [S],
35419
+ contains: [x],
35420
35420
  illegal: /%/
35421
35421
  }, F = {
35422
35422
  relevance: 0,
@@ -35426,7 +35426,7 @@ function lg(e) {
35426
35426
  function L(K) {
35427
35427
  return t.concat("(?!", K.join("|"), ")");
35428
35428
  }
35429
- const x = {
35429
+ const M = {
35430
35430
  match: t.concat(
35431
35431
  /\b/,
35432
35432
  L([
@@ -35439,7 +35439,7 @@ function lg(e) {
35439
35439
  ),
35440
35440
  className: "title.function",
35441
35441
  relevance: 0
35442
- }, M = {
35442
+ }, S = {
35443
35443
  begin: t.concat(/\./, t.lookahead(
35444
35444
  t.concat(r, /(?![0-9A-Za-z$_(])/)
35445
35445
  )),
@@ -35464,7 +35464,7 @@ function lg(e) {
35464
35464
  // eat to avoid empty params
35465
35465
  begin: /\(\)/
35466
35466
  },
35467
- S
35467
+ x
35468
35468
  ]
35469
35469
  }, G = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", W = {
35470
35470
  match: [
@@ -35483,7 +35483,7 @@ function lg(e) {
35483
35483
  3: "title.function"
35484
35484
  },
35485
35485
  contains: [
35486
- S
35486
+ x
35487
35487
  ]
35488
35488
  };
35489
35489
  return {
@@ -35607,7 +35607,7 @@ function lg(e) {
35607
35607
  returnBegin: !0,
35608
35608
  label: "func.def",
35609
35609
  contains: [
35610
- S,
35610
+ x,
35611
35611
  e.inherit(e.TITLE_MODE, { begin: r, className: "title.function" })
35612
35612
  ]
35613
35613
  },
@@ -35616,7 +35616,7 @@ function lg(e) {
35616
35616
  match: /\.\.\./,
35617
35617
  relevance: 0
35618
35618
  },
35619
- M,
35619
+ S,
35620
35620
  // hack: prevents detection of keywords in some circumstances
35621
35621
  // .keyword()
35622
35622
  // $keyword = x
@@ -35627,11 +35627,11 @@ function lg(e) {
35627
35627
  {
35628
35628
  match: [/\bconstructor(?=\s*\()/],
35629
35629
  className: { 1: "title.function" },
35630
- contains: [S]
35630
+ contains: [x]
35631
35631
  },
35632
- x,
35632
+ M,
35633
35633
  F,
35634
- B,
35634
+ R,
35635
35635
  Q,
35636
35636
  {
35637
35637
  match: /\$[(.]/
@@ -35976,7 +35976,7 @@ function kC(e) {
35976
35976
  keywords: o,
35977
35977
  contains: ["self"].concat(T)
35978
35978
  }
35979
- ]), S = {
35979
+ ]), x = {
35980
35980
  className: "params",
35981
35981
  // convert this to negative lookbehind in v12
35982
35982
  begin: /(\s*)\(/,
@@ -35986,7 +35986,7 @@ function kC(e) {
35986
35986
  excludeEnd: !0,
35987
35987
  keywords: o,
35988
35988
  contains: I
35989
- }, B = {
35989
+ }, R = {
35990
35990
  variants: [
35991
35991
  // class Car extends vehicle
35992
35992
  {
@@ -36071,7 +36071,7 @@ function kC(e) {
36071
36071
  3: "title.function"
36072
36072
  },
36073
36073
  label: "func.def",
36074
- contains: [S],
36074
+ contains: [x],
36075
36075
  illegal: /%/
36076
36076
  }, F = {
36077
36077
  relevance: 0,
@@ -36081,7 +36081,7 @@ function kC(e) {
36081
36081
  function L(K) {
36082
36082
  return t.concat("(?!", K.join("|"), ")");
36083
36083
  }
36084
- const x = {
36084
+ const M = {
36085
36085
  match: t.concat(
36086
36086
  /\b/,
36087
36087
  L([
@@ -36094,7 +36094,7 @@ function kC(e) {
36094
36094
  ),
36095
36095
  className: "title.function",
36096
36096
  relevance: 0
36097
- }, M = {
36097
+ }, S = {
36098
36098
  begin: t.concat(/\./, t.lookahead(
36099
36099
  t.concat(r, /(?![0-9A-Za-z$_(])/)
36100
36100
  )),
@@ -36119,7 +36119,7 @@ function kC(e) {
36119
36119
  // eat to avoid empty params
36120
36120
  begin: /\(\)/
36121
36121
  },
36122
- S
36122
+ x
36123
36123
  ]
36124
36124
  }, G = "(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|" + e.UNDERSCORE_IDENT_RE + ")\\s*=>", W = {
36125
36125
  match: [
@@ -36138,7 +36138,7 @@ function kC(e) {
36138
36138
  3: "title.function"
36139
36139
  },
36140
36140
  contains: [
36141
- S
36141
+ x
36142
36142
  ]
36143
36143
  };
36144
36144
  return {
@@ -36262,7 +36262,7 @@ function kC(e) {
36262
36262
  returnBegin: !0,
36263
36263
  label: "func.def",
36264
36264
  contains: [
36265
- S,
36265
+ x,
36266
36266
  e.inherit(e.TITLE_MODE, { begin: r, className: "title.function" })
36267
36267
  ]
36268
36268
  },
@@ -36271,7 +36271,7 @@ function kC(e) {
36271
36271
  match: /\.\.\./,
36272
36272
  relevance: 0
36273
36273
  },
36274
- M,
36274
+ S,
36275
36275
  // hack: prevents detection of keywords in some circumstances
36276
36276
  // .keyword()
36277
36277
  // $keyword = x
@@ -36282,11 +36282,11 @@ function kC(e) {
36282
36282
  {
36283
36283
  match: [/\bconstructor(?=\s*\()/],
36284
36284
  className: { 1: "title.function" },
36285
- contains: [S]
36285
+ contains: [x]
36286
36286
  },
36287
- x,
36287
+ M,
36288
36288
  F,
36289
- B,
36289
+ R,
36290
36290
  Q,
36291
36291
  {
36292
36292
  match: /\$[(.]/
@@ -37376,7 +37376,7 @@ function yg(e) {
37376
37376
  e.IDENT_RE,
37377
37377
  t.lookahead(/(<[^<>]+>|)\s*\(/)
37378
37378
  )
37379
- }, S = [
37379
+ }, x = [
37380
37380
  I,
37381
37381
  f,
37382
37382
  o,
@@ -37384,7 +37384,7 @@ function yg(e) {
37384
37384
  e.C_BLOCK_COMMENT_MODE,
37385
37385
  c,
37386
37386
  l
37387
- ], B = {
37387
+ ], R = {
37388
37388
  // This mode covers expression context where we can't expect a function
37389
37389
  // definition and shouldn't highlight anything that looks like one:
37390
37390
  // `return some()`, `else if()`, `(x*sum(1, 2))`
@@ -37403,12 +37403,12 @@ function yg(e) {
37403
37403
  }
37404
37404
  ],
37405
37405
  keywords: T,
37406
- contains: S.concat([
37406
+ contains: x.concat([
37407
37407
  {
37408
37408
  begin: /\(/,
37409
37409
  end: /\)/,
37410
37410
  keywords: T,
37411
- contains: S.concat(["self"]),
37411
+ contains: x.concat(["self"]),
37412
37412
  relevance: 0
37413
37413
  }
37414
37414
  ]),
@@ -37505,10 +37505,10 @@ function yg(e) {
37505
37505
  illegal: "</",
37506
37506
  classNameAliases: { "function.dispatch": "built_in" },
37507
37507
  contains: [].concat(
37508
- B,
37508
+ R,
37509
37509
  D,
37510
37510
  I,
37511
- S,
37511
+ x,
37512
37512
  [
37513
37513
  f,
37514
37514
  {
@@ -37960,11 +37960,11 @@ function CC(e) {
37960
37960
  begin: /<<<[ \t]*(?:(\w+)|"(\w+)")\n/,
37961
37961
  end: /[ \t]*(\w+)\b/,
37962
37962
  contains: e.QUOTE_STRING_MODE.contains.concat(u),
37963
- "on:begin": (M, Q) => {
37964
- Q.data._beginMatch = M[1] || M[2];
37963
+ "on:begin": (S, Q) => {
37964
+ Q.data._beginMatch = S[1] || S[2];
37965
37965
  },
37966
- "on:end": (M, Q) => {
37967
- Q.data._beginMatch !== M[1] && Q.ignoreMatch();
37966
+ "on:end": (S, Q) => {
37967
+ Q.data._beginMatch !== S[1] && Q.ignoreMatch();
37968
37968
  }
37969
37969
  }, h = e.END_SAME_AS_BEGIN({
37970
37970
  begin: /<<<[ \t]*'(\w+)'\n/,
@@ -38192,14 +38192,14 @@ function CC(e) {
38192
38192
  "stdClass"
38193
38193
  ], T = {
38194
38194
  keyword: E,
38195
- literal: ((M) => {
38195
+ literal: ((S) => {
38196
38196
  const Q = [];
38197
- return M.forEach((G) => {
38197
+ return S.forEach((G) => {
38198
38198
  Q.push(G), G.toLowerCase() === G ? Q.push(G.toUpperCase()) : Q.push(G.toLowerCase());
38199
38199
  }), Q;
38200
38200
  })(A),
38201
38201
  built_in: k
38202
- }, I = (M) => M.map((Q) => Q.replace(/\|\d+$/, "")), S = { variants: [
38202
+ }, I = (S) => S.map((Q) => Q.replace(/\|\d+$/, "")), x = { variants: [
38203
38203
  {
38204
38204
  match: [
38205
38205
  /new/,
@@ -38213,14 +38213,14 @@ function CC(e) {
38213
38213
  4: "title.class"
38214
38214
  }
38215
38215
  }
38216
- ] }, B = t.concat(r, "\\b(?!\\()"), D = { variants: [
38216
+ ] }, R = t.concat(r, "\\b(?!\\()"), D = { variants: [
38217
38217
  {
38218
38218
  match: [
38219
38219
  t.concat(
38220
38220
  /::/,
38221
38221
  t.lookahead(/(?!class\b)/)
38222
38222
  ),
38223
- B
38223
+ R
38224
38224
  ],
38225
38225
  scope: { 2: "variable.constant" }
38226
38226
  },
@@ -38238,7 +38238,7 @@ function CC(e) {
38238
38238
  /::/,
38239
38239
  t.lookahead(/(?!class\b)/)
38240
38240
  ),
38241
- B
38241
+ R
38242
38242
  ],
38243
38243
  scope: {
38244
38244
  1: "title.class",
@@ -38281,7 +38281,7 @@ function CC(e) {
38281
38281
  e.C_BLOCK_COMMENT_MODE,
38282
38282
  p,
38283
38283
  m,
38284
- S
38284
+ x
38285
38285
  ]
38286
38286
  }, F = {
38287
38287
  relevance: 0,
@@ -38303,8 +38303,8 @@ function CC(e) {
38303
38303
  e.C_BLOCK_COMMENT_MODE,
38304
38304
  p,
38305
38305
  m,
38306
- S
38307
- ], x = {
38306
+ x
38307
+ ], M = {
38308
38308
  begin: t.concat(
38309
38309
  /#\[\s*\\?/,
38310
38310
  t.either(
@@ -38352,7 +38352,7 @@ function CC(e) {
38352
38352
  case_insensitive: !1,
38353
38353
  keywords: T,
38354
38354
  contains: [
38355
- x,
38355
+ M,
38356
38356
  e.HASH_COMMENT_MODE,
38357
38357
  e.COMMENT("//", "$"),
38358
38358
  e.COMMENT(
@@ -38399,7 +38399,7 @@ function CC(e) {
38399
38399
  3: "variable.constant"
38400
38400
  }
38401
38401
  },
38402
- S,
38402
+ x,
38403
38403
  {
38404
38404
  scope: "function",
38405
38405
  relevance: 0,
@@ -38424,7 +38424,7 @@ function CC(e) {
38424
38424
  keywords: T,
38425
38425
  contains: [
38426
38426
  "self",
38427
- x,
38427
+ M,
38428
38428
  s,
38429
38429
  D,
38430
38430
  e.C_BLOCK_COMMENT_MODE,
@@ -38692,7 +38692,7 @@ function vg(e) {
38692
38692
  keywords: s
38693
38693
  }
38694
38694
  ]
38695
- }, S = [
38695
+ }, x = [
38696
38696
  f,
38697
38697
  {
38698
38698
  variants: [
@@ -38835,13 +38835,13 @@ function vg(e) {
38835
38835
  relevance: 0
38836
38836
  }
38837
38837
  ].concat(u, l);
38838
- c.contains = S, m.contains = S;
38838
+ c.contains = x, m.contains = x;
38839
38839
  const _ = [
38840
38840
  {
38841
38841
  begin: /^\s*=>/,
38842
38842
  starts: {
38843
38843
  end: "$",
38844
- contains: S
38844
+ contains: x
38845
38845
  }
38846
38846
  },
38847
38847
  {
@@ -38850,7 +38850,7 @@ function vg(e) {
38850
38850
  starts: {
38851
38851
  end: "$",
38852
38852
  keywords: s,
38853
- contains: S
38853
+ contains: x
38854
38854
  }
38855
38855
  }
38856
38856
  ];
@@ -38865,7 +38865,7 @@ function vg(e) {
38865
38865
  ],
38866
38866
  keywords: s,
38867
38867
  illegal: /\/\*/,
38868
- contains: [e.SHEBANG({ binary: "ruby" })].concat(_).concat(l).concat(S)
38868
+ contains: [e.SHEBANG({ binary: "ruby" })].concat(_).concat(l).concat(x)
38869
38869
  };
38870
38870
  }
38871
38871
  function Ig(e) {
@@ -39740,33 +39740,33 @@ function LC(e) {
39740
39740
  }), I = (ce = "") => ({
39741
39741
  className: "subst",
39742
39742
  match: $e(/\\/, ce, /[\t ]*(?:[\r\n]|\r\n)/)
39743
- }), S = (ce = "") => ({
39743
+ }), x = (ce = "") => ({
39744
39744
  className: "subst",
39745
39745
  label: "interpol",
39746
39746
  begin: $e(/\\/, ce, /\(/),
39747
39747
  end: /\)/
39748
- }), B = (ce = "") => ({
39748
+ }), R = (ce = "") => ({
39749
39749
  begin: $e(ce, /"""/),
39750
39750
  end: $e(/"""/, ce),
39751
39751
  contains: [
39752
39752
  T(ce),
39753
39753
  I(ce),
39754
- S(ce)
39754
+ x(ce)
39755
39755
  ]
39756
39756
  }), D = (ce = "") => ({
39757
39757
  begin: $e(ce, /"/),
39758
39758
  end: $e(/"/, ce),
39759
39759
  contains: [
39760
39760
  T(ce),
39761
- S(ce)
39761
+ x(ce)
39762
39762
  ]
39763
39763
  }), N = {
39764
39764
  className: "string",
39765
39765
  variants: [
39766
- B(),
39767
- B("#"),
39768
- B("##"),
39769
- B("###"),
39766
+ R(),
39767
+ R("#"),
39768
+ R("##"),
39769
+ R("###"),
39770
39770
  D(),
39771
39771
  D("#"),
39772
39772
  D("##"),
@@ -39798,7 +39798,7 @@ function LC(e) {
39798
39798
  }
39799
39799
  ]
39800
39800
  };
39801
- }, x = {
39801
+ }, M = {
39802
39802
  scope: "regexp",
39803
39803
  variants: [
39804
39804
  L("###"),
@@ -39806,14 +39806,14 @@ function LC(e) {
39806
39806
  L("#"),
39807
39807
  F
39808
39808
  ]
39809
- }, M = { match: $e(/`/, Tn, /`/) }, Q = {
39809
+ }, S = { match: $e(/`/, Tn, /`/) }, Q = {
39810
39810
  className: "variable",
39811
39811
  match: /\$\d+/
39812
39812
  }, G = {
39813
39813
  className: "variable",
39814
39814
  match: `\\$${Ls}+`
39815
39815
  }, W = [
39816
- M,
39816
+ S,
39817
39817
  Q,
39818
39818
  G
39819
39819
  ], K = {
@@ -39898,7 +39898,7 @@ function LC(e) {
39898
39898
  "self",
39899
39899
  ae,
39900
39900
  ...r,
39901
- x,
39901
+ M,
39902
39902
  ...c,
39903
39903
  ...g,
39904
39904
  ...A,
@@ -39954,7 +39954,7 @@ function LC(e) {
39954
39954
  match: [
39955
39955
  /(func|macro)/,
39956
39956
  /\s+/,
39957
- St(M.match, Tn, Qo)
39957
+ St(S.match, Tn, Qo)
39958
39958
  ],
39959
39959
  className: {
39960
39960
  1: "keyword",
@@ -40101,7 +40101,7 @@ function LC(e) {
40101
40101
  contains: [...r],
40102
40102
  relevance: 0
40103
40103
  },
40104
- x,
40104
+ M,
40105
40105
  ...c,
40106
40106
  ...g,
40107
40107
  ...A,
@@ -40920,7 +40920,7 @@ function BC(e) {
40920
40920
  function k(I) {
40921
40921
  return t.concat(
40922
40922
  /\b/,
40923
- t.either(...I.map((S) => S.replace(/\s+/, "\\s+"))),
40923
+ t.either(...I.map((x) => x.replace(/\s+/, "\\s+"))),
40924
40924
  /\b/
40925
40925
  );
40926
40926
  }
@@ -40930,11 +40930,11 @@ function BC(e) {
40930
40930
  relevance: 0
40931
40931
  };
40932
40932
  function T(I, {
40933
- exceptions: S,
40934
- when: B
40933
+ exceptions: x,
40934
+ when: R
40935
40935
  } = {}) {
40936
- const D = B;
40937
- return S = S || [], I.map((N) => N.match(/\|\d+$/) || S.includes(N) ? N : D(N) ? `${N}|0` : N);
40936
+ const D = R;
40937
+ return x = x || [], I.map((N) => N.match(/\|\d+$/) || x.includes(N) ? N : D(N) ? `${N}|0` : N);
40938
40938
  }
40939
40939
  return {
40940
40940
  name: "SQL",
@@ -47089,11 +47089,11 @@ ${c}` : c;
47089
47089
  `, 1)[0], m = !g.trim(), A = 0;
47090
47090
  if (this.options.pedantic ? (A = 2, h = g.trimStart()) : m ? A = t[1].length + 1 : (A = g.search(this.rules.other.nonSpaceChar), A = A > 4 ? 1 : A, h = g.slice(A), A += t[1].length), m && this.rules.other.blankLine.test(p) && (f += p + `
47091
47091
  `, e = e.substring(p.length + 1), c = !0), !c) {
47092
- let E = this.rules.other.nextBulletRegex(A), k = this.rules.other.hrRegex(A), C = this.rules.other.fencesBeginRegex(A), T = this.rules.other.headingBeginRegex(A), I = this.rules.other.htmlBeginRegex(A), S = this.rules.other.blockquoteBeginRegex(A);
47092
+ let E = this.rules.other.nextBulletRegex(A), k = this.rules.other.hrRegex(A), C = this.rules.other.fencesBeginRegex(A), T = this.rules.other.headingBeginRegex(A), I = this.rules.other.htmlBeginRegex(A), x = this.rules.other.blockquoteBeginRegex(A);
47093
47093
  for (; e; ) {
47094
- let B = e.split(`
47094
+ let R = e.split(`
47095
47095
  `, 1)[0], D;
47096
- if (p = B, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), D = p) : D = p.replace(this.rules.other.tabCharGlobal, " "), C.test(p) || T.test(p) || I.test(p) || S.test(p) || E.test(p) || k.test(p)) break;
47096
+ if (p = R, this.options.pedantic ? (p = p.replace(this.rules.other.listReplaceNesting, " "), D = p) : D = p.replace(this.rules.other.tabCharGlobal, " "), C.test(p) || T.test(p) || I.test(p) || x.test(p) || E.test(p) || k.test(p)) break;
47097
47097
  if (D.search(this.rules.other.nonSpaceChar) >= A || !p.trim()) h += `
47098
47098
  ` + D.slice(A);
47099
47099
  else {
@@ -47101,8 +47101,8 @@ ${c}` : c;
47101
47101
  h += `
47102
47102
  ` + p;
47103
47103
  }
47104
- m = !p.trim(), f += B + `
47105
- `, e = e.substring(B.length + 1), g = D.slice(A);
47104
+ m = !p.trim(), f += R + `
47105
+ `, e = e.substring(R.length + 1), g = D.slice(A);
47106
47106
  }
47107
47107
  }
47108
47108
  s.loose || (u ? s.loose = !0 : this.rules.other.doubleBlankLine.test(f) && (u = !0)), s.items.push({ type: "list_item", raw: f, task: !!this.options.gfm && this.rules.other.listIsTask.test(h), loose: !1, text: h, tokens: [] }), s.raw += f;
@@ -50434,11 +50434,11 @@ const aS = Wt.create({
50434
50434
  } finally {
50435
50435
  g.value = !1, p.value = !1;
50436
50436
  }
50437
- }, S = () => {
50437
+ }, x = () => {
50438
50438
  if (!u.value || !A.value || p.value) return;
50439
50439
  const { scrollTop: _, scrollHeight: F, clientHeight: L } = u.value;
50440
50440
  _ + L >= F - 40 && I(m.value + 1);
50441
- }, B = (_) => {
50441
+ }, R = (_) => {
50442
50442
  s.command(_);
50443
50443
  }, D = (_) => {
50444
50444
  _ && _.scrollIntoView({ block: "nearest" });
@@ -50449,10 +50449,10 @@ const aS = Wt.create({
50449
50449
  if (_.key === "ArrowDown")
50450
50450
  return _.preventDefault(), h.value === -1 ? h.value = 0 : h.value = Math.min(f.value.length - 1, h.value + 1), h.value >= f.value.length - 2 && A.value && !p.value && I(m.value + 1), !0;
50451
50451
  if (_.key === "Enter")
50452
- return _.preventDefault(), h.value !== -1 && f.value[h.value] && B(f.value[h.value]), !0;
50452
+ return _.preventDefault(), h.value !== -1 && f.value[h.value] && R(f.value[h.value]), !0;
50453
50453
  if (_.key === "Tab") {
50454
50454
  _.preventDefault();
50455
- const L = (E.value.findIndex((x) => x.key === c.value) + 1) % E.value.length;
50455
+ const L = (E.value.findIndex((M) => M.key === c.value) + 1) % E.value.length;
50456
50456
  return k(E.value[L].key), !0;
50457
50457
  }
50458
50458
  return !1;
@@ -50482,7 +50482,7 @@ const aS = Wt.create({
50482
50482
  (O(!0), U(Tt, null, Lt(E.value, (L) => (O(), U("button", {
50483
50483
  key: L.key,
50484
50484
  class: X(["mention-tab", { active: c.value === L.key }]),
50485
- onClick: (x) => k(L.key)
50485
+ onClick: (M) => k(L.key)
50486
50486
  }, [
50487
50487
  (O(), Ie(na(a[L.key]), {
50488
50488
  size: 14,
@@ -50495,21 +50495,21 @@ const aS = Wt.create({
50495
50495
  class: "mention-items",
50496
50496
  ref_key: "listRef",
50497
50497
  ref: u,
50498
- onScroll: S
50498
+ onScroll: x
50499
50499
  }, [
50500
50500
  g.value && f.value.length === 0 ? (O(), U("div", MS, [...F[1] || (F[1] = [
50501
50501
  b("span", null, "加载中...", -1)
50502
50502
  ])])) : f.value.length === 0 ? (O(), U("div", SS, [
50503
50503
  b("span", null, we(l.value ? "未找到匹配项" : "暂无数据"), 1)
50504
50504
  ])) : (O(), U(Tt, { key: 2 }, [
50505
- (O(!0), U(Tt, null, Lt(f.value, (L, x) => (O(), U("button", {
50505
+ (O(!0), U(Tt, null, Lt(f.value, (L, M) => (O(), U("button", {
50506
50506
  key: L.id,
50507
- class: X(["mention-item", { selected: x === h.value }]),
50508
- onClick: (M) => B(L),
50509
- onMouseenter: (M) => h.value = x,
50507
+ class: X(["mention-item", { selected: M === h.value }]),
50508
+ onClick: (S) => R(L),
50509
+ onMouseenter: (S) => h.value = M,
50510
50510
  ref_for: !0,
50511
- ref: (M) => {
50512
- x === h.value && D(M);
50511
+ ref: (S) => {
50512
+ M === h.value && D(S);
50513
50513
  }
50514
50514
  }, [
50515
50515
  b("span", OS, [
@@ -50622,20 +50622,40 @@ const aS = Wt.create({
50622
50622
  r.value = !0, document.body.style.overflow = "hidden";
50623
50623
  }, o = () => {
50624
50624
  r.value = !1, document.body.style.overflow = "";
50625
- }, u = async () => {
50625
+ }, u = () => {
50626
+ if (!n.value || !n.value.src) return;
50627
+ const f = n.value.src, h = n.value.naturalWidth, g = n.value.naturalHeight;
50626
50628
  try {
50627
- if (n.value) {
50628
- const f = document.createElement("canvas");
50629
- f.width = n.value.naturalWidth, f.height = n.value.naturalHeight;
50630
- const h = f.getContext("2d");
50631
- h == null || h.drawImage(n.value, 0, 0), f.toBlob(async (g) => {
50632
- g && await navigator.clipboard.write([
50633
- new ClipboardItem({ "image/png": g })
50634
- ]);
50629
+ const p = new Promise(async (m, A) => {
50630
+ let E;
50631
+ try {
50632
+ const R = await (await fetch(f)).blob(), D = URL.createObjectURL(R);
50633
+ E = new Image(), E.src = D, await new Promise((N, _) => {
50634
+ E.onload = N, E.onerror = _;
50635
+ });
50636
+ } catch (x) {
50637
+ console.warn("Fetch image failed, fallback to original", x), E = new Image(), E.crossOrigin = "anonymous", E.src = f, await new Promise((R) => {
50638
+ E.onload = R, E.onerror = R;
50639
+ });
50640
+ }
50641
+ const k = document.createElement("canvas"), C = E.naturalWidth || h || 800, T = E.naturalHeight || g || 600;
50642
+ k.width = C, k.height = T;
50643
+ const I = k.getContext("2d");
50644
+ I == null || I.drawImage(E, 0, 0, C, T), k.toBlob((x) => {
50645
+ x ? m(x) : A(new Error("Canvas toBlob failed"));
50635
50646
  }, "image/png");
50636
- }
50637
- } catch (f) {
50638
- console.error("复制图片失败:", f);
50647
+ });
50648
+ navigator.clipboard.write([
50649
+ new ClipboardItem({ "image/png": p })
50650
+ ]).then(() => {
50651
+ a.value = !0, setTimeout(() => {
50652
+ a.value = !1;
50653
+ }, 2e3);
50654
+ }).catch((m) => {
50655
+ console.error("写入剪贴板最后阶段失败:", m);
50656
+ });
50657
+ } catch (p) {
50658
+ console.error("调用剪贴板同步阶段失败:", p);
50639
50659
  }
50640
50660
  }, l = () => {
50641
50661
  if (!t.editor) return;
@@ -50748,7 +50768,7 @@ const aS = Wt.create({
50748
50768
  _: 1
50749
50769
  }, 8, ["class"]));
50750
50770
  }
50751
- }), KS = /* @__PURE__ */ tt(QS, [["__scopeId", "data-v-87cb2c31"]]), mc = Wt.create({
50771
+ }), KS = /* @__PURE__ */ tt(QS, [["__scopeId", "data-v-46346f44"]]), mc = Wt.create({
50752
50772
  name: "imageUpload",
50753
50773
  addOptions() {
50754
50774
  return {
@@ -51646,7 +51666,7 @@ const oD = { class: "editor-footer-slot" }, uD = /* @__PURE__ */ Ne({
51646
51666
  window.addEventListener("editor-trigger-video-upload", I), or(() => {
51647
51667
  window.removeEventListener("editor-trigger-video-upload", I);
51648
51668
  });
51649
- const S = ({ editor: Z, from: he, to: Pe }) => {
51669
+ const x = ({ editor: Z, from: he, to: Pe }) => {
51650
51670
  if (!Z.isEditable || he === Pe) return !1;
51651
51671
  const { state: pe } = Z, { doc: Te } = pe, Ue = ["documentTitle", "linkCardBlock", "linkCardInline", "imageUpload", "streamingPreview", "videoEmbed"];
51652
51672
  let Ae = !1;
@@ -51655,7 +51675,7 @@ const oD = { class: "editor-footer-slot" }, uD = /* @__PURE__ */ Ne({
51655
51675
  return Ae = !0, !1;
51656
51676
  }), !Ae;
51657
51677
  }, {
51658
- startAIStream: B,
51678
+ startAIStream: R,
51659
51679
  streamContent: D,
51660
51680
  endAIStream: N,
51661
51681
  cancelAIStream: _,
@@ -51669,9 +51689,9 @@ const oD = { class: "editor-footer-slot" }, uD = /* @__PURE__ */ Ne({
51669
51689
  onMentionHover: (Z) => a("mention-hover", Z),
51670
51690
  onMentionHoverEnd: () => a("mention-hover-end")
51671
51691
  },
51672
- aiStreamControls: { startAIStream: B, streamContent: D, endAIStream: N, cancelAIStream: _ }
51692
+ aiStreamControls: { startAIStream: R, streamContent: D, endAIStream: N, cancelAIStream: _ }
51673
51693
  });
51674
- const { getHTML: L, getMarkdown: x, getJSON: M, getText: Q, setMarkdown: G, setHTML: W, setJSON: K } = k1(E, {
51694
+ const { getHTML: L, getMarkdown: M, getJSON: S, getText: Q, setMarkdown: G, setHTML: W, setJSON: K } = k1(E, {
51675
51695
  getTitle: () => s.value,
51676
51696
  setTitle: (Z) => {
51677
51697
  s.value = Z, a("update:title", Z);
@@ -51696,8 +51716,8 @@ const oD = { class: "editor-footer-slot" }, uD = /* @__PURE__ */ Ne({
51696
51716
  scrollToHeading: Be,
51697
51717
  // 内容导出方法
51698
51718
  getHTML: L,
51699
- getMarkdown: x,
51700
- getJSON: M,
51719
+ getMarkdown: M,
51720
+ getJSON: S,
51701
51721
  getText: Q,
51702
51722
  // 内容导入方法
51703
51723
  setMarkdown: G,
@@ -51707,7 +51727,7 @@ const oD = { class: "editor-footer-slot" }, uD = /* @__PURE__ */ Ne({
51707
51727
  getMinimalHTML: Je,
51708
51728
  getArtisticHTML: ge,
51709
51729
  // AI 流式输出方法
51710
- startAIStream: B,
51730
+ startAIStream: R,
51711
51731
  streamContent: D,
51712
51732
  endAIStream: N,
51713
51733
  cancelAIStream: _,
@@ -51743,7 +51763,7 @@ const oD = { class: "editor-footer-slot" }, uD = /* @__PURE__ */ Ne({
51743
51763
  key: 0,
51744
51764
  editor: P(E),
51745
51765
  "tippy-options": { duration: 100 },
51746
- "should-show": S
51766
+ "should-show": x
51747
51767
  }, {
51748
51768
  default: Nt(() => [
51749
51769
  z(v2, { editor: P(E) }, null, 8, ["editor"])
@@ -52225,7 +52245,7 @@ function T8(e) {
52225
52245
  fetchRefactoring: async (E, k, C) => {
52226
52246
  const T = `【优化后】${E.replace(/。/g, "!")}`;
52227
52247
  for (let I = 0; I < T.length; I++)
52228
- await new Promise((S) => setTimeout(S, 50)), C(T[I]);
52248
+ await new Promise((x) => setTimeout(x, 50)), C(T[I]);
52229
52249
  }
52230
52250
  });
52231
52251
  return {
@@ -52313,22 +52333,22 @@ const gD = { class: "flash-toolbar" }, pD = { class: "toolbar-left" }, mD = { cl
52313
52333
  r.format === "markdown" ? a("update:modelValue", T.getMarkdown()) : r.format === "json" ? a("update:modelValue", JSON.stringify(T.getJSON())) : a("update:modelValue", T.getHTML());
52314
52334
  },
52315
52335
  editorProps: {
52316
- handleDrop: (T, I, S, B) => {
52317
- if (!B && I.dataTransfer && I.dataTransfer.files && I.dataTransfer.files[0]) {
52336
+ handleDrop: (T, I, x, R) => {
52337
+ if (!R && I.dataTransfer && I.dataTransfer.files && I.dataTransfer.files[0]) {
52318
52338
  const D = I.dataTransfer.files[0];
52319
52339
  if (D.type.startsWith("image/"))
52320
52340
  return I.preventDefault(), f(D, T, I), !0;
52321
52341
  }
52322
52342
  return !1;
52323
52343
  },
52324
- handlePaste: (T, I, S) => {
52344
+ handlePaste: (T, I, x) => {
52325
52345
  var D;
52326
- const B = (D = I.clipboardData) == null ? void 0 : D.items;
52327
- if (B) {
52328
- for (let N = 0; N < B.length; N++)
52329
- if (B[N].type.startsWith("image/")) {
52346
+ const R = (D = I.clipboardData) == null ? void 0 : D.items;
52347
+ if (R) {
52348
+ for (let N = 0; N < R.length; N++)
52349
+ if (R[N].type.startsWith("image/")) {
52330
52350
  I.preventDefault();
52331
- const _ = B[N].getAsFile();
52351
+ const _ = R[N].getAsFile();
52332
52352
  return _ && f(_, T, I), !0;
52333
52353
  }
52334
52354
  }
@@ -52344,10 +52364,10 @@ const gD = { class: "flash-toolbar" }, pD = { class: "toolbar-left" }, mD = { cl
52344
52364
  if (r.format === "markdown" ? I = i.value.getMarkdown() : r.format === "json" ? I = JSON.stringify(i.value.getJSON()) : I = i.value.getHTML(), !(I === T))
52345
52365
  if (r.format === "json")
52346
52366
  try {
52347
- const B = JSON.parse(T);
52348
- i.value.commands.setContent(B, !1);
52349
- } catch (B) {
52350
- console.error("Failed to load JSON content:", B);
52367
+ const R = JSON.parse(T);
52368
+ i.value.commands.setContent(R, !1);
52369
+ } catch (R) {
52370
+ console.error("Failed to load JSON content:", R);
52351
52371
  }
52352
52372
  else r.format === "markdown" ? i.value.commands.setContent(T, {
52353
52373
  contentType: "markdown",
@@ -52392,7 +52412,7 @@ const gD = { class: "flash-toolbar" }, pD = { class: "toolbar-left" }, mD = { cl
52392
52412
  setHTML: k,
52393
52413
  setJSON: C
52394
52414
  }), (T, I) => {
52395
- var S, B, D, N;
52415
+ var x, R, D, N;
52396
52416
  return O(), U("div", {
52397
52417
  class: X(["flash-editor", { "theme-dark": e.theme === "dark" }])
52398
52418
  }, [
@@ -52407,14 +52427,14 @@ const gD = { class: "flash-toolbar" }, pD = { class: "toolbar-left" }, mD = { cl
52407
52427
  z(P(X0), { size: 18 })
52408
52428
  ]),
52409
52429
  b("button", {
52410
- class: X(["toolbar-btn", { "is-active": (S = P(i)) == null ? void 0 : S.isActive("taskList") }]),
52430
+ class: X(["toolbar-btn", { "is-active": (x = P(i)) == null ? void 0 : x.isActive("taskList") }]),
52411
52431
  onClick: o,
52412
52432
  title: "任务列表"
52413
52433
  }, [
52414
52434
  z(P(SA), { size: 18 })
52415
52435
  ], 2),
52416
52436
  b("button", {
52417
- class: X(["toolbar-btn", { "is-active": (B = P(i)) == null ? void 0 : B.isActive("bold") }]),
52437
+ class: X(["toolbar-btn", { "is-active": (R = P(i)) == null ? void 0 : R.isActive("bold") }]),
52418
52438
  onClick: s,
52419
52439
  title: "加粗"
52420
52440
  }, [
@@ -52541,7 +52561,7 @@ const gD = { class: "flash-toolbar" }, pD = { class: "toolbar-left" }, mD = { cl
52541
52561
  });
52542
52562
  a = c;
52543
52563
  const f = (m, A) => {
52544
- var E, k, C, T, I, S, B, D, N, _, F, L, x, M, Q, G;
52564
+ var E, k, C, T, I, x, R, D, N, _, F, L, M, S, Q, G;
52545
52565
  switch (m) {
52546
52566
  case "setEditable":
52547
52567
  (E = o.value) == null || E.setEditable(A.editable);
@@ -52558,10 +52578,10 @@ const gD = { class: "flash-toolbar" }, pD = { class: "toolbar-left" }, mD = { cl
52558
52578
  (I = o.value) == null || I.chain().focus().toggleBold().run();
52559
52579
  break;
52560
52580
  case "toggleItalic":
52561
- (S = o.value) == null || S.chain().focus().toggleItalic().run();
52581
+ (x = o.value) == null || x.chain().focus().toggleItalic().run();
52562
52582
  break;
52563
52583
  case "toggleBulletList":
52564
- (B = o.value) == null || B.chain().focus().toggleBulletList().run();
52584
+ (R = o.value) == null || R.chain().focus().toggleBulletList().run();
52565
52585
  break;
52566
52586
  case "toggleOrderedList":
52567
52587
  (D = o.value) == null || D.chain().focus().toggleOrderedList().run();
@@ -52578,8 +52598,8 @@ const gD = { class: "flash-toolbar" }, pD = { class: "toolbar-left" }, mD = { cl
52578
52598
  case "getEditorContent":
52579
52599
  const W = {
52580
52600
  html: (L = o.value) == null ? void 0 : L.getHTML(),
52581
- json: (x = o.value) == null ? void 0 : x.getJSON(),
52582
- text: (M = o.value) == null ? void 0 : M.getText()
52601
+ json: (M = o.value) == null ? void 0 : M.getJSON(),
52602
+ text: (S = o.value) == null ? void 0 : S.getText()
52583
52603
  };
52584
52604
  u("editorContent", W);
52585
52605
  break;
@@ -52670,13 +52690,13 @@ const gD = { class: "flash-toolbar" }, pD = { class: "toolbar-left" }, mD = { cl
52670
52690
  if (!i.value) return n.availableTags;
52671
52691
  const L = i.value.toLowerCase();
52672
52692
  return n.availableTags.filter(
52673
- (x) => x.name.toLowerCase().includes(L)
52693
+ (M) => M.name.toLowerCase().includes(L)
52674
52694
  );
52675
52695
  }), g = ne(() => {
52676
52696
  if (!i.value) return !1;
52677
52697
  const L = i.value.toLowerCase();
52678
- return h.value.some((x) => x.name.toLowerCase() === L);
52679
- }), p = ne(() => a.value && (h.value.length > 0 || i.value.length > 0)), m = (L) => n.modelValue.some((x) => x.id === L.id), A = () => {
52698
+ return h.value.some((M) => M.name.toLowerCase() === L);
52699
+ }), p = ne(() => a.value && (h.value.length > 0 || i.value.length > 0)), m = (L) => n.modelValue.some((M) => M.id === L.id), A = () => {
52680
52700
  f.value && (a.value = !0, Ct(() => {
52681
52701
  var L;
52682
52702
  (L = s.value) == null || L.focus();
@@ -52693,20 +52713,20 @@ const gD = { class: "flash-toolbar" }, pD = { class: "toolbar-left" }, mD = { cl
52693
52713
  l();
52694
52714
  }, T = (L) => {
52695
52715
  if (!i.value && n.modelValue.length > 0) {
52696
- const x = n.modelValue[n.modelValue.length - 1];
52697
- B(x);
52716
+ const M = n.modelValue[n.modelValue.length - 1];
52717
+ R(M);
52698
52718
  }
52699
52719
  }, I = (L) => {
52700
- m(L) ? B(L) : S(L), i.value = "", a.value = !0, Ct(() => {
52701
- var x;
52702
- (x = s.value) == null || x.focus();
52720
+ m(L) ? R(L) : x(L), i.value = "", a.value = !0, Ct(() => {
52721
+ var M;
52722
+ (M = s.value) == null || M.focus();
52703
52723
  });
52704
- }, S = (L) => {
52705
- const x = [...n.modelValue, L];
52706
- r("update:modelValue", x), r("add", L);
52707
- }, B = (L) => {
52708
- const x = n.modelValue.filter((M) => M.id !== L.id);
52709
- r("update:modelValue", x), r("remove", L);
52724
+ }, x = (L) => {
52725
+ const M = [...n.modelValue, L];
52726
+ r("update:modelValue", M), r("add", L);
52727
+ }, R = (L) => {
52728
+ const M = n.modelValue.filter((S) => S.id !== L.id);
52729
+ r("update:modelValue", M), r("remove", L);
52710
52730
  }, D = () => {
52711
52731
  if (h.value.length > 0 && o.value < h.value.length) {
52712
52732
  const L = h.value[o.value];
@@ -52717,13 +52737,13 @@ const gD = { class: "flash-toolbar" }, pD = { class: "toolbar-left" }, mD = { cl
52717
52737
  }, N = () => {
52718
52738
  if (!i.value.trim()) return;
52719
52739
  const L = n.availableTags.find(
52720
- (x) => x.name.toLowerCase() === i.value.toLowerCase()
52740
+ (M) => M.name.toLowerCase() === i.value.toLowerCase()
52721
52741
  );
52722
- L ? m(L) || S(L) : r("create", i.value.trim()), i.value = "", E();
52742
+ L ? m(L) || x(L) : r("create", i.value.trim()), i.value = "", E();
52723
52743
  }, _ = (L) => {
52724
52744
  if (!p.value) return;
52725
- const x = h.value.length + (i.value && !g.value ? 1 : 0);
52726
- x !== 0 && (o.value = (o.value + L + x) % x);
52745
+ const M = h.value.length + (i.value && !g.value ? 1 : 0);
52746
+ M !== 0 && (o.value = (o.value + L + M) % M);
52727
52747
  }, F = (L) => {
52728
52748
  L.altKey && L.metaKey && L.key.toLowerCase() === "k" && (L.preventDefault(), a.value ? k() : E());
52729
52749
  };
@@ -52733,25 +52753,25 @@ const gD = { class: "flash-toolbar" }, pD = { class: "toolbar-left" }, mD = { cl
52733
52753
  document.removeEventListener("keydown", F);
52734
52754
  }), gt(i, () => {
52735
52755
  o.value = 0;
52736
- }), (L, x) => (O(), U("div", {
52756
+ }), (L, M) => (O(), U("div", {
52737
52757
  class: X(["tag-input", { "theme-dark": e.theme === "dark" }])
52738
52758
  }, [
52739
52759
  b("div", {
52740
52760
  class: "tag-list",
52741
52761
  onClick: A
52742
52762
  }, [
52743
- (O(!0), U(Tt, null, Lt(e.modelValue, (M) => (O(), U("div", {
52744
- key: M.id,
52763
+ (O(!0), U(Tt, null, Lt(e.modelValue, (S) => (O(), U("div", {
52764
+ key: S.id,
52745
52765
  class: "tag-item"
52746
52766
  }, [
52747
52767
  b("span", yD, [
52748
- b("span", TD, we(M.name), 1)
52768
+ b("span", TD, we(S.name), 1)
52749
52769
  ]),
52750
52770
  b("button", {
52751
52771
  class: "tag-remove-btn",
52752
- onClick: oe((Q) => B(M), ["stop"]),
52772
+ onClick: oe((Q) => R(S), ["stop"]),
52753
52773
  title: "移除标签"
52754
- }, [...x[3] || (x[3] = [
52774
+ }, [...M[3] || (M[3] = [
52755
52775
  b("svg", {
52756
52776
  width: "10",
52757
52777
  height: "10",
@@ -52782,7 +52802,7 @@ const gD = { class: "flash-toolbar" }, pD = { class: "toolbar-left" }, mD = { cl
52782
52802
  lt(b("input", {
52783
52803
  ref_key: "inputRef",
52784
52804
  ref: s,
52785
- "onUpdate:modelValue": x[0] || (x[0] = (M) => i.value = M),
52805
+ "onUpdate:modelValue": M[0] || (M[0] = (S) => i.value = S),
52786
52806
  type: "text",
52787
52807
  class: "inline-input",
52788
52808
  placeholder: "",
@@ -52791,8 +52811,8 @@ const gD = { class: "flash-toolbar" }, pD = { class: "toolbar-left" }, mD = { cl
52791
52811
  at(oe(D, ["prevent"]), ["enter"]),
52792
52812
  at(k, ["esc"]),
52793
52813
  at(T, ["delete"]),
52794
- x[1] || (x[1] = at(oe((M) => _(-1), ["prevent"]), ["up"])),
52795
- x[2] || (x[2] = at(oe((M) => _(1), ["prevent"]), ["down"]))
52814
+ M[1] || (M[1] = at(oe((S) => _(-1), ["prevent"]), ["up"])),
52815
+ M[2] || (M[2] = at(oe((S) => _(1), ["prevent"]), ["down"]))
52796
52816
  ],
52797
52817
  onBlur: C
52798
52818
  }, null, 40, wD), [
@@ -52800,17 +52820,17 @@ const gD = { class: "flash-toolbar" }, pD = { class: "toolbar-left" }, mD = { cl
52800
52820
  ]),
52801
52821
  p.value ? (O(), U("div", CD, [
52802
52822
  b("div", ND, [
52803
- (O(!0), U(Tt, null, Lt(h.value, (M, Q) => (O(), U("div", {
52804
- key: M.id,
52805
- class: X(["dropdown-item", { "is-active": o.value === Q, "is-selected": m(M) }]),
52806
- onMousedown: oe((G) => I(M), ["prevent"])
52823
+ (O(!0), U(Tt, null, Lt(h.value, (S, Q) => (O(), U("div", {
52824
+ key: S.id,
52825
+ class: X(["dropdown-item", { "is-active": o.value === Q, "is-selected": m(S) }]),
52826
+ onMousedown: oe((G) => I(S), ["prevent"])
52807
52827
  }, [
52808
52828
  b("span", {
52809
52829
  class: "tag-color-indicator",
52810
- style: Ht({ background: M.color || "#22c55e" })
52830
+ style: Ht({ background: S.color || "#22c55e" })
52811
52831
  }, null, 4),
52812
- b("span", xD, we(M.name), 1),
52813
- m(M) ? (O(), U("svg", MD, [...x[4] || (x[4] = [
52832
+ b("span", xD, we(S.name), 1),
52833
+ m(S) ? (O(), U("svg", MD, [...M[4] || (M[4] = [
52814
52834
  b("polyline", { points: "20 6 9 17 4 12" }, null, -1)
52815
52835
  ])])) : te("", !0)
52816
52836
  ], 42, _D))), 128)),
@@ -52819,12 +52839,12 @@ const gD = { class: "flash-toolbar" }, pD = { class: "toolbar-left" }, mD = { cl
52819
52839
  class: X(["dropdown-item create-new", { "is-active": o.value === h.value.length }]),
52820
52840
  onMousedown: oe(N, ["prevent"])
52821
52841
  }, [
52822
- x[6] || (x[6] = b("div", { class: "create-icon-wrapper" }, "#", -1)),
52842
+ M[6] || (M[6] = b("div", { class: "create-icon-wrapper" }, "#", -1)),
52823
52843
  b("span", SD, [
52824
- x[5] || (x[5] = Nn("创建 ", -1)),
52844
+ M[5] || (M[5] = Nn("创建 ", -1)),
52825
52845
  b("span", DD, we(i.value), 1)
52826
52846
  ]),
52827
- x[7] || (x[7] = b("span", { class: "create-hint" }, "回车创建", -1))
52847
+ M[7] || (M[7] = b("span", { class: "create-hint" }, "回车创建", -1))
52828
52848
  ], 34)) : te("", !0)
52829
52849
  ])
52830
52850
  ])) : te("", !0)