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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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)));
@@ -7092,13 +7092,18 @@ function jm(e, t, n) {
7092
7092
  if (n && !n.has(u)) continue;
7093
7093
  const f = i.get(u);
7094
7094
  if (!f) continue;
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
- if (!h) {
7097
- In(p, a).some((m) => m.type === "bpmn:TextAnnotation") && s.add(u);
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 = An(p, a);
7096
+ if (!n && h.length && h.every((v) => v.type === "bpmn:TextAnnotation")) {
7097
+ s.add(u);
7098
+ continue;
7099
+ }
7100
+ const y = ox(p, a, g, o.edges);
7101
+ if (!y) {
7102
+ h.some((v) => v.type === "bpmn:TextAnnotation") && s.add(u);
7098
7103
  continue;
7099
7104
  }
7100
- const y = o.edges.filter((m) => m.id !== u), C = xi(p, y);
7101
- xi({ ...p, waypoints: h }, y) > C || r.updateWaypoints(f, h);
7105
+ const C = o.edges.filter((v) => v.id !== u), x = xi(p, C);
7106
+ xi({ ...p, waypoints: y }, C) > x || r.updateWaypoints(f, y);
7102
7107
  }
7103
7108
  return s;
7104
7109
  }
@@ -7172,13 +7177,13 @@ function YR(e, t) {
7172
7177
  if (!o || !a || o.id === a.id) return null;
7173
7178
  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
7179
  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;
7180
+ 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
7181
  if (w === 0 && E === 0 || E === 0 && e.waypoints.length === 2) return null;
7177
7182
  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
7183
  let D;
7179
7184
  for (let F = T; F <= O; F += qR) {
7180
7185
  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;
7186
+ if (An(he, m).length > 0) continue;
7182
7187
  const Ce = wi(he, v), ke = Math.abs(F - B);
7183
7188
  (!D || Ce < D.cross || Ce === D.cross && ke < D.detour) && (D = { pts: Q, cross: Ce, detour: ke });
7184
7189
  }
@@ -7320,7 +7325,7 @@ function QR(e, t) {
7320
7325
  let w;
7321
7326
  for (const { pts: E, cost: T } of jl(e, i)) {
7322
7327
  const O = { ...e, waypoints: E };
7323
- if (In(O, r).length > 0) continue;
7328
+ if (An(O, r).length > 0) continue;
7324
7329
  const B = xi(O, o);
7325
7330
  if (B > a) continue;
7326
7331
  const P = x(E);
@@ -7348,12 +7353,12 @@ function eC(e, t, n) {
7348
7353
  for (const a of o) {
7349
7354
  const s = Ze(i), c = s.edges.find((y) => y.id === a);
7350
7355
  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);
7356
+ 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
7357
  h.length === 2 && JR(c, s) && h.reverse();
7353
7358
  for (const y of h) {
7354
7359
  if (y.length >= c.waypoints.length) continue;
7355
7360
  const C = { ...c, waypoints: y };
7356
- if (In(C, l).length > p || xi(C, u) > f || wi(C, u) > d) continue;
7361
+ if (An(C, l).length > p || xi(C, u) > f || wi(C, u) > d) continue;
7357
7362
  if (g) {
7358
7363
  const m = new Set(
7359
7364
  dt({ ...s, edges: s.edges.map((E) => E.id === a ? C : E) }).map(pt)
@@ -7443,7 +7448,7 @@ function iC(e, t) {
7443
7448
  ];
7444
7449
  for (const { pts: d, cost: g } of f) {
7445
7450
  const h = { ...e, waypoints: d };
7446
- if (In(h, i).length > 0) continue;
7451
+ if (An(h, i).length > 0) continue;
7447
7452
  const y = xi(h, r), C = wi(h, r), x = o - y + (p - u(d));
7448
7453
  if (y >= o || C - a > x) continue;
7449
7454
  const m = c(d);
@@ -7470,7 +7475,7 @@ function rC(e, t) {
7470
7475
  ];
7471
7476
  for (const { pts: f, cost: d } of p) {
7472
7477
  const g = { ...e, waypoints: f };
7473
- if (In(g, i).length > 0) continue;
7478
+ if (An(g, i).length > 0) continue;
7474
7479
  const h = Gm(g, r);
7475
7480
  if (h >= o) continue;
7476
7481
  const y = xi(g, r);
@@ -7527,7 +7532,7 @@ function aC(e, t) {
7527
7532
  ];
7528
7533
  for (const { pts: f, cost: d } of p) {
7529
7534
  const g = { ...e, waypoints: f };
7530
- if (In(g, i).length > 0) continue;
7535
+ if (An(g, i).length > 0) continue;
7531
7536
  const h = Wm(g, r, n);
7532
7537
  if (h >= o) continue;
7533
7538
  const y = xi(g, r);
@@ -9212,7 +9217,7 @@ function TC(e, t) {
9212
9217
  };
9213
9218
  }, Dh = (b, S, M) => {
9214
9219
  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);
9220
+ return An(W, bi(N)).length ? !1 : (n.updateWaypoints(b, j), !0);
9216
9221
  }, uE = () => {
9217
9222
  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
9223
  !h.some((L) => L.participant.id === I.id), k = /* @__PURE__ */ new Set();
@@ -9755,7 +9760,7 @@ function TC(e, t) {
9755
9760
  };
9756
9761
  }, Lo = (b) => {
9757
9762
  const S = Ze(o), M = S.edges.find((k) => k.id === b);
9758
- return M ? In(M, bi(S)).length : 0;
9763
+ return M ? An(M, bi(S)).length : 0;
9759
9764
  }, tc = (b) => Lo(b) > 0, nc = (b) => Ze(o).edges.filter(
9760
9765
  (S) => S.type === "bpmn:MessageFlow" && S.id !== b && S.waypoints.length === 2
9761
9766
  ).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 +11597,7 @@ function jn(e, ...t) {
11592
11597
  });
11593
11598
  }), e;
11594
11599
  }
11595
- function On(e, t, n) {
11600
+ function Dn(e, t, n) {
11596
11601
  return arguments.length == 2 ? e.getAttribute(t) : n === null ? e.removeAttribute(t) : (e.setAttribute(t, n), e);
11597
11602
  }
11598
11603
  const lA = Object.prototype.toString;
@@ -12804,7 +12809,7 @@ function lM(e) {
12804
12809
  function Be(e) {
12805
12810
  return Rt(e) ? lM(e) : cM(e);
12806
12811
  }
12807
- function An(e, t, n) {
12812
+ function Mn(e, t, n) {
12808
12813
  n = n || 0, gn(n) || (n = { x: n, y: n });
12809
12814
  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
12815
  return u && l ? l + "-" + u : u || l || "intersect";
@@ -12873,7 +12878,7 @@ Fe.prototype._init = function(e) {
12873
12878
  _e(i, {
12874
12879
  width: "100%",
12875
12880
  height: "100%"
12876
- }), On(i, "tabindex", 0), e.autoFocus && t.on("element.hover", () => {
12881
+ }), Dn(i, "tabindex", 0), e.autoFocus && t.on("element.hover", () => {
12877
12882
  this.restoreFocus();
12878
12883
  }), t.on("element.mousedown", 500, (o) => {
12879
12884
  this.focus();
@@ -13721,7 +13726,7 @@ jr.prototype.destroy = function() {
13721
13726
  jr.prototype.clear = function() {
13722
13727
  this.get("eventBus").fire("diagram.clear");
13723
13728
  };
13724
- function Tn(e) {
13729
+ function kn(e) {
13725
13730
  return e ? "<" + e.$type + (e.id ? ' id="' + e.id : "") + '" />' : "<null>";
13726
13731
  }
13727
13732
  function Vn(e, t) {
@@ -13749,7 +13754,7 @@ function DM(e) {
13749
13754
  var re = q.gfx;
13750
13755
  if (re)
13751
13756
  throw new Error(
13752
- `already rendered ${Tn(q)}`
13757
+ `already rendered ${kn(q)}`
13753
13758
  );
13754
13759
  return e.element(q, i[q.id], K);
13755
13760
  }
@@ -13761,7 +13766,7 @@ function DM(e) {
13761
13766
  var re = i[q.id] && s(q, K);
13762
13767
  return o(q), re;
13763
13768
  } catch (pe) {
13764
- u(pe.message, { element: q, error: pe }), console.error(`failed to import ${Tn(q)}`, pe);
13769
+ u(pe.message, { element: q, error: pe }), console.error(`failed to import ${kn(q)}`, pe);
13765
13770
  }
13766
13771
  }
13767
13772
  function u(q, K) {
@@ -13770,10 +13775,10 @@ function DM(e) {
13770
13775
  var p = this.registerDi = function(K) {
13771
13776
  var re = K.bpmnElement;
13772
13777
  re ? i[re.id] ? u(
13773
- `multiple DI elements defined for ${Tn(re)}`,
13778
+ `multiple DI elements defined for ${kn(re)}`,
13774
13779
  { element: re }
13775
13780
  ) : i[re.id] = K : u(
13776
- `no bpmnElement referenced in ${Tn(K)}`,
13781
+ `no bpmnElement referenced in ${kn(K)}`,
13777
13782
  { element: K }
13778
13783
  );
13779
13784
  };
@@ -13796,13 +13801,13 @@ function DM(e) {
13796
13801
  var Me = re.plane;
13797
13802
  if (!Me)
13798
13803
  throw new Error(
13799
- `no plane for ${Tn(re)}`
13804
+ `no plane for ${kn(re)}`
13800
13805
  );
13801
13806
  var $ = Me.bpmnElement;
13802
13807
  if (!$)
13803
13808
  if ($ = OM(K), $)
13804
13809
  u(
13805
- `correcting missing bpmnElement on ${Tn(Me)} to ${Tn($)}`
13810
+ `correcting missing bpmnElement on ${kn(Me)} to ${kn($)}`
13806
13811
  ), Me.bpmnElement = $, p(Me);
13807
13812
  else
13808
13813
  throw new Error("no process or collaboration to display");
@@ -13813,7 +13818,7 @@ function DM(e) {
13813
13818
  X($, R), C(K.rootElements, R);
13814
13819
  else
13815
13820
  throw new Error(
13816
- `unsupported bpmnElement for ${Tn(Me)}: ${Tn($)}`
13821
+ `unsupported bpmnElement for ${kn(Me)}: ${kn($)}`
13817
13822
  );
13818
13823
  h(n);
13819
13824
  };
@@ -13895,7 +13900,7 @@ function DM(e) {
13895
13900
  }) : Vn(re, "bpmn:BoundaryEvent") ? n.unshift(function() {
13896
13901
  D(re, K);
13897
13902
  }) : 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)}`,
13903
+ `unrecognized flowElement ${kn(re)} in context ${kn(K && K.businessObject)}`,
13899
13904
  {
13900
13905
  element: re,
13901
13906
  context: K
@@ -13968,7 +13973,7 @@ function IM(e, t) {
13968
13973
  });
13969
13974
  });
13970
13975
  var o = [i];
13971
- r && (o = Ln(r.participants, function(l) {
13976
+ r && (o = In(r.participants, function(l) {
13972
13977
  return l.processRef;
13973
13978
  }), o.push(r));
13974
13979
  var a = jx(o), s = [t], c = [n];
@@ -14257,7 +14262,7 @@ function mn(e) {
14257
14262
  function YM(e) {
14258
14263
  return e && ue(e).isInterrupting !== !1;
14259
14264
  }
14260
- function Dn(e) {
14265
+ function Ln(e) {
14261
14266
  return e && !!ue(e).triggeredByEvent;
14262
14267
  }
14263
14268
  function ha(e, t) {
@@ -15214,7 +15219,7 @@ function Ao(e, t, n, i, r, o, a) {
15214
15219
  }
15215
15220
  function K($, R, _ = {}) {
15216
15221
  var G = We($, R, _), V = rt(R);
15217
- if (Dn(R) && (_e(G, {
15222
+ if (Ln(R) && (_e(G, {
15218
15223
  strokeDasharray: "0, 5.5",
15219
15224
  strokeWidth: 2.5
15220
15225
  }), !V)) {
@@ -16448,7 +16453,7 @@ function BP(e, t, n) {
16448
16453
  }
16449
16454
  function Kx(e, t, n) {
16450
16455
  return new Error(
16451
- `element ${Tn(t)} referenced by ${Tn(e)}#${n} not yet drawn`
16456
+ `element ${kn(t)} referenced by ${kn(e)}#${n} not yet drawn`
16452
16457
  );
16453
16458
  }
16454
16459
  function fr(e, t, n, i, r) {
@@ -16489,7 +16494,7 @@ fr.prototype.add = function(e, t, n) {
16489
16494
  })), A(e, "bpmn:DataAssociation") && (n = this._canvas.findRoot(n)), this._canvas.addConnection(i, n, o);
16490
16495
  } else
16491
16496
  throw new Error(
16492
- `unknown di ${Tn(t)} for element ${Tn(e)}`
16497
+ `unknown di ${kn(t)} for element ${kn(e)}`
16493
16498
  );
16494
16499
  return Nr(e) && ai(i) && this.addLabel(e, t, i), this._eventBus.fire("bpmnElement.added", { element: i }), i;
16495
16500
  };
@@ -16497,7 +16502,7 @@ fr.prototype._attachBoundary = function(e, t) {
16497
16502
  var n = e.attachedToRef;
16498
16503
  if (!n)
16499
16504
  throw new Error(
16500
- `missing ${Tn(e)}#attachedToRef`
16505
+ `missing ${kn(e)}#attachedToRef`
16501
16506
  );
16502
16507
  var i = this._elementRegistry.get(n.id), r = i && i.attachers;
16503
16508
  if (!i)
@@ -16522,7 +16527,7 @@ fr.prototype._getConnectedElement = function(e, t) {
16522
16527
  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
16528
  return n;
16524
16529
  throw i ? Kx(e, i, t + "Ref") : new Error(
16525
- `${Tn(e)}#${t} Ref not specified`
16530
+ `${kn(e)}#${t} Ref not specified`
16526
16531
  );
16527
16532
  };
16528
16533
  fr.prototype._getSource = function(e) {
@@ -16677,7 +16682,7 @@ Qf.$inject = [
16677
16682
  "modeling"
16678
16683
  ];
16679
16684
  function GP(e) {
16680
- var t = e.host, n = Be(e), i = An(n, t), r;
16685
+ var t = e.host, n = Be(e), i = Mn(n, t), r;
16681
16686
  i.indexOf("-") >= 0 ? r = i.split("-") : r = [i];
16682
16687
  var o = Zf.filter(function(a) {
16683
16688
  return r.indexOf(a) === -1;
@@ -16708,11 +16713,11 @@ function WP(e) {
16708
16713
  var a = Zf.filter(function(s) {
16709
16714
  return r.indexOf(s) === -1;
16710
16715
  });
16711
- return a.indexOf(i) !== -1 ? An(e.label, e) !== "intersect" ? void 0 : i : a[0];
16716
+ return a.indexOf(i) !== -1 ? Mn(e.label, e) !== "intersect" ? void 0 : i : a[0];
16712
16717
  }
16713
16718
  }
16714
16719
  function Zx(e, t) {
16715
- return An(t, e, 5);
16720
+ return Mn(t, e, 5);
16716
16721
  }
16717
16722
  function UP(e) {
16718
16723
  return Zf.indexOf(e) !== -1;
@@ -17052,7 +17057,7 @@ function Fo(e) {
17052
17057
  return e && A(e, "bpmn:BoundaryEvent") && ha(e, "bpmn:CompensateEventDefinition");
17053
17058
  }
17054
17059
  function Sc(e) {
17055
- return e && A(e, "bpmn:Activity") && !Dn(e);
17060
+ return e && A(e, "bpmn:Activity") && !Ln(e);
17056
17061
  }
17057
17062
  function od(e) {
17058
17063
  e.invoke(ce, this), this.preExecute("shape.create", 1500, function(t) {
@@ -18056,7 +18061,7 @@ function LT(e, t, n) {
18056
18061
  var i = Ie(t), r = Ie(n);
18057
18062
  if (IT(i, r))
18058
18063
  return null;
18059
- var o = An(t, e), a, s, c;
18064
+ var o = Mn(t, e), a, s, c;
18060
18065
  if (o === "top")
18061
18066
  a = {
18062
18067
  x: 0,
@@ -18082,7 +18087,7 @@ function LT(e, t, n) {
18082
18087
  return s = {
18083
18088
  x: e.x + a.x,
18084
18089
  y: e.y + a.y
18085
- }, c = An(n, s), c !== o ? null : a;
18090
+ }, c = Mn(n, s), c !== o ? null : a;
18086
18091
  }
18087
18092
  function IT(e, t) {
18088
18093
  return NT(e, t) || BT(e, t);
@@ -18311,13 +18316,13 @@ function Jl(e) {
18311
18316
  return t;
18312
18317
  }
18313
18318
  function hw(e, t) {
18314
- var n = Ln(e, VT);
18319
+ var n = In(e, VT);
18315
18320
  return et(n, function(i) {
18316
18321
  return GT(i, t);
18317
18322
  });
18318
18323
  }
18319
18324
  function GT(e, t) {
18320
- return An(t, e, 1) === "intersect";
18325
+ return Mn(t, e, 1) === "intersect";
18321
18326
  }
18322
18327
  function VT(e) {
18323
18328
  return e.original || e;
@@ -18364,7 +18369,7 @@ const qT = [
18364
18369
  ];
18365
18370
  function mw(e) {
18366
18371
  const t = ue(e);
18367
- if (!A(t, "bpmn:BoundaryEvent") && !(A(t, "bpmn:StartEvent") && Dn(t.$parent)))
18372
+ if (!A(t, "bpmn:BoundaryEvent") && !(A(t, "bpmn:StartEvent") && Ln(t.$parent)))
18368
18373
  return !1;
18369
18374
  const n = t.get("eventDefinitions");
18370
18375
  return !n || !n.length ? !1 : qT.some((i) => A(n[0], i));
@@ -18505,7 +18510,7 @@ function eu(e, t, n, i, r, o) {
18505
18510
  }, this), this.postExecuted(["elements.move"], 500, function(a) {
18506
18511
  var s = a.context, c = s.newParent, l = s.newHost, u = [];
18507
18512
  z(s.closure.topLevel, function(f) {
18508
- Dn(f) ? u = u.concat(f.children) : u = u.concat(f);
18513
+ Ln(f) ? u = u.concat(f.children) : u = u.concat(f);
18509
18514
  }), u.length === 1 && l && (c = l);
18510
18515
  var p = t.canReplace(u, c);
18511
18516
  p && this._replaceElements(u, p.replacements, l);
@@ -19428,15 +19433,15 @@ Si.prototype.addRule = function(e, t, n) {
19428
19433
  Si.prototype.init = function() {
19429
19434
  };
19430
19435
  function Tw(e, t) {
19431
- var n = An(e, t, -15);
19436
+ var n = Mn(e, t, -15);
19432
19437
  return n !== "intersect" ? n : null;
19433
19438
  }
19434
- function Mn(e) {
19439
+ function Pn(e) {
19435
19440
  Si.call(this, e);
19436
19441
  }
19437
- Ee(Mn, Si);
19438
- Mn.$inject = ["eventBus"];
19439
- Mn.prototype.init = function() {
19442
+ Ee(Pn, Si);
19443
+ Pn.$inject = ["eventBus"];
19444
+ Pn.prototype.init = function() {
19440
19445
  this.addRule("connection.start", function(e) {
19441
19446
  var t = e.source;
19442
19447
  return Pk(t);
@@ -19489,20 +19494,20 @@ Mn.prototype.init = function() {
19489
19494
  return Ww(n, t);
19490
19495
  });
19491
19496
  };
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;
19497
+ Pn.prototype.canConnectMessageFlow = Gw;
19498
+ Pn.prototype.canConnectSequenceFlow = Vw;
19499
+ Pn.prototype.canConnectDataAssociation = Hd;
19500
+ Pn.prototype.canConnectAssociation = Hw;
19501
+ Pn.prototype.canConnectCompensationAssociation = zw;
19502
+ Pn.prototype.canMove = Fw;
19503
+ Pn.prototype.canAttach = ns;
19504
+ Pn.prototype.canReplace = $w;
19505
+ Pn.prototype.canDrop = ra;
19506
+ Pn.prototype.canInsert = Sl;
19507
+ Pn.prototype.canCreate = nf;
19508
+ Pn.prototype.canConnect = il;
19509
+ Pn.prototype.canResize = jw;
19510
+ Pn.prototype.canCopy = Ww;
19506
19511
  function Pk(e) {
19507
19512
  return ef(e) ? null : Je(e, [
19508
19513
  "bpmn:FlowNode",
@@ -19572,10 +19577,10 @@ function Dw(e, t) {
19572
19577
  });
19573
19578
  }
19574
19579
  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);
19580
+ return A(e, "bpmn:FlowNode") && !A(e, "bpmn:EndEvent") && !Ln(e) && !(A(e, "bpmn:IntermediateThrowEvent") && Gi(e, "bpmn:LinkEventDefinition")) && !kw(e) && !tu(e);
19576
19581
  }
19577
19582
  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);
19583
+ 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
19584
  }
19580
19585
  function Ik(e) {
19581
19586
  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 +19661,7 @@ function ns(e, t, n, i) {
19656
19661
  if (Array.isArray(e) || (e = [e]), e.length !== 1)
19657
19662
  return !1;
19658
19663
  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";
19664
+ return Qe(r) || !Fk(r) || Ln(t) || !A(t, "bpmn:Activity") || tu(t) || i && !Tw(i, t) || jk(t) ? !1 : "attach";
19660
19665
  }
19661
19666
  function $w(e, t, n) {
19662
19667
  if (!t)
@@ -19665,7 +19670,7 @@ function $w(e, t, n) {
19665
19670
  replacements: []
19666
19671
  };
19667
19672
  return z(e, function(r) {
19668
- Dn(t) || A(r, "bpmn:StartEvent") && r.type !== "label" && ra(r, t) && (YM(r) || i.replacements.push({
19673
+ Ln(t) || A(r, "bpmn:StartEvent") && r.type !== "label" && ra(r, t) && (YM(r) || i.replacements.push({
19669
19674
  oldElementId: r.id,
19670
19675
  newElementType: "bpmn:StartEvent"
19671
19676
  }), (KM(r) || XM(r) || ZM(r)) && i.replacements.push({
@@ -19710,7 +19715,7 @@ function Hw(e, t) {
19710
19715
  return iy(t, e) || iy(e, t) ? !1 : Hk(e, t) ? !0 : !!Hd(e, t);
19711
19716
  }
19712
19717
  function zw(e, t) {
19713
- return Ow(e, t) && kw(e) && A(t, "bpmn:Activity") && !Gk(t, e) && !Dn(t);
19718
+ return Ow(e, t) && kw(e) && A(t, "bpmn:Activity") && !Gk(t, e) && !Ln(t);
19714
19719
  }
19715
19720
  function Gw(e, t) {
19716
19721
  return oy(e) && !oy(t) ? !1 : kk(e) && Ok(t) && !Tk(e, t);
@@ -19758,7 +19763,7 @@ const Vk = {
19758
19763
  Xi
19759
19764
  ],
19760
19765
  __init__: ["bpmnRules"],
19761
- bpmnRules: ["type", Mn]
19766
+ bpmnRules: ["type", Pn]
19762
19767
  };
19763
19768
  var Wk = 2e3;
19764
19769
  function Uw(e, t) {
@@ -19769,7 +19774,7 @@ function Uw(e, t) {
19769
19774
  var o = lt(r), a, s;
19770
19775
  a = Cs([r]), a = et(a, function(c) {
19771
19776
  return c !== r && !c.labelTarget;
19772
- }), s = Ln(a, lt), o.set("planeElement", s);
19777
+ }), s = In(a, lt), o.set("planeElement", s);
19773
19778
  });
19774
19779
  }
19775
19780
  }
@@ -20607,7 +20612,7 @@ function t_(e, t, n, i, r) {
20607
20612
  return !g.hidden;
20608
20613
  }), d = nn(f);
20609
20614
  z(l, function(g) {
20610
- Rt(g) && (g.waypoints = Ln(g.waypoints, function(h) {
20615
+ Rt(g) && (g.waypoints = In(g.waypoints, function(h) {
20611
20616
  return {
20612
20617
  x: h.x - d.x - d.width / 2,
20613
20618
  y: h.y - d.y - d.height / 2
@@ -20809,7 +20814,7 @@ ni.prototype._paste = function(e, t, n, i) {
20809
20814
  });
20810
20815
  var r = nn(e);
20811
20816
  return z(e, function(o) {
20812
- Rt(o) && (o.waypoints = Ln(o.waypoints, function(a) {
20817
+ Rt(o) && (o.waypoints = In(o.waypoints, function(a) {
20813
20818
  return {
20814
20819
  x: a.x - r.x - r.width / 2,
20815
20820
  y: a.y - r.y - r.height / 2
@@ -20907,11 +20912,11 @@ ni.prototype.createTree = function(e) {
20907
20912
  element: p,
20908
20913
  children: h
20909
20914
  }), h;
20910
- }), e = Ln(r, function(p) {
20915
+ }), e = In(r, function(p) {
20911
20916
  return p.element;
20912
20917
  });
20913
20918
  var u = new Set(e);
20914
- return r = Ln(r, function(p) {
20919
+ return r = In(r, function(p) {
20915
20920
  return p.descriptor = {}, n._eventBus.fire("copyPaste.copyElement", {
20916
20921
  descriptor: p.descriptor,
20917
20922
  element: p.element,
@@ -20920,7 +20925,7 @@ ni.prototype.createTree = function(e) {
20920
20925
  }), p;
20921
20926
  }), r = Wi(r, function(p) {
20922
20927
  return p.descriptor.priority;
20923
- }), e = Ln(r, function(p) {
20928
+ }), e = In(r, function(p) {
20924
20929
  return p.element;
20925
20930
  }), z(r, function(p) {
20926
20931
  var f = p.depth;
@@ -20939,7 +20944,7 @@ function C2(e) {
20939
20944
  return !!e.host;
20940
20945
  }
20941
20946
  function A2(e) {
20942
- return Ln(e.waypoints, function(t) {
20947
+ return In(e.waypoints, function(t) {
20943
20948
  return t = vy(t), t.original && (t.original = vy(t.original)), t;
20944
20949
  });
20945
20950
  }
@@ -21214,7 +21219,7 @@ function a_(e, t, n, i, r, o) {
21214
21219
  var g = of(p.$descriptor), h = of(f.$descriptor, !0), y = I2(g, h);
21215
21220
  U(f, Ii(c, D2));
21216
21221
  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;
21222
+ 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
21223
  });
21219
21224
  if (f = n.copyElement(
21220
21225
  p,
@@ -22019,7 +22024,7 @@ qd.$inject = [
22019
22024
  "modeling"
22020
22025
  ];
22021
22026
  function af(e) {
22022
- return Sf(Ln(e, function(t) {
22027
+ return Sf(In(e, function(t) {
22023
22028
  return t.attachers || [];
22024
22029
  }));
22025
22030
  }
@@ -22128,7 +22133,7 @@ Ai.prototype.createDiBounds = function(e) {
22128
22133
  };
22129
22134
  Ai.prototype.createDiWaypoints = function(e) {
22130
22135
  var t = this;
22131
- return Ln(e, function(n) {
22136
+ return In(e, function(n) {
22132
22137
  return t.createDiWaypoint(n);
22133
22138
  });
22134
22139
  };
@@ -22531,7 +22536,7 @@ Kd.prototype.preExecute = function(e) {
22531
22536
  return !p.hidden;
22532
22537
  }), c = nn(s);
22533
22538
  z(t, function(p) {
22534
- Rt(p) && (p.waypoints = Ln(p.waypoints, function(f) {
22539
+ Rt(p) && (p.waypoints = In(p.waypoints, function(f) {
22535
22540
  return {
22536
22541
  x: Lc(f.x - c.x - c.width / 2 + r.x),
22537
22542
  y: Lc(f.y - c.y - c.height / 2 + r.y)
@@ -23016,7 +23021,7 @@ Ur.prototype.updateConnectionWaypoints = function(e, t, n, i, r, o, a) {
23016
23021
  var s = this, c = new Set(r), l = new Set(o);
23017
23022
  z(e, function(u) {
23018
23023
  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) {
23024
+ y && C ? (d = In(d, function(x) {
23020
23025
  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
23026
  }), s._modeling.updateWaypoints(u, d, {
23022
23027
  labelBehavior: !1
@@ -23035,7 +23040,7 @@ function Oy(e) {
23035
23040
  return U({}, e);
23036
23041
  }
23037
23042
  function pO(e) {
23038
- return Ln(e.waypoints, function(t) {
23043
+ return In(e.waypoints, function(t) {
23039
23044
  return t = Oy(t), t.original && (t.original = Oy(t.original)), t;
23040
23045
  });
23041
23046
  }
@@ -23940,21 +23945,21 @@ __.$inject = [
23940
23945
  function Ly(e) {
23941
23946
  return !e || !e.trim();
23942
23947
  }
23943
- function Pn(e, t, n, i) {
23948
+ function Tn(e, t, n, i) {
23944
23949
  Ct.call(this, e, t, n), this._bpmnRules = i;
23945
23950
  }
23946
- Ee(Pn, Ct);
23947
- Pn.$inject = [
23951
+ Ee(Tn, Ct);
23952
+ Tn.$inject = [
23948
23953
  "eventBus",
23949
23954
  "elementFactory",
23950
23955
  "commandStack",
23951
23956
  "bpmnRules"
23952
23957
  ];
23953
- Pn.prototype.getHandlers = function() {
23958
+ Tn.prototype.getHandlers = function() {
23954
23959
  var e = Ct.prototype.getHandlers.call(this);
23955
23960
  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
23961
  };
23957
- Pn.prototype.updateLabel = function(e, t, n, i) {
23962
+ Tn.prototype.updateLabel = function(e, t, n, i) {
23958
23963
  this._commandStack.execute("element.updateLabel", {
23959
23964
  element: e,
23960
23965
  newLabel: t,
@@ -23962,45 +23967,45 @@ Pn.prototype.updateLabel = function(e, t, n, i) {
23962
23967
  hints: i || {}
23963
23968
  });
23964
23969
  };
23965
- Pn.prototype.connect = function(e, t, n, i) {
23970
+ Tn.prototype.connect = function(e, t, n, i) {
23966
23971
  var r = this._bpmnRules;
23967
23972
  if (n || (n = r.canConnect(e, t)), !!n)
23968
23973
  return this.createConnection(e, t, n, e.parent, i);
23969
23974
  };
23970
- Pn.prototype.updateModdleProperties = function(e, t, n) {
23975
+ Tn.prototype.updateModdleProperties = function(e, t, n) {
23971
23976
  this._commandStack.execute("element.updateModdleProperties", {
23972
23977
  element: e,
23973
23978
  moddleElement: t,
23974
23979
  properties: n
23975
23980
  });
23976
23981
  };
23977
- Pn.prototype.updateProperties = function(e, t) {
23982
+ Tn.prototype.updateProperties = function(e, t) {
23978
23983
  this._commandStack.execute("element.updateProperties", {
23979
23984
  element: e,
23980
23985
  properties: t
23981
23986
  });
23982
23987
  };
23983
- Pn.prototype.resizeLane = function(e, t, n) {
23988
+ Tn.prototype.resizeLane = function(e, t, n) {
23984
23989
  this._commandStack.execute("lane.resize", {
23985
23990
  shape: e,
23986
23991
  newBounds: t,
23987
23992
  balanced: n
23988
23993
  });
23989
23994
  };
23990
- Pn.prototype.addLane = function(e, t) {
23995
+ Tn.prototype.addLane = function(e, t) {
23991
23996
  var n = {
23992
23997
  shape: e,
23993
23998
  location: t
23994
23999
  };
23995
24000
  return this._commandStack.execute("lane.add", n), n.newLane;
23996
24001
  };
23997
- Pn.prototype.splitLane = function(e, t) {
24002
+ Tn.prototype.splitLane = function(e, t) {
23998
24003
  this._commandStack.execute("lane.split", {
23999
24004
  shape: e,
24000
24005
  count: t
24001
24006
  });
24002
24007
  };
24003
- Pn.prototype.makeCollaboration = function() {
24008
+ Tn.prototype.makeCollaboration = function() {
24004
24009
  var e = this._create("root", {
24005
24010
  type: "bpmn:Collaboration"
24006
24011
  }), t = {
@@ -24008,7 +24013,7 @@ Pn.prototype.makeCollaboration = function() {
24008
24013
  };
24009
24014
  return this._commandStack.execute("canvas.updateRoot", t), e;
24010
24015
  };
24011
- Pn.prototype.makeProcess = function() {
24016
+ Tn.prototype.makeProcess = function() {
24012
24017
  var e = this._create("root", {
24013
24018
  type: "bpmn:Process"
24014
24019
  }), t = {
@@ -24016,32 +24021,32 @@ Pn.prototype.makeProcess = function() {
24016
24021
  };
24017
24022
  return this._commandStack.execute("canvas.updateRoot", t), e;
24018
24023
  };
24019
- Pn.prototype.updateLaneRefs = function(e, t) {
24024
+ Tn.prototype.updateLaneRefs = function(e, t) {
24020
24025
  this._commandStack.execute("lane.updateRefs", {
24021
24026
  flowNodeShapes: e,
24022
24027
  laneShapes: t
24023
24028
  });
24024
24029
  };
24025
- Pn.prototype.updateCategoryValueRefs = function(e, t) {
24030
+ Tn.prototype.updateCategoryValueRefs = function(e, t) {
24026
24031
  this._commandStack.execute("group.updateRefs", {
24027
24032
  affectedFlowElements: e,
24028
24033
  affectedGroupEntries: t
24029
24034
  });
24030
24035
  };
24031
- Pn.prototype.claimId = function(e, t) {
24036
+ Tn.prototype.claimId = function(e, t) {
24032
24037
  this._commandStack.execute("id.updateClaim", {
24033
24038
  id: e,
24034
24039
  element: t,
24035
24040
  claiming: !0
24036
24041
  });
24037
24042
  };
24038
- Pn.prototype.unclaimId = function(e, t) {
24043
+ Tn.prototype.unclaimId = function(e, t) {
24039
24044
  this._commandStack.execute("id.updateClaim", {
24040
24045
  id: e,
24041
24046
  element: t
24042
24047
  });
24043
24048
  };
24044
- Pn.prototype.setColor = function(e, t) {
24049
+ Tn.prototype.setColor = function(e, t) {
24045
24050
  e.length || (e = [e]), this._commandStack.execute("element.setColor", {
24046
24051
  elements: e,
24047
24052
  colors: t
@@ -24082,7 +24087,7 @@ function DO(e, t) {
24082
24087
  }[e].test(t);
24083
24088
  }
24084
24089
  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;
24090
+ 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
24091
  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
24092
  x: e.x + Ic * (/l/.test(r) ? -1 : 1),
24088
24093
  y: f ? a + Ic : a
@@ -24163,7 +24168,7 @@ function $O(e, t, n) {
24163
24168
  return i.unshift(e), i.push(t), C_(i);
24164
24169
  }
24165
24170
  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);
24171
+ 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
24172
  n = n || Be(e), i = i || Be(t);
24168
24173
  var u = l.split(":"), p = $y(n, e, u[0], qO(c)), f = $y(i, t, u[1], c);
24169
24174
  return $O(p, f, l);
@@ -24185,7 +24190,7 @@ function By(e, t, n) {
24185
24190
  }
24186
24191
  function zO(e, t, n, i, r) {
24187
24192
  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], [
24193
+ 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
24194
  {
24190
24195
  x: o.x !== void 0 ? o.x : n.x,
24191
24196
  y: o.y !== void 0 ? o.y : n.y,
@@ -24389,7 +24394,7 @@ bu.prototype.layoutConnection = function(e, t) {
24389
24394
  };
24390
24395
  function QO(e) {
24391
24396
  var t = e.host;
24392
- return An(Be(e), t, YO);
24397
+ return Mn(Be(e), t, YO);
24393
24398
  }
24394
24399
  function JO(e, t, n) {
24395
24400
  return {
@@ -24441,11 +24446,11 @@ function A_(e) {
24441
24446
  return e === "right" || e === "left";
24442
24447
  }
24443
24448
  function oD(e, t, n) {
24444
- var i = t.waypoints, r = i && i.length && An(i[0], e);
24449
+ var i = t.waypoints, r = i && i.length && Mn(i[0], e);
24445
24450
  return r === "top" ? n.loop.fromTop : r === "right" ? n.loop.fromRight : r === "left" ? n.loop.fromLeft : n.loop.fromBottom;
24446
24451
  }
24447
24452
  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, {
24453
+ 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
24454
  x: e.width / 2 + t.width / 2,
24450
24455
  y: e.height / 2 + t.height / 2
24451
24456
  });
@@ -24537,7 +24542,7 @@ const ch = {
24537
24542
  bpmnFactory: ["type", Ai],
24538
24543
  bpmnUpdater: ["type", ii],
24539
24544
  elementFactory: ["type", Vr],
24540
- modeling: ["type", Pn],
24545
+ modeling: ["type", Tn],
24541
24546
  layouter: ["type", bu],
24542
24547
  connectionDocking: ["type", qr]
24543
24548
  };
@@ -24578,7 +24583,7 @@ function fD(e, t, n) {
24578
24583
  return Pt(r, function(o) {
24579
24584
  if (o === n)
24580
24585
  return !1;
24581
- var a = An(o, i, uD);
24586
+ var a = Mn(o, i, uD);
24582
24587
  return a === "intersect";
24583
24588
  });
24584
24589
  }
@@ -24715,7 +24720,7 @@ function wD(e, t, n) {
24715
24720
  },
24716
24721
  direction: o.directionHint
24717
24722
  }), 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));
24723
+ A(e, "bpmn:BoundaryEvent") && (l = Mn(e, e.host, -25), l.indexOf(o.boundaryOrientation) !== -1 && (s *= -1));
24719
24724
  var u = n ? {
24720
24725
  x: i.right + a + t.width / 2,
24721
24726
  y: r.y + Vy(l, c, o)
@@ -25305,7 +25310,7 @@ bn.prototype._updateOverlayContainer = function(e) {
25305
25310
  var o = nn(t);
25306
25311
  i = o.x, r = o.y;
25307
25312
  }
25308
- I_(n, i, r), On(e.html, "data-container-id", t.id);
25313
+ I_(n, i, r), Dn(e.html, "data-container-id", t.id);
25309
25314
  };
25310
25315
  bn.prototype._updateOverlay = function(e) {
25311
25316
  var t = e.position, n = e.htmlContainer, i = e.element, r = t.left, o = t.top;
@@ -26257,7 +26262,7 @@ on.prototype.trigger = function(e, t, n) {
26257
26262
  var i = this, r, o, a = t.delegateTarget || t.target;
26258
26263
  if (!a)
26259
26264
  return t.preventDefault();
26260
- if (r = On(a, "data-action"), o = t.originalEvent || t, e === "mouseover") {
26265
+ if (r = Dn(a, "data-action"), o = t.originalEvent || t, e === "mouseover") {
26261
26266
  this._timeout = setTimeout(function() {
26262
26267
  i._mouseout = i.triggerEntry(r, "hover", o, n);
26263
26268
  }, yL);
@@ -26301,7 +26306,7 @@ on.prototype._updateAndOpen = function(e) {
26301
26306
  var t = this.getEntries(e), n = this._createHtml(e), i;
26302
26307
  z(t, function(r, o) {
26303
26308
  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));
26309
+ 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
26310
  }), $t(n).add("open"), this._current = {
26306
26311
  entries: t,
26307
26312
  html: n,
@@ -27557,7 +27562,7 @@ Gt.prototype.isOpen = function() {
27557
27562
  };
27558
27563
  Gt.prototype.trigger = function(e, t, n = "click") {
27559
27564
  if (e.preventDefault(), !t) {
27560
- let r = So(e.delegateTarget || e.target, ".entry", !0), o = On(r, VL);
27565
+ let r = So(e.delegateTarget || e.target, ".entry", !0), o = Dn(r, VL);
27561
27566
  t = { id: o, ...this._getEntry(o) };
27562
27567
  }
27563
27568
  const i = t.action;
@@ -28480,7 +28485,7 @@ function R0(e, t, n, i, r, o) {
28480
28485
  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
28486
  m[g] = v, m[h] = w;
28482
28487
  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);
28488
+ 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
28489
  }), t.on("connectionSegment.move.hover", function(p) {
28485
28490
  p.context.hover = p.hover, n.addMarker(p.hover, Cv);
28486
28491
  }), t.on([
@@ -30040,20 +30045,20 @@ Mi.prototype.getPopupMenuEntries = function(e) {
30040
30045
  if ($e(e) || !n.allowed("shape.replace", { element: e }))
30041
30046
  return {};
30042
30047
  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) {
30048
+ 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
30049
  return c.target.type !== "bpmn:StartEvent";
30045
30050
  }))), A(t, "bpmn:StartEvent") && !A(t.$parent, "bpmn:SubProcess") ? (o = et(
30046
30051
  DI.concat(i),
30047
30052
  a
30048
30053
  ), this._createEntries(e, o)) : A(t, "bpmn:Participant") ? (o = et(UI, function(c) {
30049
30054
  return rt(e) !== c.target.isExpanded;
30050
- }), this._createEntries(e, o)) : A(t, "bpmn:StartEvent") && Dn(t.$parent) ? (o = et(
30055
+ }), this._createEntries(e, o)) : A(t, "bpmn:StartEvent") && Ln(t.$parent) ? (o = et(
30051
30056
  VI.concat(i),
30052
30057
  function(c) {
30053
30058
  var l = c.target, u = l.isInterrupting !== !1, p = t.isInterrupting === u;
30054
30059
  return a(c) || !a(c) && !p;
30055
30060
  }
30056
- ), this._createEntries(e, o)) : A(t, "bpmn:StartEvent") && !Dn(t.$parent) && A(t.$parent, "bpmn:SubProcess") ? (o = et(
30061
+ ), this._createEntries(e, o)) : A(t, "bpmn:StartEvent") && !Ln(t.$parent) && A(t.$parent, "bpmn:SubProcess") ? (o = et(
30057
30062
  LI.concat(i),
30058
30063
  a
30059
30064
  ), this._createEntries(e, o)) : A(t, "bpmn:EndEvent") ? (o = et(NI.concat(i), function(c) {
@@ -30068,14 +30073,14 @@ Mi.prototype.getPopupMenuEntries = function(e) {
30068
30073
  }), this._createEntries(e, o)) : A(t, "bpmn:IntermediateCatchEvent") || A(t, "bpmn:IntermediateThrowEvent") ? (o = et(
30069
30074
  II.concat(i),
30070
30075
  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) {
30076
+ ), 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
30077
  var l = c.target.type === e.type, u = c.target.isExpanded === !0;
30073
30078
  return l === u;
30074
30079
  }), 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
30080
  };
30076
30081
  Mi.prototype.getPopupMenuHeaderEntries = function(e) {
30077
30082
  var t = {};
30078
- return A(e, "bpmn:Activity") && !Dn(e) && (t = {
30083
+ return A(e, "bpmn:Activity") && !Ln(e) && (t = {
30079
30084
  ...t,
30080
30085
  ...this._getLoopCharacteristicsHeaderEntries(e)
30081
30086
  }), A(e, "bpmn:DataObjectReference") && (t = {
@@ -30443,7 +30448,7 @@ qs.prototype.getContextPadEntries = function(e) {
30443
30448
  isForCompensation: !0
30444
30449
  }
30445
30450
  )
30446
- }) : !A(p, "bpmn:EndEvent") && !p.isForCompensation && !Fv(p, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Dn(p) && U(u, {
30451
+ }) : !A(p, "bpmn:EndEvent") && !p.isForCompensation && !Fv(p, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !Ln(p) && U(u, {
30447
30452
  "append.end-event": y(
30448
30453
  "bpmn:EndEvent",
30449
30454
  "bpmn-icon-end-event-none",
@@ -32026,7 +32031,7 @@ Un.prototype.add = function(e) {
32026
32031
  }), this._addTooltip(e), e.timeout && this.setTimeout(e), t;
32027
32032
  };
32028
32033
  Un.prototype.trigger = function(e, t) {
32029
- var n = t.delegateTarget || t.target, i = this.get(On(n, "data-tooltip-id"));
32034
+ var n = t.delegateTarget || t.target, i = this.get(Dn(n, "data-tooltip-id"));
32030
32035
  i && (e === "mouseover" && i.timeout && this.clearTimeout(i), e === "mouseout" && i.timeout && (i.timeout = 1e3, this.setTimeout(i)));
32031
32036
  };
32032
32037
  Un.prototype.get = function(e) {
@@ -32353,17 +32358,17 @@ rn.prototype._update = function() {
32353
32358
  var e = xt(".djs-palette-entries", this._container), t = this._entries = this.getEntries();
32354
32359
  Hl(e), z(t, function(n, i) {
32355
32360
  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));
32361
+ o || (o = kt('<div class="group"></div>'), Dn(o, "data-group", r), e.appendChild(o));
32357
32362
  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)) {
32363
+ 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
32364
  var c = kt("<img>");
32360
- On(c, "src", n.imageUrl), s.appendChild(c);
32365
+ Dn(c, "src", n.imageUrl), s.appendChild(c);
32361
32366
  }
32362
32367
  }), this.open();
32363
32368
  };
32364
32369
  rn.prototype.trigger = function(e, t, n) {
32365
32370
  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();
32371
+ return o ? (i = Dn(o, "data-action"), r = t.originalEvent || t, this.triggerEntry(i, e, r, n)) : t.preventDefault();
32367
32372
  };
32368
32373
  rn.prototype.triggerEntry = function(e, t, n, i) {
32369
32374
  var r = this._entries, o, a;
@@ -33011,7 +33016,7 @@ function SB(e, t) {
33011
33016
  function RB(e) {
33012
33017
  var t = e.context, n = t.source, i = t.target;
33013
33018
  if (!PB(t)) {
33014
- var r = vi(n), o = An(r, i, -10), a = [];
33019
+ var r = vi(n), o = Mn(r, i, -10), a = [];
33015
33020
  /top|bottom/.test(o) && a.push("x"), /left|right/.test(o) && a.push("y"), a.forEach(function(s) {
33016
33021
  var c = e[s], l;
33017
33022
  _B(c - r[s]) < Cp && (c > r[s] ? l = r[s] + Cp : l = r[s] - Cp, tn(e, s, l));
@@ -33486,7 +33491,7 @@ Ve.prototype._getCurrentResult = function() {
33486
33491
  };
33487
33492
  Ve.prototype._createResultNode = function(e, t) {
33488
33493
  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;
33494
+ 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
33495
  };
33491
33496
  Ve.prototype.registerProvider = function(e) {
33492
33497
  this._searchProvider = e;
@@ -33509,14 +33514,14 @@ Ve.prototype._preselect = function(e) {
33509
33514
  var t = this._getCurrentResult();
33510
33515
  if (e !== t) {
33511
33516
  t && $t(t).remove(Ve.RESULT_SELECTED_CLASS);
33512
- var n = On(e, Ve.RESULT_ID_ATTRIBUTE), i = this._results[n].element;
33517
+ var n = Dn(e, Ve.RESULT_ID_ATTRIBUTE), i = this._results[n].element;
33513
33518
  $t(e).add(Ve.RESULT_SELECTED_CLASS), this._canvas.scrollToElement(i, {
33514
33519
  top: sE
33515
33520
  }), this._selection.select(i), this._eventBus.fire("searchPad.preselected", i);
33516
33521
  }
33517
33522
  };
33518
33523
  Ve.prototype._select = function(e) {
33519
- var t = On(e, Ve.RESULT_ID_ATTRIBUTE), n = this._results[t].element;
33524
+ var t = Dn(e, Ve.RESULT_ID_ATTRIBUTE), n = this._results[t].element;
33520
33525
  this._cachedSelection = null, this._cachedViewbox = null, this.close(!1), this._canvas.scrollToElement(n, {
33521
33526
  top: sE
33522
33527
  }), this._selection.select(n), this._eventBus.fire("searchPad.selected", n);
@@ -34047,7 +34052,7 @@ export {
34047
34052
  I$ as createBpmnEditorController,
34048
34053
  nR as createBpmnModdle,
34049
34054
  $$ as createHeadlessBpmnModeler,
34050
- In as crossedShapesOf,
34055
+ An as crossedShapesOf,
34051
34056
  wi as crossingCost,
34052
34057
  HC as describeProcess,
34053
34058
  P$ as describeProcessXml,