mind-elixir 5.12.2-beta.2 → 5.12.2

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.
@@ -1,4 +1,4 @@
1
- const es = 0, ts = 1, ns = 2, G = {
1
+ const es = 0, ts = 1, ns = 2, fe = {
2
2
  name: "Latte",
3
3
  type: "light",
4
4
  palette: ["#dd7878", "#ea76cb", "#8839ef", "#e64553", "#fe640b", "#df8e1d", "#40a02b", "#209fb5", "#1e66f5", "#7287fd"],
@@ -12,6 +12,8 @@ const es = 0, ts = 1, ns = 2, G = {
12
12
  "--root-color": "#ffffff",
13
13
  "--root-bgcolor": "#4c4f69",
14
14
  "--root-border-color": "rgba(0, 0, 0, 0)",
15
+ "--main-border": "",
16
+ // you can customize, it will fallback to 2px solid main-color
15
17
  "--main-color": "#444446",
16
18
  "--main-bgcolor": "#ffffff",
17
19
  "--main-bgcolor-transparent": "rgba(255, 255, 255, 0.8)",
@@ -39,6 +41,7 @@ const es = 0, ts = 1, ns = 2, G = {
39
41
  "--root-color": "#ffffff",
40
42
  "--root-bgcolor": "#2d3748",
41
43
  "--root-border-color": "rgba(255, 255, 255, 0.1)",
44
+ "--main-border": "",
42
45
  "--main-color": "#ffffff",
43
46
  "--main-bgcolor": "#4c4f69",
44
47
  "--main-bgcolor-transparent": "rgba(76, 79, 105, 0.8)",
@@ -53,15 +56,15 @@ const es = 0, ts = 1, ns = 2, G = {
53
56
  "--map-padding": "50px 80px"
54
57
  }
55
58
  };
56
- function de(e) {
59
+ function ae(e) {
57
60
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;");
58
61
  }
59
- const oe = function(e, t) {
62
+ const ne = function(e, t) {
60
63
  if (t.id === e)
61
64
  return t;
62
65
  if (t.children && t.children.length) {
63
66
  for (let n = 0; n < t.children.length; n++) {
64
- const o = oe(e, t.children[n]);
67
+ const o = ne(e, t.children[n]);
65
68
  if (o) return o;
66
69
  }
67
70
  return null;
@@ -88,7 +91,7 @@ function pe(e) {
88
91
  for (let t = 0; t < e.children.length; t++)
89
92
  pe(e.children[t]);
90
93
  }
91
- function se(e, t, n, o) {
94
+ function oe(e, t, n, o) {
92
95
  const s = n - e, i = o - t, c = Math.atan2(i, s) * 180 / Math.PI, r = 12, a = 30, d = (c + 180 - a) * Math.PI / 180, h = (c + 180 + a) * Math.PI / 180;
93
96
  return {
94
97
  x1: n + Math.cos(d) * r,
@@ -123,7 +126,7 @@ const M = (e, t) => {
123
126
  }, k = (e, t) => {
124
127
  for (const n in t)
125
128
  e.setAttribute(n, t[n]);
126
- }, ne = (e) => e ? e.tagName === "ME-TPC" : !1, me = (e) => e.filter((t) => t.nodeObj.parent).filter((t, n, o) => {
129
+ }, te = (e) => e ? e.tagName === "ME-TPC" : !1, me = (e) => e.filter((t) => t.nodeObj.parent).filter((t, n, o) => {
127
130
  for (let s = 0; s < o.length; s++) {
128
131
  if (t === o[s]) continue;
129
132
  const { parent: i } = t.nodeObj;
@@ -150,11 +153,11 @@ const M = (e, t) => {
150
153
  return Math.sqrt(n * n + o * o);
151
154
  }, yt = function(e, t) {
152
155
  if (!t)
153
- return re(e), e;
156
+ return ie(e), e;
154
157
  let n = e.querySelector(".insert-preview");
155
158
  const o = `insert-preview ${t} show`;
156
159
  return n || (n = document.createElement("div"), e.appendChild(n)), n.className = o, e;
157
- }, re = function(e) {
160
+ }, ie = function(e) {
158
161
  if (!e) return;
159
162
  const t = e.querySelectorAll(".insert-preview");
160
163
  for (const n of t || [])
@@ -228,7 +231,7 @@ function Et(e, t, n) {
228
231
  const s = n.clientX - t.startX, i = n.clientY - t.startY, l = Math.sqrt(s * s + i * i);
229
232
  if (!t.isDragging && l > xt && Je(e, t), !t.isDragging) return;
230
233
  const c = e.container.getBoundingClientRect();
231
- Ue(t.ghost, n.clientX - c.x, n.clientY - c.y), n.clientX < c.x + 50 ? t.edgeMoveController.move(1, 0) : n.clientX > c.x + c.width - 50 ? t.edgeMoveController.move(-1, 0) : n.clientY < c.y + 50 ? t.edgeMoveController.move(0, 1) : n.clientY > c.y + c.height - 50 ? t.edgeMoveController.move(0, -1) : t.edgeMoveController.stop(), re(t.meet);
234
+ Ue(t.ghost, n.clientX - c.x, n.clientY - c.y), n.clientX < c.x + 50 ? t.edgeMoveController.move(1, 0) : n.clientX > c.x + c.width - 50 ? t.edgeMoveController.move(-1, 0) : n.clientY < c.y + 50 ? t.edgeMoveController.move(0, 1) : n.clientY > c.y + c.height - 50 ? t.edgeMoveController.move(0, -1) : t.edgeMoveController.stop(), ie(t.meet);
232
235
  const r = 12 * e.scaleVal, a = document.elementFromPoint(n.clientX, n.clientY - r);
233
236
  if (Le(a, o)) {
234
237
  t.meet = a;
@@ -251,7 +254,7 @@ function Ct(e, t, n) {
251
254
  t.edgeMoveController.stop();
252
255
  for (const s of o)
253
256
  s.parentElement.parentElement.style.opacity = "1";
254
- t.ghost.style.display = "none", t.ghost.innerHTML = "", t.isDragging && t.meet && (re(t.meet), t.insertType === "before" ? e.moveNodeBefore(o, t.meet) : t.insertType === "after" ? e.moveNodeAfter(o, t.meet) : t.insertType === "in" && e.moveNodeIn(o, t.meet)), e.dragged = null, t.isDragging = !1, t.insertType = null, t.meet = null, t.pointerId = null;
257
+ t.ghost.style.display = "none", t.ghost.innerHTML = "", t.isDragging && t.meet && (ie(t.meet), t.insertType === "before" ? e.moveNodeBefore(o, t.meet) : t.insertType === "after" ? e.moveNodeAfter(o, t.meet) : t.insertType === "in" && e.moveNodeIn(o, t.meet)), e.dragged = null, t.isDragging = !1, t.insertType = null, t.meet = null, t.pointerId = null;
255
258
  }
256
259
  }
257
260
  function Ae(e, t) {
@@ -260,7 +263,7 @@ function Ae(e, t) {
260
263
  t.edgeMoveController.stop();
261
264
  for (const o of n)
262
265
  o.parentElement.parentElement.style.opacity = "1";
263
- t.meet && re(t.meet), t.ghost.style.display = "none", t.ghost.innerHTML = "", e.dragged = null, t.isDragging = !1, t.insertType = null, t.meet = null, t.pointerId = null;
266
+ t.meet && ie(t.meet), t.ghost.style.display = "none", t.ghost.innerHTML = "", e.dragged = null, t.isDragging = !1, t.insertType = null, t.meet = null, t.pointerId = null;
264
267
  }
265
268
  }
266
269
  function St(e) {
@@ -332,7 +335,7 @@ const H = {
332
335
  } else e.link && (e.link = void 0);
333
336
  if (t.icons && t.icons.length) {
334
337
  const n = document.createElement("span");
335
- n.className = "icons", n.innerHTML = t.icons.map((o) => `<span>${de(o)}</span>`).join(""), e.appendChild(n), e.icons = n;
338
+ n.className = "icons", n.innerHTML = t.icons.map((o) => `<span>${ae(o)}</span>`).join(""), e.appendChild(n), e.icons = n;
336
339
  } else e.icons && (e.icons = void 0);
337
340
  if (t.tags && t.tags.length) {
338
341
  const n = document.createElement("div");
@@ -405,32 +408,32 @@ const At = function(e) {
405
408
  }, ve = function(e) {
406
409
  const t = document.createElement("me-epd");
407
410
  return t.expanded = e !== !1, t.className = e !== !1 ? "minus" : "", t;
408
- }, V = (e) => {
411
+ }, K = (e) => {
409
412
  const t = e.parent?.children, n = t?.indexOf(e) ?? 0;
410
413
  return { siblings: t, index: n };
411
414
  };
412
415
  function Pt(e) {
413
- const { siblings: t, index: n } = V(e);
416
+ const { siblings: t, index: n } = K(e);
414
417
  if (t === void 0) return;
415
418
  const o = t[n];
416
419
  n === 0 ? (t[n] = t[t.length - 1], t[t.length - 1] = o) : (t[n] = t[n - 1], t[n - 1] = o);
417
420
  }
418
421
  function Ot(e) {
419
- const { siblings: t, index: n } = V(e);
422
+ const { siblings: t, index: n } = K(e);
420
423
  if (t === void 0) return;
421
424
  const o = t[n];
422
425
  n === t.length - 1 ? (t[n] = t[0], t[0] = o) : (t[n] = t[n + 1], t[n + 1] = o);
423
426
  }
424
427
  function et(e) {
425
- const { siblings: t, index: n } = V(e);
428
+ const { siblings: t, index: n } = K(e);
426
429
  return t === void 0 ? 0 : (t.splice(n, 1), t.length);
427
430
  }
428
431
  function Ht(e, t, n) {
429
- const { siblings: o, index: s } = V(n);
432
+ const { siblings: o, index: s } = K(n);
430
433
  o !== void 0 && (t === "before" ? o.splice(s, 0, e) : o.splice(s + 1, 0, e));
431
434
  }
432
435
  function $t(e, t) {
433
- const { siblings: n, index: o } = V(e);
436
+ const { siblings: n, index: o } = K(e);
434
437
  n !== void 0 && (n[o] = t, t.children = [e]);
435
438
  }
436
439
  function jt(e, t, n) {
@@ -438,7 +441,7 @@ function jt(e, t, n) {
438
441
  n.children ? n.children.push(t) : n.children = [t];
439
442
  else {
440
443
  t.direction !== void 0 && (t.direction = n.direction);
441
- const { siblings: o, index: s } = V(n);
444
+ const { siblings: o, index: s } = K(n);
442
445
  if (o === void 0) return;
443
446
  e === "before" ? o.splice(s, 0, t) : o.splice(s + 1, 0, t);
444
447
  }
@@ -455,7 +458,7 @@ const It = function({ map: e, direction: t }, n) {
455
458
  }, tt = function(e, t, n) {
456
459
  const o = n.children[0].children[0], s = t.parentElement;
457
460
  if (s.tagName === "ME-PARENT") {
458
- if (q(o), s.children[1])
461
+ if (G(o), s.children[1])
459
462
  s.nextSibling.appendChild(n);
460
463
  else {
461
464
  const i = e.createChildren([n]);
@@ -473,7 +476,7 @@ const It = function({ map: e, direction: t }, n) {
473
476
  }, nt = {
474
477
  before: "beforebegin",
475
478
  after: "afterend"
476
- }, q = function(e) {
479
+ }, G = function(e) {
477
480
  const n = e.parentElement.parentElement.lastElementChild;
478
481
  n?.tagName === "svg" && n?.remove();
479
482
  }, Bt = function(e, t) {
@@ -524,7 +527,7 @@ const It = function({ map: e, direction: t }, n) {
524
527
  }, Yt = function(e, t) {
525
528
  const n = e || this.currentNode;
526
529
  if (!n) return;
527
- q(n);
530
+ G(n);
528
531
  const o = n.nodeObj;
529
532
  if (!o.parent)
530
533
  return;
@@ -557,7 +560,7 @@ const It = function({ map: e, direction: t }, n) {
557
560
  name: "copyNode",
558
561
  obj: s
559
562
  });
560
- }, Vt = function(e, t) {
563
+ }, Kt = function(e, t) {
561
564
  const n = [];
562
565
  for (let o = 0; o < e.length; o++) {
563
566
  const s = e[o], i = ge(s.nodeObj);
@@ -571,7 +574,7 @@ const It = function({ map: e, direction: t }, n) {
571
574
  name: "copyNodes",
572
575
  objs: n
573
576
  });
574
- }, Kt = function(e) {
577
+ }, Vt = function(e) {
575
578
  const t = e || this.currentNode;
576
579
  if (!t) return;
577
580
  const n = t.nodeObj;
@@ -613,7 +616,7 @@ const It = function({ map: e, direction: t }, n) {
613
616
  const a = c.parentElement;
614
617
  tt(o, n, a.parentElement);
615
618
  } else {
616
- q(c);
619
+ G(c);
617
620
  const a = c.parentElement.parentNode;
618
621
  i.includes(a.parentElement) || i.push(a.parentElement), n.parentElement.parentNode.insertAdjacentElement(nt[t], a);
619
622
  }
@@ -643,17 +646,17 @@ const It = function({ map: e, direction: t }, n) {
643
646
  addChild: Xt,
644
647
  beginEdit: Zt,
645
648
  copyNode: Ft,
646
- copyNodes: Vt,
649
+ copyNodes: Kt,
647
650
  insertParent: Yt,
648
651
  insertSibling: Wt,
649
652
  moveDownNode: zt,
650
653
  moveNodeAfter: Jt,
651
654
  moveNodeBefore: Ut,
652
655
  moveNodeIn: qt,
653
- moveUpNode: Kt,
656
+ moveUpNode: Vt,
654
657
  removeNodes: Gt,
655
658
  reshapeNode: Bt,
656
- rmSubline: q,
659
+ rmSubline: G,
657
660
  setNodeTopic: Qt
658
661
  }, Symbol.toStringTag, { value: "Module" }));
659
662
  function en(e) {
@@ -754,7 +757,7 @@ const tn = function(e, t = !1) {
754
757
  x: o.left,
755
758
  y: o.top
756
759
  }, i = e.parentNode, l = i.children[1];
757
- if (l.expanded = n.expanded, l.className = n.expanded ? "minus" : "", q(e), n.expanded) {
760
+ if (l.expanded = n.expanded, l.className = n.expanded ? "minus" : "", G(e), n.expanded) {
758
761
  const h = this.createChildren(
759
762
  n.children.map((u) => this.createWrapper(u).grp)
760
763
  );
@@ -1068,7 +1071,7 @@ function Hn(e) {
1068
1071
  }, h = (f) => {
1069
1072
  if (!e.editable) return;
1070
1073
  const y = f.target;
1071
- if (ne(y)) {
1074
+ if (te(y)) {
1072
1075
  e.selectNode(y), e.beginEdit(y);
1073
1076
  return;
1074
1077
  }
@@ -1085,7 +1088,7 @@ function Hn(e) {
1085
1088
  return;
1086
1089
  }
1087
1090
  if (t.handlePointerDown(f), t.mousedown && (e.ptState = i.Pan), f.button === 0 || f.pointerType === "touch")
1088
- if (ne(y)) {
1091
+ if (te(y)) {
1089
1092
  e.selection?.cancel();
1090
1093
  const S = e.currentNodes || [];
1091
1094
  if (f.ctrlKey || f.metaKey || e.mobileMultiSelect ? S.includes(y) ? o = y : ((e.currentArrow || e.currentSummary) && e.clearSelection(), e.selection?.select(y)) : S.includes(y) || e.selectNode(y), !e.editable) return;
@@ -1130,7 +1133,7 @@ function Hn(e) {
1130
1133
  f.preventDefault(), f.button === 2 && e.editable && setTimeout(() => {
1131
1134
  if (e.panHelper.moved || e.ptState !== i.Idle && e.ptState !== i.Pan) return;
1132
1135
  const y = f.target;
1133
- ne(y) && !y.classList.contains("selected") && e.selectNode(y), e.bus.fire("showContextMenu", f);
1136
+ te(y) && !y.classList.contains("selected") && e.selectNode(y), e.bus.fire("showContextMenu", f);
1134
1137
  }, 200);
1135
1138
  }, m = (f) => {
1136
1139
  if (f.stopPropagation(), f.preventDefault(), f.ctrlKey || f.metaKey) return Pn(e, f);
@@ -1178,11 +1181,11 @@ function $n() {
1178
1181
  }
1179
1182
  };
1180
1183
  }
1181
- const A = "http://www.w3.org/2000/svg", le = function(e) {
1184
+ const A = "http://www.w3.org/2000/svg", re = function(e) {
1182
1185
  const t = e.clientWidth, n = e.clientHeight, o = e.dataset, s = Number(o.x), i = Number(o.y), l = o.anchor;
1183
1186
  let c = s;
1184
1187
  l === "middle" ? c = s - t / 2 : l === "end" && (c = s - t), e.style.left = `${c}px`, e.style.top = `${i - n / 2}px`, e.style.visibility = "visible";
1185
- }, he = function(e, t, n, o) {
1188
+ }, de = function(e, t, n, o) {
1186
1189
  const { anchor: s = "middle", color: i, dataType: l, svgId: c } = o, r = document.createElement("div");
1187
1190
  r.className = "svg-label", r.style.color = i || "#666";
1188
1191
  const a = "label-" + c;
@@ -1252,7 +1255,7 @@ const A = "http://www.w3.org/2000/svg", le = function(e) {
1252
1255
  }), s.addEventListener("blur", () => {
1253
1256
  if (!s) return;
1254
1257
  const i = s.innerText?.trim() || "";
1255
- i === "" ? n.label = o : n.label = i, t.style.opacity = "1", s.remove(), i !== o && (e.markdown ? t.innerHTML = e.markdown(n.label, n) : t.textContent = n.label, le(t), "parent" in n ? e.bus.fire("operation", {
1258
+ i === "" ? n.label = o : n.label = i, t.style.opacity = "1", s.remove(), i !== o && (e.markdown ? t.innerHTML = e.markdown(n.label, n) : t.textContent = n.label, re(t), "parent" in n ? e.bus.fire("operation", {
1256
1259
  name: "finishEditSummary",
1257
1260
  obj: n
1258
1261
  }) : e.bus.fire("operation", {
@@ -1311,7 +1314,7 @@ function Bn(e, t) {
1311
1314
  return x.innerText = y, x.className = "tips", x;
1312
1315
  }, s = (y, x, S) => {
1313
1316
  const C = document.createElement("li");
1314
- return C.id = y, C.innerHTML = `<span>${de(x)}</span><span ${S ? 'class="key"' : ""}>${de(S)}</span>`, C;
1317
+ return C.id = y, C.innerHTML = `<span>${ae(x)}</span><span ${S ? 'class="key"' : ""}>${ae(S)}</span>`, C;
1315
1318
  }, i = t.locale, l = s("cm-add_child", i.addChild, "Tab"), c = s("cm-add_parent", i.addParent, "Ctrl + Enter"), r = s("cm-add_sibling", i.addSibling, "Enter"), a = s("cm-remove_child", i.removeNode, "Delete"), d = s("cm-fucus", i.focus, ""), h = s("cm-unfucus", i.cancelFocus, ""), u = s("cm-up", i.moveUp, "PgUp"), b = s("cm-down", i.moveDown, "Pgdn"), v = s("cm-link", i.link, ""), p = s("cm-link-bidirectional", i.linkBidirectional, ""), g = s("cm-summary", i.summary, ""), m = document.createElement("ul");
1316
1319
  if (m.className = "menu-list", m.appendChild(l), m.appendChild(c), m.appendChild(r), m.appendChild(a), t.focus && (m.appendChild(d), m.appendChild(h)), m.appendChild(u), m.appendChild(b), m.appendChild(g), t.link && (m.appendChild(v), m.appendChild(p)), t && t.extend)
1317
1320
  for (let y = 0; y < t.extend.length; y++) {
@@ -1325,7 +1328,7 @@ function Bn(e, t) {
1325
1328
  let E = !0;
1326
1329
  const N = (y) => {
1327
1330
  const x = y.target;
1328
- if (ne(x)) {
1331
+ if (te(x)) {
1329
1332
  x.parentElement.tagName === "ME-ROOT" ? E = !0 : E = !1, E ? (d.className = "disabled", u.className = "disabled", b.className = "disabled", c.className = "disabled", r.className = "disabled", a.className = "disabled") : (d.className = "", u.className = "", b.className = "", c.className = "", r.className = "", a.className = ""), w.hidden = !1, m.style.top = "", m.style.bottom = "", m.style.left = "", m.style.right = "";
1330
1333
  const S = m.offsetHeight, C = m.offsetWidth, T = m.getBoundingClientRect(), D = y.clientY - T.top, L = y.clientX - T.left;
1331
1334
  S + D > window.innerHeight ? (m.style.top = "", m.style.bottom = "0px") : (m.style.bottom = "", m.style.top = D + 15 + "px"), C + L > window.innerWidth ? (m.style.left = "", m.style.right = "0px") : (m.style.right = "", m.style.left = L + 10 + "px");
@@ -1432,11 +1435,11 @@ function Yn(e) {
1432
1435
  e.bus.removeListener("operation", i), e.bus.removeListener("selectNodes", c), e.container.removeEventListener("keydown", l);
1433
1436
  };
1434
1437
  }
1435
- const Xn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169394918" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2021" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M851.91168 328.45312c-59.97056 0-108.6208 48.47104-108.91264 108.36992l-137.92768 38.4a109.14304 109.14304 0 0 0-63.46752-46.58688l1.39264-137.11872c47.29344-11.86816 82.31936-54.66624 82.31936-105.64096 0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.76288-108.91776 108.91776c0 49.18784 32.60928 90.75712 77.38368 104.27392l-1.41312 138.87488a109.19936 109.19936 0 0 0-63.50336 48.55808l-138.93632-39.48544 0.01024-0.72704c0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.75776-108.91776 108.91776c0 60.15488 48.76288 108.91264 108.91776 108.91264 39.3984 0 73.91232-20.92032 93.03552-52.2496l139.19232 39.552-0.00512 0.2304c0 25.8304 9.00096 49.5616 24.02816 68.23424l-90.14272 132.63872a108.7488 108.7488 0 0 0-34.2528-5.504c-60.15488 0-108.91776 48.768-108.91776 108.91776 0 60.16 48.76288 108.91776 108.91776 108.91776 60.16 0 108.92288-48.75776 108.92288-108.91776 0-27.14624-9.9328-51.968-26.36288-71.04l89.04704-131.03104a108.544 108.544 0 0 0 37.6832 6.70208 108.672 108.672 0 0 0 36.48512-6.272l93.13792 132.57216a108.48256 108.48256 0 0 0-24.69888 69.0688c0 60.16 48.768 108.92288 108.91776 108.92288 60.16 0 108.91776-48.76288 108.91776-108.92288 0-60.14976-48.75776-108.91776-108.91776-108.91776a108.80512 108.80512 0 0 0-36.69504 6.3488l-93.07136-132.48a108.48768 108.48768 0 0 0 24.79616-72.22784l136.09984-37.888c18.99008 31.93856 53.84192 53.3504 93.69088 53.3504 60.16 0 108.92288-48.75776 108.92288-108.91264-0.00512-60.15488-48.77312-108.92288-108.92288-108.92288z" p-id="2022"></path></svg>', Fn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169375313" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1775" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M639 463.30000001L639 285.1c0-36.90000001-26.4-68.5-61.3-68.5l-150.2 0c-1.5 0-3 0.1-4.5 0.3-10.2-38.7-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c42 0 77.3-28.6 87.5-67.39999999 1.4 0.3 2.9 0.4 4.5 0.39999999L577.7 263.6c6.8 0 14.3 8.9 14.3 21.49999999l0 427.00000001c0 12.7-7.40000001 21.5-14.30000001 21.5l-150.19999999 0c-1.5 0-3 0.2-4.5 0.4-10.2-38.8-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.4 0 49.9 40.5 90.6 90.5 90.59999999 42 0 77.3-28.6 87.5-67.39999999 1.4 0.2 2.9 0.4 4.49999999 0.4L577.7 780.7c34.80000001 0 61.3-31.6 61.3-68.50000001L639 510.3l79.1 0c10.4 38.5 45.49999999 67 87.4 67 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-41.79999999 0-77.00000001 28.4-87.4 67L639 463.30000001z" fill="currentColor" p-id="1776"></path></svg>', Vn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169667709" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3037" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M385 560.69999999L385 738.9c0 36.90000001 26.4 68.5 61.3 68.5l150.2 0c1.5 0 3-0.1 4.5-0.3 10.2 38.7 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-42 0-77.3 28.6-87.5 67.39999999-1.4-0.3-2.9-0.4-4.5-0.39999999L446.3 760.4c-6.8 0-14.3-8.9-14.3-21.49999999l0-427.00000001c0-12.7 7.40000001-21.5 14.30000001-21.5l150.19999999 0c1.5 0 3-0.2 4.5-0.4 10.2 38.8 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.4 0-49.9-40.5-90.6-90.5-90.59999999-42 0-77.3 28.6-87.5 67.39999999-1.4-0.2-2.9-0.4-4.49999999-0.4L446.3 243.3c-34.80000001 0-61.3 31.6-61.3 68.50000001L385 513.7l-79.1 0c-10.4-38.5-45.49999999-67-87.4-67-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c41.79999999 0 77.00000001-28.4 87.4-67L385 560.69999999z" fill="currentColor" p-id="3038"></path></svg>', Kn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169402629" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2170" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M639.328 416c8.032 0 16.096-3.008 22.304-9.056l202.624-197.184-0.8 143.808c-0.096 17.696 14.144 32.096 31.808 32.192 0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808l1.248-222.208c0-0.672-0.352-1.248-0.384-1.92 0.032-0.512 0.288-0.896 0.288-1.408 0.032-17.664-14.272-32-31.968-32.032L671.552 96l-0.032 0c-17.664 0-31.968 14.304-32 31.968C639.488 145.632 653.824 160 671.488 160l151.872 0.224-206.368 200.8c-12.672 12.32-12.928 32.608-0.64 45.248C622.656 412.736 630.976 416 639.328 416z" p-id="2171"></path><path d="M896.032 639.552 896.032 639.552c-17.696 0-32 14.304-32.032 31.968l-0.224 151.872-200.832-206.4c-12.32-12.64-32.576-12.96-45.248-0.64-12.672 12.352-12.928 32.608-0.64 45.248l197.184 202.624-143.808-0.8c-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808-0.096 17.696 14.144 32.096 31.808 32.192l222.24 1.248c0.064 0 0.128 0 0.192 0 0.64 0 1.12-0.32 1.76-0.352 0.512 0.032 0.896 0.288 1.408 0.288l0.032 0c17.664 0 31.968-14.304 32-31.968L928 671.584C928.032 653.952 913.728 639.584 896.032 639.552z" p-id="2172"></path><path d="M209.76 159.744l143.808 0.8c0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808 0.096-17.696-14.144-32.096-31.808-32.192L131.68 95.328c-0.064 0-0.128 0-0.192 0-0.672 0-1.248 0.352-1.888 0.384-0.448 0-0.8-0.256-1.248-0.256 0 0-0.032 0-0.032 0-17.664 0-31.968 14.304-32 31.968L96 352.448c-0.032 17.664 14.272 32 31.968 32.032 0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968l0.224-151.936 200.832 206.4c6.272 6.464 14.624 9.696 22.944 9.696 8.032 0 16.096-3.008 22.304-9.056 12.672-12.32 12.96-32.608 0.64-45.248L209.76 159.744z" p-id="2173"></path><path d="M362.368 617.056l-202.624 197.184 0.8-143.808c0.096-17.696-14.144-32.096-31.808-32.192-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808l-1.248 222.24c0 0.704 0.352 1.312 0.384 2.016 0 0.448-0.256 0.832-0.256 1.312-0.032 17.664 14.272 32 31.968 32.032L352.448 928c0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968s-14.272-32-31.968-32.032l-151.936-0.224 206.4-200.832c12.672-12.352 12.96-32.608 0.64-45.248S375.008 604.704 362.368 617.056z" p-id="2174"></path></svg>', zn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169573443" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2883" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M514.133333 488.533333m-106.666666 0a106.666667 106.666667 0 1 0 213.333333 0 106.666667 106.666667 0 1 0-213.333333 0Z" fill="currentColor" p-id="2884"></path><path d="M512 64C264.533333 64 64 264.533333 64 512c0 236.8 183.466667 428.8 416 445.866667v-134.4c-53.333333-59.733333-200.533333-230.4-200.533333-334.933334 0-130.133333 104.533333-234.666667 234.666666-234.666666s234.666667 104.533333 234.666667 234.666666c0 61.866667-49.066667 153.6-145.066667 270.933334l-59.733333 68.266666V960C776.533333 942.933333 960 748.8 960 512c0-247.466667-200.533333-448-448-448z" fill="currentColor" p-id="2885"></path></svg>', Gn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169419447" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2480" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z" p-id="2481"></path></svg>', qn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169426515" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2730" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z" p-id="2731"></path></svg>', Un = {
1438
+ const Xn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169394918" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2021" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M851.91168 328.45312c-59.97056 0-108.6208 48.47104-108.91264 108.36992l-137.92768 38.4a109.14304 109.14304 0 0 0-63.46752-46.58688l1.39264-137.11872c47.29344-11.86816 82.31936-54.66624 82.31936-105.64096 0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.76288-108.91776 108.91776c0 49.18784 32.60928 90.75712 77.38368 104.27392l-1.41312 138.87488a109.19936 109.19936 0 0 0-63.50336 48.55808l-138.93632-39.48544 0.01024-0.72704c0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.75776-108.91776 108.91776c0 60.15488 48.76288 108.91264 108.91776 108.91264 39.3984 0 73.91232-20.92032 93.03552-52.2496l139.19232 39.552-0.00512 0.2304c0 25.8304 9.00096 49.5616 24.02816 68.23424l-90.14272 132.63872a108.7488 108.7488 0 0 0-34.2528-5.504c-60.15488 0-108.91776 48.768-108.91776 108.91776 0 60.16 48.76288 108.91776 108.91776 108.91776 60.16 0 108.92288-48.75776 108.92288-108.91776 0-27.14624-9.9328-51.968-26.36288-71.04l89.04704-131.03104a108.544 108.544 0 0 0 37.6832 6.70208 108.672 108.672 0 0 0 36.48512-6.272l93.13792 132.57216a108.48256 108.48256 0 0 0-24.69888 69.0688c0 60.16 48.768 108.92288 108.91776 108.92288 60.16 0 108.91776-48.76288 108.91776-108.92288 0-60.14976-48.75776-108.91776-108.91776-108.91776a108.80512 108.80512 0 0 0-36.69504 6.3488l-93.07136-132.48a108.48768 108.48768 0 0 0 24.79616-72.22784l136.09984-37.888c18.99008 31.93856 53.84192 53.3504 93.69088 53.3504 60.16 0 108.92288-48.75776 108.92288-108.91264-0.00512-60.15488-48.77312-108.92288-108.92288-108.92288z" p-id="2022"></path></svg>', Fn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169375313" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1775" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M639 463.30000001L639 285.1c0-36.90000001-26.4-68.5-61.3-68.5l-150.2 0c-1.5 0-3 0.1-4.5 0.3-10.2-38.7-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c42 0 77.3-28.6 87.5-67.39999999 1.4 0.3 2.9 0.4 4.5 0.39999999L577.7 263.6c6.8 0 14.3 8.9 14.3 21.49999999l0 427.00000001c0 12.7-7.40000001 21.5-14.30000001 21.5l-150.19999999 0c-1.5 0-3 0.2-4.5 0.4-10.2-38.8-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.4 0 49.9 40.5 90.6 90.5 90.59999999 42 0 77.3-28.6 87.5-67.39999999 1.4 0.2 2.9 0.4 4.49999999 0.4L577.7 780.7c34.80000001 0 61.3-31.6 61.3-68.50000001L639 510.3l79.1 0c10.4 38.5 45.49999999 67 87.4 67 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-41.79999999 0-77.00000001 28.4-87.4 67L639 463.30000001z" fill="currentColor" p-id="1776"></path></svg>', Kn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169667709" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3037" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M385 560.69999999L385 738.9c0 36.90000001 26.4 68.5 61.3 68.5l150.2 0c1.5 0 3-0.1 4.5-0.3 10.2 38.7 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-42 0-77.3 28.6-87.5 67.39999999-1.4-0.3-2.9-0.4-4.5-0.39999999L446.3 760.4c-6.8 0-14.3-8.9-14.3-21.49999999l0-427.00000001c0-12.7 7.40000001-21.5 14.30000001-21.5l150.19999999 0c1.5 0 3-0.2 4.5-0.4 10.2 38.8 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.4 0-49.9-40.5-90.6-90.5-90.59999999-42 0-77.3 28.6-87.5 67.39999999-1.4-0.2-2.9-0.4-4.49999999-0.4L446.3 243.3c-34.80000001 0-61.3 31.6-61.3 68.50000001L385 513.7l-79.1 0c-10.4-38.5-45.49999999-67-87.4-67-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c41.79999999 0 77.00000001-28.4 87.4-67L385 560.69999999z" fill="currentColor" p-id="3038"></path></svg>', Vn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169402629" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2170" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M639.328 416c8.032 0 16.096-3.008 22.304-9.056l202.624-197.184-0.8 143.808c-0.096 17.696 14.144 32.096 31.808 32.192 0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808l1.248-222.208c0-0.672-0.352-1.248-0.384-1.92 0.032-0.512 0.288-0.896 0.288-1.408 0.032-17.664-14.272-32-31.968-32.032L671.552 96l-0.032 0c-17.664 0-31.968 14.304-32 31.968C639.488 145.632 653.824 160 671.488 160l151.872 0.224-206.368 200.8c-12.672 12.32-12.928 32.608-0.64 45.248C622.656 412.736 630.976 416 639.328 416z" p-id="2171"></path><path d="M896.032 639.552 896.032 639.552c-17.696 0-32 14.304-32.032 31.968l-0.224 151.872-200.832-206.4c-12.32-12.64-32.576-12.96-45.248-0.64-12.672 12.352-12.928 32.608-0.64 45.248l197.184 202.624-143.808-0.8c-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808-0.096 17.696 14.144 32.096 31.808 32.192l222.24 1.248c0.064 0 0.128 0 0.192 0 0.64 0 1.12-0.32 1.76-0.352 0.512 0.032 0.896 0.288 1.408 0.288l0.032 0c17.664 0 31.968-14.304 32-31.968L928 671.584C928.032 653.952 913.728 639.584 896.032 639.552z" p-id="2172"></path><path d="M209.76 159.744l143.808 0.8c0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808 0.096-17.696-14.144-32.096-31.808-32.192L131.68 95.328c-0.064 0-0.128 0-0.192 0-0.672 0-1.248 0.352-1.888 0.384-0.448 0-0.8-0.256-1.248-0.256 0 0-0.032 0-0.032 0-17.664 0-31.968 14.304-32 31.968L96 352.448c-0.032 17.664 14.272 32 31.968 32.032 0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968l0.224-151.936 200.832 206.4c6.272 6.464 14.624 9.696 22.944 9.696 8.032 0 16.096-3.008 22.304-9.056 12.672-12.32 12.96-32.608 0.64-45.248L209.76 159.744z" p-id="2173"></path><path d="M362.368 617.056l-202.624 197.184 0.8-143.808c0.096-17.696-14.144-32.096-31.808-32.192-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808l-1.248 222.24c0 0.704 0.352 1.312 0.384 2.016 0 0.448-0.256 0.832-0.256 1.312-0.032 17.664 14.272 32 31.968 32.032L352.448 928c0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968s-14.272-32-31.968-32.032l-151.936-0.224 206.4-200.832c12.672-12.352 12.96-32.608 0.64-45.248S375.008 604.704 362.368 617.056z" p-id="2174"></path></svg>', zn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169573443" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2883" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M514.133333 488.533333m-106.666666 0a106.666667 106.666667 0 1 0 213.333333 0 106.666667 106.666667 0 1 0-213.333333 0Z" fill="currentColor" p-id="2884"></path><path d="M512 64C264.533333 64 64 264.533333 64 512c0 236.8 183.466667 428.8 416 445.866667v-134.4c-53.333333-59.733333-200.533333-230.4-200.533333-334.933334 0-130.133333 104.533333-234.666667 234.666666-234.666666s234.666667 104.533333 234.666667 234.666666c0 61.866667-49.066667 153.6-145.066667 270.933334l-59.733333 68.266666V960C776.533333 942.933333 960 748.8 960 512c0-247.466667-200.533333-448-448-448z" fill="currentColor" p-id="2885"></path></svg>', Gn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169419447" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2480" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z" p-id="2481"></path></svg>', qn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1750169426515" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2730" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z" p-id="2731"></path></svg>', Un = {
1436
1439
  side: Xn,
1437
1440
  left: Fn,
1438
- right: Vn,
1439
- full: Kn,
1441
+ right: Kn,
1442
+ full: Vn,
1440
1443
  living: zn,
1441
1444
  zoomin: Gn,
1442
1445
  zoomout: qn
@@ -1539,16 +1542,16 @@ const Ie = (e, t = "px") => typeof e == "number" ? e + t : e, $ = ({ style: e },
1539
1542
  case "touch":
1540
1543
  return e.right >= t.left && e.left <= t.right && e.bottom >= t.top && e.top <= t.bottom;
1541
1544
  }
1542
- }, no = () => matchMedia("(hover: none), (pointer: coarse)").matches, oo = () => "safari" in window, fe = (e) => Array.isArray(e) ? e : [e], ct = (e) => (t, n, o, s = {}) => {
1543
- (t instanceof HTMLCollection || t instanceof NodeList) && (t = Array.from(t)), n = fe(n), t = fe(t);
1545
+ }, no = () => matchMedia("(hover: none), (pointer: coarse)").matches, oo = () => "safari" in window, he = (e) => Array.isArray(e) ? e : [e], ct = (e) => (t, n, o, s = {}) => {
1546
+ (t instanceof HTMLCollection || t instanceof NodeList) && (t = Array.from(t)), n = he(n), t = he(t);
1544
1547
  for (const i of t)
1545
1548
  if (i)
1546
1549
  for (const l of n)
1547
1550
  i[e](l, o, { capture: !1, ...s });
1548
- }, W = ct("addEventListener"), O = ct("removeEventListener"), Z = (e) => {
1551
+ }, W = ct("addEventListener"), O = ct("removeEventListener"), J = (e) => {
1549
1552
  const { clientX: t, clientY: n, target: o } = e.touches?.[0] ?? e;
1550
1553
  return { x: t, y: n, target: o };
1551
- }, Y = (e, t = document) => fe(e).map((n) => typeof n == "string" ? Array.from(t.querySelectorAll(n)) : n instanceof Element ? n : null).flat().filter(Boolean), so = (e, t) => t.some((n) => typeof n == "number" ? e.button === n : typeof n == "object" ? n.button !== e.button ? !1 : n.modifiers.every((o) => {
1554
+ }, Y = (e, t = document) => he(e).map((n) => typeof n == "string" ? Array.from(t.querySelectorAll(n)) : n instanceof Element ? n : null).flat().filter(Boolean), so = (e, t) => t.some((n) => typeof n == "number" ? e.button === n : typeof n == "object" ? n.button !== e.button ? !1 : n.modifiers.every((o) => {
1552
1555
  switch (o) {
1553
1556
  case "alt":
1554
1557
  return e.altKey;
@@ -1654,7 +1657,7 @@ class io extends eo {
1654
1657
  (t ? W : O)(n, "pointerdown", this._onTapStart);
1655
1658
  }
1656
1659
  _onTapStart(t, n = !1) {
1657
- const { x: o, y: s, target: i } = Z(t), { document: l, startAreas: c, boundaries: r, behaviour: a, features: d } = this._options, h = i.getBoundingClientRect();
1660
+ const { x: o, y: s, target: i } = J(t), { document: l, startAreas: c, boundaries: r, behaviour: a, features: d } = this._options, h = i.getBoundingClientRect();
1658
1661
  if (!so(t, a.triggers))
1659
1662
  return;
1660
1663
  const u = Y(c, l), b = Y(r, l);
@@ -1670,7 +1673,7 @@ class io extends eo {
1670
1673
  const {
1671
1674
  singleTap: { intersect: n },
1672
1675
  range: o
1673
- } = this._options.features, s = Z(t);
1676
+ } = this._options.features, s = J(t);
1674
1677
  let i;
1675
1678
  if (n === "native")
1676
1679
  i = s.target;
@@ -1706,7 +1709,7 @@ class io extends eo {
1706
1709
  container: n,
1707
1710
  document: o,
1708
1711
  behaviour: { startThreshold: s }
1709
- } = this._options, { x1: i, y1: l } = this._areaLocation, { x: c, y: r } = Z(t);
1712
+ } = this._options, { x1: i, y1: l } = this._areaLocation, { x: c, y: r } = J(t);
1710
1713
  if (
1711
1714
  // Single number for both coordinates
1712
1715
  typeof s == "number" && j(c + r - (i + l)) >= s || // Different x and y threshold
@@ -1741,7 +1744,7 @@ class io extends eo {
1741
1744
  }));
1742
1745
  }
1743
1746
  _onTapMove(t) {
1744
- const { _scrollSpeed: n, _areaLocation: o, _options: s, _frame: i } = this, { speedDivider: l } = s.behaviour.scrolling, { x: c, y: r } = Z(t);
1747
+ const { _scrollSpeed: n, _areaLocation: o, _options: s, _frame: i } = this, { speedDivider: l } = s.behaviour.scrolling, { x: c, y: r } = J(t);
1745
1748
  if (o.x2 = c, o.y2 = r, this._scrollAvailable && !this._scrollingActive && (n.y || n.x)) {
1746
1749
  this._scrollingActive = !0;
1747
1750
  const a = () => {
@@ -2033,16 +2036,9 @@ function dt({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: l, cH: c, direction:
2033
2036
  return r === H.LHS ? (g = t, v = g + d, p = g - d, u = i + d, `M ${v} ${h} C ${g} ${h} ${g + m} ${b} ${p} ${b} H ${u}`) : (g = t + n, v = g - d, p = g + d, u = i + l - d, `M ${v} ${h} C ${g} ${h} ${g - m} ${b} ${p} ${b} H ${u}`);
2034
2037
  }
2035
2038
  const lo = function(e, t = !0) {
2036
- this.theme = {
2037
- ...this.theme || G,
2038
- ...e,
2039
- cssVar: {
2040
- ...this.theme?.cssVar || G.cssVar,
2041
- ...e.cssVar || {}
2042
- }
2043
- }, this.generateMainBranch = this.theme.generateMainBranch || at, this.generateSubBranch = this.theme.generateSubBranch || dt;
2039
+ this.theme = e, this.generateMainBranch = this.theme.generateMainBranch || at, this.generateSubBranch = this.theme.generateSubBranch || dt;
2044
2040
  const o = {
2045
- ...(this.theme.type === "dark" ? ue : G).cssVar,
2041
+ ...(this.theme.type === "dark" ? ue : fe).cssVar,
2046
2042
  ...this.theme.cssVar
2047
2043
  };
2048
2044
  this.compact && (o["--node-gap-x"] = "15px", o["--node-gap-y"] = "2px", o["--main-gap-x"] = "30px", o["--main-gap-y"] = "6px");
@@ -2089,7 +2085,7 @@ const lo = function(e, t = !0) {
2089
2085
  this.moved = !1, this.pointerdown = !1;
2090
2086
  }
2091
2087
  };
2092
- }, Ve = {
2088
+ }, Ke = {
2093
2089
  create: ao
2094
2090
  }, ht = "#4dc4ff";
2095
2091
  function ft(e, t, n, o, s, i, l, c) {
@@ -2099,9 +2095,9 @@ function ft(e, t, n, o, s, i, l, c) {
2099
2095
  };
2100
2096
  }
2101
2097
  function ho(e, t, n) {
2102
- e && (e.dataset.x = t.toString(), e.dataset.y = n.toString(), le(e));
2098
+ e && (e.dataset.x = t.toString(), e.dataset.y = n.toString(), re(e));
2103
2099
  }
2104
- function Q(e, t, n, o, s) {
2100
+ function Z(e, t, n, o, s) {
2105
2101
  k(e, {
2106
2102
  x1: t + "",
2107
2103
  y1: n + "",
@@ -2109,7 +2105,7 @@ function Q(e, t, n, o, s) {
2109
2105
  y2: s + ""
2110
2106
  });
2111
2107
  }
2112
- function Ke(e, t, n, o, s, i, l, c, r, a) {
2108
+ function Ve(e, t, n, o, s, i, l, c, r, a) {
2113
2109
  const d = `M ${t} ${n} C ${o} ${s} ${i} ${l} ${c} ${r}`;
2114
2110
  if (e.line.setAttribute("d", d), a.style) {
2115
2111
  const p = a.style;
@@ -2117,7 +2113,7 @@ function Ke(e, t, n, o, s, i, l, c, r, a) {
2117
2113
  }
2118
2114
  const h = e.querySelectorAll('path[stroke="transparent"]');
2119
2115
  h.length > 0 && h[0].setAttribute("d", d);
2120
- const u = se(i, l, c, r);
2116
+ const u = oe(i, l, c, r);
2121
2117
  if (u) {
2122
2118
  const p = `M ${u.x1} ${u.y1} L ${c} ${r} L ${u.x2} ${u.y2}`;
2123
2119
  if (e.arrow1.setAttribute("d", p), h.length > 1 && h[1].setAttribute("d", p), a.style) {
@@ -2126,7 +2122,7 @@ function Ke(e, t, n, o, s, i, l, c, r, a) {
2126
2122
  }
2127
2123
  }
2128
2124
  if (a.bidirectional) {
2129
- const p = se(o, s, t, n);
2125
+ const p = oe(o, s, t, n);
2130
2126
  if (p) {
2131
2127
  const g = `M ${p.x1} ${p.y1} L ${t} ${n} L ${p.x2} ${p.y2}`;
2132
2128
  if (e.arrow2.setAttribute("d", g), h.length > 2 && h[2].setAttribute("d", g), a.style) {
@@ -2142,7 +2138,7 @@ function Ke(e, t, n, o, s, i, l, c, r, a) {
2142
2138
  }
2143
2139
  vo(e);
2144
2140
  }
2145
- function ie(e, t, n) {
2141
+ function se(e, t, n) {
2146
2142
  const { offsetLeft: o, offsetTop: s } = M(e.nodes, t), i = t.offsetWidth, l = t.offsetHeight, c = o + i / 2, r = s + l / 2, a = c + n.x, d = r + n.y;
2147
2143
  return {
2148
2144
  w: i,
@@ -2188,24 +2184,24 @@ const fo = function(e, t, n) {
2188
2184
  const C = fo(e, t, n);
2189
2185
  o.delta1 = C.delta1, o.delta2 = C.delta2;
2190
2186
  }
2191
- const i = ie(e, t, o.delta1), l = ie(e, n, o.delta2), { x: c, y: r } = X(i), { ctrlX: a, ctrlY: d } = i, { ctrlX: h, ctrlY: u } = l, { x: b, y: v } = X(l), p = se(h, u, b, v);
2187
+ const i = se(e, t, o.delta1), l = se(e, n, o.delta2), { x: c, y: r } = X(i), { ctrlX: a, ctrlY: d } = i, { ctrlX: h, ctrlY: u } = l, { x: b, y: v } = X(l), p = oe(h, u, b, v);
2192
2188
  if (!p) return;
2193
2189
  const g = `M ${p.x1} ${p.y1} L ${b} ${v} L ${p.x2} ${p.y2}`;
2194
2190
  let m = "";
2195
2191
  if (o.bidirectional) {
2196
- const C = se(a, d, c, r);
2192
+ const C = oe(a, d, c, r);
2197
2193
  if (!C) return;
2198
2194
  m = `M ${C.x1} ${C.y1} L ${c} ${r} L ${C.x2} ${C.y2}`;
2199
2195
  }
2200
2196
  const w = jn(`M ${c} ${r} C ${a} ${d} ${h} ${u} ${b} ${v}`, g, m, o.style), { x: E, y: N } = ft(c, r, a, d, h, u, b, v), f = o.style?.labelColor || "rgb(235, 95, 82)", y = "a-" + o.id;
2201
2197
  w.id = y;
2202
- const x = e.markdown ? e.markdown(o.label, o) : o.label, S = he(x, E, N, {
2198
+ const x = e.markdown ? e.markdown(o.label, o) : o.label, S = de(x, E, N, {
2203
2199
  anchor: "middle",
2204
2200
  color: f,
2205
2201
  dataType: "arrow",
2206
2202
  svgId: y
2207
2203
  });
2208
- w.labelEl = S, w.arrowObj = o, w.dataset.linkid = o.id, e.labelContainer.appendChild(S), e.arrowSvg.appendChild(w), le(S), s || (e.arrows.push(o), e.currentArrow = w, pt(e, o, i, l));
2204
+ w.labelEl = S, w.arrowObj = o, w.dataset.linkid = o.id, e.labelContainer.appendChild(S), e.arrowSvg.appendChild(w), re(S), s || (e.arrows.push(o), e.currentArrow = w, pt(e, o, i, l));
2209
2205
  }, uo = function(e, t, n = {}) {
2210
2206
  const o = {
2211
2207
  id: B(),
@@ -2219,7 +2215,7 @@ const fo = function(e, t, n) {
2219
2215
  obj: o
2220
2216
  });
2221
2217
  }, po = function(e) {
2222
- ce(this);
2218
+ le(this);
2223
2219
  const t = { ...e, id: B() };
2224
2220
  Se(this, this.findEle(t.from), this.findEle(t.to), t), this.bus.fire("operation", {
2225
2221
  name: "createArrow",
@@ -2228,7 +2224,7 @@ const fo = function(e, t, n) {
2228
2224
  }, go = function(e) {
2229
2225
  let t;
2230
2226
  if (e ? t = e : t = this.currentArrow, !t) return;
2231
- ce(this);
2227
+ le(this);
2232
2228
  const n = t.arrowObj.id;
2233
2229
  this.arrows = this.arrows.filter((o) => o.id !== n), t.labelEl?.remove(), t.remove(), this.bus.fire("operation", {
2234
2230
  name: "removeArrow",
@@ -2238,11 +2234,11 @@ const fo = function(e, t, n) {
2238
2234
  });
2239
2235
  }, mo = function(e) {
2240
2236
  this.currentArrow = e;
2241
- const t = e.arrowObj, n = this.findEle(t.from), o = this.findEle(t.to), s = ie(this, n, t.delta1), i = ie(this, o, t.delta2);
2237
+ const t = e.arrowObj, n = this.findEle(t.from), o = this.findEle(t.to), s = se(this, n, t.delta1), i = se(this, o, t.delta2);
2242
2238
  this.editable ? pt(this, t, s, i) : ut(e, ht), this.bus.fire("selectArrow", t);
2243
2239
  }, yo = function() {
2244
- ce(this), this.currentArrow = null, this.bus.fire("unselectArrow");
2245
- }, ae = function(e, t) {
2240
+ le(this), this.currentArrow = null, this.bus.fire("unselectArrow");
2241
+ }, ce = function(e, t) {
2246
2242
  const n = document.createElementNS(A, "path");
2247
2243
  return k(n, {
2248
2244
  d: e,
@@ -2255,11 +2251,11 @@ const fo = function(e, t, n) {
2255
2251
  }, ut = function(e, t) {
2256
2252
  const n = document.createElementNS(A, "g");
2257
2253
  n.setAttribute("class", "arrow-highlight"), n.setAttribute("opacity", "0.45");
2258
- const o = ae(e.line.getAttribute("d"), t);
2254
+ const o = ce(e.line.getAttribute("d"), t);
2259
2255
  n.appendChild(o);
2260
- const s = ae(e.arrow1.getAttribute("d"), t);
2256
+ const s = ce(e.arrow1.getAttribute("d"), t);
2261
2257
  if (n.appendChild(s), e.arrow2.getAttribute("d")) {
2262
- const i = ae(e.arrow2.getAttribute("d"), t);
2258
+ const i = ce(e.arrow2.getAttribute("d"), t);
2263
2259
  n.appendChild(i);
2264
2260
  }
2265
2261
  e.insertBefore(n, e.firstChild);
@@ -2271,21 +2267,21 @@ const fo = function(e, t, n) {
2271
2267
  if (!t) return;
2272
2268
  const n = t.querySelectorAll("path");
2273
2269
  n.length >= 1 && n[0].setAttribute("d", e.line.getAttribute("d")), n.length >= 2 && n[1].setAttribute("d", e.arrow1.getAttribute("d")), n.length >= 3 && e.arrow2.getAttribute("d") && n[2].setAttribute("d", e.arrow2.getAttribute("d"));
2274
- }, ce = function(e) {
2270
+ }, le = function(e) {
2275
2271
  e.helper1?.destroy(), e.helper2?.destroy(), e.linkController.style.display = "none", e.P2.style.display = "none", e.P3.style.display = "none", e.currentArrow && bo(e.currentArrow);
2276
2272
  }, pt = function(e, t, n, o) {
2277
2273
  const { linkController: s, P2: i, P3: l, line1: c, line2: r, nodes: a, map: d, currentArrow: h, bus: u } = e;
2278
2274
  if (!h) return;
2279
2275
  s.style.display = "initial", i.style.display = "initial", l.style.display = "initial", a.appendChild(s), a.appendChild(i), a.appendChild(l), ut(h, ht);
2280
2276
  let { x: b, y: v } = X(n), { ctrlX: p, ctrlY: g } = n, { ctrlX: m, ctrlY: w } = o, { x: E, y: N } = X(o);
2281
- i.style.cssText = `top:${g}px;left:${p}px;`, l.style.cssText = `top:${w}px;left:${m}px;`, Q(c, b, v, p, g), Q(r, m, w, E, N), e.helper1 = Ve.create(i), e.helper2 = Ve.create(l), e.helper1.init(d, (f, y) => {
2277
+ i.style.cssText = `top:${g}px;left:${p}px;`, l.style.cssText = `top:${w}px;left:${m}px;`, Z(c, b, v, p, g), Z(r, m, w, E, N), e.helper1 = Ke.create(i), e.helper2 = Ke.create(l), e.helper1.init(d, (f, y) => {
2282
2278
  p = p + f / e.scaleVal, g = g + y / e.scaleVal;
2283
2279
  const x = X({ ...n, ctrlX: p, ctrlY: g });
2284
- b = x.x, v = x.y, i.style.top = g + "px", i.style.left = p + "px", Ke(h, b, v, p, g, m, w, E, N, t), Q(c, b, v, p, g), t.delta1.x = Math.round(p - n.cx), t.delta1.y = Math.round(g - n.cy), u.fire("updateArrowDelta", t);
2280
+ b = x.x, v = x.y, i.style.top = g + "px", i.style.left = p + "px", Ve(h, b, v, p, g, m, w, E, N, t), Z(c, b, v, p, g), t.delta1.x = Math.round(p - n.cx), t.delta1.y = Math.round(g - n.cy), u.fire("updateArrowDelta", t);
2285
2281
  }), e.helper2.init(d, (f, y) => {
2286
2282
  m = m + f / e.scaleVal, w = w + y / e.scaleVal;
2287
2283
  const x = X({ ...o, ctrlX: m, ctrlY: w });
2288
- E = x.x, N = x.y, l.style.top = w + "px", l.style.left = m + "px", Ke(h, b, v, p, g, m, w, E, N, t), Q(r, m, w, E, N), t.delta2.x = Math.round(m - o.cx), t.delta2.y = Math.round(w - o.cy), u.fire("updateArrowDelta", t);
2284
+ E = x.x, N = x.y, l.style.top = w + "px", l.style.left = m + "px", Ve(h, b, v, p, g, m, w, E, N, t), Z(r, m, w, E, N), t.delta2.x = Math.round(m - o.cx), t.delta2.y = Math.round(w - o.cy), u.fire("updateArrowDelta", t);
2289
2285
  });
2290
2286
  };
2291
2287
  function wo() {
@@ -2300,10 +2296,10 @@ function wo() {
2300
2296
  this.nodes.appendChild(this.arrowSvg);
2301
2297
  }
2302
2298
  function xo(e) {
2303
- ce(this), e && e.labelEl && rt(this, e.labelEl, e.arrowObj);
2299
+ le(this), e && e.labelEl && rt(this, e.labelEl, e.arrowObj);
2304
2300
  }
2305
2301
  function Eo() {
2306
- this.arrows = this.arrows.filter((e) => oe(e.from, this.nodeData) && oe(e.to, this.nodeData));
2302
+ this.arrows = this.arrows.filter((e) => ne(e.from, this.nodeData) && ne(e.to, this.nodeData));
2307
2303
  }
2308
2304
  const Co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2309
2305
  __proto__: null,
@@ -2371,18 +2367,18 @@ const Co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2371
2367
  }, Ne = function(e, t) {
2372
2368
  const { id: n, label: o, parent: s, start: i, end: l, style: c } = t, { nodes: r, theme: a, summarySvg: d } = e, u = e.findEle(s).nodeObj, b = ko(e, t);
2373
2369
  let v = 1 / 0, p = 0, g = 0, m = 0;
2374
- for (let K = i; K <= l; K++) {
2375
- const Te = u.children?.[K];
2370
+ for (let V = i; V <= l; V++) {
2371
+ const Te = u.children?.[V];
2376
2372
  if (!Te)
2377
2373
  return e.removeSummary(n), null;
2378
- const U = To(e.findEle(Te.id)), { offsetLeft: J, offsetTop: ke } = M(r, U), _e = i === l ? 10 : 20;
2379
- K === i && (g = ke + _e), K === l && (m = ke + U.offsetHeight - _e), J < v && (v = J), U.offsetWidth + J > p && (p = U.offsetWidth + J);
2374
+ const q = To(e.findEle(Te.id)), { offsetLeft: U, offsetTop: ke } = M(r, q), _e = i === l ? 10 : 20;
2375
+ V === i && (g = ke + _e), V === l && (m = ke + q.offsetHeight - _e), U < v && (v = U), q.offsetWidth + U > p && (p = q.offsetWidth + U);
2380
2376
  }
2381
2377
  let w, E;
2382
2378
  const N = u.parent ? 10 : 0, f = g + N, y = m + N, x = (f + y) / 2, S = c?.stroke || a.cssVar["--color"], C = c?.labelColor || a.cssVar["--color"], T = "s-" + n, D = e.markdown ? e.markdown(o, t) : o;
2383
- b === H.LHS ? (w = ze(`M ${v + 10} ${f} c -5 0 -10 5 -10 10 L ${v} ${y - 10} c 0 5 5 10 10 10 M ${v} ${x} h -10`, S), E = he(D, v - 20, x, { anchor: "end", color: C, dataType: "summary", svgId: T })) : (w = ze(`M ${p - 10} ${f} c 5 0 10 5 10 10 L ${p} ${y - 10} c 0 5 -5 10 -10 10 M ${p} ${x} h 10`, S), E = he(D, p + 20, x, { anchor: "start", color: C, dataType: "summary", svgId: T }));
2379
+ b === H.LHS ? (w = ze(`M ${v + 10} ${f} c -5 0 -10 5 -10 10 L ${v} ${y - 10} c 0 5 5 10 10 10 M ${v} ${x} h -10`, S), E = de(D, v - 20, x, { anchor: "end", color: C, dataType: "summary", svgId: T })) : (w = ze(`M ${p - 10} ${f} c 5 0 10 5 10 10 L ${p} ${y - 10} c 0 5 -5 10 -10 10 M ${p} ${x} h 10`, S), E = de(D, p + 20, x, { anchor: "start", color: C, dataType: "summary", svgId: T }));
2384
2380
  const L = No(T);
2385
- return L.appendChild(w), e.labelContainer.appendChild(E), le(E), L.summaryObj = t, L.labelEl = E, d.appendChild(L), L;
2381
+ return L.appendChild(w), e.labelContainer.appendChild(E), re(E), L.summaryObj = t, L.labelEl = E, d.appendChild(L), L;
2386
2382
  }, _o = function(e = {}) {
2387
2383
  if (!this.currentNodes) return;
2388
2384
  const { currentNodes: t, summaries: n, bus: o } = this, { parent: s, start: i, end: l } = So(t), c = { id: B(), parent: s, start: i, end: l, label: "summary", style: e.style }, r = Ne(this, c);
@@ -2485,7 +2481,7 @@ function Bo(e, t) {
2485
2481
  "stroke-width": n.borderWidth
2486
2482
  }), i;
2487
2483
  }
2488
- function ee(e, t, n = !1) {
2484
+ function Q(e, t, n = !1) {
2489
2485
  const o = getComputedStyle(t), { offsetLeft: s, offsetTop: i } = M(e.nodes, t), l = document.createElementNS(_, "rect");
2490
2486
  k(l, {
2491
2487
  x: s + "",
@@ -2525,8 +2521,8 @@ function Yo(e, t) {
2525
2521
  href: t.src
2526
2522
  }), i;
2527
2523
  }
2528
- const te = 100, Xo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">', Fo = (e, t = !1) => {
2529
- const n = e.nodes, o = n.offsetHeight + te * 2, s = n.offsetWidth + te * 2, i = $o(o + "px", s + "px"), l = document.createElementNS(_, "svg"), c = document.createElementNS(_, "rect");
2524
+ const ee = 100, Xo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">', Fo = (e, t = !1) => {
2525
+ const n = e.nodes, o = n.offsetHeight + ee * 2, s = n.offsetWidth + ee * 2, i = $o(o + "px", s + "px"), l = document.createElementNS(_, "svg"), c = document.createElementNS(_, "rect");
2530
2526
  k(c, {
2531
2527
  x: "0",
2532
2528
  y: "0",
@@ -2543,22 +2539,22 @@ const te = 100, Xo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC
2543
2539
  a && l.appendChild(a);
2544
2540
  const d = n.querySelector(".summary")?.cloneNode(!0);
2545
2541
  return d && l.appendChild(d), n.querySelectorAll("me-tpc").forEach((h) => {
2546
- h.nodeObj.dangerouslySetInnerHTML ? l.appendChild(ee(e, h, !t)) : (l.appendChild(Bo(e, h)), l.appendChild(ee(e, h.text, !t)));
2542
+ h.nodeObj.dangerouslySetInnerHTML ? l.appendChild(Q(e, h, !t)) : (l.appendChild(Bo(e, h)), l.appendChild(Q(e, h.text, !t)));
2547
2543
  }), n.querySelectorAll(".tags > span").forEach((h) => {
2548
- l.appendChild(ee(e, h));
2544
+ l.appendChild(Q(e, h));
2549
2545
  }), n.querySelectorAll(".icons > span").forEach((h) => {
2550
- l.appendChild(ee(e, h));
2546
+ l.appendChild(Q(e, h));
2551
2547
  }), n.querySelectorAll(".hyper-link").forEach((h) => {
2552
2548
  l.appendChild(Wo(e, h));
2553
2549
  }), n.querySelectorAll("img").forEach((h) => {
2554
2550
  l.appendChild(Yo(e, h));
2555
2551
  }), k(l, {
2556
- x: te + "",
2557
- y: te + "",
2552
+ x: ee + "",
2553
+ y: ee + "",
2558
2554
  overflow: "visible"
2559
2555
  }), i.appendChild(l), i;
2560
- }, Vo = (e, t) => (t && e.insertAdjacentHTML("afterbegin", "<style>" + t + "</style>"), Xo + e.outerHTML);
2561
- function Ko(e) {
2556
+ }, Ko = (e, t) => (t && e.insertAdjacentHTML("afterbegin", "<style>" + t + "</style>"), Xo + e.outerHTML);
2557
+ function Vo(e) {
2562
2558
  return new Promise((t, n) => {
2563
2559
  const o = new FileReader();
2564
2560
  o.onload = (s) => {
@@ -2569,10 +2565,10 @@ function Ko(e) {
2569
2565
  });
2570
2566
  }
2571
2567
  const zo = function(e = !1, t) {
2572
- const n = Fo(this, e), o = Vo(n, t);
2568
+ const n = Fo(this, e), o = Ko(n, t);
2573
2569
  return new Blob([o], { type: "image/svg+xml" });
2574
2570
  }, Go = async function(e = !1, t) {
2575
- const n = this.exportSvg(e, t), o = await Ko(n);
2571
+ const n = this.exportSvg(e, t), o = await Vo(n);
2576
2572
  return new Promise((s, i) => {
2577
2573
  const l = new Image();
2578
2574
  l.setAttribute("crossOrigin", "anonymous"), l.onload = () => {
@@ -2597,7 +2593,7 @@ for (let e = 0; e < Ge.length; e++) {
2597
2593
  gt[t] = Uo(ot[t], t);
2598
2594
  }
2599
2595
  const Jo = {
2600
- getObjById: oe,
2596
+ getObjById: ne,
2601
2597
  generateNewObj: mt,
2602
2598
  layout: Nt,
2603
2599
  linkDiv: In,
@@ -2628,7 +2624,7 @@ const Jo = {
2628
2624
  enableMobileMultiSelect(e) {
2629
2625
  this.mobileMultiSelect = e;
2630
2626
  }
2631
- }, Zo = "5.12.2-beta.2";
2627
+ }, Zo = "5.12.2";
2632
2628
  function Qo(e) {
2633
2629
  return {
2634
2630
  x: 0,
@@ -2688,7 +2684,7 @@ function P({
2688
2684
  if (T === "[object HTMLDivElement]" ? C = e : T === "[object String]" && (C = document.querySelector(e)), !C) throw new Error("MindElixir: el is not a valid element");
2689
2685
  C.style.position = "relative", C.innerHTML = "", this.el = C, this.disposable = [], this.before = r || {}, this.newTopicName = a || "New Node", this.contextMenu = o ?? !0, this.toolBar = s ?? !0, this.keypress = i ?? !0, this.mouseSelectionButton = l ?? 0, this.direction = t ?? 1, this.editable = n ?? !0, this.allowUndo = d ?? !0, this.scaleSensitivity = m ?? 0.1, this.scaleMax = w ?? 1.4, this.scaleMin = E ?? 0.2, this.generateMainBranch = h || at, this.generateSubBranch = u || dt, this.overflowHidden = b ?? !1, this.compact = v ?? !1, this.alignment = g ?? "root", this.handleWheel = N ?? !0, this.markdown = f || void 0, this.imageProxy = y || void 0, this.currentNodes = [], this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.mobileMultiSelect = S ?? !1, this.panHelper = Qo(this), this.bus = $n(), this.container = document.createElement("div"), this.selectionContainer = c || this.container, this.container.className = "map-container";
2690
2686
  const D = window.matchMedia("(prefers-color-scheme: dark)");
2691
- this.theme = p || (D.matches ? ue : G);
2687
+ this.theme = p || (D.matches ? ue : fe);
2692
2688
  const L = document.createElement("div");
2693
2689
  L.className = "map-canvas", this.map = L, this.container.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.el.appendChild(this.container), this.nodes = document.createElement("me-nodes"), this.lines = z("lines"), this.summarySvg = z("summary"), this.linkController = z("linkcontroller"), this.P2 = document.createElement("div"), this.P3 = document.createElement("div"), this.P2.className = this.P3.className = "circle", this.P2.style.display = this.P3.style.display = "none", this.line1 = je(), this.line2 = je(), this.linkController.appendChild(this.line1), this.linkController.appendChild(this.line2), this.arrowSvg = z("topiclinks"), this.labelContainer = document.createElement("div"), this.labelContainer.className = "label-container", this.map.appendChild(this.nodes), this.overflowHidden ? this.container.style.overflow = "hidden" : this.disposable.push(Hn(this)), x && (this.pasteHandler = x);
2694
2690
  }
@@ -2702,7 +2698,7 @@ Object.defineProperty(P.prototype, "currentNode", {
2702
2698
  P.LEFT = 0;
2703
2699
  P.RIGHT = 1;
2704
2700
  P.SIDE = 2;
2705
- P.THEME = G;
2701
+ P.THEME = fe;
2706
2702
  P.DARK_THEME = ue;
2707
2703
  P.version = Zo;
2708
2704
  P.E = Ze;
@@ -2718,6 +2714,6 @@ export {
2718
2714
  es as LEFT,
2719
2715
  ts as RIGHT,
2720
2716
  ns as SIDE,
2721
- G as THEME,
2717
+ fe as THEME,
2722
2718
  P as default
2723
2719
  };