@g1cloud/bpmn-modeler-next 5.0.0-beta.13 → 5.0.0-beta.14

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.
@@ -211,7 +211,7 @@ function _o(e, t) {
211
211
  function Br(e, t) {
212
212
  return !!Pt(e, t);
213
213
  }
214
- function Ln(e, t) {
214
+ function In(e, t) {
215
215
  let n = [];
216
216
  return z(e, function(i, r) {
217
217
  n.push(t(i, r));
@@ -224,7 +224,7 @@ function t1(e) {
224
224
  return fl(e).length;
225
225
  }
226
226
  function la(e) {
227
- return Ln(e, (t) => t);
227
+ return In(e, (t) => t);
228
228
  }
229
229
  function ua(e, t, n = {}) {
230
230
  return t = Rf(t), z(e, function(i) {
@@ -235,7 +235,7 @@ function ua(e, t, n = {}) {
235
235
  function Rb(e, ...t) {
236
236
  e = Rf(e);
237
237
  let n = {};
238
- return z(t, (r) => ua(r, e, n)), Ln(n, function(r, o) {
238
+ return z(t, (r) => ua(r, e, n)), In(n, function(r, o) {
239
239
  return r[0];
240
240
  });
241
241
  }
@@ -256,7 +256,7 @@ function Wi(e, t) {
256
256
  }
257
257
  }
258
258
  n.push(a);
259
- }), Ln(n, (i) => i.v);
259
+ }), In(n, (i) => i.v);
260
260
  }
261
261
  function Zo(e) {
262
262
  return function(t) {
@@ -957,7 +957,7 @@ function Op(e) {
957
957
  function Nb(e) {
958
958
  return !!Ib[e];
959
959
  }
960
- function kn(e, t) {
960
+ function On(e, t) {
961
961
  var n = e.split(/:/), i, r;
962
962
  if (n.length === 1)
963
963
  i = e, r = t;
@@ -1013,7 +1013,7 @@ si.prototype.replaceProperty = function(e, t, n) {
1013
1013
  r.splice(s, 1), this.addProperty(t, n ? void 0 : s, a), o[i.name] = o[i.localName] = t;
1014
1014
  };
1015
1015
  si.prototype.redefineProperty = function(e, t, n) {
1016
- var i = e.ns.prefix, r = t.split("#"), o = kn(r[0], i), a = kn(r[1], o.prefix).name, s = this.propertiesByName[a];
1016
+ var i = e.ns.prefix, r = t.split("#"), o = On(r[0], i), a = On(r[1], o.prefix).name, s = this.propertiesByName[a];
1017
1017
  if (s)
1018
1018
  this.replaceProperty(s, e, n);
1019
1019
  else
@@ -1095,10 +1095,10 @@ $r.prototype.registerType = function(e, t) {
1095
1095
  properties: (e.properties || []).slice(),
1096
1096
  meta: U({}, e.meta || {})
1097
1097
  });
1098
- var n = kn(e.name, t.prefix), i = n.name, r = /* @__PURE__ */ Object.create(null);
1098
+ var n = On(e.name, t.prefix), i = n.name, r = /* @__PURE__ */ Object.create(null);
1099
1099
  z(e.properties, Wn(function(o) {
1100
- var a = kn(o.name, n.prefix), s = a.name;
1101
- Op(o.type) || (o.type = kn(o.type, a.prefix).name), U(o, {
1100
+ var a = On(o.name, n.prefix), s = a.name;
1101
+ Op(o.type) || (o.type = On(o.type, a.prefix).name), U(o, {
1102
1102
  ns: a,
1103
1103
  name: s
1104
1104
  }), r[s] = o;
@@ -1107,14 +1107,14 @@ $r.prototype.registerType = function(e, t) {
1107
1107
  name: i,
1108
1108
  propertiesByName: r
1109
1109
  }), z(e.extends, Wn(function(o) {
1110
- var a = kn(o, n.prefix), s = this.typeMap[a.name];
1110
+ var a = On(o, n.prefix), s = this.typeMap[a.name];
1111
1111
  s.traits = s.traits || [], s.traits.push(i);
1112
1112
  }, this)), this.definePackage(e, t), this.typeMap[i] = e;
1113
1113
  };
1114
1114
  $r.prototype.mapTypes = function(e, t, n) {
1115
1115
  var i = Op(e.name) ? { name: e.name } : this.typeMap[e.name], r = this;
1116
1116
  function o(c, l) {
1117
- var u = kn(c, Op(c) ? "" : e.prefix);
1117
+ var u = On(c, Op(c) ? "" : e.prefix);
1118
1118
  r.mapTypes(u, t, l);
1119
1119
  }
1120
1120
  function a(c) {
@@ -1128,7 +1128,7 @@ $r.prototype.mapTypes = function(e, t, n) {
1128
1128
  z(i.superClass, n ? a : s), t(i, !n), z(i.traits, a);
1129
1129
  };
1130
1130
  $r.prototype.getEffectiveDescriptor = function(e) {
1131
- var t = kn(e), n = new si(t);
1131
+ var t = On(e), n = new si(t);
1132
1132
  this.mapTypes(t, function(r, o) {
1133
1133
  n.addTrait(r, o);
1134
1134
  });
@@ -1219,7 +1219,7 @@ Ei.prototype.getType = function(e) {
1219
1219
  return i || (e = this.registry.getEffectiveDescriptor(n), i = t[n] = this.factory.createType(e)), i;
1220
1220
  };
1221
1221
  Ei.prototype.createAny = function(e, t, n) {
1222
- var i = kn(e), r = {
1222
+ var i = On(e), r = {
1223
1223
  $type: e,
1224
1224
  $instanceOf: function(a) {
1225
1225
  return a === this.$type;
@@ -1612,7 +1612,7 @@ function B1(e, t) {
1612
1612
  return r && i.indexOf(r) === 0 ? e.prefix + ":" + i.slice(r.length) : n;
1613
1613
  }
1614
1614
  function $1(e, t, n) {
1615
- const i = kn(e, t.xmlns), r = `${t[i.prefix] || i.prefix}:${i.localName}`, o = kn(r);
1615
+ const i = On(e, t.xmlns), r = `${t[i.prefix] || i.prefix}:${i.localName}`, o = On(r);
1616
1616
  var a = n.getPackage(o.prefix);
1617
1617
  return B1(o, a);
1618
1618
  }
@@ -1724,7 +1724,7 @@ Hn.prototype.createElement = function(e) {
1724
1724
  element: o,
1725
1725
  property: u.ns.name,
1726
1726
  id: c
1727
- }) : (u ? c = Af(u.type, c) : l === "xmlns" ? l = ":" + l : (s = kn(l, i.ns.prefix), a.getPackage(s.prefix) && r.addWarning({
1727
+ }) : (u ? c = Af(u.type, c) : l === "xmlns" ? l = ":" + l : (s = On(l, i.ns.prefix), a.getPackage(s.prefix) && r.addWarning({
1728
1728
  message: "unknown attribute <" + l + ">",
1729
1729
  element: o,
1730
1730
  property: l,
@@ -1733,7 +1733,7 @@ Hn.prototype.createElement = function(e) {
1733
1733
  }), o;
1734
1734
  };
1735
1735
  Hn.prototype.getPropertyForNode = function(e) {
1736
- var t = e.name, n = kn(t), i = this.type, r = this.model, o = or(i), a = n.name, s = o.propertiesByName[a];
1736
+ var t = e.name, n = On(t), i = this.type, r = this.model, o = or(i), a = n.name, s = o.propertiesByName[a];
1737
1737
  if (s && !s.isAttr) {
1738
1738
  const l = I1(s);
1739
1739
  if (l) {
@@ -1789,7 +1789,7 @@ function Tf(e, t, n) {
1789
1789
  }
1790
1790
  Tf.prototype = Object.create(Hn.prototype);
1791
1791
  Tf.prototype.createElement = function(e) {
1792
- var t = e.name, n = kn(t), i = this.model, r = this.type, o = i.getPackage(n.prefix), a = o && zb(n, o) || t;
1792
+ var t = e.name, n = On(t), i = this.model, r = this.type, o = i.getPackage(n.prefix), a = o && zb(n, o) || t;
1793
1793
  if (!r.hasType(a))
1794
1794
  throw Dr("unexpected element <" + e.originalName + ">");
1795
1795
  return Hn.prototype.createElement.call(this, e);
@@ -1799,7 +1799,7 @@ function Jo(e, t, n) {
1799
1799
  }
1800
1800
  Jo.prototype = Object.create(Nl.prototype);
1801
1801
  Jo.prototype.createElement = function(e) {
1802
- var t = e.name, n = kn(t), i = n.prefix, r = e.ns[i + "$uri"], o = e.attributes;
1802
+ var t = e.name, n = On(t), i = n.prefix, r = e.ns[i + "$uri"], o = e.attributes;
1803
1803
  return this.model.createAny(t, r, o);
1804
1804
  };
1805
1805
  Jo.prototype.handleChild = function(e) {
@@ -2090,7 +2090,7 @@ Bt.prototype.isLocalNs = function(e) {
2090
2090
  };
2091
2091
  Bt.prototype.nsAttributeName = function(e) {
2092
2092
  var t;
2093
- if (Jn(e) ? t = kn(e) : t = e.ns, e.inherited)
2093
+ if (Jn(e) ? t = On(e) : t = e.ns, e.inherited)
2094
2094
  return { localName: t.localName };
2095
2095
  var n = this.logNamespaceUsed(t);
2096
2096
  return this.getNamespaces().logUsed(n), this.isLocalNs(n) ? { localName: t.localName } : U({ localName: t.localName }, n);
@@ -2111,7 +2111,7 @@ Bt.prototype.parseGenericContainments = function(e) {
2111
2111
  });
2112
2112
  };
2113
2113
  Bt.prototype.parseNsAttribute = function(e, t, n) {
2114
- var i = e.$model, r = kn(t), o;
2114
+ var i = e.$model, r = On(t), o;
2115
2115
  if (r.prefix === "xmlns" && (o = { prefix: r.localName, uri: n }), !r.prefix && r.localName === "xmlns" && (o = { uri: n }), !o)
2116
2116
  return {
2117
2117
  name: t,
@@ -6292,7 +6292,7 @@ function ER(e, t) {
6292
6292
  if (Ss(i).some((r) => ar(n, r))) return i.id;
6293
6293
  return null;
6294
6294
  }
6295
- function In(e, t) {
6295
+ function An(e, t) {
6296
6296
  const n = new Set(e.endpoints), i = [];
6297
6297
  for (const r of t)
6298
6298
  if (!n.has(r.id)) {
@@ -6479,7 +6479,7 @@ function ml(e, t) {
6479
6479
  function dt(e, t = {}) {
6480
6480
  const n = [], i = e.shapes.filter((m) => !m.container);
6481
6481
  for (const m of e.edges)
6482
- for (const v of In(m, i))
6482
+ for (const v of An(m, i))
6483
6483
  n.push({ kind: "edge-crosses-shape", edge: m.id, shape: v.id });
6484
6484
  const r = e.shapes.filter((m) => m.container && uR.has(m.type));
6485
6485
  if (r.length) {
@@ -6488,7 +6488,7 @@ function dt(e, t = {}) {
6488
6488
  return !!E && E.x >= v.x && E.y >= v.y && E.x + E.width <= v.x + v.width && E.y + E.height <= v.y + v.height;
6489
6489
  };
6490
6490
  for (const v of e.edges)
6491
- for (const w of In(v, r))
6491
+ for (const w of An(v, r))
6492
6492
  v.endpoints.includes(w.id) || v.endpoints.some((E) => m(w, E)) || n.push({ kind: "edge-crosses-subprocess", edge: v.id, subProcess: w.id });
6493
6493
  }
6494
6494
  for (const m of e.edges) {
@@ -7018,9 +7018,9 @@ function VR(e, t) {
7018
7018
  { x: u, y: c },
7019
7019
  { x: p + f, y: c },
7020
7020
  { x: p + f, y: l }
7021
- ]);
7021
+ ]).filter((f) => An({ ...e, endpoints: [], waypoints: f }, [n]).length === 0);
7022
7022
  }
7023
- const $p = (e, t, n) => [...e.slice(0, t + 1), ...n, ...e.slice(t + 1)], No = (e, t, n) => In({ ...e, waypoints: t }, n).length;
7023
+ const $p = (e, t, n) => [...e.slice(0, t + 1), ...n, ...e.slice(t + 1)], No = (e, t, n) => An({ ...e, waypoints: t }, n).length;
7024
7024
  function ox(e, t, n, i) {
7025
7025
  let r = [...e.waypoints], o = No(e, r, t);
7026
7026
  if (o === 0) return null;
@@ -7038,7 +7038,7 @@ function ox(e, t, n, i) {
7038
7038
  const d = [r[0], r[r.length - 1]];
7039
7039
  if (Tt(d[0].y, d[1].y) && !Tt(d[0].x, d[1].x)) {
7040
7040
  const g = t.filter(
7041
- (x) => !e.endpoints.includes(x.id) && In({ ...e, waypoints: d }, [x]).length > 0
7041
+ (x) => !e.endpoints.includes(x.id) && An({ ...e, waypoints: d }, [x]).length > 0
7042
7042
  ), h = g.length >= 2 ? $m(d[0], d[1], g) : null, C = (h ? h.map((x) => [d[0], ...x, d[1]]) : g.length === 1 ? (Bp(d[0], d[1], g[0]) ?? []).map((x) => [d[0], ...x, d[1]]) : g.length === 0 ? [d] : []).filter((x) => No(e, x, t) === 0 && x.length <= r.length).sort((x, m) => Number(u(m)) - Number(u(x)));
7043
7043
  if (C.length) return C.find((x) => !c(x)) ?? C[0];
7044
7044
  }
@@ -7046,7 +7046,7 @@ function ox(e, t, n, i) {
7046
7046
  }
7047
7047
  for (let p = 0; p + 1 < r.length; p++) {
7048
7048
  const f = r[p], d = r[p + 1], g = t.filter(
7049
- (C) => !e.endpoints.includes(C.id) && In({ ...e, waypoints: [f, d] }, [C]).length > 0
7049
+ (C) => !e.endpoints.includes(C.id) && An({ ...e, waypoints: [f, d] }, [C]).length > 0
7050
7050
  );
7051
7051
  if (g.length < 2) continue;
7052
7052
  const h = $m(f, d, g);
@@ -7059,7 +7059,7 @@ function ox(e, t, n, i) {
7059
7059
  for (let d = 0; d + 1 < r.length && !f; d++) {
7060
7060
  const g = r[d], h = r[d + 1];
7061
7061
  for (const y of t) {
7062
- if (e.endpoints.includes(y.id) || In({ ...e, waypoints: [g, h] }, [y]).length === 0) continue;
7062
+ if (e.endpoints.includes(y.id) || An({ ...e, waypoints: [g, h] }, [y]).length === 0) continue;
7063
7063
  const C = Bp(g, h, y), x = C ? C.map((v) => $p(r, d, v)) : zR(r, y) ?? [];
7064
7064
  if (!x.length) continue;
7065
7065
  const m = [...x].sort((v, w) => Number(u(w)) - Number(u(v)));
@@ -7094,7 +7094,7 @@ function jm(e, t, n) {
7094
7094
  if (!f) continue;
7095
7095
  const d = f.parent, g = d && typeof d.x == "number" && typeof d.width == "number" ? { x: d.x, y: d.y, width: d.width, height: d.height } : void 0, h = ox(p, a, g, o.edges);
7096
7096
  if (!h) {
7097
- In(p, a).some((m) => m.type === "bpmn:TextAnnotation") && s.add(u);
7097
+ An(p, a).some((m) => m.type === "bpmn:TextAnnotation") && s.add(u);
7098
7098
  continue;
7099
7099
  }
7100
7100
  const y = o.edges.filter((m) => m.id !== u), C = xi(p, y);
@@ -7172,13 +7172,13 @@ function YR(e, t) {
7172
7172
  if (!o || !a || o.id === a.id) return null;
7173
7173
  const s = a.y > o.y, c = s ? o : a, l = s ? a : o, u = n.filter((F) => F.id !== o.id && F.id !== a.id && F.y >= c.y + c.height && F.y + F.height <= l.y).sort((F, Q) => F.y - Q.y);
7174
7174
  if (!u.length) return null;
7175
- const p = u[0], f = u[u.length - 1], d = (c.y + c.height + p.y) / 2, g = (f.y + f.height + l.y) / 2, h = s ? d : g, y = s ? g : d, C = e.waypoints[0], x = e.waypoints[e.waypoints.length - 1], m = bi(t), v = t.edges.filter((F) => F.id !== e.id), w = wi(e, v), E = In(e, m).length;
7175
+ const p = u[0], f = u[u.length - 1], d = (c.y + c.height + p.y) / 2, g = (f.y + f.height + l.y) / 2, h = s ? d : g, y = s ? g : d, C = e.waypoints[0], x = e.waypoints[e.waypoints.length - 1], m = bi(t), v = t.edges.filter((F) => F.id !== e.id), w = wi(e, v), E = An(e, m).length;
7176
7176
  if (w === 0 && E === 0 || E === 0 && e.waypoints.length === 2) return null;
7177
7177
  const T = Math.min(...u.map((F) => F.x)), O = Math.max(...u.map((F) => F.x + F.width)), B = (C.x + x.x) / 2, P = (F) => F.filter((Q, he) => he === 0 || !(Tt(Q.x, F[he - 1].x) && Tt(Q.y, F[he - 1].y)));
7178
7178
  let D;
7179
7179
  for (let F = T; F <= O; F += qR) {
7180
7180
  const Q = P([C, { x: C.x, y: h }, { x: F, y: h }, { x: F, y }, { x: x.x, y }, x]), he = { ...e, waypoints: Q };
7181
- if (In(he, m).length > 0) continue;
7181
+ if (An(he, m).length > 0) continue;
7182
7182
  const Ce = wi(he, v), ke = Math.abs(F - B);
7183
7183
  (!D || Ce < D.cross || Ce === D.cross && ke < D.detour) && (D = { pts: Q, cross: Ce, detour: ke });
7184
7184
  }
@@ -7320,7 +7320,7 @@ function QR(e, t) {
7320
7320
  let w;
7321
7321
  for (const { pts: E, cost: T } of jl(e, i)) {
7322
7322
  const O = { ...e, waypoints: E };
7323
- if (In(O, r).length > 0) continue;
7323
+ if (An(O, r).length > 0) continue;
7324
7324
  const B = xi(O, o);
7325
7325
  if (B > a) continue;
7326
7326
  const P = x(E);
@@ -7348,12 +7348,12 @@ function eC(e, t, n) {
7348
7348
  for (const a of o) {
7349
7349
  const s = Ze(i), c = s.edges.find((y) => y.id === a);
7350
7350
  if (!c || c.waypoints.length < 4) continue;
7351
- const l = bi(s), u = s.edges.filter((y) => y.id !== a), p = In(c, l).length, f = xi(c, u), d = wi(c, u), g = n.has(a) ? new Set(dt(s).map(pt)) : null, h = $f(c, s.shapes);
7351
+ const l = bi(s), u = s.edges.filter((y) => y.id !== a), p = An(c, l).length, f = xi(c, u), d = wi(c, u), g = n.has(a) ? new Set(dt(s).map(pt)) : null, h = $f(c, s.shapes);
7352
7352
  h.length === 2 && JR(c, s) && h.reverse();
7353
7353
  for (const y of h) {
7354
7354
  if (y.length >= c.waypoints.length) continue;
7355
7355
  const C = { ...c, waypoints: y };
7356
- if (In(C, l).length > p || xi(C, u) > f || wi(C, u) > d) continue;
7356
+ if (An(C, l).length > p || xi(C, u) > f || wi(C, u) > d) continue;
7357
7357
  if (g) {
7358
7358
  const m = new Set(
7359
7359
  dt({ ...s, edges: s.edges.map((E) => E.id === a ? C : E) }).map(pt)
@@ -7443,7 +7443,7 @@ function iC(e, t) {
7443
7443
  ];
7444
7444
  for (const { pts: d, cost: g } of f) {
7445
7445
  const h = { ...e, waypoints: d };
7446
- if (In(h, i).length > 0) continue;
7446
+ if (An(h, i).length > 0) continue;
7447
7447
  const y = xi(h, r), C = wi(h, r), x = o - y + (p - u(d));
7448
7448
  if (y >= o || C - a > x) continue;
7449
7449
  const m = c(d);
@@ -7470,7 +7470,7 @@ function rC(e, t) {
7470
7470
  ];
7471
7471
  for (const { pts: f, cost: d } of p) {
7472
7472
  const g = { ...e, waypoints: f };
7473
- if (In(g, i).length > 0) continue;
7473
+ if (An(g, i).length > 0) continue;
7474
7474
  const h = Gm(g, r);
7475
7475
  if (h >= o) continue;
7476
7476
  const y = xi(g, r);
@@ -7527,7 +7527,7 @@ function aC(e, t) {
7527
7527
  ];
7528
7528
  for (const { pts: f, cost: d } of p) {
7529
7529
  const g = { ...e, waypoints: f };
7530
- if (In(g, i).length > 0) continue;
7530
+ if (An(g, i).length > 0) continue;
7531
7531
  const h = Wm(g, r, n);
7532
7532
  if (h >= o) continue;
7533
7533
  const y = xi(g, r);
@@ -9212,7 +9212,7 @@ function TC(e, t) {
9212
9212
  };
9213
9213
  }, Dh = (b, S, M) => {
9214
9214
  const k = M.x + M.width / 2, I = S.y > M.y, L = I ? M.y + M.height : M.y, H = I ? S.y : S.y + S.height, j = b.source === S ? [{ x: k, y: H }, { x: k, y: L }] : [{ x: k, y: L }, { x: k, y: H }], N = Ze(o), W = { ...N.edges.find((Y) => Y.id === b.id), waypoints: j };
9215
- return In(W, bi(N)).length ? !1 : (n.updateWaypoints(b, j), !0);
9215
+ return An(W, bi(N)).length ? !1 : (n.updateWaypoints(b, j), !0);
9216
9216
  }, uE = () => {
9217
9217
  const b = o.filter((I) => I.type === "bpmn:Participant"), S = Math.min(...b.filter((I) => (I.children ?? []).length > 0).map((I) => I.x)), M = (I) => !!I && I.type === "bpmn:Participant" && !(I.children ?? []).length && Math.abs(I.x - S) <= 2 && // B-130 과 같은 판별자 — 폭이 아니라 좌변 관계
9218
9218
  !h.some((L) => L.participant.id === I.id), k = /* @__PURE__ */ new Set();
@@ -9755,7 +9755,7 @@ function TC(e, t) {
9755
9755
  };
9756
9756
  }, Lo = (b) => {
9757
9757
  const S = Ze(o), M = S.edges.find((k) => k.id === b);
9758
- return M ? In(M, bi(S)).length : 0;
9758
+ return M ? An(M, bi(S)).length : 0;
9759
9759
  }, tc = (b) => Lo(b) > 0, nc = (b) => Ze(o).edges.filter(
9760
9760
  (S) => S.type === "bpmn:MessageFlow" && S.id !== b && S.waypoints.length === 2
9761
9761
  ).length, yE = (b, S, M) => Aa([{ subtree: b, pool: S }], M), Gh = (b, S) => S.bad > b.bad || S.crossings > b.crossings && S.straight <= b.straight && S.bad >= b.bad, Io = (b, S) => Gh(b, S) || S.straight < b.straight, ro = (b, S, M = () => !0, k = Gh, I = !1) => {
@@ -11592,7 +11592,7 @@ function jn(e, ...t) {
11592
11592
  });
11593
11593
  }), e;
11594
11594
  }
11595
- function On(e, t, n) {
11595
+ function Dn(e, t, n) {
11596
11596
  return arguments.length == 2 ? e.getAttribute(t) : n === null ? e.removeAttribute(t) : (e.setAttribute(t, n), e);
11597
11597
  }
11598
11598
  const lA = Object.prototype.toString;
@@ -12804,7 +12804,7 @@ function lM(e) {
12804
12804
  function Be(e) {
12805
12805
  return Rt(e) ? lM(e) : cM(e);
12806
12806
  }
12807
- function An(e, t, n) {
12807
+ function Mn(e, t, n) {
12808
12808
  n = n || 0, gn(n) || (n = { x: n, y: n });
12809
12809
  var i = Ie(e), r = Ie(t), o = i.bottom + n.y <= r.top, a = i.left - n.x >= r.right, s = i.top - n.y >= r.bottom, c = i.right + n.x <= r.left, l = o ? "top" : s ? "bottom" : null, u = c ? "left" : a ? "right" : null;
12810
12810
  return u && l ? l + "-" + u : u || l || "intersect";
@@ -12873,7 +12873,7 @@ Fe.prototype._init = function(e) {
12873
12873
  _e(i, {
12874
12874
  width: "100%",
12875
12875
  height: "100%"
12876
- }), On(i, "tabindex", 0), e.autoFocus && t.on("element.hover", () => {
12876
+ }), Dn(i, "tabindex", 0), e.autoFocus && t.on("element.hover", () => {
12877
12877
  this.restoreFocus();
12878
12878
  }), t.on("element.mousedown", 500, (o) => {
12879
12879
  this.focus();
@@ -13721,7 +13721,7 @@ jr.prototype.destroy = function() {
13721
13721
  jr.prototype.clear = function() {
13722
13722
  this.get("eventBus").fire("diagram.clear");
13723
13723
  };
13724
- function Tn(e) {
13724
+ function kn(e) {
13725
13725
  return e ? "<" + e.$type + (e.id ? ' id="' + e.id : "") + '" />' : "<null>";
13726
13726
  }
13727
13727
  function Vn(e, t) {
@@ -13749,7 +13749,7 @@ function DM(e) {
13749
13749
  var re = q.gfx;
13750
13750
  if (re)
13751
13751
  throw new Error(
13752
- `already rendered ${Tn(q)}`
13752
+ `already rendered ${kn(q)}`
13753
13753
  );
13754
13754
  return e.element(q, i[q.id], K);
13755
13755
  }
@@ -13761,7 +13761,7 @@ function DM(e) {
13761
13761
  var re = i[q.id] && s(q, K);
13762
13762
  return o(q), re;
13763
13763
  } catch (pe) {
13764
- u(pe.message, { element: q, error: pe }), console.error(`failed to import ${Tn(q)}`, pe);
13764
+ u(pe.message, { element: q, error: pe }), console.error(`failed to import ${kn(q)}`, pe);
13765
13765
  }
13766
13766
  }
13767
13767
  function u(q, K) {
@@ -13770,10 +13770,10 @@ function DM(e) {
13770
13770
  var p = this.registerDi = function(K) {
13771
13771
  var re = K.bpmnElement;
13772
13772
  re ? i[re.id] ? u(
13773
- `multiple DI elements defined for ${Tn(re)}`,
13773
+ `multiple DI elements defined for ${kn(re)}`,
13774
13774
  { element: re }
13775
13775
  ) : i[re.id] = K : u(
13776
- `no bpmnElement referenced in ${Tn(K)}`,
13776
+ `no bpmnElement referenced in ${kn(K)}`,
13777
13777
  { element: K }
13778
13778
  );
13779
13779
  };
@@ -13796,13 +13796,13 @@ function DM(e) {
13796
13796
  var Me = re.plane;
13797
13797
  if (!Me)
13798
13798
  throw new Error(
13799
- `no plane for ${Tn(re)}`
13799
+ `no plane for ${kn(re)}`
13800
13800
  );
13801
13801
  var $ = Me.bpmnElement;
13802
13802
  if (!$)
13803
13803
  if ($ = OM(K), $)
13804
13804
  u(
13805
- `correcting missing bpmnElement on ${Tn(Me)} to ${Tn($)}`
13805
+ `correcting missing bpmnElement on ${kn(Me)} to ${kn($)}`
13806
13806
  ), Me.bpmnElement = $, p(Me);
13807
13807
  else
13808
13808
  throw new Error("no process or collaboration to display");
@@ -13813,7 +13813,7 @@ function DM(e) {
13813
13813
  X($, R), C(K.rootElements, R);
13814
13814
  else
13815
13815
  throw new Error(
13816
- `unsupported bpmnElement for ${Tn(Me)}: ${Tn($)}`
13816
+ `unsupported bpmnElement for ${kn(Me)}: ${kn($)}`
13817
13817
  );
13818
13818
  h(n);
13819
13819
  };
@@ -13895,7 +13895,7 @@ function DM(e) {
13895
13895
  }) : Vn(re, "bpmn:BoundaryEvent") ? n.unshift(function() {
13896
13896
  D(re, K);
13897
13897
  }) : Vn(re, "bpmn:FlowNode") ? D(re, K) : Vn(re, "bpmn:DataObject") || (Vn(re, "bpmn:DataStoreReference") || Vn(re, "bpmn:DataObjectReference") ? Q(re, K) : u(
13898
- `unrecognized flowElement ${Tn(re)} in context ${Tn(K && K.businessObject)}`,
13898
+ `unrecognized flowElement ${kn(re)} in context ${kn(K && K.businessObject)}`,
13899
13899
  {
13900
13900
  element: re,
13901
13901
  context: K
@@ -13968,7 +13968,7 @@ function IM(e, t) {
13968
13968
  });
13969
13969
  });
13970
13970
  var o = [i];
13971
- r && (o = Ln(r.participants, function(l) {
13971
+ r && (o = In(r.participants, function(l) {
13972
13972
  return l.processRef;
13973
13973
  }), o.push(r));
13974
13974
  var a = jx(o), s = [t], c = [n];
@@ -14257,7 +14257,7 @@ function mn(e) {
14257
14257
  function YM(e) {
14258
14258
  return e && ue(e).isInterrupting !== !1;
14259
14259
  }
14260
- function Dn(e) {
14260
+ function Ln(e) {
14261
14261
  return e && !!ue(e).triggeredByEvent;
14262
14262
  }
14263
14263
  function ha(e, t) {
@@ -15214,7 +15214,7 @@ function Ao(e, t, n, i, r, o, a) {
15214
15214
  }
15215
15215
  function K($, R, _ = {}) {
15216
15216
  var G = We($, R, _), V = rt(R);
15217
- if (Dn(R) && (_e(G, {
15217
+ if (Ln(R) && (_e(G, {
15218
15218
  strokeDasharray: "0, 5.5",
15219
15219
  strokeWidth: 2.5
15220
15220
  }), !V)) {
@@ -16448,7 +16448,7 @@ function BP(e, t, n) {
16448
16448
  }
16449
16449
  function Kx(e, t, n) {
16450
16450
  return new Error(
16451
- `element ${Tn(t)} referenced by ${Tn(e)}#${n} not yet drawn`
16451
+ `element ${kn(t)} referenced by ${kn(e)}#${n} not yet drawn`
16452
16452
  );
16453
16453
  }
16454
16454
  function fr(e, t, n, i, r) {
@@ -16489,7 +16489,7 @@ fr.prototype.add = function(e, t, n) {
16489
16489
  })), A(e, "bpmn:DataAssociation") && (n = this._canvas.findRoot(n)), this._canvas.addConnection(i, n, o);
16490
16490
  } else
16491
16491
  throw new Error(
16492
- `unknown di ${Tn(t)} for element ${Tn(e)}`
16492
+ `unknown di ${kn(t)} for element ${kn(e)}`
16493
16493
  );
16494
16494
  return Nr(e) && ai(i) && this.addLabel(e, t, i), this._eventBus.fire("bpmnElement.added", { element: i }), i;
16495
16495
  };
@@ -16497,7 +16497,7 @@ fr.prototype._attachBoundary = function(e, t) {
16497
16497
  var n = e.attachedToRef;
16498
16498
  if (!n)
16499
16499
  throw new Error(
16500
- `missing ${Tn(e)}#attachedToRef`
16500
+ `missing ${kn(e)}#attachedToRef`
16501
16501
  );
16502
16502
  var i = this._elementRegistry.get(n.id), r = i && i.attachers;
16503
16503
  if (!i)
@@ -16522,7 +16522,7 @@ fr.prototype._getConnectedElement = function(e, t) {
16522
16522
  if (i = e[t + "Ref"], t === "source" && r === "bpmn:DataInputAssociation" && (i = i && i[0]), (t === "source" && r === "bpmn:DataOutputAssociation" || t === "target" && r === "bpmn:DataInputAssociation") && (i = e.$parent), n = i && this._getElement(i), n)
16523
16523
  return n;
16524
16524
  throw i ? Kx(e, i, t + "Ref") : new Error(
16525
- `${Tn(e)}#${t} Ref not specified`
16525
+ `${kn(e)}#${t} Ref not specified`
16526
16526
  );
16527
16527
  };
16528
16528
  fr.prototype._getSource = function(e) {
@@ -16677,7 +16677,7 @@ Qf.$inject = [
16677
16677
  "modeling"
16678
16678
  ];
16679
16679
  function GP(e) {
16680
- var t = e.host, n = Be(e), i = An(n, t), r;
16680
+ var t = e.host, n = Be(e), i = Mn(n, t), r;
16681
16681
  i.indexOf("-") >= 0 ? r = i.split("-") : r = [i];
16682
16682
  var o = Zf.filter(function(a) {
16683
16683
  return r.indexOf(a) === -1;
@@ -16708,11 +16708,11 @@ function WP(e) {
16708
16708
  var a = Zf.filter(function(s) {
16709
16709
  return r.indexOf(s) === -1;
16710
16710
  });
16711
- return a.indexOf(i) !== -1 ? An(e.label, e) !== "intersect" ? void 0 : i : a[0];
16711
+ return a.indexOf(i) !== -1 ? Mn(e.label, e) !== "intersect" ? void 0 : i : a[0];
16712
16712
  }
16713
16713
  }
16714
16714
  function Zx(e, t) {
16715
- return An(t, e, 5);
16715
+ return Mn(t, e, 5);
16716
16716
  }
16717
16717
  function UP(e) {
16718
16718
  return Zf.indexOf(e) !== -1;
@@ -17052,7 +17052,7 @@ function Fo(e) {
17052
17052
  return e && A(e, "bpmn:BoundaryEvent") && ha(e, "bpmn:CompensateEventDefinition");
17053
17053
  }
17054
17054
  function Sc(e) {
17055
- return e && A(e, "bpmn:Activity") && !Dn(e);
17055
+ return e && A(e, "bpmn:Activity") && !Ln(e);
17056
17056
  }
17057
17057
  function od(e) {
17058
17058
  e.invoke(ce, this), this.preExecute("shape.create", 1500, function(t) {
@@ -18056,7 +18056,7 @@ function LT(e, t, n) {
18056
18056
  var i = Ie(t), r = Ie(n);
18057
18057
  if (IT(i, r))
18058
18058
  return null;
18059
- var o = An(t, e), a, s, c;
18059
+ var o = Mn(t, e), a, s, c;
18060
18060
  if (o === "top")
18061
18061
  a = {
18062
18062
  x: 0,
@@ -18082,7 +18082,7 @@ function LT(e, t, n) {
18082
18082
  return s = {
18083
18083
  x: e.x + a.x,
18084
18084
  y: e.y + a.y
18085
- }, c = An(n, s), c !== o ? null : a;
18085
+ }, c = Mn(n, s), c !== o ? null : a;
18086
18086
  }
18087
18087
  function IT(e, t) {
18088
18088
  return NT(e, t) || BT(e, t);
@@ -18311,13 +18311,13 @@ function Jl(e) {
18311
18311
  return t;
18312
18312
  }
18313
18313
  function hw(e, t) {
18314
- var n = Ln(e, VT);
18314
+ var n = In(e, VT);
18315
18315
  return et(n, function(i) {
18316
18316
  return GT(i, t);
18317
18317
  });
18318
18318
  }
18319
18319
  function GT(e, t) {
18320
- return An(t, e, 1) === "intersect";
18320
+ return Mn(t, e, 1) === "intersect";
18321
18321
  }
18322
18322
  function VT(e) {
18323
18323
  return e.original || e;
@@ -18364,7 +18364,7 @@ const qT = [
18364
18364
  ];
18365
18365
  function mw(e) {
18366
18366
  const t = ue(e);
18367
- if (!A(t, "bpmn:BoundaryEvent") && !(A(t, "bpmn:StartEvent") && Dn(t.$parent)))
18367
+ if (!A(t, "bpmn:BoundaryEvent") && !(A(t, "bpmn:StartEvent") && Ln(t.$parent)))
18368
18368
  return !1;
18369
18369
  const n = t.get("eventDefinitions");
18370
18370
  return !n || !n.length ? !1 : qT.some((i) => A(n[0], i));
@@ -18505,7 +18505,7 @@ function eu(e, t, n, i, r, o) {
18505
18505
  }, this), this.postExecuted(["elements.move"], 500, function(a) {
18506
18506
  var s = a.context, c = s.newParent, l = s.newHost, u = [];
18507
18507
  z(s.closure.topLevel, function(f) {
18508
- Dn(f) ? u = u.concat(f.children) : u = u.concat(f);
18508
+ Ln(f) ? u = u.concat(f.children) : u = u.concat(f);
18509
18509
  }), u.length === 1 && l && (c = l);
18510
18510
  var p = t.canReplace(u, c);
18511
18511
  p && this._replaceElements(u, p.replacements, l);
@@ -19428,15 +19428,15 @@ Si.prototype.addRule = function(e, t, n) {
19428
19428
  Si.prototype.init = function() {
19429
19429
  };
19430
19430
  function Tw(e, t) {
19431
- var n = An(e, t, -15);
19431
+ var n = Mn(e, t, -15);
19432
19432
  return n !== "intersect" ? n : null;
19433
19433
  }
19434
- function Mn(e) {
19434
+ function Pn(e) {
19435
19435
  Si.call(this, e);
19436
19436
  }
19437
- Ee(Mn, Si);
19438
- Mn.$inject = ["eventBus"];
19439
- Mn.prototype.init = function() {
19437
+ Ee(Pn, Si);
19438
+ Pn.$inject = ["eventBus"];
19439
+ Pn.prototype.init = function() {
19440
19440
  this.addRule("connection.start", function(e) {
19441
19441
  var t = e.source;
19442
19442
  return Pk(t);
@@ -19489,20 +19489,20 @@ Mn.prototype.init = function() {
19489
19489
  return Ww(n, t);
19490
19490
  });
19491
19491
  };
19492
- Mn.prototype.canConnectMessageFlow = Gw;
19493
- Mn.prototype.canConnectSequenceFlow = Vw;
19494
- Mn.prototype.canConnectDataAssociation = Hd;
19495
- Mn.prototype.canConnectAssociation = Hw;
19496
- Mn.prototype.canConnectCompensationAssociation = zw;
19497
- Mn.prototype.canMove = Fw;
19498
- Mn.prototype.canAttach = ns;
19499
- Mn.prototype.canReplace = $w;
19500
- Mn.prototype.canDrop = ra;
19501
- Mn.prototype.canInsert = Sl;
19502
- Mn.prototype.canCreate = nf;
19503
- Mn.prototype.canConnect = il;
19504
- Mn.prototype.canResize = jw;
19505
- Mn.prototype.canCopy = Ww;
19492
+ Pn.prototype.canConnectMessageFlow = Gw;
19493
+ Pn.prototype.canConnectSequenceFlow = Vw;
19494
+ Pn.prototype.canConnectDataAssociation = Hd;
19495
+ Pn.prototype.canConnectAssociation = Hw;
19496
+ Pn.prototype.canConnectCompensationAssociation = zw;
19497
+ Pn.prototype.canMove = Fw;
19498
+ Pn.prototype.canAttach = ns;
19499
+ Pn.prototype.canReplace = $w;
19500
+ Pn.prototype.canDrop = ra;
19501
+ Pn.prototype.canInsert = Sl;
19502
+ Pn.prototype.canCreate = nf;
19503
+ Pn.prototype.canConnect = il;
19504
+ Pn.prototype.canResize = jw;
19505
+ Pn.prototype.canCopy = Ww;
19506
19506
  function Pk(e) {
19507
19507
  return ef(e) ? null : Je(e, [
19508
19508
  "bpmn:FlowNode",
@@ -19572,10 +19572,10 @@ function Dw(e, t) {
19572
19572
  });
19573
19573
  }
19574
19574
  function Dk(e) {
19575
- return A(e, "bpmn:FlowNode") && !A(e, "bpmn:EndEvent") && !Dn(e) && !(A(e, "bpmn:IntermediateThrowEvent") && Gi(e, "bpmn:LinkEventDefinition")) && !kw(e) && !tu(e);
19575
+ return A(e, "bpmn:FlowNode") && !A(e, "bpmn:EndEvent") && !Ln(e) && !(A(e, "bpmn:IntermediateThrowEvent") && Gi(e, "bpmn:LinkEventDefinition")) && !kw(e) && !tu(e);
19576
19576
  }
19577
19577
  function Lk(e) {
19578
- return A(e, "bpmn:FlowNode") && !A(e, "bpmn:StartEvent") && !A(e, "bpmn:BoundaryEvent") && !Dn(e) && !(A(e, "bpmn:IntermediateCatchEvent") && Gi(e, "bpmn:LinkEventDefinition")) && !tu(e);
19578
+ return A(e, "bpmn:FlowNode") && !A(e, "bpmn:StartEvent") && !A(e, "bpmn:BoundaryEvent") && !Ln(e) && !(A(e, "bpmn:IntermediateCatchEvent") && Gi(e, "bpmn:LinkEventDefinition")) && !tu(e);
19579
19579
  }
19580
19580
  function Ik(e) {
19581
19581
  return A(e, "bpmn:ReceiveTask") || A(e, "bpmn:IntermediateCatchEvent") && (Gi(e, "bpmn:MessageEventDefinition") || Gi(e, "bpmn:TimerEventDefinition") || Gi(e, "bpmn:ConditionalEventDefinition") || Gi(e, "bpmn:SignalEventDefinition"));
@@ -19656,7 +19656,7 @@ function ns(e, t, n, i) {
19656
19656
  if (Array.isArray(e) || (e = [e]), e.length !== 1)
19657
19657
  return !1;
19658
19658
  var r = e[0];
19659
- return Qe(r) || !Fk(r) || Dn(t) || !A(t, "bpmn:Activity") || tu(t) || i && !Tw(i, t) || jk(t) ? !1 : "attach";
19659
+ return Qe(r) || !Fk(r) || Ln(t) || !A(t, "bpmn:Activity") || tu(t) || i && !Tw(i, t) || jk(t) ? !1 : "attach";
19660
19660
  }
19661
19661
  function $w(e, t, n) {
19662
19662
  if (!t)
@@ -19665,7 +19665,7 @@ function $w(e, t, n) {
19665
19665
  replacements: []
19666
19666
  };
19667
19667
  return z(e, function(r) {
19668
- Dn(t) || A(r, "bpmn:StartEvent") && r.type !== "label" && ra(r, t) && (YM(r) || i.replacements.push({
19668
+ Ln(t) || A(r, "bpmn:StartEvent") && r.type !== "label" && ra(r, t) && (YM(r) || i.replacements.push({
19669
19669
  oldElementId: r.id,
19670
19670
  newElementType: "bpmn:StartEvent"
19671
19671
  }), (KM(r) || XM(r) || ZM(r)) && i.replacements.push({
@@ -19710,7 +19710,7 @@ function Hw(e, t) {
19710
19710
  return iy(t, e) || iy(e, t) ? !1 : Hk(e, t) ? !0 : !!Hd(e, t);
19711
19711
  }
19712
19712
  function zw(e, t) {
19713
- return Ow(e, t) && kw(e) && A(t, "bpmn:Activity") && !Gk(t, e) && !Dn(t);
19713
+ return Ow(e, t) && kw(e) && A(t, "bpmn:Activity") && !Gk(t, e) && !Ln(t);
19714
19714
  }
19715
19715
  function Gw(e, t) {
19716
19716
  return oy(e) && !oy(t) ? !1 : kk(e) && Ok(t) && !Tk(e, t);
@@ -19758,7 +19758,7 @@ const Vk = {
19758
19758
  Xi
19759
19759
  ],
19760
19760
  __init__: ["bpmnRules"],
19761
- bpmnRules: ["type", Mn]
19761
+ bpmnRules: ["type", Pn]
19762
19762
  };
19763
19763
  var Wk = 2e3;
19764
19764
  function Uw(e, t) {
@@ -19769,7 +19769,7 @@ function Uw(e, t) {
19769
19769
  var o = lt(r), a, s;
19770
19770
  a = Cs([r]), a = et(a, function(c) {
19771
19771
  return c !== r && !c.labelTarget;
19772
- }), s = Ln(a, lt), o.set("planeElement", s);
19772
+ }), s = In(a, lt), o.set("planeElement", s);
19773
19773
  });
19774
19774
  }
19775
19775
  }
@@ -20607,7 +20607,7 @@ function t_(e, t, n, i, r) {
20607
20607
  return !g.hidden;
20608
20608
  }), d = nn(f);
20609
20609
  z(l, function(g) {
20610
- Rt(g) && (g.waypoints = Ln(g.waypoints, function(h) {
20610
+ Rt(g) && (g.waypoints = In(g.waypoints, function(h) {
20611
20611
  return {
20612
20612
  x: h.x - d.x - d.width / 2,
20613
20613
  y: h.y - d.y - d.height / 2
@@ -20809,7 +20809,7 @@ ni.prototype._paste = function(e, t, n, i) {
20809
20809
  });
20810
20810
  var r = nn(e);
20811
20811
  return z(e, function(o) {
20812
- Rt(o) && (o.waypoints = Ln(o.waypoints, function(a) {
20812
+ Rt(o) && (o.waypoints = In(o.waypoints, function(a) {
20813
20813
  return {
20814
20814
  x: a.x - r.x - r.width / 2,
20815
20815
  y: a.y - r.y - r.height / 2
@@ -20907,11 +20907,11 @@ ni.prototype.createTree = function(e) {
20907
20907
  element: p,
20908
20908
  children: h
20909
20909
  }), h;
20910
- }), e = Ln(r, function(p) {
20910
+ }), e = In(r, function(p) {
20911
20911
  return p.element;
20912
20912
  });
20913
20913
  var u = new Set(e);
20914
- return r = Ln(r, function(p) {
20914
+ return r = In(r, function(p) {
20915
20915
  return p.descriptor = {}, n._eventBus.fire("copyPaste.copyElement", {
20916
20916
  descriptor: p.descriptor,
20917
20917
  element: p.element,
@@ -20920,7 +20920,7 @@ ni.prototype.createTree = function(e) {
20920
20920
  }), p;
20921
20921
  }), r = Wi(r, function(p) {
20922
20922
  return p.descriptor.priority;
20923
- }), e = Ln(r, function(p) {
20923
+ }), e = In(r, function(p) {
20924
20924
  return p.element;
20925
20925
  }), z(r, function(p) {
20926
20926
  var f = p.depth;
@@ -20939,7 +20939,7 @@ function C2(e) {
20939
20939
  return !!e.host;
20940
20940
  }
20941
20941
  function A2(e) {
20942
- return Ln(e.waypoints, function(t) {
20942
+ return In(e.waypoints, function(t) {
20943
20943
  return t = vy(t), t.original && (t.original = vy(t.original)), t;
20944
20944
  });
20945
20945
  }
@@ -21214,7 +21214,7 @@ function a_(e, t, n, i, r, o) {
21214
21214
  var g = of(p.$descriptor), h = of(f.$descriptor, !0), y = I2(g, h);
21215
21215
  U(f, Ii(c, D2));
21216
21216
  var C = et(y, function(v) {
21217
- return v === "eventDefinitions" ? wy(s, c.eventDefinitionType) : v === "loopCharacteristics" ? !Dn(f) : Xn(f, v) || v === "processRef" && c.isExpanded === !1 || v === "triggeredByEvent" ? !1 : v === "isForCompensation" ? !Dn(f) : !0;
21217
+ return v === "eventDefinitions" ? wy(s, c.eventDefinitionType) : v === "loopCharacteristics" ? !Ln(f) : Xn(f, v) || v === "processRef" && c.isExpanded === !1 || v === "triggeredByEvent" ? !1 : v === "isForCompensation" ? !Ln(f) : !0;
21218
21218
  });
21219
21219
  if (f = n.copyElement(
21220
21220
  p,
@@ -22019,7 +22019,7 @@ qd.$inject = [
22019
22019
  "modeling"
22020
22020
  ];
22021
22021
  function af(e) {
22022
- return Sf(Ln(e, function(t) {
22022
+ return Sf(In(e, function(t) {
22023
22023
  return t.attachers || [];
22024
22024
  }));
22025
22025
  }
@@ -22128,7 +22128,7 @@ Ai.prototype.createDiBounds = function(e) {
22128
22128
  };
22129
22129
  Ai.prototype.createDiWaypoints = function(e) {
22130
22130
  var t = this;
22131
- return Ln(e, function(n) {
22131
+ return In(e, function(n) {
22132
22132
  return t.createDiWaypoint(n);
22133
22133
  });
22134
22134
  };
@@ -22531,7 +22531,7 @@ Kd.prototype.preExecute = function(e) {
22531
22531
  return !p.hidden;
22532
22532
  }), c = nn(s);
22533
22533
  z(t, function(p) {
22534
- Rt(p) && (p.waypoints = Ln(p.waypoints, function(f) {
22534
+ Rt(p) && (p.waypoints = In(p.waypoints, function(f) {
22535
22535
  return {
22536
22536
  x: Lc(f.x - c.x - c.width / 2 + r.x),
22537
22537
  y: Lc(f.y - c.y - c.height / 2 + r.y)
@@ -23016,7 +23016,7 @@ Ur.prototype.updateConnectionWaypoints = function(e, t, n, i, r, o, a) {
23016
23016
  var s = this, c = new Set(r), l = new Set(o);
23017
23017
  z(e, function(u) {
23018
23018
  var p = u.source, f = u.target, d = pO(u), g = f_(n), h = {}, y = c.has(p) || l.has(p), C = c.has(f) || l.has(f);
23019
- y && C ? (d = Ln(d, function(x) {
23019
+ y && C ? (d = In(d, function(x) {
23020
23020
  return Dy(x, i, n) && (x[g] = x[g] + t[g]), x.original && Dy(x.original, i, n) && (x.original[g] = x.original[g] + t[g]), x;
23021
23021
  }), s._modeling.updateWaypoints(u, d, {
23022
23022
  labelBehavior: !1
@@ -23035,7 +23035,7 @@ function Oy(e) {
23035
23035
  return U({}, e);
23036
23036
  }
23037
23037
  function pO(e) {
23038
- return Ln(e.waypoints, function(t) {
23038
+ return In(e.waypoints, function(t) {
23039
23039
  return t = Oy(t), t.original && (t.original = Oy(t.original)), t;
23040
23040
  });
23041
23041
  }
@@ -23940,21 +23940,21 @@ __.$inject = [
23940
23940
  function Ly(e) {
23941
23941
  return !e || !e.trim();
23942
23942
  }
23943
- function Pn(e, t, n, i) {
23943
+ function Tn(e, t, n, i) {
23944
23944
  Ct.call(this, e, t, n), this._bpmnRules = i;
23945
23945
  }
23946
- Ee(Pn, Ct);
23947
- Pn.$inject = [
23946
+ Ee(Tn, Ct);
23947
+ Tn.$inject = [
23948
23948
  "eventBus",
23949
23949
  "elementFactory",
23950
23950
  "commandStack",
23951
23951
  "bpmnRules"
23952
23952
  ];
23953
- Pn.prototype.getHandlers = function() {
23953
+ Tn.prototype.getHandlers = function() {
23954
23954
  var e = Ct.prototype.getHandlers.call(this);
23955
23955
  return e["element.updateModdleProperties"] = Hs, e["element.updateProperties"] = zs, e["canvas.updateRoot"] = gu, e["lane.add"] = eh, e["lane.resize"] = Gs, e["lane.split"] = th, e["lane.updateRefs"] = yu, e["group.updateRefs"] = Vs, e["id.updateClaim"] = vu, e["element.setColor"] = rh, e["element.updateLabel"] = __, e;
23956
23956
  };
23957
- Pn.prototype.updateLabel = function(e, t, n, i) {
23957
+ Tn.prototype.updateLabel = function(e, t, n, i) {
23958
23958
  this._commandStack.execute("element.updateLabel", {
23959
23959
  element: e,
23960
23960
  newLabel: t,
@@ -23962,45 +23962,45 @@ Pn.prototype.updateLabel = function(e, t, n, i) {
23962
23962
  hints: i || {}
23963
23963
  });
23964
23964
  };
23965
- Pn.prototype.connect = function(e, t, n, i) {
23965
+ Tn.prototype.connect = function(e, t, n, i) {
23966
23966
  var r = this._bpmnRules;
23967
23967
  if (n || (n = r.canConnect(e, t)), !!n)
23968
23968
  return this.createConnection(e, t, n, e.parent, i);
23969
23969
  };
23970
- Pn.prototype.updateModdleProperties = function(e, t, n) {
23970
+ Tn.prototype.updateModdleProperties = function(e, t, n) {
23971
23971
  this._commandStack.execute("element.updateModdleProperties", {
23972
23972
  element: e,
23973
23973
  moddleElement: t,
23974
23974
  properties: n
23975
23975
  });
23976
23976
  };
23977
- Pn.prototype.updateProperties = function(e, t) {
23977
+ Tn.prototype.updateProperties = function(e, t) {
23978
23978
  this._commandStack.execute("element.updateProperties", {
23979
23979
  element: e,
23980
23980
  properties: t
23981
23981
  });
23982
23982
  };
23983
- Pn.prototype.resizeLane = function(e, t, n) {
23983
+ Tn.prototype.resizeLane = function(e, t, n) {
23984
23984
  this._commandStack.execute("lane.resize", {
23985
23985
  shape: e,
23986
23986
  newBounds: t,
23987
23987
  balanced: n
23988
23988
  });
23989
23989
  };
23990
- Pn.prototype.addLane = function(e, t) {
23990
+ Tn.prototype.addLane = function(e, t) {
23991
23991
  var n = {
23992
23992
  shape: e,
23993
23993
  location: t
23994
23994
  };
23995
23995
  return this._commandStack.execute("lane.add", n), n.newLane;
23996
23996
  };
23997
- Pn.prototype.splitLane = function(e, t) {
23997
+ Tn.prototype.splitLane = function(e, t) {
23998
23998
  this._commandStack.execute("lane.split", {
23999
23999
  shape: e,
24000
24000
  count: t
24001
24001
  });
24002
24002
  };
24003
- Pn.prototype.makeCollaboration = function() {
24003
+ Tn.prototype.makeCollaboration = function() {
24004
24004
  var e = this._create("root", {
24005
24005
  type: "bpmn:Collaboration"
24006
24006
  }), t = {
@@ -24008,7 +24008,7 @@ Pn.prototype.makeCollaboration = function() {
24008
24008
  };
24009
24009
  return this._commandStack.execute("canvas.updateRoot", t), e;
24010
24010
  };
24011
- Pn.prototype.makeProcess = function() {
24011
+ Tn.prototype.makeProcess = function() {
24012
24012
  var e = this._create("root", {
24013
24013
  type: "bpmn:Process"
24014
24014
  }), t = {
@@ -24016,32 +24016,32 @@ Pn.prototype.makeProcess = function() {
24016
24016
  };
24017
24017
  return this._commandStack.execute("canvas.updateRoot", t), e;
24018
24018
  };
24019
- Pn.prototype.updateLaneRefs = function(e, t) {
24019
+ Tn.prototype.updateLaneRefs = function(e, t) {
24020
24020
  this._commandStack.execute("lane.updateRefs", {
24021
24021
  flowNodeShapes: e,
24022
24022
  laneShapes: t
24023
24023
  });
24024
24024
  };
24025
- Pn.prototype.updateCategoryValueRefs = function(e, t) {
24025
+ Tn.prototype.updateCategoryValueRefs = function(e, t) {
24026
24026
  this._commandStack.execute("group.updateRefs", {
24027
24027
  affectedFlowElements: e,
24028
24028
  affectedGroupEntries: t
24029
24029
  });
24030
24030
  };
24031
- Pn.prototype.claimId = function(e, t) {
24031
+ Tn.prototype.claimId = function(e, t) {
24032
24032
  this._commandStack.execute("id.updateClaim", {
24033
24033
  id: e,
24034
24034
  element: t,
24035
24035
  claiming: !0
24036
24036
  });
24037
24037
  };
24038
- Pn.prototype.unclaimId = function(e, t) {
24038
+ Tn.prototype.unclaimId = function(e, t) {
24039
24039
  this._commandStack.execute("id.updateClaim", {
24040
24040
  id: e,
24041
24041
  element: t
24042
24042
  });
24043
24043
  };
24044
- Pn.prototype.setColor = function(e, t) {
24044
+ Tn.prototype.setColor = function(e, t) {
24045
24045
  e.length || (e = [e]), this._commandStack.execute("element.setColor", {
24046
24046
  elements: e,
24047
24047
  colors: t
@@ -24082,7 +24082,7 @@ function DO(e, t) {
24082
24082
  }[e].test(t);
24083
24083
  }
24084
24084
  function S_(e, t, n) {
24085
- var i = An(t, e, TO), r = n.split(":")[0], o = Rl((t.x - e.x) / 2 + e.x), a = Rl((t.y - e.y) / 2 + e.y), s, c, l = DO(r, i), u = /h|r|l/.test(r), p = !1, f = !1;
24085
+ var i = Mn(t, e, TO), r = n.split(":")[0], o = Rl((t.x - e.x) / 2 + e.x), a = Rl((t.y - e.y) / 2 + e.y), s, c, l = DO(r, i), u = /h|r|l/.test(r), p = !1, f = !1;
24086
24086
  return l ? (s = u ? { x: o, y: e.y } : { x: e.x, y: a }, c = u ? "h:h" : "v:v") : (p = OO(i, r), c = u ? "h:v" : "v:h", p ? u ? (f = a === e.y, s = {
24087
24087
  x: e.x + Ic * (/l/.test(r) ? -1 : 1),
24088
24088
  y: f ? a + Ic : a
@@ -24163,7 +24163,7 @@ function $O(e, t, n) {
24163
24163
  return i.unshift(e), i.push(t), C_(i);
24164
24164
  }
24165
24165
  function FO(e, t, n, i, r) {
24166
- var o = r && r.preferredLayouts || [], a = e1(o, "straight")[0] || "h:h", s = kO[a] || 0, c = An(e, t, s), l = WO(c, a);
24166
+ var o = r && r.preferredLayouts || [], a = e1(o, "straight")[0] || "h:h", s = kO[a] || 0, c = Mn(e, t, s), l = WO(c, a);
24167
24167
  n = n || Be(e), i = i || Be(t);
24168
24168
  var u = l.split(":"), p = $y(n, e, u[0], qO(c)), f = $y(i, t, u[1], c);
24169
24169
  return $O(p, f, l);
@@ -24185,7 +24185,7 @@ function By(e, t, n) {
24185
24185
  }
24186
24186
  function zO(e, t, n, i, r) {
24187
24187
  var o = {}, a, s;
24188
- return s = An(e, t), /^(top|bottom|left|right)$/.test(s) ? (/top|bottom/.test(s) && (a = "x"), /left|right/.test(s) && (a = "y"), r.preserveDocking === "target" ? By(a, i, e) ? (o[a] = i[a], [
24188
+ return s = Mn(e, t), /^(top|bottom|left|right)$/.test(s) ? (/top|bottom/.test(s) && (a = "x"), /left|right/.test(s) && (a = "y"), r.preserveDocking === "target" ? By(a, i, e) ? (o[a] = i[a], [
24189
24189
  {
24190
24190
  x: o.x !== void 0 ? o.x : n.x,
24191
24191
  y: o.y !== void 0 ? o.y : n.y,
@@ -24389,7 +24389,7 @@ bu.prototype.layoutConnection = function(e, t) {
24389
24389
  };
24390
24390
  function QO(e) {
24391
24391
  var t = e.host;
24392
- return An(Be(e), t, YO);
24392
+ return Mn(Be(e), t, YO);
24393
24393
  }
24394
24394
  function JO(e, t, n) {
24395
24395
  return {
@@ -24441,11 +24441,11 @@ function A_(e) {
24441
24441
  return e === "right" || e === "left";
24442
24442
  }
24443
24443
  function oD(e, t, n) {
24444
- var i = t.waypoints, r = i && i.length && An(i[0], e);
24444
+ var i = t.waypoints, r = i && i.length && Mn(i[0], e);
24445
24445
  return r === "top" ? n.loop.fromTop : r === "right" ? n.loop.fromRight : r === "left" ? n.loop.fromLeft : n.loop.fromBottom;
24446
24446
  }
24447
24447
  function aD(e, t, n, i) {
24448
- var r = Be(e), o = Be(t), a = QO(e), s, c, l = ho(e.host, t), u = nD(a, ["top", "right", "bottom", "left"]), p = An(o, r, {
24448
+ var r = Be(e), o = Be(t), a = QO(e), s, c, l = ho(e.host, t), u = nD(a, ["top", "right", "bottom", "left"]), p = Mn(o, r, {
24449
24449
  x: e.width / 2 + t.width / 2,
24450
24450
  y: e.height / 2 + t.height / 2
24451
24451
  });
@@ -24537,7 +24537,7 @@ const ch = {
24537
24537
  bpmnFactory: ["type", Ai],
24538
24538
  bpmnUpdater: ["type", ii],
24539
24539
  elementFactory: ["type", Vr],
24540
- modeling: ["type", Pn],
24540
+ modeling: ["type", Tn],
24541
24541
  layouter: ["type", bu],
24542
24542
  connectionDocking: ["type", qr]
24543
24543
  };
@@ -24578,7 +24578,7 @@ function fD(e, t, n) {
24578
24578
  return Pt(r, function(o) {
24579
24579
  if (o === n)
24580
24580
  return !1;
24581
- var a = An(o, i, uD);
24581
+ var a = Mn(o, i, uD);
24582
24582
  return a === "intersect";
24583
24583
  });
24584
24584
  }
@@ -24715,7 +24715,7 @@ function wD(e, t, n) {
24715
24715
  },
24716
24716
  direction: o.directionHint
24717
24717
  }), s = 30, c = o.minDistance, l = o.baseOrientation;
24718
- A(e, "bpmn:BoundaryEvent") && (l = An(e, e.host, -25), l.indexOf(o.boundaryOrientation) !== -1 && (s *= -1));
24718
+ A(e, "bpmn:BoundaryEvent") && (l = Mn(e, e.host, -25), l.indexOf(o.boundaryOrientation) !== -1 && (s *= -1));
24719
24719
  var u = n ? {
24720
24720
  x: i.right + a + t.width / 2,
24721
24721
  y: r.y + Vy(l, c, o)
@@ -25305,7 +25305,7 @@ bn.prototype._updateOverlayContainer = function(e) {
25305
25305
  var o = nn(t);
25306
25306
  i = o.x, r = o.y;
25307
25307
  }
25308
- I_(n, i, r), On(e.html, "data-container-id", t.id);
25308
+ I_(n, i, r), Dn(e.html, "data-container-id", t.id);
25309
25309
  };
25310
25310
  bn.prototype._updateOverlay = function(e) {
25311
25311
  var t = e.position, n = e.htmlContainer, i = e.element, r = t.left, o = t.top;
@@ -26257,7 +26257,7 @@ on.prototype.trigger = function(e, t, n) {
26257
26257
  var i = this, r, o, a = t.delegateTarget || t.target;
26258
26258
  if (!a)
26259
26259
  return t.preventDefault();
26260
- if (r = On(a, "data-action"), o = t.originalEvent || t, e === "mouseover") {
26260
+ if (r = Dn(a, "data-action"), o = t.originalEvent || t, e === "mouseover") {
26261
26261
  this._timeout = setTimeout(function() {
26262
26262
  i._mouseout = i.triggerEntry(r, "hover", o, n);
26263
26263
  }, yL);
@@ -26301,7 +26301,7 @@ on.prototype._updateAndOpen = function(e) {
26301
26301
  var t = this.getEntries(e), n = this._createHtml(e), i;
26302
26302
  z(t, function(r, o) {
26303
26303
  var a = r.group || "default", s = kt(r.html || '<div class="entry" draggable="true"></div>'), c;
26304
- On(s, "data-action", o), c = xt("[data-group=" + gs(a) + "]", n), c || (c = kt('<div class="group"></div>'), On(c, "data-group", a), n.appendChild(c)), c.appendChild(s), r.className && vL(s, r.className), r.title && On(s, "title", r.title), r.imageUrl && (i = kt("<img>"), On(i, "src", r.imageUrl), i.style.width = "100%", i.style.height = "100%", s.appendChild(i));
26304
+ Dn(s, "data-action", o), c = xt("[data-group=" + gs(a) + "]", n), c || (c = kt('<div class="group"></div>'), Dn(c, "data-group", a), n.appendChild(c)), c.appendChild(s), r.className && vL(s, r.className), r.title && Dn(s, "title", r.title), r.imageUrl && (i = kt("<img>"), Dn(i, "src", r.imageUrl), i.style.width = "100%", i.style.height = "100%", s.appendChild(i));
26305
26305
  }), $t(n).add("open"), this._current = {
26306
26306
  entries: t,
26307
26307
  html: n,
@@ -27557,7 +27557,7 @@ Gt.prototype.isOpen = function() {
27557
27557
  };
27558
27558
  Gt.prototype.trigger = function(e, t, n = "click") {
27559
27559
  if (e.preventDefault(), !t) {
27560
- let r = So(e.delegateTarget || e.target, ".entry", !0), o = On(r, VL);
27560
+ let r = So(e.delegateTarget || e.target, ".entry", !0), o = Dn(r, VL);
27561
27561
  t = { id: o, ...this._getEntry(o) };
27562
27562
  }
27563
27563
  const i = t.action;
@@ -28480,7 +28480,7 @@ function R0(e, t, n, i, r, o) {
28480
28480
  var f = p.context, d = f.connection, g = f.segmentStartIndex, h = f.segmentEndIndex, y = f.segmentStart, C = f.segmentEnd, x = f.axis, m = f.originalWaypoints.slice(), v = Mv(y, x, p["d" + x]), w = Mv(C, x, p["d" + x]), E = m.length, T = 0;
28481
28481
  m[g] = v, m[h] = w;
28482
28482
  var O, B;
28483
- g < 2 && (O = An(d.source, v), g === 1 ? O === "intersect" && (m.shift(), m[0] = v, T--) : O !== "intersect" && (m.unshift(y), T++)), h > E - 3 && (B = An(d.target, w), h === E - 2 ? B === "intersect" && (m.pop(), m[m.length - 1] = w) : B !== "intersect" && m.push(C)), f.newWaypoints = d.waypoints = s(d, m), l(f, T, p), f.newSegmentStartIndex = g + T, c(p);
28483
+ g < 2 && (O = Mn(d.source, v), g === 1 ? O === "intersect" && (m.shift(), m[0] = v, T--) : O !== "intersect" && (m.unshift(y), T++)), h > E - 3 && (B = Mn(d.target, w), h === E - 2 ? B === "intersect" && (m.pop(), m[m.length - 1] = w) : B !== "intersect" && m.push(C)), f.newWaypoints = d.waypoints = s(d, m), l(f, T, p), f.newSegmentStartIndex = g + T, c(p);
28484
28484
  }), t.on("connectionSegment.move.hover", function(p) {
28485
28485
  p.context.hover = p.hover, n.addMarker(p.hover, Cv);
28486
28486
  }), t.on([
@@ -30040,20 +30040,20 @@ Mi.prototype.getPopupMenuEntries = function(e) {
30040
30040
  if ($e(e) || !n.allowed("shape.replace", { element: e }))
30041
30041
  return {};
30042
30042
  var a = kI(e);
30043
- return A(t, "bpmn:DataObjectReference") ? this._createEntries(e, HI) : A(t, "bpmn:DataStoreReference") && !A(e.parent, "bpmn:Collaboration") ? this._createEntries(e, zI) : (A(t, "bpmn:Event") && !A(t, "bpmn:BoundaryEvent") && (r = (s = t.get("eventDefinitions")[0]) == null ? void 0 : s.$type, i = qI[r] || [], !Dn(t.$parent) && A(t.$parent, "bpmn:SubProcess") && (i = et(i, function(c) {
30043
+ return A(t, "bpmn:DataObjectReference") ? this._createEntries(e, HI) : A(t, "bpmn:DataStoreReference") && !A(e.parent, "bpmn:Collaboration") ? this._createEntries(e, zI) : (A(t, "bpmn:Event") && !A(t, "bpmn:BoundaryEvent") && (r = (s = t.get("eventDefinitions")[0]) == null ? void 0 : s.$type, i = qI[r] || [], !Ln(t.$parent) && A(t.$parent, "bpmn:SubProcess") && (i = et(i, function(c) {
30044
30044
  return c.target.type !== "bpmn:StartEvent";
30045
30045
  }))), A(t, "bpmn:StartEvent") && !A(t.$parent, "bpmn:SubProcess") ? (o = et(
30046
30046
  DI.concat(i),
30047
30047
  a
30048
30048
  ), this._createEntries(e, o)) : A(t, "bpmn:Participant") ? (o = et(UI, function(c) {
30049
30049
  return rt(e) !== c.target.isExpanded;
30050
- }), this._createEntries(e, o)) : A(t, "bpmn:StartEvent") && Dn(t.$parent) ? (o = et(
30050
+ }), this._createEntries(e, o)) : A(t, "bpmn:StartEvent") && Ln(t.$parent) ? (o = et(
30051
30051
  VI.concat(i),
30052
30052
  function(c) {
30053
30053
  var l = c.target, u = l.isInterrupting !== !1, p = t.isInterrupting === u;
30054
30054
  return a(c) || !a(c) && !p;
30055
30055
  }
30056
- ), this._createEntries(e, o)) : A(t, "bpmn:StartEvent") && !Dn(t.$parent) && A(t.$parent, "bpmn:SubProcess") ? (o = et(
30056
+ ), this._createEntries(e, o)) : A(t, "bpmn:StartEvent") && !Ln(t.$parent) && A(t.$parent, "bpmn:SubProcess") ? (o = et(
30057
30057
  LI.concat(i),
30058
30058
  a
30059
30059
  ), this._createEntries(e, o)) : A(t, "bpmn:EndEvent") ? (o = et(NI.concat(i), function(c) {
@@ -30068,14 +30068,14 @@ Mi.prototype.getPopupMenuEntries = function(e) {
30068
30068
  }), this._createEntries(e, o)) : A(t, "bpmn:IntermediateCatchEvent") || A(t, "bpmn:IntermediateThrowEvent") ? (o = et(
30069
30069
  II.concat(i),
30070
30070
  a
30071
- ), this._createEntries(e, o)) : A(t, "bpmn:Gateway") ? (o = et(BI, a), this._createEntries(e, o)) : A(t, "bpmn:Transaction") ? (o = et(L0, a), this._createEntries(e, o)) : Dn(t) && rt(e) ? (o = et(jI, a), this._createEntries(e, o)) : A(t, "bpmn:AdHocSubProcess") && rt(e) ? (o = et(FI, a), this._createEntries(e, o)) : A(t, "bpmn:SubProcess") && rt(e) ? (o = et($I, a), this._createEntries(e, o)) : A(t, "bpmn:SubProcess") && !rt(e) ? (o = et(Bv, function(c) {
30071
+ ), this._createEntries(e, o)) : A(t, "bpmn:Gateway") ? (o = et(BI, a), this._createEntries(e, o)) : A(t, "bpmn:Transaction") ? (o = et(L0, a), this._createEntries(e, o)) : Ln(t) && rt(e) ? (o = et(jI, a), this._createEntries(e, o)) : A(t, "bpmn:AdHocSubProcess") && rt(e) ? (o = et(FI, a), this._createEntries(e, o)) : A(t, "bpmn:SubProcess") && rt(e) ? (o = et($I, a), this._createEntries(e, o)) : A(t, "bpmn:SubProcess") && !rt(e) ? (o = et(Bv, function(c) {
30072
30072
  var l = c.target.type === e.type, u = c.target.isExpanded === !0;
30073
30073
  return l === u;
30074
30074
  }), this._createEntries(e, o)) : A(t, "bpmn:SequenceFlow") ? this._createSequenceFlowEntries(e, WI) : A(t, "bpmn:FlowNode") ? (o = et(Bv, a), this._createEntries(e, o)) : {});
30075
30075
  };
30076
30076
  Mi.prototype.getPopupMenuHeaderEntries = function(e) {
30077
30077
  var t = {};
30078
- return A(e, "bpmn:Activity") && !Dn(e) && (t = {
30078
+ return A(e, "bpmn:Activity") && !Ln(e) && (t = {
30079
30079
  ...t,
30080
30080
  ...this._getLoopCharacteristicsHeaderEntries(e)
30081
30081
  }), A(e, "bpmn:DataObjectReference") && (t = {
@@ -30443,7 +30443,7 @@ qs.prototype.getContextPadEntries = function(e) {
30443
30443
  isForCompensation: !0
30444
30444
  }
30445
30445
  )
30446
- }) : !A(p, "bpmn:EndEvent") && !p.isForCompensation && !Fv(p, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Dn(p) && U(u, {
30446
+ }) : !A(p, "bpmn:EndEvent") && !p.isForCompensation && !Fv(p, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Ln(p) && U(u, {
30447
30447
  "append.end-event": y(
30448
30448
  "bpmn:EndEvent",
30449
30449
  "bpmn-icon-end-event-none",
@@ -32026,7 +32026,7 @@ Un.prototype.add = function(e) {
32026
32026
  }), this._addTooltip(e), e.timeout && this.setTimeout(e), t;
32027
32027
  };
32028
32028
  Un.prototype.trigger = function(e, t) {
32029
- var n = t.delegateTarget || t.target, i = this.get(On(n, "data-tooltip-id"));
32029
+ var n = t.delegateTarget || t.target, i = this.get(Dn(n, "data-tooltip-id"));
32030
32030
  i && (e === "mouseover" && i.timeout && this.clearTimeout(i), e === "mouseout" && i.timeout && (i.timeout = 1e3, this.setTimeout(i)));
32031
32031
  };
32032
32032
  Un.prototype.get = function(e) {
@@ -32353,17 +32353,17 @@ rn.prototype._update = function() {
32353
32353
  var e = xt(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
32354
32354
  Hl(e), z(t, function(n, i) {
32355
32355
  var r = n.group || "default", o = xt("[data-group=" + gs(r) + "]", e);
32356
- o || (o = kt('<div class="group"></div>'), On(o, "data-group", r), e.appendChild(o));
32356
+ o || (o = kt('<div class="group"></div>'), Dn(o, "data-group", r), e.appendChild(o));
32357
32357
  var a = n.html || (n.separator ? '<hr class="separator" />' : '<div class="entry" draggable="true"></div>'), s = kt(a);
32358
- if (o.appendChild(s), !n.separator && (On(s, "data-action", i), n.title && On(s, "title", n.title), n.className && lB(s, n.className), n.imageUrl)) {
32358
+ if (o.appendChild(s), !n.separator && (Dn(s, "data-action", i), n.title && Dn(s, "title", n.title), n.className && lB(s, n.className), n.imageUrl)) {
32359
32359
  var c = kt("<img>");
32360
- On(c, "src", n.imageUrl), s.appendChild(c);
32360
+ Dn(c, "src", n.imageUrl), s.appendChild(c);
32361
32361
  }
32362
32362
  }), this.open();
32363
32363
  };
32364
32364
  rn.prototype.trigger = function(e, t, n) {
32365
32365
  var i, r, o = t.delegateTarget || t.target;
32366
- return o ? (i = On(o, "data-action"), r = t.originalEvent || t, this.triggerEntry(i, e, r, n)) : t.preventDefault();
32366
+ return o ? (i = Dn(o, "data-action"), r = t.originalEvent || t, this.triggerEntry(i, e, r, n)) : t.preventDefault();
32367
32367
  };
32368
32368
  rn.prototype.triggerEntry = function(e, t, n, i) {
32369
32369
  var r = this._entries, o, a;
@@ -33011,7 +33011,7 @@ function SB(e, t) {
33011
33011
  function RB(e) {
33012
33012
  var t = e.context, n = t.source, i = t.target;
33013
33013
  if (!PB(t)) {
33014
- var r = vi(n), o = An(r, i, -10), a = [];
33014
+ var r = vi(n), o = Mn(r, i, -10), a = [];
33015
33015
  /top|bottom/.test(o) && a.push("x"), /left|right/.test(o) && a.push("y"), a.forEach(function(s) {
33016
33016
  var c = e[s], l;
33017
33017
  _B(c - r[s]) < Cp && (c > r[s] ? l = r[s] + Cp : l = r[s] - Cp, tn(e, s, l));
@@ -33486,7 +33486,7 @@ Ve.prototype._getCurrentResult = function() {
33486
33486
  };
33487
33487
  Ve.prototype._createResultNode = function(e, t) {
33488
33488
  var n = kt(Ve.RESULT_HTML);
33489
- return e.primaryTokens.length > 0 && yb(n, e.primaryTokens, Ve.RESULT_PRIMARY_HTML), yb(n, e.secondaryTokens, Ve.RESULT_SECONDARY_HTML), On(n, Ve.RESULT_ID_ATTRIBUTE, t), this._resultsContainer.appendChild(n), n;
33489
+ return e.primaryTokens.length > 0 && yb(n, e.primaryTokens, Ve.RESULT_PRIMARY_HTML), yb(n, e.secondaryTokens, Ve.RESULT_SECONDARY_HTML), Dn(n, Ve.RESULT_ID_ATTRIBUTE, t), this._resultsContainer.appendChild(n), n;
33490
33490
  };
33491
33491
  Ve.prototype.registerProvider = function(e) {
33492
33492
  this._searchProvider = e;
@@ -33509,14 +33509,14 @@ Ve.prototype._preselect = function(e) {
33509
33509
  var t = this._getCurrentResult();
33510
33510
  if (e !== t) {
33511
33511
  t && $t(t).remove(Ve.RESULT_SELECTED_CLASS);
33512
- var n = On(e, Ve.RESULT_ID_ATTRIBUTE), i = this._results[n].element;
33512
+ var n = Dn(e, Ve.RESULT_ID_ATTRIBUTE), i = this._results[n].element;
33513
33513
  $t(e).add(Ve.RESULT_SELECTED_CLASS), this._canvas.scrollToElement(i, {
33514
33514
  top: sE
33515
33515
  }), this._selection.select(i), this._eventBus.fire("searchPad.preselected", i);
33516
33516
  }
33517
33517
  };
33518
33518
  Ve.prototype._select = function(e) {
33519
- var t = On(e, Ve.RESULT_ID_ATTRIBUTE), n = this._results[t].element;
33519
+ var t = Dn(e, Ve.RESULT_ID_ATTRIBUTE), n = this._results[t].element;
33520
33520
  this._cachedSelection = null, this._cachedViewbox = null, this.close(!1), this._canvas.scrollToElement(n, {
33521
33521
  top: sE
33522
33522
  }), this._selection.select(n), this._eventBus.fire("searchPad.selected", n);
@@ -34047,7 +34047,7 @@ export {
34047
34047
  I$ as createBpmnEditorController,
34048
34048
  nR as createBpmnModdle,
34049
34049
  $$ as createHeadlessBpmnModeler,
34050
- In as crossedShapesOf,
34050
+ An as crossedShapesOf,
34051
34051
  wi as crossingCost,
34052
34052
  HC as describeProcess,
34053
34053
  P$ as describeProcessXml,