vue-wiring-diagram 1.1.10 → 1.1.12

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.
@@ -4153,19 +4153,19 @@ function Im(n, e, t) {
4153
4153
  throw new TypeError(rA);
4154
4154
  e = oo(e) || 0, Qe(t) && (u = !!t.leading, h = "maxWait" in t, r = h ? oA(oo(t.maxWait) || 0, e) : r, d = "trailing" in t ? !!t.trailing : d);
4155
4155
  function f(O) {
4156
- var x = s, M = i;
4157
- return s = i = void 0, c = O, o = n.apply(M, x), o;
4156
+ var x = s, P = i;
4157
+ return s = i = void 0, c = O, o = n.apply(P, x), o;
4158
4158
  }
4159
4159
  function g(O) {
4160
4160
  return c = O, a = setTimeout(y, e), u ? f(O) : o;
4161
4161
  }
4162
4162
  function p(O) {
4163
- var x = O - l, M = O - c, k = e - x;
4164
- return h ? aA(k, r - M) : k;
4163
+ var x = O - l, P = O - c, k = e - x;
4164
+ return h ? aA(k, r - P) : k;
4165
4165
  }
4166
4166
  function m(O) {
4167
- var x = O - l, M = O - c;
4168
- return l === void 0 || x >= e || x < 0 || h && M >= r;
4167
+ var x = O - l, P = O - c;
4168
+ return l === void 0 || x >= e || x < 0 || h && P >= r;
4169
4169
  }
4170
4170
  function y() {
4171
4171
  var O = mc();
@@ -4858,9 +4858,9 @@ For more detail, please visit: ${i}
4858
4858
  offsetY: 0
4859
4859
  };
4860
4860
  const r = (c) => {
4861
- const u = c.clientX, h = c.clientY, { offsetX: d, offsetY: f } = i, g = n.value.getBoundingClientRect(), p = g.left, m = g.top, y = g.width, b = g.height, v = document.documentElement.clientWidth, w = document.documentElement.clientHeight, S = -p + d, O = -m + f, x = v - p - y + d, M = w - m - b + f, k = (L) => {
4861
+ const u = c.clientX, h = c.clientY, { offsetX: d, offsetY: f } = i, g = n.value.getBoundingClientRect(), p = g.left, m = g.top, y = g.width, b = g.height, v = document.documentElement.clientWidth, w = document.documentElement.clientHeight, S = -p + d, O = -m + f, x = v - p - y + d, P = w - m - b + f, k = (L) => {
4862
4862
  let I = d + L.clientX - u, H = f + L.clientY - h;
4863
- s != null && s.value || (I = Math.min(Math.max(I, S), x), H = Math.min(Math.max(H, O), M)), i = {
4863
+ s != null && s.value || (I = Math.min(Math.max(I, S), x), H = Math.min(Math.max(H, O), P)), i = {
4864
4864
  offsetX: I,
4865
4865
  offsetY: H
4866
4866
  }, n.value && (n.value.style.transform = `translate(${Eo(I)}, ${Eo(H)})`);
@@ -5162,13 +5162,13 @@ const B_ = (n) => (e, t) => z_(e, t, _(n)), z_ = (n, e, t) => Jp(t, n, n).replac
5162
5162
  }, v = (x) => {
5163
5163
  if (g.disabled === !0 || cn(c) && !c())
5164
5164
  return;
5165
- const M = p.value && ht;
5166
- M && f(e, !0), (m.value || !M) && y(x);
5165
+ const P = p.value && ht;
5166
+ P && f(e, !0), (m.value || !P) && y(x);
5167
5167
  }, w = (x) => {
5168
5168
  if (g.disabled === !0 || !ht)
5169
5169
  return;
5170
- const M = p.value && ht;
5171
- M && f(e, !1), (m.value || !M) && b(x);
5170
+ const P = p.value && ht;
5171
+ P && f(e, !1), (m.value || !P) && b(x);
5172
5172
  }, S = (x) => {
5173
5173
  Wa(x) && (g.disabled && x ? p.value && f(e, !1) : o.value !== x && (x ? y() : b()));
5174
5174
  }, O = () => {
@@ -5339,8 +5339,8 @@ var dT = function(n, e) {
5339
5339
  function hT(n) {
5340
5340
  var e, t = n.state, s = n.name, i = n.options, r = t.elements.arrow, o = t.modifiersData.popperOffsets, a = Gn(t.placement), l = md(a), c = [Yt, pn].indexOf(a) >= 0, u = c ? "height" : "width";
5341
5341
  if (!(!r || !o)) {
5342
- var h = dT(i.padding, t), d = pd(r), f = l === "y" ? Wt : Yt, g = l === "y" ? gn : pn, p = t.rects.reference[u] + t.rects.reference[l] - o[l] - t.rects.popper[u], m = o[l] - t.rects.reference[l], y = Xo(r), b = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, v = p / 2 - m / 2, w = h[f], S = b - d[u] - h[g], O = b / 2 - d[u] / 2 + v, x = co(w, O, S), M = l;
5343
- t.modifiersData[s] = (e = {}, e[M] = x, e.centerOffset = x - O, e);
5342
+ var h = dT(i.padding, t), d = pd(r), f = l === "y" ? Wt : Yt, g = l === "y" ? gn : pn, p = t.rects.reference[u] + t.rects.reference[l] - o[l] - t.rects.popper[u], m = o[l] - t.rects.reference[l], y = Xo(r), b = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, v = p / 2 - m / 2, w = h[f], S = b - d[u] - h[g], O = b / 2 - d[u] / 2 + v, x = co(w, O, S), P = l;
5343
+ t.modifiersData[s] = (e = {}, e[P] = x, e.centerOffset = x - O, e);
5344
5344
  }
5345
5345
  }
5346
5346
  function fT(n) {
@@ -5361,15 +5361,15 @@ function hf(n) {
5361
5361
  f = m.x, p = m.y;
5362
5362
  var y = o.hasOwnProperty("x"), b = o.hasOwnProperty("y"), v = Yt, w = Wt, S = window;
5363
5363
  if (c) {
5364
- var O = Xo(t), x = "clientHeight", M = "clientWidth";
5365
- if (O === In(t) && (O = ti(t), vs(O).position !== "static" && a === "absolute" && (x = "scrollHeight", M = "scrollWidth")), O = O, i === Wt || (i === Yt || i === pn) && r === Po) {
5364
+ var O = Xo(t), x = "clientHeight", P = "clientWidth";
5365
+ if (O === In(t) && (O = ti(t), vs(O).position !== "static" && a === "absolute" && (x = "scrollHeight", P = "scrollWidth")), O = O, i === Wt || (i === Yt || i === pn) && r === Po) {
5366
5366
  w = gn;
5367
5367
  var k = h && O === S && S.visualViewport ? S.visualViewport.height : O[x];
5368
5368
  p -= k - s.height, p *= l ? 1 : -1;
5369
5369
  }
5370
5370
  if (i === Yt || (i === Wt || i === gn) && r === Po) {
5371
5371
  v = pn;
5372
- var D = h && O === S && S.visualViewport ? S.visualViewport.width : O[M];
5372
+ var D = h && O === S && S.visualViewport ? S.visualViewport.width : O[P];
5373
5373
  f -= D - s.width, f *= l ? 1 : -1;
5374
5374
  }
5375
5375
  }
@@ -5493,15 +5493,15 @@ function my(n) {
5493
5493
  }
5494
5494
  function Ao(n, e) {
5495
5495
  e === void 0 && (e = {});
5496
- var t = e, s = t.placement, i = s === void 0 ? n.placement : s, r = t.boundary, o = r === void 0 ? q_ : r, a = t.rootBoundary, l = a === void 0 ? ay : a, c = t.elementContext, u = c === void 0 ? to : c, h = t.altBoundary, d = h === void 0 ? !1 : h, f = t.padding, g = f === void 0 ? 0 : f, p = dy(typeof g != "number" ? g : hy(g, Jo)), m = u === to ? J_ : to, y = n.rects.popper, b = n.elements[d ? m : u], v = ET(ar(b) ? b : b.contextElement || ti(n.elements.popper), o, l), w = cr(n.elements.reference), S = my({ reference: w, element: y, strategy: "absolute", placement: i }), O = eu(Object.assign({}, y, S)), x = u === to ? O : w, M = { top: v.top - x.top + p.top, bottom: x.bottom - v.bottom + p.bottom, left: v.left - x.left + p.left, right: x.right - v.right + p.right }, k = n.modifiersData.offset;
5496
+ var t = e, s = t.placement, i = s === void 0 ? n.placement : s, r = t.boundary, o = r === void 0 ? q_ : r, a = t.rootBoundary, l = a === void 0 ? ay : a, c = t.elementContext, u = c === void 0 ? to : c, h = t.altBoundary, d = h === void 0 ? !1 : h, f = t.padding, g = f === void 0 ? 0 : f, p = dy(typeof g != "number" ? g : hy(g, Jo)), m = u === to ? J_ : to, y = n.rects.popper, b = n.elements[d ? m : u], v = ET(ar(b) ? b : b.contextElement || ti(n.elements.popper), o, l), w = cr(n.elements.reference), S = my({ reference: w, element: y, strategy: "absolute", placement: i }), O = eu(Object.assign({}, y, S)), x = u === to ? O : w, P = { top: v.top - x.top + p.top, bottom: x.bottom - v.bottom + p.bottom, left: v.left - x.left + p.left, right: x.right - v.right + p.right }, k = n.modifiersData.offset;
5497
5497
  if (u === to && k) {
5498
5498
  var D = k[i];
5499
- Object.keys(M).forEach(function(L) {
5499
+ Object.keys(P).forEach(function(L) {
5500
5500
  var I = [pn, gn].indexOf(L) >= 0 ? 1 : -1, H = [Wt, gn].indexOf(L) >= 0 ? "y" : "x";
5501
- M[L] += D[H] * I;
5501
+ P[L] += D[H] * I;
5502
5502
  });
5503
5503
  }
5504
- return M;
5504
+ return P;
5505
5505
  }
5506
5506
  function MT(n, e) {
5507
5507
  e === void 0 && (e = {});
@@ -5528,19 +5528,19 @@ function AT(n) {
5528
5528
  if (!e.modifiersData[s]._skip) {
5529
5529
  for (var i = t.mainAxis, r = i === void 0 ? !0 : i, o = t.altAxis, a = o === void 0 ? !0 : o, l = t.fallbackPlacements, c = t.padding, u = t.boundary, h = t.rootBoundary, d = t.altBoundary, f = t.flipVariations, g = f === void 0 ? !0 : f, p = t.allowedAutoPlacements, m = e.options.placement, y = Gn(m), b = y === m, v = l || (b || !g ? [Aa(m)] : PT(m)), w = [m].concat(v).reduce(function(ie, te) {
5530
5530
  return ie.concat(Gn(te) === hd ? MT(e, { placement: te, boundary: u, rootBoundary: h, padding: c, flipVariations: g, allowedAutoPlacements: p }) : te);
5531
- }, []), S = e.rects.reference, O = e.rects.popper, x = /* @__PURE__ */ new Map(), M = !0, k = w[0], D = 0; D < w.length; D++) {
5531
+ }, []), S = e.rects.reference, O = e.rects.popper, x = /* @__PURE__ */ new Map(), P = !0, k = w[0], D = 0; D < w.length; D++) {
5532
5532
  var L = w[D], I = Gn(L), H = ur(L) === or, U = [Wt, gn].indexOf(I) >= 0, T = U ? "width" : "height", A = Ao(e, { placement: L, boundary: u, rootBoundary: h, altBoundary: d, padding: c }), R = U ? H ? pn : Yt : H ? gn : Wt;
5533
5533
  S[T] > O[T] && (R = Aa(R));
5534
5534
  var z = Aa(R), J = [];
5535
5535
  if (r && J.push(A[I] <= 0), a && J.push(A[R] <= 0, A[z] <= 0), J.every(function(ie) {
5536
5536
  return ie;
5537
5537
  })) {
5538
- k = L, M = !1;
5538
+ k = L, P = !1;
5539
5539
  break;
5540
5540
  }
5541
5541
  x.set(L, J);
5542
5542
  }
5543
- if (M) for (var de = g ? 3 : 1, B = function(ie) {
5543
+ if (P) for (var de = g ? 3 : 1, B = function(ie) {
5544
5544
  var te = w.find(function(fe) {
5545
5545
  var oe = x.get(fe);
5546
5546
  if (oe) return oe.slice(0, ie).every(function(Me) {
@@ -5589,14 +5589,14 @@ function IT(n) {
5589
5589
  return n === "x" ? "y" : "x";
5590
5590
  }
5591
5591
  function jT(n) {
5592
- var e = n.state, t = n.options, s = n.name, i = t.mainAxis, r = i === void 0 ? !0 : i, o = t.altAxis, a = o === void 0 ? !1 : o, l = t.boundary, c = t.rootBoundary, u = t.altBoundary, h = t.padding, d = t.tether, f = d === void 0 ? !0 : d, g = t.tetherOffset, p = g === void 0 ? 0 : g, m = Ao(e, { boundary: l, rootBoundary: c, padding: h, altBoundary: u }), y = Gn(e.placement), b = ur(e.placement), v = !b, w = md(y), S = IT(w), O = e.modifiersData.popperOffsets, x = e.rects.reference, M = e.rects.popper, k = typeof p == "function" ? p(Object.assign({}, e.rects, { placement: e.placement })) : p, D = typeof k == "number" ? { mainAxis: k, altAxis: k } : Object.assign({ mainAxis: 0, altAxis: 0 }, k), L = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, I = { x: 0, y: 0 };
5592
+ var e = n.state, t = n.options, s = n.name, i = t.mainAxis, r = i === void 0 ? !0 : i, o = t.altAxis, a = o === void 0 ? !1 : o, l = t.boundary, c = t.rootBoundary, u = t.altBoundary, h = t.padding, d = t.tether, f = d === void 0 ? !0 : d, g = t.tetherOffset, p = g === void 0 ? 0 : g, m = Ao(e, { boundary: l, rootBoundary: c, padding: h, altBoundary: u }), y = Gn(e.placement), b = ur(e.placement), v = !b, w = md(y), S = IT(w), O = e.modifiersData.popperOffsets, x = e.rects.reference, P = e.rects.popper, k = typeof p == "function" ? p(Object.assign({}, e.rects, { placement: e.placement })) : p, D = typeof k == "number" ? { mainAxis: k, altAxis: k } : Object.assign({ mainAxis: 0, altAxis: 0 }, k), L = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, I = { x: 0, y: 0 };
5593
5593
  if (O) {
5594
5594
  if (r) {
5595
- var H, U = w === "y" ? Wt : Yt, T = w === "y" ? gn : pn, A = w === "y" ? "height" : "width", R = O[w], z = R + m[U], J = R - m[T], de = f ? -M[A] / 2 : 0, B = b === or ? x[A] : M[A], N = b === or ? -M[A] : -x[A], X = e.elements.arrow, ie = f && X ? pd(X) : { width: 0, height: 0 }, te = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : uy(), fe = te[U], oe = te[T], Me = co(0, x[A], ie[A]), ue = v ? x[A] / 2 - de - Me - fe - D.mainAxis : B - Me - fe - D.mainAxis, be = v ? -x[A] / 2 + de + Me + oe + D.mainAxis : N + Me + oe + D.mainAxis, Lt = e.elements.arrow && Xo(e.elements.arrow), pt = Lt ? w === "y" ? Lt.clientTop || 0 : Lt.clientLeft || 0 : 0, Bt = (H = L == null ? void 0 : L[w]) != null ? H : 0, ae = R + ue - Bt - pt, ri = R + be - Bt, oi = co(f ? Ja(z, ae) : z, R, f ? wi(J, ri) : J);
5595
+ var H, U = w === "y" ? Wt : Yt, T = w === "y" ? gn : pn, A = w === "y" ? "height" : "width", R = O[w], z = R + m[U], J = R - m[T], de = f ? -P[A] / 2 : 0, B = b === or ? x[A] : P[A], N = b === or ? -P[A] : -x[A], X = e.elements.arrow, ie = f && X ? pd(X) : { width: 0, height: 0 }, te = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : uy(), fe = te[U], oe = te[T], Me = co(0, x[A], ie[A]), ue = v ? x[A] / 2 - de - Me - fe - D.mainAxis : B - Me - fe - D.mainAxis, be = v ? -x[A] / 2 + de + Me + oe + D.mainAxis : N + Me + oe + D.mainAxis, Lt = e.elements.arrow && Xo(e.elements.arrow), pt = Lt ? w === "y" ? Lt.clientTop || 0 : Lt.clientLeft || 0 : 0, Bt = (H = L == null ? void 0 : L[w]) != null ? H : 0, ae = R + ue - Bt - pt, ri = R + be - Bt, oi = co(f ? Ja(z, ae) : z, R, f ? wi(J, ri) : J);
5596
5596
  O[w] = oi, I[w] = oi - R;
5597
5597
  }
5598
5598
  if (a) {
5599
- var Li, me = w === "x" ? Wt : Yt, nn = w === "x" ? gn : pn, ns = O[S], Ii = S === "y" ? "height" : "width", Xr = ns + m[me], na = ns - m[nn], ji = [Wt, Yt].indexOf(y) !== -1, Z = (Li = L == null ? void 0 : L[S]) != null ? Li : 0, $e = ji ? Xr : ns - x[Ii] - M[Ii] - Z + D.altAxis, ss = ji ? ns + x[Ii] + M[Ii] - Z - D.altAxis : na, Kr = f && ji ? uT($e, ns, ss) : co(f ? $e : Xr, ns, f ? ss : na);
5599
+ var Li, me = w === "x" ? Wt : Yt, nn = w === "x" ? gn : pn, ns = O[S], Ii = S === "y" ? "height" : "width", Xr = ns + m[me], na = ns - m[nn], ji = [Wt, Yt].indexOf(y) !== -1, Z = (Li = L == null ? void 0 : L[S]) != null ? Li : 0, $e = ji ? Xr : ns - x[Ii] - P[Ii] - Z + D.altAxis, ss = ji ? ns + x[Ii] + P[Ii] - Z - D.altAxis : na, Kr = f && ji ? uT($e, ns, ss) : co(f ? $e : Xr, ns, f ? ss : na);
5600
5600
  O[S] = Kr, I[S] = Kr - ns;
5601
5601
  }
5602
5602
  e.modifiersData[s] = I;
@@ -5687,8 +5687,8 @@ function wd(n) {
5687
5687
  if (!h) {
5688
5688
  var p = c.elements, m = p.reference, y = p.popper;
5689
5689
  if (bf(m, y)) {
5690
- c.rects = { reference: FT(m, Xo(y), c.options.strategy === "fixed"), popper: pd(y) }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(M) {
5691
- return c.modifiersData[M.name] = Object.assign({}, M.data);
5690
+ c.rects = { reference: FT(m, Xo(y), c.options.strategy === "fixed"), popper: pd(y) }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(P) {
5691
+ return c.modifiersData[P.name] = Object.assign({}, P.data);
5692
5692
  });
5693
5693
  for (var b = 0; b < c.orderedModifiers.length; b++) {
5694
5694
  if (c.reset === !0) {
@@ -6382,7 +6382,7 @@ const Ck = xt({
6382
6382
  excludeKeys: Y(() => Object.keys(o.value))
6383
6383
  }), { form: u, formItem: h } = Ty(), { inputId: d } = vk(s, {
6384
6384
  formItemContext: h
6385
- }), f = _y(), g = Ed(), p = jt("input"), m = jt("textarea"), y = Un(), b = Un(), v = V(!1), w = V(!1), S = V(), O = Un(s.inputStyle), x = Y(() => y.value || b.value), { wrapperRef: M, isFocused: k, handleFocus: D, handleBlur: L } = lk(x, {
6385
+ }), f = _y(), g = Ed(), p = jt("input"), m = jt("textarea"), y = Un(), b = Un(), v = V(!1), w = V(!1), S = V(), O = Un(s.inputStyle), x = Y(() => y.value || b.value), { wrapperRef: P, isFocused: k, handleFocus: D, handleBlur: L } = lk(x, {
6386
6386
  beforeFocus() {
6387
6387
  return g.value;
6388
6388
  },
@@ -6514,7 +6514,7 @@ const Ck = xt({
6514
6514
  ], 2)) : ye("v-if", !0),
6515
6515
  F("div", {
6516
6516
  ref_key: "wrapperRef",
6517
- ref: M,
6517
+ ref: P,
6518
6518
  class: we(_(l))
6519
6519
  }, [
6520
6520
  ye(" prefix slot "),
@@ -7008,20 +7008,20 @@ const Wk = () => {
7008
7008
  return;
7009
7009
  const { key: p, altKey: m, ctrlKey: y, metaKey: b, currentTarget: v, shiftKey: w } = g, { loop: S } = n, O = p === rr.tab && !m && !y && !b, x = document.activeElement;
7010
7010
  if (O && x) {
7011
- const M = v, [k, D] = Hk(M);
7011
+ const P = v, [k, D] = Hk(P);
7012
7012
  if (k && D) {
7013
7013
  if (!w && x === D) {
7014
7014
  const I = ha({
7015
7015
  focusReason: r.value
7016
7016
  });
7017
7017
  e("focusout-prevented", I), I.defaultPrevented || (g.preventDefault(), S && Ts(k, !0));
7018
- } else if (w && [k, M].includes(x)) {
7018
+ } else if (w && [k, P].includes(x)) {
7019
7019
  const I = ha({
7020
7020
  focusReason: r.value
7021
7021
  });
7022
7022
  e("focusout-prevented", I), I.defaultPrevented || (g.preventDefault(), S && Ts(D, !0));
7023
7023
  }
7024
- } else if (x === M) {
7024
+ } else if (x === P) {
7025
7025
  const I = ha({
7026
7026
  focusReason: r.value
7027
7027
  });
@@ -7355,13 +7355,13 @@ const rN = 0, oN = (n) => {
7355
7355
  styles: g,
7356
7356
  attributes: h,
7357
7357
  role: m
7358
- }), M = it(Za, void 0), k = V();
7358
+ }), P = it(Za, void 0), k = V();
7359
7359
  Hs(ky, {
7360
7360
  arrowStyle: v,
7361
7361
  arrowRef: d,
7362
7362
  arrowOffset: k
7363
- }), M && Hs(Za, {
7364
- ...M,
7363
+ }), P && Hs(Za, {
7364
+ ...P,
7365
7365
  addInputId: Fs,
7366
7366
  removeInputId: Fs
7367
7367
  });
@@ -7565,7 +7565,7 @@ const EN = Di(ON), MN = ve({
7565
7565
  const v = Y(() => _(b) ? !0 : _(c)), w = Y(() => t.disabled ? !1 : _(c)), S = Y(() => t.appendTo || s.value), O = Y(() => {
7566
7566
  var A;
7567
7567
  return (A = t.style) != null ? A : {};
7568
- }), x = V(!0), M = () => {
7568
+ }), x = V(!0), P = () => {
7569
7569
  g(), x.value = !0;
7570
7570
  }, k = () => {
7571
7571
  if (_(a))
@@ -7607,7 +7607,7 @@ const EN = Di(ON), MN = ve({
7607
7607
  default: E(() => [
7608
7608
  C(vl, {
7609
7609
  name: _(y),
7610
- onAfterLeave: M,
7610
+ onAfterLeave: P,
7611
7611
  onBeforeEnter: I,
7612
7612
  onAfterEnter: U,
7613
7613
  onBeforeLeave: H
@@ -8819,7 +8819,7 @@ const gR = fR, Hy = ["success", "info", "warning", "error"], Tt = sy({
8819
8819
  visible: c,
8820
8820
  bottom: y,
8821
8821
  close: S
8822
- }), (x, M) => ($(), le(vl, {
8822
+ }), (x, P) => ($(), le(vl, {
8823
8823
  name: _(i).b("fade"),
8824
8824
  onBeforeLeave: x.onClose,
8825
8825
  onAfterLeave: (k) => x.$emit("destroy"),
@@ -9092,9 +9092,9 @@ const dt = __(dr, "$message"), PR = ve({
9092
9092
  c.action && e("action", c.action);
9093
9093
  }));
9094
9094
  }
9095
- const M = () => {
9095
+ const P = () => {
9096
9096
  n.closeOnClickModal && L(c.distinguishCancelAndClose ? "close" : "cancel");
9097
- }, k = by(M), D = (A) => {
9097
+ }, k = by(P), D = (A) => {
9098
9098
  if (c.inputType !== "textarea")
9099
9099
  return A.preventDefault(), L("confirm");
9100
9100
  }, L = (A) => {
@@ -9143,7 +9143,7 @@ const dt = __(dr, "$message"), PR = ve({
9143
9143
  doClose: x,
9144
9144
  handleClose: U,
9145
9145
  onCloseRequested: T,
9146
- handleWrapperClick: M,
9146
+ handleWrapperClick: P,
9147
9147
  handleInputEnter: D,
9148
9148
  handleAction: L,
9149
9149
  t: o
@@ -10652,11 +10652,11 @@ const oL = async (n) => {
10652
10652
  duplex: "half"
10653
10653
  }), O;
10654
10654
  if (j.isFormData(s) && (O = S.headers.get("content-type")) && u.setContentType(O), S.body) {
10655
- const [x, M] = Gf(
10655
+ const [x, P] = Gf(
10656
10656
  m,
10657
10657
  Qa(Wf(l))
10658
10658
  );
10659
- s = qf(S.body, Jf, x, M);
10659
+ s = qf(S.body, Jf, x, P);
10660
10660
  }
10661
10661
  }
10662
10662
  j.isString(h) || (h = h ? "include" : "omit");
@@ -10677,13 +10677,13 @@ const oL = async (n) => {
10677
10677
  ["status", "statusText", "headers"].forEach((k) => {
10678
10678
  S[k] = b[k];
10679
10679
  });
10680
- const O = j.toFiniteNumber(b.headers.get("content-length")), [x, M] = a && Gf(
10680
+ const O = j.toFiniteNumber(b.headers.get("content-length")), [x, P] = a && Gf(
10681
10681
  O,
10682
10682
  Qa(Wf(a), !0)
10683
10683
  ) || [];
10684
10684
  b = new Response(
10685
10685
  qf(b.body, Jf, x, () => {
10686
- M && M(), p && p();
10686
+ P && P(), p && p();
10687
10687
  }),
10688
10688
  S
10689
10689
  );
@@ -11429,8 +11429,8 @@ const Si = (n, e = {}) => Ms.get(n, { params: e }), tl = (n, e = {}) => Ms.post(
11429
11429
  payload: Object
11430
11430
  },
11431
11431
  setup(n) {
11432
- var d, f, g, p, m, y, b, v, w, S, O, x, M, k, D, L, I, H, U, T, A;
11433
- const e = n, t = V(((d = e.payload.value.options.background) == null ? void 0 : d.color) || null), s = V(((g = (f = e.payload.value.options) == null ? void 0 : f.grid) == null ? void 0 : g.visible) || null), i = V(((m = (p = e.payload.value.options) == null ? void 0 : p.grid) == null ? void 0 : m.size) || 10), r = V(((w = (v = (b = (y = e.payload.value.options) == null ? void 0 : y.grid) == null ? void 0 : b.args) == null ? void 0 : v[0]) == null ? void 0 : w.color) || null), o = V(((M = (x = (O = (S = e.payload.value.options) == null ? void 0 : S.grid) == null ? void 0 : O.args) == null ? void 0 : x[0]) == null ? void 0 : M.thickness) || 1), a = V(((I = (L = (D = (k = e.payload.value.options) == null ? void 0 : k.grid) == null ? void 0 : D.args) == null ? void 0 : L[1]) == null ? void 0 : I.color) || null), l = V(((A = (T = (U = (H = e.payload.value.options) == null ? void 0 : H.grid) == null ? void 0 : U.args) == null ? void 0 : T[1]) == null ? void 0 : A.thickness) || 1), c = V("1"), u = (R) => {
11432
+ var d, f, g, p, m, y, b, v, w, S, O, x, P, k, D, L, I, H, U, T, A;
11433
+ const e = n, t = V(((d = e.payload.value.options.background) == null ? void 0 : d.color) || null), s = V(((g = (f = e.payload.value.options) == null ? void 0 : f.grid) == null ? void 0 : g.visible) || null), i = V(((m = (p = e.payload.value.options) == null ? void 0 : p.grid) == null ? void 0 : m.size) || 10), r = V(((w = (v = (b = (y = e.payload.value.options) == null ? void 0 : y.grid) == null ? void 0 : b.args) == null ? void 0 : v[0]) == null ? void 0 : w.color) || null), o = V(((P = (x = (O = (S = e.payload.value.options) == null ? void 0 : S.grid) == null ? void 0 : O.args) == null ? void 0 : x[0]) == null ? void 0 : P.thickness) || 1), a = V(((I = (L = (D = (k = e.payload.value.options) == null ? void 0 : k.grid) == null ? void 0 : D.args) == null ? void 0 : L[1]) == null ? void 0 : I.color) || null), l = V(((A = (T = (U = (H = e.payload.value.options) == null ? void 0 : H.grid) == null ? void 0 : U.args) == null ? void 0 : T[1]) == null ? void 0 : A.thickness) || 1), c = V("1"), u = (R) => {
11434
11434
  e.payload.value.drawBackground({
11435
11435
  color: R
11436
11436
  });
@@ -13807,8 +13807,8 @@ var bI = function(n, e) {
13807
13807
  v = O, u.type = w > 1 ? y : m.bindType || h;
13808
13808
  const x = pi.get(O);
13809
13809
  x && x.events[u.type] && x.handler && x.handler.call(O, ...p);
13810
- const M = g && O[g] || null;
13811
- M && xe.isValidTarget(O) && (u.result = M.call(O, ...p), u.result === !1 && u.preventDefault());
13810
+ const P = g && O[g] || null;
13811
+ P && xe.isValidTarget(O) && (u.result = P.call(O, ...p), u.result === !1 && u.preventDefault());
13812
13812
  }
13813
13813
  if (u.type = h, !c && !u.isDefaultPrevented()) {
13814
13814
  const w = m.preventDefault;
@@ -14175,8 +14175,8 @@ class fs {
14175
14175
  function r(v) {
14176
14176
  const w = v.toLowerCase().match(/^hsla?\(([\s.,0-9]+)\)/);
14177
14177
  if (w) {
14178
- const S = w[2].split(/\s*,\s*/), O = (parseFloat(S[0]) % 360 + 360) % 360 / 360, x = parseFloat(S[1]) / 100, M = parseFloat(S[2]) / 100, k = S[3] == null ? 1 : parseInt(S[3], 10);
14179
- return new n(c(O, x, M, k));
14178
+ const S = w[2].split(/\s*,\s*/), O = (parseFloat(S[0]) % 360 + 360) % 360 / 360, x = parseFloat(S[1]) / 100, P = parseFloat(S[2]) / 100, k = S[3] == null ? 1 : parseInt(S[3], 10);
14179
+ return new n(c(O, x, P, k));
14180
14180
  }
14181
14181
  return null;
14182
14182
  }
@@ -14195,19 +14195,19 @@ class fs {
14195
14195
  }
14196
14196
  n.makeGrey = a;
14197
14197
  function l(v, w, S, O) {
14198
- const x = Array.isArray(v) ? v[0] : v, M = Array.isArray(v) ? v[1] : w, k = Array.isArray(v) ? v[2] : S, D = Array.isArray(v) ? v[3] : O, L = Math.max(x, M, k), I = Math.min(x, M, k), H = (L + I) / 2;
14198
+ const x = Array.isArray(v) ? v[0] : v, P = Array.isArray(v) ? v[1] : w, k = Array.isArray(v) ? v[2] : S, D = Array.isArray(v) ? v[3] : O, L = Math.max(x, P, k), I = Math.min(x, P, k), H = (L + I) / 2;
14199
14199
  let U = 0, T = 0;
14200
14200
  if (I !== L) {
14201
14201
  const A = L - I;
14202
14202
  switch (T = H > 0.5 ? A / (2 - L - I) : A / (L + I), L) {
14203
14203
  case x:
14204
- U = (M - k) / A + (M < k ? 6 : 0);
14204
+ U = (P - k) / A + (P < k ? 6 : 0);
14205
14205
  break;
14206
- case M:
14206
+ case P:
14207
14207
  U = (k - x) / A + 2;
14208
14208
  break;
14209
14209
  case k:
14210
- U = (x - M) / A + 4;
14210
+ U = (x - P) / A + 4;
14211
14211
  break;
14212
14212
  }
14213
14213
  U /= 6;
@@ -14216,7 +14216,7 @@ class fs {
14216
14216
  }
14217
14217
  n.rgba2hsla = l;
14218
14218
  function c(v, w, S, O) {
14219
- const x = Array.isArray(v) ? v[0] : v, M = Array.isArray(v) ? v[1] : w, k = Array.isArray(v) ? v[2] : S, D = Array.isArray(v) ? v[3] : O, L = k <= 0.5 ? k * (M + 1) : k + M - k * M, I = 2 * k - L;
14219
+ const x = Array.isArray(v) ? v[0] : v, P = Array.isArray(v) ? v[1] : w, k = Array.isArray(v) ? v[2] : S, D = Array.isArray(v) ? v[3] : O, L = k <= 0.5 ? k * (P + 1) : k + P - k * P, I = 2 * k - L;
14220
14220
  return [
14221
14221
  i(I, L, x + 1 / 3) * 256,
14222
14222
  i(I, L, x) * 256,
@@ -14246,8 +14246,8 @@ class fs {
14246
14246
  const k = v[0] === "#", [D, L, I] = g(v);
14247
14247
  return w ? D * 0.299 + L * 0.587 + I * 0.114 > 186 ? "#000000" : "#ffffff" : `${k ? "#" : ""}${p(255 - D, 255 - L, 255 - I)}`;
14248
14248
  }
14249
- const S = v[0], O = v[1], x = v[2], M = v[3];
14250
- return w ? S * 0.299 + O * 0.587 + x * 0.114 > 186 ? [0, 0, 0, M] : [255, 255, 255, M] : [255 - S, 255 - O, 255 - x, M];
14249
+ const S = v[0], O = v[1], x = v[2], P = v[3];
14250
+ return w ? S * 0.299 + O * 0.587 + x * 0.114 > 186 ? [0, 0, 0, P] : [255, 255, 255, P] : [255 - S, 255 - O, 255 - x, P];
14251
14251
  }
14252
14252
  n.invert = f;
14253
14253
  function g(v) {
@@ -14255,11 +14255,11 @@ class fs {
14255
14255
  let S = +`0x${w.substr(1)}`;
14256
14256
  if (!(w.length === 4 || w.length === 7) || Number.isNaN(S))
14257
14257
  throw new Error("Invalid hex color.");
14258
- const O = w.length === 4 ? 4 : 8, x = (1 << O) - 1, M = ["b", "g", "r"].map(() => {
14258
+ const O = w.length === 4 ? 4 : 8, x = (1 << O) - 1, P = ["b", "g", "r"].map(() => {
14259
14259
  const k = S & x;
14260
14260
  return S >>= O, O === 4 ? 17 * k : k;
14261
14261
  });
14262
- return [M[2], M[1], M[0]];
14262
+ return [P[2], P[1], P[0]];
14263
14263
  }
14264
14264
  function p(v, w, S) {
14265
14265
  const O = (x) => x.length < 2 ? `0${x}` : x;
@@ -14275,7 +14275,7 @@ class fs {
14275
14275
  n.darken = y;
14276
14276
  function b(v, w) {
14277
14277
  if (typeof v == "string") {
14278
- const x = v[0] === "#", M = parseInt(x ? v.substr(1) : v, 16), k = Gt((M >> 16) + w, 0, 255), D = Gt((M >> 8 & 255) + w, 0, 255), L = Gt((M & 255) + w, 0, 255);
14278
+ const x = v[0] === "#", P = parseInt(x ? v.substr(1) : v, 16), k = Gt((P >> 16) + w, 0, 255), D = Gt((P >> 8 & 255) + w, 0, 255), L = Gt((P & 255) + w, 0, 255);
14279
14279
  return `${x ? "#" : ""}${(L | D << 8 | k << 16).toString(16)}`;
14280
14280
  }
14281
14281
  const S = p(v[0], v[1], v[2]), O = g(b(S, w));
@@ -14639,11 +14639,11 @@ var Ai;
14639
14639
  return R * R * ((A + 1) * R + A) + 1;
14640
14640
  }
14641
14641
  n.easeOutBack = x;
14642
- function M(T, A = 1.70158) {
14642
+ function P(T, A = 1.70158) {
14643
14643
  const R = T * 2, z = R - 2, J = A * 1.525;
14644
14644
  return R < 1 ? 0.5 * R * R * ((J + 1) * R - J) : 0.5 * (z * z * ((J + 1) * z + J) + 2);
14645
14645
  }
14646
- n.easeInOutBack = M;
14646
+ n.easeInOutBack = P;
14647
14647
  function k(T, A = 0.7) {
14648
14648
  if (T === 0 || T === 1)
14649
14649
  return T;
@@ -14802,7 +14802,7 @@ class ni {
14802
14802
  return JSON.stringify(this.toJSON());
14803
14803
  }
14804
14804
  }
14805
- class P extends ni {
14805
+ class M extends ni {
14806
14806
  constructor(e, t) {
14807
14807
  super(), this.x = e ?? 0, this.y = t ?? 0;
14808
14808
  }
@@ -14813,30 +14813,30 @@ class P extends ni {
14813
14813
  return this.x = Re.round(this.x, e), this.y = Re.round(this.y, e), this;
14814
14814
  }
14815
14815
  add(e, t) {
14816
- const s = P.create(e, t);
14816
+ const s = M.create(e, t);
14817
14817
  return this.x += s.x, this.y += s.y, this;
14818
14818
  }
14819
14819
  update(e, t) {
14820
- const s = P.create(e, t);
14820
+ const s = M.create(e, t);
14821
14821
  return this.x = s.x, this.y = s.y, this;
14822
14822
  }
14823
14823
  translate(e, t) {
14824
- const s = P.create(e, t);
14824
+ const s = M.create(e, t);
14825
14825
  return this.x += s.x, this.y += s.y, this;
14826
14826
  }
14827
14827
  /**
14828
14828
  * Rotate the point by `degree` around `center`.
14829
14829
  */
14830
14830
  rotate(e, t) {
14831
- const s = P.rotate(this, e, t);
14831
+ const s = M.rotate(this, e, t);
14832
14832
  return this.x = s.x, this.y = s.y, this;
14833
14833
  }
14834
14834
  /**
14835
14835
  * Scale point by `sx` and `sy` around the given `origin`. If origin is
14836
14836
  * not specified, the point is scaled around `0, 0`.
14837
14837
  */
14838
- scale(e, t, s = new P()) {
14839
- const i = P.create(s);
14838
+ scale(e, t, s = new M()) {
14839
+ const i = M.create(s);
14840
14840
  return this.x = i.x + e * (this.x - i.x), this.y = i.y + t * (this.y - i.y), this;
14841
14841
  }
14842
14842
  /**
@@ -14845,12 +14845,12 @@ class P extends ni {
14845
14845
  */
14846
14846
  closest(e) {
14847
14847
  if (e.length === 1)
14848
- return P.create(e[0]);
14848
+ return M.create(e[0]);
14849
14849
  let t = null, s = 1 / 0;
14850
14850
  return e.forEach((i) => {
14851
14851
  const r = this.squaredDistance(i);
14852
14852
  r < s && (t = i, s = r);
14853
- }), t ? P.create(t) : null;
14853
+ }), t ? M.create(t) : null;
14854
14854
  }
14855
14855
  /**
14856
14856
  * Returns the distance between the point and another point `p`.
@@ -14865,11 +14865,11 @@ class P extends ni {
14865
14865
  * (saves one `Math.sqrt()` operation).
14866
14866
  */
14867
14867
  squaredDistance(e) {
14868
- const t = P.create(e), s = this.x - t.x, i = this.y - t.y;
14868
+ const t = M.create(e), s = this.x - t.x, i = this.y - t.y;
14869
14869
  return s * s + i * i;
14870
14870
  }
14871
14871
  manhattanDistance(e) {
14872
- const t = P.create(e);
14872
+ const t = M.create(e);
14873
14873
  return Math.abs(t.x - this.x) + Math.abs(t.y - this.y);
14874
14874
  }
14875
14875
  /**
@@ -14884,8 +14884,8 @@ class P extends ni {
14884
14884
  * Returns the angle(in degrees) between vector from this point to `p` and
14885
14885
  * the x-axis.
14886
14886
  */
14887
- theta(e = new P()) {
14888
- const t = P.create(e), s = -(t.y - this.y), i = t.x - this.x;
14887
+ theta(e = new M()) {
14888
+ const t = M.create(e), s = -(t.y - this.y), i = t.x - this.x;
14889
14889
  let r = Math.atan2(s, i);
14890
14890
  return r < 0 && (r = 2 * Math.PI + r), 180 * r / Math.PI;
14891
14891
  }
@@ -14917,13 +14917,13 @@ class P extends ni {
14917
14917
  * point `(0,0)` or if `p` is `(0,0)`.
14918
14918
  */
14919
14919
  vectorAngle(e) {
14920
- return new P(0, 0).angleBetween(this, e);
14920
+ return new M(0, 0).angleBetween(this, e);
14921
14921
  }
14922
14922
  /**
14923
14923
  * Converts rectangular to polar coordinates.
14924
14924
  */
14925
14925
  toPolar(e) {
14926
- return this.update(P.toPolar(this, e)), this;
14926
+ return this.update(M.toPolar(this, e)), this;
14927
14927
  }
14928
14928
  /**
14929
14929
  * Returns the change in angle(in degrees) that is the result of moving the
@@ -14942,7 +14942,7 @@ class P extends ni {
14942
14942
  * The function returns `0` if the previous and current positions of this
14943
14943
  * point are the same (i.e. both `dx` and `dy` are `0`).
14944
14944
  */
14945
- changeInAngle(e, t, s = new P()) {
14945
+ changeInAngle(e, t, s = new M()) {
14946
14946
  return this.clone().translate(-e, -t).theta(s) - this.theta(s);
14947
14947
  }
14948
14948
  /**
@@ -14958,7 +14958,7 @@ class P extends ni {
14958
14958
  * @see https://en.wikipedia.org/wiki/Cardinal_direction
14959
14959
  */
14960
14960
  bearing(e) {
14961
- const t = P.create(e), s = Te.toRad(this.y), i = Te.toRad(t.y), r = this.x, o = t.x, a = Te.toRad(o - r), l = Math.sin(a) * Math.cos(i), c = Math.cos(s) * Math.sin(i) - Math.sin(s) * Math.cos(i) * Math.cos(a), u = Te.toDeg(Math.atan2(l, c)), h = ["NE", "E", "SE", "S", "SW", "W", "NW", "N"];
14961
+ const t = M.create(e), s = Te.toRad(this.y), i = Te.toRad(t.y), r = this.x, o = t.x, a = Te.toRad(o - r), l = Math.sin(a) * Math.cos(i), c = Math.cos(s) * Math.sin(i) - Math.sin(s) * Math.cos(i) * Math.cos(a), u = Te.toDeg(Math.atan2(l, c)), h = ["NE", "E", "SE", "S", "SW", "W", "NW", "N"];
14962
14962
  let d = u - 22.5;
14963
14963
  return d < 0 && (d += 360), d = parseInt(d / 45, 10), h[d];
14964
14964
  }
@@ -14970,7 +14970,7 @@ class P extends ni {
14970
14970
  */
14971
14971
  cross(e, t) {
14972
14972
  if (e != null && t != null) {
14973
- const s = P.create(e), i = P.create(t);
14973
+ const s = M.create(e), i = M.create(t);
14974
14974
  return (i.x - this.x) * (s.y - this.y) - (i.y - this.y) * (s.x - this.x);
14975
14975
  }
14976
14976
  return NaN;
@@ -14979,22 +14979,22 @@ class P extends ni {
14979
14979
  * Returns the dot product of this point with given other point.
14980
14980
  */
14981
14981
  dot(e) {
14982
- const t = P.create(e);
14982
+ const t = M.create(e);
14983
14983
  return this.x * t.x + this.y * t.y;
14984
14984
  }
14985
14985
  diff(e, t) {
14986
14986
  if (typeof e == "number")
14987
- return new P(this.x - e, this.y - t);
14988
- const s = P.create(e);
14989
- return new P(this.x - s.x, this.y - s.y);
14987
+ return new M(this.x - e, this.y - t);
14988
+ const s = M.create(e);
14989
+ return new M(this.x - s.x, this.y - s.y);
14990
14990
  }
14991
14991
  /**
14992
14992
  * Returns an interpolation between me and point `p` for a parametert in
14993
14993
  * the closed interval `[0, 1]`.
14994
14994
  */
14995
14995
  lerp(e, t) {
14996
- const s = P.create(e);
14997
- return new P((1 - t) * this.x + t * s.x, (1 - t) * this.y + t * s.y);
14996
+ const s = M.create(e);
14997
+ return new M((1 - t) * this.x + t * s.x, (1 - t) * this.y + t * s.y);
14998
14998
  }
14999
14999
  /**
15000
15000
  * Normalize the point vector, scale the line segment between `(0, 0)`
@@ -15011,7 +15011,7 @@ class P extends ni {
15011
15011
  * certain `distance`.
15012
15012
  */
15013
15013
  move(e, t) {
15014
- const s = P.create(e), i = Te.toRad(s.theta(this));
15014
+ const s = M.create(e), i = Te.toRad(s.theta(this));
15015
15015
  return this.translate(Math.cos(i) * t, -Math.sin(i) * t);
15016
15016
  }
15017
15017
  /**
@@ -15019,23 +15019,23 @@ class P extends ni {
15019
15019
  * in `ref` point.
15020
15020
  */
15021
15021
  reflection(e) {
15022
- return P.create(e).move(this, this.distance(e));
15022
+ return M.create(e).move(this, this.distance(e));
15023
15023
  }
15024
15024
  snapToGrid(e, t) {
15025
15025
  return this.x = Re.snapToGrid(this.x, e), this.y = Re.snapToGrid(this.y, t ?? e), this;
15026
15026
  }
15027
15027
  equals(e) {
15028
- const t = P.create(e);
15028
+ const t = M.create(e);
15029
15029
  return t != null && t.x === this.x && t.y === this.y;
15030
15030
  }
15031
15031
  clone() {
15032
- return P.clone(this);
15032
+ return M.clone(this);
15033
15033
  }
15034
15034
  /**
15035
15035
  * Returns the point as a simple JSON object. For example: `{ x: 0, y: 0 }`.
15036
15036
  */
15037
15037
  toJSON() {
15038
- return P.toJSON(this);
15038
+ return M.toJSON(this);
15039
15039
  }
15040
15040
  serialize() {
15041
15041
  return `${this.x} ${this.y}`;
@@ -15046,7 +15046,7 @@ class P extends ni {
15046
15046
  return t != null && t instanceof n;
15047
15047
  }
15048
15048
  n.isPoint = e;
15049
- })(P || (P = {}));
15049
+ })(M || (M = {}));
15050
15050
  (function(n) {
15051
15051
  function e(s) {
15052
15052
  return s != null && typeof s == "object" && typeof s.x == "number" && typeof s.y == "number";
@@ -15056,7 +15056,7 @@ class P extends ni {
15056
15056
  return s != null && Array.isArray(s) && s.length === 2 && typeof s[0] == "number" && typeof s[1] == "number";
15057
15057
  }
15058
15058
  n.isPointData = t;
15059
- })(P || (P = {}));
15059
+ })(M || (M = {}));
15060
15060
  (function(n) {
15061
15061
  function e(h, d) {
15062
15062
  return h == null || typeof h == "number" ? new n(h, d) : t(h);
@@ -15114,7 +15114,7 @@ class P extends ni {
15114
15114
  return new n(v + m.x, w + m.y);
15115
15115
  }
15116
15116
  n.rotateEx = u;
15117
- })(P || (P = {}));
15117
+ })(M || (M = {}));
15118
15118
  class K extends ni {
15119
15119
  get left() {
15120
15120
  return this.x;
@@ -15129,37 +15129,37 @@ class K extends ni {
15129
15129
  return this.y + this.height;
15130
15130
  }
15131
15131
  get origin() {
15132
- return new P(this.x, this.y);
15132
+ return new M(this.x, this.y);
15133
15133
  }
15134
15134
  get topLeft() {
15135
- return new P(this.x, this.y);
15135
+ return new M(this.x, this.y);
15136
15136
  }
15137
15137
  get topCenter() {
15138
- return new P(this.x + this.width / 2, this.y);
15138
+ return new M(this.x + this.width / 2, this.y);
15139
15139
  }
15140
15140
  get topRight() {
15141
- return new P(this.x + this.width, this.y);
15141
+ return new M(this.x + this.width, this.y);
15142
15142
  }
15143
15143
  get center() {
15144
- return new P(this.x + this.width / 2, this.y + this.height / 2);
15144
+ return new M(this.x + this.width / 2, this.y + this.height / 2);
15145
15145
  }
15146
15146
  get bottomLeft() {
15147
- return new P(this.x, this.y + this.height);
15147
+ return new M(this.x, this.y + this.height);
15148
15148
  }
15149
15149
  get bottomCenter() {
15150
- return new P(this.x + this.width / 2, this.y + this.height);
15150
+ return new M(this.x + this.width / 2, this.y + this.height);
15151
15151
  }
15152
15152
  get bottomRight() {
15153
- return new P(this.x + this.width, this.y + this.height);
15153
+ return new M(this.x + this.width, this.y + this.height);
15154
15154
  }
15155
15155
  get corner() {
15156
- return new P(this.x + this.width, this.y + this.height);
15156
+ return new M(this.x + this.width, this.y + this.height);
15157
15157
  }
15158
15158
  get rightMiddle() {
15159
- return new P(this.x + this.width, this.y + this.height / 2);
15159
+ return new M(this.x + this.width, this.y + this.height / 2);
15160
15160
  }
15161
15161
  get leftMiddle() {
15162
- return new P(this.x, this.y + this.height / 2);
15162
+ return new M(this.x, this.y + this.height / 2);
15163
15163
  }
15164
15164
  get topLine() {
15165
15165
  return new ee(this.topLeft, this.topRight);
@@ -15259,10 +15259,10 @@ class K extends ni {
15259
15259
  return this.x = s.x, this.y = s.y, this.width = i.x - s.x, this.height = i.y - s.y, this;
15260
15260
  }
15261
15261
  translate(e, t) {
15262
- const s = P.create(e, t);
15262
+ const s = M.create(e, t);
15263
15263
  return this.x += s.x, this.y += s.y, this;
15264
15264
  }
15265
- scale(e, t, s = new P()) {
15265
+ scale(e, t, s = new M()) {
15266
15266
  const i = this.origin.scale(e, t, s);
15267
15267
  return this.x = i.x, this.y = i.y, this.width *= e, this.height *= t, this;
15268
15268
  }
@@ -15270,7 +15270,7 @@ class K extends ni {
15270
15270
  if (e !== 0) {
15271
15271
  const s = Te.toRad(e), i = Math.cos(s), r = Math.sin(s);
15272
15272
  let o = this.getOrigin(), a = this.getTopRight(), l = this.getBottomRight(), c = this.getBottomLeft();
15273
- o = P.rotateEx(o, i, r, t), a = P.rotateEx(a, i, r, t), l = P.rotateEx(l, i, r, t), c = P.rotateEx(c, i, r, t);
15273
+ o = M.rotateEx(o, i, r, t), a = M.rotateEx(a, i, r, t), l = M.rotateEx(l, i, r, t), c = M.rotateEx(c, i, r, t);
15274
15274
  const u = new K(o.x, o.y, 0, 0);
15275
15275
  u.add(a.x, a.y, 0, 0), u.add(l.x, l.y, 0, 0), u.add(c.x, c.y, 0, 0), this.update(u);
15276
15276
  }
@@ -15322,7 +15322,7 @@ class K extends ni {
15322
15322
  return Math.min(s.sx, s.sy);
15323
15323
  }
15324
15324
  containsPoint(e, t) {
15325
- return Re.containsPoint(this, P.create(e, t));
15325
+ return Re.containsPoint(this, M.create(e, t));
15326
15326
  }
15327
15327
  containsRect(e, t, s, i) {
15328
15328
  const r = K.create(e, t, s, i), o = this.x, a = this.y, l = this.width, c = this.height, u = r.x, h = r.y, d = r.width, f = r.height;
@@ -15353,7 +15353,7 @@ class K extends ni {
15353
15353
  * rotation of the rectangle by `angle` degrees around its center.
15354
15354
  */
15355
15355
  intersectsWithLineFromCenterToPoint(e, t) {
15356
- const s = P.clone(e), i = this.center;
15356
+ const s = M.clone(e), i = this.center;
15357
15357
  let r = null;
15358
15358
  t != null && t !== 0 && s.rotate(t, i);
15359
15359
  const o = [this.topLine, this.rightLine, this.bottomLine, this.leftLine], a = new ee(i, s);
@@ -15399,7 +15399,7 @@ class K extends ni {
15399
15399
  * the rectangle which is nearest to the point `p`.
15400
15400
  */
15401
15401
  getNearestSideToPoint(e) {
15402
- const t = P.clone(e), s = t.x - this.x, i = this.x + this.width - t.x, r = t.y - this.y, o = this.y + this.height - t.y;
15402
+ const t = M.clone(e), s = t.x - this.x, i = this.x + this.width - t.x, r = t.y - this.y, o = this.y + this.height - t.y;
15403
15403
  let a = s, l = "left";
15404
15404
  return i < a && (a = i, l = "right"), r < a && (a = r, l = "top"), o < a && (l = "bottom"), l;
15405
15405
  }
@@ -15407,17 +15407,17 @@ class K extends ni {
15407
15407
  * Returns a point on the boundary of the rectangle nearest to the point `p`.
15408
15408
  */
15409
15409
  getNearestPointToPoint(e) {
15410
- const t = P.clone(e);
15410
+ const t = M.clone(e);
15411
15411
  if (this.containsPoint(t)) {
15412
15412
  const s = this.getNearestSideToPoint(t);
15413
15413
  if (s === "left")
15414
- return new P(this.x, t.y);
15414
+ return new M(this.x, t.y);
15415
15415
  if (s === "top")
15416
- return new P(t.x, this.y);
15416
+ return new M(t.x, this.y);
15417
15417
  if (s === "right")
15418
- return new P(this.x + this.width, t.y);
15418
+ return new M(this.x + this.width, t.y);
15419
15419
  if (s === "bottom")
15420
- return new P(t.x, this.y + this.height);
15420
+ return new M(t.x, this.y + this.height);
15421
15421
  }
15422
15422
  return t.adhereToRect(this);
15423
15423
  }
@@ -15470,10 +15470,10 @@ class K extends ni {
15470
15470
  })(K || (K = {}));
15471
15471
  class ee extends ni {
15472
15472
  get center() {
15473
- return new P((this.start.x + this.end.x) / 2, (this.start.y + this.end.y) / 2);
15473
+ return new M((this.start.x + this.end.x) / 2, (this.start.y + this.end.y) / 2);
15474
15474
  }
15475
15475
  constructor(e, t, s, i) {
15476
- super(), typeof e == "number" && typeof t == "number" ? (this.start = new P(e, t), this.end = new P(s, i)) : (this.start = P.create(e), this.end = P.create(t));
15476
+ super(), typeof e == "number" && typeof t == "number" ? (this.start = new M(e, t), this.end = new M(s, i)) : (this.start = M.create(e), this.end = M.create(t));
15477
15477
  }
15478
15478
  getCenter() {
15479
15479
  return this.center;
@@ -15536,7 +15536,7 @@ class ee extends ni {
15536
15536
  * Returns the vector of the line with length equal to length of the line.
15537
15537
  */
15538
15538
  vector() {
15539
- return new P(this.end.x - this.start.x, this.end.y - this.start.y);
15539
+ return new M(this.end.x - this.start.x, this.end.y - this.start.y);
15540
15540
  }
15541
15541
  /**
15542
15542
  * Returns the angle of incline of the line.
@@ -15548,7 +15548,7 @@ class ee extends ni {
15548
15548
  * whether the angle of incline can be computed for a given line.
15549
15549
  */
15550
15550
  angle() {
15551
- const e = new P(this.start.x + 1, this.start.y);
15551
+ const e = new M(this.start.x + 1, this.start.y);
15552
15552
  return this.start.angleBetween(this.end, e);
15553
15553
  }
15554
15554
  /**
@@ -15659,7 +15659,7 @@ class ee extends ni {
15659
15659
  * `null` if no intersection exists.
15660
15660
  */
15661
15661
  intersectsWithLine(e) {
15662
- const t = new P(this.end.x - this.start.x, this.end.y - this.start.y), s = new P(e.end.x - e.start.x, e.end.y - e.start.y), i = t.x * s.y - t.y * s.x, r = new P(e.start.x - this.start.x, e.start.y - this.start.y), o = r.x * s.y - r.y * s.x, a = r.x * t.y - r.y * t.x;
15662
+ const t = new M(this.end.x - this.start.x, this.end.y - this.start.y), s = new M(e.end.x - e.start.x, e.end.y - e.start.y), i = t.x * s.y - t.y * s.x, r = new M(e.start.x - this.start.x, e.start.y - this.start.y), o = r.x * s.y - r.y * s.x, a = r.x * t.y - r.y * t.x;
15663
15663
  if (i === 0 || o * i < 0 || a * i < 0)
15664
15664
  return null;
15665
15665
  if (i > 0) {
@@ -15667,7 +15667,7 @@ class ee extends ni {
15667
15667
  return null;
15668
15668
  } else if (o < i || a < i)
15669
15669
  return null;
15670
- return new P(this.start.x + o * t.x / i, this.start.y + o * t.y / i);
15670
+ return new M(this.start.x + o * t.x / i, this.start.y + o * t.y / i);
15671
15671
  }
15672
15672
  /**
15673
15673
  * Returns `true` if a tangent line can be found for the line.
@@ -15685,15 +15685,15 @@ class ee extends ni {
15685
15685
  * the line.
15686
15686
  */
15687
15687
  pointOffset(e) {
15688
- const t = P.clone(e), s = this.start, i = this.end;
15688
+ const t = M.clone(e), s = this.start, i = this.end;
15689
15689
  return ((i.x - s.x) * (t.y - s.y) - (i.y - s.y) * (t.x - s.x)) / this.length();
15690
15690
  }
15691
15691
  pointSquaredDistance(e, t) {
15692
- const s = P.create(e, t);
15692
+ const s = M.create(e, t);
15693
15693
  return this.closestPoint(s).squaredDistance(s);
15694
15694
  }
15695
15695
  pointDistance(e, t) {
15696
- const s = P.create(e, t);
15696
+ const s = M.create(e, t);
15697
15697
  return this.closestPoint(s).distance(s);
15698
15698
  }
15699
15699
  /**
@@ -15717,7 +15717,7 @@ class ee extends ni {
15717
15717
  return r.translate(i.x - t.x, i.y - t.y), r;
15718
15718
  }
15719
15719
  relativeCcw(e, t) {
15720
- const s = P.create(e, t);
15720
+ const s = M.create(e, t);
15721
15721
  let i = s.x - this.start.x, r = s.y - this.start.y;
15722
15722
  const o = this.end.x - this.start.x, a = this.end.y - this.start.y;
15723
15723
  let l = i * a - r * o;
@@ -15750,7 +15750,7 @@ class ee extends ni {
15750
15750
  })(ee || (ee = {}));
15751
15751
  class Nn extends ni {
15752
15752
  get center() {
15753
- return new P(this.x, this.y);
15753
+ return new M(this.x, this.y);
15754
15754
  }
15755
15755
  constructor(e, t, s, i) {
15756
15756
  super(), this.x = e ?? 0, this.y = t ?? 0, this.a = s ?? 0, this.b = i ?? 0;
@@ -15772,7 +15772,7 @@ class Nn extends ni {
15772
15772
  return this.a += 2 * s, this.b += 2 * i, this;
15773
15773
  }
15774
15774
  normalizedDistance(e, t) {
15775
- const s = P.create(e, t), i = s.x - this.x, r = s.y - this.y, o = this.a, a = this.b;
15775
+ const s = M.create(e, t), i = s.x - this.x, r = s.y - this.y, o = this.a, a = this.b;
15776
15776
  return i * i / (o * o) + r * r / (a * a);
15777
15777
  }
15778
15778
  containsPoint(e, t) {
@@ -15783,7 +15783,7 @@ class Nn extends ni {
15783
15783
  * Returns `null` if no intersection exists.
15784
15784
  */
15785
15785
  intersectsWithLine(e) {
15786
- const t = [], s = this.a, i = this.b, r = e.start, o = e.end, a = e.vector(), l = r.diff(new P(this.x, this.y)), c = new P(a.x / (s * s), a.y / (i * i)), u = new P(l.x / (s * s), l.y / (i * i)), h = a.dot(c), d = a.dot(u), f = l.dot(u) - 1, g = d * d - h * f;
15786
+ const t = [], s = this.a, i = this.b, r = e.start, o = e.end, a = e.vector(), l = r.diff(new M(this.x, this.y)), c = new M(a.x / (s * s), a.y / (i * i)), u = new M(l.x / (s * s), l.y / (i * i)), h = a.dot(c), d = a.dot(u), f = l.dot(u) - 1, g = d * d - h * f;
15787
15787
  if (g < 0)
15788
15788
  return null;
15789
15789
  if (g > 0) {
@@ -15809,7 +15809,7 @@ class Nn extends ni {
15809
15809
  * the rotation of the ellipse by angle degrees around its center.
15810
15810
  */
15811
15811
  intersectsWithLineFromCenterToPoint(e, t = 0) {
15812
- const s = P.clone(e);
15812
+ const s = M.clone(e);
15813
15813
  t && s.rotate(t, this.getCenter());
15814
15814
  const i = s.x - this.x, r = s.y - this.y;
15815
15815
  let o;
@@ -15819,16 +15819,16 @@ class Nn extends ni {
15819
15819
  let h = Math.sqrt(1 / (1 / c + l / u));
15820
15820
  h = i < 0 ? -h : h;
15821
15821
  const d = a * h;
15822
- return o = new P(this.x + h, this.y + d), t ? o.rotate(-t, this.getCenter()) : o;
15822
+ return o = new M(this.x + h, this.y + d), t ? o.rotate(-t, this.getCenter()) : o;
15823
15823
  }
15824
15824
  /**
15825
15825
  * Returns the angle between the x-axis and the tangent from a point. It is
15826
15826
  * valid for points lying on the ellipse boundary only.
15827
15827
  */
15828
15828
  tangentTheta(e) {
15829
- const t = P.clone(e), s = t.x, i = t.y, r = this.a, o = this.b, a = this.bbox().center, l = a.x, c = a.y, u = 30, h = s > a.x + r / 2, d = s < a.x - r / 2;
15829
+ const t = M.clone(e), s = t.x, i = t.y, r = this.a, o = this.b, a = this.bbox().center, l = a.x, c = a.y, u = 30, h = s > a.x + r / 2, d = s < a.x - r / 2;
15830
15830
  let f, g;
15831
- return h || d ? (g = s > a.x ? i - u : i + u, f = r * r / (s - l) - r * r * (i - c) * (g - c) / (o * o * (s - l)) + l) : (f = i > a.y ? s + u : s - u, g = o * o / (i - c) - o * o * (s - l) * (f - l) / (r * r * (i - c)) + c), new P(f, g).theta(t);
15831
+ return h || d ? (g = s > a.x ? i - u : i + u, f = r * r / (s - l) - r * r * (i - c) * (g - c) / (o * o * (s - l)) + l) : (f = i > a.y ? s + u : s - u, g = o * o / (i - c) - o * o * (s - l) * (f - l) / (r * r * (i - c)) + c), new M(f, g).theta(t);
15832
15832
  }
15833
15833
  scale(e, t) {
15834
15834
  return this.a *= e, this.b *= t, this;
@@ -15840,7 +15840,7 @@ class Nn extends ni {
15840
15840
  return this.a = i.a, this.b = i.b, this.x = i.x, this.y = i.y, this;
15841
15841
  }
15842
15842
  translate(e, t) {
15843
- const s = P.create(e, t);
15843
+ const s = M.create(e, t);
15844
15844
  return this.x += s.x, this.y += s.y, this;
15845
15845
  }
15846
15846
  equals(e) {
@@ -15888,7 +15888,7 @@ function MI(n, e, t, s, i) {
15888
15888
  const r = [], o = n[n.length - 1], a = e != null && e > 0, l = e || 0;
15889
15889
  if (s && a) {
15890
15890
  n = n.slice();
15891
- const h = n[0], d = new P(o.x + (h.x - o.x) / 2, o.y + (h.y - o.y) / 2);
15891
+ const h = n[0], d = new M(o.x + (h.x - o.x) / 2, o.y + (h.y - o.y) / 2);
15892
15892
  n.splice(0, 0, d);
15893
15893
  }
15894
15894
  let c = n[0], u = 1;
@@ -15903,7 +15903,7 @@ function MI(n, e, t, s, i) {
15903
15903
  v = n[Tc(u + 2, n.length)], u += 1;
15904
15904
  d = v.x - h.x, f = v.y - h.y, g = Math.max(1, Math.sqrt(d * d + f * f));
15905
15905
  const w = d * Math.min(l, g / 2) / g, S = f * Math.min(l, g / 2) / g, O = h.x + w, x = h.y + S;
15906
- r.push("Q", h.x, h.y, O, x), h = new P(O, x);
15906
+ r.push("Q", h.x, h.y, O, x), h = new M(O, x);
15907
15907
  } else
15908
15908
  r.push("L", h.x, h.y);
15909
15909
  c = h, u += 1;
@@ -15928,7 +15928,7 @@ function cl(n, e, t, s, i = 0, r = 0, o = 0, a, l) {
15928
15928
  let oe = 1;
15929
15929
  r === o && (oe = -1), w = oe * Math.sqrt((y * b - y * m - b * p) / (y * m + b * p));
15930
15930
  }
15931
- const S = w * t * g / s, O = -1 * w * s * f / t, x = h * S - d * O + a / 2, M = d * S + h * O + l / 2;
15931
+ const S = w * t * g / s, O = -1 * w * s * f / t, x = h * S - d * O + a / 2, P = d * S + h * O + l / 2;
15932
15932
  let k = Math.atan2((g - O) / s, (f - S) / t) - Math.atan2(0, 1), D = k >= 0 ? k : 2 * Math.PI + k;
15933
15933
  k = Math.atan2((-g - O) / s, (-f - S) / t) - Math.atan2((g - O) / s, (f - S) / t);
15934
15934
  let L = k >= 0 ? k : 2 * Math.PI + k;
@@ -15937,7 +15937,7 @@ function cl(n, e, t, s, i = 0, r = 0, o = 0, a, l) {
15937
15937
  let de = Math.cos(D), B = Math.sin(D), N = -T * (A * B + J * de), X = -T * (z * B - R * de), ie = 0, te = 0;
15938
15938
  const fe = [];
15939
15939
  for (let oe = 0; oe < H; oe += 1) {
15940
- D += U, de = Math.cos(D), B = Math.sin(D), ie = A * de - J * B + x, te = z * de + R * B + M;
15940
+ D += U, de = Math.cos(D), B = Math.sin(D), ie = A * de - J * B + x, te = z * de + R * B + P;
15941
15941
  const Me = -T * (A * B + J * de), ue = -T * (z * B - R * de), be = oe * 6;
15942
15942
  fe[be] = Number(N + n), fe[be + 1] = Number(X + e), fe[be + 2] = Number(ie - Me + n), fe[be + 3] = Number(te - ue + e), fe[be + 4] = Number(ie + n), fe[be + 5] = Number(te + e), N = ie + Me, X = te + ue;
15943
15943
  }
@@ -15961,18 +15961,18 @@ class st extends ni {
15961
15961
  if (super(), e != null) {
15962
15962
  if (typeof e == "string")
15963
15963
  return st.parse(e);
15964
- this.points = e.map((t) => P.create(t));
15964
+ this.points = e.map((t) => M.create(t));
15965
15965
  } else
15966
15966
  this.points = [];
15967
15967
  }
15968
- scale(e, t, s = new P()) {
15968
+ scale(e, t, s = new M()) {
15969
15969
  return this.points.forEach((i) => i.scale(e, t, s)), this;
15970
15970
  }
15971
15971
  rotate(e, t) {
15972
15972
  return this.points.forEach((s) => s.rotate(e, t)), this;
15973
15973
  }
15974
15974
  translate(e, t) {
15975
- const s = P.create(e, t);
15975
+ const s = M.create(e, t);
15976
15976
  return this.points.forEach((i) => i.translate(s.x, s.y)), this;
15977
15977
  }
15978
15978
  round(e = 0) {
@@ -16015,7 +16015,7 @@ class st extends ni {
16015
16015
  containsPoint(e) {
16016
16016
  if (this.points.length === 0)
16017
16017
  return !1;
16018
- const t = P.clone(e), s = t.x, i = t.y, r = this.points, o = r.length;
16018
+ const t = M.clone(e), s = t.x, i = t.y, r = this.points, o = r.length;
16019
16019
  let a = o - 1, l = 0;
16020
16020
  for (let c = 0; c < o; c += 1) {
16021
16021
  const u = r[a], h = r[c];
@@ -16027,7 +16027,7 @@ class st extends ni {
16027
16027
  if (i <= u.y && i > h.y || i > u.y && i <= h.y) {
16028
16028
  const f = u.x - s > h.x - s ? u.x - s : h.x - s;
16029
16029
  if (f >= 0) {
16030
- const g = new P(s + f, i), p = new ee(e, g);
16030
+ const g = new M(s + f, i), p = new ee(e, g);
16031
16031
  d.intersectsWithLine(p) && (l += 1);
16032
16032
  }
16033
16033
  }
@@ -16218,7 +16218,7 @@ class st extends ni {
16218
16218
  })(st || (st = {}));
16219
16219
  class Ze extends ni {
16220
16220
  constructor(e, t, s, i) {
16221
- super(), this.PRECISION = 3, this.start = P.create(e), this.controlPoint1 = P.create(t), this.controlPoint2 = P.create(s), this.end = P.create(i);
16221
+ super(), this.PRECISION = 3, this.start = M.create(e), this.controlPoint1 = M.create(t), this.controlPoint2 = M.create(s), this.end = M.create(i);
16222
16222
  }
16223
16223
  bbox() {
16224
16224
  const e = this.start, t = this.controlPoint1, s = this.controlPoint2, i = this.end, r = e.x, o = e.y, a = t.x, l = t.y, c = s.x, u = s.y, h = i.x, d = i.y, f = [], g = [[], []];
@@ -16232,10 +16232,10 @@ class Ze extends ni {
16232
16232
  }
16233
16233
  S = m * m - 4 * y * p, O = Math.sqrt(S), !(S < 0) && (v = (-m + O) / (2 * p), v > 0 && v < 1 && f.push(v), w = (-m - O) / (2 * p), w > 0 && w < 1 && f.push(w));
16234
16234
  }
16235
- let x, M, k, D = f.length;
16235
+ let x, P, k, D = f.length;
16236
16236
  const L = D;
16237
16237
  for (; D; )
16238
- D -= 1, b = f[D], k = 1 - b, x = k * k * k * r + 3 * k * k * b * a + 3 * k * b * b * c + b * b * b * h, g[0][D] = x, M = k * k * k * o + 3 * k * k * b * l + 3 * k * b * b * u + b * b * b * d, g[1][D] = M;
16238
+ D -= 1, b = f[D], k = 1 - b, x = k * k * k * r + 3 * k * k * b * a + 3 * k * b * b * c + b * b * b * h, g[0][D] = x, P = k * k * k * o + 3 * k * k * b * l + 3 * k * b * b * u + b * b * b * d, g[1][D] = P;
16239
16239
  f[L] = 0, f[L + 1] = 1, g[0][L] = r, g[1][L] = o, g[0][L + 1] = h, g[1][L + 1] = d, f.length = L + 2, g[0].length = L + 2, g[1].length = L + 2;
16240
16240
  const I = Math.min.apply(null, g[0]), H = Math.min.apply(null, g[1]), U = Math.max.apply(null, g[0]), T = Math.max.apply(null, g[1]);
16241
16241
  return new K(I, H, U - I, T - H);
@@ -16268,8 +16268,8 @@ class Ze extends ni {
16268
16268
  return c <= u ? a : l;
16269
16269
  const S = o.divide(0.5);
16270
16270
  g /= 2;
16271
- const O = S[0].start.distance(e), x = S[0].end.distance(e), M = O + x, k = S[1].start.distance(e), D = S[1].end.distance(e), L = k + D;
16272
- M <= L ? (o = S[0], l -= g, c = O, u = x) : (o = S[1], a += g, c = k, u = D);
16271
+ const O = S[0].start.distance(e), x = S[0].end.distance(e), P = O + x, k = S[1].start.distance(e), D = S[1].end.distance(e), L = k + D;
16272
+ P <= L ? (o = S[0], l -= g, c = O, u = x) : (o = S[1], a += g, c = k, u = D);
16273
16273
  }
16274
16274
  }
16275
16275
  closestPointTangent(e, t = {}) {
@@ -16521,9 +16521,9 @@ class Ze extends ni {
16521
16521
  return o;
16522
16522
  }
16523
16523
  function t(i) {
16524
- const r = i.map((d) => P.clone(d)), o = [], a = [], l = r.length - 1;
16524
+ const r = i.map((d) => M.clone(d)), o = [], a = [], l = r.length - 1;
16525
16525
  if (l === 1)
16526
- return o[0] = new P((2 * r[0].x + r[1].x) / 3, (2 * r[0].y + r[1].y) / 3), a[0] = new P(2 * o[0].x - r[0].x, 2 * o[0].y - r[0].y), [o, a];
16526
+ return o[0] = new M((2 * r[0].x + r[1].x) / 3, (2 * r[0].y + r[1].y) / 3), a[0] = new M(2 * o[0].x - r[0].x, 2 * o[0].y - r[0].y), [o, a];
16527
16527
  const c = [];
16528
16528
  for (let d = 1; d < l - 1; d += 1)
16529
16529
  c[d] = 4 * r[d].x + 2 * r[d + 1].x;
@@ -16534,7 +16534,7 @@ class Ze extends ni {
16534
16534
  c[0] = r[0].y + 2 * r[1].y, c[l - 1] = (8 * r[l - 1].y + r[l].y) / 2;
16535
16535
  const h = e(c);
16536
16536
  for (let d = 0; d < l; d += 1)
16537
- o.push(new P(u[d], h[d])), d < l - 1 ? a.push(new P(2 * r[d + 1].x - u[d + 1], 2 * r[d + 1].y - h[d + 1])) : a.push(new P((r[l].x + u[l - 1]) / 2, (r[l].y + h[l - 1]) / 2));
16537
+ o.push(new M(u[d], h[d])), d < l - 1 ? a.push(new M(2 * r[d + 1].x - u[d + 1], 2 * r[d + 1].y - h[d + 1])) : a.push(new M((r[l].x + u[l - 1]) / 2, (r[l].y + h[l - 1]) / 2));
16538
16538
  return [o, a];
16539
16539
  }
16540
16540
  function s(i) {
@@ -16542,7 +16542,7 @@ class Ze extends ni {
16542
16542
  throw new Error("At least 2 points are required");
16543
16543
  const r = t(i), o = [];
16544
16544
  for (let a = 0, l = r[0].length; a < l; a += 1) {
16545
- const c = new P(r[0][a].x, r[0][a].y), u = new P(r[1][a].x, r[1][a].y);
16545
+ const c = new M(r[0][a].x, r[0][a].y), u = new M(r[1][a].x, r[1][a].y);
16546
16546
  o.push(new n(i[a], c, u, i[a + 1]));
16547
16547
  }
16548
16548
  return o;
@@ -16591,7 +16591,7 @@ class nc extends ni {
16591
16591
  }
16592
16592
  class kt extends nc {
16593
16593
  constructor(e, t) {
16594
- super(), ee.isLine(e) ? this.endPoint = e.end.clone().round(2) : this.endPoint = P.create(e, t).round(2);
16594
+ super(), ee.isLine(e) ? this.endPoint = e.end.clone().round(2) : this.endPoint = M.create(e, t).round(2);
16595
16595
  }
16596
16596
  get type() {
16597
16597
  return "L";
@@ -16675,7 +16675,7 @@ class kt extends nc {
16675
16675
  const s = t.length, i = t[0];
16676
16676
  if (ee.isLine(i))
16677
16677
  return new n(i);
16678
- if (P.isPointLike(i))
16678
+ if (M.isPointLike(i))
16679
16679
  return s === 1 ? new n(i) : t.map((o) => new n(o));
16680
16680
  if (s === 2)
16681
16681
  return new n(+t[0], +t[1]);
@@ -16785,7 +16785,7 @@ class pr extends nc {
16785
16785
  })(pr || (pr = {}));
16786
16786
  class mr extends nc {
16787
16787
  constructor(e, t) {
16788
- super(), this.isVisible = !1, this.isSubpathStart = !0, ee.isLine(e) || Ze.isCurve(e) ? this.endPoint = e.end.clone().round(2) : this.endPoint = P.create(e, t).round(2);
16788
+ super(), this.isVisible = !1, this.isSubpathStart = !0, ee.isLine(e) || Ze.isCurve(e) ? this.endPoint = e.end.clone().round(2) : this.endPoint = M.create(e, t).round(2);
16789
16789
  }
16790
16790
  get start() {
16791
16791
  throw new Error("Illegal access. Moveto segments should not need a start property.");
@@ -16880,7 +16880,7 @@ class mr extends nc {
16880
16880
  return new n(i);
16881
16881
  if (Ze.isCurve(i))
16882
16882
  return new n(i);
16883
- if (P.isPointLike(i)) {
16883
+ if (M.isPointLike(i)) {
16884
16884
  if (s === 1)
16885
16885
  return new n(i);
16886
16886
  const o = [];
@@ -16901,7 +16901,7 @@ class mr extends nc {
16901
16901
  })(mr || (mr = {}));
16902
16902
  class rn extends nc {
16903
16903
  constructor(e, t, s, i, r, o) {
16904
- super(), Ze.isCurve(e) ? (this.controlPoint1 = e.controlPoint1.clone().round(2), this.controlPoint2 = e.controlPoint2.clone().round(2), this.endPoint = e.end.clone().round(2)) : typeof e == "number" ? (this.controlPoint1 = new P(e, t).round(2), this.controlPoint2 = new P(s, i).round(2), this.endPoint = new P(r, o).round(2)) : (this.controlPoint1 = P.create(e).round(2), this.controlPoint2 = P.create(t).round(2), this.endPoint = P.create(s).round(2));
16904
+ super(), Ze.isCurve(e) ? (this.controlPoint1 = e.controlPoint1.clone().round(2), this.controlPoint2 = e.controlPoint2.clone().round(2), this.endPoint = e.end.clone().round(2)) : typeof e == "number" ? (this.controlPoint1 = new M(e, t).round(2), this.controlPoint2 = new M(s, i).round(2), this.endPoint = new M(r, o).round(2)) : (this.controlPoint1 = M.create(e).round(2), this.controlPoint2 = M.create(t).round(2), this.endPoint = M.create(s).round(2));
16905
16905
  }
16906
16906
  get type() {
16907
16907
  return "C";
@@ -16994,7 +16994,7 @@ class rn extends nc {
16994
16994
  const s = t.length, i = t[0];
16995
16995
  if (Ze.isCurve(i))
16996
16996
  return new n(i);
16997
- if (P.isPointLike(i)) {
16997
+ if (M.isPointLike(i)) {
16998
16998
  if (s === 3)
16999
16999
  return new n(t[0], t[1], t[2]);
17000
17000
  const o = [];
@@ -17052,7 +17052,7 @@ function Zb(n, e, t, s, i, r, o, a, l, c) {
17052
17052
  ]);
17053
17053
  }
17054
17054
  b = p - g;
17055
- const v = Math.cos(g), w = Math.sin(g), S = Math.cos(p), O = Math.sin(p), x = Math.tan(b / 4), M = 4 / 3 * (t * x), k = 4 / 3 * (s * x), D = [n, e], L = [n + M * w, e - k * v], I = [a + M * O, l - k * S], H = [a, l];
17055
+ const v = Math.cos(g), w = Math.sin(g), S = Math.cos(p), O = Math.sin(p), x = Math.tan(b / 4), P = 4 / 3 * (t * x), k = 4 / 3 * (s * x), D = [n, e], L = [n + P * w, e - k * v], I = [a + P * O, l - k * S], H = [a, l];
17056
17056
  if (L[0] = 2 * D[0] - L[0], L[1] = 2 * D[1] - L[1], c)
17057
17057
  return [L, I, H].concat(d);
17058
17058
  {
@@ -17247,14 +17247,14 @@ class he extends ni {
17247
17247
  return this.appendSegment(rn.create.call(null, ...e));
17248
17248
  }
17249
17249
  arcTo(e, t, s, i, r, o, a) {
17250
- const l = this.end || new P(), c = typeof o == "number" ? cl(l.x, l.y, e, t, s, i, r, o, a) : cl(l.x, l.y, e, t, s, i, r, o.x, o.y);
17250
+ const l = this.end || new M(), c = typeof o == "number" ? cl(l.x, l.y, e, t, s, i, r, o, a) : cl(l.x, l.y, e, t, s, i, r, o.x, o.y);
17251
17251
  if (c != null)
17252
17252
  for (let u = 0, h = c.length; u < h; u += 6)
17253
17253
  this.curveTo(c[u], c[u + 1], c[u + 2], c[u + 3], c[u + 4], c[u + 5]);
17254
17254
  return this;
17255
17255
  }
17256
17256
  quadTo(e, t, s, i) {
17257
- const r = this.end || new P(), o = ["M", r.x, r.y];
17257
+ const r = this.end || new M(), o = ["M", r.x, r.y];
17258
17258
  if (typeof e == "number")
17259
17259
  o.push("Q", e, t, s, i);
17260
17260
  else {
@@ -17522,9 +17522,9 @@ class he extends ni {
17522
17522
  const i = this.getPrecision(t), r = this.getSubdivisions(t);
17523
17523
  let o = 0, a, l, c, u, h;
17524
17524
  for (let S = 0, O = this.segments.length; S < O; S += 1) {
17525
- const x = s ? S : O - 1 - S, M = this.getSegment(x), k = r[x], D = { precision: i, subdivisions: k }, L = M.length(D);
17526
- if (M.isDifferentiable() && (c = M, u = x, e <= o + L)) {
17527
- l = x, a = M.divideAtLength((s ? 1 : -1) * (e - o), D);
17525
+ const x = s ? S : O - 1 - S, P = this.getSegment(x), k = r[x], D = { precision: i, subdivisions: k }, L = P.length(D);
17526
+ if (P.isDifferentiable() && (c = P, u = x, e <= o + L)) {
17527
+ l = x, a = P.divideAtLength((s ? 1 : -1) * (e - o), D);
17528
17528
  break;
17529
17529
  }
17530
17530
  o += L;
@@ -17541,8 +17541,8 @@ class he extends ni {
17541
17541
  d.insertSegment(p, he.createSegment("M", y)), m += 1, a[1].isDifferentiable() || (d.removeSegment(m - 1), m -= 1);
17542
17542
  const b = m - g - 1;
17543
17543
  for (let S = m, O = d.segments.length; S < O; S += 1) {
17544
- const x = this.getSegment(S - b), M = d.getSegment(S);
17545
- if (M.type === "Z" && !x.subpathStartSegment.end.equals(M.subpathStartSegment.end)) {
17544
+ const x = this.getSegment(S - b), P = d.getSegment(S);
17545
+ if (P.type === "Z" && !x.subpathStartSegment.end.equals(P.subpathStartSegment.end)) {
17546
17546
  const k = he.createSegment("L", x.end);
17547
17547
  d.replaceSegment(S, k);
17548
17548
  }
@@ -18171,7 +18171,7 @@ function sc(n, e, t) {
18171
18171
  const c = i[t];
18172
18172
  o || r > 0 && r < 1 ? a = c[n] + i[e] * r : a = c[n] + r;
18173
18173
  }
18174
- const l = new P();
18174
+ const l = new M();
18175
18175
  return l[n] = a || 0, l;
18176
18176
  };
18177
18177
  }
@@ -18335,7 +18335,7 @@ const p3 = {
18335
18335
  };
18336
18336
  function f0(n, e, t) {
18337
18337
  return (s, { refBBox: i }) => {
18338
- const r = new P();
18338
+ const r = new M();
18339
18339
  let o;
18340
18340
  return s === "middle" ? o = i[e] / 2 : s === t ? o = i[e] : typeof s == "number" && Number.isFinite(s) ? o = s > -1 && s < 1 ? -i[e] * s : -s : ws(s) ? o = i[e] * parseFloat(s) / 100 : o = 0, r[n] = -(i[n] + o), r;
18341
18341
  };
@@ -18711,7 +18711,7 @@ var je;
18711
18711
  n.normalizeMarker = si;
18712
18712
  function e(d, f) {
18713
18713
  const g = dI(d.x, d.y).matrixTransform(f);
18714
- return new P(g.x, g.y);
18714
+ return new M(g.x, g.y);
18715
18715
  }
18716
18716
  n.transformPoint = e;
18717
18717
  function t(d, f) {
@@ -18851,7 +18851,7 @@ var je;
18851
18851
  }
18852
18852
  n.toGeometryShape = l;
18853
18853
  function c(d, f, g, p) {
18854
- const m = P.create(f), y = P.create(g);
18854
+ const m = M.create(f), y = M.create(g);
18855
18855
  p || (p = d instanceof SVGSVGElement ? d : d.ownerSVGElement);
18856
18856
  const b = yu(d);
18857
18857
  d.setAttribute("transform", "");
@@ -18861,8 +18861,8 @@ var je;
18861
18861
  w.setTranslate(-v.x - v.width / 2, -v.y - v.height / 2);
18862
18862
  const S = so(), O = m.angleBetween(y, m.clone().translate(1, 0));
18863
18863
  O && S.setRotate(O, 0, 0);
18864
- const x = so(), M = m.clone().move(y, v.width / 2);
18865
- x.setTranslate(2 * m.x - M.x, 2 * m.y - M.y);
18864
+ const x = so(), P = m.clone().move(y, v.width / 2);
18865
+ x.setTranslate(2 * m.x - P.x, 2 * m.y - P.y);
18866
18866
  const k = fo(d, p), D = so();
18867
18867
  D.setMatrix(x.matrix.multiply(S.matrix.multiply(w.matrix.multiply(k.scale(b.sx, b.sy))))), d.setAttribute("transform", Gr(D.matrix));
18868
18868
  }
@@ -18994,7 +18994,7 @@ var ys;
18994
18994
  }), n.registry.register(n.presets, !0);
18995
18995
  })(ys || (ys = {}));
18996
18996
  function xu(n, e = {}) {
18997
- return new P(Pn(e.x, n.width), Pn(e.y, n.height));
18997
+ return new M(Pn(e.x, n.width), Pn(e.y, n.height));
18998
18998
  }
18999
18999
  function th(n, e, t) {
19000
19000
  return Object.assign({ angle: e, position: n.toJSON() }, t);
@@ -19117,7 +19117,7 @@ function C0(n) {
19117
19117
  }
19118
19118
  const Aj = (n, e, t) => O0(n.diff(e.getCenter()), !1, t), _j = (n, e, t) => O0(n.diff(e.getCenter()), !0, t);
19119
19119
  function O0(n, e, t) {
19120
- const s = t.offset != null ? t.offset : 20, i = new P(0, 0), r = -n.theta(i), o = n.clone().move(i, s).diff(n).round();
19120
+ const s = t.offset != null ? t.offset : 20, i = new M(0, 0), r = -n.theta(i), o = n.clone().move(i, s).diff(n).round();
19121
19121
  let a = ".3em", l, c = r;
19122
19122
  return (r + 90) % 180 === 0 ? (l = e ? "end" : "middle", !e && r === -270 && (a = "0em")) : r > -270 && r < -90 ? (l = "start", c = r - 180) : l = "end", ii({
19123
19123
  position: o.round().toJSON(),
@@ -19455,8 +19455,8 @@ var Ue;
19455
19455
  O && Ee(S, ko(O));
19456
19456
  const x = v.style;
19457
19457
  x && lt(S, x);
19458
- const M = v.className;
19459
- M != null && S.setAttribute("class", Array.isArray(M) ? M.join(" ") : M), v.textContent && (S.textContent = v.textContent);
19458
+ const P = v.className;
19459
+ P != null && S.setAttribute("class", Array.isArray(P) ? P.join(" ") : P), v.textContent && (S.textContent = v.textContent);
19460
19460
  const k = v.selector;
19461
19461
  if (k != null) {
19462
19462
  if (f[k])
@@ -19717,14 +19717,14 @@ class E0 {
19717
19717
  this.view.setAttrs(r, e);
19718
19718
  return;
19719
19719
  }
19720
- const u = r.transform, h = u ? `${u}` : null, d = No(h), f = new P(d.e, d.f);
19720
+ const u = r.transform, h = u ? `${u}` : null, d = No(h), f = new M(d.e, d.f);
19721
19721
  u && (delete r.transform, d.e = 0, d.f = 0);
19722
19722
  let g = !1;
19723
19723
  a != null && Object.keys(a).forEach((m) => {
19724
19724
  const y = a[m], b = this.getDefinition(m);
19725
19725
  if (b != null) {
19726
19726
  const v = ce(b.position, this.view, y, c());
19727
- v != null && (g = !0, f.translate(P.create(v)));
19727
+ v != null && (g = !0, f.translate(M.create(v)));
19728
19728
  }
19729
19729
  }), this.view.setAttrs(r, e);
19730
19730
  let p = !1;
@@ -19742,7 +19742,7 @@ class E0 {
19742
19742
  attrs: i,
19743
19743
  refBBox: y
19744
19744
  });
19745
- S != null && (p = !0, f.translate(P.create(S)));
19745
+ S != null && (p = !0, f.translate(M.create(S)));
19746
19746
  }
19747
19747
  });
19748
19748
  }
@@ -20438,7 +20438,7 @@ function P0(n) {
20438
20438
  return (t, s, i, r) => s.isEdgeElement(i) ? jj(n, t, s, i, r) : Ij(n, t, s, i, r);
20439
20439
  }
20440
20440
  function Ij(n, e, t, s, i) {
20441
- const r = t.cell, o = r.getAngle(), a = t.getUnrotatedBBoxOfElement(s), l = r.getBBox().getCenter(), c = P.create(i).rotate(o, l);
20441
+ const r = t.cell, o = r.getAngle(), a = t.getUnrotatedBBoxOfElement(s), l = r.getBBox().getCenter(), c = M.create(i).rotate(o, l);
20442
20442
  let u = c.x - a.x, h = c.y - a.y;
20443
20443
  return n && (u = wg(u, a.width), h = wg(h, a.height)), e.anchor = {
20444
20444
  name: "topLeft",
@@ -20516,7 +20516,7 @@ class Ks extends ft.ToolItem {
20516
20516
  const e = this.cellView, t = this.options, { offset: s = 0, distance: i = 0, rotate: r } = t;
20517
20517
  let o, a, l;
20518
20518
  const c = Pn(i, 1);
20519
- c >= 0 && c <= 1 ? o = e.getTangentAtRatio(c) : o = e.getTangentAtLength(c), o ? (a = o.start, l = o.vector().vectorAngle(new P(1, 0)) || 0) : (a = e.getConnection().start, l = 0);
20519
+ c >= 0 && c <= 1 ? o = e.getTangentAtRatio(c) : o = e.getTangentAtLength(c), o ? (a = o.start, l = o.vector().vectorAngle(new M(1, 0)) || 0) : (a = e.getConnection().start, l = 0);
20520
20520
  let u = Ot().translate(a.x, a.y).rotate(l);
20521
20521
  return typeof s == "object" ? u = u.translate(s.x || 0, s.y || 0) : u = u.translate(0, s), r || (u = u.rotate(-l)), u;
20522
20522
  }
@@ -20683,8 +20683,8 @@ class Io extends ft.ToolItem {
20683
20683
  getNeighborPoints(e) {
20684
20684
  const t = this.cellView, s = this.vertices, i = e > 0 ? s[e - 1] : t.sourceAnchor, r = e < s.length - 1 ? s[e + 1] : t.targetAnchor;
20685
20685
  return {
20686
- prev: P.create(i),
20687
- next: P.create(r)
20686
+ prev: M.create(i),
20687
+ next: M.create(r)
20688
20688
  };
20689
20689
  }
20690
20690
  getMouseEventArgs(e) {
@@ -20909,9 +20909,9 @@ class jo extends ft.ToolItem {
20909
20909
  let b = !1, v = !1;
20910
20910
  if (g ? l === 0 ? y.containsPoint(g) ? (f.shift(), this.shiftHandleIndexes(-1), b = !0) : (g[a] = d[a], v = !0) : g[a] = d[a] : (g = r.sourceAnchor.toJSON(), g[a] = d[a], y.containsPoint(g) ? b = !0 : (f.unshift(g), this.shiftHandleIndexes(1), v = !0)), typeof o == "function" && m) {
20911
20911
  if (b) {
20912
- const M = c.sourceAnchor.clone();
20913
- M[a] = d[a];
20914
- const k = ce(o, r, M, m, r.sourceMagnet || m.container, "source", r, this);
20912
+ const P = c.sourceAnchor.clone();
20913
+ P[a] = d[a];
20914
+ const k = ce(o, r, P, m, r.sourceMagnet || m.container, "source", r, this);
20915
20915
  this.resetAnchor("source", k);
20916
20916
  }
20917
20917
  v && this.resetAnchor("source", c.sourceAnchorDef);
@@ -20920,14 +20920,14 @@ class jo extends ft.ToolItem {
20920
20920
  let O = !1, x = !1;
20921
20921
  if (p ? l === f.length - 2 ? S.containsPoint(p) ? (f.pop(), O = !0) : (p[a] = d[a], x = !0) : p[a] = d[a] : (p = r.targetAnchor.toJSON(), p[a] = d[a], S.containsPoint(p) ? O = !0 : (f.push(p), x = !0)), typeof o == "function" && w) {
20922
20922
  if (O) {
20923
- const M = c.targetAnchor.clone();
20924
- M[a] = d[a];
20925
- const k = ce(o, r, M, w, r.targetMagnet || w.container, "target", r, this);
20923
+ const P = c.targetAnchor.clone();
20924
+ P[a] = d[a];
20925
+ const k = ce(o, r, P, w, r.targetMagnet || w.container, "target", r, this);
20926
20926
  this.resetAnchor("target", k);
20927
20927
  }
20928
20928
  x && this.resetAnchor("target", c.targetAnchorDef);
20929
20929
  }
20930
- P.equalPoints(f, this.vertices) || this.cellView.cell.setVertices(f, { ui: !0, toolId: this.cid }), this.updateHandle(e, g, p, 0), i.stopPropagation || r.notifyMouseMove(u, h.x, h.y);
20930
+ M.equalPoints(f, this.vertices) || this.cellView.cell.setVertices(f, { ui: !0, toolId: this.cid }), this.updateHandle(e, g, p, 0), i.stopPropagation || r.notifyMouseMove(u, h.x, h.y);
20931
20931
  }
20932
20932
  onHandleChange({ handle: e, e: t }) {
20933
20933
  const s = this.options, i = this.handles, r = this.cellView, o = e.options.index;
@@ -20960,7 +20960,7 @@ class jo extends ft.ToolItem {
20960
20960
  else {
20961
20961
  const u = l.getCenter(), h = o ? "x" : "y";
20962
20962
  u[h] += i || 0;
20963
- const d = l.vector().vectorAngle(new P(1, 0));
20963
+ const d = l.vector().vectorAngle(new M(1, 0));
20964
20964
  e.updatePosition(u.x, u.y, d, this.cellView), e.show(), e.options.axis = h;
20965
20965
  }
20966
20966
  } else
@@ -20989,12 +20989,12 @@ class jo extends ft.ToolItem {
20989
20989
  this.addClass(this.prefixClassName("edge-tool-segment"));
20990
20990
  }
20991
20991
  updatePosition(s, i, r, o) {
20992
- const a = o.getClosestPoint(new P(s, i)) || new P(s, i);
20992
+ const a = o.getClosestPoint(new M(s, i)) || new M(s, i);
20993
20993
  let l = Ot().translate(a.x, a.y);
20994
20994
  if (a.equals({ x: s, y: i }))
20995
20995
  l = l.rotate(r);
20996
20996
  else {
20997
- let u = new ee(s, i, a.x, a.y).vector().vectorAngle(new P(1, 0));
20997
+ let u = new ee(s, i, a.x, a.y).vector().vectorAngle(new M(1, 0));
20998
20998
  u !== 0 && (u += 90), l = l.rotate(u);
20999
20999
  }
21000
21000
  this.setAttrs({
@@ -21128,7 +21128,7 @@ class dl extends ft.ToolItem {
21128
21128
  const c = this.options.snap;
21129
21129
  if (typeof c == "function") {
21130
21130
  const d = ce(c, s, l, i, a, t, s, this);
21131
- l = P.create(d);
21131
+ l = M.create(d);
21132
21132
  }
21133
21133
  if (this.options.restrictArea)
21134
21134
  if (i.isEdgeElement(a)) {
@@ -21245,7 +21245,7 @@ class hl extends ft.ToolItem {
21245
21245
  re(this.container, this.prefixClassName(`edge-tool-${this.type}-arrowhead`)), this.update();
21246
21246
  }
21247
21247
  update() {
21248
- const e = this.ratio, t = this.cellView, s = t.getTangentAtRatio(e), i = s ? s.start : t.getPointAtRatio(e), r = s && s.vector().vectorAngle(new P(1, 0)) || 0;
21248
+ const e = this.ratio, t = this.cellView, s = t.getTangentAtRatio(e), i = s ? s.start : t.getPointAtRatio(e), r = s && s.vector().vectorAngle(new M(1, 0)) || 0;
21249
21249
  if (!i)
21250
21250
  return this;
21251
21251
  const o = Ot().translate(i.x, i.y).rotate(r);
@@ -21356,7 +21356,7 @@ class vr extends ft.ToolItem {
21356
21356
  const { graph: e, cell: t, editor: s } = this;
21357
21357
  if (!s)
21358
21358
  return;
21359
- let i = P.create(), r = 20, o = "", { x: a, y: l } = this.options;
21359
+ let i = M.create(), r = 20, o = "", { x: a, y: l } = this.options;
21360
21360
  const { width: c, height: u } = this.options;
21361
21361
  if (typeof a < "u" && typeof l < "u") {
21362
21362
  const f = t.getBBox();
@@ -21374,17 +21374,17 @@ class vr extends ft.ToolItem {
21374
21374
  const { graph: e, editor: t } = this;
21375
21375
  if (!t)
21376
21376
  return;
21377
- let s = P.create(), i = 20;
21377
+ let s = M.create(), i = 20;
21378
21378
  const { style: r } = t, o = this.event.target, a = o.parentElement;
21379
21379
  if (a && Fn(a, this.prefixClassName("edge-label"))) {
21380
21380
  const u = a.getAttribute("data-index") || "0";
21381
21381
  this.labelIndex = parseInt(u, 10);
21382
21382
  const h = a.getAttribute("transform"), { translation: d } = tc(h);
21383
- s = new P(d.tx, d.ty), i = je.getBBox(o).width;
21383
+ s = new M(d.tx, d.ty), i = je.getBBox(o).width;
21384
21384
  } else {
21385
21385
  if (!this.options.labelAddable)
21386
21386
  return this;
21387
- s = e.clientToLocal(P.create(this.event.clientX, this.event.clientY));
21387
+ s = e.clientToLocal(M.create(this.event.clientX, this.event.clientY));
21388
21388
  const h = this.cellView.path.closestPointLength(s);
21389
21389
  this.distance = h, this.labelIndex = -1;
21390
21390
  }
@@ -21582,7 +21582,7 @@ function rc(n) {
21582
21582
  } else
21583
21583
  o = r.getBBoxOfElement(s).getCenter();
21584
21584
  else
21585
- o = new P();
21585
+ o = new M();
21586
21586
  return n.call(this, e, t, o, i);
21587
21587
  }
21588
21588
  return n.apply(this, arguments);
@@ -21659,7 +21659,7 @@ const l$ = function(n, e, t, s) {
21659
21659
  return n.getPointAtLength(i);
21660
21660
  }, N0 = function(n, e, t, s) {
21661
21661
  const i = n.getClosestPoint(t);
21662
- return i ?? new P();
21662
+ return i ?? new M();
21663
21663
  }, u$ = rc(N0), d$ = function(n, e, t, s) {
21664
21664
  const r = n.getConnection(), o = n.getConnectionSubdivisions(), a = new ee(t.clone().translate(0, 1e6), t.clone().translate(0, -1e6)), l = new ee(t.clone().translate(1e6, 0), t.clone().translate(-1e6, 0)), c = a.intersect(r, {
21665
21665
  segmentSubdivisions: o
@@ -21848,7 +21848,7 @@ const I0 = function(n, e, t) {
21848
21848
  let s = D0(t, e), i = L0(t, e);
21849
21849
  const r = S$(t, e), o = C$(t, e);
21850
21850
  s = s.union(ba(r)), i = i.union(ba(o));
21851
- const a = n.map((u) => P.create(u));
21851
+ const a = n.map((u) => M.create(u));
21852
21852
  a.unshift(r), a.push(o);
21853
21853
  let l = null;
21854
21854
  const c = [];
@@ -21879,8 +21879,8 @@ var sn;
21879
21879
  W: Math.PI
21880
21880
  };
21881
21881
  function s(h, d, f) {
21882
- let g = new P(h.x, d.y);
21883
- return f.containsPoint(g) && (g = new P(d.x, h.y)), g;
21882
+ let g = new M(h.x, d.y);
21883
+ return f.containsPoint(g) && (g = new M(d.x, h.y)), g;
21884
21884
  }
21885
21885
  function i(h, d) {
21886
21886
  return h[d === "W" || d === "E" ? "width" : "height"];
@@ -21891,7 +21891,7 @@ var sn;
21891
21891
  }
21892
21892
  n.getBearing = r;
21893
21893
  function o(h, d, f) {
21894
- const g = new P(h.x, d.y), p = new P(d.x, h.y), m = r(h, g), y = r(h, p), b = f ? e[f] : null, v = m === f || m !== b && (y === b || y !== f) ? g : p;
21894
+ const g = new M(h.x, d.y), p = new M(d.x, h.y), m = r(h, g), y = r(h, p), b = f ? e[f] : null, v = m === f || m !== b && (y === b || y !== f) ? g : p;
21895
21895
  return { points: [v], direction: r(v, d) };
21896
21896
  }
21897
21897
  n.vertexToVertex = o;
@@ -21901,7 +21901,7 @@ var sn;
21901
21901
  }
21902
21902
  n.nodeToVertex = a;
21903
21903
  function l(h, d, f, g) {
21904
- const p = [new P(h.x, d.y), new P(d.x, h.y)], m = p.filter((v) => !f.containsPoint(v)), y = m.filter((v) => r(v, h) !== g);
21904
+ const p = [new M(h.x, d.y), new M(d.x, h.y)], m = p.filter((v) => !f.containsPoint(v)), y = m.filter((v) => r(v, h) !== g);
21905
21905
  let b;
21906
21906
  if (y.length > 0)
21907
21907
  return b = y.filter((v) => r(h, v) === g).pop(), b = b || y[0], {
@@ -21910,7 +21910,7 @@ var sn;
21910
21910
  };
21911
21911
  {
21912
21912
  b = pA(p, m)[0];
21913
- const v = P.create(d).move(b, -i(f, g) / 2);
21913
+ const v = M.create(d).move(b, -i(f, g) / 2);
21914
21914
  return {
21915
21915
  points: [s(v, h, f), v],
21916
21916
  direction: r(v, d)
@@ -21925,7 +21925,7 @@ var sn;
21925
21925
  p = a(h, d, f);
21926
21926
  const y = p.points[0];
21927
21927
  if (g.containsPoint(y)) {
21928
- const b = P.create(h).move(y, -i(f, r(h, y)) / 2), v = P.create(d).move(m, -i(g, r(d, m)) / 2), w = new ee(b, v).getCenter(), S = a(h, w, f), O = o(w, d, S.direction);
21928
+ const b = M.create(h).move(y, -i(f, r(h, y)) / 2), v = M.create(d).move(m, -i(g, r(d, m)) / 2), w = new ee(b, v).getCenter(), S = a(h, w, f), O = o(w, d, S.direction);
21929
21929
  p.points = [S.points[0], O.points[0]], p.direction = O.direction;
21930
21930
  }
21931
21931
  }
@@ -21935,12 +21935,12 @@ var sn;
21935
21935
  function u(h, d, f, g, p) {
21936
21936
  const m = f.union(g).inflate(1), y = m.getCenter(), b = y.distance(d) > y.distance(h), v = b ? d : h, w = b ? h : d;
21937
21937
  let S, O, x;
21938
- p ? (S = P.fromPolar(m.width + m.height, t[p], v), S = m.getNearestPointToPoint(S).move(S, -1)) : S = m.getNearestPointToPoint(v).move(v, 1), O = s(S, w, m);
21939
- let M;
21940
- S.round().equals(O.round()) ? (O = P.fromPolar(m.width + m.height, Te.toRad(S.theta(v)) + Math.PI / 2, w), O = m.getNearestPointToPoint(O).move(w, 1).round(), x = s(S, O, m), M = b ? [O, x, S] : [S, x, O]) : M = b ? [O, S] : [S, O];
21938
+ p ? (S = M.fromPolar(m.width + m.height, t[p], v), S = m.getNearestPointToPoint(S).move(S, -1)) : S = m.getNearestPointToPoint(v).move(v, 1), O = s(S, w, m);
21939
+ let P;
21940
+ S.round().equals(O.round()) ? (O = M.fromPolar(m.width + m.height, Te.toRad(S.theta(v)) + Math.PI / 2, w), O = m.getNearestPointToPoint(O).move(w, 1).round(), x = s(S, O, m), P = b ? [O, x, S] : [S, x, O]) : P = b ? [O, S] : [S, O];
21941
21941
  const k = r(b ? S : O, d);
21942
21942
  return {
21943
- points: M,
21943
+ points: P,
21944
21944
  direction: k
21945
21945
  };
21946
21946
  }
@@ -22014,7 +22014,7 @@ function E$(n) {
22014
22014
  };
22015
22015
  }
22016
22016
  return e.directions.forEach((t) => {
22017
- const s = new P(0, 0), i = new P(t.offsetX, t.offsetY);
22017
+ const s = new M(0, 0), i = new M(t.offsetX, t.offsetY);
22018
22018
  t.angle = Te.normalize(s.theta(i));
22019
22019
  }), e;
22020
22020
  }
@@ -22073,7 +22073,7 @@ class P$ {
22073
22073
  const m = u.getBBox().moveAndExpand(s.paddingBox), y = m.getOrigin().snapToGrid(l), b = m.getCorner().snapToGrid(l);
22074
22074
  for (let v = y.x; v <= b.x; v += l)
22075
22075
  for (let w = y.y; w <= b.y; w += l) {
22076
- const S = new P(v, w).toString();
22076
+ const S = new M(v, w).toString();
22077
22077
  c[S] == null && (c[S] = []), c[S].push(m);
22078
22078
  }
22079
22079
  }
@@ -22105,7 +22105,7 @@ function kc(n, e, t, s, i) {
22105
22105
  }
22106
22106
  function _$(n, e, t, s) {
22107
22107
  const i = s.step, r = e.x - n.x, o = e.y - n.y, a = r / t.x, l = o / t.y, c = a * i, u = l * i;
22108
- return new P(n.x + c, n.y + u);
22108
+ return new M(n.x + c, n.y + u);
22109
22109
  }
22110
22110
  function Cg(n, e) {
22111
22111
  const t = Math.abs(n - e);
@@ -22135,7 +22135,7 @@ function Og(n, e) {
22135
22135
  }
22136
22136
  function N$(n, e) {
22137
22137
  const t = e.source, s = Re.snapToGrid(n.x - t.x, e.x) + t.x, i = Re.snapToGrid(n.y - t.y, e.y) + t.y;
22138
- return new P(s, i);
22138
+ return new M(s, i);
22139
22139
  }
22140
22140
  function io(n, e) {
22141
22141
  return n.round(e);
@@ -22147,7 +22147,7 @@ function mo(n) {
22147
22147
  return n.toString();
22148
22148
  }
22149
22149
  function Nc(n) {
22150
- return new P(n.x === 0 ? 0 : Math.abs(n.x) / n.x, n.y === 0 ? 0 : Math.abs(n.y) / n.y);
22150
+ return new M(n.x === 0 ? 0 : Math.abs(n.x) / n.x, n.y === 0 ? 0 : Math.abs(n.y) / n.y);
22151
22151
  }
22152
22152
  function Eg(n, e) {
22153
22153
  let t = 1 / 0;
@@ -22160,7 +22160,7 @@ function Eg(n, e) {
22160
22160
  function Mg(n, e, t, s, i) {
22161
22161
  const r = i.precision, o = i.directionMap, a = n.diff(e.getCenter()), l = Object.keys(o).reduce((c, u) => {
22162
22162
  if (t.includes(u)) {
22163
- const h = o[u], d = new P(n.x + h.x * (Math.abs(a.x) + e.width), n.y + h.y * (Math.abs(a.y) + e.height)), g = new ee(n, d).intersect(e) || [];
22163
+ const h = o[u], d = new M(n.x + h.x * (Math.abs(a.x) + e.width), n.y + h.y * (Math.abs(a.y) + e.height)), g = new ee(n, d).intersect(e) || [];
22164
22164
  let p, m = null;
22165
22165
  for (let y = 0; y < g.length; y += 1) {
22166
22166
  const b = g[y], v = n.squaredDistance(b);
@@ -22203,12 +22203,12 @@ function D$(n, e, t, s, i) {
22203
22203
  const S = T$(l, i), O = S.length, x = d.reduce((D, L) => {
22204
22204
  const I = mo(L);
22205
22205
  return D.push(I), D;
22206
- }, []), M = P.equalPoints(h, d);
22206
+ }, []), P = M.equalPoints(h, d);
22207
22207
  let k = i.maxLoopCount;
22208
22208
  for (; !f.isEmpty() && k > 0; ) {
22209
22209
  const D = f.pop(), L = g[D], I = p[D], H = m[D], U = L.equals(c), T = I == null;
22210
22210
  let A;
22211
- if (T ? b ? U ? A = null : A = kc(c, L, O, l, i) : A = y : A = kc(I, L, O, l, i), !(T && M) && x.indexOf(D) >= 0)
22211
+ if (T ? b ? U ? A = null : A = kc(c, L, O, l, i) : A = y : A = kc(I, L, O, l, i), !(T && P) && x.indexOf(D) >= 0)
22212
22212
  return i.previousDirectionAngle = A, R$(p, g, L, c, u);
22213
22213
  for (let z = 0; z < O; z += 1) {
22214
22214
  v = S[z];
@@ -22247,7 +22247,7 @@ function L$(n, e = 10) {
22247
22247
  return n;
22248
22248
  }
22249
22249
  const I$ = function(n, e, t) {
22250
- const s = E$(e), i = j0(t, s), r = $0(t, s), o = B0(t, s), a = new P$(s).build(t.graph.model, t.cell), l = n.map((f) => P.create(f)), c = [];
22250
+ const s = E$(e), i = j0(t, s), r = $0(t, s), o = B0(t, s), a = new P$(s).build(t.graph.model, t.cell), l = n.map((f) => M.create(f)), c = [];
22251
22251
  let u = o, h, d;
22252
22252
  for (let f = 0, g = l.length; f <= g; f += 1) {
22253
22253
  let p = null;
@@ -22293,7 +22293,7 @@ const I$ = function(n, e, t) {
22293
22293
  const v = r;
22294
22294
  r = o, o = v;
22295
22295
  }
22296
- const a = s % 90 < 45 ? r : o, l = new ee(n, a), c = 90 * Math.ceil(s / 90), u = P.fromPolar(l.squaredLength(), Te.toRad(c + 135), a), h = new ee(e, u), d = l.intersectsWithLine(h), f = d || e, g = d ? f : n, p = 360 / t.directions.length, m = g.theta(e), y = Te.normalize(m + p / 2), b = p * Math.floor(y / p);
22296
+ const a = s % 90 < 45 ? r : o, l = new ee(n, a), c = 90 * Math.ceil(s / 90), u = M.fromPolar(l.squaredLength(), Te.toRad(c + 135), a), h = new ee(e, u), d = l.intersectsWithLine(h), f = d || e, g = d ? f : n, p = 360 / t.directions.length, m = g.theta(e), y = Te.normalize(m + p / 2), b = p * Math.floor(y / p);
22297
22297
  return t.previousDirectionAngle = b, f && i.push(f.round()), i.push(e), i;
22298
22298
  }
22299
22299
  }, $$ = function(n, e, t) {
@@ -22332,7 +22332,7 @@ function zi(n, e) {
22332
22332
  if (e != null && e !== !1) {
22333
22333
  const t = typeof e == "boolean" ? 0 : e;
22334
22334
  if (t > 0) {
22335
- const s = P.create(n[1]).move(n[2], t), i = P.create(n[1]).move(n[0], t);
22335
+ const s = M.create(n[1]).move(n[2], t), i = M.create(n[1]).move(n[0], t);
22336
22336
  return [s.toJSON(), ...n, i.toJSON()];
22337
22337
  }
22338
22338
  {
@@ -22346,8 +22346,8 @@ const z$ = function(n, e, t) {
22346
22346
  const s = e.width || 50, r = (e.height || 80) / 2, o = e.angle || "auto", a = t.sourceAnchor, l = t.targetAnchor, c = t.sourceBBox, u = t.targetBBox;
22347
22347
  if (a.equals(l)) {
22348
22348
  const h = (y) => {
22349
- const b = Te.toRad(y), v = Math.sin(b), w = Math.cos(b), S = new P(a.x + w * s, a.y + v * s), O = new P(S.x - w * r, S.y - v * r), x = O.clone().rotate(-90, S), M = O.clone().rotate(90, S);
22350
- return [x.toJSON(), S.toJSON(), M.toJSON()];
22349
+ const b = Te.toRad(y), v = Math.sin(b), w = Math.cos(b), S = new M(a.x + w * s, a.y + v * s), O = new M(S.x - w * r, S.y - v * r), x = O.clone().rotate(-90, S), P = O.clone().rotate(90, S);
22350
+ return [x.toJSON(), S.toJSON(), P.toJSON()];
22351
22351
  }, d = (y) => {
22352
22352
  const b = a.clone().move(y, -1), v = new ee(b, y);
22353
22353
  return !c.containsPoint(y) && !c.intersectsWithLine(v);
@@ -22373,8 +22373,8 @@ const z$ = function(n, e, t) {
22373
22373
  if ((c.containsPoint(f) || u.containsPoint(f) || c.intersectsWithLine(y) || c.intersectsWithLine(b) || u.intersectsWithLine(y) || u.intersectsWithLine(b)) && (d = h.parallel(s), f = d.getCenter(), g = d.start.clone().move(d.end, r), p = d.end.clone().move(d.start, r)), e.merge) {
22374
22374
  const v = new ee(a, l), w = new ee(f, v.center).setLength(Number.MAX_SAFE_INTEGER), S = c.intersectsWithLine(w), O = u.intersectsWithLine(w), x = S ? Array.isArray(S) ? S : [S] : [];
22375
22375
  O && (Array.isArray(O) ? x.push(...O) : x.push(O));
22376
- const M = v.center.closest(x);
22377
- M ? (t.sourceAnchor = M.clone(), t.targetAnchor = M.clone()) : (t.sourceAnchor = v.center.clone(), t.targetAnchor = v.center.clone());
22376
+ const P = v.center.closest(x);
22377
+ P ? (t.sourceAnchor = P.clone(), t.targetAnchor = P.clone()) : (t.sourceAnchor = v.center.clone(), t.targetAnchor = v.center.clone());
22378
22378
  }
22379
22379
  return zi([g.toJSON(), f.toJSON(), p.toJSON()], e.merge);
22380
22380
  }
@@ -22398,9 +22398,9 @@ const F$ = function(n, e, t, s = {}) {
22398
22398
  const i = [n, ...t, e], r = new st(i), o = new he(r);
22399
22399
  return s.raw ? o : o.serialize();
22400
22400
  }, U$ = function(n, e, t, s = {}) {
22401
- const i = t.length === 3 ? 0 : 1, r = P.create(t[0 + i]), o = P.create(t[2 + i]), a = P.create(t[1 + i]);
22402
- if (!P.equals(n, e)) {
22403
- const c = new P((n.x + e.x) / 2, (n.y + e.y) / 2), u = c.angleBetween(P.create(n).rotate(90, c), a);
22401
+ const i = t.length === 3 ? 0 : 1, r = M.create(t[0 + i]), o = M.create(t[2 + i]), a = M.create(t[1 + i]);
22402
+ if (!M.equals(n, e)) {
22403
+ const c = new M((n.x + e.x) / 2, (n.y + e.y) / 2), u = c.angleBetween(M.create(n).rotate(90, c), a);
22404
22404
  u > 1 && (r.rotate(180 - u, c), o.rotate(180 - u, c), a.rotate(180 - u, c));
22405
22405
  }
22406
22406
  const l = `
@@ -22415,9 +22415,9 @@ const F$ = function(n, e, t, s = {}) {
22415
22415
  const r = 1 / 3, o = 2 / 3, a = s.radius || 10;
22416
22416
  let l, c;
22417
22417
  for (let u = 0, h = t.length; u < h; u += 1) {
22418
- const d = P.create(t[u]), f = t[u - 1] || n, g = t[u + 1] || e;
22418
+ const d = M.create(t[u]), f = t[u - 1] || n, g = t[u + 1] || e;
22419
22419
  l = c || d.distance(f) / 2, c = d.distance(g) / 2;
22420
- const p = -Math.min(a, l), m = -Math.min(a, c), y = d.clone().move(f, p).round(), b = d.clone().move(g, m).round(), v = new P(r * y.x + o * d.x, o * d.y + r * y.y), w = new P(r * b.x + o * d.x, o * d.y + r * b.y);
22420
+ const p = -Math.min(a, l), m = -Math.min(a, c), y = d.clone().move(f, p).round(), b = d.clone().move(g, m).round(), v = new M(r * y.x + o * d.x, o * d.y + r * y.y), w = new M(r * b.x + o * d.x, o * d.y + r * b.y);
22421
22421
  i.appendSegment(he.createSegment("L", y)), i.appendSegment(he.createSegment("C", v, w, b));
22422
22422
  }
22423
22423
  return i.appendSegment(he.createSegment("L", e)), s.raw ? i : i.serialize();
@@ -22472,8 +22472,8 @@ function q$(n, e, t) {
22472
22472
  return e.reduce((s, i, r) => {
22473
22473
  if (pl.includes(i))
22474
22474
  return s;
22475
- const o = s.pop() || n, a = P.create(i).move(o.start, -t);
22476
- let l = P.create(i).move(o.start, +t);
22475
+ const o = s.pop() || n, a = M.create(i).move(o.start, -t);
22476
+ let l = M.create(i).move(o.start, +t);
22477
22477
  const c = e[r + 1];
22478
22478
  if (c != null) {
22479
22479
  const d = l.distance(c);
@@ -22503,7 +22503,7 @@ function _g(n, e, t, s) {
22503
22503
  l = o.start.theta(o.end);
22504
22504
  const d = e * 0.6;
22505
22505
  let f = e * 1.35;
22506
- c = o.start.diff(o.end), (c.x < 0 || c.x === 0 && c.y < 0) && (f *= -1), u = new P(o.start.x + d, o.start.y + f).rotate(l, o.start), h = new P(o.end.x - d, o.end.y + f).rotate(l, o.end), r = he.createSegment("C", u, h, o.end), i.appendSegment(r);
22506
+ c = o.start.diff(o.end), (c.x < 0 || c.x === 0 && c.y < 0) && (f *= -1), u = new M(o.start.x + d, o.start.y + f).rotate(l, o.start), h = new M(o.end.x - d, o.end.y + f).rotate(l, o.end), r = he.createSegment("C", u, h, o.end), i.appendSegment(r);
22507
22507
  }
22508
22508
  } else {
22509
22509
  const l = n[a + 1];
@@ -22512,7 +22512,7 @@ function _g(n, e, t, s) {
22512
22512
  }), i;
22513
22513
  }
22514
22514
  function J$(n, e, t, s, i) {
22515
- const r = t.distance(s) / 2, o = t.distance(i) / 2, a = -Math.min(n, r), l = -Math.min(n, o), c = t.clone().move(s, a).round(), u = t.clone().move(i, l).round(), h = new P(va * c.x + wa * t.x, wa * t.y + va * c.y), d = new P(va * u.x + wa * t.x, wa * t.y + va * u.y);
22515
+ const r = t.distance(s) / 2, o = t.distance(i) / 2, a = -Math.min(n, r), l = -Math.min(n, o), c = t.clone().move(s, a).round(), u = t.clone().move(i, l).round(), h = new M(va * c.x + wa * t.x, wa * t.y + va * c.y), d = new M(va * u.x + wa * t.x, wa * t.y + va * u.y);
22516
22516
  let f;
22517
22517
  f = he.createSegment("L", c), e.appendSegment(f), f = he.createSegment("C", h, d, u), e.appendSegment(f);
22518
22518
  }
@@ -22527,9 +22527,9 @@ const X$ = function(n, e, t, s = {}) {
22527
22527
  return a.includes(O.name) ? !1 : S > d ? O.name !== "jumpover" : !0;
22528
22528
  }), p = g.map((w) => l.findViewByCell(w)), m = Rc(n, e, t), y = p.map((w) => w == null ? [] : w === this ? m : Rc(w.sourcePoint, w.targetPoint, w.routePoints)), b = [];
22529
22529
  m.forEach((w) => {
22530
- const S = g.reduce((O, x, M) => {
22530
+ const S = g.reduce((O, x, P) => {
22531
22531
  if (x !== h) {
22532
- const k = Y$(w, y[M]);
22532
+ const k = Y$(w, y[P]);
22533
22533
  O.push(...k);
22534
22534
  }
22535
22535
  return O;
@@ -23304,7 +23304,7 @@ class Pe extends We {
23304
23304
  }
23305
23305
  // eslint-disable-next-line
23306
23306
  getConnectionPoint(e, t) {
23307
- return new P();
23307
+ return new M();
23308
23308
  }
23309
23309
  toJSON(e = {}) {
23310
23310
  const t = Object.assign({}, this.store.get()), s = Object.prototype.toString, i = this.isNode() ? "node" : this.isEdge() ? "edge" : "cell";
@@ -23499,7 +23499,7 @@ class eB {
23499
23499
  portSize: f.size,
23500
23500
  portAttrs: f.attrs,
23501
23501
  labelSize: f.label.size,
23502
- labelLayout: this.getPortLabelLayout(f, P.create(h.position), t)
23502
+ labelLayout: this.getPortLabelLayout(f, M.create(h.position), t)
23503
23503
  };
23504
23504
  });
23505
23505
  }
@@ -23644,7 +23644,7 @@ let at = class U0 extends Pe {
23644
23644
  const h = u.clone().rotate(-l, c.getCenter()), d = Math.sqrt(e * e + t * t) / 2;
23645
23645
  let f = a * Math.PI / 2;
23646
23646
  f += Math.atan(a % 2 === 0 ? t / e : e / t), f -= Te.toRad(l);
23647
- const p = P.fromPolar(d, f, h).clone().translate(e / -2, t / -2);
23647
+ const p = M.fromPolar(d, f, h).clone().translate(e / -2, t / -2);
23648
23648
  this.store.set("size", { width: e, height: t }, s), this.setPosition(p.x, p.y, s);
23649
23649
  } else
23650
23650
  this.store.set("size", { width: e, height: t }, s);
@@ -23744,7 +23744,7 @@ let at = class U0 extends Pe {
23744
23744
  const a = this.getPort(o);
23745
23745
  if (!a || !a.group)
23746
23746
  return i;
23747
- const c = this.getPortsPosition(a.group)[o].position, u = P.create(c).translate(s.getOrigin()), h = this.getAngle();
23747
+ const c = this.getPortsPosition(a.group)[o].position, u = M.create(c).translate(s.getOrigin()), h = this.getAngle();
23748
23748
  return h && u.rotate(-h, i), u;
23749
23749
  }
23750
23750
  /**
@@ -24042,7 +24042,7 @@ let et = class H0 extends Pe {
24042
24042
  d.source = { cell: s.id };
24043
24043
  else if (f(s))
24044
24044
  d.source = { cell: s };
24045
- else if (P.isPoint(s))
24045
+ else if (M.isPoint(s))
24046
24046
  d.source = s.toJSON();
24047
24047
  else if (Array.isArray(s))
24048
24048
  d.source = { x: s[0], y: s[1] };
@@ -24057,13 +24057,13 @@ let et = class H0 extends Pe {
24057
24057
  g ? g.cell = p : g = d.source = { cell: p };
24058
24058
  }
24059
24059
  r != null && g && (g.port = r);
24060
- } else o != null && (d.source = P.create(o).toJSON());
24060
+ } else o != null && (d.source = M.create(o).toJSON());
24061
24061
  if (a != null)
24062
24062
  if (Pe.isCell(a))
24063
24063
  d.target = { cell: a.id };
24064
24064
  else if (f(a))
24065
24065
  d.target = { cell: a };
24066
- else if (P.isPoint(a))
24066
+ else if (M.isPoint(a))
24067
24067
  d.target = a.toJSON();
24068
24068
  else if (Array.isArray(a))
24069
24069
  d.target = { x: a[0], y: a[1] };
@@ -24078,7 +24078,7 @@ let et = class H0 extends Pe {
24078
24078
  g ? g.cell = p : g = d.target = { cell: p };
24079
24079
  }
24080
24080
  c != null && g && (g.port = c);
24081
- } else u != null && (d.target = P.create(u).toJSON());
24081
+ } else u != null && (d.target = M.create(u).toJSON());
24082
24082
  return super.preprocess(d, t);
24083
24083
  }
24084
24084
  setup() {
@@ -24137,7 +24137,7 @@ let et = class H0 extends Pe {
24137
24137
  if (Pe.isCell(t))
24138
24138
  return this.store.set(e, ut({}, s, { cell: t.id }), i), this;
24139
24139
  const r = t;
24140
- return P.isPoint(t) || r.x != null && r.y != null ? (this.store.set(e, ut({}, s, { x: r.x, y: r.y }), i), this) : (this.store.set(e, Fe(t), i), this);
24140
+ return M.isPoint(t) || r.x != null && r.y != null ? (this.store.set(e, ut({}, s, { x: r.x, y: r.y }), i), this) : (this.store.set(e, Fe(t), i), this);
24141
24141
  }
24142
24142
  getSourcePoint() {
24143
24143
  return this.getTerminalPoint("source");
@@ -24147,10 +24147,10 @@ let et = class H0 extends Pe {
24147
24147
  }
24148
24148
  getTerminalPoint(e) {
24149
24149
  const t = this[e];
24150
- if (P.isPointLike(t))
24151
- return P.create(t);
24150
+ if (M.isPointLike(t))
24151
+ return M.create(t);
24152
24152
  const s = this.getTerminalCell(e);
24153
- return s ? s.getConnectionPoint(this, e) : new P();
24153
+ return s ? s.getConnectionPoint(this, e) : new M();
24154
24154
  }
24155
24155
  getSourceCell() {
24156
24156
  return this.getTerminalCell("source");
@@ -24277,12 +24277,12 @@ let et = class H0 extends Pe {
24277
24277
  }
24278
24278
  setVertices(e, t = {}) {
24279
24279
  const s = Array.isArray(e) ? e : [e];
24280
- return this.store.set("vertices", s.map((i) => P.toJSON(i)), t), this;
24280
+ return this.store.set("vertices", s.map((i) => M.toJSON(i)), t), this;
24281
24281
  }
24282
24282
  insertVertex(e, t, s = {}) {
24283
24283
  const i = this.getVertices(), r = i.length;
24284
24284
  let o = t != null && Number.isFinite(t) ? t : r;
24285
- return o < 0 && (o = r + o + 1), i.splice(o, 0, P.toJSON(e)), this.setVertices(i, s);
24285
+ return o < 0 && (o = r + o + 1), i.splice(o, 0, M.toJSON(e)), this.setVertices(i, s);
24286
24286
  }
24287
24287
  appendVertex(e, t = {}) {
24288
24288
  return this.insertVertex(e, -1, t);
@@ -24302,7 +24302,7 @@ let et = class H0 extends Pe {
24302
24302
  return s.splice(i, 1), this.setVertices(s, t);
24303
24303
  }
24304
24304
  onVertexsChanged({ previous: e, current: t }) {
24305
- const s = e && t ? t.filter((r) => e.find((o) => P.equals(r, o)) ? null : r) : t ? [...t] : [], i = e && t ? e.filter((r) => t.find((o) => P.equals(r, o)) ? null : r) : e ? [...e] : [];
24305
+ const s = e && t ? t.filter((r) => e.find((o) => M.equals(r, o)) ? null : r) : t ? [...t] : [], i = e && t ? e.filter((r) => t.find((o) => M.equals(r, o)) ? null : r) : e ? [...e] : [];
24306
24306
  s.length > 0 && this.notify("vertexs:added", { added: s, cell: this, edge: this }), i.length > 0 && this.notify("vertexs:removed", { removed: i, cell: this, edge: this });
24307
24307
  }
24308
24308
  // #endregion
@@ -24329,11 +24329,11 @@ let et = class H0 extends Pe {
24329
24329
  * Scales the edge's points (vertices) relative to the given origin.
24330
24330
  */
24331
24331
  scale(e, t, s, i = {}) {
24332
- return this.applyToPoints((r) => P.create(r).scale(e, t, s).toJSON(), i);
24332
+ return this.applyToPoints((r) => M.create(r).scale(e, t, s).toJSON(), i);
24333
24333
  }
24334
24334
  applyToPoints(e, t = {}) {
24335
24335
  const s = {}, i = this.getSource(), r = this.getTarget();
24336
- P.isPointLike(i) && (s.source = e(i)), P.isPointLike(r) && (s.target = e(r));
24336
+ M.isPointLike(i) && (s.source = e(i)), M.isPointLike(r) && (s.target = e(r));
24337
24337
  const o = this.getVertices();
24338
24338
  return o.length > 0 && (s.vertices = o.map(e)), this.store.set(s, t), this;
24339
24339
  }
@@ -24348,7 +24348,7 @@ let et = class H0 extends Pe {
24348
24348
  getPolyline() {
24349
24349
  const e = [
24350
24350
  this.getSourcePoint(),
24351
- ...this.getVertices().map((t) => P.create(t)),
24351
+ ...this.getVertices().map((t) => M.create(t)),
24352
24352
  this.getTargetPoint()
24353
24353
  ];
24354
24354
  return new st(e);
@@ -24488,7 +24488,7 @@ et.defaults = {};
24488
24488
  const o = typeof s == "string" ? n.parseStringLabel(s) : s;
24489
24489
  r.labels.push(o);
24490
24490
  }
24491
- return i && Array.isArray(i) && (r.vertices = i.map((o) => P.create(o).toJSON())), r;
24491
+ return i && Array.isArray(i) && (r.vertices = i.map((o) => M.create(o).toJSON())), r;
24492
24492
  }
24493
24493
  }), n.registry.register(e, n);
24494
24494
  })(et || (et = {}));
@@ -25416,7 +25416,7 @@ class Mr extends Zs {
25416
25416
  }
25417
25417
  (function(n) {
25418
25418
  function e(t) {
25419
- return typeof t == "string" ? t : t.map((s) => Array.isArray(s) ? s.join(",") : P.isPointLike(s) ? `${s.x}, ${s.y}` : "").join(" ");
25419
+ return typeof t == "string" ? t : t.map((s) => Array.isArray(s) ? s.join(",") : M.isPointLike(s) ? `${s.x}, ${s.y}` : "").join(" ");
25420
25420
  }
25421
25421
  n.pointsToString = e, n.config({
25422
25422
  propHooks(t) {
@@ -26093,7 +26093,7 @@ class Rn extends rt {
26093
26093
  targetView: i,
26094
26094
  action: "move"
26095
26095
  });
26096
- const r = P.create(i.cell.getPosition());
26096
+ const r = M.create(i.cell.getPosition());
26097
26097
  i.setEventData(e, {
26098
26098
  moving: !1,
26099
26099
  offset: r.diff(t, s),
@@ -26363,9 +26363,9 @@ class xs extends rt {
26363
26363
  getTerminalAnchor(e) {
26364
26364
  switch (e) {
26365
26365
  case "source":
26366
- return P.create(this.sourceAnchor);
26366
+ return M.create(this.sourceAnchor);
26367
26367
  case "target":
26368
- return P.create(this.targetAnchor);
26368
+ return M.create(this.targetAnchor);
26369
26369
  default:
26370
26370
  throw new Error(`Unknown terminal type '${e}'`);
26371
26371
  }
@@ -26373,9 +26373,9 @@ class xs extends rt {
26373
26373
  getTerminalConnectionPoint(e) {
26374
26374
  switch (e) {
26375
26375
  case "source":
26376
- return P.create(this.sourcePoint);
26376
+ return M.create(this.sourcePoint);
26377
26377
  case "target":
26378
- return P.create(this.targetPoint);
26378
+ return M.create(this.targetPoint);
26379
26379
  default:
26380
26380
  throw new Error(`Unknown terminal type '${e}'`);
26381
26381
  }
@@ -26422,14 +26422,14 @@ class xs extends rt {
26422
26422
  const a = this.cell, l = a[e], c = a[s], u = this.getTerminalView(e), h = this.getTerminalView(s), d = this.getTerminalMagnet(e), f = this.getTerminalMagnet(s);
26423
26423
  if (u) {
26424
26424
  let g;
26425
- t ? g = P.create(t) : h ? g = f : g = P.create(c), r = this.getAnchor(l.anchor, u, d, g, e);
26425
+ t ? g = M.create(t) : h ? g = f : g = M.create(c), r = this.getAnchor(l.anchor, u, d, g, e);
26426
26426
  } else
26427
- r = P.create(l);
26427
+ r = M.create(l);
26428
26428
  if (h) {
26429
- const g = P.create(i || r);
26429
+ const g = M.create(i || r);
26430
26430
  o = this.getAnchor(c.anchor, h, f, g, s);
26431
26431
  } else
26432
- o = P.isPointLike(c) ? P.create(c) : new P();
26432
+ o = M.isPointLike(c) ? M.create(c) : new M();
26433
26433
  return {
26434
26434
  [e]: r,
26435
26435
  [s]: o
@@ -26457,7 +26457,7 @@ class xs extends rt {
26457
26457
  return Sr.registry.onNotFound(u);
26458
26458
  c = ce(h, this, t, s, i, l.args || {}, r);
26459
26459
  }
26460
- return c ? c.round(this.POINT_ROUNDING) : new P();
26460
+ return c ? c.round(this.POINT_ROUNDING) : new M();
26461
26461
  }
26462
26462
  findRoutePoints(e = []) {
26463
26463
  const t = this.graph.options.connecting.router || Bs.presets.normal, s = this.cell.getRouter() || t;
@@ -26470,7 +26470,7 @@ class xs extends rt {
26470
26470
  return Bs.registry.onNotFound(r);
26471
26471
  i = ce(a, this, e, o, this);
26472
26472
  }
26473
- return i == null ? e.map((r) => P.create(r)) : i.map((r) => P.create(r));
26473
+ return i == null ? e.map((r) => M.create(r)) : i.map((r) => M.create(r));
26474
26474
  }
26475
26475
  findConnectionPoints(e, t, s) {
26476
26476
  const i = this.cell, r = this.graph.options.connecting, o = i.getSource(), a = i.getTarget(), l = this.sourceView, c = this.targetView, u = e[0], h = e[e.length - 1];
@@ -26658,7 +26658,7 @@ class xs extends rt {
26658
26658
  typeof s == "number" ? (o = s, a = i) : a = s, a != null && (r.options = a);
26659
26659
  const l = a && a.absoluteOffset, c = !(a && a.absoluteDistance), u = a && a.absoluteDistance && a.reverseDistance, h = this.path, d = {
26660
26660
  segmentSubdivisions: this.getConnectionSubdivisions()
26661
- }, f = new P(e, t), g = h.closestPointT(f, d), p = this.getConnectionLength() || 0;
26661
+ }, f = new M(e, t), g = h.closestPointT(f, d), p = this.getConnectionLength() || 0;
26662
26662
  let m = h.lengthAtT(g, d);
26663
26663
  c && (m = p > 0 ? m / p : 0), u && (m = -1 * (p - m) || 1), r.distance = m;
26664
26664
  let y;
@@ -26695,7 +26695,7 @@ class xs extends rt {
26695
26695
  return Ot().translate(y.x, y.y).rotate(b);
26696
26696
  }
26697
26697
  getVertexIndex(e, t) {
26698
- const i = this.cell.getVertices(), r = this.getClosestPointLength(new P(e, t));
26698
+ const i = this.cell.getVertices(), r = this.getClosestPointLength(new M(e, t));
26699
26699
  let o = 0;
26700
26700
  if (r != null)
26701
26701
  for (const a = i.length; o < a; o += 1) {
@@ -26914,14 +26914,14 @@ class xs extends rt {
26914
26914
  if (typeof f == "function")
26915
26915
  b = v(f);
26916
26916
  else {
26917
- const M = this.graph.model.getConnectedEdges(x, {
26917
+ const P = this.graph.model.getConnectedEdges(x, {
26918
26918
  outgoing: r === "source",
26919
26919
  incoming: r === "target"
26920
26920
  });
26921
- M.length && (f === "withPort" ? M.some((D) => {
26921
+ P.length && (f === "withPort" ? P.some((D) => {
26922
26922
  const L = D.getSource(), I = D.getTarget();
26923
26923
  return L && I && L.cell === S.cell && I.cell === O.cell && L.port != null && L.port === S.port && I.port != null && I.port === O.port;
26924
- }) && (b = !1) : f || M.some((D) => {
26924
+ }) && (b = !1) : f || P.some((D) => {
26925
26925
  const L = D.getSource(), I = D.getTarget();
26926
26926
  return L && I && L.cell === S.cell && I.cell === O.cell;
26927
26927
  }) && (b = !1));
@@ -26990,7 +26990,7 @@ class xs extends rt {
26990
26990
  const u = s.closestView || null, h = s.closestMagnet || null;
26991
26991
  s.closestView = null, s.closestMagnet = null;
26992
26992
  let d, f = Number.MAX_SAFE_INTEGER;
26993
- const g = new P(e, t);
26993
+ const g = new M(e, t);
26994
26994
  c.forEach((w) => {
26995
26995
  if (w.container.getAttribute("magnet") !== "false") {
26996
26996
  if (w.isNodeView())
@@ -27047,7 +27047,7 @@ class xs extends rt {
27047
27047
  notifyConnectionEvent(e, t) {
27048
27048
  const s = e.terminalType, i = e.initialTerminal, r = this.cell[s];
27049
27049
  if (r && !et.equalTerminals(i, r)) {
27050
- const a = this.graph, l = i, c = l.cell ? a.getCellById(l.cell) : null, u = l.port, h = c ? a.findViewByCell(c) : null, d = c || e.isNewEdge ? null : P.create(i).toJSON(), f = r, g = f.cell ? a.getCellById(f.cell) : null, p = f.port, m = g ? a.findViewByCell(g) : null, y = g ? null : P.create(r).toJSON();
27050
+ const a = this.graph, l = i, c = l.cell ? a.getCellById(l.cell) : null, u = l.port, h = c ? a.findViewByCell(c) : null, d = c || e.isNewEdge ? null : M.create(i).toJSON(), f = r, g = f.cell ? a.getCellById(f.cell) : null, p = f.port, m = g ? a.findViewByCell(g) : null, y = g ? null : M.create(r).toJSON();
27051
27051
  this.notify("edge:connected", {
27052
27052
  e: t,
27053
27053
  previousCell: c,
@@ -28061,7 +28061,7 @@ class G0 extends Et {
28061
28061
  let s, i;
28062
28062
  if (e.contentArea) {
28063
28063
  const y = e.contentArea;
28064
- s = this.graph.localToGraph(y), i = P.create(y);
28064
+ s = this.graph.localToGraph(y), i = M.create(y);
28065
28065
  } else
28066
28066
  s = this.getContentBBox(e), i = this.graph.graphToLocal(s);
28067
28067
  if (!s.width || !s.height)
@@ -28922,7 +28922,7 @@ class q0 extends Et {
28922
28922
  */
28923
28923
  getClientOffset() {
28924
28924
  const e = this.view.svg.getBoundingClientRect();
28925
- return new P(e.left, e.top);
28925
+ return new M(e.left, e.top);
28926
28926
  }
28927
28927
  /**
28928
28928
  * Returns coordinates of the graph viewport, relative to the document.
@@ -28934,11 +28934,11 @@ class q0 extends Et {
28934
28934
  return (typeof e == "number" ? this.clientToLocalPoint(e, t) : this.clientToLocalPoint(e.x, e.y)).snapToGrid(this.graph.getGridSize());
28935
28935
  }
28936
28936
  localToGraphPoint(e, t) {
28937
- const s = P.create(e, t);
28937
+ const s = M.create(e, t);
28938
28938
  return je.transformPoint(s, this.graph.matrix());
28939
28939
  }
28940
28940
  localToClientPoint(e, t) {
28941
- const s = P.create(e, t);
28941
+ const s = M.create(e, t);
28942
28942
  return je.transformPoint(s, this.getClientMatrix());
28943
28943
  }
28944
28944
  localToPagePoint(e, t) {
@@ -28956,19 +28956,19 @@ class q0 extends Et {
28956
28956
  return (typeof e == "number" ? this.localToGraphRect(e, t, s, i) : this.localToGraphRect(e)).translate(this.getPageOffset());
28957
28957
  }
28958
28958
  graphToLocalPoint(e, t) {
28959
- const s = P.create(e, t);
28959
+ const s = M.create(e, t);
28960
28960
  return je.transformPoint(s, this.graph.matrix().inverse());
28961
28961
  }
28962
28962
  clientToLocalPoint(e, t) {
28963
- const s = P.create(e, t);
28963
+ const s = M.create(e, t);
28964
28964
  return je.transformPoint(s, this.getClientMatrix().inverse());
28965
28965
  }
28966
28966
  clientToGraphPoint(e, t) {
28967
- const s = P.create(e, t);
28967
+ const s = M.create(e, t);
28968
28968
  return je.transformPoint(s, this.graph.matrix().multiply(this.getClientMatrix().inverse()));
28969
28969
  }
28970
28970
  pageToLocalPoint(e, t) {
28971
- const i = P.create(e, t).diff(this.getPageOffset());
28971
+ const i = M.create(e, t).diff(this.getPageOffset());
28972
28972
  return this.graphToLocalPoint(i);
28973
28973
  }
28974
28974
  graphToLocalRect(e, t, s, i) {
@@ -29356,7 +29356,7 @@ class G extends We {
29356
29356
  return Pe.isCell(e) ? this.findViewByCell(e) : this.findViewByElem(e);
29357
29357
  }
29358
29358
  findViews(e) {
29359
- return K.isRectangleLike(e) ? this.findViewsInArea(e) : P.isPointLike(e) ? this.findViewsFromPoint(e) : [];
29359
+ return K.isRectangleLike(e) ? this.findViewsInArea(e) : M.isPointLike(e) ? this.findViewsFromPoint(e) : [];
29360
29360
  }
29361
29361
  findViewByCell(e) {
29362
29362
  return this.renderer.findViewByCell(e);
@@ -29886,7 +29886,7 @@ class X0 extends ke {
29886
29886
  center: t,
29887
29887
  action: "rotating",
29888
29888
  angle: Te.normalize(this.node.getAngle()),
29889
- start: P.create(i).theta(t)
29889
+ start: M.create(i).theta(t)
29890
29890
  }), this.startAction(e);
29891
29891
  }
29892
29892
  onMouseMove(e) {
@@ -29903,7 +29903,7 @@ class X0 extends ke {
29903
29903
  const c = this.graph.snapToGrid(r, o), u = this.graph.getGridSize(), h = this.node, d = this.options;
29904
29904
  if (s.action === "resizing") {
29905
29905
  s = s, s.resized || (t && (t.addClass("node-resizing"), this.notify("node:resize", e, t)), s.resized = !0);
29906
- const f = h.getBBox(), g = P.create(c).rotate(s.angle, f.getCenter()).diff(f[s.selector]);
29906
+ const f = h.getBBox(), g = M.create(c).rotate(s.angle, f.getCenter()).diff(f[s.selector]);
29907
29907
  let p = s.resizeX ? g.x * s.resizeX : f.width, m = s.resizeY ? g.y * s.resizeY : f.height;
29908
29908
  const y = p, b = m;
29909
29909
  if (p = Re.snapToGrid(p, u), m = Re.snapToGrid(m, u), p = Math.max(p, d.minWidth || u), m = Math.max(m, d.minHeight || u), p = Math.min(p, d.maxWidth || 1 / 0), m = Math.min(m, d.maxHeight || 1 / 0), d.preserveAspectRatio) {
@@ -29935,7 +29935,7 @@ class X0 extends ke {
29935
29935
  }
29936
29936
  } else if (s.action === "rotating") {
29937
29937
  s = s, s.rotated || (t && (t.addClass("node-rotating"), this.notify("node:rotate", e, t)), s.rotated = !0);
29938
- const f = h.getAngle(), g = s.start - P.create(c).theta(s.center);
29938
+ const f = h.getAngle(), g = s.start - M.create(c).theta(s.center);
29939
29939
  let p = s.angle + g;
29940
29940
  d.rotateGrid && (p = Re.snapToGrid(p, d.rotateGrid)), p = Te.normalize(p), f !== p && (h.rotate(p, { absolute: !0 }), this.notify("node:rotating", e, t));
29941
29941
  }
@@ -30330,26 +30330,26 @@ var K0 = { exports: {} };
30330
30330
  i[111 + c] = "f" + c;
30331
30331
  for (c = 0; c <= 9; ++c)
30332
30332
  i[c + 96] = c.toString();
30333
- function u(x, M, k) {
30333
+ function u(x, P, k) {
30334
30334
  if (x.addEventListener) {
30335
- x.addEventListener(M, k, !1);
30335
+ x.addEventListener(P, k, !1);
30336
30336
  return;
30337
30337
  }
30338
- x.attachEvent("on" + M, k);
30338
+ x.attachEvent("on" + P, k);
30339
30339
  }
30340
30340
  function h(x) {
30341
30341
  if (x.type == "keypress") {
30342
- var M = String.fromCharCode(x.which);
30343
- return x.shiftKey || (M = M.toLowerCase()), M;
30342
+ var P = String.fromCharCode(x.which);
30343
+ return x.shiftKey || (P = P.toLowerCase()), P;
30344
30344
  }
30345
30345
  return i[x.which] ? i[x.which] : r[x.which] ? r[x.which] : String.fromCharCode(x.which).toLowerCase();
30346
30346
  }
30347
- function d(x, M) {
30348
- return x.sort().join(",") === M.sort().join(",");
30347
+ function d(x, P) {
30348
+ return x.sort().join(",") === P.sort().join(",");
30349
30349
  }
30350
30350
  function f(x) {
30351
- var M = [];
30352
- return x.shiftKey && M.push("shift"), x.altKey && M.push("alt"), x.ctrlKey && M.push("ctrl"), x.metaKey && M.push("meta"), M;
30351
+ var P = [];
30352
+ return x.shiftKey && P.push("shift"), x.altKey && P.push("alt"), x.ctrlKey && P.push("ctrl"), x.metaKey && P.push("meta"), P;
30353
30353
  }
30354
30354
  function g(x) {
30355
30355
  if (x.preventDefault) {
@@ -30376,30 +30376,30 @@ var K0 = { exports: {} };
30376
30376
  }
30377
30377
  return l;
30378
30378
  }
30379
- function b(x, M, k) {
30380
- return k || (k = y()[x] ? "keydown" : "keypress"), k == "keypress" && M.length && (k = "keydown"), k;
30379
+ function b(x, P, k) {
30380
+ return k || (k = y()[x] ? "keydown" : "keypress"), k == "keypress" && P.length && (k = "keydown"), k;
30381
30381
  }
30382
30382
  function v(x) {
30383
30383
  return x === "+" ? ["+"] : (x = x.replace(/\+{2}/g, "+plus"), x.split("+"));
30384
30384
  }
30385
- function w(x, M) {
30385
+ function w(x, P) {
30386
30386
  var k, D, L, I = [];
30387
30387
  for (k = v(x), L = 0; L < k.length; ++L)
30388
- D = k[L], a[D] && (D = a[D]), M && M != "keypress" && o[D] && (D = o[D], I.push("shift")), m(D) && I.push(D);
30389
- return M = b(D, I, M), {
30388
+ D = k[L], a[D] && (D = a[D]), P && P != "keypress" && o[D] && (D = o[D], I.push("shift")), m(D) && I.push(D);
30389
+ return P = b(D, I, P), {
30390
30390
  key: D,
30391
30391
  modifiers: I,
30392
- action: M
30392
+ action: P
30393
30393
  };
30394
30394
  }
30395
- function S(x, M) {
30396
- return x === null || x === t ? !1 : x === M ? !0 : S(x.parentNode, M);
30395
+ function S(x, P) {
30396
+ return x === null || x === t ? !1 : x === P ? !0 : S(x.parentNode, P);
30397
30397
  }
30398
30398
  function O(x) {
30399
- var M = this;
30400
- if (x = x || t, !(M instanceof O))
30399
+ var P = this;
30400
+ if (x = x || t, !(P instanceof O))
30401
30401
  return new O(x);
30402
- M.target = x, M._callbacks = {}, M._directMap = {};
30402
+ P.target = x, P._callbacks = {}, P._directMap = {};
30403
30403
  var k = {}, D, L = !1, I = !1, H = !1;
30404
30404
  function U(B) {
30405
30405
  B = B || {};
@@ -30415,19 +30415,19 @@ var K0 = { exports: {} };
30415
30415
  }
30416
30416
  function T(B, N, X, ie, te, fe) {
30417
30417
  var oe, Me, ue = [], be = X.type;
30418
- if (!M._callbacks[B])
30418
+ if (!P._callbacks[B])
30419
30419
  return [];
30420
- for (be == "keyup" && m(B) && (N = [B]), oe = 0; oe < M._callbacks[B].length; ++oe)
30421
- if (Me = M._callbacks[B][oe], !(!ie && Me.seq && k[Me.seq] != Me.level) && be == Me.action && (be == "keypress" && !X.metaKey && !X.ctrlKey || d(N, Me.modifiers))) {
30420
+ for (be == "keyup" && m(B) && (N = [B]), oe = 0; oe < P._callbacks[B].length; ++oe)
30421
+ if (Me = P._callbacks[B][oe], !(!ie && Me.seq && k[Me.seq] != Me.level) && be == Me.action && (be == "keypress" && !X.metaKey && !X.ctrlKey || d(N, Me.modifiers))) {
30422
30422
  var Lt = !ie && Me.combo == te, pt = ie && Me.seq == ie && Me.level == fe;
30423
- (Lt || pt) && M._callbacks[B].splice(oe, 1), ue.push(Me);
30423
+ (Lt || pt) && P._callbacks[B].splice(oe, 1), ue.push(Me);
30424
30424
  }
30425
30425
  return ue;
30426
30426
  }
30427
30427
  function A(B, N, X, ie) {
30428
- M.stopCallback(N, N.target || N.srcElement, X, ie) || B(N, X) === !1 && (g(N), p(N));
30428
+ P.stopCallback(N, N.target || N.srcElement, X, ie) || B(N, X) === !1 && (g(N), p(N));
30429
30429
  }
30430
- M._handleKey = function(B, N, X) {
30430
+ P._handleKey = function(B, N, X) {
30431
30431
  var ie = T(B, N, X), te, fe = {}, oe = 0, Me = !1;
30432
30432
  for (te = 0; te < ie.length; ++te)
30433
30433
  ie[te].seq && (oe = Math.max(oe, ie[te].level));
@@ -30451,7 +30451,7 @@ var K0 = { exports: {} };
30451
30451
  L = !1;
30452
30452
  return;
30453
30453
  }
30454
- M.handleKey(N, f(B), B);
30454
+ P.handleKey(N, f(B), B);
30455
30455
  }
30456
30456
  }
30457
30457
  function z() {
@@ -30473,13 +30473,13 @@ var K0 = { exports: {} };
30473
30473
  }
30474
30474
  }
30475
30475
  function de(B, N, X, ie, te) {
30476
- M._directMap[B + ":" + X] = N, B = B.replace(/\s+/g, " ");
30476
+ P._directMap[B + ":" + X] = N, B = B.replace(/\s+/g, " ");
30477
30477
  var fe = B.split(" "), oe;
30478
30478
  if (fe.length > 1) {
30479
30479
  J(B, fe, N, X);
30480
30480
  return;
30481
30481
  }
30482
- oe = w(B, X), M._callbacks[oe.key] = M._callbacks[oe.key] || [], T(oe.key, oe.modifiers, { type: oe.action }, ie, B, te), M._callbacks[oe.key][ie ? "unshift" : "push"]({
30482
+ oe = w(B, X), P._callbacks[oe.key] = P._callbacks[oe.key] || [], T(oe.key, oe.modifiers, { type: oe.action }, ie, B, te), P._callbacks[oe.key][ie ? "unshift" : "push"]({
30483
30483
  callback: N,
30484
30484
  modifiers: oe.modifiers,
30485
30485
  action: oe.action,
@@ -30488,48 +30488,48 @@ var K0 = { exports: {} };
30488
30488
  combo: B
30489
30489
  });
30490
30490
  }
30491
- M._bindMultiple = function(B, N, X) {
30491
+ P._bindMultiple = function(B, N, X) {
30492
30492
  for (var ie = 0; ie < B.length; ++ie)
30493
30493
  de(B[ie], N, X);
30494
30494
  }, u(x, "keypress", R), u(x, "keydown", R), u(x, "keyup", R);
30495
30495
  }
30496
- O.prototype.bind = function(x, M, k) {
30496
+ O.prototype.bind = function(x, P, k) {
30497
30497
  var D = this;
30498
- return x = x instanceof Array ? x : [x], D._bindMultiple.call(D, x, M, k), D;
30499
- }, O.prototype.unbind = function(x, M) {
30498
+ return x = x instanceof Array ? x : [x], D._bindMultiple.call(D, x, P, k), D;
30499
+ }, O.prototype.unbind = function(x, P) {
30500
30500
  var k = this;
30501
30501
  return k.bind.call(k, x, function() {
30502
- }, M);
30503
- }, O.prototype.trigger = function(x, M) {
30502
+ }, P);
30503
+ }, O.prototype.trigger = function(x, P) {
30504
30504
  var k = this;
30505
- return k._directMap[x + ":" + M] && k._directMap[x + ":" + M]({}, x), k;
30505
+ return k._directMap[x + ":" + P] && k._directMap[x + ":" + P]({}, x), k;
30506
30506
  }, O.prototype.reset = function() {
30507
30507
  var x = this;
30508
30508
  return x._callbacks = {}, x._directMap = {}, x;
30509
- }, O.prototype.stopCallback = function(x, M) {
30509
+ }, O.prototype.stopCallback = function(x, P) {
30510
30510
  var k = this;
30511
- if ((" " + M.className + " ").indexOf(" mousetrap ") > -1 || S(M, k.target))
30511
+ if ((" " + P.className + " ").indexOf(" mousetrap ") > -1 || S(P, k.target))
30512
30512
  return !1;
30513
30513
  if ("composedPath" in x && typeof x.composedPath == "function") {
30514
30514
  var D = x.composedPath()[0];
30515
- D !== x.target && (M = D);
30515
+ D !== x.target && (P = D);
30516
30516
  }
30517
- return M.tagName == "INPUT" || M.tagName == "SELECT" || M.tagName == "TEXTAREA" || M.isContentEditable;
30517
+ return P.tagName == "INPUT" || P.tagName == "SELECT" || P.tagName == "TEXTAREA" || P.isContentEditable;
30518
30518
  }, O.prototype.handleKey = function() {
30519
30519
  var x = this;
30520
30520
  return x._handleKey.apply(x, arguments);
30521
30521
  }, O.addKeycodes = function(x) {
30522
- for (var M in x)
30523
- x.hasOwnProperty(M) && (i[M] = x[M]);
30522
+ for (var P in x)
30523
+ x.hasOwnProperty(P) && (i[P] = x[P]);
30524
30524
  l = null;
30525
30525
  }, O.init = function() {
30526
30526
  var x = O(t);
30527
- for (var M in x)
30528
- M.charAt(0) !== "_" && (O[M] = /* @__PURE__ */ function(k) {
30527
+ for (var P in x)
30528
+ P.charAt(0) !== "_" && (O[P] = /* @__PURE__ */ function(k) {
30529
30529
  return function() {
30530
30530
  return x[k].apply(x, arguments);
30531
30531
  };
30532
- }(M));
30532
+ }(P));
30533
30533
  }, O.init(), e.Mousetrap = O, n.exports && (n.exports = O);
30534
30534
  })(typeof window < "u" ? window : null, typeof window < "u" ? document : null);
30535
30535
  })(K0);
@@ -30830,9 +30830,9 @@ class Q0 extends ke {
30830
30830
  x = 0;
30831
30831
  break;
30832
30832
  }
30833
- const M = this.graph.getGridSize();
30834
- let k = Math.max(i.width + O, M), D = Math.max(i.height + x, M);
30835
- t.minWidth && t.minWidth > M && (k = Math.max(k, t.minWidth)), t.minHeight && t.minHeight > M && (D = Math.max(D, t.minHeight)), t.maxWidth && (k = Math.min(k, t.maxWidth)), t.maxHeight && (D = Math.min(D, t.maxHeight)), t.preserveAspectRatio && (x < O ? D = k * (i.height / i.width) : k = D * (i.width / i.height)), (k !== i.width || D !== i.height) && (e.resize(k, D, {
30833
+ const P = this.graph.getGridSize();
30834
+ let k = Math.max(i.width + O, P), D = Math.max(i.height + x, P);
30835
+ t.minWidth && t.minWidth > P && (k = Math.max(k, t.minWidth)), t.minHeight && t.minHeight > P && (D = Math.max(D, t.minHeight)), t.maxWidth && (k = Math.min(k, t.maxWidth)), t.maxHeight && (D = Math.min(D, t.maxHeight)), t.preserveAspectRatio && (x < O ? D = k * (i.height / i.width) : k = D * (i.width / i.height)), (k !== i.width || D !== i.height) && (e.resize(k, D, {
30836
30836
  direction: y,
30837
30837
  relativeDirection: v,
30838
30838
  trueDirection: b,
@@ -30858,14 +30858,14 @@ class Q0 extends ke {
30858
30858
  return;
30859
30859
  const o = r.cell, a = o.getSize(), l = o.getPosition(), c = new K(s - this.offset.x, i - this.offset.y, a.width, a.height), u = o.getAngle(), h = c.getCenter(), d = c.bbox(u), f = d.getTopLeft(), g = d.getBottomRight(), p = this.options.tolerance || 0;
30860
30860
  let m, y, b, v, w, S, O = 0, x = 0;
30861
- if (this.model.getNodes().some((M) => {
30862
- if (this.isIgnored(o, M))
30861
+ if (this.model.getNodes().some((P) => {
30862
+ if (this.isIgnored(o, P))
30863
30863
  return !1;
30864
- const k = M.getBBox().bbox(M.getAngle()), D = k.getCenter(), L = k.getTopLeft(), I = k.getBottomRight();
30864
+ const k = P.getBBox().bbox(P.getAngle()), D = k.getCenter(), L = k.getTopLeft(), I = k.getBottomRight();
30865
30865
  return m == null && (Math.abs(D.x - h.x) < p ? (m = D.x, O = 0.5) : Math.abs(L.x - f.x) < p ? (m = L.x, O = 0) : Math.abs(L.x - g.x) < p ? (m = L.x, O = 1) : Math.abs(I.x - g.x) < p ? (m = I.x, O = 1) : Math.abs(I.x - f.x) < p && (m = I.x), m != null && (y = Math.min(d.y, k.y), b = Math.max(g.y, I.y) - y)), v == null && (Math.abs(D.y - h.y) < p ? (v = D.y, x = 0.5) : Math.abs(L.y - f.y) < p ? v = L.y : Math.abs(L.y - g.y) < p ? (v = L.y, x = 1) : Math.abs(I.y - g.y) < p ? (v = I.y, x = 1) : Math.abs(I.y - f.y) < p && (v = I.y), v != null && (w = Math.min(d.x, k.x), S = Math.max(g.x, I.x) - w)), m != null && v != null;
30866
30866
  }), this.hide(), v != null || m != null) {
30867
30867
  v != null && (d.y = v - x * d.height), m != null && (d.x = m - O * d.width);
30868
- const M = d.getCenter(), k = M.x - c.width / 2, D = M.y - c.height / 2, L = k - l.x, I = D - l.y;
30868
+ const P = d.getCenter(), k = P.x - c.width / 2, D = P.y - c.height / 2, L = k - l.x, I = D - l.y;
30869
30869
  (L !== 0 || I !== 0) && (o.translate(L, I, {
30870
30870
  snapped: !0,
30871
30871
  restrict: this.getRestrictArea(r)
@@ -30888,7 +30888,7 @@ class Q0 extends ke {
30888
30888
  }
30889
30889
  update(e) {
30890
30890
  if (e.horizontalTop) {
30891
- const t = this.graph.localToGraph(new P(e.horizontalLeft, e.horizontalTop)), s = this.graph.localToGraph(new P(e.horizontalLeft + e.horizontalWidth, e.horizontalTop));
30891
+ const t = this.graph.localToGraph(new M(e.horizontalLeft, e.horizontalTop)), s = this.graph.localToGraph(new M(e.horizontalLeft + e.horizontalWidth, e.horizontalTop));
30892
30892
  this.horizontal.setAttributes({
30893
30893
  x1: this.options.sharp ? `${t.x}` : "0",
30894
30894
  y1: `${t.y}`,
@@ -30899,7 +30899,7 @@ class Q0 extends ke {
30899
30899
  } else
30900
30900
  this.horizontal.setAttribute("display", "none");
30901
30901
  if (e.verticalLeft) {
30902
- const t = this.graph.localToGraph(new P(e.verticalLeft, e.verticalTop)), s = this.graph.localToGraph(new P(e.verticalLeft, e.verticalTop + e.verticalHeight));
30902
+ const t = this.graph.localToGraph(new M(e.verticalLeft, e.verticalTop)), s = this.graph.localToGraph(new M(e.verticalLeft, e.verticalTop + e.verticalHeight));
30903
30903
  this.vertical.setAttributes({
30904
30904
  x1: `${t.x}`,
30905
30905
  y1: this.options.sharp ? `${t.y}` : "0",
@@ -32722,7 +32722,7 @@ const Eu = "line", Mu = "pipe", Pu = "arrow", YB = [{
32722
32722
  });
32723
32723
  }, d = V(e.payload.data.content || null), f = V(e.payload.attrs.body.fill || null), g = V(e.payload.attrs.body.stroke || null), p = V(e.payload.attrs.body.strokeWidth || null), m = V(e.payload.attrs.body.rx || null), y = V(e.payload.attrs.body.ry || null), b = V(e.payload.attrs.text.fill || null), v = V(e.payload.attrs.text.fontSize || null), w = V(((z = e.payload.attrs.label) == null ? void 0 : z.textAnchor) || null), S = V(((J = e.payload.attrs.label) == null ? void 0 : J.x) || null), O = V(((de = e.payload.attrs.label) == null ? void 0 : de.y) || null), x = () => {
32724
32724
  e.payload.attr("body/fill", f.value), e.payload.attr("body/stroke", g.value), e.payload.attr("body/strokeWidth", p.value), e.payload.attr("body/rx", m.value), e.payload.attr("body/ry", y.value), e.payload.attr("text/fill", b.value), e.payload.attr("text/fontSize", v.value), e.payload.attr("label/textAnchor", w.value), e.payload.attr("label/x", S.value), e.payload.attr("label/y", O.value);
32725
- }, M = V(null), k = () => {
32725
+ }, P = V(null), k = () => {
32726
32726
  if (e.payload.data.content.length > d.value.length && e.payload.data.content.endsWith("}")) {
32727
32727
  const B = e.payload.data.content.match(Na);
32728
32728
  if (B) {
@@ -32732,8 +32732,8 @@ const Eu = "line", Mu = "pipe", Pu = "arrow", YB = [{
32732
32732
  }
32733
32733
  e.payload.data.content = d.value, e.payload.label = u(d.value);
32734
32734
  }, D = () => {
32735
- if (M.value) {
32736
- const B = M.value.$refs.textarea;
32735
+ if (P.value) {
32736
+ const B = P.value.$refs.textarea;
32737
32737
  B.focus();
32738
32738
  const N = d.value.length;
32739
32739
  B.setSelectionRange(N, N);
@@ -32783,7 +32783,7 @@ const Eu = "line", Mu = "pipe", Pu = "arrow", YB = [{
32783
32783
  default: E(() => [
32784
32784
  C(X, {
32785
32785
  ref_key: "inputRef",
32786
- ref: M,
32786
+ ref: P,
32787
32787
  type: "textarea",
32788
32788
  modelValue: d.value,
32789
32789
  "onUpdate:modelValue": N[0] || (N[0] = (me) => d.value = me),
@@ -33806,7 +33806,7 @@ const Eu = "line", Mu = "pipe", Pu = "arrow", YB = [{
33806
33806
  }], b.value = e.payload.data.fields[0].field) : (b.value = "", e.payload.data.fields = []), console.log("管道配置", e.payload);
33807
33807
  }, O = V([]), x = async () => {
33808
33808
  O.value = await Id(w.deviceCode);
33809
- }, M = () => {
33809
+ }, P = () => {
33810
33810
  e.payload.data.fields = [{
33811
33811
  index: 0,
33812
33812
  deviceName: w.deviceName,
@@ -34003,7 +34003,7 @@ const Eu = "line", Mu = "pipe", Pu = "arrow", YB = [{
34003
34003
  modelValue: b.value,
34004
34004
  "onUpdate:modelValue": N[6] || (N[6] = (ae) => b.value = ae),
34005
34005
  placeholder: "请选择字段",
34006
- onChange: M,
34006
+ onChange: P,
34007
34007
  size: "small",
34008
34008
  filterable: "",
34009
34009
  clearable: "",
@@ -34379,7 +34379,7 @@ const Eu = "line", Mu = "pipe", Pu = "arrow", YB = [{
34379
34379
  }, x = nt({
34380
34380
  show: !1,
34381
34381
  payload: null
34382
- }), M = () => {
34382
+ }), P = () => {
34383
34383
  x.show = !0, x.payload = e.payload.data.condition ?? [];
34384
34384
  }, k = (A) => {
34385
34385
  x.show = !1, x.payload = null, A && (e.payload.data.condition = A), console.log("条件线", e.payload.data);
@@ -34676,7 +34676,7 @@ const Eu = "line", Mu = "pipe", Pu = "arrow", YB = [{
34676
34676
  C(fe, {
34677
34677
  type: "primary",
34678
34678
  size: "small",
34679
- onClick: M,
34679
+ onClick: P,
34680
34680
  style: { "margin-left": "10px" }
34681
34681
  }, {
34682
34682
  default: E(() => R[21] || (R[21] = [
@@ -35078,7 +35078,7 @@ function W6(n, e = {}) {
35078
35078
  const y = Bn.accumulate(p, h);
35079
35079
  t.startBatch("layout"), s.forEach((b, v) => {
35080
35080
  const w = v % i, S = Math.floor(v / i), O = d[w], x = p[S];
35081
- let M = 0, k = 0, D = b.getSize();
35081
+ let P = 0, k = 0, D = b.getSize();
35082
35082
  if (c) {
35083
35083
  let L = O - 2 * o, I = x - 2 * a;
35084
35084
  const H = D.height * (D.width ? L / D.width : 1), U = D.width * (D.height ? I / D.height : 1);
@@ -35087,7 +35087,7 @@ function W6(n, e = {}) {
35087
35087
  height: I
35088
35088
  }, b.setSize(D, e);
35089
35089
  }
35090
- l && (M = (O - D.width) / 2, k = (x - D.height) / 2), b.position(g[w] + o + M, y[S] + a + k, e);
35090
+ l && (P = (O - D.width) / 2, k = (x - D.height) / 2), b.position(g[w] + o + P, y[S] + a + k, e);
35091
35091
  }), t.stopBatch("layout");
35092
35092
  }
35093
35093
  var Bn;
@@ -36040,7 +36040,7 @@ const X6 = { class: "control-box" }, K6 = {
36040
36040
  }
36041
36041
  }
36042
36042
  }
36043
- }, Q6 = { style: { width: "100%", height: "100%" } }, e4 = {
36043
+ }, Q6 = { style: { width: "100%", height: "100%", position: "relative" } }, e4 = {
36044
36044
  key: 0,
36045
36045
  class: "spinner"
36046
36046
  }, cv = /* @__PURE__ */ Object.assign({
@@ -36101,20 +36101,18 @@ const X6 = { class: "control-box" }, K6 = {
36101
36101
  }, i = async () => {
36102
36102
  let S, O, x;
36103
36103
  if (e.id) {
36104
- const { background: M, grid: k, data: D } = await mb(e.id);
36105
- S = M, O = k, x = D;
36104
+ const { background: P, grid: k, data: D } = await mb(e.id);
36105
+ S = P, O = k, x = D;
36106
36106
  } else
36107
36107
  S = e.background, O = {}, x = e.data;
36108
36108
  t.value.drawBackground(S), t.value.drawGrid(O), t.value.fromJSON(x), u();
36109
36109
  }, r = V(null), o = V([]), a = V([]), l = V(!1), c = V(!1), u = () => {
36110
36110
  o.value = t.value.getCells().filter((S) => {
36111
- var O, x, M;
36112
- return ((O = S == null ? void 0 : S.data) == null ? void 0 : O.type) === "text" || ((x = S == null ? void 0 : S.data) == null ? void 0 : x.type) === "pipe" || ((M = S == null ? void 0 : S.data) == null ? void 0 : M.type) === "arrow";
36111
+ var O, x, P;
36112
+ return ((O = S == null ? void 0 : S.data) == null ? void 0 : O.type) === "text" || ((x = S == null ? void 0 : S.data) == null ? void 0 : x.type) === "pipe" || ((P = S == null ? void 0 : S.data) == null ? void 0 : P.type) === "arrow";
36113
36113
  }), o.value.forEach((S) => {
36114
36114
  var O, x;
36115
- (x = (O = S == null ? void 0 : S.data) == null ? void 0 : O.fields) != null && x.length && (S == null || S.data.fields.forEach((M) => {
36116
- M.field && a.value.push({ id: S == null ? void 0 : S.id, fields: S == null ? void 0 : S.data.fields });
36117
- }));
36115
+ (x = (O = S == null ? void 0 : S.data) == null ? void 0 : O.fields) != null && x.length && a.value.push({ id: S == null ? void 0 : S.id, fields: S == null ? void 0 : S.data.fields });
36118
36116
  }), d();
36119
36117
  }, h = V(!0), d = async () => {
36120
36118
  if (c.value = !0, !a.value.length) {
@@ -36132,21 +36130,21 @@ const X6 = { class: "control-box" }, K6 = {
36132
36130
  let x = 5;
36133
36131
  if (!l.value)
36134
36132
  if (S.length > O * x) {
36135
- const M = S.slice(O * x, O * x + x);
36136
- console.log("批次:", O, "数据:", M), O++, g(await pL(M)), await f(S, O);
36133
+ const P = S.slice(O * x, O * x + x);
36134
+ console.log("批次:", O, "数据:", P), O++, g(await pL(P)), await f(S, O);
36137
36135
  } else
36138
36136
  c.value = !1, h.value = !0;
36139
36137
  }, g = (S) => {
36140
36138
  S == null || S.forEach((O) => {
36141
- var M, k, D;
36139
+ var P, k, D;
36142
36140
  const x = t.value.getCellById(O.id);
36143
- x.data.type === "text" && (x.label = p(x.data.content, O.fields)), x.data.type === "pipe" && (console.log("管道详情", x, (M = O.fields) == null ? void 0 : M[0].value), m(x, (k = O.fields) == null ? void 0 : k[0].value)), x.data.type === "arrow" && y(x, (D = O.fields) == null ? void 0 : D[0].value);
36141
+ x.data.type === "text" && (x.label = p(x.data.content, O.fields)), x.data.type === "pipe" && (console.log("管道详情", x, (P = O.fields) == null ? void 0 : P[0].value), m(x, (k = O.fields) == null ? void 0 : k[0].value)), x.data.type === "arrow" && y(x, (D = O.fields) == null ? void 0 : D[0].value);
36144
36142
  });
36145
36143
  }, p = (S, O) => {
36146
36144
  let x = 0;
36147
36145
  return S.replace(Na, () => {
36148
- const M = O.find((k) => k.index === x);
36149
- return x++, M ? M.value : ov;
36146
+ const P = O.find((k) => k.index === x);
36147
+ return x++, P ? P.value : ov;
36150
36148
  });
36151
36149
  }, m = (S, O) => {
36152
36150
  if (!S.data.isCondition)
@@ -36951,7 +36949,7 @@ const X6 = { class: "control-box" }, K6 = {
36951
36949
  data: null
36952
36950
  }), x = () => {
36953
36951
  O.background = s.value.options.background, O.grid = s.value.options.grid, O.data = s.value.toJSON(), O.show = !0;
36954
- }, M = () => {
36952
+ }, P = () => {
36955
36953
  O.show = !1;
36956
36954
  }, k = () => {
36957
36955
  S("getJson", { background: s.value.options.background, grid: s.value.options.grid, data: s.value.toJSON() });
@@ -37134,7 +37132,7 @@ const X6 = { class: "control-box" }, K6 = {
37134
37132
  class: "no-border-drawer",
37135
37133
  modelValue: O.show,
37136
37134
  "onUpdate:modelValue": U[2] || (U[2] = (X) => O.show = X),
37137
- onClose: M,
37135
+ onClose: P,
37138
37136
  title: "预览",
37139
37137
  direction: "ttb",
37140
37138
  size: "100%"